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
Reads a list of exclude patterns from the `.gitignore` file in the local directory. A pattern for excluding hidden files is also added.
def read_gitignore(): excludes = [] gitignore = Path(".gitignore") if gitignore.exists(): with gitignore.open() as f: excludes += f.read().split("\n") else: raise ValueError( "No exclude configuration option and no .gitignore file present" ) return exc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gitignore(self):\n patterns = []\n for path in ('.gitignore', '.git/info/exclude'):\n try:\n with open(pjoin(self.options.target_repo.location, path)) as f:\n patterns.extend(f)\n except FileNotFoundError:\n pass\n ...
[ "0.7401902", "0.6527008", "0.64214766", "0.631329", "0.622136", "0.61823696", "0.6163449", "0.6148547", "0.61096287", "0.60649526", "0.6022943", "0.6013522", "0.59640735", "0.59617287", "0.5959054", "0.59461486", "0.59015226", "0.5883918", "0.5868892", "0.58683294", "0.585251...
0.7539871
0
Returns a list of all the files in the given directory. Recursively searches subdirectories.
def get_files_in_directory(dir_name: str): filenames = [] for entry in walk(dir_name): root_dir = entry[0] dir_files = entry[2] filenames.extend([Path(root_dir).joinpath(file) for file in dir_files]) return filenames
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list_dir_recursively(dir: str) -> list:\n all_files = []\n for root, dirs, files in os.walk(dir):\n for name in files:\n file_path = os.path.join(root, name)\n file_path = os.path.relpath(file_path, dir)\n all_files.append(file_path)\n return all_files", "def ...
[ "0.80238247", "0.79076344", "0.7780671", "0.7733855", "0.7686574", "0.7670277", "0.76627284", "0.7659988", "0.7655264", "0.7643385", "0.7588", "0.75700015", "0.7513417", "0.7478667", "0.746282", "0.7458269", "0.74521154", "0.7451112", "0.7445254", "0.74246347", "0.73988074", ...
0.73837095
23
Get the given key in the dictionary, if it exists.
def get_if_exist(self, data, key): if key in data: return data[key] return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_key(dict, key):\n return dict.get(key, None)", "def get_item(dictionary, key):\n return dictionary.get(key)", "def get_item(dictionary, key):\n return dictionary.get(key)", "def get_item(dictionary, key):\n return dictionary.get(key)", "def get_item(dictionary, key):\n return diction...
[ "0.8332261", "0.76710635", "0.76710635", "0.76710635", "0.76710635", "0.7383728", "0.7233964", "0.71226186", "0.70819294", "0.6996778", "0.69458795", "0.69330454", "0.69323707", "0.69215655", "0.68971974", "0.685373", "0.6829363", "0.6817128", "0.6810025", "0.67965144", "0.67...
0.7403225
5
Helper function to convert the GPS coordinates stored in the EXIF to degress in float format.
def convert_to_degress(self, value): d0 = value[0][0] d1 = value[0][1] d = float(d0) / float(d1) m0 = value[1][0] m1 = value[1][1] m = float(m0) / float(m1) s0 = value[2][0] s1 = value[2][1] s = float(s0) / float(s1) return d + (m / 60.0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def points2float(gpx_track):\n \n points = np.empty([gpx_track.get_points_no(), 2])\n elevation = np.empty([gpx_track.get_points_no(), 1])\n n = 0\n for segment in gpx_track.segments:\n for point in segment.points:\n points[n, 0] = point.longitude\n points[n, 1] = point....
[ "0.6368479", "0.6359571", "0.632998", "0.63195014", "0.6223248", "0.615425", "0.6148103", "0.5962207", "0.5873066", "0.58510417", "0.57573104", "0.57196766", "0.57097554", "0.56838703", "0.565272", "0.5637491", "0.56168145", "0.55972266", "0.55774766", "0.5540721", "0.5521436...
0.6266219
4
The canonical normalized boundingbox, assuming a fixed normalization scheme a box with side length bbox_grid, centered on a cropbox_gridsized cropbox grid
def _initial_normal_bbox(self): cx = cy = .5 width = FLAGS.bbox_grid / float(FLAGS.cropbox_grid) x1 = cx - width / 2 x2 = cx + width / 2 y1 = cy - width / 2 y2 = cy + width / 2 return [y1,x1,y2,x2]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def normalize_bbox(bbox, rows, cols):\n x_min, y_min, x_max, y_max = bbox[:4]\n normalized_bbox = [x_min / cols, y_min / rows, x_max / cols, y_max / rows]\n return normalized_bbox + list(bbox[4:])", "def rectify_bbox(bboxes, max_shape): \n bboxes = np.array(bboxes, np.int32)\n n = bboxes.shape[0]\...
[ "0.6857449", "0.67493826", "0.6739544", "0.66955036", "0.6672769", "0.6479567", "0.6469831", "0.64405024", "0.63694733", "0.63636994", "0.6353795", "0.6349647", "0.6347129", "0.63439983", "0.6325421", "0.62833726", "0.62780213", "0.62081856", "0.62031835", "0.6199815", "0.615...
0.6843183
1
Convert a "total file size" to an int.
def tfs2int(tfs): scales = {'K': 1024, 'M': 1024 * 1024, 'G': 1024 * 1024 * 1024} multiplier = 1 if tfs[-1] in scales: multiplier = scales[tfs[-1]] tfs = tfs[:-1] float_value = float(tfs.replace(',', '')) * multiplier return int(float_value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def convert_file_size_to_int(size: Union[int, str]):\n if isinstance(size, int):\n return size\n if size.upper().endswith(\"GIB\"):\n return int(size[:-3]) * (2**30)\n if size.upper().endswith(\"MIB\"):\n return int(size[:-3]) * (2**20)\n if size.upper().endswith(\"KIB\"):\n ...
[ "0.70655966", "0.67710406", "0.6617281", "0.659886", "0.6489529", "0.64564127", "0.63836193", "0.6371028", "0.63222486", "0.63222486", "0.63222486", "0.62920696", "0.62906975", "0.626376", "0.62485296", "0.62417483", "0.62404615", "0.6217553", "0.61736995", "0.6168608", "0.61...
0.0
-1
Indicates whether overlap has remap tables. A subvolume where CC is applied will have unique body ids for disjoint commponents. Applying remap will undo the connected component computation.
def has_remap(self): return self.mapping1 is not None or self.mapping2 is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _partial_remap(self):\n \n if not self.has_remap():\n return\n \n del_keys = {}\n keep_ids = set()\n\n for key, val in self.overlap_map.items():\n if key in self.mapping1:\n # find inputs that need to be remapped\n if...
[ "0.6768838", "0.65922594", "0.6210903", "0.61182743", "0.60386974", "0.5878108", "0.5836924", "0.5795359", "0.57410246", "0.56510913", "0.5640741", "0.5640741", "0.55867213", "0.55396533", "0.5527636", "0.55016756", "0.548817", "0.5430744", "0.54287714", "0.5411446", "0.53663...
0.7258837
0
Returns comparison type (string).
def get_comparison_type(self): return self.comparison_type.get_type()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_name(self):\n return str(self.comparison_type)", "def comparison(self) -> str:\n return self._values.get('comparison')", "def get_type(self) -> TypeStr:\n return TYPE.inverse[self.type()]", "def get_type(self) -> str:\n # Note: this name conflicts with existing python buil...
[ "0.81381655", "0.68369985", "0.65435714", "0.64893043", "0.6483583", "0.64285755", "0.64285755", "0.63771945", "0.63714457", "0.63714457", "0.63714457", "0.6327428", "0.6292227", "0.62895495", "0.62563896", "0.6248533", "0.622658", "0.62252694", "0.6218821", "0.6204587", "0.6...
0.8117544
1
Sets the id of this SharedContainerScanResult.
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 set_id(self, id):\n self.data['id'] = id", "def setID(self, id):\n self._id = id\n return self.callRemote('setID', id)", "def id(self, id: str):\n \n self._id = id", ...
[ "0.6748242", "0.6705728", "0.6616391", "0.6601066", "0.6587833", "0.6574103", "0.6574103", "0.6574103", "0.6574103", "0.6574103", "0.6546487", "0.65445024", "0.6538532", "0.6538532", "0.6538532", "0.6534846", "0.6500652", "0.6500652", "0.6500652", "0.6500652", "0.6500652", ...
0.64690536
69
Sets the scan_time of this SharedContainerScanResult.
def scan_time(self, scan_time): self._scan_time = scan_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_time(self, time):\n self._time = time", "def set_time(self, set_time):\n\n self._set_time = set_time", "def transaction_time(self, transaction_time):\n\n self._transaction_time = transaction_time", "def time(self, time):\n\n self._time = time", "def time(self, time):\n\n...
[ "0.6010116", "0.595689", "0.57522273", "0.5734293", "0.5734293", "0.5734293", "0.5734293", "0.5734293", "0.56893903", "0.5555281", "0.5524971", "0.5513357", "0.55127865", "0.55103683", "0.549832", "0.5496001", "0.54456544", "0.54325706", "0.54268783", "0.5423594", "0.54116297...
0.8240354
0
Returns true if both objects are equal
def __eq__(self, other): if not isinstance(other, SharedContainerScanResult): return False return self.to_dict() == other.to_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): if not isinstance(other, SharedContainerScanResult): return True return self.to_dict() != other.to_dict()
{ "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.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Replace missing values in a SparseTensor. Fills in missing values of `x` with '' or 0, and converts to a dense tensor.
def _fill_in_missing(x): default_value = '' if x.dtype == tf.string else 0 return tf.squeeze( tf.sparse.to_dense( tf.SparseTensor(x.indices, x.values, [x.dense_shape[0], 1]), default_value), axis=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fill_in_missing(x: Union[tf.Tensor, tf.SparseTensor]) -> tf.Tensor:\n if isinstance(x, tf.sparse.SparseTensor):\n default_value = '' if x.dtype == tf.string else 0\n x = tf.sparse.to_dense(\n tf.SparseTensor(x.indices, x.values, [x.dense_shape[0], 1]),\n default_value,\n ...
[ "0.8342378", "0.83319616", "0.6568131", "0.64117354", "0.6343656", "0.6284193", "0.617971", "0.59140086", "0.5804358", "0.5775101", "0.565355", "0.5492487", "0.547389", "0.54622877", "0.54611164", "0.5428776", "0.5403606", "0.5400363", "0.53965265", "0.5391143", "0.53747547",...
0.841228
0
Spaces should be replaced with underscores
def test_spaces(self): self.assertValue({ 'foo bar': 'something here', }, "foo_bar: something_here\n")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def underscore(text):\n # return '__'+text.replace(' ','__') + '__'\n return text.replace(' ', '__')", "def pre_underscore(text):\n return f\"__{text}__\"", "def _with_underscore(cls, key):\n try:\n return key.replace(\"-\", \"_\")\n except AttributeError:\n return ...
[ "0.8433377", "0.7701075", "0.7634861", "0.7581528", "0.75546145", "0.7514816", "0.7453019", "0.7442119", "0.7373347", "0.7326866", "0.7309905", "0.72358406", "0.72118825", "0.714469", "0.712844", "0.7120361", "0.7091957", "0.7072267", "0.705981", "0.7036102", "0.70163494", ...
0.0
-1
Initilizes a queue such that messages in that queue will be monitored and acted on by the passed in monitorFunc.
def monitoredQueue(self, monitorFunc): m_queue = q.Queue() m_thread = t.Thread(target=monitorFunc, args=[m_queue]) m_thread.setDaemon(True) m_thread.start() return m_queue
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_init(self, queue=None, **kwargs):\n self.queue = queue if queue else Queue()", "def enqueue(self, func):\n self.queue.put(func)", "def startMonitor(user, queueTwoMin, queueTenMin, queueHour, queueAlerts, queueTermination, testDic = None):\n Monitor(user, queueTwoMin, queueTenMin, queueH...
[ "0.61165226", "0.6011372", "0.5929308", "0.57659894", "0.5761337", "0.57040274", "0.5634653", "0.55666125", "0.55444306", "0.5524354", "0.55178416", "0.55139464", "0.54756975", "0.54582393", "0.54231155", "0.54164034", "0.5382652", "0.5382652", "0.53309697", "0.53052473", "0....
0.76629174
0
Helper function for testing the status code and the content of a response.
def assertResponse(self, response, status_code=None, content=None): self.assertIsInstance(response, HttpResponse) if status_code is not None and response.status_code != status_code: self.fail( "Expected status code of {}, got {}. Content:\n{}".format( stat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def assert_response_correct(self, response, expected_status, expected_content):\n assert response.status_code == expected_status\n\n if expected_content:\n assert str(response.content) == expected_content", "def assert_response_correct(self, response, expected_status, expected_content):\...
[ "0.7979197", "0.7968685", "0.7856754", "0.78527904", "0.7819429", "0.7815896", "0.77614754", "0.7751742", "0.75108117", "0.74594414", "0.74226815", "0.74170643", "0.73266715", "0.73091817", "0.72785217", "0.7276031", "0.72520643", "0.7248804", "0.71840334", "0.7148905", "0.71...
0.7785222
6
Sets the brick_topoes_none of this RackTopoWhereInput.
def brick_topoes_none(self, brick_topoes_none): self._brick_topoes_none = brick_topoes_none
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def brick_topoes_some(self, brick_topoes_some):\n\n self._brick_topoes_some = brick_topoes_some", "def clusters_none(self, clusters_none):\n\n self._clusters_none = clusters_none", "def vlans_none(self, vlans_none):\n\n self._vlans_none = vlans_none", "def nvmf_subsystems_none(self, nvmf...
[ "0.65411764", "0.58456725", "0.57181144", "0.5607491", "0.55092627", "0.54767674", "0.5456889", "0.5437602", "0.52548075", "0.5204441", "0.51793134", "0.50234056", "0.49902874", "0.4960745", "0.49518764", "0.48819602", "0.48227778", "0.48165974", "0.47735253", "0.47733486", "...
0.83682185
0
Sets the cluster of this RackTopoWhereInput.
def cluster(self, cluster): self._cluster = cluster
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cluster(self, cluster):\n if self.local_vars_configuration.client_side_validation and cluster is None: # noqa: E501\n raise ValueError(\"Invalid value for `cluster`, must not be `None`\") # noqa: E501\n\n self._cluster = cluster", "def setBestCluster(cluster):\r\n global bestClu...
[ "0.71407986", "0.63815385", "0.62622607", "0.62550765", "0.6169362", "0.61233366", "0.6089333", "0.60449433", "0.60090107", "0.5915363", "0.5886228", "0.5836004", "0.5760437", "0.57565874", "0.57258844", "0.5706602", "0.56969315", "0.5694597", "0.56861794", "0.56861794", "0.5...
0.7146171
3
Sets the height_not_in of this RackTopoWhereInput.
def height_not_in(self, height_not_in): self._height_not_in = height_not_in
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def height_not(self, height_not):\n\n self._height_not = height_not", "def height_in(self, height_in):\n\n self._height_in = height_in", "def height_lte(self, height_lte):\n\n self._height_lte = height_lte", "def version_not_in(self, version_not_in):\n\n self._version_not_in = ver...
[ "0.70468926", "0.69007164", "0.6121151", "0.6037928", "0.60035294", "0.59257835", "0.59209704", "0.5904741", "0.5864858", "0.5837722", "0.58188355", "0.57754874", "0.57520336", "0.5595101", "0.55789506", "0.55789506", "0.5575645", "0.5562599", "0.55269897", "0.5492969", "0.54...
0.8208624
0
Sets the id of this RackTopoWhereInput.
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.data['id'] = id", "def _set_hop_id(self, v, load=False):\n parent = getattr(self, \"_parent\", None)\n if parent is not None and load is False:\n raise AttributeError(\"Cannot set keys directly when\" +\n ...
[ "0.5875498", "0.5853371", "0.57642", "0.5742634", "0.5633959", "0.5629165", "0.55979437", "0.55979437", "0.55979437", "0.55979437", "0.55979437", "0.55752933", "0.5564327", "0.5553724", "0.55490667", "0.55490667", "0.55490667", "0.55490667", "0.55490667", "0.55490667", "0.554...
0.55252695
53
Sets the id_contains of this RackTopoWhereInput.
def id_contains(self, id_contains): self._id_contains = id_contains
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id_contains(self, local_id_contains):\n\n self._local_id_contains = local_id_contains", "def local_id_contains(self, local_id_contains):\n\n self._local_id_contains = local_id_contains", "def local_id_contains(self, local_id_contains):\n\n self._local_id_contains = local_id_conta...
[ "0.66300994", "0.66300994", "0.66300994", "0.66300994", "0.5996589", "0.5740292", "0.5740292", "0.5740292", "0.5740292", "0.5740292", "0.5409343", "0.50465745", "0.50465745", "0.50465745", "0.5023066", "0.5023066", "0.5023066", "0.5023066", "0.5023066", "0.5015112", "0.500392...
0.7588526
3
Sets the id_gt of this RackTopoWhereInput.
def id_gt(self, id_gt): self._id_gt = id_gt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id_lt(self, id_lt):\n\n self._id_lt = id_lt", "def id_lt(self, id_lt):\n\n self._id_lt = id_lt", "def id_lt(self, id_lt):\n\n self._id_lt = id_lt", "def id_lt(self, id_lt):\n\n self._id_lt = id_lt", "def id_lt(self, id_lt):\n\n self._id_lt = id_lt", "def id_lte(self...
[ "0.61415243", "0.61415243", "0.61415243", "0.61415243", "0.61415243", "0.60878116", "0.60878116", "0.60878116", "0.60878116", "0.60878116", "0.5931519", "0.5931519", "0.5931519", "0.5931519", "0.57477444", "0.57059073", "0.57059073", "0.57059073", "0.57059073", "0.57059073", ...
0.72723144
3
Sets the id_gte of this RackTopoWhereInput.
def id_gte(self, id_gte): self._id_gte = id_gte
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id_gte(self, local_id_gte):\n\n self._local_id_gte = local_id_gte", "def local_id_gte(self, local_id_gte):\n\n self._local_id_gte = local_id_gte", "def local_id_gte(self, local_id_gte):\n\n self._local_id_gte = local_id_gte", "def local_id_gte(self, local_id_gte):\n\n se...
[ "0.6532473", "0.6532473", "0.6532473", "0.6532473", "0.63132757", "0.63132757", "0.63132757", "0.63132757", "0.63132757", "0.59514606", "0.59514606", "0.59514606", "0.59514606", "0.59514606", "0.5765681", "0.5765681", "0.5765681", "0.5765681", "0.571418", "0.571418", "0.57141...
0.7488829
3
Sets the id_in of this RackTopoWhereInput.
def id_in(self, id_in): self._id_in = id_in
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id_in(self, local_id_in):\n\n self._local_id_in = local_id_in", "def local_id_in(self, local_id_in):\n\n self._local_id_in = local_id_in", "def local_id_in(self, local_id_in):\n\n self._local_id_in = local_id_in", "def local_id_in(self, local_id_in):\n\n self._local_id_i...
[ "0.66620654", "0.66620654", "0.66620654", "0.66620654", "0.6044825", "0.5744867", "0.56811124", "0.55234355", "0.53235877", "0.53235877", "0.53235877", "0.5313689", "0.5303224", "0.5297094", "0.52404", "0.523678", "0.5222664", "0.5222664", "0.5222664", "0.5222664", "0.5222664...
0.7689504
3
Sets the id_lt of this RackTopoWhereInput.
def id_lt(self, id_lt): self._id_lt = id_lt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id_lte(self, id_lte):\n\n self._id_lte = id_lte", "def id_lte(self, id_lte):\n\n self._id_lte = id_lte", "def id_lte(self, id_lte):\n\n self._id_lte = id_lte", "def id_lte(self, id_lte):\n\n self._id_lte = id_lte", "def id_lte(self, id_lte):\n\n self._id_lte = id_lte"...
[ "0.6557371", "0.6557371", "0.6557371", "0.6557371", "0.6557371", "0.64259505", "0.64259505", "0.64259505", "0.64259505", "0.6051591", "0.5950318", "0.5889758", "0.5889758", "0.5889758", "0.5889758", "0.5649613", "0.56254876", "0.56254876", "0.55952436", "0.55952436", "0.55952...
0.7467244
3
Sets the id_lte of this RackTopoWhereInput.
def id_lte(self, id_lte): self._id_lte = id_lte
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id_lte(self, local_id_lte):\n\n self._local_id_lte = local_id_lte", "def local_id_lte(self, local_id_lte):\n\n self._local_id_lte = local_id_lte", "def local_id_lte(self, local_id_lte):\n\n self._local_id_lte = local_id_lte", "def local_id_lte(self, local_id_lte):\n\n se...
[ "0.69810295", "0.69810295", "0.69810295", "0.69810295", "0.6636249", "0.65172017", "0.65172017", "0.65172017", "0.65172017", "0.65172017", "0.63993657", "0.6208304", "0.6208304", "0.6014807", "0.599681", "0.5849763", "0.58138955", "0.57695276", "0.5754979", "0.5754979", "0.57...
0.7875658
3
Sets the id_not of this RackTopoWhereInput.
def id_not(self, id_not): self._id_not = id_not
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id_not_contains(self, id_not_contains):\n\n self._id_not_contains = id_not_contains", "def id_not_contains(self, id_not_contains):\n\n self._id_not_contains = id_not_contains", "def id_not_contains(self, id_not_contains):\n\n self._id_not_contains = id_not_contains", "def id_not_cont...
[ "0.6813371", "0.6813371", "0.6813371", "0.6813371", "0.6813371", "0.6734176", "0.6734176", "0.6734176", "0.6734176", "0.6734176", "0.6347221", "0.6347221", "0.6347221", "0.6347221", "0.6347221", "0.6330646", "0.6303404", "0.6303404", "0.6303404", "0.6303404", "0.61143804", ...
0.752208
3
Sets the id_not_contains of this RackTopoWhereInput.
def id_not_contains(self, id_not_contains): self._id_not_contains = id_not_contains
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id_not_contains(self, local_id_not_contains):\n\n self._local_id_not_contains = local_id_not_contains", "def local_id_not_contains(self, local_id_not_contains):\n\n self._local_id_not_contains = local_id_not_contains", "def local_id_not_contains(self, local_id_not_contains):\n\n ...
[ "0.70605147", "0.70605147", "0.70605147", "0.70605147", "0.684908", "0.67818445", "0.67818445", "0.67818445", "0.67818445", "0.67818445", "0.6722656", "0.6722656", "0.6722656", "0.6722656", "0.6722656", "0.6346638", "0.6346638", "0.6346638", "0.6346638", "0.6346638", "0.62945...
0.8009011
3
Sets the id_not_ends_with of this RackTopoWhereInput.
def id_not_ends_with(self, id_not_ends_with): self._id_not_ends_with = id_not_ends_with
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id_not_ends_with(self, local_id_not_ends_with):\n\n self._local_id_not_ends_with = local_id_not_ends_with", "def local_id_not_ends_with(self, local_id_not_ends_with):\n\n self._local_id_not_ends_with = local_id_not_ends_with", "def local_id_not_ends_with(self, local_id_not_ends_with):\n...
[ "0.69420516", "0.69420516", "0.69420516", "0.69420516", "0.6911789", "0.66585886", "0.66585886", "0.66585886", "0.66585886", "0.66585886", "0.6564124", "0.6564124", "0.6564124", "0.6564124", "0.6564124", "0.64736915", "0.64736915", "0.64736915", "0.64736915", "0.64736915", "0...
0.79329896
3
Sets the id_not_in of this RackTopoWhereInput.
def id_not_in(self, id_not_in): self._id_not_in = id_not_in
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id_not_in(self, local_id_not_in):\n\n self._local_id_not_in = local_id_not_in", "def local_id_not_in(self, local_id_not_in):\n\n self._local_id_not_in = local_id_not_in", "def local_id_not_in(self, local_id_not_in):\n\n self._local_id_not_in = local_id_not_in", "def local_id_no...
[ "0.7495516", "0.7495516", "0.7495516", "0.7495516", "0.71829516", "0.697899", "0.6929627", "0.69225186", "0.6812759", "0.6805155", "0.6694109", "0.6677373", "0.6673679", "0.6656719", "0.6656719", "0.6656719", "0.66193134", "0.66193134", "0.66193134", "0.66193134", "0.66193134...
0.82385755
3
Sets the id_not_starts_with of this RackTopoWhereInput.
def id_not_starts_with(self, id_not_starts_with): self._id_not_starts_with = id_not_starts_with
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id_not_starts_with(self, local_id_not_starts_with):\n\n self._local_id_not_starts_with = local_id_not_starts_with", "def local_id_not_starts_with(self, local_id_not_starts_with):\n\n self._local_id_not_starts_with = local_id_not_starts_with", "def local_id_not_starts_with(self, local_id...
[ "0.69729966", "0.69729966", "0.69729966", "0.69729966", "0.6850665", "0.6486531", "0.6486531", "0.6486531", "0.6486531", "0.6486531", "0.64124775", "0.64124775", "0.64124775", "0.64124775", "0.64124775", "0.63912", "0.6322211", "0.6322211", "0.6322211", "0.6322211", "0.632221...
0.79575205
3
Sets the local_id_gt of this RackTopoWhereInput.
def local_id_gt(self, local_id_gt): self._local_id_gt = local_id_gt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id_lt(self, local_id_lt):\n\n self._local_id_lt = local_id_lt", "def local_id_lt(self, local_id_lt):\n\n self._local_id_lt = local_id_lt", "def local_id_lt(self, local_id_lt):\n\n self._local_id_lt = local_id_lt", "def local_id_lt(self, local_id_lt):\n\n self._local_id_l...
[ "0.70777214", "0.70777214", "0.70777214", "0.70777214", "0.6887563", "0.6887563", "0.6887563", "0.6887563", "0.6770733", "0.6770733", "0.6770733", "0.6770733", "0.61593163", "0.61593163", "0.61593163", "0.61593163", "0.612404", "0.612404", "0.612404", "0.612404", "0.6087237",...
0.7776941
2
Sets the local_id_gte of this RackTopoWhereInput.
def local_id_gte(self, local_id_gte): self._local_id_gte = local_id_gte
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id_gt(self, local_id_gt):\n\n self._local_id_gt = local_id_gt", "def local_id_gt(self, local_id_gt):\n\n self._local_id_gt = local_id_gt", "def local_id_gt(self, local_id_gt):\n\n self._local_id_gt = local_id_gt", "def local_id_gt(self, local_id_gt):\n\n self._local_id_g...
[ "0.72788465", "0.72788465", "0.72788465", "0.72788465", "0.7148637", "0.7148637", "0.7148637", "0.7148637", "0.6975947", "0.6975947", "0.6975947", "0.6975947", "0.65932566", "0.65932566", "0.65932566", "0.65932566", "0.6433726", "0.6157997", "0.6157997", "0.6157997", "0.61579...
0.81290156
2
Sets the local_id_in of this RackTopoWhereInput.
def local_id_in(self, local_id_in): self._local_id_in = local_id_in
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id(self, local_id):\n\n self._local_id = local_id", "def local_id(self, local_id):\n\n self._local_id = local_id", "def local_id(self, local_id):\n\n self._local_id = local_id", "def local_id(self, local_id):\n\n self._local_id = local_id", "def local_id_lte(self, loca...
[ "0.64903086", "0.64903086", "0.64903086", "0.64903086", "0.6430864", "0.6430864", "0.6430864", "0.6430864", "0.64058614", "0.64058614", "0.64058614", "0.64058614", "0.63557804", "0.63557804", "0.63557804", "0.63557804", "0.63188356", "0.63188356", "0.63188356", "0.63188356", ...
0.82416344
2
Sets the local_id_lt of this RackTopoWhereInput.
def local_id_lt(self, local_id_lt): self._local_id_lt = local_id_lt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id_lte(self, local_id_lte):\n\n self._local_id_lte = local_id_lte", "def local_id_lte(self, local_id_lte):\n\n self._local_id_lte = local_id_lte", "def local_id_lte(self, local_id_lte):\n\n self._local_id_lte = local_id_lte", "def local_id_lte(self, local_id_lte):\n\n se...
[ "0.7353849", "0.7353849", "0.7353849", "0.7353849", "0.7005494", "0.7005494", "0.7005494", "0.7005494", "0.64503837", "0.63569176", "0.63569176", "0.63569176", "0.63569176", "0.6264156", "0.6264156", "0.6264156", "0.6264156", "0.6216785", "0.6216785", "0.6216785", "0.6216785"...
0.7981058
2
Sets the local_id_lte of this RackTopoWhereInput.
def local_id_lte(self, local_id_lte): self._local_id_lte = local_id_lte
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id_lt(self, local_id_lt):\n\n self._local_id_lt = local_id_lt", "def local_id_lt(self, local_id_lt):\n\n self._local_id_lt = local_id_lt", "def local_id_lt(self, local_id_lt):\n\n self._local_id_lt = local_id_lt", "def local_id_lt(self, local_id_lt):\n\n self._local_id_l...
[ "0.7350464", "0.7350464", "0.7350464", "0.7350464", "0.6754344", "0.6754344", "0.6754344", "0.6754344", "0.65682447", "0.65682447", "0.65682447", "0.65682447", "0.65682447", "0.6462051", "0.6344721", "0.6344721", "0.6344721", "0.6344721", "0.62166727", "0.6192552", "0.6192552...
0.8226025
2
Sets the local_id_not of this RackTopoWhereInput.
def local_id_not(self, local_id_not): self._local_id_not = local_id_not
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id_not_contains(self, local_id_not_contains):\n\n self._local_id_not_contains = local_id_not_contains", "def local_id_not_contains(self, local_id_not_contains):\n\n self._local_id_not_contains = local_id_not_contains", "def local_id_not_contains(self, local_id_not_contains):\n\n ...
[ "0.71201336", "0.71201336", "0.71201336", "0.71201336", "0.70793563", "0.70793563", "0.70793563", "0.70793563", "0.6772536", "0.6772536", "0.6772536", "0.6772536", "0.6589037", "0.6589037", "0.6589037", "0.6589037", "0.6586342", "0.6586342", "0.6586342", "0.6586342", "0.64996...
0.77486557
2
Sets the local_id_not_contains of this RackTopoWhereInput.
def local_id_not_contains(self, local_id_not_contains): self._local_id_not_contains = local_id_not_contains
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id_not_in(self, local_id_not_in):\n\n self._local_id_not_in = local_id_not_in", "def local_id_not_in(self, local_id_not_in):\n\n self._local_id_not_in = local_id_not_in", "def local_id_not_in(self, local_id_not_in):\n\n self._local_id_not_in = local_id_not_in", "def local_id_no...
[ "0.74684566", "0.74684566", "0.74684566", "0.74684566", "0.73533237", "0.73533237", "0.73533237", "0.73533237", "0.6875826", "0.6875826", "0.6875826", "0.6875826", "0.6753479", "0.6753479", "0.6753479", "0.6753479", "0.64752114", "0.64752114", "0.64752114", "0.64752114", "0.6...
0.8309665
2
Sets the local_id_not_ends_with of this RackTopoWhereInput.
def local_id_not_ends_with(self, local_id_not_ends_with): self._local_id_not_ends_with = local_id_not_ends_with
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id_ends_with(self, local_id_ends_with):\n\n self._local_id_ends_with = local_id_ends_with", "def local_id_ends_with(self, local_id_ends_with):\n\n self._local_id_ends_with = local_id_ends_with", "def local_id_ends_with(self, local_id_ends_with):\n\n self._local_id_ends_with = loc...
[ "0.705019", "0.705019", "0.705019", "0.705019", "0.69038373", "0.69038373", "0.69038373", "0.69038373", "0.6791783", "0.6791783", "0.6791783", "0.6791783", "0.676263", "0.676263", "0.676263", "0.676263", "0.6692815", "0.6692815", "0.6692815", "0.6692815", "0.64083505", "0.6...
0.7974465
2
Sets the local_id_not_in of this RackTopoWhereInput.
def local_id_not_in(self, local_id_not_in): self._local_id_not_in = local_id_not_in
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id_not_contains(self, local_id_not_contains):\n\n self._local_id_not_contains = local_id_not_contains", "def local_id_not_contains(self, local_id_not_contains):\n\n self._local_id_not_contains = local_id_not_contains", "def local_id_not_contains(self, local_id_not_contains):\n\n ...
[ "0.7425107", "0.7425107", "0.7425107", "0.7425107", "0.73559576", "0.73559576", "0.73559576", "0.73559576", "0.7177981", "0.7177981", "0.7177981", "0.7177981", "0.70383966", "0.69488394", "0.69488394", "0.69488394", "0.69488394", "0.69488394", "0.67253053", "0.67024034", "0.6...
0.85227126
2
Sets the local_id_not_starts_with of this RackTopoWhereInput.
def local_id_not_starts_with(self, local_id_not_starts_with): self._local_id_not_starts_with = local_id_not_starts_with
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_id_not(self, local_id_not):\n\n self._local_id_not = local_id_not", "def local_id_not(self, local_id_not):\n\n self._local_id_not = local_id_not", "def local_id_not(self, local_id_not):\n\n self._local_id_not = local_id_not", "def local_id_not(self, local_id_not):\n\n se...
[ "0.7197917", "0.7197917", "0.7197917", "0.7197917", "0.7195698", "0.7195698", "0.7195698", "0.7195698", "0.71036774", "0.71036774", "0.71036774", "0.71036774", "0.68569016", "0.68569016", "0.68569016", "0.68569016", "0.67762804", "0.67762804", "0.67762804", "0.67762804", "0.6...
0.79845405
2
Sets the name of this RackTopoWhereInput.
def name(self, name): self._name = name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_name(self, name):\n self.name = name # overwrite the existing name with the input name", "def set_name(self, name):\n self.name = name # overwrite the existing name with the input name", "def set_name(self, name):\n self.name = name", "def set_name(self, name):\n self.na...
[ "0.62816876", "0.62816876", "0.61892986", "0.61892986", "0.61892986", "0.61892986", "0.61892986", "0.6170435", "0.60848737", "0.60848737", "0.60848737", "0.60848737", "0.6070444", "0.6055615", "0.6030856", "0.6026591", "0.6026591", "0.60101366", "0.6009285", "0.6008791", "0.6...
0.57066923
95
Sets the name_gt of this RackTopoWhereInput.
def name_gt(self, name_gt): self._name_gt = name_gt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def name_lte(self, name_lte):\n\n self._name_lte = name_lte", "def name_lte(self, name_lte):\n\n self._name_lte = name_lte", "def name_lte(self, name_lte):\n\n self._name_lte = name_lte", "def name_gte(self, name_gte):\n\n self._name_gte = name_gte", "def name_gte(self, name_gte...
[ "0.6638958", "0.6638958", "0.6638958", "0.6441419", "0.6441419", "0.6441419", "0.6339878", "0.6339878", "0.6339878", "0.6064477", "0.6064477", "0.6012755", "0.59077156", "0.59077156", "0.5883013", "0.5872739", "0.5872739", "0.5872739", "0.5872739", "0.5872739", "0.58009326", ...
0.7642825
2
Sets the name_gte of this RackTopoWhereInput.
def name_gte(self, name_gte): self._name_gte = name_gte
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def name_lte(self, name_lte):\n\n self._name_lte = name_lte", "def name_lte(self, name_lte):\n\n self._name_lte = name_lte", "def name_lte(self, name_lte):\n\n self._name_lte = name_lte", "def name_gt(self, name_gt):\n\n self._name_gt = name_gt", "def name_gt(self, name_gt):\n\n...
[ "0.6678733", "0.6678733", "0.6678733", "0.65561974", "0.65561974", "0.65561974", "0.6304957", "0.6304957", "0.5809589", "0.570807", "0.570807", "0.570807", "0.54882437", "0.5421573", "0.54077893", "0.53630954", "0.5358202", "0.534611", "0.534611", "0.534611", "0.53332007", ...
0.79900366
2
Sets the name_in of this RackTopoWhereInput.
def name_in(self, name_in): self._name_in = name_in
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def username_in(self, username_in):\n\n self._username_in = username_in", "def username_in(self, username_in):\n\n self._username_in = username_in", "def setName(self, *args):\n return _libsbml.Input_setName(self, *args)", "def enter_name(self, name):\n self.name = name", "def n...
[ "0.6251172", "0.6251172", "0.5584847", "0.5543617", "0.5508784", "0.5508784", "0.5508784", "0.5504204", "0.5504204", "0.5504204", "0.5450321", "0.54421234", "0.5422524", "0.5422524", "0.5422524", "0.541357", "0.5356685", "0.5322653", "0.5276443", "0.5276443", "0.523198", "0...
0.7833484
2
Sets the name_lt of this RackTopoWhereInput.
def name_lt(self, name_lt): self._name_lt = name_lt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def name_lte(self, name_lte):\n\n self._name_lte = name_lte", "def name_lte(self, name_lte):\n\n self._name_lte = name_lte", "def name_lte(self, name_lte):\n\n self._name_lte = name_lte", "def username_lt(self, username_lt):\n\n self._username_lt = username_lt", "def username_lt...
[ "0.70002127", "0.70002127", "0.70002127", "0.61909455", "0.61909455", "0.6164544", "0.6164544", "0.6164544", "0.54954594", "0.54602635", "0.5449148", "0.5449148", "0.5405603", "0.5405603", "0.5405603", "0.5405603", "0.5405603", "0.5405603", "0.5405603", "0.5405603", "0.540560...
0.7425172
2
Sets the name_lte of this RackTopoWhereInput.
def name_lte(self, name_lte): self._name_lte = name_lte
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def name_lt(self, name_lt):\n\n self._name_lt = name_lt", "def name_lt(self, name_lt):\n\n self._name_lt = name_lt", "def name_lt(self, name_lt):\n\n self._name_lt = name_lt", "def username_lte(self, username_lte):\n\n self._username_lte = username_lte", "def username_lte(self, ...
[ "0.657388", "0.657388", "0.657388", "0.63437176", "0.63437176", "0.5996259", "0.5996259", "0.5996259", "0.57419854", "0.57419854", "0.5664913", "0.5664913", "0.5664913", "0.5655231", "0.564523", "0.55614275", "0.55614275", "0.5464907", "0.53786254", "0.53658986", "0.53658944"...
0.8188046
2
Sets the name_not of this RackTopoWhereInput.
def name_not(self, name_not): self._name_not = name_not
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def name_not_contains(self, name_not_contains):\n\n self._name_not_contains = name_not_contains", "def name_not_contains(self, name_not_contains):\n\n self._name_not_contains = name_not_contains", "def name_not_contains(self, name_not_contains):\n\n self._name_not_contains = name_not_conta...
[ "0.6954161", "0.6954161", "0.6954161", "0.67772615", "0.67772615", "0.67772615", "0.64427143", "0.64427143", "0.64427143", "0.6409279", "0.6409279", "0.6409279", "0.6098785", "0.6098785", "0.58901846", "0.5733991", "0.5733991", "0.5733991", "0.5597344", "0.5560661", "0.556066...
0.76268804
2
Sets the name_not_contains of this RackTopoWhereInput.
def name_not_contains(self, name_not_contains): self._name_not_contains = name_not_contains
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def username_not_contains(self, username_not_contains):\n\n self._username_not_contains = username_not_contains", "def username_not_contains(self, username_not_contains):\n\n self._username_not_contains = username_not_contains", "def name_not_in(self, name_not_in):\n\n self._name_not_in = ...
[ "0.725863", "0.725863", "0.7195495", "0.7195495", "0.7195495", "0.7085236", "0.7085236", "0.7085236", "0.6902626", "0.6902626", "0.6902626", "0.66567", "0.6589834", "0.6589834", "0.6589834", "0.62584263", "0.6228982", "0.6228982", "0.620984", "0.60899097", "0.60899097", "0....
0.8243343
2
Sets the name_not_in of this RackTopoWhereInput.
def name_not_in(self, name_not_in): self._name_not_in = name_not_in
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def username_not_in(self, username_not_in):\n\n self._username_not_in = username_not_in", "def username_not_in(self, username_not_in):\n\n self._username_not_in = username_not_in", "def name_not_contains(self, name_not_contains):\n\n self._name_not_contains = name_not_contains", "def nam...
[ "0.73745716", "0.73745716", "0.7135688", "0.7135688", "0.7135688", "0.6929674", "0.6929674", "0.6929674", "0.6628488", "0.65366566", "0.6534081", "0.64771795", "0.64740556", "0.64740556", "0.64740556", "0.64246696", "0.64246696", "0.64246696", "0.64078885", "0.64078885", "0.6...
0.8386747
2
Sets the name_not_starts_with of this RackTopoWhereInput.
def name_not_starts_with(self, name_not_starts_with): self._name_not_starts_with = name_not_starts_with
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def name_not_contains(self, name_not_contains):\n\n self._name_not_contains = name_not_contains", "def name_not_contains(self, name_not_contains):\n\n self._name_not_contains = name_not_contains", "def name_not_contains(self, name_not_contains):\n\n self._name_not_contains = name_not_conta...
[ "0.70336735", "0.70336735", "0.70336735", "0.7016426", "0.7016426", "0.6761436", "0.6761436", "0.6761436", "0.6649691", "0.6649691", "0.6649691", "0.65989876", "0.6425378", "0.6425378", "0.6425378", "0.63287306", "0.6320121", "0.6300713", "0.6300713", "0.61034423", "0.6103442...
0.77557194
2
Sets the _not of this RackTopoWhereInput.
def _not(self, _not): self.__not = _not
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other):\n if not isinstance(other, RackTopoWhereInput):\n return True\n\n return self.to_dict() != other.to_dict()", "def ip_not(self, ip_not):\n\n self._ip_not = ip_not", "def value_not(self, value_not):\n\n self._value_not = value_not", "def __invert_...
[ "0.6774513", "0.6619821", "0.6384368", "0.6379288", "0.62977403", "0.6170305", "0.6076417", "0.60717565", "0.6018114", "0.5944019", "0.5944019", "0.5944019", "0.5920229", "0.5897962", "0.58952874", "0.586418", "0.586418", "0.58590025", "0.582251", "0.58115697", "0.58082587", ...
0.6914603
4
Returns true if both objects are equal
def __eq__(self, other): if not isinstance(other, RackTopoWhereInput): return False return self.to_dict() == other.to_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): if not isinstance(other, RackTopoWhereInput): return True return self.to_dict() != other.to_dict()
{ "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.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Gets the S3 key.
def _get_key(): conn = boto.connect_s3() bucket = conn.create_bucket(settings.MESSY_BUCKET) key = Key(bucket) key.key = settings.MESSY_KEY return key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s3_key(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"s3_key\")", "def _get_s3_key():\n\n key = __opts__[\"s3.key\"] if \"s3.key\" in __opts__ else None\n keyid = __opts__[\"s3.keyid\"] if \"s3.keyid\" in __opts__ else None\n service_url = __opts__[\"s3.service_url\"] if \"s3.service...
[ "0.83607423", "0.8033255", "0.78219473", "0.7694456", "0.7211386", "0.7119574", "0.7071876", "0.70366186", "0.7030624", "0.691453", "0.6835289", "0.6770695", "0.67562544", "0.67562544", "0.67420065", "0.66646767", "0.6662802", "0.66448146", "0.6642547", "0.6642547", "0.664254...
0.7912493
2
NoneType > str Returns a random direction as a string.
def rand_dir(): return random.choice(["U", "D", "L", "R"])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def random_direction():\n\n if randrange(2):\n return Direction.RIGHT\n else:\n return Direction.DOWN", "def to_string(self):\n return \"Moving randomly\"", "def generate_direction(self):\n random_enum = random.randint(1, 4)\n random_direction = flow_pro...
[ "0.68045473", "0.66852504", "0.65875876", "0.65875876", "0.6278646", "0.6244005", "0.62374175", "0.6146784", "0.614598", "0.6090322", "0.6084502", "0.6058813", "0.6054056", "0.60360116", "0.6017653", "0.6002497", "0.59947866", "0.59796274", "0.5931011", "0.59193766", "0.59002...
0.6410093
4
convert sequence of sequence of character to sequence of int. Only needs doing once per seating plan. Since False is completely inert in this puzzle, it is used as padding, an entire row's worth at the start and one False between each row. This means that any read outofbounds at the left or top returns False. Python ta...
def prepare_input(seating_plan): height = len(seating_plan) width = len(seating_plan[0]) concat='.'.join([ '.' * width ] + seating_plan ) return width, list(map( DECODE.get, concat ))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def count_num_ones_in_a_row(bit_string) -> int:\n\n longest_ones_row: int = 0\n\n current_ones_row: int = 0\n\n for b in bit_string:\n if b == \"1\":\n current_ones_row += 1\n else:\n current_ones_row = 0\n\n if current_ones_row > longest_ones_row:\n l...
[ "0.5434437", "0.5182743", "0.5110041", "0.5087073", "0.50590193", "0.49544176", "0.4916463", "0.49030304", "0.48739794", "0.48658517", "0.48650205", "0.48611474", "0.48438913", "0.48383942", "0.48367897", "0.48130533", "0.4798164", "0.47874844", "0.4770046", "0.47600365", "0....
0.43945584
81
Get all file names in an s3 bucket under a prefix
def get_s3_file_names(s3_prefix_path): # parse s3 path for bucket name and prefix regex = r"s3://([\w._-]+)/([\w./_-]+)" m = re.match(regex, s3_prefix_path) s3bucket_name = m.group(1) s3prefix = m.group(2) # Get s3 bucket handle s3 = boto3.resource('s3') s3bucket = s3.Bucket(s3bucket_n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list_s3_files(bucket, prefix):\n \n s3 = boto3.client('s3')\n\n if type(prefix) != list:\n prefix = [prefix]\n \n # Loop over prefixes:\n file_list = []\n for p in prefix:\n \n # Load one prefix:\n response = s3.list_objects_v2(Bucket=bucket, Prefix=p)\n ...
[ "0.8396554", "0.8170309", "0.81512946", "0.79742587", "0.7873731", "0.7783829", "0.7780647", "0.7750183", "0.77363634", "0.77315295", "0.7685923", "0.767424", "0.7628223", "0.75828314", "0.75598824", "0.74910116", "0.7408463", "0.7401419", "0.73917645", "0.7325658", "0.728853...
0.84861976
0
Register environment variables that shall be passed to jobs. If used multiple times, union is taken.
def register_envvars(self, *envvars): invalid_envvars = [ envvar for envvar in envvars if re.match(r"^\w+$", envvar, flags=re.ASCII) is None ] if invalid_envvars: raise WorkflowError( f"Invalid environment variables requested: {', '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __setitem__(self, key, item):\n super(EnvironmentVariables, self).__setitem__(key, item)\n os.environ[key] = item", "def environment_variables(self, alias):\n raise NotImplementedError", "def push(self):\n\t\tif self.old_vars is not None:\n\t\t\treturn\n\n\t\tself.old_vars = {}\n\t\tfo...
[ "0.6068375", "0.60071605", "0.59273106", "0.59174997", "0.5896219", "0.58577037", "0.58555806", "0.575654", "0.5685337", "0.56708527", "0.56708527", "0.56708527", "0.56708527", "0.56708527", "0.56708527", "0.56085265", "0.5577875", "0.55612004", "0.5548377", "0.5541842", "0.5...
0.65765774
0
Go to `count`'th occurence of char and return position. The position returned is the position of the character to the left of char.
def motion_t(input_line, cur, count): return start_catching_keys(1, "cb_motion_t", input_line, cur, count)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def alphabet_position(letter):\n alphabet = \"abcdefghijklmnopqrstuvwxyz\"\n pos = 0\n for ltr in alphabet:\n if ltr == letter.lower():\n return pos\n pos += 1\n return pos", "def alphabet_position(char):\n if type(char) != type(''):\n return -1\n if len(char) !=...
[ "0.6445499", "0.6247555", "0.6196698", "0.61964697", "0.603888", "0.603888", "0.603888", "0.6028972", "0.5962976", "0.58566046", "0.58560556", "0.5824137", "0.5754913", "0.5745562", "0.5648614", "0.563766", "0.5635208", "0.5617744", "0.5596299", "0.5596299", "0.5596299", "0...
0.0
-1
Go to `count`'th occurence of char to the left and return position. The position returned is the position of the character to the right of char.
def motion_T(input_line, cur, count): return start_catching_keys(1, "cb_motion_T", input_line, cur, count)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def alphabet_position(letter):\n alphabet = \"abcdefghijklmnopqrstuvwxyz\"\n pos = 0\n for ltr in alphabet:\n if ltr == letter.lower():\n return pos\n pos += 1\n return pos", "def f_index(self, substring, direction=[]):\n substr = self.value(substring)\n if \"ba...
[ "0.59519404", "0.58976656", "0.5736575", "0.5681869", "0.5659092", "0.5657891", "0.55815864", "0.54713684", "0.5429683", "0.54113793", "0.54113793", "0.54113793", "0.535179", "0.5328417", "0.53236747", "0.52969044", "0.5290584", "0.52342665", "0.5220072", "0.5218029", "0.5212...
0.0
-1
Move cursor one character to the right and start Insert mode.
def key_a(buf, input_line, cur, count): set_cur(buf, input_line, cur + 1, False) set_mode("INSERT")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def move_right(self) -> None:\n if not self.buffer:\n return\n\n if self.index == self.buffer.end:\n return\n\n if self.buffer[self.index] != '\\n':\n self.index += 1", "def _(event):\n system_line.cursor_right()", "def right(self):\n if self.pos ...
[ "0.68252003", "0.67622185", "0.6515684", "0.65121245", "0.6467355", "0.6291223", "0.6240052", "0.6211605", "0.6158512", "0.6148079", "0.6118906", "0.60702944", "0.6024871", "0.59958017", "0.596368", "0.5904884", "0.5880514", "0.5845216", "0.5829693", "0.5783291", "0.57662374"...
0.52950364
73
Return the position of `regex` match in `data`, starting at `cur`.
def get_pos(data, regex, cur, ignore_cur=False, count=0): # List of the *positions* of the found patterns. matches = [m.start() for m in re.finditer(regex, data[cur:])] pos = -1 if count: if len(matches) > count - 1: if ignore_cur and matches[0] == 0: if len(matches) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_regex_position(self, regex) -> Tuple[int, int]:\n match: Optional[Match[str]] = re.search(regex, self.to_text())\n if match:\n return match.span()\n return 0, 0", "def re_search(pattern, text: str, start_indx: int = 0) -> Optional[int]:\n # \n match = pattern.search(...
[ "0.68702364", "0.66704416", "0.6102916", "0.59745103", "0.5963481", "0.5793938", "0.5629812", "0.5573734", "0.5530377", "0.5528819", "0.5481152", "0.5469207", "0.5460648", "0.5450702", "0.5430332", "0.5372196", "0.5354059", "0.5347576", "0.5326302", "0.5275864", "0.52244323",...
0.8426825
0
Calls ``fit`` and then ``transform`` in one go.
def fit_transform(self, X, y=None): return self.fit(X, y).transform(X)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fit_transform(self, *args, **kwargs):\n self.fit(*args, **kwargs)\n return self.transform(*args, **kwargs)", "def fit_transform ( self, X ):\n self.fit ( X )\n return self.transform ( X )\n # End fit_transform()", "def fit_transform(self, data):\n self.fit(data)\n ...
[ "0.8431472", "0.7796173", "0.77898127", "0.77392167", "0.76386255", "0.76386255", "0.76386255", "0.75783956", "0.74711114", "0.74534696", "0.74437016", "0.74040014", "0.7331055", "0.7297501", "0.7297501", "0.7297501", "0.7297501", "0.7297501", "0.7297501", "0.7297501", "0.729...
0.71321446
39
Calculates the distance between two xy coordinates.
def distance(xy1, xy2): x_dist = xy2[0] - xy1[0] y_dist = xy2[1] - xy1[1] dist = np.sqrt(x_dist ** 2 + y_dist ** 2) return dist
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_distance(x1, y1, x2, y2):\n return math.sqrt((x1 - x2) ** 2 + (y1 * 2.38 - y2 * 2.38) ** 2)", "def distance(coords1, coords2):\n dx = coords1.x - coords2.x\n dy = coords1.y - coords2.y\n return math.sqrt(dx * dx + dy * dy)", "def distance(x1, y1, x2, y2):\n return ((x2 - x1) ** 2 + (y2 -...
[ "0.7771367", "0.7702114", "0.7679753", "0.7652059", "0.76506937", "0.7617508", "0.75930256", "0.7549055", "0.7547686", "0.7485037", "0.7472403", "0.745703", "0.74267226", "0.7394659", "0.7393213", "0.7386989", "0.7384867", "0.7379127", "0.73669827", "0.73475116", "0.73302925"...
0.82487506
0
Plot histograms for max and mean distances between point inside cluster.
def plot_distance_histogram(max_distance, mean_distance): fig = px.histogram(max_distance[max_distance > 0.01], nbins=50, width=500, height=300, title='Maximum distance') st.plotly_chart(fig) fig = px.histogram(mean_distance, nbins=50, w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plot_variation_distn(gene_vars: pd.DataFrame):\n plt.hist(gene_vars.median(axis=1), bins=100, alpha=0.4, label='median')\n plt.hist(gene_vars.mean(axis=1), bins=100, alpha=0.4, label='mean')\n plt.legend()", "def plot_clusters(ax, data_points, cluster_ids):\n cluster_handles = []\n for cluster...
[ "0.6709712", "0.6337368", "0.6336133", "0.6335439", "0.63324237", "0.6296023", "0.61960673", "0.6191632", "0.6184559", "0.6142635", "0.6100508", "0.6084032", "0.6005239", "0.59691054", "0.58815753", "0.5876122", "0.58663917", "0.5843506", "0.5839163", "0.580946", "0.5807422",...
0.74411464
0
Test harvest by metadata formats and sets update
def test_harvest_by_metadata_formats_and_sets_updates_dates( self, mock_convert_file, mock_get ): # Arrange mock_get.return_value.status_code = status.HTTP_200_OK mock_get.return_value.text = OaiPmhMock.mock_oai_response_list_records( with_resumption_token=False )...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_harvest_by_metadata_formats_updates_dates(\n self, mock_convert_file, mock_get\n ):\n # Arrange\n mock_get.return_value.status_code = status.HTTP_200_OK\n mock_get.return_value.text = OaiPmhMock.mock_oai_response_list_records(\n with_resumption_token=False\n ...
[ "0.66467553", "0.66394967", "0.6594749", "0.62221515", "0.6072525", "0.60636157", "0.60621655", "0.60500574", "0.59792817", "0.5951213", "0.58467287", "0.57470304", "0.572195", "0.56661665", "0.5655448", "0.5651421", "0.5571287", "0.55673826", "0.5481746", "0.54785", "0.54673...
0.6679533
0
Test handle deleted metadata format
def test_handle_deleted_metadata_format_deletes_metadata_format(self): # Arrange index = 2 removed_metadata_formats = self.fixture.oai_metadata_formats[:index] metadata_formats_response = self.fixture.oai_metadata_formats[index:] metadata_formats_count = len(self.fixture.oai_meta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_metadata_for_rate_plan(self):\n pass", "def test_delete_base_metadata(self):\n\n # start out by creating some metadata\n\n self.save_base_metadata()\n\n # delete all metadata with name = 'idsvc.basemeta'\n\n self.delete_base_metadata()", "def test_delete_recor...
[ "0.713061", "0.68440616", "0.67413795", "0.6625602", "0.6624542", "0.6611752", "0.65565675", "0.65548825", "0.6552217", "0.6449335", "0.6434983", "0.64160234", "0.64111185", "0.64040285", "0.63893473", "0.6386009", "0.63814753", "0.6353509", "0.6350806", "0.6345755", "0.63410...
0.7828597
0
Returns nanoseconds since epoch for a given datetime object
def unix_time_nanos(dt): return timedelta_to_micros(dt - epoch)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def datetime_to_epoch(datetime_obj):\n return int(datetime_obj.strftime(\"%s\")) * 1000", "def to_epoch(datetime_obj):\n if sys.version_info[0:2] < (3, 3):\n import calendar\n\n return (\n calendar.timegm(datetime_obj.timetuple())\n + datetime_obj.microsecond / 1000000\n...
[ "0.7787504", "0.76819277", "0.75602925", "0.74367595", "0.74367595", "0.73977846", "0.734675", "0.7285828", "0.72454196", "0.7125708", "0.71143866", "0.71143866", "0.708518", "0.7084421", "0.70450485", "0.70230293", "0.6730796", "0.6728611", "0.6664844", "0.66333073", "0.6624...
0.7455836
3
Pull all values of specified key from nested JSON.
def extractValues(jsonObj, key): resultList = [] def extract(jsonObj, resultList, key): """Recursively search for values of key in JSON tree.""" if (isinstance(jsonObj, dict)): for k, v in jsonObj.items(): if (isinstance(v, dict)): extract(v, resul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def extract_values(obj, key): \n arr = [] \n def extract(obj, arr, key): \n \"\"\"Recursively search for values of key in JSON tree.\"\"\" \n if isinstance(obj, dict): \n for k, v in obj.items(): \n if isinstance(v, (dict, list)): \n extract(v, arr, ...
[ "0.74641794", "0.74437475", "0.73697776", "0.73673946", "0.73673946", "0.727579", "0.64386314", "0.6149639", "0.61051595", "0.61051595", "0.61051595", "0.61051595", "0.61051595", "0.6092075", "0.60787505", "0.6049016", "0.6016443", "0.5951423", "0.58230776", "0.579484", "0.57...
0.72856975
5
_Block(left, right, bottom, top) > _Block Block constructor.
def __init__(self, game, left, right, bottom, top, col="black"): # Assign given attributes (ensuring order of coordinates) self.game = game self.canvas = game.canvas # canvas to draw self on self._left = min(left, right) self._right = max(left, right) self._bottom = min(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NewBlock(self):\n for i in self.matrix:\n if 2 in i:\n return()\n blockType = self.bag.Choose()\n subtractor = {\"I\" : 4, \"J\" : 3, \"L\" : 3, \"O\" : 2, \"S\" : 3, \"T\" : 3, \"Z\": 3}\n x = random.randint(0, self.width - subtractor.get(blockType))\n ...
[ "0.6825585", "0.68165857", "0.6612924", "0.6597475", "0.6505491", "0.64830184", "0.6472507", "0.64294213", "0.63980335", "0.63948643", "0.6369957", "0.6291953", "0.6274557", "0.62559456", "0.6233839", "0.6214032", "0.6206659", "0.61950487", "0.6164596", "0.61575216", "0.61544...
0.69547725
0
Block.contains(coords[, closed]) > bool Determines whether the block contains a given coordinate.
def contains(self, coords, closed=True): # Determine output depending on whether boundaries are included if closed == True: # Closed boundaries if (coords[0] >= self.left and coords[0] <= self.right and coords[1] >= self.bottom and coords[1] <= self.top): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __contains__(self, pos):\n if pos in self._coordinates:\n return True\n return False", "def contains(self, block_):\n return block_ in self._inventory", "def active_piece_contains(self, coords):\n return coords in self.active_piece", "def contains(self, loc):\n ...
[ "0.6641128", "0.66092366", "0.651286", "0.63735586", "0.63677835", "0.62577593", "0.6151178", "0.6082885", "0.6023181", "0.59958094", "0.5994588", "0.59893435", "0.5985392", "0.5983305", "0.597921", "0.59752595", "0.5971268", "0.59473747", "0.5945064", "0.59441334", "0.593359...
0.7725503
0
Block.left > None Returns the left coordinate of the block.
def left(self): return self._left
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def left(self):\n x, y = (self.loc[0] - 1, self.loc[1])\n\n if x < 0:\n return None # None\n\n return self.garden.cells[y][x]", "def left(self):\n return self.points['topLeft'].x", "def left(self):\n return self.points['topLeft'].x", "def getLeft(self):\n ...
[ "0.7820609", "0.76094556", "0.76094556", "0.75691503", "0.75053775", "0.7493075", "0.74835277", "0.7406201", "0.7393542", "0.7393542", "0.7342034", "0.7311354", "0.72987753", "0.7173355", "0.7143719", "0.71276456", "0.70625097", "0.70210266", "0.70190674", "0.7011885", "0.698...
0.71962327
13
Block.right > None Returns the right coordinate of the block.
def right(self): return self._right
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_right(self):\n return self.right", "def right(self):\n return self.points['topRight'].x", "def right(self):\n return self.points['topRight'].x", "def right(self):\n\t\treturn self._right", "def get_right(self):\n return BinaryNode.or_none(self.right)", "def right(self)...
[ "0.72982854", "0.7291156", "0.7291156", "0.72764647", "0.72500515", "0.72472894", "0.72472894", "0.7225301", "0.7201846", "0.71960455", "0.7160297", "0.7157017", "0.7115365", "0.7100264", "0.7010553", "0.7007188", "0.693775", "0.6893295", "0.68889153", "0.68827456", "0.685315...
0.70253056
14
Block.bottom > None Returns the bottom coordinate of the block.
def bottom(self): return self._bottom
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bb_bottom(self) -> float:\n return self._bb_bottom", "def bottom(self):\n return self._bottom", "def bottom(self):\n return self.top + self.height", "def bottom(self):\n # type: () -> float\n return self._bottom", "def bottom(self):\n return self.__b", "def b...
[ "0.74641216", "0.73354363", "0.73304975", "0.72890216", "0.7258493", "0.7127747", "0.7127747", "0.71155643", "0.70525", "0.6963116", "0.69521", "0.69521", "0.69521", "0.69363606", "0.68396145", "0.6810668", "0.6703289", "0.6690344", "0.6641899", "0.663824", "0.6606134", "0....
0.7180153
5
Block.top > None Returns the top coordinate of the block.
def top(self): return self._top
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_topBlock(self):\n return self.blocks[len(self.blocks)-1]", "def isTop(self):\n return self.top", "def top_y(self):\r\n return self.position.y + self.size.y + self.bulk", "def _rect_top(self):\n\treturn max(self.y, self.y + self.h)", "def getAbsoluteTop(self):\n return self...
[ "0.8204536", "0.6993749", "0.69681245", "0.69601667", "0.6929859", "0.6922976", "0.6922976", "0.69186443", "0.6916669", "0.68043405", "0.66836333", "0.66803885", "0.6646542", "0.65600103", "0.65578455", "0.65578455", "0.6543995", "0.6423511", "0.6420385", "0.6417676", "0.6409...
0.6347517
29
Get the intrinsics for this observation. This incorporates any cropping and rescaling.
def get_intrinsics(self): if self._K is None: K = self.original_intrinsics.clone() if self.crop is not None: K[:2,2] -= torch.tensor(self.crop[:,0], device=K.device, dtype=K.dtype) K[:2] *= self.reup_sample / self.down_sample self._K = K re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def intrinsics(self) -> 'Intrinsics':\n return self._intrinsics", "def intrinsic(self):\n return self._intrinsic", "def load_extrinsics(self):\n return self.um.read_json(\"extrinsics.json\")", "def get_intrinsics(pipeline, stream=rs.stream.color):\n streams = [stream_ for stream_ in p...
[ "0.77680504", "0.68007195", "0.6519215", "0.5774329", "0.56933033", "0.5657432", "0.5606371", "0.5570105", "0.5532207", "0.5333015", "0.5305723", "0.52199256", "0.5212993", "0.52031714", "0.5199302", "0.51967293", "0.5167076", "0.51630265", "0.5160785", "0.5145891", "0.513756...
0.71719646
1
The name which should be used for Virtual Hub Route Table. Changing this forces a new resource to be created.
def name(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def name(self) -> str:\n return f\"lookup_table_{self.table_number}\"", "def name(self):\n return \"{} {}\".format(self._vehicle_name, self._entity_name)", "def name(self) -> str:\n pass", "def name(self) -> str:\n pass", "def name(self) -> str:\n pass", "def name(self)...
[ "0.63935375", "0.6381965", "0.6366254", "0.6366254", "0.6366254", "0.6366254", "0.62835854", "0.62674063", "0.6224312", "0.61809045", "0.61809045", "0.6177253", "0.61525345", "0.6137528", "0.61044693", "0.60665375", "0.60613376", "0.60519737", "0.60463953", "0.60348016", "0.6...
0.0
-1
The name which should be used for Virtual Hub Route Table. Changing this forces a new resource to be created.
def name(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def name(self) -> str:\n return f\"lookup_table_{self.table_number}\"", "def name(self):\n return \"{} {}\".format(self._vehicle_name, self._entity_name)", "def name(self) -> str:\n pass", "def name(self) -> str:\n pass", "def name(self) -> str:\n pass", "def name(self)...
[ "0.63935375", "0.6381965", "0.6366254", "0.6366254", "0.6366254", "0.6366254", "0.62835854", "0.62674063", "0.6224312", "0.61809045", "0.61809045", "0.6177253", "0.61525345", "0.6137528", "0.61044693", "0.60665375", "0.60613376", "0.60519737", "0.60463953", "0.60348016", "0.6...
0.0
-1
Get an existing VirtualHubRouteTable resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions] = None, labels: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, name: Optional[pulumi.Input[str]] = None, routes: Optional[pulumi.Input[Sequence[pulumi.Input[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get(resource_name: str,\n id: pulumi.Input[str],\n opts: Optional[pulumi.ResourceOptions] = None,\n disable_bgp_route_propagation: Optional[pulumi.Input[bool]] = None,\n location: Optional[pulumi.Input[str]] = None,\n name: Optional[pulumi.Input[str]] = No...
[ "0.67970794", "0.54059315", "0.5268541", "0.50608367", "0.5049539", "0.50296354", "0.50124806", "0.5007328", "0.5002771", "0.49973488", "0.49848753", "0.49062127", "0.48991695", "0.48945352", "0.48594034", "0.48161557", "0.48118907", "0.48006296", "0.47598097", "0.47329548", ...
0.75046885
0
The name which should be used for Virtual Hub Route Table. Changing this forces a new resource to be created.
def name(self) -> pulumi.Output[str]: return pulumi.get(self, "name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def name(self) -> str:\n return f\"lookup_table_{self.table_number}\"", "def name(self):\n return \"{} {}\".format(self._vehicle_name, self._entity_name)", "def name(self) -> str:\n pass", "def name(self) -> str:\n pass", "def name(self) -> str:\n pass", "def name(self)...
[ "0.63935375", "0.6381965", "0.6366254", "0.6366254", "0.6366254", "0.6366254", "0.62835854", "0.62674063", "0.6224312", "0.61809045", "0.61809045", "0.6177253", "0.61525345", "0.6137528", "0.61044693", "0.60665375", "0.60613376", "0.60519737", "0.60463953", "0.60348016", "0.6...
0.0
-1
The quantification process used Returns QuantificationProcess
def quantification_process(self): return QuantificationProcess(self._get_attr('quantitation_process_id'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def quantification_process(self):\n return QuantificationProcess(\n self._get_attr('quantification_process_id'))", "def product(self):\n return self.program", "def get_quantization_capability(self):\n return self.cur_config['capabilities']", "def get_quant(q):\n\n try:\n ...
[ "0.84715116", "0.5989796", "0.5768388", "0.57067835", "0.5666014", "0.56296456", "0.5559128", "0.5559128", "0.5523555", "0.53366214", "0.53366214", "0.5330947", "0.5271156", "0.52612513", "0.52107656", "0.52055824", "0.5173825", "0.51559055", "0.51521474", "0.51510143", "0.51...
0.8434535
1
Creates a new quantification process
def create(cls, user, plate, concentrations, compute_concentrations=False, size=500): with sql_connection.TRN as TRN: # Add the row to the process table process_id = cls._common_creation_steps(user) # Add the row to the quantification process table ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def quantification_process(self):\n return QuantificationProcess(\n self._get_attr('quantification_process_id'))", "def quantification_process(self):\n return QuantificationProcess(self._get_attr('quantitation_process_id'))", "def new_process() -> Process:\n return multiprocessing.P...
[ "0.68975306", "0.6787622", "0.6397699", "0.5948631", "0.58434695", "0.5631562", "0.5597762", "0.55434716", "0.5437389", "0.54004145", "0.5326845", "0.5295861", "0.5287299", "0.52578855", "0.52225804", "0.5201594", "0.5183938", "0.5177295", "0.51579636", "0.51207185", "0.51076...
0.55256206
8
The quantification process used Returns QuantificationProcess
def quantification_process(self): return QuantificationProcess( self._get_attr('quantification_process_id'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def quantification_process(self):\n return QuantificationProcess(self._get_attr('quantitation_process_id'))", "def product(self):\n return self.program", "def get_quantization_capability(self):\n return self.cur_config['capabilities']", "def get_quant(q):\n\n try:\n e_q = eval(...
[ "0.8434535", "0.5989796", "0.5768388", "0.57067835", "0.5666014", "0.56296456", "0.5559128", "0.5559128", "0.5523555", "0.53366214", "0.53366214", "0.5330947", "0.5271156", "0.52612513", "0.52107656", "0.52055824", "0.5173825", "0.51559055", "0.51521474", "0.51510143", "0.513...
0.84715116
0
Returns a dictionary of datasets and their tables.
def get_datasets_tables_dict(client=None, project_id=None, datasets=None): try: datasets_tables_dict = {} for dataset in datasets: tables_list = [] dataset_id = "{}.{}".format(project_id, dataset) tables = client.list_tables(dataset_id) for table in ta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def all_datasets():\n query = db.session.query(Dataset)\n result = [dict(name=q.name, description=q.description, id=q.id) for q in query]\n return result", "def list_datasets():\n return METADATA.keys()", "def load_datasets():\n idx, data_paths, data_names, desc_paths, descrips, sql_paths, \\\n ...
[ "0.7235202", "0.6944591", "0.6713814", "0.65701544", "0.65004414", "0.6482518", "0.6466176", "0.6457198", "0.64159775", "0.63828063", "0.63090944", "0.6304535", "0.62913364", "0.62419105", "0.6207056", "0.61500645", "0.6124744", "0.6117548", "0.6104602", "0.61000395", "0.6088...
0.7284458
0
Given a groundtruth mapping and a set of detected boxes to
def maximum_F_score(groundtruth, eval_boxes, match_mode="ellipse"): if match_mode=="ellipse": matcher = lambda gt,other: gt.ellipse_matches(other) elif match_mode=="iou": matcher = lambda gt,other: gt.iou_score(other) >= 0.5 all_confidences = {box.confidence for boxes ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def process_bounding_boxes(ground_truth_file: Path) -> List[Dict]:\n index_shifts = defaultdict(lambda: 0)\n index_shifts[\"cubicle\"] = 1108\n folder_name = ground_truth_file.parent.name\n \n annotations = []\n ground_truth_dataframe = pd.read_csv(str(ground_truth_file),\n ...
[ "0.6281427", "0.6181949", "0.61099946", "0.61043555", "0.6074971", "0.6033307", "0.5898831", "0.58806026", "0.5855041", "0.5839623", "0.5826907", "0.58081", "0.58005494", "0.57584375", "0.5752238", "0.5730865", "0.57225484", "0.57168", "0.57049537", "0.5702538", "0.5696623", ...
0.0
-1
Gets the phone_number_detail of this BoxOfficeInfo.
def phone_number_detail(self): return self._phone_number_detail
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def phone_number(self):\n\n return self._phone_number", "def person_phone_number(self):\n return self._person_phone_number", "def getPhone(self):\n return self.phone", "def phone(self):\n return self._phone", "def phone(self):\n return self._phone", "def phone(self):\n ...
[ "0.7441795", "0.71078277", "0.7100242", "0.70996076", "0.70996076", "0.70996076", "0.7086528", "0.706798", "0.70275205", "0.6923316", "0.6786445", "0.6630396", "0.66205025", "0.6585115", "0.6585115", "0.65633845", "0.6561204", "0.64671636", "0.6444344", "0.6399482", "0.639948...
0.8505326
0
Gets the accepted_payment_detail of this BoxOfficeInfo.
def accepted_payment_detail(self): return self._accepted_payment_detail
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def accepted_payment_detail(self, accepted_payment_detail):\n\n self._accepted_payment_detail = accepted_payment_detail", "def check_payment(self):\n return self.payment", "def payment_details(self):\n return {\n \"avs_result_code\": None,\n \"credit_card_bin\": None,...
[ "0.6678096", "0.5962121", "0.573118", "0.5636509", "0.547486", "0.51894546", "0.51831114", "0.50670874", "0.49011776", "0.48864403", "0.4882627", "0.48753974", "0.48436886", "0.4836202", "0.4821255", "0.4757125", "0.47518593", "0.4694009", "0.46859717", "0.46816155", "0.46726...
0.84743637
0
Returns true if both objects are equal
def __eq__(self, other): if not isinstance(other, BoxOfficeInfo): 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.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Construct a new gradient descent optimizer.
def __init__(self, opt, num_worker, ea_custom_getter, communication_period=10, moving_rate=None, rho=None, use_locking=True, name='ElasticAverageOptimizer'): super(ElasticAverageOptimizer, self)._...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _create_optimizer(self):\n\n with tf.name_scope(\"optimizer\"):\n self.train_step = tf.train.AdamOptimizer(self.learning_rate).minimize(self.loss)", "def optimizer(self):\n \n # taken from https://github.com/germain-hug/Deep-RL-Keras/blob/master/DDPG/actor.py\n # I beli...
[ "0.6937334", "0.6802123", "0.676275", "0.66894627", "0.6526477", "0.64694536", "0.64607126", "0.64053476", "0.63860077", "0.62861127", "0.6270386", "0.62533", "0.6239819", "0.62292415", "0.6204997", "0.6202538", "0.62011224", "0.6196762", "0.61962026", "0.6193676", "0.6188683...
0.0
-1
Get plan parameters for all patients.
def get_pars_df(plan_type, stop=False): df = pd.concat([get_plan_pars(patient, plan_type, stop) for patient in patients]) return df
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def parameters(self) -> ReportParameters:\n return self.__parameters", "def get_deployment_parameters(plan_name):\n pass", "def get_resource_params(self):\n return Parameter.list()", "def get_resource_params(self):\n return Parameter.list()", "def get_resource_params():\n ret...
[ "0.6297876", "0.627747", "0.62122905", "0.62122905", "0.61405724", "0.6049135", "0.6042027", "0.5947191", "0.5884277", "0.5875059", "0.5868193", "0.57517767", "0.5733177", "0.5679059", "0.5653664", "0.5633117", "0.5630937", "0.5583798", "0.5514538", "0.5509458", "0.550274", ...
0.56992716
13
Find all valid animations in a directory and load them.
def parse_animation_path(path, verbose=True): output = {} # Iterate through all possible paths for folder_path in os.listdir(path): animation_dict = {'transition': [], 'idle': [], 'transition_playback': [], 'idle_playback': [], 'animation_name': ""} animation_path = path + "/" + folder_path...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_animations(path, frame_durations):\r\n global animation_frames\r\n animation_name = path.split('/')[-1]\r\n animation_frame_data = []\r\n n = 0\r\n for frame in frame_durations:\r\n animation_frame_id = animation_name + '_' + str(n)\r\n img_loc = path + '/' + animation_frame_i...
[ "0.6402239", "0.637425", "0.63715035", "0.6058137", "0.60054266", "0.59256756", "0.59181404", "0.5874162", "0.5829023", "0.5813665", "0.5780398", "0.57705474", "0.5728846", "0.5719544", "0.5630623", "0.5626089", "0.56150806", "0.55990714", "0.5574492", "0.5573924", "0.5569095...
0.6248374
3
return an ETF object if security has ETF holding URL in vendor attribute
def get_etf(self, etf_xpath): security = self.pp.findall(etf_xpath)[0] if security is not None: sec_attrs = security.findall("attributes/map/entry/string") for index, attr in enumerate(sec_attrs): if attr.text == "vendor" and sec_attrs[index + 1].text.startswith(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_vendor(self) -> bool:\n return self._is_vendor", "def is_vendor(schema_obj):\n\n return isinstance(schema_obj, schema.Vendor)", "def vendor(self):\n return self._vendor", "def _is_external(record):\n # Spooky 2003\n # return record.get('Offsite', 'none') != 'none'\n # or record.g...
[ "0.55942893", "0.55707043", "0.53653187", "0.5214443", "0.49491537", "0.48960552", "0.48864573", "0.48109338", "0.48078942", "0.47628608", "0.47513473", "0.47339204", "0.46893507", "0.4686988", "0.46488523", "0.463671", "0.4601492", "0.4598067", "0.45953238", "0.45751956", "0...
0.6323625
0
Check that the release for this month exists.
def check_release_exists(self, **kwargs): # List all available releases for logging and debugging purposes # These values are not used to actually check if the release is available logging.info(f"Listing available releases since start date ({self.start_date}):") for dt in pendulum.perio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def check_release_exists(month: pendulum.DateTime, api_key: str) -> bool:\n\n url = make_snapshot_url(month)\n logging.info(f\"Checking if available release exists for {month.year}-{month.month}\")\n\n # Get API key: it is required to check the head now\n response = retry_session().head(url, headers={\...
[ "0.78785485", "0.62169814", "0.6191513", "0.6009361", "0.5974202", "0.59386384", "0.5889406", "0.5885006", "0.5810904", "0.58104485", "0.5739051", "0.5680775", "0.5663511", "0.5641951", "0.5636694", "0.5622883", "0.56011903", "0.5587745", "0.55820537", "0.5567463", "0.5522334...
0.7642542
1
tests bst in order method on empty bst
def test_bst_empty_in_order(bst_empty): check_list = [] bst_empty.in_order_trav(lambda x: check_list.append(x.val)) assert check_list == []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_bst_empty_post_order(bst_empty):\n check_list = []\n bst_empty.post_order_trav(lambda x: check_list.append(x.val))\n assert check_list == []", "def test_bst_empty_pre_order(bst_empty):\n check_list = []\n bst_empty.pre_order_trav(lambda x: check_list.append(x.val))\n assert check_list ...
[ "0.75954217", "0.7376157", "0.73579586", "0.73500884", "0.72984385", "0.72513807", "0.7230444", "0.71067333", "0.7012506", "0.69414914", "0.69010836", "0.68833834", "0.6835892", "0.6735825", "0.6631416", "0.6630468", "0.6581142", "0.6574777", "0.65679", "0.65576696", "0.65576...
0.7605019
0
build and return state dictionary for device initialize all keys to capability name of device initialize all values to zero
def build_state(device, config): capaRAW = device.capabilities(absinfo=False) state = {} for code in capaRAW[1]: state[config[code]] = 0 for code in capaRAW[3]: state[config[code]] = 0 print("State Dict: " + str(state)) return state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def device_state_attributes(self):\n return {\"uuid\": self.uuidAction, \"room\": self.room,\n \"category\": self.cat,\n \"device_typ\": self.type, \"plattform\": \"loxone\"}", "def device_state_attributes(self):\n return {\"uuid\": self.uuidAction,\n \"...
[ "0.7224036", "0.7205461", "0.7145719", "0.70523465", "0.68096894", "0.68096894", "0.67976725", "0.67856985", "0.6714044", "0.6708391", "0.6695226", "0.6658671", "0.66528654", "0.66309243", "0.66279703", "0.6621059", "0.66146004", "0.65808827", "0.6576411", "0.6576411", "0.657...
0.7832025
0
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. (This function is copied from the scikit docs.)
def plot_confusion_matrix( cm, classes, normalize=False, title=None, cmap=plt.cm.Blues ): fig, ax = plt.subplots(figsize=(7, 7)) tick_marks = np.arange(len(classes)) plt.xticks(tick_marks, classes, rotation=45, fontsize=18) plt.yticks(tick_marks, classes, fontsize=18) if normalize: cm = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plot_confusion_matrix(cm, classes=[0,1], normalize=False, title='Confusion matrix', print_matrix=False):\n\n if normalize:\n cm = cm.astype('float') / cm.sum(axis=1)[:, np.newaxis]\n print(\"Normalized confusion matrix\")\n else:\n print('Confusion matrix, without normalization')\n\n...
[ "0.8291852", "0.8190168", "0.8140033", "0.81229806", "0.8111017", "0.8108353", "0.8096154", "0.80757433", "0.8073566", "0.8045413", "0.80414635", "0.80382246", "0.8028008", "0.8026538", "0.8022099", "0.80220085", "0.8021506", "0.80207795", "0.80159825", "0.80020523", "0.80014...
0.0
-1
Stop the audio stream.
def stop(self) -> None: self._stream.stop()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def stop(self):\n self.stream.stop()\n self.running = False", "def stop(self) -> None:\n self._stream.stop()", "def stop(self):\n\t\tself.stream.stop_stream()", "def stop(self):\n self.prestop()\n if not self._graceful:\n self._graceful = True\n self.stream.st...
[ "0.7701117", "0.76953137", "0.76714396", "0.7450446", "0.7354546", "0.73386073", "0.7262591", "0.72359985", "0.72359985", "0.7014574", "0.6972987", "0.69596606", "0.6844021", "0.68406713", "0.67888784", "0.67817616", "0.67804784", "0.677045", "0.6749673", "0.6715556", "0.6707...
0.7615434
3
Close the audio stream.
def close(self) -> None: self._stream.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def close(self):\n\t\tself.stream.close()\n\t\tself.audio.terminate()", "def close(self):\n logger.debug(\"Microphone stream close and terminate\")\n self.stream.close()\n self._pyaudio.terminate()", "def close(self):\n self._raw_stream.close()", "def close(self):\n self.st...
[ "0.85782593", "0.8448956", "0.70777684", "0.70608616", "0.7021276", "0.6800729", "0.67989045", "0.6708998", "0.6510369", "0.64281255", "0.6424435", "0.6296699", "0.6280442", "0.625844", "0.62496454", "0.62421346", "0.61937463", "0.6179246", "0.61588633", "0.60518926", "0.6044...
0.70106786
5