code stringlengths 3 6.57k |
|---|
os.geteuid() |
shlex.split(root_helper) |
list(cmd) |
map(str, cmd) |
strutils.mask_password(' '.join(cmd) |
LOG.log(loglevel, _('Running cmd (subprocess) |
six.moves.range(20) |
NOTE(russellb) |
obj.communicate(process_input) |
obj.communicate() |
in (errno.EAGAIN, errno.EINTR) |
obj.stdin.close() |
LOG.log(loglevel, 'Result was %s' % _returncode) |
strutils.mask_password(stdout) |
strutils.mask_password(stderr) |
LOG.log(loglevel, _('%r failed. Retrying.') |
greenthread.sleep(random.randint(20, 200) |
NOTE(termie) |
greenthread.sleep(0) |
trycmd(*args, **kwargs) |
execute() |
an (out, err) |
kwargs.pop('discard_warnings', False) |
execute(*args, **kwargs) |
six.text_type(exn) |
strutils.mask_password(cmd) |
LOG.debug('Running cmd (SSH) |
InvalidArgumentError(_('Environment not supported over SSH') |
is (probably) |
InvalidArgumentError(_('process_input not supported over SSH') |
ssh.exec_command(cmd) |
NOTE(justinsb) |
stdout_stream.read() |
strutils.mask_password(stdout) |
stderr_stream.read() |
strutils.mask_password(stderr) |
stdin_stream.close() |
channel.recv_exit_status() |
LOG.debug('Result was %s' % exit_status) |
return (sanitized_stdout, sanitized_stderr) |
get_worker_count() |
multiprocessing.cpu_count() |
combinationSum(self, candidates, target) |
set() |
helper(nums, candidates, target) |
sum(nums) |
result.append(tuple(nums) |
sum(nums) |
sum(nums) |
sum(nums) |
helper(nums, candidates, target) |
helper([], candidates, target) |
list(nums) |
combinationSum(self, candidates, target) |
set() |
helper(nums, candidates, target) |
sum(nums) |
result.add(tuple(sorted(nums) |
sum(nums) |
helper(nums + [i], candidates, target) |
helper([], candidates, target) |
list(nums) |
WebhookTest(APITestCase) |
test_get(self) |
self.client.get(url) |
test_unknown_host_event(self) |
six.text_type(uuid4() |
test_unregistered_event(self) |
format(project.organization.id) |
six.text_type(uuid4() |
patch("sentry.integrations.github_enterprise.webhook.get_installation_metadata") |
test_invalid_signature_event(self, mock_installation) |
six.text_type(uuid4() |
patch("sentry.integrations.github_enterprise.webhook.get_installation_metadata") |
test_missing_signature_ok(self, mock_installation) |
six.text_type(uuid4() |
PushEventWebhookTest(APITestCase) |
patch("sentry.integrations.github_enterprise.client.get_jwt") |
patch("sentry.integrations.github_enterprise.webhook.get_installation_metadata") |
test_simple(self, mock_get_installation_metadata, mock_get_jwt) |
integration.add_organization(project.organization, self.user) |
six.text_type(uuid4() |
select_related("author") |
order_by("-date_added") |
len(commit_list) |
README.md (àgain) |
datetime(2015, 5, 5, 23, 45, 15, tzinfo=timezone.utc) |
datetime(2015, 5, 5, 23, 40, 15, tzinfo=timezone.utc) |
patch("sentry.integrations.github_enterprise.webhook.get_installation_metadata") |
test_anonymous_lookup(self, mock_get_installation_metadata) |
integration.add_organization(project.organization, self.user) |
six.text_type(uuid4() |
Commit.objects.filter(organization_id=project.organization_id) |
select_related("author") |
order_by("-date_added") |
len(commit_list) |
README.md (àgain) |
datetime(2015, 5, 5, 23, 45, 15, tzinfo=timezone.utc) |
datetime(2015, 5, 5, 23, 40, 15, tzinfo=timezone.utc) |
patch("sentry.integrations.github_enterprise.client.get_jwt") |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.