bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void testGetObjectWithFilterOnly() throws Exception { // OsgiServiceUtils are tested independently in error cases, here we // test the // correct behaviour of the ProxyFactoryBean when OsgiServiceUtils // succesfully // finds the service. this.serviceFactoryBean.setBundleContext(this.bundleContext); this... | public void testGetObjectWithFilterOnly() throws Exception { // OsgiServiceUtils are tested independently in error cases, here we // test the // correct behaviour of the ProxyFactoryBean when OsgiServiceUtils // succesfully // finds the service. this.serviceFactoryBean.setBundleContext(this.bundleContext); this... | 1,101,432 |
public void testGetObjectWithFilterOnly() throws Exception { // OsgiServiceUtils are tested independently in error cases, here we // test the // correct behaviour of the ProxyFactoryBean when OsgiServiceUtils // succesfully // finds the service. this.serviceFactoryBean.setBundleContext(this.bundleContext); this... | public void testGetObjectWithFilterOnly() throws Exception { // OsgiServiceUtils are tested independently in error cases, here we // test the // correct behaviour of the ProxyFactoryBean when OsgiServiceUtils // succesfully // finds the service. this.serviceFactoryBean.setBundleContext(this.bundleContext); this... | 1,101,433 |
public FileObject getBaseTestFolder(final FileSystemManager manager) throws Exception { final File baseDir = AbstractVfsTestCase.getTestDirectory(); final FileObject baseFile = manager.toFileObject(baseDir); return manager.createVirtualFileSystem(baseFile); } | public FileObject getBaseTestFolder(final FileSystemManager manager) throws Exception { final File baseDir = AbstractVfsTestCase.getTestDirectoryFile(); final FileObject baseFile = manager.toFileObject(baseDir); return manager.createVirtualFileSystem(baseFile); } | 1,101,434 |
protected static String extractPort( final StringBuffer name ) { if ( name.length() < 1 || name.charAt( 0 ) != ':' ) { return null; } final int maxlen = name.length(); int pos = 1; for ( ; pos < maxlen; pos++ ) { final char ch = name.charAt( ... | private static int extractPort( final StringBuffer name, final String uri ) throws FileSystemException { if ( name.length() < 1 || name.charAt( 0 ) != ':' ) { return null; } final int maxlen = name.length(); int pos = 1; for ( ; pos < maxlen; pos++ ) { ... | 1,101,435 |
protected static String extractPort( final StringBuffer name ) { if ( name.length() < 1 || name.charAt( 0 ) != ':' ) { return null; } final int maxlen = name.length(); int pos = 1; for ( ; pos < maxlen; pos++ ) { final char ch = name.charAt( ... | protected static String extractPort( final StringBuffer name ) { if ( name.length() < 1 || name.charAt( 0 ) != ':' ) { return -1; } final int maxlen = name.length(); int pos = 1; for ( ; pos < maxlen; pos++ ) { final char ch = name.charAt( po... | 1,101,436 |
protected static String extractPort( final StringBuffer name ) { if ( name.length() < 1 || name.charAt( 0 ) != ':' ) { return null; } final int maxlen = name.length(); int pos = 1; for ( ; pos < maxlen; pos++ ) { final char ch = name.charAt( ... | protected static String extractPort( final StringBuffer name ) { if ( name.length() < 1 || name.charAt( 0 ) != ':' ) { return null; } final int maxlen = name.length(); int pos = 1; for ( ; pos < maxlen; pos++ ) { final char ch = name.charAt( ... | 1,101,437 |
protected FileObject getBaseFolder() throws Exception { topFolder = getTopFolder(); final FileObject jarFile = topFolder.resolveFile( "test.jar" ); // Now build the nested file system final FileObject nestedFS = m_manager.createFileSystem( "jar", jarFile ); return ne... | protected FileObject getBaseFolder() throws Exception { topFolder = getTopFolder(); final FileObject jarFile = topFolder.resolveFile( "test.jar" ); // Now build the nested file system final FileObject nestedFS = getManager().createFileSystem( "jar", jarFile ); return... | 1,101,438 |
protected FileObject getTopFolder() throws Exception { m_manager.addProvider( "jar", new JarFileSystemProvider() ); File jarFile = getTestResource( "nested.jar" ); String uri = "jar:" + jarFile.getAbsolutePath() + "!/"; return m_manager.resolveFile( uri ); } | protected FileObject getTopFolder() throws Exception { getManager().addProvider( "jar", new JarFileSystemProvider() ); File jarFile = getTestResource( "nested.jar" ); String uri = "jar:" + jarFile.getAbsolutePath() + "!/"; return m_manager.resolveFile( uri ); } | 1,101,439 |
protected FileObject getTopFolder() throws Exception { m_manager.addProvider( "jar", new JarFileSystemProvider() ); File jarFile = getTestResource( "nested.jar" ); String uri = "jar:" + jarFile.getAbsolutePath() + "!/"; return m_manager.resolveFile( uri ); } | protected FileObject getTopFolder() throws Exception { m_manager.addProvider( "jar", new JarFileSystemProvider() ); File jarFile = getTestResource( "nested.jar" ); String uri = "jar:" + jarFile.getAbsolutePath() + "!/"; return getManager().resolveFile( uri ); } | 1,101,440 |
public void testJarClassLoader() throws Exception { FileObject test = topFolder.resolveFile( "normal.jar" ); final FileObject[] objects = { test }; VFSClassLoader loader = new VFSClassLoader( objects, m_manager ); Class testClass = loader.loadClass( "code.ClassToLoad" ); ... | public void testJarClassLoader() throws Exception { FileObject test = topFolder.resolveFile( "normal.jar" ); final FileObject[] objects = { test }; VFSClassLoader loader = new VFSClassLoader( objects, getManager() ); Class testClass = loader.loadClass( "code.ClassToLoad" )... | 1,101,441 |
public void testJarClassLoader() throws Exception { FileObject test = topFolder.resolveFile( "normal.jar" ); final FileObject[] objects = { test }; VFSClassLoader loader = new VFSClassLoader( objects, m_manager ); Class testClass = loader.loadClass( "code.ClassToLoad" ); ... | public void testJarClassLoader() throws Exception { FileObject test = topFolder.resolveFile( "normal.jar" ); final FileObject[] objects = { test }; VFSClassLoader loader = new VFSClassLoader( objects, m_manager ); Class testClass = loader.loadClass( "code.ClassToLoad" ); ... | 1,101,442 |
public void intersect(Ray r, IntersectionState state) { float intervalMin = r.getMin(); float intervalMax = r.getMax(); float orgX = r.ox; float dirX = r.dx, invDirX = 1 / dirX; float t1, t2; t1 = (bounds.getMinimum().x - orgX) * invDirX; t2 = (bounds.getMaximum().x ... | public void intersect(Ray r, IntersectionState state) { float intervalMin = r.getMin(); float intervalMax = r.getMax(); float orgX = r.ox; float dirX = r.dx, invDirX = 1 / dirX; float t1, t2; t1 = (bounds.getMinimum().x - orgX) * invDirX; t2 = (bounds.getMaximum().x ... | 1,101,443 |
protected Object doGetAttribute( String atttrName ) throws FileSystemException { return null; } | protected Object doGetAttribute( String attrName ) throws FileSystemException { return null; } | 1,101,444 |
public void exec() { SplashWindow splashWindow = new SplashWindow(); try { String jarPath = DODDLE.class.getClassLoader().getResource("").getFile(); File file = new File(jarPath); String doddleHome = file.getParentFile().getPath() + File.separator; EDRDic.ID... | public void exec() { SplashWindow splashWindow = new SplashWindow(); try { String jarPath = DODDLE.class.getClassLoader().getResource("").getFile(); File file = new File(jarPath); String doddleHome = file.getParentFile().getPath() + File.separator; EDRDic.ID... | 1,101,445 |
public void exec() { SplashWindow splashWindow = new SplashWindow(); try { String jarPath = DODDLE.class.getClassLoader().getResource("").getFile(); File file = new File(jarPath); String doddleHome = file.getParentFile().getPath() + File.separator; EDRDic.ID... | public void exec() { SplashWindow splashWindow = new SplashWindow(); try { String jarPath = DODDLE.class.getClassLoader().getResource("").getFile(); File file = new File(jarPath); String doddleHome = file.getParentFile().getPath() + File.separator; EDRDic.ID... | 1,101,446 |
public void testParent() throws FileSystemException { // Test when both exist FileObject folder = m_baseFolder.resolveFile( "dir1" ); FileObject child = folder.resolveFile( "file3.txt" ); assertTrue( "folder exists", folder.exists() ); assertTrue( "child exists", child.exists()... | public void testParent() throws FileSystemException { // Test when both exist FileObject folder = m_baseFolder.resolveFile( "dir1" ); FileObject child = folder.resolveFile( "file3.txt" ); assertTrue( "folder exists", folder.exists() ); assertTrue( "child exists", child.exists()... | 1,101,447 |
public void testChildren() throws FileSystemException { // Check for file FileObject file = m_baseFolder.resolveFile( "file1.txt" ); assertSame( FileType.FILE, file.getType() ); try { file.getChildren(); fail(); } catch( FileSystemException e... | public void testChildren() throws FileSystemException { // Check for file FileObject file = m_baseFolder.resolveFile( "file1.txt" ); assertSame( FileType.FILE, file.getType() ); try { file.getChildren(); fail(); } catch( FileSystemException e... | 1,101,450 |
public void testChildren() throws FileSystemException { // Check for file FileObject file = m_baseFolder.resolveFile( "file1.txt" ); assertSame( FileType.FILE, file.getType() ); try { file.getChildren(); fail(); } catch( FileSystemException e... | public void testChildren() throws FileSystemException { // Check for file FileObject file = m_baseFolder.resolveFile( "file1.txt" ); assertSame( FileType.FILE, file.getType() ); try { file.getChildren(); fail(); } catch( FileSystemException e... | 1,101,451 |
public void testNoContent() throws Exception { // Try getting the content of a folder FileObject folder = m_baseFolder.resolveFile( "dir1" ); try { folder.getContent().getInputStream(); fail(); } catch( FileSystemException e ) { fi... | public void testNoContent() throws Exception { // Try getting the content of a folder FileObject folder = m_baseFolder.resolveFile( "dir1" ); try { folder.getContent().getInputStream(); fail(); } catch( FileSystemException e ) { fi... | 1,101,452 |
public void testNoContent() throws Exception { // Try getting the content of a folder FileObject folder = m_baseFolder.resolveFile( "dir1" ); try { folder.getContent().getInputStream(); fail(); } catch( FileSystemException e ) { fi... | public void testNoContent() throws Exception { // Try getting the content of a folder FileObject folder = m_baseFolder.resolveFile( "dir1" ); try { folder.getContent().getInputStream(); fail(); } catch( FileSystemException e ) { fi... | 1,101,453 |
public void testNoContent() throws Exception { // Try getting the content of a folder FileObject folder = m_baseFolder.resolveFile( "dir1" ); try { folder.getContent().getInputStream(); fail(); } catch( FileSystemException e ) { fi... | public void testNoContent() throws Exception { // Try getting the content of a folder FileObject folder = m_baseFolder.resolveFile( "dir1" ); try { folder.getContent().getInputStream(); fail(); } catch( FileSystemException e ) { fi... | 1,101,454 |
public void testNoURLContent() throws Exception { // Try getting the content of a folder FileObject folder = m_baseFolder.resolveFile( "dir1" ); try { folder.getURL().openConnection().getInputStream(); fail(); } catch( IOException e ) { ... | public void testNoURLContent() throws Exception { // Try getting the content of a folder FileObject folder = m_baseFolder.resolveFile( "dir1" ); try { folder.getURL().openConnection().getInputStream(); fail(); } catch( IOException e ) { ... | 1,101,455 |
public void testNoURLContent() throws Exception { // Try getting the content of a folder FileObject folder = m_baseFolder.resolveFile( "dir1" ); try { folder.getURL().openConnection().getInputStream(); fail(); } catch( IOException e ) { ... | public void testNoURLContent() throws Exception { // Try getting the content of a folder FileObject folder = m_baseFolder.resolveFile( "dir1" ); try { folder.getURL().openConnection().getInputStream(); fail(); } catch( IOException e ) { ... | 1,101,456 |
public void testType() throws Exception { // Test a file FileObject file = m_baseFolder.resolveFile( "file1.txt" ); assertSame( FileType.FILE, file.getType() ); // Test a folder file = m_baseFolder.resolveFile( "dir1" ); assertSame( FileType.FOLDER, file.getType() ); ... | public void testType() throws Exception { // Test a file FileObject file = m_baseFolder.resolveFile( "file1.txt" ); assertSame( FileType.FILE, file.getType() ); // Test a folder file = m_baseFolder.resolveFile( "dir1" ); assertSame( FileType.FOLDER, file.getType() ); ... | 1,101,457 |
public BezierMesh() { subdivs = 8; smooth = true; } | public BezierMesh(float[][] patches) { subdivs = 8; smooth = true; } | 1,101,458 |
private void getPatchPoint(float u, float v, double[] ctrl, float[] bu, float[] bv, float[] bdu, float[] bdv, Point3 p, Vector3 n) { double px = 0; double py = 0; double pz = 0; for (int i = 0, index = 0; i < 4; i++) { for (int j = 0; j < 4; j++, index += 3) { f... | private void getPatchPoint(float u, float v, double[] ctrl, float[] bu, float[] bv, float[] bdu, float[] bdv, Point3 p, Vector3 n) { double px = 0; double py = 0; double pz = 0; for (int i = 0, index = 0; i < 4; i++) { for (int j = 0; j < 4; j++, index += 3) { f... | 1,101,460 |
private void getPatchPoint(float u, float v, double[] ctrl, float[] bu, float[] bv, float[] bdu, float[] bdv, Point3 p, Vector3 n) { double px = 0; double py = 0; double pz = 0; for (int i = 0, index = 0; i < 4; i++) { for (int j = 0; j < 4; j++, index += 3) { f... | private void getPatchPoint(float u, float v, double[] ctrl, float[] bu, float[] bv, float[] bdu, float[] bdv, Point3 p, Vector3 n) { double px = 0; double py = 0; double pz = 0; for (int i = 0, index = 0; i < 4; i++) { for (int j = 0; j < 4; j++, index += 3) { f... | 1,101,461 |
private void getPatchPoint(float u, float v, double[] ctrl, float[] bu, float[] bv, float[] bdu, float[] bdv, Point3 p, Vector3 n) { double px = 0; double py = 0; double pz = 0; for (int i = 0, index = 0; i < 4; i++) { for (int j = 0; j < 4; j++, index += 3) { f... | private void getPatchPoint(float u, float v, double[] ctrl, float[] bu, float[] bv, float[] bdu, float[] bdv, Point3 p, Vector3 n) { double px = 0; double py = 0; double pz = 0; for (int i = 0, index = 0; i < 4; i++) { for (int j = 0; j < 4; j++, index += 3) { f... | 1,101,462 |
private void getPatchPoint(float u, float v, double[] ctrl, float[] bu, float[] bv, float[] bdu, float[] bdv, Point3 p, Vector3 n) { double px = 0; double py = 0; double pz = 0; for (int i = 0, index = 0; i < 4; i++) { for (int j = 0; j < 4; j++, index += 3) { f... | private void getPatchPoint(float u, float v, double[] ctrl, float[] bu, float[] bv, float[] bdu, float[] bdv, Point3 p, Vector3 n) { double px = 0; double py = 0; double pz = 0; for (int i = 0, index = 0; i < 4; i++) { for (int j = 0; j < 4; j++, index += 3) { f... | 1,101,463 |
public BoundingBox getWorldBounds(Matrix4 o2w) { double[][] patchData = getPatches(); BoundingBox bounds = new BoundingBox(); if (o2w == null) { for (int i = 0; i < patchData.length; i++) { double[] patch = patchData[i]; for (int j = 0; j < patch.length;... | public BoundingBox getWorldBounds(Matrix4 o2w) { BoundingBox bounds = new BoundingBox(); if (o2w == null) { for (int i = 0; i < patchData.length; i++) { double[] patch = patchData[i]; for (int j = 0; j < patch.length; j += 3) bounds.i... | 1,101,464 |
public BoundingBox getWorldBounds(Matrix4 o2w) { double[][] patchData = getPatches(); BoundingBox bounds = new BoundingBox(); if (o2w == null) { for (int i = 0; i < patchData.length; i++) { double[] patch = patchData[i]; for (int j = 0; j < patch.length;... | public BoundingBox getWorldBounds(Matrix4 o2w) { double[][] patchData = getPatches(); BoundingBox bounds = new BoundingBox(); if (o2w == null) { for (int i = 0; i < patchData.length; i++) { double[] patch = patchData[i]; for (int j = 0; j < patch.length;... | 1,101,465 |
public BoundingBox getWorldBounds(Matrix4 o2w) { double[][] patchData = getPatches(); BoundingBox bounds = new BoundingBox(); if (o2w == null) { for (int i = 0; i < patchData.length; i++) { double[] patch = patchData[i]; for (int j = 0; j < patch.length;... | public BoundingBox getWorldBounds(Matrix4 o2w) { double[][] patchData = getPatches(); BoundingBox bounds = new BoundingBox(); if (o2w == null) { for (int i = 0; i < patchData.length; i++) { double[] patch = patchData[i]; for (int j = 0; j < patch.length;... | 1,101,466 |
public BoundingBox getWorldBounds(Matrix4 o2w) { double[][] patchData = getPatches(); BoundingBox bounds = new BoundingBox(); if (o2w == null) { for (int i = 0; i < patchData.length; i++) { double[] patch = patchData[i]; for (int j = 0; j < patch.length;... | public BoundingBox getWorldBounds(Matrix4 o2w) { double[][] patchData = getPatches(); BoundingBox bounds = new BoundingBox(); if (o2w == null) { for (int i = 0; i < patchData.length; i++) { double[] patch = patchData[i]; for (int j = 0; j < patch.length;... | 1,101,467 |
public PrimitiveList tesselate() { double[][] patchData = getPatches(); float[] vertices = new float[patchData.length * (subdivs + 1) * (subdivs + 1) * 3]; float[] normals = smooth ? new float[patchData.length * (subdivs + 1) * (subdivs + 1) * 3] : null; float[] uvs = new float[patchData... | public PrimitiveList tesselate() { double[][] patchData = getPatches(); float[] vertices = new float[patchData.length * (subdivs + 1) * (subdivs + 1) * 3]; float[] normals = smooth ? new float[patchData.length * (subdivs + 1) * (subdivs + 1) * 3] : null; float[] uvs = new float[patchData... | 1,101,468 |
public PrimitiveList tesselate() { double[][] patchData = getPatches(); float[] vertices = new float[patchData.length * (subdivs + 1) * (subdivs + 1) * 3]; float[] normals = smooth ? new float[patchData.length * (subdivs + 1) * (subdivs + 1) * 3] : null; float[] uvs = new float[patchData... | public PrimitiveList tesselate() { double[][] patchData = getPatches(); float[] vertices = new float[patchData.length * (subdivs + 1) * (subdivs + 1) * 3]; float[] normals = smooth ? new float[patchData.length * (subdivs + 1) * (subdivs + 1) * 3] : null; float[] uvs = new float[patchData... | 1,101,469 |
public void intersect(Ray r, IntersectionState state) { float intervalMin = r.getMin(); float intervalMax = r.getMax(); float orgX = r.ox; float dirX = r.dx, invDirX = 1 / dirX; float t1, t2; t1 = (bounds.getMinimum().x - orgX) * invDirX; t2 = (bounds.getMaximum().x ... | public void intersect(Ray r, IntersectionState state) { float intervalMin = r.getMin(); float intervalMax = r.getMax(); float orgX = r.ox; float dirX = r.dx, invDirX = 1 / dirX; float t1, t2; t1 = (bounds.getMinimum().x - orgX) * invDirX; t2 = (bounds.getMaximum().x ... | 1,101,470 |
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof BundleDelegatingClassLoader)) return false; final BundleDelegatingClassLoader bundleDelegatingClassLoader = (BundleDelegatingClassLoader) o; if (backingBundle.equals(bundleDelegatingClassLoader.backingBundle)) return (parent == ... | public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof BundleDelegatingClassLoader)) return false; final BundleDelegatingClassLoader bundleDelegatingClassLoader = (BundleDelegatingClassLoader) o; if (backingBundle.equals(bundleDelegatingClassLoader.backingBundle)) return (parent == ... | 1,101,472 |
protected Class findClass(String name) throws ClassNotFoundException { try { return this.backingBundle.loadClass(name); } catch (ClassNotFoundException ex) { return parent.loadClass(name); } } | protected Class findClass(String name) throws ClassNotFoundException { try { try { return this.backingBundle.loadClass(name); } catch (ClassNotFoundException ex) { return parent.loadClass(name); } } catch (ClassNotFoundException ex) { return parent.loadClass(name); } } | 1,101,473 |
protected Class findClass(String name) throws ClassNotFoundException { try { return this.backingBundle.loadClass(name); } catch (ClassNotFoundException ex) { return parent.loadClass(name); } } | protected Class findClass(String name) throws ClassNotFoundException { try { return this.backingBundle.loadClass(name); } catch (ClassNotFoundException ex) { return parent.loadClass(name); } } | 1,101,474 |
public static void encode(final StringBuffer buffer, final int offset, final int length, final char[] reserved) { int index = offset; int count = length; for (; count > 0; index++, count--) { ... | public static void encode(final StringBuffer buffer, final int offset, final int length, final char[] reserved) { int index = offset; int count = length; for (; count > 0; index++, count--) { ... | 1,101,475 |
public static void encode(final StringBuffer buffer, final int offset, final int length, final char[] reserved) { int index = offset; int count = length; for (; count > 0; index++, count--) { ... | public static void encode(final StringBuffer buffer, final int offset, final int length, final char[] reserved) { int index = offset; int count = length; for (; count > 0; index++, count--) { ... | 1,101,476 |
public static void encode(final StringBuffer buffer, final int offset, final int length, final char[] reserved) { int index = offset; int count = length; for (; count > 0; index++, count--) { ... | public static void encode(final StringBuffer buffer, final int offset, final int length, final char[] reserved) { int index = offset; int count = length; for (; count > 0; index++, count--) { ... | 1,101,477 |
private Object compile(final Resource content, final boolean query) { Object ctx = objectCache.get(content); if (ctx == null) { ScriptEvaluator evaluator = new ScriptEvaluator(); //Exception are not required to be handled evaluator.setThrownExceptions(THROWN_EXCEPTIONS... | private Object compile(final Resource content, final boolean query) { Object ctx = objectCache.get(content); if (ctx == null) { ScriptEvaluator evaluator = new ScriptEvaluator(); //Exception are not required to be handled evaluator.setThrownExceptions(THROWN_EXCEPTIONS... | 1,101,478 |
private Object compile(final Resource content, final boolean query) { Object ctx = objectCache.get(content); if (ctx == null) { ScriptEvaluator evaluator = new ScriptEvaluator(); //Exception are not required to be handled evaluator.setThrownExceptions(THROWN_EXCEPTIONS... | private Object compile(final Resource content, final boolean query) { Object ctx = objectCache.get(content); if (ctx == null) { ScriptEvaluator evaluator = new ScriptEvaluator(); //Exception are not required to be handled evaluator.setThrownExceptions(THROWN_EXCEPTIONS... | 1,101,479 |
private void parseObjectBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); Shader[] shaders = null; boolean multiShader = false; if (p.peekNextToken("shaders")) { int n = p.getNextInt(); shaders = new Shader[n]; for (int i ... | private void parseObjectBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); Shader[] shaders = null; boolean multiShader = false; if (p.peekNextToken("shaders")) { int n = p.getNextInt(); shaders = new Shader[n]; for (int i ... | 1,101,480 |
private void parseObjectBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); Shader[] shaders = null; boolean multiShader = false; if (p.peekNextToken("shaders")) { int n = p.getNextInt(); shaders = new Shader[n]; for (int i ... | private void parseObjectBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); Shader[] shaders = null; boolean multiShader = false; if (p.peekNextToken("shaders")) { int n = p.getNextInt(); shaders = new Shader[n]; for (int i ... | 1,101,481 |
private boolean parseShader(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("name"); String name = p.getNextToken(); UI.printInfo("[API] Reading shader: %s ...", name); p.checkNextToken("type"); if (p.peekNextToken("diffuse")) {... | private boolean parseShader(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("name"); String name = p.getNextToken(); UI.printInfo("[API] Reading shader: %s ...", name); p.checkNextToken("type"); if (p.peekNextToken("diffuse")) {... | 1,101,482 |
public void test() throws ScriptsExecutorException, ClassNotFoundException { int n = drivers.length; //just to make sure properties are valid assertTrue(n == urls.length && n == users.length && n == passwords.length); ScriptsExecutor se = newScriptsExecutor(); Map<String,String> p... | public void test() throws ScriptsExecutorException, ClassNotFoundException { int n = drivers.length; //just to make sure properties are valid assertTrue(n == urls.length && n == users.length && n == passwords.length); ScriptsExecutor se = newScriptsExecutor(); Map<String,String> p... | 1,101,483 |
public void test() throws ScriptsExecutorException, ClassNotFoundException { int n = drivers.length; //just to make sure properties are valid assertTrue(n == urls.length && n == users.length && n == passwords.length); ScriptsExecutor se = newScriptsExecutor(); Map<String,String> p... | public void test() throws ScriptsExecutorException, ClassNotFoundException { int n = drivers.length; //just to make sure properties are valid assertTrue(n == urls.length && n == users.length && n == passwords.length); ScriptsExecutor se = newScriptsExecutor(); Map<String,String> p... | 1,101,484 |
public File allocateFile(final String baseName) { // Create a unique-ish file name final String basename = baseName + "_" + filecount + ".tmp"; filecount++; final File file = new File(tempDir, basename); // Keep track to delete later copies.add(file); return file;... | public File allocateFile(final String baseName) { // Create a unique-ish file name final String basename = createFilename(baseName); filecount++; final File file = new File(tempDir, basename); // Keep track to delete later copies.add(file); return file; } | 1,101,486 |
public File allocateFile(final String baseName) { // Create a unique-ish file name final String basename = baseName + "_" + filecount + ".tmp"; filecount++; final File file = new File(tempDir, basename); // Keep track to delete later copies.add(file); return file;... | public File allocateFile(final String baseName) { // Create a unique-ish file name final String basename = baseName + "_" + filecount + ".tmp"; filecount++; final File file = createFile(tempDir, basename); // Keep track to delete later copies.add(file); return fil... | 1,101,487 |
public FtpClient getClient() throws FileSystemException { if (idleClient == null || !idleClient.isConnected()) { idleClient = new FTPClientWrapper((GenericFileName) getRoot().getName(), getFileSystemOptions()); return idleClient; /* final GenericFileName ... | public FtpClient getClient() throws FileSystemException { synchronized(idleClientSync) { idleClient = new FTPClientWrapper((GenericFileName) getRoot().getName(), getFileSystemOptions()); return idleClient; /* final GenericFileName rootName = (GenericFileN... | 1,101,488 |
public FtpClient getClient() throws FileSystemException { if (idleClient == null || !idleClient.isConnected()) { idleClient = new FTPClientWrapper((GenericFileName) getRoot().getName(), getFileSystemOptions()); return idleClient; /* final GenericFileName ... | public FtpClient getClient() throws FileSystemException { if (idleClient == null || !idleClient.isConnected()) { idleClient = new FTPClientWrapper((GenericFileName) getRoot().getName(), getFileSystemOptions()); return idleClient; /* final GenericFileName ... | 1,101,489 |
public FtpClient getClient() throws FileSystemException { if (idleClient == null || !idleClient.isConnected()) { idleClient = new FTPClientWrapper((GenericFileName) getRoot().getName(), getFileSystemOptions()); return idleClient; /* final GenericFileName ... | public FtpClient getClient() throws FileSystemException { if (idleClient == null || !idleClient.isConnected()) { idleClient = new FTPClientWrapper((GenericFileName) getRoot().getName(), getFileSystemOptions()); return idleClient; /* final GenericFileName ... | 1,101,490 |
public void putClient(final FtpClient client) { if (idleClient == null) { // Hang on to client for later idleClient = client; } else { // Close the client closeConnection(client); } } | public void putClient(final FtpClient client) { synchronized(idleClientSync) { // Hang on to client for later idleClient = client; } else { // Close the client closeConnection(client); } } | 1,101,491 |
public void putClient(final FtpClient client) { if (idleClient == null) { // Hang on to client for later idleClient = client; } else { // Close the client closeConnection(client); } } | public void putClient(final FtpClient client) { if (idleClient == null) { // Hang on to client for later idleClient = client; } else { // Close the client closeConnection(client); } } | 1,101,492 |
private String[] getMandatoryBundles() { return new String[] { getCommonLibUrl(), getSpringCoreBundleUrl(), getSpringOSGiTestBundleUrl() }; } | private String[] getMandatoryBundles() { return new String[] { getJUnitLibUrl(), getLog4jLibUrl(), getCommonsLoggingLibUrl(), getSpringCoreBundleUrl(), getSpringOSGiTestBundleUrl() }; } | 1,101,493 |
private static String getSpringCoreBundleUrl() { return localMavenBundle("org.springframework", "spring-core", "2.1"); } | private static String getSpringCoreBundleUrl() { return localMavenBundle("org.springframework.osgi", "spring-core", "2.1-SNAPSHOT"); } | 1,101,494 |
private static String getSpringOSGiTestBundleUrl() { return localMavenBundle("org.springframework", "spring-osgi-test", "2.1"); } | private static String getSpringOSGiTestBundleUrl() { return localMavenBundle("org.springframework.osgi", "org.springframework.osgi.test", "1.0-SNAPSHOT"); } | 1,101,495 |
private void shutdownTest() { cleanupStreams(); log.info("shuting down OSGi platform"); if (osgiPlatform != null) { try { osgiPlatform.stop(); } catch (Exception ex) { // swallow log.warn("shutdown procedure threw exception " + ex); } osgiPlatform = null; } } | private void shutdownTest() { cleanupStreams(); log.info("shutting down OSGi platform"); if (osgiPlatform != null) { try { osgiPlatform.stop(); } catch (Exception ex) { // swallow log.warn("shutdown procedure threw exception " + ex); } osgiPlatform = null; } } | 1,101,496 |
private void startup() throws Exception { if (osgiPlatform == null) { // make sure the platform is closed properly registerShutdownHook(); log.info("initializing OSGi platform..."); osgiPlatform = createPlatform(); // start platform osgiPlatform.start(); context = osgiPlatform.getBundleContext(); /... | private void startup() throws Exception { if (osgiPlatform == null) { // make sure the platform is closed properly registerShutdownHook(); log.info("initializing OSGi platform..."); osgiPlatform = createPlatform(); // start platform osgiPlatform.start(); context = osgiPlatform.getBundleContext(); /... | 1,101,497 |
private void fireEvent(final AbstractFileChangeEvent event) { synchronized (listenerMap) { final FileObject file = event.getFile(); final ArrayList listeners = (ArrayList) listenerMap.get(file.getName()); if (listeners != null) { final int ... | private void fireEvent(final AbstractFileChangeEvent event) { synchronized (listenerMap) { final FileObject file = event.getFile(); final ArrayList listeners = (ArrayList) listenerMap.get(file.getName()); if (listeners != null) { final int ... | 1,101,498 |
private void fireEvent(final AbstractFileChangeEvent event) { synchronized (listenerMap) { final FileObject file = event.getFile(); final ArrayList listeners = (ArrayList) listenerMap.get(file.getName()); if (listeners != null) { final int ... | private void fireEvent(final AbstractFileChangeEvent event) { synchronized (listenerMap) { final FileObject file = event.getFile(); final ArrayList listeners = (ArrayList) listenerMap.get(file.getName()); if (listeners != null) { final int ... | 1,101,499 |
private void fireEvent(final AbstractFileChangeEvent event) { synchronized (listenerMap) { final FileObject file = event.getFile(); final ArrayList listeners = (ArrayList) listenerMap.get(file.getName()); if (listeners != null) { final int ... | private void fireEvent(final AbstractFileChangeEvent event) { synchronized (listenerMap) { final FileObject file = event.getFile(); final ArrayList listeners = (ArrayList) listenerMap.get(file.getName()); if (listeners != null) { final int ... | 1,101,500 |
public void actionPerformed(ActionEvent e) { JFileChooser chooser = new JFileChooser(DODDLE.PROJECT_DIR); chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); int retval = chooser.showOpenDialog(DODDLE.rootPane); if (retval != JFileChooser.APPROVE_OPTION) { return; } openD... | public void actionPerformed(ActionEvent e) { JFileChooser chooser = new JFileChooser(DODDLE.PROJECT_DIR); chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); int retval = chooser.showOpenDialog(DODDLE.rootPane); if (retval != JFileChooser.APPROVE_OPTION) { return; } openD... | 1,101,501 |
public void actionPerformed(ActionEvent e) { JFileChooser chooser = new JFileChooser(DODDLE.PROJECT_DIR); chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); int retval = chooser.showOpenDialog(DODDLE.rootPane); if (retval != JFileChooser.APPROVE_OPTION) { return; } openD... | public void actionPerformed(ActionEvent e) { JFileChooser chooser = new JFileChooser(DODDLE.PROJECT_DIR); chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); int retval = chooser.showOpenDialog(DODDLE.rootPane); if (retval != JFileChooser.APPROVE_OPTION) { return; } openD... | 1,101,502 |
TriangleLight(int tri) { tri3 = 3 * tri; Point3 v0p = getPoint(triangles[3 * tri + 0]); Point3 v1p = getPoint(triangles[3 * tri + 1]); Point3 v2p = getPoint(triangles[3 * tri + 2]); ng = Vector3.cross(Point3.sub(v1p, v0p, new Vector3()), Point3.sub(v2p, v0p... | TriangleLight(int tri) { tri3 = 3 * tri; Point3 v0p = getPoint(triangles[3 * tri + 0]); Point3 v1p = getPoint(triangles[3 * tri + 1]); Point3 v2p = getPoint(triangles[3 * tri + 2]); ng = Vector3.cross(Point3.sub(v1p, v0p, new Vector3()), Point3.sub(v2p, v0p... | 1,101,503 |
public void getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) { double s = Math.sqrt(1 - randX2); float u = (float) (randY2 * s); float v = (float) (1 - s); float w = 1 - u - v; int index0 = 3 * triang... | public void getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) { double s = Math.sqrt(1 - randX2); float u = (float) (randY2 * s); float v = (float) (1 - s); float w = 1 - u - v; int index0 = 3 * triang... | 1,101,504 |
public void getSample(int i, ShadingState state, LightSample dest) { // random offset on unit square double randX = state.getRandom(i, 0); double randY = state.getRandom(i, 1); float s = (float) Math.sqrt(1 - randX); float u = (float) randY * s; ... | public void getSample(int i, ShadingState state, LightSample dest) { // random offset on unit square double randX = state.getRandom(i, 0); double randY = state.getRandom(i, 1); float s = (float) Math.sqrt(1 - randX); float u = (float) randY * s; ... | 1,101,505 |
public boolean isVisible(ShadingState state) { Point3 p = state.getPoint(); Vector3 n = state.getNormal(); Vector3 sub = new Vector3(); Point3 v0p = getPoint(triangles[tri3 + 0]); Point3.sub(v0p, p, sub); if ((Vector3.dot(sub, n) > 0.0) || (Vecto... | public boolean isVisible(ShadingState state) { Point3 p = state.getPoint(); Vector3 n = state.getNormal(); Vector3 sub = new Vector3(); int a, b, c; if (triangles == null) { a = tri3 + 0; b = tri3 + 1; c = tri3 + 2; } else { a = triangles[tri3 + 0]; b = triangles[tr... | 1,101,506 |
public boolean isVisible(ShadingState state) { Point3 p = state.getPoint(); Vector3 n = state.getNormal(); Vector3 sub = new Vector3(); Point3 v0p = getPoint(triangles[tri3 + 0]); Point3.sub(v0p, p, sub); if ((Vector3.dot(sub, n) > 0.0) || (Vecto... | public boolean isVisible(ShadingState state) { Point3 p = state.getPoint(); Vector3 n = state.getNormal(); Vector3 sub = new Vector3(); Point3 v0p = getPoint(triangles[tri3 + 0]); Point3.sub(v0p, p, sub); if ((Vector3.dot(sub, n) > 0.0) || (Vecto... | 1,101,507 |
public boolean isVisible(ShadingState state) { Point3 p = state.getPoint(); Vector3 n = state.getNormal(); Vector3 sub = new Vector3(); Point3 v0p = getPoint(triangles[tri3 + 0]); Point3.sub(v0p, p, sub); if ((Vector3.dot(sub, n) > 0.0) || (Vecto... | public boolean isVisible(ShadingState state) { Point3 p = state.getPoint(); Vector3 n = state.getNormal(); Vector3 sub = new Vector3(); Point3 v0p = getPoint(triangles[tri3 + 0]); Point3.sub(v0p, p, sub); if ((Vector3.dot(sub, n) > 0.0) || (Vecto... | 1,101,508 |
public boolean parse(String filename, SunflowAPI api) { try { UI.printInfo("[RA3] Reading geometry: \"%s\" ...", filename); File file = new File(filename); FileInputStream stream = new FileInputStream(filename); MappedByteBuffer map = stream.getChannel().map(FileCh... | public boolean parse(String filename, SunflowAPI api) { try { UI.printInfo("[RA3] Reading geometry: \"%s\" ...", filename); File file = new File(filename); FileInputStream stream = new FileInputStream(filename); MappedByteBuffer map = stream.getChannel().map(FileCh... | 1,101,510 |
public ZipFileObject( FileName name, ZipEntry entry, ZipFile zipFile, ZipFileSystem fs ) { super( name, fs ); type = FileType.FILE; this.entry = entry; file = zipFile; } | public ZipFileObject( FileName name, ZipEntry entry, ZipFile zipFile, ZipFileSystem fs ) { super( name, fs ); type = FileType.FILE; this.entry = entry; file = zipFile; } | 1,101,512 |
public void testOracleHint() throws IOException { String original = "SQL /*+ HINT */ --NOTAHINT \n\r /* +NOTAHINT*/"; SqlTokenizer tok = new SqlTokenizer(new StringReader(original)); assertEquals("SQL /*+ HINT */ \n ",tok.nextStatement().toString()); assertNull(tok.nextStatement()); ... | public void testOracleHint() throws IOException { String original = "SQL /*+ HINT */ --NOTAHINT \n\r /* +NOTAHINT*/"; SqlTokenizer tok = new SqlTokenizer(new StringReader(original)); assertEquals("SQL /*+ HINT */ \n ",tok.nextStatement().toString()); assertNull(tok.nextStatement()); ... | 1,101,514 |
public void testOracleHint() throws IOException { String original = "SQL /*+ HINT */ --NOTAHINT \n\r /* +NOTAHINT*/"; SqlTokenizer tok = new SqlTokenizer(new StringReader(original)); assertEquals("SQL /*+ HINT */ \n ",tok.nextStatement().toString()); assertNull(tok.nextStatement()); ... | public void testOracleHint() throws IOException { String original = "SQL /*+ HINT */ --NOTAHINT \n\r /* +NOTAHINT*/"; SqlTokenizer tok = new SqlTokenizer(new StringReader(original)); assertEquals("SQL /*+ HINT */ \n ",tok.nextStatement().toString()); assertNull(tok.nextStatement()); ... | 1,101,515 |
protected OsgiPlatform createPlatform() { String platformName = getPlatformName(); if (platformName != null) { platformName = platformName.toLowerCase(); if (platformName.contains(FELIX_PLATFORM)) return new FelixPlatform(); if (platformName.contains(KNOPFLERFISH_PLATFORM)) return new KnopflerfishPlatfor... | protected OsgiPlatform createPlatform() { String platformName = getPlatformName(); if (platformName != null) { platformName = platformName.toLowerCase(); if (platformName.contains(FELIX_PLATFORM)) return new FelixPlatform(); if (platformName.contains(KNOPFLERFISH_PLATFORM)) return new KnopflerfishPlatfor... | 1,101,516 |
protected OsgiPlatform createPlatform() { String platformName = getPlatformName(); if (platformName != null) { platformName = platformName.toLowerCase(); if (platformName.contains(FELIX_PLATFORM)) return new FelixPlatform(); if (platformName.contains(KNOPFLERFISH_PLATFORM)) return new KnopflerfishPlatfor... | protected OsgiPlatform createPlatform() { String platformName = getPlatformName(); if (platformName != null) { platformName = platformName.toLowerCase(); if (platformName.contains(FELIX_PLATFORM)) return new FelixPlatform(); if (platformName.contains(KNOPFLERFISH_PLATFORM)) return new KnopflerfishPlatfor... | 1,101,517 |
public void actionPerformed(ActionEvent e) { if (e.getSource() == searchField || e.getSource() == searchButton) { String searchRegex = searchField.getText(); if (searchRegex.length() == 0) { undefinedWordJList.setModel(undefinedWordListModel); } else { ... | public void actionPerformed(ActionEvent e) { if (e.getSource() == searchField || e.getSource() == searchButton) { String searchRegex = searchField.getText(); if (searchRegex.length() == 0) { undefinedWordJList.setModel(undefinedWordListModel); } else { ... | 1,101,519 |
public void actionPerformed(ActionEvent e) { if (e.getSource() == searchField || e.getSource() == searchButton) { String searchRegex = searchField.getText(); if (searchRegex.length() == 0) { undefinedWordJList.setModel(undefinedWordListModel); } else { ... | public void actionPerformed(ActionEvent e) { if (e.getSource() == searchField || e.getSource() == searchButton) { String searchRegex = searchField.getText(); if (searchRegex.length() == 0) { undefinedWordJList.setModel(undefinedWordListModel); } else { ... | 1,101,520 |
protected String localMavenBuildArtifact(String artifactId, String version) { try { File found = new MavenPackagedArtifactFinder(artifactId, version).findPackagedArtifact(new File(".")); String path = found.toURL().toExternalForm(); System.out.println("found local maven artifact " + path + " for " + artifactId ... | protected String localMavenBuildArtifact(String artifactId, String version) { try { File found = new MavenPackagedArtifactFinder(artifactId, version).findPackagedArtifact(new File(".")); String path = found.toURL().toExternalForm(); System.out.println("found local maven artifact " + path + " for " + artifactId ... | 1,101,521 |
public void initDataWithDB(Set<String> iwSet, DODDLEProject p) { project = p; wordSet = iwSet; inputWordModelSet = new TreeSet<InputWordModel>(); undefinedWordSet = new TreeSet<String>(); wordConceptSetMap = new HashMap<String, Set<Concept>>(); TransactionRunner runner = ne... | public void initDataWithDB(Set<String> iwSet, DODDLEProject p) { project = p; wordSet = iwSet; inputWordModelSet = new TreeSet<InputWordModel>(); undefinedWordSet = new TreeSet<String>(); wordConceptSetMap = new HashMap<String, Set<Concept>>(); TransactionRunner runner = ne... | 1,101,522 |
public void doWork() throws Exception { DODDLE.STATUS_BAR.startTime(); DODDLE.STATUS_BAR.initNormal(wordSet.size()); Set<String> matchedWordSet = new HashSet<String>(); for (String word : wordSet) { InputW... | public void doWork() throws Exception { DODDLE.STATUS_BAR.startTime(); DODDLE.STATUS_BAR.initNormal(wordSet.size()); Set<String> matchedWordSet = new HashSet<String>(); for (String word : wordSet) { InputW... | 1,101,524 |
public static void main(final String args[]) { Handler h = new ConsoleHandler(); h.setFormatter(STD_FORMATTER); h.setLevel(Level.INFO); boolean failed = false; List<File> files = new ArrayList<File>(); ConsoleProgressIndicator indicator = new ConsoleProgressIndicator("Execu... | public static void main(final String args[]) { Handler h = new ConsoleHandler(); h.setFormatter(STD_FORMATTER); h.setLevel(Level.INFO); boolean failed = false; List<File> files = new ArrayList<File>(); ConsoleProgressIndicator indicator = new ConsoleProgressIndicator("Execu... | 1,101,526 |
public void loadOption(File file) { if (!file.exists()) { return; } try { InputStream is = new FileInputStream(file); BufferedReader reader = new BufferedReader(new InputStreamReader(is, "SJIS")); String option = reader.readLine(); String[] ambiguityOptions ... | public void loadOption(File file, DisambiguationPanel disambiguationPanel) { if (!file.exists()) { return; } try { InputStream is = new FileInputStream(file); BufferedReader reader = new BufferedReader(new InputStreamReader(is, "SJIS")); String option = reader.readLine... | 1,101,527 |
public void loadOption(File file) { if (!file.exists()) { return; } try { InputStream is = new FileInputStream(file); BufferedReader reader = new BufferedReader(new InputStreamReader(is, "SJIS")); String option = reader.readLine(); String[] ambiguityOptions ... | public void loadOption(File file) { if (!file.exists()) { return; } try { InputStream is = new FileInputStream(file); BufferedReader reader = new BufferedReader(new InputStreamReader(is, "SJIS")); String option = reader.readLine(); String[] ambiguityOptions ... | 1,101,528 |
public void loadOption(File file) { if (!file.exists()) { return; } try { InputStream is = new FileInputStream(file); BufferedReader reader = new BufferedReader(new InputStreamReader(is, "SJIS")); String option = reader.readLine(); String[] ambiguityOptions ... | public void loadOption(File file) { if (!file.exists()) { return; } try { InputStream is = new FileInputStream(file); BufferedReader reader = new BufferedReader(new InputStreamReader(is, "SJIS")); String option = reader.readLine(); String[] ambiguityOptions ... | 1,101,529 |
public void saveOption(File file) { try { OutputStream os = new FileOutputStream(file); BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(os, "SJIS")); StringBuffer buf = new StringBuffer(); buf.append(ambiguitySiblingCheckBox.isSelected() + ","); ... | public void saveOption(File file, DisambiguationPanel disambiguationPanel) { try { OutputStream os = new FileOutputStream(file); BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(os, "SJIS")); StringBuffer buf = new StringBuffer(); buf.append(ambigu... | 1,101,530 |
public void saveOption(File file) { try { OutputStream os = new FileOutputStream(file); BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(os, "SJIS")); StringBuffer buf = new StringBuffer(); buf.append(ambiguitySiblingCheckBox.isSelected() + ","); ... | public void saveOption(File file) { try { OutputStream os = new FileOutputStream(file); BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(os, "SJIS")); StringBuffer buf = new StringBuffer(); buf.append(ambiguitySiblingCheckBox.isSelected() + ","); ... | 1,101,531 |
public Object deepCopy(Object value) { AFTime time = (AFTime)value; return new AFTime(time.getTime()); } | public Object deepCopy(Object value) { if(value == null) return null; AFTime time = (AFTime)value; return new AFTime(time.getTime()); } | 1,101,532 |
public void test() { PropertiesSubstitutor ps = new PropertiesSubstitutor(new ParametersCallback() { public Object getParameter(final String name) { return name; } }); char [] fillC = new char[1000]; Arrays.fill(fillC,'-'); String fill = new St... | public void test() { PropertiesSubstitutor ps = new PropertiesSubstitutor(new ParametersCallback() { public Object getParameter(final String name) { return name; } }); char [] fillC = new char[1000]; Arrays.fill(fillC,'-'); String fill = new St... | 1,101,533 |
public void actionPerformed(ActionEvent e) { JFileChooser chooser = new JFileChooser(DODDLE.PROJECT_DIR); chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); int retval = chooser.showOpenDialog(DODDLE.rootPane); if (retval != JFileChooser.APPROVE_OPTION) { return; } openD... | public void actionPerformed(ActionEvent e) { JFileChooser chooser = new JFileChooser(DODDLE.PROJECT_DIR); chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); int retval = chooser.showOpenDialog(DODDLE.rootPane); if (retval != JFileChooser.APPROVE_OPTION) { return; } openD... | 1,101,534 |
public void run() { try { DODDLE.STATUS_BAR.setLastMessage("プロジェクト復元完了"); DODDLE.STATUS_BAR.startTime(); DODDLE.STATUS_BAR.initNormal(16); DODDLE.STATUS_BAR.lock(); DODDLEProject project = new DODDL... | public void run() { try { DODDLE.STATUS_BAR.setLastMessage("プロジェクト復元完了"); DODDLE.STATUS_BAR.startTime(); DODDLE.STATUS_BAR.initNormal(17); DODDLE.STATUS_BAR.lock(); DODDLEProject project = new DODDL... | 1,101,536 |
public void testDelegatingBad() throws Throwable { FileSystemOptions opts = new FileSystemOptions(); DelegatingFileSystemOptionsBuilder delgate = new DelegatingFileSystemOptionsBuilder(fsm); try { delgate.setConfigString(opts, "http", "proxyPort", "wrong_port"); ... | public void testDelegatingBad() throws Throwable { FileSystemOptions opts = new FileSystemOptions(); DelegatingFileSystemOptionsBuilder delgate = new DelegatingFileSystemOptionsBuilder(fsm); try { delgate.setConfigString(opts, "http", "proxyPort", "wrong_port"); ... | 1,101,538 |
public void close() { // Delete the temporary files while ( copies.size() > 0 ) { final FileObject file = (FileObject)copies.remove( 0 ); try { file.delete( FileConstants.SELECT_ALL ); } catch ( final FileSystemException e... | public void close() { // Delete the temporary files while ( copies.size() > 0 ) { final FileObject file = (FileObject)copies.remove( 0 ); try { file.delete( FileConstants.SELECT_ALL ); } catch ( final FileSystemException e... | 1,101,539 |
protected void addCapabilities( final Collection caps ) { caps.add( Capability.CREATE ); caps.add( Capability.DELETE ); caps.add( Capability.GET_TYPE ); caps.add( Capability.LAST_MODIFIED ); caps.add( Capability.LIST_CHILDREN ); caps.add( Capability.READ_CONTENT ); ... | protected void addCapabilities( final Collection caps ) { caps.add( Capability.CREATE ); caps.add( Capability.DELETE ); caps.add( Capability.GET_TYPE ); caps.add( Capability.GET_LAST_MODIFIED ); caps.add( Capability.SET_LAST_MODIFIED ); caps.add( Capability.LIST_CHILDREN ); ... | 1,101,540 |
protected FileObject getBaseFolder() throws Exception { final File testDir = getTestResource( "basedir" ); final File emptyDir = new File( testDir, "emptydir" ); emptyDir.mkdirs(); return m_manager.convert( testDir ); } | protected FileObject getBaseFolder() throws Exception { final File testDir = getTestResource( "basedir" ); final File emptyDir = new File( testDir, "emptydir" ); emptyDir.mkdirs(); return getManager().convert( testDir ); } | 1,101,542 |
protected FileObject getWriteFolder() throws Exception { final File testDir = getTestDirectory( "write-tests" ); return m_manager.convert( testDir ); } | protected FileObject getWriteFolder() throws Exception { final File testDir = getTestDirectory( "write-tests" ); return getManager().convert( testDir ); } | 1,101,543 |
public void testAbsoluteFileName() throws Exception { // Locate file by absolute file name String fileName = new File( "testdir" ).getAbsolutePath(); FileObject absFile = m_manager.resolveFile( fileName ); // Locate file by URI String uri = "file://" + fileName.replace( File.se... | public void testAbsoluteFileName() throws Exception { // Locate file by absolute file name String fileName = new File( "testdir" ).getAbsolutePath(); FileObject absFile = getManager().resolveFile( fileName ); // Locate file by URI String uri = "file://" + fileName.replace( File... | 1,101,544 |
public void testAbsoluteFileName() throws Exception { // Locate file by absolute file name String fileName = new File( "testdir" ).getAbsolutePath(); FileObject absFile = m_manager.resolveFile( fileName ); // Locate file by URI String uri = "file://" + fileName.replace( File.se... | public void testAbsoluteFileName() throws Exception { // Locate file by absolute file name String fileName = new File( "testdir" ).getAbsolutePath(); FileObject absFile = m_manager.resolveFile( fileName ); // Locate file by URI String uri = "file://" + fileName.replace( File.se... | 1,101,545 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.