idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,031,330 | final DescribeEC2InstanceLimitsResult executeDescribeEC2InstanceLimits(DescribeEC2InstanceLimitsRequest describeEC2InstanceLimitsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEC2InstanceLimitsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeEC2InstanceLimits"); |
76,257 | public void handleChunkUnload(ChunkEvent.Unload event) {<NEW_LINE>if (!onchunkgenerate)<NEW_LINE>return;<NEW_LINE>LevelAccessor w = event.getWorld();<NEW_LINE>if (!(w instanceof ServerLevel))<NEW_LINE>return;<NEW_LINE>ChunkAccess c = event.getChunk();<NEW_LINE>if (c != null) {<NEW_LINE>ForgeWorld fw = getWorld((ServerL... | sections[i].bottomBlockY(); |
858,262 | private static boolean checkFuncallRespondTo(ThreadContext context, RubyClass klass, IRubyObject recv, RespondToCallSite respondToSite) {<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>DynamicMethod me = respondToSite.retrieveCache(klass).method;<NEW_LINE>// NOTE: isBuiltin here would be NOEX_BASIC in MRI, a f... | context, recv, recv, true); |
1,293,251 | public final void allToAllw(Object sendBuf, int[] sendCount, int[] sDispls, Datatype[] sendTypes, Object recvBuf, int[] recvCount, int[] rDispls, Datatype[] recvTypes) throws MPIException {<NEW_LINE>MPI.check();<NEW_LINE>int[] sendoffs = new int[sendTypes.length];<NEW_LINE>int[] recvoffs = new int[recvTypes.length];<NE... | [i].getOffset(sendBuf); |
529,142 | public byte[] decodeMessage() {<NEW_LINE>byte[] data = new byte[18];<NEW_LINE>data[0] = 0x11;<NEW_LINE>data[1] = PacketType.ENERGY.toByte();<NEW_LINE>data[2] = subType.toByte();<NEW_LINE>data[3] = seqNbr;<NEW_LINE>data[4] = (byte) ((sensorId & 0xFF00) >> 8);<NEW_LINE>data[5] = <MASK><NEW_LINE>data[6] = count;<NEW_LINE>... | (byte) (sensorId & 0x00FF); |
1,125,076 | private ValueSetTm parseValueSet(ca.uhn.fhir.model.dstu2.resource.ValueSet nextVs) {<NEW_LINE>myConceptCount += nextVs.getCodeSystem().getConcept().size();<NEW_LINE>ourLog.debug("Parsing ValueSetTm #{} - {} - {} concepts total", myValueSetCount++, nextVs.getName(), myConceptCount);<NEW_LINE>// output.addConcept(next.ge... | system, nextCodeValue, null, null); |
430,887 | public void read(org.apache.thrift.protocol.TProtocol prot, query_aggregate_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet <MASK><NEW_LINE>if (incoming.get(0)) {<NEW_LINE>struct.mid... | incoming = iprot.readBitSet(4); |
1,127,811 | public Flux<CommandResponse<PendingRecordsCommand, PendingMessages>> xPending(Publisher<PendingRecordsCommand> commands) {<NEW_LINE>return connection.execute(cmd -> Flux.from(commands).concatMap(command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Key must not be null!");<NEW_LINE>ByteBuffer groupName = ByteUtils.ge... | .core.Limit.unlimited(); |
326,536 | public Object createTreeWalker(final Node root, final double whatToShow, final Scriptable filter, boolean expandEntityReferences) throws DOMException {<NEW_LINE>// seems that Rhino doesn't like long as parameter type<NEW_LINE>// this strange conversation preserves NodeFilter.SHOW_ALL<NEW_LINE>final int whatToShowI = (i... | this), TreeWalker.class)); |
440,221 | private String buildMessage(List<AlertRecord> alertRecordList) {<NEW_LINE>AlertRecord firstRecord = alertRecordList.get(0);<NEW_LINE>StringBuffer message = new StringBuffer();<NEW_LINE>message.append("Group Name: ").append(firstRecord.getGroupName()).append(NEW_LINE).append("Cluster Name: ").append(firstRecord.getClust... | ().format(TIME_FORMATTER)); |
1,333,879 | // rejectIt<NEW_LINE>@Override<NEW_LINE>public String completeIt() {<NEW_LINE>log.debug("Completed: {}", this);<NEW_LINE>// Re-Check<NEW_LINE>if (!m_justPrepared) {<NEW_LINE>String status = prepareIt();<NEW_LINE>if (!IDocument.STATUS_InProgress.equals(status))<NEW_LINE>return status;<NEW_LINE>}<NEW_LINE>m_processMsg = ... | [] journals = getJournals(true); |
979,120 | public void read(org.apache.thrift.protocol.TProtocol prot, check_and_mutate_request struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(6);<NEW_LINE>if (incoming.... | struct.hash_key.read(iprot); |
1,066,319 | public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> executions = new ArrayList<>();<NEW_LINE>executions.add(new ExprCoreAAEPropRootedTopLevelProp(false));<NEW_LINE>executions.add(new ExprCoreAAEPropRootedTopLevelProp(true));<NEW_LINE>executions.add(new ExprCoreAAEPropRoo... | .add(new ExprCoreAAEVariableRootedChained()); |
322,691 | private void fillSegment(FillBlock filler, Position position) {<NEW_LINE><MASK><NEW_LINE>boolean dataIndependentAddressing = isDataIndependentAddressing(position);<NEW_LINE>int startingIndex = getStartingIndex(position);<NEW_LINE>int currentOffset = position.lane * laneLength + position.slice * segmentLength + starting... | Block addressBlock = null, inputBlock = null; |
633,862 | private void processSystemKext(LanguageService languageService, Program systemProgram, TaskMonitor monitor) throws Exception {<NEW_LINE>for (GFile file : fileToPrelinkInfoMap.keySet()) {<NEW_LINE>if (monitor.isCancelled()) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>if (!isChildOf(systemKextFile, file)) {<NEW_LINE>continue;<... | > symbols = symbolTableCommand.getSymbols(); |
505,090 | public void marshall(DocumentClassifierProperties documentClassifierProperties, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (documentClassifierProperties == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(... | documentClassifierProperties.getDataAccessRoleArn(), DATAACCESSROLEARN_BINDING); |
1,601,898 | static // / @brief Print the solution.<NEW_LINE>void printSolution(RoutingModel routing, RoutingIndexManager manager, Assignment solution) {<NEW_LINE>logger.info("Objective: " + solution.objectiveValue());<NEW_LINE>logger.info("Breaks:");<NEW_LINE>AssignmentIntervalContainer intervals = solution.intervalVarContainer();... | solution.value(timeVar) + ") -> "; |
258,795 | static final void formatJSONMap0(Record record, AbstractRow<?> fields, JSONFormat format, int recordLevel, Writer writer) throws java.io.IOException {<NEW_LINE>if (record == null) {<NEW_LINE>writer.append("null");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String separator = "";<NEW_LINE>int size = fields.size();<NEW_LINE>bo... | int previous = format.globalIndent(); |
851,380 | private Map<String, String> findTableNameFromSubqueryByColumnProjection(final Collection<ColumnProjection> columns, final Map<String, String> ownerTableNames) {<NEW_LINE>if (ownerTableNames.size() == columns.size() || subqueryTables.isEmpty()) {<NEW_LINE>return Collections.emptyMap();<NEW_LINE>}<NEW_LINE>Map<String, St... | ), subqueryTableContext.getTableName()); |
1,021,509 | static void listRepositories(File repositoriesRootDir, boolean includeUserAccessDetails) {<NEW_LINE>String[] names = RepositoryManager.getRepositoryNames(repositoriesRootDir);<NEW_LINE><MASK><NEW_LINE>if (names.length == 0) {<NEW_LINE>System.out.println(" <No repositories have been created>");<NEW_LINE>return;<NEW_LI... | System.out.println("\nRepositories:"); |
11,717 | public <T> T chooseElement(final String dialogTitle, final String message, final List<T> elements, Function<T, String> labelFun) {<NEW_LINE>try (LiveVariable<T> chosen = new LiveVariable<>()) {<NEW_LINE>getShell().getDisplay().syncExec(new Runnable() {<NEW_LINE><NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>public v... | setElements(elements.toArray()); |
987,020 | private SqlNodeList convertOrderby(SQLOrderBy orderBy) {<NEW_LINE>if (orderBy == null) {<NEW_LINE>// org/apache/calcite/calcite-core/1.23.0/calcite-core-1.23.0-sources.jar!/org/apache/calcite/sql/validate/SqlValidatorImpl.java:1353<NEW_LINE>return new SqlNodeList(Collections.emptyList(), SqlParserPos.ZERO);<NEW_LINE>}<... | SqlNodeList(orderByNodes, SqlParserPos.ZERO); |
746,205 | private void processResources(ResourceSet resources, final IProgressMonitor monitor) {<NEW_LINE>if (monitor != null) {<NEW_LINE>monitor.beginTask(<MASK><NEW_LINE>}<NEW_LINE>// create thread pool to process the diagrams in parallel<NEW_LINE>ExecutorService executor = Executors.newFixedThreadPool(Runtime.getRuntime().ava... | "Update Umlet Diagrams", resources.size()); |
684,543 | private void recordClientData(ClientData cd, HttpServletRequest request) {<NEW_LINE>String protocol = request.getProtocol();<NEW_LINE>while (// NOI18N<NEW_LINE>protocol.endsWith("\n")) protocol = protocol.substring(0, <MASK><NEW_LINE>// NOI18N<NEW_LINE>cd.setAttributeValue("protocol", protocol);<NEW_LINE>// NOI18N<NEW_... | protocol.length() - 2); |
395,661 | private synchronized void invalidateDevices() {<NEW_LINE>UsbManager usbManager = (UsbManager) mContext.getSystemService(Context.USB_SERVICE);<NEW_LINE>HashMap<String, UsbDevice> devicesMap = usbManager.getDeviceList();<NEW_LINE>List<String> intelDevices = new ArrayList<String>();<NEW_LINE>for (Map.Entry<String, UsbDevi... | > entry = iter.next(); |
554,372 | private Scorer req(Collection<ScorerSupplier> requiredNoScoring, Collection<ScorerSupplier> requiredScoring, long leadCost) throws IOException {<NEW_LINE>if (requiredNoScoring.size() + requiredScoring.size() == 1) {<NEW_LINE>Scorer req = (requiredNoScoring.isEmpty() ? requiredScoring : requiredNoScoring).iterator().nex... | scoringScorers = new ArrayList<>(); |
168,105 | public static Bech32Data decode(final String str) throws IllegalArgumentException {<NEW_LINE><MASK><NEW_LINE>if (str.length() < 8) {<NEW_LINE>throw new IllegalArgumentException("Input too short: " + str.length());<NEW_LINE>}<NEW_LINE>if (str.length() > 90) {<NEW_LINE>throw new IllegalArgumentException("Input too long: ... | boolean lower = false, upper = false; |
1,411,791 | final CreateApplicationPresignedUrlResult executeCreateApplicationPresignedUrl(CreateApplicationPresignedUrlRequest createApplicationPresignedUrlRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createApplicationPresignedUrlRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | false), new CreateApplicationPresignedUrlResultJsonUnmarshaller()); |
1,138,895 | public Mono<Response<Flux<ByteBuffer>>> rotateClusterCertificatesWithResponseAsync(String resourceGroupName, String resourceName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
332,938 | public void iterate() {<NEW_LINE>// build covmat out of fitting matrix by multiplying diagonal elements with<NEW_LINE>// 1+lambda<NEW_LINE>for (int i = 0; i < numfit; i++) {<NEW_LINE>System.arraycopy(alpha[i], 0, covmat[i], 0, numfit);<NEW_LINE>covmat[i][i] *= (1.0 + lambda);<NEW_LINE>}<NEW_LINE>// Solve the equation s... | i] + deltaparams[i2++]; |
528,401 | private void parseAnonymousIpConfig(final JsonNode jo) throws JsonUtilsException {<NEW_LINE>final String anonymousPollingUrl = "anonymousip.polling.url";<NEW_LINE>final String anonymousPollingInterval = "anonymousip.polling.interval";<NEW_LINE>final String anonymousPolicyConfiguration = "anonymousip.policy.configuratio... | LOGGER.info(anonymousPolicyConfiguration + " not configured; stopping service updater and disabling feature"); |
1,296,799 | @SubmarineApi<NEW_LINE>public Response list(@QueryParam("dictCode") String dictCode, @QueryParam("dictName") String dictName, @QueryParam("column") String column, @QueryParam("field") String field, @QueryParam("order") String order, @QueryParam("pageNo") int pageNo, @QueryParam("pageSize") int pageSize) {<NEW_LINE>LOG.... | where.put("dictName", dictName); |
260,024 | final ImportServerCatalogResult executeImportServerCatalog(ImportServerCatalogRequest importServerCatalogRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importServerCatalogRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,221,719 | private static <T> T merge(T v1, T v2) {<NEW_LINE>if (v2 == null)<NEW_LINE>return v1;<NEW_LINE>if (v1 instanceof Collection) {<NEW_LINE>final Collection<Object> c1 = (Collection<Object>) v1;<NEW_LINE>final Collection<Object> c2 = (Collection<Object>) v2;<NEW_LINE>final Collection<Object> cm;<NEW_LINE>if (v1 instanceof ... | <Object, Object>) v1); |
1,762,415 | private Difference textEdit2Difference(FileObject file, TextEdit edit) {<NEW_LINE>if (file != null) {<NEW_LINE>try {<NEW_LINE>EditorCookie ec = file.getLookup().lookup(EditorCookie.class);<NEW_LINE>StyledDocument doc = ec.openDocument();<NEW_LINE>CloneableEditorSupport es = file.getLookup().lookup(CloneableEditorSuppor... | ), edit.getNewText()); |
156,482 | public static void process(GrayU8 input, GrayU8 output, int radiusX, int radiusY, int[] offset, int[] histogram) {<NEW_LINE>if (histogram == null)<NEW_LINE>histogram = new int[256];<NEW_LINE>else if (histogram.length < 256)<NEW_LINE>throw new IllegalArgumentException("'histogram' must have at least 256 elements.");<NEW... | int w = 2 * radiusX + 1; |
1,511,029 | public ModelAndView alarmAddConfigForm(HttpSession session, HttpServletResponse response, HttpServletRequest request) {<NEW_LINE>ModelAndView mav = new ModelAndView();<NEW_LINE>String group = request.getParameter("ke_alarm_group_name");<NEW_LINE>String type = request.getParameter("ke_alarm_type");<NEW_LINE>String url =... | alarmConfig.getAlarmGroup() + "] has exist."); |
1,740,796 | public JsonObject toJson() {<NEW_LINE>JsonObject json = new JsonObject();<NEW_LINE>json.addProperty("name", name);<NEW_LINE>json.addProperty("hasAudio", hasAudio != null ? hasAudio : DefaultValues.hasAudio);<NEW_LINE>json.addProperty("hasVideo", hasVideo != null ? hasVideo : DefaultValues.hasVideo);<NEW_LINE>json.addPr... | null ? frameRate : DefaultValues.frameRate); |
889,575 | final DescribeICD10CMInferenceJobResult executeDescribeICD10CMInferenceJob(DescribeICD10CMInferenceJobRequest describeICD10CMInferenceJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeICD10CMInferenceJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeICD10CMInferenceJob"); |
1,172,078 | protected void buildTreeAndRestoreState(@Nonnull final XStackFrame stackFrame) {<NEW_LINE>XSourcePosition position = stackFrame.getSourcePosition();<NEW_LINE>XDebuggerTree tree = getTree();<NEW_LINE>tree.setSourcePosition(position);<NEW_LINE>createNewRootNode(stackFrame);<NEW_LINE>final <MASK><NEW_LINE>project.putUserD... | Project project = tree.getProject(); |
1,525,924 | public boolean onClick(MouseEvent e, int clickCount) {<NEW_LINE>int row = getRowForLocation(e.getX(), e.getY());<NEW_LINE>if (row < 0)<NEW_LINE>return false;<NEW_LINE>final Object o = getPathForRow(row).getLastPathComponent();<NEW_LINE>if (!(o instanceof CheckedTreeNode))<NEW_LINE>return false;<NEW_LINE>Rectangle rowBo... | final CheckedTreeNode node = (CheckedTreeNode) o; |
153,368 | private void generateClassificationFile(String classificationName, String fileName, String pkg) throws IOException {<NEW_LINE>FileWriter outputFileWriter = null;<NEW_LINE>BufferedReader reader = null;<NEW_LINE>try {<NEW_LINE>outputFileWriter = new FileWriter(fileName);<NEW_LINE>classificationName = GeneratorUtilities.l... | getOmrsBeanClassificationAttributeMap().get(uClassificationName); |
224,243 | public static <U extends Locatable> void annotateReadLikelihoodsWithSupportedAlleles(final VariantContext vc, final AlleleLikelihoods<U, Allele> likelihoodsAllele, final Function<U, Collection<GATKRead>> readCollectionFunc) {<NEW_LINE>// assign supported alleles to each read<NEW_LINE>final Map<Allele, List<Allele>> all... | collect(Collectors.toList()); |
1,447,863 | public Collection<Class<?>> load() throws PluginLoadException {<NEW_LINE>List<Class<?>> plugins = new ArrayList<>();<NEW_LINE>PluginClassLoader loader = new PluginClassLoader(pluginJarUrls.values().toArray(new URL[0]));<NEW_LINE>VMUtil.setParent(loader, Recaf.class.getClassLoader());<NEW_LINE>for (Path pluginPath : plu... | (className, false, loader)); |
715,962 | public void userGetWalletSummary(String currency, final Response.Listener<List<Transaction>> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/user/walletSummary".replaceAll("\\{format\\}", "json");<NEW_LIN... | HttpEntity httpEntity = localVarBuilder.build(); |
759,312 | private void checkHashes() {<NEW_LINE>for (ModuleReference mref : nameToReference.values()) {<NEW_LINE>// get the recorded hashes, if any<NEW_LINE>if (!(mref instanceof ModuleReferenceImpl))<NEW_LINE>continue;<NEW_LINE>ModuleHashes hashes = ((ModuleReferenceImpl) mref).recordedHashes();<NEW_LINE>if (hashes == null)<NEW... | ), descriptor.name()); |
1,317,108 | private static void generateEnumDecoder(final StringBuilder sb, final int level, final Token fieldToken, final Token typeToken, final String name) throws IOException {<NEW_LINE>final String referencedName = typeToken.referencedName();<NEW_LINE>final String enumType = formatStructName(referencedName == null ? typeToken.... | Encoding encoding = typeToken.encoding(); |
1,648,398 | protected void configureWebView() {<NEW_LINE>if (isActionableDirectUsage()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mWebView.getSettings().setJavaScriptEnabled(true);<NEW_LINE>mWebView.getSettings().setDomStorageEnabled(true);<NEW_LINE>CookieManager cookieManager = CookieManager.getInstance();<NEW_LINE>cookieManager.set... | = getIntent().getExtras(); |
570,968 | public VoidResponse removeCohortRegistration(String userId, String serverName, String serverToBeConfiguredName, String cohortName) {<NEW_LINE>String methodName = "removeCohortRegistration";<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Entering method: " + methodName + " with serverName " + serverName + " se... | handler.removeCohortRegistration(serverToBeConfiguredName, cohortName); |
67,609 | protected void encodeColumnHeaderContent(FacesContext context, DataTable table, UIColumn column, SortMeta sortMeta) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>UIComponent header = column.getFacet("header");<NEW_LINE>String headerText = column.getHeaderText();<NEW_LINE>wr... | writer.writeText(headerText, "headerText"); |
661,277 | private Map<String, String> buildRemapMultiVersions(Iterator<String> zipNameIterator) {<NEW_LINE>SimpleMultiMap<Integer, String> byVersions = SimpleMultiMap.newHashMap();<NEW_LINE>while (zipNameIterator.hasNext()) {<NEW_LINE>String name = zipNameIterator.next();<NEW_LINE>String prefix = "META-INF/versions/";<NEW_LINE>i... | error("url: " + myFilePath, e); |
1,399,677 | public Result visit(TableModify modify) {<NEW_LINE>final Map<String, RelDataType> pairs = ImmutableMap.of();<NEW_LINE>final Context context = aliasContext(pairs, false);<NEW_LINE>// Target Table Name<NEW_LINE>final SqlIdentifier sqlTargetTable = getSqlTargetTable(modify);<NEW_LINE>switch(modify.getOperation()) {<NEW_LI... | of(), modify, null); |
1,614,661 | private void registerDSDReferredByApplication(String appName, DataSourceDefinitionDescriptor dsd) {<NEW_LINE>// It is possible that JPA might call this method multiple times in a single deployment,<NEW_LINE>// when there are multiple PUs eg: one PU in each of war, ejb-jar. Make sure that<NEW_LINE>// DSD is bound to JND... | ResourceNamingService resourceNamingService = resourceNamingServiceProvider.get(); |
1,125,941 | final DeleteAutoSnapshotResult executeDeleteAutoSnapshot(DeleteAutoSnapshotRequest deleteAutoSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAutoSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteAutoSnapshot"); |
1,558,075 | public com.amazonaws.services.simpleworkflow.model.WorkflowExecutionAlreadyStartedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simpleworkflow.model.WorkflowExecutionAlreadyStartedException workflowExecutionAlreadyStartedException = new com.amazonaws... | simpleworkflow.model.WorkflowExecutionAlreadyStartedException(null); |
1,109,434 | protected void decompilerActionPerformed(DecompilerActionContext context) {<NEW_LINE>Function func = context.getFunction();<NEW_LINE>Program program = func.getProgram();<NEW_LINE>PcodeOp op = getCallOp(program, context.getTokenAtCursor());<NEW_LINE>Function calledfunc = getCalledFunction(program, op);<NEW_LINE>boolean ... | ), "Override Signature Failed", "Error overriding signature: " + e); |
1,543,937 | private void checkExistingConfig(ServerConfiguration libertyConfig) {<NEW_LINE>String requestedPort = libertyConfig.getHttpEndpoints().get(0).getId().<MASK><NEW_LINE>// Checks ConfigurationAdmin to see if the ID for the following<NEW_LINE>// exist. This is done in priority order because if a higher<NEW_LINE>// priorit... | substring(ID_HTTP_ENDPOINT.length()); |
714,910 | final DescribeServiceIntegrationResult executeDescribeServiceIntegration(DescribeServiceIntegrationRequest describeServiceIntegrationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeServiceIntegrationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | false), new DescribeServiceIntegrationResultJsonUnmarshaller()); |
263,883 | public static Object createObjectFromString(String type, String value) throws Exception {<NEW_LINE>Object result;<NEW_LINE>if (primitiveToWrapper.containsKey(type)) {<NEW_LINE>if (type.equals(Character.TYPE.getName())) {<NEW_LINE>result = new Character(value.charAt(0));<NEW_LINE>} else {<NEW_LINE>result = newStringCons... | ).getName(), value); |
1,822,698 | public static PipelineSource fromDao(PipelineRuleParser parser, PipelineDao dao) {<NEW_LINE>Set<ParseError> errors = null;<NEW_LINE>Pipeline pipeline = null;<NEW_LINE>try {<NEW_LINE>pipeline = parser.parsePipeline(dao.id(<MASK><NEW_LINE>} catch (ParseException e) {<NEW_LINE>errors = e.getErrors();<NEW_LINE>}<NEW_LINE>f... | ), dao.source()); |
356,895 | private AmazonS3 createAmazonS3Client(Configuration hadoopConfig, ClientConfiguration clientConfig) {<NEW_LINE>Optional<EncryptionMaterialsProvider> encryptionMaterialsProvider = createEncryptionMaterialsProvider(hadoopConfig);<NEW_LINE>AmazonS3Builder<? extends AmazonS3Builder, ? extends AmazonS3> clientBuilder;<NEW_L... | clientBuilder = clientBuilder.withRegion(US_EAST_1); |
3,781 | public void handleRefresh() {<NEW_LINE>if (!chromeCast.isConnected()) {<NEW_LINE>scheduler.cancelRefresh();<NEW_LINE>scheduler.scheduleConnect();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Status status;<NEW_LINE>try {<NEW_LINE>status = chromeCast.getStatus();<NEW_LINE>statusUpdater.processStatusUpdate(status);<NEW_LINE>if (... | MediaStatus mediaStatus = chromeCast.getMediaStatus(); |
945,720 | private void createScanRangeLocationsForSplit(long partitionId, HivePartition partition, HdfsFileDesc fileDesc, HdfsFileBlockDesc blockDesc, long offset, long length) {<NEW_LINE>TScanRangeLocations scanRangeLocations = new TScanRangeLocations();<NEW_LINE>THdfsScanRange hdfsScanRange = new THdfsScanRange();<NEW_LINE>hdf... | host = blockDesc.getDataNodeIp(hostId); |
1,458,438 | public BatchDeleteDevicePositionHistoryResult batchDeleteDevicePositionHistory(BatchDeleteDevicePositionHistoryRequest batchDeleteDevicePositionHistoryRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDeleteDevicePositionHistoryReque... | invoke(request, responseHandler, executionContext); |
1,161,029 | protected static void attachCallback(MqttClient client, String deviceId) throws MqttException, UnsupportedEncodingException {<NEW_LINE>mCallback = new MqttCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void connectionLost(Throwable cause) {<NEW_LINE>// Do nothing...<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NE... | .format("Listening on %s", commandTopic)); |
1,289,556 | public RejectedLogEventsInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RejectedLogEventsInfo rejectedLogEventsInfo = new RejectedLogEventsInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token =... | String currentParentElement = context.getCurrentParentElement(); |
319,955 | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>log.fine("Process Menu Request");<NEW_LINE>// Get Parameter: Exit<NEW_LINE>if (MobileUtil.getParameter(request, "Exit") != null) {<NEW_LINE>MobileUtil.createLoginPage(request, response, this, null... | log.fine("Forward to=" + url); |
1,003,254 | public static SsaStyle fromStyleLine(String styleLine, Format format) {<NEW_LINE>checkArgument(styleLine.startsWith(STYLE_LINE_PREFIX));<NEW_LINE>String[] styleValues = TextUtils.split(styleLine.substring(STYLE_LINE_PREFIX.length()), ",");<NEW_LINE>if (styleValues.length != format.length) {<NEW_LINE>Log.w(TAG, Util.for... | "Skipping malformed 'Style:' line: '" + styleLine + "'", e); |
1,407,924 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('var') create constant variable string MYVAR = '.*abc.*';\n" + "@name('s0') select * from SupportBean(theString regexp MYVAR);\n" + "" + "@name('ctx') create context MyContext start SupportBean_S0 as s0;\n" + "@name('s1') context MyContext select... | assertNotNull(s0.getIndex()); |
293,647 | public static void handleObject(Object o) {<NEW_LINE>final SmallRyeConfig config = (SmallRyeConfig) ConfigProvider.getConfig();<NEW_LINE>final String clsNameSuffix = getClassNameSuffix(o);<NEW_LINE>if (clsNameSuffix == null) {<NEW_LINE>// unsupported object type<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Class<?> cls =... | "Found unsupported @ConfigRoot.name = " + name + " on " + cls); |
1,314,242 | public BExpressionValue evaluate() throws EvaluationException {<NEW_LINE>// The result of a range-expr is a new object belonging to the object type Iterable<int,()> that will iterate<NEW_LINE>// over a sequence of integers in increasing order, where the sequence includes all integers<NEW_LINE>// that are less than / le... | getGeneratedMethod(context, B_RANGE_EXPR_HELPER_CLASS, CREATE_INT_RANGE_METHOD); |
540,022 | public VocabularyFilterInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>VocabularyFilterInfo vocabularyFilterInfo = new VocabularyFilterInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | "unixTimestamp").unmarshall(context)); |
1,662,884 | public OpsItemEventFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>OpsItemEventFilter opsItemEventFilter = new OpsItemEventFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.get... | String currentParentElement = context.getCurrentParentElement(); |
1,830,219 | public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {<NEW_LINE>AdapterView.AdapterContextMenuInfo <MASK><NEW_LINE>int positionInList = info.position;<NEW_LINE>if (positionInList < 0 || channelUserMapperList.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ChannelUserMapper c... | info = (AdapterView.AdapterContextMenuInfo) menuInfo; |
1,785,883 | private void repalceAndroidBuilder(ApplicationVariant applicationVariant) {<NEW_LINE>try {<NEW_LINE>if (applicationVariant instanceof ApplicationVariantImpl) {<NEW_LINE>VariantScope variantScope = ((ApplicationVariantImpl) applicationVariant).getVariantData().getScope();<NEW_LINE><MASK><NEW_LINE>// ReflectUtils.updateF... | GlobalScope globalScope = variantScope.getGlobalScope(); |
975,092 | public R read(JsonReader in) throws IOException {<NEW_LINE>JsonElement <MASK><NEW_LINE>Class<?> valueClass;<NEW_LINE>if (jsonElement.isJsonObject()) {<NEW_LINE>JsonElement typeNameJsonElement = jsonElement.getAsJsonObject().remove(TYPE_FIELD_NAME);<NEW_LINE>if (typeNameJsonElement != null) {<NEW_LINE>String typeName = ... | jsonElement = Streams.parse(in); |
25,974 | public static void main2(String[] args) {<NEW_LINE>String dbDriver = "COM.ibm.db2.jdbc.app.DB2Driver";<NEW_LINE>String url = "jdbc:db2:sample";<NEW_LINE>String user = "batra";<NEW_LINE>String pass = "varunbatra";<NEW_LINE>String querystring = "Select * from batra.employee";<NEW_LINE>String fn;<NEW_LINE>String ln;<NEW_L... | fn = qs.getValue("FIRSTNME"); |
152,405 | // Updates prod.leftExpansions based on a walk of exp.<NEW_LINE>static private void addLeftMost(NormalProduction prod, Expansion exp) {<NEW_LINE>if (exp instanceof NonTerminal) {<NEW_LINE>for (int i = 0; i < prod.leIndex; i++) {<NEW_LINE>if (prod.getLeftExpansions()[i] == ((NonTerminal) exp).getProd()) {<NEW_LINE>retur... | Expansion) it.next()); |
201,749 | public CodegenMethod codegen(CodegenMethodScope parent, SAIFFInitializeSymbolWEventType symbols, CodegenClassScope classScope) {<NEW_LINE>CodegenMethod method = parent.makeChild(FilterSpecPlanPath.EPTYPE, FilterSpecParamForge.class, classScope);<NEW_LINE>method.getBlock().declareVar(FilterSpecPlanPathTriplet.EPTYPEARRA... | .methodReturn(ref("path")); |
1,058,885 | private void convertColumnNameToIndex(String fileName) {<NEW_LINE>String encoding = this.originConfig.getString(Key.ENCODING, Constant.DEFAULT_ENCODING);<NEW_LINE>int bufferSize = this.originConfig.getInt(<MASK><NEW_LINE>String delimiter = this.originConfig.getString(Key.FIELD_DELIMITER, Constant.DEFAULT_FIELD_DELIMITE... | Key.BUFFER_SIZE, Constant.DEFAULT_BUFFER_SIZE); |
693,739 | private File clickAndInterceptFileByProxyServer(WebElementSource anyClickableElement, WebElement clickable, long timeout, FileFilter fileFilter, DownloadAction action) throws FileNotFoundException {<NEW_LINE>Driver driver = anyClickableElement.driver();<NEW_LINE>Config config = driver.config();<NEW_LINE>if (!config.pro... | timeout, config.pollingInterval()); |
268,118 | private // SyncManager#removeSession or SyncSession#close are package private & should not be public.<NEW_LINE>void invokeRemoveSession(SyncConfiguration syncConfig) {<NEW_LINE>try {<NEW_LINE>if (removeSessionMethod == null) {<NEW_LINE>synchronized (SyncObjectServerFacade.class) {<NEW_LINE>if (removeSessionMethod == nu... | syncConfig.toString(), e); |
379,870 | public void sampleTopics(int doc) {<NEW_LINE>FeatureSequence fs = (FeatureSequence) instances.get(doc).getData();<NEW_LINE>int seqLen = fs.getLength();<NEW_LINE>int[] docLevels = levels[doc];<NEW_LINE>NCRPNode[] path = new NCRPNode[numLevels];<NEW_LINE>NCRPNode node;<NEW_LINE>int[] levelCounts = new int[numLevels];<NEW... | levelCounts[docLevels[token]]++; |
774,997 | public static void main(String[] args) {<NEW_LINE>Exercise19<Integer> linkedList = new Exercise19<>();<NEW_LINE>linkedList.add(0);<NEW_LINE>linkedList.add(1);<NEW_LINE>linkedList.add(2);<NEW_LINE>linkedList.add(3);<NEW_LINE>StdOut.println("Before removing last node");<NEW_LINE>StringJoiner listBeforeRemove = new String... | println(listBeforeRemove.toString()); |
1,266,435 | public List<AssignedProductOptionDTO> findAssignedProductOptionsByProductId(Long productId) {<NEW_LINE><MASK><NEW_LINE>CriteriaQuery<AssignedProductOptionDTO> criteria = builder.createQuery(AssignedProductOptionDTO.class);<NEW_LINE>Root<SkuProductOptionValueXrefImpl> root = criteria.from(SkuProductOptionValueXrefImpl.c... | CriteriaBuilder builder = em.getCriteriaBuilder(); |
1,180,485 | public void handleLine(String line, PropertiesParserState state) {<NEW_LINE>DrawHandler drawer = state.getDrawer();<NEW_LINE>LineType ltBefore = drawer.getLineType();<NEW_LINE>LineType ltForLine = variants.get(line);<NEW_LINE>if (ltForLine != null) {<NEW_LINE>drawer.setLineType(ltForLine);<NEW_LINE>}<NEW_LINE>// should... | drawer.setLayer(Layer.Background); |
76,251 | public void marshall(MongoDbSettings mongoDbSettings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (mongoDbSettings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(mongoDbSettings.getUsername(), USERNAME... | mongoDbSettings.getSecretsManagerAccessRoleArn(), SECRETSMANAGERACCESSROLEARN_BINDING); |
790,175 | private void init() {<NEW_LINE>inflate(getContext(), R.layout.contact_friend_profile_layout, this);<NEW_LINE>mHeadImageView = findViewById(R.id.friend_icon);<NEW_LINE>mNickNameView = findViewById(R.id.friend_nick_name);<NEW_LINE>mIDView = findViewById(R.id.friend_account);<NEW_LINE>mRemarkView = findViewById(R.id.remar... | findViewById(R.id.friend_signature_tag); |
1,655,367 | public void addCurrencies() {<NEW_LINE>try {<NEW_LINE>InputStream is = mContext.getAssets().open("currency.json");<NEW_LINE>int size = is.available();<NEW_LINE>byte[] buffer = new byte[size];<NEW_LINE>is.read(buffer);<NEW_LINE>is.close();<NEW_LINE>s_ids_names = new String(buffer, "UTF-8");<NEW_LINE>} catch (IOException... | = new StringTokenizer(s_ids_names, ","); |
541,175 | public void configure(DslJson json) {<NEW_LINE>new LocalDateDslJsonConverter().configure(json);<NEW_LINE>new LocalDateTimeDslJsonConverter().configure(json);<NEW_LINE>new LocalTimeDslJsonConverter().configure(json);<NEW_LINE>new OffsetDateTimeDslJsonConverter().configure(json);<NEW_LINE>new OffsetTimeDslJsonConverter()... | TimestampDslJsonConverter().configure(json); |
1,164,030 | public void marshall(HyperParameterTuningJobConfig hyperParameterTuningJobConfig, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (hyperParameterTuningJobConfig == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marsha... | hyperParameterTuningJobConfig.getTrainingJobEarlyStoppingType(), TRAININGJOBEARLYSTOPPINGTYPE_BINDING); |
356,617 | private void loadChangesToBrowser(final boolean inBackground, final boolean refresh) {<NEW_LINE>final CommittedChangesCache cache = CommittedChangesCache.getInstance(myProject);<NEW_LINE>cache.hasCachesForAnyRoot(new Consumer<Boolean>() {<NEW_LINE><NEW_LINE>public void consume(final Boolean notEmpty) {<NEW_LINE>if (Boo... | (VcsBundle.message("incoming.changes.empty.message")); |
836,202 | final GetTextDetectionResult executeGetTextDetection(GetTextDetectionRequest getTextDetectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTextDetectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | (super.beforeMarshalling(getTextDetectionRequest)); |
494,646 | public void peekGroupCallForRingingCheck(@NonNull GroupCallRingCheckInfo info) {<NEW_LINE>if (callManager == null) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>networkExecutor.execute(() -> {<NEW_LINE>try {<NEW_LINE>Recipient group = Recipient.resolved(info.getRecipientId());<NEW_LINE>GroupId.V2 groupId = gro... | Log.i(TAG, "Unable to peekGroupCall, call manager is null"); |
442,874 | private void showVmInfoForSharedNetworks(boolean forVirtualNetworks, IpAddress ipAddr, IPAddressResponse ipResponse) {<NEW_LINE>if (!forVirtualNetworks) {<NEW_LINE>NicVO nic = ApiDBUtils.findByIp4AddressAndNetworkId(ipAddr.getAddress().toString(), ipAddr.getNetworkId());<NEW_LINE>if (nic == null) {<NEW_LINE>// find in ... | setVirtualMachineDisplayName(vm.getHostName()); |
1,336,615 | public EnvironmentProperties unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EnvironmentProperties environmentProperties = new EnvironmentProperties();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | )).unmarshall(context)); |
984,141 | protected Action[] createNewTabActions() {<NEW_LINE>if (tabContext.rerun == null) {<NEW_LINE>tabContext.rerun = new ReRunAction(false);<NEW_LINE>tabContext.rerunDebug = new ReRunAction(true);<NEW_LINE>tabContext.resume = new ResumeAction();<NEW_LINE>tabContext.stop = new StopAction();<NEW_LINE>tabContext.options = new ... | .setExecutor((MavenCommandLineExecutor) this); |
755,712 | public static HalProcessDefinition fromProcessDefinition(ProcessDefinition processDefinition, ProcessEngine processEngine) {<NEW_LINE>HalProcessDefinition halProcDef = new HalProcessDefinition();<NEW_LINE>halProcDef<MASK><NEW_LINE>halProcDef.key = processDefinition.getKey();<NEW_LINE>halProcDef.category = processDefini... | .id = processDefinition.getId(); |
151,972 | boolean initializeSignature(Object dataChunk, OperationLog log, int indent) throws PGPException {<NEW_LINE>if (!(dataChunk instanceof PGPSignatureList)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>PGPSignatureList sigList = (PGPSignatureList) dataChunk;<NEW_LINE>findAvailableSignature(sigList);<NEW_LINE>if (signingKey... | contentVerifierBuilderProvider, signingKey.getPublicKey()); |
1,383,413 | public boolean install(String name, String url, String version) {<NEW_LINE>if (url.startsWith("---extensions---")) {<NEW_LINE>// url = RunTime.get().SikuliRepo + name + "-" + version + ".jar";<NEW_LINE>}<NEW_LINE>String extPath = fExtensions.getAbsolutePath();<NEW_LINE>String tmpdir = Commons.getIDETemp().getAbsolutePa... | localFile.getAbsolutePath(), version); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.