idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,117,259 | public List<DataFetcherResult<MLModel>> batchLoad(final List<String> urns, final QueryContext context) throws Exception {<NEW_LINE>final List<Urn> mlModelUrns = urns.stream().map(UrnUtils::getUrn).collect(Collectors.toList());<NEW_LINE>try {<NEW_LINE>final Map<Urn, EntityResponse> mlModelMap = _entityClient.batchGetV2(... | collect(Collectors.toList()); |
1,277,640 | private void checkOnColumnAlign(Token token, int index) {<NEW_LINE>// if some further tokens in a group are wrapped on column,<NEW_LINE>// the first one should be aligned on column even if it's not wrapped<NEW_LINE>WrapPolicy wrapPolicy = token.getWrapPolicy();<NEW_LINE>if (wrapPolicy == null || !wrapPolicy.indentOnCol... | this.tm2.getPositionInLine(index); |
208,783 | public AsyncJobResponse queryJobResult(final QueryAsyncJobResultCmd cmd) {<NEW_LINE>final Account caller = CallContext.current().getCallingAccount();<NEW_LINE>final AsyncJob job = _entityMgr.findByIdIncludingRemoved(AsyncJob.class, cmd.getId());<NEW_LINE>if (job == null) {<NEW_LINE>throw new InvalidParameterValueExcept... | getAccount(userJobOwner.getAccountId()); |
249,101 | public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>// single-column constant<NEW_LINE>String stmtText = "@name('s0') select (select id from SupportBean_S1#length(1000) where p10='X') as ids1 from SupportBean_S0";<NEW_LINE>env.compileDeployAddListenerMile(stmtTe... | new SupportBean_S1(2, "Y")); |
1,505,387 | public void processExternalTable(List<AlterClause> alterClauses, Database db, Table externalTable) throws UserException {<NEW_LINE>externalTable.writeLockOrDdlException();<NEW_LINE>try {<NEW_LINE>// copy the external table schema columns<NEW_LINE>List<Column> newSchema = Lists.newArrayList();<NEW_LINE>newSchema.addAll(... | AddColumnsClause) alterClause, externalTable, newSchema); |
1,058,201 | private void loadIssueTemplates() {<NEW_LINE>registerTemporarySubscription(getIssueTemplatesSingle("/.github").flatMap(opt -> opt.orOptionalSingle(() -> getIssueTemplatesSingle(""))).flatMap(opt -> opt.orOptionalSingle(() -> getIssueTemplatesSingle("/docs"))).compose(RxUtils.wrapWithProgressDialog(this, R.string.loadin... | show(getSupportFragmentManager(), "template-selection"); |
692,635 | protected void doUpdate() {<NEW_LINE>postUpdate = new PostUpdateScripts();<NEW_LINE>try {<NEW_LINE>super.doUpdate();<NEW_LINE>} catch (RuntimeException e) {<NEW_LINE>postUpdateScripts.clear();<NEW_LINE>throw e;<NEW_LINE>}<NEW_LINE>if (!postUpdate.getUpdates().isEmpty()) {<NEW_LINE>log.info(String.format("Execute '%s' p... | groovyFile = postUpdateScripts.remove(closure); |
1,169,655 | public static void copyView(final JFrame parent, final INaviProject project, final INaviView view) {<NEW_LINE><MASK><NEW_LINE>Preconditions.checkNotNull(project, "IE01836: Project argument can not be null");<NEW_LINE>Preconditions.checkNotNull(view, "IE01837: View argument can not be null");<NEW_LINE>if (!view.isLoaded... | Preconditions.checkNotNull(parent, "IE01835: Parent argument can not be null"); |
1,057,497 | public static List<Mod> searchMod(String query) {<NEW_LINE>if (!loadKeywords())<NEW_LINE>return Collections.emptyList();<NEW_LINE>StringBuilder newQuery = query.chars().filter(ch -> !Character.isSpaceChar(ch)).collect(StringBuilder::new, (sb, value) -> sb.append((char) value), StringBuilder::append);<NEW_LINE>query = n... | query, keyword.getKey()); |
97,140 | public void updateConnectedControllers() {<NEW_LINE>logger.config("Updating connected controllers.");<NEW_LINE>if (environment != null) {<NEW_LINE>controllerCount = 0;<NEW_LINE>for (int i = 0; i < VR.k_unMaxTrackedDeviceCount; i++) {<NEW_LINE>int classCallback = VRSystem.VRSystem_GetTrackedDeviceClass(i);<NEW_LINE>if (... | , controllerName, manufacturerName, environment)); |
435,541 | public int compareTo(Image other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.valueOf(isSetUri()).compareTo(other.isSetUri());<NEW_LINE>if (lastC... | compareTo(other.isSetSize()); |
696,865 | private List<Folder> findContainersAssetsByContentType(final String contentTypeVarNameFileName) {<NEW_LINE>List<Contentlet> containers = null;<NEW_LINE>final List<Folder> folders = new ArrayList<>();<NEW_LINE>final User user = APILocator.systemUser();<NEW_LINE>final StringBuilder sqlQuery = new StringBuilder("select cv... | inodes = new ArrayList<>(); |
450,910 | private Map<Enchantment, Integer> processMagicHunter(@NotNull ItemStack treasureDrop) {<NEW_LINE>Map<Enchantment, Integer> enchants = new HashMap<>();<NEW_LINE>List<EnchantmentTreasure> fishingEnchantments = null;<NEW_LINE>double diceRoll = Misc.getRandom().nextDouble() * 100;<NEW_LINE>for (Rarity rarity : Rarity.value... | getEnchantmentDropRate(getLootTier(), rarity); |
1,417,777 | public static Map<String, Object> resolvedArtifactProps(Artifact artifact, Map<String, Object> props) {<NEW_LINE>props.putAll(artifact.getExtraProperties());<NEW_LINE>props.putAll(artifact.getResolvedExtraProperties());<NEW_LINE>String artifactFile = artifact.getEffectivePath().getFileName().toString();<NEW_LINE>String... | parts = platform.split("-"); |
1,155,771 | public static void main(String[] args) throws IOException {<NEW_LINE>Files.createParentDirs(DATA_FILE);<NEW_LINE>ImmutableHolidayCalendar[] calendars = { generateLondon(), generateParis(), generateFrankfurt(), generateZurich(), generateEuropeanTarget(), generateUsGovtSecurities(), generateUsNewYork(), generateNewYorkFe... | out.writeShort(calendars.length); |
1,395,822 | static Optional<io.swagger.models.parameters.Parameter> create(springfox.documentation.service.Parameter source) {<NEW_LINE>String safeSourceParamType = ofNullable(source.getParamType()).map(String::toLowerCase).orElse("");<NEW_LINE>SerializableParameterFactory factory = SerializableParameterFactories.FACTORY_MAP.getOr... | setDefaultValue(source.getDefaultValue()); |
1,290,415 | public void init(JobProfile jobConf) {<NEW_LINE>super.init(jobConf);<NEW_LINE>metricTagName = SQL_READER_TAG_NAME + "_" + inlongGroupId + "_" + inlongStreamId;<NEW_LINE>int batchSize = jobConf.getInt(JOB_DATABASE_BATCH_SIZE, DEFAULT_JOB_DATABASE_BATCH_SIZE);<NEW_LINE>String userName = jobConf.get(JOB_DATABASE_USER);<NE... | port = jobConf.getInt(JOB_DATABASE_PORT); |
1,846,356 | public byte[] serialise(final TypeSubTypeValue typeSubTypeValue) throws SerialisationException {<NEW_LINE>String type = typeSubTypeValue.getType();<NEW_LINE><MASK><NEW_LINE>String value = typeSubTypeValue.getValue();<NEW_LINE>if ((null == type || type.isEmpty()) && (null == subType || subType.isEmpty()) && (null == val... | String subType = typeSubTypeValue.getSubType(); |
1,641,700 | protected void decodeSingleSelection(FacesContext context, DataTable table, Set<String> rowKeys) {<NEW_LINE>if (rowKeys.size() > 1) {<NEW_LINE>throw new IllegalArgumentException("DataTable '" + table.getClientId(context) + "' is configured for single selection while multiple rows have been selected");<NEW_LINE>}<NEW_LI... | o = table.getRowData(rowKey); |
1,753,431 | private Dependency createDependency(Dependency parentDependency, String packageName, String version) {<NEW_LINE>final Dependency dep = new Dependency(parentDependency.getActualFile(), true);<NEW_LINE>final String identifier = String.format("%s:%s", packageName, version);<NEW_LINE>dep.setEcosystem(DEPENDENCY_ECOSYSTEM);... | (Checksum.getSHA256Checksum(identifier)); |
679,188 | public void initCache() throws QueryProcessException {<NEW_LINE>BitSet cacheSet = new BitSet(aggregations.size());<NEW_LINE>try {<NEW_LINE>while (cacheSet.cardinality() < aggregations.size() && dataSet.hasNextWithoutConstraint()) {<NEW_LINE>RowRecord record = dataSet.nextWithoutConstraint();<NEW_LINE>long timestamp = r... | field = fields.get(i); |
241,298 | public com.amazonaws.services.iotevents.model.LimitExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.iotevents.model.LimitExceededException limitExceededException = new com.amazonaws.services.iotevents.model.LimitExceededException(null);<NEW_LINE... | String currentParentElement = context.getCurrentParentElement(); |
265,169 | public AttackResult sendPasswordResetLink(@RequestParam String email, HttpServletRequest request) {<NEW_LINE>String resetLink = UUID<MASK><NEW_LINE>ResetLinkAssignment.resetLinks.add(resetLink);<NEW_LINE>String host = request.getHeader("host");<NEW_LINE>if (ResetLinkAssignment.TOM_EMAIL.equals(email) && (host.contains(... | .randomUUID().toString(); |
1,514,259 | public void marshall(UpdateAuthorizerRequest updateAuthorizerRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateAuthorizerRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateAuthorize... | updateAuthorizerRequest.getAuthorizerResultTtlInSeconds(), AUTHORIZERRESULTTTLINSECONDS_BINDING); |
460,239 | private void writeMap(Map map, XMLWriter w, String wp) throws IOException {<NEW_LINE>// w.writeDocType("map", null, "http://mapeditor.org/dtd/1.0/map.dtd");<NEW_LINE>w.startElement("map");<NEW_LINE>w.writeAttribute("version", "1.2");<NEW_LINE>if (!map.getTiledversion().isEmpty()) {<NEW_LINE>w.writeAttribute("tiledversi... | writeTilesetReference(tileset, w, wp); |
388,764 | public void onMessageReceived(RemoteMessage message) {<NEW_LINE><MASK><NEW_LINE>AppLog.v(T.NOTIFS, "Received Message");<NEW_LINE>if (data == null) {<NEW_LINE>AppLog.v(T.NOTIFS, "No notification message content received. Aborting.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!mAccountStore.hasAccessToken()) {<NEW_LINE>re... | Map data = message.getData(); |
1,741,514 | public GetFunctionCodeSigningConfigResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetFunctionCodeSigningConfigResult getFunctionCodeSigningConfigResult = new GetFunctionCodeSigningConfigResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement... | class).unmarshall(context)); |
427,081 | private void initializeClient() {<NEW_LINE>if (mConfiguration.getClientId() != null) {<NEW_LINE>Log.i(TAG, "Using static client ID: " + mConfiguration.getClientId());<NEW_LINE>// use a statically configured client ID<NEW_LINE>mClientId.set(mConfiguration.getClientId());<NEW_LINE>runOnUiThread(this::initializeAuthReques... | TAG, "Using dynamic client ID: " + lastResponse.clientId); |
793,362 | public static boolean readXml(File xmlFile, List<Path> pathList) throws IllegalStateException {<NEW_LINE>boolean result = false;<NEW_LINE>InputStreamReader reader = null;<NEW_LINE>try {<NEW_LINE>// !PW FIXME what to do about entity resolvers? Timed out when<NEW_LINE>// looking up doctype for sun-resources.xml earlier ... | SAXParser saxParser = factory.newSAXParser(); |
867,116 | private void loadNode446() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfigurationType_CertificateGroups_DefaultApplicationGroup_TrustList_Writable, new QualifiedName(0, "Writable"), new LocalizedText("en", "Writable"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UIntege... | .expanded(), false)); |
1,439,483 | public static void renderOrder(Graphics2D g2, @Nullable Point2Transform2_F32 transform, double scale, List<PointIndex2D_F64> points) {<NEW_LINE>g2.setStroke(new BasicStroke(5));<NEW_LINE>Point2D_F32 adj0 = new Point2D_F32();<NEW_LINE>Point2D_F32 adj1 = new Point2D_F32();<NEW_LINE>Line2D.Double l = new Line2D.Double();<... | float) p0.y, adj0); |
1,417,090 | public static ArrayList<double[]> forecast(int predictNum, double[] stdErrors, double[] estResidual, double[] arCoef, double[] maCoef, double intercept, double variance, double[][] diffData, int d, boolean isMean) {<NEW_LINE>double[] prediction = new double[predictNum];<NEW_LINE>if (isMean) {<NEW_LINE>Arrays.fill(predi... | mean(diffData[0])); |
870,336 | protected void updateAllMatchesWithStart(TrieMap<K, V> trie, List<Match<K, V>> matches, List<K> matched, List<K> list, int start, int end) {<NEW_LINE>if (start > end)<NEW_LINE>return;<NEW_LINE>if (trie.children != null && start < end) {<NEW_LINE>K key = list.get(start);<NEW_LINE>TrieMap<K, V> child = trie.children.get(... | list, start + 1, end); |
778,810 | // </editor-fold>//GEN-END:initComponents<NEW_LINE>private void selectButtonActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_selectButtonActionPerformed<NEW_LINE>int returnVal = localFileChooser.showOpenDialog(this);<NEW_LINE>if (returnVal == JFileChooser.APPROVE_OPTION) {<NEW_LINE>File[] f... | ), MessageNotifyUtil.MessageType.ERROR); |
330,334 | public void addVertical(String typeCast, boolean divide) {<NEW_LINE>String typeOutput = imageOut.getSingleBandName();<NEW_LINE>String dataOutput = imageOut.getDataType();<NEW_LINE>String divideHeader = divide ? ", int divisor" : "";<NEW_LINE><MASK><NEW_LINE>String divideHalf = divide ? "\t\tfinal int halfDivisor = divi... | String strTotal = divide ? "((total+halfDivisor)/divisor)" : "total"; |
105,372 | public ResourceDownloadOwnerSetting unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ResourceDownloadOwnerSetting resourceDownloadOwnerSetting = new ResourceDownloadOwnerSetting();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1... | String currentParentElement = context.getCurrentParentElement(); |
535,731 | public com.amazonaws.services.servicediscovery.model.RequestLimitExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.servicediscovery.model.RequestLimitExceededException requestLimitExceededException = new com.amazonaws.services.<MASK><NEW_LINE>int... | servicediscovery.model.RequestLimitExceededException(null); |
302,011 | public void uploadFromUrlWithResponse() throws NoSuchAlgorithmException {<NEW_LINE>// BEGIN: com.azure.storage.blob.specialized.BlockBlobClient.uploadFromUrlWithResponse#BlobUploadFromUrlOptions-Duration-Context<NEW_LINE>BlobHttpHeaders headers = new BlobHttpHeaders().setContentMd5("data".getBytes(StandardCharsets.UTF_... | Collections.singletonMap("tag", "value"); |
90,402 | public void marshall(DetectorModelConfiguration detectorModelConfiguration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (detectorModelConfiguration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(detect... | detectorModelConfiguration.getStatus(), STATUS_BINDING); |
992,046 | public final void mREGEX(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {<NEW_LINE>int _ttype;<NEW_LINE>Token _token = null;<NEW_LINE><MASK><NEW_LINE>_ttype = REGEX;<NEW_LINE>int _saveIndex;<NEW_LINE>char delimiter = '\0';<NEW_LINE>char end = '\0';<NEW_LINE>if (((LA(1) == '... | int _begin = text.length(); |
1,113,342 | protected void initialize() {<NEW_LINE>StringBuilder result = new StringBuilder(100);<NEW_LINE>String tmp;<NEW_LINE>int i = getMiosId();<NEW_LINE>String id = ((i == 0) ? "" : String.valueOf(i));<NEW_LINE>String stuff = getMiosStuff();<NEW_LINE>String unit = getUnitName();<NEW_LINE>// Normalize the Default MiOS Unit nam... | (",in:").append(tmp); |
878,161 | final CreateServiceActionResult executeCreateServiceAction(CreateServiceActionRequest createServiceActionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createServiceActionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,350,473 | public static byte[] calculateMasterSecretSSL3(byte[] preMasterSecret, byte[] random) {<NEW_LINE>Digest md5 = TlsUtils.createHash(HashAlgorithm.md5);<NEW_LINE>Digest sha1 = TlsUtils.createHash(HashAlgorithm.sha1);<NEW_LINE>int md5Size = md5.getDigestSize();<NEW_LINE>byte[] shaTmp = new <MASK><NEW_LINE>byte[] rval = new... | byte[sha1.getDigestSize()]; |
1,456,944 | public void requestAd(final ReadableArguments additionalRequestParams, final Promise promise) {<NEW_LINE>new Handler(Looper.getMainLooper()).post(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>if (mRewardedAd != null) {<NEW_LINE>promise.reject("E_AD_ALREADY_LOADED", "Ad is already l... | , AdMobUtils.createEventForAdFailedToLoad(loadAdError)); |
1,617,333 | private void detectCandidateFeatures(T image, double sigma) {<NEW_LINE>// adjust corner intensity threshold based upon the current scale factor<NEW_LINE>float scaleThreshold = (float) (baseThreshold / Math.pow(sigma, scalePower));<NEW_LINE>detector.setThreshold(scaleThreshold);<NEW_LINE>computeDerivative.setInput(image... | Point2D_I16> m = maximums[spaceIndex]; |
539,665 | private Node delete(Node node, String key, int digit) {<NEW_LINE>if (node == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (digit == key.length() - 1) {<NEW_LINE>node.size = node.size - 1;<NEW_LINE>node.value = null;<NEW_LINE>} else {<NEW_LINE>char nextChar = key.charAt(digit);<NEW_LINE>if (nextChar < node.chara... | right = deleteMin(aux.right); |
253,670 | public boolean addResult(AbstractionAtSink resultAbs) {<NEW_LINE>// Check whether we need to filter a result in a system package<NEW_LINE>if (manager.getConfig().getIgnoreFlowsInSystemPackages() && SystemClassHandler.v().isClassInSystemPackage(manager.getICFG().getMethodOf(resultAbs.getSinkStmt()).getDeclaringClass().g... | resultAbs, resultAbs.getAbstraction()); |
633,075 | void createJNITrampoline(RegisterValue threadArg, int threadIsolateOffset, RegisterValue methodIdArg, int methodObjEntryPointOffset) {<NEW_LINE>builder.setFunctionAttribute(Attribute.Naked);<NEW_LINE>LLVMBasicBlockRef block = builder.appendBasicBlock("main");<NEW_LINE>builder.positionAtEnd(block);<NEW_LINE>long startPa... | , builder.constantInt(methodObjEntryPointOffset)); |
1,746,314 | protected void consumeEnumConstantHeaderName() {<NEW_LINE>if (this.currentElement != null) {<NEW_LINE>if (!(this.currentElement instanceof RecoveredType || (this.currentElement instanceof RecoveredField && ((RecoveredField) this.currentElement).fieldDeclaration.type == null)) || (this.lastIgnoredToken == TokenNameDOT))... | >>> 32), sourceEnd); |
884,413 | public int hashElement(Object key, int fieldTypeIdx) {<NEW_LINE>switch(fieldTypes[fieldTypeIdx]) {<NEW_LINE>case BOOLEAN:<NEW_LINE>return key == null ? 0 : ((Boolean) key).booleanValue() ? 1231 : 1237;<NEW_LINE>case BYTES:<NEW_LINE>return key == null ? 0 : Arrays.hashCode((byte[]) key);<NEW_LINE>case DOUBLE:<NEW_LINE>l... | ) key).floatValue()); |
480,282 | private static List<ServerInfo> parseServerInfos(List<?> rawServerConfigs, XdsLogger logger) throws XdsInitializationException {<NEW_LINE>logger.log(XdsLogLevel.INFO, "Configured with {0} xDS servers", rawServerConfigs.size());<NEW_LINE>ImmutableList.Builder<ServerInfo> servers = ImmutableList.builder();<NEW_LINE>List<... | XdsLogLevel.INFO, "xDS server URI: {0}", serverUri); |
505,243 | private static Map<String, MycatNodeConfig> loadNode(Element root, int port) {<NEW_LINE>Map<String, MycatNodeConfig> nodes = new <MASK><NEW_LINE>NodeList list = root.getElementsByTagName("node");<NEW_LINE>Set<String> hostSet = new HashSet<String>();<NEW_LINE>for (int i = 0, n = list.getLength(); i < n; i++) {<NEW_LINE>... | HashMap<String, MycatNodeConfig>(); |
937,281 | private Map<String, TravelArticle> readTravelArticles(SQLiteConnection conn, String whereCondition, List<String> articleIds) {<NEW_LINE>SQLiteCursor cursor;<NEW_LINE>StringBuilder bld = new StringBuilder();<NEW_LINE>bld.append(ARTICLES_TABLE_SELECT).append(whereCondition).append(" and ").append(ARTICLES_COL_TRIP_ID).ap... | HashMap<String, TravelArticle>(); |
1,072,970 | public VirtualGatewayListenerTlsSdsCertificate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>VirtualGatewayListenerTlsSdsCertificate virtualGatewayListenerTlsSdsCertificate = new VirtualGatewayListenerTlsSdsCertificate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String ... | class).unmarshall(context)); |
363,052 | public <Req, Resp> StreamingClientCall<Req, Resp> newStreamingCall(final MethodDescriptor<Req, Resp> methodDescriptor, final BufferDecoderGroup decompressors) {<NEW_LINE>GrpcStreamingSerializer<Req> serializerIdentity = streamingSerializer(methodDescriptor);<NEW_LINE>GrpcStreamingDeserializer<Resp> deserializerIdentity... | CharSequence acceptedEncoding = decompressors.advertisedMessageEncoding(); |
1,425,004 | final GetTagsResult executeGetTags(GetTagsRequest getTagsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTagsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetTagsRequest> request = null;<NEW_LINE>Response<GetTagsResult> respo... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,404,965 | public Set instantiate() throws IOException {<NEW_LINE>Set result = new HashSet();<NEW_LINE>String displayName = (String) wizard.getProperty(PROP_DISPLAY_NAME);<NEW_LINE>WildflyPluginUtils.Version version = WildflyPluginUtils.getServerVersion(new File(installLocation));<NEW_LINE>String url = WildflyDeploymentFactory.UR... | HashMap<String, String>(); |
1,378,502 | protected Statement withBeforeClasses(final Statement statement) {<NEW_LINE>ByteBuddyAgent.install();<NEW_LINE>Collection<String> classes = Sets.newHashSet(ENHANCEMENT_CLASSES);<NEW_LINE>byteBuddyAgent = new AgentBuilder.Default().with(new ByteBuddy().with(TypeValidation.ENABLED)).type(ElementMatchers.namedOneOf(ENHANC... | klass = Class.forName(className); |
1,064,047 | public TransitGatewayMulticastDomainOptions unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>TransitGatewayMulticastDomainOptions transitGatewayMulticastDomainOptions = new TransitGatewayMulticastDomainOptions();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = o... | ().unmarshall(context)); |
60,694 | public void addMappingForUrlPatterns(EnumSet<DispatcherType> dispatcherTypes, boolean isMatchAfter, int index, String... urlPatterns) throws IllegalStateException, IllegalArgumentException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, "addMappingForUrlPatterns", "is... | ).add(previous, fmapping); |
110,460 | final UpdateMultiplexProgramResult executeUpdateMultiplexProgram(UpdateMultiplexProgramRequest updateMultiplexProgramRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateMultiplexProgramRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,517,583 | final DescribeAutoScalingNotificationTypesResult executeDescribeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest describeAutoScalingNotificationTypesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAutoScalingNotificationTypesRequest);<NEW_LINE>AWSRequestMet... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
183,687 | protected void updateNetbeansActionMapping(NetbeansActionMapping value, String xmlTag, Counter counter, Element element) {<NEW_LINE>Element root = element;<NEW_LINE>Counter innerCount = new Counter(<MASK><NEW_LINE>findAndReplaceSimpleElement(innerCount, root, "actionName", value.getActionName(), null);<NEW_LINE>findAnd... | counter.getDepth() + 1); |
1,512,911 | final Object doOverloadedUncached(OverloadedMethod method, Object obj, Object[] args, HostContext hostContext, @Shared("toHost") @Cached HostToTypeNode toJavaNode, @Shared("toGuest") @Cached ToGuestValueNode toGuest, @Shared("varArgsProfile") @Cached ConditionProfile isVarArgsProfile, @Shared("hostMethodProfile") @Cach... | convertedArguments, cache, hostContext, toGuest); |
145,251 | private void addJAXWSServiceMapBinding(ProfileServiceMapMgr smgr, String appid, String className, Map<String, Object> classInfo) {<NEW_LINE>Collection<String> classPaths = new ArrayList<String>();<NEW_LINE>String classPath = null;<NEW_LINE>if (classInfo.containsKey("dyn")) {<NEW_LINE>Map<String, Object> classDynInfo = ... | serviceImplClsInfo.length - 1] + "Service"; |
443,179 | public Contentlet translateContent(Contentlet src, Language translateTo, List<Field> fieldsToTranslate, User user) throws TranslationException {<NEW_LINE>Preconditions.checkNotNull(src, "Unable to translate null content.");<NEW_LINE>Preconditions.checkNotNull(fieldsToTranslate, "List of fields to translate can't be nul... | Structure srcSt = src.getStructure(); |
1,517,227 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource"); |
767,028 | public void updateLookups(Node[] arr) {<NEW_LINE>if (arr == null) {<NEW_LINE>AbstractLookup.Content c = new AbstractLookup.Content();<NEW_LINE>AbstractLookup l = new AbstractLookup(c);<NEW_LINE>c.addPair(new NoNodesPair());<NEW_LINE>setLookups(new Lookup[] { l, actionMap });<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Lookup[... | .remove(arr[i]); |
1,754,711 | public static GsonBuilder createGson() {<NEW_LINE>GsonFireBuilder fireBuilder = new GsonFireBuilder().registerTypeSelector(ThrottlePolicyDTO.class, new TypeSelector() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Class getClassForElement(JsonElement readElement) {<NEW_LINE>Map<String, Class> classByDiscriminatorValue ... | HashMap<String, Class>(); |
813,795 | private static SunWebApp createWebApp(DDParse parse) throws DDException {<NEW_LINE>SunWebApp webRoot = null;<NEW_LINE>String version = parse.getVersion();<NEW_LINE>if (SunWebApp.VERSION_3_0_1.equals(version)) {<NEW_LINE>return new org.netbeans.modules.j2ee.sun.dd.impl.web.model_3_0_1.GlassFishWebApp(parse.getDocument()... | getDocument(), Common.NO_DEFAULT_VALUES); |
1,118,818 | public void onPlaceAutomaticallyClick(View v) {<NEW_LINE>if (mRequest.getRequestType() == PinItemRequest.REQUEST_TYPE_SHORTCUT) {<NEW_LINE><MASK><NEW_LINE>ItemInstallQueue.INSTANCE.get(this).queueItem(shortcutInfo);<NEW_LINE>logCommand(LAUNCHER_ADD_EXTERNAL_ITEM_PLACED_AUTOMATICALLY);<NEW_LINE>mRequest.accept();<NEW_LI... | ShortcutInfo shortcutInfo = mRequest.getShortcutInfo(); |
1,419,867 | static int isSimpleOGC(/* const */<NEW_LINE>Geometry geometry, /* const */<NEW_LINE>SpatialReference spatialReference, boolean bForce, NonSimpleResult result, ProgressTracker progressTracker) {<NEW_LINE>if (result != null) {<NEW_LINE>result.m_reason = NonSimpleResult.Reason.NotDetermined;<NEW_LINE>result.m_vertexIndex1... | Type gt = geometry.getType(); |
1,716,471 | public Object deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {<NEW_LINE>if (!p.isExpectedStartArrayToken()) {<NEW_LINE>return ctxt.handleUnexpectedToken(EthSubscribeParams.class, p.currentToken(), p, "eth_subscribe parameters are expected to be arrays");<NEW_LINE>}<NEW_LINE>// skip '['<NEW_LI... | String subscriptionType = p.getText(); |
1,198,348 | // closeIt<NEW_LINE>@Override<NEW_LINE>public boolean reverseCorrectIt() {<NEW_LINE>// Before reverseCorrect<NEW_LINE>m_processMsg = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_REVERSECORRECT);<NEW_LINE>if (m_processMsg != null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>MDocType dt... | ), 0, get_TrxName()); |
1,823,182 | private BufferedImage watermarkImage(InputStream in) throws IOException {<NEW_LINE>final BufferedImage img = ImageIO.read(in);<NEW_LINE>if (img == null || img.getWidth() < 5 || img.getHeight() < 5) {<NEW_LINE>// no op<NEW_LINE>return img;<NEW_LINE>}<NEW_LINE>final Graphics2D g = (Graphics2D) img.getGraphics();<NEW_LINE... | getWidth() / 3, 0.5f); |
191,905 | public void destroyObject(PooledObject<CassandraClient> client) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Attempting to close transport for client {} of host {}", UnsafeArg.of("client", client), SafeArg.of("cassandraClient", CassandraLogHelper.host(addr)));<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>TaskContex... | CassandraLogHelper.host(addr))); |
461,328 | public void layoutContainer(Container parent) {<NEW_LINE>int leftWidth = 0;<NEW_LINE>int rightWidth = 0;<NEW_LINE>JComponent jParent = (JComponent) parent;<NEW_LINE>JComponent left = (JComponent) jParent.getClientProperty(LightToolWindow.LEFT_MIN_KEY);<NEW_LINE>if (left != null) {<NEW_LINE>leftWidth = LightToolWindow.M... | 0, width, toolbarSize.height); |
675,576 | private boolean isCertificateChainTrusted(X509AuthenticationToken token) {<NEW_LINE>if (trustManager == null) {<NEW_LINE>// No extra trust managers specified<NEW_LINE>// If the token is NOT delegated then it is authenticated, because the certificate chain has been validated by the TLS channel.<NEW_LINE>// Otherwise, if... | "failed certificate validation for Subject DN [{}]", token.dn()); |
1,376,203 | public boolean hasPermissionToCreateWorklog(java.lang.String in0, java.lang.String in1) throws java.rmi.RemoteException, com.atlassian.jira.rpc.exception.RemoteValidationException, com.atlassian.jira.rpc.exception.RemoteException {<NEW_LINE>if (super.cachedEndpoint == null) {<NEW_LINE>throw new org.apache.axis.NoEndPoi... | .rmi.RemoteException) axisFaultException.detail; |
1,195,483 | public void memberAccess() {<NEW_LINE>NativeTopLevel<String> topLevel = new NativeTopLevel<>("foo");<NEW_LINE>String <MASK><NEW_LINE>String fooStaticMethod = topLevel.staticMethod("foo");<NEW_LINE>String fooInstanceField = topLevel.instanceField;<NEW_LINE>topLevel.instanceField = "foo";<NEW_LINE>Object fooStaticField =... | fooInstanceMethod = topLevel.instanceMethod("foo"); |
948,381 | public static ListAnsInstancesResponse unmarshall(ListAnsInstancesResponse listAnsInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAnsInstancesResponse.setRequestId(_ctx.stringValue("ListAnsInstancesResponse.RequestId"));<NEW_LINE>listAnsInstancesResponse.setHttpCode(_ctx.stringValue("ListAnsInstancesRespons... | ("ListAnsInstancesResponse.Data[" + i + "].Healthy")); |
637,147 | public Map<String, Object> fetchFinalArgumentValues(ResolveOptions resOpt) {<NEW_LINE>Map<String, Object> finalArgs = new LinkedHashMap<>();<NEW_LINE>// get resolved traits does all the work, just clean up the answers<NEW_LINE>ResolvedTraitSet rts = this.fetchResolvedTraits(resOpt);<NEW_LINE>if (rts == null || rts.getS... | String name = p.getName(); |
1,025,548 | final SendOTPMessageResult executeSendOTPMessage(SendOTPMessageRequest sendOTPMessageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(sendOTPMessageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
886,817 | public void visit(TextListLevelStyleBulletElement ele) {<NEW_LINE>Integer textLevel = ele.getTextLevelAttribute();<NEW_LINE>if (currentListPropertiesMap == null || textLevel == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StyleListProperties listProperties = new StyleListProperties();<NEW_LINE>currentListPropertiesMap.... | String styleName = ele.getTextStyleNameAttribute(); |
1,405,435 | private void actOnJoinEvent(PlayerJoinEvent event) {<NEW_LINE>Player player = event.getPlayer();<NEW_LINE>UUID playerUUID = player.getUniqueId();<NEW_LINE>ServerUUID serverUUID = serverInfo.getServerUUID();<NEW_LINE>long time = System.currentTimeMillis();<NEW_LINE>BukkitAFKListener.afkTracker.performedAction(playerUUID... | .getAddress().getAddress(); |
391,096 | private void watchGovernanceRepositoryConfiguration() {<NEW_LINE>PipelineAPIFactory.getGovernanceRepositoryAPI().watch(DataPipelineConstants.DATA_PIPELINE_ROOT, event -> {<NEW_LINE>Optional<JobConfigurationPOJO> jobConfigPOJOOptional = getJobConfigPOJO(event);<NEW_LINE>if (!jobConfigPOJOOptional.isPresent()) {<NEW_LINE... | getInstance().post(releaseLockEvent); |
1,747,483 | public static ListResourcesResponse unmarshall(ListResourcesResponse listResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listResourcesResponse.setRequestId(_ctx.stringValue("ListResourcesResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>List<ResourceItem> items = new ArrayList<ResourceItem>();<NE... | ("ListResourcesResponse.Data.Items[" + i + "].Description")); |
541,196 | private Path download(Terminal terminal, String pluginId, Path tmpDir, boolean isBatch) throws Exception {<NEW_LINE>if (OFFICIAL_PLUGINS.contains(pluginId)) {<NEW_LINE>final String url = getOpenSearchUrl(terminal, getStagingHash(), Version.CURRENT, isSnapshot(), pluginId, Platforms.PLATFORM_NAME);<NEW_LINE>terminal.<MA... | println("-> Downloading " + pluginId + " from opensearch"); |
1,569,929 | public boolean showLookup() {<NEW_LINE>ApplicationManager<MASK><NEW_LINE>checkValid();<NEW_LINE>LOG.assertTrue(!myShown);<NEW_LINE>myShown = true;<NEW_LINE>myStampShown = System.currentTimeMillis();<NEW_LINE>fireLookupShown();<NEW_LINE>if (ApplicationManager.getApplication().isHeadlessEnvironment())<NEW_LINE>return tru... | .getApplication().assertIsDispatchThread(); |
863,094 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>Card card = game.getCard(source.getSourceId());<NEW_LINE>if (player == null || card == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Permanent hauntedCreature = game.getPermanent(targetPoin... | ()).toString()); |
1,797,880 | protected void addAttributesToMinimalView(MetaClass metaClass, View view, ViewLoader.ViewInfo info, Set<ViewLoader.ViewInfo> visited) {<NEW_LINE>Collection<MetaProperty> metaProperties = metadata.getTools().getNamePatternProperties(metaClass, true);<NEW_LINE>for (MetaProperty metaProperty : metaProperties) {<NEW_LINE>i... | relatedProperty = metaClass.getPropertyNN(relatedPropertyName); |
334,397 | public void write(long time, TsPrimitiveType[] points) {<NEW_LINE>valueIndex = 0;<NEW_LINE>for (TsPrimitiveType point : points) {<NEW_LINE>ValueChunkWriter writer = valueChunkWriterList.get(valueIndex++);<NEW_LINE>switch(writer.getDataType()) {<NEW_LINE>case INT64:<NEW_LINE>writer.write(time, point != null ? point.getL... | Float.MAX_VALUE, point == null); |
91,655 | private FileObject ensureDestinationFileExists(FileObject ejbBuildBase, String path, boolean isFolder) throws IOException {<NEW_LINE>FileObject current = ejbBuildBase;<NEW_LINE>StringTokenizer st = new StringTokenizer(path, "/");<NEW_LINE>while (st.hasMoreTokens()) {<NEW_LINE>String pathItem = st.nextToken();<NEW_LINE>... | + ", path: " + path + ", isFolder: " + isFolder; |
612,704 | protected ArrowBuf doCompress(BufferAllocator allocator, ArrowBuf uncompressedBuffer) {<NEW_LINE>Preconditions.checkArgument(uncompressedBuffer.writerIndex() <= Integer.MAX_VALUE, "The uncompressed buffer size exceeds the integer limit %s.", Integer.MAX_VALUE);<NEW_LINE>byte[] inBytes = new byte[(int) uncompressedBuffe... | IOUtils.copy(in, out); |
1,539,037 | protected JComponent createCenterPanel() {<NEW_LINE>Splitter splitter = new Splitter(false, (float) 0.6);<NEW_LINE>JPanel result = new JPanel(new BorderLayout());<NEW_LINE>if (myTree == null) {<NEW_LINE>myTree = createTree();<NEW_LINE>} else {<NEW_LINE>final CheckedTreeNode root = (CheckedTreeNode) myTree.getModel().ge... | TreePath path = e.getPath(); |
1,105,963 | public void init() {<NEW_LINE>this.config = ProcessorConfig.getInstance();<NEW_LINE>files = Maps.newHashMap();<NEW_LINE>for (ReservationUtilization utilization : ReservationUtilization.values()) {<NEW_LINE>files.put(utilization, new File(config.localDir, "reservation_prices." + term.name() + "." + utilization.name()));... | 3600, 3600 * 24, true); |
174,942 | public void afterPropertiesSet() {<NEW_LINE>if (!CollectionUtils.isEmpty(this.jpaParameters)) {<NEW_LINE>if (this.parameterSourceFactory == null) {<NEW_LINE>ExpressionEvaluatingParameterSourceFactory expressionSourceFactory = new ExpressionEvaluatingParameterSourceFactory(this.beanFactory);<NEW_LINE>expressionSourceFac... | "are mutually exclusive. Consider to configure parameters on the provided " + "'parameterSourceFactory': " + this.parameterSourceFactory); |
1,306,193 | private static String findJsonValueOrEmpty(String raw, String key) {<NEW_LINE>if (key == null || raw == null) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>key = '"' + key + '"';<NEW_LINE>raw = <MASK><NEW_LINE>if (!raw.contains(key)) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>int limit = raw.indexOf(key);<NEW_LINE>int start... | raw.replace(" ", ""); |
1,451,860 | protected void processModulesAndArgs() {<NEW_LINE>super.processModulesAndArgs();<NEW_LINE>if (contains(argRepeat)) {<NEW_LINE>String[] x = getValue<MASK><NEW_LINE>if (x.length == 1) {<NEW_LINE>try {<NEW_LINE>repeatCount = Integer.parseInt(x[0]);<NEW_LINE>} catch (NumberFormatException ex) {<NEW_LINE>throw new CmdExcept... | (argRepeat).split(","); |
307,467 | public void output(List<TxnEventBase> bucket) throws IOException {<NEW_LINE>log.info(".output Feeding " + bucket.size() + " events");<NEW_LINE>long startTimeMSec = currentTimeMSec;<NEW_LINE>long timePeriodLength = FindMissingEventStmt.TIME_WINDOW_TXNC_IN_SEC * 1000;<NEW_LINE>long endTimeMSec = startTimeMSec + timePerio... | total / bucket.size()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.