idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
504,712 | public void extractKeyParts(CacheKeyBuilder keyBuilder, Object targetObject, Object[] params) {<NEW_LINE>//<NEW_LINE>// include specified property values into the key<NEW_LINE>for (final String keyProp : keyProperties) {<NEW_LINE>if (targetObject instanceof PO) {<NEW_LINE>final PO po = (PO) targetObject;<NEW_LINE>if (p... | getMethod(getMethodName.toString()); |
645,129 | public void checkActivity() {<NEW_LINE>// Graceful time before the first afk check call.<NEW_LINE>if (System.currentTimeMillis() - lastActivity <= 10000) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final long autoafkkick = ess.getSettings().getAutoAfkKick();<NEW_LINE>if (autoafkkick > 0 && lastActivity > 0 && (lastActivity ... | tl("userIsAway", getDisplayName()); |
667,204 | private boolean doMove(boolean extending) {<NEW_LINE>Vector3 pos = this.getLocation();<NEW_LINE>BlockFace direction = getFacing();<NEW_LINE>if (!extending) {<NEW_LINE>this.level.setBlock(pos.getSide(direction), Block.get(BlockID.AIR), true, false);<NEW_LINE>}<NEW_LINE>BlocksCalculator calculator = new BlocksCalculator(... | > blocks = calculator.getBlocksToMove(); |
1,803,073 | private synchronized void onServiceChange(HotSwapAction callback, ServiceLoader<?> serviceLoader, String fullName) {<NEW_LINE>// sanity-check that the file modification has led to actual changes in services<NEW_LINE>serviceLoader.reload();<NEW_LINE>Set<String> currentServiceImpl = services.getOrDefault(fullName, Collec... | getClass().getName()); |
673,039 | private Predicate createPredicate(String theResourceName, List<List<IQueryParameterType>> theValues, SearchFilterParser.CompareOperation theOperation, RequestPartitionId theRequestPartitionId) {<NEW_LINE>Predicate nextPredicate = null;<NEW_LINE>Set<ResourcePersistentId> allOrPids = null;<NEW_LINE>for (List<? extends IQ... | .getResourcePidColumn(), -1); |
1,778,747 | static // eventually should have the model problems coming from either the Mavenproject or the modelBuilder result.<NEW_LINE>List<ModelProblem> runMavenValidationImpl(final File pom) {<NEW_LINE>// TODO profiles based on current configuration??<NEW_LINE>MavenEmbedder embedder = EmbedderFactory.getProjectEmbedder();<NEW_... | getInstance().remoteRepositories(embedder); |
565,081 | public WFCMessage.ChatroomInfo toChatroomInfo() {<NEW_LINE>WFCMessage.ChatroomInfo.Builder builder = WFCMessage.ChatroomInfo.<MASK><NEW_LINE>if (!StringUtil.isNullOrEmpty(desc)) {<NEW_LINE>builder.setDesc(desc);<NEW_LINE>}<NEW_LINE>if (!StringUtil.isNullOrEmpty(portrait)) {<NEW_LINE>builder.setPortrait(portrait);<NEW_L... | newBuilder().setTitle(title); |
814,053 | public void writeUncommitted(SIMPMessage m) throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "writeUncommitted", new Object[] { m });<NEW_LINE>TickRange tr = null;<NEW_LINE>JsMessage jsMsg = m.getMessage();<NEW_LINE>long stamp = jsMsg.... | long ends = jsMsg.getGuaranteedValueEndTick(); |
1,263,172 | public boolean copySlides(Long originDisplayId, Long displayId, User user) {<NEW_LINE>// copy slide entity<NEW_LINE>List<DisplaySlide> originSlides = displaySlideMapper.selectByDisplayId(originDisplayId);<NEW_LINE>if (CollectionUtils.isEmpty(originSlides)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>List<RelModelCopy> ... | (originMem.getDisplaySlideId())); |
1,465,697 | public String chooseBackupInstance(String mainInstanceAlias) throws CSErrorException {<NEW_LINE>ServiceInstance mainInstance = null;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>} catch (Exception e) {<NEW_LINE>logger.error("Get Instance error, alias : {}, message : {}", mainInstanceAlias, e.getMessage());<NEW_LINE>throw ne... | mainInstance = instanceAliasManager.getInstanceByAlias(mainInstanceAlias); |
690,008 | protected boolean selfSatisfied(ClusterModel clusterModel, BalancingAction action) {<NEW_LINE>Replica sourceReplica = clusterModel.broker(action.sourceBrokerId()).replica(action.topicPartition());<NEW_LINE>ActionType actionType = action.balancingAction();<NEW_LINE>Broker sourceBroker = sourceReplica.broker();<NEW_LINE>... | ).expectedUtilizationFor(Resource.NW_OUT); |
268,698 | public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>Bundle args = getArguments();<NEW_LINE>if (args != null) {<NEW_LINE>appMode = ApplicationMode.valueOfStringKey(args.getString(ROUTE_APP_MODE_KEY), null);<NEW_LINE>dialogType = (RouteBetweenPointsDialogType) args.get(DIALOG_TYPE_KEY);<NEW_LINE>defaultDial... | R.drawable.ic_action_split_interval, nightMode); |
762,185 | public com.alipay.sofa.jraft.rpc.CliRequests.AddLearnersRequest buildPartial() {<NEW_LINE>com.alipay.sofa.jraft.rpc.CliRequests.AddLearnersRequest result = new com.alipay.sofa.jraft.rpc.CliRequests.AddLearnersRequest(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_b... | bitField0_ = (bitField0_ & ~0x00000004); |
519,785 | private void processFilterFields() {<NEW_LINE>OsmandApplication app = getMyApplication();<NEW_LINE><MASK><NEW_LINE>if (!Algorithms.isEmpty(filterByName)) {<NEW_LINE>int index;<NEW_LINE>MapPoiTypes poiTypes = app.getPoiTypes();<NEW_LINE>Map<String, PoiType> poiAdditionals = filter.getPoiAdditionals();<NEW_LINE>Set<Strin... | String filterByName = filter.getFilterByName(); |
809,275 | public void onCompletion(String result, Exception exception) {<NEW_LINE>long processingStartTimeMs = SystemTime.getInstance().milliseconds();<NEW_LINE>metrics.idConverterProcessingTimeInMs.update(processingStartTimeMs - operationStartTimeMs);<NEW_LINE>try {<NEW_LINE>if (exception == null) {<NEW_LINE>BlobId blobId = Fro... | ).milliseconds() - processingStartTimeMs); |
1,560,505 | final EngineDefaults executeDescribeEngineDefaultParameters(DescribeEngineDefaultParametersRequest describeEngineDefaultParametersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEngineDefaultParametersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAws... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
653,455 | public String backupDbsToSdCard() throws IOException {<NEW_LINE>SubscriptionsDb subscriptionsDb = SubscriptionsDb.getSubscriptionsDb();<NEW_LINE>BookmarksDb bookmarksDb = BookmarksDb.getBookmarksDb();<NEW_LINE>PlaybackStatusDb playbackDb = PlaybackStatusDb.getPlaybackStatusDb();<NEW_LINE>ChannelFilteringDb channelFilte... | addFile(searchHistoryDb.getDatabasePath()); |
1,430,840 | public boolean addToGoggleTooltip(List<Component> tooltip, boolean isPlayerSneaking) {<NEW_LINE>if (!StressImpact.isEnabled())<NEW_LINE>return false;<NEW_LINE>super.addToGoggleTooltip(tooltip, isPlayerSneaking);<NEW_LINE>double capacity = getNetworkCapacity();<NEW_LINE>double stressFraction = getNetworkStress() / (capa... | su = Lang.translate("generic.unit.stress"); |
1,405,176 | private String generateChoicePut(final PrimitiveType type, final String bitIdx, final String byteOrder) {<NEW_LINE>switch(type) {<NEW_LINE>case UINT8:<NEW_LINE>return " byte bits = buffer.getByte(offset);\n" + " bits = (byte)(value ? bits | (1 << " + bitIdx + ") : bits & ~(1 << " + bitIdx + "));\n" + " ... | + "));\n" + " buffer.putShort(offset, bits" + byteOrder + ");"; |
144,750 | protected void updateMarkActions() {<NEW_LINE>myEditingActionsGroup.removeAll();<NEW_LINE>myEditingActionsGroup.add(new ToolbarLabelAction() {<NEW_LINE><NEW_LINE>@RequiredUIAccess<NEW_LINE>@Override<NEW_LINE>public void update(@Nonnull AnActionEvent e) {<NEW_LINE>super.update(e);<NEW_LINE>e.getPresentation().setTextVal... | ToggleFolderStateAction(myTree, this, contentFolderTypeProvider); |
256,189 | protected Collection<Object> executeQuery(String dataType, SearchParameterMap map) {<NEW_LINE>// TODO: Once HAPI breaks this out from the server dependencies<NEW_LINE>// we can include it on its own.<NEW_LINE>ca.uhn.fhir.jpa.searchparam.SearchParameterMap hapiMap = ca.uhn.fhir.jpa.searchparam.SearchParameterMap.newSync... | .getResources(0, 10000)); |
301,835 | public static void main(String[] args) {<NEW_LINE>Exercise12 exercise12 = new Exercise12();<NEW_LINE>EdgeWeightedDigraph edgeWeightedDigraphWithCycle = new EdgeWeightedDigraph(8);<NEW_LINE>edgeWeightedDigraphWithCycle.addEdge(new DirectedEdge(0, 1, 0.35));<NEW_LINE>edgeWeightedDigraphWithCycle.addEdge(new DirectedEdge(... | (7, 5, 0.38)); |
1,255,251 | public Request<DescribeIndexFieldsRequest> marshall(DescribeIndexFieldsRequest describeIndexFieldsRequest) {<NEW_LINE>if (describeIndexFieldsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeIndexFieldsRequest> request = new Default... | String>) describeIndexFieldsRequest.getFieldNames(); |
190,361 | void xz(LZMACompressor.Native self, @SuppressWarnings("unused") int format, long preset, @SuppressWarnings("unused") PNone filters, @Shared("cs") @Cached NativeLibrary.InvokeNativeFunction createStream, @Cached NativeLibrary.InvokeNativeFunction lzmaEasyEncoder, @Cached ConditionProfile errProfile) {<NEW_LINE>NFILZMASu... | self.init(lzmast, lzmaSupport); |
722,321 | public OutboundSseEvent buildEvent(Builder eventBuilder, Set<String> itemNames) {<NEW_LINE>Map<String, StateDTO> payload = new HashMap<>(itemNames.size());<NEW_LINE>for (String itemName : itemNames) {<NEW_LINE>try {<NEW_LINE>Item <MASK><NEW_LINE>StateDTO stateDto = new StateDTO();<NEW_LINE>stateDto.state = item.getStat... | item = itemRegistry.getItem(itemName); |
1,003,970 | public double evaluate(int[] designations, DataSet dataSet, int clusterID) {<NEW_LINE>int N = 0;<NEW_LINE>double sum = 0;<NEW_LINE>List<Vec<MASK><NEW_LINE>List<Double> cache = dm.getAccelerationCache(X);<NEW_LINE>if (// special case, can compute in O(N) isntead<NEW_LINE>dm instanceof EuclideanDistance) {<NEW_LINE>Vec m... | > X = dataSet.getDataVectors(); |
86,411 | private byte[] createFlowControlPacket(Address member, Connection expectedConnection) throws IOException {<NEW_LINE>try (BufferObjectDataOutput output = createObjectDataOutput(nodeEngine, lastFlowPacketSize)) {<NEW_LINE>boolean hasData = false;<NEW_LINE>Map<Long, ExecutionContext> executionContexts = jobExecutionServic... | .getValue().receiverMap(); |
1,635,413 | public long handle(Emulator<?> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>UnidbgPointer clazz = context.getPointerArg(1);<NEW_LINE>UnidbgPointer jmethodID = context.getPointerArg(2);<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("CallStaticIntMethodV clazz=" + clazz + ", jm... | emulator, DalvikVM.this, dvmMethod); |
1,453,782 | public void deleteTransform(String transformId, ActionListener<Boolean> listener) {<NEW_LINE>DeleteByQueryRequest request = createDeleteByQueryRequest();<NEW_LINE>request.indices(<MASK><NEW_LINE>QueryBuilder query = QueryBuilders.termQuery(TransformField.ID.getPreferredName(), transformId);<NEW_LINE>request.setQuery(qu... | TransformInternalIndexConstants.INDEX_NAME_PATTERN, TransformInternalIndexConstants.INDEX_NAME_PATTERN_DEPRECATED); |
1,022,717 | public static void proxyResponseHeaders(Map<String, String> respHeaders, SimpleHttpResp resp) {<NEW_LINE>for (Map.Entry<String, String> hdr : respHeaders.entrySet()) {<NEW_LINE><MASK><NEW_LINE>String value = hdr.getValue();<NEW_LINE>if (name.equalsIgnoreCase("Content-type")) {<NEW_LINE>resp.contentType = MediaType.of(v... | String name = hdr.getKey(); |
1,463,629 | private boolean findAdapterName() {<NEW_LINE>Logger.D(TAG, "findAdapterName+");<NEW_LINE>boolean dorefresh = false;<NEW_LINE>Enumeration<NetworkInterface> interfaces = null;<NEW_LINE>try {<NEW_LINE>interfaces = NetworkInterface.getNetworkInterfaces();<NEW_LINE>int wifiIp = this.wifiIpAddress;<NEW_LINE>int reverseWifiIp... | > inetAddresses = iface.getInetAddresses(); |
486,474 | protected void writeClassDescriptor(ObjectStreamClass desc) throws IOException {<NEW_LINE>Class<?> cl = desc.forClass();<NEW_LINE>if (ProxyFactory.isProxyClass(cl)) {<NEW_LINE>writeBoolean(true);<NEW_LINE>Class<?> superClass = cl.getSuperclass();<NEW_LINE>Class<?>[] interfaces = cl.getInterfaces();<NEW_LINE>byte[] sign... | ?> interfaze = interfaces[i]; |
1,149,830 | @ApiImplicitParams({ @ApiImplicitParam(name = "store", dataType = "String", defaultValue = "DEFAULT"), @ApiImplicitParam(name = "lang", dataType = "String", defaultValue = "en") })<NEW_LINE>@ApiOperation(httpMethod = "POST", value = "Patch product sort order", notes = "Change product sortOrder")<NEW_LINE>public void ch... | p = productService.getById(id); |
1,570,995 | private final void printProgresStats(final long startTime, final boolean isFinal) throws IOException {<NEW_LINE>final long fpSetSize = this.theFPSet.size();<NEW_LINE>// print progress showing states per minute metric (spm)<NEW_LINE>final double factor;<NEW_LINE>if (startTime < 0) {<NEW_LINE>factor = TLCGlobals.progress... | (fpSetSize - oldFPSetSize) / factor); |
366,334 | public List<SequenceMatchResult<T>> findNonOverlapping(List<? extends T> elements, Comparator<? super SequenceMatchResult> cmp) {<NEW_LINE>Collection<SequencePattern<T>> triggered = getTriggeredPatterns(elements);<NEW_LINE>List<SequenceMatchResult<T>> all = new ArrayList<>();<NEW_LINE>int i = 0;<NEW_LINE>for (SequenceP... | res.sort(SequenceMatchResult.OFFSET_COMPARATOR); |
481,649 | public MemberSelectTree buildPrimValueMethodAccess(Tree expr) {<NEW_LINE>TypeMirror boxedType = TreeUtils.typeOf(expr);<NEW_LINE>TypeElement boxedElement = (TypeElement) ((DeclaredType) boxedType).asElement();<NEW_LINE>assert TypesUtils.isBoxedPrimitive(boxedType);<NEW_LINE>TypeMirror unboxedType = modelTypes.unboxedTy... | = unboxedType.toString() + "Value"; |
1,453,253 | private BodyExtractor<Flux<Object>, ? super ClientHttpResponse> createBodyExtractor(Object expectedResponseType) {<NEW_LINE>if (expectedResponseType != null) {<NEW_LINE>if (this.replyPayloadToFlux) {<NEW_LINE>if (expectedResponseType instanceof ParameterizedTypeReference) {<NEW_LINE>return BodyExtractors.toFlux((Parame... | .from((Publisher) body); |
748,179 | public int compareTo(beginFateOperation_result 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.compare(isSetSuccess(), other.isSetSuccess());<... | this.tnase, other.tnase); |
1,669,326 | public static void serialize(IntFloatVector feats, ByteBuf output) {<NEW_LINE>output.<MASK><NEW_LINE>output.writeInt((int) feats.getSize());<NEW_LINE>if (feats.isDense()) {<NEW_LINE>output.writeInt(StorageMethod.DENSE.getValue());<NEW_LINE>float[] values = feats.getStorage().getValues();<NEW_LINE>for (int i = 0; i < va... | writeInt(feats.getDim()); |
627,336 | void takeScreenshot(Canvas canvas, SingleObserver<String> observer) {<NEW_LINE>canvas.getScreenShot().subscribeOn(Schedulers.computation()).observeOn(Schedulers.io()).map(bitmap -> {<NEW_LINE>Calendar calendar = Calendar.getInstance();<NEW_LINE>Date now = calendar.getTime();<NEW_LINE>// noinspection SpellCheckingInspec... | throw new IOException("Can't create directory: " + screenshotDir); |
466,212 | String configFiles(Request req, Response res) {<NEW_LINE>ConfigRepoPlugin repoPlugin = pluginFromRequest(req);<NEW_LINE>File folder = null;<NEW_LINE>try {<NEW_LINE>JsonReader jsonReader = GsonTransformer.getInstance().jsonReaderFrom(req.body());<NEW_LINE>ConfigHelperOptions options = new ConfigHelperOptions(goConfigSer... | new ArrayList<>())); |
701,480 | private void deletePartialRow(DataPointsRowKey rowKey, long start, long end, ClusterConnection cluster) throws DatastoreException {<NEW_LINE>RowSpec rowSpec = cluster.getRowSpec();<NEW_LINE>if (cluster.psDataPointsDeleteRange != null) {<NEW_LINE>BoundStatement statement = new BoundStatement(cluster.psDataPointsDeleteRa... | 0, rowKey.getMetricName()); |
998,008 | public void processTransfer(TransferPacketExtension transfer) throws OperationFailedException {<NEW_LINE><MASK><NEW_LINE>if (attendantAddress == null) {<NEW_LINE>throw new OperationFailedException("Session transfer must contain a \'from\' attribute value.", OperationFailedException.ILLEGAL_ARGUMENT);<NEW_LINE>}<NEW_LIN... | Jid attendantAddress = transfer.getFrom(); |
233,151 | private InterEditor createEditor(Point location) {<NEW_LINE>// Inter is determined my latest history information<NEW_LINE>final List<Shape> history = shapeBoard.getHistory();<NEW_LINE>if (history.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Shape shape = history.get(0);<NEW_LINE>if (!shape.isDraggable()... | getSig().addVertex(inter); |
1,277,453 | private static void upgradeTable(Connection connection, Integer currentVersion) throws SQLException {<NEW_LINE>LOGGER.info(LOG_UPGRADING_TABLE, DATABASE_NAME, TABLE_NAME, currentVersion, TABLE_VERSION);<NEW_LINE>try {<NEW_LINE>for (int version = currentVersion; version < TABLE_VERSION; version++) {<NEW_LINE>LOGGER.trac... | connection, "ALTER TABLE " + TABLE_NAME + " ALTER COLUMN `KEY` RENAME TO M_KEY"); |
197,144 | public void parseBoundaryErrorEventDefinition(Element errorEventDefinition, ActivityImpl boundaryEventActivity) {<NEW_LINE>boundaryEventActivity.getProperties().set(BpmnProperties.TYPE, ActivityTypes.BOUNDARY_ERROR);<NEW_LINE>String errorRef = errorEventDefinition.attribute("errorRef");<NEW_LINE>Error error = null;<NEW... | boundaryEventActivity.getEventScope(), boundaryEventActivity); |
1,681,960 | public ServerAuthorConfigurationResponse configureViewService(String userId, String serverName, String serverToBeConfiguredName, String serviceURLMarker, Map<String, Object> viewServiceOptions) {<NEW_LINE>final String methodName = "configureViewService";<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCall(serverN... | captureCheckedException(response, error, className); |
719,575 | public void rewriteServerbound(ByteBuf packet, int oldId, int newId) {<NEW_LINE>super.rewriteServerbound(packet, oldId, newId);<NEW_LINE>// Special cases<NEW_LINE>int readerIndex = packet.readerIndex();<NEW_LINE>int packetId = DefinedPacket.readVarInt(packet);<NEW_LINE>int packetIdLength = packet.readerIndex() - reader... | ).getOfflineId(), packet); |
982,436 | private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati... | TypeAlias.fsfilcnt_t, NativeType.UINT); |
738,043 | private void compile() throws UnsatisfiedParameterException, UnsatisfiedFieldsException {<NEW_LINE>Set<Class<?>> missing = new HashSet<>(fieldsByClass.keySet());<NEW_LINE>missing.removeAll(constructors.keySet());<NEW_LINE>if (!missing.isEmpty()) {<NEW_LINE>throw new UnsatisfiedFieldsException(missing);<NEW_LINE>}<NEW_L... | <>(ready, m)); |
553,902 | public void marshall(CreateFleetMetricRequest createFleetMetricRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createFleetMetricRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createFleetM... | createFleetMetricRequest.getAggregationField(), AGGREGATIONFIELD_BINDING); |
1,326,993 | protected Runnable asLongOperationRunnable(final Runnable runnable) {<NEW_LINE>final Component componentSwing = (Component) getParentComponent();<NEW_LINE>if (componentSwing == null) {<NEW_LINE>if (developerModeBL.isEnabled()) {<NEW_LINE>final AdempiereException ex = new AdempiereException("We were asked to run as a lo... | "\n Invoker: " + this + "\n Runnable: " + runnable); |
1,279,403 | protected AlgorithmParameters engineGenerateParameters() {<NEW_LINE>DSAParametersGenerator pGen;<NEW_LINE>if (strength <= 1024) {<NEW_LINE>pGen = new DSAParametersGenerator();<NEW_LINE>} else {<NEW_LINE>pGen = new DSAParametersGenerator(new SHA256Digest());<NEW_LINE>}<NEW_LINE>if (random == null) {<NEW_LINE>random = Cr... | RuntimeException(e.getMessage()); |
239,002 | private void loadNode1025() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.OperationLimitsType_MaxNodesPerRegisterNodes, new QualifiedName(0, "MaxNodesPerRegisterNodes"), new LocalizedText("en", "MaxNodesPerRegisterNodes"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.value... | .expanded(), true)); |
1,116,697 | private void queueIO(TCPBaseRequestContext req) throws IOException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, "queueIO");<NEW_LINE>}<NEW_LINE>final TCPConnLink conn = req.getTCPConnLink();<NEW_LINE>final ChannelSelector channelSelector;<NEW_LINE>if (req.isRequest... | Tr.event(tc, "Finding selector for IO"); |
1,012,689 | public void mapPartition(Iterable<Tuple2<Long, FeatureBinsCalculator>> values, Collector<Row> out) throws Exception {<NEW_LINE>Params meta = null;<NEW_LINE>if (getRuntimeContext().getIndexOfThisSubtask() == 0) {<NEW_LINE>List<Tuple3<Long, String, String>> colList = getRuntimeContext().getBroadcastVariable("selectedCols... | intValue()] = selectedCol.f1; |
32,461 | protected TaskResult callExecutor(Path projectPath, String type, TaskRequest mergedRequest) {<NEW_LINE>OperatorFactory factory = registry.get(mergedRequest, type);<NEW_LINE>if (factory == null) {<NEW_LINE>throw new ConfigException("Unknown task type: " + type);<NEW_LINE>}<NEW_LINE>SecretStore secretStore = secretStoreM... | .privilegedSecretProvider(secretContext, secretStore)); |
779,908 | public GradientValue_I32 compute(int x, int y) {<NEW_LINE>int horizontalOffset = x - r - 1;<NEW_LINE>int indexSrc1 = input.startIndex + (y - r - 1) * input.stride + horizontalOffset;<NEW_LINE>int indexSrc2 = indexSrc1 + r * input.stride;<NEW_LINE>int indexSrc3 = indexSrc2 + input.stride;<NEW_LINE>int indexSrc4 = indexS... | p11 = input.data[indexSrc2]; |
823,425 | private void refreshToken() {<NEW_LINE>try {<NEW_LINE>final URI resourceURI;<NEW_LINE>final UriComponentsBuilder <MASK><NEW_LINE>uriBuilder.pathSegment(PathSegmentsEnum.API.getValue()).pathSegment(PathSegmentsEnum.OATH.getValue()).pathSegment(PathSegmentsEnum.TOKEN.getValue());<NEW_LINE>final HttpEntity<GetBearerReques... | uriBuilder = UriComponentsBuilder.fromHttpUrl(baseUrl); |
1,126,109 | public static DescribeDomainStatusCodeListResponse unmarshall(DescribeDomainStatusCodeListResponse describeDomainStatusCodeListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainStatusCodeListResponse.setRequestId(_ctx.stringValue("DescribeDomainStatusCodeListResponse.RequestId"));<NEW_LINE>List<StatusCode> s... | ("DescribeDomainStatusCodeListResponse.StatusCodeList[" + i + "].Status4XX")); |
1,290,392 | public void initModel(Offer offer, PaymentAccount paymentAccount, boolean useSavingsWallet) {<NEW_LINE>this.clearModel();<NEW_LINE>this.offer = offer;<NEW_LINE>this.paymentAccount = paymentAccount;<NEW_LINE>this.addressEntry = btcWalletService.getOrCreateAddressEntry(<MASK><NEW_LINE>validateModelInputs();<NEW_LINE>this... | offer.getId(), OFFER_FUNDING); |
72,255 | public UIData load(JsonElement element, Locale otherLocale) throws IOException {<NEW_LINE>NUIManager nuiManager = CoreRegistry.get(NUIManager.class);<NEW_LINE>TranslationSystem translationSystem = CoreRegistry.get(TranslationSystem.class);<NEW_LINE>TypeHandlerLibrary library = CoreRegistry.get(TypeHandlerLibrary.class)... | new I18nStringTypeAdapter(translationSystem, otherLocale)); |
1,469,508 | public void run(CompilationController controller) throws IOException {<NEW_LINE>controller.toPhase(Phase.RESOLVED);<NEW_LINE>TypeElement classElement = getTopLevelClassElement(controller);<NEW_LINE>if (classElement == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CompilationUnitTree tree = controller.getCompilationUnit(... | methodsIn(classElement.getEnclosedElements()); |
264,992 | public void removeMember(JSConsumerKey key) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "removeMember", key);<NEW_LINE>SelectionCriteria toRemove = ((RemoteQPConsumerKey) key).getSelectionCriteria()[0];<NEW_LINE>synchronized (criteriaLock) {<NEW_LINE>if (allCrite... | SelectionCriteria[allCriterias.length - 1]; |
675,825 | public void onMatch(RelOptRuleCall call) {<NEW_LINE>final Filter filter = call.rel(0);<NEW_LINE>final List<RexNode> expList = Lists.newArrayList(filter.getCondition());<NEW_LINE>RexNode newConditionExp;<NEW_LINE>boolean reduced;<NEW_LINE>final RelMetadataQuery mq = call.getMetadataQuery();<NEW_LINE>final RelOptPredicat... | .getKind() == SqlKind.NOT; |
1,687,248 | public Server.ServerRequest build() {<NEW_LINE>Preconditions.checkState(_payloadType != null && CollectionUtils.isNotEmpty(_segments), "Query and segmentsToQuery must be set");<NEW_LINE>Map<String, String> metadata = new HashMap<>();<NEW_LINE>metadata.put(Request.MetadataKeys.REQUEST_ID, Integer.toString(_requestId));<... | , Boolean.toString(_enableTrace)); |
90,224 | public void start() {<NEW_LINE>if (current != null) {<NEW_LINE>current.show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String imageURL = "https://upload.wikimedia.org/wikipedia/commons/f/f5/Steve_Jobs_Headshot_2010-CROP2.jpg";<NEW_LINE>Form hi = new Form("Hi World", new BorderLayout());<NEW_LINE>ImageViewer viewer = new I... | l, new Command("OK")); |
74,337 | public static DescribePriceResponse unmarshall(DescribePriceResponse describePriceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePriceResponse.setRequestId(_ctx.stringValue("DescribePriceResponse.RequestId"));<NEW_LINE>describePriceResponse.setOrderParams(_ctx.stringValue("DescribePriceResponse.OrderParams"));<... | ("DescribePriceResponse.SubOrders[" + i + "].InstanceId")); |
220,552 | protected void compute() {<NEW_LINE>boolean canCompute = (end - start) < threshold;<NEW_LINE>if (canCompute) {<NEW_LINE>if (v instanceof CompIntDoubleVector) {<NEW_LINE>apply((CompIntDoubleVector) v, op, (CompIntDoubleVector) result, start, end);<NEW_LINE>} else if (v instanceof CompIntFloatVector) {<NEW_LINE>apply((Co... | op, result, start, middle); |
228,332 | public String bulkUpdate(Request request, Response response) throws IOException {<NEW_LINE>final AgentBulkUpdateRequest req = AgentBulkUpdateRequestRepresenter.fromJSON(request.body());<NEW_LINE>final HttpLocalizedOperationResult result = new HttpLocalizedOperationResult();<NEW_LINE>try {<NEW_LINE>agentService.bulkUpda... | (), ", ") + "]."); |
883,841 | private void run(String[] argv) throws Exception {<NEW_LINE>MaxwellBootstrapUtilityConfig config = new MaxwellBootstrapUtilityConfig(argv);<NEW_LINE>if (config.log_level != null) {<NEW_LINE>Logging.setLevel(config.log_level);<NEW_LINE>}<NEW_LINE>ConnectionPool connectionPool = getConnectionPool(config);<NEW_LINE>Connec... | Connection connection = connectionPool.getConnection(); |
802,619 | public boolean addAddress(Long version, String address) throws BrokerException {<NEW_LINE>log.info("associated groupId: {}", this.client.getGroupId());<NEW_LINE>// check exist manually to avoid duplicate record<NEW_LINE>Map<Long, String> topicControlAddresses = listAddress();<NEW_LINE>if (topicControlAddresses.contains... | "add contract address into CRUD failed, {}", retCode.toString()); |
326,793 | public static ListTenantResponse unmarshall(ListTenantResponse listTenantResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTenantResponse.setRequestId(_ctx.stringValue("ListTenantResponse.RequestId"));<NEW_LINE>listTenantResponse.setSuccess(_ctx.booleanValue("ListTenantResponse.Success"));<NEW_LINE>listTenantResponse.... | ("ListTenantResponse.Model[" + i + "].Status")); |
375,119 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "eq,neq,sqlneq,nneq".split(",");<NEW_LINE>String stmtText = "@name('s0') select " + "intPrimitive=all(select intPrimitive from SupportBean(theString like 'S%')#keepall) as eq, " <MASK><NEW_LINE>env.compileDeployAddListenerMileZero(stmtText, "s0");<... | + "intPrimitive != all (select intPrimitive from SupportBean(theString like 'S%')#keepall) as neq, " + "intPrimitive <> all (select intPrimitive from SupportBean(theString like 'S%')#keepall) as sqlneq, " + "not intPrimitive = all (select intPrimitive from SupportBean(theString like 'S%')#keepall) as nneq " + " from Su... |
907,693 | public static void horizontal5(Kernel1D_S32 kernel, GrayS16 input, GrayI16 output, int skip) {<NEW_LINE>final short[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final... | * output.stride + offsetX / skip; |
445,805 | private Callback<Void> securityPostProcessRequestCallback() {<NEW_LINE>return buildCallback(metrics.getStatsReportSecurityPostProcessRequestMetrics, securityCheckResult -> {<NEW_LINE>String clusterName = RestUtils.getHeader(restRequest.getArgs(), RestUtils.Headers.CLUSTER_NAME, true);<NEW_LINE>String reportType = RestU... | statsReportType = StatsReportType.valueOf(reportType); |
324,581 | private void parseLocation() {<NEW_LINE>LatLon loc;<NEW_LINE>LatLon additionalLoc = null;<NEW_LINE>try {<NEW_LINE>if (currentFormat == LocationConvert.UTM_FORMAT) {<NEW_LINE>double northing = Double.parseDouble(northingEdit.getText().toString());<NEW_LINE>double easting = Double.parseDouble(eastingEdit.getText().toStri... | .getText().toString(); |
282,455 | public AssociateResolverRuleResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssociateResolverRuleResult associateResolverRuleResult = new AssociateResolverRuleResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE... | JsonToken token = context.getCurrentToken(); |
1,065,801 | synchronized public int write(final long offset, final ByteBuffer data, final IReopenChannel<FileChannel> opener) throws IOException {<NEW_LINE>m_storeCounters.bufferDataWrites++;<NEW_LINE>final int data_len = data.remaining();<NEW_LINE>final int <MASK><NEW_LINE>int nwrites = 0;<NEW_LINE>final ByteBuffer m_data = this.... | slot_len = m_store.getSlotSize(data_len); |
567,609 | public Entity reloadEntityIfNeeded(Entity entity, Datasource targetDatasource) {<NEW_LINE>boolean needDynamicAttributes = false;<NEW_LINE>boolean dynamicAttributesAreLoaded = true;<NEW_LINE>if (entity instanceof BaseGenericIdEntity) {<NEW_LINE>BaseGenericIdEntity e = (BaseGenericIdEntity) entity;<NEW_LINE>dynamicAttrib... | = e.getDynamicAttributes() != null; |
74,323 | // </editor-fold>//GEN-END:initComponents<NEW_LINE>private void btnFileActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_btnFileActionPerformed<NEW_LINE>// TODO add your handling code here:<NEW_LINE>JFileChooser chooser = new JFileChooser(lastFolder);<NEW_LINE>chooser.setDialogTitle(org.open... | ().endsWith(".jar")); |
1,281,630 | public static HttpResult request(String url, List<String> headers, Map<String, String> paramValues, int connectTimeout, int readTimeout, String encoding, String method) {<NEW_LINE>HttpURLConnection conn = null;<NEW_LINE>try {<NEW_LINE>String encodedContent = encodingParams(paramValues, encoding);<NEW_LINE>url += (null ... | warn("Exception while request: {}, caused: {}", url, e); |
787,641 | public void clear(@NotNull final String queueId, final boolean shared, final int bucketIndex) {<NEW_LINE>checkNotNull(queueId, "Queue ID must not be null");<NEW_LINE>ThreadPreConditions.startsWith(SINGLE_WRITER_THREAD_PREFIX);<NEW_LINE>final Map<String, Messages> bucket = shared ? sharedBuckets[bucketIndex] : buckets[b... | decrementReferenceCounter(qos0Message.getPublishId()); |
143,640 | InMemorySpan createSpan(String operationName, List<InMemoryReference> references, Map<String, Object> tags, int maxTagSize, boolean ignoreActiveSpan, long startTimestampMicros) {<NEW_LINE>InMemorySpanContext maybeParent = parent();<NEW_LINE>if (maybeParent == null && !ignoreActiveSpan) {<NEW_LINE>// Try to infer the pa... | sampled = isSampled(traceIdHex, null); |
1,356,908 | public void scan(final byte[] startKey, final byte[] endKey, final int limit, @SuppressWarnings("unused") final boolean readOnlySafe, final boolean returnValue, final KVStoreClosure closure) {<NEW_LINE>final Timer.Context timeCtx = getTimeContext("SCAN");<NEW_LINE>final List<KVEntry> entries = Lists.newArrayList();<NEW... | = this.readWriteLock.readLock(); |
1,200,755 | public static ServerRow createServerRowHash(int rowIndex, RowType rowType, int estEleNum, Class<? extends IElement> valueClass) {<NEW_LINE>switch(rowType) {<NEW_LINE>case T_DOUBLE_SPARSE:<NEW_LINE>return new ServerIntDoubleRow(rowIndex, rowType, 0, 0, estEleNum, RouterType.HASH);<NEW_LINE>case T_FLOAT_SPARSE:<NEW_LINE>... | 0, estEleNum, RouterType.HASH); |
321,198 | public static BinaryPartAbstractImage createLinkedImagePart(OpcPackage opcPackage, Part sourcePart, URL url) throws Exception {<NEW_LINE>log.debug("Incoming url for linked image: " + url.toString());<NEW_LINE>// final param doesn't matter in this case<NEW_LINE>ImageInfo info = ensureFormatIsSupported(url, null, null, f... | (sourcePart.addTargetPart(imagePart)); |
142,577 | final ListReviewPolicyResultsForHITResult executeListReviewPolicyResultsForHIT(ListReviewPolicyResultsForHITRequest listReviewPolicyResultsForHITRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listReviewPolicyResultsForHITRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListReviewPolicyResultsForHIT"); |
312,578 | private void restoreState() {<NEW_LINE>state = Preferences.userRoot().node(PREFS_ROOT_PATH);<NEW_LINE>// restore directories history<NEW_LINE>String[] directories = getPrefsStrings(state, KEY_DIRECTORIES);<NEW_LINE>SortedComboBoxModel<File> model = new SortedComboBoxModel<>(new File[0]);<NEW_LINE>for (String dirStr : d... | showColorLumaMenuItem.setSelected(FlatThemeEditorOverlay.showLuma); |
1,453,571 | public void onClick(View v) {<NEW_LINE>final Context context = SampleActivity.this;<NEW_LINE>ColorPickerDialogBuilder.with(context).setTitle(R.string.color_dialog_title).initialColor(currentBackgroundColor).wheelType(ColorPickerView.WHEEL_TYPE.FLOWER).density(12).setOnColorChangedListener(new OnColorChangedListener() {... | (color).toUpperCase()); |
894,091 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1".split(",");<NEW_LINE>String epl = "@Name('s0') select a.theString as c0, b.theString as c1 from pattern [a=SupportBean(intPrimitive=0) and b=SupportBean(intPrimitive=1)]";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.mile... | sendSupportBean(env, "EA", 0); |
1,242,706 | public void init(Map<String, Object> conf, SinkContext context) {<NEW_LINE>sinkConfig.putAll(conf);<NEW_LINE>sinkContext = context;<NEW_LINE>// Fill the tManagerMetricsFilter according to metrics-sink-configs.yaml<NEW_LINE>Map<String, String> tmanagerMetricsType = (Map<String, String>) sinkConfig.get(KEY_TMANAGER_METRI... | String value = metricToType.getValue(); |
313,398 | public static GetHotlineGroupDetailReportResponse unmarshall(GetHotlineGroupDetailReportResponse getHotlineGroupDetailReportResponse, UnmarshallerContext _ctx) {<NEW_LINE>getHotlineGroupDetailReportResponse.setRequestId(_ctx.stringValue("GetHotlineGroupDetailReportResponse.RequestId"));<NEW_LINE>getHotlineGroupDetailRe... | (_ctx.stringValue("GetHotlineGroupDetailReportResponse.Message")); |
1,004,936 | public static ImmutableList<DiffFile> diffFiles(Path one, Path other, boolean verbose, @Nullable Map<String, String> environment) throws IOException, InsideGitDirException {<NEW_LINE>String cmdResult = new String(new FoldersDiff(verbose, environment).withZOption().withNameStatus().withNoRenames().run(one, other), Stand... | String strOp = iterator.next(); |
178,580 | public synchronized boolean registerSubscriptionUnlessAlreadyRegistered(IBaseResource theSubscription) {<NEW_LINE>Validate.notNull(theSubscription);<NEW_LINE>Optional<CanonicalSubscription> existingSubscription = <MASK><NEW_LINE>CanonicalSubscription newSubscription = mySubscriptionCanonicalizer.canonicalize(theSubscri... | hasSubscription(theSubscription.getIdElement()); |
1,319,947 | private List<SystemGraphComponent> componentsToUpgrade(GraphDatabaseService system) throws Exception {<NEW_LINE>List<SystemGraphComponent> componentsToUpgrade = new ArrayList<>();<NEW_LINE>SystemGraphComponent.executeWithFullAccess(system, tx -> components.stream().filter(c -> {<NEW_LINE>SystemGraphComponent.Status <MA... | status = c.detect(tx); |
1,409,254 | final AddRoleToDBInstanceResult executeAddRoleToDBInstance(AddRoleToDBInstanceRequest addRoleToDBInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addRoleToDBInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
280,735 | private void mergeInitStepAnswer(InitInfoAnswerElement initInfoAnswerElement, InitStepAnswerElement initStepAnswerElement, boolean summary, boolean verboseError) {<NEW_LINE>if (!summary) {<NEW_LINE>if (verboseError) {<NEW_LINE>SortedMap<String, List<BatfishStackTrace>> errors = initInfoAnswerElement.getErrors();<NEW_LI... | )).add(initStepErrors)); |
1,263,634 | Entry createEntry(ReadableArray values, int index) {<NEW_LINE>float x = index;<NEW_LINE>Entry entry;<NEW_LINE>if (ReadableType.Map.equals(values.getType(index))) {<NEW_LINE>ReadableMap map = values.getMap(index);<NEW_LINE>if (map.hasKey("x")) {<NEW_LINE>x = (float) map.getDouble("x");<NEW_LINE>}<NEW_LINE>if (map.hasKey... | ) values.getDouble(index)); |
1,409,887 | private void processMBeanInfoURLs(Map<ObjectName, String> source, String parentPath, boolean complete) {<NEW_LINE>if (complete) {<NEW_LINE>// This is the complete set of MBeanInfo URLs, so remove any elements that are not present in the new map<NEW_LINE>Set<ObjectName> missingKeys = new HashSet<ObjectName>(mbeanInfoURL... | , e.getValue())); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.