idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
174,876 | public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {<NEW_LINE>if (request.getRestApiVersion() == RestApiVersion.V_7 && request.hasParam("type")) {<NEW_LINE>deprecationLogger.compatibleCritical("validate_query_with_types", TYPES_DEPRECATION_MESSAGE);<NEW_LINE... | (RestActions.getQueryContent(parser)); |
465,309 | private static String stripGarbage(String contents) {<NEW_LINE>String working = contents;<NEW_LINE>working = removeMultiLineGarbage(working, PRAGMA);<NEW_LINE>// Windows<NEW_LINE>working = working.replaceAll("_+cdecl", "");<NEW_LINE>working = working.replaceAll("_+stdcall", "");<NEW_LINE>working = DECLSPEC.matcher(work... | working.replaceAll("__forceinline", ""); |
1,852,523 | final ListDetectorsResult executeListDetectors(ListDetectorsRequest listDetectorsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDetectorsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
183,229 | public void compile(File inFile, File outFile) throws IOException {<NEW_LINE>Reader reader = new BufferedReader(new FileReader(inFile));<NEW_LINE>OutputStream output = new BufferedOutputStream(new FileOutputStream(outFile));<NEW_LINE>try {<NEW_LINE>TileSet.Builder builder = TileSet.newBuilder();<NEW_LINE>TextFormat.mer... | TileSet tileSet = builder.build(); |
178,619 | public static CommandPlayer createCommandPlayer(@NonNull OsmandApplication app, @NonNull ApplicationMode appMode, @NonNull String voiceProvider) throws CommandPlayerException {<NEW_LINE>File voicesDir = <MASK><NEW_LINE>File voiceProviderDir = new File(voicesDir, voiceProvider);<NEW_LINE>if (!voiceProviderDir.exists()) ... | app.getAppPath(IndexConstants.VOICE_INDEX_DIR); |
569,918 | protected static Map<String, Tuple<String, List<Tuple<String, Supplier<DiscoveryNode>>>>> buildRemoteClustersDynamicConfig(final Settings settings) {<NEW_LINE>final Map<String, Tuple<String, List<Tuple<String, Supplier<DiscoveryNode>>>>> <MASK><NEW_LINE>final Map<String, Tuple<String, List<Tuple<String, Supplier<Discov... | remoteSeeds = buildRemoteClustersDynamicConfig(settings, REMOTE_CLUSTERS_SEEDS); |
605,414 | private Collection<X509CRL> loadFromURI(CertificateFactory cf, URI remoteURI) throws GeneralSecurityException {<NEW_LINE>try {<NEW_LINE>logger.debugf("Loading CRL from %s", remoteURI.toString());<NEW_LINE>CloseableHttpClient httpClient = session.getProvider(HttpClientProvider.class).getHttpClient();<NEW_LINE>HttpGet ge... | get.setHeader("Cache-Control", "no-cache, no-store"); |
1,463,629 | private boolean findAdapterName() {<NEW_LINE><MASK><NEW_LINE>boolean dorefresh = false;<NEW_LINE>Enumeration<NetworkInterface> interfaces = null;<NEW_LINE>try {<NEW_LINE>interfaces = NetworkInterface.getNetworkInterfaces();<NEW_LINE>int wifiIp = this.wifiIpAddress;<NEW_LINE>int reverseWifiIp = Integer.reverseBytes(wifi... | Logger.D(TAG, "findAdapterName+"); |
416,697 | public void shredder(final Path resNewRev, @NonNull final Path newRev) {<NEW_LINE>assert resNewRev != null;<NEW_LINE>assert newRev != null;<NEW_LINE>final <MASK><NEW_LINE>Databases.removeDatabase(newRev);<NEW_LINE>Databases.createXmlDatabase(conf);<NEW_LINE>try (final var db = Databases.openXmlDatabase(newRev)) {<NEW_L... | var conf = new DatabaseConfiguration(newRev); |
569,844 | public static Expression toArgumentArray(List<Expression> argList, IRewriteResources resources) {<NEW_LINE>List<Expression> normalArgs = new ArrayList<>();<NEW_LINE>List<Expression> spreadArgs = new ArrayList<>();<NEW_LINE>List<Expression> spreadPositions = new ArrayList<>();<NEW_LINE>for (int i = 0; i < argList.size()... | arg = argList.get(i); |
838,109 | private // before -> after<NEW_LINE>void // before -> after<NEW_LINE>doUpdateRanges(// before -> after<NEW_LINE>int beforeChangedLine1, // before -> after<NEW_LINE>int beforeChangedLine2, int linesShift, int beforeTotalLines, @Nonnull List<Range> rangesBefore, @Nonnull List<Range> changedRanges, @Nonnull List<Range> ra... | vcsLine1 = getVcsLine1(lastRangeBefore, beforeChangedLine1); |
100,085 | public static BufferedImage extractBuffered(InterleavedU8 img) {<NEW_LINE>if (img.isSubimage())<NEW_LINE>throw new IllegalArgumentException("Sub-images are not supported for this operation");<NEW_LINE>final int width = img.width;<NEW_LINE>final int height = img.height;<NEW_LINE>final int numBands = img.numBands;<NEW_LI... | ] { 2, 1, 0 }; |
1,734,961 | // snippet-start:[workdocs.java2.download_user_docs.main]<NEW_LINE>public static void downloadDoc(WorkDocsClient workDocs, String orgId, String userEmail, String workdocsName, String saveDocFullName) {<NEW_LINE>try {<NEW_LINE>Map<String, String> map = getDocInfo(<MASK><NEW_LINE>if (map.isEmpty()) {<NEW_LINE>System.out.... | workDocs, orgId, userEmail, workdocsName); |
402,229 | public boolean disconnect(final int iChannelId) {<NEW_LINE>OLogManager.instance().debug(this, "Disconnecting connection with id=%d", iChannelId);<NEW_LINE>final OClientConnection connection = connections.remove(iChannelId);<NEW_LINE>if (connection != null) {<NEW_LINE>OServerPluginHelper.invokeHandlerCallbackOnClientDis... | debug(this, "Disconnected connection with id=%d, no other active channels found", iChannelId); |
1,534,028 | protected void shardOperation(final ForgetFollowerAction.Request request, final ShardRouting shardRouting, Task task, ActionListener<EmptyResult> listener) {<NEW_LINE>final Index followerIndex = new Index(request.followerIndex(), request.followerIndexUUID());<NEW_LINE>final Index leaderIndex = clusterService.state().me... | delegate.onResponse(EmptyResult.INSTANCE); |
356,041 | public boolean open() {<NEW_LINE>try {<NEW_LINE>updateSerialProperties(m_devName);<NEW_LINE>CommPortIdentifier ci = CommPortIdentifier.getPortIdentifier(m_devName);<NEW_LINE>CommPort cp = ci.open(m_appName, 1000);<NEW_LINE>if (cp instanceof SerialPort) {<NEW_LINE>m_port = (SerialPort) cp;<NEW_LINE>} else {<NEW_LINE>thr... | logger.error("got unknown port type for {}", m_devName); |
98,630 | public MethodVisitor wrap(TypeDescription instrumentedType, MethodDescription instrumentedMethod, MethodVisitor methodVisitor, Implementation.Context implementationContext, TypePool typePool, int writerFlags, int readerFlags) {<NEW_LINE>MethodDescription.SignatureToken token = SIGNATURES.get(instrumentedMethod.asDefine... | throw new IllegalStateException(instrumentedMethod + " is either public or protected what is not permitted to avoid context leaks"); |
1,538,674 | private static String formatLink(String text, String link) {<NEW_LINE>link = link == null ? "" : link;<NEW_LINE>text = text == null ? "" : text;<NEW_LINE>final String formattedLink;<NEW_LINE>final Matcher linkMatch = Patterns.WEB_URL.<MASK><NEW_LINE>if (linkMatch.matches() && !link.trim().matches("\\s") && !text.trim()... | matcher(link.trim()); |
1,597,887 | protected static void deleteBucketAndAllContents(String bucketName) {<NEW_LINE>System.<MASK><NEW_LINE>ListObjectsResponse response = s3.listObjects(ListObjectsRequest.builder().bucket(bucketName).build());<NEW_LINE>while (true) {<NEW_LINE>if (response.contents() == null) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>for (S3Obj... | out.println("Deleting S3 bucket: " + bucketName); |
850,852 | protected void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>super.onActivityResult(requestCode, resultCode, data);<NEW_LINE>if (requestCode == Constants.INTENT_SETTINGS_AUTHENTICATE) {<NEW_LINE>if (resultCode == RESULT_OK) {<NEW_LINE>byte[] authKey = data.getByteArrayExtra(Constants.EXTRA_A... | data.getStringExtra(Constants.EXTRA_AUTH_NEW_ENCRYPTION); |
1,635,197 | final CreateMeshResult executeCreateMesh(CreateMeshRequest createMeshRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createMeshRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | (super.beforeMarshalling(createMeshRequest)); |
979,399 | private BodyPart buildAttachment(Attachment attachment) throws Exception {<NEW_LINE><MASK><NEW_LINE>InternetHeaders headers = new InternetHeaders();<NEW_LINE>String filename = StringEscapeUtils.escapeJson(attachment.getFileName());<NEW_LINE>for (String value : attachmentHeaders.getContentDisposition()) {<NEW_LINE>heade... | AttachmentHeaders attachmentHeaders = attachment.getHeaders(); |
1,163,983 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>if (Build.VERSION.SDK_INT >= 23 && ContextCompat.checkSelfPermission(EditEventFragment.this.getActivity(), Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) {<NEW_LINE>ActivityCompat.requestPer... | mModification = savedInstanceState.getInt(BUNDLE_KEY_EDIT_STATE); |
1,775,480 | public final void neighborAllGatherv(Object sendbuf, int sendcount, Datatype sendtype, Object recvbuf, int[] recvcount, int[] displs, Datatype recvtype) throws MPIException {<NEW_LINE>MPI.check();<NEW_LINE><MASK><NEW_LINE>boolean sdb = false, rdb = false;<NEW_LINE>if (sendbuf instanceof Buffer && !(sdb = ((Buffer) send... | int sendoff = 0, recvoff = 0; |
1,076,127 | private void writeMainReadme(String mainReadme) throws MalformedURLException {<NEW_LINE>writeHtml(new URL(getBaseURL(getClass()) + TARGET_DIR + "README.html"), mainReadme);<NEW_LINE>// each <h1> section<NEW_LINE>for (String section : mainReadme.split("\\<h1\\>")) {<NEW_LINE>if (section.isEmpty())<NEW_LINE>continue;<NEW... | label.replaceAll("\\s", "-"); |
605,833 | public void addValue(int docID, BytesRef value) {<NEW_LINE>if (docID <= lastDocID) {<NEW_LINE>throw new IllegalArgumentException("DocValuesField \"" + fieldInfo.name + "\" appears more than once in this document (only one value is allowed per field)");<NEW_LINE>}<NEW_LINE>if (value == null) {<NEW_LINE>throw new Illegal... | value.offset, value.length); |
12,651 | private static DocumentContent createImpl(@javax.annotation.Nullable Project project, @Nonnull String text, @Nullable FileType fileType, @Nullable String fileName, @Nullable VirtualFile highlightFile, @javax.annotation.Nullable Charset charset, @javax.annotation.Nullable Boolean bom, boolean respectLineSeparators, bool... | highlightFile, separator, charset, bom); |
1,220,621 | public Void doInTransaction(@Nonnull TransactionStatus theStatus) {<NEW_LINE>List<ResourcePersistentId> persistentIds = myData.getIds().stream().map(t -> new ResourcePersistentId(t.getId())).<MASK><NEW_LINE>ourLog.info("Starting reindex work chunk with {} resources - Instance[{}] Chunk[{}]", persistentIds.size(), myIns... | collect(Collectors.toList()); |
1,311,077 | protected void init() {<NEW_LINE>myErrorText = new ErrorText(getErrorTextAlignment());<NEW_LINE>myErrorText.setVisible(false);<NEW_LINE>final ComponentAdapter resizeListener = new ComponentAdapter() {<NEW_LINE><NEW_LINE>private int myHeight;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void componentResized(ComponentEv... | .getComponent().getHeight(); |
264,944 | private void fillConfMap(Map<PropertyKey, Map<Optional<String>, List<String>>> targetMap, Map<Address, List<ConfigRecord>> recordMap) {<NEW_LINE>for (Map.Entry<Address, List<ConfigRecord>> record : recordMap.entrySet()) {<NEW_LINE>Address address = record.getKey();<NEW_LINE>String addressStr = String.format("%s:%s", ad... | , new HashMap<>()); |
1,715,653 | public AggregateResult queryAggData(AggConfig config) throws Exception {<NEW_LINE>String exec = sqlHelper.assembleAggDataSql(config);<NEW_LINE>List<String[]> list = new LinkedList<>();<NEW_LINE>LOG.info(exec);<NEW_LINE>try (Connection connection = getConnection();<NEW_LINE>Statement stat = connection.createStatement();... | rs.getString(j + 1); |
1,697,621 | public void ext_dumpBlockchain(long numberOfBlocks, boolean includeUncles) {<NEW_LINE>Block bestBlock = blockStore.getBestBlock();<NEW_LINE>logger.info("Dumping blockchain starting on block number {}, to best block number {}", bestBlock.getNumber() - numberOfBlocks, bestBlock.getNumber());<NEW_LINE>File graphFile = new... | ("user.dir") + "/" + "rskblockchain.tgf"); |
1,574,163 | public CodegenParameter fromParameter(Parameter parameter, Set<String> imports) {<NEW_LINE>CodegenParameter cp = super.fromParameter(parameter, imports);<NEW_LINE>if (parameter.getStyle() != null) {<NEW_LINE>switch(parameter.getStyle()) {<NEW_LINE>case MATRIX:<NEW_LINE>cp.style = "MATRIX";<NEW_LINE>break;<NEW_LINE>case... | toModelName(cp.baseName) + "Schema"; |
884,495 | public void decorate(World world, Random random, Chunk source) {<NEW_LINE>int sourceX = (source.getX() << 4) + random.nextInt(16);<NEW_LINE>int sourceZ = (source.getZ() << 4) + random.nextInt(16);<NEW_LINE>int sourceY = random.nextInt(128);<NEW_LINE>for (int i = 0; i < 64; i++) {<NEW_LINE>int x = sourceX + random.nextI... | getBlockAt(x, y, z); |
1,713,306 | private List<NeedReplyMessage> handleVolumeDeletion(VolumeDeletionStruct vol) {<NEW_LINE>if (!VolumeDeletionPolicy.Direct.toString().equals(vol.getDeletionPolicy())) {<NEW_LINE>return new ArrayList<>();<NEW_LINE>}<NEW_LINE>List<NeedReplyMessage> ret = new ArrayList<>();<NEW_LINE>SimpleQuery<VolumeSnapshotTreeVO> cq = d... | cq.select(VolumeSnapshotTreeVO_.uuid); |
1,761,262 | public void renameColumn(ConnectorSession session, JdbcTableHandle handle, JdbcColumnHandle jdbcColumn, String newColumnName) {<NEW_LINE>try (Connection connection = connectionFactory.openConnection(session)) {<NEW_LINE>String newRemoteColumnName = getIdentifierMapping().toRemoteColumnName(connection, newColumnName);<N... | .getCatalogName()), e); |
1,096,843 | public String encode() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_SERVICE_VERSION, this.version);<NEW_LINE>tryAppendQueryParameter(sb, Constants.<MASK><NEW_LINE>tryAppendQueryParameter(sb, Constants.UrlConstants.SAS_RESOURCES_TYPES, this.resourceTy... | UrlConstants.SAS_SERVICES, this.services); |
1,249,451 | public boolean visit(MySqlExplainStatement var1) {<NEW_LINE>if (var1.isDescribe() && null != var1.getTableName()) {<NEW_LINE>this.sqlNode = new SqlDesc(SqlParserPos.ZERO, convertToSqlNode(var1.getTableName()));<NEW_LINE>} else {<NEW_LINE>final SqlExplainLevel detailLevel = SqlExplainLevel.NO_ATTRIBUTES;<NEW_LINE>final ... | > oriHints = var1.getHints(); |
1,429,899 | private JMethod addPublicSetMethod(JDefinedClass jclass, JMethod internalSetMethod) {<NEW_LINE>JMethod method = jclass.method(PUBLIC, jclass.owner().VOID, SETTER_NAME);<NEW_LINE>JVar nameParam = method.param(String.class, "name");<NEW_LINE>JVar valueParam = method.param(Object.class, "value");<NEW_LINE>JBlock body = me... | getTypeParameters().get(1); |
1,182,676 | public void updatePet(Pet body) throws RestClientException {<NEW_LINE>Object postBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling updatePet");<NEW_LINE... | LinkedMultiValueMap<String, Object>(); |
710,568 | public List<File> transform(File input) {<NEW_LINE>File outputDir = getOutputDirectory();<NEW_LINE>mkdirs(outputDir);<NEW_LINE>try (InputStream fis = new <MASK><NEW_LINE>ZipInputStream zis = new ZipInputStream(fis)) {<NEW_LINE>// loop on the entries of the intermediary package and put them in the final package.<NEW_LIN... | BufferedInputStream(new FileInputStream(input)); |
95,003 | public static UUID createHashicorpCAConfig(UUID customerUUID, String label, String storagePath, HashicorpVaultConfigParams hcVaultParams) throws Exception {<NEW_LINE>if (Strings.isNullOrEmpty(hcVaultParams.vaultAddr) || Strings.isNullOrEmpty(hcVaultParams.vaultToken) || Strings.isNullOrEmpty(hcVaultParams.engine) || St... | log.info("Created Root CA for universe {}.", label); |
1,399,419 | public void remove(OnLineStatistics B) {<NEW_LINE>final OnLineStatistics A = this;<NEW_LINE>// XXX double compare.<NEW_LINE>if (A.n == B.n) {<NEW_LINE>n = mean = m2 = m3 = m4 = 0;<NEW_LINE>min = max = null;<NEW_LINE>return;<NEW_LINE>} else if (B.n == 0)<NEW_LINE>// removed nothing!<NEW_LINE>return;<NEW_LINE>else if (A.... | = A.n - B.n; |
516,859 | public Map<TopicPartition, PartitionOffsetInfo> addTopicPartitionsToFetcherThread(Map<TopicPartition, PartitionOffsetInfo> topicPartitions) {<NEW_LINE>Map<TopicPartition, PartitionOffsetInfo> <MASK><NEW_LINE>if (topicPartitions == null || topicPartitions.size() == 0) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>Map<To... | result = new HashMap<>(); |
1,205,501 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent attachment = game.getPermanent(source.getTargets().get(0).getFirstTarget());<NEW_LINE>Permanent creature = game.getPermanent(source.getTargets().get(1).getFirstTarget());<NEW_LINE>... | creature.getLogName() + " because it's not a legal target for the aura"); |
1,013,881 | public void onCreate(TriggerAttributes attributes) throws Exception {<NEW_LINE>LOGGER.info("onCreate(TriggerAttributes attributes)");<NEW_LINE>double lo = attributes.getDouble("lo");<NEW_LINE>double hi = attributes.getDouble("hi");<NEW_LINE>windowEvaluationHandler = new SlidingSizeWindowEvaluationHandler(new SlidingSiz... | avg += window.getDouble(i); |
1,769,239 | public boolean replaceEvent(GameEvent event, Ability source, Game game) {<NEW_LINE>Permanent permanent = ((EntersTheBattlefieldEvent) event).getTarget();<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (permanent != null && controller != null) {<NEW_LINE>Choice choice = new ChoiceImpl... | getChoices().add(choice22); |
726,819 | public void execute(State state) throws WorkflowExecutionException {<NEW_LINE>TlsContext tlsContext = state.getTlsContext(connectionAlias);<NEW_LINE>if (isExecuted()) {<NEW_LINE>throw new WorkflowExecutionException("Action already executed!");<NEW_LINE>}<NEW_LINE>String sending = getReadableString(messages);<NEW_LINE>i... | .contains(ActionOption.MAY_FAIL)); |
260,294 | public static ListRecordingByContactIdResponse unmarshall(ListRecordingByContactIdResponse listRecordingByContactIdResponse, UnmarshallerContext context) {<NEW_LINE>listRecordingByContactIdResponse.setRequestId(context.stringValue("ListRecordingByContactIdResponse.RequestId"));<NEW_LINE>listRecordingByContactIdResponse... | ("ListRecordingByContactIdResponse.Recordings[" + i + "].InstanceId")); |
339,463 | public void marshall(RuleGroupResponse ruleGroupResponse, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (ruleGroupResponse == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(ruleGroupResponse.getRuleGroupArn... | ruleGroupResponse.getDescription(), DESCRIPTION_BINDING); |
785,760 | private static void manageMetricsIndex(ElasticsearchClient elasticsearchClient, CorePlugin corePlugin) {<NEW_LINE>if (corePlugin.isReportToElasticsearch()) {<NEW_LINE>elasticsearchClient.updateKibanaIndexPattern("stagemonitor-metrics-*", elasticsearchClient.getKibanaResourcePath() + "stagemonitor-metrics-kibana-index-p... | String templatePath = corePlugin.getMetricsIndexTemplate(); |
286,908 | // flush always happens on the same thread<NEW_LINE>public void flush() {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("flush requested, pending: {}, batchSize: {}", currentBatchSize.get(), maxBatchSize);<NEW_LINE>}<NEW_LINE>if (pendingFlushQueue.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!isFlush... | log.error("error flushing pending records", t); |
1,628,009 | private void stillStartingUp(StringBuilder sb) {<NEW_LINE>String userAgentAnalyzerFailureMessage = getUserAgentAnalyzerFailureMessage();<NEW_LINE>if (userAgentAnalyzerFailureMessage == null) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>long millisBusy = now - getInitStartMoment();<NEW_LINE>String timeStri... | ("</p>").append("</div>"); |
43,185 | public static boolean visitResources(Class<?> target, Consumer<Path> consumer, String firstPathComponent, String... remainingPathComponents) throws IOException {<NEW_LINE>final URL knownResource = FileSystemUtils.class.getClassLoader().getResource("default-velocity.toml");<NEW_LINE>if (knownResource == null) {<NEW_LINE... | .split("!")[0]; |
726,808 | private void initDeterministicColumnIndex(ExecutionContext ec) {<NEW_LINE>if (!(RelUtils.getRelInput(this) instanceof LogicalDynamicValues)) {<NEW_LINE>literalColumnIndex = Lists.newArrayList();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Set<String> resultColumnNames = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);<NEW_... | getIndex(tableName, schemaName, ec); |
926,083 | public static SavedModelBundle loadSavedModelBundle(String exportDir, String[] tags, ConfigProto config, RunOptions runOptions) {<NEW_LINE>try (PointerScope ignored = new PointerScope()) {<NEW_LINE>TF_Status status = TF_Status.newStatus();<NEW_LINE>// allocate parameters for TF_LoadSessionFromSavedModel<NEW_LINE>TF_Ses... | length, graphHandle, metaGraphDef, status); |
1,682,781 | final ListSNOMEDCTInferenceJobsResult executeListSNOMEDCTInferenceJobs(ListSNOMEDCTInferenceJobsRequest listSNOMEDCTInferenceJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSNOMEDCTInferenceJobsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
189,109 | public static void storeToFile(List<Map<IndexKey, IndexValue>> indexMaps, File indexMapFile) throws ConfigurationException {<NEW_LINE>Preconditions.checkState(!indexMapFile.exists(), "Star-tree index map file already exists");<NEW_LINE><MASK><NEW_LINE>int numStarTrees = indexMaps.size();<NEW_LINE>for (int i = 0; i < nu... | PropertiesConfiguration configuration = new PropertiesConfiguration(indexMapFile); |
348,099 | public Pair<Boolean, byte[]> execute(byte[] data) {<NEW_LINE>if (data == null || data.length != 2 * WORD_SIZE) {<NEW_LINE>return Pair.of(true, longTo32Bytes(0L));<NEW_LINE>}<NEW_LINE>DataWord[] words = DataWord.parseArray(data);<NEW_LINE>byte[] address = words[0].toTronAddress();<NEW_LINE>AccountCapsule accountCapsule ... | getDeposit().getAccount(address); |
1,161,158 | private void loadBlocksEditor(String formNamePassedIn) {<NEW_LINE>final String formName = formNamePassedIn;<NEW_LINE>final YaBlocksEditor newBlocksEditor = editorMap.get(formName).blocksEditor;<NEW_LINE>newBlocksEditor.loadFile(new Command() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void execute() {<NEW_LINE>YaBlo... | editorMap.get(formName).blocksEditor; |
87,813 | final UpdateProfileResult executeUpdateProfile(UpdateProfileRequest updateProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<UpdateProfileReq... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
293,177 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000004) == 0x00000004)) {<NEW_LINE>output.wri... | writeString(output, 6, singularName_); |
116,838 | public static ReadOnlyData deserialize(DataInput in) throws IOException {<NEW_LINE>int numKeys = in.readInt();<NEW_LINE>List<TagGroup> keys = Lists.newArrayList();<NEW_LINE>for (int j = 0; j < numKeys; j++) {<NEW_LINE>keys.add(TagGroup.Serializer.deserialize(ReaderConfig.getInstance(), in));<NEW_LINE>}<NEW_LINE>int num... | = new double[num][]; |
1,280,463 | public J.ForEachLoop visitForEachLoop(J.ForEachLoop forLoop, P p) {<NEW_LINE>J.ForEachLoop f = super.visitForEachLoop(forLoop, p);<NEW_LINE>f = f.withControl(spaceBefore(f.getControl(), style.getBeforeParentheses().getForParentheses()));<NEW_LINE>f = f.getPadding().withBody(spaceBeforeRightPaddedElement(f.getPadding().... | ).getBeforeColonInForEach()))); |
1,489,443 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_fall_text_view);<NEW_LINE>textView = (HTextView) findViewById(R.id.textview);<NEW_LINE>textView1 = (HTextView) findViewById(R.id.textview1);<NEW_LINE>textView2 = (HTextView) findVi... | textView2.setProgress(progress / 100f); |
1,163,899 | final AssociateRoutingProfileQueuesResult executeAssociateRoutingProfileQueues(AssociateRoutingProfileQueuesRequest associateRoutingProfileQueuesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateRoutingProfileQueuesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
651,672 | private void testBackup() {<NEW_LINE>File f = new File(MMKV.getRootDir());<NEW_LINE>String backupRootDir = f.getParent() + "/mmkv_backup_3";<NEW_LINE>String mmapID = "test/AES";<NEW_LINE>String otherDir = getFilesDir().getAbsolutePath() + "/mmkv_3";<NEW_LINE>boolean ret = MMKV.backupOneToDirectory(mmapID, backupRootDir... | (mmkv.allKeys())); |
952,167 | public void validatePartitionAssignmentSupported(Datastream datastream) throws DatastreamValidationException {<NEW_LINE>try {<NEW_LINE>String connectorName = datastream.getConnectorName();<NEW_LINE>ConnectorInfo connectorInfo = _connectors.get(connectorName);<NEW_LINE>if (connectorInfo == null) {<NEW_LINE>throw new Dat... | .getConnector().getConnectorInstance(); |
1,749,865 | public static ListExperimentMetasResponse unmarshall(ListExperimentMetasResponse listExperimentMetasResponse, UnmarshallerContext _ctx) {<NEW_LINE>listExperimentMetasResponse.setRequestId(_ctx.stringValue("ListExperimentMetasResponse.RequestId"));<NEW_LINE>listExperimentMetasResponse.setCode(_ctx.stringValue("ListExper... | (_ctx.integerValue("ListExperimentMetasResponse.CurrentPage")); |
1,640,900 | protected void encodeSuggestionItemsAsList(FacesContext context, AutoComplete ac, Object item, Converter converter, boolean pojo, String var, String key) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>Map<String, Object> requestMap = context.getExternalContext().getRequestMa... | item.toString(), null); |
816,644 | public static ListAppInstanceResponse unmarshall(ListAppInstanceResponse listAppInstanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAppInstanceResponse.setRequestId(_ctx.stringValue("ListAppInstanceResponse.RequestId"));<NEW_LINE>listAppInstanceResponse.setCode(_ctx.integerValue("ListAppInstanceResponse.Code"));... | (_ctx.integerValue("ListAppInstanceResponse.PageSize")); |
794,070 | private void handleCacheStmt(CacheAnalyzer cacheAnalyzer, MysqlChannel channel, SelectStmt selectStmt) throws Exception {<NEW_LINE>InternalService.PFetchCacheResult cacheResult = cacheAnalyzer.getCacheData();<NEW_LINE><MASK><NEW_LINE>SelectStmt newSelectStmt = selectStmt;<NEW_LINE>boolean isSendFields = false;<NEW_LINE... | CacheMode mode = cacheAnalyzer.getCacheMode(); |
1,469,252 | public static void validate(RecordBatch batch) {<NEW_LINE>int count = batch.getRecordCount();<NEW_LINE>long hash = 12345;<NEW_LINE>SelectionVectorMode mode = batch.getSchema().getSelectionVectorMode();<NEW_LINE>switch(mode) {<NEW_LINE>case NONE:<NEW_LINE>{<NEW_LINE>for (VectorWrapper<?> w : batch) {<NEW_LINE>ValueVecto... | getSelectionVector2().getIndex(i); |
417,898 | protected Options options() {<NEW_LINE>final Options options = new Options();<NEW_LINE>ChronicleReaderMain.addOption(options, "d", "directory", true, "Directory containing chronicle queue files", true);<NEW_LINE>ChronicleReaderMain.addOption(options, "h", "help-message", false, "Print this help and exit", false);<NEW_L... | "ignore", true, "How many items to ignore from start", false); |
1,284,660 | private static void appendAutoScrollAssignment(FacesContext context, ScriptContext scriptContext, String formName) {<NEW_LINE>String formNameStr = formName == null ? "formName" : (new StringBuilder("'").append(formName).append("'").toString());<NEW_LINE>String paramName = new StringBuilder().append("'").append(AUTO_SCR... | append("()").toString(); |
986,541 | final UpdateIPSetResult executeUpdateIPSet(UpdateIPSetRequest updateIPSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateIPSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
842,638 | public static boolean isInScope(Scope scope, Scope other) {<NEW_LINE>scope = normalize(scope);<NEW_LINE>other = normalize(other);<NEW_LINE>String scopeHost = getHost(scope.getDomain());<NEW_LINE>String otherHost = getHost(other.getDomain());<NEW_LINE>OptionalInt scopePort = getPort(scope.getDomain());<NEW_LINE>Optional... | otherPort.orElse(-1)); |
1,263,194 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
892,016 | public okhttp3.Call addPetCall(Pet body, final ApiCallback _callback) throws ApiException {<NEW_LINE>String basePath = null;<NEW_LINE>// Operation Servers<NEW_LINE>String[] localBasePaths = new String[] {};<NEW_LINE>// Determine Base Path to Use<NEW_LINE>if (localCustomBaseUrl != null) {<NEW_LINE>basePath = localCustom... | final String[] localVarAccepts = {}; |
1,631,264 | public static FSM rotDecoder() {<NEW_LINE>State init = new State("init");<NEW_LINE>State top = new State("top");<NEW_LINE>State topSetLeft = new State("topSetLeft").setValues("L=1");<NEW_LINE>State topSetRight = new State("topSetRight").setValues("R=1");<NEW_LINE>State leftTop = new State("leftTop");<NEW_LINE>State lef... | ("bottomSetRight").setValues("R=1"); |
1,844,824 | public BatchStopUpdateActionResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>BatchStopUpdateActionResult batchStopUpdateActionResult = new BatchStopUpdateActionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (conte... | new ArrayList<UnprocessedUpdateAction>()); |
1,752,308 | protected JFreeChart createXyLineChart() throws JRException {<NEW_LINE>JRLinePlot linePlot = (JRLinePlot) getPlot();<NEW_LINE>ChartFactory.<MASK><NEW_LINE>JFreeChart jfreeChart = ChartFactory.createXYLineChart(evaluateTextExpression(getChart().getTitleExpression()), evaluateTextExpression(linePlot.getCategoryAxisLabelE... | setChartTheme(StandardChartTheme.createLegacyTheme()); |
189,330 | public boolean abandonAudFocus(Context context, ApplicationMode applicationMode, int streamType) {<NEW_LINE>AudioManager mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);<NEW_LINE>routingHelper = ((OsmandApplication) context.<MASK><NEW_LINE>playbackAuthorized = false;<NEW_LINE>if (android.... | getApplicationContext()).getRoutingHelper(); |
478,103 | public double findHeightToViewBounds(final Mbr mbr, final Point2d pos) {<NEW_LINE>// We'll experiment on a copy of the map view<NEW_LINE>final GlobeView newGlobeView = globeView.clone();<NEW_LINE>newGlobeView.setLoc(new Point3d(pos.getX(), pos.getY(), 2.0));<NEW_LINE>double minHeight = newGlobeView.minHeightAboveSurfac... | checkCoverage(mbr, newGlobeView, maxHeight); |
433,404 | private ELNode.Nodes parseEL() {<NEW_LINE>StringBuffer buf = new StringBuffer();<NEW_LINE>ELexpr = new ELNode.Nodes();<NEW_LINE>while (hasNext()) {<NEW_LINE>curToken = nextToken();<NEW_LINE>if (curToken instanceof Char) {<NEW_LINE>if (curToken.toChar() == '}') {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>buf.<MASK><NEW_LINE>}... | append(curToken.toChar()); |
470,854 | final SearchTablesResult executeSearchTables(SearchTablesRequest searchTablesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchTablesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | (super.beforeMarshalling(searchTablesRequest)); |
170,122 | public void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>final var sz = getSize();<NEW_LINE>final int top = Math.max(0, (sz.height - tableHeight) / 2);<NEW_LINE>final int left = Math.max(0, (sz.width - tableWidth) / 2);<NEW_LINE>final var model = getModel();<NEW_LINE>if (model == null)<NEW_LI... | = top + cellHeight + HEADER_SEP / 2; |
1,456,712 | protected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException {<NEW_LINE>if (BooleanUtil.isTrue(((Column) example).getComputed()) || BooleanUtil.isTrue(((Column) example).getDescending())) {<NEW_LINE>return example;<NEW_LINE>}<NEW_LINE>Database database = snapshot.g... | populateValidateNullableIfNeeded(column, metaDataNotNullConst, database); |
117,156 | protected ProvidedValue lookupProvidedValue(String... keyAndAliases) {<NEW_LINE>if (keyAndAliases == null || keyAndAliases.length == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Map<?, ?> sourceData = getMap();<NEW_LINE>if (sourceData == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>for (String key : keyAnd... | value, getSourceDescription(), this); |
627,135 | public void onCreate() {<NEW_LINE>super.onCreate();<NEW_LINE>AndroidInjection.inject(this);<NEW_LINE>Log_OC.d(TAG, "Creating service");<NEW_LINE>mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);<NEW_LINE>HandlerThread thread = new HandlerThread("FileDownloaderThread", Process.THREAD_P... | AccountManager.get(getApplicationContext()); |
88,703 | protected ValueTranslator<ReadableInstant, Timestamp> createValueTranslator(final TypeKey<ReadableInstant> tk, final CreateContext ctx, final Path path) {<NEW_LINE>final Class<?<MASK><NEW_LINE>// All the Joda instants have a constructor that will accept a Date<NEW_LINE>final MethodHandle ctor = TypeUtils.getConstructor... | > clazz = tk.getTypeAsClass(); |
1,256,285 | protected void onFragmentCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>gistId = <MASK><NEW_LINE>recycler.setEmptyView(stateLayout, refresh);<NEW_LINE>if (gistId == null)<NEW_LINE>return;<NEW_LINE>stateLayout.setEmptyText(R.string.no_comments);<NEW_LINE>recycler.setItemViewCacheSize(30);<NE... | getArguments().getString("gistId"); |
211,864 | private void updateVisibleEntries() {<NEW_LINE>// If not all previews are ready, then defer this update and try again after the preview<NEW_LINE>// loads.<NEW_LINE>if (!ensureAllPreviewsReady())<NEW_LINE>return;<NEW_LINE>// Get the current top of the header with the matching key before adjusting the visible<NEW_LINE>//... | collect(Collectors.toList()); |
188,380 | void doFind() {<NEW_LINE>FindDialog dlg = new FindDialog();<NEW_LINE>// dlg.setLocation(linkActionB.getLocationOnScreen());<NEW_LINE>Dimension dlgSize = dlg.getSize();<NEW_LINE>// dlg.setSize(400, 300);<NEW_LINE>Dimension frmSize = this.getSize();<NEW_LINE>Point loc = this.getLocationOnScreen();<NEW_LINE>dlg.setLocatio... | = dlg.txtReplace.getText(); |
1,526,984 | static void findDuplicateElements(@NonNull Element parent, FileObject config, boolean shared) {<NEW_LINE>NodeList l = parent.getChildNodes();<NEW_LINE>int nodeCount = l.getLength();<NEW_LINE>Set<String> known = new HashSet<String>();<NEW_LINE>for (int i = 0; i < nodeCount; i++) {<NEW_LINE>if (l.item(i).getNodeType() ==... | message = Bundle.DESC_Problem_Broken_Config("$project_basedir/nbproject/project.xml"); |
218,700 | protected void drawFrame(Graphics2D g, CardPanelAttributes attribs, BufferedImage image, boolean lessOpaqueRulesTextBox) {<NEW_LINE>if (isAftermath()) {<NEW_LINE>drawSplitHalfFrame(getUnmodifiedHalfContext(g), attribs, leftHalf, (int) (leftHalf.ch * TYPE_LINE_Y_FRAC));<NEW_LINE>drawSplitHalfFrame(getAftermathHalfContex... | ), ONLY_LAND_TYPE, totalFuseBoxWidth, false); |
1,122,910 | public static GetAnalyzeCommodityDataResponse unmarshall(GetAnalyzeCommodityDataResponse getAnalyzeCommodityDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>getAnalyzeCommodityDataResponse.setPageIndex(_ctx.integerValue("GetAnalyzeCommodityDataResponse.PageIndex"));<NEW_LINE>getAnalyzeCommodityDataResponse.setTotal(_... | ("GetAnalyzeCommodityDataResponse.AnalyzeCommodityItems[" + i + "].SupportCount")); |
227,389 | public Response serve(IHTTPSession session) {<NEW_LINE>int currentId = traceId++;<NEW_LINE>Logging.LOG.info(String.format("[%d] %s --> %s", currentId, session.getMethod().name(), session.getUri() + Optional.ofNullable(session.getQueryParameterString()).map(s -> "?" + s<MASK><NEW_LINE>Response response = null;<NEW_LINE>... | ).orElse(""))); |
1,031,439 | public void checkFile(Query query) throws ValidationException {<NEW_LINE>if (!outputFile.exists()) {<NEW_LINE>if (loggers.containsKey("/dev/null")) {<NEW_LINE>logger = loggers.get("/dev/null");<NEW_LINE>} else {<NEW_LINE>try {<NEW_LINE>logger = initLogger("/dev/null");<NEW_LINE><MASK><NEW_LINE>} catch (IOException e) {... | loggers.put("/dev/null", logger); |
1,528,059 | public void startup() {<NEW_LINE>final String userName = System.getProperty("user.name", "unknown");<NEW_LINE>OLogManager.instance().infoNoDb(this, "System is started under an effective user : `%s`", userName);<NEW_LINE>if (Platform.getPlatform().getOS() == Platform.OS.LINUX && POSIXFactory.getPOSIX().getegid() == 0) {... | getValueAsLong() * 1024 * 1024); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.