idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
359,487
private void updateSOCreditStatus(@NonNull final BPartnerStats bpStats) {<NEW_LINE>final IBPartnerStatsBL bpartnerStatsBL = Services.get(IBPartnerStatsBL.class);<NEW_LINE>// load the statistics<NEW_LINE><MASK><NEW_LINE>final BigDecimal creditUsed = stats.getSO_CreditUsed();<NEW_LINE>final BPartnerCreditLimitRepository ...
final I_C_BPartner_Stats stats = loadDataRecord(bpStats);
715,013
public void buildDispatchOneMethod(ClassWriter classWriter) {<NEW_LINE>int[] cases = dispatchTargets.stream().filter(DispatchTarget::supportsDispatchOne).mapToInt(dispatchTargets::indexOf).toArray();<NEW_LINE>if (cases.length == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GeneratorAdapter dispatchMethod = new GeneratorAd...
dispatchMethod.invokeVirtual(thisType, UNKNOWN_DISPATCH_AT_INDEX);
532,960
final DisassociateAssetsResult executeDisassociateAssets(DisassociateAssetsRequest disassociateAssetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateAssetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
(super.beforeMarshalling(disassociateAssetsRequest));
473,162
protected DocumentMessage doDecode(DocumentDeserializer buf) {<NEW_LINE>CreateVisitorMessage msg = new CreateVisitorMessage();<NEW_LINE>msg.setLibraryName(decodeString(buf));<NEW_LINE>msg.setInstanceId(decodeString(buf));<NEW_LINE>msg.setControlDestination(decodeString(buf));<NEW_LINE>msg.setDataDestination(decodeStrin...
.setDocumentSelection(decodeString(buf));
189,646
public void testDSOverride004() throws Throwable {<NEW_LINE>final long id = atomicID.incrementAndGet();<NEW_LINE>System.out.println("Start executing DSOverrideTestServlet.testDSOverride004");<NEW_LINE>try {<NEW_LINE>// Create a new Entity using the persistence unit's default datasource<NEW_LINE>DSOverrideEntity newEnti...
map.put("eclipselink.jdbc.exclusive-connection.mode", "Always");
1,024,196
public void createPartControl(Composite aParent) {<NEW_LINE>super.createPartControl(aParent);<NEW_LINE>getGitRepositoryManager().addListener(this);<NEW_LINE>if (fChangedFilesFilterProjects.contains(selectedProject)) {<NEW_LINE>UIJob job = new // $NON-NLS-1$<NEW_LINE>// $NON-NLS-1$<NEW_LINE>UIJob("Turn on git filter ini...
schedule(5 * 60 * 1000);
512,245
public static RocketPrintTree create(String rocketName, List<RocketComponent> stages) {<NEW_LINE>Vector root = new Vector();<NEW_LINE>Vector toAddTo = root;<NEW_LINE>if (stages != null) {<NEW_LINE>if (stages.size() > 1) {<NEW_LINE>final Vector parent = new NamedVector(rocketName != null ? rocketName : "Rocket");<NEW_LI...
throw new ExpandVetoException(e, "you can't collapse this JTree");
741,039
private File merge(List<IndexableAdapter> indexes, final boolean rollup, final AggregatorFactory[] metricAggs, @Nullable DimensionsSpec dimensionsSpec, File outDir, IndexSpec indexSpec, ProgressIndicator progress, @Nullable SegmentWriteOutMediumFactory segmentWriteOutMediumFactory) throws IOException {<NEW_LINE>final L...
List<TransformableRowIterator>, TimeAndDimsIterator> rowMergerFn;
965,888
private static ArticleSearcher tryGetSearcher() {<NEW_LINE>boolean searchEnable = JPressOptions.isTrueOrEmpty("article_search_enable");<NEW_LINE>if (!searchEnable) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String engine = JPressOptions.get("article_search_engine");<NEW_LINE>if (StrUtil.isBlank(engine)) {<NEW_LINE>ret...
Aop.get(DbSearcher.class);
1,224,243
protected Composite createDialogArea(Composite parent) {<NEW_LINE>Composite credGroup = super.createDialogArea(parent);<NEW_LINE>((GridLayout) credGroup.getLayout()).numColumns = 2;<NEW_LINE>CLabel infoLabel = UIUtils.createInfoLabel(credGroup, getTitle());<NEW_LINE>GridData gd = new GridData(GridData.FILL_HORIZONTAL);...
getUserName(), SWT.BORDER);
1,105,811
public static OptionParser createOptionParser() {<NEW_LINE>OptionParser parser = new OptionParser();<NEW_LINE>// commmon<NEW_LINE>parser.acceptsAll(Arrays.asList("help", "?", "h"), "shows this help").forHelp();<NEW_LINE>parser.acceptsAll(Arrays.asList("n", "iteration"), "vjtop will exit after n output iterations (defa...
).ofType(String.class);
1,208,446
private void executeValidWorkflowAndExtractCheckValues() {<NEW_LINE>State state = new State(config);<NEW_LINE>WorkflowExecutor workflowExecutor = WorkflowExecutorFactory.createWorkflowExecutor(config.getWorkflowExecutorType(), state);<NEW_LINE><MASK><NEW_LINE>workflowExecutor.executeWorkflow();<NEW_LINE>ECDHClientKeyEx...
WorkflowTrace trace = state.getWorkflowTrace();
909,566
private void createButtonsPanel(JFileChooser fc) {<NEW_LINE>buttonPanel = new JPanel();<NEW_LINE>buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.Y_AXIS));<NEW_LINE>approveButton = new JButton(getApproveButtonText(fc)) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Dimension getMaximumSize() {<NEW_LINE>return...
.setMnemonic(getApproveButtonMnemonic(fc));
1,674,854
public static HMM fit(int[][] observations, int[][] labels) {<NEW_LINE>if (observations.length != labels.length) {<NEW_LINE>throw new IllegalArgumentException("The number of observation sequences and that of label sequences are different.");<NEW_LINE>}<NEW_LINE>// the number of states<NEW_LINE>int N = 0;<NEW_LINE>// th...
] pi = new double[N];
1,245,831
public List<String> standAloneRedisNodes(Cluster cluster) {<NEW_LINE>String redisUrl = cluster.getNodes().split(",")[0];<NEW_LINE>String redisHost = redisUrl.split(":")[0];<NEW_LINE>int redisPort = Integer.parseInt(redisUrl.split(":")[1]);<NEW_LINE>Jedis satandAloneJedis = new Jedis(redisHost, redisPort);<NEW_LINE>if (...
= new ArrayList<>(allNodes);
1,619,387
public void marshall(DkimAttributes dkimAttributes, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (dkimAttributes == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(dkimAttributes.getSigningEnabled(), SIGNIN...
dkimAttributes.getLastKeyGenerationTimestamp(), LASTKEYGENERATIONTIMESTAMP_BINDING);
1,396,248
public byte[] encrypt(final byte[] plaintext, final byte[] contextInfo) throws /* unused */<NEW_LINE>GeneralSecurityException {<NEW_LINE>if (contextInfo != null) {<NEW_LINE>throw new GeneralSecurityException("contextInfo must be null because it is unused");<NEW_LINE>}<NEW_LINE>if (plaintext.length > recordSize - paddin...
UNCOMPRESSED_POINT_FORMAT, ephemeralPublicKey.getW());
1,654,144
public void write_wchar(char x) {<NEW_LINE>// In GIOP 1.2, a wchar is encoded as an unsigned octet length<NEW_LINE>// followed by the octets of the converted wchar. This is good,<NEW_LINE>// but it causes problems with our chunking code. We don't<NEW_LINE>// want that octet to get put in a different chunk at the end<...
] result = converter.getBytes();
1,745,230
private GenericRecord convertToGenericRecord(PullRequestMergedEvent pullRequestMergedEvent) {<NEW_LINE>GenericRecord genericRecord = new GenericData.Record(_avroSchema);<NEW_LINE>// Dimensions<NEW_LINE>genericRecord.put("title", pullRequestMergedEvent.getTitle());<NEW_LINE>genericRecord.put("labels", pullRequestMergedE...
"repo", pullRequestMergedEvent.getRepo());
334,570
public Parameterable createParameterable(String paramString) throws ServletParseException {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled()) {<NEW_LINE>Object[] params = { paramString };<NEW_LINE>c_logger.<MASK><NEW_LINE>}<NEW_LINE>if (paramString == null) {<NEW_LINE>throw new IllegalArgumentException("null parameterab...
traceEntry(this, "createParameterable", params);
743,513
private void updateSelectionMode() {<NEW_LINE>mTabsSelectModeView.setVisibility(mSelecting ? View.VISIBLE : View.GONE);<NEW_LINE>if (mSelectedTabs.size() > 0) {<NEW_LINE>mCloseTabsButton.setVisibility(View.VISIBLE);<NEW_LINE>mUnselectTabs.setVisibility(View.VISIBLE);<NEW_LINE>mCloseTabsAllButton.setVisibility(View.GONE...
setText(R.string.tabs_selected_counter_none);
577,687
protected void finish() {<NEW_LINE>collector.finish();<NEW_LINE>final MetricsFile<AlignmentSummaryMetrics, Integer> file = getMetricsFile();<NEW_LINE>collector.addAllLevelsToFile(file);<NEW_LINE>final AlignmentSummaryMetricsCollector.GroupAlignmentSummaryMetricsPerUnitMetricCollector allReadsGroupCollector = (Alignment...
plotArgs = new ArrayList<>();
1,635,503
public Iterable<? extends Element> doOperation(final Aggregate operation, final Schema schema) throws OperationException {<NEW_LINE>if (null == operation.getInput()) {<NEW_LINE>throw new OperationException("Aggregate operation has null iterable of elements");<NEW_LINE>}<NEW_LINE>// If no entities or edges have been pro...
e, new AggregatePair()));
475,800
public Cursor handle(RelNode logicalPlan, ExecutionContext executionContext) {<NEW_LINE>LogicalDal logicalDal = (LogicalDal) logicalPlan;<NEW_LINE>SqlSetDefaultRole sqlNode = (SqlSetDefaultRole) logicalDal.getNativeSqlNode();<NEW_LINE>PolarPrivManager manager = PolarPrivManager.getInstance();<NEW_LINE>List<PolarAccount...
collect(Collectors.toList());
1,150,714
public void run(RegressionEnvironment env) {<NEW_LINE>String eplCreateInlined = "@name('clazz') @public create " + INLINEDCLASS_PREFIXMAP + ";\n";<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compile(eplCreateInlined, path);<NEW_LINE>String epl = "@public @buseventtype create schema PersonEvent(nam...
next().get("nameTrie");
548,498
public static LinkMap buildLinkMap(NodeList nodeList, TraceState traceState, Predicate<SpanBo> focusFilter, ServiceTypeRegistryService serviceTypeRegistryService) {<NEW_LINE>Objects.requireNonNull(focusFilter, "focusFilter");<NEW_LINE>final MultiValueMap<LongPair, Node> spanToLinkMap = new LinkedMultiValueMap<>();<NEW_...
firstNode = spanToLinkMap.getFirst(spanIdPairKey);
455,513
protected RestParamsTable buildParamsTable() {<NEW_LINE>RestParamsTableModel restParamsTableModel = new RestParamsTableModel(httpRequest.getParams()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getColumnName(int column) {<NEW_LINE>return column == 0 ? "Name" : "Value";<NEW_LINE>}<NEW_LINE><NEW_LINE>public int...
prop = params.getPropertyAt(rowIndex);
1,747,690
private void startPutBlob(OperationChain opChain) {<NEW_LINE>ReadableStreamChannel putChannel = new ByteBufferReadableStreamChannel(ByteBuffer.wrap(opChain.data));<NEW_LINE>Callback<String> callback = new TestCallback<String>(opChain, false) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>void action(String result) {<NEW_LINE>...
build(), callback, quotaChargeCallback);
1,179,198
public Object calculate(Context ctx) {<NEW_LINE>int pathCount = Env.getCursorParallelNum();<NEW_LINE>if (param == null) {<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object obj = param.getLeafExpression().calculate(ctx);<NEW_LINE>if (obj instanceof Number) {<NEW_LINE>pathCount = ((<MASK><NEW_LINE>} else if (obj != n...
Number) obj).intValue();
708,696
/* ------------------------------------------------------------------- */<NEW_LINE>protected void sendDirectory(HttpServletRequest request, HttpServletResponse response, Resource resource, String pathInContext) throws IOException {<NEW_LINE>if (!_dirAllowed) {<NEW_LINE>response.sendError(HttpServletResponse.SC_FORBIDDE...
getRequestURI(), URIUtil.SLASH);
1,141,857
public void marshall(AwsIamRoleDetails awsIamRoleDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsIamRoleDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(awsIamRoleDetails.getAssumeRolePo...
awsIamRoleDetails.getRoleName(), ROLENAME_BINDING);
1,808,545
private void storeChangedSync(VCSFileProxy file, long ts) {<NEW_LINE>File storeFile = getStoreFile(file, Long.toString(ts), true);<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>FileUtils.copy(file, StoreEntry.createStoreFileOutputStream(storeFile));<NEW_LINE>// NOI18N<NEW_LINE>LocalHistory.LOG.log(Level.FINE, "copied file {0}...
remove(storeFile.getParentFile());
1,048,694
protected void addHistoricTaskLogEntryFields(HistoricTaskLogEntryBuilder taskLogEntryBuilder, ObjectNode data) {<NEW_LINE>putIfNotNull(data, HistoryJsonConstants.<MASK><NEW_LINE>putIfNotNull(data, HistoryJsonConstants.PROCESS_INSTANCE_ID, taskLogEntryBuilder.getProcessInstanceId());<NEW_LINE>putIfNotNull(data, HistoryJ...
LOG_ENTRY_DATA, taskLogEntryBuilder.getData());
451,694
protected BenchTest[] createTests() {<NEW_LINE>int[][] sizes = new int[][] { { 30, 6 }, { 50, 6 }, { 100, 6 }, { 120, 6 }, { 180, 6 <MASK><NEW_LINE>BenchTest[] tests = new BenchTest[3 * 6];<NEW_LINE>int sizeIndex = 0;<NEW_LINE>for (int i = 0; i < tests.length; i += 3) {<NEW_LINE>int rows = sizes[sizeIndex][0];<NEW_LINE...
}, { 200, 6 } };
501,553
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>getSerializedSize();<NEW_LINE>if (goodsId_ != 0) {<NEW_LINE>output.writeUInt32(1, goodsId_);<NEW_LINE>}<NEW_LINE>if (goodsItem_ != null) {<NEW_LINE>output.writeMessage(2, getGoodsItem());<NEW_LINE>}<NEW_LINE>if (scoi...
output.writeUInt32(9, endTime_);
1,794,509
private static void checkName(RefactoringStatus status, String name, List<IMethodBinding> usedNames, IType type, boolean reUseExistingField, IField field) {<NEW_LINE>if ("".equals(name)) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean isStatic = false;<NEW_LINE>try {<NEW_LINE>isSt...
status.addFatalError(RefactoringCoreMessages.Checks_Choose_name);
1,230,196
private void removeContainer(String containerId, String imageName) {<NEW_LINE>boolean running;<NEW_LINE>try {<NEW_LINE>InspectContainerResponse containerInfo = dockerClient.inspectContainerCmd(containerId).exec();<NEW_LINE>running = containerInfo.getState() != null && Boolean.TRUE.equals(containerInfo.getState().getRun...
LOGGER.trace("Was going to stop container but it apparently no longer exists: {}", containerId);
1,644,846
protected void executeOperation() throws JavaModelException {<NEW_LINE>checkCanceled();<NEW_LINE>try {<NEW_LINE>beginTask(Messages.element_reconciling, 2);<NEW_LINE>CompilationUnit workingCopy = getWorkingCopy();<NEW_LINE><MASK><NEW_LINE>// check is problem requestor is active<NEW_LINE>IProblemRequestor problemRequesto...
boolean wasConsistent = workingCopy.isConsistent();
638,443
private JComponent createColorButtonsPanel(final FileColorConfiguration configuration) {<NEW_LINE>final JPanel result = new JPanel(new BorderLayout());<NEW_LINE>result.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));<NEW_LINE>final JPanel inner = new JPanel();<NEW_LINE>inner.setLayout(new BoxLayout(inner, BoxLay...
add(inner, BorderLayout.CENTER);
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(",");
436,219
Data pollInternal(long timeout) {<NEW_LINE>QueueItem reservedOffer = offeredQueue.peek();<NEW_LINE>long itemId = reservedOffer == null ? -1 : reservedOffer.getItemId();<NEW_LINE>TxnReservePollOperation operation = new TxnReservePollOperation(name, timeout, itemId, tx.getTxnId());<NEW_LINE>operation.<MASK><NEW_LINE>try ...
setCallerUuid(tx.getOwnerUuid());
466,002
public Map<String, Object> toSimpleMap(Function<Object, Serializable> objectFilter, Map<String, Object> map) {<NEW_LINE>map.put("action", action);<NEW_LINE>map.put("describe", describe);<NEW_LINE>if (method != null) {<NEW_LINE>StringJoiner methodAppender = new StringJoiner(",", method.getName().concat("("), ")");<NEW_L...
"exception", writer.toString());
554,545
public void perform() {<NEW_LINE>GitClient client = null;<NEW_LINE>try {<NEW_LINE>client = Git.getInstance().getClient(getRepositoryRoot(), this, false);<NEW_LINE>client.init(getProgressMonitor());<NEW_LINE>branches = new HashMap<String, GitBranch>();<NEW_LINE>branches.putAll(client.listRemoteBranches(uri.toPrivateStri...
.toString()), false);
1,716,230
private boolean canMoveModerately(Reference initialization, Reference reference) {<NEW_LINE>// Check if declaration can be inlined without passing<NEW_LINE>// any side-effect causing nodes.<NEW_LINE>Iterator<Node> it;<NEW_LINE>if (NodeUtil.isNameDeclaration(initialization.getParent())) {<NEW_LINE>it = // NAME<NEW_LINE>...
getGrandparent().getParent());
1,377,286
public static BufferedImage generateTextImage(int w, int h, String text) {<NEW_LINE>BufferedImage img = new BufferedImage(<MASK><NEW_LINE>Graphics2D g = img.createGraphics();<NEW_LINE>g.setColor(Color.BLACK);<NEW_LINE>g.fillRect(0, 0, w, h);<NEW_LINE>g.setColor(Color.WHITE);<NEW_LINE>try {<NEW_LINE>g.setFont(new Font(n...
w, h, BufferedImage.TYPE_3BYTE_BGR);
1,850,277
public static JPDADebugger attach(String hostName, int portNumber, Object[] services) throws DebuggerStartException {<NEW_LINE>Object[] s = new Object[services.length + 1];<NEW_LINE>System.arraycopy(services, 0, s, 1, services.length);<NEW_LINE>s[0] = AttachingDICookie.create(hostName, portNumber);<NEW_LINE>DebuggerEng...
int i, k = es.length;
1,717,331
public static void updateWidget(Context context, AppWidgetManager manager, Song song, int state) {<NEW_LINE>if (!sEnabled)<NEW_LINE>return;<NEW_LINE>RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.four_long_widget);<NEW_LINE>if ((state & PlaybackService.FLAG_NO_MEDIA) != 0) {<NEW_LINE>views.setVi...
pause : R.drawable.play);
604,388
public static void configureShared(final File baseDir, final Metrics metricRegistry, final Map<String, String> configTags) {<NEW_LINE>customTags = ImmutableMap.copyOf(configTags);<NEW_LINE>LOGGER.info("Adding node level storage usage gauges");<NEW_LINE>final MetricName nodeAvailable = metricRegistry.metricName("node_st...
metricName("num_stateful_tasks", METRIC_GROUP, customTags);
1,332,794
protected IOException copyRange(Reader reader, PrintWriter writer, long start, long end) {<NEW_LINE>long skipped = 0;<NEW_LINE>try {<NEW_LINE>skipped = reader.skip(start);<NEW_LINE>} catch (IOException e) {<NEW_LINE>return e;<NEW_LINE>}<NEW_LINE>if (skipped < start) {<NEW_LINE>String msg = MessageFormat.format(rb.getSt...
write(buffer, 0, len);
49,166
public Request<CreateTagsRequest> marshall(CreateTagsRequest createTagsRequest) {<NEW_LINE>if (createTagsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<CreateTagsRequest> request = new DefaultRequest<CreateTagsRequest>(createTagsRequest,...
request.addParameter("Action", "CreateTags");
1,322,104
protected CompletableFuture<Map<String, GdbMinimalSymbol>> doGetMinimalSymbols() {<NEW_LINE>// TODO: Apparently, this is using internal GDB-debugging commands....<NEW_LINE>// TODO: Also make methods for "full" symbols (DWARF?)<NEW_LINE>String cmd = "maintenance print msymbols -objfile " + name;<NEW_LINE>return inferior...
.group("addr"), 16);
1,341,312
private MTableScrollPane<SessionInformations> createScrollPane() {<NEW_LINE>boolean displayUser = false;<NEW_LINE>for (final SessionInformations sessionInformations : sessionsInformations) {<NEW_LINE>if (sessionInformations.getRemoteUser() != null) {<NEW_LINE>displayUser = true;<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>}<NE...
("countryDisplay", getString("Pays"));
974,500
public void dispatchDrawLabels(final Canvas canvas) {<NEW_LINE>final int left = mIgnorePadding ? 0 : mView.getPaddingLeft();<NEW_LINE>final int top = mIgnorePadding <MASK><NEW_LINE>final int right = mIgnorePadding ? mView.getWidth() : mView.getWidth() - mView.getPaddingRight();<NEW_LINE>final int bottom = mIgnorePaddin...
? 0 : mView.getPaddingTop();
481,496
public void fillTargetField(ActionRequest request, ActionResponse response) {<NEW_LINE>Context context = request.getContext();<NEW_LINE>MetaField metaField = (MetaField) context.get("metaField");<NEW_LINE>if (metaField != null) {<NEW_LINE>String targetField = "";<NEW_LINE>if (context.get("targetField") == null) {<NEW_L...
+= "." + metaField.getName();
965,178
public void migrateHeights(CommandContext args, Actor sender) throws CommandException {<NEW_LINE>// Check permissions<NEW_LINE>if (!getPermissionModel(sender).mayMigrateRegionHeights()) {<NEW_LINE>throw new CommandPermissionsException();<NEW_LINE>}<NEW_LINE>if (!args.hasFlag('y')) {<NEW_LINE>throw new CommandException(...
.getPlatform().getRegionContainer();
1,150,238
private void promiseWithAuthResult(AuthResult authResult, Promise promise) {<NEW_LINE>if (authResult != null && authResult.getUser() != null) {<NEW_LINE>WritableMap authResultMap = Arguments.createMap();<NEW_LINE>WritableMap userMap = firebaseUserToMap(authResult.getUser());<NEW_LINE>if (authResult.getAdditionalUserInf...
authResultMap.putMap("user", userMap);
177,375
ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>Wi wi = ...
setPerson(effectivePerson.getDistinguishedName());
202,146
public static CreatePublishResponse unmarshall(CreatePublishResponse createPublishResponse, UnmarshallerContext _ctx) {<NEW_LINE>createPublishResponse.setRequestId<MASK><NEW_LINE>Data data = new Data();<NEW_LINE>data.setAppId(_ctx.stringValue("CreatePublishResponse.Data.AppId"));<NEW_LINE>data.setCommitId(_ctx.stringVa...
(_ctx.stringValue("CreatePublishResponse.RequestId"));
1,152,645
/*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.microservice.multitenant.MultitenantMicroservice#initialize(com<NEW_LINE>* .sitewhere.spi.microservice.lifecycle.ILifecycleProgressMonitor)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void initialize(ILifecycleProgressMonitor monitor) throws SiteWhereException {<NEW_LINE>s...
this, getAssetManagementApiChannel(), true);
88,027
final ListProblemsResult executeListProblems(ListProblemsRequest listProblemsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listProblemsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
496,982
public static List<String> splitParameters(String text) {<NEW_LINE>log.debug("splitParameters: " + text);<NEW_LINE>List<String> ret = Collections.EMPTY_LIST;<NEW_LINE>int valStart = -1;<NEW_LINE>boolean inLiteral = false;<NEW_LINE>char ch = '\0';<NEW_LINE>if ((text != null) && (text.length() > 0)) {<NEW_LINE>ret = new ...
.substring(valStart, chidx));
1,551,876
final SearchSystemTemplatesResult executeSearchSystemTemplates(SearchSystemTemplatesRequest searchSystemTemplatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchSystemTemplatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,315,671
public boolean putIfAbsent(final LocalDB.DB db, final String key, final String value) throws LocalDBException {<NEW_LINE>preCheck(true);<NEW_LINE>final String selectSql = "SELECT * FROM " + db.toString() + " WHERE " + KEY_COLUMN + " = ?";<NEW_LINE>PreparedStatement selectStatement = null;<NEW_LINE>ResultSet resultSet =...
.writeLock().unlock();
20,348
final ListRecordsResult executeListRecords(ListRecordsRequest listRecordsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRecordsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
false), new ListRecordsResultJsonUnmarshaller());
177,210
protected void append(Event event) {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>prepareForDeferredProcessing(event);<NEW_LINE>} catch (RuntimeException e) {<NEW_LINE>addWarn("Unable to prepare event for deferred processing. Event output might be missing data.", e);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (enqueue(event)) {<...
long startTime = System.nanoTime();
1,236,317
public void registerReceiver(BroadcastReceiver receiver, IntentFilter filter) {<NEW_LINE>if (RePluginFramework.mHostInitialized) {<NEW_LINE>try {<NEW_LINE>ProxyLocalBroadcastManagerVar.registerReceiver.call(sOrigInstance, receiver, filter);<NEW_LINE>} catch (Exception e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>}<NEW_L...
new ArrayList<ReceiverRecord>(1);
164,342
public Map<String, String> patterns() {<NEW_LINE>Map<String, String> ret = new HashMap<>();<NEW_LINE>ret.put("\\<artifactId\\>nd4j-cuda-[0-9\\.]+\\<\\/artifactId\\>", String.format("<artifactId>nd4j-cuda-%s</artifactId>", cudaVersion));<NEW_LINE>ret.put("\\<artifactId\\>nd4j-cuda-[0-9\\.]*-preset<\\/artifactId\\>", Str...
.format("<artifactId>nd4j-cuda-%s-platform</artifactId>", cudaVersion));
1,669,584
protected void writeUpdates() {<NEW_LINE>if (core.mapManager == null)<NEW_LINE>return;<NEW_LINE>// Handles Updates<NEW_LINE>// Grab copy of world list<NEW_LINE>ArrayList<DynmapWorld> wlist = new ArrayList<DynmapWorld>(core.mapManager.getWorlds());<NEW_LINE>for (int windx = 0; windx < wlist.size(); windx++) {<NEW_LINE>D...
wrapStandaloneJSON(core.isLoginSupportEnabled());
757,575
public void processParameter(Parameter parameter) {<NEW_LINE>String $ref = parameter.getRef();<NEW_LINE>if ($ref != null) {<NEW_LINE>RefFormat refFormat = <MASK><NEW_LINE>if (isAnExternalRefFormat(refFormat)) {<NEW_LINE>final String newRef = externalRefProcessor.processRefToExternalParameter($ref, refFormat);<NEW_LINE>...
computeRefFormat(parameter.getRef());
299,535
public ASelectableCondition loadCondition(final XMLElement element) {<NEW_LINE>if (element.getName().equalsIgnoreCase(HyperLinkEqualsCondition.NAME)) {<NEW_LINE>final String target = element.getAttribute(HyperLinkEqualsCondition.TEXT, null);<NEW_LINE>final boolean matchCase = Boolean.toString(true).equals(element.getAt...
(ConnectorLabelEqualsCondition.MATCH_CASE, null));
472,938
public static byte[] toIntegerBytes(final BigInteger bigInt, boolean skipSignBit) {<NEW_LINE>// this will be removed once all properties update<NEW_LINE>// their code to handle the sign bit correctly<NEW_LINE>if (!skipSignBit) {<NEW_LINE>return bigInt.toByteArray();<NEW_LINE>}<NEW_LINE>int bitlen = bigInt.bitLength();<...
7) >> 3) << 3;
347,062
public void insertString(final int offs, final String str, final AttributeSet attr) {<NEW_LINE>if (offs < 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (str.length() > 1) {<NEW_LINE>int i;<NEW_LINE>for (i = 0; i < str.length(); i++) {<NEW_LINE>if (str.charAt(i) == '\n') {<NEW_LINE>remainingTextString = <MASK><NEW_LINE>r...
str.substring(i + 1);
1,503,410
private void checkpoint(List<Integer> matrixIds, int checkpointId, boolean cloneFirst, boolean sortFirst) throws IOException {<NEW_LINE>if (matrixIds == null || matrixIds.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<PSMatrixSaveContext> saveContexts = new ArrayList<>(matrixIds.size());<NEW_LINE>List<Path> che...
getFileSystem(context.getConf());
1,436,229
public final EnhancedArgumentListInParContext argumentList() throws RecognitionException {<NEW_LINE>EnhancedArgumentListInParContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 294, RULE_argumentList);<NEW_LINE>try {<NEW_LINE>int _alt;<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(1696);<N...
EnhancedArgumentListInParContext(_ctx, getState());
1,792,793
public static // 14: PREFIX(parenthesized_expression)<NEW_LINE>boolean expression(PsiBuilder b, int l, int g) {<NEW_LINE>if (!recursion_guard_(b, l, "expression"))<NEW_LINE>return false;<NEW_LINE>addVariant(b, "<expression>");<NEW_LINE>boolean r, p;<NEW_LINE>Marker m = enter_section_(b, l, _NONE_, "<expression>");<NEW_...
qualified_expression(b, l + 1);
1,222,146
final DescribeFirewallPolicyResult executeDescribeFirewallPolicy(DescribeFirewallPolicyRequest describeFirewallPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFirewallPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,441,719
public void refreshGrailsCommands() {<NEW_LINE>// NOI18N<NEW_LINE>Callable<Process> // NOI18N<NEW_LINE>callable = // NOI18N<NEW_LINE>ExecutionSupport.getInstance().// NOI18N<NEW_LINE>createSimpleCommand("help", GrailsProjectConfig.forProject(project));<NEW_LINE>final HelpLineProcessor lineProcessor = new HelpLineProces...
.propertyChange(projectConfigListener, projectConfig));
1,595,946
private void add(List<Query.KeyQuery> queries, int i, T value) {<NEW_LINE>if (i < queries.size()) {<NEW_LINE>Query.KeyQuery kq = queries.get(i);<NEW_LINE>// Check for additional queries based on the same key and combine into a<NEW_LINE>// composite if needed<NEW_LINE>Query.CompositeKeyQuery composite = null;<NEW_LINE>i...
Equal) kq).value();
1,432,914
public DataPlatform apply(@Nonnull final EntityResponse entityResponse) {<NEW_LINE>final DataPlatform result = new DataPlatform();<NEW_LINE>final DataPlatformKey dataPlatformKey = (DataPlatformKey) EntityKeyUtils.convertUrnToEntityKey(entityResponse.getUrn(), new DataPlatformKey().schema());<NEW_LINE>result.setType(Ent...
EnvelopedAspectMap aspectMap = entityResponse.getAspects();
542,867
public void marshall(SegmentGroup segmentGroup, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (segmentGroup.getDimensions() != null) {<NEW_LINE>java.util.List<SegmentDimensions> dimensions = segmentGroup.getDimensions();<NEW_LINE>jsonWriter.name("Dimensions");<NEW_LINE>json...
String sourceType = segmentGroup.getSourceType();
346,324
protected void run(StructuredGraph graph) {<NEW_LINE>graph.getNodes().filter(AddNode.class).forEach(addNode -> {<NEW_LINE>MulNode mulNode = null;<NEW_LINE>if (addNode.getX() instanceof MulNode) {<NEW_LINE>mulNode = <MASK><NEW_LINE>} else if (addNode.getY() instanceof MulNode) {<NEW_LINE>mulNode = (MulNode) addNode.getY...
(MulNode) addNode.getX();
1,377,919
private void handlePublicQuery(PublicQueryMessage message) {<NEW_LINE>switch(message.getWhat()) {<NEW_LINE>case PublicQueryMessage.COUNT:<NEW_LINE>message.getCallback().onResult(count());<NEW_LINE>break;<NEW_LINE>case PublicQueryMessage.COUNT_READY:<NEW_LINE>message.getCallback().onResult(countReadyJobs(getNetworkStatu...
onResult(consumerManager.getWorkerCount());
1,455,560
public void onViewCreate(View view, ViewGroup parent, Snapshot after) {<NEW_LINE>if (isCatalystInstanceDestroyed) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Scheduler strongScheduler = mScheduler.get();<NEW_LINE>if (strongScheduler != null) {<NEW_LINE>strongScheduler.triggerUI();<NEW_LINE>}<NEW_LINE>if (!mStates.containsKe...
preparedValues = prepareDataForAnimationWorklet(targetValues, true);
329,006
private void doApplyTheme(@NonNull Map<String, String> theme) {<NEW_LINE>Log.d(TAG, "changeTheme: " + theme.get("themeId"));<NEW_LINE>@ColorInt<NEW_LINE>int backgroundColor = parseColor(Objects.requireNonNull(theme.get("content_bg")));<NEW_LINE>getWindow().setBackgroundDrawable(new ColorDrawable(backgroundColor));<NEW_...
isStatusBarLight = Utils.isColorLight(headerBg);
1,015,250
public void deleteById(String id) {<NEW_LINE>String vaultName = Utils.getValueFromIdByName(id, "backupVaults");<NEW_LINE>if (vaultName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'backupVaults'.", id)));<NEW_LIN...
resourceGroupName, backupPolicyName, Context.NONE);
165,553
private static Properties loadReportPortalProperties() {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>try {<NEW_LINE>String reportPortalPropertiesFile = "src/test/resources/reportportal.properties";<NEW_LINE>getOverriddenStringValue("REPORT_PORTAL_FILE", reportPortalPropertiesFile);<NEW_LINE>LOGGER.info(...
File reportPortalFile = new File(reportPortalPropertiesFile);
730,519
public <T> void visitCtInvocation(CtInvocation<T> invocation) {<NEW_LINE>CtInvocation<T> i = invocation.getFactory().Core().createInvocation();<NEW_LINE>i.setExecutable(invocation.getExecutable());<NEW_LINE>i.setTypeCasts(invocation.getTypeCasts());<NEW_LINE>boolean constant = true;<NEW_LINE>i.setTarget(evaluate(invoca...
.Core().createLiteral();
603,381
private static void skip_scaling_list_data(CAVLCReader bsr) throws IOException {<NEW_LINE>// Based on FFMPEG implementation see hevc.c "skip_scaling_list_data"<NEW_LINE>for (int i = 0; i < 4; i++) {<NEW_LINE>for (int j = 0; j < (i == 3 ? 2 : 6); j++) {<NEW_LINE>if (bsr.readBool()) {<NEW_LINE>bsr.readUE("scaling_list_pr...
(i << 1))));
325,041
private void collect(Node node, StringBuilder prefix, String pattern, Queue<String> queue) {<NEW_LINE>if (node == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int digit = prefix.length();<NEW_LINE>char nextCharInPattern = pattern.charAt(digit);<NEW_LINE>if (nextCharInPattern == '.' || nextCharInPattern < node.character...
.character), pattern, queue);
1,632,337
final DetachPrincipalPolicyResult executeDetachPrincipalPolicy(DetachPrincipalPolicyRequest detachPrincipalPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(detachPrincipalPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DetachPrincipalPolicy");
661,776
public void marshall(CreateReplicationConfigurationTemplateRequest createReplicationConfigurationTemplateRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createReplicationConfigurationTemplateRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<N...
createReplicationConfigurationTemplateRequest.getBandwidthThrottling(), BANDWIDTHTHROTTLING_BINDING);
1,792,336
static <T> Handler create(Class<T> entityType, EntityHandler<T> entityHandler, ErrorHandler<Throwable> entityReadErrorHandler) {<NEW_LINE>Objects.requireNonNull(entityType, "Parameter 'publisherType' is null!");<NEW_LINE>Objects.requireNonNull(entityHandler, "Parameter 'entityHandler' is null!");<NEW_LINE>return (req, ...
accept(req, res, throwable);
1,739,867
@Description("Returns a specified number of characters from a string.")<NEW_LINE>public static String mid(String value, int beginIndex, int length) {<NEW_LINE>// Arguments are 1-based. Spec says that the function gives an error if<NEW_LINE>// Start <= 0 or Length < 0.<NEW_LINE>if (beginIndex <= 0) {<NEW_LINE>throw new ...
value.substring(beginIndex, endIndex);
1,063,449
public static List<Header> createRequestHeaders(Metadata headers, String defaultPath, String authority, String userAgent, boolean useGet, boolean usePlaintext) {<NEW_LINE>Preconditions.checkNotNull(headers, "headers");<NEW_LINE>Preconditions.checkNotNull(defaultPath, "defaultPath");<NEW_LINE>Preconditions.checkNotNull(...
(Header.TARGET_PATH, path));
1,808,116
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = null;<NEW_LINE...
CacheManager.get(cache, cacheKey);
1,304,528
protected void moveAbsoluteImmediate(Vector3f position, float yaw, float pitch, float headYaw, boolean isOnGround, boolean teleported) {<NEW_LINE>boundingBox.<MASK><NEW_LINE>boundingBox.setMiddleY(position.getY() + boundingBox.getSizeY() / 2);<NEW_LINE>boundingBox.setMiddleZ(position.getZ());<NEW_LINE>boolean touchingW...
setMiddleX(position.getX());
1,245,032
public void delete(List<Contentlet> contentlets, User user, boolean respectFrontendRoles, boolean allVersions) throws DotDataException, DotSecurityException {<NEW_LINE>for (Contentlet con : contentlets) {<NEW_LINE>if (con.getInode().equals("")) {<NEW_LINE>throw new DotContentletStateException(CAN_T_CHANGE_STATE_OF_CHEC...
byContentType(con.getStructure());
58,170
protected String doIt() throws Exception {<NEW_LINE>final I_AD_EventLog_Entry <MASK><NEW_LINE>final I_AD_EventLog eventLogRecord = eventLogEntryRecord.getAD_EventLog();<NEW_LINE>final Topic topic = Topic.builder().name(eventLogRecord.getEventTopicName()).type(Type.valueOf(eventLogRecord.getEventTypeName())).build();<NE...
eventLogEntryRecord = getRecord(I_AD_EventLog_Entry.class);
1,000,330
private static Object fixLogArg(Object arg) {<NEW_LINE>if (arg instanceof String) {<NEW_LINE>return "'" + arg + "'";<NEW_LINE>}<NEW_LINE>if (arg instanceof Buffer) {<NEW_LINE>Buffer b = (Buffer) arg;<NEW_LINE>return "Buffer{" + asString(b.data, 0, (int) b.length) + "}";<NEW_LINE>}<NEW_LINE>if (arg instanceof Timeval) {...
((long[]) arg);
288,983
public void update(long contentId, Long userId, List<CmsContentFile> files, List<CmsContentFile> images) {<NEW_LINE>Set<Long> <MASK><NEW_LINE>if (CommonUtils.notEmpty(images)) {<NEW_LINE>for (CmsContentFile entity : images) {<NEW_LINE>entity.setFileType(CmsFileUtils.getFileType(CmsFileUtils.getSuffix(entity.getFilePath...
idList = new HashSet<>();