bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { name = NAME; setEnabled(false); return; } /* if (model.getSelectedBrowser() != null) { if (model.getSelectedBrowser().getSelectedDispla... | protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { name = NAME; setEnabled(false); return; } /* if (model.getSelectedBrowser() != null) { if (model.getSelectedBrowser().getSelectedDispla... | 3,238,009 |
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { name = NAME; setEnabled(false); return; } /* if (model.getSelectedBrowser() != null) { if (model.getSelectedBrowser().getSelectedDispla... | protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { name = NAME; setEnabled(false); return; } /* if (model.getSelectedBrowser() != null) { if (model.getSelectedBrowser().getSelectedDispla... | 3,238,010 |
protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { name = NAME; setEnabled(false); return; } /* if (model.getSelectedBrowser() != null) { if (model.getSelectedBrowser().getSelectedDispla... | protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { name = NAME; setEnabled(false); return; } /* if (model.getSelectedBrowser() != null) { if (model.getSelectedBrowser().getSelectedDispla... | 3,238,011 |
public Query(QueryParameter... parameters) { this.options = options; this.qps = parameters; defineParameters(); checkParameters(); } | public Query(QueryParameter... parameters) { this.options = options; this.qps = parameters; defineParameters(); checkParameters(); } | 3,238,012 |
protected void checkParameters(){ if (defs == null) throw new IllegalStateException( "Query parameter definitions not set."); if (qps == null) throw new IllegalArgumentException( "Null arrays "+ "are not va... | protected void checkParameters(){ if (defs == null) throw new IllegalStateException( "Query parameter definitions not set."); if (qps == null) throw new IllegalArgumentException( "Null arrays "+ "are not va... | 3,238,013 |
public boolean fill(IObject model) { model.setId(this.getId()); model.setDetails(new Details()); if (!this.isLoaded()){ model.unload(); return false; } else { for (Iterator it = this.filtered.iterator(); it.hasNext();) { model... | public boolean fill(IObject model) { model.setId(new Long(this.getId())); model.setDetails(new Details()); if (!this.isLoaded()){ model.unload(); return false; } else { for (Iterator it = this.filtered.iterator(); it.hasNext();) { ... | 3,238,014 |
public ImgSaver(JFrame owner, ImViewer model) { super(owner); if (model == null) throw new IllegalArgumentException("No model."); this.model = model; setTitle(TITLE); setModal(true); uiDelegate = new ImgSaverUI(this); pack(); } | public ImgSaver(JFrame owner, ImViewer model) { super(owner); if (model == null) throw new IllegalArgumentException("No model."); this.model = model; setTitle(TITLE); setModal(true); uiDelegate = new ImgSaverUI(this); pack(); } | 3,238,015 |
void saveImage() { //Builds the image to display. boolean unitBar = model.isUnitBar(); String v = model.getUnitBarValue(); int s = (int) model.getUnitBarSize(); if (imageComponents == null) { int width = mainImage.getWidth(); int h = mainImage.getHeight()... | void saveImage() { //Builds the image to display. boolean unitBar = model.isUnitBar(); String v = model.getUnitBarValue(); int s = (int) model.getUnitBarSize(); if (imageComponents == null) { int width = mainImage.getWidth(); int h = mainImage.getHeight()... | 3,238,016 |
private void writeImage(BufferedImage image, String n) { UserNotifier un = ImViewerAgent.getRegistry().getUserNotifier(); n += "."+format; File f = new File(n); try { if (format.equals(TIFFFilter.TIF)) { Encoder encoder = new TIFFEncoder(Factory.createImage(i... | private void writeImage(BufferedImage image, String n) { UserNotifier un = ImViewerAgent.getRegistry().getUserNotifier(); n += "."+format; File f = new File(n); try { if (format.equals(TIFFFilter.TIF)) { Encoder encoder = new TIFFEncoder(Factory.createImage(i... | 3,238,017 |
public String sysread(int length) throws EOFException, BadDescriptorException, IOException { checkReadable(); checkBuffered(); ByteBuffer buffer = ByteBuffer.allocate(length); boolean eof = false; while (buffer.hasRemaining()) { if (((ReadableByteChannel) channel).read... | public String sysread(int length) throws EOFException, BadDescriptorException, IOException { checkReadable(); checkBuffered(); ByteBuffer buffer = ByteBuffer.allocate(length); boolean eof = false; while (buffer.hasRemaining()) { int bytesRead = ((ReadableByteChannel) c... | 3,238,019 |
public char read() { synchronized (buffer) { if (lastRead == '\n') { // The \n has already been read, but we increment on first char // of new line line++; } readIntoBuffer(); lastRead = buffer.charAt(offset++); ... | public char read() { synchronized (buffer) { if (offset > 0 && buffer.charAt(offset-1) == '\n') { // The \n has already been read, but we increment on first char // of new line line++; } readIntoBuffer(); lastRead = buff... | 3,238,021 |
public void unread() { synchronized (buffer) { char result; if (offset > 0) { result = buffer.charAt(--offset); } else { result = 0; } lastRead = result;// todo: create a test case where this code matters (and works):// ... | if (offset > 0 && buffer.charAt(offset-1) == '\n') { public void unread() {if (offset > 0 && buffer.charAt(offset-1) == '\n') { if (offset > 0 && buffer.charAt(offset-1) == '\n') { synchronized (buffer) {if (offset > 0 && buffer.charAt(offset-1) == '\n') { if (offset > 0 && buffer.charAt(offset-1) == '\n') { if (off... | 3,238,022 |
public void unread() { synchronized (buffer) { char result; if (offset > 0) { result = buffer.charAt(--offset); } else { result = 0; } lastRead = result;// todo: create a test case where this code matters (and works):// ... | line--; } line--; } public void unread() {line--; } line--; } line--; } line--; } synchronized (buffer) {line--; } line--; } line--; } line--; } line--; } line--; } char result;line--; } line--; } line--; } line--; } line--; } line--; } if (offset > 0) {line--; } line--; } line--; } line--; } line--; } line--; } resul... | 3,238,023 |
private void initComponents() { tabbedPane = new JTabbedPane(); nameArea = new JTextField(); setTextAreaDefault(nameArea); descriptionArea = new MultilineLabel(); setTextAreaDefault(descriptionArea); if (model.getEditorType() == Editor.PROPERTIES_EDITOR) { nam... | private void initComponents() { tabbedPane = new JTabbedPane(); nameArea = new JTextField(); setTextAreaDefault(nameArea); descriptionArea = new MultilineLabel(); setTextAreaDefault(descriptionArea); if (model.getEditorType() == Editor.PROPERTIES_EDITOR) { nam... | 3,238,024 |
private void initComponents() { tabbedPane = new JTabbedPane(); nameArea = new JTextField(); setTextAreaDefault(nameArea); descriptionArea = new MultilineLabel(); setTextAreaDefault(descriptionArea); if (model.getEditorType() == Editor.PROPERTIES_EDITOR) { nam... | private void initComponents() { tabbedPane = new JTabbedPane(); nameArea = new JTextField(); setTextAreaDefault(nameArea); descriptionArea = new MultilineLabel(); setTextAreaDefault(descriptionArea); if (model.getEditorType() == Editor.PROPERTIES_EDITOR) { nam... | 3,238,025 |
public static Criteria buildCategoryGroupCriteria(int groupID, int userID) { Criteria c = new Criteria(); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); //wanted fields for CategoryList c.addWantedField("CategoryList", "Name"... | */ */ */ */ public*/ static*/ Criteria*/ buildCategoryGroupCriteria(int*/ groupID,*/ int*/ userID)*/ */ */ */ {*/ */ */ */ */ */ */ */ Criteria*/ c*/ =*/ new*/ Criteria();*/ */ */ */ */ */ */ */ c.addWantedField("Name");*/ */ */ */ */ */ */ */ c.addWantedField("Description");*/ */ */ */ */ */ */ */ c.addWantedField("Ca... | 3,238,026 |
private static CategoryData fillCategory(CategoryGroupData gData, CategoryData proto, Category c) { CategoryData model = (CategoryData) proto.makeNew(); model.setID(c.getID()); model.setName(c.getName()); model.setDescription(c.getDescription()); mod... | private static CategoryData fillCategory(CategoryGroupData gData, CategoryData proto, Category c) { CategoryData model = (CategoryData) proto.makeNew(); model.setID(c.getID()); model.setName(c.getName()); model.setDescription(c.getDescription()); mod... | 3,238,027 |
List getImages() { return getDatasetData().getImages(); } | List getImages() { return getDatasetData().getImages(); } | 3,238,028 |
public void load(String path) throws XmlException, IOException{ System.out.println("Attempting to load path "+path); IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.cl... | public void load(String path) throws XmlException, IOException{ System.out.println("Attempting to load path "+path); IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.cl... | 3,238,029 |
public void load(String path) throws XmlException, IOException{ System.out.println("Attempting to load path "+path); IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.cl... | public void load(String path) throws XmlException, IOException{ System.out.println("Attempting to load path "+path); IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.cl... | 3,238,030 |
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KE... | public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KE... | 3,238,031 |
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KE... | public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KE... | 3,238,032 |
public int search(IRubyObject target, int pos) { String str = RubyString.stringValue(target).toString(); if (pos > str.length()) { return -1; } recompileIfNeeded(); // If nothing match then nil will be returned IRubyObject result = match(str, pos); getRunt... | public int search(IRubyObject target, int pos) { String str = RubyString.stringValue(target).toString(); if (pos > str.length()) { return -1; } recompileIfNeeded(); // If nothing match then nil will be returned IRubyObject result = match(str, pos); getRun... | 3,238,034 |
private void initFields() { user = new JTextField(); user.setFont(FONT); user.setForeground(FONT_COLOR); user.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED)); pass = new JPasswordField(); pass.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED)... | private void initFields() { user = new JTextField(); user.setFont(FONT); user.setForeground(FONT_COLOR); user.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED)); pass = new JPasswordField(); pass.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED)... | 3,238,035 |
public String getName() { return _name; } | public String getName() { return _name; } | 3,238,036 |
public Object getValue() { return _value; } | public Object getValue() { return _value; } | 3,238,037 |
final public Object build(BuildContext bc) throws BuildException { Vector block = new Vector(20); StringBuffer buf = new StringBuffer(512); flatten(bc,block,buf,elements()); if (buf.length() > 0) { block.addElement(MacroAdapter.createMacro(buf.toString())); } Macro[] res... | final public Object build(BuildContext bc) throws BuildException { Vector block = new Vector(20); StringBuffer buf = new StringBuffer(512); flatten(bc,block,buf,elements()); if (buf.length() > 0) { block.addElement(MacroAdapter.createMacro(buf.toString(),bc.getEncoding())); }... | 3,238,038 |
private void flatten(BuildContext bc, Vector block, StringBuffer buf, Enumeration e) throws BuildException { while(e.hasMoreElements()) { Object cur = e.nextElement(); Object o = cur; if (o instanceof BlockBuilder) { Enumeration e2 = ((BlockBuilder) o).elements... | private void flatten(BuildContext bc, Vector block, StringBuffer buf, Enumeration e) throws BuildException { while(e.hasMoreElements()) { Object cur = e.nextElement(); Object o = cur; if (o instanceof BlockBuilder) { Enumeration e2 = ((BlockBuilder) o).elements... | 3,238,039 |
double getUnitBarSize() { double v = unitInMicrons; if (getPixelsSizeX() > 0) v = unitInMicrons/getPixelsSizeX(); v /= zoomFactor; return v; //if (unit == -1) setUnitBarSize(5); //return unit; } | double getUnitBarSize() { double v = unitInMicrons; if (getPixelsSizeX() > 0) v = unitInMicrons/getPixelsSizeX(); v *= zoomFactor; return v; //if (unit == -1) setUnitBarSize(5); //return unit; } | 3,238,041 |
final protected void execute(Template tmpl, WebContext c) { FastWriter fw = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); try { HttpServletResponse resp= c.getResponse(); Locale locale = (Locale) t... | final protected void execute(Template tmpl, WebContext c) { FastWriter fw = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); try { HttpServletResponse resp= c.getResponse(); Locale locale = (Locale) t... | 3,238,042 |
final protected void execute(Template tmpl, WebContext c) { FastWriter fw = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); try { HttpServletResponse resp= c.getResponse(); Locale locale = (Locale) t... | final protected void execute(Template tmpl, WebContext c) { FastWriter fw = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); try { HttpServletResponse resp= c.getResponse(); Locale locale = (Locale) t... | 3,238,043 |
public WebMacro initWebMacro() throws InitException { ClassLoader cl = this.getClass().getClassLoader(); System.out.println("WMServlet init: classloader="+cl); if (cl == null) { return new WM(); } else { System.out.println("WMServlet init: defaults="+cl.getResource("WebMac... | public WebMacro initWebMacro() throws InitException { ClassLoader cl = this.getClass().getClassLoader(); System.out.println("WMServlet init: classloader="+cl); if (cl == null) { return new WM(); } else { System.out.println("WMServlet init: defaults="+cl.getResource("WebMac... | 3,238,044 |
public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | 3,238,045 |
public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | 3,238,046 |
public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | 3,238,047 |
public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | 3,238,048 |
public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | 3,238,049 |
public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | 3,238,050 |
public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | 3,238,051 |
public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | 3,238,052 |
public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | 3,238,053 |
public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | 3,238,054 |
public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | 3,238,055 |
public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | public Main(String[] args) throws MalformedPatternException { Header.print(System.out); System.out.println("Cobertura coverage check"); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("branch", LongOpt.REQUIRED_ARGUMENT, null, 'b'); longOpts[2] = new LongOpt("datafile", LongOpt.REQUIRED_ARGUMENT... | 3,238,056 |
CoverageRate findMinimumCoverageRate(String classname) { Iterator i = minimumCoverageRates.entrySet().iterator(); while (i.hasNext()) { Map.Entry entry = (Map.Entry)i.next(); if (pm.matches(classname, (Pattern)entry.getKey())) { return (CoverageRate)entry.getValue(); } } return minimumCoverageRate; } | CoverageRate findMinimumCoverageRate(String classname) { Iterator i = minimumCoverageRates.entrySet().iterator(); while (i.hasNext()) { Map.Entry entry = (Map.Entry)i.next(); if (pm.matches(classname, (Pattern)entry.getKey())) { return (CoverageRate)entry.getValue(); } } return minimumCoverageRate; } | 3,238,058 |
CoverageRate findMinimumCoverageRate(String classname) { Iterator i = minimumCoverageRates.entrySet().iterator(); while (i.hasNext()) { Map.Entry entry = (Map.Entry)i.next(); if (pm.matches(classname, (Pattern)entry.getKey())) { return (CoverageRate)entry.getValue(); } } return minimumCoverageRate; } | CoverageRate findMinimumCoverageRate(String classname) { Iterator i = minimumCoverageRates.entrySet().iterator(); while (i.hasNext()) { Map.Entry entry = (Map.Entry)i.next(); if (pm.matches(classname, (Pattern)entry.getKey())) { return (CoverageRate)entry.getValue(); } } return minimumCoverageRate; } | 3,238,059 |
CoverageRate findMinimumCoverageRate(String classname) { Iterator i = minimumCoverageRates.entrySet().iterator(); while (i.hasNext()) { Map.Entry entry = (Map.Entry)i.next(); if (pm.matches(classname, (Pattern)entry.getKey())) { return (CoverageRate)entry.getValue(); } } return minimumCoverageRate; } | CoverageRate findMinimumCoverageRate(String classname) { Iterator i = minimumCoverageRates.entrySet().iterator(); while (i.hasNext()) { Map.Entry entry = (Map.Entry)i.next(); if (pm.matches(classname, (Pattern)entry.getKey())) { return (CoverageRate)entry.getValue(); } } return minimumCoverageRate; } | 3,238,060 |
void setMinimumCoverageRate(String minimumCoverageRate) throws MalformedPatternException { StringTokenizer tokenizer = new StringTokenizer(minimumCoverageRate, ":"); minimumCoverageRates.put(pc.compile(tokenizer.nextToken()), new CoverageRate(inRangeAndDivideByOneHundred(tokenizer .nextToken()), inRange... | void setMinimumCoverageRate(String minimumCoverageRate) throws MalformedPatternException { StringTokenizer tokenizer = new StringTokenizer(minimumCoverageRate, ":"); minimumCoverageRates.put(pc.compile(tokenizer.nextToken()), new CoverageRate(inRangeAndDivideByOneHundred(tokenizer .nextToken()), inRange... | 3,238,061 |
public IRubyObject getBackref() { if (getScopeStack().hasLocalValues()) { return getScopeStack().getValue(1); } return ruby.getNil(); } | public IRubyObject getBackref() { if (getScopeStack().hasLocalVariables()) { return getScopeStack().getValue(1); } return ruby.getNil(); } | 3,238,062 |
public void initCopy(IRubyObject original) { assert !isFrozen() : "frozen object (" + getMetaClass().getName() + ") allocated"; setInstanceVariables(new HashMap(original.getInstanceVariables())); callMethod("initialize_copy", original); } | public void initCopy(IRubyObject original) { assert !isFrozen() : "frozen object (" + getMetaClass().getName() + ") allocated"; if (original.getInstanceVariables() != null) { setInstanceVariables(new HashMap(original.getInstanceVariables())); } callMethod("initialize_copy", original); ... | 3,238,064 |
public RubyFixnum aref(IRubyObject other) { RubyNumeric numericPosition = numericValue(other); long position = numericPosition.getLongValue(); // Seems mighty expensive to keep creating over and over again. // How else can this be done though? if (position > BIT_SIZE) { RubyBignum bignum = RubyBignum.new... | public RubyFixnum aref(IRubyObject other) { RubyNumeric numericPosition = numericValue(other); long position = numericPosition.getLongValue(); // Seems mighty expensive to keep creating over and over again. // How else can this be done though? if (position > BIT_SIZE) { RubyBignum bignum = RubyBignum.new... | 3,238,065 |
public RubyFixnum aref(IRubyObject other) { RubyNumeric numericPosition = numericValue(other); long position = numericPosition.getLongValue(); // Seems mighty expensive to keep creating over and over again. // How else can this be done though? if (position > BIT_SIZE) { RubyBignum bignum = RubyBignum.new... | public RubyFixnum aref(IRubyObject other) { RubyNumeric numericPosition = numericValue(other); long position = numericPosition.getLongValue(); // Seems mighty expensive to keep creating over and over again. // How else can this be done though? if (position > BIT_SIZE) { RubyBignum bignum = RubyBignum.new... | 3,238,066 |
public static RubyClass createFixnumClass(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getClasses().getIntegerClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); fixnumClass.defineMethod("to_f", callbackFactory.getMethod(RubyFixnum.class, "to_f")); ... | public static RubyClass createFixnumClass(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getClasses().getIntegerClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); fixnumClass.defineMethod("to_f", callbackFactory.getMethod(RubyFixnum.class, "to_f")); ... | 3,238,067 |
public static RubyClass createFixnumClass(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getClasses().getIntegerClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); fixnumClass.defineMethod("to_f", callbackFactory.getMethod(RubyFixnum.class, "to_f")); ... | public static RubyClass createFixnumClass(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getClasses().getIntegerClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); fixnumClass.defineMethod("to_f", callbackFactory.getMethod(RubyFixnum.class, "to_f")); ... | 3,238,068 |
public RubyNumeric op_and(IRubyObject other) { RubyNumeric otherNumeric = numericValue(other); long otherLong = otherNumeric.getTruncatedLongValue(); return newFixnum(value & otherLong); } | public RubyNumeric op_and(IRubyObject other) { RubyNumeric otherNumeric = numericValue(other); long otherLong = otherNumeric.getTruncatedLongValue(); return newFixnum(value & otherLong); } | 3,238,069 |
public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuntime()... | public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuntime()... | 3,238,070 |
public RubyInteger op_lshift(IRubyObject num) { RubyNumeric other = numericValue(num); long width = other.getLongValue(); if (width < 0) return op_rshift(other.op_uminus()); if (value > 0) { if (width >= BIT_SIZE - 2 || value >> (BIT_SIZE - width) > 0) { RubyBignum lBigV... | public RubyInteger op_lshift(IRubyObject num) { RubyNumeric other = numericValue(num); long width = other.getLongValue(); if (width < 0) return op_rshift(other.op_uminus()); if (value > 0) { if (width >= BIT_SIZE - 2 || value >> (BIT_SIZE - width) > 0) { RubyBignum lBigV... | 3,238,071 |
public RubyNumeric op_minus(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_minus(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRunti... | public RubyNumeric op_minus(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_minus(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRunti... | 3,238,072 |
public RubyNumeric op_mod(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_mod(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuntime()... | public RubyNumeric op_mod(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_mod(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuntime()... | 3,238,073 |
public RubyNumeric op_mul(IRubyObject num) { return numericValue(num).multiplyWith(this); } | public RubyNumeric op_mul(IRubyObject num) { return numericValue(num).multiplyWith(this); } | 3,238,074 |
public RubyInteger op_or(IRubyObject other) { if (other instanceof RubyBignum) { return (RubyInteger) other.callMethod("|", this); } RubyNumeric otherNumeric = numericValue(other); return newFixnum(value | otherNumeric.getLongValue()); } | public RubyInteger op_or(RubyNumeric other) { if (other instanceof RubyBignum) { return (RubyInteger) other.callMethod("|", this); } RubyNumeric otherNumeric = numericValue(other); return newFixnum(value | otherNumeric.getLongValue()); } | 3,238,075 |
public RubyInteger op_or(IRubyObject other) { if (other instanceof RubyBignum) { return (RubyInteger) other.callMethod("|", this); } RubyNumeric otherNumeric = numericValue(other); return newFixnum(value | otherNumeric.getLongValue()); } | public RubyInteger op_or(IRubyObject other) { if (other instanceof RubyBignum) { return (RubyInteger) other.callMethod("|", this); } RubyNumeric otherNumeric = numericValue(other); return newFixnum(value | otherNumeric.getLongValue()); } | 3,238,076 |
public RubyNumeric op_plus(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return ((RubyFloat)other).op_plus(this); } else if (other instanceof RubyBignum) { return ((RubyBignum)other).op_plus(this); } else { lo... | public RubyNumeric op_plus(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return ((RubyFloat)other).op_plus(this); } else if (other instanceof RubyBignum) { return ((RubyBignum)other).op_plus(this); } else { lo... | 3,238,077 |
public RubyNumeric op_pow(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_pow(other); } else { if (other.getLongValue() == 0) { return newFixnum(getRunti... | public RubyNumeric op_pow(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_pow(other); } else { if (other.getLongValue() == 0) { return newFixnum(getRunti... | 3,238,078 |
public RubyInteger op_rshift(IRubyObject num) { RubyNumeric other = numericValue(num); long width = other.getLongValue(); if (width < 0) return op_lshift(other.op_uminus()); return newFixnum(value >> width); } | public RubyInteger op_rshift(IRubyObject num) { RubyNumeric other = numericValue(num); long width = other.getLongValue(); if (width < 0) return op_lshift(other.op_uminus()); return newFixnum(value >> width); } | 3,238,079 |
public RubyInteger op_xor(IRubyObject other) { if (other instanceof RubyBignum) { return (RubyInteger) other.callMethod("^", this); } RubyNumeric otherNumeric = numericValue(other); return newFixnum(value ^ otherNumeric.getLongValue()); } | public RubyInteger op_xor(RubyNumeric other) { if (other instanceof RubyBignum) { return (RubyInteger) other.callMethod("^", this); } RubyNumeric otherNumeric = numericValue(other); return newFixnum(value ^ otherNumeric.getLongValue()); } | 3,238,080 |
public RubyInteger op_xor(IRubyObject other) { if (other instanceof RubyBignum) { return (RubyInteger) other.callMethod("^", this); } RubyNumeric otherNumeric = numericValue(other); return newFixnum(value ^ otherNumeric.getLongValue()); } | public RubyInteger op_xor(IRubyObject other) { if (other instanceof RubyBignum) { return (RubyInteger) other.callMethod("^", this); } RubyNumeric otherNumeric = numericValue(other); return newFixnum(value ^ otherNumeric.getLongValue()); } | 3,238,081 |
public RaiseException newNameError(String message) { throw new MockException(); } | public RaiseException newNameError(String message) { throw new MockException(); } | 3,238,082 |
public RaiseException newNoMethodError(String message) { throw new MockException(); } | public RaiseException newNoMethodError(String message) { throw new MockException(); } | 3,238,083 |
public static RubyModule createKernelModule(Ruby ruby) { RubyModule kernelModule = ruby.defineModule("Kernel"); CallbackFactory callbackFactory = ruby.callbackFactory(); kernelModule.defineMethod("Array", callbackFactory.getSingletonMethod(KernelModule.class, "new_array", IRubyObject.class)); ... | public static RubyModule createKernelModule(Ruby ruby) { RubyModule kernelModule = ruby.defineModule("Kernel"); CallbackFactory callbackFactory = ruby.callbackFactory(); kernelModule.defineMethod("Array", callbackFactory.getSingletonMethod(KernelModule.class, "new_array", IRubyObject.class)); ... | 3,238,084 |
public static IRubyObject sleep(IRubyObject recv, IRubyObject seconds) { try { Thread.sleep((long) (RubyNumeric.numericValue(seconds).getDoubleValue() * 1000.0)); } catch (InterruptedException iExcptn) { } return recv; } | public static IRubyObject sleep(IRubyObject recv, RubyNumeric seconds) { try { Thread.sleep((long) (RubyNumeric.numericValue(seconds).getDoubleValue() * 1000.0)); } catch (InterruptedException iExcptn) { } return recv; } | 3,238,085 |
public static IRubyObject sleep(IRubyObject recv, IRubyObject seconds) { try { Thread.sleep((long) (RubyNumeric.numericValue(seconds).getDoubleValue() * 1000.0)); } catch (InterruptedException iExcptn) { } return recv; } | public static IRubyObject sleep(IRubyObject recv, IRubyObject seconds) { try { Thread.sleep((long) (seconds.getDoubleValue() * 1000.0)); } catch (InterruptedException iExcptn) { } return recv; } | 3,238,086 |
public VALUE nd_lit() { return (VALUE)u1; } | public VALUE nd_lit() { return (VALUE)u1; } | 3,238,087 |
public IObject find(@NotNull final Class klass, final long id) { if ( klass == null ) throw new ApiUsageException( "Class argument to find cannot be null." ); return (IObject) getHibernateTemplate().execute(new HibernateCallback() { ... | public IObject find(@NotNull final Class klass, final long id) { if ( klass == null ) throw new ApiUsageException( "Class argument to find cannot be null." ); return (IObject) getHibernateTemplate().execute(new HibernateCallback() { ... | 3,238,088 |
public List findAllByExample(final IObject example, final Filter filter) { if ( example == null ) throw new ApiUsageException( "Example argument to findAllByExample cannot be null."); return (List) getHibernateTemplate().execute(new HibernateCallback() { ... | public List findAllByExample(@NotNull final IObject example, final Filter filter) { if ( example == null ) throw new ApiUsageException( "Example argument to findAllByExample cannot be null."); return (List) getHibernateTemplate().execute(new HibernateCallback()... | 3,238,089 |
public List findAllByExample(final IObject example, final Filter filter) { if ( example == null ) throw new ApiUsageException( "Example argument to findAllByExample cannot be null."); return (List) getHibernateTemplate().execute(new HibernateCallback() { ... | public List findAllByExample(final IObject example, final Filter filter) { if ( example == null ) throw new ApiUsageException( "Example argument to findAllByExample cannot be null."); return (List) getHibernateTemplate().execute(new HibernateCallback() { ... | 3,238,090 |
public IObject findByExample(@NotNull final IObject example) throws ApiUsageException { if ( example == null ) throw new ApiUsageException( "Example argument to findByExample cannot be null."); return (IObject) getHibernateTemplate().execute(new HibernateCallba... | public IObject findByExample(@NotNull final IObject example) throws ApiUsageException { if ( example == null ) throw new ApiUsageException( "Example argument to findByExample cannot be null."); return (IObject) getHibernateTemplate().execute(new HibernateCallba... | 3,238,091 |
int convertGraphicsIntoReal(int x) { int b = control.getGlobalMaximum(); int c = control.getGlobalMinimum(); int y = x-tW; double a = (c-b)/ (double) rangeGraphics; //b/c of the way values are computed. int r = (int) (a*y+b); if (r < c) r = c; if (r > b) r = b; return r; } | int convertGraphicsIntoReal(int x) { int b = control.getGlobalMaximum(); int c = control.getGlobalMinimum(); int y = x-tW; double a = (c-b)/ (double) rangeGraphics; //b/c of the way values are computed. int r = (int) (a*y+b); if (r < c) r = c; if (r > b) r = b; return r; } | 3,238,093 |
public void mouseDragged(MouseEvent e) { Point p = e.getPoint(); if (dragging) { if (boxInputStart.contains(p) && p.y >= minEndInputY && p.y <= absStart) { inputStartKnob = true; inputEndKnob = false; curRealValue = convertGraphicsIntoReal(p.y); control.setInputWindowSta... | public void mouseDragged(MouseEvent e) { Point p = e.getPoint(); if (dragging) { if (boxInputStart.contains(p) && p.y >= minEndInputY && p.y <= absStart) { inputStartKnob = true; inputEndKnob = false; curRealValue = convertGraphicsIntoReal(p.y); control.setInputWindowSta... | 3,238,094 |
public void mouseDragged(MouseEvent e) { Point p = e.getPoint(); if (dragging) { if (boxInputStart.contains(p) && p.y >= minEndInputY && p.y <= absStart) { inputStartKnob = true; inputEndKnob = false; curRealValue = convertGraphicsIntoReal(p.y); control.setInputWindowSta... | public void mouseDragged(MouseEvent e) { Point p = e.getPoint(); if (dragging) { if (boxInputStart.contains(p) && p.y >= minEndInputY && p.y <= absStart) { inputStartKnob = true; inputEndKnob = false; curRealValue = convertGraphicsIntoReal(p.y); control.setInputWindowSta... | 3,238,095 |
public void mousePressed(MouseEvent e) { Point p = e.getPoint(); if (!dragging) { dragging = true; if (boxInputStart.contains(p) && p.y >= minEndInputY && p.y <= absStart) { inputStartKnob = true; inputEndKnob = false; curRealValue = convertGraphicsIntoReal(p.y); control.setInputWindow... | public void mousePressed(MouseEvent e) { Point p = e.getPoint(); if (!dragging) { dragging = true; if (boxInputStart.contains(p) && p.y >= minEndInputY && p.y <= absStart) { inputStartKnob = true; inputEndKnob = false; curRealValue = convertGraphicsIntoReal(p.y); control.setInputWindow... | 3,238,096 |
public void mousePressed(MouseEvent e) { Point p = e.getPoint(); if (!dragging) { dragging = true; if (boxInputStart.contains(p) && p.y >= minEndInputY && p.y <= absStart) { inputStartKnob = true; inputEndKnob = false; curRealValue = convertGraphicsIntoReal(p.y); control.setInputWindow... | public void mousePressed(MouseEvent e) { Point p = e.getPoint(); if (!dragging) { dragging = true; if (boxInputStart.contains(p) && p.y >= minEndInputY && p.y <= absStart) { inputStartKnob = true; inputEndKnob = false; curRealValue = convertGraphicsIntoReal(p.y); control.setInputWindow... | 3,238,097 |
public void mousePressed(MouseEvent e) { Point p = e.getPoint(); if (!dragging) { dragging = true; if (boxInputStart.contains(p) && p.y >= minEndInputY && p.y <= absStart) { inputStartKnob = true; inputEndKnob = false; curRealValue = convertGraphicsIntoReal(p.y); control.setInputWindow... | public void mousePressed(MouseEvent e) { Point p = e.getPoint(); if (!dragging) { dragging = true; if (boxInputStart.contains(p) && p.y >= minEndInputY && p.y <= absStart) { inputStartKnob = true; inputEndKnob = false; curRealValue = convertGraphicsIntoReal(p.y); control.setInputWindow... | 3,238,098 |
public void mouseReleased(MouseEvent e) { if (inputStartKnob) control.setChannelWindowStart(curRealValue); else if (inputEndKnob) control.setChannelWindowEnd(curRealValue); dragging = false; inputStartKnob = false; inputEndKnob = false; } | public void mouseReleased(MouseEvent e) { if (inputStartKnob) control.setChannelWindowStart(curRealValue); else if (inputEndKnob) control.setChannelWindowEnd(curRealValue); dragging = false; inputStartKnob = false; inputEndKnob = false; } | 3,238,099 |
private void buildGUI() { getViewport().add(layeredPane); getViewport().setBackground(BACKGROUND); } | private void buildGUI() { getViewport().add(layeredPane); } | 3,238,100 |
public RubyBoolean eof() { try { boolean isEOF = handler.isEOF(); return isEOF ? getRuntime().getTrue() : getRuntime().getFalse(); } catch (IOHandler.BadDescriptorException e) { throw getRuntime().newErrnoEBADFError(); } catch (IOException e) { throw ge... | public RubyBoolean eof() { try { boolean isEOF = handler.isEOF(); return isEOF ? getRuntime().getTrue() : getRuntime().getFalse(); } catch (IOHandler.BadDescriptorException e) { throw getRuntime().newErrnoEBADFError(); } catch (IOException e) { throw ge... | 3,238,101 |
private static Class returnedObjectType(Object javaResult, Method returningMethod) { Class widestClass = returningMethod.getReturnType(); if (javaResult == null) { return widestClass; } Class narrowestClass = javaResult.getClass(); if (narrowestClass.isPrimitive()) { ... | private static Class returnedObjectType(Object javaResult, Method returningMethod) { Class widestClass = returningMethod.getReturnType(); if (javaResult == null) { return widestClass; } Class narrowestClass = javaResult.getClass(); if (narrowestClass.isPrimitive()) { ... | 3,238,102 |
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper) { return eval(ruby, recv); } | public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyPointer args, boolean noSuper) { return eval(ruby, recv); } | 3,238,103 |
private void check_cgc_ids(List ids) { for (CategoryGroup cg: (List<CategoryGroup>) list) { List catIds = cg.collectFromCategoryLinks( new IdBlock() ); assertTrue( "And our categories weren't there", catIds.containsAll( ids )); } } | private void check_cgc_ids(List ids) { for (CategoryGroup cg: (List<CategoryGroup>) list) { List catIds = cg.eachLinkedCategory( new IdBlock() ); assertTrue( "And our categories weren't there", catIds.containsAll( ids )); } } | 3,238,104 |
private void check_cgci_ids(List ids1, List ids2) { check_cgc_ids( ids1 ); for (CategoryGroup cg: (List<CategoryGroup>) list) { for (Category cat: (List<Category>) cg.collectFromCategoryLinks(null)) { List imagesIds = cat.collectFromImageLinks( new IdBloc... | private void check_cgci_ids(List ids1, List ids2) { check_cgc_ids( ids1 ); for (CategoryGroup cg: (List<CategoryGroup>) list) { for (Category cat: (List<Category>) cg.eachLinkedCategory(null)) { List imagesIds = cat.collectFromImageLinks( new IdBlock() );... | 3,238,105 |
private void check_cgci_ids(List ids1, List ids2) { check_cgc_ids( ids1 ); for (CategoryGroup cg: (List<CategoryGroup>) list) { for (Category cat: (List<Category>) cg.collectFromCategoryLinks(null)) { List imagesIds = cat.collectFromImageLinks( new IdBloc... | private void check_cgci_ids(List ids1, List ids2) { check_cgc_ids( ids1 ); for (CategoryGroup cg: (List<CategoryGroup>) list) { for (Category cat: (List<Category>) cg.collectFromCategoryLinks(null)) { List imagesIds = cat.eachLinkedImage( new IdBlock() );... | 3,238,106 |
private void check_ci_ids(List ids) { for (Category cat: (List<Category>) list) { List imgIds = cat.collectFromImageLinks( new IdBlock() ); assertTrue( "And our images weren't there", imgIds.containsAll( ids )); } } | private void check_ci_ids(List ids) { for (Category cat: (List<Category>) list) { List imgIds = cat.eachLinkedImage( new IdBlock() ); assertTrue( "And our images weren't there", imgIds.containsAll( ids )); } } | 3,238,107 |
private void check_di_ids(List ids) { for (Dataset ds: (List<Dataset>) list) { List imgIds = ds.collectFromImageLinks( new IdBlock() ); assertTrue( "And our images weren't there", imgIds.containsAll( ids )); } } | private void check_di_ids(List ids) { for (Dataset ds: (List<Dataset>) list) { List imgIds = ds.eachLinkedImage( new IdBlock() ); assertTrue( "And our images weren't there", imgIds.containsAll( ids )); } } | 3,238,108 |
private void check_pd_ids(List ids) { for (Project prj : (List<Project>) list) { List datasetIds = prj.collectFromDatasetLinks( new IdBlock() ); assertTrue( "And our datasets weren't there", datasetIds.containsAll( ids )); } } | private void check_pd_ids(List ids) { for (Project prj : (List<Project>) list) { List datasetIds = prj.eachLinkedDataset( new IdBlock() ); assertTrue( "And our datasets weren't there", datasetIds.containsAll( ids )); } } | 3,238,109 |
private void check_pdi_ids(List ids1, List ids2) { check_pd_ids( ids1 ); for (Project prj : (List<Project>) list) { for (Dataset ds : (List<Dataset>) prj.collectFromDatasetLinks(null)) { List imagesIds = ds.collectFromImageLinks( new IdBlock() ); ... | private void check_pdi_ids(List ids1, List ids2) { check_pd_ids( ids1 ); for (Project prj : (List<Project>) list) { for (Dataset ds : (List<Dataset>) prj.eachLinkedDataset(null)) { List imagesIds = ds.collectFromImageLinks( new IdBlock() ); ... | 3,238,110 |
private void check_pdi_ids(List ids1, List ids2) { check_pd_ids( ids1 ); for (Project prj : (List<Project>) list) { for (Dataset ds : (List<Dataset>) prj.collectFromDatasetLinks(null)) { List imagesIds = ds.collectFromImageLinks( new IdBlock() ); ... | private void check_pdi_ids(List ids1, List ids2) { check_pd_ids( ids1 ); for (Project prj : (List<Project>) list) { for (Dataset ds : (List<Dataset>) prj.collectFromDatasetLinks(null)) { List imagesIds = ds.eachLinkedImage( new IdBlock() ); ... | 3,238,111 |
public ThreadService(IRuby runtime) { this.runtime = runtime; this.mainContext = new ThreadContext(runtime); this.localContext = new ThreadLocal(); this.rubyThreadGroup = new ThreadGroup("Ruby Threads#" + runtime.hashCode()); this.rubyThreadList = Collections.synchronizedList(new ... | public ThreadService(IRuby runtime) { this.runtime = runtime; this.mainContext = new ThreadContext(runtime); this.localContext = new ThreadLocal(); this.rubyThreadGroup = new ThreadGroup("Ruby Threads#" + runtime.hashCode()); this.rubyThreadList = Collections.synchronizedSet(new W... | 3,238,112 |
private void initComponents() { graphicsPane = new GraphicsPane(model, controller); familyBox = new JComboBox(model.getFamilies().toArray()); String family = model.getFamily(); familyBox.setSelectedItem(family); familyBox.addActionListener(this); familyBox.setActionComma... | private void initComponents() { graphicsPane = new GraphicsPane(model, controller); familyBox = new JComboBox(model.getFamilies().toArray()); String family = model.getFamily(); familyBox.setSelectedItem(family); familyBox.addActionListener(this); familyBox.setActionComma... | 3,238,113 |
private void initComponents() { graphicsPane = new GraphicsPane(model, controller); familyBox = new JComboBox(model.getFamilies().toArray()); String family = model.getFamily(); familyBox.setSelectedItem(family); familyBox.addActionListener(this); familyBox.setActionComma... | private void initComponents() { graphicsPane = new GraphicsPane(model, controller); familyBox = new JComboBox(model.getFamilies().toArray()); String family = model.getFamily(); familyBox.setSelectedItem(family); familyBox.addActionListener(this); familyBox.setActionComma... | 3,238,114 |
final protected void execute(Template tmpl, WebContext c) { Writer out = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); ... | final protected void execute(Template tmpl, WebContext c) { FastWriter fw = null; boolean timing = Flags.PROFILE && c.isTiming(); try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); ... | 3,238,115 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.