language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
private Map<Set<ServerIdentity>, ModelNode> getServerSystemPropertyOperations(ModelNode operation, PathAddress address, Level level, ModelNode domain, String affectedGroup, ModelNode host) { Map<Set<ServerIdentity>, ModelNode> re...
java
public static boolean containsIgnoreCase(final CharSequence str, final CharSequence searchStr) { if (str == null || searchStr == null) { return false; } final int len = searchStr.length(); final int max = str.length() - len; for (int i = 0; i <= max; i++) { ...
python
def _import_status(data, item, repo_name, repo_tag): ''' Process a status update from docker import, updating the data structure ''' status = item['status'] try: if 'Downloading from' in status: return elif all(x in string.hexdigits for x in status): # Status ...
python
def _process_disease2gene(self, row): """ Here, we process the disease-to-gene associations. Note that we ONLY process direct associations (not inferred through chemicals). Furthermore, we also ONLY process "marker/mechanism" associations. We preferentially utilize OMIM ...
java
@Override public void doAbortSessionRequestEvent(ClientAuthSession appSession, AbortSessionRequest asr) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException { logger.info("Diameter Gq AuthorizationSessionFactory :: doAbortSessionRequestEvent :: appSession[{}], ASR[{}...
python
def add_and_filter(self, *values): """ Add a filter using "AND" logic. This filter is useful when requiring multiple matches to evaluate to true. For example, searching for a specific IP address in the src field and another in the dst field. .. seealso:: :class:`smc_...
java
public static @Nullable String getPrefix(@NonNull View view) { return prefixes.get(view.getId()); }
python
def port_channel_redundancy_group_group_id(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") port_channel_redundancy_group = ET.SubElement(config, "port-channel-redundancy-group", xmlns="urn:brocade.com:mgmt:brocade-lag") group_id = ET.SubElement(port_chan...
java
public static TableId of(String dataset, String table) { return new TableId(null, checkNotNull(dataset), checkNotNull(table)); }
python
def randomSlugField(self): """ Return the unique slug by generating the uuid4 to fix the duplicate slug (unique=True) """ lst = [ "sample-slug-{}".format(uuid.uuid4().hex), "awesome-djipsum-{}".format(uuid.uuid4().hex), "unique-slug-{}".format(...
java
@Override public void upload(String path, InputStream payload, long payloadSize) { try { ObjectMetadata objectMetadata = new ObjectMetadata(); objectMetadata.setContentType(CONTENT_TYPE); objectMetadata.setContentLength(payloadSize); PutObjectRequest request =...
java
public Ontology parseOBO( BufferedReader oboFile, String ontoName, String ontoDescription ) throws ParseException, IOException { try { OntologyFactory factory = OntoTools.getDefaultFactory(); Ontology ontology = factory.createOntology(ontoName, ontoDescription); OboFileParser parser = new ...
java
public void ifge(String target) throws IOException { if (wideIndex) { out.writeByte(NOT_IFGE); out.writeShort(WIDEFIXOFFSET); Branch branch = createBranch(target); out.writeByte(GOTO_W); out.writeInt(branch); } else ...
java
public static void addAction(Set<Action> aas, Action action, boolean condition) { if (condition) { aas.add(action); } }
java
@Override public void doRender(final WComponent component, final WebXmlRenderContext renderContext) { WPasswordField field = (WPasswordField) component; XmlStringBuilder xml = renderContext.getWriter(); boolean readOnly = field.isReadOnly(); xml.appendTagOpen(TAG_NAME); xml.appendAttribute("id", component....
python
def extract_texkeys_from_pdf(pdf_file): """ Extract the texkeys from the given PDF file This is done by looking up the named destinations in the PDF @param pdf_file: path to a PDF @return: list of all texkeys found in the PDF """ with open(pdf_file, 'rb') as pdf_stream: try: ...
python
def build_filename(self, binary): """Return the proposed filename with extension for the binary.""" return '%(TIMESTAMP)s%(BRANCH)s%(DEBUG)s-%(NAME)s' % { 'TIMESTAMP': self.timestamp + '-' if self.timestamp else '', 'BRANCH': self.branch, 'DEBUG': '-debug' if self.de...
java
public static boolean isAllowedKeyType(SoyType type) { switch (type.getKind()) { case BOOL: case INT: case FLOAT: case STRING: case PROTO_ENUM: return true; default: return type == SoyTypes.NUMBER_TYPE; } }
python
def download(model=None, direct=False, *pip_args): """ Download compatible model from default download path using pip. Model can be shortcut, model name or, if --direct flag is set, full model name with version. """ if model is None: model = about.__default_corpus__ if direct: ...
java
@Nonnull private String _readAndParseCSS (@Nonnull final IHasInputStream aISP, @Nonnull @Nonempty final String sBasePath, final boolean bRegular) { final CascadingStyleSheet aCSS = CSSReader.readFromStream (aISP, m_aCharset, ECSSVersion.CSS30...
python
async def raw(self, key, *, dc=None, watch=None, consistency=None): """Returns the specified key Parameters: key (str): Key to fetch dc (str): Specify datacenter that will be used. Defaults to the agent's local datacenter. watch (Blocking): Do a...
java
@SuppressWarnings("deprecation") public List<String> compileToJsSrc( SoyJsSrcOptions jsSrcOptions, @Nullable SoyMsgBundle msgBundle) { resetErrorReporter(); // JS has traditionally allowed unknown globals, as a way for soy to reference normal js enums // and constants. For consistency/reusability of...
python
def drain_transport(self): ''' "Drain" the transport connection. This command simply returns all waiting messages sent from the remote chrome instance. This can be useful when waiting for a specific asynchronous message from chrome, but higher level calls are better suited for managing wait-for-message typ...
python
def run(self): """ Begins the runtime execution. """ iterations = 0 queue = self.queue.tick() while True: try: next(queue) except StopIteration: break iterations += 1 sleep(self.sleep_time) return it...
java
public static HistogramDataPoint decodeHistogramDataPoint(final TSDB tsdb, final long base_time, final byte[] qualifier, final byte[] value...
java
@Override public void launch(@NonNull ThreadingModel threading) { this.threadingModel = threading; switch (threading) { case SINGLE_THREAD: { log.warn("SINGLE_THREAD model is used, performance will be significantly reduced"); // single thread for all qu...
python
def calculateFirstDifference(filePath, outputFilePath): """ Create an auxiliary data file that contains first difference of the predicted field :param filePath: path of the original data file """ predictedField = SWARM_CONFIG['inferenceArgs']['predictedField'] data = pd.read_csv(filePath, heade...
python
def mr_dim_ind(self): """Return int, tuple of int, or None, representing MR indices. The return value represents the index of each multiple-response (MR) dimension in this cube. Return value is None if there are no MR dimensions, and int if there is one MR dimension, and a tuple of int ...
java
public static Table columnPercents(Table table, String column1, String column2) { return columnPercents(table, table.categoricalColumn(column1), table.categoricalColumn(column2)); }
java
public EventsResults getByType(String appId, EventType eventType, String timespan, String filter, String search, String orderby, String select, Integer skip, Integer top, String format, Boolean count, String apply) { return getByTypeWithServiceResponseAsync(appId, eventType, timespan, filter, search, orderby, s...
java
public boolean installed(Class<?> component) { Preconditions.checkArgument(component != null, "Parameter 'component' must not be [" + component + "]"); return installed.contains(component); }
java
@Override public void visitClassContext(ClassContext clsContext) { try { stack = new OpcodeStack(); super.visitClassContext(clsContext); } finally { stack = null; } }
java
public int readInt() throws IOException { int byte1 = in.read(); int byte2 = in.read(); int byte3 = in.read(); int byte4 = in.read(); if (byte4 < 0) { throw new EOFException(); } return (byte4 << 24) | ((byte3 << 24) >>> 8) ...
python
async def fetch_data(self): """Get the latest data from EBox.""" # Get http session await self._get_httpsession() # Get login page token = await self._get_login_page() # Post login page await self._post_login_page(token) # Get home data home_data =...
python
def read_in_survey_parameters( log, pathToSettingsFile ): """ *First reads in the mcs_settings.yaml file to determine the name of the settings file to read in the survey parameters.* **Key Arguments:** - ``log`` -- logger - ``pathToSettingsFile`` -- path to the settings file for the...
java
public com.google.api.ads.admanager.axis.v201808.PremiumAdjustmentType getAdjustmentType() { return adjustmentType; }
java
public static Method copyMethod(Method method) { try { if (jlrMethodRootField != null) { jlrMethodRootField.set(method, null); } return (Method) jlrMethodCopy.invoke(method); } catch (Exception e) { log.log(Level.SEVERE, "Problems copying method. Incompatible JVM?", e); return method; // return...
python
def _clear(self) -> None: """ Resets the internal state of the simulator, and sets the simulated clock back to 0.0. This discards all outstanding events and tears down hanging process instances. """ for _, event, _, _ in self.events(): if hasattr(event, "__self__") an...
python
def save(self, *objs, condition=None, atomic=False) -> "WriteTransaction": """ Add one or more objects to be saved in this transaction. At most 10 items can be checked, saved, or deleted in the same transaction. The same idempotency token will be used for a single prepared transaction,...
java
public AuthMethod getAcceptableAuthMethod(Set<Class> acceptableAuthMethodClasses) throws NexmoUnacceptableAuthException { for (AuthMethod availableAuthMethod : this.authList) { if (acceptableAuthMethodClasses.contains(availableAuthMethod.getClass())) { return availableAuthMethod; ...
python
def _package_conf_file_to_dir(file_name): ''' Convert a config file to a config directory. ''' if file_name in SUPPORTED_CONFS: path = BASE_PATH.format(file_name) if os.path.exists(path): if os.path.isdir(path): return False else: o...
java
public static Source retrieve(String source) throws StripeException { return retrieve(source, (Map<String, Object>) null, (RequestOptions) null); }
java
@Override public void eSet(int featureID, Object newValue) { switch (featureID) { case SimpleAntlrPackage.AND_EXPRESSION__LEFT: setLeft((Expression)newValue); return; case SimpleAntlrPackage.AND_EXPRESSION__RIGHT: setRight((Expression)newValue); return; } ...
python
def _multi_rpush_pipeline(self, pipe, queue, values, bulk_size=0): ''' Pushes multiple elements to a list in a given pipeline If bulk_size is set it will execute the pipeline every bulk_size elements ''' cont = 0 for value in values: pipe.rpush(queue, value)...
java
public CreateLaunchConfigurationRequest withClassicLinkVPCSecurityGroups(String... classicLinkVPCSecurityGroups) { if (this.classicLinkVPCSecurityGroups == null) { setClassicLinkVPCSecurityGroups(new com.amazonaws.internal.SdkInternalList<String>(classicLinkVPCSecurityGroups.length)); } ...
python
def _read_dataframe(filename): """ Reads the original dataset TSV as a pandas dataframe """ # delay importing this to avoid another dependency import pandas # read in triples of user/artist/playcount from the input dataset # get a model based off the input params start = time.time() log.deb...
java
public static Footprint measure(Object rootObject, Predicate<Object> objectAcceptor) { Preconditions.checkNotNull(objectAcceptor, "predicate"); Predicate<Chain> completePredicate = Predicates.and(ImmutableList.of( ObjectExplorer.notEnumFieldsOrClasses, new ObjectExplorer.AtMostOncePredicate(), ...
java
public void setProperty(String name, Object value) { Params.notNullOrEmpty(name, "Property name"); if(value != null) { properties.setProperty(name, converter.asString(value)); } }
python
def follow_tail(self): """ Read (tail and follow) the log file, parse entries and send messages to Sentry using Raven. """ try: follower = tailhead.follow_path(self.filepath) except (FileNotFoundError, PermissionError) as err: raise SystemExit("Er...
python
def plot_histogram(self, title_prefix="", title_override="", figsize=(8, 6)): """ Plots a histogram of the results after the Monte Carlo simulation is run. NOTE- This method must be called AFTER "roll_mc". :param title_prefix: If desired, prefix the title (s...
python
def _generate_derived_key(password, salt=None, iterations=None): """ Generate a derived key by feeding 'password' to the Password-Based Key Derivation Function (PBKDF2). pyca/cryptography's PBKDF2 implementation is used in this module. 'salt' may be specified so that a previous derived key may be regenerate...
java
public static Map<String, String> params1st(){ //TODO: candidate for performance optimization Map<String, String> params = new HashMap<>(); Enumeration names = RequestContext.getHttpRequest().getParameterNames(); while (names.hasMoreElements()) { String name = names.nextEleme...
python
def least_squares(Cui, X, Y, regularization, num_threads=0): """ For each user in Cui, calculate factors Xu for them using least squares on Y. Note: this is at least 10 times slower than the cython version included here. """ users, n_factors = X.shape YtY = Y.T.dot(Y) for u in range(us...
python
def bbox(ctx, tile): """Print Tile bounding box as geometry.""" geom = TilePyramid( ctx.obj['grid'], tile_size=ctx.obj['tile_size'], metatiling=ctx.obj['metatiling'] ).tile(*tile).bbox(pixelbuffer=ctx.obj['pixelbuffer']) if ctx.obj['output_format'] in ['WKT', 'Tile']: cli...
java
static public void recursiveCreateDirectory(FTPClient ftpClient, String path) throws IOException { logger.info("Create Directory: {}", path); int createDirectoryStatus = ftpClient.mkd(path); // makeDirectory... logger.debug("Create Directory Status: {}", createDirectoryStatus); if (createDirectoryStatus == ...
python
def download_async(self, remote_path, local_path, callback=None): """Downloads remote resources from WebDAV server asynchronously :param remote_path: the path to remote resource on WebDAV server. Can be file and directory. :param local_path: the path to save resource locally. :param cal...
python
def evaluate_familytree(self, family_tree, image_set): """ Evaluate strategy for the given family tree and return a dict of images to analyze that match the strategy :param family_tree: the family tree to traverse and evaluate :param image_set: list of all images in the context ...
java
public static MutableIntTuple inclusiveScan( IntTuple t0, IntBinaryOperator op, MutableIntTuple result) { result = IntTuples.validate(t0, result); int n = t0.getSize(); if (n > 0) { result.set(0, t0.get(0)); for (int i=1; i<n; i++) ...
java
public static <V extends FeatureVector<?>> VectorFieldTypeInformation<V> typeRequest(Class<? super V> cls) { return new VectorFieldTypeInformation<>(cls, -1, Integer.MAX_VALUE); }
java
public void set(String name, Object obj) throws IOException { if (!(obj instanceof X500Name)) { throw new IOException("Attribute must be of type X500Name."); } if (name.equalsIgnoreCase(DN_NAME)) { this.dnName = (X500Name)obj; this.dnPrincipal = null; ...
java
public static List<Chart> getDetailCharts(ReportLayout reportLayout) { List<Chart> charts = new ArrayList<Chart>(); Band band = reportLayout.getDetailBand(); for (int i = 0, rows = band.getRowCount(); i < rows; i++) { List<BandElement> list = band.getRow(i); for (int j = 0, size = list.size(); j < size; j+...
java
@Override protected String serialize(InvocationContext context, Object input) { if(unavailable || incompatible) { throw new IllegalStateException(unavailable? ERROR_CONTEXT_UNAVAILABLE :ERROR_CONTEXT_INCOMPATIBLE); } if(input == null) { return null; } try { ByteArrayOutputStream...
java
public void setCPInstanceService( com.liferay.commerce.product.service.CPInstanceService cpInstanceService) { this.cpInstanceService = cpInstanceService; }
python
def get_port_profile_status_input_request_type_getnext_request_last_received_port_profile_info_profile_mac(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_port_profile_status = ET.Element("get_port_profile_status") config = get_port_profile_status ...
python
def _process_one_indirect_jump(self, jump): """ Resolve a given indirect jump. :param IndirectJump jump: The IndirectJump instance. :return: A set of resolved indirect jump targets (ints). """ resolved = False resolved_by = None targets = None ...
java
public ServiceFuture<StreamingJobInner> beginCreateOrReplaceAsync(String resourceGroupName, String jobName, StreamingJobInner streamingJob, String ifMatch, String ifNoneMatch, final ServiceCallback<StreamingJobInner> serviceCallback) { return ServiceFuture.fromHeaderResponse(beginCreateOrReplaceWithServiceRespo...
python
def prettify(amount, separator=','): """Separate with predefined separator.""" orig = str(amount) new = re.sub("^(-?\d+)(\d{3})", "\g<1>{0}\g<2>".format(separator), str(amount)) if orig == new: return new else: return prettify(new)
python
def get_ip(request): """Return the IP address inside the HTTP_X_FORWARDED_FOR var inside the `request` object. The return of this function can be overrided by the `LOCAL_GEOLOCATION_IP` variable in the `conf` module. This function will skip local IPs (starting with 10. and equals to 127.0.0.1)...
java
public void nextRangeMaximumAvailable() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "nextRangeMaximumAvailable"); synchronized (_globalUniqueLock) { _globalUniqueThreshold = _globalUniqueLimit + _midrange; _globalUniqueLimit ...
java
public DecomposableMatch3<T, A, B, C> build() { return new DecomposableMatch3<>(fieldMatchers, extractedIndexes, fieldExtractor); }
python
def _parse_tree(self, node): """ Parse a <require> object """ self.kind = node.tag if 'compare' in node.attrib: self.compare = node.attrib['compare'] if 'version' in node.attrib: self.version = node.attrib['version'] self.value = node.text
python
def begin_transaction(self, project_id, transaction_options=None): """Perform a ``beginTransaction`` request. :type project_id: str :param project_id: The project to connect to. This is usually your project name in the cloud console. :type transaction_options...
python
def get_table(self, tablename): """ Returns the table whoose name is tablename. """ temp = filter(lambda x: x.name == tablename, self.tables) if temp == list(): raise Exception("No such table") return temp[0]
python
async def AddPendingResources(self, addcharmwithauthorization, entity, resources): ''' addcharmwithauthorization : AddCharmWithAuthorization entity : Entity resources : typing.Sequence[~CharmResource] Returns -> typing.Union[_ForwardRef('ErrorResult'), typing.Sequence[str]] ...
python
def get_matcher(self, reqt): """ Get a version matcher for a requirement. :param reqt: The requirement :type reqt: str :return: A version matcher (an instance of :class:`distlib.version.Matcher`). """ try: matcher = self.scheme.matcher...
java
public static String getCompressedStringFromGuid(Guid guid) { long[] num = new long[6]; char[][] str = new char[6][5]; int i,j,n; String result = new String(); // // Creation of six 32 Bit integers from the components of the GUID structure // num[0] = (long)(guid.Data1 / 167772...
python
def find_nonterminals_reachable_by_unit_rules(grammar): # type: (Grammar) -> UnitSymbolReachability """ Get nonterminal for which exist unit rule :param grammar: Grammar where to search :return: Instance of UnitSymbolReachability. """ # get nonterminals nonterminals = list(grammar.nonter...
python
def re_size(image, factor=1): """ resizes image with nx x ny to nx/factor x ny/factor :param image: 2d image with shape (nx,ny) :param factor: integer >=1 :return: """ if factor < 1: raise ValueError('scaling factor in re-sizing %s < 1' %factor) f = int(factor) nx, ny = np.sh...
java
public static ProtocolNegotiator serverPlaintext() { return new ProtocolNegotiator() { @Override public ChannelHandler newHandler(final GrpcHttp2ConnectionHandler handler) { class PlaintextHandler extends ChannelHandlerAdapter { @Override public void handlerAdded(ChannelHandl...
java
public static <T> Iterable<T> merge(Iterable<T>... iterables) { return merge(null, iterables); }
python
def diffusionCount(source, target, sourceType = "raw", extraValue = None, pandasFriendly = False, compareCounts = False, numAuthors = True, useAllAuthors = True, _ProgBar = None, extraMapping = None): """Takes in two [RecordCollections](../classes/RecordCollection.html#metaknowledge.RecordCollection) and produces ...
java
public void marshall(PutSigningProfileRequest putSigningProfileRequest, ProtocolMarshaller protocolMarshaller) { if (putSigningProfileRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(putSign...
python
def update_mandb(self, quiet=True): """Update mandb.""" if not environ.config.UpdateManPath: return print('\nrunning mandb...') cmd = 'mandb %s' % (' -q' if quiet else '') subprocess.Popen(cmd, shell=True).wait()
java
@SuppressWarnings("unchecked") public <T> T readAsObject(byte[] content, Class<T> type) { try { if (content == null || content.length == 0 || type == null) { log.debug("content为{},type为:{}", content, type); return null; } else if (type.equals(String.cl...
java
@Nullable @SuppressWarnings("FloatingPointEquality") private static HttpEncodingType determineEncoding(String acceptEncoding) { float starQ = -1.0f; float gzipQ = -1.0f; float deflateQ = -1.0f; for (String encoding : acceptEncoding.split(",")) { float q = 1.0f; ...
java
public List<SequenceState<S, O, D>> computeMostLikelySequence() { if (message == null) { // Return empty most likely sequence if there are no time steps or if initial // observations caused an HMM break. return new ArrayList<>(); } else { return retrieveMo...
java
public void removePropertyChangeListener( String propertyName, PropertyChangeListener listener) { if (listener == null || propertyName == null) { return; } listener = this.map.extract(listener); if (listener != null) { this.map.remo...
python
def adjustColors(self, mode='dark'): """ Change a few colors depending on the mode to use. The default mode doesn't assume anything and avoid using white & black colors. The dark mode use white and avoid dark blue while the light mode use black and avoid yellow, to give a few exa...
java
@Override public com.liferay.commerce.model.CommerceShipmentItem updateCommerceShipmentItem( com.liferay.commerce.model.CommerceShipmentItem commerceShipmentItem) { return _commerceShipmentItemLocalService.updateCommerceShipmentItem(commerceShipmentItem); }
python
def temporary_unavailable(request, template_name='503.html'): """ Default 503 handler, which looks for the requested URL in the redirects table, redirects if found, and displays 404 page if not redirected. Templates: ``503.html`` Context: request_path The path of the request...
python
def _recoverable(self, method, *args, **kwargs): """Wraps a method to recover the stream and retry on error. If a retryable error occurs while making the call, then the stream will be re-opened and the method will be retried. This happens indefinitely so long as the error is a retryable...
java
public Map<String, Object> executeCdpCommand(String commandName, Map<String, Object> parameters) { Objects.requireNonNull(commandName, "Command name must be set."); Objects.requireNonNull(parameters, "Parameters for command must be set."); @SuppressWarnings("unchecked") Map<String, Object> toReturn = (...
java
private int doWriteMultiple(ChannelOutboundBuffer in) throws Exception { final long maxBytesPerGatheringWrite = config().getMaxBytesPerGatheringWrite(); IovArray array = ((EpollEventLoop) eventLoop()).cleanIovArray(); array.maxBytes(maxBytesPerGatheringWrite); in.forEachFlushedMessage(ar...
python
def to_geopandas(raster, **kwargs): """ Convert GeoRaster to GeoPandas DataFrame, which can be easily exported to other types of files and used to do other types of operations. The DataFrame has the geometry (Polygon), row, col, value, x, and y values for each cell Usage: df = gr.to_geopanda...
java
void measure(Registry registry, JmxData data, List<Measurement> ms) { Map<String, String> tags = tagMappings.entrySet().stream().collect(Collectors.toMap( Map.Entry::getKey, e -> MappingExpr.substitute(e.getValue(), data.getStringAttrs()) )); Id id = registry .createId(MappingExpr.su...
python
def dumpJSON(self): """ Encodes current parameters to JSON compatible dictionary """ numexp = self.number.get() expTime, _, _, _, _ = self.timing() if numexp == 0: numexp = -1 data = dict( numexp=self.number.value(), app=self.a...
python
def is_gene_list(bed_file): """Check if the file is only a list of genes, not a BED """ with utils.open_gzipsafe(bed_file) as in_handle: for line in in_handle: if not line.startswith("#"): if len(line.split()) == 1: return True else: ...
java
protected I fixIndex(I idx) { //return idx; if (idx.size() < 2) { return idx; } NavigableMap<Integer, E> map = idx.getMapByNum(); Iterator<? extends Map.Entry<Integer, E>> it = map.entrySet().iterator(); // we have at least 2 elements in the iterator Map.Entry<Integer, E> curr = it.ne...
python
def getitem_in(obj, name): """ Finds a key in @obj via a period-delimited string @name. @obj: (#dict) @name: (#str) |.|-separated keys to search @obj in .. obj = {'foo': {'bar': {'baz': True}}} getitem_in(obj, 'foo.bar.baz') .. |True| """ for p...
java
@Override public void init(String jsonString) throws IndexerException { try { config = new JsonSimpleConfig(jsonString); init(); } catch (IOException e) { throw new IndexerException(e); } }