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
Sets the custom_profile_fields of this BaseAdDataForSearch.
def custom_profile_fields(self, custom_profile_fields): self._custom_profile_fields = custom_profile_fields
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def basic_profile_fields(self, basic_profile_fields):\n\n self._basic_profile_fields = basic_profile_fields", "def custom_fields(self, custom_fields):\n\n self._custom_fields = custom_fields", "def custom_fields(self, custom_fields):\n\n self._custom_fields = custom_fields", "def custom_...
[ "0.6368887", "0.62446934", "0.62446934", "0.62446934", "0.62446934", "0.62446934", "0.5365419", "0.5129903", "0.5125644", "0.5026033", "0.501911", "0.4930699", "0.48943976", "0.4890517", "0.4810547", "0.47106725", "0.4656153", "0.4593414", "0.4585284", "0.4578146", "0.4548850...
0.81828463
0
Sets the search_by_distance_data of this BaseAdDataForSearch.
def search_by_distance_data(self, search_by_distance_data): self._search_by_distance_data = search_by_distance_data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_search_params(self, **kwargs):\n self._search_params = kwargs", "def sort_by(self, key, direction=\"ASC\"):\n if direction not in DeviceSearchQuery.VALID_DIRECTIONS:\n raise ApiError(\"invalid sort direction specified\")\n self._sortcriteria = {\"field\": key, \"order\": d...
[ "0.50535065", "0.48556226", "0.48095515", "0.47571093", "0.47571093", "0.47571093", "0.47037187", "0.46908993", "0.46735945", "0.46238282", "0.45945957", "0.45933", "0.4524427", "0.4520477", "0.4518804", "0.45114338", "0.44947764", "0.44819918", "0.44736826", "0.44671667", "0...
0.84562874
0
Returns true if both objects are equal
def __eq__(self, other): if not isinstance(other, BaseAdDataForSearch): 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, BaseAdDataForSearch): 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.8455985", "0.83913255", "0.81440157", "0.8140831", "0.8132328", "0.80937284", "0.809181", "0.809181", "0.809181", "0.808509", "0.808509", "0.8076134", "0.8076134", "0.8065528", "0.80422795", "0.80422795", "0.80422795", "0.80422795", "0.80422795", "0.80422795", "0.80422795"...
0.0
-1
set age of animal
def set_age(self, newage): self.age = newage
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setAge(self, age):\r\n self.age = age", "def set_age(self, age):\n self.__age = age", "def set_age (self, PersonAge): \r\n self.age = PersonAge", "def setAge(self, age):\n self._age = age", "def age(self, age):\n\n self._age = age", "def age(self, age):\n\n ...
[ "0.8323666", "0.81830984", "0.8043199", "0.7998913", "0.7984441", "0.7984441", "0.7969386", "0.74234945", "0.7392843", "0.73712945", "0.6934736", "0.6898433", "0.67257047", "0.6707795", "0.6621937", "0.66085243", "0.6598728", "0.6586672", "0.6579603", "0.6569218", "0.65416074...
0.79938513
4
returns IOU score for box1 and box2
def IOU(self, box1, box2): xmin_1, ymin_1, xmax_1, ymax_1 = map(int, box1) xmin_2, ymin_2, xmax_2, ymax_2 = map(int, box2) # Evaluator to floats : YOU SHALL NOT PASS!!! # Seriously, don't pass floats. """ box has format (x1,y1,x2,y2) where x1,y1 is top left corner and x2,y2 is bottom right corner ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iou(box1, box2):\n\n lr = min(box1[0]+0.5*box1[2], box2[0]+0.5*box2[2]) - \\\n max(box1[0]-0.5*box1[2], box2[0]-0.5*box2[2])\n if lr > 0:\n tb = min(box1[1]+0.5*box1[3], box2[1]+0.5*box2[3]) - \\\n max(box1[1]-0.5*box1[3], box2[1]-0.5*box2[3])\n if tb > 0:\n intersection = tb*lr\n ...
[ "0.7591437", "0.7421669", "0.7345259", "0.72892845", "0.71813923", "0.71698123", "0.7159749", "0.712733", "0.71241194", "0.7047764", "0.7006581", "0.6983312", "0.6983312", "0.69773984", "0.695087", "0.69445115", "0.69074935", "0.68932694", "0.6882727", "0.6854076", "0.6849007...
0.8065473
0
String representation of an alignment.
def expand(self): indices = tf.where(self.path).numpy() indices = indices[np.argsort(indices[:, 0] + indices[:, 1])] start = indices[0, :2] end = indices[-1, :2] # Summary matches in terms of exact matches and, if available, substitution # scores. a_x, a_y = [], [] summary = [] for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def format_alignment(self, alignment):\n raise NotImplementedError(\"This method should be implemented\")\n ###################################################\n # You MUST implement this method in the subclass. #\n ###################################################", "def align(self...
[ "0.7530763", "0.7105715", "0.7105715", "0.7105715", "0.67238945", "0.67089295", "0.66919625", "0.66590655", "0.6575081", "0.6447055", "0.6439212", "0.6423564", "0.6409451", "0.64030904", "0.63556564", "0.6339791", "0.631211", "0.6263666", "0.62549454", "0.6243923", "0.6226125...
0.0
-1
Return True if self equals other, and false otherwise.
def __eq__(self, other): return type(self) == type(other) and \ self.row == other.row and \ self.column == other.column
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other):\n return self is other", "def __eq__(self, other):\n return self is other", "def equals(self, other): # -> bool:\n ...", "def __eq__(self, other):\n return equal(self, other)", "def __eq__(self, other):\n return are_equal(self, other)", "def __...
[ "0.86520875", "0.86520875", "0.8649587", "0.8594353", "0.8567433", "0.8567433", "0.8515214", "0.849623", "0.84770805", "0.84770805", "0.8458409", "0.84555155", "0.84401876", "0.84337455", "0.8432888", "0.8432853", "0.84145886", "0.8406018", "0.8400155", "0.8391199", "0.835678...
0.0
-1
returns if top can be stacked on bottom
def canStack(bottom, top): bw, bh, bd = bottom tw, th, td = top return (bw < tw) and (bh < th) and (bd < td)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def checkBottom(self):\n exposed = True\n for sprite in self.overlapping_sprites:\n if sprite not in self.game.neutrinos:\n a = abs(self.bottom - sprite.top)\n b = abs(self.top - sprite.bottom)\n c = abs(self.left - sprite.right)\n ...
[ "0.6794902", "0.6763152", "0.6762978", "0.6548676", "0.65471745", "0.6254898", "0.62353295", "0.6163097", "0.61100936", "0.6095727", "0.60862637", "0.60428184", "0.59996086", "0.59654754", "0.5952935", "0.59480953", "0.59426737", "0.58917636", "0.5882772", "0.58717805", "0.58...
0.8212617
0
save the test data and return the training dataset
def _train_test_split( self, ds: xr.Dataset, years: List[int], target_variable: str, pred_months: int, expected_length: Optional[int], ) -> xr.Dataset: years.sort() # for the first `year` Jan calculate the xy_test dictionary and min date xy_t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def download_train_test_set(save_folder):\n df = extract_notes(os.environ[\"DB_CONFIG\"])\n train_df, test_df = split_df(df)\n\n # if save folder does not exist, create it\n if not os.path.exists(save_folder):\n os.makedirs(save_folder)\n\n # save train_df\n save_data(train_df, save_folder...
[ "0.74608517", "0.74026805", "0.6952361", "0.6932277", "0.68587536", "0.6838638", "0.68154365", "0.6800281", "0.6777859", "0.676764", "0.6745747", "0.67275333", "0.66675323", "0.6648098", "0.6636094", "0.66342676", "0.6631179", "0.6614758", "0.6603734", "0.65916556", "0.659134...
0.0
-1
Return line count of file in memory.
def __len__(self): return len(self.contents)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def line_count(file):\n with open(file, \"r\") as f:\n return sum(1 for line in f)", "def get_file_line_count(a_file):\r\n count = -1\r\n try:\r\n for count, line in enumerate(open(a_file, \"rU\")):\r\n pass\r\n except IOError:\r\n pass\r\n count += 1\r\n return ...
[ "0.79511636", "0.78527415", "0.78527415", "0.78068817", "0.7713112", "0.76649714", "0.76414883", "0.7639263", "0.7607099", "0.7513471", "0.7447367", "0.744502", "0.7422233", "0.7411831", "0.7389629", "0.73894924", "0.73879176", "0.7371171", "0.73662287", "0.73613113", "0.7359...
0.0
-1
Return file in memory contents as a multiline string.
def __str__(self): return '\n'.join(self.contents)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def open_and_read_file(file_path):\n\n # Open file and read into memory\n text = open(file_path).read().rstrip()\n\n # Replace newlines with space\n #text = text.replace('\\n', ' ')\n\n return text", "def get_file_content(self):\n return \"\\n\".join(self._vim.current.buffer)", "def get_f...
[ "0.67571646", "0.6699994", "0.6699807", "0.661728", "0.65457517", "0.6511051", "0.6506287", "0.6491403", "0.6439839", "0.63903916", "0.639001", "0.63693553", "0.63575006", "0.6322163", "0.6304626", "0.62893534", "0.6275346", "0.6239557", "0.6211192", "0.6174678", "0.6170967",...
0.0
-1
Broadcast a given variable to a given shape.
def broadcast_to(x, shape): if x.shape == shape: return chainer.as_variable(x) y, = BroadcastTo(shape).apply((x,)) return y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _broadcast_to(x, shape_cur, shape_to, ndim_to):\n size = _tile_size(shape_cur, shape_to, ndim_to)\n return F.tile(x, size)", "def broadcast(input, other, _builder=None):\n return semantic.broadcast_impl_value(input, other, _builder)", "def shape_to_broadcast(shape):\n return tuple(n==1 for n in...
[ "0.5996946", "0.5901408", "0.58520937", "0.58428293", "0.5820121", "0.5801222", "0.5768531", "0.56755155", "0.564873", "0.5641216", "0.5572872", "0.55370337", "0.5528098", "0.54763556", "0.54324645", "0.54233646", "0.5397505", "0.53916234", "0.53273994", "0.5326452", "0.52768...
0.7843085
0
Draws a single flower. Turtle finishes in the correct position for drawing a new flower to the left.
def draw_flower_advanced(): draw_flower() turtle.left(90) turtle.up() turtle.forward(150) turtle.left(90) turtle.forward(150) turtle.right(90) turtle.down()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def draw_flower():\n turtle.right(45)\n draw_petal()\n turtle.right(90)\n draw_petal()\n turtle.right(90)\n draw_petal()\n turtle.right(90)\n draw_petal()\n turtle.right(135)\n turtle.forward(150)", "def draw_flower():\n turtle.right(45)\n draw_petal()\n turtle.right(90)\n ...
[ "0.77904457", "0.771062", "0.7702855", "0.68032503", "0.67587197", "0.6418173", "0.63749224", "0.62353677", "0.6186433", "0.5985627", "0.595052", "0.5944298", "0.5944298", "0.5891034", "0.5846464", "0.5768211", "0.57171595", "0.56965375", "0.56369025", "0.560246", "0.5594622"...
0.77373797
1
Draw 3 flowers side by side. Turtle finishes in the correct position for drawing another flower to the left.
def draw_flower_bed(): turtle.up() turtle.left(180) turtle.forward(200) turtle.right(180) turtle.down() for flower in range(3): draw_flower_advanced()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def draw_flower():\n turtle.right(45)\n draw_petal()\n turtle.right(90)\n draw_petal()\n turtle.right(90)\n draw_petal()\n turtle.right(90)\n draw_petal()\n turtle.right(135)\n turtle.forward(150)", "def draw_flower_advanced():\n draw_flower()\n turtle.left(90)\n turtle.up(...
[ "0.7757365", "0.7586109", "0.7505828", "0.7464441", "0.7182484", "0.6830318", "0.6647727", "0.63534844", "0.6271392", "0.62611586", "0.620689", "0.6123881", "0.6107056", "0.60648453", "0.6047793", "0.60073864", "0.60073864", "0.576547", "0.5754649", "0.5744338", "0.57293993",...
0.7280011
4
A reasonable mapping from the interval [0, 1] to the dimension, whatever that may mean. For example, for an integer dimension, the sampling should be give a higher integer for a higher value of the point, and each integer should be mapped to from an equally large interval. The mapping should be monotonic, but it does n...
def _sample(self, points: Iterable[float]) -> np.array: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_freq_map(min_freq, max_freq, num_freq, dtype=torch.float32):\n if num_freq > 1:\n step = float(max_freq - min_freq) / (num_freq - 1)\n map = torch.arange(start=min_freq,\n end=max_freq + step,\n step=step,\n dty...
[ "0.61208993", "0.584173", "0.584068", "0.5811303", "0.57602787", "0.5622546", "0.5544045", "0.5542533", "0.55280364", "0.54749644", "0.5441466", "0.5422386", "0.53600407", "0.535041", "0.53338057", "0.5314088", "0.5310131", "0.5296609", "0.5261473", "0.5245755", "0.5231321", ...
0.0
-1
Compute distance between point `a` and `b`.
def distance(self, a, b): if not (a in self and b in self): raise RuntimeError( "Can only compute distance for values within " "the space, not %s and %s." % (a, b) ) return abs(a - b)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def distance(a: Point, b: Point) -> float:\n return math.sqrt(math.pow(b.x - a.x, 2) + math.pow(b.y - a.y, 2))", "def distance(a, b):\n return math.sqrt((a.x - b.x) ** 2 + (a.y - b.y) ** 2)", "def dist(a: Point, b: Point):\n return (a.x - b.x) ** 2 + (a.y - b.y) ** 2", "def distance(a, b):\n ax, ...
[ "0.87905425", "0.8649233", "0.8631275", "0.85881203", "0.8557817", "0.8554046", "0.84688425", "0.84544575", "0.84541553", "0.84493816", "0.8407264", "0.8361453", "0.8357157", "0.8330243", "0.8312221", "0.8289565", "0.82590556", "0.81830233", "0.8173867", "0.81699646", "0.8150...
0.80485773
24
Compute distance between point `a` and `b`.
def distance(self, a, b): if not (a in self and b in self): raise RuntimeError( "Can only compute distance for values within " "the space, not %s and %s." % (a, b) ) return abs(a - b)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def distance(a: Point, b: Point) -> float:\n return math.sqrt(math.pow(b.x - a.x, 2) + math.pow(b.y - a.y, 2))", "def distance(a, b):\n return math.sqrt((a.x - b.x) ** 2 + (a.y - b.y) ** 2)", "def dist(a: Point, b: Point):\n return (a.x - b.x) ** 2 + (a.y - b.y) ** 2", "def distance(a, b):\n ax, ...
[ "0.87905425", "0.8649233", "0.8631275", "0.85881203", "0.8557817", "0.8554046", "0.84688425", "0.84544575", "0.84541553", "0.84493816", "0.8407264", "0.8361453", "0.8357157", "0.8330243", "0.8312221", "0.8289565", "0.82590556", "0.81830233", "0.8173867", "0.81699646", "0.8150...
0.80485773
23
Compute distance between category `a` and `b`. As categories have no order the distance between two points is one if a != b and zero otherwise.
def distance(self, a, b): if not (a in self and b in self): raise RuntimeError( "Can only compute distance for values within " "the space, not {} and {}.".format(a, b) ) return 1 if a != b else 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def distance(self, a, b):\n raise NotImplementedError()", "def distance(a, b):\n return (np.sum((a - b)**2))**0.5", "def _get_distance(a, b):\n return np.sqrt(np.sum((a - b) ** 2))", "def distance(self, a, b):\n if not (a in self and b in self):\n raise RuntimeError(\n ...
[ "0.74527526", "0.72190017", "0.7165402", "0.71044624", "0.71044624", "0.70646995", "0.7046133", "0.7039775", "0.70294005", "0.7023822", "0.69872755", "0.6969546", "0.69426394", "0.6939381", "0.69325614", "0.6914655", "0.69138074", "0.6841587", "0.68380123", "0.6811124", "0.67...
0.738239
1
Create Space from yaml configuration file
def from_yaml(cls, yml_path, namespace=None): with open(yml_path, "rb") as f: config = yaml.safe_load(f) dimension_classes = { "real": Real, "integer": Integer, "categorical": Categorical, } # Extract space options for configuration file ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_spaces():\n\n data.load('spaces')\n\n mc.refresh()\n spaces.build_all()", "def create_from_config_file(cls, filename: str):\n return cls(load_yaml_config(filename))", "def from_yaml_file(cls, file_path: str) -> Config:\n return cls(**read_yaml_file(file_path))", "def __build...
[ "0.61021453", "0.6004595", "0.5776614", "0.57132703", "0.5713177", "0.56854945", "0.5599276", "0.558337", "0.5577561", "0.5522808", "0.5514774", "0.5510946", "0.550877", "0.54988605", "0.54711753", "0.5468979", "0.5460127", "0.54598165", "0.5451811", "0.54391384", "0.5436598"...
0.68350136
0
Check that `point` is within the bounds of the space.
def __contains__(self, point): for component, dim in zip(point, self.dimensions): if component not in dim: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def in_bounds(self, point):\n # Sanity checks\n # Check that point has same number of dimensions as graph\n if not len(point) == len(self.dimensions):\n raise Exception(\"Point has \" + str(len(point)) + \" dimensions, Coordination Space has \" + \\\n str(...
[ "0.82367134", "0.75510687", "0.75510687", "0.7515956", "0.733778", "0.7323389", "0.7273943", "0.7249308", "0.7240201", "0.7203518", "0.71979225", "0.7191839", "0.7185875", "0.71831864", "0.71480536", "0.71198404", "0.70960784", "0.70702505", "0.70666367", "0.7062213", "0.7005...
0.6499447
66
Initialize a new RoomsAPI object with the provided RestSession.
def __init__(self, session, object_factory): check_type(session, RestSession) super(RoomsAPI, self).__init__() self._session = session self._object_factory = object_factory
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, session):\n super(FlattrApi, self).__init__(session)\n self.things = ThingApi(session)\n self.users = UsersApi(session)\n self.authenticated = AuthenticatedApi(session)", "def __init__(self, session, object_factory):\n check_type(session, RestSession)\n\n ...
[ "0.679307", "0.6515915", "0.62667", "0.61397773", "0.6084046", "0.59742135", "0.5971231", "0.574573", "0.5721601", "0.5706232", "0.5695121", "0.56797236", "0.5664347", "0.565536", "0.5651602", "0.5627558", "0.5616114", "0.5610026", "0.55761427", "0.5553609", "0.5553567", "0...
0.8123158
0
List rooms. By default, lists rooms to which the authenticated user belongs. This method supports Webex Teams's implementation of RFC5988 Web Linking to provide pagination support. It returns a generator container that incrementally yields all rooms returned by the query. The generator will automatically request additi...
def list(self, teamId=None, type=None, sortBy=None, max=100, **request_parameters): check_type(teamId, basestring, optional=True) check_type(type, basestring, optional=True) check_type(sortBy, basestring, optional=True) check_type(max, int, optional=True) params = d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rooms(self):\n def closure(cur):\n cur.execute(\"\"\"\n SELECT id, name\n FROM rooms\n \"\"\")\n ret = [ ]\n for r in cur.fetchall():\n ret.append({ 'id': r[0], 'name': r[1] })\n return ret\n\n ret...
[ "0.66170746", "0.656405", "0.6349634", "0.6281349", "0.6194971", "0.60519725", "0.60398895", "0.59273934", "0.59112686", "0.58733684", "0.5784211", "0.57177186", "0.56996906", "0.56685275", "0.56449383", "0.5638717", "0.5617292", "0.5599116", "0.55918765", "0.55831164", "0.55...
0.59701645
7
Create a room. The authenticated user is automatically added as a member of the room.
def create(self, title, teamId=None, **request_parameters): check_type(title, basestring, optional=True) check_type(teamId, basestring, optional=True) post_data = dict_from_items_with_values( request_parameters, title=title, teamId=teamId, ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create(self):\n logging.warning(\n \"IRC back-end does not support explicit creation, joining room \"\n \"instead to ensure it exists.\"\n )\n self.join()", "def create_room(\n self,\n create_room_input: CreateRoomInput\n ) -> Room:\n\n ...
[ "0.715811", "0.71374714", "0.7127556", "0.6867746", "0.67646754", "0.6718954", "0.67005527", "0.66887605", "0.6638492", "0.6603553", "0.65979487", "0.65706354", "0.6538258", "0.6467851", "0.6394496", "0.63691133", "0.6357449", "0.6291464", "0.6245185", "0.6178198", "0.6146487...
0.6230635
19
Strip trailing whitespace, single/double quotes.
def strip(input_string): return input_string.strip().rstrip(";").strip('"').strip("'")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Unquote(s):\n if not hasattr(s, 'strip'):\n return s\n # Repeated to handle both \"'foo'\" and '\"foo\"'\n return s.strip(\"\\\"'\")", "def _strip_quotes(self, val):\n logger.debug('Strip quotes')\n val = val.strip()\n if val.startswith('\"') and val.endswith('\"'):\n r...
[ "0.70180315", "0.69947255", "0.69499624", "0.69499624", "0.6894769", "0.6873931", "0.6838233", "0.6808478", "0.6563723", "0.65390754", "0.653107", "0.65225065", "0.64773184", "0.64286363", "0.64263046", "0.64174694", "0.63844305", "0.6329962", "0.63104856", "0.62724406", "0.6...
0.6295502
19
Instance property to create a nicer message about time displaying
def pending_time(self): now = datetime.datetime.utcnow().replace(tzinfo=utc) timediff = now - self.time_requested return timediff
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def print_time(self):\n print('%.2d:%.2d:%.2d' % (self.hour, self.minute, self.second))", "def get_time(self):\n return ''", "def __str__(self):\n return \"({0}:{1}:{2})\".format(self.hours, self.minutes, self.seconds)", "def message(self):\n if self.display_time:\n ret...
[ "0.748221", "0.74466974", "0.7421563", "0.7367649", "0.73321766", "0.7283467", "0.7272275", "0.7228068", "0.7224602", "0.7125826", "0.70565146", "0.70461786", "0.6993525", "0.6972699", "0.6970753", "0.696878", "0.696878", "0.69265646", "0.691496", "0.69030607", "0.68999493", ...
0.0
-1
Instance property to create a nicer message about time displaying
def pending_time_descriptive(self): return get_time_descriptive(self.pending_time.seconds)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def print_time(self):\n print('%.2d:%.2d:%.2d' % (self.hour, self.minute, self.second))", "def get_time(self):\n return ''", "def __str__(self):\n return \"({0}:{1}:{2})\".format(self.hours, self.minutes, self.seconds)", "def message(self):\n if self.display_time:\n ret...
[ "0.748221", "0.74466974", "0.7421563", "0.7367649", "0.73321766", "0.7283467", "0.7272275", "0.7228068", "0.7224602", "0.7125826", "0.70565146", "0.70461786", "0.6972699", "0.6970753", "0.696878", "0.696878", "0.69265646", "0.691496", "0.69030607", "0.68999493", "0.6897862", ...
0.6993525
12
Dynamic Range Compression Sets a midrange "loudness" threshold for your audio, and increases the volume (the gain) of the sounds around that threshold. It applies the greatest gain increase closest to the threshold, and the gain increase is lessened farther away from the threshold.
def drc(*text: str, sep=' ') -> str: return f'<amazon:effect name="drc">{sep.join(text)}</amazon:effect>.'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _augment_gain(audio, low=0.5, high=1.5):\n g = low + np.random.random_sample(1) * (high - low)\n return audio * g", "def _augment_gain(audio, low=0.25, high=1.25):\n gain = low + torch.rand(1) * (high - low)\n return audio * gain", "def compress(filename,threshold,ratio,makeup,attack,release,wo...
[ "0.6633549", "0.655255", "0.5757159", "0.57314086", "0.5689664", "0.5555696", "0.553565", "0.55150867", "0.5510067", "0.547542", "0.5461598", "0.54085445", "0.5372319", "0.5364295", "0.5308415", "0.5275327", "0.52704716", "0.52350235", "0.523305", "0.5220588", "0.5207565", ...
0.0
-1
Init for our hash. Accepts a string to determine which hash the table uses.
def __init__(self, bucket_number, function='fnv'): self.bucket_list = [] self.function = function self.bucket_number = bucket_number for i in range(bucket_number): self.bucket_list.append(bst.BinarySearchTree())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, hash_str, salt):\n self.hash = hash_str\n self.salt = salt", "def __init__(self, str=None, hashfunc=None):\r\n self.str = str\r\n if hashfunc:\r\n self.hashfunc = hashfunc", "def init_hash_state(self) -> None:\n self.hash_states = [hashlib.sha1()]...
[ "0.70206445", "0.68846756", "0.64692074", "0.6408315", "0.6404627", "0.63826203", "0.63576216", "0.635641", "0.6273358", "0.6207031", "0.61708987", "0.61591554", "0.61548173", "0.6126525", "0.60927624", "0.60390437", "0.6036534", "0.6029085", "0.600239", "0.59753346", "0.5969...
0.0
-1
Initializes dictionary object (d) with the channel information
def createDict( self ): self.d = {} self.d['comp1'] = compensation_channel('comp1', 0, (-479.0, -10.0)) self.d['comp2'] = compensation_channel('comp2', 1, (-479.0, -10.0)) self.addCalibration()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, parent): \n self.signal_group_name = _qstring(parent.rhd)\n self.signal_group_header = _qstring(parent.rhd)\n self.signal_group_enabled = (np.int16(struct.unpack('h', parent.rhd.read(2)))[0] == 1)\n self.number_of_channels = np.int16(struct.unpack('h', parent.rhd.re...
[ "0.6535169", "0.637431", "0.637431", "0.637431", "0.637431", "0.6250781", "0.6171718", "0.615228", "0.6146035", "0.6119663", "0.6070804", "0.60406977", "0.6022355", "0.60157865", "0.5981385", "0.592983", "0.5904195", "0.58722705", "0.58494323", "0.58492035", "0.5838922", "0...
0.6271348
5
Create dataset for train or test
def create_dataset(data_path, batch_size=32, num_parallel_workers=1): # Define dataset mnist_ds = ds.MnistDataset(data_path) resize_height, resize_width = 32, 32 rescale = 1.0 / 255.0 shift = 0.0 rescale_nml = 1 / 0.3081 shift_nml = -1 * 0.1307 / 0.3081 # Define map operations resi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def make_dataset():\n\n\tnumberOfTrials = dataset_params.num_of_samples\n\tnumberOfTrials_train = int(numberOfTrials*0.8)\n\tnumberOfTrials_test = int(numberOfTrials*0.2)\n\n\tprint(\"==================================================\")\n\tprint(\"1. Generating Train images ......\")\n\tprint(\"\\nTrain image per...
[ "0.81030655", "0.7796734", "0.7533023", "0.74781936", "0.74348694", "0.74334043", "0.74278116", "0.742271", "0.7412803", "0.7412143", "0.7400019", "0.7354982", "0.7333059", "0.7330909", "0.73254555", "0.7294101", "0.72934467", "0.72837937", "0.72836006", "0.72312605", "0.7219...
0.0
-1
The geolocation where the resource lives
def location(self) -> str: return pulumi.get(self, "location")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_location(self):\n\t\treturn self.location", "def get_location(self):\n return self.location", "def get_location(self):\n return self.location", "def get_location(self):\r\n return self.__location", "def get_location(self):\r\n return None", "def getLocation(self):\n ...
[ "0.816298", "0.7999453", "0.79540074", "0.7945644", "0.78364915", "0.77626437", "0.7730134", "0.7681095", "0.7624169", "0.76093256", "0.76093256", "0.75724584", "0.75544393", "0.7547195", "0.75165695", "0.74507827", "0.74267685", "0.7406362", "0.7359666", "0.73106575", "0.729...
0.7419033
21
Provisioning state of the resource.
def provisioning_state(self) -> str: return pulumi.get(self, "provisioning_state")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def provisioning_state(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"provisioning_state\")", "def provisioning_state(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"provisioning_state\")", "def provisioning_state(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"...
[ "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.77640796", "0.76253724", "0.7464884", "0.7464884", "0.7464884", "0.7464884", "0.7464884", "0.7355461", "0...
0.78685683
12
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
def type(self) -> str: return pulumi.get(self, "type")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def resource_type(self) -> Optional[str]:\n return pulumi.get(self, \"resource_type\")", "def resource_type(self) -> Optional[str]:\n return pulumi.get(self, \"resource_type\")", "def resource_type(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"resource_type\")", "def ...
[ "0.7919168", "0.7919168", "0.7867012", "0.7867012", "0.7867012", "0.7867012", "0.7867012", "0.7708783", "0.75535566", "0.72827524", "0.7059498", "0.6979848", "0.69217116", "0.6870447", "0.67292213", "0.6705338", "0.66540825", "0.6646509", "0.65511703", "0.6543059", "0.6543059...
0.66400075
36
Get list of requirements required for testing.
def tests_require(): return reqs("test-requirements.txt")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def requirements(self):\n requirements = []\n return requirements", "def get_requirement_strings(self):\n opts = self.get_options()\n return (\n opts.requirements,\n opts.timeout_requirements,\n opts.cov_requirements,\n opts.unittest2_requirements,\n )", "def requires...
[ "0.8143817", "0.7925306", "0.75810635", "0.7515836", "0.7427072", "0.7426477", "0.73551005", "0.72947115", "0.7273452", "0.725828", "0.72017884", "0.712217", "0.7058086", "0.70427316", "0.7042539", "0.6995018", "0.6946441", "0.69353265", "0.6924293", "0.6864785", "0.68276966"...
0.7735091
2
deserializes the JSON file to __objects (only if the JSON file (__file_path) exists
def reload(self): from models.base_model import BaseModel from models.user import User from models.amenity import Amenity from models.city import City from models.place import Place from models.review import Review from models.state import State dict_reloa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _load(self):\n if self.file_path.exists():\n with open(self.file_path) as fid:\n self.data = json.load(fid)", "def loadFromFile(self, filename):\n with open(filename, 'r') as file:\n raw_data = file.read()\n # data = json.loads(raw_data, encoding=...
[ "0.72208375", "0.7105535", "0.7019269", "0.7000893", "0.6968303", "0.6908599", "0.69005877", "0.6852512", "0.6848005", "0.68372345", "0.68079346", "0.6798459", "0.67054045", "0.67029375", "0.6683331", "0.6681386", "0.6681264", "0.6674379", "0.66252136", "0.662111", "0.6612608...
0.0
-1
Add starter data and initialize Graphene test client.
def setUp(self): init_db() self.client = Client(schema)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setUp(self):\n self.client = api.Client(config.get_config(), api.json_handler)", "def setUp(self):\n\n self.client = app.test_client()\n app.config['Testing'] = True\n app.config['SECRET_KEY'] = 'test'\n connect_to_db(app, db_uri='postgresql:///testdb', echo=False)\n ...
[ "0.6552185", "0.6536739", "0.64639956", "0.64411426", "0.63932127", "0.6361681", "0.63046134", "0.6286199", "0.62431985", "0.62431985", "0.62431985", "0.62431985", "0.62271273", "0.6216018", "0.6168232", "0.6166699", "0.6164915", "0.61625856", "0.61587024", "0.6155273", "0.61...
0.6519127
2
Generate JSON results for the given file using the given parser name.
def gen_results(self, parser_name, input_file_path): report = mwcp.run(parser_name, input_file_path) results = report.metadata results[INPUT_FILE_PATH] = convert_to_unicode(input_file_path) return report, results
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _runParser(self):\n with open(self.var('filePath')) as f:\n return json.load(f)", "def make_cached_json(file_name):\n result = None\n path = clean_path(file_name)\n working_directory = os.path.split(os.path.abspath(file_name))[0]\n file_type_switch = \"-s\" if is_sats_file(file_...
[ "0.60404766", "0.5872082", "0.57333314", "0.5680304", "0.557381", "0.5521004", "0.5514256", "0.54829365", "0.54329777", "0.5430251", "0.540799", "0.53346336", "0.5321106", "0.53204733", "0.53102285", "0.53004473", "0.5294018", "0.52735364", "0.52697873", "0.5262067", "0.52523...
0.52850294
17
Get a random element from the set.
def getRandom(self) -> int: return random.choice(list(self.d.keys()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getRandom(self):\n return self.nums[random.randint(0, len(self.nums) - 1)]\n\n # Your RandomizedSet object will be instantiated and called as such:\n # obj = RandomizedSet()\n # param_1 = obj.insert(val)\n # param_2 = obj.remove(val)\n # param_3 = obj.getRandom()", "...
[ "0.77060276", "0.738916", "0.7296881", "0.72187954", "0.6871744", "0.68453854", "0.68330806", "0.67740154", "0.67226046", "0.6703282", "0.6665089", "0.66356236", "0.66217655", "0.6612035", "0.66000897", "0.6567767", "0.6477719", "0.6462421", "0.64428514", "0.64162946", "0.640...
0.60399026
59
Convert duration to minutes.
def to_minutes(delta): return int(math.ceil(delta.total_seconds() / 60))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def minutes(duration):\n if not duration:\n return 0\n try:\n h, m, s = duration_parts(duration)\n return m\n except (ValueError, TypeError):\n return 0", "def _to_minutes(seconds):\n return '%d:%d' % divmod(seconds, 60)", "def minutes(self):\n return int(int(self...
[ "0.79369146", "0.7450576", "0.70975643", "0.70318717", "0.70188636", "0.6926553", "0.68432677", "0.6826539", "0.6716301", "0.6709752", "0.6682952", "0.66685027", "0.6662202", "0.66372496", "0.6631301", "0.6625946", "0.6624351", "0.6525788", "0.6496753", "0.64141756", "0.63964...
0.73135906
2
average ratings of recommended items.
def usefulness_score(model, test, train, k=20): distances = [] test = test.tocsr() train = train.tocsr() (x, y, z) = sp.find(train.T) counts = np.bincount(x) counts += 1 sums = np.bincount(x, weights=z) averages = sums / counts for user_id, row in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_average_rating(self):\n count = 0\n total = 0\n ratings_length = len(self.ratings)\n if ratings_length > 0:\n for rating in self.ratings:\n count += 1\n total += rating\n average = total / count\n return average\n ...
[ "0.79416865", "0.79322463", "0.79257905", "0.78109044", "0.76923376", "0.7652011", "0.7647683", "0.7459783", "0.7344439", "0.7205422", "0.71367526", "0.7107077", "0.70316845", "0.69486016", "0.6942192", "0.68767524", "0.68764955", "0.66894394", "0.6679569", "0.663087", "0.661...
0.0
-1
The identity_block is the block that has no conv layer at shortcut Arguments
def identity_block(input_tensor, kernel_size, filters, stage, block, use_bias=True, train_bn=True): nb_filter1, nb_filter2, nb_filter3 = filters conv_name_base = 'res' + str(stage) + block + '_branch' bn_name_base = 'bn' + str(stage) + block + '_branch' x = KL.Conv2D(nb_filter1, (1, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def identity_block(self, input_tensor, filters, activation, stage, block, start_with_batch_norm = True):\n\n # Set the naming convention\n conv_name_base = 'res' + str(stage) + block + '_branch'\n batch_norm_name_base = 'batch_norm' + str(stage) + block + '_branch'\n\n x_shortcut = inpu...
[ "0.74175805", "0.72833806", "0.721297", "0.72129005", "0.7208813", "0.7195086", "0.71648645", "0.715019", "0.71299523", "0.7112358", "0.71097684", "0.7082801", "0.70772374", "0.70768106", "0.7070779", "0.7029491", "0.7016346", "0.70136523", "0.7007465", "0.69965816", "0.69965...
0.7028228
16
conv_block is the block that has a conv layer at shortcut Arguments
def conv_block(input_tensor, kernel_size, filters, stage, block, strides=(2, 2), use_bias=True, train_bn=True): nb_filter1, nb_filter2, nb_filter3 = filters conv_name_base = 'res' + str(stage) + block + '_branch' bn_name_base = 'bn' + str(stage) + block + '_branch' x = KL.Conv2D(nb_filte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def conv_block(self, output_channel, filter_, activate):\n return self.add_layer(conv_block, output_channel, filter_, activate)", "def conv_block(input, filters, phase=phase):\r\n\r\n conv_block = tf.layers.conv2d(\r\n inputs=input,\r\n filters=filters,\r\n kernel_s...
[ "0.75353014", "0.74855703", "0.73647773", "0.72222644", "0.7209214", "0.720638", "0.7202829", "0.7185739", "0.71778566", "0.7174462", "0.71601367", "0.71582484", "0.7157478", "0.71517885", "0.7130951", "0.71057576", "0.70994836", "0.707301", "0.70585597", "0.7031059", "0.7030...
0.699667
23
Build Mask RCNN architecture.
def build(self, mode, config): assert mode in ['training', 'inference'] # Image size must be dividable by 2 multiple times h, w = config.IMAGE_SHAPE[:2] if h / 2**6 != int(h / 2**6) or w / 2**6 != int(w / 2**6): raise Exception("Image size must be dividable by 2 at least 6 t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_fpn_mask_graph(rois, feature_maps, image_meta,\n pool_size, num_classes, train_bn=True):\n # ROI Pooling\n # Shape: [batch, boxes, pool_height, pool_width, channels]\n x = PyramidROIAlign([pool_size, pool_size],\n name=\"roi_align_mask\")([rois, ima...
[ "0.6787613", "0.611092", "0.5961879", "0.5958428", "0.58925134", "0.5794323", "0.5762008", "0.5750803", "0.57246023", "0.569804", "0.5694213", "0.5659109", "0.56442976", "0.56096065", "0.55933833", "0.5586075", "0.55738956", "0.5570607", "0.5562423", "0.5553552", "0.55461633"...
0.53998053
36
For add new book
def add_new_book(self, new_book): self.books_all.append(new_book)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_book(self, book):\n\n try:\n with self._db as db:\n cur = db.cursor()\n cur.execute('INSERT INTO books values (?, ?, ?)', (book.title, book.author, book.read))\n book.id = cur.lastrowid\n except sqlite3.IntegrityE...
[ "0.8118395", "0.80809003", "0.7858872", "0.78211427", "0.76679176", "0.7624476", "0.7587581", "0.7506881", "0.74814856", "0.7461347", "0.74372035", "0.74338716", "0.73469067", "0.7312659", "0.7274921", "0.722826", "0.7204551", "0.71257734", "0.708358", "0.7065442", "0.7060044...
0.7671657
4
Converts timestamp column from a long type to timestamp. Input value is in milliseconds, thus it needs to be converted to seconds (divided by 1000).
def _convert_timestamp(self, df: DataFrame, timestamp_column: str = "ts") -> DataFrame: return df.withColumn(timestamp_column, (col(timestamp_column) / 1000).cast(TimestampType()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def datetime2timestamp(value, millis=False):\n if millis:\n return int(time.mktime(value.timetuple()))\n else:\n return int(round((time.mktime(value.timetuple()) +\n value.microsecond / 1E6) * 1000))", "def timestamp_to_unix(timestamp):\n return timestamp / 1e6", ...
[ "0.6878274", "0.6785681", "0.6769475", "0.66956323", "0.66773045", "0.66662997", "0.6619989", "0.6566955", "0.6550433", "0.65172493", "0.65029895", "0.6477259", "0.6468079", "0.6465461", "0.642244", "0.64138836", "0.63900125", "0.6280022", "0.6252342", "0.62382364", "0.622837...
0.7580964
0
Compare two PartialGridAlignment objects.
def __cmp__(self, x): if self.score < x.score: return -1 elif self.score == x.score: return 0 else: return 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aligned_grid(self, other) -> bool:\n w, s, e, n = self.bounds\n w1, s1, e1, n1 = other.raster.bounds\n dx = (w - w1) % self.res[0]\n dy = (n - n1) % self.res[1]\n return (\n (\n self.crs is None\n or other.raster.crs is None\n ...
[ "0.6936937", "0.6354454", "0.6346635", "0.6312335", "0.6265064", "0.62369865", "0.6207837", "0.61692727", "0.61520594", "0.6150899", "0.6136405", "0.60283035", "0.5959483", "0.59593314", "0.59550947", "0.594672", "0.59161127", "0.5872532", "0.585373", "0.5828621", "0.5823888"...
0.0
-1
Converts a timestamp + offset into a datetime.datetime. Useful for dealing with the output of porcelain commands, which provide times as timestamp and offset strings.
def timestamp_offset_to_datetime(timestamp, offset): timestamp = int(timestamp) tz = FixedOffsetTZ.from_offset_string(offset) return datetime.datetime.fromtimestamp(timestamp, tz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def to_datetime(timestamp: str) -> datetime.datetime:\n if timestamp is None:\n return\n\n if timestamp.endswith(\"+00:00\"):\n timestamp = timestamp[:-6]\n\n try:\n return datetime.datetime.strptime(timestamp, \"%Y-%m-%dT%H:%M:%S.%f\")\n except ValueError:\n # wonky datetim...
[ "0.69252026", "0.6691121", "0.65853983", "0.6559991", "0.6477946", "0.64321554", "0.6401786", "0.62645805", "0.6261199", "0.62557375", "0.62398034", "0.6232178", "0.6201829", "0.61250526", "0.6098087", "0.6086545", "0.6069733", "0.60635525", "0.6057501", "0.60528094", "0.6042...
0.7789904
0
Converts a tzaware datetime.datetime into a string in git format.
def datetime_string(dt): return dt.strftime('%Y-%m-%d %H:%M:%S %z')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def date2str(datetime_object):\n if datetime_object is None:\n return 'None'\n return datetime_object.strftime('%Y-%m-%dT%H:%M:%S.%f')[0:-3]", "def convert_datetime_to_string(dt):\n\treturn '{0}-{1}-{2}'.format(dt.year, dt.month, dt.day)", "def convert_datetime_to_string(dt):\n\treturn...
[ "0.69275874", "0.67902523", "0.67902523", "0.67149526", "0.6627688", "0.65648395", "0.6546482", "0.65299547", "0.6492545", "0.6484077", "0.645023", "0.64294684", "0.6411614", "0.6383983", "0.63636947", "0.63354784", "0.6320018", "0.6265995", "0.6263441", "0.6256907", "0.62266...
0.6583267
5
generate a random hit from this state, the proyection H matrix and the variance resolution matrix V
def randomhit(state,H,V): x = state.vec zrun = state.zrun m0 = H*x sm = Random.cov(V) mm = m0+sm hit = KFData(mm,V,zrun) debug('randomhit x,hit ',(x,hit)) return hit
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sample_v(self, h):\n return self.rng.binomial(n=1, p=self.mean_v(h),\n dtype=theano.config.floatX)", "def sample_v_given_h(self, h0_sample):\n v1_mean = self.propdown(h0_sample)\n xp = cuda.get_array_module(v1_mean.data)\n if self.real == 0:\n if xp == cuda.c...
[ "0.6411542", "0.6061187", "0.6024674", "0.59152", "0.5880243", "0.5815088", "0.5758479", "0.57309395", "0.55401146", "0.5513159", "0.5511621", "0.5508289", "0.5473531", "0.5429661", "0.53842384", "0.53800035", "0.53630644", "0.5359041", "0.5322242", "0.5314814", "0.5312235", ...
0.79685223
0
propagate this state to a zrun position
def propagate(self,state,zrun): #print ' propagate state ',state #print ' propagate at ',zrun ok = self.validstep(state,zrun) if (not ok): warning( "kfmodel.propagate not possible ",(zrun,state.vec)) return ok,None,None,None x = KFVector(state.vec) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def move_stage_to_z(self, z):\n raise NotImplementedError", "def update_state(self, z: tf.Tensor, a: tf.Tensor):\n super().update_state(z=z, a=a)", "def update_state(self, z: tf.Tensor, a: tf.Tensor):\n super().update_state(z=z, a=a)", "def setZ(self, z):\n self.position.setZ(z)",...
[ "0.6838862", "0.65797746", "0.65797746", "0.6541429", "0.653162", "0.6329638", "0.62473416", "0.61256355", "0.60926443", "0.6026832", "0.5968566", "0.5911952", "0.5893001", "0.5869505", "0.58342373", "0.5824474", "0.5784551", "0.5775256", "0.57602835", "0.5749062", "0.5739277...
0.5873652
13
Builds a Game object from a protobuf object.
def FromProto(cls, proto_obj): if not proto_obj.last_update_source: raise GameModelError('No update source specified in Game creation.') # TODO(P2): refactor all constructors into one base function like in tweets. return Game(id_str=proto_obj.id_str, teams=[Team.FromProto(tm) for tm in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FromProto(cls, proto_obj):\n source = GameSource()\n source.type = proto_obj.type\n if proto_obj.update_time_utc_str:\n source.update_date_time = datetime.strptime(\n proto_obj.update_time_utc_str, tweets.DATE_PARSE_FMT_STR)\n else:\n source.update_date_time = datetime.now()\n ...
[ "0.7095916", "0.6653907", "0.6490676", "0.6281863", "0.6212693", "0.6212612", "0.6204277", "0.61502546", "0.60758984", "0.5965297", "0.59381586", "0.5908489", "0.5900754", "0.58964735", "0.5844804", "0.583296", "0.57460886", "0.57450366", "0.5744782", "0.56698185", "0.566475"...
0.7879021
0
Return a FormSet for the given form class with parameters.
def formset_factory(form, params=[], equip_types=[], up=[], down=[], front_or_back=[], formset=BaseFormSet, extra=1, can_order=False, can_delete=False, max_num=None): attrs = {'form': form, 'extra': extra, 'max_num': max_num, 'can_order': can_order, 'can_delete': can_delete, 'params...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_formset(self, formset_class=None):\n if formset_class is None:\n formset_class = self.get_formset_class()\n return formset_class(**self.get_formset_kwargs())", "def get_form_class(self):\n\t\treturn formset_factory(super(FormsetMixin, self).get_form_class(), **self.get_formset_kw...
[ "0.8216712", "0.75528926", "0.74182224", "0.73028827", "0.71780187", "0.6981912", "0.6382939", "0.63791573", "0.6367423", "0.63389736", "0.6310523", "0.62195796", "0.6202451", "0.61496586", "0.6082642", "0.6057852", "0.59928834", "0.5950197", "0.5946454", "0.58444566", "0.583...
0.7008882
5
Return the populated namespace from argparse.
def options(): parser = argparse.ArgumentParser(description="Pretty Print JSON.") parser.add_argument('-i', '--indent', type=int, default=4, metavar='N', help="Indent output by N spaces.") parser.add_argument("files", action="extend", nargs='*', default=[], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def parse_args(self, args=None, namespace=None):\n # This will call our parse_known_args below, so don't use setup_logging.\n namespace = argparse.ArgumentParser.parse_args(\n self, args=args, namespace=namespace)\n return namespace", "def parse() -> argparse.Namespace:\n parse...
[ "0.7082985", "0.66485065", "0.64040184", "0.6375172", "0.6333843", "0.63212335", "0.63212335", "0.63212335", "0.63212335", "0.63212335", "0.63212335", "0.63212335", "0.63212335", "0.63212335", "0.63212335", "0.62430793", "0.62143445", "0.61504745", "0.60699105", "0.6064233", ...
0.0
-1
Make a colour map for a list of colours aligned to indexes.
def make_colour_map(colours, indexes=None, size=256, gradient=True): if not indexes: # If indexes is not set, return an even continuous distribution. colour_array = spectra.range(colours, size) # Convert of Color objects to 2D numpy array of rgb and return return np.asarray([c.rgb f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getColorMap(colors):\n # Normalise RGBs\n norm_colors = []\n for color in colors:\n norm_colors.append([val / 255. for val in color])\n # create color map\n cmap = cols.ListedColormap(norm_colors)\n\n return cmap", "def make_colormap(colors):\n#-------------------------\n from mat...
[ "0.71582067", "0.6646418", "0.6571882", "0.6479248", "0.64590627", "0.64514077", "0.64045495", "0.6383402", "0.6321298", "0.6268121", "0.6257626", "0.6245874", "0.62185246", "0.61921257", "0.6183243", "0.6151452", "0.6137637", "0.6127796", "0.6126156", "0.6123318", "0.6123294...
0.77481097
0
Takes a list of colours and returns the list with required number of colours instead.
def split_colours(colours_list, colours_required): colour_range = spectra.range(colours_list, colours_required) return [colour.hexcode for colour in colour_range]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def generate_random_colours_list(rng: random.Random, size: int) -> List[TupleInt3]:\n return [random_colour(rng) for _ in range(size)]", "def get_colors(num_colors, alpha):\n cs = sns.color_palette(palette=\"colorblind\", n_colors=num_colors)\n cs = [list(c) for c in cs]\n for i in range(len(cs)):\n ...
[ "0.7342117", "0.7294116", "0.7182014", "0.7082192", "0.7058622", "0.704261", "0.69907296", "0.6976062", "0.682924", "0.67590594", "0.67538124", "0.67242867", "0.6702344", "0.667263", "0.6647779", "0.6645342", "0.662211", "0.6605042", "0.6586473", "0.65812", "0.6541527", "0....
0.78584135
0
Returns an iterator over module parameters bounds. This is typically passed to an optimizer.
def parameter_bounds(self): for name, bound in self.named_parameter_bounds(): yield bound
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def named_parameter_bounds(self):\n for name, _ in self.named_parameters():\n yield name, self.bound_for(name)", "def get_params_bounds(self) -> np.array:\n pass", "def get_bounds_parameters(self):\n bounds = []\n bounds += self.var_noise.bounds\n bounds += self.me...
[ "0.6944853", "0.6371932", "0.6309122", "0.6135556", "0.6112327", "0.6099764", "0.6099764", "0.59873426", "0.5923317", "0.59019965", "0.5893985", "0.5816222", "0.58075964", "0.57942444", "0.5775512", "0.5768944", "0.5759615", "0.5757031", "0.57247925", "0.5711686", "0.56990564...
0.77966136
0
Builds the full name of the file
def create_motion_name(test_name, sensor_code, code_suffix=""): return "%s-%s-%s" % (test_name, sensor_code, code_suffix)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_base_filename(self):\n if self.stream:\n self.stream.close()\n self.stream = None\n\n # remove old suffix\n # if self.suffix_time != \"\":\n # index = self.baseFilename.find(\".\" + self.suffix_time)\n # if index == -1:\n # i...
[ "0.7688384", "0.7681245", "0.7602168", "0.75787073", "0.73812616", "0.7375486", "0.73259836", "0.72116715", "0.7177973", "0.7175949", "0.7152201", "0.71312004", "0.7129534", "0.7118649", "0.7076776", "0.70450455", "0.70267975", "0.6972254", "0.6967449", "0.696592", "0.6954776...
0.0
-1
Given a sensor number, get the full sensor code (e.g. ACCXUB1L2CM)
def get_sensor_code_by_number(si, mtype, sensor_number, quiet=False): try: if 'Orientation' in si[mtype][sensor_number]: orientation = si[mtype][sensor_number]['Orientation'] else: orientation = "" return "%s%s-%s-%s-%s" % (mtype, orien...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_mtype_and_number_from_code(si, sensor_code):\n mtype_and_ory, x, y, z = sensor_code.split(\"-\")\n if mtype_and_ory[-1] in \"XYZ\" and \"ACCX\" not in si: # Need to support old sensor_file.json files.\n mtype = mtype_and_ory[:-1]\n else:\n mtype = mtype_and_ory\n for m_number in ...
[ "0.6114174", "0.6081098", "0.60362005", "0.59719944", "0.5961676", "0.5931604", "0.5912872", "0.5838602", "0.581133", "0.5781469", "0.5748429", "0.57476145", "0.5731862", "0.5715369", "0.57052994", "0.56911963", "0.56820226", "0.5533448", "0.5518685", "0.5494536", "0.5483481"...
0.67097616
0
Update the value of the field If the value is a bytestring, it will be converted to a regular string. Need to change the level of the container due to the grouping aspects.
def _update_field(self, tag_id, value): if tag_id in self._group_fields: # start a new level, an individual group doesn't # exist since we haven't read any information in yet. self._level_stack.append({ 'tag_id': tag_id, 'list': [], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _setValue(self, field, value):\n self._contents[field] = value", "def setValue(self, value):\n self.__value = projex.text.decoded(value) if isinstance(value, (str, unicode)) else value", "def _set_field(self, fieldname, bytestring, transfunc=None):\n\t\tif getattr(self, fieldname): # do not ...
[ "0.64183307", "0.6081679", "0.6061739", "0.60178983", "0.5991855", "0.5942914", "0.59366024", "0.5899628", "0.5875354", "0.57696724", "0.5721338", "0.57135147", "0.56905556", "0.56799984", "0.56368953", "0.5630703", "0.56305224", "0.5600901", "0.55848193", "0.5580552", "0.557...
0.64860743
0
Sets the accepting_change_of_payor_patients of this Provider. Is this provider accepting patients with a change of insurance?
def accepting_change_of_payor_patients(self, accepting_change_of_payor_patients): self._accepting_change_of_payor_patients = accepting_change_of_payor_patients
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def accepting_change_of_payor_patients(self):\n return self._accepting_change_of_payor_patients", "def accepting_referral_patients(self, accepting_referral_patients):\n\n self._accepting_referral_patients = accepting_referral_patients", "def accepting_referral_patients(self):\n return self...
[ "0.81596655", "0.64113116", "0.5650568", "0.5609455", "0.5514479", "0.55052185", "0.5447878", "0.53758496", "0.52465045", "0.5232603", "0.51941204", "0.5137867", "0.5106054", "0.509579", "0.5042704", "0.50409395", "0.5031977", "0.48755914", "0.4841059", "0.4805279", "0.478972...
0.8354428
0
Gets the accepting_medicaid_patients of this Provider. Is this provider accepting new Medicaid patients?
def accepting_medicaid_patients(self): return self._accepting_medicaid_patients
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def accepting_medicare_patients(self):\n return self._accepting_medicare_patients", "def accepting_medicaid_patients(self, accepting_medicaid_patients):\n\n self._accepting_medicaid_patients = accepting_medicaid_patients", "def accepting_medicare_patients(self, accepting_medicare_patients):\n\n ...
[ "0.8351409", "0.75266427", "0.70865035", "0.6695161", "0.62271285", "0.58951825", "0.5745062", "0.5610175", "0.5291136", "0.5169827", "0.51693964", "0.51048917", "0.5098063", "0.50601715", "0.50499624", "0.49383232", "0.47316113", "0.47221953", "0.47015244", "0.46744448", "0....
0.8709533
0
Sets the accepting_medicaid_patients of this Provider. Is this provider accepting new Medicaid patients?
def accepting_medicaid_patients(self, accepting_medicaid_patients): self._accepting_medicaid_patients = accepting_medicaid_patients
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def accepting_medicaid_patients(self):\n return self._accepting_medicaid_patients", "def accepting_medicare_patients(self, accepting_medicare_patients):\n\n self._accepting_medicare_patients = accepting_medicare_patients", "def accepting_medicare_patients(self):\n return self._accepting_me...
[ "0.8310506", "0.82925993", "0.7848563", "0.6782685", "0.6208196", "0.62054867", "0.60268235", "0.5834423", "0.56790364", "0.5312905", "0.46772236", "0.45662534", "0.45282894", "0.43834603", "0.43699387", "0.4328787", "0.4291378", "0.42851436", "0.4270466", "0.42604157", "0.42...
0.86944073
0
Gets the accepting_medicare_patients of this Provider. Is this provider accepting new Medicare patients?
def accepting_medicare_patients(self): return self._accepting_medicare_patients
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def accepting_medicaid_patients(self):\n return self._accepting_medicaid_patients", "def accepting_medicare_patients(self, accepting_medicare_patients):\n\n self._accepting_medicare_patients = accepting_medicare_patients", "def accepting_referral_patients(self):\n return self._accepting_re...
[ "0.7832462", "0.7429823", "0.66050273", "0.64173365", "0.59327596", "0.5794157", "0.53710836", "0.52353173", "0.5201602", "0.48856136", "0.48748273", "0.48045757", "0.4789002", "0.4779611", "0.470955", "0.46977386", "0.46526867", "0.46391538", "0.46332842", "0.46207216", "0.4...
0.8666592
0
Sets the accepting_medicare_patients of this Provider. Is this provider accepting new Medicare patients?
def accepting_medicare_patients(self, accepting_medicare_patients): self._accepting_medicare_patients = accepting_medicare_patients
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def accepting_medicare_patients(self):\n return self._accepting_medicare_patients", "def accepting_medicaid_patients(self, accepting_medicaid_patients):\n\n self._accepting_medicaid_patients = accepting_medicaid_patients", "def accepting_medicaid_patients(self):\n return self._accepting_me...
[ "0.8218358", "0.7663123", "0.75234234", "0.6524172", "0.6070909", "0.6036793", "0.58622074", "0.575687", "0.5484411", "0.49980512", "0.48011714", "0.47131", "0.46907145", "0.46152937", "0.45034105", "0.44753164", "0.44363523", "0.4386711", "0.43672583", "0.4321807", "0.429905...
0.86923015
0
Gets the accepting_referral_patients of this Provider. Is this provider accepting new patients via referrals?
def accepting_referral_patients(self): return self._accepting_referral_patients
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def accepting_referral_patients(self, accepting_referral_patients):\n\n self._accepting_referral_patients = accepting_referral_patients", "def accepting_medicare_patients(self):\n return self._accepting_medicare_patients", "def accepting_change_of_payor_patients(self):\n return self._accep...
[ "0.74147654", "0.66008466", "0.6323967", "0.6215599", "0.61638814", "0.568177", "0.5574192", "0.53112453", "0.5253179", "0.5157935", "0.5081478", "0.50062716", "0.49870095", "0.49520794", "0.4833878", "0.4814244", "0.48077837", "0.47792125", "0.47508228", "0.47310704", "0.470...
0.8560413
0
Gets the email of this Provider. Primary email address to contact the provider.
def email(self): return self._email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_email(self):\n return self.reference[REF_EMAIL_ADDRESS][REF_VALUE]", "def get_email(self):\n return self._email", "def get_email(self):\n return self.email", "def email(self) -> str:\n return pulumi.get(self, \"email\")", "def email(self) -> str:\n return pulumi.g...
[ "0.85839933", "0.85185355", "0.8396438", "0.8309576", "0.8309576", "0.8309576", "0.8297802", "0.82151115", "0.8189366", "0.8141872", "0.8016391", "0.8016391", "0.8016391", "0.8016391", "0.8009789", "0.79995304", "0.799558", "0.7907622", "0.78932434", "0.77603173", "0.776019",...
0.822001
8
Sets the email of this Provider. Primary email address to contact the provider.
def email(self, email): self._email = email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setEmail(self, email):\n self.email = email\n return self", "def email(self, email: str):\n\n self._email = email", "def email(self, email):\n if self.local_vars_configuration.client_side_validation and email is None: # noqa: E501\n raise ValueError(\"Invalid value f...
[ "0.8307702", "0.7966153", "0.7938874", "0.7632535", "0.76117605", "0.73798424", "0.72896713", "0.72896713", "0.7201135", "0.68979156", "0.6857429", "0.6841492", "0.68019295", "0.68019295", "0.68019295", "0.66998214", "0.66952854", "0.66908467", "0.668853", "0.668853", "0.6688...
0.7967354
5
Gets the first_name of this Provider. Given name for the provider.
def first_name(self): return self._first_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def first_name(self) -> str:\n return self._first_name", "def get_first_name(self) -> str:\n return self.first_name", "def get_first_name(self):\n return self._first_name", "def first_name(self):\n\n return self._first_name", "def firstname(self):\n return self._firstname...
[ "0.8655911", "0.86494875", "0.86493504", "0.8523783", "0.8077577", "0.8077577", "0.79806685", "0.7945557", "0.79381305", "0.79381305", "0.79381305", "0.79381305", "0.79381305", "0.79381305", "0.79381305", "0.79381305", "0.79381305", "0.79381305", "0.79381305", "0.79381305", "...
0.8511643
6
Sets the first_name of this Provider. Given name for the provider.
def first_name(self, first_name): self._first_name = first_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_first_name(self, first_name):\n self.first_name = first_name", "def first_name(self, name):\n self._first_name = name", "def firstname(self, firstname):\n\n self._firstname = firstname", "def firstname(self, firstname):\n\n self._firstname = firstname", "def first_name(s...
[ "0.8982874", "0.8805115", "0.8371484", "0.8371484", "0.83212227", "0.8266011", "0.81774473", "0.78048074", "0.7504995", "0.7504995", "0.7499563", "0.7392007", "0.7356012", "0.72051555", "0.71938217", "0.7183376", "0.7183376", "0.7183376", "0.70553", "0.70285594", "0.687983", ...
0.87768656
7
Sets the hios_ids of this Provider. List of HIOS ids for this provider
def hios_ids(self, hios_ids): self._hios_ids = hios_ids
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hios_ids(self):\n return self._hios_ids", "def ids(self, ids):\n self._ids = ids", "def set_dialogue_ids(self, dialogue_ids):\n self.dialogue_ids = dialogue_ids", "def invoice_ids(self, invoice_ids):\n\n self._invoice_ids = invoice_ids", "def setSiteids(self):\n self....
[ "0.67554146", "0.599445", "0.54778934", "0.54501504", "0.5378562", "0.5352853", "0.5327262", "0.52069724", "0.5185901", "0.5185901", "0.5184336", "0.5176307", "0.5173538", "0.50721693", "0.5042242", "0.49760228", "0.49495095", "0.48926428", "0.48742327", "0.4835189", "0.48069...
0.85972345
0
Sets the id of this Provider. National Provider Index (NPI) number
def id(self, id): self._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setID(self, idNb):\n self._id = idNb", "def _set_id(self):\n raise NotImplementedError()", "def set_NID(i, n=8):\n global NID, ppn\n ppn = n\n assert NID is None, \"Attempting to call set_NID() more than once\"\n msg = \"NID (%s) must be an even multiple of # processors per node (...
[ "0.6814431", "0.64768666", "0.6369556", "0.6362708", "0.6359354", "0.63298327", "0.6289278", "0.62645584", "0.61602944", "0.61378986", "0.6125757", "0.6109688", "0.6103821", "0.6051406", "0.59993416", "0.5963655", "0.59593403", "0.59480184", "0.5926589", "0.59206617", "0.5920...
0.0
-1
Gets the last_name of this Provider. Family name for the provider.
def last_name(self): return self._last_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_last_name(self) -> str:\n return self.last_name", "def last_name(self) -> str:\n return self._last_name", "def get_last_name(self):\n return self._last_name", "def last_name(self):\n\n return self._last_name", "def getLastName(self):\n return self.lastName", "de...
[ "0.8487861", "0.8458613", "0.8427048", "0.8378634", "0.80849373", "0.80849373", "0.80849373", "0.80849373", "0.80849373", "0.8052248", "0.7884879", "0.7842147", "0.77655554", "0.7728886", "0.7728886", "0.7632833", "0.7471157", "0.7436613", "0.7418428", "0.735359", "0.73226494...
0.83420086
7
Sets the last_name of this Provider. Family name for the provider.
def last_name(self, last_name): self._last_name = last_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_last_name(self, last_name):\n self.last_name = last_name", "def setLastname(self, lastname):\n self.lastname = lastname\n return self", "def lastname(self, lastname):\n\n self._lastname = lastname", "def last_name(self, name):\n self._last_name = name", "def last_...
[ "0.8549634", "0.823379", "0.8194949", "0.81068903", "0.7787103", "0.76724863", "0.76075417", "0.751607", "0.735118", "0.735118", "0.73341906", "0.72049874", "0.7190512", "0.7190512", "0.7190512", "0.7190512", "0.71878636", "0.7059478", "0.70299494", "0.6969128", "0.686551", ...
0.83542997
6
Gets the middle_name of this Provider. Middle name for the provider.
def middle_name(self): return self._middle_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def middle_name(self):\n if \"middleName\" in self._prop_dict:\n return self._prop_dict[\"middleName\"]\n else:\n return None", "def middlename(self):\n return self._middlename", "def middle_name(self, middle_name):\n\n self._middle_name = middle_name", "def ...
[ "0.8479157", "0.6851994", "0.6653873", "0.6653873", "0.658225", "0.6520915", "0.64157146", "0.64092106", "0.6398395", "0.6393046", "0.6339585", "0.6288379", "0.6272341", "0.6249176", "0.62491745", "0.62491745", "0.62292784", "0.61523753", "0.61467355", "0.61365354", "0.613490...
0.8608847
0
Sets the middle_name of this Provider. Middle name for the provider.
def middle_name(self, middle_name): self._middle_name = middle_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def payee_middle_name(self, payee_middle_name):\n\n self._payee_middle_name = payee_middle_name", "def treasurer_middle_name(self, treasurer_middle_name):\n\n self._treasurer_middle_name = treasurer_middle_name", "def candidate_middle_name(self, candidate_middle_name):\n\n self._candidate_...
[ "0.79608697", "0.7877122", "0.7724985", "0.7210402", "0.71954644", "0.6180188", "0.6132228", "0.6060889", "0.5801266", "0.56166095", "0.5507613", "0.54593617", "0.5427014", "0.5354608", "0.5326364", "0.5310287", "0.5285382", "0.5228315", "0.52202255", "0.5213844", "0.5186608"...
0.8711577
0
Gets the personal_phone of this Provider. Personal contact phone for the provider.
def personal_phone(self): return self._personal_phone
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def person_phone_number(self):\n return self._person_phone_number", "def phone(self):\n\n return self._phone", "def phone(self):\n return self._phone", "def phone(self):\n return self._phone", "def phone(self):\n return self._phone", "def getPhone(self):\n return...
[ "0.74871314", "0.7368214", "0.73669356", "0.73669356", "0.73669356", "0.72261417", "0.7114566", "0.6967669", "0.6851376", "0.6851376", "0.6769382", "0.67203826", "0.66922426", "0.66213703", "0.66213703", "0.6613566", "0.6580511", "0.65376514", "0.65056527", "0.6484117", "0.63...
0.8739574
0
Sets the personal_phone of this Provider. Personal contact phone for the provider.
def personal_phone(self, personal_phone): self._personal_phone = personal_phone
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def personal_phone(self):\n return self._personal_phone", "def phone(self, phone):\n if self.local_vars_configuration.client_side_validation and phone is None: # noqa: E501\n raise ValueError(\"Invalid value for `phone`, must not be `None`\") # noqa: E501\n\n self._phone = phone...
[ "0.72407657", "0.71980566", "0.71328664", "0.7069707", "0.69641495", "0.69641495", "0.69641495", "0.69641495", "0.69641495", "0.69044524", "0.67222255", "0.64398813", "0.6423223", "0.64139545", "0.6410621", "0.61690456", "0.61262506", "0.61262506", "0.61262506", "0.61262506", ...
0.8939184
0
Gets the phone of this Provider. Office phone for the provider
def phone(self): return self._phone
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def phone(self):\n\n return self._phone", "def getPhone(self):\n return self.phone", "def phone(self) -> str:\n return pulumi.get(self, \"phone\")", "def personal_phone(self):\n return self._personal_phone", "async def get_phone(self):\n\n e = await self.request.request(u...
[ "0.801868", "0.789015", "0.7618775", "0.75621945", "0.73607683", "0.72678405", "0.72153574", "0.7178365", "0.7178365", "0.7029525", "0.7029525", "0.70282304", "0.69655585", "0.68395156", "0.6791869", "0.6711199", "0.66896343", "0.66655177", "0.66633224", "0.65849686", "0.6562...
0.8027987
1
Gets the presentation_name of this Provider. Preferred name for display (e.g. Dr. Francis White may prefer Dr. Frank White)
def presentation_name(self): return self._presentation_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def preferred_name(self):\n if \"preferredName\" in self._prop_dict:\n return self._prop_dict[\"preferredName\"]\n else:\n return None", "def get_display_name(self):\n return self.display_name", "def display_name(self) -> Optional[str]:\n return pulumi.get(self...
[ "0.7633869", "0.7357189", "0.7339239", "0.7339239", "0.7339239", "0.7316367", "0.7272527", "0.7222847", "0.72041786", "0.72041786", "0.72041786", "0.72041786", "0.72041786", "0.72041786", "0.72041786", "0.72041786", "0.72041786", "0.72041786", "0.72041786", "0.72041786", "0.7...
0.79131824
0
Sets the presentation_name of this Provider. Preferred name for display (e.g. Dr. Francis White may prefer Dr. Frank White)
def presentation_name(self, presentation_name): self._presentation_name = presentation_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def presentation_name(self):\n return self._presentation_name", "def provider_display_name(self, provider_display_name: str):\n\n self._provider_display_name = provider_display_name", "def display_name(self, display_name):\n self._display_name = display_name", "def display_name(self, dis...
[ "0.69687295", "0.6811764", "0.6774951", "0.6774951", "0.6774951", "0.6774951", "0.6774951", "0.6774951", "0.6702381", "0.66715515", "0.6649812", "0.6649812", "0.6649812", "0.6649812", "0.6649812", "0.6649812", "0.64161426", "0.62105805", "0.60237426", "0.5936634", "0.59122425...
0.7787901
0
Gets the specialty of this Provider. Name of the primary Specialty
def specialty(self): return self._specialty
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __str__(self):\n return self.specialty", "def getName(self):\n\t\treturn self.name", "def get_specialist(self, name):\n\n specialist = Specialist.query.filter_by(name=name).first()\n return specialist", "def getName(self):\r\n return self.name", "def getName(self):\n ...
[ "0.7031236", "0.63195586", "0.63184035", "0.6294711", "0.6277198", "0.6277198", "0.6277198", "0.6277198", "0.6277198", "0.6277198", "0.6277198", "0.6277198", "0.62499064", "0.6247129", "0.6247129", "0.6247129", "0.62140924", "0.62140924", "0.62140924", "0.62140924", "0.621409...
0.7805985
1
Sets the specialty of this Provider. Name of the primary Specialty
def specialty(self, specialty): self._specialty = specialty
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def specialty(self):\n return self._specialty", "def specialty(self):\n return self._specialty", "def __str__(self):\n return self.specialty", "def create_specialty(spec_data):\n return get_or_create_object(spec_data, Specialty)", "def save(self, *args, **kwargs):\n self.enti...
[ "0.64847815", "0.64847815", "0.6163448", "0.57786053", "0.5567479", "0.5440787", "0.5327372", "0.53220373", "0.52232873", "0.52051574", "0.51814526", "0.51814026", "0.5135494", "0.5135494", "0.5135494", "0.5135494", "0.51307726", "0.5092962", "0.5088856", "0.5083241", "0.5077...
0.812275
1
Gets the street_line_1 of this Provider. First line of the provider's street address.
def street_line_1(self): return self._street_line_1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def street_line_2(self):\n return self._street_line_2", "def street_address1(self) -> str:\n return pulumi.get(self, \"street_address1\")", "def street_line_1(self, street_line_1):\n\n self._street_line_1 = street_line_1", "def address_line_1(self):\n return \"{} {} {}\".format(\n...
[ "0.78273904", "0.76089126", "0.7210238", "0.6808552", "0.6569747", "0.65383446", "0.6502629", "0.6463671", "0.6457037", "0.64481616", "0.64260757", "0.6196959", "0.6196959", "0.6193646", "0.6089586", "0.6072236", "0.6071401", "0.60152525", "0.5988654", "0.5970584", "0.5935851...
0.89517784
0
Gets the street_line_2 of this Provider. Second line of the provider's street address.
def street_line_2(self): return self._street_line_2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def street_address2(self) -> Optional[str]:\n return pulumi.get(self, \"street_address2\")", "def street_line_2(self, street_line_2):\n\n self._street_line_2 = street_line_2", "def street_line_1(self):\n return self._street_line_1", "def address_2(self):\n return self._address_2",...
[ "0.7486756", "0.7371026", "0.7292078", "0.6836474", "0.65572494", "0.65572494", "0.65572494", "0.6256008", "0.62112385", "0.62112385", "0.61671686", "0.6093106", "0.6076845", "0.6069018", "0.59772086", "0.5964101", "0.5922088", "0.5769769", "0.57134324", "0.5619675", "0.55954...
0.88850814
0
Sets the type of this Provider. Type of NPI number (individual provider vs organization).
def type(self, type): self._type = type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sso_type(self, sso_type):\n allowed_values = [\"SSO_PROVIDER\", \"NONE\"]\n if sso_type not in allowed_values:\n raise ValueError(\n \"Invalid value for `sso_type` ({0}), must be one of {1}\"\n .format(sso_type, allowed_values)\n )\n\n se...
[ "0.71069443", "0.7058831", "0.7058831", "0.69044185", "0.67403895", "0.65934634", "0.65299094", "0.6528681", "0.65140086", "0.65140086", "0.6441735", "0.6441735", "0.6441735", "0.64161533", "0.6400638", "0.6399028", "0.63832176", "0.6364346", "0.63623136", "0.63164103", "0.63...
0.64991164
23
Sets the zip_code of this Provider. Postal code for the provider's address (e.g. 11215)
def zip_code(self, zip_code): self._zip_code = zip_code
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zipcode(self, zipcode):\n self._zipcode = zipcode", "def zip_code(self, value):\n regex = config.get('validators', 'zip_code')\n zipcode = re.search(regex,\n value)\n if not zipcode:\n raise ZipCodeError(\"ZipCodeError: 'zip_code' must be 5 no...
[ "0.813527", "0.7696711", "0.7520487", "0.7303141", "0.72086644", "0.72086644", "0.72086644", "0.71607524", "0.6814337", "0.67423946", "0.6677583", "0.65004313", "0.6321721", "0.62148035", "0.62148035", "0.62148035", "0.6176158", "0.6100453", "0.59511715", "0.5875921", "0.5861...
0.82263106
0
Returns true if both objects are equal
def __eq__(self, other): 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.7961088", "0.7961088", "0.79433626", "0.79303336", "0.7926563", "0.7897525", "0.78826123", "0.78826123", "0.78806067", "0.7872423", "0.7868354", "0.78668815", "0.7825702", "0.7819993", "0.78162885", "0.78078854", "0.78068...
0.79670393
25
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
Loads XML and stores values in the given adt_object and for the convenience of use returns the given adt_object.
def deserialize(xml_text, adt_object): name = '/' + adt_object_to_element_name(adt_object) elements = {} handler = ElementHandler(name, elements, lambda: adt_object) get_logger().debug('Deserializing object with the root name: %s', name) elements[name] = handler parser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _object_to_tree(self, adt_object):\n\n objtype = adt_object.objtype\n name = adt_object_to_element_name(adt_object)\n\n root = Element(name)\n declared_ns = self._declare_xmlns(root, objtype.xmlnamespace)\n\n if objtype.code is not None:\n root.add_attribute('adtco...
[ "0.5662776", "0.5573682", "0.5311855", "0.5280124", "0.5167917", "0.51653904", "0.5131261", "0.5123853", "0.51041126", "0.5085287", "0.5015536", "0.4985049", "0.49593005", "0.49392733", "0.4933469", "0.4928641", "0.49252605", "0.4911767", "0.49068522", "0.48565987", "0.485399...
0.671247
0
Return True if correct password, else False.
def check_credentials(input_password, real_password): return pwd_context.verify(input_password, real_password)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def check_password(self, password):\n return self.password == password", "def verify_password(self, password):\n return self.PASS == password", "def verify_password(self, password):\n return self.PASSWORD == password", "def _check_password(self, password):\n if self.password_regex...
[ "0.83833", "0.8358041", "0.82641995", "0.8189676", "0.80763936", "0.7895843", "0.78857815", "0.78760403", "0.77683824", "0.7746196", "0.77284706", "0.77129084", "0.7700202", "0.768559", "0.76779085", "0.7674635", "0.7668991", "0.76582104", "0.76277214", "0.76176417", "0.76081...
0.7150726
93
Convert string dates to datetime objects.
def convert_date_type(dates): try: return datetime.strptime(dates, '%Y-%m-%d') except ValueError: return datetime.strptime(dates, '%d/%m/%Y')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def stringToDate(self, date_strings: list) -> list:\n date_objs = []\n try:\n if isinstance(date_strings, list) == False:\n return date_objs\n\n for date_string in date_strings:\n if isinstance(date_string, str) == False:\n ...
[ "0.71829545", "0.6771165", "0.67709297", "0.67034525", "0.6670295", "0.6644311", "0.65395343", "0.65206516", "0.6510253", "0.65039593", "0.65009296", "0.6484069", "0.6437325", "0.64158654", "0.63865167", "0.63686615", "0.636359", "0.63592356", "0.63583523", "0.63499177", "0.6...
0.70314515
1
Generator yielding just the value of the record from Kafka. Value is made into Pinnate object.
def data(self) -> Generator: # Not using a consumer group and setting partitions manually so it's a smaller # jump to make this deterministic/repeatable with multiple workers later on. self.connect() self.approx_position = 0 for partition_id, start_offset, end_offset in self._p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __iter__(self):\n for val in self.value:\n yield val", "def peek(self):\n if self._buffer:\n values = self._buffer[0]\n return Record(self.keys(), tuple(map(hydrated, values)))\n while not self._buffer and not self._consumed:\n self.connection....
[ "0.54974025", "0.5469364", "0.545432", "0.53827095", "0.5349568", "0.52360225", "0.523323", "0.52250713", "0.5220895", "0.5218161", "0.5199521", "0.5194993", "0.5166289", "0.5158525", "0.51514846", "0.5143436", "0.5094877", "0.50750214", "0.50505716", "0.50395966", "0.5009259...
0.6403198
0
Pads a 3dimensional numpy array with zeros around the first two dimensions.
def _pad_with_zeros(self, X, margin): newX = np.zeros((X.shape[0] + 2 * margin, X.shape[1] + 2 * margin, X.shape[2])) x_offset = margin y_offset = margin newX[x_offset:X.shape[0] + x_offset, y_offset:X.shape[1] + y_offset, :] = X return newX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def padding(a, dim):\n\n return np.pad(a, (0, dim-len(a)), 'constant', constant_values=(0))", "def pad_with_zeros(array, padding_by_axis):\n shape = [\n size + padding_by_axis.get(axis, 0)\n for axis, size in enumerate(array.shape)\n ]\n\n position = tuple(\n slice(padding_by_axi...
[ "0.7128292", "0.70894283", "0.7055007", "0.6981984", "0.6961356", "0.6826836", "0.68082285", "0.67324", "0.66457176", "0.6606001", "0.6577696", "0.6493687", "0.64366233", "0.63259274", "0.62954944", "0.6273844", "0.6257046", "0.6249422", "0.6225865", "0.62217194", "0.6202206"...
0.67736214
7
Evaluate the model by calculating the MSE.
def evaluate_model(model, instances, labels): prediction = model.predict(np.array(instances)) prediction_inv = inverse_normalization(prediction) labels_inv = inverse_normalization(labels) mse = mean_squared_error(labels_inv, prediction_inv) return mse
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def evaluate(self, X_test, y_test):\n y_pred = self.pipeline.predict(X_test)\n return compute_rmse(y_pred, y_test)", "def evaluate(self, X_test, y_test):\n pipeline = run()\n y_pred = pipeline.predict(X_test)\n rmse = compute_rmse(y_pred, y_test)\n print(rmse)\n r...
[ "0.73205644", "0.725196", "0.7227132", "0.72017837", "0.710354", "0.70768315", "0.69345", "0.6929963", "0.6919934", "0.68984944", "0.6896545", "0.6826017", "0.6802774", "0.6764115", "0.6758502", "0.67576927", "0.6757218", "0.6753419", "0.6702661", "0.6697872", "0.6697872", ...
0.6798251
13
Splits dataset into train/test instances and labels.
def split_dataset(instances, labels, train_split=0.8): split = int(train_split * len(instances)) train_data, train_labels = instances[:split], labels[:split] test_data, test_labels = instances[split:], labels[split:] return train_data, train_labels, test_data, test_labels
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def split_data(data, labels):\r\n # Split the data into train and test\r\n X_train, X_test, y_train, y_test = train_test_split(data, labels, test_size=0.30, random_state = 42)\r\n return(X_train, y_train, X_test, y_test)", "def data_split(data, labels, train_ratio=0.5, rand_seed=42):\n\n assert 0 <= ...
[ "0.8018822", "0.79115355", "0.78612024", "0.78188574", "0.768804", "0.7525252", "0.7457894", "0.7357411", "0.733798", "0.7320808", "0.730949", "0.7296617", "0.728697", "0.726827", "0.7266163", "0.72515386", "0.7238029", "0.72347915", "0.72347915", "0.7132077", "0.7131521", ...
0.83638275
0
r"""The relative nondimensional Helmholtz free energy as a function of the nondimensional end separation in the isometric ensemble, using a MetropolisHastings Markov chain Monte Carlo calculation of the ensemble average
def beta_A_isometric_monte_carlo(self, v, **kwargs): v = self.np_array(v) beta_A = np.zeros(v.shape) for i, v_i in enumerate(v): self.beta_E = lambda lambda_: self.beta_U_1(lambda_) + \ self.beta_A_0_abs_isometric(1, lambda_) def serial_fun(init_co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _calc_Em(self):\n return (self.parameters.E0 +\n self.x * sqrt2 * self.parameters.sigma * self.mt)", "def energy_func(self):\n i = self.inl[0].to_flow()\n o = self.outl[0].to_flow()\n\n T_m = (T_mix_ph(i, T0=self.inl[0].T.val_SI) +\n T_mix_ph(o, T0=sel...
[ "0.6609993", "0.6552437", "0.6370831", "0.636648", "0.631232", "0.6308061", "0.629532", "0.6294879", "0.62607586", "0.62429255", "0.62219274", "0.6220123", "0.61459225", "0.6107657", "0.61012506", "0.6090042", "0.60717005", "0.60666823", "0.60618407", "0.6037479", "0.6036292"...
0.0
-1
r"""The relative nondimensional Gibbs free energy as a function of the nondimensional end force in the isometric ensemble, using a MetropolisHastings Markov chain Monte Carlo calculation of the ensemble average
def beta_G_isotensional_monte_carlo(self, p, **kwargs): p = self.np_array(p) beta_G = np.zeros(p.shape) for i, p_i in enumerate(p): self.beta_E = lambda lambda_: self.beta_U_1(lambda_) + \ self.beta_G_0_abs_isotensional(0, lambda_) def serial_fun(i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def estimate_wf_energy(self):\n nblocks = 50\n blocksize = int(len(self.local_energies) / nblocks)\n enmean = 0\n enmeansq = 0\n enmean_unblocked = 0\n enmeansq_unblocked = 0\n\n for b in range(nblocks):\n eblock = 0.0\n for j in range(b * bloc...
[ "0.63308614", "0.6224785", "0.61857045", "0.6150877", "0.61451143", "0.61445135", "0.6134263", "0.61197716", "0.60945535", "0.60780686", "0.60769635", "0.6068285", "0.6067393", "0.605707", "0.6039648", "0.6010996", "0.6009983", "0.6008126", "0.60058874", "0.5980242", "0.59598...
0.0
-1
1hot encodes a tensor
def to_categorical(y, num_classes): return np.eye(num_classes, dtype='uint8')[y]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def one_hot_encode(x):\n # TODO: Implement Function\n output = np.zeros((len(x), 10))\n \n for i, j in enumerate(x):\n output[i,j] = 1\n \n return output", "def one_hot_encode(self, arr, n_labels):\n one_hot = np.zeros((np.multiply(*arr.shape), n_labels), dtype=np.float32)\...
[ "0.82578593", "0.8061468", "0.80140257", "0.7917851", "0.7914897", "0.7883416", "0.78429884", "0.78089696", "0.7765784", "0.77376443", "0.77376443", "0.7733915", "0.7728651", "0.77133274", "0.7686273", "0.76797515", "0.75851345", "0.7560708", "0.75560004", "0.75353223", "0.75...
0.0
-1
Performs a translation of a Numpy image tensor.
def translation_3D(img, trans_x, trans_y, trans_z, cval=0.): if trans_x > 0: img[trans_x:,...] = img[:-trans_x,...] img[:trans_x,...] = cval elif trans_x < 0: img[:trans_x,...] = img[-trans_x:,...] img[trans_x:,...] = cval if trans_y > 0: img[:,trans_y:,:,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def translate_xy(\n image: TensorLike, translate_to: TensorLike, replace: TensorLike\n) -> TensorLike:\n image = tf.convert_to_tensor(image)\n image = wrap(image)\n trans = tf.convert_to_tensor(translate_to)\n image = translate(image, [trans[0], trans[1]])\n return unwrap(image, replace)", "def...
[ "0.72715765", "0.66782415", "0.649706", "0.64092547", "0.63260156", "0.62907183", "0.6261246", "0.6244444", "0.62078905", "0.6181036", "0.6087704", "0.6006948", "0.59844035", "0.59615695", "0.59437305", "0.59372187", "0.5921979", "0.59095275", "0.59029055", "0.58964574", "0.5...
0.6385585
4