language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
TypedScope createScope(Node n) { TypedScope s = memoized.get(n); return s != null ? s : createScope(n, createScope(NodeUtil.getEnclosingScopeRoot(n.getParent()))); }
python
def response_to_dict(self): """This method helps in returning the output JSON data from the URL and also it helps in converting the XML output/response (string) to a JSON object Returns: data (dict): JSON data from the output/response """ try: ret...
python
def UV_H(self): """ UV = all non-trivial (!V⊂U) implications U->V with UuV closed; in ternary coding (1=V,2=U) K = all closed sets This is UV_H function, but the returned implications are respected by all attribute sets of this context. This corresponds to a multiplication or & ...
python
def gui(discord_token, discord_client_id): """ Start Modis in gui format. Args: discord_token (str): The bot token for your Discord application discord_client_id: The bot's client ID """ logger.info("Starting Modis in GUI") import tkinter as tk logger.debug("Loading packa...
python
def merge_setting(request_setting, session_setting, dict_class=OrderedDict): """ Determines appropriate setting for a given request, taking into account the explicit setting on that request, and the setting in the session. If a setting is a dictionary, they will be merged together using `dict_class` ...
java
@SuppressWarnings("unchecked") @Deprecated public static <A, B, C, D, E> Map5<A, B, C, D, E, Tuple5<A, B, C, D, E>> toTuple5() { return Tuple5::new; }
python
def runsource(self, source, filename="<input>", symbol="single"): """Compile and run some source in the interpreter. Arguments are as for compile_command(). One several things can happen: 1) The input is incorrect; compile_command() raised an exception (SyntaxError or Overflow...
java
private static String getContentTypeMime(final String httpContentType) { String mime = null; if (httpContentType != null) { final int i = httpContentType.indexOf(";"); if (i == -1) { mime = httpContentType.trim(); } else { mime = httpCo...
java
public void setCP(String newCP) { String oldCP = cp; cp = newCP; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.GCCHST__CP, oldCP, cp)); }
python
def masked(self): """Return the network object with the host bits masked out.""" return IPNetwork('%s/%d' % (self.network, self._prefixlen), version=self._version)
java
public static LogEvent translate(LogEvent logEvent, String translatedMessage) { if (translatedMessage != null) { MessageParser parser = new MessageParser(translatedMessage, true); Object[] defaultArguments = logEvent.getArgumentArray(); Object[] arguments = new Object[de...
python
async def create_text_channel(self, name, *, overwrites=None, category=None, reason=None, **options): """|coro| Creates a :class:`TextChannel` for the guild. Note that you need the :attr:`~Permissions.manage_channels` permission to create the channel. The ``overwrites`` parame...
java
@Override public MonadicBinding<T> filter(Predicate<? super T> p) { return EasyBind.filter(delegate, p); }
java
public static <T> StreamEx<T> produce(Predicate<Consumer<? super T>> producer) { Box<Emitter<T>> box = new Box<>(); return (box.a = action -> producer.test(action) ? box.a : null).stream(); }
python
def start_new_gui_thread(): """ Attempt to start a new GUI thread, if possible. It is only possible to start one if there was one running on module import. """ PyGUIThread = getattr(ROOT, 'PyGUIThread', None) if PyGUIThread is not None: assert not PyGUIThread.isAlive(), "GUI thread alr...
python
def parse(cls, fptr, offset, length): """Parse UUIDList box. Parameters ---------- f : file Open file object. offset : int Start position of box in bytes. length : int Length of the box in bytes. Returns ------- ...
python
def get_all_devices_in_portal(self): """ This loops through the get_multiple_devices method 10 rids at a time. """ rids = self.get_portal_by_name( self.portal_name() )[2][1]['info']['aliases'] # print("RIDS: {0}".format(rids)) ...
python
def main(): """ Entry point when used via command line. Features are given using the environment variable ``PRODUCT_EQUATION``. If it is not set, ``PRODUCT_EQUATION_FILENAME`` is tried: if it points to an existing equation file that selection is used. (if ``APE_PREPEND_FEATURES`` is given, tho...
python
def _roc(y_true, y_score, ax=None): """ Plot ROC curve for binary classification. Parameters ---------- y_true : array-like, shape = [n_samples] Correct target values (ground truth). y_score : array-like, shape = [n_samples] Target scores (estimator predictions). ax: matplot...
python
def try_handle_route(self, route_uri, method, request, uri, headers): """Try to handle the supplied request on the specified routing URI. :param route_uri: string - URI of the request :param method: string - HTTP Verb :param request: request object describing the HTTP request :p...
python
def delay(self, seconds=0, minutes=0): """ Parameters ---------- seconds: float The number of seconds to freeze in place. """ minutes += int(seconds / 60) seconds = seconds % 60 seconds += float(minutes * 60) self.robot.pause() ...
java
public static long readUnsignedIntegerBigEndian(byte[] buffer, int offset) { long value; value = (buffer[offset + 3] & 0xFF); value |= (buffer[offset + 2] & 0xFF) << 8; value |= (buffer[offset + 1] & 0xFF) << 16; value |= ((long)(buffer[offset] & 0xFF)) << 24; return value; }
java
@Override public void stopForwardToServer(@Nonnull final String ruleId, @Nonnull final String serverId) throws InternalException, CloudException { if(serverId == null) throw new InternalException("Parameter serverId cannot be null"); final AzureRuleIdParts azureRuleIdParts = AzureRuleId...
python
def visit_ExtSlice(self, node: ast.ExtSlice) -> Tuple[Any, ...]: """Visit each dimension of the advanced slicing and assemble the dimensions in a tuple.""" result = tuple(self.visit(node=dim) for dim in node.dims) self.recomputed_values[node] = result return result
java
public static void loadGlyphsFont(URL url) throws IOException { try { DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); docBuilder.setEntityResolver((publicId, systemId) -> { ...
python
def relations_dict(rel_lst): """constructs a relation's dictionary from a list that describes amphidromus relations between objects :param list rel_lst: a relationships list of the form [[a,b],[c, a, b]] # can include duplicates :returns: a dictionary :Example: >>> rl = [('a', 'b', 'c'), ('a'...
python
def is_commentable(obj_or_class): """ :param obj_or_class: a class or instance """ if isinstance(obj_or_class, type): return issubclass(obj_or_class, Commentable) if not isinstance(obj_or_class, Commentable): return False if obj_or_class.id is None: return False re...
java
public BaseField setupField(int iFieldSeq) { BaseField field = null; if (iFieldSeq == 0) field = new MessageInfoField(this, MESSAGE_INFO_COMPARE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 1) field = new MessageInfoField(this, MESSAGE_INFO_ID, Co...
python
def setDebug( self, flag=True ): """ Enable display of debugging messages while doing pattern matching. Set ``flag`` to True to enable, False to disable. Example:: wd = Word(alphas).setName("alphaword") integer = Word(nums).setName("numword") term = ...
java
public Factory registerObject(Object obj, String id) { return registerObject(obj, id, true); }
python
def to_dict(self, in_dict=None): """ Turn the Namespace and sub Namespaces back into a native python dictionary. :param in_dict: Do not use, for self recursion :return: python dictionary of this Namespace """ in_dict = in_dict if in_dict else self out_dic...
java
public static boolean isEditableRequest(ServletRequest req) { boolean result = false; if (CmsHistoryResourceHandler.isHistoryRequest(req) || CmsJspTagEnableAde.isDirectEditDisabled(req)) { // don't display direct edit buttons on an historical resource result = false; } e...
java
private HttpSession getMatchingHttpSession(List<HttpCookie> cookies, final HttpSessionTokensSet siteTokens) { Collection<HttpSession> sessionsCopy; synchronized (sessions) { sessionsCopy = new ArrayList<>(sessions); } return CookieBasedSessionManagementHelper.getMatchingHttpSession(sessionsCopy, cookies, sit...
python
def run_align(*data): """ Prepare data to run alignment step, only once for each project """ work_dir = dd.get_work_dir(data[0][0]) out_dir = op.join(work_dir, "seqcluster", "prepare") seq_out = op.join(out_dir, "seqs.fastq") bam_dir = op.join(work_dir, "align") new_bam_file = op.join(ba...
python
def __PrintAdditionalImports(self, imports): """Print additional imports needed for protorpc.""" google_imports = [x for x in imports if 'google' in x] other_imports = [x for x in imports if 'google' not in x] if other_imports: for import_ in sorted(other_imports): ...
java
public Document createDocument(GraphqlParser.DocumentContext ctx) { Document.Builder document = Document.newDocument(); addCommonData(document, ctx); document.definitions(ctx.definition().stream().map(this::createDefinition) .collect(toList())); return document.build(); ...
java
public BasePanel onForm(Record recordMain, int iDocMode, boolean bReadCurrentRecord, int iCommandOptions, Map<String,Object> properties) { boolean bLinkGridToQuery = false; if ((iCommandOptions & ScreenConstants.USE_NEW_WINDOW) == ScreenConstants.USE_NEW_WINDOW) bLinkGridToQuery = true; ...
java
public void marshall(Geometry geometry, ProtocolMarshaller protocolMarshaller) { if (geometry == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(geometry.getBoundingBox(), BOUNDINGBOX_BINDING); ...
python
def _simplify_shape(self, alist, rec=0): """Reduce the alist dimension if needed""" if rec != 0: if len(alist) == 1: return alist[-1] return alist if len(alist) == 1: return self._simplify_shape(alist[-1], 1) return [self._simpl...
java
public void marshall(M3u8Settings m3u8Settings, ProtocolMarshaller protocolMarshaller) { if (m3u8Settings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(m3u8Settings.getAudioFramesPerPes(), AUDIOF...
python
def _validate(self, data, owner=None): """Validate input data in returning an empty list if true. :param data: data to validate with this schema. :param Schema owner: schema owner. :raises: Exception if the data is not validated. """ if isinstance(data, DynamicValue): ...
python
def is_connected(self): """Returns *True* if the SMTP connection is initialized and connected. Otherwise returns *False*""" try: self._conn.noop() except (AttributeError, smtplib.SMTPServerDisconnected): return False else: return True
java
public static CommerceRegion findByPrimaryKey(long commerceRegionId) throws com.liferay.commerce.exception.NoSuchRegionException { return getPersistence().findByPrimaryKey(commerceRegionId); }
python
def to_env_dict(self): """Convert configuration object to a flat dictionary.""" entries = {} if self.has_value(): return {self.__to_env_var__(): self.node['value']} if self.has_default(): return {self.__to_env_var__(): self.node['default']} for k in self....
python
def _add_g2p_assoc(self, graph, strain_id, sex, assay_id, phenotypes, comment): """ Create an association between a sex-specific strain id and each of the phenotypes. Here, we create a genotype from the strain, and a sex-specific genotype. Each of those genotypes are crea...
python
def get_blob(self, repository_id, sha1, project=None, download=None, file_name=None, resolve_lfs=None): """GetBlob. Get a single blob. :param str repository_id: The name or ID of the repository. :param str sha1: SHA1 hash of the file. You can get the SHA1 of a file using the "Git/Items/G...
java
private void registerLocalChildBinding(Key<?> key, GinjectorBindings binding) { boundLocallyInChildren.put(key, binding); if (parent != null) { parent.registerLocalChildBinding(key, binding); } }
python
def get_last(self, type_, key): """ Notice: this will return the defaultdict default value also for keys that are not in the configuration, this is a tradeoff to keep the code simple. """ self._check_type(type_) with self._lock: return self._config[type_]['las...
python
def get_unit_spike_features(self, unit_id, feature_name, start_frame=None, end_frame=None): '''This function extracts the specified spike features from the specified unit. It will return spike features from within three ranges: [start_frame, t_start+1, ..., end_frame-1] [start_f...
python
def predicatesOut(G: Graph, n: Node) -> Set[TriplePredicate]: """ predicatesOut(G, n) is the set of predicates in arcsOut(G, n). """ return {p for p, _ in G.predicate_objects(n)}
python
def get_roots(self): """ Returns a list of roots of the graph. Examples -------- >>> from pgmpy.base import DAG >>> graph = DAG([('A', 'B'), ('B', 'C'), ('B', 'D'), ('E', 'B')]) >>> graph.get_roots() ['A', 'E'] """ return [node for node, i...
java
void write(Writer out) throws IOException { out.write("<frame scrolling=\""+scrolling+"\""+resize+border); if(src!=null) out.write(" src=\""+src+"\""); if(name!=null) out.write(" name=\""+name+"\""); out.write(">"); }
python
def _format_num(self, value): """Return the number value for value, given this field's `num_type`.""" # (value is True or value is False) is ~5x faster than isinstance(value, bool) if value is True or value is False: raise TypeError('value must be a Number, not a boolean.') r...
python
def _writeSuperJunctions(self, superJunctions, fileObject): """ Write SuperJunctions to File Method """ for sjunc in superJunctions: fileObject.write('SJUNC %s %.2f %.2f %.6f %s %s %s %.6f %.6f\n' % ( sjunc.sjuncNumber, sjunc.groundSur...
python
def _filter_filecommands(self, filecmd_iter): """Return the filecommands filtered by includes & excludes. :return: a list of FileCommand objects """ if self.includes is None and self.excludes is None: return list(filecmd_iter()) # Do the filtering, adjusting for the...
java
@Nonnull public static ESuccess visualize (@Nonnull final EEbInterfaceVersion eVersion, @Nonnull final Source aSource, @Nonnull final Result aResult) { ValueEnforcer.notNull (eVersion, "version"); // Get cache XSL templates final T...
python
def _list_or_args(self, keys, args): """ Shamelessly copied from redis-py. """ # returns a single list combining keys and args try: iter(keys) # a string can be iterated, but indicates # keys wasn't passed as a list if isinstance(ke...
java
@Override public Credential getPrefillCredential() { if (this.prefillCredential == null) { if (cm.getSubjectFactory() == null || cm.getConnectionManagerConfiguration().getSecurityDomain() == null) { prefillCredential = new Credential(null, null); } else ...
python
def compute(self, inputs, outputs): """ Run one iteration of TemporalPoolerRegion's compute. Note that if the reset signal is True (1) we assume this iteration represents the *end* of a sequence. The output will contain the pooled representation to this point and any history will then be reset. The...
python
def create_from_image(cls, imdata, positions, size, fluxes=None, mask=None, mode='mean', subsampling=1, fix_nan=False): """ Create a discrete point response function (PRF) from image data. Given a list of positions and size this function estim...
python
def match_agent_id(self, agent_id, match): """Matches the agent identified by the given ``Id``. arg: agent_id (osid.id.Id): the Id of the ``Agent`` arg: match (boolean): ``true`` if a positive match, ``false`` for a negative match raise: NullArgument - ``agent_id`...
python
def add_preference(hdf5_file, preference): """Assign the value 'preference' to the diagonal entries of the matrix of similarities stored in the HDF5 data structure at 'hdf5_file'. """ Worker.hdf5_lock.acquire() with tables.open_file(hdf5_file, 'r+') as fileh: S = fileh.roo...
java
public boolean isAffected(byte b) throws IllegalArgumentException { if (this.status.length < (b / 8)) { throw new IllegalArgumentException("Argument exceeds status!"); } int index_l = (b / 8); int index = b % 8; // number of bit to lit... ech int n2Pattern = (int) Ma...
python
def property_absent(name, property): ''' Ensure property is absent name : string name of the zone property : string name of property .. note:: This does a zoneacfg clear call. So the property may be reset to a default value! Does has the side effect of always having...
java
public IfcServiceLifeTypeEnum createIfcServiceLifeTypeEnumFromString(EDataType eDataType, String initialValue) { IfcServiceLifeTypeEnum result = IfcServiceLifeTypeEnum.get(initialValue); if (result == null) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator o...
java
public static String buitify(String string) { char[] chars = string.toCharArray(); StringBuilder sb = new StringBuilder(); int lastApplied=0; for(int i=0; i<chars.length;i++) { char pCh = i>0?chars[i-1]:0; char ch = chars[i]; if(ch=='_' || ch=='-' || Character.isWhitespace(ch)) { sb.append(ch...
java
@Override public ComparableEqu convert(final String valueStr, final boolean _caseSensitive, final Object target) throws ParseException { try { return ComparableEqu.compile(valueStr); } catch (final Exception pse) { throw new ParseException(pse...
java
public void throwException() throws BufferUnderflowException, BufferOverflowException, UnmappableCharacterException, MalformedInputException, CharacterCodingException { switch (this.type) { case TYPE_UNDERFLOW: throw new BufferUnderflowException(); ...
python
def _execute_query( self, sqlQuery): """* execute query and trim results* **Key Arguments:** - ``sqlQuery`` -- the sql database query to grab low-resolution results. **Return:** - ``databaseRows`` -- the database rows found on HTM trixles with re...
java
public void setByoipCidrs(java.util.Collection<ByoipCidr> byoipCidrs) { if (byoipCidrs == null) { this.byoipCidrs = null; return; } this.byoipCidrs = new com.amazonaws.internal.SdkInternalList<ByoipCidr>(byoipCidrs); }
java
@Override public void handle(String chargingStationId, JsonObject commandObject, IdentityContext identityContext) throws UserIdentityUnauthorizedException { ChargingStationId csId = new ChargingStationId(chargingStationId); if (!commandAuthorizationService.isAuthorized(csId, identityContext.getUser...
python
def normals(triangles=None, crosses=None): """ Calculates the normals of input triangles Parameters ------------ triangles : (n, 3, 3) float Vertex positions crosses : (n, 3) float Cross products of edge vectors Returns ------------ normals : (m, 3) float Normal v...
python
def handle_data(self, context, data, dt): """ Calls the callable only when the rule is triggered. """ if self.rule.should_trigger(dt): self.callback(context, data)
python
def _parse_list_buckets(self, (response, xml_bytes)): """ Parse XML bucket list response. """ root = XML(xml_bytes) buckets = [] for bucket_data in root.find("Buckets"): name = bucket_data.findtext("Name") date_text = bucket_data.findtext("Creation...
python
def get_freesasa_annotations_parallelize(self, sc, include_hetatms=False, representatives_only=True, force_rerun=False): """Run freesasa on structures and store calculations. Annotations are stored in the protein structure's chain sequence at: ``<cha...
python
def setup_editorstack(self, parent, layout): """Setup editorstack's layout""" layout.setSpacing(1) self.fname_label = QLabel() self.fname_label.setStyleSheet( "QLabel {margin: 0px; padding: 3px;}") layout.addWidget(self.fname_label) menu_btn = creat...
python
def from_file_obj(cls, fp): """ Init a new object from a file-like object. Not for Outlook msg. Args: fp (file-like object): file-like object of raw email Returns: Instance of MailParser """ log.debug("Parsing email from file object") ...
java
public static Api fromXML(final String xml) throws Exception { Api result=null; try { result=apifactory.fromXML(xml); } catch (JAXBException je) { LOGGER.log(Level.SEVERE,je.getMessage()); LOGGER.log(Level.INFO,xml); throw je; } return result; }
java
@Override public void open(FileInputSplit split) throws IOException { super.open(split); LOG.debug("Initialize Ethereum reader"); // temporary measure to set buffer size to 1, otherwise we cannot guarantee that checkpointing works ebr = new EthereumBlockReader(this.stream,this.maxSizeEthereumBlock,1,this.useDi...
python
def factory(cls, object_source): """Return a proper object """ if object_source.type is ObjectRaw.Types.object: return ObjectObject(object_source) elif object_source.type not in ObjectRaw.Types or object_source.type is ObjectRaw.Types.type: return ObjectType(objec...
python
def _get_doc_by_line_offset(self, doc_id): """ Load document from xml using line offset information. This is much slower than _get_doc_by_raw_offset but should work everywhere. """ bounds = self._get_meta()[str(doc_id)].bounds return xml_utils.load_chunk(self.file...
java
public static String removeAllEmojis(String str) { EmojiTransformer emojiTransformer = new EmojiTransformer() { public String transform(UnicodeCandidate unicodeCandidate) { return ""; } }; return parseFromUnicode(str, emojiTransformer); }
java
public <T> void addColumn(Connection connection, Attribute<T, ?> attribute) { addColumn(connection, attribute, true); }
java
public static String getRpcUrl( String hostname, int port, String endpointName, HighAvailabilityServicesUtils.AddressResolution addressResolution, AkkaProtocol akkaProtocol) throws UnknownHostException { checkNotNull(hostname, "hostname is null"); checkNotNull(endpointName, "endpointName is null"); ...
python
def get_object(self, request, *args, **kwargs): """ Handles the considered object. """ forum_pk = kwargs.get('forum_pk', None) descendants = kwargs.get('descendants', None) self.user = request.user if forum_pk: forum = get_object_or_404(Forum, pk=forum_pk) ...
java
@Override public void execute() throws MojoExecutionException { boolean withExtensions = CollectionUtils.isNotEmpty( jnlpExtensions ); if ( withExtensions ) { prepareExtensions(); findDefaultJnlpExtensionTemplateURL(); } checkInput()...
java
public static String getProcessRoot(Long pipelineId) { // 根据channelId , pipelineId构造path return MessageFormat.format(ArbitrateConstants.NODE_PROCESS_ROOT, getChannelId(pipelineId), String.valueOf(pipelineId)); }
java
public void marshall(AttributeType attributeType, ProtocolMarshaller protocolMarshaller) { if (attributeType == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(attributeType.getName(), NAME_BINDING); ...
python
def find_suggestions(self, sentence): """ Search all possible suggestions. Suggestions returned always have at least one document matching. Arguments: sentence --- keywords (single strings) for which we want suggestions Return: An array of...
java
private void transferToSpecificBuilderAndReset() { // version if (currentTag == Tag.VERSION) { dataBuilder.setVersion(buffer.toString()); } // robot browser addToRobotBuilder(); // build browser addToBrowserBuilder(); // build operating system addToOperatingSystemBuilder(); // build browser ...
java
@Override public Card update(Map<String, Object> params, RequestOptions options) throws StripeException { String url; if (this.getAccount() != null) { url = String.format( "%s%s", Stripe.getApiBase(), String.format( "/v1/accounts/%s/e...
java
private String key(ManageableRepository repository, String workspaceName) { String repositoryName = repository.getConfiguration().getName(); return repositoryName + workspaceName; }
java
public static synchronized GeoLocationManager getInstanceFor(XMPPConnection connection) { GeoLocationManager geoLocationManager = INSTANCES.get(connection); if (geoLocationManager == null) { geoLocationManager = new GeoLocationManager(connection); INSTANCES.put(connection, geoLoc...
java
@Override public ObservableList<Item> getPropertySheetItems() { ObservableList<Item> items = super.getPropertySheetItems(); items.add(new Item() { @Override public Optional<ObservableValue<?>> getObservableValue() { return Optional.of(showWeekdaysProperty())...
python
def ftr_process(url=None, content=None, config=None, base_url=None): u""" process an URL, or some already fetched content from a given URL. :param url: The URL of article to extract. Can be ``None``, but only if you provide both ``content`` and ``config`` parameters. :type url: str, unicode...
java
protected @Nonnull File getLogDir() { File dir = new File(Jenkins.getInstance().getRootDir(),"logs/slaves/"+nodeName); if (!dir.exists() && !dir.mkdirs()) { LOGGER.severe("Failed to create agent log directory " + dir.getAbsolutePath()); } return dir; }
java
@Override public Request<StopInstancesRequest> getDryRunRequest() { Request<StopInstancesRequest> request = new StopInstancesRequestMarshaller().marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; }
java
public static <T> T validate(InputStream input, final Class<T> clazz) throws IOException { return JSON.parseObject(input, clazz); }
python
def get_SAM(self,min_intron_size=68): """Get a SAM object representation of the alignment. :returns: SAM representation :rtype: SAM """ from seqtools.format.sam import SAM #ar is target then query qname = self.alignment_ranges[0][1].chr flag = 0 if self.strand == '-': flag = 16 ...
python
def _process_reply(self, reply): """ take the cleverbot.com response and populate properties. """ self.cs = reply.get("cs", None) self.count = int(reply.get("interaction_count", None)) self.output = reply.get("output", None) self.convo_id = reply.get("conversation_id", None) ...