Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/api/org/openmrs/module/ModuleClassLoader.java b/src/api/org/openmrs/module/ModuleClassLoader.java index 55f2cbf9..698e8afe 100644 --- a/src/api/org/openmrs/module/ModuleClassLoader.java +++ b/src/api/org/openmrs/module/ModuleClassLoader.java @@ -1,907 +1,907 @@ /** * The contents of this file are su...
false
true
protected Class<?> loadClass(final String name, final boolean resolve, final ModuleClassLoader requestor, Set<String> seenModules) throws ClassNotFoundException { if (log.isDebugEnabled()) { log.warn("loading " + name + " " + getModule() + " seenModules: " + seenModules + " requestor: " + requestor + " r...
protected Class<?> loadClass(final String name, final boolean resolve, final ModuleClassLoader requestor, Set<String> seenModules) throws ClassNotFoundException { if (log.isTraceEnabled()) { log.trace("loading " + name + " " + getModule() + " seenModules: " + seenModules + " requestor: " + requestor + " ...
diff --git a/crypto/jdk1.3/org/bouncycastle/cms/CMSSignedData.java b/crypto/jdk1.3/org/bouncycastle/cms/CMSSignedData.java index fe6df1a6..260ce625 100644 --- a/crypto/jdk1.3/org/bouncycastle/cms/CMSSignedData.java +++ b/crypto/jdk1.3/org/bouncycastle/cms/CMSSignedData.java @@ -1,528 +1,528 @@ package org.bouncycastle...
true
true
public static CMSSignedData replaceSigners( CMSSignedData signedData, SignerInformationStore signerInformationStore) { // // copy // CMSSignedData cms = new CMSSignedData(signedData); // // replace the store // ...
public static CMSSignedData replaceSigners( CMSSignedData signedData, SignerInformationStore signerInformationStore) { // // copy // CMSSignedData cms = new CMSSignedData(signedData); // // replace the store // ...
diff --git a/src/eu/icecraft/iceauth/IceAuth.java b/src/eu/icecraft/iceauth/IceAuth.java index ea6b010..050dc81 100644 --- a/src/eu/icecraft/iceauth/IceAuth.java +++ b/src/eu/icecraft/iceauth/IceAuth.java @@ -1,694 +1,694 @@ package eu.icecraft.iceauth; import java.io.File; import java.math.BigInteger; import jav...
true
true
public void onEnable() { PluginManager pm = getServer().getPluginManager(); // TODO: Permissions /* Plugin perms = pm.getPlugin("Permissions"); if (perms != null) { if (!pm.isPluginEnabled(perms)) { pm.enablePlugin(perms); } perm = (Permissions) perms; } else { UseOP = true; } */ ...
public void onEnable() { PluginManager pm = getServer().getPluginManager(); // TODO: Permissions /* Plugin perms = pm.getPlugin("Permissions"); if (perms != null) { if (!pm.isPluginEnabled(perms)) { pm.enablePlugin(perms); } perm = (Permissions) perms; } else { UseOP = true; } */ ...
diff --git a/ToureNPlaner/src/de/uni/stuttgart/informatik/ToureNPlaner/UI/Overlays/DrawableMarker.java b/ToureNPlaner/src/de/uni/stuttgart/informatik/ToureNPlaner/UI/Overlays/DrawableMarker.java index e0b79b4..8d00297 100644 --- a/ToureNPlaner/src/de/uni/stuttgart/informatik/ToureNPlaner/UI/Overlays/DrawableMarker.java...
true
true
public void draw(Canvas canvas) { int radiusFactor = 1; // Transfrom geoposition to Point on canvas mapView.getProjection().toPixels(gp, point); canvas.setDrawFilter(drawFilter); // Workaround for http://code.google.com/p/skia/issues/detail?id=387 canvas.setMatrix(can...
public void draw(Canvas canvas) { int radiusFactor = 1; // Transfrom geoposition to Point on canvas mapView.getProjection().toPixels(gp, point); canvas.setDrawFilter(drawFilter); circle.setColor(color); //add a line for the circle canvas.drawCircle(point.x, ...
diff --git a/src/gameEngine/GameEngine.java b/src/gameEngine/GameEngine.java index 8f9a53c..6493799 100644 --- a/src/gameEngine/GameEngine.java +++ b/src/gameEngine/GameEngine.java @@ -1,640 +1,640 @@ package gameEngine; import java.util.*; import gui.MainInterface; import participant.Chips; import participant...
true
true
public void gameStart() { reset(); /* * temporarily adding players here for testing purposes, * later needs to be modified to create/accept players/spectators */ /* Player bob = new Player("bob","bob"); BlackjackHand hb = new BlackjackHand(); ArrayList<BlackjackHand> hbb = new...
public void gameStart() { reset(); /* * temporarily adding players here for testing purposes, * later needs to be modified to create/accept players/spectators */ /* Player bob = new Player("bob","bob"); BlackjackHand hb = new BlackjackHand(); ArrayList<BlackjackHand> hbb = new...
diff --git a/java/de/hattrickorganizer/gui/model/UserColumnFactory.java b/java/de/hattrickorganizer/gui/model/UserColumnFactory.java index 783afba5..71cf820f 100644 --- a/java/de/hattrickorganizer/gui/model/UserColumnFactory.java +++ b/java/de/hattrickorganizer/gui/model/UserColumnFactory.java @@ -1,674 +1,674 @@ pack...
false
true
protected static PlayerColumn[] createPlayerAdditionalArray(){ final PlayerColumn [] playerAdditionalArray = new PlayerColumn[11]; playerAdditionalArray[0] =new PlayerColumn(10," "," ",0){ public TableEntry getTableEntry(Spieler player,Spieler playerCompare){ int sort = player.getTrikotnummer(); ...
protected static PlayerColumn[] createPlayerAdditionalArray(){ final PlayerColumn [] playerAdditionalArray = new PlayerColumn[11]; playerAdditionalArray[0] =new PlayerColumn(10," "," ",0){ public TableEntry getTableEntry(Spieler player,Spieler playerCompare){ int sort = player.getTrikotnummer(); ...
diff --git a/src/com/android/calendar/event/EditEventView.java b/src/com/android/calendar/event/EditEventView.java index 8b51ed5c..f1d305a0 100644 --- a/src/com/android/calendar/event/EditEventView.java +++ b/src/com/android/calendar/event/EditEventView.java @@ -1,1634 +1,1635 @@ /* * Copyright (C) 2010 The Android ...
true
true
public void setModel(CalendarEventModel model) { mModel = model; // Need to close the autocomplete adapter to prevent leaking cursors. if (mAddressAdapter != null && mAddressAdapter instanceof EmailAddressAdapter) { ((EmailAddressAdapter)mAddressAdapter).close(); mAd...
public void setModel(CalendarEventModel model) { mModel = model; // Need to close the autocomplete adapter to prevent leaking cursors. if (mAddressAdapter != null && mAddressAdapter instanceof EmailAddressAdapter) { ((EmailAddressAdapter)mAddressAdapter).close(); mAd...
diff --git a/src/net/azib/ipscan/Main.java b/src/net/azib/ipscan/Main.java index 55357bd..f54ef4b 100755 --- a/src/net/azib/ipscan/Main.java +++ b/src/net/azib/ipscan/Main.java @@ -1,187 +1,187 @@ /** * This file is a part of Angry IP Scanner source code, * see http://www.angryip.org/ for more information. * Lic...
true
true
public static void main(String... args) { try { long startTime = System.currentTimeMillis(); initSystemProperties(); // this defines the Window class and app name on the Mac Display.setAppName(Version.NAME); Display display = Display.getDefault(); LOG.finer("SWT initialized after " + (System.curre...
public static void main(String... args) { try { long startTime = System.currentTimeMillis(); initSystemProperties(); // this defines the Window class and app name on the Mac Display.setAppName(Version.NAME); Display display = Display.getDefault(); LOG.finer("SWT initialized after " + (System.curre...
diff --git a/RadioPlugin/src/io/github/LilParker/RadioPlugin/RadioPluginCommandExecuter.java b/RadioPlugin/src/io/github/LilParker/RadioPlugin/RadioPluginCommandExecuter.java index 21a8e4f..a520f2d 100644 --- a/RadioPlugin/src/io/github/LilParker/RadioPlugin/RadioPluginCommandExecuter.java +++ b/RadioPlugin/src/io/gith...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){ if(cmd.getName().equalsIgnoreCase("setfreq")){ if(sender instanceof Player){ if(args.length == 1){ if(((Player) sender).getItemInHand().getTypeId() == plugin.getConfig().getInt("radioitemid")){ if(testParse(ar...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){ if(cmd.getName().equalsIgnoreCase("setfreq")){ if(sender instanceof Player){ if(args.length == 1){ if(((Player) sender).getItemInHand().getTypeId() == plugin.getConfig().getInt("radioitemid")){ if(testParse(ar...
diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/varianteval/IndelStatistics.java b/java/src/org/broadinstitute/sting/gatk/walkers/varianteval/IndelStatistics.java index 34f0732da..12142bf96 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/varianteval/IndelStatistics.java +++ b/java/src/org/broadi...
false
true
public void incrValue(VariantContext vc, ReferenceContext ref) { int eventLength = 0; boolean isInsertion = false, isDeletion = false; String indelAlleleString; if ( vc.isInsertion() ) { eventLength = vc.getAlternateAllele(0).length(); ...
public void incrValue(VariantContext vc, ReferenceContext ref) { int eventLength = 0; boolean isInsertion = false, isDeletion = false; String indelAlleleString; if ( vc.isInsertion() ) { eventLength = vc.getAlternateAllele(0).length(); ...
diff --git a/src/netproj/controller/NetworkWatcher.java b/src/netproj/controller/NetworkWatcher.java index f0de9a1..3a58e7e 100644 --- a/src/netproj/controller/NetworkWatcher.java +++ b/src/netproj/controller/NetworkWatcher.java @@ -1,144 +1,144 @@ package netproj.controller; import java.io.FileWriter; import java...
true
true
public void run() { if (timeOffset == -1) timeOffset = System.currentTimeMillis(); while (!this.isInterrupted()) { try { synchronized (this) { wait(900); } } catch (InterruptedException e) { logger.log(Level.WARNING, "NetworkWatcher was interrupted.", e); break; } // Collect...
public void run() { if (timeOffset == -1) timeOffset = System.currentTimeMillis(); while (!this.isInterrupted()) { try { synchronized (this) { wait(900); } } catch (InterruptedException e) { logger.log(Level.WARNING, "NetworkWatcher was interrupted.", e); break; } // Collect...
diff --git a/src/java/fedora/common/PID.java b/src/java/fedora/common/PID.java index 8d9d275f7..4bafe9e85 100755 --- a/src/java/fedora/common/PID.java +++ b/src/java/fedora/common/PID.java @@ -1,242 +1,242 @@ package fedora.common; import java.io.*; // BufferedReader, InputStreamReader /** * A persistent iden...
true
true
public static String normalize(String pidString) throws MalformedPIDException { // First, do null & length checks if (pidString == null) { throw new MalformedPIDException("PID is null."); } if (pidString.length() > MAX_LENGTH) { throw new Malforme...
public static String normalize(String pidString) throws MalformedPIDException { // First, do null & length checks if (pidString == null) { throw new MalformedPIDException("PID is null."); } if (pidString.length() > MAX_LENGTH) { throw new Malforme...
diff --git a/rultor-users/src/main/java/com/rultor/users/pgsql/PgAccount.java b/rultor-users/src/main/java/com/rultor/users/pgsql/PgAccount.java index 18547a9fc..e1dc2bda6 100644 --- a/rultor-users/src/main/java/com/rultor/users/pgsql/PgAccount.java +++ b/rultor-users/src/main/java/com/rultor/users/pgsql/PgAccount.java...
true
true
public void fund(@NotNull final String code) throws InvalidCouponException { try { final Dollars amount = new Dollars( new JdbcSession(this.client.get()) // @checkstyle LineLength (1 line) .sql("SELECT amount FROM coupon WHERE code=?") ...
public void fund(@NotNull final String code) throws InvalidCouponException { try { final Dollars amount = new Dollars( new JdbcSession(this.client.get()) .sql("SELECT amount FROM coupon WHERE code=?") .set(code) .select(...
diff --git a/src/main/java/com/candou/ic/navigation/wxdh/dao/AppDao.java b/src/main/java/com/candou/ic/navigation/wxdh/dao/AppDao.java index f666d5b..054acf6 100644 --- a/src/main/java/com/candou/ic/navigation/wxdh/dao/AppDao.java +++ b/src/main/java/com/candou/ic/navigation/wxdh/dao/AppDao.java @@ -1,57 +1,57 @@ pack...
true
true
public static void addBatchApps(List<App> apps) { try { Connection connection = Database.getConnection(); PreparedStatement ps = connection .prepareStatement("insert ignore into "+table_Name+" (id, name, intro, url, f, oc, wsu, detail, dts, cid, cname, icon, icon_name...
public static void addBatchApps(List<App> apps) { try { Connection connection = Database.getConnection(); PreparedStatement ps = connection .prepareStatement("insert ignore into "+table_Name+" (id, name, intro, url, f, oc, wsu, detail, dts, cid, cname, icon, icon_name...
diff --git a/ReactorEE/swing/MainGUI.java b/ReactorEE/swing/MainGUI.java index 386c064..42df03f 100644 --- a/ReactorEE/swing/MainGUI.java +++ b/ReactorEE/swing/MainGUI.java @@ -1,1097 +1,1097 @@ package ReactorEE.swing; import java.awt.Insets; import javax.swing.ImageIcon; import javax.swing.JFrame; import java....
false
true
private void initialize() { //instantiates the main frame frmReactoree = new JFrame(); frmReactoree.setTitle("ReactorEE"); frmReactoree.setBounds(100, 100, 1049, 740); frmReactoree.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //which is layered - two laye...
private void initialize() { //instantiates the main frame frmReactoree = new JFrame(); frmReactoree.setTitle("ReactorEE"); frmReactoree.setBounds(100, 100, 1049, 740); frmReactoree.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //which is layered - two laye...
diff --git a/src/main/java/org/hampelratte/net/mms/client/MMSClient.java b/src/main/java/org/hampelratte/net/mms/client/MMSClient.java index 8666a0b..8d0f97d 100644 --- a/src/main/java/org/hampelratte/net/mms/client/MMSClient.java +++ b/src/main/java/org/hampelratte/net/mms/client/MMSClient.java @@ -1,246 +1,246 @@ pa...
false
true
public void connect() throws Exception { ConnectFuture connectFuture = connector.connect(new InetSocketAddress(host, port)); connectFuture.awaitUninterruptibly(CONNECT_TIMEOUT); session = connectFuture.getSession(); if(connectFuture != null) { connectFuture.addLi...
public void connect() throws Exception { ConnectFuture connectFuture = connector.connect(new InetSocketAddress(host, port)); if(connectFuture != null) { connectFuture.awaitUninterruptibly(CONNECT_TIMEOUT); session = connectFuture.getSession(); connectFutu...
diff --git a/modules/com.noelios.restlet.ext.httpclient_3.1/src/com/noelios/restlet/ext/httpclient/HttpMethodCall.java b/modules/com.noelios.restlet.ext.httpclient_3.1/src/com/noelios/restlet/ext/httpclient/HttpMethodCall.java index 6c1a63df1..49aa58f15 100644 --- a/modules/com.noelios.restlet.ext.httpclient_3.1/src/co...
true
true
public Status sendRequest(Request request) { Status result = null; try { final Representation entity = request.getEntity(); // Set the request headers for (Parameter header : getRequestHeaders()) { getHttpMethod().setRequestHeader(header.getName(...
public Status sendRequest(Request request) { Status result = null; try { final Representation entity = request.getEntity(); // Set the request headers for (Parameter header : getRequestHeaders()) { getHttpMethod().addRequestHeader(header.getName(...
diff --git a/src/test/java/functional/com/thoughtworks/twu/TakeDownOfferFunctionalTest.java b/src/test/java/functional/com/thoughtworks/twu/TakeDownOfferFunctionalTest.java index 82f0283..4bfcdd2 100644 --- a/src/test/java/functional/com/thoughtworks/twu/TakeDownOfferFunctionalTest.java +++ b/src/test/java/functional/c...
false
true
public void shouldNotDisplayHiddenOfferInBrowsePageAfterTakeDown() throws Exception { logIn(); Thread.sleep(1000); webDriver.findElement(By.id("browse")).click(); List<WebElement> initialList = webDriver.findElements(By.className("offer")); webDriver.get("http://127.0.0.1:8...
public void shouldNotDisplayHiddenOfferInBrowsePageAfterTakeDown() throws Exception { logIn(); // Thread.sleep(1000); WebDriverWait waitToBrowse = new WebDriverWait(webDriver, 1000); waitToBrowse.until(ExpectedConditions.visibilityOfElementLocated(By.id("browse"))); webDrive...
diff --git a/src/com/asylumsw/bukkit/waypoints/Waypoints.java b/src/com/asylumsw/bukkit/waypoints/Waypoints.java index 9baba79..ca6dae6 100644 --- a/src/com/asylumsw/bukkit/waypoints/Waypoints.java +++ b/src/com/asylumsw/bukkit/waypoints/Waypoints.java @@ -1,101 +1,101 @@ package com.asylumsw.bukkit.waypoints; impo...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if( !(sender instanceof Player) ) return false; if( !cmd.getName().equalsIgnoreCase("wp") ) return false; if( 1 > args.length ) return false; String action = args[0]; if( action.equalsIgnoreCase("home") ) { if( 2 ...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if( !(sender instanceof Player) ) return false; if( !cmd.getName().equalsIgnoreCase("wp") ) return false; if( 1 > args.length ) return false; String action = args[0]; if( action.equalsIgnoreCase("home") ) { if( 2 ...
diff --git a/src/main/org/jboss/reflect/InheritableAnnotationHolder.java b/src/main/org/jboss/reflect/InheritableAnnotationHolder.java index fdb0f36..21abb66 100644 --- a/src/main/org/jboss/reflect/InheritableAnnotationHolder.java +++ b/src/main/org/jboss/reflect/InheritableAnnotationHolder.java @@ -1,99 +1,99 @@ /* ...
true
true
protected void setupAnnotations(AnnotationValue[] annotations) { if (annotations != null && annotations.length > 0) { declaredAnnotations = new HashMap(); declaredAnnotationsArray = annotations; for (int i = 0; i < annotations.length; i++) { declaredAnno...
protected void setupAnnotations(AnnotationValue[] annotations) { if (annotations != null && annotations.length > 0) { declaredAnnotations = new HashMap(); declaredAnnotationsArray = annotations; for (int i = 0; i < annotations.length; i++) { declaredAnno...
diff --git a/src/org/protege/editor/owl/ui/library/EditOntologyLibraryAction.java b/src/org/protege/editor/owl/ui/library/EditOntologyLibraryAction.java index e0a64eb9..d1b3b95f 100644 --- a/src/org/protege/editor/owl/ui/library/EditOntologyLibraryAction.java +++ b/src/org/protege/editor/owl/ui/library/EditOntologyLibr...
true
true
public void actionPerformed(ActionEvent e) { try { File catalogFile = UIUtil.openFile(getOWLWorkspace(), "Choose catalog file containing ontology repository information", "Choose XML Catalog", Collections.singleton("xml")); OntologyLibraryPanel.showDialog(getOWLEditorKit(), catalogFile); } ...
public void actionPerformed(ActionEvent e) { try { File catalogFile = UIUtil.openFile(getOWLWorkspace(), "Choose catalog file containing ontology repository information", "Choose XML Catalog", Collections.singleton("xml")); if (catalogFile != null) { OntologyLibraryPanel.showDialog(getOWLEdi...
diff --git a/sirocco-cimi-command-line-tools/src/main/java/org/ow2/sirocco/cimi/tools/NetworkShowCommand.java b/sirocco-cimi-command-line-tools/src/main/java/org/ow2/sirocco/cimi/tools/NetworkShowCommand.java index 6db5048..84ab7b5 100644 --- a/sirocco-cimi-command-line-tools/src/main/java/org/ow2/sirocco/cimi/tools/Ne...
false
true
public static void printNetwork(final Network net, final ResourceSelectExpandParams showParams) throws CimiClientException { Table table = CommandHelper.createResourceShowTable(net, showParams); if (showParams.isSelected("state")) { table.addCell("state"); table.addCell(net....
public static void printNetwork(final Network net, final ResourceSelectExpandParams showParams) throws CimiClientException { Table table = CommandHelper.createResourceShowTable(net, showParams); if (showParams.isSelected("state") && net.getState() != null) { table.addCell("state"); ...
diff --git a/src/test/java/test/strangeforest/currencywatch/unit/ParallelCurrencyRateProviderProxyTest.java b/src/test/java/test/strangeforest/currencywatch/unit/ParallelCurrencyRateProviderProxyTest.java index 8b0fff0..b93375f 100644 --- a/src/test/java/test/strangeforest/currencywatch/unit/ParallelCurrencyRateProvide...
true
true
public void getRatesRetryFail() { CurrencyRateProvider provider = mock(CurrencyRateProvider.class); when(provider.getRate(SYMBOL_FROM, SYMBOL_TO, DATE)).thenThrow(new CurrencyRateException("Booom!")); CurrencyRateListener listener = mock(CurrencyRateListener.class); try (ParallelCurrencyRateProviderProxy para...
public void getRatesRetryFail() { CurrencyRateProvider provider = mock(CurrencyRateProvider.class); when(provider.getRate(SYMBOL_FROM, SYMBOL_TO, DATE)).thenThrow(new CurrencyRateException("Booom!")); CurrencyRateListener listener = mock(CurrencyRateListener.class); try (ParallelCurrencyRateProviderProxy para...
diff --git a/src/lang/psi/impl/symbols/LuaWrapperReferenceElementImpl.java b/src/lang/psi/impl/symbols/LuaWrapperReferenceElementImpl.java index 3247d276..0a2adc0d 100644 --- a/src/lang/psi/impl/symbols/LuaWrapperReferenceElementImpl.java +++ b/src/lang/psi/impl/symbols/LuaWrapperReferenceElementImpl.java @@ -1,62 +1,6...
true
true
public boolean isSameKind(LuaSymbol symbol) { assert false; return false; //To change body of implemented methods use File | Settings | File Templates. }
public boolean isSameKind(LuaSymbol symbol) { // assert false; if (getElement() instanceof LuaSymbol) return ((LuaSymbol) getElement()).isSameKind(symbol); return false; }
diff --git a/src/base/PatchBuilder.java b/src/base/PatchBuilder.java index 492a17d..9498a35 100644 --- a/src/base/PatchBuilder.java +++ b/src/base/PatchBuilder.java @@ -1,143 +1,144 @@ package base; import java.io.BufferedReader; import java.io.EOFException; import java.io.File; import java.io.FileInputStream; ...
false
true
private void install_tables(RandomAccessFile out, List<String> list) { System.out.print("Trying to add data_install tables..."); try { BufferedReader in = new BufferedReader(new FileReader("data_install.txt")); out.seek(out.length()); String line; ...
private void install_tables(RandomAccessFile out, List<String> list) { System.out.print("Trying to add data_install tables..."); try { BufferedReader in = new BufferedReader(new FileReader("data_install.txt")); out.seek(out.length()); String line; ...
diff --git a/src/entities/players/abilities/RangedAttackAbility.java b/src/entities/players/abilities/RangedAttackAbility.java index 5b77513..a04ebf8 100644 --- a/src/entities/players/abilities/RangedAttackAbility.java +++ b/src/entities/players/abilities/RangedAttackAbility.java @@ -1,26 +1,26 @@ package entities.pla...
true
true
public void use(Player p) { Projectile pro = null; Position vec = GameplayMouseInput.getMousePosition().clone(); vec.translate(-p.getCentreX(), -p.getCentreY()); pro = new Projectile(p.getX(), p.getY(), 10, vec.getAngle(), vec.getMagnitudeSquared()); MapLoader.getCurrentCell().addProjectile(pro);...
public void use(Player p) { Projectile pro = null; Position vec = GameplayMouseInput.getMousePosition().clone(); vec.translate(-p.getCentreX(), -p.getCentreY()); pro = new Projectile(p.getCentreX(), p.getCentreY(), 10, vec.getAngle(), vec.getMagnitudeSquared()); MapLoader.getCurrentCell().addProj...
diff --git a/src/main/java/org/agmip/translators/dssat/DssatXFileInput.java b/src/main/java/org/agmip/translators/dssat/DssatXFileInput.java index 595343b..bf6e14d 100644 --- a/src/main/java/org/agmip/translators/dssat/DssatXFileInput.java +++ b/src/main/java/org/agmip/translators/dssat/DssatXFileInput.java @@ -1,1358 ...
true
true
protected ArrayList<HashMap> readTreatments(HashMap brMap, HashMap metaData) throws IOException { String line; BufferedReader br; Object buf; BufferedReader brw = null; char[] bufW = null; HashMap mapX; HashMap mapW; String wid; String fileNam...
protected ArrayList<HashMap> readTreatments(HashMap brMap, HashMap metaData) throws IOException { String line; BufferedReader br; Object buf; BufferedReader brw = null; char[] bufW = null; HashMap mapX; HashMap mapW; String wid; String fileNam...
diff --git a/src/de/mpicbg/tds/knime/heatmap/PlateViewer.java b/src/de/mpicbg/tds/knime/heatmap/PlateViewer.java index 9bdbfdb..c3e3968 100644 --- a/src/de/mpicbg/tds/knime/heatmap/PlateViewer.java +++ b/src/de/mpicbg/tds/knime/heatmap/PlateViewer.java @@ -1,211 +1,213 @@ package de.mpicbg.tds.knime.heatmap; import...
true
true
public PlateViewer(HeatTrellis parent, Plate plate) { this(); this.updater = parent; // Create a new instance of the HeatMapModel and copy some attributes. HeatMapModel model = new HeatMapModel(); model.setCurrentReadout(parent.heatMapModel.getSelectedReadOut()); mod...
public PlateViewer(HeatTrellis parent, Plate plate) { this(); this.updater = parent; // Create a new instance of the HeatMapModel and copy some attributes. HeatMapModel model = new HeatMapModel(); model.setCurrentReadout(parent.heatMapModel.getSelectedReadOut()); mod...
diff --git a/src/Client/Roster.java b/src/Client/Roster.java index b5922307..4179b034 100644 --- a/src/Client/Roster.java +++ b/src/Client/Roster.java @@ -1,2838 +1,2840 @@ /* * Roster.java * * Created on 6.01.2005, 19:16 * Copyright (c) 2005-2008, Eugene Stahov (evgs), http://bombus-im.org * * This progra...
true
true
public int blockArrived( JabberDataBlock data ) { try { if( data instanceof Iq ) { String from=data.getAttribute("from"); String type = (String) data.getTypeAttribute(); String id=(String) data.getAttribute("id"); i...
public int blockArrived( JabberDataBlock data ) { try { if( data instanceof Iq ) { String from=data.getAttribute("from"); String type = (String) data.getTypeAttribute(); String id=(String) data.getAttribute("id"); i...
diff --git a/java/xbee/src/com/rapplogic/xbee/examples/RemoteAtExample.java b/java/xbee/src/com/rapplogic/xbee/examples/RemoteAtExample.java index 3e9870c..377a780 100755 --- a/java/xbee/src/com/rapplogic/xbee/examples/RemoteAtExample.java +++ b/java/xbee/src/com/rapplogic/xbee/examples/RemoteAtExample.java @@ -1,125 +...
true
true
private RemoteAtExample(int mode) throws XBeeException, InterruptedException { XBee xbee = new XBee(); try { // replace with your coordinator com/baud String SerialPortID="/dev/ttyAMA0"; System.setProperty("gnu.io.rxtx.SerialPorts", SerialPortID); xbee.open(SerialPortID, 9600); // xbee.open("C...
private RemoteAtExample(int mode) throws XBeeException, InterruptedException { XBee xbee = new XBee(); try { // replace with your coordinator com/baud String SerialPortID="/dev/ttyAMA0"; System.setProperty("gnu.io.rxtx.SerialPorts", SerialPortID); xbee.open(SerialPortID, 9600); // xbee.open("C...
diff --git a/src/main/java/org/nuxeo/ecm/platform/audit/web/access/WebAccessLogActionListener.java b/src/main/java/org/nuxeo/ecm/platform/audit/web/access/WebAccessLogActionListener.java index b742c6e..f07c612 100644 --- a/src/main/java/org/nuxeo/ecm/platform/audit/web/access/WebAccessLogActionListener.java +++ b/src/m...
true
true
public void log() { DocumentModel dm = navigationContext.getCurrentDocument(); DocumentEventContext ctx = new DocumentEventContext(navigationContext.getCurrentDocument().getCoreSession(), currentUser, dm); ctx.setCategory(DocumentEventCategories.EVENT_DOCUMENT_CATEGORY); ...
public void log() { DocumentModel dm = navigationContext.getCurrentDocument(); if (dm==null) { return; } DocumentEventContext ctx = new DocumentEventContext(navigationContext.getCurrentDocument().getCoreSession(), currentUser, dm); ctx.setCategory(...
diff --git a/src/br/com/suelengc/calctributospj/model/TributacaoNormal.java b/src/br/com/suelengc/calctributospj/model/TributacaoNormal.java index 3b3c969..162b367 100644 --- a/src/br/com/suelengc/calctributospj/model/TributacaoNormal.java +++ b/src/br/com/suelengc/calctributospj/model/TributacaoNormal.java @@ -1,74 +1...
true
true
public TributacaoNormal(double valorTotalNotaFiscal) { this.valorBrutoNotaFiscal = valorTotalNotaFiscal; this.irpjMensal = valorTotalNotaFiscal * 0.015; this.irpjTrimestral = valorTotalNotaFiscal * 0.009; this.cofinsMensal = valorTotalNotaFiscal * 0.03; this.pisMensal = valorTotalNotaFiscal * 0.065; this.c...
public TributacaoNormal(double valorTotalNotaFiscal) { this.valorBrutoNotaFiscal = valorTotalNotaFiscal; this.irpjMensal = valorTotalNotaFiscal * 0.015; this.irpjTrimestral = valorTotalNotaFiscal * 0.009; this.cofinsMensal = valorTotalNotaFiscal * 0.03; this.pisMensal = valorTotalNotaFiscal * 0.0065; this....
diff --git a/core/src/main/java/com/ning/metrics/meteo/subscribers/FileSubscriber.java b/core/src/main/java/com/ning/metrics/meteo/subscribers/FileSubscriber.java index ce0de30..3b28950 100644 --- a/core/src/main/java/com/ning/metrics/meteo/subscribers/FileSubscriber.java +++ b/core/src/main/java/com/ning/metrics/meteo...
true
true
private ImmutableList<LinkedHashMap<String, Object>> getDataPoints() { ImmutableList.Builder<LinkedHashMap<String, Object>> builder = new ImmutableList.Builder<LinkedHashMap<String, Object>>(); try { for (String line : (List<String>) IOUtils.readLines(new FileReader(subscriberConfig...
private ImmutableList<LinkedHashMap<String, Object>> getDataPoints() { ImmutableList.Builder<LinkedHashMap<String, Object>> builder = new ImmutableList.Builder<LinkedHashMap<String, Object>>(); try { for (String line : (List<String>) IOUtils.readLines(new FileReader(subscriberConfig...
diff --git a/org.eclipse.b3.beelang.ui/src/org/eclipse/b3/commands/ExecuteHandler.java b/org.eclipse.b3.beelang.ui/src/org/eclipse/b3/commands/ExecuteHandler.java index ec25a023..21913cab 100644 --- a/org.eclipse.b3.beelang.ui/src/org/eclipse/b3/commands/ExecuteHandler.java +++ b/org.eclipse.b3.beelang.ui/src/org/eclip...
true
true
public Object execute(ExecutionEvent event) throws ExecutionException { System.out.print("Running the main function...\n"); EvaluationContext ctx = (EvaluationContext)event.getApplicationContext(); List<ContentOutlineNode> nodes = (List<ContentOutlineNode>)ctx.getDefaultVariable(); ContentOutlineNode node = no...
public Object execute(ExecutionEvent event) throws ExecutionException { System.out.print("Running the main function...\n"); EvaluationContext ctx = (EvaluationContext)event.getApplicationContext(); List<ContentOutlineNode> nodes = (List<ContentOutlineNode>)ctx.getDefaultVariable(); ContentOutlineNode node = no...
diff --git a/src/main/java/eu/serscis/SAMMethod.java b/src/main/java/eu/serscis/SAMMethod.java index 6667715..13ca97f 100644 --- a/src/main/java/eu/serscis/SAMMethod.java +++ b/src/main/java/eu/serscis/SAMMethod.java @@ -1,439 +1,444 @@ ///////////////////////////////////////////////////////////////////////// // // ...
true
true
private void processCode(List<PStatement> statements) throws Exception { for (PStatement ps : statements) { if (ps instanceof AAssignStatement) { AAssignStatement s = (AAssignStatement) ps; AAssign assign = (AAssign) s.getAssign(); PExpr expr = (PExpr) s.getExpr(); String callSite = methodNameFu...
private void processCode(List<PStatement> statements) throws Exception { for (PStatement ps : statements) { if (ps instanceof AAssignStatement) { AAssignStatement s = (AAssignStatement) ps; AAssign assign = (AAssign) s.getAssign(); PExpr expr = (PExpr) s.getExpr(); String callSite = methodNameFu...
diff --git a/src/net/majorkernelpanic/spydroid/SpydroidApplication.java b/src/net/majorkernelpanic/spydroid/SpydroidApplication.java index 5bd948b..bbe3b2d 100644 --- a/src/net/majorkernelpanic/spydroid/SpydroidApplication.java +++ b/src/net/majorkernelpanic/spydroid/SpydroidApplication.java @@ -1,16 +1,16 @@ package ...
true
true
public void onCreate() { // The following line triggers the initialization of ACRA // Please do not uncomment this line unless you change the form id or I will receive your crash reports ! //ACRA.init(this); super.onCreate(); }
public void onCreate() { // The following line triggers the initialization of ACRA // Please do not uncomment this line unless you change the form id or I will receive your crash reports ! ACRA.init(this); super.onCreate(); }
diff --git a/src/edu/umn/genomics/table/DefaultTableContext.java b/src/edu/umn/genomics/table/DefaultTableContext.java index 1569b1e..347a725 100644 --- a/src/edu/umn/genomics/table/DefaultTableContext.java +++ b/src/edu/umn/genomics/table/DefaultTableContext.java @@ -1,1117 +1,1117 @@ /* * @(#) $RCSfile: DefaultTab...
true
true
public static void setViewToolBar(Window frame, Component view, JComponent extraButtons[]) { final Component comp = view; final Window theframe = frame; JButton jBtn; JToolBar jtb = new JToolBar(); // Close jBtn = new JButton("Close"); jBtn.addActionListener( new ActionListener() { ...
public static void setViewToolBar(Window frame, Component view, JComponent extraButtons[]) { final Component comp = view; final Window theframe = frame; JButton jBtn; JToolBar jtb = new JToolBar(); // Close jBtn = new JButton("Close"); jBtn.addActionListener( new ActionListener() { ...
diff --git a/org.eclipse.riena.sample.snippets/src/org/eclipse/riena/sample/snippets/SnippetListRidget001.java b/org.eclipse.riena.sample.snippets/src/org/eclipse/riena/sample/snippets/SnippetListRidget001.java index 6c11ef847..e1dc1f76d 100644 --- a/org.eclipse.riena.sample.snippets/src/org/eclipse/riena/sample/snippe...
true
true
public SnippetListRidget001(final Shell shell) { shell.setLayout(new FillLayout()); final org.eclipse.swt.widgets.List list = UIControlsFactory.createList(shell, false, true); final IListRidget listRidget = (IListRidget) SwtRidgetFactory.createRidget(list); listRidget.setSelectionType(ISelectableRidget.Select...
public SnippetListRidget001(final Shell shell) { shell.setLayout(new FillLayout()); final org.eclipse.swt.widgets.List list = UIControlsFactory.createList(shell, false, true); final IListRidget listRidget = (IListRidget) SwtRidgetFactory.createRidget(list); listRidget.setSelectionType(ISelectableRidget.Select...
diff --git a/mpicbg/ij/blockmatching/BlockMatching.java b/mpicbg/ij/blockmatching/BlockMatching.java index 92e23f7..d8d61ae 100644 --- a/mpicbg/ij/blockmatching/BlockMatching.java +++ b/mpicbg/ij/blockmatching/BlockMatching.java @@ -1,707 +1,707 @@ package mpicbg.ij.blockmatching; import ij.IJ; import ij.ImageStac...
false
true
static protected void matchByMaximalPMCC( final FloatProcessor source, final FloatProcessor target, final int blockRadiusX, final int blockRadiusY, final int searchRadiusX, final int searchRadiusY, final float minR, final float rod, final float maxCurvature, ...
static protected void matchByMaximalPMCC( final FloatProcessor source, final FloatProcessor target, final int blockRadiusX, final int blockRadiusY, final int searchRadiusX, final int searchRadiusY, final float minR, final float rod, final float maxCurvature, ...
diff --git a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/FeedbackForm.java b/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/artifactbrowser/FeedbackForm.java index e730f596f..12b7a2932 100644 --- a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspac...
true
true
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { // Build the item viewer division. Division feedback = body.addInteractiveDivision("feedback-form", contextPath+"/feedback",Division.METHOD...
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { // Build the item viewer division. Division feedback = body.addInteractiveDivision("feedback-form", contextPath+"/feedback",Division.METHOD...
diff --git a/src/main/java/com/anysoftkeyboard/ui/SendBugReportUiActivity.java b/src/main/java/com/anysoftkeyboard/ui/SendBugReportUiActivity.java index 60911a1f..ea7190f7 100644 --- a/src/main/java/com/anysoftkeyboard/ui/SendBugReportUiActivity.java +++ b/src/main/java/com/anysoftkeyboard/ui/SendBugReportUiActivity.ja...
true
true
public void onSendCrashReport(View v) { String[] recipients = new String[]{BuildConfig.CRASH_REPORT_EMAIL_ADDRESS}; Intent callingIntent = getIntent(); Intent sendMail = new Intent(); sendMail.setAction(Intent.ACTION_SEND); sendMail.setType("plain/text"); sendMail.p...
public void onSendCrashReport(View v) { String[] recipients = new String[]{BuildConfig.CRASH_REPORT_EMAIL_ADDRESS}; Intent callingIntent = getIntent(); Intent sendMail = new Intent(); sendMail.setAction(Intent.ACTION_SEND); sendMail.setType("plain/text"); sendMail.p...
diff --git a/src/net/neoturbine/autolycus/BusShortcuts.java b/src/net/neoturbine/autolycus/BusShortcuts.java index 145ffe7..7c718ec 100644 --- a/src/net/neoturbine/autolycus/BusShortcuts.java +++ b/src/net/neoturbine/autolycus/BusShortcuts.java @@ -1,91 +1,93 @@ /** * */ package net.neoturbine.autolycus; impo...
true
true
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if(requestCode == PICK_STOP) { if(resultCode == RESULT_OK) { setContentView(R.layout.shortcut); system = data.getStringExtra(SelectStop.EXTRA_SYSTEM); route = data.getStringExtra(SelectStop.EXTRA_ROUTE); direction...
protected void onActivityResult(int requestCode, int resultCode, Intent data) { if(requestCode == PICK_STOP) { if(resultCode == RESULT_OK) { setContentView(R.layout.shortcut); system = data.getStringExtra(SelectStop.EXTRA_SYSTEM); route = data.getStringExtra(SelectStop.EXTRA_ROUTE); direction...
diff --git a/rackspace/src/test/java/org/jclouds/rackspace/cloudfiles/CloudFilesClientLiveTest.java b/rackspace/src/test/java/org/jclouds/rackspace/cloudfiles/CloudFilesClientLiveTest.java index 4c38f714b..26ec54051 100644 --- a/rackspace/src/test/java/org/jclouds/rackspace/cloudfiles/CloudFilesClientLiveTest.java +++ ...
true
true
public void testCDNOperations() throws Exception { final long minimumTTL = 60 * 60; // The minimum TTL is 1 hour // Create two new containers for testing final String containerNameWithCDN = getContainerName(); final String containerNameWithoutCDN = getContainerName(); try { tr...
public void testCDNOperations() throws Exception { final long minimumTTL = 60 * 60; // The minimum TTL is 1 hour // Create two new containers for testing final String containerNameWithCDN = getContainerName(); final String containerNameWithoutCDN = getContainerName(); try { tr...
diff --git a/src/com/android/phone/GsmUmtsOptions.java b/src/com/android/phone/GsmUmtsOptions.java index 1a4de8dd..c75fff70 100644 --- a/src/com/android/phone/GsmUmtsOptions.java +++ b/src/com/android/phone/GsmUmtsOptions.java @@ -1,106 +1,107 @@ /* * Copyright (C) 2008, 2011 The Android Open Source Project * * ...
true
true
public void enableScreen() { if (mPhone.getPhoneType() != Phone.PHONE_TYPE_GSM) { log("Not a GSM phone"); mButtonPrefer2g.setEnabled(false); } mButtonOperatorSelectionExpand = (PreferenceScreen) mPrefScreen.findPreference(BUTTON_OPERATOR_SELECTION...
public void enableScreen() { if (mPhone.getPhoneType() != Phone.PHONE_TYPE_GSM) { log("Not a GSM phone"); mButtonPrefer2g.setEnabled(false); } mButtonOperatorSelectionExpand = (PreferenceScreen) mPrefScreen.findPreference(BUTTON_OPERATOR_SELECTION...
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem/src/org/eclipse/tcf/te/tcf/filesystem/internal/callbacks/QueryDoneReadDir.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem/src/org/eclipse/tcf/te/tcf/filesystem/internal/callbacks/QueryDoneReadDir.java index 742e95d5d..84e7831a7 1006...
true
true
public void doneReadDir(IToken token, FileSystemException error, DirEntry[] entries, boolean eof) { // Process the returned data if (error == null) { if (entries != null && entries.length > 0) { for (DirEntry entry : entries) { FSTreeNode node = new FSTreeNode(parentNode, entry, false); parentNode...
public void doneReadDir(IToken token, FileSystemException error, DirEntry[] entries, boolean eof) { // Process the returned data if (error == null) { if (entries != null && entries.length > 0) { for (DirEntry entry : entries) { FSTreeNode node = new FSTreeNode(parentNode, entry, false); parentNode...
diff --git a/src/com/freshbourne/thesis/Select.java b/src/com/freshbourne/thesis/Select.java index 4248196..88b3a6d 100644 --- a/src/com/freshbourne/thesis/Select.java +++ b/src/com/freshbourne/thesis/Select.java @@ -1,19 +1,19 @@ package com.freshbourne.thesis; public abstract class Select { private int column; ...
true
true
public boolean select(String[] a){ if( a.length < column ) return false; return select(a[column]); }
public boolean select(String[] a){ if( a.length <= column ) return false; return select(a[column]); }
diff --git a/src/plagiatssoftware/RabinKarpComparer.java b/src/plagiatssoftware/RabinKarpComparer.java index fa014b9..d42ecfb 100644 --- a/src/plagiatssoftware/RabinKarpComparer.java +++ b/src/plagiatssoftware/RabinKarpComparer.java @@ -1,357 +1,358 @@ package plagiatssoftware; import java.util.ArrayList; import j...
true
true
public ArrayList<SearchResult> search(String[] searchText, StringBuilder completeString, String url, int startReihefolge) { ArrayList<SearchResult> result = new ArrayList<SearchResult>(); int minNumWords = 5; SearchResult lastNegativSearchResult = null; for (int passedWords = 0; passedWords < searchText.leng...
public ArrayList<SearchResult> search(String[] searchText, StringBuilder completeString, String url, int startReihefolge) { ArrayList<SearchResult> result = new ArrayList<SearchResult>(); int minNumWords = 5; SearchResult lastNegativSearchResult = null; for (int passedWords = 0; passedWords < searchText.leng...
diff --git a/src/main/java/com/google/gerrit/client/patches/AbstractPatchContentTable.java b/src/main/java/com/google/gerrit/client/patches/AbstractPatchContentTable.java index 438d7a22e..5f5236d7b 100644 --- a/src/main/java/com/google/gerrit/client/patches/AbstractPatchContentTable.java +++ b/src/main/java/com/google/...
true
true
private void createCommentEditor(final int suggestRow, final int column, final int line, final short file, final String parentUuid) { int row = suggestRow; int spans[] = new int[column + 1]; OUTER: while (row < table.getRowCount()) { int col = 0; for (int cell = 0; cell < table.getCellCo...
private void createCommentEditor(final int suggestRow, final int column, final int line, final short file, final String parentUuid) { int row = suggestRow; int spans[] = new int[column + 1]; OUTER: while (row < table.getRowCount()) { int col = 0; for (int cell = 0; row < table.getRowCoun...
diff --git a/tools/sos-boot/src/main/java/sorcer/com/sun/jini/start/ServiceStarter.java b/tools/sos-boot/src/main/java/sorcer/com/sun/jini/start/ServiceStarter.java index e2aeafc8..9ff0fc63 100644 --- a/tools/sos-boot/src/main/java/sorcer/com/sun/jini/start/ServiceStarter.java +++ b/tools/sos-boot/src/main/java/sorcer/...
false
true
private Service[] processServiceDescriptors(Configuration... configs) throws Exception { List<Service> resultList = new LinkedList<Service>(); Map<Configuration, ServiceDescriptor[]>serviceDescriptors = new HashMap<Configuration, ServiceDescriptor[]>(); for (Configuration config : configs) { ServiceDes...
private Service[] processServiceDescriptors(Configuration... configs) throws Exception { List<Service> resultList = new LinkedList<Service>(); ServiceDescriptor[][] descriptors = new ServiceDescriptor[configs.length][]; for (int i = 0; i < configs.length; i++) { Configuration config = co...
diff --git a/LifeTrack/src/com/lostmiracle/lifetrack/MainActivity.java b/LifeTrack/src/com/lostmiracle/lifetrack/MainActivity.java index 36fddf4..1eacafd 100644 --- a/LifeTrack/src/com/lostmiracle/lifetrack/MainActivity.java +++ b/LifeTrack/src/com/lostmiracle/lifetrack/MainActivity.java @@ -1,82 +1,83 @@ package com....
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); counter = 20; add1 = (Button) findViewById(R.id.add_one); add5 = (Button) findViewById(R.id.add_five); sub1 = (Button) findViewById(R.id.minus_one); sub5 = (Button) findView...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); counter = 20; add1 = (Button) findViewById(R.id.add_one); add5 = (Button) findViewById(R.id.add_five); sub1 = (Button) findViewById(R.id.minus_one); sub5 = (Button) findView...
diff --git a/TheAdventure/src/se/chalmers/kangaroo/view/KangarooAnimation.java b/TheAdventure/src/se/chalmers/kangaroo/view/KangarooAnimation.java index 1a6503b..60de722 100644 --- a/TheAdventure/src/se/chalmers/kangaroo/view/KangarooAnimation.java +++ b/TheAdventure/src/se/chalmers/kangaroo/view/KangarooAnimation.java...
false
true
public void drawSprite(Graphics g, int x, int y) { if (tick == 30) { tick = 0; currentFrame = (currentFrame % 3) + 1; } g.drawImage(leftSheet, x-widthPerFrame/2, y-height, x+widthPerFrame/2, y, (currentFrame * widthPerFrame), 1, (currentFrame * widthPerFrame) + widthPerFrame, height, null, null...
public void drawSprite(Graphics g, int x, int y) { if (tick == 15) { tick = 0; currentFrame++; currentFrame = (currentFrame % 3); } g.drawImage(leftSheet, x-widthPerFrame/2, y-height, x+widthPerFrame/2, y, (currentFrame * widthPerFrame), 1, (currentFrame * widthPerFrame) + widthPerFrame, hei...
diff --git a/web/src/main/java/org/openmrs/web/controller/user/UserFormController.java b/web/src/main/java/org/openmrs/web/controller/user/UserFormController.java index 945ea38d..cdadc0a9 100644 --- a/web/src/main/java/org/openmrs/web/controller/user/UserFormController.java +++ b/web/src/main/java/org/openmrs/web/contr...
false
true
public String handleSubmission(WebRequest request, HttpSession httpSession, ModelMap model, @RequestParam(required=false, value="action") String action, @RequestParam(required=false, value="u...
public String handleSubmission(WebRequest request, HttpSession httpSession, ModelMap model, @RequestParam(required=false, value="action") String action, @RequestParam(required=false, value="u...
diff --git a/minerva/src/main/java/org/opentools/minerva/connector/jdbc/JDBCManagedConnectionFactory.java b/minerva/src/main/java/org/opentools/minerva/connector/jdbc/JDBCManagedConnectionFactory.java index a95257fbd..ea593c961 100644 --- a/minerva/src/main/java/org/opentools/minerva/connector/jdbc/JDBCManagedConnectio...
true
true
public ManagedConnection matchManagedConnections(Set cons, Subject sub, ConnectionRequestInfo info) throws ResourceException { // Set user and password to default String user = username; // Check passed Subject and ConnectionRequestInfo for user/password overrides if(sub != null) { ...
public ManagedConnection matchManagedConnections(Set cons, Subject sub, ConnectionRequestInfo info) throws ResourceException { // Set user and password to default String user = username; // Check passed Subject and ConnectionRequestInfo for user/password overrides if(sub != null) { ...
diff --git a/src/main/java/com/araeosia/ArcherGames/CommandHandler.java b/src/main/java/com/araeosia/ArcherGames/CommandHandler.java index fcbac09..c5b6292 100644 --- a/src/main/java/com/araeosia/ArcherGames/CommandHandler.java +++ b/src/main/java/com/araeosia/ArcherGames/CommandHandler.java @@ -1,361 +1,361 @@ packag...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (cmd.getName().equalsIgnoreCase("vote")) { sender.sendMessage(plugin.strings.get("voteinfo")); for (String s : plugin.voteSites) { sender.sendMessage(ChatColor.GREEN + s); return true; } } else if ...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { if (cmd.getName().equalsIgnoreCase("vote")) { sender.sendMessage(plugin.strings.get("voteinfo")); for (String s : plugin.voteSites) { sender.sendMessage(ChatColor.GREEN + s); return true; } } else if ...
diff --git a/rse/plugins/org.eclipse.dltk.rse.core/src/org/eclipse/dltk/core/internal/rse/RSEExecEnvironment.java b/rse/plugins/org.eclipse.dltk.rse.core/src/org/eclipse/dltk/core/internal/rse/RSEExecEnvironment.java index 3d0b1005d..558c16215 100644 --- a/rse/plugins/org.eclipse.dltk.rse.core/src/org/eclipse/dltk/core...
true
true
public Map getEnvironmentVariables() { if (this.environmentVariables != null) { return this.environmentVariables; } final Map result = new HashMap(); try { Process process = this.exec(new String[] { "set" }, new Path(""), null); if (process != null) { final BufferedReader input = new Buffered...
public Map getEnvironmentVariables() { if (this.environmentVariables != null) { return this.environmentVariables; } final Map result = new HashMap(); try { Process process = this.exec(new String[] { "set" }, new Path(""), null); if (process != null) { final BufferedReader input = new Buffered...
diff --git a/src/libbitster/Janitor.java b/src/libbitster/Janitor.java index 4ec0f72..f1f976d 100644 --- a/src/libbitster/Janitor.java +++ b/src/libbitster/Janitor.java @@ -1,69 +1,69 @@ package libbitster; import java.util.HashSet; import java.util.Iterator; /** * Singleton. Cleans up the program when shutti...
true
true
protected void idle () { if(state.equals("init")) { state.equals("normal"); Iterator<Manager> it = managers.iterator(); while(it.hasNext()) { Log.info("Sending halt memo to manager."); it.next().post(new Memo("halt", null, this)); } } if(managers.isEmpty()) { ...
protected void idle () { if(state.equals("init")) { state = "normal"; Iterator<Manager> it = managers.iterator(); while(it.hasNext()) { Log.info("Sending halt memo to manager."); it.next().post(new Memo("halt", null, this)); } } if(managers.isEmpty()) { L...
diff --git a/jsf-ri/src/com/sun/faces/component/ComponentResourceContainer.java b/jsf-ri/src/com/sun/faces/component/ComponentResourceContainer.java index e2f38245c..1eca9b971 100644 --- a/jsf-ri/src/com/sun/faces/component/ComponentResourceContainer.java +++ b/jsf-ri/src/com/sun/faces/component/ComponentResourceContai...
true
true
public void encodeAll(FacesContext context) throws IOException { super.encodeAll(context); //To change body of overridden methods use File | Settings | File Templates. }
public void encodeAll(FacesContext context) throws IOException { // no-op }
diff --git a/src/java/org/lwjgl/test/devil/BasicTest.java b/src/java/org/lwjgl/test/devil/BasicTest.java index cbeb990d..ce7f9242 100644 --- a/src/java/org/lwjgl/test/devil/BasicTest.java +++ b/src/java/org/lwjgl/test/devil/BasicTest.java @@ -1,126 +1,128 @@ /* * Copyright (c) 2002-2004 LWJGL Project * All rights...
false
true
public static void main(String args[]) { try { IL.create(); ILU.create(); ILUT.create(); } catch (Exception e) { e.printStackTrace(); System.exit(0); } System.out.println("error = " + ILU.iluErrorString(IL.ilGetError())); System.out.println("ilGenImages"); IntBuffer im = BufferUtils.createIn...
public static void main(String args[]) { try { org.lwjgl.opengl.Display.create(); IL.create(); ILU.create(); ILUT.create(); } catch (Exception e) { e.printStackTrace(); System.exit(0); } System.out.println("error = " + ILU.iluErrorString(IL.ilGetError())); System.out.println("ilGenImages");...
diff --git a/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/NHttpClientProtocolHandler.java b/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/NHttpClientProtocolHandler.java index 03cdfe2..cf13240 100644 --- a/httpasyncclient/src/main/java/org/apache/http/impl/nio/client/NHttpClientProtocol...
true
true
public void responseReceived(final NHttpClientConnection conn) { HttpContext context = conn.getContext(); HttpExchange httpexchange = getHttpExchange(context); HttpAsyncExchangeHandler<?> handler = getHandler(context); if (this.log.isDebugEnabled()) { this.log.debug("Resp...
public void responseReceived(final NHttpClientConnection conn) { HttpContext context = conn.getContext(); HttpExchange httpexchange = getHttpExchange(context); HttpAsyncExchangeHandler<?> handler = getHandler(context); if (this.log.isDebugEnabled()) { this.log.debug("Resp...
diff --git a/uk.ac.gda.common.rcp/src/uk/ac/gda/common/rcp/util/GridUtils.java b/uk.ac.gda.common.rcp/src/uk/ac/gda/common/rcp/util/GridUtils.java index d1b849c..896d452 100644 --- a/uk.ac.gda.common.rcp/src/uk/ac/gda/common/rcp/util/GridUtils.java +++ b/uk.ac.gda.common.rcp/src/uk/ac/gda/common/rcp/util/GridUtils.java...
true
true
public static void setVisibleAndLayout(final Control widget, final boolean isVisible) { if (widget == null) return; if (!(widget.getLayoutData() instanceof GridData)) { throw new IllegalArgumentException("Widget must have GridData layout data applied"); } final GridData data = (GridData) widget.getLayoutDat...
public static void setVisibleAndLayout(final Control widget, final boolean isVisible) { if (widget == null) return; if (!(widget.getLayoutData() instanceof GridData)) { throw new IllegalArgumentException("Widget must have GridData layout data applied"); } final GridData data = (GridData) widget.getLayoutDat...
diff --git a/d2s-platform/src/main/java/org/data2semantics/platform/reporting/HTMLReporter.java b/d2s-platform/src/main/java/org/data2semantics/platform/reporting/HTMLReporter.java index 06a6468..49f7315 100644 --- a/d2s-platform/src/main/java/org/data2semantics/platform/reporting/HTMLReporter.java +++ b/d2s-platform/s...
true
true
private void moduleOutput(Module module, File moduleDir) throws IOException { // * The data we will pass to the template Map<String, Object> templateData = new LinkedHashMap<String, Object>(); templateData.put("name", module.name()); templateData.put("short_name", module.name()); templateData.pu...
private void moduleOutput(Module module, File moduleDir) throws IOException { // * The data we will pass to the template Map<String, Object> templateData = new LinkedHashMap<String, Object>(); templateData.put("name", module.name()); templateData.put("short_name", module.name()); templateData.pu...
diff --git a/src/main/java/org/dynmap/MapManager.java b/src/main/java/org/dynmap/MapManager.java index d5dd3621..e43ad101 100644 --- a/src/main/java/org/dynmap/MapManager.java +++ b/src/main/java/org/dynmap/MapManager.java @@ -1,938 +1,941 @@ package org.dynmap; import java.io.File; import java.util.ArrayList; im...
true
true
public void run() { long tstart = System.currentTimeMillis(); MapTile tile = null; List<MapTile> tileset = null; if(cancelled) { cleanup(); return; } if(tile0 == null) { /* Not single tile render */...
public void run() { long tstart = System.currentTimeMillis(); MapTile tile = null; List<MapTile> tileset = null; if(cancelled) { cleanup(); return; } if(tile0 == null) { /* Not single tile render */...
diff --git a/communicator-client/src/main/java/com/outr/net/communicator/client/connection/AJAXConnection.java b/communicator-client/src/main/java/com/outr/net/communicator/client/connection/AJAXConnection.java index 6d5114d..9957f6c 100644 --- a/communicator-client/src/main/java/com/outr/net/communicator/client/connec...
true
true
public void onResponseReceived(Request request, Response response) { try { if (response.getStatusCode() == 200) { pollRequest = null; // GWTCommunicator.log("Received: " + response.getText()); AJAXResponse r = (AJAXResponse)JSONC...
public void onResponseReceived(Request request, Response response) { try { if (response.getStatusCode() == 200) { pollRequest = null; // GWTCommunicator.log("Received: " + response.getText()); AJAXResponse r = (AJAXResponse)JSONC...
diff --git a/src/main/java/jnr/constants/ConstantSet.java b/src/main/java/jnr/constants/ConstantSet.java index b3f2bfa..26ddfc9 100644 --- a/src/main/java/jnr/constants/ConstantSet.java +++ b/src/main/java/jnr/constants/ConstantSet.java @@ -1,232 +1,233 @@ /* * Permission is hereby granted, free of charge, to any pe...
true
true
public static ConstantSet getConstantSet(String name) { ConstantSet constants = constantSets.get(name); if (constants == null) { synchronized (lock) { if (!constantSets.containsKey(name)) { Class<Enum> enumClass = getEnumClass(name); ...
public static ConstantSet getConstantSet(String name) { ConstantSet constants = constantSets.get(name); if (constants == null) { synchronized (lock) { constants = constantSets.get(name); if (constants == null) { Class<Enum> enumClass = ...
diff --git a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/widgets/decoration/JIDCombo.java b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/widgets/decoration/JIDCombo.java index 610f6b5d7..aaf6923da 100644 --- a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/widgets/decoration/JIDCombo.java +++ b/de.fu_berlin....
true
true
protected void registerListeners() { this.control.addKeyListener(new KeyAdapter() { @Override public void keyReleased(KeyEvent e) { switch (e.keyCode) { case SWT.ARROW_UP: case SWT.ARROW_RIGHT: case SWT.ARROW_DOWN: ...
protected void registerListeners() { this.control.addKeyListener(new KeyAdapter() { @Override public void keyReleased(KeyEvent e) { switch (e.keyCode) { case SWT.HOME: case SWT.END: case SWT.ARROW_UP: cas...
diff --git a/HelloGit/src/main.java b/HelloGit/src/main.java index f8cbe46..8eaae7c 100644 --- a/HelloGit/src/main.java +++ b/HelloGit/src/main.java @@ -1,11 +1,10 @@ public class main { public static void main(String[] args) { // TODO Auto-generated method stub System.out.format("Hello Git %d!\n", 4); - ...
true
true
public static void main(String[] args) { // TODO Auto-generated method stub System.out.format("Hello Git %d!\n", 4); //sdsasadsadsdasda }
public static void main(String[] args) { // TODO Auto-generated method stub System.out.format("Hello Git %d!\n", 4); }
diff --git a/guiPanel.java b/guiPanel.java index 026dbdb..e03a345 100644 --- a/guiPanel.java +++ b/guiPanel.java @@ -1,1062 +1,1060 @@ import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.Container; import java.awt.Dimension; import java.awt.GridBagLayout; import java.a...
false
true
public void save(JTextComponent textComponent, boolean saveAs){//, boolean saveToCurrentFile) { File file; /* if ( ! saveToCurrentFile ) { JFileChooser chooser = new JFileChooser(); if (chooser.showSaveDialog(null) != JFileChooser.APPROVE_OPTION) return; file = chooser.getSelectedFile(); if (file == nu...
public void save(JTextComponent textComponent, boolean saveAs){//, boolean saveToCurrentFile) { File file; /* if ( ! saveToCurrentFile ) { JFileChooser chooser = new JFileChooser(); if (chooser.showSaveDialog(null) != JFileChooser.APPROVE_OPTION) return; file = chooser.getSelectedFile(); if (file == nu...
diff --git a/tests/src/org/jboss/messaging/tests/integration/security/NettySecurityClientTest.java b/tests/src/org/jboss/messaging/tests/integration/security/NettySecurityClientTest.java index e7cd9310c..24a3619d8 100644 --- a/tests/src/org/jboss/messaging/tests/integration/security/NettySecurityClientTest.java +++ b/t...
true
true
private void doTestProducerConsumerClient(boolean withSecurityManager) throws Exception { String[] vmargs = new String[0]; if (withSecurityManager) { URL securityPolicyURL = Thread.currentThread().getContextClassLoader().getResource("restricted-security-client.policy"); vmargs ...
private void doTestProducerConsumerClient(boolean withSecurityManager) throws Exception { String[] vmargs = new String[0]; if (withSecurityManager) { URL securityPolicyURL = Thread.currentThread().getContextClassLoader().getResource("restricted-security-client.policy"); vmargs ...
diff --git a/solr/core/src/java/org/apache/solr/core/RequestHandlers.java b/solr/core/src/java/org/apache/solr/core/RequestHandlers.java index 80c7c04d7..93def2997 100644 --- a/solr/core/src/java/org/apache/solr/core/RequestHandlers.java +++ b/solr/core/src/java/org/apache/solr/core/RequestHandlers.java @@ -1,337 +1,33...
true
true
void initHandlersFromConfig(SolrConfig config ){ // use link map so we iterate in the same order Map<PluginInfo,SolrRequestHandler> handlers = new LinkedHashMap<PluginInfo,SolrRequestHandler>(); for (PluginInfo info : config.getPluginInfos(SolrRequestHandler.class.getName())) { try { SolrReq...
void initHandlersFromConfig(SolrConfig config ){ // use link map so we iterate in the same order Map<PluginInfo,SolrRequestHandler> handlers = new LinkedHashMap<PluginInfo,SolrRequestHandler>(); for (PluginInfo info : config.getPluginInfos(SolrRequestHandler.class.getName())) { try { SolrReq...
diff --git a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/compatibility/PluginCompatibilityTests.java b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/compatibility/PluginCompatibilityTests.java index 48124edb1..0796489e8 100644 --- a/tests/org.eclipse.core.tests.runt...
true
true
public void testPluginWithNoRuntimeLibrary() throws BundleException, IOException { assertNull("0.0", BundleTestingHelper.getBundles(RuntimeTestsPlugin.getContext(), "bundle01", "1.0")); BundleTestingHelper.runWithBundles("0.1", new Runnable() { public void run() { Bundle[] installed = BundleTestingHelper.ge...
public void testPluginWithNoRuntimeLibrary() throws BundleException, IOException { assertNull("0.0", BundleTestingHelper.getBundles(RuntimeTestsPlugin.getContext(), "bundle01", "1.0")); BundleTestingHelper.runWithBundles("0.1", new Runnable() { public void run() { Bundle[] installed = BundleTestingHelper.ge...
diff --git a/src/org/apache/xerces/parsers/XMLGrammarCachingConfiguration.java b/src/org/apache/xerces/parsers/XMLGrammarCachingConfiguration.java index a7e76074..f4aeb7c6 100644 --- a/src/org/apache/xerces/parsers/XMLGrammarCachingConfiguration.java +++ b/src/org/apache/xerces/parsers/XMLGrammarCachingConfiguration.ja...
true
true
SchemaGrammar parseXMLSchema(XMLInputSource is) throws IOException { XMLEntityResolver resolver = getEntityResolver(); if(resolver != null) { fSchemaLoader.setEntityResolver(resolver); } fSchemaLoader.setProperty(ERROR_REPORTER, fErrorReporter); ...
SchemaGrammar parseXMLSchema(XMLInputSource is) throws IOException { XMLEntityResolver resolver = getEntityResolver(); if(resolver != null) { fSchemaLoader.setEntityResolver(resolver); } if (fErrorReporter.getMessageFormatter(XSMessageFormatter.SCHEMA_DOM...
diff --git a/java/src/edu/umich/insoar/language/AgentMessageParser.java b/java/src/edu/umich/insoar/language/AgentMessageParser.java index 054269ef..f0af77c6 100644 --- a/java/src/edu/umich/insoar/language/AgentMessageParser.java +++ b/java/src/edu/umich/insoar/language/AgentMessageParser.java @@ -1,298 +1,302 @@ pack...
true
true
public static String translateAgentMessage(Identifier id){ String message = null; String type = WMUtil.getValueOfAttribute(id, "type"); System.out.println(type); Identifier fieldsId = WMUtil.getIdentifierOfAttribute(id, "fields"); if(type == null){ return null; ...
public static String translateAgentMessage(Identifier id){ String message = null; String type = WMUtil.getValueOfAttribute(id, "type"); System.out.println(type); Identifier fieldsId = WMUtil.getIdentifierOfAttribute(id, "fields"); if(type == null){ return null; ...
diff --git a/CommandsEX/src/com/github/zathrus_writer/commandsex/handlers/Handler_motd.java b/CommandsEX/src/com/github/zathrus_writer/commandsex/handlers/Handler_motd.java index 8f30a92..b0a7724 100644 --- a/CommandsEX/src/com/github/zathrus_writer/commandsex/handlers/Handler_motd.java +++ b/CommandsEX/src/com/github/...
true
true
public static void displayMOTD(CommandSender p) { // check if we can use Vault to determine player's group if (Vault.permsEnabled() && (p instanceof Player)) { // check if we have extra MOTD for this group set up FileConfiguration conf = CommandsEX.getConf(); Boolean privateMOTDsent = false; for (Strin...
public static void displayMOTD(CommandSender p) { // check if we can use Vault to determine player's group // check we aren't using SuperPerms, SuperPerms no like groups! if (Vault.permsEnabled() && !Vault.perms.getName().equals("SuperPerms") && (p instanceof Player)) { // check if we have extra MOTD for this...
diff --git a/src/com/gulshansingh/urlrecognizer/MainActivity.java b/src/com/gulshansingh/urlrecognizer/MainActivity.java index d7694ef..89c9a7b 100644 --- a/src/com/gulshansingh/urlrecognizer/MainActivity.java +++ b/src/com/gulshansingh/urlrecognizer/MainActivity.java @@ -1,186 +1,191 @@ package com.gulshansingh.urlre...
true
true
private void prepareBitmap(Bitmap b) throws IOException { ExifInterface exif = new ExifInterface(mCaptureFile.getAbsolutePath()); int exifOrientation = exif .getAttributeInt(ExifInterface.TAG_ORIENTATION, ExifInterface.ORIENTATION_NORMAL); int rotate = 0; switch (exifOrientation) { case ExifInter...
private void prepareBitmap(Bitmap b) throws IOException { /* * TODO: There is a bug in Android that affects this code for some devices: * http://stackoverflow.com/questions/8450539/images-taken-with-action-image-capture-always-returns-1-for-exifinterface-tag-or * We need to implement the workaround. */ ...
diff --git a/FeedReader/src/com/brent/feedreader/MainActivity.java b/FeedReader/src/com/brent/feedreader/MainActivity.java index 2c77c44..e3d9b80 100644 --- a/FeedReader/src/com/brent/feedreader/MainActivity.java +++ b/FeedReader/src/com/brent/feedreader/MainActivity.java @@ -1,347 +1,347 @@ package com.brent.feedread...
true
true
protected String doInBackground(String... urls) { BufferedReader reader=null; String rawXML = null; // Make the connection to the URL and get the xml as one big string try { URL url = new URL(urls[0]); HttpURLConnection connection = (HttpURLConnection)url.openConnection(); connection.setReque...
protected String doInBackground(String... urls) { BufferedReader reader=null; String rawXML = null; // Make the connection to the URL and get the xml as one big string try { URL url = new URL(urls[0]); HttpURLConnection connection = (HttpURLConnection)url.openConnection(); connection.setReque...
diff --git a/src/org/apache/xalan/xsltc/compiler/XslAttribute.java b/src/org/apache/xalan/xsltc/compiler/XslAttribute.java index 779fb38e..161adf6d 100644 --- a/src/org/apache/xalan/xsltc/compiler/XslAttribute.java +++ b/src/org/apache/xalan/xsltc/compiler/XslAttribute.java @@ -1,261 +1,259 @@ /* * @(#)$Id$ * * ...
false
true
public void parseContents(Parser parser) { final SymbolTable stable = parser.getSymbolTable(); String namespace = getAttribute("namespace"); String name = getAttribute("name"); QName qname = parser.getQName(name); final String prefix = qname.getPrefix(); boolean generated = false; if ((prefix != null) && (...
public void parseContents(Parser parser) { final SymbolTable stable = parser.getSymbolTable(); String namespace = getAttribute("namespace"); String name = getAttribute("name"); QName qname = parser.getQName(name); final String prefix = qname.getPrefix(); boolean generated = false; if ((prefix != null) && (...
diff --git a/bridgemonitor/src/bridgemonitor/BridgeMonitor.java b/bridgemonitor/src/bridgemonitor/BridgeMonitor.java index 7f6050d..0213dca 100644 --- a/bridgemonitor/src/bridgemonitor/BridgeMonitor.java +++ b/bridgemonitor/src/bridgemonitor/BridgeMonitor.java @@ -1,568 +1,569 @@ /* * Copyright 2007 Sun Microsystems...
true
true
public void run() { int lastNumberOfCalls = 0; while (!done) { try { Thread.sleep(2000); } catch (InterruptedException e) { } if (callTableOwner == this) { showBridgeCalls(); } try { String status = bc.getBridgeStatus(); status = status.replaceAll("...
public void run() { int lastNumberOfCalls = 0; while (!done) { try { Thread.sleep(2000); } catch (InterruptedException e) { } if (callTableOwner == this) { showBridgeCalls(); } try { String status = bc.getBridgeStatus(); status = status.replaceAll("...
diff --git a/PA3B/src/ray/tracer/WhittedRayTracer.java b/PA3B/src/ray/tracer/WhittedRayTracer.java index 4c18a44..cd1e543 100755 --- a/PA3B/src/ray/tracer/WhittedRayTracer.java +++ b/PA3B/src/ray/tracer/WhittedRayTracer.java @@ -1,265 +1,265 @@ package ray.tracer; import java.util.ArrayList; import java.util.Itera...
false
true
public void shadeRay(Color outColor, Scene scene, Ray ray, Workspace workspace, Color absorption, int depth) { // Reset the output color outColor.set(0, 0, 0); // TODO(B): Return immediately if depth is greater than 12. if (depth > 12) { return ; } // Rename all the workspace entries to avoid fiel...
public void shadeRay(Color outColor, Scene scene, Ray ray, Workspace workspace, Color absorption, int depth) { // Reset the output color outColor.set(0, 0, 0); // TODO(B): Return immediately if depth is greater than 12. if (depth > 12) { return ; } // Rename all the workspace entries to avoid fiel...
diff --git a/src/org/broad/igv/renderer/SequenceRenderer.java b/src/org/broad/igv/renderer/SequenceRenderer.java index cc59366c..8640fd21 100644 --- a/src/org/broad/igv/renderer/SequenceRenderer.java +++ b/src/org/broad/igv/renderer/SequenceRenderer.java @@ -1,474 +1,474 @@ /* * Copyright (c) 2007-2011 by The Broad ...
true
true
public void draw(RenderContext context, Rectangle trackRectangle, boolean showColorSpace, boolean showTranslation) { if (context.getScale() >= MAX_SCALE_FOR_RENDER) { // Zoomed out too far to see sequences. This can happen when in gene list view and one of the frames ...
public void draw(RenderContext context, Rectangle trackRectangle, boolean showColorSpace, boolean showTranslation) { if (context.getScale() >= MAX_SCALE_FOR_RENDER) { // Zoomed out too far to see sequences. This can happen when in gene list view and one of the frames ...
diff --git a/src/main/java/me/ase34/citylanterns/CityLanterns.java b/src/main/java/me/ase34/citylanterns/CityLanterns.java index aa79e6b..a427996 100644 --- a/src/main/java/me/ase34/citylanterns/CityLanterns.java +++ b/src/main/java/me/ase34/citylanterns/CityLanterns.java @@ -1,75 +1,76 @@ package me.ase34.citylantern...
true
true
public void onEnable() { try { getDataFolder().mkdir(); File storageFile = new File(getDataFolder(), "storage.txt"); storageFile.createNewFile(); storage = new LanternFileStorage(storageFile); lanterns = storage.load(); sel...
public void onEnable() { try { getDataFolder().mkdir(); saveDefaultConfig(); File storageFile = new File(getDataFolder(), "storage.txt"); storageFile.createNewFile(); storage = new LanternFileStorage(storageFile); lanterns ...
diff --git a/src/main/java/net/ae97/totalpermissions/lang/Cipher.java b/src/main/java/net/ae97/totalpermissions/lang/Cipher.java index 87843b2..860c769 100644 --- a/src/main/java/net/ae97/totalpermissions/lang/Cipher.java +++ b/src/main/java/net/ae97/totalpermissions/lang/Cipher.java @@ -1,74 +1,75 @@ /* * Copyright...
true
true
public Cipher(String language) { language += ".yml"; try { this.setLangFile(YamlConfiguration.loadConfiguration(TotalPermissions.getPlugin().getResource(language))); } catch (NullPointerException e) { TotalPermissions.getPlugin().getLogger().log(Level.SEVERE, "Languag...
public Cipher(String language) { language += ".yml"; try { InputStream temp = TotalPermissions.getPlugin().getResource(language); this.setLangFile(YamlConfiguration.loadConfiguration(temp)); } catch (NullPointerException e) { TotalPermissions.getPlugin().g...
diff --git a/src/java/org/codehaus/groovy/grails/documentation/MetadataGeneratingMetaClassCreationHandle.java b/src/java/org/codehaus/groovy/grails/documentation/MetadataGeneratingMetaClassCreationHandle.java index 707aa7b81..92989f076 100644 --- a/src/java/org/codehaus/groovy/grails/documentation/MetadataGeneratingMet...
true
true
public static boolean isExcludedClass(Class theClass) { return theClass == MetadataGeneratingExpandoMetaClass.class || theClass == ExpandoMetaClass.class || theClass == DocumentationContext.class || theClass == DocumentedMethod.class || theClas...
public static boolean isExcludedClass(Class theClass) { return theClass == MetadataGeneratingExpandoMetaClass.class || theClass == ExpandoMetaClass.class || theClass == DocumentationContext.class || theClass == DocumentedMethod.class || theClas...
diff --git a/src/net/nightwhistler/pageturner/view/bookview/TextLoader.java b/src/net/nightwhistler/pageturner/view/bookview/TextLoader.java index 6508853..4bc1466 100644 --- a/src/net/nightwhistler/pageturner/view/bookview/TextLoader.java +++ b/src/net/nightwhistler/pageturner/view/bookview/TextLoader.java @@ -1,285 +...
true
true
public Spannable getText( final Resource resource ) throws IOException { if ( hasCachedText(resource) ) { LOG.debug("Returning cached text for href " + resource.getHref() ); return renderedText.get(resource.getHref()); } AnchorHandler.AnchorCallback callback = new A...
public Spannable getText( final Resource resource ) throws IOException { if ( hasCachedText(resource) ) { LOG.debug("Returning cached text for href " + resource.getHref() ); return renderedText.get(resource.getHref()); } AnchorHandler.AnchorCallback callback = new A...
diff --git a/indexbuilder/src/test/java/uk/ac/ebi/gxa/index/builder/TestDefaultIndexBuilder.java b/indexbuilder/src/test/java/uk/ac/ebi/gxa/index/builder/TestDefaultIndexBuilder.java index a6dc8de66..bb91d1d5e 100644 --- a/indexbuilder/src/test/java/uk/ac/ebi/gxa/index/builder/TestDefaultIndexBuilder.java +++ b/indexbu...
false
true
public void testBuildIndex() { try { indexBuilder.startup(); // run buildIndex indexBuilder.doCommand(new IndexAllCommand(), new IndexBuilderListener() { public void buildSuccess(IndexBuilderEvent event) { try { ...
public void testBuildIndex() { try { indexBuilder.startup(); // run buildIndex indexBuilder.doCommand(new IndexAllCommand(), new IndexBuilderListener() { public void buildSuccess(IndexBuilderEvent event) { try { ...
diff --git a/src/main/java/net/orange_server/orangeserver/utils/plugin/DynmapHandler.java b/src/main/java/net/orange_server/orangeserver/utils/plugin/DynmapHandler.java index 8f95a2e..3ce811f 100644 --- a/src/main/java/net/orange_server/orangeserver/utils/plugin/DynmapHandler.java +++ b/src/main/java/net/orange_server/...
false
true
public void activate(){ if (activated) return; // get dynmap PluginManager pm = plugin.getServer().getPluginManager(); dynmap = pm.getPlugin("dynmap"); if (dynmap == null){ LogUtil.warning("Cannot find dynmap!"); } if (!dynmap.isE...
public void activate(){ if (activated) return; // get dynmap PluginManager pm = plugin.getServer().getPluginManager(); dynmap = pm.getPlugin("dynmap"); if (dynmap == null){ LogUtil.warning("Cannot find dynmap!"); return; } ...
diff --git a/src/com/gitblit/GitBlit.java b/src/com/gitblit/GitBlit.java index 782da63e..54ca6d20 100644 --- a/src/com/gitblit/GitBlit.java +++ b/src/com/gitblit/GitBlit.java @@ -1,3191 +1,3191 @@ /* * Copyright 2011 gitblit.com. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not...
true
true
public void updateRepositoryModel(String repositoryName, RepositoryModel repository, boolean isCreate) throws GitBlitException { if (gcExecutor.isCollectingGarbage(repositoryName)) { throw new GitBlitException(MessageFormat.format("sorry, Gitblit is busy collecting garbage in {0}", repositoryName)); } ...
public void updateRepositoryModel(String repositoryName, RepositoryModel repository, boolean isCreate) throws GitBlitException { if (gcExecutor.isCollectingGarbage(repositoryName)) { throw new GitBlitException(MessageFormat.format("sorry, Gitblit is busy collecting garbage in {0}", repositoryName)); } ...
diff --git a/plugins/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/ModelAdapter.java b/plugins/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/ModelAdapter.java index 936eba653..8212f9c5b 100644 --- a/plugins/org.eclipse.birt.report.data.adapter/sr...
true
true
public BaseDataSetDesign adaptDataSet( DataSetHandle handle ) throws BirtException { BaseDataSetDesign design = null; if ( handle instanceof OdaDataSetHandle ) { // If an external top level scope is available (i.e., our // consumer // is the report engine), use it to resolve property bindings. // Ot...
public BaseDataSetDesign adaptDataSet( DataSetHandle handle ) throws BirtException { BaseDataSetDesign design = null; if ( handle instanceof OdaDataSetHandle ) { // If an external top level scope is available (i.e., our // consumer // is the report engine), use it to resolve property bindings. // Ot...
diff --git a/src/main/java/org/agmip/translators/dssat/DssatXFileOutput.java b/src/main/java/org/agmip/translators/dssat/DssatXFileOutput.java index b5b9981..fde3d9f 100644 --- a/src/main/java/org/agmip/translators/dssat/DssatXFileOutput.java +++ b/src/main/java/org/agmip/translators/dssat/DssatXFileOutput.java @@ -1,1...
true
true
public void writeFile(String arg0, Map result) { // Initial variables HashMap expData = (HashMap) result; HashMap soilData = getObjectOr(result, "soil", new HashMap()); HashMap wthData = getObjectOr(result, "weather", new HashMap()); BufferedWriter bwX; ...
public void writeFile(String arg0, Map result) { // Initial variables HashMap expData = (HashMap) result; HashMap soilData = getObjectOr(result, "soil", new HashMap()); HashMap wthData = getObjectOr(result, "weather", new HashMap()); BufferedWriter bwX; ...
diff --git a/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java b/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java index 8501016..9db0323 100644 --- a/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java +++ b/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java...
true
true
public synchronized void execute() { // Auto-Ende: if (target == null || speed <= 0) { deactivate(); return; } // Wir laufen also. // Aktuelle Position berechnen: FloatingPointPosition oldPos = caster2.getPrecisePosition(); Vector vec ...
public synchronized void execute() { // Auto-Ende: if (target == null || speed <= 0) { deactivate(); return; } // Wir laufen also. // Aktuelle Position berechnen: FloatingPointPosition oldPos = caster2.getPrecisePosition(); Vector vec ...
diff --git a/src/com/oresomecraft/BattleMaps/maps/DesertCastle.java b/src/com/oresomecraft/BattleMaps/maps/DesertCastle.java index 092959a..a5379b1 100644 --- a/src/com/oresomecraft/BattleMaps/maps/DesertCastle.java +++ b/src/com/oresomecraft/BattleMaps/maps/DesertCastle.java @@ -1,243 +1,243 @@ package com.oresomecra...
true
true
public void grapple(ProjectileHitEvent event) { Entity proj = event.getEntity(); Location hit = proj.getLocation(); if (contains(hit, x1, x2, y1, y2, z1, z2)) { if (proj instanceof Snowball) { Snowball fish = (Snowball) proj; Entity shooter = fis...
public void grapple(ProjectileHitEvent event) { Entity proj = event.getEntity(); Location hit = proj.getLocation(); if (hit.getWorld().getName().equals(name)) { if (proj instanceof Snowball) { Snowball fish = (Snowball) proj; Entity shooter = fis...
diff --git a/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java b/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java index b907482..f19220f 100644 --- a/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java +++ b/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java...
true
true
public synchronized void execute() { // Auto-Ende: if (target == null || speed <= 0) { deactivate(); return; } // Wir laufen also. // Aktuelle Position berechnen: FloatingPointPosition oldPos = caster2.getPrecisePosition(); Vector vec =...
public synchronized void execute() { // Auto-Ende: if (target == null || speed <= 0) { deactivate(); return; } // Wir laufen also. // Aktuelle Position berechnen: FloatingPointPosition oldPos = caster2.getPrecisePosition(); Vector vec =...
diff --git a/news-impl/impl/src/java/org/sakaiproject/news/impl/BasicNewsChannel.java b/news-impl/impl/src/java/org/sakaiproject/news/impl/BasicNewsChannel.java index fa6443d..8710965 100644 --- a/news-impl/impl/src/java/org/sakaiproject/news/impl/BasicNewsChannel.java +++ b/news-impl/impl/src/java/org/sakaiproject/new...
true
true
private void initChannel(String source) throws NewsConnectionException, NewsFormatException { SyndFeed feed = null; ResourceLoader rl = new ResourceLoader("news-impl"); try { URL feedUrl = new URL(source); FeedFetcher feedFetcher = new HttpURLFeedFetcher(); feed = feedFetcher.retrieveFeed(feedUrl);...
private void initChannel(String source) throws NewsConnectionException, NewsFormatException { SyndFeed feed = null; ResourceLoader rl = new ResourceLoader("news-impl"); try { URL feedUrl = new URL(source); FeedFetcher feedFetcher = new HttpURLFeedFetcher(); feed = feedFetcher.retrieveFeed(feedUrl);...
diff --git a/android/src/de/hsa/otma/android/map/Board.java b/android/src/de/hsa/otma/android/map/Board.java index fbefa9d..0b9573d 100644 --- a/android/src/de/hsa/otma/android/map/Board.java +++ b/android/src/de/hsa/otma/android/map/Board.java @@ -1,166 +1,166 @@ package de.hsa.otma.android.map; import android.uti...
true
true
private void buildBoard() { BoardElement map1x1 = createBoardElementAndPutToBoard(1, 1, R.drawable.map_1x1); BoardElement map1x2 = createBoardElementAndPutToBoard(2, 1, R.drawable.map_1x2); BoardElement map1x3 = createBoardElementAndPutToBoard(3, 1, R.drawable.map_1x3); BoardElem...
private void buildBoard() { BoardElement map1x1 = createBoardElementAndPutToBoard(1, 1, R.drawable.map_1x1); BoardElement map1x2 = createBoardElementAndPutToBoard(2, 1, R.drawable.map_1x2); BoardElement map1x3 = createBoardElementAndPutToBoard(3, 1, R.drawable.map_1x3); BoardElem...
diff --git a/src/core/org/pathvisio/view/VPathwayElement.java b/src/core/org/pathvisio/view/VPathwayElement.java index 3a2d0c8f..4e8e1f67 100644 --- a/src/core/org/pathvisio/view/VPathwayElement.java +++ b/src/core/org/pathvisio/view/VPathwayElement.java @@ -1,333 +1,335 @@ // PathVisio, // a tool for data visualizat...
false
true
public int compareTo(VPathwayElement d) { // same object? easy... if (d == this) return 0; // for two Graphics-type objects, sort depending on z-order if (this instanceof Graphics && d instanceof Graphics) { int a, b; // if only one of two is selected (XOR): a = ((Graphics)this).gdata.get...
public int compareTo(VPathwayElement d) { // same object? easy... if (d == this) return 0; // for two Graphics-type objects, sort depending on z-order if (this instanceof Graphics && d instanceof Graphics) { int a, b; // if only one of two is selected (XOR): a = ((Graphics)this).gdata.get...
diff --git a/de.jutzig.jabylon.ui/src/main/java/de/jutzig/jabylon/ui/panels/ProjectListPanel.java b/de.jutzig.jabylon.ui/src/main/java/de/jutzig/jabylon/ui/panels/ProjectListPanel.java index 9018c352..0a79fd6c 100644 --- a/de.jutzig.jabylon.ui/src/main/java/de/jutzig/jabylon/ui/panels/ProjectListPanel.java +++ b/de.jut...
true
true
private void createContents() { Workspace workspace = MainDashboard.getCurrent().getWorkspace(); EList<Project> projects = workspace.getProjects(); setColumns(2); setRows(projects.size()); buildHeader(); Random random = new Random(); for (Project project : projects) { Button projectName = new Button(p...
private void createContents() { Workspace workspace = MainDashboard.getCurrent().getWorkspace(); EList<Project> projects = workspace.getProjects(); setColumns(2); setRows(projects.size()); buildHeader(); Random random = new Random(); for (Project project : projects) { Button projectName = new Button(p...
diff --git a/sventon/dev/java/src/de/berlios/sventon/repository/cache/entrycache/EntryCacheUpdater.java b/sventon/dev/java/src/de/berlios/sventon/repository/cache/entrycache/EntryCacheUpdater.java index 9c26c978..ff2f2cfb 100644 --- a/sventon/dev/java/src/de/berlios/sventon/repository/cache/entrycache/EntryCacheUpdater...
true
true
protected static void updateInternal(final EntryCache entryCache, final SVNRepository repository, final RevisionUpdate revisionUpdate) { final List<SVNLogEntry> revisions = revisionUpdate.getRevisions(); final int revisionCount = revisions.size(); final long firstRe...
protected static void updateInternal(final EntryCache entryCache, final SVNRepository repository, final RevisionUpdate revisionUpdate) { final List<SVNLogEntry> revisions = revisionUpdate.getRevisions(); final int revisionCount = revisions.size(); final long firstRe...
diff --git a/core/src/visad/trunk/data/text/TextAdapter.java b/core/src/visad/trunk/data/text/TextAdapter.java index dbc4f5269..ae9ec959a 100644 --- a/core/src/visad/trunk/data/text/TextAdapter.java +++ b/core/src/visad/trunk/data/text/TextAdapter.java @@ -1,1395 +1,1395 @@ // // TextAdapter.java // /* VisAD sys...
true
true
void readit(InputStream is, String map, String params) throws IOException, VisADException { // read the ASCII file, using commas as field separators // first line is a header line ff = null; field = null; if (debug) System.out.println("#### Text Adapter v2.x runn...
void readit(InputStream is, String map, String params) throws IOException, VisADException { // read the ASCII file, using commas as field separators // first line is a header line ff = null; field = null; if (debug) System.out.println("#### Text Adapter v2.x runn...
diff --git a/poem-jvm/src/java/org/b3mn/poem/handler/ImageRenderer.java b/poem-jvm/src/java/org/b3mn/poem/handler/ImageRenderer.java index 826eeada..85f32164 100644 --- a/poem-jvm/src/java/org/b3mn/poem/handler/ImageRenderer.java +++ b/poem-jvm/src/java/org/b3mn/poem/handler/ImageRenderer.java @@ -1,72 +1,72 @@ /*****...
true
true
public void doGet(HttpServletRequest req, HttpServletResponse res, Identity subject, Identity object) { setResponseHeaders(res); try { Representation representation = object.read(); String SvgRepresentation = representation.getSvg(); if ((SvgRepresentation == null) || (SvgRepresentatio...
public void doGet(HttpServletRequest req, HttpServletResponse res, Identity subject, Identity object) { setResponseHeaders(res); try { Representation representation = object.read(); String SvgRepresentation = representation.getSvg(); if ((SvgRepresentation == null) || (SvgRepresentatio...
diff --git a/plugins/net.refractions.udig.catalog.wms/src/net/refractions/udig/catalog/wmsc/server/WMSCComplexTypes.java b/plugins/net.refractions.udig.catalog.wms/src/net/refractions/udig/catalog/wmsc/server/WMSCComplexTypes.java index 0a450628b..8a96d1ff3 100644 --- a/plugins/net.refractions.udig.catalog.wms/src/net/...
false
true
public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException { Service service = new Service(); for (int i = 0; i < value.length; i++) { if (sameName(elems...
public Object getValue(Element element, ElementValue[] value, Attributes attrs, Map hints) throws SAXException, OperationNotSupportedException { Service service = new Service(); for (int i = 0; i < value.length; i++) { if (sameName(elems...
diff --git a/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchHandler.java b/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchHandler.java index e391f9d3d4..7b004f82e4 100644 --- a/protocol-ldap/src/main/java/org/apache/directory/server/ldap/support/SearchHandler.java...
true
true
public void messageReceived( IoSession session, Object request ) throws Exception { if ( IS_DEBUG ) { log.debug( "Message received : " + request.toString() ); } ServerLdapContext ctx; SearchRequest req = ( SearchRequest ) request; NamingEnumeration list = null; ...
public void messageReceived( IoSession session, Object request ) throws Exception { if ( IS_DEBUG ) { log.debug( "Message received : " + request.toString() ); } ServerLdapContext ctx; SearchRequest req = ( SearchRequest ) request; NamingEnumeration list = null; ...