idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,762,199 | private String unsuan(String s) {<NEW_LINE>final String su = baseUrl.replace("http://", "");<NEW_LINE>boolean b = false;<NEW_LINE>for (int i = 0; i < sw.split("|").length; i++) {<NEW_LINE>if (su.indexOf(sw.split("|")[i]) > -1) {<NEW_LINE>b = true;<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (!b)<NEW_LINE>return "... | , Integer.toString(i)); |
790,716 | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {<NEW_LINE>int topOffset = 0;<NEW_LINE>// TODO - other option is to let the painting of the dark border to the inner component and make this border's insets smaller.<NEW_LINE>if (c instanceof JComponent) {<NEW_LINE>JComponent jc = (JC... | 0, 0, height - 1); |
1,662,206 | public void onAttach(@NonNull Context context) {<NEW_LINE>super.onAttach(context);<NEW_LINE>mOnBackPressedDispatcher = requireActivity().getOnBackPressedDispatcher();<NEW_LINE>mOnBackPressedDispatcher.addCallback(this, mOnBackPressedCallback);<NEW_LINE>registerEffect(this, new QMUIFragmentResultEffectHandler() {<NEW_LI... | ), effect.getIntent()); |
1,442,100 | public ApiScenarioWithBLOBs buildSaveScenario(SaveApiScenarioRequest request) {<NEW_LINE>ApiScenarioWithBLOBs scenario = new ApiScenarioWithBLOBs();<NEW_LINE>scenario.setId(request.getId());<NEW_LINE>scenario.setName(request.getName());<NEW_LINE>scenario.setProjectId(request.getProjectId());<NEW_LINE>scenario.setCustom... | setTags(request.getTags()); |
430,380 | private static void installNotificationListHooks(ClassLoader classLoader) {<NEW_LINE>XLog.i("NotificationManagerServiceHooks.installNotificationListHooks");<NEW_LINE>try {<NEW_LINE>new LocalServices(classLoader).getService(NMSHelper.INSTANCE.nmsClass(classLoader)).ifPresent(new Consumer<Object>() {<NEW_LINE><NEW_LINE>@... | XLog.i("NotificationManagerServiceHooks.installNotificationListHooks service: %s", service); |
1,510,217 | public String encodeInt16AsCharEscape(int v) {<NEW_LINE>if (v < Character.MIN_VALUE || v > Character.MAX_VALUE) {<NEW_LINE>throw new IllegalArgumentException(String.format("Cannot encode the specified value: %d", v));<NEW_LINE>}<NEW_LINE>if (isATNSerializedAsInts()) {<NEW_LINE>return Integer.toString(v);<NEW_LINE>}<NEW... | getTargetCharValueEscape().get(c); |
469,163 | public static Class _TextItemBuilder() {<NEW_LINE>Class tmp;<NEW_LINE>Class mTextItemBuilder = load("com/tencent/mobileqq/activity/aio/item/TextItemBuilder");<NEW_LINE>if (mTextItemBuilder == null) {<NEW_LINE>try {<NEW_LINE>tmp = load("com/tencent/mobileqq/activity/aio/item/TextItemBuilder$10");<NEW_LINE>mTextItemBuild... | getDeclaredField("this$0").getType(); |
1,476,359 | public boolean next() throws SQLException {<NEW_LINE>if (isClosed()) {<NEW_LINE>throw TSDBError.createSQLException(TSDBErrorNumbers.ERROR_RESULTSET_CLOSED);<NEW_LINE>}<NEW_LINE>if (this.forward()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Request request = factory.generateFetch(queryId);<NEW_LINE>CompletableFuture<Re... | .numOfRows = fetchResp.getRows(); |
434,104 | final T call(Log log) {<NEW_LINE>long nodeCount = dimensions.hugeNodeCount();<NEW_LINE>final ImportSizing sizing = ImportSizing.of(concurrency, nodeCount);<NEW_LINE>int numberOfThreads = sizing.numberOfThreads();<NEW_LINE>AbstractStorePageCacheScanner<Record> scanner = new AbstractStorePageCacheScanner<>(DEFAULT_PREFET... | divide(bigNanos).longValueExact(); |
1,217,496 | private void changeSettings(JsonObject jsonchange) {<NEW_LINE>String jsoncmd = jsonchange.toString();<NEW_LINE>logger.trace("air-Q - airqHandler - changeSettings(): called with jsoncmd={}", jsoncmd);<NEW_LINE>Result res = null;<NEW_LINE>String url = "http://" + config.ipAddress + "/config";<NEW_LINE>String jsonbody = e... | getBody(), JsonElement.class); |
1,355,489 | public static void drawNumbers(Graphics2D g2, List<PointIndex2D_F64> points, @Nullable Point2Transform2_F32 transform, double scale) {<NEW_LINE>Font regular = new Font("Serif", Font.PLAIN, 16);<NEW_LINE>g2.setFont(regular);<NEW_LINE>Point2D_F32 adj = new Point2D_F32();<NEW_LINE>AffineTransform origTran = g2.getTransfor... | text, x, y + 1); |
1,217,038 | private Point2D pickNodeXYPlane(Node node, double x, double y) {<NEW_LINE>final PickRay ray = computePickRay(x, y, null);<NEW_LINE>final Affine3D localToScene = new Affine3D();<NEW_LINE>TransformHelper.apply(node.getLocalToSceneTransform(), localToScene);<NEW_LINE>final Vec3d o = ray.getOriginNoClone();<NEW_LINE>final ... | -o.z / d.z; |
849,982 | public static void assertDirectoriesEqual(VirtualFile dirAfter, VirtualFile dirBefore, @Nullable VirtualFileFilter fileFilter) throws IOException {<NEW_LINE>FileDocumentManager.getInstance().saveAllDocuments();<NEW_LINE>VirtualFile[] childrenAfter = dirAfter.getChildren();<NEW_LINE>if (dirAfter.isInLocalFileSystem()) {... | assertDirectoriesEqual(fileAfter, fileBefore, fileFilter); |
306,175 | public void initializeState(StateInitializationContext context) throws Exception {<NEW_LINE>super.initializeState(context);<NEW_LINE>this.flinkJobId = getContainingTask().getEnvironment().getJobID().toString();<NEW_LINE>// Open the table loader and load the table.<NEW_LINE>this.tableLoader.open();<NEW_LINE>this.table =... | flinkJobId, operatorUniqueId, subTaskId, attemptId); |
991,399 | public void expectLater(final int tick) {<NEW_LINE>final Thread targetThread = Thread.currentThread();<NEW_LINE>LOGGER.debug("Thread {} expecting tick {}", targetThread, tick);<NEW_LINE>start(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>Thread.sleep(500L);<NEW_LINE>... | ("Cannot wait for %s, as clock is currently at %s.", clockTick, currentTick)); |
1,552,808 | public synchronized Mono<Lease> addOrUpdateLease(final Lease lease) {<NEW_LINE>WorkerTask workerTask = this.currentlyOwnedPartitions.get(lease.getLeaseToken());<NEW_LINE>if (workerTask != null && workerTask.isRunning()) {<NEW_LINE>return this.leaseManager.updateProperties(lease).map(updatedLease -> {<NEW_LINE>logger.de... | "Partition {}: updated.", updatedLease.getLeaseToken()); |
1,384,101 | public HKerberosThriftClient open() {<NEW_LINE>if (isOpen()) {<NEW_LINE>throw new IllegalStateException("Open called on already open connection. You should not have gotten here.");<NEW_LINE>}<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Creating a new thrift connection to {}", cassandraHost);<NEW_LINE>}<NEW... | throw new HectorTransportException("Could not set SO_KEEPALIVE on socket: ", se); |
1,610,138 | // Visible for testing<NEW_LINE>byte[] DERToJOSE(byte[] derSignature) throws SignatureException {<NEW_LINE>// DER Structure: http://crypto.stackexchange.com/a/1797<NEW_LINE>boolean derEncoded = derSignature[0] == 0x30 && derSignature.length != ecNumberSize * 2;<NEW_LINE>if (!derEncoded) {<NEW_LINE>throw new SignatureEx... | .min(spadding, 0)); |
442,814 | private List<LayerDeclaration> createDeclarations(AmidstSettings settings, List<Integer> enabledLayers) {<NEW_LINE>LayerDeclaration[] declarations = new LayerDeclaration[LayerIds.NUMBER_OF_LAYERS];<NEW_LINE>// @formatter:off<NEW_LINE>declare(settings, declarations, enabledLayers, LayerIds.ALPHA, null, false, Setting.cr... | null, false, settings.showPlayers); |
1,349,320 | private boolean skipFunctionBody(final ParserContextFunctionNode functionNode) {<NEW_LINE>if (reparsedFunction == null) {<NEW_LINE>// Not reparsing, so don't skip any function body.<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// Skip to the RBRACE of this function, and continue parsing from there.<NEW_LINE>final Recompi... | (ParserState) data.getEndParserState(); |
1,209,930 | public static GetNotificationConfigResponse unmarshall(GetNotificationConfigResponse getNotificationConfigResponse, UnmarshallerContext context) {<NEW_LINE>getNotificationConfigResponse.setRequestId<MASK><NEW_LINE>getNotificationConfigResponse.setSuccess(context.booleanValue("GetNotificationConfigResponse.Success"));<N... | (context.stringValue("GetNotificationConfigResponse.RequestId")); |
1,739,372 | public void updateChangelog() {<NEW_LINE>final boolean objectChangelog = Settings.ChangelogEnabled.getValue();<NEW_LINE>final boolean userChangelog = Settings.UserChangelogEnabled.getValue();<NEW_LINE>if (doUpateChangelogIfEnabled && (objectChangelog || userChangelog)) {<NEW_LINE>final long t0 = System.currentTimeMilli... | file, newLog, "utf-8", true); |
110,079 | private static ConstructingObjectParser<AnalysisConfig.Builder, Void> createParser(boolean ignoreUnknownFields) {<NEW_LINE>ConstructingObjectParser<AnalysisConfig.Builder, Void> parser = new ConstructingObjectParser<>(ANALYSIS_CONFIG.getPreferredName(), ignoreUnknownFields, a -> new AnalysisConfig.Builder((List<Detecto... | getPreferredName())), LATENCY); |
612,882 | private void queueWriteRequest() {<NEW_LINE>// non-contiguous write<NEW_LINE>// signal write ready<NEW_LINE>LockToken readRangeLockToken = null;<NEW_LINE>try {<NEW_LINE>readRangeLockToken = _lockProvider.acquireReaderLock(_batchStartOffset, _batchNextOffset, _eventBuffer.getBufferPositionParser(), "EventLogWriter.queue... | addRange = _contiguousRanges.offer(readRangeLockToken); |
646,268 | public static void toJson(PoolOptions obj, java.util.Map<String, Object> json) {<NEW_LINE>json.put("connectionTimeout", obj.getConnectionTimeout());<NEW_LINE>if (obj.getConnectionTimeoutUnit() != null) {<NEW_LINE>json.put("connectionTimeoutUnit", obj.getConnectionTimeoutUnit().name());<NEW_LINE>}<NEW_LINE>json.put("eve... | "shared", obj.isShared()); |
509,566 | public void save(int rowIndex) {<NEW_LINE>List<String> errorColumnIds = null;<NEW_LINE>String errorMessage = null;<NEW_LINE>boolean success = false;<NEW_LINE>try {<NEW_LINE>saveEditor();<NEW_LINE>success = true;<NEW_LINE>} catch (CommitException e) {<NEW_LINE>try {<NEW_LINE>CommitErrorEvent event = new CommitErrorEvent... | confirmSave(success, errorMessage, errorColumnIds); |
278,166 | public static void parse(String jsonString, JsonConsumer consumer) {<NEW_LINE>char[] chars = jsonString.toCharArray();<NEW_LINE>Deque<State> state = new ArrayDeque<>();<NEW_LINE>state.push(State.ANY);<NEW_LINE>int position = 0;<NEW_LINE>while (!state.isEmpty()) {<NEW_LINE>State current = state.pop();<NEW_LINE>position ... | chars, position, consumer, state); |
1,583,745 | final PutAppsListResult executePutAppsList(PutAppsListRequest putAppsListRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putAppsListRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | invoke(request, responseHandler, executionContext); |
1,787,832 | public static Vector apply(LongLongVector v1, LongDummyVector v2, Binary op) {<NEW_LINE>if (v1.isSparse()) {<NEW_LINE>if (op.isKeepStorage()) {<NEW_LINE>throw new AngelException("operation is not support!");<NEW_LINE>} else {<NEW_LINE>// multi-rehash<NEW_LINE>LongLongVectorStorage newStorage = v1.getStorage().emptySpar... | v2.get(i))); |
1,533,193 | public ApplicationSource unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ApplicationSource applicationSource = new ApplicationSource();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | )).unmarshall(context)); |
502,816 | private void stateChanged() {<NEW_LINE>// NOI18N<NEW_LINE>LOGGER.log(Level.FINE, "Updating the lookup content");<NEW_LINE>Set servers = new HashSet(ServerRegistry.getInstance().getServers());<NEW_LINE>synchronized (LOCK) {<NEW_LINE>for (Iterator<Map.Entry<Server, T>> it = serversMap.entrySet().iterator(); it.hasNext();... | serversMap.put(server, instance); |
327,773 | public void run(final JobExecutionContext jobContext) throws JobExecutionException {<NEW_LINE>final Permissionable permissionable;<NEW_LINE>final Trigger trigger = jobContext.getTrigger();<NEW_LINE>final Map<String, Serializable> map = getExecutionData(trigger, CascadePermissionsJob.class);<NEW_LINE>final String permis... | String) map.get("permissionableId"); |
9,039 | public void testContextInfoWildCardNoMatch() throws Exception {<NEW_LINE>CommonTasks.writeLogMsg(Level.INFO, "**** >>>>> server configuration thresholds for - <global - slow : 120s , hung : 120s> <timing - Slow : 5s , hung : 10s>");<NEW_LINE>server.setServerConfigurationFile("contextInfoPattern/server_timing_5.xml");<N... | writeLogMsg(Level.INFO, "**** >>>>> server configuration thresholds for - <global - slow : 5s , hung : 10s> <timing - Slow : 120s , hung : 120s>"); |
607,479 | public static void generateApplicationElbFiles(Map<String, List<LoadBalancerVH>> elbMap) throws IOException {<NEW_LINE>String fieldNames;<NEW_LINE>String keys;<NEW_LINE>fieldNames = "lb.LoadBalancerArn`lb.DNSName`lb.CanonicalHostedZoneID`lb.CreatedTime`lb.LoadBalancerName`lb.Scheme`lb.VPCId`AvailabilityZones`lb.type`su... | elbMap, fieldNames, "aws-appelb-tags.data", keys); |
1,843,797 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>ImportModel model = bu... | getQuery(), Query.class); |
1,122,453 | public InsertTabletPlan generateInsertTabletPlan() throws IllegalPathException {<NEW_LINE>List<String> <MASK><NEW_LINE>int countOfNonEmptyColumns = 0;<NEW_LINE>for (int i = 0; i < columns.length; ++i) {<NEW_LINE>if (columns[i] == null) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>nonEmptyColumnNames.add(targetMeasurementId... | nonEmptyColumnNames = new ArrayList<>(); |
592,434 | public boolean entityTypesAgree(Mention m, Dictionaries dict, boolean strict) {<NEW_LINE>if (strict) {<NEW_LINE>return nerString.equals(m.nerString);<NEW_LINE>} else {<NEW_LINE>if (isPronominal()) {<NEW_LINE>if (nerString.contains("-") || m.nerString.contains("-")) {<NEW_LINE>// for ACE with gold NE<NEW_LINE>if (m.nerS... | dict.moneyPercentNumberPronouns.contains(headString); |
1,612,124 | private void acceptCommand(final TypedRecord<JobRecord> command, final CommandControl<JobRecord> commandControl) {<NEW_LINE>final long jobKey = command.getKey();<NEW_LINE>final JobRecord job = jobState.getJob(jobKey);<NEW_LINE>job.setErrorCode(command.getValue().getErrorCodeBuffer());<NEW_LINE>job.setErrorMessage(comma... | accept(JobIntent.ERROR_THROWN, job); |
1,700,069 | public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.ExtendableMessage<com.google.transit.realtime.GtfsRealtime.FeedEntity>.ExtensionWriter extensionWriter = newExtensionWriter();<NEW_LINE>if (((bitField0_ & 0x00000001) != 0)) {<N... | output.writeBool(2, isDeleted_); |
754,517 | // createInvoiceLine<NEW_LINE>// metas<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>private int addPayments(MDunningLevel level) {<NEW_LINE>String sql = // ##1<NEW_LINE>"SELECT C_Payment_ID, C_Currency_ID, PayAmt," + " paymentAvailable(C_Payment_ID), C_BPartner_ID " + "FROM C_Payment_v p " + "WHERE AD_Client_ID=?" + "... | pstmt.setInt(3, p_C_BPartner_ID); |
1,588,687 | final CreateRuleResult executeCreateRule(CreateRuleRequest createRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
693,481 | public void run() {<NEW_LINE>try {<NEW_LINE>Files.walkFileTree(root, new FileVisitor<Path>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {<NEW_LINE>return FileVisitResult.CONTINUE;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LI... | relativize(file).toString(); |
1,259,853 | static void fromJSON(final JSONObject json) {<NEW_LINE>if (json != null) {<NEW_LINE>UserData.name = json.optString(NAME_KEY, null);<NEW_LINE>UserData.username = json.optString(USERNAME_KEY, null);<NEW_LINE>UserData.email = json.optString(EMAIL_KEY, null);<NEW_LINE>UserData.org = json.optString(ORG_KEY, null);<NEW_LINE>... | String key = nameItr.next(); |
1,333,267 | public static TaobaoFilmGetSchedulesResponse unmarshall(TaobaoFilmGetSchedulesResponse taobaoFilmGetSchedulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>taobaoFilmGetSchedulesResponse.setRequestId(_ctx.stringValue("TaobaoFilmGetSchedulesResponse.RequestId"));<NEW_LINE>taobaoFilmGetSchedulesResponse.setErrorCode(_ctx... | ("TaobaoFilmGetSchedulesResponse.Schedules[" + i + "].HallId")); |
1,818,084 | private boolean checkSelfIntersections_() {<NEW_LINE>MultiPathImpl multiPathImpl = (MultiPathImpl) m_geometry._getImpl();<NEW_LINE>m_edges.clear();<NEW_LINE>// we reuse the edges while going through a<NEW_LINE>m_edges.ensureCapacity(20);<NEW_LINE>// polygon.<NEW_LINE>m_lineEdgesRecycle.clear();<NEW_LINE>// we reuse the... | m_xy.read(2 * xyindex); |
1,785,920 | public void process(JCas jcas) throws AnalysisEngineProcessException {<NEW_LINE>Collection<Integer> visitedIDs = new TreeSet<Integer>();<NEW_LINE>results = new ArrayList<>();<NEW_LINE>i = 0;<NEW_LINE>Map<Integer, Concept> concepts = new HashMap<>();<NEW_LINE>SolrDocumentList documents;<NEW_LINE>int i;<NEW_LINE>try {<NE... | concept.getPageID(), concept); |
553,961 | final PurchaseReservedElasticsearchInstanceOfferingResult executePurchaseReservedElasticsearchInstanceOffering(PurchaseReservedElasticsearchInstanceOfferingRequest purchaseReservedElasticsearchInstanceOfferingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(purchaseReservedElasticsearchIns... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,381,926 | private void showFilter(final NotificationFilter filter) {<NEW_LINE>if (null == filter) {<NEW_LINE>txtFilterName.setText(null);<NEW_LINE>pnlCateogories.removeAll();<NEW_LINE>pnlCateogories.add(new CateogoriesPanel(null), BorderLayout.CENTER);<NEW_LINE>} else {<NEW_LINE>CategoryFilter categoryFilter = filter.getCategory... | cPanel.addPropertyChangeListener(PROP_VALUE_VALID, this); |
181,401 | protected void process() {<NEW_LINE>AccountingBatch accountingBatch = batch.getAccountingBatch();<NEW_LINE>List<String> filterList = new ArrayList<>();<NEW_LINE>List<Pair<String, Object>> bindingList = new ArrayList<>();<NEW_LINE>filterList.add("self.operationTypeSelect = :operationTypeSelect");<NEW_LINE>bindingList.ad... | ) accountingBatch.getPaymentMode())); |
273,521 | public void registerRenderers(Map<Class<? extends HeapViewerNode>, HeapViewerRenderer> renderers, HeapContext context) {<NEW_LINE>Heap heap = context.getFragment().getHeap();<NEW_LINE>// packages<NEW_LINE>PackageNodeRenderer packageRenderer = new PackageNodeRenderer(heap);<NEW_LINE>renderers.put(ClassesContainer.Object... | ClassesContainer.ContainerNodes.class, packageRenderer); |
284,014 | public static GetAsyncErrorRequestListByCodeResponse unmarshall(GetAsyncErrorRequestListByCodeResponse getAsyncErrorRequestListByCodeResponse, UnmarshallerContext _ctx) {<NEW_LINE>getAsyncErrorRequestListByCodeResponse.setRequestId(_ctx.stringValue("GetAsyncErrorRequestListByCodeResponse.RequestId"));<NEW_LINE>getAsync... | (_ctx.longValue("GetAsyncErrorRequestListByCodeResponse.Data.timestamp")); |
1,673,529 | public static ListCalcEnginesResponse unmarshall(ListCalcEnginesResponse listCalcEnginesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCalcEnginesResponse.setRequestId(_ctx.stringValue("ListCalcEnginesResponse.RequestId"));<NEW_LINE>listCalcEnginesResponse.setHttpStatusCode(_ctx.integerValue("ListCalcEnginesRespons... | (_ctx.integerValue("ListCalcEnginesResponse.Data.PageNumber")); |
1,228,050 | static void generateEigrpPolicy(@Nonnull Configuration c, @Nonnull CiscoNxosConfiguration vsConfig, @Nullable DistributeList distributeList, @Nonnull String name) {<NEW_LINE>RoutingPolicy.Builder routingPolicy = RoutingPolicy.builder().setOwner(c).setName(name);<NEW_LINE>ImmutableList.Builder<Statement> statements = Im... | .getFilterType() == DistributeListFilterType.PREFIX_LIST; |
1,452,372 | private void drawArc(SVGPath path, double[] cent, double[] pre, double[] nex, double[] oPrev, double[] oNext, double scale) {<NEW_LINE>// Delta vectors<NEW_LINE>final double[] rPrev = minus(pre, cent);<NEW_LINE>final double[] rNext = minus(nex, cent);<NEW_LINE>final double[] rPrNe = minus(pre, nex);<NEW_LINE>// Scaled ... | 0], sNext[1]); |
1,287,009 | public void marshall(UpdateAssetModelRequest updateAssetModelRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateAssetModelRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE... | updateAssetModelRequest.getAssetModelId(), ASSETMODELID_BINDING); |
880,974 | final PutKMSEncryptionKeyResult executePutKMSEncryptionKey(PutKMSEncryptionKeyRequest putKMSEncryptionKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putKMSEncryptionKeyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | invoke(request, responseHandler, executionContext); |
620,579 | public List<MethodCall<Object>> createMethodCallListToBeParsedFromBody(final String addressPrefix, final Object body, final Request<Object> originatingRequest) {<NEW_LINE>List<MethodCall<Object>> methodCalls;<NEW_LINE>if (body != null) {<NEW_LINE>methodCalls = parserRef.get().parseMethodCalls(addressPrefix, body.toStri... | WebSocketSender sender = webSocketMessage.getSender(); |
479,434 | private Mono<Response<Flux<ByteBuffer>>> deleteMongoDBCollectionWithResponseAsync(String resourceGroupName, String accountName, String databaseName, String collectionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.... | error(new IllegalArgumentException("Parameter databaseName is required and cannot be null.")); |
850,740 | private static void pointAddVar(boolean negate, PointExt p, PointExt q, PointExt r) {<NEW_LINE>int[<MASK><NEW_LINE>int[] b = F.create();<NEW_LINE>int[] c = F.create();<NEW_LINE>int[] d = F.create();<NEW_LINE>int[] e = F.create();<NEW_LINE>int[] f = F.create();<NEW_LINE>int[] g = F.create();<NEW_LINE>int[] h = F.create(... | ] a = F.create(); |
213,070 | private float testAo(VectorM3f vertex, Direction dir) {<NEW_LINE><MASK><NEW_LINE>int occluding = 0;<NEW_LINE>int x = 0;<NEW_LINE>if (vertex.x == 16) {<NEW_LINE>x = 1;<NEW_LINE>} else if (vertex.x == 0) {<NEW_LINE>x = -1;<NEW_LINE>}<NEW_LINE>int y = 0;<NEW_LINE>if (vertex.y == 16) {<NEW_LINE>y = 1;<NEW_LINE>} else if (v... | Vector3i dirVec = dir.toVector(); |
81,504 | public boolean append(final DirectBuffer srcBuffer, final int srcOffset, final int srcLength) {<NEW_LINE>final int headOffset = (int) head & mask;<NEW_LINE>final int <MASK><NEW_LINE>final int alignedLength = BitUtil.align(HEADER_LENGTH + srcLength, HEADER_ALIGNMENT);<NEW_LINE>final int totalRemaining = capacity - (int)... | tailOffset = (int) tail & mask; |
581,061 | private Object convertMessageParamToString(final Object param, final ReplaceAfterFormatCollector replaceAfterFormatCollector) {<NEW_LINE>if (param == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final TableRecordReference record = toTableRecordReferenceOrNull(param);<NEW_LINE>if (record != null) {<NEW_LINE>if (htm... | addAndGetKey(link.toString()); |
1,457,488 | public static Intent createStartIntent(Activity parent, NvApp app, ComputerDetails computer, ComputerManagerService.ComputerManagerBinder managerBinder) {<NEW_LINE>Intent intent = new Intent(parent, Game.class);<NEW_LINE>intent.putExtra(Game.EXTRA_HOST, getCurrentAddressFromComputer(computer));<NEW_LINE>intent.putExtra... | Game.EXTRA_PC_NAME, computer.name); |
77,686 | public void addTypeDefinition(@NotNull SDLDefinition<?> definition) {<NEW_LINE>GraphQLCompositeDefinition<?> builder = getCompositeDefinition(definition);<NEW_LINE>if (builder == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (builder instanceof GraphQLDirectiveTypeCompositeDefinition) {<NEW_LINE>((GraphQLDirectiveTyp... | (definition, InterfaceTypeDefinition.class)); |
152,205 | private static FunctionSignature.WithValues<Object, SkylarkType> createSignature(ImmutableMap<String, Attribute<?>> parameters, Location location) throws EvalException {<NEW_LINE>Preconditions.checkState(!parameters.isEmpty());<NEW_LINE>int mandatory = 0;<NEW_LINE>String[] names = new String[parameters.size()];<NEW_LIN... | create(signature, defaultValues, null); |
1,767,649 | public NameEnvironmentAnswer findClass(char[] typeName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly) {<NEW_LINE>if (!isPackage(qualifiedPackageName, moduleName))<NEW_LINE>// most common case<NEW_LINE>return null;<NEW_LINE>try {<NEW_LINE>ClassFileReader reader = n... | qualifiedBinaryFileName.replace(".class", ".sig"); |
1,414,918 | final DescribeStreamResult executeDescribeStream(DescribeStreamRequest describeStreamRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeStreamRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
672,108 | private void decodeSub4x8(MBlock mBlock, int partNo, Picture[] references, int offX, int offY, int tl, int t0, int t1, int tr, int l0, boolean tlAvb, boolean tAvb, boolean trAvb, boolean lAvb, MvList x, int i00, int i01, int i10, int i11, int refIdx, Picture mb, int off, int list) {<NEW_LINE>int mvpX1 = calcMVPredictio... | tAvb, tlAvb, refIdx, 0); |
656,772 | public static void bufferedToInterleaved(BufferedImage src, InterleavedF32 dst) {<NEW_LINE>final <MASK><NEW_LINE>final int height = src.getHeight();<NEW_LINE>if (dst.getNumBands() == 3) {<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, height, y -> {<NEW_LINE>for (int y = 0; y < height; y++) {<NEW_LINE>int inde... | int width = src.getWidth(); |
1,623,597 | private static void copyRowsToClipboard(TreeViewer viewer, Tree tree) {<NEW_LINE>int columnCount = tree.getColumnCount();<NEW_LINE>int[] columnOrder = tree.getColumnOrder();<NEW_LINE>SharesLabelProvider[] labelProvider = getSharesLabelProvider(viewer, columnCount);<NEW_LINE>StringBuilder result = new StringBuilder();<N... | ((char) SWT.TAB); |
1,207,073 | public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "bgela");<NEW_LINE>Long baseOffset = instruction.... | getChildren().get(0); |
1,587,344 | public static void drawChessboard(Graphics2D g2, WorldToCameraToPixel fiducialToPixel, int numRows, int numCols, double squareWidth) {<NEW_LINE>Point3D_F64 fidPt = new Point3D_F64();<NEW_LINE>Point2D_F64 pixel0 = new Point2D_F64();<NEW_LINE>Point2D_F64 pixel1 = new Point2D_F64();<NEW_LINE>Point2D_F64 pixel2 = new Point... | fiducialToPixel.transform(fidPt, pixel2); |
409,029 | public void actionPerformed(AnActionEvent e) {<NEW_LINE>final LayoutTreeComponent treeComponent = myArtifactEditor.getLayoutTreeComponent();<NEW_LINE>final LayoutTreeSelection selection = treeComponent.getSelection();<NEW_LINE>final CompositePackagingElement<?> parent = selection.getCommonParentElement();<NEW_LINE>if (... | getProject()).getCompositeElementTypes(); |
1,841,722 | private static void copy(FhirContext theCtx, IGenericClient theTarget, String theResType, List<IBaseResource> theQueued, Set<String> theSent, Bundle theReceived) {<NEW_LINE>for (Bundle.BundleEntryComponent nextEntry : theReceived.getEntry()) {<NEW_LINE>Resource nextResource = nextEntry.getResource();<NEW_LINE>nextResou... | .getResourceReference().getReferenceElement(); |
240,693 | public void rename(final ConnectorRequestContext context, final QualifiedName oldName, final QualifiedName newName) {<NEW_LINE>// check exists then rename in non-transactional optimistic manner<NEW_LINE>if (exists(context, newName)) {<NEW_LINE>throw new TableAlreadyExistsException(newName);<NEW_LINE>}<NEW_LINE>try {<NE... | throw new InvalidMetaException(oldName, exception); |
290,945 | private void readComponentProperties(@NotNull final ComponentStyle style, @NotNull final Map<String, Object> componentProperties, @NotNull final HierarchicalStreamReader reader, @NotNull final UnmarshallingContext context, @NotNull final ComponentDescriptor descriptor) {<NEW_LINE>Class<? extends JComponent> componentTy... | String basic = componentType.getCanonicalName(); |
1,438,280 | private void reportDeploymentMetrics() {<NEW_LINE>ApplicationList applications = ApplicationList.from(controller().applications().readable()).withProductionDeployment();<NEW_LINE>DeploymentStatusList deployments = controller().jobController().deploymentStatuses(applications);<NEW_LINE>metric.set(DEPLOYMENT_FAIL_METRIC,... | createContext(dimensions(instance))); |
18,238 | public synchronized File[] unmountBestMatch(final float maxq, long maxResultSize) {<NEW_LINE>if (this.blobs.size() < 2)<NEW_LINE>return null;<NEW_LINE>long l, r, m;<NEW_LINE>File lf, rf;<NEW_LINE>float min = Float.MAX_VALUE;<NEW_LINE>final File[] bestMatch = new File[2];<NEW_LINE>maxResultSize = maxResultSize >> 1;<NEW... | (bestMatch[1], false); |
1,285,438 | protected boolean doSlowStartup() {<NEW_LINE>tempWorkDir = options.getWorkDir() == null;<NEW_LINE>if (tempWorkDir) {<NEW_LINE>try {<NEW_LINE>options.setWorkDir(Utility.makeTemporaryDirectory(null, "gwtc"));<NEW_LINE>} catch (IOException e) {<NEW_LINE>System.err.println("Unable to create hosted mode work directory");<NE... | branch(TreeLogger.TRACE, "Linking modules"); |
791,025 | protected View onCreateView(@NonNull ViewGroup parent) {<NEW_LINE>super.onCreateView(parent);<NEW_LINE>View view = View.inflate(getContext(), mLayout, null);<NEW_LINE>Button learnMoreButton = view.findViewById(R.id.learn_more_button);<NEW_LINE>learnMoreButton.setOnClickListener(this);<NEW_LINE>if (!TextUtils.isEmpty(mC... | icon.setVisibility(View.VISIBLE); |
79,968 | protected void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>Bundle extra = getIntent().getExtras();<NEW_LINE>String preLayout = extra.getString(Utils.KEY);<NEW_LINE>setTitle(layout_name = preLayout);<NEW_LINE>Context ctx = getApplicationContext();<NEW_LINE>int id... | "layout", ctx.getPackageName()); |
257,671 | public static PrivTable read(DataInput in) throws IOException {<NEW_LINE>String <MASK><NEW_LINE>if (className.startsWith("com.baidu.palo")) {<NEW_LINE>// we need to be compatible with former class name<NEW_LINE>className = className.replaceFirst("com.baidu.palo", "org.apache.doris");<NEW_LINE>}<NEW_LINE>PrivTable privT... | className = Text.readString(in); |
1,669,091 | private Mono<Response<RegistryNameStatusInner>> checkNameAvailabilityWithResponseAsync(RegistryNameCheckRequest registryNameCheckRequest, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cann... | error(new IllegalArgumentException("Parameter registryNameCheckRequest is required and cannot be null.")); |
1,350,246 | public void handleRequest(final HttpServerExchange exchange) throws Exception {<NEW_LINE>// check if there is a bear token in the authorization header in the request. If this<NEW_LINE>// is one, then this must be the subject token that is linked to the original user.<NEW_LINE>// We will keep this token in the Authoriza... | getRequestHeaders().remove(SAMLAssertionHeader); |
1,212,534 | public void selectElement(final PsiElement element) {<NEW_LINE>if (element != null) {<NEW_LINE>final PackageSet packageSet = getCurrentScope().getValue();<NEW_LINE>final PsiFile psiFile = element.getContainingFile();<NEW_LINE>if (packageSet == null)<NEW_LINE>return;<NEW_LINE>final VirtualFile virtualFile = psiFile != n... | ).getVirtualFile() : null); |
149,585 | public TextBody buildTextPlain() {<NEW_LINE>// The length of the formatted version of the user-supplied text/reply<NEW_LINE>int composedMessageLength;<NEW_LINE>// The offset of the user-supplied text/reply in the final text body<NEW_LINE>int composedMessageOffset;<NEW_LINE>// Get the user-supplied text<NEW_LINE>String ... | TextBody body = new TextBody(text); |
1,723,132 | public SkyValue compute(SkyKey skyKey, Environment env) throws InterruptedException {<NEW_LINE>PackageIdentifier dir = (PackageIdentifier) skyKey.argument();<NEW_LINE>PackageLookupValue pkgLookupValue = (PackageLookupValue) env.getValue(PackageLookupValue.key(dir));<NEW_LINE>if (pkgLookupValue == null) {<NEW_LINE>retur... | dir.getRepository(), parentDir); |
1,728,613 | private String genLoadSelectSql(LoadNode loadNode, NodeRelation relation, Map<String, Node> nodeMap) {<NEW_LINE>String selectSql;<NEW_LINE>if (relation instanceof JoinRelation) {<NEW_LINE>// parse join relation and generate the select sql<NEW_LINE>JoinRelation joinRelation = (JoinRelation) relation;<NEW_LINE>selectSql ... | size() == 1, "simple transform only support one input node"); |
15,371 | protected void configure() {<NEW_LINE>this.addSinkType(<MASK><NEW_LINE>this.addSinkType(ElasticSearchSink.TYPE, ElasticSearchSink.class);<NEW_LINE>this.addSinkType(KafkaSink.TYPE, KafkaSink.class);<NEW_LINE>this.addSinkType(KafkaSinkV2.TYPE, KafkaSinkV2.class);<NEW_LINE>Message.classMap.put((byte) 1, SuroKeyedMessage.c... | LocalFileSink.TYPE, LocalFileSink.class); |
954,861 | final ListApplicationInstanceNodeInstancesResult executeListApplicationInstanceNodeInstances(ListApplicationInstanceNodeInstancesRequest listApplicationInstanceNodeInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listApplicationInstanceNodeInstancesRequest);<NEW_LINE>AWSRequestMet... | (super.beforeMarshalling(listApplicationInstanceNodeInstancesRequest)); |
173,569 | public I_C_Flatrate_Term createSubscriptionTerm(@NonNull final I_C_OrderLine ol, final boolean completeIt) {<NEW_LINE>final I_C_Order order = InterfaceWrapperHelper.create(ol.getC_Order(), I_C_Order.class);<NEW_LINE>final I_C_Flatrate_Conditions cond = ol.getC_Flatrate_Conditions();<NEW_LINE>final I_C_Flatrate_Term new... | setMasterStartDate(order.getDatePromised()); |
1,489,559 | private List<GridElement> gridElementCopyInOtherDiagram(List<GridElement> originals, int diffY) {<NEW_LINE>int verticalScrollbarDiff = otherDrawFocusPanel.scrollPanel.getVerticalScrollPosition() - scrollPanel.getVerticalScrollPosition();<NEW_LINE>int horizontalScrollbarDiff = otherDrawFocusPanel.scrollPanel.getHorizont... | original, otherDrawFocusPanel.getDiagram()); |
1,704,163 | // first part<NEW_LINE>void sieve(int upperbound) {<NEW_LINE>// create list of primes in [0..upperbound]<NEW_LINE>// add 1 to include upperbound<NEW_LINE>_sieve_size = upperbound + 1;<NEW_LINE>bs = new boolean[_sieve_size];<NEW_LINE>// set all bits to 1<NEW_LINE>Arrays.fill(bs, true);<NEW_LINE>// except index 0 and 1<N... | [(int) j] = false; |
1,595,812 | private void renderRuntimeIntern() throws IOException {<NEW_LINE>if (!needInternMethod()) {<NEW_LINE>writer.append("function $rt_intern(str) {").indent().softNewLine();<NEW_LINE>writer.append("return str;").softNewLine();<NEW_LINE>writer.outdent().append("}").softNewLine();<NEW_LINE>} else {<NEW_LINE>renderHandWrittenR... | append("(s);").softNewLine(); |
566,670 | public void run(final ResultHandler<? super Void> handler) {<NEW_LINE>if (operationDescriptors.isEmpty() && internalJvmTestRequests.isEmpty() && tasksAndTests.isEmpty()) {<NEW_LINE>throw new TestExecutionException("No test declared for execution.");<NEW_LINE>}<NEW_LINE>for (Map.Entry<String, List<InternalJvmTestRequest... | }, new ResultHandlerAdapter(handler)); |
457,175 | static void emitToNativeConversion(AsmBuilder builder, SkinnyMethodAdapter mv, ToNativeType toNativeType) {<NEW_LINE>ToNativeConverter parameterConverter = toNativeType.getToNativeConverter();<NEW_LINE>if (parameterConverter != null) {<NEW_LINE>Method toNativeMethod = getToNativeMethod(toNativeType, builder.getClassLoa... | ), toNativeMethod.getParameterTypes()); |
901,728 | private void animateLayout() {<NEW_LINE>AnimatorListenerAdapter adapter = new AnimatorListenerAdapter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onAnimationEnd(Animator animation) {<NEW_LINE>if (isHidden) {<NEW_LINE>pageSwitcher.setVisibility(View.GONE);<NEW_LINE>toolbar.setVisibility(View.GONE);<NEW_LINE>vi... | view.setVisibility(View.VISIBLE); |
1,254,300 | public Mono<Connection> datasourceCreate(DatasourceConfiguration datasourceConfiguration) {<NEW_LINE>try {<NEW_LINE>Class.forName("net.snowflake.client.jdbc.SnowflakeDriver");<NEW_LINE>} catch (ClassNotFoundException ex) {<NEW_LINE>System.err.println("Driver not found");<NEW_LINE>return Mono.error(new AppsmithPluginExc... | 3).getValue())); |
1,071,728 | public boolean turnDeviceOff(String token, DSID dsid, String name) {<NEW_LINE>if (((dsid != null && dsid.getValue() != null) || name != null)) {<NEW_LINE>String response = null;<NEW_LINE>if (dsid != null && dsid.getValue() != null) {<NEW_LINE>if (name != null) {<NEW_LINE>response = transport.execute(JSONRequestConstant... | INFIX_PARAMETER_DSID + dsid.getValue()); |
1,593,621 | public void serialize(LBMember member, JsonGenerator jGen, SerializerProvider serializer) throws IOException, JsonProcessingException {<NEW_LINE>jGen.writeStartObject();<NEW_LINE>jGen.writeStringField("id", member.id);<NEW_LINE>jGen.writeStringField("address", String.valueOf(IPv4Address.of(member.address)));<NEW_LINE>j... | .toString(member.port)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.