idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
69,880 | public void loadUI() {<NEW_LINE>titleTxt.setText(dc.getTitle());<NEW_LINE>pannelBookTitle.setText(dc.getTitle());<NEW_LINE>createAdapter();<NEW_LINE>viewPager.addOnPageChangeListener(onViewPagerChangeListener);<NEW_LINE>viewPager.setCurrentItem(dc.getCurentPage(), false);<NEW_LINE>seekBar.setMax(dc.getPageCount() - 1);... | setTintImageWithAlpha(outline, Color.LTGRAY); |
196,174 | public void createPack(ReadableMap options, final Promise promise) throws JSONException {<NEW_LINE>final String name = ConvertUtils.getString("name", options, "");<NEW_LINE>final OfflineManager offlineManager = RCTMGLOfflineModule.getOfflineManager(mReactContext);<NEW_LINE>LatLngBounds latLngBounds = getBoundsFromOptio... | tilesetDescriptor = offlineManager.createTilesetDescriptor(descriptorOptions); |
1,699,066 | public static boolean drawImage(GC gc, Image image, Point srcStart, Rectangle dstRect, Rectangle clipping, int hOffset, int vOffset, boolean clearArea) {<NEW_LINE>Rectangle srcRect;<NEW_LINE>Point dstAdj;<NEW_LINE>if (clipping == null) {<NEW_LINE>dstAdj = new Point(0, 0);<NEW_LINE>srcRect = new Rectangle(srcStart.x, sr... | = srcStart.x + dstAdj.x; |
646,346 | private static void limitTotalMemory(final KsqlBoundedMemoryRocksDBConfig config, final LruCacheFactory cacheFactory, final WriteBufferManagerFactory bufferManagerFactory) {<NEW_LINE>final long blockCacheSize = config.getLong(KsqlBoundedMemoryRocksDBConfig.BLOCK_CACHE_SIZE);<NEW_LINE>final long totalMemtableMemory = co... | config.getDouble(KsqlBoundedMemoryRocksDBConfig.INDEX_FILTER_BLOCK_RATIO_CONFIG); |
788,875 | final DisassociateTransitGatewayRouteTableResult executeDisassociateTransitGatewayRouteTable(DisassociateTransitGatewayRouteTableRequest disassociateTransitGatewayRouteTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateTransitGatewayRouteTableRequest);<NEW_LINE>AWSRequestMet... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
815,077 | public void call(FullAccessIntArrPointer dst, int stride, ReadOnlyIntArrPointer above, ReadOnlyIntArrPointer left) {<NEW_LINE>PositionableIntArrPointer pLeft = PositionableIntArrPointer.makePositionable(left);<NEW_LINE>PositionableIntArrPointer pAbove = PositionableIntArrPointer.makePositionable(above);<NEW_LINE>final ... | (K, J, I)); |
1,097,146 | public boolean executeCommand(final String args) {<NEW_LINE>// get filenames<NEW_LINE>final String evalID = getProp().getPropertyString(ScriptProperties.ML_CONFIG_EVAL_FILE);<NEW_LINE>final String resourceID = getProp().getPropertyString(ScriptProperties.ML_CONFIG_MACHINE_LEARNING_FILE);<NEW_LINE>final String outputID ... | getScript().resolveFilename(evalID); |
672,723 | public List<Route> generateExternalRoutes(int pod) {<NEW_LINE>List<GenericKafkaListener> routeListeners = ListenersUtils.routeListeners(listeners);<NEW_LINE>List<Route> routes = new ArrayList<<MASK><NEW_LINE>for (GenericKafkaListener listener : routeListeners) {<NEW_LINE>String routeName = ListenersUtils.backwardsCompa... | >(routeListeners.size()); |
47,829 | Object convertInputIfNecessary(Object input) {<NEW_LINE>List<Object> convertedResults = new ArrayList<Object>();<NEW_LINE>if (input instanceof Tuple2) {<NEW_LINE>convertedResults.add(this.doConvert(((Tuple2) input).getT1(<MASK><NEW_LINE>convertedResults.add(this.doConvert(((Tuple2) input).getT2(), getInputArgumentType(... | ), getInputArgumentType(0))); |
1,437,342 | private String prepareMessage() {<NEW_LINE>StringBuilder builder = new StringBuilder("<html>");<NEW_LINE><MASK><NEW_LINE>LOG.assertTrue(notifications != null);<NEW_LINE>if (notifications.isEmpty() && !myNoChangesDetected) {<NEW_LINE>if (myProcessChangesTextOnly) {<NEW_LINE>builder.append("No lines changed: changes sinc... | LayoutCodeInfoCollector notifications = myProcessor.getInfoCollector(); |
1,049,013 | public Map<String, Map<String, PropertyMapping>> mappingsForFunction() {<NEW_LINE>Map<String, Map<String, PropertyMapping>> <MASK><NEW_LINE>Map<String, PropertyMapping> map = new HashMap<>();<NEW_LINE>val strideMapping = PropertyMapping.builder().tfAttrName("strides").onnxAttrName("strides").build();<NEW_LINE>val kerne... | ret = new HashMap<>(); |
1,550,601 | protected void doHealthCheck(Health.Builder builder) throws Exception {<NEW_LINE>try {<NEW_LINE>this.lock.lock();<NEW_LINE>if (this.adminClient == null) {<NEW_LINE>this.adminClient = AdminClient.create(this.adminClientProperties);<NEW_LINE>}<NEW_LINE>final ListTopicsResult listTopicsResult = this.adminClient.listTopics... | .withDetails(buildDetails(kStream)); |
1,494,098 | public void recordEntityLinkCreated(EntityLinkEntity entityLink) {<NEW_LINE>if (getHistoryConfigurationSettings().isHistoryEnabledForEntityLink(entityLink) && entityLink.getScopeId() != null) {<NEW_LINE>HistoricEntityLinkService historicEntityLinkService = cmmnEngineConfiguration.getEntityLinkServiceConfiguration().get... | setReferenceScopeId(entityLink.getReferenceScopeId()); |
166,061 | private void alignJoinClauses(QueryModel parent) {<NEW_LINE>ObjList<QueryModel> joinModels = parent.getJoinModels();<NEW_LINE>for (int i = 0, n = joinModels.size(); i < n; i++) {<NEW_LINE>JoinContext jc = joinModels.getQuick(i).getContext();<NEW_LINE>if (jc != null) {<NEW_LINE>int index = jc.slaveIndex;<NEW_LINE>for (i... | jc.aIndexes.getQuick(k); |
618,541 | public void handle(net.md_5.bungee.protocol.packet.Team team) throws Exception {<NEW_LINE><MASK><NEW_LINE>// Remove team and move on<NEW_LINE>if (team.getMode() == 1) {<NEW_LINE>serverScoreboard.removeTeam(team.getName());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Create or get old team<NEW_LINE>Team t;<NEW_LINE>if (team... | Scoreboard serverScoreboard = con.getServerSentScoreboard(); |
1,236,491 | private String cloneResource(long csCloneId, VolumeInfo volumeInfo, StoragePoolVO storagePoolVO) {<NEW_LINE>// get the cached template on this storage<NEW_LINE>VMTemplateStoragePoolVO tmplPoolRef = _vmTemplatePoolDao.findByPoolTemplate(storagePoolVO.getId(), csCloneId, null);<NEW_LINE>if (tmplPoolRef != null) {<NEW_LIN... | CloudRuntimeException("Clone for resource " + rscName + " failed."); |
1,382,624 | private JPanel buildControlsPanel() {<NEW_LINE>JPanel jbase = new JPanel(new BorderLayout());<NEW_LINE>JPanel jLeftPanel = new JPanel();<NEW_LINE>jLeftPanel.setLayout(new BorderLayout());<NEW_LINE>jLeftPanel.setBorder(new EmptyBorder(0, 0, 25, 0));<NEW_LINE>JLabel arrowIcon = new JLabel(UISupport.createImageIcon("/big_... | jControlsPanel.add(buildUserInfoPanel()); |
1,744,365 | public void updateICIOLAssociationFromIOL(@NonNull final I_C_InvoiceCandidate_InOutLine iciol, @NonNull final org.compiere.model.I_M_InOutLine inOutLine) {<NEW_LINE>iciol.setAD_Org_ID(inOutLine.getAD_Org_ID());<NEW_LINE>iciol.setM_InOutLine(inOutLine);<NEW_LINE>// iciol.setQtyInvoiced(QtyInvoiced); // will be set durin... | getC_Invoice_Candidate().getInvoicableQtyBasedOn()); |
1,156,435 | public Table display(@ShellOption(value = { "", "--id" }, help = "the task execution id") long id) {<NEW_LINE>TaskExecutionResource taskExecutionResource = taskOperations().taskExecutionStatus(id);<NEW_LINE>TableModelBuilder<Object> modelBuilder = new TableModelBuilder<>();<NEW_LINE>modelBuilder.addRow().addValue("Key ... | addValue(taskExecutionResource.getErrorMessage()); |
534,183 | public DetailedError unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DetailedError detailedError = new DetailedError();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_... | String currentParentElement = context.getCurrentParentElement(); |
1,457,011 | public static int hash(byte[] data, int offset, int length, int seed) {<NEW_LINE>int m = 0x5bd1e995;<NEW_LINE>int r = 24;<NEW_LINE>int h = seed ^ length;<NEW_LINE>int len4 = length >> 2;<NEW_LINE>for (int i = 0; i < len4; i++) {<NEW_LINE>int i4 <MASK><NEW_LINE>int k = data[i4 + 3];<NEW_LINE>k = k << 8;<NEW_LINE>k = k |... | = (i << 2) + offset; |
778,577 | public boolean visit(SQLBetweenExpr x) {<NEW_LINE>String begin = null;<NEW_LINE>if (x.beginExpr instanceof SQLCharExpr) {<NEW_LINE>begin = (String) ((SQLCharExpr) x.beginExpr).getValue();<NEW_LINE>} else {<NEW_LINE>begin = x.beginExpr.toString();<NEW_LINE>}<NEW_LINE>String end = null;<NEW_LINE>if (x.endExpr instanceof ... | x.endExpr).getValue(); |
56,012 | static PsiElement formatElement(@Nonnull PsiElement elementToFormat, @Nonnull TextRange range, boolean canChangeWhiteSpacesOnly) {<NEW_LINE>final PsiFile file = elementToFormat.getContainingFile();<NEW_LINE>final Document document = file.getViewProvider().getDocument();<NEW_LINE>if (document != null) {<NEW_LINE>final T... | ()).commitDocument(document); |
1,533,399 | public boolean encode(@NonNull Resource<Bitmap> resource, @NonNull File file, @NonNull Options options) {<NEW_LINE>final Bitmap bitmap = resource.get();<NEW_LINE>Bitmap.CompressFormat format = getFormat(bitmap, options);<NEW_LINE>GlideTrace.beginSectionFormat("encode: [%dx%d] %s", bitmap.getWidth(), bitmap.getHeight(),... | = new BufferedOutputStream(os, arrayPool); |
1,129,188 | public static DescribeTasksResponse unmarshall(DescribeTasksResponse describeTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeTasksResponse.setRequestId(_ctx.stringValue("DescribeTasksResponse.RequestId"));<NEW_LINE>describeTasksResponse.setPageNumber(_ctx.integerValue("DescribeTasksResponse.PageNumber"));<N... | ("DescribeTasksResponse.Items[" + i + "].Progress")); |
574,963 | public void handle(Map data) {<NEW_LINE>String dstCacheInstallPath = srcImageCache.getInstallUrl().replace(srcPrimaryStorage.getMountPath(<MASK><NEW_LINE>ImageCacheVO cvo = new ImageCacheVO();<NEW_LINE>cvo.setImageUuid(srcImageCache.getImageUuid());<NEW_LINE>cvo.setInstallUrl(dstCacheInstallPath);<NEW_LINE>cvo.setMd5su... | ), dstPrimaryStorage.getMountPath()); |
557,544 | public static ListChatRecordDetailResponse unmarshall(ListChatRecordDetailResponse listChatRecordDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>listChatRecordDetailResponse.setRequestId(_ctx.stringValue("ListChatRecordDetailResponse.RequestId"));<NEW_LINE>listChatRecordDetailResponse.setMessage(_ctx.stringValue("... | ("ListChatRecordDetailResponse.ResultData.Data[" + i + "].ServicerName")); |
763,862 | protected void onSaveInstanceState(@NonNull Bundle outState) {<NEW_LINE>// Log_OC.e(TAG, "onSaveInstanceState init" );<NEW_LINE>super.onSaveInstanceState(outState);<NEW_LINE>// / global state<NEW_LINE>outState.putLong(KEY_WAITING_FOR_OP_ID, mWaitingForOpId);<NEW_LINE>outState.putBoolean(KEY_IS_SSL_CONN, mServerInfo.mIs... | putString(KEY_HOST_URL_TEXT, mServerInfo.mBaseUrl); |
825,050 | private void puComboboxActionPerformed() {<NEW_LINE>if (puComboBox.getSelectedItem() != null) {<NEW_LINE>FileObject pXml = puObject.getPrimaryFile();<NEW_LINE>Project project = pXml != null ? FileOwnerQuery.getOwner(pXml) : null;<NEW_LINE>PersistenceEnvironment pe = project != null ? project.getLookup().lookup(Persiste... | get(puComboBox.getSelectedItem()); |
666,515 | private boolean writeToUsb(byte[] message) {<NEW_LINE>// System.out.println(">");<NEW_LINE>// RainbowHexDump.hexDumpUTF16LE(message); // DEBUG<NEW_LINE>// writeBuffer.order() equals BIG_ENDIAN;<NEW_LINE>ByteBuffer writeBuffer = ByteBuffer.allocateDirect(message.length);<NEW_LINE>// Don't do writeBuffer.rewind();<NEW_... | print("GL Execution interrupted", EMsgType.INFO); |
721,887 | final DeleteContactResult executeDeleteContact(DeleteContactRequest deleteContactRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteContactRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteContactRequest> request = null;<NE... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,027,543 | public Date parse(String source, ParsePosition pos) {<NEW_LINE>// if lenient ignore superfluous input..<NEW_LINE>if (patternEndsWithZ) {<NEW_LINE>if (source.length() > DATETIME_UTC_PATTERN.length() && !isLenient()) {<NEW_LINE>pos.setErrorIndex(DATETIME_UTC_PATTERN.length());<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>} ... | .substring(6, 8)); |
422,519 | public ListSetsResult retrieveSets(int offset, int length) {<NEW_LINE>// Only database sets (virtual sets are added by lyncode common library)<NEW_LINE>log.debug("Querying sets. Offset: " + offset + " - Length: " + length);<NEW_LINE>List<Set> array = new ArrayList<Set>();<NEW_LINE>int communityCount = this.getCommunity... | int collectionCount = this.getCollectionCount(); |
1,283,072 | protected void handlePost(final HttpServletRequest req, final HttpServletResponse resp, final Session session) throws ServletException, IOException {<NEW_LINE>try {<NEW_LINE>final String jsonPayload = HttpRequestUtils.getBody(req);<NEW_LINE>// Convert to GenericImageType DTO to transfer the input request<NEW_LINE>final... | String imageType = genericImageType.getName(); |
1,699,967 | public OResultSet execute(String language, String script, Map<String, ?> args) {<NEW_LINE>checkOpenness();<NEW_LINE>checkIfActive();<NEW_LINE>if (!"sql".equalsIgnoreCase(language)) {<NEW_LINE>checkSecurity(ORule.ResourceGeneric.COMMAND, ORole.PERMISSION_EXECUTE, language);<NEW_LINE>}<NEW_LINE>InterruptTimerTask command... | getCommandManager().getScriptExecutor(language); |
614,817 | private Builder addPutBlobHeaders(CreateBlobOptions options, Builder builder) {<NEW_LINE>builder = addOptionalHeader(builder, "Content-Type", options.getContentType());<NEW_LINE>if (options.getContentType() == null) {<NEW_LINE>// Note: Add content type here to enable proper HMAC signing<NEW_LINE>builder = builder.type(... | "x-ms-blob-content-language", options.getBlobContentLanguage()); |
174,412 | // GEN-LAST:event_editApplicationType<NEW_LINE>private void menuNewActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_menuNewActionPerformed<NEW_LINE>ApplicationType eat = ApplicationTypeManager.getDefault().newType("");<NEW_LINE>final ApplicationTypeForm form = new ApplicationTypeForm(eat);<... | getDefault().storeType(eat); |
756,475 | protected DefaultMutableTreeNode buildTree() {<NEW_LINE>// "Examples");<NEW_LINE>DefaultMutableTreeNode root = new DefaultMutableTreeNode();<NEW_LINE>try {<NEW_LINE>// Get the list of Mode-specific examples, in the order the Mode wants<NEW_LINE>// to present them (i.e. Basics, then Topics, then Demos...)<NEW_LINE>File[... | DefaultMutableTreeNode(subFolder.getName()); |
1,693,436 | public void mergeGraph(Graph to, Graph from) {<NEW_LINE>String toCount = to.getCount();<NEW_LINE>String fromCount = from.getCount();<NEW_LINE>long[] count = mergeLongValue(toCount, fromCount);<NEW_LINE>to.setCount(StringUtils.join(count, GraphTrendUtil.GRAPH_CHAR_SPLITTER));<NEW_LINE>String toSum = to.getSum();<NEW_LIN... | String fromFails = from.getFails(); |
890,165 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setTitle(R.string.settings_file_management_category);<NEW_LINE>if (savedInstanceState == null) {<NEW_LINE>sttFileManagement = new SettingsFileManagementFragment();<NEW_LINE>replaceFragment(sttFileManagement);<NEW_... | networkReceiver, new IntentFilter(BROADCAST_ACTION_INTENT_CONNECTIVITY_CHANGE)); |
1,150,506 | private KeyExchange receive_kexinit(Buffer buf) throws Exception {<NEW_LINE><MASK><NEW_LINE>if (j != buf.getLength()) {<NEW_LINE>// packet was compressed and<NEW_LINE>// j is the size of deflated packet.<NEW_LINE>buf.getByte();<NEW_LINE>I_S = new byte[buf.index - 5];<NEW_LINE>} else {<NEW_LINE>I_S = new byte[j - 1 - bu... | int j = buf.getInt(); |
1,744,977 | private void createLatencySlider() {<NEW_LINE>// Latency slider:<NEW_LINE>this.m_latencyTimeSlider = new JSlider(10, 210);<NEW_LINE>this.m_latencyTimeSlider.setBackground(Color.WHITE);<NEW_LINE>this.m_latencyTimeSlider.setValue((int) Showcase.this.getCollector().getLatency());<NEW_LINE>this.m_latencyTimeSlider.setMajor... | this.m_latencyTimeSlider.setMinorTickSpacing(10); |
1,127,416 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@public create window MyWindow#keepall as SupportBean_ST0;\n" + "on SupportBean_A delete from MyWindow;\n" + "insert into MyWindow select * from SupportBean_ST0;\n";<NEW_LINE>env.compileDeploy(epl, p... | new SupportBean("E1", 1)); |
1,264,343 | public Jooby start(@Nonnull Server server) {<NEW_LINE>Path tmpdir = getTmpdir();<NEW_LINE>ensureTmpdir(tmpdir);<NEW_LINE>if (mode == null) {<NEW_LINE>mode = ExecutionMode.DEFAULT;<NEW_LINE>}<NEW_LINE>if (locales == null) {<NEW_LINE>String path = "application.lang";<NEW_LINE>locales = Optional.of(getConfig()).filter(c -... | (Locale.getDefault())); |
548,128 | public void executeAction(final WorkflowProcessor processor, final Map<String, WorkflowActionClassParameter> params) throws WorkflowActionFailureException {<NEW_LINE>try {<NEW_LINE>final User currentUser = processor.getUser();<NEW_LINE>final HttpServletRequest request = null == HttpServletRequestThreadLocal.INSTANCE.ge... | String resultKey = keyParameter.getValue(); |
1,081,225 | public void visit(TypeDefinitionNode typeDefinitionNode) {<NEW_LINE>int type = TokenTypes.TYPE.getId();<NEW_LINE>int modifiers = 0;<NEW_LINE>Node typeDescriptor = typeDefinitionNode.typeDescriptor();<NEW_LINE>switch(typeDescriptor.kind()) {<NEW_LINE>case OBJECT_TYPE_DESC:<NEW_LINE>type = TokenTypes.INTERFACE.getId();<N... | | TokenTypeModifiers.READONLY.getId(); |
1,337,894 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.... | find(id, Reveal.class); |
1,851,572 | public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) {<NEW_LINE>if (!mThreadIndicatorEnabled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (int i = 0; i < parent.getChildCount(); i++) {<NEW_LINE>View child = parent.getChildAt(i);<NEW_LINE>int level = parent.<MASK><NEW_LINE>for (int j = 0; j < l... | getChildViewHolder(child).getItemViewType(); |
996,347 | public List<Map<String, Object>> trimIntermediateResultsMap(Map<String, Object[]> intermediateResultsMap) {<NEW_LINE>int numAggregationFunctions = _aggregationFunctions.length;<NEW_LINE>Map<String, Object>[] trimmedResultMaps = new Map[numAggregationFunctions];<NEW_LINE>int numGroups = intermediateResultsMap.size();<NE... | = new HashMap<>(_trimSize); |
810,571 | private MethodSpec generateRequestOptionOverride(TypeName typeToOverrideIn, ExecutableElement methodToOverride) {<NEW_LINE>MethodSpec.Builder result = processorUtil.overriding(methodToOverride).returns(typeToOverrideIn);<NEW_LINE>result.addCode(CodeBlock.builder().add("return ($T) super.$N(", typeToOverrideIn, methodTo... | (");\n").build()); |
426,319 | final DeleteEventResult executeDeleteEvent(DeleteEventRequest deleteEventRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEventRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteEventRequest> request = null;<NEW_LINE>Respo... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,343,001 | private <K, V> CompletableFuture<StatefulRedisClusterConnection<K, V>> connectClusterAsync(RedisCodec<K, V> codec) {<NEW_LINE>if (partitions == null) {<NEW_LINE>return Futures.failed(new IllegalStateException("Partitions not initialized. Initialize via RedisClusterClient.getPartitions()."));<NEW_LINE>}<NEW_LINE>topolog... | CommandListenerWriter(writer, getCommandListeners()); |
1,327,397 | /* Build call for applicationsGenerateKeysPost */<NEW_LINE>private com.squareup.okhttp.Call applicationsGenerateKeysPostCall(String applicationId, ApplicationKeyGenerateRequest body, String contentType, String ifMatch, String ifUnmodifiedSince, final ProgressResponseBody.ProgressListener progressListener, final Progres... | localVarHeaderParams.put("Content-Type", localVarContentType); |
530,415 | public Optional<DocOutBoundRecipient> provideMailRecipient(@NonNull final DocOutboundLogMailRecipientRequest request) {<NEW_LINE>if (request.getRecordRef() == null) {<NEW_LINE>Loggables.addLog("provideMailRecipient - docOutboundLogRecord has no AD_Table_ID/Record_ID => return 'no recipient'; request={}", request);<NEW_... | .getRecordRef().getTableName(); |
1,251,722 | public Request<DescribeDominantLanguageDetectionJobRequest> marshall(DescribeDominantLanguageDetectionJobRequest describeDominantLanguageDetectionJobRequest) {<NEW_LINE>if (describeDominantLanguageDetectionJobRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeDomina... | t.getMessage(), t); |
542,628 | public void visit(Node<E> expressionNode) {<NEW_LINE>if (expressionNode instanceof ArangoDBSelect) {<NEW_LINE>visit((ArangoDBSelect<E>) expressionNode);<NEW_LINE>} else if (expressionNode instanceof ColumnReferenceNode<?, ?>) {<NEW_LINE>visit((ColumnReferenceNode<MASK><NEW_LINE>} else if (expressionNode instanceof Aran... | <E, ?>) expressionNode); |
433,042 | public int compareTo(setTableProperty_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTinfo(), other.isSetTinfo());<NEW_LINE... | this.value, other.value); |
211,259 | protected SootMethod generateRedirectMethodForStartActivity(SootClass wrapper) {<NEW_LINE>SootMethod targetDummyMain = componentToEntryPoint.getEntryPoint(wrapper);<NEW_LINE>if (targetDummyMain == null) {<NEW_LINE>logger.warn("Destination component {} has no dummy main method", wrapper.getName());<NEW_LINE>return null;... | newSM.addTag(SimulatedCodeElementTag.TAG); |
658,030 | public void glVertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, Buffer buffer) {<NEW_LINE>if (buffer instanceof ByteBuffer) {<NEW_LINE>if (type == GL_BYTE)<NEW_LINE>GLES20.glVertexAttribPointer(indx, size, type, normalized, stride, (ByteBuffer) buffer);<NEW_LINE>else if (type == GL_UNSIG... | ) buffer).asFloatBuffer()); |
580,821 | final PublishFunctionResult executePublishFunction(PublishFunctionRequest publishFunctionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(publishFunctionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | (super.beforeMarshalling(publishFunctionRequest)); |
592,731 | public Result deleteYb(UUID customerUUID) {<NEW_LINE>Customer customer = Customer.getOrBadRequest(customerUUID);<NEW_LINE>DeleteBackupParams deleteBackupParams = parseJsonAndValidate(DeleteBackupParams.class);<NEW_LINE>List<YBPTask> taskList = new ArrayList<>();<NEW_LINE>for (DeleteBackupInfo deleteBackupInfo : deleteB... | LOG.debug("Backup {} is already in queue for deletion", backupUUID); |
922,671 | final DescribeRoleAliasResult executeDescribeRoleAlias(DescribeRoleAliasRequest describeRoleAliasRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRoleAliasRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT"); |
49,283 | public static void main(String[] args) throws IOException {<NEW_LINE>String imagePath = AddText.class.getClassLoader().<MASK><NEW_LINE>ImagePlus resultPlus = signImageImageProcessor("www.baeldung.com", imagePath);<NEW_LINE>resultPlus.show();<NEW_LINE>ImagePlus resultGraphics = new ImagePlus("", signImageGraphics("www.b... | getResource("lena.jpg").getPath(); |
1,324,547 | final DeleteApplicationInputProcessingConfigurationResult executeDeleteApplicationInputProcessingConfiguration(DeleteApplicationInputProcessingConfigurationRequest deleteApplicationInputProcessingConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApplicationInputProcessing... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
909,297 | private void updateDatabase() {<NEW_LINE>Queue<RLPElement> rlpElementQueue = decodeQueue(bootstrapDataProvider.getBootstrapData());<NEW_LINE><MASK><NEW_LINE>logger.debug("Inserting blocks...");<NEW_LINE>insertBlocks(blockStore, blockFactory, Objects.requireNonNull(rlpElementQueue.poll()));<NEW_LINE>logger.debug("Blocks... | long start = System.currentTimeMillis(); |
1,056,584 | public void invokeBeforeGroupsConfigurations(GroupConfigMethodArguments arguments) {<NEW_LINE>List<ITestNGMethod<MASK><NEW_LINE>String[] groups = arguments.getTestMethod().getGroups();<NEW_LINE>for (String group : groups) {<NEW_LINE>List<ITestNGMethod> methods = arguments.getGroupMethods().getBeforeGroupMethodsForGroup... | > filteredMethods = Lists.newArrayList(); |
811,086 | public AbstractBlockProcessor.Result processBlock(final Blockchain blockchain, final MutableWorldState worldState, final BlockHeader blockHeader, final List<Transaction> transactions, final List<BlockHeader> ommers) {<NEW_LINE>long gasUsed = 0;<NEW_LINE>final List<TransactionReceipt> <MASK><NEW_LINE>for (final Transact... | receipts = new ArrayList<>(); |
765,576 | public void acceptLocalVariable(LocalVariableBinding binding, org.eclipse.jdt.internal.compiler.env.ICompilationUnit unit) {<NEW_LINE>LocalDeclaration local = binding.declaration;<NEW_LINE>IJavaElement parent = null;<NEW_LINE>if (binding.declaringScope.isLambdaSubscope() && unit instanceof ICompilationUnit) {<NEW_LINE>... | System.out.print("SELECTION - accept local variable("); |
485,179 | public static void copyResourceAscii(final String resourceName, final File file) throws IOException {<NEW_LINE>try (final InputStreamReader reader = new InputStreamReader(ManagedFile.class.getResourceAsStream(resourceName))) {<NEW_LINE>final MessageDigest digest = getDigest();<NEW_LINE>try (final DigestOutputStream dig... | 1, digest.digest()); |
621,375 | protected static ParsedSchema lookupLatestVersion(SchemaRegistryClient schemaRegistry, String subject, ParsedSchema schema, Map<SubjectSchema, ParsedSchema> cache, boolean latestCompatStrict) throws IOException, RestClientException {<NEW_LINE>SubjectSchema ss = new SubjectSchema(subject, schema);<NEW_LINE>ParsedSchema ... | + schemaMetadata.getSchemaType())); |
839,692 | public void highlightAyah(int surah, int ayah, int word, HighlightType type) {<NEW_LINE>final Set<AyahHighlight> highlights = currentHighlights.get(type);<NEW_LINE>final SingleAyahHighlight singleAyahHighlight = new SingleAyahHighlight(surah, ayah, word);<NEW_LINE>if (highlights == null) {<NEW_LINE>final Set<AyahHighli... | .INSTANCE.getAnimationConfig(type)); |
226,371 | public ICapabilityProvider initCapabilities(@Nonnull ItemStack stack, @Nullable NBTTagCompound nbt) {<NEW_LINE>ICapabilityProvider capProvider = new ICapabilityProvider() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean hasCapability(@Nonnull Capability<?> capability, @Nullable EnumFacing facing) {<NEW_LINE>retur... | (stack)], "Enum.values() has a null")); |
1,048,107 | static List<InstalledXcode> findXcodes() {<NEW_LINE>List<InstalledXcode> xcodes = new ArrayList<>();<NEW_LINE>// On macOS, we assume co-located Xcode is installed into /opt/xcode<NEW_LINE>File rootXcodeInstall = new File("/opt/xcode");<NEW_LINE>List<File> xcodeCandidates = Lists.newArrayList(Arrays.asList(GUtil.getOrDe... | ())).getOut(); |
697,686 | private static void withinHtml(StringBuilder out, Spanned text) {<NEW_LINE>int len = text.length();<NEW_LINE>int next;<NEW_LINE>for (int i = 0; i < text.length(); i = next) {<NEW_LINE>next = text.nextSpanTransition(i, len, ParagraphStyle.class);<NEW_LINE>ParagraphStyle[] style = text.getSpans(i, next, ParagraphStyle.cl... | out, text, i, next); |
511,087 | /*<NEW_LINE>* A record of default values that represent the value of the<NEW_LINE>* outputs if the route is filtered / dropped in the policy<NEW_LINE>*/<NEW_LINE>@VisibleForTesting<NEW_LINE>BDDRoute zeroedRecord() {<NEW_LINE>BDDRoute rec = new BDDRoute(_factory, _configAtomicPredicates.getCommunityAtomicPredicates().ge... | getTag().setValue(0); |
1,030,636 | private <T> void forAllSuperclasses(JApiClass jApiClass, Map<String, JApiClass> classMap, List<T> returnValues, OnSuperclassCallback<T> onSuperclassCallback) {<NEW_LINE>JApiSuperclass superclass = jApiClass.getSuperclass();<NEW_LINE>if (superclass.getNewSuperclassName().isPresent()) {<NEW_LINE>String newSuperclassName ... | > superclassJApiClassOptional = superclass.getJApiClass(); |
1,066,214 | public DescribeIdentityPoolUsageResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeIdentityPoolUsageResult describeIdentityPoolUsageResult = new DescribeIdentityPoolUsageResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | int originalDepth = context.getCurrentDepth(); |
1,181,090 | // we need to produce a correct DER encoding GeneralizedTime here as the BC ASN.1 library doesn't handle this properly yet.<NEW_LINE>private ASN1GeneralizedTime createGeneralizedTime(Date time) throws TSPException {<NEW_LINE>String format = "yyyyMMddHHmmss.SSS";<NEW_LINE>SimpleDateFormat dateF = (locale == null) ? new ... | (0, dotIndex + 2)); |
460,725 | private void initialize(int n) {<NEW_LINE>if (columnNames == null || columnNames.size() != n) {<NEW_LINE>columnNames = createDefaultColumnNames(n);<NEW_LINE>}<NEW_LINE>exampleCountPerColumn = Nd4j.zeros(DataType.DOUBLE, n);<NEW_LINE>labelsSumPerColumn = Nd4j.zeros(DataType.DOUBLE, n);<NEW_LINE>sumSquaredErrorsPerColumn... | zeros(DataType.DOUBLE, n); |
1,284,774 | public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws Exception {<NEW_LINE>List<String> tservers;<NEW_LINE>ManagerMonitorInfo stats;<NEW_LINE>ManagerClientService.Iface client = null;<NEW_LINE>ClientContext context = shellState.getContext();<NEW_LINE>while (true) {<NEW_LINE>t... | (tserverOption.getOpt())); |
1,679,885 | public void onNestedScroll(@NonNull final CoordinatorLayout coordinatorLayout, @NonNull final FloatingActionButton fab, @NonNull final View target, final int dxConsumed, final int dyConsumed, final int dxUnconsumed, final int dyUnconsumed, final int type) {<NEW_LINE>super.onNestedScroll(coordinatorLayout, fab, target, ... | dyConsumed, dxUnconsumed, dyUnconsumed, type); |
818,151 | private Storage32 clearSparse(int index) {<NEW_LINE>assert size > 0;<NEW_LINE>long unsignedIndex = toUnsignedLong(index);<NEW_LINE>int position = unsignedBinarySearch(indexes, size, unsignedIndex);<NEW_LINE>if (position < 0) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>--size;<NEW_LINE>if (size == 0) {<NEW_LINE>// Empti... | 0, newValues, 0, position); |
1,571,140 | private CompletableFuture<ContainerHandle> startContainerInternal(int containerId) {<NEW_LINE>ContainerWithHandle newContainer = new ContainerWithHandle(this.factory.createStreamSegmentContainer(containerId), new SegmentContainerHandle(containerId));<NEW_LINE>ContainerWithHandle existingContainer = this.containers.putI... | log.info("Registered SegmentContainer {}.", containerId); |
884,190 | public static void main(String[] args) {<NEW_LINE>final Scanner scanner = new Scanner(System.in);<NEW_LINE>System.out.println("\n=========================================================" + "\n " + "\n Welcome to the Spring Integration JMS Sample! " + "\... | System.out.println("\t2. Gateway Demo"); |
1,703,804 | public String generateKey(JobParameters source) {<NEW_LINE>Assert.notNull(source, "source must not be null");<NEW_LINE>Map<String, JobParameter<MASK><NEW_LINE>StringBuilder stringBuffer = new StringBuilder();<NEW_LINE>List<String> keys = new ArrayList<>(props.keySet());<NEW_LINE>Collections.sort(keys);<NEW_LINE>for (St... | > props = source.getParameters(); |
1,473,139 | public static double ceilPowerOfTwo(double x) {<NEW_LINE>checkArgument(x > 0.0, "Input must be positive. Provided value: %s", x);<NEW_LINE>checkArgument(Double.isFinite(x), "Input must be finite. Provided value: %s", x);<NEW_LINE>checkArgument(!Double.isNaN(x), "Input must be a number. Provided value: NaN");<NEW_LINE>/... | doubleToLongBits(Double.MAX_VALUE) & exponentMask; |
1,462,694 | char doForeign(StaticObject array, int index, @CachedLibrary(limit = "LIMIT") InteropLibrary arrayInterop, @CachedLibrary(limit = "LIMIT") InteropLibrary elemInterop, @Bind("getContext()") EspressoContext context, @Cached BranchProfile exceptionProfile) {<NEW_LINE><MASK><NEW_LINE>Meta meta = context.getMeta();<NEW_LINE... | assert !StaticObject.isNull(array); |
1,816,892 | public boolean checkAtInjectValidator() {<NEW_LINE>Set<ConstraintViolation<AValidationXMLTestBean2>> cvSet = injectedValidator.validate(this);<NEW_LINE>if (cvSet != null && !cvSet.isEmpty()) {<NEW_LINE>svLogger.log(Level.INFO, CLASS_NAME, "found " + cvSet.size() + " contstraints " <MASK><NEW_LINE>return false;<NEW_LINE... | + "when there shouldn't have been any: " + formatConstraintViolations(cvSet)); |
833,688 | public GTreeNode findSymbolTreeNode(SymbolNode key, boolean loadChildren, TaskMonitor monitor) {<NEW_LINE>// if we don't have to loadChildren and we are not loaded get out.<NEW_LINE>if (!loadChildren && !isLoaded()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<GTreeNode> children = getChildren();<NEW_LINE>int index... | children, key, getChildrenComparator()); |
1,619,906 | public void updateWorkerStatus(int workerId, WorkerStatus newStatus) {<NEW_LINE>try (LockWrapper ignore = lock.openWriteLock()) {<NEW_LINE>if (server2WorkerInfo.containsKey(workerId)) {<NEW_LINE>WorkerInfo originWorkerInfo = server2WorkerInfo.get(workerId);<NEW_LINE>WorkerInfo newWorkerInfo;<NEW_LINE>if (originWorkerIn... | remove(originWorkerInfo.roleType, originWorkerInfo); |
757,553 | private Attributes extract(Attributes emf, int frame, String cuid, boolean enhanced) {<NEW_LINE>Attributes dest = new Attributes(emf.size() * 2);<NEW_LINE>dest.addNotSelected(emf, EXCLUDE_TAGS);<NEW_LINE>if (enhanced) {<NEW_LINE>Attributes sfgs = emf.getNestedDataset(Tag.SharedFunctionalGroupsSequence);<NEW_LINE>if (sf... | dest.remove(Tag.FrameType); |
90,476 | protected Round createRoundRandom() {<NEW_LINE>Round round = new Round(rounds.<MASK><NEW_LINE>rounds.add(round);<NEW_LINE>List<TournamentPlayer> roundPlayers = getActivePlayers();<NEW_LINE>// search the player with a bye last round<NEW_LINE>List<TournamentPlayer> playerWithByes = getTournamentPlayersWithBye(roundPlayer... | size() + 1, this); |
446,214 | private void createPP_Order_Report_Lines(final IQualityInspectionOrder qiOrder) {<NEW_LINE>//<NEW_LINE>// Create Quality Inspection Lines<NEW_LINE>final IVendorReceipt<Object> receiptFromVendor = createVendorReceipt(qiOrder);<NEW_LINE>// the averaged values are only required when we invoice<NEW_LINE>final boolean build... | PPOrderReportWriter(qiOrder.getPP_Order()); |
1,677,227 | public void executeQuery(KeyNamePair docTypeKNPair, IMiniTable miniTable) {<NEW_LINE>log.info("");<NEW_LINE>int AD_Client_ID = Env.getAD_Client_ID(Env.getCtx());<NEW_LINE>// Create SQL<NEW_LINE>String sql = "";<NEW_LINE>if (docTypeKNPair.getKey() == MOrder.Table_ID) {<NEW_LINE>sql = getOrderSQL();<NEW_LINE>} else {<NEW... | (5), row, 4); |
1,227,278 | public static ClusterMember[] parse(final String value) {<NEW_LINE>if (null == value || value.length() == 0) {<NEW_LINE>return ClusterMember.EMPTY_MEMBERS;<NEW_LINE>}<NEW_LINE>final String[] <MASK><NEW_LINE>final int length = memberValues.length;<NEW_LINE>final ClusterMember[] members = new ClusterMember[length];<NEW_L... | memberValues = value.split("\\|"); |
311,614 | public void execute(LuckPermsPlugin plugin, Sender sender, PermissionHolder target, ArgumentList args, String label, CommandPermission permission) throws CommandException {<NEW_LINE>if (ArgumentPermissions.checkModifyPerms(plugin, sender, permission, target)) {<NEW_LINE>Message.COMMAND_NO_PERMISSION.send(sender);<NEW_L... | ).submit(plugin, sender); |
76,301 | public void run() {<NEW_LINE>if (auditLog != null) {<NEW_LINE>auditLog.logMessage(listenerThreadName, OMRSAuditCode.OPEN_METADATA_TOPIC_LISTENER_START.getMessageDefinition(topicName), this.getConnection().toString());<NEW_LINE>}<NEW_LINE>while (keepRunning) {<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>List<MASK><NEW_LINE>i... | <IncomingEvent> receivedEvents = checkForIncomingEvents(); |
745,394 | public void compactionCompleted(TInfo tinfo, TCredentials credentials, String externalCompactionId, TKeyExtent textent, TCompactionStats stats) throws ThriftSecurityException {<NEW_LINE>// do not expect users to call this directly, expect other tservers to call this method<NEW_LINE>if (!security.canPerformSystemActions... | LOG.warn("Compaction completed called by Compactor for {}, but no running compaction for that id.", externalCompactionId); |
224,432 | public static void showVoiceProviderDialog(final MapActivity activity, final ApplicationMode applicationMode, final boolean applyAllModes) {<NEW_LINE>OsmandApplication app = activity.getMyApplication();<NEW_LINE>final OsmandSettings settings = app.getSettings();<NEW_LINE>boolean nightMode = app.getDaynightHelper().isNi... | VOICE_MUTE.setModeValue(applicationMode, true); |
1,666,809 | protected int checkErrors(DataBackup dataBackup, List<MetaModel> metaModelList, String tempDirectoryPath, Map<String, List<String>> subClassesMap) {<NEW_LINE>int errorsCount = 0;<NEW_LINE>for (MetaModel metaModel : metaModelList) {<NEW_LINE>try {<NEW_LINE>List<String> subClasses = subClassesMap.get(metaModel.getFullNam... | "Checking Model : " + metaModel.getFullName()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.