query_id
stringlengths
32
32
query
stringlengths
9
4.01k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
8988c758eeb15a8e4982e8f47c52ed8a
Given the anchors and GT boxes, compute overlaps and identify positive anchors and deltas to refine them to match their corresponding GT boxes.
[ { "docid": "74f5d88d6921105f4f1a772a1c538280", "score": "0.5856057", "text": "def build_rpn_targets(image_shape, anchors, gt_class_ids, gt_boxes, config):\n # RPN Match: 1 = positive anchor, -1 = negative anchor, 0 = neutral\n rpn_match = np.zeros([anchors.shape[0]], dtype=np.int32)\n # RPN bou...
[ { "docid": "09b1bd95b9a50434e64d591d648d9dc6", "score": "0.7254404", "text": "def create_overlap_metric(anchor_boxes):\n y, x, h, w = np.transpose(anchor_boxes)\n ab_area = w * h\n y0 = y - h // 2\n x0 = x - w // 2\n y1 = y + h // 2\n x1 = x + w // 2\n\n def overlap(gt_boxes):\n ...
f4a67342a3a2bd2d40a56746ba4a93be
Load trial architectures from filesystem.
[ { "docid": "fb9d97ea96053e1ec99867a0297bd9ae", "score": "0.61847067", "text": "def _load_trials(self, trials):\n\n completed_trials = trials\n\n architectures = []\n losses = []\n\n for trial in completed_trials:\n directory = architecture_utils.DirectoryHandler.trial_dir(trial)\n ...
[ { "docid": "09c565625c246e402a6a927175d3897f", "score": "0.61201805", "text": "def load(self, path):", "title": "" }, { "docid": "09c565625c246e402a6a927175d3897f", "score": "0.61201805", "text": "def load(self, path):", "title": "" }, { "docid": "c4b52aa0f93f4a0c8446cfaf...
5397185255464f876b39c14838c91629
Create all strings by picking X random word in the dictionnary
[ { "docid": "a968aa13e9d5b42fd323e82a834c2e56", "score": "0.7175344", "text": "def create_strings_from_dict(length, allow_variable, count, dict_path):\n lang_dict = load_dict(dict_path)\n dict_len = len(lang_dict)\n strings = []\n for _ in range(0, count):\n current_string = \"\"\n ...
[ { "docid": "3e2d1a7516989d18e1d0364593c308e6", "score": "0.75109947", "text": "def compile_story(the_dictionary, num_words):\n start_key = random.choice(list(the_dictionary.keys()))\n output = start_key.split()\n while len(output) < num_words:\n search_string = output[-2] + \" \" + outpu...
ef391b2def1ff18401f71011c3065174
pc_nproduced(noise_source_f_sptr self) > float
[ { "docid": "5d475411b934cd1a2d95c462b35de1d1", "score": "0.6782213", "text": "def pc_nproduced(self):\n return _analog_swig.noise_source_f_sptr_pc_nproduced(self)", "title": "" } ]
[ { "docid": "db9b97ce1b6b5401a51a452b5f3c5cc9", "score": "0.77606905", "text": "def pc_nproduced(self) -> \"float\":\n return _analog_swig.vectornoise_source_sptr_pc_nproduced(self)", "title": "" }, { "docid": "074fb3741d4d28cdf3b2c841b977d6c0", "score": "0.7319702", "text": "d...
e21b3de6cb8aa751ad0ad1385135c70f
A property representing the topological entropy of the Markov chain.
[ { "docid": "faf7a291f8baf8860c7b841eea914ac8", "score": "0.71251404", "text": "def topological_entropy(self) -> float:\n\n ev = _eigenvalues_sorted(self.adjacency_matrix)\n te = _np.log(ev[-1])\n\n return te", "title": "" } ]
[ { "docid": "08b6605c2d134b3ff04aaf7c707f6d7b", "score": "0.6825515", "text": "def entropy(self):\n pass", "title": "" }, { "docid": "573492fb6726319f47ebc7d37fe054c0", "score": "0.6673803", "text": "def entropy(self):\n raise NotImplementedError", "title": "" }, ...
381a678610bad04c4d1d22e324129b53
Returns the index of the specified coords in the global list.
[ { "docid": "00fd70fddb9daa8b508292e03dab114c", "score": "0.67346704", "text": "def get_index_of_coords(self, v: list) -> int:\n s = (\"{{x:.{p}f}} {{y:.{p}f}} {{z:.{p}f}}\"\n .format(p=self._precision).format(x=v[0], y=v[1], z=v[2]))\n if s in self._lookup:\n return ...
[ { "docid": "e8e6db3bef79be6d470e2c77e7cac577", "score": "0.695365", "text": "def get_index_from_coord(gmap, x, y):\r\n x_index = int(round(round(x/gmap.cell_size,3)))\r\n y_index = int(round(round(y/gmap.cell_size,3)))\r\n\r\n return x_index, y_index", "title": "" }, { "docid": "fe8...
14632e25fd098531e3769439e8189922
Generate a new set of random macroactions using the given random seed
[ { "docid": "eebdd773561f32e3dd5c03ade59256f0", "score": "0.75717497", "text": "def generate_random_macro_set(seed):\n old_state = pyrandom.getstate()\n pyrandom.seed(seed)\n random_formulas = [formula.random_formula(len(alg)) for alg in expert.alg_formulas]\n pyrandom.setstate(old_state)\n\n...
[ { "docid": "1fbb85188200776e0980debfc46e66d4", "score": "0.72646517", "text": "def seed(self, seed=None):\n seed = seeding.create_seed(seed)\n self._random.seed(seed)\n return [seed]+self._rew.seed(self._random.randint(2**32))", "title": "" }, { "docid": "7b03e46ff3f05ef0923c7f11753...
af0a3c5e09d2b3a333c5fcd02c7a995b
Return length of bed generator.
[ { "docid": "bb8907c3567103de13c64fa4e6471418", "score": "0.0", "text": "def steps_per_epoch(self) -> int:\n return self._source_sequence.steps_per_epoch", "title": "" } ]
[ { "docid": "5a6e466d49774331bc21977ff82436d3", "score": "0.7111194", "text": "def get_length(self):\n return self.__length", "title": "" }, { "docid": "83be0f0a104859a65e96f47b0a1b4f9b", "score": "0.7048946", "text": "def get_len(self):\n return len(self.get_seq())", ...
9a78a3db9731ddff713e3672c99bb34d
Changes the object permissions according to the current state.
[ { "docid": "6466aaf9317b4ad690147cb58eb253a0", "score": "0.5497708", "text": "def updateRoleMappingsFor(self, ob, **kw):\n # Patch updateRoleMappingsFor so that if 2 workflows define security, then\n # we should do an AND operation between each roles list for a given\n # permission\n # XXX(W...
[ { "docid": "3eac44ddd7304c40bcccba4397f7779a", "score": "0.6748775", "text": "def replace_object_permissions(self, object_id, permissions):\n raise NotImplementedError", "title": "" }, { "docid": "e8f6a1afacfb9f2c1bb6cc90565197ef", "score": "0.6685261", "text": "def check_obje...
5f1a2c97816004263a90d4a22aa5a828
Remove all flighttrack patches from topview canvas and make flighttracks userCheckable.
[ { "docid": "146f1120ec23616513dd76b9ba5b8e60", "score": "0.5637898", "text": "def deactivate_all_flighttracks(self):\n for index in range(self.list_flighttrack.count()):\n listItem = self.list_flighttrack.item(index)\n\n self.set_listControl(True, False)\n\n self....
[ { "docid": "f9bcb773d3e2319fe60d9856599c85ae", "score": "0.5683878", "text": "def remove_all_lines(self):\n for lin in self._lines:\n lin.lx.remove()\n self._lines = []\n self.fig.canvas.draw()", "title": "" }, { "docid": "5bea94ccfc39ac78d2eea7863ce14f5b", ...
d2f16f5f82266bd5c9c231e8875444e4
Compute version of rew with canonicalized shaping.
[ { "docid": "1e27fadca424aafa35ffb9ee164ee463", "score": "0.0", "text": "def fully_connected_greedy_canonical_reward(\n rew: np.ndarray,\n discount: float,\n state_dist: Optional[np.ndarray] = None,\n) -> np.ndarray:\n assert 0 <= discount <= 1\n ns, _na, ns2 = rew.shape\n assert ns == ...
[ { "docid": "837619ae1125fec433d9e4a19afcb41d", "score": "0.57282394", "text": "def reconstruct(self, W, H):\n return W@ H", "title": "" }, { "docid": "499f6c6f0f3838277004d77e93f43a8c", "score": "0.5520778", "text": "def __call__(self, w):\n w_original_shape = w.shape\n...
1bf1ed2e7e7a8b081176b6684203a09b
Return the value of the first nonempty `names`element found in `dictionary`.
[ { "docid": "f5fa03d3490670ba6e007145feb80d27", "score": "0.70838207", "text": "def getValueWithFallbacks(self, dictionary, *names):\n\n for name in names:\n if name in dictionary and dictionary[name]:\n return dictionary[name]\n\n return None", "title": "" }...
[ { "docid": "3004aa49c46b1cbd8672332bcaf5e35e", "score": "0.66652036", "text": "def first(self, *names):\n for name in names:\n value = self.get(name)\n if value:\n return value", "title": "" }, { "docid": "3a4622f1ff112b7fa027b9a899...
2da7652ba88567f98cf798d421d095f5
Search the given list of files or directories and their parents, for the file named `confname`. The files and directories are searched in the order in which they appear. Return `None` if no file with such a name was found.
[ { "docid": "6c4ec525e80d72317a34d8f4fc3c33bb", "score": "0.7062808", "text": "def search_parents(fnordns, confname):\n for dn in fnordns:\n if not isdir(dn):\n dn = dirname(dn)\n dn = abspath(dn)\n \n prevdn = None\n while dn != prevdn:\n t...
[ { "docid": "0ca04f10a74bfe341897710a3f33428b", "score": "0.6723511", "text": "def find_config_file():\n logger.debug('Looking for .newfilerc')\n file_name = '.newfilerc'\n cur_dir = os.getcwd()\n\n while True:\n file_list = os.listdir(cur_dir)\n parent_dir = os.path.dirname(cur...
9bf64a94620afa1a6e677d2d6e9713ae
increment a counter with the given name and value
[ { "docid": "9b6456f062305c2de55da765174251f5", "score": "0.0", "text": "def gauge_metric(metric_name, value, tags_str=''):\n # set env to undefined for local tests (which do not emit stats, as there's no agent)\n tags = 'app:kinit,env:%s' % config.DEPLOYMENT_ENV\n if tags_str:\n tags = t...
[ { "docid": "ae959427b2b7905b3a6025ed20ea9104", "score": "0.79530203", "text": "def increment(self):\n self[self.name] += int(1)", "title": "" }, { "docid": "8bd45b4a414305f88d87fd70deceb01f", "score": "0.7924463", "text": "def increment(name, value=1, sample_rate=1, tags=None)...
270089e7d1666ccd84c33c677deb0271
Compute time for arrival of 2 successive Poisson processes.
[ { "docid": "b5a25cee526d68158ebc136b59ffc5d4", "score": "0.548959", "text": "def successive_poisson(tau1, tau2, size=1):\n # Draw samples out of first exponential distribution: t1\n t1 = np.random.exponential(tau1, size=size)\n\n # Draw samples out of second exponential distribution: t2\n t2...
[ { "docid": "8da221bee7ecb59f2efbe2f4aa422704", "score": "0.64124334", "text": "def calc_arrival(appt1, appt2):\n appts = [appt1, appt2]\n appts.sort()\n dist = int(appts[0].location.distance_from(appts[1].location))\n commute_time = round(dist / WALKING_RATE, 0)\n time...
7f2a00107dcd304d935c9bc35f506e32
This function returns a Pyramid WSGI application.
[ { "docid": "dd041475f6d92022acb775b8753d82b7", "score": "0.0", "text": "def main(global_config, **settings):\n\n engine = engine_from_config(settings, 'sqlalchemy.')\n DBSession.configure(bind=engine)\n Base.metadata.bind = engine\n authn_policy = AuthTktAuthenticationPolicy('sosecret', call...
[ { "docid": "d5bf5298c452ae4ca8cc405305481a88", "score": "0.79296374", "text": "def get_wsgi_application():\n # make sure the product is selected before importing and constructing wsgi app\n select_product()\n # return (possibly refined) wsgi application\n from django.core.wsgi import get_wsg...
c188aa5d9b9caca090f2df5bd8a3ec2c
Get optimal prediction from training and testing data
[ { "docid": "ff5496f8dc4b014adeadbabfe6247941", "score": "0.0", "text": "def fun_opt(X_train: np.array, Y_train: np.array, X_test: np.array, Y_test: np.array, y_test_true: np.array,\\\n rs: int, delta: float) -> np.array:\n \n X_all = np.asarray(np.concatenate((X_train, X_test)))\n Y_all = np...
[ { "docid": "70361a4d53450155cc3fd87627f82605", "score": "0.735159", "text": "def predict(self, test_data):\n x, y = test_data\n y_hat = np.argmax(self.feedForward(x)) \n return (y_hat, y)", "title": "" }, { "docid": "97903fff23e63a2dbc11be1cff63be64", "score": "0.705...
30b94c1bb701c9323defb6ae23c2d6a9
Complete the assigning of values to global variables using the two urls.
[ { "docid": "c80c4991d8a9a4975fb31e18273f18e6", "score": "0.5723773", "text": "def handle_individual_args(url1, url2):\n global path, local_path, is_sending\n url_parsed = None\n if invalid_args(url1, url2):\n raise Exception(\"Incorrect arguments given.\")\n else:\n if is_ftp_u...
[ { "docid": "cc893e856a4e8088aa9c1730d4627a1c", "score": "0.5872602", "text": "def setUrl(u):\n global URL\n URL = u", "title": "" }, { "docid": "5341fe733c3b4638c5c2013b3548956f", "score": "0.57887053", "text": "def setURLs(self):\n self.adminUrl = self.adminUrl % self.voNam...
83d516843d418c84004906e5b3ce4ac2
Wrapper function for predicting the language of given message string
[ { "docid": "9387a97baacc192febb39755a0a118ca", "score": "0.8214022", "text": "def predict_language(message, classifier=MultinomialNB):\n pred = predict_label([message], classifier, x_train, y_train)[0]\n return 'English' if pred == 'en' else 'Dutch'", "title": "" } ]
[ { "docid": "3193b4d741f6b91e7d062c54068a9e0b", "score": "0.69242316", "text": "def language_detector(self, message):\n \n try:\n # Detect language\n \n return langdetect.detect(message)\n \n except:\n \n return message", ...
0aaa8bba0f40db29db1267ea0ad8aab8
Derivative PID gain for velocity
[ { "docid": "a744fbf403fd012db4f57009235307bc", "score": "0.6004069", "text": "def velocity_kd(self):\n return _marshalling.get_command_float(self._ref, enums.CommandFloatVelocityKd)", "title": "" } ]
[ { "docid": "ce9393f11196a981a57bd93a154f41e3", "score": "0.6726223", "text": "def VPD(e,t): \n return 0.611*10**(7.5*t/(237.3+t)) - e", "title": "" }, { "docid": "647b1c82a3223e23541e18525fb2bc3b", "score": "0.655852", "text": "def velocityVector_derivs(self, x, mu):\n d...
6ac9ca8822757770b7cbc9865943287d
Tells the gripper to open
[ { "docid": "0fa97323d8ebbf6f95ec883ef43fc1ff", "score": "0.7143466", "text": "def open(self):\n return motion_lib.sendOpenGripper(self.limb)", "title": "" } ]
[ { "docid": "07fab3edbce0880c3c6c7209bd347432", "score": "0.7345661", "text": "def open_restaurant(self):\n msg = self.name + \" is open. Come on in!\"\n print(\"\\n\" + msg)", "title": "" }, { "docid": "07fab3edbce0880c3c6c7209bd347432", "score": "0.7345661", "text": "d...
6b370a0ef0f55a37d93d4a977d360833
Given box mounting Euler angles, simulate raw and corrected output
[ { "docid": "f8b6c7cb0ec51a3c13272c55de44759c", "score": "0.5804853", "text": "def testCorrectionProcess(box_roll, box_pitch, box_yaw):\n print ('When the plane is level, facing North, the box, as mounted,'\n ' reports:\\nroll=%f, pitch=%f and yaw=%f\\n') %(box_roll, box_pitch, box_yaw)\n T ...
[ { "docid": "45e5c84fd69555113386166cdd960197", "score": "0.6140581", "text": "def correctedEulerAngles(roll, pitch, yaw, Tc):\n # get the matrix which maps from the box to the world system (measured)\n Tk = rotationMatrix(roll, pitch, yaw)\n \n # T0 maps from the plane to the box system so m...
5d6fa6896aa27431da4b0786edac15a3
builk download. one single corresponding page for one ID. usually, it is used for profile page of a user/book/shop etc.
[ { "docid": "6a4617d49dac8d8689b552c5a4a90efd", "score": "0.0", "text": "def builk_single(job, url_ptn, cache_dir, find_new=None):\n key = job.next()\n print 'downloading...'\n while key:\n log.info('download {}'.format(key))\n url = url_ptn.format(key)\n fn = os.path.join(c...
[ { "docid": "7ae1ef4236b4ed7843e7327daae10c37", "score": "0.6782515", "text": "def download_profile(request,id):\n #resume = get_object_or_404(Resume.objects.filter(id=resume_id))\n #resume = get_object_or_404(Resume.objects.filter(user=request.user))\n user = User.objects.get(id=id)\n curren...
7a85081fa80c5ad99a101db9d2395dab
Check if a file exists on a unit.
[ { "docid": "a2c89c01b708824786b5bcba7af7d98f", "score": "0.831165", "text": "def file_exists_on_unit(self, sentry_unit, file_name):\n try:\n sentry_unit.file_stat(file_name)\n return True\n except IOError:\n return False\n except Exception as e:\n ...
[ { "docid": "a03d8317b7bc38566e331253dc2977db", "score": "0.74552506", "text": "def file_exists(service, instruction):\n return testinfra(\n service,\n \"File('{0}').exists\".format(instruction),\n _type='file_exists')", "title": "" }, { "docid": "68ff9e4e0dd52d597e403...
169aaee0aa349f4a630ebf811cb89fea
Return a deepcopy of the edge where the vertices are only present if they have a corresponding deepcopy in memodict.
[ { "docid": "e598c585765ca9a5c1dbb81143aab334", "score": "0.6597063", "text": "def __deepcopy__(self, memodict={}, mapping=None):\n cls = self.__class__\n result = cls.__new__(cls)\n memodict[id(self)] = result\n if mapping is not None:\n mapping[self] = result\n ...
[ { "docid": "479f18465f819e28ce7fe6d2bec79a61", "score": "0.6347942", "text": "def recursive_copy(self,\n mapping: Dict['GraphElement', 'GraphElement'] = {}\n ) -> 'Edge':\n if self in mapping:\n # noinspection PyTypeChecker\n retur...
601dcf54f81b2e1102b557d4674d9ca7
Handle one new connection, and receive msg from new connection.
[ { "docid": "4cf39370da5b25ea0cbbe4dd734e3c58", "score": "0.6964225", "text": "def handle_connection(self, client_sock):\n client_info = str(client_sock.getpeername())\n self.logger.info('new connection from {0}'.format(client_info))\n try:\n while True:\n d...
[ { "docid": "66bba946e4c5b4e2fe7b865aebfe9b8e", "score": "0.71267486", "text": "def handle(self):\n self.ip = self.client_address[0]\n self.port = self.client_address[1]\n self.connection = self.request\n\n # Loop that listens for messages from the client\n print self.i...
c0b7086a7fc1747f72f52f379178fe4e
Returning click create bill account Implementing logging for click create bill account functionality
[ { "docid": "979c0744ae5600d2ade8b4b869896529", "score": "0.7159973", "text": "def click_create_bill_account(self):\n is_clicked = None\n try:\n self.logger.info('Start: click create bill account')\n self._carrier_page.click_create_bill_account()\n is_clicke...
[ { "docid": "a7ff368da37d9cb791d5a02bce166a0d", "score": "0.6643552", "text": "def account_create(self):\n user = Session.query(Users).get(session['REMOTE_USER'])\n if user.logname:\n h.flash.set_message(u'You have a login', u'error')\n h.redirect('/users/index')\n ...
3fa911b3d72b2ba46b801d03f41fc517
Return whether this is probably a git sha
[ { "docid": "407f5d62ebf7d50ae13305f741bc134a", "score": "0.8339862", "text": "def is_git_sha(text):\n # Handle both the full sha as well as the 7-character abbreviation\n if len(text) in (40, 7):\n try:\n int(text, 16)\n return True\n except ValueError:\n ...
[ { "docid": "576deabb75940e5858efdabc46d56ff6", "score": "0.7902759", "text": "def _is_commit_sha(commit):\n return len(commit) == 40 and all([\n ch.isdigit() or (ch >= \"a\" and ch <= \"f\")\n for ch in commit.elems()\n ])", "title": "" }, { "docid": "dd82c57355906c0f243d...
b237cd2be8398ce7e59946ae921d26a0
True if this integrity check is a failure.
[ { "docid": "c8425e99befd305f3ba0e049f80e49a2", "score": "0.7559341", "text": "def is_fail(self):\n return self.read_failed or self.is_md5_conflict()", "title": "" } ]
[ { "docid": "4d8bcc01afde4784685d24ed730e3f9f", "score": "0.8094675", "text": "def is_failure(self):\n return not self.is_success()", "title": "" }, { "docid": "ccdf0f41c5c7bbd266d792bc2ccfa1b3", "score": "0.801547", "text": "def is_failure(self):\n return self.is_comple...
88a9fe3b0109f776e9c7c9d4b6d87867
gathers age and returns an int
[ { "docid": "e14eb241ebaa0bc4c5e4124b01dddf46", "score": "0.7343566", "text": "def age():\n age = int(input(\"Please enter your age: \"))\n return age", "title": "" } ]
[ { "docid": "b9f2d6c0e9e26bb438f48b6e8c13bb23", "score": "0.82881415", "text": "def getAge(self):\n return self.int_age", "title": "" }, { "docid": "5d05c0703c3fc94c27c652387006aef2", "score": "0.8241272", "text": "def age(self):\r\n today=datetime.date(2001,5,12)\r\n ...
170daf7298f7dd5d7683b8129c3194dc
Compute information value based on coef
[ { "docid": "f5683fb8efd57a94d787ae1fe5ebec80", "score": "0.58416027", "text": "def comp_info_values(models, features, func):\n\n return np.apply_along_axis(func, 1, features, models)", "title": "" } ]
[ { "docid": "7f350750a41a0a313e8a4f5ab89ec91f", "score": "0.67469186", "text": "def coef(self):\n return self._coef", "title": "" }, { "docid": "e0061843cf6b9e55e6ae0cf9561295c9", "score": "0.6452197", "text": "def GetCoefficients(self):\n ...", "title": "" }, { ...
5ce54918fcfa3f2e0f6d06f14c08cbd2
Radiation density as a function of redshift
[ { "docid": "0dd8ae0ff9f6ed8d28abf6b54c5cadaf", "score": "0.0", "text": "def Omegar_z(self,z):\n return self.Omegar*(1.+z)**4/self.Ez(z)**2", "title": "" } ]
[ { "docid": "e6e98d7d5ec08b100fe67c49a7691ada", "score": "0.71750474", "text": "def _volume_density(self, r):", "title": "" }, { "docid": "6db9e064f4d66a1554595de0a4361560", "score": "0.637734", "text": "def rd(self):\n return radial_diffusivity(self.evals)", "title": "" ...
f84949d7ce82edca512424fdfb89f783
This function is called by KB once a user ask a question.
[ { "docid": "2a0fae386573511e7aa6fde9c545d10c", "score": "0.61247814", "text": "def answer_query(self, *param):\n logging.info(\"\\tcallback QA called\")\n query = self._get_query_from_kb(param)\n\n question_answered = self.qa_exact_temp_matching(query)\n if question_answered=...
[ { "docid": "05f88cbe9d74dc6366b7e0b164866485", "score": "0.7353252", "text": "def ask_question(self, question, also_cmd=False):\n pass", "title": "" }, { "docid": "50dae8d7c0d97959033c9b6314545de9", "score": "0.6874052", "text": "def _Ask_User( self,\n questio...
077a6e904e04369510e54de2e70737c7
Solve nominal differential equation and evaluate firstorder as well as secondorder forward sensitivities of the differential states using an explicit Euler scheme.
[ { "docid": "4e4b85f753eccf1ba3065ae3488f13b7", "score": "0.0", "text": "def so_forward(self, ts,\n x0, x0_dot2, x0_dot1, x0_ddot,\n p, p_dot2, p_dot1, p_ddot,\n q, q_dot2, q_dot1, q_ddot):\n raise NotImplementedEr...
[ { "docid": "7352ebb7ee88e9a9c4d993356a1567d1", "score": "0.69863933", "text": "def run_euler(initial_y, h, n_steps):\n\tinitial = (initial_y, calculate_fs(initial_y, 0.0))\n\tts = [i * h for i in range(n_steps)]\n\tys, fs = solve_ode(initial, h, ts, euler)\n\treturn ts, ys, fs", "title": "" }, {...
176e9c8409cb9ecc5014d87e1c82e4c7
the Apps page load, click settings, unset pool.
[ { "docid": "4762d196c1986abad0b2fe13aa5bb0a7", "score": "0.7270617", "text": "def the_apps_page_load_click_settings_unset_pool(driver):\n assert wait_on_element(driver, 20, '//button[@ix-auto-type=\"button\"]//span[contains(text(),\"Settings\")]', 'clickable')\n driver.find_element_by_xpath('//but...
[ { "docid": "0b2bc49d1191b79a668f92cf777fba7b", "score": "0.6699631", "text": "def test_apps_page_remove_and_readd_pool():", "title": "" }, { "docid": "d709988143c43aefd0ccfc4c14cdee16", "score": "0.5840528", "text": "def click_setting_reset_pool(driver):\n assert wait_on_element(d...
2e27160469a342f0e0386bf2e4d3b056
Convert to ASCII. Remove HTML. Remove punctuation. Lowercase.
[ { "docid": "072282402b33701fca53419c265fabdf", "score": "0.6861824", "text": "def normalize(s):\n if not s:\n return ''\n if type(s) is bytes:\n s = s.decode('utf-8')\n return remove_control_characters(strip_punctuation(strip_tags(unidecode.unidecode(s))).lower())", "title": "...
[ { "docid": "11539bea17e1f6c5f72646500b5a0cbd", "score": "0.715136", "text": "def __clean_data(self, text, remove_punc=True, to_lower=True, remove_non_printable=True, unicode_normalize=True):\n\t\t\n\t\tif unicode_normalize:\n\t\t\ttext = normalize('NFD', text).encode('ascii', 'ignore')\n\t\t\ttext = tex...
2f4ee0d56793e66532b0daaf816bb948
Returns unique word count of a given text.
[ { "docid": "6cd92746454e926b3d2d734e52d7d770", "score": "0.8896774", "text": "def unique_word_count(self, text):\n\n return len(set(list(TextBlob(text).words)))", "title": "" } ]
[ { "docid": "fe2556be3649b3256e280bcbd3ca6673", "score": "0.8136247", "text": "def word_count(text):\n return Counter(text.split())", "title": "" }, { "docid": "a415c875ba79572e2e6b3582d6f587db", "score": "0.78186584", "text": "def get_unique_words(text) :\n\tpass", "title": ""...
6bb804822838ca52b3aeb631be3e32e6
free memory foot print of vamos allocated library
[ { "docid": "7cad154245fad9128c9bffc8c33d0748", "score": "0.7712207", "text": "def _free_vamos_lib(self, lib, ctx):\n self.lib_log(\"free_lib\",\"vamos mem library %s is finishing\" % lib.name)\n\n # first call finish lib\n lib.finish_lib(ctx)\n # free memory allocation\n lib.free_lib_base...
[ { "docid": "5c8ff7a7df72c041875a01b69dc9d9ce", "score": "0.7011698", "text": "def release(self):\n pymain.memory.qstats_deallocation(self.qstats)\n pymain.memory.grid_deallocation(self.grid)\n pymain.memory.surf_deallocation(self.surf)", "title": "" }, { "docid": "2d746e4aa7333d2cee...
94c3e75cd36e35679c8073b85a4679cf
Reverses order of characters in string s.
[ { "docid": "fbc8b845bd45787f7cdc748f94513feb", "score": "0.75606203", "text": "def reverse_string(s):\n reverse = s[::-1]\n return reverse", "title": "" } ]
[ { "docid": "3c1cf696ac8797e79b8281d02a0c7f83", "score": "0.80189973", "text": "def reverseString(self, s):\n l, r = 0, len(s)-1\n while l < r:\n tmp = s[l]\n s[l] = s[r]\n s[r] = tmp\n #s[l], s[r] = s[r], s[l]\n l = l + 1\n ...
07aaf9d7acc2d69356456fb3b7340f57
Method for reading training example file
[ { "docid": "8b93e168c9410319ca0b2b4cbf24961a", "score": "0.71987575", "text": "def read_train(self, filepath=None):\n self.training_data = []\n if filepath is None:\n filepath = self.args[2]\n with open(filepath, 'r') as f:\n text = f.read()\n data =...
[ { "docid": "20b739d73e21330a1130f244821788ea", "score": "0.7001232", "text": "def load_training_file() :\n feature = np.load(\"training_data.npy\")\n label = np.load(\"training_label.npy\")\n return feature, label", "title": "" }, { "docid": "45aba984c5a54ea70cadcb4a57bef9df", "...
0ee694c750c7118ecffee1748490a210
Returns a list of active collections.
[ { "docid": "acfda473526b56585fa7a54e0d5ba8e6", "score": "0.6419283", "text": "def collections(self):\n p = re.compile('^[ ]*::')\n on = False\n for line in self.Lines:\n tok = line.lstrip()\n if tok[0:11] == 'COLLECTIONS':\n first = self.get('COL...
[ { "docid": "e8a5f943c396cf2fd99f22d8de217d43", "score": "0.78182536", "text": "def get_collections(self):\r\n \r\n endpoint = \"collections/list\"\r\n collections = self.request_endpoint(endpoint)\r\n return collections if collections else False", "title": "" }, { ...
1c892816093ef609c477b42fdd568097
Transforms RA and Decl coordinate arrays from equatorial coord. system to horizontal.
[ { "docid": "721cb10e04430c20d07aa2cc8524c7fa", "score": "0.51923865", "text": "def eqToHoriz(ra_rad, decl_rad, lst_rad, fi_rad):\n hourAngle_rad = lst_rad - ra_rad # calculate hour angle for the right ascension\n \n # For azimuth ESO convension is used: zero is at South, increasing westv...
[ { "docid": "a95c77dff73001d64fd63f057fb6f892", "score": "0.550886", "text": "def LPH_to_RAS():\n return np.array([ [-1,0,0], [0,-1,0], [0,0,1] ])", "title": "" }, { "docid": "80d261e97f64507c29cb2663a90170f2", "score": "0.5438633", "text": "def xywh_to_xyxy(boxes):\n return np.hs...
208b3a4039f6c58b86f4ae1ba8b13c6f
Set/Get the results of the PSF fit. This attribute is intended to store any kind of fit information as returned by the fitter.
[ { "docid": "e3938415d70e32794d0aa6743c91bc95", "score": "0.6312025", "text": "def fit_info(self):\n return self._fit_info", "title": "" } ]
[ { "docid": "59c16141799c8d7341a8ead9e69a94be", "score": "0.6916478", "text": "def do_fit(self):\n self.update_component_params_from_fit(None)\n return self._last_fit_result", "title": "" }, { "docid": "a0da6dfc3095c81ea380193e843adce4", "score": "0.68139744", "text": "d...
d15b05eab9b6df939e02691dc4ec7d7d
Comprueba que password y password2 sean iguales
[ { "docid": "5416aee58afca3af556b7d669cc98212", "score": "0.76537067", "text": "def clean_password2(self):\n password = self.cleaned_data.get('password')\n password2 = self.cleaned_data.get('password2')\n if password and password != password2:\n raise forms.ValidationError...
[ { "docid": "b8b9cec279676dad1097569c4342fa07", "score": "0.76436055", "text": "def clean_password2(self):\n password = self.data['password']\n password2 = self.cleaned_data['password2']\n if password != password2:\n raise forms.ValidationError(ugettext('Los dos campos de ...
6113840b6ca23465ffd9368288ad42ec
input_signature(synch_detect_sptr self) > gr_io_signature_sptr
[ { "docid": "c37f6d9fbc0b3f1d815ac5798dcb2c5e", "score": "0.72848946", "text": "def input_signature(self):\n return _ra_blocks_swig.synch_detect_sptr_input_signature(self)", "title": "" } ]
[ { "docid": "aa8e5d29450ab0caf38ea6a94472b555", "score": "0.68901616", "text": "def input_signature(self):\n return _FSO_Comm_swig.Turbulence_ff_sptr_input_signature(self)", "title": "" }, { "docid": "d81887691c63e53b2740dc164cf21577", "score": "0.6826583", "text": "def input_s...
e329f2ec9e7d88ccb5e0c8036b802d28
Updates the cryptographic verifier with the supplied data.
[ { "docid": "c4ee840e9232ad854e836505cb08f735", "score": "0.87925875", "text": "def update(self, data):\n self.verifier.update(data)", "title": "" } ]
[ { "docid": "d170e1d4f127a4d49ace5f0c8877ab8a", "score": "0.68405443", "text": "def update(self, data):\n self._hasher.update(data)", "title": "" }, { "docid": "8c1de4e683af53406c64ef9cdbf3a5ed", "score": "0.6300501", "text": "def update(self, data: ByteString) -> None:\n ...
7025ecb998d2eeb9bb54d4ad390a892c
Display ESIbot's running version.
[ { "docid": "2fcffb6329cfc4674cc9f3e2bfe66600", "score": "0.69039565", "text": "def version(*_):\n\n return \"ESI-bot version {}\".format(__version__)", "title": "" } ]
[ { "docid": "a86e86474d465690eb764cd472d02af5", "score": "0.771733", "text": "def display_version():\n click.echo(\n click.style('endermite', fg='magenta')\n + click.style(f' v{endermite.__version__}', fg='black', bold=True)\n )", "title": "" }, { "docid": "e9f12933d9cbb00...
75e4a9d65140db0e796dd0dcac0316cc
Test using the database with original FSM correction
[ { "docid": "c3e9759a6670aeaf426de845ed199253", "score": "0.52310914", "text": "def test_add_wcs_with_db_fsmcorr_v1(eng_db_ngas, data_file):\n stp.add_wcs(data_file, fsmcorr_version='v1', siaf_path=siaf_db, j2fgs_transpose=False)\n\n with datamodels.Level1bModel(data_file) as model:\n assert...
[ { "docid": "081a1a334214a413193bf695c28a0d25", "score": "0.61922055", "text": "def test_valid_state(self):\n\n valid_states_to_test = [\"MI\", \"AZ\", \"TN\", \"KY\", \"HI\", \"WI\", \"UT\", \"ID\"]\n \n for state in valid_states_to_test:\n self.database.state_code = state...
f3818e93f621a7496730677e3c13e79c
Tests that the parse_svl function raises a SvlMissingValue exception when there's a missing sort value.
[ { "docid": "7e9e55bca725503804b4b586bcabecca", "score": "0.9099671", "text": "def test_missing_sort_value():\n svl_string = \"\"\"\n DATASETS bigfoot \"bigfoot.csv\"\n BAR bigfoot X classification SORT Y classification COUNT\n \"\"\"\n\n with pytest.raises(SvlMissingValue):\n parse...
[ { "docid": "e4ef801d8bef1e03df5eb20dc20398ca", "score": "0.82397723", "text": "def test_invalid_sort():\n svl_string = \"\"\"\n DATASETS bigfoot \"bigfoot.csv\"\n LINE bigfoot X date SORT OOPS Y classification COUNT\n \"\"\"\n\n with pytest.raises(SvlSyntaxError):\n parse_svl(svl_s...
a9b218911f510e78a38dd597d41a6b09
IntentHandler Factory to be called on 'handler_for_intent' dispatcher message
[ { "docid": "1c79b271267ed4aefa2f181c4e470294", "score": "0.0", "text": "def create(cls):\n return cls()", "title": "" } ]
[ { "docid": "f57d32741e99e87096a93cc693078e58", "score": "0.74510187", "text": "def handler_for_intent(intent):\n\n def class_decorator(Cls):\n logger.info(\"registering {} for {}\".format(\n Cls.__name__, intent.__name__))\n signal = \"handler_for_{}\".format(intent.__name__)...
b50d74bd6b59443ad2619d241b2395b4
Initialize the light device.
[ { "docid": "ad28c17e07d926da1ee9944c2b39d863", "score": "0.62050176", "text": "def __init__(self, name, light, model, unique_id):\n self._name = name\n self._light = light\n self._model = model\n self._unique_id = unique_id\n\n self._brightness = None\n\n self._...
[ { "docid": "d3a615acbd9cef383c265d794eb90aa6", "score": "0.6673229", "text": "def __init__(self, _is_on, _light_id_num, _amb, _dif, _spec, _pos):\n # call base class constructor to fill the members\n super(GLLightParameter, self).__init__()\n\n # OpenGL light ID (GL_LIGHT0, ..., GL...
2ed460da7f37e01807b5427bc6230a88
Copy this generation strategy without it's state.
[ { "docid": "3624438978ac73fa1a51b6cefb939e1f", "score": "0.78597903", "text": "def clone_reset(self) -> \"GenerationStrategy\":\n return GenerationStrategy(name=self.name, steps=self._steps)", "title": "" } ]
[ { "docid": "ce6150607009d69415548a6153d1568e", "score": "0.6703162", "text": "def copy(self):", "title": "" }, { "docid": "42f9d09cb8be984f0049208cde18f052", "score": "0.6684361", "text": "def clone(self):\n\t\t\n\t\tpass", "title": "" }, { "docid": "9e6cb200ed9bd764e6a68...
b5a20fc63a66b65fe2a4233f4d146060
Create TableRateShipping Create a new TableRateShipping This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True >>> thread = api.create_table_rate_shipping_with_http_info(table_rate_shipping, async=True) >>> result = thread.get()
[ { "docid": "fe27a252e394583dd4c3324bf193d143", "score": "0.7817906", "text": "def _create_table_rate_shipping_with_http_info(cls, table_rate_shipping, **kwargs):\n\n all_params = ['table_rate_shipping']\n all_params.append('async')\n all_params.append('_return_http_data_only')\n ...
[ { "docid": "57b1176062c44b3895b9622ddb802db6", "score": "0.85496885", "text": "def create_table_rate_shipping(cls, table_rate_shipping, **kwargs):\n kwargs['_return_http_data_only'] = True\n if kwargs.get('async'):\n return cls._create_table_rate_shipping_with_http_info(table_ra...
6ad1988a1ed887eda1a2b3b37677b815
This function tests for the 'right' keyword being added to a triangle definition to denote a right triangle.
[ { "docid": "7e2e292362c712811cae7747405fefd9", "score": "0.74743557", "text": "def test_right():\n assert triangle567.classify_triangle(3, 3, 3*math.sqrt(2)) == \"Isoceles Right\"\n assert triangle567.classify_triangle(3, 4, 5) == \"Scalene Right\"\n\n assert triangle567.classify_triangle(0, 0,...
[ { "docid": "288aaa149f567882f96a922950a9cb19", "score": "0.69600654", "text": "def test_right_scalene(self):\n self.assertEqual(Classify_triangle(3, 5, 4), 'Right Scalene')\n self.assertEqual(Classify_triangle(3, 4, 5), 'Right Scalene')", "title": "" }, { "docid": "d888639695c2...
b2783a2c2cf94d1a6dd792ea3992ee8e
Converts a string into a raw value. Raises a ValueError exception if an error occurs.
[ { "docid": "56860246b762e421096515c15390db51", "score": "0.7866863", "text": "def str_to_raw(self, string):\n return self.val_to_raw(string)", "title": "" } ]
[ { "docid": "0538686067f2aaa9cff6e8062c9b8b48", "score": "0.7608949", "text": "def str_to_raw(self, string):\n return self.val_to_raw(parse_int(string))", "title": "" }, { "docid": "2af004e42737ad202b1801491b283226", "score": "0.7527022", "text": "def str_to_raw(self, string):\...
1c28a819f3323d1bba5a33148c44caaa
Sorts a list of images based on the number of particles each image represents
[ { "docid": "bb23bef8e3686ce619cfe5bebccb878f", "score": "0.0", "text": "def sortstackkurt(stack,nsort):\n\n\tstack.sort(key=lambda B:B.get_attr(\"kurtosis\"),reverse=True)\n\n\treturn stack[:nsort]", "title": "" } ]
[ { "docid": "9d547fa16a198a08c960a244e2697910", "score": "0.67939764", "text": "def sort_by_npx(image, numpx):\n depth = image.shape[2]\n # Convert the 3D array into 2D\n # Squeeze trims the enapsulating arrays left over from reshape\n flat = numpy.reshape(image, (-1, 1, depth)).squeeze()\n ...
06bafe496aadfba368a5a5c99b57c288
Send a wakeup to this instrument...one that wont hurt if it is awake already.
[ { "docid": "ddad7dd7528ee4aa44a2108abbbeeffd", "score": "0.586193", "text": "def _send_wakeup(self):\n self._connection.send(self.eoln)", "title": "" } ]
[ { "docid": "a396c65eed80b63fa466faa64d124478", "score": "0.74337125", "text": "def wakeup(self) -> None:\n\n self._general_call(_MCP4728_GENERAL_CALL_WAKEUP_COMMAND)", "title": "" }, { "docid": "b4fbfc8a3446bdc0b48b161d2de6f3be", "score": "0.73297286", "text": "def wakeup(self...
4b47d6c4b00bf26e9b3228621c5a6e14
r"""Return a callable for the list service perimeters method over gRPC. List all [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] for an access policy.
[ { "docid": "a3cf295204545f3d949c51b6616c69fa", "score": "0.81900865", "text": "def list_service_perimeters(self) -> Callable[\n [access_context_manager.ListServicePerimetersRequest],\n access_context_manager.ListServicePerimetersResponse]:\n # Generate a \"stub function\" on...
[ { "docid": "621cdb958247dde1dba91c7eae57d11f", "score": "0.63309216", "text": "def list_access_policies(self) -> Callable[\n [access_context_manager.ListAccessPoliciesRequest],\n access_context_manager.ListAccessPoliciesResponse]:\n # Generate a \"stub function\" on-the-fly ...
f8381534a89d88b383d71d9d1d0b6081
Test that the versions parameter is populated.
[ { "docid": "cea0272088a36dd22a11e64dfade7902", "score": "0.6964082", "text": "def test_versions(self):\n preamble_done = self.client.handle_reply = WaitingMock()\n # Do a request and wait for it to be done so that we can be sure we received the\n # full connection-header before test...
[ { "docid": "b6d3f41f3abde5aabd8c6baf2e859fcf", "score": "0.7764233", "text": "def test_versions(self):\n pass", "title": "" }, { "docid": "530eb6aa532962fef67c71f232a27cd9", "score": "0.7197122", "text": "def test_get_version(self):\n pass", "title": "" }, { ...
24a34ef28fea50e233b20948ba1874b1
Removes duplicates in the map, saving only the longest branches.
[ { "docid": "7240971a313617a1ffff34a7e05f54a8", "score": "0.5912566", "text": "def reduce_map(site_map):\n assert isinstance(site_map, dict)\n result = dict(site_map)\n for url in site_map:\n child_nodes = get_all_nodes_in_tree(site_map[url])\n for node in child_nodes:\n ...
[ { "docid": "17dd8ba0fd3db72699be7664209c5437", "score": "0.5727337", "text": "def uniq(longlist):\n shortlist = {}\n return [shortlist.setdefault(e,e) for e in longlist if e not in shortlist]", "title": "" }, { "docid": "de2d504309b5da8f1f33fe3abc122757", "score": "0.5702314", "t...
8db0567911ff5d32aeac113e1abd98fa
Route the incoming request based on type (LaunchRequest, IntentRequest, etc.) The JSON body of the request is provided in the event parameter.
[ { "docid": "38bc988433a5663d6e8c3d342fa6540e", "score": "0.56601113", "text": "def lambda_handler(event, context):\n print(\"event.session.application.applicationId=\" +\n event['session']['application']['applicationId'])\n\n \"\"\"\n Uncomment this if statement and populate with your ...
[ { "docid": "c756b3f1644430cf48168ee66ab45915", "score": "0.7518431", "text": "def lambda_handler(event, context):\n LOGGER.info(\"Received event: \" + json.dumps(event, indent=2))\n\n request_type = event['RequestType']\n if request_type == 'Create':\n _create_route(event, context)\n ...
77a4ce07baeb715de49aa915e278c684
Create neighborhood list for courses regarding regarding curriculum lists and teacher's conflicts
[ { "docid": "3985ba7cbe1e6deadfa586372cbda261", "score": "0.76188624", "text": "def createNeighbourhoodList(self, curriculumList, courseList):\n self.neighbourhoodList = {x.id : set([]) for x in courseList}\n for c in curriculumList:\n comb = combinations(c.members, 2)\n ...
[ { "docid": "2c364aa21eb9d0e49cac73a1f0145864", "score": "0.5606591", "text": "def build_graph(self, numCourses):\n graph = [[] for _ in range(numCourses)]\n for elem in prerequisites:\n v, u = elem[0], elem[1]\n graph[u].append(v)\n\n return graph", "title"...
9bac06abb230888386553f8e24491e85
Parse embl file and estract mature miRNA location information.
[ { "docid": "df5b0c1654e2419c555dca692fdda91d", "score": "0.0", "text": "def embl2gff(dat, org, gff):\n # extract records\n dat_parser = SeqIO.parse(dat, \"embl\")\n # extract organism specific miRNAs\n org_mirnas = [mirna for mirna in dat_parser if mirna.name.startswith(org)]\n for mirna ...
[ { "docid": "3d6a1715619e88f691b1e985edf8497a", "score": "0.5933108", "text": "def _parse_e(self, line):", "title": "" }, { "docid": "cfd073da90c5e903217b9c59bc978dd0", "score": "0.5632451", "text": "def _read_mae(\n cls, filename, contains_conformers=\"check\", save_memory_for...
2efe98eabf7e1e504f565f13c00e6df0
Update timestamp for cases which started being processed as batch
[ { "docid": "ea4bf5119c910d064502df152cd3fc03", "score": "0.56493217", "text": "def update_upload_started_at(self, case_id: str) -> None:\n if self._dry_run:\n return\n case_obj: Family = self.status_db.get_case_by_internal_id(internal_id=case_id)\n case_obj.analyses[0].up...
[ { "docid": "da6f345da41c06304bbbdebafd939aa2", "score": "0.6625664", "text": "def set_batch_processed(self, id_batch):\n\t\tself.logger.debug(\"updating batch %s to processed\" % (id_batch, ))\n\t\tsql_update=\"\"\" \n\t\t\tUPDATE sch_chameleon.t_replica_batch\n\t\t\t\tSET\n\t\t\t\t\tb_processed=True,\n...
510f86f8f20e310b2263a6a71ef7d911
construct a twoplayer set of players
[ { "docid": "e3fb9b7ecbc43787ddb50410c970d3e1", "score": "0.0", "text": "def two_player(cls, *, p1: Optional[Player] = None, p2: Optional[Player] = None):\n return cls(*cls.get_players([p1, p2]))", "title": "" } ]
[ { "docid": "64aedae300cf607dc40b225b2004b95a", "score": "0.6930002", "text": "def init_players(self):\n for name in self.player_names:\n new_player = Player(name)\n self.players.append(new_player)", "title": "" }, { "docid": "4b8d453f213026192d959c8386798ee5", ...
a9942bed13abe4590f1e3edadff8ec29
How many samples behind the 'seam' are we? For example if 'C' is our current self.index, and 'E' is ring[0] (the last sample appended), this will return 3. Note that in this example, ring.__index would be pointing to f [a, b, C, d, E, f] This should be equal to the number of samples that it is safe to get
[ { "docid": "e98fceb06a102121d33d4f753e9fef73", "score": "0.0", "text": "def valid_buffer_length(self):\n ring = self.get_ring()\n if self.__ring_index <= ring.index_of(0):\n return ring.index_of(0) - self.index + 1\n else:\n return ring.index_of(0) + len(ring) ...
[ { "docid": "d133aa7e331d31ec8e2baa7d4078dd2b", "score": "0.6834425", "text": "def __len__(self):\n return self.accumulated_sample_num_list[-1]", "title": "" }, { "docid": "603345b537464f72ea8d224ca78e35db", "score": "0.67306805", "text": "def __len__(self) -> int:\n ret...
4f19ace662013d232176ea8d52908473
Takes input and swaps out text values for value key pairs defined by matches in a dictionary
[ { "docid": "a7f837deada32e5f2453274eb5ff770e", "score": "0.642288", "text": "def translate_results(dict, modlines):\r\n for k, v in dict.iteritems():\r\n modlines = re.sub(k, v, modlines)\r\n return modlines", "title": "" } ]
[ { "docid": "48c76fd380a2afa4a7caffaad9ea6378", "score": "0.66900074", "text": "def dict_replace(text):\r\n replacedict = {'Arabian': 'Arab',\r\n 'HIspanic': 'Hispanic',\r\n 'Korculan': 'Korcula',\r\n 'Hispaic': 'Hispanic',\r\n 'H...
189a79f3ee550f54b68a43482107a89e
Mutate this function into its antiderivative. >>> f = FunctionRtoR("asin(kx) + d", abc.x) >>> f.antiderivative() >>> str(f) 'aPiecewise((cos(kx)/k, Ne(k, 0)), (0, True)) + dx'
[ { "docid": "f4b48737a819031ba516fcfa99e0fc79", "score": "0.53531003", "text": "def antiderivative(self) -> None:\n self._symbolic_func = integrate(self._symbolic_func,\n self.symbols[0])\n self._reset_samesymbols()", "title": "" } ]
[ { "docid": "d3d8958a514813d43b33f9b582a7e126", "score": "0.53752196", "text": "def unary_irrev_cstr(t, k, r, p, fr, fp, fv, backend=None):\n # See _kinetics_cstr.ipynb\n be = get_backend(backend)\n x0 = fr * fv\n x1 = fv + k\n x2 = 1 / x1\n x3 = fv * r + k * r - x0\n x4 = fr * k\n ...
41fa50a6a8868a4f24da5894655df3c0
Return `true` when self and other are not equal, false otherwise.
[ { "docid": "c3852e141e6a4dd8912d8d896652ccfb", "score": "0.0", "text": "def __ne__(self, other: 'SubnetCollectionNext') -> bool:\n return not self == other", "title": "" } ]
[ { "docid": "6d761451e677294101dfd0daf4371c40", "score": "0.85641104", "text": "def __eq__(self, other):\n return not (self != other)", "title": "" }, { "docid": "a1b6aadb4ca3c661fc6fe3c1ca8dea13", "score": "0.8554691", "text": "def __ne__(\n self,\n other...
1eb0ae7853c565464a5e80b642ba8136
A ativacao do equipamento em si (o que ele faz ...)
[ { "docid": "4701c1cf9fb51ea1ad6fb94a2624b0f4", "score": "0.0", "text": "def activate(self):\n pass", "title": "" } ]
[ { "docid": "9bf8211a49868ddb90fc04cd518da5e9", "score": "0.6155534", "text": "def isActive(self):", "title": "" }, { "docid": "a07e4b27e43a6e8636cbe3e9b17fbca8", "score": "0.6101991", "text": "def check_inventory():", "title": "" }, { "docid": "3580836c196fd4ac578a5336fa8...
97b9d60d03e4ddf3bb22319a680a85c4
If request represents an ajax or embeddable "format", tries to preserve that for redirects. Any GET params may be passed through the QueryDict get_dict, which should be mutable.
[ { "docid": "7b6b4d6726eff5c38264a59c3020be30", "score": "0.67947", "text": "def format_preserving_redirect(request, target, get_dict=None):\n my_get_dict = QueryDict('', mutable=True)\n if get_dict:\n my_get_dict.update(get_dict)\n\n if request.GET.get('is_embeddable', False):\n my_get_dict['is...
[ { "docid": "b2a5e6441203a24a148e237498f3e2a1", "score": "0.6832993", "text": "def _set_params():\n if request.method == 'GET':\n return dict(request.args)\n else:\n return request.json or dict()", "title": "" }, { "docid": "5c666f9006383093acc9cd4967218a29...
f90cfdbe32a4fbf098a786fb244e391d
Returns element for the specific locator
[ { "docid": "be6f545c80ebb0469aec0a4fc22cafeb", "score": "0.7306465", "text": "def get_element(self, locator, wait_type=EC.presence_of_element_located, timeout=TIMEOUT):\n try:\n WebDriverWait(self.driver, timeout).until(wait_type(locator))\n except TimeoutException:\n ...
[ { "docid": "face60c9c71dd3f429c2686b4856f3ce", "score": "0.8023365", "text": "def find_element(self, locator):\n element = self._element.find_element(*locator.accessor)\n return selenium_web_element_to_element(element)", "title": "" }, { "docid": "6b027571c67612b620b747e7e0757b...
178cd023c83460934e4d87123e738f25
Tests that the icalendar view uses summary_length correctly.
[ { "docid": "7e4b19029233c943edee233e8166e401", "score": "0.853074", "text": "def testIcalenderSummaryLength(self):\n summary_length = 123\n res = self.client.get(reverse('event-icalendar', kwargs={'summary_length':summary_length}))\n self.assertEqual(res.status_code,200)\n vc...
[ { "docid": "2eacab3b77ced7309227b3f34a431d1e", "score": "0.6127883", "text": "def test_generate(self):\n c = Calendar(2018, 1)\n self.assertEqual(c.get_size(), 35)", "title": "" }, { "docid": "b6fbcc81456d83d64644f3d4699e60ff", "score": "0.5777641", "text": "def test_ge...
f6e367e1f8c69e153ff34863cd6455e5
Get custom mirror data from a node.
[ { "docid": "4187fc346940e96f3c4197d0532f6fcf", "score": "0.670323", "text": "def loadCustomMirrorSettings(node):\n result = {}\n if not isCustomMirrorNode(node):\n return result\n\n data = mirrorData.getMirrorData(node)\n\n if 'customMirror' not in data or 'settings' not in data['cust...
[ { "docid": "5facd4b2bcc074f59c7265f1d81465da", "score": "0.6396764", "text": "def isCustomMirrorNode(node):\n return mirrorData.hasMirrorData(node) and 'customMirror' in mirrorData.getMirrorData(node)", "title": "" }, { "docid": "7d49b5d7339d05ea219cf6420880d2ea", "score": "0.6311498"...
f5c4c1a6810aef816a0b24d3c5e2956d
RGB image to gray
[ { "docid": "544e08379af6e18b813ef0a1c316512c", "score": "0.7575167", "text": "def rgb2gray(self, rgb):\n r, g, b = rgb[0,:,:], rgb[1,:,:], rgb[2,:,:]\n gray = 0.2989 * r + 0.5870 * g + 0.1140 * b\n return torch.unsqueeze(gray, dim=0)", "title": "" } ]
[ { "docid": "44567be5aefcd25372bb2a7aa4934307", "score": "0.8255635", "text": "def gray(self):\n self.img = self.img.convert('L')", "title": "" }, { "docid": "d77e9475afc0d84f3f9d7de4cdb3f931", "score": "0.8236115", "text": "def rgb2gray(img):\r\n return 0.2989*img[:, :, 0] ...
fafbb8544908e0651a44d1ccc26695ba
Sets the system_id of this SystemInsightsDiskInfo.
[ { "docid": "df191029610507546a6757474f0a41ce", "score": "0.75254333", "text": "def system_id(self, system_id):\n\n self._system_id = system_id", "title": "" } ]
[ { "docid": "366d64a10e4fb23fa8f1ba4c65003ba3", "score": "0.6761342", "text": "def system_identifier(self, system_identifier):\n\n self._system_identifier = system_identifier", "title": "" }, { "docid": "3351cc1f0f1ca8ed04ec8675ba67e93a", "score": "0.56674623", "text": "def set...
1d7f49549ef2f80f1e7703b4a5fb7054
Load raster in the mapset and update the dictionary with input a new name
[ { "docid": "75e0a84944f554986d41f1851b60d923", "score": "0.0", "text": "def load_vectors(vectors: Dict[str, str], overwrite: bool = False):\n for vname, vector in vectors.items():\n print(f\"» Importing: {vname} from {vector}\")\n run_command(\n \"v.import\", input=os.fspath(...
[ { "docid": "3d89cbfb7be8748ebf3fbfe2080e46eb", "score": "0.6276519", "text": "def layers(self, mapnames):\n\n # some checks\n if isinstance(mapnames, str):\n mapnames = [mapnames]\n\n # reset existing attributes\n for src in list(self.loc.values()):\n tr...
79bb27d637e582e2cf05072359c83792
The rank_recommed function will give ranked recommendation of movies for users
[ { "docid": "ba966f6b2c6de67b45c5e3fda665abe8", "score": "0.7663704", "text": "def rank_recommed(user_id, ranked, ranking):\n\n top_n = ranking.head(ranked)\n\n top_movies = list(top_n.movie)\n\n return top_movies # a list of the n_top movies as recommended", "title": "" } ]
[ { "docid": "74dbabcdf0b8ea1b0f6e326d5283d382", "score": "0.75985366", "text": "def recommend(self, user):\n K = self.n_sim_user\n N = self.n_rec_media\n rank = dict()\n watched_movies = self.trainset[user]\n\n for similar_user, similarity_factor in sorted(self.user_sim...
76a2ac85e1db7e5b591bdc013aceee58
lists all discovered lamps, if discovery has not run in a while performs a new scan.
[ { "docid": "f1610c8d81e739a038d8a733a06de29c", "score": "0.6091114", "text": "async def list_lamps(request):\n lights = lifx.get_lights()\n response = []\n\n for light in lights:\n name = light.get_label()\n color, saturation, brightness = configuration.color_transform(light.get_c...
[ { "docid": "9e5c0800debc64c5f370cf502a3742be", "score": "0.62208533", "text": "def refresh_list(self):\n # self.ip_list = discover_bulbs()\n self.light_list = [Light(ip) for ip in self.ip_list]", "title": "" }, { "docid": "ac0392843116443bf1300f340e5dc057", "score": "0.6059...
8eead524284ac79fff3220c94eb137f5
Crea un simple archivo html para mostrar todas las imagenes de la carpeta sumistrada
[ { "docid": "c4e4bc6160e7cbf31445a83623993a1c", "score": "0.5140632", "text": "def make_gallery_from_folder(path:str=\".\",nombre_html:str=None,menu:[('img_number','name')]=DEFAULT_MENU,sort_key=str.lower,**mg):\r\n path = os.path.abspath(path)\r\n if not os.path.isdir(path):\r\n raise Value...
[ { "docid": "29d8d3fb81f28e914522542db1cd7038", "score": "0.6418852", "text": "def imgs(filename):\n return static_file(filename, root='./img')", "title": "" }, { "docid": "d42ce4a33fc501e48f4fa6fbf7d65053", "score": "0.63942295", "text": "def SaveHtml(self, path, width, height):\r...
18e5adf99d5800472f8493a922f8148d
Generates conference info in APA format.
[ { "docid": "92d9929d1e7aff60c9858a20378306e6", "score": "0.0", "text": "def gen_conf(title, location):\n\n conf = ''\n if title or location:\n conf += ' %s' % CONFERENCE_PREFIX\n\n if title:\n conf += title\n if location:\n conf += ', '\n\n ...
[ { "docid": "b25ac0749085580834e0bfb6be9c750b", "score": "0.5756888", "text": "def insertConference(self, conference):\n abbr = ''\n if conference[0] == 'N': \n abbr = 'NFC'\n else:\n abbr = 'AFC'\n\n return {\n \"name\": conference,\n ...
e4be7dcb791d4b1c4d012c61a8d665d6
New() > itkRandomImageSourceIF3 Create a new object of the class itkRandomImageSourceIF3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter in the first input...
[ { "docid": "21b63d106b95287909ecc7af414368e8", "score": "0.8054718", "text": "def New(*args, **kargs):\n obj = itkRandomImageSourceIF3.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "title": "" } ]
[ { "docid": "df943118ee957bb7f5603bc9daf25607", "score": "0.7710672", "text": "def New(*args, **kargs):\n obj = itkRandomImageSourceIUC3.__New_orig__()\n import itkTemplate\n itkTemplate.New(obj, *args, **kargs)\n return obj", "title": "" }, { "docid": "20aafae778f...
c051a3e6345f7cfb921052b528f0627e
Send the residue to output_fn.
[ { "docid": "cd2a8c0ce78a65e10cf304c9aca848f9", "score": "0.0", "text": "def flush(self):\n self.write('.\\n')", "title": "" } ]
[ { "docid": "ec1d93d8f944b434062400ccf71a1ec4", "score": "0.60650206", "text": "def _output(self, s):\n self.output_function(s)", "title": "" }, { "docid": "7764c52de1e4398ef513bd37eacd0436", "score": "0.5568108", "text": "def outputFnc(self):\n\t\tif self.state['status'] == 'A...
6ec9cec618700c16b2a7adb1d111cc19
Add the given registry to the no conflict registries.
[ { "docid": "e81b35430d58546288355ae557092a91", "score": "0.83440703", "text": "def shouldnt_conflict_with(self, registry):\n self.no_conflict_registries.append(registry)", "title": "" } ]
[ { "docid": "1e71b86172e440c2b4d9b9df30d78710", "score": "0.57302564", "text": "def registry(self, registry):\n\n self._registry = registry", "title": "" }, { "docid": "06e9038aac32efc0d1c02f75673087c7", "score": "0.5704755", "text": "def add_sub_registry(\n self, name, ...
b2a86adf692f46edb0f539ae478e147e
Test the qtpy.QtAxContainer namespace
[ { "docid": "9f3583a9087a2d8af0f48e7ad03f0415", "score": "0.8935323", "text": "def test_qtaxcontainer():\n QtAxContainer = pytest.importorskip(\"qtpy.QtAxContainer\")\n\n assert QtAxContainer.QAxSelect is not None\n assert QtAxContainer.QAxWidget is not None", "title": "" } ]
[ { "docid": "81b5ec7bfd46e9afeba803e002753b2f", "score": "0.61026925", "text": "def test_container_widget():\n container = widgets.Container(labels=False)\n labela = widgets.Label(value=\"hi\", name=\"labela\")\n labelb = widgets.Label(value=\"hi\", name=\"labelb\")\n container.append(labela)...
c3eb1461b652f7491478b466deaf4506
The selflabel (what am I?).
[ { "docid": "fa0604dba40eb22b05e09bfc5da077a3", "score": "0.0", "text": "def slabel(self):\n return self.dimensions[0]", "title": "" } ]
[ { "docid": "2da18a3933884377c5cfc512c5cd0d43", "score": "0.81297386", "text": "def label(self):\n pass", "title": "" }, { "docid": "22f375c78e67bf95da44093c9d55c38c", "score": "0.80718327", "text": "def label(self):\r\n return self.__label", "title": "" }, { ...
64ccb2ebc22d953d92fe46ce3080eeee
Returns the feature vectors for all text in the train and test datasets.
[ { "docid": "2bb2e515aafc155f267d6f8b3320fec3", "score": "0.59891117", "text": "def feature_vecs_DOC(train_pos, train_neg, test_pos, test_neg):\n # Doc2Vec requires LabeledSentence objects as input.\n # Turn the datasets from lists of words to lists of LabeledSentence objects.\n labeled_train_po...
[ { "docid": "a84f82a91424b133f905d92fc80e7b5c", "score": "0.6853603", "text": "def getTextVectors():\n raw_text_file = open(utilites.getAbsPath(setup.corpus_file_path))\n raw_text = raw_text_file.readlines()\n print(\"Corpus file \" + raw_text_file.name + \" was loaded.\")\n # use re to split...
48836bbd75016fdfe8631f3f78b57185
Solve a challenge, given the name and solution.
[ { "docid": "14bfa1462d0681de15fa04ae8d4de51d", "score": "0.65763515", "text": "def solve_challenge(challenge, solution):\n csrf = find_csrf(\n session.get(f'{go_endpoint}/challenges/{challenge}')\n )\n # Static Flag\n if type(solution) is not dict:\n post_flag(solution, challen...
[ { "docid": "17f4d2885e282dc00a4f6c6589dcc44a", "score": "0.7212741", "text": "def solve(self) -> SolveResult:", "title": "" }, { "docid": "12d1416046d1912afd33d8f3bd4ce657", "score": "0.6612485", "text": "def solve_puzzle(clues):\n return Skyscraper(clues).solve()", "title": "...
cb4561d65654ad8688ac5c1094412329
Create an index of words with no overlapping letters.
[ { "docid": "a29c95609a51916d0ba73a5eb2c4752f", "score": "0.5923785", "text": "def get_index(self) -> dict[tuple[str, ...], list[str]]:\n # The goal of the index is to make a list of acceptable choices\n index = defaultdict(list)\n for left, right in tqdm(\n itt.combinatio...
[ { "docid": "d880ac66bf851141f49f6346c8a29ddb", "score": "0.61350965", "text": "def get_word_inds(self, text, *args):\n if text is None or len(text) == 0:\n return self.pad([])\n return self.pad([(self.vocab[w]) for w in text.split() if w in self.vocab])", "title": "" }, ...
d80381cf45ce1876690a30d93f0c7b2a
Check that the difference in simplices before and after adding a point is returned by tri.add_point
[ { "docid": "ef9cd150d32f3598ab98577be1ddb8ee", "score": "0.76842374", "text": "def _add_point_with_check(tri, point, simplex=None):\n old_simplices = tri.simplices.copy()\n deleted_simplices, created_simplices = tri.add_point(point, simplex=simplex)\n new_simplices = tri.simplices.copy()\n\n ...
[ { "docid": "b0010e568591cb0df247eef1a36da163", "score": "0.5853818", "text": "def test_add(self):\n\t\tp1 = viennagrid.wrapper.PointCartesian1D(2)\n\t\tp2 = viennagrid.wrapper.PointCartesian1D(1)\n\t\tself.assertNotEqual(p1, p2)\n\t\tself.assertEqual(p1.coords[0], 2.0)\n\t\tself.assertEqual(p2.coords[0]...
175b61448c499656f71b6cfc6a082a34
The purpose of this function is update characters Turkish
[ { "docid": "a90dd8b830fb53c67b5f1548219ca89b", "score": "0.6979805", "text": "def turkish_ch(pdf):\n pdf = pdf.replace(\"Ý\", \"İ\") \n pdf = pdf.replace(\"Ð\", \"Ğ\") \n pdf = pdf.replace(\"ý\", \"ı\") \n pdf = pdf.replace(\"Þ\", \"Ş\") \n...
[ { "docid": "f1fe68f89ed791e2c7455022f8a91c4d", "score": "0.65029407", "text": "def replace(text, old_chars, new_chars):\r\n\r\n # your code here\r", "title": "" }, { "docid": "ea34b5c684717d8d5a10c4eabd386b11", "score": "0.6087585", "text": "def autoUnicodes(self):\n\t\tfrom fontT...
01fe24c9262dea29f2ac403624a20964
Utility method to plot text and put line breaks in to keep the text within a given limit.
[ { "docid": "5ba734c7dabb97efb04ababe1106418a", "score": "0.72965825", "text": "def pipelinePlottext(xoff, yoff, text, maxchars, ny_subplot=1, mult=1):\n\n words = text.rsplit()\n words_in_line = 0\n line = ''\n ax = plt.gca()\n for i in range(len(words)):\n temp = line + words[i] +...
[ { "docid": "bf4ee7882cda564bfe55b03c68cedad0", "score": "0.6452593", "text": "def add_linebreak_to_txt(my_txt: str, img_draw: ImageDraw, text_font: ImageFont,\r\n max_width: int) -> str:\r\n \r\n textwidth, textheight = img_draw.textsize(my_txt, text_font)\r\n \r\n if...
826e4686d64cdbeebec45206194fe22f
Test that if the same user makes more than one commit that changes the content of an exploration, the user is only represented once in the list of contributors for that exploration.
[ { "docid": "8e147c678460c1ca103e7d5a0ac83eb8", "score": "0.7894663", "text": "def test_repeat_contributors(self):\n\n # Have one user make two commits.\n exploration = self.save_new_valid_exploration(\n self.EXP_ID, self.user_a_id, title='Original Title')\n exploration_mo...
[ { "docid": "8d7bd3c646a36bf4509ff128f9d5fe35", "score": "0.77234006", "text": "def test_contributors_with_only_reverts_not_counted(self):\n # Have one user make two commits.\n exploration = self.save_new_valid_exploration(\n self.EXP_ID, self.user_a_id, title='Original Title')\n...
83256808b586c244bf6855b0ff40c052
Displays the ToolTip if the time delay has been long enough
[ { "docid": "8af5dab80e02faf69795d19ca6eacc54", "score": "0.55352086", "text": "def show(self):\n if self.visible == 1 and time() - self.lastMotion > self.delay:\n self.visible = 2\n if self.visible == 2:\n self.deiconify()", "title": "" } ]
[ { "docid": "47c4a33b541ef6352f10b1a7035a1e49", "score": "0.65142673", "text": "def onTimer(self):\n if self.hoverCount<10:\n self.hoverCount+=1\n if self.hoverCount==5:\n self.generateTooltip()", "title": "" }, { "docid": "4bc020d0eaa0198797fff6ef6...
8683ba81547647b24a5af69bb6ee4346
Method will compare two given files.
[ { "docid": "c691245e77013e920757143af8625f5f", "score": "0.76369506", "text": "def compare(self, reference_filepath, other_filepath, **kwargs):\n raise NotImplementedError(\"Method must be implemented\")", "title": "" } ]
[ { "docid": "b955dbda19002c1533448d26a5897211", "score": "0.762233", "text": "def _compare_files(self, filename1, filename2):\n if filename1.find('.') != -1 and filename2.find('.') != -1:\n basename1, ext1 = filename1.rsplit('.', 1)\n basename2, ext2 = filename2.rsplit('.', 1...
a27df0f069a279e56b9a157acecc5a49
Wrapper for performing multiple fits on a time series This method uses the previous values for a and b as initial guess for the next fitting
[ { "docid": "43f8ab2acd7ed92a871b838632c73597", "score": "0.54918706", "text": "def moving_averages_fits(times, sus, inf, rem, window=14, \n a_guess=1, b_guess=1, \n ode_options={}, opt_options={}):\n a_prev = a_guess\n b_prev = b_guess\n \n num...
[ { "docid": "8e5aa2a846532c007db24f5ba04a960a", "score": "0.6585318", "text": "def fit(self, y: pd.Series):\n assert y.index.name == \"date\"\n for tau in range(0, 7):\n tau_smoothing_length = self.tau + tau\n\n # Take the log of observations - default log\n ...
479751d6d327d2027c5d95928049f0e9
This function is called immediately after convert_searchspace and get the output of the latter as input. It's purpose is to call the solver libs main optimization function.
[ { "docid": "34e1eb9168117b6a65969a4c225ab609", "score": "0.6415419", "text": "def execute_solver(self, searchspace):\n N = self.max_iterations\n self._sampler = QuasiRandomSampleGenerator(N)\n for name, axis in searchspace.items():\n self._sampler.set_axis(name, axis[\"da...
[ { "docid": "6a49186e2d2f22b9e12ffacf8e8dd590", "score": "0.69599414", "text": "def execute_solver(self, searchspace):\n LOG.debug(\"execute_solver using solution space:\\n\\n\\t{}\\n\".format(pformat(searchspace)))\n self._searchspace = searchspace\n\n try:\n study = optu...
2a79c400674a8b886f1b539a37887b61
pc_noutput_items(moving_average_cc_sptr self) > float
[ { "docid": "ae7b0b0c8feebb39620c5669077aa1d3", "score": "0.6611359", "text": "def pc_noutput_items(self):\n return _ieee802_11_swig.moving_average_cc_sptr_pc_noutput_items(self)", "title": "" } ]
[ { "docid": "63d831b5a6f6bcd41e2ece6674fd2b14", "score": "0.7345163", "text": "def pc_noutput_items_avg(self):\n return _blocks_swig5.short_to_float_sptr_pc_noutput_items_avg(self)", "title": "" }, { "docid": "24ea59238160cf7c03bae344641cbd08", "score": "0.7302155", "text": "de...
496342ea4fa53a735dd5e6538f52e5c6
Flatten one level of nesting
[ { "docid": "41b2f6dcdf31c1423ca8fb5185b7abd9", "score": "0.0", "text": "def flatten(listOfLists):\n return chain.from_iterable((listOfLists))", "title": "" } ]
[ { "docid": "d4eb6dfecbd01fde44bf00c964b5da46", "score": "0.7441832", "text": "def flatten(self):\n \n \n return None", "title": "" }, { "docid": "d4eb6dfecbd01fde44bf00c964b5da46", "score": "0.7441832", "text": "def flatten(self):\n \n \n ret...
fedf42e80404a59937f20a1a0012dd78
converts the sequence file to modeller format for processing
[ { "docid": "4cc7a0022679f4869d6cea04f11e272a", "score": "0.70292974", "text": "def Convert_Seq(src, dest):\n try:\n seq = open( src, 'r' )\n sequence = seq.read()\n seq.close()\n except Exception as err:\n print(\"Sequence config '%s' not found.\\n\" % (src))\n ...
[ { "docid": "83c41ed3749cadf85ef617eee9f2b2c1", "score": "0.6294892", "text": "def convert_reads(inputf,output):\n f = open(inputf,'r')\n g = open(output,'w')\n header = f.readline().rstrip()\n header = header.replace(\" \",\"!\")\n seq = f.readline()\n header2 = f.readline()\n qual ...