idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
767,172 | static ChangeSet merge(@Nullable ChangeSet first, ChangeSet second) {<NEW_LINE>final ChangeSet mergedChangeSet = acquireChangeSet(null, false);<NEW_LINE>final int firstCount = first != null ? first.mFinalCount : 0;<NEW_LINE>final int secondCount = second != null ? second.mFinalCount : 0;<NEW_LINE>final List<Change> mer... | .offset(change, firstCount)); |
784,177 | public ResponseEntity<BigDecimal> fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws RestClientException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();<NEW_LINE>final HttpHeaders localVarHeaderParams = ne... | localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); |
105,189 | protected void showCurrentFormat(LatLon l) {<NEW_LINE>final EditText latEdit = view.findViewById(R.id.LatitudeEdit);<NEW_LINE>final EditText lonEdit = view.findViewById(R.id.LongitudeEdit);<NEW_LINE>switch(currentFormat) {<NEW_LINE>case PointDescription.UTM_FORMAT:<NEW_LINE>{<NEW_LINE>view.findViewById(R.id.easting_row... | , l.getLongitude())); |
1,101,323 | public static boolean isOneToOneMapping(@Nonnull Project ideProject, @Nonnull DataNode<ProjectData> externalProject) {<NEW_LINE>String linkedExternalProjectPath = null;<NEW_LINE>for (ExternalSystemManager<?, ?, ?, ?, ?> manager : ExternalSystemApiUtil.getAllManagers()) {<NEW_LINE>ProjectSystemId externalSystemId = mana... | getData().getLinkedExternalProjectPath()); |
527,280 | final CreateWirelessGatewayTaskResult executeCreateWirelessGatewayTask(CreateWirelessGatewayTaskRequest createWirelessGatewayTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createWirelessGatewayTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,274,211 | private void updateItems() {<NEW_LINE>List<ListItem> items = new ArrayList<>();<NEW_LINE>items.add(new ListItem(ItemType.CARD_TOP_DIVIDER, null));<NEW_LINE>items.add(new ListItem(ItemType.HEADER, getString(<MASK><NEW_LINE>items.addAll(createWidgetsList());<NEW_LINE>items.add(new ListItem(ItemType.CARD_DIVIDER, null));<... | R.string.shared_string_visible_widgets))); |
878,840 | @UnitOfWork<NEW_LINE>@ApiOperation(value = "Get user information", notes = "Get user information", response = UserModel.class)<NEW_LINE>@Timed<NEW_LINE>public Response adminGetUser(@ApiParam(hidden = true) @SecurityCheck(Role.ADMIN) User user, @ApiParam(value = "user id", required = true) @PathParam("id") Long id) {<NE... | setEmail(u.getEmail()); |
674,217 | public static void validateJsonObject(JsonObject jsonObj) throws IOException {<NEW_LINE>if (jsonObj == null) {<NEW_LINE>if (FileSchemaTestClass.openapiRequiredFields.isEmpty()) {<NEW_LINE>return;<NEW_LINE>} else {<NEW_LINE>// has required fields<NEW_LINE>throw new IllegalArgumentException(String.format("The required fi... | (i).getAsJsonObject()); |
399,982 | public ServiceNameAndResourceType unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ServiceNameAndResourceType serviceNameAndResourceType = new ServiceNameAndResourceType();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina... | int originalDepth = context.getCurrentDepth(); |
1,504,141 | public Project findProjectByConnectionIdOrJdbcUrl(UUID connectionId, String jdbcUrl) throws LiquibaseHubException {<NEW_LINE>final AtomicReference<UUID> organizationId = new AtomicReference<>(getOrganization().getId());<NEW_LINE>String searchParam = null;<NEW_LINE>if (connectionId != null) {<NEW_LINE>searchParam = "con... | parameters.put("search", searchParam); |
1,639,771 | public static void print(PrintWriter w, boolean server) {<NEW_LINE>InputStream in = null;<NEW_LINE>try {<NEW_LINE>String scouter_logo = System.getProperty("scouter.logo", "scouter.logo");<NEW_LINE>in = Logo.class.getResourceAsStream(scouter_logo);<NEW_LINE>if (in == null)<NEW_LINE>return;<NEW_LINE>BufferedReader reader... | (Version.getServerFullVersion())); |
337,010 | final ListGroupPoliciesResult executeListGroupPolicies(ListGroupPoliciesRequest listGroupPoliciesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listGroupPoliciesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | endClientExecution(awsRequestMetrics, request, response); |
936,208 | public static void convolve3(Kernel2D_S32 kernel, GrayS32 src, GrayS32 dest, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>workspaces = BoofMiscOps.checkDeclare(workspaces, DogArray_I32::new);<NEW_LINE>// CONCURRENT_REMOVE_LINE<NEW_LINE>final DogArray_I32 work = workspaces.grow();<NEW_LINE>final... | dataSrc[indexSrc++]) * k1; |
369,215 | private Message<?> enhanceHeadersAndSaveAttributes(Message<?> message, ConsumerRecord<K, V> record) {<NEW_LINE>Message<?> messageToReturn = message;<NEW_LINE>if (message.getHeaders() instanceof KafkaMessageHeaders) {<NEW_LINE>Map<String, Object> rawHeaders = ((KafkaMessageHeaders) message.getHeaders()).getRawHeaders();... | setHeader(IntegrationMessageHeaderAccessor.DELIVERY_ATTEMPT, deliveryAttempt); |
710,398 | public void visit(BLangSimpleVarRef varRefExpr) {<NEW_LINE>if (varRefExpr.symbol == null) {<NEW_LINE>result = varRefExpr;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BSymbol ownerSymbol = varRefExpr.symbol.owner;<NEW_LINE>if (((ownerSymbol.tag & SymTag.PACKAGE) == SymTag.PACKAGE || (ownerSymbol.tag & SymTag.SERVICE) == SymTag... | varRefExpr.impConversionExpr.getBType()); |
1,815,893 | public void marshall(NetworkFirewallInternetTrafficNotInspectedViolation networkFirewallInternetTrafficNotInspectedViolation, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (networkFirewallInternetTrafficNotInspectedViolation == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(..... | networkFirewallInternetTrafficNotInspectedViolation.getActualFirewallSubnetRoutes(), ACTUALFIREWALLSUBNETROUTES_BINDING); |
1,693,533 | private void fillResource() {<NEW_LINE>ListItem listItem = fieldResourceType.getSelectedItem();<NEW_LINE>if (listItem == null)<NEW_LINE>return;<NEW_LINE>// Get Resource Type<NEW_LINE>KeyNamePair pp = new KeyNamePair((Integer) listItem.getValue(<MASK><NEW_LINE>int S_ResourceType_ID = pp.getKey();<NEW_LINE>KeyNamePair de... | ), listItem.getLabel()); |
806,137 | public boolean apply(MethodInfo methodInfo) {<NEW_LINE>// Any method explicitly annotated is trusted to behave as advertised.<NEW_LINE>Optional<Nullness> fromAnnotations = NullnessAnnotations.<MASK><NEW_LINE>if (fromAnnotations.isPresent()) {<NEW_LINE>return fromAnnotations.get() == NONNULL;<NEW_LINE>}<NEW_LINE>if (met... | fromAnnotations(methodInfo.annotations()); |
1,202,511 | private Symbol createSymbol(String name, SymbolType type, Address address, Namespace parentNamespace, SourceType source) throws DuplicateNameException, InvalidInputException {<NEW_LINE>Symbol symbol = null;<NEW_LINE>if (type == SymbolType.LABEL) {<NEW_LINE>if (address.isExternalAddress()) {<NEW_LINE>// FIXME Should thi... | FunctionManager fromFunctionMgr = fromProgram.getFunctionManager(); |
893,254 | protected Object checkAndConvertAssignment(String localName, Object value, QueryProfileRegistry registry) {<NEW_LINE>// no type checking<NEW_LINE>if (type == null)<NEW_LINE>return value;<NEW_LINE>FieldDescription fieldDescription = type.getField(localName);<NEW_LINE>if (fieldDescription == null) {<NEW_LINE>if (type.isS... | ).convertFrom(value, registry); |
737,013 | final CreateHsmResult executeCreateHsm(CreateHsmRequest createHsmRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createHsmRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | invoke(request, responseHandler, executionContext); |
608,461 | // When allowNullResultSetForExecuteQuery is configured to 1 (YES), DB2 executeQuery can return a NULL.<NEW_LINE>// Verify that WAS JDBC statement wrappers can properly handle the NULL result set.<NEW_LINE>@Test<NEW_LINE>public void testNullResultOfExecuteQuery() throws Exception {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LI... | Connection con = ds_db2.getConnection(); |
1,538,273 | public void parse(String result, Object data) {<NEW_LINE>JsonObject jobj = JsonParser.parseString(result).getAsJsonObject();<NEW_LINE>if (jobj.has("type")) {<NEW_LINE>String type = jobj.get("type").getAsString();<NEW_LINE>if (type.equals("error")) {<NEW_LINE>String desc = jobj.get("description").getAsString();<NEW_LINE... | Msg.error(this, desc); |
65,021 | public void stop() {<NEW_LINE>stopping = true;<NEW_LINE>taskExecutor.shutdown();<NEW_LINE>List<ListenableFuture<Void>> <MASK><NEW_LINE>synchronized (tasks) {<NEW_LINE>for (ThreadingTaskRunnerWorkItem taskWorkItem : tasks.values()) {<NEW_LINE>shutdownFutures.add(scheduleTaskShutdown(taskWorkItem));<NEW_LINE>}<NEW_LINE>}... | shutdownFutures = new ArrayList<>(); |
1,718,795 | final RemoveRoleFromDBClusterResult executeRemoveRoleFromDBCluster(RemoveRoleFromDBClusterRequest removeRoleFromDBClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(removeRoleFromDBClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | invoke(request, responseHandler, executionContext); |
1,008,883 | synchronized void updateRemoteCluster(String clusterAlias, Settings newSettings, ActionListener<Void> listener) {<NEW_LINE>if (LOCAL_CLUSTER_GROUP_KEY.equals(clusterAlias)) {<NEW_LINE>throw new IllegalArgumentException("remote clusters must not have the empty string as its key");<NEW_LINE>}<NEW_LINE>RemoteClusterConnec... | warn("failed to close remote cluster connections for cluster: " + clusterAlias, e); |
1,369,439 | protected static // }<NEW_LINE>String calculateExtraClassPath(Class<?> cls, Path... paths) throws Exception {<NEW_LINE>List<String> jars = new ArrayList<>();<NEW_LINE>jars.addAll(calculateExtraClassPathDefault());<NEW_LINE>Module module = cls.getAnnotation(Module.class);<NEW_LINE>for (String str : module.storeJars()) {... | add(file.getAbsolutePath()); |
1,206,086 | public void handleOrderVoided(@NonNull final VoidOrderAndRelatedDocsRequest request) {<NEW_LINE>final IDocumentBL documentBL = <MASK><NEW_LINE>final IPair<RecordsToHandleKey, List<ITableRecordReference>> recordsToHandle = request.getRecordsToHandle();<NEW_LINE>final List<I_C_Order> orderRecordsToHandle = TableRecordRef... | Services.get(IDocumentBL.class); |
1,624,084 | public List<Pair<ApiType, MetricsType>> execute() throws KubectlException {<NEW_LINE>switch(metricName) {<NEW_LINE>case "cpu":<NEW_LINE>case "memory":<NEW_LINE>break;<NEW_LINE>default:<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>try {<NEW_LINE>CoreV1Api api = new CoreV1Api(apiClient);<NEW_LINE>if (apiTypeClass.equals(V1Node.cl... | throw new KubectlException("Unknown metric: " + metricName); |
689,759 | public static double uncenteredCorrelation(double[] x, double[] y) {<NEW_LINE>final int xdim = x<MASK><NEW_LINE>if (xdim != ydim) {<NEW_LINE>throw new IllegalArgumentException("Invalid arguments: number vectors differ in dimensionality.");<NEW_LINE>}<NEW_LINE>double sumXX = 0., sumYY = 0., sumXY = 0.;<NEW_LINE>for (int... | .length, ydim = y.length; |
660,720 | private void filterCardsType(int modifiers, String actionCommand) {<NEW_LINE>// ALT or CTRL button was pushed<NEW_LINE>if ((modifiers & ActionEvent.ALT_MASK) == ActionEvent.ALT_MASK || (modifiers & ActionEvent.CTRL_MASK) == ActionEvent.CTRL_MASK) {<NEW_LINE>boolean invert = (modifiers & ActionEvent.ALT_MASK) == ActionE... | .getActionCommand(), actionCommand)); |
1,776,014 | public Answer execute(VmwareHostService hostService, CreatePrivateTemplateFromVolumeCommand cmd) {<NEW_LINE>String secondaryStoragePoolURL = cmd.getSecondaryStorageUrl();<NEW_LINE>String volumePath = cmd.getVolumePath();<NEW_LINE>Long accountId = cmd.getAccountId();<NEW_LINE>Long templateId = cmd.getTemplateId();<NEW_L... | getUniqueName(), ImageFormat.OVA); |
1,576,936 | public ImageStateChangeReason unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ImageStateChangeReason imageStateChangeReason = new ImageStateChangeReason();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | class).unmarshall(context)); |
1,027,740 | public void initialize(@NonNull View view) {<NEW_LINE>LinearProgressIndicator linearIndicator = view.findViewById(R.id.linear_indicator);<NEW_LINE>CircularProgressIndicator circularIndicator = view.findViewById(R.id.circular_indicator);<NEW_LINE>EditText progressInput = view.<MASK><NEW_LINE>Button updateButton = view.f... | findViewById(R.id.progress_input); |
1,650,574 | public void removeMainLeafEntry(final int entryIndex, final int keySize) {<NEW_LINE>final int entryPosition = getIntValue(POSITIONS_ARRAY_OFFSET + entryIndex * OIntegerSerializer.INT_SIZE);<NEW_LINE>final int entriesCount = getIntValue(entryPosition + ENTRIES_COUNT_OFFSET);<NEW_LINE>final long mId = getLongValue(entryP... | clusterId = getShortValue(entryPosition + CLUSTER_ID_OFFSET); |
1,001,378 | private void processCommandEnable(String commandLine, boolean enable) {<NEW_LINE>try {<NEW_LINE>CommandLine cmd = CMD_PARSER.parse(enableFeatureOptions(), commandLine.split(" "));<NEW_LINE>if (cmd.getArgList().size() != 1 || !cmd.hasOption("f")) {<NEW_LINE>logWarn("Invalid command, expecting enable/disable -f <featureN... | getFeatureStore().disable(featureName); |
1,139,934 | final DisassociateWebsiteAuthorizationProviderResult executeDisassociateWebsiteAuthorizationProvider(DisassociateWebsiteAuthorizationProviderRequest disassociateWebsiteAuthorizationProviderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateWebsiteAuthorizationProviderRequest);<NE... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
294,028 | private void updateFlexibleSpaceText(final int scrollY) {<NEW_LINE>ViewHelper.setTranslationY(mFlexibleSpaceView, -scrollY);<NEW_LINE>int adjustedScrollY = (int) ScrollUtils.getFloat(scrollY, 0, mFlexibleSpaceHeight);<NEW_LINE>// Special logic for WebView.<NEW_LINE>adjustTopMargin(mWebViewContainer, adjustedScrollY <= ... | setScaleY(mTitleView, 1 + scale); |
1,482,454 | private static int appendArrayTypeSignatureForAnchor(char[] string, int start, StringBuffer buffer, boolean isVarArgs) {<NEW_LINE>int length = string.length;<NEW_LINE>// need a minimum 2 char<NEW_LINE>if (start >= length - 1) {<NEW_LINE>throw raiseIllegalSignatureException(string, start);<NEW_LINE>}<NEW_LINE>char c = s... | ('[').append(']'); |
1,093,730 | final ListDatasetImportJobsResult executeListDatasetImportJobs(ListDatasetImportJobsRequest listDatasetImportJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDatasetImportJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,628,747 | public SingularSortedMap2<A, B> build() {<NEW_LINE>java.util.SortedMap<java.lang.Object, java.lang.Object> rawTypes = new java.util.TreeMap<java.lang.Object, java.lang.Object>();<NEW_LINE>if (this.rawTypes$key != null)<NEW_LINE>for (int $i = 0; $i < (this.rawTypes$key == null ? 0 : this.rawTypes$key.size()); $i++) rawT... | TreeMap<A, B>(); |
1,696,031 | private static void processStream(InputStream is, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>BufferedImage image;<NEW_LINE>try {<NEW_LINE>image = ImageIO.read(is);<NEW_LINE>} catch (Exception e) {<NEW_LINE>// Many possible failures from JAI, so just catch a... | processImage(image, request, response); |
806,962 | private synchronized void merge(Device device, EnumSet<Option> options, ConfigurationChanges diffs) throws ConfigurationException {<NEW_LINE>if (!configurationExists())<NEW_LINE>throw new ConfigurationNotFoundException();<NEW_LINE>String deviceDN = deviceRef(device.getDeviceName());<NEW_LINE>Device prev = loadDevice(de... | ModificationItem>(), preserveVendorData)); |
75,363 | public GradientValue_F32 compute(int x, int y) {<NEW_LINE>int horizontalOffset = x - r - 1;<NEW_LINE>int indexSrc1 = input.startIndex + (y - r - 1) * input.stride + horizontalOffset;<NEW_LINE>int indexSrc2 = indexSrc1 + r * input.stride;<NEW_LINE>int indexSrc3 = indexSrc2 + input.stride;<NEW_LINE>int indexSrc4 = indexS... | p9 = input.data[indexSrc4]; |
1,006,710 | public JanusGraphVertex addVertex(Object... keyValues) {<NEW_LINE>ElementHelper.legalPropertyKeyValueArray(keyValues);<NEW_LINE>final Optional<Object> idValue = ElementHelper.getIdValue(keyValues);<NEW_LINE>if (idValue.isPresent() && !((StandardJanusGraph) getGraph()).getConfiguration().allowVertexIdSetting())<NEW_LINE... | vertex = addVertex(id, label); |
1,140,709 | public void complete() {<NEW_LINE>// Read existing annotation list and verify each class still has this annotation<NEW_LINE>try (BufferedReader reader = this.createReader()) {<NEW_LINE>if (reader != null) {<NEW_LINE>reader.lines().forEach(canonicalName -> {<NEW_LINE>if (!locations.contains(canonicalName)) {<NEW_LINE>Ty... | NOTE, "Did not find any classes annotated with " + this.annotationClassName); |
1,682,173 | private boolean performRepoTest() {<NEW_LINE>boolean testCreateTarget = options.isCreateTarget();<NEW_LINE>StorageTestResult testResult = transferManager.test(testCreateTarget);<NEW_LINE>logger.log(<MASK><NEW_LINE>if (testResult.isTargetExists() && testResult.isTargetCanWrite() && !testResult.isRepoFileExists()) {<NEW_... | Level.INFO, "Storage test result ist " + testResult); |
1,046,091 | protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final I... | environment, instruction, instructions, shifter); |
1,835,119 | private static void addUserIdentityOptions(Options opts) {<NEW_LINE>OptionGroup group = new OptionGroup();<NEW_LINE>group.addOption(Option.builder().hasArg().argName("name").desc(rb.getString("user")).longOpt("user").build());<NEW_LINE>opts.addOption(Option.builder().hasArg().argName("assertion").desc(rb.getString("use... | ("user-pass").build()); |
171,004 | private void openNotebook(final FileSystemItem rnbFile, final SourceColumn targetColumn, final ResultCallback<EditingTarget, ServerError> resultCallback) {<NEW_LINE>// construct path to .Rmd<NEW_LINE>final String rnbPath = rnbFile.getPath();<NEW_LINE>final String rmdPath = FilePathUtils.filePathSansExtension(rnbPath) +... | (error.getMessage())); |
1,476,225 | public void executeQueryPhase(ShardSearchRequest request, SearchShardTask task, ActionListener<SearchPhaseResult> listener) {<NEW_LINE>assert request.canReturnNullResponseIfMatchNoDocs() == false || request.numberOfShards() > 1 : "empty responses require more than one shard";<NEW_LINE>final IndexShard shard = getShard(... | canMatchResp = canMatch(clone, false); |
593,066 | protected void initInput() {<NEW_LINE>onKeyDown(KeyCode.F, () -> {<NEW_LINE>getGameWorld().removeEntity(e1);<NEW_LINE>runOnce(() -> {<NEW_LINE>getGameWorld().addEntity(e1);<NEW_LINE>}, Duration.seconds(0.1));<NEW_LINE>});<NEW_LINE>onKeyDown(KeyCode.G, () -> {<NEW_LINE>// should be fine, reusable<NEW_LINE>getGameWorld()... | getInput().getMousePositionWorld()); |
1,576,712 | private static void buildFieldStatistics(XContentBuilder builder, Terms curTerms) throws IOException {<NEW_LINE>long sumDocFreq = curTerms.getSumDocFreq();<NEW_LINE>int docCount = curTerms.getDocCount();<NEW_LINE>long sumTotalTermFrequencies = curTerms.getSumTotalTermFreq();<NEW_LINE>if (docCount >= 0) {<NEW_LINE>asser... | field(FieldStrings.DOC_COUNT, docCount); |
597,676 | private void buildQuery(SearchRequestBuilder searchReq, ParseResult info) {<NEW_LINE>String[] types = new String[info.getSources().size()];<NEW_LINE>for (int i = 0; i < info.getSources().size(); i++) types[i] = info.getSources().<MASK><NEW_LINE>SearchRequestBuilder req = searchReq.setTypes(types);<NEW_LINE>// add filte... | get(i).getSource(); |
1,457,644 | private void createFiles(long numFiles, List<String> args) throws Exception {<NEW_LINE>List<String> newArgs = new ArrayList<>(args);<NEW_LINE>updateArgValue(newArgs, "--operation", Operation.CREATE_FILE.toString());<NEW_LINE>updateArgValue(newArgs, "--warmup", "0s");<NEW_LINE>updateArgValue(newArgs, "--threads", "128")... | updateArgValue(newArgs, "--target-throughput", "10000"); |
562,835 | private static void declareOverloadsClamp() {<NEW_LINE>final String name = "clamp";<NEW_LINE>declareFunction(FLOAT, name, FLOAT, "val", FLOAT, "min", FLOAT, "max");<NEW_LINE>declareFunction(FLOAT2, name, FLOAT2, "val", FLOAT2, "min", FLOAT2, "max");<NEW_LINE>declareFunction(FLOAT3, name, FLOAT3, "val", FLOAT3, "min", F... | FLOAT, "min", FLOAT, "max"); |
171,478 | // Save internal schema<NEW_LINE>private void saveInternalSchema(HoodieTable table, String instantTime, HoodieCommitMetadata metadata) {<NEW_LINE>TableSchemaResolver schemaUtil = new TableSchemaResolver(table.getMetaClient());<NEW_LINE>String historySchemaStr = schemaUtil.getTableHistorySchemaStrFromCommitMetadata().or... | , SerDeHelper.toJson(evolvedSchema)); |
1,354,919 | private JPanel createButtonPanel() {<NEW_LINE>CancelOkListener listener = new CancelOkListener();<NEW_LINE>JButton button_ok = new JButton(okButton);<NEW_LINE>button_ok.setActionCommand(okButton);<NEW_LINE>button_ok.addActionListener(listener);<NEW_LINE>JButton button_cancel = new JButton(cancelButton);<NEW_LINE>button... | Dimension(20, 0))); |
196,584 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see org.openhab.binding.digitalSTROM2.internal.client.job.SensorJob#execute(org.openhab.binding.digitalSTROM2.<NEW_LINE>* internal.client.DigitalSTROMAPI, java.lang.String)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void execute(DigitalSTROMAPI digitalSTROM, String... | this.device.setHumiditySensorValue(sensorValue); |
1,370,583 | public static com.liferay.portal.model.Address updateAddress(java.lang.String addressId, java.lang.String description, java.lang.String street1, java.lang.String street2, java.lang.String city, java.lang.String state, java.lang.String zip, java.lang.String country, java.lang.String phone, java.lang.String fax, java.lan... | liferay.portal.SystemException(e); |
710,848 | final CreateHumanTaskUiResult executeCreateHumanTaskUi(CreateHumanTaskUiRequest createHumanTaskUiRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createHumanTaskUiRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | endClientExecution(awsRequestMetrics, request, response); |
586,141 | // TODO move this? It's shared by all the OHLC classes<NEW_LINE>public static void populateData(Date startDate, double startPrice, int count, List<Date> xData, List<Double> openData, List<Double> highData, List<Double> lowData, List<Double> closeData) {<NEW_LINE>Calendar cal = Calendar.getInstance();<NEW_LINE>cal.setTi... | previous, data), startPrice)); |
62,998 | public void routeSystemInfoAndExecuteSQL(String stmt, SchemaUtil.SchemaInfo schemaInfo, int sqlType) {<NEW_LINE>ShardingUserConfig user = (ShardingUserConfig) (DbleServer.getInstance().getConfig().getUsers().get(service.getUser()));<NEW_LINE>if (user == null || !user.getSchemas().contains(schemaInfo.getSchema())) {<NEW... | service.executeException(e, stmt); |
1,506,010 | public ListSuitesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListSuitesResult listSuitesResult = new ListSuitesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina... | JsonToken token = context.getCurrentToken(); |
889,435 | public static PullMatchedBizDataResponse unmarshall(PullMatchedBizDataResponse pullMatchedBizDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>pullMatchedBizDataResponse.setRequestId(_ctx.stringValue("PullMatchedBizDataResponse.RequestId"));<NEW_LINE>pullMatchedBizDataResponse.setErrorCode(_ctx.stringValue("PullMatche... | ("PullMatchedBizDataResponse.MatchedDataList[" + i + "].DeviceId")); |
473,127 | public void execute(TransformerImpl transformer) throws TransformerException {<NEW_LINE>if (transformer.isRecursiveAttrSet(this)) {<NEW_LINE>throw new TransformerException(// "xsl:attribute-set '"+m_qname.m_localpart+<NEW_LINE>XSLMessages.// "xsl:attribute-set '"+m_qname.m_localpart+<NEW_LINE>createMessage(// "xsl:attr... | attr = (ElemAttribute) getFirstChildElem(); |
1,807,357 | private Model internalBuildModel(WSDLDocument document) {<NEW_LINE>numPasses++;<NEW_LINE>// build the jaxbModel to be used latter<NEW_LINE>buildJAXBModel(document);<NEW_LINE>QName modelName = new QName(document.getDefinitions().getTargetNamespaceURI(), document.getDefinitions().getName() == null ? "model" : document.ge... | getJAXBModelBuilder().getJAXBModel()); |
583,704 | final DeleteReportDefinitionResult executeDeleteReportDefinition(DeleteReportDefinitionRequest deleteReportDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteReportDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
701,331 | public RelDataType deriveSumType(RelDataTypeFactory typeFactory, RelDataType argumentType) {<NEW_LINE>if (argumentType instanceof BasicSqlType) {<NEW_LINE>SqlTypeName type = deriveSumType(argumentType.getSqlTypeName());<NEW_LINE>if (type == BIGINT) {<NEW_LINE>// special-case for BIGINT - we use BIGINT(64) instead of th... | ), argumentType.isNullable()); |
1,019,586 | protected void checkForItemRequirements(Offer offer, CandidatePromotionItems candidates, OfferItemCriteria criteria, List<PromotableOrderItem> promotableOrderItems, boolean isQualifier) {<NEW_LINE>boolean matchFound = false;<NEW_LINE><MASK><NEW_LINE>int matchedQuantity = 0;<NEW_LINE>if (criteriaQuantity > 0) {<NEW_LINE... | int criteriaQuantity = criteria.getQuantity(); |
203,910 | public void addToBatch(BatchStatement batch, CqlColumnListMutationImpl<?, ?> colListMutation, boolean useCaching) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(INSERT_INTO).append(keyspace + "." + cfDef.getName());<NEW_LINE>sb.append(OPEN_PARA);<NEW_LINE>// Init the object array for the bind val... | ), colListMutation.getTimestamp()); |
601,542 | private CallTree selectInRootNodeList(final NodeList rootNodeList, boolean bestMatchingState) {<NEW_LINE>// in root list<NEW_LINE>if (rootNodeList.size() == 1) {<NEW_LINE>logger.info("Select root span in top node list");<NEW_LINE>final Node node = rootNodeList.get(0);<NEW_LINE>if (bestMatchingState) {<NEW_LINE>traceSta... | node = focusNodeList.get(0); |
1,745,066 | public CorpUser update(@Nonnull String urn, @Nonnull CorpUserUpdateInput input, @Nonnull QueryContext context) throws Exception {<NEW_LINE>if (isAuthorizedToUpdate(urn, input, context)) {<NEW_LINE>// Get existing editable info to merge with<NEW_LINE>Optional<CorpUserEditableInfo> existingCorpUserEditableInfo = _entityC... | (Urn.createFromString(urn)); |
737,234 | public static void validateNoSpecialsGroupByExpressions(ExprNode[] groupByNodes) throws ExprValidationException {<NEW_LINE>ExprNodeSubselectDeclaredDotVisitor visitorSubselects = new ExprNodeSubselectDeclaredDotVisitor();<NEW_LINE>ExprNodeGroupingVisitorWParent visitorGrouping = new ExprNodeGroupingVisitorWParent();<NE... | ExprAggregateNodeUtil.getAggregatesBottomUp(groupByNode, aggNodesInGroupBy); |
1,416,747 | private <R> OperationResult<R> execDualKeyspaceOperation(final KeyspaceOperation<R> ksOperation) throws ConnectionException {<NEW_LINE>final KeyspacePair pair = ksPair.get();<NEW_LINE>final Execution<R> exec1 = new SimpleSyncExec<R>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public OperationResult<R> execute() throws Co... | (writeMd)).execute(); |
838,718 | private static boolean matchHostName(String hostName, String pattern) {<NEW_LINE>checkArgument(hostName.length() != 0 && !hostName.startsWith(".") && !hostName.endsWith("."), "Invalid host name");<NEW_LINE>checkArgument(pattern.length() != 0 && !pattern.startsWith(".") && !pattern.endsWith("."), "Invalid pattern/domain... | .length() - 1)); |
1,653,548 | public void andNot(BitVector set) {<NEW_LINE>// a & !a is false<NEW_LINE>if (this == set) {<NEW_LINE>// all falses result in an empty BitSet<NEW_LINE>clear();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// trim the second set to avoid extra work<NEW_LINE>trimToSize(array);<NEW_LINE><MASK><NEW_LINE>// truth table<NEW_LINE>//<N... | int length = array.length(); |
1,295,566 | private Message createCycleDependenciesMessage(ListMultimap<Thread, Key<?>> locksCycle, @Nullable Message proxyCreationError) {<NEW_LINE>// this is the main thing that we'll show in an error message,<NEW_LINE>// current thread is populate by Guice<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>Formatter fmt ... | fmt.format("%s is holding locks the following singletons in the cycle:%n", lockedThread); |
1,810,515 | private static void basicInfo(List<String> textRecord, Person person, long endTime) {<NEW_LINE>String name = (String) person.attributes.get(Person.NAME);<NEW_LINE>textRecord.add(name);<NEW_LINE>// "underline" the characters in the name<NEW_LINE>textRecord.add(name.replaceAll("[A-Za-z0-9 ]", "="));<NEW_LINE>String race ... | .get(Person.BIRTHDATE)); |
131,150 | public static int stringtoUTF8Bytes(String str, byte[] buffer) {<NEW_LINE>int index = 0;<NEW_LINE>for (int i = 0; i < str.length(); i++) {<NEW_LINE>char strChar = str.charAt(i);<NEW_LINE>if ((strChar & 0xFF80) == 0) {<NEW_LINE>// (00000000 00000000 - 00000000 01111111) -> 0xxxxxxx<NEW_LINE>buffer[index++] = (byte) (str... | 6) & 0x003F) | 0x0080); |
1,053,545 | public ResponseContainerAssets deleteAssets(String userId, String serverCapability, String serverCapabilityGUID, String identifier) throws AnalyticsModelingCheckedException, UserNotAuthorizedException {<NEW_LINE>String methodName = "deleteAssets";<NEW_LINE>ctx.initializeSoftwareServerCapability(userId, serverCapability... | ), null, null, methodName); |
884,352 | public int orangesRotting(int[][] grid) {<NEW_LINE>int m = grid.length, n = grid[0].length;<NEW_LINE>Queue<int[]> queue = new LinkedList<>();<NEW_LINE>int fresh = 0;<NEW_LINE>for (int i = 0; i < m; i += 1) {<NEW_LINE>for (int j = 0; j < n; j += 1) {<NEW_LINE>if (grid[i][j] == 2)<NEW_LINE>queue.offer(new int[] { i, j })... | ], c = rotten[1]; |
1,551,550 | private long processPending() {<NEW_LINE>if (LOG.isDebugEnabled())<NEW_LINE>LOG.debug("processPending> {}", pending.values());<NEW_LINE>long now = TimeUnit.NANOSECONDS.toMillis(System.nanoTime());<NEW_LINE>long wait = Long.MAX_VALUE;<NEW_LINE>// pending map is maintained in LRU order<NEW_LINE>for (PathWatchEvent event ... | toQuietCheck(now, getUpdateQuietTimeMillis()); |
1,694,463 | public synchronized void createTable(ConnectorSession session, Table table, PrincipalPrivileges principalPrivileges, Optional<Path> currentPath, boolean ignoreExisting, PartitionStatistics statistics) {<NEW_LINE>setShared();<NEW_LINE>// When creating a table, it should never have partition actions. This is just a sanit... | TableAlreadyExistsException(table.getSchemaTableName()); |
752,803 | public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>View root = UiUtilities.getInflater(inflater.getContext(), nightMode).inflate(R.layout.fragment_terrain, container, false);<NEW_LINE>showHideTopShadow(root);<NEW_LINE>TextView emptyS... | findViewById(R.id.transparency_value_tv); |
139,179 | private DemangledObject parseFunctionOrVariable(String demangled) {<NEW_LINE>FunctionSignatureParts signatureParts = new FunctionSignatureParts(demangled);<NEW_LINE>if (!signatureParts.isValidFunction()) {<NEW_LINE>return parseVariable(demangled);<NEW_LINE>}<NEW_LINE>DemangledFunction function = new DemangledFunction(m... | setBackupPlateComment(lambdaName.getFullText()); |
601,619 | /*<NEW_LINE>* This block of code ensures that the correct contact header is specified when running in a<NEW_LINE>* multi-home environment. We always need to be sure to specify the interface for the contact that<NEW_LINE>* the initial request was received on.<NEW_LINE>*/<NEW_LINE>private boolean createAndSetMultihomeCon... | res.setHeader(contactHeader, true); |
1,306,262 | private static Pair<PsiElement, CharTable> doFindWhiteSpaceNode(@Nonnull PsiFile file, int offset) {<NEW_LINE>ASTNode astNode = SourceTreeToPsiMap.psiElementToTree(file);<NEW_LINE>if (!(astNode instanceof FileElement)) {<NEW_LINE>return new Pair<>(null, null);<NEW_LINE>}<NEW_LINE>PsiElement elementAt = InjectedLanguage... | FileElement) astNode).getCharTable(); |
955,919 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | false), new UntagResourceResultJsonUnmarshaller()); |
1,809,329 | final ListQueryExecutionsResult executeListQueryExecutions(ListQueryExecutionsRequest listQueryExecutionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listQueryExecutionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,576,042 | public // f200337<NEW_LINE>// f200337<NEW_LINE>void // f200337<NEW_LINE>put(// f200337<NEW_LINE>QueueData queueData, short msgBatch) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "put", new Object[] { queueData, "" + msgBatch });<NEW_LINE>synchronized (this) ... | ("ASYNC_BATCH_ALREADY_READY_SICO1031", null, null)); |
330,824 | private CssParsingResult parseResources(List<URL> resources, ResourceContext context, TreeLogger logger) throws UnableToCompleteException {<NEW_LINE>List<SourceCode> sourceCodes = new ArrayList<>(resources.size());<NEW_LINE>ImmutableMap.Builder<String, String> constantNameMappingBuilder = ImmutableMap.builder();<NEW_LI... | ), constantNameMappingBuilder.build()); |
451,553 | final UpdateLinkAttributesResult executeUpdateLinkAttributes(UpdateLinkAttributesRequest updateLinkAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateLinkAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,737,384 | private void showUploadConfirmationDialog(@NonNull FragmentActivity activity, @NonNull String actionButton, @Nullable SelectionModeListener listener) {<NEW_LINE>long[] size = new long[1];<NEW_LINE>List<SelectableItem<GpxInfo>> items = new ArrayList<>();<NEW_LINE>for (GpxInfo gpxInfo : selectedItems) {<NEW_LINE>Selectab... | gpxInfos = new ArrayList<>(); |
742,752 | final UpdatePackageResult executeUpdatePackage(UpdatePackageRequest updatePackageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updatePackageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | (super.beforeMarshalling(updatePackageRequest)); |
1,502,018 | public ChangeProgressStage unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ChangeProgressStage changeProgressStage = new ChangeProgressStage();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep... | class).unmarshall(context)); |
1,178,198 | protected static void handleDrop(TranscodeTarget target, TranscodeProfile profile, Object payload, int transcode_requirement) {<NEW_LINE>if (payload instanceof String[]) {<NEW_LINE>String[] files = (String[]) payload;<NEW_LINE>for (String file : files) {<NEW_LINE>File f = new File(file);<NEW_LINE>if (f.isFile()) {<NEW_... | target, profile, transcode_requirement, hash); |
62,044 | public void stop() {<NEW_LINE>if (!(this.workerState.changeStateDestroying())) {<NEW_LINE>CommonState state = this.workerState.getCurrentState();<NEW_LINE>logger.info("{} already {}.", this.getClass().getSimpleName(), state);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.info("{} destroying started.", this.getClass().get... | stopOffer = queue.offer(stopTask); |
1,148,920 | public static XYRectangle fromPointDistance(final float x, final float y, final float radius) {<NEW_LINE>checkVal(x);<NEW_LINE>checkVal(y);<NEW_LINE>if (radius < 0) {<NEW_LINE>throw new IllegalArgumentException("radius must be bigger than 0, got " + radius);<NEW_LINE>}<NEW_LINE>if (Float.isFinite(radius) == false) {<NE... | minX, maxX, minY, maxY); |
1,708,088 | public void fetch() {<NEW_LINE>Bukkit.getScheduler().runTaskAsynchronously(plugin, () -> {<NEW_LINE>try {<NEW_LINE>HttpsURLConnection con = (HttpsURLConnection) new URL("https://api.spigotmc.org/legacy/update.php?resource=" + RESOURCE_ID).openConnection();<NEW_LINE>con.setRequestMethod("GET");<NEW_LINE>spigotVersion = ... | getLogger().info("Failed to check for updates on spigot."); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.