idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
340,074
protected void addPseudoClassProposals(List<ICompletionProposal> proposals, int offset) {<NEW_LINE>List<PseudoClassElement> classes = this._queryHelper.getPseudoClasses();<NEW_LINE>if (classes != null) {<NEW_LINE>for (PseudoClassElement pseudoClass : classes) {<NEW_LINE>String description = CSSModelFormatter.ADDITIONAL...
= this._queryHelper.getPseudoElements();
1,281,202
public void reset(final JSONObject action, final JSONObject data, final JSONObject event, final Context context) {<NEW_LINE>try {<NEW_LINE>JSONObject options = action.getJSONObject("options");<NEW_LINE>String domain;<NEW_LINE>if (options.has("domain")) {<NEW_LINE>String <MASK><NEW_LINE>if (!urlString.startsWith("http")...
urlString = options.getString("domain");
782,172
public default void traverseLines(List<String> lines, StringBuffer buffer, Path rootPath) {<NEW_LINE>for (String line : lines) {<NEW_LINE>Matcher ascMatcher = ascIncludeRegex.matcher(line);<NEW_LINE>Matcher markdownMatcher = mdIncludeRegex.matcher(line);<NEW_LINE>if (ascMatcher.find()) {<NEW_LINE>String chapterPath = a...
chapterPath = markdownMatcher.group("path");
299,604
public void renderTileEntityFast(@Nonnull TileBuilder tile, double x, double y, double z, float partialTicks, int destroyStage, float partial, @Nonnull BufferBuilder buffer) {<NEW_LINE>Minecraft.getMinecraft().mcProfiler.startSection("bc");<NEW_LINE>Minecraft.getMinecraft().mcProfiler.startSection("builder");<NEW_LINE>...
Box box = tile.getBox();
377,803
// manually logged<NEW_LINE>@FFDCIgnore(Exception.class)<NEW_LINE>protected void insertSession(BackedSession session) {<NEW_LINE>final <MASK><NEW_LINE>String id = session.getId();<NEW_LINE>listenerFlagUpdate(session);<NEW_LINE>long tmpCreationTime = session.getCreationTime();<NEW_LINE>session.setLastWriteLastAccessTime...
boolean trace = TraceComponent.isAnyTracingEnabled();
1,757,906
private static String[] generateBucketKeys(String mkey, double[] boundaries) {<NEW_LINE>String[] keys = new String[boundaries.length + 1];<NEW_LINE>for (int i = 0; i < boundaries.length + 1; i++) {<NEW_LINE>String bucketKey;<NEW_LINE>double value;<NEW_LINE>// example of key : "<metric_key>_0.0_0.5"<NEW_LINE>if (i == 0 ...
1], boundaries[i]);
228,451
public // /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>void placeOffer() {<NEW_LINE>log.debug("model.offer.id" + model.<MASK><NEW_LINE>TaskRunner<PlaceOfferModel> taskRunner = new TaskRunner<>(model, () -> {<NEW_LINE>log.debug("sequence at handleRequestTakeOfferMess...
getOffer().getId());
36,052
private static long calculateCount(@NonNull Context context, @NonNull SQLiteDatabase input, List<String> tables) {<NEW_LINE>long count = DATABASE_VERSION_RECORD_COUNT + TABLE_RECORD_COUNT_MULTIPLIER * tables.size();<NEW_LINE>for (String table : tables) {<NEW_LINE>if (table.equals(MmsDatabase.TABLE_NAME)) {<NEW_LINE>cou...
count += AvatarHelper.getAvatarCount(context);
1,398,114
public static void validateBatch(Trainer trainer, Batch batch) {<NEW_LINE>Preconditions.checkArgument(trainer.getManager().getEngine() == batch.getManager().getEngine(), "The data must be on the same engine as the trainer. You may need to change one of your NDManagers.");<NEW_LINE>Batch[] splits = batch.split(trainer.g...
ArrayList<>(splits.length);
1,284,701
public void mergeWithRight(MeasureStack rightStack) {<NEW_LINE>// Merge the measures, part by part<NEW_LINE>for (int ip = 0; ip < rightStack.measures.size(); ip++) {<NEW_LINE>measures.get(ip).mergeWithRight(rightStack.measures.get(ip));<NEW_LINE>}<NEW_LINE>// Merge the stacks data<NEW_LINE>right = rightStack.right;<NEW...
actualDuration.plus(rightStack.actualDuration);
643,578
public static List<Feature> findFeatureFiles(File workingDir, List<String> paths) {<NEW_LINE>List<Feature> features = new ArrayList();<NEW_LINE>if (paths == null || paths.isEmpty()) {<NEW_LINE>return features;<NEW_LINE>}<NEW_LINE>if (paths.size() == 1) {<NEW_LINE>String <MASK><NEW_LINE>int pos = path.indexOf(".feature:...
path = paths.get(0);
281,354
public final FnApiDoFnRunner<InputT, RestrictionT, PositionT, WatermarkEstimatorStateT, OutputT> createRunnerForPTransform(Context context) {<NEW_LINE>FnApiDoFnRunner<InputT, RestrictionT, PositionT, WatermarkEstimatorStateT, OutputT> runner = new FnApiDoFnRunner<>(context.getPipelineOptions(), context.getBeamFnStateCl...
String localName = entry.getKey();
1,619,474
public Scriptable loadModule(Context cx, String moduleName, Scriptable loadingScope) throws IOException {<NEW_LINE>Repository local = engine.getParentRepository(loadingScope);<NEW_LINE>ReloadableScript script = <MASK><NEW_LINE>// check if we already came across the module in the current context/request<NEW_LINE>if (che...
engine.getScript(moduleName, local);
393,643
private Graph removeLoops(Graph graph) {<NEW_LINE>int[][] sccs = GraphUtils.findStronglyConnectedComponents(graph);<NEW_LINE>if (sccs.length == 0) {<NEW_LINE>return graph;<NEW_LINE>}<NEW_LINE>int[] backMap = new int[graph.size()];<NEW_LINE>for (int i = 0; i < backMap.length; ++i) {<NEW_LINE>backMap[i] = i;<NEW_LINE>}<N...
GraphBuilder(graph.size());
437,676
public static void register() {<NEW_LINE>RecipeWrapperIRecipe.setLevelData(SagRecipe.class, MachinesPlugin.iGuiHelper, 173 - xOff, yOff + 1, "textures/blocks/block_simple_sagmill_front.png", "textures/blocks/block_sagmill_front.png");<NEW_LINE>MachinesPlugin.iModRegistry.addRecipeCategories(new SagMillRecipeCategory(Ma...
()), SagMillRecipeCategory.UID);
1,614,187
public void prompt(JSONObject jsObj, final JSCallback callback) {<NEW_LINE>if (mWXSDKInstance.getContext() instanceof Activity) {<NEW_LINE>String message = "";<NEW_LINE>String defaultValue = "";<NEW_LINE>String okTitle = OK;<NEW_LINE>String cancelTitle = CANCEL;<NEW_LINE>if (jsObj != null) {<NEW_LINE>try {<NEW_LINE>mes...
isEmpty(cancelTitle) ? CANCEL : cancelTitle;
352,389
final DeleteRegexMatchSetResult executeDeleteRegexMatchSet(DeleteRegexMatchSetRequest deleteRegexMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRegexMatchSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,853,566
private void checkForUpdates() {<NEW_LINE>Task<List<String<MASK><NEW_LINE>updTask.setOnSucceeded(event -> {<NEW_LINE>List<String> result = updTask.getValue();<NEW_LINE>if (result != null) {<NEW_LINE>if (!result.get(0).isEmpty()) {<NEW_LINE>SettingsTabController.getGenericSettings().setNewVersionLink(result.get(0));<NEW...
>> updTask = new UpdatesChecker();
811,518
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent creature = game.<MASK><NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player != null) {<NEW_LINE>player.drawCards(3, source, game);<NEW_LINE>Cards cards = new CardsImpl();<NEW_LINE>int cardsInHand = player.getHand().si...
getPermanent(source.getSourceId());
398,089
public static List<Integer> convertCIEtoRGB(List<Double> xy, int brightness) {<NEW_LINE>List<Integer> rgb;<NEW_LINE>XYColorSpace xyColor = new XYColorSpace();<NEW_LINE>xyColor.setBrightness(brightness);<NEW_LINE>float[] xyFloat = new float[2];<NEW_LINE>xyFloat[0] = xy.get(0).floatValue();<NEW_LINE>xyFloat[1] = xy.<MASK...
get(1).floatValue();
1,035,078
public void render(@Nonnull IWidgetIcon widget, double x, double y, double width, double height, double zLevel, boolean doDraw, boolean flipY) {<NEW_LINE>final BufferBuilder tes = Tessellator.getInstance().getBuffer();<NEW_LINE>if (doDraw) {<NEW_LINE>RenderUtil.bindTexture(getTexture());<NEW_LINE>tes.begin(<MASK><NEW_L...
GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
840,967
private void buildInstantly() {<NEW_LINE>Vec3d eyesPos = RotationUtils.getEyesPos();<NEW_LINE>IClientPlayerInteractionManager im = IMC.getInteractionManager();<NEW_LINE>double rangeSq = Math.pow(range.getValue(), 2);<NEW_LINE>for (BlockPos pos : remainingBlocks) {<NEW_LINE>if (!BlockUtils.getState(pos).getMaterial().is...
of(side.getVector());
446,780
public void fillComboBox(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary) {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>m_loaded = false;<NEW_LINE>// Save current data<NEW_LINE>if (temporary) {<NEW_LINE>int size = p_data.size();<NEW_LINE>m_tempData = new Object[size];<...
.currentTimeMillis() - startTime));
1,533,620
public void loadLazyData() {<NEW_LINE>DataModel model = getDataModel();<NEW_LINE>if (model instanceof LazyDataModel) {<NEW_LINE>LazyDataModel lazyModel = (LazyDataModel) model;<NEW_LINE>Map<String, FilterMeta> filterBy = getActiveFilterMeta();<NEW_LINE>lazyModel.setRowCount(lazyModel.count(filterBy));<NEW_LINE>calculat...
context) + "_first")) + rows;
679,731
public void marshall(CreateDocumentClassifierRequest createDocumentClassifierRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createDocumentClassifierRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller....
createDocumentClassifierRequest.getDataAccessRoleArn(), DATAACCESSROLEARN_BINDING);
1,269,506
private EppResponse runWithoutLogging() throws EppException {<NEW_LINE>// There are no legal extensions for this flow.<NEW_LINE>extensionManager.validate();<NEW_LINE>Login login = (Login) eppInput.getCommandWrapper().getCommand();<NEW_LINE>if (!registrarId.isEmpty()) {<NEW_LINE>throw new AlreadyLoggedInException();<NEW...
Options options = login.getOptions();
79,214
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String script = request.getParameter("bsh.script");<NEW_LINE>String client = request.getParameter("bsh.client");<NEW_LINE>String output = request.getParameter("bsh.servlet.output");<NEW_LINE>Strin...
captureOutErr = request.getParameter("bsh.servlet.captureOutErr");
867,097
public static double greatCircleDistance(Location from, Location to) {<NEW_LINE>double deltaLat, deltaLon;<NEW_LINE>double temp;<NEW_LINE>double lat1 = from.latitude;<NEW_LINE>double lon1 = from.longitude;<NEW_LINE>double lat2 = to.latitude;<NEW_LINE>double lon2 = to.longitude;<NEW_LINE>// convert degrees to radians<NE...
= (lon2 - lon1) * RAD_CONVERT;
572,850
public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.userId, convLabelName("User Id"));<NEW_LINE>if (err...
ValidatorFactory.getInstance(Validator.REQUIRED);
1,599,357
@SqlType("array(row(K,V))")<NEW_LINE>public Block mapFromEntries(@TypeParameter("row(K,V)") RowType rowType, @SqlType("map(K,V)") Block block) {<NEW_LINE>verify(rowType.getTypeParameters().size() == 2);<NEW_LINE>verify(block.getPositionCount() % 2 == 0);<NEW_LINE>Type keyType = rowType.getTypeParameters().get(0);<NEW_L...
BlockBuilder rowBuilder = entryBuilder.beginBlockEntry();
1,791,364
public void read(org.apache.thrift.protocol.TProtocol iprot, Store struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apache.th...
.storeName = iprot.readString();
1,455,402
public static String format(PageContext pageContext, String pattern, Object[] arguments, boolean translateArguments) throws LanguageException {<NEW_LINE>String value = null;<NEW_LINE>String pattern2 = get(pageContext, pattern);<NEW_LINE>if (!pattern.equals(pattern2)) {<NEW_LINE>pattern = pattern2;<NEW_LINE>}<NEW_LINE>t...
MessageFormat.format(pattern, formattedArguments);
578,067
public Request<TagPolicyRequest> marshall(TagPolicyRequest tagPolicyRequest) {<NEW_LINE>if (tagPolicyRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<TagPolicyRequest> request = new DefaultRequest<TagPolicyRequest>(tagPolicyRequest, "Amazo...
request.setHttpMethod(HttpMethodName.POST);
411,700
public void update(@Nonnull AnActionEvent e) {<NEW_LINE>InputEvent inputEvent = e.getInputEvent();<NEW_LINE>if (!(inputEvent instanceof MouseEvent)) {<NEW_LINE>e.getPresentation().setEnabledAndVisible(false);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (e.getProject() == null) {<NEW_LINE>e.getPresentation().setEnabledAndVi...
point.x, point.y);
426,221
public void onSendFiles(List<FileItem> list) {<NEW_LINE>if (list == null || list.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// should reset messageList height<NEW_LINE>mChatView.setMsgListHeight(true);<NEW_LINE>MyMessage message;<NEW_LINE>for (FileItem item : list) {<NEW_LINE>if (item.getType() == FileItem.Type....
add(item.getFilePath());
1,231,428
protected DigdagEmbed.Bootstrap digdagBootstrap() {<NEW_LINE>return new DigdagEmbed.Bootstrap().setEnvironment(serverConfig.getEnvironment()).setSystemConfig(serverConfig.getSystemConfig()).setSystemPlugins(systemPlugins).overrideModulesWith((binder) -> {<NEW_LINE>binder.bind(WorkspaceManager.class).to(ExtractArchiveWo...
).in(Scopes.SINGLETON);
1,361,910
private void generateJavaComment(@NonNull final StringBuilder result, @NonNull final ColumnInfo columnInfo, @NonNull final String startOfComment, @Nullable final String deprecated) {<NEW_LINE>final String propertyName = columnInfo.getName();<NEW_LINE>result.append("\n").append("\t/**").append("\n\t * ").append(startOfC...
append(columnInfo.isVirtualColumn());
208,730
public void updateChildren() {<NEW_LINE>TypeNodeData thisData = <MASK><NEW_LINE>Object arrayObj = thisData.getTypeValue();<NEW_LINE>this.removeAllChildren();<NEW_LINE>// For each entry in the array, make a child node<NEW_LINE>try {<NEW_LINE>String genericType = thisData.getGenericType();<NEW_LINE>int arrayLength = Refl...
(TypeNodeData) this.getUserObject();
1,256,626
public void received(Channel channel, Object message) throws RemotingException {<NEW_LINE>setReadTimestamp(channel);<NEW_LINE>if (isHeartbeatRequest(message)) {<NEW_LINE>Request req = (Request) message;<NEW_LINE>if (req.isTwoWay()) {<NEW_LINE>Response res = new Response(req.getId(), req.getVersion());<NEW_LINE>res.setE...
+ heartbeat + "ms" : ""));
1,529,360
final DescribeIntentResult executeDescribeIntent(DescribeIntentRequest describeIntentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeIntentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
990,936
private CopyContextMap removeAll(final int removeIndexMask) {<NEW_LINE>if ((removeIndexMask & 0x7) == 0x7) {<NEW_LINE>return EmptyContextMap.INSTANCE;<NEW_LINE>}<NEW_LINE>if ((removeIndexMask & 0x4) == 0x4) {<NEW_LINE>if ((removeIndexMask & 0x2) == 0x2) {<NEW_LINE>return new OneContextMap(keyOne, valueOne);<NEW_LINE>}<...
keyOne, valueOne, keyTwo, valueTwo);
454,442
private Mono<PagedResponse<KeyCredentialInner>> listKeyCredentialsSinglePageAsync(String applicationObjectId, String tenantId, 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....
(), null, null));
340,403
public void intercept(IMethodInvocation invocation) throws Throwable {<NEW_LINE>AtomicReference<StackTraceElement[]> featureStackTrace = new AtomicReference<>();<NEW_LINE><MASK><NEW_LINE>AtomicBoolean expectedFailure = new AtomicBoolean(false);<NEW_LINE>AtomicBoolean unexpectedFailure = new AtomicBoolean(false);<NEW_LI...
AtomicBoolean success = new AtomicBoolean(false);
723,964
public static LogFileKey fromKey(Key key) {<NEW_LINE>var logFileKey = new LogFileKey();<NEW_LINE>byte[] rowParts = key.getRow().getBytes();<NEW_LINE>logFileKey.tabletId = getTabletId(rowParts);<NEW_LINE>logFileKey.seq = getSequence(rowParts);<NEW_LINE>logFileKey.event = LogEvents.valueOf(key.getColumnFamilyData().toStr...
.getColumnQualifierData().toArray();
867,583
private void addInfusionConversionCarbonRecipes(Consumer<FinishedRecipe> consumer, String basePath) {<NEW_LINE>// Charcoal Block<NEW_LINE>ItemStackToChemicalRecipeBuilder.infusionConversion(IngredientCreatorAccess.item().from(MekanismTags.Items.STORAGE_BLOCKS_CHARCOAL), MekanismInfuseTypes.CARBON.getStack(180)).build(c...
.rl(basePath + "from_enriched"));
620,926
public void deleteClientRoleMapping(List<RoleRepresentation> roles) {<NEW_LINE>managePermission.require();<NEW_LINE>if (roles == null) {<NEW_LINE>roles = user.getClientRoleMappingsStream(client).peek(roleModel -> {<NEW_LINE>auth.roles().requireMapRole(roleModel);<NEW_LINE>user.deleteRoleMapping(roleModel);<NEW_LINE>})....
collect(Collectors.toList());
855,322
public Instant parse(String text, LongSupplier now, boolean roundUpProperty, ZoneId timeZone) {<NEW_LINE>Instant time;<NEW_LINE>String mathString;<NEW_LINE>if (text.startsWith("now")) {<NEW_LINE>try {<NEW_LINE>// TODO only millisecond granularity here!<NEW_LINE>time = Instant.<MASK><NEW_LINE>} catch (Exception e) {<NEW...
ofEpochMilli(now.getAsLong());
417,569
private void readRealm(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException {<NEW_LINE>String realmName = readNameAttribute(reader);<NEW_LINE>ModelNode addRealm = new ModelNode();<NEW_LINE>addRealm.get(ModelDescriptionConstants.OP).set(ModelDescriptionConstants.ADD);<NEW_LINE>PathAddress addr...
getElementText(), addRealm, reader);
1,811,107
private synchronized MeterRegistry azureMonitorMeterRegistry(String instrumentationKey) {<NEW_LINE>if (this.azureMonitorMeterRegistry == null) {<NEW_LINE>Duration step = Duration.ofSeconds(Integer.getInteger("azure.cosmos.monitoring.azureMonitor.step", this.printingInterval));<NEW_LINE>boolean enabled <MASK><NEW_LINE>f...
= !Boolean.getBoolean("azure.cosmos.monitoring.azureMonitor.disabled");
723,786
protected static Kernel1D_F32 derivative1D_F32(int order, double sigma, int radius, boolean normalize) {<NEW_LINE>Kernel1D_F32 ret = new Kernel1D_F32(radius * 2 + 1);<NEW_LINE>float[] gaussian = ret.data;<NEW_LINE>int index = 0;<NEW_LINE>switch(order) {<NEW_LINE>case 1:<NEW_LINE>for (int i = radius; i >= -radius; i--) ...
[i] /= (float) sum;
944,153
protected String doIt() throws Exception {<NEW_LINE>log.info("C_BP_Group_ID=" + p_C_BP_Group_ID + ", C_BPartner_ID=" + p_C_BPartner_ID + ", DateAcct= " + p_DateAcct_From + " - " + p_DateAcct_To + ", C_AllocationHdr_ID=" + p_C_AllocationHdr_ID);<NEW_LINE>m_trx = Trx.get(Trx.createTrxName("AllocReset"), true);<NEW_LINE>i...
rs, m_trx.getTrxName());
595,578
public TunnelSocketStatsMetricOverview analyze(TunnelSocketStatsResult result) {<NEW_LINE>List<Pair<TunnelSocketStatsMetric, TunnelSocketStatsMetric>> metrics = Lists.newArrayList();<NEW_LINE>new SafeLoop<TunnelSocketStatsAnalyzer>(analyzers.values()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void doRun0(Tunnel...
return new TunnelSocketStatsMetricOverview(frontendMetric, backendMetric);
61,567
final StartJobRunResult executeStartJobRun(StartJobRunRequest startJobRunRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startJobRunRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
false), new StartJobRunResultJsonUnmarshaller());
281,087
// creates the rate computation<NEW_LINE>private RateComputation createRateComputation(SchedulePeriod period, int scheduleIndex) {<NEW_LINE>// handle where index value at start date is known<NEW_LINE>LocalDate endDate = period.getEndDate();<NEW_LINE>if (firstIndexValue != null && scheduleIndex == 0) {<NEW_LINE>return c...
().minus(lag));
314,955
private Mono<ResourceResponse<Trigger>> deleteTriggerInternal(String triggerLink, RequestOptions options, DocumentClientRetryPolicy retryPolicyInstance) {<NEW_LINE>try {<NEW_LINE>if (StringUtils.isEmpty(triggerLink)) {<NEW_LINE>throw new IllegalArgumentException("triggerLink");<NEW_LINE>}<NEW_LINE>logger.debug("Deletin...
(response, Trigger.class));
465,002
private Mono<Response<Void>> deleteContinuousWebJobSlotWithResponseAsync(String resourceGroupName, String name, String webJobName, String slot, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required an...
this.client.mergeContext(context);
1,365,581
public PriorityConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PriorityConfiguration priorityConfiguration = new PriorityConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
)).unmarshall(context));
207,800
public GetAppInstanceStreamingConfigurationsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetAppInstanceStreamingConfigurationsResult getAppInstanceStreamingConfigurationsResult = new GetAppInstanceStreamingConfigurationsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<...
String currentParentElement = context.getCurrentParentElement();
1,556,755
private Resource.Builder doCreateResourceBuilder() {<NEW_LINE>if (!disableValidation) {<NEW_LINE>checkForNonPublicMethodIssues();<NEW_LINE>}<NEW_LINE>final Class<?> annotatedResourceClass = ModelHelper.getAnnotatedResourceClass(handlerClass);<NEW_LINE>final Path rPathAnnotation = annotatedResourceClass.getAnnotation(Pa...
name(handlerClass.getName());
239,364
public static Span startServerSpan(Tracer tracer, HttpHeaders httpHeaders, String operationName) {<NEW_LINE>// format the headers for extraction<NEW_LINE>MultivaluedMap<String, String> rawHeaders = httpHeaders.getRequestHeaders();<NEW_LINE>final HashMap<String, String> headers = new HashMap<String, String>();<NEW_LINE>...
key).get(0));
1,801,719
public static Operator generate(TSRawDataQueryReq rawDataQueryReq, ZoneId zoneId) throws IllegalPathException {<NEW_LINE>// construct query operator and set its global time filter<NEW_LINE>QueryOperator queryOp = new QueryOperator();<NEW_LINE>FromComponent fromOp = new FromComponent();<NEW_LINE><MASK><NEW_LINE>// itera...
SelectComponent selectOp = new SelectComponent(zoneId);
873,054
public void marshall(DatasetImportJob datasetImportJob, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (datasetImportJob == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(datasetImportJob.getJobName(), JOBNA...
datasetImportJob.getStatus(), STATUS_BINDING);
885,963
public CodeCompletionResult complete(CodeCompletionContext context) {<NEW_LINE>final List<CompletionProposal> completionProposals = new ArrayList<>();<NEW_LINE>ParserResult parserResult = context.getParserResult();<NEW_LINE>if (parserResult instanceof LatteParserResult) {<NEW_LINE>LatteParserResult latteParserResult = ...
find(request.parserResult, caretOffset);
1,461,377
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.ExtendableMessage<com.google.transit.realtime.GtfsRealtime.TripUpdate.StopTimeUpdate<MASK><NEW_LINE>if (((bitField0_ & 0x00000001) != 0)) {<NEW_LINE>output.writeUInt32(1, stopSe...
>.ExtensionWriter extensionWriter = newExtensionWriter();
872,157
void increaseCapacity(final Long total, final Long avail, final Long totalPhysical, final Long availPhysical, final Long systemUsed) {<NEW_LINE>PrimaryStorageCapacityUpdater updater = new PrimaryStorageCapacityUpdater(self.getUuid());<NEW_LINE>updater.run(new PrimaryStorageCapacityUpdaterRunnable() {<NEW_LINE><NEW_LINE...
cap.getAvailablePhysicalCapacity() + availPhysical);
1,364,867
public void init(ExtendedProperties configuration) {<NEW_LINE>dataSourceName = StringUtils.nullTrim(configuration.getString("resource.datasource"));<NEW_LINE>tableName = StringUtils.nullTrim(configuration.getString("resource.table"));<NEW_LINE>keyColumn = StringUtils.nullTrim(configuration.getString("resource.keycolumn...
dataSourceName + "\" datasource with table \"" + tableName + "\"");
1,484,215
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.ExtendableMessage<com.google.transit.realtime.GtfsRealtime.VehiclePosition>.ExtensionWriter extensionWriter = newExtensionWriter();<NEW_LINE>if (((bitField0_ & 0x00000001) != 0)...
output.writeUInt64(5, timestamp_);
1,096,066
private void parseTSSLog(String tsscheckerLog) throws TSSException {<NEW_LINE>if (containsIgnoreCase(tsscheckerLog, "Saved shsh blobs")) {<NEW_LINE>// success<NEW_LINE>return;<NEW_LINE>} else if (containsIgnoreCase(tsscheckerLog, "[Error] [TSSC] manually specified ecid=" + ecid + ", but parsing failed")) {<NEW_LINE>thr...
TSSException("Failed to load manifest. The IPSW URL is not valid.\n\n" + "Make sure it starts with \"http://\" or \"https://\", has \"apple\" in it, and ends with \".ipsw\"", false);
526,399
protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>Pack p = null;<NEW_LINE>try {<NEW_LINE>p = tcp.getSingle(RequestCmd.LOAD_IP_SUMMARY, param);<NEW_LINE>} catch (Exception e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>return Status.CANCEL_STATUS;<NEW_LINE>} ...
count = countLv.getInt(i);
1,571,200
public static String convertToMelodyString(List<Note> noteSequence) {<NEW_LINE>double averageNoteDuration = computeAverageDuration(noteSequence);<NEW_LINE>double durationDelta = averageNoteDuration / durationDeltaParts;<NEW_LINE>Note previousNote = null;<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>for (No...
long noteDuration = note.getDurationInTicks();
1,410,253
private Map<String, Object> normalizeConfiguration(@Nullable Map<String, Object> properties, ThingTypeUID thingTypeUID, @Nullable ThingUID thingUID) {<NEW_LINE>if (properties == null || properties.isEmpty()) {<NEW_LINE>return properties;<NEW_LINE>}<NEW_LINE>ThingType thingType = thingTypeRegistry.getThingType(thingType...
URI descURI = thingType.getConfigDescriptionURI();
584,745
public PMarkdownOptions addWikiLinkExtension(@Arg(type = HintType.ARRAY) @Optional("null") Memory options) {<NEW_LINE>parserExtensions.add(WikiLinkExtension.create());<NEW_LINE>Memory linkPrefix = options.valueOfIndex("linkPrefix");<NEW_LINE>if (linkPrefix.isNotNull()) {<NEW_LINE>this.options.set(WikiLinkExtension.LINK...
IMAGE_LINKS, imageLinks.toBoolean());
211,324
public static void main(String[] args) {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>Queue_LL q = new Queue_LL();<NEW_LINE>boolean flag = true;<NEW_LINE>int val = 0;<NEW_LINE>while (flag) {<NEW_LINE>System.out.println("1. Enqueue()");<NEW_LINE>System.out.println("2. Dequeue()");<NEW_LINE><MASK><NEW_LINE>Syst...
System.out.println("3. Current Size of Queue");
402,474
public static boolean startsWithCamelCase(CharSequence theString, String prefix) {<NEW_LINE>if (theString == null || theString.length() == 0 || prefix == null || prefix.length() == 0)<NEW_LINE>return false;<NEW_LINE>if (!prefix.equals(cachedPrefix) || cachedPattern == null) {<NEW_LINE>StringBuilder sb = new StringBuild...
} while (index != -1);
195,879
protected List<AccountContainer> doInBackground() throws Exception {<NEW_LINE>List<AccountContainer> <MASK><NEW_LINE>CommunicationsManager commManager = Case.getCurrentCase().getSleuthkitCase().getCommunicationsManager();<NEW_LINE>List<Account> accountList = commManager.getAccountsRelatedToArtifact(artifact);<NEW_LINE>...
dataList = new ArrayList<>();
1,543,354
private void readFields(DataInput in) throws IOException {<NEW_LINE>name = Text.readString(in);<NEW_LINE>type = ColumnType.read(in);<NEW_LINE>boolean notNull = in.readBoolean();<NEW_LINE>if (notNull) {<NEW_LINE>aggregationType = AggregateType.valueOf<MASK><NEW_LINE>if (Catalog.getCurrentCatalogJournalVersion() >= FeMet...
(Text.readString(in));
540,358
public byte[] toByteArray() {<NEW_LINE>final int sizeBytes = PREAMBLE_SIZE_BYTES + gadget_.getSerializedSizeBytes();<NEW_LINE>final byte[<MASK><NEW_LINE>final WritableMemory mem = WritableMemory.writableWrap(byteArray);<NEW_LINE>// unused, always 1<NEW_LINE>mem.putByte(PREAMBLE_LONGS_BYTE, (byte) 1);<NEW_LINE>mem.putBy...
] byteArray = new byte[sizeBytes];
6,528
ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW...
Wo) optional.get());
1,566,136
protected void mapNodeToInstanceProperties(Term term, InstanceProperties instanceProperties) {<NEW_LINE>if (term.getSummary() != null) {<NEW_LINE>SubjectAreaUtils.setStringPropertyInInstanceProperties(instanceProperties, term.getSummary(), OpenMetadataAPIMapper.SUMMARY_PROPERTY_NAME);<NEW_LINE>}<NEW_LINE>if (term.getAb...
getExamples(), OpenMetadataAPIMapper.EXAMPLES_PROPERTY_NAME);
1,635,655
public RowBasedMatrix calulate(Matrix other, Binary op) {<NEW_LINE>assert other instanceof RowBasedMatrix;<NEW_LINE>if (op.isInplace()) {<NEW_LINE>for (int i = 0; i < rows.length; i++) {<NEW_LINE>if (null == rows[i]) {<NEW_LINE>initEmpty(i);<NEW_LINE>}<NEW_LINE>if (null == ((RowBasedMatrix) other).rows[i]) {<NEW_LINE>(...
) other).initEmpty(i);
835,349
public void onResponse(IndicesStatsResponse indicesStatsResponse) {<NEW_LINE>final ShardStats[] stats = indicesStatsResponse.getShards();<NEW_LINE>final ImmutableOpenMap.Builder<String, Long> shardSizeByIdentifierBuilder = ImmutableOpenMap.builder();<NEW_LINE>final ImmutableOpenMap.Builder<ShardRouting, String> dataPat...
> rsrvdSpace = ImmutableOpenMap.builder();
1,275,036
protected void remove(Node node) {<NEW_LINE>if (node == null)<NEW_LINE>return;<NEW_LINE>// No longer a white node (leaf)<NEW_LINE>node.type = BLACK;<NEW_LINE>Node parent = node.parent;<NEW_LINE>if (node.getChildrenSize() == 0) {<NEW_LINE>// Remove the node if it has no children<NEW_LINE>if (parent != null)<NEW_LINE>par...
.toString().toCharArray();
1,517,579
private void writeChaptersChunks(WrapOutputStream wos) throws IOException {<NEW_LINE>byte[] allContents = contents.toByteArray();<NEW_LINE>byte[] zero16 = new byte[16];<NEW_LINE>Arrays.fill(zero16, 0, zero16.length, (byte) 0);<NEW_LINE>// write each package of content<NEW_LINE>int startPos = 0;<NEW_LINE>int len = 0;<NE...
0, 0, 0, 0);
539,080
private void unkownProperty(String docUri, Node node, String name, NodeTuple entry, QuickfixType... fixTypes) {<NEW_LINE>SpringPropertyProblem p = problem(ApplicationYamlProblemType.YAML_UNKNOWN_PROPERTY, node, "Unknown property '" + name + "'");<NEW_LINE>p.setPropertyName(extendForQuickfix(StringUtil.camelCaseToHyphen...
, "Create metadata for `" + missingProp + "`"));
327,471
public com.amazonaws.services.appconfig.model.BadRequestException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.appconfig.model.BadRequestException badRequestException = new com.amazonaws.services.appconfig.model.BadRequestException(null);<NEW_LINE>int origina...
JsonToken token = context.getCurrentToken();
1,663,409
void writeBuffer(ByteBuffer buf, CompletionHandler handler) {<NEW_LINE>boolean thisThreadShouldWrite = false;<NEW_LINE>Throwable registrationFailure = null;<NEW_LINE>synchronized (monitor) {<NEW_LINE>if (state == State.FINISHED_OR_ERROR) {<NEW_LINE>janitor.scheduleTask(() -> handler.failed<MASK><NEW_LINE>return;<NEW_LI...
(new IllegalStateException("ContentChannel already closed.")));
777,827
private // under the /lib directory.<NEW_LINE>boolean scanLibDir(ReadableArchive archive, String libLocation, DeploymentContext context) {<NEW_LINE>boolean entryPresent = false;<NEW_LINE>if (libLocation != null && !libLocation.isEmpty()) {<NEW_LINE>Enumeration<String> entries = archive.entries(libLocation);<NEW_LINE>wh...
WeldUtils.isImplicitBeanArchive(context, jarInLib);
1,830,389
public Outcome<VirtualMachine> migrateVmStorageThroughJobQueue(final String vmUuid, final Map<Long, Long> volumeToPool) {<NEW_LINE>Collection<Long> poolIds = volumeToPool.values();<NEW_LINE>Set<Long> uniquePoolIds = new HashSet<>(poolIds);<NEW_LINE>for (Long poolId : uniquePoolIds) {<NEW_LINE>StoragePoolVO pool = _stor...
return new VmJobVirtualMachineOutcome(workJob, vmId);
1,567,395
public void testCancelOneTimeTask() throws Exception {<NEW_LINE>AtomicInteger numStarted = new AtomicInteger();<NEW_LINE>AtomicInteger numInterruptions = new AtomicInteger();<NEW_LINE>Runnable slowTask = new SlowTask(numStarted, numInterruptions, TIMEOUT * 2);<NEW_LINE>ScheduledFuture<?> slowFuture = schedxsvcClassload...
throw new Exception("slowTask should have started once, not " + slowTaskStartedCount);
101,805
public void serialize(Timer timer, JsonGenerator json, SerializerProvider provider) throws IOException {<NEW_LINE>json.writeStartObject();<NEW_LINE>final Snapshot snapshot = timer.getSnapshot();<NEW_LINE>json.writeNumberField("count", timer.getCount());<NEW_LINE>json.writeNumberField("max", snapshot.getMax() * duration...
snapshot.getMedian() * durationFactor);
144,972
final ListIndicesResult executeListIndices(ListIndicesRequest listIndicesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listIndicesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
endClientExecution(awsRequestMetrics, request, response);
856,259
@ApiOperation(value = "Retrieves a violation analysis trail", response = ViolationAnalysis.class)<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 401, message = "Unauthorized"), @ApiResponse(code = 404, message = "The component or policy violation could not be found") })<NEW_LINE>@PermissionRequired(Permissions.Co...
getObjectByUuid(Component.class, componentUuid);
863,146
public void readFromNBT(NBTTagCompound nbttagcompound) {<NEW_LINE>super.readFromNBT(nbttagcompound);<NEW_LINE>if (nbttagcompound.hasKey("box")) {<NEW_LINE>box.initialize(nbttagcompound.getCompoundTag("box"));<NEW_LINE>loadDefaultBoundaries = false;<NEW_LINE>} else if (nbttagcompound.hasKey("xSize")) {<NEW_LINE>// This ...
headPosX = nbttagcompound.getDouble("headPosX");
981,573
private void encodeDataPoints(Buffer valueBuffer, JoinLongFieldStrategyAnalyzer jvmCpuLoadAnalyzer, JoinLongFieldStrategyAnalyzer systemCpuLoadAnalyzer) {<NEW_LINE>// encode header<NEW_LINE>AgentStatHeaderEncoder headerEncoder = new BitCountingHeaderEncoder();<NEW_LINE>byte[] codes = jvmCpuLoadAnalyzer.getBestStrategy(...
), jvmCpuLoadAnalyzer.getValues());
289,758
public ListResourceTypesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListResourceTypesResult listResourceTypesResult = new ListResourceTypesResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
int originalDepth = context.getCurrentDepth();
1,350,448
private static Shape[] uncantedShapesBack(FinSet finset, Transformation transformation) {<NEW_LINE>double thickness = finset.getThickness();<NEW_LINE>double height = finset.getSpan();<NEW_LINE>double tabHeight = finset.getTabHeight();<NEW_LINE>// Generate base coordinates for a single fin<NEW_LINE>Coordinate[] c = new ...
, -tabHeight, thickness / 2);
16,466
final OptionGroup executeCreateOptionGroup(CreateOptionGroupRequest createOptionGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createOptionGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Fie...
OptionGroup>(new OptionGroupStaxUnmarshaller());
1,460,385
protected void paintComponent(Graphics graphics) {<NEW_LINE>super.paintComponent(graphics);<NEW_LINE>Graphics2D g = (Graphics2D) graphics;<NEW_LINE>if (selected) {<NEW_LINE>g.setColor(Color.BLUE.darker().darker());<NEW_LINE>g.fillRect(12, 12, getWidth() - 24, getHeight() - 24);<NEW_LINE>}<NEW_LINE>if (focused) {<NEW_LI...
) - (2 * 18));
73,637
public RegisterResponseType handleRegistrationRequest(RegisterType parameters, WebServiceContext ctx) throws Throwable {<NEW_LINE>WrappedMessageContext wmc = (WrappedMessageContext) ctx.getMessageContext();<NEW_LINE>List<Header> headers = CastUtils.cast((List<?>) wmc.getWrappedMessage().get(Header.HEADER_LIST));<NEW_LI...
getInstance().getPropertiesMap(headers);
86,950
private String convertLessThanOneThousand(int number) {<NEW_LINE>String soFar;<NEW_LINE>if (number % 100 < 20) {<NEW_LINE>// 19 et moins<NEW_LINE>soFar = numNames[number % 100];<NEW_LINE>number /= 100;<NEW_LINE>} else if ((number % 100 < 80) && (number % 100 > 70)) {<NEW_LINE>// 71 ->79 (soixante et onze )<NEW_LINE>soF...
(number - 80) % 100];