bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public int getDepth() { final int len = absPath.length(); if ( len == 0 || ( len == 1 && absPath.charAt( 0 ) == separatorChar ) ) { return 0; } int depth = 1; for ( int pos = 0; pos > -1 && pos < len; depth++ ) { pos = absPath.indexOf( separa...
public int getDepth() { final int len = absPath.length(); if ( len == 0 || ( len == 1 && absPath.charAt( 0 ) == SEPARATOR_CHAR ) ) { return 0; } int depth = 1; for ( int pos = 0; pos > -1 && pos < len; depth++ ) { pos = absPath.indexOf( separ...
1,101,092
public int getDepth() { final int len = absPath.length(); if ( len == 0 || ( len == 1 && absPath.charAt( 0 ) == separatorChar ) ) { return 0; } int depth = 1; for ( int pos = 0; pos > -1 && pos < len; depth++ ) { pos = absPath.indexOf( separa...
public int getDepth() { final int len = absPath.length(); if ( len == 0 || ( len == 1 && absPath.charAt( 0 ) == separatorChar ) ) { return 0; } int depth = 1; for ( int pos = 0; pos > -1 && pos < len; depth++ ) { pos = absPath.indexOf( SEPARA...
1,101,093
public FileName getParent() { final String parentPath; final int idx = absPath.lastIndexOf( separatorChar ); if ( idx == -1 || idx == absPath.length() - 1 ) { // No parent return null; } else if ( idx == 0 ) { // Root is the parent...
public FileName getParent() { final String parentPath; final int idx = absPath.lastIndexOf( SEPARATOR_CHAR ); if ( idx == -1 || idx == absPath.length() - 1 ) { // No parent return null; } else if ( idx == 0 ) { // Root is the paren...
1,101,094
public FileName getParent() { final String parentPath; final int idx = absPath.lastIndexOf( separatorChar ); if ( idx == -1 || idx == absPath.length() - 1 ) { // No parent return null; } else if ( idx == 0 ) { // Root is the parent...
public FileName getParent() { final String parentPath; final int idx = absPath.lastIndexOf( separatorChar ); if ( idx == -1 || idx == absPath.length() - 1 ) { // No parent return null; } else if ( idx == 0 ) { // Root is the parent...
1,101,095
public String getRelativeName( final FileName name ) throws FileSystemException { final String path = name.getPath(); // Calculate the common prefix final int basePathLen = absPath.length(); final int pathLen = path.length(); // Deal with root if ( basePathLen == 1 && pa...
public String getRelativeName( final FileName name ) throws FileSystemException { final String path = name.getPath(); // Calculate the common prefix final int basePathLen = absPath.length(); final int pathLen = path.length(); // Deal with root if ( basePathLen == 1 && pa...
1,101,096
public String getRelativeName( final FileName name ) throws FileSystemException { final String path = name.getPath(); // Calculate the common prefix final int basePathLen = absPath.length(); final int pathLen = path.length(); // Deal with root if ( basePathLen == 1 && pa...
public String getRelativeName( final FileName name ) throws FileSystemException { final String path = name.getPath(); // Calculate the common prefix final int basePathLen = absPath.length(); final int pathLen = path.length(); // Deal with root if ( basePathLen == 1 && pa...
1,101,097
public String getRelativeName( final FileName name ) throws FileSystemException { final String path = name.getPath(); // Calculate the common prefix final int basePathLen = absPath.length(); final int pathLen = path.length(); // Deal with root if ( basePathLen == 1 && pa...
public String getRelativeName( final FileName name ) throws FileSystemException { final String path = name.getPath(); // Calculate the common prefix final int basePathLen = absPath.length(); final int pathLen = path.length(); // Deal with root if ( basePathLen == 1 && pa...
1,101,098
public String getRelativeName( final FileName name ) throws FileSystemException { final String path = name.getPath(); // Calculate the common prefix final int basePathLen = absPath.length(); final int pathLen = path.length(); // Deal with root if ( basePathLen == 1 && pa...
public String getRelativeName( final FileName name ) throws FileSystemException { final String path = name.getPath(); // Calculate the common prefix final int basePathLen = absPath.length(); final int pathLen = path.length(); // Deal with root if ( basePathLen == 1 && pa...
1,101,099
public FileName resolveName( final String name, final NameScope scope ) throws FileSystemException { final StringBuffer buffer = new StringBuffer( name ); // Adjust separators UriParser.fixSeparators( buffer ); // Determine whether to prepend the...
public FileName resolveName( final String name, final NameScope scope ) throws FileSystemException { final StringBuffer buffer = new StringBuffer( name ); // Adjust separators UriParser.fixSeparators( buffer ); // Determine whether to prepend the...
1,101,100
public FileName resolveName( final String name, final NameScope scope ) throws FileSystemException { final StringBuffer buffer = new StringBuffer( name ); // Adjust separators UriParser.fixSeparators( buffer ); // Determine whether to prepend the...
public FileName resolveName( final String name, final NameScope scope ) throws FileSystemException { final StringBuffer buffer = new StringBuffer( name ); // Adjust separators UriParser.fixSeparators( buffer ); // Determine whether to prepend the...
1,101,101
List<Pattern[]> compileQueries(final Reader reader) { CSVReader r = new CSVReader(reader);//Parsing rules for queries are always default List<String[]> list; try { list = r.readAll(); } catch (IOException e) { throw new CsvProviderException("Unable to read CSV query...
List<Pattern[]> compileQueries(final Reader reader) { CSVReader r = new CSVReader(reader);//Parsing rules for queries are always default List<String[]> list; try { list = r.readAll(); } catch (IOException e) { throw new CsvProviderException("Unable to read CSV query...
1,101,102
List<Pattern[]> compileQueries(final Reader reader) { CSVReader r = new CSVReader(reader);//Parsing rules for queries are always default List<String[]> list; try { list = r.readAll(); } catch (IOException e) { throw new CsvProviderException("Unable to read CSV query...
List<Pattern[]> compileQueries(final Reader reader) { CSVReader r = new CSVReader(reader);//Parsing rules for queries are always default List<String[]> list; try { list = r.readAll(); } catch (IOException e) { throw new CsvProviderException("Unable to read CSV query...
1,101,103
public void execute(Reader queryReader, ParametersCallback parametersCallback, QueryCallback queryCallback) throws IOException { substitutor.setParameters(parametersCallback); List<Pattern[]> patterns = compileQueries(queryReader); columnsMap = new ColumnsMap(); if (headers) { ...
public void execute(Reader queryReader, ParametersCallback parametersCallback, QueryCallback queryCallback) throws IOException { substitutor.setParameters(parametersCallback); List<Pattern[]> patterns = compileQueries(queryReader); columnsMap = new ColumnsMap(); if (headers) { ...
1,101,104
public void execute(Reader queryReader, ParametersCallback parametersCallback, QueryCallback queryCallback) throws IOException { substitutor.setParameters(parametersCallback); List<Pattern[]> patterns = compileQueries(queryReader); columnsMap = new ColumnsMap(); if (headers) { ...
public void execute(Reader queryReader, ParametersCallback parametersCallback, QueryCallback queryCallback) throws IOException { substitutor.setParameters(parametersCallback); List<Pattern[]> patterns = compileQueries(queryReader); columnsMap = new ColumnsMap(); if (headers) { ...
1,101,105
public Object getParameter(final String name) { if (name == null) { throw new IllegalArgumentException("Parameter name cannot be null"); } if (reader == null) { throw new IllegalStateException("CSV Resultset is closed"); } Integer col = columnsMap.find(name);...
public Object getParameter(final String name) { if (name == null) { throw new IllegalArgumentException("Parameter name cannot be null"); } if (reader == null) { throw new IllegalStateException("CSV Resultset is closed"); } Integer col = columnsMap.find(name);...
1,101,106
protected void constructProxy() throws Exception { Object service = null; ServiceReference reference = null; final Class serviceInterface = getInterface(); final String filter = getFilterStringForServiceLookup(); // Lookup the initial service for (int i = 0; i < retryTimes;...
protected void constructProxy() throws Exception { Object service = null; ServiceReference reference = null; final Class serviceInterface = getInterface(); final String filter = getFilterStringForServiceLookup(); // Lookup the initial service for (int i = 0; i < retryTimes;...
1,101,107
public StringBuffer formatLocation(StringBuffer sb, Location loc, StrandedFeature.Strand strand) { // Using arbitrary leader and wrapwidth wide enough to always // make one line return formatL...
public StringBuffer formatLocation(StringBuffer sb, Location loc, StrandedFeature.Strand strand) { // Using arbitrary leader and wrapwidth wide enough to always // make one line return formatL...
1,101,108
public StringBuffer formatLocation(StringBuffer sb, Location loc, StrandedFeature.Strand strand) { // Using arbitrary leader and wrapwidth wide enough to always // make one line return formatL...
public StringBuffer formatLocation(StringBuffer sb, Location loc, StrandedFeature.Strand strand) { // Using arbitrary leader and wrapwidth wide enough to always // make one line String formatt...
1,101,109
protected FileSystem createFileSystem( final ParsedUri uri ) throws FileSystemException { final ParsedZipUri zipUri = (ParsedZipUri)uri; final FileObject file = zipUri.getZipFile(); // Make a local copy of the file final File zipFile = file.replicateFile( FileConstants.SELECT_S...
protected FileSystem createFileSystem( final ParsedUri uri ) throws FileSystemException { final ParsedZipUri zipUri = (ParsedZipUri)uri; final FileObject file = zipUri.getZipFile(); // Make a local copy of the file final File zipFile = file.replicateFile( FileConstants.SELECT_S...
1,101,110
public ProxyAdapter(Class... interfaces) { proxy = (T) Proxy.newProxyInstance(getClass().getClassLoader(), interfaces, new InvocationHandler() { public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Method m; try { //De...
public ProxyAdapter(Class... interfaces) { proxy = (T) Proxy.newProxyInstance(getClass().getClassLoader(), interfaces, new InvocationHandler() { public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Method m; try { //De...
1,101,111
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Method m; try { //Determine if the method has been defined in a subclass m = ProxyAdapter.this.getClass().getMethod(method.getName(), method.getParameterTyp...
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { Method m; try { //Determine if the method has been defined in a subclass m = ProxyAdapter.this.getClass().getMethod(method.getName(), method.getParameterTyp...
1,101,112
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,113
public AbstractVfsTestCase( final String name ) { super( name ); final String baseDirProp = System.getProperty( "test.basedir" ); m_baseDir = getCanonicalFile( new File( baseDirProp ) ); }
public AbstractVfsTestCase( final String name ) { super( name ); final String baseDirProp = System.getProperty( "test.basedir" ); baseDir = getCanonicalFile( new File( baseDirProp ) ); }
1,101,114
protected File getTestDirectory() { return m_baseDir; }
protected File getTestDirectory() { return baseDir; }
1,101,115
private void initSunSky() { // perform all the required initialization of constants sunDirWorld.normalize(); sunDir = basis.untransform(sunDirWorld, new Vector3()); sunDir.normalize(); sunTheta = (float) Math.acos(MathUtils.clamp(sunDir.z, -1, 1)); if (sunDir.z > 0) { ...
private void initSunSky() { // perform all the required initialization of constants sunDirWorld.normalize(); sunDir = basis.untransform(sunDirWorld, new Vector3()); sunDir.normalize(); sunTheta = (float) Math.acos(MathUtils.clamp(sunDir.z, -1, 1)); if (sunDir.z > 0) { ...
1,101,116
public FileName resolveName(final FileName base, final String name, final NameScope scope) throws FileSystemException { final FileName realBase; if (base != null && VFS.isUriStyle() && base.getType() == FileType.FILE) { realBase = base.getParent(); } else { realBase = base; } final StringBuffer buffer = ...
public FileName resolveName(final FileName base, final String name, final NameScope scope) throws FileSystemException { final FileName realBase; if (base != null && VFS.isUriStyle() && base.getType() == FileType.FILE) { realBase = base.getParent(); } else { realBase = base; } final StringBuffer buffer = ...
1,101,117
public FileName resolveName(final FileName base, final String name, final NameScope scope) throws FileSystemException { final FileName realBase; if (base != null && VFS.isUriStyle() && base.getType() == FileType.FILE) { realBase = base.getParent(); } else { realBase = base; } final StringBuffer buffer = ...
public FileName resolveName(final FileName base, final String name, final NameScope scope) throws FileSystemException { final FileName realBase; if (base != null && VFS.isUriStyle() && base.getType() == FileType.FILE) { realBase = base.getParent(); } else { realBase = base; } final StringBuffer buffer = ...
1,101,118
public void actionPerformed(ActionEvent e) { new ConstructTreeAction(true, DODDLE.getCurrentProject()).constructTree(); }
public void actionPerformed(ActionEvent e) { SwingWorker<String, String> worker = new SwingWorker<String, String>() { public String doInBackground() { new ConstructTreeAction(true, DODDLE.getCurrentProject()).constructTree(); return "done"; } }; DODDLE.STATUS_BAR.setSwingWorker(worker); worker.execute(); ...
1,101,119
protected NamingEnumeration<SearchResult> query(final LdapConnection connection, final String filter) throws NamingException { return connection.getCtx().search("", filter, connection.getSearchControls()); }
protected NamingEnumeration<SearchResult> query(final LdapConnection connection, final String filter) throws NamingException { return connection.getCtx().search(connection.getBaseDn(), filter, connection.getSearchControls()); }
1,101,120
private void createGeometry() { // light source parameter("source", new Point3(-15.5945f, -30.0581f, 45.967f)); parameter("dir", new Vector3(15.5945f, 30.0581f, -45.967f)); parameter("radius", 60.0f); parameter("radiance", Color.white().mul(3)); light("light", new Direction...
private void createGeometry() { // light source parameter("source", new Point3(-15.5945f, -30.0581f, 45.967f)); parameter("dir", new Vector3(15.5945f, 30.0581f, -45.967f)); parameter("radius", 60.0f); parameter("radiance", Color.white().mul(3)); light("light", new Direction...
1,101,121
public Connection connect(ConnectionParameters connectionParameters) { return new JaninoConnection(); }
public Connection connect(ConnectionParameters connectionParameters) { return new JaninoConnection(connectionParameters); }
1,101,122
public void prepare(DefaultFileSystemManager manager) throws Exception { manager.addProvider(new String[]{"res", "file"}, new UrlFileProvider()); }
public void prepare(DefaultFileSystemManager manager) throws Exception { manager.addProvider("res", new ResourceFileProvider()); manager.addProvider("file", new UrlFileProvider()); manager.addProvider("jar", new JarFileProvider()); }
1,101,123
public JDBCConnection(Connection con, ConnectionParameters parameters) { super(parameters); if (con == null) { throw new IllegalArgumentException("Connection cannot be null"); } this.con = con; init(parameters); try { con.setAutoCommit(false); }...
public JDBCConnection(Connection con, ConnectionParameters parameters) { super(parameters); if (con == null) { throw new IllegalArgumentException("Connection cannot be null"); } this.con = con; init(parameters); try { con.setAutoCommit(false); }...
1,101,124
public void testGetBundleName() { String symbolicName = "symbolic"; bundleCtrl.reset(); bundleCtrl.expectAndReturn(bundle.getSymbolicName(), symbolicName, MockControl.ONE_OR_MORE); bundleCtxCtrl.replay(); bundleCtrl.replay(); // check default createContext(); assertEquals(symbolicName, xmlContext.getBundleName...
public void testGetBundleName() { String symbolicName = "symbolic"; bundleCtrl.expectAndReturn(bundle.getSymbolicName(), symbolicName, MockControl.ONE_OR_MORE); bundleCtxCtrl.replay(); bundleCtrl.replay(); // check default createContext(); assertEquals(symbolicName, xmlContext.getBundleName()); }
1,101,127
public JDBCConnection(Connection con, ConnectionParameters parameters) { if (con==null) { throw new IllegalArgumentException("Connection cannot be null"); } this.con = con; init(parameters); try { con.setAutoCommit(false); } catch (SQLException e) { ...
public JDBCConnection(Connection con, ConnectionParameters parameters) { super(parameters); if (con == null) { throw new IllegalArgumentException("Connection cannot be null"); } this.con = con; init(parameters); try { con.setAutoCommit(false); } catch ...
1,101,128
public void executeQuery(Resource queryContent, ParametersCallback parametersCallback, QueryCallback queryCallback) { Query q = new Query(queryContent); prepare(q); q.execute(con, parametersCallback, queryCallback); }
public void executeQuery(Resource queryContent, ParametersCallback parametersCallback, QueryCallback queryCallback) { Query q = new Query(queryContent); q.setConnection(this); q.execute(con, parametersCallback, queryCallback); }
1,101,129
public void executeScript(Resource scriptContent, ParametersCallback parametersCallback) { Script s = new Script(scriptContent); prepare(s); s.execute(con, parametersCallback); }
public void executeScript(Resource scriptContent, ParametersCallback parametersCallback) { Script s = new Script(scriptContent); s.setConnection(this); s.execute(con, parametersCallback); }
1,101,130
protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) { BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(VirtualBundleFactoryBean.class); NamedNodeMap attributes = element.getAttributes(); for (int x = 0; x < attributes.getLength(); x++) { Attr attrib...
protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) { BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(VirtualBundleFactoryBean.class); NamedNodeMap attributes = element.getAttributes(); for (int x = 0; x < attributes.getLength(); x++) { Attr attrib...
1,101,131
protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) { BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(VirtualBundleFactoryBean.class); NamedNodeMap attributes = element.getAttributes(); for (int x = 0; x < attributes.getLength(); x++) { Attr attrib...
protected AbstractBeanDefinition parseInternal(Element element, ParserContext parserContext) { BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(VirtualBundleFactoryBean.class); NamedNodeMap attributes = element.getAttributes(); for (int x = 0; x < attributes.getLength(); x++) { Attr attrib...
1,101,132
public void getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) { p.x = (float) (lxmin * (1 - randX2) + lxmax * randX2); p.y = (float) (lymin * (1 - randY2) + lymax * randY2); p.z = maxZ; double u = 2 * Math.PI * randX1; double...
public void getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power) { p.x = (float) (lxmin * (1 - randX2) + lxmax * randX2); p.y = (float) (lymin * (1 - randY2) + lymax * randY2); p.z = maxZ - 0.001f; double u = 2 * Math.PI * randX1; ...
1,101,133
public void getSample(int i, ShadingState state, LightSample dest) { // random offset on unit square, we use the infinite version of // getRandom // because the light sampling is adaptive double randX = state.getRandom(i, 0); double randY = state.getRandom(i, 1); Point3 p =...
public void getSample(int i, ShadingState state, LightSample dest) { // random offset on unit square, we use the infinite version of // getRandom // because the light sampling is adaptive double randX = state.getRandom(i, 0); double randY = state.getRandom(i, 1); Point3 p =...
1,101,134
public void moveTo(FileObject destFile) throws FileSystemException { if (canRenameTo(destFile)) { if (!getParent().isWriteable()) { throw new FileSystemException("vfs.provider/rename-parent-read-only.error", new FileName[]{getName(), getParent().getName()}); ...
public void moveTo(FileObject destFile) throws FileSystemException { if (canRenameTo(destFile)) { if (!getParent().isWriteable()) { throw new FileSystemException("vfs.provider/rename-parent-read-only.error", new FileName[]{getName(), getParent().getName()}); ...
1,101,135
public void createFolder() throws FileSystemException { attach(); if ( type == FileType.FOLDER ) { // Already exists as correct type return; } if ( type != null ) { throw new FileSystemException( "vfs.provider/create-folder-mismatched-typ...
public void createFolder() throws FileSystemException { attach(); if ( type == FileType.FOLDER ) { // Already exists as correct type return; } if ( type != null ) { throw new FileSystemException( "vfs.provider/create-folder-mismatched-typ...
1,101,136
public FileObject[] getChildren() throws FileSystemException { attach(); if ( type == null ) { throw new FileSystemException( "vfs.provider/list-children-no-exist.error", name ); } if ( type != FileType.FOLDER ) { throw new FileSystemException( "vfs...
public FileObject[] getChildren() throws FileSystemException { attach(); if ( type == null ) { throw new FileSystemException( "vfs.provider/list-children-no-exist.error", name ); } if ( type != FileType.FOLDER ) { throw new FileSystemException( "vfs...
1,101,137
public FileObject[] getChildren() throws FileSystemException { attach(); if ( type == null ) { throw new FileSystemException( "vfs.provider/list-children-no-exist.error", name ); } if ( type != FileType.FOLDER ) { throw new FileSystemException( "vfs...
public FileObject[] getChildren() throws FileSystemException { attach(); if ( type == null ) { throw new FileSystemException( "vfs.provider/list-children-no-exist.error", name ); } if ( type != FileType.FOLDER ) { throw new FileSystemException( "vfs...
1,101,138
protected void handleCreate( final FileType newType ) throws Exception { // Fix up state type = newType; children = EMPTY_FILE_ARRAY; // Notify parent that its child list may no longer be valid notifyParent(); // Notify subclass onChange(); // Notify the fi...
protected void handleCreate( final FileType newType ) throws Exception { // Fix up state type = newType; children = EMPTY_FILE_ARRAY; // Notify parent that its child list may no longer be valid notifyParent(); // Notify subclass onChange(); // Notify the fi...
1,101,139
protected void handleCreate( final FileType newType ) throws Exception { // Fix up state type = newType; children = EMPTY_FILE_ARRAY; // Notify parent that its child list may no longer be valid notifyParent(); // Notify subclass onChange(); // Notify the fi...
protected void handleCreate( final FileType newType ) throws Exception { // Fix up state type = newType; children = EMPTY_FILE_ARRAY; // Notify parent that its child list may no longer be valid notifyParent(); // Notify subclass // Notify the file system ...
1,101,140
protected void handleDelete() throws Exception { // Fix up state type = null; children = null; // Notify parent that its child list may no longer be valid notifyParent(); // Notify subclass onChange(); // Notify the file system fs.fireFileDeleted( th...
protected void handleDelete() throws Exception { // Fix up state type = null; children = null; // Notify parent that its child list may no longer be valid notifyParent(); // Notify subclass onChange(); // Notify the file system fs.fireFileDeleted( th...
1,101,141
protected void handleDelete() throws Exception { // Fix up state type = null; children = null; // Notify parent that its child list may no longer be valid notifyParent(); // Notify subclass onChange(); // Notify the file system fs.fireFileDeleted( th...
protected void handleDelete() throws Exception { // Fix up state type = null; children = null; // Notify parent that its child list may no longer be valid notifyParent(); // Notify subclass // Notify the file system fs.fireFileDeleted( this ); }
1,101,142
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); api.parameter("gi.irr-cache.samples", p.getNextInt()); p.checkNextTo...
1,101,143
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
1,101,144
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
1,101,145
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
1,101,146
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
1,101,147
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
1,101,148
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); api.parameter("gi.path.samples", p.getNextInt()); p.checkNextToken("...
1,101,149
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
1,101,150
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
1,101,151
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
1,101,152
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
1,101,153
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); api.parameter("gi.igi.samples", p.getNextInt()); p.checkNextToken("t...
1,101,154
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
1,101,155
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
1,101,156
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
1,101,157
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
1,101,158
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
1,101,159
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
1,101,160
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
1,101,161
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
private void parseGIBlock(SunflowAPI api) throws ParserException, IOException { p.checkNextToken("{"); p.checkNextToken("type"); if (p.peekNextToken("irr-cache")) { p.checkNextToken("samples"); int samples = p.getNextInt(); p.checkNextToken("tolerance"); ...
1,101,162
private void parsePhotonBlock(SunflowAPI api) throws ParserException, IOException { String type; int gather; float radius; int numEmit = 0; boolean globalEmit = false; p.checkNextToken("{"); if (p.peekNextToken("emit")) { UI.printWarning(Module.API, "Share...
private void parsePhotonBlock(SunflowAPI api) throws ParserException, IOException { String type; int gather; float radius; int numEmit = 0; boolean globalEmit = false; p.checkNextToken("{"); if (p.peekNextToken("emit")) { UI.printWarning(Module.API, "Share...
1,101,163
private void parsePhotonBlock(SunflowAPI api) throws ParserException, IOException { String type; int gather; float radius; int numEmit = 0; boolean globalEmit = false; p.checkNextToken("{"); if (p.peekNextToken("emit")) { UI.printWarning(Module.API, "Share...
private void parsePhotonBlock(SunflowAPI api) throws ParserException, IOException { String type; int gather; float radius; int numEmit = 0; boolean globalEmit = false; p.checkNextToken("{"); if (p.peekNextToken("emit")) { UI.printWarning(Module.API, "Share...
1,101,164
public boolean build(AggregateTraceable primitives) { this.primitives = primitives; n = primitives.numPrimitives(); bounds = primitives.getWorldBounds(null); return true; }
public boolean build(PrimitiveList primitives) { this.primitives = primitives; n = primitives.numPrimitives(); bounds = primitives.getWorldBounds(null); return true; }
1,101,165
public boolean build(AggregateTraceable primitives) { this.primitives = primitives; n = primitives.numPrimitives(); bounds = primitives.getWorldBounds(null); return true; }
public boolean build(AggregateTraceable primitives) { this.primitives = primitives; n = primitives.getNumPrimitives(); bounds = primitives.getWorldBounds(null); return true; }
1,101,166
public void intersect(Ray r, Instance parent, IntersectionState state) { for (int i = 0; i < n; i++) primitives.intersectPrimitive(r, parent, i, state); }
public void intersect(Ray r, IntersectionState state) { for (int i = 0; i < n; i++) primitives.intersectPrimitive(r, parent, i, state); }
1,101,167
public void intersect(Ray r, Instance parent, IntersectionState state) { for (int i = 0; i < n; i++) primitives.intersectPrimitive(r, parent, i, state); }
public void intersect(Ray r, Instance parent, IntersectionState state) { for (int i = 0; i < n; i++) primitives.intersectPrimitive(r, i, state); }
1,101,168
public AFTime getEffortEstimate() { return this.effortEstimate; //TODO }
public AFTime getEffortEstimate() { return null; //TODO }
1,101,169
public void prepareShadingState(ShadingState state) { state.init(); Instance parent = state.getInstance(); int primID = state.getPrimitiveID(); float u = state.getU(); float v = state.getV(); float w = 1 - u - v; state.getRay().getPoint(state.getPoint()); int ...
public void prepareShadingState(ShadingState state) { state.init(); Instance parent = state.getInstance(); int primID = state.getPrimitiveID(); float u = state.getU(); float v = state.getV(); float w = 1 - u - v; state.getRay().getPoint(state.getPoint()); int ...
1,101,170
public void prepareShadingState(ShadingState state) { state.init(); Instance parent = state.getInstance(); int primID = state.getPrimitiveID(); float u = state.getU(); float v = state.getV(); float w = 1 - u - v; state.getRay().getPoint(state.getPoint()); int ...
public void prepareShadingState(ShadingState state) { state.init(); Instance parent = state.getInstance(); int primID = state.getPrimitiveID(); float u = state.getU(); float v = state.getV(); float w = 1 - u - v; state.getRay().getPoint(state.getPoint()); int ...
1,101,171
public void prepareShadingState(ShadingState state) { state.init(); Instance parent = state.getInstance(); int primID = state.getPrimitiveID(); float u = state.getU(); float v = state.getV(); float w = 1 - u - v; state.getRay().getPoint(state.getPoint()); int ...
public void prepareShadingState(ShadingState state) { state.init(); Instance parent = state.getInstance(); int primID = state.getPrimitiveID(); float u = state.getU(); float v = state.getV(); float w = 1 - u - v; state.getRay().getPoint(state.getPoint()); int ...
1,101,172
public void close() { // Release the zip file try { if ( zipFile != null ) { zipFile.close(); } } catch ( final IOException e ) { final String message = REZ.getString( "close-zip-file.error", file ); g...
public void close() { // Release the zip file try { if ( zipFile != null ) { zipFile.close(); } } catch ( final IOException e ) { final String message = REZ.getString( "close-zip-file.error", file ); g...
1,101,173
protected ZipFile createZipFile( File file ) throws FileSystemException { try { return new ZipFile( file ); } catch ( IOException ioe ) { final String message = REZ.getString( "open-zip-file.error", file ); throw new FileSystemException( message...
protected ZipFile createZipFile( File file ) throws FileSystemException { try { return new ZipFile( file ); } catch ( IOException ioe ) { final String message = REZ.getString( "open-zip-file.error", file ); throw new FileSystemException( message...
1,101,174
public boolean update(ParameterList pl, SunflowAPI api) { String[] shaders = pl.getStringArray("shaders"); if (shaders != null) { this.shaders = new Shader[shaders.length]; for (int i = 0; i < shaders.length; i++) this.shaders[i] = api.shader(shaders[i]); } ...
public boolean update(ParameterList pl, SunflowAPI api) { String[] shaders = pl.getStringArray("shaders"); if (shaders != null) { this.shaders = new Shader[shaders.length]; for (int i = 0; i < shaders.length; i++) this.shaders[i] = api.lookupShader(shaders[i]); ...
1,101,175
public static ServiceReference[] getAllServices(BundleContext context, Class serviceClass, String filter) throws IllegalArgumentException { try { ServiceReference[] serviceReferences = context.getAllServiceReferences(serviceClass.getName(),filter); return serviceReferences; } catch (Inv...
public static ServiceReference[] getAllServices(BundleContext context, Class serviceClass, String filter) throws IllegalArgumentException { try { ServiceReference[] serviceReferences = context.getAllServiceReferences(serviceClass.getName(),filter); return serviceReferences; } catch (Inv...
1,101,177
public static ServiceReference[] getServices(BundleContext context, Class serviceClass, String filter) throws IllegalArgumentException { try { ServiceReference[] serviceReferences = context.getServiceReferences(serviceClass.getName(),filter); return serviceReferences; } catch (InvalidSyntaxException ex) {...
public static ServiceReference[] getServices(BundleContext context, Class serviceClass, String filter) throws IllegalArgumentException { try { ServiceReference[] serviceReferences = context.getServiceReferences(serviceClass.getName(),filter); return serviceReferences; } catch (InvalidSyntaxException ex) {...
1,101,178
public void actionPerformed(ActionEvent e) { ListPanel listPanel = (ListPanel)tab.getSelectedComponent(); Vector selected = listPanel.getSelected(); Vector selection = listPanel.getSelection(); /** sparar snittlistan som webbsida */ if(e.getSource() == saveToHTML) { if(selected.size() != 0) { fileCho...
public void actionPerformed(ActionEvent e) { ListPanel listPanel = (ListPanel)tab.getSelectedComponent(); Vector selected = listPanel.getSelected(); /** sparar snittlistan som webbsida */ if(e.getSource() == saveToHTML) { if(selected.size() != 0) { fileChooser.setCurrentDirectory(SearchWindow.DIRSNI...
1,101,179
private void createStream() throws IOException { if (dis != null) { return; } final GetMethod getMethod = new GetMethod(); fileObject.setupMethod(getMethod); getMethod.setRequestHeader("Range", "bytes=" + filePointer + "-"); final int status = fileSyste...
private void createStream() throws IOException { if (dis != null) { return; } final GetMethod getMethod = new GetMethod(); fileObject.setupMethod(getMethod); getMethod.setRequestHeader("Range", "bytes=" + filePointer + "-"); final int status = fileSyste...
1,101,180
public boolean readBoolean() throws IOException { createStream(); boolean data = dis.readBoolean(); filePointer += mis.getCount(); return data; }
public boolean readBoolean() throws IOException { createStream(); boolean data = dis.readBoolean(); return data; }
1,101,181
public byte readByte() throws IOException { createStream(); byte data = dis.readByte(); filePointer += mis.getCount(); return data; }
public byte readByte() throws IOException { createStream(); byte data = dis.readByte(); return data; }
1,101,182
public char readChar() throws IOException { createStream(); char data = dis.readChar(); filePointer += mis.getCount(); return data; }
public char readChar() throws IOException { createStream(); char data = dis.readChar(); return data; }
1,101,183
public double readDouble() throws IOException { createStream(); double data = dis.readDouble(); filePointer += mis.getCount(); return data; }
public double readDouble() throws IOException { createStream(); double data = dis.readDouble(); return data; }
1,101,184
public float readFloat() throws IOException { createStream(); float data = dis.readFloat(); filePointer += mis.getCount(); return data; }
public float readFloat() throws IOException { createStream(); float data = dis.readFloat(); return data; }
1,101,185
public void readFully(byte b[]) throws IOException { createStream(); dis.readFully(b); filePointer += mis.getCount(); }
public void readFully(byte b[]) throws IOException { createStream(); dis.readFully(b); }
1,101,186
public int readInt() throws IOException { createStream(); int data = dis.readInt(); filePointer += mis.getCount(); return data; }
public int readInt() throws IOException { createStream(); int data = dis.readInt(); return data; }
1,101,187
public long readLong() throws IOException { createStream(); long data = dis.readLong(); filePointer += mis.getCount(); return data; }
public long readLong() throws IOException { createStream(); long data = dis.readLong(); return data; }
1,101,188
public short readShort() throws IOException { createStream(); short data = dis.readShort(); filePointer += mis.getCount(); return data; }
public short readShort() throws IOException { createStream(); short data = dis.readShort(); return data; }
1,101,189
public String readUTF() throws IOException { createStream(); String data = dis.readUTF(); filePointer += mis.getCount(); return data; }
public String readUTF() throws IOException { createStream(); String data = dis.readUTF(); return data; }
1,101,190
public int readUnsignedByte() throws IOException { createStream(); int data = dis.readUnsignedByte(); filePointer += mis.getCount(); return data; }
public int readUnsignedByte() throws IOException { createStream(); int data = dis.readUnsignedByte(); return data; }
1,101,191
public int readUnsignedShort() throws IOException { createStream(); int data = dis.readUnsignedShort(); filePointer += mis.getCount(); return data; }
public int readUnsignedShort() throws IOException { createStream(); int data = dis.readUnsignedShort(); return data; }
1,101,192
public void seek(long pos) throws IOException { if (pos == 0) { // no change return; } if (pos < 0) { throw new FileSystemException("vfs.provider/random-access-invalid-position.error", new Object[] { ...
public void seek(long pos) throws IOException { if (pos == filePointer) { // no change return; } if (pos < 0) { throw new FileSystemException("vfs.provider/random-access-invalid-position.error", new Object[] { ...
1,101,193
public int skipBytes(int n) throws IOException { createStream(); int data = dis.skipBytes(n); filePointer += mis.getCount(); return data; }
public int skipBytes(int n) throws IOException { createStream(); int data = dis.skipBytes(n); return data; }
1,101,194