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 config path for cargo
def cargo(self): return self.program_config('cargo')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_config_path(config):\n section = config.sections()[0]\n return Path(config.get(section, \"path\")).expanduser().absolute()", "def get_config_file_location():\n\n return './' + CONFIG_FILE_NAME", "def config_path(self):\n if os.path.exists(self._config_path):\n if pyhocon.Conf...
[ "0.76445484", "0.7357989", "0.72958213", "0.7262911", "0.71334225", "0.70489067", "0.6979024", "0.69698685", "0.695785", "0.6903888", "0.6862924", "0.6853449", "0.6811625", "0.68036485", "0.6802171", "0.6765153", "0.6692756", "0.66885567", "0.66841614", "0.6668542", "0.665596...
0.68761015
10
Return the path of the bootstrap binary >>> rb = RustBuild() >>> rb.build_dir = "build" >>> rb.bootstrap_binary() == os.path.join("build", "bootstrap", ... "debug", "bootstrap") True
def bootstrap_binary(self): return os.path.join(self.build_dir, "bootstrap", "debug", "bootstrap")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getBinary():\n binary = shutil.which(_ROCKETLOGGER_BINARY)\n\n if not os.path.exists(binary):\n raise FileNotFoundError(f\"Could not find RocketLogger CLI binary! [{binary}]\")\n return os.path.abspath(binary)", "def binpath(self):\n return self._query_config()['binpath']", "def _loc...
[ "0.6501012", "0.6446271", "0.63738173", "0.6293306", "0.62902945", "0.6243017", "0.6200907", "0.6120744", "0.60271037", "0.6025772", "0.59782386", "0.5977699", "0.5947214", "0.5842583", "0.5836883", "0.5742966", "0.5741013", "0.5709209", "0.5697173", "0.5680149", "0.55556047"...
0.85444516
0
kaldi_io uses an environment variable to find the Kaldi library's root folder. If it is invalid or not set, the value of /features/kaldi is set as the Kaldi root.
def check_kaldi_root(): if 'KALDI_ROOT' in os.environ and os.path.exists(os.environ['KALDI_ROOT']): return os.environ['KALDI_ROOT'] else: path = os.path.join(root_folder(), "features", "kaldi") if os.path.exists(path): os.environ['KALDI_ROOT'] = path return os.environ['KALDI_ROOT'] else: raise Valu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_kale_data_directory(path):\n global KALE_DATA_DIRECTORY\n KALE_DATA_DIRECTORY = path\n # create dir if not exists\n if not os.path.isdir(KALE_DATA_DIRECTORY):\n os.makedirs(KALE_DATA_DIRECTORY, exist_ok=True)", "def _get_default_path(self):\n return os.path.join(cfg.ROOT_DIR, 'd...
[ "0.5875908", "0.57268023", "0.54081595", "0.52736276", "0.5256511", "0.52441525", "0.5231393", "0.5214949", "0.51991934", "0.5178766", "0.51572204", "0.51507795", "0.5135949", "0.5109051", "0.51053786", "0.5103579", "0.5076598", "0.5073329", "0.50660205", "0.5042429", "0.5036...
0.79011804
0
Compute finite geometric series. \frac{1q^{n+1}}{1q} q \neq 1 \sum_{k=0}^{n} q^{k}= n+1 q = 1
def geometric_series(q, n): q=np.asarray(q) if n<0: raise ValueError('Finite geometric series is only defined for n>=0.') else: """q is scalar""" if q.ndim==0: if q==1: s=(n+1)*1.0 return s else: s=(1.0-q**(n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fatorial(n):\r\n if n <= 1: return 1\r\n return n * fatorial(n-1)", "def stirling(n):\n return n**n*isqrt(2*math.pi*n)/math.e**n", "def agnesi(x):\n return 1/(1+x**2)", "def geometric_series_sum(a, r, n):\n\n if isinstance(a, int) and isinstance(r, int):\n return a * (1 - (r ** n)) ...
[ "0.64170563", "0.61897737", "0.615009", "0.6080265", "0.60376835", "0.6000095", "0.5976809", "0.5947456", "0.5943067", "0.58889735", "0.58889174", "0.5874012", "0.5861337", "0.5857494", "0.5814781", "0.5809355", "0.5804757", "0.5801962", "0.57953936", "0.579292", "0.57850075"...
0.81810004
0
Get the detected bounding boxes from the SSD network output.
def detected_bboxes(self, predictions, localisations, select_threshold=None, nms_threshold=0.5, clipping_bbox=None, top_k=400, keep_top_k=200): # Select top_k bboxes from predictions, and clip rscores, rbboxes = \ box_select.tf_ssd_bboxes_selec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_bounding_boxes(frame):\n\n blob = cv2.dnn.blobFromImage(frame,1/255,(320,320),(0,0,0),1,crop=False)\n net.setInput(blob)\n\n output_layer_names = net.getUnconnectedOutLayersNames()\n layer_outputs = net.forward(output_layer_names)\n\n all_boxes, confidences = get_all_boxes(layer_outputs)\n\n...
[ "0.7495357", "0.68824553", "0.6798949", "0.67103463", "0.6709204", "0.66973335", "0.6607526", "0.6582039", "0.65757346", "0.65521115", "0.65403104", "0.65219754", "0.65057373", "0.65040004", "0.64606047", "0.64568734", "0.64426696", "0.64184666", "0.6411301", "0.6349326", "0....
0.5854419
90
Manually stepped learning rate schedule. This function provides fine grained control over learning rates. One must specify a sequence of learning rates as well as a set of integer steps at which the current learning rate must transition to the next. For example, if boundaries = [5, 10] and rates = [.1, .01, .001], then...
def learning_rate(self, global_step, boundaries, rates, warmup=False): if any([b < 0 for b in boundaries]) or any( [not isinstance(b, int) for b in boundaries]): raise ValueError('boundaries must be a list of positive integers') if any([bnext <= b for bnext, b in zip(boundari...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def learning_rate_with_decay(\n initial_learning_rate, batches_per_epoch, boundary_epochs, decay_rates):\n\n # Reduce the learning rate at certain epochs, for Example:\n boundaries = [int(batches_per_epoch * epoch) for epoch in boundary_epochs]\n vals = [initial_learning_rate * decay for decay in d...
[ "0.7089953", "0.70227915", "0.69611406", "0.6846135", "0.6810672", "0.6749626", "0.6714214", "0.67019784", "0.66708815", "0.6657697", "0.6652296", "0.6616959", "0.65748006", "0.65481925", "0.64309347", "0.6426213", "0.6425594", "0.64149636", "0.640591", "0.64008325", "0.63612...
0.8189117
0
Callable to compute the learning rate.
def eager_decay_rate(): rate_index = tf.reduce_max(tf.where( tf.greater_equal(global_step, boundaries), list(range(num_boundaries)), [0] * num_boundaries)) return tf.reduce_sum(rates * tf.one_hot(rate_index, depth=num_boundaries), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def learning_rate(epoch):\n self.lr = self.lr / 1.00000001\n return self.lr", "def __call__(self, epoch):\n # Compute the new dynamic learning rate, log in onto TensorBoard and\n # return the result for the training process\n learning_rate = self.schedule(epoch)\n ...
[ "0.8017138", "0.8015899", "0.77871585", "0.7787025", "0.77286345", "0.7575419", "0.7575419", "0.73909295", "0.7386087", "0.7383489", "0.7357151", "0.7334362", "0.73055756", "0.7290091", "0.7195071", "0.70888054", "0.70372975", "0.69462717", "0.6942799", "0.6942799", "0.688722...
0.0
-1
Try to obtain the feature shapes from the prediction layers. The latter can be either a Tensor or Numpy ndarray.
def ssd_feat_shapes_from_net(predictions, default_shapes=None): feat_shapes = [] for l in predictions: # Get the shape, from either a np array or a tensor. if isinstance(l, np.ndarray): shape = l.shape else: shape = l.get_shape().as_list() shape = shape[1:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def shape_for_keras(data):\n raise NotImplementedError", "def _ExtractInputShapes(inputs):\n if context.executing_eagerly():\n return array_ops.shape_n(inputs)\n sizes = []\n fully_known = True\n for x in inputs:\n input_shape = array_ops.shape(x)\n if not isinstance(input_shape,\n ...
[ "0.6534218", "0.64745057", "0.63931227", "0.6351227", "0.6326297", "0.6197908", "0.61723787", "0.6138166", "0.6077511", "0.6072103", "0.6034738", "0.59802115", "0.59706295", "0.5963225", "0.5928013", "0.59279156", "0.5910438", "0.5898873", "0.5898848", "0.589336", "0.5891879"...
0.69764805
0
Test enumeration of rows.
def test_enumerate(self): rows = [{'a': 1, 'b': 2, 'c': 3, 'start': '2000-03-01', 'end': '2000-03-31'}, {'a': 1, 'b': 2, 'c': 3, 'start': '2000-02-01T0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def testIterator(self):\n # Use the iterator to convert storage table to a list.\n iter_rows = [r for r in self._table]\n self.assertSameElements(self._fake_rows, iter_rows)", "def exitsinrow(self,rows,row,num):\r\n for i in range(9):\r\n if(rows[row][i] == num):\r\n ret...
[ "0.66109395", "0.62250143", "0.61250716", "0.6122856", "0.61216635", "0.6107242", "0.60709083", "0.6056882", "0.6044005", "0.60348046", "0.6016162", "0.6009253", "0.5990954", "0.5987957", "0.59637445", "0.59420025", "0.5941206", "0.5929429", "0.5922514", "0.59224623", "0.5920...
0.0
-1
two layers of conv
def dpcnn_two_layers_conv(self, inputs,double_num_filters=True): # conv1: # filter1's first three dimension apply to [total_sequence_length, embed_size, 1] of embedding_documents print("dpcnn_two_layers_conv.inputs:", inputs) # (128, 400, 64, 250) channel = inputs.get_shape().as_list()[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _make_conv_layers(self):\n conv = nn.Sequential(\n nn.Conv2d(in_channels=3, out_channels=64, kernel_size=7, stride=2, padding=1), # padding=3 so, output is 224.\n nn.LeakyReLU(0.1, inplace=True),\n nn.MaxPool2d(kernel_size=2, stride=2),\n\n nn.Conv2d(64, 192, ...
[ "0.7190004", "0.70684165", "0.70220023", "0.7004652", "0.69546866", "0.6842098", "0.6827046", "0.67572886", "0.6756408", "0.6692614", "0.66856736", "0.6591926", "0.6570884", "0.6561698", "0.6560644", "0.6560234", "0.6541976", "0.65413654", "0.65412855", "0.6532817", "0.651732...
0.72218907
0
Returns the ReLU of x, or the maximum between 0 and x.
def rectified_linear_unit(x): # TODO return(max(0,x))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ReLU(self, x):\n self.x = x\n output = np.maximum(0, x)\n return output", "def ReLU(self, x):\r\n self.x = x\r\n return np.maximum(x, 0)", "def relu(x):\r\n return np.maximum(0, x)", "def relu(self, X):\n return np.maximum(0,X)", "def relu(X):\n return np.maximum(0, ...
[ "0.8951497", "0.89488494", "0.82029915", "0.79417133", "0.78986603", "0.78288734", "0.77903426", "0.773336", "0.76986635", "0.7421358", "0.7376813", "0.7361736", "0.72113276", "0.72113276", "0.7195853", "0.7188389", "0.71552825", "0.708764", "0.70729655", "0.70519197", "0.700...
0.5739853
91
Generates a seven string ID of uppercase characters and integers unless given the arguments 1) the length 2) characters to choose from in generation. h/t to the internet.
def id_generator(size=7, chars=string.ascii_uppercase + string.digits): return ''.join(random.choice(chars) for _ in range(size))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def generate_id(length: int = 8):\n return \"\".join(random.choices(string.ascii_uppercase, k=length))", "def _create_id(length=40):\n\n numbers = map(str, range(10))\n letters = string.ascii_lowercase\n options = [*letters[:letters.index('f') + 1], *numbers]\n\n return ''.join(random.choice(optio...
[ "0.8095845", "0.7857402", "0.7657469", "0.75725824", "0.7454014", "0.73896694", "0.73289275", "0.7272568", "0.7220518", "0.7218847", "0.7185995", "0.7161263", "0.713402", "0.70177954", "0.6911522", "0.6867098", "0.6860809", "0.6857976", "0.68290794", "0.6811874", "0.68024933"...
0.74000174
5
Sets new value for the item.
def change_value(self,val): self.val = val
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set(self, item, value):\r\n raise NotImplementedError", "def assignValue(self,value):\n self.itemset(value)", "def assignValue(self,value):\n self.itemset(value)", "def set(self, value):\n self._storage.set(self._item, value)", "def __setitem__(self, item, val):\r\n i...
[ "0.83226466", "0.83174634", "0.83174634", "0.8062194", "0.770938", "0.7640474", "0.7587172", "0.75502914", "0.7512661", "0.749695", "0.7477291", "0.7460612", "0.7460612", "0.7459504", "0.74300003", "0.74300003", "0.74300003", "0.7410093", "0.7386924", "0.7379545", "0.73572934...
0.7429102
17
Gets the Domain's favicon
def favicon(self): return self._favicon
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def favicon_url(self):\n return self.get_url(\"favicon\", \"images/favicon.png\")", "def fetch_favicon(self): \n favurl = \"%s://%s/favicon.ico\" % (self.urlparts.scheme, self.domain)\n r = requests.get(favurl)\n if r:\n return favurl\n else:\n return \...
[ "0.7991159", "0.7827191", "0.7489889", "0.7185111", "0.7060468", "0.70231974", "0.6853769", "0.67203623", "0.6712647", "0.66638947", "0.6654414", "0.65432954", "0.64651734", "0.64547086", "0.64225453", "0.63456744", "0.6304714", "0.62264204", "0.6198862", "0.60971475", "0.601...
0.8000715
0
Checks if a Domain is not equal to another Domain
def __ne__(self, other): return not self.__eq__(other)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_not_on_same_domain(self):\n self.assertFalse(on_same_domain(\n \"https://google.com\",\n \"https://google.goggle.com/google.com/google\"\n ))", "def __ne__(self, other):\n if not isinstance(other, DomainCdnConfig):\n return True\n\n return sel...
[ "0.72324234", "0.70820844", "0.6672376", "0.6668582", "0.6656604", "0.6640723", "0.66364646", "0.6499802", "0.6443076", "0.6416048", "0.6385574", "0.6379093", "0.63785714", "0.63719815", "0.63426685", "0.6338419", "0.63318557", "0.6324951", "0.63234556", "0.6323139", "0.62741...
0.0
-1
A string representation of this pinterest.Domain instance The return value is the same as the JSON string representation
def __str__(self): return self.asJsonString()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __str__(self):\n return json.dumps(self._data, indent=4)", "def to_string(self) -> str:\n return json.dumps(self.to_json())", "def to_string(self) -> str:\n return json.dumps(self.to_json())", "def __str__(self):\n return json.dumps(self.__dict__, indent=4, separators=(',', ':...
[ "0.7550868", "0.7393305", "0.7393305", "0.73338115", "0.73235095", "0.7254007", "0.7254007", "0.7219147", "0.7219147", "0.7219147", "0.7219147", "0.7219147", "0.7219147", "0.7219147", "0.7219147", "0.7219147", "0.7219147", "0.7219147", "0.7219147", "0.7219147", "0.7219147", ...
0.0
-1
A JSON string representation of this pinterest.Domain instance
def asJsonString(self): return json.dumps(self.asDict(), sort_keys=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def to_json_string(self) -> None:\n return json.dumps(dataclasses.asdict(self)) + \"\\n\"", "def to_json_string(self):\n\t\treturn json.dumps(dataclasses.asdict(self), indent=2, sort_keys=True) + \"\\n\"", "def to_json(self) -> str:\n return json.dumps(self.to_dict())", "def to_json(self) -> st...
[ "0.73815066", "0.73544246", "0.72143877", "0.72143877", "0.72143877", "0.72143877", "0.72143877", "0.72143877", "0.72143877", "0.72143877", "0.72143877", "0.71724534", "0.7157641", "0.7126459", "0.7126459", "0.7126459", "0.71001035", "0.7093024", "0.7093024", "0.70922303", "0...
0.68560904
80
A dict representation of this pinterest.Domain instance The return value uses the same key names as the JSON representation
def asDict(self): return { 'id': self.id, 'name': self.name, 'type': self.type, 'favicon': self.favicon, 'thumbnails': self.thumbnails, 'access': self.access, 'client_details': self.client_details }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dict(self):\n\t\treturn self.json", "def dictify(self):\n return {\n \"name\" : self.name,\n \"lastname\" : self.lastname,\n \"phone\" : self.phone,\n \"email\" : self.email\n }", "def __json_encode__(self) -> Dict[str, Any]:\n return {\"figu...
[ "0.7162988", "0.7155482", "0.7018019", "0.69321686", "0.69280076", "0.6917349", "0.6884076", "0.6879784", "0.6863074", "0.68250746", "0.68006665", "0.6783861", "0.67685074", "0.6765139", "0.67650473", "0.6761202", "0.6758799", "0.6741942", "0.6723337", "0.6723097", "0.6721455...
0.65533537
55
Create a new instance based on a JSON dict
def newFromJsonDict(data): return Domain(id=data.get('id', None), name=data.get('name', None), type=data.get('type', 'domain'), favicon=data.get('favicon', None), thumbnails=data.get('thumbnails', []), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fromJson(json):\r\n raise NotImplementedError(\"Returns instance\")", "def _from_json_dict(cls, dic):\n # create a new object\n obj = cls.__new__(cls)\n for attr, typ in cls._attrs_to_save.items():\n setattr(obj, attr, typ.to_python(dic[attr]))\n return obj", "def fromJson(cls, in...
[ "0.7808082", "0.7745709", "0.7614118", "0.7614118", "0.7614118", "0.7588613", "0.75066483", "0.7504235", "0.7504235", "0.7504235", "0.7504235", "0.7504235", "0.7504235", "0.7504235", "0.7504235", "0.7504235", "0.7504235", "0.7504235", "0.7504235", "0.7504235", "0.7504235", ...
0.0
-1
Pretty JSON dump of an object.
def pprint(obj): return json.dumps(obj, sort_keys=True, indent=2, separators=(',', ': '))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def json_dumps(self, obj: object) -> str:\n return json.dumps(obj, sort_keys=self.beautify, indent=4)", "def print_json(obj):\n print(json.dumps(obj, indent=2))", "def pprint(self,obj):\n return(json.dumps(obj, sort_keys=True, indent=2, separators=(',', ': ')))", "def dumps(obj):\n return...
[ "0.79998887", "0.7930918", "0.79296386", "0.78797597", "0.7752486", "0.7712631", "0.7646695", "0.7569254", "0.75250614", "0.74820435", "0.74561304", "0.741061", "0.7307335", "0.72820616", "0.7219065", "0.72057736", "0.70947427", "0.70880896", "0.7081247", "0.706571", "0.70638...
0.7916694
4
Add element to beginning of (possibly infinite) sequence. >>> list(cons(1, [2, 3])) [1, 2, 3]
def cons(element, sequence): yield element for s in sequence: yield s
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_first(self, value):\n self.__list = [value] + self.__list\n return self.__list", "def cons(l, x):\n return l + [x]", "def add_to_beginning(self, domino):\n self.chain.insert(0, domino)", "def insert_first(self, item):\n if self.is_empty():\n self._first = ite...
[ "0.641218", "0.6371685", "0.6324807", "0.61089236", "0.5933596", "0.58481807", "0.5799753", "0.579456", "0.57640266", "0.5748653", "0.5734296", "0.57221496", "0.57180583", "0.56964964", "0.565887", "0.5654234", "0.5647128", "0.5577864", "0.5540239", "0.549315", "0.54735404", ...
0.5782088
8
Compute and return the dot product of two vectors (sequences).
def dotproduct(vec1, vec2, sum=sum, map=map, mul=mul): return sum(map(mul, vec1, vec2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dotproduct(vec1, vec2):\n return sum((a*b) for a, b in zip(vec1, vec2))", "def dotproduct(vec1, vec2):\n import operator\n return sum(map(operator.mul, vec1, vec2))", "def dot(a, b):\n\n if len(a) != len(b):\n raise Exception(\"Input vectors must be of same length, not %d and %d\...
[ "0.84774995", "0.8445461", "0.837916", "0.8339142", "0.8333554", "0.8304064", "0.83013356", "0.8285735", "0.82851964", "0.82619864", "0.82011956", "0.8187859", "0.81510013", "0.8148796", "0.8148077", "0.81226987", "0.8084558", "0.8077868", "0.8024252", "0.8023288", "0.7979579...
0.77726257
32
Drop the first n elements of the given iterable.
def drop(iterable, n, islice=islice): return islice(iterable, n, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def drop(iterable, n):\n counter = 0\n for element in iterable:\n if counter < n:\n counter += 1\n else:\n yield element", "def drop(n, seq):\n return itertools.islice(seq, n, None)", "def drop(lst, n): # noqa: N805\n for _ in range(n):\n try:\n ...
[ "0.8174784", "0.8012166", "0.74937814", "0.74077296", "0.74077296", "0.7398043", "0.739496", "0.7369276", "0.7369276", "0.7076763", "0.6970278", "0.6880964", "0.6802936", "0.67665935", "0.67632055", "0.6643385", "0.6535456", "0.64890766", "0.6440546", "0.64260626", "0.6307787...
0.8727616
0
Determine whether obj is a sequence.
def isiterable(obj, strings=False, isinstance=isinstance, Iterable=Iterable): return (isinstance(obj, Iterable) and not (isinstance(obj, str) and not strings))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def isSequence(obj):\n # type: (Any) -> bool\n return isinstance(obj, Sequence)", "def issequence(obj) -> bool:\n return hasattr(type(obj), '__iter__') and hasattr(type(obj), '__len__')", "def _is_sequence(obj):\n return hasattr(obj, \"__iter__\") and not isinstance(obj, str)", "def is_sequence(s...
[ "0.8670211", "0.8228908", "0.8199178", "0.76103455", "0.73540795", "0.7246556", "0.7107061", "0.7055197", "0.69754833", "0.6834868", "0.6802589", "0.67958724", "0.670185", "0.6416693", "0.63524896", "0.6242249", "0.60624474", "0.5872786", "0.58363223", "0.583564", "0.58154714...
0.51452416
71
Take the first n elements of the given iterable.
def take(n, iterable, islice=islice): return islice(iterable, n)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def take(n, iterable):\n return list(itertools.islice(iterable, n))", "def take(n, iterable):\n return list(itertools.islice(iterable, n))", "def take(n, iterable):\n return list(islice(iterable, n))", "def take(n, iterable):\n return list(islice(iterable, n))", "def take(iterable, n):\n ret...
[ "0.8567556", "0.8567556", "0.85463184", "0.85463184", "0.8493258", "0.80532265", "0.798025", "0.76720214", "0.7599612", "0.74384075", "0.741527", "0.73852587", "0.7278833", "0.7278833", "0.7278833", "0.727075", "0.7244064", "0.7219486", "0.7205249", "0.7171165", "0.713738", ...
0.83177155
5
Return only unique elements from the sequence.
def unique(iterable, filterfalse=filterfalse): seen = set() add = seen.add for element in filterfalse(seen.__contains__, iterable): add(element) yield element
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unique(seq):\n return list(set(seq))", "def uniq(seq):\r\n #TODO: consider building a set out of seq so that the if condition\r\n #is constant time -JB\r\n return [x for i, x in enumerate(seq) if seq.index(x) == i]", "def UniqueSequence(seq):\n seen = set()\n return [i for i in seq if i not i...
[ "0.8525066", "0.8320114", "0.826093", "0.8201869", "0.8161945", "0.8122958", "0.7976299", "0.77884305", "0.7662842", "0.7582557", "0.75524044", "0.7505037", "0.730668", "0.7304931", "0.7294989", "0.72597694", "0.7206992", "0.7185598", "0.7176435", "0.70890975", "0.70718765", ...
0.6625888
33
Wrap an iterable in a ``with`` statement, so it closes once exhausted.
def with_iter(contextmanager): with contextmanager as iterable: for item in iterable: yield item
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _closecontextmanager(self):\n yield\n self.close()", "def _closecontextmanager(self):\n yield\n self.close()", "def maybe_close(obj):\n try:\n yield obj\n finally:\n if hasattr(obj, 'close'):\n obj.close()", "def opened(self, **kwargs):\n ...
[ "0.6024176", "0.6024176", "0.5977403", "0.57868457", "0.56749684", "0.5589754", "0.5485188", "0.5484533", "0.53991145", "0.5388223", "0.5328379", "0.5325499", "0.53186363", "0.5307033", "0.53061646", "0.5305645", "0.5254159", "0.5204638", "0.5194236", "0.516482", "0.51390535"...
0.7358237
0
Return the connection ID of this CCPMessage
def get_conn_id(self): return self._conn_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def connection_id(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"connection_id\")", "def peering_connection_id(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"peering_connection_id\")", "def connection_id(self) -> Optional[PublicId]:\n return self._connection_id", "def...
[ "0.76562166", "0.7304463", "0.7251685", "0.7225756", "0.71163714", "0.6899422", "0.6865275", "0.6795554", "0.67176396", "0.6715463", "0.6712465", "0.66637415", "0.66005063", "0.6564729", "0.65087193", "0.6401165", "0.638246", "0.6346834", "0.63415235", "0.62602955", "0.618173...
0.7386795
1
Return the data payload of this CCPMessage
def get_data(self): return self._data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def payload(self):\n return self.raw_data[1:]", "def bytes(self):\n return self._payload", "def toData(self):\n\n lines = []\n # 1. Request and protocol version\n lines.append(self.request + \" \" + BANNER)\n # 2. Request arguments\n lines.extend(['%s: %s' % (ar...
[ "0.7195054", "0.70532537", "0.6979516", "0.69281924", "0.69087666", "0.6843211", "0.67842907", "0.67458946", "0.6726655", "0.6687712", "0.6687712", "0.66818786", "0.6633963", "0.6633963", "0.6622041", "0.6494859", "0.6494859", "0.6494859", "0.6494859", "0.6494859", "0.6494859...
0.6249018
73
Create an 'opensocks5' CCPMessage instance
def open_socks_msg(conn_id): return CCPMessage(CCPMessage.OPEN_SOCKS5_CONN, conn_id=conn_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def makeMessage( name, *structure ):\n return X12Message( name, *structure )", "def CreateMessageClass(self):\n class ComplexMessage(messages.Message):\n a3 = messages.IntegerField(3)\n b1 = messages.StringField(1)\n c2 = messages.StringField(2)\n\n return Co...
[ "0.6349555", "0.5861298", "0.5799925", "0.5785315", "0.57341", "0.56997937", "0.56609297", "0.5648626", "0.5645145", "0.56351435", "0.562172", "0.5607496", "0.5592453", "0.55922025", "0.555789", "0.5553962", "0.55442446", "0.55008286", "0.5493268", "0.5493268", "0.5493268", ...
0.59372336
1
Create a string containing the onthewire string representation of this CCPMessage instance. DOES NO ERROR CHECKING. If someone has changed the value of the fields after they were validated by __init__, then they could be wrong and this
def pack(self): datalen = 0 if self._data: datalen = len(self._data) header = struct.pack(CCPMessage.HEADER_FMT, self._version, self._msg_type, datalen, self._conn_id ) if datalen > 0: msg = header + self._data else: msg = he...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __str__(self):\n\n if self._msg_type in self.msg_types:\n msg_type_name = self.msg_types[self._msg_type]\n else:\n msg_type_name = '?(%u)' % (self._msg_type,)\n\n return 'CCPMessage: ver %u msg_type %s conn_id %s data [%s]' % (\n self._version, msg_type...
[ "0.72285265", "0.70532566", "0.7029754", "0.69140315", "0.6902468", "0.68574584", "0.6833074", "0.6669287", "0.6611817", "0.65784806", "0.65481895", "0.65407145", "0.649368", "0.6465734", "0.64486396", "0.64327693", "0.6416673", "0.6373842", "0.6359391", "0.63510966", "0.6329...
0.0
-1
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes.
def add_header(r): r.headers["Cache-Control"] = "no-cache, no-store, must-revalidate" r.headers["Pragma"] = "no-cache" r.headers["Expires"] = "0" r.headers['Cache-Control'] = 'public, max-age=0' return r
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_header(response):\n response.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n response.headers['Cache-Control'] = 'public, max-age=60'\n return response", "def add_header(response):\n response.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n response.headers['Cache-Control'] = 'public, m...
[ "0.82238126", "0.82229567", "0.82229567", "0.82229567", "0.82229567", "0.81962067", "0.8163736", "0.8163736", "0.8163736", "0.8163736", "0.8163736", "0.8163736", "0.8163736", "0.8163736", "0.8163736", "0.8163736", "0.8163736", "0.8163736", "0.8163736", "0.8163736", "0.8163736...
0.7128462
65
This function plots the classification results as a confusion matrix. Specify ACC as cv.ca.stats.stats['mean(ACC)'] to display accuracy in the title. Set a new upper boundery of the scale with vmax. To save the plot, specify a path/with/filename.png as the fn parameter.
def plot_confusion(cv, labels, fn=None, figsize=(9, 9), vmax=None, cmap='gist_heat_r', ACC=None): import seaborn as sns import matplotlib.pyplot as plt origlabels = cv.ca.stats.labels origl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plot_confusion_matrix(y_test, y_pred, classes,\n normalize=True,\n title='Average accuracy \\n',\n cmap=plt.cm.Blues, verbose = 0, precision = 0):\n from sklearn.metrics import confusion_matrix\n import itertools\n \n cm = ...
[ "0.731879", "0.7259233", "0.72311485", "0.7205518", "0.710128", "0.708931", "0.70810735", "0.70708144", "0.7012931", "0.70033914", "0.6981425", "0.6978748", "0.6968825", "0.6956138", "0.69468385", "0.6928421", "0.6906709", "0.6901849", "0.6898767", "0.6884549", "0.6883773", ...
0.78108895
0
Test case for create_hyperflex_software_version_policy
def test_create_hyperflex_software_version_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_update_hyperflex_software_version_policy(self):\n pass", "def test_patch_hyperflex_software_version_policy(self):\n pass", "def test_get_hyperflex_software_version_policy_list(self):\n pass", "def test_delete_hyperflex_software_version_policy(self):\n pass", "def test_g...
[ "0.85531497", "0.8265586", "0.7943468", "0.7941407", "0.77565694", "0.7518002", "0.7453201", "0.74442565", "0.7110088", "0.69733554", "0.6946958", "0.664998", "0.66415596", "0.65953356", "0.6593618", "0.6487367", "0.6480885", "0.6459383", "0.64580536", "0.6422995", "0.6417622...
0.9585811
0
Test case for create_hyperflex_sys_config_policy
def test_create_hyperflex_sys_config_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_hyperflex_ucsm_config_policy(self):\n pass", "def test_update_hyperflex_sys_config_policy(self):\n pass", "def test_create_hyperflex_node_config_policy(self):\n pass", "def test_patch_hyperflex_sys_config_policy(self):\n pass", "def test_create_hyperflex_vcenter_...
[ "0.84823877", "0.83461493", "0.83384705", "0.82657593", "0.7942815", "0.77136123", "0.759018", "0.7470672", "0.7359124", "0.73509294", "0.7290964", "0.72603065", "0.71503884", "0.71348196", "0.70650434", "0.70158786", "0.6958192", "0.6879497", "0.68275875", "0.68090457", "0.6...
0.9587579
0
Test case for create_hyperflex_ucsm_config_policy
def test_create_hyperflex_ucsm_config_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_hyperflex_sys_config_policy(self):\n pass", "def test_update_hyperflex_ucsm_config_policy(self):\n pass", "def test_create_hyperflex_node_config_policy(self):\n pass", "def test_patch_hyperflex_ucsm_config_policy(self):\n pass", "def test_create_hyperflex_vcenter...
[ "0.8512954", "0.82365876", "0.8171847", "0.8028218", "0.80135196", "0.7568164", "0.73472154", "0.72977084", "0.7140448", "0.7125438", "0.702353", "0.6983517", "0.6975738", "0.6933404", "0.6901414", "0.68506175", "0.67154104", "0.6703319", "0.6701543", "0.6682044", "0.6674546"...
0.95067304
0
Test case for create_hyperflex_vcenter_config_policy
def test_create_hyperflex_vcenter_config_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_update_hyperflex_vcenter_config_policy(self):\n pass", "def test_patch_hyperflex_vcenter_config_policy(self):\n pass", "def test_create_hyperflex_sys_config_policy(self):\n pass", "def test_create_hyperflex_ucsm_config_policy(self):\n pass", "def test_get_hyperflex_vcen...
[ "0.84518135", "0.8250841", "0.7995531", "0.7990729", "0.7763976", "0.7713594", "0.76609886", "0.73582965", "0.70711386", "0.69562924", "0.69143075", "0.68906724", "0.687701", "0.6824125", "0.66806936", "0.6609492", "0.6608193", "0.6576112", "0.65511286", "0.65275586", "0.6467...
0.95333374
0
Test case for delete_hyperflex_auto_support_policy
def test_delete_hyperflex_auto_support_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_hyperflex_software_version_policy(self):\n pass", "def test_delete_hyperflex_proxy_setting_policy(self):\n pass", "def test_delete_hyperflex_ucsm_config_policy(self):\n pass", "def test_delete_hyperflex_ext_fc_storage_policy(self):\n pass", "def test_delete_hyper...
[ "0.8179256", "0.80543005", "0.80422056", "0.80315477", "0.797212", "0.7856333", "0.7809205", "0.7804893", "0.7697527", "0.76803964", "0.75097954", "0.7486099", "0.74018395", "0.7377641", "0.7376875", "0.7247914", "0.72462976", "0.7216488", "0.71083826", "0.70713145", "0.68920...
0.9579103
0
Test case for delete_hyperflex_ext_iscsi_storage_policy
def test_delete_hyperflex_ext_iscsi_storage_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_hyperflex_ext_fc_storage_policy(self):\n pass", "def test_delete_hyperflex_cluster_storage_policy(self):\n pass", "def test_update_hyperflex_ext_iscsi_storage_policy(self):\n pass", "def test_create_hyperflex_ext_iscsi_storage_policy(self):\n pass", "def test_pat...
[ "0.8695505", "0.8486331", "0.7866051", "0.77943337", "0.7698227", "0.76218766", "0.7468023", "0.7409663", "0.7409095", "0.73851305", "0.73327917", "0.72669095", "0.71242183", "0.6984681", "0.696176", "0.6917098", "0.67933923", "0.6784059", "0.67784995", "0.67490524", "0.66993...
0.95848817
0
Test case for delete_hyperflex_node_config_policy
def test_delete_hyperflex_node_config_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_hyperflex_sys_config_policy(self):\n pass", "def test_delete_hyperflex_ucsm_config_policy(self):\n pass", "def test_delete_hyperflex_vcenter_config_policy(self):\n pass", "def test_delete_hyperflex_cluster_network_policy(self):\n pass", "def test_delete_hyperflex...
[ "0.85791266", "0.8535044", "0.8225073", "0.81517524", "0.78191215", "0.76633686", "0.763806", "0.75369257", "0.74145746", "0.7314259", "0.7272822", "0.72482264", "0.7185409", "0.7154615", "0.7085105", "0.70021623", "0.69348073", "0.68961924", "0.6847175", "0.68166065", "0.677...
0.95846874
0
Test case for delete_hyperflex_sys_config_policy
def test_delete_hyperflex_sys_config_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_hyperflex_ucsm_config_policy(self):\n pass", "def test_delete_hyperflex_node_config_policy(self):\n pass", "def test_delete_hyperflex_vcenter_config_policy(self):\n pass", "def test_delete_hyperflex_proxy_setting_policy(self):\n pass", "def test_delete_hyperflex_...
[ "0.8850707", "0.86146355", "0.84556156", "0.7742346", "0.76725656", "0.75971645", "0.75698966", "0.7476449", "0.7392136", "0.73627514", "0.7323307", "0.72871786", "0.7283995", "0.70122075", "0.69899976", "0.6958264", "0.68739676", "0.6840229", "0.67296726", "0.67077196", "0.6...
0.96258956
0
Test case for delete_hyperflex_vcenter_config_policy
def test_delete_hyperflex_vcenter_config_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_hyperflex_ucsm_config_policy(self):\n pass", "def test_delete_hyperflex_sys_config_policy(self):\n pass", "def test_delete_hyperflex_node_config_policy(self):\n pass", "def test_delete_hyperflex_proxy_setting_policy(self):\n pass", "def test_update_hyperflex_vcen...
[ "0.8563142", "0.8498315", "0.82610285", "0.77412254", "0.7629493", "0.75348294", "0.75127614", "0.7512201", "0.7502754", "0.74633574", "0.73370564", "0.72957647", "0.7243053", "0.7117935", "0.7114577", "0.6792367", "0.6682928", "0.6671208", "0.6565105", "0.65178263", "0.64751...
0.961307
0
Test case for get_hyperflex_cluster_storage_policy_by_moid
def test_get_hyperflex_cluster_storage_policy_by_moid(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_hyperflex_ext_fc_storage_policy_by_moid(self):\n pass", "def test_get_hyperflex_ext_iscsi_storage_policy_by_moid(self):\n pass", "def test_get_hyperflex_cluster_network_policy_by_moid(self):\n pass", "def test_get_hyperflex_node_config_policy_by_moid(self):\n pass", ...
[ "0.8685812", "0.8580242", "0.8489473", "0.75416124", "0.74788094", "0.7426406", "0.7403288", "0.7351372", "0.73248076", "0.71788883", "0.7130187", "0.7049199", "0.7020573", "0.7000807", "0.6989407", "0.69128805", "0.68949836", "0.6842084", "0.6840218", "0.66787976", "0.664877...
0.9615036
0
Test case for get_hyperflex_ext_fc_storage_policy_list
def test_get_hyperflex_ext_fc_storage_policy_list(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_hyperflex_ext_iscsi_storage_policy_list(self):\n pass", "def test_get_hyperflex_cluster_storage_policy_list(self):\n pass", "def test_create_hyperflex_ext_fc_storage_policy(self):\n pass", "def test_get_hyperflex_ext_fc_storage_policy_by_moid(self):\n pass", "def te...
[ "0.8647132", "0.85752845", "0.7503907", "0.71868277", "0.7104516", "0.708797", "0.7037058", "0.6895485", "0.6875401", "0.6854047", "0.68353456", "0.67616606", "0.65985787", "0.65347147", "0.65209305", "0.6497269", "0.64676136", "0.6344439", "0.6311742", "0.6299735", "0.628012...
0.96072304
0
Test case for get_hyperflex_ext_iscsi_storage_policy_by_moid
def test_get_hyperflex_ext_iscsi_storage_policy_by_moid(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_hyperflex_ext_fc_storage_policy_by_moid(self):\n pass", "def test_get_hyperflex_cluster_storage_policy_by_moid(self):\n pass", "def test_get_hyperflex_ext_iscsi_storage_policy_list(self):\n pass", "def test_create_hyperflex_ext_iscsi_storage_policy(self):\n pass", "...
[ "0.85116994", "0.84371024", "0.7499572", "0.74457586", "0.74324507", "0.74160045", "0.7353383", "0.7267606", "0.71897626", "0.7168133", "0.716107", "0.7068478", "0.7007103", "0.6935905", "0.6764168", "0.6705566", "0.6688249", "0.6483332", "0.6416746", "0.6315846", "0.62302965...
0.9634234
0
Test case for get_hyperflex_ext_iscsi_storage_policy_list
def test_get_hyperflex_ext_iscsi_storage_policy_list(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_hyperflex_ext_fc_storage_policy_list(self):\n pass", "def test_get_hyperflex_cluster_storage_policy_list(self):\n pass", "def test_create_hyperflex_ext_iscsi_storage_policy(self):\n pass", "def test_get_hyperflex_ext_iscsi_storage_policy_by_moid(self):\n pass", "def...
[ "0.8525834", "0.82373095", "0.781568", "0.7664867", "0.73679405", "0.7229547", "0.7174249", "0.7144973", "0.68453115", "0.6774839", "0.6741207", "0.6736101", "0.6555663", "0.65229106", "0.6427481", "0.6426956", "0.63920355", "0.63245445", "0.61668724", "0.60235757", "0.590755...
0.9636074
0
Test case for get_hyperflex_node_by_moid
def test_get_hyperflex_node_by_moid(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_hyperflex_node_profile_by_moid(self):\n pass", "def test_get_hyperflex_cluster_by_moid(self):\n pass", "def test_get_hyperflex_health_by_moid(self):\n pass", "def test_get_hyperflex_server_model_by_moid(self):\n pass", "def test_get_hyperflex_config_result_by_moid(s...
[ "0.8495755", "0.82509696", "0.7996588", "0.7926138", "0.7884978", "0.7757676", "0.7723776", "0.7701884", "0.76258224", "0.76186204", "0.75586635", "0.7094203", "0.70926124", "0.70708334", "0.68938315", "0.6868771", "0.6846105", "0.6734188", "0.6664373", "0.65436727", "0.65021...
0.9636257
0
Test case for get_hyperflex_node_config_policy_by_moid
def test_get_hyperflex_node_config_policy_by_moid(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_hyperflex_sys_config_policy_by_moid(self):\n pass", "def test_get_hyperflex_ucsm_config_policy_by_moid(self):\n pass", "def test_get_hyperflex_vcenter_config_policy_by_moid(self):\n pass", "def test_get_hyperflex_cluster_network_policy_by_moid(self):\n pass", "def t...
[ "0.8891252", "0.8871921", "0.8395774", "0.8241026", "0.82377625", "0.7968792", "0.7813238", "0.7437166", "0.74299866", "0.7407686", "0.73607266", "0.7242437", "0.7098229", "0.7095671", "0.70950276", "0.69987935", "0.69782275", "0.6910057", "0.6827611", "0.67346036", "0.656758...
0.9625803
0
Test case for get_hyperflex_node_profile_by_moid
def test_get_hyperflex_node_profile_by_moid(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_hyperflex_cluster_profile_by_moid(self):\n pass", "def test_get_hyperflex_node_by_moid(self):\n pass", "def test_get_hyperflex_node_config_policy_by_moid(self):\n pass", "def test_get_hyperflex_health_by_moid(self):\n pass", "def test_get_hyperflex_capability_info_b...
[ "0.8609433", "0.83156264", "0.76085097", "0.7597093", "0.74044335", "0.7402462", "0.72015256", "0.7121352", "0.6996545", "0.6993756", "0.6971713", "0.6866399", "0.6820898", "0.6717369", "0.669967", "0.66501886", "0.662768", "0.65617365", "0.65196496", "0.6451359", "0.64482147...
0.96293765
0
Test case for get_hyperflex_node_profile_list
def test_get_hyperflex_node_profile_list(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_hyperflex_cluster_profile_list(self):\n pass", "def test_get_hyperflex_node_list(self):\n pass", "def test_create_hyperflex_node_profile(self):\n pass", "def test_get_hyperflex_node_profile_by_moid(self):\n pass", "def test_get_hyperflex_node_config_policy_list(self...
[ "0.82003796", "0.7867522", "0.7508205", "0.7158801", "0.6942352", "0.6727124", "0.6643129", "0.6567875", "0.64771074", "0.6393404", "0.61746514", "0.61606383", "0.6128099", "0.6076793", "0.59261596", "0.5903866", "0.58293605", "0.5815439", "0.5812794", "0.5788761", "0.5749743...
0.95758533
0
Test case for get_hyperflex_server_model_list
def test_get_hyperflex_server_model_list(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_hyperflex_server_firmware_version_list(self):\n pass", "def test_create_hyperflex_server_model(self):\n pass", "def test_get_hyperflex_server_model_by_moid(self):\n pass", "def test_get_model_list():\n with app.test_client() as c:\n response = c.get('/REST/api/v1.0...
[ "0.7171039", "0.71372604", "0.70275444", "0.681727", "0.6513462", "0.64691013", "0.6410379", "0.64099395", "0.6255685", "0.6202414", "0.62007904", "0.61828643", "0.60901856", "0.6087982", "0.60517997", "0.6049351", "0.6049351", "0.5977729", "0.59331524", "0.5906455", "0.58774...
0.94720054
0
Test case for get_hyperflex_software_version_policy_by_moid
def test_get_hyperflex_software_version_policy_by_moid(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_hyperflex_hxdp_version_by_moid(self):\n pass", "def test_get_hyperflex_server_firmware_version_by_moid(self):\n pass", "def test_get_hyperflex_auto_support_policy_by_moid(self):\n pass", "def test_get_hyperflex_software_version_policy_list(self):\n pass", "def test_...
[ "0.7956746", "0.78912055", "0.76614594", "0.75975305", "0.7495868", "0.7435481", "0.716503", "0.7157844", "0.71213603", "0.70964485", "0.7071244", "0.70412874", "0.69551903", "0.6938667", "0.6914046", "0.6682496", "0.6675976", "0.6652264", "0.6445034", "0.64377236", "0.643752...
0.9641841
0
Test case for get_hyperflex_sys_config_policy_by_moid
def test_get_hyperflex_sys_config_policy_by_moid(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_hyperflex_ucsm_config_policy_by_moid(self):\n pass", "def test_get_hyperflex_node_config_policy_by_moid(self):\n pass", "def test_get_hyperflex_vcenter_config_policy_by_moid(self):\n pass", "def test_get_hyperflex_proxy_setting_policy_by_moid(self):\n pass", "def te...
[ "0.9024172", "0.8909172", "0.85023665", "0.8149938", "0.7998161", "0.76997364", "0.7631459", "0.7488663", "0.7447864", "0.74149704", "0.72768784", "0.72474074", "0.7204729", "0.71871585", "0.70878035", "0.6958702", "0.68270445", "0.6744197", "0.67128855", "0.66335404", "0.663...
0.9645315
0
Test case for get_hyperflex_sys_config_policy_list
def test_get_hyperflex_sys_config_policy_list(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_hyperflex_ucsm_config_policy_list(self):\n pass", "def test_get_hyperflex_node_config_policy_list(self):\n pass", "def test_get_hyperflex_vcenter_config_policy_list(self):\n pass", "def test_get_hyperflex_auto_support_policy_list(self):\n pass", "def test_create_hyp...
[ "0.86885077", "0.85506475", "0.82746273", "0.78070754", "0.77815425", "0.7730046", "0.7410562", "0.7338701", "0.7301699", "0.7287694", "0.7226507", "0.7131781", "0.71311414", "0.69974095", "0.6882513", "0.6743805", "0.67373216", "0.6674354", "0.65888816", "0.6361754", "0.6334...
0.9627208
0
Test case for get_hyperflex_ucsm_config_policy_by_moid
def test_get_hyperflex_ucsm_config_policy_by_moid(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_hyperflex_sys_config_policy_by_moid(self):\n pass", "def test_get_hyperflex_node_config_policy_by_moid(self):\n pass", "def test_get_hyperflex_vcenter_config_policy_by_moid(self):\n pass", "def test_get_hyperflex_proxy_setting_policy_by_moid(self):\n pass", "def tes...
[ "0.9085165", "0.8972206", "0.86397743", "0.8097164", "0.79697925", "0.7916519", "0.7850735", "0.74916786", "0.7319643", "0.7258462", "0.7214414", "0.72113603", "0.71999884", "0.7030572", "0.6921655", "0.68809706", "0.6873075", "0.685203", "0.6590666", "0.6580302", "0.64822143...
0.95971376
0
Test case for get_hyperflex_ucsm_config_policy_list
def test_get_hyperflex_ucsm_config_policy_list(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_hyperflex_sys_config_policy_list(self):\n pass", "def test_get_hyperflex_vcenter_config_policy_list(self):\n pass", "def test_get_hyperflex_node_config_policy_list(self):\n pass", "def test_get_hyperflex_proxy_setting_policy_list(self):\n pass", "def test_get_hyperf...
[ "0.8763514", "0.84971976", "0.8483322", "0.75850767", "0.7516178", "0.7398729", "0.73983717", "0.70357823", "0.7003295", "0.697447", "0.69512606", "0.69005716", "0.6877063", "0.6862368", "0.6787838", "0.6768805", "0.6713064", "0.67038906", "0.66703993", "0.6526433", "0.648473...
0.9562163
0
Test case for patch_hyperflex_cluster_storage_policy
def test_patch_hyperflex_cluster_storage_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_update_hyperflex_cluster_storage_policy(self):\n pass", "def test_create_hyperflex_cluster_storage_policy(self):\n pass", "def test_patch_hyperflex_ext_fc_storage_policy(self):\n pass", "def test_delete_hyperflex_cluster_storage_policy(self):\n pass", "def test_update_h...
[ "0.9131578", "0.84769464", "0.8374655", "0.82083714", "0.7950562", "0.78928566", "0.7741973", "0.76901734", "0.748915", "0.74759865", "0.74503005", "0.74383116", "0.7300757", "0.7294624", "0.69872123", "0.69822925", "0.69535834", "0.69527394", "0.68912905", "0.6887109", "0.68...
0.95971996
0
Test case for patch_hyperflex_sys_config_policy
def test_patch_hyperflex_sys_config_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_update_hyperflex_sys_config_policy(self):\n pass", "def test_patch_hyperflex_ucsm_config_policy(self):\n pass", "def test_patch_hyperflex_node_config_policy(self):\n pass", "def test_create_hyperflex_sys_config_policy(self):\n pass", "def test_patch_hyperflex_vcenter_co...
[ "0.90916914", "0.8638015", "0.841458", "0.8393458", "0.8151121", "0.79164165", "0.77800477", "0.75997525", "0.7471655", "0.7422501", "0.7401201", "0.72980815", "0.7272898", "0.71330565", "0.711482", "0.7021883", "0.69210106", "0.68854153", "0.68552923", "0.6782092", "0.676835...
0.9631091
0
Test case for update_hyperflex_cluster_network_policy
def test_update_hyperflex_cluster_network_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_patch_hyperflex_cluster_network_policy(self):\n pass", "def test_create_hyperflex_cluster_network_policy(self):\n pass", "def test_update_hyperflex_cluster_storage_policy(self):\n pass", "def test_update_hyperflex_node_config_policy(self):\n pass", "def test_patch_clust...
[ "0.87226605", "0.79872143", "0.7937396", "0.78182954", "0.7668664", "0.761136", "0.75105727", "0.7331825", "0.7226309", "0.71896607", "0.7024815", "0.697997", "0.6958094", "0.69480115", "0.6945518", "0.6941454", "0.68283397", "0.68096155", "0.67616576", "0.6705592", "0.664105...
0.94722927
0
Test case for update_hyperflex_server_model
def test_update_hyperflex_server_model(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_patch_hyperflex_server_model(self):\n pass", "def test_create_hyperflex_server_model(self):\n pass", "def test_update_hyperflex_server_firmware_version(self):\n pass", "def test_delete_hyperflex_server_model(self):\n pass", "def test_update_hyperflex_cluster(self):\n ...
[ "0.84808594", "0.75246054", "0.73544794", "0.6912651", "0.678993", "0.6786045", "0.6751819", "0.6751819", "0.6751819", "0.67087704", "0.6670238", "0.6635887", "0.6586173", "0.658171", "0.6464285", "0.64423716", "0.6433103", "0.6401844", "0.6387947", "0.6385285", "0.63779825",...
0.9433123
0
Test case for update_hyperflex_sys_config_policy
def test_update_hyperflex_sys_config_policy(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_patch_hyperflex_sys_config_policy(self):\n pass", "def test_update_hyperflex_ucsm_config_policy(self):\n pass", "def test_create_hyperflex_sys_config_policy(self):\n pass", "def test_update_hyperflex_node_config_policy(self):\n pass", "def test_patch_hyperflex_ucsm_conf...
[ "0.9106339", "0.86362475", "0.84197074", "0.8377361", "0.83046865", "0.81565124", "0.79661435", "0.79442817", "0.7695998", "0.7560304", "0.75127846", "0.74004847", "0.7377592", "0.7274613", "0.7024706", "0.7001279", "0.69916403", "0.6966385", "0.69243485", "0.6894133", "0.688...
0.95652324
0
Combines the year and month values to return a date
def get_date(row): year, month = row[['CompetitionOpenSinceYear', 'CompetitionOpenSinceMonth']] if not pd.isnull(year): return pd.Timestamp(int(year), int(month), 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_main_date(self, kwargs):\n month = int(kwargs['month'])\n if month >= 9 and month <= 12:\n main_date = datetime(int(kwargs['year_from']), month, 1)\n else:\n main_date = datetime(int(kwargs['year_to']), month, 1)\n return main_date", "def get_year_and_mon...
[ "0.69295526", "0.67848915", "0.67640525", "0.6575565", "0.65173095", "0.64220846", "0.64029866", "0.63732064", "0.6372008", "0.63181967", "0.6268833", "0.62674147", "0.6231666", "0.61747175", "0.61741877", "0.61649615", "0.6150244", "0.6117671", "0.6073302", "0.6057394", "0.6...
0.0
-1
Property getter for world size.
def world_size(self): if self.data_section is None: return None attrs = self.data_section.attrs if bool(attrs)==False: return None return attrs.get('world_size', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def world_size(self):\n return self._wsize", "def get_world_size() -> int:\n return collective.get_world_size()", "def world_size() -> int:\n return dist.get_world_size() if dist.is_initialized() else 1", "def get_size(self):\n return self._surf.get_size()", "def get_world_size():\n ...
[ "0.83257073", "0.7873371", "0.78034484", "0.73891675", "0.7073995", "0.7050886", "0.7039726", "0.7018248", "0.69408935", "0.6893469", "0.68579805", "0.6826724", "0.68208194", "0.67684585", "0.6751222", "0.67386556", "0.67357504", "0.6712895", "0.6704148", "0.6692058", "0.6692...
0.8004996
1
Send a GET request to the specified URL. Note look up extra `kwargs` in `requests.get`
def get_url(url, params=None, headers=None, verify=True, **kwargs): import requests response = requests.get(url, params=params, verify=verify, headers=headers, **kwargs) logger.debug("url:{}".format(response.url)) return response
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aget(url, **kwargs):\n return requests.get(url, **kwargs)", "def get(url, to_error=_default_to_error, **kwargs):\n\n return request('get', url, to_error=to_error, **kwargs)", "def get(url, params=None, **kwargs):\n\n kwargs.setdefault('allow_redirects', True)\n return request('get', url, params=p...
[ "0.81323636", "0.7973446", "0.7761488", "0.7470272", "0.74600196", "0.74586", "0.74367905", "0.740016", "0.73529035", "0.73284817", "0.7323921", "0.72818625", "0.7263062", "0.7242427", "0.72415966", "0.72317153", "0.71497613", "0.7136763", "0.7120298", "0.70637137", "0.705859...
0.6604241
53
Filter dictionary dic by allowed_keys list. Any item in dic with a key that is not in the allowed_keys is removed,
def filter_dic_by_keys(dic,allowed_keys): new_dic = {} for key in dic: if key in allowed_keys: new_dic[key] = dic[key] return new_dic
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _filter_dict(src_dict, key_set):\n for k in set(src_dict.keys()) - key_set:\n src_dict.pop(k)", "def delete_keys_from_dict(self, orig_dict, keys_whitelist):\n for k in list(orig_dict.keys()):\n if k not in keys_whitelist:\n del orig_dict[k]\n\n for v in orig_...
[ "0.7408557", "0.7388232", "0.7152084", "0.7129768", "0.70783234", "0.70029545", "0.6970533", "0.69514227", "0.6892303", "0.6881596", "0.6842138", "0.6825979", "0.6807732", "0.6777104", "0.6747543", "0.6689857", "0.66265905", "0.6586963", "0.65733594", "0.65417606", "0.6520428...
0.85738903
0
Filter out any dictionary dic items by key_prefix_list. Any item with a key that begins with a prefix in the list is deleted.
def filter_dic_by_key_prefix(dic,key_prefix_list): new_dic = {} for key in dic: retain = True for prefix in key_prefix_list: if key.startswith(prefix): retain = False if retain: new_dic[key] = dic[key] return new_dic
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter_by_key_prefix(dictionary, prefix, remove_prefix=True):\n return_dictionary = {}\n for key in dictionary:\n if key.startswith(prefix):\n return_key = key[len(prefix):] if remove_prefix else key\n return_dictionary[return_key] = copy.deepcopy(dictiona...
[ "0.7311348", "0.6950686", "0.6827285", "0.6725053", "0.6600511", "0.64534026", "0.6416821", "0.6410327", "0.6280091", "0.62380105", "0.61948365", "0.6129603", "0.61220396", "0.6074604", "0.60481566", "0.60065144", "0.59963995", "0.598115", "0.5972227", "0.5954792", "0.589453"...
0.86578876
0
Convert a dictionary dic to a JSON formatted string.
def dict_to_json(dic): return json.dumps(dic)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def serialize_dict(d):\n txt = '{'\n for k in d:\n txt += f'\"{k}\":'\n if isinstance(d[k], dict):\n txt += serialize_dict(d[k])\n if isinstance(d[k], str):\n txt += serialize_string(d[k])\n if isinstance(d[k], int):\n txt += serialize_number(d[k])...
[ "0.770535", "0.76359206", "0.7430476", "0.73756623", "0.73238975", "0.72346234", "0.7232419", "0.7116752", "0.71046174", "0.70223093", "0.69419265", "0.6876808", "0.68767357", "0.6873212", "0.68707055", "0.6845067", "0.67927337", "0.67066324", "0.67041", "0.6677344", "0.65835...
0.8294551
0
Return hosting endpoint environment variables
def _get_hosting_environ_vars(self, model_id): environ_vars = { "AWS_DEFAULT_REGION": self._region_name, "EXPERIMENT_ID": self.experiment_id, "EXP_METADATA_DYNAMO_TABLE": self.resource_manager.exp_db_table_name, "MODEL_METADATA_DYNAMO_TABLE": self.resource_manager...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetEnvironment(self):\n environ = super(ServiceHandlerTest, self).GetEnvironment()\n if self.remote_host:\n environ['REMOTE_HOST'] = self.remote_host\n if self.server_host:\n environ['SERVER_HOST'] = self.server_host\n return environ", "def _generate_environment(self):\n envvars ...
[ "0.76188207", "0.75218624", "0.71919274", "0.71919274", "0.7137761", "0.71228236", "0.71228236", "0.71228236", "0.7071341", "0.69988966", "0.68766695", "0.6834602", "0.6824104", "0.6799508", "0.6786709", "0.677458", "0.67666346", "0.6765518", "0.6763742", "0.6707745", "0.6682...
0.6528841
35
Initializes the first Model training for an Experiment
def initialize_first_model(self, wait=True, input_data_s3_prefix=None): # Sync experiment state if required self._sync_experiment_state_with_ddb() # experiment only allow one training job at a time, # validate no other training request is in progress if ( self.experi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def init_training(self):\n\n if not os.path.exists(self._model_root_path):\n os.makedirs(self._model_root_path)\n\n # Only initialize once!\n if self._model is None:\n self._model = TrainableAimbotModel(self._config, self._fov,\n ...
[ "0.72230536", "0.71793234", "0.7144797", "0.7042289", "0.7028844", "0.7028844", "0.7028844", "0.7028844", "0.7028844", "0.70000666", "0.69146895", "0.6913603", "0.68959135", "0.6827382", "0.6721046", "0.66703254", "0.6665645", "0.66617197", "0.6642921", "0.66290796", "0.66061...
0.7229473
0
Compute the number of stereocenters in a molecule.
def n_stereo_centers(mol: Mol) -> int: n = 0 try: rdmolops.FindPotentialStereo(mol, cleanIt=False) n = rdMolDescriptors.CalcNumAtomStereoCenters(mol) except Exception: pass return n
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def calculate_number_of_stems(data: Data, node_types: Optional[List[int]]):\n\n soma = data.morphology.get_soma()\n if node_types:\n return len(data.morphology.get_children_of_node_by_types(soma, node_types))\n else:\n return len(data.morphology.children_of(soma))", "def getNumod_byerSente...
[ "0.6235372", "0.61800504", "0.6080455", "0.6038465", "0.59687555", "0.5934248", "0.5856434", "0.5845162", "0.5792753", "0.5792088", "0.5785463", "0.57527965", "0.56811994", "0.5639557", "0.5637558", "0.5637558", "0.56298083", "0.56111926", "0.5598228", "0.5592277", "0.5584772...
0.63085467
0
Compute the number of unspecified stereocenters in a molecule.
def n_stereo_centers_unspecified(mol: Mol) -> int: n = 0 try: rdmolops.FindPotentialStereo(mol, cleanIt=False) n = rdMolDescriptors.CalcNumUnspecifiedAtomStereoCenters(mol) except Exception: pass return n
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def count_non_standard_residues(self):\n n = 0\n for frag in self.iter_non_standard_residues():\n n += 1\n return n", "def __len__(self):\n return self.rdmol.GetNumAtoms()", "def n_stereo_centers(mol: Mol) -> int:\n n = 0\n try:\n rdmolops.FindPotentialStereo...
[ "0.6331401", "0.5987558", "0.59593135", "0.5942966", "0.5929287", "0.5919751", "0.5897624", "0.5836626", "0.5834092", "0.5815016", "0.580964", "0.5794879", "0.5791564", "0.57602537", "0.5742034", "0.5738098", "0.5729691", "0.56936187", "0.5691271", "0.56896544", "0.5673346", ...
0.67022306
0
Show info about user.
def user_detail(username): user = User.query.filter_by(username=username).one() if user.user_exps: list_ratings = [(user.user_exps[i].rating, user.user_exps[i].visit.restaurant.name) for i in range(len(user.user_exps))] sorted_ratings = sorted(list_ratings, reverse=True) highest_rated_r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def show_user_info(self):\n name = self.get_user_name()\n print(f'Name: {name.title()}')\n print(f'Age: {self.age}')\n print(f'Gender: {self.gender.title()}')\n print(f'Mobile: {self.m_number}')", "def show_user_info(user_id):\n\n user = User.query.get_or_404(user_id)\n r...
[ "0.87687427", "0.799944", "0.7912591", "0.78403974", "0.78403974", "0.78004324", "0.77459043", "0.7667942", "0.7643837", "0.7636991", "0.7602529", "0.7601002", "0.7550209", "0.754345", "0.75432116", "0.7477506", "0.74669594", "0.7454454", "0.74496824", "0.7417272", "0.7417272...
0.0
-1
Return the rate shift at time ``t``. The rate shift is ``2 abs(min([0, rate_1(t), rate_2(t), ...]))``.
def rate_shift(self, t): return self._rate_shift.as_double(t)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_rate(self, t):\n return self.rates[bisect.bisect(self.change_times, t) - 1]", "def sqrt_shifted_rate(self, t, i):\n return np.real(self._sqrt_shifted_rates[i](t))", "def get_rate(self, t):\n return self.l_0 + \\\n self.alpha * sum(np.exp([self.beta * -1.0 * (t - s)\n ...
[ "0.65794057", "0.6268969", "0.5769186", "0.5603662", "0.5364174", "0.5248833", "0.5215416", "0.517664", "0.51696795", "0.5016689", "0.4994984", "0.4961828", "0.4955764", "0.49424148", "0.4931998", "0.49296606", "0.48072144", "0.47717285", "0.47713184", "0.47624618", "0.475642...
0.7908611
0
Compare the string representations of two Seq objects
def __eq__(self, other) -> bool: return str(self) == str(other)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def compare(obj_a, obj_b):\n\n return tuple_to_string(obj_a) == tuple_to_string(obj_b)", "def sequence_equals(sequence1, sequence2):\n assert len(sequence1) == len(sequence2), (len(sequence1), len(sequence2))\n for item_from_s1, item_from_s2 in zip(sequence1, sequence2):\n assert item_from_s1...
[ "0.6696727", "0.663195", "0.65609044", "0.65609044", "0.65609044", "0.6529928", "0.6483516", "0.6474486", "0.64588255", "0.64538187", "0.6420699", "0.6354449", "0.6336452", "0.6332766", "0.63002765", "0.624951", "0.6231853", "0.62256944", "0.6200755", "0.61768895", "0.6163142...
0.6589594
2
Return the GC content of the sequence
def gc(self) -> float: g = self.count("G") c = self.count("C") return (g + c) / len(self) * 100
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gc_content(self):\n if self.sequence is not None:\n return np.around(GC(self.sequence), decimals=2)\n else:\n return None", "def get_gc_content(sequence):\n # get the sequence length and \n # make all the sequence characters upper case\n seq_len, sequence = len(se...
[ "0.8399854", "0.80756867", "0.7978443", "0.7678275", "0.7670931", "0.72862595", "0.71133333", "0.6941436", "0.687548", "0.687548", "0.684851", "0.6821189", "0.6653807", "0.66151166", "0.6502526", "0.6489433", "0.6415115", "0.6344451", "0.6238257", "0.6237327", "0.6226665", ...
0.54139465
41
Collate a batch ready for dataloaders to allow for image \ tensors of variable size.
def variable_tensor_size_collator(batch): assert isinstance(batch, Iterable) transpose = list(zip(*batch)) for idx, field in enumerate(transpose): try: transpose[idx] = torch.stack(field) except Exception: continue return transpose
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def collate_fn(self, batch):\n images = list()\n boxes = list()\n labels = list()\n difficulties = list()\n\n for b in batch:\n images.append(b[0])\n boxes.append(b[1])\n labels.append(b[2])\n difficulties.append(b[3])\n\n images...
[ "0.73741144", "0.7225463", "0.7177354", "0.71052116", "0.70919305", "0.70082605", "0.6987043", "0.69453335", "0.69448817", "0.6931983", "0.6926705", "0.6918139", "0.68918365", "0.68559974", "0.68390554", "0.6801052", "0.67810494", "0.67615736", "0.67300326", "0.67276645", "0....
0.63233125
54
Get an item from the dataset for a given index. Note that the index may not strictly correspond with the image id for \ the returned record; e.g. if `tier = 'test'`, then index 0 refers to \ image id 30000.
def __getitem__(self, key): # Get images and apply transforms image_file = self.data[self.data.columns[0]][key] image = Image.open(os.path.join(self.path, 'data', image_file)) if self.is_transform: image = self.transform(image) if not torch.is_tensor(image): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __getitem__(self, index):\n return self.dataset[index]", "def get_item(self, index: int) -> _T:\n return self.index_to_item[index]", "def __getitem__(self, index):\n\n if self._data_indices is not None:\n index = self._data_indices[index]\n data = self._dataset[index]...
[ "0.6922458", "0.69209176", "0.67948717", "0.6743589", "0.6739673", "0.67370665", "0.669707", "0.66359293", "0.66345656", "0.6619108", "0.6589246", "0.6588564", "0.6575276", "0.65731496", "0.65720403", "0.65277064", "0.65206116", "0.64953536", "0.6482744", "0.64760643", "0.646...
0.0
-1
Return the length of the dataset.
def __len__(self): return len(self.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __len__(self):\n return self._dataset.size(dirs=self._dirs)", "def length(self) -> int:\n return len(self.data)", "def dataset_size(self):\n return self.dataset.size", "def __len__(self):\n return len(self.dataset)", "def __len__(self):\n return self.dataset.shape[0]"...
[ "0.842034", "0.8273375", "0.82705677", "0.8263488", "0.82087904", "0.8196173", "0.8196173", "0.8196173", "0.8166417", "0.8147547", "0.81359464", "0.81359464", "0.81359464", "0.81359464", "0.80966896", "0.8068353", "0.805027", "0.8043417", "0.8042042", "0.80221593", "0.8010769...
0.7561766
77
Check if table is partitioned
def _is_partitioned(self): ## check if the table are partitioned, need the split because of a change in the type of partitions in pydantic partitions = self.table_config["partitions"] if partitions is None or len(partitions) == 0: return False if isinstance(partitions, list)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_table_partition_details( # pylint: disable=unused-argument\n self,\n table_name: str,\n schema_name: str,\n inspector: Inspector,\n ) -> Tuple[bool, Optional[TablePartition]]:\n return False, None # By default the table will be a Regular Table", "def partitionWasCr...
[ "0.6648641", "0.6588678", "0.65800506", "0.61900395", "0.6187379", "0.6090338", "0.6082958", "0.59748787", "0.591298", "0.5888162", "0.5760163", "0.57344425", "0.5712006", "0.57114846", "0.570359", "0.5539127", "0.55266595", "0.5522375", "0.5480322", "0.54598325", "0.5457304"...
0.7886648
0
Check if table exists in BigQuery.
def table_exists(self, mode): try: ref = self._get_table_obj(mode=mode) except google.api_core.exceptions.NotFound: ref = None return bool(ref)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def does_table_exist(table_name):\n result = call_bq(\n ['show', table_name], project='khan-academy', raise_exception=False)\n\n if \"Not found: Table\" in result:\n return False\n else:\n return True", "def _TableExists(dataset_id, table_id, project_id):\n client = GetApiClient()\...
[ "0.8232203", "0.78823453", "0.7483008", "0.7420454", "0.735787", "0.7332863", "0.7318604", "0.7281315", "0.7263965", "0.72130674", "0.71870303", "0.7166269", "0.71630764", "0.7151287", "0.71437275", "0.71364355", "0.7070864", "0.70499563", "0.70380676", "0.70313174", "0.70081...
0.6589983
41
Maintains a temporary directory for the life of the context manager.
def temp_dir(**kwargs): temp_dir = tempfile.mkdtemp(**kwargs) try: yield temp_dir finally: # Cleanup # ermm... this is breaking something (maybe bootstrapping replicates?), so leaving out for now #shutil.rmtree(temp_dir) pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tempdir():\n\n class ctx(object):\n\n def __enter__(self):\n self.prevdir = os.getcwd()\n self.tempdir = tempfile.mkdtemp()\n os.chdir(self.tempdir)\n return self.tempdir\n\n def __exit__(self, *a, **kwa):\n os.chdir(self.prevdir)\n ...
[ "0.8272151", "0.8230792", "0.8036911", "0.7973029", "0.79703844", "0.79259896", "0.7821556", "0.7799473", "0.77948797", "0.7756211", "0.77539843", "0.77479076", "0.77366084", "0.77356774", "0.7735171", "0.7727011", "0.7722966", "0.76380944", "0.76066625", "0.75862753", "0.758...
0.77917266
9
Initialize weights of the 2D backbone.
def init_weights(self, pretrained=None): # Do not initialize the conv layers # to follow the original implementation if isinstance(pretrained, str): from mmdet3d.utils import get_root_logger logger = get_root_logger() load_checkpoint(self, pretrained, strict=F...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _initialize_weights(self):\n pass", "def init_weights(self):\n # Initialize weights\n self.apply(self._init_weights)", "def init_weights(self):\n # Initialize weights\n self.apply(self._init_weights)\n # Tie weights if needed\n self.tie_weights()", "def in...
[ "0.80290526", "0.77966774", "0.77686733", "0.77268344", "0.768635", "0.7654298", "0.7582883", "0.75751984", "0.75039655", "0.7459493", "0.73740256", "0.7373671", "0.73579866", "0.7339834", "0.7338213", "0.7327692", "0.73158306", "0.73158306", "0.73158306", "0.7312632", "0.730...
0.0
-1
Return the name of the device if any.
def name(self): return self._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def device_name(self) -> Optional[str]:\n return pulumi.get(self, \"device_name\")", "def device_name(self) -> Optional[str]:\n return pulumi.get(self, \"device_name\")", "def name(self):\n return self._device.name", "def name(self):\n return self._device.name", "def name(self):...
[ "0.89734465", "0.89734465", "0.8584627", "0.8584627", "0.8584627", "0.8502048", "0.84944665", "0.84194607", "0.83955586", "0.83955586", "0.8379756", "0.83165", "0.8306566", "0.8161454", "0.81564134", "0.8090303", "0.8087526", "0.8073198", "0.8006941", "0.7999654", "0.79544145...
0.0
-1
Return the brightness of this light between 0..255.
def brightness(self): return self._brightness
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def brightness(self) -> float:\n # http://alienryderflex.com/hsp.html\n r, g, b = self.r, self.g, self.b\n return sqrt(0.299*r**2 + 0.587*g**2 + 0.114*b**2)/255", "def brightness(self):\n return brightness_from_percentage(self._brightness_pct)", "def brightness(self):\n retur...
[ "0.86106795", "0.85797876", "0.84444", "0.837146", "0.83107203", "0.81361365", "0.81177837", "0.78746456", "0.78518254", "0.78518254", "0.7823478", "0.77862597", "0.7754381", "0.77270913", "0.769415", "0.75714487", "0.75458485", "0.7526449", "0.7523753", "0.7504014", "0.74457...
0.8387642
10
Return the color mode of the light.
def color_mode(self) -> ColorMode: if self._dimmable: return ColorMode.BRIGHTNESS return ColorMode.ONOFF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_color_mode(self):\n mode=lib.is_SetColorMode(self.hcam,0x8000)\n return self._color_modes_inv.get(mode,mode)", "def color_mode(self):\n return ids_core.Camera.color_mode.__get__(self)", "def get_color(self):\n return self.color", "def get_color(self):\n\n return sel...
[ "0.8476724", "0.83840185", "0.7181002", "0.713004", "0.7121714", "0.7118741", "0.7051833", "0.7051833", "0.7022695", "0.69856405", "0.69614244", "0.69259226", "0.6879944", "0.68717533", "0.68651074", "0.68334603", "0.6821064", "0.681482", "0.681482", "0.6800763", "0.67301863"...
0.81783736
2
Turn the light off.
def turn_off(self, **kwargs: Any) -> None: self._light.turn_off() if self._brightness: self._last_brightness = self._brightness
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def turn_off(self):\n GPIO.output(self.gpio, False) # turn off light", "def lightning_turnoff(self):\n self.turnOff()", "def set_light_off(self):\n self._light = \"OFF\"", "def turn_off(self, **kwargs):\n self._light.set_color(0, 0, 0, 0)", "def set_light_off(self):\r\n ...
[ "0.9158525", "0.88893706", "0.88740003", "0.8852116", "0.8842971", "0.87965184", "0.864986", "0.85981315", "0.85843927", "0.85641575", "0.8526551", "0.8403609", "0.8292084", "0.8271316", "0.82411224", "0.81950665", "0.8189084", "0.8162265", "0.8066985", "0.8010293", "0.801009...
0.83990663
12
Get all the subscriptions given a topic arn
def _get_subscriptions(self, topic_arn): return self.conn.get_all_subscriptions_by_topic(topic_arn)['ListSubscriptionsByTopicResponse']['ListSubscriptionsByTopicResult']['Subscriptions']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_all_subscriptions_by_topic(self, topic, next_token=None):\r\n params = {'ContentType' : 'JSON',\r\n 'TopicArn' : topic}\r\n if next_token:\r\n params['NextToken'] = next_token\r\n response = self.make_request('ListSubscriptionsByTopic', params,\r\n ...
[ "0.75689477", "0.7438803", "0.6570348", "0.65374756", "0.6505854", "0.64450747", "0.6444642", "0.6416524", "0.63498396", "0.6345061", "0.62814856", "0.624892", "0.62467355", "0.6190939", "0.6155492", "0.6132757", "0.6131974", "0.60946584", "0.60882473", "0.608751", "0.6070792...
0.80367166
0
Get subscriptions of the cloudwatch topic
def _get_cloudwatch_subscriptions(self): return self._get_subscriptions(self.cloudwatch_arn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_subscriptions(self, topic_name):\r\n resp = self._make_request('get',\r\n 'topics/%s/subscriptions' % topic_name)\r\n return resp.json()", "def _get_subscriptions(self, topic_arn):\n return self.conn.get_all_subscriptions_by_topic(topic_arn)['ListSubs...
[ "0.7948741", "0.7828001", "0.73336166", "0.70746785", "0.69938654", "0.6918133", "0.67891335", "0.670806", "0.6698545", "0.6676957", "0.6671007", "0.65795547", "0.6579293", "0.6566223", "0.65163076", "0.6485523", "0.6484352", "0.64436173", "0.64175385", "0.6411792", "0.640717...
0.79138905
1
3D shortcut to match input and residual and merges them with "sum".
def _shortcut3d(input, residual): stride_dim1 = input._keras_shape[DIM1_AXIS] \ // residual._keras_shape[DIM1_AXIS] stride_dim2 = input._keras_shape[DIM2_AXIS] \ // residual._keras_shape[DIM2_AXIS] stride_dim3 = input._keras_shape[DIM3_AXIS] \ // residual._keras_shape[DIM3_AXIS] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def heisen3_sum(v1: Vec3, v2: Vec3) -> Vec3:\n assert v1.shape == v2.shape and v1.shape == (3,)\n # first, do normal sum to get (x + x', y + y', z + z')\n out = v1 + v2\n # then add the xy' part to z + z'\n out[2] += v1[0] * v2[1]\n return out", "def residual(n_filters, input):\n shape = inp...
[ "0.6035756", "0.59229684", "0.58436596", "0.57720387", "0.57267225", "0.5613523", "0.5596183", "0.5553682", "0.5515", "0.55137086", "0.5509584", "0.55038106", "0.5471407", "0.54677624", "0.54525894", "0.54432803", "0.54238296", "0.5399621", "0.5355094", "0.5333823", "0.531066...
0.5549191
8
Are recipes made by a user?
def test_user_own_recipes(self): recipe1 = Recipe(uri="testuri", name="testname", image_url="test_image_url", user_id=self.uid) recipe2 = Recipe(uri="testuri2", name="testname2", image_url="test_image_url2") db.session.add_all([recipe1, recipe2]) db.session.commit() self.asser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def added_by(self, user):\n return ChefsHasRecipes.objects.filter(recipe=self, chef=user).exists()", "def shared_by(self, user):\n return Shares.objects.filter(recipe=self, chef=user).exists()", "def liked_by(self, user):\n return Likes.objects.filter(recipe=self, chef=user).exists()", "...
[ "0.7890384", "0.68400955", "0.67452884", "0.6574751", "0.64880586", "0.64397967", "0.63920134", "0.63818663", "0.6281477", "0.6190415", "0.6190415", "0.61836183", "0.6091847", "0.6085388", "0.60727835", "0.60204244", "0.5931825", "0.5927256", "0.5912539", "0.58809495", "0.588...
0.6629162
3
Moves dino sprite, randomizes speed every 40 steps, reverses speed if it hits enclosure \ walls, reverses image if it hits left or right wall
def move(self): # Randomizes movement after 40 steps and flips sprite \ # (if x-value of speed variable changes from positive to negative) if step == 40 and 0 < hunger < 205 and thirst < 175 and self.speed[0] not in range(-1000, 0): self.speed[0] = random.randint(-5, -1) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def move(self):\n self.x += self.speed_x / FPS\n self.y += self.speed_y / FPS\n self.draw_ball()\n if self.x >= 1100:\n self.speed_x = randint(-100, -10)\n if self.x <= 50:\n self.speed_x = randint(10, 100)\n if self.y >= 800:\n self.speed_...
[ "0.67189986", "0.66602516", "0.6611975", "0.6574117", "0.656306", "0.6531869", "0.649259", "0.6383933", "0.6333386", "0.6326676", "0.63205963", "0.6277311", "0.62020326", "0.618996", "0.6151834", "0.6127238", "0.6112895", "0.6103216", "0.60453165", "0.60226506", "0.60135704",...
0.8424062
0
magic from rllab for computing discounted cumulative sums of vectors.
def discount_cumsum(x, discount): return scipy.signal.lfilter([1], [1, float(-discount)], x[::-1], axis=0)[::-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _discounted_cumsum(self, rewards, rate=None):\n # HINT1: note that each entry of the output should now be unique,\n # because the summation happens over [t, T] instead of [0, T]\n # HINT2: it is possible to write a vectorized solution, but a solution\n # using a for loop is also fin...
[ "0.6540757", "0.64635974", "0.6429183", "0.6427291", "0.6323769", "0.63178307", "0.63175875", "0.6267737", "0.6225033", "0.6221566", "0.62135977", "0.62053436", "0.61727947", "0.61320513", "0.6120513", "0.60986733", "0.6009351", "0.59941953", "0.59521544", "0.59496266", "0.59...
0.6335572
10
Return a copy of this undirected graph.
def copy(self, new=True): return UndirectedGraph(self._nodes, self._edges)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_copy_of_graph(self):\r\n return deepcopy(self)", "def copy(self):\n return AncestralGraph(self.nodes, self.directed, self.bidirected, self.undirected)", "def duplicate(self):\n\t\treturn Graph(self.vertices[:], self.edges[:])", "def __deepcopy__(self):\n return UndirectedGraph.ex...
[ "0.86126566", "0.81499046", "0.79274964", "0.7875716", "0.78578997", "0.783965", "0.77858466", "0.7769234", "0.769524", "0.7564926", "0.7556662", "0.75443715", "0.75376964", "0.7393429", "0.73869854", "0.734491", "0.7296441", "0.7293224", "0.7196282", "0.7180791", "0.71558386...
0.8164355
1
Check if the undirected graph has an edge.
def has_edge(self, i: Node, j: Node) -> bool: return frozenset({i, j}) in self._edges
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def has_edge(self, otherNode):\n\t\t\treturn otherNode in self.edges", "def has_edges(self):\n\n return len(self._edges) > 0", "def has_edge(\n self, subject_node: str, object_node: str, edge_key: Optional[str] = None\n ) -> bool:\n return self.graph.has_edge(subject_node, object_node, ...
[ "0.7977211", "0.76359206", "0.7463798", "0.7069537", "0.70163727", "0.6937356", "0.6928846", "0.6905621", "0.6789219", "0.67787343", "0.6771764", "0.6768477", "0.67431396", "0.67359626", "0.6729202", "0.6726206", "0.6712084", "0.66876215", "0.668277", "0.66632867", "0.6594277...
0.70283896
4
Add a set of edges.
def add_edges_from(self, edges: Iterable): for i, j in edges: self.add_edge(i, j)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addEdges(self, edges):\n for edge in edges:\n self.addEdge(edge[0], edge[1], edge[2])", "def add_edges(self, edges):\n if self.is_weighted():\n for vertex1, vertex2, weight in edges:\n self.add_edge(vertex1, vertex2, weight)\n else:\n for vertex1, v...
[ "0.8487919", "0.7863906", "0.7856243", "0.76635224", "0.7586117", "0.75714517", "0.72769386", "0.71996605", "0.7006769", "0.69543153", "0.68577135", "0.68122506", "0.6757897", "0.6726282", "0.6617408", "0.6595828", "0.6502121", "0.6468789", "0.6448465", "0.64382166", "0.64183...
0.80339944
1
Make sure this stringlike thing is a native str. If it's bytes, decode it, but only allow ascii characters.
def to_native_str(s): if not isinstance(s, str): return s.decode('ascii', 'strict') return s
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ensure_native_str(data, encoding=\"utf8\"):\n if isinstance(data, str):\n return data\n elif isinstance(data, unicode_type):\n # Only executes on python 2\n return data.encode(encoding)\n elif isinstance(data, bytes):\n # Only executes on python 3\n return data.decod...
[ "0.74068725", "0.74045837", "0.7227698", "0.7149765", "0.7083603", "0.70687914", "0.67424184", "0.6708985", "0.66710997", "0.6658735", "0.6646252", "0.66306806", "0.6625153", "0.65998024", "0.65765655", "0.6551749", "0.6545231", "0.6516571", "0.6483706", "0.64422196", "0.6425...
0.7303582
2
CharucoBoard_create(squaresX, squaresY, squareLength, markerLength, dictionary) > retval
def CharucoBoard_create(squaresX, squaresY, squareLength, markerLength, dictionary): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GridBoard_create(markersX, markersY, markerLength, markerSeparation, dictionary, firstMarker=None):\n pass", "def make_board() -> dict:\n coordinates = {(x, y): ' o ' for x in range(5) for y in range(5)}\n coordinates[(0, 0)] = \" 🚶 \"\n coordinates[(4, 4)] = \" x \"\n return coordinates", ...
[ "0.7291093", "0.68804747", "0.64255613", "0.6372242", "0.63509905", "0.62481266", "0.61016035", "0.60479707", "0.6007294", "0.59900343", "0.59791315", "0.59773403", "0.5909628", "0.58731204", "0.5837199", "0.5830975", "0.58174825", "0.58007276", "0.57890505", "0.57810545", "0...
0.96439546
0
Generate a random string of fixed length
def random_string(stringlength=10): letters = string.ascii_lowercase return ''.join(random.choice(letters) for i in range(stringlength))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _generate_random_string(length: int):\n\tall_chars = string.ascii_letters + string.digits\n\treturn ''.join(random.choices(all_chars, k=length))", "def generate_random_string(length=6):\n n = int(length / 2 + 1)\n x = binascii.hexlify(os.urandom(n))\n s = x[:length]\n return s.decode(\"utf-8\")",...
[ "0.8680464", "0.8573714", "0.85486245", "0.85297275", "0.85209286", "0.84331024", "0.8432044", "0.84157014", "0.84120053", "0.8389201", "0.8345882", "0.8343962", "0.83406156", "0.83348686", "0.83240855", "0.82986933", "0.82911193", "0.8281826", "0.82818025", "0.82811046", "0....
0.78713596
66
get email address for admin
def set_admin(): print("Insert admin email:") return input()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_email(self):\n return self.email", "def email(self, instance):\r\n return instance.user.email", "def getEmail(self):\n\t\treturn self.Email", "def getEmail(self):\n return self.email", "def get_email(self):\n return self.reference[REF_EMAIL_ADDRESS][REF_VALUE]", "def g...
[ "0.78166956", "0.76453346", "0.7636623", "0.76333916", "0.7619093", "0.75386417", "0.7536803", "0.7516897", "0.7516897", "0.7516897", "0.7446897", "0.7442607", "0.7386358", "0.7318674", "0.7318674", "0.7318674", "0.7318674", "0.73054045", "0.7273462", "0.7273462", "0.7273462"...
0.65981776
62
Gets the evaluators of this ModelsArray.
def evaluators(self) -> List[Evaluator]: return self._evaluators
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_model_evaluations(self):\n return self._model_evaluations", "def get_evaluations(self):\r\n return self.evaluations", "def _get_evaluators(self):\n if self._evaluator_overrides is not None:\n return self._evaluator_overrides\n return self._create_evaluators()", ...
[ "0.789407", "0.7453765", "0.7166437", "0.6485888", "0.6366866", "0.63613826", "0.62364376", "0.6210096", "0.6155053", "0.6066388", "0.60486484", "0.6020256", "0.601893", "0.59002703", "0.5867686", "0.58331406", "0.57776487", "0.57587403", "0.57551336", "0.5743951", "0.5720178...
0.8164412
0