Codota Logo
Environment
Code IndexAdd Codota to your IDE (free)

How to use
Environment
in
eu.fbk.rdfpro.util

Best Java code snippets using eu.fbk.rdfpro.util.Environment (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: eu.fbk.pikes/pikes-resources

public static synchronized SubjectivityLexicon getInstance() {
  if (instance == null) {
    final String location = Objects.firstNonNull(
        Environment.getProperty("subjectivity.lexicon.home"),
        "SubjectivityLexicon.tsv");
    try {
      instance = Lexicon.readFrom(SubjectivityLexicon.class, Lexeme.class, location);
    } catch (final Throwable ex) {
      throw new Error("Could not read default subjectivity lexicon at " + location, ex);
    }
  }
  return instance;
}
origin: eu.fbk.pikes/pikes-rdf

private static String readPluginDocs() {
  final Map<String, String> descriptions = Environment.getPlugins(Runnable.class);
  final List<String> names = new ArrayList<String>(descriptions.keySet());
  Collections.sort(names);
  final StringBuilder builder = new StringBuilder();
  for (final String name : names) {
    builder.append(builder.length() == 0 ? "" : "\n\n");
    builder.append(descriptions.get(name).trim());
  }
  return builder.toString();
}
origin: eu.fbk.pikes/pikes-rdf

    "Processed %d NAF files (%d NAF/s, %d NAF/s avg)");
final int numThreads = Environment.getCores();
final CountDownLatch latch = new CountDownLatch(numThreads);
final AtomicInteger counter = new AtomicInteger(0);
tracker.start();
for (int i = 0; i < numThreads; ++i) {
  Environment.getPool().submit(new Runnable() {
origin: eu.fbk.pikes/pikes-rdf

    process.getErrorStream()));
Environment.getPool().submit(new Runnable() {
origin: eu.fbk.pikes/pikes-rdf

try {
  final String command = args[index];
  runnable = Environment.newPlugin(Runnable.class, command,
      Arrays.copyOfRange(args, index + 1, args.length));
} catch (final IllegalArgumentException ex) {
origin: eu.fbk.pikes/pikes-resources

public static synchronized Intensities getInstance() {
  if (instance == null) {
    final String location = Objects.firstNonNull(
        Environment.getProperty("intensities.home"),
        "intensities.tsv");
    try {
      instance = Lexicon.readFrom(Intensities.class, Lexeme.class, location);
    } catch (final Throwable ex) {
      throw new Error("Could not read default intensity lexicon at " + location, ex);
    }
  }
  return instance;
}
origin: eu.fbk.pikes/pikes-resources

public static synchronized SenticNet getInstance() {
  if (instance == null) {
    final String location = Objects.firstNonNull(
        Environment.getProperty("senticnet.home"), "SenticNet.tsv");
    try {
      instance = Lexicon.readFrom(SenticNet.class, Lexeme.class, location);
    } catch (final Throwable ex) {
      throw new Error("Could not read default subjectivity lexicon at " + location, ex);
    }
  }
  return instance;
}
origin: eu.fbk.rdfpro/rdfpro-rules

final String rulesetNames = options.getOptionArg("r", String.class);
for (final String rulesetName : rulesetNames.split(",")) {
  String location = Environment.getProperty("rdfpro.rules." + rulesetName);
  location = location != null ? location : rulesetName;
  rulesetURLs.add(IO.extractURL(location).toString());
eu.fbk.rdfpro.utilEnvironment

Most used methods

  • getProperty
  • getCores
  • getPlugins
  • getPool
  • newPlugin

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • putExtra (Intent)
  • getSystemService (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • ImageIO (javax.imageio)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now