bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void propertyChange(PropertyChangeEvent pce) { String propName = pce.getPropertyName(); if (Browser.POPUP_POINT_PROPERTY.equals(propName)) { Browser browser = model.getBrowser(); if (browser == null) return; ImageDisplay d = browser.getLastSelectedDisplay();... | public void propertyChange(PropertyChangeEvent pce) { String propName = pce.getPropertyName(); if (Browser.POPUP_POINT_PROPERTY.equals(propName)) { Browser browser = model.getBrowser(); if (browser == null) return; ImageDisplay d = browser.getLastSelectedDisplay();... | 3,237,794 |
public void paintComponent(Graphics og) { super.paintComponent(og); Graphics2D g = (Graphics2D) og; g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); double width = getWidth(); double height = getHeight(); g.setColor(FILLCOLOUR); g.fillRect(1, ... | public void paintComponent(Graphics og) { super.paintComponent(og); Graphics2D g = (Graphics2D) og; g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); double width = getWidth(); double height = getHeight(); g.setColor(FILLCOLOUR); g.fillRect(1, ... | 3,237,796 |
public void actionPerformed(ActionEvent e) { int index = -1; try { index = Integer.parseInt(e.getActionCommand()); switch (index) { case SAVE: saveSelection(); break; case ALL: selectAll(); break; case CANCEL: cancelSelection(); break; case SHOW_IMAGES: ... | public void actionPerformed(ActionEvent e) { int index = -1; try { index = Integer.parseInt(e.getActionCommand()); switch (index) { case SAVE: saveSelection(); break; case ALL: selectAll(); break; case CANCEL: cancelSelection(); break; case SHOW_IMAGES: ... | 3,237,797 |
private void showImages() { int selectedIndex = view.selections.getSelectedIndex(); if (selectedIndex != selectionIndex) { selectionIndex = selectedIndex; List images = null; switch (selectedIndex) { case DatasetImagesDiffPane.IMAGES_IMPORTED: ... | private void showImages() { int selectedIndex = view.selections.getSelectedIndex(); if (selectedIndex != selectionIndex) { selectionIndex = selectedIndex; List images = null; switch (selectedIndex) { case DatasetImagesDiffPane.IMAGES_IMPORTED: ... | 3,237,799 |
private void showImages() { int selectedIndex = view.selections.getSelectedIndex(); if (selectedIndex != selectionIndex) { selectionIndex = selectedIndex; List images = null; switch (selectedIndex) { case DatasetImagesDiffPane.IMAGES_IMPORTED: ... | private void showImages() { int selectedIndex = view.selections.getSelectedIndex(); if (selectedIndex != selectionIndex) { selectionIndex = selectedIndex; List images = null; switch (selectedIndex) { case DatasetImagesDiffPane.IMAGES_IMPORTED: ... | 3,237,800 |
private void checkNotificationPreferences(final ChatRoom room) { LocalPreferences pref = SettingsManager.getLocalPreferences(); if (pref.getWindowTakesFocus()) { chatFrame.setState(Frame.NORMAL); chatFrame.setVisible(true); int tabLocation = indexOfComponent(room); ... | private void checkNotificationPreferences(final ChatRoom room) { LocalPreferences pref = SettingsManager.getLocalPreferences(); if (pref.getWindowTakesFocus()) { chatFrame.setState(Frame.NORMAL); chatFrame.setVisible(true); int tabLocation = indexOfComponent(room); ... | 3,237,801 |
public void setIter(int newIter) { if (count > 0) { prev = new RubyIter(iter, prev); prev.count --; count = 0; } iter = newIter; } | public void setIter(int newIter) { if (count > 0) { prev = new RubyIter(iter, prev); prev.count --; count = 0; } iter = newIter; } | 3,237,803 |
public RubyArray getRubyArray(Ruby ruby, RubyObject self) { ArrayList ary = new ArrayList(getALength()); for (Node node = this; node != null ; node = node.getNextNode()) { ary.add(node.getHeadNode().eval(ruby, self)); } return RubyArray.m_newArray(ruby, ary); } | public RubyArray getRubyArray(Ruby ruby, RubyObject self) { ArrayList ary = new ArrayList(getALength()); for (Node node = this; node != null ; node = node.getNextNode()) { ary.add(node.getHeadNode().eval(ruby, self)); } return RubyArray.m_newArray(ruby, ary); } | 3,237,804 |
public static IRubyObject chdir(IRubyObject recv, IRubyObject[] args) { recv.checkArgumentCount(args, 0, 1); RubyString path = args.length == 1 ? (RubyString) args[0].convertToString() : getHomeDirectoryPath(recv); NormalizedFile dir = getDir(recv.getRuntime(), path.toString(), tru... | public static IRubyObject chdir(IRubyObject recv, IRubyObject[] args) { recv.checkArgumentCount(args, 0, 1); RubyString path = args.length == 1 ? (RubyString) args[0].convertToString() : getHomeDirectoryPath(recv); NormalizedFile dir = getDir(recv.getRuntime(), path.toString(), tru... | 3,237,805 |
public static RubyString getwd(IRubyObject recv) { return recv.getRuntime().newString(System.getProperty("user.dir")); } | public static RubyString getwd(IRubyObject recv) { return recv.getRuntime().newString(NormalizedFile.getFileProperty("user.dir")); } | 3,237,806 |
public static RubyArray glob(IRubyObject recv, RubyString pat) { String pattern = pat.toString(); String[] files = new Glob(System.getProperty("user.dir"), pattern).getNames(); return recv.getRuntime().newArray(JavaUtil.convertJavaArrayToRuby(recv.getRuntime(), files)); } | public static RubyArray glob(IRubyObject recv, RubyString pat) { String pattern = pat.toString(); String[] files = new Glob(NormalizedFile.getFileProperty("user.dir"), pattern).getNames(); return recv.getRuntime().newArray(JavaUtil.convertJavaArrayToRuby(recv.getRuntime(), files)); } | 3,237,807 |
public void paint(Graphics2D g, Thumbnail t) { Rectangle2D region = t.getBounds().getBounds2D(); if(thumbnailColorMap.containsKey(t.getModel())) { Paint p = (Paint)thumbnailColorMap.get(t); if(p != null) ... | public void paint(Graphics2D g, Thumbnail t) { Rectangle2D region = t.getBounds().getBounds2D(); if(thumbnailColorMap.containsKey(t.getModel())) { Paint p = (Paint)thumbnailColorMap.get(t.getModel()); if(p != null)... | 3,237,808 |
public void setupMethod(ThumbnailDataModel tdm) { AttributeMap attrMap = tdm.getAttributeMap(); List attributes = attrMap.getAttributes(attributeName); if(attributes == null || attributes.size() == 0) { thumbnailColorM... | public void setupMethod(ThumbnailDataModel tdm) { AttributeMap attrMap = tdm.getAttributeMap(); List attributes = attrMap.getAttributes(attributeName); if(attributes == null || attributes.size() == 0) { thumbnailColorM... | 3,237,809 |
private void buildUI() { add(properties); //add(annotate); add(createClassifySubMenu()); add(new JSeparator(SwingConstants.HORIZONTAL)); add(view); } | add(annotate); add(annotate); add(annotate); add(annotate); privateadd(annotate); voidadd(annotate); buildUI()add(annotate); add(annotate); add(annotate); add(annotate); {add(annotate); add(annotate); add(annotate); add(annotate); add(annotate); add(annotate); add(annotate); add(annotate); add(properties);add(annotate)... | 3,237,810 |
public void testClassificationExclusivity() throws Exception { CategoryGroup cg = new CategoryGroup(); Category c1 = new Category(); Category c2 = new Category(); Image i = new Image(); // FIXME link them up try { re.evaluate(c1); fail("Rule did not catch the error."); } catch (ConsequenceExc... | public void testClassificationExclusivity() throws Exception { CategoryGroup cg = new CategoryGroup(); Category c1 = new Category(); Category c2 = new Category(); Image i = new Image(); // FIXME link them up try { re.evaluate(c1); fail("Rule did not catch the error."); } catch (ConsequenceExc... | 3,237,811 |
private XMPPConnection getConnection() throws XMPPException { LocalPreferences localPref = SettingsManager.getLocalPreferences(); XMPPConnection con; // Get connection int port = localPref.getXmppPort(); String serverName = getServer(); int checkForPort = serverName.indexOf... | private XMPPConnection getConnection() throws XMPPException { LocalPreferences localPref = SettingsManager.getLocalPreferences(); XMPPConnection con; // Get connection int port = localPref.getXmppPort(); String serverName = getServer(); int checkForPort = serverName.indexOf... | 3,237,813 |
public static GroupChatRoom enterRoomOnSameThread(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); final LocalPreferences pref = SettingsMa... | public static GroupChatRoom enterRoomOnSameThread(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final LocalPreferences pref = SettingsManager.getLocalPreferences(); final String nickname = pref.getNickname().trim(); ... | 3,237,814 |
private void addInstrumentation(File file) { if (isClass(file)) { addInstrumentationToSingleClass(file); } else if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumenta... | private void addInstrumentation(File file) { if (isClass(file)) { addInstrumentationToSingleClass(file); } else if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumenta... | 3,237,816 |
private void parseArguments(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Parse our parameters FileFinder finder = new FileFinder(); for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) finder.add... | private void parseArguments(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Parse our parameters List filePaths = new ArrayList(); for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) finder.addBase... | 3,237,817 |
private void parseArguments(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Parse our parameters FileFinder finder = new FileFinder(); for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) finder.add... | private void parseArguments(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Parse our parameters FileFinder finder = new FileFinder(); for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) finder.add... | 3,237,818 |
private void parseArguments(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Parse our parameters FileFinder finder = new FileFinder(); for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) finder.add... | private void parseArguments(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Parse our parameters FileFinder finder = new FileFinder(); for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) finder.add... | 3,237,819 |
private void parseArguments(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Parse our parameters FileFinder finder = new FileFinder(); for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) finder.add... | private void parseArguments(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Parse our parameters FileFinder finder = new FileFinder(); for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) finder.add... | 3,237,820 |
private void parseArguments(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Parse our parameters FileFinder finder = new FileFinder(); for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) finder.add... | private void parseArguments(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Parse our parameters FileFinder finder = new FileFinder(); for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) finder.add... | 3,237,821 |
public Object get(final String query) throws NotFoundException { TimedReference r = (TimedReference) _cache.get(query); Object o = null; if (r != null) { o = r.get(); } if (o == null) { r = load(query); if (r != null) { _cache.put(query,r); o =... | public Object get(final String query) throws NotFoundException { TimedReference r; try { r = (TimedReference) _cache.get(query); } catch (NullPointerException e) { throw new NotFoundException(this + " is not initialized", e); } Object o = null; if (r != null) { o = r.get(); } if (o... | 3,237,822 |
public void stuffContext (Context context) throws Exception { context.setEvaluationExceptionHandler ( new DefaultEvaluationExceptionHandler ()); context.put ("d", d); } | public void stuffContext (Context context) throws Exception { context.setEvaluationExceptionHandler ( new DefaultEvaluationExceptionHandler ()); context.put ("d", d); } | 3,237,823 |
public GeronimoServiceFactory(ProxyManager proxyManager, GBeanDefinition gbeanDefinition) { this.proxyManager = proxyManager; this.gbeanDefinition = gbeanDefinition; // add the dependencies String[] dependsOn = gbeanDefinition.getDependsOn(); if (dependsOn != null) { fo... | public GeronimoServiceFactory(RootBeanDefinition beanDefinition, Map dynamicProperties, MetadataManager metadataManager, ProxyManager proxyManager) throws Exception { this.metadataManager = metadataManager; this.proxyManager = proxyManager; this.gbeanDefinition = gbeanDefinition; // add the dep... | 3,237,824 |
public GeronimoServiceFactory(ProxyManager proxyManager, GBeanDefinition gbeanDefinition) { this.proxyManager = proxyManager; this.gbeanDefinition = gbeanDefinition; // add the dependencies String[] dependsOn = gbeanDefinition.getDependsOn(); if (dependsOn != null) { fo... | public GeronimoServiceFactory(ProxyManager proxyManager, GBeanDefinition gbeanDefinition) { this.proxyManager = proxyManager; this.gbeanDefinition = gbeanDefinition; // add the dependencies String[] dependsOn = gbeanDefinition.getDependsOn(); if (dependsOn != null) { fo... | 3,237,825 |
public Object createService(ServiceContext serviceContext) throws Exception { try { Object service = null; ServiceContext oldServiceContext = ServiceContextThreadLocal.get(); try { ServiceContextThreadLocal.set(serviceContext); applicationContext... | public Object createService(ServiceContext serviceContext) throws Exception { try { Object service = null; ServiceContext oldServiceContext = ServiceContextThreadLocal.get(); try { ServiceContextThreadLocal.set(serviceContext); applicationContext... | 3,237,827 |
public Object createService(ServiceContext serviceContext) throws Exception { try { Object service = null; ServiceContext oldServiceContext = ServiceContextThreadLocal.get(); try { ServiceContextThreadLocal.set(serviceContext); applicationContext... | public Object createService(ServiceContext serviceContext) throws Exception { try { Object service = null; ServiceContext oldServiceContext = ServiceContextThreadLocal.get(); try { ServiceContextThreadLocal.set(serviceContext); applicationContext... | 3,237,828 |
public void destroyService(ServiceContext serviceContext, Object service) { // update the persistent attributes try { if (service != null) { // update the persistent values GBeanDefinition gbeanDefinition = new GBeanDefinition(this.gbeanDefinition); ... | public void destroyService(ServiceContext serviceContext, Object service) { // update the persistent attributes try { if (service != null) { // update the persistent values GBeanDefinition gbeanDefinition = new GBeanDefinition(this.gbeanDefinition); ... | 3,237,830 |
private Object getCurrentValue(Map getters, Object service, String propertyName, Object defaultValue) { Object value = defaultValue; try { Method getter = (Method) getters.get(propertyName); if (getter != null) { value = getter.invoke(service, null); } ... | private Object getCurrentValue(Map getters, Object service, String propertyName, Object defaultValue) { Object value = defaultValue; try { Method getter = (Method) getters.get(propertyName); if (getter != null) { value = getter.invoke(service, null); } ... | 3,237,831 |
public Object getProperty(String propertyName) { PropertyValue propertyValue = gbeanDefinition.getPropertyValues().getPropertyValue(propertyName); if (propertyValue != null) { return propertyValue.getValue(); } propertyValue = gbeanDefinition.getDynamicPropertyValues().getProp... | public Object getProperty(String propertyName) { if (persistentProperties == null || !persistentProperties.contains(propertyName)) { throw new IllegalArgumentException("Property is not persistent:" + " propertyName=" + propertyName + ", serviceType: " + beanDefinition.getBeanClassName()); } PropertyValue pr... | 3,237,833 |
public Object getProperty(String propertyName) { PropertyValue propertyValue = gbeanDefinition.getPropertyValues().getPropertyValue(propertyName); if (propertyValue != null) { return propertyValue.getValue(); } propertyValue = gbeanDefinition.getDynamicPropertyValues().getProp... | public Object getProperty(String propertyName) { PropertyValue propertyValue = gbeanDefinition.getPropertyValues().getPropertyValue(propertyName); if (propertyValue != null) { return propertyValue.getValue(); } propertyValue = gbeanDefinition.getDynamicPropertyValues().getProp... | 3,237,834 |
public Object getProperty(String propertyName) { PropertyValue propertyValue = gbeanDefinition.getPropertyValues().getPropertyValue(propertyName); if (propertyValue != null) { return propertyValue.getValue(); } propertyValue = gbeanDefinition.getDynamicPropertyValues().getProp... | public Object getProperty(String propertyName) { PropertyValue propertyValue = gbeanDefinition.getPropertyValues().getPropertyValue(propertyName); if (propertyValue != null) { return propertyValue.getValue(); } propertyValue = gbeanDefinition.getDynamicPropertyValues().getProp... | 3,237,835 |
public Set getPropertyNames() { Set propertyNames = new HashSet(); PropertyValue[] propertyValues = gbeanDefinition.getPropertyValues().getPropertyValues(); for (int i = 0; i < propertyValues.length; i++) { PropertyValue propertyValue = propertyValues[i]; propertyNames.add... | public Set getPropertyNames() { Set propertyNames = new HashSet(); PropertyValue[] propertyValues = gbeanDefinition.getPropertyValues().getPropertyValues(); for (int i = 0; i < propertyValues.length; i++) { PropertyValue propertyValue = propertyValues[i]; propertyNames.add... | 3,237,836 |
public Set getPropertyNames() { Set propertyNames = new HashSet(); PropertyValue[] propertyValues = gbeanDefinition.getPropertyValues().getPropertyValues(); for (int i = 0; i < propertyValues.length; i++) { PropertyValue propertyValue = propertyValues[i]; propertyNames.add... | public Set getPropertyNames() { Set propertyNames = new HashSet(); PropertyValue[] propertyValues = gbeanDefinition.getPropertyValues().getPropertyValues(); for (int i = 0; i < propertyValues.length; i++) { PropertyValue propertyValue = propertyValues[i]; propertyNames.add... | 3,237,837 |
public boolean isEnabled() { return gbeanDefinition.isEnabled(); } | public boolean isEnabled() { return enabled; } | 3,237,838 |
public void setEnabled(boolean enabled) { gbeanDefinition.setEnabled(enabled); } | public void setEnabled(boolean enabled) { this.enabled = enabled; } | 3,237,839 |
public void setProperty(String propertyName, Object persistentValue) { if (gbeanDefinition.getPropertyValues().contains(propertyName)) { gbeanDefinition.getPropertyValues().removePropertyValue(propertyName); gbeanDefinition.getPropertyValues().addPropertyValue(propertyName, persistentVa... | public void setProperty(String propertyName, Object persistentValue) { if (gbeanDefinition.getPropertyValues().contains(propertyName)) { gbeanDefinition.getPropertyValues().removePropertyValue(propertyName); gbeanDefinition.getPropertyValues().addPropertyValue(propertyName, persistentVa... | 3,237,840 |
public void setProperty(String propertyName, Object persistentValue) { if (gbeanDefinition.getPropertyValues().contains(propertyName)) { gbeanDefinition.getPropertyValues().removePropertyValue(propertyName); gbeanDefinition.getPropertyValues().addPropertyValue(propertyName, persistentVa... | public void setProperty(String propertyName, Object persistentValue) { if (gbeanDefinition.getPropertyValues().contains(propertyName)) { gbeanDefinition.getPropertyValues().removePropertyValue(propertyName); gbeanDefinition.getPropertyValues().addPropertyValue(propertyName, persistentVa... | 3,237,841 |
private void updatePersistentValues(Object service, GBeanDefinition gbeanDefinition) { Map getters = new HashMap(); Method[] methods = service.getClass().getMethods(); for (int i = 0; i < methods.length; i++) { Method method = methods[i]; String methodName = method.getName... | private void updatePersistentValues(Object service, RootBeanDefinition beanDefinition) { Map getters = new HashMap(); Method[] methods = service.getClass().getMethods(); for (int i = 0; i < methods.length; i++) { Method method = methods[i]; String methodName = method.getNa... | 3,237,842 |
private void updatePersistentValues(Object service, GBeanDefinition gbeanDefinition) { Map getters = new HashMap(); Method[] methods = service.getClass().getMethods(); for (int i = 0; i < methods.length; i++) { Method method = methods[i]; String methodName = method.getName... | private void updatePersistentValues(Object service, GBeanDefinition gbeanDefinition) { Map getters = new HashMap(); Method[] methods = service.getClass().getMethods(); for (int i = 0; i < methods.length; i++) { Method method = methods[i]; String methodName = method.getName... | 3,237,843 |
private void updatePersistentValues(Object service, GBeanDefinition gbeanDefinition) { Map getters = new HashMap(); Method[] methods = service.getClass().getMethods(); for (int i = 0; i < methods.length; i++) { Method method = methods[i]; String methodName = method.getName... | private void updatePersistentValues(Object service, GBeanDefinition gbeanDefinition) { Map getters = new HashMap(); Method[] methods = service.getClass().getMethods(); for (int i = 0; i < methods.length; i++) { Method method = methods[i]; String methodName = method.getName... | 3,237,844 |
private void updatePersistentValues(Object service, GBeanDefinition gbeanDefinition) { Map getters = new HashMap(); Method[] methods = service.getClass().getMethods(); for (int i = 0; i < methods.length; i++) { Method method = methods[i]; String methodName = method.getName... | private void updatePersistentValues(Object service, GBeanDefinition gbeanDefinition) { Map getters = new HashMap(); Method[] methods = service.getClass().getMethods(); for (int i = 0; i < methods.length; i++) { Method method = methods[i]; String methodName = method.getName... | 3,237,845 |
private void updatePersistentValues(Object service, GBeanDefinition gbeanDefinition) { Map getters = new HashMap(); Method[] methods = service.getClass().getMethods(); for (int i = 0; i < methods.length; i++) { Method method = methods[i]; String methodName = method.getName... | private void updatePersistentValues(Object service, GBeanDefinition gbeanDefinition) { Map getters = new HashMap(); Method[] methods = service.getClass().getMethods(); for (int i = 0; i < methods.length; i++) { Method method = methods[i]; String methodName = method.getName... | 3,237,846 |
Object clean(Object obj) { //TODO push OMEModel down into all calls if (null != obj) { if (obj instanceof OMEModel) { daoUtils.clean((OMEModel) obj); } else if (obj instanceof Set) { daoUtils.clean((Set) obj); } else if (obj instanceof Map... | public Object clean(Object obj) { //TODO push OMEModel down into all calls if (null != obj) { if (obj instanceof OMEModel) { daoUtils.clean((OMEModel) obj); } else if (obj instanceof Set) { daoUtils.clean((Set) obj); } else if (obj instanc... | 3,237,847 |
public String toString(){ return "FormalOutput"+(formalOutputId==null ? ":Hash"+this.hashCode() : ":"+formalOutputId); } | public String toString(){ return "FormalOutput"+(formalOutputId==null ? ":Hash_"+this.hashCode() : ":Id_"+formalOutputId); } | 3,237,848 |
public void componentMoved(ComponentEvent ce) {} | public void componentMoved(ComponentEvent ce) {} | 3,237,849 |
public void handleException(Throwable exc) { String s = "Thumbnail Retrieval Failure: "; registry.getLogger().error(this, s+exc); registry.getUserNotifier().notifyError("Thumbnail Retrieval Failure", s, exc); viewer.setThumbnail(null); ... | public void handleException(Throwable exc) { String s = "Thumbnail Retrieval Failure: "; registry.getLogger().error(this, s+exc); registry.getUserNotifier().notifyError("Thumbnail Retrieval Failure", s, exc); viewer.setThumbnail(null); ... | 3,237,850 |
public void initialize() { if (Spark.isMac()) { roomListener = new DockRoomListener(); SparkManager.getChatManager().addChatRoomListener(roomListener); // Remove the About Menu Item from the help menu MainWindow mainWindow = SparkManager.getMainWindow(); ... | public void initialize() { if (Spark.isMac()) { roomListener = new DockRoomListener(); SparkManager.getChatManager().addChatRoomListener(roomListener); // Remove the About Menu Item from the help menu MainWindow mainWindow = SparkManager.getMainWindow(); ... | 3,237,851 |
public void initialize() { if (Spark.isMac()) { roomListener = new DockRoomListener(); SparkManager.getChatManager().addChatRoomListener(roomListener); // Remove the About Menu Item from the help menu MainWindow mainWindow = SparkManager.getMainWindow(); ... | public void initialize() { if (Spark.isMac()) { roomListener = new DockRoomListener(); SparkManager.getChatManager().addChatRoomListener(roomListener); // Remove the About Menu Item from the help menu MainWindow mainWindow = SparkManager.getMainWindow(); ... | 3,237,852 |
public Font getDefaultFont(){ return defaultFont; } | public Font getDefaultFont() { return defaultFont; } | 3,237,857 |
public void setSelected(boolean selected) { super.setSelected(selected); this.selected = selected; if (boldWhenActive && selected) { textLabel.setFont(textLabel.getFont().deriveFont(Font.BOLD)); } else if(boldWhenActive && !selected){ textLabel.setFont(defaul... | public void setSelected(boolean selected) { super.setSelected(selected); this.selected = selected; if (boldWhenActive && selected) { textLabel.setFont(textLabel.getFont().deriveFont(Font.BOLD)); } else if (boldWhenActive && !selected) { textLabel.setFont(defa... | 3,237,858 |
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,237,860 |
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, 5... | 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,237,861 |
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, 24... | 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,237,862 |
public void testContainedImages(){ // Something Set result = (Set) testFindPDIHierarchies(); assertTrue(nonNull, result != null && result.size() != 0); // Not to much Set test = Utils.getImagesinPID(result); assertTrue("There should only be as many images as in the data.ima... | public void testContainedImages(){ // Something Set result = (Set) testFindPDIHierarchies(); assertTrue(nonNull, result != null && result.size() != 0); // Not to much Set test = Utils.getImagesinPID(result); assertTrue("There should only be as many images as in the data.ima... | 3,237,863 |
public void testContainedImages(){ // Something Set result = (Set) testFindPDIHierarchies(); assertTrue(nonNull, result != null && result.size() != 0); // Not to much Set test = Utils.getImagesinPID(result); assertTrue("There should only be as many images as in the data.ima... | public void testContainedImages(){ // Something Set result = (Set) testFindPDIHierarchies(); assertTrue(nonNull, result != null && result.size() != 0); // Not to much Set test = Utils.getImagesinPID(result); assertTrue("There should only be as many images "+test.size()+" as... | 3,237,864 |
private boolean CMDARG_P() { return (cmdarg_stack != 0 && (cmdarg_stack & 1) != 0); } | private boolean CMDARG_P() { return (cmdarg_stack != 0 && (cmdarg_stack & 1) != 0); } | 3,237,866 |
public void CMDARG_POP() { cmdarg_stack >>= 1; } | public void CMDARG_POP() { cmdarg_stack >>= 1; } | 3,237,867 |
public void CMDARG_PUSH() { cmdarg_stack = (cmdarg_stack << 1) | 1; } | public void CMDARG_PUSH() { cmdarg_stack = (cmdarg_stack << 1) | 1; } | 3,237,868 |
private boolean COND_P() { return (cond_nest > 0 && (cond_stack & 1) != 0); } | private boolean COND_P() { return (cond_nest > 0 && (cond_stack & 1) != 0); } | 3,237,869 |
public void COND_POP() { cond_nest--; cond_stack >>= 1; } | public void COND_POP() { cond_nest--; cond_stack >>= 1; } | 3,237,870 |
public void COND_PUSH() { cond_nest++; cond_stack = (cond_stack << 1) | 1; } | public void COND_PUSH() { cond_nest++; cond_stack = (cond_stack << 1) | 1; } | 3,237,871 |
public RubyYaccLexer() { } | public RubyYaccLexer() { } | 3,237,872 |
public boolean advance() throws IOException { return (token = yylex()) != 0; } | public boolean advance() throws IOException { return (token = yylex()) != 0; } | 3,237,873 |
private void arg_ambiguous() { errorHandler.handleError(IErrors.WARNING, support.getPosition(), Messages.getString("ambiguous_first_argument")); //$NON-NLS-1$ } | private void arg_ambiguous() { errorHandler.handleError(IErrors.WARNING, support.getPosition(), Messages.getString("ambiguous_first_argument")); //$NON-NLS-1$ } | 3,237,874 |
private static final Object getInteger(String value, int radix) { try { return Long.valueOf(value, radix); } catch (NumberFormatException e) { return new BigInteger(value, radix); } } | private static final Object getInteger(String value, int radix) { try { return Long.valueOf(value, radix); } catch (NumberFormatException e) { return new BigInteger(value, radix); } } | 3,237,875 |
private static final Keyword getKeyword(String w, int len) { return Keyword.getKeyword(w, len); } | private static final Keyword getKeyword(String w, int len) { return Keyword.getKeyword(w, len); } | 3,237,876 |
private int getNumberToken(String number, boolean isFloat, char nondigit) { if (nondigit != '\0') { //trailing_uc: errorHandler.handleError(IErrors.SYNTAX_ERROR, Messages.getString("trailing_uc", Character.toString(nondigit))); //$NON-NLS-1$ return 0; } if (isFloat) { Double d = new Double(0.0); ... | private int getNumberToken(String number, boolean isFloat, char nondigit) { if (nondigit != '\0') { //trailing_uc: errorHandler.handleError(IErrors.SYNTAX_ERROR, Messages.getString("trailing_uc", Character.toString(nondigit))); //$NON-NLS-1$ return 0; } if (isFloat) { Double d = new Double(0.0); ... | 3,237,877 |
public ISourcePosition getPosition() { return _curPos; } | public ISourcePosition getPosition() { return _curPos; } | 3,237,878 |
public ILexerSupport getSupport() { return support; } | public ILexerSupport getSupport() { return support; } | 3,237,879 |
private final boolean isArgState() { return lexState.isExprArg(); } | private final boolean isArgState() { return lexState.isExprArg(); } | 3,237,880 |
private static final boolean isHexDigit(int c) { return c >= '0' && c <= '9' || c >= 'a' && c <= 'f' || c >= 'A' && c <= 'F'; } | private static final boolean isHexDigit(int c) { return c >= '0' && c <= '9' || c >= 'a' && c <= 'f' || c >= 'A' && c <= 'F'; } | 3,237,881 |
private static final boolean isIdentifierChar(int ch) { return Character.isLetterOrDigit((char) ch) || ch == '_'; } | private static final boolean isIdentifierChar(int ch) { return Character.isLetterOrDigit((char) ch) || ch == '_'; } | 3,237,882 |
private static final boolean isSpace(int c) { return Character.isWhitespace((char) c); } | private static final boolean isSpace(int c) { return Character.isWhitespace((char) c); } | 3,237,883 |
private void newtok() { tokenbuf = new StringBuffer(60); } | private void newtok() { tokenbuf = new StringBuffer(60); } | 3,237,884 |
private int nextc() { int c = support.read(); if (c == 65535) { c = -1; } return c; } | private int nextc() { int c = support.read(); if (c == 65535) { c = -1; } return c; } | 3,237,885 |
private int nextc() { int c = support.read(); if (c == 65535) { c = -1; } return c; } | private int nextc() { int c = support.read(); if (c == 65535) { c = -1; } return c; } | 3,237,886 |
private int nextc() { int c = support.read(); if (c == 65535) { c = -1; } return c; } | private int nextc() { int c = support.read(); if (c == 65535) { c = -1; } return c; } | 3,237,887 |
private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | 3,237,888 |
private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | 3,237,889 |
private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | 3,237,890 |
private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | 3,237,891 |
private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | 3,237,892 |
private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | 3,237,893 |
private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | 3,237,894 |
private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | 3,237,895 |
private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | private boolean parseExpressionString(IListNode list, char closeQuote, StringToken token) throws EOFException { char c = support.read(); switch (c) { case '$' : case '@' : case '{' : break; default : token.append('#'); support.unread(); return false; } if (token.getLength() > 0) { ... | 3,237,896 |
private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | 3,237,897 |
private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | 3,237,898 |
private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | 3,237,899 |
private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | 3,237,900 |
private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | 3,237,901 |
private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | 3,237,902 |
private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | 3,237,903 |
private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | 3,237,904 |
private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | 3,237,905 |
private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | 3,237,906 |
private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote ==... | 3,237,907 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.