bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public RubyModule defineModuleUnder(String name, RubyModule parentModule) { throw new MockException(); } | public RubyModule defineModuleUnder(String name, RubyModule parentModule) { throw new MockException(); } | 3,239,414 |
public RubyNumeric newNumeric() { throw new MockException(); } | public RubyNumeric newNumeric() { throw new MockException(); } | 3,239,415 |
public RubyProc newProc() { throw new MockException(); } | public RubyProc newProc() { throw new MockException(); } | 3,239,416 |
final private Template getTemplate(URL path) { _log.debug("get:"+path); URLTemplate t; String pre = null; String mid = null; String post = null; String pathStr = path.toExternalForm(); try { String[] parts = parseLocalePath(pathStr); S... | final private Template getTemplate(URL path) { _log.debug("get:"+path); URLTemplate t; String pre = null; String mid = null; String post = null; String pathStr = path.toExternalForm(); try { String[] parts = parseLocalePath(pathStr); S... | 3,239,417 |
public RaiseException(RubyException actException) { this.actException = actException; } | public RaiseException(RubyException actException) { this.actException = actException; } | 3,239,418 |
public RubyException getActException() { return actException; } | public RubyException getActException() { return actException; } | 3,239,419 |
public void setActException(RubyException actException) { this.actException = actException; } | public void setActException(RubyException actException) { this.actException = actException; } | 3,239,420 |
public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.e... | public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.e... | 3,239,422 |
public static void main(final String[] args) { EnhancedDebuggerWindow.PERSISTED_DEBUGGER = true; EnhancedDebuggerWindow.MAX_TABLE_ROWS = 10; XMPPConnection.DEBUG_ENABLED = true; String current = System.getProperty("java.library.path"); String classPath = System.getProperty("java.c... | public static void main(final String[] args) { EnhancedDebuggerWindow.PERSISTED_DEBUGGER = true; EnhancedDebuggerWindow.MAX_TABLE_ROWS = 10; XMPPConnection.DEBUG_ENABLED = true; String current = System.getProperty("java.library.path"); String classPath = System.getProperty("java.c... | 3,239,423 |
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); try { while (true) { try { String file = ruby.getSourceFile(); ... | public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); try { while (true) { try { String file = ruby.getSourceFile(); ... | 3,239,424 |
public Object createService(ServiceContext serviceContext) { createException = new MockCreateException(); if (throwExceptionFromCreate) throw createException; return super.createService(serviceContext); } | public Object createService(ServiceContext serviceContext) { assertValidServiceContext(serviceContext); this.serviceContext = serviceContext; createException = new MockCreateException("MockCreateException"); if (throwExceptionFromCreate) throw createException; return super.crea... | 3,239,425 |
public void destroyService(ServiceContext serviceContext) { destroyException = new MockDestroyException(); if (throwExceptionFromDestroy) throw destroyException; super.destroyService(serviceContext); } | public void destroyService(ServiceContext serviceContext) { assertSame(this.serviceContext, serviceContext); assertValidServiceContext(serviceContext); destroyException = new MockDestroyException("MockDestroyException"); if (throwExceptionFromDestroy) throw destroyException; su... | 3,239,426 |
public Set getStartConditions() { Set startConditions = new HashSet(super.getStartConditions()); startConditions.add(startCondition); return startConditions; } | public synchronized Set getStartConditions() { Set startConditions = new HashSet(super.getStartConditions()); startConditions.add(startCondition); return startConditions; } | 3,239,427 |
public Set getStopConditions() { Set stopConditions = new HashSet(super.getStopConditions()); stopConditions.add(stopCondition); return stopConditions; } | public synchronized Set getStopConditions() { Set stopConditions = new HashSet(super.getStopConditions()); stopConditions.add(stopCondition); return stopConditions; } | 3,239,428 |
private void destroy(StopStrategy stopStrategy) { ServiceState initialState = serviceManager.getState(); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.reset(); try { serviceManager.destroy(stopStrategy); } catch (IllegalServ... | private void destroy(StopStrategy stopStrategy) { ServiceState initialState = serviceManager.getState(); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.reset(); try { serviceManager.destroy(stopStrategy); } catch (IllegalServ... | 3,239,441 |
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.re... | private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.re... | 3,239,443 |
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.re... | private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.re... | 3,239,444 |
private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.re... | private void initialize() throws Exception { long now = System.currentTimeMillis(); // introduce a bit of delay so subsequent times are much less likely to equal to not Thread.sleep(50); serviceMonitor.reset(); startCondition.reset(); stopCondition.reset(); kernel.re... | 3,239,445 |
private void startFromStopping(StartStrategy startStrategy) throws Exception { start(false, StartStrategies.ASYNCHRONOUS); stopCondition.satisfied = false; stop(StopStrategies.ASYNCHRONOUS); try { serviceManager.start(false, startStrategy); fail("Should have thrown ... | private void startFromStopping(StartStrategy startStrategy) throws Exception { start(false, StartStrategies.ASYNCHRONOUS); stopCondition.satisfied = false; stop(StopStrategies.ASYNCHRONOUS); try { serviceManager.start(false, startStrategy); fail("Should have thrown ... | 3,239,447 |
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out... | private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out... | 3,239,454 |
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out... | private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out... | 3,239,455 |
private static String generateTableColumnsFromData(double lineCoverage, double branchCoverage, double ccn) { String lineCoverageCell = (lineCoverage == -1) ? generateNAPercent() : generatePercentResult(lineCoverage); String branchCoverageCell = (branchCoverage == -1) ? generateNAPercent() : generatePer... | private static String generateTableColumnsFromData(double lineCoverage, double branchCoverage, double ccn) { String lineCoverageCell = (lineCoverage == -1) ? generateNAPercent() : generatePercentResult(lineCoverage); String branchCoverageCell = (branchCoverage == -1) ? generateNAPercent() : generatePer... | 3,239,456 |
public static RubyModule createKernelModule(IRuby runtime) { RubyModule module = runtime.defineModule("Kernel"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyKernel.class); CallbackFactory objectCallbackFactory = runtime.callbackFactory(RubyObject.class); module.defineMo... | module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleFunction("warn", callbackFactory.getSingletonMethod("warn", IRubyObject.class)); module.defineModuleF... | 3,239,457 |
public void paint(Graphics g, JComponent c) { Graphics2D g2d = (Graphics2D)g; g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); Insets vInsets = c.getInsets(); int w = c.getWidth() - (vInsets.left + vInsets.right); int h = c.getHeight() - (v... | public void paint(Graphics g, JComponent c) { Graphics2D g2d = (Graphics2D)g; g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); Insets vInsets = c.getInsets(); int w = c.getWidth() - (vInsets.left + vInsets.right); int h = c.getHeight() - (v... | 3,239,458 |
private JPanel buildButtonPanel() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(viewButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(saveButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(addButton); p.add(Box.createRigidArea(DataManag... | private JPanel buildButtonPanel() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(viewButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(saveButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(addButton); p.add(Box.createRigidArea(DataManag... | 3,239,459 |
private void initButtons() { saveButton = new JButton("Save"); saveButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save data in the DB.")); saveButton.setEnabled(false); addButton = new JButton("Add datasets"); addButton.setCursor(Cur... | private void initButtons() { saveButton = new JButton("Save"); saveButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save data in the DB.")); saveButton.setEnabled(false); addButton = new JButton("Add datasets"); addButton.setCursor(Cur... | 3,239,461 |
private SparkTransferManager() { boolean enabled = Enterprise.containsFeature(Enterprise.FILE_TRANSFER_FEATURE); if (!enabled) { return; } // Register Preferences PreferenceManager prefManager = SparkManager.getPreferenceManager(); prefManager.addPreference(new F... | private SparkTransferManager() { boolean enabled = Enterprise.containsFeature(Enterprise.FILE_TRANSFER_FEATURE); if (!enabled) { return; } // Register Preferences PreferenceManager prefManager = SparkManager.getPreferenceManager(); prefManager.addPreference(new F... | 3,239,462 |
private SparkTransferManager() { boolean enabled = Enterprise.containsFeature(Enterprise.FILE_TRANSFER_FEATURE); if (!enabled) { return; } // Register Preferences PreferenceManager prefManager = SparkManager.getPreferenceManager(); prefManager.addPreference(new F... | private SparkTransferManager() { boolean enabled = Enterprise.containsFeature(Enterprise.FILE_TRANSFER_FEATURE); if (!enabled) { return; } // Register Preferences PreferenceManager prefManager = SparkManager.getPreferenceManager(); prefManager.addPreference(new F... | 3,239,463 |
public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID =... | public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID =... | 3,239,464 |
public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID =... | public void fileTransferRequest(FileTransferRequest request) { // Check if a listener handled this request if (fireTransferListeners(request)) { return; } String requestor = request.getRequestor(); String bareJID =... | 3,239,465 |
public void actionPerformed(ActionEvent e) { SwingWorker worker = new SwingWorker() { public Object construct() { try { Thread.sleep(10); } ... | public void actionPerformed(ActionEvent e) { SwingWorker worker = new SwingWorker() { public Object construct() { try { Thread.sleep(10); } ... | 3,239,466 |
public void processPacket(Packet packet) { Presence presence = (Presence)packet; if (presence == null || presence.getType() == Presence.Type.unavailable) { if (transfer != null) { transfer.cancel(); } }... | public void processPacket(Packet packet) { Presence presence = (Presence)packet; if (presence == null || presence.getType() == Presence.Type.unavailable) { if (transfer != null) { transfer.cancel(); } }... | 3,239,467 |
public Object construct() { try { Robot robot = new Robot(); Rectangle area = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()); return robot.createScreenCapture(area); } catch (AWTException e) { ... | public Object construct() { try { Robot robot = new Robot(); Rectangle area = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()); return robot.createScreenCapture(area); } catch (AWTException e) { ... | 3,239,469 |
public void finished() { BufferedImage bufferedImage = (BufferedImage)get(); if (bufferedImage != null) { sendImage(bufferedImage, room); } button.setEnabled(true); room.setCursor(new Cursor(Cursor.DEFAULT_CURSOR))... | public void finished() { BufferedImage bufferedImage = (BufferedImage)get(); if (bufferedImage != null) { sendImage(bufferedImage, room); } button.setEnabled(true); room.setCursor(new Cursor(Cursor.DEFAULT_CURSOR))... | 3,239,470 |
public void finished() { BufferedImage bufferedImage = (BufferedImage)get(); if (bufferedImage != null) { sendImage(bufferedImage, room); } button.setEnabled(true); room.setCursor(new Cursor(Cursor.DEFAULT_CURSOR))... | public void finished() { BufferedImage bufferedImage = (BufferedImage)get(); if (bufferedImage != null) { sendImage(bufferedImage, room); } button.setEnabled(true); room.setCursor(new Cursor(Cursor.DEFAULT_CURSOR))... | 3,239,471 |
public void testFilesFourDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(1000000001)); assertEquals("/OME/OMEIS/Files/Dir-001/Dir-000/Dir-000/1000000001", path); } | public void testFilesFourDirectoryLowerBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(1000000001)); assertEquals("/OME/OMEIS/Files/Dir-001/Dir-000/Dir-000/1000000001", path); } | 3,239,472 |
public void testFilesFourDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getFilesPath((long)Integer.MAX_VALUE); assertEquals("/OME/OMEIS/Files/Dir-002/Dir-147/Dir-483/2147483647", path); } | public void testFilesFourDirectoryUpperBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getFilesPath((long)Integer.MAX_VALUE); assertEquals("/OME/OMEIS/Files/Dir-002/Dir-147/Dir-483/2147483647", path); } | 3,239,473 |
public void testFilesSingleDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(1)); assertEquals("/OME/OMEIS/Files/1", path); } | public void testFilesSingleDirectoryLowerBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(1)); assertEquals("/OME/OMEIS/Files/1", path); } | 3,239,474 |
public void testFilesSingleDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(999)); assertEquals("/OME/OMEIS/Files/999", path); } | public void testFilesSingleDirectoryUpperBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(999)); assertEquals("/OME/OMEIS/Files/999", path); } | 3,239,475 |
public void testFilesThreeDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(1000001)); assertEquals("/OME/OMEIS/Files/Dir-001/Dir-000/1000001", path); } | public void testFilesThreeDirectoryLowerBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(1000001)); assertEquals("/OME/OMEIS/Files/Dir-001/Dir-000/1000001", path); } | 3,239,476 |
public void testFilesThreeDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(999999999)); assertEquals("/OME/OMEIS/Files/Dir-999/Dir-999/999999999", path); } | public void testFilesThreeDirectoryUpperBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(999999999)); assertEquals("/OME/OMEIS/Files/Dir-999/Dir-999/999999999", path); } | 3,239,477 |
public void testFilesTwoDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(1001)); assertEquals("/OME/OMEIS/Files/Dir-001/1001", path); } | public void testFilesTwoDirectoryLowerBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(1001)); assertEquals("/OME/OMEIS/Files/Dir-001/1001", path); } | 3,239,478 |
public void testFilesTwoDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getFilesPath(new Long(999999)); assertEquals("/OME/OMEIS/Files/Dir-999/999999", path); } | public void testFilesTwoDirectoryUpperBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getFilesPath(new Long(999999)); assertEquals("/OME/OMEIS/Files/Dir-999/999999", path); } | 3,239,479 |
public void testPixelsFourDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(1000000001)); assertEquals("/OME/OMEIS/Pixels/Dir-001/Dir-000/Dir-000/1000000001", path); } | public void testPixelsFourDirectoryLowerBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(1000000001)); assertEquals("/OME/OMEIS/Pixels/Dir-001/Dir-000/Dir-000/1000000001", path); } | 3,239,480 |
public void testPixelsFourDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath((long)Integer.MAX_VALUE); assertEquals("/OME/OMEIS/Pixels/Dir-002/Dir-147/Dir-483/2147483647", path); } | public void testPixelsFourDirectoryUpperBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getPixelsPath((long)Integer.MAX_VALUE); assertEquals("/OME/OMEIS/Pixels/Dir-002/Dir-147/Dir-483/2147483647", path); } | 3,239,481 |
public void testPixelsSingleDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(1)); assertEquals("/OME/OMEIS/Pixels/1", path); } | public void testPixelsSingleDirectoryLowerBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(1)); assertEquals("/OME/OMEIS/Pixels/1", path); } | 3,239,482 |
public void testPixelsSingleDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(999)); assertEquals("/OME/OMEIS/Pixels/999", path); } | public void testPixelsSingleDirectoryUpperBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(999)); assertEquals("/OME/OMEIS/Pixels/999", path); } | 3,239,483 |
public void testPixelsThreeDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(1000001)); assertEquals("/OME/OMEIS/Pixels/Dir-001/Dir-000/1000001", path); } | public void testPixelsThreeDirectoryLowerBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(1000001)); assertEquals("/OME/OMEIS/Pixels/Dir-001/Dir-000/1000001", path); } | 3,239,484 |
public void testPixelsThreeDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(999999999)); assertEquals("/OME/OMEIS/Pixels/Dir-999/Dir-999/999999999", path); } | public void testPixelsThreeDirectoryUpperBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(999999999)); assertEquals("/OME/OMEIS/Pixels/Dir-999/Dir-999/999999999", path); } | 3,239,485 |
public void testPixelsTwoDirectoryLowerBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(1001)); assertEquals("/OME/OMEIS/Pixels/Dir-001/1001", path); } | public void testPixelsTwoDirectoryLowerBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(1001)); assertEquals("/OME/OMEIS/Pixels/Dir-001/1001", path); } | 3,239,486 |
public void testPixelsTwoDirectoryUpperBoundsPath() { String path = ome.io.nio.Helper.getPixelsPath(new Long(999999)); assertEquals("/OME/OMEIS/Pixels/Dir-999/999999", path); } | public void testPixelsTwoDirectoryUpperBoundsPath() { String path = new PixelsService("/OME/OMEIS/").getPixelsPath(new Long(999999)); assertEquals("/OME/OMEIS/Pixels/Dir-999/999999", path); } | 3,239,487 |
void decreaseIndentation() { indent -= indentRate; } | void decreaseIndentation() { indent -= indentRate; } | 3,239,488 |
void increaseIndentation() { indent += indentRate; } | void increaseIndentation() { indent += indentRate; } | 3,239,489 |
static private String[] tokenize(String list) { StringTokenizer st = new StringTokenizer(list," \t\n\f\r;,"); String[] tokens = new String[st.countTokens()]; int i = 0; while (st.hasMoreElements()) { tokens[i] = st.nextToken(); } return tokens; } | static private String[] tokenize(String list) { StringTokenizer st = new StringTokenizer(list," \t\n\f\r;,"); String[] tokens = new String[st.countTokens()]; int i = 0; while (st.hasMoreElements()) { tokens[i] = st.nextToken(); } return tokens; } | 3,239,490 |
public void minZoomLevelChanged(double level) { System.err.println("minzoom change: "+level); int val = (int)Math.round(level*100); if(slider.getValue() < val) { slider.setValue(val); } sl... | public void minZoomLevelChanged(double level) { int val = (int)Math.round(level*100); if(slider.getValue() < val) { slider.setValue(val); } slider.setMinimum(val); } | 3,239,492 |
public void zoomLevelChanged(double level) { System.err.println("zoom changed: "+level); if(!slider.getValueIsAdjusting()) { int val = (int)Math.round(level*100); slider.setValue(val); } } | public void zoomLevelChanged(double level) { if(!slider.getValueIsAdjusting()) { int val = (int)Math.round(level*100); slider.setValue(val); } } | 3,239,494 |
public void cameraBoundsChanged(double valueX, double valueY, double extentX, double extentY, double width, double height) { int iX = (int)Math.round(valueX); int iY = (int)Math.rou... | public void cameraBoundsChanged(double valueX, double valueY, double extentX, double extentY, double width, double height) { int iX = (int)Math.round(valueX); int iY = (int)Math.rou... | 3,239,495 |
public void cameraBoundsChanged(double valueX, double valueY, double extentX, double extentY, double width, double height) { int iX = (int)Math.round(valueX); int iY = (int)Math.rou... | public void cameraBoundsChanged(double valueX, double valueY, double extentX, double extentY, double width, double height) { int iX = (int)Math.round(valueX); int iY = (int)Math.rou... | 3,239,496 |
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); i... | public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); i... | 3,239,497 |
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); i... | public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); i... | 3,239,498 |
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); i... | public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); i... | 3,239,499 |
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); i... | publicColorChooser(ChannelBindingscb) { int[]rgba=cb.getRGBA(); intv=(int)(rgba[ALPHA]*100/255); Colorc=newColor(rgba[RED],rgba[GREEN],rgba[BLUE],rgba[ALPHA]); ccManager=newColorChooserManager(this,rgba,v); cp=newColorPalette(ccManager); ContainercontentPane=super.getContentPane(); initButtons(); initSlider(v)... | 3,239,500 |
public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); i... | public ColorChooser(ChannelBindings cb) { int[] rgba = cb.getRGBA(); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, rgba, v); cp = new ColorPalette(ccManager); Container contentPane = super.getContentPane(); i... | 3,239,501 |
private JPanel builButtonPanel() { JPanel p = new JPanel(); p.setLayout(null); applyButton.setBounds(0, 0, WBUTTON, 20); saveButton.setBounds(WBUTTON+3, 0, WBUTTON, 20); cancelButton.setBounds(2*(WBUTTON+3), 0, WBUTTON, 20); p.add(applyButton); p.add(saveButton); p.add(cancelButton); p.setBounds(BORDER, Color... | private JPanel builButtonPanel() { JPanel p = new JPanel(); p.setLayout(null); applyButton.setBounds(0, 0, WBUTTON, 20); saveButton.setBounds(WBUTTON+3, 0, WBUTTON, 20); cancelButton.setBounds(2*(WBUTTON+3), 0, WBUTTON, 20); p.add(applyButton); p.add(saveButton); p.add(cancelButton); p.setBounds(BORDER, Color... | 3,239,502 |
private JPanel builButtonPanel() { JPanel p = new JPanel(); p.setLayout(null); applyButton.setBounds(0, 0, WBUTTON, 20); saveButton.setBounds(WBUTTON+3, 0, WBUTTON, 20); cancelButton.setBounds(2*(WBUTTON+3), 0, WBUTTON, 20); p.add(applyButton); p.add(saveButton); p.add(cancelButton); p.setBounds(BORDER, Color... | private JPanel builButtonPanel() { JPanel p = new JPanel(); p.setLayout(null); applyButton.setBounds(0, 0, WBUTTON, 20); saveButton.setBounds(WBUTTON+3, 0, WBUTTON, 20); cancelButton.setBounds(2*(WBUTTON+3), 0, WBUTTON, 20); p.add(applyButton); p.add(saveButton); p.add(cancelButton); p.setBounds(BORDER, Color... | 3,239,503 |
private JPanel buildAlphaPanel() { JPanel p = new JPanel(); JLabel label = new JLabel("Alpha "); p.setLayout(null); int size = ColorPalette.WIDTH_PANEL-2*WIDTH_BOX; label.setBounds(0, 0, WLABEL, HEIGHT_BOX); alphaTextField.setBounds(WLABEL, 0, WIDTH_BOX, HEIGHT_BOX); alphaSlider.setBounds(WLABEL+WIDTH_BOX+2*BOX... | private JPanel buildAlphaPanel() { JPanel p = new JPanel(); JLabel label = new JLabel("Alpha "); p.setLayout(null); int size = ColorPalette.WIDTH_PANEL-2*WIDTH_BOX; label.setBounds(0, 0, WLABEL, HEIGHT_BOX); alphaTextField.setBounds(WLABEL, 0, WIDTH_BOX, HEIGHT_BOX); alphaSlider.setBounds(WLABEL+WIDTH_BOX+2*BOX... | 3,239,504 |
private void initButtons() { saveButton = new JButton("Save"); applyButton = new JButton("Apply"); applyButton.setEnabled(false); cancelButton = new JButton("Cancel"); } | private void initButtons() { saveButton = new JButton("Save"); applyButton = new JButton("Apply"); applyButton.setEnabled(false); cancelButton = new JButton("Cancel"); } | 3,239,505 |
private void initButtons() { saveButton = new JButton("Save"); applyButton = new JButton("Apply"); applyButton.setEnabled(false); cancelButton = new JButton("Cancel"); } | private void initButtons() { saveButton = new JButton("Save"); applyButton = new JButton("Apply"); applyButton.setEnabled(false); cancelButton = new JButton("Cancel"); } | 3,239,506 |
public UnmarshalStream(Ruby ruby, InputStream in) throws IOException { super(in); this.runtime = ruby; in.read(); // Major in.read(); // Minor } | public UnmarshalStream(Ruby ruby, InputStream in) throws IOException { super(in); in.read(); // Major in.read(); // Minor } | 3,239,507 |
public static Object convertRubyToJava(Ruby ruby, RubyObject rubyObject, Class javaClass) { if (rubyObject == ruby.getNil()) { return null; } if (javaClass.isArray()) { try { Class arrayClass = javaClass.getComponentType(); int len = (int)((Ru... | public static Object convertRubyToJava(Ruby ruby, RubyObject rubyObject, Class javaClass) { if (rubyObject == ruby.getNil()) { return null; } if (javaClass.isArray()) { try { Class arrayClass = javaClass.getComponentType(); int len = (int)((Ru... | 3,239,508 |
public static Object convertRubyToJava(Ruby ruby, RubyObject rubyObject, Class javaClass) { if (rubyObject == ruby.getNil()) { return null; } if (javaClass.isArray()) { try { Class arrayClass = javaClass.getComponentType(); int len = (int)((Ru... | public static Object convertRubyToJava(Ruby ruby, RubyObject rubyObject, Class javaClass) { if (rubyObject == ruby.getNil()) { return null; } if (javaClass.isArray()) { try { Class arrayClass = javaClass.getComponentType(); int len = (int)((Ru... | 3,239,509 |
private void synch(int val) { curT = val; view.getTField().setText(""+val); //doesn't fire ActionEvent manager.onTChange(curT); } | private void synch(int val) { curT = val; view.getTField().setText(""+val); view.repaint(); //doesn't fire ActionEvent manager.onTChange(curT); } | 3,239,510 |
public Node literal_concat(ISourcePosition position, Node head, Node tail) { if (head == null) { assert tail == null || tail instanceof Node; return (Node) tail; } if (tail == null) { return head; } if (head instanceof EvStrNode) { ... | public Node literal_concat(ISourcePosition position, Node head, Node tail) { if (head == null) { assert tail == null || tail instanceof Node; return (Node) tail; } if (tail == null) { return head; } if (head instanceof EvStrNode) { ... | 3,239,511 |
protected void onSetUp() throws Exception { super.onSetUp(); DataSource dataSource = (DataSource) applicationContext.getBean("dataSource"); data = new OMEData(); data.setDataSource(dataSource); iPojos = (IPojos) applicationContext.getBean("pojosService"); } | protected void onSetUp() throws Exception { super.onSetUp(); DataSource dataSource = (DataSource) applicationContext.getBean("dataSource"); data = new OMEData(); data.setDataSource(dataSource); iPojos = factory.getPojosService(); } | 3,239,512 |
public Nil(Ruby ruby) { super(ruby, ruby.getClasses().getNilClass()); } | public Nil(Ruby ruby) { super(ruby, ruby.getClasses().getNilClass()); } | 3,239,513 |
public RubyFixnum arity() { switch (bodyNode.getType()) { case Constants.NODE_CFUNC: return RubyFixnum.m_newFixnum(getRuby(), -1); case Constants.NODE_ZSUPER: return RubyFixnum.m_newFixnum(getRuby(), -1); case Constants.NODE_ATTRSET: return RubyFixnum.one(getRuby()); case Constants.NODE_IVAR: retu... | public RubyFixnum arity() { switch (bodyNode.getType()) { case Constants.NODE_CFUNC: return RubyFixnum.m_newFixnum(getRuby(), -1); case Constants.NODE_ZSUPER: return RubyFixnum.m_newFixnum(getRuby(), -1); case Constants.NODE_ATTRSET: return RubyFixnum.one(getRuby()); case Constants.NODE_IVAR: retu... | 3,239,514 |
public Node getBodyNode() { return bodyNode; } | public Node getBodyNode() { return bodyNode; } | 3,239,515 |
public RubyId getMethodId() { return methodId; } | public RubyId getMethodId() { return methodId; } | 3,239,516 |
public RubyClass getOriginalClass() { return originalClass; } | public RubyClass getOriginalClass() { return originalClass; } | 3,239,517 |
public RubyId getOriginalId() { return originalId; } | public RubyId getOriginalId() { return originalId; } | 3,239,518 |
public RubyObject getReceiver() { return receiver; } | public RubyObject getReceiver() { return receiver; } | 3,239,519 |
public RubyClass getReceiverClass() { return receiverClass; } | public RubyClass getReceiverClass() { return receiverClass; } | 3,239,520 |
public RubyObject m_new(RubyObject[] args) { if (isSingleton()) { throw new RubyTypeException("can't create instance of virtual class"); } RubyObject obj = new RubyObject(getRuby(), this); // PUSH_ITER(rb_block_given_p()?ITER_PRE:ITER_NOT); obj.funcall(g... | public RubyObject m_new(RubyObject[] args) { if (isSingleton()) { throw new RubyTypeException("can't create instance of virtual class"); } RubyObject obj = new RubyObject(getRuby(), this); // PUSH_ITER(rb_block_given_p()?ITER_PRE:ITER_NOT); obj.callInit( ... | 3,239,521 |
public String toString(){ return "DatasetAnnotation"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); } | public String toString(){ return "DatasetAnnotation"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId); } | 3,239,522 |
DatasetEditorManager(DatasetEditor view, DataManagerCtrl agentCtrl, DatasetData model) { this.view = view; this.agentCtrl = agentCtrl; this.model = model; nameChange = false; isName = false; imagesToRemove = new ArrayList(); imagesToAdd = new ArrayList(); imagesToAddToRemove = new ArrayList(); } | DatasetEditorManager(DatasetEditor view, DataManagerCtrl agentCtrl, DatasetData model) { this.view = view; this.agentCtrl = agentCtrl; this.model = model; nameChange = false; isName = false; imagesToRemove = new ArrayList(); imagesToAdd = new ArrayList(); imagesToAddToRemove = new ArrayList(); } | 3,239,523 |
void initListeners() { //buttons attachButtonListener(view.getViewButton(), VIEW); attachButtonListener(view.getSaveButton(), SAVE); attachButtonListener(view.getAddButton(), ADD); attachButtonListener(view.getRemoveButton(), REMOVE); attachButtonListener(view.getResetButton(), RESET); ... | void initListeners() { //buttons attachButtonListener(view.getViewButton(), VIEW); attachButtonListener(view.getSaveButton(), SAVE); attachButtonListener(view.getAddButton(), ADD); attachButtonListener(view.getRemoveButton(), REMOVE); attachButtonListener(view.getResetButton(), RESET); ... | 3,239,524 |
public void insertUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); } | public void insertUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); } | 3,239,525 |
public void removeUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); } | public void removeUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); } | 3,239,526 |
public static void log( Object o ) { //if LOG was given if( LOG == true ) { if( ( logfile = getLogFile( ) ) == null ) { logfile = createLogFile( ); } if( logfile != null ) { if( o == null ) { o = "null"; } logfile.println( o ); i... | public static void log( Object o ) { //if LOG was given if(LOG ) { if( ( logfile = getLogFile( ) ) == null ) { logfile = createLogFile( ); } if( logfile != null ) { if( o == null ) { o = "null"; } logfile.println( o ); if( o inst... | 3,239,528 |
public static void log( Object o ) { //if LOG was given if( LOG == true ) { if( ( logfile = getLogFile( ) ) == null ) { logfile = createLogFile( ); } if( logfile != null ) { if( o == null ) { o = "null"; } logfile.println( o ); i... | public static void log( Object o ) { //if LOG was given if( LOG == true ) { if( ( logfile = getLogFile( ) ) == null ) { logfile = createLogFile( ); } if( logfile != null ) { if( o == null ) { o = "null"; } logfile.println( o ); i... | 3,239,529 |
public AutomatedInstaller(String inputFilename) throws Exception { super(); File input = new File(inputFilename); // Loads the installation data AutomatedInstallData idata = new AutomatedInstallData(); // Loads the installation data loadInstallData(idata); // Loads the xml data idata.xmlData ... | public AutomatedInstaller(String inputFilename) throws Exception { super(); File input = new File(inputFilename); // Loads the installation data // Loads the installation data loadInstallData(idata); // Loads the xml data idata.xmlData = getXMLData(input); // Loads the langpack idata.loca... | 3,239,530 |
public AutomatedInstaller(String inputFilename) throws Exception { super(); File input = new File(inputFilename); // Loads the installation data AutomatedInstallData idata = new AutomatedInstallData(); // Loads the installation data loadInstallData(idata); // Loads the xml data idata.xmlData ... | public AutomatedInstaller(String inputFilename) throws Exception { super(); File input = new File(inputFilename); // Loads the installation data AutomatedInstallData idata = new AutomatedInstallData(); // Loads the installation data loadInstallData(idata); // Loads the xml data idata.xmlData ... | 3,239,531 |
public AutomatedInstaller(String inputFilename) throws Exception { super(); File input = new File(inputFilename); // Loads the installation data AutomatedInstallData idata = new AutomatedInstallData(); // Loads the installation data loadInstallData(idata); // Loads the xml data idata.xmlData ... | public AutomatedInstaller(String inputFilename) throws Exception { super(); File input = new File(inputFilename); // Loads the installation data AutomatedInstallData idata = new AutomatedInstallData(); // Loads the installation data loadInstallData(idata); // Loads the xml data idata.xmlData ... | 3,239,532 |
public SoftReferenceObjectPool(PoolableObjectFactory factory) { _pool = new ArrayList(); _factory = factory; } | public SoftReferenceObjectPool() { _pool = new ArrayList(); _factory = factory; } | 3,239,533 |
public SoftReferenceObjectPool(PoolableObjectFactory factory) { _pool = new ArrayList(); _factory = factory; } | public SoftReferenceObjectPool(PoolableObjectFactory factory) { _pool = new ArrayList(); _factory = null; } | 3,239,534 |
public void run() { instances.add(this); try { listener.startUnpack(); String currentOs = System.getProperty("os.name").toLowerCase(); // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); Li... | public void run() { instances.add(this); try { listener.startUnpack(); String currentOs = System.getProperty("os.name").toLowerCase(); // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); Li... | 3,239,535 |
public void run() { instances.add(this); try { listener.startUnpack(); String currentOs = System.getProperty("os.name").toLowerCase(); // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); Li... | public void run() { instances.add(this); try { listener.startUnpack(); String currentOs = System.getProperty("os.name").toLowerCase(); // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); Li... | 3,239,536 |
public void parseFiles() throws Exception { // Parses the files Iterator iter = files.iterator(); while (iter.hasNext()) { // Create a temporary file for the parsed data // (Use the same directory so that renaming works later) ParsableFile pfile = (ParsableFile) iter.next(); // check ... | public void parseFiles() throws Exception { // Parses the files Iterator iter = files.iterator(); while (iter.hasNext()) { // Create a temporary file for the parsed data // (Use the same directory so that renaming works later) ParsableFile pfile = (ParsableFile) iter.next(); // check ... | 3,239,537 |
public void parseFiles() throws Exception { // Parses the files Iterator iter = files.iterator(); while (iter.hasNext()) { // Create a temporary file for the parsed data // (Use the same directory so that renaming works later) ParsableFile pfile = (ParsableFile) iter.next(); // check ... | public void parseFiles() throws Exception { // Parses the files Iterator iter = files.iterator(); while (iter.hasNext()) { // Create a temporary file for the parsed data // (Use the same directory so that renaming works later) ParsableFile pfile = (ParsableFile) iter.next(); // check ... | 3,239,538 |
public void parseFiles() throws Exception { // Parses the files Iterator iter = files.iterator(); while (iter.hasNext()) { // Create a temporary file for the parsed data // (Use the same directory so that renaming works later) ParsableFile pfile = (ParsableFile) iter.next(); // check ... | public void parseFiles() throws Exception { // Parses the files Iterator iter = files.iterator(); while (iter.hasNext()) { // Create a temporary file for the parsed data // (Use the same directory so that renaming works later) ParsableFile pfile = (ParsableFile) iter.next(); // check ... | 3,239,539 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.