bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public static IRubyObject print(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { args = new IRubyObject[] { recv.getRuntime().getLastline()}; } IRubyObject fs = recv.getRuntime().getGlobalVar("$,"); IRubyObject rs = recv.getRuntime().getGlobalVar("$\\"); ...
public static IRubyObject print(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { args = new IRubyObject[] { recv.getRuntime().getLastline()}; } IRubyObject fs = recv.getRuntime().getGlobalVar("$,"); IRubyObject rs = recv.getRuntime().getGlobalVar("$\\"); ...
3,231,766
public static IRubyObject print(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { args = new IRubyObject[] { recv.getRuntime().getLastline()}; } IRubyObject fs = recv.getRuntime().getGlobalVar("$,"); IRubyObject rs = recv.getRuntime().getGlobalVar("$\\"); ...
public static IRubyObject print(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { args = new IRubyObject[] { recv.getRuntime().getLastline()}; } IRubyObject fs = recv.getRuntime().getGlobalVar("$,"); IRubyObject rs = recv.getRuntime().getGlobalVar("$\\"); ...
3,231,767
public void setHierarchyRoots(Set roots, boolean flat);
public void setHierarchyRoots(Set roots, boolean flat);
3,231,768
public static void createClassClass(RubyClass classClass) { classClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyClass.class, "newInstance")); classClass.defineMethod("new", CallbackFactory.getOptMethod(RubyClass.class, "newInstance")); classClass.defineMethod("supe...
public static void createClassClass(RubyClass classClass) { classClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyClass.class, "newInstance")); classClass.defineMethod("new", CallbackFactory.getOptMethod(RubyClass.class, "newInstance")); classClass.defineMethod("supe...
3,231,769
protected static void runInterpreter(String iString2Eval, String iFileName, String[] args) { // Initialize Runtime Ruby ruby = new Ruby(); if (sRegexpAdapter == null) { try { sRegexpAdapter = Class.forName("org.jruby.regexp.GNURegexpAdapter"); } catch (Excep...
protected static void runInterpreter(String iString2Eval, String iFileName, String[] args) { // Initialize Runtime Ruby ruby = new Ruby(); if (sRegexpAdapter == null) { try { sRegexpAdapter = Class.forName("org.jruby.regexp.GNURegexpAdapter"); } catch (Excep...
3,231,770
public void load(File file) throws XmlException, IOException{ ArticleDocument articleDoc; articleDoc = ArticleDocument.Factory.parse(file); ArticleDocument.Article article = articleDoc.getArticle();// ArticleItemBean articleBean = new ArticleItemBean(); setHeadline(article.getHeadline()); setBod...
public void load(File file) throws XmlException, IOException{ ArticleDocument articleDoc; articleDoc = ArticleDocument.Factory.parse(file); ArticleDocument.Article article = articleDoc.getArticle();// ArticleItemBean articleBean = new ArticleItemBean(); setHeadline(article.getHeadline()); setBod...
3,231,771
public void load(File file) throws XmlException, IOException{ ArticleDocument articleDoc; articleDoc = ArticleDocument.Factory.parse(file); ArticleDocument.Article article = articleDoc.getArticle();// ArticleItemBean articleBean = new ArticleItemBean(); setHeadline(article.getHeadline()); setBod...
public void load(File file) throws XmlException, IOException{ ArticleDocument articleDoc; articleDoc = ArticleDocument.Factory.parse(file); ArticleDocument.Article article = articleDoc.getArticle();// ArticleItemBean articleBean = new ArticleItemBean(); setHeadline(article.getHeadline()); setBod...
3,231,772
public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; ...
public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; ...
3,231,774
public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; ...
public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; ...
3,231,775
public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; ...
public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; ...
3,231,776
public static final String createToolTip(String text) { final String htmlColor = toHTMLColor(TOOLTIP_COLOR); final String toolTip = "<html><table bgColor=" + htmlColor + "><tr><td>" + text + "</td></tr></table></table>"; return toolTip; }
public static final String createToolTip(String text, int width) { final String htmlColor = toHTMLColor(TOOLTIP_COLOR); final String toolTip = "<html><table bgColor=" + htmlColor + "><tr><td>" + text + "</td></tr></table></table>"; return toolTip; }
3,231,777
public static final String createToolTip(String text) { final String htmlColor = toHTMLColor(TOOLTIP_COLOR); final String toolTip = "<html><table bgColor=" + htmlColor + "><tr><td>" + text + "</td></tr></table></table>"; return toolTip; }
public static final String createToolTip(String text) { final String htmlColor = toHTMLColor(TOOLTIP_COLOR); final String toolTip = "<html><table width=" + width + " bgColor=" + htmlColor + "><tr><td>" + text + "</td></tr></table></table>"; return toolTip; }
3,231,778
private static short[] combine(short[] t1, short[] t2) { short[] t = new short[t1.length + t2.length]; System.arraycopy(t1, 0, t, 0, t1.length); System.arraycopy(t2, 0, t, t1.length, t2.length); return t; }
private static short[] combine(short[] t1, short[] t2) { short[] t = new short[t1.length + t2.length]; System.arraycopy(t1, 0, t, 0, t1.length); System.arraycopy(t2, 0, t, t1.length, t2.length); return t; }
3,231,779
public static final short[] yyCheck() { return combine(yyCheck1(), yyCheck2()); }
public static final short[] yyCheck() { return combine(yyCheck1(), yyCheck2()); }
3,231,780
private static final short[] yyCheck1() { return new short[] { 2, 3, 215, 19, 20, 184, 8, 9, 10, 11, 6, 7, 14, 330, 6, 84, 27, 19, 20, 7, 11, 301, 341, 123, 26, 46, 10, 21, 10, 53, 346, 27, 46, 57, 53, 54, 10, ...
private static final short[] yyCheck1() { return new short[] { 2, 3, 215, 19, 20, 184, 8, 9, 10, 11, 6, 7, 14, 330, 6, 84, 27, 19, 20, 7, 11, 301, 341, 123, 26, 46, 10, 21, 10, 53, 346, 27, 46, 57, 53, 54, 10, ...
3,231,781
private static final short[] yyCheck2() { return new short[] { -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 93, 94, -1, -1, -1, ...
private static final short[] yyCheck2() { return new short[] { -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 93, 94, -1, -1, -1, ...
3,231,782
public static final short[] yyTable() { return combine(yyTable1(), yyTable2()); }
public static final short[] yyTable() { return combine(yyTable1(), yyTable2()); }
3,231,783
private static final short[] yyTable1() { return new short[] { 67, 67, 365, 211, 211, 340, 67, 67, 67, 67, 166, 166, 197, 488, 165, 318, 227, 210, 210, 178, 190, 447, 504, 305, 67, 308, 228, 222, 218, 241, 512, 166, 328, 260, 244, 248, 415, 3...
private static final short[] yyTable1() { return new short[] { 67, 67, 365, 211, 211, 340, 67, 67, 67, 67, 166, 166, 197, 488, 165, 318, 227, 210, 210, 178, 190, 447, 504, 305, 67, 308, 228, 222, 218, 241, 512, 166, 328, 260, 244, 248, 415, 3...
3,231,784
private static final short[] yyTable2() { return new short[] { 161, 161, 161, 161, 161, 0, 161, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 161, 161, 161, 0, 161, 161, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
private static final short[] yyTable2() { return new short[] { 161, 161, 161, 161, 161, 0, 161, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 161, 161, 161, 0, 161, 161, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
3,231,785
public String toString(){ return "Feature"+(featureId==null ? ":Hash"+this.hashCode() : ":"+featureId); }
public String toString(){ return "Feature"+(featureId==null ? ":Hash_"+this.hashCode() : ":Id_"+featureId); }
3,231,786
public PojosFindAnnotationsQueryDefinition(QueryParameter... parameters) { super(parameters); // TODO set local fields here. }
public PojosFindAnnotationsQueryDefinition(QueryParameter... parameters) { super( defs, parameters ); // TODO set local fields here. }
3,231,787
private void repaintCurve() { quad.setCurve(startPt, controlPt, endPt); super.repaint(); }
private void repaintCurve() { quad.setCurve(startPt, controlPt, endPt); super.repaint(); }
3,231,789
public IRubyObject sysread(IRubyObject[] args) throws Exception { // System.err.println("WARNING: unimplemented method called: SSLSocket#sysread"); checkArgumentCount(args,1,2); int len = RubyNumeric.fix2int(args[0]); byte[] bs = new byte[len]; IRubyObject str = args.length...
public IRubyObject sysread(IRubyObject[] args) throws Exception { // System.err.println("WARNING: unimplemented method called: SSLSocket#sysread"); checkArgumentCount(args,1,2); int len = RubyNumeric.fix2int(args[0]); IRubyObject str = args.length == 2 ? args[1] : getRuntim...
3,231,790
public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); interpreter.PUSH_ITER(0); interpreter.getRubyFrame().set...
public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); interpreter.getRubyIter().push(Iter.ITER_NOT); interp...
3,231,791
public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); interpreter.PUSH_ITER(0); interpreter.getRubyFrame().set...
public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); interpreter.PUSH_ITER(0); interpreter.getRubyFrame().set...
3,231,792
public Map getInstanceVariables() { // TODO: double checking may or may not be safe enough here if (instanceVariables == null) { synchronized (this) { if (instanceVariables == null) { instanceVariables = new HashMap(); } } } return instanceVariables; }
public Map getInstanceVariables() { // TODO: double checking may or may not be safe enough here if (instanceVariables == null) { synchronized (this) { if (instanceVariables == null) { instanceVariables = new HashMap(); } } } return instanceVariables; }
3,231,793
public IRubyObject inspect() {// if(getInstanceVariables().size() > 0) {// StringBuffer part = new StringBuffer();// String cname = getMetaClass().getRealClass().getName();// part.append("#<").append(cname).append(":0x");// part.append(Integer.toHexString(System.id...
public IRubyObject inspect() {// if(getInstanceVariables().size() > 0) {// StringBuffer part = new StringBuffer();// String cname = getMetaClass().getRealClass().getName();// part.append("#<").append(cname).append(":0x");// part.append(Integer.toHexString(System.id...
3,231,794
public RubyArray instance_variables() { ArrayList names = new ArrayList(); Iterator iter = instanceVariableNames(); while (iter.hasNext()) { String name = (String) iter.next(); names.add(getRuntime().newString(name)); } return getRuntime().newArray(names); ...
public RubyArray instance_variables() { ArrayList names = new ArrayList(); Iterator iter = instanceVariableNames(); while (iter.hasNext()) { String name = (String) iter.next(); names.add(getRuntime().newString(name)); } return getRuntime().newArray(names); ...
3,231,795
public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('o'); RubySymbol classname = RubySymbol.newSymbol(getRuntime(), getMetaClass().getName()); output.dumpObject(classname); output.dumpInt(getInstanceVariables().size()); for (Iterator iter ...
public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('o'); RubySymbol classname = RubySymbol.newSymbol(getRuntime(), getMetaClass().getName()); output.dumpObject(classname); output.dumpInt(getInstanceVariables().size()); for (Iterator iter ...
3,231,796
public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('o'); RubySymbol classname = RubySymbol.newSymbol(getRuntime(), getMetaClass().getName()); output.dumpObject(classname); output.dumpInt(getInstanceVariables().size()); for (Iterator iter ...
public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('o'); RubySymbol classname = RubySymbol.newSymbol(getRuntime(), getMetaClass().getName()); output.dumpObject(classname); output.dumpInt(getInstanceVariables().size()); for (Iterator iter ...
3,231,797
public void setInstanceVariables(Map instanceVariables) { this.instanceVariables = instanceVariables; }
public void setInstanceVariables(Map instanceVariables) { this.instanceVariables = Collections.synchronizedMap(instanceVariables); }
3,231,798
private void renderWave(DataBufferByte dataBuf, Plane2D plane, QuantumStrategy qs, int[] rgba) throws DataSourceException { CodomainChain cc = renderer.getCodomainChain(); int x1, x2, discreteValue, v; float alpha = ((float) rgba[3])/255; for (x2 = 0; x2 < sizeX2; ++x2) for (x1 = 0; x1 < sizeX1; ++x1) { d...
private void renderWave(DataBufferByte dataBuf, Plane2D plane, QuantumStrategy qs, int[] rgba) throws DataSourceException { CodomainChain cc = renderer.getCodomainChain(); int x1, x2, discreteValue, v; float alpha = ((float) rgba[3])/255; for (x2 = 0; x2 < sizeX2; ++x2) for (x1 = 0; x1 < sizeX1; ++x1) { d...
3,231,799
synchronized public void shutdown() { _log.notice("shutting down"); Enumeration e = _providers.elements(); _providers.clear(); while (e.hasMoreElements()) { Provider pr = (Provider) e.nextElement(); _log.info("stopping: " + pr); pr.destroy(); } _ls.flush(); }
synchronized public void shutdown() { _log.notice("shutting down"); Enumeration e = _providers.elements(); while (e.hasMoreElements()) { Provider pr = (Provider) e.nextElement(); _log.info("stopping: " + pr); pr.destroy(); } _ls.flush(); }
3,231,800
public static LogSystem getInstance(String category) { synchronized (_instances) { if (category == null) return _singleton; LogSystem ls = (LogSystem) _instances.get(category); if (ls == null) { ls = new LogSystem(category); _instances.put(category, ls); } ...
public static LogSystem getInstance(String category) { synchronized (_instances) { if (category == null) return _singleton; LogSystem ls = (LogSystem) _instances.get(category); if (ls == null) { ls = new LogSystem(category); _instances.put(category, ls); } ...
3,231,802
synchronized public Log getLog(String type, String description) { LogSource l = (LogSource) _logs.get(type); if (l != null) return l; l = new LogSource(_category, type, description); _logs.put(type, l); Iterator i = _targets.iterator(); while (i.hasNext()) { LogTarget lt...
synchronized public Log getLog(String type, String description) { LogSource l = (LogSource) _logs.get(type); if (l != null) return l; l = new LogSource(_category, type, description); _logs.put(type, l); Iterator i = _targets.iterator(); while (i.hasNext()) { LogTarget lt...
3,231,803
public void load(URL u) throws IOException { InputStream in = u.openStream(); _props.load(in); in.close(); }
public void load(URL u) throws IOException { InputStream in = u.openStream(); _props.load(in); in.close(); }
3,231,804
public void create() { super.create(); if ( id >= 0 ) { load(); } }
public void create() { super.create(); if ( id != null ) { load(); } }
3,231,807
public void create() { super.create(); if ( id >= 0 ) { load(); } }
public void create() { super.create(); if ( id >= 0 ) { long reset = id.longValue(); id = null; setPixelsId( reset ); } }
3,231,808
public void destroy() { // id is the only thing passivated. super.destroy(); }
public void destroy() { // id is the only thing passivated. pixelsInstance = null; buffer = null; }
3,231,809
public void setPixelsId(long pixelsId) { id = pixelsId; }
public void setPixelsId( long pixelsId ) { id = pixelsId; }
3,231,824
public void setPixelsId(long pixelsId) { id = pixelsId; }
public void setPixelsId(long pixelsId) { if ( id == null || id.longValue() != pixelsId ) { id = new Long( pixelsId ); pixelsInstance = null; buffer = null; IPixels metadataService = serviceFactory.getPixelsService(); PixelsService dataService = (PixelsService) applicationContext.getBean("/OME/OMEIS/Pixel...
3,231,825
public void onDataObjectSave(List nodes) { switch (model.getState()) { case DISCARDED: case NEW: case LOADING_THUMBNAILS: return; default: break; } if ( nodes == null) { model.onDataObjectSave(); fireStateChange(); return; } view.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); Da...
public void onDataObjectSave(List nodes) { switch (model.getState()) { case DISCARDED: case NEW: case LOADING_THUMBNAILS: return; default: break; } if ( nodes == null) { model.onDataObjectSave(); fireStateChange(); return; } view.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); Da...
3,231,832
public void onDataObjectSave(List nodes) { switch (model.getState()) { case DISCARDED: case NEW: case LOADING_THUMBNAILS: return; default: break; } if ( nodes == null) { model.onDataObjectSave(); fireStateChange(); return; } view.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); Da...
public void onDataObjectSave(List nodes) { switch (model.getState()) { case DISCARDED: case NEW: case LOADING_THUMBNAILS: return; default: break; } if ( nodes == null) { model.onDataObjectSave(); fireStateChange(); return; } view.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); Da...
3,231,833
public void onDataObjectSave(List nodes) { switch (model.getState()) { case DISCARDED: case NEW: case LOADING_THUMBNAILS: return; default: break; } if ( nodes == null) { model.onDataObjectSave(); fireStateChange(); return; } view.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); Da...
public void onDataObjectSave(List nodes) { switch (model.getState()) { case DISCARDED: case NEW: case LOADING_THUMBNAILS: return; default: break; } if ( nodes == null) { model.onDataObjectSave(); fireStateChange(); return; } view.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); Da...
3,231,834
public void setHierarchyRoots(Set roots, boolean flat, boolean refresh) { if (model.getState() != LOADING_HIERARCHY) throw new IllegalStateException( "This method can only be invoked in the LOADING_HIERARCHY "+ "state."); if (!refresh) { mode...
public void setHierarchyRoots(Set roots, boolean flat, boolean refresh) { if (model.getState() != LOADING_HIERARCHY) throw new IllegalStateException( "This method can only be invoked in the LOADING_HIERARCHY "+ "state."); if (!refresh) { mode...
3,231,835
public void setHierarchyRoots(Set roots, boolean flat, boolean refresh) { if (model.getState() != LOADING_HIERARCHY) throw new IllegalStateException( "This method can only be invoked in the LOADING_HIERARCHY "+ "state."); if (!refresh) { mode...
public void setHierarchyRoots(Set roots, boolean flat, boolean refresh) { if (model.getState() != LOADING_HIERARCHY) throw new IllegalStateException( "This method can only be invoked in the LOADING_HIERARCHY "+ "state."); if (!refresh) { mode...
3,231,836
public void handleEvent(Event e) { String methodDescriptor = srcToEvtToMethod.get(e.widget).get(e.type); controllers.invokeControllerMethod(methodDescriptor, e); }
public void handleEvent(Event e) { String methodDescriptor = srcToEvtToMethod.get(e.widget).get(e.type); controllers.invokeControllerMethod(methodDescriptor, e); }
3,231,837
private void initComponents() { popupMenu = new TreePopupMenu(this); searchView = new CBSearchTabView(model, this, controller); annotationView = new CBAnnotationTabView(model, this, controller); tabPane = new JTabbedPane(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT); tabPane.se...
private void initComponents() { popupMenu = new TreePopupMenu(this, model); searchView = new CBSearchTabView(model, this, controller); annotationView = new CBAnnotationTabView(model, this, controller); tabPane = new JTabbedPane(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT); tab...
3,231,838
final public Context getContext() { Pool cpool = (Pool) _contextCache.get(); Context c = (Context) cpool.get(); if (c == null) { c = (Context) _context.clone(); } c.setPool(cpool); return c; }
final public Context getContext() { Pool cpool = (Pool) _contextCache.get(); Context c = (Context) cpool.get(); if (c == null) { c = (Context) _context.clone(); c.setPool(cpool); } c.setPool(cpool); return c; }
3,231,840
final public Context getContext() { Pool cpool = (Pool) _contextCache.get(); Context c = (Context) cpool.get(); if (c == null) { c = (Context) _context.clone(); } c.setPool(cpool); return c; }
final public Context getContext() { Pool cpool = (Pool) _contextCache.get(); Context c = (Context) cpool.get(); if (c == null) { c = (Context) _context.clone(); } else c.clear(); return c; }
3,231,841
final public WebContext getWebContext(HttpServletRequest req, HttpServletResponse resp) { Pool cpool = (Pool) _webContextCache.get(); WebContext c = (WebContext) cpool.get(); if (c == null) { c = _webContext.newInstance(req,resp); } Context ctx = c; ctx.setPool(cp...
final public WebContext getWebContext(HttpServletRequest req, HttpServletResponse resp) { Pool cpool = (Pool) _webContextCache.get(); WebContext c = (WebContext) cpool.get(); if (c == null) { c = _webContext.newInstance(req,resp); c.setPool(cpool); } Context ctx = c; ...
3,231,842
final public WebContext getWebContext(HttpServletRequest req, HttpServletResponse resp) { Pool cpool = (Pool) _webContextCache.get(); WebContext c = (WebContext) cpool.get(); if (c == null) { c = _webContext.newInstance(req,resp); } Context ctx = c; ctx.setPool(cp...
final public WebContext getWebContext(HttpServletRequest req, HttpServletResponse resp) { Pool cpool = (Pool) _webContextCache.get(); WebContext c = (WebContext) cpool.get(); if (c == null) { c = _webContext.newInstance(req,resp); } Context ctx = c; ctx.setPool(cp...
3,231,843
public TreeContextMenu(Control parent, Listener l) { // menu menu = new Menu(parent); l.mapEvent(menu, SWT.Show, TreeContextMenuController.INITIALISE_MENU); parent.setMenu(menu); // menu items addNote = createMenuItem(menu, "Add Note", l, TreeContextMenuController.ADD_NOTE); removeNotes = createMenuItem(men...
public TreeContextMenu(Control parent, Listener l) { // menu menu = new Menu(parent); l.mapEvent(menu, SWT.Show, TreeContextMenuController.INITIALISE_MENU); parent.setMenu(menu); // menu items addNote = createMenuItem(menu, "Add Note", l, TreeContextMenuController.ADD_NOTE); removeNotes = createMenuItem(men...
3,231,844
protected void setsFlushMode() { mockSession.expects( atLeastOnce() ).method( "setFlushMode" ) .with( eq( FlushMode.COMMIT )); }
protected void setsFlushMode() { mockSession.expects( atLeastOnce() ).method( "setFlushMode" ) .with( eq( FlushMode.MANUAL )); }
3,231,846
public void testClosedOnException() throws Throwable { prepareThreadWithSession(); try { newStatefulReadInvocationThrows(); checksSessionIsOpen(); checksSessionIsConnected(); getsFactoryFromSession(); getsAutoFlushMode(); // here it throws disconnect...
public void testClosedOnException() throws Throwable { prepareThreadWithSession(); try { newStatefulReadInvocationThrows(); checksSessionIsOpen(); checksSessionIsConnected(); getsFactoryFromSession(); getsFlushMode(); // here it throws disconnectsSes...
3,231,847
public void testSecondStatefulInvocationsReusesSession() throws Throwable { newStatefulReadInvocation(); opensSession(); setsFlushMode(); beginsTransaction(2); checksSessionIsOpen(); getsFactoryFromSession(); getsAutoFlushMode(); // invocation here c...
public void testSecondStatefulInvocationsReusesSession() throws Throwable { newStatefulReadInvocation(); opensSession(); setsFlushMode(); beginsTransaction(2); checksSessionIsOpen(); getsFactoryFromSession(); getsFlushMode(); // invocation here check...
3,231,848
public void testStatefulInvocationGetsNewSession() throws Throwable { newStatefulReadInvocation(); opensSession(); setsFlushMode(); beginsTransaction(1); checksSessionIsOpen(); getsFactoryFromSession(); getsAutoFlushMode(); // invocation here checksS...
public void testStatefulInvocationGetsNewSession() throws Throwable { newStatefulReadInvocation(); opensSession(); setsFlushMode(); beginsTransaction(1); checksSessionIsOpen(); getsFactoryFromSession(); getsFlushMode(); // invocation here checksSessi...
3,231,849
public void testStatefulInvocationWithExistingSession() throws Throwable { prepareThreadWithSession(); newStatefulReadInvocation(); checksSessionIsOpen(); checksSessionIsConnected(); getsFactoryFromSession(); getsAutoFlushMode(); disconnectsSession(); ...
public void testStatefulInvocationWithExistingSession() throws Throwable { prepareThreadWithSession(); newStatefulReadInvocation(); checksSessionIsOpen(); checksSessionIsConnected(); getsFactoryFromSession(); getsFlushMode(); disconnectsSession(); c...
3,231,850
public void testStatefulInvocationWithSessionThenClosed() throws Throwable { newStatefulDestroyInvocation(); checksSessionIsOpen(); getsFactoryFromSession(); getsAutoFlushMode(); setsFlushMode(); opensSession();// setsFlushMode(); TODO huh? beginsTransactio...
public void testStatefulInvocationWithSessionThenClosed() throws Throwable { newStatefulDestroyInvocation(); checksSessionIsOpen(); getsFactoryFromSession(); getsFlushMode(); setsFlushMode(); opensSession();// setsFlushMode(); TODO huh? beginsTransaction(1)...
3,231,851
public void testStatefulReentrantCallThrows() throws Throwable { Method method = RenderingEngine.class.getMethod("getDefaultZ"); newStatefulInvocation( method, new Stub() { public Object invoke(Invocation dummy) throws Throwable { handler.invoke( invocation ); return null;...
public void testStatefulReentrantCallThrows() throws Throwable { Method method = RenderingEngine.class.getMethod("getDefaultZ"); newStatefulInvocation( method, new Stub() { public Object invoke(Invocation dummy) throws Throwable { handler.invoke( invocation ); return null;...
3,231,852
public void attachSingletonClass(IRubyObject object) { if (isSingleton()) { setInstanceVariable("__atached__", object); } else { getRuntime().getRuntime().printBug("attachSingletonClass called on a non singleton class."); } }
public void attachSingletonClass(IRubyObject object) { if (isSingleton()) { setInstanceVariable("__atached__", object); } else { getRuntime().getRuntime().printBug("attachSingletonClass called on a non singleton class."); } }
3,231,853
public final int hashCode() { return (int) RubyNumeric.fix2int(callMethod("hash")); }
public final int hashCode() { return (int) RubyNumeric.fix2long(callMethod("hash")); }
3,231,854
public void encode(IRuby runtime, IRubyObject o, StringBuffer result){ int s = o == runtime.getNil() ? 0 : (int) (RubyNumeric.num2long(o) & 0xffff); encodeShortLittleEndian(result, s); }});
public void encode(IRuby runtime, IRubyObject o, StringBuffer result){ int s = o == runtime.getNil() ? 0 : (int) (RubyNumeric.num2long(o) & 0xffff); encodeShortLittleEndian(result, s); }});
3,231,855
public Converter(int size) { this.size = size; }
public Converter(int size) { this.size = size; }
3,231,856
public abstract void encode(IRuby runtime, IRubyObject from, StringBuffer result);
public abstract void encode(IRuby runtime, IRubyObject from, StringBuffer result);
3,231,857
public void backup(int occurrences) { index -= occurrences; if (index < 0) { throw new IllegalArgumentException(); } }
public void backup(int occurrences) { index -= occurrences; if (index < 0) { throw new IllegalArgumentException(); } }
3,231,858
public void backup(int occurrences) { index -= occurrences; if (index < 0) { throw new IllegalArgumentException(); } }
public void backup(int occurrences) { index -= occurrences; if (index < 0) { throw new IllegalArgumentException(); } }
3,231,859
public int getIndex() { return index; }
public int getIndex() { return index; }
3,231,860
public int getLength() { return buffer.length; }
public int getLength() { return buffer.length; }
3,231,861
public boolean isAtEnd() { return index > buffer.length; }
public boolean isAtEnd() { return index > buffer.length; }
3,231,862
public int nextAsciiNumber() { int i = index; for (; i < buffer.length; i++) { if (!Character.isDigit(buffer[i])) { break; } } // An exception will occur if no number is at ptr.... int number = Integer.parseInt(new String(buff...
public int nextAsciiNumber() { int i = index; for (; i < buffer.length; i++) { if (!Character.isDigit(buffer[i])) { break; } } // An exception will occur if no number is at ptr.... int number = Integer.parseInt(new String(buff...
3,231,863
public int nextAsciiNumber() { int i = index; for (; i < buffer.length; i++) { if (!Character.isDigit(buffer[i])) { break; } } // An exception will occur if no number is at ptr.... int number = Integer.parseInt(new String(buff...
public int nextAsciiNumber() { int i = index; for (; i < buffer.length; i++) { if (!Character.isDigit(buffer[i])) { break; } } // An exception will occur if no number is at ptr.... int number = Integer.parseInt(new String(buff...
3,231,864
public int nextAsciiNumber() { int i = index; for (; i < buffer.length; i++) { if (!Character.isDigit(buffer[i])) { break; } } // An exception will occur if no number is at ptr.... int number = Integer.parseInt(new String(buff...
public int nextAsciiNumber() { int i = index; for (; i < buffer.length; i++) { if (!Character.isDigit(buffer[i])) { break; } } // An exception will occur if no number is at ptr.... int number = Integer.parseInt(new String(buff...
3,231,865
public int nextByte() { return nextChar() & 0xff; }
public int nextByte() { return nextChar() & 0xff; }
3,231,866
public char nextChar() { char next = '\0'; if (index < buffer.length) { next = buffer[index++]; } else if (index == buffer.length) { index++; } return next; }
public char nextChar() { char next = '\0'; if (index < buffer.length) { next = buffer[index++]; } else if (index == buffer.length) { index++; } return next; }
3,231,867
public String nextSubstring(int length) { // Cannot get substring off end of buffer if (index + length > buffer.length) { throw new IllegalArgumentException(); } String substring = new String(buffer, index, length); index += length; return substring; }
public String nextSubstring(int length) { // Cannot get substring off end of buffer if (index + length > buffer.length) { throw new IllegalArgumentException(); } String substring = new String(buffer, index, length); index += length; return substring; }
3,231,868
public void setPosition(int position) { if (position < buffer.length) { index = position; } }
public void setPosition(int position) { if (position < buffer.length) { index = position; } }
3,231,869
public static void decode(IRuby runtime, PtrList encode, int occurrences, RubyArray result, Converter converter) { int lPadLength = 0; if (occurrences == IS_STAR) { occurrences = encode.remaining() / converter.size; } else if (occurrences > encode.remaining() / conve...
public static void decode(IRuby runtime, PtrList encode, int occurrences, RubyArray result, Converter converter) { int lPadLength = 0; if (occurrences == IS_STAR) { occurrences = encode.remaining() / converter.size; } else if (occurrences > encode.remaining() / conve...
3,231,870
private static double decodeDoubleBigEndian(PtrList encode) { return Double.longBitsToDouble(decodeLongBigEndian(encode)); }
private static double decodeDoubleBigEndian(PtrList encode) { return Double.longBitsToDouble(decodeLongBigEndian(encode)); }
3,231,871
private static double decodeDoubleLittleEndian(PtrList encode) { return Double.longBitsToDouble(decodeLongLittleEndian(encode)); }
private static double decodeDoubleLittleEndian(PtrList encode) { return Double.longBitsToDouble(decodeLongLittleEndian(encode)); }
3,231,872
private static float decodeFloatBigEndian(PtrList encode) { return Float.intBitsToFloat(decodeIntBigEndian(encode)); }
private static float decodeFloatBigEndian(PtrList encode) { return Float.intBitsToFloat(decodeIntBigEndian(encode)); }
3,231,873
private static float decodeFloatLittleEndian(PtrList encode) { return Float.intBitsToFloat(decodeIntLittleEndian(encode)); }
private static float decodeFloatLittleEndian(PtrList encode) { return Float.intBitsToFloat(decodeIntLittleEndian(encode)); }
3,231,874
private static long decodeLongBigEndian(PtrList encode) { int c1 = decodeIntBigEndian(encode); int c2 = decodeIntBigEndian(encode); return ((long) c1 << 32) + (c2 & 0xffffffffL); }
private static long decodeLongBigEndian(PtrList encode) { int c1 = decodeIntBigEndian(encode); int c2 = decodeIntBigEndian(encode); return ((long) c1 << 32) + (c2 & 0xffffffffL); }
3,231,875
private static long decodeLongLittleEndian(PtrList encode) { int c1 = decodeIntLittleEndian(encode); int c2 = decodeIntLittleEndian(encode); return ((long) c2 << 32) + (c1 & 0xffffffffL); }
private static long decodeLongLittleEndian(PtrList encode) { int c1 = decodeIntLittleEndian(encode); int c2 = decodeIntLittleEndian(encode); return ((long) c2 << 32) + (c1 & 0xffffffffL); }
3,231,876
private static long decodeLongLittleEndian(PtrList encode) { int c1 = decodeIntLittleEndian(encode); int c2 = decodeIntLittleEndian(encode); return ((long) c2 << 32) + (c1 & 0xffffffffL); }
private static long decodeLongLittleEndian(PtrList encode) { int c1 = decodeIntLittleEndian(encode); int c2 = decodeIntLittleEndian(encode); return ((long) c2 << 32) + (c1 & 0xffffffffL); }
3,231,877
private static short decodeShortBigEndian(PtrList encode) { return (short) ((short) (encode.nextByte() << 8) + encode.nextByte()); }
private static short decodeShortBigEndian(PtrList encode) { return (short) ((short) (encode.nextByte() << 8) + encode.nextByte()); }
3,231,878
private static int decodeShortUnsignedBigEndian(PtrList encode) { return (encode.nextByte() << 8) + encode.nextByte(); }
private static int decodeShortUnsignedBigEndian(PtrList encode) { return (encode.nextByte() << 8) + encode.nextByte(); }
3,231,879
private static int decodeShortUnsignedLittleEndian(PtrList encode) { return encode.nextByte() + (encode.nextByte() << 8); }
private static int decodeShortUnsignedLittleEndian(PtrList encode) { return encode.nextByte() + (encode.nextByte() << 8); }
3,231,880
private static void encodeDoubleBigEndian(StringBuffer result, double d) { encodeLongBigEndian(result, Double.doubleToLongBits(d)); }
private static void encodeDoubleBigEndian(StringBuffer result, double d) { encodeLongBigEndian(result, Double.doubleToLongBits(d)); }
3,231,881
private static void encodeDoubleLittleEndian(StringBuffer result, double d) { encodeLongLittleEndian(result, Double.doubleToLongBits(d)); }
private static void encodeDoubleLittleEndian(StringBuffer result, double d) { encodeLongLittleEndian(result, Double.doubleToLongBits(d)); }
3,231,882
private static void encodeFloatBigEndian(StringBuffer result, float f) { encodeIntBigEndian(result, Float.floatToIntBits(f)); }
private static void encodeFloatBigEndian(StringBuffer result, float f) { encodeIntBigEndian(result, Float.floatToIntBits(f)); }
3,231,883
private static void encodeFloatLittleEndian(StringBuffer result, float f) { encodeIntLittleEndian(result, Float.floatToIntBits(f)); }
private static void encodeFloatLittleEndian(StringBuffer result, float f) { encodeIntLittleEndian(result, Float.floatToIntBits(f)); }
3,231,884
private static void encodeLongBigEndian(StringBuffer result, long l) { encodeIntBigEndian(result, (int) (l >>> 32)); encodeIntBigEndian(result, (int) (l & 0xffffffff)); }
private static void encodeLongBigEndian(StringBuffer result, long l) { encodeIntBigEndian(result, (int) (l >>> 32)); encodeIntBigEndian(result, (int) (l & 0xffffffff)); }
3,231,885
private static void encodeLongLittleEndian(StringBuffer result, long l) { encodeIntLittleEndian(result, (int) (l & 0xffffffff)); encodeIntLittleEndian(result, (int) (l >>> 32)); }
private static void encodeLongLittleEndian(StringBuffer result, long l) { encodeIntLittleEndian(result, (int) (l & 0xffffffff)); encodeIntLittleEndian(result, (int) (l >>> 32)); }
3,231,886
private static void encodeShortBigEndian(StringBuffer result, int s) { result.append((char) ((s & 0xff00) >> 8)).append((char) (s & 0xff)); }
private static void encodeShortBigEndian(StringBuffer result, int s) { result.append((char) ((s & 0xff00) >> 8)).append((char) (s & 0xff)); }
3,231,887
private static void encodeShortLittleEndian(StringBuffer result, int s) { result.append((char) (s & 0xff)).append((char) ((s & 0xff00) >> 8)); }
private static void encodeShortLittleEndian(StringBuffer result, int s) { result.append((char) (s & 0xff)).append((char) ((s & 0xff00) >> 8)); }
3,231,888
public static RubyString pack(List list, RubyString formatString) { IRuby runtime = formatString.getRuntime(); PtrList format = new PtrList(formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); ...
public static RubyString pack(List list, RubyString formatString) { IRuby runtime = formatString.getRuntime(); PtrList format = new PtrList(formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); ...
3,231,889
public static RubyString pack(List list, RubyString formatString) { IRuby runtime = formatString.getRuntime(); PtrList format = new PtrList(formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); ...
public static RubyString pack(List list, RubyString formatString) { IRuby runtime = formatString.getRuntime(); PtrList format = new PtrList(formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); ...
3,231,890
public static RubyString pack(List list, RubyString formatString) { IRuby runtime = formatString.getRuntime(); PtrList format = new PtrList(formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); ...
public static RubyString pack(List list, RubyString formatString) { IRuby runtime = formatString.getRuntime(); PtrList format = new PtrList(formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); ...
3,231,891
public static RubyString pack(List list, RubyString formatString) { IRuby runtime = formatString.getRuntime(); PtrList format = new PtrList(formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); ...
public static RubyString pack(List list, RubyString formatString) { IRuby runtime = formatString.getRuntime(); PtrList format = new PtrList(formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); ...
3,231,892