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 JButton();<NEW_LINE>jbLoadKeystore.setIcon(new ImageIcon(getClass().getResource("images/open.png")));<NEW_LINE>jbLoadKeystore.setToolTipText(res.getString("DListCertificatesKS.jbLoadKeystore.tooltip"));<NEW_LINE>jListCertificates = new JListCertificates();<NEW_LINE>jbOK = new JButton(res.getString("DListCertificatesKS.jbOK.text"));<NEW_LINE>jbCancel = new JButton(res.getString("DListCertificatesKS.jbCancel.text"));<NEW_LINE>jbCancel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), CANCEL_KEY);<NEW_LINE>JPanel jpButtons = PlatformUtil.createDialogButtonPanel(jbOK, jbCancel);<NEW_LINE>Container pane = getContentPane();<NEW_LINE>pane.setLayout(new MigLayout("insets dialog, fill", "[right]unrel[]", "[]unrel[]"));<NEW_LINE>pane.add(jlKeyStore);<NEW_LINE>pane.add(jcbKeyStore);<NEW_LINE>pane.add(jbLoadKeystore, "wrap");<NEW_LINE>pane.add(jListCertificates, "spanx, growx, wrap");<NEW_LINE>pane.add(new JSeparator(), "spanx, growx, wrap");<NEW_LINE>pane.add(jpButtons, "right, spanx");<NEW_LINE>jcbKeyStore.addActionListener(evt -> {<NEW_LINE>updateCertificateControls();<NEW_LINE>});<NEW_LINE>jbLoadKeystore.addActionListener(evt -> {<NEW_LINE>OpenAction openAction = new OpenAction(kseFrame);<NEW_LINE>openAction.actionPerformed(evt);<NEW_LINE>populate();<NEW_LINE>pack();<NEW_LINE>});<NEW_LINE>jbOK.addActionListener(evt -> okPressed());<NEW_LINE>jbCancel.addActionListener(evt -> cancelPressed());<NEW_LINE>populate();<NEW_LINE>setResizable(false);<NEW_LINE>getRootPane().setDefaultButton(jbOK);<NEW_LINE>pack();<NEW_LINE>} | (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 publishingInterval = decoder.readDouble("PublishingInterval");<NEW_LINE>UInteger maxKeepAliveCount = decoder.readUInt32("MaxKeepAliveCount");<NEW_LINE>UInteger maxLifetimeCount = decoder.readUInt32("MaxLifetimeCount");<NEW_LINE>UInteger maxNotificationsPerPublish = decoder.readUInt32("MaxNotificationsPerPublish");<NEW_LINE>Boolean publishingEnabled = decoder.readBoolean("PublishingEnabled");<NEW_LINE>UInteger modifyCount = decoder.readUInt32("ModifyCount");<NEW_LINE>UInteger enableCount = decoder.readUInt32("EnableCount");<NEW_LINE>UInteger disableCount = decoder.readUInt32("DisableCount");<NEW_LINE>UInteger republishRequestCount = decoder.readUInt32("RepublishRequestCount");<NEW_LINE>UInteger republishMessageRequestCount = decoder.readUInt32("RepublishMessageRequestCount");<NEW_LINE>UInteger republishMessageCount = decoder.readUInt32("RepublishMessageCount");<NEW_LINE>UInteger transferRequestCount = decoder.readUInt32("TransferRequestCount");<NEW_LINE>UInteger transferredToAltClientCount = decoder.readUInt32("TransferredToAltClientCount");<NEW_LINE>UInteger transferredToSameClientCount = decoder.readUInt32("TransferredToSameClientCount");<NEW_LINE>UInteger publishRequestCount = decoder.readUInt32("PublishRequestCount");<NEW_LINE>UInteger dataChangeNotificationsCount = decoder.readUInt32("DataChangeNotificationsCount");<NEW_LINE>UInteger eventNotificationsCount = decoder.readUInt32("EventNotificationsCount");<NEW_LINE>UInteger notificationsCount = decoder.readUInt32("NotificationsCount");<NEW_LINE>UInteger <MASK><NEW_LINE>UInteger currentKeepAliveCount = decoder.readUInt32("CurrentKeepAliveCount");<NEW_LINE>UInteger currentLifetimeCount = decoder.readUInt32("CurrentLifetimeCount");<NEW_LINE>UInteger unacknowledgedMessageCount = decoder.readUInt32("UnacknowledgedMessageCount");<NEW_LINE>UInteger discardedMessageCount = decoder.readUInt32("DiscardedMessageCount");<NEW_LINE>UInteger monitoredItemCount = decoder.readUInt32("MonitoredItemCount");<NEW_LINE>UInteger disabledMonitoredItemCount = decoder.readUInt32("DisabledMonitoredItemCount");<NEW_LINE>UInteger monitoringQueueOverflowCount = decoder.readUInt32("MonitoringQueueOverflowCount");<NEW_LINE>UInteger nextSequenceNumber = decoder.readUInt32("NextSequenceNumber");<NEW_LINE>UInteger eventQueueOverflowCount = decoder.readUInt32("EventQueueOverflowCount");<NEW_LINE>return new SubscriptionDiagnosticsDataType(sessionId, subscriptionId, priority, publishingInterval, maxKeepAliveCount, maxLifetimeCount, maxNotificationsPerPublish, publishingEnabled, modifyCount, enableCount, disableCount, republishRequestCount, republishMessageRequestCount, republishMessageCount, transferRequestCount, transferredToAltClientCount, transferredToSameClientCount, publishRequestCount, dataChangeNotificationsCount, eventNotificationsCount, notificationsCount, latePublishRequestCount, currentKeepAliveCount, currentLifetimeCount, unacknowledgedMessageCount, discardedMessageCount, monitoredItemCount, disabledMonitoredItemCount, monitoringQueueOverflowCount, nextSequenceNumber, eventQueueOverflowCount);<NEW_LINE>} | 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, poolListUsageMetricsNextOptions).concatMap(new Func1<ServiceResponseWithHeaders<Page<PoolUsageMetrics>, PoolListUsageMetricsHeaders>, Observable<ServiceResponseWithHeaders<Page<PoolUsageMetrics>, PoolListUsageMetricsHeaders>>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Observable<ServiceResponseWithHeaders<Page<PoolUsageMetrics>, PoolListUsageMetricsHeaders>> call(ServiceResponseWithHeaders<Page<PoolUsageMetrics>, PoolListUsageMetricsHeaders> page) {<NEW_LINE>String nextPageLink = page.body().nextPageLink();<NEW_LINE>if (nextPageLink == null) {<NEW_LINE>return Observable.just(page);<NEW_LINE>}<NEW_LINE>return Observable.just(page).concatWith<MASK><NEW_LINE>}<NEW_LINE>});<NEW_LINE>} | (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.BasePretrainNetwork) conf.getLayer();<NEW_LINE>val nIn = layerConf.getNIn();<NEW_LINE>val nOut = layerConf.getNOut();<NEW_LINE>val nWeightParams = nIn * nOut;<NEW_LINE>INDArray visibleBiasView = paramsView.get(NDArrayIndex.interval(0, 0, true), NDArrayIndex.interval(nWeightParams + nOut<MASK><NEW_LINE>params.put(VISIBLE_BIAS_KEY, createVisibleBias(conf, visibleBiasView, initializeParams));<NEW_LINE>conf.addVariable(VISIBLE_BIAS_KEY);<NEW_LINE>return params;<NEW_LINE>} | , nWeightParams + nOut + nIn)); |
596,085 | final UpdateFirewallPolicyResult executeUpdateFirewallPolicy(UpdateFirewallPolicyRequest updateFirewallPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFirewallPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UpdateFirewallPolicyRequest> request = null;<NEW_LINE>Response<UpdateFirewallPolicyResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new UpdateFirewallPolicyRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(updateFirewallPolicyRequest));<NEW_LINE>// Binds the request metrics to the current request.<NEW_LINE>request.setAWSRequestMetrics(awsRequestMetrics);<NEW_LINE>request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);<NEW_LINE>request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Network Firewall");<NEW_LINE>request.<MASK><NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<UpdateFirewallPolicyResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UpdateFirewallPolicyResultJsonUnmarshaller());<NEW_LINE>response = invoke(request, responseHandler, executionContext);<NEW_LINE>return response.getAwsResponse();<NEW_LINE>} finally {<NEW_LINE>endClientExecution(awsRequestMetrics, request, response);<NEW_LINE>}<NEW_LINE>} | 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();<NEW_LINE>retval.start = input.LT(1);<NEW_LINE>Object root_0 = null;<NEW_LINE>ParserRuleReturnScope identification_variable440 = null;<NEW_LINE>ParserRuleReturnScope input_parameter441 = null;<NEW_LINE>try {<NEW_LINE>// JPA2.g:418:5: ( identification_variable | input_parameter )<NEW_LINE>int alt116 = 2;<NEW_LINE>int LA116_0 = input.LA(1);<NEW_LINE>if ((LA116_0 == GROUP || LA116_0 == WORD)) {<NEW_LINE>alt116 = 1;<NEW_LINE>} else if ((LA116_0 == NAMED_PARAMETER || LA116_0 == 63 || LA116_0 == 77)) {<NEW_LINE>alt116 = 2;<NEW_LINE>} else {<NEW_LINE>if (state.backtracking > 0) {<NEW_LINE>state.failed = true;<NEW_LINE>return retval;<NEW_LINE>}<NEW_LINE>NoViableAltException nvae = new NoViableAltException("", 116, 0, input);<NEW_LINE>throw nvae;<NEW_LINE>}<NEW_LINE>switch(alt116) {<NEW_LINE>case 1:<NEW_LINE>// JPA2.g:418:7: identification_variable<NEW_LINE>{<NEW_LINE>root_0 = (Object) adaptor.nil();<NEW_LINE>pushFollow(FOLLOW_identification_variable_in_simple_entity_expression3860);<NEW_LINE>identification_variable440 = identification_variable();<NEW_LINE>state._fsp--;<NEW_LINE>if (state.failed)<NEW_LINE>return retval;<NEW_LINE>if (state.backtracking == 0)<NEW_LINE>adaptor.addChild(root_0, identification_variable440.getTree());<NEW_LINE>}<NEW_LINE>break;<NEW_LINE>case 2:<NEW_LINE>// JPA2.g:419:7: input_parameter<NEW_LINE>{<NEW_LINE>root_0 = (Object) adaptor.nil();<NEW_LINE>pushFollow(FOLLOW_input_parameter_in_simple_entity_expression3868);<NEW_LINE>input_parameter441 = input_parameter();<NEW_LINE>state._fsp--;<NEW_LINE>if (state.failed)<NEW_LINE>return retval;<NEW_LINE>if (state.backtracking == 0)<NEW_LINE>adaptor.addChild(root_0, input_parameter441.getTree());<NEW_LINE>}<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>retval.stop = input.LT(-1);<NEW_LINE>if (state.backtracking == 0) {<NEW_LINE>retval.tree = (Object) adaptor.rulePostProcessing(root_0);<NEW_LINE>adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);<NEW_LINE>}<NEW_LINE>} catch (RecognitionException re) {<NEW_LINE>reportError(re);<NEW_LINE>recover(input, re);<NEW_LINE>retval.tree = (Object) adaptor.errorNode(input, retval.start, input.<MASK><NEW_LINE>} finally {<NEW_LINE>// do for sure before leaving<NEW_LINE>}<NEW_LINE>return retval;<NEW_LINE>} | 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>// it is ok to use the Google Maps compatible zoom level of OSM Maps<NEW_LINE>final int zoomNow = overlay.getMapZoomLevel();<NEW_LINE>// check if map moved or zoomed<NEW_LINE>// TODO Portree Use Rectangle inside with bigger search window. That will stop reloading on every move<NEW_LINE>final boolean moved = overlay.isInvalidated() || previousCycleViewport == null || zoomNow != previousZoom || previousMoveViewport == null || mapMoved(previousMoveViewport, viewportNow);<NEW_LINE>// save new values<NEW_LINE>if (moved) {<NEW_LINE>final long currentTime = System.currentTimeMillis();<NEW_LINE>if (1000 < (currentTime - lastMovedTimestamp)) {<NEW_LINE>overlay.downloading = true;<NEW_LINE>previousZoom = zoomNow;<NEW_LINE>overlay.download();<NEW_LINE>previousMoveViewport = viewportNow;<NEW_LINE>lastMovedTimestamp = System.currentTimeMillis();<NEW_LINE>}<NEW_LINE>} else if (!previousCycleViewport.equals(viewportNow)) {<NEW_LINE>overlay.updateTitle();<NEW_LINE>}<NEW_LINE>previousCycleViewport = viewportNow;<NEW_LINE>} catch (final Exception e) {<NEW_LINE>Log.w("LiveCachesOverlay.startLoadtimer.start", e);<NEW_LINE>} finally {<NEW_LINE>overlay.refreshed();<NEW_LINE>overlay.downloading = false;<NEW_LINE>}<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, PreValidateEvent.class, this);<NEW_LINE>if (isRepeating()) {<NEW_LINE>process(context, PhaseId.PROCESS_VALIDATIONS);<NEW_LINE>} else {<NEW_LINE>if (isDynamic()) {<NEW_LINE>for (int i = 0; i < getChildCount(); i++) {<NEW_LINE>UIComponent child = getChildren().get(i);<NEW_LINE>if (child instanceof Tab) {<NEW_LINE>Tab tab = (Tab) child;<NEW_LINE>if (tab.isLoaded()) {<NEW_LINE>tab.processValidators(context);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>// check if an validation error forces the render response for our data<NEW_LINE>if (context.getRenderResponse()) {<NEW_LINE>_isValidChilds = false;<NEW_LINE>}<NEW_LINE>app.publishEvent(context, PostValidateEvent.class, this);<NEW_LINE>popComponentFromEL(context);<NEW_LINE>} | 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_VALUE != 9223372036854776833d;<NEW_LINE>double o = ((5 + 1) / 2) - 0.0;<NEW_LINE>a = a << 31L;<NEW_LINE>a <<= 1L;<NEW_LINE>a += 1L;<NEW_LINE>a /= 1L;<NEW_LINE>// if not expanded and performed in double result will change.<NEW_LINE>a += Double.MAX_VALUE;<NEW_LINE>((k)) |= true;<NEW_LINE>short s = 10;<NEW_LINE>k = ++s == 10;<NEW_LINE>int q = 3 >> 2;<NEW_LINE>q = 3 >>> 2;<NEW_LINE>byte x = (byte) (((short) a + (byte) (short) b) * <MASK><NEW_LINE>char y = 'y';<NEW_LINE>Long z = 121L;<NEW_LINE>k = y == z;<NEW_LINE>} | (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 DocumentClassificationJobFilter();<NEW_LINE>reader.beginObject();<NEW_LINE>while (reader.hasNext()) {<NEW_LINE>String name = reader.nextName();<NEW_LINE>if (name.equals("JobName")) {<NEW_LINE>documentClassificationJobFilter.setJobName(StringJsonUnmarshaller.getInstance().unmarshall(context));<NEW_LINE>} else if (name.equals("JobStatus")) {<NEW_LINE>documentClassificationJobFilter.setJobStatus(StringJsonUnmarshaller.getInstance().unmarshall(context));<NEW_LINE>} else if (name.equals("SubmitTimeBefore")) {<NEW_LINE>documentClassificationJobFilter.setSubmitTimeBefore(DateJsonUnmarshaller.getInstance().unmarshall(context));<NEW_LINE>} else if (name.equals("SubmitTimeAfter")) {<NEW_LINE>documentClassificationJobFilter.setSubmitTimeAfter(DateJsonUnmarshaller.getInstance().unmarshall(context));<NEW_LINE>} else {<NEW_LINE>reader.skipValue();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>reader.endObject();<NEW_LINE>return documentClassificationJobFilter;<NEW_LINE>} | 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 sanitizedCredentials = sanitizeCredentials(credentials);<NEW_LINE>byte[] signingKey = deriveSigningKey(sanitizedCredentials, signingInstant, requestParams.getRegionName(), requestParams.getServiceSigningName());<NEW_LINE>byte[] payload = byteBuffer.array();<NEW_LINE>byte[] signatureBytes = signEventStream(priorSignature, signingKey, signingInstant, requestParams, nonSignatureHeaders, payload);<NEW_LINE>priorSignature = BinaryUtils.toHex(signatureBytes);<NEW_LINE>Map<String, HeaderValue> headers = new HashMap<>(nonSignatureHeaders);<NEW_LINE>// Signature headers<NEW_LINE>headers.put(EVENT_STREAM_SIGNATURE, HeaderValue.fromByteArray(signatureBytes));<NEW_LINE>Message signedMessage = new Message(sortHeaders(headers), payload);<NEW_LINE>if (LOG.isLoggingLevelEnabled("trace")) {<NEW_LINE>LOG.trace(() -> "Signed message: " + toDebugString(signedMessage, false));<NEW_LINE>} else {<NEW_LINE>LOG.debug(() -> "Signed message: " <MASK><NEW_LINE>}<NEW_LINE>return signedMessage.toByteBuffer();<NEW_LINE>} | + 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] = this.coordinate_arr[2 * i];<NEW_LINE>curr_point[1] = this.<MASK><NEW_LINE>corner_arr[i] = p_coordinate_transform.dsn_to_board_rel(curr_point);<NEW_LINE>}<NEW_LINE>double offset = p_coordinate_transform.dsn_to_board(this.width) / 2;<NEW_LINE>if (corner_arr.length <= 2) {<NEW_LINE>IntOctagon bounding_oct = FloatPoint.bounding_octagon(corner_arr);<NEW_LINE>return bounding_oct.enlarge(offset);<NEW_LINE>}<NEW_LINE>IntPoint[] rounded_corner_arr = new IntPoint[corner_arr.length];<NEW_LINE>for (int i = 0; i < corner_arr.length; ++i) {<NEW_LINE>rounded_corner_arr[i] = corner_arr[i].round();<NEW_LINE>}<NEW_LINE>app.freerouting.geometry.planar.Shape result = new app.freerouting.geometry.planar.PolygonShape(rounded_corner_arr);<NEW_LINE>if (offset > 0) {<NEW_LINE>result = result.bounding_tile().enlarge(offset);<NEW_LINE>}<NEW_LINE>return result;<NEW_LINE>} | 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(indexCacheMiss.length());<NEW_LINE>// We assume that we only cache small portions of blobs so that we do not need to:<NEW_LINE>// - use a BigArrays for allocation<NEW_LINE>// - use an intermediate copy buffer to read the file in sensibly-sized chunks<NEW_LINE>// - release the buffer once the indexing operation is complete<NEW_LINE>final ByteBuffer byteBuffer = ByteBuffer.allocate(indexCacheMissLength);<NEW_LINE>Channels.readFromFileChannelWithEofException(channel, indexCacheMiss.start(), byteBuffer);<NEW_LINE>// NB use Channels.readFromFileChannelWithEofException not readCacheFile() to avoid counting this in the stats<NEW_LINE>byteBuffer.flip();<NEW_LINE>final BytesReference <MASK><NEW_LINE>directory.putCachedBlob(fileInfo.physicalName(), indexCacheMiss, content, new ActionListener<>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onResponse(Void response) {<NEW_LINE>onCacheFillComplete.close();<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onFailure(Exception e1) {<NEW_LINE>onCacheFillComplete.close();<NEW_LINE>}<NEW_LINE>});<NEW_LINE>return indexCacheMissLength;<NEW_LINE>});<NEW_LINE>if (readFuture == null) {<NEW_LINE>// Normally doesn't happen, we're already obtaining a range covering all cache misses above, but theoretically<NEW_LINE>// possible in the case that the real populateAndRead call already failed to obtain this range of the file. In that<NEW_LINE>// case, simply move on.<NEW_LINE>onCacheFillComplete.close();<NEW_LINE>}<NEW_LINE>} | 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>SwingUtilities.convertPointFromScreen(p, parent);<NEW_LINE>if (gc != null) {<NEW_LINE>Insets screenInsets = toolkit.getScreenInsets(gc);<NEW_LINE>screenBounds = gc.getBounds();<NEW_LINE>screenBounds.width -= (screenInsets.left + screenInsets.right);<NEW_LINE>screenBounds.height -= (screenInsets.top + screenInsets.bottom);<NEW_LINE>screenBounds.x += (p.x + screenInsets.left);<NEW_LINE>screenBounds.y += (p.y + screenInsets.top);<NEW_LINE>} else {<NEW_LINE>screenBounds = new Rectangle(p, toolkit.getScreenSize());<NEW_LINE>}<NEW_LINE>Rectangle rect = new Rectangle(px, py, pw, ph);<NEW_LINE>if (py + ph > screenBounds.y + screenBounds.height && ph < screenBounds.height) {<NEW_LINE>rect.y = -rect.height;<NEW_LINE>}<NEW_LINE>return rect;<NEW_LINE>} | 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_LINE>if (method != null && con instanceof HttpURLConnection) {<NEW_LINE>HttpURLConnection http = (HttpURLConnection) con;<NEW_LINE>http.setRequestMethod(method.toString());<NEW_LINE>http.setChunkedStreamingMode(1024 * 1024);<NEW_LINE>http.setInstanceFollowRedirects(true);<NEW_LINE>}<NEW_LINE>headers.forEach((k, v) -> con.setRequestProperty(k, v == null ? "" : v.toString()));<NEW_LINE>}<NEW_LINE>// con.setDoInput(true);<NEW_LINE>con.setConnectTimeout(apocConfig().getInt("apoc.http.timeout.connect", 10_000));<NEW_LINE>con.setReadTimeout(apocConfig().getInt("apoc.http.timeout.read", 60_000));<NEW_LINE>return con;<NEW_LINE>} | 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_LINE>peerConnectionFactory = createPeerConnectionFactory();<NEW_LINE>List<IceServer> <MASK><NEW_LINE>iceServers.add(IceServer.builder(getStunServerUri()).createIceServer());<NEW_LINE>PeerConnection.RTCConfiguration rtcConfig = new PeerConnection.RTCConfiguration(iceServers);<NEW_LINE>// Enable DTLS for normal calls and disable for loopback calls.<NEW_LINE>rtcConfig.enableDtlsSrtp = true;<NEW_LINE>rtcConfig.minPort = portRangeMin;<NEW_LINE>rtcConfig.maxPort = portRangeMax;<NEW_LINE>rtcConfig.tcpCandidatePolicy = tcpCandidatesEnabled ? TcpCandidatePolicy.ENABLED : TcpCandidatePolicy.DISABLED;<NEW_LINE>peerConnection = peerConnectionFactory.createPeerConnection(rtcConfig, RTMPAdaptor.this);<NEW_LINE>webSocketCommunityHandler.sendStartMessage(getStreamId(), getSession());<NEW_LINE>videoEncoderFuture = videoEncoderExecutor.scheduleWithFixedDelay(this::encodeVideo, 10, 10, TimeUnit.MILLISECONDS);<NEW_LINE>audioEncoderFuture = audioEncoderExecutor.scheduleWithFixedDelay(this::encodeAudio, 10, 10, TimeUnit.MILLISECONDS);<NEW_LINE>started = true;<NEW_LINE>} catch (Exception e) {<NEW_LINE>logger.error(ExceptionUtils.getStackTrace(e));<NEW_LINE>}<NEW_LINE>});<NEW_LINE>} | 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 DataValue(Variant.NULL_VALUE), Identifiers.String, -1, new UInteger[] {}, UByte.valueOf(1), UByte.valueOf(1), 0.0, false);<NEW_LINE>node.addReference(new Reference(Identifiers.AuditOpenSecureChannelEventType_SecurityPolicyUri, Identifiers.HasTypeDefinition, Identifiers.PropertyType.expanded(), true));<NEW_LINE>node.addReference(new Reference(Identifiers.AuditOpenSecureChannelEventType_SecurityPolicyUri, Identifiers.HasModellingRule, Identifiers.ModellingRule_Mandatory.expanded(), true));<NEW_LINE>node.addReference(new Reference(Identifiers.AuditOpenSecureChannelEventType_SecurityPolicyUri, Identifiers.HasProperty, Identifiers.AuditOpenSecureChannelEventType<MASK><NEW_LINE>this.nodeManager.addNode(node);<NEW_LINE>} | .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);<NEW_LINE>try {<NEW_LINE>backingMap().computeIfPresent(key, (mappedKey, mappedValue) -> {<NEW_LINE>if (mappedValue != null && mappedValue.isExpired(now)) {<NEW_LINE><MASK><NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (mappedValue != null) {<NEW_LINE>removed.set(true);<NEW_LINE>eventSink.removed(mappedKey, mappedValue);<NEW_LINE>}<NEW_LINE>return null;<NEW_LINE>});<NEW_LINE>eventDispatcher.releaseEventSink(eventSink);<NEW_LINE>if (removed.get()) {<NEW_LINE>removeObserver.end(StoreOperationOutcomes.RemoveOutcome.REMOVED);<NEW_LINE>} else {<NEW_LINE>removeObserver.end(StoreOperationOutcomes.RemoveOutcome.MISS);<NEW_LINE>}<NEW_LINE>return removed.get();<NEW_LINE>} catch (RuntimeException re) {<NEW_LINE>eventDispatcher.releaseEventSinkAfterFailure(eventSink, re);<NEW_LINE>throw handleException(re);<NEW_LINE>}<NEW_LINE>} | 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();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MASK><NEW_LINE>if (token == null)<NEW_LINE>token = context.nextToken();<NEW_LINE>if (token == VALUE_NULL) {<NEW_LINE>return updateServiceActionResult;<NEW_LINE>}<NEW_LINE>while (true) {<NEW_LINE>if (token == null)<NEW_LINE>break;<NEW_LINE>if (token == FIELD_NAME || token == START_OBJECT) {<NEW_LINE>if (context.testExpression("ServiceActionDetail", targetDepth)) {<NEW_LINE>context.nextToken();<NEW_LINE>updateServiceActionResult.setServiceActionDetail(ServiceActionDetailJsonUnmarshaller.getInstance().unmarshall(context));<NEW_LINE>}<NEW_LINE>} else if (token == END_ARRAY || token == END_OBJECT) {<NEW_LINE>if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {<NEW_LINE>if (context.getCurrentDepth() <= originalDepth)<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>token = context.nextToken();<NEW_LINE>}<NEW_LINE>return updateServiceActionResult;<NEW_LINE>} | 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>MultiPageEditorPart mPart = (MultiPageEditorPart) part;<NEW_LINE>int activePage = mPart.getActivePage();<NEW_LINE>try {<NEW_LINE>IEditorPart subPart = (IEditorPart) METHOD_GET_EDITOR.invoke(mPart, activePage);<NEW_LINE>result = interceptors.get(subPart);<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new VrapperPlatformException("Failed to get active input interceptor for " + editorInfo.getTopLevelEditor(), e);<NEW_LINE>}<NEW_LINE>} else if (part instanceof MultiEditor) {<NEW_LINE>MultiEditor multiEditor = (MultiEditor) part;<NEW_LINE>result = interceptors.get(multiEditor.getActiveEditor());<NEW_LINE>} else if (part instanceof AbstractTextEditor) {<NEW_LINE>result = interceptors.get(part);<NEW_LINE>} else {<NEW_LINE>throw new UnknownEditorException("Cannot find active input interceptor for editor " + editorInfo.<MASK><NEW_LINE>}<NEW_LINE>if (result == null) {<NEW_LINE>throw new UnknownEditorException("Cannot find active input interceptor for editor " + editorInfo.getTopLevelEditor() + ". Possibly on an unsupported tab.");<NEW_LINE>}<NEW_LINE>return result;<NEW_LINE>} | 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: [{}], actual: [{}])", getCurrentTerm(), clusterState.term());<NEW_LINE>throw new CoordinationStateRejectedException("incoming term " + clusterState.term() + " does not match current term " + getCurrentTerm());<NEW_LINE>}<NEW_LINE>if (clusterState.term() == getLastAcceptedTerm() && clusterState.version() <= getLastAcceptedVersion()) {<NEW_LINE>logger.debug("handlePublishRequest: ignored publish request due to version mismatch (expected: >[{}], actual: [{}])", getLastAcceptedVersion(), clusterState.version());<NEW_LINE>throw new CoordinationStateRejectedException("incoming version " + clusterState.version() + " lower or equal to current version " + getLastAcceptedVersion());<NEW_LINE>}<NEW_LINE>logger.trace("handlePublishRequest: accepting publish request for version [{}] and term [{}]", clusterState.version(<MASK><NEW_LINE>persistedState.setLastAcceptedState(clusterState);<NEW_LINE>assert getLastAcceptedState() == clusterState;<NEW_LINE>return new PublishResponse(clusterState.term(), clusterState.version());<NEW_LINE>} | ), 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.getDisplayId(), motionEvent.getRawX(), motionEvent.getRawY(), motionEvent.getActionMasked(), MILLISECONDS.toNanos(motionEvent.getDownTime()), motionEvent.getFlags(), motionEvent.getMetaState(), motionEvent.getButtonState());<NEW_LINE>} else if (inputEvent instanceof KeyEvent) {<NEW_LINE>KeyEvent keyEvent = (KeyEvent) inputEvent;<NEW_LINE>return new VerifiedKeyEvent(keyEvent.getDeviceId(), MILLISECONDS.toNanos(keyEvent.getEventTime()), keyEvent.getSource(), keyEvent.getDisplayId(), keyEvent.getAction(), MILLISECONDS.toNanos(keyEvent.getDownTime()), keyEvent.getFlags(), keyEvent.getKeyCode(), keyEvent.getScanCode(), keyEvent.getMetaState(<MASK><NEW_LINE>} else {<NEW_LINE>throw new IllegalArgumentException("unknown input event: " + inputEvent.getClass().getName());<NEW_LINE>}<NEW_LINE>} | ), 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 = buildQuery(query, Util.set(COL_EVENT_UID), null);<NEW_LINE>List<Delete> list = new ArrayList<Delete>();<NEW_LINE>try (ResultScanner scanner = table.getScanner(scanQuery)) {<NEW_LINE>for (Result rr = scanner.next(); rr != null; rr = scanner.next()) {<NEW_LINE>list.add(new Delete(rr.getValue(B_AUDIT_CF, B_EVENT_UID)));<NEW_LINE>}<NEW_LINE>}<NEW_LINE>table.delete(list);<NEW_LINE>}<NEW_LINE>} catch (IOException e) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>} | 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_NORMAL_ALL)));<NEW_LINE>loadingStatus.replaceCounter(UNSELECTED_ROWS, increaseCounter(UNSELECTED_ROWS, attachment.getCounter(UNSELECTED_ROWS)));<NEW_LINE>if (attachment.getTrackingUrl() != null) {<NEW_LINE>loadingStatus.<MASK><NEW_LINE>}<NEW_LINE>commitInfos.addAll(attachment.getCommitInfoList());<NEW_LINE>errorTabletInfos.addAll(attachment.getErrorTabletInfos());<NEW_LINE>progress = (int) ((double) finishedTaskIds.size() / idToTasks.size() * 100);<NEW_LINE>if (progress == 100) {<NEW_LINE>progress = 99;<NEW_LINE>}<NEW_LINE>} | 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>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token == null)<NEW_LINE>token = context.nextToken();<NEW_LINE>if (token == VALUE_NULL) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>while (true) {<NEW_LINE>if (token == null)<NEW_LINE>break;<NEW_LINE>if (token == FIELD_NAME || token == START_OBJECT) {<NEW_LINE>if (context.testExpression("roleArnForLogging", targetDepth)) {<NEW_LINE>context.nextToken();<NEW_LINE>enableIoTLoggingParams.setRoleArnForLogging(context.getUnmarshaller(String.<MASK><NEW_LINE>}<NEW_LINE>if (context.testExpression("logLevel", targetDepth)) {<NEW_LINE>context.nextToken();<NEW_LINE>enableIoTLoggingParams.setLogLevel(context.getUnmarshaller(String.class).unmarshall(context));<NEW_LINE>}<NEW_LINE>} else if (token == END_ARRAY || token == END_OBJECT) {<NEW_LINE>if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {<NEW_LINE>if (context.getCurrentDepth() <= originalDepth)<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>token = context.nextToken();<NEW_LINE>}<NEW_LINE>return enableIoTLoggingParams;<NEW_LINE>} | 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;<NEW_LINE>Response<UntagResourceResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new UntagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(untagResourceRequest));<NEW_LINE>// Binds the request metrics to the current request.<NEW_LINE>request.setAWSRequestMetrics(awsRequestMetrics);<NEW_LINE>request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);<NEW_LINE>request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SERVICE_ID, "XRay");<NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource");<NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<UntagResourceResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UntagResourceResultJsonUnmarshaller());<NEW_LINE>response = invoke(request, responseHandler, executionContext);<NEW_LINE>return response.getAwsResponse();<NEW_LINE>} finally {<NEW_LINE>endClientExecution(awsRequestMetrics, request, response);<NEW_LINE>}<NEW_LINE>} | 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(stmtText, "s0", milestone.getAndIncrement());<NEW_LINE>env.sendEventBean(new SupportBean_S1(-1, "Y"));<NEW_LINE>env.sendEventBean(new SupportBean_S0(0));<NEW_LINE>env.assertEqualsNew("s0", "ids1", null);<NEW_LINE>env.sendEventBean(new SupportBean_S1(1, "X"));<NEW_LINE>env.sendEventBean(new SupportBean_S1(2, "Y"));<NEW_LINE>env.sendEventBean(new SupportBean_S1(3, "Z"));<NEW_LINE>env.sendEventBean(new SupportBean_S0(0));<NEW_LINE>env.assertEqualsNew("s0", "ids1", 1);<NEW_LINE>env.sendEventBean(new SupportBean_S0(1));<NEW_LINE>env.assertEqualsNew("s0", "ids1", 1);<NEW_LINE>env.sendEventBean(<MASK><NEW_LINE>env.sendEventBean(new SupportBean_S0(2));<NEW_LINE>env.assertEqualsNew("s0", "ids1", null);<NEW_LINE>env.undeployAll();<NEW_LINE>// two-column constant<NEW_LINE>stmtText = "@name('s0') select (select id from SupportBean_S1#length(1000) where p10='X' and p11='Y') as ids1 from SupportBean_S0";<NEW_LINE>env.compileDeployAddListenerMile(stmtText, "s0", milestone.getAndIncrement());<NEW_LINE>env.sendEventBean(new SupportBean_S1(1, "X", "Y"));<NEW_LINE>env.sendEventBean(new SupportBean_S0(0));<NEW_LINE>env.assertEqualsNew("s0", "ids1", 1);<NEW_LINE>env.undeployAll();<NEW_LINE>// single range<NEW_LINE>stmtText = "@name('s0') select (select theString from SupportBean#lastevent where intPrimitive between 10 and 20) as ids1 from SupportBean_S0";<NEW_LINE>env.compileDeployAddListenerMile(stmtText, "s0", milestone.getAndIncrement());<NEW_LINE>env.sendEventBean(new SupportBean("E1", 15));<NEW_LINE>env.sendEventBean(new SupportBean_S0(0));<NEW_LINE>env.assertEqualsNew("s0", "ids1", "E1");<NEW_LINE>env.undeployAll();<NEW_LINE>} | 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 = historyPosition_;<NEW_LINE>server_.getHistoryItems(startIndex, endIndex, new SimpleRequestCallback<RpcObjectList<HistoryEntry>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onResponseReceived(RpcObjectList<HistoryEntry> response) {<NEW_LINE>ArrayList<<MASK><NEW_LINE>view_.addRecentCommands(entries, true);<NEW_LINE>fetchingMoreCommands_ = false;<NEW_LINE>if (response.length() > 0)<NEW_LINE>historyPosition_ = response.get(0).getIndex();<NEW_LINE>else<NEW_LINE>// this shouldn't happen<NEW_LINE>historyPosition_ = 0;<NEW_LINE>view_.setMoreCommands(Math.min(historyPosition_, COMMAND_CHUNK_SIZE));<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onError(ServerError error) {<NEW_LINE>super.onError(error);<NEW_LINE>fetchingMoreCommands_ = false;<NEW_LINE>}<NEW_LINE>});<NEW_LINE>} | 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("RequestLoginInfoResponse.ErrorMessage"));<NEW_LINE>requestLoginInfoResponse.setSuccess(_ctx.booleanValue("RequestLoginInfoResponse.Success"));<NEW_LINE>requestLoginInfoResponse.setErrorCode(_ctx.stringValue("RequestLoginInfoResponse.ErrorCode"));<NEW_LINE>List<DeviceStateDTO> data = new ArrayList<DeviceStateDTO>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue("RequestLoginInfoResponse.Data.Length"); i++) {<NEW_LINE>DeviceStateDTO deviceStateDTO = new DeviceStateDTO();<NEW_LINE>deviceStateDTO.setLiveMode(_ctx.stringValue("RequestLoginInfoResponse.Data[" + i + "].LiveMode"));<NEW_LINE>deviceStateDTO.setDeviceName(_ctx.stringValue("RequestLoginInfoResponse.Data[" + i + "].DeviceName"));<NEW_LINE>deviceStateDTO.setDeviceId(_ctx.stringValue("RequestLoginInfoResponse.Data[" + i + "].DeviceId"));<NEW_LINE>deviceStateDTO.setLiveId(_ctx.stringValue("RequestLoginInfoResponse.Data[" + i + "].LiveId"));<NEW_LINE>deviceStateDTO.setUserRole(_ctx.integerValue("RequestLoginInfoResponse.Data[" + i + "].UserRole"));<NEW_LINE>deviceStateDTO.setLiveStatus(_ctx.stringValue("RequestLoginInfoResponse.Data[" + i + "].LiveStatus"));<NEW_LINE>deviceStateDTO.setLiveType(_ctx.stringValue("RequestLoginInfoResponse.Data[" + i + "].LiveType"));<NEW_LINE>deviceStateDTO.setDeviceConnState(_ctx.stringValue("RequestLoginInfoResponse.Data[" + i + "].DeviceConnState"));<NEW_LINE>deviceStateDTO.setIsAuthorizeLive(_ctx.booleanValue("RequestLoginInfoResponse.Data[" + i + "].IsAuthorizeLive"));<NEW_LINE>Binder binder = new Binder();<NEW_LINE>binder.setUserSource(_ctx.stringValue("RequestLoginInfoResponse.Data[" + i + "].Binder.UserSource"));<NEW_LINE>binder.setUserId(_ctx.stringValue("RequestLoginInfoResponse.Data[" + i + "].Binder.UserId"));<NEW_LINE>deviceStateDTO.setBinder(binder);<NEW_LINE>CurrentUser currentUser = new CurrentUser();<NEW_LINE>currentUser.setUserSource(_ctx.stringValue("RequestLoginInfoResponse.Data[" + i + "].CurrentUser.UserSource"));<NEW_LINE>currentUser.setUserId(_ctx.stringValue<MASK><NEW_LINE>deviceStateDTO.setCurrentUser(currentUser);<NEW_LINE>data.add(deviceStateDTO);<NEW_LINE>}<NEW_LINE>requestLoginInfoResponse.setData(data);<NEW_LINE>return requestLoginInfoResponse;<NEW_LINE>} | ("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 = RestaurantDetailFragmentArgs.fromBundle(getArguments()).getKeyRestaurantId();<NEW_LINE>// Initialize Firestore<NEW_LINE>mFirestore = FirebaseFirestore.getInstance();<NEW_LINE>// Get reference to the restaurant<NEW_LINE>mRestaurantRef = mFirestore.collection("restaurants").document(restaurantId);<NEW_LINE>// Get ratings<NEW_LINE>Query ratingsQuery = mRestaurantRef.collection("ratings").orderBy("timestamp", Query.Direction.DESCENDING).limit(50);<NEW_LINE>// RecyclerView<NEW_LINE>mRatingAdapter = new RatingAdapter(ratingsQuery) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void onDataChanged() {<NEW_LINE>if (getItemCount() == 0) {<NEW_LINE>mBinding.recyclerRatings.setVisibility(View.GONE);<NEW_LINE>mBinding.viewEmptyRatings.setVisibility(View.VISIBLE);<NEW_LINE>} else {<NEW_LINE>mBinding.recyclerRatings.setVisibility(View.VISIBLE);<NEW_LINE>mBinding.viewEmptyRatings.setVisibility(View.GONE);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>};<NEW_LINE>mBinding.recyclerRatings.setLayoutManager(<MASK><NEW_LINE>mBinding.recyclerRatings.setAdapter(mRatingAdapter);<NEW_LINE>mRatingDialog = new RatingDialogFragment();<NEW_LINE>} | 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.awt.Dimension(134, 15));<NEW_LINE>// NOI18N<NEW_LINE>scField.setText(org.openide.util.NbBundle.getMessage(ShortcutCellPanel.class, "ShortcutCellPanel.scField.text"));<NEW_LINE>scField.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));<NEW_LINE>changeButton.setBackground(new java.awt.Color(204, 204, 204));<NEW_LINE>// NOI18N<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(changeButton, org.openide.util.NbBundle.getMessage<MASK><NEW_LINE>changeButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);<NEW_LINE>changeButton.setMaximumSize(new java.awt.Dimension(25, 15));<NEW_LINE>changeButton.setMinimumSize(new java.awt.Dimension(25, 15));<NEW_LINE>changeButton.setPreferredSize(new java.awt.Dimension(25, 15));<NEW_LINE>changeButton.addActionListener(new java.awt.event.ActionListener() {<NEW_LINE><NEW_LINE>public void actionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>changeButtonActionPerformed(evt);<NEW_LINE>}<NEW_LINE>});<NEW_LINE>javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);<NEW_LINE>this.setLayout(layout);<NEW_LINE>layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup().addGap(0, 0, 0).addComponent(scField, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE).addGap(0, 0, 0).addComponent(changeButton, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)));<NEW_LINE>layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(scField, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE).addComponent(changeButton, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE));<NEW_LINE>} | (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.isUseJAXBAnnotationProcessorAsPrimary()) {<NEW_LINE>jaxbAnnotationModule.setPriority(Priority.PRIMARY);<NEW_LINE>} else {<NEW_LINE>jaxbAnnotationModule.setPriority(Priority.SECONDARY);<NEW_LINE>}<NEW_LINE>objectMapper.registerModule(jaxbAnnotationModule);<NEW_LINE>// to support @ApiModel on class level.<NEW_LINE>// must be registered only if we use JaxbAnnotationModule before. Why?<NEW_LINE>objectMapper.registerModule(new EnhancedSwaggerModule());<NEW_LINE>}<NEW_LINE>ModelModifier modelModifier = new ModelModifier(objectMapper);<NEW_LINE>List<String<MASK><NEW_LINE>if (apiModelPropertyAccessExclusions != null && !apiModelPropertyAccessExclusions.isEmpty()) {<NEW_LINE>modelModifier.setApiModelPropertyAccessExclusions(apiModelPropertyAccessExclusions);<NEW_LINE>}<NEW_LINE>if (modelSubstitute != null) {<NEW_LINE>BufferedReader reader = null;<NEW_LINE>try {<NEW_LINE>reader = new BufferedReader(new InputStreamReader(getClass().getResourceAsStream(this.modelSubstitute)));<NEW_LINE>String line = reader.readLine();<NEW_LINE>while (line != null) {<NEW_LINE>String[] classes = line.split(":");<NEW_LINE>if (classes.length != 2) {<NEW_LINE>throw new GenerateException("Bad format of override model file, it should be ${actualClassName}:${expectClassName}");<NEW_LINE>}<NEW_LINE>modelModifier.addModelSubstitute(classes[0].trim(), classes[1].trim());<NEW_LINE>line = reader.readLine();<NEW_LINE>}<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw new GenerateException(e);<NEW_LINE>} finally {<NEW_LINE>if (reader != null) {<NEW_LINE>reader.close();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>ModelConverters.getInstance().addConverter(modelModifier);<NEW_LINE>} | > 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) {<NEW_LINE>removeIndexElement(indexMap, fieldValues, null);<NEW_LINE>} else if (element instanceof String) {<NEW_LINE>removeIndexElement(indexMap, fieldValues, (String) element);<NEW_LINE>} else if (element.getClass().isArray()) {<NEW_LINE>validateStringArrayIndexField(element, firstField);<NEW_LINE>Object[] array = convertToObjectArray(element);<NEW_LINE>for (Object item : array) {<NEW_LINE>removeIndexElement(indexMap, fieldValues, (String) item);<NEW_LINE>}<NEW_LINE>} else if (element instanceof Iterable) {<NEW_LINE>validateStringIterableIndexField((Iterable<?>) element, firstField);<NEW_LINE>Iterable<?> iterable = (Iterable<?>) element;<NEW_LINE>for (Object item : iterable) {<NEW_LINE>removeIndexElement(indexMap, fieldValues, (String) item);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>throw new IndexingException("string data is expected");<NEW_LINE>}<NEW_LINE>} | > fieldNames = fields.getFieldNames(); |
1,730,314 | public static DescribePhysicalConnectionsResponse unmarshall(DescribePhysicalConnectionsResponse describePhysicalConnectionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePhysicalConnectionsResponse.setRequestId(_ctx.stringValue("DescribePhysicalConnectionsResponse.RequestId"));<NEW_LINE>describePhysicalConnectionsResponse.setPageNumber(_ctx.integerValue("DescribePhysicalConnectionsResponse.PageNumber"));<NEW_LINE>describePhysicalConnectionsResponse.setPageSize(_ctx.integerValue("DescribePhysicalConnectionsResponse.PageSize"));<NEW_LINE>describePhysicalConnectionsResponse.setTotalCount(_ctx.integerValue("DescribePhysicalConnectionsResponse.TotalCount"));<NEW_LINE>List<PhysicalConnectionType> physicalConnectionSet = new ArrayList<PhysicalConnectionType>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet.Length"); i++) {<NEW_LINE>PhysicalConnectionType physicalConnectionType = new PhysicalConnectionType();<NEW_LINE>physicalConnectionType.setAdLocation(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].AdLocation"));<NEW_LINE>physicalConnectionType.setCreationTime(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].CreationTime"));<NEW_LINE>physicalConnectionType.setStatus(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].Status"));<NEW_LINE>physicalConnectionType.setType(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].Type"));<NEW_LINE>physicalConnectionType.setPortNumber(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].PortNumber"));<NEW_LINE>physicalConnectionType.setCircuitCode(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].CircuitCode"));<NEW_LINE>physicalConnectionType.setSpec(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].Spec"));<NEW_LINE>physicalConnectionType.setBandwidth(_ctx.longValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].Bandwidth"));<NEW_LINE>physicalConnectionType.setDescription(_ctx.stringValue<MASK><NEW_LINE>physicalConnectionType.setPortType(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].PortType"));<NEW_LINE>physicalConnectionType.setEnabledTime(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].EnabledTime"));<NEW_LINE>physicalConnectionType.setBusinessStatus(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].BusinessStatus"));<NEW_LINE>physicalConnectionType.setLineOperator(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].LineOperator"));<NEW_LINE>physicalConnectionType.setName(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].Name"));<NEW_LINE>physicalConnectionType.setRedundantPhysicalConnectionId(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].RedundantPhysicalConnectionId"));<NEW_LINE>physicalConnectionType.setPeerLocation(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].PeerLocation"));<NEW_LINE>physicalConnectionType.setAccessPointId(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].AccessPointId"));<NEW_LINE>physicalConnectionType.setPhysicalConnectionId(_ctx.stringValue("DescribePhysicalConnectionsResponse.PhysicalConnectionSet[" + i + "].PhysicalConnectionId"));<NEW_LINE>physicalConnectionSet.add(physicalConnectionType);<NEW_LINE>}<NEW_LINE>describePhysicalConnectionsResponse.setPhysicalConnectionSet(physicalConnectionSet);<NEW_LINE>return describePhysicalConnectionsResponse;<NEW_LINE>} | ("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().values()) {<NEW_LINE>ResourceLocation still = fluid.getStill();<NEW_LINE>ResourceLocation flowing = fluid.getFlowing();<NEW_LINE>if (still == null || flowing == null) {<NEW_LINE>throw new IllegalStateException("Encountered a fluid with a null still sprite! (" + fluid.getName() + " - " + FluidRegistry.getDefaultFluidName(fluid) + ")");<NEW_LINE>}<NEW_LINE>if (spritesStitched.containsKey(still)) {<NEW_LINE>fluidSprites.get(FluidSpriteType.FROZEN).put(fluid.getName(), spritesStitched.get(still));<NEW_LINE>} else {<NEW_LINE>SpriteFluidFrozen spriteFrozen = new SpriteFluidFrozen(still);<NEW_LINE><MASK><NEW_LINE>if (!map.setTextureEntry(spriteFrozen)) {<NEW_LINE>throw new IllegalStateException("Failed to set the frozen variant of " + still + "!");<NEW_LINE>}<NEW_LINE>fluidSprites.get(FluidSpriteType.FROZEN).put(fluid.getName(), spriteFrozen);<NEW_LINE>}<NEW_LINE>// Note: this must be called with EventPriority.LOW so that we don't overwrite other custom sprites.<NEW_LINE>fluidSprites.get(FluidSpriteType.STILL).put(fluid.getName(), map.registerSprite(still));<NEW_LINE>fluidSprites.get(FluidSpriteType.FLOWING).put(fluid.getName(), map.registerSprite(flowing));<NEW_LINE>}<NEW_LINE>} | 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>TagKey<Item> osmiumIngot = MekanismTags.Items.PROCESSED_RESOURCES.get(ResourceType.INGOT, PrimaryResource.OSMIUM);<NEW_LINE>for (FactoryType type : EnumUtils.FACTORY_TYPES) {<NEW_LINE>BlockRegistryObject<BlockFactory<?>, ItemBlockFactory> basicFactory = MekanismBlocks.<MASK><NEW_LINE>BlockRegistryObject<BlockFactory<?>, ItemBlockFactory> advancedFactory = MekanismBlocks.getFactory(FactoryTier.ADVANCED, type);<NEW_LINE>BlockRegistryObject<BlockFactory<?>, ItemBlockFactory> eliteFactory = MekanismBlocks.getFactory(FactoryTier.ELITE, type);<NEW_LINE>addFactoryRecipe(consumer, basicPath, basicFactory, type.getBaseBlock(), Tags.Items.INGOTS_IRON, MekanismTags.Items.ALLOYS_BASIC, MekanismTags.Items.CIRCUITS_BASIC);<NEW_LINE>addFactoryRecipe(consumer, advancedPath, advancedFactory, basicFactory, osmiumIngot, MekanismTags.Items.ALLOYS_INFUSED, MekanismTags.Items.CIRCUITS_ADVANCED);<NEW_LINE>addFactoryRecipe(consumer, elitePath, eliteFactory, advancedFactory, Tags.Items.INGOTS_GOLD, MekanismTags.Items.ALLOYS_REINFORCED, MekanismTags.Items.CIRCUITS_ELITE);<NEW_LINE>addFactoryRecipe(consumer, ultimatePath, MekanismBlocks.getFactory(FactoryTier.ULTIMATE, type), eliteFactory, Tags.Items.GEMS_DIAMOND, MekanismTags.Items.ALLOYS_ATOMIC, MekanismTags.Items.CIRCUITS_ULTIMATE);<NEW_LINE>}<NEW_LINE>} | 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-instance until next<NEW_LINE>// event is received. This prevents us from having to resolve the expression twice when<NEW_LINE>// an error occurs.<NEW_LINE>failOnException = ((<MASK><NEW_LINE>// Call the delegate<NEW_LINE>((FlowableEventListener) delegate).onEvent(event);<NEW_LINE>} else {<NEW_LINE>// Force failing, since the exception we're about to throw cannot be ignored, because it<NEW_LINE>// did not originate from the listener itself<NEW_LINE>failOnException = true;<NEW_LINE>throw new ActivitiIllegalArgumentException("Delegate expression " + expression + " did not resolve to an implementation of " + FlowableEventListener.class.getName());<NEW_LINE>}<NEW_LINE>}<NEW_LINE>} | 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 = _s2sVpnGatewayDao.findById(conn.getVpnGatewayId());<NEW_LINE>final IpAddress ip = _ipAddressDao.findById(vpnGw.getAddrId());<NEW_LINE>final Vpc vpc = _vpcDao.findById(ip.getVpcId());<NEW_LINE>final String localPublicIp = ip.getAddress().toString();<NEW_LINE>final String localGuestCidr = vpc.getCidr();<NEW_LINE>final String localPublicGateway = _vlanDao.findById(ip.<MASK><NEW_LINE>final String peerGatewayIp = gw.getGatewayIp();<NEW_LINE>final String peerGuestCidrList = gw.getGuestCidrList();<NEW_LINE>final String ipsecPsk = gw.getIpsecPsk();<NEW_LINE>final String ikePolicy = gw.getIkePolicy();<NEW_LINE>final String espPolicy = gw.getEspPolicy();<NEW_LINE>final Long ikeLifetime = gw.getIkeLifetime();<NEW_LINE>final Long espLifetime = gw.getEspLifetime();<NEW_LINE>final Boolean dpd = gw.getDpd();<NEW_LINE>final Boolean encap = gw.getEncap();<NEW_LINE>final Boolean splitConnections = gw.getSplitConnections();<NEW_LINE>final String ikeVersion = gw.getIkeVersion();<NEW_LINE>final Site2SiteVpnCfgCommand cmd = new Site2SiteVpnCfgCommand(isCreate, localPublicIp, localPublicGateway, localGuestCidr, peerGatewayIp, peerGuestCidrList, ikePolicy, espPolicy, ipsecPsk, ikeLifetime, espLifetime, dpd, conn.isPassive(), encap, splitConnections, ikeVersion);<NEW_LINE>cmd.setAccessDetail(NetworkElementCommand.ROUTER_IP, _routerControlHelper.getRouterControlIp(router.getId()));<NEW_LINE>cmd.setAccessDetail(NetworkElementCommand.ROUTER_IP, _routerControlHelper.getRouterControlIp(router.getId()));<NEW_LINE>cmd.setAccessDetail(NetworkElementCommand.ROUTER_NAME, router.getInstanceName());<NEW_LINE>final DataCenterVO dcVo = _dcDao.findById(router.getDataCenterId());<NEW_LINE>cmd.setAccessDetail(NetworkElementCommand.ZONE_NETWORK_TYPE, dcVo.getNetworkType().toString());<NEW_LINE>cmds.addCommand("applyS2SVpn", cmd);<NEW_LINE>} | 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(), jdomElement, index);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>newElement = index == -1 ? insertNewElement(POM_ELEMENT_PLUGIN, jdomElement) : insertNewElement(POM_ELEMENT_PLUGIN, jdomElement, index);<NEW_LINE>JDomPlugin jDomPlugin = new JDomPlugin(newElement);<NEW_LINE>jDomPlugin.<MASK><NEW_LINE>jDomPlugin.setArtifactId(plugin.getArtifactId());<NEW_LINE>jDomPlugin.setVersion(plugin.getVersion());<NEW_LINE>List<Dependency> dependencies = plugin.getDependencies();<NEW_LINE>if (!dependencies.isEmpty()) {<NEW_LINE>jDomPlugin.setDependencies(dependencies);<NEW_LINE>}<NEW_LINE>if (plugin.isExtensions()) {<NEW_LINE>jDomPlugin.setExtensions(true);<NEW_LINE>}<NEW_LINE>List<PluginExecution> executions = plugin.getExecutions();<NEW_LINE>if (!executions.isEmpty()) {<NEW_LINE>jDomPlugin.setExecutions(executions);<NEW_LINE>}<NEW_LINE>if (!plugin.isInherited()) {<NEW_LINE>jDomPlugin.setInherited(false);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (index == -1) {<NEW_LINE>super.add(plugin);<NEW_LINE>} else {<NEW_LINE>super.add(index, plugin);<NEW_LINE>}<NEW_LINE>} | 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.hasNext()) {<NEW_LINE>if (it.next().getFilterId().equals(filter.getFilterId())) {<NEW_LINE>it.remove();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>boolean res = helper.addFilter(filter, helper.getWritableDatabase(), false, forHistory);<NEW_LINE>if (res) {<NEW_LINE>ArrayList<PoiUIFilter> copy = cacheTopStandardFilters != null ? new ArrayList<>(cacheTopStandardFilters) : new ArrayList<PoiUIFilter>();<NEW_LINE>copy.add(filter);<NEW_LINE>Collections.sort(copy);<NEW_LINE>cacheTopStandardFilters = copy;<NEW_LINE>}<NEW_LINE>helper.close();<NEW_LINE>return res;<NEW_LINE>} | > 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 and map variables<NEW_LINE>String localVarPath = "/user/communicationToken";<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NEW_LINE>List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();<NEW_LINE>Map<String, String> localVarHeaderParams = new HashMap<String, String>();<NEW_LINE>Map<String, Object> localVarFormParams = new HashMap<String, Object>();<NEW_LINE>if (token != null)<NEW_LINE>localVarFormParams.put("token", token);<NEW_LINE>if (platformAgent != null)<NEW_LINE>localVarFormParams.put("platformAgent", platformAgent);<NEW_LINE>final String[] localVarAccepts = { "application/json", "application/xml", "text/xml", "application/javascript", "text/javascript" };<NEW_LINE>final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);<NEW_LINE>if (localVarAccept != null)<NEW_LINE><MASK><NEW_LINE>final String[] localVarContentTypes = { "application/json", "application/x-www-form-urlencoded" };<NEW_LINE>final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);<NEW_LINE>localVarHeaderParams.put("Content-Type", localVarContentType);<NEW_LINE>if (progressListener != null) {<NEW_LINE>apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {<NEW_LINE>com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());<NEW_LINE>return originalResponse.newBuilder().body(new ProgressResponseBody(originalResponse.body(), progressListener)).build();<NEW_LINE>}<NEW_LINE>});<NEW_LINE>}<NEW_LINE>String[] localVarAuthNames = new String[] { "apiExpires", "apiKey", "apiSignature" };<NEW_LINE>return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);<NEW_LINE>} | 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), true, true);<NEW_LINE>node.addReference(new Reference(Identifiers.CertificateGroupFolderType_DefaultUserTokenGroup_TrustList_SetPosition, Identifiers.HasProperty, Identifiers.CertificateGroupFolderType_DefaultUserTokenGroup_TrustList_SetPosition_InputArguments.expanded(), true));<NEW_LINE>node.addReference(new Reference(Identifiers.CertificateGroupFolderType_DefaultUserTokenGroup_TrustList_SetPosition, Identifiers.HasModellingRule, Identifiers.ModellingRule_Mandatory<MASK><NEW_LINE>node.addReference(new Reference(Identifiers.CertificateGroupFolderType_DefaultUserTokenGroup_TrustList_SetPosition, Identifiers.HasComponent, Identifiers.CertificateGroupFolderType_DefaultUserTokenGroup_TrustList.expanded(), false));<NEW_LINE>this.nodeManager.addNode(node);<NEW_LINE>} | .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(metricsFuture);<NEW_LINE>if (t == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!channelPromise.tryFailure(t)) {<NEW_LINE>// Couldn't fail promise, it's already done<NEW_LINE>if (!channelPromise.isSuccess()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Channel ch = channelPromise.getNow();<NEW_LINE>try {<NEW_LINE>ch.eventLoop().submit(() -> {<NEW_LINE>Attribute<Long> executionIdKey = ch.attr(EXECUTION_ID_KEY);<NEW_LINE>if (ch.attr(IN_USE) != null && ch.attr(IN_USE).get() && executionIdKey != null) {<NEW_LINE>ch.pipeline().fireExceptionCaught(new FutureCancelledException(this.executionId, t));<NEW_LINE>} else {<NEW_LINE>ch.close().addListener(closeFuture -> context.channelPool().release(ch));<NEW_LINE>}<NEW_LINE>});<NEW_LINE>} catch (Throwable exc) {<NEW_LINE>log.warn(ch<MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>});<NEW_LINE>return future;<NEW_LINE>} | , () -> "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<Expression> arguments = methodCall.getArguments();<NEW_LINE>// JsInteropRestrictionChecker enforces the first parameter is a StringLiteral.<NEW_LINE>String propertyKey = ((StringLiteral) arguments.get(0)).getValue();<NEW_LINE>String value = properties.get(propertyKey);<NEW_LINE>Expression defaultValue = arguments.size() == 2 ? <MASK><NEW_LINE>checkState(value != null || defaultValue != null, "No value found for property %s", propertyKey);<NEW_LINE>MultiExpression.Builder expressionBuilder = MultiExpression.newBuilder();<NEW_LINE>if (defaultValue != null) {<NEW_LINE>// Default value expression can have side effect and needs to be evaluated if present.<NEW_LINE>expressionBuilder.addExpressions(defaultValue);<NEW_LINE>}<NEW_LINE>if (value != null) {<NEW_LINE>expressionBuilder.addExpressions(new StringLiteral(value));<NEW_LINE>}<NEW_LINE>return expressionBuilder.build();<NEW_LINE>}<NEW_LINE>});<NEW_LINE>} | 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);<NEW_LINE>Preconditions.checkArgument(kvtConfig.getPartitionCount() > 0);<NEW_LINE>Preconditions.checkArgument(kvtConfig.getPrimaryKeyLength() > 0);<NEW_LINE>Preconditions.checkArgument(kvtConfig.getSecondaryKeyLength() >= 0);<NEW_LINE>Preconditions.checkArgument(kvtConfig.getRolloverSizeBytes() >= 0);<NEW_LINE>Timer timer = new Timer();<NEW_LINE>try {<NEW_LINE>NameUtils.validateUserKeyValueTableName(kvtName);<NEW_LINE>} catch (IllegalArgumentException | NullPointerException e) {<NEW_LINE>log.warn(requestId, "Create KeyValueTable failed due to invalid name {}", kvtName);<NEW_LINE>return CompletableFuture.completedFuture(CreateKeyValueTableStatus.newBuilder().setStatus(CreateKeyValueTableStatus.Status.INVALID_TABLE_NAME).build());<NEW_LINE>}<NEW_LINE>return kvtMetadataTasks.createKeyValueTable(scope, kvtName, kvtConfig, createTimestamp, requestId).thenApplyAsync(status -> {<NEW_LINE>reportCreateKVTableMetrics(scope, kvtName, kvtConfig.getPartitionCount(), <MASK><NEW_LINE>return CreateKeyValueTableStatus.newBuilder().setStatus(status).build();<NEW_LINE>}, executor);<NEW_LINE>} | 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.ClientExecuteTime);<NEW_LINE>Request<StopDBClusterRequest> request = null;<NEW_LINE>Response<DBCluster> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new StopDBClusterRequestMarshaller().marshall(super.beforeMarshalling(stopDBClusterRequest));<NEW_LINE>// Binds the request metrics to the current request.<NEW_LINE>request.setAWSRequestMetrics(awsRequestMetrics);<NEW_LINE>request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);<NEW_LINE>request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Neptune");<NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "StopDBCluster");<NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>StaxResponseHandler<DBCluster> responseHandler = new StaxResponseHandler<DBCluster>(new DBClusterStaxUnmarshaller());<NEW_LINE>response = <MASK><NEW_LINE>return response.getAwsResponse();<NEW_LINE>} finally {<NEW_LINE>endClientExecution(awsRequestMetrics, request, response);<NEW_LINE>}<NEW_LINE>} | 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, ObjectFactory objectFactory, FileResolver fileResolver) {<NEW_LINE>Configuration variant = maybeCreateInvisibleConfig(configurations, variantName, docsType + " elements for " + (featureName == null ? "main" : featureName) + ".", true);<NEW_LINE>AttributeContainer attributes = variant.getAttributes();<NEW_LINE>attributes.attribute(Usage.USAGE_ATTRIBUTE, objectFactory.named(Usage.class, Usage.JAVA_RUNTIME));<NEW_LINE>attributes.attribute(Category.CATEGORY_ATTRIBUTE, objectFactory.named(Category.class, Category.DOCUMENTATION));<NEW_LINE>attributes.attribute(Bundling.BUNDLING_ATTRIBUTE, objectFactory.named(Bundling.class, Bundling.EXTERNAL));<NEW_LINE>attributes.attribute(DocsType.DOCS_TYPE_ATTRIBUTE, objectFactory.named(DocsType.class, docsType));<NEW_LINE>capabilities.forEach(variant.getOutgoing()::capability);<NEW_LINE>if (!tasks.getNames().contains(jarTaskName)) {<NEW_LINE>TaskProvider<Jar> jarTask = tasks.register(jarTaskName, Jar.class, jar -> {<NEW_LINE>jar.setDescription("Assembles a jar archive containing the " + (featureName == null ? "main " + docsType + "." : (docsType + " of the '" + featureName + "' feature.")));<NEW_LINE>jar.setGroup(BasePlugin.BUILD_GROUP);<NEW_LINE>jar.from(artifactSource);<NEW_LINE>jar.getArchiveClassifier().set(camelToKebabCase(featureName == null ? docsType : (<MASK><NEW_LINE>});<NEW_LINE>if (tasks.getNames().contains(LifecycleBasePlugin.ASSEMBLE_TASK_NAME)) {<NEW_LINE>tasks.named(LifecycleBasePlugin.ASSEMBLE_TASK_NAME).configure(task -> task.dependsOn(jarTask));<NEW_LINE>}<NEW_LINE>}<NEW_LINE>TaskProvider<Task> jar = tasks.named(jarTaskName);<NEW_LINE>variant.getOutgoing().artifact(new LazyPublishArtifact(jar, fileResolver));<NEW_LINE>if (component != null) {<NEW_LINE>component.addVariantsFromConfiguration(variant, new JavaConfigurationVariantMapping("runtime", true));<NEW_LINE>}<NEW_LINE>} | 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_TYPE), false);<NEW_LINE>list.insertBefore(position, new InsnNode(Opcodes.DUP2));<NEW_LINE>list.insertBefore(position, new LdcInsnNode(opcode));<NEW_LINE><MASK><NEW_LINE>// list.insertBefore(position,<NEW_LINE>// new LdcInsnNode(getBranchID(currentMethodNode, position)));<NEW_LINE>insertBranchIdPlaceholder(currentMethodNode, position);<NEW_LINE>MethodInsnNode push = new MethodInsnNode(Opcodes.INVOKESTATIC, Type.getInternalName(BooleanHelper.class), "pushPredicate", Type.getMethodDescriptor(Type.VOID_TYPE, Type.INT_TYPE, Type.INT_TYPE), false);<NEW_LINE>list.insertBefore(position, push);<NEW_LINE>} | 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>}<NEW_LINE>final String hostUuid = it.next();<NEW_LINE>httpCall(path, hostUuid, cmd, rspType, new ReturnValueCompletion<AgentRsp>(completion) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void success(AgentRsp rsp) {<NEW_LINE>completion.success(rsp);<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void fail(ErrorCode errorCode) {<NEW_LINE>if (!errorCode.isError(HostErrors.OPERATION_FAILURE_GC_ELIGIBLE)) {<NEW_LINE>completion.fail(errorCode);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>errors.add(errorCode);<NEW_LINE>logger.warn(String.format("failed to do the command[%s] on the kvm host[uuid:%s], %s, try next one", cmd.getClass(), hostUuid, errorCode));<NEW_LINE>doCommand(it, <MASK><NEW_LINE>}<NEW_LINE>});<NEW_LINE>} | 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_LINE>}<NEW_LINE>int fields = input.readInt();<NEW_LINE>reply.writeInt(fields);<NEW_LINE>for (int i = 0; i < fields; i++) {<NEW_LINE>long fieldId = input.readLong();<NEW_LINE>FieldRef field = verifyFieldRef(fieldId, reply, context);<NEW_LINE>if (field == null) {<NEW_LINE>return new CommandResult(reply);<NEW_LINE>}<NEW_LINE>// check if class has been initialized<NEW_LINE>// if not, we're probably suspended in <clinit><NEW_LINE>// and should not try to read static field values<NEW_LINE>Object value;<NEW_LINE>if (field.getDeclaringKlass().getStatus() == ClassStatusConstants.ERROR || field.getDeclaringKlass().getStatus() < ClassStatusConstants.INITIALIZED) {<NEW_LINE>value = null;<NEW_LINE>} else {<NEW_LINE>value = context.getStaticFieldValue(field);<NEW_LINE>}<NEW_LINE>byte tag = context.getTag(value);<NEW_LINE>writeValue(tag, value, reply, true, context);<NEW_LINE>}<NEW_LINE>return new CommandResult(reply);<NEW_LINE>} | 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.bindTexture(TextureMap.LOCATION_BLOCKS_TEXTURE);<NEW_LINE>RenderUtil.setGLColorFromInt(fluid.getFluid().getColor(fluid));<NEW_LINE>int fullX = width / 16;<NEW_LINE>int fullY = height / 16;<NEW_LINE>int lastX = width - fullX * 16;<NEW_LINE>int lastY = height - fullY * 16;<NEW_LINE>int level = fluid.amount * height / maxCapacity;<NEW_LINE>int fullLvl = (height - level) / 16;<NEW_LINE>int lastLvl = (height - level) - fullLvl * 16;<NEW_LINE>for (int i = 0; i < fullX; i++) {<NEW_LINE>for (int j = 0; j < fullY; j++) {<NEW_LINE>if (j >= fullLvl) {<NEW_LINE>drawCutIcon(sprite, x + i * 16, y + j * 16, 16, 16, j == fullLvl ? lastLvl : 0);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>for (int i = 0; i < fullX; i++) {<NEW_LINE>drawCutIcon(sprite, x + i * 16, y + fullY * 16, 16, lastY, fullLvl == fullY ? lastLvl : 0);<NEW_LINE>}<NEW_LINE>for (int i = 0; i < fullY; i++) {<NEW_LINE>if (i >= fullLvl) {<NEW_LINE>drawCutIcon(sprite, x + fullX * 16, y + i * 16, lastX, 16, i == fullLvl ? lastLvl : 0);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>drawCutIcon(sprite, x + fullX * 16, y + fullY * 16, lastX, lastY, fullLvl == fullY ? lastLvl : 0);<NEW_LINE>GlStateManager.color(<MASK><NEW_LINE>} | 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.addURI(AUTHORITY, PATH_WILDCARD + PATH_GET_INT, GET_INT);<NEW_LINE>mUriMatcher.addURI(AUTHORITY, PATH_WILDCARD + PATH_GET_LONG, GET_LONG);<NEW_LINE>mUriMatcher.addURI(AUTHORITY, PATH_WILDCARD + PATH_GET_FLOAT, GET_FLOAT);<NEW_LINE>mUriMatcher.addURI(<MASK><NEW_LINE>mUriMatcher.addURI(AUTHORITY, PATH_WILDCARD + PATH_CONTAINS, CONTAINS);<NEW_LINE>mUriMatcher.addURI(AUTHORITY, PATH_WILDCARD + PATH_APPLY, APPLY);<NEW_LINE>mUriMatcher.addURI(AUTHORITY, PATH_WILDCARD + PATH_COMMIT, COMMIT);<NEW_LINE>mUriMatcher.addURI(AUTHORITY, PATH_WILDCARD + PATH_REGISTER_ON_SHARED_PREFERENCE_CHANGE_LISTENER, REGISTER_ON_SHARED_PREFERENCE_CHANGE_LISTENER);<NEW_LINE>mUriMatcher.addURI(AUTHORITY, PATH_WILDCARD + PATH_UNREGISTER_ON_SHARED_PREFERENCE_CHANGE_LISTENER, UNREGISTER_ON_SHARED_PREFERENCE_CHANGE_LISTENER);<NEW_LINE>return true;<NEW_LINE>} | 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>throw new RuntimeException("shouldn't happen");<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>ArrayData dataInsn = new ArrayData(pos, lastAddress, values, cst);<NEW_LINE>TargetInsn fillArrayDataInsn = new TargetInsn(Dops.FILL_ARRAY_DATA, pos, getRegs(insn), dataAddress);<NEW_LINE>addOutput(lastAddress);<NEW_LINE>addOutput(fillArrayDataInsn);<NEW_LINE>addOutputSuffix(new OddSpacer(pos));<NEW_LINE>addOutputSuffix(dataAddress);<NEW_LINE>addOutputSuffix(dataInsn);<NEW_LINE>} | 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 = handler.getGridSize();<NEW_LINE>// and reset the zoom level of both to default before inserting the new entity (to avoid problems with entity-size)<NEW_LINE>currentDiagram.getHandler().setGridAndZoom(Constants.DEFAULTGRIDSIZE, false);<NEW_LINE>handler.setGridAndZoom(Constants.DEFAULTGRIDSIZE, false);<NEW_LINE>GridElement e = ElementFactorySwing.createCopy(me);<NEW_LINE>e.setProperty(GroupFacet.KEY, null);<NEW_LINE>Command cmd;<NEW_LINE>Point viewp = currentDiagram.getScrollPane().getViewport().getViewPosition();<NEW_LINE>int upperLeftX = (int) (viewp.getX() - viewp.getX() % oldZoomDiagram);<NEW_LINE>int upperLeftY = (int) (viewp.getY() - viewp.getY() % oldZoomDiagram);<NEW_LINE>cmd = new AddElement(e, handler.realignToGrid((upperLeftX / oldZoomDiagram + Constants.PASTE_DISPLACEMENT_GRIDS) * Constants.DEFAULTGRIDSIZE), handler.realignToGrid((upperLeftY / oldZoomDiagram + Constants.PASTE_DISPLACEMENT_GRIDS) * Constants.DEFAULTGRIDSIZE));<NEW_LINE>currentDiagram.getHandler().getController().executeCommand(cmd);<NEW_LINE>currentDiagram.getSelector().selectOnly(e);<NEW_LINE>// After inserting the new entity we restore the old zoom level of both diagrams<NEW_LINE>currentDiagram.getHandler(<MASK><NEW_LINE>handler.setGridAndZoom(oldZoomPalette, false);<NEW_LINE>return e;<NEW_LINE>} | ).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 = null;<NEW_LINE>Response<DescribeGroupsResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new DescribeGroupsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeGroupsRequest));<NEW_LINE>// Binds the request metrics to the current request.<NEW_LINE>request.setAWSRequestMetrics(awsRequestMetrics);<NEW_LINE>request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);<NEW_LINE>request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SERVICE_ID, "WorkDocs");<NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeGroups");<NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<DescribeGroupsResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeGroupsResultJsonUnmarshaller());<NEW_LINE>response = invoke(request, responseHandler, executionContext);<NEW_LINE>return response.getAwsResponse();<NEW_LINE>} finally {<NEW_LINE>endClientExecution(awsRequestMetrics, request, response);<NEW_LINE>}<NEW_LINE>} | 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_LINE>Request<DescribeVirtualNodeRequest> request = null;<NEW_LINE>Response<DescribeVirtualNodeResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new DescribeVirtualNodeRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeVirtualNodeRequest));<NEW_LINE>// Binds the request metrics to the current request.<NEW_LINE>request.setAWSRequestMetrics(awsRequestMetrics);<NEW_LINE>request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);<NEW_LINE>request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SERVICE_ID, "App Mesh");<NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeVirtualNode");<NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<DescribeVirtualNodeResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeVirtualNodeResultJsonUnmarshaller());<NEW_LINE>response = invoke(request, responseHandler, executionContext);<NEW_LINE>return response.getAwsResponse();<NEW_LINE>} finally {<NEW_LINE>endClientExecution(awsRequestMetrics, request, response);<NEW_LINE>}<NEW_LINE>} | 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_LINE>Set<ValueNumber> valueNumberSet = new HashSet<>();<NEW_LINE>valueNumberSet.addAll(forwardsFact.getValueNumbers());<NEW_LINE>valueNumberSet.addAll(backwardsFact.getValueNumbers());<NEW_LINE>for (ValueNumber vn : valueNumberSet) {<NEW_LINE>FlowValue <MASK><NEW_LINE>FlowValue backward = backwardsFact.getValue(vn);<NEW_LINE>if (!FlowValue.valuesConflict(typeQualifierValue.isStrictQualifier() && !xMethod.isIdentity(), forward, backward)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>if (DEBUG) {<NEW_LINE>System.out.println("Check " + vn + ": forward=" + forward + ", backward=" + backward + " at " + checkLocation);<NEW_LINE>}<NEW_LINE>emitDataflowWarning(xMethod, typeQualifierValue, forwardsFact, backwardsFact, vn, forward, backward, locationToReport, locationWhereDoomedValueIsObserved, vnaFrame);<NEW_LINE>}<NEW_LINE>} | 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 HashMap<>();<NEW_LINE>// Iterate through each array of hole vertices.<NEW_LINE>XYPolygon[] holes = polygon.getHoles();<NEW_LINE>int nodeIndex = polygon.numPoints();<NEW_LINE>for (int i = 0; i < polygon.numHoles(); ++i) {<NEW_LINE>// create the doubly-linked hole list<NEW_LINE>Node list = createDoublyLinkedList(XYEncodingUtils.floatArrayToDoubleArray(holes[i].getPolyX()), XYEncodingUtils.floatArrayToDoubleArray(holes[i].getPolyY()), holes[i].getWindingOrder(), false, nodeIndex, WindingOrder.CCW);<NEW_LINE>// Determine if the resulting hole polygon was successful.<NEW_LINE>if (list != null) {<NEW_LINE>// Add the leftmost vertex of the hole.<NEW_LINE>Node leftMost = fetchLeftmost(list);<NEW_LINE>holeList.add(leftMost);<NEW_LINE>holeListPolygons.put<MASK><NEW_LINE>}<NEW_LINE>nodeIndex += holes[i].numPoints();<NEW_LINE>}<NEW_LINE>return eliminateHoles(holeList, holeListPolygons, outerNode);<NEW_LINE>} | (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 = normalizeValue(NodeFromJSON(indexStartValue));<NEW_LINE>String indexStartName = (String) map.get(INDEX_START_NAME);<NEW_LINE>if (indexStartName != null) {<NEW_LINE>params.indexStartName = ChildKey.fromString(indexStartName);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (map.containsKey(INDEX_END_VALUE)) {<NEW_LINE>Object indexEndValue = map.get(INDEX_END_VALUE);<NEW_LINE>params.indexEndValue = normalizeValue(NodeFromJSON(indexEndValue));<NEW_LINE>String indexEndName = (String) map.get(INDEX_END_NAME);<NEW_LINE>if (indexEndName != null) {<NEW_LINE>params.indexEndName = ChildKey.fromString(indexEndName);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>String viewFrom = (String) map.get(VIEW_FROM);<NEW_LINE>if (viewFrom != null) {<NEW_LINE>params.viewFrom = viewFrom.equals("l") ? ViewFrom.LEFT : ViewFrom.RIGHT;<NEW_LINE>}<NEW_LINE>String indexStr = (String) map.get(INDEX);<NEW_LINE>if (indexStr != null) {<NEW_LINE>params.<MASK><NEW_LINE>}<NEW_LINE>return params;<NEW_LINE>} | 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 originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token == null)<NEW_LINE>token = context.nextToken();<NEW_LINE>if (token == VALUE_NULL) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>while (true) {<NEW_LINE>if (token == null)<NEW_LINE>break;<NEW_LINE>if (token == FIELD_NAME || token == START_OBJECT) {<NEW_LINE>if (context.testExpression("DuplicateOperationId", targetDepth)) {<NEW_LINE>context.nextToken();<NEW_LINE>duplicateRequestException.setDuplicateOperationId(context.getUnmarshaller(String.class).unmarshall(context));<NEW_LINE>}<NEW_LINE>} else if (token == END_ARRAY || token == END_OBJECT) {<NEW_LINE>if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {<NEW_LINE>if (context.getCurrentDepth() <= originalDepth)<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>token = context.nextToken();<NEW_LINE>}<NEW_LINE>return duplicateRequestException;<NEW_LINE>} | 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();<NEW_LINE>int start = textRange.getStartOffset();<NEW_LINE>int end = textRange.getEndOffset();<NEW_LINE>if (start >= 0 && end > start && end <= document.getTextLength()) {<NEW_LINE>markers[i] = document.createRangeMarker(textRange);<NEW_LINE>markers[i].setGreedyToLeft(true);<NEW_LINE>markers[i].setGreedyToRight(true);<NEW_LINE>i++;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>final PostprocessReformattingAspect component = file.getProject().getComponent(PostprocessReformattingAspect.class);<NEW_LINE>FormattingProgressTask.FORMATTING_CANCELLED_FLAG.set(false);<NEW_LINE>component.doPostponedFormatting(file.getViewProvider());<NEW_LINE>i = 0;<NEW_LINE>for (FormatTextRange range : textRanges) {<NEW_LINE>RangeMarker marker = markers[i];<NEW_LINE>if (marker != null) {<NEW_LINE>range.setTextRange<MASK><NEW_LINE>marker.dispose();<NEW_LINE>}<NEW_LINE>i++;<NEW_LINE>}<NEW_LINE>} | (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>SourceGroup[] sg = HtmlPaletteUtilities.getSourceGroups(targetDocFO);<NEW_LINE>File file = null;<NEW_LINE>if (sg.length > 0) {<NEW_LINE>FileObject fo = BrowseFolders.showDialog(sg);<NEW_LINE>if (fo != null)<NEW_LINE>file = FileUtil.toFile(fo);<NEW_LINE>} else {<NEW_LINE>jFileChooser1.setCurrentDirectory(FileUtil.toFile(targetDocFO.getParent()));<NEW_LINE>int returnVal = jFileChooser1.showOpenDialog(this);<NEW_LINE>if (returnVal == jFileChooser1.APPROVE_OPTION)<NEW_LINE>file = jFileChooser1.getSelectedFile();<NEW_LINE>}<NEW_LINE>if (file != null) {<NEW_LINE>String path = file.getAbsolutePath();<NEW_LINE>FileObject aFO = FileUtil.toFileObject(file);<NEW_LINE>try {<NEW_LINE>String relPathToFile = <MASK><NEW_LINE>if (relPathToFile.length() > 0)<NEW_LINE>path = relPathToFile;<NEW_LINE>} catch (Exception e) {<NEW_LINE>// eventual exceptions imply the absolute path to be used<NEW_LINE>}<NEW_LINE>jTextField1.setText(path);<NEW_LINE>}<NEW_LINE>} | 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.Buffers.putVInt(buf, this.player.ordinal());<NEW_LINE>}<NEW_LINE>{<NEW_LINE>com.wowd.wobly.WoblyUtils.Buffers.putVLong(buf, this.size);<NEW_LINE>}<NEW_LINE>{<NEW_LINE>com.wowd.wobly.WoblyUtils.Buffers.putVLong(buf, this.duration);<NEW_LINE>}<NEW_LINE>{<NEW_LINE>com.wowd.wobly.WoblyUtils.Buffers.putStringUTF8(buf, this.format, true);<NEW_LINE>}<NEW_LINE>{<NEW_LINE>com.wowd.wobly.WoblyUtils.Buffers.putVInt(buf, this.height);<NEW_LINE>}<NEW_LINE>{<NEW_LINE>com.wowd.wobly.WoblyUtils.Buffers.putVInt(buf, this.width);<NEW_LINE>}<NEW_LINE>{<NEW_LINE>com.wowd.wobly.WoblyUtils.Buffers.putStringUTF8(buf, this.uri, true);<NEW_LINE>}<NEW_LINE>unknownsCounter = writeUnknownsUpTo(unknownsCounter, 0, buf);<NEW_LINE>if (this.title != null) {<NEW_LINE>buf.put((byte) 7);<NEW_LINE>com.wowd.wobly.WoblyUtils.Buffers.putStringUTF8(buf, this.title, true);<NEW_LINE>}<NEW_LINE>unknownsCounter = writeUnknownsUpTo(unknownsCounter, 1, buf);<NEW_LINE>if (this.bitrate != 0) {<NEW_LINE>buf.put((byte) 10);<NEW_LINE>buf.putInt(this.bitrate);<NEW_LINE>}<NEW_LINE>unknownsCounter = writeUnknownsUpTo(unknownsCounter, 2, buf);<NEW_LINE>if ((this.persons != null) && (this.persons.size() > 0)) {<NEW_LINE>buf.put((byte) 23);<NEW_LINE>int startFieldMark = buf.position();<NEW_LINE>buf.position(buf.position() + 1);<NEW_LINE>com.wowd.wobly.WoblyUtils.Buffers.putVInt(buf, this.persons.size());<NEW_LINE>for (String v1 : this.persons) {<NEW_LINE>com.wowd.wobly.WoblyUtils.Buffers.<MASK><NEW_LINE>}<NEW_LINE>com.wowd.wobly.WoblyUtils.Buffers.appendVariableSize(buf, startFieldMark);<NEW_LINE>}<NEW_LINE>unknownsCounter = writeUnknownsUpTo(unknownsCounter, 3, buf);<NEW_LINE>if (this.copyright != null) {<NEW_LINE>buf.put((byte) 31);<NEW_LINE>com.wowd.wobly.WoblyUtils.Buffers.putStringUTF8(buf, this.copyright, true);<NEW_LINE>}<NEW_LINE>writeUnknownsUpTo(unknownsCounter, Integer.MAX_VALUE, buf);<NEW_LINE>com.wowd.wobly.WoblyUtils.Buffers.appendVariableSize(buf, startPositionMark);<NEW_LINE>} catch (com.wowd.wobly.exceptions.WoblyWriteException e) {<NEW_LINE>throw e;<NEW_LINE>} catch (java.lang.Throwable t) {<NEW_LINE>throw new com.wowd.wobly.exceptions.WoblyWriteException(t);<NEW_LINE>}<NEW_LINE>} | putStringUTF8(buf, v1, true); |
521,171 | final CancelDetectMitigationActionsTaskResult executeCancelDetectMitigationActionsTask(CancelDetectMitigationActionsTaskRequest cancelDetectMitigationActionsTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelDetectMitigationActionsTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<CancelDetectMitigationActionsTaskRequest> request = null;<NEW_LINE>Response<CancelDetectMitigationActionsTaskResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new CancelDetectMitigationActionsTaskRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(cancelDetectMitigationActionsTaskRequest));<NEW_LINE>// Binds the request metrics to the current request.<NEW_LINE>request.setAWSRequestMetrics(awsRequestMetrics);<NEW_LINE>request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);<NEW_LINE>request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());<NEW_LINE>request.addHandlerContext(<MASK><NEW_LINE>request.addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT");<NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CancelDetectMitigationActionsTask");<NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<CancelDetectMitigationActionsTaskResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CancelDetectMitigationActionsTaskResultJsonUnmarshaller());<NEW_LINE>response = invoke(request, responseHandler, executionContext);<NEW_LINE>return response.getAwsResponse();<NEW_LINE>} finally {<NEW_LINE>endClientExecution(awsRequestMetrics, request, response);<NEW_LINE>}<NEW_LINE>} | 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 portProfile) throws BrocadeVcsApiException {<NEW_LINE>final SwitchportBasic switchPortBasic = new SwitchportBasic();<NEW_LINE>final Basic basic = new Basic();<NEW_LINE>switchPortBasic.setBasic(basic);<NEW_LINE>portProfile.<MASK><NEW_LINE>// configure L2 mode for vlan sub-profile<NEW_LINE>if (executeUpdateObject(portProfile, Constants.URI)) {<NEW_LINE>VlanProfile vlanProfile = new VlanProfile();<NEW_LINE>Switchport switchPort = new Switchport();<NEW_LINE>final Mode mode = new Mode();<NEW_LINE>mode.setVlanMode("trunk");<NEW_LINE>switchPort.setMode(mode);<NEW_LINE>vlanProfile.setSwitchport(switchPort);<NEW_LINE>portProfile.setVlanProfile(vlanProfile);<NEW_LINE>// configure trunk mode for vlan sub-profile<NEW_LINE>if (executeUpdateObject(portProfile, Constants.URI)) {<NEW_LINE>vlanProfile = new VlanProfile();<NEW_LINE>switchPort = new Switchport();<NEW_LINE>final Trunk trunk = new Trunk();<NEW_LINE>final Allowed allowed = new Allowed();<NEW_LINE>final Allowed.Vlan allowedVlan = new Allowed.Vlan();<NEW_LINE>allowedVlan.setAdd(vlanId);<NEW_LINE>allowed.setVlan(allowedVlan);<NEW_LINE>trunk.setAllowed(allowed);<NEW_LINE>switchPort.setTrunk(trunk);<NEW_LINE>vlanProfile.setSwitchport(switchPort);<NEW_LINE>portProfile.setVlanProfile(vlanProfile);<NEW_LINE>// configure allowed VLANs for vlan sub-profile<NEW_LINE>return executeUpdateObject(portProfile, Constants.URI);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>return false;<NEW_LINE>} | getVlanProfile().setSwitchportBasic(switchPortBasic); |
965,084 | final EnableDomainAutoRenewResult executeEnableDomainAutoRenew(EnableDomainAutoRenewRequest enableDomainAutoRenewRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableDomainAutoRenewRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<EnableDomainAutoRenewRequest> request = null;<NEW_LINE>Response<EnableDomainAutoRenewResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new EnableDomainAutoRenewRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(enableDomainAutoRenewRequest));<NEW_LINE>// Binds the request metrics to the current request.<NEW_LINE>request.setAWSRequestMetrics(awsRequestMetrics);<NEW_LINE>request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);<NEW_LINE>request.addHandlerContext(<MASK><NEW_LINE>request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Route 53 Domains");<NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "EnableDomainAutoRenew");<NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<EnableDomainAutoRenewResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new EnableDomainAutoRenewResultJsonUnmarshaller());<NEW_LINE>response = invoke(request, responseHandler, executionContext);<NEW_LINE>return response.getAwsResponse();<NEW_LINE>} finally {<NEW_LINE>endClientExecution(awsRequestMetrics, request, response);<NEW_LINE>}<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("GetMetaTableColumnResponse.HttpStatusCode"));<NEW_LINE>getMetaTableColumnResponse.setErrorMessage(_ctx.stringValue("GetMetaTableColumnResponse.ErrorMessage"));<NEW_LINE>getMetaTableColumnResponse.setSuccess(_ctx.booleanValue("GetMetaTableColumnResponse.Success"));<NEW_LINE>getMetaTableColumnResponse.setErrorCode(_ctx.stringValue("GetMetaTableColumnResponse.ErrorCode"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setPageNum(_ctx.integerValue("GetMetaTableColumnResponse.Data.PageNum"));<NEW_LINE>data.setPageSize(_ctx.integerValue("GetMetaTableColumnResponse.Data.PageSize"));<NEW_LINE>data.setTotalCount(_ctx.longValue("GetMetaTableColumnResponse.Data.TotalCount"));<NEW_LINE>List<ColumnListItem> columnList = new ArrayList<ColumnListItem>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue("GetMetaTableColumnResponse.Data.ColumnList.Length"); i++) {<NEW_LINE>ColumnListItem columnListItem = new ColumnListItem();<NEW_LINE>columnListItem.setColumnGuid(_ctx.stringValue("GetMetaTableColumnResponse.Data.ColumnList[" + i + "].ColumnGuid"));<NEW_LINE>columnListItem.setColumnName(_ctx.stringValue("GetMetaTableColumnResponse.Data.ColumnList[" + i + "].ColumnName"));<NEW_LINE>columnListItem.setIsPartitionColumn(_ctx.booleanValue("GetMetaTableColumnResponse.Data.ColumnList[" + i + "].IsPartitionColumn"));<NEW_LINE>columnListItem.setComment(_ctx.stringValue("GetMetaTableColumnResponse.Data.ColumnList[" + i + "].Comment"));<NEW_LINE>columnListItem.setColumnType(_ctx.stringValue("GetMetaTableColumnResponse.Data.ColumnList[" + i + "].ColumnType"));<NEW_LINE>columnListItem.setIsPrimaryKey(_ctx.booleanValue<MASK><NEW_LINE>columnListItem.setPosition(_ctx.integerValue("GetMetaTableColumnResponse.Data.ColumnList[" + i + "].Position"));<NEW_LINE>columnListItem.setCaption(_ctx.stringValue("GetMetaTableColumnResponse.Data.ColumnList[" + i + "].Caption"));<NEW_LINE>columnListItem.setIsForeignKey(_ctx.booleanValue("GetMetaTableColumnResponse.Data.ColumnList[" + i + "].IsForeignKey"));<NEW_LINE>columnListItem.setRelationCount(_ctx.longValue("GetMetaTableColumnResponse.Data.ColumnList[" + i + "].RelationCount"));<NEW_LINE>columnList.add(columnListItem);<NEW_LINE>}<NEW_LINE>data.setColumnList(columnList);<NEW_LINE>getMetaTableColumnResponse.setData(data);<NEW_LINE>return getMetaTableColumnResponse;<NEW_LINE>} | ("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(MethodNameMappingPublisherMetadataSource.class);<NEW_LINE>Map<String, Map<?, ?>> mappings = this.getMappings(element, element.getAttribute("default-channel"), parserContext);<NEW_LINE>spelSourceBuilder.addConstructorArgValue(mappings.get(PAYLOAD));<NEW_LINE>if (mappings.get("headers") != null) {<NEW_LINE>spelSourceBuilder.addPropertyValue("headerExpressionMap", mappings.get("headers"));<NEW_LINE>}<NEW_LINE>if (mappings.get("channels") != null) {<NEW_LINE>spelSourceBuilder.addPropertyValue("channelMap", mappings.get("channels"));<NEW_LINE>}<NEW_LINE>String defaultChannel = StringUtils.hasText(element.getAttribute("default-channel")) ? element.getAttribute("default-channel") : IntegrationContextUtils.NULL_CHANNEL_BEAN_NAME;<NEW_LINE>rootBuilder.<MASK><NEW_LINE>rootBuilder.addPropertyValue("defaultChannelName", defaultChannel);<NEW_LINE>return rootBuilder.getBeanDefinition();<NEW_LINE>} | 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 = SpecModelUtils.<MASK><NEW_LINE>if (method == null) {<NEW_LINE>validationErrors.add(new SpecModelValidationError(specModel.getRepresentedObject(), specModel.getSpecName() + " does not define @OnCreateMountContent method which is required for all @MountSpecs."));<NEW_LINE>return validationErrors;<NEW_LINE>}<NEW_LINE>final TypeName mountType = method.returnType;<NEW_LINE>final Map<String, List<SpecMethodModel<BindDynamicValueMethod, Void>>> propToMethodMap = new HashMap<>();<NEW_LINE>for (SpecMethodModel<BindDynamicValueMethod, Void> methodModel : ((MountSpecModel) specModel).getBindDynamicValueMethods()) {<NEW_LINE>if (!validateBindDynamicValueMethod(methodModel, mountType, validationErrors)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>final String propName = methodModel.methodParams.get(1).getName();<NEW_LINE>if (!propToMethodMap.containsKey(propName)) {<NEW_LINE>propToMethodMap.put(propName, new ArrayList<>());<NEW_LINE>}<NEW_LINE>propToMethodMap.get(propName).add(methodModel);<NEW_LINE>}<NEW_LINE>for (PropModel dynamicProp : SpecModelUtils.getDynamicProps(specModel)) {<NEW_LINE>final List<SpecMethodModel<BindDynamicValueMethod, Void>> methods = propToMethodMap.get(dynamicProp.getName());<NEW_LINE>if (methods == null) {<NEW_LINE>validationErrors.add(new SpecModelValidationError(specModel.getRepresentedObject(), specModel.getSpecName() + " does not provide @OnBindDynamicValue method for dynamic prop " + dynamicProp.getName()));<NEW_LINE>} else if (methods.size() > 1) {<NEW_LINE>validationErrors.add(new SpecModelValidationError(specModel.getRepresentedObject(), specModel.getSpecName() + " provides more than one @OnBindDynamicValue method for dynamic prop " + dynamicProp.getName()));<NEW_LINE>}<NEW_LINE>}<NEW_LINE>return validationErrors;<NEW_LINE>} | 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>break;<NEW_LINE>case Frame.DEPTH_BYTE:<NEW_LINE>flipCopyWithGamma(((ByteBuffer) buffer).asReadOnlyBuffer(), stride, (ByteBuffer) buffer, stride, true, gamma, false, 0);<NEW_LINE>break;<NEW_LINE>case Frame.DEPTH_USHORT:<NEW_LINE>flipCopyWithGamma(((ShortBuffer) buffer).asReadOnlyBuffer(), stride, (ShortBuffer) buffer, stride, false, gamma, false, 0);<NEW_LINE>break;<NEW_LINE>case Frame.DEPTH_SHORT:<NEW_LINE>flipCopyWithGamma(((ShortBuffer) buffer).asReadOnlyBuffer(), stride, (ShortBuffer) buffer, stride, true, gamma, false, 0);<NEW_LINE>break;<NEW_LINE>case Frame.DEPTH_INT:<NEW_LINE>flipCopyWithGamma(((IntBuffer) buffer).asReadOnlyBuffer(), stride, (IntBuffer) buffer, stride, gamma, false, 0);<NEW_LINE>break;<NEW_LINE>case Frame.DEPTH_FLOAT:<NEW_LINE>flipCopyWithGamma(((FloatBuffer) buffer).asReadOnlyBuffer(), stride, (FloatBuffer) buffer, stride, gamma, false, 0);<NEW_LINE>break;<NEW_LINE>case Frame.DEPTH_DOUBLE:<NEW_LINE>flipCopyWithGamma(((DoubleBuffer) buffer).asReadOnlyBuffer(), stride, (DoubleBuffer) buffer, stride, gamma, false, 0);<NEW_LINE>break;<NEW_LINE>default:<NEW_LINE>assert false;<NEW_LINE>}<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:<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(3345);<NEW_LINE>((StringconstantContext) _localctx).sl = match(STRING_LITERAL);<NEW_LINE>}<NEW_LINE>break;<NEW_LINE>case QUOTED_STRING_LITERAL:<NEW_LINE>enterOuterAlt(_localctx, 2);<NEW_LINE>{<NEW_LINE>setState(3346);<NEW_LINE>((StringconstantContext) _localctx).qsl = match(QUOTED_STRING_LITERAL);<NEW_LINE>}<NEW_LINE>break;<NEW_LINE>default:<NEW_LINE>throw new NoViableAltException(this);<NEW_LINE>}<NEW_LINE>} catch (RecognitionException re) {<NEW_LINE>_localctx.exception = re;<NEW_LINE>_errHandler.reportError(this, re);<NEW_LINE>_errHandler.recover(this, re);<NEW_LINE>} finally {<NEW_LINE>exitRule();<NEW_LINE>}<NEW_LINE>return _localctx;<NEW_LINE>} | 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<NEW_LINE>for (String pluginId : entries.keySet()) {<NEW_LINE>// classpath's extensions <=> pluginId = null<NEW_LINE>List<ExtensionWrapper<T>> pluginExtensions = find(type, pluginId);<NEW_LINE>result.addAll(pluginExtensions);<NEW_LINE>}<NEW_LINE>if (result.isEmpty()) {<NEW_LINE>log.debug(<MASK><NEW_LINE>} else {<NEW_LINE>log.debug("Found {} extensions for extension point '{}'", result.size(), type.getName());<NEW_LINE>}<NEW_LINE>// sort by "ordinal" property<NEW_LINE>Collections.sort(result);<NEW_LINE>return result;<NEW_LINE>} | "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 (binPathAndVersionOnHost.isPresent()) {<NEW_LINE>Path goBinPath = binPathAndVersionOnHost.get().getLeft();<NEW_LINE>String version = binPathAndVersionOnHost.get().getRight();<NEW_LINE>if (versionMatch(version)) {<NEW_LINE>useGoExecutableOnHost(goBinPath, version);<NEW_LINE>} else {<NEW_LINE>fetchSpecifiedVersion(setting.getGoVersion());<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>fetchGoDistribution();<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>Optional<Pair<Path, String>> pathAndVersion = tryGivenGoExecutable();<NEW_LINE>Assert.isTrue(pathAndVersion.isPresent(), "Cannot execute given go binary: " + setting.getGoExecutable());<NEW_LINE>Assert.isTrue(versionMatch(pathAndVersion.get().getRight()), "Version not match: required is " + setting.getGoVersion() + ", given is " + pathAndVersion.<MASK><NEW_LINE>useGoExecutableOnHost(pathAndVersion.get().getLeft(), pathAndVersion.get().getRight());<NEW_LINE>}<NEW_LINE>} | 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 runtime<NEW_LINE>class1 = (Class<T<MASK><NEW_LINE>type = class1;<NEW_LINE>instance = in.readObject();<NEW_LINE>Object[] setArgs = (Object[]) in.readObject();<NEW_LINE>Object[] getArgs = (Object[]) in.readObject();<NEW_LINE>setArguments(getArgs, setArgs, setArgumentIndex);<NEW_LINE>String name = (String) in.readObject();<NEW_LINE>Class<?>[] paramTypes = SerializerHelper.readClassArray(in);<NEW_LINE>if (instance != null && name != null) {<NEW_LINE>setMethod = instance.getClass().getMethod(name, paramTypes);<NEW_LINE>} else {<NEW_LINE>setMethod = null;<NEW_LINE>}<NEW_LINE>name = (String) in.readObject();<NEW_LINE>paramTypes = SerializerHelper.readClassArray(in);<NEW_LINE>if (instance != null && name != null) {<NEW_LINE>getMethod = instance.getClass().getMethod(name, paramTypes);<NEW_LINE>} else {<NEW_LINE>getMethod = null;<NEW_LINE>}<NEW_LINE>} catch (SecurityException e) {<NEW_LINE>getLogger().log(Level.SEVERE, "Internal deserialization error", e);<NEW_LINE>} catch (NoSuchMethodException e) {<NEW_LINE>getLogger().log(Level.SEVERE, "Internal deserialization error", e);<NEW_LINE>}<NEW_LINE>} | >) 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(), isNightMode()).<MASK><NEW_LINE>TextView toolbarTitle = (TextView) view.findViewById(R.id.toolbar_title);<NEW_LINE>if (toolbarTitle != null) {<NEW_LINE>toolbarTitle.setText(getPreferenceScreen().getTitle());<NEW_LINE>}<NEW_LINE>TextView toolbarSubtitle = (TextView) view.findViewById(R.id.toolbar_subtitle);<NEW_LINE>if (toolbarSubtitle != null) {<NEW_LINE>toolbarSubtitle.setText(getSelectedAppMode().toHumanString());<NEW_LINE>}<NEW_LINE>View closeButton = view.findViewById(R.id.close_button);<NEW_LINE>if (closeButton != null) {<NEW_LINE>closeButton.setOnClickListener(new View.OnClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onClick(View v) {<NEW_LINE>MapActivity mapActivity = getMapActivity();<NEW_LINE>if (mapActivity != null) {<NEW_LINE>mapActivity.onBackPressed();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>});<NEW_LINE>if (closeButton instanceof ImageView) {<NEW_LINE>UiUtilities.rotateImageByLayoutDirection((ImageView) closeButton);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>View switchProfile = toolbarContainer == null ? null : toolbarContainer.findViewById(R.id.profile_button);<NEW_LINE>if (switchProfile != null) {<NEW_LINE>switchProfile.setContentDescription(getString(R.string.switch_profile));<NEW_LINE>switchProfile.setOnClickListener(new View.OnClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onClick(View v) {<NEW_LINE>FragmentManager fragmentManager = getFragmentManager();<NEW_LINE>if (fragmentManager != null) {<NEW_LINE>SelectAppModesBottomSheetDialogFragment.showInstance(fragmentManager, BaseSettingsFragment.this, false, getSelectedAppMode(), false);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>});<NEW_LINE>switchProfile.setVisibility(View.GONE);<NEW_LINE>}<NEW_LINE>} | inflate(currentScreenType.toolbarResId, appBarLayout); |
590,905 | final ListCoverageStatisticsResult executeListCoverageStatistics(ListCoverageStatisticsRequest listCoverageStatisticsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listCoverageStatisticsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListCoverageStatisticsRequest> request = null;<NEW_LINE>Response<ListCoverageStatisticsResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new ListCoverageStatisticsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listCoverageStatisticsRequest));<NEW_LINE>// Binds the request metrics to the current request.<NEW_LINE>request.setAWSRequestMetrics(awsRequestMetrics);<NEW_LINE>request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);<NEW_LINE>request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Inspector2");<NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListCoverageStatistics");<NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<ListCoverageStatisticsResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListCoverageStatisticsResultJsonUnmarshaller());<NEW_LINE>response = invoke(request, responseHandler, executionContext);<NEW_LINE>return response.getAwsResponse();<NEW_LINE>} finally {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>} | 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), Formatter.Format.TXT_SHORT));<NEW_LINE>screen.add(new Pair<>(new Pair<>(Scope.ACTIVITY, Dimension.DISTANCE), Formatter.Format.TXT_SHORT));<NEW_LINE>// I.e time of day<NEW_LINE>screen.add(new Pair<>(new Pair<>(Scope.CURRENT, Dimension.TIME), Formatter.Format.TXT_TIMESTAMP));<NEW_LINE>screens.add(screen);<NEW_LINE>}<NEW_LINE>for (List<Pair<Pair<Scope, Dimension>, Formatter.Format>> screen : screens) {<NEW_LINE>screenSizes.<MASK><NEW_LINE>}<NEW_LINE>} | 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.getSubmittedAtInstant().toEpochMilli(), endedAt.toEpochMilli(), jobMeta.getUser(), jobMeta.getLabels());<NEW_LINE>addToCacheAndSaveCompletedJobToStore(completedJob, of(jobMeta), jobStore);<NEW_LINE>// normally archiving is done by job actor, but these are jobs in active table that weren't archived<NEW_LINE>jobStore.archiveJob(jobMeta);<NEW_LINE>} catch (Exception e) {<NEW_LINE>logger.warn("Unable to save completed job {} to store due to {}", <MASK><NEW_LINE>}<NEW_LINE>} | 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_LINE>boolean renamed = outFile.renameTo(tempFile);<NEW_LINE>if (!renamed) {<NEW_LINE>throw new AndrolibException("Unable to rename temporary file");<NEW_LINE>}<NEW_LINE>try (ZipFile inputFile = new ZipFile(tempFile);<NEW_LINE>ZipOutputStream actualOutput = new ZipOutputStream(new FileOutputStream(outFile))) {<NEW_LINE>copyExistingFiles(inputFile, actualOutput);<NEW_LINE>copyUnknownFiles(appDir, actualOutput, files);<NEW_LINE>} catch (IOException | BrutException ex) {<NEW_LINE>throw new AndrolibException(ex);<NEW_LINE>}<NEW_LINE>// Remove our temporary file.<NEW_LINE>tempFile.delete();<NEW_LINE>}<NEW_LINE>} | 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_range, viewGroup, false);<NEW_LINE>final TextInputLayout startTextInput = root.findViewById(R.id.mtrl_picker_text_input_range_start);<NEW_LINE>final TextInputLayout endTextInput = root.findViewById(R.id.mtrl_picker_text_input_range_end);<NEW_LINE>EditText startEditText = startTextInput.getEditText();<NEW_LINE>EditText endEditText = endTextInput.getEditText();<NEW_LINE>if (ManufacturerUtils.isDateInputKeyboardMissingSeparatorCharacters()) {<NEW_LINE>// Using the URI variation places the '/' and '.' in more prominent positions<NEW_LINE>startEditText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_URI);<NEW_LINE>endEditText.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_URI);<NEW_LINE>}<NEW_LINE>invalidRangeStartError = root.getResources().getString(R.string.mtrl_picker_invalid_range);<NEW_LINE>SimpleDateFormat format = UtcDates.getTextInputFormat();<NEW_LINE>if (selectedStartItem != null) {<NEW_LINE>startEditText.setText(format.format(selectedStartItem));<NEW_LINE>proposedTextStart = selectedStartItem;<NEW_LINE>}<NEW_LINE>if (selectedEndItem != null) {<NEW_LINE>endEditText.setText(format.format(selectedEndItem));<NEW_LINE>proposedTextEnd = selectedEndItem;<NEW_LINE>}<NEW_LINE>String formatHint = UtcDates.getTextInputHint(<MASK><NEW_LINE>startTextInput.setPlaceholderText(formatHint);<NEW_LINE>endTextInput.setPlaceholderText(formatHint);<NEW_LINE>startEditText.addTextChangedListener(new DateFormatTextWatcher(formatHint, format, startTextInput, constraints) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>void onValidDate(@Nullable Long day) {<NEW_LINE>proposedTextStart = day;<NEW_LINE>updateIfValidTextProposal(startTextInput, endTextInput, listener);<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>void onInvalidDate() {<NEW_LINE>proposedTextStart = null;<NEW_LINE>updateIfValidTextProposal(startTextInput, endTextInput, listener);<NEW_LINE>}<NEW_LINE>});<NEW_LINE>endEditText.addTextChangedListener(new DateFormatTextWatcher(formatHint, format, endTextInput, constraints) {<NEW_LINE><NEW_LINE>void onValidDate(@Nullable Long day) {<NEW_LINE>proposedTextEnd = day;<NEW_LINE>updateIfValidTextProposal(startTextInput, endTextInput, listener);<NEW_LINE>}<NEW_LINE><NEW_LINE>void onInvalidDate() {<NEW_LINE>proposedTextEnd = null;<NEW_LINE>updateIfValidTextProposal(startTextInput, endTextInput, listener);<NEW_LINE>}<NEW_LINE>});<NEW_LINE>ViewUtils.requestFocusAndShowKeyboard(startEditText);<NEW_LINE>return root;<NEW_LINE>} | 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>} catch (JsonProcessingException e) {<NEW_LINE>throw new ApiException(e);<NEW_LINE>}<NEW_LINE>} else if (mimeType.equals(ContentType.MULTIPART_FORM_DATA.getMimeType())) {<NEW_LINE>MultipartEntityBuilder multiPartBuilder = MultipartEntityBuilder.create();<NEW_LINE>for (Entry<String, Object> paramEntry : formParams.entrySet()) {<NEW_LINE>Object value = paramEntry.getValue();<NEW_LINE>if (value instanceof File) {<NEW_LINE>multiPartBuilder.addBinaryBody(paramEntry.getKey<MASK><NEW_LINE>} else if (value instanceof byte[]) {<NEW_LINE>multiPartBuilder.addBinaryBody(paramEntry.getKey(), (byte[]) value);<NEW_LINE>} else {<NEW_LINE>multiPartBuilder.addTextBody(paramEntry.getKey(), parameterToString(paramEntry.getValue()));<NEW_LINE>}<NEW_LINE>}<NEW_LINE>return multiPartBuilder.build();<NEW_LINE>} else if (mimeType.equals(ContentType.APPLICATION_FORM_URLENCODED.getMimeType())) {<NEW_LINE>List<NameValuePair> formValues = new ArrayList<>();<NEW_LINE>for (Entry<String, Object> paramEntry : formParams.entrySet()) {<NEW_LINE>formValues.add(new BasicNameValuePair(paramEntry.getKey(), parameterToString(paramEntry.getValue())));<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>return new UrlEncodedFormEntity(formValues);<NEW_LINE>} catch (UnsupportedEncodingException e) {<NEW_LINE>throw new ApiException(e);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>// Handle files with unknown content type<NEW_LINE>if (obj instanceof File) {<NEW_LINE>return new FileEntity((File) obj, contentType);<NEW_LINE>} else if (obj instanceof byte[]) {<NEW_LINE>return new ByteArrayEntity((byte[]) obj, contentType);<NEW_LINE>}<NEW_LINE>throw new ApiException("Serialization for content type '" + contentType + "' not supported");<NEW_LINE>}<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>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (dedicatedCloudNodeName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter dedicatedCloudNodeName is required and cannot be null."));<NEW_LINE>}<NEW_LINE>final String accept = "application/json";<NEW_LINE>context = this.client.mergeContext(context);<NEW_LINE>return service.delete(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, dedicatedCloudNodeName, this.client.getApiVersion(), accept, context);<NEW_LINE>} | 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, "Missing the required parameter 'query' when calling testBodyWithQueryParams");<NEW_LINE>}<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testBodyWithQueryParams");<NEW_LINE>}<NEW_LINE>final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();<NEW_LINE><MASK><NEW_LINE>final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();<NEW_LINE>final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();<NEW_LINE>localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "query", query));<NEW_LINE>final String[] localVarAccepts = {};<NEW_LINE>final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);<NEW_LINE>final String[] localVarContentTypes = { "application/json" };<NEW_LINE>final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);<NEW_LINE>String[] localVarAuthNames = new String[] {};<NEW_LINE>ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {<NEW_LINE>};<NEW_LINE>return apiClient.invokeAPI("/fake/body-with-query-params", HttpMethod.PUT, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);<NEW_LINE>} | 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.allHaveServiceId(newMembers)) {<NEW_LINE>throw new MembershipNotSuitableForV2Exception("At least one potential new member does not support GV2 or UUID capabilities");<NEW_LINE>}<NEW_LINE>Set<GroupCandidate> groupCandidates = groupCandidateHelper.recipientIdsToCandidates(<MASK><NEW_LINE>if (SignalStore.internalValues().gv2ForceInvites()) {<NEW_LINE>groupCandidates = GroupCandidate.withoutProfileKeyCredentials(groupCandidates);<NEW_LINE>}<NEW_LINE>return commitChangeWithConflictResolution(groupOperations.createModifyGroupMembershipChange(groupCandidates, bannedMembers, selfAci.uuid()));<NEW_LINE>} | 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 = SOTrx.ofBoolean(invoice.isSOTrx());<NEW_LINE>final ZonedDateTime date = TimeUtil.asZonedDateTime(invoice.getDateInvoiced());<NEW_LINE>if (date == null) {<NEW_LINE>throw new AdempiereException("Set DateInvoiced first");<NEW_LINE>}<NEW_LINE>final BPartnerInvoicingInfo invoicingInfo = getBPartnerInvoicingInfo(bpartnerId, soTrx, date);<NEW_LINE>InvoiceDocumentLocationAdapterFactory.locationAdapter(invoice).<MASK><NEW_LINE>invoicingInfo.getPaymentRule().ifPresent(paymentRule -> invoice.setPaymentRule(paymentRule.getCode()));<NEW_LINE>invoicingInfo.getPaymentTermId().ifPresent(paymentTermId -> invoice.setC_PaymentTerm_ID(paymentTermId.getRepoId()));<NEW_LINE>invoice.setM_PriceList_ID(invoicingInfo.getPriceListId().getRepoId());<NEW_LINE>invoice.setIsTaxIncluded(invoicingInfo.isTaxIncluded());<NEW_LINE>invoice.setC_Currency_ID(invoicingInfo.getCurrencyId().getRepoId());<NEW_LINE>} | 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.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token == null)<NEW_LINE>token = context.nextToken();<NEW_LINE>if (token == VALUE_NULL) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>while (true) {<NEW_LINE>if (token == null)<NEW_LINE>break;<NEW_LINE>if (token == FIELD_NAME || token == START_OBJECT) {<NEW_LINE>if (context.testExpression("count", targetDepth)) {<NEW_LINE>context.nextToken();<NEW_LINE>antipatternSeveritySummary.setCount(context.getUnmarshaller(Integer.class).unmarshall(context));<NEW_LINE>}<NEW_LINE>if (context.testExpression("severity", targetDepth)) {<NEW_LINE>context.nextToken();<NEW_LINE>antipatternSeveritySummary.setSeverity(context.getUnmarshaller(String.<MASK><NEW_LINE>}<NEW_LINE>} else if (token == END_ARRAY || token == END_OBJECT) {<NEW_LINE>if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {<NEW_LINE>if (context.getCurrentDepth() <= originalDepth)<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>token = context.nextToken();<NEW_LINE>}<NEW_LINE>return antipatternSeveritySummary;<NEW_LINE>} | 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>@Override<NEW_LINE>public InputSet newInstance(final ModelTypeInstanceContext instanceContext) {<NEW_LINE>return new InputSetImpl(instanceContext);<NEW_LINE>}<NEW_LINE>});<NEW_LINE>nameAttribute = typeBuilder.stringAttribute("name").build();<NEW_LINE>final SequenceBuilder sequenceBuilder = typeBuilder.sequence();<NEW_LINE>dataInputDataInputRefsCollection = sequenceBuilder.elementCollection(DataInputRefs.class).idElementReferenceCollection(DataInput.class).build();<NEW_LINE>optionalInputRefsCollection = sequenceBuilder.elementCollection(OptionalInputRefs.class).idElementReferenceCollection(<MASK><NEW_LINE>whileExecutingInputRefsCollection = sequenceBuilder.elementCollection(WhileExecutingInputRefs.class).idElementReferenceCollection(DataInput.class).build();<NEW_LINE>outputSetOutputSetRefsCollection = sequenceBuilder.elementCollection(OutputSetRefs.class).idElementReferenceCollection(OutputSet.class).build();<NEW_LINE>typeBuilder.build();<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-private index writer. There is no point in caching it and it won't have a cache hit either.<NEW_LINE>*/<NEW_LINE>private static BitSetProducer newParentDocBitSetProducer(Version indexVersionCreated) {<NEW_LINE>return context -> {<NEW_LINE>Query query = Queries.newNonNestedFilter(indexVersionCreated);<NEW_LINE>final IndexReaderContext <MASK><NEW_LINE>final IndexSearcher searcher = new IndexSearcher(topLevelContext);<NEW_LINE>searcher.setQueryCache(null);<NEW_LINE>final Weight weight = searcher.createNormalizedWeight(query, false);<NEW_LINE>Scorer s = weight.scorer(context);<NEW_LINE>return s == null ? null : BitSet.of(s.iterator(), context.reader().maxDoc());<NEW_LINE>};<NEW_LINE>} | 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_LINE>if (f_negative_p(context, x))<NEW_LINE>x = f_negate(context, x);<NEW_LINE>if (f_negative_p(context, y))<NEW_LINE>y = f_negate(context, y);<NEW_LINE>if (f_zero_p(context, x))<NEW_LINE>return y;<NEW_LINE>if (f_zero_p(context, y))<NEW_LINE>return x;<NEW_LINE>for (; ; ) {<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) y).getLongValue()));<NEW_LINE>}<NEW_LINE>IRubyObject z = x;<NEW_LINE>x = f_mod(context, y, x);<NEW_LINE>y = z;<NEW_LINE>}<NEW_LINE>} | y).getLongValue())); |
1,574,663 | final ListServiceActionsResult executeListServiceActions(ListServiceActionsRequest listServiceActionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listServiceActionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListServiceActionsRequest> request = null;<NEW_LINE>Response<ListServiceActionsResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new ListServiceActionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listServiceActionsRequest));<NEW_LINE>// Binds the request metrics to the current request.<NEW_LINE>request.setAWSRequestMetrics(awsRequestMetrics);<NEW_LINE>request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);<NEW_LINE>request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Service Catalog");<NEW_LINE>request.<MASK><NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<ListServiceActionsResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListServiceActionsResultJsonUnmarshaller());<NEW_LINE>response = invoke(request, responseHandler, executionContext);<NEW_LINE>return response.getAwsResponse();<NEW_LINE>} finally {<NEW_LINE>endClientExecution(awsRequestMetrics, request, response);<NEW_LINE>}<NEW_LINE>} | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListServiceActions"); |
912,650 | final DeleteApnsSandboxChannelResult executeDeleteApnsSandboxChannel(DeleteApnsSandboxChannelRequest deleteApnsSandboxChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApnsSandboxChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteApnsSandboxChannelRequest> request = null;<NEW_LINE>Response<DeleteApnsSandboxChannelResult> response = null;<NEW_LINE>try {<NEW_LINE>awsRequestMetrics.startEvent(Field.RequestMarshallTime);<NEW_LINE>try {<NEW_LINE>request = new DeleteApnsSandboxChannelRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteApnsSandboxChannelRequest));<NEW_LINE>// Binds the request metrics to the current request.<NEW_LINE>request.setAWSRequestMetrics(awsRequestMetrics);<NEW_LINE>request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);<NEW_LINE>request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());<NEW_LINE>request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());<NEW_LINE>request.<MASK><NEW_LINE>request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteApnsSandboxChannel");<NEW_LINE>request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);<NEW_LINE>} finally {<NEW_LINE>awsRequestMetrics.endEvent(Field.RequestMarshallTime);<NEW_LINE>}<NEW_LINE>HttpResponseHandler<AmazonWebServiceResponse<DeleteApnsSandboxChannelResult>> responseHandler = protocolFactory.createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteApnsSandboxChannelResultJsonUnmarshaller());<NEW_LINE>response = invoke(request, responseHandler, executionContext);<NEW_LINE>return response.getAwsResponse();<NEW_LINE>} finally {<NEW_LINE>endClientExecution(awsRequestMetrics, request, response);<NEW_LINE>}<NEW_LINE>} | 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_LINE>final Path directoryMetadataFolder = vault.encrypt(session, folder, true);<NEW_LINE>final Path directoryMetadataFile = new Path(session._getFeature(Directory.class).mkdir(directoryMetadataFolder, new TransferStatus().withRegion(status.getRegion())), CryptoDirectoryV7Provider.DIRECTORY_METADATAFILE, EnumSet.of(Path.Type.file));<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug(String.format<MASK><NEW_LINE>}<NEW_LINE>new ContentWriter(session).write(directoryMetadataFile, directoryId.getBytes(StandardCharsets.UTF_8));<NEW_LINE>final Path intermediate = encrypt.getParent();<NEW_LINE>if (!find.find(intermediate)) {<NEW_LINE>delegate.mkdir(intermediate, new TransferStatus().withRegion(status.getRegion()));<NEW_LINE>}<NEW_LINE>// Write header<NEW_LINE>final FileHeader header = vault.getFileHeaderCryptor().create();<NEW_LINE>status.setHeader(vault.getFileHeaderCryptor().encryptHeader(header));<NEW_LINE>status.setNonces(new RandomNonceGenerator());<NEW_LINE>final Path target = delegate.withWriter(new CryptoWriteFeature<>(session, writer, vault)).mkdir(encrypt, status);<NEW_LINE>// Implementation may return new copy of attributes without encryption attributes<NEW_LINE>target.attributes().setDirectoryId(directoryId);<NEW_LINE>target.attributes().setDecrypted(folder);<NEW_LINE>// Make reference of encrypted path in attributes of decrypted file point to metadata file<NEW_LINE>final Path decrypt = vault.decrypt(session, vault.encrypt(session, target, true));<NEW_LINE>decrypt.attributes().setFileId(directoryMetadataFolder.attributes().getFileId());<NEW_LINE>decrypt.attributes().setVersionId(directoryMetadataFolder.attributes().getVersionId());<NEW_LINE>return decrypt;<NEW_LINE>} | ("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 instanceof TrackIpSla)) {<NEW_LINE>warn(ctx, "Cannot change track type");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TrackIpSla trackIpSla = (TrackIpSla) _configuration.getTracks().computeIfAbsent(_currentTrack, num -> new TrackIpSla(sla));<NEW_LINE>// inclusive or, STATE is default<NEW_LINE>assert ctx.REACHABILITY() == null || ctx.STATE() == null;<NEW_LINE>// You can change the sla and the subtype, but you can't change to a different top-level<NEW_LINE>// track type.<NEW_LINE>trackIpSla.setIpSla(sla);<NEW_LINE>trackIpSla.setReachability(ctx.REACHABILITY() != null);<NEW_LINE>} | 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.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>while (true) {<NEW_LINE>XMLEvent xmlEvent = context.nextEvent();<NEW_LINE>if (xmlEvent.isEndDocument())<NEW_LINE>return getReusableDelegationSetLimitResult;<NEW_LINE>if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) {<NEW_LINE>if (context.testExpression("Limit", targetDepth)) {<NEW_LINE>getReusableDelegationSetLimitResult.setLimit(ReusableDelegationSetLimitStaxUnmarshaller.getInstance().unmarshall(context));<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>if (context.testExpression("Count", targetDepth)) {<NEW_LINE>getReusableDelegationSetLimitResult.setCount(LongStaxUnmarshaller.getInstance().unmarshall(context));<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>} else if (xmlEvent.isEndElement()) {<NEW_LINE>if (context.getCurrentDepth() < originalDepth) {<NEW_LINE>return getReusableDelegationSetLimitResult;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>}<NEW_LINE>} | 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<>();<NEW_LINE>for (int i = 0; i < rulesArray.length(); i++) {<NEW_LINE>String shortName = rulesArray.getJSONObject(i).getString(JSONUtils.SHORT_NAME_KEY);<NEW_LINE>String description = null;<NEW_LINE>if (rulesArray.getJSONObject(i).has(JSONUtils.DESCRIPTION_KEY)) {<NEW_LINE>description = Utils.modifyMarkdown(rulesArray.getJSONObject(i)<MASK><NEW_LINE>}<NEW_LINE>rules.add(new Rule(shortName, description));<NEW_LINE>}<NEW_LINE>handler.post(() -> fetchRulesListener.success(rules));<NEW_LINE>} catch (JSONException e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>handler.post(fetchRulesListener::failed);<NEW_LINE>}<NEW_LINE>});<NEW_LINE>} | .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.isAssignableFrom(handlerClass)) {<NEW_LINE>Class<?> onMessageClass = ReflectUtils.findGenericClassFor(handlerClass, MessageHandler.Whole.class);<NEW_LINE>addMessageHandler(onMessageClass, (MessageHandler.Whole) handler);<NEW_LINE>added = true;<NEW_LINE>}<NEW_LINE>if (MessageHandler.Partial.class.isAssignableFrom(handlerClass)) {<NEW_LINE>Class<?> onMessageClass = ReflectUtils.findGenericClassFor(<MASK><NEW_LINE>addMessageHandler(onMessageClass, (MessageHandler.Partial) handler);<NEW_LINE>added = true;<NEW_LINE>}<NEW_LINE>if (!added) {<NEW_LINE>// Should not be possible<NEW_LINE>throw new IllegalStateException("Not a recognized " + MessageHandler.class.getName() + " type: " + handler.getClass());<NEW_LINE>}<NEW_LINE>} | 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.stringValue("DescribeDBInstanceTDEResponse.TDEStatus"));<NEW_LINE>List<Database> databases <MASK><NEW_LINE>for (int i = 0; i < _ctx.lengthValue("DescribeDBInstanceTDEResponse.Databases.Length"); i++) {<NEW_LINE>Database database = new Database();<NEW_LINE>database.setDBName(_ctx.stringValue("DescribeDBInstanceTDEResponse.Databases[" + i + "].DBName"));<NEW_LINE>database.setTDEStatus(_ctx.stringValue("DescribeDBInstanceTDEResponse.Databases[" + i + "].TDEStatus"));<NEW_LINE>databases.add(database);<NEW_LINE>}<NEW_LINE>describeDBInstanceTDEResponse.setDatabases(databases);<NEW_LINE>return describeDBInstanceTDEResponse;<NEW_LINE>} | = 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.setInteger("bonusDraws", bonusDraws);<NEW_LINE>nbt.setInteger("aidsChosen", aidsChosen);<NEW_LINE>nbt.setInteger("penaltyStart", penaltyStart);<NEW_LINE>//<NEW_LINE>NBTTagList savedTag = new NBTTagList();<NEW_LINE>for (Long card : savedCards) {<NEW_LINE>NBTTagCompound gt = new NBTTagCompound();<NEW_LINE>gt.setLong("card", card);<NEW_LINE>savedTag.appendTag(gt);<NEW_LINE>}<NEW_LINE>nbt.setTag("savedCards", savedTag);<NEW_LINE>//<NEW_LINE>NBTTagList categoriesBlockedTag = new NBTTagList();<NEW_LINE>for (String category : categoriesBlocked) {<NEW_LINE>NBTTagCompound gt = new NBTTagCompound();<NEW_LINE>gt.setString("category", category);<NEW_LINE>categoriesBlockedTag.appendTag(gt);<NEW_LINE>}<NEW_LINE>nbt.setTag("categoriesBlocked", categoriesBlockedTag);<NEW_LINE>//<NEW_LINE>NBTTagList categoryTotalsTag = new NBTTagList();<NEW_LINE>for (String category : categoryTotals.keySet()) {<NEW_LINE>NBTTagCompound gt = new NBTTagCompound();<NEW_LINE>gt.setString("category", category);<NEW_LINE>gt.setInteger("total", categoryTotals.get(category));<NEW_LINE>categoryTotalsTag.appendTag(gt);<NEW_LINE>}<NEW_LINE>nbt.setTag("categoryTotals", categoryTotalsTag);<NEW_LINE>//<NEW_LINE>NBTTagList aidCardsTag = new NBTTagList();<NEW_LINE>for (String mc : aidCards) {<NEW_LINE>NBTTagCompound gt = new NBTTagCompound();<NEW_LINE>gt.setString("aidCard", mc);<NEW_LINE>aidCardsTag.appendTag(gt);<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>//<NEW_LINE>NBTTagList cardChoicesTag = new NBTTagList();<NEW_LINE>for (CardChoice mc : cardChoices) {<NEW_LINE>NBTTagCompound gt = serializeCardChoice(mc);<NEW_LINE>cardChoicesTag.appendTag(gt);<NEW_LINE>}<NEW_LINE>nbt.setTag("cardChoices", cardChoicesTag);<NEW_LINE>if (lastDraw != null)<NEW_LINE>nbt.setTag("lastDraw", serializeCardChoice(lastDraw));<NEW_LINE>// if (savedCard!=null) nbt.setTag("savedCard", serializeCardChoice(savedCard));<NEW_LINE>return nbt;<NEW_LINE>} | 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_LINE>CreateImageCacheFromVolumeSnapshotOnPrimaryStorageMsg cmsg = new CreateImageCacheFromVolumeSnapshotOnPrimaryStorageMsg();<NEW_LINE>cmsg.setImageInventory(image);<NEW_LINE>cmsg.setVolumeSnapshot(VolumeSnapshotInventory.valueOf(currentRoot));<NEW_LINE>bus.makeTargetServiceIdByResourceUuid(cmsg, PrimaryStorageConstant.SERVICE_ID, cmsg.getPrimaryStorageUuid());<NEW_LINE>bus.send(cmsg, new CloudBusCallBack(completion) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(MessageReply r) {<NEW_LINE>if (!r.isSuccess()) {<NEW_LINE>reply.setError(r.getError());<NEW_LINE>} else {<NEW_LINE>CreateImageCacheFromVolumeSnapshotOnPrimaryStorageReply cr = r.castReply();<NEW_LINE>reply.setLocationHostUuid(cr.getLocateHostUuid());<NEW_LINE>reply.setActualSize(cr.getActualSize());<NEW_LINE>}<NEW_LINE>bus.reply(msg, reply);<NEW_LINE>completion.done();<NEW_LINE>}<NEW_LINE>});<NEW_LINE>} | (), 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();<NEW_LINE>Map<OMultiKey, Set<OIndex>> map = classPropertyIndex.get(indexDefinition.getClassName().toLowerCase(locale));<NEW_LINE>if (map == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>map = new HashMap<>(map);<NEW_LINE>final int paramCount = indexDefinition.getParamCount();<NEW_LINE>for (int i = 1; i <= paramCount; i++) {<NEW_LINE>final List<String> fields = indexDefinition.getFields().subList(0, i);<NEW_LINE>final OMultiKey multiKey = new OMultiKey(fields);<NEW_LINE>Set<OIndex> indexSet = map.get(multiKey);<NEW_LINE>if (indexSet == null)<NEW_LINE>continue;<NEW_LINE>indexSet = new HashSet<>(indexSet);<NEW_LINE>indexSet.remove(idx);<NEW_LINE>if (indexSet.isEmpty()) {<NEW_LINE>map.remove(multiKey);<NEW_LINE>} else {<NEW_LINE>map.put(multiKey, indexSet);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (map.isEmpty())<NEW_LINE>classPropertyIndex.remove(indexDefinition.getClassName().toLowerCase(locale));<NEW_LINE>else<NEW_LINE>classPropertyIndex.put(indexDefinition.getClassName().toLowerCase(<MASK><NEW_LINE>} finally {<NEW_LINE>releaseExclusiveLock();<NEW_LINE>}<NEW_LINE>} | locale), copyPropertyMap(map)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.