idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
772,295 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.microsoft.windowsazure.services.media.entityoperations.EntityContract<NEW_LINE>* #delete(com.microsoft.windowsazure.services.media.entityoperations.<NEW_LINE>* EntityDeleteOperation)<NEW_LINE>* @return operation-id if any otherwise null.<NEW_LINE>*/<... | ).delete(ClientResponse.class); |
1,832,487 | public okhttp3.Call apisApiIdSdksLanguageGetCall(String apiId, String language, String xWSO2Tenant, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/{apiId}/sdks/{language}".replaceAll("\\{" + "api... | localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); |
1,704,845 | public Builder clear() {<NEW_LINE>super.clear();<NEW_LINE>ruleName_ = "";<NEW_LINE>functionName_ = "";<NEW_LINE>inputStringAttrName_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY;<NEW_LINE>bitField0_ = (bitField0_ & ~0x00000001);<NEW_LINE>outputStringAttrName_ = org.nd4j.shade.protobuf.LazyStringArrayList.EMPTY;<... | .shade.protobuf.LazyStringArrayList.EMPTY; |
1,692,154 | private void updateLabels() {<NEW_LINE>String src = getFirstNotNullTrimmed(sourceText.getText(), "");<NEW_LINE>boolean validSource = isFileAccesible(src);<NEW_LINE>IPath path = Path.fromOSString(src);<NEW_LINE>String filename = (src.isEmpty() || path.isEmpty()) ? "Invalid" : path.segment(path.segmentCount() - 1);<NEW_L... | TransformType.MPC.getSuffix()); |
1,232,848 | private void createSetResultMethod() {<NEW_LINE>// We need to create an implementation of "getIntent". If there is already such<NEW_LINE>// an implementation, we don't touch it.<NEW_LINE>if (component.declaresMethod("void setResult(int,android.content.Intent)"))<NEW_LINE>return;<NEW_LINE>Type intentType = RefType.v("an... | v(), Modifier.PUBLIC); |
1,196,560 | private void reposition() {<NEW_LINE>// If we're detached, no need to redraw anything.<NEW_LINE>if (!attached_ || ele_ == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// If we're still on the same row, no need to redraw anything<NEW_LINE>int row = anchor_.getRow();<NEW_LINE>if (row == row_) {<NEW_LINE>return;<NEW_LINE>... | lines[row].getStyle(); |
978,443 | public String convert(String s, int numRows) {<NEW_LINE>if (numRows == 1 || numRows >= s.length())<NEW_LINE>return s;<NEW_LINE>ArrayList<String> <MASK><NEW_LINE>for (int i = 0; i < Math.min(numRows, s.length()); i++) arrLL.add("");<NEW_LINE>int counter = 0;<NEW_LINE>boolean b = false;<NEW_LINE>int size = Math.min(numRo... | arrLL = new ArrayList<>(); |
680,150 | public ECPoint twice() {<NEW_LINE>if (this.isInfinity()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>ECCurve curve = this.getCurve();<NEW_LINE>ECFieldElement X1 = this.x;<NEW_LINE>if (X1.isZero()) {<NEW_LINE>// A point with X == 0 is its own additive inverse<NEW_LINE>return curve.getInfinity();<NEW_LINE>}<NEW_LINE>ECFi... | L1 : L1.multiply(Z1); |
1,219,043 | public static Map<String, Object> javaTypeToDatabaseType(SecurityContext securityContext, Class<? extends GraphObject> entity, PropertyMap properties) throws FrameworkException {<NEW_LINE>Map<String, Object> databaseTypedProperties = new LinkedHashMap<>();<NEW_LINE>for (Entry<PropertyKey, Object> entry : properties.ent... | propertyKey.typeName() + "."); |
1,830,685 | final DeleteTranscriptionJobResult executeDeleteTranscriptionJob(DeleteTranscriptionJobRequest deleteTranscriptionJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTranscriptionJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,074,038 | private static void executeCommandForPid(String pid, String command) throws AttachNotSupportedException, IOException, UnsupportedEncodingException {<NEW_LINE>VirtualMachine vm = VirtualMachine.attach(pid);<NEW_LINE>// Cast to HotSpotVirtualMachine as this is an<NEW_LINE>// implementation specific method.<NEW_LINE>HotSp... | System.out.println("Command executed successfully"); |
1,768,825 | private void createSessionDiagnosticsVariable(Session session) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>String id = Util.buildBrowseNamePath(node) + "[" + index + "]";<NEW_LINE>NodeId elementNodeId = new NodeId(1, id);<NEW_LINE>SessionDiagnosticsVariableTypeNode elementNode = (SessionDiagnosticsVariableTypeNode) nodeF... | int index = sessionDiagnosticsVariables.size(); |
1,321,189 | public static List<TraceView> decodeFromTraceTransData(String key, MessageExt messageExt) {<NEW_LINE>List<TraceView> messageTraceViewList = new ArrayList<TraceView>();<NEW_LINE>String messageBody = new String(messageExt.getBody(), StandardCharsets.UTF_8);<NEW_LINE>if (messageBody == null || messageBody.length() <= 0) {... | setCostTime(context.getCostTime()); |
1,176,857 | public Long validate(Context context) throws AxelorException {<NEW_LINE>if (!appProductionService.isApp("production") || !appProductionService.getAppProduction().getManageBusinessProduction()) {<NEW_LINE>return super.validate(context);<NEW_LINE>}<NEW_LINE>Map<String, Object> bomContext = (Map<String, Object>) context.g... | "id")).longValue()); |
645,991 | public boolean visit(MySqlJSONTableExpr.Column x) {<NEW_LINE>x.getName().accept(this);<NEW_LINE>if (x.isOrdinality()) {<NEW_LINE>print0(ucase ? " FOR ORDINALITY" : " for ordinality");<NEW_LINE>}<NEW_LINE>SQLDataType dataType = x.getDataType();<NEW_LINE>if (dataType != null) {<NEW_LINE>print(' ');<NEW_LINE>dataType.acce... | SQLExpr onError = x.getOnError(); |
324,302 | public void registerView(Object forDSTypeOrViewID, UISWTViewBuilderCore builder) {<NEW_LINE>boolean skipWarning = false;<NEW_LINE>if (forDSTypeOrViewID == null) {<NEW_LINE>forDSTypeOrViewID = UISWTInstance.VIEW_MAIN;<NEW_LINE>} else if (forDSTypeOrViewID instanceof String) {<NEW_LINE>// Legacy convert. Older plugins re... | UISWTViewBuilderCore> builderMap = getBuilderMap(forDSTypeOrViewID); |
106,016 | private static void sendTransactionsToListener(StoredBlock block, NewBlockType blockType, TransactionReceivedInBlockListener listener, int relativityOffset, List<Transaction> transactions, boolean clone, Set<Sha256Hash> falsePositives) throws VerificationException {<NEW_LINE>for (Transaction tx : transactions) {<NEW_LI... | remove(tx.getTxId()); |
339,326 | public KrollPromise<KrollDict> requestPhotoGalleryPermissions(@Kroll.argument(optional = true) KrollFunction permissionCallback) {<NEW_LINE>final KrollObject callbackThisObject = getKrollObject();<NEW_LINE>return KrollPromise.create((promise) -> {<NEW_LINE>// Do not continue if we already have permission.<NEW_LINE>if (... | .WRITE_EXTERNAL_STORAGE }, TiC.PERMISSION_CODE_EXTERNAL_STORAGE); |
722,723 | protected void formatSnippet(FilePosition errorPosition, FilePosition snippetPos, CharSequence line, int start, int end, Appendable out) throws IOException {<NEW_LINE>// Write out "file:14: <line-of-sourcecode>"<NEW_LINE>StringBuilder posBuf = new StringBuilder();<NEW_LINE>formatFilePosition(snippetPos, posBuf);<NEW_LI... | ), nExtraSpaces + nExtraCarets, out); |
1,331,921 | public com.amazonaws.services.frauddetector.model.ConflictException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.frauddetector.model.ConflictException conflictException = new com.amazonaws.services.frauddetector.model.ConflictException(null);<NEW_LINE>int ori... | String currentParentElement = context.getCurrentParentElement(); |
262,242 | public void translate(ProxySession session, ServerBossBarPacket packet) {<NEW_LINE>BossEventPacket bossEventPacket = new BossEventPacket();<NEW_LINE>bossEventPacket.setColor(1);<NEW_LINE>bossEventPacket.setOverlay(1);<NEW_LINE>bossEventPacket.setDarkenSky(1);<NEW_LINE>bossEventPacket.setPlayerUniqueEntityId(session.get... | setHealthPercentage(packet.getHealth()); |
1,121,895 | private void checkIncrementAndDecrement(Object data, Set<String> loopVariables, ASTStatement loopBody, IgnoreFlags... ignoreFlags) {<NEW_LINE>// foo ++ and foo --<NEW_LINE>for (ASTPostfixExpression expression : loopBody.findDescendantsOfType(ASTPostfixExpression.class)) {<NEW_LINE>if (ignoreNode(expression, loopBody, i... | loopVariables, loopBody, true, ignoreFlags); |
1,814,319 | private void resizeVolume(VolumeInfo volumeInfo) {<NEW_LINE>LOGGER.debug("Resizing PowerFlex volume");<NEW_LINE>Preconditions.checkArgument(volumeInfo != null, "volumeInfo cannot be null");<NEW_LINE>try {<NEW_LINE>String scaleIOVolumeId = ScaleIOUtil.getVolumePath(volumeInfo.getPath());<NEW_LINE>Long storagePoolId = vo... | "Failed to resize volume: " + volumeInfo.getName()); |
1,392,993 | public void registerAsyncAction() {<NEW_LINE>pythonContext.registerAsyncAction(() -> {<NEW_LINE>Reference<? extends Object> reference = null;<NEW_LINE>try {<NEW_LINE>reference = queue.remove();<NEW_LINE>} catch (InterruptedException e) {<NEW_LINE>Thread.currentThread().interrupt();<NEW_LINE>}<NEW_LINE>ArrayList<AsyncAc... | new SharedFinalizerErrorCallback(object, e)); |
401,712 | public static void addSymbols(IProcess process, long j9RasAddress, StructureReader structureReader) {<NEW_LINE>long vmAddress = 0;<NEW_LINE>try {<NEW_LINE>vmAddress = followPointerFromStructure("J9RAS", j9RasAddress, "vm", structureReader, process);<NEW_LINE>} catch (MemoryFault e) {<NEW_LINE>Logger logger = Logger.get... | log(FINE, null, e); |
1,189,536 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
418,785 | public InstrumentInterval instrumentGetActiveIntervals() throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/instrument/activeIntervals";<NEW_LINE>// query params<NEW_LINE>List<Pair> queryPa... | = new ArrayList<Pair>(); |
1,052,220 | public static ExecutionStatus tryCatchException(Exception e) {<NEW_LINE>ExecutionStatus responseResult = new ExecutionStatus();<NEW_LINE>if (e instanceof QueryProcessException) {<NEW_LINE>responseResult.setMessage(e.getMessage());<NEW_LINE>responseResult.setCode(((QueryProcessException) e).getErrorCode());<NEW_LINE>} e... | ) e).getErrorCode()); |
1,072,829 | private final PO retrieveObjectFromTrx(final ITableCacheConfig cacheConfig, final Properties ctx, final String tableName, final int recordId, final ITrx trx) {<NEW_LINE>//<NEW_LINE>// Check if we can cache on this transaction level?<NEW_LINE>if (!isTrxLevelEnabled(cacheConfig, trx)) {<NEW_LINE>return null;<NEW_LINE>}<N... | final TrxCacheMap trxCacheMap = getTrxCacheMapIfPresent(trx); |
432,267 | public void contributeRuntimeProperties(BiConsumer<String, Object> propertyCollector) {<NEW_LINE>if (runtimeConfig == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!runtimeConfig.enabled) {<NEW_LINE>addConfig(propertyCollector, HibernateOrmMapperSettings.ENABLED, false);<NEW_LINE>// Do not process other properties: ... | propertyCollector, null, runtimeConfig.defaultBackend); |
1,047,953 | private void signalCached(Signal<T> signal) {<NEW_LINE>Signal<T> signalToPropagate = signal;<NEW_LINE>if (STATE.compareAndSet(main, this, signal)) {<NEW_LINE>Duration ttl = null;<NEW_LINE>try {<NEW_LINE>ttl = main.ttlGenerator.apply(signal);<NEW_LINE>} catch (Throwable generatorError) {<NEW_LINE><MASK><NEW_LINE>STATE.s... | signalToPropagate = Signal.error(generatorError); |
1,100,278 | private HyperlinkInfo buildFileHyperlinkInfo(@Nonnull String url) {<NEW_LINE>if (myProject != null && !url.endsWith(".html") && url.startsWith(LocalFileSystem.PROTOCOL_PREFIX)) {<NEW_LINE>int documentLine = 0, documentColumn = 0;<NEW_LINE>int filePathEndIndex = url.length();<NEW_LINE>final int lastColonInd = url.lastIn... | , lastColonInd), Integer.MIN_VALUE); |
915,148 | protected void blockInter(BitReader bits, VLC vlcCoeff, int[] block, int[] scan, int escSize, int qScale, int[] qmat) {<NEW_LINE>block[1] = block[2] = block[3] = 0;<NEW_LINE>int idx = -1;<NEW_LINE>if (vlcCoeff == vlcCoeff0 && bits.checkNBit(1) == 1) {<NEW_LINE>bits.read1Bit();<NEW_LINE>block[0] = toSigned(quantInter(1,... | bits, idx, vlcCoeff, escSize); |
1,089,490 | public okhttp3.Call apiCategoriesApiCategoryIdPutCall(String apiCategoryId, APICategoryDTO apICategoryDTO, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = apICategoryDTO;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api-categories/{apiCategoryId}".repl... | HashMap<String, String>(); |
1,437,772 | public boolean add(Session session) {<NEW_LINE>Require.nonNull("Session to add", session);<NEW_LINE>try (Span span = tracer.getCurrentContext().createSpan("MSET sessionUriKey <sessionUri> capabilitiesKey <capabilities> ")) {<NEW_LINE>Map<String, EventAttributeValue> attributeMap = new HashMap<>();<NEW_LINE>SESSION_ID.a... | capabilitiesKey(session.getId()); |
199,515 | private static Map<String, TextAttributesKey> createAdditionalHlAttrs() {<NEW_LINE>@NonNls<NEW_LINE>final Map<String, TextAttributesKey> descriptors = new THashMap<>();<NEW_LINE>descriptors.put("string", DefaultLanguageHighlighterColors.STRING);<NEW_LINE>descriptors.put("keyword", JS_KEYWORD);<NEW_LINE>descriptors.put(... | descriptors.put("import", MODULE); |
1,754,139 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_flexiblespacewithimagescrollview);<NEW_LINE>mFlexibleSpaceImageHeight = getResources().getDimensionPixelSize(R.dimen.flexible_space_image_height);<NEW_LINE>mFlexibleSpaceShowFabOff... | findViewById(R.id.fab); |
1,076,302 | public Context start(Context parentContext, REQUEST request) {<NEW_LINE>SpanKind spanKind = spanKindExtractor.extract(request);<NEW_LINE>SpanBuilder spanBuilder = tracer.spanBuilder(spanNameExtractor.extract(request)).setSpanKind<MASK><NEW_LINE>Instant startTime = null;<NEW_LINE>if (timeExtractor != null) {<NEW_LINE>st... | (spanKind).setParent(parentContext); |
210,652 | public ProcessStatus restSearchSettings(final PwmRequest pwmRequest) throws IOException, PwmUnrecoverableException {<NEW_LINE>final ConfigManagerBean configManagerBean = getBean(pwmRequest);<NEW_LINE>final String bodyData = pwmRequest.readRequestBodyAsString();<NEW_LINE>final Map<String, String> valueMap = JsonFactory.... | searchTerm = valueMap.get("search"); |
545,925 | StringBuilder appendAttrs(StringBuilder sb) {<NEW_LINE>Object[] sharedPairs = sharedPairs();<NEW_LINE><MASK><NEW_LINE>sb.append("{");<NEW_LINE>if (sharedPairs.length > 0) {<NEW_LINE>sb.append('S').append(sharedPairs.length).append('{');<NEW_LINE>for (int i = 0; i < sharedPairs.length; ) {<NEW_LINE>if (i > 0)<NEW_LINE>s... | Object[] extraPairs = extraPairs(); |
487,034 | final CreateRecipeResult executeCreateRecipe(CreateRecipeRequest createRecipeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRecipeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | (super.beforeMarshalling(createRecipeRequest)); |
867,583 | private void addInfusionConversionCarbonRecipes(Consumer<FinishedRecipe> consumer, String basePath) {<NEW_LINE>// Charcoal Block<NEW_LINE>ItemStackToChemicalRecipeBuilder.infusionConversion(IngredientCreatorAccess.item().from(MekanismTags.Items.STORAGE_BLOCKS_CHARCOAL), MekanismInfuseTypes.CARBON.getStack(180)).build(c... | .rl(basePath + "from_coal_block")); |
635,662 | protected boolean decode() throws IOException {<NEW_LINE>if (rleOnlyMode) {<NEW_LINE>// for RLE only mode there is nothing more to read<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (inputStream.available() <= 0) {<NEW_LINE>currentCount = 0;<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int header = readUnsignedVarInt(inp... | throw new ParquetDecodingException("not a valid mode " + mode); |
758,987 | // Event Handlers ---<NEW_LINE>@Override<NEW_LINE>public void onAttachOrDetach(AttachEvent event) {<NEW_LINE>if (event.isAttached()) {<NEW_LINE>previewHandler_ = Event.addNativePreviewHandler(new NativePreviewHandler() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onPreviewNativeEvent(NativePreviewEvent preview) ... | getModifierValue(preview.getNativeEvent()); |
457,511 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View rootView = inflater.inflate(R.layout.fragment_diary, container, false);<NEW_LINE>ScrollView_diary_content = (ScrollView) rootView.findViewById(R.id.ScrollView_diary_content);<NEW_LINE>ViewTools.setScrollBar... | findViewById(R.id.LL_diary_edit_bar); |
1,747,013 | public int generate(EditSession editSession, BiomeType baseBiome, boolean hollow) {<NEW_LINE>int affected = 0;<NEW_LINE>for (BlockVector3 position : getExtent()) {<NEW_LINE>int x = position.getBlockX();<NEW_LINE>int y = position.getBlockY();<NEW_LINE>int z = position.getBlockZ();<NEW_LINE>if (!hollow) {<NEW_LINE>final ... | x, y, z, baseBiome); |
1,316,154 | private void drawHorizontalDecorations(Canvas canvas, RecyclerView parent) {<NEW_LINE>if (!needsHorizontalDecoration()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FlexboxLayoutManager layoutManager = (FlexboxLayoutManager) parent.getLayoutManager();<NEW_LINE>int flexDirection = layoutManager.getFlexDirection();<NEW_LINE>in... | = bottom - mDrawable.getIntrinsicHeight(); |
741,492 | private void putMultisets(FactoryCache cache) {<NEW_LINE>cache.put(Multiset.class, collection(HashMultiset::create));<NEW_LINE>cache.put(SortedMultiset.class, collection(() -> TreeMultiset.create(OBJECT_COMPARATOR)));<NEW_LINE>cache.put(HashMultiset.class, collection(HashMultiset::create));<NEW_LINE>cache.put(TreeMulti... | <>(EnumMultiset::create)); |
854,287 | public void resetAvatarImage() {<NEW_LINE>if (avatarFrame == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (credentialsMapping.getConnector() instanceof IAvatar) {<NEW_LINE>AndroidRxUtils.andThenOnUi(AndroidRxUtils.networkScheduler, () -> AvatarUtils.getAvatar((IAvatar) credentialsMapping.getConnector()), img -> {<NE... | avatarFrame.setVisibility(View.VISIBLE); |
497,185 | public StringIndexerTrainBatchOp linkFrom(BatchOperator<?>... inputs) {<NEW_LINE>BatchOperator<?> in = checkAndGetFirst(inputs);<NEW_LINE>final String selectedCol = getSelectedCol();<NEW_LINE>final String[] selectedCols = getSelectedCols();<NEW_LINE>String[] allSelectCols = new String[] { selectedCol };<NEW_LINE>if (se... | StringIndexerModelDataConverter().getModelSchema()); |
1,640,059 | private Mono<Response<Flux<ByteBuffer>>> stopWithResponseAsync(String groupName, String serviceName) {<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>}<NEW_LINE>if (this.client.ge... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
414,405 | public void execute() throws AnalysisException {<NEW_LINE>if (groupExpression.hasApplied(rule)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GroupExpressionMatching groupExpressionMatching = new GroupExpressionMatching(rule.getPattern(), groupExpression);<NEW_LINE>for (Plan plan : groupExpressionMatching) {<NEW_LINE>context.... | plan, context.getCascadesContext()); |
597,402 | private Haplotype composeInsertionHaplotype(final ReferenceBases referenceBases) {<NEW_LINE>final byte[] insertedSequence = getInsertedSequence();<NEW_LINE>final byte[] referenceBaseBytes = referenceBases.getBases();<NEW_LINE>final byte[] resultBases = new byte[referenceBases.getInterval().size() + insertedSequence.len... | setGenomeLocation(referenceBases.getInterval()); |
581,562 | public synchronized void merge(MergeSource mergeSource, MergeTrigger trigger) throws IOException {<NEW_LINE>if (trigger == MergeTrigger.CLOSING) {<NEW_LINE>// Disable throttling on close:<NEW_LINE>targetMBPerSec = MAX_MERGE_MB_PER_SEC;<NEW_LINE>updateMergeThreads();<NEW_LINE>}<NEW_LINE>// First, quickly run through the... | " index(source): " + mergeSource.toString()); |
1,135,523 | private void encode(Object value, ChannelBuffer cb) throws ProtocolException {<NEW_LINE>// try {<NEW_LINE>if (value == null) {<NEW_LINE>encodeNull(cb);<NEW_LINE>} else if (value instanceof String) {<NEW_LINE>encodeString((String) value, cb);<NEW_LINE>} else if (value instanceof Boolean) {<NEW_LINE>encodeBoolean((Boolea... | value.toString(), cb); |
559,702 | protected ErrorDescription[] apply(TypeElement subject, ProblemContext ctx) {<NEW_LINE>ArrayList<ErrorDescription> errors = new ArrayList<ErrorDescription>();<NEW_LINE>AnnotationMirror annEntity = Utilities.findAnnotation(subject, ANNOTATION_WEBSERVICE);<NEW_LINE>if (subject.getKind() == ElementKind.CLASS && Utilities.... | [errors.size()]); |
1,595,579 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>lblImage = new javax.swing.JLabel();<NEW_LINE>// Variables declaration - do not modify//GEN-BEGIN:variables<NEW_LINE>javax.swing.JPanel jPanel1 = new javax.swing.JPanel();<NEW_LINE... | java.awt.BorderLayout.PAGE_START); |
1,446,004 | public void inspectFlow(FacesContext context, Flow flow) {<NEW_LINE>Map<String, Set<NavigationCase>> rules = flow.getNavigationCases();<NEW_LINE>int rulesSize = rules.size();<NEW_LINE>Map<String, Set<NavigationCase>> cases = new HashMap<String, Set<NavigationCase>>(HashMapUtils.calcCapacity(rulesSize));<NEW_LINE>List<_... | cases.put(fromViewId, set); |
1,489,856 | public void service(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {<NEW_LINE>List<JasperPrint> jasperPrintList = BaseHttpServlet.getJasperPrintList(request);<NEW_LINE>if (jasperPrintList == null) {<NEW_LINE>throw new ServletException("No JasperPrint documents found on th... | JROdsExporter(DefaultJasperReportsContext.getInstance()); |
1,225,720 | private static ResultCursor handleExplainDdl(ExecutionContext executionContext, ExecutionPlan executionPlan) {<NEW_LINE>if (executionPlan.getPlan() instanceof BaseDdlOperation) {<NEW_LINE>final BaseDdlOperation plan = (BaseDdlOperation) executionPlan.getPlan();<NEW_LINE>ArrayResultCursor result = new ArrayResultCursor(... | executionPlan, ExplainResult.ExplainMode.DETAIL); |
340,064 | private static void writeDiagnostics(ZipOutputStream zip, List<DiagnosticsReportSource> sources, DiagnosticsReporterProgress progress) {<NEW_LINE>int step = 0;<NEW_LINE>// same as default buf size in buffered streams<NEW_LINE>final byte[] buf = new byte[(int) kibiBytes(8)];<NEW_LINE>for (DiagnosticsReportSource source ... | InputStream rawInput = source.newInputStream(); |
1,341,532 | public static Spinner create(double min, double max, double currentValue, double step) {<NEW_LINE>Spinner s = new Spinner(new SpinnerNumberModel(min, max, currentValue, step), new SpinnerRenderer<Object>() {<NEW_LINE><NEW_LINE>public Component getListCellRendererComponent(List list, Object value, int index, boolean isS... | list, value, index, isSelected); |
343,655 | protected void drawShadow(mxGraphicsCanvas2D canvas, mxCellState state, double rotation, boolean flipH, boolean flipV, mxRectangle bounds, double alpha, boolean filled) {<NEW_LINE>// Requires background in generic shape for shadow, looks like only one<NEW_LINE>// fillAndStroke is allowed per current path, try working a... | = Math.cos(-rad); |
928,385 | public void deleteShardStore(String reason, ShardId shardId, ClusterState clusterState) throws IOException, ShardLockObtainFailedException {<NEW_LINE>final IndexMetadata metadata = clusterState.getMetadata().indices().get(shardId.getIndexName());<NEW_LINE><MASK><NEW_LINE>ShardDeletionCheckResult shardDeletionCheckResul... | final IndexSettings indexSettings = buildIndexSettings(metadata); |
1,722,481 | public static void main(String[] args) throws Exception {<NEW_LINE>TopologyBuilder builder = new TopologyBuilder();<NEW_LINE>// Set rate limit to 1000 bytes per second (since parallelism is set to 2,<NEW_LINE>builder.setSpout("word", new TestWordSpout(), 2).// each instance is rate limited as 500 bps).<NEW_LINE>addConf... | conf.setComponentCpu("exclaim1", 0.5); |
1,315,215 | public IReplRequestHandlerResult handleRequest(final PO po, IReplRequestHandlerCtx ctx) {<NEW_LINE>final <MASK><NEW_LINE>if (!Util.same(po.getCtx(), ctxToUse)) {<NEW_LINE>// this shall not happen, it's an internal error<NEW_LINE>throw new ReplicationException("PO does not have same context as we need it to use").setPar... | Properties ctxToUse = ctx.getEnvCtxToUse(); |
1,353,028 | private void config_table() {<NEW_LINE>// The child class has to setup the behaviour of the ENTER key. Default is to ignore it.<NEW_LINE>// Change behaviour for multi-selection<NEW_LINE>if (isMultiSelection()) {<NEW_LINE>this.getInputMap().put(KeyStroke.getKeyStroke("ctrl A"), "doSelectAll");<NEW_LINE>this.getInputMap... | .getKeyStroke("shift UP"), "doSelectRowUp"); |
76,378 | final CreateCanaryResult executeCreateCanary(CreateCanaryRequest createCanaryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCanaryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | endClientExecution(awsRequestMetrics, request, response); |
1,659,056 | private void makeMvhd(final long longestTrack) throws IOException {<NEW_LINE>auxWrite(new byte[] { 0x00, 0x00, 0x00, 0x78, 0x6D, 0x76, 0x68, 0x64, 0x01, 0x00, 0x00, 0x00 });<NEW_LINE>auxWrite(ByteBuffer.allocate(28).putLong(time).putLong(time).putInt(DEFAULT_TIMESCALE).putLong(longestTrack).array());<NEW_LINE>auxWrite(... | , 0x00, 0x00, 0x00 }); |
232,098 | private TsModel transformDates(SymbolTable symbolTable, TsModel tsModel) {<NEW_LINE>final TsAliasModel dateAsNumber = new TsAliasModel(null, symbolTable.getSyntheticSymbol("DateAsNumber"), null, TsType.Number, null);<NEW_LINE>final TsAliasModel dateAsString = new TsAliasModel(null, symbolTable.getSyntheticSymbol("DateA... | null, TsType.String, null); |
880,418 | protected List<StaticNat> createStaticNatForIp(IpAddress sourceIp, Account caller, boolean forRevoke) {<NEW_LINE>List<StaticNat> staticNats = new ArrayList<StaticNat>();<NEW_LINE>if (!sourceIp.isOneToOneNat()) {<NEW_LINE>s_logger.debug("Source ip id=" + sourceIp + " is not one to one nat");<NEW_LINE>return staticNats;<... | network = _networkModel.getNetwork(networkId); |
1,810,497 | public static DescribeSendFileResultsResponse unmarshall(DescribeSendFileResultsResponse describeSendFileResultsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSendFileResultsResponse.setRequestId(_ctx.stringValue("DescribeSendFileResultsResponse.RequestId"));<NEW_LINE>describeSendFileResultsResponse.setPageSize... | ("DescribeSendFileResultsResponse.Invocations[" + i + "].TargetDir")); |
377,668 | private JSONObject addThreadStopInfo(ThreadReference thread, long stopThreadId, DebuggerStopReason stopReason) {<NEW_LINE>JSONObject threadJson = new JSONObject();<NEW_LINE>long threadId = thread.uniqueID();<NEW_LINE>String threadName = thread.name();<NEW_LINE>boolean stackFrameValid = false;<NEW_LINE>threadJson.put("i... | threadJson.put("location", NOT_AVAILABLE_TEXT); |
1,273,496 | public static CreateHotParamItemsResponse unmarshall(CreateHotParamItemsResponse createHotParamItemsResponse, UnmarshallerContext _ctx) {<NEW_LINE>createHotParamItemsResponse.setRequestId(_ctx.stringValue("CreateHotParamItemsResponse.RequestId"));<NEW_LINE>createHotParamItemsResponse.setCode(_ctx.stringValue("CreateHot... | (_ctx.booleanValue("CreateHotParamItemsResponse.Success")); |
117,562 | private static Object decimalSerializer(Object data, Schema schema, Schema.Type primitiveType, LogicalType logicalType) {<NEW_LINE>int scale = ((LogicalTypes.Decimal) schema.getLogicalType()).getScale();<NEW_LINE>int precision = ((LogicalTypes.Decimal) schema.getLogicalType()).getPrecision();<NEW_LINE>double multiply =... | toBytes(value, schema, logicalType); |
778,959 | public Explainability unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Explainability explainability = new Explainability();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.g... | int originalDepth = context.getCurrentDepth(); |
245,634 | public void run(RegressionEnvironment env) {<NEW_LINE>String stmtText = "@name('s0') select * from SupportBean#lastevent sb, SupportBeanTwo#lastevent sbt, " + "sql:MyDBWithRetain ['select myint from mytesttable'] as s1 " + " where sb.theString = sbt.stringTwo and s1.myint = sbt.intPrimitiveTwo";<NEW_LINE>env.compileDe... | new SupportBeanTwo("T3", 40)); |
732,626 | public String amounts(final ICalloutField calloutField) {<NEW_LINE>if (// assuming it is resetting value<NEW_LINE>isCalloutActive()) {<NEW_LINE>return NO_ERROR;<NEW_LINE>}<NEW_LINE>final I_C_PaymentAllocate paymentAlloc = calloutField.getModel(I_C_PaymentAllocate.class);<NEW_LINE>// No Invoice<NEW_LINE>final <MASK><NEW... | int C_Invoice_ID = paymentAlloc.getC_Invoice_ID(); |
972,848 | public void invoke(List<PdfObject> operands, PdfContentStreamHandler handler, PdfDictionary resources) {<NEW_LINE>PdfName dictionaryName = (PdfName) operands.get(0);<NEW_LINE>PdfDictionary extGState = resources.getAsDict(PdfName.EXTGSTATE);<NEW_LINE>if (extGState == null) {<NEW_LINE>throw new IllegalArgumentException(M... | new CMapAwareDocumentFont((PRIndirectReference) pdfObject); |
317,307 | protected UserModel validateCache(RealmModel realm, CachedUser cached) {<NEW_LINE>if (!realm.getId().equals(cached.getRealm())) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StorageId storageId = cached.getFederationLink() != null ? new StorageId(cached.getFederationLink(), cached.getId()) : new StorageId(cached.getId())... | getComponent(storageId.getProviderId()); |
494,194 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>getWindow().setFormat(PixelFormat.RGBA_8888);<NEW_LINE>setContentView(R.layout.activity_color_picker);<NEW_LINE>SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);<NEW_LINE>int initialCo... | findViewById(R.id.cancelButton); |
331,729 | public boolean test() {<NEW_LINE>TagCollection<Item> itemTags = SerializationTags.getInstance().getOrEmpty(Registry.ITEM_REGISTRY);<NEW_LINE>List<Tag<Item>> tags = names.stream().map(itemTags::getTagOrEmpty).toList();<NEW_LINE>// if there is just one tag, just needs to be filled<NEW_LINE>if (tags.size() == 1) {<NEW_LIN... | int count = tags.size(); |
1,402,515 | public static List<Tuple2<Double, ConfusionMatrix>> filterCloseEntries(List<Tuple2<Double, ConfusionMatrix>> threshCMs, int limit) {<NEW_LINE>int n = threshCMs.size();<NEW_LINE>if (n <= limit) {<NEW_LINE>return threshCMs;<NEW_LINE>}<NEW_LINE>int toRemove = n - limit;<NEW_LINE>// Maintain a double-linked list to store t... | next[i] = i + 1; |
568,970 | public void read(org.apache.thrift.protocol.TProtocol iprot, BuildRuleType struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.a... | skip(iprot, schemeField.type); |
832,221 | void makeSelection(Boolean shiftDown, Long newFileID) {<NEW_LINE>if (shiftDown) {<NEW_LINE>// TODO: do more hear to implement slicker multiselect<NEW_LINE>int endIndex = grouping.get().getFileIDs().indexOf(newFileID);<NEW_LINE>int startIndex = IntStream.of(grouping.get().getFileIDs().size(), selectionAnchorIndex, endIn... | .max().getAsInt(); |
1,297,272 | public void writeAllCurrentRequestsAsPart(Map<JavaInformations, List<CounterRequestContext>> currentRequests, Collector collector, List<Counter> counters, long timeOfSnapshot) throws IOException {<NEW_LINE>try {<NEW_LINE>document.open();<NEW_LINE>// on remplace les parentCounters<NEW_LINE>final List<CounterRequestConte... | counter, range, false, document); |
1,370,252 | public void update(AnActionEvent event) {<NEW_LINE>Presentation presentation = event.getPresentation();<NEW_LINE>Project project = event.getData(CommonDataKeys.PROJECT);<NEW_LINE>if (project == null) {<NEW_LINE>presentation.setEnabled(false);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ToolWindowManagerEx toolWindowManager = ... | (IdeBundle.message("action.restore.windows")); |
768,841 | private DownloadTask parseCursor(Cursor cursor) {<NEW_LINE>int primaryId = cursor.getInt(cursor.getColumnIndexOrThrow(BaseColumns._ID));<NEW_LINE>String taskId = cursor.getString(cursor.getColumnIndexOrThrow(TaskContract.TaskEntry.COLUMN_NAME_TASK_ID));<NEW_LINE>int status = cursor.getInt(cursor.getColumnIndexOrThrow(T... | (TaskContract.TaskEntry.COLUMN_SAVE_IN_PUBLIC_STORAGE)); |
1,271,626 | private void astHeight(AstNode ast) {<NEW_LINE>if (ast == this.astMap[0]) {<NEW_LINE>int len = 0;<NEW_LINE>if (this.autotags || this.astGroups == AST_GROUPS_ALL) {<NEW_LINE>len = this.astMap.length * 2;<NEW_LINE>} else {<NEW_LINE>len = this.astenumi * 2 + 1;<NEW_LINE>}<NEW_LINE>this.tagHeight = new int[len];<NEW_LINE>t... | tagAst[tag] = ast.seq; |
1,041,894 | public static ByteString synthesizeSsmlFile(String ssmlFile) throws Exception {<NEW_LINE>// Instantiates a client<NEW_LINE>try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {<NEW_LINE>// Read the file's contents<NEW_LINE>String contents = new String(Files.readAllBytes(<MASK><NEW_LINE>// Set the ... | Paths.get(ssmlFile))); |
1,349,537 | private void println_NonBlocking(String value) throws IOException {<NEW_LINE>synchronized (this) {<NEW_LINE>if (this.isOutputStreamNBClosed()) {<NEW_LINE><MASK><NEW_LINE>throw new IOException(Tr.formatMessage(tc, "stream.is.closed.no.read.write"));<NEW_LINE>}<NEW_LINE>byte[] stringBytes = value.getBytes();<NEW_LINE>thi... | Tr.error(tc, "stream.is.closed.no.read.write"); |
1,532,124 | final GetSqlInjectionMatchSetResult executeGetSqlInjectionMatchSet(GetSqlInjectionMatchSetRequest getSqlInjectionMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSqlInjectionMatchSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,151,419 | final GetWebACLResult executeGetWebACL(GetWebACLRequest getWebACLRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getWebACLRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | addHandlerContext(HandlerContextKey.SERVICE_ID, "WAF Regional"); |
1,220,621 | public Void doInTransaction(@Nonnull TransactionStatus theStatus) {<NEW_LINE>List<ResourcePersistentId> persistentIds = myData.getIds().stream().map(t -> new ResourcePersistentId(t.getId())).collect(Collectors.toList());<NEW_LINE>ourLog.info("Starting reindex work chunk with {} resources - Instance[{}] Chunk[{}]", pers... | get(i).getResourceType(); |
170,711 | protected Collection<Match<Either<SymbolInformation, DocumentSymbol>>> compute() {<NEW_LINE>String query = searchBox.getValue();<NEW_LINE>if (!StringUtil.hasText(query)) {<NEW_LINE>query = "";<NEW_LINE>}<NEW_LINE>query = query.toLowerCase();<NEW_LINE>List<Match<Either<SymbolInformation, DocumentSymbol>>> <MASK><NEW_LIN... | matches = new ArrayList<>(); |
405,700 | public S3InitiateRestoreObjectOperation unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>S3InitiateRestoreObjectOperation s3InitiateRestoreObjectOperation = new S3InitiateRestoreObjectOperation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1... | XMLEvent xmlEvent = context.nextEvent(); |
111,195 | public int difference(int geometry_a, int geometry_b) {<NEW_LINE>int gtA = m_topo_graph.getShape().getGeometryType(geometry_a);<NEW_LINE>int gtB = m_topo_graph.getShape().getGeometryType(geometry_b);<NEW_LINE>int dim_a = Geometry.getDimensionFromType(gtA);<NEW_LINE>int dim_b = Geometry.getDimensionFromType(gtB);<NEW_LI... | ID_a = m_topo_graph.getGeometryID(geometry_a); |
676,578 | public TranslateTextResult translateText(TranslateTextRequest translateTextRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(translateTextRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NE... | new JsonResponseHandler<TranslateTextResult>(unmarshaller); |
639,208 | public static InfluxConfig createInfluxConfig(MetricsConfig conf) {<NEW_LINE>log.info("Configuring stats with direct InfluxDB at {}", conf.getInfluxDBUri());<NEW_LINE>return new InfluxConfig() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Duration step() {<NEW_LINE>return Duration.ofSeconds(conf.<MASK><NEW_LINE>}<NEW_... | getOutputFrequencySeconds().getSeconds()); |
872,920 | static Pair<Point, Short> chooseBestHintPosition(Editor editor, VisualPosition pos, LightweightHint hint, short preferredPosition, boolean showLookupHint) {<NEW_LINE>if (ApplicationManager.getApplication().isUnitTestMode() || ApplicationManager.getApplication().isHeadlessEnvironment())<NEW_LINE>return Pair.pair(new Poi... | editor, pos, HintManager.UNDER); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.