{"added": "2026-12-05", "author": "mpatric/mp3agic", "created": "2019", "id": "6ac0f0376fbd066e2d8aa7b0", "license": "MIT", "source": "code_search_net", "text": "/*\n'recording time' (TDRC) replaces the deprecated frames 'TDAT - Date', 'TIME - Time',\n'TRDA - Recording dates' and 'TYER - Year' in 4.0\n\npublic String getRecordingTime() {\n\t\tID3v2TextFrameData frameData = extractTextFrameData(ID_RECTIME);\n\t\tif (frameData != null && frameData.getText() != null)\n\t\t\treturn frameData.getText().toString();\n\t\treturn null;\n\t}", "token_count": 100} {"added": "2026-12-05", "author": "OpenLiberty/open-liberty", "created": "2019", "id": "dfbc6617a980457b98b80cb1", "license": "EPL-2.0", "source": "code_search_net", "text": "Utility method that gets the onError setting.\nThis method should be invoked every time it is needed in order to allow for\nchanges to the onError setting.\n\n@return the onError setting if configured. Otherwise the default value.\n\nprivate final OnError ignoreWarnOrFail(TraceComponent tc) {\n String value = null;\n try {\n VariableRegistry variableRegistry = variableRegistrySvcRef.getService();\n String key = \"${\" + OnErrorUtil.CFG_KEY_ON_ERROR + \"}\";\n value = variableRegistry.resolveString(key);\n if (!key.equals(value))\n return OnError.valueOf(value.trim().toUpperCase());\n } catch (Exception x) {\n if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())\n Tr.debug(tc, \"onError: \" + value, x);\n }\n return OnErrorUtil.getDefaultOnError();\n }", "token_count": 169} {"added": "2026-12-05", "author": "JM-Lab/utils-java8", "created": "2019", "id": "c7003274b6f1da11207a110c", "license": "Apache-2.0", "source": "code_search_net", "text": "Gets cached buffered image of icon in os.\n\n@param path the path\n@return the cached buffered image of icon in os\n\npublic BufferedImage getCachedBufferedImageOfIconInOS(Path path) {\n\t\treturn getSpecialPathAsOpt(path)\n\t\t\t\t.map(getCachedBufferedImageFunction(path))\n\t\t\t\t.orElseGet(() -> buildCachedBufferedImageOfFileIconInOS(path));\n\t}", "token_count": 76} {"added": "2026-12-05", "author": "iipc/openwayback", "created": "2019", "id": "5da2d820132a43639725e376", "license": "Apache-2.0", "source": "code_search_net", "text": "/* (non-Javadoc)\n@see org.archive.wayback.ResourceIndex#query(org.archive.wayback.core.WaybackRequest)\n\npublic SearchResults query(WaybackRequest wbRequest)\n\t\tthrows ResourceIndexNotAvailableException,\n\t\tResourceNotInArchiveException, BadQueryException,\n\t\tAccessControlException {\n\t\t\n\t\tRangeGroup group = getRangeGroupForRequest(wbRequest);\n\t\treturn group.query(wbRequest);\n\t}", "token_count": 87} {"added": "2026-12-05", "author": "google/closure-compiler", "created": "2019", "id": "64b815a5b543858cfcd804ca", "license": "Apache-2.0", "source": "code_search_net", "text": "Normalizes the name and resolves it against the module roots.\n\nstatic String normalize(String path, Iterable moduleRootPaths) {\n String normalizedPath = path;\n if (isAmbiguousIdentifier(normalizedPath)) {\n normalizedPath = MODULE_SLASH + normalizedPath;\n }\n\n // Find a moduleRoot that this URI is under. If none, use as is.\n for (String moduleRoot : moduleRootPaths) {\n if (normalizedPath.startsWith(moduleRoot)) {\n // Make sure that e.g. path \"foobar/test.js\" is not matched by module \"foo\", by checking for\n // a leading slash.\n String trailing = normalizedPath.substring(moduleRoot.length());\n if (trailing.startsWith(MODULE_SLASH)) {\n return trailing.substring(MODULE_SLASH.length());\n }\n }\n }\n // Not underneath any of the roots.\n return path;\n }", "token_count": 185} {"added": "2026-12-05", "author": "aws/aws-sdk-java", "created": "2019", "id": "e5abab072364fa23f266358b", "license": "Apache-2.0", "source": "code_search_net", "text": "Asserts that the string represents a valid reference path expression.\n\n@param path Path expression to validate.\n@param propertyName Name of property.\n\npublic void assertIsValidReferencePath(String path, String propertyName) {\n if (path == null) {\n return;\n }\n if (path.isEmpty()) {\n problemReporter.report(new Problem(this, String.format(\"%s cannot be empty\", propertyName)));\n return;\n }\n }", "token_count": 84} {"added": "2026-12-05", "author": "liferay/com-liferay-commerce", "created": "2019", "id": "ba48d8bcecda07479f1fef86", "license": "LGPL-2.1", "source": "code_search_net", "text": "Returns an ordered range of all the commerce tier price entries where commercePriceEntryId = ?.\n\n

\nUseful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link CommerceTierPriceEntryModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n

\n\n@param commercePriceEntryId the commerce price entry ID\n@param start the lower bound of the range of commerce tier price entries\n@param end the upper bound of the range of commerce tier price entries (not inclusive)\n@param orderByComparator the comparator to order the results by (optionally null)\n@return the ordered range of matching commerce tier price entries\n\n@Override\n\tpublic List findByCommercePriceEntryId(\n\t\tlong commercePriceEntryId, int start, int end,\n\t\tOrderByComparator orderByComparator) {\n\t\treturn findByCommercePriceEntryId(commercePriceEntryId, start, end,\n\t\t\torderByComparator, true);\n\t}", "token_count": 397} {"added": "2026-12-05", "author": "katjahahn/PortEx", "created": "2019", "id": "686098dea962b619ff7cb7d0", "license": "Apache-2.0", "source": "code_search_net", "text": "Returns a description string of all pe headers (that is msdos header,\ncoff file header, optional header and section table).\n\n@return description string of all pe headers\n\npublic String getInfo() {\n ReportCreator reporter = new ReportCreator(this);\n return reporter.msdosHeaderReport() + reporter.coffHeaderReport() +\n reporter.optHeaderReport() + reporter.secTableReport();\n }", "token_count": 80} {"added": "2026-12-05", "author": "bazaarvoice/emodb", "created": "2019", "id": "c62b0a761cf7d57b70fc2a35", "license": "Apache-2.0", "source": "code_search_net", "text": "Parse the persistent JSON object into an AstyanaxTable.\nIf the master placement doesn't belong to this datacenter, this method will:\na. try to find a facade for this table that belongs to this datacenter\nb. If no facade is found, it will return the table in the master placement.\n\n@VisibleForTesting\n Table tableFromJson(TableJson json) {\n if (json.isDropped()) {\n return null;\n }\n String name = json.getTable();\n Map attributes = json.getAttributeMap();\n Storage masterStorage = json.getMasterStorage();\n String masterPlacement = masterStorage.getPlacement();\n Collection facades = json.getFacades();\n\n TableOptions options = new TableOptionsBuilder()\n .setPlacement(masterPlacement)\n .setFacades(ImmutableList.copyOf(Iterables.transform(facades, new Function() {\n @Override\n public FacadeOptions apply(Storage facade) {\n return new FacadeOptions(facade.getPlacement());\n }\n })))\n .build();\n\n Storage storageForDc = masterStorage;\n boolean available = true;\n if (!_placementFactory.isAvailablePlacement(masterPlacement)) {\n available = false;\n // The master placement does not belong to this datacenter. Let's see if we have a\n // facade that belongs to this datacenter. If not, we'll stick with the masterStorage.\n for (Storage facade : facades) {\n if (_placementFactory.isAvailablePlacement(facade.getPlacement())) {\n if (storageForDc.isFacade()) {\n // We found multiple facades for the same datacenter.\n throw new TableExistsException(format(\"Multiple facades found for table %s in %s\", name, _selfDataCenter), name);\n }\n storageForDc = facade;\n available = true;\n }\n }\n }\n\n return newTable(name, options, attributes, available, storageForDc);\n }", "token_count": 419} {"added": "2026-12-05", "author": "mapcode-foundation/mapcode-java", "created": "2019", "id": "8b78dbf9f632223147fecb64", "license": "Apache-2.0", "source": "code_search_net", "text": "Return the full international mapcode, including the full name of the territory and the mapcode code itself.\nThe format of the string is:\nfull-territory-name cde\n\nExample:\nNetherlands 49.4V (regular code)\nNetherlands 49.4V-K2 (high precision code)\n\n@param precision Precision specifier. Range: [0, 8].\n@param alphabet Alphabet.\n@return Full international mapcode.\n@throws IllegalArgumentException Thrown if precision is out of range (must be in [0, 8]).\n\n@Nonnull\n public String getCodeWithTerritoryFullname(final int precision, @Nullable final Alphabet alphabet) throws IllegalArgumentException {\n return territory.getFullName() + ' ' + getCode(precision, alphabet);\n }", "token_count": 154} {"added": "2026-12-05", "author": "linkedin/linkedin-utils", "created": "2019", "id": "71e2c04192cfc8dd924b1905", "license": "Apache-2.0", "source": "code_search_net", "text": "Creates the proxy to check for shutdown.\n\n@param o\n@param interfaces restriction on which interface to apply the proxy on\n@param shutdown\n@return the proxy\n\npublic static Object createShutdownProxy(Object o,\n Class[] interfaces,\n Shutdown shutdown)\n {\n if(interfaces == null)\n interfaces = ReflectUtils.extractAllInterfaces(o);\n\n return Proxy.newProxyInstance(o.getClass().getClassLoader(),\n interfaces,\n new ShutdownProxy(o, shutdown));\n\n }", "token_count": 92} {"added": "2026-12-05", "author": "coinbase/coinbase-java", "created": "2019", "id": "3d584041a438ca0298c38477", "license": "Apache-2.0", "source": "code_search_net", "text": "Specify the HMAC api key and secret to be used for authenticated requests\n\nHaving more than one client with the same api/secret globally is unsupported\nand will result in sporadic auth errors as the nonce is calculated from the system time.\n\n@param api_key the HMAC API Key\n@param api_secret the HMAC API Secret\n\n@return this CoinbaseBuilder object\n\npublic CoinbaseBuilder withApiKey(String api_key, String api_secret) {\n \tthis.api_key = api_key;\n \tthis.api_secret = api_secret;\n \treturn this;\n }", "token_count": 105}