idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,678,043 | public void configure(ConfigurableProvider provider) {<NEW_LINE>provider.addAlgorithm("MessageDigest.DSTU7564-256", PREFIX + "$Digest256");<NEW_LINE>provider.addAlgorithm("MessageDigest.DSTU7564-384", PREFIX + "$Digest384");<NEW_LINE>provider.addAlgorithm("MessageDigest.DSTU7564-512", PREFIX + "$Digest512");<NEW_LINE>p... | UAObjectIdentifiers.dstu7564digest_384, PREFIX + "$Digest384"); |
374,033 | public static JavaRuntimeInfo from(RuleContext ruleContext, String attributeName) {<NEW_LINE>if (!ruleContext.attributes().has(attributeName, BuildType.LABEL)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TransitiveInfoCollection <MASK><NEW_LINE>if (prerequisite == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Toolc... | prerequisite = ruleContext.getPrerequisite(attributeName); |
1,734,298 | public static ListVnAvailableInstancesResponse unmarshall(ListVnAvailableInstancesResponse listVnAvailableInstancesResponse, UnmarshallerContext context) {<NEW_LINE>listVnAvailableInstancesResponse.setRequestId(context.stringValue("ListVnAvailableInstancesResponse.RequestId"));<NEW_LINE>listVnAvailableInstancesResponse... | (context.integerValue("ListVnAvailableInstancesResponse.HttpStatusCode")); |
401,559 | public static void encodeResponseHeaders(ResteasyReactiveRequestContext requestContext) {<NEW_LINE>ServerHttpResponse vertxResponse = requestContext.serverResponse();<NEW_LINE>LazyResponse lazyResponse = requestContext.getResponse();<NEW_LINE>if (!lazyResponse.isCreated() && lazyResponse.isPredetermined()) {<NEW_LINE>/... | entry.getKey(), ""); |
940,016 | final SynthesizeSpeechResult executeSynthesizeSpeech(SynthesizeSpeechRequest synthesizeSpeechRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(synthesizeSpeechRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,592,460 | public void send(Object message, boolean sent) throws RemotingException {<NEW_LINE>super.send(message, sent);<NEW_LINE>boolean success = true;<NEW_LINE>int timeout = 0;<NEW_LINE>try {<NEW_LINE>ChannelFuture future = channel.write(message);<NEW_LINE>if (sent) {<NEW_LINE>timeout = getUrl().getPositiveParameter(TIMEOUT_KE... | ) + "in timeout(" + timeout + "ms) limit"); |
1,190,503 | private StreamHolder payloadToInputStream(Message<?> message) throws MessageDeliveryException {<NEW_LINE>Object payload = message.getPayload();<NEW_LINE>try {<NEW_LINE>if (payload instanceof File) {<NEW_LINE>File inputFile = (File) payload;<NEW_LINE>if (inputFile.exists()) {<NEW_LINE>return new StreamHolder(new Buffere... | bytes = (byte[]) payload; |
104,461 | protected String doIt() throws IOException, DocumentException {<NEW_LINE>final Properties ctx = Env.getCtx();<NEW_LINE>final String trxName = ITrx.TRXNAME_None;<NEW_LINE>final String outputDir = Services.get(ISysConfigBL.class).getValue(SYSCONFIG_PdfDownloadPath);<NEW_LINE>final String fileName = "printjobs_" + getPins... | archive != null, queue + " references an AD_Archive record"); |
698,677 | final UpdateEnvironmentResult executeUpdateEnvironment(UpdateEnvironmentRequest updateEnvironmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateEnvironmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | false), new UpdateEnvironmentResultJsonUnmarshaller()); |
473,296 | public static void main(String[] args) {<NEW_LINE>PackManager.v().getPack("wjpp").add(new Transform("wjpp.inlineReflCalls", new ReflectiveCallsInliner()));<NEW_LINE>final Scene scene = Scene.v();<NEW_LINE>scene.addBasicClass(Object.class.getName());<NEW_LINE>scene.addBasicClass(SootSig.class.getName(), SootClass.BODIES... | logger.debug("The command-line options are described at:\n" + "http://www.sable.mcgill.ca/soot/tutorial/usage/index.html"); |
581,028 | public List<String> tokenize(String text, Language lang) {<NEW_LINE>List<String> result = new ArrayList<String>();<NEW_LINE>if ((text == null) || (text.length() == 0)) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if ((lang == null) || (lang.getLang() == null)) {<NEW_LINE>// default Indo-European languag... | getInstance().tokenize(text); |
893,542 | public static void main(String[] args) {<NEW_LINE>boolean verbose = false;<NEW_LINE>for (String s : args) {<NEW_LINE>if ("-v".equals(s)) {<NEW_LINE>verbose = true;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (verbose) {<NEW_LINE>System.out.println("These are the lookup table sizes required for each floating point type:");<NEW_LI... | * LOG10_5_NUMERATOR) / LOG10_5_DENOMINATOR - 1); |
1,485,398 | protected void execute(ThreadPoolRunStateInfo poolRunStateInfo) {<NEW_LINE>EsThreadPoolRunStateInfo esThreadPoolRunStateInfo = new EsThreadPoolRunStateInfo();<NEW_LINE>BeanUtil.copyProperties(poolRunStateInfo, esThreadPoolRunStateInfo);<NEW_LINE>Environment environment = ApplicationContextHolder.getInstance().getEnviro... | mapping, null, null, null); |
769,004 | private void auditEventJMXMBean01(Object[] methodParams) {<NEW_LINE>Object[] varargs = (Object[]) methodParams[1];<NEW_LINE>ObjectName name = (ObjectName) varargs[0];<NEW_LINE>String className = (String) varargs[1];<NEW_LINE>ObjectName loader = (ObjectName) varargs[2];<NEW_LINE>String operationName = (String) varargs[3... | query, action, outcome, outcomeReason); |
362,605 | protected void updateContent() {<NEW_LINE>RoutingHelper routingHelper = mapActivity.getRoutingHelper();<NEW_LINE>view.findViewById(R.id.dividerToDropDown).setVisibility(View.VISIBLE);<NEW_LINE>view.findViewById(R.id.route_info_details_card).setVisibility(View.VISIBLE);<NEW_LINE>View info = view.findViewById(R.id.info_c... | getLeftTime(), true))); |
519,132 | public boolean execute(Object result) throws ContractExeException {<NEW_LINE>TransactionResultCapsule ret = (TransactionResultCapsule) result;<NEW_LINE>if (Objects.isNull(ret)) {<NEW_LINE>throw new RuntimeException(ActuatorConstant.TX_RESULT_NULL);<NEW_LINE>}<NEW_LINE>final SetAccountIdContract setAccountIdContract;<NE... | .getOwnerAddress().toByteArray(); |
1,628,853 | private void readCommonParameters(Class<?> cls) {<NEW_LINE>Path path = AnnotationUtils.findAnnotation(cls, Path.class);<NEW_LINE>if (path != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<Method> filteredMethods = getFilteredMethods(cls);<NEW_LINE>for (Method method : filteredMethods) {<NEW_LINE>path = AnnotationUti... | ] fields = cls.getDeclaredFields(); |
1,246,897 | public ClassSetAnalysisData read(Decoder decoder) throws Exception {<NEW_LINE>HierarchicalNameSerializer hierarchicalNameSerializer = classNameSerializerSupplier.get();<NEW_LINE>DependentSetSerializer dependentSetSerializer = new DependentSetSerializer(() -> hierarchicalNameSerializer);<NEW_LINE>int count = decoder.rea... | dependents = dependentSetSerializer.read(decoder); |
477,580 | public static BinaryTableWriter<DragstrLocus> dragenWriter(final OutputStream out, final OutputStream indexOut, final String path) {<NEW_LINE>final ByteBuffer buffer = ByteBuffer.allocate(Integer.BYTES * 3 + Short.BYTES + 2 * Byte.BYTES);<NEW_LINE>buffer.order(ByteOrder.LITTLE_ENDIAN);<NEW_LINE>return binaryWriter(out,... | , record.getRepeats())); |
420,004 | public static void createT_Selection_Browse(int AD_PInstance_ID, LinkedHashMap<Integer, LinkedHashMap<String, Object>> selection, String trxName) {<NEW_LINE>StringBuilder insert = new StringBuilder();<NEW_LINE>insert.append("INSERT INTO " + "T_Selection_Browse (AD_PInstance_ID, T_Selection_ID, ColumnName , Value_String... | ) data).getTime()); |
1,651,352 | public OLCand toOLCand(@NonNull final I_C_OLCand record) {<NEW_LINE>final OrderLineGroup orderLineGroup = Check.isBlank(record.getCompensationGroupKey()) ? null : OrderLineGroup.builder().groupKey(record.getCompensationGroupKey()).isGroupingError(record.isGroupingError()).groupingErrorMessage(record.getGroupingErrorMes... | getPhone()).build(); |
70,900 | private static void addMember(PythonLanguage language, Object clsPtr, Object tpDictPtr, Object namePtr, int memberType, int offset, int canSet, Object docPtr, AsPythonObjectNode asPythonObjectNode, CastToJavaStringNode castToJavaStringNode, FromCharPointerNode fromCharPointerNode, InteropLibrary docPtrLib, PythonObject... | (asPythonObjectNode.execute(namePtr)); |
275,265 | public void testPersistentExecPolling(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>int numPersistentExecs = Integer.parseInt(request.getParameter("numPersistentExecs"));<NEW_LINE>final long[] expectedDelays = new long[numPersistentExecs];<NEW_LINE>final long[] alternateExpectedD... | (Arrays.toString(delays)); |
53,339 | private String remount(String key) {<NEW_LINE>List<String> segments = Splitter.on('.').splitToList(key);<NEW_LINE>segments.forEach(segment -> Preconditions.checkArgument(!Strings.isNullOrEmpty(segment)));<NEW_LINE>JsonNode scope = mounts.getInternalObjectNode();<NEW_LINE>int i = 0;<NEW_LINE>while (true) {<NEW_LINE>Stri... | throw new ConfigException("Illegal value in _secrets: " + node); |
1,745,558 | public void collectLocalVariableAssignment(LocalVariable localVariable, StatementContainer<StructuredStatement> statementContainer, Expression value) {<NEW_LINE>// Ensure type clashes are collapsed, otherwise PairTest3 gets duplicate definitions.<NEW_LINE>localVariable.getInferredJavaType().collapseTypeClash();<NEW_LIN... | NamedVariable name = localVariable.getName(); |
1,279,813 | private static RequestLog requestLog(ApplicationServer applicationServer) throws Exception {<NEW_LINE>AsyncRequestLogWriter asyncRequestLogWriter = new AsyncRequestLogWriter();<NEW_LINE>asyncRequestLogWriter.setTimeZone(TimeZone.getDefault().getID());<NEW_LINE>asyncRequestLogWriter.setAppend(true);<NEW_LINE>asyncReques... | Date(), "z") + "}t \"%r\" %s %O %{ms}T"; |
1,410,328 | public void read(org.apache.thrift.protocol.TProtocol iprot, update_request 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.... | struct.key = new blob(); |
269,406 | protected void edgeStructure(StreamTokenizerWithMultilineLiterals streamTokenizer, final NodeDraft nodeDraft) throws Exception {<NEW_LINE>streamTokenizer.nextToken();<NEW_LINE>EdgeDraft edge = null;<NEW_LINE>if (streamTokenizer.ttype == '>' || streamTokenizer.ttype == '-') {<NEW_LINE>streamTokenizer.nextToken();<NEW_LI... | ("" + streamTokenizer.sval)); |
1,202,272 | /* Sample generated code:<NEW_LINE>*<NEW_LINE>* @com.ibm.j9ddr.GeneratedFieldAccessor(offsetFieldName="_fifteenMinuteAverageOffset_", declaredType="double")<NEW_LINE>* public double fifteenMinuteAverage() throws CorruptDataException {<NEW_LINE>* return getDoubleAtOffset(J9PortSysInfoLoadData._fifteenMinuteAverageOf... | className, "getDoubleAtOffset", doubleFromLong, false); |
1,538,784 | private void attribute(MessageTextHandler messageTextHandler, Name attributeName, Name elementName, boolean atSentenceStart) throws SAXException {<NEW_LINE>String ns = attributeName.getNamespaceUri();<NEW_LINE>if (html || "".equals(ns)) {<NEW_LINE>messageTextString(messageTextHandler, ATTRIBUTE, atSentenceStart);<NEW_L... | messageTextString(messageTextHandler, humanReadable, atSentenceStart); |
913,374 | public DeleteQueuedReservedInstancesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteQueuedReservedInstancesResult deleteQueuedReservedInstancesResult = new DeleteQueuedReservedInstancesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = origi... | new ArrayList<SuccessfulQueuedPurchaseDeletion>()); |
138,396 | private void readSettingsFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener) throws Http2Exception {<NEW_LINE>if (flags.ack()) {<NEW_LINE>listener.onSettingsAckRead(ctx);<NEW_LINE>} else {<NEW_LINE>int numSettings = payloadLength / SETTING_ENTRY_LENGTH;<NEW_LINE>Http2Settings settings = new H... | "Failed setting initial window size: %s", e.getMessage()); |
1,296,498 | private static Set<String> parseNamespaceList(String namespacesList) {<NEW_LINE>Set<String> namespaces;<NEW_LINE>if (namespacesList == null || namespacesList.isEmpty()) {<NEW_LINE>namespaces = <MASK><NEW_LINE>} else {<NEW_LINE>if (namespacesList.trim().equals(AbstractResourceOperator.ANY_NAMESPACE)) {<NEW_LINE>namespac... | Collections.singleton(AbstractResourceOperator.ANY_NAMESPACE); |
969,083 | private boolean changeGraphAccess(final String graphId, final FederatedAccess newFederatedAccess, final Predicate<FederatedAccess> accessPredicate) throws StorageException {<NEW_LINE>boolean rtn;<NEW_LINE>final Graph graphToMove = getGraphToMove(graphId, accessPredicate);<NEW_LINE>if (nonNull(graphToMove)) {<NEW_LINE>/... | addGraphToCache(graphToMove, newFederatedAccess, true); |
1,372,933 | final DeleteJobTaggingResult executeDeleteJobTagging(DeleteJobTaggingRequest deleteJobTaggingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteJobTaggingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | getAccountId(), "AccountId", "deleteJobTaggingRequest"); |
131,512 | private int[] transformTransformedValuesToIntValuesSV(ProjectionBlock projectionBlock) {<NEW_LINE>// operating on the output of another transform so can't pass the evaluation down to the storage<NEW_LINE>ensureJsonPathCompiled();<NEW_LINE>String[] jsonStrings = _jsonFieldTransformFunction.transformToStringValuesSV(proj... | parseInt(result.toString()); |
1,681,550 | public void propagate(InstanceState state) {<NEW_LINE>final var portType = state.getAttributeValue(ATTR_DIR);<NEW_LINE>final var nrOfPins = state.getAttributeValue(ATTR_SIZE).getWidth();<NEW_LINE>final var stateData = getState(state);<NEW_LINE>var currentPortIndex = 0;<NEW_LINE>// first we update the state data<NEW_LIN... | .create(outputValue), DELAY); |
403,679 | protected void runOneIteration() {<NEW_LINE>try {<NEW_LINE>final List<PersistentQueryMetadata> currentQueries = engine.getPersistentQueries();<NEW_LINE>if (currentQueries.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Set<HostInfo> uniqueHosts = <MASK><NEW_LINE>for (HostInfo hostInfo : uniqueHosts) {<NEW_LINE>... | DiscoverRemoteHostsUtil.getRemoteHosts(currentQueries, localHost); |
1,029,177 | protected Set<Object> createInstance() {<NEW_LINE>if (this.sourceSet == null) {<NEW_LINE>throw new IllegalArgumentException("'sourceSet' is required");<NEW_LINE>}<NEW_LINE>Set<Object> result = null;<NEW_LINE>if (this.targetSetClass != null) {<NEW_LINE>result = <MASK><NEW_LINE>} else {<NEW_LINE>result = new LinkedHashSe... | BeanUtils.instantiateClass(this.targetSetClass); |
1,665,297 | public F0Value pitchAnalyzeFrame(NonharmonicSinusoidalSpeechFrame sinFrame, int samplingRate, float searchStepInHz, float minFreqInHz, float maxFreqInHz) {<NEW_LINE>F0Value v = new F0Value();<NEW_LINE>double[] Q = null;<NEW_LINE>float w0;<NEW_LINE>int i;<NEW_LINE>if (sinFrame != null) {<NEW_LINE>int numCandidates = (in... | maxInds[maxInd] * searchStepInHz + minFreqInHz; |
1,802,586 | public Future<BackupResult> backupSession(final String sessionId, final boolean sessionIdChanged, final String requestId) {<NEW_LINE>final MemcachedBackupSession session = _manager.getSessionInternal(sessionId);<NEW_LINE>if (session == null) {<NEW_LINE>if (_log.isDebugEnabled())<NEW_LINE>_log.debug("No session found in... | long startSerialization = System.currentTimeMillis(); |
400,578 | public static void main(String... args) throws LineUnavailableException {<NEW_LINE>AudioGenerator generator = new AudioGenerator(1024, 0);<NEW_LINE>generator.addAudioProcessor(new NoiseGenerator(0.2));<NEW_LINE>generator.addAudioProcessor(new LowPassFS(1000, 44100));<NEW_LINE>generator.addAudioProcessor(new LowPassFS(1... | , 0.2, 44100, 4)); |
473,032 | Mono<Response<SchemaProperties>> registerSchemaWithResponse(String groupName, String name, String schemaDefinition, SchemaFormat format, Context context) {<NEW_LINE>if (Objects.isNull(groupName)) {<NEW_LINE>return monoError(logger, new NullPointerException("'groupName' should not be null."));<NEW_LINE>} else if (Object... | groupName, name, format, schemaDefinition); |
1,070,004 | private Mono<Response<MetricDefinitionInner>> listMetricDefinitionsWithResponseAsync(String resourceGroupName, String name, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."))... | error(new IllegalArgumentException("Parameter name is required and cannot be null.")); |
142,222 | private void initalizeSwingControls() {<NEW_LINE>accountLabel = new JTextPane();<NEW_LINE>accountLabel.setEditable(false);<NEW_LINE>accountLabel.setOpaque(false);<NEW_LINE>personaHeader = new JLabel(Bundle.MessageAccountPanel_persona_label());<NEW_LINE>contactHeader = new JLabel(Bundle.MessageAccountPanel_contact_label... | setFont(ContentViewerDefaults.getHeaderFont()); |
457,240 | protected void childrenChanged(PsiElement parent, final boolean stopProcessingForThisModificationCount) {<NEW_LINE>if (parent instanceof PsiDirectory && isFlattenPackages()) {<NEW_LINE>addSubtreeToUpdateByRoot();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long newModificationCount = myModificationTracker.getModificationCount... | PsiFile) parent).getContainingDirectory(); |
1,547,777 | public FluidStack drain(FluidStack toDrain, FluidAction action) {<NEW_LINE>// search for the resource<NEW_LINE>ListIterator<FluidStack> iter = fluids.listIterator();<NEW_LINE>while (iter.hasNext()) {<NEW_LINE>FluidStack fluid = iter.next();<NEW_LINE>if (fluid.isFluidEqual(toDrain)) {<NEW_LINE>// if found, determine how... | ), fluid.getAmount()); |
444,593 | public Builder mergeFrom(org.apache.jena.riot.protobuf.wire.PB_RDF.RDF_DataTuple other) {<NEW_LINE>if (other == org.apache.jena.riot.protobuf.wire.PB_RDF.RDF_DataTuple.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (rowBuilder_ == null) {<NEW_LINE>if (!other.row_.isEmpty()) {<NEW_LINE>if (row_.isEmpty()) {<NEW... | this.mergeUnknownFields(other.unknownFields); |
1,202,070 | public void configureBPartner(int partnerId) {<NEW_LINE>// Valid if has a Order<NEW_LINE>if (isCompleted() || isVoided())<NEW_LINE>return;<NEW_LINE>log.fine("CPOS.setC_BPartner_ID=" + partnerId);<NEW_LINE>boolean isSamePOSPartner = false;<NEW_LINE>// Validate BPartner<NEW_LINE>if (partnerId == 0) {<NEW_LINE>isSamePOSPa... | setSalesRep_ID(entityPOS.getSalesRep_ID()); |
1,134,878 | private static boolean shouldPerformWordCompletion(CompletionParameters parameters) {<NEW_LINE>final PsiElement insertedElement = parameters.getPosition();<NEW_LINE>final boolean dumb = DumbService.getInstance(insertedElement.getProject()).isDumb();<NEW_LINE>if (dumb) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (par... | file.findElementAt(startOffset - 1); |
458,433 | public E poll() {<NEW_LINE>if (bypassMode.get())<NEW_LINE>return backingQueue.poll();<NEW_LINE>// if that's first step, set local step counter to -1<NEW_LINE>if (currentStep.get() == null)<NEW_LINE>currentStep.set(new AtomicLong(-1));<NEW_LINE>// we block until everyone else step forward<NEW_LINE>while (step.get() == c... | synchronize(currentConsumers.get()); |
288,730 | protected WizardDescriptor.Panel[] initializePanels() {<NEW_LINE>WizardDescriptor.Panel[] panels = new WizardDescriptor.Panel[3];<NEW_LINE>repositoryStep <MASK><NEW_LINE>repositoryStep.addChangeListener(ImportWizard.this);<NEW_LINE>File file = context.getRootFiles()[0];<NEW_LINE>importStep = new ImportStep(new BrowserA... | = new RepositoryStep(RepositoryStep.IMPORT_HELP_ID); |
1,376,935 | public BaseSummarizer visit(Row row) {<NEW_LINE><MASK><NEW_LINE>int numberN = numericalColIndices.length;<NEW_LINE>if (count == 0) {<NEW_LINE>init();<NEW_LINE>}<NEW_LINE>count++;<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>Object obj = row.getField(i);<NEW_LINE>if (obj == null) {<NEW_LINE>numMissingValue.add(i, 1);... | int n = row.getArity(); |
1,635,098 | public void executeImpl(Connection metaDbConnection, ExecutionContext executionContext) {<NEW_LINE>Map<String, List<String>> virtualStorageOutDatedGroup = new HashMap<>();<NEW_LINE>List<String> uselessGroupList = new ArrayList<>();<NEW_LINE>ComplexTaskOutlineAccessor complexTaskOutlineAccessor = new ComplexTaskOutlineA... | ComplexTaskType.MOVE_DATABASE.getValue()); |
1,690,851 | private static void load_class_helper(CodeEmitter e, final Type type) {<NEW_LINE>if (e.isStaticHook()) {<NEW_LINE>// have to fall back on non-optimized load<NEW_LINE>e.push(TypeUtils.emulateClassGetName(type));<NEW_LINE>e.invoke_static(Constants.TYPE_CLASS, FOR_NAME);<NEW_LINE>} else {<NEW_LINE><MASK><NEW_LINE>String t... | ClassEmitter ce = e.getClassEmitter(); |
326,843 | public AMParameterServerState transition(AMParameterServer parameterServer, AMParameterServerEvent event) {<NEW_LINE>PSAttemptId psAttemptId = ((PSPAttemptEvent) event).getPSAttemptId();<NEW_LINE>parameterServer.failedAttempts.add(psAttemptId);<NEW_LINE>if (parameterServer.runningPSAttemptId == psAttemptId) {<NEW_LINE>... | add(psDiagnostic.toString()); |
337,205 | public void addInformation(@Nonnull ItemStack stack, @Nullable World worldIn, @Nonnull List<String> tooltip, @Nonnull ITooltipFlag flagIn) {<NEW_LINE>super.addInformation(stack, worldIn, tooltip, flagIn);<NEW_LINE>CapturedMob capturedMob = CapturedMob.create(stack);<NEW_LINE>if (capturedMob != null) {<NEW_LINE>tooltip.... | float health = capturedMob.getHealth(); |
853,979 | private RFuture<ScanResult<Object>> distributedScanIteratorAsync(String iteratorName, int count) {<NEW_LINE>return commandExecutor.evalWriteAsync(getRawName(), codec, RedisCommands.EVAL_SSCAN, "local cursor = redis.call('get', KEYS[3]); " + "if cursor ~= false then " + "cursor = tonumber(cursor); " + "else " + "cursor ... | System.currentTimeMillis(), count); |
1,549,714 | private Properties readProperties(byte[] data) throws IOException {<NEW_LINE>// Properties are defined as name=value pairs where value may be over several lines<NEW_LINE>Properties properties = new Properties();<NEW_LINE>try (Reader isr = new InputStreamReader(new ByteArrayInputStream(data));<NEW_LINE>BufferedReader br... | line.substring(0, equalsPos); |
1,414,979 | private void processInput(EntityRef entity, CharacterMovementComponent characterMovementComponent) {<NEW_LINE>lookYaw = (float) ((lookYaw - lookYawDelta) % 360);<NEW_LINE>lookYawDelta = 0f;<NEW_LINE>lookPitch = (float) Math.clamp(-89, 89, lookPitch + lookPitchDelta);<NEW_LINE>lookPitchDelta = 0f;<NEW_LINE>Vector3f relM... | (lookYaw), 0, 0); |
1,418,963 | @PutMapping(value = "/cmmn-runtime/plan-item-instances/{planItemInstanceId}", produces = "application/json")<NEW_LINE>public PlanItemInstanceResponse performPlanItemInstanceAction(@ApiParam(name = "planItemInstanceId") @PathVariable String planItemInstanceId, @RequestBody RestActionRequest actionRequest, HttpServletReq... | HttpStatus.NO_CONTENT.value()); |
551,822 | public void run() {<NEW_LINE>bk.asyncOpenLedgerNoRecovery(lid, BookKeeper.DigestType.CRC32, conf.getBKDigestPW().getBytes(UTF_8), new org.apache.bookkeeper.client.AsyncCallback.OpenCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void openComplete(int rc, LedgerHandle lh, Object ctx) {<NEW_LINE>final int cbRc;... | lh.getLastAddConfirmed() + 1); |
989,505 | public MetaFile exportObject() {<NEW_LINE>group = Beans.get(GroupRepository.class).all().filter("self.code = 'admins'").fetchOne();<NEW_LINE>try {<NEW_LINE>log.debug("Attachment dir: {}", AppService.getFileUploadDir());<NEW_LINE>String uploadDir = AppService.getFileUploadDir();<NEW_LINE>if (uploadDir == null || !new Fi... | (metaFile).toFile()); |
308,072 | private ListenableFuture<?> rollupOneFromRows(int rollupLevel, String agentRollupId, String syntheticMonitorId, long to, int adjustedTTL, Iterable<Row> rows) throws Exception {<NEW_LINE>double totalDurationNanos = 0;<NEW_LINE>long executionCount = 0;<NEW_LINE>ErrorIntervalCollector errorIntervalCollector = new ErrorInt... | toByteBuffer(toProto(mergedErrorIntervals))); |
1,743,818 | public static <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9) {<NEW_LINE>Map<K, V> result = new HashMap<>(9);<NEW_LINE><MASK><NEW_LINE>result.put(k2, v2);<NEW_LINE>result.put(k3, v3);<NEW_LINE>result.put(k4, v4);<NEW_LINE>result.put(k5, v5)... | result.put(k1, v1); |
808,825 | final ImportStacksToStackSetResult executeImportStacksToStackSet(ImportStacksToStackSetRequest importStacksToStackSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importStacksToStackSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
791,903 | public ConnectInboundOutputImpl apply(@NotNull final ConnectInboundInputImpl input, @NotNull final ConnectInboundOutputImpl output) {<NEW_LINE>if (output.isPrevent()) {<NEW_LINE>// it's already prevented so no further interceptors must be called.<NEW_LINE>return output;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>final ConnectI... | interceptor = provider.getConnectInboundInterceptor(providerInput); |
65,921 | public String toSql(OlapTable table, List<Long> partitionId) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("PARTITION BY RANGE(");<NEW_LINE>int idx = 0;<NEW_LINE>for (Column column : partitionColumns) {<NEW_LINE>if (idx != 0) {<NEW_LINE>sb.append(", ");<NEW_LINE>}<NEW_LINE>sb.append("`").append(... | sort(entries, RangeUtils.RANGE_MAP_ENTRY_COMPARATOR); |
995,650 | private void sendMessage(FlowElement flowElement, DelegateExecution execution) {<NEW_LINE>Collection<MessageEventDefinition> messageDefinitions = flowElement.getChildElementsByType(MessageEventDefinition.class);<NEW_LINE>if (messageDefinitions.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MessageEventDefinition mes... | ] + execution.getVariable(expr); |
1,392,453 | public void writeConfig() throws ExecutionException, TimeoutException, InterruptedException {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>FutureCallback<None> callback = new FutureCallback<>();<NEW_LINE>_store.start(callback);<NEW_LINE>callback.get(_timeout, _timeoutUnit);<NEW_LINE>final Semaphore ou... | put(key, properties, putCallback); |
790,145 | private static Deque<DualKey> initStack(Object a, Object b, List<String> parentPath, Map<String, Comparator<?>> comparatorByPropertyOrField, TypeComparators comparatorByType) {<NEW_LINE>Deque<DualKey> <MASK><NEW_LINE>boolean isRootObject = parentPath == null;<NEW_LINE>List<String> currentPath = isRootObject ? new Array... | stack = new LinkedList<>(); |
381,617 | public void onDone(final String collectionId) {<NEW_LINE>new Thread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>String[] orderBy;<NEW_LINE>switch(sortMode) {<NEW_LINE>case SORT_ALPHA:<NEW_LINE>orderBy = new String[] { CollectionDb.ALBUMS_ALBUM + " COLLATE NOCASE " };<NEW_LINE>bre... | ] { CollectionDb.ARTISTS_ARTIST + " COLLATE NOCASE " }; |
237,091 | public void applyUpdater(INDArray gradient, int iteration, int epoch) {<NEW_LINE>if (msg == null || msdx == null)<NEW_LINE>throw new IllegalStateException("Updater has not been initialized with view state");<NEW_LINE>double rho = config.getRho();<NEW_LINE>double epsilon = config.getEpsilon();<NEW_LINE>// Line 4 of Algo... | , msdx, rho, epsilon)); |
1,739,269 | <T> Record<T> retrieveRecord(String providerKey, String dynamicKey, String dynamicKeyGroup, boolean useExpiredDataIfLoaderNotAvailable, Long lifeTime, boolean isEncrypted) {<NEW_LINE>String composedKey = <MASK><NEW_LINE>Record<T> record = memory.getIfPresent(composedKey);<NEW_LINE>if (record != null) {<NEW_LINE>record.... | composeKey(providerKey, dynamicKey, dynamicKeyGroup); |
433,265 | public void check() throws SQLException {<NEW_LINE>SQLite3Tables randomTables = s.getRandomTableNonEmptyTables();<NEW_LINE>List<SQLite3Column> columns = randomTables.getColumns();<NEW_LINE>gen = new SQLite3ExpressionGenerator<MASK><NEW_LINE>SQLite3Expression randomWhereCondition = gen.generateExpression();<NEW_LINE>Lis... | (state).setColumns(columns); |
272,046 | public void execute(BaseRequest request, BaseResponse response) {<NEW_LINE>String connStr = request.getSingleParameter("connection_id");<NEW_LINE>if (connStr == null) {<NEW_LINE>response.<MASK><NEW_LINE>sendResult(request, response, HttpResponseStatus.BAD_REQUEST);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int connectionId ... | getContent().append("not valid parameter"); |
257,381 | protected void checkDatabase(String storeName) {<NEW_LINE>DbUpdater dbUpdater = AppBeans.getPrototype(DbUpdater.NAME, storeName);<NEW_LINE>try {<NEW_LINE>boolean initialized = false;<NEW_LINE>try {<NEW_LINE>initialized = dbUpdater.dbInitialized();<NEW_LINE>} catch (DbInitializationException e) {<NEW_LINE>if (!Stores.is... | "is not initialized. " + getLogString(storeName))); |
32,544 | public void updateEffectiveValues(@NonNull final de.metas.inoutcandidate.model.I_M_ShipmentSchedule shipmentSchedule) {<NEW_LINE>final I_M_ShipmentSchedule //<NEW_LINE>//<NEW_LINE>shipmentScheduleToUse = create(shipmentSchedule, I_M_ShipmentSchedule.class);<NEW_LINE>// initialize values with the calculated ones<NEW_LIN... | I_M_HU_PI_Item_Product piItemProduct_Effective = shipmentScheduleToUse.getM_HU_PI_Item_Product_Calculated(); |
1,085,702 | public void save(final OutputStream os, final Object obj) {<NEW_LINE>final EncogWriteHelper out = new EncogWriteHelper(os);<NEW_LINE>final PrgPopulation pop = (PrgPopulation) obj;<NEW_LINE>out.addSection("BASIC");<NEW_LINE>out.addSubSection("PARAMS");<NEW_LINE>out.addProperties(pop.getProperties());<NEW_LINE>out.addSub... | addColumn(species.getBestScore()); |
504,712 | public void extractKeyParts(CacheKeyBuilder keyBuilder, Object targetObject, Object[] params) {<NEW_LINE>//<NEW_LINE>// include specified property values into the key<NEW_LINE>for (final String keyProp : keyProperties) {<NEW_LINE>if (targetObject instanceof PO) {<NEW_LINE><MASK><NEW_LINE>if (po.get_ColumnIndex(keyProp)... | final PO po = (PO) targetObject; |
13,742 | protected void hardDeleteNotLoadedReference(Entity entity, MetaProperty property, Entity reference) {<NEW_LINE>((PersistenceImpl) persistence).addBeforeCommitAction(() -> {<NEW_LINE>MetadataTools metadataTools = metadata.getTools();<NEW_LINE>QueryRunner queryRunner = new QueryRunner();<NEW_LINE>try {<NEW_LINE>String co... | metadataTools.getPrimaryKeyName(refMetaClass) + " = ?"; |
128,589 | public void errorResponse(byte[] data, @NotNull AbstractService service) {<NEW_LINE>TraceManager.TraceObject traceObject = TraceManager.serviceTrace(service, "get-sql-execute-error");<NEW_LINE><MASK><NEW_LINE>pauseTime((MySQLResponseService) service);<NEW_LINE>ErrorPacket errPacket = new ErrorPacket();<NEW_LINE>errPack... | TraceManager.finishSpan(service, traceObject); |
155,691 | private static void appendLayerInformation(StringBuilder sb, Layer[] layers, int bytesPerElement) {<NEW_LINE>Map<String, Integer> layerClasses = new HashMap<>();<NEW_LINE>for (Layer l : layers) {<NEW_LINE>if (!layerClasses.containsKey(l.getClass().getSimpleName())) {<NEW_LINE>layerClasses.put(l.getClass().getSimpleName... | "Layer Parameter Memory")).append("\n"); |
1,688,599 | public ShortestPathAStar compute(final long startNode, final long goalNode, final String propertyKeyLat, final String propertyKeyLon, final Direction direction) {<NEW_LINE>reset();<NEW_LINE>final int startNodeInternal = graph.toMappedNodeId(startNode);<NEW_LINE>final double startNodeLat = getNodeCoordinate(startNodeInt... | fCosts.put(startNodeInternal, initialHeuristic); |
1,394,716 | private void createNewSnapshotDirectory() throws OperationException {<NEW_LINE>final long snapshot = System.currentTimeMillis();<NEW_LINE>final String newDataDir = store.getDataDir() + "/" + ParquetStore.getSnapshotPath(snapshot) + "-tmp/";<NEW_LINE>LOGGER.info("Moving aggregated and sorted data to new snapshot-tmp dir... | getSortedAggregatedDirectory(true, true))); |
51,670 | public final Collection<Entry<K, V>> removeAllWithHash(int keyHash) {<NEW_LINE>List<Entry<K, V>> invalidated = new ArrayList<>();<NEW_LINE>int hash = spread(keyHash);<NEW_LINE>for (Node<K, V>[] tab = table; ; ) {<NEW_LINE>Node<K, V> f;<NEW_LINE>int n, i;<NEW_LINE>if (tab == null || (n = tab.length) == 0 || (f = tabAt(t... | addCount(-nodesCount, -nodesCount); |
383,053 | public void stopRecording(final int send, boolean notify, int scheduleDate) {<NEW_LINE>if (recordStartRunnable != null) {<NEW_LINE>recordQueue.cancelRunnable(recordStartRunnable);<NEW_LINE>recordStartRunnable = null;<NEW_LINE>}<NEW_LINE>recordQueue.postRunnable(() -> {<NEW_LINE>if (sendAfterDone == 3) {<NEW_LINE>sendAf... | stopRecordingInternal(0, false, 0); |
393,822 | public static TextEdit generateAccessors(IType type, AccessorField[] accessors, boolean generateComments, Range cursor, IProgressMonitor monitor) {<NEW_LINE>if (type == null || type.getCompilationUnit() == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>ASTNode declarationNode = null;<NEW_LINE>Compilat... | declarationNode = SourceAssistProcessor.getTypeDeclarationNode(node); |
159,724 | public void submit() throws LinkisClientRuntimeException {<NEW_LINE>StringBuilder infoBuilder = new StringBuilder();<NEW_LINE>infoBuilder.append("connecting to linkis gateway:").append(getJobOperator().getServerUrl());<NEW_LINE>LogUtils.getInformationLogger().info(infoBuilder.toString());<NEW_LINE>data.updateByOperResu... | append(data.getExecID()); |
1,266,338 | final CreateApplicationResult executeCreateApplication(CreateApplicationRequest createApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateApplication"); |
1,046,785 | public void updateUiElements() {<NEW_LINE>super.updateUiElements();<NEW_LINE>toolbar.setBackgroundColor(getPrimaryColor());<NEW_LINE>setStatusBarColor();<NEW_LINE>setNavBarColor();<NEW_LINE>setRecentApp(getString(org.horaapps.leafpic.R.string.donate));<NEW_LINE>themeSeekBar(bar);<NEW_LINE>themeButton(btnDonateIap);<NEW... | ).setTextColor(getAccentColor()); |
1,587,521 | public Request<ListThingGroupsForThingRequest> marshall(ListThingGroupsForThingRequest listThingGroupsForThingRequest) {<NEW_LINE>if (listThingGroupsForThingRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListThingGroupsForThingRequest)");<NEW_LINE>}<NEW_LINE>Request<Lis... | (listThingGroupsForThingRequest.getNextToken())); |
818,290 | protected int copyContractionsFromBaseCE32(StringBuilder context, int c, int ce32, ConditionalCE32 cond) {<NEW_LINE>int trieIndex = Collation.indexFromCE32(ce32);<NEW_LINE>int index;<NEW_LINE>if ((ce32 & Collation.CONTRACT_SINGLE_CP_NO_MATCH) != 0) {<NEW_LINE>// No match on the single code point.<NEW_LINE>// We are und... | c, entry.value, true); |
1,043,204 | protected void validate(FieldModel field, boolean prepend) throws SkipException {<NEW_LINE>if (field.isPartitionKey() || field.isClusteringColumn()) {<NEW_LINE>invalidMapping("Operation %s: directive %s is not supported for partition/clustering key field %s.", operationName, CqlDirectives.INCREMENT, field.getGraphqlNam... | <?> fieldInputType = fieldInputType(); |
1,739,527 | public void mouseDown(MouseEvent e) {<NEW_LINE>try {<NEW_LINE>if (composite == null || composite.getMenu() != null || (cellMouseListeners != null && cellMouseListeners.size() > 0) || text == null || text.length() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!(e.button == 3 || (e.button == 1 && e.stateMask == SWT.CO... | { TextTransfer.getInstance() }); |
1,461,448 | public void readEtchedBorder(org.w3c.dom.Node element) throws IOException {<NEW_LINE>if (!XML_ETCHED_BORDER.equals(element.getNodeName()))<NEW_LINE>// NOI18N<NEW_LINE>throw new IOException("Invalid format: missing \"" + XML_ETCHED_BORDER + "\" element.");<NEW_LINE>try {<NEW_LINE>org.w3c.dom.NamedNodeMap attributes = el... | (node.getNodeValue())); |
868,865 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2,c3,c4".split(",");<NEW_LINE>String eplCurrentTS = "@name('s0') select " + "longdate.between(longPrimitive, longBoxed) as c0, " + "utildate.between(longPrimitive, longBoxed) as c1, " + "caldate.between(longPrimitive, longBoxed) as c2," + "... | (SupportDateTime.make("2002-05-30T09:01:02.003")); |
1,363,443 | private void initWizard(WizardDescriptor wizardDesc) {<NEW_LINE>// Init properties.<NEW_LINE>wizardDesc.putProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);<NEW_LINE>wizardDesc.putProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);<NEW_LINE>wizardDesc.putProperty(WizardDescriptor.PROP_CONTEN... | (Util.getString("TXT_SelectTestSources")); |
1,482,575 | public Optional<SimpleLock> lock(@NonNull LockConfiguration lockConfiguration) {<NEW_LINE>String transactionId = null;<NEW_LINE>try {<NEW_LINE>StreamTransactionEntity streamTransactionEntity = arangoCollection.db().beginStreamTransaction(new StreamTransactionOptions().exclusiveCollections(arangoCollection.name()));<NEW... | (LOCK_UNTIL).toString()); |
939,165 | public Files postFilesUploadSessionsIdCommit(String digest, String uploadSessionId, UploadSessionIdCommitBody body, String ifMatch, String ifNoneMatch) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'digest' is set<NEW_LINE>if (digest == null) {<NEW_LINE>throw n... | HashMap<String, Object>(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.