idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,510,324 | private void initComponents() {<NEW_LINE>jlKeyStore = new JLabel(res.getString("DListCertificatesKS.jlKeyStore.text"));<NEW_LINE>jcbKeyStore = new JComboBox<>(getKeystoreNames());<NEW_LINE>jcbKeyStore.setToolTipText<MASK><NEW_LINE>jcbKeyStore.setPreferredSize(new Dimension(200, 20));<NEW_LINE>jbLoadKeystore = new JButt... | (res.getString("DListCertificatesKS.jcbKeyStore.tooltip")); |
1,285,679 | public SubscriptionDiagnosticsDataType decode(SerializationContext context, UaDecoder decoder) {<NEW_LINE>NodeId sessionId = decoder.readNodeId("SessionId");<NEW_LINE>UInteger subscriptionId = decoder.readUInt32("SubscriptionId");<NEW_LINE>UByte priority = decoder.readByte("Priority");<NEW_LINE>Double publishingInterva... | latePublishRequestCount = decoder.readUInt32("LatePublishRequestCount"); |
1,207,984 | public Observable<ServiceResponseWithHeaders<Page<PoolUsageMetrics>, PoolListUsageMetricsHeaders>> listUsageMetricsNextWithServiceResponseAsync(final String nextPageLink, final PoolListUsageMetricsNextOptions poolListUsageMetricsNextOptions) {<NEW_LINE>return listUsageMetricsNextSinglePageAsync(nextPageLink, poolListUs... | (listUsageMetricsNextWithServiceResponseAsync(nextPageLink, poolListUsageMetricsNextOptions)); |
1,062,850 | public Map<String, INDArray> init(NeuralNetConfiguration conf, INDArray paramsView, boolean initializeParams) {<NEW_LINE>Map<String, INDArray> params = super.init(conf, paramsView, initializeParams);<NEW_LINE>org.deeplearning4j.nn.conf.layers.BasePretrainNetwork layerConf = (org.deeplearning4j.nn.conf.layers.BasePretra... | , nWeightParams + nOut + nIn)); |
596,085 | final UpdateFirewallPolicyResult executeUpdateFirewallPolicy(UpdateFirewallPolicyRequest updateFirewallPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFirewallPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateFirewallPolicy"); |
1,092,498 | public final // JPA2.g:417:1: simple_entity_expression : ( identification_variable | input_parameter );<NEW_LINE>JPA2Parser.simple_entity_expression_return simple_entity_expression() throws RecognitionException {<NEW_LINE>JPA2Parser.simple_entity_expression_return retval = new JPA2Parser.simple_entity_expression_return... | LT(-1), re); |
381,101 | public void run() {<NEW_LINE>final LiveCachesOverlay overlay = overlayRef.get();<NEW_LINE>if (overlay == null || overlay.isDownloading()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// get current viewport<NEW_LINE>final <MASK><NEW_LINE>// Since zoomNow is used only for local comparison purposes,<NEW_LINE>// ... | Viewport viewportNow = overlay.getViewport(); |
64,062 | public void processValidators(FacesContext context) {<NEW_LINE>if (!isRendered()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (shouldSkipChildren(context)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>pushComponentToEL(context, null);<NEW_LINE>Application app = context.getApplication();<NEW_LINE>app.publishEvent(context, PreVa... | ComponentUtils.processValidatorsOfFacetsAndChilds(this, context); |
561,354 | public void testPrimitives() {<NEW_LINE>int a = 10, b = a++, c = a--, d = ++a, e = --a, f = -a, g = +a, h = ~a, i = 1 + 1 + 2 - 5, j = (1 + 2) * (3 + 4), p = 1 / 2 * 3 % 4, r = -0x80000000, t = -(-(-1)), u = +(+(+1)), v = -(+(-1)), w = 5 - (-4);<NEW_LINE>boolean k = !(1 + 2 + 3 == 4), l = (1 + 2 != 4), m = Long.MAX_VAL... | (short) (byte) c); |
1,699,363 | public DocumentClassificationJobFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE><MASK><NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DocumentClassificationJobFilter documentClassificationJobFilter = new DocumentClassificationJ... | AwsJsonReader reader = context.getReader(); |
982,150 | public ByteBuffer apply(ByteBuffer byteBuffer) {<NEW_LINE>Map<String, HeaderValue> nonSignatureHeaders = new HashMap<>();<NEW_LINE>Instant signingInstant = requestParams.getSigningClock().instant();<NEW_LINE>nonSignatureHeaders.put(EVENT_STREAM_DATE, HeaderValue.fromTimestamp(signingInstant));<NEW_LINE>AwsCredentials s... | + toDebugString(signedMessage, true)); |
608,165 | public app.freerouting.geometry.planar.Shape transform_to_board_rel(CoordinateTransform p_coordinate_transform) {<NEW_LINE>FloatPoint[] corner_arr = new FloatPoint[this.coordinate_arr.length / 2];<NEW_LINE>double[] curr_point = new double[2];<NEW_LINE>for (int i = 0; i < corner_arr.length; ++i) {<NEW_LINE>curr_point[0]... | coordinate_arr[2 * i + 1]; |
1,178,757 | private void fillIndexCache(CacheFile cacheFile, ByteRange indexCacheMiss) {<NEW_LINE>final Releasable onCacheFillComplete = stats.addIndexCacheFill();<NEW_LINE>final Future<Integer> readFuture = cacheFile.readIfAvailableOrPending(indexCacheMiss, channel -> {<NEW_LINE>final int indexCacheMissLength = toIntBytes(indexCa... | content = BytesReference.fromByteBuffer(byteBuffer); |
1,550,999 | protected Rectangle computePopupBounds(Component parent, int px, int py, int pw, int ph) {<NEW_LINE>Toolkit toolkit = Toolkit.getDefaultToolkit();<NEW_LINE>Rectangle screenBounds;<NEW_LINE>// Calculate the desktop dimensions relative to the combo box.<NEW_LINE><MASK><NEW_LINE>Point p = new Point();<NEW_LINE>SwingUtilit... | GraphicsConfiguration gc = parent.getGraphicsConfiguration(); |
929,391 | public static URLConnection openUrlConnection(String url, Map<String, Object> headers) throws IOException {<NEW_LINE>URL src = new URL(url);<NEW_LINE><MASK><NEW_LINE>con.setRequestProperty("User-Agent", "APOC Procedures for Neo4j");<NEW_LINE>if (headers != null) {<NEW_LINE>Object method = headers.get("method");<NEW_LIN... | URLConnection con = src.openConnection(); |
1,665,390 | public void start() {<NEW_LINE>videoEncoderExecutor = Executors.newSingleThreadScheduledExecutor();<NEW_LINE>audioEncoderExecutor = Executors.newSingleThreadScheduledExecutor();<NEW_LINE>signallingExecutor = Executors.newSingleThreadScheduledExecutor();<NEW_LINE>signallingExecutor.execute(() -> {<NEW_LINE>try {<NEW_LIN... | iceServers = new ArrayList<>(); |
571,486 | private void loadNode561() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.AuditOpenSecureChannelEventType_SecurityPolicyUri, new QualifiedName(0, "SecurityPolicyUri"), new LocalizedText("en", "SecurityPolicyUri"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new... | .expanded(), false)); |
5,393 | public boolean remove(final K key) throws StoreAccessException {<NEW_LINE>checkKey(key);<NEW_LINE>removeObserver.begin();<NEW_LINE>final StoreEventSink<K, V> eventSink = eventDispatcher.eventSink();<NEW_LINE>final long now = timeSource.getTimeMillis();<NEW_LINE>final AtomicBoolean removed = new AtomicBoolean(false);<NE... | onExpiration(mappedKey, mappedValue, eventSink); |
1,673,629 | public UpdateServiceActionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateServiceActionResult updateServiceActionResult = new UpdateServiceActionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()... | JsonToken token = context.getCurrentToken(); |
926,165 | protected InputInterceptor findActiveInterceptor(EditorInfo editorInfo, ProcessedInfo processedInfo) throws UnknownEditorException, VrapperPlatformException {<NEW_LINE>IWorkbenchPart part = editorInfo.getCurrent();<NEW_LINE>InputInterceptor result;<NEW_LINE>if (part instanceof MultiPageEditorPart) {<NEW_LINE>MultiPageE... | getTopLevelEditor() + ". Unknown sub-editor type " + part); |
1,746,647 | public PublishResponse handlePublishRequest(PublishRequest publishRequest) {<NEW_LINE>final ClusterState clusterState = publishRequest.getAcceptedState();<NEW_LINE>if (clusterState.term() != getCurrentTerm()) {<NEW_LINE>logger.debug("handlePublishRequest: ignored publish request due to term mismatch (expected: [{}], ac... | ), clusterState.term()); |
471,194 | protected Object verifyInputEvent(Object inputEvent) {<NEW_LINE>if (inputEvent instanceof MotionEvent) {<NEW_LINE>MotionEvent motionEvent = (MotionEvent) inputEvent;<NEW_LINE>return new VerifiedMotionEvent(motionEvent.getDeviceId(), MILLISECONDS.toNanos(motionEvent.getEventTime()), motionEvent.getSource(), motionEvent.... | ), keyEvent.getRepeatCount()); |
906,873 | public void purgeAuditTrail(EventQueryDefinition query) {<NEW_LINE>try (Connection hbConn = ConnectionFactory.createConnection(conn.getConfig())) {<NEW_LINE>try (Table table = hbConn.getTable(AUDIT_TABLENAME)) {<NEW_LINE>query.getActionFilters().add(ACTION_CHECK_OK);<NEW_LINE>// Scan for ids<NEW_LINE>Scan scanQuery = b... | throw new AuditAccessException("Cannot search audit trail ", e); |
1,149,609 | private void updateLoadingStatus(BrokerLoadingTaskAttachment attachment) {<NEW_LINE>loadingStatus.replaceCounter(DPP_ABNORMAL_ALL, increaseCounter(DPP_ABNORMAL_ALL, attachment.getCounter(DPP_ABNORMAL_ALL)));<NEW_LINE>loadingStatus.replaceCounter(DPP_NORMAL_ALL, increaseCounter(DPP_NORMAL_ALL, attachment.getCounter(DPP_... | setTrackingUrl(attachment.getTrackingUrl()); |
666,397 | public EnableIoTLoggingParams unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EnableIoTLoggingParams enableIoTLoggingParams = new EnableIoTLoggingParams();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | class).unmarshall(context)); |
703,731 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UntagResourceRequest> request = null;<NE... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
249,101 | public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>// single-column constant<NEW_LINE>String stmtText = "@name('s0') select (select id from SupportBean_S1#length(1000) where p10='X') as ids1 from SupportBean_S0";<NEW_LINE>env.compileDeployAddListenerMile(stmtTe... | new SupportBean_S1(2, "X")); |
1,024,131 | public void onFetchCommands(FetchCommandsEvent event) {<NEW_LINE>if (fetchingMoreCommands_)<NEW_LINE>return;<NEW_LINE>if (historyPosition_ == 0) {<NEW_LINE>// This should rarely/never happen<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long startIndex = Math.max(0, historyPosition_ - COMMAND_CHUNK_SIZE);<NEW_LINE>long endIndex... | HistoryEntry> entries = toRecentCommandsList(response); |
1,498,276 | public static RequestLoginInfoResponse unmarshall(RequestLoginInfoResponse requestLoginInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>requestLoginInfoResponse.setRequestId(_ctx.stringValue("RequestLoginInfoResponse.RequestId"));<NEW_LINE>requestLoginInfoResponse.setErrorMessage(_ctx.stringValue("RequestLoginInfoRes... | ("RequestLoginInfoResponse.Data[" + i + "].CurrentUser.UserId")); |
619,284 | public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>mBinding.restaurantButtonBack.setOnClickListener(this);<NEW_LINE>mBinding.fabShowRatingDialog.setOnClickListener(this);<NEW_LINE>String restaurantId = RestaurantDetailFra... | new LinearLayoutManager(requireContext())); |
729,910 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>scField = new ShortcutTextField();<NEW_LINE>changeButton = new javax.swing.JButton();<NEW_LINE>setBackground(new java.awt.Color(204, 204, 204));<NEW_LINE>setPreferredSize(new java.... | (ShortcutCellPanel.class, "ShortcutCellPanel.changeButton.text")); |
1,432,130 | public void loadModelModifier() throws GenerateException, IOException {<NEW_LINE>ObjectMapper objectMapper = Json.mapper();<NEW_LINE>if (apiSource.isUseJAXBAnnotationProcessor()) {<NEW_LINE>JaxbAnnotationModule jaxbAnnotationModule = new JaxbAnnotationModule();<NEW_LINE>if (apiSource.isUseJAXBAnnotationProcessorAsPrima... | > apiModelPropertyAccessExclusions = apiSource.getApiModelPropertyAccessExclusions(); |
385,932 | public void remove(FieldValues fieldValues) {<NEW_LINE>Fields fields = fieldValues.getFields();<NEW_LINE>List<String<MASK><NEW_LINE>String firstField = fieldNames.get(0);<NEW_LINE>Object element = fieldValues.get(firstField);<NEW_LINE>NitriteMap<String, List<?>> indexMap = findIndexMap();<NEW_LINE>if (element == null) ... | > fieldNames = fields.getFieldNames(); |
1,730,314 | public static DescribePhysicalConnectionsResponse unmarshall(DescribePhysicalConnectionsResponse describePhysicalConnectionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePhysicalConnectionsResponse.setRequestId(_ctx.stringValue("DescribePhysicalConnectionsResponse.RequestId"));<NEW_LINE>describePhysicalConnect... | ("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].Description")); |
1,678,213 | public static void onTextureStitchPre(TextureMap map) {<NEW_LINE>for (FluidSpriteType type : FluidSpriteType.values()) {<NEW_LINE>fluidSprites.get(type).clear();<NEW_LINE>}<NEW_LINE>Map<ResourceLocation, SpriteFluidFrozen> spritesStitched = new HashMap<>();<NEW_LINE>for (Fluid fluid : FluidRegistry.getRegisteredFluids(... | spritesStitched.put(still, spriteFrozen); |
411,269 | public void addRecipes(Consumer<FinishedRecipe> consumer) {<NEW_LINE>String basePath = "factory/";<NEW_LINE>String basicPath = basePath + "basic/";<NEW_LINE>String advancedPath = basePath + "advanced/";<NEW_LINE>String elitePath = basePath + "elite/";<NEW_LINE>String ultimatePath = basePath + "ultimate/";<NEW_LINE>TagK... | getFactory(FactoryTier.BASIC, type); |
1,352,477 | public void onEvent(FlowableEvent event) {<NEW_LINE>if (isValidEvent(event)) {<NEW_LINE>Object delegate = DelegateExpressionUtil.resolveDelegateExpression(expression, new NoExecutionVariableScope());<NEW_LINE>if (delegate instanceof FlowableEventListener) {<NEW_LINE>// Cache result of isFailOnException() from delegate-... | FlowableEventListener) delegate).isFailOnException(); |
703,629 | public void createSite2SiteVpnCfgCommands(final Site2SiteVpnConnection conn, final boolean isCreate, final VirtualRouter router, final Commands cmds) {<NEW_LINE>final Site2SiteCustomerGatewayVO gw = _s2sCustomerGatewayDao.findById(conn.getCustomerGatewayId());<NEW_LINE>final Site2SiteVpnGatewayVO vpnGw = _s2sVpnGateway... | getVlanId()).getVlanGateway(); |
1,843,708 | public void add(int index, Plugin plugin) {<NEW_LINE>Element newElement;<NEW_LINE>if (plugin instanceof JDomPlugin) {<NEW_LINE>if (index == -1) {<NEW_LINE>addElement(((JDomPlugin) plugin).getJDomElement().clone(), jdomElement);<NEW_LINE>} else {<NEW_LINE>addElement(((JDomPlugin) plugin).getJDomElement().clone(), jdomEl... | setGroupId(plugin.getGroupId()); |
1,344,493 | public boolean createPoiFilter(PoiUIFilter filter, boolean forHistory) {<NEW_LINE>PoiFilterDbHelper helper = openDbHelper();<NEW_LINE>if (helper == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>helper.deleteFilter(helper.getWritableDatabase(), filter, true);<NEW_LINE>Iterator<PoiUIFilter<MASK><NEW_LINE>while (it.h... | > it = cacheTopStandardFilters.iterator(); |
1,260,857 | public com.squareup.okhttp.Call userCommunicationTokenCall(String token, String platformAgent, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path a... | localVarHeaderParams.put("Accept", localVarAccept); |
1,736,304 | private void loadNode78() {<NEW_LINE>UaMethodNode node = new UaMethodNode(this.context, Identifiers.CertificateGroupFolderType_DefaultUserTokenGroup_TrustList_SetPosition, new QualifiedName(0, "SetPosition"), new LocalizedText("en", "SetPosition"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), tru... | .expanded(), true)); |
411,473 | private CompletableFuture<Void> createExecutionFuture(Promise<Channel> channelPromise) {<NEW_LINE>CompletableFuture<Void> metricsFuture = initiateMetricsCollection();<NEW_LINE>CompletableFuture<Void> future = new CompletableFuture<>();<NEW_LINE>future.whenComplete((r, t) -> {<NEW_LINE>verifyMetricsWereCollected(metrics... | , () -> "Unable to add a task to cancel the request to channel's EventLoop", exc); |
953,378 | public void applyTo(CompilationUnit compilationUnit) {<NEW_LINE>compilationUnit.accept(new AbstractRewriter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Node rewriteMethodCall(MethodCall methodCall) {<NEW_LINE>if (!isSystemGetPropertyCall(methodCall)) {<NEW_LINE>return methodCall;<NEW_LINE>}<NEW_LINE>List<Expressio... | arguments.get(1) : null; |
360,603 | public CompletableFuture<CreateKeyValueTableStatus> createKeyValueTable(String scope, String kvtName, final KeyValueTableConfiguration kvtConfig, final long createTimestamp, final long requestId) {<NEW_LINE>Preconditions.checkNotNull(kvtConfig, "kvTableConfig");<NEW_LINE>Preconditions.checkArgument(createTimestamp >= 0... | status, timer.getElapsed()); |
281,051 | final DBCluster executeStopDBCluster(StopDBClusterRequest stopDBClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopDBClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | invoke(request, responseHandler, executionContext); |
716,557 | public static void configureDocumentationVariantWithArtifact(String variantName, @Nullable String featureName, String docsType, List<Capability> capabilities, String jarTaskName, Object artifactSource, @Nullable AdhocComponentWithVariants component, ConfigurationContainer configurations, TaskContainer tasks, ObjectFact... | featureName + "-" + docsType))); |
1,304,314 | public void insertPushEquals(int opcode, JumpInsnNode position, InsnList list) {<NEW_LINE>MethodInsnNode equalCheck = new MethodInsnNode(Opcodes.INVOKESTATIC, Type.getInternalName(BooleanHelper.class), "isEqual", Type.getMethodDescriptor(Type.INT_TYPE, Type.getType(Object.class), Type.getType(Object.class), Type.INT_TY... | list.insertBefore(position, equalCheck); |
730,797 | private void doCommand(final Iterator<String> it, final String path, final AgentCmd cmd, final Class rspType, final ReturnValueCompletion<AgentRsp> completion) {<NEW_LINE>if (!it.hasNext()) {<NEW_LINE>completion.fail(errf.stringToOperationError("an operation failed on all hosts", errors));<NEW_LINE>return;<NEW_LINE>}<N... | path, cmd, rspType, completion); |
1,139,279 | static CommandResult createReply(Packet packet, JDWPContext context) {<NEW_LINE><MASK><NEW_LINE>PacketStream reply = new PacketStream().replyPacket().id(packet.id);<NEW_LINE>long refTypeId = input.readLong();<NEW_LINE>if (verifyRefType(refTypeId, reply, context) == null) {<NEW_LINE>return new CommandResult(reply);<NEW_... | PacketStream input = new PacketStream(packet); |
569,195 | public void drawFluid(FluidStack fluid, int x, int y, int width, int height, int maxCapacity) {<NEW_LINE>if (fluid == null || fluid.getFluid() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TextureAtlasSprite sprite = FluidRenderer.getFluidTexture(fluid.getFluid(), FluidType.STILL);<NEW_LINE>mc.renderEngine.bindTextur... | 1, 1, 1, 1); |
1,124,644 | public boolean onCreate() {<NEW_LINE>checkInitAuthority(getContext());<NEW_LINE>mUriMatcher = new UriMatcher(UriMatcher.NO_MATCH);<NEW_LINE>mUriMatcher.addURI(AUTHORITY, PATH_WILDCARD + PATH_GET_ALL, GET_ALL);<NEW_LINE>mUriMatcher.addURI(AUTHORITY, PATH_WILDCARD + PATH_GET_STRING, GET_STRING);<NEW_LINE>mUriMatcher.addU... | AUTHORITY, PATH_WILDCARD + PATH_GET_BOOLEAN, GET_BOOLEAN); |
967,108 | public void visitFillArrayDataInsn(FillArrayDataInsn insn) {<NEW_LINE>SourcePosition pos = insn.getPosition();<NEW_LINE>Constant cst = insn.getConstant();<NEW_LINE>ArrayList<Constant> values = insn.getInitValues();<NEW_LINE>Rop rop = insn.getOpcode();<NEW_LINE>if (rop.getBranchingness() != Rop.BRANCH_NONE) {<NEW_LINE>t... | CodeAddress dataAddress = new CodeAddress(pos); |
694,701 | protected GridElement copyEntity(GridElement me) {<NEW_LINE>DrawPanel currentDiagram = CurrentGui.getInstance().getGui().getCurrentDiagram();<NEW_LINE>// We save the actual zoom level of the diagram and the palette<NEW_LINE>int oldZoomDiagram = currentDiagram.getHandler().getGridSize();<NEW_LINE>int oldZoomPalette = ha... | ).setGridAndZoom(oldZoomDiagram, false); |
11,156 | final DescribeGroupsResult executeDescribeGroups(DescribeGroupsRequest describeGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeGroupsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DescribeGroupsRequest> request = nu... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
742,288 | final DescribeVirtualNodeResult executeDescribeVirtualNode(DescribeVirtualNodeRequest describeVirtualNodeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeVirtualNodeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,247,301 | private void checkForConflictingValues(XMethod xMethod, CFG cfg, TypeQualifierValue<?> typeQualifierValue, TypeQualifierValueSet forwardsFact, TypeQualifierValueSet backwardsFact, Location locationToReport, Location locationWhereDoomedValueIsObserved, ValueNumberFrame vnaFrame) throws CheckedAnalysisException {<NEW_LIN... | forward = forwardsFact.getValue(vn); |
1,713,546 | private static final Node eliminateHoles(final XYPolygon polygon, Node outerNode) {<NEW_LINE>// Define a list to hole a reference to each filtered hole list.<NEW_LINE>final List<Node> holeList = new ArrayList<>();<NEW_LINE>// keep a reference to the hole<NEW_LINE>final Map<Node, XYPolygon> holeListPolygons = new HashMa... | (leftMost, holes[i]); |
1,794,990 | public static QueryParams fromQueryObject(Map<String, Object> map) {<NEW_LINE>QueryParams params = new QueryParams();<NEW_LINE>params.limit = (Integer) map.get(LIMIT);<NEW_LINE>if (map.containsKey(INDEX_START_VALUE)) {<NEW_LINE>Object indexStartValue = map.get(INDEX_START_VALUE);<NEW_LINE>params.indexStartValue = norma... | index = Index.fromQueryDefinition(indexStr); |
274,442 | public com.amazonaws.services.servicediscovery.model.DuplicateRequestException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.servicediscovery.model.DuplicateRequestException duplicateRequestException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDep... | servicediscovery.model.DuplicateRequestException(null); |
640,510 | private static void invokePostponedFormatting(@Nonnull PsiFile file, Document document, List<FormatTextRange> textRanges) {<NEW_LINE>RangeMarker[] markers = new RangeMarker[textRanges.size()];<NEW_LINE>int i = 0;<NEW_LINE>for (FormatTextRange range : textRanges) {<NEW_LINE>TextRange textRange = range.getTextRange();<NE... | (TextRange.create(marker)); |
504,838 | // </editor-fold>//GEN-END:initComponents<NEW_LINE>private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_jButton1ActionPerformed<NEW_LINE>Document targetDoc = target.getDocument();<NEW_LINE>FileObject targetDocFO = NbEditorUtilities.getFileObject(targetDoc);<NEW_LINE>SourceG... | HtmlPaletteUtilities.getRelativePath(targetDocFO, aFO); |
1,270,485 | public void write(final java.nio.ByteBuffer buf) {<NEW_LINE>try {<NEW_LINE>int startPositionMark = buf.position();<NEW_LINE>buf.position(buf.position() + 1);<NEW_LINE>int unknownsCounter = 0;<NEW_LINE>if (unknownFields == null)<NEW_LINE>unknownsCounter = Integer.MAX_VALUE;<NEW_LINE>{<NEW_LINE>com.wowd.wobly.WoblyUtils.... | putStringUTF8(buf, v1, true); |
521,171 | final CancelDetectMitigationActionsTaskResult executeCancelDetectMitigationActionsTask(CancelDetectMitigationActionsTaskRequest cancelDetectMitigationActionsTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelDetectMitigationActionsTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,699,869 | /*<NEW_LINE>* Configures vlan sub-profile for port-profile.<NEW_LINE>* - configure L2 mode for vlan sub-profile<NEW_LINE>* - configure trunk mode for vlan sub-profile<NEW_LINE>* - configure allowed VLANs for vlan sub-profile<NEW_LINE>*/<NEW_LINE>private boolean configureVlanSubProfile(int vlanId, PortProfile portProfil... | getVlanProfile().setSwitchportBasic(switchPortBasic); |
965,084 | final EnableDomainAutoRenewResult executeEnableDomainAutoRenew(EnableDomainAutoRenewRequest enableDomainAutoRenewRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableDomainAutoRenewRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,526,555 | public static GetMetaTableColumnResponse unmarshall(GetMetaTableColumnResponse getMetaTableColumnResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMetaTableColumnResponse.setRequestId(_ctx.stringValue("GetMetaTableColumnResponse.RequestId"));<NEW_LINE>getMetaTableColumnResponse.setHttpStatusCode(_ctx.integerValue("GetM... | ("GetMetaTableColumnResponse.Data.ColumnList[" + i + "].IsPrimaryKey")); |
1,083,351 | protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) {<NEW_LINE>BeanDefinitionBuilder rootBuilder = BeanDefinitionBuilder.genericBeanDefinition(MessagePublishingInterceptor.class);<NEW_LINE>BeanDefinitionBuilder spelSourceBuilder = BeanDefinitionBuilder.genericBeanDefinition(Meth... | addConstructorArgValue(spelSourceBuilder.getBeanDefinition()); |
1,604,963 | static List<SpecModelValidationError> validate(SpecModel specModel) {<NEW_LINE>if (!(specModel instanceof MountSpecModel)) {<NEW_LINE>return validateHasNoDynamicProps(specModel);<NEW_LINE>}<NEW_LINE>final List<SpecModelValidationError> validationErrors = new ArrayList<>();<NEW_LINE>final SpecMethodModel method = SpecMo... | getMethodModelWithAnnotation(specModel, OnCreateMountContent.class); |
1,684,896 | public static void applyGamma(Buffer buffer, int depth, int stride, double gamma) {<NEW_LINE>if (gamma == 1.0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(depth) {<NEW_LINE>case Frame.DEPTH_UBYTE:<NEW_LINE>flipCopyWithGamma(((ByteBuffer) buffer).asReadOnlyBuffer(), stride, (ByteBuffer) buffer, stride, <MASK><NEW_LINE... | false, gamma, false, 0); |
927,338 | public final StringconstantContext stringconstant() throws RecognitionException {<NEW_LINE>StringconstantContext _localctx = new StringconstantContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>setState(3347);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(_input.LA(1)) {<NEW_LINE>case STRING_LITERAL:... | enterRule(_localctx, 512, RULE_stringconstant); |
1,639,247 | public <T> List<ExtensionWrapper<T>> find(Class<T> type) {<NEW_LINE>log.debug("Finding extensions of extension point '{}'", type.getName());<NEW_LINE>Map<String, Set<String>> entries = getEntries();<NEW_LINE>List<ExtensionWrapper<T>> result = new ArrayList<>();<NEW_LINE>// add extensions found in classpath and plugins<... | "No extensions found for extension point '{}'", type.getName()); |
56,800 | private void determineGoBinaryAndVersion() {<NEW_LINE>if (IGNORE_LOCAL.equals(setting.getGoExecutable())) {<NEW_LINE>fetchGoDistribution();<NEW_LINE>} else if ("go".equals(setting.getGoExecutable())) {<NEW_LINE>Optional<Pair<Path, String>> binPathAndVersionOnHost = findGoBinAndVersionHost();<NEW_LINE>if (binPathAndVers... | get().getRight()); |
912,692 | /* Special serialization to handle method references */<NEW_LINE>private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {<NEW_LINE>in.defaultReadObject();<NEW_LINE>try {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Class<T> // business assumption; type parameters not checked at run... | >) SerializerHelper.readClass(in); |
220,496 | protected void createToolbar(LayoutInflater inflater, View view) {<NEW_LINE>AppBarLayout appBarLayout = (AppBarLayout) view.findViewById(R.id.appbar);<NEW_LINE>ViewCompat.setElevation(appBarLayout, 5.0f);<NEW_LINE>View toolbarContainer = currentScreenType == null ? null : UiUtilities.getInflater(getActivity(), isNightM... | inflate(currentScreenType.toolbarResId, appBarLayout); |
590,905 | final ListCoverageStatisticsResult executeListCoverageStatistics(ListCoverageStatisticsRequest listCoverageStatisticsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listCoverageStatisticsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_... | endClientExecution(awsRequestMetrics, request, response); |
1,668,061 | private void initWarmupCooldownScreens() {<NEW_LINE>// TODO read this from settings!!<NEW_LINE>screens.clear();<NEW_LINE>screenSizes.clear();<NEW_LINE>{<NEW_LINE>ArrayList<Pair<Pair<Scope, Dimension>, Formatter.Format>> screen = new ArrayList<>();<NEW_LINE>screen.add(new Pair<>(new Pair<>(Scope.ACTIVITY, Dimension.TIME... | add(screen.size()); |
903,374 | public void persistToCompletedJobAndArchiveJobTables(IMantisJobMetadata jobMeta, MantisJobStore jobStore) {<NEW_LINE>try {<NEW_LINE>Instant endedAt = jobMeta.getEndedAtInstant().orElse(Instant.now());<NEW_LINE>final CompletedJob completedJob = new CompletedJob(name, jobMeta.getJobId().getId(), null, jobMeta.getState(),... | jobMeta, e.getMessage()); |
1,010,393 | public void buildUnknownFiles(File appDir, File outFile, MetaInfo meta) throws AndrolibException {<NEW_LINE>if (meta.unknownFiles != null) {<NEW_LINE>LOGGER.info("Copying unknown files/dir...");<NEW_LINE>Map<String, String> files = meta.unknownFiles;<NEW_LINE>File tempFile = new File(outFile.getParent(), <MASK><NEW_LIN... | outFile.getName() + ".apktool_temp"); |
1,428,533 | public View onCreateTextInputView(@NonNull LayoutInflater layoutInflater, @Nullable ViewGroup viewGroup, @Nullable Bundle bundle, CalendarConstraints constraints, @NonNull final OnSelectionChangedListener<Pair<Long, Long>> listener) {<NEW_LINE>View root = layoutInflater.inflate(R.layout.mtrl_picker_text_input_date_rang... | root.getResources(), format); |
317,545 | public HttpEntity serialize(Object obj, Map<String, Object> formParams, ContentType contentType) throws ApiException {<NEW_LINE>String mimeType = contentType.getMimeType();<NEW_LINE>if (isJsonMime(mimeType)) {<NEW_LINE>try {<NEW_LINE>return new StringEntity(objectMapper.writeValueAsString(obj), contentType);<NEW_LINE>}... | (), (File) value); |
1,384,764 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String dedicatedCloudNodeName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<N... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
1,010,035 | public ResponseEntity<Void> testBodyWithQueryParamsWithHttpInfo(String query, User body) throws RestClientException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'query' is set<NEW_LINE>if (query == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missi... | final HttpHeaders localVarHeaderParams = new HttpHeaders(); |
124,351 | GroupManager.GroupActionResult addMembers(@NonNull Collection<RecipientId> newMembers, @NonNull Set<UUID> bannedMembers) throws GroupChangeFailedException, GroupInsufficientRightsException, IOException, GroupNotAMemberException, MembershipNotSuitableForV2Exception {<NEW_LINE>if (!GroupsV2CapabilityChecker.allHaveServic... | new HashSet<>(newMembers)); |
1,418,537 | public void updateFromBPartner(@NonNull final org.compiere.model.I_C_Invoice invoice) {<NEW_LINE>final BPartnerId bpartnerId = BPartnerId.ofRepoIdOrNull(invoice.getC_BPartner_ID());<NEW_LINE>if (bpartnerId == null) {<NEW_LINE>throw new FillMandatoryException("C_BPartner_ID");<NEW_LINE>}<NEW_LINE>final SOTrx soTrx = SOT... | setFrom(invoicingInfo.getBillLocation()); |
1,524,341 | public AntipatternSeveritySummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AntipatternSeveritySummary antipatternSeveritySummary = new AntipatternSeveritySummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme... | class).unmarshall(context)); |
906,040 | public static void registerType(final ModelBuilder modelBuilder) {<NEW_LINE>final ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(InputSet.class, BPMN_ELEMENT_INPUT_SET).namespaceUri(BPMN20_NS).extendsType(BaseElement.class).instanceProvider(new ModelTypeInstanceProvider<InputSet>() {<NEW_LINE><NEW_LINE>@... | DataInput.class).build(); |
202,106 | /*<NEW_LINE>* this is used internally to obtain a bitset for parent documents. We don't cache this since we never access the same reader more<NEW_LINE>* than once. There is no point in using BitsetFilterCache#BitSetProducerWarmer since we use this only as a delete by query which is<NEW_LINE>* executed on a recovery-pri... | topLevelContext = ReaderUtil.getTopLevelContext(context); |
1,385,867 | public static IRubyObject f_gcd(ThreadContext context, IRubyObject x, IRubyObject y) {<NEW_LINE>if (x instanceof RubyFixnum && y instanceof RubyFixnum && isLongMinValue((RubyFixnum) x)) {<NEW_LINE>return RubyFixnum.newFixnum(context.runtime, i_gcd(((RubyFixnum) x).getLongValue(), ((RubyFixnum) <MASK><NEW_LINE>}<NEW_LIN... | y).getLongValue())); |
1,574,663 | final ListServiceActionsResult executeListServiceActions(ListServiceActionsRequest listServiceActionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listServiceActionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListServiceActions"); |
912,650 | final DeleteApnsSandboxChannelResult executeDeleteApnsSandboxChannel(DeleteApnsSandboxChannelRequest deleteApnsSandboxChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApnsSandboxChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint"); |
1,600,413 | public Path mkdir(final Path folder, final TransferStatus status) throws BackgroundException {<NEW_LINE>final Path encrypt = vault.encrypt(session, folder, random.random(), false);<NEW_LINE>final String directoryId = encrypt.attributes().getDirectoryId();<NEW_LINE>;<NEW_LINE>// Create metadata file for directory<NEW_LI... | ("Write metadata %s for folder %s", directoryMetadataFile, folder)); |
885,030 | public void enterTip_sla(Tip_slaContext ctx) {<NEW_LINE>int <MASK><NEW_LINE>_configuration.referenceStructure(IP_SLA, Integer.toString(sla), TRACK_IP_SLA, ctx.getStart().getLine());<NEW_LINE>Track currentTrack = _configuration.getTracks().get(_currentTrack);<NEW_LINE>if (currentTrack != null && !(currentTrack instanceo... | sla = toInteger(ctx.num); |
917,117 | public GetReusableDelegationSetLimitResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>GetReusableDelegationSetLimitResult getReusableDelegationSetLimitResult = new GetReusableDelegationSetLimitResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isSta... | int originalDepth = context.getCurrentDepth(); |
333,365 | private static void parseRules(Executor executor, Handler handler, String response, FetchRulesListener fetchRulesListener) {<NEW_LINE>executor.execute(() -> {<NEW_LINE>try {<NEW_LINE>JSONArray rulesArray = new JSONObject(response).getJSONArray(JSONUtils.RULES_KEY);<NEW_LINE>ArrayList<Rule> rules = new ArrayList<>();<NE... | .getString(JSONUtils.DESCRIPTION_KEY)); |
278,851 | public void addMessageHandler(MessageHandler handler) throws IllegalStateException {<NEW_LINE>Objects.requireNonNull(handler, "MessageHandler cannot be null");<NEW_LINE>Class<? extends MessageHandler> handlerClass = handler.getClass();<NEW_LINE>boolean added = false;<NEW_LINE>if (MessageHandler.Whole.class.isAssignable... | handlerClass, MessageHandler.Partial.class); |
847,253 | public static DescribeDBInstanceTDEResponse unmarshall(DescribeDBInstanceTDEResponse describeDBInstanceTDEResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBInstanceTDEResponse.setRequestId(_ctx.stringValue("DescribeDBInstanceTDEResponse.RequestId"));<NEW_LINE>describeDBInstanceTDEResponse.setTDEStatus(_ctx.strin... | = new ArrayList<Database>(); |
673,761 | public NBTTagCompound serialize() {<NEW_LINE>NBTTagCompound nbt = new NBTTagCompound();<NEW_LINE>nbt.setString("player", player);<NEW_LINE>nbt.setInteger("inspiration", inspiration);<NEW_LINE>nbt.setInteger("inspirationStart", inspirationStart);<NEW_LINE>nbt.setInteger("placedCards", placedCards);<NEW_LINE>nbt.setInteg... | nbt.setTag("aidCards", aidCardsTag); |
691,865 | private void createImageCache(final CreateImageCacheFromVolumeSnapshotMsg msg, final NoErrorCompletion completion) {<NEW_LINE>CreateImageCacheFromVolumeSnapshotReply reply = new CreateImageCacheFromVolumeSnapshotReply();<NEW_LINE>ImageInventory image = ImageInventory.valueOf(dbf.findByUuid(msg.getImageUuid<MASK><NEW_LI... | (), ImageVO.class)); |
1,106,801 | public void removeClassPropertyIndex(final OIndex idx) {<NEW_LINE>acquireExclusiveLock();<NEW_LINE>try {<NEW_LINE>final OIndexDefinition indexDefinition = idx.getDefinition();<NEW_LINE>if (indexDefinition == null || indexDefinition.getClassName() == null)<NEW_LINE>return;<NEW_LINE>final Locale locale = getServerLocale(... | locale), copyPropertyMap(map)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.