idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,391,762 | public static DescribeScalingInstancesResponse unmarshall(DescribeScalingInstancesResponse describeScalingInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeScalingInstancesResponse.setRequestId(_ctx.stringValue("DescribeScalingInstancesResponse.RequestId"));<NEW_LINE>describeScalingInstancesResponse.setTo... | ("DescribeScalingInstancesResponse.ScalingInstances[" + i + "].ScalingConfigurationId")); |
980,980 | private void buildDiscriminatorNodes(DiscriminatorNode node) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "buildDiscriminatorNodes: " + node);<NEW_LINE>}<NEW_LINE>DiscriminatorNode dn = node;<NEW_LINE>if (dn == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Discrimin... | = dn.disc.getChannel(); |
1,643,212 | private Function<SourceLookup, FragmentsBuilder> fragmentsBuilderSupplier(SearchHighlightContext.Field field, MappedFieldType fieldType, boolean forceSource, boolean fixBrokenAnalysis) {<NEW_LINE>BoundaryScanner boundaryScanner = getBoundaryScanner(field);<NEW_LINE><MASK><NEW_LINE>Function<SourceLookup, BaseFragmentsBu... | FieldOptions options = field.fieldOptions(); |
1,849,809 | public void listMetricSeriesDefinitionsWithOptions() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.MetricsAdvisorAsyncClient.listMetricSeriesDefinitions#String-OffsetDateTime-ListMetricSeriesDefinitionOptions<NEW_LINE>String metricId = "b460abfc-7a58-47d7-9d99-21ee21fdfc6e";<NEW_LINE>final OffsetDateTime activeSince... | "Data Feed Metric id for the retrieved series definition : %s%n", metricSeriesDefinition.getMetricId()); |
1,627,521 | /*<NEW_LINE>* @see<NEW_LINE>* com.ibm.wsspi.http.channel.outbound.HttpOutboundServiceContext#readNextResponse<NEW_LINE>* (com.ibm.wsspi.channelfw.InterChannelCallback, boolean)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public VirtualConnection readNextResponse(InterChannelCallback cb, boolean forceQueue) {<NEW_LINE>if (n... | tc, "App channel requesting next response on " + getVC()); |
846,729 | private static List<AzkabanAPI> createAPIEndpoints() {<NEW_LINE>final List<AzkabanAPI> apiEndpoints = new ArrayList<>();<NEW_LINE>apiEndpoints.add(new AzkabanAPI(ConnectorParams.ACTION_PARAM, ConnectorParams.STATS_GET_METRICHISTORY));<NEW_LINE>apiEndpoints.add(new AzkabanAPI(ConnectorParams.ACTION_PARAM, ConnectorParam... | .ACTION_PARAM, ConnectorParams.STATS_SET_REPORTINGINTERVAL)); |
975,132 | private void serializeAsRange(StringBuilder destination, IntItem intItem) {<NEW_LINE>String annotations = leafAnnotations(intItem);<NEW_LINE>boolean leftOpen = !intItem.getFromLimit().isInclusive();<NEW_LINE>boolean rightOpen = !intItem<MASK><NEW_LINE>String boundsAnnotation = "";<NEW_LINE>int initLen;<NEW_LINE>if (lef... | .getToLimit().isInclusive(); |
1,446,345 | public Container inot(final int firstOfRange, final int lastOfRange) {<NEW_LINE>// TODO: may need to convert to a RunContainer<NEW_LINE>// determine the span of array indices to be affected<NEW_LINE>int startIndex = Util.unsignedBinarySearch(content, 0, cardinality, (char) firstOfRange);<NEW_LINE>if (startIndex < 0) {<... | int currentValuesInRange = lastIndex - startIndex + 1; |
546,517 | protected void storeUserAssetLinks(EntityManager em, List<UserAssetLink> userAssets) {<NEW_LINE>em.unwrap(Session.class).doWork(connection -> {<NEW_LINE>LOG.finest("Storing user assets: count=" + userAssets.size());<NEW_LINE>PreparedStatement st;<NEW_LINE>try {<NEW_LINE>st = connection.prepareStatement("INSERT INTO USE... | throw new IllegalStateException(msg, e); |
692,410 | private static void registerCRC32CPlugins(InvocationPlugins plugins, GraalHotSpotVMConfig config, Replacements replacements) {<NEW_LINE>Registration r = new Registration(plugins, "java.util.zip.CRC32C", replacements);<NEW_LINE>r.registerConditional(config.useCRC32CIntrinsics(), new InvocationPlugin("updateBytes", int.c... | off, 32, 64))); |
1,732,698 | public void log(boolean recv, String message) {<NEW_LINE><MASK><NEW_LINE>cal.setTime(new Date());<NEW_LINE>if (message.length() > 1024) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>message = message.substring(0, 1024) + "..." + Integer.toString(message.length() - 1024);<NEW_LINE>}<NEW_LINE>writer.println(// $NON-NLS-1$ //$NON-NL... | Calendar cal = Calendar.getInstance(); |
355,684 | protected BuildActionResult executeBuild(Build build, DaemonClientConnection connection, BuildCancellationToken cancellationToken, BuildEventConsumer buildEventConsumer) throws DaemonInitialConnectException {<NEW_LINE>Object result;<NEW_LINE>try {<NEW_LINE>LOGGER.debug("Connected to daemon {}. Dispatching request {}.",... | ) result).getReason()); |
280,466 | public static boolean waitAllShutdown(int timeoutInMillis) {<NEW_LINE>ThreadGroup group = getThreadGroup();<NEW_LINE>Thread[] activeThreads = new Thread[group.activeCount()];<NEW_LINE>group.enumerate(activeThreads);<NEW_LINE>Set<Thread> alives = new HashSet<Thread>(Arrays.asList(activeThreads));<NEW_LINE>Set<Thread> di... | TimeUnit.SECONDS.sleep(2); |
1,117,407 | private Future<?> asyncUpdated(final ManagedServiceFactory service, final String factoryPid, final String pid, final Dictionary<String, ?> properties) {<NEW_LINE>return caFactory.updateQueue.add(factoryPid, new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>if (TraceComponent.isAnyTraci... | service.updated(pid, properties); |
1,197,854 | public static void execute(ManagerService service) {<NEW_LINE>ByteBuffer buffer = service.allocate();<NEW_LINE>buffer = HEADER.write(buffer, service, true);<NEW_LINE>for (FieldPacket field : FIELDS) {<NEW_LINE>buffer = field.write(buffer, service, true);<NEW_LINE>}<NEW_LINE>buffer = EOF.write(buffer, service, true);<NE... | byte packetId = EOF.getPacketId(); |
1,372,192 | private boolean isConfigEqualToProductInstance(DefaultMutableTreeNode rootProductInstance, DefaultMutableTreeNode rootProductConfig) {<NEW_LINE>log.fine("In isConfigEqualToProductInstance");<NEW_LINE>boolean retValue = false;<NEW_LINE>boolean done = false;<NEW_LINE>log.fine("rootProductConfig.getDepth: " + rootProductC... | (DefaultMutableTreeNode) children.nextElement(); |
1,841,738 | protected void processMediators() throws OAuthException {<NEW_LINE>List<OAuth20Mediator> mediatorList = new ArrayList<OAuth20Mediator>();<NEW_LINE>String[] mediatorClassNames = <MASK><NEW_LINE>if (mediatorClassNames == null || mediatorClassNames.length == 0) {<NEW_LINE>if (_log.isLoggable(Level.FINEST)) {<NEW_LINE>_log... | _oldconfig.getConfigPropertyValues(OAuthComponentConfigurationConstants.OAUTH20_MEDIATOR_CLASSNAMES); |
12,833 | public static RecognizeVehicleDamageResponse unmarshall(RecognizeVehicleDamageResponse recognizeVehicleDamageResponse, UnmarshallerContext _ctx) {<NEW_LINE>recognizeVehicleDamageResponse.setRequestId<MASK><NEW_LINE>Data data = new Data();<NEW_LINE>List<Element> elements = new ArrayList<Element>();<NEW_LINE>for (int i =... | (_ctx.stringValue("RecognizeVehicleDamageResponse.RequestId")); |
693,411 | public void read(org.apache.thrift.protocol.TProtocol iprot, remove_aggregate_result 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.typ... | struct.ex = new rpc_management_exception(); |
896,728 | protected void apply(LogFile logFile, PropertyResolver resolver) {<NEW_LINE>super.apply(logFile, resolver);<NEW_LINE>applyRollingPolicy(<MASK><NEW_LINE>applyRollingPolicy(resolver, ROLLINGPOLICY_CLEAN_HISTORY_ON_START, "logging.logback.rollingpolicy.clean-history-on-start", "logging.file.clean-history-on-start");<NEW_L... | resolver, ROLLINGPOLICY_FILE_NAME_PATTERN, "logging.logback.rollingpolicy.file-name-pattern", "logging.pattern.rolling-file-name"); |
1,777,109 | public static HashMap<Integer, ArrayList<IComment>> loadMultipleCommentsById(final SQLProvider provider, final Collection<Integer> commentIds) throws CouldntLoadDataException {<NEW_LINE>Preconditions.checkNotNull(provider, "IE00480: provider argument can not be null");<NEW_LINE>Preconditions.checkNotNull(commentIds, "I... | commentIdToComments = new HashMap<>(); |
545,302 | public static void main(String[] args) {<NEW_LINE>setup();<NEW_LINE>GeneralRocketSaver saver = new GeneralRocketSaver();<NEW_LINE>for (String inputFile : args) {<NEW_LINE>System.out.println("Converting " + inputFile + "...");<NEW_LINE>if (!inputFile.matches(".*\\.[rR][kK][tT]$")) {<NEW_LINE>System.err.println("ERROR: F... | opts.setSimulationTimeSkip(StorageOptions.SIMULATION_DATA_NONE); |
1,177,409 | private void empiricalCounts(int[][][][] data, int[][] labels) {<NEW_LINE>Ehat = empty2D();<NEW_LINE>for (int m = 0; m < data.length; m++) {<NEW_LINE>int[][]<MASK><NEW_LINE>int[] labelsDoc = labels[m];<NEW_LINE>int[] label = new int[window];<NEW_LINE>// Arrays.fill(label, classIndex.indexOf("O"));<NEW_LINE>Arrays.fill(... | [] dataDoc = data[m]; |
998,526 | public Project createProjectRefsAndExprs(RelNode projChild, boolean adjust, boolean rightSide, RelNode origProj) {<NEW_LINE>List<RexNode> preserveExprs;<NEW_LINE>int nInputRefs;<NEW_LINE>int offset;<NEW_LINE>if (rightSide) {<NEW_LINE>preserveExprs = rightPreserveExprs;<NEW_LINE>nInputRefs = nRightProject;<NEW_LINE>offs... | , childFields, destFields, adjustments)); |
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_... | = getTransactionManager().suspend(); |
1,703,740 | private static void splitTankAndInvalidate(FluidTankTileEntity te, @Nullable TankSearchCache cache, boolean tryReconnect) {<NEW_LINE>// tryReconnect helps whenever only few tanks have been removed<NEW_LINE>te = te.getControllerTE();<NEW_LINE>if (te == null)<NEW_LINE>return;<NEW_LINE>int height = te.height;<NEW_LINE>int... | ) tankInventory).setContainedFluid(toDistribute); |
1,761,896 | private void buildHashTable(int partition, MemoryAllocatorCtx ctx) {<NEW_LINE>initHashTable(ctx);<NEW_LINE>final int partitionSize = -Math.floorDiv(-<MASK><NEW_LINE>final int startChunkId = partitionSize * partition;<NEW_LINE>if (startChunkId >= builderKeyChunks.getChunkCount()) {<NEW_LINE>// skip invalid chunk ranges<... | builderKeyChunks.getChunkCount(), numPartitions); |
179,579 | public static <T> ToDouble<T> doublePowInt(ToDouble<T> expression, int power) {<NEW_LINE>switch(power) {<NEW_LINE>case 0:<NEW_LINE>return ToDouble.constant(1);<NEW_LINE>case 1:<NEW_LINE>return expression.asDouble();<NEW_LINE>case 2:<NEW_LINE>return new IntPower<T, ToDouble<T>>(expression, 2) {<NEW_LINE><NEW_LINE>@Overr... | value = inner.applyAsDouble(object); |
1,612,902 | public StoreFactory create(KeycloakSession session) {<NEW_LINE>MapStorageProviderFactory storageProviderFactory = (MapStorageProviderFactory) getComponentFactory(session.getKeycloakSessionFactory(), MapStorageProvider.class, storageConfigScope, MapStorageSpi.NAME);<NEW_LINE>final MapStorageProvider mapStorageProvider =... | mapStorageProvider.getStorage(PermissionTicket.class); |
882,782 | private void processOverDueAlert() {<NEW_LINE>if (m_model.getOverdueAssignDays() != 0) {<NEW_LINE>String whereClauseGeneral = "";<NEW_LINE>String whereClause = "";<NEW_LINE>isScheduled = true;<NEW_LINE>ArrayList<Object> params = new ArrayList<Object>();<NEW_LINE>Timestamp currentDate = new Timestamp(TimeUtil.getToday()... | += " AND (EXISTS (SELECT 1 " + "FROM C_Project p " + "INNER JOIN C_ProjectPhase ph ON (p.C_Project_ID = ph.C_Project_ID) " + "WHERE ph.C_ProjectPhase_ID = C_ProjectTask.C_ProjectPhase_ID AND p.C_ProjectType_ID = ?))"; |
1,639,113 | public void bind(boolean isSelected, @NonNull Note note, boolean showCategory, int mainColor, int textColor, @Nullable CharSequence searchQuery) {<NEW_LINE>super.bind(isSelected, note, showCategory, mainColor, textColor, searchQuery);<NEW_LINE>@NonNull<NEW_LINE>final var context = itemView.getContext();<NEW_LINE>bindin... | ()) ? 0.5f : 1.0f); |
1,733,262 | public String create(PipelineOptions options) {<NEW_LINE>GcsOptions gcsOptions = options.as(GcsOptions.class);<NEW_LINE>LOG.info("No stagingLocation provided, falling back to gcpTempLocation");<NEW_LINE>String gcpTempLocation;<NEW_LINE>try {<NEW_LINE>gcpTempLocation = gcsOptions.getGcpTempLocation();<NEW_LINE>} catch (... | StandardResolveOptions.RESOLVE_DIRECTORY).toString(); |
1,442,843 | public void update(Long id, PersistableProductVariation var, MerchantStore store, Language language) {<NEW_LINE>Validate.notNull(store, "MerchantStore cannot be null");<NEW_LINE>Validate.notNull(language, "Language cannot be null");<NEW_LINE>Validate.notNull(var, "PersistableProductVariation cannot be null");<NEW_LINE>... | getById(store, id, language); |
1,068,869 | public void performCardAction(View view) {<NEW_LINE>if (this.mSmartSpaceCard.getTapAction() == null) {<NEW_LINE>Log.e("SmartspaceCardView", "no tap action available: " + this);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Intent intent = new <MASK><NEW_LINE>Launcher launcher = Launcher.getLauncher(view.getContext());<NEW_LINE>... | Intent(this.getIntent()); |
272,051 | public void main() {<NEW_LINE>RVec3 a_normal = (RVec3) getGlobal(DefaultShaderVar.A_NORMAL);<NEW_LINE>RVec2 a_texture_coord = (RVec2) getGlobal(DefaultShaderVar.A_TEXTURE_COORD);<NEW_LINE>RVec2 g_texture_coord = (RVec2) getGlobal(DefaultShaderVar.G_TEXTURE_COORD);<NEW_LINE>RVec3 x_axis = new RVec3("x_axis");<NEW_LINE>x... | scaleY).multiply(dotZ)); |
1,168,023 | private void initCuratorClient(final ZookeeperConfig zookeeperConfig) {<NEW_LINE>int retryIntervalMilliseconds = zookeeperConfig.getRetryIntervalMilliseconds();<NEW_LINE>int maxRetries = zookeeperConfig.getMaxRetries();<NEW_LINE>int timeToLiveSeconds = zookeeperConfig.getTimeToLiveSeconds();<NEW_LINE><MASK><NEW_LINE>St... | int operationTimeoutMilliseconds = zookeeperConfig.getOperationTimeoutMilliseconds(); |
972,218 | final ListDevicesResult executeListDevices(ListDevicesRequest listDevicesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDevicesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | endClientExecution(awsRequestMetrics, request, response); |
1,602,301 | private <T extends Endpoint> void safeReleaseResource(T endpoint, URL url, Map<String, T> ipPort2Endpoint, ConcurrentMap<T, Set<String>> endpoint2Urls) {<NEW_LINE>boolean shareChannel = url.getBooleanParameter(URLParamType.shareChannel.getName(), <MASK><NEW_LINE>if (!shareChannel) {<NEW_LINE>destory(endpoint);<NEW_LINE... | URLParamType.shareChannel.getBooleanValue()); |
1,718,681 | public String decryptUsingKeychain(String base64EncodedEncryptedData, CredentialEncryptionMode encryptionMode) throws KeyStoreException, CryptoError, CredentialAuthenticationException, KeyPermanentlyInvalidatedException {<NEW_LINE>byte[] dataToDecrypt = Utils.base64ToBytes(base64EncodedEncryptedData);<NEW_LINE>Cipher c... | , createPromptInfo(encryptionMode), cryptoObject); |
561,338 | private static JThrowable createExceptionOfSameType(JNIEnv env, Throwable original) {<NEW_LINE>Class<? extends Throwable> originalType = original.getClass();<NEW_LINE>String className = originalType.getTypeName();<NEW_LINE>JClass exceptionClass = JNIUtil.findClass(env, WordFactory.nullPointer()<MASK><NEW_LINE>if (excep... | , getBinaryName(className), false); |
1,775,943 | public static BranchExp zip(BranchExp left, BranchExp right) {<NEW_LINE>List<CovExp> zippedBranches = new ArrayList<>();<NEW_LINE>int leftSize = left.branches.size();<NEW_LINE>int rightSize <MASK><NEW_LINE>int i;<NEW_LINE>for (i = 0; i < leftSize && i < rightSize; i++) {<NEW_LINE>List<CovExp> branches = Arrays.asList(l... | = right.branches.size(); |
383,717 | private Optional<AccessorCandidate> findCandidate(MemberKey key) {<NEW_LINE>if (key.clazz.isArray()) {<NEW_LINE>if (key.name.equals("length") && key.numberOfParams == 0) {<NEW_LINE>return Optional.of(ARRAY_GET_LENGTH);<NEW_LINE>} else {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (key.numberOfPa... | key.clazz, key.name); |
525,198 | protected int createRubyType(GeneratorAdapter mg, Annotation annotation) {<NEW_LINE>RubyLevelClass klassAnnotation = (RubyLevelClass) annotation;<NEW_LINE>mg.push(klassAnnotation.name());<NEW_LINE>loadRubyClass(mg, klassAnnotation.superclass());<NEW_LINE>mg.invokeStatic(Types.RUBY_API_TYPE, RubyAPIDefineClassMethod);<N... | includeModule(mg, rubyTypeIdx, moduleName); |
799,751 | public static Value RandomSubset(final Value v1, final Value v2) {<NEW_LINE>if (!(v1 instanceof IntValue)) {<NEW_LINE>throw new EvalException(EC.TLC_MODULE_ARGUMENT_ERROR, new String[] { "first", "RandomSubset", "nonnegative integer", Values.ppr(v1.toString()) });<NEW_LINE>}<NEW_LINE>if (!(v2 instanceof EnumerableValue... | (IntValue) v1).val); |
1,050,799 | static EObject port_command(EProc proc, EObject port, EObject data) throws Pausable {<NEW_LINE>EInternalPort p = port.testInternalPort();<NEW_LINE>if (log.isLoggable(Level.FINER))<NEW_LINE>log.finer("port_command " + port + ", " + data);<NEW_LINE>if (p == null) {<NEW_LINE><MASK><NEW_LINE>if (port == ERT.am_undefined)<N... | port = ERT.whereis(port); |
1,521,163 | public void testCriteriaQuery_long(TestExecutionContext testExecCtx, TestExecutionResources testExecResources, Object managedComponentObject) throws Throwable {<NEW_LINE>final String testName = getTestName();<NEW_LINE>// Verify parameters<NEW_LINE>if (testExecCtx == null || testExecResources == null) {<NEW_LINE>Assert.... | "Entity0012_STRING03", findEntity.getEntity0012_string03()); |
1,343,320 | final ListPiiEntitiesDetectionJobsResult executeListPiiEntitiesDetectionJobs(ListPiiEntitiesDetectionJobsRequest listPiiEntitiesDetectionJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPiiEntitiesDetectionJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | false), new ListPiiEntitiesDetectionJobsResultJsonUnmarshaller()); |
1,206,020 | private void reconstruct(List<Expression> leftExpressions, List<Expression> rightExpressions, List<Expression> resultExpressions) {<NEW_LINE>for (Expression le : leftExpressions) {<NEW_LINE>for (Expression re : rightExpressions) {<NEW_LINE>switch(operator()) {<NEW_LINE>case "+":<NEW_LINE>resultExpressions.add(new Addit... | new LessThanExpression(le, re)); |
96,892 | public Void visit(ConstructorDeclaration decl, AElement elem) {<NEW_LINE>List<Parameter> params = decl.getParameters();<NEW_LINE>List<AnnotationExpr> rcvrAnnos = decl.getAnnotations();<NEW_LINE>BlockStmt body = decl.getBody();<NEW_LINE>StringBuilder sb = new StringBuilder("<init>(");<NEW_LINE>AClass clazz = (AClass) el... | method.parameters.getVivify(i); |
1,268,962 | public final /*<NEW_LINE>Can't use @Messages, as the package is shared with startup.base; generated Bundle<NEW_LINE>files would overwrite each other.<NEW_LINE>@Messages({<NEW_LINE>"MSG_start_load_cache=Loading cached objects...",<NEW_LINE>"MSG_end_load_cache=Loading cached objects...done."<NEW_LINE>})<NEW_LINE>*/<NEW_L... | log(Level.WARNING, "Ignoring cache of layers"); |
1,673,136 | public final SevereMessageStoreException assertCanDelete(PersistentTransaction transaction) {<NEW_LINE>SevereMessageStoreException ex = super.assertCanDelete(transaction);<NEW_LINE>if (null != ex) {<NEW_LINE>return ex;<NEW_LINE>}<NEW_LINE>int removesFromMeUnderThisTransaction = 0;<NEW_LINE>final TaskList taskList = (Ta... | = getListStatistics().getTotalItemCount(); |
1,255,901 | public IRubyObject createCallerBacktrace(int level, int length, Stream<StackWalker.StackFrame> stackStream) {<NEW_LINE>runtime.incrementCallerCount();<NEW_LINE>RubyStackTraceElement[] fullTrace = <MASK><NEW_LINE>int traceLength = safeLength(level, length, fullTrace);<NEW_LINE>// MRI started returning [] instead of nil ... | getPartialTrace(level, length, stackStream); |
712,212 | public static void vertical9(Kernel1D_S32 kernel, GrayU8 src, GrayI16 dst) {<NEW_LINE>final byte[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel.data[3]... | k9 = kernel.data[8]; |
249,680 | private ActionCheckpoint parseV3(LineReader reader) throws IOException {<NEW_LINE>final long offset = Long.parseLong(reader.readLine());<NEW_LINE>final Table<String, String, ConsumerGroupProgress> progresses = HashBasedTable.create();<NEW_LINE>while (true) {<NEW_LINE>final String subjectLine = reader.readLine();<NEW_LI... | > consumers = progress.getConsumers(); |
462,817 | public boolean apply(BookieNode candidate) {<NEW_LINE>if (minRacksOrRegionsForDurability <= 1) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>String candidateRackOrRegion = candidate.getNetworkLocation(distanceFromLeaves);<NEW_LINE>candidateRackOrRegion = candidateRackOrRegion.startsWith(NodeBase.PATH_SEPARATOR_STR) ? can... | = new HashSet<String>(); |
1,327,190 | final UpdateUserPoolResult executeUpdateUserPool(UpdateUserPoolRequest updateUserPoolRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateUserPoolRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | invoke(request, responseHandler, executionContext); |
194,497 | @ActionEvent(eventType = EventTypes.EVENT_USER_ENABLE, eventDescription = "enabling User")<NEW_LINE>public UserAccount enableUser(final long userId) {<NEW_LINE>Account caller = getCurrentCallingAccount();<NEW_LINE>// Check if user exists in the system<NEW_LINE>final User user = _userDao.findById(userId);<NEW_LINE>if (u... | class, user.getUuid()); |
110,789 | public DavaFlowSet processAbruptStatements(Stmt s, DavaFlowSet input) {<NEW_LINE>if (DEBUG) {<NEW_LINE>System.out.println("processing stmt " + s);<NEW_LINE>}<NEW_LINE>if (s instanceof ReturnStmt || s instanceof RetStmt || s instanceof ReturnVoidStmt) {<NEW_LINE>// dont need to remember this path<NEW_LINE>UnreachableCod... | System.out.println("\tstmt is not an abrupt stmt."); |
1,842,926 | private void addAMemtableIntoFlushingList(IMemTable tobeFlushed) throws IOException {<NEW_LINE>if (!tobeFlushed.isSignalMemTable() && (!updateLatestFlushTimeCallback.call(this) || tobeFlushed.memSize() == 0)) {<NEW_LINE>logger.warn("This normal memtable is empty, skip it in flush. {}: {} Memetable info: {}", storageGro... | addFlushingMemTableCost(tobeFlushed.getTVListsRamCost()); |
138,538 | private FlowInfo analyseBooleanAssertion(BlockScope currentScope, Expression argument, FlowContext flowContext, FlowInfo flowInfo, boolean wasInsideAssert, boolean passOnTrue) {<NEW_LINE>Constant cst = argument.optimizedBooleanConstant();<NEW_LINE>boolean isOptimizedTrueAssertion = cst != Constant.NotAConstant && cst.b... | .initsWhenFalse().unconditionalInits(); |
182,779 | private Mono<StoreResponse> processHttpResponse(String resourceAddress, HttpRequest httpRequest, String activityId, HttpResponse response, URI physicalAddress) {<NEW_LINE>if (response == null) {<NEW_LINE>InternalServerErrorException exception = new InternalServerErrorException(String.format(RMResources.ExceptionMessage... | resourceAddress, activityId, httpRequest, response); |
175,609 | public Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serviceEndpointPolicyName) {<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_... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
78,682 | private Mono<Response<Flux<ByteBuffer>>> performMaintenanceWithResponseAsync(String resourceGroupName, String vmName, 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."));<NEW_... | error(new IllegalArgumentException("Parameter vmName is required and cannot be null.")); |
80,107 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>requireButton = new JButton();<NEW_LINE>requireDevButton = new JButton();<NEW_LINE>keepOpenCheckBox = new JCheckBox();<NEW_LINE>innerPanel = new JPanel();<NEW_LINE>// NOI18N<NEW_LI... | MAX_VALUE).addContainerGap())); |
1,495,100 | public static String format(QualityGate.Condition condition) {<NEW_LINE>Metric<?> metric = CoreMetrics.getMetric(condition.getMetricKey());<NEW_LINE>if (metric.getType() == Metric.ValueType.RATING) {<NEW_LINE>return String.format("%s %s (%s %s)", Rating.valueOf(Integer.parseInt(condition.getValue())), metric.getName(),... | .getInstance(Locale.ENGLISH)); |
1,247,512 | private static Unbinder parseOnItemLongClick(final Object target, final Method method, View source) {<NEW_LINE>OnItemLongClick onItemLongClick = method.getAnnotation(OnItemLongClick.class);<NEW_LINE>if (onItemLongClick == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>validateMember(method);<NEW_LINE>final boolean p... | ListenerUnbinder<>(views, ON_ITEM_LONG_CLICK); |
851,051 | public final void grammar() throws RecognitionException, TokenStreamException {<NEW_LINE>Token n = null;<NEW_LINE>Token h = null;<NEW_LINE>try {<NEW_LINE>// for error handling<NEW_LINE>{<NEW_LINE>_loop4: do {<NEW_LINE>if ((LA(1) == LITERAL_header)) {<NEW_LINE>if (inputState.guessing == 0) {<NEW_LINE>// RK: prevent cert... | (1), getFilename()); |
1,490,471 | private BigInteger extractT(ECPublicKeyParameters pubKey, BigInteger r, BigInteger s) {<NEW_LINE>BigInteger n = pubKey.getParameters().getN();<NEW_LINE>// r in the range [1,n-1]<NEW_LINE>if (r.compareTo(ECConstants.ONE) < 0 || r.compareTo(n) >= 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// s in the range [0,n-1] ... | (x).mod(n); |
1,630,014 | public List<ImageUrl> parseImages(String html, Chapter chapter) {<NEW_LINE>List<ImageUrl> list = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>final String imageHost = StringUtils.match("data-host=\"(.*?)\"", html, 1);<NEW_LINE>final String imagePre = StringUtils.match("data-img_pre=\"(.*?)\"", html, 1);<NEW_LINE>final St... | Long comicChapter = chapter.getId(); |
1,058,911 | public static ListSQLReviewOriginSQLResponse unmarshall(ListSQLReviewOriginSQLResponse listSQLReviewOriginSQLResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSQLReviewOriginSQLResponse.setRequestId(_ctx.stringValue("ListSQLReviewOriginSQLResponse.RequestId"));<NEW_LINE>listSQLReviewOriginSQLResponse.setErrorCode(_ctx... | ("ListSQLReviewOriginSQLResponse.OriginSQLList[" + i + "].SQLReviewQueryKey")); |
1,585,593 | final ListChildrenResult executeListChildren(ListChildrenRequest listChildrenRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listChildrenRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Organizations"); |
1,688,601 | private Map<String, Float> extractMultiFields(String field, boolean quoted) {<NEW_LINE>Map<String, Float> extractedFields;<NEW_LINE>if (field != null) {<NEW_LINE>boolean allFields = Regex.isMatchAllPattern(field);<NEW_LINE>if (allFields && this.field != null && this.field.equals(field)) {<NEW_LINE>// "*" is the default... | multiFields = Regex.isSimpleMatchPattern(field); |
895,707 | public void discoverChildren() {<NEW_LINE>try {<NEW_LINE>ArrayList<SubtitleItem> subtitleItems = OpenSubtitle.findSubtitles(originalResource, getDefaultRenderer());<NEW_LINE>if (subtitleItems == null || subtitleItems.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Collections.sort(subtitleItems, new SubSort(getDefaul... | subtitleItem.getSubFileName(), originalResource); |
1,339,014 | public void fullRedraw() {<NEW_LINE>super.fullRedraw();<NEW_LINE>addCSSClasses(svgp);<NEW_LINE>DBIDSelection selContext = context.getSelection();<NEW_LINE>if (!(selContext instanceof RangeSelection)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HyperBoundingBox range = ((RangeSelection) selContext).getRanges();<NEW_LINE>if (... | ad = proj.getDimForVisibleAxis(vd); |
437,027 | void onFabClicked() {<NEW_LINE>if (navType == RepoPagerMvp.ISSUES) {<NEW_LINE>fab.hide(new FloatingActionButton.OnVisibilityChangedListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onHidden(FloatingActionButton fab) {<NEW_LINE>super.onHidden(fab);<NEW_LINE>if (appbar != null)<NEW_LINE><MASK><NEW_LINE>botto... | appbar.setExpanded(false, true); |
982,335 | protected void readNodeChildren(org.w3c.dom.Node node, java.util.Map namespacePrefixes) {<NEW_LINE>org.w3c.dom.<MASK><NEW_LINE>for (int i = 0, size = children.getLength(); i < size; ++i) {<NEW_LINE>org.w3c.dom.Node childNode = children.item(i);<NEW_LINE>String childNodeName = (childNode.getLocalName() == null ? childNo... | NodeList children = node.getChildNodes(); |
841,296 | public byte[] decrypt(byte[] data) throws InvalidKeyCipher {<NEW_LINE>// data to decrypt must be a whole number of blocks and have room for a<NEW_LINE>// checksum<NEW_LINE>Preconditions.checkArgument(data.length >= Rijndael.BLOCK_SIZE);<NEW_LINE>Preconditions.checkArgument(data.length % Rijndael.BLOCK_SIZE == 0);<NEW_L... | = new byte[Rijndael.BLOCK_SIZE]; |
618,440 | public void mouseClicked(final MouseEvent e) {<NEW_LINE>boolean shouldEditOrResetPosition = e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() == 2 && doubleClickTimer.getDelay() > 0;<NEW_LINE>if (shouldEditOrResetPosition) {<NEW_LINE>final MainView mainView = (MainView) e.getComponent();<NEW_LINE>if (mainView.ge... | Controller controller = Controller.getCurrentController(); |
430,775 | public Void call() throws Exception {<NEW_LINE>mResult.setRecordStartMs(CommonUtils.getCurrentMs());<NEW_LINE>AtomicLong localCounter = new AtomicLong();<NEW_LINE>while (!sFinish.get() && mRetryPolicy.attempt()) {<NEW_LINE>if (Thread.currentThread().isInterrupted()) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE... | long increment = localCounter.getAndIncrement(); |
636,660 | public static List<InlongGroupExtInfo> createUserDefinedSortExtInfo(UserDefinedSortConf userDefinedSortConf) {<NEW_LINE>List<InlongGroupExtInfo> extInfos = new ArrayList<>();<NEW_LINE>InlongGroupExtInfo sortType = new InlongGroupExtInfo();<NEW_LINE>sortType.setKeyName(InlongConstants.SORT_TYPE);<NEW_LINE>sortType.setKe... | sortName.setKeyName(InlongConstants.SORT_NAME); |
1,233,861 | private IFhirResourceDao<? extends IBaseResource> toDao(UrlUtil.UrlParts theParts, String theVerb, String theUrl) {<NEW_LINE>RuntimeResourceDefinition resType;<NEW_LINE>try {<NEW_LINE>resType = myContext.getResourceDefinition(theParts.getResourceType());<NEW_LINE>} catch (DataFormatException e) {<NEW_LINE>String msg = ... | class, "transactionInvalidUrl", theVerb, theUrl); |
1,143,994 | private void loadNode75() {<NEW_LINE>UaMethodNode node = new UaMethodNode(this.context, Identifiers.CertificateGroupFolderType_DefaultUserTokenGroup_TrustList_Read, new QualifiedName(0, "Read"), new LocalizedText("en", "Read"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), true, true);<NEW_LINE>no... | .expanded(), false)); |
141,191 | final ListTablesResult executeListTables(ListTablesRequest listTablesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTablesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | responseHandler, executionContext, cachedEndpoint, null); |
1,665,171 | public void testQuartzJobRunsWithAppComponentContext() throws Exception {<NEW_LINE>//<NEW_LINE>JobDetail //<NEW_LINE>job = //<NEW_LINE>JobBuilder.newJob(LookupOnRunJob.class).//<NEW_LINE>withIdentity("testQuartzJobRunsWithAppComponentContext-job").build();<NEW_LINE>//<NEW_LINE>Trigger //<NEW_LINE>onceAfter400ms = //<NE... | (job.getKey())); |
603,467 | private void generateDOM4MultiByteExtras(Element parent, TTFFile ttf, boolean isCid) {<NEW_LINE>Element el;<NEW_LINE>Document doc = parent.getOwnerDocument();<NEW_LINE>Element mel = doc.createElement("multibyte-extras");<NEW_LINE>parent.appendChild(mel);<NEW_LINE>el = doc.createElement("cid-type");<NEW_LINE>mel.appendC... | valueOf(bbox[1])); |
671,442 | protected boolean removeKeyImpl(DynamicObject object, Shape cachedShape, Object key, Property cachedProperty) {<NEW_LINE>Shape oldShape = cachedShape;<NEW_LINE>MutateCacheData start = cache;<NEW_LINE>if (start == MutateCacheData.GENERIC || !cachedShape.isValid()) {<NEW_LINE>return Generic.instance().removeKey(object, c... | .archive(object)) != null; |
510,698 | private void loadNode1084() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SamplingIntervalDiagnosticsType_DisabledMonitoredItemsSamplingCount, new QualifiedName(0, "DisabledMonitoredItemsSamplingCount"), new LocalizedText("en", "DisabledMonitoredItemsSamplingCount"), ... | (1), 0.0, false); |
1,087,327 | public void read(org.apache.thrift.protocol.TProtocol iprot, multi_remove_result 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 ==... | struct.success.read(iprot); |
563,608 | private KeyStore.PrivateKeyEntry loadPrivateKeyEntry(String alias) {<NEW_LINE>try {<NEW_LINE>int builderIndexStart = 0;<NEW_LINE>int builderIndexEnd = alias.indexOf('.', builderIndexStart);<NEW_LINE>if (builderIndexEnd > builderIndexStart) {<NEW_LINE>int localAliasStart = builderIndexEnd + 1;<NEW_LINE>int localAliasEnd... | keyStore.getEntry(localAlias, protectionParameter); |
483,733 | public String sqlAD_getTableColumnElement(String vendorName, String catalogName, String schemaName, String tableName, String columnName) {<NEW_LINE>// table name<NEW_LINE>String searchTableName = "AD_Column";<NEW_LINE>// column names<NEW_LINE>ArrayList<String> columnNames = new ArrayList<String>();<NEW_LINE>columnNames... | = new ArrayList<String>(); |
858,288 | public static long[] hash(final byte[] key, final int offsetBytes, final int lengthBytes, final long seed) {<NEW_LINE>Objects.requireNonNull(key);<NEW_LINE>final int arrLen = key.length;<NEW_LINE>checkPositive(arrLen);<NEW_LINE>Util.checkBounds(offsetBytes, lengthBytes, arrLen);<NEW_LINE>final HashState hashState <MASK... | = new HashState(seed, seed); |
337,179 | public static AnimatedIconFrame[] buildAnimation(String resourceNamePattern, int firstIdx, int lastIdx, boolean returnToFirst, int durationFirst, int durationLast, int duration) {<NEW_LINE>AnimatedIconFrame[] result = new AnimatedIconFrame[returnToFirst ? 2 * (lastIdx - firstIdx<MASK><NEW_LINE>int idx = firstIdx;<NEW_L... | ) : lastIdx - firstIdx + 1]; |
1,690,421 | private void populatChildrenForRoles(List<Role> roles) throws Exception {<NEW_LINE>Map<String, Role> roleMap = UtilMethods.convertListToHashMap(roles, "getId", String.class);<NEW_LINE>String sql = "select cr1.id as childId, cr1.role_name as roleName, cr2.id as parentId from cms_role cr1, cms_role cr2 where cr1.parent ... | .replace(":param1", ids)); |
485,492 | public void writeTo(StreamOutput out) throws IOException {<NEW_LINE>super.writeTo(out);<NEW_LINE>out.writeByte(searchType.id());<NEW_LINE>out.writeStringArray(indices);<NEW_LINE>out.writeOptionalString(routing);<NEW_LINE>out.writeOptionalString(preference);<NEW_LINE>out.writeOptionalWriteable(scroll);<NEW_LINE>out.writ... | StreamOutput::writeString, StreamOutput::writeLongArray); |
1,306,458 | public void onWebRtcAudioRecordSamplesReady(JavaAudioDeviceModule.AudioSamples audioSamples) {<NEW_LINE>if (!isRunning)<NEW_LINE>return;<NEW_LINE>audioThreadHandler.post(() -> {<NEW_LINE>if (audioEncoder == null)<NEW_LINE>try {<NEW_LINE>audioEncoder = MediaCodec.createEncoderByType("audio/mp4a-latm");<NEW_LINE>MediaFor... | KEY_SAMPLE_RATE, audioSamples.getSampleRate()); |
1,467,170 | public static void drawArrowSubPixel(Quadrilateral_F64 quad, double strokeSize, double scale, Graphics2D g2) {<NEW_LINE>Line2D.Double <MASK><NEW_LINE>Color[] colors = new Color[] { Color.RED, Color.ORANGE, Color.CYAN, Color.BLUE };<NEW_LINE>Point2D_F64 start = new Point2D_F64();<NEW_LINE>Point2D_F64 end = new Point2D_F... | line = new Line2D.Double(); |
1,199,180 | protected void init() {<NEW_LINE>codeViewerService = tool.getService(CodeViewerService.class);<NEW_LINE>goToService = tool.getService(GoToService.class);<NEW_LINE>FormatManager formatManager = codeViewerService.getFormatManager();<NEW_LINE>ServiceProvider diffServiceProvider = new DiffServiceProvider(formatManager.getS... | = new FieldNavigator(diffServiceProvider, diffNavigatable); |
270,745 | public void relocate(MachoRelocation relocation) throws MemoryAccessException, NotFoundException {<NEW_LINE>if (!relocation.requiresRelocation()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>RelocationInfo relocationInfo = relocation.getRelocationInfo();<NEW_LINE>Address targetAddr = relocation.getTargetAddress();<NEW_LINE>l... | (orig >> 10) & 0x1; |
68,038 | final GetBehaviorModelTrainingSummariesResult executeGetBehaviorModelTrainingSummaries(GetBehaviorModelTrainingSummariesRequest getBehaviorModelTrainingSummariesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBehaviorModelTrainingSummariesRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
269,006 | private void writeGroup(JRGroup group) {<NEW_LINE>String groupName = group.getName();<NEW_LINE>groupsMap.put(groupName, groupName);<NEW_LINE>write("JRDesignGroup " + groupName + " = new JRDesignGroup();\n");<NEW_LINE>write(groupName + ".setName(\"" + JRStringUtil.escapeJavaStringLiteral(groupName) + "\");\n");<NEW_LINE... | JRSection groupHeader = group.getGroupHeaderSection(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.