Skip to content

Instantly share code, notes, and snippets.

import json
import os
checkout = '/home/nodir/chromium/src'
def read_mapping(file_name):
with open(file_name) as f:
mapping = json.load(f)['dirs']
for d in mapping.itervalues():
updated inheritance
parent: //base/trace_event
child: //services/tracing
gain: teamEmail: u'tracing@chromium.org'
updated inheritance
parent: //chrome/browser/nearby_sharing
child: //chromeos/services/nearby
gain: teamEmail: u'chromium-reviews@chromium.org'
updated inheritance
parent: //chrome/browser/ash/login/easy_unlock
import json
import re
import os
def is_empty(contents):
for line in contents.splitlines():
line = line.strip()
if line and not line.startswith('#'):
return False
return True
import json
import posixpath
import os
checkout = '/home/nodir/chromium/src'
with open('/home/nodir/tmp/dirmd/computed.json') as f:
computed = json.load(f)
with open('/home/nodir/tmp/dirmd/reduced.json') as f:
function computeComponents(testID: string): string[] {
const sepRE = /([:/.]+)/;
const ret = [];
for (let comp of testID.split(sepRE)) {
if (comp.match(sepRE) && ret.length > 0) {
ret[ret.length - 1] += comp;
} else {
ret.push(comp);
}
}
vulkan_pixel_skia
webgl_conformance_validating
check_static_initializers
webkit_lint
webgl2_conformance_tests
maps