function
stringlengths
11
56k
repo_name
stringlengths
5
60
features
list
def get_account_detail(): cc = check_parameters(request.json) message = cc.get_account_detail() logtext = log_handler(message, '获取账户信息') no_db_logger.info(logtext) return json.dumps(message, ensure_ascii=False)
zznn/futu-openAPI
[ 38, 18, 38, 1, 1462535088 ]
def get_account_cash(): cc = check_parameters(request.json) message = cc.get_account_cash() logtext = log_handler(message, '获取账户现金') no_db_logger.info(logtext) return json.dumps(message, ensure_ascii=False)
zznn/futu-openAPI
[ 38, 18, 38, 1, 1462535088 ]
def get_account_portfolio(): cc = check_parameters(request.json) message = cc.get_account_portfolio() logtext = log_handler(message, '获取账户持仓') no_db_logger.info(logtext) return json.dumps(message, ensure_ascii=False)
zznn/futu-openAPI
[ 38, 18, 38, 1, 1462535088 ]
def get_list_orders(): date_begin = request.json['date_begin'] date_end = request.json['date_end'] cc = check_parameters(request.json) message = cc.get_list_orders() logtext = log_handler(message, '获取订单列表') no_db_logger.info(logtext) return json.dumps(message, ensure_ascii=False)
zznn/futu-openAPI
[ 38, 18, 38, 1, 1462535088 ]
def get_list_trades(): cc = check_parameters(request.json) message = cc.get_list_trades() logtext = log_handler(message, '获取交易列表') no_db_logger.info(logtext) return json.dumps(message, ensure_ascii=False)
zznn/futu-openAPI
[ 38, 18, 38, 1, 1462535088 ]
def place_order(): code = request.json['code'] quantity = request.json['quantity'] price = request.json['price'] side = request.json['side'] ltype = request.json['type'] cc = check_parameters(request.json) message = cc.place_order(code, quantity, price, side, ltype) logtext = log_handler(message, '下单') no_db_l...
zznn/futu-openAPI
[ 38, 18, 38, 1, 1462535088 ]
def change_order(): order_id = request.json['order_id'] quantity = request.json['quantity'] price = request.json['price'] cc = check_parameters(request.json) message = cc.change_order(order_id, quantity, price) logtext = log_handler(message, '改单') no_db_logger.info(logtext) return json.dumps(message, ensure_asc...
zznn/futu-openAPI
[ 38, 18, 38, 1, 1462535088 ]
def cancle_order(): order_id = request.json['order_id'] cc = check_parameters(request.json) message = cc.cancel_order(order_id) logtext = log_handler(message, '撤单') no_db_logger.info(logtext) return json.dumps(message, ensure_ascii=False)
zznn/futu-openAPI
[ 38, 18, 38, 1, 1462535088 ]
def save_token(): account = request.json['app_account'] appid = request.json['appid'] market = request.json['market'] token = request.json['token'] card = request.json['card'] card_desc = request.json['text'] DB_result = save_update_token(account, appid, market, token, card, False, card_desc) if DB_result == 's...
zznn/futu-openAPI
[ 38, 18, 38, 1, 1462535088 ]
def delete_token(): appid = request.json['appid'] account = request.json['app_account'] DB_result = delete_tokens(account, appid) if DB_result == 'success': no_db_logger.info('token delete success') return json.dumps({'result_code':0,'error_msg':''}, ensure_ascii=False) else: no_db_logger.info('token delete ...
zznn/futu-openAPI
[ 38, 18, 38, 1, 1462535088 ]
def list_card(): appid = request.json['appid'] account = request.json['app_account'] cards = list_cards(account, appid) message = dict(cards=cards) if isinstance(cards, list): no_db_logger.info('list cards success') return json.dumps({'result_code':0,'error_msg':'','data':message}, ensure_ascii=False) else: ...
zznn/futu-openAPI
[ 38, 18, 38, 1, 1462535088 ]
def test_list_extra_index(self): """Tries to index a non-indexable list element.""" test_config = mock_config.get_config() with self.assertRaises(IndexError): config_path.get_value('dict.list[0][0]', test_config)
google/ml_collections
[ 676, 26, 676, 14, 1597899148 ]
def test_list_out_of_range_set(self): """Tries to override out-of-range value in list.""" test_config = mock_config.get_config() with self.assertRaises(IndexError): config_path.set_value('dict.list[2][1]', test_config, -1)
google/ml_collections
[ 676, 26, 676, 14, 1597899148 ]
def test_reading_setting_existing_key_in_dict(self): """Tests setting non existing key from dict inside config.""" test_config = mock_config.get_config() with self.assertRaises(KeyError): config_path.set_value('dict.not_existing_key.key', test_config, 1)
google/ml_collections
[ 676, 26, 676, 14, 1597899148 ]
def test_field_reference_types(self): """Tests whether types of FieldReference fields are valid.""" test_config = fieldreference_config.get_config() paths = ['ref_nodefault', 'ref'] paths_types = [int, int] config_types = [config_path.get_type(path, test_config) for path in paths] self.assertE...
google/ml_collections
[ 676, 26, 676, 14, 1597899148 ]
def test_types(self, path, path_type): """Tests whether various types of objects are valid.""" test_config = mock_config.get_config() self.assertEqual(path_type, config_path.get_type(path, test_config))
google/ml_collections
[ 676, 26, 676, 14, 1597899148 ]
def __init__(self, discovery_doc, language=None): super(Api, self).__init__(discovery_doc, self, wire_name=discovery_doc['name']) name = self.values['name'] self._validator.ValidateApiName(name) if name != 'freebase': self._validator.ValidateApiVersion(self.values['ve...
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def all_schemas(self): """The dictionary of all the schema objects found in the API.""" return self._schemas
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def _BuildResourceDefinitions(self): """Loop over the resources in the discovery doc and build definitions.""" self._resources = [] def_dict = self.values.get('resources') or {} for name in sorted(def_dict): resource = Resource(self, name, def_dict[name], parent=self) self._resources.append(...
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def _NormalizeOwnerInformation(self): """Ensure that owner and ownerDomain are set to sane values.""" owner_domain = self.get('ownerDomain', '') if not owner_domain: root_url = self.get('rootUrl') if root_url: owner_domain = urlparse.urlparse(root_url).hostname # Normalize google...
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def ModelClasses(self): """Return all the model classes.""" ret = set( s for s in self._schemas.itervalues() if isinstance(s, Schema) or isinstance(s, data_types.MapDataType)) return sorted(ret, key=operator.attrgetter('class_name'))
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def DataTypeFromJson(self, type_dict, default_name, parent=None, wire_name=None): """Returns a schema object represented by a JSON Schema dictionary. Evaluate a JSON schema dictionary and return an appropriate schema object. If a data type is defined in-line, then create the schema d...
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def MethodByName(self, method_name): """Find a method by name. Args: method_name: (str) the full RPC name of a method defined by this API. Returns: Method object or None if not found. """ return self._methods_by_name.get(method_name)
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def SetVariantInfo(self, ref, discriminant, value, schema): """Sets variant info for the given reference.""" if ref in self._variant_info: logging.warning("Base type of '%s' changed from '%s' to '%s'. " "This is an indication that a variant schema is used " "fro...
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def _VisitMethod(self, method, func): """Visit a method, calling a function on every child. Args: method: (Method) The Method to visit. func: (function) Method to call on each object. """ func(method) for parameter in method.parameters: func(parameter)
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def _VisitSchema(self, schema, func): """Visit a schema tree, calling a function on every child. Args: schema: (Schema) The Schema to visit. func: (function) Method to call on each object. """ func(schema) func(schema.module) for prop in schema.values.get('properties', []): fu...
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def ToClassName(self, s, element, element_type=None): """Convert a name to a suitable class name in the target language. This default implementation camel cases the string, which is appropriate for some languages. Subclasses are encouraged to override this. Args: s: (str) A rosy name of data el...
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def class_name(self): return self.values['className']
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def model_module(self): return self._model_module
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def containing_module(self): return self._containing_module
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def all_methods(self): """All the methods in the entire API.""" return self._all_methods
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def top_level_methods(self): """All the methods at the API top level (not in a resource).""" return self._top_level_methods
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def __init__(self, api, name, def_dict, parent=None): """Creates a Resource. Args: api: (Api) The Api which owns this Resource. name: (string) The discovery name of the Resource. def_dict: (dict) The discovery dictionary for this Resource. parent: (CodeObject) The resource containing th...
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def methods(self): return self._methods
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def methods_dict(self): return {method['wireName']: method for method in self._methods}
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def __init__(self, api, value, def_dict): """Construct an auth scope. Args: api: (Api) The Api which owns this Property value: (string) The unique identifier of this scope, often a URL def_dict: (dict) The discovery dictionary for this auth scope. """ super(AuthScope, self).__init__(d...
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def constantName(self): # pylint: disable=g-bad-name """Overrides default behavior of constantName.""" return self._language_model.ApplyPolicy('constant', self, self.values['lastPart'])
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def __init__(self, api, name, def_dict, parent=None): """Construct a method. Methods in REST discovery are inside of a resource. Note that the method name and id are calculable from each other. id will always be equal to api_name.resource_name[.sub_resource...].method_name. At least it should be, ...
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def _InitPageable(self, api): response_type = self.values.get('responseType') if response_type == api.void_type: return next_page_token_name = self.FindPageToken( response_type.values.get('properties')) if not next_page_token_name: return is_page_token_parameter = True page_t...
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def media_upload_parameters(self): return self.values.get('mediaUpload')
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def parameters(self): return self.values['parameters']
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def optional_parameters(self): return [p for p in self.values['parameters'] if not p.required]
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def required_parameters(self): return [p for p in self.values['parameters'] if p.required]
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def path_parameters(self): return [p for p in self.values['parameters'] if p.location == 'path']
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def query_parameters(self): return [p for p in self.values['parameters'] if p.location == 'query']
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def FindCodeObjectWithWireName(things, wire_name): """Looks for an element having the given wire_name. Args: things: (array of DataType) List of parameters or properties to search. wire_name: (str) The wireName we are looking to find. Returns: None or element with the given wire_name. ...
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def FindPageToken(things): """Looks for an element with a wireName like a page token. Args: things: (array of DataType) List of parameters or properties to search. Returns: None or page token name found. """ for token_name in _PAGE_TOKEN_NAMES: if Method.FindCodeObjectWithWireNam...
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def optionalParameters(self): # pylint: disable=g-bad-name return self.optional_parameters
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def pathParameters(self): # pylint: disable=g-bad-name return self.path_parameters
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def __init__(self, api, name, def_dict, method): super(Parameter, self).__init__(def_dict, api, parent=method, wire_name=name) self.ValidateName(name) self.schema = api # TODO(user): Deal with dots in names better. What we should do is: # For x.y, x.z create a li...
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def repeated(self): return self._repeated
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def required(self): return self._required
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def location(self): return self._location
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def code_type(self): return self._data_type.code_type
bshaffer/google-api-php-client-services
[ 1, 3, 1, 1, 1456355604 ]
def get_list_definition(self, account_config: AccountConfig, destination_metadata: List[str]) -> Dict[str, Any]: list_name = destination_metadata[0] app_id = account_config.app_id
google/megalista
[ 76, 48, 76, 10, 1615325858 ]
def get_row_keys(self) -> List[str]: return ['mobile_id']
google/megalista
[ 76, 48, 76, 10, 1615325858 ]
def test_dummy_request(): from rasa.nlu.emulators.no_emulator import NoEmulator em = NoEmulator() norm = em.normalise_request_json({"text": ["arb text"]}) assert norm == {"text": "arb text", "time": None} norm = em.normalise_request_json({"text": ["arb text"], "time": "1499279161658"}) assert ...
RasaHQ/rasa_nlu
[ 15758, 4259, 15758, 111, 1476448069 ]
def _map(f, *xs): return tuple(map(f, *xs))
google/jax
[ 22193, 2080, 22193, 1296, 1540502702 ]
def _avals_to_results_handler(nrep, npart, partitions, out_avals): handlers = [_aval_to_result_handler(npart, parts, out_aval) for parts, out_aval in safe_zip(partitions, out_avals)] def handler(out_bufs): return [h(bufs) for h, bufs in zip(handlers, out_bufs)] return handler
google/jax
[ 22193, 2080, 22193, 1296, 1540502702 ]
def _sharded_callable( fun: lu.WrappedFun, nparts: Optional[int], in_parts: Tuple[pxla.PartitionsOrReplicated, ...], out_parts_thunk: Callable[[], Tuple[pxla.PartitionsOrReplicated, ...]], local_in_parts: Optional[Tuple[pxla.PartitionsOrReplicated, ...]], local_out_parts_thunk: Callable[[], Optional...
google/jax
[ 22193, 2080, 22193, 1296, 1540502702 ]
def _sharded_jit_lowering(ctx, *in_nodes, in_parts, out_parts_thunk, nparts, name, call_jaxpr, local_in_parts, local_out_parts_thunk, local_nparts): # We assume any extra leading in_nodes are constants and replicate them. num_extra_nodes ...
google/jax
[ 22193, 2080, 22193, 1296, 1540502702 ]
def _xla_sharded_args(c, avals, in_parts): xla_args = [] for i, (sharding, aval) in enumerate(safe_zip(in_parts, avals)): param = xla.with_sharding(c, sharding, xla.parameter, c, i, *xla.aval_to_xla_shapes(aval)) xla_args.append(param) return xla_args
google/jax
[ 22193, 2080, 22193, 1296, 1540502702 ]
def __str__(self): return "UNCONSTRAINED"
google/jax
[ 22193, 2080, 22193, 1296, 1540502702 ]
def __new__(cls, *partitions): return tuple.__new__(PartitionSpec, partitions)
google/jax
[ 22193, 2080, 22193, 1296, 1540502702 ]
def sharded_jit( fun: Callable, in_parts, out_parts, num_partitions: Optional[int] = None, local_in_parts=None, local_out_parts=None, local_num_partitions=None, static_argnums: Union[int, Iterable[int]] = (),
google/jax
[ 22193, 2080, 22193, 1296, 1540502702 ]
def wrapped(*args, **kwargs): if kwargs: raise NotImplementedError("sharded_jit over kwargs not yet supported") f = lu.wrap_init(fun) if static_argnums: if max(static_argnums) >= len(args): raise ValueError( f"jitted function has static_argnums={static_argnums}" ...
google/jax
[ 22193, 2080, 22193, 1296, 1540502702 ]
def _sharding_constraint_impl(x, partitions): # TODO(skye): can we also prevent this from being called in other # non-sharded_jit contexts? (e.g. pmap, control flow) raise NotImplementedError( "with_sharding_constraint() should only be called inside sharded_jit()")
google/jax
[ 22193, 2080, 22193, 1296, 1540502702 ]
def _sharding_constraint_lowering(ctx, x_node, partitions): return [mlir.wrap_with_sharding_op(x_node, xla.sharding_to_proto(partitions))]
google/jax
[ 22193, 2080, 22193, 1296, 1540502702 ]
def get_main_page(self): html = ''' <html> <head> <title>OpenFDA app</title> </head> <body> <h1>OpenFDA Client</h1> <form method='get' action='receivedrug'> <input type='submit' value='Enviar a OpenFD...
varoroyo/Alvaro-Roman
[ 6, 22, 6, 2, 1489416204 ]
def get_medicinalproduct(self,com_num): conn = http.client.HTTPSConnection(self.OPENFDA_API_URL) conn.request("GET", self.OPENFDA_API_EVENT + '?search=companynumb:'+com_num+'&limit=10') r1 = conn.getresponse() print(r1.status, r1.reason) data1 = r1.read() data = data1.dec...
varoroyo/Alvaro-Roman
[ 6, 22, 6, 2, 1489416204 ]
def get_drug(self, events): medicamentos=[] for event in events['results']: medicamentos+=[event['patient']['drug'][0]['medicinalproduct']] return medicamentos
varoroyo/Alvaro-Roman
[ 6, 22, 6, 2, 1489416204 ]
def drug_page(self,medicamentos): s='' for drug in medicamentos: s += "<li>"+drug+"</li>" html=''' <html> <head></head> <body> <ul> %s </ul> </body> </html>''' ...
varoroyo/Alvaro-Roman
[ 6, 22, 6, 2, 1489416204 ]
def __init__(self, alarm_mgr, intf_id, port_type_name): super(OltLosAlarm, self).__init__(alarm_mgr, object_type='olt LOS', alarm='OLT_LOS', alarm_category=AlarmEventCategory.OLT, alarm_...
opencord/voltha
[ 73, 117, 73, 17, 1484694318 ]
def __init__(self,frame, model): self.frame = frame self.model = model self.ui = None
hanya/MRI
[ 42, 7, 42, 9, 1327506446 ]
def set_ui(self, ui): self.ui = ui
hanya/MRI
[ 42, 7, 42, 9, 1327506446 ]
def get_imple_name(self): return self.ui.pages.get_imple_name()
hanya/MRI
[ 42, 7, 42, 9, 1327506446 ]
def getTitle(self): return self.frame.getTitle()
hanya/MRI
[ 42, 7, 42, 9, 1327506446 ]
def dispose(self): self.frame = None self.model = None
hanya/MRI
[ 42, 7, 42, 9, 1327506446 ]
def removeEventListener(self, aListener): pass
hanya/MRI
[ 42, 7, 42, 9, 1327506446 ]
def attachFrame(self, frame): self.frame = frame
hanya/MRI
[ 42, 7, 42, 9, 1327506446 ]
def suspend(self, Suspend): return True
hanya/MRI
[ 42, 7, 42, 9, 1327506446 ]
def getViewData(self): """ Returns current instance inspected. """ return self.ui.main.current.target
hanya/MRI
[ 42, 7, 42, 9, 1327506446 ]
def restoreViewData(self, Data): pass
hanya/MRI
[ 42, 7, 42, 9, 1327506446 ]
def getFrame(self): return self.frame
hanya/MRI
[ 42, 7, 42, 9, 1327506446 ]
def getStatusIndicator(self): pass
hanya/MRI
[ 42, 7, 42, 9, 1327506446 ]
def queryDispatch(self, url, name, flags): pass
hanya/MRI
[ 42, 7, 42, 9, 1327506446 ]
def getImplementationName(self): return self.IMPLE_NAME
hanya/MRI
[ 42, 7, 42, 9, 1327506446 ]
def supportsService(self, name): return name == self.IMPLE_NAME
hanya/MRI
[ 42, 7, 42, 9, 1327506446 ]
def __init__(self, stage_1_dir, configuration: Configuration = Configuration(), transformation_funcs=(), filter_funcs=(), user_defined_split_range=(), num_shards=1000, seed=0, dataset_size='small', ...
google-research/plur
[ 78, 14, 78, 8, 1638474751 ]
def get_all_raw_data_paths(self): """Get paths to all raw data.""" # Get the filenames depending on the dataset size. if self.dataset_size == 'small': train_file = os.path.join( self.code2seq_extracted_dir, 'java-small.train.c2s') validation_file = os.path.join( self.code2seq...
google-research/plur
[ 78, 14, 78, 8, 1638474751 ]
def _construct_token_subtree(self, graph_to_output_example, token, cur_node_id, token_root_name): # pylint: disable=line-too-long """Construct the token subtree in a AST path. We create a node for each subtoken in the token, all subtokens are connected to the next subtoke...
google-research/plur
[ 78, 14, 78, 8, 1638474751 ]
def raw_data_to_graph_to_output_example(self, raw_data): # pylint: disable=line-too-long """Convert raw data to the unified GraphToOutputExample data structure. The Code2Seq raw data contains the target function name, and the sampled AST paths. Each AST path starts and ends with a token, and a series o...
google-research/plur
[ 78, 14, 78, 8, 1638474751 ]
def __init__(self, random_split_fn, use_random_split): self.random_split_fn = random_split_fn self.use_random_split = use_random_split
google-research/plur
[ 78, 14, 78, 8, 1638474751 ]
def _get_split(self, file_path): """Get the data split based on the filename suffix.""" if file_path.endswith('train.c2s'): return constants.TRAIN_SPLIT_NAME elif file_path.endswith('val.c2s'): return constants.VALIDATION_SPLIT_NAME else: return constants.TEST_SPLIT_NAME
google-research/plur
[ 78, 14, 78, 8, 1638474751 ]
def setup_uncased(model_config): """Setup the uncased bert model. Args: model_config: The model configuration to be loaded. Returns: tokenizer: The tokenizer to be used to convert between tokens and ids. model: The model that has been initialized. device: The device to be used in this run. e...
PAIR-code/interpretability
[ 82, 17, 82, 1, 1559850451 ]
def __init__(self): # pylint: disable=super-init-not-called pass
oppia/oppia
[ 4927, 2897, 4927, 1181, 1439511374 ]
def setUp(self): super(BaseSuggestionUnitTests, self).setUp() self.base_suggestion = MockInvalidSuggestion()
oppia/oppia
[ 4927, 2897, 4927, 1181, 1439511374 ]
def test_base_class_get_change_list_for_accepting_suggestion_raises_error( self): with self.assertRaisesRegex( NotImplementedError, 'Subclasses of BaseSuggestion should implement ' 'get_change_list_for_accepting_suggestion.'): self.base_suggestion.get_...
oppia/oppia
[ 4927, 2897, 4927, 1181, 1439511374 ]
def test_base_class_populate_old_value_of_change_raises_error(self): with self.assertRaisesRegex( NotImplementedError, 'Subclasses of BaseSuggestion should implement' ' populate_old_value_of_change.'): self.base_suggestion.populate_old_value_of_change()
oppia/oppia
[ 4927, 2897, 4927, 1181, 1439511374 ]
def test_base_class_get_all_html_content_strings(self): with self.assertRaisesRegex( NotImplementedError, 'Subclasses of BaseSuggestion should implement' ' get_all_html_content_strings.'): self.base_suggestion.get_all_html_content_strings()
oppia/oppia
[ 4927, 2897, 4927, 1181, 1439511374 ]