idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,713,680 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String applicationDefinitionName, 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 null.")... | this.client.mergeContext(context); |
717,903 | public void observe(final Node node, final NativeObject options) {<NEW_LINE>if (node == null) {<NEW_LINE>throw Context.throwAsScriptRuntimeEx(new IllegalArgumentException("Node is undefined"));<NEW_LINE>}<NEW_LINE>if (options == null) {<NEW_LINE>throw Context.throwAsScriptRuntimeEx(new IllegalArgumentException("Options... | NativeArray) options.get("attributeFilter"); |
734,331 | private void prepareSelectionForEnqueueing(final PInstanceId selectionId) {<NEW_LINE>//<NEW_LINE>// Check incomplete compensation groups<NEW_LINE>final Set<String> incompleteOrderDocumentNo = invoiceCandDAO.retrieveOrderDocumentNosForIncompleteGroupsFromSelection(selectionId);<NEW_LINE>if (!incompleteOrderDocumentNo.is... | (", ").join(incompleteOrderDocumentNo); |
580,471 | void validateAffectedFolds(Fold fold, DocumentEvent evt, Collection damaged) {<NEW_LINE>int startOffset = evt.getOffset();<NEW_LINE>int endOffset = startOffset + evt.getLength();<NEW_LINE>int childIndex = FoldUtilitiesImpl.findFoldStartIndex(fold, startOffset, true);<NEW_LINE>if (childIndex == -1) {<NEW_LINE>if (fold.g... | first = fold.getFold(0); |
1,098,960 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE><MASK><NEW_LINE>resp.setContentType(CONTENT_TYPE);<NEW_LINE>Map<MaxwellDiagnostic, CompletableFuture<MaxwellDiagnosticResult.Check>> futureChecks = diagnosticContext.diagnostics.stream().collect(Collec... | resp.setHeader(CACHE_CONTROL, NO_CACHE); |
1,836,006 | public static void fetchMetricAndSend(Context context, Class metricClass, String nameSpace) {<NEW_LINE>Emitter emitter = <MASK><NEW_LINE>Metrics metrics = context.get(Metrics.class);<NEW_LINE>TelemetryConfiguration telemetryConfiguration = context.get(TelemetryConfiguration.class);<NEW_LINE>if (emitter != null && metri... | context.get(Emitter.class); |
669,785 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
819,197 | public Asset Open(String path, AccessMode mode) {<NEW_LINE>CHECK(zip_handle_ != null);<NEW_LINE>String name = path;<NEW_LINE>ZipEntryRO entry;<NEW_LINE>entry = zipFileRO.findEntryByName(name);<NEW_LINE>// int result = FindEntry(zip_handle_.get(), name, &entry);<NEW_LINE>// if (result != 0) {<NEW_LINE>// LOG(ERROR) + "N... | map = zipFileRO.createEntryFileMap(entry); |
1,211,034 | // Monitor the following issues when making changes here.<NEW_LINE>// - https://github.com/projectlombok/lombok/issues/278<NEW_LINE>// - https://github.com/projectlombok/lombok/issues/729<NEW_LINE>@Override<NEW_LINE>public JCTree visitVariable(VariableTree node, Void p) {<NEW_LINE>JCVariableDecl original = node instanc... | super.visitVariable(node, p); |
1,005,492 | /*@Override<NEW_LINE>public long addCodisServerInstallTask(long appId, String host, int port, int maxMemory, long parentTaskId) {<NEW_LINE>Map<String, Object> paramMap = new HashMap<String, Object>();<NEW_LINE>paramMap.put(TaskConstants.APPID_KEY, appId);<NEW_LINE>paramMap.put(TaskConstants.HOST_KEY, host);<NEW_LINE>pa... | String importantInfo = host + ":" + port; |
906,040 | public static void registerType(final ModelBuilder modelBuilder) {<NEW_LINE>final ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(InputSet.class, BPMN_ELEMENT_INPUT_SET).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<InputSet>() {<NEW_LINE><NEW_LINE>@... | OutputSet.class).build(); |
317,463 | private Mono<Response<FeatureResultInner>> registerWithResponseAsync(String resourceProviderNamespace, String featureName, 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 null."));... | this.client.mergeContext(context); |
1,553,529 | public void process(String deviceId, Path dataSourcePath, Host host, DataSourceProcessorProgressMonitor progressMonitor, DataSourceProcessorCallback callBack) {<NEW_LINE>// this method does not use the config panel<NEW_LINE>this.deviceId = deviceId;<NEW_LINE>this.imagePath = dataSourcePath.toString();<NEW_LINE>this.sec... | "", "", deviceId, host); |
1,321,288 | public Description match(ExpressionTree tree, VisitorState state) {<NEW_LINE>MatchResult result = ContainmentMatchers.firstNonNullMatchResult(tree, state);<NEW_LINE>if (result == null) {<NEW_LINE>return NO_MATCH;<NEW_LINE>}<NEW_LINE>Types types = state.getTypes();<NEW_LINE>TypeCompatibilityReport compatibilityReport = ... | ).ifPresent(description::addFix); |
1,666,846 | public String cssSelector() {<NEW_LINE>if (id().length() > 0) {<NEW_LINE>// prefer to return the ID - but check that it's actually unique first!<NEW_LINE>String idSel = "#" + id();<NEW_LINE>Document doc = ownerDocument();<NEW_LINE>if (doc != null) {<NEW_LINE>Elements <MASK><NEW_LINE>if (// otherwise, continue to the nt... | els = doc.select(idSel); |
1,521,630 | final DescribeMonitoringScheduleResult executeDescribeMonitoringSchedule(DescribeMonitoringScheduleRequest describeMonitoringScheduleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeMonitoringScheduleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | invoke(request, responseHandler, executionContext); |
595,569 | protected boolean rootIsValidANTLRDir(Tool tool) {<NEW_LINE>if (root == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>File antlrRootDir = new File(root);<NEW_LINE>if (!antlrRootDir.exists()) {<NEW_LINE>tool.error("Property antlr.build.root==" + root + " does not exist");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>... | error("Property antlr.build.root==" + root + " is not a directory"); |
777,458 | protected void extensionExcludeArtifacts(String extraResources) {<NEW_LINE>try {<NEW_LINE>File configFile = new File(extraResources);<NEW_LINE>if (configFile.exists()) {<NEW_LINE>BufferedReader bufferedReader = new BufferedReader(new FileReader(configFile));<NEW_LINE>String dataLine;<NEW_LINE>while ((dataLine = buffere... | parseExcludeConf(excludes, dataLine, EXTENSION_EXCLUDES); |
1,754,011 | public void callMethod(String moduleName, Dynamic methodKeyOrName, ReadableArray arguments, final Promise promise) {<NEW_LINE>String methodName;<NEW_LINE>if (methodKeyOrName.getType() == ReadableType.String) {<NEW_LINE>methodName = methodKeyOrName.asString();<NEW_LINE>} else if (methodKeyOrName.getType() == ReadableTyp... | e.getMessage(), e); |
1,569,595 | public static void toXContent(MetaData metaData, XContentBuilder builder, ToXContent.Params params) throws IOException {<NEW_LINE>XContentContext context = XContentContext.valueOf(params.param(CONTEXT_MODE_PARAM, "API"));<NEW_LINE>builder.startObject("meta-data");<NEW_LINE>builder.field("version", metaData.version());<... | field("cluster_uuid", metaData.clusterUUID); |
1,144,803 | private List<Item> handleSelectItems(List<SQLSelectItem> items) {<NEW_LINE>List<Item> selectItems = new ArrayList<>();<NEW_LINE>for (SQLSelectItem item : items) {<NEW_LINE>SQLExpr expr = item.getExpr();<NEW_LINE>MySQLItemVisitor ev = new MySQLItemVisitor(currentDb, this.charsetIndex, this.metaManager, this.usrVariables... | Item selItem = ev.getItem(); |
943,651 | public void rollbackNicForMigration(final VirtualMachineProfile src, final VirtualMachineProfile dst) {<NEW_LINE>for (final NicProfile nicDst : dst.getNics()) {<NEW_LINE>final NetworkVO network = _networksDao.<MASK><NEW_LINE>final NetworkGuru guru = AdapterBase.getAdapterByName(networkGurus, network.getGuruName());<NEW... | findById(nicDst.getNetworkId()); |
430,584 | synchronized CompletableFuture<Void> startNewSnapshotPhase2(long snapshotId, boolean success) {<NEW_LINE>if (snapshotId == activeSnapshotIdPhase2) {<NEW_LINE>// this is possible in case when the operation packet was lost and retried<NEW_LINE>logger.warning("Second request for phase 2 for snapshot " + snapshotId);<NEW_L... | : "requested phase 2 for snapshot ID " + snapshotId + ", but phase 1 snapshot ID is " + activeSnapshotIdPhase1; |
167,390 | final CreateDomainResult executeCreateDomain(CreateDomainRequest createDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,754,883 | private void submitPost(MenuItem item) {<NEW_LINE>if (!subredditSelected) {<NEW_LINE>Snackbar.make(coordinatorLayout, R.string.select_a_subreddit, Snackbar.LENGTH_SHORT).show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (titleEditText.getText() == null || titleEditText.getText().toString().equals("")) {<NEW_LINE>Snackbar... | .getText().toString(); |
573,968 | public Map<?, ?> toConfigMap() {<NEW_LINE>// Using LinkedHashMap to keep the props in order when written into the config file.<NEW_LINE>Map<String, Object> configMap = new LinkedHashMap<>();<NEW_LINE>configMap.put(GROUP_ID_KEY, libraryKey.getGroupId());<NEW_LINE>configMap.put(ARTIFACT_ID_KEY, libraryKey.getArtifactId()... | configMap.put(CHECKSUM_KEY, checksumMap); |
48,086 | private void processBuildStep(RoundEnvironment roundEnv, TypeElement annotation) {<NEW_LINE>final Set<String> processorClassNames = new HashSet<>();<NEW_LINE>for (ExecutableElement i : methodsIn(roundEnv.getElementsAnnotatedWith(annotation))) {<NEW_LINE>final TypeElement clazz = getClassOf(i);<NEW_LINE>if (clazz == nul... | (clazz, new StringBuilder()); |
1,687,695 | private Class<?> generateReflectionHandler() {<NEW_LINE>try {<NEW_LINE>ClassNode node = MixinService.getService().getBytecodeProvider().getClassNode(Type.getInternalName(ArclightReflectionHandler.class));<NEW_LINE>Preconditions.checkNotNull(node, "node");<NEW_LINE>ClassWriter writer = new ClassWriter(0);<NEW_LINE>Strin... | + "_" + COUNTER.getAndIncrement(); |
461,439 | public void check(Configuration configuration) throws ConfigurationException {<NEW_LINE>for (ConfigurationField field : fields.values()) {<NEW_LINE>if (field.isOptional().equals(ConfigurationField.Optional.NOT_OPTIONAL)) {<NEW_LINE>final String type = field.getFieldType();<NEW_LINE>final String fieldName = field.getNam... | debug("Checking for mandatory field \"{}\" of type {} in configuration", fieldName, type); |
1,594,753 | public static void showPointCloud(ImageGray disparity, BufferedImage left, Se3_F64 motion, DMatrixRMaj rectifiedK, DMatrixRMaj rectifiedR, int disparityMin, int disparityRange) {<NEW_LINE>DisparityToColorPointCloud d2c = new DisparityToColorPointCloud();<NEW_LINE>PointCloudWriter.CloudArraysF32 cloud = new PointCloudWr... | pcv.setTranslationStep(baseline / 10); |
1,396,536 | private MethodSpec overrideGlideWithMethod(String packageName, TypeSpec generatedRequestManager, ExecutableElement methodToOverride) {<NEW_LINE>ClassName generatedRequestManagerClassName = ClassName.get(packageName, generatedRequestManager.name);<NEW_LINE>List<ParameterSpec> parameters = processorUtil.getParameters(met... | .iterator().next(); |
176,071 | public void engineExplorationV1(KernelPackage kernelPackage) {<NEW_LINE>for (int i = 0; i < MAX_DEVICES; i++) {<NEW_LINE>for (int j = 0; j < MAX_DEVICES; j++) {<NEW_LINE>// We play with 2 devices<NEW_LINE>TaskSchedule s0 <MASK><NEW_LINE>TornadoRuntime.setProperty("x" + i + ".t" + j + ".device", "0:" + DEVICE_INDEXES[i]... | = new TaskSchedule("x" + i); |
841,591 | private void printFunction(String name, boolean singleBand) {<NEW_LINE>totalFunctions++;<NEW_LINE>String dimen = name.equals("convolve") ? "2D" : "1D";<NEW_LINE>String docName = name.equals("convolve") ? "" : " " + name;<NEW_LINE>String nativeName = Character.toUpperCase(name.charAt(0)) + name.substring(1);<NEW_LINE>St... | "." + name + "(kernel, border, output);\n" + "\t}\n\n"); |
1,231,978 | public void encryptDeterministically(DeterministicAeadEncryptRequest request, StreamObserver<DeterministicAeadEncryptResponse> responseObserver) {<NEW_LINE>DeterministicAeadEncryptResponse response;<NEW_LINE>try {<NEW_LINE>KeysetHandle keysetHandle = CleartextKeysetHandle.read(BinaryKeysetReader.withBytes(request.getKe... | getAssociatedData().toByteArray()); |
1,537,200 | // Handle show resources<NEW_LINE>private void handleShowResources() {<NEW_LINE>ShowResourcesStmt showStmt = (ShowResourcesStmt) stmt;<NEW_LINE>List<List<Comparable>> resourcesInfos = Env.getCurrentEnv().getResourceMgr().getResourcesInfo(showStmt.getNameValue(), showStmt.isAccurateMatch(), showStmt.getTypeSet());<NEW_L... | int) (limit + offset)); |
1,544,954 | public static byte[] jsonToAvro(String json, Schema avroSchema) throws AvroTypeException, IOException {<NEW_LINE>// Prepare reader an input stream from Json string.<NEW_LINE>GenericDatumReader<Object> reader = new GenericDatumReader<>(avroSchema);<NEW_LINE>InputStream input = new ByteArrayInputStream(json.getBytes("UTF... | reader.read(datum, jsonDecoder); |
799,040 | protected void parseCreateField(ParseContext context, List<IndexableField> fields) throws IOException {<NEW_LINE>String dateAsString;<NEW_LINE>if (context.externalValueSet()) {<NEW_LINE>Object dateAsObject = context.externalValue();<NEW_LINE>if (dateAsObject == null) {<NEW_LINE>dateAsString = null;<NEW_LINE>} else {<NE... | fieldType().boost()); |
1,190,212 | public static void main(String[] args) {<NEW_LINE>System.out.println(toString32(792539709424970410L));<NEW_LINE>System.out.println(toString32(-342343233040343034L));<NEW_LINE>System.out.println(Hexa32.toLong32("z6eq8mqkdkpt7c"));<NEW_LINE>System.out.println<MASK><NEW_LINE>System.out.println(Long.toHexString(79253970942... | (Hexa32.toString32(100000001L)); |
493,935 | public void handle(AnnotationValues<WithBy> annotation, JCAnnotation ast, JavacNode annotationNode) {<NEW_LINE>handleExperimentalFlagUsage(annotationNode, ConfigurationKeys.WITHBY_FLAG_USAGE, "@WithBy");<NEW_LINE>deleteAnnotationIfNeccessary(annotationNode, WithBy.class);<NEW_LINE>deleteImportFromCompilationUnit(annota... | .getInstance().value(); |
730,797 | private void doCommand(final Iterator<String> it, final String path, final AgentCmd cmd, final Class rspType, final ReturnValueCompletion<AgentRsp> completion) {<NEW_LINE>if (!it.hasNext()) {<NEW_LINE>completion.fail(errf.stringToOperationError("an operation failed on all hosts", errors));<NEW_LINE>return;<NEW_LINE>}<N... | String hostUuid = it.next(); |
633,319 | public List<QualifiedName> listNames(final ConnectorRequestContext requestContext, final QualifiedName name, @Nullable final QualifiedName prefix, @Nullable final Sort sort, @Nullable final Pageable pageable) {<NEW_LINE>try {<NEW_LINE>final List<QualifiedName> qualifiedNames = Lists.newArrayList();<NEW_LINE>final Strin... | name.getDatabaseName(), tableName); |
891,612 | private List<Wo> list(Business business, Wi wi) throws Exception {<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>Identity identity = business.identity().pick(wi.getIdentity());<NEW_LINE>if (null != identity) {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(UnitDuty.class);<NEW_LINE>CriteriaBuil... | trim(unitIds, true, true); |
341,204 | Map<String, Object> mapFieldsFromJson(final String json) throws JsonProcessingException, DotDataException, DotSecurityException {<NEW_LINE>final Contentlet immutableContentlet = immutableFromJson(json);<NEW_LINE>final Map<String, Object> map = new HashMap<>();<NEW_LINE>final String inode = immutableContentlet.inode();<... | contentType = contentTypeAPI.find(contentTypeId); |
1,260,692 | public ExtendedLuceneIndexData extract(IBaseResource theResource, ResourceIndexedSearchParams theNewParams) {<NEW_LINE>ExtendedLuceneIndexData retVal = new ExtendedLuceneIndexData(myContext);<NEW_LINE>if (myDaoConfig.isStoreResourceInLuceneIndex()) {<NEW_LINE>retVal.setRawResourceData(myContext.newJsonParser().encodeRe... | ()).add(nextParamName); |
1,697,175 | protected void storeProfilingPoint(ProfilingPoint profilingPoint, int index, Properties properties) {<NEW_LINE>TakeSnapshotProfilingPoint takeSnapshot = (TakeSnapshotProfilingPoint) profilingPoint;<NEW_LINE>// NOI18N<NEW_LINE>properties.put(index + "_" + ProfilingPoint.PROPERTY_NAME, takeSnapshot.getName());<NEW_LINE>/... | getProject(), index, properties); |
623,306 | public static ProcessCtl process(ASyncProcess parent, int WindowNo, ProcessInfo processInfo, Trx trx) {<NEW_LINE>log.fine("WindowNo=" + WindowNo + " - " + processInfo);<NEW_LINE>MPInstance instance = null;<NEW_LINE>try {<NEW_LINE>instance = new MPInstance(Env.getCtx(), processInfo.getAD_Process_ID(), processInfo.getRec... | ) parent), WindowNo, processInfo); |
1,744,666 | private static boolean isEar(int i, float[] xv, float[] yv) {<NEW_LINE>float dx0, dy0, dx1, dy1;<NEW_LINE>dx0 = dy0 = dx1 = dy1 = 0;<NEW_LINE>if (i >= xv.length || i < 0 || xv.length < 3)<NEW_LINE>return false;<NEW_LINE>int upper = i + 1;<NEW_LINE>int lower = i - 1;<NEW_LINE>if (i == 0) {<NEW_LINE>dx0 = xv[0] - xv[xv.l... | yv[yv.length - 1]; |
1,465,819 | public static SessionId fromInboundMessage(Message message) {<NEW_LINE>SessionId sessionId = null;<NEW_LINE>String localTag = message.getToHeader().getTag();<NEW_LINE>String remoteTag = message<MASK><NEW_LINE>// old clients might send us requests with no To tag<NEW_LINE>if (null == localTag)<NEW_LINE>localTag = "";<NEW... | .getFromHeader().getTag(); |
1,774,778 | public static FromChannelCredentialsResult from(ChannelCredentials creds) {<NEW_LINE>if (creds instanceof TlsChannelCredentials) {<NEW_LINE>TlsChannelCredentials tlsCreds = (TlsChannelCredentials) creds;<NEW_LINE>Set<TlsChannelCredentials.Feature> incomprehensible = tlsCreds.incomprehensible(understoodTlsFeatures);<NEW... | (tlsCreds.getTrustManagers())); |
1,015,462 | public static DescribeShardingNetworkAddressResponse unmarshall(DescribeShardingNetworkAddressResponse describeShardingNetworkAddressResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeShardingNetworkAddressResponse.setRequestId(_ctx.stringValue("DescribeShardingNetworkAddressResponse.RequestId"));<NEW_LINE>List<Com... | ("DescribeShardingNetworkAddressResponse.CompatibleConnections[" + i + "].NetworkAddress")); |
997,557 | public ApiResponse<Void> mediaSharesDeleteWithHttpInfo(String id) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'id' when calling mediaSharesDelete");<NE... | = new ArrayList<Pair>(); |
1,309,895 | public IndicesAliasesRequest indicesAliasesRequest(AliasActions aliasActions) {<NEW_LINE>IndicesAliasesRequest request = new IndicesAliasesRequest();<NEW_LINE>aliasActions.getActions().forEach(aliasAction -> {<NEW_LINE>IndicesAliasesRequest.AliasActions aliasActionsES = null;<NEW_LINE>if (aliasAction instanceof AliasAc... | writeIndex(parameters.getWriteIndex()); |
752,724 | public List<EndpointDefinition> loadServices(final String serviceName) {<NEW_LINE>ServiceData serviceData = serviceDataMap.get(serviceName);<NEW_LINE>if (serviceData == null) {<NEW_LINE>File file = new File(dir, serviceName + ".json");<NEW_LINE>serviceData = new ServiceData(loadDefinitions(file), Timer.timer().now(), f... | File(dir, serviceName + ".json"); |
958,040 | private Mono<Response<OnPremiseIotSensorInner>> createOrUpdateWithResponseAsync(String onPremiseIotSensorName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgumen... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
232,774 | public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup... | format("The resource ID '%s' is not valid. Missing path segment 'service'.", id))); |
50,712 | public GetRecommendationsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetRecommendationsResult getRecommendationsResult = new GetRecommendationsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | JsonToken token = context.getCurrentToken(); |
1,808,067 | EhcacheEntityResponse invoke(StateRepositoryOpMessage message) {<NEW_LINE>String mapId = message.getMapId();<NEW_LINE>ConcurrentMap<Object, <MASK><NEW_LINE>Object result;<NEW_LINE>switch(message.getMessageType()) {<NEW_LINE>case GET_STATE_REPO:<NEW_LINE>StateRepositoryOpMessage.GetMessage getMessage = (StateRepositoryO... | Object> map = getStateMap(mapId); |
212,506 | public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.profile_settings_fragment, container, false);<NEW_LINE>adapter = new ProfileSettingsAdapter(getContext(), GlideApp.with(this), locale, this);<NEW_LINE>list = ViewUt... | addObserver(DcContext.DC_EVENT_MSGS_CHANGED, this); |
1,675,479 | private JPanel buildHeader() {<NEW_LINE>JPanel header = new JPanel(new BorderLayout());<NEW_LINE>JPanel leftSide = new JPanel(new BorderLayout());<NEW_LINE>JPanel rightSide = new JPanel(new BorderLayout());<NEW_LINE>pingHeader = new WorldTableHeader("Ping", orderIndex == WorldOrder.PING, ascendingOrder, plugin::refresh... | orderIndex != WorldOrder.WORLD || !ascendingOrder; |
1,576,632 | public void onBindViewHolder(@NonNull final GroupsViewHolder holder, int position) {<NEW_LINE>if (position == items.size()) {<NEW_LINE>holder.groupButton.setOnClickListener(view -> {<NEW_LINE>FragmentManager fragmentManager = getFragmentManager();<NEW_LINE>DialogFragment dialogFragment = createAddCategoryDialog();<NEW_... | == 0 ? getDefaultColor() : categoryColor; |
1,708,096 | public void reopen(FileInputSplit split, Long state) throws IOException {<NEW_LINE><MASK><NEW_LINE>Preconditions.checkNotNull(state, "reopen() cannot be called with a null initial state.");<NEW_LINE>Preconditions.checkArgument(state == -1 || state >= split.getStart(), " Illegal offset " + state + ", smaller than the sp... | Preconditions.checkNotNull(split, "reopen() cannot be called on a null split."); |
1,184,920 | public void updated(Dictionary<String, ?> config) throws ConfigurationException {<NEW_LINE>logger.trace("Binding configuration updated");<NEW_LINE>if (config == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ConfigurationDictionary configuration = new ConfigurationDictionary(config);<NEW_LINE>this.refreshInterval = confi... | configuration.getInt("timeout", 5000); |
1,442,187 | public static Result addToSourcePath(String sourceFolderUri) {<NEW_LINE>IPath sourceFolderPath = ResourceUtils.filePathFromURI(sourceFolderUri);<NEW_LINE>IProject targetProject = findBelongedProject(sourceFolderPath);<NEW_LINE>if (targetProject != null && !ProjectUtils.isGeneralJavaProject(targetProject)) {<NEW_LINE>re... | workspaceRoot = ProjectUtils.findBelongedWorkspaceRoot(sourceFolderPath); |
836,957 | int[] computeOffsets(Graphics gg, @Nonnull JComponent component) {<NEW_LINE>if (myPainters.isEmpty())<NEW_LINE>return ArrayUtil.EMPTY_INT_ARRAY;<NEW_LINE>int i = 0;<NEW_LINE>int[] offsets = new int[2 + myPainters.size() * 2];<NEW_LINE>// store current graphics transform<NEW_LINE>Graphics2D g = (Graphics2D) gg;<NEW_LINE... | cur.getBounds(), component); |
603,938 | protected LineIndentResult determineIndent(IDocument doc, BlockHeuristicsScannner bhscanner, final int line, final int editOffset) throws BadLocationException {<NEW_LINE>IRegion lineRegion = doc.getLineInformation(line);<NEW_LINE>final <MASK><NEW_LINE>assertTrue(lineStart <= editOffset && editOffset <= getRegionEnd(lin... | int lineStart = lineRegion.getOffset(); |
672,108 | private void decodeSub4x8(MBlock mBlock, int partNo, Picture[] references, int offX, int offY, int tl, int t0, int t1, int tr, int l0, boolean tlAvb, boolean tAvb, boolean trAvb, boolean lAvb, MvList x, int i00, int i01, int i10, int i11, int refIdx, Picture mb, int off, int list) {<NEW_LINE>int mvpX1 = calcMVPredictio... | trAvb, tAvb, refIdx, 0); |
21,164 | public com.amazonaws.services.codecommit.model.InvalidContinuationTokenException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.InvalidContinuationTokenException invalidContinuationTokenException = new com.amazonaws.services.codecommit.model.In... | JsonToken token = context.getCurrentToken(); |
1,759,795 | public void convert(InputStream in, OutputStream out, Options options) throws XDocConverterException {<NEW_LINE>try {<NEW_LINE>// 1) load docx with docx4j<NEW_LINE>WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(in);<NEW_LINE>// 2) convert it to PDF<NEW_LINE>// = new org.docx4j.convert.out.pdf.viaH... | (out, toPdfSettings(options)); |
794,977 | static byte[] toByteArray(final ReqSketch sk) {<NEW_LINE>final SerDeFormat serDeFormat = getSerFormat(sk);<NEW_LINE>final int bytes = getSerBytes(sk, serDeFormat);<NEW_LINE>final byte[] arr = new byte[bytes];<NEW_LINE>final WritableBuffer wbuf = WritableMemory.writableWrap(arr).asWritableBuffer();<NEW_LINE>final byte p... | putFloat(sk.getMinValue()); |
1,598,339 | public static QueryCashCouponsResponse unmarshall(QueryCashCouponsResponse queryCashCouponsResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryCashCouponsResponse.setRequestId(_ctx.stringValue("QueryCashCouponsResponse.RequestId"));<NEW_LINE>queryCashCouponsResponse.setCode(_ctx.stringValue("QueryCashCouponsResponse.Co... | ("QueryCashCouponsResponse.Data[" + i + "].ApplicableScenarios")); |
535,462 | public FilterActivity unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FilterActivity filterActivity = new FilterActivity();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +... | class).unmarshall(context)); |
1,023,230 | public synchronized void scanResources(TreeLogger logger) {<NEW_LINE>Event resourceOracle = SpeedTracerLogger.start(CompilerEventType.RESOURCE_ORACLE, "phase", "refresh");<NEW_LINE>TreeLogger refreshBranch = Messages.REFRESHING_RESOURCES.branch(logger, null);<NEW_LINE>Map<String, ResourceDescription> resourceDescriptio... | resourceDescriptionsByPath.put(resourcePath, resourceDescription); |
158,519 | private static IStringExpression buildSqlSelect_WithoutGrouping(@NonNull final String sqlTableName, @NonNull final String sqlTableAlias, @NonNull final SqlViewKeyColumnNamesMap keyColumnNamesMap, @NonNull final Collection<String> displayFieldNames, @NonNull final Collection<SqlViewRowFieldBinding> allFields) {<NEW_LINE... | getSqlSelectDisplayValue().toStringExpressionWithColumnNameAlias()); |
971,838 | private void serializeColumn(TSDataType dataType, Object column, ByteBuffer buffer, int start, int end) {<NEW_LINE>int curStart = isExecuting ? start : 0;<NEW_LINE>int curEnd = isExecuting ? end : rowCount;<NEW_LINE>switch(dataType) {<NEW_LINE>case INT32:<NEW_LINE>int[] intValues = (int[]) column;<NEW_LINE>for (int j =... | boolToByte(boolValues[j])); |
480,952 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>sizeCheckbox = <MASK><NEW_LINE>sizeList = new org.sleuthkit.autopsy.guiutils.CheckBoxListPanel<>();<NEW_LINE>// NOI18N<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(sizeCheck... | new javax.swing.JCheckBox(); |
291,338 | private void processMemoryReference(XmlElement element, boolean overwrite) {<NEW_LINE>try {<NEW_LINE>String fromAddrStr = element.getAttribute("ADDRESS");<NEW_LINE>if (fromAddrStr == null) {<NEW_LINE>throw new XmlAttributeException("ADDRESS attribute missing for MEMORY_REFERENCE element");<NEW_LINE>}<NEW_LINE>Address f... | XmlProgramUtilities.parseAddress(factory, fromAddrStr); |
1,199,526 | public void generate(Collection<Class<? extends Component>> components, Collection<Class<? extends FieldProxyStrategy>> fieldProxyStrategies, File outputDirectory, Log log, FluidGeneratorPreferences globalPreferences) {<NEW_LINE>if (fieldProxyStrategies == null || fieldProxyStrategies.isEmpty()) {<NEW_LINE>log.error("F... | (outputArtemisModuleDirectory, "E.java"), log); |
1,793,237 | private void updateports(Instance instance) {<NEW_LINE>final var facing = instance.getAttributeValue(StdAttr.FACING);<NEW_LINE>final var volumeWidth = (byte) instance.<MASK><NEW_LINE>final var ports = new Port[4];<NEW_LINE>if (facing == Direction.EAST || facing == Direction.WEST) {<NEW_LINE>ports[FREQ] = new Port(0, -1... | getAttributeValue(VOLUME_WIDTH).getWidth(); |
1,687,749 | private void writeMeta(FieldInfo field, long vectorDataOffset, long vectorDataLength, long vectorIndexOffset, long vectorIndexLength, DocsWithFieldSet docsWithField, OnHeapHnswGraph graph) throws IOException {<NEW_LINE>meta.writeInt(field.number);<NEW_LINE>meta.writeInt(field.getVectorSimilarityFunction().ordinal());<N... | nodesOnLevel = graph.getNodesOnLevel(level); |
1,523,121 | public UpdateHypervisorResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateHypervisorResult updateHypervisorResult = new UpdateHypervisorResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_... | int originalDepth = context.getCurrentDepth(); |
909,502 | private void loadStoredFields(SearchContext searchContext, LeafReaderContext readerContext, FieldsVisitor fieldVisitor, int docId) {<NEW_LINE>fieldVisitor.reset();<NEW_LINE>try {<NEW_LINE>readerContext.reader(<MASK><NEW_LINE>} catch (IOException e) {<NEW_LINE>throw new FetchPhaseExecutionException(searchContext, "Faile... | ).document(docId, fieldVisitor); |
1,605,232 | public void start(List<FlinkStreamSource> sources, List<FlinkStreamTransform> transforms, List<FlinkStreamSink> sinks) throws Exception {<NEW_LINE>List<DataStream<Row>> data = new ArrayList<>();<NEW_LINE>for (FlinkStreamSource source : sources) {<NEW_LINE>DataStream<Row> dataStream = source.getData(flinkEnvironment);<N... | getStreamExecutionEnvironment().getExecutionPlan()); |
740,524 | public static String formatTimeStamp(long time) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>Calendar calendar = Calendar.getInstance();<NEW_LINE>calendar.setTimeInMillis(time);<NEW_LINE>sb.append('[');<NEW_LINE>sb.append(formatIntToTwoDigits(calendar.<MASK><NEW_LINE>sb.append('.');<NEW_LINE>// 0 based<N... | get(Calendar.DAY_OF_MONTH))); |
1,127,169 | final DescribeUpdateActionsResult executeDescribeUpdateActions(DescribeUpdateActionsRequest describeUpdateActionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeUpdateActionsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,142,480 | private static String collapseWhitespace(InlineBox iB, IdentValue whitespace, String text, boolean collapseLeading) {<NEW_LINE>if (whitespace == IdentValue.NORMAL || whitespace == IdentValue.NOWRAP) {<NEW_LINE>return collapseWhitespaceNormalOrNoWrap(text, collapseLeading);<NEW_LINE>} else if (whitespace == IdentValue.P... | (text).replaceAll(SPACE); |
1,521,185 | public byte[] decrypt(final byte[] ciphertext, final byte[] contextInfo) throws GeneralSecurityException {<NEW_LINE>EllipticCurve curve = recipientPrivateKey.getParams().getCurve();<NEW_LINE>int headerSize = EllipticCurves.encodingSizeInBytes(curve, ecPointFormat);<NEW_LINE>if (ciphertext.length < headerSize) {<NEW_LIN... | , ciphertext.length), EMPTY_AAD); |
276,258 | public void onInit() {<NEW_LINE>if (this.initialized) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>super.onInit();<NEW_LINE>if (this.maxSubscribers == null) {<NEW_LINE>setMaxSubscribers(getIntegrationProperty(IntegrationProperties.CHANNELS_MAX_BROADCAST_SUBSCRIBERS, Integer.class));<NEW_LINE>}<NEW_LINE>if (this.messageConver... | this.messageConverter = new SimpleMessageConverter(); |
1,455,253 | protected Control createDialogArea(Composite parent) {<NEW_LINE>// page group<NEW_LINE>Composite composite = (Composite) super.createDialogArea(parent);<NEW_LINE>Font font = parent.getFont();<NEW_LINE>composite.setFont(font);<NEW_LINE>createMessageArea(composite);<NEW_LINE>fTableViewer = new TableViewer(composite, SWT.... | .getDefault().getDialogSettings(); |
194,285 | private void recalculateStartingFromInvoiceCand(@NonNull final RecalculateCommissionCriteria commissionCriteria, final boolean salesRepAsCustomer) {<NEW_LINE>final InvoiceCandidateQuery.InvoiceCandidateQueryBuilder invoiceCandidateQueryBuilder = InvoiceCandidateQuery.builder().soTrx(SOTrx.SALES).dateOrderedInterval(com... | withLogger(logger, Level.DEBUG); |
1,724,543 | public final // JPA2.g:464:1: case_operand : ( path_expression | type_discriminator );<NEW_LINE>JPA2Parser.case_operand_return case_operand() throws RecognitionException {<NEW_LINE>JPA2Parser.case_operand_return retval = new JPA2Parser.case_operand_return();<NEW_LINE>retval.start = input.LT(1);<NEW_LINE>Object root_0 =... | root_0, path_expression538.getTree()); |
1,461,236 | public ResourceSelectionResult<AgentLauncher> select(@Valid final AgentLauncherSelectionContext context) throws ResourceSelectionException {<NEW_LINE>final long selectStart = System.nanoTime();<NEW_LINE>final <MASK><NEW_LINE>final Set<AgentLauncher> resources = context.getAgentLaunchers();<NEW_LINE>log.debug("Called to... | String jobId = context.getJobId(); |
1,368,571 | Counter<Integer> wordClass(String phrase, String phraseLemma) {<NEW_LINE>Counter<Integer> cl = new ClassicCounter<>();<NEW_LINE>String[] phl = null;<NEW_LINE>if (phraseLemma != null)<NEW_LINE>phl = phraseLemma.split("\\s+");<NEW_LINE>int i = 0;<NEW_LINE>for (String w : phrase.split("\\s+")) {<NEW_LINE>Integer cluster =... | .get(phl[i]); |
48,238 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | invoke(request, responseHandler, executionContext); |
275,427 | public boolean computeSceneTransform(LookUpSimilarImages dbSimilar, SceneWorkingGraph src, SceneWorkingGraph dst, SceneWorkingGraph.View selectedSrc, SceneWorkingGraph.View selectedDst, ScaleSe3_F64 src_to_dst) {<NEW_LINE>// Sanity check<NEW_LINE>BoofMiscOps.checkSame(selectedSrc.pview, selectedDst.pview);<NEW_LINE>if ... | List) listIntrinsicsDst.toList()); |
117,085 | public static List<Row> extractRows(List<Line> lines) {<NEW_LINE>List<Row> rows = new ArrayList<>();<NEW_LINE>for (Line line : lines) {<NEW_LINE>if (line.getText().isEmpty())<NEW_LINE>continue;<NEW_LINE>List<LinePart> lineContent = line.getContent();<NEW_LINE>Row row = new Row();<NEW_LINE>Cell currentCell = null;<NEW_L... | = lineContent.size() - 1; |
1,195,726 | protected void doGet(final HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>final String categoryId = req.getParameter(PARAM_CATEGORYID);<NEW_LINE>String orderParam = req.getParameter(PARAM_READINGORDER);<NEW_LINE><MASK><NEW_LINE>Optional<User> user = sessionHelper.getLo... | SessionHelper sessionHelper = new SessionHelper(req); |
720,708 | @SuppressWarnings("fallthrough")<NEW_LINE>public Set<String> createConcealedProperties(@NonNull final String command, @NonNull final Lookup context) {<NEW_LINE>// NOI18N<NEW_LINE>Parameters.notNull("command", command);<NEW_LINE>// NOI18N<NEW_LINE>Parameters.notNull("context", context);<NEW_LINE>switch(command) {<NEW_LI... | Collections.<String>emptySet(); |
646,401 | private void enforcePriceLimit(@NonNull final PriceLimitEnforceContext context) {<NEW_LINE>final CalculatePricingConditionsRequest request = createCalculateDiscountRequest(context);<NEW_LINE>final PricingConditionsResult pricingConditionsResult = calculatePricingConditions(request);<NEW_LINE>if (pricingConditionsResult... | BigDecimal price = pricingConditionsResult.getPriceStdOverride(); |
133,327 | private void readFile() throws IOException {<NEW_LINE>// clear all data first, if file is gone so are all creds<NEW_LINE>credentials.clear();<NEW_LINE>tags.clear();<NEW_LINE>if (!credFile.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try (BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStre... | 0], s2[0]); |
853,371 | protected void updateViewFromSelected() {<NEW_LINE>if (selected == null)<NEW_LINE>return;<NEW_LINE>super.commonUpdateViewFromSelected();<NEW_LINE>sshServer.setText(selected.getSshServer());<NEW_LINE>sshPort.setText(Integer.toString(selected.getSshPort()));<NEW_LINE>sshUser.setText(selected.getSshUser());<NEW_LINE>check... | (selected.getRdpHeight())); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.