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/maven-artifact-test/src/main/java/org/apache/maven/artifact/test/ArtifactTestCase.java b/maven-artifact-test/src/main/java/org/apache/maven/artifact/test/ArtifactTestCase.java index 7f2f2750f..2ee2fed3e 100755 --- a/maven-artifact-test/src/main/java/org/apache/maven/artifact/test/ArtifactTestCase.java +++ ...
true
true
protected void setUp() throws Exception { super.setUp(); File settingsFile = new File( System.getProperty( "user.home" ), ".m2/settings.xml" ); String localRepo = null; if ( settingsFile.exists() ) { Settings settings = new SettingsXpp3Reader().read( ...
protected void setUp() throws Exception { super.setUp(); File settingsFile = new File( System.getProperty( "user.home" ), ".m2/settings.xml" ); String localRepo = null; if ( settingsFile.exists() ) { Settings settings = new SettingsXpp3Reader().read( ...
diff --git a/src/main/java/gmavenplus/mojo/AbstractCompileMojo.java b/src/main/java/gmavenplus/mojo/AbstractCompileMojo.java index 9b653701..742bf9e5 100644 --- a/src/main/java/gmavenplus/mojo/AbstractCompileMojo.java +++ b/src/main/java/gmavenplus/mojo/AbstractCompileMojo.java @@ -1,230 +1,227 @@ /* * Copyright (C)...
true
true
protected void doCompile(Set<File> sources, List classpath, File outputDirectory) throws ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, MalformedURLException { // get classes we need with reflection Class compilerConfigurationClass = Cl...
protected void doCompile(Set<File> sources, List classpath, File outputDirectory) throws ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, MalformedURLException { // get classes we need with reflection Class compilerConfigurationClass = Cl...
diff --git a/src/be/ibridge/kettle/trans/step/rowgenerator/RowGenerator.java b/src/be/ibridge/kettle/trans/step/rowgenerator/RowGenerator.java index e40407c3..364b03d4 100644 --- a/src/be/ibridge/kettle/trans/step/rowgenerator/RowGenerator.java +++ b/src/be/ibridge/kettle/trans/step/rowgenerator/RowGenerator.java @@ -1...
true
true
public static final Row buildRow(RowGeneratorMeta meta, RowGeneratorData data, ArrayList remarks) { Row r=new Row(); Value value; for (int i=0;i<meta.getFieldName().length;i++) { int valtype = Value.getType(meta.getFieldType()[i]); if (meta.getFieldName(...
public static final Row buildRow(RowGeneratorMeta meta, RowGeneratorData data, ArrayList remarks) { Row r=new Row(); Value value; for (int i=0;i<meta.getFieldName().length;i++) { int valtype = Value.getType(meta.getFieldType()[i]); if (meta.getFieldName(...
diff --git a/dspace/src/de/zib/gndms/logic/model/dspace/SubspaceProviderImpl.java b/dspace/src/de/zib/gndms/logic/model/dspace/SubspaceProviderImpl.java index 65694542..39dd0c94 100644 --- a/dspace/src/de/zib/gndms/logic/model/dspace/SubspaceProviderImpl.java +++ b/dspace/src/de/zib/gndms/logic/model/dspace/SubspacePro...
false
true
public void init() { em = emf.createEntityManager(); TxFrame tx = new TxFrame(em); try { Query query = em.createNamedQuery("listAllSubspaceIds"); List<ImmutableScopedName> list = query.getResultList(); subspaceIds = new HashMap<String, Subspace>()...
public void init() { em = emf.createEntityManager(); TxFrame tx = new TxFrame(em); try { Query query = em.createNamedQuery("listAllSubspaceIds"); List<String> list = query.getResultList(); subspaceIds = new HashMap<String, Subspace>(); ...
diff --git a/src/codeanticode/tablet/Tablet.java b/src/codeanticode/tablet/Tablet.java index 2b16cf1..36c97d4 100644 --- a/src/codeanticode/tablet/Tablet.java +++ b/src/codeanticode/tablet/Tablet.java @@ -1,529 +1,529 @@ /** * ##library.name## * ##library.sentence## * ##library.url## * * Copyright ##copyrigh...
false
true
public Tablet(PApplet parent) { this.parent = parent; welcome(); if (parent.g instanceof PGraphicsOpenGL) { // Using parent with an OpenGL renderer results in no tablet events being // detected, so will try to get the AWT canvas associated to the GL // surface, if any. Objec...
public Tablet(PApplet parent) { this.parent = parent; welcome(); if (parent.g instanceof PGraphicsOpenGL) { // Using parent with an OpenGL renderer results in no tablet events being // detected, so will try to get the AWT canvas associated to the GL // surface, if any. Objec...
diff --git a/src/java/org/xhtmlrenderer/layout/Breaker.java b/src/java/org/xhtmlrenderer/layout/Breaker.java index 7db81347..0541876a 100644 --- a/src/java/org/xhtmlrenderer/layout/Breaker.java +++ b/src/java/org/xhtmlrenderer/layout/Breaker.java @@ -1,156 +1,156 @@ /* * Breaker.java * Copyright (c) 2004, 2005 Tor...
true
true
public static void breakText(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style) { FSFont font = style.getFSFont(c); IdentValue whitespace = style.getWhitespace(); // ====== handle nowrap if (whitespace == IdentValue.NOWRAP) { c...
public static void breakText(LayoutContext c, LineBreakContext context, int avail, CalculatedStyle style) { FSFont font = style.getFSFont(c); IdentValue whitespace = style.getWhitespace(); // ====== handle nowrap if (whitespace == IdentValue.NOWRAP) { c...
diff --git a/src/bitronix/tm/gui/TransactionLogDialog.java b/src/bitronix/tm/gui/TransactionLogDialog.java index 20d81e2..fe54ad8 100644 --- a/src/bitronix/tm/gui/TransactionLogDialog.java +++ b/src/bitronix/tm/gui/TransactionLogDialog.java @@ -1,106 +1,106 @@ package bitronix.tm.gui; import bitronix.tm.utils.Decod...
true
true
public TransactionLogDialog(JFrame frame, TransactionLogRecord tlog) { super(frame, "Transaction log details", true); statusField.setText(Decoder.decodeStatus(tlog.getStatus())); recordLengthField.setText(""+tlog.getRecordLength()); headerLengthField.setText(""+tlog.getHeaderLength...
public TransactionLogDialog(JFrame frame, TransactionLogRecord tlog) { super(frame, "Transaction log details", true); statusField.setText(Decoder.decodeStatus(tlog.getStatus())); recordLengthField.setText(""+tlog.getRecordLength()); headerLengthField.setText(""+tlog.getHeaderLength...
diff --git a/src/main/java/com/frugs/filesync/local/system/SystemCommandExecutor.java b/src/main/java/com/frugs/filesync/local/system/SystemCommandExecutor.java index 6282555..f097ebb 100644 --- a/src/main/java/com/frugs/filesync/local/system/SystemCommandExecutor.java +++ b/src/main/java/com/frugs/filesync/local/syste...
true
true
private InputStream execute(String command) throws IOException { Process process = currentRuntime.exec(command); logger.severe(IOUtils.toString(process.getErrorStream())); return process.getInputStream(); }
private InputStream execute(String command) throws IOException { Process process = currentRuntime.exec(command); String error = IOUtils.toString(process.getErrorStream()); if (!error.equals("")) { logger.severe(error); } return process.getInputStream(); }
diff --git a/test/src/main/java/org/apache/accumulo/test/randomwalk/concurrent/ChangePermissions.java b/test/src/main/java/org/apache/accumulo/test/randomwalk/concurrent/ChangePermissions.java index 63af95a13..6b3acb6e6 100644 --- a/test/src/main/java/org/apache/accumulo/test/randomwalk/concurrent/ChangePermissions.jav...
false
true
public void visit(State state, Properties props) throws Exception { Connector conn = state.getConnector(); Random rand = (Random) state.get("rand"); @SuppressWarnings("unchecked") List<String> userNames = (List<String>) state.get("users"); String userName = userNames.get(rand.nextInt(use...
public void visit(State state, Properties props) throws Exception { Connector conn = state.getConnector(); Random rand = (Random) state.get("rand"); @SuppressWarnings("unchecked") List<String> userNames = (List<String>) state.get("users"); String userName = userNames.get(rand.nextInt(use...
diff --git a/src/org/eclipse/imp/pdb/facts/util/ShareableList.java b/src/org/eclipse/imp/pdb/facts/util/ShareableList.java index ec333440..24748a59 100644 --- a/src/org/eclipse/imp/pdb/facts/util/ShareableList.java +++ b/src/org/eclipse/imp/pdb/facts/util/ShareableList.java @@ -1,636 +1,635 @@ /***********************...
false
true
protected ShareableList(ShareableList<E> shareableList, int offset, int length){ super(); int backStartIndex = shareableList.backIndex - offset; if(backStartIndex <= 0){// Front only backIndex = 0; backCapacity = 2; backData = (E[]) new Object[backCapacity]; int frontStartIndex = -backStartInd...
protected ShareableList(ShareableList<E> shareableList, int offset, int length){ super(); int backStartIndex = shareableList.backIndex - offset; if(backStartIndex <= 0){// Front only backIndex = 0; backCapacity = 2; backData = (E[]) new Object[backCapacity]; int frontStartIndex = -backStartInd...
diff --git a/src/net/kiwz/ThePlugin/commands/TPCommand.java b/src/net/kiwz/ThePlugin/commands/TPCommand.java index b740fed..7f1968f 100644 --- a/src/net/kiwz/ThePlugin/commands/TPCommand.java +++ b/src/net/kiwz/ThePlugin/commands/TPCommand.java @@ -1,66 +1,66 @@ package net.kiwz.ThePlugin.commands; import net.kiwz....
true
true
public boolean tp(CommandSender sender, Command cmd, String[] args) { OnlinePlayer onlinePlayer = new OnlinePlayer(); Player player = Bukkit.getServer().getPlayer(sender.getName()); if (!(sender instanceof Player) && args.length != 2) { sender.sendMessage(ThePlugin.c2 + "Spesifiser to spillere, hvem som sk...
public boolean tp(CommandSender sender, Command cmd, String[] args) { OnlinePlayer onlinePlayer = new OnlinePlayer(); Player player = Bukkit.getServer().getPlayer(sender.getName()); if (!(sender instanceof Player) && args.length != 2) { sender.sendMessage(ThePlugin.c2 + "Spesifiser to spillere, hvem som sk...
diff --git a/src/main/java/org/concord/energy3d/logger/TimeSeriesLogger.java b/src/main/java/org/concord/energy3d/logger/TimeSeriesLogger.java index 20c14e4f..b01b3707 100644 --- a/src/main/java/org/concord/energy3d/logger/TimeSeriesLogger.java +++ b/src/main/java/org/concord/energy3d/logger/TimeSeriesLogger.java @@ -1...
false
true
private void log() { final String timestamp = new SimpleDateFormat("yyyy-MM-dd" + space + "HH:mm:ss").format(Calendar.getInstance().getTime()); final URL url = Scene.getURL(); if (url == null) // no logging if not using a template return; final String filename = url == null ? null : new File(url.getFile())....
private void log() { final String timestamp = new SimpleDateFormat("yyyy-MM-dd" + space + "HH:mm:ss").format(Calendar.getInstance().getTime()); final URL url = Scene.getURL(); if (url == null) // no logging if not using a template return; final String filename = url == null ? null : new File(url.getFile())....
diff --git a/servlet/src/main/java/io/undertow/servlet/core/DeploymentManagerImpl.java b/servlet/src/main/java/io/undertow/servlet/core/DeploymentManagerImpl.java index 65eeea7fd..5f19addfc 100644 --- a/servlet/src/main/java/io/undertow/servlet/core/DeploymentManagerImpl.java +++ b/servlet/src/main/java/io/undertow/ser...
false
true
private ServletPathMatches setupServletChains(final ServletContextImpl servletContext, final CompositeThreadSetupAction threadSetupAction, final ApplicationListeners listeners) { final List<Lifecycle> lifecycles = new ArrayList<Lifecycle>(); //create the default servlet ServletInitialHandler...
private ServletPathMatches setupServletChains(final ServletContextImpl servletContext, final CompositeThreadSetupAction threadSetupAction, final ApplicationListeners listeners) { final List<Lifecycle> lifecycles = new ArrayList<Lifecycle>(); //create the default servlet ServletInitialHandler...
diff --git a/src/com/gitblit/wicket/panels/RepositoriesPanel.java b/src/com/gitblit/wicket/panels/RepositoriesPanel.java index 1967b501..3a62d8fd 100644 --- a/src/com/gitblit/wicket/panels/RepositoriesPanel.java +++ b/src/com/gitblit/wicket/panels/RepositoriesPanel.java @@ -1,522 +1,522 @@ /* * Copyright 2011 gitbli...
true
true
public RepositoriesPanel(String wicketId, final boolean showAdmin, List<RepositoryModel> models, boolean enableLinks, final Map<AccessRestrictionType, String> accessRestrictionTranslations) { super(wicketId); final boolean linksActive = enableLinks; final boolean showSize = GitBlit.getBoolean(Keys.web.sho...
public RepositoriesPanel(String wicketId, final boolean showAdmin, List<RepositoryModel> models, boolean enableLinks, final Map<AccessRestrictionType, String> accessRestrictionTranslations) { super(wicketId); final boolean linksActive = enableLinks; final boolean showSize = GitBlit.getBoolean(Keys.web.sho...
diff --git a/rdt/org.eclipse.ptp.rdt.sync.git.core/src/org/eclipse/ptp/rdt/sync/git/core/GitRemoteSyncConnection.java b/rdt/org.eclipse.ptp.rdt.sync.git.core/src/org/eclipse/ptp/rdt/sync/git/core/GitRemoteSyncConnection.java index cb7be1889..c93caacc4 100644 --- a/rdt/org.eclipse.ptp.rdt.sync.git.core/src/org/eclipse/p...
true
true
private void getRemoteFileStatus(Set<String> filesToAdd, Set<String> filesToDelete, IProgressMonitor monitor, boolean includeUntrackedFiles) throws IOException, RemoteExecutionException, RemoteSyncException { SubMonitor subMon = SubMonitor.convert(monitor, 10); try { final String command; if (includeUn...
private void getRemoteFileStatus(Set<String> filesToAdd, Set<String> filesToDelete, IProgressMonitor monitor, boolean includeUntrackedFiles) throws IOException, RemoteExecutionException, RemoteSyncException { SubMonitor subMon = SubMonitor.convert(monitor, 10); try { final String command; if (includeUn...
diff --git a/src/main/java/org/fcrepo/ffmodeshapeprototype/FedoraDatastreams.java b/src/main/java/org/fcrepo/ffmodeshapeprototype/FedoraDatastreams.java index 24a8c65..2a424a2 100644 --- a/src/main/java/org/fcrepo/ffmodeshapeprototype/FedoraDatastreams.java +++ b/src/main/java/org/fcrepo/ffmodeshapeprototype/FedoraData...
true
true
public Response getDatastreams(@PathParam("pid") String pid) throws RepositoryException { Session session = ws.getSession(); Node root = session.getRootNode(); StringBuffer nodes = new StringBuffer(); if (root.hasNode(pid)) { for (NodeIterator i = root.getNode("pid").getNodes(); i.hasNext();) { Node...
public Response getDatastreams(@PathParam("pid") String pid) throws RepositoryException { Session session = ws.getSession(); Node root = session.getRootNode(); StringBuffer nodes = new StringBuffer(); if (root.hasNode(pid)) { for (NodeIterator i = root.getNode(pid).getNodes(); i.hasNext();) { Node d...
diff --git a/src/main/java/me/cybermaxke/materialapi/enchantment/EnchantmentCustom.java b/src/main/java/me/cybermaxke/materialapi/enchantment/EnchantmentCustom.java index b07e22a..ec59c8a 100644 --- a/src/main/java/me/cybermaxke/materialapi/enchantment/EnchantmentCustom.java +++ b/src/main/java/me/cybermaxke/materialap...
false
true
public EnchantmentCustom(int id) { super(id); if (id >= 256) { throw new IllegalArgumentException("A enchantment id has to be lower then 256!"); } try { Field byIdField = Enchantment.class.getDeclaredField("byId"); Field byNameField = Enchantment.class.getDeclaredField("byName"); byIdFi...
public EnchantmentCustom(int id) { super(id); if (id >= 256) { throw new IllegalArgumentException("A enchantment id has to be lower then 256!"); } try { Field byIdField = Enchantment.class.getDeclaredField("byId"); Field byNameField = Enchantment.class.getDeclaredField("byName"); byIdFi...
diff --git a/CBHelper/src/com/cloudbase/datacommands/CBSearchCondition.java b/CBHelper/src/com/cloudbase/datacommands/CBSearchCondition.java index d431fd8..aed6d3d 100644 --- a/CBHelper/src/com/cloudbase/datacommands/CBSearchCondition.java +++ b/CBHelper/src/com/cloudbase/datacommands/CBSearchCondition.java @@ -1,302 +...
true
true
public JSONObject toJSONObject() throws JSONException { JSONObject output = new JSONObject(); // This is not a condition but a collection of sub-conditions. loop over them // and serialize them one by one if (this.getField() == null) { if (this.getSubConditions().size() > 1) { JSONA...
public JSONObject toJSONObject() throws JSONException { JSONObject output = new JSONObject(); // This is not a condition but a collection of sub-conditions. loop over them // and serialize them one by one if (this.getField() == null) { if (this.getSubConditions().size() > 1) { JSONA...
diff --git a/library/src/com/appunite/imageloader/RemoteImageLoader.java b/library/src/com/appunite/imageloader/RemoteImageLoader.java index 46e67d7..164da08 100644 --- a/library/src/com/appunite/imageloader/RemoteImageLoader.java +++ b/library/src/com/appunite/imageloader/RemoteImageLoader.java @@ -1,513 +1,515 @@ /*...
false
true
public void run() { while (!this.isStopped()) { try { String resource; resource = RemoteImageLoader.this.takeToProcess(); Uri uri = Uri.parse(resource); String scheme = uri.getScheme(); Log.v(RemoteImageLoader.this.RUNABLE_TAG, "started downloading: " + resource); ...
public void run() { while (!this.isStopped()) { try { String resource; resource = RemoteImageLoader.this.takeToProcess(); Uri uri = Uri.parse(resource); String scheme = uri.getScheme(); Log.v(RemoteImageLoader.this.RUNABLE_TAG, "started downloading: " + resource); ...
diff --git a/src/main/java/org/encog/workbench/dialogs/activation/ActivationDialog.java b/src/main/java/org/encog/workbench/dialogs/activation/ActivationDialog.java index b89b3857..a04b38ad 100644 --- a/src/main/java/org/encog/workbench/dialogs/activation/ActivationDialog.java +++ b/src/main/java/org/encog/workbench/di...
true
true
public void changeEquation() { boolean der = this.derivative.isSelected(); ActivationFunction newActivation = null; switch (this.select.getSelectedIndex()) { case 0: newActivation = new ActivationBiPolar(); break; case 1: newActivation = new ActivationCompetitive(); break; case 2: newActi...
public void changeEquation() { boolean der = this.derivative.isSelected(); ActivationFunction newActivation = null; switch (this.select.getSelectedIndex()) { case 0: newActivation = new ActivationBiPolar(); break; case 1: newActivation = new ActivationCompetitive(); break; case 2: newActi...
diff --git a/src/net/idlesoft/android/apps/github/activities/CommitChangeViewer.java b/src/net/idlesoft/android/apps/github/activities/CommitChangeViewer.java index 21a0ebd..5ae7c9c 100644 --- a/src/net/idlesoft/android/apps/github/activities/CommitChangeViewer.java +++ b/src/net/idlesoft/android/apps/github/activities...
true
true
public void onCreate(final Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.commit_view); mPrefs = getSharedPreferences(Hubroid.PREFS_NAME, 0); mEditor = mPrefs.edit(); mUsername = mPrefs.getString("username", ""); mPassword = mPrefs.getString("passw...
public void onCreate(final Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.commit_view); mPrefs = getSharedPreferences(Hubroid.PREFS_NAME, 0); mEditor = mPrefs.edit(); mUsername = mPrefs.getString("username", ""); mPassword = mPrefs.getString("passw...
diff --git a/src/share/classes/com/sun/tools/javafx/comp/JavafxClassReader.java b/src/share/classes/com/sun/tools/javafx/comp/JavafxClassReader.java index 837916c35..6b3a4c509 100644 --- a/src/share/classes/com/sun/tools/javafx/comp/JavafxClassReader.java +++ b/src/share/classes/com/sun/tools/javafx/comp/JavafxClassRea...
true
true
public void complete(Symbol sym) throws CompletionFailure { if (jreader.sourceCompleter == null) jreader.sourceCompleter = JavafxCompiler.instance(ctx); if (sym instanceof PackageSymbol) { PackageSymbol psym = (PackageSymbol) sym; PackageSymbol jpackage; ...
public void complete(Symbol sym) throws CompletionFailure { if (jreader.sourceCompleter == null) jreader.sourceCompleter = JavafxCompiler.instance(ctx); if (sym instanceof PackageSymbol) { PackageSymbol psym = (PackageSymbol) sym; PackageSymbol jpackage; ...
diff --git a/src/net/derkholm/nmica/extra/app/seq/RetrieveEnsemblSequences.java b/src/net/derkholm/nmica/extra/app/seq/RetrieveEnsemblSequences.java index 254988a..bd08432 100644 --- a/src/net/derkholm/nmica/extra/app/seq/RetrieveEnsemblSequences.java +++ b/src/net/derkholm/nmica/extra/app/seq/RetrieveEnsemblSequences....
false
true
public void main(String[] argv) throws Exception { initializeEnsemblConnection(); if (ids.size() == 0) { List<String> idsList = new ArrayList<String>(); DataSource db = JDBCPooledDataSource.getDataSource( "org.gjt.mm.mysql.Driver", dbURL, username, password); Connection con = db.getConnection(); ...
public void main(String[] argv) throws Exception { initializeEnsemblConnection(); if (ids.size() == 0) { List<String> idsList = new ArrayList<String>(); DataSource db = JDBCPooledDataSource.getDataSource( "org.gjt.mm.mysql.Driver", dbURL, username, password); Connection con = db.getConnection(); ...
diff --git a/entitlement/src/test/java/com/ning/billing/entitlement/alignment/TestPlanAligner.java b/entitlement/src/test/java/com/ning/billing/entitlement/alignment/TestPlanAligner.java index 9df1b92c9..6579baa1a 100644 --- a/entitlement/src/test/java/com/ning/billing/entitlement/alignment/TestPlanAligner.java +++ b/e...
false
true
public void testCreationSubscriptionAlignment() throws Exception { final String productName = "laser-scope-monthly"; final PhaseType initialPhase = PhaseType.DISCOUNT; final SubscriptionData subscriptionData = createSubscriptionStartedInThePast(productName, initialPhase); // Look no...
public void testCreationSubscriptionAlignment() throws Exception { final String productName = "laser-scope-monthly"; final PhaseType initialPhase = PhaseType.DISCOUNT; final SubscriptionData subscriptionData = createSubscriptionStartedInThePast(productName, initialPhase); // Look no...
diff --git a/MobilisXHunt/MobilisXHunt_Service/src/de/tudresden/inf/rn/mobilis/services/xhunt/helper/LogClass.java b/MobilisXHunt/MobilisXHunt_Service/src/de/tudresden/inf/rn/mobilis/services/xhunt/helper/LogClass.java index c990960..f498888 100644 --- a/MobilisXHunt/MobilisXHunt_Service/src/de/tudresden/inf/rn/mobilis...
false
true
public LogClass() { //name = empty String: RootLogger, also logs messages from MobilisServer //should only be on top of the XHuntService Logger hierarchy mLogger = Logger.getLogger("de.tudresden.inf.rn.mobilis.services.xhunt"); mLogger.setLevel(Level.INFO); mLogger.setUseParentHandlers(false); String os...
public LogClass() { //name = empty String: RootLogger, also logs messages from MobilisServer //should only be on top of the XHuntService Logger hierarchy mLogger = Logger.getLogger("de.tudresden.inf.rn.mobilis.services.xhunt"); mLogger.setLevel(Level.INFO); mLogger.setUseParentHandlers(false); String os...
diff --git a/src/com/eteks/sweethome3d/swing/Home3DAttributesPanel.java b/src/com/eteks/sweethome3d/swing/Home3DAttributesPanel.java index 64b12c9c..39a2caff 100644 --- a/src/com/eteks/sweethome3d/swing/Home3DAttributesPanel.java +++ b/src/com/eteks/sweethome3d/swing/Home3DAttributesPanel.java @@ -1,434 +1,435 @@ /* ...
true
true
private void createComponents(UserPreferences preferences, final Home3DAttributesController controller) { // Get unit name matching current unit String unitName = preferences.getLengthUnit().getName(); // Create observer field of view label and spinner bound to OBSERV...
private void createComponents(UserPreferences preferences, final Home3DAttributesController controller) { // Get unit name matching current unit String unitName = preferences.getLengthUnit().getName(); // Create observer field of view label and spinner bound to OBSERV...
diff --git a/modules/dCache/org/dcache/util/GSISelectChannelEndPoint.java b/modules/dCache/org/dcache/util/GSISelectChannelEndPoint.java index ff750047ac..8527ea453f 100644 --- a/modules/dCache/org/dcache/util/GSISelectChannelEndPoint.java +++ b/modules/dCache/org/dcache/util/GSISelectChannelEndPoint.java @@ -1,748 +1,...
false
true
public int flush(Buffer header, Buffer buffer, Buffer trailer) throws IOException { int consumed=0; int available=header.length(); if (buffer != null) { available += buffer.length(); } int outBufferSize = ((header == null)?0:header.length()) + ...
public int flush(Buffer header, Buffer buffer, Buffer trailer) throws IOException { int consumed=0; int available = (header == null) ? 0 : header.length(); if (buffer != null) { available += buffer.length(); } int outBufferSize = available + ((trailer...
diff --git a/src/main/java/zmq/StreamEngine.java b/src/main/java/zmq/StreamEngine.java index 5101d58..ef20c21 100644 --- a/src/main/java/zmq/StreamEngine.java +++ b/src/main/java/zmq/StreamEngine.java @@ -1,623 +1,623 @@ /* Copyright (c) 2009-2011 250bpm s.r.o. Copyright (c) 2007-2009 iMatix Corporation ...
false
true
private boolean handshake () { assert (handshaking); // Receive the greeting. while (greeting.position () < GREETING_SIZE) { final int n = read (greeting); if (n == -1) { error (); return false; } if (n ==...
private boolean handshake () { assert (handshaking); // Receive the greeting. while (greeting.position () < GREETING_SIZE) { final int n = read (greeting); if (n == -1) { error (); return false; } if (n ==...
diff --git a/src/main/java/org/codehaus/mojo/build/CreateMojo.java b/src/main/java/org/codehaus/mojo/build/CreateMojo.java index 08b236a..65cfbf4 100644 --- a/src/main/java/org/codehaus/mojo/build/CreateMojo.java +++ b/src/main/java/org/codehaus/mojo/build/CreateMojo.java @@ -1,880 +1,883 @@ package org.codehaus.mojo....
true
true
public void execute() throws MojoExecutionException, MojoFailureException { if ( providerImplementations != null ) { for ( Entry<String, String> entry : providerImplementations.entrySet() ) { String providerType = entry.getKey(); St...
public void execute() throws MojoExecutionException, MojoFailureException { if ( providerImplementations != null ) { for ( Entry<String, String> entry : providerImplementations.entrySet() ) { String providerType = entry.getKey(); St...
diff --git a/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/tags/CheckboxTag.java b/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/yanel/impl/jelly/tags/CheckboxTag.java index bc7da46..bf2fa98 100644 --- a/resources/creatable-modifiable-deletable-v3/src/java/org/wyona/ya...
true
true
public void doTag(XMLOutput out) throws MissingAttributeException, JellyTagException { try { //TODO: where to put the id. Is it used? in a <div> which is around the inputs? Option[] selection = item.getOptions(); for (int i = 0; i < ...
public void doTag(XMLOutput out) throws MissingAttributeException, JellyTagException { try { //TODO: where to put the id. Is it used? in a <div> which is around the inputs? Option[] selection = item.getOptions(); for (int i = 0; i < ...
diff --git a/src/java/org/apache/fop/fonts/type1/Type1FontLoader.java b/src/java/org/apache/fop/fonts/type1/Type1FontLoader.java index 009a446f9..910ee82cc 100644 --- a/src/java/org/apache/fop/fonts/type1/Type1FontLoader.java +++ b/src/java/org/apache/fop/fonts/type1/Type1FontLoader.java @@ -1,325 +1,331 @@ /* * Lic...
false
true
private void buildFont(AFMFile afm, PFMFile pfm) { if (afm == null && pfm == null) { throw new IllegalArgumentException("Need at least an AFM or a PFM!"); } singleFont = new SingleByteFont(); singleFont.setFontType(FontType.TYPE1); singleFont.setResolver(this.reso...
private void buildFont(AFMFile afm, PFMFile pfm) { if (afm == null && pfm == null) { throw new IllegalArgumentException("Need at least an AFM or a PFM!"); } singleFont = new SingleByteFont(); singleFont.setFontType(FontType.TYPE1); singleFont.setResolver(this.reso...
diff --git a/JunkyardCreek/src/me/sirtyler/JunkyardCreek/FishListener.java b/JunkyardCreek/src/me/sirtyler/JunkyardCreek/FishListener.java index fc18f9d..ce1dcef 100644 --- a/JunkyardCreek/src/me/sirtyler/JunkyardCreek/FishListener.java +++ b/JunkyardCreek/src/me/sirtyler/JunkyardCreek/FishListener.java @@ -1,132 +1,13...
false
true
public void onPlayerFish(PlayerFishEvent event) { Player player = event.getPlayer(); String state = event.getState().name(); config = plugin.config; perm = plugin.permission; eco = plugin.economy; boolean spawnMob = false; boolean useMoney = false; String mob = null; String money = null; if (perm.p...
public void onPlayerFish(PlayerFishEvent event) { Player player = event.getPlayer(); String state = event.getState().name(); config = plugin.config; perm = plugin.permission; eco = plugin.economy; boolean spawnMob = false; boolean useMoney = false; String mob = null; String money = null; if (perm.p...
diff --git a/android/src/main/java/playn/android/HttpAndroid.java b/android/src/main/java/playn/android/HttpAndroid.java index 9b5dd64..faa1f87 100644 --- a/android/src/main/java/playn/android/HttpAndroid.java +++ b/android/src/main/java/playn/android/HttpAndroid.java @@ -1,110 +1,110 @@ /** * Copyright 2012 The Pla...
true
true
protected void doSend(final HttpRequest request, final Callback<HttpResponse> callback) { new Thread("HttpAndroid.doSend") { public void run() { HttpClient httpclient = new DefaultHttpClient(); HttpRequestBase req; HttpMethod method = request.getMethod(); String url = request...
protected void doSend(final HttpRequest request, final Callback<HttpResponse> callback) { new Thread("HttpAndroid.doSend") { public void run() { HttpClient httpclient = new DefaultHttpClient(); HttpRequestBase req; HttpMethod method = request.getMethod(); String url = request...
diff --git a/src/java-client-framework/org/xins/client/XINSServiceCaller.java b/src/java-client-framework/org/xins/client/XINSServiceCaller.java index 3cda9d4b6..5b2bcf682 100644 --- a/src/java-client-framework/org/xins/client/XINSServiceCaller.java +++ b/src/java-client-framework/org/xins/client/XINSServiceCaller.java...
true
true
public XINSCallResult call(XINSCallRequest request) throws IllegalArgumentException, GenericCallException, HTTPCallException, XINSCallException { final String METHODNAME = "call(XINSCallException)"; // TRACE: Enter method Log.log_2003(CLASSNAME, METHODNAME, null);...
public XINSCallResult call(XINSCallRequest request) throws IllegalArgumentException, GenericCallException, HTTPCallException, XINSCallException { final String METHODNAME = "call(XINSCallException)"; // TRACE: Enter method Log.log_2003(CLASSNAME, METHODNAME, null);...
diff --git a/src/com/md87/charliebravo/commands/GitCommand.java b/src/com/md87/charliebravo/commands/GitCommand.java index 0267f08..a4a5c94 100644 --- a/src/com/md87/charliebravo/commands/GitCommand.java +++ b/src/com/md87/charliebravo/commands/GitCommand.java @@ -1,124 +1,124 @@ /* * To change this template, choose...
true
true
public void execute(InputHandler handler, Response response, String line) throws Exception { if (line.isEmpty()) { response.sendMessage("You need to specify a revision", true); } else { final List<String> result = Downloader.getPage( "http://git.dmdirc.com...
public void execute(InputHandler handler, Response response, String line) throws Exception { if (line.isEmpty()) { response.sendMessage("You need to specify a revision", true); } else { final List<String> result = Downloader.getPage( "http://git.dmdirc.com...
diff --git a/src/main/java/org/iplantc/iptol/client/JobConfiguration/contrast/SelectTraits.java b/src/main/java/org/iplantc/iptol/client/JobConfiguration/contrast/SelectTraits.java index a3b20808..e6bdfcea 100755 --- a/src/main/java/org/iplantc/iptol/client/JobConfiguration/contrast/SelectTraits.java +++ b/src/main/jav...
true
true
public VerticalPanel assembleView() { //CheckBoxSelectionModel<Trait> sm = new CheckBoxSelectionModel<Trait>(); //config.add(sm.getColumn()); ColumnConfig filename = new ColumnConfig("filename", displayStrings .fileName(), 100); ColumnConfig upload = new ColumnConfig("uploaded", displayStrings .upload...
public VerticalPanel assembleView() { //CheckBoxSelectionModel<Trait> sm = new CheckBoxSelectionModel<Trait>(); //config.add(sm.getColumn()); ColumnConfig filename = new ColumnConfig("filename", displayStrings .fileName(), 100); ColumnConfig upload = new ColumnConfig("uploaded", displayStrings .upload...
diff --git a/modules/world/selection/src/classes/org/jdesktop/wonderland/modules/selection/client/cell/SelectionClientPlugin.java b/modules/world/selection/src/classes/org/jdesktop/wonderland/modules/selection/client/cell/SelectionClientPlugin.java index c0d66b2b3..9d812561d 100644 --- a/modules/world/selection/src/cla...
true
true
public void commitEvent(Event event) { // Fetch the Emtity from the event, if there is one final EnterExitEvent eeEvent = (EnterExitEvent)event; List<Entity> entityList = eeEvent.getEntityList(); if (entityList == null || entityList.isEmpty() == true) { ...
public void commitEvent(Event event) { // NOTE: disabled by nsimpson as temporary workaround for bug 239: // HUD controls have spurious shadows if (true) { return; } // Fetch the Entity from the event, if there is one final ...
diff --git a/source/de/anomic/yacy/yacyURL.java b/source/de/anomic/yacy/yacyURL.java index a63de8dd8..86cb5ed4d 100644 --- a/source/de/anomic/yacy/yacyURL.java +++ b/source/de/anomic/yacy/yacyURL.java @@ -1,1174 +1,1174 @@ // yacyURL.java // (C) 2006 by Michael Peter Christen; mc@yacy.net, Frankfurt a. M., Germany /...
false
true
private void parseURLString(String url) throws MalformedURLException { // identify protocol assert (url != null); url = url.trim(); int p = url.indexOf(':'); if (p < 0) { if (url.startsWith("www.")) { url = "http://" + url; p = 4; ...
private void parseURLString(String url) throws MalformedURLException { // identify protocol assert (url != null); url = url.trim(); int p = url.indexOf(':'); if (p < 0) { if (url.startsWith("www.")) { url = "http://" + url; p = 4; ...
diff --git a/tool/src/java/org/sakaiproject/evaluation/tool/producers/TakeEvalProducer.java b/tool/src/java/org/sakaiproject/evaluation/tool/producers/TakeEvalProducer.java index 4bba2aa7..9bff1daf 100644 --- a/tool/src/java/org/sakaiproject/evaluation/tool/producers/TakeEvalProducer.java +++ b/tool/src/java/org/sakaip...
true
true
public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) { boolean canAccess = false; // can a user access this evaluation boolean userCanAccess = false; // can THIS user take this evaluation String currentUserId = external.getCurrentUserId(); // u...
public void fillComponents(UIContainer tofill, ViewParameters viewparams, ComponentChecker checker) { boolean canAccess = false; // can a user access this evaluation boolean userCanAccess = false; // can THIS user take this evaluation String currentUserId = external.getCurrentUserId(); // u...
diff --git a/src/pse11/parser/ParserInterface.java b/src/pse11/parser/ParserInterface.java index 45e3c23..051f036 100755 --- a/src/pse11/parser/ParserInterface.java +++ b/src/pse11/parser/ParserInterface.java @@ -1,71 +1,72 @@ package parser; import java.util.LinkedList; import org.antlr.runtime.ANTLRStringStream;...
false
true
public Program parseProgram(String text) throws RecognitionException { LinkedList<String> errors = new LinkedList<String>(); CharStream in = new ANTLRStringStream(text); WhileLanguageLexer lex = new WhileLanguageLexer(in); lex.setErrorReporter(errors); CommonTokenStream token...
public Program parseProgram(String text) throws RecognitionException { LinkedList<String> errors = new LinkedList<String>(); CharStream in = new ANTLRStringStream(text); WhileLanguageLexer lex = new WhileLanguageLexer(in); lex.setErrorReporter(errors); CommonTokenStream token...
diff --git a/Lambda/src/lambda/ast/parser/Parser.java b/Lambda/src/lambda/ast/parser/Parser.java index 5ea6e50..5db4f9a 100644 --- a/Lambda/src/lambda/ast/parser/Parser.java +++ b/Lambda/src/lambda/ast/parser/Parser.java @@ -1,152 +1,154 @@ package lambda.ast.parser; import java.util.Scanner; import lambda.ast.A...
true
true
private Lambda atomic() throws ParserException { switch (token.type) { case ID: { String name = token.text; next(); return new ASTLiteral(name); } case MACRONAME: { String name = token.text; next(); return new ASTMacro(name); } case LPAR: next(); Lambda e = abstraction(); ...
private Lambda atomic() throws ParserException { switch (token.type) { case ID: { String name = token.text; next(); return new ASTLiteral(name); } case MACRONAME: { String name = token.text; next(); return new ASTMacro(name); } case LPAR: next(); Lambda e = abstraction(); ...
diff --git a/Serie1/src/Exerc6/MyJavaIron.java b/Serie1/src/Exerc6/MyJavaIron.java index 7f95b3f..4ab1ac9 100644 --- a/Serie1/src/Exerc6/MyJavaIron.java +++ b/Serie1/src/Exerc6/MyJavaIron.java @@ -1,95 +1,95 @@ package Exerc6; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.se...
false
true
public String encrypt(SecretKey k, IronOptions options, String data) throws NoSuchAlgorithmException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, IOException, InvalidKeyException, InvalidParameterSpecException, InvalidAlgorithmParameterException { Random r = new SecureRandom(); byte[] h...
public String encrypt(SecretKey k, IronOptions options, String data) throws NoSuchAlgorithmException, NoSuchPaddingException, IllegalBlockSizeException, BadPaddingException, IOException, InvalidKeyException, InvalidParameterSpecException, InvalidAlgorithmParameterException { Random r = new SecureRandom(); byte[] h...
diff --git a/src/main/java/com/theminequest/MineQuest/Quest/Parser/RequirementHandler.java b/src/main/java/com/theminequest/MineQuest/Quest/Parser/RequirementHandler.java index 483e89d..2d210d4 100644 --- a/src/main/java/com/theminequest/MineQuest/Quest/Parser/RequirementHandler.java +++ b/src/main/java/com/themineques...
true
true
public void parseDetails(QuestDetails q, List<String> line) { List<QuestRequirement> r = q.getProperty(QUEST_REQUIREMENTS); String details = ""; for (int i=1; i<line.size(); i++){ details+=line.get(i) + ":"; } if (details.length()!=0) details = details.substring(0, details.length()-1); QuestRequireme...
public void parseDetails(QuestDetails q, List<String> line) { List<QuestRequirement> r = q.getProperty(QUEST_REQUIREMENTS); String details = ""; for (int i=0; i<line.size(); i++){ details+=line.get(i) + ":"; } if (details.length()!=0) details = details.substring(0, details.length()-1); QuestRequireme...
diff --git a/src/org/unbiquitous/uos/network/socket/channelManager/EthernetTCPChannelManager.java b/src/org/unbiquitous/uos/network/socket/channelManager/EthernetTCPChannelManager.java index 2e17733..50cb0eb 100755 --- a/src/org/unbiquitous/uos/network/socket/channelManager/EthernetTCPChannelManager.java +++ b/src/org/...
true
true
public ClientConnection openActiveConnection(String networkDeviceName) throws NetworkException, IOException{ String[] address = networkDeviceName.split(":"); String host ; int port ; if (address.length == 1){ port = defaultPort; }else if(address.length == 2){ port = Integer.parseInt(address[1]); }...
public ClientConnection openActiveConnection(String networkDeviceName) throws NetworkException, IOException{ String[] address = networkDeviceName.split(":"); String host ; int port ; if (address.length == 1){ port = defaultPort; }else if(address.length == 2){ port = Integer.parseInt(address[1]); }...
diff --git a/src/main/groovy/lang/GroovyClassLoader.java b/src/main/groovy/lang/GroovyClassLoader.java index bbaefcfe7..235e76535 100644 --- a/src/main/groovy/lang/GroovyClassLoader.java +++ b/src/main/groovy/lang/GroovyClassLoader.java @@ -1,912 +1,912 @@ /* * Copyright 2003-2007 the original author or authors. *...
true
true
public Class loadClass(final String name, boolean lookupScriptFiles, boolean preferClassOverScript, boolean resolve) throws ClassNotFoundException, CompilationFailedException { // look into cache Class cls = getClassCacheEntry(name); // enable recompilation? boolean reco...
public Class loadClass(final String name, boolean lookupScriptFiles, boolean preferClassOverScript, boolean resolve) throws ClassNotFoundException, CompilationFailedException { // look into cache Class cls = getClassCacheEntry(name); // enable recompilation? boolean reco...
diff --git a/src/main/java/com/ipeirotis/gal/engine/rpt/SummaryReport.java b/src/main/java/com/ipeirotis/gal/engine/rpt/SummaryReport.java index 91c845c..8a9937e 100644 --- a/src/main/java/com/ipeirotis/gal/engine/rpt/SummaryReport.java +++ b/src/main/java/com/ipeirotis/gal/engine/rpt/SummaryReport.java @@ -1,65 +1,65 ...
true
true
public boolean execute(ReportingContext ctx) throws IOException { info("Summary"); ReportTarget[] reportTargets = new ReportTarget[] { new StreamReportTarget(System.out), new FileReportTarget("results/summary.txt") }; for (ReportTarget reportTarget : reportTargets) { reportTarget.println("Categories...
public boolean execute(ReportingContext ctx) throws IOException { info("Summary"); ReportTarget[] reportTargets = new ReportTarget[] { new StreamReportTarget(System.out), new FileReportTarget("results/summary.txt") }; for (ReportTarget reportTarget : reportTargets) { reportTarget.println("Categories...
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/Configuration.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/Configuration.java index 5bf1be6bf..a1e22d062 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/Configuration.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/Configuration....
true
true
public Properties getProperties() { final Properties retVal = new Properties(); Utils.addSetString(retVal, Defn.HEADER_IGNORE_LINE_PROP, mHeaderIgnoreLineNo); Utils.addObjectString(retVal, Defn.RCURLY_PROP, mRCurly.toString()); Utils.addObjectString(re...
public Properties getProperties() { final Properties retVal = new Properties(); Utils.addSetString(retVal, Defn.HEADER_IGNORE_LINE_PROP, mHeaderIgnoreLineNo); Utils.addObjectString(retVal, Defn.RCURLY_PROP, mRCurly.toString()); Utils.addObjectString(re...
diff --git a/src/model/CaptureStrategy.java b/src/model/CaptureStrategy.java index d046661..fa87fe6 100644 --- a/src/model/CaptureStrategy.java +++ b/src/model/CaptureStrategy.java @@ -1,57 +1,57 @@ package model; import java.util.Random; import java.util.ArrayList; public class CaptureStrategy implements Strat...
false
true
public Pawn getNextMove(int currentRoll, ArrayList<Pawn> moveablePawns, Field[] gameBoard) { //go through each pawn and check the ones that can be moved for(Pawn pawn: moveablePawns){ Boolean passed = false; //return a pawn if it would catch a pawn int pos = pawn.getPosition(); for(int i=1;i<=currentRo...
public Pawn getNextMove(int currentRoll, ArrayList<Pawn> moveablePawns, Field[] gameBoard) { //go through each pawn and check the ones that can be moved for(Pawn pawn: moveablePawns){ Boolean passed = false; //return a pawn if it would catch a pawn int pos = pawn.getPosition(); for(int i=1;i<=currentRo...
diff --git a/src/org/apache/xerces/impl/dv/xs/SchemaDVFactoryImpl.java b/src/org/apache/xerces/impl/dv/xs/SchemaDVFactoryImpl.java index a675f3c7..50f9181f 100644 --- a/src/org/apache/xerces/impl/dv/xs/SchemaDVFactoryImpl.java +++ b/src/org/apache/xerces/impl/dv/xs/SchemaDVFactoryImpl.java @@ -1,386 +1,386 @@ /* * T...
true
true
static void createBuiltInTypes() { // all schema simple type names final String ANYSIMPLETYPE = "anySimpleType"; final String ANYURI = "anyURI"; final String BASE64BINARY = "base64Binary"; final String BOOLEAN = "boolean"; final String BY...
static void createBuiltInTypes() { // all schema simple type names final String ANYSIMPLETYPE = "anySimpleType"; final String ANYURI = "anyURI"; final String BASE64BINARY = "base64Binary"; final String BOOLEAN = "boolean"; final String BY...
diff --git a/ginco-impl/src/main/java/fr/mcc/ginco/exports/skos/SKOSArrayExporter.java b/ginco-impl/src/main/java/fr/mcc/ginco/exports/skos/SKOSArrayExporter.java index 2ad1fe91..996bfa6a 100644 --- a/ginco-impl/src/main/java/fr/mcc/ginco/exports/skos/SKOSArrayExporter.java +++ b/ginco-impl/src/main/java/fr/mcc/ginco/e...
true
true
public String exportCollections(Thesaurus thesaurus) { List<ThesaurusArray> arrays = thesaurusArrayService .getAllThesaurusArrayByThesaurusId(null, thesaurus.getIdentifier()); if (arrays.size() != 0) { Model model = ModelFactory.createDefaultModel(); for (ThesaurusArray array : arrays) { NodeLabel...
public String exportCollections(Thesaurus thesaurus) { List<ThesaurusArray> arrays = thesaurusArrayService .getAllThesaurusArrayByThesaurusId(null, thesaurus.getIdentifier()); if (arrays.size() != 0) { Model model = ModelFactory.createDefaultModel(); for (ThesaurusArray array : arrays) { NodeLabel...
diff --git a/bundles/org.eclipse.orion.server.search/src/org/eclipse/orion/internal/server/search/SearchServlet.java b/bundles/org.eclipse.orion.server.search/src/org/eclipse/orion/internal/server/search/SearchServlet.java index b560c3d9..9f413b1f 100644 --- a/bundles/org.eclipse.orion.server.search/src/org/eclipse/ori...
false
true
private SolrQuery buildSolrQuery(HttpServletRequest req) { SolrQuery query = new SolrQuery(); query.setParam(CommonParams.WT, "json"); //$NON-NLS-1$ query.setParam(CommonParams.FL, FIELD_NAMES); String queryString = req.getParameter(CommonParams.Q).trim(); if (queryString.length() > 0) { String processedQ...
private SolrQuery buildSolrQuery(HttpServletRequest req) { SolrQuery query = new SolrQuery(); query.setParam(CommonParams.WT, "json"); //$NON-NLS-1$ query.setParam(CommonParams.FL, FIELD_NAMES); String queryString = req.getParameter(CommonParams.Q).trim(); if (queryString.length() > 0) { String processedQ...
diff --git a/com.mountainminds.eclemma.core/src/com/mountainminds/eclemma/internal/core/analysis/JavaElementCoverage.java b/com.mountainminds.eclemma.core/src/com/mountainminds/eclemma/internal/core/analysis/JavaElementCoverage.java index 861505e..c90b201 100644 --- a/com.mountainminds.eclemma.core/src/com/mountainmind...
true
true
private void addBlock(int instructions, int[] lines, boolean covered, int totalLineDelta, int coveredLineDelta) { blockCounter.increment(1, covered ? 1 : 0); instructionsCounter.increment(instructions, covered ? instructions : 0); if (this.lines == null) { lineCounter.increment(totalLineDelta, cover...
private void addBlock(int instructions, int[] lines, boolean covered, int totalLineDelta, int coveredLineDelta) { blockCounter.increment(1, covered ? 1 : 0); instructionsCounter.increment(instructions, covered ? instructions : 0); if (this.lines == null) { lineCounter.increment(totalLineDelta, cover...
diff --git a/src/ui/ZoomableImage.java b/src/ui/ZoomableImage.java index 34d203d..346438e 100644 --- a/src/ui/ZoomableImage.java +++ b/src/ui/ZoomableImage.java @@ -1,82 +1,82 @@ package ui; import javax.swing.*; import java.awt.*; import java.awt.image.*; import java.awt.event.*; import java.util.*; public ...
true
true
public ZoomableImage() { super(); final JPopupMenu menu = new JPopupMenu(); menu.add(zoomMenu("25%", 0.25)); menu.add(zoomMenu("50%", 0.50)); menu.add(zoomMenu("75%", 0.75)); menu.add(zoomMenu("100%", 1.0)); menu.add(zoomMenu("125%", 1.25)); menu.add(zoomMenu("150%", 1.5)); menu.add(zoomMenu("200%",...
public ZoomableImage() { super(); final JPopupMenu menu = new JPopupMenu(); menu.add(zoomMenu("25%", 0.25)); menu.add(zoomMenu("50%", 0.50)); menu.add(zoomMenu("75%", 0.75)); menu.add(zoomMenu("100%", 1.0)); menu.add(zoomMenu("125%", 1.25)); menu.add(zoomMenu("150%", 1.5)); menu.add(zoomMenu("200%",...
diff --git a/src/java/fedora/server/storage/replication/DefaultDOReplicator.java b/src/java/fedora/server/storage/replication/DefaultDOReplicator.java index 93c2bac95..65856ebb4 100755 --- a/src/java/fedora/server/storage/replication/DefaultDOReplicator.java +++ b/src/java/fedora/server/storage/replication/DefaultDORep...
true
true
private boolean updateComponents(DOReader reader) throws ReplicationException { Connection connection=null; Statement st=null; ResultSet results=null; boolean triedUpdate=false; boolean failed=false; logFinest("DefaultDOReplicator.updateComponents: Enterin...
private boolean updateComponents(DOReader reader) throws ReplicationException { Connection connection=null; Statement st=null; ResultSet results=null; boolean triedUpdate=false; boolean failed=false; logFinest("DefaultDOReplicator.updateComponents: Enterin...
diff --git a/src/main/java/org/codehaus/mojo/gwt/shell/CSSMojo.java b/src/main/java/org/codehaus/mojo/gwt/shell/CSSMojo.java index 9f3fc8e..9c83c6d 100644 --- a/src/main/java/org/codehaus/mojo/gwt/shell/CSSMojo.java +++ b/src/main/java/org/codehaus/mojo/gwt/shell/CSSMojo.java @@ -1,152 +1,152 @@ package org.codehaus.m...
true
true
public void doExecute() throws MojoExecutionException, MojoFailureException { setup(); boolean generated = false; // java -cp gwt-dev.jar:gwt-user.jar // com.google.gwt.resources.css.InterfaceGenerator -standalone -typeName some.package.MyCssResource -css // inpu...
public void doExecute() throws MojoExecutionException, MojoFailureException { setup(); boolean generated = false; // java -cp gwt-dev.jar:gwt-user.jar // com.google.gwt.resources.css.InterfaceGenerator -standalone -typeName some.package.MyCssResource -css // inpu...
diff --git a/operator/vectorize/src/test/java/jaitools/media/jai/vectorize/SmallPolysTest.java b/operator/vectorize/src/test/java/jaitools/media/jai/vectorize/SmallPolysTest.java index 9f7f69c4..ed27cc51 100644 --- a/operator/vectorize/src/test/java/jaitools/media/jai/vectorize/SmallPolysTest.java +++ b/operator/vector...
true
true
public void mergeSmallPolysIntoLargestNbr() throws Exception { System.out.println(" merge small polygons into largest neighbour"); RenderedImage img = ImageUtils.createImageFromArray(DATA, WIDTH, WIDTH); args.put("filterThreshold", 1.1); args.put("filterMethod", VectorizeD...
public void mergeSmallPolysIntoLargestNbr() throws Exception { System.out.println(" merge small polygons into largest neighbour"); RenderedImage img = ImageUtils.createImageFromArray(DATA, WIDTH, WIDTH); args.put("filterThreshold", 1.1); args.put("filterMethod", VectorizeD...
diff --git a/src/lang/psi/impl/statements/LuaAssignmentStatementImpl.java b/src/lang/psi/impl/statements/LuaAssignmentStatementImpl.java index f3eb8349..edf85ebe 100644 --- a/src/lang/psi/impl/statements/LuaAssignmentStatementImpl.java +++ b/src/lang/psi/impl/statements/LuaAssignmentStatementImpl.java @@ -1,87 +1,87 @@...
true
true
public boolean processDeclarations(@NotNull PsiScopeProcessor processor, @NotNull ResolveState state, PsiElement lastParent, @NotNull PsiElement place) { if (lastParent != null) { return true; } for (LuaReferenceExpression ref : getLeftExprs().getReferenceExprs()) if (!processor.execute(ref...
public boolean processDeclarations(@NotNull PsiScopeProcessor processor, @NotNull ResolveState state, PsiElement lastParent, @NotNull PsiElement place) { if (lastParent != null && lastParent.getParent() == this) { return true; } for (LuaReferenceExpression ref : getLeftExprs().getReferenceExprs()) ...
diff --git a/components/bio-formats/src/loci/formats/in/FV1000Reader.java b/components/bio-formats/src/loci/formats/in/FV1000Reader.java index 3f09c9d42..d7dafbb40 100644 --- a/components/bio-formats/src/loci/formats/in/FV1000Reader.java +++ b/components/bio-formats/src/loci/formats/in/FV1000Reader.java @@ -1,1433 +1,1...
true
true
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); parser.setCommentDelimiter(null); isOIB = checkSuffix(id, OIB_SUFFIX); if (isOIB) { try { ServiceFactory factory = new ServiceFactory(); poi = factory.getInstance(POIService.class); ...
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); parser.setCommentDelimiter(null); isOIB = checkSuffix(id, OIB_SUFFIX); if (isOIB) { try { ServiceFactory factory = new ServiceFactory(); poi = factory.getInstance(POIService.class); ...
diff --git a/Derporia.java b/Derporia.java index f70b80c..3d07fc9 100644 --- a/Derporia.java +++ b/Derporia.java @@ -1,73 +1,73 @@ package jdressel; // James Dressel and James Robertson // Based on the Hello.java example // Import Servlet Libraries import javax.servlet.*; import javax.servlet.http.*; // Import...
false
true
public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType ("text/html"); PrintWriter out = res.getWriter (); out.println("<!DOCTYPE html>"); out.println("<html>"); out.println("<head>"); /*out.println("<meta http-equiv=/"content-type/" cont...
public void doGet (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType ("text/html"); PrintWriter out = res.getWriter (); out.println("<!DOCTYPE html>"); out.println("<html>"); out.println("<head>"); out.println("<meta http-equiv=\"content-type\" conten...
diff --git a/src/cytoscape/data/readers/unitTests/InteractionsReaderTest.java b/src/cytoscape/data/readers/unitTests/InteractionsReaderTest.java index b2895607a..2d24deac6 100755 --- a/src/cytoscape/data/readers/unitTests/InteractionsReaderTest.java +++ b/src/cytoscape/data/readers/unitTests/InteractionsReaderTest.java...
true
true
public void testGetGraphAndEdgeAttributes () throws Exception // when an interactions file is read, and a graph created, an // GraphObjAttributes hash is created, and all of the edge types are added // to it. make sure that works: make sure the reader returns an // GraphObjAttributes object; that it has the right siz...
public void testGetGraphAndEdgeAttributes () throws Exception // when an interactions file is read, and a graph created, an // GraphObjAttributes hash is created, and all of the edge types are added // to it. make sure that works: make sure the reader returns an // GraphObjAttributes object; that it has the right siz...
diff --git a/yamj3-core/src/main/java/org/yamj/core/service/Scheduler.java b/yamj3-core/src/main/java/org/yamj/core/service/Scheduler.java index 9029f12e..b298afee 100644 --- a/yamj3-core/src/main/java/org/yamj/core/service/Scheduler.java +++ b/yamj3-core/src/main/java/org/yamj/core/service/Scheduler.java @@ -1,81 +1,8...
true
true
public void processStageFiles() throws Exception { Long id = null; // PROCESS VIDEOS do { try { // find next stage file to process id = mediaImportService.getNextStageFileId(FileType.VIDEO, StatusType.NEW, StatusType.UPDATED); if (...
public void processStageFiles() throws Exception { Long id = null; // PROCESS VIDEOS do { try { // find next stage file to process id = mediaImportService.getNextStageFileId(FileType.VIDEO, StatusType.NEW, StatusType.UPDATED); if (...
diff --git a/kernel/src/main/org/jboss/beans/metadata/plugins/AbstractDependencyValueMetaData.java b/kernel/src/main/org/jboss/beans/metadata/plugins/AbstractDependencyValueMetaData.java index 7c3ee870..cd8ddfe5 100644 --- a/kernel/src/main/org/jboss/beans/metadata/plugins/AbstractDependencyValueMetaData.java +++ b/ker...
true
true
public Object getValue(TypeInfo info, ClassLoader cl) throws Throwable { ControllerState state = dependentState; if (state == null) state = ControllerState.INSTALLED; Controller controller = context.getController(); ControllerContext lookup = controller.getContext(getUnderlyingVal...
public Object getValue(TypeInfo info, ClassLoader cl) throws Throwable { ControllerState state = dependentState; if (state == null) state = ControllerState.INSTALLED; if (context == null) throw new IllegalStateException("No context for " + this); Controller controller = c...
diff --git a/fap/app/controllers/fap/LoggerController.java b/fap/app/controllers/fap/LoggerController.java index 5e1d9597..767a9c0b 100644 --- a/fap/app/controllers/fap/LoggerController.java +++ b/fap/app/controllers/fap/LoggerController.java @@ -1,276 +1,276 @@ package controllers.fap; import play.*; import pla...
true
true
public static void logs(long fecha1, long fecha2) throws IOException{ Date date1 = new Date(fecha1); Date date2 = new Date(fecha2); int logsD=0, logsA=0; ArrayList<String> borrarDaily = new ArrayList<String>(); ArrayList<String> borrarAuditable = new ArrayList<String>(); Gson gson = new Gson(); ArrayList...
public static void logs(long fecha1, long fecha2) throws IOException{ Date date1 = new Date(fecha1); Date date2 = new Date(fecha2); int logsD=0, logsA=0; ArrayList<String> borrarDaily = new ArrayList<String>(); ArrayList<String> borrarAuditable = new ArrayList<String>(); Gson gson = new Gson(); ArrayList...
diff --git a/sip-servlets-jboss5/src/main/java/org/jboss/web/tomcat/service/session/ClusteredSipManagerDelegate.java b/sip-servlets-jboss5/src/main/java/org/jboss/web/tomcat/service/session/ClusteredSipManagerDelegate.java index 80aa8483c..1c8d5428d 100644 --- a/sip-servlets-jboss5/src/main/java/org/jboss/web/tomcat/se...
true
true
protected MobicentsSipApplicationSession getNewMobicentsSipApplicationSession( SipApplicationSessionKey key, SipContext sipContext, boolean recreate) { ClusteredSipApplicationSession<? extends OutgoingDistributableSessionData> session = null; if(!recreate) { clusteredSipManager.checkSipApplicationSess...
protected MobicentsSipApplicationSession getNewMobicentsSipApplicationSession( SipApplicationSessionKey key, SipContext sipContext, boolean recreate) { ClusteredSipApplicationSession<? extends OutgoingDistributableSessionData> session = null; if(!recreate) { clusteredSipManager.checkSipApplicationSess...
diff --git a/src/ma/eugene/nextbusapi/NextBus.java b/src/ma/eugene/nextbusapi/NextBus.java index 80ac706..3d6d6ae 100644 --- a/src/ma/eugene/nextbusapi/NextBus.java +++ b/src/ma/eugene/nextbusapi/NextBus.java @@ -1,46 +1,47 @@ package ma.eugene.nextbusapi; import java.io.IOException; import java.util.HashMap; i...
true
true
private double distance(int lat1, int long1, int lat2, int long2) { int earthRadius = 6372797; double dlat = Math.toRadians(lat2-lat1); double dlong = Math.toRadians(long2-long1); double a = Math.sin(dlat/2) * Math.sin(dlat/2) + Math.cos(Math.toRadians(lat1)) * Math.cos(M...
private double distance(double lat1, double long1, double lat2, double long2) { int earthRadius = 6372797; double dlat = Math.toRadians(lat2-lat1); double dlong = Math.toRadians(long2-long1); double a = Math.sin(dlat/2) * Math.sin(dlat/2) + Math.cos(Math.toRad...
diff --git a/sample/src/main/java/com/loopj/android/http/sample/MainActivity.java b/sample/src/main/java/com/loopj/android/http/sample/MainActivity.java index c49198a..62571c7 100644 --- a/sample/src/main/java/com/loopj/android/http/sample/MainActivity.java +++ b/sample/src/main/java/com/loopj/android/http/sample/MainA...
false
true
private void startRequest() { aclient.get(this, getURLString(), new TextHttpResponseHandler() { @Override public void onSuccess(int statusCode, Header[] headers, String content) { setStatusMessage("Succeeded", Color.parseColor("#DD00FF00")); printThro...
private void startRequest() { aclient.get(this, getURLString(), new TextHttpResponseHandler() { @Override public void onSuccess(int statusCode, Header[] headers, String responseBody) { setStatusMessage("Succeeded", Color.parseColor("#DD00FF00")); prin...
diff --git a/src/java/FilterApplier.java b/src/java/FilterApplier.java index 3e2eb5a..d615bc4 100644 --- a/src/java/FilterApplier.java +++ b/src/java/FilterApplier.java @@ -1,312 +1,312 @@ import java.sql.*; import java.util.ArrayList; import java.util.Arrays; import javax.sql.*; public abstract class FilterAp...
false
true
private String applyFilter() { try { boolean passing = true; long vcfId = this.connection.getVcfId( this.vcfName); initializeVcf( vcfId ); ResultSet entries = this.connection.getVcfEntries( vcfId ); while (entries.next() ) { processUntestedEntry( entries ); passing = testEn...
private String applyFilter() { try { boolean passing = true; long vcfId = this.connection.getVcfId( this.vcfName); initializeVcf( vcfId ); ResultSet entries = this.connection.getVcfEntries( vcfId ); while (entries.next() ) { long entryId = entries.getLong("EntryId"); proces...
diff --git a/bedpresBingo/src/no/ntnu/noahsprogark/bedpresbingo/MainActivity.java b/bedpresBingo/src/no/ntnu/noahsprogark/bedpresbingo/MainActivity.java index d47c0a7..9fc2f0b 100644 --- a/bedpresBingo/src/no/ntnu/noahsprogark/bedpresbingo/MainActivity.java +++ b/bedpresBingo/src/no/ntnu/noahsprogark/bedpresbingo/MainA...
false
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); findViewById(R.id.newGameButton).setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent i = new Intent(v.getContext(),...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); findViewById(R.id.newGameButton).setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Intent i = new Intent(v.getContext(),...
diff --git a/src/org/apache/xalan/xsltc/runtime/AbstractTranslet.java b/src/org/apache/xalan/xsltc/runtime/AbstractTranslet.java index f8b0758d..9eee3670 100644 --- a/src/org/apache/xalan/xsltc/runtime/AbstractTranslet.java +++ b/src/org/apache/xalan/xsltc/runtime/AbstractTranslet.java @@ -1,606 +1,603 @@ /* * @(#)$...
false
true
protected void transferOutputSettings(TransletOutputHandler output) { // It is an error if this method is called with anything else than // the translet post-processor (TextOutput) if (!(output instanceof TextOutput)) return; TextOutput handler = (TextOutput)output; // Transfer the output method setting if...
protected void transferOutputSettings(TransletOutputHandler output) { // It is an error if this method is called with anything else than // the translet post-processor (TextOutput) if (!(output instanceof TextOutput)) return; TextOutput handler = (TextOutput)output; // Transfer the output method setting if...
diff --git a/ui_swing/src/com/dmdirc/addons/ui_swing/components/menubar/ChannelMenu.java b/ui_swing/src/com/dmdirc/addons/ui_swing/components/menubar/ChannelMenu.java index e13aa071..91bb9b17 100644 --- a/ui_swing/src/com/dmdirc/addons/ui_swing/components/menubar/ChannelMenu.java +++ b/ui_swing/src/com/dmdirc/addons/ui...
true
true
private void initChannelMenu() { join = JMenuItemBuilder.create() .setText("Join Channle...") .setMnemonic('j') .addActionListener(e -> joinChannel()) .build(); add(join); csd = JMenuItemBuilder.create() .setMne...
private void initChannelMenu() { join = JMenuItemBuilder.create() .setText("Join Channel...") .setMnemonic('j') .addActionListener(e -> joinChannel()) .build(); add(join); csd = JMenuItemBuilder.create() .setMne...
diff --git a/src/main/java/coucou/Coucou.java b/src/main/java/coucou/Coucou.java index 51ef35e..89e35b6 100644 --- a/src/main/java/coucou/Coucou.java +++ b/src/main/java/coucou/Coucou.java @@ -1,51 +1,51 @@ package coucou; import java.io.*; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Prod...
true
true
public Response repondre() { JSONObject data=null; String chaine=""; String fichier ="./src/main/ressources/mock_data.json"; //lecture du fichier texte try{ InputStream ips=new FileInputStream(fichier); InputStreamReader ipsr=new InputStreamReade...
public Response repondre() { JSONObject data=null; String chaine=""; String fichier ="./src/main/ressources/exemple.json"; //lecture du fichier texte try{ InputStream ips=new FileInputStream(fichier); InputStreamReader ipsr=new InputStreamReader(...
diff --git a/omod/src/main/java/org/openmrs/module/registration/web/controller/patient/ShowPatientInfoController.java b/omod/src/main/java/org/openmrs/module/registration/web/controller/patient/ShowPatientInfoController.java index 0ebb4a3..a8019f9 100644 --- a/omod/src/main/java/org/openmrs/module/registration/web/cont...
true
true
public void savePatientInfo(@RequestParam("patientId") Integer patientId, @RequestParam(value = "encounterId", required = false) Integer encounterId, HttpServletRequest request, HttpServletResponse response) throws ParseException, IOException { Map<String,...
public void savePatientInfo(@RequestParam("patientId") Integer patientId, @RequestParam(value = "encounterId", required = false) Integer encounterId, HttpServletRequest request, HttpServletResponse response) throws ParseException, IOException { Map<String,...
diff --git a/ui/NNTP/FreetalkNNTPGroup.java b/ui/NNTP/FreetalkNNTPGroup.java index a1df3772..0cac7b69 100644 --- a/ui/NNTP/FreetalkNNTPGroup.java +++ b/ui/NNTP/FreetalkNNTPGroup.java @@ -1,121 +1,123 @@ /* This code is part of Freenet. It is distributed under the GNU General * Public License, version 2 (or at your o...
true
true
public Iterator<FreetalkNNTPArticle> getMessageIterator(int start, int end) throws NoSuchMessageException { synchronized (board) { if (start < firstMessage()) start = firstMessage(); if (end == -1 || end > lastMessage()) end = lastMessage(); Iterator<FreetalkNNTPArticle> iter; final int startI...
public Iterator<FreetalkNNTPArticle> getMessageIterator(int start, int end) throws NoSuchMessageException { synchronized (board) { if (start < firstMessage()) start = firstMessage(); if (end == -1 || end > lastMessage()) end = lastMessage(); Iterator<FreetalkNNTPArticle> iter; final int startI...
diff --git a/src/share/org/dianexus/triceps/TricepsServlet.java b/src/share/org/dianexus/triceps/TricepsServlet.java index 5d08744..bb1fd95 100644 --- a/src/share/org/dianexus/triceps/TricepsServlet.java +++ b/src/share/org/dianexus/triceps/TricepsServlet.java @@ -1,167 +1,167 @@ /* ***********************************...
true
true
private void logAccess(HttpServletRequest req) { if (DEBUG) { /* standard Apache log format (after the #@# prefix for easier extraction) */ Logger.writeln("#@#(" + req.getParameter("DIRECTIVE") + ") " + sessionID + ((WEB_SERVER) ? (req.getRemoteAddr() + " - [" + new Date(System.currentTimeMillis()) + "] \"...
private void logAccess(HttpServletRequest req) { if (DEBUG) { /* standard Apache log format (after the #@# prefix for easier extraction) */ Logger.writeln("#@#(" + req.getParameter("DIRECTIVE") + ") " + sessionID + ((WEB_SERVER) ? (" " + req.getRemoteAddr() + " - [" + new Date(System.currentTimeMillis()) +...
diff --git a/src/niagaraGUI/QueryPlan.java b/src/niagaraGUI/QueryPlan.java index 4c8228a..7acdddb 100644 --- a/src/niagaraGUI/QueryPlan.java +++ b/src/niagaraGUI/QueryPlan.java @@ -1,152 +1,152 @@ package niagaraGUI; import java.util.*; import org.jdom.*; import java.io.FileWriter; import java.io.IOException; i...
true
true
public void generateXML(String filename) { try{ Element plan = new Element("plan"); plan.setAttribute(new Attribute("top", "cons")); Document doc1 = new Document(plan); DocType type = new DocType("plan", "/stash/datalab/datastreams-student/bin/queryplan.dtd");...
public void generateXML(String filename) { try{ Element plan = new Element("plan"); plan.setAttribute(new Attribute("top", "cons")); Document doc1 = new Document(plan); DocType type = new DocType("plan", "/stash/datalab/datastreams-student/bin/queryplan.dtd");...
diff --git a/src/main/java/com/ciplogic/web/codeeditor/render/geshi/GeshiLanguageDefinitionsHolder.java b/src/main/java/com/ciplogic/web/codeeditor/render/geshi/GeshiLanguageDefinitionsHolder.java old mode 100644 new mode 100755 index ccd6732..f32a620 --- a/src/main/java/com/ciplogic/web/codeeditor/render/geshi/GeshiLa...
true
true
public GeshiLanguageDefinitionsHolder() { addLanguage("Text", "text", ProgrammingLanguage.TEXT); addLanguage("Visual Basic (.NET)", "vbnet", ProgrammingLanguage.VB_NET); addLanguage("C", "c", ProgrammingLanguage.C); addLanguage("C++", "cpp", ProgrammingLanguage.CPP); addLangu...
public GeshiLanguageDefinitionsHolder() { addLanguage("Text", "text", ProgrammingLanguage.TEXT); addLanguage("Assembler (ARM)", "arm", ProgrammingLanguage.ASM_ARM); addLanguage("Assembler (x86)", "asm", ProgrammingLanguage.ASM_X86); addLanguage("Visual Basic (.NET)", "vbnet", Program...
diff --git a/src/main/java/com/concursive/connect/web/modules/common/social/tagging/portlets/projectListByTag/ProjectListByTagViewer.java b/src/main/java/com/concursive/connect/web/modules/common/social/tagging/portlets/projectListByTag/ProjectListByTagViewer.java index 5cd56b2..ac360bf 100644 --- a/src/main/java/com/c...
true
true
public String doView(RenderRequest request, RenderResponse response) throws PortletException, IOException { try { String defaultView = VIEW_PAGE1; // Set global preferences request.setAttribute(TITLE, request.getPreferences().getValue(PREF_TITLE, null)); String limitString = request...
public String doView(RenderRequest request, RenderResponse response) throws PortletException, IOException { try { String defaultView = VIEW_PAGE1; // Set global preferences request.setAttribute(TITLE, request.getPreferences().getValue(PREF_TITLE, null)); String limitString = request...
diff --git a/src/net/pointysoftware/worldgenerationcontrol/WorldGenerationControl.java b/src/net/pointysoftware/worldgenerationcontrol/WorldGenerationControl.java index f5ab2bc..38ef76b 100644 --- a/src/net/pointysoftware/worldgenerationcontrol/WorldGenerationControl.java +++ b/src/net/pointysoftware/worldgenerationcon...
false
true
public boolean runStep(int queued) { long now = System.nanoTime(); if (this.starttime == 0) this.starttime = System.nanoTime(); // Status message String queuedtext = ""; if (queued > 0) queuedtext = ...
public boolean runStep(int queued) { long now = System.nanoTime(); if (this.starttime == 0) this.starttime = System.nanoTime(); // Status message String queuedtext = ""; if (queued > 0) queuedtext = ...
diff --git a/src/main/java/org/json/simple/parser/Yylex.java b/src/main/java/org/json/simple/parser/Yylex.java index 42ce508..e58e27e 100644 --- a/src/main/java/org/json/simple/parser/Yylex.java +++ b/src/main/java/org/json/simple/parser/Yylex.java @@ -1,688 +1,688 @@ /* The following code was generated by JFlex 1.4.2...
true
true
public Yytoken yylex() throws java.io.IOException, ParseException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowM...
public Yytoken yylex() throws java.io.IOException, ParseException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowM...
diff --git a/java/src/org/broadinstitute/sting/gatk/refdata/features/vcf4/VCF4Codec.java b/java/src/org/broadinstitute/sting/gatk/refdata/features/vcf4/VCF4Codec.java index 11d5908f5..9dba4601d 100644 --- a/java/src/org/broadinstitute/sting/gatk/refdata/features/vcf4/VCF4Codec.java +++ b/java/src/org/broadinstitute/sti...
true
true
protected Map<String, Genotype> createGenotypeMap(String[] parts, Pair<GenomeLoc, List<Allele>> locAndAlleles, int formatFieldLocation) { Map<String, Genotype> genotypes = new LinkedHashMap<String, Genotype>(Math.max(parts.length - formatFieldLocation, 1)); // get the format keys int nGTKey...
protected Map<String, Genotype> createGenotypeMap(String[] parts, Pair<GenomeLoc, List<Allele>> locAndAlleles, int formatFieldLocation) { Map<String, Genotype> genotypes = new LinkedHashMap<String, Genotype>(Math.max(parts.length - formatFieldLocation, 1)); // get the format keys int nGTKey...
diff --git a/src/main/java/org/biojava3/structure/quaternary/geometry/Tetrahedron.java b/src/main/java/org/biojava3/structure/quaternary/geometry/Tetrahedron.java index ebad13c3..45a7a91d 100644 --- a/src/main/java/org/biojava3/structure/quaternary/geometry/Tetrahedron.java +++ b/src/main/java/org/biojava3/structure/qu...
true
true
public Point3d[] getVertices() { double a = circumscribedRadius/Math.sqrt(2); Point3d[] tetrahedron = new Point3d[4]; tetrahedron[0] = new Point3d(-circumscribedRadius, 0, -a); tetrahedron[1] = new Point3d( circumscribedRadius, 0, -a); tetrahedron[2] = new Point3d(0, -circumscribedRadius, a); tetrahedr...
public Point3d[] getVertices() { double x = getSideLengthFromCircumscribedRadius(circumscribedRadius)/2; double z = x/Math.sqrt(2); Point3d[] tetrahedron = new Point3d[4]; tetrahedron[0] = new Point3d(-x, 0, -z); tetrahedron[1] = new Point3d( x, 0, -z); tetrahedron[2] = new Point3d( 0, -x, z); tetrah...
diff --git a/project/gncandroid/src/rednus/gncandroid/GNCDataHandler.java b/project/gncandroid/src/rednus/gncandroid/GNCDataHandler.java index 25b8b0f..c832c00 100644 --- a/project/gncandroid/src/rednus/gncandroid/GNCDataHandler.java +++ b/project/gncandroid/src/rednus/gncandroid/GNCDataHandler.java @@ -1,590 +1,601 @@...
false
true
public GNCDataHandler(GNCAndroid app, String dataFile, boolean longAccountNames) { this.app = app; res = app.getResources(); this.longAccountNames = longAccountNames; BuildAccountMapping(); sqliteHandle = SQLiteDatabase.openDatabase(dataFile, null, SQLiteDatabase.OPEN_READWRITE | SQLiteDataba...
public GNCDataHandler(GNCAndroid app, String dataFile, boolean longAccountNames) { Cursor cursor; this.app = app; res = app.getResources(); this.longAccountNames = longAccountNames; BuildAccountMapping(); sqliteHandle = SQLiteDatabase.openDatabase(dataFile, null, SQLiteDatabase.OPEN_READWRITE ...
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFBreakpointsModel.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TCFBreakpointsModel.java index 9ee8495b6..7f3c5d57e 100644 --- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/TC...
true
true
public Map<String,Object> toBreakpointAttributes(IChannel channel, String id, String marker_file, String marker_type, Map<String,Object> p) { assert !disposed; assert Protocol.isDispatchThread(); Map<String,Object> m = new HashMap<String,Object>(); Map<String,Object> capa...
public Map<String,Object> toBreakpointAttributes(IChannel channel, String id, String marker_file, String marker_type, Map<String,Object> p) { assert !disposed; assert Protocol.isDispatchThread(); Map<String,Object> m = new HashMap<String,Object>(); Map<String,Object> capa...
diff --git a/src/main/java/org/atlasapi/remotesite/hulu/HuluBrandAdapter.java b/src/main/java/org/atlasapi/remotesite/hulu/HuluBrandAdapter.java index 84fb84ee2..7d40a1c0a 100644 --- a/src/main/java/org/atlasapi/remotesite/hulu/HuluBrandAdapter.java +++ b/src/main/java/org/atlasapi/remotesite/hulu/HuluBrandAdapter.java...
true
true
public Brand fetch(String uri) { LOG.info("Retrieving Hulu brand: " + uri + " with " + httpClient.getClass() + " : " + httpClient.toString()); String content = getContent(uri); if (content != null) { HtmlNavigator navigator = new HtmlNavigator(content); Brand brand =...
public Brand fetch(String uri) { LOG.info("Retrieving Hulu brand: " + uri + " with " + httpClient.getClass() + " : " + httpClient.toString()); String content = getContent(uri); if (content != null) { HtmlNavigator navigator = new HtmlNavigator(content); Brand brand =...
diff --git a/modules/org.restlet/src/org/restlet/engine/connector/OutboundWay.java b/modules/org.restlet/src/org/restlet/engine/connector/OutboundWay.java index 53186eba5..e61baca6a 100644 --- a/modules/org.restlet/src/org/restlet/engine/connector/OutboundWay.java +++ b/modules/org.restlet/src/org/restlet/engine/connec...
false
true
protected void writeMessage() throws IOException { while (isProcessing() && getByteBuffer().hasRemaining()) { if (getMessageState() == MessageState.BODY) { if (getActualMessage().isEntityAvailable()) { long entitySize = getActualMessage().getEntity().getSize()...
protected void writeMessage() throws IOException { while (isProcessing() && getByteBuffer().hasRemaining()) { if (getMessageState() == MessageState.BODY) { if (getActualMessage().isEntityAvailable()) { long entitySize = getActualMessage().getEntity().getSize()...
diff --git a/camera/src/com/commonsware/cwac/camera/DeviceProfile.java b/camera/src/com/commonsware/cwac/camera/DeviceProfile.java index c3f231d..5fb44ee 100644 --- a/camera/src/com/commonsware/cwac/camera/DeviceProfile.java +++ b/camera/src/com/commonsware/cwac/camera/DeviceProfile.java @@ -1,134 +1,133 @@ /*** Co...
false
true
synchronized public static DeviceProfile getInstance(Context ctxt) { if (SINGLETON == null) { // android.util.Log.wtf("DeviceProfile", // String.format("\"%s\" \"%s\"", Build.MANUFACTURER, // Build.PRODUCT)); if ("motorola".equalsIgnore...
synchronized public static DeviceProfile getInstance(Context ctxt) { if (SINGLETON == null) { // android.util.Log.wtf("DeviceProfile", // String.format("\"%s\" \"%s\"", Build.MANUFACTURER, // Build.PRODUCT)); if ("motorola".equalsIgnoreCase(Build.MANUFACTURER) && "XT890_rtgb".eq...
diff --git a/p2/graficador/Graficador/src/graficador/Graficador.java b/p2/graficador/Graficador/src/graficador/Graficador.java index b929da8..f225abd 100644 --- a/p2/graficador/Graficador/src/graficador/Graficador.java +++ b/p2/graficador/Graficador/src/graficador/Graficador.java @@ -1,123 +1,125 @@ /* * To change t...
false
true
public void drawGraph() throws Exception { if (points.size() + intercepts.size() == 0) { throw new Exception("No points have been add to draw"); } done = true; range = maxY - minY + 1; int dx = getWidth() / (domain + 2); //+2 for margin of the graph int d...
public void drawGraph() throws Exception { if (points.size() + intercepts.size() == 0) { throw new Exception("No points have been add to draw"); } done = true; range = maxY - minY + 1; int dx = getWidth() / (domain + 2); //+2 for margin of the graph int d...
diff --git a/AE-go_GameServer/src/com/aionemu/gameserver/network/aion/serverpackets/SM_STATS_INFO.java b/AE-go_GameServer/src/com/aionemu/gameserver/network/aion/serverpackets/SM_STATS_INFO.java index 2c85aa1a..b803aa94 100644 --- a/AE-go_GameServer/src/com/aionemu/gameserver/network/aion/serverpackets/SM_STATS_INFO.ja...
false
true
protected void writeImpl(AionConnection con, ByteBuffer buf) { PlayerCommonData pcd = player.getCommonData(); //////////////////////////////////////////////////////// //////Sexy calculations of player stats. //////TODO: show player stats in white. Not red or green. //////TODO: Move calculations to some other cla...
protected void writeImpl(AionConnection con, ByteBuffer buf) { PlayerCommonData pcd = player.getCommonData(); //////////////////////////////////////////////////////// //////Sexy calculations of player stats. //////TODO: show player stats in white. Not red or green. //////TODO: Move calculations to some other cla...
diff --git a/src/balle/strategy/friendly1/Game.java b/src/balle/strategy/friendly1/Game.java index 8358ca9..a41acbf 100644 --- a/src/balle/strategy/friendly1/Game.java +++ b/src/balle/strategy/friendly1/Game.java @@ -1,143 +1,145 @@ package balle.strategy.friendly1; import org.apache.log4j.Logger; import balle.c...
true
true
public void onStep(Controller controller, Snapshot snapshot) { Robot ourRobot = snapshot.getBalle(); Robot opponent = snapshot.getOpponent(); Ball ball = snapshot.getBall(); Goal ownGoal = snapshot.getOwnGoal(); Goal opponentsGoal = snapshot.getOpponentsGoal(); Pitch...
public void onStep(Controller controller, Snapshot snapshot) { Robot ourRobot = snapshot.getBalle(); if (ourRobot.getPosition() == null) return; Robot opponent = snapshot.getOpponent(); Ball ball = snapshot.getBall(); Goal ownGoal = snapshot.getOwnGoal(); ...
diff --git a/src/java/nl/b3p/viewer/admin/stripes/LayerActionBean.java b/src/java/nl/b3p/viewer/admin/stripes/LayerActionBean.java index 698e05b21..2b2faabca 100644 --- a/src/java/nl/b3p/viewer/admin/stripes/LayerActionBean.java +++ b/src/java/nl/b3p/viewer/admin/stripes/LayerActionBean.java @@ -1,241 +1,250 @@ /* *...
false
true
public Resolution save() { layer.getDetails().clear(); for(Map.Entry<String,String> e: details.entrySet()) { layer.getDetails().put(e.getKey(), new ClobElement(e.getValue())); } layer.getReaders().clear(); for (String groupName : groupsRead) { layer.g...
public Resolution save() { // Only remove details which are editable and re-added layer if not empty, // retain other details (for example "wms.styles") // See JSP for which keys are edited layer.getDetails().keySet().removeAll(Arrays.asList( Layer.EXTRA_KEY_METADATA...
diff --git a/src/main/java/au/gov/nsw/records/search/service/StringService.java b/src/main/java/au/gov/nsw/records/search/service/StringService.java index a235507..6fc1203 100644 --- a/src/main/java/au/gov/nsw/records/search/service/StringService.java +++ b/src/main/java/au/gov/nsw/records/search/service/StringService....
false
true
public static String formatEacCpf(String field){ field = field.replaceAll("\n", "</p><p>"); field = field.replaceAll("<br />", "</p><p>"); field = field.replaceAll("nbsp;", " "); field = field.replaceAll("&middot;", "-"); field = field.replaceAll("&ndash;", "-"); field = field.replaceAll("&e...
public static String formatEacCpf(String field){ field = field.replaceAll("\n", "</p><p>"); field = field.replaceAll("<br />", "</p><p>"); field = field.replaceAll("<br/>", "</p><p>"); field = field.replaceAll("nbsp;", " "); field = field.replaceAll("&middot;", "-"); field = field.replaceAll("...
diff --git a/TESTS/Main.java b/TESTS/Main.java index 6e30f94..6498dbc 100644 --- a/TESTS/Main.java +++ b/TESTS/Main.java @@ -1,21 +1,21 @@ public class Main { public static void main(String[] args){ try { int i,j; for (i=0; i < args.length; i++){ - for(j = 1+1; j < args.length; j++){ + for(j = i+1; ...
true
true
public static void main(String[] args){ try { int i,j; for (i=0; i < args.length; i++){ for(j = 1+1; j < args.length; j++){ if (args[i].equals(args[j])){ throw new Exception("2 queried files are the same file"); } } } HistoryParser history = new HistoryParser(args); histo...
public static void main(String[] args){ try { int i,j; for (i=0; i < args.length; i++){ for(j = i+1; j < args.length; j++){ if (args[i].equals(args[j])){ throw new Exception("2 queried files are the same file"); } } } HistoryParser history = new HistoryParser(args); histo...
diff --git a/atlassian-jira-rest-java-client/src/test/java/it/JerseyMetadataRestClientTest.java b/atlassian-jira-rest-java-client/src/test/java/it/JerseyMetadataRestClientTest.java index 0bc253b..6db4f2d 100644 --- a/atlassian-jira-rest-java-client/src/test/java/it/JerseyMetadataRestClientTest.java +++ b/atlassian-jira...
false
true
public void testGetResolution() { final Issue issue = client.getIssueClient().getIssue("TST-2", pm); assertNull(issue.getResolution()); final Iterable<Transition> transitions = client.getIssueClient().getTransitions(issue.getTransitionsUri(), pm); final Transition resolveTransition = getTransitionByName(transi...
public void testGetResolution() { final Issue issue = client.getIssueClient().getIssue("TST-2", pm); assertNull(issue.getResolution()); final Iterable<Transition> transitions = client.getIssueClient().getTransitions(issue, pm); final Transition resolveTransition = getTransitionByName(transitions, "Resolve Issu...
diff --git a/RsvpTextStatistics.java b/RsvpTextStatistics.java index 89dc690..f725c63 100644 --- a/RsvpTextStatistics.java +++ b/RsvpTextStatistics.java @@ -1,132 +1,134 @@ import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOExceptio...
true
true
public static void main(final String[] args) { final String defSt = "def %s=%s"; final String deleteStmt = "delete from %s"; final String categorySt = "select id from category where name = ?"; final String genreSt = "select id from genre where category = (%s) and name = ?"; final String featureSt ...
public static void main(final String[] args) { final String defSt = "def %s=%s"; final String deleteStmt = "delete from %s"; final String categorySt = "select id from category where name = ?"; final String genreSt = "select id from genre where category = (%s) and name = ?"; final String featureSt ...
diff --git a/Poker/src/client/Client.java b/Poker/src/client/Client.java index 85ac5aa..0b018d9 100644 --- a/Poker/src/client/Client.java +++ b/Poker/src/client/Client.java @@ -1,69 +1,72 @@ package client; import java.io.IOException; import java.io.PrintWriter; import java.net.InetAddress; import java.net.Socke...
true
true
public static void start(String name) { try { Socket socket = new Socket(InetAddress.getLocalHost(), 9999); (new PrintWriter(socket.getOutputStream())).println(name); TaskQueue que = new TaskQueue(); Conn conn = new Conn(socket, socket.getOutputStream()); ServerListener listener = new Se...
public static void start(String name) { try { Socket socket = new Socket(InetAddress.getLocalHost(), 9999); PrintWriter out = new PrintWriter(socket.getOutputStream()); out.println(name); out.flush(); out.close(); TaskQueue que = new TaskQueue(); Conn conn = new Conn(socket, socket.get...
diff --git a/loci/formats/in/OpenlabReader.java b/loci/formats/in/OpenlabReader.java index b6cbb9a5a..d43eb530f 100644 --- a/loci/formats/in/OpenlabReader.java +++ b/loci/formats/in/OpenlabReader.java @@ -1,539 +1,547 @@ // // OpenlabReader.java // /* OME Bio-Formats package for reading and converting biological...
true
true
protected void initFile(String id) throws FormatException, IOException { if (debug) debug("OpenlabReader.initFile(" + id + ")"); super.initFile(id); in = new RandomAccessStream(id); status("Verifying Openlab LIFF format"); in.order(false); in.seek(4); if (!in.readString(4).equals("impr")...
protected void initFile(String id) throws FormatException, IOException { if (debug) debug("OpenlabReader.initFile(" + id + ")"); super.initFile(id); in = new RandomAccessStream(id); status("Verifying Openlab LIFF format"); in.order(false); in.seek(4); if (!in.readString(4).equals("impr")...
diff --git a/src/pleocmd/itfc/gui/log/LogTableStyledCell.java b/src/pleocmd/itfc/gui/log/LogTableStyledCell.java index ab26272..34e5b97 100644 --- a/src/pleocmd/itfc/gui/log/LogTableStyledCell.java +++ b/src/pleocmd/itfc/gui/log/LogTableStyledCell.java @@ -1,54 +1,54 @@ package pleocmd.itfc.gui.log; import java.awt...
true
true
public LogTableStyledCell(final String text, final boolean multiLine, final Color foreground, final Color background, final boolean bold, final boolean italic) { this.text = text; this.multiLine = multiLine; this.foreground = foreground; this.background = background; this.bold = bold; this.italic = i...
public LogTableStyledCell(final String text, final boolean multiLine, final Color foreground, final Color background, final boolean bold, final boolean italic) { this.text = text == null ? "" : text; this.multiLine = multiLine; this.foreground = foreground; this.background = background; this.bold = bol...
diff --git a/works.editor.antlr4/src/org/antlr/works/editor/antlr4/completion/AbstractCompletionQuery.java b/works.editor.antlr4/src/org/antlr/works/editor/antlr4/completion/AbstractCompletionQuery.java index bf33a6b..84fd564 100644 --- a/works.editor.antlr4/src/org/antlr/works/editor/antlr4/completion/AbstractCompleti...
true
true
protected void tryParse(CodeCompletionParser parser, List<MultipleDecisionData> potentialAlternatives, List<Integer> currentPath, Map<RuleContext<Token>, CaretReachedException> results) { RuleContext<Token> parseTree; try { parser.getInterpreter().setFixedDecisions(potent...
protected void tryParse(CodeCompletionParser parser, List<MultipleDecisionData> potentialAlternatives, List<Integer> currentPath, Map<RuleContext<Token>, CaretReachedException> results) { RuleContext<Token> parseTree; try { parser.getInterpreter().setFixedDecisions(potent...
diff --git a/mmstudio/src/org/micromanager/utils/MMImageWindow.java b/mmstudio/src/org/micromanager/utils/MMImageWindow.java index d8499cd..295c652 100644 --- a/mmstudio/src/org/micromanager/utils/MMImageWindow.java +++ b/mmstudio/src/org/micromanager/utils/MMImageWindow.java @@ -1,422 +1,421 @@ //////////////////////...
true
true
public void Initialize() { setIJCal(); setPreferredLocation(); buttonPanel_ = new Panel(); AbstractButton saveButton = new JButton("Save"); saveButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { new FileSaver(getImagePlus()).save(); } }); buttonPanel...
public void Initialize() { setIJCal(); setPreferredLocation(); buttonPanel_ = new Panel(); AbstractButton saveButton = new JButton("Save"); saveButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { new FileSaver(getImagePlus()).save(); } }); buttonPanel...
diff --git a/src/org/eclipse/jface/layout/AbstractColumnLayout.java b/src/org/eclipse/jface/layout/AbstractColumnLayout.java index 248cc9bf..f420735c 100644 --- a/src/org/eclipse/jface/layout/AbstractColumnLayout.java +++ b/src/org/eclipse/jface/layout/AbstractColumnLayout.java @@ -1,315 +1,315 @@ /*******************...
true
true
private void layoutTableTree(final Scrollable scrollable, final int width, final Rectangle area, final boolean increase) { final int numberOfColumns = getColumnCount(scrollable); final int[] widths = new int[numberOfColumns]; final int[] weightColumnIndices = new int[numberOfColumns]; int numberOfWeightCol...
private void layoutTableTree(final Scrollable scrollable, final int width, final Rectangle area, final boolean increase) { final int numberOfColumns = getColumnCount(scrollable); final int[] widths = new int[numberOfColumns]; final int[] weightColumnIndices = new int[numberOfColumns]; int numberOfWeightCol...