query stringlengths 10 2k | document stringlengths 20 51.2k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Return root addon data folder external for Docker. | def path_extern_addons_data(self) -> PurePath:
return PurePath(self.path_extern_supervisor, ADDONS_DATA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def datadir():\n return '../data/'",
"def get_data_dir():\n return Path(current_app.config[\"USER_DIR\"]) / \"data\"",
"def data_dir():\n return _config.datadir",
"def datadir(cls): # pylint: disable=E0213\n mod = sys.modules[cls.__module__]\n return osp.join(osp.dirname(osp.abspath(mo... | [
"0.72631687",
"0.6811518",
"0.6710798",
"0.67089677",
"0.6704394",
"0.66815084",
"0.6680354",
"0.6669643",
"0.66630113",
"0.6626901",
"0.66081434",
"0.65309995",
"0.65088964",
"0.6479988",
"0.6466228",
"0.6436455",
"0.64197373",
"0.6405747",
"0.6393801",
"0.63874185",
"0.6375... | 0.63167274 | 26 |
Return root audio data folder. | def path_audio(self) -> Path:
return self.path_supervisor / AUDIO_DATA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def music_root(mpd_conf='~/.config/mpd/mpd.conf'):\n with open(Path(mpd_conf).expanduser()) as fs:\n for l in fs:\n if l.startswith('music_directory'):\n # we don't want the temporary folders, only main one\n dir = Path(l.split('\"')[1]).expanduser()\n ... | [
"0.7573539",
"0.7392817",
"0.7206086",
"0.68672854",
"0.67686427",
"0.6767096",
"0.67391115",
"0.67370605",
"0.6736933",
"0.6717991",
"0.6696462",
"0.66547835",
"0.6651708",
"0.6649285",
"0.6635446",
"0.66045284",
"0.65932786",
"0.6590541",
"0.6590541",
"0.6584376",
"0.658425... | 0.70456237 | 3 |
Return root audio data folder external for Docker. | def path_extern_audio(self) -> PurePath:
return PurePath(self.path_extern_supervisor, AUDIO_DATA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def music_root(mpd_conf='~/.config/mpd/mpd.conf'):\n with open(Path(mpd_conf).expanduser()) as fs:\n for l in fs:\n if l.startswith('music_directory'):\n # we don't want the temporary folders, only main one\n dir = Path(l.split('\"')[1]).expanduser()\n ... | [
"0.69649863",
"0.6808549",
"0.67854893",
"0.6453193",
"0.64382005",
"0.64228714",
"0.63663477",
"0.63585204",
"0.62854004",
"0.6168289",
"0.6139343",
"0.61085397",
"0.61011165",
"0.6093332",
"0.6077241",
"0.6063709",
"0.60234076",
"0.6011034",
"0.5998042",
"0.5991132",
"0.597... | 0.6367661 | 6 |
Return Supervisor temp folder. | def path_tmp(self) -> Path:
return self.path_supervisor / TMP_DATA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def temp_directory(self):\n\n return self.get_raw(\"temp_directory\")",
"def getTmpdir(self):\n pass",
"def _get_root_temp_dir(self):\n return get_temp_cluster_dir(self.JOB_NAME)",
"def get_temp_dir():\n return settings.FILE_STORE_TEMP_DIR",
"def _get_tempdir(self):\n #return... | [
"0.79702234",
"0.77066916",
"0.7527476",
"0.7495274",
"0.74505866",
"0.7421028",
"0.7413109",
"0.73526216",
"0.7336931",
"0.7315804",
"0.7289786",
"0.72859806",
"0.72650146",
"0.7263166",
"0.7251519",
"0.7231808",
"0.72304195",
"0.72066414",
"0.7201139",
"0.71673423",
"0.7166... | 0.7274855 | 12 |
Return Supervisor temp folder for Docker. | def path_extern_tmp(self) -> PurePath:
return PurePath(self.path_extern_supervisor, TMP_DATA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def shadow_container(kls):\n if os.name == 'posix' and os.path.isdir('/dev/shm'):\n return '/dev/shm/'\n else:\n return gettempdir()",
"def temp_directory(self):\n\n return self.get_raw(\"temp_directory\")",
"def _get_root_temp_dir(self):\n return get_temp_clus... | [
"0.7034408",
"0.6985856",
"0.67596424",
"0.66418695",
"0.66395396",
"0.6618159",
"0.6615955",
"0.6589332",
"0.6514594",
"0.6489943",
"0.64535695",
"0.6441166",
"0.6427841",
"0.6415549",
"0.63919127",
"0.6385668",
"0.63676816",
"0.6364238",
"0.6349669",
"0.6310779",
"0.6309555... | 0.0 | -1 |
Return root backup data folder. | def path_backup(self) -> Path:
return self.path_supervisor / BACKUP_DATA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getRootFolder():\n return CURRENT_CONNECTION.rootFolder",
"def data_directory(self):\n\n return self.get_raw(\"data_directory\")",
"def datadir():\n return '../data/'",
"def get_data_folder():\n data_folder = './MedData/'\n\n if not os.path.isdir(data_folder):\n os.makedirs(data... | [
"0.7703917",
"0.7520597",
"0.7408657",
"0.7265598",
"0.72573185",
"0.72399837",
"0.7168587",
"0.71618336",
"0.7150785",
"0.71349335",
"0.70594674",
"0.7038396",
"0.7012913",
"0.7003931",
"0.7003931",
"0.7001245",
"0.6974",
"0.69589007",
"0.6958006",
"0.69157314",
"0.6874438",... | 0.6739166 | 35 |
Return root backup data folder external for Docker. | def path_extern_backup(self) -> PurePath:
return PurePath(self.path_extern_supervisor, BACKUP_DATA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def datadir():\n return '../data/'",
"def kard_folder_path(self):\n if self._base_path is None:\n if is_running_in_docker():\n container_id = os.popen(\n 'cat /proc/self/cgroup | grep docker | '\n 'grep -o -E \"[0-9a-f]{64}\" | head -n 1')... | [
"0.70205396",
"0.68570566",
"0.6740211",
"0.6734134",
"0.66905415",
"0.6566782",
"0.65598637",
"0.65283453",
"0.64591664",
"0.6424475",
"0.63805234",
"0.6371342",
"0.6366231",
"0.6356558",
"0.635414",
"0.6336294",
"0.63357335",
"0.63115317",
"0.6308279",
"0.6279745",
"0.62641... | 0.0 | -1 |
Return root share data folder. | def path_share(self) -> Path:
return self.path_supervisor / SHARE_DATA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getRootFolder():\n return CURRENT_CONNECTION.rootFolder",
"def data_directory(self):\n\n return self.get_raw(\"data_directory\")",
"def get_data_folder():\n data_folder = './MedData/'\n\n if not os.path.isdir(data_folder):\n os.makedirs(data_folder)\n\n return data_folder",
"def... | [
"0.7518527",
"0.73575485",
"0.73037934",
"0.7302972",
"0.72808266",
"0.7177664",
"0.71406925",
"0.70979",
"0.7060556",
"0.70161396",
"0.6991831",
"0.69630396",
"0.6958518",
"0.69428325",
"0.6941238",
"0.69147396",
"0.6893472",
"0.6883979",
"0.6859241",
"0.68587655",
"0.683575... | 0.67053074 | 31 |
Return root share data folder external for Docker. | def path_extern_share(self) -> PurePath:
return PurePath(self.path_extern_supervisor, SHARE_DATA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_data_folder():\n hostname = socket.gethostname()\n if hostname.startswith('hpc'):\n data_folder = '/project/RDS-FEI-EleAttG_RNN-RW/CAR/data/tiny-imagenet-200'\n elif 'syan9630' in hostname:\n data_folder = '/home/syan9630/File/Data/Tiny-Imagenet/tiny-imagenet-200'\n else:\n ... | [
"0.6957605",
"0.6920057",
"0.68963146",
"0.68463457",
"0.6741535",
"0.6704788",
"0.66974676",
"0.669415",
"0.6636901",
"0.66278267",
"0.6626763",
"0.6618702",
"0.65962636",
"0.659283",
"0.65290725",
"0.65010524",
"0.64357716",
"0.64351946",
"0.6429165",
"0.63783246",
"0.63418... | 0.0 | -1 |
Return root media data folder. | def path_media(self) -> Path:
return self.path_supervisor / MEDIA_DATA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_data_folder():\n data_folder = './MedData/'\n\n if not os.path.isdir(data_folder):\n os.makedirs(data_folder)\n\n return data_folder",
"def get_full_folder_path(self):\n data_dir_path = os.path.join(settings.MEDIA_ROOT,self.folder)\n return data_dir_path",
"def get_project... | [
"0.7787225",
"0.7689973",
"0.7634255",
"0.7531577",
"0.7278979",
"0.72371686",
"0.708438",
"0.69730103",
"0.6947845",
"0.69091094",
"0.69068724",
"0.68953246",
"0.686803",
"0.6843603",
"0.6803569",
"0.6761232",
"0.6743009",
"0.67388356",
"0.6702926",
"0.66995215",
"0.66697043... | 0.6481323 | 35 |
Return mounts path external for Docker. | def path_extern_mounts(self) -> PurePath:
return self.path_extern_supervisor / MOUNTS_FOLDER | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_mount_point(path):\n\n path = os.path.abspath(path)\n while path != os.path.sep:\n if os.path.ismount(path):\n return path\n path = os.path.abspath(os.path.join(path, os.pardir))\n return path",
"def find_mount_point(path):\n path = os.path.abspath(path)\n while not os.pat... | [
"0.6757071",
"0.66175544",
"0.6519133",
"0.63464266",
"0.63464266",
"0.6325183",
"0.6301859",
"0.62892866",
"0.6286302",
"0.6243501",
"0.6239448",
"0.6233381",
"0.6206025",
"0.61727273",
"0.6171271",
"0.6080475",
"0.6064279",
"0.60087",
"0.59414923",
"0.59330624",
"0.5867113"... | 0.6686668 | 1 |
Return emergency data folder. | def path_emergency(self) -> Path:
return self.path_supervisor / EMERGENCY_DATA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def user_data_dir():\n # TODO: hardcoded\n app_name = 'etheroll'\n data_dir = os.path.join('/sdcard', app_name)\n data_dir = os.path.expanduser(data_dir)\n if not os.path.exists(data_dir):\n os.mkdir(data_dir)\n return data_dir",
"def get_data_folder():\n d... | [
"0.73818946",
"0.73334754",
"0.71396995",
"0.7070353",
"0.68764675",
"0.68571347",
"0.6829023",
"0.68210816",
"0.6793062",
"0.67743903",
"0.6767914",
"0.6679005",
"0.6661278",
"0.66575724",
"0.663371",
"0.6615683",
"0.661443",
"0.6612631",
"0.65754396",
"0.65549624",
"0.65463... | 0.59732234 | 60 |
Return emergency path external for Docker. | def path_extern_emergency(self) -> PurePath:
return self.path_extern_supervisor / EMERGENCY_DATA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def path_config_docker(self):\n return HOMEASSISTANT_CONFIG.format(HASSIO_SHARE_EXT)",
"def path_extern_mounts(self) -> PurePath:\n return self.path_extern_supervisor / MOUNTS_FOLDER",
"def path_ssl_docker(self):\n return HOMEASSISTANT_SSL.format(HASSIO_SHARE_EXT)",
"def component_docker... | [
"0.65508485",
"0.63741446",
"0.6278596",
"0.62320024",
"0.6063358",
"0.60585",
"0.5944248",
"0.5898981",
"0.5874161",
"0.57966256",
"0.5761126",
"0.57341725",
"0.5723957",
"0.57106125",
"0.56985706",
"0.5693326",
"0.5688622",
"0.56602585",
"0.5639335",
"0.5632848",
"0.5618177... | 0.55577046 | 26 |
Return root media data folder external for Docker. | def path_extern_media(self) -> PurePath:
return PurePath(self.path_extern_supervisor, MEDIA_DATA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def external_storage():\r\n\r\n folder_path = os.path.join('/media/pi/', args.storage_name, args.directory_name)\r\n if not os.path.exists(folder_path):\r\n os.makedirs(folder_path)\r\n return folder_path",
"def get_project_data_folder(self):\n return os.path.join(settings.... | [
"0.71586037",
"0.6965217",
"0.6655196",
"0.66496027",
"0.64820224",
"0.64763284",
"0.6461144",
"0.6401194",
"0.63403887",
"0.63075143",
"0.6274399",
"0.6260723",
"0.6248735",
"0.61786556",
"0.61557275",
"0.61286825",
"0.61195976",
"0.6103154",
"0.6099576",
"0.6086843",
"0.605... | 0.5570007 | 83 |
Translate a path relative to supervisor data in the container to its extern path. | def local_to_extern_path(self, path: PurePath) -> PurePath:
return self.path_extern_supervisor / path.relative_to(self.path_supervisor) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def extern_to_local_path(self, path: PurePath) -> Path:\n return self.path_supervisor / path.relative_to(self.path_extern_supervisor)",
"def resolve(self, path=''):\n path = self._sep.join([self.root] + path.split('/'))\n return realpath(path)",
"def translate_path(self, path):\n pa... | [
"0.71438104",
"0.6082319",
"0.6053102",
"0.5974423",
"0.59219426",
"0.5910146",
"0.5907729",
"0.589003",
"0.58885646",
"0.5871145",
"0.5859249",
"0.58092725",
"0.5778268",
"0.5726673",
"0.57251614",
"0.57219934",
"0.57125956",
"0.5672139",
"0.567077",
"0.566247",
"0.5658136",... | 0.7288891 | 0 |
Translate a path relative to extern supervisor data to its path in the container. | def extern_to_local_path(self, path: PurePath) -> Path:
return self.path_supervisor / path.relative_to(self.path_extern_supervisor) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def local_to_extern_path(self, path: PurePath) -> PurePath:\n return self.path_extern_supervisor / path.relative_to(self.path_supervisor)",
"def translate_path(self, path):\n path = path.split('?',1)[0]\n path = path.split('#',1)[0]\n path = normpath(unquote(path))\n words = pa... | [
"0.67599064",
"0.5773623",
"0.5691871",
"0.5667398",
"0.56383735",
"0.5631642",
"0.5630256",
"0.558034",
"0.5573875",
"0.5548196",
"0.5536646",
"0.5534695",
"0.5528988",
"0.55034655",
"0.549544",
"0.54653656",
"0.54384094",
"0.54380447",
"0.5400017",
"0.53966385",
"0.5394736"... | 0.66258585 | 1 |
Get the file name corresponding to the source file. | def to_html_filename(source_file_name: str) -> str:
def escape_char(m: re.match) -> str:
c = m.group()
if c == '/':
return '--'
elif c == '-':
return '-m'
else:
return '-' + hex(ord(c))[2:]
return 'source-' + re.sub(r'[^.\w]', escape_char, sou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_file_name(self):\n return str(self.get_file())",
"def source_file_name_feature(self):\n return \"_\".join((C_FILE_NAME, self.file_image_name.value))",
"def get_source_file(self):\n return self.get_attribute(\"source_file\")",
"def _get_source_file(self):\n file_name = get_... | [
"0.7709365",
"0.7702402",
"0.7668593",
"0.7633874",
"0.74506664",
"0.7437427",
"0.7408927",
"0.74045604",
"0.7393137",
"0.7357818",
"0.73260474",
"0.7269473",
"0.72450477",
"0.72283405",
"0.71961427",
"0.71961427",
"0.71961427",
"0.71961427",
"0.71961427",
"0.71578944",
"0.71... | 0.0 | -1 |
Initializer of the Dataset objects | def __init__(self):
self.current_path = os.getcwd()
self.data_path = self.current_path + "/data"
self.original_files = {}
self.imitation_files = {}
self.original_test_files = {}
self.imitation_test_files = {}
self.training_set = None
self.original_test_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __init__(self, dataset: Dataset):\n self.dataset = dataset",
"def __init__(self, dataset):\n self._dataset = dataset",
"def __init__(self):\n self.__dataset = None",
"def init_datasets(self, data_dict, label_dict):\n\n ## If data is count, then convert any sparse inputs to spa... | [
"0.78139645",
"0.7681744",
"0.76811063",
"0.72628075",
"0.7237529",
"0.72315127",
"0.7224611",
"0.71647644",
"0.7143376",
"0.7082731",
"0.70657015",
"0.70614487",
"0.70564604",
"0.704522",
"0.7014534",
"0.70055956",
"0.69778156",
"0.69753355",
"0.69546455",
"0.69433755",
"0.6... | 0.0 | -1 |
Normalizing feature vectors to zero mean and unit variance | def normalization(self, set):
#epsilon = np.random.randn(np.array(set).shape[0],np.array(set).shape[1])
#variance = np.var(set+epsilon, axis=0)
mean = np.mean(set, axis=0)
variance = np.var(set, axis=0)
set = (set - mean)/variance
return set | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def normalize_features(X):\n std = X.std(axis=0)\n std = np.where(std == 0, 1, std) # to avoid division by zero\n x_normed = (X - X.mean(axis=0)) / std\n return x_normed",
"def featureNormalize(X):\n\n mu = np.mean(X, axis=0)\n sigma = np.std(X, axis=0)\n\n X_normalized = (X - mu) / sigma\n... | [
"0.78225183",
"0.76041627",
"0.7543941",
"0.74766165",
"0.7263485",
"0.7201804",
"0.7186721",
"0.7184117",
"0.7184117",
"0.7173825",
"0.70435643",
"0.7032257",
"0.6995693",
"0.6915207",
"0.68614376",
"0.68245584",
"0.68202657",
"0.6815249",
"0.67958826",
"0.67925835",
"0.6773... | 0.0 | -1 |
Initializer of the Hidden Markov Models | def __init__(self, n_components=5, user="user_0", model="gaussian"):
self.user = user
self.n_components = n_components
if(model=="gaussian"):
self.model = hmm.GaussianHMM(n_components=n_components, covariance_type="diag", \
init_params="cm", ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def model_setup(self):\n self.DNN = DgganMLP(self.settings.hidden_size)\n self.D = DgganMLP(self.settings.hidden_size)\n self.G = Generator(self.settings.hidden_size)",
"def __init__(self):\n super().__init__()\n self.dimensionality = 1\n self.distType = 'Discrete'\n self.t... | [
"0.7256249",
"0.6868332",
"0.671969",
"0.66824776",
"0.6656567",
"0.6601637",
"0.6504545",
"0.64996636",
"0.6486937",
"0.6468503",
"0.6447683",
"0.644625",
"0.6445345",
"0.6443256",
"0.6437147",
"0.64280516",
"0.64007634",
"0.6374276",
"0.6369198",
"0.6351173",
"0.63283044",
... | 0.0 | -1 |
Given object `obj`, determine if it is an iterable collection. Note that by default, str objects are treated as not iterable, as they are not considered collections. | def is_iterable(obj: Any, allow_str: bool = False):
if isinstance(obj, str) and not allow_str:
return False
try:
it = iter(obj) # noqa
except TypeError:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def is_iterable(obj):\n if isinstance(obj, (str, bytes, bytearray)):\n return False\n return isinstance(obj, Iterable)",
"def isIterable(obj):\n return isinstance(obj, ListType)",
"def isiterable(obj, strings=False, isinstance=isinstance, Iterable=Iterable):\n return (isinstance(obj, Iterabl... | [
"0.80715287",
"0.7908586",
"0.7872244",
"0.7854467",
"0.7553591",
"0.7551398",
"0.74273497",
"0.74229157",
"0.7403472",
"0.739149",
"0.7379425",
"0.73255116",
"0.7254239",
"0.72460604",
"0.72172046",
"0.71981597",
"0.7195465",
"0.71548665",
"0.69374394",
"0.6916775",
"0.68566... | 0.72494775 | 13 |
Goes through the access rights and tries to find a new suitable owner. The first viable user is selected as a new owner. In order to become a new owner the user must have write access right. | async def get_new_project_owner_gid(
app: web.Application,
project_uuid: str,
user_id: int,
user_primary_gid: int,
project: RowProxy,
) -> str:
access_rights = project["accessRights"]
other_users_access_rights = set(access_rights.keys()) - {user_primary_gid}
logger.debug(
"Proce... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_transfer_new_inherited_owner(self):\n self.assertEqual(self.project.get_owner().user, self.user_owner)\n self.assertEqual(\n self.project.get_owners(inherited_only=True)[0].user,\n self.user_owner_cat,\n )\n url = reverse(\n 'projectroles:api_ro... | [
"0.6487073",
"0.63905585",
"0.63376373",
"0.6320888",
"0.6250839",
"0.62297606",
"0.6227216",
"0.62031394",
"0.61526465",
"0.61499995",
"0.61098117",
"0.6061721",
"0.6056002",
"0.60007995",
"0.59801114",
"0.59405345",
"0.59254813",
"0.5899399",
"0.5855182",
"0.58361",
"0.5816... | 0.6178987 | 8 |
Iterate over all the users in a group and if the users exists in the db return its gid | async def fetch_new_project_owner_from_groups(
app: web.Application, standard_groups: Dict, user_id: int
) -> int:
# fetch all users in the group and then get their gid to put in here
# go through user_to_groups table and fetch all uid for matching gid
for group_gid in standard_groups.keys():
#... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getGroup(group: int, name=\"\") -> list:\n groups = mongo.db.groups.find({'id':group},{'_id':0})\n userID_list = []\n user_list = []\n for entry in groups:\n if entry[\"id\"] == group:\n userID_list = userID_list + entry[\"members\"]\n if len(userID_list) != 0:\n for ent... | [
"0.66297454",
"0.6459458",
"0.63908446",
"0.6273032",
"0.6264781",
"0.6238556",
"0.6156748",
"0.6096481",
"0.6075221",
"0.6007755",
"0.59570736",
"0.59505695",
"0.5928665",
"0.5914949",
"0.589842",
"0.58926004",
"0.5874316",
"0.5857381",
"0.5826073",
"0.58238125",
"0.58199084... | 0.6028686 | 9 |
If the JSON is a dictionary constructed according to the `labels' array in the config file, we can just insert it. | def insert_data(self, json_string):
json_ob = json.loads(json_string)
fields = ', '.join([f for f in json_ob])
values = ', '.join([str(json_ob[u.unicode_to_string(f)])
for f in json_ob])
sql = ("INSERT INTO snapshot_log (timestamp, " +
fields +... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def add_labels(self, labels_dict):\n # type: (dict) -> bool\n headers = Headers({\"content-type\": \"application/json\", \"accept\": \"application/json\"})\n\n labels_list = []\n for label_key, label_value in labels_dict.items():\n if label_key is not None and label_value is ... | [
"0.61300063",
"0.60617906",
"0.5826777",
"0.56869596",
"0.5675439",
"0.56568915",
"0.5609108",
"0.5600512",
"0.5392613",
"0.5391924",
"0.5317419",
"0.5308908",
"0.5284321",
"0.5264834",
"0.521927",
"0.52174085",
"0.5197783",
"0.5173643",
"0.51404995",
"0.5135048",
"0.51284987... | 0.4687733 | 80 |
Repeat parameters across channels. The input is shaped as (B, ...), while to output (B same_on_frame, ...), which to guarantee that the same transformation would happen for each frame. (B1, B2, ..., Bn) => (B1, ... B1, B2, ..., B2, ..., Bn, ..., Bn) | ch_size | | ch_size | ..., | ch_size | | def __repeat_param_across_channels__(self, param: Tensor, frame_num: int) -> Tensor:
repeated = param[:, None, ...].repeat(1, frame_num, *([1] * len(param.shape[1:])))
return repeated.reshape(-1, *list(param.shape[1:])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __repeat_param_across_channels__(self, param: torch.Tensor, frame_num: int) -> torch.Tensor:\n repeated = param[:, None, ...].repeat(1, frame_num, *([1] * len(param.shape[1:])))\n return repeated.reshape(-1, *list(param.shape[1:])) # type: ignore",
"def th_repeat(a, repeats, axis=0):\r\n as... | [
"0.77517",
"0.60522145",
"0.59267795",
"0.5729981",
"0.561164",
"0.5592827",
"0.5537971",
"0.55368626",
"0.55330735",
"0.5528218",
"0.54207754",
"0.5393052",
"0.53770024",
"0.53471464",
"0.53426105",
"0.53154635",
"0.52849436",
"0.5237614",
"0.52245",
"0.51916313",
"0.5185901... | 0.7669504 | 1 |
Yield successive nsized chunks from lst. | def chunks(lst, n):
for i in range(0, len(lst), n):
yield lst[i:i + n] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def chunks(self, lst, n):\n for i in range(0, len(lst), n):\n yield lst[i:i + n]",
"def chunks(lst: list, n: int):\n for i in range(0, len(lst), n):\n yield lst[i : i + n]",
"def chunks(lst, n):\n for i in range(0, len(lst), n):\n yield lst[i:i + n]",
"de... | [
"0.83071756",
"0.81939614",
"0.81910837",
"0.81910837",
"0.8190213",
"0.81267184",
"0.81218547",
"0.81218547",
"0.80773693",
"0.80526286",
"0.80526286",
"0.80526286",
"0.80526286",
"0.80526286",
"0.80042696",
"0.7871678",
"0.7845623",
"0.7828392",
"0.7827006",
"0.78138447",
"... | 0.80533457 | 26 |
Gets the type of this subnode as a string | def get_typestring(self, force_regen=False) -> str:
# Create if it does not exist, or recreate if force_regen is on
if force_regen or not self.typestring:
self.typestring = ""
data_length = len(self._data_types)
last_index = data_length - 1
# Iterate over data types
for index in range(data_length):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def typestr(self) -> str:\n return self.type if not self.subtype else f\"{self.type}:{self.subtype}\"",
"def gen_type_string(self, node):\n return self._gen_table[node.node_type()](self, node)",
"def get_type(self) -> str:\n return self.type",
"def type(self) -> str:\n return self... | [
"0.777919",
"0.7242143",
"0.71170676",
"0.70972055",
"0.70849514",
"0.70849514",
"0.70849514",
"0.7072731",
"0.7072731",
"0.7052825",
"0.7050776",
"0.7021008",
"0.6945417",
"0.69134116",
"0.6909513",
"0.6868743",
"0.68616784",
"0.68520623",
"0.6846921",
"0.6846105",
"0.680552... | 0.0 | -1 |
Gets the description of this SubNode | def get_description(self) -> str:
return get_subnode_description(self.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def child_description(self):\n return self._child_description",
"def description(self) -> ConfigNodePropertyString:\n return self._description",
"def get_description(self):\r\n return self.__description",
"def get_description(self):\n return self.__description",
"def _get_descriptio... | [
"0.7491883",
"0.74526656",
"0.7441095",
"0.7428451",
"0.73584414",
"0.73584414",
"0.7320897",
"0.7281533",
"0.7281533",
"0.7281533",
"0.7281533",
"0.7272019",
"0.7267408",
"0.7267147",
"0.72643393",
"0.7242761",
"0.7238247",
"0.72370285",
"0.7222039",
"0.7222026",
"0.7222026"... | 0.89946955 | 0 |
Returns the subfiles of this node as a list of filepaths | def get_subfiles(self) -> Set[str]:
# Return
self._update_subfiles()
return self.subfiles | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_subfiles(self) -> Set[str]:\n\t\tself.subfiles.clear()\n\t\t# Iterate over Nodes\n\t\tfor node in self.nodes:\n\t\t\tself.subfiles.update(node.get_subfiles())\n\t\t# Iterate over SubNodes\n\t\tfor subnode in self.subnodes:\n\t\t\tself.subfiles.update(subnode.filenames)\n\t\t# Return\n\t\treturn self.subfil... | [
"0.79736865",
"0.7617135",
"0.74795264",
"0.73072296",
"0.7300694",
"0.7164513",
"0.7117055",
"0.7095911",
"0.7037983",
"0.70321304",
"0.69595623",
"0.691219",
"0.68929154",
"0.68370867",
"0.6796111",
"0.6791188",
"0.6768988",
"0.6735134",
"0.6724708",
"0.6717972",
"0.6697078... | 0.78955215 | 1 |
Send a slack message over a given channel ID. | def send_user_message(self, channel_id, message):
self.slack_client.api_call('chat.postMessage', as_user='true', channel=channel_id, text=message) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def send_message(channel, message):\n slack_client = get_client()\n slack_client.chat_postMessage(channel=channel, text=message, as_user=True)",
"def send_slack(self, message):\n self.slack_client.api_call('chat.postMessage', channel=self.slack_channel, text=message, username=self.username, icon_emo... | [
"0.7861291",
"0.76161283",
"0.74672025",
"0.7451859",
"0.71247655",
"0.7085693",
"0.69763035",
"0.6853353",
"0.683358",
"0.68074054",
"0.6794846",
"0.6745183",
"0.6717402",
"0.6664699",
"0.665518",
"0.664332",
"0.6540405",
"0.6495023",
"0.6493282",
"0.64634573",
"0.64491856",... | 0.7738554 | 1 |
If expire date of Content is in the past, the state should be taken as disabled | def check_content_expiry_date(self):
if self.expire_date < datetime.now():
self.state = 'disabled' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def is_expired(self):\n return self._bExpired",
"def has_expired(self) -> bool:\n raise NotImplementedError() # pragma: nocover",
"def isExpired(self):\n return True/False",
"def is_expired(self):\n return self.expiration_date <= self._now()",
"def is_access_expired(self) -> bo... | [
"0.6711527",
"0.6693989",
"0.6675325",
"0.6669093",
"0.6604072",
"0.65660065",
"0.65542835",
"0.6514346",
"0.65125465",
"0.6511505",
"0.6446329",
"0.64104444",
"0.63421744",
"0.6329545",
"0.62852526",
"0.62517685",
"0.6236602",
"0.62328106",
"0.62288356",
"0.62171566",
"0.621... | 0.8748832 | 0 |
Create and sort the sortedPeerList. This function makes self.sortedPeerList into a list of pairs of the form (space, peer) where space reprsents how much space the corresponding peer has left for us. Calling ResortPeers makes self.sortedPeerList be sorted in decreasing order of space. | def ResortPeers(self):
self.sortedPeerList = []
append = self.sortedPeerList.append
for i in self.peerDatabase.keys():
append((self.peerDatabase[i].RemainingRemoteStorage(), i))
self.sortedPeerList.sort()
self.sortedPeerList.reverse() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sorting(self, presorted=None):\n self._sorted_nodes = []\n if presorted:\n notsorted_nodes = copy(presorted)\n else:\n notsorted_nodes = copy(self.nodes)\n predecessors = {key: copy(val) for (key, val) in self.predecessors.items()}\n\n # nodes that depen... | [
"0.5779738",
"0.5640747",
"0.5505652",
"0.54855466",
"0.5430541",
"0.53985274",
"0.53779906",
"0.5371623",
"0.5249161",
"0.52239215",
"0.5214713",
"0.51763153",
"0.51451105",
"0.5139356",
"0.5114089",
"0.5098765",
"0.5092019",
"0.50867665",
"0.5076456",
"0.5072832",
"0.506788... | 0.8069365 | 0 |
Create a Get Request object | def Get(cls, context, response_queue, endpoint):
request = Request(context, response_queue, type_="Get")
request.fields['endpoint'] = endpoint
return request | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get(self, **kwargs):\r\n params = base.get_params(None, kwargs, serialize_param=serialize_param)\r\n request = http.Request('GET', self.get_url(), params)\r\n\r\n return request, parsers.parse_json",
"def get(self, **kwargs):\r\n params = base.get_params(None, kwargs, serialize_pa... | [
"0.74778265",
"0.74778265",
"0.74778265",
"0.74778265",
"0.74778265",
"0.74778265",
"0.7320663",
"0.72249794",
"0.71886295",
"0.71839184",
"0.7057187",
"0.7040227",
"0.70317423",
"0.6978874",
"0.6854426",
"0.6843219",
"0.6843219",
"0.6838848",
"0.6783002",
"0.6771325",
"0.671... | 0.0 | -1 |
Create a Post Request object | def Post(cls, context, response_queue, endpoint, parameters=None):
request = Request(context, response_queue, type_="Post")
request.fields['endpoint'] = endpoint
if parameters is not None:
request.fields['parameters'] = parameters
return request | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _createPostRequest(self, postBody: dict) -> object:\n request = HttpRequest()\n request.method = \"POST\"\n for name,value in postBody.items():\n request.POST[name]= value\n return request",
"def post(self):\r\n data = request.form\r\n return create(data=d... | [
"0.8117199",
"0.746805",
"0.7297399",
"0.7297399",
"0.7297399",
"0.7230386",
"0.7148129",
"0.7007911",
"0.6987251",
"0.693106",
"0.6885852",
"0.68249905",
"0.67614937",
"0.6702317",
"0.6666563",
"0.6634968",
"0.6616799",
"0.6616799",
"0.6616799",
"0.6616799",
"0.6616799",
"... | 0.659338 | 79 |
Returns true if both objects are equal | def __eq__(self, other):
if not isinstance(other, DomainNameInfo):
return False
return self.__dict__ == other.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __eq__(self, other):\n return are_equal(self, other)",
"def __eq__(self, other):\n return are_equal(self, other)",
"def __eq__(self,other):\n try: return self.object==other.object and isinstance(self,type(other))\n except: return False",
"def __eq__(self, other):\n if i... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def __ne__(self, other):
return not self == other | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __ne__(self, other: object) -> bool:\n if self.__eq__(other):\n return False\n return True",
"def __ne__(self, other: object) -> bool:\n return not self.__eq__(other)",
"def __ne__(self, other) -> bool:\n return not self.__eq__(other)",
"def __eq__(self, other):\n ... | [
"0.8456063",
"0.83918154",
"0.8144437",
"0.8140196",
"0.8132038",
"0.8093834",
"0.80918837",
"0.80918837",
"0.80918837",
"0.80852824",
"0.80852824",
"0.807626",
"0.807626",
"0.80657643"
] | 0.0 | -1 |
Given a corpus (represented as a List of str or a ListofList of str, etc.), returns a set of unique words that occur | def vocab_from_text_corpus(test_corpus: Iterable) -> Set[str]:
return set(VocabUtils.flatten(test_corpus)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def distinct_words(corpus):\n corpus_words = []\n num_corpus_words = -1\n \n # YOUR CODE HERE\n \n for i in corpus:\n for j in i:\n corpus_words.append(j)\n \n corpus_words = set(corpus_words)\n \n corpus_words = sorted(list(corpus_words))\n \n num_corp... | [
"0.7914302",
"0.78018475",
"0.76511806",
"0.7400431",
"0.7264525",
"0.71666396",
"0.6951015",
"0.6885815",
"0.6875238",
"0.6855185",
"0.6846029",
"0.68187755",
"0.6807271",
"0.6693765",
"0.6661196",
"0.66142166",
"0.6503323",
"0.64802855",
"0.6459022",
"0.6452083",
"0.6437887... | 0.70943236 | 6 |
Simple wrapper to create HTML from dataframe If a columns ends in _links and a name_links exists, then the columns name will be shown with the clickable name_links. | def df2html(df, name=None, dom="Brt", show_index=False, pageLength=15):
if name is None:
name = uuid.uuid1().time_low
# looks like datatable does not like ID made of numbers, even in string
# so we convert to ABCDEFGH values
name = "".join([chr(65 + int(x)) for x in str(name)])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Table(dataframe, link_column_name=None, col1=None, col2=None, drop=[]):\n if link_column_name:\n if col2:\n links1 = dataframe[link_column_name] \\\n .map(lambda x: x.replace(' ', '').split(';')[0]).values\n links2 = dataframe[link_column_name] \\\n ... | [
"0.741266",
"0.6493886",
"0.64900213",
"0.6178041",
"0.6175615",
"0.6114066",
"0.6065273",
"0.60647064",
"0.59993804",
"0.5987304",
"0.5852809",
"0.5819677",
"0.5774081",
"0.57684815",
"0.5758025",
"0.56793076",
"0.5654185",
"0.5645032",
"0.56310105",
"0.558185",
"0.55790925"... | 0.702293 | 1 |
Class that convert tensor to PIL image internally for apply PIL transforms. Tensors images must have the shape (width, height, 3). | def __init__(self, pil_transform: ImageTransform, mode: Optional[str] = 'RGB', p: float = 1.0):
super().__init__(
transform=pil_transform,
pre_convert=ToPIL(mode=mode),
post_convert=ToTensor(),
p=p,
) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tensor_to_image(img):\n t = transforms.ToPILImage()\n return t(img)",
"def to_image(tensor):\n # Converts to PIL image\n unloader = transforms.ToPILImage()\n # Clone the tensor to CPU\n image = tensor.cpu().clone()\n # Remove fake batch dimension\n image = image.squeeze(0)\n # Conv... | [
"0.7783741",
"0.7518435",
"0.7265612",
"0.7197102",
"0.71850747",
"0.71597123",
"0.68767506",
"0.66744244",
"0.662048",
"0.660129",
"0.64636064",
"0.6445572",
"0.64114696",
"0.63980967",
"0.63678646",
"0.6291518",
"0.6266331",
"0.6222434",
"0.6146803",
"0.61449",
"0.6120594",... | 0.0 | -1 |
Class that convert PIL image to tensor internally for apply tensor transforms. Tensors images will have the shape (width, height, 3). | def __init__(self, pil_transform: ImageTransform, p: float = 1.0):
super().__init__(
transform=pil_transform,
pre_convert=ToTensor(),
post_convert=ToPIL(mode=None),
p=p,
) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pil_to_tensor(img):\n img = ToTensor()(img)\n return img",
"def tensor_to_image(img):\n t = transforms.ToPILImage()\n return t(img)",
"def pil_to_tensor(pil_image):\n pil_image = np.array(pil_image)\n if len(pil_image.shape) == 2:\n pil_image = pil_image[:, :, None]\n return tor... | [
"0.78928095",
"0.7507974",
"0.73703563",
"0.7285657",
"0.7034682",
"0.7026772",
"0.6935064",
"0.6912186",
"0.6881621",
"0.67285275",
"0.67285275",
"0.67285275",
"0.66712356",
"0.6612038",
"0.6563376",
"0.65623134",
"0.6526314",
"0.6493744",
"0.64934283",
"0.6468612",
"0.64613... | 0.0 | -1 |
Initialise and store a Theano RandomStream. | def initialise_theano_rng(self):
self.theano_rng = RandomStreams(self.rng.randint(2**30)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def theano_rng_instance(theano_rng=None):\n\n if theano_rng is None:\n numpy_rng = RandomState(None)\n return RandomStreams(numpy_rng.randint(2 ** 30))\n elif isinstance(theano_rng, RandomStreams):\n return theano_rng\n else:\n return RandomStreams(theano_rng)",
"def __init__... | [
"0.66926306",
"0.5921918",
"0.5885132",
"0.5869138",
"0.5863587",
"0.58523446",
"0.56835645",
"0.5622077",
"0.5596896",
"0.5596173",
"0.55758286",
"0.5563027",
"0.55134076",
"0.54877615",
"0.5480232",
"0.54708296",
"0.54324883",
"0.5418341",
"0.5414491",
"0.54073477",
"0.5404... | 0.7651153 | 0 |
Initialises and subsequently stores a weight matrix, bias vector, reverse bias vector, label weight matrix, and label bias vector. | def initialise_parameters(self):
low = -numpy.sqrt(6/(self.input_dimension + self.hidden_dimension))
high = numpy.sqrt(6/(self.input_dimension + self.hidden_dimension))
if self.activation is theano.tensor.nnet.sigmoid:
# We know the optimum distribution for tanh and sigmoid, so we
# assume that we're using... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __init__(self, InputDimentions, OutputDimentions, numberOfLayers, WeightArray, BiasArray):\r\n self.WeightMatrixT = WeightArray\r\n self.WeightMatrixT.shape = (numberOfLayers, OutputDimentions, InputDimentions)\r\n self.BiasVector = BiasArray\r\n self.BiasVector.shape = (numberOfLay... | [
"0.68563277",
"0.674229",
"0.6547405",
"0.6539918",
"0.65292823",
"0.65087634",
"0.64378566",
"0.64353913",
"0.641225",
"0.6393696",
"0.63728285",
"0.63207996",
"0.6320336",
"0.63075906",
"0.6292416",
"0.62805015",
"0.6275747",
"0.6266365",
"0.6259267",
"0.62470794",
"0.62405... | 0.59102684 | 53 |
Get the rate of incorrect prediction. | def error_rate(self):
return theano.tensor.mean(theano.tensor.neq(
self.get_symbolic_predicted_labels(),
self.symbolic_output)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def realistic_error_rate(predictions, labels, predicted_hardness):\n # # print (predicted_hardness)\n # predicted_hardness = predicted_hardness / np.sum(predicted_hardness)\n # # print (np.argmax(predictions, 1) == labels)\n # # print (np.multiply(np.argmax(predictions, 1) == labels, np.squeeze(predict... | [
"0.760404",
"0.7549043",
"0.75191957",
"0.7465532",
"0.7452852",
"0.7436603",
"0.73961145",
"0.73736537",
"0.7303379",
"0.7164207",
"0.70232165",
"0.7017572",
"0.6933194",
"0.68897784",
"0.6752507",
"0.6734781",
"0.6722157",
"0.67139566",
"0.6681957",
"0.6642732",
"0.6635169"... | 0.7390759 | 7 |
Get this instance's line color. Returns | def line_color(self) -> String:
from apysc.type import value_util
self._initialize_line_color_if_not_initialized()
line_color: String = value_util.get_copy(value=self._line_color)
return line_color | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def line_color(self, line_color=None):\n\n if line_color is None:\n return self._line_color\n else:\n self._line_color = process_color(line_color)",
"def getColor(self):\n return self._l[2]",
"def line_style(self):\n return self.container['line_style']",
"def... | [
"0.770027",
"0.7421118",
"0.7408312",
"0.736522",
"0.7331885",
"0.7331885",
"0.7329629",
"0.7308376",
"0.7296475",
"0.7296475",
"0.7296475",
"0.72952676",
"0.72895986",
"0.7232294",
"0.72045547",
"0.71542615",
"0.709389",
"0.709389",
"0.6977604",
"0.6957871",
"0.69491214",
... | 0.8921108 | 0 |
Initialize line_color attribute if that value is not initialized yet. | def _initialize_line_color_if_not_initialized(self) -> None:
if hasattr(self, '_line_color'):
return
self._line_color = String('') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def line_color(self, line_color=None):\n\n if line_color is None:\n return self._line_color\n else:\n self._line_color = process_color(line_color)",
"def _set_initial_line_color_if_not_blank(\r\n self, line_color: Union[str, String]) -> None:\r\n if line_colo... | [
"0.76017857",
"0.7532733",
"0.737249",
"0.7006527",
"0.6649427",
"0.6515199",
"0.64075655",
"0.6296545",
"0.6234075",
"0.61868125",
"0.6166335",
"0.60940903",
"0.594478",
"0.588962",
"0.5842873",
"0.5791789",
"0.5695884",
"0.5677837",
"0.56704134",
"0.5659368",
"0.56508523",
... | 0.89350265 | 0 |
Gets the dry_cargo of this Spacecraft. | def dry_cargo(self):
return self._dry_cargo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dry_cargo(self, dry_cargo):\n\n self._dry_cargo = dry_cargo",
"def dry_run(self) -> pulumi.Output[Optional[bool]]:\n return pulumi.get(self, \"dry_run\")",
"def cargo_water(self):\n return self._cargo_water",
"def dry_run(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.... | [
"0.64288855",
"0.6070274",
"0.5948427",
"0.5757063",
"0.5757063",
"0.5363099",
"0.53144836",
"0.5276114",
"0.51424456",
"0.50927114",
"0.5083731",
"0.5051038",
"0.49827972",
"0.49472588",
"0.49245432",
"0.48579836",
"0.48417994",
"0.48207414",
"0.4773686",
"0.4770801",
"0.474... | 0.8211533 | 0 |
Sets the dry_cargo of this Spacecraft. | def dry_cargo(self, dry_cargo):
self._dry_cargo = dry_cargo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dry_cargo(self):\n return self._dry_cargo",
"def dry_run(self, dry_run):\n\n self._dry_run = dry_run",
"def dry(self):\n self._dry = True\n return self",
"def set_dry_run(self):\n self._dry_run = True",
"def server_dry_run(self, server_dry_run):\n\n self._serve... | [
"0.6853287",
"0.6441958",
"0.60313684",
"0.6016102",
"0.5582049",
"0.5413748",
"0.5413748",
"0.53815925",
"0.51850575",
"0.49588585",
"0.49392948",
"0.47197777",
"0.46243194",
"0.45830718",
"0.45550528",
"0.4528372",
"0.45050922",
"0.44495478",
"0.43873328",
"0.42850843",
"0.... | 0.86960876 | 0 |
Gets the decay of this Spacecraft. | def decay(self):
return self._decay | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def space_decay_rate(self):\n dt = (datetime.datetime.utcnow() - self.initial_time).total_seconds() # delta t\n ds = self.available_space() - self.initial_space_remaining # delta space\n return ds / dt",
"def get_decay_estimate (self, numpoints=512):\n\n integrated_rydberg_population ... | [
"0.6715429",
"0.6699485",
"0.6630756",
"0.63794696",
"0.6330176",
"0.6278726",
"0.6226356",
"0.6190865",
"0.617223",
"0.59419477",
"0.5687648",
"0.5664167",
"0.5611449",
"0.55977154",
"0.5594006",
"0.55888236",
"0.5558495",
"0.5525026",
"0.54987764",
"0.54975885",
"0.5494588"... | 0.85876477 | 0 |
Gets the type of this Spacecraft. | def type(self):
return self._type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_type (self):\n return self._stype",
"def getType(self):\n return self.type_",
"def get_type(self):\n return self.type",
"def get_type(self):\n return self.type",
"def getType(self):\n return self.type",
"def get_type(self):\n return self._type",
"def ge... | [
"0.71935666",
"0.70367795",
"0.70215863",
"0.70215863",
"0.6999389",
"0.6971449",
"0.6971449",
"0.6958151",
"0.6949528",
"0.6927185",
"0.68870926",
"0.6885144",
"0.6879965",
"0.6829798",
"0.67830795",
"0.6777903",
"0.67767876",
"0.67767876",
"0.6714338",
"0.6714338",
"0.67143... | 0.682054 | 35 |
Gets the diameter of this Spacecraft. | def diameter(self):
return self._diameter | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_diameter(self):\n\n if self.no_dist is False:\n dist = self.distance\n diam = dist * self.ang_size / 60. * np.pi/180. * ct._kpc_over_pc_\n self.diam = diam\n else:\n self.diam = -1 # use -1 to indicate unknown diameter\n\n return self.diam",... | [
"0.7895922",
"0.78513634",
"0.78513634",
"0.77317595",
"0.7076578",
"0.65691674",
"0.6454467",
"0.6450218",
"0.6417475",
"0.6321805",
"0.6291493",
"0.6230077",
"0.6184199",
"0.61638105",
"0.6046626",
"0.6046626",
"0.60092574",
"0.5993252",
"0.59703547",
"0.59479195",
"0.59267... | 0.81549305 | 0 |
Sets the diameter of this Spacecraft. | def diameter(self, diameter):
self._diameter = diameter | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def diameter(self, diameter):\n self.radius = diameter / 2",
"def diameter(self, value):\n try:\n value = float(value)\n if (value < 0.0) == True:\n print('The diameter must be a non-negative numeric value.')\n return None\n else:\n ... | [
"0.7586061",
"0.6369327",
"0.61824244",
"0.61509424",
"0.61509424",
"0.61402345",
"0.61402345",
"0.56794244",
"0.56035805",
"0.5573808",
"0.55335236",
"0.54612494",
"0.54377615",
"0.52726126",
"0.5229796",
"0.52000713",
"0.51976955",
"0.5179064",
"0.51573366",
"0.5155313",
"0... | 0.8021766 | 0 |
Gets the design_company of this Spacecraft. | def design_company(self):
return self._design_company | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def company(self):\n return self._company",
"def company(self):\n return self._company",
"def get_company(self, name):\n return self.instance.company.id",
"def get_com(self):\n return self.com",
"def get_company(self, name):\n return self.website.company.id",
"def get_c... | [
"0.6991219",
"0.6991219",
"0.6400067",
"0.62411916",
"0.6219027",
"0.6197271",
"0.60732913",
"0.60722786",
"0.60722786",
"0.5996161",
"0.59917456",
"0.5832202",
"0.57445604",
"0.5675583",
"0.5672642",
"0.56660247",
"0.55434525",
"0.5508507",
"0.5500645",
"0.54621357",
"0.5456... | 0.8668544 | 0 |
Gets the discharge of this Spacecraft. | def discharge(self):
return self._discharge | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_charge(self):\n\n return self.charge",
"def get_charge(self):\n\n return self._charge",
"def getCharge(self):\n return _libsbml.Species_getCharge(self)",
"def get_charge(self):\n return -self.get_len() - 1",
"def get_charge(self):\n return -self.get_len() - 1",
... | [
"0.70107776",
"0.6989287",
"0.65112203",
"0.6375572",
"0.6375572",
"0.63674664",
"0.6347565",
"0.6317768",
"0.6179342",
"0.608809",
"0.60448796",
"0.604448",
"0.6016235",
"0.5924026",
"0.5907877",
"0.5874467",
"0.58518696",
"0.5848844",
"0.5783658",
"0.578333",
"0.57215977",
... | 0.8033774 | 0 |
Sets the discharge of this Spacecraft. | def discharge(self, discharge):
self._discharge = discharge | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def start_discharge(self):\n self.set_discharging()\n self.discharge_stats = DischargeStats(\n self.temperature, self.voltage_and_current[\"voltage\"]\n )\n self.discharge_pin.on()\n log.debug(\"Cell started discharging on slot {}.\".format(self.channel))",
"def disc... | [
"0.62753594",
"0.62274534",
"0.61867553",
"0.5895123",
"0.5861144",
"0.5849344",
"0.5818172",
"0.57408494",
"0.5721141",
"0.5665163",
"0.5637284",
"0.5570965",
"0.54331726",
"0.53661186",
"0.5349898",
"0.53245765",
"0.529664",
"0.5279124",
"0.5173267",
"0.5167174",
"0.5152656... | 0.7722537 | 0 |
Gets the port2_docked_time of this Spacecraft. | def port2_docked_time(self):
return self._port2_docked_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def port1_docked_time(self):\n return self._port1_docked_time",
"def port2_docked_time(self, port2_docked_time):\n\n self._port2_docked_time = port2_docked_time",
"def port2_docking_date(self):\n return self._port2_docking_date",
"def docked_time(self):\n return self._docked_time"... | [
"0.79878724",
"0.76142067",
"0.7576015",
"0.7081129",
"0.6513097",
"0.62294835",
"0.6000511",
"0.5949206",
"0.5730192",
"0.56834954",
"0.5591115",
"0.55835646",
"0.55629206",
"0.5557595",
"0.55424243",
"0.55424243",
"0.55232114",
"0.5505494",
"0.5483659",
"0.5474985",
"0.5467... | 0.9022602 | 0 |
Gets the id of this Spacecraft. | def id(self):
return self._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_id(self):\n return self._id",
"def get_id(self):\n return self._id",
"def get_id(self):\n return self._id",
"def get_id(self):\n return self._id",
"def get_id(self):\n return self._id",
"def get_id(self):\n return self._id",
"def get_id(self):\n\n\t\tre... | [
"0.7084551",
"0.7084551",
"0.7084551",
"0.7084551",
"0.7084551",
"0.7084551",
"0.70649296",
"0.704627",
"0.704627",
"0.70271504",
"0.70271504",
"0.70271504",
"0.70271504",
"0.70271504",
"0.70271504",
"0.70271504",
"0.70271504",
"0.70271504",
"0.70271504",
"0.70271504",
"0.702... | 0.0 | -1 |
Sets the id of this Spacecraft. | def id(self, id):
self._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_id(self, id_):\n\n self.id_ = id_",
"def set_id(self, id):\n self.__id = id",
"def SetId(self, id):\n self.id = int(id)",
"def set_id(self, id):\n self.data['id'] = id",
"def set_id(self, player_id):\n pass",
"def set_id(self, id):\n self.id = id\n ... | [
"0.7379185",
"0.73414165",
"0.72783136",
"0.721103",
"0.7158935",
"0.70650184",
"0.69844574",
"0.6964671",
"0.6920967",
"0.6920177",
"0.69126153",
"0.69126153",
"0.69126153",
"0.69126153",
"0.69126153",
"0.69126153",
"0.69126153",
"0.69126153",
"0.69126153",
"0.69126153",
"0.... | 0.0 | -1 |
Sets the port1_docking_date of this Spacecraft. | def port1_docking_date(self, port1_docking_date):
self._port1_docking_date = port1_docking_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def port2_docking_date(self, port2_docking_date):\n\n self._port2_docking_date = port2_docking_date",
"def port1_docked_time(self, port1_docked_time):\n\n self._port1_docked_time = port1_docked_time",
"def port1_docking_date(self):\n return self._port1_docking_date",
"def port2_docking_d... | [
"0.8230655",
"0.8145153",
"0.79398036",
"0.7098099",
"0.6876539",
"0.64650595",
"0.64285344",
"0.5907187",
"0.5701023",
"0.55455893",
"0.55415225",
"0.5533897",
"0.5468415",
"0.5467587",
"0.5443795",
"0.5417303",
"0.5338646",
"0.5278154",
"0.52345467",
"0.515842",
"0.5153734"... | 0.9190449 | 0 |
Gets the height of this Spacecraft. | def height(self):
return self._height | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getHeight(self):\n return self._height",
"def get_height(self) -> int:\n return int(self._surface.get_height())",
"def get_height(self):\n return self._height",
"def get_height(self):\n return self._height",
"def get_height(self):\n return self._height",
"def get_he... | [
"0.78107363",
"0.77669823",
"0.77442455",
"0.77442455",
"0.77442455",
"0.77442455",
"0.7739031",
"0.7723595",
"0.7723595",
"0.77112263",
"0.77012354",
"0.76539826",
"0.76249844",
"0.761287",
"0.761287",
"0.761287",
"0.75865155",
"0.75865155",
"0.75695276",
"0.7494329",
"0.749... | 0.75335944 | 26 |
Gets the model_end_date of this Spacecraft. | def model_end_date(self):
return self._model_end_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def end_date(self):\n return self.__end_date",
"def end_date(self):\n return self._end_date",
"def end_date(self):\n return self._end_date",
"def end_date(self):\n return self._end_date",
"def end_date(self) -> str:\n return self._end_date",
"def end_date(self) -> str:\... | [
"0.7663897",
"0.7657104",
"0.7657104",
"0.7657104",
"0.75761664",
"0.750576",
"0.750576",
"0.71602786",
"0.71602786",
"0.7090861",
"0.7037268",
"0.69119716",
"0.6868205",
"0.6742071",
"0.671814",
"0.66641796",
"0.6586751",
"0.65350425",
"0.6510802",
"0.6496797",
"0.6451505",
... | 0.8831463 | 0 |
Sets the model_end_date of this Spacecraft. | def model_end_date(self, model_end_date):
self._model_end_date = model_end_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def end_date(self, end_date):\n\n self._end_date = end_date",
"def end_date(self, end_date):\n\n self._end_date = end_date",
"def end_date(self, end_date):\n\n self._end_date = end_date",
"def end_date(self, end_date):\n\n self._end_date = end_date",
"def end_date(self, end_date... | [
"0.7407657",
"0.7407657",
"0.7407657",
"0.7407657",
"0.7407657",
"0.7407657",
"0.7407657",
"0.7407657",
"0.7406623",
"0.73963726",
"0.7386436",
"0.7349551",
"0.7176558",
"0.7050661",
"0.70129323",
"0.6958972",
"0.691922",
"0.6894194",
"0.6728668",
"0.6686268",
"0.66524386",
... | 0.87571067 | 0 |
Gets the number_of_launches of this Spacecraft. | def number_of_launches(self):
return self._number_of_launches | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def num_launches(self):\n return len(self.launches)",
"def number_of_players(self) -> int:\n return self.param.number_of_players",
"def count(self):\n return len(self._runs)",
"def get_number_of_cheeses(self):\n number = 0\n for i in range(len(self._stools)):\n n... | [
"0.7954539",
"0.68803376",
"0.6850515",
"0.684882",
"0.68117857",
"0.68108946",
"0.68016446",
"0.66290873",
"0.65574515",
"0.65560347",
"0.6517465",
"0.65032405",
"0.65032405",
"0.64930665",
"0.64902484",
"0.6480057",
"0.6478535",
"0.6466344",
"0.6442785",
"0.64271545",
"0.64... | 0.8474059 | 0 |
Gets the port1_undocking_date of this Spacecraft. | def port1_undocking_date(self):
return self._port1_undocking_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def port2_undocking_date(self):\n return self._port2_undocking_date",
"def port1_undocking_date(self, port1_undocking_date):\n\n self._port1_undocking_date = port1_undocking_date",
"def port1_docking_date(self):\n return self._port1_docking_date",
"def port2_undocking_date(self, port2_un... | [
"0.8225115",
"0.75680065",
"0.7168526",
"0.67763865",
"0.6647957",
"0.6467863",
"0.58793837",
"0.5787947",
"0.5466625",
"0.5315772",
"0.5310169",
"0.5277467",
"0.52676696",
"0.51843",
"0.5160444",
"0.5160444",
"0.51489633",
"0.5135142",
"0.51222074",
"0.51165754",
"0.51001865... | 0.8843881 | 0 |
Sets the port1_undocking_date of this Spacecraft. | def port1_undocking_date(self, port1_undocking_date):
self._port1_undocking_date = port1_undocking_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def port2_undocking_date(self, port2_undocking_date):\n\n self._port2_undocking_date = port2_undocking_date",
"def port1_undocking_date(self):\n return self._port1_undocking_date",
"def port1_docking_date(self, port1_docking_date):\n\n self._port1_docking_date = port1_docking_date",
"def... | [
"0.8006814",
"0.76762056",
"0.7131523",
"0.69180703",
"0.63925153",
"0.6260942",
"0.599255",
"0.53042525",
"0.5252405",
"0.5233986",
"0.52299947",
"0.5163422",
"0.51247466",
"0.5108752",
"0.50847745",
"0.49937388",
"0.4968627",
"0.4968627",
"0.4968627",
"0.4968627",
"0.496862... | 0.888339 | 0 |
Gets the model_end_year of this Spacecraft. | def model_end_year(self):
return self._model_end_year | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def model_end_year(self, model_end_year):\n\n self._model_end_year = model_end_year",
"def model_end_date(self):\n return self._model_end_date",
"def end_year(self) -> float:\n\n end_year = -np.inf\n for td_table in list(self.tdve.values()) + self.transfers + self.interpops:\n ... | [
"0.7186391",
"0.7034973",
"0.6995216",
"0.6812755",
"0.6389624",
"0.636755",
"0.6305356",
"0.5998804",
"0.5995232",
"0.5992759",
"0.5984055",
"0.5984055",
"0.5961132",
"0.59455884",
"0.59455884",
"0.5935879",
"0.59199953",
"0.59199953",
"0.59199953",
"0.5919408",
"0.59028727"... | 0.8971776 | 0 |
Sets the cargo_water of this Spacecraft. | def cargo_water(self, cargo_water):
self._cargo_water = cargo_water | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cargo_water(self):\n return self._cargo_water",
"def with_water(self, water):\n self.ingredients.append(water)\n return self",
"def cargo_gas(self, cargo_gas):\n\n self._cargo_gas = cargo_gas",
"def dry_cargo(self, dry_cargo):\n\n self._dry_cargo = dry_cargo",
"def to... | [
"0.6683401",
"0.6260906",
"0.57476485",
"0.5518707",
"0.5506857",
"0.5470635",
"0.5456487",
"0.5344573",
"0.5270987",
"0.5270987",
"0.5267459",
"0.52615577",
"0.523927",
"0.51753706",
"0.5164029",
"0.51606476",
"0.5144924",
"0.51211244",
"0.5092089",
"0.507959",
"0.5072092",
... | 0.8945847 | 0 |
Gets the port2_undocking_date of this Spacecraft. | def port2_undocking_date(self):
return self._port2_undocking_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def port1_undocking_date(self):\n return self._port1_undocking_date",
"def port2_undocking_date(self, port2_undocking_date):\n\n self._port2_undocking_date = port2_undocking_date",
"def port2_docking_date(self):\n return self._port2_docking_date",
"def port2_docked_time(self):\n r... | [
"0.79000795",
"0.75659096",
"0.71020186",
"0.65899324",
"0.6336071",
"0.6089205",
"0.5767438",
"0.55567634",
"0.5456903",
"0.5275238",
"0.5246497",
"0.5237955",
"0.5207408",
"0.51855093",
"0.51764315",
"0.5157098",
"0.5132525",
"0.51189286",
"0.50600743",
"0.505553",
"0.50145... | 0.88302207 | 0 |
Sets the port2_undocking_date of this Spacecraft. | def port2_undocking_date(self, port2_undocking_date):
self._port2_undocking_date = port2_undocking_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def port1_undocking_date(self, port1_undocking_date):\n\n self._port1_undocking_date = port1_undocking_date",
"def port2_undocking_date(self):\n return self._port2_undocking_date",
"def port2_docking_date(self, port2_docking_date):\n\n self._port2_docking_date = port2_docking_date",
"def... | [
"0.7843775",
"0.75181526",
"0.7227874",
"0.68706244",
"0.6356779",
"0.6026486",
"0.5864839",
"0.5373051",
"0.53073674",
"0.5152668",
"0.4990175",
"0.49589798",
"0.49251723",
"0.49239057",
"0.48911008",
"0.47839928",
"0.47596103",
"0.47403622",
"0.47386652",
"0.47326168",
"0.4... | 0.8869214 | 0 |
Gets the port1_docked_time of this Spacecraft. | def port1_docked_time(self):
return self._port1_docked_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def port2_docked_time(self):\n return self._port2_docked_time",
"def port1_docking_date(self):\n return self._port1_docking_date",
"def port1_docked_time(self, port1_docked_time):\n\n self._port1_docked_time = port1_docked_time",
"def docked_time(self):\n return self._docked_time"... | [
"0.8301564",
"0.77996725",
"0.76046395",
"0.7511977",
"0.7197002",
"0.65782225",
"0.61322093",
"0.5834395",
"0.55743015",
"0.5538075",
"0.54881996",
"0.54819435",
"0.5431455",
"0.54101354",
"0.5400739",
"0.5392569",
"0.5380806",
"0.5361312",
"0.53144306",
"0.5312991",
"0.5292... | 0.90738124 | 0 |
Gets the weight of this Spacecraft. | def weight(self):
return self._weight | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_weight(self):\n return self.weight",
"def get_weight(self):\n return self.weight",
"def get_weight(self):\n return self.weight # return the weight value",
"def weight(self) -> int:\n return pulumi.get(self, \"weight\")",
"def weight(self) -> float:\r\n return sel... | [
"0.8437161",
"0.8437161",
"0.84129953",
"0.8229091",
"0.8126596",
"0.81036973",
"0.8000279",
"0.79413617",
"0.7912064",
"0.7890423",
"0.78582156",
"0.78165394",
"0.78165394",
"0.7808276",
"0.7698458",
"0.76229334",
"0.7613713",
"0.76084936",
"0.76084936",
"0.76084936",
"0.760... | 0.8185396 | 5 |
Sets the weight of this Spacecraft. | def weight(self, weight):
self._weight = weight | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def setWeight(self, w):\n self._W = w",
"def set_weight(self, weight):\n self.weight = weight # overwrite the existing weight with the input weight value",
"def change_weight(self, new_weight):\r\n self.old_weight = self.weight\r\n self.weight = new_weight",
"def _set_weight(self... | [
"0.83215433",
"0.8003652",
"0.73709804",
"0.73070824",
"0.71375364",
"0.7124869",
"0.71178865",
"0.7066813",
"0.6940779",
"0.6940779",
"0.6940779",
"0.6935394",
"0.6935394",
"0.6935394",
"0.69030046",
"0.68871063",
"0.68207943",
"0.67744595",
"0.67236835",
"0.6702657",
"0.667... | 0.789206 | 4 |
Gets the version of this Spacecraft. | def version(self):
return self._version | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_version(self):\r\n return self._arm.get_version()",
"def get_version(self):\n return self.version",
"def get_version(self):\n return self._version",
"def get_version(self):\n return self._version",
"def get(self):\n return self._version",
"def get_version(self):... | [
"0.78442717",
"0.78423584",
"0.7802351",
"0.7802351",
"0.7773495",
"0.77054465",
"0.76792556",
"0.7672526",
"0.7568893",
"0.7568041",
"0.7568041",
"0.7557706",
"0.7535649",
"0.7524678",
"0.74741143",
"0.74717253",
"0.7451595",
"0.74477375",
"0.74291795",
"0.7416558",
"0.74123... | 0.74382675 | 28 |
Sets the apoapsis of this Spacecraft. | def apoapsis(self, apoapsis):
self._apoapsis = apoapsis | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def anexos(self, anexos):\n self._anexos = anexos",
"def apoapsis(self):\n return self._apoapsis",
"def apoapsis(self):\n return self._apoapsis",
"def periapsis(self, periapsis):\n\n self._periapsis = periapsis",
"def periapsis(self, periapsis):\n\n self._periapsis = peri... | [
"0.58883655",
"0.58110654",
"0.58110654",
"0.5758401",
"0.5758401",
"0.56084216",
"0.5525326",
"0.55043226",
"0.5381818",
"0.53703815",
"0.5353066",
"0.5332656",
"0.53318965",
"0.5313264",
"0.52549124",
"0.5215381",
"0.5202341",
"0.518913",
"0.5179341",
"0.51300025",
"0.50870... | 0.72856635 | 1 |
Gets the discharge_average of this Spacecraft. | def discharge_average(self):
return self._discharge_average | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def discharge_average(self, discharge_average):\n\n self._discharge_average = discharge_average",
"def average_damage(self) -> float:\r\n number_of_dice = int(self.damage.split(\"d\")[0])\r\n damage_of_dice = int(self.damage.split(\"d\")[1])\r\n average_damage = (number_of_dice + numb... | [
"0.64578044",
"0.6239855",
"0.622446",
"0.6128016",
"0.61137015",
"0.60852295",
"0.6046493",
"0.60094494",
"0.60094494",
"0.6005113",
"0.6001859",
"0.59234154",
"0.5901508",
"0.58706677",
"0.58433205",
"0.5814445",
"0.5797619",
"0.57631737",
"0.573224",
"0.5713382",
"0.570445... | 0.8650378 | 0 |
Gets the total_cargo of this Spacecraft. | def total_cargo(self):
return self._total_cargo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def total_cargo(self, total_cargo):\n\n self._total_cargo = total_cargo",
"def GetTotal(self):\n return(self.total)",
"def total(self) -> int:\n return self._total",
"def total(self):\n\t\treturn self._total",
"def total(self) -> float:\n return self._total",
"def get_total(se... | [
"0.6648133",
"0.6441064",
"0.6424591",
"0.63446486",
"0.6335774",
"0.6253605",
"0.6236243",
"0.6222997",
"0.6210615",
"0.62098867",
"0.62014765",
"0.6187924",
"0.61301875",
"0.61133206",
"0.60800546",
"0.6075013",
"0.6065736",
"0.6053111",
"0.60327834",
"0.60202545",
"0.60027... | 0.87184626 | 0 |
Sets the total_cargo of this Spacecraft. | def total_cargo(self, total_cargo):
self._total_cargo = total_cargo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def total_cargo(self):\n return self._total_cargo",
"def cargo(self, cargo):\n if cargo is None:\n raise ValueError(\"Invalid value for `cargo`, must not be `None`\") # noqa: E501\n if cargo is not None and cargo < 0: # noqa: E501\n raise ValueError(\"Invalid value fo... | [
"0.68875164",
"0.61494964",
"0.61335045",
"0.61335045",
"0.61335045",
"0.61335045",
"0.61335045",
"0.61335045",
"0.61335045",
"0.61335045",
"0.5893197",
"0.58777165",
"0.5862756",
"0.580842",
"0.57880175",
"0.57143444",
"0.5586849",
"0.54980624",
"0.54805493",
"0.5370503",
"0... | 0.8666052 | 0 |
Sets the number_of_crew of this Spacecraft. | def number_of_crew(self, number_of_crew):
self._number_of_crew = number_of_crew | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def number_of_crew(self):\n return self._number_of_crew",
"def crew(self, crew):\n\n self._crew = crew",
"def setCount(self, num):\n self.count=num",
"def set_circuit_remix_count(self, circuit_id, number):\n key = ':'.join(\n [CIRCUIT_NMBR_RMX_1, \n str(circu... | [
"0.69988865",
"0.6070533",
"0.5892767",
"0.5820422",
"0.5795956",
"0.5719163",
"0.56650764",
"0.5643535",
"0.56230676",
"0.5622245",
"0.5546435",
"0.55175596",
"0.55130816",
"0.5510631",
"0.5488867",
"0.5305971",
"0.5305349",
"0.5300522",
"0.52714807",
"0.52502793",
"0.523847... | 0.86520106 | 0 |
Gets the cargo_fuel of this Spacecraft. | def cargo_fuel(self):
return self._cargo_fuel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_remaining_fuel(self):\n return min(self.liquid_fuel, self.oxidizer)",
"def fuel_cost(self, update=False):\n if update or self._dfs['fuel_cost'] is None:\n self._dfs['fuel_cost'] = pudl.analysis.mcoe.fuel_cost(self)\n return self._dfs['fuel_cost']",
"def _calculate_fuel(s... | [
"0.66086996",
"0.64859873",
"0.6441666",
"0.5992497",
"0.5906735",
"0.58190525",
"0.5741181",
"0.5672355",
"0.55218107",
"0.54366225",
"0.5344322",
"0.5332432",
"0.5316769",
"0.5315631",
"0.5313071",
"0.52972025",
"0.52657783",
"0.5258173",
"0.5221875",
"0.52177185",
"0.52026... | 0.85712963 | 0 |
Sets the cargo_fuel of this Spacecraft. | def cargo_fuel(self, cargo_fuel):
self._cargo_fuel = cargo_fuel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cargo_fuel(self):\n return self._cargo_fuel",
"def _calculate_fuel(self):\n self._fuel = self._calculate_fuel_r(self._mass)",
"def fuel_percents(self, fuel_percents):\n\n self._fuel_percents = fuel_percents",
"def fill_tank(self):\r\n self.fuel_level = self.fuel_capacity",
"... | [
"0.6168036",
"0.5985425",
"0.56629854",
"0.55514777",
"0.5447244",
"0.54359996",
"0.53912723",
"0.53691775",
"0.5288575",
"0.50967294",
"0.50650406",
"0.50650406",
"0.50013214",
"0.49715662",
"0.4968708",
"0.4861496",
"0.4859195",
"0.4835778",
"0.48230278",
"0.4818308",
"0.47... | 0.8545276 | 0 |
Gets the cargo_gas of this Spacecraft. | def cargo_gas(self):
return self._cargo_gas | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cargo_gas(self, cargo_gas):\n\n self._cargo_gas = cargo_gas",
"def gravity(self):\n return self._gravity",
"def cargo_fuel(self):\n return self._cargo_fuel",
"def cargo_water(self):\n return self._cargo_water",
"def readGas(self):\n gasFile = os.path.join(self.config.... | [
"0.5679141",
"0.55427736",
"0.5525993",
"0.5460829",
"0.5339361",
"0.5298773",
"0.52444595",
"0.5230682",
"0.51957023",
"0.51719683",
"0.51293856",
"0.5124532",
"0.507978",
"0.50768435",
"0.5069094",
"0.5066045",
"0.5047076",
"0.50428003",
"0.50390846",
"0.50291944",
"0.50289... | 0.8636668 | 0 |
Gets the description of this Spacecraft. | def description(self):
return self._description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getDescription(self):\n return self.description",
"def getDescription(self):\n return self._description",
"def get_description(self):\n return self.description",
"def get_description(self):\n return self.description",
"def get_description(self):\n return self.descript... | [
"0.7368931",
"0.7326584",
"0.732369",
"0.732369",
"0.732369",
"0.732369",
"0.73149765",
"0.7279498",
"0.72717243",
"0.72581947",
"0.72581947",
"0.72581947",
"0.72581947",
"0.72581947",
"0.72581947",
"0.72581947",
"0.72581947",
"0.72581947",
"0.72581947",
"0.72581947",
"0.7258... | 0.71155286 | 89 |
Gets the total_mass of this Spacecraft. | def total_mass(self):
return self._total_mass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_total_mass(self) -> int:\n total_mass = 0\n for i_complex, i_abundance in self._complexes.items():\n total_mass += i_complex.get_size_of_complex() * i_abundance\n return total_mass",
"def get_mass(self):\n return self.m",
"def mass(self):\n return self._mas... | [
"0.73719525",
"0.7274619",
"0.7204262",
"0.7204262",
"0.7083067",
"0.7081323",
"0.70799494",
"0.6895519",
"0.68252385",
"0.6744786",
"0.67410946",
"0.6693441",
"0.66460013",
"0.65119636",
"0.65050536",
"0.6463522",
"0.6431234",
"0.6423327",
"0.64078546",
"0.63556105",
"0.6336... | 0.8365939 | 1 |
Gets the crew of this Spacecraft. | def crew(self):
return self._crew | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def number_of_crew(self):\n return self._number_of_crew",
"def scrape_crew(self):\n\n page = requests.get(self.url)\n soup = BeautifulSoup(page.content, \"html.parser\")\n results = soup.find(\"div\", id=\"fullcredits_content\")\n directors_and_writers = results.find_all(\n ... | [
"0.61258847",
"0.5667989",
"0.5418685",
"0.53433555",
"0.51114166",
"0.51063305",
"0.50606924",
"0.5020854",
"0.5014636",
"0.50122035",
"0.5008564",
"0.49955845",
"0.49806103",
"0.49759248",
"0.49680084",
"0.488997",
"0.488732",
"0.4884368",
"0.48783788",
"0.48696384",
"0.486... | 0.8002058 | 0 |
Sets the crew of this Spacecraft. | def crew(self, crew):
self._crew = crew | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def assign_crew(self, crew):\n\n for key, val in crew.items():\n self.crew_members[key] = val",
"def crew(self):\n return self._crew",
"def set_crecimiento(self):\n return self.write({'state': 'Crecimiento'})",
"def number_of_crew(self, number_of_crew):\n\n self._number... | [
"0.6715824",
"0.62006676",
"0.5968519",
"0.5761177",
"0.49894398",
"0.49874872",
"0.48911348",
"0.48338023",
"0.47762877",
"0.4742399",
"0.47353774",
"0.47226685",
"0.47067413",
"0.4703254",
"0.4693114",
"0.4677968",
"0.4666877",
"0.4593542",
"0.45914918",
"0.4484445",
"0.448... | 0.8011974 | 0 |
Gets the docked_time of this Spacecraft. | def docked_time(self):
return self._docked_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def port1_docked_time(self):\n return self._port1_docked_time",
"def port2_docked_time(self):\n return self._port2_docked_time",
"def docked_time(self, docked_time):\n\n self._docked_time = docked_time",
"def get_time(self):\n return self.widget().time()",
"def get_clock(self):\... | [
"0.72970486",
"0.70623606",
"0.6505069",
"0.62915343",
"0.6259171",
"0.61769235",
"0.6127275",
"0.6109792",
"0.60887593",
"0.60887593",
"0.60887593",
"0.6085458",
"0.6085458",
"0.60625196",
"0.60618144",
"0.60058033",
"0.60002935",
"0.59644806",
"0.5946359",
"0.59433544",
"0.... | 0.87219363 | 0 |
Gets the _class of this Spacecraft. | def _class(self):
return self.__class | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_class(self):\n\t\treturn self.CLASS",
"def get_class(self):\n return devices.get_class(self.type)",
"def get_class(self):\n return self.meta_model.get_class()",
"def cls(self):\n return self.__class__.__name__",
"def cls(self):\n return self._cls",
"def getClassName(se... | [
"0.79264647",
"0.76670074",
"0.70861495",
"0.70659024",
"0.69916147",
"0.69436216",
"0.68616176",
"0.684686",
"0.6839131",
"0.68268424",
"0.6812375",
"0.6761909",
"0.67445207",
"0.6711634",
"0.6671644",
"0.6671644",
"0.66640085",
"0.6658203",
"0.66562015",
"0.6616769",
"0.661... | 0.7609349 | 2 |
Gets the model_start_date of this Spacecraft. | def model_start_date(self):
return self._model_start_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def start_date(self):\n return self.__start_date",
"def start_date(self):\n return self._start_date",
"def start_date(self):\n return self._start_date",
"def start_date(self):\n return self._start_date",
"def start_date(self):\n return self._start_date",
"def start_date... | [
"0.759842",
"0.75691044",
"0.75691044",
"0.75691044",
"0.75691044",
"0.738349",
"0.72971404",
"0.72971404",
"0.7253304",
"0.70416415",
"0.7023802",
"0.70077384",
"0.70077384",
"0.6977469",
"0.69748914",
"0.6944234",
"0.6911111",
"0.6870434",
"0.6776099",
"0.67391115",
"0.6711... | 0.881173 | 0 |
Sets the model_start_date of this Spacecraft. | def model_start_date(self, model_start_date):
self._model_start_date = model_start_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_start_date(self, date):\n pass",
"def start_date(self, start_date):\n \n self._start_date = start_date",
"def model_start_date(self):\n return self._model_start_date",
"def start_date(self, start_date):\n\n self._start_date = start_date",
"def start_date(self, sta... | [
"0.7516687",
"0.72586775",
"0.72108245",
"0.7205136",
"0.7205136",
"0.7205136",
"0.7205136",
"0.7205136",
"0.7205136",
"0.7205136",
"0.7205136",
"0.7205136",
"0.7202953",
"0.712027",
"0.6973517",
"0.69176704",
"0.68371016",
"0.6530323",
"0.6504558",
"0.6394867",
"0.6369306",
... | 0.8574618 | 0 |
Gets the inclination of this Spacecraft. | def inclination(self):
return self._inclination | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def constellation(self):\n return self._constellation",
"def ins_ii(self):\n return self._ins_ii",
"def raw_inposition(self):\n if self._swarm_inposition is None:\n raise ValueError(\"Run run_swarm() method before access this property\")\n return self._swarm_inposition",
... | [
"0.6323631",
"0.5861649",
"0.5763201",
"0.575987",
"0.5709713",
"0.57006496",
"0.56925297",
"0.5644946",
"0.56022716",
"0.5596464",
"0.55355555",
"0.5450799",
"0.54485744",
"0.54385716",
"0.54215527",
"0.53794247",
"0.5371291",
"0.53609735",
"0.5356536",
"0.5347364",
"0.53268... | 0.74016345 | 0 |
Gets the regime of this Spacecraft. | def regime(self):
return self._regime | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getTimeRegime(*args):\n return args[0].TimeState.TimeRegime.time_regime",
"def register_time(self):\n\n return self._register_time",
"def get_time(self) -> float:\n self.rocket.update()\n return self.rocket.time",
"def get_time(self):\n return self.run_command('get_time')[0]",
... | [
"0.70537806",
"0.66998714",
"0.6408827",
"0.63265246",
"0.6243638",
"0.62185633",
"0.6174779",
"0.6159353",
"0.6159353",
"0.6159353",
"0.6147762",
"0.61301714",
"0.610058",
"0.6089499",
"0.6084752",
"0.6072356",
"0.60505915",
"0.6043458",
"0.6043458",
"0.59846103",
"0.5978676... | 0.8331194 | 0 |
Gets the port2_docking_date of this Spacecraft. | def port2_docking_date(self):
return self._port2_docking_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def port1_docking_date(self):\n return self._port1_docking_date",
"def port2_docked_time(self):\n return self._port2_docked_time",
"def port2_docking_date(self, port2_docking_date):\n\n self._port2_docking_date = port2_docking_date",
"def port1_docked_time(self):\n return self._po... | [
"0.82236606",
"0.8074698",
"0.7646737",
"0.7262503",
"0.69077486",
"0.6856523",
"0.64585704",
"0.62449926",
"0.6002022",
"0.588196",
"0.5576663",
"0.54396904",
"0.5355376",
"0.5346361",
"0.5335236",
"0.52092516",
"0.51922375",
"0.5162533",
"0.51623523",
"0.51623523",
"0.51623... | 0.9058911 | 0 |
Gets the launch of this Spacecraft. | def launch(self):
return self._launch | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def last_launch(self):\n if len(self.launches) > 0:\n return self.launches[-1]\n else:\n return None",
"def start(self):\n return self._args[0]",
"def start(self):\n return self.args[4]",
"def spawn_point(self):\n return self._spawn_point",
"async de... | [
"0.685236",
"0.6251494",
"0.6022998",
"0.5972556",
"0.57517153",
"0.57324904",
"0.57016206",
"0.5664578",
"0.55993414",
"0.5509253",
"0.5507892",
"0.55070186",
"0.5472175",
"0.54638946",
"0.54388994",
"0.5372209",
"0.5371896",
"0.5350596",
"0.53431875",
"0.53172415",
"0.53162... | 0.7443643 | 0 |
Gets the label of this Spacecraft. | def label(self):
return self._label | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_label(self):\n return self._label",
"def get_label(self):\n\n return self._label",
"def get_label(self):\n return self.label",
"def get_label(self):\n return self.label",
"def get_label(self):\n return self.label",
"def get_label(self):\n return self.labe... | [
"0.8033102",
"0.7995996",
"0.7970079",
"0.7970079",
"0.7970079",
"0.7970079",
"0.7954735",
"0.7943769",
"0.79247683",
"0.78827566",
"0.78574044",
"0.78574044",
"0.78061074",
"0.7690801",
"0.76644844",
"0.76376677",
"0.7608658",
"0.7608658",
"0.7608658",
"0.7606166",
"0.756109... | 0.76696396 | 22 |
Sets the number_of_seats of this Spacecraft. | def number_of_seats(self, number_of_seats):
self._number_of_seats = number_of_seats | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def number_of_seats(self):\n return self._number_of_seats",
"def seats_count(self) -> int:\n return self.__seats_count",
"def number_of_crew(self, number_of_crew):\n\n self._number_of_crew = number_of_crew",
"def setCount(self, num):\n self.count=num",
"def set_numpins(self, n):... | [
"0.6502987",
"0.616906",
"0.612407",
"0.61204565",
"0.60832465",
"0.6073371",
"0.6065191",
"0.5711416",
"0.5576019",
"0.5530908",
"0.54925835",
"0.54907405",
"0.5478621",
"0.5459688",
"0.5449538",
"0.54274565",
"0.5371259",
"0.53699726",
"0.5364367",
"0.53493387",
"0.53493387... | 0.8093485 | 0 |
Gets the model_start_year of this Spacecraft. | def model_start_year(self):
return self._model_start_year | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def model_start_year(self, model_start_year):\n\n self._model_start_year = model_start_year",
"def GetStartDayAndYear(self):\n return _gmat_py.DeFile_GetStartDayAndYear(self)",
"def start_year(self) -> float:\n\n start_year = np.inf\n for td_table in list(self.tdve.values()) + self.... | [
"0.71401054",
"0.70321864",
"0.70160824",
"0.69865096",
"0.6891316",
"0.6888277",
"0.6780831",
"0.6647782",
"0.6562944",
"0.6562025",
"0.6562025",
"0.6506119",
"0.6467673",
"0.6392764",
"0.63609624",
"0.6341767",
"0.62898725",
"0.62398",
"0.6145876",
"0.61321336",
"0.61231923... | 0.8978344 | 0 |
Gets the width of this Spacecraft. | def width(self):
return self._width | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_width ( self ):\n return self.width",
"def width (self):\n return self._w",
"def get_width(self) -> int:\n return int(self._surface.get_width())",
"def get_width(self):\n return self._width",
"def get_width(self):\n return self._width",
"def get_width(self):\n ... | [
"0.80812824",
"0.80653375",
"0.8050409",
"0.80186",
"0.80186",
"0.80186",
"0.80186",
"0.80122423",
"0.7993784",
"0.7989218",
"0.7988513",
"0.79651886",
"0.79651886",
"0.79651886",
"0.7948744",
"0.79310787",
"0.79310787",
"0.78777695",
"0.78777695",
"0.7875926",
"0.7870624",
... | 0.7863441 | 32 |
Gets the related_mean_of_transportation of this Spacecraft. | def related_mean_of_transportation(self):
return self._related_mean_of_transportation | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def related_mean_of_transportation(self, related_mean_of_transportation):\n\n self._related_mean_of_transportation = related_mean_of_transportation",
"def get_mean(self):\n return self.serie.mean()",
"def getMean(self):\n return self.mean",
"def avg_net(self) -> float:\n return to... | [
"0.7578788",
"0.6219904",
"0.6194241",
"0.61330265",
"0.61253154",
"0.61253154",
"0.6092229",
"0.59996206",
"0.5969068",
"0.58431995",
"0.5828517",
"0.58174694",
"0.5803012",
"0.57216495",
"0.5720294",
"0.57131463",
"0.5702019",
"0.5675403",
"0.5649543",
"0.56461656",
"0.5614... | 0.89042974 | 0 |
Gets the target_space_station of this Spacecraft. | def target_space_station(self):
return self._target_space_station | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def target_space_station(self, target_space_station):\n\n self._target_space_station = target_space_station",
"def destination_station(self) -> \"Station\" | None:\n if not self.destination_station_code:\n return None\n return self.rail.stations[self.destination_station_code]",
... | [
"0.67115945",
"0.6484189",
"0.6385609",
"0.6105426",
"0.6096951",
"0.60203147",
"0.5878305",
"0.5845035",
"0.58177173",
"0.58032924",
"0.5793304",
"0.57631826",
"0.57303727",
"0.5688842",
"0.5676512",
"0.5676512",
"0.5676512",
"0.5676512",
"0.5676512",
"0.5676512",
"0.5676512... | 0.8960777 | 0 |
Computes scaffold for each smiles string and returns a mapping from scaffolds to sets of smiles. | def scaffold_to_smiles(all_smiles: List[str], use_indices: bool = False) -> Dict[str, Union[Set[str], Set[int]]]:
scaffolds = defaultdict(set)
for i, smiles in tqdm(enumerate(all_smiles), total=len(all_smiles)):
scaffold = generate_scaffold(smiles)
if use_indices:
scaffolds[scaffold]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def smiles(self) -> List[str]:\n return [d.smiles for d in self.data]",
"def split(self, smiles):\n splitted_smiles = []\n for j, k in enumerate(smiles):\n if j == 0:\n if k.isupper() and smiles[j + 1].islower() and smiles[j + 1] != \"c\":\n split... | [
"0.6158787",
"0.6025055",
"0.6024565",
"0.5896641",
"0.5759348",
"0.5667115",
"0.5654572",
"0.5637842",
"0.5595918",
"0.55621827",
"0.55066323",
"0.55061585",
"0.54815733",
"0.54613894",
"0.54515934",
"0.5391377",
"0.5384539",
"0.53843105",
"0.5383817",
"0.53709817",
"0.52407... | 0.77072656 | 0 |
Split a dataset by scaffold so that no molecules sharing a scaffold are in the same split. | def scaffold_split(data: MoleculeDataset,
sizes: Tuple[float, float, float] = (0.8, 0.1, 0.1),
balanced: bool = False,
seed: int = 0,
logger: logging.Logger = None) -> Tuple[MoleculeDataset,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def scaffold_split_one(data: MoleculeDataset) -> Tuple[MoleculeDataset,\n MoleculeDataset,\n MoleculeDataset]:\n # Map from scaffold to index in the data\n scaffold_to_indices = scaffold_to_smiles(data... | [
"0.80911267",
"0.6740657",
"0.6318223",
"0.62417597",
"0.61728954",
"0.5845401",
"0.5843828",
"0.5773582",
"0.5748257",
"0.57447517",
"0.5742437",
"0.5698321",
"0.56720424",
"0.56466216",
"0.56393397",
"0.56324464",
"0.56227076",
"0.5618094",
"0.5613241",
"0.5579018",
"0.5524... | 0.7413708 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.