code stringlengths 3 6.57k |
|---|
isinstance(v, dict) |
NS.from_dict(v) |
walk(ns, fn, inplace=False) |
NS() |
ns.__dict__.items() |
fn(k, v) |
isinstance(v, NS) |
NS.walk(nv, fn, inplace) |
__init__(self, *args, **kwargs) |
self.__dict__.update(dict(*args, **kwargs) |
__str__(self) |
str(self.__dict__) |
__repr__(self) |
repr(self.__dict__) |
_zero() |
__init__(self, clock=time.time, enabled=True) |
__enter__(self) |
self._time() |
__exit__(self, *args) |
self._time() |
duration(self) |
self._time() |
locals() |
re.compile("^(X|y|data) |
call_run(run_fn) |
NS.from_dict(json.loads(sys.stdin.read() |
load_data(name, path) |
isinstance(path, str) |
data_keys.match(name) |
np.load(path, allow_pickle=True) |
print(params.dataset) |
NS.walk(params.dataset, load_data) |
NS.dict(config.framework_params) |
run_fn(ds, config) |
dict(result) |
os.path.join(config.result_dir, '.'.join([name, 'npy']) |
np.save(res[name], arr, allow_pickle=True) |
log.exception(e) |
str(e) |
print(config.result_token) |
print(json.dumps(res, separators=(',', ':') |
os.chdir(TRAIN_CLEAN) |
os.listdir() |
file.endswith('.wav') |
wavio.read(file) |
int(getFrameSize(mWav.rate) |
normalizeAudio(mWav.data, mWav.sampwidth) |
int(len(mWav.data) |
if (len(mWav.data) |
range(frame_cnt) |
if (idx == frame_cnt-1) |
aboveFrameThreshold(chunk) |
class_list.append(1) |
class_list.append(0) |
os.path.splitext(file) |
open(filename + '.csv', 'w') |
f.write(','.join([str(c) |
Copyright (c) |
files (the "Software") |
_platform.system() |
_platform.architecture() |
_find_library('libjack64') |
_find_library('libjack') |
_find_library('jack') |
OSError('JACK library not found') |
_ffi.dlopen(_libname) |
Client(object) |
activate() |
deactivate() |
close() |
client_name_size() |
_ffi.new('jack_status_t*') |
optargs.append(_ffi.new('char[]', servername.encode() |
optargs.append(_ffi.new('char[]', session_id.encode() |
_lib.jack_client_open(name.encode() |
Status(status[0]) |
Ports(self, _AUDIO, _lib.JackPortIsInput) |
Ports(self, _AUDIO, _lib.JackPortIsOutput) |
Ports(self, _MIDI, _lib.JackPortIsInput) |
Ports(self, _MIDI, _lib.JackPortIsOutput) |
_ffi.new('jack_position_t*') |
__enter__(self) |
self.activate() |
__exit__(self, *args) |
self.deactivate() |
self.close() |
__del__(self) |
self.close() |
name(self) |
client (read-only) |
_ffi.string(_lib.jack_get_client_name(self._ptr) |
decode() |
samplerate(self) |
system (read-only) |
_lib.jack_get_sample_rate(self._ptr) |
blocksize(self) |
size (must be a power of two) |
activate() |
set_blocksize_callback() |
set_blocksize_callback() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.