id
stringlengths
7
14
text
stringlengths
1
37.2k
170604542_3
public Game findGameById(Long id) throws InvalidGameIdException { Game game = gameRepository.findById(id).orElse(null); if (game == null) { throw new InvalidGameIdException("Invalid game of id: " + id.toString()); } return game; }
170682516_0
public CmsConfig getConfigById(String id){ Optional<CmsConfig> optional = cmsConfigRepository.findById(id); if(optional.isPresent()){ CmsConfig cmsConfig = optional.get(); return cmsConfig; } return null; }
170829387_12
public void authenticate(AuthenticationFlowContext context) { LoginFormsProvider form = context.form(); Map<String, String> params = generateParameters(context.getRealm(), context.getUriInfo().getBaseUri()); context.getAuthenticationSession().setAuthNote(WebAuthnConstants.AUTH_CHALLENGE_NOTE, params.get(Web...
170883666_59
public GrokMatcher compile(final String expression) { Objects.requireNonNull(expression, "expression can't be null"); LOG.info("Starting to compile grok matcher expression : {}", expression); ArrayList<GrokPattern> patterns = new ArrayList<>(); final String regex = compileRegex(expression, patterns); ...
170887039_76
@Override public <K extends Key<T>> CompletableFuture<Void> deleteAll(final Set<K> keys) { Objects.requireNonNull(keys); final List<Delete> deletes = keysToDeletes(keys); return table.deleteAll(deletes); }
171042873_88
@ConditionalOnProperty(value = "scheduling.enabled", havingValue = "true") @Scheduled(cron = "0 * * * * *") @Retryable public void send() { List<Metric> metrics = metricService.collect(); metricService.send(metrics); }
171116174_14
@Override public boolean equals(Object o) { if (this == o) return true; if (!getClass().isInstance(o)) return false; return getId() != null && getId().equals(((JpaEntity) o).getId()); }
171132936_6
public static String deleteCRLFOnce(String input) { return input.replaceAll("((\r\n)|\n)[\\s\t ]*(\\1)+", "$1").replaceAll("^((\r\n)|\n)", ""); }
171638792_0
@Override public void clearInvalidApi(String serviceId, Collection<String> codes) { if (StringUtils.isBlank(serviceId)) { return; } List<String> invalidApiIds = baseApiService.listObjs(new QueryWrapper<BaseApi>().select("api_id").eq("service_id", serviceId).notIn(codes!=null&&!codes.isEmpty(),"api_c...
171867537_7
@Override public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException { responseContext.getHeaders().add("Access-Control-Allow-Origin", "*"); responseContext.getHeaders().add("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS"); respo...
172090523_83
@Override public <T extends Enum<T>> T getEnum(Class<T> enumClass) throws MatchbookSDKParsingException { if (isNotNullValue()) { try { String value = jsonParser.getValueAsString().toUpperCase().replace('-', '_'); try { return Enum.valueOf(enumClass, value); ...
172472737_0
@Override public void close() { operations.close(); }
172494483_1
public boolean supportsParameter(MethodParameter methodParameter) { return methodParameter.getParameterAnnotation(CurrentUser.class) != null && methodParameter.getParameterType().equals(User.class); }
172513597_2
@Override public Integer build(IContext context, Class<Integer> booleanClass) { final String string = super.contactInt(context); return Integer.valueOf(string); }
172695826_2
@Override public boolean verifySignature(byte[] message, byte[] sigBytes) { try { EdDSAEngine sgr = new EdDSAEngine(MessageDigest.getInstance("SHA-512")); sgr.initVerify(new EdDSAPublicKey(new EdDSAPublicKeySpec(keySpec.getA(), ed25519))); sgr.update(message); return sgr.verify(sigBy...
172743796_31
@Override public Map<String, Set<String>> get() { return supplier.get(); }
172750723_127
@Override public void record(long value, Labels labels) { BoundInstrument boundInstrument = bind(labels); boundInstrument.record(value); boundInstrument.unbind(); }
172835741_1
@Override public boolean testConnection() throws MangleException { log.debug("Validating test connection with Datadog using the specified tokens"); ResponseEntity<String> response = (ResponseEntity<String>) this .get(MetricProviderConstants.DATADOG_API_VALIDATE_API_APP_KEYS, String.class); if (S...
172865576_60
@ApiImplicitParams({ @ApiImplicitParam(name = "Authorization", value = "用户登录凭证", paramType = "header", dataType = "string", defaultValue = "Bearer ", required = true), }) @PutMapping("/{id}") @OperationRecord(type = OperationRecordLog.OperationType.UPDATE, resource = OperationRecordLog.OperationResource.IOS_VER...
172981843_7
@Override public ProducerDestination provisionProducerDestination(String name, ExtendedProducerProperties<SqsProducerProperties> properties) throws ProvisioningException { CreateTopicResult createTopicResult = amazonSNSAsync.createTopic(name); return new ...
173075460_3
public void sendMessage(Message message) throws UserNotInGroupException { checkUserInGroup(message.getSender()); messages.add(message); for(User user: users) { user.receiveMessage(message); } }
173167316_16
public void setAvailableKeys(@NotNull List<String> availableKeys) { this.availableKeys = availableKeys; }
173228436_63
public void putInt(long index, int value) { PropertyPage page = getOrCreatePage(getPageID(index)); int n = page.getSize(); page.addInt(getPageOffset(index), value); numProperties += page.getSize() - n; }
173230987_13
public String calculateDownstreamPath(final String receivedRequestUri) { // This function is required to join httpDownStreamPathPrefix with receivedRequestURI // remove any duplicate "/" // Not have an ending "/" if the path // assumes httpdownstreamPathPrefix does not include =,?,& // has a leading "/" as re...
173306807_22
@Override public Pair<T, T> crossover(T parentA, T parentB) { Set<String> union = new HashSet<>(); for (ParameterizableString p : parentA.getParameterizableStrings()) { union.add(p.getFactoryId()); } for (ParameterizableString p : parentB.getParameterizableStrings()) { union.add(p.getFa...
173327149_0
public static void doImageReplace(String filePath, byte[] content) { Args.notNull(filePath, "原始文件路径不为空"); ReplaceImageClientHandler operHandler = new ReplaceImageClientHandler(); operHandler.doReplaceImage(filePath, content); }
173335706_175
@ApiOperation(value = "delete", notes = "DELETE_DATA_SOURCE_NOTES") @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "DATA_SOURCE_ID", required = true, dataType = "Int", example = "100") }) @GetMapping(value = "/delete") @ResponseStatus(HttpStatus.OK) @ApiException(DELETE_DATA_SOURCE_FAILURE) public ...
173409096_54
public void setClassLoader(ClassLoader classloader) { this.classloader = classloader; }
173534034_11
public static CodeRequest newCodeRequest(HarRequest harRequest) throws Exception { return new CodeRequest(harRequest); }
173572330_47
@Override public final void getSize(@NonNull SizeReadyCallback cb) { sizeDeterminer.getSize(cb); }
173721564_1
@SuppressWarnings("unchecked") public static <T extends Message> T newMessageByProtoClassName(final String className, final byte[] bs) { final MethodHandle handle = PARSE_METHODS_4PROTO.get(className); if (handle == null) { throw new MessageClassNotFoundException(className + " not found"); } try...
173756598_3
public synchronized Transaction makeTransaction(String fromAddress, String toAddress, long value) throws ServerException { Wallet from = walletRepository.findByAddress(fromAddress); Wallet to = walletRepository.findByAddress(toAddress); if (from == null || to == null) throw new ServerException("Wrong address"); ...
173833378_0
@Get("/{name}") public String index(final String name) { return "Hello, " + name + ". From " + embeddedServer.getHost() + ":" + embeddedServer.getPort() + "\n"; }
173952800_1
public ComputedValues evaluateForAll(VariableEnvironment environment, Expression expression) throws Exception { return evaluate(environment, VariableEnvironment.NO_VALUE_SET_SELECTED, expression, false); }
174011880_1
public List<ParsingElement> load(boolean reload) { if (isLoaded() && !reload) { return getParsingElements(); } Map<String, Object> map = configLoader.readConfiguration(); fillParameters(map); MapWrapper mainMap = new MapWrapper(map, null); extendToExternalConfig(mainMap); mainMap.g...
174065041_172
@Transactional(propagation = Propagation.REQUIRED) public void deleteMetadataEntitiesInProject(Long projectId, String entityClassName) { Objects.requireNonNull(projectId); if (StringUtils.hasText(entityClassName)) { MetadataClass metadataClass = loadClass(entityClassName); metadataEntityDao.del...
174097909_25
public double getTotalUtilizationOfCpu(double time) { return getCloudletScheduler().getTotalUtilizationOfCpu(time); }
174098511_6
public boolean passwordMatchesHash(final String password, final String hash) { final byte[] decodedHash = base64Decoder.decode(hash); final int salt = ByteBuffer.wrap(decodedHash).getInt(); return convertPasswordToHash(password, salt).equals(hash); }
174104865_0
public static String getAddressInLocal(String ip) { if (StrUtil.equals(ip, IpUtil.LOCAL_INNER_LOOP_IP)) { ip = IpUtil.LOCAL_IP; } String address = ""; boolean ipAddress = Util.isIpAddress(ip); if (!ipAddress) { return address; } try { DbConfig config = new DbConfig();...
174185245_79
public ComplexNumber[] root(int n) { if (n <= 0) { throw new IllegalArgumentException("Cannot calculate negative roots."); } double magnitude = Math.pow(getMagnitude(), 1.0 / n); double angle = getAngle() / n; double angleStep = 2 * Math.PI / n; ComplexNumber[] roots = new ComplexNumber[n]; for (int index =...
174314296_1
public JsonNode jsonName(JsonNode nameNode) { Country country = countriesService.getByName(nameNode.get("name").asText()).iterator().next(); ObjectMapper mapper = new ObjectMapper(); JsonNode retNode = mapper.convertValue(country, JsonNode.class); return retNode; }
174353676_0
@POST public Response add(MagicData magic) { String id = UUID.randomUUID().toString(); LOGGER.info("Magic is going on ..." + magic); magicStore.putAsync(id, new HPMagic(id, magic.getCaster(), magic.getCurse(), magic.isInHogwarts())); return Response.ok().status(201).build(); }
174354196_1
@PutMapping(value = "/{id}", produces = "application/json") public Produto update(@PathVariable("id") long id, @RequestBody Produto produto) { return storage.update(id, produto); }
174373244_0
@GET @Fallback(fallbackMethod = "fallback") // better use FallbackHandler @Timeout(500) public List<Legume> list() { final List resultList = manager.createQuery("SELECT l FROM Legume l").getResultList(); return resultList; }
174398263_151
@Override public void cleanUp() { mUrlConnection = null; }
174633794_0
public synchronized static JavaDoc read(File sourceDir, List<String> compilePaths) { return read(Arrays.asList(sourceDir), compilePaths); }
174912621_0
@Override public List<String> listResourcesOfApp(String app) { List<String> results = new ArrayList<>(); if (StringUtil.isBlank(app)) { return results; } // TODO: 2019/3/26 请解决数据量大的问题,加一个时间范围刷选,处理可以同上面todo逻辑一致 if (dashboardProperties.getApplication().isEnable()) { List<MetricEntity>...
174912738_6
@Override public List<Item> collect(Object source) { if (source == null){ return Collections.emptyList(); } List<Item> result = Lists.newArrayList(); ReflectionUtils.doWithFields(source.getClass(), field -> { Class fieldCls = field.getType(); if (Changer.class.isAssignableFrom(fi...
175050767_27
public static String extractEtherAddressFromUri(String uri) throws InvalidEthereumAddressException { String uriWithoutSchema = uri.replaceFirst("ethereum:", ""); uriWithoutSchema = Numeric.cleanHexPrefix(uriWithoutSchema); if (uriWithoutSchema.length() != 40) { throw new InvalidEthereumAddressExcep...
175055878_2
@Override public Optional<BigDecimal> getAverageRating(final UUID gameId) { return this.resolveBoardGameGeekId(gameId) .map(bggId -> this.bggClient.getItemsWithRating(bggId)) .map(Items::getItems) .map(List::stream) .flatMap(Stream::findFirst) .map(ItemWithStatistics::getStatistics) .map(Statistics::getRat...
175062989_0
static void loadElf(ElfHeader elf, Program program, List<Option> options, MessageLog log, MemoryConflictHandler handler, TaskMonitor monitor) throws IOException, CancelledException { ElfProgramBuilder elfProgramBuilder = new ElfProgramBuilder(elf, program, options, log, handler); elfProgramBuilder.load(monitor)...
175193018_1
public static boolean isAsciiAlpha(char ch) { return (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z'); }
175482179_3
protected void setRect(@NonNull DirectionalRect rect, int start, int top, int end, int bottom) { rect.set(isRtl, parentWidth, start, top, end, bottom); }
175544925_723
@Deprecated public static SslContext newServerContext(File certChainFile, File keyFile) throws SSLException { return newServerContext(certChainFile, keyFile, null); }
175559661_26
@ResponseStatus(HttpStatus.CREATED) @RequestMapping(value = "/user", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE) public void createUser(@RequestBody WormholeUser user, HttpServletResponse response) { if (userRepository.findOneByUserName(user.getUserName()) != null) { String messag...
175804011_5
public static <T,U,R> Stream<R> merge(Stream<T> seq1, Stream<U> seq2, BiPredicate<T,U> pred, BiFunction<T,U,R> transf, U defaultVal) { // TODO return null; }
175889566_2
public Map<String, Object> getValues() { return values; }
175914805_0
public static void transToTsfile(String dirPath, String tsPath) { try { File f = new File(tsPath); if (!f.getParentFile().exists()) { f.getParentFile().mkdirs(); } try (TsFileWriter tsFileWriter = new TsFileWriter(f)) { File[] csvFiles = new File(dirPath).listFiles(); for (File csvF...
175961394_11
public Optional<Object[]> resolve(final Method testMethod, final Example.Builder example) { // TODO fchovich MOVE LOGIC FROM THE RESOLVER. CREATE CONVERTIBLES BEFORE. return this.parameterConverterResolver .resolveConverters(testMethod, example) .flatMap(c -> this.resolveParameters(testMethod, example, ...
176135637_75
@Subscribe public void onChatMessage(ChatMessage event) { if (event.getType() != ChatMessageType.SERVER && event.getType() != ChatMessageType.FILTERED) { return; } String chatMsg = Text.removeTags(event.getMessage()); //remove color and linebreaks if (chatMsg.startsWith(CHAT_BRACELET_SLAUGHTER)) { Matcher m...
176206805_10
public void checkAccess(ThreadGroup g) { if (g == null) { throw new NullPointerException("thread group can't be null"); } checkPermission(SecurityConstants.MODIFY_THREADGROUP_PERMISSION); }
176291010_75
@ReactProp(name = PROP_ACCESSIBILITY_ROLE) public void setAccessibilityRole(@Nonnull T view, @Nullable String accessibilityRole) { if (accessibilityRole == null) { return; } view.setTag(R.id.accessibility_role, AccessibilityRole.fromValue(accessibilityRole)); }
176724609_0
@Override public DataxConfig getJobInfo(Integer id) { HashMap<String,Object> params = new HashMap<>(); params.put("id",id); List<Map<String, Object>> jobInfos = dataxDao.getJobInfo(params); if(ObjectUtils.isEmpty(jobInfos)){ return null; } Map<String, Object> map = jobInfos.get(0); r...
176770877_0
public void parse() throws Exception { // TODO: Verify compatible OpenAPI version. logger.info("Parsing definitions."); this.generateAlgodIndexerObjects(root); // Generate classes from the return types which have more than one return element logger.info("Parsing responses."); this.generateRetu...
177104472_11
@Override public Publisher register(PublisherRegistration registration, String... data) { if (!init.get()) { throw new IllegalStateException("Client needs to be initialized before using."); } if (null == registration) { throw new IllegalArgumentException("Registration can not be null."); ...
177177812_0
public static String getStringDate(Date date) { Calendar calendar = Calendar.getInstance(TimeZone.getDefault()); int month = getMonth(date); StringBuilder stringBuilder = new StringBuilder(); calendar.setTime(date); stringBuilder.append(calendar.get(Calendar.DAY_OF_MONTH)); stringBuilder.append(...
177503596_3
@Override public List<User> findTenantAdmins(UUID tenantId, TextPageLink pageLink) { return DaoUtil.convertDataList( userRepository .findUsersByAuthority( fromTimeUUID(tenantId), NULL_UUID_STR, pageLi...
177547877_1
public boolean isStatusResponse(String json) throws CouldNotReadJsonException { if (StringUtils.isBlank(json)) { return false; } String id = getRawId(json); return StringUtils.startsWithIgnoreCase(id, TmRpcMethod.STATUS.getMethodString()); }
177672258_0
public static <T, E> T getKeyByValue(Map<T, E> map, E value) { for (Map.Entry<T, E> entry : map.entrySet()) { if (Objects.equals(value, entry.getValue())) { return entry.getKey(); } } return null; }
177745239_136
@Override public void apply(AsgQuery query, AsgStrategyContext context) { // phase 1 - group all Eprops to EPropGroups AsgQueryUtil.elements(query, Quant1.class).forEach(quant -> { List<AsgEBase<EProp>> ePropsAsgChildren = AsgQueryUtil.nextAdjacentDescendants(quant, EProp.class); List<EP...
177751597_24
@Override public void put(byte[] key, TransactionRetCapsule item) { if (BooleanUtils.toBoolean(Args.getInstance().getStorage().getTransactionHistoreSwitch())) { super.put(key, item); } }
178002723_4
public List<FileContent> descriptorToString(FileDescriptorSet descriptorSet) { List<FileContent> result = new LinkedList<>(); for (FileDescriptorProto protoFileDesc : descriptorSet.getFileList()) { StringBuilder buffer = new StringBuilder(); buffer.append("syntax = \"").append(protoFileDesc.getSyntax()).appen...
178064729_22
@Override public boolean test(String httpText) { return this.patterns.stream() .anyMatch(p -> p.matcher(httpText).matches()); }
178169608_2
public static Optional<SnykTestStatus> unmarshall(Path path) throws IOException { if (path == null) { return Optional.empty(); } try (JsonParser parser = JSON_FACTORY.createParser(path.toFile())) { JsonToken token = parser.nextToken(); if (token == JsonToken.START_ARRAY) { List<SnykTestStatus> ...
178173999_39
public synchronized void addListener(NeuralNetworkEventListener listener) { if (listener == null) throw new IllegalArgumentException("listener is null!"); listeners.add(listener); }
178313880_0
public DataTable sqlQuery(String sql) { try { executeBeforeSqlQuery(sql); if (sql2ExecutionPlanCache != null) { TableExecutionPlan executionPlan = sql2ExecutionPlanCache .getIfPresent( cacheKeyPrefix + sql); if (executionPlan != null) { return implement(executionPla...
178461625_308
@Override public void join() throws CompletionException, InterruptedException { try { join(10, TimeUnit.SECONDS); } catch (TimeoutException ex) { throw new RuntimeException("Default timeout triggered for blocking call to AsyncCompletion::join()", ex); } }
178503192_2
public void delete(Integer index) { this.checkIndexOutOfBound(index); Node<T> wantDeleteLastNode = head; for (int i = 0; i < index; i++) { wantDeleteLastNode = wantDeleteLastNode.next; } wantDeleteLastNode.next = wantDeleteLastNode.next.next; this.length -= 1; }
178518612_3
public static String generate(String ftl, Object dataModel){ try { Template template = getTemplate(ftl); return buildResult(template, dataModel); } catch (IOException e) { logger.error("Error: {}\n{}", e.getMessage(), e.getStackTrace()); } catch (TemplateException e) { logger...
178760528_3
public Topology buildTopology(Properties envProps) { final StreamsBuilder builder = new StreamsBuilder(); final String inputTopic = envProps.getProperty("input.topic.name"); final String outputTopic = envProps.getProperty("output.topic.name"); final String joinTopic = envProps.getProperty("join.topic.name"); ...
178830383_11
@Override public Object afterBodyRead(Object body, HttpInputMessage inputMessage, MethodParameter parameter, Type targetType, Class<? extends HttpMessageConverter<?>> converterType) { if (body instanceof ...
178845642_0
@Override @Cacheable(key = "#name", cacheNames = "my-redis-cache2") public String getName(String name) { System.out.println(name); return name; }
178922614_6
public static List<TestData> parse(Path testFile) throws IOException { Reader reader = Files.newBufferedReader(testFile); try { return parse(testFile.getFileName().toString(), reader); } catch (RuntimeException e) { throw new RuntimeException("Failed parsing '" + testFile + "'", e); } }
179002056_18
@Override public void run() { try { switch (method) { case "get": runGet(); break; case "delete": runDelete(); break; case "put": runPut(); break; case "scan": runScan(); break; } } catch (IllegalArgumentException e) { ...
179494421_7
public static Optional<Array> createArray(Type type) { return createArray(null, type, false); }
179502880_327
boolean areEqualDownToSeconds(Date date1, Date date2) { final boolean bothNull = (date1 == null && date2 == null); final boolean bothNotNull = (date1 != null && date2 != null); return bothNull || (bothNotNull && (date1.getTime() / 1000) == (date2.getTime() / 1000)); }
179541399_2
public TDPath parse(String str) { TDPath path = new TDPath(); if (StringUtil.isEmpty(str)) return path; if (str.endsWith("#")) // Ignore the last # which indicate "key" of the map str = str.substring(0, str.length() - 1); if (str.indexOf('#') < 0) { if (parseParts(str, path, true)) return pa...
179849363_8
@Override public void fill(InputFile file, SensorContext context, AntlrContext antlrContext) { try { if (!(file instanceof DefaultInputFile)) { return; } NewCpdTokens newCpdTokens = context.newCpdTokens().onFile(file); List<? extends Token> tokens = antlrContext.getAllTokens(); DefaultInputFile defaultInp...
179925476_3
@NotNull @Override public Single<M> getLatest(P params) { return networkDataSource.getAndUpdate(params, cacheDataSource) .map(TimeStampedData::getModel) .toSingle(); }
179952747_0
static String capitalize(String name) { return name.substring(0, 1).toUpperCase() + name.substring(1); }
180317496_6
@DELETE @RolesAllowed("admin") public Response delete(@QueryParam("id") Long customerId) { customerRepository.deleteCustomer(customerId); return Response.status(204).build(); }
180526285_34
@Override public Mono<Endpoints> detectEndpoints(Instance instance) { Registration registration = instance.getRegistration(); String managementUrl = registration.getManagementUrl(); if (managementUrl == null || Objects.equals(registration.getServiceUrl(), managementUrl)) { return Mono.empty(); }...
180537027_5
public T eraseAllFormCustomExtensions(final T resource) { List<Extension> extensions = resource.getExtensions().values().stream().map(extension -> { if (extension instanceof EnterpriseExtension) { https://github.com/SAP/scimono/issues/77 EnterpriseExtension enterpriseExtension = (EnterpriseExten...
180588003_85
@Override public ConsentWorkflow identifyConsent(String encryptedConsentId, String authorizationId, boolean strict, String consentCookieString, BearerTokenTO bearerToken) { // Parse and verify the consent cookie. ConsentReference consentReference = referencePolicy.fromRequest(encryptedConsentId, authorizationId...
180757477_5
static Optional<Type> backgroundFunctionTypeArgument( Class<? extends BackgroundFunction<?>> functionClass) { // If this is BackgroundFunction<Foo> then the user must have implemented a method // accept(Foo, Context), so we look for that method and return the type of its first argument. // We must be careful ...
180773046_12
@Override public Instant deserialize(JsonParser p, DeserializationContext ctxt) throws IOException { try { String text = p.readValueAs(String.class); return text == null ? null : converter.convert(text); } catch (Exception e) { throw new JsonParseException(p, "Could not parse node as instant", e); } }
180834808_1
public InjectorService getInjectorService() { Map<String, InjectorService> beansOfType = context.getBeansOfType(InjectorService.class); if (beansOfType.entrySet().isEmpty()) { throw new NoSuchBeanDefinitionException("No InjectorType found"); } return beansOfType.entrySet().iterator().next().getV...
180961537_0
@Bean public Supplier<Loan> supplyLoan(){ Supplier<Loan> loanSupplier = () -> { Loan loan = new Loan(UUID.randomUUID().toString(), names.get(new Random().nextInt(names.size())), amounts.get(new Random().nextInt(amounts.size()))); log.info("{} {} for ${} for {}", loan.getStatus(), loan...
181194375_2
public PluggableLoggerFactory addLogger(LoggerChannel logger, Level level) { mSortedLoggers.add(new SortedLogger(logger, level.toInt())); Collections.sort(mSortedLoggers, mSortedLoggersComparator); return this; }
181286172_8
static int convertRomanToArabicNumber(String roman) { roman = roman.toUpperCase(); int sum = 0; int current = 0; int previous = 0; for (int index = roman.length() - 1; index >= 0; index--) { if (doesSymbolsContainsRomanCharacter(roman, index)) { current = getSymbolValue(roman...