text stringlengths 30 1.67M |
|---|
<s> package net . java . joglutils . msg . math ; public class MathUtil { public static boolean makePerpendicular ( Vec3f src , Vec3f dest ) { if ( ( src . x ( ) == <NUM_LIT:0.0f> ) && ( src . y ( ) == <NUM_LIT:0.0f> ) && ( src . z ( ) == <NUM_LIT:0.0f> ) ) { return false ; } if ( src . x ( ) != <NUM_LIT:0.0f> ) { if (... |
<s> package net . java . joglutils . msg . math ; public class PlaneUV { private Vec3f origin = new Vec3f ( ) ; private Vec3f normal = new Vec3f ( ) ; private Vec3f uAxis = new Vec3f ( ) ; private Vec3f vAxis = new Vec3f ( ) ; public PlaneUV ( ) { setEverything ( new Vec3f ( <NUM_LIT:0> , <NUM_LIT:1> , <NUM_LIT:0> ) , ... |
<s> package net . java . joglutils . msg . math ; public class Vec2f { private float x ; private float y ; public Vec2f ( ) { } public Vec2f ( Vec2f arg ) { this ( arg . x , arg . y ) ; } public Vec2f ( float x , float y ) { set ( x , y ) ; } public Vec2f copy ( ) { return new Vec2f ( this ) ; } public void set ( Vec2f... |
<s> package net . java . joglutils . msg . math ; public class DimensionMismatchException extends RuntimeException { public DimensionMismatchException ( ) { super ( ) ; } public DimensionMismatchException ( String msg ) { super ( msg ) ; } } </s> |
<s> package net . java . joglutils . msg . math ; public class Vec3f { public static final Vec3f X_AXIS = new Vec3f ( <NUM_LIT:1> , <NUM_LIT:0> , <NUM_LIT:0> ) ; public static final Vec3f Y_AXIS = new Vec3f ( <NUM_LIT:0> , <NUM_LIT:1> , <NUM_LIT:0> ) ; public static final Vec3f Z_AXIS = new Vec3f ( <NUM_LIT:0> , <NUM_L... |
<s> package net . java . joglutils . msg . math ; public class Matf { private float [ ] data ; private int nCol ; private int nRow ; public Matf ( int nRow , int nCol ) { data = new float [ nRow * nCol ] ; this . nCol = nCol ; this . nRow = nRow ; } public Matf ( Matf arg ) { nRow = arg . nRow ; nCol = arg . nCol ; dat... |
<s> package net . java . joglutils . msg . math ; import java . nio . * ; public class Mat4f { private float [ ] data ; public Mat4f ( ) { data = new float [ <NUM_LIT:16> ] ; } public Mat4f ( Mat4f arg ) { this ( ) ; set ( arg ) ; } public void makeIdent ( ) { for ( int i = <NUM_LIT:0> ; i < <NUM_LIT:4> ; i ++ ) { for ... |
<s> package net . java . joglutils . msg . math ; public class Sphere { private Vec3f center = new Vec3f ( ) ; private float radius ; private float radSq ; public Sphere ( ) { makeEmpty ( ) ; } public Sphere ( Vec3f center , float radius ) { set ( center , radius ) ; } public Sphere ( Sphere other ) { set ( other ) ; }... |
<s> package net . java . joglutils . msg . math ; public class Mat3f { private float [ ] data ; public Mat3f ( ) { data = new float [ <NUM_LIT:9> ] ; } public void makeIdent ( ) { for ( int i = <NUM_LIT:0> ; i < <NUM_LIT:3> ; i ++ ) { for ( int j = <NUM_LIT:0> ; j < <NUM_LIT:3> ; j ++ ) { if ( i == j ) { set ( i , j , ... |
<s> package net . java . joglutils . msg . math ; public class Veci { private int [ ] data ; public Veci ( int n ) { data = new int [ n ] ; } public Veci ( Veci arg ) { data = new int [ arg . data . length ] ; System . arraycopy ( arg . data , <NUM_LIT:0> , data , <NUM_LIT:0> , data . length ) ; } public int length ( )... |
<s> package net . java . joglutils . msg . math ; public class Line { private Vec3f point ; private Vec3f direction ; private Vec3f alongVec ; public Line ( ) { point = new Vec3f ( <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) ; direction = new Vec3f ( <NUM_LIT:1> , <NUM_LIT:0> , <NUM_LIT:0> ) ; alongVec = new Vec3f ( ) ; ... |
<s> package net . java . joglutils . msg . test ; import java . awt . BorderLayout ; import java . awt . DisplayMode ; import java . awt . Frame ; import java . awt . GraphicsDevice ; import java . awt . GraphicsEnvironment ; import java . awt . event . * ; import java . net . * ; import javax . swing . * ; import java... |
<s> package net . java . joglutils . msg . test ; import java . awt . Frame ; import java . awt . event . * ; import java . io . * ; import javax . media . opengl . * ; import javax . media . opengl . awt . * ; import com . sun . opengl . util . texture . * ; import net . java . joglutils . msg . actions . * ; import n... |
<s> package net . java . joglutils . msg . test ; public interface ProgressListener < IDENT > { public void progressStart ( ProgressEvent < IDENT > evt ) ; public void progressUpdate ( ProgressEvent < IDENT > evt ) ; public void progressEnd ( ProgressEvent < IDENT > evt ) ; } </s> |
<s> package net . java . joglutils . msg . test ; import java . awt . BasicStroke ; import java . awt . Color ; import java . awt . Graphics2D ; import java . awt . event . * ; import java . awt . image . * ; import java . net . * ; import java . util . * ; import javax . swing . * ; import javax . swing . event . * ; ... |
<s> package net . java . joglutils . msg . test ; import java . awt . EventQueue ; import java . awt . image . * ; import java . io . * ; import java . net . * ; import java . util . * ; import java . util . concurrent . * ; import javax . imageio . * ; public class BasicFetcher < IDENT > implements Fetcher < IDENT > {... |
<s> package net . java . joglutils . msg . test ; import java . awt . image . * ; public interface Fetcher < IDENT > { public BufferedImage getImage ( Object imageDescriptor , IDENT clientIdentifier , int requestedImageSize ) ; public void cancelDownload ( Object imageDescriptor , IDENT clientIdentifier , int requested... |
<s> package net . java . joglutils . msg . test ; import java . util . EventObject ; public class ProgressEvent < IDENT > extends EventObject { private Object imageDescriptor ; private IDENT clientIdentifier ; private float fractionCompleted ; private boolean isDownload ; public ProgressEvent ( Fetcher < IDENT > source... |
<s> package net . java . joglutils . msg . nodes ; import net . java . joglutils . msg . actions . * ; public class Node { public void doAction ( Action action ) { } public void render ( GLRenderAction action ) { doAction ( action ) ; } public void rayPick ( RayPickAction action ) { doAction ( action ) ; } } </s> |
<s> package net . java . joglutils . msg . nodes ; import net . java . joglutils . msg . actions . * ; import net . java . joglutils . msg . elements . * ; import net . java . joglutils . msg . math . * ; public abstract class Camera extends Node { private Vec3f position ; private Rotf orientation ; private float aspec... |
<s> package net . java . joglutils . msg . nodes ; import java . awt . image . * ; import java . io . * ; import java . net . * ; import java . util . * ; import javax . media . opengl . * ; import com . sun . opengl . util . awt . * ; import com . sun . opengl . util . texture . * ; import com . sun . opengl . util . ... |
<s> package net . java . joglutils . msg . nodes ; import net . java . joglutils . msg . actions . * ; import net . java . joglutils . msg . math . * ; public class PerspectiveCamera extends Camera { private static final float DEFAULT_HEIGHT_ANGLE = ( float ) ( Math . PI / <NUM_LIT:4> ) ; private float vertFOVScale = <... |
<s> package net . java . joglutils . msg . nodes ; public abstract class Shape extends Node { } </s> |
<s> package net . java . joglutils . msg . nodes ; import net . java . joglutils . msg . actions . * ; import net . java . joglutils . msg . elements . * ; import net . java . joglutils . msg . collections . * ; public class Coordinate3 extends Node { private Vec3fCollection data ; static { GLCoordinateElement . enable... |
<s> package net . java . joglutils . msg . nodes ; import net . java . joglutils . msg . actions . * ; import net . java . joglutils . msg . misc . * ; public class Separator extends Group { public void doAction ( Action action ) { State state = action . getState ( ) ; state . push ( ) ; try { super . doAction ( action... |
<s> package net . java . joglutils . msg . nodes ; import net . java . joglutils . msg . actions . * ; import net . java . joglutils . msg . math . * ; public class OrthographicCamera extends Camera { private static final float DEFAULT_HEIGHT = <NUM_LIT> ; private float heightScale = <NUM_LIT:1.0f> ; public Mat4f getPr... |
<s> package net . java . joglutils . msg . nodes ; import net . java . joglutils . msg . actions . * ; import net . java . joglutils . msg . elements . * ; import net . java . joglutils . msg . collections . * ; public class Color4 extends Node { private Vec4fCollection data ; static { GLColorElement . enable ( GLRende... |
<s> package net . java . joglutils . msg . nodes ; import javax . media . opengl . * ; import net . java . joglutils . msg . actions . * ; import net . java . joglutils . msg . elements . * ; public class DepthTest extends Node { private boolean enabled = true ; static { GLDepthTestElement . enable ( GLRenderAction . g... |
<s> package net . java . joglutils . msg . nodes ; import net . java . joglutils . msg . actions . * ; import net . java . joglutils . msg . elements . * ; import net . java . joglutils . msg . math . * ; public class Transform extends Node { private Mat4f transform ; static { GLModelMatrixElement . enable ( GLRenderAc... |
<s> package net . java . joglutils . msg . nodes ; import net . java . joglutils . msg . actions . * ; import net . java . joglutils . msg . collections . * ; import net . java . joglutils . msg . elements . * ; public class TextureCoordinate2 extends Node { private Vec2fCollection data ; static { GLTextureCoordinateEl... |
<s> package net . java . joglutils . msg . nodes ; import java . util . * ; import net . java . joglutils . msg . actions . * ; public class Group extends Node implements Iterable < Node > { private List < Node > children = new ArrayList < Node > ( ) ; public void addChild ( Node child ) { if ( child == null ) throw ne... |
<s> package net . java . joglutils . msg . nodes ; import java . nio . * ; import net . java . joglutils . msg . actions . * ; import net . java . joglutils . msg . misc . * ; public class IndexedTriangleSet extends TriangleBasedShape { private IntBuffer indices ; public void setIndices ( IntBuffer indices ) { this . i... |
<s> package net . java . joglutils . msg . nodes ; import java . awt . image . * ; import java . io . * ; import java . net . * ; import java . util . * ; import javax . media . opengl . * ; import net . java . joglutils . msg . actions . * ; import net . java . joglutils . msg . elements . * ; import net . java . jogl... |
<s> package net . java . joglutils . msg . nodes ; import net . java . joglutils . msg . actions . * ; import net . java . joglutils . msg . elements . * ; import net . java . joglutils . msg . math . * ; public class Blend extends Node { private boolean enabled ; private Vec4f blendColor = new Vec4f ( ) ; private int ... |
<s> package net . java . joglutils . msg . nodes ; import java . nio . * ; import java . util . * ; import javax . media . opengl . * ; import com . sun . opengl . util . texture . * ; import net . java . joglutils . msg . actions . * ; import net . java . joglutils . msg . elements . * ; import net . java . joglutils ... |
<s> package net . java . joglutils . msg . nodes ; import java . util . * ; import net . java . joglutils . msg . actions . * ; import net . java . joglutils . msg . elements . * ; import net . java . joglutils . msg . impl . * ; import net . java . joglutils . msg . math . * ; import net . java . joglutils . msg . mis... |
<s> package net . java . joglutils . msg . elements ; import net . java . joglutils . msg . math . * ; import net . java . joglutils . msg . misc . * ; public class ProjectionMatrixElement extends Element { private static StateIndex index = State . registerElementType ( ) ; public StateIndex getStateIndex ( ) { return ... |
<s> package net . java . joglutils . msg . elements ; import net . java . joglutils . msg . math . * ; import net . java . joglutils . msg . misc . * ; public class ViewingMatrixElement extends Element { private static StateIndex index = State . registerElementType ( ) ; public StateIndex getStateIndex ( ) { return ind... |
<s> package net . java . joglutils . msg . elements ; import java . nio . * ; import javax . media . opengl . * ; import javax . media . opengl . glu . * ; import net . java . joglutils . msg . math . * ; import net . java . joglutils . msg . misc . * ; import net . java . joglutils . msg . nodes . * ; public class GLB... |
<s> package net . java . joglutils . msg . elements ; import net . java . joglutils . msg . misc . * ; public abstract class Element { private Element nextInStack ; private Element next ; private int depth ; protected Element ( ) { } public abstract Element newInstance ( ) ; public Element getNextInStack ( ) { return n... |
<s> package net . java . joglutils . msg . elements ; import java . nio . * ; import javax . media . opengl . * ; import javax . media . opengl . glu . * ; import net . java . joglutils . msg . math . * ; import net . java . joglutils . msg . misc . * ; import net . java . joglutils . msg . nodes . * ; public class GLD... |
<s> package net . java . joglutils . msg . elements ; import java . nio . * ; import javax . media . opengl . * ; import javax . media . opengl . glu . * ; import net . java . joglutils . msg . math . * ; import net . java . joglutils . msg . misc . * ; public class GLProjectionMatrixElement extends ProjectionMatrixEle... |
<s> package net . java . joglutils . msg . elements ; import java . nio . * ; import javax . media . opengl . * ; import net . java . joglutils . msg . misc . * ; import net . java . joglutils . msg . nodes . * ; public class TextureElement extends Element { private static StateIndex index = State . registerElementType... |
<s> package net . java . joglutils . msg . elements ; import java . util . * ; import javax . media . opengl . * ; import javax . media . opengl . glu . * ; import net . java . joglutils . msg . math . * ; import net . java . joglutils . msg . misc . * ; import net . java . joglutils . msg . nodes . * ; public class GL... |
<s> package net . java . joglutils . msg . elements ; import java . nio . * ; import javax . media . opengl . * ; import net . java . joglutils . msg . misc . * ; public class TextureCoordinateElement extends Element { private static StateIndex index = State . registerElementType ( ) ; public StateIndex getStateIndex (... |
<s> package net . java . joglutils . msg . elements ; import java . nio . * ; import javax . media . opengl . * ; import net . java . joglutils . msg . misc . * ; public class CoordinateElement extends Element { private static StateIndex index = State . registerElementType ( ) ; public StateIndex getStateIndex ( ) { re... |
<s> package net . java . joglutils . msg . elements ; import net . java . joglutils . msg . math . * ; import net . java . joglutils . msg . misc . * ; public class ModelMatrixElement extends Element { private static StateIndex index = State . registerElementType ( ) ; public StateIndex getStateIndex ( ) { return index... |
<s> package net . java . joglutils . msg . elements ; import net . java . joglutils . msg . misc . * ; import net . java . joglutils . msg . nodes . * ; public class ShaderElement extends Element { private static StateIndex index = State . registerElementType ( ) ; public StateIndex getStateIndex ( ) { return index ; }... |
<s> package net . java . joglutils . msg . elements ; import java . nio . * ; import javax . media . opengl . * ; import javax . media . opengl . glu . * ; import net . java . joglutils . msg . math . * ; import net . java . joglutils . msg . misc . * ; public class GLModelMatrixElement extends ModelMatrixElement { pub... |
<s> package net . java . joglutils . msg . elements ; import java . nio . * ; import javax . media . opengl . * ; import javax . media . opengl . glu . * ; import net . java . joglutils . msg . math . * ; import net . java . joglutils . msg . misc . * ; public class GLViewingMatrixElement extends ViewingMatrixElement {... |
<s> package net . java . joglutils . msg . elements ; import java . nio . * ; import javax . media . opengl . * ; import javax . media . opengl . glu . * ; import net . java . joglutils . msg . misc . * ; public class GLColorElement extends ColorElement { public Element newInstance ( ) { return new GLColorElement ( ) ;... |
<s> package net . java . joglutils . msg . elements ; import java . nio . * ; import javax . media . opengl . * ; import javax . media . opengl . glu . * ; import net . java . joglutils . msg . misc . * ; public class GLTextureCoordinateElement extends TextureCoordinateElement { public Element newInstance ( ) { return ... |
<s> package net . java . joglutils . msg . elements ; import java . nio . * ; import javax . media . opengl . * ; import javax . media . opengl . glu . * ; import com . sun . opengl . util . texture . * ; import net . java . joglutils . msg . misc . * ; import net . java . joglutils . msg . nodes . * ; public class GLT... |
<s> package net . java . joglutils . msg . elements ; import java . nio . * ; import javax . media . opengl . * ; import net . java . joglutils . msg . misc . * ; public class ColorElement extends Element { private static StateIndex index = State . registerElementType ( ) ; public StateIndex getStateIndex ( ) { return ... |
<s> package net . java . joglutils . msg . elements ; import java . nio . * ; import javax . media . opengl . * ; import javax . media . opengl . glu . * ; import net . java . joglutils . msg . misc . * ; public class GLCoordinateElement extends CoordinateElement { public Element newInstance ( ) { return new GLCoordina... |
<s> package net . java . joglutils . msg . elements ; import javax . media . opengl . * ; import net . java . joglutils . msg . math . * ; import net . java . joglutils . msg . misc . * ; import net . java . joglutils . msg . nodes . * ; public class DepthTestElement extends Element { private static StateIndex index = ... |
<s> package net . java . joglutils . msg . elements ; import java . nio . * ; import javax . media . opengl . * ; import net . java . joglutils . msg . math . * ; import net . java . joglutils . msg . misc . * ; import net . java . joglutils . msg . nodes . * ; public class BlendElement extends Element { private static... |
<s> package net . java . joglutils . msg . collections ; import java . nio . * ; import net . java . joglutils . msg . impl . * ; import net . java . joglutils . msg . math . * ; public class Vec3fCollection { private FloatBuffer data ; private static final int ELEMENT_SIZE = <NUM_LIT:3> ; public Vec3fCollection ( ) { ... |
<s> package net . java . joglutils . msg . collections ; import java . nio . * ; import net . java . joglutils . msg . impl . * ; import net . java . joglutils . msg . math . * ; public class Vec4fCollection { private FloatBuffer data ; private static final int ELEMENT_SIZE = <NUM_LIT:4> ; public Vec4fCollection ( ) { ... |
<s> package net . java . joglutils . msg . collections ; import java . nio . * ; import net . java . joglutils . msg . impl . * ; import net . java . joglutils . msg . math . * ; public class Vec2fCollection { private FloatBuffer data ; private static final int ELEMENT_SIZE = <NUM_LIT:2> ; public Vec2fCollection ( ) { ... |
<s> package net . java . joglutils . msg . impl ; import net . java . joglutils . msg . math . * ; public class RayTriangleIntersection { private Vec3f edge1 = new Vec3f ( ) ; private Vec3f edge2 = new Vec3f ( ) ; private Vec3f tvec = new Vec3f ( ) ; private Vec3f pvec = new Vec3f ( ) ; private Vec3f qvec = new Vec3f (... |
<s> package net . java . joglutils . msg . impl ; import java . nio . * ; import java . util . * ; import com . sun . opengl . util . * ; public class BufferFactory { private static ByteBuffer curByteBuf ; private static ShortBuffer curShortBuf ; private static IntBuffer curIntBuf ; private static FloatBuffer curFloatB... |
<s> package jgudemos ; import net . java . joglutils . jogltext . TextRenderer3D ; import com . sun . opengl . util . Animator ; import java . awt . Font ; import java . awt . Frame ; import java . awt . event . WindowAdapter ; import java . awt . event . WindowEvent ; import java . awt . geom . Rectangle2D ; import ja... |
<s> package jgudemos ; import net . java . joglutils . jogltext . * ; import java . awt . geom . * ; import java . awt . font . * ; import java . awt . * ; import java . awt . event . * ; import javax . swing . * ; import javax . media . opengl . * ; import javax . media . opengl . glu . * ; import com . sun . opengl .... |
<s> package jgudemos ; import net . java . joglutils . * ; import javax . media . opengl . * ; public class BasicGLJFrameDemo { public static void main ( String [ ] args ) { GLJFrame gljf = new GLJFrame ( new GLEventListener ( ) { public void reshape ( GLAutoDrawable drawable , int x , int y , int width , int height ) ... |
<s> package jgudemos ; import java . awt . Color ; import java . awt . Font ; import java . awt . Frame ; import java . awt . event . WindowAdapter ; import java . awt . event . WindowEvent ; import java . awt . geom . Rectangle2D ; import java . lang . reflect . Array ; import java . util . ArrayList ; import java . u... |
<s> package com . komamitsu . addressbook . controller ; import javax . validation . Valid ; import org . slf4j . Logger ; import org . slf4j . LoggerFactory ; import org . springframework . beans . factory . annotation . Autowired ; import org . springframework . stereotype . Controller ; import org . springframework ... |
<s> package com . komamitsu . addressbook . controller ; import javax . validation . Valid ; import org . slf4j . Logger ; import org . slf4j . LoggerFactory ; import org . springframework . beans . factory . annotation . Autowired ; import org . springframework . stereotype . Controller ; import org . springframework ... |
<s> package com . komamitsu . addressbook . controller ; import javax . validation . Valid ; import org . slf4j . Logger ; import org . slf4j . LoggerFactory ; import org . springframework . beans . factory . annotation . Autowired ; import org . springframework . stereotype . Controller ; import org . springframework ... |
<s> package com . komamitsu . addressbook . controller ; import javax . validation . Valid ; import org . slf4j . Logger ; import org . slf4j . LoggerFactory ; import org . springframework . beans . factory . annotation . Autowired ; import org . springframework . stereotype . Controller ; import org . springframework ... |
<s> package com . komamitsu . addressbook . repository . impl ; import java . util . List ; import org . springframework . beans . factory . annotation . Autowired ; import org . springframework . beans . factory . annotation . Qualifier ; import org . springframework . orm . ibatis . support . SqlMapClientDaoSupport ;... |
<s> package com . komamitsu . addressbook . repository . impl ; import java . util . List ; import org . springframework . beans . factory . annotation . Autowired ; import org . springframework . beans . factory . annotation . Qualifier ; import org . springframework . orm . ibatis . support . SqlMapClientDaoSupport ;... |
<s> package com . komamitsu . addressbook . repository ; import java . util . List ; import com . komamitsu . addressbook . domain . Person ; public interface PersonDao { Person selectById ( long id ) ; List < Person > selectAll ( ) ; Long insert ( Person person ) ; void update ( Person person ) ; void delete ( Person ... |
<s> package com . komamitsu . addressbook . repository ; import java . util . List ; import com . komamitsu . addressbook . domain . Project ; public interface ProjectDao { Project selectById ( long id ) ; List < Project > selectAll ( ) ; Long insert ( Project project ) ; void update ( Project project ) ; void delete (... |
<s> package com . komamitsu . addressbook . domain ; import org . hibernate . validator . constraints . NotEmpty ; public class Project { private Long id ; @ NotEmpty private String name ; public Long getId ( ) { return id ; } public void setId ( Long id ) { this . id = id ; } public String getName ( ) { return name ; ... |
<s> package com . komamitsu . addressbook . domain ; import org . hibernate . validator . constraints . NotEmpty ; public class Person { private Long id ; @ NotEmpty private String name ; @ NotEmpty private String postcode ; @ NotEmpty private String address ; public Long getId ( ) { return id ; } public void setId ( L... |
<s> package com . komamitsu . addressbook . domain ; import static org . junit . Assert . assertEquals ; import org . junit . After ; import org . junit . AfterClass ; import org . junit . Before ; import org . junit . BeforeClass ; import org . junit . Test ; public class TestProject { private Project project ; @ Befo... |
<s> package com . komamitsu . addressbook . domain ; import static org . junit . Assert . assertEquals ; import org . junit . After ; import org . junit . AfterClass ; import org . junit . Before ; import org . junit . BeforeClass ; import org . junit . Test ; public class TestPerson { private Person person ; @ BeforeC... |
<s> package com . komamitsu . addressbook . repository . impl ; import static org . junit . Assert . assertEquals ; import static org . junit . Assert . assertNotNull ; import java . util . List ; import javax . sql . DataSource ; import org . junit . Before ; import org . junit . Test ; import org . springframework . ... |
<s> package com . komamitsu . addressbook . repository . impl ; import static org . junit . Assert . assertEquals ; import static org . junit . Assert . assertNotNull ; import java . util . List ; import javax . sql . DataSource ; import org . junit . Before ; import org . junit . Test ; import org . springframework . ... |
<s> package com . somethingsimilar . opposite_of_a_bloom_filter ; import java . nio . ByteBuffer ; import org . junit . Test ; import static org . junit . Assert . assertEquals ; import static org . junit . Assert . assertFalse ; import static org . junit . Assert . assertTrue ; import static org . junit . Assert . fai... |
<s> package com . somethingsimilar . opposite_of_a_bloom_filter ; import org . junit . Test ; import static org . junit . Assert . assertEquals ; import static org . junit . Assert . assertFalse ; import static org . junit . Assert . assertTrue ; import static org . junit . Assert . fail ; public class ByteArrayFilterT... |
<s> package com . somethingsimilar . opposite_of_a_bloom_filter ; import java . math . RoundingMode ; import java . util . Arrays ; import java . nio . ByteBuffer ; import com . google . common . hash . HashCode ; import com . google . common . hash . HashFunction ; import com . google . common . hash . Hashing ; impor... |
<s> package com . somethingsimilar . opposite_of_a_bloom_filter ; import java . math . RoundingMode ; import java . util . Arrays ; import java . util . concurrent . atomic . AtomicReferenceArray ; import com . google . common . hash . HashCode ; import com . google . common . hash . HashFunction ; import com . google ... |
<s> package com . g4 . matlab . ann ; import com . mathworks . toolbox . javabuilder . * ; import com . mathworks . toolbox . javabuilder . internal . * ; import java . util . * ; public class ANN extends MWComponentInstance < ANN > { private static final Set < Disposable > sInstances = new HashSet < Disposable > ( ) ;... |
<s> package com . g4 . matlab . ann ; </s> |
<s> package com . g4 . matlab . ann ; import com . mathworks . toolbox . javabuilder . * ; import com . mathworks . toolbox . javabuilder . internal . * ; public class AnnMCRFactory { private static final byte [ ] sSessionKey = { <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_L... |
<s> package com . g4 . matlab . ann ; import com . mathworks . toolbox . javabuilder . pooling . Poolable ; import java . util . List ; import java . rmi . Remote ; import java . rmi . RemoteException ; public interface ANNRemote extends Poolable { public Object [ ] backpropagation ( int nargout , Object ... rhs ) thro... |
<s> package com . g4 . java . model ; import java . util . ArrayList ; import java . util . List ; import com . mathworks . toolbox . javabuilder . MWArray ; import com . mathworks . toolbox . javabuilder . MWCellArray ; import com . mathworks . toolbox . javabuilder . MWClassID ; import com . mathworks . toolbox . jav... |
<s> package com . g4 . java . mutation ; import com . g4 . java . model . Individual ; import com . g4 . java . util . RandomGenerator ; public class ClassicMutation implements Mutation { protected double mutationPercentage ; private double alleleProb ; public ClassicMutation ( double mutationPercentage , double allele... |
<s> package com . g4 . java . mutation ; import com . g4 . java . model . Individual ; public interface Mutation { void updateMutationProbability ( int iteration ) ; Individual mutate ( Individual entity , int iteration ) ; boolean shouldMutate ( ) ; } </s> |
<s> package com . g4 . java . mutation ; public class NotUniformMutation extends ClassicMutation { private int generationsToDecrease ; private double decreaseConstant ; public NotUniformMutation ( double mutationPercentage , int generationsToDecrease , double decreaseConstant , double alleleProb ) { super ( mutationPer... |
<s> package com . g4 . java . reproduction ; import java . util . ArrayList ; import java . util . List ; import com . g4 . java . model . Individual ; public class MonogamousReproduction implements Reproduction { public List < Individual [ ] > getParents ( List < Individual > populations ) { int size = populations . s... |
<s> package com . g4 . java . reproduction ; import java . util . List ; import com . g4 . java . model . Individual ; public interface Reproduction { List < Individual [ ] > getParents ( List < Individual > populations ) ; } </s> |
<s> package com . g4 . java ; public class PlotData { public Double fitness ; public Double worst ; public Double median ; public PlotData ( double fitness , double worst , double median ) { this . fitness = new Double ( fitness ) ; this . worst = new Double ( worst ) ; this . median = new Double ( median ) ; } } </s> |
<s> package com . g4 . java . ending ; import java . util . ArrayList ; import java . util . List ; import com . g4 . java . model . Individual ; import com . g4 . java . selection . EliteSelection ; import com . g4 . java . selection . Selection ; public class ContentEnding implements EndingMethod { private List < Dou... |
<s> package com . g4 . java . ending ; import java . util . List ; import com . g4 . java . model . Individual ; public class MaxGenerationEnding implements EndingMethod { private int iterationsToEnd ; public MaxGenerationEnding ( int iterationsToEnd ) { this . iterationsToEnd = iterationsToEnd ; } @ Override public bo... |
<s> package com . g4 . java . ending ; import java . util . ArrayList ; import java . util . List ; import com . g4 . java . model . Individual ; import com . g4 . java . selection . EliteSelection ; import com . g4 . java . selection . Selection ; public class StructuralEnding implements EndingMethod { private int ite... |
<s> package com . g4 . java . ending ; import java . util . List ; import com . g4 . java . model . Individual ; import com . g4 . java . selection . EliteSelection ; import com . g4 . java . selection . Selection ; public class OptimumOrFitnessEnding implements EndingMethod { private double optimum ; private double to... |
<s> package com . g4 . java . ending ; import java . util . List ; import com . g4 . java . model . Individual ; public class MixEnding implements EndingMethod { private List < EndingMethod > endingMethods ; public MixEnding ( List < EndingMethod > endingMethods ) { this . endingMethods = endingMethods ; } @ Override p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.