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 com.cmaher.game.collision;
import com.badlogic.gdx.math.Vector2;
public class BoundingCircle {
private Vector2 center;
private float radius;
public BoundingCircle(Vector2 center, float radius) {
this.center = center;
this.radius = radius;
}
public boolean c... | 174 |
github-java-corpus | 2,012 | package com.cmaher.game.collision;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.cmaher.game.components.CollisionComponent;
/**
* A Highly naive implementation of collision management In general, my
* collision detection is naive, but it sh... | 654 |
github-java-corpus | 2,012 | package com.cmaher.game.properties;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
import com.badlogic.gdx.utils.Logger;
//TODO: implement all necessary properties in all necessary files for SGAS
/**
* @author Christian Maher
*
*/
pu... | 335 |
github-java-corpus | 2,012 | package com.cmaher.game.asset;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.Texture;
public class AssetWrapper {
private AssetManager assetManager;
public AssetWrapper() {
assetManager = new AssetManager();
}
public AssetManager getAssetManager() ... | 172 |
github-java-corpus | 2,012 | package com.cmaher.game.entity;
import com.cmaher.game.GameBase;
public interface Entity {
public void update(float delta);
public GameBase getGame();
}
| 36 |
github-java-corpus | 2,012 | package com.cmaher.game.entity;
import com.cmaher.game.components.RadialCollisionComponent;
public interface Factionable extends Entity {
public abstract void collideUnfriendly(Factionable uf);
public abstract void collideUnfriendlyBullet(Factionable ufBullet);
public abstract void collideSolid... | 69 |
github-java-corpus | 2,012 | package com.cmaher.game.entity;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.cmaher.game.GameBase;
import com.cmaher.game.components.PlaceComponent;
public class Text extends EntityBase {
private BitmapFont font;
private String text;
... | 250 |
github-java-corpus | 2,012 | package com.cmaher.game.entity;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.math.Vector2;
import com.cmaher.game.GameBase;
import com.cmaher.game.components.CollisionComponent;
import com.cmaher.game.components.DrawComponent;
import com.cmaher.game.components.PhysicsComponent;
import com.cmaher.game.c... | 591 |
github-java-corpus | 2,012 | package com.cmaher.game.entity;
import com.cmaher.game.GameBase;
/**
* Anything that goes in the Game world, including players, enemies, scripts,
* triggers, etc.
*
* @author Christian
*
*/
public abstract class EntityBase implements Entity {
public final GameBase game;
public EntityBas... | 138 |
github-java-corpus | 2,012 | package com.cmaher.game.components;
import com.cmaher.game.entity.Entity;
public class DeactivateComponent extends Component {
private boolean deactivated = false;
private float deactiveTime;
private float sumTime;
public DeactivateComponent(Entity master, float deactiveTime) {
... | 189 |
github-java-corpus | 2,012 | package com.cmaher.game.components;
import com.badlogic.gdx.math.MathUtils;
import com.badlogic.gdx.math.Vector2;
import com.cmaher.game.entity.EntityBase;
public class PhysicsComponent extends Component {
public static final Vector2 VECTOR_UP = new Vector2(0, 1);
public static final Vector2 VECTOR... | 1,006 |
github-java-corpus | 2,012 | package com.cmaher.game.components;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import com.badlogic.gdx.math.MathUtils;
import com.badlogic.gdx.math.Vector2;
import com.cmaher.game.entity.Bullet;
import com.cmaher.game.entity.EntityBase;
public class ShootBulletComponent... | 562 |
github-java-corpus | 2,012 | package com.cmaher.game.components;
import com.cmaher.game.entity.EntityBase;
public class RotationalComponent extends Component {
private PlaceComponent place;
private float angularVelocity; // degrees/second
private boolean reversed;
public RotationalComponent(EntityBase ... | 220 |
github-java-corpus | 2,012 | package com.cmaher.game.components;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.math.Vector2;
import com.cmaher.game.entity.Entity;
/**
* TODO: properly use angle of inflection = angle of deflection to handle generic bounces
* @author Christian
*
*/
public class BounceComponent extends Compo... | 258 |
github-java-corpus | 2,012 | package com.cmaher.game.components;
import com.badlogic.gdx.math.Vector2;
import com.cmaher.game.collision.BoundingCircle;
import com.cmaher.game.entity.EntityBase;
import com.cmaher.game.entity.Factionable;
public class RadialCollisionComponent extends Component implements CollisionComponent {
private st... | 364 |
github-java-corpus | 2,012 | package com.cmaher.game.components;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.math.MathUtils;
import com.badlogic.gdx.math.Vector2;
import com.cmaher.game.entity.EntityBase;
public class PlaceComponent extends Component {
protected float x;
protected float y;
protected float wid... | 729 |
github-java-corpus | 2,012 | package com.cmaher.game.components;
import com.cmaher.game.collision.BoundingCircle;
public interface CollisionComponent {
public void update(float delta);
public boolean checkCollision(CollisionComponent other);
public void stopAtSolid(CollisionComponent cc);
public BoundingCircle get... | 66 |
github-java-corpus | 2,012 | package com.cmaher.game.components;
import com.cmaher.game.entity.Entity;
public class Component {
public final Entity master;
public Component(Entity master) {
this.master = master;
}
}
| 43 |
github-java-corpus | 2,012 | package com.cmaher.game.components;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.cmaher.game.entity.Entity;
public class DrawComponent extends Component {
pri... | 394 |
github-java-corpus | 2,012 | package com.cmaher.game.components;
import java.util.Set;
import com.cmaher.game.FactionType;
import com.cmaher.game.entity.EntityBase;
import com.cmaher.game.entity.Factionable;
/**
* TODO: Fix this. This is the result of the engine being poorly hacked together
* in a small amount of time and should be ... | 560 |
github-java-corpus | 2,012 | package com.cmaher.game.components;
import com.cmaher.game.entity.Entity;
public class LifeComponent extends Component {
private boolean alive;
public LifeComponent(Entity master) {
super(master);
alive = true;
}
public boolean isAlive() {
return alive;
... | 81 |
github-java-corpus | 2,012 | package com.cmaher.sgas;
import java.util.ArrayList;
import java.util.List;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.graphics.GL10;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.cmaher.game.GameBase;
import com.cmaher.game.asset.AssetWrapper;
import... | 1,224 |
github-java-corpus | 2,012 | package com.cmaher.sgas.desktop;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.cmaher.sgas.SGASGame;
public class SGASDesktopGame {
public static void main(String[] args) {
runGame();
}
public static void runGame() {
new LwjglApplication(new SGASGame()... | 88 |
github-java-corpus | 2,012 | package com.cmaher.sgas.entity;
import com.badlogic.gdx.graphics.Color;
import com.cmaher.game.FactionType;
import com.cmaher.game.GameBase;
import com.cmaher.game.components.FactionableCollisionComponent;
import com.cmaher.game.components.RadialCollisionComponent;
import com.cmaher.game.entity.Bullet;
import ... | 306 |
github-java-corpus | 2,012 | package com.cmaher.sgas.entity;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.math.MathUtils;
import com.cmaher.game.FactionType;
import com.cmaher.game.components.DeactivateComponent;
import com.cmaher.game.components.DrawComponent;
import com.cmaher.game.components.FactionableCollisionCompon... | 1,053 |
github-java-corpus | 2,012 | package com.cmaher.sgas.entity;
import com.badlogic.gdx.graphics.Color;
import com.cmaher.game.FactionType;
import com.cmaher.game.GameBase;
import com.cmaher.game.components.FactionableCollisionComponent;
import com.cmaher.game.components.RadialCollisionComponent;
import com.cmaher.game.entity.Bullet;
import ... | 320 |
github-java-corpus | 2,012 | package com.cmaher.sgas.entity;
import com.badlogic.gdx.graphics.Color;
import com.cmaher.game.FactionType;
import com.cmaher.game.components.DrawComponent;
import com.cmaher.game.components.FactionableCollisionComponent;
import com.cmaher.game.components.LifeComponent;
import com.cmaher.game.components.Physics... | 862 |
github-java-corpus | 2,012 | package com.cmaher.sgas.components;
import java.util.ArrayList;
import java.util.List;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.math.Vector2;
import com.cmaher.game.components.Component;
import com.cmaher.game.components.PhysicsComponent;
import com.cmaher.game.com... | 645 |
github-java-corpus | 2,012 | package com.cmaher.sgas.components;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.cmaher.game.components.Component;
import com.cmaher.game.components.PlaceComponent;
import com.cmaher.game.components.ShootBulletComponent;
import com.cmaher.sgas.entity.PlayerBullet;
import com.cmaher.sg... | 218 |
github-java-corpus | 2,012 | package me.cmesh.SmoothFlight;
import java.util.Random;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.util.Vector;
public class SFPlayer
{
private static SmoothFlight plugin;
private Player player;
private Long lastFly;
private boolean hover;
public SFPlayer(Player player, S... | 724 |
github-java-corpus | 2,012 | package me.cmesh.SmoothFlight;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.*;
import org.bukkit.Material;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;
import ru.tehko... | 761 |
github-java-corpus | 2,012 | package me.cmesh.SmoothFlight;
import java.util.Collection;
import java.util.Random;
import org.bukkit.Effect;
import org.bukkit.Location;
// http://mc.kev009.com/Protocol
// -----------------------------
// Smoke Directions
// -----------------------------
// Direction ID Direction
// 0 South - Ea... | 443 |
github-java-corpus | 2,012 | package me.cmesh.SmoothFlight;
import java.util.HashMap;
import java.util.UUID;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.block.Action;
import org.bukkit.event.player.*;
public class SFPlayer... | 489 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.model;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* <p>This annotation is used on methods that should be logged.</p>
*
* <p>When used on a network interface... | 206 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.model;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation is used on methods of a network interface that should not be logged.
* It overrides the @... | 118 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.model;
/**
* This class is for tagging a special method parameter that is used
* in order to identify the source of a message.
*
* The real type of this object is to be specified at the source generation
* step by the user of the library.
*
* @author Vincent Cantin
*/
publ... | 79 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.model;
/**
*
* @author Vincent Cantin
*/
public enum LogSide {
Invocation,
Reception,
Both;
public boolean hasInvocation() {
return (this == Invocation) || (this == Both);
}
public boolean hasReception() {
return (this == Reception) || (this == Both);
}... | 83 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.model;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Annotation used to tag services.
*
* This annotation is the only one required when designing a service.
... | 97 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.mavenplugin;
import com.lemoulinstudio.small.apt.APConfig;
import com.lemoulinstudio.small.apt.SmallAnnotationProcessor;
import java.io.File;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import j... | 1,490 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt;
import com.lemoulinstudio.small.apt.oom.ClassName;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import javax.annotation.processing.ProcessingEnvironment;
import javax.annotation.processing.RoundEnvironment;
import javax.tools.Diagnostic;
/**
*
* @aut... | 1,257 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.oom;
import com.lemoulinstudio.small.apt.type.DeclaredType;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Vincent Cantin
*/
public class VoClass {
DeclaredType type;
List<ModelField> fieldList = new ArrayList<ModelField>();
public DeclaredType get... | 124 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.oom;
import com.lemoulinstudio.small.apt.type.EnumType;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
*
* @author Vincent Cantin
*/
public class ModelData {
int sameSid... | 327 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.oom;
import com.lemoulinstudio.small.apt.APConfig;
import com.lemoulinstudio.small.apt.model.Caller;
import com.lemoulinstudio.small.apt.model.Log;
import com.lemoulinstudio.small.apt.model.Service;
import com.lemoulinstudio.small.apt.model.NoLog;
import com.lemoulinstudio.small.ap... | 2,924 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.oom;
import com.lemoulinstudio.small.apt.type.Type;
/**
*
* @author Vincent Cantin
*/
public class ModelField {
VoClass parentVoClass;
Type type;
String name;
public VoClass getParentVoClass() {
return parentVoClass;
}
public Type getType() {
return type;... | 99 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.oom;
import com.lemoulinstudio.small.apt.type.Type;
/**
*
* @author Vincent Cantin
*/
public class ModelParameter {
ModelMethod parentModelMethod;
Type type;
String name;
boolean isCallerObject;
public ModelMethod getParentModelMethod() {
return parentModelMetho... | 120 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.oom;
/**
*
* @author Vincent Cantin
*/
public class ClassName {
private String className;
public ClassName(String className) {
this.className = className;
}
public String getQualifiedName() {
return className;
}
public String getPackageName() {
return... | 170 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.oom;
import com.lemoulinstudio.small.apt.type.Type;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Vincent Cantin
*/
public class ModelMethod {
ModelClass parentModelClass;
String name;
boolean logMethodInvocation;
boolean logMessageReception;
int... | 232 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.oom;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Vincent Cantin
*/
public class ModelClass {
boolean isLocalSide;
String qualifiedName;
List<ModelMethod> methodList = new ArrayList<ModelMethod>();
public boolean isLocalSide() {
return isLoca... | 156 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt;
import com.lemoulinstudio.small.apt.generator.CodeGenerator;
import com.lemoulinstudio.small.apt.generator.CppCodeGenerator;
import com.lemoulinstudio.small.apt.generator.JavaCodeGenerator;
/**
*
* @author Vincent Cantin
*/
public enum Platform {
Java("java", JavaCodeGene... | 193 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.type;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
*
* @author Vincent Cantin
*/
public class DeclaredType extends Type {
private String typeName;
private Type superType;
private List<Type> implementedTypeList;
private List<Type>... | 397 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.type;
/**
* This enumeration is describing the structure of the type.
*
* @author Vincent Cantin
*/
public enum TypeKind {
Void,
Primitive,
Array,
Enum,
PrimitiveWrapper,
Model,
Declared
}
| 62 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.type;
import com.lemoulinstudio.small.apt.oom.ModelClass;
/**
*
* @author Vincent Cantin
*/
public class ModelType extends Type {
private ModelClass modelClass;
public ModelType(ModelClass modelClass) {
super(TypeKind.Model);
this.modelClass = modelClass;
}
p... | 112 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.type;
import com.lemoulinstudio.small.apt.oom.ClassName;
import java.util.List;
/**
* This represents an enum type.
* @author Vincent Cantin
*/
public class EnumType extends Type {
private ClassName className;
private List<String> enumItems;
public EnumType(String quali... | 213 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.type;
/**
*
* @author Vincent Cantin
*/
public class ArrayType extends Type {
private Type componentType;
public ArrayType(Type componentType) {
super(TypeKind.Array);
this.componentType = componentType;
}
public Type getComponentType() {
return componentT... | 197 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.type;
/**
* This includes primitives.
* @author Vincent Cantin
*/
public class PrimitiveType extends Type {
private Class primitiveClass;
public PrimitiveType(Class primitiveClass) {
super(TypeKind.Primitive);
this.primitiveClass = primitiveClass;
}
public Cla... | 102 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.type;
/**
*
* @author Vincent Cantin
*/
public class VoidType extends Type {
private VoidType() {
super(TypeKind.Void);
}
public static final VoidType instance = new VoidType();
}
| 57 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.type;
/**
*
* @author Vincent Cantin
*/
public abstract class Type {
private TypeKind typeKind;
public Type(TypeKind typeKind) {
this.typeKind = typeKind;
}
public TypeKind getTypeKind() {
return typeKind;
}
}
| 69 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.type;
import java.util.HashMap;
import java.util.Map;
/**
* This includes primitive wrappers.
* @author Vincent Cantin
*/
public class PrimitiveWrapperType extends Type {
private static Map<Class, Class> wrapperClassToPrimitiveClass;
private static Map<Class, Class> primi... | 560 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.generator;
/**
*
* @author Vincent Cantin
*/
public class CppCodeGenerator extends CodeGenerator {
@Override
public void generateAll() {
}
}
| 46 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.generator;
import com.lemoulinstudio.small.apt.APConfig;
import com.lemoulinstudio.small.apt.oom.ClassName;
import com.lemoulinstudio.small.apt.oom.ModelClass;
import com.lemoulinstudio.small.apt.oom.ModelData;
import java.util.List;
/**
* This class generate code from models.
*... | 636 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt.generator;
import com.lemoulinstudio.small.apt.oom.ModelClass;
import com.lemoulinstudio.small.apt.oom.ModelMethod;
import com.lemoulinstudio.small.apt.oom.ModelParameter;
import com.lemoulinstudio.small.apt.type.ArrayType;
import com.lemoulinstudio.small.apt.type.DeclaredType;
imp... | 9,468 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt;
import com.lemoulinstudio.small.apt.generator.CodeGenerator;
import com.lemoulinstudio.small.apt.model.Service;
import com.lemoulinstudio.small.apt.model.NoLog;
import com.lemoulinstudio.small.apt.model.Log;
import com.lemoulinstudio.small.apt.oom.ModelData;
import com.lemoulinstu... | 1,093 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.apt;
/**
*
* @author Vincent Cantin
*/
public enum Language {
Java,
Cpp,
ObjectiveC;
}
| 37 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.mina;
import com.lemoulinstudio.small.SmallSession;
/**
*
* @author Vincent Cantin
*/
public class SmallIoHandlerListenerAdapter implements SmallIoHandlerListener {
@Override
public void sessionCreated(SmallSession smallSession) {
}
@Override
public void sessionOpened(S... | 100 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.mina;
import java.nio.ByteBuffer;
import org.apache.mina.core.buffer.IoBuffer;
import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolEncoder;
import org.apache.mina.filter.codec.ProtocolEncoderOutput;
/**
*
* @author Vincent Cantin
*/
class Mes... | 182 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.mina;
import java.nio.ByteBuffer;
import org.apache.mina.core.buffer.IoBuffer;
import org.apache.mina.core.session.AttributeKey;
import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolDecoderOutput... | 582 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.mina;
import com.lemoulinstudio.small.AbstractConfiguration;
import com.lemoulinstudio.small.MessageSender;
import com.lemoulinstudio.small.SmallSession;
import com.lemoulinstudio.small.SmallSessionImpl;
import java.nio.ByteBuffer;
import org.apache.mina.core.service.IoHandlerAdapter;
... | 508 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.mina;
import com.lemoulinstudio.small.SmallSession;
/**
*
* @author Vincent Cantin
*/
public interface SmallIoHandlerListener {
public void sessionCreated(SmallSession smallSession);
public void sessionOpened(SmallSession smallSession);
public void sessionClosed(SmallSession ... | 73 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.mina;
import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolCodecFactory;
import org.apache.mina.filter.codec.ProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolEncoder;
/**
*
* @author Vincent Cantin
*/
public class MessageCodecFacto... | 145 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.UTFDataFormatException;
/**
*
* @author Vincent Cantin
*/
public class SmallDataInputStream extends DataInputStream {
public SmallDataInputStream(InputStream in) {
super(i... | 721 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small;
/**
* <p>An interface that is used to tag the "remote interfaces" generated
* by the Small Annotation Processor.</p>
*
* <p>An object that implements "remote interface" is able to be exposed
* on the network and be called from a another host if provided to the
* Small se... | 91 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small;
import java.util.Map;
/**
* The super type of the configuration class generated by the annotation processor.
*
* @author Vincent Cantin
*/
public interface AbstractConfiguration {
public Map<Class<? extends RemoteService>, Class<? extends Proxy>> getRemoteServiceClassToProxyCla... | 72 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.util;
import java.lang.reflect.Array;
import java.lang.reflect.Proxy;
import java.nio.ByteBuffer;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Some utils used by Small.
*
* @author Vincent Cantin
*/
public class Utils {
private static StringBuffer ob... | 562 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small.util;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
/**
* Utility class which provides a mean to read data from a {@link java.nio.ByteBuffer}
* using an {@link java.io.InputStream}.
*
* @author Vincent Cantin
*/
public class ByteBufferInputSt... | 185 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small;
/**
* <p>An interface that is used to tag the "local interfaces" generated
* by the Small Annotation Processor.</p>
*
* <p>An object that implements "local interface" is able to be exposed
* on the network and be called from a another host if provided to the
* Small session.</p>... | 91 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small;
import java.nio.ByteBuffer;
/**
* An interface used by a Small session to output the encoded function calls.
*
* You can receive the encoded data of the function calls made via Small by
* using an instance that implements this interface and by registering it in
* the Sm... | 148 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small;
import java.io.DataInputStream;
import java.io.IOException;
/**
*
* @author Vincent Cantin
*/
public interface Decoder {
public void decodeAndInvoke(SmallSessionImpl smallSession, SmallDataInputStream inputStream) throws IOException;
}
| 56 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small;
/**
* The super type of all the proxy classes generated by the annotation processor.
*
* The generic type is only here to simplify the reading of the source code
* and to help users avoid bugs in their code.
*
* @author Vincent Cantin
*/
public class Proxy<T extends RemoteServi... | 102 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small;
/**
* This is a container for the value returned by the invocation of the function
* of a remote service.
*
* @author Vincent Cantin
*/
public class Response<T> {
protected T value;
public synchronized void setValue(T value) {
this.value = value;
this.notify();
... | 114 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;
/**
*
* @author Vincent Cantin
*/
public class SmallDataOutputStream extends DataOutputStream {
public SmallDataOutputStream(OutputStream out) {
super(out);
}
public void writeM... | 107 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small;
import com.lemoulinstudio.small.util.ByteBufferInputStream;
import java.io.ByteArrayOutputStream;
import java.nio.ByteBuffer;
import java.util.HashMap;
import java.util.Map;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
/**
* An implementation of the {@l... | 1,232 |
github-java-corpus | 2,012 | package com.lemoulinstudio.small;
import java.nio.ByteBuffer;
/**
* This class represents a communication session between 2 entities.
*
* @author Vincent Cantin
*/
public interface SmallSession {
/**
* Decodes an encoded message and interprets it via its corresponding function
* on its targeted object.
... | 665 |
github-java-corpus | 2,012 | /*
* This file is part of ForceBuild.
*
* ForceBuild is licensed under the GNU General Public License v3.
*
* ForceBuild is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, ... | 510 |
github-java-corpus | 2,012 | /*
* This file is part of ForceBuild.
*
* ForceBuild is licensed under the GNU General Public License v3.
*
* ForceBuild is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, ... | 1,013 |
github-java-corpus | 2,012 | /*
* This file is part of ForceBuild.
*
* ForceBuild is licensed under the GNU General Public License v3.
*
* ForceBuild is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, ... | 950 |
github-java-corpus | 2,012 | /*
* This file is part of the Echo Web Application Framework (hereinafter "Echo").
* Copyright (C) 2002-2009 NextApp, Inc.
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance w... | 452 |
github-java-corpus | 2,012 | /*
* This file is part of the Echo Web Application Framework (hereinafter "Echo").
* Copyright (C) 2002-2009 NextApp, Inc.
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance w... | 2,202 |
github-java-corpus | 2,012 | /*
* This file is part of the Echo Web Application Framework (hereinafter "Echo").
* Copyright (C) 2002-2009 NextApp, Inc.
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance w... | 801 |
github-java-corpus | 2,012 | /*
* This file is part of the Echo Web Application Framework (hereinafter "Echo").
* Copyright (C) 2002-2009 NextApp, Inc.
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance w... | 1,412 |
github-java-corpus | 2,012 | /*
* This file is part of the Echo Web Application Framework (hereinafter "Echo").
* Copyright (C) 2002-2009 NextApp, Inc.
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance w... | 1,467 |
github-java-corpus | 2,012 | /*
* This file is part of the Echo Web Application Framework (hereinafter "Echo").
* Copyright (C) 2002-2009 NextApp, Inc.
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance w... | 1,111 |
github-java-corpus | 2,012 | /*
* This file is part of the Echo Web Application Framework (hereinafter "Echo").
* Copyright (C) 2002-2009 NextApp, Inc.
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance w... | 1,834 |
github-java-corpus | 2,012 | /*
* This file is part of the Echo Web Application Framework (hereinafter "Echo").
* Copyright (C) 2002-2009 NextApp, Inc.
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance w... | 1,432 |
github-java-corpus | 2,012 | /*
* This file is part of the Echo Web Application Framework (hereinafter "Echo").
* Copyright (C) 2002-2009 NextApp, Inc.
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance w... | 794 |
github-java-corpus | 2,012 | package nextapp.echo2.testapp.interactive.testscreen;
import org.w3c.dom.Document;
import org.w3c.dom.DocumentFragment;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import nextapp.echo2.app.Button;
import nextapp.echo2.app.Column;
import nextapp.echo2.app.Component;
import nextapp.echo2.app.Insets;
import nex... | 1,872 |
github-java-corpus | 2,012 | /*
* This file is part of the Echo Web Application Framework (hereinafter "Echo").
* Copyright (C) 2002-2009 NextApp, Inc.
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance w... | 4,651 |
github-java-corpus | 2,012 | /*
* This file is part of the Echo Web Application Framework (hereinafter "Echo").
* Copyright (C) 2002-2009 NextApp, Inc.
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance w... | 3,486 |
github-java-corpus | 2,012 | /*
* This file is part of the Echo Web Application Framework (hereinafter "Echo").
* Copyright (C) 2002-2009 NextApp, Inc.
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance w... | 560 |
github-java-corpus | 2,012 | /*
* This file is part of the Echo Web Application Framework (hereinafter "Echo").
* Copyright (C) 2002-2009 NextApp, Inc.
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance w... | 3,718 |
github-java-corpus | 2,012 | /*
* This file is part of the Echo Web Application Framework (hereinafter "Echo").
* Copyright (C) 2002-2009 NextApp, Inc.
*
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance w... | 10,072 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.