idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
376,408
public static BuildOptions createBuildOptions(PackageConfig packageConfig, BuildOptions theirOptions, Path projectDirPath) {<NEW_LINE>// Todo figure out how to pass the build options without a performance hit<NEW_LINE>TomlDocument ballerinaToml = TomlDocument.from(ProjectConstants.BALLERINA_TOML, packageConfig.ballerin...
from(ballerinaToml, pluginToml, projectDirPath);
59,085
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>Permanent sourcePermanent = game.getPermanent(source.getSourceId());<NEW_LINE>if (controller != null && sourcePermanent != null) {<NEW_LINE>if (!controller.getHand().isEmpty()) {<NEW_LINE>new AddCountersSourceEffect(Coun...
getPlayer(source.getControllerId());
1,703,362
private static void suppressableOperation(SibTr.Suppressor s, String me, TraceComponent tc, String msgKey, Object objs, Listener.MessageType messageType) {<NEW_LINE>Object[] sibMessageInserts = format(me, tc, msgKey, objs);<NEW_LINE>String actualMessage = (String) sibMessageInserts[1];<NEW_LINE>String messageNumber;<NE...
msgKey, objs, messageType, sibMessageInserts);
1,629,658
private SearchSourceBuilder buildDashboardSearchBuilder(String query, int from, int size) {<NEW_LINE>QueryStringQueryBuilder queryBuilder = QueryBuilders.queryStringQuery(query).field(NAME, 5.0f).field(FIELD_DESCRIPTION).field("chart_names").field("chart_descriptions").lenient(true);<NEW_LINE>HighlightBuilder.Field hig...
= new HighlightBuilder.Field(FIELD_DESCRIPTION);
165,920
public DescribeProtectionGroupResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeProtectionGroupResult describeProtectionGroupResult = new DescribeProtectionGroupResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth...
String currentParentElement = context.getCurrentParentElement();
711,909
public boolean matches(final MatchDifference context, final String matched) {<NEW_LINE>boolean result = false;<NEW_LINE>boolean alreadyLoggedMatchFailure = false;<NEW_LINE>if (jsonPath == null) {<NEW_LINE>if (context != null) {<NEW_LINE>context.addDifference(mockServerLogger, <MASK><NEW_LINE>alreadyLoggedMatchFailure =...
"json path match failed expected:{}found:{}failed because:{}", "null", matched, "json path matcher was null");
848,555
private static data.media.Media reverseMedia(Media src) {<NEW_LINE>data.media.Media dst = <MASK><NEW_LINE>dst.uri = src.uri;<NEW_LINE>dst.title = src.title;<NEW_LINE>dst.width = src.width;<NEW_LINE>dst.height = src.height;<NEW_LINE>dst.format = src.format;<NEW_LINE>dst.duration = src.duration;<NEW_LINE>dst.size = src.s...
new data.media.Media();
637,508
private static CTBackground createBackground(String rId) {<NEW_LINE>org.docx4j.wml.ObjectFactory wmlObjectFactory = new org.docx4j.wml.ObjectFactory();<NEW_LINE>CTBackground background = wmlObjectFactory.createCTBackground();<NEW_LINE>background.setColor("FFFFFF");<NEW_LINE>org.docx4j.vml.ObjectFactory vmlObjectFactory...
CTBackground background2 = vmlObjectFactory.createCTBackground();
1,477,279
public static GCHeapMap from() throws CorruptDataException {<NEW_LINE>MM_GCExtensionsPointer extensions = GCExtensions.getGCExtensionsPointer();<NEW_LINE>if (GCExtensions.isStandardGC()) {<NEW_LINE>if (!GCExtensions.isSegregatedHeap()) {<NEW_LINE>MM_ParallelGlobalGCPointer pgc = MM_ParallelGlobalGCPointer.cast(extensio...
._markingScheme()._markMap();
1,306,815
public static String initAndCheck(final boolean force) {<NEW_LINE>if (database != null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try (ContextLogger ignore = new ContextLogger(true, "DataStore.init")) {<NEW_LINE>synchronized (DataStore.class) {<NEW_LINE>if (database != null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LIN...
() + "')(recreate error: " + recreateErrorMsg + ")";
676,914
protected FGPrimaryViewer createPrimaryGraphViewer(VisualGraphLayout<FGVertex, FGEdge> layout, Dimension viewerSize) {<NEW_LINE>FGPrimaryViewer viewer = new FGPrimaryViewer(this, layout, viewerSize);<NEW_LINE>RenderContext<FGVertex, FGEdge> renderContext = viewer.getRenderContext();<NEW_LINE>FGEdgePaintTransformer edge...
> renderer = viewer.getRenderer();
777,077
public static final int printUsage(String msg) {<NEW_LINE>if (null != msg) {<NEW_LINE>System.out.println(msg);<NEW_LINE>System.out.println();<NEW_LINE>}<NEW_LINE>System.out.println(<MASK><NEW_LINE>System.out.println("generate -t pagerank -p <pages> " + "[-b <base path>] [-n <data name>] " + "[-m <num maps>] [-r <num re...
"generate -t hive -p <pages> -v <visits> " + "[-b <base path>] [-n <data name>] " + "[-m <num maps>] [-r <num reduces>] " + "[-o sequence] [-c <codec>] [-d <delimiter>]");
1,703,363
protected void updateStyle(@Nonnull JEditorPane editorPane, @javax.annotation.Nullable JTree tree, Object value, boolean selected, boolean hasFocus) {<NEW_LINE>super.updateStyle(editorPane, tree, value, selected, hasFocus);<NEW_LINE>final HTMLDocument htmlDocument = (HTMLDocument) editorPane.getDocument();<NEW_LINE>fin...
removeAttribute(HTML.Attribute.HREF);
1,270,946
ConnectionPool connectionFactory(R2dbcProperties properties, ResourceLoader resourceLoader, ObjectProvider<ConnectionFactoryOptionsBuilderCustomizer> customizers) {<NEW_LINE>ConnectionFactory connectionFactory = createConnectionFactory(properties, resourceLoader.getClassLoader(), customizers.orderedStream().collect<MAS...
(Collectors.toList()));
490,306
private Pair<JobInfo.Status, String> orchestrateStart(final VmWorkStart work) throws Exception {<NEW_LINE>VMInstanceVO vm = findVmById(work.getVmId());<NEW_LINE>Boolean enterSetup = (Boolean) work.getParams().get(VirtualMachineProfile.Param.BootIntoSetup);<NEW_LINE>if (s_logger.isDebugEnabled()) {<NEW_LINE>s_logger.deb...
CloudRuntimeException ex = new CloudRuntimeException(message);
330,725
public static Shape3D drawTriangles(double[][] points) {<NEW_LINE>int size = points.length;<NEW_LINE>Point3f[] coordinates = new Point3f[size * 3];<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>coordinates[3 * i] = new Point3f(scaleX(points[i][0]), scaleY(points[i][1]), scaleZ(points[i][2]));<NEW_LINE>coordinates[...
size * 3, LineArray.COORDINATES);
461,275
protected void populateResults(final LocalDate startDate, final LocalDate endDate, final DateTime catalogEffectiveDate, final BigDecimal billedUsage, final BigDecimal toBeBilledUsage, final UsageInArrearAggregate toBeBilledUsageDetails, final boolean areAllBilledItemsWithDetails, final boolean isPeriodPreviouslyBilled,...
amountToBill = toBeBilledUsage.subtract(billedUsage);
435,804
static <T> Supplier<Future<T>> decorateFuture(CircuitBreaker circuitBreaker, Supplier<Future<T>> supplier) {<NEW_LINE>return () -> {<NEW_LINE>final Future<T<MASK><NEW_LINE>if (!circuitBreaker.tryAcquirePermission()) {<NEW_LINE>future.fail(createCallNotPermittedException(circuitBreaker));<NEW_LINE>} else {<NEW_LINE>long...
> future = Future.future();
366,854
private CommandLine parseArgs(String[] args) {<NEW_LINE>try {<NEW_LINE>Options cmdOptions = new Options();<NEW_LINE>cmdOptions.addOption("h", "help", false, "print this message");<NEW_LINE>cmdOptions.addOption(Option.builder("L").longOpt("libdir").hasArg().argName("dir").desc("directory containing libraries").build());...
).parse(cmdOptions, args);
1,553,157
final CreateScalingPlanResult executeCreateScalingPlan(CreateScalingPlanRequest createScalingPlanRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createScalingPlanRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,462,449
private static Vector apply(CompLongDoubleVector v1, LongDummyVector v2, Binary op) {<NEW_LINE>LongDoubleVector[] parts = v1.getPartitions();<NEW_LINE>Storage[] resParts = StorageSwitch.applyComp(v1, v2, op);<NEW_LINE>if (!op.isKeepStorage()) {<NEW_LINE>for (int i = 0; i < parts.length; i++) {<NEW_LINE>if (parts[i].get...
getStorage().getValues());
159,972
public void load(ServerRow row, MatrixPartitionMeta meta, PSMatrixLoadContext loadContext, DataInputStream in) throws IOException {<NEW_LINE>try {<NEW_LINE>row.startWrite();<NEW_LINE>if (row instanceof ServerIntFloatRow) {<NEW_LINE>load((ServerIntFloatRow) row, loadContext, meta, in);<NEW_LINE>} else if (row instanceof...
row, loadContext, meta, in);
366,206
public void contribute(BuildContext context, AotOptions aotOptions) {<NEW_LINE>TypeSystem typeSystem = new TypeSystem(context.getClasspath(), context.getMainClass());<NEW_LINE>typeSystem.setAotOptions(aotOptions);<NEW_LINE>SpringAnalyzer springAnalyzer = new SpringAnalyzer(typeSystem, aotOptions);<NEW_LINE>springAnalyz...
(configurationCollector.getReflectionDescriptor()));
666,611
protected void generateAnnotations(Object visitor, Host host) {<NEW_LINE>for (Tag t : host.getTags()) {<NEW_LINE>if (t instanceof VisibilityAnnotationTag) {<NEW_LINE>// Find all VisibilityAnnotationTags<NEW_LINE>VisibilityAnnotationTag vat = (VisibilityAnnotationTag) t;<NEW_LINE>boolean runTimeVisible = (vat.getVisibil...
at.getType(), runTimeVisible);
1,636,942
synchronized void binding(InsightFilter.Data data, Function<InsightInstrument.Key, ExecutionEventNodeFactory> needFactory, Consumer<InsightInstrument.Key> hasFactory) {<NEW_LINE>checkClosed();<NEW_LINE>InsightFilter filter = data.filter;<NEW_LINE>InsightInstrument.Key key = bindings.get(filter);<NEW_LINE>if (key == nul...
key = instrument.newKey(null);
1,191,374
private Ftile createDown(Branch branch1, Branch branch2) {<NEW_LINE>final Ftile tile1 = new FtileMinWidthCentered(branch1.getFtile(), 30);<NEW_LINE>final Ftile tile2 = new FtileMinWidthCentered(<MASK><NEW_LINE>final TextBlock tb1 = getLabelPositive(branch1);<NEW_LINE>final TextBlock tb2 = getLabelPositive(branch2);<NEW...
branch2.getFtile(), 30);
381,934
public Deferred<Boolean> flushNotMatched(final TSDB tsdb) {<NEW_LINE>if (!store_failures) {<NEW_LINE>not_matched.clear();<NEW_LINE>return Deferred.fromResult(true);<NEW_LINE>}<NEW_LINE>final byte[] row_key = new byte[TREE_ID_WIDTH + 1];<NEW_LINE>System.arraycopy(idToBytes(tree_id), 0, row_key, 0, TREE_ID_WIDTH);<NEW_LI...
getValue().getBytes(CHARSET);
20,272
public Pattern parseFromInput(String input, ParserContext context) throws InputParseException {<NEW_LINE>RandomPattern randomPattern = new RandomPattern();<NEW_LINE>String[] splits = input.split(",", -1);<NEW_LINE>List<String> patterns = StringUtil.parseListInQuotes(splits, ',', '[', ']', true);<NEW_LINE>if (patterns.s...
randomPattern.add(innerPattern, chance);
1,271,233
public com.amazonaws.services.machinelearning.model.InvalidInputException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.machinelearning.model.InvalidInputException invalidInputException = new com.amazonaws.services.machinelearning.model.InvalidInputException(n...
class).unmarshall(context));
165,233
private Object pipe(CommandInput input) {<NEW_LINE>final String[] usage = { "pipe - create/delete pipe operator", "Usage: pipe [OPERATOR] [PREFIX] [POSTFIX]", " pipe --list", " pipe --delete [OPERATOR...]", " -? --help Displays command help", " -d --delete Delete...
put(Printer.MAX_DEPTH, 0);
1,475,165
static DecodingCharProducer make(Decoder d, CharProducer p) {<NEW_LINE>int plimit = p.getLimit(), poffset = p.getOffset(), pavail = plimit - poffset;<NEW_LINE>char[] pbuf = p.getBuffer();<NEW_LINE>short[] deltas <MASK><NEW_LINE>char[] buf = new char[pavail];<NEW_LINE>int limit = 0;<NEW_LINE>short lastDelta = 0;<NEW_LIN...
= new short[pavail + 1];
86,358
public static void main(final String[] args) {<NEW_LINE>//<NEW_LINE>// Start ADempiere<NEW_LINE>AdempiereToolsHelper.getInstance().startupMinimal();<NEW_LINE>LogManager.setLevel(Level.DEBUG);<NEW_LINE>// metas: don't log migration scripts<NEW_LINE>Ini.setProperty(Ini.P_LOGMIGRATIONSCRIPT, false);<NEW_LINE>final TableAn...
parseInt(adReferenceIdStr.trim());
231,391
protected void initPinPad() {<NEW_LINE>pinDisp = (TextView) findViewById(R.id.pin_display);<NEW_LINE>addrInfoPrefix = (TextView) findViewById(R.id.pin_addr_info_prefix);<NEW_LINE>addrInfoHighlight = (TextView) findViewById(R.id.pin_addr_info_highlight);<NEW_LINE>addrInfoPostfix = (TextView) findViewById(R.id.pin_addr_i...
R.id.pin_hexbuttonB)));
825,050
private void puComboboxActionPerformed() {<NEW_LINE>if (puComboBox.getSelectedItem() != null) {<NEW_LINE><MASK><NEW_LINE>Project project = pXml != null ? FileOwnerQuery.getOwner(pXml) : null;<NEW_LINE>PersistenceEnvironment pe = project != null ? project.getLookup().lookup(PersistenceEnvironment.class) : null;<NEW_LINE...
FileObject pXml = puObject.getPrimaryFile();
513,483
private void hookMenu(View view, ExtensionHook hook) {<NEW_LINE>if (!hasView()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ExtensionHookMenu hookMenu = hook.getHookMenuNoInit();<NEW_LINE>if (hookMenu == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MainMenuBar menuBar = view.getMainFrame().getMainMenuBar();<NEW_LINE>// 2 me...
hookMenu.getFile(), 2);
1,855,432
private static String generateSignature(AuthToken token) {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>builder.<MASK><NEW_LINE>// $NON-NLS-1$<NEW_LINE>builder.append("||");<NEW_LINE>builder.append(token.getExpiresOn().getTime());<NEW_LINE>// $NON-NLS-1$<NEW_LINE>builder.append("||");<NEW_LINE>builder...
append(token.getPrincipal());
1,439,548
final DescribeLocationSmbResult executeDescribeLocationSmb(DescribeLocationSmbRequest describeLocationSmbRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLocationSmbRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeLocationSmb");
1,823,051
protected void onFailure(@NonNull final Exception e) {<NEW_LINE>if (e instanceof UserCancellationException) {<NEW_LINE>finish(RESULT_CANCELED, null);<NEW_LINE>} else if (e instanceof FirebaseAuthAnonymousUpgradeException) {<NEW_LINE>IdpResponse res = ((FirebaseAuthAnonymousUpgradeException) e).getResponse();<NEW_LINE>f...
, IdpResponse.getErrorIntent(e));
938,590
public void onNext(ResponseMsg responseMsg) {<NEW_LINE>if (responseMsg.hasConnectResponseMsg()) {<NEW_LINE>ConnectResponseMsg connectResponseMsg = responseMsg.getConnectResponseMsg();<NEW_LINE>if (connectResponseMsg.getResponseCode().equals(ConnectResponseCode.ACCEPTED)) {<NEW_LINE>log.info("[{}] Configuration received...
edgeKey, responseMsg.getDownlinkMsg());
1,106,442
final BatchExecuteStatementResult executeBatchExecuteStatement(BatchExecuteStatementRequest batchExecuteStatementRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchExecuteStatementRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
endClientExecution(awsRequestMetrics, request, response);
1,519,804
/*<NEW_LINE>* public boolean isZOSPlatform() {<NEW_LINE>*<NEW_LINE>* String thisMethodName = CLASS_NAME + ".isZOSPlatform()";<NEW_LINE>*<NEW_LINE>* if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>* SibTr.entry(tc, thisMethodName); }<NEW_LINE>*<NEW_LINE>* if (TraceComponent.isAnyTracingEnable...
Enumeration meEnum = _messagingEngines.elements();
1,461,350
private void bufferIndent(Token token, int index) {<NEW_LINE>int indent = token.getIndent();<NEW_LINE>if (getCurrent() != null && getCurrent() != token)<NEW_LINE>indent += getCurrent().getEmptyLineIndentAdjustment();<NEW_LINE>int spaces = 0;<NEW_LINE>if (this.options.use_tabs_only_for_leading_indentations && this.optio...
WrapPolicy wrapPolicy = token.getWrapPolicy();
1,210,949
public void drawInfo(@Nonnull Minecraft minecraft, int recipeWidth, int recipeHeight, int mouseX, int mouseY) {<NEW_LINE>// This is early every time the recipe is drawn, so re-calc based on the active items here<NEW_LINE>if (currentLayout != null) {<NEW_LINE>final IGuiItemStackGroup guiItemStacks = currentLayout.getIte...
get(2).getDisplayedIngredient();
544,034
protected ShardsIterator shards(ClusterState clusterState, Request request, String[] concreteIndices) {<NEW_LINE>String[<MASK><NEW_LINE>if (requestIndices == null || requestIndices.length == 0) {<NEW_LINE>requestIndices = new String[] { "*" };<NEW_LINE>}<NEW_LINE>List<String> abstractionNames = indexAbstractionResolver...
] requestIndices = request.indices();
456,101
public static GetMockRuleByProviderAppIdResponse unmarshall(GetMockRuleByProviderAppIdResponse getMockRuleByProviderAppIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMockRuleByProviderAppIdResponse.setRequestId(_ctx.stringValue("GetMockRuleByProviderAppIdResponse.RequestId"));<NEW_LINE>getMockRuleByProviderAppIdRe...
(_ctx.stringValue("GetMockRuleByProviderAppIdResponse.HttpCode"));
286,881
public void renderJSON(PrintWriter writer, Map<String, String> params) {<NEW_LINE>JsonArray json = new JsonArray();<NEW_LINE>for (ConsumerRecord<byte[], byte[]> record : Lists.reverse(retrieveActionReportMessages())) {<NEW_LINE>try {<NEW_LINE>JsonObject jsonRecord = new JsonObject();<NEW_LINE>BinaryDecoder binaryDecode...
(result.getClusterName()));
1,071,772
private CodegenMethod referenceAddToCollCodegen(CodegenMethod parent, CodegenNamedMethods namedMethods, CodegenClassScope classScope) {<NEW_LINE>CodegenMethod getComparable = getComparableWMultiKeyCodegen(forge.getSpec().getCriteria(), sorted, namedMethods, classScope);<NEW_LINE>CodegenMethod method = parent.makeChildW...
addParam(ExprEvaluatorContext.EPTYPE, NAME_EXPREVALCONTEXT);
233,841
public void render(GLAutoDrawable drawable, FlightConfiguration configuration, Set<RocketComponent> selection) {<NEW_LINE>if (cr == null)<NEW_LINE>throw new IllegalStateException(this + " Not Initialized");<NEW_LINE>Collection<Geometry> geometry = getTreeGeometry(configuration);<NEW_LINE>GL2 gl = drawable.getGL().getGL...
gl.glDepthRange(0, 0);
1,486,279
public double det() {<NEW_LINE>if (!isSquare())<NEW_LINE>throw new ArithmeticException("Rectangual matricies do not have a determinat");<NEW_LINE>double det = 1;<NEW_LINE>for (int i = 0; i < Math.min(U.rows(), U.cols()); i++) det *= U.get(i, i);<NEW_LINE>// We need to swap back P to get the sign, so we make a clone. Th...
pCopy.swapRows(i, j);
1,068,178
public boolean updateServiceIdentity(String domainName, ServiceIdentity service) {<NEW_LINE>DomainStruct domainStruct = getDomainStruct(domainName);<NEW_LINE>if (domainStruct == null) {<NEW_LINE>throw ZMSUtils.error(ResourceException.NOT_FOUND, "domain not found", "updateServiceIdentity");<NEW_LINE>}<NEW_LINE>if (domai...
(new HashMap<>());
1,470,344
private RepositorySystem newRepositorySystem() throws BootstrapMavenException {<NEW_LINE>final DefaultServiceLocator locator = getServiceLocator();<NEW_LINE>if (!isOffline()) {<NEW_LINE>locator.addService(RepositoryConnectorFactory.class, BasicRepositoryConnectorFactory.class);<NEW_LINE>locator.addService(<MASK><NEW_LI...
TransporterFactory.class, WagonTransporterFactory.class);
1,700,843
final ListDevicesResult executeListDevices(ListDevicesRequest listDevicesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDevicesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
invoke(request, responseHandler, executionContext);
577,334
private void sendRows(ResultInterface result, long count) throws IOException {<NEW_LINE><MASK><NEW_LINE>boolean lazy = result.isLazy();<NEW_LINE>Session oldSession = lazy ? session.setThreadLocalSession() : null;<NEW_LINE>try {<NEW_LINE>while (count-- > 0L) {<NEW_LINE>boolean hasNext;<NEW_LINE>try {<NEW_LINE>hasNext = ...
int columnCount = result.getVisibleColumnCount();
1,632,210
public boolean calculateTaxTotal() {<NEW_LINE>final String trxName = get_TrxName();<NEW_LINE>// Delete Taxes<NEW_LINE>DB.executeUpdateEx("DELETE FROM C_InvoiceTax WHERE C_Invoice_ID=" + getC_Invoice_ID(), trxName);<NEW_LINE>m_taxes = null;<NEW_LINE>final IInvoiceBL invoiceBL = Services.get(IInvoiceBL.class);<NEW_LINE>f...
int taxId = line.getC_Tax_ID();
187,451
public void updateStoragePool(StoragePool storagePool, Map<String, String> details) {<NEW_LINE>String capacityBytes = details.get(PrimaryDataStoreLifeCycle.CAPACITY_BYTES);<NEW_LINE>StoragePoolVO storagePoolVO = primaryDataStoreDao.<MASK><NEW_LINE>try {<NEW_LINE>if (capacityBytes == null || capacityBytes.isBlank()) {<N...
findById(storagePool.getId());
1,078,263
private RichTooltip buildTooltip() {<NEW_LINE>RichTooltip richTooltip = new RichTooltip();<NEW_LINE>// Min<NEW_LINE>richTooltip.addDescriptionSection(NbBundle.getMessage(TimelineTooltip.class, "TimelineTooltip.min") + ": " + getMin());<NEW_LINE>// Max<NEW_LINE>richTooltip.addDescriptionSection(NbBundle.getMessage(Timel...
) + ": " + getY());
1,254,646
private void deleteFiles(Collection<String> names) throws IOException {<NEW_LINE>assert locked();<NEW_LINE>ensureOpen();<NEW_LINE>if (infoStream.isEnabled("IFD")) {<NEW_LINE>if (names.size() > 0) {<NEW_LINE>infoStream.message(<MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>// We make two passes, first deleting any segments_N fil...
"IFD", "delete " + names + "");
1,322,701
public static void addMissingReturnTypeProposals(IInvocationContext context, IProblemLocationCore problem, Collection<ChangeCorrectionProposal> proposals) {<NEW_LINE>ICompilationUnit cu = context.getCompilationUnit();<NEW_LINE>CompilationUnit astRoot = context.getASTRoot();<NEW_LINE>ASTNode selectedNode = problem.getCo...
parentType = ASTResolving.findParentType(decl);
1,220,123
private void initTableHeader() {<NEW_LINE>JTableHeader header = itemTable.getTableHeader();<NEW_LINE>header.setPreferredSize(new Dimension(itemTable.getColumnModel().getTotalColumnWidth(), Math.max(20, itemTable.getFont().getSize() + 5)));<NEW_LINE>header.setReorderingAllowed(false);<NEW_LINE>// columns<NEW_LINE>TableC...
(Bundle.SyncPanel_table_header_localPath_toolTip()));
1,444,411
private void registerBlockCompletionInfo(@NotNull String headToken, @NotNull String[] completionParts, @NotNull String tailToken, @Nullable String tailEndToken, @Nullable String prevCancelToken) {<NEW_LINE>if (headToken == null || completionParts == null || tailToken == null) {<NEW_LINE>throw new IllegalArgumentExcepti...
()).add(info);
274,242
private List<TextDetail> matchWholeFile(CharSequence cb, FileObject fo) throws DataObjectNotFoundException {<NEW_LINE>Matcher textMatcher = pattern.matcher(cb);<NEW_LINE>DataObject dataObject = null;<NEW_LINE>MultiLineMappedMatcherSmall.LineInfoHelper lineInfoHelper <MASK><NEW_LINE>List<TextDetail> textDetails = null;<...
= new MultiLineMappedMatcherSmall.LineInfoHelper(cb);
1,081,869
protected SecretKey engineGenerateKey() {<NEW_LINE>if (genSpec != null) {<NEW_LINE>BCFrodoPublicKey pubKey = (BCFrodoPublicKey) genSpec.getPublicKey();<NEW_LINE>FrodoKEMGenerator kemGen = new FrodoKEMGenerator(random);<NEW_LINE>SecretWithEncapsulation secEnc = kemGen.generateEncapsulated(pubKey.getKeyParams());<NEW_LIN...
FrodoKEMExtractor(privKey.getKeyParams());
750,534
public void connectToRegistryServer(String connectString) {<NEW_LINE>Requires.requireNotNull(connectString, "connectString");<NEW_LINE>String[] array = Strings.split(connectString, ',');<NEW_LINE>for (String s : array) {<NEW_LINE>String[] addressStr = Strings.split(s, ':');<NEW_LINE>String host = addressStr[0];<NEW_LIN...
clients.putIfAbsent(address, newClient);
1,122,577
public final SelectFieldsIntoContext selectFieldsInto() throws RecognitionException {<NEW_LINE>SelectFieldsIntoContext _localctx = new SelectFieldsIntoContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 242, RULE_selectFieldsInto);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>setState(3607);<NEW_LINE>_errHandler.sync...
_la = _input.LA(1);
351,533
public DetectEntitiesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DetectEntitiesResult detectEntitiesResult = new DetectEntitiesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
JsonToken token = context.getCurrentToken();
197,565
public void applyEnterMpReply(GenshinPlayer hostPlayer, int applyUid, boolean isAgreed) {<NEW_LINE>// Checks<NEW_LINE>CoopRequest request = hostPlayer.getCoopRequests().get(applyUid);<NEW_LINE>if (request == null || request.isExpired()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Remove now that we are handling it<NEW_LI...
getWorld().addPlayer(requester);
465,920
public com.amazonaws.services.imagebuilder.model.CallRateLimitExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.imagebuilder.model.CallRateLimitExceededException callRateLimitExceededException = new com.amazonaws.services.imagebuilder.model.CallR...
String currentParentElement = context.getCurrentParentElement();
768,939
@Produces(APPLICATION_JSON_WITH_CHARSET)<NEW_LINE>public String list(@Context GraphManager manager, @PathParam("graph") String graph, @QueryParam("user") String user, @QueryParam("group") String group, @QueryParam("limit") @DefaultValue("100") long limit) {<NEW_LINE>LOG.debug("Graph [{}] list belongs by user {} or grou...
id = UserAPI.parseId(group);
1,361,381
public StructureView createStructureView(FileEditor fileEditor, @Nonnull Project project) {<NEW_LINE>List<StructureViewComposite.StructureViewDescriptor> viewDescriptors = new ArrayList<>();<NEW_LINE>VirtualFile file = fileEditor == null ? null : fileEditor.getFile();<NEW_LINE>PsiFile psiFile = file == null || !file.is...
FileViewProvider viewProvider = psiFile.getViewProvider();
410,406
private void sendKeyToMasters(byte[] keyRef, UUID kmsConfigUUID) {<NEW_LINE>Universe universe = Universe.getOrBadRequest(taskParams().universeUUID);<NEW_LINE>String hostPorts = universe.getMasterAddresses();<NEW_LINE>String certificate = universe.getCertificateNodetoNode();<NEW_LINE>YBClient client = null;<NEW_LINE>try...
ybService.closeClient(client, hostPorts);
1,386,464
public static void beanELResolverRegisterVariable(CtClass ctClass) throws CannotCompileException {<NEW_LINE>String initPlugin = PluginManagerInvoker.buildInitializePlugin(ELResolverPlugin.class);<NEW_LINE>String registerThis = PluginManagerInvoker.buildCallPluginMethod(ELResolverPlugin.class, "registerBeanELResolver", ...
debug("JBossEL 3.0 - javax.el.BeanELResolver - method added " + PURGE_CLASS_CACHE_METHOD_NAME + "(java.lang.ClassLoader classLoader). ");
546,093
public static JsChunkSpec create(String specString, boolean isFirstChunk) {<NEW_LINE>// Format is "<name>:<num-js-files>[:[<dep>,...][:]]".<NEW_LINE>String[] parts = specString.split(":");<NEW_LINE>if (parts.length < 2 || parts.length > 4) {<NEW_LINE>throw new FlagUsageException("Expected 2-4 colon-delimited parts in "...
.parseInt(parts[1]);
866,128
private boolean processAuxField(VariableElement field) {<NEW_LINE>List<Term> expression = sourceMapper<MASK><NEW_LINE>if (expression.isEmpty() || !field.getModifiers().contains(Modifier.FINAL)) {<NEW_LINE>reporter.withElement(field).error("Auxiliary field '%s' have to be final and initialized to some value," + " possib...
.getExpression(memberPath(field));
625,236
protected OptionParser buildOptionParser() {<NEW_LINE>OptionParser parser = new OptionParser();<NEW_LINE>parser.accepts("config", "location of config.properties file").withRequiredArg();<NEW_LINE>parser.accepts("env_config", "json object encoded config in an environment variable").withRequiredArg();<NEW_LINE>parser.acc...
parser.accepts("__separator_6", "");
230,481
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>cancelFateOperation_result result = new cancelFateOperation_result();<NEW_LINE>if (e instanceof org.apache.accumulo.core.clientImpl.thrift.ThriftSecu...
.thrift.protocol.TMessageType.EXCEPTION;
26,238
private Sequence fetch(Sequence src, Expression[] exps, Sequence code, Expression[] newExps, String[] newNames, Context ctx) {<NEW_LINE>int newCount = newExps.length;<NEW_LINE>DataStruct ds = new DataStruct(newNames);<NEW_LINE>int len = src.length();<NEW_LINE>Sequence result = new Sequence(len);<NEW_LINE>ComputeStack s...
current = src.new Current();
100,137
public void buildGraph(Graph graph, HashMap<Class<?>, Object> extra, DataImportIssueStore issueStore) {<NEW_LINE>this.issueStore = issueStore;<NEW_LINE><MASK><NEW_LINE>Handler handler = new Handler(graph, osmdb);<NEW_LINE>for (BinaryOpenStreetMapProvider provider : providers) {<NEW_LINE>LOG.info("Gathering OSM from pro...
OSMDatabase osmdb = new OSMDatabase(issueStore);
956,491
final UpdateFieldLevelEncryptionConfigResult executeUpdateFieldLevelEncryptionConfig(UpdateFieldLevelEncryptionConfigRequest updateFieldLevelEncryptionConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFieldLevelEncryptionConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
238,456
public static ListChangeOrdersResponse unmarshall(ListChangeOrdersResponse listChangeOrdersResponse, UnmarshallerContext _ctx) {<NEW_LINE>listChangeOrdersResponse.setRequestId(_ctx.stringValue("ListChangeOrdersResponse.RequestId"));<NEW_LINE>listChangeOrdersResponse.setMessage(_ctx.stringValue("ListChangeOrdersResponse...
(_ctx.stringValue("ListChangeOrdersResponse.Code"));
1,645,218
public void produce(Consumer<Message> messageConsumer, MessageContext context) {<NEW_LINE>// stop here if metadata has already been fetched<NEW_LINE>if (torrent.get() != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Peer peer = context.getPeer();<NEW_LINE>if (supportingPeers.contains(peer)) {<NEW_LINE>if (peersWithoutMe...
peer, System.currentTimeMillis());
276,635
public PaymentString parse(@NonNull final String paymentText) throws IndexOutOfBoundsException {<NEW_LINE>final List<String> collectedErrors = new ArrayList<>();<NEW_LINE>//<NEW_LINE>// First 3 digits: transaction type<NEW_LINE>final String trxType = paymentText.substring(0, 3);<NEW_LINE>final String postAccountNo = pa...
paymentText.substring(65, 71);
776,116
private void writeAttributes(final ITreeWriter writer, final NodeModel node, final NodeStyleModel style, final boolean forceFormatting) {<NEW_LINE>final Color color = forceFormatting ? nsc.getColor(node, StyleOption.FOR_UNSELECTED_NODE) : style.getColor();<NEW_LINE>if (color != null) {<NEW_LINE>ColorUtils.addColorAttri...
).writeQuantity("SHAPE_HORIZONTAL_MARGIN", shapeHorizontalMargin);
718,256
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup...
Utils.getValueFromIdByName(id, "labs");
1,630,822
public ObjectInspector initialize(ObjectInspector[] arg0) throws UDFArgumentException {<NEW_LINE>if (arg0.length != 2)<NEW_LINE>usage("Must have two arguments.");<NEW_LINE>if (arg0[0].getCategory() == Category.MAP) {<NEW_LINE>this.mapInspector = (MapObjectInspector) arg0[0];<NEW_LINE>if (mapInspector.getMapKeyObjectIns...
, ObjectInspectorUtils.ObjectInspectorCopyOption.JAVA));
1,473,463
public void testCreateSharedDurableConsumerWithMsgSelector_2Subscribers(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE><MASK><NEW_LINE>JMSConsumer jmsConsumer1 = jmsContextReceiver.createSharedDurableConsumer(jmsTopic1, "DURATEST1", "Company = 'IBM'");<NEW_LINE>JMSProducer jmsProd...
JMSContext jmsContextReceiver = jmsTCFBindings.createContext();
905,009
public LibertyApplicationBus createServerScopedBus(JaxWsModuleMetaData moduleMetaData) {<NEW_LINE>ModuleInfo moduleInfo = moduleMetaData.getModuleInfo();<NEW_LINE>Map<String, Object> properties = new HashMap<String, Object>();<NEW_LINE>properties.put("org.apache.cxf.bus.id", <MASK><NEW_LINE>Map<Class<?>, Object> extens...
moduleInfo.getName() + "-Server-Bus");
1,748,086
public void sendEventGridEventsAsync() {<NEW_LINE>// BEGIN: com.azure.messaging.eventgrid.EventGridPublisherAsyncClient#CreateEventGridEventClient<NEW_LINE>// Create a client to send events of EventGridEvent schema<NEW_LINE>EventGridPublisherAsyncClient<EventGridEvent> eventGridEventPublisherClient = // make sure it ac...
(eventGridEvent)).block();
540,259
private void addMgpAttributes(Element gradElem, SVGGeneratorContext genCtx, MultipleGradientPaint gradient) {<NEW_LINE>gradElem.setAttribute(SVG_GRADIENT_UNITS_ATTRIBUTE, SVG_USER_SPACE_ON_USE_VALUE);<NEW_LINE>// Set cycle method<NEW_LINE>switch(gradient.getCycleMethod()) {<NEW_LINE>case REFLECT:<NEW_LINE>gradElem.setA...
] fracs = gradient.getFractions();
1,819,116
public final ObjectelemContext objectelem() throws RecognitionException {<NEW_LINE>ObjectelemContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 26, RULE_objectelem);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(199);<NEW_LINE>_errHandler.sync(this);<NEW_L...
ObjectelemContext(_ctx, getState());
1,437,771
static public byte[] expandByteArray(byte[] src, byte[] dst, int srcPos, int srcLength, int dstPos, int dstLength) {<NEW_LINE>byte[] rc = null;<NEW_LINE>int totalLen = 0;<NEW_LINE>if (null != src) {<NEW_LINE>totalLen += srcLength;<NEW_LINE>}<NEW_LINE>if (null != dst) {<NEW_LINE>totalLen += dstLength;<NEW_LINE>}<NEW_LIN...
dstPos, rc, srcLength, dstLength);
921,319
public static SocketChannel connect(SocketAddress remote, final int timeoutMillis) {<NEW_LINE>SocketChannel sc = null;<NEW_LINE>try {<NEW_LINE>sc = SocketChannel.open();<NEW_LINE>sc.configureBlocking(true);<NEW_LINE>sc.socket().setSoLinger(false, -1);<NEW_LINE>sc.socket().setTcpNoDelay(true);<NEW_LINE>if (NettySystemCo...
).connect(remote, timeoutMillis);
188,203
public Object extractObject(ObjectToJsonConverter pConverter, Object pValue, Stack<String> pPathParts, boolean jsonify) throws AttributeNotFoundException {<NEW_LINE>// Wrap fault handler if a wildcard path pattern is present<NEW_LINE>ValueFaultHandler faultHandler = pConverter.getValueFaultHandler();<NEW_LINE>String pa...
? null : pPathParts.pop();
1,138,152
private void unparseConstructorDeclarator(ConstructorDeclarator cd) {<NEW_LINE>this.unparseDocComment(cd);<NEW_LINE>this.unparseModifiers(cd.getModifiers());<NEW_LINE>AbstractClassDeclaration declaringClass = cd.getDeclaringClass();<NEW_LINE>this.pw.print(declaringClass instanceof NamedClassDeclaration ? ((NamedClassDe...
print(AutoIndentWriter.UNINDENT + "}");
229,344
private HttpPipeline createPipeline() {<NEW_LINE>if (pipeline != null) {<NEW_LINE>return pipeline;<NEW_LINE>}<NEW_LINE>final Configuration buildConfiguration = configuration == null ? Configuration.getGlobalConfiguration<MASK><NEW_LINE>// Closest to API goes first, closest to wire goes last.<NEW_LINE>final List<HttpPip...
().clone() : configuration;
1,089,735
public void actionPerformed(ActionEvent e) {<NEW_LINE>int[] selection = simulationTable.getSelectedRows();<NEW_LINE>if (selection.length == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Verify deletion<NEW_LINE>boolean verify = Application.getPreferences().getBoolean(Preferences.CONFIRM_DELETE_SIMULATION, true);<NEW_LIN...
putBoolean(Preferences.CONFIRM_DELETE_SIMULATION, false);
327,969
public void registerComponents(@NonNull Context context, @NonNull Glide glide, @NonNull Registry registry) {<NEW_LINE>AttachmentSecret attachmentSecret = AttachmentSecretProvider.getInstance(context).getOrCreateAttachmentSecret();<NEW_LINE>byte[] secret = attachmentSecret.getModernKey();<NEW_LINE>registry.prepend(File....
.class, new ApngFrameDrawableTranscoder());
292,106
public static void checkAllAttributeExpressions(Grammar g) {<NEW_LINE>for (ActionAST act : g.namedActions.values()) {<NEW_LINE>AttributeChecks checker = new AttributeChecks(g, null, null, act, act.token);<NEW_LINE>checker.examineAction();<NEW_LINE>}<NEW_LINE>for (Rule r : g.rules.values()) {<NEW_LINE>for (ActionAST a :...
alt, a, a.token);
1,010,353
public List<T> query(String filter, String sortBy, boolean ascending, String zoneId) {<NEW_LINE>validateOrderBy<MASK><NEW_LINE>SearchQueryConverter.ProcessedFilter where = queryConverter.convert(filter, sortBy, ascending, zoneId);<NEW_LINE>logger.debug("Filtering groups with SQL: " + where);<NEW_LINE>List<T> result;<NE...
(queryConverter.map(sortBy));
1,824,453
public void mapPartition(Iterable<Vector> values, Collector<LocalAggregator> out) throws Exception {<NEW_LINE>List<Integer> bcNumFeatures = getRuntimeContext().getBroadcastVariable("featureSize");<NEW_LINE>List<Tuple4<Integer, GmmClusterSummary, IterationStatus, MultivariateGaussian>> bcOldModel = getRuntimeContext().g...
oldMeans[clusterId] = clusterInfo.mean;
1,055,719
private void checkMethodNamingPattern(DetailAST methodDefToken) {<NEW_LINE>final DetailAST modifiersToken = methodDefToken.findFirstToken(TokenTypes.MODIFIERS);<NEW_LINE>final Optional<DetailAST> serviceMethodAnnotationOption = TokenUtil.findFirstTokenByPredicate(modifiersToken, node -> {<NEW_LINE>if (node.getType() !=...
equals(annotationIdentToken.getText());