idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
45,333 | public boolean visit(SwitchStatement node) {<NEW_LINE>handleBracedCode(node, node.getExpression(), this.options.brace_position_for_switch, this.options.indent_switchstatements_compare_to_switch);<NEW_LINE>List<Statement> statements = node.statements();<NEW_LINE>if (this.options.indent_switchstatements_compare_to_cases)... | .lastIndexIn(statement, -1); |
1,602,308 | public void testObservableRxInvoker_get2WithClass(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Executors.defaultThr... | .currentThread().getName(); |
942,256 | private static void internalCopyBitmap(Bitmap destBitmap, Bitmap sourceBitmap) {<NEW_LINE>if (NativeCodeSetup.getUseNativeCode() && destBitmap.getConfig() == sourceBitmap.getConfig()) {<NEW_LINE>try {<NEW_LINE>if (sCopyBitmap == null) {<NEW_LINE>Class<?> clazz = Class.forName("com.facebook.imagepipeline.nativecode.Bitm... | throw new RuntimeException("Wrong Native code setup, reflection failed.", e); |
882,462 | public static Properties convertStringToProperties(String propsString, char sep) {<NEW_LINE>final Properties properties = new Properties();<NEW_LINE>if ((propsString != null) && (!propsString.equals("[]"))) {<NEW_LINE>// This is because when there are multiple values in the arraylist<NEW_LINE>// they appear like [foo=b... | String token = stoken.nextTokenKeepEscapes(); |
534,289 | public Result processWorkPackage(final I_C_Queue_WorkPackage workPackage, final String localTrxName) {<NEW_LINE>final IQueueDAO queueDAO = Services.get(IQueueDAO.class);<NEW_LINE>final IWorkpackageParamDAO workpackageParamDAO = Services.get(IWorkpackageParamDAO.class);<NEW_LINE>final IPartitionerService partitionerServ... | ofRepoIdOrNull(workPackage.getAD_PInstance_ID()); |
249,921 | public GetTypeResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetTypeResult getTypeResult = new GetTypeResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCu... | int originalDepth = context.getCurrentDepth(); |
575,371 | protected RuleSet readRuleSet() {<NEW_LINE>return new RuleSetBase() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void addRuleInstances(Digester digester) {<NEW_LINE>digester.addObjectCreate(PATTERN_ROOT, JRSimpleTemplate.class);<NEW_LINE>digester.addCallMethod(PATTERN_INCLUDED_TEMPLATE, "addIncludedTemplate", 0);<NEW... | Left.class.getName()); |
1,466,631 | public J.Unary visitUnary(J.Unary unary, ExecutionContext ctx) {<NEW_LINE>J.Unary u = <MASK><NEW_LINE>J.Unary.Type op = u.getOperator();<NEW_LINE>if ((Boolean.TRUE.equals(noWhitespaceAfterStyle.getInc()) && op == J.Unary.Type.PreIncrement) || (Boolean.TRUE.equals(noWhitespaceAfterStyle.getDec()) && op == J.Unary.Type.P... | super.visitUnary(unary, ctx); |
1,643,983 | public DescribeDataRepositoryTasksResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeDataRepositoryTasksResult describeDataRepositoryTasksResult = new DescribeDataRepositoryTasksResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = c... | class).unmarshall(context)); |
119,065 | public okhttp3.Call postPingCall(SomeObj someObj, final ApiCallback _callback) throws ApiException {<NEW_LINE>String basePath = null;<NEW_LINE>// Operation Servers<NEW_LINE>String[] localBasePaths = new String[] {};<NEW_LINE>// Determine Base Path to Use<NEW_LINE>if (localCustomBaseUrl != null) {<NEW_LINE>basePath = lo... | HashMap<String, String>(); |
255,397 | private String fixAttachmentPath(String attachment) {<NEW_LINE>com.codename1.io.File cn1File = new com.codename1.io.File(attachment);<NEW_LINE>File mediaStorageDir = new File(new File(getContext().getCacheDir(), "intent_files"), "Attachment");<NEW_LINE>// Create the storage directory if it does not exist<NEW_LINE>if (!... | getInstance().openInputStream(attachment); |
1,613,128 | public String apply(final JCCompilationUnit cu, final JavacNode node) {<NEW_LINE>final JCTree n = node.get();<NEW_LINE>String javadoc = Javac.getDocComment(cu, n);<NEW_LINE>// step 1: Check if there is a 'GETTER' section. If yes, that becomes the new method's javadoc.<NEW_LINE>String out = getJavadocSection(javadoc, "G... | (javadoc), JavadocTag.RETURN); |
659,415 | void showSummary() {<NEW_LINE>addLabel(getString("Host"));<NEW_LINE>final JLabel hostLabel = new JLabel(javaInformations.getHost());<NEW_LINE>hostLabel.setFont(hostLabel.getFont().deriveFont(Font.BOLD));<NEW_LINE>addJLabel(hostLabel);<NEW_LINE>final MemoryInformations memoryInformations = javaInformations.getMemoryInfo... | .getUsedConnectionPercentage(), null)); |
1,253,321 | public static RunConfig createRunConfig(Project project, String action, String displayName, Lookup context, GradleExecConfiguration cfg, Set<ExecFlag> flags, String... args) {<NEW_LINE>if (cfg == null) {<NEW_LINE>cfg = ProjectConfigurationSupport.getEffectiveConfiguration(project, context);<NEW_LINE>}<NEW_LINE>GradleBa... | gbp = GradleBaseProject.get(project); |
561,992 | public static byte[] generateWARCInfo(Map<String, String> fields) {<NEW_LINE>StringBuffer buffer = new StringBuffer();<NEW_LINE>buffer.append(WARC_VERSION);<NEW_LINE>buffer.append(CRLF);<NEW_LINE>buffer.append("WARC-Type: ").append(WARC_TYPE_WARCINFO).append(CRLF);<NEW_LINE>String mainID = UUID.randomUUID().toString();... | ).getBytes(StandardCharsets.UTF_8); |
584,707 | private void processArrayNode(JsonNode node, Supplier<ImmutableJsonShreddedRow.Builder> rowBuilder, List<JsonShreddedRow> result) {<NEW_LINE>// empty array, simply create a reference to empty node and return<NEW_LINE>if (node.isEmpty()) {<NEW_LINE>ImmutableJsonShreddedRow row = rowBuilder.get().stringValue(DocsApiConst... | get().addPath(arrayPath); |
942,475 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select 1 in (longBoxed, intArr, longMap, intCol) as resOne, 1 not in (longBoxed, intArr, longMap, intCol) as resTwo from SupportBeanArrayCollMap";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>String[] fields = "resOne, resTwo... | 7, 8, 8 })); |
1,775,615 | public void rss(final JSONObject action, final JSONObject data, final JSONObject event, final Context context) {<NEW_LINE>this.action = action;<NEW_LINE>this.context = context;<NEW_LINE>event_cache = event;<NEW_LINE>try {<NEW_LINE>final JSONObject options = action.getJSONObject("options");<NEW_LINE>String rss_data = op... | rss.executeObjectFunction("run", parameters); |
124,916 | public SaturnJobReturn call() throws Exception {<NEW_LINE>Thread.currentThread().setUncaughtExceptionHandler(new UncaughtExceptionHandler() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void uncaughtException(Thread t, Throwable e) {<NEW_LINE>if (e instanceof IllegalMonitorStateException || e instanceof ThreadDeath) {... | ), callable.getExecutionTime()); |
526,792 | void addRule() {<NEW_LINE>final Configuration triggerConfig = new Configuration();<NEW_LINE>triggerConfig.put("itemName", "DemoSwitch");<NEW_LINE>final Trigger ruleTrigger = ModuleBuilder.createTrigger().withId("RuleTrigger").withTypeUID("ItemStateChangeTrigger").withConfiguration(triggerConfig).build();<NEW_LINE>final... | = new ArrayList<Action>(); |
224,631 | private void registerFeature(Class<?> baseFeatureClass, Function<Class<?>, Class<?>> specificClassProvider, IsInConfigurationAccessImpl access) {<NEW_LINE>if (!Feature.class.isAssignableFrom(baseFeatureClass)) {<NEW_LINE>throw UserError.abort("Class does not implement %s: %s", Feature.class.getName(<MASK><NEW_LINE>}<NE... | ), baseFeatureClass.getName()); |
48,037 | public Future<@Nullable String> reverseLookup(String address) {<NEW_LINE>try {<NEW_LINE>InetAddress inetAddress = InetAddress.getByName(address);<NEW_LINE>byte[] addr = inetAddress.getAddress();<NEW_LINE>StringBuilder reverseName = new StringBuilder(64);<NEW_LINE>if (inetAddress instanceof Inet4Address) {<NEW_LINE>// r... | resolvePTR(reverseName.toString()); |
1,085,187 | private void parseClass(Element element, DozerBuilder.ClassDefinitionBuilder classBuilder) {<NEW_LINE>if (StringUtils.isNotEmpty(getAttribute(element, MAP_GET_METHOD_ATTRIBUTE))) {<NEW_LINE>classBuilder.mapGetMethod(getAttribute(element, MAP_GET_METHOD_ATTRIBUTE));<NEW_LINE>}<NEW_LINE>if (StringUtils.isNotEmpty(getAttr... | getAttribute(element, MAP_EMPTY_STRING_ATTRIBUTE))); |
1,337,405 | public static SearchAudiencesResponse unmarshall(SearchAudiencesResponse searchAudiencesResponse, UnmarshallerContext _ctx) {<NEW_LINE>searchAudiencesResponse.setRequestId(_ctx.stringValue("SearchAudiencesResponse.RequestId"));<NEW_LINE>searchAudiencesResponse.setErrorDesc(_ctx.stringValue("SearchAudiencesResponse.Erro... | ("SearchAudiencesResponse.Data.Content[" + i + "].Permission")); |
1,811,609 | public static String sign(String message, PrivateKey key, String digestAlgorithm) throws CryptoException {<NEW_LINE>try {<NEW_LINE>String signatureAlgorithm = getSignatureAlgorithm(key.getAlgorithm(), digestAlgorithm);<NEW_LINE>java.security.Signature signer = java.security.Signature.getInstance(signatureAlgorithm, get... | ] sig = signer.sign(); |
789,376 | public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>OsmandApplication app = requiredMyApplication();<NEW_LINE>if (savedInstanceState != null) {<NEW_LINE>minZoom = savedInstanceState.getInt(MIN_ZOOM_KEY);<NEW_LINE>maxZoom = savedInstanceState.getInt(MAX_ZOOM_KEY);<NEW_LINE>dialogDescrRes = savedInstanceSta... | sliderDescrRes = savedInstanceState.getInt(SLIDER_DESCR_RES_KEY); |
1,097,021 | protected void prepareResponse(Exchange exchange, Response response) {<NEW_LINE>// If a response type is set, we do not mess around with it.<NEW_LINE>// Only if none is set, we have to decide for one here.<NEW_LINE>Request currentRequest = exchange.getCurrentRequest();<NEW_LINE>Type respType = response.getType();<NEW_L... | setMID(currentRequest.getMID()); |
692,145 | private byte[] expand(final byte[] prk, final byte[] info, int length) throws GeneralSecurityException {<NEW_LINE>Mac mac = EngineFactory.MAC.getInstance(macAlgorithm);<NEW_LINE>if (length > 255 * mac.getMacLength()) {<NEW_LINE>throw new GeneralSecurityException("size too large");<NEW_LINE>}<NEW_LINE>byte[] result = ne... | new SecretKeySpec(prk, macAlgorithm)); |
628,989 | public int compare(CapabilityStatementRestResourceComponent theO1, CapabilityStatementRestResourceComponent theO2) {<NEW_LINE>DecimalType count1 = new DecimalType();<NEW_LINE>List<Extension> count1exts = theO1.getExtensionsByUrl(RESOURCE_COUNT_EXT_URL);<NEW_LINE>if (count1exts != null && count1exts.size() > 0) {<NEW_LI... | get(0).getValue(); |
1,727,539 | public HtmlResponse delete(final String id) {<NEW_LINE>final String[] values = decodeId(id);<NEW_LINE>if (StringUtil.isEmpty(values[1])) {<NEW_LINE>throwValidationError(messages -> messages.addErrorsStorageFileNotFound(GLOBAL), () -> asListHtml(encodeId(values[0])));<NEW_LINE>}<NEW_LINE>final String objectName = getObj... | 0], values[1]); |
1,595,272 | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {<NEW_LINE>AquaEditorTabCellRenderer ren = (AquaEditorTabCellRenderer) c;<NEW_LINE>Color <MASK><NEW_LINE>// top<NEW_LINE>g.setColor(borderColor);<NEW_LINE>drawLine(g, x, y, width, y);<NEW_LINE>// bottom<NEW_LINE>if (!ren.isSelected())... | borderColor = UIManager.getColor("NbTabControl.borderColor"); |
341,616 | public void configTasksAfterEvaluate() {<NEW_LINE>if (PluginTypeUtils.isAppProject(project)) {<NEW_LINE>AppExtension appExtension = DefaultGroovyMethods.asType(DefaultGroovyMethods.getAt(project.getExtensions(), "android"), AppExtension.class);<NEW_LINE>new AtlasAppTaskManager(AtlasBuildContext.androidBuilderMap.get(pr... | , "android"), FeatureExtension.class); |
1,709,664 | private void HelperRGB(float red, float green, float blue) {<NEW_LINE>PdfXConformanceImp.checkPDFXConformance(writer, PdfXConformanceImp.PDFXKEY_RGB, null);<NEW_LINE>if (red < 0.0f)<NEW_LINE>red = 0.0f;<NEW_LINE>else if (red > MAX_FLOAT_COLOR_VALUE)<NEW_LINE>red = MAX_FLOAT_COLOR_VALUE;<NEW_LINE>if (green < 0.0f)<NEW_L... | (' ').append(blue); |
1,360,767 | public int OnVerifyChangedCertificateEx(String host, long port, String commonName, String subject, String issuer, String fingerprint, String oldSubject, String oldIssuer, String oldFingerprint, long flags) {<NEW_LINE>// see if global settings says accept all<NEW_LINE>if (ApplicationSettingsActivity.getAcceptAllCertific... | , UIHandler.SHOW_DIALOG, dlgVerifyCertificate)); |
1,478,296 | public static void showCheckboxDialog(Context context, @StringRes int titleId, @StringRes int messageId, @StringRes int checkboxMessageId, CheckboxInputListener listener) {<NEW_LINE>View view = LayoutInflater.from(context).inflate(R.layout.dialog_checkbox, null);<NEW_LINE>CheckBox checkBox = view.findViewById(R.id.chec... | buttonOK = new AtomicReference<>(); |
1,749,256 | private void notifyParameterListeners(String parameter) {<NEW_LINE>ParameterListener[] listeners;<NEW_LINE>synchronized (parameterListenerz) {<NEW_LINE>listeners = parameterListenerz.get(parameter);<NEW_LINE>}<NEW_LINE>List<ParameterListener> listListeners = null;<NEW_LINE>synchronized (weakParameterListenerz) {<NEW_LI... | .next().get(); |
619,496 | void merge(Parameters defaults) {<NEW_LINE>if (defaults == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.logRaw = this.logRaw == null ? defaults.logRaw : this.logRaw;<NEW_LINE>this.logSum = this.logSum == null ? defaults.logSum : this.logSum;<NEW_LINE>this.logMean = this.logMean == null ? defaults.logMean : this.lo... | ? defaults.logMin : this.logMin; |
1,266,466 | private void verifyRecord(String errMsgId, IndexEntry srcEntry, IndexEntriesIterator tgtEntriesIterator, boolean verifyLogData) throws IOException {<NEW_LINE>assert tgtEntriesIterator.hasNext() : "There are no more entries in the target index";<NEW_LINE>IndexEntry tgtEntry = tgtEntriesIterator.next();<NEW_LINE>IndexVal... | getOffset().getName()); |
1,715,009 | public String transformQueryString(SQLQuery query) throws DBCException {<NEW_LINE>String newQuery;<NEW_LINE>String testQuery = query.getText().toUpperCase().trim();<NEW_LINE>SQLDialect dialect = SQLUtils.getDialectFromDataSource(query.getDataSource());<NEW_LINE>boolean plainSelect = query.isPlainSelect();<NEW_LINE>if (... | ) + length.longValue()); |
873,006 | private void initSheetInfos(XSSFReader xssfReader) throws IOException, OpenXML4JException, SAXException {<NEW_LINE>final Vector<String> countSet = new Vector<String>();<NEW_LINE>HashSet<String> nameSet = new HashSet<String>();<NEW_LINE>XSSFReader.SheetIterator iter = (XSSFReader.SheetIterator) xssfReader.getSheetsData(... | InputStream stream = iter.next(); |
1,567,460 | private static void tryAssertionScoringUseCase(RegressionEnvironment env, EventRepresentationChoice eventRepresentationEnum, AtomicInteger milestone) {<NEW_LINE>String[] fields = "userId,keyword,sumScore".split(",");<NEW_LINE>String epl = eventRepresentationEnum.getAnnotationTextWJsonProvided(MyLocalJsonProvidedScoreCy... | (epl, new RegressionPath()); |
881,715 | public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> <MASK><NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(values.get("stockId"), convLabelName("Stock Id"));<... | errors = new ArrayList<>(); |
518,417 | public void validate(ValidationHelper helper, Context context, String key, APIResponses t) {<NEW_LINE>if (t != null) {<NEW_LINE>Map<String, APIResponse> responses = t.getAPIResponses();<NEW_LINE>if (responses != null) {<NEW_LINE>if (responses.size() == 0 && t.getDefaultValue() == null) {<NEW_LINE>final String message =... | .getLocation(), message)); |
1,225,415 | // Move forward by delta (may cross one or more record batches)<NEW_LINE>public void forward(long delta) {<NEW_LINE>if (!enableMarkAndReset) {<NEW_LINE>throw new UnsupportedOperationException("mark and reset disabled for this RecordIterator");<NEW_LINE>}<NEW_LINE>assert delta >= 0;<NEW_LINE>assert (delta + outerPositio... | getEntry(outerPosition).getKey(); |
549,194 | public DaemonClientConnection connect(ExplainingSpec<DaemonContext> constraint) {<NEW_LINE>final Pair<Collection<DaemonInfo>, Collection<DaemonInfo>> idleBusy = partitionByState(daemonRegistry.getAll(), Idle);<NEW_LINE>final Collection<DaemonInfo> idleDaemons = idleBusy.getLeft();<NEW_LINE>final Collection<DaemonInfo> ... | connection = connectToIdleDaemon(idleDaemons, constraint); |
493,554 | private Mono<PagedResponse<RoleAssignmentInner>> listForScopeSinglePageAsync(String scope, String filter) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (scope == ... | )).readOnly())); |
1,500,933 | public List<Task> createTasks() {<NEW_LINE>List<Task> <MASK><NEW_LINE>int index = 0;<NEW_LINE>try {<NEW_LINE>LOGGER.info("job id: {}, source: {}, channel: {}, sink: {}", getJobInstanceId(), jobConf.get(JobConstants.JOB_SOURCE_CLASS), jobConf.get(JobConstants.JOB_CHANNEL), jobConf.get(JobConstants.JOB_SINK));<NEW_LINE>S... | taskList = new ArrayList<>(); |
1,748,953 | final GetVpcLinksResult executeGetVpcLinks(GetVpcLinksRequest getVpcLinksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getVpcLinksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | (super.beforeMarshalling(getVpcLinksRequest)); |
1,190,713 | public DBParameterGroup unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DBParameterGroup dBParameterGroup = new DBParameterGroup();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth... | ().unmarshall(context)); |
487,288 | private static List<TypeRecord> recursiveDepthFirstSearch(final ArrayDeque<TypeRecord> pathFromRoot, final TypeElement target, final Types types) {<NEW_LINE>if (pathFromRoot.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final TypeRecord currentRecord = pathFromRoot.peekLast();<NEW_LINE>final TypeElement curren... | asElement(interfaceDeclared), interfaceDeclared)); |
317,176 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.ws.messaging.security.beans.Permission#addUsersAndGroupsToAllActions(java.util.Set, java.util.Set)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void addUsersAndGroupsToAllActions(Set<String> users, Set<String> groups) {<NEW_LINE>Set<String> tempUsers = ne... | addAllGroupsToRole(tempGroups, MessagingSecurityConstants.OPERATION_TYPE_SEND); |
1,836,776 | protected void less(CommandSession session, Process process, String[] argv) throws Exception {<NEW_LINE>Options opt = parseOptions(session, Less.usage(), argv);<NEW_LINE>List<Source> <MASK><NEW_LINE>if (opt.args().isEmpty()) {<NEW_LINE>opt.args().add("-");<NEW_LINE>}<NEW_LINE>for (String arg : opt.args()) {<NEW_LINE>if... | sources = new ArrayList<>(); |
840,785 | private SchemaElementPrinter<GraphQLSchema> schemaPrinter() {<NEW_LINE>return (out, schema, visibility) -> {<NEW_LINE>GraphQLObjectType queryType = schema.getQueryType();<NEW_LINE>GraphQLObjectType mutationType = schema.getMutationType();<NEW_LINE>GraphQLObjectType subscriptionType = schema.getSubscriptionType();<NEW_L... | boolean needsSchemaPrinted = options.isIncludeSchemaDefinition(); |
716,297 | public void openComplete(int newrc, final LedgerHandle newlh, Object newctx) {<NEW_LINE>if (newrc != BKException.Code.OK) {<NEW_LINE>if (skipUnrecoverableLedgers) {<NEW_LINE>LOG.warn("BK error opening ledger: {}, skip recover it.", lId, BKException.create(newrc));<NEW_LINE>finalLedgerIterCb.processResult(BKException.Co... | , BKException.create(newrc)); |
356,491 | private Hover provideHover(String value, int offset, int nodeStartOffset, TextDocument doc, SpringProcessLiveData[] processLiveData) {<NEW_LINE>try {<NEW_LINE>LocalRange range = parsePropertyOnHoverOffset(value, offset);<NEW_LINE>if (range != null) {<NEW_LINE>String propertyKey = value.substring(range.getStart(<MASK><N... | ), range.getEnd()); |
263,313 | private static void initConfig() {<NEW_LINE>System.setProperty("server.servlet.session.timeout", String.valueOf(CONF.sessionTimeoutSec()));<NEW_LINE>// JavaMail configuration properties<NEW_LINE>System.setProperty("spring.mail.host", CONF.mailHost());<NEW_LINE>System.setProperty("spring.mail.port", String.valueOf<MASK>... | (CONF.mailPort())); |
671,091 | private List<String> filterWorkOrWorkCompleted(Business business, EffectivePerson effectivePerson, List<Entry> entries) throws Exception {<NEW_LINE>List<Entry> parts = entries.stream().filter(o -> StringUtils.equals(o.getType(), Entry.TYPE_WORKCOMPLETED) || StringUtils.equals(o.getType(), Entry.TYPE_WORK)).collect(Coll... | ids = new ArrayList<>(); |
811,639 | private static void buildColumnSpec(IcebergColumnInfo column, PartitionSpec.Builder builder) {<NEW_LINE>if (StringUtils.isEmpty(column.getPartitionStrategy())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(IcebergPartition.forName(column.getPartitionStrategy())) {<NEW_LINE>case IDENTITY:<NEW_LINE>builder.identity(colum... | day(column.getName()); |
1,253,684 | private DataBase select(String logicDbName, DatabaseSet dbSet, DalHints hints, String shard, boolean isMaster, boolean isSelect) throws DalException {<NEW_LINE>if (dbSet instanceof ClusterDatabaseSet && !((ClusterDatabaseSet) dbSet).getCluster().getRouteStrategyConfig().multiMaster()) {<NEW_LINE>return clusterSelect(db... | hints, shard, isMaster, isSelect); |
1,629,760 | public void handleRequest(HttpServerExchange exchange) throws Exception {<NEW_LINE>var request = MongoRequest.of(exchange);<NEW_LINE>var <MASK><NEW_LINE>if (request.isInError()) {<NEW_LINE>next(exchange);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>UUID sid;<NEW_LINE>try {<NEW_LINE>sid = UUID.fromString(request.getSid());<NEW... | response = MongoResponse.of(exchange); |
872,353 | public static void writeTypeAndObj(DataOutputStream out, byte rtype, Object obj) throws IOException {<NEW_LINE>out.write(rtype);<NEW_LINE>switch(rtype) {<NEW_LINE>case TYPE_VOID:<NEW_LINE>break;<NEW_LINE>case TYPE_BYTE:<NEW_LINE>out.writeByte((Byte) obj);<NEW_LINE>break;<NEW_LINE>case TYPE_BOOL:<NEW_LINE>out.writeByte(... | .writeFloat((Float) obj); |
677,778 | public CachingStatus generateLogBloomCache(final long start, final long stop) {<NEW_LINE>checkArgument(start % BLOCKS_PER_BLOOM_CACHE == 0, "Start block must be at the beginning of a file");<NEW_LINE>if (!cachingStatus.isCaching()) {<NEW_LINE>try {<NEW_LINE>cachingStatus.cachingCount.incrementAndGet();<NEW_LINE>LOG.inf... | blockNum, blockNum + BLOCKS_PER_BLOOM_CACHE, cacheFile); |
937,368 | public void transform() {<NEW_LINE>File destinationFile = getDestinationFile().get().getAsFile();<NEW_LINE>getFs().copy(copySpec -> {<NEW_LINE>copySpec.from(getHtmlFile());<NEW_LINE>copySpec.into(destinationFile.getParentFile());<NEW_LINE>copySpec.rename(s -> destinationFile.getName());<NEW_LINE>// TODO: Maybe this cou... | get().getAsFile()); |
1,031,634 | public static VectorMeasurementSchema deserializeFrom(InputStream inputStream) throws IOException {<NEW_LINE>VectorMeasurementSchema vectorMeasurementSchema = new VectorMeasurementSchema();<NEW_LINE>vectorMeasurementSchema.<MASK><NEW_LINE>int measurementSize = ReadWriteIOUtils.readInt(inputStream);<NEW_LINE>Map<String,... | deviceId = ReadWriteIOUtils.readString(inputStream); |
421,266 | public boolean exportProfile(String appModeKey, List<String> settingsTypesKeys) {<NEW_LINE>ApplicationMode appMode = ApplicationMode.valueOfStringKey(appModeKey, null);<NEW_LINE>if (app != null && appMode != null) {<NEW_LINE>List<ExportSettingsType> settingsTypes = new ArrayList<>();<NEW_LINE>for (String key : settings... | fileName, null, settingsItems, true); |
796,228 | private static List<ITestNGMethod> sortMethods(boolean forTests, List<ITestNGMethod> allMethods, Comparator<ITestNGMethod> comparator) {<NEW_LINE>List<ITestNGMethod> sl = Lists.newArrayList();<NEW_LINE>List<ITestNGMethod> pl = Lists.newArrayList();<NEW_LINE>ITestNGMethod[] allMethodsArray = allMethods.toArray(new ITest... | allMethodsArray, sl, pl, comparator); |
1,665,559 | private void printEntityInstantiation(HDLNodeBuildIn node, int num, File root) throws IOException, HDLException {<NEW_LINE>String entityName = node.getHdlEntityName();<NEW_LINE>out.print("gate").print(num).print(": entity work.").print(entityName);<NEW_LINE>final String label = node.getElementAttributes().getLabel();<N... | .dec().dec(); |
1,627,660 | private void loadNode407() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupFolderType_DefaultHttpsGroup_TrustList_LastUpdateTime, new QualifiedName(0, "LastUpdateTime"), new LocalizedText("en", "LastUpdateTime"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.v... | .expanded(), false)); |
1,015,828 | private static void assertMultiColumnLeft(RegressionEnvironment env) {<NEW_LINE>String[] <MASK><NEW_LINE>env.sendEventBean(new SupportBean_S0(1, "A_1", "B_1"));<NEW_LINE>env.assertPropsNew("s0", fields, new Object[] { 1, "A_1", "B_1", null, null, null });<NEW_LINE>env.sendEventBean(new SupportBean_S1(2, "A_1", "B_1"));... | fields = "s0.id, s0.p00, s0.p01, s1.id, s1.p10, s1.p11".split(","); |
1,240,264 | public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {<NEW_LINE>final Module module = mActivity.getModule();<NEW_LINE>if (module == null)<NEW_LINE>return;<NEW_LINE>final String packageName = module.packageName;<NEW_LINE>PreferenceManager prefManager = getPreferenceManager();<NEW_LINE>prefManager.s... | injectToPreferenceManager(prefManager, module.packageName); |
841,673 | public static Properties readEnvironment(IProcess proc, long environPointer) throws MemoryFault {<NEW_LINE>Properties env = new Properties();<NEW_LINE>// Walk NULL terminated char **<NEW_LINE>long slotCursor = environPointer;<NEW_LINE>long stringPtr = proc.getPointerAt(slotCursor);<NEW_LINE>while (0 != stringPtr) {<NEW... | int) (ptr - stringPtr)]; |
1,409,284 | public boolean prepareFormat() throws Exception {<NEW_LINE>boolean ledgerRootExists = null != <MASK><NEW_LINE>boolean availableNodeExists = null != zk.exists(bookieRegistrationPath, false);<NEW_LINE>// Create ledgers root node if not exists<NEW_LINE>if (!ledgerRootExists) {<NEW_LINE>ZkUtils.createFullPathOptimistic(zk,... | zk.exists(ledgersRootPath, false); |
28,056 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.impetus.kundera.query.QueryImpl#populateEntities(com.impetus.kundera<NEW_LINE>* .metadata.model.EntityMetadata, com.impetus.kundera.client.Client)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected List<Object> populateEntities(EntityMetadata m, Clien... | appMetadata.getQuery(getJPAQuery()); |
1,543,918 | public Response convertToPublish(TransportProtos.GetAttributeResponseMsg msg) throws AdaptorException {<NEW_LINE>if (msg.getSharedStateMsg()) {<NEW_LINE>if (StringUtils.isEmpty(msg.getError())) {<NEW_LINE>Response response = new Response(CoAP.ResponseCode.CONTENT);<NEW_LINE>TransportProtos.AttributeUpdateNotificationMs... | setPayload(result.toString()); |
814,964 | private void removeListener(@Nullable MessageListener listener, Collection<? extends Topic> topics) {<NEW_LINE>Assert.notNull(topics, "Topics must not be null");<NEW_LINE>if (listener != null && listenerTopics.get(listener) == null) {<NEW_LINE>// Listener not subscribed<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (topics.i... | topics = listenerTopics.get(listener); |
1,160,085 | protected void configure() {<NEW_LINE>bind(SingularityHealthchecker.class).in(Scopes.SINGLETON);<NEW_LINE>bind(SingularityNewTaskChecker.class).in(Scopes.SINGLETON);<NEW_LINE>bind(SingularityCleanupPoller.class).in(Scopes.SINGLETON);<NEW_LINE>bind(SingularityExpiringUserActionPoller.class).in(Scopes.SINGLETON);<NEW_LIN... | ).in(Scopes.SINGLETON); |
755,208 | private void applyChangesAtRewriteMode(@Nonnull final List<LeafBlockWrapper> blocksToModify, @Nonnull final FormattingModel model) {<NEW_LINE>FormattingDocumentModel documentModel = model.getDocumentModel();<NEW_LINE>Document document = documentModel.getDocument();<NEW_LINE>CaretOffsetUpdater caretOffsetUpdater = new C... | whiteSpace.getEndOffset() + shift); |
1,630,388 | private void configure() {<NEW_LINE>try {<NEW_LINE>Files.createDirectories(configFile.getParent());<NEW_LINE>Files.createDirectories(confPathRepo);<NEW_LINE>Files.createDirectories(confPathData);<NEW_LINE>Files.createDirectories(confPathLogs);<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw new UncheckedIOException(e... | config.put("node.portsfile", "true"); |
393,842 | public void configure() {<NEW_LINE>errorHandler(defaultErrorHandler());<NEW_LINE>onException(Exception.class).to(StaticEndpointBuilders.direct(MF_ERROR_ROUTE_ID));<NEW_LINE>// @formatter:off<NEW_LINE>// this EP's name is matching the JsonExternalSystemRequest's ExternalSystem and Command<NEW_LINE>from(StaticEndpointBui... | HEADER_PINSTANCE_ID, Integer.class))); |
1,604,470 | public AwsRedshiftClusterIamRole unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsRedshiftClusterIamRole awsRedshiftClusterIamRole = new AwsRedshiftClusterIamRole();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()... | class).unmarshall(context)); |
490,774 | public static GpxAppearanceInfo fromJson(@NonNull JSONObject json) {<NEW_LINE>GpxAppearanceInfo gpxAppearanceInfo = new GpxAppearanceInfo();<NEW_LINE>boolean hasAnyParam = json.has("color");<NEW_LINE>gpxAppearanceInfo.color = json.optInt("color");<NEW_LINE>hasAnyParam |= json.has("width");<NEW_LINE>gpxAppearanceInfo.wi... | hasAnyParam |= json.has("split_type"); |
430,947 | public RFuture<Map<String, String>> infoAsync(InfoSection section) {<NEW_LINE>if (section == InfoSection.ALL) {<NEW_LINE>return executeAsync(null, StringCodec.INSTANCE, -1, RedisCommands.INFO_ALL);<NEW_LINE>} else if (section == InfoSection.DEFAULT) {<NEW_LINE>return executeAsync(null, StringCodec.INSTANCE, -1, RedisCo... | , -1, RedisCommands.INFO_MEMORY); |
1,465,611 | public void removeAllMenuItems(String sMenuID) {<NEW_LINE>try {<NEW_LINE>items_mon.enter();<NEW_LINE>Map<String, List<MenuItem>> mTypes = items_map.get(sMenuID);<NEW_LINE>if (mTypes == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// remove one MenuItem for each resource-id in the assumption that each view instance<NEW_... | Debug.out("Removing arbitrary menu item for " + sMenuID); |
561,756 | private void checkInstalledPluginDependencies(PluginDescriptor pluginDescriptor) {<NEW_LINE>final Set<PluginId> notInstalled = new HashSet<>();<NEW_LINE>final Set<PluginId> disabledIds = new HashSet<>();<NEW_LINE>final PluginId[<MASK><NEW_LINE>final PluginId[] optionalDependentPluginIds = pluginDescriptor.getOptionalDe... | ] dependentPluginIds = pluginDescriptor.getDependentPluginIds(); |
1,312,085 | public void uninitializedNonNullField(FieldBinding field, ASTNode location) {<NEW_LINE>char[][] nonNullAnnotationName = this.options.nonNullAnnotationName;<NEW_LINE>if (!field.isNonNull()) {<NEW_LINE>String[] arguments = new String[] { new String(field.readableName()), new String(field.type.readableName()), new String(... | nonNullAnnotationName.length - 1]) }; |
1,838,108 | private boolean missingGameData() {<NEW_LINE>String lang = Locale.getDefault().toString();<NEW_LINE>if (lang.startsWith("pl")) {<NEW_LINE>File pl_mpq <MASK><NEW_LINE>if (!pl_mpq.exists()) {<NEW_LINE>if (!isDownloadingTranslation) {<NEW_LINE>isDownloadingTranslation = true;<NEW_LINE>sendDownloadRequest("https://github.c... | = new File(externalDir + "/pl.mpq"); |
178,327 | public void store() {<NEW_LINE>Properties p = Properties.getDefault().getProperties("debugger.options.JPDA");<NEW_LINE>p.setBoolean("UseStepFilters", useStepFiltersCheckBox.isSelected());<NEW_LINE>p.setBoolean("FilterSyntheticMethods", filterSyntheticCheckBox.isSelected());<NEW_LINE>p.setBoolean("FilterStaticInitialize... | filterClassesModel.getValueAt(i, 0); |
1,020,777 | public <T> void encode(T t, ByteBuf out) {<NEW_LINE>BatchResultMessage batchResultMessage = (BatchResultMessage) t;<NEW_LINE>List<AbstractResultMessage> msgs = batchResultMessage.getResultMessages();<NEW_LINE>List<Integer> msgIds = batchResultMessage.getMsgIds();<NEW_LINE>final ByteBuf buffer = Unpooled.buffer(1024);<N... | messageCodec = MessageCodecFactory.getMessageCodec(typeCode); |
667,392 | public void updateNodes(Client client, Set<DiscoveryNode> nodes, RerouteService rerouteService) {<NEW_LINE>final List<AsyncNodeFetch> newFetches;<NEW_LINE>synchronized (mutex) {<NEW_LINE>// clean up nodes that left the cluster<NEW_LINE>nodeStates.keySet().removeIf(n -> nodes.contains(n) == false);<NEW_LINE>// skip node... | nodeStates.put(newNode, nodeStateHolder); |
1,633,688 | public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndAllElementsNotNull(sources, 2);<NEW_LINE>Date date = null;<NEW_LINE>if (sources[0] instanceof Date) {<NEW_LINE>date = (Date) sources[0];<NEW_LINE>} else... | Calendar givenDate = Calendar.getInstance(); |
623,889 | private Object lightsListHandler(String userId, String requestIp) {<NEW_LINE>HueError[] theErrors = null;<NEW_LINE>Map<String, DeviceResponse> deviceResponseMap = null;<NEW_LINE>if (bridgeSettings.isTraceupnp())<NEW_LINE>log.info("Traceupnp: hue lights list requested by user: " + userId + " from address: " + requestIp)... | deviceResponse = DeviceResponse.createResponse(device); |
1,648,799 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabel1 = <MASK><NEW_LINE>projectsComboBox = new javax.swing.JComboBox();<NEW_LINE>templatesPanel = new TemplatesPanelGUI(t... | new javax.swing.JLabel(); |
1,382,662 | private String random128BitHex() {<NEW_LINE>try {<NEW_LINE>MessageDigest md = MessageDigest.getInstance("SHA-256");<NEW_LINE>ByteBuffer b = ByteBuffer.allocate(52);<NEW_LINE>b.putInt(getUniqueId());<NEW_LINE>b.putInt(this.hashCode());<NEW_LINE>b.putInt(md.hashCode());<NEW_LINE>b.putLong(System.nanoTime());<NEW_LINE>b.p... | digest(b.array()); |
639,259 | public void execute(InterpretableExecution execution) {<NEW_LINE>ActivityImpl activity = <MASK><NEW_LINE>ActivityBehavior activityBehavior = activity.getActivityBehavior();<NEW_LINE>if (activityBehavior == null) {<NEW_LINE>throw new PvmException("no behavior specified in " + activity);<NEW_LINE>}<NEW_LINE>LOGGER.debug(... | (ActivityImpl) execution.getActivity(); |
1,233,853 | public static <T> void createHistoryGroups(List<Pair<Long, T>> pairs, Map<Integer, List<T>> groups, List<Object> items) {<NEW_LINE>int previousHeader = -1;<NEW_LINE>int monthsDisplayed = 0;<NEW_LINE>Calendar currentDateCalendar = Calendar.getInstance();<NEW_LINE>currentDateCalendar.setTimeInMillis(System.currentTimeMil... | markerCalendar.get(Calendar.MONTH); |
1,232,406 | private void dump(PrintWriter pw) {<NEW_LINE>pw.println(" model = " + getProperty("model"));<NEW_LINE>pw.println(" arch = " + getProperty("arch"));<NEW_LINE>pw.println(" wordFunction = " + getProperty("wordFunction"));<NEW_LINE>if (this.getMode() == Mode.TRAIN || this.get... | (" sgml = " + getProperty("sgml")); |
805,339 | private void readAttributes(XMLStreamReader reader) throws Exception {<NEW_LINE>String classAtt = "";<NEW_LINE>String typeAtt = "";<NEW_LINE>for (int i = 0; i < reader.getAttributeCount(); i++) {<NEW_LINE>String attName = reader.<MASK><NEW_LINE>if (ATTRIBUTES_CLASS.equalsIgnoreCase(attName)) {<NEW_LINE>classAtt = reade... | getAttributeName(i).getLocalPart(); |
460,295 | public static Callable<String> makeFxNamespaceCreator(CompletionContext ctx) {<NEW_LINE>final String existingPrefix = ctx.findFxmlNsPrefix();<NEW_LINE>if (existingPrefix != null) {<NEW_LINE>return new Callable<String>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String call() throws Exception {<NEW_LINE>return exis... | ), Position.Bias.Forward); |
1,229,075 | public static DescribeDohSubDomainStatisticsSummaryResponse unmarshall(DescribeDohSubDomainStatisticsSummaryResponse describeDohSubDomainStatisticsSummaryResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDohSubDomainStatisticsSummaryResponse.setRequestId(_ctx.stringValue("DescribeDohSubDomainStatisticsSummaryRespo... | (_ctx.integerValue("DescribeDohSubDomainStatisticsSummaryResponse.TotalPages")); |
394,693 | public IStringExpression resolvePartial(final Evaluatee ctx) throws ExpressionEvaluationException {<NEW_LINE>final List<Object> expressionChunksNew = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>StringBuilder lastConstantBuffer = null;<NEW_LINE>// did we changed something (i.e. do we evaluated some context variables?)<NE... | of(lastConstantBuffer.toString()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.