idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
394,129
private List iterateAndReturnNative(final ResultSet rSet) {<NEW_LINE>final Iterator<Row> rowIter = rSet.iterator();<NEW_LINE>final List results = new ArrayList();<NEW_LINE>final List item = new ArrayList<>();<NEW_LINE>final boolean isSingle = (rSet.getColumnDefinitions().size() == 1);<NEW_LINE>while (rowIter.hasNext())...
ColumnDefinitions columnDefs = row.getColumnDefinitions();
782,398
private void initialize() {<NEW_LINE>SyntaxElement currentTag = null;<NEW_LINE>DocumentContext documentContext = DocumentContext.create(baseDocument, offset);<NEW_LINE>if (documentContext == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>declaredNamespaces = documentContext.getDeclaredNamespacesMap();<NEW_LINE>Token<XMLT...
beanTagOffset = documentContext.getNodeOffset(beanTag);
1,826,372
public ExecutionEntity createSubprocessInstance(ProcessDefinition processDefinition, ExecutionEntity superExecutionEntity, String businessKey, String activityId) {<NEW_LINE>ExecutionEntity subProcessInstance = dataManager.create();<NEW_LINE>inheritCommonProperties(superExecutionEntity, subProcessInstance);<NEW_LINE>sub...
String authenticatedUserId = Authentication.getAuthenticatedUserId();
1,369,609
public void dgeqrf(int M, int N, INDArray A, INDArray R, INDArray INFO) {<NEW_LINE>INDArray tau = Nd4j.create(DataType.DOUBLE, N);<NEW_LINE>int status = nativeOps.callInt("LAPACKE_dgeqrf", getColumnOrder(A), M, N, (DoublePointer) A.data().addressPointer(), getLda(A), (DoublePointer) tau.data().addressPointer());<NEW_LI...
NDArrayIndex.interval(0, i);
596,273
// @Override<NEW_LINE>// public IQueryBuilder<I_C_Invoice_Candidate> retrieveInvoiceCandidatesForInventoryLineQuery(final I_M_InventoryLine inventoryLine)<NEW_LINE>// {<NEW_LINE>// final Properties ctx = InterfaceWrapperHelper.getCtx(inventoryLine);<NEW_LINE>// final int adTableId = InterfaceWrapperHelper.getTableId(I_...
prepareStatement(sql, ITrx.TRXNAME_ThreadInherited);
642,725
public void initDefaultHandlers() {<NEW_LINE>if (stateHandlers.isEmpty()) {<NEW_LINE>stateHandlers.put(DomainConstants<MASK><NEW_LINE>stateHandlers.put(DomainConstants.STATE_TYPE_SCRIPT_TASK, new ScriptTaskStateHandler());<NEW_LINE>stateHandlers.put(DomainConstants.STATE_TYPE_SUB_MACHINE_COMPENSATION, new ServiceTaskSt...
.STATE_TYPE_SERVICE_TASK, new ServiceTaskStateHandler());
425,377
public Void call(GetMasterRegistrationResponse r) throws Exception {<NEW_LINE>MasterClientOuterClass.TabletLocationsPB.ReplicaPB.Builder replicaBuilder = MasterClientOuterClass.TabletLocationsPB.ReplicaPB.newBuilder();<NEW_LINE>MasterClientOuterClass.TSInfoPB.Builder tsInfoBuilder = MasterClientOuterClass.TSInfoPB.newB...
= MasterClientOuterClass.TabletLocationsPB.newBuilder();
1,587,196
/*<NEW_LINE>* show a list of posts in a specific blog or feed<NEW_LINE>*/<NEW_LINE>public static void showReaderBlogOrFeedPreview(Context context, long siteId, long feedId, @Nullable Boolean isFollowed, String source, ReaderTracker readerTracker) {<NEW_LINE>if (siteId == 0 && feedId == 0) {<NEW_LINE>return;<NEW_LINE>}<...
putExtra(ReaderConstants.ARG_FEED_ID, feedId);
453,410
private String parse(String versionString) {<NEW_LINE>components[0] = components[1] = components[2] = 0;<NEW_LINE>int len = versionString == null ? 0 : versionString.length();<NEW_LINE>// Skip leading characters that are not digits to support a<NEW_LINE>// non-numeric prefix on a version string.<NEW_LINE>int index = 0;...
versionString.substring(index) : null;
329,164
byte[] createSessionSecret(byte[] serverResponse) throws GeneralSecurityException, SQLServerException {<NEW_LINE>if (serverResponse == null || serverResponse.length != ENCLAVE_LENGTH) {<NEW_LINE>SQLServerException.makeFromDriverError(null, this, SQLServerResource.getResource("R_MalformedECDHPublicKey"), "0", false);<NE...
.generatePublic(keySpec), true);
937,288
public void release(long credits) {<NEW_LINE>Preconditions.checkArgument(credits >= 0, "credits must be a non-negative number.");<NEW_LINE>synchronized (this.queue) {<NEW_LINE>Exceptions.checkNotClosed(this.closed, this);<NEW_LINE>this.usedCredits = Math.max(0, this.usedCredits - credits);<NEW_LINE>log.trace("AsyncSema...
this.queue.size());
560,192
public static DescribeRestoreJobs2Response unmarshall(DescribeRestoreJobs2Response describeRestoreJobs2Response, UnmarshallerContext _ctx) {<NEW_LINE>describeRestoreJobs2Response.setRequestId(_ctx.stringValue("DescribeRestoreJobs2Response.RequestId"));<NEW_LINE>describeRestoreJobs2Response.setSuccess(_ctx.booleanValue(...
("DescribeRestoreJobs2Response.RestoreJobs[" + i + "].BytesDone"));
995,331
final DeleteResourceResult executeDeleteResource(DeleteResourceRequest deleteResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
endClientExecution(awsRequestMetrics, request, response);
1,269,652
public com.amazonaws.services.simplesystemsmanagement.model.InvalidCommandIdException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simplesystemsmanagement.model.InvalidCommandIdException invalidCommandIdException = new com.amazonaws.services.simplesystemsmana...
int originalDepth = context.getCurrentDepth();
1,565,306
protected Optional<StockMove> createStockMove(SaleOrder saleOrder, LocalDate estimatedDeliveryDate, List<SaleOrderLine> saleOrderLineList) throws AxelorException {<NEW_LINE>StockMove stockMove = this.createStockMove(saleOrder, saleOrder.getCompany(), estimatedDeliveryDate);<NEW_LINE>stockMove.setDeliveryCondition(saleO...
qty = saleOrderLineServiceSupplyChain.computeUndeliveredQty(saleOrderLine);
441,964
public void accept(CSVRecord theRecord) {<NEW_LINE>String code = trim(theRecord.get("LOINC_NUM"));<NEW_LINE>if (isNotBlank(code)) {<NEW_LINE>String longCommonName = trim<MASK><NEW_LINE>String shortName = trim(theRecord.get("SHORTNAME"));<NEW_LINE>String consumerName = trim(theRecord.get("CONSUMER_NAME"));<NEW_LINE>Stri...
(theRecord.get("LONG_COMMON_NAME"));
1,276,856
private void generateDefaultLocale(String path, GwtLocale locale, Map<String, String> namesMap, List<String> regionCodesWithNames, String[] sortOrder, String[] likelyOrder) throws IOException {<NEW_LINE>PrintWriter pw = null;<NEW_LINE>try {<NEW_LINE>pw = createOutputFile(path);<NEW_LINE>printHeader(pw);<NEW_LINE>pw.pri...
+ quote(name) + "\");");
866,738
public void handleEvent(@NonNull final PurchaseCandidateAdvisedEvent event) {<NEW_LINE>final SupplyRequiredDescriptor supplyRequiredDescriptor = event.getSupplyRequiredDescriptor();<NEW_LINE>final DemandDetail demandDetail = DemandDetail.forSupplyRequiredDescriptorOrNull(supplyRequiredDescriptor);<NEW_LINE>final Materi...
existingCandidate = candidateRepositoryRetrieval.retrieveLatestMatchOrNull(supplyCandidateQuery);
282,333
// ----------------<NEW_LINE>private void createInPlaceField() {<NEW_LINE>if (editedComp instanceof JLabel) {<NEW_LINE>JLabel label = (JLabel) editedComp;<NEW_LINE>inPlaceField = new InPlaceTextField(editedText);<NEW_LINE>inPlaceField.setFont(label.getFont());<NEW_LINE>inPlaceField.setHorizontalAlignment(label.getHoriz...
Insets insets = inPlaceField.getInsets();
607,404
public static void main(final String[] args) throws IOException {<NEW_LINE>final String base = "/home/fwilhelm/Workspace/Development/Projects/" + "Jenetics/jenetics.tool/src/main/resources/io/jenetics/tool/constraint";<NEW_LINE>final Path data = Paths.get(base, "circle_points_encoding.dat");<NEW_LINE>final Path output ...
gnuplot.create(data, output);
1,767,632
public Export unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>Export export = new Export();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>while (true) {<NEW_LINE>XMLEvent xmlEvent = context.nextEvent();...
int originalDepth = context.getCurrentDepth();
1,355,216
private void loadNode1249() {<NEW_LINE>SessionSecurityDiagnosticsTypeNode node = new SessionSecurityDiagnosticsTypeNode(this.context, Identifiers.SessionsDiagnosticsSummaryType_ClientName_Placeholder_SessionSecurityDiagnostics, new QualifiedName(0, "SessionSecurityDiagnostics"), new LocalizedText("en", "SessionSecurity...
.expanded(), true));
1,814,056
public Vector filter(double threshold) {<NEW_LINE>IntDoubleSparseVectorStorage newStorage = new IntDoubleSparseVectorStorage(size());<NEW_LINE>if (storage.isDense()) {<NEW_LINE>double[] values = ((IntDoubleVectorStorage) storage).getValues();<NEW_LINE>for (int i = 0; i < values.length; i++) {<NEW_LINE>if (Math.abs(valu...
(i, values[i]);
1,170,319
private Submission loadBaseCodeViaName(String baseCodeName, File rootDirectory, Map<File, Submission> foundSubmissions) throws ExitException {<NEW_LINE>// Is the option value a single name after trimming spurious separators?<NEW_LINE>String name = baseCodeName;<NEW_LINE>while (name.startsWith(File.separator)) {<NEW_LIN...
name = name.substring(1);
1,756,943
private void inflateRoutingParameter(final LocalRoutingParameter parameter) {<NEW_LINE>if (parameter != null) {<NEW_LINE>final BottomSheetItemWithCompoundButton[] item = new BottomSheetItemWithCompoundButton[1];<NEW_LINE>BottomSheetItemWithCompoundButton.Builder builder = new BottomSheetItemWithCompoundButton.Builder()...
0] = builder.create();
1,783,716
private JCMethodDecl generateAbstractBuildMethod(SuperBuilderJob job, boolean override, String classGenericName) {<NEW_LINE>JavacTreeMaker maker = job.getTreeMaker();<NEW_LINE>List<JCAnnotation> annotations = List.nil();<NEW_LINE>if (override) {<NEW_LINE>JCAnnotation overrideAnnotation = maker.Annotation(genJavaLangTyp...
nil(), null, null);
886,282
private static Row residualRow(Row row, int numFeature, FamilyLink familyLink, double[] coefficients, double intercept) {<NEW_LINE>double[] features = new double[numFeature];<NEW_LINE>for (int i = 0; i < numFeature; i++) {<NEW_LINE>features[i] = ((Number) row.getField(i)).doubleValue();<NEW_LINE>}<NEW_LINE>double label...
outRow.setField(numRow, pred);
862,581
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create table MyTable(pkey string primary key, col0 int)", path);<NEW_LINE>env.compileDeploy("insert into MyTable select theString as pkey, intPrimitive as col0 from SupportBean", path);<...
sendEventBean(new SupportBean_S0(0));
613,410
private static void firstGraphFromSlides() {<NEW_LINE>int n = 7;<NEW_LINE>List<List<Edge>> g = createEmptyGraph(n);<NEW_LINE>addUndirectedEdge(g, 0, 1, 9);<NEW_LINE>addUndirectedEdge(g, 0, 2, 0);<NEW_LINE>addUndirectedEdge(g, 0, 3, 5);<NEW_LINE>addUndirectedEdge(g, 0, 5, 7);<NEW_LINE>addUndirectedEdge(g, 1, 3, -2);<NEW...
LazyPrimsAdjacencyList solver = new LazyPrimsAdjacencyList(g);
1,701,205
//<NEW_LINE>// We mark this resource as hidden from a swagger point of view and create another one with a different Path below<NEW_LINE>// to hack around the restrictions of having only one type of HTTP verb per Path<NEW_LINE>// see https://github.com/killbill/killbill/issues/913<NEW_LINE>//<NEW_LINE>@TimedResource<NEW...
overdueApi.uploadOverdueConfig(overdueXML, callContext);
1,550,341
public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = <MASK><NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'."...
Utils.getValueFromIdByName(id, "resourceGroups");
1,577,368
private void parsePaths(JsonObject json) {<NEW_LINE>String runfilesPrefix = null;<NEW_LINE>List<String> alternativePrefixes = new ArrayList<>();<NEW_LINE>VirtualFile base = baseUrlFile.getValue();<NEW_LINE>if (base != null) {<NEW_LINE>Path baseUrlPath = VfsUtil.virtualToIoFile(base).toPath();<NEW_LINE>BuildSystemName b...
fromProject(project).directory();
776,388
public static double[] arrayResize(double[] source, int targetSize) {<NEW_LINE>if (source.length == targetSize) {<NEW_LINE>return source;<NEW_LINE>}<NEW_LINE>int sourceSize = source.length;<NEW_LINE>double fraction = (double) <MASK><NEW_LINE>double[] newSignal = new double[targetSize];<NEW_LINE>for (int i = 0; i < targ...
source.length / (double) targetSize;
1,814,747
protected void encodeInput(FacesContext context, SelectBooleanCheckbox checkbox, String clientId, boolean checked) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String inputId = clientId + "_input";<NEW_LINE>String ariaLabel = checkbox.getAriaLabel() != null ? checkbox.getA...
writeAttribute("class", "ui-helper-hidden-accessible", null);
106,446
public Request<CreateJobRequest> marshall(CreateJobRequest createJobRequest) {<NEW_LINE>if (createJobRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<CreateJobRequest> request = new DefaultRequest<CreateJobRequest>(createJobRequest, "Amazo...
(createJobRequest.getJobType()));
115,459
private void onQueryPurchasesFinished(PurchasesResult result) {<NEW_LINE>logDebug("onQueryPurchasesFinished, succeed? " + (result.getResponseCode() == BillingResponseCode.OK));<NEW_LINE>// Have we been disposed of in the meantime? If so, or bad result code, then quit<NEW_LINE>if (mBillingClient == null || result.getRes...
handlePurchaseList(result.getPurchasesList());
1,315,967
protected void doCreateProject(final IProject project, final IProjectDescription desc, IProgressMonitor monitor) throws CoreException {<NEW_LINE>try {<NEW_LINE>// Turn off auto-attaching git temporarily here!<NEW_LINE>boolean autoAttach = Platform.getPreferencesService().getBoolean(GitPlugin.getPluginId(), <MASK><NEW_L...
IPreferenceConstants.AUTO_ATTACH_REPOS, true, null);
1,380,660
protected int usePower(int wantToUse) {<NEW_LINE>int res = super.usePower(wantToUse);<NEW_LINE>if (currentTask != null && currentTask.getBonusType().useBalls()) {<NEW_LINE>boolean sendGB = false;<NEW_LINE>if (grindingBall != null) {<NEW_LINE>grindingBallDurabilityUsed += res;<NEW_LINE>if (grindingBallDurabilityUsed >= ...
getInstance().getGrindballFromStack(ballInSlot);
1,415,632
// retrieveApplicationExitDiagnostics to prepare completeApplication<NEW_LINE>private void retrieveApplicationExitDiagnostics(String applicationId, Integer exitCode, String exitDiagnostics, boolean needToKill) throws Exception {<NEW_LINE>if (needToKill) {<NEW_LINE>HadoopUtils.killApplication(applicationId);<NEW_LINE>}<...
String frameworkName = frameworkStatus.getFrameworkName();
851,472
private void generateBinary(WasmIntBinaryOperation intOp, WasmFloatBinaryOperation floatOp, BinaryExpr expr) {<NEW_LINE>accept(expr.getFirstOperand());<NEW_LINE>WasmExpression first = result;<NEW_LINE>accept(expr.getSecondOperand());<NEW_LINE>WasmExpression second = result;<NEW_LINE>if (expr.getType() == null) {<NEW_LI...
INT64, intOp, first, second);
1,618,193
public void LAPACK_zhbevx_2stage(String arg0, String arg1, String arg2, IntBuffer arg3, IntBuffer arg4, DoubleBuffer arg5, IntBuffer arg6, DoubleBuffer arg7, IntBuffer arg8, DoubleBuffer arg9, DoubleBuffer arg10, IntBuffer arg11, IntBuffer arg12, DoubleBuffer arg13, IntBuffer arg14, DoubleBuffer arg15, DoubleBuffer arg...
arg20, arg21, arg22, arg23);
687,330
public void run(@Nonnull ProgressIndicator indicator) {<NEW_LINE>writeState();<NEW_LINE>DaemonCodeAnalyzer.getInstance(getProject()).restart();<NEW_LINE>try {<NEW_LINE>SAXTransformerFactory transformerFactory = (SAXTransformerFactory) TransformerFactory.newInstance();<NEW_LINE>TransformerHandler handler = transformerFa...
setOutputProperty(OutputKeys.INDENT, "yes");
1,761,099
Iterator<Entry<V, K>> entryIterator() {<NEW_LINE>return new Itr<Entry<V, K>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>Entry<V, K> output(BiEntry<K, V> entry) {<NEW_LINE>return new InverseEntry(entry);<NEW_LINE>}<NEW_LINE><NEW_LINE>class InverseEntry extends AbstractMapEntry<V, K> {<NEW_LINE><NEW_LINE>BiEntry<K, V> del...
) == null, "value already present: %s", key);
836,490
final ListClustersV2Result executeListClustersV2(ListClustersV2Request listClustersV2Request) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listClustersV2Request);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
17,836
public void onViewCreated(View root, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(root, savedInstanceState);<NEW_LINE>Context context = getContext();<NEW_LINE>ButterKnife.bind(this, root);<NEW_LINE>_appSettings = new <MASK><NEW_LINE>_contextUtils = new ContextUtils(root.getContext());<NEW_LINE>_s...
AppSettings(root.getContext());
780,777
public Expression unaryExpression() {<NEW_LINE>Expression expr = null;<NEW_LINE>switch(la()) {<NEW_LINE>case DELETE:<NEW_LINE>consume();<NEW_LINE>expr = unaryExpression();<NEW_LINE>if (currentContext().isStrict()) {<NEW_LINE>if (expr instanceof IdentifierReferenceExpression) {<NEW_LINE>throw new ThrowException(null, th...
.compilationContext.createSyntaxError("cannot delete a direct reference in strict-mode"));
1,015,677
private static Map<String, List<Service>> parseServices(TruffleLanguage.Env env) {<NEW_LINE>TruffleFile services_file = env.getPublicTruffleFile("/etc/services");<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>String line;<NEW_LINE>Map<String, List<Service>> parsedServices = new HashMap<>();<NEW_LINE>while ((line = br.readLin...
BufferedReader br = services_file.newBufferedReader();
328,322
public void refresh() {<NEW_LINE>ExUtil.exec(table, new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>}<NEW_LINE>});<NEW_LINE>long now = TimeUtil.getCurrentTime(serverId);<NEW_LINE><MASK><NEW_LINE>stime = now - TIME_RANGE;<NEW_LINE>etime = now;<NEW_LINE>if (isDefaultView) {<NEW_LINE>checkDBList();<NEW_LI...
date = DateUtil.yyyymmdd(now);
1,481,950
public String toDebugStringTree() {<NEW_LINE>// We are recursively going through scopes from global to nested and need to build parent =><NEW_LINE>// children map as it doesn't exist at the moment.<NEW_LINE>ImmutableListMultimap.Builder<SymbolScope, SymbolScope> childrenScopesBuilder = ImmutableListMultimap.builder();<...
HashSet<>(getAllScopes());
531,708
private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String instancePoolName, InstancePoolInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is r...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
58,387
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>log.info("From " + request.getRemoteHost() + <MASK><NEW_LINE>// Log.setTraceLevel(9);<NEW_LINE>// WebEnv.dump(request);<NEW_LINE>// WebEnv.dump(request.getSession());<NEW_LINE>// Get Session attr...
" - " + request.getRemoteAddr());
598,418
final SendBounceResult executeSendBounce(SendBounceRequest sendBounceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(sendBounceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
640,303
private void executeScan(final Project project, final ScanScope scope, final ToolWindow toolWindow) {<NEW_LINE>try {<NEW_LINE>setProgressText(toolWindow, "plugin.status.in-progress.project");<NEW_LINE>Runnable scanAction = null;<NEW_LINE>if (scope == ScanScope.Everything) {<NEW_LINE>scanAction = new ScanAllFilesInProje...
] sourceRoots = projectRootManager.getContentSourceRoots();
646,490
public static MPSStreamIndex parseIndex(ByteBuffer index) {<NEW_LINE>int streamId = index.get() & 0xff;<NEW_LINE>int fCnt = index.getInt();<NEW_LINE>int[] fsizes = new int[fCnt];<NEW_LINE>for (int i = 0; i < fCnt; i++) {<NEW_LINE>fsizes[i] = index.getInt();<NEW_LINE>}<NEW_LINE>int fptsCnt = index.getInt();<NEW_LINE>int...
i] = index.getInt();
1,429,749
private void parse(String[] args) {<NEW_LINE>ArgumentsParser parser = new ArgumentsParser(args);<NEW_LINE>parseFlags(parser);<NEW_LINE>fileNames = parser.getRemaining();<NEW_LINE>if (inputList != null && !inputList.isEmpty()) {<NEW_LINE>// append the file names to the end of the input list<NEW_LINE>inputList.addAll(Arr...
[inputList.size()]);
529,575
public void onBindViewHolder(LocationsViewHolder holder, int position) {<NEW_LINE>Typeface weatherFont = Typeface.createFromAsset(context.getAssets(), "fonts/weather.ttf");<NEW_LINE>Weather weather = weatherArrayList.get(position);<NEW_LINE>holder.cityTextView.setText(String.format("%s, %s", weather.getCity(), weather....
) + "&zoom=" + 10 + "&appid=notneeded&displayPin=true");
952,785
public void logoutUser() throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/user/logout";<NEW_LINE>// query params<NEW_LINE>List<Pair> queryParams = new ArrayList<Pair>();<NEW_LINE>// heade...
HashMap<String, String>();
1,739,026
private Query createQuery(@Nullable QueryModifiers modifiers, boolean forCount) {<NEW_LINE>JPQLSerializer serializer = serialize(forCount);<NEW_LINE>String queryString = serializer.toString();<NEW_LINE>logQuery(queryString);<NEW_LINE>Query query = session.createQuery(queryString);<NEW_LINE>HibernateUtil.setConstants(qu...
FactoryExpression<?>) projection));
1,122,022
public static SparkSession createSparkSession(final StoreProperties storeProperties) {<NEW_LINE>SparkSession.Builder builder = SparkSession.builder().appName(storeProperties.get(SparkConstants.APP_NAME, SparkConstants.DEFAULT_APP_NAME));<NEW_LINE>if (Boolean.parseBoolean(storeProperties.get(SparkConstants.USE_SPARK_DEF...
builder : builder.master(sparkMaster);
196,478
public Object visit(ASTLiteral node, Object data) {<NEW_LINE>ASTBlockStatement bs = node.getFirstParentOfType(ASTBlockStatement.class);<NEW_LINE>if (bs == null) {<NEW_LINE>return data;<NEW_LINE>}<NEW_LINE>if (node.isSingleCharacterStringLiteral()) {<NEW_LINE>if (!InefficientStringBufferingRule.isInStringBufferOperation...
ASTPrimaryExpression) node.getNthParent(2);
951,219
public Future<Integer> start(int port, KarmaRunInfo karmaRunInfo) {<NEW_LINE>final <MASK><NEW_LINE>Runnable countDownTask = new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>countDownLatch.countDown();<NEW_LINE>}<NEW_LINE>};<NEW_LINE>Future<Integer> task = getExecutable(Bundle.KarmaExe...
CountDownLatch countDownLatch = new CountDownLatch(1);
301,616
private static <T> String describeChanges(Collection<T> oldObjs, Collection<T> newObjs, ObjectDescriber<T> describer) {<NEW_LINE>final Set<String> oldDescs = new HashSet<>();<NEW_LINE>final List<String> addedDescs = new ArrayList<>();<NEW_LINE>for (T oldObj : oldObjs) {<NEW_LINE>oldDescs.add(describer != null ? describ...
(removedDescs).append("}");
748,322
private void updateEditorTexts(final MethodNodeBase<M> node) {<NEW_LINE>final MethodNodeBase<M> parentNode = (MethodNodeBase) node.getParent();<NEW_LINE>final String callerText = node != myRoot ? getText(node.getMethod()) : "";<NEW_LINE>final <MASK><NEW_LINE>final String calleeText = node != myRoot ? getText(parentNode...
Document callerDocument = myCallerEditor.getDocument();
1,319,815
private long applyOpenSession(Indexed<OpenSessionEntry> entry) {<NEW_LINE>PrimitiveType primitiveType = raft.getPrimitiveTypes().getPrimitiveType(entry.entry().serviceType());<NEW_LINE>// Get the state machine executor or create one if it doesn't already exist.<NEW_LINE>RaftServiceContext service = getOrInitializeServi...
).timestamp(), session);
391,595
public static DescribeDcdnUserRealTimeDeliveryFieldResponse unmarshall(DescribeDcdnUserRealTimeDeliveryFieldResponse describeDcdnUserRealTimeDeliveryFieldResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnUserRealTimeDeliveryFieldResponse.setRequestId(_ctx.stringValue("DescribeDcdnUserRealTimeDeliveryFieldRespo...
("DescribeDcdnUserRealTimeDeliveryFieldResponse.Content[" + i + "].Description"));
527,787
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>Uri data = getIntent().getData();<NEW_LINE>Map<String, Object> map = new HashMap<>();<NEW_LINE>map.put("URL", data.toString());<NEW_LINE>MainActivity.<MASK><NEW_LINE>// Now that all data has been sent back to Dart...
channel.invokeMethod("onURL", map);
561,614
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>ListPreference listPreference = (ListPreference) findPreference(getText(R.string.settings_key_layout_for_internet_fields));<NEW_LINE>List<KeyboardAddOnAndBuilder> enabledKeyboards...
1] = builder.getId();
1,256,266
protected void onStart() {<NEW_LINE>super.onStart();<NEW_LINE>ntlmState.domain = targetDomain;<NEW_LINE>ntlmState.user = user;<NEW_LINE>ntlmState.password = password;<NEW_LINE>ntlmState.workstation = workstation;<NEW_LINE>ntlmState.generateServicePrincipalName(serverHostName);<NEW_LINE>ntlmState.ntlm_construct_authenti...
TSRequest tsRequest = new TSRequest("TSRequest");
1,766,650
private void addTemporalGlobals() {<NEW_LINE>assert context.isOptionTemporal();<NEW_LINE>JSObject temporalObject = JSOrdinary.createInit(this);<NEW_LINE>JSObjectUtil.putToStringTag(temporalObject, TemporalConstants.TEMPORAL);<NEW_LINE>int flags = JSAttributes.configurableNotEnumerableWritable();<NEW_LINE>JSObjectUtil.p...
GLOBAL_ZONED_DATE_TIME, getTemporalZonedDateTimeConstructor(), flags);
1,285,565
public void recoverExchange(RecordedExchange x, boolean retry) {<NEW_LINE>// recorded exchanges are guaranteed to be non-predefined (we filter out predefined ones in exchangeDeclare). MK.<NEW_LINE>try {<NEW_LINE>if (topologyRecoveryFilter.filterExchange(x)) {<NEW_LINE>if (retry) {<NEW_LINE>final RecordedExchange entity...
+ ": " + cause.getMessage();
1,849,830
public static void main(String[] args) throws InterruptedException {<NEW_LINE>String curProtocol = System.getProperty("dubbo.current.protocol", CommonConstants.DUBBO);<NEW_LINE>String zookeeperAddress = System.getProperty("zookeeper.address", "127.0.0.1");<NEW_LINE>new EmbeddedZooKeeper(2181, false).start();<NEW_LINE>S...
DubboBootstrap bootstrap = DubboBootstrap.getInstance();
1,837,312
public void actionPerformed(ActionEvent arg0) {<NEW_LINE>UiUtils.submitUiMachineTask(() -> {<NEW_LINE>if (!(Configuration.get().getMachine().isEnabled())) {<NEW_LINE>throw new Exception("Start machine first.");<NEW_LINE>}<NEW_LINE>if (feeder.getClearCountActuatorName() == null || feeder.getClearCountActuatorName().equa...
"Failed, unable to find an actuator named " + feeder.getClearCountActuatorName());
4,371
public final void emit(AMD64Assembler asm, OperandSize size, Register dst, AMD64Address src) {<NEW_LINE>assert verify(asm, size, dst, null);<NEW_LINE>if (isSSEInstruction()) {<NEW_LINE>Register nds = Register.None;<NEW_LINE>switch(op) {<NEW_LINE>case 0x51:<NEW_LINE>if ((size == SS) || (size == SD)) {<NEW_LINE>nds = dst...
emitOperandHelper(dst, src, 0);
605,811
public static void buildBroadcastShardsHeader(XContentBuilder builder, Params params, int total, int successful, int skipped, int failed, ShardOperationFailedException[] shardFailures) throws IOException {<NEW_LINE>builder.startObject(_SHARDS_FIELD.getPreferredName());<NEW_LINE>builder.field(TOTAL_FIELD.getPreferredNam...
FAILED_FIELD.getPreferredName(), failed);
936,037
public boolean removeInterval(int from, int to, ICause cause) throws ContradictionException {<NEW_LINE>assert cause != null;<NEW_LINE>if (from <= getLB())<NEW_LINE>return updateLowerBound(to + 1, cause);<NEW_LINE>else if (getUB() <= to)<NEW_LINE>return updateUpperBound(from - 1, cause);<NEW_LINE>else {<NEW_LINE>boolean...
notifyPropagators(IntEventType.REMOVE, cause);
1,483,221
private Mono<Response<RemediationInner>> deleteAtManagementGroupWithResponseAsync(String managementGroupId, String remediationName, 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 ...
remediationName, apiVersion, accept, context);
1,621,769
void initializeCompactorGauges(String storeId, final AtomicBoolean compactionInProgress, AtomicReference<CompactionDetails> compactionDetailsAtomicReference, AtomicInteger compactedLogCount, AtomicInteger logSegmentCount) {<NEW_LINE>String prefix = storeId + SEPARATOR;<NEW_LINE>Gauge<Long> compactionInProgressGauge = (...
, prefix + "CompactionCost"), compactionCost);
1,498,855
private void loadNode68() {<NEW_LINE>UaMethodNode node = new UaMethodNode(this.context, Identifiers.CertificateGroupFolderType_DefaultHttpsGroup_TrustList_Read, new QualifiedName(0, "Read"), new LocalizedText("en", "Read"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), true, true);<NEW_LINE>node.a...
.expanded(), false));
485,136
public void resolve(BlockScope scope, boolean warn, boolean considerParamRefAsUsage) {<NEW_LINE>LocalVariableBinding variableBinding = scope.findVariable(this.token);<NEW_LINE>if (variableBinding != null && variableBinding.isValidBinding() && ((variableBinding.tagBits & TagBits.IsArgument) != 0)) {<NEW_LINE>this.bindin...
methScope.referenceMethod().modifiers);
406,144
private void decodeHeader(BufferedReader in, Properties pre, Properties parms, Properties header) throws InterruptedException {<NEW_LINE>try {<NEW_LINE>// Read the request line<NEW_LINE>String inLine = in.readLine();<NEW_LINE>if (inLine == null)<NEW_LINE>return;<NEW_LINE>StringTokenizer st = new StringTokenizer(inLine)...
String method = st.nextToken();
1,249,049
private boolean internalDisableNotifications(@Nullable final BluetoothGattCharacteristic characteristic) {<NEW_LINE>final BluetoothGatt gatt = bluetoothGatt;<NEW_LINE>if (gatt == null || characteristic == null || !connected)<NEW_LINE>return false;<NEW_LINE>final BluetoothGattDescriptor descriptor = getCccd(characterist...
"Disabling notifications and indications for " + characteristic.getUuid());
227,409
public MasterBenchTaskResult runLocal() throws Exception {<NEW_LINE>ExecutorService service = ExecutorServiceFactories.fixedThreadPool("maxfile-bench-thread", mParameters.mThreads).create();<NEW_LINE>List<Callable<Void>> callables = new ArrayList<>(mParameters.mThreads);<NEW_LINE>for (int i = 0; i < mParameters.mThread...
long startMs = CommonUtils.getCurrentMs();
618,370
private void mapReferences(@NonNull final EDICctopInvoicVType invoice, @NonNull final HEADERXrech headerXrech, @NonNull final String dateFormat, @NonNull final InvoicSettings settings) {<NEW_LINE>final HREFE1 buyerOrderRef = INVOIC_objectFactory.createHREFE1();<NEW_LINE>buyerOrderRef.setDOCUMENTID(headerXrech.getDOCUME...
getHREFE1().add(sellerOrderRef);
1,137,173
final AssociateCustomDomainResult executeAssociateCustomDomain(AssociateCustomDomainRequest associateCustomDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateCustomDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
false), new AssociateCustomDomainResultJsonUnmarshaller());
1,029,249
public void onCreate(Bundle savedInstance) {<NEW_LINE>overrideRedditSwipeAnywhere();<NEW_LINE>super.onCreate(savedInstance);<NEW_LINE>applyColorTheme();<NEW_LINE>setContentView(R.layout.activity_filtercomments);<NEW_LINE>final EditText search = (EditText) findViewById(R.id.search);<NEW_LINE>RecyclerView rv = (RecyclerV...
findViewById(R.id.vertical_content);
1,639,444
protected StringBuilder runInServlet(LibertyServer server, String queryString) throws Exception {<NEW_LINE>URL url = new URL("http://" + server.getHostname() + ":" + server.getHttpDefaultPort() + "/multiServer?" + queryString);<NEW_LINE>Log.info(getClass(), "runInServlet", "URL is " + url);<NEW_LINE>HttpURLConnection c...
getClass(), "runInServlet", line);
1,408,272
public void contextInitialized(ServletContextEvent sce) {<NEW_LINE>log.info("Single WAR core initializing, servlet context path: " + sce.getServletContext().getContextPath());<NEW_LINE>try {<NEW_LINE>ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();<NEW_LINE>// need to put the following c...
throw new RuntimeException("An error occurred while starting single WAR application", e);
896,088
private List<Work> list(EntityManagerContainer emc, String sequence) throws Exception {<NEW_LINE>EntityManager em = emc.get(Work.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = cb.createQuery(Tuple.class);<NEW_LINE>Root<Work> root = <MASK><NEW_LINE>Path<String> idPath =...
cq.from(Work.class);
1,178,713
protected com.liferay.portal.model.PortletPreferences[] findByL_U_PrevAndNext(PortletPreferencesPK portletPreferencesPK, String layoutId, String userId, OrderByComparator obc) throws NoSuchPortletPreferencesException, SystemException {<NEW_LINE>com.liferay.portal.model.PortletPreferences portletPreferences = findByPrim...
.setString(queryPos++, userId);
1,399,207
private void reportUnknown(final MethodCreator mc) {<NEW_LINE>mc.setModifiers(Opcodes.ACC_PRIVATE | Opcodes.ACC_STATIC);<NEW_LINE>ResultHandle unknownProperty = mc.getMethodParam(0);<NEW_LINE>// Ignore all build property names. This is to ignore any properties mapped with @ConfigMapping, because<NEW_LINE>// these do no...
invokeInterfaceMethod(CS_GET_VALUE, buildTimeRunTimeDefaultsSource, unknownProperty);
1,224,877
public static AbstractItemEntryFilter parse(@Nonnull String filter, @Nonnull Locale locale, @Nullable IItemFilter filterCard) {<NEW_LINE>ArrayList<AbstractItemEntryFilter> list = new ArrayList<AbstractItemEntryFilter>();<NEW_LINE>if (filterCard != null) {<NEW_LINE>list.add(new CardEntryFilter(filterCard));<NEW_LINE>}<N...
new NameEntryFilter(part, locale));
624,195
private boolean registerTomcat(File nbLocation, File tomcatLocation) throws IOException {<NEW_LINE>File javaExe = JavaUtils.getExecutable(new File(System.getProperty("java.home")));<NEW_LINE>String[] cp = { "platform/core/core.jar", "platform/core/core-base.jar", "platform/lib/boot.jar", "platform/lib/org-openide-modul...
add(nbCluster.getAbsolutePath());
1,672,585
Iterable<ResolvedFile> iterateFiles() {<NEW_LINE>// 1. Filter directory symlinks. If the symlink target contains files, those were added<NEW_LINE>// as normal files so their parent directory (the symlink) would show up in the dirs map<NEW_LINE>// (as a directory) as well as in the files map (as a symlink to a directory...
contains(input.getKey());
249,484
private void updatePlan(int slot) {<NEW_LINE>var req = this.config.getStack(slot);<NEW_LINE>var stored = this.storage.getStack(slot);<NEW_LINE>if (req == null && stored != null) {<NEW_LINE>this.plannedWork[slot] = new GenericStack(stored.what(), -stored.amount());<NEW_LINE>} else if (req != null) {<NEW_LINE>if (stored ...
this.plannedWork[slot] = null;
906,069
protected void appendProperties(DefaultFormBuilder builder) {<NEW_LINE>builder.append("Description");<NEW_LINE>builder.nextLine();<NEW_LINE>builder.append("");<NEW_LINE>builder.nextRow(-2);<NEW_LINE>CellConstraints cc = new CellConstraints();<NEW_LINE>JScrollPane scrollPane = new JScrollPane(_description);<NEW_LINE>bui...
(), 3, 3));
1,783,071
private void copyStage(MTreeNode node, String path) {<NEW_LINE>org.compiere.cm.CacheHandler thisHandler = new org.compiere.cm.CacheHandler(org.compiere.cm.CacheHandler.convertJNPURLToCacheURL(getCtx().getProperty("java.naming.provider.url")), log, getCtx(), get_TrxName());<NEW_LINE>Integer ID = new Integer(node.getNode...
cleanContainer(cc.get_ID());
1,577,803
public List<DataFetcherResult<CorpUser>> batchLoad(final List<String> urns, final QueryContext context) {<NEW_LINE>try {<NEW_LINE>final List<Urn> corpUserUrns = urns.stream().map(UrnUtils::getUrn).collect(Collectors.toList());<NEW_LINE>final Map<Urn, EntityResponse> corpUserMap = _entityClient.batchGetV2(CORP_USER_ENTI...
.getOrDefault(urn, null));
978,145
protected void execute() {<NEW_LINE>for (SallegraBindingProvider provider : providers) {<NEW_LINE>Collection<String> names = provider.getItemNames();<NEW_LINE>for (String name : names) {<NEW_LINE>logger.debug("Name {}", name);<NEW_LINE>SallegraBindingConfig bindingConfig = provider.getBindingConfigFor(name);<NEW_LINE>S...
getRelay(bindingConfig.getCmdValue());
1,535,104
private void onTabChangedIndex(int index, boolean byself) {<NEW_LINE>// Utils.platformLog("#$#$#$#$#$#$#$#$#$", "onTabChangedIndex( "+String.valueOf(index)+" )");<NEW_LINE>int new_tabIndex = index;<NEW_LINE>sel_col = 0;<NEW_LINE>sel_col_enable = false;<NEW_LINE>TabData data = tabData.elementAt(new_tabIndex);<NEW_LINE>i...
).setTitle(data.title);
340,421
private Position decodeObd(Channel channel, SocketAddress remoteAddress, String sentence) {<NEW_LINE>Parser parser = new Parser(PATTERN_OBD, sentence);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next());<NEW_L...
KEY_COOLANT_TEMP, parser.nextInt());