id stringlengths 7 14 | text stringlengths 1 106k |
|---|---|
2992799_0 | public TemplateFactory newTemplateFactory(String template, ExpressionLanguage expressionLanguage) throws TemplateLoadingException {
InputStream in = classLoader.getResourceAsStream(template);
TemplateDocument doc = parseTemplate(in, expressionLanguage);
try {
FragmentList fragments = doc.normalize();
... |
2992799_1 | public TemplateFactory newTemplateFactory(String template, ExpressionLanguage expressionLanguage) throws TemplateLoadingException {
return newTemplateFactory(template, encoding, expressionLanguage);
} |
2992799_2 | public WithBehavior(Expression expression, String currentObjectName, int line, int col) {
super(line, col);
this.expression = expression;
this.currentObjectName = currentObjectName;
} |
2992799_3 | @Override
public String toString() {
return "ConditionalAttributeBehavior{" +
"expression=" + expression +
", attribute=" + attribute +
", line=" + line +
", col=" + col +
'}';
} |
2995118_0 | public Collection<Gene> createLocusGenes(String authorReportedGene, String delimiter) {
Collection<Gene> locusGene = new ArrayList<>();
if (authorReportedGene != null && !authorReportedGene.isEmpty()) {
String[] genes = authorReportedGene.split(delimiter);
Collection<String> genesToCreate = new ... |
2995118_1 | public RiskAllele createRiskAllele(String curatorEnteredRiskAllele, SingleNucleotidePolymorphism snp) {
RiskAllele riskAllele = new RiskAllele();
riskAllele.setRiskAlleleName(StringProcessingService.tidy_curator_entered_string(curatorEnteredRiskAllele));
riskAllele.setSnp(snp);
return riskAllele;
} |
2995118_2 | public SingleNucleotidePolymorphism createSnp(String curatorEnteredSNP) {
curatorEnteredSNP = StringProcessingService.tidy_curator_entered_string(curatorEnteredSNP);
SingleNucleotidePolymorphism snp = new SingleNucleotidePolymorphism();
snp.setRsId(curatorEnteredSNP);
return snp;
} |
2995118_3 | public Association createAssociationFromUploadRow(AssociationUploadRow row) {
Association newAssociation = new Association();
// Set EFO traits
if (row.getEfoTrait() != null) {
String[] uris = row.getEfoTrait().split(",");
Collection<String> efoUris = new ArrayList<>();
for (String u... |
2995118_4 | public Association createAssociationFromUploadRow(AssociationUploadRow row) {
Association newAssociation = new Association();
// Set EFO traits
if (row.getEfoTrait() != null) {
String[] uris = row.getEfoTrait().split(",");
Collection<String> efoUris = new ArrayList<>();
for (String u... |
2995118_5 | public Association createAssociationFromUploadRow(AssociationUploadRow row) {
Association newAssociation = new Association();
// Set EFO traits
if (row.getEfoTrait() != null) {
String[] uris = row.getEfoTrait().split(",");
Collection<String> efoUris = new ArrayList<>();
for (String u... |
2995118_6 | public Association createAssociationFromUploadRow(AssociationUploadRow row) {
Association newAssociation = new Association();
// Set EFO traits
if (row.getEfoTrait() != null) {
String[] uris = row.getEfoTrait().split(",");
Collection<String> efoUris = new ArrayList<>();
for (String u... |
2995118_7 | @Override public Collection<AssociationUploadRow> readSheetRows(XSSFSheet sheet) {
XSSFRow headerRow = sheet.getRow(0);
Map<Integer, UploadFileHeader> headerRowMap = createHeaderMap(headerRow);
// Create collection to store all newly created rows
Collection<AssociationUploadRow> associationUploadRows = ... |
2995118_8 | @Override public Collection<AssociationUploadRow> readSheetRows(XSSFSheet sheet) {
XSSFRow headerRow = sheet.getRow(0);
Map<Integer, UploadFileHeader> headerRowMap = createHeaderMap(headerRow);
// Create collection to store all newly created rows
Collection<AssociationUploadRow> associationUploadRows = ... |
2995118_9 | @Override public Map<Integer, UploadFileHeader> createHeaderMap(XSSFRow row) {
Map<Integer, UploadFileHeader> headerMap = new HashMap<>();
if (row.getPhysicalNumberOfCells() != 0) {
short minColIx = row.getFirstCellNum();
short maxColIx = row.getLastCellNum();
for (short colIx = minColIx... |
2997701_0 | @Override
public String getName(Metric metric) {
MonitorConfig config = metric.getConfig();
TagList tags = config.getTags();
Tag domainTag = tags.getTag(JMX_DOMAIN_KEY);
if (domainTag != null) { // jmx metric
return handleJmxMetric(config, tags);
} else {
return handleMetric(config, tags);
}
} |
2997701_1 | @Override
public String getName(Metric metric) {
MonitorConfig config = metric.getConfig();
TagList tags = config.getTags();
Tag domainTag = tags.getTag(JMX_DOMAIN_KEY);
if (domainTag != null) { // jmx metric
return handleJmxMetric(config, tags);
} else {
return handleMetric(config, tags);
}
} |
2997701_2 | @Override
public String getName(Metric metric) {
MonitorConfig config = metric.getConfig();
TagList tags = config.getTags();
Tag domainTag = tags.getTag(JMX_DOMAIN_KEY);
if (domainTag != null) { // jmx metric
return handleJmxMetric(config, tags);
} else {
return handleMetric(config, tags);
}
} |
2997701_3 | public void stop() {
try {
if (socket != null) {
socket.close();
socket = null;
LOGGER.info("Disconnected from graphite server: {}", graphiteServerURI);
}
} catch (IOException e) {
LOGGER.warn("Error Stopping", e);
}
} |
2997701_4 | public void stop() {
try {
if (socket != null) {
socket.close();
socket = null;
LOGGER.info("Disconnected from graphite server: {}", graphiteServerURI);
}
} catch (IOException e) {
LOGGER.warn("Error Stopping", e);
}
} |
2997701_5 | List<Metric> pollImpl(long timestamp) {
try {
try (InputStream statusStream = fetcher.fetchStatus()) {
return StatusPageParserUtil.parse(statusStream, timestamp);
}
} catch (IOException e) {
logger.error("Could not fetch status page", e);
return EMPTY_LIST;
}
} |
2997701_6 | List<Metric> pollImpl(long timestamp) {
try {
try (InputStream statusStream = fetcher.fetchStatus()) {
return StatusPageParserUtil.parse(statusStream, timestamp);
}
} catch (IOException e) {
logger.error("Could not fetch status page", e);
return EMPTY_LIST;
}
} |
2997701_7 | List<Dimension> createDimensions(TagList tags) {
List<Dimension> dimensionList = new ArrayList<>(tags.size());
for (Tag tag : tags) {
dimensionList.add(new Dimension().withName(tag.getKey()).withValue(tag.getValue()));
}
return dimensionList;
} |
2997701_8 | MetricDatum createMetricDatum(Metric metric) {
MetricDatum metricDatum = new MetricDatum();
return metricDatum.withMetricName(metric.getConfig().getName())
.withDimensions(createDimensions(metric.getConfig().getTags()))
.withUnit("None")//DataSourceTypeToAwsUnit.getUnit(metric.))
.withTimestamp(ne... |
2997701_9 | PutMetricDataRequest createPutRequest(List<Metric> batch) {
List<MetricDatum> datumList = batch.stream().map(this::createMetricDatum)
.collect(Collectors.toList());
return new PutMetricDataRequest().withNamespace(cloudWatchNamespace)
.withMetricData(datumList);
} |
3010630_0 | public void complete() throws WrongStateException, SystemException {
invoke(Complete.class);
} |
3016145_0 | public Iterable<LabeledBinaryExtraction> readExtractions()
throws IOException {
LBEIterator iter = new LBEIterator(in);
return new IterableAdapter<LabeledBinaryExtraction>(iter);
} |
3016145_1 | public void writeExtraction(LabeledBinaryExtraction extr)
throws IOException {
ChunkedSentence sent = extr.getSentence();
out.println(sent.getTokensAsString());
out.println(sent.getPosTagsAsString());
out.println(sent.getChunkTagsAsString());
ChunkedArgumentExtraction arg1 = extr.getArgument... |
3016145_2 | public ChunkedDocument readDocument(InputStream input, String id)
throws ExtractorException {
StringWriter writer = new StringWriter();
InputStreamReader reader = new InputStreamReader(input);
try {
FileUtils.pipe(reader, writer);
return readDocument(writer.toString(), id);
} cat... |
3016145_3 | public ChunkedDocument readDocument(InputStream input, String id)
throws ExtractorException {
StringWriter writer = new StringWriter();
InputStreamReader reader = new InputStreamReader(input);
try {
FileUtils.pipe(reader, writer);
return readDocument(writer.toString(), id);
} cat... |
3016145_4 | public ChunkedDocument readDocument(InputStream input, String id)
throws ExtractorException {
StringWriter writer = new StringWriter();
InputStreamReader reader = new InputStreamReader(input);
try {
FileUtils.pipe(reader, writer);
return readDocument(writer.toString(), id);
} cat... |
3016145_5 | public ChunkedSentence parseSentence(String sent) throws ParseException {
// Spaces before square brackets goof things up for some reason
sent = sent.replace(" ]", "]");
ArrayList<String> tokensList = new ArrayList<String>();
ArrayList<String> posTagsList = new ArrayList<String>();
ArrayList<String>... |
3016145_6 | @Override
public NormalizedField normalizeField(ChunkedExtraction field) {
boolean containsProperNoun = false;
int lastNounIndex = -1;
for (int i = 0; i < field.getLength(); i++) {
String tag = field.getPosTag(i);
if (tag.equals("NNP") || tag.equals("NNPS")) {
containsProperNoun ... |
3016145_7 | public String[] tokenize(String text) throws SequenceException {
// Code for splitting the text into tokens matching the patterns
// See: http://snippets.dzone.com/posts/show/6453
if (text == null) {
text = "";
}
int lastMatch = 0;
LinkedList<String> splitted = new LinkedList<String>();
... |
3016145_8 | public Encoder(List<Set<String>> symbols) throws SequenceException {
alphabets = new ArrayList<Set<String>>(symbols.size());
int encodingTableSize = 1;
// Create the alphabets, checking to make sure that UNK does not appear
// in the given symbols, and that the encoding table is not too large.
for (... |
3016145_9 | public LayeredTokenMatcher matcher(LayeredSequence seq)
throws SequenceException {
String encoded = encodeSequence(seq);
Matcher m = encodedPattern.matcher(encoded);
return new LayeredTokenMatcher(m);
} |
3020895_0 | public static AllophoneSet getAllophoneSet(String filename) throws MaryConfigurationException {
InputStream fis = null;
try {
fis = new FileInputStream(filename);
} catch (IOException e) {
throw new MaryConfigurationException("Problem reading allophone file " + filename, e);
}
assert fis != null;
return getAl... |
3020895_1 | public static boolean hasAllophoneSet(String identifier) {
return allophoneSets.containsKey(identifier);
} |
3020895_2 | public Allophone getAllophone(String ph) {
Allophone allophone = allophones.get(ph);
if (allophone == null) {
throw new IllegalArgumentException(String.format(
"Allophone `%s' could not be found in AllophoneSet `%s' (Locale: %s)", ph, name, locale));
}
return allophone;
} |
3020895_3 | public Allophone[] splitIntoAllophones(String allophoneString) {
List<String> phones = splitIntoAllophoneList(allophoneString, false);
Allophone[] allos = new Allophone[phones.size()];
for (int i = 0; i < phones.size(); i++) {
try {
allos[i] = getAllophone(phones.get(i));
} catch (IllegalArgumentException e) ... |
3020895_4 | public String splitAllophoneString(String allophoneString) {
List<String> phones = splitIntoAllophoneList(allophoneString, true);
StringBuilder pronunciation = new StringBuilder();
for (String a : phones) {
if (pronunciation.length() > 0)
pronunciation.append(" ");
pronunciation.append(a);
}
return pronunci... |
3020895_5 | public List<String> splitIntoAllophoneList(String allophonesString) {
return splitIntoAllophoneList(allophonesString, true);
} |
3020895_6 | public List<String> splitIntoAllophoneList(String allophonesString) {
return splitIntoAllophoneList(allophonesString, true);
} |
3020895_7 | public String syllabify(String phoneString) throws IllegalArgumentException {
// Before we process, a sanity check:
if (phoneString.trim().isEmpty()) {
throw new IllegalArgumentException("Cannot syllabify empty phone string");
}
// First, split phoneString into a List of allophone Strings...
List<String> allopho... |
3020895_8 | public String syllabify(String phoneString) throws IllegalArgumentException {
// Before we process, a sanity check:
if (phoneString.trim().isEmpty()) {
throw new IllegalArgumentException("Cannot syllabify empty phone string");
}
// First, split phoneString into a List of allophone Strings...
List<String> allopho... |
3020895_9 | public String syllabify(String phoneString) throws IllegalArgumentException {
// Before we process, a sanity check:
if (phoneString.trim().isEmpty()) {
throw new IllegalArgumentException("Cannot syllabify empty phone string");
}
// First, split phoneString into a List of allophone Strings...
List<String> allopho... |
3026246_0 | static List<File> locateFiles(String payloadFileSpec) {
List<File> files = new ArrayList<>();
if ("-".equals(payloadFileSpec)) {
// Reads list of files from stdin
try (Reader reader = new InputStreamReader(System.in);
BufferedReader bufferedReader = new BufferedReader(reader)) {
... |
3026246_1 | static List<File> locateFiles(String payloadFileSpec) {
List<File> files = new ArrayList<>();
if ("-".equals(payloadFileSpec)) {
// Reads list of files from stdin
try (Reader reader = new InputStreamReader(System.in);
BufferedReader bufferedReader = new BufferedReader(reader)) {
... |
3026246_2 | public TransmissionMessage newInstance(InputStream inputStream)
throws IOException, OxalisContentException {
return newInstance(inputStream, Tag.NONE);
} |
3026246_3 | @Override
public TransmissionResponse transmit(TransmissionMessage transmissionMessage, Span root)
throws OxalisTransmissionException {
Span span = tracer.buildSpan("transmit").asChildOf(root).start();
try {
return perform(transmissionMessage, span);
} finally {
span.finish();
}
... |
3026246_4 | @Override
public TransmissionResponse transmit(TransmissionMessage transmissionMessage, Span root)
throws OxalisTransmissionException {
Span span = tracer.buildSpan("transmit").asChildOf(root).start();
try {
return perform(transmissionMessage, span);
} finally {
span.finish();
}
... |
3026246_5 | public MessageSender getMessageSender(TransportProfile transportProfile) throws OxalisTransmissionException {
return injector.getInstance(Key.get(MessageSender.class, Names.named(getSender(transportProfile))));
} |
3026246_6 | public MessageSender getMessageSender(TransportProfile transportProfile) throws OxalisTransmissionException {
return injector.getInstance(Key.get(MessageSender.class, Names.named(getSender(transportProfile))));
} |
3026246_7 | @Override
public TransmissionResponse send(InputStream inputStream, Tag tag)
throws IOException, OxalisTransmissionException, OxalisContentException {
Span root = tracer.buildSpan("TransmissionService").start();
try {
return send(inputStream, tag, root);
} finally {
root.finish();
... |
3026246_8 | @Override
public TransmissionResponse send(InputStream inputStream, Tag tag)
throws IOException, OxalisTransmissionException, OxalisContentException {
Span root = tracer.buildSpan("TransmissionService").start();
try {
return send(inputStream, tag, root);
} finally {
root.finish();
... |
3026246_9 | @Override
public TransmissionResponse send(InputStream inputStream, Tag tag)
throws IOException, OxalisTransmissionException, OxalisContentException {
Span root = tracer.buildSpan("TransmissionService").start();
try {
return send(inputStream, tag, root);
} finally {
root.finish();
... |
3028163_0 | @Override
public String getId() {
return ID;
} |
3028163_1 | @Override
public String getName() {
return "MicroProfile Config Property";
} |
3028163_2 | @Override
public String getName() {
return "MicroProfile Config Property";
} |
3028163_3 | @Override
public FeatureUser getCurrentUser() {
SimpleFeatureUser featureUser = null;
User user = userService.getCurrentUser();
if (user != null) {
featureUser = new SimpleFeatureUser(user.getUserId(), userService.isUserAdmin());
featureUser.setAttribute("email", user.getEmail());
fe... |
3028163_4 | @Override
public FeatureUser getCurrentUser() {
SimpleFeatureUser featureUser = null;
User user = userService.getCurrentUser();
if (user != null) {
featureUser = new SimpleFeatureUser(user.getUserId(), userService.isUserAdmin());
featureUser.setAttribute("email", user.getEmail());
fe... |
3028163_5 | @Override
public FeatureUser getCurrentUser() {
SimpleFeatureUser featureUser = null;
User user = userService.getCurrentUser();
if (user != null) {
featureUser = new SimpleFeatureUser(user.getUserId(), userService.isUserAdmin());
featureUser.setAttribute("email", user.getEmail());
fe... |
3028163_6 | @Override
public boolean isActive(FeatureState featureState, FeatureUser user) {
String allowedVersionsParam = featureState.getParameter(PARAM_VERSIONS);
if (Strings.isNotBlank(allowedVersionsParam)) {
String currentVersion = SystemProperty.applicationVersion.get();
if (Strings.isNotBlank(curren... |
3028163_7 | @Override
public boolean isActive(FeatureState featureState, FeatureUser user) {
String allowedVersionsParam = featureState.getParameter(PARAM_VERSIONS);
if (Strings.isNotBlank(allowedVersionsParam)) {
String currentVersion = SystemProperty.applicationVersion.get();
if (Strings.isNotBlank(curren... |
3028163_8 | @Override
public boolean isActive(FeatureState featureState, FeatureUser user) {
String allowedVersionsParam = featureState.getParameter(PARAM_VERSIONS);
if (Strings.isNotBlank(allowedVersionsParam)) {
String currentVersion = SystemProperty.applicationVersion.get();
if (Strings.isNotBlank(curren... |
3028163_9 | @Override
public boolean isActive(FeatureState featureState, FeatureUser user) {
String allowedVersionsParam = featureState.getParameter(PARAM_VERSIONS);
if (Strings.isNotBlank(allowedVersionsParam)) {
String currentVersion = SystemProperty.applicationVersion.get();
if (Strings.isNotBlank(curren... |
3040093_0 | @Override
protected FilterBuilder getFilterBuilder(){
return super.getFilterBuilder();
} |
3040093_1 | @Override
protected String getFilter() {
return super.getFilter();
} |
3040093_2 | @Override
protected String getFilter() {
return super.getFilter();
} |
3040093_3 | public static RunHandler getController(
final RunHandler.Context context,
final RunHandlerConfig config){
final String name = "no.sesat.search.run.handler."
+ config.getClass().getAnnotation(Controller.class).value();
try{
final SiteClassLoaderFactory.Context ctlContext = Con... |
3040093_4 | public static String chop(final String input, final int length) {
return chop(input, length, false);
} |
3040093_5 | public static String chop(final String input, final int length) {
return chop(input, length, false);
} |
3040093_6 | public static String chop(final String input, final int length) {
return chop(input, length, false);
} |
3040093_7 | public static String chop(final String input, final int length) {
return chop(input, length, false);
} |
3040093_8 | public static String chop(final String input, final int length) {
return chop(input, length, false);
} |
3040093_9 | public static String chop(final String input, final int length) {
return chop(input, length, false);
} |
3050780_0 | public String getWebappUrl(){
return webappUrl;
} |
3050780_1 | public String getPublicationId() {
if (this.publicationId == null) {
this.publicationId = extractBeforeSlash(this.url);
}
return this.publicationId;
} |
3050780_2 | public String getArea() {
if (this.area == null) {
String completeArea = getCompleteArea();
if (Publication.DAV_AREA.equals(completeArea)) {
this.area = Publication.AUTHORING_AREA;
} else {
this.area = completeArea;
}
}
return this.area;
} |
3050780_3 | public String getCompleteArea() {
String pubId = getPublicationId();
if (this.completeArea == null && pubId != null) {
String pubUrl = this.url.substring(pubId.length());
if (pubUrl.startsWith("/")) {
this.completeArea = extractBeforeSlash(pubUrl.substring(1));
} else {
... |
3050780_4 | public String getDocumentUrl() {
if (this.documentUrl == null) {
String pubId = getPublicationId();
String area = getCompleteArea();
if (pubId != null && area != null) {
String prefix = pubId + "/" + area;
this.documentUrl = this.url.substring(prefix.length());
... |
3050780_5 | protected void initParameters() {
super.initParameters();
try {
String pubId = new URLInformation().getPublicationId();
if (getSession().existsPublication(pubId)) {
Publication publication = getSession().getPublication(pubId);
setParameter(PUBLICATION, publication);
... |
3061876_0 | @Deprecated
public static <T> T read(final String json, final Class<T> type) {
try {
return OBJECT_MAPPER.readValue(json, type);
} catch (Exception e) {
// Wrap into unchecked exception:
throw new WrappedRuntimeException(e);
}
} |
3061876_1 | @Deprecated
public static <T> T read(final String json, final Class<T> type) {
try {
return OBJECT_MAPPER.readValue(json, type);
} catch (Exception e) {
// Wrap into unchecked exception:
throw new WrappedRuntimeException(e);
}
} |
3061876_2 | @Deprecated
public static <T> T read(final String json, final Class<T> type) {
try {
return OBJECT_MAPPER.readValue(json, type);
} catch (Exception e) {
// Wrap into unchecked exception:
throw new WrappedRuntimeException(e);
}
} |
3061876_3 | @Deprecated
public static <T> T read(final String json, final Class<T> type) {
try {
return OBJECT_MAPPER.readValue(json, type);
} catch (Exception e) {
// Wrap into unchecked exception:
throw new WrappedRuntimeException(e);
}
} |
3061876_4 | @Deprecated
public static <T> T read(final String json, final Class<T> type) {
try {
return OBJECT_MAPPER.readValue(json, type);
} catch (Exception e) {
// Wrap into unchecked exception:
throw new WrappedRuntimeException(e);
}
} |
3061876_5 | @Deprecated
public static <T> T read(final String json, final Class<T> type) {
try {
return OBJECT_MAPPER.readValue(json, type);
} catch (Exception e) {
// Wrap into unchecked exception:
throw new WrappedRuntimeException(e);
}
} |
3061876_6 | @Deprecated
public static <T> T read(final String json, final Class<T> type) {
try {
return OBJECT_MAPPER.readValue(json, type);
} catch (Exception e) {
// Wrap into unchecked exception:
throw new WrappedRuntimeException(e);
}
} |
3061876_7 | @Deprecated
public static <T> T read(final String json, final Class<T> type) {
try {
return OBJECT_MAPPER.readValue(json, type);
} catch (Exception e) {
// Wrap into unchecked exception:
throw new WrappedRuntimeException(e);
}
} |
3061876_8 | public static String maskApiKey(final String key) {
int visibleChars = (int) (0.1 * key.length());
int right = visibleChars / 2;
int left = visibleChars - right; // left >= right
String beginning = key.substring(0, left);
String end = key.substring(key.length() - right);
return beginning + "..." + end;
} |
3069429_0 | protected Map<String, Integer> tokenize(String text) {
Map<String, Integer> tokenMap = newHashMap();
StringTokenizer st = new StringTokenizer(text, "\"{}[]:;|<>?`'.,/~!@#$%^&*()_-+= \t\n\r\f\\");
while (st.hasMoreTokens()) {
String token = st.nextToken();
if (token.length() < MIN_TOKEN_LENGT... |
3086072_0 | @Background
public void loadProject() {
try {
projectUserRelationDao.delete(projectUserRelationDao.queryForAll());
List<Status> statuses = backlogService.getStatuses();
for (Status status : statuses) {
statusDao.createOrUpdate(status);
Ln.d("put status id:%d", status.id);
}
List<Priority> priorities = ... |
309964_10 | public static String printURI(byte [] bs) {
return printURI(bs, 0, bs.length, URIEscape.MIXED);
} |
309964_11 | public static String printURI(byte [] bs) {
return printURI(bs, 0, bs.length, URIEscape.MIXED);
} |
309964_12 | @Override
public String toString() {
return printURI(this.component);
} |
309964_13 | @Override
public void setTime(long msec) {
_binarytime = null;
long binaryTimeAsLong = toBinaryTimeAsLong((msec/1000) * 1000, (msec % 1000) * 1000000L);
super.setTime((binaryTimeAsLong / 4096L) * 1000L);
super.setNanos((int)(((binaryTimeAsLong % 4096L) * 1000000000L) / 4096L));
} |
309964_14 | @Override
public void setNanos(int nanos) {
_binarytime = null;
int quantizedNanos = (int)(((((nanos * 4096L + 500000000L) / 1000000000L)) * 1000000000L) / 4096L);
if ((quantizedNanos < 0) || (quantizedNanos > 999999999)) {
System.out.println("Quantizing nanos " + nanos + " resulted in out of range value " + quant... |
309964_15 | @Override
public void setNanos(int nanos) {
_binarytime = null;
int quantizedNanos = (int)(((((nanos * 4096L + 500000000L) / 1000000000L)) * 1000000000L) / 4096L);
if ((quantizedNanos < 0) || (quantizedNanos > 999999999)) {
System.out.println("Quantizing nanos " + nanos + " resulted in out of range value " + quant... |
309964_16 | public CCNTime(long msec) {
this((msec/1000) * 1000, (msec % 1000) * 1000000L);
} |
309964_17 | @Override
public int compareTo(Date o) {
return super.compareTo(new CCNTime(o));
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.