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
JSON representation with the information for those ``SetupVal``s which require additional information to initialize/allocate them vs that which is required later to reference them. I.e., ``.to_json()`` will be used to refer to such ``SetupVal``s in expressions, and ``.to_init_json() is used to initialize/allocate them....
def to_init_json(self) -> JSON: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def encodeSettingsJSONDict(self) -> dict:\n dct = super().encodeSettingsJSONDict()\n dct.update({\n \"numberOfIterations\": self._numberOfIterations,\n \"maximumSubIterations\": self._maximumSubIterations,\n \"updateReferenceState\": self._updateReferenceState\n ...
[ "0.6016759", "0.59344727", "0.5904529", "0.5867126", "0.5833199", "0.5813906", "0.5790869", "0.5764384", "0.5764384", "0.57443666", "0.57392055", "0.5720278", "0.57077616", "0.5707635", "0.56752557", "0.5665849", "0.56467897", "0.5616303", "0.5615064", "0.55913943", "0.557868...
0.6813533
0
Get short bio for a user because full bio should not display in the table
def get_short_bio(self, instance): try: short_bio = instance.bio[:40] except: short_bio = "No bio available" return short_bio
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def biography_file(self, instance):\r\n try:\r\n return admin_display_file(instance.user.user_files, 'biography')\r\n except Exception:\r\n return mark_safe('<i class=\"fa fa-times-circle red\" aria-hidden=\"true\"></i>')", "def bioinfo():\n\n pass", "def desc_user(self):...
[ "0.67416525", "0.6574375", "0.6369881", "0.619834", "0.61608386", "0.61477786", "0.6073322", "0.60365134", "0.5987903", "0.59600526", "0.5940058", "0.5936587", "0.59278494", "0.5918187", "0.5883909", "0.5853834", "0.58389735", "0.57879335", "0.5781525", "0.5740413", "0.573701...
0.8009275
0
Get short bio for a user because full bio should not display in the table
def get_age(self, instance): return instance.get_age()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_short_bio(self, instance):\n try:\n short_bio = instance.bio[:40]\n except:\n short_bio = \"No bio available\"\n return short_bio", "def biography_file(self, instance):\r\n try:\r\n return admin_display_file(instance.user.user_files, 'biography...
[ "0.80086935", "0.67408556", "0.657254", "0.6369395", "0.61981535", "0.6160288", "0.6147399", "0.6073512", "0.60360986", "0.5987769", "0.5961873", "0.5938802", "0.59371895", "0.5928094", "0.59192324", "0.588308", "0.58534604", "0.5838504", "0.57876533", "0.578038", "0.5740809"...
0.0
-1
Plot the line intensities. Uses `Intensity` if it already exists. If not, call the `intensity` method.
def intensityPlot(self, index=-1, wvlRange=None, top=10, linLog='lin', relative=False, verbose=False, plotFile=0, em=0 ): if hasattr(self, 'Spectroscopic'): title = self.Spectroscopic else: title = '' if not hasattr(self, 'Intensity'): try: se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plot(self, **kwargs):\n base.plot_homline(self.line, **kwargs)", "def linePlot(self):\n clf()\n plot(self.x,self.averages)\n xlabel('X Label (units)')\n ylabel('Y Label (units)')\n savefig('line.png')", "def plot_lines(self):\n self.plot(3)", "def lineplot...
[ "0.6055282", "0.5875594", "0.58142644", "0.5723029", "0.56995136", "0.56612366", "0.5617182", "0.5587625", "0.5542706", "0.54493725", "0.5443348", "0.54314315", "0.54253197", "0.5425296", "0.54238504", "0.5422675", "0.53709507", "0.53558093", "0.53464925", "0.53376305", "0.53...
0.5814921
2
Returns True if the file name matches the format of a stone backend,
def is_stone_backend(cls, path): path_without_ext, _ = os.path.splitext(path) _, second_ext = os.path.splitext(path_without_ext) return second_ext == cls.backend_extension
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _IsWellFormattedFilePath(path):\n return path.startswith(SRC) and path.endswith(_OWNERS)", "def is_filename_safe(file: Union[str, FileStorage]) -> bool:\n filename = _retrieve_filename(file)\n accepted_formats = '|'.join(IMAGES) #png|jpg|svg|jpeg\n # start with any of alphanumeric, follwed by alhpa...
[ "0.64359665", "0.6340506", "0.6326994", "0.62419397", "0.6208198", "0.61874557", "0.61513036", "0.61503506", "0.6149628", "0.6138735", "0.6091237", "0.6079817", "0.6058845", "0.6048278", "0.60310197", "0.60259676", "0.60164034", "0.6002061", "0.5960908", "0.5952439", "0.59194...
0.7266556
0
Make every element be unique > Delete duplicate elements of a seq
def unique(seq): return list(set(seq))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def removeDuplicates(seq):\n\n pass", "def removeDuplicates(seq):\r\n seen = set()\r\n seen_add = seen.add\r\n return [x for x in seq if not (x in seen or seen_add(x))]", "def uniq(seq):\r\n seen = set()\r\n seen_add = seen.add\r\n return [x for x in seq if x not in seen and no...
[ "0.8375081", "0.8186311", "0.8038333", "0.79722357", "0.7911664", "0.77680993", "0.77123904", "0.75606555", "0.7530156", "0.7517176", "0.7508841", "0.7491357", "0.7395049", "0.7299697", "0.7240142", "0.720093", "0.7197394", "0.71728665", "0.70861894", "0.7063684", "0.7034568"...
0.78701943
5
get a handle for the main database object
def database(): return conf().database
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def db(self) -> Database:\n return self.impl.db", "def getDb(self):\n return self.db", "def get_db(self):\n return self._db", "def db(self):\r\n return self._db", "def get_db():\n db = getattr(g, '_database', None)\n if db is None:\n db = g._database = sqlite3.conne...
[ "0.7431583", "0.7317271", "0.73124295", "0.7312415", "0.72132105", "0.72010416", "0.71990514", "0.7187492", "0.7184459", "0.7180921", "0.71610034", "0.7150286", "0.71338254", "0.7130599", "0.7116266", "0.70991635", "0.7098531", "0.7098531", "0.7089058", "0.7089058", "0.708905...
0.0
-1
Returns the about page of the website
def about(request): return render(request, 'about.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def about():\n return render_template('about.html', title='About')", "def about(self):\n return dict(page='about')", "def about(self):\n return dict(page='about')", "def about(self):\n return dict(page='about')", "def about(self):\n return dict(page='about')", "def abou...
[ "0.77317095", "0.7721151", "0.7721151", "0.7721151", "0.7721151", "0.7696572", "0.76946074", "0.76770306", "0.76473844", "0.76168895", "0.75785714", "0.75761855", "0.75761855", "0.75761855", "0.75761855", "0.75761855", "0.75761855", "0.75761855", "0.75761855", "0.75761855", "...
0.0
-1
Sort the keys in the graph. The base Graph method just uses the python `sort` function on the list of the keys.
def sort_keys( self, results, ignore_cache=False ): if self.sorted_keys != None and (not ignore_cache): return self.sorted_keys mykeys = list( results.keys() ); mykeys.sort() self.sorted_keys = mykeys return mykeys
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sort(self):\n self.keys = sorted(self.keys)\n self.keys.reverse()", "def sortedKeys(self):\n sortedItems = list(self.items())\n\n def compare(x, y): return sign(y[1] - x[1])\n sortedItems.sort(cmp=compare)\n return [x[0] for x in sortedItems]", "def sort(self, key_...
[ "0.7277787", "0.6741787", "0.6656039", "0.66440105", "0.65957636", "0.6516767", "0.6516767", "0.6439981", "0.63883257", "0.63177496", "0.6220502", "0.61978054", "0.618384", "0.617296", "0.61626166", "0.61455506", "0.61425805", "0.6126213", "0.61248386", "0.61123145", "0.61011...
0.5795403
39
Gets the data in redis pipeline from head.
def get_from_head(self, total_count = 1) -> list: return self.queue.get_all(total_count)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def peek(self):\n return self.head.data", "def peek(self):\n if self.__size == 0:\n return None\n else:\n return self.__head.get_data()", "def get_data(self):\n self._zmq_request.send(b'next')\n return msgpack.loads(self._zmq_request.recv())", "def head(self):\n i...
[ "0.6342546", "0.61795014", "0.6167337", "0.6162822", "0.6136763", "0.6136763", "0.6074929", "0.60655344", "0.60548407", "0.60210556", "0.6020614", "0.60022", "0.5930768", "0.5916191", "0.5879546", "0.5850877", "0.57926744", "0.5770703", "0.57697415", "0.5759845", "0.5740789",...
0.59208864
13
Sets the date of this OptionPriceEod.
def date(self, date): self._date = date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_date(self, date):\n self.date = date\n return", "def set_date(self, date):\n self.date = date", "def set_date(self, date):\n self.data['date'] = date", "def set_datetime(self, date):\n self.date = date", "def date(self, date):\n self._date = date", "def d...
[ "0.7660294", "0.7659878", "0.72140807", "0.7152229", "0.7075718", "0.6990471", "0.69823635", "0.69823635", "0.696628", "0.6864507", "0.6784874", "0.67255014", "0.6612823", "0.6546258", "0.6514242", "0.64929616", "0.6489535", "0.6459911", "0.644701", "0.6422605", "0.6410094", ...
0.70166075
8
Sets the close of this OptionPriceEod.
def close(self, close): self._close = close
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def close(self, close: float):\n if close is None:\n raise ValueError(\"Invalid value for `close`, must not be `None`\") # noqa: E501\n\n self._close = close", "def trade_close(self, trade_close):\n\n self._trade_close = trade_close", "def close_bid(self, close_bid):\n\n ...
[ "0.72832155", "0.6689805", "0.6495857", "0.61925775", "0.61560965", "0.60918725", "0.5794053", "0.5760003", "0.5737465", "0.5712712", "0.5712712", "0.5712712", "0.5712712", "0.5697856", "0.5661646", "0.56090915", "0.55842984", "0.5565555", "0.5546714", "0.5543017", "0.5518932...
0.66283774
2
Sets the open of this OptionPriceEod.
def open(self, open): self._open = open
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def open(self, open: float):\n if open is None:\n raise ValueError(\"Invalid value for `open`, must not be `None`\") # noqa: E501\n\n self._open = open", "def buyOpenVal(self, buyOpenVal):\n\n self._buyOpenVal = buyOpenVal", "def sellOpenVal(self, sellOpenVal):\n\n self....
[ "0.741814", "0.6612593", "0.64958996", "0.62218297", "0.61795187", "0.5983953", "0.57757413", "0.57757413", "0.57757413", "0.57757413", "0.57385457", "0.5728762", "0.56346107", "0.5624737", "0.56228167", "0.56211334", "0.5612999", "0.558008", "0.55523115", "0.55315244", "0.55...
0.64759684
3
Sets the open_ask of this OptionPriceEod.
def open_ask(self, open_ask): self._open_ask = open_ask
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ask_low(self, ask_low):\n\n self._ask_low = ask_low", "def open(self, open: float):\n if open is None:\n raise ValueError(\"Invalid value for `open`, must not be `None`\") # noqa: E501\n\n self._open = open", "def buyOpenVal(self, buyOpenVal):\n\n self._buyOpenVal = ...
[ "0.64458877", "0.6433421", "0.6168577", "0.5936913", "0.59119046", "0.5754027", "0.5701366", "0.5676456", "0.5547602", "0.5433679", "0.5416541", "0.5281479", "0.5262344", "0.52290946", "0.5222788", "0.52052885", "0.51893926", "0.5171281", "0.5133268", "0.5052731", "0.5033423"...
0.77289987
0
Sets the ask_low of this OptionPriceEod.
def ask_low(self, ask_low): self._ask_low = ask_low
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def price_low(self, price_low):\n\n self._price_low = price_low", "def bid_low(self, bid_low):\n\n self._bid_low = bid_low", "def low(self, low):\n\n self._low = low", "def changeLow(self):\n self.changeLowHigh(self.ui.t_low, t_type=\"low\")", "def ask_high(self, ask_high):\n\n ...
[ "0.7904208", "0.69571954", "0.68757504", "0.6768363", "0.66986674", "0.6676048", "0.6495873", "0.62121713", "0.6168079", "0.6016537", "0.5921024", "0.5895522", "0.58552", "0.5834525", "0.57656264", "0.5727869", "0.5708445", "0.57036763", "0.56588036", "0.564048", "0.5624221",...
0.82766896
0
Sets the bid_high of this OptionPriceEod.
def bid_high(self, bid_high): self._bid_high = bid_high
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def price_high(self, price_high):\n\n self._price_high = price_high", "def ask_high(self, ask_high):\n\n self._ask_high = ask_high", "def high(self, high):\n\n self._high = high", "def bid_low(self, bid_low):\n\n self._bid_low = bid_low", "def high(self, high: float):\n i...
[ "0.82857585", "0.70082635", "0.6941516", "0.6897873", "0.6811397", "0.6440418", "0.64343834", "0.6136968", "0.61051846", "0.5969952", "0.5927157", "0.5685342", "0.56736416", "0.55477965", "0.55197054", "0.54935294", "0.5491943", "0.5491744", "0.54493296", "0.54073006", "0.538...
0.8605096
0
Sets the implied_volatility of this OptionPriceEod.
def implied_volatility(self, implied_volatility): self._implied_volatility = implied_volatility
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def potential_energy_rating(self, potential_energy_rating):\n\n self._potential_energy_rating = potential_energy_rating", "def annualized_volatility(self):\n return self.daily_std() * math.sqrt(252)", "def attribute_price(self, attribute_price):\n\n self._attribute_price = attribute_price"...
[ "0.5288223", "0.52400804", "0.5113599", "0.5073822", "0.5051936", "0.50330675", "0.5021391", "0.50125223", "0.5006831", "0.49934146", "0.49678788", "0.49321693", "0.4925515", "0.48250642", "0.48193374", "0.48190624", "0.48130286", "0.48130286", "0.48130286", "0.48130286", "0....
0.8333395
0
Sets the theta of this OptionPriceEod.
def theta(self, theta): self._theta = theta
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def from_theta(self, theta=10.):\n self.eta = theta", "def theta(self, theta):\n self.kernel.theta = theta", "def theta(self, spot_price,implied_vol):\n option = self.Option.option_ql\n process = self.evaluation.get_bsmprocess_cnstvol(self.rf, spot_price, implied_vol)\n engin...
[ "0.7028837", "0.6648795", "0.6457257", "0.60566425", "0.5858821", "0.5858821", "0.5804075", "0.57036465", "0.56587344", "0.56318843", "0.55411774", "0.55188125", "0.5493025", "0.53848886", "0.535538", "0.5307934", "0.52947086", "0.5279631", "0.5266989", "0.52619404", "0.52546...
0.7407514
0
Returns true if both objects are equal
def __eq__(self, other): if not isinstance(other, OptionPriceEod): return False return self.__dict__ == other.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other):\n return are_equal(self, other)", "def __eq__(self, other):\n return are_equal(self, other)", "def __eq__(self,other):\n try: return self.object==other.object and isinstance(self,type(other))\n except: return False", "def __eq__(self, other):\n if i...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def __ne__(self, other): return not self == other
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other: object) -> bool:\n if self.__eq__(other):\n return False\n return True", "def __ne__(self, other: object) -> bool:\n return not self.__eq__(other)", "def __ne__(self, other) -> bool:\n return not self.__eq__(other)", "def __eq__(self, other):\n ...
[ "0.8457167", "0.8393036", "0.81455255", "0.8139734", "0.81333447", "0.8094964", "0.8093362", "0.8093362", "0.8093362", "0.80863476", "0.80863476", "0.8077286", "0.8077286", "0.806682" ]
0.0
-1
Calculates the primitive of the Zhao kernel for given values. Optimized using ndarrays and vectorization.
def kernel_primitive_zhao_vec(x, s0=0.08333, theta=0.242): c0 = 1.0 / s0 / (1 - 1.0 / -theta) res = np.copy(x) res[x < 0] = 0 res[(x <= s0) & (x >= 0)] = c0 * res[(x <= s0) & (x >= 0)] res[x > s0] = c0 * (s0 + (s0 * (1 - (res[x > s0] / s0) ** -theta)) / theta) return res
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def indicator_kernel(h: np.ndarray, Xi: np.ndarray, x: np.ndarray) -> np.ndarray:\n return (Xi - x) == 0", "def create_kernel(shape):\n indices = np.array(list(itertools.product([-1, 0],\n repeat=len(shape))))\n ref = np.sum(indices[0]) & 1\n parity = np.array([1 if (-sum(i) & 1...
[ "0.5905291", "0.58672535", "0.5795786", "0.5661881", "0.5627886", "0.5615516", "0.55912954", "0.5580498", "0.5527056", "0.5519148", "0.5518123", "0.5511363", "0.5500014", "0.5492102", "0.54869246", "0.5478587", "0.5474485", "0.5472177", "0.54720634", "0.5463642", "0.5459777",...
0.60308427
0
Derivation of infectious rate after p0. Required for direct maximum likelihood estimation.
def infectious_rate_dv_p0(t, r0=0.424, phi0=0.125, taum=2., t0=0, tm=24.): return (1. - r0 * np.sin((48. / tm) * np.pi * ((t + t0) / 24. + phi0))) * np.exp(-t / (24. * taum))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _estim_determ_p(num_zeros, num_ones):\n p = 0.0\n if num_zeros == 0:\n p += 0.5\n if num_ones == 0:\n p += 0.5\n return p", "def P0(self):\n if not self.isVaild():\n pass\n temp = ((self.r()**self.C)*self.C) / \\\n (math.factorial(self.C)*(self.C ...
[ "0.6925612", "0.6385619", "0.62766534", "0.6248409", "0.6230271", "0.61977637", "0.61903495", "0.6152647", "0.61344415", "0.60986465", "0.6067942", "0.6046516", "0.600394", "0.59957486", "0.5991482", "0.593285", "0.5931405", "0.5924013", "0.5924013", "0.5904413", "0.59020644"...
0.6813705
1
Calculates sigmoid function for value x.
def sigmoid(x): return 1 / (1 + exp(-x))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sigmoid(x):\n\treturn 1.0/(1.0+math.exp(-(x-0.5)*12.0))", "def sigmoid(x):\r\n\r\n return 1 / (1 + np.exp(-x))", "def sigmoid(self, x):\n return 1 / (1 + np.exp(-4.9 * x))", "def sigmoid(x):\n\n return 1 / (1 + math.exp(-x))", "def sigmoid(x):\n\n return 1 / (1 + math.exp(-x))", "def ...
[ "0.8950587", "0.89105445", "0.8908278", "0.8882623", "0.8882623", "0.8879367", "0.8871819", "0.88669133", "0.8859309", "0.8859309", "0.8858335", "0.8857717", "0.8852217", "0.8844157", "0.88390416", "0.8834769", "0.8834156", "0.8816239", "0.8799639", "0.8799639", "0.8799639", ...
0.89114654
2
Calculates absolute prediction error.
def prediction_error_absolute(event_times, intensity, window_size, obs_time, pred_time, dt): events_time_pred = event_times[event_times >= obs_time] win_int = int(window_size / dt) tp = np.arange(obs_time, pred_time, window_size) err = 0 for i, t_cur in enumerate(tp): t_end = t_cur + window_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def calc_error(y_real, y_pred):\n if len(y_real) > 0:\n curr_err = rmse(y_pred, y_real)\n else:\n curr_err = np.nan\n return curr_err", "def mean_absolute_error(self, true_values, predicted_values):\n\n size = len(true_values)\n running_sum = 0\n for i in range(len(tru...
[ "0.72419345", "0.7117469", "0.7080212", "0.7080116", "0.704719", "0.7045164", "0.704062", "0.7019967", "0.70096725", "0.69887984", "0.69682246", "0.6954841", "0.6952182", "0.69520396", "0.6943526", "0.6930831", "0.692766", "0.6847652", "0.6834378", "0.6816418", "0.6810894", ...
0.6992876
9
Calculates normed prediction error.
def prediction_error_normed(event_times, intensity, window_size, obs_time, pred_time, dt): err_abs = prediction_error_absolute(event_times, intensity, window_size, obs_time, pred_time, dt) events_time_pred = event_times[event_times >= obs_time] total_count_real = get_event_count(events_time_pred, obs_time,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_error(self, params):\n return self.endog - self.predict(params)", "def calc_error_amp(amp_pred, pdur, model):\n theta_pred = list(forward_pass(model, pdur, amp_pred))[0]\n return np.log(np.maximum(1e-10, (theta_pred - model.theta) ** 2))", "def train_error(self):\n self.pred...
[ "0.7475655", "0.7263803", "0.71828383", "0.6881019", "0.68678254", "0.6853385", "0.6840796", "0.6792696", "0.6781975", "0.6657799", "0.6636575", "0.66316164", "0.6622859", "0.6614981", "0.6548927", "0.65342855", "0.6507047", "0.64708364", "0.6462097", "0.64538354", "0.6439993...
0.74031734
1
Test that the database is empty of each model at test session start.
def test_db_is_empty(dbtransaction, model_name): model = globals()[model_name] query = DBSession.query(model) assert query.count() == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tearDown(self):\r\n empty_db()", "def tearDown(self):\r\n empty_db()", "def tearDown(self):\r\n empty_db()", "def tearDown(self):\r\n empty_db()", "def tearDown(self):\r\n empty_db()", "def tearDown(self):\r\n empty_db()", "def test_database_connection(self...
[ "0.8082713", "0.8082713", "0.8082713", "0.8082713", "0.8082713", "0.8082713", "0.7689268", "0.7619655", "0.7619655", "0.7619655", "0.7619655", "0.7619655", "0.7619655", "0.7619655", "0.7619655", "0.7619655", "0.7474476", "0.7456126", "0.7219782", "0.7200963", "0.718885", "0...
0.7996606
6
Test that Photo can access Camera's attributes through relationship.
def test_photo_camera_relationship(dbtransaction, rover_params, camera_params, photo_params): rover = Rover(**rover_params) camera_params['rover_name'] = rover.name camera_params['rover_name'] = rover.name camera = Camera(**camera_params) photo_params['camera_name'] = camera.name photo = Photo(*...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_photo_rover_relationship(dbtransaction, rover_params, camera_params,\n photo_params):\n rover = Rover(**rover_params)\n camera_params['rover_name'] = rover.name\n camera_params['rover_name'] = rover.name\n camera = Camera(**camera_params)\n photo_params['cam...
[ "0.696341", "0.69207513", "0.65761304", "0.65209633", "0.6415182", "0.626881", "0.6200796", "0.6186633", "0.61462605", "0.60756433", "0.5952229", "0.59482497", "0.5902911", "0.5896652", "0.5885544", "0.58632165", "0.5839806", "0.58376", "0.5796789", "0.5764115", "0.57595253",...
0.77699107
0
Returns a list of nodes in a book's tree.
def get_book_tree(book_id): resp = requests.get(f'https://{CNX_HOST}/contents/{book_id}.json') metadata = resp.json() return metadata['tree']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_book_nodes(book_id):\n for x in flatten_tree(get_book_tree(book_id)):\n yield expand_tree_node(x)", "def nodes(self): \n return [n for n in self.iternodes()]", "def list_of_nodes(tree):\n list_ = []\n if tree.left.is_leaf() and tree.right.is_leaf():\n list_.app...
[ "0.7489741", "0.6915581", "0.67629147", "0.6728188", "0.67026407", "0.665888", "0.665519", "0.65932286", "0.6555363", "0.65279865", "0.65213007", "0.6459365", "0.64369744", "0.64051706", "0.64042807", "0.63985044", "0.6329771", "0.63109684", "0.63109684", "0.63109684", "0.629...
0.6745084
3
Returns a list of nodes in a book's tree.
def get_book_nodes(book_id): for x in flatten_tree(get_book_tree(book_id)): yield expand_tree_node(x)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nodes(self): \n return [n for n in self.iternodes()]", "def list_of_nodes(tree):\n list_ = []\n if tree.left.is_leaf() and tree.right.is_leaf():\n list_.append(tree)\n return list_\n elif tree.left.is_leaf():\n list_.extend(list_of_nodes(tree.right...
[ "0.6915602", "0.67631805", "0.67453516", "0.6729543", "0.6702058", "0.6658768", "0.66550666", "0.6592894", "0.6555684", "0.65281737", "0.65211135", "0.6459367", "0.64355236", "0.6405265", "0.64048654", "0.6398985", "0.6329184", "0.6310391", "0.6310391", "0.6310391", "0.629710...
0.7489497
0
Compute percolation for a given p and plot it
def plot(self, p: int): self.compute_clusters(p) self.plot_clusters()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def percolation_vs_p(w: int, h: int, nsim=40, n_p=50):\n p_values = np.linspace(0., 1., n_p) # n_p-value array between 0 and 1\n\n def plot_crossing_probability(ax, Percolation) -> np.ndarray:\n \"\"\"\n Plot crossing probabilities of a percolation of type Percolation\n \"\"\"\n\n ...
[ "0.7511689", "0.6965299", "0.62435764", "0.5993439", "0.59307796", "0.5913425", "0.58658", "0.5841628", "0.58316696", "0.58026135", "0.5762941", "0.57570016", "0.5732341", "0.5721875", "0.57116455", "0.56982005", "0.5675021", "0.5650003", "0.5634429", "0.5620404", "0.56082964...
0.6711405
2
Returning the top most element i.e, last element from the list using negative index
def top(self): print(self.arr[-1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def peek(self):\n # TODO: Return top item, if any\n print(\"self.list P\", self.list)\n print(\"length\", self.length())\n if self.is_empty():\n return None\n else:\n return self.list[self.length()-1]\n # do n-1\n # return self.list[-]", "def...
[ "0.75865304", "0.7510276", "0.7418144", "0.71347344", "0.7060563", "0.70483536", "0.7037298", "0.69194806", "0.68644404", "0.6793521", "0.67769223", "0.6769289", "0.6767492", "0.6718378", "0.6691786", "0.6686292", "0.6676466", "0.667134", "0.6669603", "0.6662342", "0.6662342"...
0.64029974
45
Checks if response code is as expected for an empty json payload
def check_no_data_response(response: HTTPResponse) -> bool: return response.status_code == 422
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def check_response_no_data(response: HTTPResponse) -> bool:\n return response.status_code == 422", "def _check_response(self, response):\n if response.status_code == requests.codes.ok:\n # Since the ZenHub REST API does not send back 204 when there is\n # no content, we have to ch...
[ "0.7291176", "0.70699203", "0.70409155", "0.68649054", "0.68453157", "0.6824498", "0.67270297", "0.66770184", "0.66712445", "0.6551668", "0.6538832", "0.65374166", "0.6531125", "0.6509117", "0.65083885", "0.6508086", "0.6472652", "0.646834", "0.64596564", "0.6446508", "0.6423...
0.73334736
0
Checks if response code is as expected for an event id that doesn't correspond to an event in the database
def check_no_event_response(response: HTTPResponse) -> bool: return response.status_code == 404
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_nonexisting_event(self):\n response = self.client.get(\"/events/1\")\n self.assertEqual(response.status_code, 404)", "def check_response_code(response, expected_response_code):\n if response.status_code == expected_response_code:\n pass\n elif response.status_code == RATE_LIMI...
[ "0.6599379", "0.6492662", "0.63456744", "0.6319376", "0.6222744", "0.61948943", "0.61863697", "0.61497176", "0.61455697", "0.613866", "0.6136502", "0.6115662", "0.61052424", "0.60858893", "0.6081234", "0.6043205", "0.6041284", "0.6028767", "0.6016661", "0.60012096", "0.597602...
0.7199231
0
Return the Y position [m]
def yy(x): return Feature(x, "YY")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getY(self):\n return self.position[1]", "def get_y_position(self):\n return self.actual_coordinates[1]", "def _get_y(self):\n return self.position.y", "def getYpos(self):\n return self.y", "def findY(self):\n return self.y", "def y(self):\r\n return self.position...
[ "0.7846942", "0.78019106", "0.7779069", "0.77038795", "0.7700735", "0.7662235", "0.7646202", "0.7620012", "0.76129884", "0.7580754", "0.7577978", "0.7542206", "0.74631023", "0.74370414", "0.74365413", "0.74220663", "0.74220663", "0.7356962", "0.73334545", "0.73305047", "0.728...
0.0
-1
Return the cumulated length of all leafy shoots of category `cat` of a FU
def length_rameau_cat(x, cat): length = 0 for y in Sons(x): if Class(y) == 'I': if cat == 'small': length += length_uc(y) try: if type_uc(Sons(y)[0]) == cat: length += length_uc(Sons(y)[0]) except IndexError: continue elif type_uc(y) == cat: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nb_leafy_rameau_cat(x, cat):\r\n nb = 0\r\n for y in Sons(x):\r\n if Class(y) == 'I':\r\n if cat == 'small':\r\n nb +=1\r\n try:\r\n if type_uc(Sons(y)[0]) == cat:\r\n nb +=1\r\n except IndexError:\r\n continue\r\n elif type_uc(y) == cat:\r\n nb += 1\r\...
[ "0.60636556", "0.5749279", "0.5712689", "0.560333", "0.5424308", "0.5417537", "0.5381562", "0.53583723", "0.5339486", "0.5333443", "0.53279895", "0.5302515", "0.52835095", "0.52726984", "0.5259692", "0.5225831", "0.52120453", "0.5203069", "0.5171853", "0.5168547", "0.5158164"...
0.69088125
0
Initialise the object by creating a new thread. We also store the parent objects ident value to allow us to add messages to the queue used to send data to the client.
def __init__(self, client_ident): threading.Thread.__init__(self, None) self.client_ident = client_ident self.start()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, threadID, name, parent):\n\t\tThread.__init__(self)\n\t\tself.threadID = threadID\n\t\tself.name = name\n\t\tself.parent = parent\n\t\tself.align = ClassAlign.Align()", "def __init__(self, threadID, name, parent):\n\t\tThread.__init__(self)\n\t\tself.threadID = threadID\n\t\tself.name = name\n...
[ "0.7131309", "0.71209925", "0.71136326", "0.6803824", "0.67005664", "0.6525626", "0.65189147", "0.6401958", "0.62647814", "0.6238201", "0.6216775", "0.6189016", "0.61493206", "0.6148006", "0.6139366", "0.613162", "0.61282486", "0.61152", "0.61080635", "0.6092553", "0.60883594...
0.685711
3
Filter packs from list which are below the pack size threshold.
def filter_packs(self, packs): return [ pack for pack in packs if len(pack) < self.model.pack_size_threshold ]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter_func_pack(self, packs):\n return [pack for pack in packs if len(pack.wolves) < self.min_pack]", "def _filter_boxes(boxes, min_size):\n ws = boxes[:, 2] - boxes[:, 0] + 1\n hs = boxes[:, 3] - boxes[:, 1] + 1\n keep = np.where((ws >= min_size) & (hs >= min_size))[0]\n ...
[ "0.7499574", "0.63235843", "0.6320264", "0.6307798", "0.6307798", "0.6241925", "0.61801726", "0.5940633", "0.59103423", "0.58080775", "0.5756219", "0.5713874", "0.57127136", "0.5697896", "0.56815964", "0.5679822", "0.56571597", "0.561008", "0.5539507", "0.5537312", "0.5480646...
0.8420422
0
Get the Flask app
def load(self): return APP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def flask_app(self):\n return self._flask_app", "def get_app():\n\n global _app\n if _app is None:\n\n entrypoint = get_config().get('APP_ENTRYPOINT')\n if not entrypoint:\n raise RuntimeError('APP_ENTRYPOINT missing from config')\n module_name, attr_names = entrypoin...
[ "0.82569164", "0.82176447", "0.8043532", "0.803648", "0.7806462", "0.78057957", "0.779646", "0.7792666", "0.7759621", "0.76688176", "0.76688176", "0.759406", "0.75798976", "0.75499725", "0.7521788", "0.7510395", "0.7480568", "0.7428546", "0.73241985", "0.73152757", "0.7311787...
0.0
-1
Take the YOLOv3 outputs generated from a TensorRT forward pass, postprocess them and return a list of bounding boxes for detected object together with their category and their confidences in separate lists.
def process(self, outputs, resolution_raw): outputs_reshaped = list() for output in outputs: outputs_reshaped.append(self._reshape_output(output)) boxes, categories, confidences = self._process_yolo_output( outputs_reshaped, resolution_raw) return boxes, categor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_bounding_boxes(outputs, width: int, height: int):\n\n # detected bounding boxes, obtained confidences and class's number\n boxes = []\n scores = []\n classes = []\n\n # this is our threshold for keeping the bounding box\n probability_minimum = 0.5\n\n # iterating through all three outp...
[ "0.7441526", "0.7201064", "0.7119867", "0.7041674", "0.6989545", "0.69835573", "0.6945126", "0.68448097", "0.67697895", "0.67208904", "0.6712423", "0.67029905", "0.6680266", "0.6624276", "0.6560409", "0.6551993", "0.65327173", "0.65035367", "0.6499801", "0.64906067", "0.64906...
0.67687064
9
Take in a list of three reshaped YOLO outputs in (height,width,3,85) shape and return return a list of bounding boxes for detected object together with their category and their confidences in separate lists.
def _process_yolo_output(self, outputs_reshaped, resolution_raw): # E.g. in YOLOv3-608, there are three output tensors, which we associate with their # respective masks. Then we iterate through all output-mask pairs and generate candidates # for bounding boxes, their corresponding category pred...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_bounding_boxes(outputs, width: int, height: int):\n\n # detected bounding boxes, obtained confidences and class's number\n boxes = []\n scores = []\n classes = []\n\n # this is our threshold for keeping the bounding box\n probability_minimum = 0.5\n\n # iterating through all three outp...
[ "0.7827433", "0.69827944", "0.68143374", "0.65953845", "0.6586527", "0.658262", "0.65612304", "0.6548553", "0.6500218", "0.64946926", "0.64744663", "0.64004207", "0.63825303", "0.63342774", "0.63144606", "0.62505436", "0.62402254", "0.62277126", "0.6221419", "0.621233", "0.61...
0.68231016
2
Return the sigmoid of the input.
def sigmoid(value): return 1.0 / (1.0 + math.exp(-value))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sigmoid(self, x):\n\n #logging.debug(\"sigmoid received %s as input\" % (x))\n return 1.0 / ( 1.0 + np.exp(-x) )", "def sigmoid(data):\n return _make.sigmoid(data)", "def sigmoid(x):\n return 1 / (1 + exp(-x))", "def sigmoid(x):\n return 1 / (1 + exp(-x))", "def sigmoid(x):\n\tre...
[ "0.85250026", "0.85034466", "0.844897", "0.844897", "0.8401507", "0.83878917", "0.8385263", "0.83797765", "0.8370023", "0.8369631", "0.83590937", "0.83579326", "0.8346277", "0.8346277", "0.8346277", "0.8346277", "0.8346277", "0.8346277", "0.83442086", "0.8344064", "0.8344064"...
0.8071999
48
Apply the NonMaximum Suppression (NMS) algorithm on the bounding boxes with their confidence scores and return an array with the indexes of the bounding boxes we want to keep (and display later).
def _nms_boxes(self, boxes, box_confidences): x_coord = boxes[:, 0] y_coord = boxes[:, 1] width = boxes[:, 2] height = boxes[:, 3] areas = width * height ordered = box_confidences.argsort()[::-1] keep = list() while ordered.size > 0: # Index ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def non_max_suppression(self, filtered_boxes, box_classes, box_scores):\n box_predictions = []\n predicted_box_classes = []\n predicted_box_scores = []\n for label in range(len(self.class_names)):\n # for each class\n boxes = []\n class_tmp = []\n ...
[ "0.74188983", "0.7279355", "0.72521144", "0.72321755", "0.7220489", "0.7149488", "0.7127528", "0.71227485", "0.71109706", "0.70798403", "0.70474976", "0.70236284", "0.70221704", "0.70044285", "0.6993217", "0.697691", "0.69736964", "0.69503355", "0.6944182", "0.6930919", "0.68...
0.74669826
0
Returns a SQLAlchemy database engine instance based on a default local database connection string or the environment database connection.
def create_db(): db_url = os.environ.get('HEROKU_POSTGRESQL_GRAY_URL', 'postgresql://postgres:admin@127.0.0.1:5432/nextbus') return create_engine(db_url)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_db_engine():\n # get database connection url\n connection_url = get_db_connection_url()\n\n # Create engine from connection url\n engine = create_engine(connection_url)\n\n return engine", "def db_connect():\n return create_engine(get_project_settings().get(\"CONNECTION_STRING\"))", "...
[ "0.82387036", "0.79633355", "0.79633355", "0.79633355", "0.79633355", "0.79627573", "0.79011756", "0.7685767", "0.7552054", "0.7522419", "0.74553895", "0.7406797", "0.7383469", "0.7289265", "0.72383744", "0.7227776", "0.7227776", "0.7217185", "0.69914335", "0.6984543", "0.695...
0.0
-1
Get a list of supported playbook actions.
def get_supported_actions(self, client_id=None): if client_id is None: client_id = self._use_default_client_id()[0] url = self.api_base_url.format(str(client_id)) + "/supported-actions" try: raw_response = self.request_handler.make_request(ApiRequestHandler.GET, url) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_available_actions(self):\n return self.actions", "def getActions():\n return getPlugins(IRenamingAction, plugins)", "def get_list_of_actions(self):\n return self.actions", "def get_actions(self):\n return []", "def get_actions(self):\n\n if self.description == exc...
[ "0.7212842", "0.6930852", "0.68975735", "0.6892757", "0.6806204", "0.66564673", "0.66556334", "0.66162765", "0.66162765", "0.66009504", "0.65820104", "0.653902", "0.6511804", "0.64831245", "0.6364597", "0.63636875", "0.63636875", "0.6360715", "0.6326039", "0.63161296", "0.630...
0.6035187
36
Get a list of supported playbook outputs.
def get_supported_outputs(self, client_id=None): if client_id is None: client_id = self._use_default_client_id()[0] url = self.api_base_url.format(str(client_id)) + "/supported-outputs" try: raw_response = self.request_handler.make_request(ApiRequestHandler.GET, url) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _list_outputs(self):\n \n outputs = self._outputs().get()\n return outputs", "def available_output_formats():\n output_formats = []\n for v in pkg_resources.iter_entry_points(_DRIVERS_ENTRY_POINT):\n try:\n output_formats.append(\n v.load().OutputDa...
[ "0.67198366", "0.6584524", "0.6453945", "0.64059526", "0.63481665", "0.6080254", "0.6060008", "0.6056158", "0.6054378", "0.602208", "0.60113364", "0.5983728", "0.5975419", "0.5958129", "0.5930261", "0.59256995", "0.5917503", "0.59024775", "0.58736444", "0.58612114", "0.586066...
0.60517347
9
Get a list of subjectsupported playbook actions.
def get_subject_supported_actions(self, client_id=None): if client_id is None: client_id = self._use_default_client_id()[0] url = self.api_base_url.format(str(client_id)) + "/subject-supported-actions" try: raw_response = self.request_handler.make_request(ApiRequestHan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_available_actions(self):\n return self.actions", "def get_list_of_actions(self):\n return self.actions", "def get_actions(self):\n return []", "def getActions():\n return getPlugins(IRenamingAction, plugins)", "def list(self):\n\n return list(\n filter(\n ...
[ "0.6442799", "0.6286291", "0.6225656", "0.6160071", "0.6012256", "0.6003807", "0.59464866", "0.5943126", "0.5935935", "0.593151", "0.59251124", "0.5904549", "0.58659524", "0.58659524", "0.5825306", "0.58082306", "0.580288", "0.57892096", "0.5785716", "0.578504", "0.57394695",...
0.6987215
0
Add a rule to a playbook.
def add_rule(self, playbook_uuid, rule_name, rule_desc, rule_input, rule_action_type, rule_action, rule_output_type, rule_output, client_id=None): if client_id is None: client_id = self._use_default_client_id()[0] url = self.api_base_url.format(str(client_id)) + "/{}/rule"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_rule(self, rule):\n \n self.rules.append(rule)", "def add_rule(self, rule):\n self.rule.append(rule)", "def add_rule(self, rule) -> None:\n self.add_rules([rule])", "def add_rule(self, rule: Rule):\n self.rules.append(rule)", "def add_rule(self, rule):\n as...
[ "0.764353", "0.7634151", "0.75890285", "0.7476284", "0.74679923", "0.6866661", "0.6847278", "0.67898726", "0.66697514", "0.6602832", "0.6475783", "0.64397544", "0.6406145", "0.63652104", "0.6311784", "0.63090366", "0.62534595", "0.6221483", "0.61981386", "0.6030881", "0.60249...
0.63264805
14
Add a rule to a playbook with a file.
def add_rule_with_file(self, playbook_uuid, rule_name, rule_desc, rule_input, rule_action_type, rule_action, rule_output_type, rule_output, file_name, file_path, client_id=None): if client_id is None: client_id = self._use_default_client_id()[0] url = self.api_ba...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_rule(self, rule):\n self.rule.append(rule)", "def add_rule(self, rule):\n \n self.rules.append(rule)", "def add_rule(self, rule) -> None:\n self.add_rules([rule])", "def add_rule(self, rule: Rule):\n self.rules.append(rule)", "def add_rule(self, rule):\n as...
[ "0.6337733", "0.632869", "0.6277358", "0.6172735", "0.6102239", "0.5846287", "0.5792425", "0.57257646", "0.5720321", "0.55229396", "0.5509801", "0.5480592", "0.54635775", "0.54485416", "0.54433674", "0.5420976", "0.5370285", "0.5335484", "0.52583367", "0.5254596", "0.52504575...
0.659933
0
Reorder playbook rules for an already existing playbook
def rule_reorder(self, playbook_uuid, rule_uuids, client_id=None): if client_id is None: client_id = self._use_default_client_id()[0] url = self.api_base_url.format(str(client_id)) + "/{}/rule-reorder".format(playbook_uuid) if type(rule_uuids) is not list: raise ValueE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def precheck_cmd(constants: dict) -> list:\n playbook_dir = constants[\"playbooks\"]\n return AnsiblePlay(\n playbook=f\"{playbook_dir}/main.yml\",\n tags=['upgrade_precheck'],\n extra_vars=constants,\n )", "def parse_playbook(self, playbook):\n with codecs.open(playbook, \"r...
[ "0.56522775", "0.5484794", "0.5391197", "0.524419", "0.5200053", "0.5130773", "0.505389", "0.4954519", "0.49411058", "0.47370324", "0.4698072", "0.46973106", "0.46722007", "0.46524984", "0.46394616", "0.4598536", "0.45979363", "0.45802313", "0.45687628", "0.45625588", "0.4550...
0.4659911
13
Get details for a specific playbook rule.
def get_specific_playbook_rule(self, rule_uuid, client_id=None): if client_id is None: client_id = self._use_default_client_id()[0] url = self.api_base_url.format(str(client_id)) + "/rule/{}".format(rule_uuid) try: raw_response = self.request_handler.make_request(ApiRe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_rule_details(self):\n pass", "def get_rule_description(self, rule_name: str) -> str:\n if rule_name not in self.rules_dict:\n raise Exception('Could not find rule with name %s' % rule_name)\n else:\n return self.rules_dict[rule_name]['description']", "def...
[ "0.65591824", "0.6309602", "0.62965906", "0.62523174", "0.617067", "0.6122961", "0.6120546", "0.5972072", "0.5927327", "0.59171116", "0.59115183", "0.59115183", "0.59115183", "0.5832729", "0.5823312", "0.5778768", "0.57760465", "0.573839", "0.57212347", "0.57212347", "0.57212...
0.6113729
7
Attach a file to an existing rule.
def attach_file_to_rule(self, rule_uuid, file_name, file_path, client_id=None): if client_id is None: client_id = self._use_default_client_id()[0] url = self.api_base_url.format(str(client_id)) + "/rule/{}/file".format(rule_uuid) upload_file = {'file': (file_name, open(file_path, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def attach(self, filename, file_contents, **extra):\n\t\tself._client.add_attachment(self, filename, file_contents, **extra)", "def add_rule_with_file(self, playbook_uuid, rule_name, rule_desc, rule_input, rule_action_type,\n rule_action, rule_output_type, rule_output, file_name, file_p...
[ "0.64118785", "0.59802157", "0.5941721", "0.58638847", "0.58638626", "0.5863583", "0.584371", "0.5799856", "0.5799284", "0.5756087", "0.57534814", "0.5752005", "0.56876343", "0.56445724", "0.5626905", "0.56192553", "0.55763394", "0.5566872", "0.5453234", "0.5447893", "0.54134...
0.66837174
0
Sets the beginning_image_number of this CommitteeReportsIEOnly.
def beginning_image_number(self, beginning_image_number): self._beginning_image_number = beginning_image_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def image_number(self, image_number):\n\n self._image_number = image_number", "def front_image(self, front_image):\n\n self._front_image = front_image", "def SetLeftImage(self, image):\r\n\r\n self._leftimage = image", "def set_startline(self, line_no):\n self.set_attribute(\"star...
[ "0.5794401", "0.57165104", "0.5498633", "0.54518634", "0.5356407", "0.53553164", "0.5212246", "0.5207412", "0.51333266", "0.51053417", "0.5093967", "0.5073472", "0.5055025", "0.5001173", "0.49773967", "0.49454114", "0.49412775", "0.49412775", "0.49412775", "0.49412775", "0.49...
0.8383185
0
Sets the committee_type of this CommitteeReportsIEOnly.
def committee_type(self, committee_type): self._committee_type = committee_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def committee(self, committee):\n\n self._committee = committee", "def report_type(self, report_type):\n\n self._report_type = report_type", "def report_type(self, report_type):\n\n self._report_type = report_type", "def report_type(self, report_type):\n\n self._report_type = repo...
[ "0.6155422", "0.57214814", "0.57214814", "0.57214814", "0.57164055", "0.57164055", "0.57164055", "0.5387109", "0.5315805", "0.5313831", "0.5267965", "0.52274555", "0.52194905", "0.52194905", "0.5217858", "0.5179618", "0.5177696", "0.51568884", "0.5156782", "0.51126254", "0.50...
0.8193917
0
Sets the coverage_end_date of this CommitteeReportsIEOnly.
def coverage_end_date(self, coverage_end_date): self._coverage_end_date = coverage_end_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def end_date(self, end_date):\n\n self._end_date = end_date", "def end_date(self, end_date):\n\n self._end_date = end_date", "def end_date(self, end_date):\n\n self._end_date = end_date", "def end_date(self, end_date):\n\n self._end_date = end_date", "def end_date(self, end_date...
[ "0.7654847", "0.7654847", "0.7654847", "0.7654847", "0.7654847", "0.7654847", "0.7654847", "0.7654847", "0.7611371", "0.73758507", "0.7329207", "0.71813506", "0.71133703", "0.6948979", "0.68964326", "0.684386", "0.6834189", "0.6771342", "0.6759583", "0.66879004", "0.6572118",...
0.8796761
0
Sets the coverage_start_date of this CommitteeReportsIEOnly.
def coverage_start_date(self, coverage_start_date): self._coverage_start_date = coverage_start_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def start_date(self, start_date):\n \n self._start_date = start_date", "def start_date(self, start_date):\n\n self._start_date = start_date", "def start_date(self, start_date):\n\n self._start_date = start_date", "def start_date(self, start_date):\n\n self._start_date = sta...
[ "0.7642533", "0.75838315", "0.75838315", "0.75838315", "0.75838315", "0.75838315", "0.75838315", "0.75838315", "0.75838315", "0.75838315", "0.7550486", "0.74578184", "0.73162735", "0.72775173", "0.70172787", "0.6948155", "0.67982256", "0.6486989", "0.629437", "0.61973", "0.60...
0.845089
0
Sets the independent_contributions_period of this CommitteeReportsIEOnly.
def independent_contributions_period(self, independent_contributions_period): self._independent_contributions_period = independent_contributions_period
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def independent_expenditures_period(self, independent_expenditures_period):\n\n self._independent_expenditures_period = independent_expenditures_period", "def annual_dividend(self, annual_dividend: float):\n\n self._annual_dividend = annual_dividend", "def nics_every(self, nics_every):\n\n ...
[ "0.7341486", "0.49907604", "0.46329165", "0.458192", "0.45773122", "0.453223", "0.44640908", "0.44110942", "0.44043857", "0.43827456", "0.43824667", "0.43620273", "0.4323632", "0.43157676", "0.43131822", "0.43021482", "0.4289625", "0.42822167", "0.4232625", "0.42285788", "0.4...
0.8370525
0
Sets the is_amended of this CommitteeReportsIEOnly.
def is_amended(self, is_amended): self._is_amended = is_amended
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def amended_by(self, amended_by):\n\n self._amended_by = amended_by", "def is_mitigated(self, is_mitigated):\n\n self._is_mitigated = is_mitigated", "def amendment(self, amendment):\n\n self._amendment = amendment", "def amendment_indicator(self, amendment_indicator):\n\n self._am...
[ "0.62295175", "0.59822744", "0.5910932", "0.555732", "0.52606636", "0.5129305", "0.50184953", "0.5005889", "0.5003657", "0.5003657", "0.49314654", "0.4915959", "0.48262396", "0.48130363", "0.47937226", "0.47918117", "0.4789124", "0.47759283", "0.47675496", "0.47266373", "0.47...
0.7832977
0
Sets the receipt_date of this CommitteeReportsIEOnly.
def receipt_date(self, receipt_date): self._receipt_date = receipt_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def expired_receipt(self, expired_receipt):\n\n self._expired_receipt = expired_receipt", "def expiration_date(self, expiration_date):\n\n self._expiration_date = expiration_date", "def set_checkout(self, date):\n if type(date) != dt.datetime:\n raise TypeError('date must be a d...
[ "0.60269386", "0.57053626", "0.56998795", "0.56605387", "0.56249267", "0.559118", "0.5535894", "0.5527538", "0.5515417", "0.5463983", "0.5433253", "0.54306763", "0.54306763", "0.54306763", "0.54306763", "0.54306763", "0.54277307", "0.5426469", "0.5391571", "0.53804374", "0.53...
0.8052585
0
Sets the report_type of this CommitteeReportsIEOnly.
def report_type(self, report_type): self._report_type = report_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def report_type(self, report_type):\n if self.local_vars_configuration.client_side_validation and report_type is None: # noqa: E501\n raise ValueError(\"Invalid value for `report_type`, must not be `None`\") # noqa: E501\n\n self._report_type = report_type", "def committee_type(self, c...
[ "0.75791097", "0.64409584", "0.55999184", "0.54621243", "0.54309237", "0.5350013", "0.53220975", "0.53220975", "0.53131354", "0.5247786", "0.5247372", "0.5247372", "0.5199537", "0.51929826", "0.5169221", "0.515097", "0.50702053", "0.5065246", "0.5038664", "0.50355124", "0.502...
0.78419554
0
Returns true if both objects are equal
def __eq__(self, other): if not isinstance(other, CommitteeReportsIEOnly): return False return self.to_dict() == other.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other):\n return are_equal(self, other)", "def __eq__(self, other):\n return are_equal(self, other)", "def __eq__(self,other):\n try: return self.object==other.object and isinstance(self,type(other))\n except: return False", "def __eq__(self, other):\n if i...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def __ne__(self, other): if not isinstance(other, CommitteeReportsIEOnly): return True return self.to_dict() != other.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other: object) -> bool:\n if self.__eq__(other):\n return False\n return True", "def __ne__(self, other: object) -> bool:\n return not self.__eq__(other)", "def __ne__(self, other) -> bool:\n return not self.__eq__(other)", "def __eq__(self, other):\n ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Given a DF with columns 'Date' and 'HourEnding', return an updated DF with a single DateTime column, in which every element is a DateTime object (see datetime module)
def combine_date_and_hour_columns(data_frame): dates = data_frame["Date"].tolist() hours = data_frame["HourEnding"].tolist() date_hour_pairs = zip(dates, hours) date_times = map(convert_date_time_tuple_into_date_time_object, date_hour_pairs) data_frame["Date"] = date_times return data_frame.dr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fix_up_dates(df):\n # Convert to interval:\n # df = convert_time_to_interval(df)\n\n # Convert op_date and op_hour from string and integer to datetime:\n # Note that doing this conversion, rather than reading the CSV with\n # `parse_dates=True` is >10x faster.\n # Make an operating timestamp\...
[ "0.6745224", "0.5979369", "0.591047", "0.5901184", "0.5779667", "0.5600993", "0.5582903", "0.5576828", "0.5533896", "0.5505485", "0.5501997", "0.5495367", "0.54589885", "0.5426282", "0.5371007", "0.53696287", "0.5326263", "0.53156185", "0.5301127", "0.5224624", "0.5217903", ...
0.7477829
0
Given the path to a csv file containing load data, return a structured Pandas DataFrame
def read_load_data_from_csv(csv_path): # Load the original DataFrame, use easier-to-read column names, and drop unnecessary column original_df = pd.read_csv(csv_path).rename(columns={"OperDay" : "Date"}).drop(["TOTAL", "DSTFlag"],axis=1) original_df.name = csv_path.split("_")[1] # Combine the original...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_data(csv_path):\n df = pd.read_csv(csv_path)\n return df", "def _parse_csv(csv_file: str) -> pd.DataFrame:\n return pd.read_csv(csv_file, header=0)", "def csv_to_df(self, path=None):\n # reads the csv file and puts it to the dataframe\n df = pd.read_csv(path)\n return...
[ "0.8240527", "0.8086931", "0.7990842", "0.79473764", "0.785181", "0.78223425", "0.7799599", "0.77509767", "0.77244776", "0.77139133", "0.77057177", "0.7695179", "0.765888", "0.7556371", "0.7556371", "0.7526022", "0.7526022", "0.7526022", "0.75063205", "0.74919796", "0.7480123...
0.7015933
58
Given the path to a csv file containing load data, return a structured Pandas DataFrame
def read_weather_data_from_csv(csv_path): # Read the original DataFrame and select the relevant columns original_df = pd.read_csv(csv_path)[["DateUTC","TemperatureF"]] # Round up the hour of each Date to the nearest whole hour original_df["Date"] = original_df["DateUTC"].apply(round_utc_hour_up) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_data(csv_path):\n df = pd.read_csv(csv_path)\n return df", "def _parse_csv(csv_file: str) -> pd.DataFrame:\n return pd.read_csv(csv_file, header=0)", "def csv_to_df(self, path=None):\n # reads the csv file and puts it to the dataframe\n df = pd.read_csv(path)\n return...
[ "0.8240527", "0.8086931", "0.7990842", "0.79473764", "0.785181", "0.78223425", "0.7799599", "0.77509767", "0.77244776", "0.77139133", "0.77057177", "0.7695179", "0.765888", "0.7556371", "0.7556371", "0.7526022", "0.7526022", "0.7526022", "0.75063205", "0.74919796", "0.7480123...
0.0
-1
Returns price to sell player at, for listing players/when calculating profit.
def getPlayerSellPrice(self, playerid): # Get target players IDs txt = open("./data/player_list.txt", "r", encoding="utf8") for aline in txt: values2 = aline.strip("\n").split(",") line_id = int(values2[7]) inputid = int(playerid) diff = line_id - ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sell_cost(self):\n return self._manager.get_sell_price(self.name)", "def target_sell_price(self):\n return super(Player, self).target_sell_price", "def selling_price(self):\n # If a system can't produce something, its price is zero.\n _good = self.tradeitem\n if self.plan...
[ "0.7372649", "0.73344755", "0.72019154", "0.7177244", "0.714004", "0.69974625", "0.6945912", "0.6839833", "0.6808803", "0.6808803", "0.6808803", "0.6808444", "0.67935747", "0.67282236", "0.6704061", "0.66628844", "0.6621804", "0.65957785", "0.6588244", "0.65662366", "0.656474...
0.756267
0
Lists unlisted players on transfer list.
def list_unlisted_players(self, p_ids_and_prices): players_to_list = True try: while players_to_list: # Check if topmost player exists that should be listed topmost_player_location_unlisted = "/html/body/main/section/section/div[2]/div/div/div/section[3]/ul/li...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ListIgnoredPlayers(self, request, context):\n context.set_code(grpc.StatusCode.UNIMPLEMENTED)\n context.set_details('Method not implemented!')\n raise NotImplementedError('Method not implemented!')", "async def tod_list(self, ctx, *args):\n message = \"__Currently Playing__\\n\"\n if l...
[ "0.67716163", "0.637877", "0.6265547", "0.62425447", "0.61129206", "0.60271925", "0.59913105", "0.5973464", "0.5949822", "0.58735806", "0.5842144", "0.58217037", "0.57799274", "0.5761503", "0.5686107", "0.56568307", "0.5637608", "0.5592943", "0.5546718", "0.5494409", "0.54836...
0.66584796
1
The init of the Spectrum class, sets up both the base product behind the Spectrum and the specific information/abilities that a spectrum needs.
def __init__(self, path: str, rmf_path: str, arf_path: str, b_path: str, central_coord: Quantity, inn_rad: Quantity, out_rad: Quantity, obs_id: str, instrument: str, grouped: bool, min_counts: int, min_sn: float, over_sample: int, stdout_str: str, stderr_str: str, gen_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, synthetic_spectrum):\n self.synth_spec = synthetic_spectrum\n self._buildArray()", "def setup_class(self):\n # Blackbody: bb(5000)\n self.bb = SourceSpectrum(BlackBodyNorm1D, temperature=5000)\n\n # Gaussian emission line: em(5500, 250, 1e-13, flam)\n ...
[ "0.7219162", "0.7148131", "0.6800487", "0.6799615", "0.67704636", "0.6748596", "0.67067546", "0.67051244", "0.66854024", "0.66852397", "0.6658095", "0.6655313", "0.6634624", "0.658492", "0.6558378", "0.6530216", "0.6486569", "0.6462588", "0.64546597", "0.6423173", "0.6410996"...
0.65367824
15
This method returns the path to the RMF file of the main spectrum of this object.
def rmf(self) -> str: return self._rmf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_file_path(self):\n if self.path[0] in self._simulation_data.mfpath.model_relative_path:\n return os.path.join(\n self._simulation_data.mfpath.get_model_path(self.path[0]),\n self._filename,\n )\n else:\n return os.path.join(\n ...
[ "0.6486386", "0.64039326", "0.63436466", "0.62448716", "0.6122603", "0.60978454", "0.60502136", "0.60197204", "0.600611", "0.59872615", "0.5979748", "0.5832128", "0.5825446", "0.5825446", "0.58083206", "0.5807072", "0.57950187", "0.5771593", "0.5758791", "0.574527", "0.574499...
0.71772426
0
This property returns the storage key which this object assembles to place the Spectrum in an XGA source's storage structure. The key is based on the properties of the spectrum, and some of the configuration options, and is basically human readable.
def storage_key(self) -> str: return self._storage_key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def storage_id(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"storage_id\")", "def storage_id(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"storage_id\")", "def storage_id(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"storage_id\")", "def get(self):\n ...
[ "0.6715467", "0.6521152", "0.6521152", "0.6498029", "0.6442649", "0.6442028", "0.64364886", "0.64067346", "0.63806725", "0.6362977", "0.63555765", "0.63493043", "0.632715", "0.63080174", "0.63080174", "0.63080174", "0.63080174", "0.63080174", "0.63080174", "0.63080174", "0.63...
0.75579256
0
This property provides the central coordinates (RADec) of the region that this spectrum was generated from.
def central_coord(self) -> Quantity: return self._central_coord
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getRA(self):\n return self._ra", "def fieldCenter(self):\n if self.ra0 is None:\n self.ra0 = reduce(lambda x, y: x + y, [src.pos.ra for src in self.sources]) / len(\n self.sources) if self.sources else 0\n if self.dec0 is None:\n self.dec0 = r...
[ "0.68690705", "0.6826284", "0.68029463", "0.64896137", "0.6383515", "0.60551196", "0.603626", "0.6001144", "0.5980685", "0.5915835", "0.58681893", "0.5826973", "0.57878846", "0.5784775", "0.57519066", "0.5725569", "0.56909937", "0.56312007", "0.5609678", "0.5593659", "0.55875...
0.5598919
19
A property stating whether SAS was told to group this spectrum during generation or not.
def grouped(self) -> bool: return self._grouped
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def spect(self):\n return 1", "def is_group(self):\n return self._is_group", "def _set_group_flag(self):\n self.flag = np.zeros(len(self), dtype=np.uint8)\n for i in range(len(self)):\n img_info = self.img_infos[i]\n if img_info['width'] / img_info['height'] > ...
[ "0.57641083", "0.55071896", "0.549312", "0.549312", "0.5471971", "0.5443465", "0.53683364", "0.53095037", "0.52662796", "0.521779", "0.520108", "0.5188436", "0.5182509", "0.5145525", "0.5076598", "0.50741017", "0.5034573", "0.5018351", "0.5013079", "0.50092524", "0.5001061", ...
0.56687784
1
This property states whether this spectrum was generated directly from a region file region or not. If true then this isn't from any arbitrary radii or an overdensity radius, but instead directly from a source finder.
def region(self) -> bool: return self._region
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_radial(self):\n return self.startRadius is not None and self.endRadius is not None", "def is_raw(self):\n return not self._isReduced", "def degenerate(self):\n return self.radius == 0.0", "def whitelist_regions(self):\n return getattr(self, '_do_whitelist_regions', False)...
[ "0.5789886", "0.56757396", "0.55825573", "0.55747783", "0.55436784", "0.5527183", "0.5456624", "0.54025805", "0.53726864", "0.53641933", "0.5349459", "0.53100425", "0.52872354", "0.52872354", "0.52756834", "0.5268084", "0.5254226", "0.5249286", "0.52422947", "0.5218437", "0.5...
0.62844527
0
This property returns the integer identifier of which annulus in a set this Spectrum is, if it is part of a set.
def annulus_ident(self) -> int: return self._ann_ident
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_ident(self) -> int:\n return self._set_id", "def getId(self):\n return _libsbml.QualitativeSpecies_getId(self)", "def figure_id(self):\n return str(self.analysis)", "def get_spectral_index(self):\n try:\n return self.alpha\n except AttributeError:\n ...
[ "0.5952016", "0.5901151", "0.5814802", "0.5742382", "0.57282937", "0.57209015", "0.5702101", "0.5588498", "0.5553122", "0.5549883", "0.554329", "0.5515398", "0.5515239", "0.5509692", "0.5497161", "0.54693305", "0.5463738", "0.5453127", "0.5443064", "0.5437992", "0.54197574", ...
0.6668354
0
Property that returns the spectrum exposure time used by XSPEC.
def exposure(self) -> Quantity: if self._exp is None: raise ModelNotAssociatedError("There are no XSPEC fits associated with this Spectrum") else: exp = Quantity(self._exp, 's') return exp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_exposure(self):\n exposure = float(self._driver.ExposureTime)\n\n return exposure", "def exposuretime(self):\n _, = self.exposuretimes\n return _", "def exposuretime(self) -> ErrorValue:\n return ErrorValue(self._data['ExpTime'], self._data.setdefault('ExpTimeError',0.0))", ...
[ "0.7446548", "0.7314798", "0.69971865", "0.66013175", "0.6338037", "0.6276125", "0.62508327", "0.62271076", "0.6166408", "0.6116255", "0.60342866", "0.5980319", "0.59748423", "0.59281117", "0.59256166", "0.5925131", "0.591301", "0.58797663", "0.5848863", "0.58384115", "0.5835...
0.64917547
4
Method to return the name of the object a product is associated with. The product becomes aware of this once it is added to a source object.
def src_name(self) -> str: return self._src_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_object_name(self):\n return self.obj_name", "def object_name(self):\n return getattr(self.model, '__name__', 'object').lower()", "def get_context_object_name(self, obj):\n\t if self.context_object_name:\n\t return self.context_object_name\n\t elif isinstance(obj, Price):\n\t ...
[ "0.79659796", "0.76557547", "0.7482735", "0.74082494", "0.72611946", "0.72611946", "0.72581017", "0.7256746", "0.72467506", "0.7210262", "0.719324", "0.7188571", "0.7170691", "0.716483", "0.71478945", "0.7147743", "0.71422124", "0.71273726", "0.71273726", "0.71273726", "0.712...
0.0
-1
Property setter for the src_name attribute of a product, should only really be called by a source object, not by a user.
def src_name(self, name: str): self._src_name = name for p in self.all_spectra: p.src_name = name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setSourceName(self, instance, value):\n mapping = IAnnotations(instance).setdefault(\n 'collective.table',\n PersistentMapping()\n )\n mapping['source_name'] = value", "def src_name(self) -> str:\n return self._src_name", "def set_source(self, source_name):...
[ "0.6678785", "0.6676392", "0.66165394", "0.6551024", "0.6518702", "0.63921946", "0.6218526", "0.6063548", "0.6024841", "0.5988271", "0.59372634", "0.59032845", "0.58848345", "0.5838855", "0.58268344", "0.57453376", "0.5669288", "0.5662972", "0.56516385", "0.56470346", "0.5617...
0.718653
0
This property provides the central coordinates (RADec) that this set of spectra was generated around.
def central_coord(self) -> Quantity: return self._central_coord
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fieldCenter(self):\n if self.ra0 is None:\n self.ra0 = reduce(lambda x, y: x + y, [src.pos.ra for src in self.sources]) / len(\n self.sources) if self.sources else 0\n if self.dec0 is None:\n self.dec0 = reduce(lambda x, y: x + y, [src.pos.dec for src in self....
[ "0.68404746", "0.6738561", "0.66266555", "0.6334635", "0.6196199", "0.6172658", "0.6131324", "0.6072159", "0.5959082", "0.592394", "0.58721906", "0.58443445", "0.5797152", "0.57582384", "0.5691679", "0.56895083", "0.56773984", "0.56608236", "0.56494826", "0.56429815", "0.5637...
0.0
-1
A property getter for the number of annular spectra.
def num_annuli(self) -> int: return self._num_ann
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n_spectra(self):\n return np.product(self.image_shape)", "def len(self):\n return len(self.spectrae)", "def frequencies(self):\r\n\r\n #XXX Use NFFT in the method in order to calculate these, without having\r\n #to calculate the spectrum:\r\n f, spectrum = tsa.get_spectra...
[ "0.69534737", "0.6624263", "0.6463171", "0.6358986", "0.62352514", "0.62229455", "0.6179625", "0.614577", "0.609901", "0.6067551", "0.6053176", "0.5879961", "0.5879961", "0.58565146", "0.5828388", "0.5816528", "0.578277", "0.5738099", "0.57337886", "0.57207996", "0.57103074",...
0.5975358
11
This property returns the ID of this set of spectra.
def set_ident(self) -> int: return self._set_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getId(self):\n return _libsbml.Species_getId(self)", "def getId(self):\n return _libsbml.QualitativeSpecies_getId(self)", "def getId(self):\n return _libsbml.MultiSpeciesType_getId(self)", "def getId(self):\n return _libsbml.SubListOfSpeciesFeatures_getId(self)", "def getSpe...
[ "0.68449056", "0.6795738", "0.66125065", "0.64200425", "0.64190656", "0.6404543", "0.6370148", "0.6331844", "0.6308773", "0.6257684", "0.6243274", "0.6226796", "0.61641353", "0.61516035", "0.6112599", "0.610633", "0.6105224", "0.60610974", "0.60353076", "0.6008179", "0.599007...
0.0
-1
This property returns the storage key which this object assembles to place the AnnularSpectra in an XGA source's storage structure. The key is based on the properties of the AnnularSpectra, and some of the configuration options, and is basically human readable.
def storage_key(self) -> str: return self._storage_key
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def storage_id(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"storage_id\")", "def get_store_key(asset, variation):\n return '.'.join([\n asset.name,\n asset.uid,\n variation.name,\n variation.version,\n variation.ext\n ])"...
[ "0.6150734", "0.6109347", "0.607801", "0.589754", "0.589754", "0.5782051", "0.5758713", "0.5731121", "0.5717865", "0.5691669", "0.56826526", "0.5677394", "0.5669071", "0.5629346", "0.5629346", "0.562897", "0.55898887", "0.55898523", "0.55898523", "0.55898523", "0.55898523", ...
0.6784285
1
An equivelant to the Spectrum view method, but allows all spectra from the same annulus to be displayed on the same axis.
def view_annulus(self, ann_ident: int, model: str, figsize: Tuple = (12, 8)): # Grabs the relevant spectra using the annular ident rel_spec = self.get_spectra(ann_ident) # Sets up a matplotlib figure plt.figure(figsize=figsize) # Set the plot up to look nice and professional. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plot(self):\n\t\tself.plotOfSpect()", "def plot(self):\n\t\tself.plotOfSpect().plot()", "def view_annuli(self, obs_id: str, inst: str, model: str, figsize: tuple = (12, 8), elevation_angle: int = 30,\n azimuthal_angle: int = -60):\n # Setup the figure as we normally would\n ...
[ "0.66659", "0.65428734", "0.62738246", "0.6240846", "0.6116516", "0.60322595", "0.6026601", "0.60199356", "0.59513414", "0.592606", "0.58939034", "0.5890213", "0.5872648", "0.5853756", "0.5846236", "0.5837436", "0.582809", "0.5807151", "0.57585084", "0.5756531", "0.5752702", ...
0.65961426
1
Determine if a given datetime.datetime is aware.
def _is_timezone_aware(value): return value.utcoffset() is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_aware(value: datetime) -> bool:\n\n return value.utcoffset() is not None", "def is_aware(value):\n return value.tzinfo is not None and value.tzinfo.utcoffset(value) is not None", "def test_make_datetime_aware(settings):\n # Set the TIME_ZONE in the settings.\n settings.TIME_ZONE = \"America/...
[ "0.7494797", "0.6947957", "0.6772029", "0.65766674", "0.6156864", "0.6094631", "0.6075463", "0.5937116", "0.58208174", "0.57866275", "0.5721365", "0.5709841", "0.56426567", "0.5586102", "0.55633014", "0.5551252", "0.55132246", "0.55036294", "0.54338443", "0.5393659", "0.53917...
0.6632797
3
Tests the index/start/home page
def setUp(self): c = Client() self.response = c.get('/') self.content = self.response.content
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_home(self):\n\t\tresponse = self.client.get('/')\n\t\tself.assertContains(response, 'Home Page', 1, 200)", "def test_home(self):\n response = self.client.get('/')\n self.assertContains(response, 'Home Page', 1, 200)", "def test_home(self):\n response = self.client.get('/')\n ...
[ "0.8265043", "0.8176129", "0.81358254", "0.806741", "0.806741", "0.7992334", "0.79101557", "0.7875162", "0.7816262", "0.776614", "0.7759911", "0.770925", "0.77064127", "0.7632008", "0.7630612", "0.7568773", "0.7495767", "0.7474668", "0.7426526", "0.73924994", "0.73924994", ...
0.0
-1
Find the Jaccard Overlap (IoU) of every box combination between two sets of boxes that are in boundary coordinates.
def find_jaccard_overlap(set_1, set_2): # Find intersections intersection = find_intersection(set_1, set_2) # (n1, n2) # Find areas of each box in both sets areas_set_1 = (set_1[:, 2] - set_1[:, 0]) * (set_1[:, 3] - set_1[:, 1]) # (n1) areas_set_2 = (set_2[:, 2] - set_2[:, 0]) * (set_2[:, 3] - set...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def compute_iou(box, boxes):\n\n x_min_A, y_min_A, x_max_A, y_max_A = box[:4]\n x_min_B, y_min_B = boxes[:, 0], boxes[:, 1]\n x_max_B, y_max_B = boxes[:, 2], boxes[:, 3]\n # calculating the intersection\n inner_x_min = np.maximum(x_min_B, x_min_A)\n inner_y_min = np.maximum(y_min_B, y_min_A)\n ...
[ "0.71694905", "0.711332", "0.705387", "0.7022158", "0.6950822", "0.6950822", "0.6950822", "0.6860813", "0.6860813", "0.67789215", "0.6739475", "0.6722436", "0.6709931", "0.67075384", "0.6636953", "0.66225165", "0.66225165", "0.6605088", "0.6590623", "0.6588522", "0.65828234",...
0.6401868
39
The default output filter Returns the string value of the result unless it is None (in which case it returns None).
def _default_output(result): return str(result) if result is not None else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter_output(self, request, output):\n return output", "def get_output(self):\n return None, None", "def get_output(self):\n return None, None", "def output(self) -> Optional[str]:\n return self.__output", "def filter(self) -> pulumi.Output[str]:\n return pulumi.get(...
[ "0.70167714", "0.6820418", "0.6820418", "0.6751073", "0.6693004", "0.6564074", "0.6219724", "0.61966914", "0.6196337", "0.61465096", "0.60825425", "0.5961308", "0.5948533", "0.59188926", "0.5887791", "0.5854385", "0.584886", "0.5806589", "0.57962394", "0.57962394", "0.5796239...
0.814796
0
Sets the can_create_new of this UserOperatorsDataForSearch.
def can_create_new(self, can_create_new): self._can_create_new = can_create_new
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def can_create(self):\n return True", "def set_is_new_customer_custom_fields(self, is_new_customer_custom_fields):\n self.is_new_customer_custom_fields = is_new_customer_custom_fields", "def can_create_mobile(self, can_create_mobile):\n\n self._can_create_mobile = can_create_mobile", "de...
[ "0.56465614", "0.5526304", "0.54461485", "0.53896445", "0.5353206", "0.52808", "0.5252533", "0.524737", "0.48291862", "0.48097092", "0.47842157", "0.47641417", "0.4738914", "0.46437928", "0.4584783", "0.45844102", "0.4539958", "0.45173275", "0.4489892", "0.4485412", "0.444410...
0.74739134
0
Sets the groups of this UserOperatorsDataForSearch.
def groups(self, groups): self._groups = groups
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def groups(self, groups):\n self._groups = groups", "def set_pingroups(self, groups):\n self.groups = groups[:]", "def user_groups(self, user_groups):\n\n self._user_groups = user_groups", "def groups(self, groups):\n if groups is None:\n raise ValueError(\"Invalid valu...
[ "0.6950851", "0.6910666", "0.62502855", "0.6054654", "0.59041274", "0.58671236", "0.5785722", "0.5777229", "0.57468843", "0.56584865", "0.5657462", "0.56571585", "0.56012064", "0.5598757", "0.5395367", "0.5371333", "0.5369239", "0.53170717", "0.5205642", "0.5191901", "0.51589...
0.6887643
2
Sets the fields_in_list of this UserOperatorsDataForSearch.
def fields_in_list(self, fields_in_list): self._fields_in_list = fields_in_list
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fields_in_advanced_search(self, fields_in_advanced_search):\n\n self._fields_in_advanced_search = fields_in_advanced_search", "def available_field_list(self, available_field_list):\n\n self._available_field_list = available_field_list", "def address_fields_in_search(self, address_fields_in_se...
[ "0.586879", "0.56823784", "0.5577506", "0.54741436", "0.53022456", "0.5202586", "0.5153869", "0.5125098", "0.5014284", "0.49677652", "0.48862126", "0.48781312", "0.48726717", "0.48668724", "0.48328888", "0.4739423", "0.47385073", "0.47336185", "0.46571812", "0.46516907", "0.4...
0.81246656
0
Sets the custom_fields of this UserOperatorsDataForSearch.
def custom_fields(self, custom_fields): self._custom_fields = custom_fields
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def custom_profile_fields(self, custom_profile_fields):\n\n self._custom_profile_fields = custom_profile_fields", "def user_custom_data(self, user_custom_data):\n\n self._user_custom_data = user_custom_data", "def custom_tags(self, custom_tags):\n\n self._custom_tags = custom_tags", "def...
[ "0.67743236", "0.6040051", "0.5793232", "0.57897216", "0.54806566", "0.52143484", "0.5047025", "0.4988528", "0.49873757", "0.49610087", "0.48801556", "0.4816046", "0.47896537", "0.47896537", "0.4757783", "0.47541413", "0.47102648", "0.46984938", "0.46399954", "0.46173623", "0...
0.7134126
1
Returns true if both objects are equal
def __eq__(self, other): if not isinstance(other, UserOperatorsDataForSearch): return False return self.to_dict() == other.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other):\n return are_equal(self, other)", "def __eq__(self, other):\n return are_equal(self, other)", "def __eq__(self,other):\n try: return self.object==other.object and isinstance(self,type(other))\n except: return False", "def __eq__(self, other):\n if i...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def __ne__(self, other): if not isinstance(other, UserOperatorsDataForSearch): return True return self.to_dict() != other.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other: object) -> bool:\n if self.__eq__(other):\n return False\n return True", "def __ne__(self, other: object) -> bool:\n return not self.__eq__(other)", "def __ne__(self, other) -> bool:\n return not self.__eq__(other)", "def __eq__(self, other):\n ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Takes a time object and converts to decimal.
def from_standard_time(cls, standard_time): midnight = datetime.combine(date.today(), time.fromisoformat('00:00:00')) target = datetime.combine(date.today(), standard_time) standard_seconds = (target - midnight).seconds second_ratio = 100 * 100 * 10 / (60 * 60 * 24) decimal_sec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __time_to_float(time_value):\n return time_value.hour/24 + time_value.minute/(24*60) + time_value.second/(24*60*60) + round(time_value.microsecond, 3)/(24*60*60*1e6)", "def to_seconds(time):\n return 3600 * time", "def _convert_to_decimal(value):\n d0 = value[0][0]\n d1 = value[0][1]\n d...
[ "0.6694162", "0.6628801", "0.6576042", "0.62667215", "0.62296444", "0.61963874", "0.61723447", "0.61388755", "0.5922769", "0.58985895", "0.58571994", "0.58556116", "0.5842292", "0.5812372", "0.5804172", "0.57494307", "0.5706122", "0.5693844", "0.5693168", "0.5654591", "0.5637...
0.0
-1
Returns a new QtradeAPI instance with stripped auth but the same endpoint configuration. Useful for testing toolchains that might point at multiple testing endpoints and 'inherit' from some base endpoint config
def clone(self): return type(self)(self.endpoint)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _base(self):\n from hubspot3.base import BaseClient\n\n return BaseClient(**self.auth, **self.options)", "def api_factory(config):\n return SdkApi(config.get('apiKey'),\n sdk_api_base_url=config['sdkApiBaseUrl'],\n events_api_base_url=config['eventsApiBaseUr...
[ "0.58025193", "0.5590512", "0.5510969", "0.5468744", "0.5428566", "0.5394475", "0.53181416", "0.5305075", "0.5253311", "0.5249187", "0.5227387", "0.5219575", "0.5206164", "0.51937425", "0.5122713", "0.51093835", "0.5106539", "0.50655013", "0.5064005", "0.5062983", "0.50491214...
0.49767378
27
Login with username and password to get a JWT token. Intended for internal testing only.
def login(self, email, password): resp = self._req('post', "/v1/login", json={ "email": email, "password": password, }) self.user_id = resp['user_id'] self.token = resp['token']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def login(**kwargs):\n data = request.get_json()\n print(\"data={}\".format(data))\n login = data.get('username')\n password = data.get('password')\n\n if not login or not password:\n raise Unauthorized('Wrong username and/or password.')\n else:\n use...
[ "0.81520206", "0.81354785", "0.79917437", "0.7933079", "0.784999", "0.78449696", "0.77593076", "0.76749057", "0.76604015", "0.75949967", "0.7567016", "0.75437164", "0.7478704", "0.7441882", "0.740633", "0.7372099", "0.73622", "0.73602974", "0.73427", "0.7342536", "0.73137873"...
0.6936497
46
Test case for drugs_get
def test_drugs_get(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_drugs_id_get(self):\n pass", "def test_get_foods(self):\n pass", "def test_get_dealer_ratings(self):\n pass", "def test_get_food(self):\n pass", "def test_getitem(self):\n for name, det in self.sampler.detectors.items():\n fromGetItem = self.sampler[na...
[ "0.6962607", "0.596903", "0.58494073", "0.56993365", "0.56963634", "0.5652749", "0.5547654", "0.55350125", "0.54472077", "0.5434252", "0.54235184", "0.53876746", "0.53432137", "0.53232735", "0.5316595", "0.52970773", "0.5294284", "0.52920455", "0.52872455", "0.5267997", "0.52...
0.80927145
0
Given a pair of latitude, longitude coordinate pairs, compute the distance in miles of two locations
def calculate_distance(source,dest): ### Earth radius in miles R = 3960.0 lat1, lon1 = source lat2, lon2 = dest lat1 = radians(lat1) lon1 = radians(lon1) lat2 = radians(lat2) lon2 = radians(lon2) dlon = lon2 - lon1 dlat = lat2 - lat1 ### compute distance in spherical coor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def calcDistance(lat1, lon1, lat2, lon2):\n yDistance = (lat2 - lat1) * nauticalMilePerLat\n xDistance = (math.cos(lat1 * rad) + math.cos(lat2 * rad)) * (lon2 - lon1) * (nauticalMilePerLongitude / 2) \n distance = math.sqrt( yDistance**2 + xDistance**2 )\n return distance * milesPerNauticalMile", "def coord_...
[ "0.79749566", "0.7944175", "0.7912359", "0.78638965", "0.78192973", "0.7709819", "0.7707837", "0.7670915", "0.763848", "0.75733393", "0.75417197", "0.75320816", "0.75317794", "0.7524299", "0.7510584", "0.7491965", "0.7483581", "0.74422157", "0.74325776", "0.74151486", "0.7414...
0.69991076
62
Helper function to parse default boolean values.
def _parse_bool(self, value): if isinstance(value, str): return value.strip().lower() in ['true', '1', 't', 'y', 'yes'] return bool(value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def parse_bool_str(attr, key, default='False'):\n return attr.get(key, default).strip().lower() in ['true', '1', 't', 'y', 'yes']", "def test_boolean_default_values(self):\n true_values = ['True', 'true', 'True', 'YES', 'yes', 'y', 'Y', 'Yes']\n false_values = ['FALSE', 'false', 'False', 'NO', '...
[ "0.71889156", "0.68330115", "0.6828692", "0.6803678", "0.679545", "0.6773506", "0.6739961", "0.6705686", "0.6620569", "0.65791374", "0.65027505", "0.64707613", "0.6430233", "0.6377602", "0.6373676", "0.6345885", "0.63440776", "0.63409495", "0.6334087", "0.6301347", "0.6299644...
0.679068
5
Extention to infer_value that can be used when some input values are missing. This function creates dummy inputs with the same shape and random values then calls infer_value. This is helpful when implementing certain onnx operators where we need to evaluate the graph to determine a static shape.
def infer_value_simulated(input_val, params): fake_params = [] # Add a fake copy of all missing params. for free_param in analysis.free_vars(input_val): if free_param.name_hint not in params: fp_dtype = free_param.type_annotation.dtype fp_shape = [s.value for s in free_param....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_dummy_input(dataset=None, device=None, input_shape=None):\n def create_single(shape):\n t = torch.randn(shape)\n if device:\n t = t.to(device)\n return t\n\n def create_recurse(shape):\n if all(isinstance(x, int) for x in shape):\n return create_singl...
[ "0.6108313", "0.6079087", "0.58093524", "0.57226783", "0.5583185", "0.55778635", "0.5501691", "0.54721665", "0.53937286", "0.5391811", "0.53671724", "0.53256667", "0.53183067", "0.5274428", "0.5266232", "0.52542746", "0.5244573", "0.5238319", "0.5236556", "0.5190879", "0.5176...
0.6968069
0
Return package version as listed in `__version__` in `init.py`.
def get_version(): init_py = open(os.path.join(PACKAGE_NAME, '__init__.py')).read() return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_version_from_package() -> str:\n path = join(dirname(__file__), \"__init__.py\")\n path = normpath(abspath(path))\n with open(path) as f:\n for line in f:\n if line.startswith(\"__version__\"):\n token, version = line.split(\" = \", 1)\n version = ve...
[ "0.84893894", "0.83908445", "0.83863354", "0.8380136", "0.8379423", "0.8370828", "0.8370828", "0.8370828", "0.8370828", "0.8370828", "0.8370828", "0.8370828", "0.83694756", "0.83582735", "0.835638", "0.8078477", "0.7975143", "0.7938866", "0.78928864", "0.78928864", "0.7892886...
0.8357903
14
Gets the sign_request of this Notification.
def sign_request(self): return self._sign_request
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sign_request(self, sign_request):\n\n self._sign_request = sign_request", "def signer_info(self):\n return self.content['signer_infos'][0]", "def signrequest(self, signrequest):\n\n self._signrequest = signrequest", "def signature_receipt(self):\n return self._signature_receip...
[ "0.6505988", "0.64640635", "0.6310958", "0.6199028", "0.6162181", "0.61612487", "0.6047868", "0.60037017", "0.60037017", "0.5997262", "0.5997262", "0.5997262", "0.59881365", "0.5966498", "0.5892732", "0.57776195", "0.5770622", "0.57574916", "0.5697886", "0.565307", "0.5627128...
0.85575163
0