query
stringlengths
9
3.4k
document
stringlengths
9
87.4k
metadata
dict
negatives
listlengths
4
101
negative_scores
listlengths
4
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Validation of the implementaiton of periodic angle axis in Magnetic (MagFEMM) and Force (ForceMT) modules
def test_FEMM_periodicity_angle(): SPMSM_015 = load(join(DATA_DIR, "Machine", "SPMSM_015.json")) assert SPMSM_015.comp_periodicity() == (9, False, 9, True) simu = Simu1(name="test_FEMM_periodicity_angle", machine=SPMSM_015) # Definition of the enforced output of the electrical module I0_rms = 25...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_mag_form_fac_case1():\n ion = MagneticFormFactor('Fe')\n formfac, _temp = ion.calc_mag_form_fac()[0], ion.calc_mag_form_fac()[1:]\n del _temp\n assert (abs(np.sum(formfac) - 74.155233575216599) < 1e-12)", "def test_mag_form_fac():\n ion = MagneticFormFactor('Fe')\n formfac, _temp = ion...
[ "0.60290766", "0.6012614", "0.58263516", "0.5755218", "0.56348616", "0.56247103", "0.5583029", "0.5559526", "0.55149376", "0.54994637", "0.5498538", "0.54675615", "0.5454319", "0.5441296", "0.54299664", "0.5414825", "0.54081666", "0.53792536", "0.53736025", "0.53621024", "0.5...
0.6782517
0
Set the RGB value, and optionally brightness, of a single pixel. If you don't supply a brightness value, the last value will be kept.
def set_pixel(x, r, g, b, brightness=None): if brightness is None: brightness = pixels[x][3] else: brightness = int(float(MAX_BRIGHTNESS) * brightness) & 0b11111 pixels[x] = [int(r) & 0xff, int(g) & 0xff, int(b) & 0xff, brightness]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_pixel(self, frame, index, brightness):\n if brightness > 255 or brightness < 0:\n raise ValueError('Value {} out of range. Brightness must be between 0 and 255'.format(brightness))\n\n if index < 0 or index > 143:\n raise ValueError('Index must be between 0 and 143')\n\n...
[ "0.7257801", "0.70964503", "0.7078613", "0.69361275", "0.69103754", "0.6849395", "0.68239653", "0.6787617", "0.67320323", "0.670798", "0.6697311", "0.6621259", "0.65958184", "0.6595451", "0.6569934", "0.6569934", "0.6561587", "0.6554602", "0.653843", "0.6494485", "0.6490676",...
0.7723842
0
Set the RGB colour of an individual light in your Plasma chain. This will set all four LEDs on the Plasma light to the same colour.
def set_light(r, g, b): for x in range(4): set_pixel(x, r, g, b) """Output the buffer """ _sof() for pixel in pixels: r, g, b, brightness = pixel _write_byte(0b11100000 | brightness) _write_byte(b) _write_byte(g) _write_byte(r) _eof()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_light_rgb(self, light, color):\n light_kwargs = { \"rgb_color\": color }\n if not self.use_current_brightness:\n light_kwargs[\"brightness\"] = 255\n self.turn_on(light, **light_kwargs)", "def setLeds(number: int, red: int, green: int, blue: int):\n pass", "def set_red_light(self, va...
[ "0.7316633", "0.72674406", "0.7174939", "0.7085601", "0.7041472", "0.68249214", "0.6809997", "0.67717195", "0.6763095", "0.6755381", "0.6717422", "0.66899174", "0.6670213", "0.66619176", "0.6651733", "0.6629554", "0.6604987", "0.66025084", "0.6592501", "0.6591504", "0.6589676...
0.6668031
13
Waits for wait_seconds seconds before setting stop_signal.
def sleep_and_set_stop_signal_task(stop_signal, wait_seconds): timer = Timer(wait_seconds, stop_signal.set) timer.daemon = True timer.start()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wait(self, seconds):\n time.sleep(seconds)", "def wait_for_seconds(self, seconds, sleeptime=0.001):\n self.listen_until_return(timeout=seconds, sleeptime=sleeptime)", "def wait (self, seconds=0.0):\r\n\t\tstart_time = time.time()\r\n\t\twhile time.time() < start_time + seconds:\r\n\t\t\tself....
[ "0.70341736", "0.69638157", "0.6919327", "0.69169587", "0.6484378", "0.64468855", "0.63162977", "0.6311919", "0.6281869", "0.62770647", "0.62602526", "0.62214833", "0.62033594", "0.6187091", "0.6172887", "0.6160744", "0.61564934", "0.61425143", "0.6129257", "0.6078051", "0.60...
0.74198914
0
Creates a clone of the django model instance.
def make_clone(self, attrs=None, sub_clone=False): attrs = attrs or {} if not self.pk: raise ValidationError( "{}: Instance must be saved before it can be cloned.".format( self.__class__.__name__ ) ) if sub_clone: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def clone(self):\n return _libsbml.Model_clone(self)", "def clone(self):\n return _libsbml.ModelCreator_clone(self)", "def _clone(self):\n c = self.__class__(\n model=self.model,\n query=self.query.chain(),\n using=self._db,\n hints=self._hints,\...
[ "0.77228034", "0.76703876", "0.75042874", "0.7343278", "0.7176201", "0.713914", "0.7114313", "0.70880467", "0.7067016", "0.70131654", "0.69978905", "0.69744426", "0.69700396", "0.6951585", "0.6933647", "0.69158345", "0.6909581", "0.68965316", "0.68575525", "0.6783153", "0.678...
0.71916974
4
Create a copy of an instance
def _create_copy_of_instance(instance, force=False, sub_clone=False): cls = instance.__class__ clone_fields = getattr(cls, "_clone_fields", CloneMixin._clone_fields) clone_excluded_fields = getattr( cls, "_clone_excluded_fields", CloneMixin._clone_excluded_fields ) cl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def copy(self):\n cls = self.__class__\n result = cls.__new__(cls)\n result.__dict__.update(self.__dict__)\n return result", "def copy(self):\n return self.__class__(self)", "def copy(self):\n return self.__class__(self)", "def copy(self):\n return object.__ne...
[ "0.8198373", "0.8196435", "0.8196435", "0.8144171", "0.8075453", "0.8064323", "0.8049008", "0.79883856", "0.79870653", "0.79790956", "0.7955504", "0.7929597", "0.79129773", "0.79002005", "0.78823227", "0.7870459", "0.78166956", "0.7798935", "0.7766521", "0.7737009", "0.771672...
0.0
-1
Duplicate one to one fields.
def __duplicate_o2o_fields(self, duplicate): for f in self._meta.related_objects: if f.one_to_one: if any( [ f.name in self._clone_o2o_fields and f not in self._meta.concrete_fields, self._clo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __duplicate_m2o_fields(self, duplicate):\n fields = set()\n\n for f in self._meta.concrete_fields:\n if f.many_to_one:\n if any(\n [\n f.name in self._clone_m2o_or_o2m_fields,\n self._clone_excluded_m2o_or_...
[ "0.6707461", "0.6674422", "0.65932596", "0.6507167", "0.5882289", "0.5850159", "0.5838307", "0.57841384", "0.5691724", "0.55239975", "0.54606026", "0.5400994", "0.5379366", "0.53540444", "0.53528345", "0.5347377", "0.53058666", "0.53031313", "0.5300691", "0.5285195", "0.52776...
0.6830732
0
Duplicate one to many fields.
def __duplicate_o2m_fields(self, duplicate): fields = set() for f in self._meta.related_objects: if f.one_to_many: if any( [ f.get_accessor_name() in self._clone_m2o_or_o2m_fields, self._clone_excluded_m2o_o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __duplicate_m2o_fields(self, duplicate):\n fields = set()\n\n for f in self._meta.concrete_fields:\n if f.many_to_one:\n if any(\n [\n f.name in self._clone_m2o_or_o2m_fields,\n self._clone_excluded_m2o_or_...
[ "0.75518346", "0.716638", "0.7029186", "0.6424519", "0.615692", "0.5902748", "0.580661", "0.57859975", "0.5785186", "0.5717907", "0.5689", "0.56443495", "0.56256235", "0.55974805", "0.55747044", "0.5503478", "0.5490743", "0.5467568", "0.53609717", "0.5352907", "0.53502095", ...
0.74103355
1
Duplicate many to one fields.
def __duplicate_m2o_fields(self, duplicate): fields = set() for f in self._meta.concrete_fields: if f.many_to_one: if any( [ f.name in self._clone_m2o_or_o2m_fields, self._clone_excluded_m2o_or_o2m_fields ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __duplicate_o2m_fields(self, duplicate):\n fields = set()\n\n for f in self._meta.related_objects:\n if f.one_to_many:\n if any(\n [\n f.get_accessor_name() in self._clone_m2o_or_o2m_fields,\n self._clone_e...
[ "0.73184913", "0.717969", "0.69729894", "0.62483776", "0.6107792", "0.58588886", "0.58578765", "0.58333975", "0.57033503", "0.5657808", "0.5648944", "0.563969", "0.54837763", "0.54219484", "0.5397397", "0.5392138", "0.5375547", "0.5354627", "0.5337015", "0.5312537", "0.527723...
0.7469325
0
Duplicate many to many fields.
def __duplicate_m2m_fields(self, duplicate): fields = set() for f in self._meta.many_to_many: if any( [ f.name in self._clone_m2m_fields, self._clone_excluded_m2m_fields and f.name not in self._clone_excluded_m2m_fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __duplicate_m2o_fields(self, duplicate):\n fields = set()\n\n for f in self._meta.concrete_fields:\n if f.many_to_one:\n if any(\n [\n f.name in self._clone_m2o_or_o2m_fields,\n self._clone_excluded_m2o_or_...
[ "0.71822715", "0.6938308", "0.6353612", "0.618208", "0.6114017", "0.6109971", "0.5827082", "0.5766371", "0.5740473", "0.57385474", "0.56653893", "0.5664595", "0.56420845", "0.55645937", "0.55632085", "0.5549489", "0.547048", "0.54265815", "0.53681564", "0.5348527", "0.5340041...
0.7390873
0
UserResponse a model defined in Swagger
def __init__(self, account_type=None, business_account=None, individual_account=None, registration_marketplace_id=None, status=None, user_id=None, username=None): # noqa: E501 # noqa: E501 self._account_type = None self._business_account = None self._individual_account = None self._reg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _create_response_model(self, data):\n pass", "def me(self, request: Request) -> Response:\n\n serializer = self.get_serializer(instance=request.user)\n return Response(serializer.data)", "def make_response(self):\n params = {\n 'tweet.fields': 'created_at,public_metri...
[ "0.6416418", "0.611457", "0.6068402", "0.60660547", "0.6036755", "0.59606844", "0.59422576", "0.59139943", "0.58684826", "0.58683", "0.5817401", "0.580789", "0.57984364", "0.57502323", "0.57425076", "0.570621", "0.5667755", "0.5619348", "0.5608451", "0.5582353", "0.5549562", ...
0.0
-1
Sets the account_type of this UserResponse.
def account_type(self, account_type): self._account_type = account_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def account_type(self, account_type):\n allowed_values = [\"USER_ACCOUNT\", \"SERVICE_ACCOUNT\", \"INACTIVE_SERVICE_ACCOUNT\"] # noqa: E501\n if account_type not in allowed_values:\n raise ValueError(\n \"Invalid value for `account_type` ({0}), must be one of {1}\" # noqa:...
[ "0.769533", "0.6538228", "0.6500076", "0.63005424", "0.62570584", "0.6248823", "0.6172584", "0.6130132", "0.602886", "0.6022206", "0.5954991", "0.5954991", "0.5954991", "0.5954991", "0.58775336", "0.58745277", "0.58745277", "0.5874434", "0.5863808", "0.57894033", "0.5764235",...
0.8373349
3
Sets the business_account of this UserResponse.
def business_account(self, business_account): self._business_account = business_account
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def business_id(self, business_id):\n\n self._business_id = business_id", "def business_email(self, business_email):\n\n self._business_email = business_email", "def business_owner(self, business_owner):\n\n self._business_owner = business_owner", "def business_phone(self, business_phone...
[ "0.68295044", "0.6694788", "0.65968657", "0.64488673", "0.63704747", "0.61454445", "0.60893625", "0.58178234", "0.58178234", "0.5807157", "0.5681304", "0.5420851", "0.5420851", "0.5420851", "0.5420851", "0.53558195", "0.5355273", "0.53436404", "0.5324513", "0.52895993", "0.52...
0.8394445
0
Sets the individual_account of this UserResponse.
def individual_account(self, individual_account): self._individual_account = individual_account
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setAccount(self, account_id):\n self.data_struct['_setAccount'] = account_id", "def set_account(self, account: str):\n ret = self._call_txtrader_api('set_account', {'account': account})\n if ret:\n self.account = account\n return ret", "def account(self, account):\n\n...
[ "0.6242222", "0.62353134", "0.6195874", "0.6195874", "0.6195874", "0.6195874", "0.6064232", "0.6054456", "0.599", "0.5941063", "0.59252465", "0.58991206", "0.5867289", "0.5867289", "0.5867289", "0.5867289", "0.5867289", "0.5867289", "0.58530086", "0.56883174", "0.5645553", ...
0.80935436
0
Sets the registration_marketplace_id of this UserResponse.
def registration_marketplace_id(self, registration_marketplace_id): self._registration_marketplace_id = registration_marketplace_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def marketplace_id(self, marketplace_id):\n\n self._marketplace_id = marketplace_id", "def put(self, **kwargs):\n contract = {\n \"pushRegKey\": [\"id\",\"+\"]\n }\n try:\n self.check_params_conform(contract)\n except ValidatorException:\n retur...
[ "0.65472084", "0.563777", "0.5593157", "0.55648047", "0.5374765", "0.52975535", "0.52847886", "0.52847886", "0.52847886", "0.52847886", "0.52847886", "0.52847886", "0.52847886", "0.52847886", "0.52847886", "0.52847886", "0.52847886", "0.52847886", "0.52847886", "0.52847886", ...
0.7918989
0
Sets the status of this UserResponse.
def status(self, status): self._status = status
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_status(self, status):\n self.status = status", "def set_status(self, status):\n self.status = status", "def set_status(self, status):\n self.status = status", "def setStatus(self, status):\n self.__status = status", "def status(self, status):\n self._status = stat...
[ "0.74828047", "0.74828047", "0.74828047", "0.7289848", "0.72221553", "0.72221553", "0.72221553", "0.72221553", "0.72221553", "0.72221553", "0.72221553", "0.7198546", "0.7092023", "0.7053926", "0.7053926", "0.7014277", "0.7011542", "0.69944286", "0.6962982", "0.6766823", "0.66...
0.7238996
23
Sets the user_id of this UserResponse.
def user_id(self, user_id): self._user_id = user_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def user_id(self, user_id):\n if user_id is None:\n raise ValueError(\"Invalid value for `user_id`, must not be `None`\") # noqa: E501\n\n self._user_id = user_id", "def user_id(self, user_id):\n if user_id is None:\n raise ValueError(\"Invalid value for `user_id`, mus...
[ "0.80819875", "0.80819875", "0.8024789", "0.79389626", "0.792101", "0.73899055", "0.72080636", "0.6856244", "0.6813643", "0.6710162", "0.65760064", "0.6520053", "0.6400696", "0.6400696", "0.6400696", "0.6400696", "0.6400696", "0.6400696", "0.6400696", "0.6400696", "0.6400696"...
0.80791456
14
Sets the username of this UserResponse.
def username(self, username): self._username = username
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_username(self, value):\n self.username = value", "def username(self, username: str):\n\n self._username = username", "def set_username(self, value):\n raise NotImplementedError('set_username')", "def username(self, username):\n self._username = username\n return sel...
[ "0.7538373", "0.7335645", "0.7213981", "0.71742046", "0.71679693", "0.7048574", "0.698602", "0.6952007", "0.6889637", "0.68762875", "0.68483305", "0.65983826", "0.6507793", "0.6418733", "0.6257971", "0.6234162", "0.6107828", "0.6098162", "0.60074615", "0.6002115", "0.5911386"...
0.7303445
10
Returns the model properties as a dict
def to_dict(self): result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def to_dict(self):\n return self.properties", "def to_dict(self):\n return self.properties", "def get_properties(self):\n return self.properties", "def asdict(self):\n return self._prop_dict", "def json(self):\n rv = {\n prop: getattr(self, prop)\n f...
[ "0.7751993", "0.7751993", "0.73391134", "0.7334895", "0.7297356", "0.727818", "0.7159078", "0.71578115", "0.71494967", "0.71494967", "0.71283495", "0.71275014", "0.7122587", "0.71079814", "0.7060394", "0.7043251", "0.7034103", "0.70233124", "0.69635814", "0.69586295", "0.6900...
0.0
-1
Returns the string representation of the model
def to_str(self): return pprint.pformat(self.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __str__(self):\n return super().__str__() + self.model.__str__()", "def __str__(self) -> str:\n # noinspection PyUnresolvedReferences\n opts = self._meta\n if self.name_field:\n result = str(opts.get_field(self.name_field).value_from_object(self))\n else:\n ...
[ "0.85856134", "0.7814518", "0.77898884", "0.7751367", "0.7751367", "0.7712228", "0.76981676", "0.76700574", "0.7651133", "0.7597206", "0.75800353", "0.7568254", "0.7538184", "0.75228703", "0.7515832", "0.7498764", "0.74850684", "0.74850684", "0.7467648", "0.74488163", "0.7442...
0.0
-1
For `print` and `pprint`
def __repr__(self): return self.to_str()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pprint(*args, **kwargs):\n if PRINTING:\n print(*args, **kwargs)", "def print_out():\n pass", "def custom_print(*objects):\n print(*objects, sep=OFS, end=ORS)", "def _print(self, *args):\n return _ida_hexrays.vd_printer_t__print(self, *args)", "def _printable(self):\n ...
[ "0.75577617", "0.73375154", "0.6986672", "0.698475", "0.6944995", "0.692333", "0.6899106", "0.6898902", "0.68146646", "0.6806209", "0.6753795", "0.67497987", "0.6744008", "0.6700308", "0.6691256", "0.6674591", "0.6658083", "0.66091245", "0.6606931", "0.6601862", "0.6563738", ...
0.0
-1
Returns true if both objects are equal
def __eq__(self, other): if not isinstance(other, UserResponse): 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.80891633", "0.80891633", "0.8055254", "0.7983334", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", ...
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.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
assumes f takes sequence as input, easy w/ Python's scope
def easy_parallize(f, sequence): pool = Pool(processes=NPROCESSORS) # depends on available cores result = pool.map(f, sequence) # for i in sequence: result[i] = f(i) cleaned = [x for x in result if not x is []] # getting results pool.close() # not optimal! but easy pool.join() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f():", "def f():", "def sequence(f, lst: list) -> list:\n ret = []\n for ele in lst:\n ret.append(f(ele))\n return ret", "def get_sequence( f ):\r\n sequence = ''\r\n line = f.readline().rstrip()\r\n while line:\r\n sequence += line\r\n line = f.readline().rstrip()\...
[ "0.6531272", "0.6531272", "0.6460919", "0.64007246", "0.618079", "0.59974897", "0.5868541", "0.58064926", "0.5797492", "0.5681808", "0.56682587", "0.5647741", "0.5644118", "0.56351775", "0.56238884", "0.5606827", "0.55511856", "0.5546385", "0.5541165", "0.553414", "0.55209965...
0.61476225
5
Convolve two Ndimensional arrays using FFT. Convolve `in1` and `in2` using the fast Fourier transform method, with the output size determined by the `mode` argument. This is generally much faster than `convolve` for large arrays (n > ~500), but can be slower when only a few output values are needed, and can only output...
def weightedfftconvolve(in1, in2, mode="full", weighting="none", displayplots=False): in1 = np.asarray(in1) in2 = np.asarray(in2) if np.isscalar(in1) and np.isscalar(in2): # scalar inputs return in1 * in2 elif not in1.ndim == in2.ndim: raise ValueError("in1 and in2 should have the same...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fftconvolve(in1, in2, mode='same'):\n s1 = array(in1.shape)\n s2 = array(in2.shape)\n complex_result = (np.issubdtype(in1.dtype, np.complex) or\n np.issubdtype(in2.dtype, np.complex))\n size = s1 + s2 - 1\n\n # Always use 2**n-sized FFT\n fsize = (2 ** np.ceil(np.log2(siz...
[ "0.844202", "0.8239668", "0.81644773", "0.6562182", "0.62120837", "0.6204793", "0.6146222", "0.61416566", "0.61243623", "0.60137916", "0.59473693", "0.58210254", "0.58182496", "0.57734376", "0.5720391", "0.5714951", "0.56834006", "0.56769866", "0.5666326", "0.56603193", "0.56...
0.80836827
3
Calculate product for generalized crosscorrelation
def gccproduct(fft1, fft2, weighting, threshfrac=0.1, displayplots=False): product = fft1 * fft2 if weighting == "none": return product # calculate the weighting function if weighting == "Liang": denom = np.square( np.sqrt(np.absolute(fft1 * np.conjugate(fft1))) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def crosscorr(x, y, **kwargs):\r\n # just make the same computation as the crosscovariance,\r\n # but without subtracting the mean\r\n kwargs['debias'] = False\r\n rxy = crosscov(x, y, **kwargs)\r\n return rxy", "def calculate_correlation(data):\n pass", "def cross_correlation(f, g):\n\n o...
[ "0.6818343", "0.6651901", "0.64498544", "0.6438496", "0.6382943", "0.6359662", "0.6330092", "0.6263824", "0.6254642", "0.6252115", "0.6215736", "0.6168903", "0.61373883", "0.61207837", "0.6116173", "0.6071993", "0.6052292", "0.6017747", "0.5999994", "0.59718657", "0.5962834",...
0.0
-1
Convert a pygame surface into string
def surface_to_string( surface ): return pygame.image.tostring( surface, 'RGB' )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pygame_to_cvimage( surface ):\n cv_image = cv.CreateImageHeader( surface.get_size(), cv.IPL_DEPTH_8U, 3 )\n image_string = surface_to_string( surface )\n cv.SetData( cv_image, image_string )\n return cv_image", "def grabRawFrame(self):\r\n \r\n self.surface = self.capture.get_image(...
[ "0.6516572", "0.6308944", "0.59656525", "0.5701781", "0.552377", "0.5499506", "0.54991174", "0.54027945", "0.53784376", "0.5358556", "0.53564054", "0.5315486", "0.5277987", "0.5269198", "0.526664", "0.5256117", "0.52520627", "0.52384955", "0.52231586", "0.5221528", "0.5211215...
0.9001708
0
Convert a pygame surface into a cv image
def pygame_to_cvimage( surface ): cv_image = cv.CreateImageHeader( surface.get_size(), cv.IPL_DEPTH_8U, 3 ) image_string = surface_to_string( surface ) cv.SetData( cv_image, image_string ) return cv_image
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cvimage_to_pygame( image ):\n #image_rgb = cv.CreateMat(image.height, image.width, cv.CV_8UC3)\n #cv.CvtColor(image, image_rgb, cv.CV_BGR2RGB)\n return pygame.image.frombuffer( image.tostring(), cv.GetSize( image ), \"P\" )", "def grabRawFrame(self):\r\n \r\n self.surface = self.captur...
[ "0.7807069", "0.64404505", "0.64314246", "0.6241736", "0.6146377", "0.6104478", "0.5927644", "0.5911911", "0.5818782", "0.58139366", "0.57531345", "0.5712382", "0.56956905", "0.5679619", "0.5668957", "0.5600549", "0.55530584", "0.55383086", "0.5536562", "0.5504997", "0.550327...
0.87929255
0
Convert cvimage into a pygame image
def cvimage_to_pygame( image ): #image_rgb = cv.CreateMat(image.height, image.width, cv.CV_8UC3) #cv.CvtColor(image, image_rgb, cv.CV_BGR2RGB) return pygame.image.frombuffer( image.tostring(), cv.GetSize( image ), "P" )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pygame_to_cvimage( surface ):\n cv_image = cv.CreateImageHeader( surface.get_size(), cv.IPL_DEPTH_8U, 3 )\n image_string = surface_to_string( surface )\n cv.SetData( cv_image, image_string )\n return cv_image", "def input_image():\r\n im = cv2.imread('im7.png')\r\n return im", "def conver...
[ "0.8005469", "0.6535097", "0.64916354", "0.6398854", "0.63530976", "0.62878424", "0.6284432", "0.6251695", "0.6217127", "0.61710984", "0.6155203", "0.6151461", "0.61286163", "0.6122457", "0.610725", "0.6069343", "0.6057519", "0.6040793", "0.6013767", "0.6012021", "0.59809417"...
0.87341195
0
Converts a cvimage into grayscale
def cvimage_grayscale( cv_image ): grayscale = cv.CreateImage( cv.GetSize( cv_image ), 8, 1 ) cv.CvtColor( cv_image, grayscale, cv.CV_RGB2GRAY ) return grayscale
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def grayscale_image(input_image):\n return cv2.cvtColor(input_image, cv2.COLOR_BGR2GRAY)", "def convert_to_gray(image):\n return cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)", "def grayscale(img):\n return cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)", "def grayscale(img):\n return cv2.cvtColor(img, cv2.COLO...
[ "0.8324178", "0.82224435", "0.8202237", "0.8202237", "0.8202237", "0.8202237", "0.81656337", "0.79627913", "0.79627913", "0.79627913", "0.79627913", "0.79627913", "0.79627913", "0.79627913", "0.79627913", "0.79627913", "0.79627913", "0.7926543", "0.79139477", "0.7773947", "0....
0.86633444
0
Returns the project description object (class Project). Do _not_ use awlSources and symTabs from this project!
def getProject(self): return self.__project
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def project(self) -> 'product.Descriptor':\n return self._generation.lineage.artifact.descriptor", "def get_project_info(self):\n return self.project_info", "def getProject(self):\r\n return self.project", "def get_project(self):\n raise NotImplementedError(\"get_project is not im...
[ "0.719733", "0.6403217", "0.6395716", "0.6265958", "0.62630415", "0.6236926", "0.6079123", "0.6079123", "0.6079123", "0.6079123", "0.6079123", "0.6076277", "0.6027301", "0.60126895", "0.59901863", "0.5990103", "0.5958554", "0.5951961", "0.5914041", "0.5862856", "0.58225965", ...
0.6303794
3
Return the last gfxinfo dump from the frame collector's raw output.
def gfxinfo_get_last_dump(filepath): record = '' with open(filepath, 'r') as fh: fh_iter = _file_reverse_iter(fh) try: while True: buf = next(fh_iter) ix = buf.find('** Graphics') if ix >= 0: return buf[ix:] + record...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def frame(self):\n try:\n AppHelper.runConsoleEventLoop(installInterrupt=True)\n return str(self._delegate.frame.representations()[0].TIFFRepresentation().bytes())\n except:\n return None", "def grabRawFrame(self):\r\n \r\n self.surface = self.capture....
[ "0.64934605", "0.61334354", "0.6007916", "0.5989006", "0.5923391", "0.58175516", "0.5735115", "0.5702237", "0.5687114", "0.56412464", "0.5596677", "0.55304444", "0.54142034", "0.53991956", "0.539123", "0.5387218", "0.53756607", "0.5365995", "0.5358634", "0.5358058", "0.532298...
0.70381945
0
Return the instantaneous average velocity averaged over all cars
def global_average_speed(cars): velocities = [car.velocity for car in cars] average_speed = sum(velocities)/len(cars) return average_speed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def class_average_speed(cars):\n # Sort by class name\n class_sorted = sorted(cars, key=lambda car: type(car).__name__)\n class_velocities = []\n class_names = []\n # Group the cars of same class and average their velocities, save class names\n for key, group in groupby(cars, key=lambda car: type...
[ "0.7477088", "0.66271657", "0.6465083", "0.64439666", "0.64348084", "0.64348084", "0.64348084", "0.6413489", "0.6235546", "0.6192724", "0.61520684", "0.61391675", "0.6107132", "0.60472494", "0.6043459", "0.6041461", "0.60177046", "0.6006069", "0.6000753", "0.592879", "0.59059...
0.8024266
0
Return the instantaneous average velocity for each class of cars Return class_velocity list of average velocities for class in class_names class_names list of class names of active cars
def class_average_speed(cars): # Sort by class name class_sorted = sorted(cars, key=lambda car: type(car).__name__) class_velocities = [] class_names = [] # Group the cars of same class and average their velocities, save class names for key, group in groupby(cars, key=lambda car: type(car).__nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def global_average_speed(cars):\n velocities = [car.velocity for car in cars]\n average_speed = sum(velocities)/len(cars)\n return average_speed", "def average(cls, vectors):\n return cls.sum(vectors) / len(vectors)", "def get_velocity(self):\n\n vs = []\n pairs = [(-2, -1), (-3, ...
[ "0.66806364", "0.5879501", "0.57972777", "0.5706217", "0.546517", "0.54273754", "0.5395548", "0.5379459", "0.5367989", "0.5266238", "0.5126426", "0.51186705", "0.5099308", "0.50899357", "0.5079416", "0.5076849", "0.50666314", "0.50658333", "0.50573754", "0.5054296", "0.505317...
0.84505486
0
Compute the nodal sum of values defined on elements.
def nodalSum(val,elems,work,avg): nodes = unique1d(elems) for i in nodes: wi = where(elems==i) vi = val[wi] if avg: vi = vi.sum(axis=0)/vi.shape[0] else: vi = vi.sum(axis=0) val[wi] = vi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nodalSum2(val,elems,tol):\n nodes = unique1d(elems)\n for i in nodes:\n wi = where(elems==i)\n vi = val[wi]\n ai,ni = average_close(vi,tol=tol)\n ai /= ni.reshape(ai.shape[0],-1)\n val[wi] = ai", "def sum_elements(arr):\n return sum(arr)", "def compute(self, node...
[ "0.72711855", "0.6993915", "0.69905835", "0.6909588", "0.6885086", "0.68823624", "0.6866198", "0.68248475", "0.68051624", "0.6783232", "0.6779679", "0.6768338", "0.67458636", "0.6648012", "0.6581813", "0.65722775", "0.6525247", "0.6508257", "0.6508257", "0.64953786", "0.64827...
0.80045086
0
Average values from an array according to some specification. The default is to have a direction that is nearly the same. a is a 2dim array
def average_close(a,tol=0.5): if a.ndim != 2: raise ValueError,"array should be 2-dimensional!" n = normalize(a) nrow = a.shape[0] cnt = zeros(nrow,dtype=int32) while cnt.min() == 0: w = where(cnt==0) nw = n[w] wok = where(dotpr(nw[0],nw) >= tol) wi = w[0][wok...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def make_average(self, arr):\n\n if not self.degen:\n self.get_degen()\n\n nkpt, nband = arr.shape[-2:]\n \n for ikpt in range(nkpt):\n for group in self.degen[ikpt]:\n average = copy(arr[...,ikpt,group[0][1]])\n for ispin, iband in group[...
[ "0.6862841", "0.67034835", "0.6560732", "0.65113366", "0.65109015", "0.6433508", "0.63849306", "0.6323877", "0.6264388", "0.62493974", "0.62351024", "0.61994016", "0.6168189", "0.6157191", "0.614131", "0.6120677", "0.6108742", "0.60972965", "0.6036641", "0.6024197", "0.598938...
0.53407204
100
Compute the nodal sum of values defined on elements.
def nodalSum2(val,elems,tol): nodes = unique1d(elems) for i in nodes: wi = where(elems==i) vi = val[wi] ai,ni = average_close(vi,tol=tol) ai /= ni.reshape(ai.shape[0],-1) val[wi] = ai
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nodalSum(val,elems,work,avg):\n nodes = unique1d(elems)\n for i in nodes:\n wi = where(elems==i)\n vi = val[wi]\n if avg:\n vi = vi.sum(axis=0)/vi.shape[0]\n else:\n vi = vi.sum(axis=0)\n val[wi] = vi", "def su...
[ "0.80045086", "0.6993915", "0.69905835", "0.6909588", "0.6885086", "0.68823624", "0.6866198", "0.68248475", "0.68051624", "0.6783232", "0.6779679", "0.6768338", "0.67458636", "0.6648012", "0.6581813", "0.65722775", "0.6525247", "0.6508257", "0.6508257", "0.64953786", "0.64827...
0.72711855
1
TopologyAttachmentResultDto a model defined in Swagger
def __init__(self, focal_device_id=None, link_data=None, node_data=None): # noqa: E501 # noqa: E501 self._focal_device_id = None self._link_data = None self._node_data = None self.discriminator = None if focal_device_id is not None: self.focal_device_id = focal_de...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def to_dict(self):\n result = {}\n\n for attr, _ in six.iteritems(self.swagger_types):\n value = getattr(self, attr)\n if isinstance(value, list):\n result[attr] = list(map(\n lambda x: x.to_dict() if hasattr(x, \"to_dict\") else x,\n ...
[ "0.58695847", "0.5320147", "0.5288693", "0.49763623", "0.49299508", "0.4875837", "0.47946784", "0.4760147", "0.4712816", "0.46343353", "0.45785925", "0.45749697", "0.45692018", "0.45523423", "0.45453787", "0.45299488", "0.45294917", "0.45288023", "0.45231336", "0.44991037", "...
0.0
-1
Sets the focal_device_id of this TopologyAttachmentResultDto.
def focal_device_id(self, focal_device_id): self._focal_device_id = focal_device_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def device_id(self, device_id):\n\n self._device_id = device_id", "def device_id(self, device_id):\n\n self._device_id = device_id", "def attachment_file_id(self, attachment_file_id):\n\n self._attachment_file_id = attachment_file_id", "def set_device(self, device):\n self.device ...
[ "0.5081288", "0.5081288", "0.47622368", "0.4721567", "0.46936834", "0.467642", "0.467642", "0.46551454", "0.4622062", "0.46029237", "0.4589448", "0.45663542", "0.45312893", "0.44925702", "0.4490328", "0.44683826", "0.44367197", "0.43781528", "0.432919", "0.43208218", "0.42943...
0.7755509
0
Sets the link_data of this TopologyAttachmentResultDto.
def link_data(self, link_data): self._link_data = link_data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_linked_data(\n self,\n val=None\n ):\n if val != None:\n self.linked_data = val", "def link(self, link):\n\n self.container['link'] = link", "def link(self, link):\n\n self._link = link", "def link(self, link):\n\n self._link = link", "def...
[ "0.5885388", "0.5762334", "0.5706907", "0.5706907", "0.5706907", "0.5706907", "0.5706907", "0.5706907", "0.5706907", "0.5507466", "0.5478151", "0.54773843", "0.5213641", "0.518306", "0.51407033", "0.513635", "0.5109374", "0.5109374", "0.5109374", "0.5109374", "0.5109374", "...
0.7365313
0
Sets the node_data of this TopologyAttachmentResultDto.
def node_data(self, node_data): self._node_data = node_data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def node_data(self, node_data):\n self.node_data_ = node_data\n self.label = node_data.label\n self.node_type = node_data.node_type\n self.arity = node_data.arity\n self.min_depth = node_data.min_depth\n self.child_type = node_data.child_type\n self.numpy_func = nod...
[ "0.5924504", "0.56284124", "0.5487792", "0.52650934", "0.522697", "0.52221644", "0.5181747", "0.5177556", "0.5148225", "0.5126763", "0.51123697", "0.51031524", "0.51031524", "0.51031524", "0.5067002", "0.5042375", "0.5041182", "0.50394917", "0.50161797", "0.4974361", "0.49511...
0.6978998
0
Returns the model properties as a dict
def to_dict(self): result = {} for attr, _ in six.iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def to_dict(self):\n return self.properties", "def to_dict(self):\n return self.properties", "def get_properties(self):\n return self.properties", "def asdict(self):\n return self._prop_dict", "def json(self):\n rv = {\n prop: getattr(self, prop)\n f...
[ "0.77519524", "0.77519524", "0.73402786", "0.7333481", "0.729782", "0.72793466", "0.7160909", "0.715891", "0.71517897", "0.71517897", "0.712911", "0.7128245", "0.71232194", "0.7108765", "0.7062681", "0.7043927", "0.703191", "0.70214874", "0.69671553", "0.6955192", "0.68981516...
0.0
-1
Returns the string representation of the model
def to_str(self): return pprint.pformat(self.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __str__(self):\n return super().__str__() + self.model.__str__()", "def __str__(self) -> str:\n # noinspection PyUnresolvedReferences\n opts = self._meta\n if self.name_field:\n result = str(opts.get_field(self.name_field).value_from_object(self))\n else:\n ...
[ "0.85856134", "0.7814518", "0.77898884", "0.7751367", "0.7751367", "0.7712228", "0.76981676", "0.76700574", "0.7651133", "0.7597206", "0.75800353", "0.7568254", "0.7538184", "0.75228703", "0.7515832", "0.7498764", "0.74850684", "0.74850684", "0.7467648", "0.74488163", "0.7442...
0.0
-1
For `print` and `pprint`
def __repr__(self): return self.to_str()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pprint(*args, **kwargs):\n if PRINTING:\n print(*args, **kwargs)", "def print_out():\n pass", "def custom_print(*objects):\n print(*objects, sep=OFS, end=ORS)", "def _print(self, *args):\n return _ida_hexrays.vd_printer_t__print(self, *args)", "def _printable(self):\n ...
[ "0.75577617", "0.73375154", "0.6986672", "0.698475", "0.6944995", "0.692333", "0.6899106", "0.6898902", "0.68146646", "0.6806209", "0.6753795", "0.67497987", "0.6744008", "0.6700308", "0.6691256", "0.6674591", "0.6658083", "0.66091245", "0.6606931", "0.6601862", "0.6563738", ...
0.0
-1
Returns true if both objects are equal
def __eq__(self, other): if not isinstance(other, TopologyAttachmentResultDto): 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.8456082", "0.83912885", "0.81436425", "0.81406975", "0.8131807", "0.8093013", "0.80912536", "0.80912536", "0.80912536", "0.8084505", "0.8084505", "0.8075543", "0.8075543", "0.8065009" ]
0.0
-1
Constantly updates the vision feed, and positions of our models
def run(self): counter = 0 timer = time.clock() # wait 10 seconds for arduino to connect print("Connecting to Arduino, please wait till confirmation message") time.sleep(4) # This asks nicely for goal location, etc self.initiate_world() try: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update(self):\n # GPS data\n self.model.GPS_latitude.set(self._kernel.data.lat)\n self.model.GPS_longitude.set(self._kernel.data.lon)\n \n self.model.GPS_heading.set(self._kernel.data.gps_heading)\n self.model.GPS_speed.set(self._kernel.data.speed)\n self.model....
[ "0.66407007", "0.66310996", "0.6598402", "0.64591354", "0.6454839", "0.6414505", "0.6402878", "0.6368743", "0.63626707", "0.6309331", "0.6291921", "0.62429744", "0.62298465", "0.6214056", "0.61493564", "0.6114583", "0.60687596", "0.60647845", "0.6063505", "0.6021179", "0.6021...
0.0
-1
Executes the current task
def task_execution(self): # Only execute a task if the robot isn't currently in the middle of doing one print ("Task: ", self.task) task_to_execute = None if self.task == 'task_vision': task_to_execute = self.world.task.task_vision if self.task == 'task_move_to_ball'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def execute_task(self):\n raise NotImplementedError(\"Execute Task method not implemented\")", "def task():\n\n\tprint('Example task executed.')", "def run_task(self) -> Task:", "def doTask(self, *args):\n taskId = self.task.get()\n document = self.document_uuid.get()\n visitor = ...
[ "0.79074925", "0.7888002", "0.77224165", "0.7647981", "0.7643699", "0.75759196", "0.7570181", "0.7543163", "0.7425979", "0.7361079", "0.7291994", "0.727146", "0.727146", "0.723882", "0.7214786", "0.7204484", "0.71976745", "0.71976745", "0.715662", "0.71512955", "0.7146657", ...
0.6634648
73
This test is used as a placeholder so you can immediately test your CI integration
def test_simple_empty_test(): assert 1 == 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_basic_execution(self):", "def unitary_test():", "def test(self):\n pass", "def test_dummy():", "def _test(self):\n pass", "def _test(self):\n pass", "def _test(self):\n pass", "def test_something():", "def tests():", "def _test(self):", "def _test(self):", ...
[ "0.8031311", "0.79486996", "0.77337396", "0.7643058", "0.7591262", "0.7591262", "0.7591262", "0.7585879", "0.7574545", "0.7565466", "0.7565466", "0.7565466", "0.7565466", "0.7565466", "0.7528431", "0.7528084", "0.74472606", "0.74209535", "0.7412334", "0.7403647", "0.7380341",...
0.0
-1
This test is used as a placeholder so you can immediately test your CI integration
def test_simple_empty_test_failure(): assert 0 == 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_basic_execution(self):", "def unitary_test():", "def test(self):\n pass", "def test_dummy():", "def _test(self):\n pass", "def _test(self):\n pass", "def _test(self):\n pass", "def test_something():", "def tests():", "def _test(self):", "def _test(self):", ...
[ "0.8030271", "0.7948209", "0.77344584", "0.76420516", "0.7592548", "0.7592548", "0.7592548", "0.75847507", "0.757486", "0.7565704", "0.7565704", "0.7565704", "0.7565704", "0.7565704", "0.7528634", "0.7527539", "0.7446939", "0.7421016", "0.74121165", "0.74041873", "0.738093", ...
0.0
-1
Downloads data from the GDC. Combine the smaller files (~KB range) into a grouped download. The API now supports combining UUID's into one uncompressed tarfile using the ?tarfile url parameter. Combining many smaller files into one download decreases the number of open connections we have to make
def download(parser, args): successful_count = 0 unsuccessful_count = 0 big_errors = [] small_errors = [] total_download_count = 0 validate_args(parser, args) # sets do not allow duplicates in a list ids = set(args.file_ids) for i in args.manifest: if not i.get('id'): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def download(size):\n files = glob(f'{size}_chunk/{FILE_BASE}_rdn_*[!.hdr]') \\\n + glob(f'{size}_chunk/{FILE_BASE}_loc_*[!.hdr]') \\\n + glob(f'{size}_chunk/{FILE_BASE}_obs_*[!.hdr]')\n\n if len(files) != 3:\n Logger.info('Downloading data')\n\n req = requests.get(URLS[size])...
[ "0.63961786", "0.6266496", "0.6059152", "0.6036518", "0.60253733", "0.59880096", "0.5981087", "0.59605277", "0.5922241", "0.58972925", "0.58775", "0.5858991", "0.58549273", "0.58432364", "0.5839691", "0.5825071", "0.5797404", "0.5794432", "0.5772822", "0.57607055", "0.5758049...
0.7188963
0
Configure a parser for download.
def config(parser): func = partial(download, parser) parser.set_defaults(func=func) ############################################################# # General options ############################################################# parser.add_argument('-d', '--dir', default='.', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setup_parser(self, parser):", "def parser(self):\n if 'Url' in self.options:\n self.options['u'] = self.options['Url']", "def setupParserOptions(self):\n\t\treturn", "def setup_parser(self, parser, args):\r\n\r\n pass", "def configure_parser(parser):\n qisys.parsers.default_pars...
[ "0.7292391", "0.6815061", "0.65970033", "0.6561812", "0.643327", "0.6404927", "0.63906187", "0.632339", "0.6235426", "0.62298745", "0.6162415", "0.60870486", "0.60504884", "0.6003922", "0.6002101", "0.5970231", "0.59652793", "0.59652793", "0.59616834", "0.59406286", "0.592430...
0.635668
7
Generate multiple overlapping histograms.
def layered_histogram(data=None, columns=None, group_by=None, height=600, width=800): data, key, value = multivariate_preprocess(data, columns, group_by) return ( alt.Chart(data, height=height, width=width) .mark_area( opacity=1 / col_cardinality(data, group_by, default=len(columns))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_gridpoint_histograms(self):\n\n ind_array = np.indices(self.results_array.shape)\n\n def results_array_histograms(x, y, z):\n if isinstance(self.results_array[x][y][z], tuple):\n num_zeros = self.tup_max_length - len(self.results_array[x][y][z])\n if n...
[ "0.67202365", "0.66345847", "0.6622847", "0.6596943", "0.64966625", "0.6485993", "0.63161314", "0.6302619", "0.6260044", "0.60968524", "0.6090303", "0.60738796", "0.606484", "0.6060252", "0.5986362", "0.59786886", "0.597491", "0.5953919", "0.5909879", "0.5893993", "0.5891706"...
0.0
-1
Write talos format shift list
def writeShifts(self, filePath, measurementList, **kw): minShiftQuality = self.IOkeywords.get('minShiftQuality', 0.0) residues = self.residues if not residues: residues = list(set(AssignmentUtil.getResonanceResidue(x.reaonance) for x in measurementList.measurements)) if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def writeShiftFile(self, filename=\"shifts.txt\"):\n lines = ['# frame: ', self['frame'], '\\n',\n '# refimage: ', self['refimage'], '\\n',\n '# form: ', self['form'], '\\n',\n '# units: ', self['units'], '\\n']\n\n for o in self['order']:\n ...
[ "0.6795931", "0.60912377", "0.6081516", "0.60530007", "0.60424566", "0.6007779", "0.5716504", "0.57052314", "0.5652492", "0.56214327", "0.5569322", "0.55679685", "0.552874", "0.5510033", "0.5479307", "0.53799933", "0.5361215", "0.53528327", "0.5339856", "0.5335051", "0.532632...
0.5765142
6
Write Talos type shifts file to stream
def writeShiftFile(stream, residues, shiftList, minShiftQuality=0.0, atomNames = ('H','N','C','CA','CB','HA','HA2','HA3')): formatObj = TalosShiftFormat() formatObj.addSequence(residues) formatObj.startTable(colNames=shiftColumns, formats=shiftFormats) for ii,res in enumerate(residues)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _write_transact_types(self, file):\n for tp in self._transact_types:\n tp.write(file)\n file.write('\\n')", "def write_output_shifts_to_file(self, shift_output):\n pass", "def writeShiftFile(self, filename=\"shifts.txt\"):\n lines = ['# frame: ', self['frame'], '\...
[ "0.6212016", "0.6207129", "0.6169594", "0.5980529", "0.5750653", "0.5606114", "0.5587278", "0.5561204", "0.5533316", "0.54138976", "0.54129624", "0.54086447", "0.54077584", "0.53616214", "0.5349532", "0.5341281", "0.5340268", "0.532986", "0.5307357", "0.5273752", "0.5249151",...
0.59659845
4
The action of AbusePenalty.
def action(self) -> Optional[str]: return pulumi.get(self, "action")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _reward(self, action: Action) -> float:\n raise NotImplementedError", "def _cost(self, action):\n raise NotImplementedError", "def _reward(self, action):\n raise NotImplementedError", "def get_penalty(state, action, winrate_predictor):\n if violate_rule(state, action):\n re...
[ "0.6871363", "0.6848592", "0.67860836", "0.6768516", "0.67272955", "0.6563645", "0.65615135", "0.6495238", "0.64951533", "0.6438585", "0.63875884", "0.6350976", "0.6331792", "0.6318981", "0.6310051", "0.62959754", "0.6261673", "0.62330043", "0.6231655", "0.6216899", "0.619988...
0.0
-1
The datetime of expiration of the AbusePenalty.
def expiration(self) -> Optional[str]: return pulumi.get(self, "expiration")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def expiration(self):\n return datetime(int(self.exp_year), int(self.exp_month),\n calendar.monthrange(int(self.exp_year), int(self.exp_month))[1],\n 23, 59, 59)", "def expireDate(self)->datetime:\n return self.timeEnd", "def expiration_time(self) -> str:\n return pul...
[ "0.7749355", "0.77096", "0.7592129", "0.7452418", "0.7425683", "0.7404743", "0.734676", "0.7279553", "0.7258674", "0.7219022", "0.699119", "0.6985544", "0.693202", "0.6881211", "0.6795431", "0.6795431", "0.6787569", "0.6787569", "0.6787569", "0.67861104", "0.6737826", "0.67...
0.68471366
14
The percentage of rate limit.
def rate_limit_percentage(self) -> Optional[float]: return pulumi.get(self, "rate_limit_percentage")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pct(self):\n\t\treturn self.bottle.pct()", "def get_percent(self):\n if not (self.votes and self.score):\n return 0\n return 100 * (self.get_rating() / self.field.range)", "def get_real_percent(self):\n if not (self.votes and self.score):\n return 0\n retur...
[ "0.77211916", "0.7705641", "0.7513694", "0.7500773", "0.7500773", "0.74677795", "0.7410109", "0.7388711", "0.73542374", "0.73428303", "0.7216033", "0.72125334", "0.7185409", "0.7185409", "0.7178804", "0.71685594", "0.7082458", "0.70084995", "0.69748604", "0.69652313", "0.6937...
0.8822983
0
Properties of Cognitive Services account.
def __init__(__self__, *, abuse_penalty: 'outputs.AbusePenaltyResponse', call_rate_limit: 'outputs.CallRateLimitResponse', capabilities: Sequence['outputs.SkuCapabilityResponse'], commitment_plan_associations: Sequence['outputs.CommitmentPlanAssociatio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_account_details(self):\n pass", "def get_account_information(self):\n self.account_information = retry(lambda: self.client\n .futures_account_v2())\n return self.account_information", "def account_info(self):\n url, params, headers = self.reque...
[ "0.6405348", "0.6377929", "0.6376867", "0.63006413", "0.62619436", "0.61454433", "0.6091805", "0.60866964", "0.60866964", "0.59746104", "0.59746104", "0.5974272", "0.59457284", "0.59457284", "0.58897805", "0.58647114", "0.58647114", "0.58457184", "0.5808249", "0.5808249", "0....
0.0
-1
The call rate limit Cognitive Services account.
def call_rate_limit(self) -> 'outputs.CallRateLimitResponse': return pulumi.get(self, "call_rate_limit")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_rate_limit(self):\n resp = self._session.get(self.API_ROOT + \"/rate_limit\")\n log.info(resp.text)", "def ctx(self):\n return RateLimitContextBase()", "def get_rate_limit(client):\n query = '''query {\n rateLimit {\n limit\n remaining\n r...
[ "0.6358268", "0.6162561", "0.60568434", "0.5990054", "0.5918794", "0.58661646", "0.573936", "0.57365024", "0.5668265", "0.5640884", "0.56161267", "0.5614316", "0.5562859", "0.5551392", "0.5523943", "0.5515391", "0.54717577", "0.54716563", "0.5464131", "0.5456545", "0.54448587...
0.73106307
2
Gets the capabilities of the cognitive services account. Each item indicates the capability of a specific feature. The values are readonly and for reference only.
def capabilities(self) -> Sequence['outputs.SkuCapabilityResponse']: return pulumi.get(self, "capabilities")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def capabilities(self):\n\n class Capabilities(ct.Structure):\n _fields_ = [(\"Size\", ct.c_ulong),\n (\"AcqModes\", ct.c_ulong),\n (\"ReadModes\", ct.c_ulong),\n (\"FTReadModes\", ct.c_ulong),\n (\"Trigge...
[ "0.70851606", "0.7014582", "0.6949531", "0.68428165", "0.6804486", "0.6793715", "0.67854387", "0.6769006", "0.66325563", "0.66314065", "0.6474451", "0.64578134", "0.6382425", "0.6382425", "0.6375141", "0.63444567", "0.6304493", "0.6292689", "0.6281157", "0.62223816", "0.61760...
0.7209578
0
The commitment plan associations of Cognitive Services account.
def commitment_plan_associations(self) -> Sequence['outputs.CommitmentPlanAssociationResponse']: return pulumi.get(self, "commitment_plan_associations")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plans(self):\n title = self.context.Title()\n return self.portal_catalog(portal_type='Plan', Subject=title)", "def crm_associations(self):\n from hubspot3.crm_associations import CRMAssociationsClient\n\n return CRMAssociationsClient(**self.auth, **self.options)", "def plans(se...
[ "0.55934", "0.5511926", "0.53579974", "0.53434294", "0.51984334", "0.51952285", "0.5044473", "0.4975472", "0.49590665", "0.49435046", "0.4921552", "0.49170002", "0.49170002", "0.49170002", "0.4875417", "0.4866419", "0.48434013", "0.48164648", "0.48160282", "0.47532672", "0.47...
0.7754084
0
Gets the date of cognitive services account creation.
def date_created(self) -> str: return pulumi.get(self, "date_created")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_account_created_date(self):\n return self.account_created_date", "def get_account_created_date_formatted(self):\n return self.account_created_date_formatted", "def creation_date(self) -> str:\n return pulumi.get(self, \"creation_date\")", "def creation_date(self) -> str:\n ...
[ "0.81209767", "0.743392", "0.7200769", "0.7200769", "0.7200769", "0.6544591", "0.64716315", "0.6429377", "0.6429377", "0.6415792", "0.64151484", "0.64151484", "0.64151484", "0.6406308", "0.6400229", "0.6400229", "0.6400229", "0.63968235", "0.63506657", "0.63506657", "0.635066...
0.66924393
5
The deletion date, only available for deleted account.
def deletion_date(self) -> str: return pulumi.get(self, "deletion_date")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deleted_time(self) -> str:\n return pulumi.get(self, \"deleted_time\")", "def decommission_date(self):\n return self._decommission_date", "def delete_time(self) -> str:\n return pulumi.get(self, \"delete_time\")", "def delete_time(self) -> str:\n return pulumi.get(self, \"dele...
[ "0.75667304", "0.7024116", "0.6854214", "0.6854214", "0.6547442", "0.6326043", "0.6143451", "0.6114624", "0.6068728", "0.6068728", "0.5996998", "0.5946708", "0.59344095", "0.58662504", "0.586075", "0.58573246", "0.58573246", "0.58573246", "0.5817896", "0.5817896", "0.5806128"...
0.90385526
0
Endpoint of the created account.
def endpoint(self) -> str: return pulumi.get(self, "endpoint")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_account():\n\n return render_template('account.html')", "def create(self, data):\n url = self.base_url + '/v2/account/create/'\n return self._call_vendasta(url, data)", "def account(self):\n return self.request('/account')", "def create_account():\n if not request.json o...
[ "0.6855994", "0.67288375", "0.66675204", "0.6490329", "0.63627285", "0.6341701", "0.63009936", "0.62786853", "0.62441134", "0.62145823", "0.61904913", "0.6151587", "0.61039126", "0.6094423", "0.60686916", "0.59677374", "0.5942011", "0.58928406", "0.5891728", "0.587841", "0.58...
0.0
-1
The internal identifier (deprecated, do not use this property).
def internal_id(self) -> str: return pulumi.get(self, "internal_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def identifier(self):\n raise NotImplementedError()", "def identifier(self):", "def identifier(self):\n raise NotImplementedError", "def get_identifier(self):", "def identifier(self):\n\n return self.name", "def get_id(self): # real signature unknown; restored from __doc__\n r...
[ "0.7325504", "0.7302099", "0.72971785", "0.72492963", "0.69846743", "0.69314456", "0.6871045", "0.68422854", "0.6841455", "0.6832496", "0.6791232", "0.67827386", "0.67719615", "0.67719615", "0.67719615", "0.67719615", "0.67719615", "0.67719615", "0.67719615", "0.67719615", "0...
0.6634038
26
If the resource is migrated from an existing key.
def is_migrated(self) -> bool: return pulumi.get(self, "is_migrated")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _check_key(self, key):\n raise NotImplementedError", "def has_key(cls, id):\n return super().has_key(id)", "def _handle_existing_agent_key_path(restored_key_path,\n db_key_path):\n with open(db_key_path) as key_file:\n content_1 = k...
[ "0.5846189", "0.57361406", "0.5511066", "0.5492148", "0.54567593", "0.5429822", "0.5426657", "0.5387944", "0.5358173", "0.5352682", "0.5329103", "0.531819", "0.531819", "0.531819", "0.5314942", "0.53107923", "0.52924675", "0.5280505", "0.5271026", "0.52698326", "0.5253114", ...
0.0
-1
The private endpoint connection associated with the Cognitive Services account.
def private_endpoint_connections(self) -> Sequence['outputs.PrivateEndpointConnectionResponse']: return pulumi.get(self, "private_endpoint_connections")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def private_link_endpoint(self) -> pulumi.Output[Optional[str]]:\n return pulumi.get(self, \"private_link_endpoint\")", "def private_endpoint(self) -> Optional['outputs.PrivateEndpointResponse']:\n return pulumi.get(self, \"private_endpoint\")", "def private_endpoint(self) -> Optional['outputs.Pr...
[ "0.6600078", "0.6578945", "0.6578945", "0.65711725", "0.64803904", "0.63739693", "0.6331475", "0.6331475", "0.6241816", "0.62138796", "0.6195896", "0.6108234", "0.6033329", "0.6002076", "0.59658813", "0.5883271", "0.58768934", "0.5868595", "0.5758015", "0.5714617", "0.5701596...
0.67986786
0
Gets the status of the cognitive services account at the time the operation was called.
def provisioning_state(self) -> str: return pulumi.get(self, "provisioning_state")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getServiceStatus(self):\n return self.jsonRequest(\"/api/v1/getServiceStatus\", {\"apiKey\": self._apiKey})", "def get_service_status(self):\n return self.service.status()", "def status(self):\n return self._call_txtrader_api('status', {})", "def get_status(self):\n r = reques...
[ "0.6682876", "0.6561135", "0.643206", "0.62913126", "0.6189103", "0.6181343", "0.6181343", "0.6181343", "0.61500067", "0.6144642", "0.61266005", "0.6113645", "0.61119735", "0.6071903", "0.6066308", "0.6056336", "0.60533357", "0.60441244", "0.6013045", "0.59870297", "0.5981796...
0.0
-1
The scheduled purge date, only available for deleted account.
def scheduled_purge_date(self) -> str: return pulumi.get(self, "scheduled_purge_date")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def planned_purge_date(self):\n return self._planned_purge_date", "def planned_purge_date(self):\n return self._planned_purge_date", "def deletion_date(self) -> str:\n return pulumi.get(self, \"deletion_date\")", "def scheduled_deletion_time(self) -> Optional[datetime.datetime]:\n ...
[ "0.77084357", "0.77084357", "0.6675982", "0.59855175", "0.597911", "0.5939071", "0.5925011", "0.5922038", "0.5922038", "0.57880515", "0.578128", "0.5759633", "0.56891406", "0.5666457", "0.5608823", "0.5578217", "0.55437165", "0.55437165", "0.55357945", "0.53633654", "0.532083...
0.89512056
0
Sku change info of account.
def sku_change_info(self) -> 'outputs.SkuChangeInfoResponse': return pulumi.get(self, "sku_change_info")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sku(self, sku):\n\n self._sku = sku", "def __init__(__self__, *,\n name: pulumi.Input['SkuName']):\n pulumi.set(__self__, \"name\", name)", "def change_account(self, account):\r\n check_account = Account(account, steem_instance=self.steem)\r\n self.account = chec...
[ "0.6504229", "0.62209433", "0.595125", "0.5903116", "0.57759696", "0.57391024", "0.56339806", "0.5585082", "0.5583133", "0.55682266", "0.5565345", "0.5531113", "0.5486291", "0.54483426", "0.54368883", "0.54215336", "0.53766495", "0.53355706", "0.53355706", "0.53174454", "0.52...
0.64245176
1
The api properties for special APIs.
def api_properties(self) -> Optional['outputs.ApiPropertiesResponse']: return pulumi.get(self, "api_properties")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _setup_api_properties(self):\n self.implicit_api_logical_id = GeneratedLogicalId.implicit_http_api()\n self.implicit_api_condition = \"ServerlessHttpApiCondition\"\n self.api_event_type = \"HttpApi\"\n self.api_type = SamResourceType.HttpApi.value\n self.api_id_property = \"A...
[ "0.7447788", "0.70224255", "0.65719783", "0.65687895", "0.64152324", "0.64069265", "0.6361345", "0.63350254", "0.6326089", "0.6255719", "0.6232385", "0.6232385", "0.6232385", "0.6178087", "0.61595166", "0.61541235", "0.61463284", "0.6104891", "0.5966381", "0.5966381", "0.5966...
0.7195016
1
Optional subdomain name used for tokenbased authentication.
def custom_sub_domain_name(self) -> Optional[str]: return pulumi.get(self, "custom_sub_domain_name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def subdomain(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"subdomain\")", "def customsubdomain(self) -> Optional[str]:\n return pulumi.get(self, \"customsubdomain\")", "def get_subdomain(self):\n return self.key().name().split(':', 1)[0]", "def getSubdomain(self):\n\...
[ "0.7425457", "0.7345932", "0.6880412", "0.6686125", "0.6681375", "0.6673759", "0.6534815", "0.6499275", "0.6433517", "0.6433517", "0.63344604", "0.63344604", "0.63344604", "0.6296723", "0.6283417", "0.6222601", "0.60726506", "0.6024145", "0.5993288", "0.59683084", "0.5967932"...
0.73226833
2
The flag to enable dynamic throttling.
def dynamic_throttling_enabled(self) -> Optional[bool]: return pulumi.get(self, "dynamic_throttling_enabled")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_change_default_throttling_settings_http_with_overwrite_throttled_rate_above_50():", "def test_change_default_throttling_settings_http_with_overwrite_throttled():", "def test_change_default_throttling_settings_http_with_overwrite_throttled_burst_above_50():", "def should_be_throttled(self, resource):...
[ "0.6286432", "0.6163197", "0.6152936", "0.6117926", "0.605267", "0.5982151", "0.5967855", "0.5847482", "0.5758198", "0.5755627", "0.5700462", "0.569529", "0.5694182", "0.5687345", "0.5619024", "0.55816823", "0.5572103", "0.55682355", "0.5496888", "0.5494714", "0.54758257", ...
0.8219248
0
The encryption properties for this resource.
def encryption(self) -> Optional['outputs.EncryptionResponse']: return pulumi.get(self, "encryption")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def encryption_configuration(self) -> 'outputs.EncryptionConfigurationResponse':\n return pulumi.get(self, \"encryption_configuration\")", "def encryption_configuration(self) -> pulumi.Output[Optional['outputs.ServiceEncryptionConfiguration']]:\n return pulumi.get(self, \"encryption_configuration\"...
[ "0.7156628", "0.63837343", "0.63043696", "0.6300584", "0.6284198", "0.6284198", "0.62827027", "0.62415385", "0.62366414", "0.6229235", "0.6168511", "0.61466575", "0.61305505", "0.60635096", "0.6042826", "0.6036258", "0.60296124", "0.60296124", "0.6020987", "0.6020987", "0.595...
0.61254144
14
The multiregion settings of Cognitive Services account.
def locations(self) -> Optional['outputs.MultiRegionSettingsResponse']: return pulumi.get(self, "locations")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_config_data(self, cr, uid):\n\n model_conf = self.pool.get('customer.support.settings')\n args = [('selected', '=', True)] \n ids = model_conf.search(cr, uid, args)\n config = model_conf.browse(cr, uid, ids[0])\n\n return {\n 'tor_api_key': config.tor_api_k...
[ "0.5368657", "0.5251626", "0.52190006", "0.5207359", "0.51565146", "0.506289", "0.5046647", "0.5023211", "0.50175273", "0.50058997", "0.49854437", "0.49819723", "0.49522606", "0.4945083", "0.49383545", "0.49369088", "0.4892148", "0.48852465", "0.48737714", "0.48731983", "0.48...
0.0
-1
A collection of rules governing the accessibility from specific network locations.
def network_acls(self) -> Optional['outputs.NetworkRuleSetResponse']: return pulumi.get(self, "network_acls")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rules(cls):\n rules_Cityscapes = {\"common\": {\"type\": dict},\n \"train\": {\"type\": dict},\n \"val\": {\"type\": dict},\n \"test\": {\"type\": dict}\n }\n return rules_Cityscapes", "d...
[ "0.61772984", "0.59802604", "0.59664553", "0.5930546", "0.57981753", "0.5775583", "0.5700875", "0.5656323", "0.5620582", "0.55790365", "0.5546186", "0.5539765", "0.5498062", "0.5462518", "0.5459319", "0.54560065", "0.54430974", "0.54329044", "0.54300344", "0.5373311", "0.5372...
0.5903688
4
Whether or not public endpoint access is allowed for this account.
def public_network_access(self) -> Optional[str]: return pulumi.get(self, "public_network_access")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _can_access_endpoint(self, endpoint):\n if endpoint.visa_required:\n return self._has_valid_visa()\n else:\n return True", "def public_network_access_enabled(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"public_network_access_enabled\")", "def...
[ "0.73294246", "0.72822887", "0.72822887", "0.72822887", "0.72822887", "0.72822887", "0.72822887", "0.7266428", "0.715523", "0.71498704", "0.71498704", "0.71206796", "0.7104442", "0.7101305", "0.7101305", "0.7050962", "0.6995298", "0.6849196", "0.68329096", "0.68329096", "0.68...
0.6272134
61
The storage accounts for this resource.
def user_owned_storage(self) -> Optional[Sequence['outputs.UserOwnedStorageResponse']]: return pulumi.get(self, "user_owned_storage")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def storage_account(self) -> str:\n return pulumi.get(self, \"storage_account\")", "def accounts(self):\r\n return resources.Accounts(self)", "def get_storage_profiles(self):\n return self.config[self.ROOT].keys()", "def list_storage_accounts(resource_group_name=None):\n scf = storage...
[ "0.7126687", "0.69447905", "0.6901779", "0.6839532", "0.6794847", "0.666588", "0.65740985", "0.65705264", "0.65489686", "0.654276", "0.65336716", "0.65101916", "0.64790714", "0.6478629", "0.6457559", "0.6273469", "0.62582", "0.6227952", "0.62022835", "0.6186204", "0.61644006"...
0.5423273
80
The api properties for special APIs.
def __init__(__self__, *, aad_client_id: Optional[str] = None, aad_tenant_id: Optional[str] = None, event_hub_connection_string: Optional[str] = None, qna_azure_search_endpoint_id: Optional[str] = None, qna_azure_search_endpoint_key: O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _setup_api_properties(self):\n self.implicit_api_logical_id = GeneratedLogicalId.implicit_http_api()\n self.implicit_api_condition = \"ServerlessHttpApiCondition\"\n self.api_event_type = \"HttpApi\"\n self.api_type = SamResourceType.HttpApi.value\n self.api_id_property = \"A...
[ "0.7447788", "0.7195016", "0.70224255", "0.65719783", "0.65687895", "0.64152324", "0.64069265", "0.6361345", "0.63350254", "0.6326089", "0.6255719", "0.6232385", "0.6232385", "0.6232385", "0.6178087", "0.61595166", "0.61541235", "0.61463284", "0.6104891", "0.5966381", "0.5966...
0.0
-1
(Metrics Advisor Only) The Azure AD Client Id (Application Id).
def aad_client_id(self) -> Optional[str]: return pulumi.get(self, "aad_client_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def client_id(self) -> str:\n return pulumi.get(self, \"client_id\")", "def client_id(self) -> str:\n return pulumi.get(self, \"client_id\")", "def client_id(self) -> str:\n return pulumi.get(self, \"client_id\")", "def client_id(self):\n return self.__client_id", "def client_id...
[ "0.72582203", "0.72582203", "0.72582203", "0.7254328", "0.7227845", "0.71365494", "0.71189344", "0.6955662", "0.6955662", "0.686798", "0.686798", "0.686798", "0.686798", "0.686798", "0.686798", "0.686798", "0.686798", "0.686798", "0.686798", "0.686798", "0.6854775", "0.6781...
0.8002165
0
(Metrics Advisor Only) The Azure AD Tenant Id.
def aad_tenant_id(self) -> Optional[str]: return pulumi.get(self, "aad_tenant_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tenant_id(self) -> str:\n return pulumi.get(self, \"tenant_id\")", "def tenant_id(self) -> str:\n return pulumi.get(self, \"tenant_id\")", "def tenant_id(self) -> str:\n return pulumi.get(self, \"tenant_id\")", "def tenant_id(self) -> str:\n return pulumi.get(self, \"tenant_id...
[ "0.8144691", "0.8144691", "0.8144691", "0.8144691", "0.7906053", "0.78618026", "0.78618026", "0.7701617", "0.7701617", "0.76587015", "0.76587015", "0.76587015", "0.76587015", "0.76587015", "0.76587015", "0.76587015", "0.76587015", "0.76587015", "0.76587015", "0.7631815", "0.7...
0.7926864
4
(Personalization Only) The flag to enable statistics of Bing Search.
def event_hub_connection_string(self) -> Optional[str]: return pulumi.get(self, "event_hub_connection_string")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uses_statistics(self):\n return True", "def statistics_enabled(self) -> Optional[bool]:\n return pulumi.get(self, \"statistics_enabled\")", "def query_insights_enabled(self) -> bool:\n return pulumi.get(self, \"query_insights_enabled\")", "def statflag(self) -> str | None:\n r...
[ "0.64054924", "0.60457677", "0.5411453", "0.52718866", "0.52302223", "0.52296394", "0.5169014", "0.5153183", "0.51420164", "0.5091767", "0.5014306", "0.50062805", "0.4973687", "0.4968463", "0.49392295", "0.49392295", "0.49368644", "0.4853212", "0.48473722", "0.48376882", "0.4...
0.0
-1
(QnAMaker Only) The Azure Search endpoint id of QnAMaker.
def qna_azure_search_endpoint_id(self) -> Optional[str]: return pulumi.get(self, "qna_azure_search_endpoint_id")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qna_azure_search_endpoint_key(self) -> Optional[str]:\n return pulumi.get(self, \"qna_azure_search_endpoint_key\")", "def endpoint_id(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"endpoint_id\")", "def endpoint_id(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"endpoi...
[ "0.75765604", "0.70053834", "0.70053834", "0.70053834", "0.70053834", "0.6863342", "0.6863342", "0.6831415", "0.6831415", "0.6831415", "0.6378568", "0.6378568", "0.6342887", "0.6290179", "0.62154305", "0.6213062", "0.6106662", "0.60928464", "0.60928464", "0.60928464", "0.6092...
0.82035816
0
(QnAMaker Only) The Azure Search endpoint key of QnAMaker.
def qna_azure_search_endpoint_key(self) -> Optional[str]: return pulumi.get(self, "qna_azure_search_endpoint_key")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qna_azure_search_endpoint_id(self) -> Optional[str]:\n return pulumi.get(self, \"qna_azure_search_endpoint_id\")", "def _get_query_api_key(self, params: Dict) -> Optional[str]:\n return None", "def endpoint_id(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"endpoint_id\")", "...
[ "0.760087", "0.6005936", "0.59957916", "0.59957916", "0.59957916", "0.59957916", "0.5990177", "0.59611803", "0.59611803", "0.58993065", "0.58993065", "0.58993065", "0.58993065", "0.58035594", "0.58035594", "0.579497", "0.579497", "0.579497", "0.579497", "0.579497", "0.579497"...
0.84970903
0
(QnAMaker Only) The runtime endpoint of QnAMaker.
def qna_runtime_endpoint(self) -> Optional[str]: return pulumi.get(self, "qna_runtime_endpoint")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def endpoint(self) -> str:\n return pulumi.get(self, \"endpoint\")", "def endpoint(self) -> str:\n return pulumi.get(self, \"endpoint\")", "def main():\n return execute_api(Freta(), [Endpoint], __version__)", "def endpoint(self):\n return self.Endpoint", "async def __anext__(self):\...
[ "0.5615672", "0.5615672", "0.5560079", "0.5543251", "0.5528619", "0.55271727", "0.54968864", "0.54968864", "0.5390125", "0.5370197", "0.53535056", "0.53421795", "0.5330651", "0.5318378", "0.5286095", "0.52837664", "0.52837664", "0.5264753", "0.5225494", "0.5222705", "0.521559...
0.7168018
0
(Bing Search Only) The flag to enable statistics of Bing Search.
def statistics_enabled(self) -> Optional[bool]: return pulumi.get(self, "statistics_enabled")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uses_statistics(self):\n return True", "def query_insights_enabled(self) -> bool:\n return pulumi.get(self, \"query_insights_enabled\")", "def statistics(self, **_):\n raise NotImplementedError(\"{} doesn't support statistics.\".format(__class__.__name__))", "def event_ball_search_en...
[ "0.6719449", "0.58057433", "0.55334", "0.54760736", "0.5386774", "0.53164434", "0.51713836", "0.5164361", "0.5161711", "0.50041795", "0.49931997", "0.49914446", "0.49898", "0.49377626", "0.49150836", "0.4907638", "0.48831502", "0.4852127", "0.48485795", "0.4833888", "0.482493...
0.6361315
1
(Personalization Only) The storage account connection string.
def storage_account_connection_string(self) -> Optional[str]: return pulumi.get(self, "storage_account_connection_string")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rdb_storage_connection_string(self) -> str:\n return pulumi.get(self, \"rdb_storage_connection_string\")", "def account_connection_string(self) -> str:\n return pulumi.get(self, \"account_connection_string\")", "def storage_account(self) -> str:\n return pulumi.get(self, \"storage_acco...
[ "0.78525084", "0.77868885", "0.7490864", "0.7084924", "0.68205947", "0.680374", "0.6798149", "0.65964776", "0.6592029", "0.65299773", "0.63563156", "0.6331491", "0.63102967", "0.6303591", "0.62777317", "0.6277717", "0.6274107", "0.6228608", "0.6228479", "0.6141211", "0.614121...
0.8600586
0
(Metrics Advisor Only) The super user of Metrics Advisor.
def super_user(self) -> Optional[str]: return pulumi.get(self, "super_user")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def user(self):\n pass", "def user(self):\n return self.getattr('user')", "def user(self):\n return self._forced_user", "def get_user(self):\n return None", "def user(self):\n return self._user", "def user(self):\n return self._user", "def user(self):\n ...
[ "0.6955923", "0.66741955", "0.66067237", "0.6595119", "0.6546568", "0.6546568", "0.6546568", "0.6546568", "0.65376055", "0.64804995", "0.6439071", "0.6429419", "0.63909256", "0.63909256", "0.6382017", "0.6368345", "0.63560563", "0.6195999", "0.6175691", "0.6140341", "0.612710...
0.7323845
0
(Metrics Advisor Only) The website name of Metrics Advisor.
def website_name(self) -> Optional[str]: return pulumi.get(self, "website_name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getSiteName():\n return os.environ['SITENAME']", "def site_name(self, obj):\n site = obj.site\n return (\"%s\" % (site.name))", "def sitename(self) :\n\t\ttry :\n\t\t\treturn self._sitename\n\t\texcept Exception as e:\n\t\t\traise e", "def bucket_website_domain_name(self) -> str:\n ...
[ "0.69923437", "0.69106567", "0.6616829", "0.6565683", "0.6469414", "0.6435438", "0.6411144", "0.6411144", "0.6380905", "0.6277378", "0.62384963", "0.62384963", "0.617236", "0.61205363", "0.60646456", "0.605211", "0.59489995", "0.5926967", "0.5890607", "0.588797", "0.5839904",...
0.7566009
0
The call rate limit Cognitive Services account.
def __init__(__self__, *, count: Optional[float] = None, renewal_period: Optional[float] = None, rules: Optional[Sequence['outputs.ThrottlingRuleResponse']] = None): if count is not None: pulumi.set(__self__, "count", count) if renewal_perio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def call_rate_limit(self) -> 'outputs.CallRateLimitResponse':\n return pulumi.get(self, \"call_rate_limit\")", "def call_rate_limit(self) -> 'outputs.CallRateLimitResponse':\n return pulumi.get(self, \"call_rate_limit\")", "def call_rate_limit(self) -> 'outputs.CallRateLimitResponse':\n re...
[ "0.73106307", "0.73106307", "0.73106307", "0.6358268", "0.6162561", "0.60568434", "0.5990054", "0.5918794", "0.58661646", "0.573936", "0.57365024", "0.5668265", "0.5640884", "0.56161267", "0.5614316", "0.5562859", "0.5551392", "0.5523943", "0.5515391", "0.54717577", "0.547165...
0.0
-1
The count value of Call Rate Limit.
def count(self) -> Optional[float]: return pulumi.get(self, "count")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def count(self) -> float:\n return pulumi.get(self, \"count\")", "def GetCount(self):\n return(self.count)", "def get_count(self):\r\n return self.count", "def count(self) -> int:\n return pulumi.get(self, \"count\")", "def get_count(self):\n return self.count", "def ge...
[ "0.7477105", "0.7374633", "0.73024595", "0.72766846", "0.7238473", "0.7238473", "0.7160818", "0.7160818", "0.71286243", "0.7120956", "0.71014565", "0.7012766", "0.70061415", "0.69977427", "0.69857913", "0.69857913", "0.69668037", "0.69668037", "0.69668037", "0.69668037", "0.6...
0.7057278
11
The renewal period in seconds of Call Rate Limit.
def renewal_period(self) -> Optional[float]: return pulumi.get(self, "renewal_period")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def expirePeriodInSeconds(self)->int:\n return self._lic.params['periodInSeconds'].value", "def refresh_period(self):\n return int(self.__get_option('refresh_period'))", "def update_period(self):\n return 0.1", "def refresh_period_in_seconds(self) -> Optional[pulumi.Input[int]]:\n ...
[ "0.7220695", "0.68607104", "0.66482574", "0.6505736", "0.64645785", "0.6337664", "0.62624717", "0.62323433", "0.6031927", "0.6022835", "0.6014422", "0.60099036", "0.60031545", "0.60031545", "0.60031545", "0.5978044", "0.59692264", "0.59621155", "0.5960568", "0.5960568", "0.59...
0.73784405
0
Cognitive Services account commitment period.
def __init__(__self__, *, end_date: str, quota: 'outputs.CommitmentQuotaResponse', start_date: str, count: Optional[int] = None, tier: Optional[str] = None): pulumi.set(__self__, "end_date", end_date) pulumi.set(__self_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def last(self) -> 'outputs.CommitmentPeriodResponse':\n return pulumi.get(self, \"last\")", "def current(self) -> Optional['outputs.CommitmentPeriodResponse']:\n return pulumi.get(self, \"current\")", "def get_period_guarantee_advance(self):\n return ceiling(self.scheduled_completion, 3)",...
[ "0.62377405", "0.5596834", "0.55648786", "0.55491656", "0.552728", "0.52326745", "0.5225708", "0.52039677", "0.5188422", "0.5150005", "0.5123277", "0.50801796", "0.5071423", "0.50200355", "0.5005501", "0.49971294", "0.49697885", "0.49551418", "0.49424368", "0.49268588", "0.49...
0.45304874
73
Commitment period end date.
def end_date(self) -> str: return pulumi.get(self, "end_date")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def end_date(self):\n return self.__end_date", "def end_date(self):\n return self._end_date", "def end_date(self):\n return self._end_date", "def end_date(self):\n return self._end_date", "def computed_enddate(self):\n if self.enddate:\n # you need to add a day...
[ "0.72664535", "0.7117559", "0.7117559", "0.7117559", "0.7070606", "0.6941111", "0.6776933", "0.67016834", "0.67016834", "0.66824603", "0.6518314", "0.65141875", "0.6463101", "0.64071155", "0.6389012", "0.63748705", "0.63725436", "0.63416606", "0.63072854", "0.6300031", "0.629...
0.70362073
6
Cognitive Services account commitment quota.
def quota(self) -> 'outputs.CommitmentQuotaResponse': return pulumi.get(self, "quota")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def online_quota(self):\r\n return self.max_contributions - self.num_tickets_total", "def account_space(access_token):\n client = dropbox.client.DropboxClient(access_token)\n account_info = client.account_info()\n quota_info = account_info['quota_info']\n total = quota_info['quota']\n used ...
[ "0.6712958", "0.65523666", "0.6515917", "0.631611", "0.60914433", "0.6000025", "0.57346606", "0.5602452", "0.5518095", "0.551689", "0.54627246", "0.545674", "0.5402079", "0.53996605", "0.53487813", "0.5334519", "0.53081733", "0.5271333", "0.5261874", "0.519679", "0.5194432", ...
0.76280224
0
Commitment period start date.
def start_date(self) -> str: return pulumi.get(self, "start_date")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def starting_date(self):\n return datetime.date(2016, 1, 4)", "def start_date(self):\n return self.__start_date", "def start_date(self):\n return self._start_date", "def start_date(self):\n return self._start_date", "def start_date(self):\n return self._start_date", "de...
[ "0.6839815", "0.68031985", "0.66874164", "0.66874164", "0.66874164", "0.66874164", "0.6584549", "0.6583291", "0.6506471", "0.64989716", "0.6378951", "0.6378951", "0.6342821", "0.6279255", "0.62256783", "0.62214386", "0.6180699", "0.6159274", "0.6134331", "0.61129344", "0.6101...
0.66267425
7
Commitment period commitment count.
def count(self) -> Optional[int]: return pulumi.get(self, "count")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_repo_commit_count():\n\n commit_count = BehavioralUtils.count_commits('drupal', 'builds')\n assert commit_count == 4", "def number_commits_recorded(refenv) -> int:\n return len(list_all_commits(refenv))", "def get_commit_count():\n if COMMIT_COUNT is None:\n return shell_out...
[ "0.6859627", "0.64183044", "0.6348561", "0.62444186", "0.60140866", "0.59324235", "0.5842669", "0.5729849", "0.56959283", "0.5626599", "0.5584164", "0.5529307", "0.552853", "0.544487", "0.54398936", "0.5421665", "0.54162514", "0.5405785", "0.5395634", "0.53323585", "0.5279439...
0.0
-1
Commitment period commitment tier.
def tier(self) -> Optional[str]: return pulumi.get(self, "tier")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tier(self) -> str:\n return pulumi.get(self, \"tier\")", "def tier(self) -> str:\n return pulumi.get(self, \"tier\")", "def tier(self) -> str:\n return pulumi.get(self, \"tier\")", "def tier(self):\n return self._tier", "def tier(self):\n\n if not hasattr(self, \"_tie...
[ "0.56091404", "0.56091404", "0.56091404", "0.54941237", "0.54209924", "0.53784037", "0.52840495", "0.5261725", "0.52602756", "0.52502817", "0.5228381", "0.5166219", "0.5122361", "0.50317323", "0.5012795", "0.5009712", "0.49947563", "0.49541232", "0.49301913", "0.4928751", "0....
0.524004
12
The commitment plan association.
def __init__(__self__, *, commitment_plan_id: Optional[str] = None, commitment_plan_location: Optional[str] = None): if commitment_plan_id is not None: pulumi.set(__self__, "commitment_plan_id", commitment_plan_id) if commitment_plan_location is not None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def commitment_plan_associations(self) -> Sequence['outputs.CommitmentPlanAssociationResponse']:\n return pulumi.get(self, \"commitment_plan_associations\")", "def commitment_plan_id(self) -> Optional[str]:\n return pulumi.get(self, \"commitment_plan_id\")", "def commitment_plan_location(self) ->...
[ "0.72007865", "0.68793094", "0.59316295", "0.57824594", "0.57168716", "0.56962913", "0.55927014", "0.55243766", "0.54563934", "0.54563934", "0.54563934", "0.5455642", "0.5395821", "0.53573793", "0.5343173", "0.5327739", "0.5302242", "0.52986825", "0.5287564", "0.52749974", "0...
0.5488778
8