idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
560,867 | protected Object predictResult(Object input) {<NEW_LINE>if (null == input) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>HashMap<Integer, Integer> wordCount = new HashMap<>(0);<NEW_LINE>String content = (String) input;<NEW_LINE>String[] tokens = content.split(NLPConstant.WORD_DELIMITER);<NEW_LINE>double minTermCount = mo... | pos] = entry.getKey(); |
1,621,430 | public int compareTo(updateCompactionStatus_args 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.compare(isSetTinfo(<MASK><NEW_LINE>if (lastCo... | ), other.isSetTinfo()); |
512,414 | public IBundleProvider registerSearch(final IFhirResourceDao<?> theCallingDao, final SearchParameterMap theParams, String theResourceType, CacheControlDirective theCacheControlDirective, RequestDetails theRequestDetails, RequestPartitionId theRequestPartitionId) {<NEW_LINE>final String searchUuid = UUID.randomUUID().to... | theResourceType, theRequestDetails, queryString, theRequestPartitionId); |
1,290,575 | private void startAutoAnalyzeNdv() {<NEW_LINE>scheduler.scheduleWithFixedDelay(() -> {<NEW_LINE>MDC.put(MDC.MDC_KEY_APP, <MASK><NEW_LINE>if (!getSds().acquireStatisticConfig().getBoolean(ConnectionParams.ENABLE_HLL)) {<NEW_LINE>StatisticUtils.logInfo(schemaName, "ndv stopped by config: ENABLE_HLL");<NEW_LINE>return;<NE... | getSchemaName().toLowerCase()); |
1,746,619 | protected void assignColorsToLocals(Body body) {<NEW_LINE>if (Options.v().verbose()) {<NEW_LINE>logger.debug("[" + body.getMethod(<MASK><NEW_LINE>}<NEW_LINE>if (Options.v().time()) {<NEW_LINE>Timers.v().packTimer.start();<NEW_LINE>}<NEW_LINE>localToGroup = new HashMap<Local, Object>(body.getLocalCount() * 2 + 1, 0.7f);... | ).getName() + "] Assigning colors to locals..."); |
1,210,099 | private int _kernelrpc_mach_vm_map_trap(Emulator<?> emulator) {<NEW_LINE>Backend backend = emulator.getBackend();<NEW_LINE>int target = backend.reg_read(ArmConst.UC_ARM_REG_R0).intValue();<NEW_LINE>Pointer address = UnidbgPointer.register(emulator, ArmConst.UC_ARM_REG_R1);<NEW_LINE>int r2 = backend.reg_read(ArmConst.UC... | log = LogFactory.getLog("com.github.unidbg.ios.malloc"); |
1,562,781 | private void onClose(int code, String reason) {<NEW_LINE>boolean reconnecting = false;<NEW_LINE>if ((code == IWebSocketConnectionHandler.CLOSE_CANNOT_CONNECT) || (code == IWebSocketConnectionHandler.CLOSE_CONNECTION_LOST)) {<NEW_LINE>reconnecting = scheduleReconnect();<NEW_LINE>}<NEW_LINE>// Shutdown the executor so th... | onClose(IWebSocketConnectionHandler.CLOSE_RECONNECT, reason); |
491,949 | public static SchemaOperationResult extendSchema(final PwmDomain pwmDomain, final ConfigGuideBean configGuideBean, final boolean doSchemaExtension) {<NEW_LINE>final Map<ConfigGuideFormField, String<MASK><NEW_LINE>final boolean ldapServerSecure = ConfigGuideForm.readCheckedFormField(form.get(ConfigGuideFormField.PARAM_L... | > form = configGuideBean.getFormData(); |
922,014 | public void marshall(VpcPeeringConnection vpcPeeringConnection, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (vpcPeeringConnection == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(vpcPeeringConnection.get... | vpcPeeringConnection.getIpV4CidrBlock(), IPV4CIDRBLOCK_BINDING); |
1,822,927 | private BlockNode processMonitorEnter(IRegion curRegion, BlockNode block, InsnNode insn, RegionStack stack) {<NEW_LINE>SynchronizedRegion synchRegion = new SynchronizedRegion(curRegion, insn);<NEW_LINE>synchRegion.getSubBlocks().add(block);<NEW_LINE>curRegion.<MASK><NEW_LINE>Set<BlockNode> exits = new LinkedHashSet<>()... | getSubBlocks().add(synchRegion); |
1,486,283 | public void reload() {<NEW_LINE>loadIcon();<NEW_LINE>try {<NEW_LINE>server.getPlayerManager().getIpBanList().load();<NEW_LINE>} catch (IOException ex) {<NEW_LINE>logger.log(Level.WARNING, "Failed to load banned-ips.json, " + ex.getMessage());<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>server.getPlayerManager().getUserBanList()... | Plugin plugin = worker.getOwner(); |
74,235 | private static void populateListObjectsV2RequestParameters(ListObjectsV2Request listObjectsV2Request, Map<String, String> params) {<NEW_LINE>params.put(LIST_TYPE, "2");<NEW_LINE>if (listObjectsV2Request.getPrefix() != null) {<NEW_LINE>params.put(PREFIX, listObjectsV2Request.getPrefix());<NEW_LINE>}<NEW_LINE>if (listObj... | START_AFTER, listObjectsV2Request.getStartAfter()); |
419,779 | protected void updateWorldBound() {<NEW_LINE>super.updateWorldBound();<NEW_LINE>// for a node, the world bound is a combination of all its children<NEW_LINE>// bounds<NEW_LINE>BoundingVolume resultBound = null;<NEW_LINE>for (Spatial child : children.getArray()) {<NEW_LINE>// child bound is assumed to be updated<NEW_LIN... | mergeLocal(child.getWorldBound()); |
1,489,667 | final UpdateParameterGroupResult executeUpdateParameterGroup(UpdateParameterGroupRequest updateParameterGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateParameterGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
96,739 | public void write(org.apache.thrift.protocol.TProtocol prot, hasNamespacePermission_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (s... | struct.tinfo.write(oprot); |
1,523,720 | public void executeNodeStep(final PluginStepContext pluginContext, final Map<String, Object> config, final INodeEntry node) throws NodeStepException {<NEW_LINE>final GeneratedScript script;<NEW_LINE>try {<NEW_LINE>script = plugin.<MASK><NEW_LINE>} catch (RuntimeException e) {<NEW_LINE>throw new NodeStepException(e.getM... | generateScript(pluginContext, config, node); |
447,759 | final GetAttendeeResult executeGetAttendee(GetAttendeeRequest getAttendeeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAttendeeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | endClientExecution(awsRequestMetrics, request, response); |
270,872 | public static void processBndAndExt(Map<JNDIEnvironmentRefType, Map<String, String>> allBindings, Map<String, String> envEntryValues, ResourceRefConfigList resRefList, RefBindingsGroup refBindingsGroup, List<com.ibm.ws.javaee.dd.commonext.ResourceRef> resRefExts) {<NEW_LINE>RefBndAndExtHelper.configureEJBRefBindings(re... | .get(JNDIEnvironmentRefType.EnvEntry)); |
329,182 | public void refresh() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>final ArrayList<MapPack> values = new ArrayList<MapPack>();<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objType", objType);<NEW_LINE>param.put("counter", counter);<NEW_LINE>isActive = false;<NEW_LINE>... | (value.get(i)); |
1,317,985 | public <ReqT, RespT> ServerCall.Listener<ReqT> interceptCall(ServerCall<ReqT, RespT> call, Metadata headers, ServerCallHandler<ReqT, RespT> next) {<NEW_LINE>final ServerCall<ReqT, RespT> serverCall = new SerializingServerCall<>(call);<NEW_LINE>ServerCall.Listener<ReqT> listener = <MASK><NEW_LINE>return new ForwardingSe... | next.startCall(serverCall, headers); |
53,159 | SDChaindcode discoverEndorserEndpoint(TransactionContext transactionContext, final String name) throws ServiceDiscoveryException {<NEW_LINE>Map<String, SDChaindcode> lchaindcodeMap = chaindcodeMap;<NEW_LINE>if (lchaindcodeMap != null) {<NEW_LINE>// check if we have it already.<NEW_LINE>SDChaindcode sdChaindcode = lchai... | sdChaindcode = dchaindcodeMap.get(name); |
592,831 | private void dismissDialog() {<NEW_LINE>// Validate.<NEW_LINE>if (this.dialogWrapper == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Fetch the activity that is hosting the dialog.<NEW_LINE>TiBaseActivity activity = this.dialogWrapper.getActivity();<NEW_LINE>if (activity == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LIN... | e(TAG, "Failed to hide AlertDialog.", ex); |
642,399 | public void run(RegressionEnvironment env) {<NEW_LINE>// declare<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create schema SomeType ()", path);<NEW_LINE>env.compileDeploy("@name('flow') create dataflow MyDataFlowOne " + "DefaultSupportSourceOp -> outstream<SomeType> {}" + "D... | = new DefaultSupportCaptureOp<Object>(); |
558,638 | public Map<String, String> buildCheckProperties() {<NEW_LINE>Map<String, String> properties = Maps.newHashMap();<NEW_LINE>properties.put(JdbcCheckKeys.DRIVER_NAME, getDriverName());<NEW_LINE>properties.put(JdbcCheckKeys.URL_KEY, getDbUrl());<NEW_LINE>properties.put(JdbcCheckKeys.USER_NAME_KEY, getUsername());<NEW_LINE>... | JdbcCheckKeys.PASSWORD_KEY, getPassword()); |
1,417,322 | private void execRequest(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>final String testParm = req.getParameter("targetId");<NEW_LINE>final String testName = req.getParameter("testName");<NEW_LINE>System.out.println("Enter JPARLServlet.execRequest, testName=" + testNa... | > rs = query.getResultList(); |
1,272,186 | public OnDemandProvisioningSpecification unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>OnDemandProvisioningSpecification onDemandProvisioningSpecification = new OnDemandProvisioningSpecification();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI... | int originalDepth = context.getCurrentDepth(); |
339,967 | private static IStringExpression buildSqlWhere(final MLookupInfo lookupInfo, final LookupScope scope, final IValidationRule validationRuleEffective) {<NEW_LINE>final String tableName = lookupInfo.getTableName();<NEW_LINE>final String lookup_SqlWhere = lookupInfo.getWhereClauseSqlPart();<NEW_LINE>final <MASK><NEW_LINE>f... | TranslatableParameterizedString displayColumnSql = lookupInfo.getDisplayColumnSql(); |
613,347 | private void scheduleUpdate(Context context) {<NEW_LINE>AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);<NEW_LINE>PendingIntent intent = getAlarmIntent(context);<NEW_LINE>alarmManager.cancel(intent);<NEW_LINE>int intervalMin = AppPreferences.widgetUpdateFrequency(context);<NEW... | Calendar triggerAt = Calendar.getInstance(); |
1,846,723 | private void appendTextSingleLine(StringBuilder buffer, int lineNumber, FieldSelection singleLineSelection) {<NEW_LINE>if (singleLineSelection.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FieldRange fieldRange = singleLineSelection.getFieldRange(0);<NEW_LINE>int startColumn = fieldRange.getStart().getCol();<NEW_LI... | ClangTextField) layout.getField(0); |
518,031 | Path compile() throws IOException, SourceCompilationException {<NEW_LINE>Path compilationStdOut = Files.createTempFile("compilation_stdout_", ".txt");<NEW_LINE>Path compilationStdErr = Files.createTempFile("compilation_stderr_", ".txt");<NEW_LINE>Path compiledRootDir = Files.createTempDirectory("compilation_prodout_");... | inArchivalPath = compiledRootDir.relativize(compiledFile); |
1,346,462 | public void acceptMethodNameMatch(MethodNameMatch match) {<NEW_LINE>try {<NEW_LINE>if (maxResults > 0 && symbols.size() >= maxResults) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Location location = null;<NEW_LINE>try {<NEW_LINE>location = JDTUtils.<MASK><NEW_LINE>} catch (Exception e) {<NEW_LINE>JavaLanguageServerPlugin.lo... | toLocation(match.getMethod()); |
610,907 | public static PrivateKey fromPemEncodedPrivateKey(String pem) {<NEW_LINE>try (PEMParser parser = new PEMParser(new StringReader(pem))) {<NEW_LINE>List<Object> unknownObjects = new ArrayList<>();<NEW_LINE>Object pemObject;<NEW_LINE>while ((pemObject = parser.readObject()) != null) {<NEW_LINE>if (pemObject instanceof Pri... | (keyInfo.getEncoded())); |
520,228 | public static ListAggregateRemediationsResponse unmarshall(ListAggregateRemediationsResponse listAggregateRemediationsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAggregateRemediationsResponse.setRequestId(_ctx.stringValue("ListAggregateRemediationsResponse.RequestId"));<NEW_LINE>List<Remediation> remediations = ... | ("ListAggregateRemediationsResponse.Remediations[" + i + "].AccountId")); |
1,728,314 | // Connection is automatically released back in case of an exception.<NEW_LINE>private int httpGet(String endpoint, Map<String, ByteIterator> result) throws IOException {<NEW_LINE>requestTimedout.setIsSatisfied(false);<NEW_LINE>Thread timer = new Thread(new Timer(execTimeout, requestTimedout));<NEW_LINE>timer.start();<... | (responseContent.toString())); |
1,767,718 | public void finishInstall() {<NEW_LINE>WizardOperator installerOper = installer();<NEW_LINE>installerOper.next();<NEW_LINE>// "I accept the terms..."<NEW_LINE>String acceptLabel = Bundle.getStringTrimmed("org.netbeans.modules.autoupdate.ui.wizards.Bundle", "LicenseApprovalPanel.cbAccept.text");<NEW_LINE>JCheckBoxOperat... | Bundle.getStringTrimmed("org.netbeans.modules.autoupdate.ui.wizards.Bundle", "InstallUnitWizardModel_Buttons_Install"); |
634,774 | public SourceSinkType filter(ISourceSinkCategory category, SourceSinkType sourceSinkType) {<NEW_LINE>// We cannot compare descriptions to the configuration file<NEW_LINE>if (category instanceof CategoryDefinition) {<NEW_LINE>CategoryDefinition catDef = (CategoryDefinition) category;<NEW_LINE>catDef = catDef.getIdOnlyDe... | getSinkCategoriesAndModes().get(category); |
615,694 | // Activity related history<NEW_LINE>@Override<NEW_LINE>public void recordActivityStart(ExecutionEntity executionEntity) {<NEW_LINE>if (isHistoryLevelAtLeast(HistoryLevel.ACTIVITY)) {<NEW_LINE>if (executionEntity.getActivity() != null) {<NEW_LINE>IdGenerator idGenerator = Context.getProcessEngineConfiguration().getIdGe... | , historicActivityInstance), EngineConfigurationConstants.KEY_PROCESS_ENGINE_CONFIG); |
382,344 | public static void toXContent(Metadata metadata, XContentBuilder builder, ToXContent.Params params) throws IOException {<NEW_LINE>XContentContext context = XContentContext.valueOf(params.param(CONTEXT_MODE_PARAM, CONTEXT_MODE_API));<NEW_LINE>if (context == XContentContext.API) {<NEW_LINE>builder.startObject("metadata")... | field("cluster_uuid_committed", metadata.clusterUUIDCommitted); |
1,062,083 | public FirehoseAction unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FirehoseAction firehoseAction = new FirehoseAction();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +... | class).unmarshall(context)); |
1,051,910 | public Collection<HudsonJob> createJobs(Collection<BuilderConnector.JobData> data) {<NEW_LINE>Collection<HudsonJob> jobList = new ArrayList<HudsonJob>();<NEW_LINE>for (BuilderConnector.JobData jd : data) {<NEW_LINE>HudsonJobImpl job = new HudsonJobImpl(this);<NEW_LINE>if (jd.isSecured()) {<NEW_LINE>job.putProperty(JOB_... | JOB_BUILDABLE, jd.isBuildable()); |
1,301,445 | public int ladderLength(String beginWord, String endWord, List<String> wordList) {<NEW_LINE>words = new HashSet<>(wordList);<NEW_LINE>if (!words.contains(endWord)) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>Queue<String> <MASK><NEW_LINE>Queue<String> q2 = new ArrayDeque<>();<NEW_LINE>Map<String, Integer> m1 = new HashMap... | q1 = new ArrayDeque<>(); |
1,033,321 | private void initInsert(Bundle savedInstanceState) {<NEW_LINE>mStateInsert = true;<NEW_LINE>findViewById(android.R.id.button2<MASK><NEW_LINE>findViewById(android.R.id.button3).setOnClickListener(this);<NEW_LINE>setTitle(R.string.activity_add_list_title);<NEW_LINE>if (savedInstanceState == null) {<NEW_LINE>InputTextDial... | ).setVisibility(View.GONE); |
54,279 | public Path findPathInWorkdirOrLookup(Path uri) {<NEW_LINE>Optional<Path> lookUpFile = pathMapper.lookUpFile(uri);<NEW_LINE>if (lookUpFile.isPresent()) {<NEW_LINE>return lookUpFile.get();<NEW_LINE>}<NEW_LINE>Optional<Path> optional = current.currentPath().map(Path::getParent);<NEW_LINE>if (optional.isPresent()) {<NEW_L... | candidate = currentParent.resolve(uri); |
1,106,192 | public void afterPropertiesSet() throws Exception {<NEW_LINE>String name = this.threadPrefix + "@" + <MASK><NEW_LINE>if (this.executor == null) {<NEW_LINE>QueuedThreadPool threadPool = new QueuedThreadPool();<NEW_LINE>threadPool.setName(name);<NEW_LINE>this.executor = threadPool;<NEW_LINE>}<NEW_LINE>if (this.byteBuffer... | Integer.toHexString(hashCode()); |
874,408 | /* Build call for apisApiIdThumbnailPost */<NEW_LINE>private com.squareup.okhttp.Call apisApiIdThumbnailPostCall(String apiId, File file, String contentType, String ifMatch, String ifUnmodifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progress... | = new ArrayList<Pair>(); |
1,750,413 | final CreateNamespaceResult executeCreateNamespace(CreateNamespaceRequest createNamespaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createNamespaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,352,157 | public boolean execute() {<NEW_LINE>GraphController graphController = Lookup.getDefault().lookup(GraphController.class);<NEW_LINE>GraphModel graphModel = graphController.getGraphModel(workspace);<NEW_LINE>Graph graph = exportVisible ? graphModel.getGraphVisible() : graphModel.getGraph();<NEW_LINE>Progress.start(progres... | xmlWriter.writeStartElement(GEXF_NAMESPACE, GEXF); |
820,867 | public void addACL(Collection<String> listIPs, int from, int to) {<NEW_LINE>AmazonEC2 client = null;<NEW_LINE>try {<NEW_LINE>client = getEc2Client();<NEW_LINE>List<IpPermission> ipPermissions = new ArrayList<>();<NEW_LINE>ipPermissions.add(new IpPermission().withFromPort(from).withIpProtocol("tcp").withIpRanges(listIPs... | sgIngressRequest.withGroupId(getVpcGoupId()); |
197,416 | public static XMLStreamReader createReader(final Reader reader, final JettisonConfig config) throws XMLStreamException {<NEW_LINE>Reader nonEmptyReader = ensureNonEmptyReader(reader);<NEW_LINE>switch(config.getNotation()) {<NEW_LINE>case MAPPED_JETTISON:<NEW_LINE>try {<NEW_LINE>Configuration jmConfig;<NEW_LINE>if (null... | Configuration(config.getXml2JsonNs()); |
671,821 | public boolean validateTopLevelAspectsParameters(ImmutableMap<String, String> aspectsParameters) throws EvalException {<NEW_LINE>Preconditions.checkArgument(aspectsParameters != null, "aspectsParameters cannot be null");<NEW_LINE>ImmutableSet.Builder<String> usedParametersBuilder = ImmutableSet.builder();<NEW_LINE>for ... | ).collect(toImmutableList()); |
255,587 | protected Message createMessage(Object object, MessageProperties messageProperties) throws MessageConversionException {<NEW_LINE>byte[] bytes;<NEW_LINE>if (object instanceof String) {<NEW_LINE>try {<NEW_LINE>bytes = ((String) object).getBytes(this.defaultCharset);<NEW_LINE>} catch (UnsupportedEncodingException e) {<NEW... | messageProperties.setContentType(MessageProperties.CONTENT_TYPE_BYTES); |
1,449,421 | protected Void doInBackground(Void... voids) {<NEW_LINE>try {<NEW_LINE>double c = 0.0;<NEW_LINE>BufferedInputStream origin = null;<NEW_LINE>FileOutputStream dest = new FileOutputStream(getAlbums().getSelectedAlbum(0).getParentsFolders().get(1) + "/" + getAlbums().getSelectedAlbum(0).getName() + ".zip");<NEW_LINE>ZipOut... | write(data, 0, count); |
458,868 | private long streamMessagesForRecording() {<NEW_LINE>try (ExclusivePublication publication = aeron.addExclusivePublication(CHANNEL, STREAM_ID)) {<NEW_LINE>final IdleStrategy idleStrategy = YieldingIdleStrategy.INSTANCE;<NEW_LINE>while (!publication.isConnected()) {<NEW_LINE>idleStrategy.idle();<NEW_LINE>}<NEW_LINE>fina... | recordingMb, dataRate, msgRate, MESSAGE_LENGTH); |
1,064,995 | public ReadinessCheckSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ReadinessCheckSummary readinessCheckSummary = new ReadinessCheckSummary();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE... | int originalDepth = context.getCurrentDepth(); |
884,472 | public RefreshToken verifyRefreshToken(KeycloakSession session, RealmModel realm, ClientModel client, HttpRequest request, String encodedRefreshToken, boolean checkExpiration) throws OAuthErrorException {<NEW_LINE>try {<NEW_LINE>RefreshToken refreshToken = toRefreshToken(session, encodedRefreshToken);<NEW_LINE>if (!(To... | INVALID_GRANT, e.getMessage()); |
1,048,235 | protected BatchElementConfiguration collectJobIds(CommandContext commandContext) {<NEW_LINE>Set<String> collectedProcessInstanceIds = new HashSet<>();<NEW_LINE>if (query != null) {<NEW_LINE>collectedProcessInstanceIds.addAll(((ProcessInstanceQueryImpl<MASK><NEW_LINE>}<NEW_LINE>if (historicProcessInstanceQuery != null) ... | ) query).listIds()); |
1,703,086 | public ClassRecord synchronize(Environment env, ClassStmtToken token, Tokenizer tokenizer) {<NEW_LINE>NamespaceRecord namespaceRecord = synchronize(env, token.getNamespace());<NEW_LINE>ClassRecord classRecord = namespaceRecord.getClass(token.getName().getName());<NEW_LINE>if (classRecord == null) {<NEW_LINE>classRecord... | env, methodStmtToken, classRecord, tokenizer); |
908,203 | void CopyTree(DocumentFile dstFolderDoc, DocumentFile srcFolderDoc) {<NEW_LINE>for (DocumentFile srcFileDoc : srcFolderDoc.listFiles()) {<NEW_LINE>if (srcFileDoc.isDirectory()) {<NEW_LINE>Log.w(Constants.TAG, String.format("Creating directory '%s'...", srcFileDoc.getName()));<NEW_LINE>DocumentFile dstFileDoc = dstFolde... | "", srcFileDoc.getName()); |
1,113,226 | private static int errorCheck(TraceContext ctx, Throwable thr) {<NEW_LINE>int error = 0;<NEW_LINE>if (ctx.error != 0) {<NEW_LINE>error = ctx.error;<NEW_LINE>} else if (thr != null) {<NEW_LINE>Configure conf = Configure.getInstance();<NEW_LINE>String emsg = thr.toString();<NEW_LINE>if (conf.profile_fullstack_service_err... | (emsg).append("\n"); |
606,268 | private Stream<ChangeStreamRecord> toChangeStreamRecord(PartitionMetadata partition, Struct row, ChangeStreamResultSetMetadata resultSetMetadata) {<NEW_LINE>final Stream<DataChangeRecord> dataChangeRecords = row.getStructList(DATA_CHANGE_RECORD_COLUMN).stream().filter(this::isNonNullDataChangeRecord).map(struct -> toDa... | (partition, struct, resultSetMetadata)); |
1,317,731 | // Invoke the Janitor on-the-fly for all GET operations and for most payment operations (except notifyPendingPaymentOfStateChanged)<NEW_LINE>public PaymentModelDao invokeJanitor(final PaymentModelDao curPaymentModelDao, final Collection<PaymentTransactionModelDao> curTransactionsModelDao, @Nullable final Iterable<Payme... | = new LinkedList<PaymentTransactionModelDao>(); |
58,181 | private void processSplit(final String parsed_value) {<NEW_LINE>if (splits == null) {<NEW_LINE>// then this is the first time we're processing the value, so we need to<NEW_LINE>// execute the split if there's a separator, after some validation<NEW_LINE>if (parsed_value == null || parsed_value.isEmpty()) {<NEW_LINE>thro... | (parsed_value, splits[split_idx]); |
1,159,108 | final CreateCertificateAuthorityAuditReportResult executeCreateCertificateAuthorityAuditReport(CreateCertificateAuthorityAuditReportRequest createCertificateAuthorityAuditReportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCertificateAuthorityAuditReportRequest);<NEW_LINE>AWSReque... | addHandlerContext(HandlerContextKey.SERVICE_ID, "ACM PCA"); |
267,798 | public List<List<Integer>> threeSum(int[] nums) {<NEW_LINE>Arrays.sort(nums);<NEW_LINE>List<List<Integer>> result = new ArrayList<>();<NEW_LINE>for (int i = 0; i < nums.length - 2; i++) {<NEW_LINE>if (i >= 1 && nums[i] == nums[i - 1]) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>int left = i + 1;<NEW_LINE>int right = nums.... | ], nums[right])); |
1,163,494 | private static boolean checkArgumentIndex(@NotNull ProblemsHolder holder, @NotNull GoExpression placeholder, @NotNull GoCallExpr callExpr, @NotNull Placeholder fmtPlaceholder, int callArgsNum) {<NEW_LINE><MASK><NEW_LINE>if (argNum < 0)<NEW_LINE>return false;<NEW_LINE>if (argNum == 0) {<NEW_LINE>TextRange range = TextRa... | int argNum = fmtPlaceholder.getPosition(); |
658,410 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select " + "(select * from SupportBean#keepall).enumPlugInReturnSingleEvent(v => intPrimitive > 0).theString as c0 " + "from SupportBean_S0";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.assertStatement("s0", statement ->... | SupportBean("E1", -1)); |
1,537,880 | private Mono<PagedResponse<DeploymentOperationInner>> listAtScopeSinglePageAsync(String scope, String deploymentName, Integer top, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be n... | this.client.mergeContext(context); |
605,846 | protected void addDecorators(CustomResourceInfo config, TypeDef def, Optional<String> specReplicasPath, Optional<String> statusReplicasPath, Optional<String> labelSelectorPath) {<NEW_LINE>final String name = config.crdName();<NEW_LINE>final String version = config.version();<NEW_LINE>resources.decorate(new AddCustomRes... | decorate(new EnsureSingleStorageVersionDecorator(name)); |
1,338,145 | // { group name, < ip:port, physical table filter > }<NEW_LINE>private Map<String, Pair<String, String>> generateExecutableGroups(Map<String, Set<String>> topology, Map<String, Set<Pair<String, String>>> groupsByInstance, ExecutionContext executionContext) {<NEW_LINE>Map<String, Pair<String, String>> <MASK><NEW_LINE>//... | executableGroups = new HashMap<>(); |
1,176,618 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>addPreferencesFromResource(R.xml.settings);<NEW_LINE>ActionBar supportActionBar = getSupportActionBar();<NEW_LINE>if (supportActionBar != null) {<NEW_LINE>supportActionBar.setDisplayHomeAsUpEnabled(true);<NEW_LINE>}<... | (R.string.CPU_THREAD_NUM_KEY)); |
1,745,478 | public static final void main(String[] args) throws IOException {<NEW_LINE>FileManager m = new FileManager(Paths.get("H:\\test123")<MASK><NEW_LINE>String content = "content\nabc\rblah\r\n";<NEW_LINE>m.add("test", "filename", true, new FileContentInfoProvider() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public FileContentI... | , Paths.get("H:\\test123\\backupp")); |
963,402 | public void connect() {<NEW_LINE>RPCHook rpcHook = null;<NEW_LINE>if (null != accessKey && accessKey.length() > 0 && null != secretKey && secretKey.length() > 0) {<NEW_LINE>SessionCredentials sessionCredentials = new SessionCredentials();<NEW_LINE>sessionCredentials.setAccessKey(accessKey);<NEW_LINE>sessionCredentials.... | logger.error("Start RocketMQ consumer error", ex); |
1,113,121 | static double[][] convertToProbabilitiesBySoftMax(double[][] scores) {<NEW_LINE>double[][] probabilities = new double[scores.length][];<NEW_LINE>double[] sum = new double[scores.length];<NEW_LINE>for (int i = 0; i < scores.length; i++) {<NEW_LINE>probabilities[i] = new double<MASK><NEW_LINE>double maxScore = MovingFunc... | [scores[i].length]; |
791,168 | public void fitSelectionToLines(boolean expand) {<NEW_LINE>Range range = getSession().getSelection().getRange();<NEW_LINE>Position start = range.getStart();<NEW_LINE>Position newStart = start;<NEW_LINE>if (start.getColumn() > 0) {<NEW_LINE>if (expand) {<NEW_LINE>newStart = Position.create(start.getRow(), 0);<NEW_LINE>}... | start.getRow(), 0); |
170,724 | public ByteBuf encodeResponse(Request request, Response response) throws Exception {<NEW_LINE>BaiduRpcEncodePacket responsePacket = new BaiduRpcEncodePacket();<NEW_LINE>BaiduRpcProto.RpcMeta.Builder metaBuilder = BaiduRpcProto.RpcMeta.newBuilder();<NEW_LINE>metaBuilder.setCorrelationId(response.getCorrelationId());<NEW... | getBinaryAttachment().readableBytes()); |
1,620,068 | public Credentials unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE><MASK><NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Credentials credentials = new Credentials();<NEW_LINE>reader.beginObject();<NEW_LINE>while (reader.hasNext()) {<N... | AwsJsonReader reader = context.getReader(); |
44,705 | private void updateDrawerMode(boolean accountMode) {<NEW_LINE>mLeftDrawerMenu.setGroupVisible(R<MASK><NEW_LINE>mLeftDrawerMenu.setGroupVisible(R.id.navigation, !accountMode);<NEW_LINE>mLeftDrawerMenu.setGroupVisible(R.id.explore, !accountMode);<NEW_LINE>mLeftDrawerMenu.setGroupVisible(R.id.settings, !accountMode);<NEW_... | .id.my_items, !accountMode); |
138,072 | private ColumnMetadata buildColumnMetadata(String name, Object value) {<NEW_LINE>Class<?> clazz = value.getClass();<NEW_LINE>if (Map.class.isAssignableFrom(clazz)) {<NEW_LINE>return buildMapColumnMetadata(name, (Map<MASK><NEW_LINE>} else if (List.class.isAssignableFrom(clazz)) {<NEW_LINE>List<?> list = (List<?>) value;... | <String, Object>) value); |
238,207 | public void onChannelPart(final ChanPartMessage msg) {<NEW_LINE>if (!isThisChatRoom(msg.getChannelName())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final IRCUser user = msg.getSource();<NEW_LINE>if (localUser(user)) {<NEW_LINE>leaveChatRoom();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String userNick = msg.getSource().g... | warn("This should not have happened. Please report this " + "as it is a bug.", e); |
1,690,675 | public void cellMouseTrigger(TableCellMouseEvent event) {<NEW_LINE>SearchSubsResultBase entry = (SearchSubsResultBase) event.cell.getDataSource();<NEW_LINE>String tooltip = null;<NEW_LINE>boolean invalidateAndRefresh = false;<NEW_LINE>Rectangle bounds = ((TableCellSWT) event.cell).getBounds();<NEW_LINE>String text = (S... | String details_url = entry.getDetailsLink(); |
4,956 | private void processCommandAddGroup(String commandLine) {<NEW_LINE>try {<NEW_LINE>CommandLine cmd = CMD_PARSER.parse(addGroupOptions(), commandLine.split(" "));<NEW_LINE>if (cmd.getArgList().size() != 1 || !cmd.hasOption("f") || !cmd.hasOption("g")) {<NEW_LINE>logError("Invalid command, expecting addToGroup[removeFromG... | read(feature).getGroup(); |
985,666 | public Expression implement(RexToLixTranslator translator, RexCall call, NullAs nullAs) {<NEW_LINE>switch(nullAs) {<NEW_LINE>case IS_NULL:<NEW_LINE>return Expressions.constant(false);<NEW_LINE>case IS_NOT_NULL:<NEW_LINE>return Expressions.constant(true);<NEW_LINE>}<NEW_LINE>final SqlOperator op = call.getOperator();<NE... | BuiltInMethod.LOCAL_TIME.method, root); |
54,544 | public static ArrayList<Integer> sieve(int lowerLimit, int upperLimit) {<NEW_LINE>ArrayList<Integer> result = new ArrayList<>();<NEW_LINE>if (upperLimit > 2) {<NEW_LINE>result.add(2);<NEW_LINE>}<NEW_LINE>;<NEW_LINE>if (upperLimit > 3) {<NEW_LINE>result.add(3);<NEW_LINE>}<NEW_LINE>;<NEW_LINE>boolean[] sieve = new boolea... | -> sieve[i] = false); |
746,507 | public Pair<List<QuotaTariffVO>, Integer> doInTransaction(final TransactionStatus status) {<NEW_LINE>List<QuotaTariffVO> tariffs = new ArrayList<QuotaTariffVO>();<NEW_LINE>final Filter filter = new Filter(QuotaTariffVO.class, "updatedOn", false, 0L, 1L);<NEW_LINE>final SearchCriteria<QuotaTariffVO> sc = listAllIncluded... | (0).getCurrencyValue()); |
1,131,675 | public Pair<AfterScanAction, Object> scanPool(Long dataCenterId) {<NEW_LINE>List<SecondaryStorageVmVO> ssVms = _secStorageVmDao.getSecStorageVmListInStates(SecondaryStorageVm.Role.templateProcessor, dataCenterId, State.Running, State.Migrating, State.Starting, State.Stopped, State.Stopping);<NEW_LINE>int vmSize = (ssVm... | ? 0 : ssVms.size(); |
171,067 | private CompletableFuture<HttpResponseStatus> shutdownServerThread(Model model, CompletableFuture<HttpResponseStatus> future) {<NEW_LINE>model.getServerThread().shutdown();<NEW_LINE>WorkerLifeCycle lifecycle = model.getServerThread().getLifeCycle();<NEW_LINE><MASK><NEW_LINE>if (workerProcess.isAlive()) {<NEW_LINE>boole... | Process workerProcess = lifecycle.getProcess(); |
1,096,827 | public void start(Xid xid, int flags) throws XAException {<NEW_LINE>long threadId = currentThreadId();<NEW_LINE>TransactionContext threadContext = threadContextMap.get(currentThreadId());<NEW_LINE>switch(flags) {<NEW_LINE>case TMNOFLAGS:<NEW_LINE>List<TransactionContext> contexts = new CopyOnWriteArrayList<TransactionC... | throw new XAException("Unknown flag! " + flags); |
784,864 | public static AutomaticDependencies parse(URL[] urls) throws SAXException, IOException {<NEW_LINE>LOG.log(Level.FINE, "Parsing automatic dependencies {0}", Arrays.asList(urls));<NEW_LINE>AutomaticDependencies h = new AutomaticDependencies();<NEW_LINE>Parser p = new Parser(h.new Handler());<NEW_LINE>for (URL url : urls)... | = new IOException("While parsing: " + id); |
1,796,065 | public static List<String> doOutgoing(File repository, HgURL toUrl, String revision, String branch, OutputLogger logger, boolean showSaveCredentialsOption) throws HgException {<NEW_LINE>if (repository == null || toUrl == null)<NEW_LINE>return null;<NEW_LINE>InterRepositoryCommand command = new InterRepositoryCommand();... | Level.INFO, null, ex); |
1,052,628 | private Level determineGradleLogLevel(BuildListener l) {<NEW_LINE>try {<NEW_LINE>project.log("Detected gradle AntLoggingAdapter", Project.MSG_DEBUG);<NEW_LINE>Field loggerField = l.getClass().getDeclaredField("logger");<NEW_LINE>loggerField.setAccessible(true);<NEW_LINE>// org.gradle.internal.logging.slf4j.OutputEventL... | logger = loggerField.get(l); |
731,531 | public void removeRequiredAction(String action) {<NEW_LINE>// Always update DB<NEW_LINE>super.removeRequiredAction(action);<NEW_LINE>if (ldapProvider.getEditMode() == UserStorageProvider.EditMode.WRITABLE && RequiredAction.UPDATE_PASSWORD.toString().equals(action)) {<NEW_LINE>// Don't set pwdLastSet in MSAD LDS when it... | getLdapIdentityStore().update(ldapUser); |
1,294,260 | // DownloadHelper.Callback implementation.<NEW_LINE>@Override<NEW_LINE>public void onPrepared(DownloadHelper helper) {<NEW_LINE>@Nullable<NEW_LINE>Format format = getFirstFormatWithDrmInitData(helper);<NEW_LINE>if (format == null) {<NEW_LINE>onDownloadPrepared(helper);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// The conten... | Toast.LENGTH_LONG).show(); |
1,518,642 | public void createInboundPaymentFromJson(@NonNull @RequestBody final JsonInvoicePaymentCreateRequest request) {<NEW_LINE>final LocalDate dateTrx = CoalesceUtil.coalesce(request.getTransactionDate(), SystemTime.asLocalDate());<NEW_LINE>final List<JsonPaymentAllocationLine> lines = request.getLines();<NEW_LINE>if (valida... | getCurrencyId(request.getCurrencyCode()); |
1,669,950 | public void testPrerequisiteContext() throws Exception {<NEW_LINE>Function<Double, Double> totalCost = purchaseAmount -> {<NEW_LINE>return <MASK><NEW_LINE>};<NEW_LINE>Function<Double, Double> totalCostInRochesterMN;<NEW_LINE>Function<Double, Double> totalCostInAmesIA;<NEW_LINE>ThreadContext contextSvc = ThreadContext.b... | purchaseAmount + CurrentLocation.getTotalSalesTax(purchaseAmount); |
1,298,624 | private Result maybeFilterByZoneOfferings(Set<String> filterByZoneCodes, Provider provider, Map<String, InstanceType> instanceTypesMap) {<NEW_LINE>if (filterByZoneCodes.isEmpty()) {<NEW_LINE>LOG.debug("No zones specified. Skipping filtering by zone.");<NEW_LINE>} else {<NEW_LINE>CloudAPI cloudAPI = cloudAPIFactory.get(... | info("No Cloud API defined for {}. Skipping filtering by zone.", provider.code); |
1,089,154 | public int frameCount() throws JdiProxyException {<NEW_LINE>checkValid();<NEW_LINE>if (myFrameCount == -1) {<NEW_LINE>final ThreadReference threadReference = getThreadReference();<NEW_LINE>try {<NEW_LINE>myFrameCount = threadReference.frameCount();<NEW_LINE>} catch (ObjectCollectedException ignored) {<NEW_LINE>myFrameC... | e.getMessage(), e); |
1,037,429 | public ConfigureConnectionsResult configureConnectionsIfArgsProvided(@Nullable final CommandLineOptions commandLineOptions) {<NEW_LINE>if (commandLineOptions == null) {<NEW_LINE>return new ConfigureConnectionsResult(false);<NEW_LINE>}<NEW_LINE>// CConnection<NEW_LINE>ConfigureConnectionsResult result;<NEW_LINE>if (Chec... | , "metasfresh")).build(); |
1,394,027 | protected final void doSave(boolean force, @Nullable List<SaveSession> saveSessions, @Nonnull List<Pair<SaveSession, File>> readonlyFiles) {<NEW_LINE>ProjectStorageUtil.UnableToSaveProjectNotification[] notifications = NotificationsManager.getNotificationsManager().getNotificationsOfType(ProjectStorageUtil.UnableToSave... | toArray(VirtualFile[]::new); |
95,122 | private void init(CellDataSet table, List<ThinHierarchy> filters, ExcelBuilderOptions options) {<NEW_LINE>this.table = table;<NEW_LINE>this.options = options;<NEW_LINE>queryFilters = filters;<NEW_LINE>maxRows = SpreadsheetVersion.EXCEL2007.getMaxRows();<NEW_LINE>maxColumns = SpreadsheetVersion.EXCEL2007.getMaxColumns()... | rowScanTotals = new HashMap<>(); |
1,577,214 | public static <T> T createNewAttributeValue(DBCExecutionContext context, DBDValueHandler valueHandler, DBSTypedObject valueType, Class<T> targetType) throws DBCException {<NEW_LINE>DBRRunnableWithResult<Object> runnable = new DBRRunnableWithResult<Object>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(DBRPro... | e.getTargetException(), context); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.