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
This function finds the dot product of two vectors. It does this by multiplying each element in list 1 by the corresponding element in list 2 and summing each of these together
def dot(vector01,vector02): result = 0 # creates the initial value for the result of the dot product for z in range(len(vector01)): # for loop which continues as long as there are more values left in the vector result += vector01[z]*vector02[z] # the new result is found to be the c...
{ "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(v1, v2):\n return sum((a * b) for a, b in zip(v1, v2))", "def dotproduct(vec1, vec2):\n import operator\n return sum(map(operator.mul, vec1, vec2))", "def dotproduct(v1, v2):\n\treturn sum(imap(operator....
[ "0.89191514", "0.8890897", "0.8804742", "0.8726835", "0.86341274", "0.8459445", "0.8450276", "0.84476626", "0.8446389", "0.8441224", "0.84406364", "0.8412409", "0.83798426", "0.83680874", "0.83556044", "0.8332747", "0.83085656", "0.8282643", "0.8254755", "0.821688", "0.815772...
0.82354426
19
Returns a pseudorandom character derived from an input string.
def nom(meal, i1): # Iterators #numOfIts = len(meal) #its = [i1 for i1 in range(0,numOfIts)] #its = [0,2,1,6, len(meal)] #its = createIts(meal) numOfIts = len(its) newnom = 0 for i2 in range(0,numOfIts): newnom += int(meal[its[i2]+i1]) + primes[i2] #print(primes[i2])...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_random_char():\n return chr(randint(97, 122))", "def random_charachter() -> chr:\r\n return chr(int(random.randrange(32, 126, 1)))", "def random_char():\n return chr(random.randrange(32, 126, 1))", "def random_char(alph):\n char = alph[rand_generator.randrange(len(alph))]\n return char...
[ "0.76887417", "0.75494397", "0.7421187", "0.72703284", "0.72157395", "0.7002237", "0.69933724", "0.6983126", "0.69035256", "0.6852767", "0.683394", "0.680291", "0.67437786", "0.66570324", "0.66514015", "0.6642173", "0.66275775", "0.66170365", "0.65608686", "0.6560181", "0.655...
0.0
-1
Repeats the nibble() function along a string, to return a pseudorandom string from an input meal string.
def munch(broth, numOfMunches): for i1 in range(numOfMunches): broth = nibble(broth) return broth
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nibble(meal):\n broth = \"\"\n for i1 in range(-len(meal), 0):\n broth += nom(meal, i1)\n return broth", "def _random_id(n):\n ''.join(choice(alphanums) for i in range(n))", "def new_barcode(num_digits=5, chars=string.digits+string.uppercase):\n return 'FLIM-'+(''.join([random.choice(...
[ "0.72395355", "0.6527193", "0.643601", "0.6379915", "0.63499594", "0.6324259", "0.6271023", "0.6176849", "0.6152724", "0.6139098", "0.60701203", "0.6031825", "0.6017706", "0.6002031", "0.59563357", "0.59310585", "0.59051627", "0.5905049", "0.5896663", "0.5893765", "0.58874524...
0.56368285
64
A mathematical sigmoid function, the 'Logistic function'.
def sigmoid01(x, xmid, L, k): euler = 2.71828182845904523536028747135266249775724709369995 sigma = L/(1 + euler**(-k*(x-xmid))) return sigma
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sigmoid(x):\n return 1 / (1 + math.exp(-x))", "def sigmoid(x):\n return 1/(1 + math.exp(-x))", "def sigmoid(x):\n return 1 / (1 + exp(-x))", "def sigmoid(x):\n return 1 / (1 + exp(-x))", "def sigmoid(x):\n return 1 / (1 + math.exp(-x))", "def sigmoid(x):\n\n return 1 / (1 + math.exp(-...
[ "0.88541406", "0.8829377", "0.8828521", "0.8828521", "0.88273054", "0.881638", "0.881638", "0.88091034", "0.8801677", "0.8712745", "0.86780906", "0.86745834", "0.86717623", "0.86700463", "0.8668718", "0.8668718", "0.8668718", "0.8668718", "0.8668718", "0.8668718", "0.8659444"...
0.0
-1
L2normalize columns of X
def l2norm(X): norm = torch.pow(X, 2).sum(dim=1, keepdim=True).sqrt() X = torch.div(X, norm) return X
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l2_normalize(data, eps, axis=None):\n return cpp.nn.l2_normalize(data, eps, axis)", "def normalize_l2(x):\n return x / (npla.norm(x))", "def L2_normalize(xx):\r\n\tZx = compute_L2_normalization(xx)\r\n\treturn xx / np.sqrt(Zx[:, np.newaxis])", "def normalizeRows(x):\n\n ### YOUR CODE HERE\n #...
[ "0.76127386", "0.74197316", "0.72367084", "0.7202008", "0.7162083", "0.7133827", "0.70338094", "0.69962883", "0.6908121", "0.69054306", "0.6894549", "0.6815722", "0.6789521", "0.6779976", "0.67509", "0.6738499", "0.6678439", "0.66768813", "0.6676479", "0.66763866", "0.665484"...
0.66025686
26
Initialize the ship and set its starting position
def __init__(self, setting, screen): super(Ship, self).__init__() self.screen = screen self.setting = setting # Load the ship image and its rect. self.image = pg.image.load(checkColor()) # 'gfx/player.bmp' self.rect = self.image.get_rect() self.screenRect = scre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self,ai_settings, screen):\n\t\tsuper(Ship,self).__init__()\n\t\tself.screen = screen\n\t\tself.ai_settings = ai_settings\n\t\t\n\t\t# Load ship and get its rect\n\t\tself.image = pygame.image.load('images/spaceship.bmp')\n\t\tself.image = pygame.transform.scale(self.image, (50,50))\n\t\tself.rect = s...
[ "0.724054", "0.723063", "0.718953", "0.71750754", "0.71750754", "0.71102977", "0.7028255", "0.7022774", "0.7009138", "0.7005338", "0.69817597", "0.69712067", "0.6951812", "0.6941031", "0.69371396", "0.69253206", "0.69229627", "0.6834589", "0.6765205", "0.6728738", "0.67257273...
0.6996021
10
Returns starting state of the board.
def initial_state(): return [[EMPTY, EMPTY, EMPTY], [EMPTY, EMPTY, EMPTY], [EMPTY, EMPTY, EMPTY]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def start_state(self):\r\n return np.zeros(self.board_size, dtype=np.int8)", "def start_state():\n return chess.Board()", "def startingState(self):\n # Returns starting position and 4 false because no corners are visited yet\n return (self.startingPosition, (False, False, False, False))...
[ "0.8081514", "0.7890486", "0.7534929", "0.72789717", "0.72789717", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", "0.72262055", ...
0.0
-1
Returns player who has the next turn on a board.
def player(board): X_count = 0 O_count = 0 #to determine the turn, I will make a count of the X and O tokens on the board for row in board: #I create a dictionary with the count on each row player_turns = {i: row.count(i) for i in row} #I check if I have X and O tokens in the row...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def next_player(board, prev_player):\n opp = Othello.opponent(prev_player)\n if Othello.any_legal_move(opp, board):\n return opp\n elif Othello.any_legal_move(prev_player, board):\n return prev_player\n return None", "def next_player(self,board, prev_player):\r\n...
[ "0.7908894", "0.751989", "0.7417374", "0.736781", "0.71948826", "0.6975557", "0.69626296", "0.69238055", "0.6917976", "0.6898035", "0.68501645", "0.6841178", "0.6837476", "0.6824873", "0.67710596", "0.67710596", "0.67668664", "0.67113537", "0.6708399", "0.6656373", "0.6611675...
0.0
-1
Returns the optimal action for the current player on the board.
def minimax(board): #This function will return the best move. #If Ai is playing as X, I can reduce the processing time by creating a random first move. if (board == initial_state()): coord1 = randint(0,2) coord2 = randint(0,2) return ((coord1,coord2)) #first I determine which p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_best_action(self):\n if self.bestAction is None:\n self.calculate_best_action()\n return self.bestAction", "def getAction(self, gameState: GameState):\n _max = float(\"-inf\")\n action = None\n for move in gameState.getLegalActions(0):\n util = min...
[ "0.7766856", "0.76323676", "0.75855315", "0.75285065", "0.75175256", "0.74667144", "0.7460485", "0.74263537", "0.7416421", "0.73943585", "0.7375846", "0.7333894", "0.73147565", "0.7306611", "0.7284639", "0.72650313", "0.72650313", "0.7250975", "0.72331834", "0.7203267", "0.71...
0.0
-1
This method returns the value for the message property.
def message(self): return self._message
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_message (self) :\n return self._message", "def message(self) -> str:\n return typing.cast(\n str,\n self._properties.get(\"message\"),\n )", "def get_message(self):\n return self.message", "def get_message(self):\n return self.message", "def ...
[ "0.8432235", "0.8411812", "0.83325964", "0.83325964", "0.831949", "0.8315507", "0.8315507", "0.8315507", "0.8315507", "0.8315507", "0.8315507", "0.8307512", "0.8307512", "0.8307512", "0.8307512", "0.8307512", "0.8242109", "0.82347345", "0.8092407", "0.8087789", "0.8087789", ...
0.81921166
20
Return the full ID for this task.
def full_id(self): name = self.strategy.__class__.__name__ return f'{name}/{self.id()}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def task_id(self) -> str:\n return self.get_from_redis(\"task_id\")", "def get_task_id(self):\n if self.task_id:\n return self.task_id\n return (f'{self.task_type}_{self.get_source_system().lower()}'\n f'.{self.get_source_subsystem().lower()}.{self.get_name().upper(...
[ "0.86336315", "0.83552516", "0.8275074", "0.8275074", "0.8275074", "0.8275074", "0.7965906", "0.7787067", "0.77601516", "0.77601516", "0.77253646", "0.7626648", "0.7585282", "0.7573033", "0.7573033", "0.7573033", "0.7573033", "0.7573033", "0.7573033", "0.7573033", "0.7573033"...
0.0
-1
Compute the IntersectionOverUnion of two given boxes.
def iou(box1, box2): lr = min(box1[0]+0.5*box1[2], box2[0]+0.5*box2[2]) - \ max(box1[0]-0.5*box1[2], box2[0]-0.5*box2[2]) if lr > 0: tb = min(box1[1]+0.5*box1[3], box2[1]+0.5*box2[3]) - \ max(box1[1]-0.5*box1[3], box2[1]-0.5*box2[3]) if tb > 0: intersection = tb*lr union = box1[2]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def intersection_over_union_from_boxes(boxA, boxB):\n\n\t# determine the (x, y)-coordinates of the intersection rectangle\n xA = max(boxA[0], boxB[0])\n yA = max(boxA[1], boxB[1])\n xB = min(boxA[2], boxB[2])\n yB = min(boxA[3], boxB[3])\n\n # compute the area of intersection rectangle\n interAre...
[ "0.79086936", "0.77042747", "0.76564115", "0.7506713", "0.7472324", "0.7414646", "0.740481", "0.7296138", "0.710624", "0.7090592", "0.70833206", "0.7071014", "0.70340574", "0.6979808", "0.69067514", "0.68779904", "0.68497443", "0.6819666", "0.68149066", "0.6769053", "0.676208...
0.7090226
10
Compute the IntersectionOverUnion of a batch of boxes with another box.
def batch_iou(boxes, box): lr = np.maximum( np.minimum(boxes[:,0]+0.5*boxes[:,2], box[0]+0.5*box[2]) - \ np.maximum(boxes[:,0]-0.5*boxes[:,2], box[0]-0.5*box[2]), 0 ) tb = np.maximum( np.minimum(boxes[:,1]+0.5*boxes[:,3], box[1]+0.5*box[3]) - \ np.maximum(boxes[:,1]-0.5*boxes[:,3], b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iou_with(self, boxes):\n return multi_bb_intersection_over_union(self.best_box, boxes)", "def intersection_over_union(gt_box, pred_box):\n combined = torch.stack((gt_box, pred_box), dim=1)\n max_0 = torch.max(combined[:, :, 0].T, dim = 0).values\n max_1 = torch.max(combined[:, :, 1].T, dim=0)...
[ "0.7785715", "0.7706115", "0.74428046", "0.7328188", "0.7296437", "0.6878068", "0.68028563", "0.67695576", "0.6746712", "0.66722983", "0.66065645", "0.66065645", "0.66014", "0.6589643", "0.64940846", "0.64498955", "0.63736373", "0.63378143", "0.6336969", "0.62945974", "0.6269...
0.61597496
26
Get a Tier Config parameter.
def get_param_by_id(self, id_): try: return list(filter(lambda param: param.id == id_, self.params))[0] except IndexError: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_config(param):\n _config = loadConfig()\n try:\n click.echo(f\"{param}={rgetattr(_config, param)}\")\n except AttributeError as err:\n click.echo(err)", "def get_parameter(par_name):\r\n config_file = open('./config.txt', 'r')\r\n lines = config_file.readlines()\r\n for li...
[ "0.633574", "0.62678856", "0.6214928", "0.6108484", "0.6034082", "0.6024662", "0.5977047", "0.5837261", "0.5834864", "0.5821047", "0.5804854", "0.5787351", "0.5767046", "0.57103807", "0.5702476", "0.5680964", "0.5671381", "0.5657805", "0.5656453", "0.56446964", "0.56187177", ...
0.0
-1
The name of the bucket it applies to.
def bucket(self) -> pulumi.Input[str]: return pulumi.get(self, "bucket")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bucket_name(self) -> str:\n ...", "def bucket_name(self) -> str:\n return jsii.get(self, \"bucketName\")", "def bucket_name(self) -> str:\n return jsii.get(self, \"bucketName\")", "def bucket_name(self) -> str:\n return pulumi.get(self, \"bucket_name\")", "def bucket_name(se...
[ "0.89453804", "0.8882473", "0.8882473", "0.8837587", "0.88227093", "0.84004074", "0.84004074", "0.84004074", "0.84004074", "0.84004074", "0.8341372", "0.8341372", "0.8341372", "0.8341372", "0.8341372", "0.8341372", "0.8341372", "0.8341372", "0.8341372", "0.8341372", "0.824754...
0.7564817
28
The name of the bucket it applies to.
def bucket(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "bucket")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bucket_name(self) -> str:\n ...", "def bucket_name(self) -> str:\n return jsii.get(self, \"bucketName\")", "def bucket_name(self) -> str:\n return jsii.get(self, \"bucketName\")", "def bucket_name(self) -> str:\n return pulumi.get(self, \"bucket_name\")", "def bucket_name(se...
[ "0.89437246", "0.8881766", "0.8881766", "0.8836366", "0.88216186", "0.8399381", "0.8399381", "0.8399381", "0.8399381", "0.8399381", "0.8340556", "0.8340556", "0.8340556", "0.8340556", "0.8340556", "0.8340556", "0.8340556", "0.8340556", "0.8340556", "0.8340556", "0.82463354", ...
0.74220246
34
The name of the bucket it applies to.
def bucket(self) -> pulumi.Output[str]: return pulumi.get(self, "bucket")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bucket_name(self) -> str:\n ...", "def bucket_name(self) -> str:\n return jsii.get(self, \"bucketName\")", "def bucket_name(self) -> str:\n return jsii.get(self, \"bucketName\")", "def bucket_name(self) -> str:\n return pulumi.get(self, \"bucket_name\")", "def bucket_name(se...
[ "0.89453804", "0.8882473", "0.8882473", "0.8837587", "0.88227093", "0.84004074", "0.84004074", "0.84004074", "0.84004074", "0.84004074", "0.8341372", "0.8341372", "0.8341372", "0.8341372", "0.8341372", "0.8341372", "0.8341372", "0.8341372", "0.8341372", "0.8341372", "0.824754...
0.7775541
24
Yield elements from data in chunks of batch_size, where each chunk size is a multiple of batch_size_multiple.
def batch_iter(self, data, batch_size, batch_type="sents", batch_size_multiple=1): def batch_size_fn(nbsents, maxlen): if batch_type == "sents": return nbsents elif batch_type == "tokens": return nbsents * maxlen else: raise Va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gen_batches(data, batch_size):\n data = np.array(data)\n\n for i in range(0, data.shape[0], batch_size):\n yield data[i:i+batch_size]", "def split_into_batches_of_size(self, batch_size: int) -> Iterator[List]:\n if batch_size >= len(self):\n yield type(self)(self)\n else...
[ "0.77012587", "0.7587111", "0.75182927", "0.7478986", "0.74782556", "0.736393", "0.73613673", "0.7350502", "0.73261106", "0.7288047", "0.72843724", "0.72683865", "0.7213839", "0.7178771", "0.71777266", "0.71777266", "0.7177649", "0.71665114", "0.71599174", "0.71478873", "0.71...
0.7406315
5
Get a day's boundaries A days_delta of 0 means today. A days_delta of 1 means yesterday. UTC is not okay. we should use the user's timezone.
def _get_day_boundaries(days_delta=0): base_date = datetime.utcnow() - timedelta(days=int(days_delta)) start_day = base_date.replace(hour=0, minute=0, second=0, microsecond=0) end_day = start_day + timedelta(days=1) log.debug('Day boundary start {} end {}'.format(start_day, end_day)) return (start_d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_day_limits(self) -> Tuple[datetime, datetime]:\n day_start = min(self.dset.time.datetime)\n day_end = max(self.dset.time.datetime)\n \n return day_start, day_end", "def interval_days(self) -> pulumi.Input[int]:\n return pulumi.get(self, \"interval_days\")", "def __dayRes...
[ "0.6196164", "0.61110103", "0.5903451", "0.5675002", "0.5569602", "0.5532423", "0.5498644", "0.5451669", "0.5409555", "0.5407719", "0.54027617", "0.5402526", "0.5379924", "0.53775245", "0.5366239", "0.53645635", "0.5356302", "0.5333312", "0.532359", "0.52390313", "0.52098286"...
0.8457112
0
Get the neighbors of each node from a NetworkX graph in a dictionary
def get_neighbors(graph): neighbor_dict = dict() for node in graph: neighbor_dict[node] = set(graph[node]) return neighbor_dict
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def neighbors(self, n):\n\n try:\n return self.dict[n].keys()\n except KeyError:\n raise KeyError('Node not in graph.')", "def get_neighbors(self):\n \n return self.adjacent.keys()", "def neighborhood(G,n,o):\n base = G[n]\n neighbors = {}\n neighbors[...
[ "0.7494643", "0.72141767", "0.69946605", "0.69806373", "0.69595605", "0.694073", "0.69284505", "0.6898482", "0.6887162", "0.67841864", "0.67640376", "0.67278284", "0.66748416", "0.6641142", "0.66320515", "0.6593622", "0.6572399", "0.65383476", "0.65369564", "0.6511455", "0.65...
0.795288
0
Generates an arbitrary invalid JSON payload dict to be used in the update user call from a user object. Current implementation is just to give an invalid first name, containing a numeric digit.
def get_invalid_update_request(user_data: user_models.User) -> Dict[str, Any]: fake = Faker() invalid_name_field = lambda: fake.first_name() + str(randint(5, 10)) user_id = user_data.get_id() payload_dict = { "identifier": { "user_id": user_id }, "first_name": invalid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_create_account_failed_no_first_name(self):\n data = self.user_data.copy()\n data.pop('first_name')\n response = self.client.post(self.url, data, format='json')\n self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)\n self.assertEqual(response.data.get('mes...
[ "0.59625244", "0.58928806", "0.5877669", "0.5870688", "0.58412963", "0.58350444", "0.57733476", "0.5674835", "0.5664454", "0.5642326", "0.5640764", "0.55821985", "0.5562882", "0.5542463", "0.5519318", "0.55079794", "0.550572", "0.5502429", "0.5501983", "0.54404074", "0.543814...
0.70375663
0
Generates an invalid request that contains no information
def get_update_request_no_data() -> Dict[str, Any]: payload_dict = {} return payload_dict
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bad_request():\n return HttpError(400)", "def invalid_response():\n return Response(\n '{\"error\": \"Invalid request\"}',\n status=400,\n mimetype='application/json'\n )", "def testInvalidRequest(self):\n self.mgr.sendGoProRequest(141)\n self.assertFalse(sel...
[ "0.6811276", "0.6651741", "0.64184004", "0.6370754", "0.6370754", "0.6370754", "0.6338325", "0.6298094", "0.6273988", "0.6232968", "0.61770815", "0.61492616", "0.6142746", "0.6140847", "0.6112187", "0.60930365", "0.60758084", "0.59557325", "0.5955437", "0.5954535", "0.5947723...
0.0
-1
Checks if response code to user update with no data provided is valid
def check_response_no_data(response: HTTPResponse) -> bool: return response.status_code == 422
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def check_response_valid_update(response: HTTPResponse) -> bool:\n return response.status_code == 200", "def check_response_update_nonexistent(response: HTTPResponse) -> bool: # pylint: disable=invalid-name\n return response.status_code == 404", "def _validate_update_data(self, data):\n return", ...
[ "0.7330141", "0.71534866", "0.69160795", "0.6912243", "0.6599443", "0.6578528", "0.6540092", "0.6391928", "0.6252465", "0.61851406", "0.6180849", "0.6139237", "0.6111052", "0.61080205", "0.60823107", "0.606803", "0.60664207", "0.60403055", "0.60318744", "0.5993435", "0.597691...
0.60912156
14
function that takes an epoch index as input and returns a new learning rate as output
def schedule(epoch): return alpha / (1 + (decay_rate * epoch))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def learning_rate(epoch):\n return alpha / (1 + decay_rate * epoch)", "def learning_rate(epoch):\n return alpha / (1 + decay_rate * epoch)", "def learning_rate(epoch):\n self.lr = self.lr / 1.00000001\n return self.lr", "def __call__(self, epoch):\n # Compute the ne...
[ "0.7667443", "0.7667443", "0.7477069", "0.73838776", "0.73237056", "0.715291", "0.6897244", "0.6850048", "0.68408144", "0.68408144", "0.6836972", "0.68268704", "0.6818182", "0.68181115", "0.6813987", "0.68105394", "0.67864585", "0.6782846", "0.67577744", "0.67563546", "0.6736...
0.0
-1
Add the value of the kernel (of arbitrary size, on the location 'center'), to an array if the value in the array is not larger than the value in the kernel.
def add_kernel(org: np.ndarray, kernel: np.ndarray, center): # place filter at the array, and exclude any locations that are out of bounds c_r, c_c = center.row, center.column k_r, k_c = kernel.shape row_start = max(0, k_r/2 - c_r) pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def center(emg_data: np.ndarray, center_value: float = None) -> np.ndarray:\n center_value = center_value if center_value else emg_data.mean(axis=1)\n emg_centered = np.copy(emg_data)\n for i in range(emg_data.shape[0]):\n emg_centered[i, :] = emg_data[i, :] - center_value[i]\n ...
[ "0.60985863", "0.5597028", "0.5423487", "0.5346183", "0.5306569", "0.52676445", "0.5180956", "0.51263344", "0.50966823", "0.5067242", "0.5044662", "0.50417227", "0.49624735", "0.49557123", "0.4937947", "0.4922249", "0.492087", "0.49062863", "0.4842545", "0.47923386", "0.47857...
0.68929315
0
Returns the actual learn rate for the epoch. This may return the learn rate in function of training epoch Thiago F Pappacena integer epoch The epoch number float The actual learn rate to be used in network training
def getActualLearnRate(self, epoch): raise NotImplementedError('getActualLearnRate')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def learning_rate(epoch):\n self.lr = self.lr / 1.00000001\n return self.lr", "def learning_rate(epoch):\n return alpha / (1 + decay_rate * epoch)", "def learning_rate(epoch):\n return alpha / (1 + decay_rate * epoch)", "def __learning_rate(self, lr0, epoch):\n \n ...
[ "0.8455695", "0.8295935", "0.8295935", "0.7968047", "0.74135214", "0.73614776", "0.734312", "0.7145516", "0.70869344", "0.70463336", "0.7019492", "0.68898183", "0.6862335", "0.6847842", "0.6847842", "0.6847842", "0.6847842", "0.68446463", "0.6823332", "0.6793878", "0.67753375...
0.83435255
1
Automatically test all templates in the ./templates/ folder
def test_template(filename, rule, mode, rules): filename = os.path.join(os.path.dirname(__file__), "templates", filename) template = cfnlint.decode.cfn_yaml.load(filename) matches = cfnlint.core.run_checks( filename, template, rules, # TODO: parametrize the region [...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_templates(self):\n path = str(Template())\n self.assertTrue(os.path.exists(path))", "def test_register_template(self):\n pass", "def test_filesystem_loader(self):\n\n self.assertEqual(\n list(\n template_finder.templates_for_engine({\n ...
[ "0.74902356", "0.73567283", "0.729499", "0.7264715", "0.72558326", "0.71847016", "0.71600336", "0.71333927", "0.70997995", "0.7015221", "0.6989768", "0.6936575", "0.6914578", "0.6913145", "0.6891686", "0.677941", "0.6770664", "0.67564434", "0.6715024", "0.66987747", "0.669171...
0.0
-1
Determines whether or not two pandas DataFrames are equal.
def _compare_tables(expected_table, actual_table): expected_num_rows = len(expected_table.index) actual_num_rows = len(actual_table.index) if expected_num_rows != actual_num_rows: return False expected_column_names = list(expected_table) actual_column_names = list(actual_table) if set(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def df_equal(left: pd.DataFrame, right: pd.DataFrame, **kwargs) -> bool:\n pd.testing.assert_frame_equal(left, right, **kwargs)\n return True", "def _(x: DataFrame, y: DataFrame) -> bool:\n _check_xy(x, y)\n\n x = x.sort_values(by=x.columns.to_list()).reset_index(drop=True)\n y = y.sort_va...
[ "0.8512546", "0.7838177", "0.75594723", "0.7515018", "0.74688303", "0.73764884", "0.7364411", "0.7252881", "0.7216199", "0.70417887", "0.7036221", "0.69400513", "0.678918", "0.675936", "0.67203045", "0.66625994", "0.6643101", "0.6639713", "0.6595461", "0.6592471", "0.65885496...
0.63583887
34
Transform a sentence into a list of terms and add it to the dictionary if a term is not in the dictionary.
def to_terms(self, sentence: str) -> List[int]: tokens = self._tokenize(sentence) ret = self._tokens_to_terms(tokens) return ret
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mutateSentences(sentence):\n # Build the graph\n graph = {}\n words = sentence.split()\n res = set()\n for i in range(len(words) - 1):\n w = words[i]\n if not w in graph:\n graph[w] = set()\n graph[w].add(words[i + 1])\n # Helper function that recursively find ...
[ "0.61014956", "0.56351477", "0.5619743", "0.5585442", "0.558346", "0.558346", "0.5571863", "0.5562592", "0.55529344", "0.55240536", "0.5516825", "0.5511615", "0.55065274", "0.54371226", "0.54280674", "0.5394377", "0.5382651", "0.5381097", "0.5374347", "0.53696436", "0.5368704...
0.54870003
13
Transform a sentence into a list of tokens. Stop words are removed in this phase.
def _tokenize(self, sentence: str) -> List[str]: tokens = word_tokenize(sentence) tokens = [t.lower() for t in tokens if len(t) < 25 and self.pattern.match(t)] if self.include_stopword == True: return tokens stop_words = set(stopwords.words('english')) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tokenize(sentence):\n lower_s = sentence.lower()\n no_punc_s = lower_s.translate(TRANS, string.punctuation)\n\n word_list = no_punc_s.split()\n\n return word_list", "def tokenize(self, sentence, keep_ids=False):\n EMPTYTOKEN = \"empty_token\"\n # Creating our token object, which is ...
[ "0.7800396", "0.76428616", "0.7402595", "0.740194", "0.73506135", "0.7345999", "0.7301398", "0.72819674", "0.72756857", "0.7252945", "0.7193871", "0.7189867", "0.71663", "0.71228087", "0.71002996", "0.7080296", "0.7056228", "0.70509064", "0.70509064", "0.70087576", "0.7003106...
0.7953735
0
Test authorization API endpoint with invalid inputs
def test_invalid_auth_inputs(login_inputs, expected_result, expected_status_code): with requests.Session() as session: create_next_admin(session) create_test_user(session, USER_INPUT) response = session.post( "http://rbac-server:8000/api/authorization/", json=login_inputs ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_unauthorized(self):\n self._error_test(fitbit_exceptions.HTTPUnauthorized)", "def test_unhappy_path_unauthorized(self):\n\n response = self.client.post(self.url)\n expected_data = {\"detail\": \"Authentication credentials were not provided.\"}\n\n self.assertDictEqual(respons...
[ "0.73336583", "0.72380227", "0.72290325", "0.7183463", "0.71786624", "0.7136279", "0.713596", "0.70732796", "0.7064649", "0.70636886", "0.7045997", "0.69862354", "0.69847786", "0.6981699", "0.69760007", "0.69760007", "0.6970749", "0.6962484", "0.69606966", "0.69135296", "0.68...
0.7289488
1
Search folder for input images with TIF extentions Returns the file names without extention
def searchFolder(folderPath, extentions): files = [] os.chdir(folderPath) for ext in extentions: for file in glob.glob("*."+ext): files.append(os.path.splitext(file)[0]) return files
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_images(folder_path, extensions=('.png', '.jpg', '.tif')):\n image_full_paths = []\n for filename in os.listdir(folder_path):\n basename, extension = os.path.splitext(filename)\n if extension.lower() in extensions:\n image_full_paths.append(os.path.join(folder_path, filename)...
[ "0.73927855", "0.73072153", "0.71679777", "0.7119992", "0.7064336", "0.6999358", "0.69195825", "0.6912555", "0.6848152", "0.683941", "0.6830123", "0.6827195", "0.68093395", "0.6715149", "0.66968423", "0.6691766", "0.6681216", "0.6599368", "0.6567266", "0.6546376", "0.65188396...
0.62854373
40
Unload a config entry.
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: unload_ok = await hass.config_entries.async_unload_platforms(entry, PLATFORMS) if unload_ok: del hass.data[DOMAIN] return unload_ok
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(hass, config_entry):\n unload_ok = await hass.config_entries.async_forward_entry_unload(\n config_entry, \"climate\"\n )\n return unload_ok", "async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:\n hass.data.pop(DOMAIN)\n return True", ...
[ "0.697284", "0.6888074", "0.6779855", "0.6747459", "0.6689002", "0.6657831", "0.66162205", "0.6603433", "0.65925974", "0.65595686", "0.65411645", "0.6507643", "0.6507643", "0.6507643", "0.6507643", "0.64977276", "0.64931643", "0.6486601", "0.6486601", "0.6486601", "0.6486601"...
0.6265014
52
returns Twist object representing the velocity
def get_twist(self): twist = Twist() twist.linear.x = self.x twist.linear.y = self.y twist.angular.z = self.theta return twist
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getVelocity(self):\n return self.v", "def getVelocity(self):\n\t\tif len(self.prevPositions) < 2:\n\t\t\tself.velocity = 0\n\t\telse:\n\t\t\ttime = self.position[2] - self.prevPositions[len(self.prevPositions)-1][2]\n\t\t\txdist = self.position[0][0] - self.prevPositions[len(self.prevPositions)-1][0][0]\n...
[ "0.7852525", "0.74321026", "0.71543354", "0.71426", "0.71426", "0.7067677", "0.6950427", "0.6859001", "0.67605335", "0.67245156", "0.6690445", "0.6662443", "0.66266704", "0.6617489", "0.66126", "0.6606612", "0.66051906", "0.6592188", "0.6589132", "0.6584992", "0.65152735", ...
0.6441965
27
Computes euclidian distance between two given poses (Pose2D)
def get_distance(pose1, pose2): return math.sqrt((pose1.x-pose2.x)**2+(pose1.y-pose2.y)**2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_dist(pose1, pose2):\n return math.sqrt((pose1.position.x - pose2.position.x)**2 + (pose1.position.y - pose2.position.y)**2 + (pose1.position.z - pose2.position.z)**2)", "def dist(pose1, pose2):\n # type: (Pose, Pose) -> float\n dpose = pose2 - pose1\n dpose[2] = min(dpose[2], 2*np...
[ "0.7993743", "0.7844539", "0.77820235", "0.76284885", "0.76284885", "0.7592175", "0.7592175", "0.74816436", "0.74566495", "0.7352974", "0.72799915", "0.7242284", "0.72394544", "0.72288066", "0.7199856", "0.7185241", "0.7141375", "0.7077013", "0.70491886", "0.7040704", "0.7033...
0.79817235
1
Get next data batch from iterator. Returns DataBatch The data of next batch. Raises f StopIteration If the end of the data is reached.
def next(self): if self.i_sample < self.n_sample: df_batch = self.grouped[self.i_sample:min(self.n_sample, self.i_sample + self.batch_size)] # at end of epoch, number of sample remains may be smaller than batch size if len(df_batch) < self.batch_size: df_samp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def next(self):\n if self._curr_batch + 1 > self.num_batches:\n # no more batches in current iteration through data set so start\n # new epoch ready for another pass and indicate iteration is at end\n self.new_epoch()\n raise StopIteration()\n # create an i...
[ "0.76034075", "0.7581851", "0.74928665", "0.72848856", "0.71207833", "0.71180683", "0.71025044", "0.708066", "0.7038958", "0.7005388", "0.69707894", "0.6966655", "0.6928722", "0.68764794", "0.6838942", "0.68090606", "0.68073976", "0.67809343", "0.674439", "0.67397827", "0.672...
0.0
-1
Asks user to specify a city, month, and day to analyze.
def get_filters(): print('Hello! Let\'s explore some US bikeshare data!') # TO DO: get user input for city (chicago, new york city, washington). while True: city = input( "Please input one of the following: Chicago, New York City, or Washington: " ).lower()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Raw_Data(city,month,day):\n print(\"The city you have entered is: \",city)\n print(\"The month you have entered is: \",month)\n print(\"The day you have entered is: \",day)", "def get_filters():\n city = None\n month = None\n day = None\n while day == None:\n # TO DO: get user input f...
[ "0.66709363", "0.6536631", "0.6460791", "0.6373951", "0.6349272", "0.6310802", "0.6287722", "0.62607133", "0.6230896", "0.6212277", "0.62065274", "0.61828023", "0.6171454", "0.61700225", "0.6159926", "0.6158883", "0.6154618", "0.61455905", "0.6130836", "0.61063856", "0.610411...
0.0
-1
Loads data for the specified city and filter by month and day if applicable.
def load_data(city, month, day): df = pd.read_csv(CITY_DATA[city]) df['Start Time'] = pd.to_datetime(df['Start Time']) df['End Time'] = pd.to_datetime(df['End Time']) df['month'] = df['Start Time'].dt.month df['day_of_week'] = df['Start Time'].dt.weekday_name if month ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_data(city, month, day):\n df = pd.read_csv(CITY_DATA [city])\n \n # convert the Start Time column to datetime\n df['Start Time'] = pd.to_datetime(df['Start Time'])\n \n # extract month and day of week from Start Time to create new columns\n df['month'] = df['Start Time'].dt.month\n ...
[ "0.81534994", "0.8127076", "0.8067021", "0.805889", "0.805721", "0.8044457", "0.80380434", "0.80358624", "0.80298513", "0.80092216", "0.7992035", "0.79858416", "0.7985646", "0.7985221", "0.7960833", "0.7949547", "0.7949331", "0.79331005", "0.79279405", "0.79240465", "0.792284...
0.7778227
49
Displays statistics on the most frequent times of travel within filtered data. Adds column (int) 'hour' as the hour in military time from 'Start Time'
def time_stats(df, city, month, day): print(f'\nCalculating The Most Frequent Times of Travel in {city.title()}...\n') start_time = time.time() # TO DO: display the most common month and change display from (int) to (str) popular_month_int = df['month'].mode()[0] months = pd.Series(data=['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def time_stats(df):\n\n print('\\nDisplaying the statistics on the most frequent times of '\n 'travel...\\n')\n start_time = time.time()\n\n # display the most common month\n most_common_month = df['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' +\...
[ "0.79423076", "0.7688128", "0.76873493", "0.76485974", "0.7589674", "0.75090677", "0.74973166", "0.74812126", "0.7479994", "0.7465524", "0.7459906", "0.74576974", "0.74497575", "0.74490446", "0.74476343", "0.744689", "0.74451476", "0.74314845", "0.7428399", "0.74225044", "0.7...
0.6974008
87
Displays statistics on the most popular stations and trip. Adds column (str) 'Trip Stations' from combination of 'Start Station' and 'End Station'
def station_stats(df): print('\nCalculating The Most Popular Stations and Trip...\n') start_time = time.time() # TO DO: display most commonly used start station popular_start_station = df['Start Station'].mode()[0] # TO DO: display most commonly used end station popular_end_station = df['En...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def station_stats(data):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n start_time = time.time()\n # display most commonly used start station\n popular_ss= data['Start Station'].mode()[0]\n print('Most popular Start Station:', popular_ss)\n # display most commonly used end s...
[ "0.8043603", "0.793561", "0.7929922", "0.79274666", "0.7922206", "0.790558", "0.78968275", "0.78902096", "0.7888626", "0.7886373", "0.78760403", "0.7870014", "0.7861175", "0.78497505", "0.7843425", "0.78344333", "0.7827742", "0.78274524", "0.7826972", "0.7821322", "0.782041",...
0.779558
27
Displays station and user statistics on the total and average trip duration.
def trip_duration_stats(df): print('\nCalculating Trip Duration...\n') start_time = time.time() # TO DO: display total travel time - 'End Time' and 'Start Time' must be dtype: datetime travel_time = df['End Time'] - df['Start Time'] print(f'Total travel time was: {travel_time.sum()}') # TO ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def display_trip_stats(self):\n\n self.trip_frame = stat_display_labels(\n self.stats_frame,\n \"Trip Stats\",\n [\"The total travel time was:\", \"The mean travel time was:\"],\n row=0,\n column=2,\n )\n self.trip_stats_data = tk.Label(se...
[ "0.7489103", "0.7196101", "0.7064669", "0.70342594", "0.6976839", "0.69672513", "0.6966235", "0.6949563", "0.6948306", "0.69378114", "0.69373065", "0.69272745", "0.6912502", "0.6872051", "0.68642366", "0.6863618", "0.6857532", "0.68457603", "0.68436843", "0.68356985", "0.6835...
0.0
-1
Returns an image with a circle of the specified color centered at r_center, c_center with the specified radius.
def add_circle(self, r_center, c_center, radius, color=BLUE, image=np.full((640, 480, 3), BLACK)): circle = np.fromfunction(lambda r, c, _: (r - r_center) ** 2 + (c - c_center) ** 2 <= radius ** 2, image.shape) return np.where(circle, color, image)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def circle(self, center_x, center_y, radius, color):\n x = radius - 1\n y = 0\n d_x = 1\n d_y = 1\n err = d_x - (radius << 1)\n while x >= y:\n self.pixel(center_x + x, center_y + y, color)\n self.pixel(center_x + y, center_y + x, color)\n ...
[ "0.8228878", "0.8219178", "0.78154874", "0.77515244", "0.7704967", "0.7702225", "0.7552532", "0.7519485", "0.7491249", "0.73533434", "0.73278445", "0.7312186", "0.72614354", "0.72606254", "0.72138095", "0.71855444", "0.7162798", "0.7146958", "0.71364766", "0.7134207", "0.7110...
0.85644984
0
Convert snake case to camel case.
def snake_to_camel(name): if name == "role_arn": return "roleARN" temp = name.split("_") return temp[0] + "".join(ele.title() for ele in temp[1:])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def snake_to_camel_case(snake_str: str) -> str:\n\n words = snake_str.strip(\"_\").split(\"_\")\n return words[0] + \"\".join(word[:1].upper() + word[1:] for word in words[1:])", "def snake_to_camel(snake_str):\n title_str = snake_str.split('_')\n return ' '.join(title_str).title()", "def snake_to_...
[ "0.8299198", "0.81861824", "0.8119605", "0.79942614", "0.79550797", "0.794096", "0.7878372", "0.7871632", "0.77302694", "0.77255666", "0.77255666", "0.77155054", "0.7697384", "0.7677283", "0.7661334", "0.7527692", "0.7514007", "0.75120646", "0.7500888", "0.74584985", "0.74524...
0.7759237
8
Yield successive nsized chunks from l.
def chunks(l, n): for i in xrange(0, len(l), n): yield l[i:i+n]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _chunk(self, l, n):\n for i in range(0, len(l) + 1, n):\n yield l[i:i + n]", "def chunks(self, l, n):\n for i in range(0, len(l), n):\n yield l[i:i + n]", "def __chunks(l, n):\n for i in range(0, len(l), n):\n yield l[i:i + n]", "def get_chunks(self, ...
[ "0.80379355", "0.79237956", "0.7922027", "0.78840584", "0.7876208", "0.78144675", "0.77643776", "0.77544284", "0.7743112", "0.7730491", "0.772761", "0.7723601", "0.7701434", "0.768797", "0.768797", "0.7662925", "0.765581", "0.765473", "0.765473", "0.76447", "0.76447", "0.76...
0.0
-1
Build token types and paddings, trim if needed, and pad if needed.
def build_tokens_types_paddings_from_text(row, tokenizer, max_seq_length): title_ids = tokenizer.tokenize(row['title']) context_ids = tokenizer.tokenize(row['text']) # Appending the title of the context at front extended_context_ids = title_ids + [tokenizer.sep_id] + context_ids context_ids, cont...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_tokens(self):\n self.advance()\n while self.__token != \"\":\n self.__tokens.append(self.token_type())\n self.advance()", "def build_tokens_types_paddings_from_ids(text_ids, max_seq_length,\n cls_id, sep_id, pad_id):\n enc_i...
[ "0.6928678", "0.6210445", "0.609712", "0.6043583", "0.5532718", "0.5516193", "0.5512428", "0.5458469", "0.53578734", "0.5324736", "0.5320236", "0.5258206", "0.5235083", "0.5231013", "0.51703656", "0.51268417", "0.5022243", "0.50036293", "0.4974646", "0.49722788", "0.49659318"...
0.641009
1
Build token types and paddings, trim if needed, and pad if needed.
def build_tokens_types_paddings_from_ids(text_ids, max_seq_length, cls_id, sep_id, pad_id): enc_ids = [] tokentypes_enc = [] # [CLS]. enc_ids.append(cls_id) tokentypes_enc.append(0) # A. len_src = len(text_ids) enc_ids.extend(text_ids) token...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_tokens(self):\n self.advance()\n while self.__token != \"\":\n self.__tokens.append(self.token_type())\n self.advance()", "def build_tokens_types_paddings_from_text(row, tokenizer, max_seq_length):\n\n title_ids = tokenizer.tokenize(row['title'])\n context_ids ...
[ "0.69295996", "0.6409756", "0.6097955", "0.6043428", "0.55332154", "0.55182606", "0.5511946", "0.545854", "0.5358884", "0.53242093", "0.5319525", "0.52575874", "0.52352846", "0.5231233", "0.51707184", "0.5127057", "0.5021915", "0.50034505", "0.4974346", "0.49721065", "0.49664...
0.62099385
2
Utility function to clean tweet text by removing links, special characters using simple regex statements.
def clean_tweet(self, tweet): return ' '.join(re.sub("(@[A-Za-z0-9]+)|([^0-9A-Za-z \t])|(\w +://\S +)", " ", tweet).split())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def clean_tweet(tweet):\n\n pattern = r'http\\S+|pic.\\S+|@[a-zA-Z0-9_]+|#[a-zA-Z0-9_]+|[‘’“”’–—…]|\\xa0'\n return re.sub(pattern, '', tweet)", "def tweet_cleaner(text, unescape=True, remove_html_tags=True, accented_chars=True,\r\n contractions=True, special_chars=True, expand_hash=True, r...
[ "0.8035162", "0.8011612", "0.7933544", "0.79298425", "0.7880287", "0.7745769", "0.7718409", "0.7683514", "0.7630937", "0.7559695", "0.7559695", "0.7540147", "0.75358033", "0.75032693", "0.7438139", "0.7409144", "0.73817146", "0.73814404", "0.73638856", "0.7320942", "0.731223"...
0.71911854
26
Returns the probability assigned to given topic aggregated over each time step as a pd.Series
def get_topic_history(data, bow_corpus, topic_ID, lda_model, timestep_code='1A', agg=np.mean): agg_results = {} for time_step, data in data.resample(timestep_code, on='year'): # Get indices for data in this range indices = data.index.tolist() # G...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_topic_prob_in_timestep(bow_subset, lda_model, topic_ID):\r\n # Progress\r\n print(multiprocessing.current_process().name)\r\n \r\n # Get list of topic probs for docs in this timestep\r\n topic_probs = [\r\n get_topic_prob(bow_doc, topic_ID, lda_model) \r\n for bow_doc in bow_su...
[ "0.6865681", "0.5982996", "0.57867515", "0.5783651", "0.5699759", "0.568712", "0.56765324", "0.55558556", "0.5544064", "0.5537381", "0.55294305", "0.5484351", "0.54800683", "0.5408434", "0.54004264", "0.5391381", "0.5383783", "0.53732336", "0.5339577", "0.533726", "0.5329032"...
0.6340927
1
Compute the rewardstogo, which are the cumulative rewards from t=t' to T.
def computed_discounted_rewards(rewards: list[float], gamma: float = 0.95) -> float: discounted_reward = 0 for i, r in enumerate(rewards): discounted_reward += gamma**i * r return discounted_reward
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def reward_to_go(rews):\n n = len(rews)\n rtgs = np.zeros_like(rews)\n for i in reversed(range(n)):\n rtgs[i] = rews[i] + (rtgs[i+1] if i+1 < n else 0)\n return rtgs", "def get_cumulative_rewards(rewards, # rewards at each step\r\n gamma=0.99 # discount for reward\r...
[ "0.6727074", "0.66969395", "0.6647335", "0.6647335", "0.65731025", "0.6546329", "0.63797504", "0.6278174", "0.6232588", "0.62185216", "0.62085885", "0.61815614", "0.6180657", "0.6175553", "0.61738753", "0.6164617", "0.6163779", "0.6163142", "0.6149542", "0.6147697", "0.610366...
0.0
-1
Exponentially decay `param` by `decay_factor` iff it's above `min_val`.
def exponential_decay(param: float, decay_factor: float, min_val: float) -> float: if param > min_val: param *= decay_factor param = max(param, min_val) return param
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fit_exp_decay(x, y):\n def _func(z, z0):\n return np.exp(-z/z0)\n popt, pcov = curve_fit(_func, x, y)\n return popt[0]", "def decay(time_, max_time, coeff):\n threshold = max_time - time_\n if threshold < 0:\n threshold = 0\n return 1 + threshold * coeff / max_time", "def _g...
[ "0.58101505", "0.5791618", "0.57722825", "0.5735606", "0.56865597", "0.5681912", "0.56657505", "0.55780464", "0.5535104", "0.5507767", "0.5490597", "0.5479432", "0.5427863", "0.537628", "0.5362313", "0.53506184", "0.5341741", "0.53301334", "0.5326169", "0.53009635", "0.529676...
0.8493756
0
Return the name of the sensor.
def name(self) -> str: station_name = self._get_station_name() return f"{station_name} {self._fuel_type}"
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def name(self):\n return self._sensor.name", "def get_sensor_name(self):\n return self.data[1]", "def name(self):\n return self.device.device_data[self.device_id]['name'] + \\\n f' {self._sensor_type}'", "def name(self):\n return f\"{self._name} {SENSOR_TYPES[self.senso...
[ "0.91896784", "0.9168378", "0.890185", "0.8770976", "0.8511273", "0.8479953", "0.844435", "0.8299758", "0.8186503", "0.8105667", "0.8079737", "0.8066149", "0.8049647", "0.7700968", "0.7612295", "0.7611456", "0.7600605", "0.7600605", "0.7600605", "0.75392073", "0.75166553", ...
0.72562987
25
Return the state attributes of the device.
def extra_state_attributes(self) -> dict[str, int | str]: return { ATTR_STATION_ID: self._station_id, ATTR_STATION_NAME: self._get_station_name(), }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def device_state_attributes(self):\r\n return self.attributes", "def device_state_attributes(self):\r\n return self._attributes", "def device_state_attributes(self):\n return self._state_attrs", "def device_state_attributes(self):\n return self._state_attrs", "def device_state_a...
[ "0.92738223", "0.92053986", "0.91516256", "0.91516256", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148746", "0.9148746", "0.9137698", "0.9110632",...
0.0
-1
Return the units of measurement.
def native_unit_of_measurement(self) -> str: return f"{CURRENCY_CENT}/{UnitOfVolume.LITERS}"
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unit_of_measurement(self):\n return self._units", "def unitsofmeasure(self):\n return self._unitsofmeasure", "def units(self):\n return self._units", "def units(self):\n return self._units", "def units(self):\n pass", "def unit_of_measurement(self):\n return ...
[ "0.87613285", "0.86724734", "0.86452854", "0.86452854", "0.8517657", "0.84588224", "0.84349954", "0.84116936", "0.8312599", "0.82855976", "0.827392", "0.8131923", "0.8131923", "0.8131923", "0.8131923", "0.8131923", "0.8131923", "0.8131923", "0.8076218", "0.8076218", "0.807621...
0.0
-1
r"""Mean of variational posterior distribution of global bias `w0`. If the model is not fit yet, returns `None`.
def w0_mean(self) -> Optional[float]: def _retrieve(fm: VariationalFM) -> float: return fm.w0 return runtime_error_to_optional(self, _retrieve)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w_mean(self) -> Optional[np.ndarray]:\n\n def _retrieve(fm: VariationalFM) -> np.ndarray:\n return fm.w\n\n return runtime_error_to_optional(self, _retrieve)", "def w0_var(self) -> Optional[float]:\n\n def _retrieve(fm: VariationalFM) -> float:\n return fm.w0_var\n\...
[ "0.6405869", "0.60896486", "0.58938146", "0.58054554", "0.57351106", "0.5646047", "0.5499095", "0.54164004", "0.5409837", "0.54091793", "0.54061115", "0.5389153", "0.5374715", "0.5363141", "0.5363141", "0.5363141", "0.53618115", "0.53606606", "0.53543854", "0.5332366", "0.531...
0.7282462
0
r"""Variance of variational posterior distribution of global bias `w0`. If the model is not fit yet, returns `None`.
def w0_var(self) -> Optional[float]: def _retrieve(fm: VariationalFM) -> float: return fm.w0_var return runtime_error_to_optional(self, _retrieve)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w_var(self) -> Optional[np.ndarray]:\n\n def _retrieve(fm: VariationalFM) -> np.ndarray:\n return fm.w_var\n\n return runtime_error_to_optional(self, _retrieve)", "def w0_mean(self) -> Optional[float]:\n\n def _retrieve(fm: VariationalFM) -> float:\n return fm.w0\n\...
[ "0.61224735", "0.6091875", "0.60470706", "0.58818746", "0.5870507", "0.5583165", "0.5478105", "0.54535085", "0.5436964", "0.5436119", "0.5431167", "0.5406301", "0.53993374", "0.5357714", "0.5334147", "0.5312088", "0.5309289", "0.52915287", "0.5289387", "0.5263444", "0.5246979...
0.6527798
0
r"""Compute the probability that the outcome will be 1 based on variational mean.
def predict_proba( self, X: Optional[ArrayLike], X_rel: List[RelationBlock] = [] ) -> np.ndarray: return self._predict_core(X, X_rel)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def evaluate_one(self, x):\n # p = 1. / (np.sqrt(2. * np.pi) * self.sigma) * \\\n # np.exp(-0.5 * (self.mean - x) * self.invvar * (self.mean - x))\n p = self.dist.probability(x)\n return p", "def prob(x):\n\treturn 1. * bivariate_normal(x, (0., 1.2), (1., 1.), .8) + \\\n\t 1.0...
[ "0.70533776", "0.6765262", "0.67328596", "0.6716602", "0.6627197", "0.66211385", "0.6537572", "0.64989424", "0.64779174", "0.6475313", "0.635129", "0.635129", "0.63478374", "0.63332623", "0.6319072", "0.63064194", "0.62802136", "0.627847", "0.62705004", "0.6215445", "0.619683...
0.0
-1
Create dictionary mapping characters to indices
def create_char_dicts(non_letter_chars, lower_case=True, upper_case=True): lower_case_letter_dict={} upper_case_letter_dict={} index_count = 0 # Create a dictionary with upper and lower case letters and associated index # Note: We include underscores, hyphens, and apostrophes but ignore other charac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_dictionaries(chars):\n return dict((c, i) for i, c in enumerate(chars)), dict((i, c) for i, c in enumerate(chars))", "def build_idx(vocab):\n word2index = {}\n index2word = {}\n\n word2index['PAD'] = 0\n index2word[0] = 'PAD'\n\n word2index['UNK'] = 1\n index2word[1] = 'UNK'\n\n ...
[ "0.7452275", "0.7138624", "0.71238977", "0.7110873", "0.7086889", "0.69592345", "0.6918916", "0.6879721", "0.6819894", "0.6819116", "0.6735591", "0.6735591", "0.67239416", "0.66802406", "0.66747105", "0.6643213", "0.6628779", "0.6548074", "0.6544084", "0.6544078", "0.651436",...
0.6276484
29
Return path of database.
def getDBPath(readonly=False): path=None if sys.platform == 'darwin': path = '%s/Library/Application Support/Klip/' % os.getenv("HOME") else: home = os.getenv('HOME') if home is None: raise Exception("Platform %s not support." % sys.platform) else: pat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_database_path():\n\treturn _paths[_DATABASE_PATH_KEY]", "def get_db_path():\n \n return(db_run.db_abs_path)", "def getDBPath():\n return os.path.join(CONFIG_DIR, CONFIG_DICT['common']['local_db'])", "def get_database_directory(self):\n pass", "def db_path(self, host: str) -> str:\n ...
[ "0.8843047", "0.8774856", "0.82937515", "0.82643247", "0.81768405", "0.79795074", "0.77698904", "0.774215", "0.7695976", "0.7632181", "0.7601807", "0.7403583", "0.7344641", "0.72875166", "0.72484785", "0.7208375", "0.7193978", "0.71225107", "0.71060514", "0.7095722", "0.70949...
0.7190147
17
Get absolute path to resource, works for dev and for PyInstaller
def resource_path(relative_path): base_path = getattr(sys, '_MEIPASS', os.path.dirname(os.path.abspath(__file__))) return os.path.join(base_path, relative_path)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_resource_path():\n return os.path.join(os.path.dirname(__file__), \"resources\") + os.path.sep", "def resourcePath(relative):\r\n try:\r\n # PyInstaller creates a temp folder and stores path in _MEIPASS\r\n base_path = sys._MEIPASS\r\n except Exception:\r\n base_path = os.pa...
[ "0.83695436", "0.8280479", "0.82485795", "0.8139178", "0.8114118", "0.80985415", "0.80940944", "0.80797124", "0.80677074", "0.80673695", "0.8062465", "0.8062465", "0.8062465", "0.8062465", "0.8062465", "0.8062465", "0.8062465", "0.80569947", "0.80545217", "0.80448323", "0.804...
0.78359824
49
Returns a list of all of the tif files (diaries) present in DIARIES_TO_ENCODE_DIR
def on_get(self, req, resp): resp.set_header('Content-Type', 'text/json') tif_paths = encode.get_files_in_directory(DIARIES_TO_ENCODE_DIR, ".tif") zip_paths = encode.get_files_in_directory(DIARIES_TO_ENCODE_DIR, ".zip") diaries_paths = tif_paths + zip_paths def extract_file_name(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_all_image_paths(self):\n image_paths, image_labels = [], []\n for directory_name, subdirectory_list, file_list in os.walk(self.root_directory):\n for file_name in file_list:\n if file_name.endswith(('.jpg',)):\n image_paths.append(os.path.join(dire...
[ "0.628644", "0.62454176", "0.61320674", "0.6116978", "0.6085372", "0.6031725", "0.60101855", "0.60101503", "0.60044205", "0.6000042", "0.59953046", "0.59837866", "0.5980264", "0.59779716", "0.5973886", "0.5972864", "0.5968313", "0.59581745", "0.5953689", "0.59462696", "0.5938...
0.62769246
1
when the license will be expired? (alias of property 'expireDate') Only available for scenerio 'ValidBetween' and 'ExpireAfter'
def timeEnd(self)->datetime: if self._scenario == LM_HardDate.Scenario.ValidSince: raise SdkError("timeEnd not defined for scenario 'ValidSince'") return self._lic.params['timeEnd'].value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def check_content_expiry_date(self):\n\n if self.expire_date < datetime.now():\n self.state = 'disabled'", "def get_expiry():\n\n return get_or_append_details('expiry', \"Please enter your expiry date, two digits for the month and two digits for the year\")", "def expires_on(self) -> Optio...
[ "0.71121967", "0.69472307", "0.67599267", "0.6701658", "0.6638357", "0.6626451", "0.6601654", "0.6569475", "0.6546304", "0.6534297", "0.64989316", "0.6485509", "0.6483282", "0.6468527", "0.64628804", "0.64622474", "0.6448846", "0.6445389", "0.64259046", "0.6408555", "0.640854...
0.0
-1
when the license will be expired? (alias of property 'timeEnd')
def expireDate(self)->datetime: return self.timeEnd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def expiration_time(self) -> str:\n return pulumi.get(self, \"expiration_time\")", "def expiration(self) -> Optional[str]:\n return pulumi.get(self, \"expiration\")", "def expired_time(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"expired_time\")", "def expired(self):\n\n ...
[ "0.67641264", "0.6696843", "0.66515046", "0.66509277", "0.6610403", "0.656929", "0.65620375", "0.65516114", "0.6507877", "0.64807945", "0.6467765", "0.6453672", "0.6418264", "0.639546", "0.6387627", "0.63807845", "0.63801044", "0.6378822", "0.63490885", "0.63476145", "0.63427...
0.71000206
0
when the license will be expired?
def expireDate(self)->datetime: return self.firstAccessDate + timedelta(seconds=self.expirePeriodInSeconds)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_code_expiry():\n return now() + EXPIRE_CODE_DELTA", "def get_code_expiry():\n return now() + EXPIRE_CODE_DELTA", "def get_expiry():\n\n return get_or_append_details('expiry', \"Please enter your expiry date, two digits for the month and two digits for the year\")", "def test_a_renew_non_acti...
[ "0.6502669", "0.6502669", "0.63825923", "0.6243472", "0.62422293", "0.62250936", "0.621007", "0.6202899", "0.6199005", "0.61650926", "0.6025396", "0.6015212", "0.59892833", "0.5988312", "0.5951967", "0.59401673", "0.5879115", "0.5862722", "0.5857643", "0.58348924", "0.5826558...
0.0
-1
Do not return anything, modify head inplace instead.
def reorderList(self, head: ListNode) -> None: if head is None: return head dummy_head = ListNode(-1) slow = head fast = head while fast.next and fast.next.next: fast = fast.next.next slow = slow.next start = slow.next slow.next...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def head(self, head):\n\n self._head = head", "def move_to_head(self, node):\n if node is self.head:\n return\n value = node.value\n self.delete(node)\n self.add_to_head(value)", "def _move_to_head(self, node):\n self._remove_node(node)\n self._add_no...
[ "0.7219555", "0.6802151", "0.6732843", "0.6622861", "0.6519117", "0.645578", "0.6356975", "0.6350543", "0.6307778", "0.62905186", "0.62327766", "0.6226802", "0.62017876", "0.62017876", "0.62017876", "0.62017876", "0.6200976", "0.61944014", "0.6174915", "0.6148879", "0.6122101...
0.646506
5
Convert a Django QueryDict to a Python dict. Singlevalue fields are put in directly, and for multivalue fields, a list of all values is stored at the field's key.
def qdict_to_dict(qdict): return {k: v[0] if len(v) == 1 else v for k, v in qdict.lists()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _qs_to_dict(self, qs):\n l = serializers.serialize('python', qs)\n for d in l:\n fields = d.pop('fields')\n d.update(fields)\n d['id'] = d['pk']\n return l", "def _query_to_dict(self, query: MultiDict):\n return {\n key: values\n if len(values := que...
[ "0.7177253", "0.6882432", "0.6703609", "0.6422243", "0.61960906", "0.61915344", "0.6058894", "0.6004556", "0.5996706", "0.5989409", "0.5976986", "0.5966511", "0.58903503", "0.5871451", "0.5837274", "0.57844764", "0.5747051", "0.5720957", "0.5710843", "0.5693143", "0.5680356",...
0.5946993
12
Get a JWT to use for accessing the api. Works outside of a session context by posting the user credentials. This is conceptually equivalent to logging in via the login form.
def get_jwt() -> Tuple[str, int]: if current_user and current_user.is_authenticated: return jsonify(jwt=create_jwt_for_user(current_user)), 200 credentials = request.get_json(force=True) if not credentials or 'email' not in credentials or 'password' not in credentials: r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_jwt() -> str:\n LOGGER.debug(\"Retrieving JWT...\")\n\n args = {\n \"url\": \"{0}/auth\".format(CONFIG['dojot']['url']),\n \"data\": json.dumps({\n \"username\": CONFIG['dojot']['user'],\n \"passwd\": CONFIG['dojot']['passwd'],\n ...
[ "0.73661584", "0.731229", "0.71811175", "0.7171735", "0.7134992", "0.7123959", "0.7104005", "0.7083192", "0.6940137", "0.69368905", "0.6917943", "0.69004697", "0.69004697", "0.68851215", "0.68225694", "0.67415255", "0.6697167", "0.66344273", "0.65778786", "0.6576136", "0.6542...
0.72073716
2
Calculate the great circle distance between two points on the earth (specified in decimal degrees)
def haversine(lon1, lat1, lon2, lat2, in_miles=True): lon1, lat1, lon2, lat2 = map(radians, [lon1, lat1, lon2, lat2]) dlon = lon2 - lon1 dlat = lat2 - lat1 a = sin(dlat/2.0)**2 + cos(lat1) * cos(lat2) * sin(dlon/2.0)**2 c = 2.0 * asin(sqrt(a)) R = 3956.0 if in_miles else 6371.0 return c * R
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def great_circle(lat_1, long_1, lat_2, long_2):\n long_1 = m.radians(long_1)\n lat_1 = m.radians(lat_1)\n long_2 = m.radians(long_2)\n lat_2 = m.radians(lat_2)\n\n d = 2 * 6367.45 * m.asin(\n m.sqrt(haversine(lat_2 - lat_1)\n + m.cos(lat_1)*m.cos(lat_2) *\n haversine(long...
[ "0.81444913", "0.78628397", "0.76311773", "0.7604652", "0.75954515", "0.75949824", "0.7592846", "0.757015", "0.75629693", "0.7554376", "0.752855", "0.7515809", "0.7492531", "0.7465686", "0.7450806", "0.74330103", "0.73909706", "0.73566103", "0.73473287", "0.7329735", "0.73278...
0.0
-1
Sets the affiliate_oid of this Customer. Affiliate oid
def affiliate_oid(self, affiliate_oid): self._affiliate_oid = affiliate_oid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def affiliate_ledger_oid(self, affiliate_ledger_oid):\n\n self._affiliate_ledger_oid = affiliate_ledger_oid", "def affiliate_link_oid(self, affiliate_link_oid):\n\n self._affiliate_link_oid = affiliate_link_oid", "def affiliate_click_oid(self, affiliate_click_oid):\n\n self._affiliate_clic...
[ "0.76087534", "0.7270813", "0.7161406", "0.7089725", "0.5732011", "0.5672323", "0.5389598", "0.53142256", "0.5264382", "0.52219224", "0.5128206", "0.5111839", "0.50619966", "0.4943211", "0.4943211", "0.4943211", "0.4943211", "0.49403697", "0.49381366", "0.49210244", "0.491582...
0.86643445
1
Gets the allow_3rd_party_billing of this Customer. Allow 3rd party billing
def allow_3rd_party_billing(self): return self._allow_3rd_party_billing
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def allow_3rd_party_billing(self, allow_3rd_party_billing):\n\n self._allow_3rd_party_billing = allow_3rd_party_billing", "def allow_purchase_order(self):\n return self._allow_purchase_order", "def billing(self):\n return self._billing", "def is_billing_admin(self):\n return self....
[ "0.7842041", "0.5967459", "0.5716493", "0.5525604", "0.53802145", "0.5296603", "0.5183098", "0.5169147", "0.5169147", "0.51587415", "0.51280606", "0.51212925", "0.51147604", "0.5111317", "0.51015633", "0.5096496", "0.5028336", "0.49712607", "0.49688616", "0.49688616", "0.4943...
0.8492231
0
Gets the allow_cod of this Customer. Allow COD
def allow_cod(self): return self._allow_cod
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def auto_approve_cod(self):\n return self._auto_approve_cod", "def allow_cod(self, allow_cod):\n\n self._allow_cod = allow_cod", "def get_beneficiary_customer_option(self):\n option = 'A'\n bic = ''\n counterparty_reference = self.acm_obj.CounterpartyAccountRef()\n if ...
[ "0.7140277", "0.6337631", "0.6162207", "0.58091205", "0.5691653", "0.56432354", "0.56432354", "0.56432354", "0.56432354", "0.5619494", "0.56113744", "0.55407417", "0.55382687", "0.5525852", "0.54850113", "0.54638743", "0.5450603", "0.5444634", "0.54375887", "0.54375887", "0.5...
0.720659
0
Sets the allow_cod of this Customer. Allow COD
def allow_cod(self, allow_cod): self._allow_cod = allow_cod
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def allow_cod(self):\n return self._allow_cod", "def auto_approve_cod(self, auto_approve_cod):\n\n self._auto_approve_cod = auto_approve_cod", "def _setbeneficiary_customer_no_option_59(self, val):\n self.swift_obj.BeneficiaryCustomer = val\n self.swift_obj.BeneficiaryCustomer.swift...
[ "0.729959", "0.6988769", "0.6086145", "0.5983467", "0.58541125", "0.57755184", "0.5744954", "0.5741068", "0.56729275", "0.55307794", "0.5419211", "0.5359062", "0.53455514", "0.5340476", "0.52812076", "0.5260953", "0.524598", "0.5190892", "0.51724166", "0.5171934", "0.51629126...
0.8570402
0
Gets the allow_purchase_order of this Customer. Allow purchase orders by this customer
def allow_purchase_order(self): return self._allow_purchase_order
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def auto_approve_purchase_order(self):\n return self._auto_approve_purchase_order", "def allow_purchase_order(self, allow_purchase_order):\n\n self._allow_purchase_order = allow_purchase_order", "def is_billing_admin(self):\n return self._is_billing_admin", "def allow_3rd_party_billing(s...
[ "0.67609143", "0.67143464", "0.56554574", "0.5336498", "0.5225903", "0.52243364", "0.51814884", "0.5143573", "0.50079423", "0.49739778", "0.4837262", "0.48365095", "0.48307273", "0.47648245", "0.47585806", "0.47585806", "0.47018978", "0.46895516", "0.46895516", "0.46760073", ...
0.7888027
0
Sets the allow_purchase_order of this Customer. Allow purchase orders by this customer
def allow_purchase_order(self, allow_purchase_order): self._allow_purchase_order = allow_purchase_order
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def allow_purchase_order(self):\n return self._allow_purchase_order", "def auto_approve_purchase_order(self, auto_approve_purchase_order):\n\n self._auto_approve_purchase_order = auto_approve_purchase_order", "def auto_approve_purchase_order(self):\n return self._auto_approve_purchase_orde...
[ "0.7423001", "0.67228186", "0.6052454", "0.5980167", "0.5460318", "0.5276938", "0.5170954", "0.5079696", "0.50667834", "0.50303876", "0.50279343", "0.5015787", "0.49910057", "0.49890378", "0.49309596", "0.49174166", "0.48882842", "0.48680675", "0.48383403", "0.48383403", "0.4...
0.8618124
0
Gets the allow_quote_request of this Customer. Allow quote request
def allow_quote_request(self): return self._allow_quote_request
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def allow_quote_request(self, allow_quote_request):\n\n self._allow_quote_request = allow_quote_request", "def allow_purchase_order(self):\n return self._allow_purchase_order", "def get_enable_sgxquotehelper(self) -> bool:\n # determine the value of constants\n addon_consts = self.g...
[ "0.72689456", "0.6126457", "0.5860586", "0.5839955", "0.577016", "0.5698457", "0.56263775", "0.5525105", "0.53959376", "0.53721935", "0.53359437", "0.52436936", "0.5215139", "0.51862925", "0.5181369", "0.515366", "0.5148207", "0.5140561", "0.51130056", "0.51130056", "0.505698...
0.7837449
0
Sets the allow_quote_request of this Customer. Allow quote request
def allow_quote_request(self, allow_quote_request): self._allow_quote_request = allow_quote_request
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def allow_quote_request(self):\n return self._allow_quote_request", "def allow_purchase_order(self, allow_purchase_order):\n\n self._allow_purchase_order = allow_purchase_order", "def allow_3rd_party_billing(self, allow_3rd_party_billing):\n\n self._allow_3rd_party_billing = allow_3rd_part...
[ "0.7633311", "0.6629769", "0.62486017", "0.6129808", "0.5815442", "0.5715786", "0.5680128", "0.55917376", "0.558616", "0.54518247", "0.5450312", "0.53812516", "0.53521806", "0.52422243", "0.52322334", "0.51129276", "0.5105395", "0.5093881", "0.50309175", "0.49818915", "0.4974...
0.8899058
0
Gets the allow_selection_of_address_type of this Customer. Allow selection of residential or business address type
def allow_selection_of_address_type(self): return self._allow_selection_of_address_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def allow_selection_of_address_type(self, allow_selection_of_address_type):\n\n self._allow_selection_of_address_type = allow_selection_of_address_type", "def get_type(self):\n types = dict(ADDRESS_TYPE_CHOICES)\n return types.get(self.address_type, \"N/A\")", "def address_type(self) -> st...
[ "0.69965714", "0.6991451", "0.6518308", "0.64159715", "0.5924022", "0.5737748", "0.55365396", "0.49901265", "0.4929045", "0.49041137", "0.48814216", "0.48382127", "0.48241264", "0.4792106", "0.4775736", "0.4775736", "0.47209972", "0.4680714", "0.46388882", "0.4633582", "0.463...
0.75989187
0
Sets the allow_selection_of_address_type of this Customer. Allow selection of residential or business address type
def allow_selection_of_address_type(self, allow_selection_of_address_type): self._allow_selection_of_address_type = allow_selection_of_address_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def allow_selection_of_address_type(self):\n return self._allow_selection_of_address_type", "def address_type(self, address_type):\n\n self._address_type = address_type", "def _set_address_type(self, v, load=False):\n try:\n t = YANGDynClass(v,base=unicode, is_leaf=True, yang_name=\"addre...
[ "0.7869283", "0.6493774", "0.5815577", "0.55564404", "0.5498073", "0.5162351", "0.51533425", "0.50732017", "0.5067141", "0.50300115", "0.49828735", "0.49612227", "0.4907661", "0.48751763", "0.4806331", "0.4792663", "0.4764711", "0.47517994", "0.47366992", "0.47317573", "0.471...
0.8617997
0
Gets the auto_approve_cod of this Customer. Auto approve COD
def auto_approve_cod(self): return self._auto_approve_cod
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def auto_approve_cod(self, auto_approve_cod):\n\n self._auto_approve_cod = auto_approve_cod", "def auto_approve_purchase_order(self):\n return self._auto_approve_purchase_order", "def cauto(self):\n return self['cauto']", "def cauto(self):\n return self[\"cauto\"]", "def get_ben...
[ "0.75147635", "0.61069083", "0.602281", "0.59706914", "0.5576524", "0.5553883", "0.5525107", "0.551598", "0.5461789", "0.5355563", "0.5319641", "0.5279175", "0.5263035", "0.5213337", "0.5209038", "0.51998585", "0.51813096", "0.51149994", "0.5029494", "0.5011473", "0.5005755",...
0.8591699
0
Sets the automatic_merchant_notes of this Customer. Automatic merchant notes are added to every order placed
def automatic_merchant_notes(self, automatic_merchant_notes): self._automatic_merchant_notes = automatic_merchant_notes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def automatic_merchant_notes(self):\n return self._automatic_merchant_notes", "def notes(self, notes):\n\n self._notes = notes", "def notes(self, notes):\n\n self._notes = notes", "def notes(self, notes):\n\n self._notes = notes", "def notes(self, notes):\n\n self._notes ...
[ "0.703403", "0.58362395", "0.58362395", "0.58362395", "0.58362395", "0.58362395", "0.5670964", "0.5481556", "0.5418983", "0.5361266", "0.5322753", "0.5322753", "0.52970904", "0.5255368", "0.5028528", "0.50151944", "0.499326", "0.4979043", "0.49085563", "0.49059683", "0.488207...
0.9199884
0
Gets the billing of this Customer. Billing addresses for this customer
def billing(self): return self._billing
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def billing_contact(self):\n return self._billing_contact", "def billing_info(self):\n return self._billing_info", "def get_billing_address(self):\n if self.billing_address:\n return self.billing_address.address_1\n else:\n subscription_products = SubscriptionP...
[ "0.72947", "0.7290175", "0.7204884", "0.7195709", "0.70504606", "0.70504606", "0.70504606", "0.67585707", "0.67585707", "0.67285264", "0.67285264", "0.64269286", "0.63302034", "0.6261419", "0.6181848", "0.61207205", "0.61158204", "0.6039026", "0.5992446", "0.5992446", "0.5955...
0.72648424
2
Sets the billing of this Customer. Billing addresses for this customer
def billing(self, billing): self._billing = billing
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def billing_contact(self, billing_contact):\n\n self._billing_contact = billing_contact", "def billing_currency(self, billing_currency):\n\n self._billing_currency = billing_currency", "def billing_info(self, billing_info):\n\n self._billing_info = billing_info", "def default_billing(sel...
[ "0.7252403", "0.69182295", "0.6791327", "0.67907035", "0.5948151", "0.5948151", "0.5920023", "0.58599746", "0.58599746", "0.58096415", "0.5740131", "0.564657", "0.56100035", "0.5595598", "0.55726916", "0.55726916", "0.5554115", "0.5554115", "0.5554115", "0.54979783", "0.54383...
0.7718957
0
Sets the business_notes of this Customer. Business notes (internally visible only)
def business_notes(self, business_notes): if business_notes is not None and len(business_notes) > 2000: raise ValueError("Invalid value for `business_notes`, length must be less than or equal to `2000`") self._business_notes = business_notes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def notes(self, notes):\n\n self._notes = notes", "def notes(self, notes):\n\n self._notes = notes", "def notes(self, notes):\n\n self._notes = notes", "def notes(self, notes):\n\n self._notes = notes", "def notes(self, notes):\n\n self._notes = notes", "def business_no...
[ "0.64642525", "0.64642525", "0.64642525", "0.64642525", "0.64642525", "0.6354019", "0.63490003", "0.61379", "0.60320604", "0.60020274", "0.5867036", "0.58275306", "0.56988704", "0.56658614", "0.5663424", "0.5643399", "0.5632016", "0.56203383", "0.55994624", "0.5532145", "0.53...
0.79783094
0
Sets the cards of this Customer. Credit Cards for this customer
def cards(self, cards): self._cards = cards
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cards(\n self,\n cards: Union[List[Tuple[int, str, str]], List[Any]]\n ) -> None:\n self._cards: List[List[Tuple[int, str, str]]] = [cards]", "def card(self, c=None):\n if c: self._card = c\n return self._card", "def cards(self) -> None:\n self._cards = ...
[ "0.6608554", "0.6414294", "0.63057697", "0.6276307", "0.61572474", "0.61043686", "0.6075938", "0.6067061", "0.60300416", "0.6012156", "0.5965581", "0.5942135", "0.5937874", "0.5890377", "0.5870525", "0.5861895", "0.58576655", "0.58041275", "0.5801309", "0.57943904", "0.574153...
0.7751188
1
Gets the customer_profile_oid of this Customer. Customer profile object identifier
def customer_profile_oid(self): return self._customer_profile_oid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_profile_id(self, profile):\n return profile['id']", "def customer_profile_oid(self, customer_profile_oid):\n\n self._customer_profile_oid = customer_profile_oid", "def get_profile_id(self):\n # get list of user profile\n results = self.service.userProfiles().list().execute()...
[ "0.7198418", "0.717386", "0.65548843", "0.6479222", "0.6393283", "0.6392906", "0.6084148", "0.6040575", "0.5961779", "0.58965856", "0.5801002", "0.57967854", "0.57367575", "0.572492", "0.5722918", "0.57189894", "0.5676127", "0.56760955", "0.5643734", "0.5589623", "0.55654556"...
0.91109216
0
Sets the customer_profile_oid of this Customer. Customer profile object identifier
def customer_profile_oid(self, customer_profile_oid): self._customer_profile_oid = customer_profile_oid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def customer_profile_oid(self):\n return self._customer_profile_oid", "def set_customer_id(self, case_obj: Family) -> None:\n self._set_customer_id(case_obj.customer.internal_id)", "def test_update_profile(self):\n self.cim.update_profile(\n customer_id=u\"222\",\n de...
[ "0.7076937", "0.67138827", "0.6116765", "0.6058371", "0.5934972", "0.5934972", "0.5934972", "0.5934972", "0.5908919", "0.5619792", "0.56103975", "0.547714", "0.5429392", "0.5404184", "0.53489465", "0.53489465", "0.5315293", "0.5237773", "0.5218106", "0.5215164", "0.5189874", ...
0.90416175
0
Gets the dhl_account_number of this Customer. DHL account number
def dhl_account_number(self): return self._dhl_account_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def account_number(self):\n return self.__account_number", "def fedex_account_number(self):\n return self._fedex_account_number", "def account_id(self) -> pulumi.Output[int]:\n return pulumi.get(self, \"account_id\")", "def account_id(self):\n return self._account_id", "def acco...
[ "0.7401053", "0.7113728", "0.6644579", "0.66252136", "0.65284073", "0.64544874", "0.6369937", "0.6369937", "0.6369937", "0.6369937", "0.6369937", "0.6369937", "0.6369937", "0.6369937", "0.6347585", "0.6347585", "0.6347585", "0.6261331", "0.6258378", "0.61720884", "0.614197", ...
0.87155145
0
Sets the dhl_account_number of this Customer. DHL account number
def dhl_account_number(self, dhl_account_number): if dhl_account_number is not None and len(dhl_account_number) > 20: raise ValueError("Invalid value for `dhl_account_number`, length must be less than or equal to `20`") self._dhl_account_number = dhl_account_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def account_number(self, account_number):\n\n self._account_number = account_number", "def dhl_account_number(self):\n return self._dhl_account_number", "def account_id(self, account_id):\n self._account_id = account_id", "def account_id(self, account_id):\n\n self._account_id = a...
[ "0.7060354", "0.6705006", "0.6658462", "0.6630897", "0.6630897", "0.6630897", "0.6630897", "0.6630897", "0.6630897", "0.6452872", "0.62505466", "0.6250299", "0.6205293", "0.6181864", "0.6048758", "0.59952277", "0.5972092", "0.5875164", "0.5875164", "0.5654062", "0.56170523", ...
0.79253507
0
Sets the email of this Customer. Email address of this customer profile
def email(self, email): self._email = email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def customer_email(self, customer_email):\n self._customer_email = customer_email", "def setEmail(self, email):\n self.email = email\n return self", "def email(self, email):\n if self.local_vars_configuration.client_side_validation and email is None: # noqa: E501\n raise...
[ "0.79246676", "0.77046865", "0.75274587", "0.7285081", "0.72485375", "0.7228012", "0.7108281", "0.70115554", "0.70115554", "0.6945767", "0.67852265", "0.67646456", "0.67646456", "0.67646456", "0.6760977", "0.6642972", "0.6578486", "0.65254116", "0.6447955", "0.64334023", "0.6...
0.7325966
12
Gets the exempt_shipping_handling_charge of this Customer. Exempt shipping handling charge
def exempt_shipping_handling_charge(self): return self._exempt_shipping_handling_charge
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def exempt_shipping_handling_charge(self, exempt_shipping_handling_charge):\n\n self._exempt_shipping_handling_charge = exempt_shipping_handling_charge", "def free_shipping(self):\n return self._free_shipping", "def shipping(self):\n return self._shipping", "def no_free_shipping(self):\n...
[ "0.77267236", "0.604075", "0.58197254", "0.57920736", "0.55682796", "0.5441815", "0.5383163", "0.51727533", "0.512057", "0.5114849", "0.50728697", "0.5069911", "0.49859795", "0.49859795", "0.49859795", "0.49800357", "0.49667436", "0.48684055", "0.4787322", "0.46924272", "0.46...
0.8105245
0
Gets the fedex_account_number of this Customer. FedEx account number
def fedex_account_number(self): return self._fedex_account_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def account_number(self):\n return self.__account_number", "def dhl_account_number(self):\n return self._dhl_account_number", "def fax_number(self) -> str:\n return self._fax_number", "def fedex_account_number(self, fedex_account_number):\n if fedex_account_number is not None and ...
[ "0.74003214", "0.71416545", "0.6356235", "0.63208187", "0.6290778", "0.62107015", "0.6193884", "0.6193884", "0.6128988", "0.6084942", "0.6035027", "0.60067254", "0.5984775", "0.59829587", "0.59829587", "0.59829587", "0.59829587", "0.59829587", "0.59829587", "0.59829587", "0.5...
0.89876455
0
Sets the fedex_account_number of this Customer. FedEx account number
def fedex_account_number(self, fedex_account_number): if fedex_account_number is not None and len(fedex_account_number) > 20: raise ValueError("Invalid value for `fedex_account_number`, length must be less than or equal to `20`") self._fedex_account_number = fedex_account_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def account_number(self, account_number):\n\n self._account_number = account_number", "def funding_account_account_number(self, funding_account_account_number):\n\n self._funding_account_account_number = funding_account_account_number", "def set_AccountNumber(self, value):\n super(AddressV...
[ "0.74573594", "0.7229201", "0.71216977", "0.70944804", "0.6651318", "0.6646043", "0.65071005", "0.6290016", "0.6272736", "0.6272736", "0.6272736", "0.6272736", "0.6272736", "0.6272736", "0.6218557", "0.6111127", "0.6037672", "0.6011316", "0.6011316", "0.6010286", "0.60044", ...
0.813925
0
Gets the free_shipping of this Customer. This customer always receives free shipping
def free_shipping(self): return self._free_shipping
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def no_free_shipping(self):\n return self._no_free_shipping", "def shipping(self):\n return self._shipping", "def free_shipping_minimum(self):\n return self._free_shipping_minimum", "def free_shipping(self, free_shipping):\n\n self._free_shipping = free_shipping", "def default_s...
[ "0.7669286", "0.741889", "0.71900266", "0.70521456", "0.67583835", "0.6373855", "0.6373855", "0.6373855", "0.61251867", "0.60634303", "0.60438746", "0.5983843", "0.5968113", "0.5928866", "0.5830658", "0.5830658", "0.5830658", "0.5739227", "0.56944793", "0.5381744", "0.5336955...
0.8760745
0
Sets the free_shipping of this Customer. This customer always receives free shipping
def free_shipping(self, free_shipping): self._free_shipping = free_shipping
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def no_free_shipping(self, no_free_shipping):\n\n self._no_free_shipping = no_free_shipping", "def free_shipping_minimum(self, free_shipping_minimum):\n\n self._free_shipping_minimum = free_shipping_minimum", "def free_shipping(self):\n return self._free_shipping", "def shipping(self, sh...
[ "0.76049024", "0.74291825", "0.7088798", "0.69693017", "0.6842088", "0.64798516", "0.6400927", "0.6377615", "0.60017496", "0.5938942", "0.58684", "0.57832587", "0.5568632", "0.5559777", "0.551827", "0.5496339", "0.548488", "0.53332", "0.5299109", "0.5283655", "0.5253552", "...
0.8968495
0
Gets the free_shipping_minimum of this Customer. If free_shipping is true, this is the minimum subtotal required for free shipping
def free_shipping_minimum(self): return self._free_shipping_minimum
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def free_shipping_minimum(self, free_shipping_minimum):\n\n self._free_shipping_minimum = free_shipping_minimum", "def free_shipping(self):\n return self._free_shipping", "def minimum_subtotal(self):\n return self._minimum_subtotal", "def get_cost_min(self) -> float:\n\n return mi...
[ "0.71919805", "0.65706813", "0.62824637", "0.61553365", "0.6098792", "0.6017739", "0.5893278", "0.5801281", "0.5801281", "0.5801281", "0.5702375", "0.5702375", "0.56869984", "0.56866705", "0.563594", "0.5615321", "0.56026393", "0.5598942", "0.5598942", "0.55741274", "0.557122...
0.859469
0
Sets the free_shipping_minimum of this Customer. If free_shipping is true, this is the minimum subtotal required for free shipping
def free_shipping_minimum(self, free_shipping_minimum): self._free_shipping_minimum = free_shipping_minimum
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def free_shipping_minimum(self):\n return self._free_shipping_minimum", "def free_shipping(self, free_shipping):\n\n self._free_shipping = free_shipping", "def minimum_subtotal(self, minimum_subtotal):\n\n self._minimum_subtotal = minimum_subtotal", "def userMinimum(self, new_min: float)...
[ "0.77676463", "0.6570098", "0.62843555", "0.57924306", "0.57408816", "0.56441414", "0.55142075", "0.55142075", "0.55142075", "0.5502578", "0.55017036", "0.54843414", "0.5362469", "0.5362469", "0.5357235", "0.532357", "0.53184587", "0.52887356", "0.52453333", "0.5228891", "0.5...
0.87866485
0
Gets the last_modified_by of this Customer. Last modified by
def last_modified_by(self): return self._last_modified_by
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def last_modified_by(self) -> str:\n return pulumi.get(self, \"last_modified_by\")", "def last_modified_by(self) -> Optional[str]:\n return pulumi.get(self, \"last_modified_by\")", "def last_modified_by(self) -> Optional[str]:\n return pulumi.get(self, \"last_modified_by\")", "def last_m...
[ "0.8235685", "0.8017792", "0.8017792", "0.8017792", "0.8017792", "0.8017792", "0.8017792", "0.7639493", "0.70534116", "0.6773382", "0.67333853", "0.67116463", "0.67116463", "0.67065734", "0.67065734", "0.67065734", "0.66933197", "0.66126966", "0.66126966", "0.66126966", "0.66...
0.83475846
0
Gets the maximum_item_count of this Customer. Maximum item count
def maximum_item_count(self): return self._maximum_item_count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def maximum_count(self) -> pulumi.Input[int]:\n return pulumi.get(self, \"maximum_count\")", "def max_count(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"max_count\")", "def max_count(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"max_count\")", "de...
[ "0.75995594", "0.7265897", "0.7265897", "0.7265897", "0.7265897", "0.7265897", "0.7142318", "0.6973748", "0.6787457", "0.67863685", "0.6613611", "0.65463185", "0.6467402", "0.64218104", "0.63996893", "0.6346469", "0.6316261", "0.6314151", "0.6259814", "0.6258982", "0.6200801"...
0.845394
0
Sets the maximum_item_count of this Customer. Maximum item count
def maximum_item_count(self, maximum_item_count): self._maximum_item_count = maximum_item_count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def maximum_item_count(self):\n return self._maximum_item_count", "def set_max_order_count(self, max_count, on_error='fail'):\n control = MaxOrderCount(on_error, max_count)\n self.register_trading_control(control)", "def test_maximum_items(self):\n total = 4711\n self.es.set_...
[ "0.7334156", "0.70443636", "0.6796199", "0.67268306", "0.655104", "0.655104", "0.64147395", "0.6372613", "0.63654196", "0.634501", "0.6318012", "0.6311085", "0.62831736", "0.62468594", "0.62468594", "0.62468594", "0.6206086", "0.61387783", "0.61294806", "0.6127082", "0.610306...
0.872912
0
Gets the minimum_item_count of this Customer. Minimum item count
def minimum_item_count(self): return self._minimum_item_count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def minimum_count(self) -> pulumi.Input[int]:\n return pulumi.get(self, \"minimum_count\")", "def min_count(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"min_count\")", "def min_count(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"min_count\")", "de...
[ "0.7816407", "0.7625865", "0.7625865", "0.7625865", "0.7625865", "0.7296524", "0.72911197", "0.72911197", "0.69191253", "0.68725276", "0.67676115", "0.6743445", "0.6742978", "0.6685081", "0.66655296", "0.64354056", "0.64217025", "0.6236613", "0.620296", "0.6189136", "0.611279...
0.85860914
0
Sets the minimum_item_count of this Customer. Minimum item count
def minimum_item_count(self, minimum_item_count): self._minimum_item_count = minimum_item_count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setMinCount(self, count):\n return self._set(minCount=count)", "def setMinCount(self, minCount):\n return self._set(minCount=minCount)", "def setMinCount(self, minCount):\n return self._set(minCount=minCount)", "def minimum_item_count(self):\n return self._minimum_item_count",...
[ "0.7642084", "0.74678373", "0.74678373", "0.743934", "0.6563707", "0.64136785", "0.6410881", "0.6410881", "0.63819873", "0.62920946", "0.6269155", "0.6251639", "0.62381595", "0.6220323", "0.6220323", "0.6220323", "0.616319", "0.6150114", "0.61369026", "0.61369026", "0.6056168...
0.88710034
0