idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,585,069 | final DescribeThingRegistrationTaskResult executeDescribeThingRegistrationTask(DescribeThingRegistrationTaskRequest describeThingRegistrationTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeThingRegistrationTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
620,271 | public void doRenderLayer(@Nonnull AbstractClientPlayer player, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale) {<NEW_LINE>NNList.of(EntityEquipmentSlot.class).apply(new Callback<EntityEquipmentSlot>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>... | instance().getBaubles(player); |
685,239 | private Consumer prepareListener(EmbeddedKafkaBroker broker, String destination, KafkaProperties kafkaProperties) {<NEW_LINE>Map<String, Object> consumerProperties = KafkaTestUtils.consumerProps(kafkaProperties.getConsumer().getGroupId(), "false", broker);<NEW_LINE>// Respect custom key/value deserializers and any addi... | debug("Prepared consumer for destination [" + destination + "]"); |
1,776,642 | private static String dumpTaskResult(final RunTaskResult result) {<NEW_LINE>final StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("[");<NEW_LINE>for (Task task : result.getTasks()) {<NEW_LINE>sb.append("{");<NEW_LINE>if (task.getTaskArn() != null) {<NEW_LINE>sb.append("TaskArn: ").append(task.getTaskArn()).a... | ()).append(","); |
783,027 | public void flatMap(LocalAggregator aggregator, Collector<Tuple3<Integer, GmmClusterSummary, IterationStatus>> out) throws Exception {<NEW_LINE>for (int i = 0; i < numClusters; i++) {<NEW_LINE>double w = aggregator.updatedWeightsSum.get(i);<NEW_LINE>aggregator.updatedMeansSum[i].scaleEqual(1.0 / w);<NEW_LINE>aggregator... | getElementPositionInCompactMatrix(m, n, featureSize); |
1,258,264 | public void loadStaticField(FieldExpression fldExp) {<NEW_LINE>MethodVisitor mv = controller.getMethodVisitor();<NEW_LINE><MASK><NEW_LINE>boolean holder = field.isHolder() && !controller.isInClosureConstructor();<NEW_LINE>ClassNode type = field.getType();<NEW_LINE>String ownerName = (field.getOwner().equals(controller.... | FieldNode field = fldExp.getField(); |
1,326,665 | private String formE(double number) {<NEW_LINE>// format absolute mantisse<NEW_LINE>int exponent = 0;<NEW_LINE>String zeros = "00000000000000000000000".substring(0, _precision + 1);<NEW_LINE>if (number != 0) {<NEW_LINE>exponent = (int) Math.floor(Math.log(Math.abs(number)) <MASK><NEW_LINE>double mantisse = Math.floor(M... | / Math.log(10)); |
386,254 | public String putRecordingTextTrack(String recordId, String kind, String lang, File file, String label, String origFilename, String trackId, String contentType, String tempFilename) {<NEW_LINE>Map<String, Object> logData = new HashMap<>();<NEW_LINE>logData.put("recordId", recordId);<NEW_LINE>logData.put("kind", kind);<... | logData.put("lang", lang); |
1,344,740 | public static GetSecCheckResultDetailResponse unmarshall(GetSecCheckResultDetailResponse getSecCheckResultDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>getSecCheckResultDetailResponse.setRequestId(_ctx.stringValue("GetSecCheckResultDetailResponse.RequestId"));<NEW_LINE>getSecCheckResultDetailResponse.setSuccess<... | (_ctx.booleanValue("GetSecCheckResultDetailResponse.Success")); |
534,555 | protected String encodeClasspath(IClasspathEntry[] classpath, IClasspathEntry[] referencedEntries, IPath outputLocation, boolean indent, Map unknownElements) throws JavaModelException {<NEW_LINE>try {<NEW_LINE>StringWriter writer = new StringWriter();<NEW_LINE>XMLWriter xmlWriter = new XMLWriter(writer, this, true);<NE... | indent, true, unknownElements, true); |
389,737 | protected void updatePeerInfoIcon() {<NEW_LINE>String tag;<NEW_LINE>Map<String, String> peerTagMap = preferences.getPeerTagMap();<NEW_LINE>if (peerTagMap.containsKey(fullAddress)) {<NEW_LINE>tag = peerTagMap.get(fullAddress);<NEW_LINE>final String text = !tag.isEmpty() ? Res.get(<MASK><NEW_LINE>Tooltip.install(this, ne... | "peerInfoIcon.tooltip", tooltipText, tag) : tooltipText; |
1,129,511 | public void reInitActions() {<NEW_LINE>String menuPath = LocalizingService.MENU_MACROS;<NEW_LINE>String actionCategory = "Macro";<NEW_LINE>String localized = String.format("Menu/%s/%s", Localization.getString("platform.menu.machine"), Localization.getString("platform.menu.macros"));<NEW_LINE>try {<NEW_LINE>FileObject r... | root, menuPath).delete(); |
1,524,723 | public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>InstrumentClass target = instrumentor.<MASK><NEW_LINE>InstrumentMethod execute = target.getDeclaredM... | getInstrumentClass(loader, className, classfileBuffer); |
229,270 | public int match() {<NEW_LINE>int counter = 0;<NEW_LINE>// (a) Direct Matches<NEW_LINE>// 1..2<NEW_LINE>String // 1..2<NEW_LINE>sql = // 3..5<NEW_LINE>"SELECT m1.AD_Client_ID,m2.AD_Org_ID, " + // 6..9<NEW_LINE>"m1.C_InvoiceLine_ID,m2.M_InOutLine_ID,m1.M_Product_ID, " + "m1.DateTrx,m2.DateTrx, m1.Qty, m2.Qty " + "FROM M... | DB.prepareStatement(sql, null); |
1,079,232 | private void process(final JobConfiguration jobConfig, final ShardingContexts shardingContexts, final ExecutionSource executionSource) {<NEW_LINE>Collection<Integer> items = shardingContexts.getShardingItemParameters().keySet();<NEW_LINE>if (1 == items.size()) {<NEW_LINE>int item = shardingContexts.getShardingItemParam... | jobConfig, shardingContexts, item, jobExecutionEvent); |
957,125 | public Object call(final ArrayList<DataPoints[]> query_results) throws Exception {<NEW_LINE>if (allow_expressions) {<NEW_LINE>// process each of the expressions into a new list, then merge it<NEW_LINE>// with the original. This avoids possible recursion loops.<NEW_LINE>final List<DataPoints[]> expression_results = new ... | >(expressions.size()); |
1,759,641 | public void render(T entity, float entityYaw, float partialTicks, PoseStack matrixStackIn, MultiBufferSource bufferIn, int packedLightIn) {<NEW_LINE>ShaderCase sCase = null;<NEW_LINE>ItemStack shader;<NEW_LINE>if (shadedCarts.containsKey(entity.getId())) {<NEW_LINE>shader = shadedCarts.get(entity.getId());<NEW_LINE>if ... | (ImmersiveEngineering.MODID, "minecart")); |
1,504,889 | protected String doIt() throws Exception {<NEW_LINE>final I_M_Product product = productDAO.getById(getRecord_ID());<NEW_LINE>final IQueryBL queryBL = Services.get(IQueryBL.class);<NEW_LINE>final IQueryFilter<I_M_Product> productFilter = queryBL.createCompositeQueryFilter(I_M_Product.class).addOnlyActiveRecordsFilter().... | updateProductPricesIsActive(productFilter, p_dateFrom, true); |
844,027 | public List<String> build(VarsContext context) {<NEW_LINE>String rowText <MASK><NEW_LINE>if (!rowText.startsWith("|")) {<NEW_LINE>throw new SyntaxException(getPlace(), "Incorrect format. Should start with '|'");<NEW_LINE>}<NEW_LINE>if (!rowText.endsWith("|")) {<NEW_LINE>throw new SyntaxException(getPlace(), "Incorrect ... | = getArguments().trim(); |
38,355 | private static boolean parseScreenRound(String name, ResTable_config out) {<NEW_LINE>if (Objects.equals(name, kWildcardName)) {<NEW_LINE>if (out != null) {<NEW_LINE>out.screenLayout2 = (byte) ((out.screenLayout2 & ~ResTable_config.MASK_SCREENROUND) | ResTable_config.SCREENROUND_ANY);<NEW_LINE>}<NEW_LINE>return true;<NE... | .MASK_SCREENROUND) | ResTable_config.SCREENROUND_NO); |
795,859 | public void processRecordsCli(Dataset<Row> lines) throws ZinggClientException {<NEW_LINE>LOG.info("Processing Records for CLI Labelling");<NEW_LINE>printMarkedRecordsStat();<NEW_LINE>if (lines == null || lines.count() == 0) {<NEW_LINE>LOG.info("It seems there are no unmarked records at this moment. Please run findTrain... | ).getAs(ColName.PREDICTION_COL); |
463,607 | final SendChannelMessageResult executeSendChannelMessage(SendChannelMessageRequest sendChannelMessageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(sendChannelMessageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | (super.beforeMarshalling(sendChannelMessageRequest)); |
376,525 | public void bind(@NonNull final TRow row, @NonNull final View view) {<NEW_LINE>final RecyclerView recyclerView = (RecyclerView) view;<NEW_LINE>final long id = stableId.apply(row);<NEW_LINE>if (!(recyclerView.getAdapter() instanceof RepositoryAdapter)) {<NEW_LINE>final MutableRepository<TRow> newRepository = mutableRepo... | newRepository, newPresenter).build(); |
356,012 | final ModifyReservedInstancesResult executeModifyReservedInstances(ModifyReservedInstancesRequest modifyReservedInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyReservedInstancesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ModifyReservedInstances"); |
230,897 | private Stream<SimilarityResult> similarityParallelStreamTopK(T[] inputs, int[] sourceIndexIds, int[] targetIndexIds, int length, TerminationFlag terminationFlag, int concurrency, double cutoff, int topK, SimilarityComputer<T> computer, Supplier<RleDecoder> decoderFactory) {<NEW_LINE>Supplier<IntStream> sourceRange = (... | ) task).mergeInto(topKConsumers); |
1,228,627 | // </editor-fold>//GEN-END:initComponents<NEW_LINE>private void jButtonBrowsePortActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_jButtonBrowsePortActionPerformed<NEW_LINE>Node root = new WsdlNode(wsdlModel);<NEW_LINE>PortChooser chooser = new PortChooser(root);<NEW_LINE>// NOI18N<NEW_LINE>... | [0].getDisplayName()); |
491,351 | public void onError(Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TBase msg;<NEW_LINE>fetchRequest_result result = new fetchRequest_result();<NEW_LINE>if (e instanceof AuthorizationException) {<NEW_LINE>result.aze = (AuthorizationException) e;<NEW_LINE>... | INTERNAL_ERROR, e.getMessage()); |
1,759,666 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player targetPlayer = game.getPlayer(targetPointer<MASK><NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = game.getObject(source);<NEW_LINE>String cardName = (String) game.getState().getValue(source.getSou... | .getFirst(game, source)); |
1,488,153 | protected void addStaticTiles(FileHandle tmxFile, ImageResolver imageResolver, TiledMapTileSet tileSet, Element element, Array<Element> tileElements, String name, int firstgid, int tilewidth, int tileheight, int spacing, int margin, String source, int offsetX, int offsetY, String imageSource, int imageWidth, int imageH... | tileElement.getIntAttribute("id", 0); |
434,349 | protected void addCovariantMethods(ClassNode classNode) {<NEW_LINE>Map methodsToAdd = new HashMap();<NEW_LINE>Map genericsSpec = new HashMap();<NEW_LINE>// unimplemented abstract methods from interfaces<NEW_LINE>Map<String, MethodNode> abstractMethods = ClassNodeUtils.getDeclaredMethodsFromInterfaces(classNode);<NEW_LI... | mn.getTypeDescriptor(), mn); |
1,319,705 | public String upsertSchemaType(String userId, SchemaType schemaType, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {<NEW_LINE>final String methodName = "upsertSchemaType";<NEW_LINE>invalidParameterHandler.validateUserId(userId, methodName);<NEW_LINE>inv... | getDisplayName(), DISPLAY_NAME_PROPERTY_NAME, methodName); |
247,064 | public void testProducerRecordTopic() {<NEW_LINE>String topicIn = ProducerRecordBean.CHANNEL_IN;<NEW_LINE>String expectedTopicOut = ProducerRecordBean.PRODUCER_RECORD_TOPIC;<NEW_LINE>String unexpectedTopicOut = ProducerRecordBean.CONFIGURED_TOPIC;<NEW_LINE>String keyOut = ProducerRecordBean.PRODUCER_RECORD_KEY;<NEW_LIN... | reader = kafkaTestClient.readerFor(unexpectedTopicOut); |
1,425,450 | protected void initializeRootMessage() throws IOException {<NEW_LINE>contentType = (String) message.get(Message.CONTENT_TYPE);<NEW_LINE>if (contentType == null) {<NEW_LINE>throw new IllegalStateException("Content-Type can not be empty!");<NEW_LINE>}<NEW_LINE>if (message.getContent(InputStream.class) == null) {<NEW_LINE... | setContent(InputStream.class, body); |
885,319 | // This method is a modified version of the LinearLayoutManager.findOneVisibleChild().<NEW_LINE>private static View findOneVisibleChildIncludesPadding(LinearLayoutManager lm, int fromIndex, int toIndex, boolean completelyVisible, boolean acceptPartiallyVisible) {<NEW_LINE>boolean isVertical = (lm.getOrientation() == Re... | () : child.getRight(); |
164,739 | private void addLocals(StyledDocument doc1, StyledDocument doc2, Function function1, Function function2) {<NEW_LINE>Variable[] vars1 = function1.getLocalVariables();<NEW_LINE>Variable[] vars2 = function2.getLocalVariables();<NEW_LINE>if (ProgramDiff.equivalentVariableArrays(vars1, vars2, false)) {<NEW_LINE>return;<NEW_... | [varList1.size()]); |
459,826 | private void configureProperties() {<NEW_LINE>PropertyLayout propLayout = find("properties", PropertyLayout.class);<NEW_LINE>propLayout.setOrdering(PropertyOrdering.byLabel());<NEW_LINE>propLayout.clear();<NEW_LINE>WorldConfigurator worldConfig;<NEW_LINE>if (world.getWorldConfigurator() != null) {<NEW_LINE>worldConfig ... | context.get(ComponentLibrary.class); |
420,881 | public static DescribeDedicatedHostsResponse unmarshall(DescribeDedicatedHostsResponse describeDedicatedHostsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDedicatedHostsResponse.setRequestId(_ctx.stringValue("DescribeDedicatedHostsResponse.RequestId"));<NEW_LINE>describeDedicatedHostsResponse.setDedicatedHostG... | (_ctx.stringValue("DescribeDedicatedHostsResponse.DedicatedHostGroupId")); |
97,773 | private static void tryAssertionFour(RegressionEnvironment env, String expression) {<NEW_LINE>env.compileDeploy(expression).addListener("s0");<NEW_LINE>String[] fields = "id,valh0,valh1,valh2".split(",");<NEW_LINE>env.assertPropsPerRowIteratorAnyOrder("s0", fields, null);<NEW_LINE>sendBeanInt(env, "E1", 0, 0, 0, 1);<NE... | assertPropsPerRowIteratorAnyOrder("s0", fields, result); |
810,221 | private AttributedGraph createGraph(List<RecoveredClass> recoveredClasses) throws CancelledException {<NEW_LINE>GraphType graphType = new GraphTypeBuilder("Class Hierarchy Graph").vertexType(NO_INHERITANCE).vertexType(SINGLE_INHERITANCE).vertexType(MULTIPLE_INHERITANCE).edgeType(NON_VIRTUAL_INHERITANCE).edgeType(VIRTUA... | ), recoveredClass.getName()); |
450,628 | public IMessage onMessage(PacketXpTransferEffects message, MessageContext ctx) {<NEW_LINE>EntityPlayer player = EnderIO.proxy.getClientPlayer();<NEW_LINE>if (player != null) {<NEW_LINE>int particleCount = 5;<NEW_LINE>if (message.swing) {<NEW_LINE>player.swingArm(EnumHand.MAIN_HAND);<NEW_LINE>particleCount += 5;<NEW_LIN... | BlockPos.fromLong(message.pos); |
883,935 | private String createDateTimeString(byte[] byteArray) {<NEW_LINE>if (byteArray == null || byteArray.length < 7) {<NEW_LINE>return "INVALID (truncated or missing)";<NEW_LINE>}<NEW_LINE>// Time zone offset from GMT in 15 minute intervals,<NEW_LINE>// starting at interval -48 (west) and running up to<NEW_LINE>// interval ... | , i3, i4, i5, i6; |
346,529 | public static int purge(AlbumEntryDatabase db, Long albumId, Long photoId) {<NEW_LINE>// purge 1 entry<NEW_LINE>if (albumId != null && photoId != null) {<NEW_LINE>CompoundKey key = new CompoundKey().append("photoId", photoId).append("albumId", albumId);<NEW_LINE>final boolean isRemoved = (db.getData().remove(key) != nu... | CompoundKey key = it.next(); |
1,677,177 | public boolean onTouchEvent(final MotionEvent event) {<NEW_LINE>final CharSequence text = getText();<NEW_LINE>if (!(text instanceof Spannable)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!PrefsUtility.pref_appearance_link_text_clickable()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final Spannable buffer = (Spa... | off, off, ClickableSpan.class); |
70,103 | final CancelServiceSoftwareUpdateResult executeCancelServiceSoftwareUpdate(CancelServiceSoftwareUpdateRequest cancelServiceSoftwareUpdateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(cancelServiceSoftwareUpdateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
306,834 | public void encode(SerializationContext context, UaEncoder encoder, ServerDiagnosticsSummaryDataType value) {<NEW_LINE>encoder.writeUInt32("ServerViewCount", value.getServerViewCount());<NEW_LINE>encoder.writeUInt32("CurrentSessionCount", value.getCurrentSessionCount());<NEW_LINE>encoder.writeUInt32("CumulatedSessionCo... | "RejectedSessionCount", value.getRejectedSessionCount()); |
169,381 | private String resolveMediaTray(final PrintPackageRequest request) throws PrinterException {<NEW_LINE>final int requiredTrayNo = request.getPrintPackageInfo().getTrayNumber();<NEW_LINE>// 04124 : Tray number 0 is used too. Use -1 for "No tray required".<NEW_LINE>if (requiredTrayNo < 0) {<NEW_LINE>// no tray required<NE... | ". Therefore we won't specify a tray for this print job. Available medias (incl. trays) are: " + Arrays.toString(medias); |
1,270,170 | // Main Method<NEW_LINE>public static void main(String[] args) throws IOException {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>System.out.println("Enter the number of times you want to calculate Factorial:");<NEW_LINE>int t = sc.nextInt();<NEW_LINE>HashMap<Integer, BigInteger> hashmap = new HashMap<>();<NEW... | System.out.println("Enter the value of N:"); |
199,208 | private void doSplit(final KVStateOutputList kvStates) {<NEW_LINE>final byte[] parentKey = this.region.getStartKey();<NEW_LINE>for (final KVState kvState : kvStates) {<NEW_LINE>final KVOperation op = kvState.getOp();<NEW_LINE>final long currentRegionId = op.getCurrentRegionId();<NEW_LINE>final long newRegionId = op.get... | run(Status.OK()); |
109,187 | public void handle(StatisticEntry entry) {<NEW_LINE>synchronized (records) {<NEW_LINE>if (entry instanceof StatisticFrontendSqlEntry) {<NEW_LINE>StatisticFrontendSqlEntry fEntry = ((StatisticFrontendSqlEntry) entry);<NEW_LINE>if (fEntry.getSqlType() == 7) {<NEW_LINE>List<String> tableList = ManagerTableUtil.getTables(f... | currRecord = records.get(key); |
929,845 | private InventoryLineHU toInventoryLineHU(@NonNull final I_M_InventoryLine_HU inventoryLineHURecord, @NonNull final UOMConversionContext uomConversionCtx, @NonNull final UomId targetUomId) {<NEW_LINE>final I_C_UOM uom = uomsRepo.getById(inventoryLineHURecord.getC_UOM_ID());<NEW_LINE>final Quantity qtyInternalUseConv;<N... | convertQuantityTo(qtyBook, uomConversionCtx, targetUomId); |
5,487 | public void execute(EditorAdaptor editorAdaptor, int count) throws CommandExecutionException {<NEW_LINE>editorAdaptor.getHistory().beginCompoundChange();<NEW_LINE>TextContent modelContent = editorAdaptor.getModelContent();<NEW_LINE>String editorNewline = editorAdaptor.getConfiguration().getNewLine();<NEW_LINE>String te... | .getHistory().endCompoundChange(); |
174,589 | final DescribeIdentityUsageResult executeDescribeIdentityUsage(DescribeIdentityUsageRequest describeIdentityUsageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeIdentityUsageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | false), new DescribeIdentityUsageResultJsonUnmarshaller()); |
861,113 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.impetus.client.cassandra.CassandraClientBase#delete(java.lang.Object, java.lang.Object)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void delete(Object entity, Object pKey) {<NEW_LINE>EntityMetadata m = KunderaMetadataManager.getEntityMetadata(kunderaMetadata... | add(m.getTableName()); |
599,770 | private static void processMPT1327(ChannelMapModel channelMapModel, Channel channel, List<Module> modules, AliasList aliasList, ChannelType channelType, DecodeConfigMPT1327 decodeConfig) {<NEW_LINE>DecodeConfigMPT1327 mptConfig = decodeConfig;<NEW_LINE>ChannelMap channelMap = channelMapModel.getChannelMap(mptConfig.get... | )).getFrequencyRotationDelay())); |
871,971 | public boolean execute(final OHttpRequest iRequest, OHttpResponse iResponse) throws Exception {<NEW_LINE>final String[] urlParts = checkSyntax(iRequest.getUrl(), 3, "Syntax error: index/<database>/<index-name>/<key>[/<value>]");<NEW_LINE>iRequest.getData().commandInfo = "Index put";<NEW_LINE>ODatabaseDocumentInternal d... | .getIdentity().isPersistent(); |
1,395,461 | public IRubyObject to_s() {<NEW_LINE>final Ruby runtime = metaClass.runtime;<NEW_LINE>if (Double.isInfinite(value)) {<NEW_LINE>return RubyString.newString(runtime, <MASK><NEW_LINE>}<NEW_LINE>if (Double.isNaN(value)) {<NEW_LINE>return RubyString.newString(runtime, "NaN");<NEW_LINE>}<NEW_LINE>ByteList buf = new ByteList(... | value < 0 ? "-Infinity" : "Infinity"); |
1,493,661 | final PutAccountSendingAttributesResult executePutAccountSendingAttributes(PutAccountSendingAttributesRequest putAccountSendingAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putAccountSendingAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | invoke(request, responseHandler, executionContext); |
1,730,960 | public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "mult");<NEW_LINE>final String sourceRegister1 = ... | 32L), dw, temporaryHiResult)); |
1,540,855 | private static void addMediaDetails(Context context, MediaStream stream, LinearLayout layout) {<NEW_LINE>if (stream != null) {<NEW_LINE>if (stream.getCodec() != null && stream.getCodec().trim().length() > 0) {<NEW_LINE>String codec = stream.getCodec().equals("dca") || stream.getCodec().equals("DCA") ? "DTS" : stream.ge... | getChannelLayout().toUpperCase()); |
558,448 | void canDeleteTagsForResource(final String api, final String id, final String name, final RestDocumentationFilter deleteFilter) throws Exception {<NEW_LINE>final String tag1 = UUID.randomUUID().toString();<NEW_LINE>final String tag2 = UUID.randomUUID().toString();<NEW_LINE>final Set<String> tags = Sets.newHashSet(tag1,... | .NO_CONTENT.value())); |
1,248,301 | private void notifyParticipants(final CompilationUnit workingCopy) {<NEW_LINE>IJavaProject javaProject <MASK><NEW_LINE>CompilationParticipant[] participants = JavaModelManager.getJavaModelManager().compilationParticipants.getCompilationParticipants(javaProject);<NEW_LINE>if (participants == null)<NEW_LINE>return;<NEW_L... | = getWorkingCopy().getJavaProject(); |
1,514,526 | private void updateImpl(Context context) {<NEW_LINE>File latestImplApk = mUpdater.getLatest();<NEW_LINE>String md5 = md5File(latestImplApk);<NEW_LINE>if (mLogger.isInfoEnabled()) {<NEW_LINE>mLogger.info("TextUtils.equals(mCurrentImplMd5, md5) : " + (TextUtils.equals(mCurrentImplMd5, md5)));<NEW_LINE>}<NEW_LINE>if (!Tex... | = new HelloImplLoader(context, latestImplApk); |
417,258 | public void reportTabletStatus(TInfo info, TCredentials credentials, String serverName, TabletLoadState status, TKeyExtent ttablet) {<NEW_LINE>KeyExtent tablet = KeyExtent.fromThrift(ttablet);<NEW_LINE>switch(status) {<NEW_LINE>case LOAD_FAILURE:<NEW_LINE>Manager.log.<MASK><NEW_LINE>break;<NEW_LINE>case LOADED:<NEW_LIN... | error("{} reports assignment failed for tablet {}", serverName, tablet); |
522,190 | public boolean restoreBackupVolumeAndAttachToVM(final String backedUpVolumeUuid, final Long backupId, final Long vmId) throws Exception {<NEW_LINE>if (StringUtils.isEmpty(backedUpVolumeUuid)) {<NEW_LINE>throw new CloudRuntimeException("Invalid volume ID passed");<NEW_LINE>}<NEW_LINE>final BackupVO backup = backupDao.fi... | validateForZone(backup.getZoneId()); |
1,047,889 | public void marshall(AwsCertificateManagerCertificateDetails awsCertificateManagerCertificateDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsCertificateManagerCertificateDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_... | awsCertificateManagerCertificateDetails.getDomainName(), DOMAINNAME_BINDING); |
3,114 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>try {<NEW_LINE>final String[] registries = request.getParameterValues("registry");<NEW_LINE>final String[] <MASK><NEW_LINE>final Platform platform = StringUtils.parsePlatform(request.getParame... | components = request.getParameterValues("component"); |
1,195,723 | public Jdbi build(Environment environment, PooledDataSourceFactory configuration, ManagedDataSource dataSource, String name) {<NEW_LINE>// Create the instance<NEW_LINE>final Jdbi jdbi = newInstance(dataSource);<NEW_LINE>// Manage the data source that created this instance.<NEW_LINE>environment.lifecycle().manage(dataSo... | setTemplateEngine(new NamePrependingTemplateEngine(original)); |
555,659 | Map<String, Object> prepareParameters(DataFolder df) throws IOException {<NEW_LINE>Map<String, Object> params = new <MASK><NEW_LINE>// side effect: rootLocalName is initialized<NEW_LINE>params.put(PARAM_ROOT_TAG_NS, getRootTag());<NEW_LINE>params.put(PARAM_DOCTYPE, createDoctype());<NEW_LINE>// side effect: nsToPrefix ... | HashMap<String, Object>(); |
47,280 | public Parent createContent() {<NEW_LINE>final String[] years = { "2007", "2008", "2009" };<NEW_LINE>final ObservableList<String> categories = FXCollections.<String>observableArrayList(Arrays.asList(years));<NEW_LINE>xAxis = new NumberAxis();<NEW_LINE>yAxis = new CategoryAxis();<NEW_LINE>chart = new BarChart<>(xAxis, y... | 2800, years[2])); |
1,484,982 | private void initialize(RoleModel role) {<NEW_LINE>ResourceServer server = resourceServer(role);<NEW_LINE>if (server == null) {<NEW_LINE>ClientModel client = getRoleClient(role);<NEW_LINE>server = root.findOrCreateResourceServer(client);<NEW_LINE>}<NEW_LINE>Scope mapRoleScope = mapRoleScope(server);<NEW_LINE>if (mapRol... | (role), resource, mapClientScope); |
108,156 | public void main() {<NEW_LINE>RFloat gShadowValue = (RFloat) getGlobal(DefaultShaderVar.G_SHADOW_VALUE);<NEW_LINE>RVec4 color = (RVec4) getGlobal(DefaultShaderVar.G_COLOR);<NEW_LINE>RVec3 ambientColor = (RVec3) getGlobal(LightsShaderVar.G_AMBIENT_COLOR);<NEW_LINE>RVec3 eyeDir = (<MASK><NEW_LINE>RVec3 normal = (RVec3) g... | RVec3) getGlobal(DefaultShaderVar.V_EYE_DIR); |
893,746 | private JsonToken toJsonToken(BsonType type) {<NEW_LINE>switch(type) {<NEW_LINE>case END_OF_DOCUMENT:<NEW_LINE>reader.readEndDocument();<NEW_LINE>return JsonToken.END_OBJECT;<NEW_LINE>case DOCUMENT:<NEW_LINE>reader.readStartDocument();<NEW_LINE>return JsonToken.START_OBJECT;<NEW_LINE>case ARRAY:<NEW_LINE>reader.readSta... | boolean value = reader.readBoolean(); |
1,190,710 | private void postprocessModifyMemberProperty(ShapeModel shapeModel, String memberName, ModifyModelShapeModifier modifyModel) {<NEW_LINE>if (modifyModel.getEmitEnumName() != null) {<NEW_LINE>EnumModel enumModel = shapeModel.findEnumModelByValue(memberName);<NEW_LINE>if (enumModel == null) {<NEW_LINE>throw new IllegalSta... | memberModel = shapeModel.findMemberModelByC2jName(memberName); |
1,162,766 | private static void checkMetadataAndRootTableEntries(String tableNameToCheck, ServerUtilOpts opts) throws Exception {<NEW_LINE>TableId tableCheckId = opts.getServerContext().getTableId(tableNameToCheck);<NEW_LINE>System.out.println("Checking tables whose metadata is found in: " + tableNameToCheck + " (" + tableCheckId ... | tables = new HashMap<>(); |
445,885 | private AllocationLineCandidate processInvoiceProcessingFeeCandidate(@NonNull final AllocationLineCandidate candidate) {<NEW_LINE>if (!AllocationLineCandidateType.InvoiceProcessingFee.equals(candidate.getType())) {<NEW_LINE>return candidate;<NEW_LINE>}<NEW_LINE>if (invoiceProcessingServiceCompanyService == null) {<NEW_... | getAmounts().getInvoiceProcessingFee()); |
438,312 | public Redis jedisClusterCreate(Params params) {<NEW_LINE>String[] redisClusterIpPorts = <MASK><NEW_LINE>Set<HostAndPort> nodes = new HashSet<>();<NEW_LINE>for (String redisIpPort : redisClusterIpPorts) {<NEW_LINE>if (redisIpPort.contains(":")) {<NEW_LINE>String[] ipPort = redisIpPort.split(":");<NEW_LINE>nodes.add(new... | params.get(RedisParams.REDIS_IPS); |
278,750 | public Xml.Document visitDocument(Xml.Document document, ExecutionContext ctx) {<NEW_LINE>Xml.Document doc = super.visitDocument(document, ctx);<NEW_LINE>Validated versionValidation = <MASK><NEW_LINE>if (versionValidation.isValid()) {<NEW_LINE>versionComparator = versionValidation.getValue();<NEW_LINE>}<NEW_LINE>if (do... | Semver.validate(version, versionPattern); |
1,564,519 | public void marshall(DataReplicationInfo dataReplicationInfo, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (dataReplicationInfo == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(dataReplicationInfo.getData... | dataReplicationInfo.getEtaDateTime(), ETADATETIME_BINDING); |
1,387,724 | public void refreshStatisticsForEntity(String name) {<NEW_LINE>log.debug("Refreshing statistics for entity " + name);<NEW_LINE>MetaClass metaClass = metadata.getExtendedEntities().getOriginalOrThisMetaClass(metadata.getClassNN(name));<NEW_LINE>String storeName = metadata.getTools().getStoreName(metaClass);<NEW_LINE>if ... | tx = persistence.createTransaction(storeName); |
1,023,331 | public static byte[] encodeGSSExportName(String oid, String name) {<NEW_LINE>try {<NEW_LINE>byte[] oid_arr = encodeOID(oid);<NEW_LINE>int oid_len = oid_arr.length;<NEW_LINE>byte[] name_arr = name.getBytes("UTF-8");<NEW_LINE>int name_len = name_arr.length;<NEW_LINE>ByteArrayOutputStream baos = new ByteArrayOutputStream(... | name_len & 0xFF000000) >> 24); |
712,804 | final RecordHandlerProgressResult executeRecordHandlerProgress(RecordHandlerProgressRequest recordHandlerProgressRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(recordHandlerProgressRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,583,000 | public void process(DMatrixRMaj L_full, DMatrixRMaj y, double[] betas) {<NEW_LINE>svd.decompose(L_full);<NEW_LINE>// extract null space<NEW_LINE>V = svd.getV(null, true);<NEW_LINE>// compute one possible solution<NEW_LINE>pseudo.setA(L_full);<NEW_LINE>pseudo.solve(y, x0);<NEW_LINE>// add additional constraints to reduc... | ] * valueNull(j, i); |
41,201 | final DeleteTagsResult executeDeleteTags(DeleteTagsRequest deleteTagsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTagsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,772,459 | public HtmlResponse delete(final EditForm form) {<NEW_LINE>verifyCrudMode(form.crudMode, CrudMode.DETAILS);<NEW_LINE>validate(form, messages -> {<NEW_LINE>}, this::asDetailsHtml);<NEW_LINE>verifyToken(this::asDetailsHtml);<NEW_LINE>final String id = form.id;<NEW_LINE>webConfigService.getWebConfig(id).ifPresent(entity -... | , id), this::asDetailsHtml); |
1,120,467 | final GetDomainsResult executeGetDomains(GetDomainsRequest getDomainsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDomainsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | false), new GetDomainsResultJsonUnmarshaller()); |
209,375 | public List<ImageUrl> parseImages(String html, Chapter chapter) throws Manga.NetworkErrorException {<NEW_LINE>List<ImageUrl> list = new LinkedList<>();<NEW_LINE>try {<NEW_LINE>String did = Objects.requireNonNull(StringUtils.match("var did =(.*?);", html, 1)).trim();<NEW_LINE>String sid = Objects.requireNonNull(StringUt... | (body).getJSONArray("listImg"); |
1,379,172 | public void doReportStat(SofaTracerSpan sofaTracerSpan) {<NEW_LINE>Map<String, String> tagsWithStr = sofaTracerSpan.getTagsWithStr();<NEW_LINE>Map<String, Number> tagsWithNumber = sofaTracerSpan.getTagsWithNumber();<NEW_LINE>StatKey statKey = new StatKey();<NEW_LINE>String localApp = tagsWithStr.get(CommonSpanTags.LOCA... | tagsWithStr.get(CommonSpanTags.RESULT_CODE); |
1,137,482 | protected final synchronized // tzezula: should set CHANGE_EXPECTED flag on the sources.<NEW_LINE>void schedule(final Source source, final SchedulerEvent event) {<NEW_LINE>if (task != null) {<NEW_LINE>task.cancel();<NEW_LINE>}<NEW_LINE>task = null;<NEW_LINE>if (requestProcessor == null) {<NEW_LINE>requestProcessor = ne... | getINSTANCE().getCache(source); |
790,276 | public void execute() throws CoreException, IOException, MalformedURLException {<NEW_LINE>Logger log = Logger.getLogger(this.getClass().getName());<NEW_LINE>if (log.isLoggable(Level.FINE)) {<NEW_LINE>// NOI18N<NEW_LINE>log.// NOI18N<NEW_LINE>log(// NOI18N<NEW_LINE>Level.FINE, "executing GetRepositoryTasksCommand for ta... | .getUrl(), taskIds }); |
1,123,418 | public void handleEditingFinished(Set<E> editedObjects) {<NEW_LINE>if (editedObjects.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>OWLAxiom newAxiom = createAxiom(editedObjects.iterator().next());<NEW_LINE>// the editor should protect from this, but just in case<NEW_LINE>if (newAxiom == null) {<NEW_LINE>return;<NEW... | new RemoveAxiom(ontology, oldAxiom)); |
119,691 | private void initIconCoordinates() {<NEW_LINE>symbolLayerIconFeatureList = new ArrayList<>();<NEW_LINE>symbolLayerIconFeatureList.add(Feature.fromGeometry(Point.fromLngLat(10.338784, 49.481615)));<NEW_LINE>symbolLayerIconFeatureList.add(Feature.fromGeometry(Point.fromLngLat(15.081775, 49.957444)));<NEW_LINE>symbolLayer... | fromLngLat(20.151869, 46.415586))); |
1,514,365 | private String regularColumn(final IndexShard indexShard, final String type) throws IOException {<NEW_LINE>if (indexShard != null) {<NEW_LINE>DocumentMapper docMapper = indexShard.mapperService().documentMapper(type);<NEW_LINE>if (docMapper != null) {<NEW_LINE>for (Mapper fieldMapper : docMapper.mappers()) {<NEW_LINE>i... | ).getName(), type); |
506,164 | public static void main(String[] args) {<NEW_LINE>if (args.length != 4) {<NEW_LINE>System.out.println("Usage: java com.dotcms.cli.security.TrustStoreImportKey truststore truststore_password alias certfile ");<NEW_LINE>System.exit(0);<NEW_LINE>}<NEW_LINE>String keypass = args[1];<NEW_LINE>String alias = args[2];<NEW_LIN... | cf = CertificateFactory.getInstance("X.509"); |
779,700 | @DeleteMapping(value = "/runtime/executions/{executionId}/variables/{variableName}")<NEW_LINE>public void deleteVariable(@ApiParam(name = "executionId") @PathVariable("executionId") String executionId, @ApiParam(name = "variableName") @PathVariable("variableName") String variableName, @RequestParam(value = "scope", req... | HttpStatus.NO_CONTENT.value()); |
1,755,390 | private void createCameraSource(String model) {<NEW_LINE>// If there's no existing cameraSource, create one.<NEW_LINE>if (cameraSource == null) {<NEW_LINE>cameraSource = new CameraSource(this, graphicOverlay);<NEW_LINE>}<NEW_LINE>String autoMLRemoteModelName = PreferenceUtils.getAutoMLRemoteModelName(this);<NEW_LINE>tr... | Toast.LENGTH_LONG).show(); |
127,389 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String containerAppName, String name, 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 nul... | error(new IllegalArgumentException("Parameter name is required and cannot be null.")); |
1,700,665 | public void executeQueryPhase(InternalScrollSearchRequest request, SearchShardTask task, ActionListener<ScrollQuerySearchResult> listener) {<NEW_LINE>final LegacyReaderContext readerContext = (LegacyReaderContext) findReaderContext(<MASK><NEW_LINE>final Releasable markAsUsed;<NEW_LINE>try {<NEW_LINE>markAsUsed = reader... | request.contextId(), request); |
440,377 | private void handleFailedVolumeMigration(VolumeInfo srcVolumeInfo, VolumeInfo destVolumeInfo, HostVO hostVO) {<NEW_LINE>try {<NEW_LINE>_volumeService.revokeAccess(destVolumeInfo, hostVO, destVolumeInfo.getDataStore());<NEW_LINE>} catch (Exception ex) {<NEW_LINE>LOGGER.warn(<MASK><NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Volu... | "Failed to revoke access to the volume with the following ID: " + destVolumeInfo.getId()); |
563,326 | public void addAssertions(TestSuiteChromosome suite) {<NEW_LINE>setupClassLoader(suite);<NEW_LINE>if (!Properties.hasTargetClassBeenLoaded()) {<NEW_LINE>// Need to load class explicitly since it was re-instrumented<NEW_LINE>Properties.getTargetClassAndDontInitialise();<NEW_LINE>if (!Properties.hasTargetClassBeenLoaded(... | ).changeState(state, information); |
1,415,291 | public void isSharedPreference(Element element, ElementValidation valid) {<NEW_LINE>TypeMirror type = element.asType();<NEW_LINE>if (element instanceof ExecutableElement) {<NEW_LINE>element = ((ExecutableElement) element).getParameters().get(0);<NEW_LINE>type = element.asType();<NEW_LINE>}<NEW_LINE>if (type instanceof ... | SharedPref.class.getName()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.