id stringlengths 7 14 | text stringlengths 1 37.2k |
|---|---|
70062587_21 | public static boolean bufferedImagesEqualQuick(BufferedImage image1, BufferedImage image2) {
DataBuffer dataBuffer1 = image1.getRaster().getDataBuffer();
DataBuffer dataBuffer2 = image2.getRaster().getDataBuffer();
if (dataBuffer1 instanceof DataBufferByte && dataBuffer2 instanceof DataBufferByte) {
... |
70102533_8 | @SafeVarargs
@SuppressWarnings({ "unchecked", "varargs" }) // TODO: Explain why this is ok.
public static <T> Stream<T> concat(Stream<? extends T>... streams) {
return concatInternal(
(Stream<T>[]) streams,
size -> (Spliterator<T>[]) new Spliterator<?>[size],
Stream::spliterator,
ConcatSpliter... |
70140762_12 | public BigDecimal getTotalSum() {
return getItemPriceSum();
} |
70146477_40 | public void run(AtomicBoolean bootstrapInProgress) {
if ((boolean) configuration.get(Augmenter.Configuration.BOOTSTRAP) == false) {
LOG.info("Skipping active schema bootstrapping");
bootstrapInProgress.set(false);
return;
}
LOG.info("Running bootstrapping");
bootstrapInProgress... |
70147050_0 | @JsonIgnore
public boolean equals(final Object o) {
// check if property attributes are equal.
if (o == null || !(o instanceof Property)) {
return false;
}
erty compare = (Property)o;
try {
System.out.println(this.getName());
System.out.println(compare.getName() );
System.out.print... |
70162405_11 | public static String generateSqlForExportSpec(ExaMetadata meta, ExaExportSpecification exportSpec) {
// Mandatory parameters
Map<String, String> params = exportSpec.getParameters();
String hcatDB = getMandatoryParameter(params, "HCAT_DB");
String hcatTable = getMandatoryParameter(params, "HCAT_TABLE");... |
70189011_6 | static String calculateConfigurationBeanName(String className, String configurationBeanName) {
if (className == null) {
throw new IllegalArgumentException("Invalid class name");
}
if (configurationBeanName == null || !NAME_PATTERNS.matcher(configurationBeanName).matches()) {
throw new IllegalArgumentException("I... |
70198875_4 | @WorkerThread
public static LottieResult<LottieComposition> fromAssetSync(Context context, String fileName) {
String cacheKey = "asset_" + fileName;
return fromAssetSync(context, fileName, cacheKey);
} |
70219747_191 | @Override
public void createAccessDefinition(MCRRuleMapping rulemapping) {
if (!existAccessDefinition(rulemapping.getPool(), rulemapping.getObjId())) {
Session session = MCRHIBConnection.instance().getSession();
MCRACCESSRULE accessRule = getAccessRule(rulemapping.getRuleId());
if (accessRu... |
70232982_0 | public void getAwarenessData() {
subscription.add(
rxAwareness.snapshot().getHeadphoneState()
.map(headphoneState -> getHeadphoneStateString(headphoneState.getState()))
.subscribe(view::onHeadphoneStateLoaded, throwable -> Log.e(TAG, "Error getting headphone state", throw... |
70246517_4 | public static void install(@NonNull Instrumentation instrumentation) {
Context context = instrumentation.getTargetContext();
if (context == null) {
String instrumentationName = instrumentation.getClass().getSimpleName();
throw new IllegalStateException(
"The " + instrumentationNa... |
70371145_13 | @Override
public Subscription dispatch(Observable<A> action) {
return action.subscribe(dispatchAction);
} |
70444046_0 | public Pagination() {
} |
70470785_0 | public Table parse(String RecordDefineStr){
//TODO Auto-generated method stub
return new Table();
} |
70492026_1 | private Callable<ResponseEntity<User>> get(final UUID userId) {
return () -> ResponseEntity.ok(userService
.get(userId)
.orElseThrow(supplier(userId))
);
} |
70515162_54 | protected Map<String, String> generateCommonIamPrincipalAuthMetadata(
final String iamPrincipalArn) {
Map<String, String> metadata = Maps.newHashMap();
metadata.put(CerberusPrincipal.METADATA_KEY_USERNAME, iamPrincipalArn);
metadata.put(CerberusPrincipal.METADATA_KEY_IS_IAM_PRINCIPAL, Boolean.TRUE.toString())... |
70584705_4 | public static List<String[]> getServiceIpPortList(String serviceAddress) {
List<String[]> result = new ArrayList<String[]>();
if (serviceAddress != null && serviceAddress.length() > 0) {
String[] hostArray = serviceAddress.split(",");
for (String host : hostArray) {
int idx = host.la... |
70629319_1 | @Override
public Properties getDefaultProperties() {
Properties properties = new Properties();
properties.setProperty("newPlaylist", hotkeyToString(DEFAULT_NEWPLAYLIST));
properties.setProperty("importPlaylist", hotkeyToString(DEFAULT_IMPORTPLAYLIST));
properties.setProperty("undo", hotkeyToString(DEFAULT_UNDO)... |
70711909_35 | public static TokenEndpoint getTokenEndpoint(
HttpProvider httpProvider,
ClientCredentialsProvider clientCredentialsProvider) {
return new TokenEndpointImpl(reuseClock(clientCredentialsProvider), httpProvider, clientCredentialsProvider, new JacksonSerializer(), new NoRetryPolicy());
} |
70738287_0 | public <A extends Annotation> A parse( String json, Class<A> annotation ) {
Map<?, ?> map = gson.fromJson( json, Map.class );
return createAnnotation( annotation, map );
} |
70772509_1 | public void run(final CrawlerSettings crawlerSettings, final List<Memo> memos) throws Exception {
CrawlConfig config = crawlerSettings.getCrawlConfig();
PageFetcher pageFetcher = new PageFetcher(config);
RobotstxtConfig robotstxtConfig = new RobotstxtConfig();
RobotstxtServer robotstxtServer = new Robo... |
70778375_0 | public static GenCodeResponse genCode(GenCodeRequest request){
GenCodeResponse response = new GenCodeResponse();
try{
response.setUserConfigMap(UserConfigService.userConfigMap);
response = UserConfigService.readConfigFile(request.getProjectPath());
LOGGER.info("UserConfigService.readC... |
70780002_17 | public static boolean migrateModelV3(JsonNode decisionTableNode, ObjectMapper objectMapper) {
// migrate to v2
boolean wasMigrated = migrateModel(decisionTableNode, objectMapper);
// migrate to v3
if (decisionTableNode.has("modelVersion") && decisionTableNode.get("modelVersion").asText().equals("2") &&... |
70781239_1 | @Override
public boolean hasUserInput() {
if (slots.isEmpty()) {
return false;
}
return slots.getFirstSlot().anyInputToTheRight();
} |
70809374_64 | @Override
public BotTriggerConfiguration readBotTrigger(String intent) {
try {
BotTriggerConfiguration botTriggerConfiguration = botTriggersCache.get(intent);
if (botTriggerConfiguration == null) {
botTriggerConfiguration = botTriggerStore.readBotTrigger(intent);
botTriggersC... |
70817233_5 | @VisibleForTesting(otherwise = VisibleForTesting.PRIVATE)
static boolean isMinutesDiffMax(DateTime dateTime1, DateTime dateTime2, int maxMinutes) {
Period period = new Period(dateTime1, dateTime2);
Duration duration = period.toDurationFrom(dateTime1);
return Math.abs(duration.toStandardMinutes().getMinutes(... |
70868306_1 | public static int getCommitType(String[] splits) {
if (splits.length == 4)
return COMMIT_TYPE_REMOTE;
if (splits.length != 3)
return COMMIT_TYPE_TEMP;
String type = splits[1];
if ("tags".equals(type))
return COMMIT_TYPE_TAG;
return COMMIT_TYPE_HEAD;
} |
70904435_14 | public void operatorTakeLastBuffer(){
Observable.just(1, 2, 3, 4, 5)
.takeLastBuffer(3)
.subscribe(new Subscriber<List<Integer>>() {
@Override
public void onError(Throwable error) {
System.err.println("Error: " + error.getMessage());
... |
70905504_2 | public boolean hasNoChanges() {
return getArtifacts().isEmpty();
} |
70921758_68 | public static void scriptSession(String path, String filename) {
EntityManager em = null;
try {
logger.info("Running database script from resources...");
em = CommonsEntityManagerFactory.getEntityManager();
em.beginTransaction();
ResourceSqlScriptExecutor sqlScriptExecutor = n... |
70948568_133 | @SafeVarargs
public static <T> CollectionCase<List<T>, T> nonemptyListOf(Case<T>... cases) {
return new CollectionCase.ListCase<T>()
.withSizeOf(Any.integer().inRange(1, 100))
.withElementsOf(new UnionCase<>(cases));
} |
71057302_1 | @Activate
void activate(ComponentContext context, Config config) {
super.activate(context, config.id(), config.alias(), config.enabled(), config.modbusUnitId(), this.cm, "Modbus",
config.modbus_id());
this.config = config;
} |
71073678_31 | public static Calendar getCalendar(Object date, Calendar defaultValue) {
Calendar cal = new GregorianCalendar();
if (date instanceof java.util.Date) {
cal.setTime((java.util.Date) date);
return cal;
} else if (date != null) {
DateFormat formatter = DateFormat.getDateInstance(DateForm... |
71103781_3 | @Override
public void register(URL url) {
if (destroyed.get()) {
return;
}
super.register(url);
failedRegistered.remove(url);
failedUnregistered.remove(url);
try {
// 向服务器端发送注册请求
doRegister(url);
} catch (Exception e) {
Throwable t = e;
// 如果开启了启动时检测,则直接抛出异常
boolean check = getUrl().getParameter(Con... |
71151164_2 | public void searchAndPrintResults(Filter filter) {
List<String> results = ldapTemplate.search("ou=patrons,dc=inflinx,dc=com", filter.encode(),
new AbstractParameterizedContextMapper<String>() {
@Override
protected String doMapFromContext(DirContextOperations context) {
return context.getSt... |
71162914_1 | public boolean validate(CreditCard creditCard) {
Character lastDigit = creditCard.getNumber().charAt(creditCard.getNumber().length() - 1);
if (Integer.parseInt(lastDigit.toString()) % 2 == 0) {
return true;
} else {
return false;
}
} |
71163137_1 | public static String getHello(String lang){
return "Hello Time Hacker";
} |
71171131_6 | public static void openLoginInBrowser(Activity contextActivity, AuthorizationRequest request) {
Intent launchBrowser = new Intent(Intent.ACTION_VIEW, request.toUri());
contextActivity.startActivity(launchBrowser);
} |
71183878_8 | @Override
@Nullable
public Date asDate() {
if (!value.isJsonPrimitive()) {
return null;
}
long ms = Long.parseLong(value.getAsString()) * 1000;
return new Date(ms);
} |
71197756_54 | void prepare() {
boolean unpacked = false;
final File lockFilePath = new File(mContext.getFilesDir(), LOCK_FILE);
Systrace.beginSection(TRACE_TAG_REACT_JAVA_BRIDGE, "UnpackingJSBundleLoader.prepare");
// Make sure we don't release the lock by letting other thread close the lock file
synchronized(UnpackingJS... |
71227768_11 | public static Property extractProperty(String propertyDefinition) {
Property property = null;
if (propertyDefinition != null) {
String[] propertyAttributes = propertyDefinition.split(PIPE_REGEX, 2);
String name = propertyAttributes[NAME_INDEX].trim();
// Valeurs par défaut
boole... |
71230327_0 | public String message() {
return this.serviceProperties.getMessage();
} |
71263775_2 | public int parseDAT(@NonNull InputStream is, @NonNull IPFilter filter)
{
int ruleCount = 0;
long lineNum = 0;
int parseErrorCount = 0;
LineIterator it;
try {
it = IOUtils.lineIterator(is, "UTF-8");
} catch (IOException e) {
Log.e(TAG, Log.getStackTraceString(e));
retur... |
71357459_1 | @MVCMember
public void setModel(@Nonnull SampleModel model) {
this.model = model;
} |
71366567_6 | @Override
public void createBinding(ServiceInstance instance, ServiceBinding binding) {
// use app guid to send bind request
//don't need to talk to kafka, just return credentials.
log.info("binding app: " + binding.getAppGuid() + " to topic: " + instance.getParameters().get(TOPIC_NAME_KEY));
} |
71369123_8 | RestResponseEntity invoke(Object obj, LambdaProxyRequest request) {
MethodInvocationContext context = new MethodInvocationContext(lambdaLocalPath, methodPath, request);
try {
List<Object> args = paramRetrievers.stream()
.map(paramRetriever -> paramRetriever.retrieve(request, context))
... |
71376921_7 | public <T> Observable<T> read(final String value, final Class<T> classInstance) {
return Observable.fromCallable(new Callable<T>() {
@Override
public T call() throws Exception {
return GsonFunctions.readValue(gson, value, classInstance);
}
});
} |
71434550_493 | @Override
public void beforePhase(PhaseEvent phaseEvent) {
if (!requestingUnprotectedPage() &&
anonymousAccessIsNotAllowed()) {
throw new NotLoggedInException();
}
} |
71470246_3 | private boolean exists(final String sha1) {
final Blob blob = gcsStorage.get(gcsProperties.getBucketName(), sha1);
if (blob == null) {
return false;
}
return blob.exists();
} |
71492242_3 | public String getRoot() {
return root;
} |
71499649_0 | @Override
public void execute() throws MojoFailureException {
// Bom
AppBom appBom = new AppBom()
.withSpringBootVersion(this.bootVersion)
.withAppMetadataMavenPluginVersion(this.appMetadataMavenPluginVersion);
AppDefinition app = new AppDefinition();
app.setName(this.generatedApp.getName());
app.setType(th... |
71517454_141 | public boolean isConsentTermOverlap(ConsentDto consentDto,
Date conStartDate, Date conEndDate) {
boolean isOverlap = false;
Date selStartDate = consentDto.getConsentStart();
Date selEndDate = consentDto.getConsentEnd();
isOverlap = isDatesOverlap(selStartDate, selEndDate, conStartDate,
conEndDate);
return i... |
71550858_0 | public Flowable<List<ResultBean>> getNewsList(String type, int page){
return service.getNewsList(type, page)
.compose(RxUtils.handleResult());
} |
71561927_4 | public static Matcher<Solid> matchesSolid(Vector3... vertexes) {
return new SolidMatcher(vertexes);
} |
71636870_6 | public Point onSwipe() {
if (swipeDirection == SwipeDirection.LEFT_TO_RIGHT) {
return new Point(parentView.getWidth() - target.getWidth(), target.getY());
} else {
return new Point(target.getX(), parentView.getHeight() - target.getHeight());
}
} |
71651118_6 | public long parseLong(String k) {
return Long.parseLong((String) m.get(k));
} |
71697731_3 | public static void bind(@Nullable Context context) {
bind(context, context);
} |
71725051_15 | @Document
public List<String> prepareTransfers(String seed, int security,
List<Transfer> transfers,
String remainder,
List<Input> inputs,
List<Transaction> tips,
... |
71742185_44 | @Override
public boolean oauth2validateAccessToken(WxMpOAuth2AccessToken oAuth2AccessToken) {
StringBuilder url = new StringBuilder();
url.append("https://api.weixin.qq.com/sns/auth?");
url.append("access_token=").append(oAuth2AccessToken.getAccessToken());
url.append("&openid=").append(oAuth2AccessToken.getOpe... |
71791406_2 | public int getCurrentProgress() {
long cur = System.currentTimeMillis();
TokenCode active = getActive(cur);
if (active == null)
return 0;
long total = active.mUntil - active.mStart;
long state = total - (cur - active.mStart);
return (int) (state * 1000 / total);
} |
71833308_4 | @GET
@Path("/{email: [\\w\\.]+@[\\w\\.]+}/subscriptions")
@Produces(MediaType.APPLICATION_JSON)
public Response getAllSubscriptions(@PathParam("username") String username, @PathParam("email") String subscriberId) {
logger.debug("Fetch all subscriptions for subscriber {} by user {}", subscriberId, username);
try... |
71840517_23 | private Persist<AuctionEvent> reply(CommandContext<PlaceBidResult> ctx, PlaceBidResult result) {
ctx.reply(result);
return ctx.done();
} |
71840572_88 | public void startBeatingHeart() {
if (heartbeatAction == null) {
throw new IllegalStateException("You must call bind() with a valid non-null " + Heartbeat.class.getSimpleName());
}
stopBeatingHeart();
beating = true;
handler.post(heartbeat);
} |
71849550_0 | public static String stripTrailingSlash(String stringWithPossibleTrailingSlash){
if (stringWithPossibleTrailingSlash.endsWith("/")){
return stringWithPossibleTrailingSlash.substring(0, stringWithPossibleTrailingSlash.length()-1);
}
return stringWithPossibleTrailingSlash;
} |
71876131_7 | public List<com.nilhcem.devfestnantes.data.app.model.Session> toAppSessions(@Nullable List<Session> from, @NonNull Map<Integer, com.nilhcem.devfestnantes.data.app.model.Speaker> speakersMap) {
if (from == null) {
return null;
}
return stream(from).map(session -> new com.nilhcem.devfestnantes.data.a... |
71912078_0 | public PhoneType matchPhone(String number) {
// check the number is telephone or cellphone
Matcher cellphoneMatcher = cellphonePattern.matcher(number);
if(cellphoneMatcher.matches()) {
return PhoneType.CELL;
}
Matcher telephoneMatcher = telephonePattern.matcher(number);
if(telephoneMatch... |
71924391_3 | public void start() {
mDataSource.getUser(mLoadUserCallback);
} |
71947971_0 | @Override
public void produce(Collection<T> items) throws InterruptedException {
Return the hazelcast distributed queue
ueue<T> iQueue = hazelcastInstance.getQueue(queueName);
olean contains = false;
t countItems = 0;
Put a new item to the hazelcast queue
r (T item : items) {
ontains = iQueue.contains(item);
ogger.tr... |
71975377_141 | public static double[] complex2Interleaved(Complex[] c) {
int index = 0;
final double[] i = new double[c.length * 2];
for (final Complex cc : c) {
final int real = index * 2;
final int imag = index * 2 + 1;
i[real] = cc.getReal();
i[imag] = cc.getImaginary();
index++;... |
71982467_4 | static final String[] getPrincipalNames(String keytabFileName) throws IOException {
Keytab keytab = Keytab.read(new File(keytabFileName));
Set<String> principals = new HashSet<String>();
List<KeytabEntry> entries = keytab.getEntries();
for (KeytabEntry entry : entries) {
principals.add(entry.get... |
72001417_0 | public static boolean isPasswordValid(String password) {
if (isEmpty(password)) {
return false;
}
String regex = "^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,20}$";
Pattern p = Pattern.compile(regex);
Matcher matcher = p.matcher(password);
return matcher.matches();
} |
72017294_4 | @Override
public Texture decode(String style)
{
if (!style.startsWith("url(") && !style.startsWith("assets("))
return Texture.EMPTY;
if (style.startsWith("url("))
BrokkGuiPlatform.getInstance().getLogger().warning("Deprecated texture specification used. url(...) will be removed from BrokkGUI in... |
72044729_13 | public static CASClient configure(SSLContext sslContext,
String ddsCasUrl,
String ddsCasUsername,
String ddsCasPassword
) throws CASException {
CASClient casClient = new CASClient();
try {
casClient.ddsCasUrl = ddsCasUrl;
casClient.ddsCasUsername = ddsCasUsername;
casCl... |
72129238_1 | public static Object parse(String str) {
StringStream ss = new StringStream(str);
Object result = parseGeneral(ss);
if (result instanceof Symbol)
throw new IllegalArgumentException("Malformed JSON");
if (!isSymbol(parseGeneral(ss), -1))
throw new IllegalArgumentException("Malformed JSON");
return result;
} |
72147803_8 | public static void erroNoOneBuildersHaveId(Collection<Builder> values, int builderId) {
throw new WrongItemException(
"No one from registered holder builders:" + values + " have id= " + builderId);
} |
72188443_6 | @Override
protected HashBasedTable<Optional<String>, Optional<Locale>, String> getAttributeValue(final Collection<Locale> locales,
final ProductModel product, final MetaAttributeData metaAttribute)
{
final HashBasedTable<Optional<String>, Optional<Locale>, String> table = HashBasedTable.create();
final String quali... |
72189499_0 | public void doGet() {
//通过Jackson JSON processing library直接将返回值绑定到对象
String url = "http://localhost:8080/api/users/15";
User user = restTemplate.getForObject(url, User.class);
System.out.println(user);
//直接返回json字符串
String json = restTemplate.getForObject(url, String.class);
System.out.prin... |
72222405_19 | @Override
public void parseAndVerifyArguments(List<String> arguments, ApplicationOptions options) {
if (arguments.isEmpty() || arguments.size() != 1) {
throw new IllegalArgumentException(MessageConstants.getMessage(ILLEGAL_COMMAND_ARGUMENTS,
getCommand(), 1, arguments.size()));
}
spe... |
72240906_14 | @Override
public boolean isSpecificationValid() {
return true;
} |
72241120_4 | @NonNull
@Override
public Observable<Long> start() {
if (timerObservable != null) {
LogUtil.d(TAG, "start(). Returning original Observable");
return timerObservable;
}
LogUtil.d(TAG, "start(). Returning new Observable");
startTime = timeProvider.now();
// Using Observable.interval... |
72283823_12 | public void init() {
final int MAX_LENGTH_OF_WORD = 5;
try (Scanner sc = new Scanner(System.in)) {
String line = sc.nextLine();
if (line.length() == MAX_LENGTH_OF_WORD) {
StringBuilder sbReverseWord = new StringBuilder();
for (int i = line.length() - 1; i >= 0; i--) {
... |
72366767_64 | @VisibleForTesting
int getItemResourceFromType(int viewType) {
switch (viewType) {
case TYPE_HEADER_IMAGE: return R.layout.article_item_header;
case TYPE_TITLE: return R.layout.article_item_title;
case TYPE_PARAGRAPH: return R.layout.article_item_paragraph;
... |
72403045_22 | public <T> Single<T> apply(Function<? super Connection, ? extends T> function) {
return member().map(member -> {
try {
return function.apply(member.value());
} finally {
member.checkin();
}
});
} |
72409631_0 | public LevelDB(String filename) {
this(filename, LEVELDB_READ_CACHE_DEFAULT, LEVELDB_WRITE_CACHE_DEFAULT);
} |
72428844_19 | public void newData(@Nonnull ChangesAdapter adapter,
@Nonnull List<? extends T> values,
boolean force) {
checkNotNull(adapter);
checkNotNull(values);
final H[] list = apply(values);
final ArrayList<H> objects = new ArrayList<H>(mItems.length);
Collections.ad... |
72436214_29 | @Transactional
public Try<User> associateToUser(User permissible, UUID constituencyID, UUID userID) {
if (!permissible.isAdmin()) {
log.error("Non admin attempted to associate user={} to constituency={}. loggedInUser={}", userID, constituencyID, permissible);
return Try.failure(new NotAuthorizedFail... |
72462669_13 | @Override
public Call<Void> accept(List<Span> spans) {
if (spans.isEmpty()) return Call.create(null);
List<com.google.devtools.cloudtrace.v2.Span> stackdriverSpans =
SpanTranslator.translate(projectId, spans);
BatchWriteSpansRequest request =
BatchWriteSpansRequest.newBuilder()
.setName(proj... |
72479874_10 | static void parseAndSetExtra(Bundle target, String name, String value) {
Matcher m = EXTRAS_VALUE_CAST_PATTERN.matcher(value);
if (m.matches()) {
String type = m.group(2);
String rawValue = m.group(3);
String booleanValue = m.group(5);
if (type == null && booleanValue != null) {
... |
72495006_4 | @Override
public void report(SortedMap<String, Gauge> gauges, SortedMap<String, Counter> counters, SortedMap<String, Histogram> histograms, SortedMap<String, Meter> meters, SortedMap<String, Timer> timers) {
String now = new DateTime(clock.getTime(), 0).toStringRfc3339();
try {
List<TimeSeries> timeS... |
72517914_15 | public Maybe<Address> fromLocation(@NonNull Location location) {
return fromLocation(null, location, 1).flatMapMaybe(ADDRESS_MAYBE_FUNCTION);
} |
72586987_3 | public static String unPackString(byte[] bytes) throws UnsupportedEncodingException {
return new String(unPackBytes(bytes), "UTF-8");
} |
72594605_1 | @Override
public List<VerifyCode> getVerifyCodeExpiration() {
return verifyCodeRepository.findVerifyCode(expiration);
} |
72628208_0 | @NonNull
public static Flowable<Cursor> flowable(
@NonNull final ContentResolver resolver,
@NonNull final Query query,
@NonNull final Scheduler scheduler,
@NonNull final BackpressureStrategy backpressureStrategy) {
return RxCursorLoaderFlowableFactory
.create(resolver, qu... |
72659203_48 | static <T> void appendCommaSeparatedArguments(@NonNull final StringBuilder target,
@NonNull final Iterable<T> arguments) {
//noinspection ConstantConditions
if (target == null) {
throw new NullPointerException("target must not be null");
}
boolean first = true;
for (final T arg : arg... |
72695594_90 | public Map<String, String> getSpriteFilenames() {
return spriteFilenames;
} |
72700804_0 | public static String toDecimal(long seconds, int nanoseconds)
{
StringBuilder sb = new StringBuilder(20)
.append(seconds)
.append('.');
// 14-Mar-2016, tatu: Although we do not yet (with 2.7) trim trailing zeroes,
// for general case,
if (nanoseconds == 0L) {
// !!! TODO: 14-Ma... |
72728706_6 | @Override
public JsonArray from(String databaseObject) {
return databaseObject==null?null:new JsonArray(databaseObject);
} |
72736755_0 | @Override
public String serialize(final Event event) {
return getXML(event);
} |
72737456_1 | public List<Pipeline> getEffectiveOutputPipelines() {
final Map<String, Pipeline> pipelineMap = pipelines.stream()
.collect(Collectors.toMap(Pipeline::getPipelineName, Function.identity()));
final List<Pipeline> effectivePipelines = pipelines.stream()
.filter(Pipeline::hasOutput)
... |
72737874_48 | @Override
public SwarmInspectResponse getSwarm() {
return getOrNullAction(makeBaseUrl().path("swarm"), SwarmInspectResponse.class);
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.