code stringlengths 3 6.57k |
|---|
check_password(password) |
if(re.search(regex,password) |
app.run(debug=True) |
provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) |
ApiArtifact(object) |
swagger_types (dict) |
attribute_map (dict) |
__init__(self, name=None, checksum=None, id=None, names=None) |
name(self) |
name(self, name) |
checksum(self) |
checksum(self, checksum) |
id(self) |
id(self, id) |
names(self) |
names(self, names) |
to_dict(self) |
six.iteritems(self.swagger_types) |
getattr(self, attr) |
isinstance(value, list) |
x.to_dict() |
hasattr(x, "to_dict") |
hasattr(value, "to_dict") |
value.to_dict() |
isinstance(value, dict) |
to_dict() |
hasattr(item[1], "to_dict") |
value.items() |
issubclass(ApiArtifact, dict) |
self.items() |
to_str(self) |
pprint.pformat(self.to_dict() |
__repr__(self) |
self.to_str() |
__eq__(self, other) |
isinstance(other, ApiArtifact) |
__ne__(self, other) |
_find_conda() |
util.which('conda') |
Conda(environment.Environment) |
__init__(self, conf, python, requirements) |
super(Conda, self) |
__init__(conf, python, requirements) |
matches(cls, python) |
cls._matches(python) |
_matches(cls, python) |
re.match(r'^[0-9].*$', python) |
_find_conda() |
os.path.join(tempfile.gettempdir() |
format(python) |
_setup(self) |
_find_conda() |
util.UserError(str(e) |
log.info("Creating conda environment for {0}".format(self.name) |
tempfile.NamedTemporaryFile(mode='w', delete=False, suffix=".yml") |
format(self.name) |
env_file.writelines((' - %s\n' % ch for ch in self._conda_channels) |
format(self._python) |
self._get_requirements(conda) |
env_file.writelines((' - %s\n' % s for s in conda_args) |
env_file.write(' - pip:\n') |
env_file.writelines((' - %s\n' % s for s in pip_args) |
env_file.close() |
os.path.isfile(env_file.name) |
open(env_file.name, 'r') |
f.read() |
log.info("conda env create failed: in {} with:\n{}".format(self._path, text) |
os.unlink(env_file.name) |
_get_requirements(self, conda) |
six.iteritems(self._requirements) |
key.startswith('pip+') |
pip_args.append("{0}=={1}".format(key[4:], val) |
pip_args.append(key[4:]) |
conda_args.append("{0}={1}".format(key, val) |
conda_args.append(key) |
run(self, args, **kwargs) |
log.debug("Running '{0}' in {1}".format(' '.join(args) |
self.run_executable('python', args, **kwargs) |
run_executable(self, executable, args, **kwargs) |
dict(kwargs.pop("env", os.environ) |
str("True") |
super(Conda, self) |
run_executable(executable, args, **kwargs) |
unrolling_iterable(range(4) |
Function(Wrappable) |
__init__(self, space, code, w_globals=None, defs_w=[], closure=None, forcename=None, creator_nametoken=None) |
code.getdocstring() |
__repr__(self) |
getattr(self, 'name', '?') |
call_args(self, args) |
self.code.funcrun(self, args) |
call_obj_args(self, w_obj, args) |
self.code.funcrun_obj(self, w_obj, args) |
getcode(self) |
funccall(self, *args_w) |
self.getcode() |
len(args_w) |
isinstance(code, gateway.BuiltinCode0) |
code.fastcall_0(self.space, self) |
isinstance(code, gateway.BuiltinCode1) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.