bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void run() { final ContactList contactList = SparkManager.getWorkspace().getContactList(); ChatRoom chatRoom = null; try { chatRoom = getChatContainer().getChatRoom(StringUtils.parseBareAddress(from)); if (chatRoom != ... | public void run() { ContactList contactList = SparkManager.getWorkspace().getContactList(); ChatRoom chatRoom = null; try { chatRoom = getChatContainer().getChatRoom(StringUtils.parseBareAddress(from)); if (chatRoom != null &... | 3,233,530 |
public void run() { final ContactList contactList = SparkManager.getWorkspace().getContactList(); ChatRoom chatRoom = null; try { chatRoom = getChatContainer().getChatRoom(StringUtils.parseBareAddress(from)); if (chatRoom != ... | public void run() { final ContactList contactList = SparkManager.getWorkspace().getContactList(); ChatRoom chatRoom = null; try { chatRoom = getChatContainer().getChatRoom(StringUtils.parseBareAddress(from)); if (chatRoom != ... | 3,233,531 |
public void run() { final ContactList contactList = SparkManager.getWorkspace().getContactList(); ChatRoom chatRoom = null; try { chatRoom = getChatContainer().getChatRoom(StringUtils.parseBareAddress(from)); if (chatRoom != ... | public void run() { final ContactList contactList = SparkManager.getWorkspace().getContactList(); ChatRoom chatRoom = null; try { chatRoom = getChatContainer().getChatRoom(StringUtils.parseBareAddress(from)); if (chatRoom != ... | 3,233,532 |
public void load() { rwl.writeLock().lock(); try { errorIfNullPixels(); /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); ... | public void load() { rwl.writeLock().lock(); try { errorIfNullPixels(); /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); ... | 3,233,533 |
public Classification(Integer attributeId, Float confidence, Boolean valid, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.Category category, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.confidence = confidence; ... | public Classification(Integer attributeId, Float confidence, Boolean valid, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.Category category, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.confidence = confidence; ... | 3,233,534 |
public org.openmicroscopy.omero.model.Category getCategory() { return this.category; } | public Category getCategory() { return this.category; } | 3,233,535 |
public org.openmicroscopy.omero.model.Image getImage() { return this.image; } | public Image getImage() { return this.image; } | 3,233,536 |
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; } | public ModuleExecution getModuleExecution() { return this.moduleExecution; } | 3,233,537 |
public void setCategory(org.openmicroscopy.omero.model.Category category) { this.category = category; } | public void setCategory(Category category) { this.category = category; } | 3,233,538 |
public void setImage(org.openmicroscopy.omero.model.Image image) { this.image = image; } | public void setImage(Image image) { this.image = image; } | 3,233,539 |
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; } | public void setModuleExecution(ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; } | 3,233,540 |
public static IRubyObject autoload(IRubyObject recv, IRubyObject symbol, final IRubyObject file) { final LoadService loadService = recv.getRuntime().getLoadService(); loadService.addAutoload(symbol.asSymbol(), new IAutoloadMethod() { /** * @see org.jruby.runtime.load.IAutoloadMe... | public static IRubyObject autoload(final IRubyObject recv, IRubyObject symbol, final IRubyObject file) { final LoadService loadService = recv.getRuntime().getLoadService(); loadService.addAutoload(symbol.asSymbol(), new IAutoloadMethod() { /** * @see org.jruby.runtime.load.IAuto... | 3,233,542 |
public static IRubyObject autoload(IRubyObject recv, IRubyObject symbol, final IRubyObject file) { final LoadService loadService = recv.getRuntime().getLoadService(); loadService.addAutoload(symbol.asSymbol(), new IAutoloadMethod() { /** * @see org.jruby.runtime.load.IAutoloadMe... | public static IRubyObject autoload(IRubyObject recv, IRubyObject symbol, final IRubyObject file) { final LoadService loadService = recv.getRuntime().getLoadService(); loadService.addAutoload(symbol.asSymbol(), new IAutoloadMethod() { /** * @see org.jruby.runtime.load.IAutoloadMe... | 3,233,543 |
public IRubyObject load(IRuby runtime, String name) { loadService.require(file.toString()); return runtime.getObject().getConstant(name); } | public IRubyObject load(IRuby runtime, String name) { loadService.require(file.toString()); return ((RubyModule)recv).getConstant(name); } | 3,233,544 |
public static void main (String args[]) { System.out.println("WARNING this is an ALPHA version of JRuby!!!"); System.out.println("--------------------------------------------"); System.out.println(); if (args.length == 0) { printUsage(); } else { /*if (args[0... | public static void main (String args[]) { System.out.println("WARNING this is an ALPHA version of JRuby!!!"); System.out.println("--------------------------------------------"); System.out.println(); if (args.length == 0) { printUsage(); } else { /*if (args[0... | 3,233,545 |
public static void main (String args[]) { System.out.println("WARNING this is an ALPHA version of JRuby!!!"); System.out.println("--------------------------------------------"); System.out.println(); if (args.length == 0) { printUsage(); } else { /*if (args[0... | public static void main (String args[]) { System.out.println("WARNING this is an ALPHA version of JRuby!!!"); System.out.println("--------------------------------------------"); System.out.println(); if (args.length == 0) { printUsage(); } else { /*if (args[0... | 3,233,546 |
protected static void printUsage() { System.out.println("Usage: java -jar jruby.jar rubyfile.rb"); } | protected static void printUsage() { System.out.println("Usage: java -jar jruby.jar [switches] [rubyfile.rb] [arguments]"); System.out.println(" -e 'command' one line of script. Several -e's allowed. Omit [programfile]"); } | 3,233,548 |
protected static void runInterpreter(String fileName) { File rubyFile = new File(fileName); if (!rubyFile.canRead()) { System.out.println("Cannot read Rubyfile: \"" + fileName + "\""); } else { try { StringBuffer sb = new StringBuffer((int)rubyFile.length())... | protected static void runInterpreter(String fileName) { File rubyFile = new File(fileName); if (!rubyFile.canRead()) { System.out.println("Cannot read Rubyfile: \"" + fileName + "\""); } else { try { StringBuffer sb = new StringBuffer((int)rubyFile.length())... | 3,233,549 |
public void saveCurrentSettings() { rwl.writeLock().lock(); try { errorIfNullRenderingDef(); pixMetaSrv.saveRndSettings(rendDefObj); } finally { rwl.writeLock().unlock(); } iUpdate.flush(); iUpdate.commit(); } | public void saveCurrentSettings() { rwl.writeLock().lock(); try { errorIfNullRenderingDef(); pixMetaSrv.saveRndSettings(rendDefObj); } finally { rwl.writeLock().unlock(); } iUpdate.flush(); } | 3,233,550 |
protected Object runQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria((Class) value(CLASS)); for (QueryParameter qp : params.queryParameters()) { if ( ! qp.name.equals( CLASS ) ) { c.add(Expressio... | protected Object runQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria((Class) value(CLASS)); for (QueryParameter qp : params.queryParameters()) { if ( ! qp.name.equals( CLASS ) ) { c.add(Expressio... | 3,233,551 |
private Node parseExpressionString(Node list, int closeQuote) { int c; int brace = -1; RubyObject ss; Node node; int nest; c = nextc(); switch (c) { case '$' : case '@' : case '{' : break; default : ... | private Node parseExpressionString(Node list, int closeQuote) { int c; int brace = -1; RubyObject ss; Node node; int nest; c = nextc(); switch (c) { case '$' : case '@' : case '{' : break; default : ... | 3,233,552 |
public IRubyObject define_method(IRubyObject[] args) { if (args.length < 1 || args.length > 2) { throw getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } String name = args[0].asSymbol(); IRubyObject body; ICallable newMethod; Vis... | public IRubyObject define_method(IRubyObject[] args) { if (args.length < 1 || args.length > 2) { throw getRuntime().newArgumentError("wrong # of arguments(" + args.length + " for 1)"); } String name = args[0].asSymbol(); IRubyObject body; ICallable newMethod; Vis... | 3,233,554 |
public void generate(NamespaceMapping namespaceMapping) throws IOException { String namespace = namespaceMapping.getNamespace(); if (namespace == null) { return; } File file = new File(metaInfDir, NamespaceHelper.createDiscoveryPathName(namespace)); file.getParentFile()... | public void generate(NamespaceMapping namespaceMapping) throws IOException { String namespace = namespaceMapping.getNamespace(); if (namespace == null) { return; } File file = new File(metaInfDir, NamespaceHelper.createDiscoveryPathName(namespace)); file.getParentFile()... | 3,233,555 |
public List childNodes() { return Collections.EMPTY_LIST; } | public List childNodes() { return EMPTY_LIST; } | 3,233,558 |
private void setTableLayout() { int width = AnalysisControls.WIDTH_MIN; if (numColumns > AnalysisControls.MAX) width = AnalysisControls.WIDTH_MAX; setRowHeight(width); TableColumn col; for (int i = 0; i < numColumns; i++) { col = getColumnModel().g... | private void setTableLayout() { int w = AnalysisControls.WIDTH_MIN; if (numColumns > AnalysisControls.MAX) width = AnalysisControls.WIDTH_MAX; setRowHeight(width); TableColumn col; for (int i = 0; i < numColumns; i++) { col = getColumnModel().getCo... | 3,233,559 |
private void setTableLayout() { int width = AnalysisControls.WIDTH_MIN; if (numColumns > AnalysisControls.MAX) width = AnalysisControls.WIDTH_MAX; setRowHeight(width); TableColumn col; for (int i = 0; i < numColumns; i++) { col = getColumnModel().g... | private void setTableLayout() { int width = AnalysisControls.WIDTH_MIN; if (numColumns > AnalysisControls.MAX) width = AnalysisControls.WIDTH_MAX; setRowHeight(width); TableColumn col; for (int i = 0; i < numColumns; i++) { col = getColumnModel().g... | 3,233,560 |
private void setTableLayout() { int width = AnalysisControls.WIDTH_MIN; if (numColumns > AnalysisControls.MAX) width = AnalysisControls.WIDTH_MAX; setRowHeight(width); TableColumn col; for (int i = 0; i < numColumns; i++) { col = getColumnModel().g... | private void setTableLayout() { int width = AnalysisControls.WIDTH_MIN; if (numColumns > AnalysisControls.MAX) width = AnalysisControls.WIDTH_MAX; setRowHeight(width); TableColumn col; for (int i = 0; i < numColumns; i++) { col = getColumnModel().g... | 3,233,561 |
private void setTableLayout() { int width = AnalysisControls.WIDTH_MIN; if (numColumns > AnalysisControls.MAX) width = AnalysisControls.WIDTH_MAX; setRowHeight(width); TableColumn col; for (int i = 0; i < numColumns; i++) { col = getColumnModel().g... | private void setTableLayout() { int width = AnalysisControls.WIDTH_MIN; if (numColumns > AnalysisControls.MAX) width = AnalysisControls.WIDTH_MAX; setRowHeight(width); TableColumn col; for (int i = 0; i < numColumns; i++) { col = getColumnModel().g... | 3,233,562 |
public RubyArray coerce(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyArray.newArray(getRuntime(), newFloat(getRuntime(), other.getDoubleValue()), this); } | public RubyArray coerce(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyArray.newArray(getRuntime(), newFloat(getRuntime(), other.getDoubleValue()), this); } | 3,233,563 |
public static RubyClass createFloatClass(Ruby ruby) { return new FloatDefinition(ruby).getType(); } | public static RubyClass createFloatClass(Ruby ruby) { RubyClass result = ruby.defineClass("Float", ruby.getClasses().getNumericClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); result.defineMethod("+", callbackFactory.getMethod(RubyFloat.class, "op_plus", RubyNumeric.class)); result.define... | 3,233,564 |
public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), getDoubleValue() / other.getDoubleValue()); } | public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), getDoubleValue() / other.getDoubleValue()); } | 3,233,565 |
public RubyNumeric op_minus(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), getDoubleValue() - other.getDoubleValue()); } | public RubyNumeric op_minus(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), getDoubleValue() - other.getDoubleValue()); } | 3,233,566 |
public RubyNumeric op_mod(IRubyObject num) { RubyNumeric other = numericValue(num); // Modelled after c ruby implementation (java /,% not same as ruby) double x = getDoubleValue(); double y = other.getDoubleValue(); double mod = x % y; if ((mod < 0 && y > 0) || (mod > 0 && ... | public RubyNumeric op_mod(IRubyObject num) { RubyNumeric other = numericValue(num); // Modelled after c ruby implementation (java /,% not same as ruby) double x = getDoubleValue(); double y = other.getDoubleValue(); double mod = x % y; if ((mod < 0 && y > 0) || (mod > 0 && ... | 3,233,567 |
public RubyNumeric op_mul(IRubyObject num) { return numericValue(num).multiplyWith(this); } | public RubyNumeric op_mul(IRubyObject num) { return numericValue(num).multiplyWith(this); } | 3,233,568 |
public RubyNumeric op_plus(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), getDoubleValue() + other.getDoubleValue()); } | public RubyNumeric op_plus(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), getDoubleValue() + other.getDoubleValue()); } | 3,233,569 |
public RubyNumeric op_pow(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), Math.pow(getDoubleValue(), other.getDoubleValue())); } | public RubyNumeric op_pow(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), Math.pow(getDoubleValue(), other.getDoubleValue())); } | 3,233,570 |
public static Criteria buildPixelsCriteria(int imageID) { Criteria criteria = new Criteria(); //Specify which fields we want for the image. criteria.addWantedField("default_pixels"); //Specify which fields we want for the pixels. criteria.addWantedField("default_pixels", "SizeX"); criteria.addWantedField("defa... | public static Criteria buildPixelsCriteria(int imageID) { Criteria criteria = new Criteria(); //Specify which fields we want for the image. criteria.addWantedField("default_pixels"); //Specify which fields we want for the pixels. criteria.addWantedField("default_pixels", "SizeX"); criteria.addWantedField("defa... | 3,233,571 |
private void decorateCancelButton() { cancelButton.setVisible(false); ResourceUtils.resButton(cancelButton, Res.getString("cancel")); cancelButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); cancelButton.setForeground(new Color(73, 113, 196)); ... | private void decorateCancelButton() { cancelButton.setVisible(false); ResourceUtils.resButton(cancelButton, Res.getString("cancel")); cancelButton.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, new Color(73, 113, 196))); cancelButton.setForeground(new Color(73, 113, 196)); ... | 3,233,572 |
private void transferDone(final FileTransferRequest request, FileTransfer transfer) { cancelButton.setVisible(false); showAlert(true); String bareJID = StringUtils.parseBareAddress(request.getRequestor()); ContactList contactList = SparkManager.getWorkspace().getContactList(); Con... | private void transferDone(final FileTransferRequest request, FileTransfer transfer) { cancelButton.setVisible(false); showAlert(true); String bareJID = StringUtils.parseBareAddress(request.getRequestor()); ContactList contactList = SparkManager.getWorkspace().getContactList(); Con... | 3,233,573 |
private void transferDone(final FileTransferRequest request, FileTransfer transfer) { cancelButton.setVisible(false); showAlert(true); String bareJID = StringUtils.parseBareAddress(request.getRequestor()); ContactList contactList = SparkManager.getWorkspace().getContactList(); Con... | private void transferDone(final FileTransferRequest request, FileTransfer transfer) { cancelButton.setVisible(false); showAlert(true); String bareJID = StringUtils.parseBareAddress(request.getRequestor()); ContactList contactList = SparkManager.getWorkspace().getContactList(); Con... | 3,233,574 |
public HashMap getChainExecutionsByChainID() { return executionsByChain; } | public LinkedHashMap getChainExecutionsByChainID() { return executionsByChain; } | 3,233,577 |
public HashMap getChainExecutionsByDatasetID() { return (HashMap) getSource(); } | public HashMap getChainExecutionsByDatasetID() { return (HashMap) getSource(); } | 3,233,578 |
public HashMap getExecutionsByID() { return executionsByID; } | public LinkedHashMap getExecutionsByID() { return executionsByID; } | 3,233,579 |
public RubyString inspect() { //FIXME this two strings should be built only once, at leas only once //per instance no matter how many calls to inspect and maybe better once //per ruby interpreter. //Benoit final String sep = ", "; final String arrow = "=>"; f... | public RubyString inspect() { //FIXME this two strings should be built only once, at leas only once //per instance no matter how many calls to inspect and maybe better once //per ruby interpreter. //Benoit final String sep = ", "; final String arrow = "=>"; f... | 3,233,580 |
public static void autoJoinConferenceRoom(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); ChatPreferences chatPref = (ChatPreferences)Spar... | public static void autoJoinConferenceRoom(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); ChatPreferences chatPref = (ChatPreferences)Spar... | 3,233,581 |
public static void createPrivateConference(String serviceName, String message, String roomName, Collection jids) { final MultiUserChat chatRoom = new MultiUserChat(SparkManager.getConnection(), roomName + "@" + serviceName); final GroupChatRoom room = new GroupChatRoom(chatRoom); try { ... | public static void createPrivateConference(String serviceName, String message, String roomName, Collection jids) { final MultiUserChat chatRoom = new MultiUserChat(SparkManager.getConnection(), roomName + "@" + serviceName); final GroupChatRoom room = new GroupChatRoom(chatRoom); try { ... | 3,233,582 |
public static GroupChatRoom enterRoomOnSameThread(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); ChatPreferences chatPref = (ChatPreferen... | public static GroupChatRoom enterRoomOnSameThread(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); ChatPreferences chatPref = (ChatPreferen... | 3,233,583 |
public void joinRoom(final String roomJID, final String roomName) { final ChatPreferences pref = (ChatPreferences)SparkManager.getPreferenceManager().getPreferenceData(ChatPreference.NAMESPACE); // Set default nickname nicknameField.setText(pref.getNickname()); // Enable password field i... | public void joinRoom(final String roomJID, final String roomName) { final LocalPreferences pref = SettingsManager.getLocalPreferences(); // Set default nickname nicknameField.setText(pref.getNickname()); // Enable password field if a password is required passwordField.setVisible(f... | 3,233,584 |
public TreeView getTreeView() { int state = model.getState(); if (state != LOADING_THUMBNAILS && state != READY) throw new IllegalStateException( "This method can only be invoked in the LOADING_THUMBNAILS "+ "or READY state."); return model... | public TreeView getTreeView() { int state = model.getState(); if (state != LOADING_THUMBNAILS && state != READY) throw new IllegalStateException( "This method can only be invoked in the LOADING_THUMBNAILS "+ "or READY state."); TreeView tre... | 3,233,585 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | 3,233,586 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | 3,233,587 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | 3,233,588 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | 3,233,589 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | 3,233,590 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | 3,233,591 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | 3,233,592 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | 3,233,593 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | 3,233,594 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | 3,233,595 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | 3,233,596 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | 3,233,597 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | 3,233,598 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | 3,233,599 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | 3,233,600 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | 3,233,601 |
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc... | 3,233,602 |
public boolean setProperty (Context context, Object instance, Object[] names, Object value, int pos) throws PropertyException, NoSuchMethodException { // names[pos] is wha... | public boolean setProperty (Context context, Object instance, Object[] names, Object value, int pos) throws PropertyException, NoSuchMethodException { // names[pos] is wha... | 3,233,603 |
public void mouseMoved(MouseEvent e) { if(e != null){ mouseEvent = e; } if(!canShowPopup){ return; } int loc = list.locationToIndex(e.getPoint()); Point point = list.indexToLocation(loc); ContactItem item ... | public void mouseMoved(MouseEvent e) { if(e != null){ mouseEvent = e; } if(!canShowPopup){ return; } int loc = list.locationToIndex(e.getPoint()); Point point = list.indexToLocation(loc); ContactItem item ... | 3,233,605 |
ViewerUIF(ViewerCtrl control, Registry registry, PixelsDimensions pxsDims, int defaultT, int defaultZ) { super("", registry.getTaskBar()); active = false; this.control = control; im = IconManager.getInstance(registry); int maxT = pxsDims.sizeT-1; int maxZ... | ViewerUIF(ViewerCtrl control, Registry registry, PixelsDimensions pxsDims, int defaultT, int defaultZ) { super("", registry.getTaskBar()); active = false; this.control = control; im = IconManager.getInstance(registry); int maxT = pxsDims.sizeT-1; int maxZ... | 3,233,607 |
void setDefaultZT(int t, int z, int sizeT, int sizeZ) { ToolBarManager tbm = toolBar.getManager(); tbm.onTChange(t); tbm.onZChange(z); int maxZ = sizeZ-1; int maxT = sizeT-1; tbm.setMaxT(maxT); tbm.setMaxZ(maxZ); toolBar.getZLabel().setText("/"+maxZ); ... | voidsetDefaultZT(intt,intz,intsizeT,intsizeZ){ToolBarManagertbm=toolBar.getManager();tbm.onTChange(t);tbm.onZChange(z);intmaxZ=sizeZ-1;intmaxT=sizeT-1;tbm.setMaxT(maxT);tbm.setMaxZ(maxZ);toolBar.getZLabel().setText("/"+maxZ);toolBar.getTLabel().setText("/"+maxT);resetSliders(maxT,t,maxZ,z);booleanbT=false,bZ=false;if(m... | 3,233,609 |
void setDefaultZT(int t, int z, int sizeT, int sizeZ) { ToolBarManager tbm = toolBar.getManager(); tbm.onTChange(t); tbm.onZChange(z); int maxZ = sizeZ-1; int maxT = sizeT-1; tbm.setMaxT(maxT); tbm.setMaxZ(maxZ); toolBar.getZLabel().setText("/"+maxZ); ... | voidsetDefaultZT(intt,intz,intsizeT,intsizeZ){ToolBarManagertbm=toolBar.getManager();tbm.onTChange(t);tbm.onZChange(z);intmaxZ=sizeZ-1;intmaxT=sizeT-1;tbm.setMaxT(maxT);tbm.setMaxZ(maxZ);toolBar.getZLabel().setText("/"+maxZ);toolBar.getTLabel().setText("/"+maxT);resetSliders(maxT,t,maxZ,z);booleanbT=false,bZ=false;if(m... | 3,233,610 |
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject result = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { ... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject result = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { ... | 3,233,611 |
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject result = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { ... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject result = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { ... | 3,233,612 |
protected RubyObject getConstant(NODE cref, RubyId id, RubyObject self) { NODE cbase = cref; // while (cbase != null && cbase.nd_next() != null) {// RubyObject rubyClass = (RubyObject)cbase.nd_clss();// if (rubyClass.isNil()) { return self.getRubyClass().get... | while (cbase != null && cbase.nd_next() != null) { RubyObject rubyClass = (RubyObject)cbase.nd_clss(); if (rubyClass.isNil()) { protected RubyObject getConstant(NODE cref, RubyId id, RubyObject self) {while (cbase != null && cbase.nd_next() != null) { RubyObject rubyClass = (RubyObject)cbase.nd_clss(); if (rubyClass.i... | 3,233,614 |
protected RubyObject getConstant(NODE cref, RubyId id, RubyObject self) { NODE cbase = cref; // while (cbase != null && cbase.nd_next() != null) {// RubyObject rubyClass = (RubyObject)cbase.nd_clss();// if (rubyClass.isNil()) { return self.getRubyClass().get... | protected RubyObject getConstant(NODE cref, RubyId id, RubyObject self) {} else if (rubyClass.getInstanceVariables().get(id) != null) { return (RubyObject)rubyClass.getInstanceVariables().get(id); } cbase = cbase.nd_next(); } return ((RubyModule)cref.nd_clss()).getConstant(id); NODE cbase = cref;} else if (rubyCl... | 3,233,615 |
private RubyClass getSuperClass(RubyObject self, NODE node) { RubyObject obj; int state = 1; // unreachable // PUSH_TAG(PROT_NONE); // if ((state = EXEC_TAG()) == 0 ) { obj = eval(self, node); // } // POP_TAG(); if (state != 0) { ... | private RubyClass getSuperClass(RubyObject self, NODE node) { RubyObject obj; int state = 1; // unreachable // PUSH_TAG(PROT_NONE); // if ((state = EXEC_TAG()) == 0 ) { obj = eval(self, node); // } // POP_TAG(); /*if (state != 0) { ... | 3,233,616 |
private RubyClass getSuperClass(RubyObject self, NODE node) { RubyObject obj; int state = 1; // unreachable // PUSH_TAG(PROT_NONE); // if ((state = EXEC_TAG()) == 0 ) { obj = eval(self, node); // } // POP_TAG(); if (state != 0) { ... | private RubyClass getSuperClass(RubyObject self, NODE node) { RubyObject obj; int state = 1; // unreachable // PUSH_TAG(PROT_NONE); // if ((state = EXEC_TAG()) == 0 ) { obj = eval(self, node); // } // POP_TAG(); if (state != 0) { ... | 3,233,617 |
private RubyClass getSuperClass(RubyObject self, NODE node) { RubyObject obj; int state = 1; // unreachable // PUSH_TAG(PROT_NONE); // if ((state = EXEC_TAG()) == 0 ) { obj = eval(self, node); // } // POP_TAG(); if (state != 0) { ... | private RubyClass getSuperClass(RubyObject self, NODE node) { RubyObject obj; int state = 1; // unreachable // PUSH_TAG(PROT_NONE); // if ((state = EXEC_TAG()) == 0 ) { obj = eval(self, node); // } // POP_TAG(); if (state != 0) { ... | 3,233,618 |
private RubyClass getSuperClass(RubyObject self, NODE node) { RubyObject obj; int state = 1; // unreachable // PUSH_TAG(PROT_NONE); // if ((state = EXEC_TAG()) == 0 ) { obj = eval(self, node); // } // POP_TAG(); if (state != 0) { ... | private RubyClass getSuperClass(RubyObject self, NODE node) { RubyObject obj; int state = 1; // unreachable // PUSH_TAG(PROT_NONE); // if ((state = EXEC_TAG()) == 0 ) { obj = eval(self, node); // }*/ // POP_TAG(); if (state != 0) { ... | 3,233,619 |
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; // frame = ruby_frame; // frame.tmp(ruby_frame); // ruby_frame = frame; // PUSH_CLASS(); ... | Frame frame = rubyFrame; frame.setTmp(rubyFrame); rubyFrame = frame; public RubyObject setupModule(RubyModule module, NODE n) {Frame frame = rubyFrame; frame.setTmp(rubyFrame); rubyFrame = frame; Frame frame = rubyFrame; frame.setTmp(rubyFrame); rubyFrame = frame; NODE node = n;Frame frame = rubyFrame; frame.setTmp(... | 3,233,620 |
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; // frame = ruby_frame; // frame.tmp(ruby_frame); // ruby_frame = frame; // PUSH_CLASS(); ... | pushClass(); pushClass(); pushClass(); pushClass(); publicpushClass(); RubyObjectpushClass(); setupModule(RubyModulepushClass(); module,pushClass(); NODEpushClass(); n)pushClass(); {pushClass(); pushClass(); pushClass(); pushClass(); pushClass(); pushClass(); pushClass(); pushClass(); NODEpushClass(); nodepushClass(); ... | 3,233,621 |
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; // frame = ruby_frame; // frame.tmp(ruby_frame); // ruby_frame = frame; // PUSH_CLASS(); ... | getRuby().rubyScope.push(); getRuby().rubyScope.push(); getRuby().rubyScope.push(); getRuby().rubyScope.push(); publicgetRuby().rubyScope.push(); RubyObjectgetRuby().rubyScope.push(); setupModule(RubyModulegetRuby().rubyScope.push(); module,getRuby().rubyScope.push(); NODEgetRuby().rubyScope.push(); n)getRuby().rubySco... | 3,233,622 |
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; // frame = ruby_frame; // frame.tmp(ruby_frame); // ruby_frame = frame; // PUSH_CLASS(); ... | PUSH_CREF(module); PUSH_CREF(module); PUSH_CREF(module); PUSH_CREF(module); publicPUSH_CREF(module); RubyObjectPUSH_CREF(module); setupModule(RubyModulePUSH_CREF(module); module,PUSH_CREF(module); NODEPUSH_CREF(module); n)PUSH_CREF(module); {PUSH_CREF(module); PUSH_CREF(module); PUSH_CREF(module); PUSH_CREF(module); PU... | 3,233,623 |
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; // frame = ruby_frame; // frame.tmp(ruby_frame); // ruby_frame = frame; // PUSH_CLASS(); ... | POP_CREF(); POP_CREF(); POP_CREF(); POP_CREF(); publicPOP_CREF(); RubyObjectPOP_CREF(); setupModule(RubyModulePOP_CREF(); module,POP_CREF(); NODEPOP_CREF(); n)POP_CREF(); {POP_CREF(); POP_CREF(); POP_CREF(); POP_CREF(); POP_CREF(); POP_CREF(); POP_CREF(); POP_CREF(); NODEPOP_CREF(); nodePOP_CREF(); =POP_CREF(); n;POP_C... | 3,233,624 |
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; // frame = ruby_frame; // frame.tmp(ruby_frame); // ruby_frame = frame; // PUSH_CLASS(); ... | getRuby().rubyScope.pop(); popClass(); getRuby().rubyScope.pop(); popClass(); public RubyObject setupModule(RubyModule module, NODE n) {getRuby().rubyScope.pop(); popClass(); getRuby().rubyScope.pop(); popClass(); getRuby().rubyScope.pop(); popClass(); getRuby().rubyScope.pop(); popClass(); NODE node = n;getRuby().ruby... | 3,233,625 |
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; // frame = ruby_frame; // frame.tmp(ruby_frame); // ruby_frame = frame; // PUSH_CLASS(); ... | rubyFrame = frame.getTmp(); rubyFrame = frame.getTmp(); rubyFrame = frame.getTmp(); rubyFrame = frame.getTmp(); publicrubyFrame = frame.getTmp(); RubyObjectrubyFrame = frame.getTmp(); setupModule(RubyModulerubyFrame = frame.getTmp(); module,rubyFrame = frame.getTmp(); NODErubyFrame = frame.getTmp(); n)rubyFrame = frame... | 3,233,626 |
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (ruby_block == null)) { throw new RuntimeException("yield called out of block"); } Rub... | pushClass(); pushClass(); pushClass(); pushClass(); publicpushClass(); RubyObjectpushClass(); yield0(RubyObjectpushClass(); value,pushClass(); RubyObjectpushClass(); self,pushClass(); RubyModulepushClass(); klass,pushClass(); booleanpushClass(); acheck)pushClass(); {pushClass(); pushClass(); pushClass(); pushClass(); p... | 3,233,627 |
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (ruby_block == null)) { throw new RuntimeException("yield called out of block"); } Rub... | popClass(); popClass(); popClass(); popClass(); publicpopClass(); RubyObjectpopClass(); yield0(RubyObjectpopClass(); value,popClass(); RubyObjectpopClass(); self,popClass(); RubyModulepopClass(); klass,popClass(); booleanpopClass(); acheck)popClass(); {popClass(); popClass(); popClass(); popClass(); popClass(); popClas... | 3,233,628 |
private static void initializeRuntime(Ruby runtime, String filename) { IRubyObject argumentArray = JavaUtil.convertJavaToRuby(runtime, commandline.scriptArguments); runtime.setVerbose(commandline.verbose); defineGlobal(runtime, "$VERBOSE", commandline.verbose); runtime.defineGlobalConsta... | private static void initializeRuntime(Ruby runtime, String filename) { IRubyObject argumentArray = RubyArray.newArray(runtime, JavaUtil.convertJavaArrayToRuby(runtime, commandline.scriptArguments)); runtime.setVerbose(commandline.verbose); defineGlobal(runtime, "$VERBOSE", commandline.verbose);... | 3,233,629 |
private static void initializeRuntime(Ruby runtime, String filename) { IRubyObject argumentArray = JavaUtil.convertJavaToRuby(runtime, commandline.scriptArguments); runtime.setVerbose(commandline.verbose); defineGlobal(runtime, "$VERBOSE", commandline.verbose); runtime.defineGlobalConsta... | private static void initializeRuntime(Ruby runtime, String filename) { IRubyObject argumentArray = JavaUtil.convertJavaToRuby(runtime, commandline.scriptArguments); runtime.setVerbose(commandline.verbose); defineGlobal(runtime, "$VERBOSE", commandline.verbose); runtime.defineGlobalConsta... | 3,233,630 |
public static void main (String args[]) { /* System.out.println(); System.out.println("----------------------------------------------------"); System.out.println("--- WARNING this is an ALPHA version of JRuby!!! ---"); System.out.println("-----------------------------------------... | public static void main(String args[]) { /* System.out.println(); System.out.println("----------------------------------------------------"); System.out.println("--- WARNING this is an ALPHA version of JRuby!!! ---"); System.out.println("-------------------------------------------... | 3,233,631 |
public static void main (String args[]) { /* System.out.println(); System.out.println("----------------------------------------------------"); System.out.println("--- WARNING this is an ALPHA version of JRuby!!! ---"); System.out.println("-----------------------------------------... | public static void main (String args[]) { /* System.out.println(); System.out.println("----------------------------------------------------"); System.out.println("--- WARNING this is an ALPHA version of JRuby!!! ---"); System.out.println("-----------------------------------------... | 3,233,632 |
protected static void runInterpreterOnFile(String fileName, String[] args) { File rubyFile = new File(fileName); if (!rubyFile.canRead()) { System.out.println("Cannot read Rubyfile: \"" + fileName + "\""); } else { try { StringBuffer sb = new StringBuffer((i... | protected static void runInterpreterOnFile(String fileName, String[] args) { File rubyFile = new File(fileName); if (!rubyFile.canRead()) { System.out.println("Cannot read Rubyfile: \"" + fileName + "\""); } else { try { StringBuffer sb = new StringBuffer((i... | 3,233,634 |
private String getClassName(final Class arg0) { if (arg0 ==null) throw new IllegalArgumentException("Class argument cannot be null."); String klass = arg0.getName().substring( arg0.getPackage().getName().length() + 1); return klass; } | private String getClassName(final Class arg0) { if (arg0 ==null) throw new IllegalArgumentException("Class argument cannot be null."); String klass = arg0.getName().substring( arg0.getPackage().getName().length() + 1); return klass; } | 3,233,635 |
IRubyObject[] scanArgs(IRuby runtime, IRubyObject[] args, int required, int optional); | IRubyObject[] scanArgs(IRuby runtime, IRubyObject[] args, int required, int optional); | 3,233,637 |
public void exportMethod(RubyId name, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } NODE body = searchMethod(name); RubyModule origin = getMethodOrigin(name); if (body == null && isModule()) { body = getRuby... | public void exportMethod(RubyId name, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } NODE body = searchMethod(name); RubyModule origin = getMethodOrigin(name); if (body == null && isModule()) { body = getRuby... | 3,233,638 |
public void exportMethod(RubyId name, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } NODE body = searchMethod(name); RubyModule origin = getMethodOrigin(name); if (body == null && isModule()) { body = getRuby... | public void exportMethod(RubyId name, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } NODE body = searchMethod(name); RubyModule origin = getMethodOrigin(name); if (body == null && isModule()) { body = getRuby... | 3,233,639 |
public RubyObject m_module_function(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException("Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().getInterpreter().setActMethodScope(SCOPE... | public RubyObject m_module_function(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException("Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().getInterpreter().setActMethodScope(SCOPE... | 3,233,640 |
public RubyClass newIncludeClass(RubyModule superClass) { RubyClass newClass = new RubyClass(getRuby(), getRuby().getClasses().getClassClass(), superClass); newClass.setIncluded(true); newClass.setInstanceVariables(getInstanceVariables()); newClass.setMethods(getMethods()); ... | public RubyClass newIncludeClass(RubyModule superClass) { RubyClass newClass = new RubyClass(getRuby(), superClass); newClass.setIncluded(true); newClass.setInstanceVariables(getInstanceVariables()); newClass.setMethods(getMethods()); if (isIncluded()) { ... | 3,233,641 |
public static void main(String args[]) { /* System.out.println(); System.out.println("----------------------------------------------------"); System.out.println("--- WARNING this is an ALPHA version of JRuby!!! ---"); System.out.println("----------------------------------------------------"); Syst... | public static void main(String args[]) { /* System.out.println(); System.out.println("----------------------------------------------------"); System.out.println("--- WARNING this is an ALPHA version of JRuby!!! ---"); System.out.println("----------------------------------------------------"); Syst... | 3,233,643 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.