idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
955,191 | private void writeModelContent(final String string) throws IOException {<NEW_LINE>if (string.matches(" +")) {<NEW_LINE>writer.write(" ");<NEW_LINE>} else if (string.startsWith("<html")) {<NEW_LINE>String <MASK><NEW_LINE>int start = output.indexOf("<body");<NEW_LINE>if (start == -1) {<NEW_LINE>start = output.indexO... | output = string.substring(6); |
1,787,149 | public static void showSortDialog(final MainFragment m, AppTheme appTheme, final SharedPreferences sharedPref) {<NEW_LINE>final String path = m.getCurrentPath();<NEW_LINE>int accentColor = m.getMainActivity().getAccent();<NEW_LINE>String[] sort = m.getResources().getStringArray(R.array.sortby);<NEW_LINE>int current = S... | Builder(m.getActivity()); |
146,038 | private final BigDecimal retrieveQtyReceived(@NonNull final I_M_Material_Tracking materialTracking, @NonNull final I_M_Product product, @NonNull final I_C_UOM uomTo) {<NEW_LINE>// Services<NEW_LINE>final IUOMConversionBL uomConversionBL = Services.get(IUOMConversionBL.class);<NEW_LINE>final IMaterialTrackingDAO materia... | inoutLine, inoutLine.getMovementQty()); |
582,620 | public static void main(final String[] args) throws IOException {<NEW_LINE>final String base = "/home/fwilhelm/Workspace/Development/Projects/" + "Jenetics/jenetics.doc/src/main/resources/diagram";<NEW_LINE>final Path data = Paths.get(base, "dtlz1.dat");<NEW_LINE>final Path output = Paths.get(base, "dtlz1.svg");<NEW_LI... | ).map(Phenotype::fitness); |
524,977 | public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler masm) {<NEW_LINE>Register result = asRegister(resultValue);<NEW_LINE>Label trueLabel = new Label();<NEW_LINE>Label falseLabel = new Label();<NEW_LINE>Label done = new Label();<NEW_LINE>Register array1 = asRegister(array1Value);<NEW_LINE>Register arr... | , Scale.Times1, array1BaseOffset)); |
1,005,023 | boolean localize(QrCode.Alignment pattern, float guessY, float guessX) {<NEW_LINE>// sample along the middle. Try to not sample the outside edges which could confuse it<NEW_LINE>for (int i = 0; i < arrayY.length; i++) {<NEW_LINE>float x = guessX - 1.5f + i * 3f / 12.0f;<NEW_LINE>float y = guessY - 1.5f + i * 3f / 12.0f... | reader.read(guessY, x); |
1,654,889 | public static Stream<?> toStream(Object object) {<NEW_LINE>Preconditions.notNull(object, "Object must not be null");<NEW_LINE>if (object instanceof Stream) {<NEW_LINE>return (Stream<?>) object;<NEW_LINE>}<NEW_LINE>if (object instanceof DoubleStream) {<NEW_LINE>return ((DoubleStream) object).boxed();<NEW_LINE>}<NEW_LINE... | ((Object[]) object); |
1,411,929 | public void putLong(byte[] buffer, int byteOffset, long value) throws IndexOutOfBoundsException {<NEW_LINE>buffer[byteOffset + 0] = (byte) (value >> (Byte.SIZE * 7));<NEW_LINE>buffer[byteOffset + 1] = (byte) (value >> <MASK><NEW_LINE>buffer[byteOffset + 2] = (byte) (value >> (Byte.SIZE * 5));<NEW_LINE>buffer[byteOffset... | (Byte.SIZE * 6)); |
527,286 | public ConstructorDeclaration parseStatements(char[] source, int offset, int length, Map<String, String> settings, boolean recordParsingInformation, boolean enabledStatementRecovery) {<NEW_LINE>if (source == null) {<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>}<NEW_LINE>CompilerOptions compilerOptions = new... | (Locale.getDefault())); |
1,250,173 | public static QueryMaterialListResponse unmarshall(QueryMaterialListResponse queryMaterialListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryMaterialListResponse.setRequestId(_ctx.stringValue("QueryMaterialListResponse.RequestId"));<NEW_LINE>queryMaterialListResponse.setTotalItemNum(_ctx.integerValue("QueryMateria... | (_ctx.integerValue("QueryMaterialListResponse.PageSize")); |
657,411 | public static KeyPair loadKeyPairFromKeystore(String keystoreFile, String storePassword, String keyPassword, String keyAlias, KeystoreFormat format) {<NEW_LINE>InputStream stream = FindFile.findFile(keystoreFile);<NEW_LINE>try {<NEW_LINE>KeyStore keyStore = null;<NEW_LINE>if (format == KeystoreFormat.JKS) {<NEW_LINE>ke... | return new KeyPair(publicKey, privateKey); |
188,275 | public void actionPerformed(ActionEvent evt) {<NEW_LINE>// NOI18N<NEW_LINE>bOk = new JButton(NbBundle.getMessage(ConnectAction.class, "CTL_Ok"));<NEW_LINE>// NOI18N<NEW_LINE>bCancel = new JButton(NbBundle.getMessage(ConnectAction.class, "CTL_Cancel"));<NEW_LINE>// NOI18N<NEW_LINE>bOk.getAccessibleContext().setAccessibl... | [] { bOk, bCancel }); |
1,342,344 | public void marshall(ImportJobResponse importJobResponse, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (importJobResponse == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(importJobResponse.getApplicationI... | importJobResponse.getCreationDate(), CREATIONDATE_BINDING); |
1,590,423 | public void handleDebugSignal() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("\n================= BEGIN TASK QUEUE DUMP ================");<NEW_LINE>sb.append("\nASYNC TASK QUEUE DUMP:");<NEW_LINE>sb.append(String.format("\nTASK QUEUE NUMBER: %s\n", chainTasks.size()));<NEW_LINE>List<String> as... | ("\nASYNC LEVEL: %s", w.maxThreadNum)); |
56,104 | public ClusterState execute(ClusterState currentState) {<NEW_LINE>Set<String> templateNames = new HashSet<>();<NEW_LINE>for (ObjectCursor<String> cursor : currentState.metadata().templates().keys()) {<NEW_LINE>String templateName = cursor.value;<NEW_LINE>if (Regex.simpleMatch(request.name, templateName)) {<NEW_LINE>tem... | metadata(metadata).build(); |
1,367,555 | public void check() throws SQLException {<NEW_LINE>SQLite3Schema s = state.getSchema();<NEW_LINE>SQLite3Tables targetTables = s.getRandomTableNonEmptyTables();<NEW_LINE>List<SQLite3Expression> groupByColumns = Randomly.nonEmptySubset(targetTables.getColumns()).stream().map(c -> new SQLite3ColumnName(c, null)).collect(C... | (PostfixUnaryOperator.ISNULL, predicate)); |
1,629,869 | public Map<String, ?> call(String callString, StatementParameters parameters, final DalHints hints, final DalTaskContext dalTaskContext) throws SQLException {<NEW_LINE>ConnectionAction<Map<String, ?>> action = new ConnectionAction<Map<String, ?>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Map<String, ?> execute()... | conn = getConnection(hints, this); |
1,795,018 | final DeletePolicyResult executeDeletePolicy(DeletePolicyRequest deletePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
84,087 | private void createLine(MInvoice invoice, MInvoiceLine invoiceLine) {<NEW_LINE>if (invoiceLine.getM_InOutLine_ID() > 0)<NEW_LINE>return;<NEW_LINE>// if is fully delivery don't create anything<NEW_LINE>if (invoiceLine.getC_OrderLine_ID() > 0) {<NEW_LINE>MOrderLine orderLine = (MOrderLine) invoiceLine.getC_OrderLine();<N... | getMovementQty().negate()); |
679,656 | private int printResultAsList(ResultSet rs) throws SQLException {<NEW_LINE>ResultSetMetaData meta = rs.getMetaData();<NEW_LINE>int longestLabel = 0;<NEW_LINE>int len = meta.getColumnCount();<NEW_LINE>String[] columns = new String[len];<NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>String s = meta.getColumnLabel(i +... | println(buff.toString()); |
1,176,953 | /* (non-Javadoc)<NEW_LINE>* @see android.icu.util.TimeZone#useDaylightTime()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public boolean useDaylightTime() {<NEW_LINE>// If DST was observed in 1942 (for example) but has never been<NEW_LINE>// observed from 1943 to the present, most clients will expect<NEW_LINE>// this method... | long current = System.currentTimeMillis(); |
1,855,006 | public static void analyze(BaseViewStmt stmt, ConnectContext session) {<NEW_LINE>stmt.getTableName().normalization(session);<NEW_LINE>Analyzer.analyze(stmt.getQueryStatement(), session);<NEW_LINE>QueryRelation queryRelation = stmt.getQueryStatement().getQueryRelation();<NEW_LINE>List<Column> viewColumns = Lists.newArra... | > columnOutputNames = queryRelation.getColumnOutputNames(); |
1,492,332 | public CreateFaqResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateFaqResult createFaqResult = new CreateFaqResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep... | class).unmarshall(context)); |
1,701,917 | private void checkDepended(Business business, Script script) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Script.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Script> cq = cb.createQuery(Script.class);<NEW_LINE>Root<Script> root = cq.from(S... | (p)).getResultList(); |
1,431,917 | protected Long handleInternally(DataObject content) {<NEW_LINE>long guildId = content.getUnsignedLong("guild_id");<NEW_LINE>if (getJDA().getGuildSetupController().isLocked(guildId))<NEW_LINE>return guildId;<NEW_LINE>Guild guild = getJDA().getGuildById(guildId);<NEW_LINE>if (guild == null) {<NEW_LINE>EventCache.LOG.debu... | responseNumber, allContent, this::handle); |
304,324 | public boolean loadParameters(SharedPreferences settings) {<NEW_LINE>if (settings.getInt("wasSaved" + VERSION, 0) == 1) {<NEW_LINE>zoom = settings.getInt("zoom", 0);<NEW_LINE>locked = settings.getBoolean("locked", true);<NEW_LINE>nMultiParams = settings.getInt("nMultiParams", 0);<NEW_LINE>ipAddress = settings.getString... | getString("label" + i, null); |
1,301,917 | public void addSipletInstance(String appName, String className, Object servletInstance) {<NEW_LINE>if (c_logger.isTraceDebugEnabled()) {<NEW_LINE>c_logger.traceDebug(this, "addSipletInstance", "appName[" + appName + "] class[" + className + "] instance[" + servletInstance + "]");<NEW_LINE>}<NEW_LINE>SipAppDesc sipApp =... | "addSipletInstance", "found sipAppDesc [" + sipApp + "]"); |
142,049 | private AggregationForgeFactoryAccessSorted handleCreateTable(ExprValidationContext validationContext) throws ExprValidationException {<NEW_LINE>if (positionalParams.length == 0) {<NEW_LINE>throw new ExprValidationException("Missing the sort criteria expression");<NEW_LINE>}<NEW_LINE>String message = "For tables column... | ], validationContext.getStatementRawInfo()); |
1,574,716 | public PyObject __call__(PyObject arg) {<NEW_LINE>PyCursor cursor = (PyCursor) __self__;<NEW_LINE>switch(index) {<NEW_LINE>case 0:<NEW_LINE>return cursor.fetchmany(arg.asInt());<NEW_LINE>case 5:<NEW_LINE>cursor.execute(arg, Py.None, Py.None, Py.None);<NEW_LINE>return Py.None;<NEW_LINE>case 6:<NEW_LINE>case 7:<NEW_LINE>... | Py.None, Py.None); |
1,787,990 | private void updateBranchContextMaps(int branch, double true_distance, double false_distance) {<NEW_LINE>if (!coveredPredicateContext.containsKey(branch)) {<NEW_LINE>coveredPredicateContext.put(branch, new HashMap<>());<NEW_LINE>coveredTrueContext.put(branch, new HashMap<>());<NEW_LINE>coveredFalseContext.put(branch, n... | .get(context) + 1); |
1,234,519 | final ListConnectionsResult executeListConnections(ListConnectionsRequest listConnectionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listConnectionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | endClientExecution(awsRequestMetrics, request, response); |
84,564 | private void processAppliedInfo(@javax.annotation.Nullable SplitHunk hunk, @Nonnull TextRange lineWithPartContextApplied, @Nonnull IntPair contextRangeShift, AppliedTextPatch.HunkStatus hunkStatus) {<NEW_LINE>if (hunk != null) {<NEW_LINE>// +1 to the end because end range is always not included -> [i;j); except add mo... | .getStartOffset() + contextRangeShift.val1; |
1,518,232 | public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>final OpeningHoursParser.BasicOpeningHourRule item = (OpeningHoursParser.BasicOpeningHourRule) getArguments().getSerializable(ITEM);<NEW_LINE>final int positionToAdd = getArguments().getInt(POSITION_TO_ADD);<NEW_LINE>AlertDialog.Builder builder = new Al... | int first = inst.getFirstDayOfWeek(); |
605,960 | public byte[] select(PathSlice points, PathSlice[] partitionSlices, long from, long to, long partitionPoint, int dim, int dimCommonPrefix) throws IOException {<NEW_LINE>checkArgs(from, to, partitionPoint);<NEW_LINE>assert partitionSlices.length <MASK><NEW_LINE>// If we are on heap then we just select on heap<NEW_LINE>i... | > 1 : "[partition alices] must be > 1, got " + partitionSlices.length; |
654,650 | private Dialog createDialog(final FileSearchPanel panel) {<NEW_LINE>openBtn = new JButton();<NEW_LINE>Mnemonics.setLocalizedText(openBtn, NbBundle.getMessage(FileSearchAction.class, "CTL_Open"));<NEW_LINE>openBtn.getAccessibleContext().setAccessibleDescription(openBtn.getText());<NEW_LINE>openBtn.setEnabled(false);<NEW... | Dimension dim = d.getPreferredSize(); |
1,222,087 | static // In C: again-two-registers cubic_interpolate_using_table L1377<NEW_LINE>double usingXAndYTables(final double[] xArr, final double[] yArr, final double x) {<NEW_LINE>assert (xArr.length >= 4) && (<MASK><NEW_LINE>if ((x < xArr[0]) || (x > xArr[xArr.length - 1])) {<NEW_LINE>throw new SketchesArgumentException("X ... | xArr.length == yArr.length); |
259,013 | private void decryptFile() throws IOException {<NEW_LINE>final DownloadableFile outputFile = mXmppConnectionService.getFileBackend().getFile(message, true);<NEW_LINE>if (outputFile.getParentFile().mkdirs()) {<NEW_LINE>Log.d(Config.LOGTAG, "created parent directories for " + outputFile.getAbsolutePath());<NEW_LINE>}<NEW... | ByteStreams.copy(is, os); |
954,149 | public static DescribeResourceCoverageTotalResponse unmarshall(DescribeResourceCoverageTotalResponse describeResourceCoverageTotalResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeResourceCoverageTotalResponse.setRequestId(_ctx.stringValue("DescribeResourceCoverageTotalResponse.RequestId"));<NEW_LINE>describeResou... | ("DescribeResourceCoverageTotalResponse.Data.PeriodCoverage[" + i + "].Period")); |
1,154,446 | public static String AESDecrypt(String encrypted) {<NEW_LINE>try {<NEW_LINE>byte[] byteMi = new BASE64Decoder().decodeBuffer(encrypted);<NEW_LINE>KeyGenerator kgen = KeyGenerator.getInstance(ALGORITHM_AES);<NEW_LINE>String keyString = FileUtils.readFileToString(AES_BASE_PATH + AES_PRIVATE, CODE_TYPE);<NEW_LINE>SecureRa... | ] enCodeFormat = secretKey.getEncoded(); |
1,798,021 | public static ListSkillGroupStatesResponse unmarshall(ListSkillGroupStatesResponse listSkillGroupStatesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSkillGroupStatesResponse.setRequestId(_ctx.stringValue("ListSkillGroupStatesResponse.RequestId"));<NEW_LINE>listSkillGroupStatesResponse.setHttpStatusCode(_ctx.intege... | ("ListSkillGroupStatesResponse.Data.List[" + i + "].SkillGroupName")); |
1,025,110 | protected String validate() {<NEW_LINE>String name = dialogPanel.getResRefName().trim();<NEW_LINE>String type = dialogPanel.getResType().trim();<NEW_LINE>if (name.length() == 0) {<NEW_LINE>return NbBundle.getMessage(ResRefsTablePanel.class, "TXT_EmptyResRefName");<NEW_LINE>} else {<NEW_LINE>ResourceRef[] params = webAp... | getMessage(ResRefsTablePanel.class, "TXT_EmptyResTypeValue"); |
1,171,602 | public boolean createQuery(final QueryPredicate predicate, final AdvancedCypherQuery query, final boolean isFirst) {<NEW_LINE>if (predicate instanceof GroupQuery) {<NEW_LINE>final GroupQuery group = (GroupQuery) predicate;<NEW_LINE>// Filter type predicates since they require special handling<NEW_LINE>final List<QueryP... | > it = attributeAndGroupPredicates.iterator(); |
1,271,813 | public int outputStatsToCsv(final OutputStream outputStream, final Locale locale, final boolean includeHeader) throws IOException {<NEW_LINE>LOGGER.trace(() -> "beginning output stats to csv process");<NEW_LINE>final Instant startTime = Instant.now();<NEW_LINE>final StatisticsService statsManger <MASK><NEW_LINE>final C... | = getPwmApplication().getStatisticsManager(); |
1,782,682 | private UploadStatistics processSnomedCtFiles(LoadedFileDescriptors theDescriptors, RequestDetails theRequestDetails) {<NEW_LINE>final TermCodeSystemVersion codeSystemVersion = new TermCodeSystemVersion();<NEW_LINE>final Map<String, TermConcept> id2concept = new HashMap<>();<NEW_LINE>final Map<String, TermConcept> code... | rootConcepts.size()) * 100.0f; |
1,059,257 | void processProvidedLambda(Optional<ProvidedAmazonLambdaHandlerBuildItem> providedLambda, BuildProducer<AdditionalBeanBuildItem> additionalBeanBuildItemBuildProducer, BuildProducer<ReflectiveClassBuildItem> reflectiveClassBuildItemBuildProducer) {<NEW_LINE>if (!providedLambda.isPresent())<NEW_LINE>return;<NEW_LINE>Addi... | ] parameterTypes = method.getParameterTypes(); |
1,625,171 | public void updateCompatibilityRange(VersionParser versionParser) {<NEW_LINE>if (this.compatibilityRange != null) {<NEW_LINE>try {<NEW_LINE>this.range = versionParser.parseRange(this.compatibilityRange);<NEW_LINE>this.compatibilityRange = this.range.toRangeString();<NEW_LINE>this.versionRequirement = this.range.toStrin... | versionParser.parseRange(it.compatibilityRange); |
130,961 | /* Build call for tiersTierLevelGet */<NEW_LINE>private com.squareup.okhttp.Call tiersTierLevelGetCall(String tierLevel, Integer limit, Integer offset, String accept, String ifNoneMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListen... | , progressListener)).build(); |
1,092,664 | protected void runAlgo() {<NEW_LINE>while (true) {<NEW_LINE>visitedNodes++;<NEW_LINE>if (isMaxVisitedNodesExceeded() || finished())<NEW_LINE>break;<NEW_LINE>int currNode = currEdge.adjNode;<NEW_LINE>EdgeIterator iter = edgeExplorer.setBaseNode(currNode);<NEW_LINE>while (iter.next()) {<NEW_LINE>if (!accept(iter, currEdg... | updateBestPath(iter, nEdge, traversalId); |
8,491 | public void checkAndDoUpdate() throws UserException {<NEW_LINE>Database database = Catalog.getCurrentCatalog().getDbNullable(dbId);<NEW_LINE>if (database == null) {<NEW_LINE>if (!isCompleted()) {<NEW_LINE>String msg = "The database has been deleted. Change job state to cancelled";<NEW_LINE>LOG.warn(new LogBuilder(LogKe... | cancel(MsgType.SCHEDULE_FAIL, msg); |
1,004,658 | public SOAPMessage invoke(SOAPMessage request) {<NEW_LINE>SOAPMessage response = null;<NEW_LINE>try {<NEW_LINE>System.out.println("Incoming Client Request as a SOAPMessage:");<NEW_LINE>request.writeTo(System.out);<NEW_LINE>String hdrText = request.getSOAPHeader().getTextContent();<NEW_LINE>System.out.println("Incoming ... | MessageFactory factory = MessageFactory.newInstance(); |
920,683 | private CircuitBreakerDetails createCircuitBreakerDetails(CircuitBreaker circuitBreaker) {<NEW_LINE>CircuitBreaker.<MASK><NEW_LINE>CircuitBreakerConfig config = circuitBreaker.getCircuitBreakerConfig();<NEW_LINE>CircuitBreakerDetails circuitBreakerDetails = new CircuitBreakerDetails();<NEW_LINE>circuitBreakerDetails.se... | Metrics metrics = circuitBreaker.getMetrics(); |
688,057 | public void tbsv(char order, char Uplo, char TransA, char Diag, INDArray A, INDArray X) {<NEW_LINE>if (Nd4j.getExecutioner().getProfilingMode() == OpExecutioner.ProfilingMode.ALL)<NEW_LINE>OpProfiler.getInstance().processBlasCall(false, A, X);<NEW_LINE>if (X.length() > Integer.MAX_VALUE || A.columns() > Integer.MAX_VAL... | X.stride(-1)); |
1,749,443 | public Object invoke(Object lookupValues, ExprEvaluatorContext exprEvaluatorContext) {<NEW_LINE>try {<NEW_LINE>switch(invokeType) {<NEW_LINE>case NOPARAM:<NEW_LINE>return method.invoke(null, null);<NEW_LINE>case SINGLE:<NEW_LINE>return method.invoke(null, lookupValues);<NEW_LINE>case MULTIKEY:<NEW_LINE>return method.in... | ), ex.getTargetException()); |
942,934 | private void checkResponseOK(final HttpResponse response) {<NEW_LINE>if (isNullResponse(response)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (response.getStatusLine().getStatusCode() == HttpStatus.SC_NO_CONTENT) {<NEW_LINE>LOG.warn("Requested resource does not exist");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (response.... | toString(response.getEntity()); |
1,282,082 | private JPanel initLowerPanel() {<NEW_LINE>JPanel inner1 = new JPanel(new BorderLayout());<NEW_LINE>inner1.setOpaque(false);<NEW_LINE>JPanel analyzerName = new JPanel(new FlowLayout(FlowLayout.LEADING, 10, 2));<NEW_LINE>analyzerName.setOpaque(false);<NEW_LINE>analyzerName.add(new JLabel(MessageUtils.getLocalizedMessage... | (MessageUtils.getLocalizedMessage("analysis.label.show_chain")); |
944,051 | public List<String> list(Business business, EffectivePerson effectivePerson, List<String> identities, List<String> units, List<String> groups, Application application, Wi wi) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Process.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteria... | ), Process.STARTABLETERMINAL_ALL))); |
476,047 | private Set<HuId> retrieveSelectedHuIds() {<NEW_LINE>final DocumentIdsSelection selectedRowIds = getSelectedRowIds();<NEW_LINE>final ImmutableList<PPOrderLineRow> selectedRows = getView().streamByIds(selectedRowIds).collect(ImmutableList.toImmutableList());<NEW_LINE>final Set<HuId> huIds = new HashSet<>();<NEW_LINE>for... | > includedRows = row.getIncludedRows(); |
492,827 | private final static String[] buildFileForName(String filename, String contents) {<NEW_LINE>String[] result = new String[contents.length()];<NEW_LINE>result[0] = null;<NEW_LINE>int resultCount = 1;<NEW_LINE>StringBuilder buffer = new StringBuilder();<NEW_LINE>// $NON-NLS-1$<NEW_LINE>int start = contents.indexOf("name[]... | ++] = currentToken.toString(); |
209,214 | protected PreparedResult implement(RelRoot root) {<NEW_LINE>RelDataType resultType = root.rel.getRowType();<NEW_LINE>boolean isDml = root.kind.belongsTo(SqlKind.DML);<NEW_LINE>final Bindable bindable;<NEW_LINE>if (resultConvention == BindableConvention.INSTANCE) {<NEW_LINE>bindable = Interpreters.bindable(root.rel);<NE... | spark(), enumerable, prefer); |
805,093 | private static void testVarargs_method() {<NEW_LINE>Integer i1 = new Integer(1);<NEW_LINE>Integer i2 = new Integer(2);<NEW_LINE>Integer i3 = new Integer(3);<NEW_LINE>Integer i = new Integer(4);<NEW_LINE>// varargs with mulitple arguments.<NEW_LINE>int a = bar(i1, i2, i3, i);<NEW_LINE>assertTrue((a == 10));<NEW_LINE>// ... | assertTrue((c == 3)); |
1,413,347 | public static DataItemRecord fromCursor(Cursor cursor) {<NEW_LINE>DataItemRecord record = new DataItemRecord();<NEW_LINE>record.packageName = cursor.getString(1);<NEW_LINE>record.signatureDigest = cursor.getString(2);<NEW_LINE>record.dataItem = new DataItemInternal(cursor.getString(3)<MASK><NEW_LINE>record.seqId = curs... | , cursor.getString(4)); |
86,459 | private void applyModificationForAlignedChunkMetadataList(TsFileResource tsFileResource, List<AlignedChunkMetadata> alignedChunkMetadataList) {<NEW_LINE>ModificationFile modificationFile = ModificationFile.getNormalMods(tsFileResource);<NEW_LINE>if (!modificationFile.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Lis... | (modificationFile.getModifications())); |
1,479,375 | public int compareTo(SchemaRegistryKey o) {<NEW_LINE>int compare = super.compareTo(o);<NEW_LINE>if (compare == 0) {<NEW_LINE>ContextKey that = (ContextKey) o;<NEW_LINE>if (this.getTenant() == null && that.getTenant() == null) {<NEW_LINE>// pass<NEW_LINE>} else if (this.getTenant() == null) {<NEW_LINE>return -1;<NEW_LIN... | compareTo(that.getContext()); |
604,436 | public Request<CreateDBClusterSnapshotRequest> marshall(CreateDBClusterSnapshotRequest createDBClusterSnapshotRequest) {<NEW_LINE>if (createDBClusterSnapshotRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<CreateDBClusterSnapshotRequest> r... | (createDBClusterSnapshotRequest.getDBClusterSnapshotIdentifier())); |
1,072,420 | public final Condition and(Field<T1> t1, Field<T2> t2, Field<T3> t3, Field<T4> t4, Field<T5> t5, Field<T6> t6, Field<T7> t7, Field<T8> t8, Field<T9> t9, Field<T10> t10, Field<T11> t11, Field<T12> t12, Field<T13> t13, Field<T14> t14, Field<T15> t15, Field<T16> t16, Field<T17> t17, Field<T18> t18, Field<T19> t19, Field<T... | , t18, t19, t20)); |
291,860 | public static AlertDialog.Builder checkDuplicates(@NonNull FavouritePoint point, @NonNull Activity activity) {<NEW_LINE>OsmandApplication app = <MASK><NEW_LINE>FavouritesHelper helper = app.getFavoritesHelper();<NEW_LINE>String name = AndroidUtils.checkEmoticons(point.getName());<NEW_LINE>boolean emoticons = name.lengt... | (OsmandApplication) activity.getApplication(); |
1,373,753 | private void loadResource(ShapeId id, ObjectNode node, FullyResolvedModelFile modelFile) {<NEW_LINE>LoaderUtils.checkForAdditionalProperties(node, id, RESOURCE_PROPERTIES, modelFile.events());<NEW_LINE>applyShapeTraits(id, node, modelFile);<NEW_LINE>ResourceShape.Builder builder = ResourceShape.builder().id(id).source(... | .getKey().getValue(); |
1,080,291 | public static ListSubAccountsResponse unmarshall(ListSubAccountsResponse listSubAccountsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSubAccountsResponse.setRequestId(_ctx.stringValue("ListSubAccountsResponse.RequestId"));<NEW_LINE>listSubAccountsResponse.setMessage(_ctx.stringValue("ListSubAccountsResponse.Messag... | + "].Permissions[" + j + "].Id")); |
1,645,986 | public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>boolean result = false;<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("id", id);<NEW_LINE>param.put("pass", CipherUtil.sha256(password));<NEW_LINE>param.put("email", email);<NEW_LINE><MASK><NEW_LINE>MapPack ... | param.put("group", selectedGroup); |
1,573,328 | public void deleteById(String id) {<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'.", id)));<NEW_LINE>}<NEW_LINE>String acc... | Utils.getValueFromIdByName(id, "resourceGroups"); |
645,682 | protected void convertElementToJson(ObjectNode propertiesNode, BaseElement baseElement) {<NEW_LINE>ServiceTask serviceTask = (ServiceTask) baseElement;<NEW_LINE>if ("mail".equalsIgnoreCase(serviceTask.getType())) {<NEW_LINE>setPropertyFieldValue(PROPERTY_MAILTASK_TO, serviceTask, propertiesNode);<NEW_LINE>setPropertyFi... | setPropertyFieldValue(PROPERTY_MAILTASK_HTML, serviceTask, propertiesNode); |
1,593,834 | <T> CQueryRowCount buildRowCountQuery(OrmQueryRequest<T> request) {<NEW_LINE>SpiQuery<T> query = request.query();<NEW_LINE>// always set the order by to null for row count query<NEW_LINE>query.setOrder(null);<NEW_LINE>query.setFirstRow(0);<NEW_LINE>query.setMaxRows(0);<NEW_LINE>boolean countDistinct = query.isDistinct(... | request, predicates, selectCountWithColumnAlias && withAgg); |
133,720 | protected ServerOperation<HttpClientResponse<O>> requestToOperation(final HttpClientRequest<I> request, final ClientConfig rxClientConfig) {<NEW_LINE>Preconditions.checkNotNull(request);<NEW_LINE>return new ServerOperation<HttpClientResponse<O>>() {<NEW_LINE><NEW_LINE>final AtomicInteger count = new AtomicInteger(0);<N... | (count.getAndIncrement())); |
1,283,925 | public static void encode(ClientMessage clientMessage, com.hazelcast.map.impl.SimpleEntryView<com.hazelcast.internal.serialization.Data, com.hazelcast.internal.serialization.Data> simpleEntryView) {<NEW_LINE>clientMessage.add(BEGIN_FRAME.copy());<NEW_LINE>ClientMessage.Frame initialFrame = new ClientMessage.Frame(new b... | MAX_IDLE_FIELD_OFFSET, simpleEntryView.getMaxIdle()); |
1,558,181 | private MethodInvocation injectLogMethod(MethodInvocation node) {<NEW_LINE>ExecutableElement method = node.getExecutableElement();<NEW_LINE>TypeElement cls = ElementUtil.getDeclaringClass(method);<NEW_LINE>List<Expression> args = node.getArguments();<NEW_LINE>if (!args.isEmpty() && typeUtil.isSameType(args.get(0).getTy... | logpArgs = new ArrayList<>(); |
966,668 | private boolean expandMacros(ConstructTpl ctpl) {<NEW_LINE>VectorSTL<OpTpl> vec = ctpl.getOpvec();<NEW_LINE>VectorSTL<OpTpl> newvec = new VectorSTL<>();<NEW_LINE>IteratorSTL<OpTpl> iter;<NEW_LINE>for (iter = vec.begin(); !iter.isEnd(); iter.increment()) {<NEW_LINE>OpTpl op = iter.get();<NEW_LINE>if (op.getOpcode() == O... | newvec, ctpl.numLabels()); |
1,091,194 | final UpdateAssessmentFrameworkResult executeUpdateAssessmentFramework(UpdateAssessmentFrameworkRequest updateAssessmentFrameworkRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAssessmentFrameworkRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,475,582 | private ParameterizedExecutableType resolveConstructorCall(AnnotatedTypeFactory factory, MethodInvocationTree tree, ParameterizedExecutableType origResult) {<NEW_LINE>debugReflection("Try to resolve reflective constructor call: " + tree);<NEW_LINE>List<JCNewClass> possibleConstructors = resolveReflectiveConstructor(tre... | getComponentType().addAnnotations(paramsGlb); |
766,360 | public final GopListContext gopList() throws RecognitionException {<NEW_LINE>GopListContext _localctx = new GopListContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 118, RULE_gopList);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(1184);<NEW_LINE>gop();<NEW_L... | _la = _input.LA(1); |
294,969 | public void paint(Graphics2D g2D, int pageNo, Point2D pageStart, Properties ctx, boolean isView) {<NEW_LINE>if (!m_valid || m_barcode == null)<NEW_LINE>return;<NEW_LINE>// Position<NEW_LINE>Point2D.Double location = getAbsoluteLocation(pageStart);<NEW_LINE>int x = (int) location.x;<NEW_LINE>if (MPrintFormatItem.FIELDAL... | y = (int) location.y; |
15,675 | protected void appendComponentSlot(XStringBuilder xsb, JsonStringBuilder jsb, SofaTracerSpan span) {<NEW_LINE>Map<String, String<MASK><NEW_LINE>if (StringUtils.isNotBlank(tagWithStr.get(Tags.ERROR.getKey()))) {<NEW_LINE>jsb.append(Tags.ERROR.getKey(), tagWithStr.get(Tags.ERROR.getKey()));<NEW_LINE>} else {<NEW_LINE>jsb... | > tagWithStr = span.getTagsWithStr(); |
1,265,719 | public void process(HealthCheckTask task) {<NEW_LINE>List<Instance> ips = task.<MASK><NEW_LINE>if (CollectionUtils.isEmpty(ips)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Instance ip : ips) {<NEW_LINE>if (ip.isMarked()) {<NEW_LINE>if (SRV_LOG.isDebugEnabled()) {<NEW_LINE>SRV_LOG.debug("tcp check, ip is marked as to s... | getCluster().allIPs(false); |
732,122 | public List<DataType> calculateOutputDataTypes(List<DataType> dataTypes) {<NEW_LINE>Preconditions.checkState(dataTypes != null && dataTypes.size() == 2, "Expected exactly 2 input datatypes for %s, got %s", getClass(), dataTypes);<NEW_LINE>Preconditions.checkState(dataTypes.get(0).isFPType(), "Input 0 datatype must be a... | , dataTypes.get(1)); |
367,349 | private void doDraw(Canvas canvas) {<NEW_LINE>Paint p = mPaint;<NEW_LINE>Rect r = mRect;<NEW_LINE>if (mFutureBgColor != 0) {<NEW_LINE>drawBgColors(r, canvas, p);<NEW_LINE>}<NEW_LINE>drawGridBackground(r, canvas, p);<NEW_LINE>// Draw each day<NEW_LINE>int cell = mFirstJulianDay;<NEW_LINE>p.setAntiAlias(false);<NEW_LINE>... | day, HOUR_GAP, canvas, p); |
16,751 | /*<NEW_LINE>* Returns a Ghidra {@link FunctionDefinition} datatype built using the info from the DWARF die.<NEW_LINE>* <p><NEW_LINE>* Function types may be assigned "mangled" names with parameter type info if the name<NEW_LINE>* is already used or if this is an unnamed function defintion.<NEW_LINE>* <p><NEW_LINE>* Can ... | funcDef.getArguments()[i]; |
842,504 | public long[][] queryProcessorCpuLoadTicks() {<NEW_LINE>long[][] ticks = new long[getLogicalProcessorCount()][TickType.values().length];<NEW_LINE>// Allocate memory for array of CPTime<NEW_LINE>long size = new CpTime().size();<NEW_LINE>long arraySize = size * getLogicalProcessorCount();<NEW_LINE>Pointer p = new Memory(... | FreeBsdLibc.CP_NICE * FreeBsdLibc.UINT64_SIZE); |
1,631,653 | public void marshall(StartTaskRequest startTaskRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (startTaskRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(startTaskRequest.getCluster(), CLUST... | startTaskRequest.getNetworkConfiguration(), NETWORKCONFIGURATION_BINDING); |
1,459,619 | private static Map<TypeAlias, NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, NativeType> m = new EnumMap<TypeAlias, NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(<MASK><NEW_LINE>m.put(TypeAlias.u_int16_t, Nati... | TypeAlias.int16_t, NativeType.SSHORT); |
348,267 | private void findBuildScript() {<NEW_LINE>String buildShellScript;<NEW_LINE>this.buildKind = null;<NEW_LINE>if (OsUtils.isWindows()) {<NEW_LINE>buildShellScript = "sts-docker-build.bat";<NEW_LINE>if (exists(directory.toPath().resolve(buildShellScript))) {<NEW_LINE>buildKind = BuildKind.SHELL;<NEW_LINE>command.addAll(Im... | ("CMD", "/C", buildShellScript)); |
267,720 | public static ListAppVersionsResponse unmarshall(ListAppVersionsResponse listAppVersionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAppVersionsResponse.setRequestId(_ctx.stringValue("ListAppVersionsResponse.RequestId"));<NEW_LINE>listAppVersionsResponse.setCode<MASK><NEW_LINE>listAppVersionsResponse.setMessage(_... | (_ctx.stringValue("ListAppVersionsResponse.Code")); |
176,516 | protected Connection activate() {<NEW_LINE>while (true) {<NEW_LINE>Pool<Connection>.Entry entry = pool.acquire();<NEW_LINE>if (entry != null) {<NEW_LINE><MASK><NEW_LINE>long maxDurationNanos = this.maxDurationNanos;<NEW_LINE>if (maxDurationNanos > 0L) {<NEW_LINE>EntryHolder holder = (EntryHolder) ((Attachable) connecti... | Connection connection = entry.getPooled(); |
369,290 | private void autoAssignMappings(List<DBSObject> containerObjects) {<NEW_LINE>boolean chooseConsumer = getWizard()<MASK><NEW_LINE>boolean success = false;<NEW_LINE>for (TableItem item : mappingTable.getItems()) {<NEW_LINE>DataTransferPipe pipe = (DataTransferPipe) item.getData();<NEW_LINE>if ((chooseConsumer && (pipe.ge... | .getSettings().isConsumerOptional(); |
918,466 | public void updated(Dictionary config) throws ConfigurationException {<NEW_LINE>if (config != null) {<NEW_LINE>Mail.hostname = (String) config.get("hostname");<NEW_LINE>String portString = (String) config.get("port");<NEW_LINE>if (portString != null) {<NEW_LINE>Mail.port = Integer.valueOf(portString);<NEW_LINE>}<NEW_LI... | String) config.get("tls"); |
1,006,763 | public static void merge(String serverVariableName, ServerVariable from, Map<String, ServerVariable> to, boolean override) {<NEW_LINE>if (from == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>org.eclipse.microprofile.openapi.models.servers<MASK><NEW_LINE>variable.setDefaultValue(mergeProperty(variable.getDefaultValue(),... | .ServerVariable variable = new ServerVariableImpl(); |
1,671,322 | final DeleteProjectResult executeDeleteProject(DeleteProjectRequest deleteProjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteProjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteProject"); |
734,989 | public static CxCy scale(ImageInfo imageInfo, PageDimensions page, int maxWidth) {<NEW_LINE>double writableWidthTwips = page.getWritableWidthTwips();<NEW_LINE>log.debug("writableWidthTwips: " + writableWidthTwips);<NEW_LINE>if (maxWidth > 0 && maxWidth < writableWidthTwips) {<NEW_LINE>writableWidthTwips = maxWidth;<NEW... | Dimension2D dpx = size.getDimensionPx(); |
477,641 | public static List<TabletLocation> findOverlappingTablets(ServerContext context, VolumeManager vm, TabletLocator locator, Path file, Text startRow, Text endRow) throws Exception {<NEW_LINE>List<TabletLocation> <MASK><NEW_LINE>Collection<ByteSequence> columnFamilies = Collections.emptyList();<NEW_LINE>String filename = ... | result = new ArrayList<>(); |
1,468,095 | public void read(int empId) {<NEW_LINE>OperationResult<ColumnList<String>> result;<NEW_LINE>try {<NEW_LINE>result = keyspace.prepareQuery(EMP_CF).getKey(empId).execute();<NEW_LINE>ColumnList<String> cols = result.getResult();<NEW_LINE>logger.debug("read: isEmpty: " + cols.isEmpty());<NEW_LINE>// process data<NEW_LINE>/... | .getStringValue(COL_NAME_LAST_NAME, null)); |
394,691 | final CreateRoleAliasResult executeCreateRoleAlias(CreateRoleAliasRequest createRoleAliasRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRoleAliasRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
464,823 | final SubmitAttachmentStateChangesResult executeSubmitAttachmentStateChanges(SubmitAttachmentStateChangesRequest submitAttachmentStateChangesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(submitAttachmentStateChangesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.