code stringlengths 3 6.57k |
|---|
cookie.split("=", 1) |
freezer.tick(delta=2) |
value.split(";", 1) |
policy.get_claims(dummy_request) |
importer.import_('module1', 'module1_source.py', '.') |
intervalo (começando por um valor maior que o valor final) |
int(x) |
input("Digite o valor inicial e valor final: ") |
split() |
list(range(inicial, final) |
print(f'A soma dos ímpares neste intervalo é {impar}') |
click.group(name='activity', help='[GROUP] Get the summary of one or multiple activities.') |
cli_activity() |
cli_activity.add_command(get_activity) |
cli_activity.add_command(get_constrain_activity) |
cli_activity.add_command(get_weekly_activity) |
cli_activity.add_command(get_lap_activity) |
Noonan (tycho) |
ctypes.CDLL('libc.so.6') |
values (can be overridden per job in `config`) |
Service(SimpleService) |
__init__(self, configuration=None, name=None) |
os.getenv('NETDATA_HOST_PREFIX', "") |
prefix.endswith('/') |
SimpleService.__init__(self, configuration=configuration, name=name) |
__gettid(self) |
gettid() |
platform.machine() |
syscall(syscalls[platform.machine() |
__wake_cpus(self) |
hasattr(os, 'sched_setaffinity') |
self.__gettid() |
os.sched_getaffinity(pid) |
range(0, len(self.assignment) |
os.sched_setaffinity(pid, [idx]) |
os.sched_getaffinity(pid) |
os.sched_setaffinity(pid, save_affinity) |
__read_schedstat(self) |
open(self.schedstat_path, 'r') |
line.startswith('cpu') |
line.rstrip() |
split() |
int(active_time) |
_get_data(self) |
self.__wake_cpus() |
C0 (active) |
self.__read_schedstat() |
self.assignment.items() |
metrics.items() |
int(open(path, 'r') |
read() |
check(self) |
self.__gettid() |
self.error("Cannot get thread ID. Stats would be completely broken.") |
sorted(glob.glob(self.sys_dir + '/cpu*/cpuidle/state*/name') |
path.split('/') |
open(path, 'rt') |
read() |
rstrip() |
self.order.append(orderid) |
C0 (active) |
join(path_elem[:-1] + ['time']) |
self.order.sort(key=lambda x: int(x.split('_') |
len(self.definitions) |
self.error("couldn't find cstate stats") |
create(self) |
SimpleService.create(self) |
update(self, interval) |
SimpleService.update(self, interval=interval) |
print_picnic(itemsDict, leftWidth, rightWidth) |
print('PICNIC ITEMS'.center(leftWidth + rightWidth, '-') |
itemsDict.items() |
print(k.ljust(leftWidth, '.') |
str(v) |
rjust(rightWidth) |
print_picnic(picnic_items, 12, 5) |
print_picnic(picnic_items, 20, 6) |
run() |
sys.stdin.readline() |
strip() |
len(line) |
sys.stdout.flush() |
run() |
geopandas.read_file("data/gent/vector/parken-gent.geojson") |
green.head() |
int8(StructStream) |
uint8(StructStream) |
int16(StructStream) |
uint16(StructStream) |
int32(StructStream) |
uint32(StructStream) |
int64(StructStream) |
uint64(StructStream) |
uint128(int) |
parse(cls, f: BinaryIO) |
f.read(16) |
len(read_bytes) |
int.from_bytes(read_bytes, "big", signed=False) |
cls(n) |
stream(self, f) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.