idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
571,288 | public static String asString() {<NEW_LINE>final StringBuilder sb = new StringBuilder("Config{\n");<NEW_LINE>sb.append(" DEFAULT_BASE_DIR=").append(DEFAULT_BASE_DIR);<NEW_LINE>sb.append(",\n DEFAULT_BASE_CACHE_DIR=").append(DEFAULT_BASE_CACHE_DIR);<NEW_LINE>sb.append(",\n DEFAULT_BASE_LOG_FILE=").append(DEFAULT_BASE_LO... | (",\n MAX_SCALE=").append(MAX_SCALE); |
1,765,205 | public final Map<Byte, List<TDNode>> poisByZoomlevel(byte minValidZoomlevel, byte maxValidZoomlevel) {<NEW_LINE>HashMap<Byte, List<TDNode>> poisByZoomlevel = new HashMap<>();<NEW_LINE>for (TDNode poi : this.pois) {<NEW_LINE>byte zoomlevel = poi.getZoomAppear();<NEW_LINE>if (zoomlevel > maxValidZoomlevel) {<NEW_LINE>con... | group = new ArrayList<>(); |
1,387,365 | public FileSystemEndpoints unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FileSystemEndpoints fileSystemEndpoints = new FileSystemEndpoints();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep... | ().unmarshall(context)); |
770,767 | final UpdateGcmChannelResult executeUpdateGcmChannel(UpdateGcmChannelRequest updateGcmChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateGcmChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
977,628 | private static Emoji loadAssetBitmap(String filter, String assetPath, boolean isEmoji) {<NEW_LINE>InputStream is = null;<NEW_LINE>try {<NEW_LINE>Emoji emoji = new Emoji();<NEW_LINE>Resources resources = context.getResources();<NEW_LINE>BitmapFactory.Options options = new BitmapFactory.Options();<NEW_LINE>options.inDens... | = resources.getDisplayMetrics().densityDpi; |
1,507,095 | public void execute(Vertex vertex, Messenger<Double> messenger, Memory memory) {<NEW_LINE>if (memory.isInitialIteration()) {<NEW_LINE><MASK><NEW_LINE>} else if (1 == memory.getIteration()) {<NEW_LINE>double initialPageRank = 1D / vertexCount;<NEW_LINE>double edgeCount = IteratorUtils.stream(messenger.receiveMessages())... | messenger.sendMessage(inE, 1D); |
1,208,563 | public static SQLRequestParseContext parseSource(BytesReference source) throws IOException {<NEW_LINE>if (source.length() == 0) {<NEW_LINE>throw new SQLParseException("Missing request body");<NEW_LINE>}<NEW_LINE>XContentParser parser = null;<NEW_LINE>try {<NEW_LINE>SQLRequestParseContext parseContext = new SQLRequestPa... | "Failed to parse source [" + sSource + "]", e); |
285,965 | private void sendPut(final long putId) {<NEW_LINE>hardAssert(canSendWrites(), "sendPut called when we can't send writes (we're disconnected or writes are paused).");<NEW_LINE>final OutstandingPut put = outstandingPuts.get(putId);<NEW_LINE>final RequestResultCallback onComplete = put.getOnComplete();<NEW_LINE>final Stri... | debug("Ignoring on complete for put " + putId + " because it was removed already."); |
903,002 | public void dump(Dumper dumper) {<NEW_LINE>dumper.startBlock("format " + index);<NEW_LINE>addIfNonDefault(dumper, "averageBitrate", format -> format.averageBitrate);<NEW_LINE>addIfNonDefault(dumper, "peakBitrate", format -> format.peakBitrate);<NEW_LINE>addIfNonDefault(dumper, "id", format -> format.id);<NEW_LINE>addIf... | "frameRate", format -> format.frameRate); |
158,421 | public boolean onTouch(View v, MotionEvent event) {<NEW_LINE><MASK><NEW_LINE>switch(action) {<NEW_LINE>case MotionEvent.ACTION_DOWN:<NEW_LINE>x = event.getX();<NEW_LINE>y = event.getY();<NEW_LINE>// Disallow Drawer to intercept touch events.<NEW_LINE>v.getParent().requestDisallowInterceptTouchEvent(true);<NEW_LINE>brea... | int action = event.getAction(); |
1,403,293 | public double calculateAverageWeightedDegree(Graph graph, boolean isDirected, boolean updateAttributes) {<NEW_LINE>double averageWeightedDegree = 0;<NEW_LINE>DirectedGraph directedGraph = null;<NEW_LINE>if (isDirected) {<NEW_LINE>directedGraph = (DirectedGraph) graph;<NEW_LINE>}<NEW_LINE>Progress.start(progress, graph.... | updateDegreeDists(totalInWeight, totalOutWeight, totalWeight); |
1,478,258 | public InputStream read(final Path file, final TransferStatus status, final ConnectionCallback callback) throws BackgroundException {<NEW_LINE>try {<NEW_LINE>if (0L == status.getLength()) {<NEW_LINE>return new NullInputStream(0L);<NEW_LINE>}<NEW_LINE>final Storage.Objects.Get request = session.getClient().objects().get... | "bytes=%d-", range.getStart()); |
1,028,139 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String deviceName, 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_LINE>}<N... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
1,510,350 | private Predicate<MutationDetails> isEquivalent(Mutater m) {<NEW_LINE>return new Predicate<MutationDetails>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean test(MutationDetails a) {<NEW_LINE>if (!MUTATOR_IDS.contains(a.getMutator())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final int instruction = a.getIns... | , method.instruction(instruction)); |
564,728 | public Request<PutGeofenceRequest> marshall(PutGeofenceRequest putGeofenceRequest) {<NEW_LINE>if (putGeofenceRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(PutGeofenceRequest)");<NEW_LINE>}<NEW_LINE>Request<PutGeofenceRequest> request = new DefaultRequest<MASK><NEW_LINE... | <PutGeofenceRequest>(putGeofenceRequest, "AmazonLocation"); |
1,233,077 | private PUBLISH createPublish(@NotNull final PUBLISH publish, final int subscriptionQos, final boolean retainAsPublished, @Nullable final ImmutableIntArray subscriptionIdentifier) {<NEW_LINE>final boolean removePayload = payloadPersistence.add(publish.getPayload(), 1, publish.getPublishId());<NEW_LINE>final ImmutableIn... | (QoS.valueOf(qos)); |
1,551,153 | static void generateProject(final CodestartProjectDefinition projectDefinition, final Path targetDirectory) throws IOException {<NEW_LINE>final MessageWriter log = projectDefinition.getProjectInput().log();<NEW_LINE>final String languageName = projectDefinition.getLanguageName();<NEW_LINE>// Processing data<NEW_LINE>fi... | log.debug("file strategies: %s", strategies); |
785,778 | public boolean collectAffectedMarkersAndShiftSubtrees(@Nullable IntervalNode<FoldRegionImpl> root, @Nonnull DocumentEvent e, @Nonnull List<? super IntervalNode<FoldRegionImpl>> affected) {<NEW_LINE>if (inCollectCall)<NEW_LINE>return super.collectAffectedMarkersAndShiftSubtrees(root, e, affected);<NEW_LINE>inCollectCall... | collectAffectedMarkersAndShiftSubtrees(root, e, affected); |
1,542,394 | final GetByteMatchSetResult executeGetByteMatchSet(GetByteMatchSetRequest getByteMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getByteMatchSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,174,779 | private boolean ensureUsagesWritable(ReplaceContext replaceContext, Collection<? extends Usage> selectedUsages) {<NEW_LINE>Set<VirtualFile> readOnlyFiles = null;<NEW_LINE>for (final Usage usage : selectedUsages) {<NEW_LINE>final VirtualFile file = ((<MASK><NEW_LINE>if (file != null && !file.isWritable()) {<NEW_LINE>if ... | UsageInFile) usage).getFile(); |
707,674 | static void latestBucketTime(OriginSettingClient client, TaskId parentTaskId, String jobId, ActionListener<Long> listener) {<NEW_LINE>SortBuilder<?> sortBuilder = new FieldSortBuilder(Result.TIMESTAMP.getPreferredName()).order(SortOrder.DESC);<NEW_LINE>QueryBuilder bucketType = QueryBuilders.termQuery(Result.RESULT_TYP... | new ElasticsearchParseException("failed to parse bucket", e)); |
510,221 | private void registerRealAxisBinds(ModuleEnvironment environment) {<NEW_LINE>Iterable<Class<?>> classes = environment.getTypesAnnotatedWith(RegisterRealBindAxis.class);<NEW_LINE>for (Class<?> registerBindClass : classes) {<NEW_LINE>RegisterRealBindAxis info = registerBindClass.getAnnotation(RegisterRealBindAxis.class);... | moduleId, info.id()); |
798,130 | public void onJobFinished(@NonNull JobInvocation js, @JobResult int result) {<NEW_LINE>try {<NEW_LINE>JobCallback callback;<NEW_LINE>synchronized (callbacks) {<NEW_LINE>SimpleArrayMap<String, JobCallback> map = callbacks.get(js.getService());<NEW_LINE>if (map == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>callback = m... | remove(js.getTag()); |
1,552,176 | public void collectRuntimeFilterParallelAndControlInfo() {<NEW_LINE>// HashJoin node's major fragment id to its corresponding probe side nodes's endpoints<NEW_LINE>Map<Integer, List<CoordinationProtos.DrillbitEndpoint>> <MASK><NEW_LINE>// HashJoin node's major fragment id to its corresponding probe side scan node's bel... | joinMjId2probeScanEps = new HashMap<>(); |
1,014,199 | final DescribeCacheSecurityGroupsResult executeDescribeCacheSecurityGroups(DescribeCacheSecurityGroupsRequest describeCacheSecurityGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCacheSecurityGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
988,260 | private static void configureNodeStates(UniverseDefinitionTaskParams taskParams, Universe universe, PlacementInfoUtil.ConfigureNodesMode mode, Cluster cluster, boolean allowGeoPartitioning) {<NEW_LINE>switch(mode) {<NEW_LINE>case NEW_CONFIG:<NEW_LINE>// This case covers create universe and full move edit.<NEW_LINE>conf... | .replicationFactor, getDefaultRegion(taskParams)); |
1,434,241 | protected void process(ComplexEventChunk<StreamEvent> streamEventChunk, Processor nextProcessor, StreamEventCloner streamEventCloner, WindowState state) {<NEW_LINE>List<ComplexEventChunk<StreamEvent>> streamEventChunks = new ArrayList<>();<NEW_LINE>synchronized (state) {<NEW_LINE>ComplexEventChunk<StreamEvent> <MASK><N... | outputStreamEventChunk = new ComplexEventChunk<>(); |
128,763 | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {<NEW_LINE>// Get URI<NEW_LINE>String uri = "";<NEW_LINE>if (request instanceof HttpServletRequest) {<NEW_LINE>HttpServletRequest req = (HttpServletRequest) request;<NEW_LINE>uri = req.getReque... | PrintWriter(response.getOutputStream()); |
1,761,074 | public void persist(Object e) {<NEW_LINE>if (e == null) {<NEW_LINE>throw new IllegalArgumentException("Entity object is invalid, operation failed. Please check previous log message for details");<NEW_LINE>}<NEW_LINE>// Create an object graph of the entity object.<NEW_LINE>ObjectGraph graph = new GraphGenerator().genera... | getMainCache().addHeadNode(node); |
57,293 | public void run() {<NEW_LINE>LOG.info("worker {} start to run, the state is {}", this.workerName, status.name());<NEW_LINE>while (status != LifecycleState.STOP) {<NEW_LINE>Transaction tx = null;<NEW_LINE>try {<NEW_LINE>Channel channel = context.getChannel();<NEW_LINE>tx = channel.getTransaction();<NEW_LINE>tx.begin();<... | getMetricItemSet().findMetricItem(dimensions); |
1,309,323 | public static String urlDecode(final String content, final Charset charset, final boolean plusAsBlank) {<NEW_LINE>if (content == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final ByteBuffer bb = ByteBuffer.allocate(content.length());<NEW_LINE>final CharBuffer cb = CharBuffer.wrap(content);<NEW_LINE>while (cb.hasR... | decode(bb).toString(); |
1,351,897 | private GrpcServerBuilder createServerBuilder(String hostName, SocketAddress bindAddress, ChannelType type) {<NEW_LINE>// Create an executor for Worker RPC server.<NEW_LINE>mRPCExecutor = ExecutorServiceBuilder.buildExecutorService(ExecutorServiceBuilder.RpcExecutorHost.WORKER);<NEW_LINE>MetricsSystem.registerGaugeIfAb... | ServerConfiguration.getInt(PropertyKey.WORKER_NETWORK_NETTY_BOSS_THREADS); |
1,706,635 | private void freeInternal(RpcContext rpcContext, LockedInodePath inodePath, FreeContext context) throws FileDoesNotExistException, UnexpectedAlluxioException, IOException, InvalidPathException, AccessControlException {<NEW_LINE>Inode inode = inodePath.getInode();<NEW_LINE>if (inode.isDirectory() && !context.getOptions(... | long opTimeMs = System.currentTimeMillis(); |
1,316,432 | private void createStreamWithMessageHeader(StoreKey key, ByteBuffer blobEncryptionKey, BlobProperties blobProperties, ByteBuffer userMetadata, InputStream blobStream, long streamSize, BlobType blobType, short lifeVersion) throws MessageFormatException {<NEW_LINE>int headerSize = MessageFormatRecord.getHeaderSizeForVers... | UserMetadata_Format_V1.serializeUserMetadataRecord(buffer, userMetadata); |
1,276,639 | public Runner call() throws Exception {<NEW_LINE>try {<NEW_LINE>return Whitebox.invokeConstructor(testClass.isAnnotationPresent(PowerMockRunnerDelegate.class) ? testClass.getAnnotation(PowerMockRunnerDelegate.class).value() : PowerMockRunnerDelegate.DefaultJUnitRunner.class, new Class[] { Class.class }, <MASK><NEW_LINE... | new Object[] { testClass }); |
1,163,647 | public static Constructor<?>[] jlClassGetDeclaredConstructors(Class<?> clazz) {<NEW_LINE>ReloadableType rtype = getRType(clazz);<NEW_LINE>if (rtype == null) {<NEW_LINE>// Non reloadable type<NEW_LINE>Constructor<?>[] cs = clazz.getDeclaredConstructors();<NEW_LINE>return cs;<NEW_LINE>} else if (!rtype.hasBeenReloaded())... | <?>[members.length]; |
631,869 | private void shutdownQueryCheck(long endTimeMs) {<NEW_LINE>LOGGER.info("Starting shutdown query check");<NEW_LINE><MASK><NEW_LINE>long maxQueryTimeMs = _serverConf.getProperty(Server.CONFIG_OF_QUERY_EXECUTOR_TIMEOUT, Server.DEFAULT_QUERY_EXECUTOR_TIMEOUT_MS);<NEW_LINE>long noQueryThresholdMs = _serverConf.getProperty(S... | long startTimeMs = System.currentTimeMillis(); |
1,508,097 | protected void internalTransform(String phaseName, Map<String, String> options) {<NEW_LINE>if (isVerbose()) {<NEW_LINE>logger.info("Collecting Constant Data");<NEW_LINE>}<NEW_LINE>BodyBuilder.retrieveAllNames();<NEW_LINE>final Chain<SootClass> applicationClasses = Scene<MASK><NEW_LINE>for (SootClass applicationClass : ... | .v().getApplicationClasses(); |
1,077,634 | public void marshall(UpdateProfileRequest updateProfileRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateProfileRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateProfileRequest.get... | updateProfileRequest.getDistanceUnit(), DISTANCEUNIT_BINDING); |
161,988 | public void start() {<NEW_LINE>Duration[] defaultLatchIntervals = { Duration.apply(1, TimeUnit.MINUTES) };<NEW_LINE>Map<String, CustomHttpHandler> handlers = mPrometheusEnabled ? new Map.Map1<>("/prometheus", new PrometheusHandler()) : Map$.MODULE$.empty();<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>AdminServic... | RuntimeEnvironment runtimeEnvironment = new RuntimeEnvironment(this); |
1,281,174 | private Pair<Long, Long> insertCallLog(@NonNull RecipientId recipientId, long type, long expiresIn, boolean unread, long timestamp) {<NEW_LINE>Recipient recipient = Recipient.resolved(recipientId);<NEW_LINE>long threadId = SignalDatabase.threads().getOrCreateThreadIdFor(recipient);<NEW_LINE>ContentValues values = new C... | values.put(EXPIRES_IN, expiresIn); |
1,820,673 | protected void consumeEnhancedForStatementHeader() {<NEW_LINE>// EnhancedForStatementHeader ::= EnhancedForStatementHeaderInit ':' Expression ')'<NEW_LINE>final ForeachStatement statement = (ForeachStatement) <MASK><NEW_LINE>// updates are on the expression stack<NEW_LINE>this.expressionLengthPtr--;<NEW_LINE>final Expr... | this.astStack[this.astPtr]; |
521,274 | void attach(TypeParameter[] parameters, int startPos) {<NEW_LINE>if (this.methodDeclaration.modifiers != ClassFileConstants.AccDefault)<NEW_LINE>return;<NEW_LINE>int lastParameterEnd = parameters[parameters.length - 1].sourceEnd;<NEW_LINE>Parser parser = parser();<NEW_LINE>Scanner scanner = parser.scanner;<NEW_LINE>if ... | this.methodDeclaration).typeParameters = parameters; |
1,402,099 | private Mono<Response<ServerAutomaticTuningInner>> updateWithResponseAsync(String resourceGroupName, String serverName, ServerAutomaticTuningInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint()... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
890,396 | public static <T extends HasWord> String listToOriginalTextString(List<T> list, boolean printBeforeBeforeStart) {<NEW_LINE>if (list == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StringBuilder s = new StringBuilder();<NEW_LINE>for (HasWord word : list) {<NEW_LINE>CoreLabel cl = (CoreLabel) word;<NEW_LINE>// check... | (CoreAnnotations.MWTTokenTextAnnotation.class)); |
399,953 | private void handleMessage(MqttPublish publishMessage) throws Exception {<NEW_LINE>final String methodName = "handleMessage";<NEW_LINE>// If quisecing process any pending messages.<NEW_LINE>String destName = publishMessage.getTopicName();<NEW_LINE>// @TRACE 713=call messageArrived key={0} topic={1}<NEW_LINE>log.fine(CL... | ), publishMessage.getMessage()); |
1,809,847 | public IPacket gatewayArpReply(FloodlightContext cntx, MacAddress gatewayMac) {<NEW_LINE>Ethernet eth = IFloodlightProviderService.bcStore.get(cntx, IFloodlightProviderService.CONTEXT_PI_PAYLOAD);<NEW_LINE>ARP arpRequest = (ARP) eth.getPayload();<NEW_LINE>// generate ARP reply to host<NEW_LINE>return new Ethernet().set... | (arpRequest.getSenderProtocolAddress())); |
1,666,691 | private void saveToCookie(IExtendedRequest req, String reqURL, AuthenticationResult result, boolean keepInput) {<NEW_LINE>String strParam = null;<NEW_LINE>try {<NEW_LINE>strParam = serializePostParam(req, reqURL, keepInput);<NEW_LINE>} catch (Exception e) {<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "IO ... | new Object[] { e }); |
1,005,006 | final UpdateAssetPropertyResult executeUpdateAssetProperty(UpdateAssetPropertyRequest updateAssetPropertyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAssetPropertyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
742,995 | public void buildModel() {<NEW_LINE>// BEGIN: readme-sample-buildModel<NEW_LINE>// Build custom document analysis model<NEW_LINE>String trainingFilesUrl = "{SAS_URL_of_your_container_in_blob_storage}";<NEW_LINE>// The shared access signature (SAS) Url of your Azure Blob Storage container with your forms.<NEW_LINE>SyncP... | DocumentModel documentModel = buildOperationPoller.getFinalResult(); |
1,107,774 | private List<Pair<ApiType, MetricsType>> topNodes(CoreV1Api api, ApiClient apiClient, String metricName) throws KubectlException, ApiException, IOException {<NEW_LINE>V1NodeList nodes = api.listNode(null, null, null, null, null, null, null, null, null, null);<NEW_LINE>NodeMetricsList metrics = new Metrics(apiClient).ge... | result = new ArrayList<>(); |
1,491,564 | public static void checkAppUpgrade() {<NEW_LINE>final String APP_INFO_FILE = "APP_INFO";<NEW_LINE>final String APP_VERSION_CODE_KEY = "APP_VERSION_CODE";<NEW_LINE>Context context = MegaApplication.getInstance().getApplicationContext();<NEW_LINE>SharedPreferences preferences = context.getSharedPreferences(APP_INFO_FILE,... | "App upgraded from " + oldVersionCode + " to " + newVersionCode); |
1,855,552 | public UnlabelParameterVersionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UnlabelParameterVersionResult unlabelParameterVersionResult = new UnlabelParameterVersionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren... | )).unmarshall(context)); |
282,129 | final PutDeliveryChannelResult executePutDeliveryChannel(PutDeliveryChannelRequest putDeliveryChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putDeliveryChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | false), new PutDeliveryChannelResultJsonUnmarshaller()); |
1,457,411 | private String verifyPasswordAndGetEmail(UserAuthInfo userAuthInfo, RegistryLockPostInput postInput) throws RegistrarAccessDeniedException {<NEW_LINE>User user = userAuthInfo.user();<NEW_LINE>if (registrarAccessor.isAdmin()) {<NEW_LINE>return user.getEmail();<NEW_LINE>}<NEW_LINE>// Verify that the user can access the r... | registrarContact.getEmailAddress()))); |
1,003,872 | public void init(boolean suppressOutput) {<NEW_LINE>ThreadPoolExecutor executor = new ThreadPoolExecutor(Runtime.getRuntime().availableProcessors(), Runtime.getRuntime().availableProcessors(), 1, TimeUnit.HOURS, new ArrayBlockingQueue<>(5));<NEW_LINE>PrintStream oldErr = System.err;<NEW_LINE>PrintStream oldOut = System... | .eINSTANCE, Schema.STORE)); |
59,647 | private void addStorageOperation(StorageOperation operation) throws ServiceHaltException {<NEW_LINE>checkValidStorageOperation(operation);<NEW_LINE>// Add operation to list, but only if hasn't yet been persisted in Storage. It needs processing if either:<NEW_LINE>// - It has at least one byte that hasn't yet been appli... | this.metadata.getStorageLength()); |
286,826 | public int maxVowels(String s, int k) {<NEW_LINE>Map<Character, Integer> vowels = new HashMap<>();<NEW_LINE>Set<Character> set = new HashSet<>(Arrays.asList('a', 'e', 'i', 'o', 'u'));<NEW_LINE>int left = 0;<NEW_LINE>for (; left < k; left++) {<NEW_LINE>if (set.contains(s.charAt(left))) {<NEW_LINE>vowels.put(s.charAt(lef... | Math.max(max, thisMax); |
948,115 | public Function unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Function function = new Function();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LI... | int originalDepth = context.getCurrentDepth(); |
1,010,537 | private void loadParentAccountList(AccountType accountType) {<NEW_LINE>String condition = DatabaseSchema.SplitEntry.COLUMN_TYPE + " IN (" + getAllowedParentAccountTypes(accountType) + ") AND " + DatabaseSchema.AccountEntry.COLUMN_HIDDEN + "!=1 ";<NEW_LINE>if (mAccount != null) {<NEW_LINE>// if editing an account<NEW_LI... | getUID(), null, null); |
484,132 | public Memory fetch(ArrayMemory settings) throws GitAPIException {<NEW_LINE>FetchCommand command = getWrappedObject().fetch();<NEW_LINE>command.setTransportConfigCallback(transportConfigCallback);<NEW_LINE>if (credentialsProvider != null) {<NEW_LINE>command.setCredentialsProvider(credentialsProvider);<NEW_LINE>}<NEW_LI... | "password").toString())); |
1,208,237 | private ResponseAssertion responseAssertion(MsAssertionRegex assertionRegex) {<NEW_LINE>ResponseAssertion assertion = null;<NEW_LINE>if (StringUtils.startsWith(assertionRegex.getDescription(), "Check Error report:")) {<NEW_LINE>this.setName("ErrorReportAssertion");<NEW_LINE>assertion = new ErrorReportAssertion();<NEW_L... | ResponseAssertion.class.getName()); |
1,745,821 | public void loadInitialConfiguration(ConfigVariableRegistry variableRegistry) throws ConfigValidationException, ConfigParserException {<NEW_LINE>if (configRoot != null && configRoot.exists()) {<NEW_LINE>try {<NEW_LINE>serverConfiguration = loadServerConfiguration();<NEW_LINE>if (serverConfiguration == null) {<NEW_LINE>... | variableRegistry.updateSystemVariables(getVariables()); |
1,587,374 | public DefaultMutableTreeNode parent(MPPProductBOM bom) {<NEW_LINE>log.fine("Parent:" + bom.getName());<NEW_LINE>MProduct product = MProduct.get(Env.getCtx(), bom.getM_Product_ID());<NEW_LINE>// vparent.setValue(m_product_id);<NEW_LINE>String data = Msg.translate(Env.getCtx(), "PP_Product_BOM_ID") + " " + Msg.translate... | BigDecimal) bomline.getQtyBOM()); |
1,169,453 | public List<Pipeline> listByNodeId(Long nodeId) {<NEW_LINE>Assert.assertNotNull(nodeId);<NEW_LINE>List<Pipeline> pipelines = new ArrayList<Pipeline>();<NEW_LINE>try {<NEW_LINE>List<PipelineNodeRelationDO> relations = pipelineNodeRelationDao.listByNodeId(nodeId);<NEW_LINE>if (relations.isEmpty()) {<NEW_LINE>logger.debug... | = new ArrayList<Long>(); |
791,485 | private void incrementIfWithinTimeWindow(final UserReportRecord userReportRecord, final Map<Integer, LongAdder> map) {<NEW_LINE>for (final Map.Entry<Integer, LongAdder> entry : map.entrySet()) {<NEW_LINE>final int day = entry.getKey();<NEW_LINE>final Instant eventDate = userReportRecord.getOtpSecretSetTime();<NEW_LINE>... | timeWindow, TimeDuration.Unit.MILLISECONDS); |
78,313 | public ProductAttribute merge(PersistableProductAttribute source, ProductAttribute destination, MerchantStore store, Language language) {<NEW_LINE>ProductOption productOption = null;<NEW_LINE>if (!StringUtils.isBlank(source.getOption().getCode())) {<NEW_LINE>productOption = productOptionService.getByCode(store, source.... | ), productOptionValue, store, language); |
180,813 | default void applyTaskIdHistoryBaseQuery(StringBuilder sqlBuilder, Map<String, Object> binds, Optional<String> requestId, Optional<String> deployId, Optional<String> runId, Optional<String> host, Optional<ExtendedTaskState> lastTaskStatus, Optional<Long> startedBefore, Optional<Long> startedAfter, Optional<Long> update... | (startedAfter.get())); |
532,036 | public void populateApplicationConfiguration(Document document) {<NEW_LINE><MASK><NEW_LINE>addFactory(document, "exception-handler-factory", "com.ibm.ws.jsf23.fat.cdi.common.managed.factories.CustomExceptionHandlerFactory");<NEW_LINE>addFactory(document, "faces-context-factory", "com.ibm.ws.jsf23.fat.cdi.common.managed... | addFactory(document, "tag-handler-delegate-factory", "com.ibm.ws.jsf23.fat.cdi.common.managed.factories.CustomTagHandlerDelegateFactory"); |
1,528,623 | // initialize the list of class files we should skip annotation processing<NEW_LINE>private synchronized static void initSkipAnnotationClassList() {<NEW_LINE>if (skipAnnotationClassList == null) {<NEW_LINE>skipAnnotationClassList = new HashSet<String>();<NEW_LINE>InputStream is = null;<NEW_LINE>BufferedReader bf = null... | getClassLoader().getResourceAsStream(SKIP_ANNOTATION_CLASS_LIST_URL); |
370,603 | public UriBuilder queryParam(String name, Object... values) throws IllegalArgumentException {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>String prefix = "";<NEW_LINE>if (query == null)<NEW_LINE>query = "";<NEW_LINE>else {<NEW_LINE>sb.append(query).append("&");<NEW_LINE>}<NEW_LINE>if (name == null)<NEW_LI... | name)).append("="); |
33,251 | public StringBuffer printStatement(int tab, StringBuffer output) {<NEW_LINE>printIndent(tab, output);<NEW_LINE>if (this.constantExpressions == null) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>output.append("default ");<NEW_LINE>// $NON-NLS-1$ //$NON-NLS-2$<NEW_LINE>output.append(this.isExpr ? "->" : ":");<NEW_LINE>} else {<NEW... | this.isExpr ? " ->" : " :"); |
1,834,597 | public Result retrieveKey(UUID customerUUID, UUID universeUUID) {<NEW_LINE>LOG.info(String.format("Retrieving universe key for customer %s and universe %s", customerUUID.toString(), universeUUID.toString()));<NEW_LINE>ObjectNode formData = (ObjectNode) request().body().asJson();<NEW_LINE>byte[] keyRef = Base64.getDecod... | Audit.ActionType.RetrieveKmsKey, formData); |
741,517 | public boolean restoreRequest() {<NEW_LINE>HttpSession session = myRequest.getSession(false);<NEW_LINE>if (session == null)<NEW_LINE>return false;<NEW_LINE>synchronized (session) {<NEW_LINE>String j_uri = (String) session.getAttribute(FormAuthenticator.__J_URI);<NEW_LINE>if (j_uri != null) {<NEW_LINE>// check if the re... | >) session.getAttribute(CACHED_FORM_PARAMETERS); |
1,524,201 | public void marshall(CreateServerRequest createServerRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createServerRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createServerRequest.getAsso... | createServerRequest.getServerName(), SERVERNAME_BINDING); |
172,358 | public void startElement(String namespaceURI, String localName, String qualifiedName, Attributes attributes) throws SAXException {<NEW_LINE>super.startElement(namespaceURI, localName, qualifiedName, attributes);<NEW_LINE>switch(Element.fromString(localName)) {<NEW_LINE>case SCHEMA:<NEW_LINE>startSchemaElement(namespace... | namespaceURI, localName, qualifiedName, attributes); |
1,356,819 | public void terminate(PointCollector collector) throws UDFInputSeriesDataTypeNotValidException, IOException, QueryProcessException {<NEW_LINE>switch(dataType) {<NEW_LINE>case INT32:<NEW_LINE>for (Pair<Long, Integer> pair : intPQ.stream().sorted(Comparator.comparing(p -> p.left)).collect(Collectors.toList())) {<NEW_LINE... | pair.left, pair.right); |
937,846 | final GetProxySessionResult executeGetProxySession(GetProxySessionRequest getProxySessionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getProxySessionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetProxySession"); |
675,997 | public static ListExchangesResponse unmarshall(ListExchangesResponse listExchangesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listExchangesResponse.setRequestId(_ctx.stringValue("ListExchangesResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setNextToken(_ctx.stringValue("ListExchangesResponse.Da... | ("ListExchangesResponse.Data.Exchanges[" + i + "].AutoDeleteState")); |
1,182,081 | public static Set<javax.faces.application.NavigationCase> convertNavigationCasesToAPI(NavigationRule rule) {<NEW_LINE>Collection<? extends org.apache.myfaces.config.element.NavigationCase> configCases = rule.getNavigationCases();<NEW_LINE>Set<javax.faces.application.NavigationCase> apiCases = new HashSet<javax.faces.ap... | .getRedirect().getIncludeViewParams(); |
1,194,304 | public void doTrialSetup() {<NEW_LINE>dbPath = DB_PATH.resolveSibling(DB_PATH.getFileName() + "." + Thread.currentThread().getId());<NEW_LINE>if (Databases.existsDatabase(dbPath)) {<NEW_LINE>Databases.removeDatabase(dbPath);<NEW_LINE>}<NEW_LINE>var dbConf = new DatabaseConfiguration(dbPath);<NEW_LINE>Databases.createXm... | storage = storageType.getInstance(conf); |
431,046 | public void visitUnary(JCUnary tree) {<NEW_LINE>int ownprec = TreeInfo.opPrec(tree.getTag());<NEW_LINE>Name opname;<NEW_LINE>switch(tree.getTag()) {<NEW_LINE>case POS:<NEW_LINE>opname = names.fromString("+");<NEW_LINE>break;<NEW_LINE>case NEG:<NEW_LINE>opname = names.fromString("-");<NEW_LINE>break;<NEW_LINE>default:<N... | printExpr(tree.arg, ownprec); |
55,952 | private void createTrafficChannels() {<NEW_LINE>if (mManagedTrafficChannels == null) {<NEW_LINE>DecodeConfiguration decodeConfiguration = mParentChannel.getDecodeConfiguration();<NEW_LINE>List<Channel> <MASK><NEW_LINE>if (decodeConfiguration instanceof DecodeConfigDMR) {<NEW_LINE>DecodeConfigDMR decodeConfig = (DecodeC... | trafficChannelList = new ArrayList<>(); |
576,565 | public ListTagsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListTagsResult listTagsResult = new ListTagsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<... | String currentParentElement = context.getCurrentParentElement(); |
97,177 | public Object evaluateEnumMethod(EventBean[] eventsLambda, Collection enumcoll, boolean isNewData, ExprEvaluatorContext context) {<NEW_LINE>if (enumcoll.isEmpty()) {<NEW_LINE>return enumcoll;<NEW_LINE>}<NEW_LINE>ObjectArrayEventBean evalEvent = new ObjectArrayEventBean(<MASK><NEW_LINE>eventsLambda[getStreamNumLambda()]... | new Object[3], fieldEventType); |
151,398 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "total" };<NEW_LINE>String epl = "@name('s0') select * from SupportBean#unique(intPrimitive)#unique(intBoxed)#uni(doublePrimitive) retain-union";<NEW_LINE>env.compileDeployAddListenerMileZero(epl, "s0");<NEW_LINE>sendEvent(env, "E1",... | new Object[] { 100d }); |
239,990 | private void createControls(final List<TypeInstanceReference> references) {<NEW_LINE>final JPanel panel = new JPanel();<NEW_LINE>getContentPane().add(panel, BorderLayout.SOUTH);<NEW_LINE>panel.setLayout(new FlowLayout(FlowLayout.RIGHT));<NEW_LINE>final JButton buttonOk = new JButton("OK");<NEW_LINE>buttonOk.addActionLi... | (xrefs), BorderLayout.CENTER); |
418,044 | public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {<NEW_LINE>if (!pattern.matcher(file.toString()).matches()) {<NEW_LINE>return FileVisitResult.CONTINUE;<NEW_LINE>} else if (!file.toString().endsWith(".java")) {<NEW_LINE>return FileVisitResult.CONTINUE;<NEW_LINE>}<NEW_LINE>try (I... | events.size() + "] events"); |
1,200,262 | public VehicleRoutingAlgorithm createAlgorithm(VehicleRoutingProblem vrp) {<NEW_LINE>// TODO determine alpha threshold<NEW_LINE>int radialShare = (int) (vrp.getJobs().size() * 0.3);<NEW_LINE>int randomShare = (int) (vrp.getJobs().size() * 0.5);<NEW_LINE>Jsprit.Builder builder = Jsprit.Builder.newInstance(vrp);<NEW_LINE... | Jsprit.Strategy.CLUSTER_BEST, "0.0"); |
369,866 | private CtClass produceProxyClass(CtClass orgclass, Class<?> orgRtClass) throws CannotCompileException, NotFoundException {<NEW_LINE>int modify = orgclass.getModifiers();<NEW_LINE>if (Modifier.isAbstract(modify) || Modifier.isNative(modify) || !Modifier.isPublic(modify))<NEW_LINE>throw new CannotCompileException(orgcla... | (CtNewConstructor.defaultConstructor(proxy)); |
317,592 | public static void saveXYGraphPropsToMemento(XYGraph xyGraph, XYGraphMemento memento) {<NEW_LINE>memento.setTitle(xyGraph.getTitle());<NEW_LINE>memento.setTitleFont(xyGraph.getTitleFont());<NEW_LINE>memento.setTitleColor(xyGraph.getTitleColor());<NEW_LINE>memento.setPlotAreaBackColor(xyGraph.getPlotArea().getBackground... | getPlotArea().isShowBorder()); |
1,576,114 | synchronized public void ensureField(String typeName, String fieldName, String... existingFieldNames) {<NEW_LINE>// quickly check if the field is known for this type<NEW_LINE>if (hasField(typeName, fieldName)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// add type and field to schema<NEW_LINE><MASK><NEW_LINE>if (!fields.co... | StringJoiner schema = new StringJoiner("\n"); |
1,557,983 | public List<Xml.Document> parseInputs(Iterable<Input> sourceFiles, @Nullable Path relativeTo, ExecutionContext ctx) {<NEW_LINE>ParsingEventListener parsingListener = ParsingExecutionContextView.<MASK><NEW_LINE>return acceptedInputs(sourceFiles).stream().map(sourceFile -> {<NEW_LINE>Timer.Builder timer = Timer.builder("... | view(ctx).getParsingListener(); |
1,553,687 | public Yaml.Mapping visitMapping(Yaml.Mapping mapping, P p) {<NEW_LINE>Yaml.Mapping m = super.visitMapping(mapping, p);<NEW_LINE>if (m.getEntries().contains(scope)) {<NEW_LINE>String newEntryPrefix = scope.getPrefix();<NEW_LINE>if (newEntryPrefix.isEmpty()) {<NEW_LINE>newEntryPrefix = "\n";<NEW_LINE>}<NEW_LINE>Yaml.Map... | getValue().copyPaste()); |
467,644 | public VoidResult deleteObjectTagging(GenericRequest genericRequest) throws OSSException, ClientException {<NEW_LINE>assertParameterNotNull(genericRequest, "genericRequest");<NEW_LINE>String bucketName = genericRequest.getBucketName();<NEW_LINE>String key = genericRequest.getKey();<NEW_LINE>String versionId = genericRe... | setOriginalRequest(genericRequest).build(); |
540,234 | private Collection<Pair<YamlRuleConfiguration, YamlRuleConfiguration>> groupSourceTargetRuleConfigsByType(final Collection<YamlRuleConfiguration> sourceRules, final Collection<YamlRuleConfiguration> targetRules) {<NEW_LINE>Map<Class<? extends YamlRuleConfiguration>, YamlRuleConfiguration> sourceRulesMap = sourceRules.s... | , Function.identity())); |
115,440 | public void main() {<NEW_LINE>RVec4 color = (RVec4) getGlobal(DefaultShaderVar.G_COLOR);<NEW_LINE>RVec3 eyeDir = (RVec3) getGlobal(DefaultShaderVar.V_EYE_DIR);<NEW_LINE>RVec3 normal = (RVec3) getGlobal(DefaultShaderVar.G_NORMAL);<NEW_LINE>RFloat k = (RFloat) getGlobal(SpecularShaderVar.U_EXTINCTION_COEFFICIENT);<NEW_LI... | RFloat F0 = new RFloat("F0"); |
719,164 | private void alignAssignmentStatements(List<Statement> statements) {<NEW_LINE>List<List<ExpressionStatement>> assignmentGroups = toAlignGroups(statements, n -> optionalCast(n, ExpressionStatement.class).filter(es -> es.getExpression() instanceof Assignment));<NEW_LINE>this.alignGroups.addAll(assignmentGroups);<NEW_LINE... | -> alignNodes(ag, assignFinder)); |
274,310 | public static void changeColor(Switch s, boolean isChecked, JSONObject style) {<NEW_LINE>try {<NEW_LINE>if (isChecked) {<NEW_LINE>int color;<NEW_LINE>if (style.has("color")) {<NEW_LINE>color = JasonHelper.parse_color(style.getString("color"));<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {<NEW_... | color, PorterDuff.Mode.MULTIPLY); |
838,499 | final DeleteVoiceChannelResult executeDeleteVoiceChannel(DeleteVoiceChannelRequest deleteVoiceChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVoiceChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | endClientExecution(awsRequestMetrics, request, response); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.