Source stringclasses 1
value | Date int32 2.01k 2.01k | Text stringlengths 3 15.9M | Token_count int32 1 2.44M |
|---|---|---|---|
github-java-corpus | 2,012 | package de.najidev.mensaupb.entity;
import java.util.Date;
public class Menu
{
protected Date date;
protected String title;
protected String name;
protected String type;
protected String sides;
protected String location;
public Date getDate()
{
return date;
}
public void setDate(Date date)
{
this.dat... | 234 |
github-java-corpus | 2,012 | package de.najidev.mensaupb.activities;
import java.util.Calendar;
import java.sql.Date;
import com.actionbarsherlock.app.ActionBar;
import com.actionbarsherlock.app.ActionBar.Tab;
import com.actionbarsherlock.app.ActionBar.TabListener;
import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.v... | 1,281 |
github-java-corpus | 2,012 | package de.najidev.mensaupb.activities;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.actionbarsherlock... | 768 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
import java.io.File;
import java.io.Reader;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.Callable;
import com.typesafe.con... | 7,159 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
import java.net.URL;
import java.util.List;
/**
* Represents the origin (such as filename and line number) of a
* {@link ConfigValue} for use in error messages. Obtain the origin of a value
* with {@link ConfigVa... | 623 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* An immutable map from config paths to config values.
*
* <p>
* Contrast with {@link ConfigObject} which is a map from config <em>keys</em>,... | 4,950 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
/**
* An immutable value, following the <a href="http://json.org">JSON</a> type
* schema.
*
* <p>
* Because this object is immutable, it is safe to use from multiple threads and
* there's no need for "defensive ... | 847 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
import java.util.Map;
/**
* Subtype of {@link ConfigValue} representing an object (dictionary, map)
* value, as in JSON's <code>{ "a" : 42 }</code> syntax.
*
* <p>
* {@code ConfigObject} implements {@code java.u... | 1,122 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
/**
* Implement this interface and provide an instance to
* {@link ConfigParseOptions#setIncluder ConfigParseOptions.setIncluder()} to
* customize handling of {@code include} statements in config files. You may
* ... | 513 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
/**
* Context provided to a {@link ConfigIncluder}; this interface is only useful
* inside a {@code ConfigIncluder} implementation, and is not intended for apps
* to implement.
*
* <p>
* <em>Do not implement th... | 392 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.IOException;
import java.io.Reader;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
import com.typesafe.config.Co... | 4,315 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.ObjectStreamException;
import java.io.Serializable;
import com.typesafe.config.ConfigOrigin;
import com.typesafe.config.ConfigRenderOptions;
import com.typesafe.config.ConfigValueType;
final clas... | 298 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.ObjectStreamException;
import java.io.Serializable;
import com.typesafe.config.ConfigOrigin;
import com.typesafe.config.ConfigValueType;
final class ConfigLong extends ConfigNumber implements Ser... | 289 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import com.typesafe.config.ConfigIncludeContext;
import com.typesafe.config.ConfigParseOptions;
import com.typesafe.config.ConfigParseable;
class SimpleIncludeContext implements ConfigIncludeContext {
priva... | 206 |
github-java-corpus | 2,012 | package com.typesafe.config.impl;
final class SubstitutionExpression {
final private Path path;
final private boolean optional;
SubstitutionExpression(Path path, boolean optional) {
this.path = path;
this.optional = optional;
}
Path path() {
return path;
}
boolea... | 252 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.typesafe.config.ConfigException;
import com.typesafe.config.ConfigList;
impo... | 2,315 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FilterReader;
import java.io.IOException;
import java.io.InputStream;
impor... | 4,382 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.ObjectStreamException;
import java.io.Serializable;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
im... | 3,832 |
github-java-corpus | 2,012 | package com.typesafe.config.impl;
import com.typesafe.config.impl.AbstractConfigValue.NotPossibleToResolve;
/** Callback that generates a replacement to use for resolving a substitution. */
abstract class ResolveReplacer {
// this is a "lazy val" in essence (we only want to
// make the replacement one time). ... | 229 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.File;
import java.io.StringReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.I... | 7,456 |
github-java-corpus | 2,012 | package com.typesafe.config.impl;
/** The key used to memoize already-traversed nodes when resolving substitutions */
final class MemoKey {
MemoKey(AbstractConfigValue value, Path restrictToChildOrNull) {
this.value = value;
this.restrictToChildOrNull = restrictToChildOrNull;
}
final priva... | 266 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.ObjectStreamException;
import java.io.Serializable;
import com.typesafe.config.ConfigOrigin;
import com.typesafe.config.ConfigValueType;
final class ConfigDouble extends ConfigNumber implements S... | 292 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util... | 4,074 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import com.typesafe.config.ConfigException;
import com.typesafe.config.ConfigMergeab... | 1,721 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.ObjectStreamException;
import java.io.Serializable;
import com.typesafe.config.ConfigOrigin;
import com.typesafe.config.ConfigRenderOptions;
import com.typesafe.config.ConfigValueType;
/**
* Thi... | 321 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.ObjectStreamException;
import java.io.Serializable;
import com.typesafe.config.ConfigException;
import com.typesafe.config.ConfigOrigin;
abstract class ConfigNumber extends AbstractConfigValue im... | 715 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.DataOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.URISyntaxException;
import java.net.URL;
impo... | 1,549 |
github-java-corpus | 2,012 | package com.typesafe.config.impl;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import com.typesafe.config.ConfigException;
import com.typesafe.config.ConfigObject;
import com.typesafe.config.ConfigOrigin;
import com.typesafe.config.ConfigRenderOptions;
... | 1,887 |
github-java-corpus | 2,012 | package com.typesafe.config.impl;
// caution: ordinals used in serialization
enum OriginType {
GENERIC,
FILE,
URL,
RESOURCE
}
| 33 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
enum TokenType {
START,
END,
COMMA,
EQUALS,
COLON,
OPEN_CURLY,
CLOSE_CURLY,
OPEN_SQUARE,
CLOSE_SQUARE,
VALUE,
NEWLINE,
UNQUOTED_TEXT,
SUBSTITUTION,
PROBLEM,... | 106 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import com.typesafe.config.ConfigException;
import com.typesafe.config.ConfigFa... | 2,141 |
github-java-corpus | 2,012 | package com.typesafe.config.impl;
import com.typesafe.config.ConfigMergeable;
import com.typesafe.config.ConfigValue;
interface MergeableValue extends ConfigMergeable {
// converts a Config to its root object and a ConfigValue to itself
ConfigValue toFallbackValue();
}
| 57 |
github-java-corpus | 2,012 | package com.typesafe.config.impl;
/**
* Implemented by a merge stack (ConfigDelayedMerge, ConfigDelayedMergeObject)
* that replaces itself during substitution resolution in order to implement
* "look backwards only" semantics.
*/
interface ReplaceableMergeStack {
/**
* Make a replacer for this object, ski... | 89 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.util.List;
import com.typesafe.config.ConfigException;
import com.typesafe.config.ConfigOrigin;
import com.typesafe.config.ConfigValueType;
/* FIXME the way the subclasses of Token are private with ... | 2,558 |
github-java-corpus | 2,012 | package com.typesafe.config.impl;
import java.util.HashMap;
import java.util.Map;
/**
* This exists because we have to memoize resolved substitutions as we go
* through the config tree; otherwise we could end up creating multiple copies
* of values or whole trees of values as we follow chains of substitutions.
*/... | 184 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.ObjectStreamException;
import java.io.Serializable;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.... | 6,668 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import com.typesafe.config.ConfigException;
import com.typesafe.config.ConfigMe... | 2,676 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.ObjectStreamException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import... | 2,406 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
enum FromMapMode {
KEYS_ARE_PATHS, KEYS_ARE_KEYS
}
| 52 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callabl... | 3,285 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.util.Iterator;
import java.util.List;
import com.typesafe.config.ConfigException;
final class Path {
final private String first;
final private Path remainder;
Path(String first, Path r... | 1,293 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import com.typesafe.config.ConfigValueType;
/**
* Default automatic type transformations.
*/
final class DefaultTransformer {
static AbstractConfigValue transform(AbstractConfigValue value,
Co... | 498 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.util.Collection;
/**
* Status of substitution resolution.
*/
enum ResolveStatus {
UNRESOLVED, RESOLVED;
final static ResolveStatus fromValues(
Collection<? extends AbstractConf... | 156 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.ObjectStreamException;
import java.io.Serializable;
import com.typesafe.config.ConfigOrigin;
import com.typesafe.config.ConfigValueType;
final class ConfigInt extends ConfigNumber implements Seri... | 289 |
github-java-corpus | 2,012 | package com.typesafe.config.impl;
import java.util.Collection;
import java.util.Collections;
import com.typesafe.config.ConfigException;
import com.typesafe.config.ConfigOrigin;
import com.typesafe.config.ConfigRenderOptions;
import com.typesafe.config.ConfigValueType;
/**
* ConfigReference replaces ConfigReference... | 861 |
github-java-corpus | 2,012 | package com.typesafe.config.impl;
import java.util.IdentityHashMap;
import java.util.Map;
import com.typesafe.config.ConfigException;
import com.typesafe.config.impl.AbstractConfigValue.NotPossibleToResolve;
/**
* This class is the source for values for a substitution like ${foo}.
*/
final class ResolveSource {
... | 797 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.ByteArrayOutputStream;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.DataOutputStream;
import java.io.Externalizable;
import java.io.IOException;
import java.io.NotSerializabl... | 3,333 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.IOException;
import java.io.Reader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;... | 1,393 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import com.typesafe.config.ConfigException;
import com.typesafe.config.ConfigOrigin;
import com.types... | 2,091 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.util.Stack;
import com.typesafe.config.ConfigException;
final class PathBuilder {
// the keys are kept "backward" (top of stack is end of path)
final private Stack<String> keys;
private ... | 310 |
github-java-corpus | 2,012 | package com.typesafe.config.impl;
import java.util.List;
import java.util.ArrayList;
import com.typesafe.config.ConfigException;
import com.typesafe.config.ConfigResolveOptions;
import com.typesafe.config.impl.AbstractConfigValue.NotPossibleToResolve;
final class ResolveContext {
// this is unfortunately mutable... | 1,133 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.util.Collection;
/**
* Interface that tags a ConfigValue that is not mergeable until after
* substitutions are resolved. Basically these are special ConfigValue that
* never appear in a resolved t... | 109 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import java.io.ObjectStreamException;
import java.io.Serializable;
import com.typesafe.config.ConfigOrigin;
import com.typesafe.config.ConfigValueType;
final class ConfigBoolean extends AbstractConfigValue impl... | 229 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import com.typesafe.config.ConfigException;
import com.typesafe.config.ConfigOrigin;
class Token {
final private TokenType tokenType;
final private String debugString;
final private ConfigOrigin orig... | 463 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config.impl;
import com.typesafe.config.ConfigIncluder;
import com.typesafe.config.ConfigIncluderClasspath;
import com.typesafe.config.ConfigIncluderFile;
import com.typesafe.config.ConfigIncluderURL;
interface FullIncluder ... | 108 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
/**
* The type of a configuration value (following the <a
* href="http://json.org">JSON</a> type schema).
*/
public enum ConfigValueType {
OBJECT, LIST, NUMBER, BOOLEAN, NULL, STRING
}
| 80 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
import java.io.File;
/**
* Implement this <em>in addition to</em> {@link ConfigIncluder} if you want to
* support inclusion of files with the {@code include file("filename")} syntax.
* If you do not implement this... | 224 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
/**
* An opaque handle to something that can be parsed, obtained from
* {@link ConfigIncludeContext}.
*
* <p>
* <em>Do not implement this interface</em>; it should only be implemented by
* the config library. A... | 293 |
github-java-corpus | 2,012 | package com.typesafe.config;
import java.util.List;
import com.typesafe.config.impl.ConfigImplUtil;
/**
* Contains static utility methods.
*
*/
public final class ConfigUtil {
private ConfigUtil() {
}
/**
* Quotes and escapes a string, as in the JSON specification.
*
* @param s
... | 495 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
import java.util.List;
/**
* Subtype of {@link ConfigValue} representing a list value, as in JSON's
* {@code [1,2,3]} syntax.
*
* <p>
* {@code ConfigList} implements {@code java.util.List<ConfigValue>} so you ca... | 354 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
/**
* Implement this <em>in addition to</em> {@link ConfigIncluder} if you want to
* support inclusion of files with the {@code include classpath("resource")}
* syntax. If you do not implement this but do implement... | 223 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
/**
* Marker for types whose instances can be merged, that is {@link Config} and
* {@link ConfigValue}. Instances of {@code Config} and {@code ConfigValue} can
* be combined into a single new instance using the
* ... | 483 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
import java.io.IOException;
import java.io.Serializable;
import java.lang.reflect.Field;
import com.typesafe.config.impl.ConfigImplUtil;
/**
* All exceptions thrown by the library are subclasses of
* <code>ConfigE... | 2,580 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
import java.util.Map;
import com.typesafe.config.impl.ConfigImpl;
/**
* This class holds some static factory methods for building {@link ConfigValue}
* instances. See also {@link ConfigFactory} which has methods f... | 1,299 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
/**
* The syntax of a character stream, <a href="http://json.org">JSON</a>, <a
* href="https://github.com/typesafehub/config/blob/master/HOCON.md">HOCON</a>
* aka ".conf", or <a href=
* "http://download.oracle.com... | 276 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
import java.net.URL;
/**
* Implement this <em>in addition to</em> {@link ConfigIncluder} if you want to
* support inclusion of files with the {@code include url("http://example.com")}
* syntax. If you do not imple... | 227 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
/**
* A set of options related to resolving substitutions. Substitutions use the
* <code>${foo.bar}</code> syntax and are documented in the <a
* href="https://github.com/typesafehub/config/blob/master/HOCON.md">HOC... | 526 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
/**
* A set of options related to parsing.
*
* <p>
* This object is immutable, so the "setters" return a new object.
*
* <p>
* Here is an example of creating a custom {@code ConfigParseOptions}:
*
* <pre>
*... | 1,318 |
github-java-corpus | 2,012 | /**
* Copyright (C) 2011-2012 Typesafe Inc. <http://typesafe.com>
*/
package com.typesafe.config;
/**
* <p>
* A set of options related to rendering a {@link ConfigValue}. Passed to
* {@link ConfigValue#render(ConfigRenderOptions)}.
*
* <p>
* Here is an example of creating a {@code ConfigRenderOptions}:
*
*... | 1,274 |
github-java-corpus | 2,012 | package equiv03;
/** This is to test loading resources relative to this class */
public final class SomethingInEquiv03 {
}
| 26 |
github-java-corpus | 2,012 | package week1.bke;
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
int h = 9;
hallo(h);
System.out.println(h);
}
public static void hallo(int m){
int x = m;
}
}
| 67 |
github-java-corpus | 2,012 | package week1.bke;
/**
* Executeerbare klasse voor het Boter-Kaas-Eieren-spel,
* waarbij ook tegen de Computer gespeeld kan worden.
* Practicumopdracht P2.
* @author Theo Ruys
* @version 2005.01.30
*/
public class BoterKaasEieren {
/**
* Construeert een Speler op grond van de input-string. <ul>
*... | 529 |
github-java-corpus | 2,012 | package week1.bke;
import java.util.Random;
public class PerfecteStrategie implements Strategie {
@Override
public int bepaalZet(Bord arg0, Mark arg1) {
int[] returnArray = bepaalKwalZet(arg0, arg1);
System.out.println("ik doe zet:");
System.out.print(returnArray[1]);
return returnArray[1];
}
public ... | 513 |
github-java-corpus | 2,012 | package week1.getallen;
public class Faculteit {
/**
* @param args
*/
public static void main(String[] args) throws FaculteitException {
try{
System.out.println("Waarde:" + faculteit(Integer.parseInt(args[0])));
}
catch (ArrayIndexOutOfBoundsException e) {
System.out.println("Gebruik:... | 324 |
github-java-corpus | 2,012 | package week1.getallen;
public class NaarRadix {
/**
* @param args
*/
public static void main(String[] args) {
try {
converteerGetal(Integer.parseInt(args[0]), Integer.parseInt(args[1]));
System.out.println();
}
catch(RadixException e) {
System.out.println(e.getMessage());
}
}
public st... | 228 |
github-java-corpus | 2,012 | package week1.getallen;
public class RadixException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1011440519270232509L;
private String stringFoutmelding;
public RadixException(String arg0) {
stringFoutmelding = arg0;
}
@Override
public String getMessage(){
return stringFou... | 85 |
github-java-corpus | 2,012 | package week1.getallen;
/**
* Probeert de methode Integer.parseInt uit.
* Practicumopgave Programmeren 2.
* @author Arend Rensink
* @version 27-11-2001
*/
public class ParseInt {
public static void main(String[] args) {
try{
System.out.println("Waarde: "+Integer.parseInt(args[0]));
}
catc... | 133 |
github-java-corpus | 2,012 | package week1.getallen;
public class FaculteitException extends Exception {
/**
*
*/
private static final long serialVersionUID = -1692364274311041507L;
String stringFoutmelding;
public FaculteitException(String arg0) {
stringFoutmelding = arg0;
}
}
| 70 |
github-java-corpus | 2,012 | package week1.getallen;
public class Combinaties {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
}
public int combinaties(int eenheid, int bedrag){
if(bedrag == eenheid){
return 1;
}
else {
return 2;
}
}
}
| 88 |
github-java-corpus | 2,012 | package week1.boom;
/**
* IntBoom: binaire boom voor het opslaan van Integer-objecten.
* Practicumopdracht P2.
* @author Theo Ruys
* @version 2005.01.30
*/
public class IntBoom extends Boom<Integer> {
/**
* Construeert een IntBoom object.
* @require value != null
* @ensure this.getValue() == ... | 510 |
github-java-corpus | 2,012 | package week1.boom;
/**
* Boom<Elem>: simpele binaire boom.
* Practicumopdracht P2.
* @author Theo Ruys
* @version 2005.01.30
*/
public class Boom <Elem> {
private Elem value;
private Boom<Elem> left, right;
/**
* Construeert een Boom object.
* @require value != null
* @en... | 492 |
github-java-corpus | 2,012 | package week3.bke;
/**
* Bord voor het Boter-Kaas-Eieren spel.
* Practicumopdracht Programmeren 1.
* @author Theo Ruys en Arend Rensink
* @version 2002.01.22
*/
public class Bord {
// -- Constants --------------------------------------------------
public static final int DIM = 3 ;
priva... | 3,371 |
github-java-corpus | 2,012 | package week3.bke;
import java.util.Observable;
/**
* P2 week5.
* Spel. Klasse voor het onderhouden van het BoterKaasEieren-spel.
* Practicumopdracht Programmeren 1.
* @author Theo Ruys en Arend Rensink
* @version 2002.01.22
*/
public class Spel extends Observable {
// -- Instance variables -------------... | 476 |
github-java-corpus | 2,012 | package week3.bke;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Observable;
import java.util.Observer;
import javax.swing.*;
@SuppressWarnings("serial")
public class BKEView extends JFrame implements Observer{
private JButton[] bord = new JButton[Bo... | 795 |
github-java-corpus | 2,012 | package week3.bke;
/**
* Representeert een markering in het Boter-Kaas-Eieren spel.
* Er zijn bij Boter-Kaas-Eieren maar drie mogelijke markeringen:
* Mark.XX, Mark.OO en Mark.LEEG. Dit zijn constante objecten.
* Er kunnen geen andere Mark-objecten gecreeerd worden omdat de
* beide constructoren private zijn.
* ... | 543 |
github-java-corpus | 2,012 | package week3.radix;
import java.util.Observer;
import java.util.Observable;
import java.util.Scanner;
import java.io.PrintStream;
import java.util.*;
/**
* P2 prac wk3.
* Zet een Getal op en creeert GetalObservers.
* @author Rieks op den Akker, Arend Rensink en Theo Ruys
* @version 2005.02.13
*/
public class... | 1,534 |
github-java-corpus | 2,012 | package week3.radix;
import java.util.Observable;
import java.util.Observer;
import javax.swing.*;
import java.awt.*;
import week1.getallen.RadixException;
public class GetalObserver extends JFrame implements Observer {
private Getal getal;
private int radix;
JLabel getalLabel;
public GetalObserver(Getal get... | 389 |
github-java-corpus | 2,012 | package week3.radix;
/**
* P2 prac wk3 (gekopieerd van P1 2004/2005: week6.ui.Commando).
* Abstractie van een commando in een tekstueel gebruikersinterface.
* Het commando bestaat uit een enkele letter en 0 tot 2 parameters.
* @author Arend Rensink en Theo Ruys
* @version 2005.02.13
*/
abstract public class Com... | 1,176 |
github-java-corpus | 2,012 | package week3.radix;
import java.util.Observable;
/**
* Observeerbaar getal.
* Practicumopgave Programmeren 2.
* @author Rieks op den Akker en Arend Rensink
* @version 2.0
*/
public class Getal extends Observable {
// ---- Instantievariabelen ------------------------------
int waarde;
// ---- Const... | 309 |
github-java-corpus | 2,012 | package week3.stem;
import java.util.*;
/**
* P2 prac wk3.
* Uitslag. Model voor uitslag stemming.
* @author Arend Rensink en Theo Ruys
* @version 2005.02.15
*/
public class Uitslag extends Observable {
// ---- Instantievariabelen --------------------------------
/**
* De uitgebrachte stemmen.
... | 543 |
github-java-corpus | 2,012 | package week3.stem;
import java.util.Scanner;
/**
* P2 prac wk3.
* @author Arend Rensink en Theo Ruys
* @version 2005.02.15
*/
public class Stem {
public static void main(String[] args) {
Uitslag uitslag = new Uitslag();
StemFrame stemFrame = new StemFrame(uitslag);
UitslagJFrame uitsl... | 231 |
github-java-corpus | 2,012 | package week3.stem;
import java.awt.*;
import java.awt.event.*;
import java.util.Observable;
import java.util.Observer;
@SuppressWarnings("serial")
public class StemFrame extends Frame implements ItemListener, ActionListener, Observer {
Button sb;
Choice sc;
Label sl;
Panel sp;
Frame frame;
private Ui... | 428 |
github-java-corpus | 2,012 | package week3.stem;
import java.awt.Container;
import java.awt.FlowLayout;
import java.util.*;
import javax.swing.*;
public class UitslagJFrame extends JFrame implements Observer {
private Uitslag uitslag;
private JTextArea textArea;
public UitslagJFrame(Uitslag uitslag){
this.uitslag = uitslag;
uitsla... | 256 |
github-java-corpus | 2,012 | package week4.cmdline;
import java.net.*;
import java.io.*;
/**
* P2 prac wk4. <br>
* Peer. Een klasse voor een Client en Server die over een Socket
* verbinding met elkaar kunnen praten via Terminal vensters.
* @author Theo Ruys
* @version 2005.02.21
*/
public class Peer implements Runnable {
protec... | 689 |
github-java-corpus | 2,012 | package week4.cmdline;
import java.net.*;
import java.io.*;
/**
* P2 prac wk4. <br>
* Server. Simpele Server-klasse die een Socket-connectie opzet met een
* Client, waarna beide objecten via de Terminal met elkaar kunnen praten.
* @author Theo Ruys
* @version 2005.02.21
*/
public class Server {
private st... | 459 |
github-java-corpus | 2,012 | package week4.cmdline;
import java.net.*;
import java.io.*;
/**
* P2 prac wk4. <br>
* Client. Simpele Client-klasse die een Socket-connectie opzet met een
* Server, waarna beide objecten via de Terminal met elkaar kunnen praten.
* @author Theo Ruys
* @version 2005.02.21
*/
public class Client {
private st... | 456 |
github-java-corpus | 2,012 | package week4.bounce;
import java.util.*;
import java.awt.Graphics;
import java.awt.Dimension;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.Timer;
/**
* P2 prac wk4.
* BallPanel a special JPanel for drawing balls on.
* Used with TimedBouncer.
* @author Rieks op den Akker, Arend Rensink en T... | 515 |
github-java-corpus | 2,012 | package week4.bounce;
import java.awt.*; //Graphics;
import javax.swing.*;
/**
* P2 prac wk4.
* Ball. Represeert een bal die kan stuiteren.
* Hoort bij de TimedBouncer class.
* @author Rieks op den Akker, Arend Rensink en Theo Ruys
* @version 2005.02.22
*/
public class Ball {
private JPanel panel;
... | 564 |
github-java-corpus | 2,012 | package week4.bounce;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
/**
* P2 prac wk4.
* Bounce. Weergave van een stuiterende bal.
* @see BallPanel
* @see Ball
* @author Cay Horstmann, Rieks op den Akker, Arend Rensink en Theo Ruys
* @version 2005.02.22
*/
public class Bounce extends JFra... | 252 |
github-java-corpus | 2,012 | package week4.mandel;
import javax.swing.*;
import java.awt.*;
/**
* Grafische component voor het tekenen van de Mandelbrot set.
* Practicumopdracht Programmeren 2.
* @author Martin Kalin, aangepast door Arend Rensink
* @version 15-01-2002
*/
class MandelPanel extends JPanel implements Runnable{
public void ... | 802 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.