code stringlengths 3 6.57k |
|---|
output.write(' \\') |
output.write('\n') |
output.write('\n***************\n') |
output.write(self._long_text) |
output.write('\n***************\n') |
output.fail() |
_PresubmitError(_PresubmitResult) |
_PresubmitPromptWarning(_PresubmitResult) |
_PresubmitNotifyResult(_PresubmitResult) |
_MailTextResult(_PresubmitResult) |
__init__(self, *args, **kwargs) |
super(_MailTextResult, self) |
__init__() |
NotImplementedError() |
GerritAccessor(object) |
__init__(self, host) |
_FetchChangeDetail(self, issue) |
str(issue) |
GetChangeInfo(self, issue) |
revisions (patchsets) |
int(issue) |
self._FetchChangeDetail(issue) |
GetChangeDescription(self, issue, patchset=None) |
self.GetChangeInfo(issue) |
iteritems() |
str(rev_info['_number']) |
str(patchset) |
GetChangeOwner(self, issue) |
self.GetChangeInfo(issue) |
GetChangeReviewers(self, issue, approving_only=True) |
self.GetChangeInfo(issue) |
changeinfo.get('labels', {}) |
get('Code-Review', {}) |
labelinfo.get('values', {}) |
keys() |
max(int(v) |
labelinfo.get('all', []) |
r.get('value', 0) |
changeinfo.get('reviewers', {}) |
get('REVIEWER', []) |
r.get('email') |
OutputApi(object) |
__init__(self, is_committing) |
AppendCC(self, cc) |
self.more_cc.append(cc) |
PresubmitPromptOrNotify(self, *args, **kwargs) |
self.PresubmitNotifyResult(*args, **kwargs) |
self.PresubmitPromptWarning(*args, **kwargs) |
EnsureCQIncludeTrybotsAreAdded(self, cl, bots_to_include, message) |
cl.GetDescription(force=True) |
re.compile(r'^CQ_INCLUDE_TRYBOTS=(.*) |
cl.IsGerrit() |
git_footers.parse_footers(description) |
git_footers.normalize_name('Cq-Include-Trybots') |
b.strip() |
f.split(';') |
b.strip() |
include_re.finditer(description) |
b.strip() |
t.group(1) |
split(';') |
b.strip() |
set(prior_bots) |
set(bots_to_include) |
join(sorted(set(prior_bots) |
set(bots_to_include) |
cl.IsGerrit() |
include_re.search(description) |
include_re.sub(new_include_trybots, description) |
cl.UpdateDescription(description, force=True) |
self.PresubmitNotifyResult(message) |
InputApi(object) |
WebKit (crbug.com/539768) |
directories (just in case) |
SCM (can happen in dual SCM configuration) |
int(x) |
__version__.split('.') |
logging.getLogger('PRESUBMIT') |
multiprocessing.cpu_count() |
Pool() |
multiprocessing.Pool(self.cpu_count) |
os.path.dirname(presubmit_path) |
TODO(dpranke) |
owners.Database(change.RepositoryRoot() |
in ('<hash_map>', '<hash_set>') |
else (a, b, header) |
for (a, b, header) |
PresubmitLocalPath(self) |
AffectedFiles(self, include_deletes=True, file_filter=None) |
input_api.change.AffectedFiles() |
files
(and optionally directories) |
normpath("%s/" % self.PresubmitLocalPath() |
len(dir_with_slash) |
normpath(x.AbsoluteLocalPath() |
startswith(dir_with_slash) |
self.change.AffectedFiles(include_deletes, file_filter) |
LocalPaths(self) |
input_api.AffectedFiles() |
af.LocalPath() |
self.AffectedFiles() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.