id stringlengths 7 14 | text stringlengths 1 37.2k |
|---|---|
56258575_13 | @Override
public Response serve(IHTTPSession session) {
if (!apiAuthEnabled || hasValidCredentials(session)) {
return respond(session);
}
return newFixedLengthResponse(Status.FORBIDDEN, NanoHTTPD.MIME_PLAINTEXT, "Invalid API key\r\n");
} |
56278667_91 | public String getSearchHost() {
String scheme = isToolboxEnableHttpScheme ? "http" : aptoideWebServicesScheme;
return "http".equals(scheme) ? scheme + "://" + aptoideWebServicesSearchHost + "/v1/"
: scheme + "://" + aptoideWebServicesSearchSslHost + "/v1/";
} |
56323969_241 | @Override
protected void onEvent(final OrderModificationEvent orderModificationEvent) {
final OrderNotificationMessage orderNotificationMessage = orderModificationEvent.getOrderNotificationMessage();
final AuthorisedStatus journalType = orderNotificationMessage.getJournalReply().getJournalType();
if (journa... |
56342003_298 | public static SortedMap<String, ApplicationScope> revalidateScope(
final String[] requestedScopes,
final SortedMap<String, ApplicationScope> originalScopes,
final SortedMap<String, ApplicationScope> validScopes) {
if (validScopes == null || originalScopes == null) {
throw new Invali... |
56365609_5 | public static boolean match(String topicFilter, String topicName) {
if (!TopicMatcher.isValid(topicFilter, true) || !TopicMatcher.isValid(topicName, false)) { return false; }
if ((topicFilter.startsWith(MULTI_LEVEL_WILDCARD) || topicFilter.startsWith(SINGLE_LEVEL_WILDCARD))
&& topicName.startsWith("$")) { return ... |
56423934_0 | @Override
protected Map<String, Boolean> getFileTypes()
{
return fileTypes;
} |
56433446_0 | public String[] getPaths()
{
Set<Node> endPoints = mRoot.getEndPoints();
String[] result = new String[endPoints.size()];
int index = 0;
for (Node node : endPoints)
{
result[index] = node.getPath();
index++;
}
return result;
} |
56442452_47 | public MigraMongoStatus status(String fromVersion) {
final Iterable<MigrationEntry> migrations = migrationHistoryService.findMigrations(fromVersion);
for (MigrationRun migEntry : migrations) {
if (migEntry.getStatus() == MigrationStatus.ERROR) {
return MigraMongoStatus
.error... |
56527099_10 | public static Builder builder()
{
return new Builder();
} |
56540815_4 | public Cluster createCluster(String name, Integer size) throws InterruptedException, URISyntaxException {
SolrClusterOptions options = new SolrClusterOptions(name, size);
SolrCluster cluster = service.createSolrCluster(options);
// poll until status is ready
log.info(Messages.getString("RetrieveAndRank.CLUSTE... |
56551000_92 | @Override
public void inject(JaegerSpanContext spanContext, TextMap carrier) {
char[] chars = new char[TRACEPARENT_HEADER_SIZE];
chars[0] = VERSION.charAt(0);
chars[1] = VERSION.charAt(1);
chars[2] = TRACEPARENT_DELIMITER;
HexCodec.writeHexLong(chars, TRACE_ID_OFFSET, spanContext.getTraceIdHigh());
HexCodec... |
56572755_0 | public void process(Writer writer, List<Class<?>> annotatedList) throws Exception {
Set<String> puNames = new HashSet<String>();
XMLOutputFactory xof = XMLOutputFactory.newInstance();
XMLStreamWriter w = new IndentingXMLStreamWriter(xof.createXMLStreamWriter(writer));
w.setDefaultNamespace("http://java.... |
56590318_0 | protected TemplateDefinitionImpl loadTemplate(Path p) throws IOException {
ObjectMapper mapper = new ObjectMapper();
TemplateDefinitionImpl t = mapper.readValue(p.toFile(), TemplateDefinitionImpl.class);
return t;
} |
56611216_24 | public List<OemData> getAllOem() {
List<OemData> allOemData = new ArrayList<OemData>();
try {
List<TblOem> allRecords = tblOemJpaController.findTblOemEntities();
for (TblOem tblOem : allRecords) {
OemData oemData = new OemData(tblOem.getName(), tblOem.getDescription());
... |
56649404_7 | @Override
public void start() {
loadStatistics();
} |
56670932_2 | @Override
public Flag.FlagResultStatus appliesTo(@Nullable String value) throws NumberFormatException {
if (StringUtils.isEmpty(value)) {
return DISABLED;
}
final int val = Integer.parseInt(value);
//If there is no registration time
if (val == 0) {
return DISABLED;
}
final ... |
56679521_31 | @Override
protected void doSelectToHolder(Request request, List<Referer<T>> refersHolder) {
if (holder == emptyHolder) {
return;
}
RefererListCacheHolder<T> h = this.holder;
int i = 0, j = 0;
while (i++ < getReferers().size()) {
Referer<T> r = h.next();
if (r.isAvailable()) ... |
56690117_871 | @Override
public BigInteger getDhServerPublicKey() {
if (context.getServerDhPublicKey() != null) {
return context.getServerDhPublicKey();
} else {
return config.getDefaultServerDhPublicKey();
}
} |
56703957_8 | @Override
public Set<RelaxerSuggestion> createSuggestions(SolrQueryRequest req) {
List<String> tokens = new ArrayList<String>();
int countOfQuotes = 0;
SolrParams params = req.getParams();
String userQuery = params.get(CommonParams.Q);
countOfQuotes = ReSearcherUtils.tokenizeQueryString(userQuery, tokens);... |
56717384_36 | public Dimension getUsedSpace() {
Dimension maxBox = Dimension.EMPTY;
for (Level level : levels) {
maxBox = getUsedSpace(level, maxBox);
}
return maxBox;
} |
56718024_27 | public static ProvisioningProfile find(List<ProvisioningProfile> profiles, String search) {
for (ProvisioningProfile p : profiles) {
if (p.uuid.equals(search) || p.appIdPrefix.equals(search) || p.appIdName != null && p.appIdName.equals(search)
|| p.name.equals(search)) {
return p... |
56729247_1 | public static final void instrument(String rtJar, String outJar)
throws NoSuchAlgorithmException, IOException {
Logger.getGlobal().log(Level.FINE, "Instrumenting " + rtJar + " into " + outJar);
new Instrumenter().process(rtJar, outJar);
} |
56730584_3 | public static byte[] hash(byte[] source) {
try {
MessageDigest digest = MessageDigest.getInstance("MD5");
return digest.digest(source);
} catch (NoSuchAlgorithmException e) {
logger.error("Failed to find MD5");
}
return null;
} |
56735986_14 | public TransactionContextExecutor<T> withSingleTransaction() {
return new TransactionContextExecutor<>(SINGLE_TRANSACTION_TRANSACTION_CONTEXT, provider, connectionConsumer);
} |
56748637_33 | public QuestionWord() {
ArrayList<String> attributeValues = new ArrayList<String>();
attributeValues.add("Who");
attributeValues.add("What");
attributeValues.add("When");
attributeValues.add("Where");
attributeValues.add("Which");
attributeValues.add(Commands);
attributeValues.add(AuxVerb);
attributeValues.a... |
56765949_4 | @Override public void preDestroyView(@NonNull Controller controller, @NonNull View view) {
P presenter = getCallback().getPresenter();
if (presenter == null) {
throw new NullPointerException(
"Presenter returned from getPresenter() is null in " + callback);
}
presenter.detachView();
} |
56791509_2 | public static MatchableCall whenPUT(Matcher<RecordedRequest> requestMatcher) {
return RESTMockServer.whenRequested(allOf(isPUT(), requestMatcher));
} |
56853150_7 | public void run(String configPath, String outputPath, long timeMin, long timeMax, int limit)throws Exception {
FlinkEnvManager fem = new FlinkEnvManager(configPath, "converterJob",
TableIdentifier.RAW_TWITTER_DATA.get(),null);
DataSet<Tuple2<Key,Value>> rawTwitterDataRows = fem.getDataFromAccumulo... |
56855940_6 | public void onTimingClick(String timing) {
sharedPreferences.edit().putBoolean(Constants.APP_LOCK_ACTIVATED, false).apply();
storeTiming(timing);
mainActivityView.showToast(Constants.OVERLAY_DEACTIVATED_MESSAGE);
restoreToDefault();
launchHomeScreen();
} |
56890246_2 | @SuppressWarnings({"unchecked", "rawtypes"})
public static Map<String, String> getParameters() {
Properties props = Configuration.loadConfigurationFile();
loadSystemProperties(props);
for (String propName : props.stringPropertyNames()) {
String value = props.getProperty(propName);
if (ACCES... |
56949753_0 | private CellBinding()
{
} |
56988303_73 | @Override
public String addPageUnderAncestor(String spaceKey, String ancestorId, String title, String content, String versionMessage) {
HttpPost addPageUnderSpaceRequest = this.httpRequestFactory.addPageUnderAncestorRequest(spaceKey, ancestorId, title, content, versionMessage);
return sendRequestAndFailIfNot20... |
57040975_0 | public String applyParameters(final String input) {
final Matcher matcher = parameterNamePattern.matcher(input);
final StringBuffer b = new StringBuffer();
while(matcher.find()) {
final String replaced = this.parameterHandler.apply(matcher.group(1));
matcher.appendReplacement(b, replaced);
}
matcher.appendTail... |
57064024_2 | public static final TargetIssueLocatorCommentHelper fromTemplateExpression(TemplateExpression templateExpression) {
return new TargetIssueLocatorCommentHelper(templateExpression.getExpressionString());
} |
57079254_7 | @Override
public void start() {
loadStatistics();
} |
57081740_1 | @Override
public CloseableHttpResponse execute(HttpUriRequest request) throws IOException, ClientProtocolException {
HttpRequestWrapper wrap = HttpRequestWrapper.wrap(request);
adviseRobotsTxt(wrap.getURI());
wrap.setURI(applyPHP(wrap.getURI()));
return client.execute(wrap);
} |
57096675_0 | public static <R> Future<List<R>> allOfFutures(List<Future<R>> futures) {
return CompositeFutureImpl.all(futures.toArray(new Future[futures.size()]))
.map(v -> futures.stream()
.map(Future::result)
.collect(Collectors.toList())
);
} |
57125528_11 | public String[] readMetadataFields(CSVReader reader) throws IOException {
// read first line from the file, with metadata description
String[] metadataFields = reader.readNext();
if(metadataFields==null)
throw new RuntimeException("Empty input file");
// if there is a mapping for parameters, use it
... |
57126883_2 | @Override
public List<Proxy> parse(String hmtl) {
Document document = Jsoup.parse(hmtl);
Elements elements = document.select("table[id=ip_list] tr[class]");
List<Proxy> proxyList = new ArrayList<>(elements.size());
for (Element element : elements){
String ip = element.select("td:eq(1)").first().... |
57180498_0 | @SuppressWarnings("unchecked")
@Override
public Object codec(byte[] source, Object targetClass) {
// targetObject is type of tlv annotation class
if (null == source || null == targetClass)
throw new NullPointerException("source is null or targetObject is null.");
if (!(targetClass instanceof Class<?>))
throw ne... |
57191077_2 | public static void registerServlet(String urlPattern, HttpServlet servlet) {
sServletMap.put(urlPattern, servlet);
} |
57194230_3 | public String createClasspath(String basedir, String aplVersion) {
try {
Stream<Path> paths = Files.walk(Paths.get(basedir));
String jarsPath = paths
.filter(path -> path.toFile().isDirectory() && path.toFile().getName().contains(aplVersion))
.flatMap(path -> {
... |
57202360_28 | @Override
public void onNavigationItemSelected(@IdRes int itemId) {
if (itemId != selectedItemId) {
switch (itemId) {
case R.id.drawer_nav_schedule:
view.showFragment(new SchedulePagerFragmentBuilder(false).build());
toolbarTitle = R.string.drawer_nav_schedule;
... |
57251243_437 | public static <T, U> BiConsumerWithTracing<T, U> withTracing(BiConsumer<T, U> origBiConsumer) {
return new BiConsumerWithTracing<>(origBiConsumer);
} |
57261362_3 | public static byte[] encryptByPublicKey(byte[] data, RSAPublicKey publicKey) {
try {
Cipher cipher = Cipher.getInstance(KEY_ALGORITHM_PADDING);
cipher.init(Cipher.ENCRYPT_MODE, publicKey);
// 模长
int key_len = publicKey.getModulus().bitLength() / 8;
// 加密数据长度 <= 模长-11
... |
57263576_18 | @Override
public WXTextView getView() {
return (WXTextView) super.getView();
} |
57338026_212 | @Override
public void filter(ContainerRequestContext requestContext) throws IOException {
requestContext.setSecurityContext(createSecurityContext());
} |
57401572_44 | @Override
@Nullable
public Configuration getConfiguration(final ServletContext servletContext) {
if (!this.properties.isEnabled()) {
return null;
}
// Generate a list of all relevant annotations
final Set<Class<? extends Annotation>> ruleAnnotations = new LinkedHashSet<>();
final List<AnnotationHandler<Annotat... |
57461213_51 | @VisibleForTesting
void getItemPrice(int id, ItemComposition itemComposition, int quantity)
{
// quantity is at least 1
quantity = Math.max(1, quantity);
final int gePrice = itemManager.getItemPrice(id);
final int alchPrice = itemComposition.getHaPrice();
if (gePrice > 0 || alchPrice > 0)
{
final ChatMessageBu... |
57613683_0 | public <T> ElementAdapter<T> adapter(Type type) {
return adapter(type, Util.NO_ANNOTATIONS);
} |
57803948_11 | public static String createJson(Object obj) {
final Map<String, ClassGetSetDTO> map = getFieldsTypeMap(obj.getClass());
String preKey = map.keySet().isEmpty() ? null : map.keySet().iterator().next();
if(map.size() == 1 && preKey != null && preKey.equals(StringConstants.EMPTY)){
ClassGetSetDTO descriptor = map.valu... |
57921720_5 | @Override
public boolean validate() {
return setVariableResult != null
&& setVariableResult.length > 0
&& Arrays.stream(setVariableResult)
.allMatch(setVariableResult -> setVariableResult.validate());
} |
57926203_280 | static InstanceIdentifier<Local> createLocalSffIid() {
return InstanceIdentifier.builder(Native.class)
.child(ServiceChain.class)
.child(org.opendaylight.yang.gen.v1.urn.ios.rev160308._native.service.chain.ServiceFunctionForwarder.class)
.child(Local.class).build();
} |
57942251_1 | @Override
public NumberType getNumberType() throws IOException
{
IonType type = _reader.getType();
if (type != null) {
// Hmmh. Looks like Ion gives little bit looser definition here;
// harder to pin down exact type. But let's try some checks still.
switch (type) {
case DECIMAL:... |
57951012_835 | public void addOperand(PdfLayer layer) {
getPdfObject().add(layer.getPdfObject());
getPdfObject().setModified();
} |
57960070_2 | public EvalEntry eval(String stmt) throws Exception {
try {
return (EvalEntry) latteEngine.eval(stmt, latteEngine.getBindings(ScriptContext.ENGINE_SCOPE),
new Config()
.setScannerType(scannerType).setVarNamePrefix(varNameBase).setEval(true)... |
57984189_4 | @Override
public String hash(final IStacktrace st) throws StacktraceHashException {
return hashString(st.getStacktraceText());
} |
57997098_1 | public boolean onKeyDown(int keyCode, KeyEvent event) {
if (mPlugins.isEmpty()) {
return getOriginal().super_onKeyDown(keyCode, event);
}
final ListIterator<ActivityPlugin> iterator = mPlugins.listIterator(mPlugins.size());
final CallFun2<Boolean, Integer, KeyEvent> superCall = new CallFun2<Bo... |
58086354_147 | final ClientTransport obtainActiveTransport() {
ClientTransport savedTransport = activeTransport;
if (savedTransport != null) {
return savedTransport;
}
synchronized (lock) {
// Check again, since it could have changed before acquiring the lock
if (activeTransport == null) {
if (shutdown) {
... |
58089419_6 | @Override
public AdsOptimization selectTopK(int k) {
if (k <= 0) {
throw new IllegalArgumentException("The parameter should be a positive integer.");
}
if (_candidateAds.size() == 0) {
return this;
}
Collections.sort(_candidateAds, new Comparator<AdsStatsInfo>() {
@Override
... |
58135054_0 | public int getTaskId() {
return taskId;
} |
58142278_0 | @Override
public int getChainHeight() throws HLAPIException {
BlockCount height = obs.getBlockCount(com.google.protobuf.Empty.getDefaultInstance());
return (int) height.getCount();
} |
58148640_17 | @SuppressLint("EmptyCatchBlock")
/* package */ LinkedHashMap<String, Entry> retrieveEntriesFromJournal() {
maybeSwitchToBackupJournalFile(mDirectory);
File journalFile = new File(mDirectory, JOURNAL_FILE);
if (journalFile.exists()) {
LinkedHashMap<String, Entry> lruEntries = new LinkedHashMap<>();
Buffere... |
58163050_0 | public double add(double a, double b){
return a+b;
} |
58194180_516 | public static SimpleAclRuleResource fromKafkaResourcePattern(ResourcePattern kafkaResourcePattern) {
String resourceName;
SimpleAclRuleResourceType resourceType;
AclResourcePatternType resourcePattern = null;
switch (kafkaResourcePattern.resourceType()) {
case TOPIC:
resourceName = ... |
58203049_62 | @Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("<" + getName() + "");
for (int i = 0; i < getNamespaceCount(); ++i) {
sb.append(" xmlns");
String prefix = getNamespacePrefix(i);
if (prefix != null && !prefix.isEmpty()) {
sb.append(":");
sb.append(... |
58207096_1 | public MarvelResult<SectionVO> listComics(long characterId, int offset) throws IOException, MarvelException {
Response<SectionDataWrapper> response = mService.listComics(characterId, offset, MAX_FETCH_LIMIT).execute();
if (response.isSuccessful()) {
return DataParser.parse(response.body());
} else {... |
58208693_33 | public String toParseableString() {
StringBuilder sb = new StringBuilder();
if (serverIndex.intValue() != 0) {
sb.append("svr=").append(serverIndex).append(";");
}
if (namespaceUri != null) {
sb.append("nsu=").append(namespaceUri).append(";");
} else {
int namespaceIndex = ... |
58223375_0 | public synchronized void loveTrack(Track track) {
if (scroballDB.isLoved(track)) {
return;
}
LovedTracksEntry entry = scroballDB.writeLove(track, 0);
pending.add(entry);
lovePending();
eventBus.post(TrackLovedEvent.create());
} |
58224198_2 | @Override public void launchPointOfSale() {
List<ResolveInfo> activities = queryChargeActivities();
PackageInfo pointOfSalePackage = findPointOfSaleWithHighestVersion(activities);
Intent pointOfSaleIntent = packageManager.getLaunchIntentForPackage(pointOfSalePackage.packageName);
context.startActivity(pointOfSa... |
58236838_0 | public static String decode(byte[] data) {
return null == data ? null : decode(data, 0, data.length);
} |
58270602_3 | public Collection<Torrent> filterFinishedTorrentsToNotify(Collection<Torrent> torrents, Server server) {
long lastUpdateDate = server.getLastUpdateDate();
if (lastUpdateDate <= 0) return Collections.emptySet();
return filterFinishedAfterDate(torrents, lastUpdateDate);
} |
58279246_1 | public void init() {
init(Preconditions.checkNotNull(Strings.emptyToNull(directoryFlag.get())));
} |
58282625_3 | public static String random(final int count) {
return random(count, false, false);
} |
58301263_6 | @SuppressWarnings("unused")
public static Calendar convertModelToCalendar(Model tempModel) {
return new GregorianCalendar(tempModel.getYear(), tempModel.getMonth(), tempModel.getDay(), 0, 0, 0);
} |
58311295_21 | public int getLatestVersion() {
if (migrationScripts.isEmpty()) {
return 0;
}
return migrationScripts.get(migrationScripts.size() - 1).getVersion();
} |
58317819_5 | public <DATA extends ResourceIdentifier> ObjectDocument<DATA> asObjectDocument() {
return asObjectDocument(0);
} |
58336236_1 | public void reset() {
nexts = new int[1024];
Arrays.fill(nexts, -1);
hashes = new int[1024];
Arrays.fill(hashes, -1);
heads = new int[1024];
Arrays.fill(heads, -1);
load = (loadFactor * heads.length) >> 10;
size = 0;
} |
58370373_13 | @GetMapping(produces = TEXT_HTML_VALUE)
public String doGet(
@RequestParam(value = "u", required = false) @Nullable String userId,
@RequestParam(value = "vc", required = false) @Nullable String vcode) {
if (resetPasswordService.checkVcode(userId, vcode).isPresent()) {
return "users/resetPass... |
58378593_2 | public String unescape(String str) {
int slashIndex = str.indexOf('\\');
if (slashIndex > -1) {
int offset = 0;
StringBuilder unescaped = new StringBuilder(str.length() - 1);
while (slashIndex > -1) {
char c = str.charAt(slashIndex + 1);
char r = (c < unescapeMap.length) ? unescapeMap[c] : N... |
58413602_0 | @NonNull
@Override
public List<Talk> retrieveAllTalks(boolean fromCache) throws IOException {
final List<Talk> response = new ArrayList<>();
if (fromCache) {
List<Talk> cachedResponses = localRepository.getTalkList();
// cache miss
if (cachedResponses == null) {
return re... |
58415158_3 | public void deleteList(WFList toDelete) throws IOException {
checkLoggedIn();
long time = getClientTimeInSeconds();
Long prevLm = toDelete.lm;
PushPoll.Operation deleteOp;
synchronized (this) {
// set the proxy (and delete it from parent)
toDelete.lm = time;
List<WFList> toD... |
58435528_0 | public void on(String event, Callback callback) {
logger.debug("Added callback for event {}", event);
getEvents(event).add(callback);
} |
58463769_2 | @Override
public void execute() {
JiraClient.Response response = jiraClient.requestIssueStatus(address, issues);
if (!response.ok()) {
logger.warn("Requesting statuses for issues {} failed: {}", issues, response.errorDetails());
newPollIn(60);
} else if (positiveTargetStatus != null) {
... |
58555246_58 | @Override
public void onNext(HAProxyPublisher.HAProxyAction action) {
if (action.isRegistration()) {
createNSQConsumer(action.getId());
} else {
deleteNSQConsumer(action.getId());
}
} |
58644242_1 | public void open(String url) {
open(url, new Bundle());
} |
58682610_0 | public void electLeader(String ELECTION_PATH) {
leaderSelector = new LeaderSelector(client, ELECTION_PATH, leaderListener);
leaderSelector.autoRequeue();
leaderSelector.start();
} |
58712872_12 | @Override
public Result execute() {
try {
Result result = check();
if (!result.isHealthy()) {
logger.log(Level.WARNING, "HealthCheck '{0}' is unhealthy: {1}",
new Object[]{getName(), result.getMessage()});
}
return result;
} catch (Exception e) {
... |
58730569_11 | ValueContainer inspectEntity(HasUuid entity) {
DefaultValueContainer result = new DefaultValueContainer();
EntityInspector inspector = new EntityInspector(entity);
for (Method currentAttribute : inspector.getAuditedAttributes()) {
try {
AuditedAttribute auditedAttribute = currentAttribute.getAnnotation(Audite... |
58734918_88 | @Override
public InfluxDbSender get() {
try {
final URI uri = configuration.getUri().parseServerAuthority();
final String protocol = uri.getScheme().toLowerCase(Locale.ENGLISH);
final String host = uri.getHost();
final int port = uri.getPort();
final String database = uri.ge... |
58760260_2 | public String getLastName() {
return lastName;
} |
58766030_1 | public static LocalDateTime toLocalDateTime( Date date ) {
Calendar c = Calendar.getInstance();
c.setTime( date );
int year = c.get( Calendar.YEAR );
int month = c.get( Calendar.MONTH ) + 1; // Calendar month starts at 0
int day = c.get( Calendar.DAY_OF_MONTH );
int hour = c.get( Calendar.HOUR_OF_DAY );
int min... |
58767125_134 | public static BigDecimal atanh(BigDecimal x, MathContext mathContext) {
if (x.compareTo(BigDecimal.ONE) >= 0) {
throw new ArithmeticException("Illegal atanh(x) for x >= 1: x = " + x);
}
if (x.compareTo(MINUS_ONE) <= 0) {
throw new ArithmeticException("Illegal atanh(x) for x <=... |
58881448_4 | public TrackerResponse handleResponse(InputStream in, Charset charset) {
try (BEParser parser = new BEParser(in)) {
return handleResponse(parser, charset);
} catch (Exception e) {
return TrackerResponse.exceptional(e);
}
} |
58921823_374 | @Override
public Response createJob(JobConfiguration mutableJob) {
SanitizedConfiguration sanitized;
try {
sanitized = SanitizedConfiguration.fromUnsanitized(
configurationManager,
IJobConfiguration.build(mutableJob));
} catch (TaskDescriptionException e) {
return error(INVALID_REQUEST, e)... |
58940073_8 | public ValidatorResult validate()
{
validateAsset();
ValidatorContext context = new ValidatorContext("glTF");
ValidatorResult validatorResult = new ValidatorResult();
validatorResult.add(validateScenes(context));
validatorResult.add(validateNodes(context));
validatorResult.add(validate... |
58952547_5 | @Override
public void startPresenting(final MovieDetailsMVP.View movieDetailsView, long movieId) {
MovieDetails movieDetails = movieDetailsUseCase.getMovieDetails();
if (movieDetails != null) {
movieDetailsView.display(movieDetails);
} else {
movieDetailsUseCase.setListener(new MovieDetailsU... |
58955752_148 | public String removeTrailing(String text) {
List<String> textList = Arrays.asList(text.split("\\s"));
List<String> result = removeTrailing(textList);
return Joiner.on(" ").join(result);
} |
58972818_285 | @Override
public boolean isValid() {
boolean isValid = true;
if (ids.size() > AssociatedIdentifiers.MAX_IDS) {
Logger.error("Associated identifiers exceeds %s", AssociatedIdentifiers.MAX_IDS);
isValid = false;
}
for (Map.Entry<String, String> entry : ids.entrySet()) {
if (entry... |
59008509_3 | public Trader getTrader() {
return trader;
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.