idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
232,609 | public void writeTo(StreamOutput out) throws IOException {<NEW_LINE>out.writeVInt(executionPhaseId);<NEW_LINE>out.writeVInt(executionNodes.size());<NEW_LINE>for (String executionNode : executionNodes) {<NEW_LINE>out.writeString(executionNode);<NEW_LINE>}<NEW_LINE>out.writeVInt(bases.size());<NEW_LINE>for (Map.Entry<Str... | Reference.toStream(ref, out); |
1,648,826 | public void refresh() {<NEW_LINE>if (credentials == null || profileFile.lastModified() > profileFileLastModified) {<NEW_LINE>profileFileLastModified = profileFile.lastModified();<NEW_LINE>Map<String, String> profileProperties = null;<NEW_LINE>try {<NEW_LINE>profileProperties = profileLoader.loadProfile(profileFile);<NE... | .get(AuthUtils.OSS_SESSION_TOKEN)); |
457,681 | private ApiResponse<Void> testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'requiredStri... | = new String[] { "bearer_test" }; |
566,371 | private Status determineFaultAbortStatus(FaultAbort faultAbort, Metadata headers) {<NEW_LINE>Status abortStatus = null;<NEW_LINE>FaultConfig.FractionalPercent fractionalPercent = faultAbort.percent();<NEW_LINE>if (faultAbort.headerAbort()) {<NEW_LINE>try {<NEW_LINE>String grpcCodeStr = headers.get(HEADER_ABORT_GRPC_STA... | (headers.get(HEADER_ABORT_PERCENTAGE_KEY)); |
95,880 | private GroupMappingAndRoleMap tryFetchGroupMappingMapsFromCoordinator(String prefix) throws Exception {<NEW_LINE>Request req = druidLeaderClient.makeRequest(HttpMethod.GET, StringUtils.format("/druid-ext/basic-security/authorization/db/%s/cachedSerializedGroupMappingMap", prefix));<NEW_LINE>BytesFullResponseHolder res... | ] groupRoleMapBytes = responseHolder.getContent(); |
726,367 | protected List findByCompanyId(String companyId) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>session = openSession();<NEW_LINE>StringBuffer query = new StringBuffer();<NEW_LINE>query.append("FROM AdminConfig IN CLASS com.liferay.portlet.admin.ejb.AdminConfigHBM WHERE ");<NEW_LINE>q... | .list().iterator(); |
1,176,637 | final PutClusterCapacityProvidersResult executePutClusterCapacityProviders(PutClusterCapacityProvidersRequest putClusterCapacityProvidersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putClusterCapacityProvidersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
43,503 | BLangVariableReference addTableConstructor(BLangQueryExpr queryExpr, BLangBlockStmt queryBlock) {<NEW_LINE>// desugar `table<Customer> key(id, name) tab = table key(id, name);`<NEW_LINE>Location pos = queryExpr.pos;<NEW_LINE>final BType type = queryExpr.getBType();<NEW_LINE>String name = getNewVarName();<NEW_LINE>BType... | ).orElse(symTable.tableType); |
816,267 | private boolean doNetworkJob(long jobId, JobAction action, long createdAt, SgJobInfo jobInfo) {<NEW_LINE>// upload to hexagon<NEW_LINE>if (shouldSendToHexagon) {<NEW_LINE>if (!AndroidUtils.isNetworkConnected(context)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>HexagonTools hexagonTools = SgApp.getServicesComponent(co... | getTraktJobForAction(action, jobInfo, createdAt); |
260,435 | final UpdateThingRuntimeConfigurationResult executeUpdateThingRuntimeConfiguration(UpdateThingRuntimeConfigurationRequest updateThingRuntimeConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateThingRuntimeConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | (super.beforeMarshalling(updateThingRuntimeConfigurationRequest)); |
925,639 | private void createQtyReportEvent(final IContextAware context, final I_PMM_Product pmmProduct, final SyncProductSupply syncProductSupply) {<NEW_LINE>logger.debug("Creating QtyReport event from {} ({})", syncProductSupply, pmmProduct);<NEW_LINE>final List<String> errors = new ArrayList<>();<NEW_LINE>final I_PMM_QtyRepor... | String bpartner_uuid = syncProductSupply.getBpartner_uuid(); |
12,800 | protected Request encodeRequest(Version version, Route route, RPCServiceAddress address, Message msg, long timeRemaining, byte[] payload, int traceLevel) {<NEW_LINE>Request req = new Request(METHOD_NAME);<NEW_LINE>Values v = req.parameters();<NEW_LINE>v.add(new Int8Value(CompressionType.NONE.getCode()));<NEW_LINE>v.add... | SESSION_F, address.getSessionName()); |
1,435,925 | public Object postProcessAfterInitialization(Object bean, String beanName) {<NEW_LINE>if (bean instanceof DataSource && !(bean instanceof ProxyDataSource)) {<NEW_LINE>// Instead of directly returning a less specific datasource bean<NEW_LINE>// (e.g.: HikariDataSource -> DataSource), return a proxy object.<NEW_LINE>// S... | ProxyDataSourceInterceptor((DataSource) bean)); |
926,069 | final GetCostAndUsageResult executeGetCostAndUsage(GetCostAndUsageRequest getCostAndUsageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCostAndUsageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Cost Explorer"); |
266,504 | public void buildNameIndex() {<NEW_LINE>nameIndex = new HashMap<EClass, Map<String, IdEObject>>();<NEW_LINE>for (EClassifier classifier : objects.values().iterator().next().eClass().getEPackage().getEClassifiers()) {<NEW_LINE>if (classifier instanceof EClass) {<NEW_LINE>Map<String, IdEObject> map = new TreeMap<String, ... | ((EClass) classifier, map); |
964,116 | public TabSheet.Tab addLazyTab(String name, Element descriptor, ComponentLoader loader) {<NEW_LINE>// todo replace<NEW_LINE>ComponentsFactory cf = AppBeans.get(ComponentsFactory.NAME);<NEW_LINE>CssLayout tabContent = cf.createComponent(CssLayout.NAME);<NEW_LINE>tabContent.setStyleName("c-tabsheet-lazytab");<NEW_LINE>ta... | this.component.addTab(tabComponent); |
1,234,601 | private IBaseConformance createCapabilityStatement(RequestDetails theRequest, Object[] theMethodParams) {<NEW_LINE>IBaseConformance conf = (IBaseConformance) invokeServerMethod(theRequest, theMethodParams);<NEW_LINE>// Interceptor hook: SERVER_CAPABILITY_STATEMENT_GENERATED<NEW_LINE>if (theRequest.getInterceptorBroadca... | currentTimeMillis() + getCacheMillis()); |
1,136,042 | private void processSegment(SegmentInter segment) {<NEW_LINE>final SegmentInfo seg = segment.getInfo();<NEW_LINE>final Point <MASK><NEW_LINE>final Point rightEnd = seg.getEnd(false);<NEW_LINE>// Relevant system(s)<NEW_LINE>final List<SystemInfo> systems = sheet.getSystemManager().getSystemsOf(leftEnd, null);<NEW_LINE>s... | leftEnd = seg.getEnd(true); |
1,016,217 | public static List<String> directWrite(String path, List<String> classNames) throws Exception {<NEW_LINE>try {<NEW_LINE>Document document = DocumentHelper.createDocument();<NEW_LINE>Element persistence = document.addElement("persistence", "http://java.sun.com/xml/ns/persistence");<NEW_LINE>persistence.addAttribute(QNam... | jpaObject_element = unit.addElement("class"); |
1,472,817 | final DeleteForecastExportJobResult executeDeleteForecastExportJob(DeleteForecastExportJobRequest deleteForecastExportJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteForecastExportJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | (super.beforeMarshalling(deleteForecastExportJobRequest)); |
365,983 | void logDatabaseParameters(Database db) {<NEW_LINE>String url = "";<NEW_LINE>try {<NEW_LINE>Connection connection = db.getConnection();<NEW_LINE>if (connection != null)<NEW_LINE>url = connection.getMetaData().getURL();<NEW_LINE>} catch (SQLException ignore) {<NEW_LINE>}<NEW_LINE>log.info("License parameters");<NEW_LINE... | " dialect", db.getDialect()); |
1,481,067 | public void storeCategory(String categoryName, List<TaskEntry> tasks) {<NEW_LINE>// NOI18N<NEW_LINE>assert !SwingUtilities.isEventDispatchThread() : "should not access the category storage in awt";<NEW_LINE>// NOI18N<NEW_LINE>LOG.log(Level.FINE, "start storing category {0}", categoryName);<NEW_LINE>FileLock lock = null... | lock = FileLocks.getLock(categoryFile); |
134,858 | public static void addLinkButtons(ManualEntry entry, ManualInstance manual, ManualScreen gui, List<List<Token>> text, int x, int y, List<Button> pageButtons) {<NEW_LINE>final Map<Link, List<GuiButtonManualLink>> partButtons = new IdentityHashMap<>();<NEW_LINE>MutableInt lineId = new MutableInt(0);<NEW_LINE>for (List<To... | * 1.5), outputLink, linkText); |
673,622 | protected TupleQueryResult executeSPARQLForTupleResult(String baseURI, String query, Dataset dataset, boolean includeInferred, BindingSet bindings, int maxQueryTime) throws QueryEvaluationException {<NEW_LINE>Vector<String> names = new Vector<String>();<NEW_LINE>try {<NEW_LINE>PreparedStatement stmt = executeSPARQL(bas... | col = rsmd.getColumnName(i); |
988,163 | static void swapBuffers(D3DSurfaceData sd, final int x1, final int y1, final int x2, final int y2) {<NEW_LINE><MASK><NEW_LINE>D3DRenderQueue rq = D3DRenderQueue.getInstance();<NEW_LINE>// swapBuffers can be called from the toolkit thread by swing, we<NEW_LINE>// should detect this and prevent the deadlocks<NEW_LINE>if ... | long pData = sd.getNativeOps(); |
607,235 | private boolean added(Provider<E> provider, E element, Collection<E> providerElements) {<NEW_LINE>final K uid = element.getUID();<NEW_LINE>if (identifierToElement.containsKey(uid)) {<NEW_LINE>logger.warn("Cannot add \"{}\" with key \"{}\". It exists already from provider \"{}\"! Failed to add a second with the same UID... | ex.getMessage(), ex); |
1,438,153 | public Map<Integer, ParameterContext> params() {<NEW_LINE>final Map<Integer, ParameterContext> params = new HashMap<>();<NEW_LINE>params.put(1, new ParameterContext(ParameterMethod.setLong, new Object[] { 1, this.jobId }));<NEW_LINE>params.put(2, new ParameterContext(ParameterMethod.setString, new Object[] { 2, this.ta... | 8, this.message })); |
982,169 | public com.amazonaws.services.lightsail.model.InvalidInputException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.lightsail.model.InvalidInputException invalidInputException = new com.amazonaws.services.lightsail.model.InvalidInputException(null);<NEW_LINE>int... | class).unmarshall(context)); |
558,948 | public static AbiInfo collectAbiInfo(@NonNull Context context) {<NEW_LINE>AbiInfo abiInfo = new AbiInfo();<NEW_LINE>StructUtsname uts = Os.uname();<NEW_LINE>String sysAbi = uts.machine;<NEW_LINE>abiInfo.sysArchName = sysAbi;<NEW_LINE>abiInfo.sysArch = AbiUtils.archStringToArchInt(sysAbi);<NEW_LINE>HashSet<String> reque... | abi = AbiUtils.archStringToLibDirName(activeAbi); |
357,471 | public Observable<ServiceResponse<List<LabelTextObject>>> examplesMethodWithServiceResponseAsync(UUID appId, String versionId, String modelId, Integer skip, Integer take) {<NEW_LINE>if (this.client.endpoint() == null) {<NEW_LINE>throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot... | this.client.endpoint()); |
1,072,431 | public boolean execute(long timeout) {<NEW_LINE><MASK><NEW_LINE>JobManager jobManager = ApplicationDependencies.getJobManager();<NEW_LINE>QueueFindingJobListener queueListener = new QueueFindingJobListener();<NEW_LINE>try (IncomingMessageProcessor.Processor processor = ApplicationDependencies.getIncomingMessageProcesso... | long startTime = System.currentTimeMillis(); |
403,377 | public static ClientResponse checkBiz(String bizName, String bizVersion) {<NEW_LINE>AssertUtils.assertNotNull(bizFactoryService, "bizFactoryService must not be null!");<NEW_LINE>AssertUtils.assertNotNull(bizManagerService, "bizFactoryService must not be null!");<NEW_LINE>ClientResponse response = new ClientResponse();<... | bizInfoSet = new HashSet<>(); |
348,420 | public boolean visit(SwitchStatement node) {<NEW_LINE>handleBracedCode(node, node.getExpression(), this.options.<MASK><NEW_LINE>List<Statement> statements = node.statements();<NEW_LINE>if (this.options.indent_switchstatements_compare_to_cases) {<NEW_LINE>int nonBreakStatementEnd = -1;<NEW_LINE>for (Statement statement ... | brace_position_for_switch, this.options.indent_switchstatements_compare_to_switch); |
1,488,351 | private Mono<Response<Void>> disableTestEndpointWithResponseAsync(String resourceGroupName, String serviceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}... | this.client.mergeContext(context); |
1,033,031 | public void copy(final int index, final ILeafData leaf) {<NEW_LINE>nvisited++;<NEW_LINE>versionDeleted = leaf.hasDeleteMarkers() && leaf.getDeleteMarker(index);<NEW_LINE>versionTimestamp = leaf.hasVersionTimestamps() ? leaf.getVersionTimestamp(index) : 0L;<NEW_LINE>if (needKeys) {<NEW_LINE>kbuf.reset();<NEW_LINE>leaf.g... | ) leaf).readRawRecord(addr); |
559,475 | private void removeEmptyCases(JSwitchStatement x) {<NEW_LINE>JBlock body = x.getBody();<NEW_LINE>List<JStatement> noOpCaseStatements <MASK><NEW_LINE>List<JStatement> potentialNoOpCaseStatements = new ArrayList<JStatement>();<NEW_LINE>for (JStatement statement : body.getStatements()) {<NEW_LINE>if (statement instanceof ... | = new ArrayList<JStatement>(); |
740,113 | private void processPropertySet(DatabaseSession databaseSession, Set<String> propertyKeysMatched, Long ifcPropertySetDefinition) throws BimserverDatabaseException {<NEW_LINE>EClass eClassForOid = databaseSession.getEClassForOid(ifcPropertySetDefinition);<NEW_LINE>if (getPackageMetaData().getEClass("IfcPropertySet").isS... | >) ifcPropertySet.get("HasProperties"); |
1,653,989 | public Request<ListThingGroupsRequest> marshall(ListThingGroupsRequest listThingGroupsRequest) {<NEW_LINE>if (listThingGroupsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListThingGroupsRequest)");<NEW_LINE>}<NEW_LINE>Request<ListThingGroupsRequest> request = new Defau... | request.setHttpMethod(HttpMethodName.GET); |
1,559,841 | public ApiResponse<String> downloadGetDownloadFileTokenShareWithHttpInfo(String shareid, String id, Boolean stream) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'shareid' is set<NEW_LINE>if (shareid == null) {<NEW_LINE>throw new ApiException(400, "Missing the ... | = new ArrayList<Pair>(); |
479,210 | private void logDone(Throwable throwable) {<NEW_LINE>long millis = System.currentTimeMillis() - time.get();<NEW_LINE>int status = RequestContext.getHttpResponse().getStatus();<NEW_LINE>Route route = RequestContext.getRoute();<NEW_LINE>String controller = route == null ? "" : route.getControllerClassName();<NEW_LINE>Str... | getRemoteIP(), "status", status); |
1,144,557 | static <T> DelayedTask<Single<T>> createSingle(Supplier<? extends CompletionStage<T>> supplier) {<NEW_LINE>return new DelayedTask<>() {<NEW_LINE><NEW_LINE>// future we returned as a result of invoke command<NEW_LINE>private final LazyValue<CompletableFuture<T>> resultFuture = LazyValue.create(CompletableFuture::new);<N... | resultFuture.get(), true); |
1,622,022 | public void addRecipes(Consumer<FinishedRecipe> consumer) {<NEW_LINE>String basePath = "thermal_evaporation/";<NEW_LINE>// Block<NEW_LINE>ExtendedShapedRecipeBuilder.shapedRecipe(MekanismBlocks.THERMAL_EVAPORATION_BLOCK, 4).pattern(RecipePattern.createPattern(TripleLine.of(Pattern.EMPTY, Pattern.STEEL, Pattern.EMPTY), ... | .rl(basePath + "controller")); |
888,213 | public boolean checkBroadcast(android.content.Intent intent, int receiverUid, int callerUid) throws android.os.RemoteException {<NEW_LINE>android.os.Parcel _data = android.os.Parcel.obtain();<NEW_LINE>android.os.Parcel _reply = android.os.Parcel.obtain();<NEW_LINE>boolean _result;<NEW_LINE>try {<NEW_LINE>_data.writeInt... | 0 != _reply.readInt()); |
1,123,135 | private void createExternalTaskDemoData(ProcessEngine engine) {<NEW_LINE><MASK><NEW_LINE>ExternalTaskService externalTaskService = engine.getExternalTaskService();<NEW_LINE>String workerId = "AWorker";<NEW_LINE>String topicName = "ATopic";<NEW_LINE>long lockDuration = 5 * 60L * 1000L;<NEW_LINE>String errorDetails = "ja... | RuntimeService runtimeService = engine.getRuntimeService(); |
100,710 | static boolean validate(final MigrationConfig config, final String migrationsDir, final Client ksqlClient) {<NEW_LINE>String version = getLatestMigratedVersion(config, ksqlClient);<NEW_LINE>String nextVersion = null;<NEW_LINE>while (!version.equals(MetadataUtil.NONE_VERSION)) {<NEW_LINE>final MigrationVersionInfo versi... | validateVersionIsMigrated(version, versionInfo, nextVersion); |
679,428 | private void checkForDuplicateQuestions(final Map<Challenge, String> responseMap) throws PwmDataValidationException {<NEW_LINE>// check for duplicate questions. need to check the actual req params because the following dupes wont populate duplicates<NEW_LINE>final Set<String> userQuestionTexts = new HashSet<>();<NEW_L... | new String[] { text }); |
1,001,407 | final GetIdentityPoolConfigurationResult executeGetIdentityPoolConfiguration(GetIdentityPoolConfigurationRequest getIdentityPoolConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getIdentityPoolConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | false), new GetIdentityPoolConfigurationResultJsonUnmarshaller()); |
1,701,113 | public void runSupport() {<NEW_LINE>Boolean b = (Boolean) check_instance.getProperty(UpdateCheckInstance.PT_CLOSE_OR_RESTART_ALREADY_IN_PROGRESS);<NEW_LINE>if (b != null && b) {<NEW_LINE>finishUpdate(false, true);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// gotta recheck coz a maybe might have got to yes<NEW_LINE>checkRest... | removeListener(SWT.Selection, lCancel); |
230,971 | public void startDev() {<NEW_LINE>if (!getSourceDir().isDirectory()) {<NEW_LINE>throw new GradleException("The `src/main/java` directory is required, please create it.");<NEW_LINE>}<NEW_LINE>if (!extension().outputDirectory().isDirectory()) {<NEW_LINE>throw new GradleException("The project has no output yet, " + "this ... | outputFile = System.getProperty(IO_QUARKUS_DEVMODE_ARGS); |
874,864 | final DescribeAvailabilityMonitorTestResult executeDescribeAvailabilityMonitorTest(DescribeAvailabilityMonitorTestRequest describeAvailabilityMonitorTestRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAvailabilityMonitorTestRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAvailabilityMonitorTest"); |
76,186 | public void schemaGet(String model, final Response.Listener<Object> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/schema".replaceAll("\\{format\\}", "json");<NEW_LINE>// query params<NEW_LINE>List<Pair>... | HashMap<String, String>(); |
824,276 | public static void main(String[] args) throws Exception {<NEW_LINE>TypeId<?> fibonacci = TypeId.get("Lcom/google/dexmaker/examples/Fibonacci;");<NEW_LINE>String fileName = "Fibonacci.generated";<NEW_LINE>DexMaker dexMaker = new DexMaker();<NEW_LINE>dexMaker.declare(fibonacci, fileName, Modifier.PUBLIC, TypeId.OBJECT);<... | code.loadConstant(constant1, 1); |
563,852 | protected void renderBg(PoseStack matrices, float partialTicks, int mouseX, int mouseY) {<NEW_LINE>RenderUtils.setup(BACKGROUND_IMAGE);<NEW_LINE>this.border.draw(matrices);<NEW_LINE>BACKGROUND.drawScaled(matrices, this.leftPos + 4, this.topPos + 4, this.imageWidth - <MASK><NEW_LINE>float y = 5 + this.topPos;<NEW_LINE>f... | 8, this.imageHeight - 8); |
215,902 | private void writeBlock(BlockBuilder blockBuilder, Type columnType, int columnIndex) {<NEW_LINE>Class<?> javaType = columnType.getJavaType();<NEW_LINE>DataSchema.ColumnDataType pinotColumnType = currentDataTable.getDataTable().getDataSchema().getColumnDataType(columnIndex);<NEW_LINE>if (columnType instanceof ArrayType)... | writeTimestampBlock(blockBuilder, columnType, columnIndex); |
1,654,744 | public void open(int hour, String ip) throws IOException {<NEW_LINE>String path = m_bulider.getPath(null, new Date(hour * TimeHelper.ONE_HOUR), ip, FileType.TOKEN);<NEW_LINE>FileSystem fs = m_manager.getFileSystem();<NEW_LINE>m_file = fs.open(new Path(path));<NEW_LINE>m_data = Unpooled.buffer(BLOCK_SIZE);<NEW_LINE>m_bl... | m_map.put(MAGIC_CODE, 0); |
933,252 | public static QueryTaskDetailListResponse unmarshall(QueryTaskDetailListResponse queryTaskDetailListResponse, UnmarshallerContext context) {<NEW_LINE>queryTaskDetailListResponse.setRequestId(context.stringValue("QueryTaskDetailListResponse.RequestId"));<NEW_LINE>queryTaskDetailListResponse.setTotalItemNum(context.integ... | ("QueryTaskDetailListResponse.Data[" + i + "].TaskNo")); |
1,449,407 | public boolean maybeCreateTable(String keyspaceName, String tableName) {<NEW_LINE>Keyspace ks = dataStore.schema().keyspace(keyspaceName);<NEW_LINE>if (ks == null) {<NEW_LINE>String message = String.format("Unknown namespace %s, you must create it first.", keyspaceName);<NEW_LINE>throw new ErrorCodeRuntimeException(Err... | .DOUBLE_VALUE_COLUMN_NAME, Type.Double)); |
176,583 | public void write(org.apache.thrift.protocol.TProtocol prot, TSummarizerConfiguration struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = <MASK><NEW_LINE>if (struct.isSetClassname... | new java.util.BitSet(); |
369,859 | public static DescribeExposedStatisticsDetailResponse unmarshall(DescribeExposedStatisticsDetailResponse describeExposedStatisticsDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeExposedStatisticsDetailResponse.setRequestId(_ctx.stringValue("DescribeExposedStatisticsDetailResponse.RequestId"));<NEW_LINE>Pag... | (_ctx.integerValue("DescribeExposedStatisticsDetailResponse.PageInfo.Count")); |
261,348 | // attempt to use same transaction on 2 threads at once<NEW_LINE>@AllowedFFDC("java.lang.IllegalStateException")<NEW_LINE>@Test<NEW_LINE>public void testTwoThreadsConcurrentlyOperateInJTATransactionAndRollBack() throws Exception {<NEW_LINE>tx.begin();<NEW_LINE>try (Connection con = defaultDataSource.getConnection()) {<... | createStatement().executeUpdate("INSERT INTO IACOUNTIES VALUES ('Allamakee', 13940)"); |
382,831 | public JsonObject parse(String serialized) throws MalformedValueException {<NEW_LINE>Map<String, Object> result = new HashMap<>();<NEW_LINE>String[] values = serialized<MASK><NEW_LINE>// Key value pairs -> odd length not allowed<NEW_LINE>if (values.length % 2 != 0)<NEW_LINE>throw new MalformedValueException("Key value ... | .split(separator, -1); |
880,862 | public static void main(String[] args) {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>System.out.print("Enter size of Stack: ");<NEW_LINE>int n = sc.nextInt();<NEW_LINE>stack st = new stack(n);<NEW_LINE>boolean flag = true;<NEW_LINE>int val;<NEW_LINE>int pos = 0;<NEW_LINE>while (flag) {<NEW_LINE>System.out.pr... | System.out.println("4. Update value at position"); |
467,451 | private <T extends JavaCodeUnit> Optional<T> tryFindMatchingCodeUnit(Set<T> codeUnits, String name, List<String> parameters) {<NEW_LINE>Set<T> matching = <MASK><NEW_LINE>if (matching.isEmpty()) {<NEW_LINE>return Optional.empty();<NEW_LINE>} else if (matching.size() == 1) {<NEW_LINE>return Optional.of(getOnlyElement(mat... | findCodeUnitsWithMatchingNameAndParameters(codeUnits, name, parameters); |
1,154,956 | protected Launcher createUninstaller(ApplicationDescriptor descriptor, boolean uninstall, Progress progress) throws IOException {<NEW_LINE>LogManager.log("creating uninstaller...");<NEW_LINE>final File engine = new File(descriptor.getInstallPath(), "uninstall.jar");<NEW_LINE>try {<NEW_LINE>EngineUtils.cacheEngine(engin... | getEngineMainClass().getName()); |
341,439 | private MLocator findOldestLocatorWithSameWarehouse(final int M_Locator_ID) {<NEW_LINE>String trxName = null;<NEW_LINE>MLocator retValue = null;<NEW_LINE>String sql = "SELECT * FROM M_Locator l " + "WHERE IsActive = 'Y' AND IsDefault='Y'" + " AND EXISTS (SELECT * FROM M_Locator lx " + "WHERE l.M_Warehouse_ID=lx.M_Ware... | throw new DBException(e, sql); |
702,776 | public void visitMethodInsn(int opcode, String clazz, String method, String desc, boolean iface) {<NEW_LINE>int origOpcode = opcode;<NEW_LINE>Type[] <MASK><NEW_LINE>for (Type t : args) {<NEW_LINE>for (int i = 0; i < t.getSize(); i++) {<NEW_LINE>simulatedStack.poll();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (opcode != Opcodes... | args = Type.getArgumentTypes(desc); |
1,607,926 | public void visitSymbol(ESymbol userSymbolNode, SemanticScope semanticScope) {<NEW_LINE>boolean read = semanticScope.getCondition(userSymbolNode, Read.class);<NEW_LINE>boolean write = semanticScope.getCondition(userSymbolNode, Write.class);<NEW_LINE>String symbol = userSymbolNode.getSymbol();<NEW_LINE>Class<?> staticTy... | > valueType = variable.getType(); |
1,847,371 | private String parseDatasetField(String[] values) {<NEW_LINE>// First see if it exists<NEW_LINE>DatasetFieldType dsf = datasetFieldService.findByName(values[1]);<NEW_LINE>if (dsf == null) {<NEW_LINE>// if not create new<NEW_LINE>dsf = new DatasetFieldType();<NEW_LINE>}<NEW_LINE>// add(update) values<NEW_LINE>dsf.setNam... | parseInt(values[6])); |
1,682,775 | protected Result check() throws Exception {<NEW_LINE>if (!STORAGE_CHECK_ENABLED) {<NEW_LINE>return Result.healthy("Storage check disabled");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>DataStore dataStore = dataStoreFactory.createInternal();<NEW_LINE>Instant writeTimestamp = Instant.now();<NEW_LINE>// insert record<NEW_LINE>dat... | ConsistencyLevel.LOCAL_QUORUM).get(); |
1,194,251 | private double computeRepulsiveForces(double[] rep_i, int off, double[] sol_i, QuadTree node) {<NEW_LINE>final double[] center = node.center;<NEW_LINE>double dist = sqDist(sol_i, center);<NEW_LINE>// Barnes-Hut approximation:<NEW_LINE>if (node.weight == 1 || node.squareSize / dist < sqtheta) {<NEW_LINE>double u <MASK><... | = 1. / (1. + dist); |
970,635 | private void resize() {<NEW_LINE>Border border = getBorder();<NEW_LINE>int aw, ah;<NEW_LINE>if (border != null) {<NEW_LINE>Insets insets = border.getBorderInsets(this);<NEW_LINE>aw = insets.left + insets.right;<NEW_LINE>ah <MASK><NEW_LINE>basex = insets.left;<NEW_LINE>basey = insets.top;<NEW_LINE>} else {<NEW_LINE>aw =... | = insets.top + insets.bottom; |
1,125,627 | protected static float A_safe(int x, int y, GrayF32 flow) {<NEW_LINE>float u0 = safe(x - 1, y, flow);<NEW_LINE>float u1 = safe(x + 1, y, flow);<NEW_LINE>float u2 = safe(x, y - 1, flow);<NEW_LINE>float u3 = safe(x, y + 1, flow);<NEW_LINE>float u4 = safe(x - 1, y - 1, flow);<NEW_LINE>float u5 = safe(x + 1, y - 1, flow);<... | 1, y + 1, flow); |
1,441,845 | protected void calculatePath(RouterOperation routerOperation, Locale locale, OpenAPI openAPI) {<NEW_LINE>String operationPath = routerOperation.getPath();<NEW_LINE>io.swagger.v3.oas.annotations.Operation apiOperation = routerOperation.getOperation();<NEW_LINE>String[] methodConsumes = routerOperation.getConsumes();<NEW... | methodConsumes, methodProduces, headers, locale); |
659,052 | void reloadRows() {<NEW_LINE>editRowsPanel.removeAll();<NEW_LINE>addEditorRow(new NumericPanel(pixelsPerMeter, "Pixels per meter", ""));<NEW_LINE>addEditorRow(new NumericPanel(zoomLevel, "Zoom level", ""));<NEW_LINE>addEditorRow(new NumericPanel(deltaMultiplier, "Delta multiplier", ""));<NEW_LINE>addEditorRow(new Gradi... | = new JCheckBox("Render Grid", previousSelected); |
865,463 | private void showUsageInfo() {<NEW_LINE>final String okpfx = "option-key.";<NEW_LINE>final String odpfx = "option-desc.";<NEW_LINE>// Kernel feature list tools and schema tools for some reason share the same configuration options file.<NEW_LINE>// Create an exclusion set to prevent the schema generator tool help from d... | (options.getString(optionKey)); |
662,186 | protected void paintTabBorder(Graphics g, int index, int x, int y, int width, int height) {<NEW_LINE>Color highlight = getBorderHighlight();<NEW_LINE>Color shadow = getBorderShadow();<NEW_LINE>boolean isSelected = isSelected(index);<NEW_LINE>boolean isFirst = index == 0;<NEW_LINE>boolean isLast = index == getDataModel(... | 0, width - 1, 0); |
740,325 | public static DescribeGatewaySMBUsersResponse unmarshall(DescribeGatewaySMBUsersResponse describeGatewaySMBUsersResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeGatewaySMBUsersResponse.setRequestId(_ctx.stringValue("DescribeGatewaySMBUsersResponse.RequestId"));<NEW_LINE>describeGatewaySMBUsersResponse.setTotalCou... | ("DescribeGatewaySMBUsersResponse.Users[" + i + "].Username")); |
1,224,423 | final DescribeJobDefinitionsResult executeDescribeJobDefinitions(DescribeJobDefinitionsRequest describeJobDefinitionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeJobDefinitionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,294,954 | protected List<ListObject> initChildren() {<NEW_LINE>// Init the list<NEW_LINE>List<ListObject> mObjects = new ArrayList<ListObject>();<NEW_LINE>// Add an object to the list<NEW_LINE><MASK><NEW_LINE>s1.name = "Gabriele Mariotti";<NEW_LINE>s1.common = "127 people in common";<NEW_LINE>s1.url = "https://lh5.googleusercont... | MayKnowObject s1 = new MayKnowObject(this); |
1,359,615 | public void onEvent(RequestEvent event) {<NEW_LINE>final RequestEvent.Type eventType = event.getType();<NEW_LINE>if (eventType == RequestEvent.Type.RESOURCE_METHOD_START) {<NEW_LINE>methodMap.computeIfAbsent(event.getUriInfo().getMatchedResourceMethod(), UnitOfWorkEventListener::registerUnitOfWorkAnnotations).forEach(u... | ).forEach(UnitOfWorkAspect::onFinish); |
893,682 | protected String guessDatatypeId(Datatype datatype) {<NEW_LINE>if (datatype instanceof BigDecimalDatatype)<NEW_LINE>return "decimal";<NEW_LINE>if (datatype instanceof BooleanDatatype)<NEW_LINE>return "boolean";<NEW_LINE>if (datatype instanceof ByteArrayDatatype)<NEW_LINE>return "byteArray";<NEW_LINE>if (datatype instan... | log.trace("Cannot get NAME static field value: {}", e); |
791,134 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next(... | parser.nextInt() * 0.001); |
1,580,318 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>Log.i(TAG, "onCreate");<NEW_LINE>setContentView(io.selendroid.<MASK><NEW_LINE>Bundle extras = getIntent().getExtras();<NEW_LINE>if (extras != null) {<NEW_LINE>User user = (User) extras.getSerializable("user");<NEW_LI... | testapp.R.layout.verify_user); |
1,209,591 | private static Type mergeType(Type fstType, Type secType) {<NEW_LINE>TypeEnum fstTypeType = fstType.getType();<NEW_LINE>TypeEnum secTypeType = secType.getType();<NEW_LINE>if (fstTypeType == secTypeType) {<NEW_LINE>if (fstTypeType == TypeEnum.Array) {<NEW_LINE>Type fstArrayType = ((ArrayType) fstType).getGenericType();<... | key, ent.getValue()); |
1,452,032 | private static double calculateSingleDistance(ImmutableFeatureMap fMap, long numTrainingExamples, int index, double value) {<NEW_LINE>VariableInfo info = fMap.get(index);<NEW_LINE>if (info instanceof CategoricalInfo) {<NEW_LINE>return 1.0;<NEW_LINE>} else if (info instanceof RealInfo) {<NEW_LINE>RealInfo rInfo = (RealI... | () - rInfo.getMin(); |
455,952 | private Mono<Response<Flux<ByteBuffer>>> stopWithResponseAsync(String resourceGroupName, String serviceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NE... | this.client.mergeContext(context); |
51,376 | public Map<String, Object> buildHBaseWriter() {<NEW_LINE>FlinkxHbasePojo flinkxHbasePojo = new FlinkxHbasePojo();<NEW_LINE>flinkxHbasePojo.setJdbcDatasource(writerDatasource);<NEW_LINE>List<Map<String, Object>> columns = Lists.newArrayList();<NEW_LINE>for (int i = 0; i < writerColumns.size(); i++) {<NEW_LINE>Map<String... | get(0) : Constants.STRING_BLANK; |
244,743 | public QueryLogsResults queryLogs(QueryLogsParams queryLogsParams) {<NEW_LINE>LogSearchParams logSearchParams = LogSearchParams.from(queryLogsParams).addLogName(STDOUT_LOG_NAME).addLogName(STDERR_LOG_NAME).setResourceType(RESOURCE_TYPE_GAE_APP);<NEW_LINE>Page<LogEntry> logEntriesInPage = getLogEntries(logSearchParams, ... | .getResource().getLabels(); |
417,819 | public DataFetcher<Iterable<VehicleParking>> vehicleParkings() {<NEW_LINE>return environment -> {<NEW_LINE>VehicleParkingService vehicleParkingService = getRoutingService(environment).getVehicleParkingService();<NEW_LINE>if (vehicleParkingService == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>var args = new Legac... | >) args.getLegacyGraphQLIds()); |
1,823,883 | public void read(org.apache.thrift.protocol.TProtocol prot, TActiveTraceHistogram 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(3);<NEW_LINE>if (incoming.get... | .version = iprot.readI16(); |
1,179,334 | private static void createMappingIfNeeded(JestClient jestClient, String indexName, String typeName) throws ElasticWriterException, IOException {<NEW_LINE>synchronized (CREATE_MAPPING_LOCK) {<NEW_LINE>IndicesExists indicesExists = new IndicesExists.Builder(indexName).build();<NEW_LINE>boolean indexExists = jestClient.ex... | typeName, mapping).build(); |
659,830 | public void onAutoCompletion() {<NEW_LINE>setStateAndUi(CURRENT_STATE_AUTO_COMPLETE);<NEW_LINE>mSaveChangeViewTIme = 0;<NEW_LINE>mCurrentPosition = 0;<NEW_LINE>if (mTextureViewContainer.getChildCount() > 0) {<NEW_LINE>mTextureViewContainer.removeAllViews();<NEW_LINE>}<NEW_LINE>if (!mIfCurrentIsFullscreen)<NEW_LINE>getG... | clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); |
1,098,109 | public MaterialRevisions findRevisionsSince(MaterialRevisions peggedRevisions, Materials newMaterials, MaterialRevisions previous, MaterialRevisions latestRevisions) {<NEW_LINE>MaterialRevisions materialRevisions = new MaterialRevisions();<NEW_LINE>for (Material material : newMaterials) {<NEW_LINE>MaterialRevision prev... | Material previousMaterial = previousRevision.getMaterial(); |
1,614,928 | public Object visit(StringBinaryExpression n, Void arg) {<NEW_LINE>String first = (String) n.getLeftOperand().accept(this, null);<NEW_LINE>Object second = n.getRightOperand(<MASK><NEW_LINE>Operator op = n.getOperator();<NEW_LINE>switch(op) {<NEW_LINE>// returns String<NEW_LINE>case CONCAT:<NEW_LINE>{<NEW_LINE>String st... | ).accept(this, null); |
201,485 | public Request<UpdateMapRequest> marshall(UpdateMapRequest updateMapRequest) {<NEW_LINE>if (updateMapRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(UpdateMapRequest)");<NEW_LINE>}<NEW_LINE>Request<UpdateMapRequest> request = new DefaultRequest<UpdateMapRequest>(updateMa... | jsonWriter = JsonUtils.getJsonWriter(stringWriter); |
462,398 | public void render() {<NEW_LINE>final String lorem = context.getString(R.string.lorem);<NEW_LINE>final String md = "" + "# First\n" + "" + lorem + "\n\n" + "# Second\n" + "" + lorem + "\n\n" + "## Second level\n\n" + "" + lorem + "\n\n" + "### Level 3\n\n" + "" + lorem + "\n\n" + "# First again\n" + "" + lorem + "\n\n"... | top))).build(); |
1,186,957 | public void retryFailures(ExecutableFlow exFlow, String userId) throws ExecutorManagerException {<NEW_LINE>synchronized (exFlow) {<NEW_LINE>logger.info("Retrying failures for execId: {}", exFlow.getExecutionId());<NEW_LINE>final Map<Integer, Pair<ExecutionReference, ExecutableFlow>> unfinishedFlows = this.executorLoade... | exFlow.getFlowId() + " isn't running."); |
1,018,576 | ActionResult<JsonElement> execute(EffectivePerson effectivePerson, String id, String path0, String path1, String path2, String path3, String path4, String path5, String path6) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<JsonEle... | , path4, path5, path6)); |
1,483,051 | public void onUpOrCancelMotionEvent(ScrollState scrollState) {<NEW_LINE>mBaseTranslationY = 0;<NEW_LINE>Fragment fragment = getCurrentFragment();<NEW_LINE>if (fragment == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (view == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int toolbarHeight = mToolbarVie... | View view = fragment.getView(); |
1,055,852 | public Map<String, Object> asMap(boolean full) {<NEW_LINE>Map<String, Object> map = new LinkedHashMap<>();<NEW_LINE>map.put("enabled", isEnabled());<NEW_LINE>map.putAll(article.asMap(full));<NEW_LINE>map.putAll(discord.asMap(full));<NEW_LINE>map.putAll(discussions.asMap(full));<NEW_LINE>map.putAll(gitter.asMap(full));<... | (zulip.asMap(full)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.