idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,653,266 | public Map<String, ByteBuffer> fetchMultSeries(long readerId, List<String> paths) throws ReaderNotFoundException, IOException {<NEW_LINE>IMultBatchReader reader = (IMultBatchReader) dataGroupMember.getQueryManager().getReader(readerId);<NEW_LINE>if (reader == null) {<NEW_LINE>throw new ReaderNotFoundException(readerId)... | batchData = reader.nextBatch(path); |
1,669,440 | public static <L extends IExpressionNode, R extends IExpressionNode, T extends IExpressionNode> T tryInline(T node, L subNodeLeft, R subNodeRight, BiFunction<L, R, T> changer, BiFunction<L, R, T> inlinedChanger) {<NEW_LINE>{<NEW_LINE>T inlined = (T) OptimizingInliningHelper.tryOptimizedInline(node);<NEW_LINE>if (inline... | ExpressionDebugManager.debugEnd("Partially inlined to " + to); |
382,170 | static PwmDateFormat readDateFormatAndTimeZoneParams(final List<String> parameters) throws MacroParseException {<NEW_LINE>final String dateFormatStr;<NEW_LINE>if (parameters.size() > 0 && !parameters.get(0).isEmpty()) {<NEW_LINE>dateFormatStr = parameters.get(0);<NEW_LINE>} else {<NEW_LINE>dateFormatStr = PwmConstants.... | tz = TimeZone.getTimeZone(desiredTz); |
1,251,055 | protected Object queryParamValue(YamlContract yamlContract, String key, Object value) {<NEW_LINE>Request request = new Request();<NEW_LINE>YamlContract.QueryParameterMatcher matcher = yamlContract.request.matchers.queryParameters.stream().filter(queryParameter -> queryParameter.key.equals(key)).findFirst().orElse(null)... | (matcher.value), value); |
1,419,305 | public User authenticate(Authentication auth) throws AuthenticationFailedException {<NEW_LINE><MASK><NEW_LINE>String userName = null;<NEW_LINE>String password = null;<NEW_LINE>if (auth instanceof UsernamePasswordAuthentication) {<NEW_LINE>org.structr.web.entity.User user = null;<NEW_LINE>// Use superuser context for au... | logger.debug("Authentication: {}", auth); |
277,091 | private void appendGroupInstanceDisplay(final StringBuilder sb, final List<Token> fields, final List<Token> groups, final List<Token> varData, final String baseIndent) {<NEW_LINE>final String indent = baseIndent + INDENT;<NEW_LINE>sb.append('\n');<NEW_LINE>append(sb, indent, "internal void BuildString(StringBuilder bui... | groups, varData, indent + INDENT); |
587,906 | public VirtualPacket nextPacket() throws IOException {<NEW_LINE>if (curFrame >= fsizes.length)<NEW_LINE>return null;<NEW_LINE>VirtualPacket pkt = new MPSPacket(this, offInPayload, fileOff, curFrame, pesIdx);<NEW_LINE>offInPayload += fsizes[curFrame];<NEW_LINE>while (pesIdx < factory.streams.length && offInPayload >= pa... | (factory.pesTokens[pesIdx]); |
1,016,588 | public long handle(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer clazz = context.getPointerArg(1);<NEW_LINE>UnidbgPointer jmethodID = context.getPointerArg(2);<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("CallStaticBooleanMethod clazz=" + clazz + ",... | getStaticMethod(jmethodID.toIntPeer()); |
1,079,589 | public void marshall(CreateWorkloadRequest createWorkloadRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createWorkloadRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createWorkloadRequest... | createWorkloadRequest.getEnvironment(), ENVIRONMENT_BINDING); |
80,896 | private void patchActivityImplementation() {<NEW_LINE>SootClass scApplicationHolder = createOrGetApplicationHolder();<NEW_LINE>SootClass sc = Scene.v().getSootClassUnsafe("android.app.Activity");<NEW_LINE>if (sc == null || sc.resolvingLevel() < SootClass.SIGNATURES || scApplicationHolder == null)<NEW_LINE>return;<NEW_L... | getLocals().add(thisLocal); |
1,770,604 | public ClientTypeSignatureParameter deserialize(JsonParser jp, DeserializationContext ctx) throws IOException {<NEW_LINE>JsonNode node = jp.getCodec().readTree(jp);<NEW_LINE>ParameterKind kind = MAPPER.readValue(MAPPER.treeAsTokens(node.get("kind")), ParameterKind.class);<NEW_LINE>JsonParser jsonValue = MAPPER.treeAsTo... | return new ClientTypeSignatureParameter(kind, value); |
1,430,296 | final UpdatePipelineResult executeUpdatePipeline(UpdatePipelineRequest updatePipelineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updatePipelineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.SERVICE_ID, "IoTAnalytics"); |
907,430 | void updateData(Business business, Document document, JsonElement jsonElement, String... paths) throws Exception {<NEW_LINE>DataItemConverter<Item> converter = new DataItemConverter<>(Item.class);<NEW_LINE>List<Item> exists = business.itemFactory().listWithDocmentWithPath(document.getId(), paths);<NEW_LINE>List<Item> c... | converter.disassemble(jsonElement, paths); |
1,254,099 | protected Link nextLink(Link start) throws ObjectManagerException {<NEW_LINE>if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())<NEW_LINE>trace.entry(this, cclass, "nextLink", new Object[] { start });<NEW_LINE>Token nextToken = null;<NEW_LINE>if (start == null) {<NEW_LINE>// Start at the head of the list?<NEW_... | new Object[] { nextLink }); |
360,932 | final ListLexBotsResult executeListLexBots(ListLexBotsRequest listLexBotsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listLexBotsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,671,495 | public static void main(String[] args) {<NEW_LINE>Columns columns = Columns.create().useSafeMode().or().or().or().eq("aa", "bb").or().or().or().notIn("aaa", 123, 456, 789).like("titile", "a");<NEW_LINE>columns.group(Columns.create().or().or().sqlPart("aa=bb"));<NEW_LINE>columns.group(Columns.create("aa", "bb").eq("cc",... | sqlPart("user.id != ? and xxx= ?", 1, "abc2"); |
1,430,516 | // 4th Add<NEW_LINE>private void runAddAnimation(boolean removalsPending, boolean changesPending, boolean movesPending, boolean additionsPending) {<NEW_LINE>if (additionsPending) {<NEW_LINE>final ArrayList<ViewHolder> additions = new ArrayList<>();<NEW_LINE>// Sorting addition animations based on it's original layout p... | () - vh2.getLayoutPosition(); |
1,349,564 | private synchronized void compact() {<NEW_LINE>BlockBuilder newHeapBlockBuilder = type.createBlockBuilder(null, heapBlockBuilder.getPositionCount());<NEW_LINE>// since block positions are changed, we need to update all data structures which are using block position as reference<NEW_LINE>LongBigArray newBlockPositionToC... | newBlockToHeapIndex.set(newBlockPos, heapPosition); |
1,234,086 | private void loadNode400() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupFolderType_DefaultHttpsGroup_TrustList_Close_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), LocalizedText.NULL... | .expanded(), true)); |
1,411,636 | private void uiInit() throws Exception {<NEW_LINE>setSize(250, 250);<NEW_LINE>setLayout(new BoxLayout(this, BoxLayout.X_AXIS));<NEW_LINE>setBackground(AppColors.BACKGROUND);<NEW_LINE>// setOpaque(true);<NEW_LINE>setAlignmentX(Component.LEFT_ALIGNMENT);<NEW_LINE>setBorder(BORDER_CONTROL);<NEW_LINE>checkbox = new JCheckB... | namePanel.setAlignmentX(Component.LEFT_ALIGNMENT); |
851,920 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String stmtOrigText = "@name('split') @public on SupportBean " + "insert into AStream2S select theString where intPrimitive=1 " + "insert into BStream2S select theString where intPrimitive=1 or intPrimitive=2 " + ... | ("s1").getEventType()); |
1,504,860 | public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {<NEW_LINE>super.onRequestPermissionsResult(requestCode, permissions, grantResults);<NEW_LINE>if (PermissionUtils.allGranted(grantResults)) {<NEW_LINE>if (requestCode == REQUEST_ACCEPT_CALL) {<NEW_LINE>ch... | Toast.LENGTH_SHORT).show(); |
1,167,919 | public Object transactional(InvocationContext ctx) throws Exception {<NEW_LINE>_logger.log(FINE, CDI_JTA_NOTSUPPORTED);<NEW_LINE>if (isLifeCycleMethod(ctx)) {<NEW_LINE>return proceed(ctx);<NEW_LINE>}<NEW_LINE>setTransactionalTransactionOperationsManger(true);<NEW_LINE>try {<NEW_LINE>Transaction transaction = null;<NEW_... | "Managed bean with Transactional annotation and TxType of NOT_SUPPORTED " + "called inside a transaction context. Suspending transaction failed due to " + exception, exception); |
1,748,165 | public int unpRead(byte[] addr, int offset, int count) throws IOException, RarException {<NEW_LINE><MASK><NEW_LINE>while (count > 0) {<NEW_LINE>int readSize = (count > unpPackedSize) ? (int) unpPackedSize : count;<NEW_LINE>retCode = inputStream.read(addr, offset, readSize);<NEW_LINE>if (retCode < 0) {<NEW_LINE>throw ne... | int retCode = 0, totalRead = 0; |
742,152 | public void removed() {<NEW_LINE>boolean validCoords = true;<NEW_LINE>BlockPos newLocation = null;<NEW_LINE>try {<NEW_LINE>newLocation = new BlockPos(Integer.parseInt(xInput.getValue()), Integer.parseInt(yInput.getValue()), Integer.parseInt(zInput.getValue()));<NEW_LINE>} catch (NumberFormatException e) {<NEW_LINE>vali... | settings, handler.getBounds()); |
1,497,125 | final GetFacetResult executeGetFacet(GetFacetRequest getFacetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFacetRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetFacetRequest> request = null;<NEW_LINE>Response<GetFacetResult... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
407,307 | private static Dataframe execute(Connection connection, QueryScript queryScript, ExecuteParam executeParam) throws Exception {<NEW_LINE>SqlScriptRender render = new SqlScriptRender(queryScript, executeParam, SQL_DIALECT);<NEW_LINE>String sql = render.render(true, false, false);<NEW_LINE>log.debug(sql);<NEW_LINE>ResultS... | resultSet, pageInfo.getPageSize()); |
1,638,063 | public boolean open() {<NEW_LINE>okButton = new JButton();<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(okButton, Bundle.BranchSelector_okButton_text());<NEW_LINE>dd = new DialogDescriptor(panel, Bundle.BranchSelector_title(), true, new Object[] { okButton, DialogDescriptor.CANCEL_OPTION }, okButton, DialogDescr... | getDefault().createDialog(dd); |
997,065 | public String[] listFiles(URI fileUri, boolean recursive) throws IOException {<NEW_LINE>DirectoryEntry rootDir = _adlStoreClient.getDirectoryEntry(fileUri.getPath());<NEW_LINE>if (rootDir == null) {<NEW_LINE>return EMPTY_ARR;<NEW_LINE>}<NEW_LINE>if (!recursive) {<NEW_LINE>List<DirectoryEntry> shallowDirectoryEntries = ... | _adlStoreClient.enumerateDirectory(rootDir.fullName); |
304,545 | public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {<NEW_LINE>PutMappingRequest putMappingRequest = putMappingRequest(Strings.splitStringByCommaToArray(request.param("index")));<NEW_LINE>Map<String, Object> sourceAsMap = XContentHelper.convertToMap(request.r... | , putMappingRequest.masterNodeTimeout())); |
652,296 | public List<JobCommand> workerHeartbeat(JobWorkerHealth jobWorkerHealth, List<TaskInfo> taskInfoList) throws ResourceExhaustedException {<NEW_LINE>long workerId = jobWorkerHealth.getWorkerId();<NEW_LINE>String hostname;<NEW_LINE>// Run under shared lock for mWorkers<NEW_LINE>try (LockResource workersLockShared = new Lo... | getCoordinator(taskInfosPair.getKey()); |
1,532,707 | private static void testBox_byParameter() {<NEW_LINE>byte b = (byte) 100;<NEW_LINE>double d = 1111.0;<NEW_LINE>float f = 1111.0f;<NEW_LINE>int i = 1111;<NEW_LINE>long l = 1111L;<NEW_LINE>short s = (short) 100;<NEW_LINE>boolean bool = true;<NEW_LINE>char c = 'a';<NEW_LINE>assertTrue((unbox(b) == b));<NEW_LINE>assertTrue... | unbox(bool) == bool)); |
1,431,507 | public AsyncMethodInfo convertMethodConfig2AsyncInfo() {<NEW_LINE>if ((getOninvoke() == null && getOnreturn() == null && getOnthrow() == null)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// check config conflict<NEW_LINE>if (Boolean.FALSE.equals(isReturn()) && (getOnreturn() != null || getOnthrow() != null)) {<NEW_LIN... | .getClass(), onreturnMethod)); |
1,417,133 | private void convertMultiANewArrayInsn(MultiANewArrayInsnNode insn) {<NEW_LINE>StackFrame frame = getFrame(insn);<NEW_LINE>Operand[] out = frame.out();<NEW_LINE>Operand opr;<NEW_LINE>if (out == null) {<NEW_LINE>ArrayType t = (ArrayType) AsmUtil.toJimpleType(insn.desc, Optional.fromNullable(this.body.getMethod().getDecl... | sizes[dims].stackOrValue(); |
1,661,603 | final UpdateInputResult executeUpdateInput(UpdateInputRequest updateInputRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateInputRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<UpdateInputRequest> reques... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
92,550 | private void registerKeyStore(String keyStorePath, RestClientBuilder builder) {<NEW_LINE>Optional<String> keyStorePassword = oneOf(clientConfigByClassName().<MASK><NEW_LINE>Optional<String> keyStoreType = oneOf(clientConfigByClassName().keyStoreType, clientConfigByConfigKey().keyStoreType);<NEW_LINE>try {<NEW_LINE>KeyS... | keyStorePassword, clientConfigByConfigKey().keyStorePassword); |
1,368,357 | final AcceptEnvironmentAccountConnectionResult executeAcceptEnvironmentAccountConnection(AcceptEnvironmentAccountConnectionRequest acceptEnvironmentAccountConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(acceptEnvironmentAccountConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRe... | (super.beforeMarshalling(acceptEnvironmentAccountConnectionRequest)); |
458,678 | private static void initialize(TypeDataBase db) {<NEW_LINE>Type type = db.lookupType("nmethod");<NEW_LINE>methodField = type.getAddressField("_method");<NEW_LINE>entryBCIField = type.getCIntegerField("_entry_bci");<NEW_LINE>osrLinkField = type.getAddressField("_osr_link");<NEW_LINE>scavengeRootLinkField = type.getAddre... | oopsOffsetField = type.getCIntegerField("_oops_offset"); |
1,280,832 | public void transformJson(HistoryJobEntity job, ObjectNode historicalData, CommandContext commandContext) {<NEW_LINE>BaseHistoricTaskLogEntryBuilderImpl taskLogEntryBuilder = new BaseHistoricTaskLogEntryBuilderImpl();<NEW_LINE>taskLogEntryBuilder.data(getStringFromJson(historicalData, HistoryJsonConstants.LOG_ENTRY_DAT... | (historicalData, HistoryJsonConstants.SCOPE_TYPE)); |
443,237 | private Pair<MysqlSemiIndexNLJoin, MysqlTableScan> transformToIndexNLJoin(LogicalSemiJoin logicalSemiJoin) {<NEW_LINE>RelNode inner = logicalSemiJoin.getRight();<NEW_LINE>if (inner instanceof HepRelVertex) {<NEW_LINE>inner = ((HepRelVertex) inner).getCurrentRel();<NEW_LINE>}<NEW_LINE>CheckMysqlIndexNLJoinRelVisitor che... | boolean isSupportUseIndexNLJoin = checkMysqlIndexNLJoinRelVisitor.isSupportUseIndexNLJoin(); |
771,628 | private void computeHeaderSizes() {<NEW_LINE>// Item height<NEW_LINE>itemHeight = fontMetrics.getHeight() + 3;<NEW_LINE>// Column header height<NEW_LINE>int colHeaderHeight = 0;<NEW_LINE>for (GridColumn column : topColumns) {<NEW_LINE>colHeaderHeight = Math.max(column.getHeaderHeight<MASK><NEW_LINE>}<NEW_LINE>headerHei... | (true, true), colHeaderHeight); |
722,238 | public static void convertBgp(BgpProcess bgpProcess, Configuration c, Warnings w) {<NEW_LINE>long as = bgpProcess.getAsEffective();<NEW_LINE>if (as == 0L) {<NEW_LINE>// this is the standard way to disable BGP in FortiOS<NEW_LINE>return;<NEW_LINE>} else if (as == 65535L || as == 4294967295L) {<NEW_LINE>w.redFlag(String.... | add(neighbor.getIp()); |
766,853 | void validateConfigPropertiesInjectionPoints(ArcConfig arcConfig, ValidationPhaseBuildItem validationPhase, List<ConfigClassBuildItem> configClasses, BuildProducer<ConfigPropertiesBuildItem> configProperties) {<NEW_LINE>if (configClasses.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<Type, ConfigClassBuildItem> ... | () : configClass.getPrefix(); |
1,462,087 | public void tagIndirectlyAccessibleMembers() {<NEW_LINE>if (!isPrototype()) {<NEW_LINE>this.prototype.tagIndirectlyAccessibleMembers();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// https://bugs.eclipse.org/bugs/show_bug.cgi?id=328281<NEW_LINE>for (int i = 0, n = this.fields().length; i < n; i += 1) {<NEW_LINE>if (!this.fiel... | i].modifiers |= ExtraCompilerModifiers.AccLocallyUsed; |
974,782 | private boolean pointCloseEnough(GpxRouteApproximation gctx, GpxPoint ipoint, List<RouteSegmentResult> res) {<NEW_LINE>int px = MapUtils.get31TileNumberX(ipoint.loc.getLongitude());<NEW_LINE>int py = MapUtils.get31TileNumberY(ipoint.loc.getLatitude());<NEW_LINE>double SQR = gctx.ctx.config.minPointApproximation;<NEW_LI... | int end = sr.getEndPointIndex(); |
73,855 | public boolean isTriggerActive(IStatement trigger, IStatementParameter[] parameters) {<NEW_LINE>if (trigger == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (trigger instanceof ITriggerInternal) {<NEW_LINE>if (((ITriggerInternal) trigger).isTriggerActive(this, parameters)) {<NEW_LINE>return true;<NEW_LINE>}<NEW... | override(side, this, parameters); |
277,383 | private void writeResultToStream(OutputStream os) throws IOException {<NEW_LINE>DexDataBuffer buffer = new DexDataBuffer();<NEW_LINE>buffer.write(DexPatchFile.MAGIC);<NEW_LINE>buffer.writeShort(DexPatchFile.CURRENT_VERSION);<NEW_LINE>buffer.writeInt(this.patchedDexSize);<NEW_LINE>// we will return here to write firstCh... | this.codeSectionDiffAlg.getPatchOperationList()); |
776,790 | private T findCallableArityN(IRubyObject self, String name, IRubyObject[] args, int arity) {<NEW_LINE>T callable = this.javaCallable;<NEW_LINE>if (callable == null) {<NEW_LINE>final T[] callablesForArity;<NEW_LINE>if (arity >= javaCallables.length || (callablesForArity = javaCallables[arity]) == null) {<NEW_LINE>if ((c... | newErrorDueArgumentTypeMismatch(self, callablesForArity, args); |
1,110,908 | public AntlrResult doProcess(AntlrSpec spec) throws ClassNotFoundException {<NEW_LINE>int numErrors = 0;<NEW_LINE>if (spec.getInputDirectories().size() == 0) {<NEW_LINE>// we have not root source folder information for the grammar files,<NEW_LINE>// so we don't force relativeOutput as we can't calculate it.<NEW_LINE>//... | RelativePathUtil.relativePath(inputDirectory, grammarFile); |
956,553 | public void updateNClob(int i, Reader x, long length) throws SQLException {<NEW_LINE>try {<NEW_LINE>rsetImpl.updateNClob(i, x, length);<NEW_LINE>} catch (SQLException sqlX) {<NEW_LINE>FFDCFilter.processException(sqlX, getClass().getName() + ".updateNClob", "4352", this);<NEW_LINE>throw WSJdbcUtil.mapException(this, sql... | ) + ".updateNClob", "5153", this); |
702,160 | public static <T> boolean removeIf(ArrayList<T> list, Predicate<? super T> predicate) {<NEW_LINE>boolean changed;<NEW_LINE>if (list.getClass() == ArrayList.class && ArrayListIterate.SIZE_FIELD != null) {<NEW_LINE>int currentFilledIndex = 0;<NEW_LINE>int size = list.size();<NEW_LINE>T[] elements = ArrayListIterate.getIn... | RandomAccessListIterate.removeIf(list, predicate); |
854,548 | private void createKeys() throws NoSuchProviderException, NoSuchAlgorithmException, InvalidAlgorithmParameterException {<NEW_LINE>// Create a start and end time, for the validity range of the key pair that's about to be<NEW_LINE>// generated.<NEW_LINE>Calendar start = new GregorianCalendar();<NEW_LINE>Calendar end = ne... | KeyPairGenerator.getInstance(TYPE_RSA, KEYSTORE); |
737,446 | final CreateStreamResult executeCreateStream(CreateStreamRequest createStreamRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createStreamRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<CreateStreamRequest> request = null;<NEW_LINE... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
924,920 | public void addDataPoint(IN dataPoint) {<NEW_LINE>String id = dataPoint.getId();<NEW_LINE>long timestamp = dataPoint.getTimestamp();<NEW_LINE>long timeslotTimestamp = timeWindow.refineTimestamp(timestamp);<NEW_LINE>SamplingPartitionContext<IN, OUT> samplingContext = samplingContexts.get(id);<NEW_LINE>if (samplingContex... | timeslotTimestamp, dataPoint, timeWindow, sampler); |
1,683,321 | public void processElement(ProcessContext p) {<NEW_LINE>// Get the multimap side input containing the size of each read range.<NEW_LINE>Map<String, Iterable<KV<Long, Long>>> rangeSizesMap = p.sideInput(rangeSizes);<NEW_LINE>// Process each file, retrieving each filename as key from the side input.<NEW_LINE>for (Entry<S... | numRecordsBefore = pastRecords.get(file); |
737,386 | private void registerAccountInternal(@NonNull RegistrationData registrationData, @NonNull VerifyAccountResponse response, @Nullable String pin, @Nullable KbsPinData kbsData) throws IOException {<NEW_LINE>ACI aci = ACI.parseOrThrow(response.getUuid());<NEW_LINE>PNI pni = PNI.parseOrThrow(response.getPni());<NEW_LINE>boo... | account().aciPreKeys()); |
1,531,227 | protected void doTransform(Row row, PointCollector collector) throws UDFInputSeriesDataTypeNotValidException, IOException {<NEW_LINE><MASK><NEW_LINE>double timeDelta = (double) currentTime - previousTime;<NEW_LINE>switch(dataType) {<NEW_LINE>case INT32:<NEW_LINE>int currentInt = row.getInt(0);<NEW_LINE>collector.putDou... | long currentTime = row.getTime(); |
293,355 | public static Pair.NonNull<MockVirtualFileSystem, Workspace> createWorkspaceAndFilesystem(@Nullable String daemonScript, @Nullable String doctorScript, @Nullable String testScript, @Nullable String runScript, @Nullable String syncScript, @Nullable String sdkHome, @Nullable String versionFile, @Nullable String requiredI... | file("/workspace/" + syncScript, ""); |
1,706,101 | // Concatenate stack traces if kept the original stack trace from the task creation<NEW_LINE>private void appendTaskStackTrace(final Throwable error) {<NEW_LINE>StackTraceElement[] taskStackTrace = _taskStackTraceHolder != null ? _taskStackTraceHolder.getStackTrace() : null;<NEW_LINE>// At a minimum, any stack trace sh... | "\" (above) was instantiated as following (below): **********", "", null, 0); |
1,513,491 | public List<String> listXAttrs(Path path) throws IOException {<NEW_LINE>Pointer buf;<NEW_LINE>int bufsize = 1024;<NEW_LINE>int r;<NEW_LINE>do {<NEW_LINE>bufsize *= 2;<NEW_LINE>buf = Memory.allocate(Runtime<MASK><NEW_LINE>r = lib.jfs_listXattr(Thread.currentThread().getId(), handle, normalizePath(path), buf, bufsize);<N... | .getRuntime(lib), bufsize); |
492,753 | private boolean isProtectedSignAround(Location searchBlock, LocalPlayer player) {<NEW_LINE>Location side;<NEW_LINE>Boolean res;<NEW_LINE>side = searchBlock;<NEW_LINE>res = isProtectedSign(side, player);<NEW_LINE>if (res != null && res)<NEW_LINE>return res;<NEW_LINE>side = searchBlock.setX(searchBlock.getX() - 1);<NEW_L... | res = isProtectedSignAndChest(side, player); |
1,714,642 | public void scheduleMqttMaybeReconnectAndPing(long keepAliveSeconds) {<NEW_LINE>if (keepAliveSeconds < TimeUnit.MILLISECONDS.toSeconds(MIN_PERIODIC_INTERVAL_MILLIS)) {<NEW_LINE>Timber.i("MQTT Keepalive interval is smaller than most granular workmanager interval, setting to 900 seconds");<NEW_LINE>keepAliveSeconds = Tim... | .context).cancelAllWorkByTag(PERIODIC_TASK_MQTT_KEEPALIVE); |
1,817,905 | public void onBindViewHolder(@NonNull ViewHolder holder, int position) {<NEW_LINE>ListItem listItem = adapterList.get(position);<NEW_LINE>if (listItem.type == LIST_ITEM_GROUP_END) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Set title<NEW_LINE>holder.title.setText(listItem.getTitle());<NEW_LINE>if (listItem.type == LIST_I... | subtitle.setTypeface(Typeface.MONOSPACE); |
849,787 | public boolean analyze(Program program, AddressSetView set, TaskMonitor monitor, MessageLog log) throws Exception {<NEW_LINE>// attempt to get the program manager service<NEW_LINE>// we can keep working without it, but the analysis will run much slower<NEW_LINE>ProgramManager programManager = null;<NEW_LINE>AutoAnalysi... | ExternalManager externalManager = program.getExternalManager(); |
278,099 | protected SPIRVId loadConvertIfNeeded(SPIRVCompilationResultBuilder crb, SPIRVAssembler asm, SPIRVId type, SPIRVKind spirvKind) {<NEW_LINE>if (value instanceof SPIRVVectorElementSelect) {<NEW_LINE>((SPIRVLIROp) value<MASK><NEW_LINE>return asm.lookUpLIRInstructions(value);<NEW_LINE>} else {<NEW_LINE>SPIRVId param = asm.... | ).emit(crb, asm); |
152,551 | private void runAlterJobWithConcurrencyLimit(RollupJobV2 rollupJobV2) {<NEW_LINE>if (rollupJobV2.isDone()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (rollupJobV2.isTimeout()) {<NEW_LINE>// in run(), the timeout job will be cancelled.<NEW_LINE>rollupJobV2.run();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// check if rollup jo... | long jobId = rollupJobV2.getJobId(); |
930,151 | /* (non-Javadoc)<NEW_LINE>* @see net.sf.jasperreports.engine.util.JRQueryExecuter#createDatasource()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public JRDataSource createDatasource() throws JRException {<NEW_LINE>JRResultSetDataSource dataSource = null;<NEW_LINE>createStatement();<NEW_LINE>if (statement != null) {<NEW_LIN... | > constructor = clazz.getConstructor(); |
578,547 | void handleSubscribe(final Subscriber<? super T> subscriber, final ContextMap contextMap, final AsyncContextProvider contextProvider) {<NEW_LINE>State<T> state <MASK><NEW_LINE>try {<NEW_LINE>subscriber.onSubscribe(state);<NEW_LINE>} catch (Throwable t) {<NEW_LINE>handleExceptionFromOnSubscribe(subscriber, t);<NEW_LINE>... | = new State<>(subscriber); |
101,054 | private void removeEmptyGroupAfterTimeout(MessageGroup messageGroup, long timeout) {<NEW_LINE>Object groupId = messageGroup.getGroupId();<NEW_LINE>UUID groupUuid = UUIDConverter.getUUID(groupId);<NEW_LINE>ScheduledFuture<?> scheduledFuture = getTaskScheduler().schedule(() -> {<NEW_LINE>Lock lock = this.lockRegistry.obt... | "Thread was interrupted while trying to obtain lock." + "Rescheduling empty MessageGroup [ " + groupId + "] for removal."); |
243,436 | private static Value parse(IndexSetting indexSetting, Object value) {<NEW_LINE>final Class<?> type = indexSetting.getType();<NEW_LINE>try {<NEW_LINE>if (type == Boolean.class) {<NEW_LINE>return parseAsBoolean(value);<NEW_LINE>}<NEW_LINE>if (type == double[].class) {<NEW_LINE>return parseAsDoubleArray(value);<NEW_LINE>}... | stringValue(value.toString()); |
1,709,774 | private void scan(File dir, String fileName) {<NEW_LINE>try {<NEW_LINE>List<JaxrsClass> jaxrsClasses = new ArrayList<>();<NEW_LINE>List<Class<?>> classes = this.scanJaxrsClass();<NEW_LINE>for (Class<?> clz : classes) {<NEW_LINE>jaxrsClasses.add<MASK><NEW_LINE>}<NEW_LINE>LinkedHashMap<String, List<?>> map = new LinkedHa... | (this.jaxrsClass(clz)); |
1,775,403 | public <T> T deserialze(DefaultJSONParser parser, Type clazz, Object fieldName) {<NEW_LINE>final JSONLexer lexer = parser.lexer;<NEW_LINE>Long longObject;<NEW_LINE>try {<NEW_LINE>final int token = lexer.token();<NEW_LINE>if (token == JSONToken.LITERAL_INT) {<NEW_LINE>long longValue = lexer.longValue();<NEW_LINE>lexer.n... | Object value = parser.parse(); |
1,531,338 | void solveTensile(final TimeStep step) {<NEW_LINE>m_accumulation2Buffer = requestParticleBuffer(Vec2.class, m_accumulation2Buffer);<NEW_LINE>for (int i = 0; i < m_count; i++) {<NEW_LINE>m_accumulationBuffer[i] = 0;<NEW_LINE>m_accumulation2Buffer[i].setZero();<NEW_LINE>}<NEW_LINE>for (int k = 0; k < m_contactCount; k++)... | final Vec2 a2B = m_accumulation2Buffer[b]; |
1,504,853 | private static void logState(final MessageFrame frame, final Gas currentGasCost) {<NEW_LINE>if (LOG.isTraceEnabled()) {<NEW_LINE>final StringBuilder builder = new StringBuilder();<NEW_LINE>builder.append("Depth: ").append(frame.getMessageStackDepth<MASK><NEW_LINE>builder.append("Operation: ").append(frame.getCurrentOpe... | ()).append("\n"); |
239,569 | private List<ProblemToReport> resolveProblemLocation(Problem problem, CallGraph callGraph) {<NEW_LINE>class Step {<NEW_LINE><NEW_LINE>private final CallLocationList locationList;<NEW_LINE><NEW_LINE>private final CallLocation location;<NEW_LINE><NEW_LINE>private Step(CallLocationList locationList, CallLocation location)... | result = getProblemLocation(step.location); |
1,198,509 | protected void modifyContact(PersonProxy person, String id) {<NEW_LINE>ArrayList<ContentProviderOperation> ops = new ArrayList<>();<NEW_LINE>if (person.isFieldModified(TiC.PROPERTY_NAME)) {<NEW_LINE>modifyName(ops, person, id);<NEW_LINE>}<NEW_LINE>if (person.isFieldModified(TiC.PROPERTY_BIRTHDAY)) {<NEW_LINE>modifyBirt... | modifyEmail(ops, person, id); |
1,652,633 | public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>log.info("Post from " + request.getRemoteHost() + " - " + request.getRemoteAddr());<NEW_LINE>// Get Session attributes<NEW_LINE>HttpSession session = request.getSession(true);<NEW_LINE>session.re... | response, "Web Advertisement not changed", "advertisements.jsp", 0); |
1,780,942 | public static void main(String[] args) throws Exception {<NEW_LINE>CommandLine commandLine = parseCommandLine(args);<NEW_LINE>String zookeeper = commandLine.getOptionValue(ZOOKEEPER);<NEW_LINE>String topic = commandLine.getOptionValue(TOPIC);<NEW_LINE>int num_messages = Integer.parseInt(commandLine.getOptionValue(NUM_M... | ) - beginOffsets.get(tp); |
915,335 | public void spawn(ProxySession session) {<NEW_LINE>AddPlayerPacket addPlayerPacket = new AddPlayerPacket();<NEW_LINE>addPlayerPacket.setUuid(javaUuid);<NEW_LINE>addPlayerPacket.setUsername(profile.getName());<NEW_LINE>addPlayerPacket.setRuntimeEntityId(proxyEid);<NEW_LINE>addPlayerPacket.setUniqueEntityId(proxyEid);<NE... | addPlayerPacket.setMotion(Vector3f.ZERO); |
229,960 | static Frame toFrame(final SourceLocator locator, final Throwable cause, final StackTraceElement e) {<NEW_LINE>int line = Math.max(e.getLineNumber(), 1);<NEW_LINE>String className = ofNullable(e.getClassName<MASK><NEW_LINE>String[] names = className.split("\\.");<NEW_LINE>String filename = ofNullable(e.getFileName()).o... | ()).orElse("~unknown"); |
1,102,492 | public int compare(Attribute o1, Attribute o2) {<NEW_LINE>if ((o1.value == null) && (o2.value != null)) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>if ((o1.value != null) && (o2.value == null)) {<NEW_LINE>return 1;<NEW_LINE>}<NEW_LINE>if ((o1.value == null) && (o2.value == null)) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>... | return o2.weight - o1.weight; |
155,746 | private void paintZoomIndicator(Graphics2D graphics) {<NEW_LINE>if (mZoom != 0) {<NEW_LINE>int width = getWidth() / 4;<NEW_LINE>int x = (getWidth() / 2) - (width / 2);<NEW_LINE>// Draw the outer window<NEW_LINE>graphics.drawRect(x, getHeight() - 12, width, 10);<NEW_LINE>int zoomWidth = width / getZoomMultiplier();<NEW_... | 3, getHeight() - 2); |
793,106 | public void bind(Review item, int position) {<NEW_LINE>super.bind(item, position);<NEW_LINE>UiUtils.showIf(position > 0, mDivider);<NEW_LINE>mUserName.setText(item.getAuthor());<NEW_LINE>Date date = new Date(item.getDate());<NEW_LINE>mCommentDate.setText(DateFormat.getMediumDateFormat(mCommentDate.getContext()).format(... | , item.getRating())); |
423,654 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String mobileNetworkName, String siteName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot b... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
809,866 | public void write(JSONWriter jsonWriter, Object object, Object fieldName, Type fieldType, long features) {<NEW_LINE>if (object == null) {<NEW_LINE>jsonWriter.writeNull();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JSONWriter.Context ctx = jsonWriter.getContext();<NEW_LINE>OffsetDateTime dateTime = (OffsetDateTime) object;<NE... | dateTime.get(ChronoField.YEAR); |
1,323,465 | public void read(org.apache.thrift.protocol.TProtocol iprot, MediaContent struct) throws org.apache.thrift.TException {<NEW_LINE>org.<MASK><NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {<N... | apache.thrift.protocol.TField schemeField; |
1,290,638 | public static ListClusterResponse unmarshall(ListClusterResponse listClusterResponse, UnmarshallerContext _ctx) {<NEW_LINE>listClusterResponse.setRequestId(_ctx.stringValue("ListClusterResponse.RequestId"));<NEW_LINE>listClusterResponse.setCode<MASK><NEW_LINE>listClusterResponse.setMessage(_ctx.stringValue("ListCluster... | (_ctx.integerValue("ListClusterResponse.Code")); |
947,338 | public static void changePPS(File in1, File in2, File out) throws IOException {<NEW_LINE>MP4Muxer muxer = MP4Muxer.createMP4Muxer(writableChannel(out), Brand.MOV);<NEW_LINE>MP4Demuxer demuxer1 = MP4Demuxer.createMP4Demuxer(readableChannel(in1));<NEW_LINE>DemuxerTrack vt1 = demuxer1.getVideoTrack();<NEW_LINE>MP4Demuxer ... | H264, meta1.getVideoCodecMeta()); |
1,706,759 | private JPanel createLowerPanel(@Nonnull UIController controller) {<NEW_LINE>JPanel panel = new JPanel(new GridBagLayout());<NEW_LINE>GridBag gc = new GridBag().nextLine();<NEW_LINE>if (PowerSaveMode.isEnabled()) {<NEW_LINE>panel.add(new TrackableLinkLabel(EditorBundle.message("iw.disable.powersave"), () -> {<NEW_LINE>... | .insetLeft(8) : gc); |
1,271,161 | default boolean containedFluidTooltip(List<Component> tooltip, boolean isPlayerSneaking, LazyOptional<IFluidHandler> handler) {<NEW_LINE>tooltip.add(componentSpacing.plainCopy().append(Lang.translate("gui.goggles.fluid_container")));<NEW_LINE>TranslatableComponent <MASK><NEW_LINE>Optional<IFluidHandler> resolve = handl... | mb = Lang.translate("generic.unit.millibuckets"); |
1,086,594 | private ApplicationInstance makeApplicationInstanceLimitedToHosts(ServiceStatusProvider serviceStatusProvider, Predicate<HostName> includeHostPredicate) {<NEW_LINE>Map<ServiceClusterKey, Set<ServiceInstance>> <MASK><NEW_LINE>for (HostInfo host : applicationInfo.getModel().getHosts()) {<NEW_LINE>HostName hostName = new ... | groupedServiceInstances = new HashMap<>(); |
1,600,198 | public void insertNumberChangeMessages(@NonNull Recipient recipient) {<NEW_LINE>ThreadDatabase threadDatabase = SignalDatabase.threads();<NEW_LINE>List<GroupDatabase.GroupRecord> groupRecords = SignalDatabase.groups().getGroupsContainingMember(recipient.getId(), false);<NEW_LINE>List<Long> threadIdsToUpdate = new Linke... | DATE_SENT, System.currentTimeMillis()); |
1,655,194 | private static CatalogBaseTable createNewTableDesc(ObjectPath objectPath, TableSchema schema, Params params) {<NEW_LINE>String[] partitionCols = new String[0];<NEW_LINE>String partitionSpec = params.get(HiveCatalogParams.PARTITION);<NEW_LINE>if (!StringUtils.isNullOrWhitespaceOnly(partitionSpec)) {<NEW_LINE>partitionCo... | Preconditions.checkArgument(pos > 0); |
1,282,431 | public void run(RegressionEnvironment env) {<NEW_LINE><MASK><NEW_LINE>env.compileDeploy(epl).addListener("select").addListener("create");<NEW_LINE>sendSupportBean(env, "E1", 1L, 10L);<NEW_LINE>String[] fields = "stringValOne,stringValTwo,intVal,longVal".split(",");<NEW_LINE>env.assertPropsNew("create", fields, new Obje... | String epl = "@name('create') create window MyWindowCTS#keepall (stringValOne varchar, stringValTwo string, intVal int, longVal long);\n" + "insert into MyWindowCTS select theString as stringValOne, theString as stringValTwo, cast(longPrimitive, int) as intVal, longBoxed as longVal from SupportBean;\n" + "@name('select... |
477,084 | public void create(ODatabaseDocumentInternal database) {<NEW_LINE>if (database.getMetadata().getSchema().existsClass(OScheduledEvent.CLASS_NAME))<NEW_LINE>return;<NEW_LINE>final OClass f = database.getMetadata().getSchema().createClass(OScheduledEvent.CLASS_NAME);<NEW_LINE>f.createProperty(OScheduledEvent.PROP_NAME, OT... | , (OType) null, true); |
80,461 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select 1 in (objectArr) as resOne, 2 in (objectArr) as resTwo from SupportBeanArrayCollMap";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>String[] fields = "resOne, resTwo".split(",");<NEW_LINE>sendArrayCollMap(env, new Suppo... | new Object[] {})); |
1,019,607 | protected boolean queueWork(Path path, ReplicationTarget target) {<NEW_LINE>String queueKey = DistributedWorkQueueWorkAssignerHelper.getQueueKey(path.getName(), target);<NEW_LINE>Map<TableId, String> workForPeer = this.queuedWorkByPeerName.computeIfAbsent(target.getPeerName(), k -> new HashMap<>());<NEW_LINE>String que... | queueKey, path.toString()); |
752,389 | public static EnableOrderResponse unmarshall(EnableOrderResponse enableOrderResponse, UnmarshallerContext _ctx) {<NEW_LINE>enableOrderResponse.setRequestId(_ctx.stringValue("EnableOrderResponse.RequestId"));<NEW_LINE>enableOrderResponse.setCode(_ctx.stringValue("EnableOrderResponse.Code"));<NEW_LINE>enableOrderResponse... | = new ArrayList<LmOrderListItem>(); |
807,886 | protected void permissionsCheck(Player player) {<NEW_LINE>canBeastLore = canUseSubskill(player, SubSkillType.TAMING_BEAST_LORE);<NEW_LINE>canCallWild = Permissions.callOfTheWild(player, EntityType.HORSE) || Permissions.callOfTheWild(player, EntityType.WOLF) || Permissions.<MASK><NEW_LINE>canEnvironmentallyAware = canUs... | callOfTheWild(player, EntityType.OCELOT); |
959,490 | public static void main(final String[] args) throws Exception {<NEW_LINE>System.out.println("\n*** OTF Example ***\n");<NEW_LINE>// Encode up message and schema as if we just got them off the wire.<NEW_LINE>final ByteBuffer encodedSchemaBuffer = ByteBuffer.allocate(SCHEMA_BUFFER_CAPACITY);<NEW_LINE>encodeSchema(encoded... | OtfHeaderDecoder(ir.headerStructure()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.