idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,304,900 | public void load(X509CRLEntry[] revokedCerts) {<NEW_LINE>TreeMap<BigInteger, X509CRLEntry> sortedRevokedCerts = new TreeMap<>();<NEW_LINE>for (int i = 0; i < revokedCerts.length; i++) {<NEW_LINE>sortedRevokedCerts.put(revokedCerts[i].getSerialNumber(), revokedCerts[i]);<NEW_LINE>}<NEW_LINE>data = new Object[sortedRevok... | next()).getValue(); |
959,252 | public Object parse(InputStream response, HttpEntity entity) throws XMLRPCException {<NEW_LINE>try {<NEW_LINE>XmlPullParser pullParser = XmlPullParserFactory.newInstance().newPullParser();<NEW_LINE>pullParser.setInput(response, "UTF-8");<NEW_LINE>pullParser.nextTag();<NEW_LINE>pullParser.require(XmlPullParser.START_TAG... | throw new XMLRPCException("Error getting result from server.", ex); |
847,095 | private V slowRemove(Object key, int hash, AtomicReferenceArray currentArray) {<NEW_LINE>// noinspection LabeledStatement<NEW_LINE>outer: while (true) {<NEW_LINE>int length = currentArray.length();<NEW_LINE>int index = ConcurrentHashMap.indexFor(hash, length);<NEW_LINE>Object o = currentArray.get(index);<NEW_LINE>if (o... | Object candidate = e.getKey(); |
1,636,399 | private static CoolingThresholdTemperatureCharacteristic createCoolingThresholdCharacteristic(HomekitTaggedItem taggedItem, HomekitAccessoryUpdater updater) {<NEW_LINE>double minValue = HomekitCharacteristicFactory.convertToCelsius(taggedItem.getConfigurationAsDouble(HomekitTaggedItem.MIN_VALUE, CoolingThresholdTempera... | (taggedItem, COOLING_THRESHOLD_TEMPERATURE, updater)); |
46,751 | private void handleDestroyTunnelAnswer(Answer ans, long from, long to, long networkId) {<NEW_LINE>if (ans.getResult()) {<NEW_LINE>OvsTunnelNetworkVO lock = _tunnelNetworkDao.acquireInLockTable(Long.valueOf(1));<NEW_LINE>if (lock == null) {<NEW_LINE>s_logger.warn(String.format("failed to lock" + "ovs_tunnel_account, rem... | removeByFromToNetwork(from, to, networkId); |
1,016,962 | public void register(RoutingContext ctx) {<NEW_LINE>try {<NEW_LINE>// might throw runtime exception if there's no json or is bad formed<NEW_LINE>final JsonObject webauthnRegister = ctx.getBodyAsJson();<NEW_LINE>// the register object should match a Webauthn user.<NEW_LINE>// A user has only a required field: name<NEW_L... | ctx.fail(400, e); |
177,409 | final BatchDisassociateClientDeviceFromCoreDeviceResult executeBatchDisassociateClientDeviceFromCoreDevice(BatchDisassociateClientDeviceFromCoreDeviceRequest batchDisassociateClientDeviceFromCoreDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDisassociateClientDeviceFromCoreDev... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
214,889 | public TopicRepository createTopicRepository(final Storage storage) throws TopicRepositoryException {<NEW_LINE>try {<NEW_LINE>final KafkaConfiguration kafkaConfiguration = storage.getKafkaConfiguration();<NEW_LINE>final ZooKeeperHolder zooKeeperHolder = new ZooKeeperHolder(kafkaConfiguration.getZookeeperConnection(), z... | (zooKeeperHolder, kafkaSettings), metricRegistry); |
1,803,453 | public static String scrambleString(final String key, final String s) {<NEW_LINE>// we perform several operations<NEW_LINE>// - generate salt<NEW_LINE>// - gzip string<NEW_LINE>// - crypt string with key and salt<NEW_LINE>// - base64-encode result<NEW_LINE>// - attach salt and return<NEW_LINE>final String salt = random... | enc = c.encryptArray(gz); |
226,158 | public void updateConfig(HttpServletRequest req, HttpServletResponse res) throws JsonProcessingException {<NEW_LINE>Map<String, Object> entity = readEntity(req);<NEW_LINE>if (entity.containsKey("signature") && entity.containsKey("payload") && entity.getOrDefault("event", "").equals("config.update")) {<NEW_LINE>String p... | alreadyUpdated = id.equals(lastConfigUpdate); |
117,468 | private void markSkipped(@NonNull final I_C_Queue_WorkPackage workPackage, @NonNull final IWorkpackageSkipRequest skipRequest) {<NEW_LINE>final Timestamp skippedAt = SystemTime.asTimestamp();<NEW_LINE>final Exception skipException = skipRequest.getException();<NEW_LINE>final int skippedCount = workPackage.getSkipped_Co... | setSkipped_Last_Reason(skipRequest.getSkipReason()); |
48,238 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource"); |
184,717 | public RlpxAgent build() {<NEW_LINE>validate();<NEW_LINE>if (connectionEvents == null) {<NEW_LINE>connectionEvents = new PeerConnectionEvents(metricsSystem);<NEW_LINE>}<NEW_LINE>if (connectionInitializer == null) {<NEW_LINE>if (p2pTLSConfiguration.isPresent()) {<NEW_LINE>LOG.debug("TLS Configuration found using NettyTL... | config, localNode, connectionEvents, metricsSystem); |
102,862 | public LogData readFlowLogs(final int execId, final int startByte, final int length) throws ExecutorManagerException {<NEW_LINE>final FlowRunner runner = this.runningFlows.get(execId);<NEW_LINE>if (runner == null) {<NEW_LINE>throw new ExecutorManagerException("Running flow " + execId + " not found.");<NEW_LINE>}<NEW_LI... | File logFile = runner.getFlowLogFile(); |
73,305 | public static String add_str(String a, String b, int n) {<NEW_LINE>a = trim(a, n);<NEW_LINE>b = trim(b, n);<NEW_LINE>String val = "";<NEW_LINE>int i, rem = 0;<NEW_LINE>char[] c1 = a.toCharArray();<NEW_LINE>char[<MASK><NEW_LINE>int[] ans = new int[a.length() + 1];<NEW_LINE>for (i = a.length(); i > 0; i--) {<NEW_LINE>ans... | ] c2 = b.toCharArray(); |
441,305 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Spell spell = game.getStack().getSpell(source.getSourceId());<NEW_LINE>if (controller != null && spell != null) {<NEW_LINE>ExileFromGraveCost exileFromGraveCost = (ExileFromGraveCost) source... | spell.setCurrentActivatingManaAbilitiesStep(ActivationManaAbilityStep.AFTER); |
88,519 | public void columnsReordered(List<String> newColumnOrder, List<String> oldColumnOrder) {<NEW_LINE>final String diffStateKey = "columnOrder";<NEW_LINE>ConnectorTracker connectorTracker = getUI().getConnectorTracker();<NEW_LINE>JsonObject diffState = connectorTracker.getDiffState(Grid.this);<NEW_LINE>// discard the chang... | diffState.hasKey(diffStateKey) : "Field name has changed"; |
704,774 | final CreateProvisioningTemplateResult executeCreateProvisioningTemplate(CreateProvisioningTemplateRequest createProvisioningTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createProvisioningTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
877,368 | public RegisterInstanceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RegisterInstanceResult registerInstanceResult = new RegisterInstanceResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | JsonToken token = context.getCurrentToken(); |
551,540 | public IStatus createTag(String tagName, String message, String startPoint) {<NEW_LINE>List<String> args <MASK><NEW_LINE>// $NON-NLS-1$<NEW_LINE>args.add("tag");<NEW_LINE>// $NON-NLS-1$<NEW_LINE>args.add("-a");<NEW_LINE>args.add(tagName);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>args.add("-m");<NEW_LINE>args.add(message);<NEW_... | = new ArrayList<String>(); |
188,746 | protected void processJarClassNames(ClassResource classResource, Set<String> classes) {<NEW_LINE>URL resource = classResource.getResource();<NEW_LINE>String packageName = classResource.getPackageName();<NEW_LINE>String relativePath = getPackageRelativePath(packageName);<NEW_LINE>String jarPath = getJarPath(resource);<N... | > entries = jarFile.entries(); |
749,259 | protected void onCreate(Bundle state, boolean ready) {<NEW_LINE>super.onCreate(state, ready);<NEW_LINE>DcEventCenter eventCenter = DcHelper.getEventCenter(WebxdcActivity.this.getApplicationContext());<NEW_LINE>eventCenter.addObserver(DcContext.DC_EVENT_WEBXDC_STATUS_UPDATE, this);<NEW_LINE>Bundle b = getIntent().getExt... | = this.dcAppMsg.getWebxdcInfo(); |
224,915 | protected void removeByC_T(String companyId, String type) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>session = openSession();<NEW_LINE>StringBuffer query = new StringBuffer();<NEW_LINE>query.append("FROM AdminConfig IN CLASS com.liferay.portlet.admin.ejb.AdminConfigHBM WHERE ");<N... | .setString(queryPos++, type); |
1,241,556 | public PartitionGetResult partitionGet(PartitionGetParam partParam) {<NEW_LINE>PartSampleNeighborWithTypeParam sampleParam = (PartSampleNeighborWithTypeParam) partParam;<NEW_LINE>ServerLongAnyRow row = GraphMatrixUtils.getPSLongKeyRow(psContext, partParam);<NEW_LINE>ILongKeyPartOp split = (ILongKeyPartOp) sampleParam.g... | ] nodeIds = split.getKeys(); |
869,550 | static OIdentifiable securityFilterOnRead(OIndex idx, OIdentifiable item) {<NEW_LINE>if (idx.getDefinition() == null) {<NEW_LINE>return item;<NEW_LINE>}<NEW_LINE>String indexClass = idx.getDefinition().getClassName();<NEW_LINE>if (indexClass == null) {<NEW_LINE>return item;<NEW_LINE>}<NEW_LINE>ODatabaseDocumentInternal... | .getSharedContext().getSecurity(); |
273,049 | public ApiResponse<FileShare> fileSharesPutWithHttpInfo(String id, UpdateShareRequest updateFileShareRequest) throws ApiException {<NEW_LINE>Object localVarPostBody = updateFileShareRequest;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// verify th... | throw new ApiException(400, "Missing the required parameter 'id' when calling fileSharesPut"); |
955,578 | private Runnable createFinishCommitInEDTRunnable(@Nonnull final CommitTask task, final boolean synchronously, @Nonnull List<? extends BooleanRunnable> finishProcessors, @Nonnull List<? extends BooleanRunnable> reparseInjectedProcessors) {<NEW_LINE>return () -> {<NEW_LINE>ApplicationManager<MASK><NEW_LINE>Document docum... | .getApplication().assertIsDispatchThread(); |
573,478 | private void save(ServerLongLongRow row, PSMatrixSaveContext saveContext, MatrixPartitionMeta meta, DataOutputStream out) throws IOException {<NEW_LINE>long startCol = meta.getStartCol();<NEW_LINE>if (ServerRowUtils.getVector(row) instanceof IntLongVector) {<NEW_LINE>IntLongVector vector = (IntLongVector) ServerRowUtil... | .writeLong(values[i]); |
783,457 | final ListSizeConstraintSetsResult executeListSizeConstraintSets(ListSizeConstraintSetsRequest listSizeConstraintSetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSizeConstraintSetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
313,616 | private Pane openPane(boolean reuse) {<NEW_LINE>Pane ce = null;<NEW_LINE>boolean displayMsgOpened = false;<NEW_LINE>synchronized (getLock()) {<NEW_LINE>ce = getAnyEditor();<NEW_LINE>if (ce == null) {<NEW_LINE>// no opened editor<NEW_LINE>String msg = messageOpening();<NEW_LINE>if (msg != null) {<NEW_LINE>StatusDisplaye... | getComponent().setReference(allEditors); |
1,416,516 | protected CompletableFuture<?> processMessage(Gadp.RootMessage msg) {<NEW_LINE>switch(msg.getMsgCase()) {<NEW_LINE>case CONNECT_REQUEST:<NEW_LINE>return processConnect(msg.getSequence(), msg.getConnectRequest());<NEW_LINE>case PING_REQUEST:<NEW_LINE>return processPing(msg.getSequence(), msg.getPingRequest());<NEW_LINE>... | ), msg.getCacheInvalidateRequest()); |
979,163 | protected void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_home);<NEW_LINE>folioReader = FolioReader.get().setOnHighlightListener(this).setReadLocatorListener(this).setOnClosedListener(this);<NEW_LINE>getHighlightsAndSave();<NEW_... | openBook(R.raw.accessible_epub_3); |
1,445,550 | public GenericTrigger createTableTriggerImpl(@NotNull JDBCSession session, @NotNull GenericStructContainer container, @NotNull GenericTableBase parent, String triggerName, @NotNull JDBCResultSet dbResult) throws DBException {<NEW_LINE>if (CommonUtils.isEmpty(triggerName)) {<NEW_LINE>triggerName = JDBCUtils.safeGetStrin... | JDBCUtils.safeGetInt(dbResult, "RDB$SYSTEM_FLAG"); |
608,902 | public static Spanned parseSimpleHtml(final Context c, String source, final TextView textView) {<NEW_LINE>source = source.replaceAll("<li>", "\t\u0095 ");<NEW_LINE>source = source.replaceAll("</li>", "<br>");<NEW_LINE>Spanned html = Html.fromHtml(source, Html.FROM_HTML_MODE_COMPACT, source1 -> {<NEW_LINE>LevelListDrawa... | int len = html.length(); |
219,223 | public okhttp3.Call readNamespacedEventCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}".rep... | localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); |
1,025,714 | protected InputStream openFile(String path) throws IOException {<NEW_LINE>if ("pack.mcmeta".equals(path)) {<NEW_LINE>return new ByteArrayInputStream("{\"pack\": {\"description\": \"ReplayMod language files\", \"pack_format\": 4}}".getBytes(StandardCharsets.UTF_8));<NEW_LINE>}<NEW_LINE>Path langPath = langPath(path);<NE... | readLines(in, StandardCharsets.UTF_8); |
1,659,117 | public void initSubDevices() {<NEW_LINE>ModelFactory factory = ModelFactory.eINSTANCE;<NEW_LINE>IndustrialDualAnalogInChannel channel0 = factory.createIndustrialDualAnalogInChannel();<NEW_LINE>channel0.setChannelNum((short) 0);<NEW_LINE>channel0.setUid(getUid());<NEW_LINE>String subIdChannel0 = "channel0";<NEW_LINE>log... | .setChannelNum((short) 1); |
176,164 | public void refineReprojection(List<DMatrixRMaj> cameras1, List<Point4D_F64> scene1, List<Point4D_F64> scene2, DMatrixRMaj H) {<NEW_LINE>if (H.numCols != 4 || H.numRows != 4)<NEW_LINE>throw new IllegalArgumentException("Expected 4x4 matrix for H");<NEW_LINE>if (scene1.size() != scene2.size() || scene1.size() <= 0)<NEW_... | configConverge.ftol, configConverge.gtol); |
1,140,667 | private VmDataCommand generateVmDataCommand(String vmPrivateIpAddress, String userData, String serviceOffering, String zoneName, String guestIpAddress, String vmName, String vmInstanceName, long vmId, String vmUuid, String publicKey, String hostname) {<NEW_LINE>VmDataCommand cmd = new VmDataCommand(vmPrivateIpAddress, ... | addVmData("metadata", "local-ipv4", guestIpAddress); |
1,212,038 | final ImportHypervisorConfigurationResult executeImportHypervisorConfiguration(ImportHypervisorConfigurationRequest importHypervisorConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importHypervisorConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,487,079 | public void load() {<NEW_LINE>ExUtil.asyncRun(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>MapPack out = null;<NEW_LINE>final List<HeapHistoData> datas = new ArrayList<HeapHistoData>();<NEW_LINE>TcpProxy <MASK><NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objHash", objH... | tcp = TcpProxy.getTcpProxy(serverId); |
1,271,271 | private List<Path> normalizePathsInCommandLineProperties(final String propertyName, final boolean multi) {<NEW_LINE>if (!this.commandLineProperties.containsKey(propertyName)) {<NEW_LINE>return Collections.unmodifiableList(new ArrayList<Path>());<NEW_LINE>}<NEW_LINE>final String property = <MASK><NEW_LINE>if (property =... | this.commandLineProperties.getProperty(propertyName); |
1,118,687 | private void addPlasticBlocks() {<NEW_LINE>addToTags(AdditionsTags.Items.PLASTIC_BLOCKS_PLASTIC, AdditionsTags.Blocks.PLASTIC_BLOCKS_PLASTIC, AdditionsBlocks.PLASTIC_BLOCKS);<NEW_LINE>addToTags(AdditionsTags.Items.PLASTIC_BLOCKS_SLICK, AdditionsTags.Blocks.PLASTIC_BLOCKS_SLICK, AdditionsBlocks.SLICK_PLASTIC_BLOCKS);<NE... | PLASTIC_BLOCKS_SLICK, AdditionsTags.Blocks.PLASTIC_BLOCKS_TRANSPARENT); |
1,564,715 | final CreateReceiptRuleSetResult executeCreateReceiptRuleSet(CreateReceiptRuleSetRequest createReceiptRuleSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createReceiptRuleSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
968,762 | public void loadSamples(SampleLoader sampleLoader) {<NEW_LINE>LOG.info("Starting loading samples.");<NEW_LINE>long startMs = System.currentTimeMillis();<NEW_LINE>AtomicLong numPartitionMetricSamples = new AtomicLong(0L);<NEW_LINE>AtomicLong numBrokerMetricSamples = new AtomicLong(0L);<NEW_LINE>AtomicLong totalSamples =... | LOG.error("Received exception when loading samples", e); |
419,001 | final ListCuratedEnvironmentImagesResult executeListCuratedEnvironmentImages(ListCuratedEnvironmentImagesRequest listCuratedEnvironmentImagesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listCuratedEnvironmentImagesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | endClientExecution(awsRequestMetrics, request, response); |
1,764,082 | private // @param verifyChecksum if true the actual element data will be read + checksumed and compared to written checksum<NEW_LINE>void readNextElement(long expectedSeqNum, boolean verifyChecksum) throws MmapPageIOV2.PageIOInvalidElementException {<NEW_LINE>// if there is no room for the seqNum and length bytes stop ... | buffer.position() + length); |
746,509 | protected Failable<ImmutableList<RequestMapping>> compute() {<NEW_LINE>Set<String<MASK><NEW_LINE>if (targets != null && !targets.isEmpty()) {<NEW_LINE>if (targets.size() == 1) {<NEW_LINE>String target = targets.iterator().next();<NEW_LINE>ActuatorClient client = JMXActuatorClient.forUrl(getTypeLookup(), () -> target);<... | > targets = actuatorUrls.getValue(); |
1,620,017 | public void handleInboundPubrec(@NotNull final ChannelHandlerContext ctx, @NotNull final PUBREC pubrec) {<NEW_LINE>final Channel channel = ctx.channel();<NEW_LINE>final ClientConnection clientConnection = channel.attr(<MASK><NEW_LINE>final String clientId = clientConnection.getClientId();<NEW_LINE>if (clientId == null)... | ChannelAttributes.CLIENT_CONNECTION).get(); |
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 serverName is required and cannot be null.")); |
1,589,674 | public static void demoPaint(final RasterPlotter m) {<NEW_LINE>m.setColor(GREY);<NEW_LINE>m.line(0, 70, 100, 70, 100);<NEW_LINE>PrintTool.print(m, 0, 65, 0, "Grey", -1, false, 100);<NEW_LINE>m.line(65, 0, 65, 300, 100);<NEW_LINE>m.setColor(RED);<NEW_LINE>m.line(0, 90, 100, 90, 100);<NEW_LINE>PrintTool.print(m, 0, 85, 0... | , -1, false, 100); |
822,378 | protected <T extends Block> BlockEntry<?> createEntry(AbstractRegistrate<?> registrate, Variant<T> variant, WeatherState state, boolean waxed) {<NEW_LINE>String name = "";<NEW_LINE>if (waxed) {<NEW_LINE>name += "waxed_";<NEW_LINE>}<NEW_LINE>name += getWeatherStatePrefix(state);<NEW_LINE>name += this.name;<NEW_LINE>Stri... | .accept(c, p)); |
200,351 | public NameForms typeAbstract() {<NEW_LINE>if (protoclass().kind().isConstructor()) {<NEW_LINE>return typeValue();<NEW_LINE>}<NEW_LINE>List<String> classSegments = Lists.newArrayListWithExpectedSize(2);<NEW_LINE>Element e = SourceNames.collectClassSegments(protoclass().sourceElement(), classSegments);<NEW_LINE>verify(e... | .getQualifiedName().toString(); |
1,628,859 | public void beforeMountItem(final ExtensionState<IncrementalMountExtensionState> extensionState, final RenderTreeNode renderTreeNode, final int index) {<NEW_LINE>final boolean isTracing = RenderCoreSystrace.isEnabled();<NEW_LINE>if (IncrementalMountExtensionConfigs.isDebugLoggingEnabled) {<NEW_LINE>Log.d(DEBUG_TAG, "be... | ).getId() + "]"); |
1,322,699 | public static void signedMul(final long offset, final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions, final OperandSize firstOperandSize, final String firstOperand, final OperandSize secondOperandSize, final String secondOperand, final OperandSize resultOpe... | baseOffset, firstOperand, firstOperandSize, instructions); |
188,292 | protected void handlePost(RoutingContext event, MultiMap form) throws Exception {<NEW_LINE>String datasource = form.get("datasource");<NEW_LINE>String operation = form.get("operation");<NEW_LINE>Collection<FlywayContainer> flywayContainers = new FlywayContainersSupplier().get();<NEW_LINE>for (FlywayContainer flywayCont... | "Datasource not found: " + datasource, FlashMessageStatus.ERROR); |
305,218 | final NotifyAppValidationOutputResult executeNotifyAppValidationOutput(NotifyAppValidationOutputRequest notifyAppValidationOutputRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(notifyAppValidationOutputRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
167,124 | public static <A, B, C, D, E> Promise<F.E5<A, B, C, D, E>> waitEither(Promise<A> tA, Promise<B> tB, Promise<C> tC, Promise<D> tD, Promise<E> tE) {<NEW_LINE>final Promise<F.E5<A, B, C, D, E>> result = new Promise<>();<NEW_LINE>Promise<F.Tuple<Integer, Promise<Object>>> t = waitEitherInternal(tA, tB, tC, tD, tE);<NEW_LIN... | ._2.getOrNull())); |
1,199,676 | public Settings upgradeSettings(final Settings settings) {<NEW_LINE>final Settings.Builder builder = Settings.builder();<NEW_LINE>// track if any settings were upgraded<NEW_LINE>boolean changed = false;<NEW_LINE>for (final String key : settings.keySet()) {<NEW_LINE>final Setting<?> setting = getRaw(key);<NEW_LINE>final... | builder.putList(upgradedKey, upgradedValue); |
60,625 | void dump(Collection<BugPatternInstance> patterns, Writer w, Target target, Set<String> enabledChecks) throws IOException {<NEW_LINE>// (Default, Severity) -> [Pattern...]<NEW_LINE>SortedSetMultimap<IndexEntry, MiniDescription> sorted = TreeMultimap.create(comparing(IndexEntry::onByDefault, trueFirst()).thenComparing(I... | "layout", "bugpatterns").buildOrThrow(); |
247,992 | final DBCluster executeRestoreDBClusterFromSnapshot(RestoreDBClusterFromSnapshotRequest restoreDBClusterFromSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(restoreDBClusterFromSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | DBCluster>(new DBClusterStaxUnmarshaller()); |
128,630 | public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(values.get("knowledgeId"), con... | "tagId"), convLabelName("Tag Id")); |
854,373 | private void saveToCloudDrive() {<NEW_LINE>MegaNode parentNode = megaApi.getRootNode();<NEW_LINE>String myEmail = megaApi.getMyUser().getEmail();<NEW_LINE>File qrFile = buildQrFile(getActivity(), myEmail + QR_IMAGE_FILE_NAME);<NEW_LINE>if (isFileAvailable(qrFile)) {<NEW_LINE>if (MegaApplication.getInstance().getStorage... | (R.string.error_upload_qr)); |
674,265 | protected RequestBody finalizeData() {<NEW_LINE>DataObject frame = DataObject.empty().put("name", getChannel().getName());<NEW_LINE>if (shouldUpdate(NAME))<NEW_LINE>frame.put("name", name);<NEW_LINE>if (shouldUpdate(TYPE))<NEW_LINE>frame.put("type", type);<NEW_LINE>if (shouldUpdate(POSITION))<NEW_LINE>frame.put("positi... | frame.put("archived", archived); |
977,044 | public ApiResponse<ExtendedUser> usersPostInviteWithHttpInfo(InviteUserRequest inviteUserRequest) throws ApiException {<NEW_LINE>Object localVarPostBody = inviteUserRequest;<NEW_LINE>// verify the required parameter 'inviteUserRequest' is set<NEW_LINE>if (inviteUserRequest == null) {<NEW_LINE>throw new ApiException(400... | ] localVarContentTypes = { "application/json", "text/json" }; |
314,436 | public int compareTo(alerts_by_trigger_and_time_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.valueOf(isSetMid()).compareTo(other.isSet... | this.end_ms, other.end_ms); |
1,761,180 | protected void handlePost(final HttpServletRequest req, final HttpServletResponse resp, final Session session) throws ServletException, IOException {<NEW_LINE>if (hasParam(req, "ajax")) {<NEW_LINE>handleAJAXAction(req, resp, session);<NEW_LINE>} else {<NEW_LINE>final HashMap<String, Object> ret = new HashMap<>();<NEW_L... | action = getParam(req, "action"); |
19,793 | public void init(FilterConfig config) throws ServletException {<NEW_LINE>mappings = WebSocketMappings.<MASK><NEW_LINE>String max = config.getInitParameter("idleTimeout");<NEW_LINE>if (max == null) {<NEW_LINE>max = config.getInitParameter("maxIdleTime");<NEW_LINE>if (max != null)<NEW_LINE>LOG.warn("'maxIdleTime' init pa... | ensureMappings(config.getServletContext()); |
166,958 | public void addInternalTriggers(Collection<ITriggerInternal> result, IStatementContainer container) {<NEW_LINE>Pipe<?> pipe = null;<NEW_LINE><MASK><NEW_LINE>if (tile instanceof TileGenericPipe) {<NEW_LINE>pipe = ((TileGenericPipe) tile).pipe;<NEW_LINE>}<NEW_LINE>if (pipe == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>... | TileEntity tile = container.getTile(); |
150,677 | public void init() throws SQLException {<NEW_LINE>//<NEW_LINE>InformationStorage informationStorage = this.appContext.getInstance(InformationStorage.class);<NEW_LINE>JdbcTemplate jdbcTemplate = null;<NEW_LINE>if (informationStorage != null) {<NEW_LINE>jdbcTemplate = new JdbcTemplate(Objects.requireNonNull(informationSt... | .getMetaData().getURL(); |
730,346 | public void consume(TransactionCapsule trx, TransactionTrace trace) throws ContractValidateException, AccountResourceInsufficientException, TooBigTransactionResultException {<NEW_LINE>List<Contract> contracts = trx.getInstance().getRawData().getContractList();<NEW_LINE>if (trx.getResultSerializedSize() > Constant.MAX_R... | bytesSize + "] and balance[" + fee + "] to create new account"); |
1,705,975 | private void markupIMTConflictTables(Program program, TaskMonitor monitor) throws Exception {<NEW_LINE>if (get_kSectionIMTConflictTables() == UNSUPPORTED_SECTION) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ArtImageSection section = sectionList.get(get_kSectionIMTConflictTables());<NEW_LINE>monitor.setMessage("ART - markup ... | int pointerSize = header.getPointerSize(); |
1,266,724 | private void received(Listener listener, String tools, String message) throws ParseException {<NEW_LINE>// System.out.println("RECEIVED: tools: '"+tools+"', message: '"+message+"'");<NEW_LINE>fireReceived(message);<NEW_LINE>LOG.log(Level.FINE, "RECEIVED: {0}, {1}", new Object[] { tools, message });<NEW_LINE>if (message... | response = JSONReader.getResponse(obj); |
654,908 | //<NEW_LINE>public static void handle(String stmt, ServerConnection c, int offset) {<NEW_LINE>String table = stmt.substring(offset).trim();<NEW_LINE>// int sqlType = ServerParse.parse(stmt) & 0xff;<NEW_LINE>String db = c.getSchema();<NEW_LINE>if (db == null) {<NEW_LINE>db = SchemaUtil.detectDefaultDb(stmt, ServerParse.... | ERR_HANDLE_DATA, e.toString()); |
1,552,058 | public void writeTo(StreamOutput out) throws IOException {<NEW_LINE>out.writeOptionalString(name);<NEW_LINE>out.writeBoolean(ignoreUnmapped);<NEW_LINE>out.writeVInt(from);<NEW_LINE>out.writeVInt(size);<NEW_LINE>out.writeBoolean(explain);<NEW_LINE>out.writeBoolean(version);<NEW_LINE>out.writeBoolean(seqNoAndPrimaryTerm)... | writeVInt(sorts.size()); |
663,538 | public io.kubernetes.client.proto.V1.EnvVarSource buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1.EnvVarSource result = new io.kubernetes.client.proto.V1.EnvVarSource(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x00000001)) {<... | .secretKeyRef_ = secretKeyRefBuilder_.build(); |
1,301,995 | public String nearestPalindromic(String n) {<NEW_LINE>if (n.length() >= 2 && allNine(n)) {<NEW_LINE>String s = "1";<NEW_LINE>for (int i = 0; i < n.length() - 1; i++) {<NEW_LINE>s += "0";<NEW_LINE>}<NEW_LINE>s += "1";<NEW_LINE>return s;<NEW_LINE>}<NEW_LINE>boolean isOdd = (n.length() % 2 != 0);<NEW_LINE>String left = n.... | -1, 0, +1 }; |
1,602,987 | protected Specification<COMMENT> buildSpecByQuery(@NonNull CommentQuery commentQuery) {<NEW_LINE>Assert.notNull(commentQuery, "Comment query must not be null");<NEW_LINE>return (root, query, criteriaBuilder) -> {<NEW_LINE>List<Predicate> predicates = new LinkedList<>();<NEW_LINE>if (commentQuery.getStatus() != null) {<... | .get("author"), likeCondition); |
1,292,600 | private AnAction createAction(String message, String optionName, Image icon, Image hoveredIcon, Image selectedIcon, AtomicBoolean state, Producer<Boolean> enableStateProvider) {<NEW_LINE>return new DumbAwareToggleAction(FindBundle.message(message), null, icon) {<NEW_LINE><NEW_LINE>{<NEW_LINE>getTemplatePresentation().s... | ALT_DOWN_MASK | CTRL_DOWN_MASK : ALT_DOWN_MASK))); |
1,111,906 | public void connect() throws IOException {<NEW_LINE>String str = url.toExternalForm();<NEW_LINE>int pos = str.indexOf("body=");<NEW_LINE>if (pos >= 0) {<NEW_LINE>str = str.substring(pos + 5);<NEW_LINE>byte[] bytes = str.getBytes(Constants.BYTE_ENCODING_CHARSET);<NEW_LINE>VuzeFile vf = VuzeFileHandler.getSingleton().loa... | ] components = vf.getComponents(); |
79,540 | /*<NEW_LINE>* Perform a For Comprehension over a State, accepting 3 generating function.<NEW_LINE>* This results in a four level nested internal iteration over the provided States.<NEW_LINE>*<NEW_LINE>* <pre><NEW_LINE>* {@code<NEW_LINE>*<NEW_LINE>* import static com.oath.cyclops.reactor.States.forEach4;<NEW_LINE>*<N... | value3.apply(in, ina); |
1,624,687 | private void queueEvents(TrackEntry entry, float animationTime) {<NEW_LINE>float animationStart = entry.animationStart, animationEnd = entry.animationEnd;<NEW_LINE>float duration = animationEnd - animationStart;<NEW_LINE>float trackLastWrapped = entry.trackLast % duration;<NEW_LINE>// Queue events before complete.<NEW_... | , n = this.events.size; |
890,960 | public GetDatabaseResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetDatabaseResult getDatabaseResult = new GetDatabaseResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | ().unmarshall(context)); |
1,511,644 | protected void handleReadResultForFenceRead(final ByteBuf entryBody, final ReadResponse.Builder readResponseBuilder, final long entryId, final Stopwatch startTimeSw) {<NEW_LINE>// reset last phase start time to measure fence result waiting time<NEW_LINE>lastPhaseStartTime.reset().start();<NEW_LINE>if (null != fenceThre... | readRequest.getEntryId(), t); |
218,585 | public Response.ResponseBuilder evaluatePreconditions(final Date lastModified, final EntityTag eTag) {<NEW_LINE>if (lastModified == null) {<NEW_LINE>throw new IllegalArgumentException(METHOD_PARAMETER_CANNOT_BE_NULL_LAST_MODIFIED);<NEW_LINE>}<NEW_LINE>if (eTag == null) {<NEW_LINE>throw new IllegalArgumentException(METH... | ifModifiedSinceHeader = getHeaderString(HttpHeaders.IF_MODIFIED_SINCE); |
211,397 | public void marshall(CreateLocationSmbRequest createLocationSmbRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createLocationSmbRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createLocati... | createLocationSmbRequest.getUser(), USER_BINDING); |
1,651,978 | private JPanel buildRepositoryInfoPanel() {<NEW_LINE>String serverName = "";<NEW_LINE>ServerInfo info = null;<NEW_LINE>String repositoryName = "";<NEW_LINE>String portNumberStr = "";<NEW_LINE>boolean isConnected = false;<NEW_LINE>if (repository != null) {<NEW_LINE>info = repository.getServerInfo();<NEW_LINE>serverName ... | new PairLayout(5, 10)); |
1,676,325 | public String[] findRelativeRanks(int[] nums) {<NEW_LINE>int[] tmp = new int[nums.length];<NEW_LINE>for (int i = 0; i < nums.length; i++) {<NEW_LINE>tmp[i] = nums[i];<NEW_LINE>}<NEW_LINE>Arrays.sort(tmp);<NEW_LINE>Map<Integer, String> rankMap = new HashMap();<NEW_LINE>int len = nums.length;<NEW_LINE>for (int i = len - ... | .get(nums[i]); |
1,585,799 | protected boolean matchesAnnotation(Annotation annotation, LiveConditional liveConditional) {<NEW_LINE>// First check that the annotation matches the live conditional annotation<NEW_LINE>String annotationName = annotation.resolveTypeBinding().getName();<NEW_LINE>if (!liveConditional.getMessage().contains(annotationName... | .resolveBinding().getName(); |
1,094,764 | final DescribeReservedCacheNodesResult executeDescribeReservedCacheNodes(DescribeReservedCacheNodesRequest describeReservedCacheNodesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeReservedCacheNodesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | DescribeReservedCacheNodesResult>(new DescribeReservedCacheNodesResultStaxUnmarshaller()); |
108,160 | public static void addModule(VirtualFile appRoot, String name, File path) {<NEW_LINE>VirtualFile root = VirtualFile.open(path);<NEW_LINE>modules.put(name, root);<NEW_LINE>if (root.child("app").exists()) {<NEW_LINE>javaPath.add(root.child("app"));<NEW_LINE>}<NEW_LINE>if (root.child("app/views").exists() || (usePrecompil... | , root.child("conf/routes")); |
1,368,646 | public void readEntries(long ledgerID, long firstEntryID, long lastEntryID, BiConsumer<Integer, ArrayList<byte[]>> cb) {<NEW_LINE>client.asyncOpenLedgerNoRecovery(ledgerID, BookKeeper.DigestType.CRC32, new byte[0], (rc, lh, ctx) -> {<NEW_LINE>if (rc != 0) {<NEW_LINE>cb.accept(rc, null);<NEW_LINE>return;<NEW_LINE>}<NEW_... | "Read cb %d -> %d on ledger %d%n", firstEntryID, lastEntryID, ledgerID); |
1,163,573 | private ResultPoint correctTopRight(ResultPoint[] points) {<NEW_LINE>// A..D<NEW_LINE>// | :<NEW_LINE>// B--C<NEW_LINE>ResultPoint pointA = points[0];<NEW_LINE>ResultPoint pointB = points[1];<NEW_LINE>ResultPoint pointC = points[2];<NEW_LINE>ResultPoint pointD = points[3];<NEW_LINE>// shift points for safe transition ... | (trRight + 1) * 4); |
270,505 | public static void main1(String[] args) throws IOException {<NEW_LINE>Cmd cmd = MainUtils.parseArguments(args, ALL_FLAGS);<NEW_LINE>if (cmd.args.length < 3) {<NEW_LINE>System.out.println("A utility to tweak MPEG TS timestamps.");<NEW_LINE>MainUtils.printHelp(ALL_FLAGS, Arrays.asList("command"<MASK><NEW_LINE>System.out.... | , "arg", "in name", "?out file")); |
838,101 | public void lower(NewInstanceNode newInstanceNode, HotSpotRegistersProvider registers, LoweringTool tool) {<NEW_LINE>StructuredGraph graph = newInstanceNode.graph();<NEW_LINE>HotSpotResolvedObjectType type = (HotSpotResolvedObjectType) newInstanceNode.instanceClass();<NEW_LINE>assert !type.isArray();<NEW_LINE>ConstantN... | graph, newInstanceNode, template, args); |
791,144 | private final boolean isSeenState(final TLCState curState, final TLCState succState, final Action action, final Worker worker, final SetOfStates liveNextStates) throws IOException {<NEW_LINE>final <MASK><NEW_LINE>final boolean seen = this.theFPSet.put(fp);<NEW_LINE>// Write out succState when needed:<NEW_LINE>this.allS... | long fp = succState.fingerPrint(); |
1,087,254 | private boolean isValidSysTopicConf(TopicDeployEntity deployEntity, StringBuilder strBuff, ProcessResult result) {<NEW_LINE>if (!TServerConstants.OFFSET_HISTORY_NAME.equals(deployEntity.getTopicName())) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (deployEntity.getNumTopicStores() != TServerConstants.OFFSET_HISTORY_N... | (") cannot be changed!").toString()); |
980,105 | public List<ConfigChangeAction> validate(VespaModel model, ValidationParameters validationParameters, DeployState deployState) {<NEW_LINE>if (validationParameters.checkRouting()) {<NEW_LINE>new RoutingValidator().validate(model, deployState);<NEW_LINE>new RoutingSelectorValidator().validate(model, deployState);<NEW_LIN... | ).validate(model, deployState); |
449,659 | public void show() {<NEW_LINE>if (headLine == null)<NEW_LINE>headLine = Res.get("setXMRTxKeyWindow.headline");<NEW_LINE>width = 868;<NEW_LINE>createGridPane();<NEW_LINE>addHeadLine();<NEW_LINE>addContent();<NEW_LINE>addButtons();<NEW_LINE>regexValidator = new RegexValidator();<NEW_LINE>regexValidator.setPattern("[a-fA-... | String txKey = txKeyInputTextField.getText(); |
571,278 | private static Properties loadProfiles() {<NEW_LINE>Properties systemDefaults;<NEW_LINE>try {<NEW_LINE>systemDefaults = SystemUtil.loadProperties(ColorSpaces.class, "com/twelvemonkeys/imageio/color/icc_profiles_" + Platform.<MASK><NEW_LINE>} catch (@SuppressWarnings("CatchMayIgnoreException") SecurityException | IOExce... | os().id()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.