idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
317,476 | public static void requestFileDataResponse(byte[] data, MySQLResponseService service) {<NEW_LINE>byte packId = data[3];<NEW_LINE>RouteResultsetNode rrn = (RouteResultsetNode) service.getAttachment();<NEW_LINE>LoadData loadData = rrn.getLoadData();<NEW_LINE>List<String> loadDataData = loadData.getData();<NEW_LINE>servic... | .toByteArray()), service); |
521,574 | private List<ConsumerRecord<byte[], byte[]>> retrieveActionReportMessages() {<NEW_LINE>DoctorKConfig doctorKConfig = DoctorKMain.doctorK.getDoctorKConfig();<NEW_LINE>String zkUrl = doctorKConfig.getBrokerstatsZkurl();<NEW_LINE>String actionReportTopic = doctorKConfig.getActionReportTopic();<NEW_LINE>Properties properti... | "Read {} messages", recordList.size()); |
1,138,268 | private void scavengeCache() {<NEW_LINE>ArrayList<Socket> sockets2Close <MASK><NEW_LINE>synchronized (_this) {<NEW_LINE>for (int i = 0; i < socketList.size(); i++) {<NEW_LINE>KeepAliveInfo info = socketList.get(i);<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>if (now - info.getLastUsed() >= MAX_KEEP_ALIVE_I... | = new ArrayList<Socket>(); |
135,429 | private static Function<ConfiguredAirbyteStream, WriteConfig> toWriteConfig(final BlobStorageOperations storageOperations, final NamingConventionTransformer namingResolver, final JsonNode config) {<NEW_LINE>return stream -> {<NEW_LINE>Preconditions.checkNotNull(stream.getDestinationSyncMode(), "Undefined destination sy... | asText() : S3DestinationConstants.DEFAULT_PATH_FORMAT); |
997,683 | public void init(ClassProperties properties) {<NEW_LINE>String <MASK><NEW_LINE>List<String> preloads = properties.get("platform.preload");<NEW_LINE>List<String> resources = properties.get("platform.preloadresource");<NEW_LINE>// Only apply this at load time since we don't want to copy the CUDA libraries here<NEW_LINE>i... | platform = properties.getProperty("platform"); |
1,156,390 | private SingularField compareSingularPrimitive(@Nullable Object actual, @Nullable Object expected, @Nullable Object defaultValue, FieldDescriptor fieldDescriptor, String fieldName, FluentEqualityConfig config) {<NEW_LINE>Result.Builder result = Result.builder();<NEW_LINE>// Use the default if it's set and we're ignorin... | ).contains(rootDescriptor, subScopeId); |
708,271 | protected static void propagatePreviousLubs(final TargetConstraints targetRecord, Lubs solution, final Map<AnnotatedTypeMirror, AnnotationMirrorSet> subtypesOfTarget) {<NEW_LINE>for (final Map.Entry<TypeVariable, AnnotationMirrorSet> supertypeTarget : targetRecord.supertypes.targets.entrySet()) {<NEW_LINE>final Annotat... | getType(supertypeTarget.getKey()); |
1,080,972 | private List<PromptErrorLog> listPromptErrorLog(EntityManagerContainer emc) throws Exception {<NEW_LINE>EntityManager em = emc.get(PromptErrorLog.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<PromptErrorLog> cq = cb.createQuery(PromptErrorLog.class);<NEW_LINE>Root<PromptErrorLog>... | emc.beginTransaction(PromptErrorLog.class); |
607,320 | public void reload() {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>File currentProjectPluginsDir;<NEW_LINE>File currentGlobalPluginsDir;<NEW_LINE>List<GrailsPlugin> currentLocalPlugins;<NEW_LINE>synchronized (this) {<NEW_LINE>File newProjectRoot = FileUtil.toFile(project.getProjectDirectory());<NEW_LINE>... | (FileUtil.normalizeFile(currentProjectPluginsDir)); |
434,349 | protected void addCovariantMethods(ClassNode classNode) {<NEW_LINE>Map methodsToAdd = new HashMap();<NEW_LINE>Map genericsSpec = new HashMap();<NEW_LINE>// unimplemented abstract methods from interfaces<NEW_LINE>Map<String, MethodNode> abstractMethods = ClassNodeUtils.getDeclaredMethodsFromInterfaces(classNode);<NEW_LI... | (MethodNode) entry.getValue(); |
1,589,401 | private void prepareThenExecuteTransactionWriteOperations(RequestDetails theRequestDetails, String theActionName, TransactionDetails theTransactionDetails, StopWatch theTransactionStopWatch, IBaseBundle theResponse, IdentityHashMap<IBase, Integer> theOriginalRequestOrder, List<IBase> theEntries) {<NEW_LINE>TransactionW... | nextEntry.getKey(), responseEtag); |
1,850,960 | protected void addGuiElements() {<NEW_LINE>super.addGuiElements();<NEW_LINE>addRenderableWidget(new GuiHorizontalPowerBar(this, tile.getEnergyContainer(), 115, 75)).warning(WarningType.NOT_ENOUGH_ENERGY, tile.getWarningCheck(RecipeError.NOT_ENOUGH_ENERGY)).warning(WarningType.NOT_ENOUGH_ENERGY_REDUCED_RATE, tile.getWar... | .getWarningCheck(RecipeError.NOT_ENOUGH_OUTPUT_SPACE)); |
1,535,644 | public void propertyChange(PropertyChangeEvent evt) {<NEW_LINE>String projectName = project.getProjectDirectory().getNameExt();<NEW_LINE>if (!preferences.isEnabled()) {<NEW_LINE>LOGGER.log(Level.FINE, "Property change event in package.json ignored, node.js not enabled in project {0}", projectName);<NEW_LINE>return;<NEW... | String propertyName = evt.getPropertyName(); |
31,385 | public final ServiceBodyContext serviceBody() throws RecognitionException {<NEW_LINE>ServiceBodyContext _localctx = new ServiceBodyContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(216);<NEW_LINE>match(LBRACE);<NEW_LINE>setStat... | enterRule(_localctx, 40, RULE_serviceBody); |
554,797 | public RefundInvoiceCandidate createOrDeleteAdditionalAssignments(@NonNull final RefundInvoiceCandidate refundInvoiceCandidate, @NonNull final RefundConfig oldRefundConfig, @NonNull final RefundConfig newRefundConfig) {<NEW_LINE>if (oldRefundConfig.equals(newRefundConfig)) {<NEW_LINE>return refundInvoiceCandidate;<NEW_... | ).forEach(assignmentToRefundCandidateRepository::save); |
54,392 | protected String buildSolrFacetQuery(String fieldName, SearchFacetRange range, Boolean addExParam, String param) {<NEW_LINE>Assert.notNull(fieldName, "FieldName cannot be null");<NEW_LINE>Assert.notNull(range, "Range cannot be null");<NEW_LINE>if (StringUtils.isBlank(param)) {<NEW_LINE>param = "key";<NEW_LINE>}<NEW_LIN... | .getMinValue().toPlainString(); |
325,970 | protected Problem checkParameters(CompilationController javac) throws IOException {<NEW_LINE>Problem problem = null;<NEW_LINE>javac.toPhase(JavaSource.Phase.RESOLVED);<NEW_LINE>TreePath <MASK><NEW_LINE>if (constrPath == null || constrPath.getLeaf().getKind() != Tree.Kind.METHOD) {<NEW_LINE>return new Problem(true, ERR_... | constrPath = treePathHandle.resolve(javac); |
309,501 | public AuthFlowConfiguration generateConfiguration(String callbackBaseUrl, String id) {<NEW_LINE>String callback = (Strings.isNullOrEmpty(callbackBaseUrl)) ? OUT_OF_BOUNDS_CALLBACK : callbackBaseUrl;<NEW_LINE>OAuthGetTemporaryToken tempTokenRequest = new OAuthGetTemporaryToken(config.getRequestTokenUrl());<NEW_LINE>tem... | .temporaryToken = authData.getToken(); |
497,049 | private void serveSwaggerUiHtml(ServletRequestDetails theRequestDetails, HttpServletResponse theResponse) throws IOException {<NEW_LINE>CapabilityStatement cs = getCapabilityStatement(theRequestDetails);<NEW_LINE>String baseUrl = removeTrailingSlash(cs.getImplementation().getUrl());<NEW_LINE>theResponse.setStatus(200);... | String type = t.getType(); |
1,692,933 | public boolean render(@Nonnull ItemStack stack, int xPosition, int yPosition, int barOffset, boolean alwaysShow) {<NEW_LINE>IFluidHandler <MASK><NEW_LINE>if (cap == null || cap.getTankProperties() == null || cap.getTankProperties().length <= 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>IFluidTankProperties tank = ca... | cap = FluidUtil.getFluidHandlerCapability(stack); |
838,359 | public Single<String> lookupUrl(String url) {<NEW_LINE>Pattern pattern = Pattern.compile(PATTERN_BY_ID);<NEW_LINE>Matcher matcher = pattern.matcher(url);<NEW_LINE>final String lookupUrl = matcher.find() ? ("https://itunes.apple.com/lookup?id=" + matcher.group(1)) : url;<NEW_LINE>return Single.create(emitter -> {<NEW_LI... | JSONObject result = new JSONObject(resultString); |
277,597 | protected PropertySectionTextControl createDocumentationControl(Composite parent, String hint) {<NEW_LINE>// Label<NEW_LINE>Label label = createLabel(parent, Messages.AbstractECorePropertySection_2, ITabbedLayoutConstants.STANDARD_LABEL_WIDTH, SWT.NONE);<NEW_LINE>// CSS<NEW_LINE>// $NON-NLS-1$ //$NON-NLS-2$<NEW_LINE>la... | = new CompoundCommand(Messages.AbstractECorePropertySection_3); |
917,831 | private // ------------------//<NEW_LINE>List<HeadInter> aggregateMatches(List<HeadInter> heads) {<NEW_LINE>// Sort by decreasing grade<NEW_LINE>Collections.<MASK><NEW_LINE>// Gather matches per close locations<NEW_LINE>// Avoid duplicate locations<NEW_LINE>final List<Aggregate> aggregates = new ArrayList<>();<NEW_LINE... | sort(heads, Inters.byReverseGrade); |
556,921 | private void createInvoiceFacts(final Fact fact, final DocLine_Allocation line, final AmountSourceAndAcct invoiceTotalAllocatedAmtSourceAndAcct) {<NEW_LINE>final BigDecimal allocationSource = invoiceTotalAllocatedAmtSourceAndAcct.getAmtSource();<NEW_LINE>if (allocationSource.signum() == 0) {<NEW_LINE>// nothing to book... | (AccountType.V_Liability, as)); |
739,382 | protected void onNewIntent(Intent intent) {<NEW_LINE>super.onNewIntent(intent);<NEW_LINE>Log.d("PIA", "New intent called: " + intent.toString());<NEW_LINE>// Check for action first<NEW_LINE>if (ACTION_PACKAGE_INSTALLED.equals(intent.getAction())) {<NEW_LINE>sessionId = intent.getIntExtra(PackageInstaller.EXTRA_SESSION_... | intent.getParcelableExtra(Intent.EXTRA_INTENT); |
846,950 | public static List<FieldAssertionMatcher> strictComparePayload(String expectedResult, String actualResult) {<NEW_LINE>List<FieldAssertionMatcher> matchers = new ArrayList<>();<NEW_LINE>String actualResultJson = readPayload(actualResult);<NEW_LINE>String expectedResultJson = readPayload(expectedResult);<NEW_LINE>try {<N... | String rawMsg = scream.getMessage(); |
99,345 | public void postProcessTestInstance(Object testInstance, ExtensionContext context) throws Exception {<NEW_LINE>List<Method> init = new ArrayList<>();<NEW_LINE>List<Method> start = new ArrayList<>();<NEW_LINE>List<Method> stop = new ArrayList<>();<NEW_LINE>Class<?> testClass = testInstance.getClass();<NEW_LINE>Method[] ... | ] fields = testClass.getDeclaredFields(); |
1,348,885 | private I_PP_Cost_Collector createCollector(@NonNull final CostCollectorCreateRequest request) {<NEW_LINE>trxManager.assertThreadInheritedTrxExists();<NEW_LINE>final I_PP_Order ppOrder = request.getOrder();<NEW_LINE>final DocTypeId docTypeId = docTypeDAO.getDocTypeId(DocTypeQuery.builder().docBaseType(X_C_DocType.DOCBA... | getAttributeSetInstanceId().getRepoId()); |
935,551 | private // view's center and scale according to the cropping rectangle.<NEW_LINE>void centerBasedOnHighlightView(HighlightView hv) {<NEW_LINE>Rect drawRect = hv.drawRect;<NEW_LINE>float width = drawRect.width();<NEW_LINE>float height = drawRect.height();<NEW_LINE>float thisWidth = getWidth();<NEW_LINE>float thisHeight ... | , coordinates[1], 300F); |
1,300,000 | private JPanel buildInfoPanel(PatternEvaluationStats stats) {<NEW_LINE>JPanel evalPanel = new JPanel(new GridLayout(2, 8));<NEW_LINE>evalPanel.add(new GLabel("Match Type"));<NEW_LINE>evalPanel.add(new GLabel(PatternMatchType.TRUE_POSITIVE.name()));<NEW_LINE>evalPanel.add(new GLabel(PatternMatchType.FP_WRONG_FLOW.name()... | (stats.getNumFPMisaligned())); |
1,368,088 | public DescribeScriptResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeScriptResult describeScriptResult = new DescribeScriptResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | JsonToken token = context.getCurrentToken(); |
1,293,330 | public void subscribe(final FlowableEmitter<RealmResults<E>> emitter) {<NEW_LINE>// If the Realm has been closed, just create an empty Observable because we assume it is going to be disposed shortly.<NEW_LINE>if (!results.isValid())<NEW_LINE>return;<NEW_LINE>// Gets instance to make sure that the Realm is open for as l... | get().acquireReference(results); |
1,771,650 | public Map<String, String> tableOptions() {<NEW_LINE>Map<String, String> map = super.tableOptions();<NEW_LINE><MASK><NEW_LINE>map.put("default-database", database);<NEW_LINE>if (null != hiveVersion) {<NEW_LINE>map.put("hive-version", hiveVersion);<NEW_LINE>}<NEW_LINE>if (null != hadoopConfDir) {<NEW_LINE>map.put("hadoo... | map.put("connector", "hive"); |
53,418 | private List<Object> createInsightDependencyChildren(RenderableDependency dependency, final Set<Object> visited, final Configuration configuration) {<NEW_LINE>Iterable<? extends RenderableDependency<MASK><NEW_LINE>return CollectionUtils.collect(children, (Transformer<Object, RenderableDependency>) childDependency -> {<... | > children = dependency.getChildren(); |
1,374,519 | protected DB2PlanConfig runTask() {<NEW_LINE>// No valid explain tables found, propose to create them in current authId<NEW_LINE>String msg = String.format(DB2Messages.dialog_explain_ask_to_create, object.getSessionUserSchema());<NEW_LINE>if (!UIUtils.confirmAction(DB2Messages.dialog_explain_no_tables, msg)) {<NEW_LINE... | setTablespace(tsChooserDialog.getSelectedTablespace()); |
725,269 | public GroupFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GroupFilter groupFilter = new GroupFilter();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentTok... | int originalDepth = context.getCurrentDepth(); |
1,530,569 | protected void doRefresh(LookupCachePurge cachePurge) throws Exception {<NEW_LINE>if (!pathChecker.fileIsInAllowedPath(Paths.get(config.path()))) {<NEW_LINE>LOG.error(ALLOWED_PATH_ERROR);<NEW_LINE>setError(new IllegalStateException(ALLOWED_PATH_ERROR));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>final FileInfo... | lookupRef.set(parseCSVFile()); |
1,378,548 | public CPointer<bAction> serialize(Serializer serializer) throws IOException {<NEW_LINE>return serializer.maybeMajor(this, id, bAction.class, () -> {<NEW_LINE>return bAction -> {<NEW_LINE>serializer.writeDataList(FCurve.class, bAction.getCurves(), curves.size(), (i, fCurve) -> {<NEW_LINE>DFCurve dfCurve = curves.get(i)... | set(1, dKeyframe.value); |
975,163 | public void refresh(final ShardingSphereMetaData schemaMetaData, final FederationDatabaseMetaData database, final Map<String, OptimizerPlannerContext> optimizerPlanners, final Collection<String> logicDataSourceNames, final AlterIndexStatement sqlStatement, final ConfigurationProperties props) throws SQLException {<NEW_... | getIndexes().remove(indexName); |
1,008,548 | final ListIdentityPoolUsageResult executeListIdentityPoolUsage(ListIdentityPoolUsageRequest listIdentityPoolUsageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listIdentityPoolUsageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | false), new ListIdentityPoolUsageResultJsonUnmarshaller()); |
1,648,747 | public synchronized boolean changeNodePriority(int streamID, int newPriority) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "changeNodePriority entry: streamID to change: " + streamID + " new Priority: " + newPriority);<NEW_LINE>}<NEW_LINE>Node <MASK><NEW_LINE>Node ... | nodeToChange = root.findNode(streamID); |
159,272 | public Ddl scan() {<NEW_LINE>Ddl.Builder builder = Ddl.builder();<NEW_LINE>listDatabaseOptions(builder);<NEW_LINE>listTables(builder);<NEW_LINE>listViews(builder);<NEW_LINE>listColumns(builder);<NEW_LINE>listColumnOptions(builder);<NEW_LINE>Map<String, NavigableMap<String, Index.Builder>> indexes = Maps.newHashMap();<N... | ForeignKey fkBuilder = foreignKeyBuilder.build(); |
1,265,647 | public static Object[] readJoinCostWeightsStream(InputStream weightStream) throws IOException, FileNotFoundException {<NEW_LINE>Vector<Float> v = new Vector<Float>(16, 16);<NEW_LINE>Vector<String> vf = new Vector<String>(16, 16);<NEW_LINE>String line = null;<NEW_LINE>String[] fields = null;<NEW_LINE>float sumOfWeights ... | .parseFloat(fields[0]); |
270,505 | public static void main1(String[] args) throws IOException {<NEW_LINE>Cmd cmd = MainUtils.parseArguments(args, ALL_FLAGS);<NEW_LINE>if (cmd.args.length < 3) {<NEW_LINE>System.out.println("A utility to tweak MPEG TS timestamps.");<NEW_LINE>MainUtils.printHelp(ALL_FLAGS, Arrays.asList("command", "arg", "in name", "?out f... | IOUtils.copyFile(src, dst); |
1,246,287 | public javax.xml.transform.Source resolve(String publicId, String systemId) throws javax.xml.transform.TransformerException {<NEW_LINE>// throws SAXException, IOException {<NEW_LINE>javax.xml.transform.Source result = null;<NEW_LINE>// try to use full featured entiry resolvers<NEW_LINE>CatalogSettings mounted = Catalog... | sid = next.resolveURI(publicId); |
387,606 | public void complete(SipURILookup request, boolean isOnCurrentThread) {<NEW_LINE>if (c_logger.isTraceDebugEnabled()) {<NEW_LINE>c_logger.traceDebug(this, "complete", "Success response received.");<NEW_LINE>}<NEW_LINE>if (_stackListener != null) {<NEW_LINE>if (c_logger.isTraceDebugEnabled()) {<NEW_LINE>c_logger.traceDeb... | sipUri.setTransport(SipUtil.TLS_TRANSPORT); |
161,930 | public void processIntegerTypeProperty(CodegenModel model, CodegenProperty property, String description, KtormSchema ktormSchema) {<NEW_LINE>Map<String, Object> columnDefinition = new HashMap<String, Object>();<NEW_LINE>String baseName = property.getBaseName();<NEW_LINE>String colName = toColumnName(baseName);<NEW_LINE... | boolean exclusiveMinimum = property.getExclusiveMinimum(); |
1,599,502 | public static DescribeDnsProductInstanceResponse unmarshall(DescribeDnsProductInstanceResponse describeDnsProductInstanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDnsProductInstanceResponse.setRequestId(_ctx.stringValue("DescribeDnsProductInstanceResponse.RequestId"));<NEW_LINE>describeDnsProductInstanceRe... | (_ctx.longValue("DescribeDnsProductInstanceResponse.DDosDefendQuery")); |
1,838,372 | public void createFile(AutoTypeImage imageType, int minContinuous) throws FileNotFoundException {<NEW_LINE>className = "ImplFastCorner" + minContinuous + "_" + imageType.getAbbreviatedType();<NEW_LINE>this.imageType = imageType;<NEW_LINE>this.sumType = imageType.getSumType();<NEW_LINE>this.bitwise = imageType.getBitWis... | inside = codes.get(i); |
1,173,167 | final DescribeFleetInstancesResult executeDescribeFleetInstances(DescribeFleetInstancesRequest describeFleetInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFleetInstancesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | (super.beforeMarshalling(describeFleetInstancesRequest)); |
1,013,190 | protected void addCommonTaskFields(TaskEntity task, ObjectNode data) {<NEW_LINE>putIfNotNull(data, CmmnAsyncHistoryConstants.FIELD_ID, task.getId());<NEW_LINE>putIfNotNull(data, CmmnAsyncHistoryConstants.FIELD_REVISION, task.getRevision());<NEW_LINE>putIfNotNull(data, CmmnAsyncHistoryConstants.FIELD_NAME, task.getName(... | FIELD_DUE_DATE, task.getDueDate()); |
248,337 | private boolean hasTrailComment(DetailAST ast) {<NEW_LINE>int lineNo = ast.getLineNo();<NEW_LINE>// Since the trailing comment in the case of text blocks must follow the """ delimiter,<NEW_LINE>// we need to look for it after TEXT_BLOCK_LITERAL_END.<NEW_LINE>if (ast.getType() == TokenTypes.TEXT_BLOCK_CONTENT) {<NEW_LIN... | commentList = blockComments.get(lineNo); |
1,670,613 | protected void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>super.onActivityResult(requestCode, resultCode, data);<NEW_LINE>if (requestCode == 940 && adapter != null && adapter.getCurrentFragment() != null) {<NEW_LINE>if (resultCode == RESULT_OK) {<NEW_LINE>LogUtil.v("Doing hide posts");<NE... | )).adapter.refreshView(); |
203,354 | public void run() {<NEW_LINE>if (outputFused) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Iterator<T> iterator = this.iterator;<NEW_LINE>Observer<? <MASK><NEW_LINE>for (; ; ) {<NEW_LINE>if (disposed) {<NEW_LINE>clear();<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>T next;<NEW_LINE>try {<NEW_LINE>next = Objects.requireNonNull(iterato... | super T> downstream = this.downstream; |
1,013,475 | public void onCreate(Bundle icicle) {<NEW_LINE>super.onCreate(icicle);<NEW_LINE>setContentView(R.layout.main_choose_file_or_directory);<NEW_LINE>pwd = (TextView) findViewById(R.id.pwd);<NEW_LINE>button_select = (Button) findViewById(R.id.select_file_folder);<NEW_LINE>button_select.setOnClickListener(this);<NEW_LINE>Bun... | defaultPath = extras.getString("defaultPath"); |
185,029 | private static void run(int numGates, Scanner scan, Random random) {<NEW_LINE>int rating = readSkierRating(scan);<NEW_LINE>boolean gameInProgress = true;<NEW_LINE>var medals = new <MASK><NEW_LINE>while (gameInProgress) {<NEW_LINE>System.out.println("THE STARTER COUNTS DOWN...5...4...3...2...1...GO!");<NEW_LINE>System.o... | Medals(0, 0, 0); |
1,364,421 | private void applyChange(Diff.Change change, SearchEverywhereContributor<?> contributor, List<SearchEverywhereFoundElementInfo> newItems) {<NEW_LINE>int firstItemIndex = <MASK><NEW_LINE>if (firstItemIndex < 0) {<NEW_LINE>firstItemIndex = getInsertionPoint(contributor);<NEW_LINE>}<NEW_LINE>for (Diff.Change ch : toRevert... | contributors().indexOf(contributor); |
640,818 | public void sync(int fps) {<NEW_LINE>if (fps <= 0)<NEW_LINE>return;<NEW_LINE>if (!initialised)<NEW_LINE>initialise();<NEW_LINE>try {<NEW_LINE>// sleep until the average sleep time is greater than the time remaining till nextFrame<NEW_LINE>for (long t0 = getTime(), t1; (nextFrame - t0) > sleepDurations.avg(); t0 = t1) {... | NANOS_IN_SECOND / fps, getTime()); |
338,609 | private static Bytes computeDefault(final Bytes input) {<NEW_LINE>final BigInteger x1 = extractParameter(input, 0, 32);<NEW_LINE>final BigInteger y1 = extractParameter(input, 32, 32);<NEW_LINE>final BigInteger x2 = extractParameter(input, 64, 32);<NEW_LINE>final BigInteger y2 = <MASK><NEW_LINE>final AltBn128Point p1 = ... | extractParameter(input, 96, 32); |
305,946 | final CreateWorldExportJobResult executeCreateWorldExportJob(CreateWorldExportJobRequest createWorldExportJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createWorldExportJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
113,872 | public void doApplyInformationToEditor() {<NEW_LINE>final Long <MASK><NEW_LINE>if (stamp != null && stamp.longValue() == nowStamp())<NEW_LINE>return;<NEW_LINE>List<RangeHighlighter> oldHighlighters = myEditor.getUserData(INDENT_HIGHLIGHTERS_IN_EDITOR_KEY);<NEW_LINE>final List<RangeHighlighter> newHighlighters = new Arr... | stamp = myEditor.getUserData(LAST_TIME_INDENTS_BUILT); |
1,083,661 | private static boolean isBroadcast(List<TargetDB> targetDBs, String schemaName, ExecutionContext executionContext) {<NEW_LINE>if (targetDBs.size() != 1) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>TargetDB <MASK><NEW_LINE>if (db.getTableNames().size() != 1) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String tableName... | db = targetDBs.get(0); |
1,380,304 | final UnsubscribeFromDatasetResult executeUnsubscribeFromDataset(UnsubscribeFromDatasetRequest unsubscribeFromDatasetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(unsubscribeFromDatasetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,795,803 | final GetUploadResult executeGetUpload(GetUploadRequest getUploadRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getUploadRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | (super.beforeMarshalling(getUploadRequest)); |
1,474,569 | private void updateViewsByModification(int modOffset, int modLength, DocumentEvent evt) {<NEW_LINE>// Update views by modification. For faster operation ignore stale creation<NEW_LINE>// and check it afterwards and possibly invalidate the created views (by ViewBuilder).<NEW_LINE>ViewBuilder viewBuilder = startBuildView... | .createPosition(doc, startCreationOffset)); |
1,237,735 | public CompletableFuture<TermIndex> installSnapshotFromLeader() {<NEW_LINE>if (mJournalSystem.isLeader()) {<NEW_LINE>return RaftJournalUtils.completeExceptionally(new IllegalStateException("Abort snapshot installation after becoming a leader"));<NEW_LINE>}<NEW_LINE>if (!transitionState(DownloadState.IDLE, DownloadState... | DownloadState.STREAM_DATA, DownloadState.IDLE); |
732,570 | public ListScheduledQueriesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListScheduledQueriesResult listScheduledQueriesResult = new ListScheduledQueriesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme... | class).unmarshall(context)); |
552,187 | public static final /* Signature generation primitive, calculates (x-h)s mod q<NEW_LINE>* v [out] signature value<NEW_LINE>* h [in] signature hash (of message, signature pub key, and context data)<NEW_LINE>* x [in] signature private key<NEW_LINE>* s [in] private key for signing<NEW_LINE>* returns true on... | , h1, 32, -1); |
1,178,689 | public UpdateSiteResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateSiteResult updateSiteResult = new UpdateSiteResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina... | ().unmarshall(context)); |
1,173,882 | public void testJEEMetadataContextExecSvc1() throws Exception {<NEW_LINE>final BlockingQueue<Object> results = new LinkedBlockingQueue<Object>();<NEW_LINE>final Runnable javaCompLookup = new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>System.out.println("running task");<NEW_LINE>try ... | throw new Exception("Unexpected value for java:comp/env/entry1 from new thread: " + result); |
1,203,371 | final CreatePolicyVersionResult executeCreatePolicyVersion(CreatePolicyVersionRequest createPolicyVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPolicyVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,649,412 | public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {<NEW_LINE>if (viewType == MenuItem.TYPE_DEFAULT) {<NEW_LINE>HamburgerMenuItemBinding binding = DataBindingUtil.inflate(LayoutInflater.from(parent.getContext()), R.layout.hamburger_menu_item, parent, false);<NEW_LINE>return new H... | RuntimeException("there is no type that matches the type " + viewType + " + make sure your using types correctly"); |
1,018,572 | protected void layoutChildren(final double x, final double y, final double w, final double h) {<NEW_LINE>final ProgressIndicator control = getSkinnable();<NEW_LINE>boolean isIndeterminate = control.isIndeterminate();<NEW_LINE>// resize clip<NEW_LINE>clipRegion.resizeRelocate(0, 0, w, h);<NEW_LINE>track.resizeRelocate(x... | getIndeterminateBarLength() : barWidth, h); |
954,946 | final UpdateRealtimeLogConfigResult executeUpdateRealtimeLogConfig(UpdateRealtimeLogConfigRequest updateRealtimeLogConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateRealtimeLogConfigRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LIN... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,388,944 | public void killAllLoadsOf(@CheckForNull ValueNumber v) {<NEW_LINE>if (!REDUNDANT_LOAD_ELIMINATION) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FieldSummary fieldSummary = AnalysisContext.currentAnalysisContext().getFieldSummary();<NEW_LINE>HashSet<AvailableLoad> killMe = new HashSet<AvailableLoad>();<NEW_LINE>for (Availabl... | "Killing load of " + availableLoad + " in " + this); |
616,675 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@Name('s0') select sum(value) as thesum from SupportThreeArrayEvent group by grouping sets((intArray), (longArray), (doubleArray))";<NEW_LINE>env.compileDeploy<MASK><NEW_LINE>sendAssert(env, "E1", 1, new int[] { 1, 2 }, new long[] { 10, 20 }, new doubl... | (epl).addListener("s0"); |
1,250,233 | // Configure pass1<NEW_LINE>protected JobConf configPass1() throws Exception {<NEW_LINE>final JobConf conf = new JobConf(getConf(), JoinTablePegasus.class);<NEW_LINE>conf.set("number_tables", "" + number_tables);<NEW_LINE>conf.set("join_type", "" + join_type);<NEW_LINE>conf.setJobName("JoinTablePegasus");<NEW_LINE>conf... | FileOutputFormat.setOutputPath(conf, output_path); |
1,362,827 | private static void appendLong12(CharSink sink, long i) {<NEW_LINE>long c;<NEW_LINE>sink.put((char) ('0' + i / 100000000000L));<NEW_LINE>sink.put((char) ('0' + (c = i % 100000000000L) / 10000000000L));<NEW_LINE>sink.put((char) ('0' + (c %= 10000000000L) / 1000000000));<NEW_LINE>sink.put((char) ('0' + (c %= 1000000000) ... | c %= 10000) / 1000)); |
1,628,537 | public void onBindViewHolder(@NonNull MyViewHolder holder, int position) {<NEW_LINE>if (docList.size() > 0) {<NEW_LINE>FileDoc docItem = docList.get(position);<NEW_LINE>try {<NEW_LINE>Typeface typeface;<NEW_LINE>if (docItem.isContentScheme()) {<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {<NEW_LINE>Fil... | ), "r").getFileDescriptor(); |
1,344,453 | protected void updatePlayer(final Server server, final CommandSource sender, final User target, final String[] args) throws NotEnoughArgumentsException {<NEW_LINE>final String nick = args[0];<NEW_LINE>if ("off".equalsIgnoreCase(nick)) {<NEW_LINE>setNickname(server, sender, target, null);<NEW_LINE>target.sendMessage(tl(... | server, sender, target, nick); |
1,060,796 | private TimerTask scheduleTimer(float period) {<NEW_LINE>TimerTask task = new TimerTask() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>for (Entry<String, Cache<Id, Object>> entry : caches().entrySet()) {<NEW_LINE>this.tick(entry.getKey(<MASK><NEW_LINE>}<NEW_LINE>} catch (Throwable... | ), entry.getValue()); |
1,338,273 | protected boolean addNamedQueriesToPersistenceUnits(boolean weaverRegistered) throws Exception {<NEW_LINE>// Do this last in case any of the query config classes happens to cause an entity class to be loaded - they will<NEW_LINE>// still be transformed by the previous registered transformers<NEW_LINE>for (PersistenceUn... | weaverRegistered = handleClassTransformerRegistrationProblem(transformer, e); |
1,528,590 | public void performPluginValidationsFor(final PackageDefinition packageDefinition) {<NEW_LINE>String pluginId = packageDefinition.getRepository().getPluginConfiguration().getId();<NEW_LINE>ValidationResult validationResult = packageRepositoryExtension.isPackageConfigurationValid(pluginId, buildPackageConfigurations(pac... | .getConfigurationKey().getName(); |
344,229 | public static DescribeRuleListResponse unmarshall(DescribeRuleListResponse describeRuleListResponse, UnmarshallerContext context) {<NEW_LINE>describeRuleListResponse.setRequestId(context.stringValue("DescribeRuleListResponse.RequestId"));<NEW_LINE>describeRuleListResponse.setSuccess(context.booleanValue("DescribeRuleLi... | ("DescribeRuleListResponse.Rules[" + i + "].Modified")); |
679,740 | IQueryBuilder<I_MD_Candidate_ATP_QueryResult> createDBQueryForStockQueryBuilder(@NonNull final AvailableToPromiseQuery query) {<NEW_LINE>final IQueryBL queryBL = Services.get(IQueryBL.class);<NEW_LINE>final IQueryBuilder<I_MD_Candidate_ATP_QueryResult> //<NEW_LINE>//<NEW_LINE>queryBuilder = queryBL.createQueryBuilder(I... | BPartnerClassifier bpartner = query.getBpartner(); |
496,926 | protected void iterate() throws LibrecException {<NEW_LINE>for (MatrixEntry matrixEntry : trainMatrix) {<NEW_LINE>// user userIdx<NEW_LINE>int userId = matrixEntry.row();<NEW_LINE>// item itemIdx<NEW_LINE>int itemId = matrixEntry.column();<NEW_LINE>// real rating on item itemIdx rated by user userIdx<NEW_LINE>double re... | = err * userFactorValue - regularization * itemFactorValue; |
470,316 | public ListSetsResult retrieveSets(int offset, int length) {<NEW_LINE>logger.fine("calling retrieveSets()");<NEW_LINE>List<OAISet> dataverseOAISets = setService.findAllNamedSets();<NEW_LINE>List<Set> XOAISets = new ArrayList<Set>();<NEW_LINE>if (dataverseOAISets != null) {<NEW_LINE>for (int i = 0; i < dataverseOAISets.... | getElements().add(element); |
510,881 | public <ImageT> Digraph<ImageT> createImageUnderMapping(Map<T, ImageT> map) {<NEW_LINE>Digraph<ImageT> imageGraph = new Digraph<>();<NEW_LINE>for (Node<T> fromNode : nodes.values()) {<NEW_LINE>T fromLabel = fromNode.getLabel();<NEW_LINE>ImageT fromImage = map.get(fromLabel);<NEW_LINE>if (fromImage == null) {<NEW_LINE><... | throw new IllegalArgumentException("Incomplete function: undefined for " + fromLabel); |
18,239 | private Object readResponse(TProtocol in) throws Exception {<NEW_LINE>TProtocolReader reader = new TProtocolReader(in);<NEW_LINE>reader.readStructBegin();<NEW_LINE>Object results = null;<NEW_LINE>Exception exception = null;<NEW_LINE>while (reader.nextField()) {<NEW_LINE>if (reader.getFieldId() == 0) {<NEW_LINE>results ... | Exception) reader.readField(exceptionCodec); |
888,443 | public static void response(PreparedStatement pStmt, ShardingService service) {<NEW_LINE>byte packetId = 0;<NEW_LINE>// writeDirectly preparedOk packet<NEW_LINE>PreparedOkPacket preparedOk = new PreparedOkPacket();<NEW_LINE>preparedOk.setPacketId(++packetId);<NEW_LINE>preparedOk.setStatementId(pStmt.getId());<NEW_LINE>... | write(buffer, service, true); |
618,370 | private void mapReferences(@NonNull final EDICctopInvoicVType invoice, @NonNull final HEADERXrech headerXrech, @NonNull final String dateFormat, @NonNull final InvoicSettings settings) {<NEW_LINE>final HREFE1 buyerOrderRef = INVOIC_objectFactory.createHREFE1();<NEW_LINE>buyerOrderRef.<MASK><NEW_LINE>buyerOrderRef.setRE... | setDOCUMENTID(headerXrech.getDOCUMENTID()); |
1,267,970 | public static void main(String[] args) {<NEW_LINE>File file = new File(args[0]);<NEW_LINE>try {<NEW_LINE>JarFile jar = new JarFile(file);<NEW_LINE>URLClassLoader loader = new URLClassLoader(new URL[] { file.toURI().toURL() });<NEW_LINE>Enumeration<JarEntry<MASK><NEW_LINE>while (entries.hasMoreElements()) {<NEW_LINE>Jar... | > entries = jar.entries(); |
932,160 | public void addRecipe(String recipePath, String blueprintCategory, IIngredientWithAmount[] inputs, IItemStack output) {<NEW_LINE>final ResourceLocation resourceLocation = new ResourceLocation("crafttweaker", recipePath);<NEW_LINE>final IngredientWithSize[] ingredients = CrTIngredientUtil.getIngredientsWithSize(inputs);... | .format(format, blueprintCategory)); |
940,430 | public String minWindow(String s, String t) {<NEW_LINE>int m = s.length(), n = t.length();<NEW_LINE>if (n > m) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>Map<Character, Integer> need = new HashMap<>();<NEW_LINE>Map<Character, Integer> window = new HashMap<>();<NEW_LINE>int needCount = 0, windowCount = 0;<NEW_LINE>for (c... | substring(start, start + minLen); |
1,310,108 | protected FileChunk nextChunkRequest(StoreFileMetadata md) throws IOException {<NEW_LINE>assert Transports.assertNotTransportThread("read file chunk");<NEW_LINE>cancellableThreads.checkForCancel();<NEW_LINE>if (currentInput == null) {<NEW_LINE>// no input => reading directly from the metadata<NEW_LINE>assert md.hashEqu... | assert liveBufferCount.decrementAndGet() >= 0; |
937,347 | ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String modelFlag, String workId) throws Exception {<NEW_LINE>logger.debug(effectivePerson, "modelFlag:{}, workId:{}.", modelFlag, workId);<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult... | ExceptionEntityNotExist(workId, Work.class); |
1,628,626 | public Response handle(CustomMessage message, DrillBuf dBody) throws RpcException {<NEW_LINE>final ParsingHandler<?, ?> handler;<NEW_LINE>try (@SuppressWarnings("unused") Closeable lock = read.open()) {<NEW_LINE>handler = handlers.get(message.getType());<NEW_LINE>}<NEW_LINE>if (handler == null) {<NEW_LINE>throw new Use... | getType()).build(); |
618,190 | public void testSetDisableMessageID_TCP_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContextQCFTCP = qcfTCP.createContext();<NEW_LINE>emptyQueue(qcfTCP, queue1);<NEW_LINE>JMSConsumer <MASK><NEW_LINE>JMSProducer jmsProducer = jmsContextQCFTCP.createProducer()... | jmsConsumer = jmsContextQCFTCP.createConsumer(queue1); |
1,380,383 | public static void processParent(Class claz, Set configProperties) {<NEW_LINE>if (claz == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// process the methods<NEW_LINE>Method[<MASK><NEW_LINE>for (Method m : methods) {<NEW_LINE>ConfigProperty property = m.getAnnotation(ConfigProperty.class);<NEW_LINE>if (property != null... | ] methods = claz.getDeclaredMethods(); |
1,584,664 | public Ic3Data.Application buildPartial() {<NEW_LINE>Ic3Data.Application result = new Ic3Data.Application(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>to_bitField0_ |= 0x00000001;<NEW_LINE>}<NEW_LINE>result.name... | bitField0_ = (bitField0_ & ~0x00000010); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.