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 code returns just the days between two different dates
def arrayofdays(month1,day1,year1,month2,day2,year2): return (arrayofdaysmonthsyears(month1,day1,year1,month2,day2,year2))[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def diff_dates(date1, date2):\n\n return abs(date2 - date1).days", "def days_between(self, d1, d2):\n self.is_not_used()\n try:\n d1 = self.format_date(d1)\n d2 = self.format_date(d2)\n d1 = datetime.strptime(d1, '%Y-%m-%d')\n d2 = datetime.strptime(d2...
[ "0.8073159", "0.7829226", "0.770696", "0.7553926", "0.75506186", "0.7539299", "0.7492353", "0.7486915", "0.7422894", "0.7389606", "0.73186207", "0.73101074", "0.7307147", "0.72456884", "0.72410715", "0.7149895", "0.7146205", "0.70848674", "0.7081323", "0.69427603", "0.6894136...
0.60504794
73
This code returns just the months between two different dates
def arrayofmonths(month1,day1,year1,month2,day2,year2): return (arrayofdaysmonthsyears(month1,day1,year1,month2,day2,year2))[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def month_difference(start_date, end_date):\n diff = get_date_difference(start_date, end_date, date_format=app_constant.DATE_FORMAT)\n return (diff.years * 12) + diff.months", "def months_between(start, end):\n assert datetime.date(start.year, start.month, 1) <= datetime.date(end.year, end.month, 1), \\...
[ "0.7813922", "0.765452", "0.75770473", "0.7568044", "0.7483795", "0.74321073", "0.710791", "0.67885107", "0.6783147", "0.67706555", "0.6765924", "0.673922", "0.67365223", "0.6729649", "0.66512746", "0.6650725", "0.6649487", "0.6613759", "0.6611204", "0.6597614", "0.6579583", ...
0.67154205
14
Convert categorical labels to onehot labels. Values of categorical labels must be in {0, 1, ..., n_class1}. This function performs the most
def one_hot(y, n_class): # NOTE: this function is not differentiable assert n_class >= 2 if len(y.shape)==1: y.unsqueeze_(0) assert len(y.shape)==2 if isinstance(y, Variable): y = y.data # NOTE: y cannot be a Variable because scatter_ does not support autograd original_dtype = y.type() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def one_hot(labels, classes=None):\n return K.utils.to_categorical(labels, classes)", "def one_hot(labels, classes=None):\n\n one_hot_ = K.utils.to_categorical(labels, classes)\n return(one_hot_)", "def dense_to_one_hot(labels, n_classes=2):\n labels = np.array(labels)\n n_labels = labels.shape[...
[ "0.870135", "0.85436225", "0.84428865", "0.8300739", "0.8236258", "0.8233323", "0.8231819", "0.82203096", "0.82161033", "0.8214056", "0.821402", "0.8213031", "0.8213031", "0.8213031", "0.81916904", "0.817149", "0.8150457", "0.8149228", "0.81477386", "0.81477386", "0.81477386"...
0.0
-1
Returns all untracked file.
def _get_untracked_files(wit_path): tracked_files = _get_staging_area_files(wit_path) all_files = set(_get_all_files_names(wit_path)) return all_files.difference(tracked_files)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def retrieve_untracked_files(self):\n untracked_files = set(self.retrieve_all_files()) \\\n - set(self.retrieve_tracked_files())\n\n return untracked_files", "def untracked_files():\n res = run(\n \"cd %s ; git status\" % (SOURCE_ABSOLUTE),\n stdout=PIPE, stderr=PIPE,\n ...
[ "0.8508616", "0.8320727", "0.7861658", "0.74233806", "0.7393364", "0.7393029", "0.6827578", "0.68073595", "0.6698855", "0.66741437", "0.66156536", "0.66148627", "0.65413606", "0.6512468", "0.6448637", "0.64399976", "0.6422027", "0.63734674", "0.63544136", "0.63463354", "0.632...
0.78774625
2
Safely open and returns a file
def _open_file(path): if 'None.txt' in path: return None try: with open(path, 'r', encoding='utf-8') as file: return file.read().strip() except UnicodeDecodeError: try: with open(path, 'rb') as file: return file.read().strip() except O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def open(self):\n return File(open(self.get_path()), \"rb\")", "def open_file(filename):\n print(\"filename: %s\\n\" % filename)\n if filename:\n return open(filename, \"w\")\n else:\n return tempfile.NamedTemporaryFile(delete=False)", "def GetFile(file_name):\n\n the_file = None...
[ "0.7346158", "0.73065025", "0.7242902", "0.72067326", "0.7186295", "0.7168722", "0.7090136", "0.7043284", "0.6976301", "0.69615", "0.6953494", "0.69343406", "0.6926855", "0.68666905", "0.67864716", "0.67651415", "0.67471504", "0.67154986", "0.6701198", "0.66540927", "0.664533...
0.6987824
8
Returns head value, if val is branch, returns branch value.
def _get_head(wit_path): head = _get_references_data(wit_path)['HEAD'] if len(head) == 40: return head return _get_references_data(wit_path)[head]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def front_value(self):\n if self.is_empty():\n return None\n return self.head.value", "def first_value(self):\n if not self.is_empty():\n return self.data[self.head]\n return None", "def lookup(self, val):\n if val < self.val:\n if self.left i...
[ "0.60168654", "0.5915973", "0.58632296", "0.57993495", "0.5774648", "0.5762712", "0.557993", "0.5578791", "0.55666226", "0.55138266", "0.5385048", "0.5345041", "0.53083426", "0.5295463", "0.529044", "0.525954", "0.52545583", "0.5248066", "0.5244426", "0.5205328", "0.5194956",...
0.0
-1
Returns True if user can checkout, False otherwise.
def _can_checkout(wit_path) -> bool: current_id = _get_head(wit_path) changes_to_be_committed = _return_as_string(_get_changes_to_be_committed, wit_path, current_id) changes_not_staged_for_commit = _return_as_string(_get_changes_not_staged_for_commit, wit_path) if changes_to_be_committed + changes_not_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def has_permission(self, request, view):\n if request.user.merchant:\n return True\n\n return False", "def user_allow_credit(self):\n try:\n return self.user.creditAllowed()\n except AttributeError:\n return False", "def current_user_has_access(self)...
[ "0.6917804", "0.6782131", "0.6449372", "0.6448919", "0.6448919", "0.6448919", "0.6426006", "0.6401857", "0.63779336", "0.6370299", "0.6297217", "0.62911576", "0.6256449", "0.6229915", "0.620192", "0.61194485", "0.61012566", "0.60869366", "0.60635626", "0.60627145", "0.6023969...
0.5666282
53
Returns a full path.
def get_full_path(path, *args): return os.path.join(_search_parent_dir(".wit"), *args, path)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def full_path(self):\n fullpath = os.path.join(self.path, self.name)\n if self.path == \"\":\n fullpath = self.name\n return fullpath", "def full_path(self):\n return os.path.abspath(self.path)", "def get_full_path(self):\n return self.path_display", "def full_pa...
[ "0.84311265", "0.8403142", "0.8267783", "0.822399", "0.81143826", "0.800147", "0.7861496", "0.7844572", "0.76974267", "0.7693686", "0.7658095", "0.7552325", "0.75466704", "0.7516831", "0.7479574", "0.7477104", "0.7477104", "0.744228", "0.7430227", "0.73944676", "0.7379115", ...
0.699608
81
Initialize layers of the head.
def _init_layers(self): self.relu = nn.ReLU(inplace=True) self.cls_convs = nn.ModuleList() self.reg_convs = nn.ModuleList() for i in range(self.stacked_convs): chn = self.in_channels if i == 0 else self.feat_channels self.cls_convs.append( ConvModu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _init_layers(self):\n self._init_predictor()\n if self.use_edge_fusion:\n self._init_edge_module()", "def _init_layers(self) -> None:\n self.self_attn = MultiheadAttention(**self.self_attn_cfg)\n self.cross_attn = MultiheadAttention(**self.cross_attn_cfg)\n self....
[ "0.7565452", "0.73801965", "0.7378758", "0.70826614", "0.70083666", "0.68058515", "0.6793121", "0.6747672", "0.67046845", "0.6699219", "0.6565106", "0.6552534", "0.6548868", "0.6536724", "0.6533556", "0.65013635", "0.64803135", "0.6478405", "0.6438143", "0.6429889", "0.642896...
0.5935242
54
Initialize weights of the head.
def init_weights(self): for m in self.cls_convs: normal_init(m.conv, std=0.01) for m in self.reg_convs: normal_init(m.conv, std=0.01) normal_init(self.atss_reg, std=0.01) normal_init(self.atss_iou, std=0.01) bias_cls = bias_init_with_prob(0.01) nor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _initialize_weights(self):\n pass", "def init_weights(self):\n # Initialize weights\n self.apply(self._init_weights)", "def setWeightInitializer(self,weights):\n self.init_w = weights", "def init_weights(self):\n # Initialize weights\n self.apply(self._init_weigh...
[ "0.8231931", "0.8066145", "0.8041016", "0.8037346", "0.79638714", "0.78825206", "0.7794443", "0.7718116", "0.76905215", "0.76740956", "0.7660412", "0.76257116", "0.76194113", "0.75636816", "0.7554319", "0.7554319", "0.75442475", "0.75423366", "0.75423366", "0.75423366", "0.75...
0.6649832
95
Forward features from the upstream network.
def forward(self, feats): return multi_apply(self.forward_single, feats, self.scales)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def forward_train(self, *args, **kwargs):\n pass", "def forward(self, X, training=False):\n pass", "def forward(self, features=None):\n\n assert (features is None) == (self.in_features is None), \\\n \"Layer has not been properly configured to take in features!\"\n\n in_d...
[ "0.69998914", "0.67290515", "0.671595", "0.6710372", "0.66852725", "0.6682484", "0.6649977", "0.6626594", "0.660322", "0.65913093", "0.6573614", "0.6568412", "0.6568412", "0.65524113", "0.6550743", "0.65131605", "0.6505302", "0.6499309", "0.6492958", "0.6483335", "0.64765483"...
0.0
-1
Forward feature of a single scale level.
def forward_single(self, x, scale): cls_feat = x reg_feat = x for cls_conv in self.cls_convs: cls_feat = cls_conv(cls_feat) for reg_conv in self.reg_convs: reg_feat = reg_conv(reg_feat) cls_score = self.atss_cls(cls_feat) # we just follow atss, not...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def feature_forward(self, x):\n raise NotImplementedError", "def forward(self, x):\n x = self.features(x)\n return x", "def forward(self, x):\n raise NotImplementedError", "def forward(self, x):\n raise NotImplementedError", "def forward(self, x, scale_param):\n re...
[ "0.74706215", "0.6802623", "0.6517649", "0.6517649", "0.64054585", "0.6321645", "0.6308309", "0.63004625", "0.62860644", "0.6280323", "0.62014645", "0.61801827", "0.61598736", "0.6132955", "0.6126939", "0.6108469", "0.61071557", "0.6105287", "0.61024946", "0.61001235", "0.609...
0.6576237
2
Make TaskInstance.pool field nullable.
def downgrade(): conn = op.get_bind() if conn.dialect.name == "mssql": op.drop_index('ti_pool', table_name='task_instance') # use batch_alter_table to support SQLite workaround with op.batch_alter_table('task_instance') as batch_op: batch_op.alter_column( column_name='pool',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def current_worker_pool():\n try:\n return worker_thread_data.pool\n except AttributeError:\n return None", "def get_default_pool():\n return 'tank'", "def fixup_pool_id ( self ):\n self._pool_id = len ( self._poolstack ) - 1", "def get_default_pool(con):\n try:\n return...
[ "0.5650172", "0.55596757", "0.5353331", "0.5337271", "0.5296021", "0.5238824", "0.52230173", "0.5199503", "0.5184639", "0.5171405", "0.5161301", "0.5128555", "0.5101071", "0.5089326", "0.5060169", "0.50349104", "0.5018925", "0.5018925", "0.5018925", "0.5018925", "0.5018925", ...
0.5516374
2
Return the path of the scikitlearn data dir. This folder is used by some large dataset loaders to avoid downloading the data several times. By default the data dir is set to a folder named 'scikit_learn_data' in the user home folder. Alternatively, it can be set by the 'SCIKIT_LEARN_DATA' environment variable or progra...
def get_data_home(data_home=None): if data_home is None: data_home = environ.get('SCIKIT_LEARN_DATA', join('~', 'scikit_learn_data')) data_home = expanduser(data_home) if not exists(data_home): makedirs(data_home) return data_home
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_data_home(data_home=None):\n if data_home is None:\n data_home = environ.get('SCIKIT_LEARN_DATA',\n join('~', 'scikit_learn_data'))\n data_home = expanduser(data_home)\n if not exists(data_home):\n makedirs(data_home)\n return data_home", "def data...
[ "0.75968814", "0.71279037", "0.71262115", "0.7118099", "0.7111262", "0.7084868", "0.70775115", "0.69804716", "0.6846505", "0.6823967", "0.6819427", "0.6819027", "0.68189764", "0.6803796", "0.67566496", "0.6747034", "0.6722045", "0.6711213", "0.67092144", "0.6703806", "0.66705...
0.760777
0
Validates that a string is a valid password.
def _password_validate(s): if len(s) < 6: raise ValueError('Passwords must be at least 6 characters long') allowed_characters = frozenset(string.ascii_letters + string.digits + string.punctuation) if frozenset(s).issuperset(allowed_characters): raise ValueE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def validate_password(password):\n return isinstance(password, str) and len(password) >= 8 and \\\n re.search(r'[A-Z]', password) and re.search(r'[0-9]', password)", "def is_valid_password(self, password):\n rex = \"^[a-zA-Z0-9@_+-.]{3,}$\"\n return re.match(rex, password)", ...
[ "0.8090008", "0.79375863", "0.79289937", "0.78388894", "0.7812841", "0.77995837", "0.77650505", "0.7710584", "0.76783496", "0.7675625", "0.7666984", "0.76056397", "0.75942874", "0.7573457", "0.75714886", "0.75532836", "0.7550048", "0.75287575", "0.75000453", "0.7447179", "0.7...
0.8182236
0
Validates that a string is a valid database user name. A valid user name should contain 1 to 63 characters. Only numbers, letters and _ are accepted. It should start with a letter.
def _database_username_validate(s): if len(s) < 1 or len(s) > 63: raise ValueError('Database user name must be 1 to 63 characters long') if s[0] not in string.ascii_letters: raise ValueError('Database user name must start with a letter') allowed_characters = frozenset(string.ascii_letters + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def valid_username(username):\n if username is None: # SQLite integrity check\n return False\n if len(username) > 32: # Arbitrary length cap\n return False\n if len(username) < 1: # Not-as-arbitrary length minimum\n return False\n for i in username:\n if i not in config.C...
[ "0.76487416", "0.72674817", "0.7267299", "0.7266123", "0.7256302", "0.72310233", "0.72032243", "0.7191266", "0.71637005", "0.7136669", "0.710456", "0.70482284", "0.7021454", "0.69948703", "0.69630605", "0.6891418", "0.686209", "0.68462014", "0.6845267", "0.68266225", "0.67783...
0.9062802
0
Validates that the user has the permissions to deploy onto project.
def _has_correct_permissions(self, backend: str, project_id: str, active_account: str): # The user must have logged in assert active_account not in ['', None], "User must log in via gcloud" permissions = self.project_client.get_project_permissions(project_id) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _validate(self, backend: str, active_account: str, project_id: str):\n\n if not re.match(r'[a-z][a-z0-9\\-]{5,29}', project_id):\n raise ValueError(\n ('Invalid Google Cloud Platform Project ID \"{}\": '\n 'must be between 6 and 30 characters and contain '\n ...
[ "0.6203533", "0.618772", "0.6107792", "0.6023741", "0.59960055", "0.5897782", "0.5796708", "0.5790149", "0.57479507", "0.5698737", "0.567619", "0.5666286", "0.5647415", "0.56224155", "0.5613108", "0.56051034", "0.55598485", "0.5553362", "0.5551779", "0.55428547", "0.5541554",...
0.51991594
64
Validates that a string is a valid billing account.
def _validate(self, s): billing_accounts = self.billing_client.list_billing_accounts( only_open_accounts=True) billing_account_names = [ account['name'] for account in billing_accounts ] if s not in billing_account_names: raise ValueError( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_bank_name_valid(name_to_check: str):\n def is_name_short_enough():\n return True if len(name_to_check) <= 12 else False\n\n def is_name_only_letter():\n return True if name_to_check.isalpha() else False\n\n return True if is_name_short_enough() and is_name_only_let...
[ "0.60620964", "0.60082495", "0.5830098", "0.58048356", "0.5780237", "0.5731283", "0.5681923", "0.5632114", "0.5631894", "0.5631894", "0.56152564", "0.56152564", "0.5521094", "0.549999", "0.549184", "0.5440781", "0.54108906", "0.5402459", "0.539454", "0.5349611", "0.53391343",...
0.7027748
0
Validates that a string is a valid Django superuser login.
def _validate(self, s: str): if not s.isalnum(): raise ValueError(('Invalid Django superuser login "{}": ' 'must be a alpha numeric').format(s))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _validate(self, s: str):\n if not re.match(r'[^@]+@[^@]+\\.[^@]+', s):\n raise ValueError(('Invalid Django superuser email address \"{}\": '\n 'the format should be like '\n '\"test@example.com\"').format(s))", "def valid_username(u)...
[ "0.73735625", "0.6560459", "0.65513945", "0.65068877", "0.64447784", "0.63863534", "0.6384944", "0.6313611", "0.6269991", "0.62509716", "0.62354004", "0.6147951", "0.60714716", "0.6053061", "0.6015778", "0.6010663", "0.5999254", "0.593467", "0.58872414", "0.587906", "0.585785...
0.80630875
0
Constructor builds the object in base of key(attribute) and value
def __init__(self, **kwargs): for key, value in kwargs.items(): setattr(self, key, value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, key, value):\n self.key = key\n self.value = value", "def __init__(self, key, value):\n self._key = key\n self._value = value", "def __init__(self):\n self.key2value = {}\n self.key2time = {}", "def __init__(self, **kwds ):\n super(M...
[ "0.7652682", "0.74921197", "0.7285332", "0.7069903", "0.6964665", "0.6964665", "0.6964665", "0.6964665", "0.6964665", "0.6964665", "0.6964665", "0.6964665", "0.6964665", "0.6960815", "0.69529074", "0.68062896", "0.66699564", "0.66699564", "0.66699564", "0.66699564", "0.666995...
0.66349906
21
Returns a list of the vertices in ascending degeneracy ordering.
def degeneracy_ordering(self): return sorted(self._adjacency_map, key=self.degree)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def obtener_vertices(self):\n return list(self.vertices.keys())", "def get_vertices(self) -> []:\n return [i for i in self.adj_list]", "def get_vertices(self):\n return list(self.vertices.keys())", "def getVertices(self):\n return list(self.adjList.keys())", "def vertices(self):...
[ "0.7580861", "0.75099766", "0.7351112", "0.7327114", "0.7313946", "0.73047537", "0.7274696", "0.7246054", "0.72299755", "0.71446013", "0.71428335", "0.71249855", "0.71219635", "0.71219635", "0.71219635", "0.7012116", "0.70007056", "0.6975298", "0.6957619", "0.6947617", "0.689...
0.67960286
26
Predict movement of game controler where is epsilon probability randomly move.
def predict_movement(self, data, epsilon): q_actions = self.model.predict( data.reshape(1, 84, 84, NUM_FRAMES), batch_size=1) opt_policy = np.argmax(q_actions) rand_val = np.random.random() if rand_val < epsilon: opt_policy = np.random.randint(0, NUM_ACTIONS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def predict_movement(self, data, epsilon):\n\n q_actions = self.model.predict(data, batch_size = 1)\n opt_policy = np.argmax(q_actions)\n rand_val = np.random.random()\n if rand_val < epsilon:\n opt_policy = np.random.randint(0, NUM_ACTIONS)\n return opt_policy, q_acti...
[ "0.70281255", "0.6196417", "0.6061227", "0.605768", "0.60473865", "0.59866726", "0.5936592", "0.59245133", "0.59172386", "0.58772594", "0.5841917", "0.58364755", "0.5814694", "0.5814694", "0.5782211", "0.5778912", "0.5767939", "0.5750654", "0.5747159", "0.5745239", "0.5745109...
0.6944327
1
Create a Dictionary containing the values of the same features per dataset in one list.
def create_zipper(self, feats=None): if feats is None: feats = self.get_common_features() df_feats = [] # collect all values of the features for each dataframe separately for df in self: feature_values = [list(df[feat].dropna()) for feat in feats] d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_possible_values(self):\n possible_values = {}\n for f in self.__features:\n possible_values[f] = list(self.__data[f].unique())\n return possible_values", "def get_feature_differences(self):\n feats = self.get_feature_sets()\n\n # create a dictionary storing t...
[ "0.68678635", "0.6469647", "0.6433172", "0.6413013", "0.63566226", "0.63417864", "0.6332104", "0.6283639", "0.6226566", "0.6132057", "0.6105714", "0.60696685", "0.603896", "0.5996163", "0.5994495", "0.5951483", "0.5935552", "0.5931761", "0.5928446", "0.592571", "0.59214854", ...
0.0
-1
Plots a venn diagram illustrating the overlap in features between the datasets.
def feature_overlap(self, exclude=None, weighted=True, label_fontsize=10, count_fontsize=10, save_path=None): feat_set = self.get_feature_sets(exclude) # Plotting when two datasets are compared if len(self) == 2: # set variables needed to assign new color scheme colors =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def showVs(df, feat1, feat2):\n colors = ['blue', 'red', 'green', 'coral']\n for u in range(len(cBouts)):\n plt.plot(f[f['clust_ind'] == u][feat1],\n f[f['clust_ind'] == u][feat2], 'o', color=colors[u],\n alpha=0.6, markeredgecolor='none')\n plt.xlabel(feat1)\n plt.ylabel(feat2)\...
[ "0.6818801", "0.62688965", "0.62514716", "0.6201315", "0.60710144", "0.60613865", "0.603159", "0.59955466", "0.59658444", "0.59509426", "0.5896303", "0.5896303", "0.5896303", "0.58960474", "0.5872867", "0.5867251", "0.5831243", "0.58232564", "0.58015263", "0.57974523", "0.577...
0.6462557
1
Check if hashed password matched actual password
def verify_password(self, password): return check_password_hash(self.password_hash, password)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def check_hashed_password(password, hashed_password):\n\n\n return sha256_crypt.verify(password,hashed_password)", "def check_encrypted_password(password: str, hashed: str) -> bool:\n return pwd_context.verify(password, hashed)", "def verify_password(self, hash, password):\r\n try:\r\n ...
[ "0.812958", "0.8066189", "0.8005007", "0.8004822", "0.7995009", "0.79929286", "0.7965261", "0.788577", "0.788577", "0.7873904", "0.7839266", "0.7831281", "0.7830475", "0.7814512", "0.78088737", "0.77567446", "0.77485955", "0.7747545", "0.7746998", "0.7737453", "0.77367735", ...
0.8045553
2
Organize the keys and values from the resulting dictionary from test/val rounds into arrays that are sent as independent tensors during distributed communication.
def _send_metrics(output): keys = [encode_string(key) for key in output.keys()] values = [float(output[key]['value']) for key in output.keys()] higher_is_better = [int(output[key]['higher_is_better']) for key in output.keys()] # send the boolean as int _send(len(keys),0) _send(keys) _send(val...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def genbasictestdata():\n\t# These are the different test values we will combine in various ways.\n\tarraycode = [('typecode', x) for x in ('bytes', 'bytearray')]\n\thassimd = (('simdpresent', 'with'), ('simdpresent', 'without'))\n\tarraylen = (('arrayevenodd', 'even'), ('arrayevenodd', 'odd'))\n\ttestdata = (('te...
[ "0.59139466", "0.58456635", "0.564539", "0.5609908", "0.5567696", "0.55556136", "0.5555132", "0.55023664", "0.54846233", "0.5472221", "0.5459609", "0.54248387", "0.5421582", "0.54188323", "0.5410142", "0.5405128", "0.54012454", "0.540028", "0.53929216", "0.53929216", "0.53891...
0.0
-1
currently this just means copying from index..html to index.html in the client dist directory.
def _prep_client_dist_for_project(project_env, project_root_dir): #need to make the project's index.html the index.html that tomcat will find clientdir = os.path.join(project_root_dir, 'client') index_target_fn = os.path.join(clientdir, 'index.html') index_src_base = 'index.' + project_env.get_project_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def root():\n return send_from_directory('../web/dist', 'index.html')", "def index(self):\n\n # 'html/index.html' is the path WITHIN the tarball.\n return self.static('html/index.html')", "def index():\n return app.send_static_file(\"index.html\")", "def index():\n return app.send_stat...
[ "0.7113881", "0.659496", "0.6469241", "0.6447408", "0.6383845", "0.6341719", "0.627254", "0.6262339", "0.6259253", "0.62528384", "0.61212116", "0.612076", "0.60945696", "0.6088135", "0.60643786", "0.6021455", "0.58351535", "0.5832758", "0.58319604", "0.5760896", "0.57343197",...
0.75797385
0
t = turtle will be used to draw a square
def square(t, length): for i in range(4): t.fd(length) t.lt(90)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def draw_square():\r\n turtle.forward(100)\r\n turtle.left(90)\r\n turtle.forward(100)\r\n turtle.left(90)\r\n turtle.forward(100)\r\n turtle.left(90)\r\n turtle.forward(100)\r\n turtle.left(90)", "def drawSquare(t, sz):\n\n t.shape(\"turtle\")\n while 1:\n\t if sz > 200:\n\t ...
[ "0.8196196", "0.7979727", "0.78009135", "0.7308149", "0.7243243", "0.7131363", "0.70447594", "0.7003514", "0.69597614", "0.68511534", "0.67723995", "0.6737601", "0.67267567", "0.67267567", "0.66699797", "0.6637447", "0.6622988", "0.65714234", "0.6554561", "0.65238744", "0.651...
0.6085978
60
Check if the number provided is a valid bank account number.
def validate(number): number = compact(number) if not isdigits(number): raise InvalidFormat() if len(number) != 16: raise InvalidLength() if _calc_checksum(number) != 0: raise InvalidChecksum() i = info(number) if 'bank' not in i or 'branch' not in i: raise Invali...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def validate_account_number(num, should_exist=True):\n if len(num) != 8:\n return False\n elif num[0] == '0':\n return False\n else:\n if should_exist:\n return account_number_exists(num)\n else:\n return not account_number_exists(num)", "def _assert_is_...
[ "0.7697853", "0.6883769", "0.68501353", "0.68332875", "0.6801", "0.67483646", "0.66679096", "0.6636276", "0.6556055", "0.6489044", "0.6464254", "0.6449856", "0.6439181", "0.6401946", "0.637566", "0.63600796", "0.6339076", "0.63315886", "0.63255936", "0.6321823", "0.62920386",...
0.7439267
1
Check if the number provided is a valid bank account number.
def is_valid(number): try: return bool(validate(number)) except ValidationError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def validate_account_number(num, should_exist=True):\n if len(num) != 8:\n return False\n elif num[0] == '0':\n return False\n else:\n if should_exist:\n return account_number_exists(num)\n else:\n return not account_number_exists(num)", "def validate(nu...
[ "0.7697853", "0.7439267", "0.6883769", "0.68501353", "0.68332875", "0.6801", "0.67483646", "0.66679096", "0.6636276", "0.6556055", "0.6489044", "0.6464254", "0.6449856", "0.6439181", "0.6401946", "0.637566", "0.63600796", "0.6339076", "0.63315886", "0.63255936", "0.6321823", ...
0.62920386
25
Test makes sure that a ValueError is raised when latitude or longitude values are out of bounds.
def test_out_of_bounds(oob_from, oob_to): with pytest.raises(ValueError): haversine_vector([oob_from], [oob_to]) with pytest.raises(ValueError): haversine_vector([oob_from], [oob_to], normalize=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_bad_bounds(self):\n with pytest.raises(ValueError):\n Real(\"yolo\", \"norm\", 0, 2, low=+2, high=-2, shape=(4, 4))\n with pytest.raises(ValueError):\n Real(\"yolo\", \"norm\", 0, 2, low=+2, high=+2, shape=(4, 4))", "def test_error_coordinates_too_large(self):\n\n ...
[ "0.7196123", "0.6800595", "0.67447734", "0.66890335", "0.66786087", "0.66447353", "0.6643126", "0.66222286", "0.65683275", "0.65440345", "0.6433428", "0.6422563", "0.64143586", "0.6398841", "0.63942933", "0.6388243", "0.6379136", "0.63635254", "0.6362613", "0.63603044", "0.63...
0.68009675
1
Converts a Practitioner Resource into Values for Form
def convert_practitioner_fhir_to_form(pract_res, user): data = {} data['user'] = user data['first_name']= pract_res['name'][0]['given'][0] data['last_name']= pract_res['name'][0]['family'][0] data['npi']= pract_res['identifier'][0]['value'] data['fhir_id']= pract_res['id'] return data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def convert_practitioner_fhir_to_meta(pract_res, user):\n data = {}\n data['user'] = user\n data['npi']= pract_res['identifier'][0]['value']\n data['fhir_id']= pract_res['id']\n\n\n return data", "def _process_resource(cls, resource):\n urn = resource['component_id']\n hrn, type = ur...
[ "0.62876207", "0.5296156", "0.50333524", "0.49958098", "0.4914231", "0.48830962", "0.48107234", "0.47763345", "0.47756398", "0.47727445", "0.47437426", "0.47144932", "0.4707091", "0.46979332", "0.4692315", "0.467012", "0.46671182", "0.46607107", "0.4649136", "0.46472475", "0....
0.71260387
0
Converts a Practitioner Resource into Values for Form
def convert_pecos_to_form(pecos_res, user): data = {} data['user'] = user data['name']= pecos_res[0]['NAME'] data['npi']= pecos_res[0]['NPI'] data['description']= pecos_res[0]['DESCRIPTION'] return data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def convert_practitioner_fhir_to_form(pract_res, user):\n data = {}\n data['user'] = user\n data['first_name']= pract_res['name'][0]['given'][0]\n data['last_name']= pract_res['name'][0]['family'][0]\n data['npi']= pract_res['identifier'][0]['value']\n data['fhir_id']= pract_res['id']\n\n\n re...
[ "0.71260387", "0.62876207", "0.5296156", "0.50333524", "0.49958098", "0.4914231", "0.48830962", "0.48107234", "0.47763345", "0.47756398", "0.47727445", "0.47437426", "0.47144932", "0.4707091", "0.46979332", "0.4692315", "0.467012", "0.46671182", "0.46607107", "0.4649136", "0....
0.0
-1
Return a relative version of a path
def relpath(path, start=os.path.curdir): if not path: raise ValueError("no path specified") start_list = os.path.abspath(start).split(os.path.sep) path_list = os.path.abspath(path).split(os.path.sep) # Work out how much of the filepath is shared by start and path. i = len(commonprefix([st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def relative(self, path):\n return re.sub(self.path_regex, '', path).lstrip(os.sep)", "def relativize(path: str):\n return join('.', path)", "def relativePath(path):\n spath = pathSplit(path)\n return spath[-1]", "def get_relative_path(path: str):\n return os.path.relpath(path, get_project...
[ "0.7916205", "0.77834916", "0.77383643", "0.765349", "0.7530642", "0.7522436", "0.7415771", "0.7404095", "0.729165", "0.72837", "0.7279967", "0.723366", "0.7217335", "0.71864855", "0.7178365", "0.7105353", "0.7092798", "0.70900303", "0.70873284", "0.70858437", "0.70681816", ...
0.6648803
66
Keep None values in string
def test_allow_unknown(): template = 'name="{name}" value="{value}"' fmt = FormatTemplate(remove_unused=False) result = fmt(template) assert result == template
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def none_to_empty(data):\n return data if data is not None else ''", "def silent_none(value):\n if value is None:\n return ''\n return value", "def str_or_none(val):\n return str(val) if val is not None else None", "def noneToString(text):\n if text in (None, \"\"):\n ...
[ "0.7674776", "0.7557997", "0.73914057", "0.7252666", "0.7243671", "0.72065824", "0.71152747", "0.7114816", "0.7057596", "0.70090336", "0.6954872", "0.69265777", "0.68696576", "0.6823599", "0.6820445", "0.6520857", "0.6512854", "0.6475788", "0.6457931", "0.6457579", "0.6450407...
0.0
-1
Returns the list as if there was only a left mouvement. For instance, [2, 2, 8, 0] will return [4, 8, 0, 0]
def sum_row(self, row): # Start by removing the zeros as they do not have any effect row_trimmed = [el for el in row if el != 0] # if the row has zero or one element, it stays identical if len(row_trimmed) == 0 or len(row_trimmed) == 1: new_row = row_trimmed # else if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lefts(self):\n lstack = [len(self.arr)]\n i = len(self.arr) - 1\n while i >= 0:\n if self.arr[i] > self.arr[lstack[-1] - 1]:\n while lstack and self.arr[i] > self.arr[lstack[-1] - 1]:\n x = lstack.pop()\n self.left[x - 1] = i ...
[ "0.646778", "0.6376863", "0.63365924", "0.6328299", "0.6294488", "0.6124471", "0.6087813", "0.60626286", "0.59573096", "0.5862376", "0.58051", "0.58051", "0.5774438", "0.57471514", "0.5700584", "0.5698979", "0.56927395", "0.56908727", "0.5684215", "0.5650318", "0.5636695", ...
0.0
-1
Takes a grid and sums all its row as if the movement was towards the left.
def sum_grid(self, grid): new_grid = [] for i in range(self.grid_size): new_grid.append(self.sum_row(grid[i])) return new_grid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sum_across_rows(grid):\n pass", "def push_all_rows(grid, left=True):\n r = 0\n for i,row in enumerate(grid):\n grid[i], r_ = push_row(row, left)\n r += r_\n return r", "def push_left (grid):\r\n for row in range(4):\r\n for col in range(4):\r\n if (col-1)>=0:\...
[ "0.73849756", "0.73681486", "0.71801317", "0.69056994", "0.68884176", "0.6839139", "0.68328726", "0.6828885", "0.68172675", "0.6793433", "0.6699117", "0.6638217", "0.6561975", "0.6549212", "0.6528252", "0.6477571", "0.64774823", "0.642639", "0.6410121", "0.63848376", "0.63789...
0.6813806
9
Returns the shape of the weights for a single LSTM cell.
def LSTMCellWeightsShape(num_inputs, num_nodes): # Dimension 0 accounts for combining x with the previous m state. # Dimension 1 accounts for the in value and the (in, forget, out) gates. return [num_inputs + num_nodes, 4 * num_nodes]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_shape_wb(self):\n return self.weights.shape, self.bias.shape", "def kernel_shape(self):\n\t\treturn self.weights_shape()", "def get_input_tensor_shape(self):\n return self._engine.get_input_tensor_shape()", "def get_weight_dimensions(weight_shape: np.array) -> np.array:\n dims = len(weig...
[ "0.70268047", "0.66911376", "0.664216", "0.65844333", "0.6582305", "0.6517056", "0.6480474", "0.6463874", "0.6436711", "0.63358516", "0.63347626", "0.63163006", "0.63124907", "0.6295511", "0.62787056", "0.62711865", "0.6270534", "0.6266896", "0.6258166", "0.6241856", "0.62197...
0.7660314
0
Unrolls a layer of LSTM cells forward by the sequence length. The sequence length is determined by the length of x_seq and pad_seq, which must be the same.
def LSTMLayer(cell_name, weights, m, c, x_seq, pad_seq): if len(x_seq) != len(pad_seq): raise ValueError('length of x_seq(%d) != pad_seq(%d)' % (len(x_seq), len(pad_seq))) out_seq = [] for seq in range(len(x_seq)): with ops.name_scope('%s_%d' % (cell_name, seq)): m, c = LSTMCell...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _lstm_unroll_base(num_lstm_layer, seq_len, num_hidden):\n param_cells = []\n last_states = []\n for i in range(num_lstm_layer):\n param_cells.append(LSTMParam(i2h_weight=mx.sym.Variable(\"l%d_i2h_weight\" % i),\n i2h_bias=mx.sym.Variable(\"l%d_i2h_bias\" % i)...
[ "0.70882475", "0.6933724", "0.6893031", "0.6773821", "0.6468372", "0.63466144", "0.63393795", "0.621258", "0.620161", "0.60746574", "0.5988308", "0.59668744", "0.589735", "0.5885256", "0.5850901", "0.5843467", "0.5818193", "0.5807154", "0.57831705", "0.5745516", "0.57342523",...
0.61904114
9
Returns a variable of the given shape initialized to random values.
def RandomVar(shape, name=None): return variable_v1.VariableV1( random_ops.random_uniform(shape), dtype=dtypes.float32, name=name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def glorot(self, shape, name=None):\n init_range = np.sqrt(6.0 / (shape[0] + shape[1]))\n initial = tf.random_uniform(shape, minval=-init_range, maxval=init_range, dtype=tf.float32)\n return tf.Variable(initial, name=name)", "def random_init(self, shape):\n return np.random.randn(shap...
[ "0.7479359", "0.7463687", "0.7245187", "0.719504", "0.71907747", "0.7145008", "0.71290356", "0.710596", "0.710596", "0.70042735", "0.69855225", "0.68780404", "0.6869696", "0.6862137", "0.67932814", "0.6748502", "0.67350405", "0.6645309", "0.6642734", "0.6534362", "0.65258926"...
0.842238
0
Returns randomly initialized (x_seq, pad_seq) sequences.
def RandomInputs(batch_size, seq_length, num_inputs): x_seq = [] pad_seq = [] with ops.name_scope('inputs'): for seq in range(seq_length): x_seq.append(RandomVar([batch_size, num_inputs], name='x_seq_%d' % seq)) # Real padding values are always a sequence of 0 followed by a # sequence of 1, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_seq_batch(self):\n inps = []\n outs = []\n lens = []\n for i in range(self.batch_size):\n leng = np.random.randint(1, self.max_length)\n sent = np.random.choice(range(self.vocab_size), leng)\n labl = sent % 2\n\n lens.append(leng)\n inps.append(np.pad(sent, (0, self.max...
[ "0.65888906", "0.6470947", "0.64697474", "0.6458645", "0.6044602", "0.60431004", "0.5987783", "0.59738547", "0.5971681", "0.59264904", "0.5922032", "0.5876271", "0.5873096", "0.5852072", "0.58366203", "0.5821058", "0.5783922", "0.5762054", "0.5717637", "0.56906396", "0.568408...
0.6662273
0
CONVERTS A STRING REPRESENTED LIST TO AN ACTUAL LIST
def parse_string_list(data): txt = data.decode() x = ast.literal_eval(txt) return x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def str_list_works(x):\n import ast\n x = ast.literal_eval(x)\n x = [n.strip() for n in x]\n return (x)", "def _coerce_list(self, thing):\n\t\tif isinstance(thing, basestring):\n\t\t\treturn list((thing,))\n\n\t\treturn list(thing)", "def str2list(input):\n if isinstance(input, str):\n re...
[ "0.6796827", "0.6758389", "0.6727024", "0.6683499", "0.663418", "0.658101", "0.65331584", "0.6499877", "0.648773", "0.64548737", "0.6450895", "0.64288294", "0.6427796", "0.6427195", "0.640056", "0.640047", "0.63789827", "0.63679487", "0.6367007", "0.6349454", "0.6337441", "...
0.6248815
26
Blit the image buffer.
def populate_texture(self, texture): texture.blit_buffer(self._cbuffer, colorfmt='bgr', bufferfmt='ubyte')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def blit(self):\n self.screen.blit(self.image, self.rect)", "def blitme(self):\n self.screen.blit(self.image, self.rect)", "def blitme(self):\n self.screen.blit(self.image, self.rect)", "def blitme(self):\n self.screen.blit(self.image, self.rect)", "def blitme(self):\n se...
[ "0.72776943", "0.7083759", "0.7083759", "0.7083759", "0.7083759", "0.7083759", "0.7083759", "0.7083759", "0.7083759", "0.7083759", "0.7083759", "0.7048183", "0.7048183", "0.7048183", "0.7048183", "0.7019219", "0.7019219", "0.7019219", "0.70183396", "0.70183396", "0.69755036",...
0.5292689
88
Creates a pull request on the discoveryartifactmanager repository.
def create_pull_request(filepath, github_account): repo = _git.clone_from_github( _repo_path(), join(filepath, _repo_name()), github_account=github_account) branch = ('update-discovery-artifacts-' + datetime.datetime.now().strftime('%Y%m%d-%H%M%S')) repo.checkout_new(branch) if _update_d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_pull(self, title, head, base, body, # pylint: disable=R0913\n maintainer_can_modify=False):\n pull = self.make(PullRequest, self, 0)\n pull.title = title\n pull.head = head\n pull.base = base\n pull.body = body\n pull.maintainer_can_modif...
[ "0.58240914", "0.5738782", "0.560359", "0.55663866", "0.5558199", "0.54869056", "0.54419565", "0.530788", "0.5298675", "0.5211076", "0.5209418", "0.51942635", "0.5150938", "0.5149076", "0.5092398", "0.5072341", "0.50306123", "0.50263643", "0.49186218", "0.48999366", "0.487191...
0.70129454
0
Delete a git tree no matter what. Be CAREFUL calling this!
def force_rmtree(root_dir): for root, dirs, files in os.walk(root_dir, topdown=False): for name in files: file_path = os.path.join(root, name) if os.path.isfile(file_path): os.chmod(file_path, stat.S_IWUSR | stat.S_IRUSR) os.chmod(root, stat.S_IWUSR | ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __gitDeleteBranch(self):\n self.vcs.gitDeleteRemoteBranch(self.project.getProjectPath())", "def delete(ctx: click.Context, repository_path):\n root_commands.cmd_delete(ctx.obj, repository_path)", "def delete(self, tree_path):\n\t\traise NotImplementedError", "def test_worktree_removes_worktree_...
[ "0.70658976", "0.6928404", "0.6791711", "0.6379972", "0.6323528", "0.6272773", "0.6261162", "0.62611616", "0.622609", "0.6189267", "0.61820525", "0.61628294", "0.61562353", "0.615348", "0.6140946", "0.60321265", "0.6023304", "0.601504", "0.60145414", "0.59973603", "0.59884393...
0.0
-1
Predict an system action given state.
def predict(self, state): s_vec = torch.Tensor(self.vector.state_vectorize(state)) a = self.policy.select_action(s_vec.to(device=DEVICE), self.is_train).cpu() action = self.vector.action_devectorize(a.numpy()) state['system_action'] = action return action
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def predict(self, state, sys_action):\n sys_seq_turn = self.manager.sysda2seq(self.manager.ref_data2stand(sys_action), self.goal)\n self.sys_da_id_stack += self.manager.get_sysda_id([sys_seq_turn])\n sys_seq_len = torch.LongTensor([max(len(sen), 1) for sen in self.sys_da_id_stack])\n ma...
[ "0.77265596", "0.7713859", "0.73706627", "0.7279605", "0.7228982", "0.70783246", "0.6918291", "0.6886555", "0.6860544", "0.6855948", "0.68307495", "0.6705117", "0.66923505", "0.6664542", "0.6605877", "0.6603393", "0.65113616", "0.6491634", "0.648883", "0.64794654", "0.6454983...
0.80510026
0
Extract a frequency range of interest from power spectra.
def trim_spectrum(freqs, power_spectra, f_range): # Create mask to index only requested frequencies f_mask = np.logical_and(freqs >= f_range[0], freqs <= f_range[1]) # Restrict freqs & psd to requested range. The if/else is to cover both 1d or 2d arrays freqs_ext = freqs[f_mask] power_spectra_ext ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_freq_range(self, n_data):\n return np.linspace(0, n_data//2/self.get_delta_t(), n_data//2)", "def relative_range(self):\n self.calculate_relative_mags()\n string = '{:.0f}-{:.0f}Hz: {:.5f}'\n s_ind = self.get_bin(self.s_freq)\n e_ind = self.get_bin(self.e_freq)\n ...
[ "0.61483026", "0.60831493", "0.6028703", "0.5999714", "0.599672", "0.5930201", "0.5880779", "0.5880283", "0.5877344", "0.58744407", "0.5872591", "0.58687234", "0.5868588", "0.58638793", "0.5857361", "0.5854091", "0.5844129", "0.5829886", "0.5802559", "0.5784517", "0.5765974",...
0.6596575
0
Create a Flask application using the app factory pattern.
def create_app(debug=True): app = Flask(__name__, instance_relative_config=True) app.config.from_object('config.settings') app.config.from_pyfile('settings.py', silent=True) # app.debug = True with app.app_context(): @app.after_request def add_header(response): ""...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_app():\n app = Flask(__name__)\n app.config.from_object('app.configs.config')\n app.config.from_object('app.configs.settings')\n return app", "def create_app(config=Config):\r\n # Initialise app and configuration\r\n app = Flask(__name__)\r\n app.config.from_object(config)\r\n\r\n...
[ "0.8629991", "0.8587432", "0.8567094", "0.8560846", "0.8548992", "0.8533256", "0.8532855", "0.85154873", "0.8468547", "0.84618294", "0.84501874", "0.8400496", "0.83925307", "0.8380182", "0.8366697", "0.8356823", "0.8333603", "0.83313555", "0.8325678", "0.8316702", "0.8298241"...
0.0
-1
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes.
def add_header(response): response.headers['X-UA-Compatible'] = "IE=Edge,chrome=1" response.headers['Cache-Control'] = "no-cache, no-store, must-revalidate, public, max-age=0" response.headers["Expires"] = 0 response.headers["Pragma"] = "no-cache" return respo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_header(response):\n response.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n response.headers['Cache-Control'] = 'public, max-age=60'\n return response", "def add_header(response):\n response.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n response.headers['Cache-Control'] = 'public, m...
[ "0.82229227", "0.8222085", "0.8222085", "0.8222085", "0.8222085", "0.819543", "0.8162872", "0.8162872", "0.8162872", "0.8162872", "0.8162872", "0.8162872", "0.8162872", "0.8162872", "0.8162872", "0.8162872", "0.8162872", "0.8162872", "0.8162872", "0.8162872", "0.8162872", "...
0.7972646
35
Filter chants whose incipit is identical to the full text
def filter_chants_where_incipit_is_full_text(chants, logger=None): incipit_neq_full_text = chants.full_text != chants.incipit return chants[incipit_neq_full_text]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter_chants_without_full_text(chants, logger=None):\n has_full_text = chants.full_text.isna() == False\n return chants[has_full_text]", "async def wordfilter(self, ctx):\n pass", "def __filter( self, text ):\n return text", "def filter_chants_without_word_boundary(chants, logger=Non...
[ "0.66403633", "0.6403457", "0.63992035", "0.6259129", "0.61597914", "0.6098873", "0.60779774", "0.60508454", "0.595891", "0.5905661", "0.5889613", "0.5757788", "0.5754498", "0.5754498", "0.5750627", "0.5745538", "0.5731709", "0.5729785", "0.5723882", "0.57010776", "0.5696325"...
0.74135077
0
Return list of rotated points. The points are rotated in such a way that the direction of largest spread after rotation coincides with the positive xaxis, and the mean of the points is transformed to (0,0). If the original points formed a straight line, then the rotated points should have yvalues that are all near zero...
def regress(pts): # split points in list of x- and y-values xs, ys = split(pts) # adjust x- and y-values (subtract the mean) _, xsadj = adjust(xs) _, ysadj = adjust(ys) # calculate variances (spread) in x- and y-direction # If one of the two variances is (nearly) 0, # we short circuit ou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _rotate(self):\n new_points = list()\n for i in range(len(self._points)):\n x = self._points[i][0]\n y = self._points[i][1]\n new_x = self._center[0] + self._center[1] - y\n new_y = self._center[1] - self._center[0] + x\n new_points.append((n...
[ "0.7169496", "0.6784535", "0.6580697", "0.6260598", "0.6224627", "0.6168523", "0.6101323", "0.6028993", "0.6018574", "0.60100627", "0.5969788", "0.5889167", "0.58185595", "0.58139366", "0.576324", "0.5735351", "0.5711735", "0.57045424", "0.56894505", "0.55243146", "0.55240256...
0.0
-1
Get the Iterator over this List
def __iter__(self): raise NotImplementedError("__iter__")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def listIterator(self):\n return ArrayListIterator(self)", "def __iter__(self):\n # type: () -> Iterator[Any]\n return iter(self[index] for index in range(len(self)))", "def iter(self):\n return self._iter", "def __iter__(self):\n return iter(self.to_list())", "def __iter...
[ "0.85183614", "0.7721575", "0.7606529", "0.7574259", "0.7550673", "0.7550673", "0.7550673", "0.7531311", "0.7530651", "0.75294876", "0.75107956", "0.75107956", "0.7484112", "0.74788433", "0.74453664", "0.744143", "0.7436906", "0.7430574", "0.7430574", "0.74261624", "0.7403695...
0.7087977
68
Get the length of this List
def __len__(self) -> Natural: raise NotImplementedError("__len__")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def length(self):\n return self.list.length", "def length(self):\n return self.list.length", "def getLength(self):\r\n return len(self.list)", "def length(self):\n return self.list.length()", "def length(self):\n return len(self.list)", "def __len__(self) -> int:\n ...
[ "0.8906792", "0.8906792", "0.89013803", "0.8821849", "0.88018763", "0.8708786", "0.8668558", "0.8570113", "0.85371876", "0.8534405", "0.8526316", "0.84823745", "0.8389629", "0.837289", "0.8364211", "0.83087194", "0.82738036", "0.8221253", "0.82081485", "0.82027304", "0.819941...
0.0
-1
Get the Item at the index from this List
def __getitem__(self, item_index: Index) -> Item: raise NotImplementedError("__getitem__")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_item(self, index: int) -> _T:\n return self.index_to_item[index]", "def get(self, index):\n self.__validate_index(index)\n return self.__list[index]", "def __getitem__(self, index):\r\n return self._items[index]", "def get_by_index(self, index):\n if index > self.le...
[ "0.8698728", "0.86450446", "0.844748", "0.8437614", "0.82623696", "0.8120753", "0.79849327", "0.79596573", "0.79135644", "0.79057", "0.78247976", "0.7805481", "0.7756674", "0.7720006", "0.7665016", "0.7665016", "0.7648785", "0.763682", "0.76233697", "0.7622492", "0.7620772", ...
0.74353516
29
Get the Item at the index from this List
def __setitem__(self, item_index: Index, new_item: Item) -> None: raise NotImplementedError("__setitem__")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_item(self, index: int) -> _T:\n return self.index_to_item[index]", "def get(self, index):\n self.__validate_index(index)\n return self.__list[index]", "def __getitem__(self, index):\r\n return self._items[index]", "def get_by_index(self, index):\n if index > self.le...
[ "0.87003297", "0.86457", "0.84484994", "0.84384835", "0.8262797", "0.81225187", "0.79851604", "0.7961259", "0.7914763", "0.7905703", "0.7826487", "0.78067905", "0.7758867", "0.7720758", "0.76667964", "0.76667964", "0.7650091", "0.76383775", "0.76251775", "0.76242137", "0.7622...
0.0
-1
Reads and converts the variables to numpy arrays.
def file_reader(image_file, label_file): image = im.imread(image_file) with open(label_file, "r") as file: label = float(file.read()) return image, label
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def read_data():\n ADV_MAT = np.load('ADV.npy');\n ADJ_MAT = np.load('ADJ.npy');\n PR_MAT = np.load('PR.npy'); \n NN_MAT = np.load('NN.npy');\n for i in range(ADV_MAT.shape[0]):RUNNING_DATA['ADV___'+str(i)] = ADV_MAT[i];\n for i in range(ADJ_MAT.shape[0]):RUNNING_DATA['ADJ___'+str(i)] = ADJ_MA...
[ "0.6347259", "0.6330381", "0.62139654", "0.6189546", "0.61566395", "0.6113448", "0.6086307", "0.6026001", "0.6006034", "0.60026294", "0.5982624", "0.59775424", "0.5975226", "0.5971171", "0.59600925", "0.5948273", "0.59393", "0.5927724", "0.5915464", "0.5905599", "0.58726394",...
0.0
-1
Returns the input and output variables from the dataset.
def load_dataset(use_existing=True): if use_existing: x, y = load_from_array() else: data_dir = settings.DATA_FOLDER images = [] labels = [] for image_file in sorted(glob.glob(f"{data_dir}/images/**/**/*.png")): image_path = os.path.dirname(image_file) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def variables(self):\n return self.dataset.data_vars", "def get_data(dataset):\n handle = dataset.open()\n data = dataset.get_data(handle, slice(0, dataset.num_examples))\n features = data[0]\n targets = data[1]\n dataset.close(handle)\n\n return features, targets", "def variables(self...
[ "0.7015732", "0.68828386", "0.68753314", "0.6809832", "0.67683905", "0.6762607", "0.6592834", "0.65231705", "0.6511521", "0.64963466", "0.6440264", "0.63951313", "0.6358894", "0.63096625", "0.6254362", "0.62262106", "0.62185913", "0.62114954", "0.618247", "0.61635995", "0.613...
0.0
-1
compute color histogram for an image using hue.
def color_histogram_hsv(img, nbin=10, xmin=0, xmax=255, normalized=True): ndim = img.ndim bins = np.linspace(xmin, xmax, nbin+1) hsv = matplotlib.color.rgb_to_hsv(img/xmax) * xmax imhist, bin_edges = np.histogram(hsv[:, :, 0], bins=bins, density=normalized) imhist = imhist * np.diff(bin_edges) r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_hsv_hist(img):\n hsv = cv2.cvtColor(img.data, cv2.COLOR_BGR2HSV)\n\n hue_counts = {}\n hue_pixels = {}\n\n for rnum, row in enumerate(hsv):\n for cnum, pix in enumerate(row):\n hue = pix[0]\n val = pix[2]\n sat = pix[1]\n #ignore white\n ...
[ "0.7566872", "0.74841464", "0.71233034", "0.7073651", "0.7054453", "0.7042519", "0.7008229", "0.68926024", "0.6871842", "0.68321747", "0.6719373", "0.6708742", "0.66989976", "0.66926986", "0.6692059", "0.6670062", "0.65511745", "0.6548288", "0.6530775", "0.6528863", "0.650986...
0.73068494
2
Returns kafka connection parameters from env.
def get_kafka_connection_params(): return { "bootstrap_servers": os.environ["BOOTSTRAP_SERVERS"], "security_protocol": os.environ["SECURITY_PROTOCOL"], "sasl_mechanism": os.environ["SASL_MECHANISM"], "sasl_plain_username": os.environ["SASL_PLAIN_USERNAME"], "sasl_plain_passwo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getParamsFromEnv(self):\r\n self.port = os.getenv('PGPORT', self.port)\r\n self.host = os.getenv('PGHOST', self.host)\r\n self.database = os.getenv('PGDATABASE', self.database)\r\n self.user = os.getenv('PGUSER', self.user)\r\n self.password = os.getenv('PGPASSWORD', self.pas...
[ "0.63438255", "0.63167965", "0.6290758", "0.6132885", "0.61288655", "0.5998415", "0.599381", "0.59616023", "0.58737886", "0.58402455", "0.5824515", "0.5810592", "0.58012867", "0.5745156", "0.57411444", "0.57368445", "0.5720743", "0.5699668", "0.5678343", "0.56512445", "0.5607...
0.8694346
0
Check the length of the first name
def name_check(f_name): if len(f_name) == 0: print('The first name must be filled in.') if len(f_name) < 2: print(f_name + ' is not a valid name. Itis too short.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_check_name_is_3_parts():\n check_name_length()", "def last_check(l_name):\r\n if len(l_name) == 0:\r\n print('The last name must be filled in.')\r\n if len(l_name) < 2:\r\n print(l_name + ' is not a valid last name. It is too short.')", "def is_name_length_valid(self) -> bool:\n...
[ "0.766809", "0.75840384", "0.7430784", "0.7327157", "0.73198795", "0.72280866", "0.72121507", "0.7107549", "0.70964235", "0.70694774", "0.7047002", "0.70241326", "0.7020551", "0.7020551", "0.69877917", "0.6968465", "0.69056237", "0.69056237", "0.6895161", "0.68838584", "0.686...
0.79505086
0
dataset length, must be defined for all dataset objects
def __len__(self): return self.num_points
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __len__(self):\n return len(self.dataset)", "def __len__(self):\n\t\treturn min(len(self.dataset), self.opt.max_dataset_size)", "def test_has_correct_length(self) -> None:\n assert len(list(self._dataset)) == 7168", "def __len__(self):\n return self.dataset.shape[0]", "def dataset_...
[ "0.8026962", "0.7980699", "0.75678074", "0.75649774", "0.74129415", "0.73359007", "0.717885", "0.71633416", "0.7155005", "0.71368885", "0.70709604", "0.7056433", "0.7020687", "0.69985014", "0.6973553", "0.6955226", "0.68269175", "0.6779599", "0.67524016", "0.67287827", "0.670...
0.0
-1
Returns a matplotlib figure containing the plotted confusion matrix.
def plot_confusion_matrix(cm, class_names): # normalize confusion matrix cm_normalized = np.around(cm.astype('float') / cm.sum(axis=1)[:, np.newaxis], decimals=2) figure = plt.figure(figsize=(8, 8)) plt.imshow(cm_normalized, interpolation='nearest', cmap=plt.cm.Blues) plt.title("Normalized Confusion Matrix")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plot_confusion_matrix(cm, class_names):\n figure = plt.figure(figsize=(10, 10))\n plt.imshow(cm, interpolation='nearest', cmap=plt.cm.Blues)\n plt.title(\"Confusion matrix\")\n plt.colorbar()\n tick_marks = np.arange(len(class_names))\n plt.xticks(tick_marks, class_names, rotation=45)\n plt.yticks(tick_...
[ "0.78418297", "0.7749981", "0.771887", "0.7665601", "0.763367", "0.7577063", "0.752423", "0.7519009", "0.75027376", "0.74838006", "0.74677247", "0.7454088", "0.7453678", "0.7422469", "0.74187946", "0.7396647", "0.73876023", "0.73844457", "0.7384346", "0.7367921", "0.73645395"...
0.7576791
6
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes.
def add_header(r): r.headers["Cache-Control"] = "no-cache, no-store, must-revalidate" r.headers["Pragma"] = "no-cache" r.headers["Expires"] = "0" r.headers['Cache-Control'] = 'public, max-age=0' return r
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_header(response):\n response.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n response.headers['Cache-Control'] = 'public, max-age=60'\n return response", "def add_header(response):\n response.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n response.headers['Cache-Control'] = 'public, m...
[ "0.82247144", "0.8223862", "0.8223862", "0.8223862", "0.8223862", "0.81971866", "0.8164743", "0.8164743", "0.8164743", "0.8164743", "0.8164743", "0.8164743", "0.8164743", "0.8164743", "0.8164743", "0.8164743", "0.8164743", "0.8164743", "0.8164743", "0.8164743", "0.8164743", ...
0.71284086
53
extracts the patterns from GI for each GL and counts them This is called by the GraphWFCState constructor. If neither GI nor GLs differ for two GraphWFCStates, this can be used to cache the patterns. Its return value can be used as the pattern_count_per_GL parameter.
def get_patterns(GI, GLs=None, GI_isos_per_GL=None, node_attr='color', edge_attr='type'): assert GLs is not None or GI_isos_per_GL is not None if GI_isos_per_GL is None: GI_isos_per_GL = get_isos(GI, GLs, edge_attr=edge_attr) pattern_count_per_GL = [None] * len(GLs) for GL_id, GL in enumerate(GL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __len__(self) -> int:\n n_fuzzy_patterns = sum(len(p[\"patterns\"]) for p in self.fuzzy_patterns.values())\n n_regex_patterns = sum(len(p[\"patterns\"]) for p in self.regex_patterns.values())\n return n_fuzzy_patterns + n_regex_patterns", "def _extract_geographical_patterns(self):\n ...
[ "0.5551531", "0.54962325", "0.53184664", "0.5275264", "0.5239839", "0.5210084", "0.5203591", "0.51831156", "0.50533086", "0.5050957", "0.5026126", "0.4989999", "0.4969227", "0.4968079", "0.49580568", "0.4941092", "0.48948294", "0.48918256", "0.48893026", "0.48671106", "0.4861...
0.7419145
0
Return whether is solved. A word latter puzzle is solved if the start word is the same as the target word.
def is_solved(self): return self._start == self._target
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_solved(self):\n return self._from_word == self._to_word", "def is_solved(self):\n self.solved = self.current_pos == self.finish_pos\n return self.solved", "def is_solved(self):\n return (self.from_grid == self.to_grid)", "def did_solve(self) -> bool:\n return self._s...
[ "0.8151228", "0.7120512", "0.66246665", "0.6595019", "0.657699", "0.65452445", "0.65452445", "0.65452445", "0.6531336", "0.6517366", "0.6496351", "0.6411922", "0.62750816", "0.6266525", "0.6202972", "0.619486", "0.6152057", "0.6151524", "0.6112487", "0.6107701", "0.6103603", ...
0.7617478
1
Return a list of possible new states after a valid move. The valid move must change exactly one character of the current word, and must result in an English word stored in self._words. You should not perform any moves which produce a word that is already in the ladder. The returned moves should be sorted in alphabetica...
def extensions(self): new_words = self._possible_words() new_states = [] for word in new_words: new_states.append(self._extend(word)) return new_states
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def all_valid_moves(self, cur_board, all_english_words):\r\n rack_to_str = self.convert_rack_to_str()\r\n if len(rack_to_str) == 0:\r\n return [] \r\n \r\n moves_made = cur_board.find_words_on_board()\r\n actual_words = []\r\n\r\n if cur_board.board_empt...
[ "0.7398765", "0.6772407", "0.6704755", "0.6701065", "0.6667217", "0.6637974", "0.6521831", "0.65087414", "0.6475417", "0.64743775", "0.64094764", "0.6394092", "0.63530827", "0.63369715", "0.6324992", "0.62543875", "0.62338006", "0.62225145", "0.62062436", "0.62045664", "0.615...
0.0
-1
Returns a tuple of words that have already been used in this puzzle.
def used_words(self): return self._used_words
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _possible_words(self):\n new_words = []\n for word in self._words:\n if word not in (self._used_words + tuple(self._tried_words)):\n for i in range(len(self._start)):\n if word[:i] + word[i+1:] == self._start[:i] + self._start[i+1:]:\n ...
[ "0.6810488", "0.6690529", "0.6685102", "0.6596232", "0.6555434", "0.64059067", "0.6366187", "0.63648957", "0.63632995", "0.633529", "0.6287367", "0.62749046", "0.6245999", "0.6244208", "0.6235845", "0.6087081", "0.6082449", "0.6047186", "0.60222095", "0.6009624", "0.59758186"...
0.5882011
24
True if the bot is muted in this channel
def muted(guild, channel): if str(guild.id) in Settings.muted_channels: return str(channel.id) in Settings.muted_channels[str(guild.id)] return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def muted(self) -> bool:\n return self._muted", "def is_muted(self):\n return self.muting_handler.is_muted()", "def isMuted(self):\n return self._isMuted", "def is_volume_muted(self):\n return self._isMuted", "def is_volume_muted(self):\n return self._mute", "def is_vol...
[ "0.81195045", "0.78119415", "0.76900715", "0.76337093", "0.76278067", "0.7585465", "0.7529259", "0.7529259", "0.7529259", "0.7505102", "0.7468735", "0.7443289", "0.7086001", "0.6930695", "0.68261635", "0.66302425", "0.64704925", "0.64642996", "0.6430812", "0.63580954", "0.624...
0.8097938
1
__eq__(self, r) > bool
def __eq__(self, *args): return _ida_hexrays.hexwarns_t___eq__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other: t.Any) -> bool:\n return self._op_bool('__eq__', other)", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n ...
[ "0.77788925", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", ...
0.0
-1
__ne__(self, r) > bool
def __ne__(self, *args): return _ida_hexrays.hexwarns_t___ne__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other):\n return bool(self != other)", "def __ne__(self, other: t.Any) -> bool:\n return self._op_bool('__ne__', other)", "def __ne__(self, other):\n return not self == other", "def __ne__(self, rhs):\n return not self.__eq__(rhs)", "def __ne__(self, other):\n ...
[ "0.7844342", "0.7825789", "0.7769457", "0.7741587", "0.76898223", "0.7675918", "0.7654445", "0.7654445", "0.76499623", "0.76493454", "0.7642538", "0.763014", "0.763014", "0.7622661", "0.7620891", "0.7619195", "0.7617959", "0.76097995", "0.76030886", "0.76030886", "0.76030886"...
0.0
-1
__eq__(self, r) > bool
def __eq__(self, *args): return _ida_hexrays.ctree_items_t___eq__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other: t.Any) -> bool:\n return self._op_bool('__eq__', other)", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n ...
[ "0.7779918", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "...
0.0
-1
__ne__(self, r) > bool
def __ne__(self, *args): return _ida_hexrays.ctree_items_t___ne__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other):\n return bool(self != other)", "def __ne__(self, other: t.Any) -> bool:\n return self._op_bool('__ne__', other)", "def __ne__(self, other):\n return not self == other", "def __ne__(self, rhs):\n return not self.__eq__(rhs)", "def __ne__(self, other):\n ...
[ "0.7844342", "0.7825789", "0.7769457", "0.7741587", "0.76898223", "0.7675918", "0.7654445", "0.7654445", "0.76499623", "0.76493454", "0.7642538", "0.763014", "0.763014", "0.7622661", "0.7620891", "0.7619195", "0.7617959", "0.76097995", "0.76030886", "0.76030886", "0.76030886"...
0.0
-1
__eq__(self, r) > bool
def __eq__(self, *args): return _ida_hexrays.cinsnptrvec_t___eq__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other: t.Any) -> bool:\n return self._op_bool('__eq__', other)", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n ...
[ "0.77788925", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", ...
0.0
-1
__ne__(self, r) > bool
def __ne__(self, *args): return _ida_hexrays.cinsnptrvec_t___ne__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other):\n return bool(self != other)", "def __ne__(self, other: t.Any) -> bool:\n return self._op_bool('__ne__', other)", "def __ne__(self, other):\n return not self == other", "def __ne__(self, rhs):\n return not self.__eq__(rhs)", "def __ne__(self, other):\n ...
[ "0.7844342", "0.7825789", "0.7769457", "0.7741587", "0.76898223", "0.7675918", "0.7654445", "0.7654445", "0.76499623", "0.76493454", "0.7642538", "0.763014", "0.763014", "0.7622661", "0.7620891", "0.7619195", "0.7617959", "0.76097995", "0.76030886", "0.76030886", "0.76030886"...
0.0
-1
__eq__(self, r) > bool
def __eq__(self, *args): return _ida_hexrays.qvector_history_t___eq__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other: t.Any) -> bool:\n return self._op_bool('__eq__', other)", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n ...
[ "0.77788925", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", ...
0.0
-1
__ne__(self, r) > bool
def __ne__(self, *args): return _ida_hexrays.qvector_history_t___ne__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other):\n return bool(self != other)", "def __ne__(self, other: t.Any) -> bool:\n return self._op_bool('__ne__', other)", "def __ne__(self, other):\n return not self == other", "def __ne__(self, rhs):\n return not self.__eq__(rhs)", "def __ne__(self, other):\n ...
[ "0.7844342", "0.7825789", "0.7769457", "0.7741587", "0.76898223", "0.7675918", "0.7654445", "0.7654445", "0.76499623", "0.76493454", "0.7642538", "0.763014", "0.763014", "0.7622661", "0.7620891", "0.7619195", "0.7617959", "0.76097995", "0.76030886", "0.76030886", "0.76030886"...
0.0
-1
__eq__(self, x) > bool
def __eq__(self, *args): return _ida_hexrays.qlist_cinsn_t_iterator___eq__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other: t.Any) -> bool:\n return self._op_bool('__eq__', other)", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n ...
[ "0.7665504", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473",...
0.0
-1
__ne__(self, x) > bool
def __ne__(self, *args): return _ida_hexrays.qlist_cinsn_t_iterator___ne__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other: t.Any) -> bool:\n return self._op_bool('__ne__', other)", "def __ne__(self, other):\n return not self == other", "def __ne__(self, other):\n return bool(self != other)", "def __ne__(self, other):\n return not self.__eq__(other)", "def __ne__(self, rhs):\n ...
[ "0.7975706", "0.79153574", "0.7826925", "0.78116363", "0.7776416", "0.77434736", "0.7725829", "0.772568", "0.76616865", "0.7650295", "0.7650295", "0.76353824", "0.7622267", "0.7599454", "0.759672", "0.75909704", "0.75900584", "0.75900584", "0.7588342", "0.75691783", "0.756908...
0.0
-1
__eq__(self, r) > bool
def __eq__(self, *args): return _ida_hexrays.qvector_lvar_t___eq__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other: t.Any) -> bool:\n return self._op_bool('__eq__', other)", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n ...
[ "0.7779918", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "...
0.0
-1
__ne__(self, r) > bool
def __ne__(self, *args): return _ida_hexrays.qvector_lvar_t___ne__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other):\n return bool(self != other)", "def __ne__(self, other: t.Any) -> bool:\n return self._op_bool('__ne__', other)", "def __ne__(self, other):\n return not self == other", "def __ne__(self, rhs):\n return not self.__eq__(rhs)", "def __ne__(self, other):\n ...
[ "0.7844342", "0.7825789", "0.7769457", "0.7741587", "0.76898223", "0.7675918", "0.7654445", "0.7654445", "0.76499623", "0.76493454", "0.7642538", "0.763014", "0.763014", "0.7622661", "0.7620891", "0.7619195", "0.7617959", "0.76097995", "0.76030886", "0.76030886", "0.76030886"...
0.0
-1
__init__(self) > qlist_cinsn_t __init__(self, x) > qlist_cinsn_t
def __init__(self, *args): this = _ida_hexrays.new_qlist_cinsn_t(*args) try: self.this.append(this) except: self.this = this
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, *args):\n this = _ida_hexrays.new_cinsn_t(*args)\n try: self.this.append(this)\n except: self.this = this", "def __init__(self, *args):\n this = _ida_hexrays.new_cinsnptrvec_t(*args)\n try: self.this.append(this)\n except: self.this = this", "def __i...
[ "0.6995045", "0.68064255", "0.6647786", "0.6622732", "0.6616122", "0.6616122", "0.6602099", "0.6602099", "0.6527094", "0.6501958", "0.64471066", "0.628208", "0.6272088", "0.6261035", "0.62261707", "0.6205488", "0.6161975", "0.61407137", "0.6118384", "0.61169565", "0.6102645",...
0.8009793
0
__eq__(self, x) > bool
def __eq__(self, *args): return _ida_hexrays.qlist_cinsn_t___eq__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other: t.Any) -> bool:\n return self._op_bool('__eq__', other)", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n ...
[ "0.7665504", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473", "0.74247473",...
0.0
-1
__ne__(self, x) > bool
def __ne__(self, *args): return _ida_hexrays.qlist_cinsn_t___ne__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other: t.Any) -> bool:\n return self._op_bool('__ne__', other)", "def __ne__(self, other):\n return not self == other", "def __ne__(self, other):\n return bool(self != other)", "def __ne__(self, other):\n return not self.__eq__(other)", "def __ne__(self, rhs):\n ...
[ "0.7974418", "0.7913405", "0.7825019", "0.7809807", "0.7775094", "0.77414703", "0.77240944", "0.77235657", "0.7659465", "0.7648072", "0.7648072", "0.7633585", "0.76199776", "0.7597252", "0.7594507", "0.7588678", "0.7587877", "0.7587877", "0.7586715", "0.75672895", "0.75668263...
0.0
-1
__eq__(self, r) > bool
def __eq__(self, *args): return _ida_hexrays.qvector_carg_t___eq__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other: t.Any) -> bool:\n return self._op_bool('__eq__', other)", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n ...
[ "0.77788925", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", ...
0.0
-1
__ne__(self, r) > bool
def __ne__(self, *args): return _ida_hexrays.qvector_carg_t___ne__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other):\n return bool(self != other)", "def __ne__(self, other: t.Any) -> bool:\n return self._op_bool('__ne__', other)", "def __ne__(self, other):\n return not self == other", "def __ne__(self, rhs):\n return not self.__eq__(rhs)", "def __ne__(self, other):\n ...
[ "0.7844342", "0.7825789", "0.7769457", "0.7741587", "0.76898223", "0.7675918", "0.7654445", "0.7654445", "0.76499623", "0.76493454", "0.7642538", "0.763014", "0.763014", "0.7622661", "0.7620891", "0.7619195", "0.7617959", "0.76097995", "0.76030886", "0.76030886", "0.76030886"...
0.0
-1
__eq__(self, r) > bool
def __eq__(self, *args): return _ida_hexrays.qvector_ccase_t___eq__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other: t.Any) -> bool:\n return self._op_bool('__eq__', other)", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n ...
[ "0.7779918", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "0.7450656", "...
0.0
-1
__ne__(self, r) > bool
def __ne__(self, *args): return _ida_hexrays.qvector_ccase_t___ne__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other):\n return bool(self != other)", "def __ne__(self, other: t.Any) -> bool:\n return self._op_bool('__ne__', other)", "def __ne__(self, other):\n return not self == other", "def __ne__(self, rhs):\n return not self.__eq__(rhs)", "def __ne__(self, other):\n ...
[ "0.7844342", "0.7825789", "0.7769457", "0.7741587", "0.76898223", "0.7675918", "0.7654445", "0.7654445", "0.76499623", "0.76493454", "0.7642538", "0.763014", "0.763014", "0.7622661", "0.7620891", "0.7619195", "0.7617959", "0.76097995", "0.76030886", "0.76030886", "0.76030886"...
0.0
-1
__eq__(self, r) > bool
def __eq__(self, *args): return _ida_hexrays.lvar_saved_infos_t___eq__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other: t.Any) -> bool:\n return self._op_bool('__eq__', other)", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n ...
[ "0.77788925", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", ...
0.0
-1
__ne__(self, r) > bool
def __ne__(self, *args): return _ida_hexrays.lvar_saved_infos_t___ne__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other):\n return bool(self != other)", "def __ne__(self, other: t.Any) -> bool:\n return self._op_bool('__ne__', other)", "def __ne__(self, other):\n return not self == other", "def __ne__(self, rhs):\n return not self.__eq__(rhs)", "def __ne__(self, other):\n ...
[ "0.7844479", "0.7825962", "0.7769556", "0.77416927", "0.76899755", "0.76760143", "0.7654571", "0.7654571", "0.76501215", "0.76495004", "0.76426584", "0.76302665", "0.76302665", "0.7622787", "0.7621023", "0.7619318", "0.76180923", "0.7609926", "0.7603214", "0.7603214", "0.7603...
0.0
-1
__eq__(self, r) > bool
def __eq__(self, *args): return _ida_hexrays.operand_locator_t___eq__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other: t.Any) -> bool:\n return self._op_bool('__eq__', other)", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n ...
[ "0.77788925", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", "0.7449351", ...
0.0
-1
__ne__(self, r) > bool
def __ne__(self, *args): return _ida_hexrays.operand_locator_t___ne__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other):\n return bool(self != other)", "def __ne__(self, other: t.Any) -> bool:\n return self._op_bool('__ne__', other)", "def __ne__(self, other):\n return not self == other", "def __ne__(self, rhs):\n return not self.__eq__(rhs)", "def __ne__(self, other):\n ...
[ "0.7844479", "0.7825962", "0.7769556", "0.77416927", "0.76899755", "0.76760143", "0.7654571", "0.7654571", "0.76501215", "0.76495004", "0.76426584", "0.76302665", "0.76302665", "0.7622787", "0.7621023", "0.7619318", "0.76180923", "0.7609926", "0.7603214", "0.7603214", "0.7603...
0.0
-1
__lt__(self, r) > bool
def __lt__(self, *args): return _ida_hexrays.operand_locator_t___lt__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __lt__(self, other: t.Any) -> bool:\n return self._op_bool('__lt__', other)", "def __lt__(self, other):\n return self <= other and self != other", "def __lt__(self, other):\n return self <= other and self != other", "def __lt__(self, other):\n return True", "def __lt__(self,...
[ "0.7905341", "0.78158313", "0.78158313", "0.77416617", "0.77416617", "0.7702155", "0.7694993", "0.76391506", "0.7591238", "0.7563725", "0.75326097", "0.7518938", "0.7510669", "0.7503784", "0.74992245", "0.7483631", "0.747919", "0.7445643", "0.7430462", "0.74154854", "0.741180...
0.0
-1
__le__(self, r) > bool
def __le__(self, *args): return _ida_hexrays.operand_locator_t___le__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __le__(self, other: t.Any) -> bool:\n return self._op_bool('__le__', other)", "def __le__(self, rs):\n Number.comparisons += 1\n result = self.data <= rs.data\n return result", "def __le__(self, other):\n return True", "def __le__(self, other):\n return self....
[ "0.77986604", "0.7577342", "0.7467504", "0.73853964", "0.7308148", "0.73060477", "0.720586", "0.720586", "0.71718043", "0.715179", "0.7143629", "0.711954", "0.70886385", "0.7087308", "0.70672", "0.70517457", "0.7045276", "0.701166", "0.70088524", "0.6999618", "0.6956948", "...
0.0
-1
__ge__(self, r) > bool
def __ge__(self, *args): return _ida_hexrays.operand_locator_t___ge__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ge__(self, other: t.Any) -> bool:\n return self._op_bool('__ge__', other)", "def __ge__(self, other):\n return other <= self", "def __ge__(self, other):\n return int(self.rank) >= int(other.rank)", "def __ge__(self, other):\n return not (self < other)", "def __ge__(self, o...
[ "0.71677643", "0.7084583", "0.7023936", "0.69559306", "0.69559306", "0.6933425", "0.69315404", "0.69221616", "0.690757", "0.69066805", "0.684724", "0.684724", "0.6843821", "0.6833953", "0.6803233", "0.6796801", "0.6783216", "0.67788696", "0.67565554", "0.67565554", "0.6742595...
0.0
-1
is_ptr_or_array(t) > bool Is a pointer or array type?
def is_ptr_or_array(*args): return _ida_hexrays.is_ptr_or_array(*args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_pointer_to_array_type(self, objtype):\n if hasattr(objtype, '_subtype_'): # haystack\n return self.is_array_type(objtype._subtype_)\n return self.is_pointer_type(objtype) and hasattr(objtype, '_type_') and self.is_array_type(objtype._type_)", "def is_pointer_type(self, objtype):\...
[ "0.7674542", "0.7329256", "0.71089524", "0.70000064", "0.6908646", "0.67996633", "0.67927164", "0.67114866", "0.66767997", "0.6640309", "0.6560736", "0.6559554", "0.65074855", "0.6471039", "0.6469264", "0.63992345", "0.6365402", "0.63227993", "0.62894964", "0.62632656", "0.62...
0.7731003
0
__eq__(self, r) > bool
def __eq__(self, *args): return _ida_hexrays.vdloc_t___eq__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other: t.Any) -> bool:\n return self._op_bool('__eq__', other)", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n pass", "def __eq__(self,*args):\r\n ...
[ "0.7779506", "0.74503726", "0.74503726", "0.74503726", "0.74503726", "0.74503726", "0.74503726", "0.74503726", "0.74503726", "0.74503726", "0.74503726", "0.74503726", "0.74503726", "0.74503726", "0.74503726", "0.74503726", "0.74503726", "0.74503726", "0.74503726", "0.74503726",...
0.0
-1
__ne__(self, r) > bool
def __ne__(self, *args): return _ida_hexrays.vdloc_t___ne__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other):\n return bool(self != other)", "def __ne__(self, other: t.Any) -> bool:\n return self._op_bool('__ne__', other)", "def __ne__(self, other):\n return not self == other", "def __ne__(self, rhs):\n return not self.__eq__(rhs)", "def __ne__(self, other):\n ...
[ "0.7844342", "0.7825789", "0.7769457", "0.7741587", "0.76898223", "0.7675918", "0.7654445", "0.7654445", "0.76499623", "0.76493454", "0.7642538", "0.763014", "0.763014", "0.7622661", "0.7620891", "0.7619195", "0.7617959", "0.76097995", "0.76030886", "0.76030886", "0.76030886"...
0.0
-1
__lt__(self, r) > bool
def __lt__(self, *args): return _ida_hexrays.vdloc_t___lt__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __lt__(self, other: t.Any) -> bool:\n return self._op_bool('__lt__', other)", "def __lt__(self, other):\n return self <= other and self != other", "def __lt__(self, other):\n return self <= other and self != other", "def __lt__(self, other):\n return True", "def __lt__(self,...
[ "0.7905341", "0.78158313", "0.78158313", "0.77416617", "0.77416617", "0.7702155", "0.7694993", "0.76391506", "0.7591238", "0.7563725", "0.75326097", "0.7518938", "0.7510669", "0.7503784", "0.74992245", "0.7483631", "0.747919", "0.7445643", "0.7430462", "0.74154854", "0.741180...
0.0
-1
__le__(self, r) > bool
def __le__(self, *args): return _ida_hexrays.vdloc_t___le__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __le__(self, other: t.Any) -> bool:\n return self._op_bool('__le__', other)", "def __le__(self, rs):\n Number.comparisons += 1\n result = self.data <= rs.data\n return result", "def __le__(self, other):\n return True", "def __le__(self, other):\n return self....
[ "0.7798137", "0.7577633", "0.7467963", "0.7385524", "0.7308491", "0.7305665", "0.72064835", "0.72064835", "0.71716803", "0.7152118", "0.7144026", "0.71190995", "0.70895505", "0.70872766", "0.70674807", "0.7051491", "0.7045304", "0.7011811", "0.7008791", "0.700012", "0.6957237...
0.0
-1
__ge__(self, r) > bool
def __ge__(self, *args): return _ida_hexrays.vdloc_t___ge__(self, *args)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ge__(self, other: t.Any) -> bool:\n return self._op_bool('__ge__', other)", "def __ge__(self, other):\n return other <= self", "def __ge__(self, other):\n return int(self.rank) >= int(other.rank)", "def __ge__(self, other):\n return not (self < other)", "def __ge__(self, o...
[ "0.7167667", "0.70841575", "0.7023326", "0.69555193", "0.69555193", "0.6932944", "0.69310296", "0.69214845", "0.69070655", "0.6906734", "0.68468964", "0.68468964", "0.68435806", "0.68345803", "0.6802651", "0.6797466", "0.6782855", "0.67784584", "0.6756027", "0.6756027", "0.67...
0.0
-1