id stringlengths 7 14 | text stringlengths 1 37.2k |
|---|---|
59044564_1496 | void recoverTransitionRead(DataNode datanode, NamespaceInfo nsInfo,
Collection<StorageLocation> dataDirs, StartupOption startOpt) throws IOException {
if (this.initialized) {
LOG.info("DataNode version: " + HdfsConstants.DATANODE_LAYOUT_VERSION
+ " and NameNode layout version: " + nsInfo.getLayoutVers... |
59064722_9 | public CompletableFuture<?> dispatch(DispatchedEvent<Event> de) {
EventHandler eventHandler = eventTypesAndHandlers.get(de.getEventType());
if (eventHandler != null) {
CompletableFuture<Object> result = new CompletableFuture<>();
dispatchEvent(de, eventHandler, result, Optional.empty());
return result;
... |
59078087_56 | JobInvocation decodeIntentBundle(@NonNull Bundle bundle) {
if (bundle == null) {
Log.e(TAG, "Unexpected null Bundle provided");
return null;
}
Bundle taskExtras = bundle.getBundle(GooglePlayJobWriter.REQUEST_PARAM_EXTRAS);
if (taskExtras == null) {
return null;
}
JobInvocation.Builder builder ... |
59115248_0 | @Override
public Map<String, Object> orderInfo(PayOrder order) {
Map<String, Object> params = getUseOrderInfoParams(order);
String rsaSign = getRsaSign(params, RSA_SIGN);
params.put(RSA_SIGN, rsaSign);
return params;
} |
59134921_5 | @Nullable
public static String getUriFromSvgUri(@Nullable String iconUrl, int width, int height) {
if (iconUrl == null || iconUrl.isEmpty()) {
return null;
}
final Matcher matcher = LOGOS_REGEX.matcher(iconUrl);
if (!matcher.matches()) {
return null;
}
final int maxSide = Math.ma... |
59166469_0 | public static void cut(String inFile, String outFile, double start, double end) throws IOException {
new Mp3Cutter(inFile).cutTo(start, end, outFile);
} |
59199640_2 | @Override
public FilterEngine.ContentType detect(final WebResourceRequest request)
{
FilterEngine.ContentType contentType;
for (final ContentTypeDetector detector : detectors)
{
contentType = detector.detect(request);
// if contentType == null, that means
// that the detector was unavailable to dete... |
59326989_167 | @Override
public Set<Step> refactor(Set<Step> steps) {
// The rows that the loop iterates over
List<Row> iterationRows = getIterationRows(steps);
// The mode that the loop runs as, either 'parallel' or 'serial'
String mode = getMode();
// The graph of steps that will be run through once per loop iterati... |
59412136_1 | public boolean acceptsProperties(Properties info) throws SQLException {
return Utility.validateRiakProperties( info );
} |
59419011_1 | @Override public Decoder.Response get(String caller, Transport.Target target,
Pager pager, Map<String, ?> parameters) throws InterruptedException
{
String id = UUID.randomUUID().toString();
Encoder.Request request = encoder.get(caller, target, pager, parameters);
Message message = new Message(id, request.toStri... |
59504997_948 | public static List<AclEntry> filterAclEntriesByAclSpec(
List<AclEntry> existingAcl, List<AclEntry> inAclSpec) throws AclException {
ValidatedAclSpec aclSpec = new ValidatedAclSpec(inAclSpec);
ArrayList<AclEntry> aclBuilder = Lists.newArrayListWithCapacity(MAX_ENTRIES);
EnumMap<AclEntryScope, AclEntry> provide... |
59521369_5 | static LocalDate sundayFor(Year year) {
final int y = year.getValue();
final int a = y % 19;
final int b = y / 100;
final int c = y % 100;
final int d = b / 4;
final int e = b % 4;
final int f = (b + 8) / 25;
final int g = (b - f + 1) / 3;
final int h = (19 * a + b - d - g + 15) % 30;
final int i = c / 4;
fi... |
59553354_0 | public String greet(final String name)
{
return "Hello " + name;
} |
59553587_0 | public static TaskModel transform(TaskEntity taskEntity) {
TaskModel taskModel = null;
if (taskEntity != null) {
taskModel = new TaskModel(taskEntity.getTitle());
taskModel.setId(taskEntity.getId());
taskModel.setDeadline(taskEntity.getDeadline());
taskModel.setTag(taskEntity.get... |
59571413_99 | public Iterable<V> getValues() {
return this.valueByKey.values();
} |
59640829_42 | @SuppressWarnings("deprecation") @Override public String getAuthToken()
throws AuthFailureError {
/*
* 先通过 Account + tokenType
* 获取一个 AmsTask<Bundle> ( AccountManagerFuture<Bundle> 的实现类 )
*/
AccountManagerFuture<Bundle> future = mAccountManager.getAuthToken(mAccount, mAuthTokenType,
... |
59681438_17 | public static List<CodeSample> getSamples(final File[] files,
final String targetExtension) throws Exception {
if (files == null) {
throw new SampleParsingException(
"Must provide a non-null set of files to parse");
}
List<CodeSample> samples = new ArrayList<CodeSample>();
... |
59703501_2 | @Override
public Iterator<FetchedData> fetch(Iterator<Resource> resources) throws Exception {
return new StreamTransformer<>(resources, this);
} |
59744695_73 | @SuppressWarnings("unchecked")
void finalizeChildren() {
finalisedChildrenFlat = new ArrayList<>();
getFactoryMetadata().visitChildFactoriesAndViewsFlat(this, childUntyped->{
FactoryBase<?,R> child = (FactoryBase<?,R>)childUntyped;
if (child!=null){
if (child.addedTo!= finalisedChild... |
59800365_3 | @Override
public List<Team> getTeams() {
List<Team> teams = cacheClient.get(ServiceConstants.CACHE_KEY_TEAMS);
if (teams == null) {
teams = projectDao.getTeams();
cacheClient.set(ServiceConstants.CACHE_KEY_TEAMS, (Serializable) teams);
}
return teams;
} |
59834447_2 | public BuildMetadataEntry getEntry(@NotNull final String key,
@NotNull final MetadataSource metadataSource) {
Boolean missedSymbol = myMissedSymbols.getIfPresent(key);
if (missedSymbol != null && missedSymbol) {
LOG.debug("Symbol server does not host the symbol. Missed symbols... |
59881768_8 | @Override
public GrowOnlyCounter merge(GrowOnlyCounter other) {
return new GrowOnlyCounter(this, other);
} |
59890339_5 | void handleLogin(Executor executor, CookieStore cookieStore)
throws JSONException, IOException, CredentialInvalidException {
handleLogin(executor, cookieStore, false);
} |
59929488_16 | public String register(String uafMsg, String appFacetId) throws UafMsgProcessException, UafRequestMsgParseException, UafResponseMsgParseException {
logger.info(" [UAF][1]Reg ");
RegistrationResponse[] ret = new RegistrationResponse[1];
RegistrationResponse regResponse = process(getRegistrationRequest(uaf... |
59975597_1 | public static <R> Func0<R> memoize(final Func0<R> func0) {
return new Func0<R>() {
private R value;
@Override
public R call() {
if (null == value) {
synchronized (this) {
if (null == value) {
value = func0.call();
... |
59981531_33 | public Set<Constraint> getPreferredDiagnosis(Set<Constraint> constraintsSetC, Boolean displayFastDiagSteps)
throws DiagnosisException {
this.displayfastDiagSteps = displayFastDiagSteps;
if (constraintsSetC.isEmpty()) {
if (progressCalback != null) {
progressCalback.displayMessage("C set is empty" + LINE_SE... |
60020187_2 | @Override
public CallAdapter<?, ?> get(Type returnType, Annotation[] annotations, Retrofit retrofit) {
if (getRawType(returnType) != Supplier.class) {
return null;
}
if (!(returnType instanceof ParameterizedType)) {
throw new IllegalStateException("Supplier return type must be parameterized"... |
60073889_6 | String getConfig(String key, String defaultValue) {
return cache.computeIfAbsent(key, __ -> {
String value = node().has(key) ?
node.get(key).asText():
defaultValue;
if (value == null) {
String msg = configFile + " is missing key: " + key;
LOGGE... |
60094068_126 | public ApiClientResult<Object> reportError(Throwable t) {
Request request = generateCreateErrorReportRequest(t);
try {
Response response = httpClient.newCall(request).execute();
if (response.isSuccessful()) {
response.close();
return new ApiClientResult<>(new Object());
}
} catch (IOExcept... |
60111626_28 | public static String tputs(String cap, Object... params) {
if (cap != null) {
StringWriter sw = new StringWriter();
tputs(sw, cap, params);
return sw.toString();
}
return null;
} |
60127046_0 | public static ReadableMap toMap(Config config) {
WritableMap out = Arguments.createMap();
WritableMap httpHeaders = Arguments.createMap();
if (config.getStationaryRadius() != null) {
out.putDouble("stationaryRadius", config.getStationaryRadius());
}
if (config.getDistanceFilter() != null) {
... |
60131932_2 | public static <T> Function<Observable<T>, Disposable> ui(final Consumer<T> uiAction) {
return new Function<Observable<T>, Disposable>() {
@Override
public Disposable apply(Observable<T> observable) {
return observable
.observeOn(mainThread())
.subs... |
60171447_0 | private void loadBitcoinPrice() {
callback.showLoading();
loadBitcoinPriceUseCase.execute(
value -> callback.setData((List<BitcoinPriceViewModel>) value),
throwable -> callback.showError(throwable.getMessage()),
() -> callback.hideLoading()
);
} |
60240214_25 | @Override
public String toString() {
return String.format("Elastic pool of size %d with timeout %d ms", maxClients, obtainClientTimeoutMs);
} |
60241390_28 | static StatusProcessor produce(SuiteStatusResult suiteStatusResult, String reportUrl,
RedirectWriter redirectWriter, RunnerTerminator runnerTerminator) {
StatusProcessor processor = null;
if (suiteStatusResult != null) {
switch (suiteStatusResult.getStatus()) {
case PROGRESS:
processor = new P... |
60244312_0 | public static void validate(Consumer<Validator> proc) {
Validator validator = new Validator();
proc.accept(validator);
validator.verify();
} |
60259028_1 | @Override
public Observable<List<WeatherConditionEntity>> getWeatherConditionEntities() {
Map<String, String> params = new android.support.v4.util.ArrayMap<>(2);
params.put("search", Constants.SEARCH_ALL_COND);
params.put("key", Constants.WEATHER_KEY);
return weatherInfoService.getConditionInfos(params... |
60270542_0 | public void refreshTopics() {
imgurApi.defaultTopics()
.map(TopicResponse::getData)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.compose(view().bind())
.compose(view().injectProgress())
.subscribe(topics -> {
view().showTopics(topics);
}, throwable -> {
view().showThrow... |
60296811_2 | public static void butterForTests(Object... instancesWithViews) {
Diacetyl diacetyl = new Diacetyl();
for (Object instanceWithViews : instancesWithViews) {
diacetyl.bindForTests(instanceWithViews);
}
} |
60299559_4 | public static void addQwertyRows(KeyboardLayoutBuilder keyboard) {
keyboard.newRow()
.addKey('q').onShiftUppercase()
.addKey('w').onShiftUppercase()
.addKey('e').onShiftUppercase()
.addKey('r').onShiftUppercase()
.addKey('t').onShiftUppercase()
... |
60350172_3 | public MenuRegistration addTreeItem(String rootItem, MenuClickHandler clickHandler) {
ensureTreeAdded();
MenuRegistration existingRegistration = treeMenuItemToRegistration.get(rootItem);
if (null != existingRegistration) {
return existingRegistration;
}
treeMenuData.addRootItems(rootItem);
... |
60377070_138 | public void validate(Map<String, NewDocumentType> documentDefinitions) {
List<String> conflictingNames = documentDefinitions.keySet().stream()
.filter(this::isReservedName)
.collect(Collectors.toList());
if (!conflictingNames.isEmpty()) {
throw new IllegalArgumentException(makeRe... |
60379785_24 | @RequestMapping(value = "/api/users", method = RequestMethod.GET)
public List<User> getUsers(@RequestParam(value = "username", required = false) String username) {
List<User> users = userRepository.findAll(
where(ifParamNotNull(usernameEquals(username)))
.and(enabledEquals(true)),
... |
60384641_0 | public void play() {
cd.play();
} |
60395071_0 | private void getListShotsFromRemote(final int filterId, final LoadListShotsCallback callback){
mShotsRemoteDataSource.getListShots(filterId,new LoadListShotsCallback() {
@Override
public void onListShotsLoaded(List<Shots> shotsList) {
mCachedShots.put(filterId,shotsList);
mCa... |
60416700_305 | boolean calculateStatus(final EventChargingState ev) {
boolean chargingOnly = SP.getBoolean(R.string.key_ns_chargingonly, false);
boolean newAllowedState = true;
if (!ev.isCharging() && chargingOnly) {
newAllowedState = false;
}
return newAllowedState;
} |
60432093_1 | public static <T> Observable<T> fromIterator(final ListenableFuture<Iterator<T>> futureIterator) {
return fromIterator(futureIterator, MoreExecutors.sameThreadExecutor());
} |
60435184_1 | public void onClickLoginButton(@SuppressWarnings("unused") View view) {
navigator.startCustomTab(AnnictClient.getOAuthUrl());
} |
60450885_34 | @Override
public Mono<Integer> insertBatch(Publisher<? extends Collection<E>> data) {
return Flux.from(data)
.filter(CollectionUtils::isNotEmpty)
.flatMap(e -> doInsert(e).reactive().flux())
.reduce(Math::addExact)
.defaultIfEmpty(0);
} |
60469447_9 | @NonNull
public MaterialTapTargetSequence show()
{
this.nextPromptIndex = 0;
if (!this.items.isEmpty())
{
this.show(0);
}
else if (mOnCompleteListener != null)
{
mOnCompleteListener.onSequenceComplete();
}
return this;
} |
60524334_3 | @NonNull
@Override
public Set<Violation> validate() throws UnsupportedException {
final Set<Violation> violations = new HashSet<>();
final String value = getStringFromObject(object, propertyName);
if (null != value && 0 != value.trim().length()) {
violations.add(new Violation(propertyName, value, m... |
60536546_10 | RequirementsReport checkRequirements() {
boolean result = true;
List<RequirementReport> requirementsReports = new ArrayList<>(mRequirements.size());
for (Requirement requirement : mRequirements) {
RequirementReport report = requirement.check();
result = result && report.isFulfilled();
... |
60561103_1 | ; |
60573613_135 | public static List<Integer> toItemList(final String itemsString) {
if (Strings.isNullOrEmpty(itemsString)) {
return Collections.emptyList();
}
String[] items = itemsString.split(DELIMITER);
List<Integer> result = new ArrayList<>(items.length);
for (String each : items) {
int item = I... |
60578004_96 | public static List<String> filterSensitiveIps(final List<String> result) {
final Map<String, String> fakeIpMap = new HashMap<String, String>();
final String fakeIpSample = "ip";
final AtomicInteger step = new AtomicInteger();
Function<String, String> func = new Function<String, String>() {
... |
60598401_25 | @Override
public String checkPipelineForTriggerMaterials(PipelineDefinition pipelineDefinition) {
List<String> triggerMaterials = new ArrayList<>();
List<MaterialDefinition> materialDefinitions =
(List<MaterialDefinition>) this.materialDefinitionService.getAllFromPipelineDefinition(pipelineDefinitio... |
60642785_0 | static String extractYoutubeID(String url) {
String pattern = "(?<=youtu.be/|youtube.com/watch\\?v=|/videos/|embed/)[^#&\\?]*";
Pattern compiledPattern = Pattern.compile(pattern);
Matcher matcher = compiledPattern.matcher(url);
if (matcher.find()) {
return matcher.group();
} else {
r... |
60648293_3 | @Override
public void bindTo(MeterRegistry registry) {
this.scheduler = Executors.newScheduledThreadPool(this.binder.getTopicsInUse().size());
for (Map.Entry<String, KafkaMessageChannelBinder.TopicInformation> topicInfo : this.binder
.getTopicsInUse().entrySet()) {
if (!topicInfo.getValue().isConsumerTopic())... |
60648780_0 | public long namespaceIdentifier() {
if (releaseIdentifier() == 1) {
int len = _id.length();
return Long.valueOf(_id.substring(len-10, len-3));
}
return 0;
} |
60648874_18 | void updateColor(@ColorInt int color){
this.previousColor = this.color;
this.color = color;
} |
60683863_130 | public static Method findMethodByMethodSignature(Class<?> clazz, String methodName, String[] parameterTypes)
throws NoSuchMethodException, ClassNotFoundException {
String signature = clazz.getName() + "." + methodName;
if(parameterTypes != null && parameterTypes.length > 0){
signature += S... |
60686962_118 | public void removeAllMulticastTreesUnused(double toleranceTrafficAndCapacityValueToConsiderUnusedTree, NetworkLayer... optionalLayerParameter)
{
checkIsModifiable();
NetworkLayer layer = checkInThisNetPlanOptionalLayerParameter(optionalLayerParameter);
for (MulticastTree t : new ArrayList<MulticastTree>(lay... |
60701545_222 | @TaskAction
void transform(final IncrementalTaskInputs incrementalTaskInputs)
throws IOException, TransformException, InterruptedException {
final ReferenceHolder<List<TransformInput>> consumedInputs = ReferenceHolder.empty();
final ReferenceHolder<List<TransformInput>> referencedInputs = ReferenceHold... |
60737153_13 | public boolean isLoggedIn() {
return loginStatus;
} |
60758239_3 | public static Book02 create(String title, @Nullable String author, int pubYear, int pageCount) {
return new AutoValue_Book02(title, author, pubYear, pageCount);
} |
60773713_1 | @Override
public void init(Serializable context) throws Exception {
ConsecutiveDaysBuckets buckets = (ConsecutiveDaysBuckets) context;
buckets.buckets = new HashMap<>();
} |
60780272_2 | @Override
public List<TypedSegment> segment(String query) {
List<TypedSegment> typedSegments = new ArrayList<TypedSegment>();
String[] segments = query.split("\\s+");
// Evaluate segments from left to right
for (int i = 0; i < segments.length; i++) {
// Always start with the longest string possible
... |
60783603_126 | @SafeVarargs
public static void start(Class<? extends AppCenterService>... services) {
getInstance().startServices(true, services);
} |
60794667_81 | public double[] getOutput() {
if (currentNetOutput == null) {
return new double[netOutputDim];
}
return currentNetOutput;
} |
60851319_52 | public static String escapeCommonName(final String name)
{
if (name == null) {
return null;
}
final StringBuilder buf = new StringBuilder(name.length() + 5);
for (int i = 0; i < name.length(); i++) {
final char ch = name.charAt(i);
if (",=+<>#;\\\"".indexOf(ch) >= 0) {
buf.append("\\");
}
... |
60913395_10 | Observable<PrayerContext> getPrayerTimes(String code) {
return getCurrentPrayerTimesByCode(code)
.zipWith(getNextPrayerTimesByCode(code), mPrayerContextCreator);
} |
60923411_3 | synchronized void setNewAccessToken(@NonNull String accessToken, int expiresIn) {
if(accessToken.length() == 0)
throw new IllegalArgumentException("accessToken.isEmpty()");
this.accessToken = accessToken;
this.expiresIn = expiresIn;
this.tokenAcquisitionTime = new Date();
authStatus = AUT... |
60963516_8 | public float calculateEarnings(Collection<? extends BookingBean> bookings) {
if (isPaymentDone()) {
bookings = bookings.stream().filter(b -> b.isPaymentDone()).collect(Collectors.toCollection(LinkedHashSet::new));
}
if (getDateRange() != null) {
bookings = bookings.stream().filter(b -> getDa... |
60979397_11 | public void updateContractProject(String projectName, Path rootStubsFolder) {
File clonedRepo = this.gitContractsRepo.clonedRepo(this.stubRunnerOptions.stubRepositoryRoot);
GitStubDownloaderProperties properties = new GitStubDownloaderProperties(
this.stubRunnerOptions.stubRepositoryRoot, this.stubRunnerOptions);
... |
60982325_0 | @Override
public void insert(String testName, int variant, JSONObject metaData) {
ContentValues contentValues = new ContentValues();
contentValues.put(COLUMN_NAME, testName);
contentValues.put(COLUMN_VARIANT, variant);
if(metaData != null) {
contentValues.put(COLUMN_META, metaData.toString());
... |
61105758_18 | void cleanup() {
final int maxSize = evictionConfig.getMaxSize();
final long timeToLive = evictionConfig.getTimeToLive().toMillis();
boolean limitSize = maxSize > 0 && maxSize != Integer.MAX_VALUE;
if (limitSize || timeToLive > 0) {
List<EvictionEntry> entries = searchEvictableEntries(timeToLiv... |
61303293_1 | @Transactional(propagation = Propagation.REQUIRES_NEW)
public void sendMessage(final TXContext ctx, TransactionStatusEnum txStatus) throws Throwable {
TransactionInfo lockInfo = new TransactionInfo();
try {
//对需处理的数据加锁
lockInfo.setParentId(ctx.getParentId());
lockInfo.setTxId(ctx.getTxId... |
61323364_6 | @Override
public void openCity(int cityId) {
//mView.showProgressBar(true);
mSubscriptions.clear();
Subscription subscription = mRepository
.getForecast(cityId, mView.isNetworkAvailable())
.subscribeOn(mBackgroundScheduler)
.observeOn(mMainScheduler)
.subscrib... |
61372044_296 | protected void checkPreconditions() throws ResourceUnavailableException {
if (guestNetwork.getState() != Network.State.Implemented && guestNetwork.getState() != Network.State.Setup && guestNetwork.getState() != Network.State.Implementing) {
throw new ResourceUnavailableException("Network is not yet fully im... |
61415194_1 | @Override
public Seckill getById(long seckillId) {
return seckillDao.queryById(seckillId);
} |
61433804_1 | public void patchServiceName(Set<HasMetadata> entities) {
if(isPatchingDisabled()) {
return;
}
Map<String, Service> services = patchServiceIfInvalidName(entities);
Map<String, Route> routes = patchRouteWithService(entities, services);
replace(services, entities);
replace(routes, entit... |
61441349_0 | @Nullable
@CheckResult
public static byte[] toByteArray(@Nullable Byte[] array) {
if (array == null) {
return null;
} else if (array.length == 0) {
return EMPTY_PRIMITIVE_BYTES;
} else {
byte[] result = new byte[array.length];
for (int i = 0, size = array.length; i < size; ++i) {
result[i] ... |
61508446_420 | @Override
public ByteBuf unwrap() {
return buffer;
} |
61520679_0 | @Override
public Set<Mine> getSortedSet() {
TreeSet<Mine> mines = new TreeSet<>( new PrisonSortComparableMines() );
List<Mine> unsortedMines = PrisonMines.getInstance().getMineManager().getMines();
mines.addAll( unsortedMines );
return mines;
} |
61523190_2 | @Override
public OpResult performOperator(Integer[] tour, Integer toString, int neighbourhoodSize, IDistanceCalculator distanceCalculator) {
int counterNull = 0;
int counterNotNull = 0;
int[] neigbourHoodJ = Util.getNeighbourhoodIndexesFromValue(tour, toString, neighbourhoodSize, distanceCalculator);
Integer[] be... |
61565876_55 | @Override
public <T> void registerProvider(Class<T> clazz, Provider<? extends T> provider) {
checkNotNull(clazz, "Class may not be null");
checkNotNull(provider, "Provider may not be null");
try {
for (Handler handler : config.getHandlers()) {
handler.onProvider(clazz, provider);
... |
61610584_3 | public void setRepositories(List<Repository> repositories) {
this.repositories = repositories;
} |
61623700_0 | @Override
public int insertSelective(ContentLog record) {
return contentLogMapper.insertSelective(record);
} |
61638949_0 | public String greet(String name) {
// TODO
// try adding a second field (e.g. gender) with a random value
// the test now fails because we send more than specified which should result in a contract change
return target.path("/greet")
.request(APPLICATION_JSON)
.post(
//entity... |
61667990_279 | public Map<String, Object> paginate(String jsonKey, List<T> list, String filter,
String timezoneOffset, String sort, int page, int perPage) {
Map<String, Object> response = new HashMap<>();
paginationFilter.replaceFilter(filter, timezoneOffset);
paginationComparator.repl... |
61690323_19 | public Resource getResource(final String location) {
return resourceLoader.getResource(location);
} |
61691853_5 | public static String getLocalPath(String remotePath, Configuration conf, int generationNumber)
{
checkState(generationNumber != UNKONWN_GENERATION_NUMBER, "generationNumber is " + UNKONWN_GENERATION_NUMBER);
final String absLocation = getDirectory(remotePath, conf);
return String.format("%s/%s_g%d", absLocation, ... |
61703365_72 | @Override
public void execute(@Nonnull final String argString) throws ExitException, CommandException {
String filename = simpleArgParse(argString, 1, 1, COMMAND_NAME, getUsage())[0];
try ( BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream( new File(filename) )))) {
... |
61705055_7 | public QImageMogr2UrlBuilder thumbnailEdgeeMin(int width, int height){
thumbnail = "!" + width + "x" + height + "r";
return this;
} |
61705166_2 | protected List<String> splitUrl(String url) {
return splitUrl(url, true);
} |
61706237_8 | @Override
public void subscribe(@NonNull ObservableEmitter<T> emitter) throws Exception {
final ValueEventListener eventListener = query.addValueEventListener(new RxValueListener<>(emitter, marshaller));
emitter.setCancellable(new Cancellable() {
@Override
public void cancel() throws Exception {... |
61731745_2 | public int findeEintragnummer(String titel){
int nummer = -1;
String tmp ="";
ArrayList<String> tmpList = this.getTitles();
for(int i = 0; i<tmpList.size(); i++){
tmp = tmpList.get(i);
if(tmp.equals(titel)) nummer = i;
}
return nummer;
} |
61744742_256 | public static MetricName valueOf(String... path) {
return CACHE.apply(new PathArray(path));
} |
61803076_1 | public boolean isValid() {
for (N n: nodes) {
if (!n.isValid())
return false;
}
return true;
} |
61822650_48 | public boolean isDiscussionIndependentFilter() {
boolean isContinious = !this.isRetrieveOnlyFollowedItems()
&& !this.isFavorites() && !this.isNotificationFeed();
if (isContinious) {
isContinious = !this.isFeedFiltered(true, true, true);
}
return isContinious;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.