idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,552,350 | public Status check() {<NEW_LINE>List<ProtocolServer> servers = DubboProtocol.getDubboProtocol().getServers();<NEW_LINE>if (servers == null || servers.isEmpty()) {<NEW_LINE>return new Status(Status.Level.UNKNOWN);<NEW_LINE>}<NEW_LINE>Status.Level level = Status.Level.OK;<NEW_LINE>StringBuilder buf = new StringBuilder()... | level, buf.toString()); |
147,700 | public static void printUnknown(final Set<Class<?>> classes, final String command) {<NEW_LINE>final Map<Class, Integer> distances = new HashMap<Class, Integer>();<NEW_LINE>int bestDistance = Integer.MAX_VALUE;<NEW_LINE>int bestN = 0;<NEW_LINE>// Score against all classes<NEW_LINE>for (final Class clazz : classes) {<NEW... | .format("'%s' is not a valid command. See PicardCommandLine -h for more information.", command)); |
334,472 | public List<BibDataSet> processingReferenceSection(String referenceTextBlock, ReferenceSegmenter referenceSegmenter) {<NEW_LINE>List<LabeledReferenceResult> <MASK><NEW_LINE>List<BibDataSet> results = new ArrayList<>();<NEW_LINE>List<List<LayoutToken>> allRefBlocks = new ArrayList<>();<NEW_LINE>if (segm == null || segm.... | segm = referenceSegmenter.extract(referenceTextBlock); |
592,817 | public void preferenceChange(PreferenceChangeEvent event) {<NEW_LINE>final var prefs = event.getNode();<NEW_LINE>final var prop = event.getKey();<NEW_LINE>if (prop.equals(TEMPLATE_TYPE)) {<NEW_LINE>int oldValue = templateType;<NEW_LINE>int value = prefs.getInt(TEMPLATE_TYPE, TEMPLATE_UNKNOWN);<NEW_LINE>if (value != old... | firePropertyChange(TEMPLATE, oldValue, value); |
692,935 | private <T> T run(Retryable<T> op, boolean interruptible) throws InterruptedException, RetryGiveupException {<NEW_LINE>int retryWait = initialRetryWait;<NEW_LINE>int retryCount = 0;<NEW_LINE>Exception firstException = null;<NEW_LINE>while (true) {<NEW_LINE>try {<NEW_LINE>return op.call();<NEW_LINE>} catch (Exception ex... | op.onGiveup(firstException, exception); |
1,358,562 | public List<PropertyValue> queryTitleForm(String title, Logger logger) {<NEW_LINE>title = super.capitalizeTitle(title);<NEW_LINE>String quotedTitle = title.replaceAll("\"", "").replaceAll("\\\\", "").replaceAll("\n", " ");<NEW_LINE>String rawQueryStr = // (A) fetch resources with @title label<NEW_LINE>"{\n" + " ?res r... | title, propLabel, value, valRes); |
468,591 | public RunningTaskInfo buildRunningTaskInfo(K key) {<NEW_LINE>SingleFlightContext c = getContext(key);<NEW_LINE>if (c == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TaskSingleFlightContext context = (TaskSingleFlightContext) c;<NEW_LINE>final Instant now = Instant.now();<NEW_LINE>final RunningTaskInfo info = new ... | > first = context.getFirst(); |
801,464 | protected void initShortcutActions() {<NEW_LINE>String filterApplyShortcut = clientConfig.getFilterApplyShortcut();<NEW_LINE>String filterSelectShortcut = clientConfig.getFilterSelectShortcut();<NEW_LINE>if (filter.getApplyTo() instanceof ListComponent) {<NEW_LINE>ListComponent listComponent = (ListComponent) filter.ge... | , shortcutTriggeredEvent -> applyFilter())); |
1,010,110 | private void sendOutMessages(@NotNull final List<PUBLISH> retainedPublishes) {<NEW_LINE>if (!channel.isActive()) {<NEW_LINE>for (final PUBLISH publish : retainedPublishes) {<NEW_LINE>payloadPersistence.decrementReferenceCounter(publish.getPublishId());<NEW_LINE>}<NEW_LINE>resultFuture.setException(CLOSED_CHANNEL_EXCEPT... | topic.getTopic(), clientId); |
386,890 | private void superPrePassivate(InvocationContext inv) {<NEW_LINE>try {<NEW_LINE>ResultsLocal results = ResultsLocalBean.getSFBean();<NEW_LINE>results.addPrePassivate(CLASS_NAME, "superPrePassivate");<NEW_LINE>// Validate and update context data.<NEW_LINE>Map<String, Object<MASK><NEW_LINE>String data;<NEW_LINE>if (map.c... | > map = inv.getContextData(); |
586,908 | private void initRecyclerTemplateList(WXSDKInstance instance, BasicComponentData basicComponentData, WXVContainer parent) {<NEW_LINE>updateRecyclerAttr();<NEW_LINE>mTemplateViewTypes = new ArrayMap<>();<NEW_LINE>// empty view, when template was not sended<NEW_LINE>mTemplateViewTypes.put(EMPTY_HOLDER_TEMPLATE_KEY, 0);<N... | .getAttrs().getOrientation(); |
1,824,036 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>String sessionHandle = InputParser.getQueryParamOrThrowError(req, "sessionHandle", false);<NEW_LINE>assert sessionHandle != null;<NEW_LINE>try {<NEW_LINE>JsonObject userDataInDatabase = Session.getSess... | , Utils.exceptionStacktraceToString(e)); |
77,107 | protected void doExecute(ExecutionContext context) {<NEW_LINE>CommandConsole commandConsole = context.getCommandConsole();<NEW_LINE>ManifestFileProcessor processor = new ManifestFileProcessor();<NEW_LINE>for (Map.Entry<String, Map<String, ProvisioningFeatureDefinition>> prodFeatureEntries : processor.getFeatureDefiniti... | String featureName = featureDefintion.getFeatureName(); |
495,855 | static TBigInteger consBigInteger(int bitLength, int certainty, Random rnd) {<NEW_LINE>// PRE: bitLength >= 2;<NEW_LINE>// For small numbers get a random prime from the prime table<NEW_LINE>if (bitLength <= 10) {<NEW_LINE>int<MASK><NEW_LINE>return BIprimes[rp[0] + rnd.nextInt(rp[1])];<NEW_LINE>}<NEW_LINE>int shiftCount... | [] rp = offsetPrimes[bitLength]; |
126,584 | public void release() {<NEW_LINE>if (Log.isDebugModeEnabled()) {<NEW_LINE>Log.d(TAG, "Releasing: " + this, Log.DEBUG_MODE);<NEW_LINE>}<NEW_LINE>releaseLongPressMotionEvent();<NEW_LINE>View nv = getNativeView();<NEW_LINE>if (nv != null) {<NEW_LINE>if (nv instanceof ViewGroup) {<NEW_LINE>ViewGroup vg = (ViewGroup) nv;<NE... | Drawable d = nv.getBackground(); |
679,006 | public void iteratorwhileSnippet() throws MalformedURLException {<NEW_LINE>HttpHeaders httpHeaders = new HttpHeaders().set("header1", "value1").set("header2", "value2");<NEW_LINE>HttpRequest httpRequest = new HttpRequest(HttpMethod.<MASK><NEW_LINE>String deserializedHeaders = "header1,value1,header2,value2";<NEW_LINE>I... | GET, new URL("http://localhost")); |
336,560 | public void write(Object instance, Object value) {<NEW_LINE>setAccessible();<NEW_LINE>try {<NEW_LINE>if (primitive) {<NEW_LINE>if (value == null) {<NEW_LINE>if (applyDefault == null) {<NEW_LINE>Object currentValue = read(instance, true);<NEW_LINE>applyDefault = defaultPrimitiveValue.equals(currentValue);<NEW_LINE>}<NEW... | writeMethod.invoke(instance, value); |
1,718,873 | public static DescribeRenewalPriceResponse unmarshall(DescribeRenewalPriceResponse describeRenewalPriceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRenewalPriceResponse.setRequestId(_ctx.stringValue("DescribeRenewalPriceResponse.RequestId"));<NEW_LINE>Order order = new Order();<NEW_LINE>order.setOriginalAmoun... | ("DescribeRenewalPriceResponse.Order.RuleIds[" + i + "]")); |
77,219 | public static ListEngineNamespacesResponse unmarshall(ListEngineNamespacesResponse listEngineNamespacesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listEngineNamespacesResponse.setRequestId<MASK><NEW_LINE>listEngineNamespacesResponse.setHttpCode(_ctx.stringValue("ListEngineNamespacesResponse.HttpCode"));<NEW_LINE>lis... | (_ctx.stringValue("ListEngineNamespacesResponse.RequestId")); |
1,307,925 | private boolean invariant() {<NEW_LINE>// initializingShards must consistent with that in shards<NEW_LINE>Collection<ShardRouting> shardRoutingsInitializing = StreamSupport.stream(shards.spliterator(), false).filter(ShardRouting::initializing).collect(Collectors.toList());<NEW_LINE>assert initializingShards.size() == s... | () == shardRoutingsRelocating.size(); |
129,874 | public com.amazonaws.services.migrationhubrefactorspaces.model.ValidationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.migrationhubrefactorspaces.model.ValidationException validationException = new com.amazonaws.services.migrationhubrefactorspaces.mo... | int originalDepth = context.getCurrentDepth(); |
11,874 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>int width = MeasureSpec.getSize(widthMeasureSpec);<NEW_LINE>int height = MeasureSpec.getSize(heightMeasureSpec);<NEW_LINE>float y = 0;<NEW_LINE>float consumedHeight;<NEW_LINE>float textMargin = DisplayUtils.dpToPx(getContext(), TEXT_MARGIN... | getContext(), TrendRecyclerView.ITEM_MARGIN_BOTTOM_DIP); |
1,062,268 | final void onExecuteWrite(@NonNull final BluetoothGattServer server, @NonNull final BluetoothDevice device, final int requestId, final boolean execute) {<NEW_LINE>log(Log.DEBUG, () -> "[Server callback] Execute write request (requestId=" + requestId + ", execute=" + execute + ")");<NEW_LINE>if (execute) {<NEW_LINE>fina... | characteristic, value.second) || startNextRequest; |
815,093 | private Mono<PagedResponse<AvailableServiceAliasInner>> listSinglePageAsync(String location, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (location == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter location is require... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
697,880 | public Collection<DynamicRecord> remove(long labelId, NodeStore nodeStore, CursorContext cursorContext, StoreCursors storeCursors, MemoryTracker memoryTracker) {<NEW_LINE>nodeStore.ensureHeavy(node, firstDynamicLabelRecordId(node<MASK><NEW_LINE>long[] existingLabelIds = getDynamicLabelsArray(node.getUsedDynamicLabelRec... | .getLabelField()), storeCursors); |
891,831 | private static void processOutputLimitedViewDefaultCodegen(ResultSetProcessorRowForAllForge forge, CodegenClassScope classScope, CodegenMethod method, CodegenInstanceAux instance) {<NEW_LINE>CodegenMethod getSelectListEventAddList = getSelectListEventsAddListCodegen(forge, classScope, instance);<NEW_LINE>CodegenMethod ... | ), ref("oldEventsArr"))); |
432,873 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String hubName, String predictionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalAr... | error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); |
901,466 | public OperationResult<Rows<K, C>> execute() throws ConnectionException {<NEW_LINE>final AtomicReference<ConnectionException> reference = new AtomicReference<ConnectionException>(null);<NEW_LINE>final List<Row<K, C>> list = Collections.synchronizedList(new LinkedList<Row<K, C>>());<NEW_LINE>RowCallback<K, C> rowCallbac... | <K, C>(list); |
316,251 | public void bind(@NonNull final Object data, final int index, @NonNull final RecyclerView.ViewHolder holder) {<NEW_LINE>final Object item = getItems(data).get(index);<NEW_LINE>final View view = holder.itemView;<NEW_LINE>final ViewDataBinding viewDataBinding = DataBindingUtil.bind(view);<NEW_LINE>final Integer <MASK><NE... | itemVariable = itemId.apply(item); |
46,192 | private static String[] splitWorker(final String str, final char separatorChar, final boolean preserveAllTokens) {<NEW_LINE>// Performance tuned for 2.0 (JDK1.4)<NEW_LINE>if (str == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int len = str.length();<NEW_LINE>if (len == 0) {<NEW_LINE>return ArrayUtils.EMPTY_STRING... | toArray(new String[0]); |
1,829,886 | final AddThingToThingGroupResult executeAddThingToThingGroup(AddThingToThingGroupRequest addThingToThingGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addThingToThingGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,425,374 | // For a normal container, initializeNoDependenceConfig must succeed<NEW_LINE>public void initializeNoDependenceConfig() throws Exception {<NEW_LINE>yarnConfig = new YarnConfiguration();<NEW_LINE>frameworkName = CommonUtils.getEnvironmentVariable(GlobalConstants.ENV_VAR_FRAMEWORK_NAME);<NEW_LINE>// frameworkVersion and... | CommonUtils.getEnvironmentVariable(GlobalConstants.ENV_VAR_CONTAINER_ID); |
1,287,160 | private boolean addBreaksToActivityMap() {<NEW_LINE>boolean hasBreaks = false;<NEW_LINE>Set<String> <MASK><NEW_LINE>for (Vehicle v : uniqueVehicles) {<NEW_LINE>if (v.getBreak() != null) {<NEW_LINE>if (!uniqueBreakIds.add(v.getBreak().getId()))<NEW_LINE>throw new IllegalArgumentException("The vehicle routing roblem alre... | uniqueBreakIds = new HashSet<>(); |
1,275,021 | private Method findSuperclassMethod(@DottedClassName String superclassName, Method subclassMethod) throws ClassNotFoundException {<NEW_LINE>String methodName = subclassMethod.getName();<NEW_LINE>Type[] subArgs = null;<NEW_LINE>JavaClass <MASK><NEW_LINE>Method[] methods = superClass.getMethods();<NEW_LINE>outer: for (Me... | superClass = Repository.lookupClass(superclassName); |
83,037 | void loadIncludesExcludes(IncludeExcludeVisualizer v) {<NEW_LINE>Set<File> roots = new HashSet<File>();<NEW_LINE>for (DefaultTableModel model : new DefaultTableModel[] { SOURCE_ROOTS_MODEL, TEST_ROOTS_MODEL }) {<NEW_LINE>for (Object row : model.getDataVector()) {<NEW_LINE>File d = (File) ((Vector) row).elementAt(0);<NE... | roots.size()])); |
1,680,038 | private void pushBoundsToOuter() {<NEW_LINE>InferenceContext18 outer = this.outerContext;<NEW_LINE>if (outer != null && outer.stepCompleted >= APPLICABILITY_INFERRED) {<NEW_LINE>// need to wait till after overload resolution?<NEW_LINE>boolean deferred = outer.currentInvocation instanceof Invocation;<NEW_LINE>BoundSet t... | .copy() : this.currentBounds; |
1,232,893 | private void openGooglePlayPage(String packageName) throws android.content.ActivityNotFoundException {<NEW_LINE>String pName = packageName.equals("com.android.webview") ? "com.google.android.webview" : packageName;<NEW_LINE>try {<NEW_LINE>Intent intent = new Intent(Intent.ACTION_VIEW, Uri<MASK><NEW_LINE>intent.addFlags... | .parse("market://details?id=" + pName)); |
168,315 | public static ListApiMsgRecordsResponse unmarshall(ListApiMsgRecordsResponse listApiMsgRecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listApiMsgRecordsResponse.setRequestId(_ctx.stringValue("ListApiMsgRecordsResponse.RequestId"));<NEW_LINE>listApiMsgRecordsResponse.setPageIndex<MASK><NEW_LINE>listApiMsgRecordsRe... | (_ctx.integerValue("ListApiMsgRecordsResponse.PageIndex")); |
1,539,879 | public boolean canHandle(TSSCompoundSecMechConfig requirement) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {<NEW_LINE>Tr.debug(tc, "canHandle()");<NEW_LINE>Tr.debug(tc, " CSS SUPPORTS: " + ConfigUtil.flags(supports));<NEW_LINE>Tr.debug(tc, " CSS REQUIRES: " + ConfigUtil.flags(requi... | (requirement.getRequires())); |
210,480 | public void onReceive(Context context, Intent intent) {<NEW_LINE>String action = intent.getAction();<NEW_LINE>if (ACTION_USB_PERMISSION.equals(action)) {<NEW_LINE>Log.d(TAG, "Requesting permission for USB device.");<NEW_LINE>synchronized (this) {<NEW_LINE>UsbDevice device = (UsbDevice) intent.getParcelableExtra(UsbMana... | fDesc = usbDeviceManager.getFileDescriptorForUsbDevice(device); |
335,454 | public static SocketAddress parseServerSocketAddress(String value) {<NEW_LINE>if (value.startsWith(UNIX_DOMAIN_SOCKET_PREFIX)) {<NEW_LINE>DomainSocketAddress domainAddress = parseUnixSocketAddress(value);<NEW_LINE>File file = new File(domainAddress.path());<NEW_LINE>try {<NEW_LINE>if (file.createNewFile()) {<NEW_LINE>/... | value.split(":", 2); |
769,627 | private void writeEverything() {<NEW_LINE>acceptInTransaction(statement -> {<NEW_LINE>final Write dataWriteOperations = statement.dataWrite();<NEW_LINE>for (PrimitiveIntIterator it = iterable.iterator(); it.hasNext(); ) {<NEW_LINE>final int id = it.next();<NEW_LINE>// build int array<NEW_LINE>final int[] data = new int... | = allCommunities[i][id]; |
1,827,227 | // Print CPPCODE method header.<NEW_LINE>private String generateCPPMethodheader(CppCodeProduction p) {<NEW_LINE>StringBuffer sig = new StringBuffer();<NEW_LINE>String ret, params;<NEW_LINE>Token t = null;<NEW_LINE>String method_name = p.getLhs();<NEW_LINE>boolean void_ret = false;<NEW_LINE>boolean ptr_ret = false;<NEW_... | (codeGenerator.getStringToPrint(t)); |
532,494 | public void updateCodegenPropertyEnum(CodegenProperty var) {<NEW_LINE>Map<String, Object> allowableValues = var.allowableValues;<NEW_LINE>// handle array<NEW_LINE>if (var.mostInnerItems != null) {<NEW_LINE>allowableValues = var.mostInnerItems.allowableValues;<NEW_LINE>}<NEW_LINE>if (allowableValues == null) {<NEW_LINE>... | () : var.getVendorExtensions(); |
281,791 | public Object instantiateItem(ViewGroup container, int position) {<NEW_LINE>if (bound == null || bound.getBridges().size() <= position) {<NEW_LINE>Log.w(TAG, "Activity not bound when creating TerminalView.");<NEW_LINE>}<NEW_LINE>TerminalBridge bridge = bound.getBridges().get(position);<NEW_LINE>bridge.promptHelper.setH... | findViewById(R.id.terminal_name_overlay); |
283,845 | private void generate15Client(boolean isJsr109Platform, ProgressHandle handle) throws IOException {<NEW_LINE>// !PW Get client support from project (from first page of wizard)<NEW_LINE>JAXWSClientSupport jaxWsClientSupport = null;<NEW_LINE>if (project != null) {<NEW_LINE>jaxWsClientSupport = JAXWSClientSupport.getJaxWs... | ), wsdlUrl, packageName, isJsr109Platform); |
629,931 | public void run() {<NEW_LINE>Bitmap resizedBitmap = null;<NEW_LINE>if (bitmap.getWidth() % 2 == 1) {<NEW_LINE>resizedBitmap = Bitmap.createBitmap(bitmap.getWidth() + 1, bitmap.getHeight(), Bitmap.Config.ARGB_8888);<NEW_LINE>resizedBitmap.<MASK><NEW_LINE>Canvas can = new Canvas(resizedBitmap);<NEW_LINE>can.drawARGB(0x00... | setDensity(bitmap.getDensity()); |
972,300 | public void processMessage(PeerConnection peer, TronMessage msg) throws P2pException {<NEW_LINE>ChainInventoryMessage chainInventoryMessage = (ChainInventoryMessage) msg;<NEW_LINE>check(peer, chainInventoryMessage);<NEW_LINE>peer.setNeedSyncFromPeer(true);<NEW_LINE>peer.setSyncChainRequested(null);<NEW_LINE>Deque<Block... | getSyncBlockToFetch().addAll(blockIdWeGet); |
897,409 | public RowChange buildPartial() {<NEW_LINE>RowChange result = new RowChange(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>to_bitField0_ |= 0x00000001;<NEW_LINE>}<NEW_LINE>result.tableId_ = tableId_;<NEW_LINE>if (... | util.Collections.unmodifiableList(rowDatas_); |
533,757 | public void executeUpgrade() throws DotDataException, DotRuntimeException {<NEW_LINE>// Run upgrade as usual<NEW_LINE>super.executeUpgrade();<NEW_LINE>// For Oracle the Alter (DDL) needs to be executed on a different connection<NEW_LINE>Connection conn = null;<NEW_LINE>try {<NEW_LINE>if (DbConnectionFactory.isOracle())... | final DotConnect db = new DotConnect(); |
11,312 | public com.amazonaws.services.backupgateway.model.InternalServerException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.backupgateway.model.InternalServerException internalServerException = new com.amazonaws.services.backupgateway.model.InternalServerException... | JsonToken token = context.getCurrentToken(); |
660,357 | public static long[] decimalToULong(DecimalStructure from) {<NEW_LINE>int bufPos = 0;<NEW_LINE>long x = 0;<NEW_LINE>int intg, frac;<NEW_LINE>long to;<NEW_LINE>if (from.isNeg()) {<NEW_LINE>return new long[] { 0L, E_DEC_OVERFLOW };<NEW_LINE>}<NEW_LINE>for (intg = from.getIntegers(); intg > 0; intg -= DIG_PER_DEC1) {<NEW_... | long[] { to, E_DEC_OK }; |
282,998 | public Request<AttachThingPrincipalRequest> marshall(AttachThingPrincipalRequest attachThingPrincipalRequest) {<NEW_LINE>if (attachThingPrincipalRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(AttachThingPrincipalRequest)");<NEW_LINE>}<NEW_LINE>Request<AttachThingPrincip... | (attachThingPrincipalRequest.getThingName())); |
1,269,134 | public EventLogEntryEntity generateEventLogEntry(CommandContext commandContext) {<NEW_LINE>FlowableEntityWithVariablesEvent eventWithVariables = (FlowableEntityWithVariablesEvent) event;<NEW_LINE>ExecutionEntity processInstanceEntity = (ExecutionEntity) eventWithVariables.getEntity();<NEW_LINE>Map<String, Object> data ... | NAME, processInstanceEntity.getName()); |
837,798 | public PushBuilder newPushBuilder() {<NEW_LINE>String methodName = "newPushBuilder";<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) {<NEW_LINE>// 306998.15<NEW_LINE>logger.entering(<MASK><NEW_LINE>}<NEW_LINE>IRequest40 iRequest = (IRequest40) getIRequest();<NEW_LINE>if (!((Http2Requ... | CLASS_NAME, methodName, "this -> " + this); |
1,699,486 | private static void testEquals() {<NEW_LINE>// equals<NEW_LINE>assertTrue(B.equals(B));<NEW_LINE>assertTrue(B.equals(new Byte((byte) 1)));<NEW_LINE>assertTrue(D.equals(D));<NEW_LINE>assertTrue(D.equals(new Double(1.0)));<NEW_LINE>assertTrue(F.equals(F));<NEW_LINE>assertTrue(F.equals(new Float(1.0f)));<NEW_LINE>assertTr... | (new Boolean(true))); |
919,586 | public boolean place(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) {<NEW_LINE>int side = faces[face.getIndex()];<NEW_LINE>int bid = this.getSide(BlockFace.fromIndex(faces2[<MASK><NEW_LINE>if ((!target.isTransparent() || bid == GLASS || bid == STAINED_GLASS) && fac... | side])).getId(); |
1,500,782 | public io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate result = new io.kubernetes.client.proto.V1.PersistentVolumeClaimTemplate(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if ... | .spec_ = specBuilder_.build(); |
1,466,989 | public void register(SettingsRegistry.SettingKey<?> key) {<NEW_LINE>Object value;<NEW_LINE>if (configuration != null) {<NEW_LINE>if (key.getDefault() instanceof Boolean) {<NEW_LINE>value = configuration.get(key.getCategory(), key.getKey(), (Boolean) key.getDefault()).getBoolean();<NEW_LINE>} else if (key.getDefault() i... | getDefault()).getDouble(); |
542,503 | private Mono<Tuple2<Message<Object>, RequestEntity<?>>> buildMessage(RequestEntity<?> httpEntity, ServerWebExchange exchange) {<NEW_LINE>ServerHttpRequest request = exchange.getRequest();<NEW_LINE>MultiValueMap<String, String> requestParams = request.getQueryParams();<NEW_LINE>EvaluationContext <MASK><NEW_LINE>Object p... | evaluationContext = buildEvaluationContext(httpEntity, exchange); |
996,455 | public static void initBuiltins(FunctionSet functionSet) {<NEW_LINE>for (Type t : Type.getNumericTypes()) {<NEW_LINE>functionSet.addBuiltin(ScalarFunction.createBuiltinOperator(Operator.MULTIPLY.getName(), Lists.newArrayList(t, t), t));<NEW_LINE>functionSet.addBuiltin(ScalarFunction.createBuiltinOperator(Operator.ADD.g... | DECIMALV2), Type.DECIMALV2)); |
1,147,426 | public List<List<String>> groupAnagrams(String[] strs) {<NEW_LINE>if (strs == null || strs.length == 0)<NEW_LINE>return new ArrayList<List<String>>();<NEW_LINE>int listIndex = 0;<NEW_LINE>List<List<String>> result = new ArrayList<>();<NEW_LINE>Map<String, Integer> anagramGroup = new HashMap<>();<NEW_LINE>for (String st... | ] chars = str.toCharArray(); |
430,868 | public void processLinkageTable(String pltName, Address minAddress, Address maxAddress, TaskMonitor monitor) throws CancelledException {<NEW_LINE>try {<NEW_LINE>// Disassemble section.<NEW_LINE>// Disassembly is only done so we can see all instructions since many<NEW_LINE>// of them are unreachable after applying reloc... | count = convertSymbolsToExternalFunctions(minAddress, maxAddress); |
698,803 | private void fetchRequests(RequestRegistrationCallback<GetOperation> requestRegistrationCallback) {<NEW_LINE>Iterator<ReplicaId> replicaIterator = operationTracker.getReplicaIterator();<NEW_LINE>while (replicaIterator.hasNext()) {<NEW_LINE>ReplicaId replicaId = replicaIterator.next();<NEW_LINE>String hostname = replica... | getDataNodeId().getDatacenterName()); |
914,549 | public void propertyChange(final PropertyChangeEvent pEvent) {<NEW_LINE>assert pEvent != null;<NEW_LINE><MASK><NEW_LINE>// Get last revision number from TT-storage.<NEW_LINE>final JFileChooser fileChooser = (JFileChooser) pEvent.getSource();<NEW_LINE>final File tmpDir = fileChooser.getSelectedFile();<NEW_LINE>long revN... | assert pEvent.getSource() instanceof JFileChooser; |
937,347 | ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String modelFlag, String workId) throws Exception {<NEW_LINE>logger.debug(effectivePerson, "modelFlag:{}, workId:{}.", modelFlag, workId);<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult... | ExceptionEntityNotExist(modelFlag, Model.class); |
1,804,218 | final CreateModelResult executeCreateModel(CreateModelRequest createModelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createModelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateModel"); |
1,694,356 | public void displayAvailableTrackingNumber(ActionRequest request, ActionResponse response) {<NEW_LINE>Context context = request.getContext();<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>LinkedHashMap<String, Object> stockMoveLineMap = (LinkedHashMap<String, Object>) context.get("_stockMoveLine");<NEW_LINE>@Suppres... | stockMoveLine.getProduct(), trackingNumber); |
557,953 | public void prompt(final String hostname, final List<X509Certificate> certificates) throws ConnectionCanceledException {<NEW_LINE>final SecPolicyRef policyRef = SecurityFunctions.library.SecPolicyCreateSSL(true, hostname);<NEW_LINE>final PointerByReference reference = new PointerByReference();<NEW_LINE>SecurityFunction... | SecTrustRef(reference.getValue()); |
342,658 | private AuthenticationStatus handleAuthorizationHeader(String authHeader, Subject clientSubject, HttpMessageContext httpMessageContext) throws AuthenticationException {<NEW_LINE>AuthenticationStatus status = AuthenticationStatus.SEND_FAILURE;<NEW_LINE>int rspStatus = HttpServletResponse.SC_FORBIDDEN;<NEW_LINE>// the fo... | 0], values[1]); |
1,662,710 | protected void determineCoverageGoals(boolean updateArchive) {<NEW_LINE>List<BranchCoverageTestFitness> goals = new BranchCoverageFactory().getCoverageGoals();<NEW_LINE>for (BranchCoverageTestFitness goal : goals) {<NEW_LINE>// Skip instrumented branches - we only want real branches<NEW_LINE>if (goal.getBranch() != nul... | goal.getMethod(), goal); |
1,492,970 | public static boolean isMeasureSpecCompatible(int oldSizeSpec, int sizeSpec, int oldMeasuredSize) {<NEW_LINE>final int newSpecMode = <MASK><NEW_LINE>final int newSpecSize = View.MeasureSpec.getSize(sizeSpec);<NEW_LINE>final int oldSpecMode = View.MeasureSpec.getMode(oldSizeSpec);<NEW_LINE>final int oldSpecSize = View.M... | View.MeasureSpec.getMode(sizeSpec); |
625,236 | protected OptionParser buildOptionParser() {<NEW_LINE>OptionParser parser = new OptionParser();<NEW_LINE>parser.accepts("config", "location of config.properties file").withRequiredArg();<NEW_LINE>parser.accepts("env_config", "json object encoded config in an environment variable").withRequiredArg();<NEW_LINE>parser.acc... | "log_level", "log level, one of DEBUG|INFO|WARN|ERROR. default: WARN").withRequiredArg(); |
409,773 | public com.amazonaws.services.savingsplans.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.savingsplans.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = con... | savingsplans.model.ResourceNotFoundException(null); |
1,366,832 | protected List<String> gatherCompletedFlows(List<String> completedActivityInstances, List<String> currentActivityinstances, BpmnModel pojoModel) {<NEW_LINE>List<String> completedFlows = new ArrayList<>();<NEW_LINE>List<String> activities = new ArrayList<>(completedActivityInstances);<NEW_LINE>if (currentActivityinstanc... | indexOf(activity.getId()); |
1,491,164 | protected void read(Map<Integer, ByteBuffer> tags) {<NEW_LINE>for (Iterator<Entry<Integer, ByteBuffer>> it = tags.entrySet().iterator(); it.hasNext(); ) {<NEW_LINE>Entry<Integer, ByteBuffer> entry = it.next();<NEW_LINE><MASK><NEW_LINE>switch(entry.getKey()) {<NEW_LINE>case 0x4401:<NEW_LINE>packageUID = UL.read(_bb);<NE... | ByteBuffer _bb = entry.getValue(); |
1,755,389 | public void paintComponent(java.awt.Graphics g) {<NEW_LINE>if (res.isOverrideMode()) {<NEW_LINE>if (res.isOverridenResource(getText())) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>if (charged) {<NEW_LINE>DELETE_ICON.paintIcon(this, g, getWidth() - <MASK><NEW_LINE>} else {<NEW_LINE>Graphics2D g2d = (Graphics2D) g.creat... | X_ICON.getIconWidth(), 0); |
1,748,165 | public int unpRead(byte[] addr, int offset, int count) throws IOException, RarException {<NEW_LINE>int retCode = 0, totalRead = 0;<NEW_LINE>while (count > 0) {<NEW_LINE>int readSize = (count > unpPackedSize) ? (int) unpPackedSize : count;<NEW_LINE>retCode = inputStream.read(addr, offset, readSize);<NEW_LINE>if (retCode... | archive, archive.getVolume()); |
687,671 | private void drawStone(Graphics2D g, Graphics2D gShadow, int centerX, int centerY, Stone color, int x, int y) {<NEW_LINE>// g.setRenderingHint(KEY_ALPHA_INTERPOLATION,<NEW_LINE>// VALUE_ALPHA_INTERPOLATION_QUALITY);<NEW_LINE>g.setRenderingHint(KEY_INTERPOLATION, VALUE_INTERPOLATION_BILINEAR);<NEW_LINE>g.setRenderingHin... | 255, 255) : Color.WHITE; |
900,297 | public Iterator<Double> call(Iterator<DataSet> iterator) throws Exception {<NEW_LINE>if (!iterator.hasNext()) {<NEW_LINE>return Collections.emptyIterator();<NEW_LINE>}<NEW_LINE>MultiLayerNetwork network = new MultiLayerNetwork(MultiLayerConfiguration.fromJson(jsonConfig.getValue()));<NEW_LINE>network.init();<NEW_LINE>I... | data = DataSet.merge(collect); |
2,709 | public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ResultSet1NoneNoHavingNoJoin());<NEW_LINE>execs<MASK><NEW_LINE>execs.add(new ResultSet3NoneHavingNoJoin());<NEW_LINE>execs.add(new ResultSet4NoneHavingJoin());<NEW_LINE>... | .add(new ResultSet2NoneNoHavingJoin()); |
1,370,791 | private static EditorTextField createTextField(@Nonnull final Project project, @Nonnull final ProjectSystemId externalSystemId) {<NEW_LINE>ExternalSystemManager<?, ?, ?, ?, ?> manager = ExternalSystemApiUtil.getManager(externalSystemId);<NEW_LINE>assert manager != null;<NEW_LINE>final AbstractExternalSystemLocalSetting... | .getKey().getPath(); |
979,677 | // old javadoc style check which doesn't include all leading comments into declaration<NEW_LINE>// for backward compatibility with 2.1 DOM<NEW_LINE>@Override<NEW_LINE>public void checkComment() {<NEW_LINE>// discard obsolete comments while inside methods or fields initializer (see bug 74369)<NEW_LINE>if (!(this.diet &&... | == null || commentSourceEnd > this.lastJavadocEnd; |
301,756 | public byte[] persistJsonToBytes(ClassLoader classLoader, String str) throws ParseException {<NEW_LINE>final byte[] bytes;<NEW_LINE>if (format == Format.PERSISTABLE) {<NEW_LINE>throw new SafeIllegalArgumentException("Tried to pass json into a persistable type.");<NEW_LINE>} else if (format == Format.PERSISTER) {<NEW_LI... | .build().toByteArray(); |
686,497 | private BlockNode parseBlock(Token token, Parser parser, TokenStream stream) {<NEW_LINE>if (stream.current().test(Token.Type.TEXT)) {<NEW_LINE>Token textToken = stream.expect(Token.Type.TEXT);<NEW_LINE>if (textToken.getValue().trim().length() > 0) {<NEW_LINE>throw new ParserException(null, "A template that extends anot... | ), stream.getFilename()); |
127,129 | // for quick UI testing<NEW_LINE>public static void main(String[] args) throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {<NEW_LINE>if (!fxAvailable) {<NEW_LINE>System.out.println("JavaFX not available");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW... | String[] { "jks" })); |
1,819,849 | public Mono<Response<Flux<ByteBuffer>>> cancelWithResponseAsync(String resourceGroupName, String vmScaleSetName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (re... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
401,761 | private static MethodSpec.Builder addParametersToStaticTriggerMethods(ClassName contextClassName, SpecMethodModel<EventMethod, EventDeclarationModel> eventMethodModel, MethodSpec.Builder eventTriggerMethod) {<NEW_LINE>for (int i = 0, size = eventMethodModel.methodParams.size(); i < size; i++) {<NEW_LINE>final MethodPar... | ()).build()); |
786,354 | public static ListSecurityPoliciesResponse unmarshall(ListSecurityPoliciesResponse listSecurityPoliciesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSecurityPoliciesResponse.setRequestId(_ctx.stringValue("ListSecurityPoliciesResponse.RequestId"));<NEW_LINE>listSecurityPoliciesResponse.setMaxResults(_ctx.integerVal... | ("ListSecurityPoliciesResponse.SecurityPolicies[" + i + "].SecurityPolicyStatus")); |
55,498 | public static void convertJsonToOutParameters(JsonNode objectNode, BaseElement baseElement) {<NEW_LINE>JsonNode parametersNode = getProperty(PROPERTY_EVENT_REGISTRY_OUT_PARAMETERS, objectNode);<NEW_LINE>parametersNode = CmmnJsonConverterUtil.validateIfNodeIsTextual(parametersNode);<NEW_LINE>if (parametersNode != null &... | addExtensionAttribute("source", eventName, extensionElement); |
672,356 | static AuthInitiateMessage decode(byte[] wire) {<NEW_LINE>AuthInitiateMessage message = new AuthInitiateMessage();<NEW_LINE>int offset = 0;<NEW_LINE>byte[] r = new byte[32];<NEW_LINE>byte[] s = new byte[32];<NEW_LINE>System.arraycopy(wire, offset, r, 0, 32);<NEW_LINE>offset += 32;<NEW_LINE>System.arraycopy(wire, offset... | ] bytes = new byte[65]; |
308,464 | private void reverseGeocode(Point point) {<NEW_LINE>final ListenableFuture<List<GeocodeResult>> results = mLocatorTask.reverseGeocodeAsync(point, mReverseGeocodeParameters);<NEW_LINE>try {<NEW_LINE>List<GeocodeResult> geocodeResults = results.get();<NEW_LINE>if (!geocodeResults.isEmpty()) {<NEW_LINE>// get the top resu... | Toast.LENGTH_LONG).show(); |
290,318 | public static ListDevopsProjectTaskFlowStatusResponse unmarshall(ListDevopsProjectTaskFlowStatusResponse listDevopsProjectTaskFlowStatusResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDevopsProjectTaskFlowStatusResponse.setRequestId(_ctx.stringValue("ListDevopsProjectTaskFlowStatusResponse.RequestId"));<NEW_LINE>lis... | ("ListDevopsProjectTaskFlowStatusResponse.Object[" + i + "].Name")); |
18,908 | public void add(Node node) {<NEW_LINE>float x = node.x();<NEW_LINE>float y = node.y();<NEW_LINE><MASK><NEW_LINE>// Get the rectangle occupied by the node<NEW_LINE>double nxmin = x - (radius * ratio + margin);<NEW_LINE>double nxmax = x + (radius * ratio + margin);<NEW_LINE>double nymin = y - (radius * ratio + margin);<N... | float radius = node.size(); |
581,922 | private Pair<IndexMultiKey, EventTableAndNamePair> addIndex(QueryPlanIndexItem indexItem, Iterable<EventBean> prefilledEvents, EventType indexedType, String indexName, String indexModuleName, AgentInstanceContext agentInstanceContext, DataInputOutputSerde optionalValueSerde) {<NEW_LINE>// not resolved as full match and... | ), indexName, optionalValueSerde, false); |
1,597,764 | public static GetExperimentTaskResponse unmarshall(GetExperimentTaskResponse getExperimentTaskResponse, UnmarshallerContext _ctx) {<NEW_LINE>getExperimentTaskResponse.setRequestId(_ctx.stringValue("GetExperimentTaskResponse.RequestId"));<NEW_LINE>getExperimentTaskResponse.setExperimentId(_ctx.stringValue("GetExperiment... | ("GetExperimentTaskResponse.Activities[" + i + "].TaskId")); |
698,088 | private I_C_Order copyProposalHeader(@NonNull final I_C_Order fromProposal) {<NEW_LINE>final I_C_Order newSalesOrder = InterfaceWrapperHelper.copy().setFrom(fromProposal).setSkipCalculatedColumns(true).copyToNew(I_C_Order.class);<NEW_LINE><MASK><NEW_LINE>newSalesOrder.setC_DocType_ID(newOrderDocTypeId.getRepoId());<NEW... | orderBL.setDocTypeTargetIdAndUpdateDescription(newSalesOrder, newOrderDocTypeId); |
402,307 | public boolean onOptionsItemSelected(@NonNull MenuItem item) {<NEW_LINE>if (super.onOptionsItemSelected(item)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>final int itemId = item.getItemId();<NEW_LINE>if (itemId == R.id.refresh_item) {<NEW_LINE>AutoUpdateManager.runImmediate(requireContext());<NEW_LINE>return true;<NEW... | string.mark_all_read_msg, Toast.LENGTH_SHORT); |
571,411 | // Object Not Supported Reply Message indicates that the target<NEW_LINE>// server does not recognize or support the object<NEW_LINE>// specified as data in an OBJDSS for the command associated<NEW_LINE>// with the object.<NEW_LINE>// The OBJNSPRM is also returned if an object is found in a<NEW_LINE>// valid collection... | throwMissingRequiredCodepoint("CODPNT", CodePoint.CODPNT); |
1,721,588 | public void serialize(ByteBuffer buffer) {<NEW_LINE>ByteBuffer buf = buffer.order() == LITTLE_ENDIAN ? buffer : buffer.slice().order(LITTLE_ENDIAN);<NEW_LINE>int startOffset;<NEW_LINE>boolean hasrun = hasRunCompression();<NEW_LINE>if (hasrun) {<NEW_LINE>buf.putInt(SERIAL_COOKIE | ((size - 1) << 16));<NEW_LINE>int offse... | .getCardinality() - 1)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.