idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,744,081 | private DoFnRunners.OutputManager createOutputManager(OpEmitter<OutT> emitter, FutureCollector<OutT> collector) {<NEW_LINE>return new DoFnRunners.OutputManager() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>public <T> void output(TupleTag<T> tupleTag, WindowedValue<T> windowedValue) {... | value -> (OutT) value)); |
317,917 | public void printAll() {<NEW_LINE>AutoTypeImage[] types = AutoTypeImage.getSpecificTypes();<NEW_LINE>for (AutoTypeImage t : types) {<NEW_LINE>input = t;<NEW_LINE>printBoundImage();<NEW_LINE>printDiffAbs();<NEW_LINE>}<NEW_LINE>AutoTypeImage[] outputsAdd = new AutoTypeImage[] { U16, S16, S32, S32, S32, S64, F32, F64 };<N... | i], outputsAdd[i]); |
404,317 | protected String[] existing_names() throws Exception {<NEW_LINE>final String method = "existing_names";<NEW_LINE>Log.finer(c, method, "Return list of existing databases.");<NEW_LINE>String cmd = "sqlcmd -m-1 -b -Q \"select name from sys.databases\"";<NEW_LINE>ProgramOutput <MASK><NEW_LINE>if (dbs_list.getReturnCode() !... | dbs_list = databaseMachine.execute(cmd); |
135,606 | default Stream<String> steps() {<NEW_LINE>List<Scannable> chain = new ArrayList<>();<NEW_LINE>chain.addAll(parents().collect(Collectors.toList()));<NEW_LINE>Collections.reverse(chain);<NEW_LINE>chain.add(this);<NEW_LINE>chain.addAll(actuals().collect(Collectors.toList()));<NEW_LINE>List<String> chainNames = new ArrayLi... | >(chain.size()); |
1,457,584 | public void onCreate(final Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE><MASK><NEW_LINE>if (savedInstanceState != null) {<NEW_LINE>String[] selectedContacts = savedInstanceState.getStringArray("selected_contacts");<NEW_LINE>if (selectedContacts != null) {<NEW_LINE>selected.clear();... | filterContacts = new HashSet<>(); |
1,746,213 | public void init(IStreamDataExporterSite site) throws DBException {<NEW_LINE>super.init(site);<NEW_LINE>Map<String, Object> properties = site.getProperties();<NEW_LINE>this.batchSize = Math.max(CommonUtils.toInt(properties.get(PROP_BATCH_SIZE), 200), 200);<NEW_LINE>this.minColumnSize = Math.max(CommonUtils.toInt(proper... | .get(PROP_DELIM_BETWEEN), true); |
517,789 | public static void main(String[] args) throws IOException, NoSuchAlgorithmException, InvalidKeyException {<NEW_LINE>try {<NEW_LINE>// MinioClient minioClient =<NEW_LINE>// MinioClient.builder()<NEW_LINE>// .endpoint("https://s3.amazonaws.com")<NEW_LINE>// .credentials("YOUR-ACCESSKEY", "YOUR-SECRETACCESSKEY")<NEW_LINE>... | ServerSideEncryptionCustomerKey(keyGen.generateKey()); |
130,579 | public static ModifyElastictaskResponse unmarshall(ModifyElastictaskResponse modifyElastictaskResponse, UnmarshallerContext _ctx) {<NEW_LINE>modifyElastictaskResponse.setRequestId(_ctx.stringValue("ModifyElastictaskResponse.RequestId"));<NEW_LINE>Result result = new Result();<NEW_LINE>ElasticExpansionTask elasticExpans... | (_ctx.stringValue("ModifyElastictaskResponse.Result.elasticShrinkTask.triggerType")); |
893,980 | public void run() {<NEW_LINE>if (regulardelete) {<NEW_LINE>safeDelete = new JCheckBox();<NEW_LINE>Mnemonics.setLocalizedText(safeDelete, NbBundle.getMessage(SafeDeletePanel.class, "LBL_SafeDelCheckBox"));<NEW_LINE>safeDelete.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(SafeDeletePanel.class, "Saf... | setEnabled(safeDelete.isSelected()); |
246,211 | JPopupMenu createTableColumnPopup() {<NEW_LINE>JPopupMenu tableColumnPopup;<NEW_LINE>JMenu menu, subMenu;<NEW_LINE>JMenuItem menuItem;<NEW_LINE>JMenuItem subMenuItem;<NEW_LINE>// Create the popup menu.<NEW_LINE>tableColumnPopup = new JPopupMenu();<NEW_LINE>// NOI18N<NEW_LINE>menuItem = new JMenuItem(NbBundle.getMessage... | (QueryBuilderInternalFrame.class, "SORT_ASCENDING")); |
1,136,159 | private void onConfigExport() {<NEW_LINE>FileDialog dialog = new FileDialog(getControl().getShell(), SWT.SAVE);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String proposal = TextUtil.sanitizeFilename(currentConfigLabel != null ? currentConfigLabel : "csv-config");<NEW_LINE>// $NON-NLS-1$<NEW_LINE><MASK><NEW_LINE>dialog.setOverwri... | dialog.setFileName(proposal + ".json"); |
806,314 | private void deserializeFromReader(MLogReader mLogReader, Map<IStorageGroupMNode, List<IMeasurementMNode>> sgMeasurementMap) throws IOException {<NEW_LINE>Deque<IMNode> nodeStack = new ArrayDeque<>();<NEW_LINE>IMNode node = null;<NEW_LINE>List<IMeasurementMNode> measurementMNodeList = new LinkedList<>();<NEW_LINE>while... | alias, child.getAsMeasurementMNode()); |
822,827 | private void internalResolve(Scope scope, boolean staticContext) {<NEW_LINE>// detect variable/type name collisions<NEW_LINE>if (this.binding != null) {<NEW_LINE>Binding existingType = scope.parent.getBinding(this.name, Binding.TYPE, this, false);<NEW_LINE>if (existingType != null && this.binding != existingType && exi... | ).typeHiding(this, existingType); |
909,503 | public synchronized void changeInputScale() {<NEW_LINE>calib = new StereoParameters(origCalib);<NEW_LINE>double scale = control.inputScale / 100.0;<NEW_LINE>PerspectiveOps.<MASK><NEW_LINE>PerspectiveOps.scaleIntrinsic(calib.right, scale);<NEW_LINE>int w = (int) (origLeft.getWidth() * scale);<NEW_LINE>int h = (int) (ori... | scaleIntrinsic(calib.left, scale); |
538,296 | private void spawnBlock(double x, double y) {<NEW_LINE>var p = new PhysicsComponent();<NEW_LINE>p.setBodyType(BodyType.DYNAMIC);<NEW_LINE>p.setFixtureDef(new FixtureDef().friction(fieldFriction.getFloat()).density(fieldDensity.getFloat()).restitution(fieldRestitution.getFloat()));<NEW_LINE>BoundingShape shape;<NEW_LINE... | ).setStroke(Color.ORANGE); |
347,780 | protected void performAction(Node[] activatedNodes) {<NEW_LINE>final GrailsPlatform runtime = GrailsPlatform.getDefault();<NEW_LINE>if (!runtime.isConfigured()) {<NEW_LINE>ConfigurationSupport.showConfigurationWarning(runtime);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DataObject dataObject = activatedNodes[0].getLookup().l... | domainDir, dataObject.getPrimaryFile()); |
347,019 | List<GaugeValue> collectGaugeValues(GaugeConfig gaugeConfig, List<MBeanServer> mbeanServers) throws Exception {<NEW_LINE>String mbeanObjectName = gaugeConfig.mbeanObjectName();<NEW_LINE>ObjectName objectName;<NEW_LINE>try {<NEW_LINE>objectName = ObjectName.getInstance(mbeanObjectName);<NEW_LINE>} catch (MalformedObject... | queryNames(objectName, null, mbeanServers); |
1,024,557 | public static void horizontal11(Kernel1D_S32 kernel, GrayS16 image, GrayI16 dest) {<NEW_LINE>final short[] dataSrc = image.data;<NEW_LINE>final short[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = ker... | dataSrc[indexSrc++]) * k6; |
1,435,087 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.wsspi.http.VirtualHostListener#contextRootAdded(java.lang.String, com.ibm.wsspi.http.VirtualHost)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void contextRootAdded(String contextRoot, VirtualHost virtualHost) {<NEW_LINE>// Remove any trailing / or /* cha... | = new ArrayList<String>(); |
1,059,028 | protected void doPutFutureBytes(OffsetSnap loc, ByteBuffer buf, int dstOffset, int maxLen, OutSnap lastSnap, Set<TraceAddressSnapRange> changed) throws IOException {<NEW_LINE>// NOTE: Do not leave the buffer advanced from here<NEW_LINE>int pos = buf.position();<NEW_LINE>// exclusive?<NEW_LINE>Iterator<DBTraceMemoryBloc... | ), remaining, state -> true); |
194,946 | public static AttestationResult fromGeneratedAttestationResult(com.azure.security.attestation.implementation.models.AttestationResult generated) {<NEW_LINE>AttestationResultImpl result = new AttestationResultImpl();<NEW_LINE>// MAA Claims:<NEW_LINE>result.enclaveHeldData = generated.getEnclaveHeldData();<NEW_LINE>resul... | .getProductId().intValue(); |
1,512,226 | final DescribeLoadBalancersResult executeDescribeLoadBalancers(DescribeLoadBalancersRequest describeLoadBalancersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLoadBalancersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Load Balancing"); |
148,702 | static // d465813 // switch to 'bindings' d511673<NEW_LINE>boolean hasAppManagedPC(Collection<InjectionBinding<?>> injectionBindings, String ejbName, Set<String> persistenceRefNames) {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEna... | "> :" + injectionBindings) : "No Injection Bindings")); |
936,800 | public LogicalSubQueryPlan buildLogicalQueryPlan(ContextManager contextManager) {<NEW_LINE>TreeNodeLabelManager labelManager = contextManager.getTreeNodeLabelManager();<NEW_LINE><MASK><NEW_LINE>LogicalSubQueryPlan logicalSubQueryPlan = new LogicalSubQueryPlan(contextManager);<NEW_LINE>LogicalVertex sourceVertex = getIn... | VertexIdManager vertexIdManager = contextManager.getVertexIdManager(); |
351,682 | public Predicate addPredicate(String theResourceName, RuntimeSearchParam theSearchParam, List<? extends IQueryParameterType> theList, SearchFilterParser.CompareOperation theOperation, RequestPartitionId theRequestPartitionId) {<NEW_LINE>if (theList.get(0).getMissing() != null) {<NEW_LINE>From<?, ResourceIndexedSearchPa... | addPartitionIdPredicate(theRequestPartitionId, join, codePredicates); |
591,068 | public static void encode(SpawnEntity msg, FriendlyByteBuf buf) {<NEW_LINE><MASK><NEW_LINE>buf.writeInt(msg.entityId);<NEW_LINE>buf.writeLong(msg.uuid.getMostSignificantBits());<NEW_LINE>buf.writeLong(msg.uuid.getLeastSignificantBits());<NEW_LINE>buf.writeDouble(msg.posX);<NEW_LINE>buf.writeDouble(msg.posY);<NEW_LINE>b... | buf.writeVarInt(msg.typeId); |
1,420,322 | public static double ewensLikelihoodRatio(int[] countsX, int[] countsY, double lambda) {<NEW_LINE>if (countsX.length != countsY.length) {<NEW_LINE>throw new IllegalArgumentException("both arrays must contain the same number of dimensions");<NEW_LINE>}<NEW_LINE>@Var<NEW_LINE>double logLikelihood = 0.0;<NEW_LINE>@Var<NEW... | logGamma(lambda + totalX + totalY); |
1,162,413 | private void addFileBtnActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_addFileBtnActionPerformed<NEW_LINE>if (fc == null) {<NEW_LINE>fc = new JFileChooser();<NEW_LINE>}<NEW_LINE>String root = PathUtils.getExpandedResourceRoot(container.getModelItem());<NEW_LINE>if (StringUtils.hasContent(r... | UISupport.confirmOrCancel("Cache attachment in request?", "Add Attachment"); |
1,540,252 | public void downgradeSunEjbJarDocument() {<NEW_LINE>this.transInfo = getTransformInfo();<NEW_LINE>if (transInfo != null) {<NEW_LINE>Vector<ModElement> modElementsList = new Vector<ModElement>();<NEW_LINE>Xmltype type = null;<NEW_LINE>if (currentVersion.equals(SunEjbJar.VERSION_3_0_1)) {<NEW_LINE>type = getXmlType(trans... | type = getXmlType(transInfo, "sunEjb300"); |
1,472,590 | Bitmap readCached(ImageViewSpec spec) {<NEW_LINE>Bitmap bm = null;<NEW_LINE>if (memoryCache != null) {<NEW_LINE>bm = memoryCache.get(spec.cacheKey);<NEW_LINE>}<NEW_LINE>if (bm == null && diskCache != null) {<NEW_LINE>Pair<Bitmap, BitmapFactory.Options> bmData = diskCache.get(spec.cacheKey, spec.widthHint, spec.heightHi... | spec.inBitmapRef.get()); |
223,387 | // Run after performing Dinics/Edmonds Karp to get nodes in min-cut<NEW_LINE>// Basically performs BFS on the flow graph one more time<NEW_LINE>List<Integer> minCut(int s, int t) {<NEW_LINE>List<Integer> result = new ArrayList<>();<NEW_LINE>d = new int[V];<NEW_LINE>// record BFS sp tree<NEW_LINE>p = new Pair[V];<NEW_LI... | q = new LinkedList<>(); |
513,852 | public static byte[][] toRawSerializedHeaders(byte[][] http2Headers) {<NEW_LINE>for (int i = 0; i < http2Headers.length; i += 2) {<NEW_LINE>byte[] key = http2Headers[i];<NEW_LINE>byte[] value = http2Headers[i + 1];<NEW_LINE>if (endsWith(key, binaryHeaderSuffixBytes)) {<NEW_LINE>// Binary header<NEW_LINE>for (int idx = ... | new String(value, US_ASCII)); |
1,710,285 | private void print(final PrintPackage printPackage, final PrintPackageInfo printPackageInfo, final PrintablePDF printable) throws PrinterException {<NEW_LINE>logger.log(Level.FINE, "Printing {}", printPackageInfo);<NEW_LINE>final PrintPackageRequest printRequest = new PrintPackageRequest(printPackage, printPackageInfo)... | Context.CTX_Engine_RetryIntervalMS, Context.DEFAULT_RetryIntervalMS); |
1,328,157 | private void loadNode529() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerType_ServiceLevel, new QualifiedName(0, "ServiceLevel"), new LocalizedText("en", "ServiceLevel"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), Iden... | .expanded(), false)); |
619,939 | protected Object captureStackTrace(VirtualFrame frame, Object object, Object skipUpTo) {<NEW_LINE>if (!JSRuntime.isObject(object)) {<NEW_LINE>errorProfile.enter();<NEW_LINE>throw Errors.createTypeError("invalid_argument");<NEW_LINE>}<NEW_LINE>JSObject obj = (JSObject) object;<NEW_LINE>if (!JSObject.isExtensible(obj)) {... | getFunctionObject(frame.getArguments()); |
75,311 | final CreateNetworkInsightsAccessScopeResult executeCreateNetworkInsightsAccessScope(CreateNetworkInsightsAccessScopeRequest createNetworkInsightsAccessScopeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createNetworkInsightsAccessScopeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri... | endClientExecution(awsRequestMetrics, request, response); |
361,905 | public void createHook() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.administration.MetricsAdvisorAdministrationClient.createHook#NotificationHook<NEW_LINE>NotificationHook emailNotificationHook = new EmailNotificationHook("email notificationHook").setDescription("my email notificationHook").setEmailsToAlert(new A... | notificationHook = metricsAdvisorAdminClient.createHook(emailNotificationHook); |
665,422 | public MultipleObjectsBundle filter(MultipleObjectsBundle objects) {<NEW_LINE>final int size = objects.dataLength();<NEW_LINE>if (size == 0) {<NEW_LINE>return objects;<NEW_LINE>}<NEW_LINE>MultipleObjectsBundle bundle = new MultipleObjectsBundle();<NEW_LINE>for (int r = 0; r < objects.metaLength(); r++) {<NEW_LINE>@Supp... | , factory.newNumberVector(buf)); |
1,619,594 | public static List<IdentityProviderModel> filterIdentityProviders(Stream<IdentityProviderModel> providers, KeycloakSession session, AuthenticationFlowContext context) {<NEW_LINE>if (context != null) {<NEW_LINE>AuthenticationSessionModel authSession = context.getAuthenticationSession();<NEW_LINE>SerializedBrokeredIdenti... | contains(idp.getAlias()); |
819,055 | public CreateUserResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateUserResult createUserResult = new CreateUserResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentT... | String currentParentElement = context.getCurrentParentElement(); |
148,646 | protected void paintComponent(Graphics g) {<NEW_LINE>g.setColor(getBackground());<NEW_LINE>g.fillRect(0, 0, getWidth(), getHeight());<NEW_LINE>FontMetrics fm = getFontMetrics(getFont());<NEW_LINE>Rectangle textR = new Rectangle();<NEW_LINE>String clippedText = layoutLabel(fm, key, textR);<NEW_LINE>int x = textR.x;<NEW_... | .y + fm.getAscent(); |
1,592,175 | // warn if >1 auth filter could have matched this request. If so, inconsistent behavior is possible.<NEW_LINE>void warnIfAmbiguousAuthFilters(Iterator<OidcClientConfig> oidcClientConfigs, HttpServletRequest req, ConcurrentServiceReferenceMap<String, AuthenticationFilter> AFServiceRef) {<NEW_LINE>HashMap<String, Object... | + it.next() + " "; |
1,694,027 | private ActionParam convertData(ActionDO actionDo, String type) {<NEW_LINE>try {<NEW_LINE>ActionParam actionParam = new ActionParam();<NEW_LINE>if (actionDo == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ClassUtil.copy(actionParam, actionDo);<NEW_LINE>if (actionDo.getExecData() != null) {<NEW_LINE>actionParam.set... | (actionDo.getExecData())); |
1,264,345 | private static Method synthesizeJsConstructor(Type type) {<NEW_LINE>Method jsConstructor = checkNotNull(getJsConstructor(type));<NEW_LINE>MethodCall superConstructorInvocation = AstUtils.getConstructorInvocation(jsConstructor);<NEW_LINE>checkArgument(superConstructorInvocation.getTarget().isMemberOf(type.getSuperTypeDe... | setArguments(arguments).build(); |
904,038 | public void onRestoreInstanceState(Parcelable savedState) {<NEW_LINE>if (savedState instanceof Bundle) {<NEW_LINE>Bundle bundle = (Bundle) savedState;<NEW_LINE><MASK><NEW_LINE>if (adapter != null) {<NEW_LINE>setTextInternal(selectedTextFormatter.format(adapter.getItemInDataset(selectedIndex)).toString());<NEW_LINE>adap... | selectedIndex = bundle.getInt(SELECTED_INDEX); |
641,796 | protected UiControllerProperty loadUiControllerProperty(Element propertyElement) {<NEW_LINE>String propertyName = propertyElement.attributeValue("name");<NEW_LINE>if (StringUtils.isEmpty(propertyName)) {<NEW_LINE>throw new IllegalStateException("Screen property cannot have empty name");<NEW_LINE>}<NEW_LINE>String prope... | entityView = propertyElement.attributeValue("entityView"); |
1,426,884 | public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not val... | format("The resource ID '%s' is not valid. Missing path segment 'incidents'.", id))); |
1,524,874 | public void run() {<NEW_LINE>Instant now = clock.now();<NEW_LINE>// Fetch new candidates for execution. Old ones still in ExecutorService will become stale and be discarded<NEW_LINE>final int executionsToFetch = upperLimit;<NEW_LINE>List<Execution> fetchedDueExecutions = taskRepository.getDue(now, executionsToFetch);<N... | newDueBatch.oneExecutionDone(triggerCheckForNewExecutions::run); |
542,436 | public final SubSelectFilterExprContext subSelectFilterExpr() throws RecognitionException {<NEW_LINE>SubSelectFilterExprContext _localctx = new SubSelectFilterExprContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 342, RULE_subSelectFilterExpr);<NEW_LINE>paraphrases.push("subquery filter specification");<NEW_LINE... | _la = _input.LA(1); |
916,170 | final ListAssessmentRunsResult executeListAssessmentRuns(ListAssessmentRunsRequest listAssessmentRunsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAssessmentRunsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListAssessmentR... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
644,695 | final GenerateChangeSetResult executeGenerateChangeSet(GenerateChangeSetRequest generateChangeSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(generateChangeSetRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GenerateChangeSetReq... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,052,220 | public static ExecutionStatus tryCatchException(Exception e) {<NEW_LINE>ExecutionStatus responseResult = new ExecutionStatus();<NEW_LINE>if (e instanceof QueryProcessException) {<NEW_LINE>responseResult.setMessage(e.getMessage());<NEW_LINE>responseResult.setCode(((QueryProcessException) e).getErrorCode());<NEW_LINE>} e... | TSStatusCode.EXECUTE_STATEMENT_ERROR.getStatusCode()); |
1,494,623 | private static void addTrace(List<TransactionTrace> traces, SummarizedProgramTrace trace, TransactionInfo txInfo, long blockNumber, TraceAddress traceAddress) {<NEW_LINE>boolean isContractCreation = txInfo.getReceipt()<MASK><NEW_LINE>CallType callType = isContractCreation ? CallType.NONE : CallType.CALL;<NEW_LINE>byte[... | .getTransaction().isContractCreation(); |
678,400 | protected Component createRepositoryIndicators(RepositoryModel repository) {<NEW_LINE>Fragment fragment = new <MASK><NEW_LINE>if (repository.isBare) {<NEW_LINE>fragment.add(new Label("workingCopyIndicator").setVisible(false));<NEW_LINE>} else {<NEW_LINE>Fragment wc = new Fragment("workingCopyIndicator", "workingCopyFra... | Fragment("repositoryIndicators", "indicatorsFragment", this); |
847,070 | public void onUserPressedShortcut(@Nonnull Keymap keymap, @Nonnull String[] actionIds, @Nonnull KeyboardShortcut ksc) {<NEW_LINE>if (actionIds.length == 0)<NEW_LINE>return;<NEW_LINE>KeyStroke ks = ksc.getFirstKeyStroke();<NEW_LINE>AWTKeyStroke sysKs = myKeyStroke2SysShortcut.get(ks);<NEW_LINE>if (sysKs == null && ksc.g... | ks = ksc.getSecondKeyStroke()); |
512,795 | private void init(String domain, String charsetname) {<NEW_LINE>_charset = Charset.forName(charsetname);<NEW_LINE>_fsa = new FSA(domain + ".fsa", charsetname);<NEW_LINE>if (!_fsa.isOk()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FileInputStream file;<NEW_LINE>try {<NEW_LINE>file = new FileInputStream(domain + ".dat");<NEW... | _header.order(ByteOrder.LITTLE_ENDIAN); |
1,232,664 | private static Collection<String> metricNames(Request req) {<NEW_LINE>int code = req<MASK><NEW_LINE>if (code == 401)<NEW_LINE>return Set.of(MetricDefinitions.RESPONSES_401, MetricDefinitions.RESPONSES_4XX);<NEW_LINE>else if (code == 403)<NEW_LINE>return Set.of(MetricDefinitions.RESPONSES_403, MetricDefinitions.RESPONSE... | .getResponse().getStatus(); |
339,262 | private void printTypeLists() throws IOException {<NEW_LINE>if (tableOfContents.typeLists.off == -1) {<NEW_LINE>Log.d("DexIndexPrinter", "No type lists");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Dex.Section in = dex.<MASK><NEW_LINE>for (int i = 0; i < tableOfContents.typeLists.size; i++) {<NEW_LINE>int size = in.readInt()... | open(tableOfContents.typeLists.off); |
1,192,108 | public S3SetObjectLegalHoldOperation unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>S3SetObjectLegalHoldOperation s3SetObjectLegalHoldOperation = new S3SetObjectLegalHoldOperation();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE... | int originalDepth = context.getCurrentDepth(); |
677,808 | private void writeChart(JRChart chart, String chartName) {<NEW_LINE>if (chart != null) {<NEW_LINE>write(chartName + ".setShowLegend({0});\n", getBooleanText(chart.getShowLegend()));<NEW_LINE>write(chartName + ".setEvaluationTime({0});\n", chart.getEvaluationTimeValue(), EvaluationTimeEnum.NOW);<NEW_LINE>write(chartName... | ".setTitleColor({0});\n", chart.getOwnTitleColor()); |
1,822,011 | public void onOpen(Player who) {<NEW_LINE>super.onOpen(who);<NEW_LINE>ContainerOpenPacket pk = new ContainerOpenPacket();<NEW_LINE>pk.windowId = who.getWindowId(this);<NEW_LINE>pk.type = this.getType().getNetworkType();<NEW_LINE>InventoryHolder holder = this.getHolder();<NEW_LINE>if (holder instanceof Vector3) {<NEW_LI... | Vector3) holder).getZ(); |
764,051 | public void transform(Grob g, Transform t, boolean override) {<NEW_LINE>if (override) {<NEW_LINE>currentTransform = new Transform();<NEW_LINE>}<NEW_LINE>if (!transform.getAffineTransform().isIdentity()) {<NEW_LINE><MASK><NEW_LINE>revertedTransform.invert();<NEW_LINE>g.transform(revertedTransform);<NEW_LINE>}<NEW_LINE>c... | Transform revertedTransform = transform.clone(); |
343,919 | public OutlierResult autorun(Database database) {<NEW_LINE>DBIDs ids = database.getRelation(TypeUtil.ANY).getDBIDs();<NEW_LINE>// Run the primary algorithm<NEW_LINE>Clustering<? extends SubspaceModel> clustering = clusteralg.autorun(database);<NEW_LINE>WritableDoubleDataStore score = DataStoreUtil.makeDoubleStorage(ids... | + (1 - alpha) * reldim; |
296,530 | public static ListCorpIdentifyOssLinkResponse unmarshall(ListCorpIdentifyOssLinkResponse listCorpIdentifyOssLinkResponse, UnmarshallerContext context) {<NEW_LINE>listCorpIdentifyOssLinkResponse.setRequestId<MASK><NEW_LINE>listCorpIdentifyOssLinkResponse.setSuccess(context.booleanValue("ListCorpIdentifyOssLinkResponse.S... | (context.stringValue("ListCorpIdentifyOssLinkResponse.RequestId")); |
874,455 | private void checkCrossDexMovingClasses() {<NEW_LINE>// Here we will check if any classes that were deleted in one dex<NEW_LINE>// would be added to another dex. e.g. classA is deleted in dex0 and<NEW_LINE>// added in dex1.<NEW_LINE>// Since DexClassesComparator will guarantee that a class can be either 'added'<NEW_LIN... | classDesc)).append(','); |
120,173 | public static void main(String[] args) {<NEW_LINE>// The connection string value can be obtained by going to your App Configuration instance in the Azure portal<NEW_LINE>// and navigating to "Access Keys" page under the "Settings" section.<NEW_LINE>String connectionString = "endpoint={endpoint_value};id={id_value};secr... | System.out.println("-Listing-SecretReferenceConfigurationSetting"); |
525,536 | public void createGetChildResourceForListResources(String keyAttributeName, String childResourceClassName) {<NEW_LINE>MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, "get" + childResourceClassName, "(Ljava/lang/String;)L" + generatedPath + childResourceClassName + ";", null, null);<NEW_LINE>RestLogging.restLogger.log(Lev... | mv.visitVarInsn(ASTORE, 2); |
1,193,062 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String vpnSiteName, 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>}<... | error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null.")); |
26,229 | private void ensureHeader() throws java.io.IOException {<NEW_LINE>byte[] hbytes = Utf8.toBytes(CFHEADER);<NEW_LINE>byte[] rbytes = new byte[hbytes.length];<NEW_LINE>ctlFile.seek(0);<NEW_LINE>int l = ctlFile.read(rbytes);<NEW_LINE>if (l != hbytes.length || !java.util.Arrays.equals(hbytes, rbytes)) {<NEW_LINE>StringBuild... | (controlFileHeaderLength + 2) + ")"); |
195,308 | private void deleteEverythingRelatedToConcept(TermConcept theConcept, AtomicInteger theRemoveCounter) {<NEW_LINE>for (TermConceptParentChildLink nextParent : theConcept.getParents()) {<NEW_LINE>nextParent.getParent().getChildren().remove(nextParent);<NEW_LINE>myConceptParentChildLinkDao.deleteById(nextParent.getId());<... | deleteById(theConcept.getId()); |
8,087 | protected Object manageCollectionLoad(final Field f, final Object self, Object value, final boolean customSerialization) {<NEW_LINE>final Class genericType = OReflectionHelper.getGenericMultivalueType(f);<NEW_LINE>if (value instanceof ORecordLazyList || (value instanceof OTrackedList<?> && (genericType == null || !ORef... | (List<Object>) value); |
148,957 | final GetBackendEnvironmentResult executeGetBackendEnvironment(GetBackendEnvironmentRequest getBackendEnvironmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBackendEnvironmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,777,513 | protected boolean prepare(int availableHeight, boolean isOverflow) throws JRException {<NEW_LINE>super.prepare(availableHeight, isOverflow);<NEW_LINE>if (!isToPrint()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// whether the current frame chunk is the first one.<NEW_LINE>boolean first = !isOverflow || !filling;<NEW_... | setPrepareHeight(availableHeight - getRelativeY()); |
833,823 | public String build() {<NEW_LINE>StringBuffer result = new StringBuffer(template.length());<NEW_LINE>Set<String> found = new HashSet<>();<NEW_LINE>Matcher matcher = SEARCH_PATTERN.matcher(template);<NEW_LINE>while (matcher.find()) {<NEW_LINE>String wholeMatch = matcher.group(0);<NEW_LINE>String leftQuote = matcher.grou... | rightQuote = matcher.group(3); |
1,180,518 | static RoundingInfo[] buildRoundings(ZoneId timeZone, String minimumInterval) {<NEW_LINE>int indexToSliceFrom = 0;<NEW_LINE>RoundingInfo[] roundings = new RoundingInfo[6];<NEW_LINE>roundings[0] = new RoundingInfo(Rounding.DateTimeUnit.SECOND_OF_MINUTE, timeZone, 1000L, "s", 1, 5, 10, 30);<NEW_LINE>roundings[1] = new Ro... | 1, 5, 10, 30); |
1,310,187 | private Mono<PagedResponse<TableItem>> listTables(String nextTableName, Context context, ListTablesOptions options) {<NEW_LINE>context = context == null ? Context.NONE : context;<NEW_LINE>QueryOptions queryOptions = new QueryOptions().setFilter(options.getFilter()).setTop(options.getTop()<MASK><NEW_LINE>try {<NEW_LINE>... | ).setFormat(OdataMetadataFormat.APPLICATION_JSON_ODATA_FULLMETADATA); |
434,172 | public static void write(Writer out, Model model) throws IOException {<NEW_LINE>// TODO: could possibly make the OBJ smaller by deduping vertices and normals.<NEW_LINE>writePositions(out, model.getPositions());<NEW_LINE>writeNormals(<MASK><NEW_LINE>out.write("s 1\n");<NEW_LINE>switch(model.getPrimitive()) {<NEW_LINE>ca... | out, model.getNormals()); |
214,892 | public static DescribeDbInstancesResponse unmarshall(DescribeDbInstancesResponse describeDbInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDbInstancesResponse.setRequestId(_ctx.stringValue("DescribeDbInstancesResponse.RequestId"));<NEW_LINE>List<DBInstance> items = new ArrayList<DBInstance>();<NEW_LINE>... | ("DescribeDbInstancesResponse.Items[" + i + "].DBInstanceStatus")); |
780,302 | public ValidationInfo validate(VALUETYPE newValue) {<NEW_LINE>if (validating) {<NEW_LINE>return new ValidationInfo(true);<NEW_LINE>}<NEW_LINE>ValidationInfo resultValidation = new ValidationInfo(true);<NEW_LINE>try {<NEW_LINE>validating = true;<NEW_LINE>// noinspection rawtypes<NEW_LINE>SwtParameterValidator[] validato... | toArray(new SwtParameterValidator[0]); |
1,792,986 | public void initComponent() {<NEW_LINE>final IdeaPluginDescriptor plugin = OpenapiPlatformUtil.getPluginById("com.kalessil.phpStorm.phpInspectionsEA");<NEW_LINE>if (null == plugin) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final EASettings settings = EASettings.getInstance();<NEW_LINE>if (!ApplicationManager.getApplicatio... | ), exceptionDetails.getThrowable()); |
58,866 | public void printHorizontal() {<NEW_LINE>String typeCast = imageOut.getTypeCastFromSum();<NEW_LINE>String sumType = imageIn.getSumType();<NEW_LINE>String bitWise = imageIn.getBitWise();<NEW_LINE>String declareHalf = imageIn.isInteger() <MASK><NEW_LINE>String divide = imageIn.isInteger() ? "(total+halfDivisor)/divisor" ... | ? "\t\tfinal " + sumType + " halfDivisor = divisor/2;\n" : ""; |
936,177 | public void readFields(DataInput in) throws IOException {<NEW_LINE>super.readFields(in);<NEW_LINE>if (Catalog.getCurrentCatalogJournalVersion() >= FeMetaVersion.VERSION_92) {<NEW_LINE>// Read MySQL meta<NEW_LINE>int size = in.readInt();<NEW_LINE>Map<String, String> serializeMap = Maps.newHashMap();<NEW_LINE>for (int i ... | odbcCatalogResourceName = serializeMap.get(ODBC_CATALOG_RESOURCE); |
954,985 | public void instanceCodegen(CodegenInstanceAux instance, CodegenClassScope classScope, CodegenCtor factoryCtor, List<CodegenTypedParam> factoryMembers) {<NEW_LINE>instance.getMethods().addMethod(AggregationService.EPTYPE, "getAggregationService", Collections.emptyList(), this.getClass(), classScope, methodNode -> metho... | ).addParam(ExprForgeCodegenNames.PARAMS); |
947,823 | final SetIpAddressTypeResult executeSetIpAddressType(SetIpAddressTypeRequest setIpAddressTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setIpAddressTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | (super.beforeMarshalling(setIpAddressTypeRequest)); |
1,809,223 | public Message deserialize(DirectByteBuffer data, byte version) throws MessageException {<NEW_LINE>if (data == null) {<NEW_LINE>throw new MessageException("[" + getID() + "] decode error: data == null");<NEW_LINE>}<NEW_LINE>if (data.remaining(DirectByteBuffer.SS_MSG) != WIRE_SIZE) {<NEW_LINE>throw new MessageException(... | = new byte[SHA256.DIGEST_LENGTH]; |
591,608 | public static DescribeScreenOperateInfoResponse unmarshall(DescribeScreenOperateInfoResponse describeScreenOperateInfoResponse, UnmarshallerContext context) {<NEW_LINE>describeScreenOperateInfoResponse.setRequestId(context.stringValue("DescribeScreenOperateInfoResponse.RequestId"));<NEW_LINE>describeScreenOperateInfoRe... | = new ArrayList<String>(); |
1,673,691 | protected Map<String, Object> serialize() {<NEW_LINE>Map<String, Object> values = new HashMap<>();<NEW_LINE>Map<String, Object> meta = null;<NEW_LINE>// We are going to encrypt the message here<NEW_LINE>if (ChatSDK.encryption() != null) {<NEW_LINE>meta = ChatSDK.encryption().encrypt(model);<NEW_LINE>}<NEW_LINE>if (meta... | getSender().getEntityID()); |
1,192,765 | public void listSecretsCodeSnippets() {<NEW_LINE>SecretClient secretClient = getSecretClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.secretclient.listSecrets<NEW_LINE>for (SecretProperties secret : secretClient.listPropertiesOfSecrets()) {<NEW_LINE>KeyVaultSecret secretWithValue = secretClient.getSecret(secre... | ), secret.getVersion()); |
534,392 | private void notifyException(Throwable ex) {<NEW_LINE>Util.bug(null, ex);<NEW_LINE>if (mNotified)<NEW_LINE>return;<NEW_LINE>Context context = getContext();<NEW_LINE>if (context == null)<NEW_LINE>return;<NEW_LINE>try {<NEW_LINE>Intent intent = new Intent("biz.bokhorst.xprivacy.action.EXCEPTION");<NEW_LINE>intent.putExtr... | "Message", ex.toString()); |
621,608 | ExitCode run(CloseableHttpClient httpClient, ObjectMapper om) throws IOException {<NEW_LINE>// fragment-start{build-request}<NEW_LINE>LingoClusteringAlgorithm algorithm = new LingoClusteringAlgorithm();<NEW_LINE>algorithm.preprocessing.phraseDfThreshold.set(1);<NEW_LINE>algorithm.preprocessing.wordDfThreshold.set(1);<N... | (), ClusterResponse.class)); |
729,794 | public void actionPerformed(ActionEvent e) {<NEW_LINE>if (!enabled)<NEW_LINE>return;<NEW_LINE>if (e.getActionCommand().equals("ContextSwitch")) {<NEW_LINE>Dim.ContextData contextData = debugGui.dim.currentContextData();<NEW_LINE>if (contextData == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int frameIndex = context.ge... | Object thisObj = frame.thisObj(); |
340,278 | Guard anonfun_11(Guard pc_41, EventBuffer effects, EventHandlerReturnReason outcome) {<NEW_LINE>PrimitiveVS<Machine> var_$tmp0 = new PrimitiveVS<Machine>().restrict(pc_41);<NEW_LINE>PrimitiveVS<Event> var_$tmp1 = new PrimitiveVS<Event>(_null).restrict(pc_41);<NEW_LINE>PrimitiveVS<Machine> var_$tmp2 = new PrimitiveVS<Ma... | (req_excl).restrict(pc_41); |
507,588 | public void cleanOldUsages(List<SingularityTaskId> activeTaskIds) {<NEW_LINE>for (String taskIdString : taskUsageJDBI.getUniqueTaskIds()) {<NEW_LINE>try {<NEW_LINE>SingularityTaskId taskId = SingularityTaskId.valueOf(taskIdString);<NEW_LINE>if (activeTaskIds.contains(taskId)) {<NEW_LINE>taskUsageJDBI.getUsageTimestamps... | LOG.debug("Deleted obsolete task usage {}", taskIdString); |
1,392,000 | public static String generateHash(String value, byte[] hmacKey) throws NoSuchAlgorithmException, InvalidKeyException {<NEW_LINE>// Time-stamp at Encryption time<NEW_LINE><MASK><NEW_LINE>String uTValue = new String();<NEW_LINE>String cValue;<NEW_LINE>String finalEncValue;<NEW_LINE>// Concatenated Values<NEW_LINE>uTValue... | long tStamp = System.currentTimeMillis(); |
1,314,905 | public static boolean canConnect(Level world, BlockPos first, BlockPos second) {<NEW_LINE>if (!world.isAreaLoaded(first, 1))<NEW_LINE>return false;<NEW_LINE>if (!world.isAreaLoaded(second, 1))<NEW_LINE>return false;<NEW_LINE>if (!second.closerThan(first, maxLength()))<NEW_LINE>return false;<NEW_LINE>BlockPos diff = sec... | int y = diff.getY(); |
756,058 | public String[] queryDimVals(String columnName, AggConfig config) throws Exception {<NEW_LINE>String fsql = null;<NEW_LINE>String exec = null;<NEW_LINE>String sql = getAsSubQuery(query.get(SQL));<NEW_LINE>List<String> filtered = new ArrayList<>();<NEW_LINE>String whereStr = "";<NEW_LINE>if (config != null) {<NEW_LINE>w... | columnName, sql, whereStr, columnName); |
259,662 | protected void appendComponentSlot(XStringBuilder xsb, JsonStringBuilder jsb, SofaTracerSpan span) {<NEW_LINE>Map<String, String> tagWithStr = span.getTagsWithStr();<NEW_LINE>Map<String, Number> tagWithNum = span.getTagsWithNumber();<NEW_LINE>// URL<NEW_LINE>jsb.append(CommonSpanTags.REQUEST_URL, tagWithStr.get(CommonS... | : requestSize.longValue())); |
1,819,917 | public Stat concurrentSpread(String key) {<NEW_LINE>return concurrent.computeIfAbsent(key, k -> {<NEW_LINE>SpreadStat stat = new SpreadStat(key);<NEW_LINE>addDynamicCounter(key + ".min", () -> stat.getMin().getAllTime());<NEW_LINE>addDynamicCounter(key + ".min.3600", () -> stat.getMin().getHour());<NEW_LINE>addDynamicC... | getSamples().getMinute()); |
308,834 | public void paste(Transferable t, final NodeModel target, final boolean asSibling, final boolean isLeft, int dropAction) {<NEW_LINE>boolean copyFile = dropAction == DnDConstants.ACTION_COPY;<NEW_LINE>final File mapFile = target.getMap().getFile();<NEW_LINE>if ((copyFile || LinkController.getLinkType() == LinkController... | target, asSibling, isLeft, isLeft); |
690,645 | public com.amazonaws.services.codecommit.model.MaximumFileEntriesExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.MaximumFileEntriesExceededException maximumFileEntriesExceededException = new com.amazonaws.services.codecommit.mo... | String currentParentElement = context.getCurrentParentElement(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.