idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,330,408 | public void listDeletedSecretsCodeSnippets() {<NEW_LINE>SecretClient secretClient = getSecretClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.secretclient.listDeletedSecrets<NEW_LINE>for (DeletedSecret deletedSecret : secretClient.listDeletedSecrets()) {<NEW_LINE>System.out.printf("Deleted secret's recovery Id ... | "Deleted secret's recovery Id %s", value.getRecoveryId()); |
395,864 | protected void doActivate() {<NEW_LINE>if (!isActivated) {<NEW_LINE>isActivated = true;<NEW_LINE>currencyComboBox.setPrefWidth(250);<NEW_LINE>paymentAccountsComboBox.setPrefWidth(250);<NEW_LINE>addBindings();<NEW_LINE>addListeners();<NEW_LINE>addSubscriptions();<NEW_LINE>// temporarily disabled due to high CPU usage (p... | .getDataModel().isCurrencyForMakerFeeBtc(); |
1,378,215 | private void outputUniqueMemberName(final OlapConnection connection, final Catalog catalog, Cube cube, List<Row> rows) throws SQLException {<NEW_LINE>final Object unameRestrictions = restrictions.get(MemberUniqueName.name);<NEW_LINE>List<String> list;<NEW_LINE>if (unameRestrictions instanceof String) {<NEW_LINE>list = ... | lookupMember(identifierNode.getSegmentList()); |
1,349,793 | private void loadNode73() {<NEW_LINE>UaMethodNode node = new UaMethodNode(this.context, Identifiers.CertificateGroupFolderType_DefaultUserTokenGroup_TrustList_Open, new QualifiedName(0, "Open"), new LocalizedText("en", "Open"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), true, true);<NEW_LINE>no... | .expanded(), true)); |
29,340 | public TBSCertList generateTBSCertList() {<NEW_LINE>if ((signature == null) || (issuer == null) || (thisUpdate == null)) {<NEW_LINE>throw new IllegalStateException("Not all mandatory fields set in V2 TBSCertList generator.");<NEW_LINE>}<NEW_LINE>ASN1EncodableVector v = new ASN1EncodableVector(7);<NEW_LINE>v.add(version... | add(new DERSequence(crlentries)); |
1,294,240 | final DeleteFHIRDatastoreResult executeDeleteFHIRDatastore(DeleteFHIRDatastoreRequest deleteFHIRDatastoreRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteFHIRDatastoreRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,268,446 | public void update(final String path, final byte[] bytes) {<NEW_LINE>synchronized (toAnnounce) {<NEW_LINE>if (!started) {<NEW_LINE>// removeParentsIfCreated is not relevant for updates; use dummy value "false".<NEW_LINE>toUpdate.add(new Announceable<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>final ZKPaths.Pa... | (path, bytes, false)); |
1,595,389 | ActionResult<Wo> execute(String id, String path0, String path1, String path2, String path3, String path4, JsonElement jsonElement) throws Exception {<NEW_LINE>Callable<ActionResult<Wo>> callable = new Callable<ActionResult<Wo>>() {<NEW_LINE><NEW_LINE>public ActionResult<Wo> call() throws Exception {<NEW_LINE>try (Entit... | setId(dict.getId()); |
1,360,961 | public void validate(final ConfigurationItem citem) {<NEW_LINE>Set<String> classNames = new LinkedHashSet<String>(Arrays.asList(COMMA_SPLITTER.split(citem.getValue())));<NEW_LINE>if (classNames.isEmpty())<NEW_LINE>return;<NEW_LINE>for (final Iterator<String> iter = classNames.iterator(); iter.hasNext(); ) {<NEW_LINE>St... | , citem.getKey())); |
1,837,237 | public synchronized Network configureTunnelNetwork(final Connection conn, final Long networkId, final long hostId, final String bridgeName) {<NEW_LINE>try {<NEW_LINE>final Network nw = findOrCreateTunnelNetwork(conn, bridgeName);<NEW_LINE>// Invoke plugin to setup the bridge which will be used by this<NEW_LINE>// netwo... | throw new CloudRuntimeException("Unable to pre-configure OVS bridge " + bridge); |
214,860 | public List<String> build() throws IOException {<NEW_LINE>List<String> command = new ArrayList<>();<NEW_LINE>command.add(NORMALIZE_PATH);<NEW_LINE>addIfNotNull(bucketSpan, BUCKET_SPAN_ARG, command);<NEW_LINE>command.add(AutodetectBuilder.LENGTH_ENCODED_INPUT_ARG);<NEW_LINE>if (quantilesState != null) {<NEW_LINE>Path qu... | add(AutodetectBuilder.MODEL_CONFIG_ARG + modelConfigFile); |
240,638 | public void afterMarshalling(Context.AfterMarshalling context, ExecutionAttributes executionAttributes) {<NEW_LINE>io.opentelemetry.context.Context parentOtelContext = io.opentelemetry.context.Context.current();<NEW_LINE>if (!instrumenter.shouldStart(parentOtelContext, executionAttributes)) {<NEW_LINE>return;<NEW_LINE>... | otelContext, executionAttributes, null, throwable); |
702,411 | public List<AttachmentEntry> migrateAndGetByReferencedRecord(@NonNull final Object referencedRecord) {<NEW_LINE>final TableRecordReference tableRecordReference = TableRecordReference.of(referencedRecord);<NEW_LINE>final IQueryBL queryBL = Services.get(IQueryBL.class);<NEW_LINE>final List<I_AD_Attachment> attachmentReco... | AttachmentEntry> migratedEntries = convertAttachmentLOBToEntries(attachmentRecord); |
738,426 | public Path parsePath(String path) {<NEW_LINE>LOGGER.trace(String.format("parsePath(%s)", path));<NEW_LINE>if ("".equals(path)) {<NEW_LINE>return new File(cwd).toPath();<NEW_LINE>}<NEW_LINE>File file;<NEW_LINE>try {<NEW_LINE>URI resolved = mapper.resolve(path);<NEW_LINE>LOGGER.trace(String.format("import-map.resolve(%s... | parsePath(resolved.toURL()); |
1,049,599 | public void writeFileVersions(Connection connection, FileHistoryId fileHistoryId, long databaseVersionId, Collection<FileVersion> fileVersions) throws SQLException {<NEW_LINE>PreparedStatement preparedStatement = getStatement(connection, "fileversion.insert.writeFileVersions.sql");<NEW_LINE>for (FileVersion fileVersion... | preparedStatement.setString(10, fileContentChecksumStr); |
1,848,903 | void updatePowerSavingsLabels() {<NEW_LINE>boolean isMotionSensorOn = ClientPrefs.getInstance(mView.<MASK><NEW_LINE>int battPct = ClientPrefs.getInstance(mView.getContext()).getMinBatteryPercent();<NEW_LINE>TextView tv = (TextView) mView.findViewById(R.id.textview_stop_at_battery);<NEW_LINE>String s = String.format(mVi... | getContext()).isMotionSensorEnabled(); |
159,382 | private void createTypeSignature(TypeMirror type, Map<String, Integer> typeVariableIndexes, Map<String, TypeMirror> genericSignatures, StringBuilder builder) {<NEW_LINE>String typeName = typeWithoutAnnotations(type.toString());<NEW_LINE>if (type.getKind() == TypeKind.DECLARED) {<NEW_LINE>DeclaredType declaredType = (De... | mirror = genericSignatures.get(typeName); |
1,077,602 | public Map doAnalysis(Map<String, String> header, String log) {<NEW_LINE>List<String> logfields = Lists.newArrayList(separator.split(log));<NEW_LINE>Map<String, String> resultMap = Maps.newHashMap();<NEW_LINE>int i = 0;<NEW_LINE>// collection specified fields<NEW_LINE>for (int point : SpecifiedFields) {<NEW_LINE>// add... | getMainlogs().add(resultMap); |
1,078,142 | public String format(final LogRecord record) {<NEW_LINE>OffsetDateTime date = fromMillis(record.getMillis());<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>// Minimize memory allocations here.<NEW_LINE>sb.append("[").append(Thread.currentThread().getName()).append("] ");<NEW_LINE>sb.append(date.format(DateT... | append(record.getMessage()); |
592,242 | private static ResourceDO buildPluginButtonResource(final String parentId, final String pluginName, final ConfigGroupEnum configGroupEnum, final AdminPluginOperateEnum adminPluginOperateEnum) {<NEW_LINE>ResourceDO resourceDO = ResourceDO.buildResourceDO(ResourceDTO.builder().parentId(parentId).name(StringUtils.EMPTY).u... | ":" + adminPluginOperateEnum.getName()); |
1,684,375 | private <R extends Request, T> Callback<T> decorateCallbackWithBackupRequest(R request, RequestContext requestContext, DecoratorClient<R, T> client, Callback<T> callback, TrackingBackupRequestsStrategy strategy, String serviceName, String operation) {<NEW_LINE>final <MASK><NEW_LINE>URI targetHostUri = KeyMapper.TargetH... | long startNano = System.nanoTime(); |
517,150 | private void updateEnabled() {<NEW_LINE>ModeImpl contextMode = mode;<NEW_LINE>if (contextMode == null) {<NEW_LINE>// the updating instance will get the TC to close from winsys<NEW_LINE>TopComponent tc = TopComponent.getRegistry().getActivated();<NEW_LINE>if (null != tc)<NEW_LINE>contextMode = (ModeImpl) WindowManagerIm... | .getKind() == Constants.MODE_KIND_EDITOR; |
1,142,945 | private void buildConstantDeclarations(ElementInfo nodeCtxInfo, FileScopeImpl fileScope, final List<Occurence> occurences) {<NEW_LINE>String idName = nodeCtxInfo.getName();<NEW_LINE>for (Entry<ASTNodeInfo<Scalar>, ConstantElement> entry : constDeclarations.entrySet()) {<NEW_LINE>if (CancelSupport.getDefault().isCancell... | ClassConstantDeclarationInfo nodeInfo = entry.getKey(); |
391,346 | private void loadNode137() {<NEW_LINE>TrustListTypeNode node = new TrustListTypeNode(this.context, Identifiers.CertificateGroupFolderType_DefaultHttpsGroup_TrustList, new QualifiedName(0, "TrustList"), new LocalizedText("en", "TrustList"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), UByte.valueO... | .expanded(), true)); |
82,872 | public ExecutionContext assertExecutionContext(Address callerAddress, long jobId, long executionId, String callerOpName) {<NEW_LINE>Address masterAddress = nodeEngine.getMasterAddress();<NEW_LINE>if (!callerAddress.equals(masterAddress)) {<NEW_LINE>failIfNotRunning();<NEW_LINE>throw new IllegalStateException(String.for... | executionContext = executionContexts.get(executionId); |
361,258 | public View initializeForView(ApplicationListener listener, AndroidApplicationConfiguration config) {<NEW_LINE>if (this.getVersion() < MINIMUM_SDK) {<NEW_LINE>throw new GdxRuntimeException("libGDX requires Android API Level " + MINIMUM_SDK + " or later.");<NEW_LINE>}<NEW_LINE>GdxNativesLoader.load();<NEW_LINE>setApplic... | .audio = this.getAudio(); |
240,257 | public void load(Path modelPath, String prefix, Map<String, ?> options) throws IOException, MalformedModelException {<NEW_LINE>if (Files.notExists(modelPath)) {<NEW_LINE>throw new FileNotFoundException("Model directory doesn't exist: " + modelPath.toAbsolutePath());<NEW_LINE>}<NEW_LINE>modelDir = modelPath.toAbsolutePa... | = new FtTextClassification(fta, labelPrefix); |
1,125,336 | private void validate() throws IOException {<NEW_LINE>Map<String, Object> alwaysMatch = getAlwaysMatch();<NEW_LINE>if (alwaysMatch == null) {<NEW_LINE>alwaysMatch = ImmutableMap.of();<NEW_LINE>}<NEW_LINE>Map<String, Object> always = alwaysMatch;<NEW_LINE>Collection<Map<String, Object>> firsts = getFirstMatches();<NEW_L... | (Ordering.natural())); |
1,513,741 | private void processAction(ActionAnalysisMetadata action) throws InterruptedException {<NEW_LINE>if (!AqueryUtils.matchesAqueryFilters(action, actionFilters)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mnemonicToCount.merge(action.getMnemonic(), 1, Integer::sum);<NEW_LINE><MASK><NEW_LINE>if (actionOwner != null) {<NEW_LINE... | ActionOwner actionOwner = action.getOwner(); |
727,641 | private static // detect this and print a more useful error message.<NEW_LINE>void handleClassloadingError(Throwable throwable, LuckPermsPlugin plugin) {<NEW_LINE>List<String> noteworthyClasses = ImmutableList.of("org.slf4j.LoggerFactory", "org.slf4j.ILoggerFactory", "org.apache.logging.slf4j.Log4jLoggerFactory", <MASK... | "org.apache.logging.log4j.spi.LoggerContext", "org.apache.logging.log4j.spi.AbstractLoggerAdapter", "org.slf4j.impl.StaticLoggerBinder", "org.slf4j.helpers.MessageFormatter"); |
229,345 | private void decompileJar(String jarFilePath, String outputDir) throws IOException {<NEW_LINE>DecompilationOptions decompilationOptions = new DecompilationOptions();<NEW_LINE>decompilationOptions.setSettings(DecompilerSettings.javaDefaults());<NEW_LINE>decompilationOptions.setFullDecompilation(true);<NEW_LINE>final Fil... | StringUtilities.removeRight(name, ".class"); |
930,211 | private static EjbJarModel generate1211() {<NEW_LINE>org.netbeans.modules.j2ee.weblogic9.dd.ejb1211.WeblogicEjbJar webLogicEjbJar = new org.netbeans.modules.j2ee.weblogic9.dd.ejb1211.WeblogicEjbJar();<NEW_LINE>// NOI18N<NEW_LINE><MASK><NEW_LINE>// NOI18N<NEW_LINE>webLogicEjbJar.setAttributeValue("xsi:schemaLocation", "... | webLogicEjbJar.setAttributeValue("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance"); |
41,194 | public void render(PoseStack transform, int mx, int my, float partial) {<NEW_LINE>super.render(transform, mx, my, partial);<NEW_LINE>List<Component> tooltip = new ArrayList<>();<NEW_LINE>if (mx >= leftPos + 187 && mx < leftPos + 194 && my >= topPos + 12 && my < topPos + 59)<NEW_LINE>tooltip.add(new TextComponent(tile.g... | getMaxEnergyStored(null) + " IF")); |
541,211 | private void addHyperlinkToDocFrag(JaxbXmlPart sourcePart, List<Object> contents, String url) throws JAXBException {<NEW_LINE>// We need to add a relationship to word/_rels/document.xml.rels<NEW_LINE>// but since its external, we don't use the<NEW_LINE>// usual wordMLPackage.getMainDocumentPart().addTargetPart<NEW_LINE... | rel.setType(Namespaces.HYPERLINK); |
1,453,733 | private static AnnotationBinding buildTargetAnnotation(long bits, LookupEnvironment env) {<NEW_LINE>ReferenceBinding target = env.<MASK><NEW_LINE>if ((bits & TagBits.AnnotationTarget) != 0)<NEW_LINE>return new AnnotationBinding(target, Binding.NO_ELEMENT_VALUE_PAIRS);<NEW_LINE>int arraysize = 0;<NEW_LINE>if ((bits & Ta... | getResolvedJavaBaseType(TypeConstants.JAVA_LANG_ANNOTATION_TARGET, null); |
437,117 | private static List<Tuple2<IndexPair<String>, Integer>> handlePairs(final List<Pair> pairs, final OpticalDuplicateFinder finder, final boolean markOpticalDups) {<NEW_LINE>// save ourselves the trouble when there are no optical duplicates to worry about<NEW_LINE>if (pairs.size() == 1) {<NEW_LINE>return Collections.singl... | new GATKException.ShouldNeverReachHereException("There was no best pair because the stream was empty, but it shouldn't have been empty.")); |
969,477 | public void check(ResourceCheckRule... rules) {<NEW_LINE>if (null == rules) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AgentFeatureComponent afc = (AgentFeatureComponent) getConfigManager().getComponent("procscan", "ProcDetectAgent");<NEW_LINE>if (afc != null) {<NEW_LINE>String pid = JVMToolHelper.getCurrentProcId();<NEW_L... | afc.exchange("procscan.query.procstate", pid); |
294,093 | public Object invokeWithArguments(Object... args) throws Throwable, WrongMethodTypeException, ClassCastException {<NEW_LINE>int argsLength = 0;<NEW_LINE>if (args != null) {<NEW_LINE>argsLength = args.length;<NEW_LINE>}<NEW_LINE>int mhLength = this.type.parameterCount();<NEW_LINE>if (argsLength > mhLength) {<NEW_LINE>in... | Object[].class, argsLength); |
1,067,994 | public void onDrop(TimelineDragDropEvent<Event> e) {<NEW_LINE>// get dragged model object (event class) if draggable item is within a data iteration component,<NEW_LINE>// update event's start and end dates.<NEW_LINE>Event dndEvent = e.getData();<NEW_LINE>dndEvent.setStart(e.getStartDate());<NEW_LINE>dndEvent.setEnd(e.... | model.add(event, timelineUpdater); |
494,162 | final AcceptDomainTransferFromAnotherAwsAccountResult executeAcceptDomainTransferFromAnotherAwsAccount(AcceptDomainTransferFromAnotherAwsAccountRequest acceptDomainTransferFromAnotherAwsAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(acceptDomainTransferFromAnotherAwsAccountRequest... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
507,637 | public Future<Boolean> execute(String byName, Callable<Boolean> callable, Invocation inv) {<NEW_LINE>if (StrUtil.isBlank(byName)) {<NEW_LINE>FutureTask<Boolean> task = new FutureTask<>(callable);<NEW_LINE>threadFactory.newThread(task).start();<NEW_LINE>return task;<NEW_LINE>}<NEW_LINE>ExecutorService executorService = ... | = new FutureTask<>(callable); |
47,537 | private void unregisterClient(final String producerGroup, final String consumerGroup) {<NEW_LINE>Iterator<Entry<String, HashMap<Long, String>>> it = this.brokerAddrTable.entrySet().iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>Entry<String, HashMap<Long, String>> entry = it.next();<NEW_LINE>String brokerName = e... | String addr = entry1.getValue(); |
248,052 | private void createStream(MediaStreamTrack[] tracks, BiConsumer<String, ArrayList<WritableMap>> successCallback) {<NEW_LINE>String streamId = UUID.randomUUID().toString();<NEW_LINE>MediaStream mediaStream = webRTCModule.mFactory.createLocalMediaStream(streamId);<NEW_LINE>ArrayList<WritableMap> tracksInfo = new ArrayLis... | WritableMap settings = Arguments.createMap(); |
50,182 | protected PurityGraphBox summaryOfUnanalysedMethod(SootMethod method) {<NEW_LINE>PurityGraphBox b = new PurityGraphBox();<NEW_LINE>String c = method<MASK><NEW_LINE>String m = method.getName();<NEW_LINE>// impure with side-effect, unless otherwise specified<NEW_LINE>b.g = PurityGraph.conservativeGraph(method, true);<NEW... | .getDeclaringClass().toString(); |
282,902 | public UpdatePackageResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdatePackageResult updatePackageResult = new UpdatePackageResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep... | ().unmarshall(context)); |
1,497,607 | public Tuple2<Boolean, Row> write(Map<String, String> in) {<NEW_LINE>StringBuilder sbd = new StringBuilder();<NEW_LINE>boolean isFirstPair = true;<NEW_LINE>if (valDelimiter != null) {<NEW_LINE>for (Map.Entry entry : in.entrySet()) {<NEW_LINE>if (isFirstPair) {<NEW_LINE>isFirstPair = false;<NEW_LINE>} else {<NEW_LINE>sb... | int itemSize = in.size(); |
1,173,691 | public static void registerEnvironments(Registry<LevelStem> registry) {<NEW_LINE>int i = World.Environment.values().length;<NEW_LINE>List<World.Environment> newTypes = new ArrayList<>();<NEW_LINE>for (Map.Entry<ResourceKey<LevelStem>, LevelStem> entry : registry.entrySet()) {<NEW_LINE>ResourceKey<LevelStem> key = entry... | key.location(), environment); |
1,719,477 | public static void main(String[] args) throws Exception {<NEW_LINE>CommandLineParser parser = new DefaultParser();<NEW_LINE>CommandLine cmd = parser.parse(ManagerConf.constructManagerOptions(), args);<NEW_LINE>if (cmd.getOptions().length == 0 || cmd.hasOption("help")) {<NEW_LINE>HelpFormatter f = new HelpFormatter();<N... | "OptionsTip", ManagerConf.constructManagerOptions()); |
10,384 | public void startPublish(String streamId, long absoluteStartTimeMs, String publishType) {<NEW_LINE>vertx.executeBlocking(handler -> {<NEW_LINE>try {<NEW_LINE>Broadcast broadcast = updateBroadcastStatus(streamId, absoluteStartTimeMs, publishType, getDataStore().get(streamId));<NEW_LINE>final String listenerHookURL = bro... | logger.info("Setting timer to call live stream started hook for stream:{}", streamId); |
1,617,628 | public int failInProgressUploads(UploadResult fail) {<NEW_LINE>Log_OC.v(TAG, "Updating state of any killed upload");<NEW_LINE>ContentValues cv = new ContentValues();<NEW_LINE>cv.put(ProviderTableMeta.UPLOADS_STATUS, <MASK><NEW_LINE>cv.put(ProviderTableMeta.UPLOADS_LAST_RESULT, fail != null ? fail.getValue() : UploadRes... | UploadStatus.UPLOAD_FAILED.getValue()); |
281,320 | private static void copyInputKeys(org.apache.hadoop.conf.Configuration hadoopConf, org.apache.commons.configuration.Configuration source) {<NEW_LINE>// Copy IndexUpdateJob settings into the hadoop-backed cfg<NEW_LINE>Iterator<String> keyIter = source.getKeys();<NEW_LINE>while (keyIter.hasNext()) {<NEW_LINE>String key =... | getProperty(key).toString(); |
1,264,555 | // snippet-start:[sqs.java2.add_tags.main]<NEW_LINE>public static void addTags(SqsClient sqsClient, String queueName) {<NEW_LINE>try {<NEW_LINE>GetQueueUrlRequest urlRequest = GetQueueUrlRequest.builder().queueName(queueName).build();<NEW_LINE>GetQueueUrlResponse getQueueUrlResponse = sqsClient.getQueueUrl(urlRequest);... | addedTags.put("Accounting ID", "456def"); |
1,545,051 | private void postSanityCheck(boolean utilizationOverLimit, Broker broker, double brokerCapacityLimit, double hostCapacityLimit) throws OptimizationFailureException {<NEW_LINE>// 1. Capacity violation check -- note that this check also ensures that no replica resides on dead brokers.<NEW_LINE>if (utilizationOverLimit) {... | , brokerCapacityLimit, currentResource), recommendation); |
742,891 | public static DescribePropertyUsageNewestResponse unmarshall(DescribePropertyUsageNewestResponse describePropertyUsageNewestResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePropertyUsageNewestResponse.setRequestId(_ctx.stringValue("DescribePropertyUsageNewestResponse.RequestId"));<NEW_LINE>describePropertyUsageNe... | ("DescribePropertyUsageNewestResponse.NewestStatisticItems[" + i + "].Create")); |
1,450,600 | protected void applyPressingInWorld() {<NEW_LINE>AABB bb = new AABB(worldPosition.below(1));<NEW_LINE>boolean bulk = canProcessInBulk();<NEW_LINE>pressedItems.clear();<NEW_LINE>if (level.isClientSide)<NEW_LINE>return;<NEW_LINE>for (Entity entity : level.getEntities(null, bb)) {<NEW_LINE>if (!(entity instanceof ItemEnti... | itemEntity, recipe.get()); |
1,560,022 | /* View action functions */<NEW_LINE>public void onButtonClick(View view) {<NEW_LINE>assert view.getClass().isInstance(Button.class);<NEW_LINE>Button button = (Button) view;<NEW_LINE>switch(button.getId()) {<NEW_LINE>case R.id.buttonCancel:<NEW_LINE>finish();<NEW_LINE>break;<NEW_LINE>case R.id.buttonSave:<NEW_LINE>Date... | datePicker.getYear() - 1900); |
537,605 | private UserModel createUser(RealmModel realm, String username) {<NEW_LINE>UserModel user;<NEW_LINE>if (isImportEnabled()) {<NEW_LINE>user = session.userLocalStorage().addUser(realm, username);<NEW_LINE>user.setEnabled(true);<NEW_LINE>user.setFederationLink(model.getId());<NEW_LINE>} else {<NEW_LINE>user = new Abstract... | realm, getUsername(), group); |
814,484 | public void channelRead(ChannelHandlerContext ctx, Object msg) {<NEW_LINE>if (msg instanceof ClientTransferDataProtoc) {<NEW_LINE>ClientTransferDataProtoc clientTransferData = (ClientTransferDataProtoc) msg;<NEW_LINE>if (!clientTransferData.getInfo().isEmpty()) {<NEW_LINE>SimplePrinter.printNotice(clientTransferData.ge... | ), clientTransferData.getData()); |
1,191,207 | private Collection<Object> buildAutoTableRowData(final ShardingAutoTableRuleConfiguration shardingAutoTableRuleConfig) {<NEW_LINE>Collection<Object> result = new LinkedList<>();<NEW_LINE>result.add(shardingAutoTableRuleConfig.getLogicTable());<NEW_LINE>result.add("");<NEW_LINE>result.add(shardingAutoTableRuleConfig.get... | (shardingAutoTableRuleConfig.getShardingStrategy())); |
1,071,225 | public PiecewisePolynomialResult interpolate(double[] xValues, double[] yValues) {<NEW_LINE>ArgChecker.notEmpty(xValues, "xValues");<NEW_LINE>ArgChecker.notEmpty(yValues, "yValues");<NEW_LINE>int nDataPts = xValues.length;<NEW_LINE>ArgChecker.isTrue(nDataPts > 1, "at least two data points required");<NEW_LINE>ArgChecke... | i, j)), "Too large input"); |
791,168 | public void fitSelectionToLines(boolean expand) {<NEW_LINE>Range range = getSession().getSelection().getRange();<NEW_LINE>Position start = range.getStart();<NEW_LINE>Position newStart = start;<NEW_LINE>if (start.getColumn() > 0) {<NEW_LINE>if (expand) {<NEW_LINE>newStart = Position.create(start.getRow(), 0);<NEW_LINE>}... | .fromPoints(newStart, newEnd)); |
935,064 | public static void fromJson(Iterable<java.util.Map.Entry<String, Object>> json, RequestOptions obj) {<NEW_LINE>for (java.util.Map.Entry<String, Object> member : json) {<NEW_LINE>switch(member.getKey()) {<NEW_LINE>case "absoluteURI":<NEW_LINE>if (member.getValue() instanceof String) {<NEW_LINE>obj.setAbsoluteURI((String... | ()).longValue()); |
1,296,073 | public static void thinAndExtractApplications() throws Exception {<NEW_LINE>installDir = System.setProperty(PROPERTY_KEY_INSTALL_DIR, server.getInstallRoot());<NEW_LINE>// make sure the usr/shared/resources folder exists<NEW_LINE>sharedResourcesDir = new RemoteFile(server.getFileFromLibertyInstallRoot(""), "usr/shared/... | .getFileFromLibertyServerRoot("/apps"), SPRING_BOOT_20_APP_BASE_EXTRACTED); |
831,622 | static void rethrow(Throwable cause, BugReporter bugReporter, EvaluationResult<?> resultForDebugging) throws BuildFailedException, TestExecException {<NEW_LINE>Throwables.throwIfUnchecked(cause);<NEW_LINE>Throwable innerCause = cause.getCause();<NEW_LINE>if (innerCause instanceof TestExecException) {<NEW_LINE>throw (Te... | .describe() + " failed: " + message; |
856,311 | public com.amazonaws.services.connect.model.ThrottlingException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.connect.model.ThrottlingException throttlingException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_... | connect.model.ThrottlingException(null); |
1,778,944 | public final PairList<String, Shape> describeOutput() {<NEW_LINE>if (outputDescriptions == null) {<NEW_LINE>outputDescriptions = new PairList<>();<NEW_LINE>Map<String, TensorInfo> outputsMap = servingDefault.getOutputsMap();<NEW_LINE>List<String> keys = new ArrayList<>(outputsMap.keySet());<NEW_LINE>Collections.sort(ke... | TensorShapeProto shapeProto = tensorInfo.getTensorShape(); |
1,355,648 | public boolean generate(List<AssociatedPair> dataSet, ScaleTranslateRotate2D output) {<NEW_LINE>if (!generateAffine.generate(dataSet, affine))<NEW_LINE>return false;<NEW_LINE>R.data[0] = affine.a11;<NEW_LINE>R.data[1] = affine.a12;<NEW_LINE>R.data[2] = affine.a21;<NEW_LINE>R.<MASK><NEW_LINE>if (!svd.decompose(R))<NEW_L... | data[3] = affine.a22; |
1,685,348 | protected void startPersistThread() {<NEW_LINE>final Granularity segmentGranularity = schema.getGranularitySpec().getSegmentGranularity();<NEW_LINE>final Period windowPeriod = config.getWindowPeriod();<NEW_LINE>final DateTime truncatedNow = segmentGranularity.bucketStart(DateTimes.nowUtc());<NEW_LINE>final long windowM... | getMillis() + windowMillis))); |
1,833,777 | public boolean visit(RecordDeclaration node) {<NEW_LINE>ASTNode javadoc = getChildNode(node, RecordDeclaration.JAVADOC_PROPERTY);<NEW_LINE>if (javadoc != null) {<NEW_LINE>javadoc.accept(this);<NEW_LINE>}<NEW_LINE>visitList(node, RecordDeclaration.MODIFIERS2_PROPERTY, String.valueOf(' '), Util.EMPTY_STRING, String.value... | this.result.append("record "); |
740,776 | public void connect(IGenericType type, IType typeHandle, IType superclassHandle, IType[] superinterfaceHandles) {<NEW_LINE>if (typeHandle == null)<NEW_LINE>return;<NEW_LINE>if (TypeHierarchy.DEBUG) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>System.out.// $NON-NLS-1$<NEW_LINE>println("Connecting: " + ((JavaElement) typeHandle).... | superclassHandle).toStringWithAncestors())); |
563,939 | static String fixWindowsBug(String input, String version) {<NEW_LINE>if (IS_WINDOWS && version.equals("1.1")) {<NEW_LINE>int firstImport = input.indexOf("\nimport ");<NEW_LINE>if (firstImport == 0) {<NEW_LINE>return input;<NEW_LINE>} else if (firstImport > 0) {<NEW_LINE>int numToTrim = 0;<NEW_LINE>char prevChar;<NEW_LI... | input.substring(firstImport + 1); |
853,063 | protected Set<HuId> retrieveHUsToReceive() {<NEW_LINE>// https://github.com/metasfresh/metasfresh/issues/1863<NEW_LINE>// if the queryFilter is empty, then *do not* return everything to avoid an OOME<NEW_LINE>final IQueryFilter<I_M_HU> processInfoFilter = getProcessInfo().getQueryFilterOrElse(ConstantQueryFilter.of(fal... | .addOnlyActiveRecordsFilter().create(); |
699,728 | public static DescribeResetRecordListResponse unmarshall(DescribeResetRecordListResponse describeResetRecordListResponse, UnmarshallerContext context) {<NEW_LINE>describeResetRecordListResponse.setRequestId(context.stringValue("DescribeResetRecordListResponse.RequestId"));<NEW_LINE>describeResetRecordListResponse.setMo... | ("DescribeResetRecordListResponse.DataList[" + i + "].PunishResult")); |
1,228,676 | private static ClassLoader internalGetConciergeBundleClassLoader(Bundle bundle) {<NEW_LINE>if (osgiContainer == OSGiContainerType.Concierge) {<NEW_LINE>try {<NEW_LINE>if (Concierge_BundleWiring_Class == null) {<NEW_LINE>Concierge_BundleWiring_Class = bundle.getClass().getClassLoader().loadClass("org.osgi.framework.wiri... | Concierge_BundleWiring_getClassLoader_Method = Concierge_BundleWiring_Class.getMethod("getClassLoader"); |
1,539,095 | private void addPositions(final PostingsEnum in, final DataOutput out) throws IOException {<NEW_LINE>int freq = in.freq();<NEW_LINE>out.writeVInt(freq);<NEW_LINE>int previousPosition = 0;<NEW_LINE>int previousEndOffset = 0;<NEW_LINE>for (int i = 0; i < freq; i++) {<NEW_LINE>final int pos = in.nextPosition();<NEW_LINE>f... | payload.offset, payload.length); |
861,025 | final ExportEBSVolumeRecommendationsResult executeExportEBSVolumeRecommendations(ExportEBSVolumeRecommendationsRequest exportEBSVolumeRecommendationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(exportEBSVolumeRecommendationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | endClientExecution(awsRequestMetrics, request, response); |
973,005 | public static void updateKeyForBlobStore(Map conf, BlobStore blobStore, CuratorFramework zkClient, String key, NimbusInfo nimbusDetails, Set<NimbusInfo> nimbusInfoList) {<NEW_LINE>try {<NEW_LINE>// Most of clojure tests currently try to access the blobs using getBlob. Since, updateKeyForBlobStore<NEW_LINE>// checks for... | LOG.debug("StateInfo for update {}", stateInfo); |
374,295 | public void processEmbeddings(Mapper fontMapper) {<NEW_LINE>Fonts fonts = (org.docx4j.wml.Fonts) this.getJaxbElement();<NEW_LINE>if (fonts == null) {<NEW_LINE>log.warn("No content in font table part");<NEW_LINE>return;<NEW_LINE>} else {<NEW_LINE>filenamePrefix = "" + System.currentTimeMillis();<NEW_LINE><MASK><NEW_LINE... | log.info("Writing temp embedded fonts " + filenamePrefix); |
1,059,289 | public static DescribeSystemEventCountResponse unmarshall(DescribeSystemEventCountResponse describeSystemEventCountResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSystemEventCountResponse.setRequestId<MASK><NEW_LINE>describeSystemEventCountResponse.setCode(_ctx.stringValue("DescribeSystemEventCountResponse.Code"... | (_ctx.stringValue("DescribeSystemEventCountResponse.RequestId")); |
45,109 | ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>if (BooleanUtils.isNotTrue(Config.nodes().centerServers().first().getValue().getConfigApiE... | collect().setName(newName); |
820,284 | public double aggregate(final double current, final BaseObjectColumnValueSelector[] selectorList) {<NEW_LINE>Context cx = Context.getCurrentContext();<NEW_LINE>if (cx == null) {<NEW_LINE>cx = contextFactory.enterContext();<NEW_LINE>// Disable primitive wrapping- we want Java strings and primitives to behave like JS ent... | (scope, arrayToObjectArray(arg)); |
1,760,663 | public ListNode reverseEvenLengthGroups(ListNode head) {<NEW_LINE>List<Integer> list = new ArrayList<>();<NEW_LINE>ListNode tmp = head;<NEW_LINE>while (tmp != null) {<NEW_LINE>list.add(tmp.val);<NEW_LINE>tmp = tmp.next;<NEW_LINE>}<NEW_LINE>int len = 1;<NEW_LINE>int start = 0;<NEW_LINE>List<Integer> reversed = new Array... | subList(start, start + len); |
1,362,024 | private void extractFilterFromFile(final File xsltFile) {<NEW_LINE>try (BufferedReader xsl = new BufferedReader(new FileReader(xsltFile))) {<NEW_LINE>String line;<NEW_LINE>int l = 0;<NEW_LINE>boolean keyFound = false;<NEW_LINE>// ...we open it and check if it contains the right marker<NEW_LINE>while ((line = xsl.readLi... | addXsltFile(extensions, description, xsltFile); |
888,769 | public void initBindings() {<NEW_LINE>addFunction("getrlimit", liburl(), newTuple(BaseNum, BaseNum));<NEW_LINE>addFunction("getrlimit", liburl(), unknown());<NEW_LINE>String[] constants = { "RLIMIT_CORE", "RLIMIT_CPU", "RLIMIT_FSIZE", "RLIMIT_DATA", "RLIMIT_STACK", "RLIMIT_RSS", "RLIMIT_NPROC", "RLIMIT_NOFILE", "RLIMIT... | , liburl("resource-limits"), BaseNum); |
48,059 | public void showStoppingMessage(String host) {<NEW_LINE>if (stoppingMessage != null) {<NEW_LINE>stoppingMessage.dispose();<NEW_LINE>}<NEW_LINE>// $NON-NLS-1$<NEW_LINE>stoppingMessage = new EscapeDialog(this, JMeterUtils.getResString("stopping_test_title"), true);<NEW_LINE>// $NON-NLS-1<NEW_LINE>String label = JMeterUti... | JLabel stopLabel = new JLabel(label); |
386,691 | public DeregisterTransitGatewayResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeregisterTransitGatewayResult deregisterTransitGatewayResult = new DeregisterTransitGatewayResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu... | JsonToken token = context.getCurrentToken(); |
908,265 | public void configure(Binder binder) {<NEW_LINE>binder.bind(TypeManager.class).toInstance(typeManager);<NEW_LINE>configBinder(binder).bindConfig(FileMergeCacheConfig.class);<NEW_LINE>configBinder(binder).bindConfig(CacheConfig.class);<NEW_LINE>binder.bind(CacheStats.class).in(Scopes.SINGLETON);<NEW_LINE>binder.bind(Cac... | ).in(Scopes.SINGLETON); |
1,641,292 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>autoCompletionSmartQuotesDelimitersLabel = new javax.swing.JLabel();<NEW_LINE>autoCompletionSmartDelimitersCheckBox = <MASK><NEW_LINE>autoCompletionSmartQuotesCheckBox = new javax.... | new javax.swing.JCheckBox(); |
340,403 | public void intercept(IMethodInvocation invocation) throws Throwable {<NEW_LINE>AtomicReference<StackTraceElement[]> featureStackTrace = new AtomicReference<>();<NEW_LINE>AtomicBoolean success = new AtomicBoolean(false);<NEW_LINE><MASK><NEW_LINE>AtomicBoolean unexpectedFailure = new AtomicBoolean(false);<NEW_LINE>invoc... | AtomicBoolean expectedFailure = new AtomicBoolean(false); |
568,180 | public void run() throws Exception {<NEW_LINE>if (currentAddress == null) {<NEW_LINE>println("No Location.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MemoryBlock memoryBlock = currentProgram.getMemory().getBlock(currentAddress);<NEW_LINE>if (!memoryBlock.isInitialized()) {<NEW_LINE>println("Script cannot run in uninitiali... | listing.isUndefined(currentAddr, currentAddr); |
744,890 | public IntVector lexQuickSort(BufferAllocator allocator, VectorSchemaRoot input, List<SortPlan.SortColumn> physicalSortExprs) {<NEW_LINE>VectorValueComparator[] comparators = physicalSortExprs.stream().map(p -> buildCompare(p)).toArray(size -> new VectorValueComparator[size]);<NEW_LINE>CompositeVectorComparator composi... | 0).values.getValueCount(); |
1,741,775 | public void initiate(@RequestParam(value = "sp", required = false) String sp, HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>if (!hasText(sp)) {<NEW_LINE>throw new ProviderNotFoundException("Missing sp request parameter. sp parameter must be a valid and configured entity ID");<NEW_LINE>}<NEW_LINE>... | sp, authnRequest, request, response); |
1,744,863 | public static void sendFileTo(final Activity a, final File file) {<NEW_LINE>if (!isValidFile(file)) {<NEW_LINE>Toast.makeText(a, R.string.file_not_found, Toast.LENGTH_LONG).show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>final Intent intent = new Intent(Intent.ACTION_SEND);<NEW_LINE>intent.putExtra(Intent.E... | intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); |
723,916 | public JobExecution updateJobExecutionAndInstanceOnStopBeforeServerAssigned(long jobExecutionId, Date lastUpdatedTime) throws NoSuchJobExecutionException, ExecutionAssignedToServerException {<NEW_LINE>JobExecutionEntity exec = getJobExecution(jobExecutionId);<NEW_LINE>if (exec.getServerId().equals("")) {<NEW_LINE>try {... | ).setInstanceState(InstanceState.STOPPED); |
1,336,108 | private String prepareUrl(String url, LocationConfig locationConfig) {<NEW_LINE>ProviderConfig providerConfig = config.getProviderConfig(getProviderName());<NEW_LINE>if (providerConfig != null) {<NEW_LINE>url = StringUtils.replace(url, "[API_KEY]", providerConfig.getApiKey());<NEW_LINE>url = StringUtils.replace(url, <M... | "[API_KEY_2]", providerConfig.getApiKey2()); |
1,714,904 | public String extract(final HttpRequest request) throws HttpException {<NEW_LINE>String auth = null;<NEW_LINE>Header h = request.getFirstHeader(AUTH.WWW_AUTH_RESP);<NEW_LINE>if (h != null) {<NEW_LINE>String s = h.getValue();<NEW_LINE>if (s != null) {<NEW_LINE>auth = s.trim();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (auth != ... | i + 1).trim(); |
81,685 | public SuggestionValue unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SuggestionValue suggestionValue = new SuggestionValue();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte... | int originalDepth = context.getCurrentDepth(); |
644,871 | protected void debug() {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.<MASK><NEW_LINE>Tr.debug(tc, KEY_clientId + " = " + clientId);<NEW_LINE>Tr.debug(tc, KEY_clientSecret + " is null = " + (clientSecret == null));<NEW_LINE>Tr.debug(tc, KEY_displayName + " = " + displayName);<... | debug(tc, "" + this); |
1,043,014 | public void internalOpen(final String iUserName, final String iUserPassword, boolean checkPassword) {<NEW_LINE>try {<NEW_LINE>OSecurityInternal security = sharedContext.getSecurity();<NEW_LINE>if (user == null || user.getVersion() != security.getVersion(this) || !user.getName().equalsIgnoreCase(iUserName)) {<NEW_LINE>f... | + getURL()), e); |
1,741,894 | public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>COConfigurationManager.initialise();<NEW_LINE>COConfigurationManager.setParameter("IPV6 Enable Support", true);<NEW_LINE>boolean v6 = true;<NEW_LINE>// Test connectivity.<NEW_LINE>if (true) {<NEW_LINE>// System.out.println( "UDP: " + getSingleton().getEx... | ().getExternalIpAddressHTTP(v6)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.