id stringlengths 7 14 | text stringlengths 1 37.2k |
|---|---|
72795142_10 | @Override
public List<UserDetails> getAllAdmins() {
List<UserDetails> userList = new ArrayList<>();
Set<Entry<Object, Object>> entries = users.entrySet();
for (Entry<Object, Object> entry : entries) {
String userData = users.getProperty(entry.getKey().toString());
String[] data = userData.sp... |
72805051_3 | @Override
public void onGestureUpdate(MultiPointerGestureDetector detector) {
if (mListener != null) {
mListener.onGestureUpdate(this);
}
} |
72815283_3 | Accessor<Boolean> asBoolean() {
return new Accessor<Boolean>() {
@Override
public Boolean get(BmcProperties property) {
// overridden properties only use the new property names, no need to check for clashes
String overriddenPropertyName = getOverriddenPropertyName(property);
... |
72816730_16 | public Observable<?> call(final BizSocketRxSupport bizSocketRxSupport, final Method method, Object... args) throws Exception {
Request request = null;
if ((request = method.getAnnotation(Request.class)) == null) {
throw new IllegalArgumentException("Can not found annotation(" + Request.class.getPackage(... |
72836592_0 | public CaEhcache(String name, Cache<K, V> ca) {
super(name, CaType.Local);
this.ca = ca;
} |
72846258_12 | public static List<Gavtc> ofPattern(String gavtcPattern) {
StringTokenizer st = new StringTokenizer(gavtcPattern, ":");
if (!st.hasMoreTokens()) {
throw new IllegalStateException(
String.format("Cannot parse [%s] to a " + Gav.class.getName(), gavtcPattern));
} else {
final St... |
72847871_5 | public App getApp() {
return app;
} |
72868257_10 | @Override
public @Nullable List<@NotNull PostServerStartupHook> postServerStartupHooks() {
PostServerStartupHook eurekaStartupHook = guiceValues.eurekaServerHooks.eurekaStartupHook;
return (eurekaStartupHook == null) ? null : Collections.singletonList(eurekaStartupHook);
} |
72889410_70 | @Override
public boolean equals(Object o) {
if (o instanceof MethodHash) {
return isSameHash((MethodHash) o);
}
return false;
} |
72907253_0 | @RequestMapping("/getUsers")
public List<User> getUsers() {
List<User> users=userMapper.getAll();
return users;
} |
72967236_3 | public void setBlurRadius(int blurRadius) {
this.mBlurRadius = blurRadius;
// This field is now bad (it's pre-blurred with blurRadius so will need to be re-made)
this.mLockedBitmap = null;
invalidate();
} |
72975293_0 | public static void main(final String[] args) throws Exception {
new JmsQueueReceiver().doMain(true, args);
} |
73006755_9 | static ResourceOptions buildResourceOptions(NakadiClient client, StreamConfiguration sc) {
ResourceOptions options = ResourceSupport
// breaks with api definition https://github.com/zalando-incubator/nakadi-java/issues/98
.options(APPLICATION_JSON)
.tokenProvider(client.resourceTokenProvider());
... |
73013368_14 | @MainThread
void finish(@NonNull ContentViewContract view) {
final Dual<NavigationDetails, Boolean> removedViewMetadata = removeViewFromStack(view);
if (removedViewMetadata == null) {
LogUtil.logViewWarning(TAG, "Tried to remove non-existing view %s; ignore and carry on", view);
return;
}
final Boolean ... |
73056727_27 | public void compile() throws IOException {
final String[] lines = new TextOf(this.input).asString().split("\n");
final ANTLRErrorListener errors = new BaseErrorListener() {
// @checkstyle ParameterNumberCheck (10 lines)
@Override
public void syntaxError(final Recognizer<?, ?> recognizer,... |
73085073_1 | void execute() throws IOException
{
if( timeout > 0 )
{
long timeSpentWaiting = 0;
long currentTS = System.currentTimeMillis();
while( !condition() )
{
try
{
Thread.sleep(100);
}
catch (InterruptedException e)
... |
73087334_4 | @Override
@Transactional(readOnly=true)
public DbLoadedSamlClientConfigurationDto loadClient(final String clientName) {
if (StringUtils.isBlank(clientName)) {
throw new IllegalArgumentException("Client name must not be null or empty.");
}
final Object[] selectSingleClientParameters = new Object[] {environment, c... |
73097094_5 | @Override
public Map<String, String> configureEnvironment(Map<String, String> environment) {
environment.put(ENV_DISPLAY, display);
return environment;
} |
73103312_7 | @Override
public int getLowerBoundbydbmIndex(int index)
{
return _matrix[dbmIndexToMatrixIndex(index)][0];
} |
73185566_1 | @Override
public EventReadResult<T> read(final String streamId, final int version, final int maxEvents) {
return readInternal(toEsStreamId(streamId), version, maxEvents, false);
} |
73191871_18 | @Override
public UserCheTenantData load(final TenantDataCacheKey cacheKey) throws InfrastructureException {
final String namespace = cacheKey.getNamespaceType();
final String responseBody;
try {
responseBody = getResponseBody(fabric8UserServiceEndpoint, cacheKey.getKeycloakToken());
} catch (ApiException | ... |
73209796_0 | @NonNull
public Observable<List<Language>> getObservableSupportedLanguages() {
return mDataModel.getObservableSupportedLanguages();
} |
73236117_13 | @Override
protected Result check() throws Exception {
try {
Document result = db.runCommand(PING);
int ok = 0;
if (result.containsKey("ok") && result.get("ok") instanceof Number) {
ok = result.get("ok", Number.class).intValue();
}
if (ok != 1) {
LOGGER... |
73270880_0 | public TelegramSettings toSettings() {
TelegramSettings settings = new TelegramSettings();
settings.setBotToken(botToken);
settings.setPaused(paused);
settings.setUseProxy(useProxy);
settings.setProxyServer(proxyServer);
settings.setProxyPort(StringUtil.isEmpty(proxyPort) ? null : Integer.valueOf(proxyPort)... |
73282380_0 | @RequestMapping(method = RequestMethod.POST,
value = "/beer",
consumes = MediaType.APPLICATION_JSON_UTF8_VALUE,
produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public String gimmeABeer(@RequestBody Person person) {
ResponseEntity<Response> response = this.restTemplate.exchange(
RequestEntity
.post(URI.... |
73314646_0 | @Override
public Observable<FluxWeed> getFluxWeed() {
return Observable.just(new FluxWeed())
.delay(randomizer.randomInRange(2, 5), TimeUnit.SECONDS);
} |
73330288_1 | @Nullable
private String transliterate(Transliterator transliterator, @Nullable String text) {
if (text == null) {
return null;
}
String result = transliterator.transliterate(text);
if (result == null || result.isEmpty()) {
return null;
}
return result;
} |
73380577_1 | @RabbitListener(queues = {BarApp.XEBICON_BARAPP_LISTENER})
public void receiveOrder(Map<String, Object> msg) {
logger.debug("Receiving message [{}]", msg);
if (shopService.isShopOpen().orElse(false) && ofNullable(msg.get("type")).orElse("").equals("BUY")) {
shopService.processBuyOrder((Map) msg.get("pa... |
73391049_0 | @VisibleForTesting
void setEndLineCharacters(String endLineCharacters) {
this.endLineCharacters = endLineCharacters;
} |
73419103_13 | public static <V extends Message> void handleBody(
String fieldPath,
V.Builder builder,
String body) throws InvalidProtocolBufferException {
// * maps all body fields to the top-level proto
// IDENT maps all body fields to nested proto
// TODO: handle multiple levels of nesting
M... |
73420810_10 | public static List<ProblemReport> getFavoriteProblemReports() {
// Simulate a long running process.
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
return database.subList(0, database.size() / 2);
} |
73430564_1 | public static Job readJobSpec(String jobSpec) throws IOException {
return OBJECT_MAPPER.readValue(jobSpec, JobSpec.class).job;
} |
73473909_3 | public float getDefaultRotationSensibility() {
return defaultRotationSensibility;
} |
73478000_13 | public static ExportFilter instantiateExportFilterByExtension(
Class<?> forClass, String identifier) throws Exception {
for (Class c = forClass; c != null; c = c.getSuperclass())
if (EXPORT_FILTER_EXTENSIONS.containsKey(c)) {
HashMap<String, String> filters = EXPORT_FILTER_EXTENSIONS.get... |
73482803_0 | public Object handleRequest(Object input, Context context) {
LambdaLogger logger = context.getLogger();
logger.log("Start of Lambda Function, input: " + input);
// Your real code goes here...
logger.log("End of Lambda Function,\n");
logger.log( context.getRemainingTimeInMillis() + " millisecond of time remain... |
73535587_1 | public String marshal()
{
checkNotNull(protocolTag);
StringWriter headers = new StringWriter();
Iterator<Entry<String, String>> it = headersMap.entrySet().iterator();
while (it.hasNext()) {
Entry<String, String> pair = it.next();
headers.write(String.format("%s: %s\r\n", pair.getKey(), ... |
73545178_2 | public static Double sub(Double v1, Double v2) {
checkArguments(v1, v2);
BigDecimal b1 = new BigDecimal(Double.toString(v1));
BigDecimal b2 = new BigDecimal(Double.toString(v2));
return b1.subtract(b2).doubleValue();
} |
73552352_0 | @Override
public Maybe<JsonObject> login (String id, String password)
{
return sAuthAPI.login(id, password);
} |
73620856_36 | @NonNull
public static Completable fetch(@NonNull final FirebaseRemoteConfig config,
@NonNull final long cacheLifeTime) {
return Completable.create(new CompletableOnSubscribe() {
@Override
public void subscribe(CompletableEmitter emitter) {
RxCompletableHa... |
73634942_18 | public void add(String triggeringEvent) {
DecodedEtopContext etpo = EtopEventContext.decode(triggeringEvent).get();
Map<Integer, Long> pos = topicsToPartitionsAndOffsets.get(etpo.topic);
if (pos == null) {
topicsToPartitionsAndOffsets.put(etpo.topic, new HashMap<>(Collections.singletonMap(etpo.partition, etp... |
73690083_19 | public long getNumberOfNodes() throws DockerException, InterruptedException {
return streamReadyNodes().count();
} |
73711911_46 | public int addressSpecial(State2048 state) {
int[] values = state.getValues();
int address = 0;
for (int i = 0; i < numSegments; ++i) {
address *= 2;
address += state.hasValue(values, maxSegment - i) ? 1 : 0;
}
if (address > 0)
address -= 1;
for (int i = 0; i < straightLocations.length; ++i) {
address *= ... |
73733927_1 | @SuppressWarnings("WeakerAccess")
public static synchronized EntityManager getEntityManager(String persistenceUnitName) {
persistenceUnits.putIfAbsent(persistenceUnitName,
Persistence.createEntityManagerFactory(persistenceUnitName));
return persistenceUnits.get(persistenceUnitName)
.crea... |
73807729_2 | @ApiOperation(value = "强制用户下线", httpMethod = "GET", produces = "application/json", response = Result.class)
@RequiresPermissions("user:loginout")
@ResponseBody
@RequestMapping(value = "forceLogout", method = RequestMethod.GET)
public Result forceLogout(@RequestParam String userIds) {
System.out.println("userIds = [... |
73840074_1 | public boolean addRecord(String sourceTopic, int partition, long offset, JSONObject record) {
// dot . is reserved delimiter for graphite naming
String topicName = record.getString(AuditMsgField.TOPICNAME.getName());
String hostName = record.getString(AuditMsgField.HOSTNAME.getName());
String tier = record.getS... |
73899453_155 | public static JavaBeanDescriptor serialize(Object obj) {
return serialize(obj, JavaBeanAccessor.FIELD);
} |
73930305_59 | protected PackageSource lookupPackageSource(PackageID pkgID) {
Path path = this.generatePath(pkgID);
return new WorkspacePackageSource(pkgID, path);
} |
73963835_3 | @Override
public InetSocketAddress resolve(ServerWebExchange exchange) {
List<String> xForwardedValues = extractXForwardedValues(exchange);
Collections.reverse(xForwardedValues);
if (!xForwardedValues.isEmpty()) {
int index = Math.min(xForwardedValues.size(), maxTrustedIndex) - 1;
return new InetSocketAddress(xF... |
74035424_307 | public CompletionStage<LobbyController> find() {
return lobbies().thenApply(lobbies -> lobbies.stream()
.filter(lobby -> lobby.getStatus().equals(LobbyStatus.INTERMISSION))
.filter(lobby -> lobby.getTeams().size() < lobby.getConfiguration()
.getTeamMaximum())
.findFirst()
... |
74092790_1 | public void generateNewMp3ByTime(String targetFileStr, long beginTime, long endTime) throws Exception {
MP3File mp3 = new MP3File(this.mSourceMp3File);
MP3AudioHeader header = (MP3AudioHeader) mp3.getAudioHeader();
if (header.isVariableBitRate()) {
generateMp3ByTimeAndVBR(header, targetFileStr, begi... |
74145628_185 | public int height() {
// TODO...
return -3;
} |
74149803_1 | public void createSchema(){
pcName = schemaNameField.getText();
if(pcName == null || pcName.length() == 0){
JOptionPane.showMessageDialog(null, "Please fill out Schema Name Field");
return;
}
String descr = descrField.getText();
if(descr == null || descr.length() == 0){
desc... |
74164375_9 | @Override
public void loadModule() {
if (null == mModule) {
mModuleDetailView.showMissingModule();
} else {
mModuleDetailView.showModule(mModule);
}
} |
74169930_2 | @Override
public Single<ArticleResource> requestArticle(@NonNull final String id) {
final Retrofit retrofit = new Retrofit.Builder()
.baseUrl(mBaseUrl)
.addConverterFactory(HALConverterFactory.create(ArticleResource.class))
.addCallAdapterFactory(mRxAdapter)
.build();... |
74169960_32 | public List<Task> tasksForInstance(ContainerInstance instance) {
String arn = instance.getArn();
if (instancesByInstanceArn.containsKey(arn)) {
return tasksByInstanceArn.getOrDefault(arn, Collections.emptyList());
} else {
throw new IndexOutOfBoundsException(
String.format("ContainerInstance with... |
74189838_2 | @Override
public void execute() {
try {
sourceDirectory = makeAbsolute(sourceDirectory);
outputDirectory = makeAbsolute(outputDirectory);
if ( ! sourceDirectory.exists() ) return;
getLog().debug("Running ApiGen\n\tsourceDirectory=" + sourceDirectory +
"\n\toutp... |
74192763_1 | @Override
public boolean onLoadFailed(@Nullable GlideException e, Object model, Target target, boolean isFirstResource) {
WebImageView view = null;
if (target instanceof WebImageViewTarget) {
view = ((WebImageViewTarget) target).getView();
}
if (view != null) {
ThemedReactContext context... |
74278300_0 | public static String decrypt(String input) {
if (input == null) {
return null;
}
try {
return doDecrypt(input);
} catch (GeneralSecurityException | RuntimeException ex) {
Timber.e(ex, "Unable to decrypt: %s", input);
return null;
}
} |
74327735_1 | @Override
public Optional<IConversationIntent> detectIntent(String text, String languageCode, String sessionId) {
for (Map.Entry<String, Pattern> entry : intentRegexMap.entrySet()) {
final Matcher matcher = entry.getValue().matcher(text);
if (matcher.find()) {
logger.info(String.format(... |
74351531_0 | public void register(User user) throws UserExistException{
User u = this.getUserByUserName(user.getUserName());
if(u != null){
throw new UserExistException("用户名已经存在");
}else{
user.setCredit(100);
user.setUserType(1);
userDao.save(user);
}
} |
74385593_4 | public static TypeInfo convertPrimitiveMaybeLogical(Schema schema) {
if (schema.name() == null) {
return convertPrimitive(schema);
}
if (Decimal.LOGICAL_NAME.equals(schema.name())) {
String scale = schema.parameters().get(Decimal.SCALE_FIELD);
String precision = schema.parameters().get(CONNECT_AVRO_D... |
74387321_8 | @Override
public Object get(String key) {
ComposableConfig config = propertyToConfig.get(key);
if (config == null) {
throw new ConfigException(String.format("Unknown configuration '%s'", key));
}
return config == this ? super.get(key) : config.get(key);
} |
74401462_32 | public static Set<BaggageBuffersDeclaration> link(BBC.Settings settings) throws CompileException {
return link(settings.files, FileUtils.splitBagPath(settings.bagPath));
} |
74409326_16 | @Override
public String toString() {
StringBuilder b = new StringBuilder();
if (weak) {
b.append("W/");
}
appendQuoted(b, value);
//b.append('"').append(value.replaceAll("\"", "\\\\\"")).append('"');
return b.toString();
} |
74491626_10 | @Override
public int hashCode() {
return Objects.hash(name, getEntityGraphType(), isOptional());
} |
74537556_2214 | @Override
public void processItems(List<IntentData> items) {
ready = false;
delegate.execute(reduce(items));
} |
74616657_0 | @Override
public void optimize(TupleExpr tupleExpr, Dataset dataset, BindingSet bindings) {
final Set<String> parallelSplitBounds = new HashSet<>();
tupleExpr.visit(new AbstractQueryModelVisitor<IncompatibleOperationException>() {
@Override
public void meet(FunctionCall node) throws Incompatible... |
74617406_2 | public static Recipe readFromStream(InputStream stream) {
if (stream == null) {
return null;
}
BufferedReader reader = new BufferedReader(new InputStreamReader(stream));
String id = null;
String title = null;
StringBuilder descBuilder = new StringBuilder();
try {
for (String line = reader.readL... |
74675066_248 | @Override
public JWT parse(String payload) {
try {
// verify format
SignedJWT signedJWT = SignedJWT.parse(payload);
// verify signature
boolean verified = signedJWT.verify(verifier);
if (!verified) {
throw new JOSEException("The signature was not verified");
... |
74704643_1 | @Override
public Object executeRequest(Map requestBody) {
val query = (String) requestBody.get("query");
val operationName = (String) requestBody.get("operationName");
val variables = getVariablesFromRequest(requestBody);
val context = new HashMap<String, Object>();
beforeExecuteRequest(query, oper... |
74740415_4 | public AuthenticatedBallot encryptBallotThenWrapForAuthentication(String plainText, int ballotIndex) {
Cipher ballotKeyCipher = ciphersProvider.getBallotKeyCipher();
Cipher ballotCipher = ciphersProvider.getBallotCipher();
// Generate a random symmetric key, renewed for each ballot
Key plainSymmetricK... |
74765344_7 | public MIT(double alpha, DataSet dat) {
super(dat);
if (alpha != 0) {
this.alpha = alpha;
}
} |
74843923_59 | @Override
public Response handle(Request request) {
final AppRequest appRequest = appRequestFactory.create(request);
final Optional<AppResponse> primedResponseOpt = primingContext.getResponse(appRequest);
if(!primedResponseOpt.isPresent()) {
failedRequests.add(appRequest);
throw new Primin... |
74857438_8 | public static String obfuscateAndShorten(@Nullable String original, int maxCharLengthLeftOrRight,
char obfuscationChar) {
if (original == null || original.trim().length() <= 1) {
return original;
}
if (maxCharLengthLeftOrRight <= 0) {
throw new Illeg... |
74877759_0 | public JSONObject get(String id) {
if (getKey == null)
getKey = getKey() + ".get";
return carousel.get(getKey, id);
} |
74893299_2 | public static float optFloat(String numStr, float def) {
if (numStr == null || numStr.isEmpty()) {
return def;
}
try {
return Float.parseFloat(numStr);
}
catch (Exception e) {
return def;
}
} |
74907921_191 | public static int columns(Row row) {
return row.width();
} |
74909348_1 | @Override
protected void onLongTap(float x, float y) {
if (mGestureListener != null) {
mGestureListener.onLongTap(this, x, y);
}
} |
74950506_2 | public static Collection<ResourceMethodInfoDTO> getResourceMethodInfos(
Class<?> clazz, Bus bus) {
final Class<?> realClass = unwrap(clazz, bus);
ClassResourceInfo classResourceInfo =
ResourceUtils.createClassResourceInfo(
realClass, realClass, true, true, bus);
Stream<Resource... |
74971299_45 | @Override
public <T extends Object> PrismPropertyValue<T> apply(PrismPropertyValue<T> propertyValue) {
Validate.notNull(propertyValue, "Node must not be null.");
String value = getStringValue(propertyValue);
if (StringUtils.isEmpty(value)) {
return propertyValue;
}
Validate.notEmpty(getPara... |
74972240_0 | @NonNull
@CheckReturnValue
public static Maybe<IMqttToken> connect(@NonNull final MqttAndroidClient client) {
return connect(client, new MqttConnectOptions(), null);
} |
74999474_10 | @Override
public List<Integer> getIntList(String path) {
try {
return configDelegate.getIntList(path);
} catch (ConfigException e) {
throw new RuntimeException(e);
}
} |
75065038_2 | public static <T> T get(T[] data, int index) {
int len = data.length;
if (index > len - 1) {
index = len - 1;
}
return data[index];
} |
75085823_10 | @Override
public Future<Void> close() {
return vertx.executeBlocking(promise -> {
git.close();
promise.complete();
});
} |
75118280_10 | @Nonnull
@Override
public RecordState getRecordState(@Nonnull BarCode barCode) {
return sourceFileReader.getRecordState(barCode, expirationUnit, expirationDuration);
} |
75133570_25 | public void subscribe(@Nonnull String groupId, @Nonnull User user) {
final Key<Account> accountKey = Key.create(user.getUserId());
final Key<TravelerGroupEntity> groupKey = Key.create(groupId);
Map<Key<Object>, Object> fetched = ofy().load().keys(accountKey, groupKey);
//noinspection SuspiciousMethodCalls
A... |
75164823_194 | public void selectPhyOffset(final List<Long> phyOffsets, final String key, final int maxNum,
final long begin, final long end, boolean lock) {
if (this.mappedFile.hold()) {
int keyHash = indexKeyHashMethod(key);
int slotPos = keyHash % this.hashSlotNum;
int absSlotPos = IndexHeader.INDEX... |
75165297_97 | @Override
public void stopJobAtOnce(final String namespace, final String jobName) throws SaturnJobConsoleException {
ReuseUtils
.reuse(namespace, jobName, registryCenterService, curatorRepository, new ReuseCallBackWithoutReturn() {
@Override
public void call(CuratorRepository.CuratorFrameworkOp curatorFrame... |
75169335_1 | public static String formatMillisToYearsDaysHours(long millis) {
long days = TimeUnit.MILLISECONDS.toDays(millis);
millis -= TimeUnit.DAYS.toMillis(days);
final long hours = TimeUnit.MILLISECONDS.toHours(millis);
millis -= TimeUnit.HOURS.toMillis(hours);
long years = 0;
while(days>365) {
... |
75215830_74 | @Override
public URI store(JsonOutputObject outputObject) throws StorageException {
URI serviceUri = getServiceUri(outputObject.getJobId());
try (PipeStream inputStream = createJsonInputStream(outputObject)) {
return store(serviceUri, inputStream);
}
} |
75269665_3 | public double add(double firstOperand, double secondOperand) {
return firstOperand + secondOperand;
} |
75277003_45 | @Override
public void init(TbContext ctx, TbNodeConfiguration configuration) throws TbNodeException {
this.config = TbNodeUtils.convert(configuration, TbChangeOriginatorNodeConfiguration.class);
validateConfig(config);
setConfig(config);
} |
75308714_0 | @Override
public String sendTransaction(String to, String from, long amount) {
try {
return sendMessage(to, amount);
} catch (IOException e) {
log.error("Sending transaction failed", e);
}
return null;
} |
75368166_21 | public boolean createDirectoryStructure(String directoryPath) {
File directory = new File(directoryPath);
if (directory.exists()) {
throw new IllegalArgumentException("\"" + directoryPath + "\" already exists.");
}
return directory.mkdirs();
} |
75383441_0 | @Override
void onContinue(final String firstName, final String lastName) {
onView(new ViewAction<MainContract.ViewOperations>() {
@Override
public void onAction(MainContract.ViewOperations view) {
boolean isValid = true;
if (Utils.isStringEmpty(firstName) || firstName.length... |
75386501_1 | public JsonObject loadOptions(String filename) {
return loadOptions(defaultRootPath, filename);
} |
75608943_0 | public static SmurfR toRepresentation(Smurf smurf) {
return new SmurfR(smurf.getId(), smurf.getName(), smurf.getCreationDate());
} |
75626745_2 | public static UserInfoProvider getOpenIdProvider(String providerType) {
UserInfoProvider openIdProvider;
String s = providerType.toUpperCase();
if (s.equals("AZURE")) {
openIdProvider = new AzureAD();
} else {
openIdProvider = new UserInfoProvider();
}
return openIdProvider;
} |
75643631_20 | public Rect draw(@NonNull Canvas canvas, @NonNull Rect bounds, @NonNull Paint paint, int layoutDirection) {
float width = bounds.width() * scale;
float height = bounds.height() * scale;
if (width < height * aspectRatio) {
height = width / aspectRatio;
} else {
width = height * aspectRati... |
75661534_33 | protected List<HeaderValue> parseHeaderValue(String headerValue) {
return parseHeaderValue(headerValue, HEADER_VALUE_SEPARATOR, HEADER_QUALIFIER_SEPARATOR);
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.