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/clients/android/NewsBlur/src/com/newsblur/util/FeedUtils.java b/clients/android/NewsBlur/src/com/newsblur/util/FeedUtils.java index 04a702d9e..93ef6fc86 100644 --- a/clients/android/NewsBlur/src/com/newsblur/util/FeedUtils.java +++ b/clients/android/NewsBlur/src/com/newsblur/util/FeedUtils.java @@ -1,247 +...
true
true
public static void markStoriesAsRead( Collection<Story> stories, final Context context ) { // the list of story hashes to mark read final ArrayList<String> storyHashes = new ArrayList<String>(); // a list of local DB ops to perform ArrayList<ContentProviderOperation> updateOps = new...
public static void markStoriesAsRead( Collection<Story> stories, final Context context ) { // the list of story hashes to mark read final ArrayList<String> storyHashes = new ArrayList<String>(); // a list of local DB ops to perform ArrayList<ContentProviderOperation> updateOps = new...
diff --git a/sveditor/plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/parser/boolean_abbrev_or_array_deref.java b/sveditor/plugins/net.sf.sveditor.core/src/net/sf/sveditor/core/parser/boolean_abbrev_or_array_deref.java index 85f09dbf..23fd9136 100644 --- a/sveditor/plugins/net.sf.sveditor.core/src/net/sf/sveditor...
true
true
public SVDBExpr property_expr() throws SVParseException { SVDBExpr ret = null; if (fDebugEn) {debug("--> property_expr() " + fLexer.peek());} if (fLexer.peekKeyword("strong","weak")) { // weak_strong_expr SVDBPropertyWeakStrongExpr ws_expr = new SVDBPropertyWeakStrongExpr(); ws_expr.setLocation(fLexer.g...
public SVDBExpr property_expr() throws SVParseException { SVDBExpr ret = null; if (fDebugEn) {debug("--> property_expr() " + fLexer.peek());} if (fLexer.peekKeyword("strong","weak")) { // weak_strong_expr SVDBPropertyWeakStrongExpr ws_expr = new SVDBPropertyWeakStrongExpr(); ws_expr.setLocation(fLexer.g...
diff --git a/src/de/caluga/morphium/cache/MorphiumCacheImpl.java b/src/de/caluga/morphium/cache/MorphiumCacheImpl.java index bff5a800..5cf45c1e 100644 --- a/src/de/caluga/morphium/cache/MorphiumCacheImpl.java +++ b/src/de/caluga/morphium/cache/MorphiumCacheImpl.java @@ -1,220 +1,220 @@ package de.caluga.morphium.cache...
true
true
public <T> void addToCache(String k, Class<?> type, List<T> ret) { if (k == null) { return; } if (ret != null && !k.endsWith("idlist")) { //copy from idCache Hashtable<Class<?>, Hashtable<ObjectId, Object>> idCacheClone = cloneIdCache(); for (T...
public <T> void addToCache(String k, Class<?> type, List<T> ret) { if (k == null) { return; } if (!k.endsWith("idlist")) { //copy from idCache Hashtable<Class<?>, Hashtable<ObjectId, Object>> idCacheClone = cloneIdCache(); for (T record : ret) ...
diff --git a/src/hms/views/NurseView.java b/src/hms/views/NurseView.java index 553b004..0817198 100644 --- a/src/hms/views/NurseView.java +++ b/src/hms/views/NurseView.java @@ -1,442 +1,442 @@ package hms.views; import java.awt.EventQueue; import hms.models.Ward; import javax.swing.JFrame; import java.awt.Ca...
false
true
private void initialize(boolean isNew) { lblInvalidInput = new JLabel("Invalid input, please try again."); lblInvalidInput.setVisible(false); lblInvalidInput.setForeground(Color.red); this.isNew = isNew; frame = new JFrame(); frame.setBounds(100, 100, 511, 375); //frame.setDefaultCloseOperation(JFrame...
private void initialize(boolean isNew) { lblInvalidInput = new JLabel("Invalid input, please try again."); lblInvalidInput.setVisible(false); lblInvalidInput.setForeground(Color.red); this.isNew = isNew; frame = new JFrame(); frame.setBounds(100, 100, 600, 400); //frame.setDefaultCloseOperation(JFrame...
diff --git a/concourse-server/src/main/java/org/cinchapi/concourse/server/storage/db/Record.java b/concourse-server/src/main/java/org/cinchapi/concourse/server/storage/db/Record.java index e2e1252b2..2b9129c33 100644 --- a/concourse-server/src/main/java/org/cinchapi/concourse/server/storage/db/Record.java +++ b/concour...
true
true
public void append(Revision<L, K, V> revision) { write.lock(); try { // NOTE: We only need to enforce the monotonic increasing constraint // for PrimaryRecords because Secondary and Search records will be // populated from Blocks that were sorted based primarily o...
public void append(Revision<L, K, V> revision) { write.lock(); try { // NOTE: We only need to enforce the monotonic increasing constraint // for PrimaryRecords because Secondary and Search records will be // populated from Blocks that were sorted based primarily o...
diff --git a/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java b/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java index 3e18caa15..40a326466 100755 --- a/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java +++ ...
true
true
public void start() throws Exception { getAdapter().setUseExternalMessageReferences(isUseExternalMessageReferences()); if (isCreateTablesOnStartup()) { TransactionContext transactionContext = getTransactionContext(); transactionContext.begin(); try { ...
public void start() throws Exception { getAdapter().setUseExternalMessageReferences(isUseExternalMessageReferences()); if (isCreateTablesOnStartup()) { TransactionContext transactionContext = getTransactionContext(); transactionContext.begin(); try { ...
diff --git a/graylog2-server/src/main/java/org/graylog2/periodical/VersionCheckThread.java b/graylog2-server/src/main/java/org/graylog2/periodical/VersionCheckThread.java index 9387b6c52..15e410c17 100644 --- a/graylog2-server/src/main/java/org/graylog2/periodical/VersionCheckThread.java +++ b/graylog2-server/src/main/...
true
true
public void run() { URIBuilder uri = null; HttpGet get = null; try { uri = new URIBuilder(core.getConfiguration().getVersionchecksUri()); uri.addParameter("anon-id", new String(DigestUtils.sha256(core.getNodeId()), Charset.forName("UTF-8"))); uri.addParame...
public void run() { URIBuilder uri = null; HttpGet get = null; try { uri = new URIBuilder(core.getConfiguration().getVersionchecksUri()); uri.addParameter("anonid", DigestUtils.sha256Hex(core.getNodeId())); uri.addParameter("version", ServerVersion.VERSION...
diff --git a/src/face/AddCar.java b/src/face/AddCar.java index cc3664f..abd91e0 100644 --- a/src/face/AddCar.java +++ b/src/face/AddCar.java @@ -1,214 +1,214 @@ package face; import java.sql.Date; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; import java...
true
true
private void createContents() { shell = new Shell(getParent(), getStyle()); shell.setSize(283, 346); shell.setText("Добавить машину"); Rectangle client=shell.getBounds(); Rectangle par=parent.getBounds(); client.x=(par.x+par.width/2)-client.width/2; client.y=(par.y+par.height/2)-client.height/2; she...
private void createContents() { shell = new Shell(getParent(), getStyle()); shell.setSize(283, 346); shell.setText("Добавить машину"); Rectangle client=shell.getBounds(); Rectangle par=parent.getBounds(); client.x=(par.x+par.width/2)-client.width/2; client.y=(par.y+par.height/2)-client.height/2; she...
diff --git a/app/controllers/Carts.java b/app/controllers/Carts.java index a6f1ecf..69a95b9 100644 --- a/app/controllers/Carts.java +++ b/app/controllers/Carts.java @@ -1,72 +1,72 @@ package controllers; import io.sphere.client.shop.model.*; import forms.AddToCart; import forms.RemoveFromCart; import forms.Updat...
true
true
public static Result add() { Form<AddToCart> form = form(AddToCart.class).bindFromRequest(); if (form.hasErrors()) { return badRequest(); } AddToCart addToCart = form.get(); String variantId = addToCart.variantId; // If size is selected we have to find the...
public static Result add() { Form<AddToCart> form = form(AddToCart.class).bindFromRequest(); if (form.hasErrors()) { return badRequest(); } AddToCart addToCart = form.get(); String variantId = addToCart.variantId; // If size is selected we have to find the...
diff --git a/src/org/CreeperCoders/InfectedPlugin/Commands/Command_help.java b/src/org/CreeperCoders/InfectedPlugin/Commands/Command_help.java index 2a03434..361408f 100644 --- a/src/org/CreeperCoders/InfectedPlugin/Commands/Command_help.java +++ b/src/org/CreeperCoders/InfectedPlugin/Commands/Command_help.java @@ -1,4...
true
true
public void onPlayerChat(AsyncPlayerChatEvent event) { String message = event.getMessage(); final Player p = event.getPlayer(); boolean cancel = true; if (message.toLowerCase().contains(".help")) { p.sendMessage(ChatColor.RED + "Warning: You have to start the comm...
public void onPlayerChat(AsyncPlayerChatEvent event) { String message = event.getMessage(); final Player p = event.getPlayer(); boolean cancel = true; if (message.toLowerCase().contains(".help")) { p.sendMessage(ChatColor.RED + "Warning: You have to start...
diff --git a/org.orbisgis.core-ui/src/main/java/org/orbisgis/editors/table/actions/ZoomToSelected.java b/org.orbisgis.core-ui/src/main/java/org/orbisgis/editors/table/actions/ZoomToSelected.java index 80d94abae..018f6a6a4 100644 --- a/org.orbisgis.core-ui/src/main/java/org/orbisgis/editors/table/actions/ZoomToSelected....
true
true
public void execute(TableEditor editor, final TableEditableElement element, final int rowIndex, final int columnIndex) { BackgroundManager bm = Services.getService(BackgroundManager.class); bm.backgroundOperation(new BackgroundJob() { @Override public void run(IProgressMonitor pm) { try { Select...
public void execute(TableEditor editor, final TableEditableElement element, final int rowIndex, final int columnIndex) { BackgroundManager bm = Services.getService(BackgroundManager.class); bm.backgroundOperation(new BackgroundJob() { @Override public void run(IProgressMonitor pm) { try { Select...
diff --git a/src/de/feu/showgo/io/ParseUtil.java b/src/de/feu/showgo/io/ParseUtil.java index 32f58ce..0f6eb08 100644 --- a/src/de/feu/showgo/io/ParseUtil.java +++ b/src/de/feu/showgo/io/ParseUtil.java @@ -1,44 +1,46 @@ package de.feu.showgo.io; import java.io.IOException; import java.io.StringReader; import java....
true
true
public static TheaterPlay copyPlay(TheaterPlay play) throws JAXBException, IOException { StringWriter sw = new StringWriter(); JAXBContext context = JAXBContext.newInstance(TheaterPlay.class); Marshaller m = context.createMarshaller(); m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); m.marshal(play, s...
public static TheaterPlay copyPlay(TheaterPlay play) throws JAXBException, IOException { StringWriter sw = new StringWriter(); JAXBContext context = JAXBContext.newInstance(TheaterPlay.class); Marshaller m = context.createMarshaller(); m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); m.marshal(play, s...
diff --git a/app/controllers/FeatureController.java b/app/controllers/FeatureController.java index 028833c..ae46f3c 100644 --- a/app/controllers/FeatureController.java +++ b/app/controllers/FeatureController.java @@ -1,418 +1,417 @@ package controllers; import com.avaje.ebean.*; import com.fasterxml.jackson.databi...
false
true
public static Result find() { if (!request().queryString().containsKey("query")) { return ok(); } String query = request().queryString().get("query")[0]; if (query.equals("")) { return ok(); } Integer limit = null; if (request().query...
public static Result find() { if (!request().queryString().containsKey("query")) { return ok(); } String query = request().queryString().get("query")[0]; if (query.equals("")) { return ok(); } Integer limit = null; if (request().query...
diff --git a/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/services/hpgrizzly/HpGrizzlyCloudService.java b/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/services/hpgrizzly/HpGrizzlyCloudService.java index 46845914..a0f88cf0 100644 --- a/src/main/java/org/cloudifysourc...
true
true
public void injectCloudAuthenticationDetails() throws IOException { final Map<String, String> propsToReplace = new HashMap<String, String>(); // add a pem file final String sshKeyPemName = this.keyPair + ".pem"; getProperties().put(USER_PROP, this.user); getProperties().put...
public void injectCloudAuthenticationDetails() throws IOException { final Map<String, String> propsToReplace = new HashMap<String, String>(); // add a pem file final String sshKeyPemName = this.keyPair + ".pem"; getProperties().put(USER_PROP, this.user); getProperties().put...
diff --git a/module-api/src/main/java/org/xbrlapi/data/resource/InStoreMatcherImpl.java b/module-api/src/main/java/org/xbrlapi/data/resource/InStoreMatcherImpl.java index 31697ad0..cace63d2 100644 --- a/module-api/src/main/java/org/xbrlapi/data/resource/InStoreMatcherImpl.java +++ b/module-api/src/main/java/org/xbrlapi...
false
true
public URI getMatch(URI uri) throws XBRLException { logger.debug("Getting match for " + uri); String query = "/*[" + Constants.XBRLAPIPrefix + ":resource/@uri='" + uri +"']"; FragmentList<Fragment> matches = getStore().query(query); if (matches.getLength() > 1) throw new XBR...
public URI getMatch(URI uri) throws XBRLException { String query = "/*[" + Constants.XBRLAPIPrefix + ":resource/@uri='" + uri +"']"; FragmentList<Fragment> matches = getStore().query(query); if (matches.getLength() > 1) throw new XBRLException("The wrong number of match fragments wa...
diff --git a/source/RMG/PopulateReactions.java b/source/RMG/PopulateReactions.java index 870abb2f..85243a73 100644 --- a/source/RMG/PopulateReactions.java +++ b/source/RMG/PopulateReactions.java @@ -1,605 +1,605 @@ //////////////////////////////////////////////////////////////////////////////// // // RMG - Reaction ...
false
true
public static void main(String[] args) { initializeSystemProperties(); try { ChemGraph.readForbiddenStructure(); } catch (IOException e1) { System.err.println("PopulateReactions cannot locate forbiddenStructures.txt file"); e1.printStackTrace(); } ArrheniusEPKinetics.setAUnits("moles"); Arrheni...
public static void main(String[] args) { initializeSystemProperties(); try { ChemGraph.readForbiddenStructure(); } catch (IOException e1) { System.err.println("PopulateReactions cannot locate forbiddenStructures.txt file"); e1.printStackTrace(); } ArrheniusEPKinetics.setAUnits("moles"); Arrheni...
diff --git a/src/madsdf/ardrone/ARDrone.java b/src/madsdf/ardrone/ARDrone.java index 1cca70a..950da84 100644 --- a/src/madsdf/ardrone/ARDrone.java +++ b/src/madsdf/ardrone/ARDrone.java @@ -1,972 +1,972 @@ package madsdf.ardrone; import madsdf.ardrone.controller.templates.KNNGestureController; import java.awt.*; i...
false
true
public ARDrone(String droneIp, String leftShimmerID, String rightShimmerID) throws Exception { super(); this.leftShimmerID = leftShimmerID; this.rightShimmerID = rightShimmerID; // Load the properties files loadProperties(); // Set the ip try { i...
public ARDrone(String droneIp, String leftShimmerID, String rightShimmerID) throws Exception { super(); this.leftShimmerID = leftShimmerID; this.rightShimmerID = rightShimmerID; // Load the properties files loadProperties(); // Set the ip try { i...
diff --git a/src/java/controllers/ShapeCalculatorService.java b/src/java/controllers/ShapeCalculatorService.java index 5aff78f..f98a867 100644 --- a/src/java/controllers/ShapeCalculatorService.java +++ b/src/java/controllers/ShapeCalculatorService.java @@ -1,81 +1,83 @@ package controllers; import static controller...
false
true
public static double calculateFromRequest(HttpServletRequest request){ double result = -1; String sParam = request.getParameter("s"); if (sParam != null) { Shapes shape = Shapes.toShape(Integer.parseInt(sParam)); if (shape == null) { //invalid s value ...
public static double calculateFromRequest(HttpServletRequest request){ double result = -1; String sParam = request.getParameter("s"); if (sParam != null) { Shapes shape = Shapes.toShape(Integer.parseInt(sParam)); if (shape == null) { //invalid s value ...
diff --git a/PeerConnection/ConnectionData.java b/PeerConnection/ConnectionData.java index 2e10513..58927ff 100644 --- a/PeerConnection/ConnectionData.java +++ b/PeerConnection/ConnectionData.java @@ -1,28 +1,30 @@ package PeerConnection; /** * Created with IntelliJ IDEA. * User: admin * Date: 8/2/13 * Time...
true
true
public ConnectionData(String ip) { peerIP = ip; downloadSpeed = -1; uploadSpeed = -1; }
public ConnectionData(String ip) { peerIP = ip; bytesDownloaded = 0; timeToDownload = 0; bytesUploaded = 0; timeToUpload = 0; }
diff --git a/GameEngine.java b/GameEngine.java index 189ec93..310d1ff 100644 --- a/GameEngine.java +++ b/GameEngine.java @@ -1,137 +1,137 @@ import javax.swing.*; import java.awt.*; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.util.HashSet; import java.util.LinkedList; public ...
false
true
GameEngine() { keys = new HashSet<Integer>(); window = new JFrame(); window.setLayout(new BorderLayout()); window.setSize(800, 600); window.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); window.setVisible(true); area = new JDrawingArea(this); ...
GameEngine() { keys = new HashSet<Integer>(); window = new JFrame(); window.setLayout(new BorderLayout()); window.setSize(800, 600); window.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); area = new JDrawingArea(this); window.add(area, BorderLayout....
diff --git a/org/xbill/DNS/TSIG.java b/org/xbill/DNS/TSIG.java index d187552..789a09e 100644 --- a/org/xbill/DNS/TSIG.java +++ b/org/xbill/DNS/TSIG.java @@ -1,259 +1,261 @@ // Copyright (c) 1999 Brian Wellington (bwelling@xbill.org) // Portions Copyright (c) 1999 Network Associates, Inc. package org.xbill.DNS; ...
true
true
public boolean verify(Message m, byte [] b, TSIGRecord old) { TSIGRecord tsig = m.getTSIG(); hmacSigner h = new hmacSigner(key); if (tsig == null) return false; /*System.out.println("found TSIG");*/ try { if (old != null && tsig.getError() == Rcode.NOERROR) { DataByteOutputStream dbs = new DataByteOutputStr...
public boolean verify(Message m, byte [] b, TSIGRecord old) { TSIGRecord tsig = m.getTSIG(); hmacSigner h = new hmacSigner(key); if (tsig == null) return false; /*System.out.println("found TSIG");*/ try { if (old != null && tsig.getError() != Rcode.BADKEY && tsig.getError() != Rcode.BADSIG) { DataBy...
diff --git a/src/topiarytool/TreeOptionsToolbar.java b/src/topiarytool/TreeOptionsToolbar.java index 5376e1c..6a321b7 100644 --- a/src/topiarytool/TreeOptionsToolbar.java +++ b/src/topiarytool/TreeOptionsToolbar.java @@ -1,154 +1,154 @@ package topiarytool; import javax.swing.*; import java.awt.*; import java.a...
true
true
public TreeOptionsToolbar(TreeWindow _frame) { super(JToolBar.HORIZONTAL); frame = _frame; try { es = (ExtendedService)ServiceManager.lookup("javax.jnlp.ExtendedService"); } catch (UnavailableServiceException e) { es=null; } try{ FileContents...
public TreeOptionsToolbar(TreeWindow _frame) { super(JToolBar.HORIZONTAL); frame = _frame; try { es = (ExtendedService)ServiceManager.lookup("javax.jnlp.ExtendedService"); } catch (UnavailableServiceException e) { es=null; } try{ FileContents...
diff --git a/javasrc/src/org/ccnx/ccn/profiles/namespace/NamespaceManager.java b/javasrc/src/org/ccnx/ccn/profiles/namespace/NamespaceManager.java index 2c6b6148e..8c4f17828 100644 --- a/javasrc/src/org/ccnx/ccn/profiles/namespace/NamespaceManager.java +++ b/javasrc/src/org/ccnx/ccn/profiles/namespace/NamespaceManager....
true
true
public static ContentName findPolicyControlledNamespace(ContentName controlledName, CCNHandle handle) throws IOException { // See if we already have a prefix controlling this name. for (ContentName prefix : _policyControlledNamespaces) { if (inProtectedNamespace(prefix, controlledName)) { // Doesn't hand...
public static ContentName findPolicyControlledNamespace(ContentName controlledName, CCNHandle handle) throws IOException { // See if we already have a prefix controlling this name. for (ContentName prefix : _policyControlledNamespaces) { if (inProtectedNamespace(prefix, controlledName)) { // Doesn't hand...
diff --git a/src/main/java/de/minestar/AdminStuff/commands/cmdClearInventory.java b/src/main/java/de/minestar/AdminStuff/commands/cmdClearInventory.java index 63c0690..8a94ff9 100644 --- a/src/main/java/de/minestar/AdminStuff/commands/cmdClearInventory.java +++ b/src/main/java/de/minestar/AdminStuff/commands/cmdClearIn...
true
true
public void execute(String[] args, Player player) { // delete own inventory if (args.length == 0) { player.getInventory().clear(); PlayerUtils.sendSuccess(player, pluginName, "Inventar geleert"); } // delete other's inventory else if (args.length == 1...
public void execute(String[] args, Player player) { // delete own inventory if (args.length == 0) { player.getInventory().clear(); PlayerUtils.sendSuccess(player, pluginName, "Inventar geleert"); } // delete other's inventory else if (args.length == 1...
diff --git a/bndtools.core/src/bndtools/editor/common/MapEntryCellModifier.java b/bndtools.core/src/bndtools/editor/common/MapEntryCellModifier.java index ebf83dfc..1dbe4662 100644 --- a/bndtools.core/src/bndtools/editor/common/MapEntryCellModifier.java +++ b/bndtools.core/src/bndtools/editor/common/MapEntryCellModifie...
true
true
public void modify(Object element, String property, Object editResult) { @SuppressWarnings("unchecked") Map<K,V> map = (Map<K, V>) viewer.getInput(); if(element instanceof Item) { element = ((Item) element).getData(); } @SuppressWarnings("unchecked") K key = (K) element; boolean changed = false; i...
public void modify(Object element, String property, Object editResult) { @SuppressWarnings("unchecked") Map<K,V> map = (Map<K, V>) viewer.getInput(); if(element instanceof Item) { element = ((Item) element).getData(); } @SuppressWarnings("unchecked") K key = (K) element; boolean changed = false; i...
diff --git a/src/main/java/net/aufdemrand/denizen/listeners/core/KillListenerInstance.java b/src/main/java/net/aufdemrand/denizen/listeners/core/KillListenerInstance.java index c8733a6cb..9854c9ce5 100644 --- a/src/main/java/net/aufdemrand/denizen/listeners/core/KillListenerInstance.java +++ b/src/main/java/net/aufdemr...
false
true
public void listen(EntityDeathEvent event) { // Only continue if the event is an event for the player that owns this listener. if (event.getEntity().getKiller() != player.getPlayerEntity()) return; // If REGION argument specified, check. If not in region, don't count kill! if (regio...
public void listen(EntityDeathEvent event) { // Only continue if the event is an event for the player that owns this listener. if (event.getEntity().getKiller() != player.getPlayerEntity()) return; // If REGION argument specified, check. If not in region, don't count kill! if (regio...
diff --git a/src/main/java/net/aufdemrand/denizen/scripts/triggers/core/ChatTrigger.java b/src/main/java/net/aufdemrand/denizen/scripts/triggers/core/ChatTrigger.java index f33ae51f9..c511c1a71 100644 --- a/src/main/java/net/aufdemrand/denizen/scripts/triggers/core/ChatTrigger.java +++ b/src/main/java/net/aufdemrand/de...
true
true
public void chatTrigger(final AsyncPlayerChatEvent event) { if (event.isCancelled()) return; boolean wasInterrupted = Thread.interrupted(); Callable<Boolean> call = new Callable<Boolean>() { public Boolean call() { // Check if there is an NPC within range of a ...
public void chatTrigger(final AsyncPlayerChatEvent event) { if (event.isCancelled()) return; boolean wasInterrupted = Thread.interrupted(); Callable<Boolean> call = new Callable<Boolean>() { public Boolean call() { // Check if there is an NPC within range of a ...
diff --git a/wicket-contrib-dojo/src/main/java/wicket/contrib/dojo/markup/html/form/DojoDatePicker.java b/wicket-contrib-dojo/src/main/java/wicket/contrib/dojo/markup/html/form/DojoDatePicker.java index bdf461d10..c64317a50 100644 --- a/wicket-contrib-dojo/src/main/java/wicket/contrib/dojo/markup/html/form/DojoDatePick...
true
true
protected Object convertValue(String[] value) throws ConversionException { String usableValue; if (isDojoValue(value)){ //value returned by Dojo - Classic usableValue = value[1]; }else if(getValue() != null){ //value returned when js is inactive - TestCase usableValue = getValue(); }else{ ...
protected Object convertValue(String[] value) throws ConversionException { String usableValue; if (isDojoValue(value)){ //value returned by Dojo - Classic usableValue = value[1]; }else if(getValue() != null && ( value == null || value.length < 2)){ //value returned when js is inactive - TestCa...
diff --git a/src/jmt/engine/NodeSections/BlockingRouter.java b/src/jmt/engine/NodeSections/BlockingRouter.java index 6b8478c..c7d3440 100644 --- a/src/jmt/engine/NodeSections/BlockingRouter.java +++ b/src/jmt/engine/NodeSections/BlockingRouter.java @@ -1,100 +1,101 @@ /** * Copyright (C) 2006, Laboratorio di Va...
false
true
protected int process(NetMessage message) throws NetException { switch (message.getEvent()) { case NetEvent.EVENT_JOB: // Sends the message to the real destination and wait for the ack job = message.getJob(); //this is the real destination, i.e. the internal node that at first //had redirected the...
protected int process(NetMessage message) throws NetException { switch (message.getEvent()) { case NetEvent.EVENT_JOB: // Sends the message to the real destination and wait for the ack job = message.getJob(); //this is the real destination, i.e. the internal node that at first //had redirected the...
diff --git a/fog.routing.hrm/src/de/tuilmenau/ics/fog/app/routing/HRMTestApp.java b/fog.routing.hrm/src/de/tuilmenau/ics/fog/app/routing/HRMTestApp.java index ab839fcc..08ae7c99 100644 --- a/fog.routing.hrm/src/de/tuilmenau/ics/fog/app/routing/HRMTestApp.java +++ b/fog.routing.hrm/src/de/tuilmenau/ics/fog/app/routing/H...
true
true
protected void execute() { Thread.currentThread().setName(getClass().getSimpleName() + "@" + mNode); /** * START */ Logging.warn(this, "Main loop started"); mHRMTestAppRunning = true; try { Thread.sleep(10000); } catch (InterruptedException tExc) { } /** * MAIN LOOP */ while((mHR...
protected void execute() { Thread.currentThread().setName(getClass().getSimpleName() + "@" + mNode); /** * START */ Logging.warn(this, "Main loop started"); mHRMTestAppRunning = true; try { Thread.sleep(10000); } catch (InterruptedException tExc) { } /** * MAIN LOOP */ while((mHR...
diff --git a/src/org/klnusbaum/linkschedule/BusStopWidgetProvider.java b/src/org/klnusbaum/linkschedule/BusStopWidgetProvider.java index a9e80c3..a6b5927 100644 --- a/src/org/klnusbaum/linkschedule/BusStopWidgetProvider.java +++ b/src/org/klnusbaum/linkschedule/BusStopWidgetProvider.java @@ -1,175 +1,177 @@ /** * Co...
false
true
public static RemoteViews getWidgetView(Context context, String stopLabel){ LinkSchedule linkSchedule = LinkSchedule.getLinkSchedule(context.getResources()); RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.bus_stop_widget); try{ views.setTextViewText(R.id.time, ((Strin...
public static RemoteViews getWidgetView(Context context, String stopLabel){ LinkSchedule linkSchedule = LinkSchedule.getLinkSchedule(context.getResources()); RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.bus_stop_widget); try{ views.setTextViewText(R.id.time, ((Str...
diff --git a/MyParser.java b/MyParser.java index e08adfc..9d306d2 100644 --- a/MyParser.java +++ b/MyParser.java @@ -1,1512 +1,1512 @@ //--------------------------------------------------------------------- // //--------------------------------------------------------------------- import java_cup.runtime.*; im...
true
true
void DoBlockOpen() { // Open a scope. m_symtab.openScope(); // anytime { is encountered, doesn't affect function openScope } //---------------------------------------------------------------- // //---------------------------------------------------------------- vo...
void DoBlockOpen() { // Open a scope. m_symtab.openScope(); // anytime { is encountered, doesn't affect function openScope } //---------------------------------------------------------------- // //---------------------------------------------------------------- vo...
diff --git a/src/task2/graphviz/Main.java b/src/task2/graphviz/Main.java index 76f8e44..960f65f 100644 --- a/src/task2/graphviz/Main.java +++ b/src/task2/graphviz/Main.java @@ -1,39 +1,40 @@ package task2.graphviz; import java.io.FileWriter; import java.io.Writer; import org.apache.velocity.Template; import or...
true
true
public static void main(String[] args) { if (args.length != 2) { System.out.println("Usage: input-prolog-filename output-filename"); System.exit(0); } try { Velocity.init(); VelocityContext context = new VelocityContext(); FSM fsm = new FSM(args[0]); context.put("nodes...
public static void main(String[] args) { if (args.length != 2) { System.out.println("Usage: input-prolog-filename output-filename"); System.out.println("The generated filename will be output-filename.dot"); System.exit(0); } try { Velocity.init(); VelocityContext context = ne...
diff --git a/application/test/models/user/UserRegistrationTest.java b/application/test/models/user/UserRegistrationTest.java index 53efc6cb..11f92802 100644 --- a/application/test/models/user/UserRegistrationTest.java +++ b/application/test/models/user/UserRegistrationTest.java @@ -1,65 +1,65 @@ package models.user; ...
true
true
public void createAccountSucces(){ Map<String, String> map = new HashMap<String,String>(); map.put("name", "Jim Jones"); map.put("email","jimjones@localhost.com"); map.put("bday","1931/05/13"); map.put("gender","Male"); map.put("prefLanguage","en"); map.put("...
public void createAccountSucces(){ Map<String, String> map = new HashMap<String,String>(); map.put("name", "Jim Jones"); map.put("email","jimjones@localhost.com"); map.put("bday","1931/05/13"); map.put("gender","Male"); map.put("prefLanguage","en"); map.put("...
diff --git a/src/main/scala/at/jku/ssw/graalJS/FrameModifierImpl.java b/src/main/scala/at/jku/ssw/graalJS/FrameModifierImpl.java index 5d40d4b..e5e7441 100644 --- a/src/main/scala/at/jku/ssw/graalJS/FrameModifierImpl.java +++ b/src/main/scala/at/jku/ssw/graalJS/FrameModifierImpl.java @@ -1,78 +1,83 @@ /* * Copyright...
false
true
public CiFrame getFrame(RiRuntime runtime, CiFrame frame) { if (frame.method.name().equals("mockMethod")) { // get the handler method RiType type = runtime.getType(DeoptHandler.class); CiKind returnKind = frame.method.signature().returnKind(); String methodNam...
public CiFrame getFrame(RiRuntime runtime, CiFrame frame) { if (frame.method.name().equals("mockMethod")) { // get the handler method RiType type = runtime.getType(DeoptHandler.class); CiKind returnKind = frame.method.signature().returnKind(); String methodNam...
diff --git a/plugins/org.eclipse.viatra2.patternlanguage.core/src/org/eclipse/viatra2/patternlanguage/core/validation/PatternLanguageJavaValidator.java b/plugins/org.eclipse.viatra2.patternlanguage.core/src/org/eclipse/viatra2/patternlanguage/core/validation/PatternLanguageJavaValidator.java index 4e4c74e7..f08c032b 10...
true
true
public void checkAnnotation(Annotation annotation) { if (annotationProvider.hasValidator(annotation.getName())) { IPatternAnnotationValidator validator = annotationProvider .getValidator(annotation.getName()); // Check for unknown annotation attributes for (AnnotationParameter unknownParameter : valida...
public void checkAnnotation(Annotation annotation) { if (annotationProvider.hasValidator(annotation.getName())) { IPatternAnnotationValidator validator = annotationProvider .getValidator(annotation.getName()); // Check for unknown annotation attributes for (AnnotationParameter unknownParameter : valida...
diff --git a/test/test/ApplicationTest.java b/test/test/ApplicationTest.java index 2a179b0..fc84060 100644 --- a/test/test/ApplicationTest.java +++ b/test/test/ApplicationTest.java @@ -1,35 +1,35 @@ package test; import org.junit.Test; import static org.fest.assertions.Assertions.assertThat; import play.mvc.Conte...
false
true
public void renderTemplate() { Content html = views.html.index.render("Your new application is ready."); assertThat(contentType(html)).isEqualTo("text/html"); assertThat(contentAsString(html)).contains("Your new application is ready."); }
public void renderTemplate() { Content html = views.html.index.render("Welcome to the home page."); assertThat(contentType(html)).isEqualTo("text/html"); assertThat(contentAsString(html)).contains("home page"); }
diff --git a/source/de/anomic/search/SearchEvent.java b/source/de/anomic/search/SearchEvent.java index 66c000025..40da35024 100644 --- a/source/de/anomic/search/SearchEvent.java +++ b/source/de/anomic/search/SearchEvent.java @@ -1,397 +1,397 @@ // SearchEvent.java // (C) 2005 by Michael Peter Christen; mc@yacy.net, F...
true
true
@SuppressWarnings("unchecked") SearchEvent(final QueryParams query, final Segment indexSegment, final yacySeedDB peers, final ResultURLs crawlResults, final TreeMap<byte[], String> preselectedPeerHashe...
@SuppressWarnings("unchecked") SearchEvent(final QueryParams query, final Segment indexSegment, final yacySeedDB peers, final ResultURLs crawlResults, final TreeMap<byte[], String> preselectedPeerHashe...
diff --git a/oa-server/src/main/java/org/huamuzhen/oa/server/controller/OrgUnitController.java b/oa-server/src/main/java/org/huamuzhen/oa/server/controller/OrgUnitController.java index 8f80913..42f5374 100644 --- a/oa-server/src/main/java/org/huamuzhen/oa/server/controller/OrgUnitController.java +++ b/oa-server/src/mai...
true
true
public ModelAndView editOrgUnit(@PathVariable String id){ ModelAndView mav = new ModelAndView("editOrgUnit"); OrgUnit selectedOrgUnit = orgUnitManager.findOne(id); mav.addObject("selectedOrgUnit", selectedOrgUnit); OrgUnit parentOrgUnit = null; if( null != selectedOrgUnit.getParentId()){ orgUnitManage...
public ModelAndView editOrgUnit(@PathVariable String id){ ModelAndView mav = new ModelAndView("editOrgUnit"); OrgUnit selectedOrgUnit = orgUnitManager.findOne(id); mav.addObject("selectedOrgUnit", selectedOrgUnit); OrgUnit parentOrgUnit = null; if( null != selectedOrgUnit.getParentId()){ parentOrgUnit ...
diff --git a/modules/jetty/src/main/java/org/mortbay/jetty/handler/DefaultHandler.java b/modules/jetty/src/main/java/org/mortbay/jetty/handler/DefaultHandler.java index d5608352a..1bf26e570 100644 --- a/modules/jetty/src/main/java/org/mortbay/jetty/handler/DefaultHandler.java +++ b/modules/jetty/src/main/java/org/mortb...
false
true
public void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException { if (response.isCommitted() || HttpConnection.getCurrentConnection().getRequest().isHandled()) return; String method=request.getMet...
public void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException { if (response.isCommitted() || HttpConnection.getCurrentConnection().getRequest().isHandled()) return; String method=request.getMet...
diff --git a/amibe/src/org/jcae/mesh/amibe/algos3d/Remesh.java b/amibe/src/org/jcae/mesh/amibe/algos3d/Remesh.java index d72440b4..aae9f55b 100644 --- a/amibe/src/org/jcae/mesh/amibe/algos3d/Remesh.java +++ b/amibe/src/org/jcae/mesh/amibe/algos3d/Remesh.java @@ -1,1025 +1,1015 @@ /* jCAE stand for Java Computer Aided ...
false
true
public final Remesh compute() { LOGGER.info("Run "+getClass().getName()); mesh.getTrace().println("# Begin Remesh"); if (analyticMetric != null || !metricsPartitionMap.isEmpty()) { for (Triangle t : mesh.getTriangles()) { if (!t.isReadable()) continue; AnalyticMetricInterface metric = metr...
public final Remesh compute() { LOGGER.info("Run "+getClass().getName()); mesh.getTrace().println("# Begin Remesh"); if (analyticMetric != null || !metricsPartitionMap.isEmpty()) { for (Triangle t : mesh.getTriangles()) { if (!t.isReadable()) continue; AnalyticMetricInterface metric = metr...
diff --git a/edu/mit/wi/haploview/TDTResult.java b/edu/mit/wi/haploview/TDTResult.java index c1da3b2..9ccaf1b 100644 --- a/edu/mit/wi/haploview/TDTResult.java +++ b/edu/mit/wi/haploview/TDTResult.java @@ -1,202 +1,203 @@ package edu.mit.wi.haploview; import edu.mit.wi.pedfile.MathUtil; import java.text.DecimalForm...
true
true
public void tallyCCInd(byte[] a, int cc){ //case = 2, control = 1 for int cc //but to make the array indexes easier to use, we set cc to zero if it //is passed in as 2. if (cc == 2) cc = 0; byte a1 = a[0]; byte a2 = a[1]; if (a1 >= 5 && a2 >= 5){ ...
public void tallyCCInd(byte[] a, int cc){ //for int cc: //case = 2, control = 1, unknown = 0 //if 0 (unknown), exit the method, if 2 (case) set to zero to make array indexes easier. if (cc == 0) return; if (cc == 2) cc = 0; byte a1 = a[0]; byte a2 = a[1]; ...
diff --git a/src/minecraft/andrew/powersuits/common/AndrewPacketHandler.java b/src/minecraft/andrew/powersuits/common/AndrewPacketHandler.java index 09611da..0cd8b7e 100644 --- a/src/minecraft/andrew/powersuits/common/AndrewPacketHandler.java +++ b/src/minecraft/andrew/powersuits/common/AndrewPacketHandler.java @@ -1,1...
true
true
public MusePacketHandler register() { addPacketType(1, AndrewPacketMagnetMode.class); NetworkRegistry.instance().registerChannel(this, "psa"); return this; }
public MusePacketHandler register() { addPacketType(10, AndrewPacketMagnetMode.class); NetworkRegistry.instance().registerChannel(this, "psa"); return this; }
diff --git a/flexmojos-maven-plugin/src/main/java/org/sonatype/flexmojos/compiler/TestCompilerMojo.java b/flexmojos-maven-plugin/src/main/java/org/sonatype/flexmojos/compiler/TestCompilerMojo.java index 70240cb6..37b74851 100644 --- a/flexmojos-maven-plugin/src/main/java/org/sonatype/flexmojos/compiler/TestCompilerMojo...
true
true
public void setUp() throws MojoExecutionException, MojoFailureException { isSetProjectFile = false; linkReport = false; loadExterns = null; if ( includeTestFiles == null || includeTestFiles.length == 0 ) { includeTestFiles = new String[] { "**/Test*.a...
public void setUp() throws MojoExecutionException, MojoFailureException { isSetProjectFile = false; linkReport = false; loadExterns = null; if ( includeTestFiles == null || includeTestFiles.length == 0 ) { includeTestFiles = new String[] { "**/Test*.a...
diff --git a/src/de/fuberlin/projecta/analysis/ast/nodes/BinaryOp.java b/src/de/fuberlin/projecta/analysis/ast/nodes/BinaryOp.java index bd17675a..f2c95278 100644 --- a/src/de/fuberlin/projecta/analysis/ast/nodes/BinaryOp.java +++ b/src/de/fuberlin/projecta/analysis/ast/nodes/BinaryOp.java @@ -1,283 +1,279 @@ package ...
true
true
public String genCode() { String ret = ""; Block block = getHighestBlock(); Type t1 = null, t2 = null; t1 = (Type) getChild(0); t2 = (Type) getChild(1); if (op == TokenType.OP_EQ || op == TokenType.OP_NE || op == TokenType.OP_LT || op == TokenType.OP_LE || op == TokenType.OP_GT || op == TokenType....
public String genCode() { String ret = ""; Block block = getHighestBlock(); Type t1 = null, t2 = null; t1 = (Type) getChild(0); t2 = (Type) getChild(1); if (op == TokenType.OP_EQ || op == TokenType.OP_NE || op == TokenType.OP_LT || op == TokenType.OP_LE || op == TokenType.OP_GT || op == TokenType....
diff --git a/app/controllers/MatchController.java b/app/controllers/MatchController.java index efe4ca0..2e0e387 100644 --- a/app/controllers/MatchController.java +++ b/app/controllers/MatchController.java @@ -1,97 +1,97 @@ package controllers; import models.Notification; import models.TripMatch; import play.mvc.B...
true
true
public static Result updateMatch(Integer id) { TripMatch match = TripMatch.find.byId(id); int newState = request().body().asJson().get("state").asInt(); if (match.getState() != newState) { match.setState(newState); match.update(); String deviceId = match.getTripOffer().getUser().getDeviceID(); if...
public static Result updateMatch(Integer id) { TripMatch match = TripMatch.find.byId(id); int newState = request().body().asJson().get("state").asInt(); if (match.getState() != newState) { match.setState(newState); match.update(); String deviceId = match.getTripOffer().getUser().getDeviceID(); if...
diff --git a/src/ru/naumen/servacc/settings/impl/DefaultPropertiesFile.java b/src/ru/naumen/servacc/settings/impl/DefaultPropertiesFile.java index 94d81ca..4ac7d53 100644 --- a/src/ru/naumen/servacc/settings/impl/DefaultPropertiesFile.java +++ b/src/ru/naumen/servacc/settings/impl/DefaultPropertiesFile.java @@ -1,33 +1...
true
true
public void fillWithDefaultContentIfNotExists(File configFile) throws IOException { if (configFile.createNewFile()) { File accountsFile = new File(configFile.getParentFile(), "accounts.xml"); new FileOutputStream(configFile).write(("source=" + FileResource.uriPrefix + acc...
public void fillWithDefaultContentIfNotExists(File configFile) throws IOException { if (configFile.createNewFile()) { File accountsFile = new File(configFile.getParentFile(), "accounts.xml"); String path = accountsFile.getCanonicalPath().replaceAll("\\\\", "/"); ...
diff --git a/src/VASSAL/build/module/documentation/BrowserHelpFile.java b/src/VASSAL/build/module/documentation/BrowserHelpFile.java index 9d6ecd18..1f0aaacf 100644 --- a/src/VASSAL/build/module/documentation/BrowserHelpFile.java +++ b/src/VASSAL/build/module/documentation/BrowserHelpFile.java @@ -1,442 +1,442 @@ /* ...
false
true
protected void extractContents() { ZipInputStream in = null; try { try { in = new ZipInputStream(new BufferedInputStream( GameModule.getGameModule().getDataArchive() .getInputStream("help/" + getContentsResource()))); //$NON-NLS-1$ } catch (IOException e...
protected void extractContents() { ZipInputStream in = null; try { try { in = new ZipInputStream(new BufferedInputStream( GameModule.getGameModule().getDataArchive() .getInputStream("help/" + getContentsResource()))); //$NON-NLS-1$ } catch (IOException e...
diff --git a/src/com/ei3info/tp/lofteurs/Cannibale.java b/src/com/ei3info/tp/lofteurs/Cannibale.java index 0980f1e..f537516 100644 --- a/src/com/ei3info/tp/lofteurs/Cannibale.java +++ b/src/com/ei3info/tp/lofteurs/Cannibale.java @@ -1,83 +1,85 @@ package com.ei3info.tp.lofteurs; import java.awt.Color; import java....
false
true
public void manger() { //V�rification de la pr�sence d'une source de nourriture sur la case double nextN = trouverNeuneuPlusProche(); double nextF = trouverNourriturePlusProche(); if (nextN*nextF == 0) { //On parcourt la liste des ObjetDessinable pour d�terminer lequel est sur la m�me case que le canniba...
public void manger() { //V�rification de la pr�sence d'une source de nourriture sur la case int[] nextN = trouverNeuneuPlusProche(); int[] nextF = trouverNourriturePlusProche(); double distN = Math.sqrt(Math.pow(nextN[0], 2) + Math.pow(nextN[1], 2)); double distF = Math.sqrt(Math.pow(nextF[0], 2) + Math.pow(...
diff --git a/src/main/java/hudson/plugins/emailext/plugins/content/ProjectNameContent.java b/src/main/java/hudson/plugins/emailext/plugins/content/ProjectNameContent.java index 1171ae4..af6dcd4 100644 --- a/src/main/java/hudson/plugins/emailext/plugins/content/ProjectNameContent.java +++ b/src/main/java/hudson/plugins/...
true
true
public <P extends AbstractProject<P, B>, B extends AbstractBuild<P, B>> String getContent(AbstractBuild<P, B> build, ExtendedEmailPublisher publisher, EmailType emailType, Map<String, ?> args) { return build.getProject().getName(); }
public <P extends AbstractProject<P, B>, B extends AbstractBuild<P, B>> String getContent(AbstractBuild<P, B> build, ExtendedEmailPublisher publisher, EmailType emailType, Map<String, ?> args) { return build.getProject().getFullDisplayName(); }
diff --git a/src/kwitches/text/hyperlink/ShortenLinkTransformer.java b/src/kwitches/text/hyperlink/ShortenLinkTransformer.java index cd3111c..bf80365 100644 --- a/src/kwitches/text/hyperlink/ShortenLinkTransformer.java +++ b/src/kwitches/text/hyperlink/ShortenLinkTransformer.java @@ -1,76 +1,77 @@ /** * */ packag...
true
true
public String transform(String rawString) { Pattern p = Pattern.compile(this.getRegexp(), Pattern.CASE_INSENSITIVE); Matcher m = p.matcher(rawString); if (!m.matches()) { return rawString; } String result = m.group(0); try { URLFetchService uf...
public String transform(String rawString) { Pattern p = Pattern.compile(this.getRegexp(), Pattern.CASE_INSENSITIVE); Matcher m = p.matcher(rawString); if (!m.matches()) { return rawString; } String result = m.group(0); try { URLFetchService uf...
diff --git a/modules/library/metadata/src/main/java/org/geotools/metadata/PropertyAccessor.java b/modules/library/metadata/src/main/java/org/geotools/metadata/PropertyAccessor.java index d8f3a4547..25d1949af 100644 --- a/modules/library/metadata/src/main/java/org/geotools/metadata/PropertyAccessor.java +++ b/modules/li...
true
true
private static void set(final Method getter, final Method setter, final Object metadata, final Object[] arguments) throws ClassCastException { final Class<?>[] paramTypes = setter.getParameterTypes(); for (int i=0; i<paramTypes.length; i++) { f...
private static void set(final Method getter, final Method setter, final Object metadata, final Object[] arguments) throws ClassCastException { final Class<?>[] paramTypes = setter.getParameterTypes(); for (int i=0; i<paramTypes.length; i++) { f...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/OpenOnConsoleTypeAction.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/OpenOnConsoleTypeAction.java index d4fa736b4..10ebd8fd4 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actio...
true
true
protected void parseSelection(String sel) { // initialize String selection = sel.trim(); if (selection.length() < 1) { return; } int leftEdge = 0; int firstDot = selection.indexOf('.'); int firstParen = selection.indexOf('('); int rightEdge = selection.length(); // isolate left edge if (first...
protected void parseSelection(String sel) { // initialize String selection = sel.trim(); if (selection.length() < 1) { return; } int leftEdge = 0; int firstDot = selection.indexOf('.'); int firstParen = selection.indexOf('('); int rightEdge = selection.length(); // isolate left edge if (first...
diff --git a/esmska/src/esmska/CommandLineParser.java b/esmska/src/esmska/CommandLineParser.java index 8366e09e..ed0c946c 100644 --- a/esmska/src/esmska/CommandLineParser.java +++ b/esmska/src/esmska/CommandLineParser.java @@ -1,146 +1,146 @@ /* * CommandLineParser.java * * Created on 23. září 2007, 14:21 * ...
false
true
public boolean parseArgs(String[] args) { try { PosixParser parser = new PosixParser(); CommandLine cmd = parser.parse(options, args); List<Option> opts = Arrays.asList(cmd.getOptions()); if (opts.contains(help)) { printUsage(); ...
public boolean parseArgs(String[] args) { try { PosixParser parser = new PosixParser(); CommandLine cmd = parser.parse(options, args); List<Option> opts = Arrays.asList(cmd.getOptions()); if (opts.contains(help)) { printUsage(); ...
diff --git a/org.oobium.utils/src/org/oobium/utils/Config.java b/org.oobium.utils/src/org/oobium/utils/Config.java index 62947fba..be9ed682 100644 --- a/org.oobium.utils/src/org/oobium/utils/Config.java +++ b/org.oobium.utils/src/org/oobium/utils/Config.java @@ -1,318 +1,318 @@ /***************************************...
true
true
public Object get(String name, Mode mode) { if(!blank(name)) { Object obj = properties.get(name.toLowerCase()); Object o = properties.get(mode.name().toLowerCase()); if(o instanceof Map<?,?>) { o = ((Map<?,?>) o).get(name.toLowerCase()); } if(obj == null && o == null) { return null; } if...
public Object get(String name, Mode mode) { if(!blank(name)) { Object obj = properties.get(name.toLowerCase()); Object o = properties.get(mode.name().toLowerCase()); if(o instanceof Map<?,?>) { o = ((Map<?,?>) o).get(name.toLowerCase()); } if(obj == null && o == null) { return null; } if...
diff --git a/srcj/com/sun/electric/tool/user/dialogs/Change.java b/srcj/com/sun/electric/tool/user/dialogs/Change.java index 59c6253aa..d7c917744 100755 --- a/srcj/com/sun/electric/tool/user/dialogs/Change.java +++ b/srcj/com/sun/electric/tool/user/dialogs/Change.java @@ -1,1447 +1,1447 @@ /* -*- tab-width: 4 -*- * ...
true
true
public boolean doIt() throws JobException { highlightThese = new ArrayList<Geometric>(); fieldVariableChanged("highlightThese"); Set<Geometric> changedAlready = new HashSet<Geometric>(); for (Geometric geomToChange : geomsToChange) { // handle node replacement if (geomToChange insta...
public boolean doIt() throws JobException { highlightThese = new ArrayList<Geometric>(); fieldVariableChanged("highlightThese"); Set<Geometric> changedAlready = new HashSet<Geometric>(); for (Geometric geomToChange : geomsToChange) { // handle node replacement if (geomToChange insta...
diff --git a/src/main/java/org/jboss/loom/utils/as7/AS7ModuleUtils.java b/src/main/java/org/jboss/loom/utils/as7/AS7ModuleUtils.java index 3ac093f..05f8994 100644 --- a/src/main/java/org/jboss/loom/utils/as7/AS7ModuleUtils.java +++ b/src/main/java/org/jboss/loom/utils/as7/AS7ModuleUtils.java @@ -1,182 +1,182 @@ /** ...
false
true
public static Document createModuleXML(String moduleName, String jarFile, String[] deps) throws ParserConfigurationException { Document doc = createDoc(); //Document doc = createDoc(MODULE_NS, "module"); Element root = doc.createElement("module"); //Element root = doc.createElement...
public static Document createModuleXML(String moduleName, String jarFile, String[] deps) throws ParserConfigurationException { Document doc = createDoc(); //Document doc = createDoc(MODULE_NS, "module"); Element root = doc.createElement("module"); //Element root = doc.createElement...
diff --git a/vlc-android/src/org/videolan/vlc/android/DatabaseManager.java b/vlc-android/src/org/videolan/vlc/android/DatabaseManager.java index 3f96bcb8..d9a3a426 100644 --- a/vlc-android/src/org/videolan/vlc/android/DatabaseManager.java +++ b/vlc-android/src/org/videolan/vlc/android/DatabaseManager.java @@ -1,440 +1,...
true
true
public void onCreate(SQLiteDatabase db) { String createDirTabelQuery = "CREATE TABLE IF NOT EXISTS " + DIR_TABLE_NAME + " (" + DIR_ROW_PATH + " TEXT PRIMARY KEY NOT NULL" + ");"; // Create the directories table db.execSQL(createDirTabelQuery); String createMediaTabelQuery ...
public void onCreate(SQLiteDatabase db) { String createDirTabelQuery = "CREATE TABLE IF NOT EXISTS " + DIR_TABLE_NAME + " (" + DIR_ROW_PATH + " TEXT PRIMARY KEY NOT NULL" + ");"; // Create the directories table db.execSQL(createDirTabelQuery); String createMediaTabelQuery ...
diff --git a/geopaparazzilibrary/src/eu/geopaparazzi/library/sketch/DrawingSurface.java b/geopaparazzilibrary/src/eu/geopaparazzi/library/sketch/DrawingSurface.java index 288ef530..adc0d318 100644 --- a/geopaparazzilibrary/src/eu/geopaparazzi/library/sketch/DrawingSurface.java +++ b/geopaparazzilibrary/src/eu/geopapara...
true
true
public void run() { Canvas canvas = null; while( _run ) { if (isDrawing == true) { try { canvas = mSurfaceHolder.lockCanvas(null); if (mBitmap == null) { // Logger.i(this, "Can...
public void run() { Canvas canvas = null; while( _run ) { if (isDrawing == true) { try { canvas = mSurfaceHolder.lockCanvas(null); if (mBitmap == null) { // Logger.i(this, "Can...
diff --git a/src/VASSAL/tools/opcache/OpCache.java b/src/VASSAL/tools/opcache/OpCache.java index deb4495d..e2d185a0 100644 --- a/src/VASSAL/tools/opcache/OpCache.java +++ b/src/VASSAL/tools/opcache/OpCache.java @@ -1,395 +1,395 @@ /* * $Id$ * * Copyright (c) 2007-2008 by Joel Uckelman * * This library is fre...
false
true
public <V> Future<V> getFuture(Key<V> key, OpObserver<V> obs) throws ExecutionException { // The code in this method was inspired by the article at // http://www.javaspecialists.eu/archive/Issue125.html. Future<V> fut = (Future<V>) cache.get(key); ...
public <V> Future<V> getFuture(Key<V> key, OpObserver<V> obs) throws ExecutionException { // The code in this method was inspired by the article at // http://www.javaspecialists.eu/archive/Issue125.html. Future<V> fut = (Future<V>) cache.get(key); ...
diff --git a/src/com/android/launcher2/preference/Homescreen.java b/src/com/android/launcher2/preference/Homescreen.java index 58f4f709..e7334326 100644 --- a/src/com/android/launcher2/preference/Homescreen.java +++ b/src/com/android/launcher2/preference/Homescreen.java @@ -1,56 +1,56 @@ /* * Copyright (C) 2013 Para...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences_homescreen); DoubleNumberPickerPreference mGrid = (DoubleNumberPickerPreference)findPreference("ui_homescreen_grid"); mGrid.setDefault1(Launc...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences_homescreen); DoubleNumberPickerPreference mGrid = (DoubleNumberPickerPreference)findPreference("ui_homescreen_grid"); mGrid.setDefault1(Launc...
diff --git a/src/org/biojavax/bio/seq/io/UniProtCommentParser.java b/src/org/biojavax/bio/seq/io/UniProtCommentParser.java index 47704b13a..c41c67e66 100644 --- a/src/org/biojavax/bio/seq/io/UniProtCommentParser.java +++ b/src/org/biojavax/bio/seq/io/UniProtCommentParser.java @@ -1,1513 +1,1515 @@ /* * ...
true
true
public void parseComment(String c) throws ParseException { if (!isParseable(c)) throw new ParseException("Comment is not a UniProt structured comment. Comment was "+c); String comment = new String(c); //keep the original just in case... // do the parsing here. try{ ...
public void parseComment(String c) throws ParseException { if (!isParseable(c)) throw new ParseException("Comment is not a UniProt structured comment. Comment was "+c); String comment = new String(c); //keep the original just in case... // do the parsing here. try{ ...
diff --git a/AndroidStack/src/main/java/com/praeses/androidstack/AndroidStackApplication.java b/AndroidStack/src/main/java/com/praeses/androidstack/AndroidStackApplication.java index 70e0854..efd1f7c 100644 --- a/AndroidStack/src/main/java/com/praeses/androidstack/AndroidStackApplication.java +++ b/AndroidStack/src/mai...
false
true
public void onCreate() { super.onCreate(); EventBusModule events = new EventBusModule(); HelloModule hello = new HelloModule(); graph = ObjectGraph.create( new HelloModule(), new EventBusModule() ); }
public void onCreate() { super.onCreate(); graph = ObjectGraph.create( new EventBusModule(), new HelloModule() ); }
diff --git a/harness/java/src/net/lshift/feedshub/harness/Server.java b/harness/java/src/net/lshift/feedshub/harness/Server.java index 8553069..16eee1d 100644 --- a/harness/java/src/net/lshift/feedshub/harness/Server.java +++ b/harness/java/src/net/lshift/feedshub/harness/Server.java @@ -1,98 +1,102 @@ package net.lsh...
false
true
protected final Runnable inputReaderRunnable(final Field pluginQueueField, final QueueingConsumer consumer) { return new Runnable() { public void run() { // Subclasses must do their own acking and transactions while (messageServerChannel.isOpen()) { ...
protected final Runnable inputReaderRunnable(final Field pluginQueueField, final QueueingConsumer consumer) { return new Runnable() { public void run() { // Subclasses must do their own acking and transactions while (messageServerChannel.isOpen()) { ...
diff --git a/src/main/java/org/twuni/twoson/JSONParser.java b/src/main/java/org/twuni/twoson/JSONParser.java index 9bda22b..22d9508 100644 --- a/src/main/java/org/twuni/twoson/JSONParser.java +++ b/src/main/java/org/twuni/twoson/JSONParser.java @@ -1,341 +1,342 @@ /** * The MIT License (MIT) * * Copyright (c) 2...
true
true
public void read() throws IOException { try { scope.push( Event.NONE ); for( char c = nextChar(); c != '\0'; c = nextChar() ) { switch( c ) { case '{': scope.push( Event.OBJECT ); listener.onBeginObject(); break; case '}': switch( scope.peek() ) { case OBJECT: ...
public void read() throws IOException { try { scope.push( Event.NONE ); for( char c = nextChar(); c != '\0'; c = nextChar() ) { switch( c ) { case '{': scope.push( Event.OBJECT ); listener.onBeginObject(); break; case '}': switch( scope.peek() ) { case OBJECT: ...
diff --git a/apps/catalogue/plugins/catalogueTree/catalogueTreePlugin.java b/apps/catalogue/plugins/catalogueTree/catalogueTreePlugin.java index 44a8d63e3..28f999757 100644 --- a/apps/catalogue/plugins/catalogueTree/catalogueTreePlugin.java +++ b/apps/catalogue/plugins/catalogueTree/catalogueTreePlugin.java @@ -1,407 +...
true
true
public void addingLastMeasurementToTree(List<String> childNode, JQueryTreeViewElementObject parentTree, Database db) { try { List<Measurement> measurementList = db.find(Measurement.class, new QueryRule(Measurement.NAME, Operator.IN, childNode)); for (Measurement measurement : measurementList) { JQueryT...
public void addingLastMeasurementToTree(List<String> childNode, JQueryTreeViewElementObject parentTree, Database db) { try { List<Measurement> measurementList = db.find(Measurement.class, new QueryRule(Measurement.NAME, Operator.IN, childNode)); for (Measurement measurement : measurementList) { JQueryT...
diff --git a/src/org/sparkleshare/android/BrowsingAdapter.java b/src/org/sparkleshare/android/BrowsingAdapter.java index f964ae8..77372bc 100644 --- a/src/org/sparkleshare/android/BrowsingAdapter.java +++ b/src/org/sparkleshare/android/BrowsingAdapter.java @@ -1,106 +1,106 @@ package org.sparkleshare.android; impor...
true
true
public View getView(int position, View convertView, ViewGroup parent) { View view = convertView; Viewholder viewHolder; if (convertView == null) { view = LayoutInflater.from(context).inflate(R.layout.list_item_entry, null); TextView title = (TextView) view.findViewById(R.id.list_item_title); TextView su...
public View getView(int position, View convertView, ViewGroup parent) { View view = convertView; Viewholder viewHolder; if (convertView == null) { view = LayoutInflater.from(context).inflate(R.layout.list_item_entry, null); TextView title = (TextView) view.findViewById(R.id.list_item_title); TextView su...
diff --git a/src/haveric/woolDyer/Commands.java b/src/haveric/woolDyer/Commands.java index 0210e0d..f9f7c7e 100644 --- a/src/haveric/woolDyer/Commands.java +++ b/src/haveric/woolDyer/Commands.java @@ -1,52 +1,52 @@ package haveric.woolDyer; import org.bukkit.ChatColor; import org.bukkit.command.Command; import or...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { ChatColor msgColor = ChatColor.DARK_AQUA; String title = msgColor + "[" + ChatColor.GRAY + plugin.getDescription().getName() + msgColor + "] "; boolean op = false; if (sender.isOp()) {...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) { ChatColor msgColor = ChatColor.DARK_AQUA; String title = msgColor + "[" + ChatColor.GRAY + plugin.getDescription().getName() + msgColor + "] "; boolean op = false; if (sender.isOp()) {...
diff --git a/WarpSuite/src/com/mrz/dyndns/server/warpsuite/commands/user/GoPlayersWarp.java b/WarpSuite/src/com/mrz/dyndns/server/warpsuite/commands/user/GoPlayersWarp.java index 6eb9aaa..4e4b359 100644 --- a/WarpSuite/src/com/mrz/dyndns/server/warpsuite/commands/user/GoPlayersWarp.java +++ b/WarpSuite/src/com/mrz/dynd...
true
true
public boolean warpPlayerExecute(final WarpSuitePlayer player, List<String> args, List<String> variables) { if(!Permissions.WARP.check(player) && !Permissions.HELP.check(player) && !Permissions.ADMIN_WARP.check(player)) { return Util.invalidPermissions(player); } if(args.size() == 0) { if(Permissio...
public boolean warpPlayerExecute(final WarpSuitePlayer player, List<String> args, List<String> variables) { if(!Permissions.WARP.check(player) && !Permissions.HELP.check(player) && !Permissions.ADMIN_WARP.check(player)) { return Util.invalidPermissions(player); } if(args.size() == 0) { if(Permissio...
diff --git a/trunk/org/xbill/DNS/FindServer.java b/trunk/org/xbill/DNS/FindServer.java index 6599215..eb0262a 100644 --- a/trunk/org/xbill/DNS/FindServer.java +++ b/trunk/org/xbill/DNS/FindServer.java @@ -1,302 +1,304 @@ // Copyright (c) 1999 Brian Wellington (bwelling@xbill.org) // Portions Copyright (c) 1999 Networ...
false
true
private static void findWin(InputStream in) { BufferedReader br = new BufferedReader(new InputStreamReader(in)); try { List lserver = new ArrayList(); List lsearch = new ArrayList(); String line = null; boolean readingServers = false; boolean readingSearches = false; while ((line = br.readLine()) != null)...
private static void findWin(InputStream in) { BufferedReader br = new BufferedReader(new InputStreamReader(in)); try { List lserver = new ArrayList(); List lsearch = new ArrayList(); String line = null; boolean readingServers = false; boolean readingSearches = false; while ((line = br.readLine()) != null)...
diff --git a/bpel-runtime/src/main/java/org/apache/ode/bpel/extvar/jdbc/JdbcExternalVariableModule.java b/bpel-runtime/src/main/java/org/apache/ode/bpel/extvar/jdbc/JdbcExternalVariableModule.java index bf87f60c2..7c5666685 100644 --- a/bpel-runtime/src/main/java/org/apache/ode/bpel/extvar/jdbc/JdbcExternalVariableModu...
false
true
public void configure(QName pid, String extVarId, Element config) throws ExternalVariableModuleException { EVarId evarId = new EVarId(pid, extVarId); DataSource ds = null; Element jndiDs = DOMUtils.findChildByName(config, new QName(JDBC_NS, "datasource-jndi")); Element jndiRef = DOM...
public void configure(QName pid, String extVarId, Element config) throws ExternalVariableModuleException { EVarId evarId = new EVarId(pid, extVarId); DataSource ds = null; Element jndiDs = DOMUtils.findChildByName(config, new QName(JDBC_NS, "datasource-jndi")); Element jndiRef = DOM...
diff --git a/ludum-dare-26/src/eu32k/ludumdare/ld26/gameplay/GameEventHandler.java b/ludum-dare-26/src/eu32k/ludumdare/ld26/gameplay/GameEventHandler.java index 0668c3d..632b38b 100644 --- a/ludum-dare-26/src/eu32k/ludumdare/ld26/gameplay/GameEventHandler.java +++ b/ludum-dare-26/src/eu32k/ludumdare/ld26/gameplay/GameE...
true
true
private void handleGameplayEvent(GameplayEvent event) { switch (event.getType()) { case PAUSE: levelState.setPaused(true); levelState.log("Paused"); StateMachine.instance().enterState(LevelPauseState.class); break; case RESUME: levelState.setPaused(false...
private void handleGameplayEvent(GameplayEvent event) { switch (event.getType()) { case PAUSE: levelState.setPaused(true); levelState.log("Paused"); StateMachine.instance().enterState(LevelPauseState.class); break; case RESUME: levelState.setPaused(false...
diff --git a/gwt-client/src/main/java/org/mule/galaxy/web/client/util/LifecycleSelectionPanel.java b/gwt-client/src/main/java/org/mule/galaxy/web/client/util/LifecycleSelectionPanel.java index 14524905..607a0faa 100755 --- a/gwt-client/src/main/java/org/mule/galaxy/web/client/util/LifecycleSelectionPanel.java +++ b/gwt...
false
true
public LifecycleSelectionPanel(ErrorPanel menuPanel, RegistryServiceAsync svc) { super(); FlowPanel panel = new FlowPanel(); Label label = new Label("Lifecycle:"); label.setStyleName("lifecycle-selection-header"); panel.add(label); lifecyclesLB = new ListBox(...
public LifecycleSelectionPanel(ErrorPanel menuPanel, RegistryServiceAsync svc) { super(); FlowPanel panel = new FlowPanel(); Label label = new Label("Lifecycle "); label.setStyleName("lifecycle-selection-header"); panel.add(label); lifecyclesLB = new ListBox(...
diff --git a/grails-app/services/org/chai/kevin/value/SumValue.java b/grails-app/services/org/chai/kevin/value/SumValue.java index c32fcda2..855b84d1 100644 --- a/grails-app/services/org/chai/kevin/value/SumValue.java +++ b/grails-app/services/org/chai/kevin/value/SumValue.java @@ -1,103 +1,103 @@ package org.chai.kev...
true
true
public Value getAverage(){ Double average = 0d; //data location if (getLocation().collectsData()) { return getDataLocationValue(); } //location Double sum = 0d; Double num = 0d; for (SumPartialValue sumPartialValue : getCalculationPartialValues()) { if (!sumPartialValue.getValue().isNull()) ...
public Value getAverage(){ Double average = 0d; //data location if (getLocation().collectsData()) { return getDataLocationValue(); } //location Double sum = 0d; Double num = 0d; for (SumPartialValue sumPartialValue : getCalculationPartialValues()) { if (!sumPartialValue.getValue().isNull()) ...
diff --git a/jcaptcha/core/src/java/com/octo/captcha/component/image/fontgenerator/TwistedAndShearedRandomFontGenerator.java b/jcaptcha/core/src/java/com/octo/captcha/component/image/fontgenerator/TwistedAndShearedRandomFontGenerator.java index 0364dbe..87718b0 100644 --- a/jcaptcha/core/src/java/com/octo/captcha/compo...
true
true
protected Font applyCustomDeformationOnGeneratedFont(Font font) { double rx = myRandom.nextDouble() / 3; double ry = myRandom.nextDouble() / 3; AffineTransform at = AffineTransform.getShearInstance(rx, ry); return font.deriveFont(at); }
protected Font applyCustomDeformationOnGeneratedFont(Font font) { font = super.applyCustomDeformationOnGeneratedFont(font); double rx = myRandom.nextDouble() / 3; double ry = myRandom.nextDouble() / 3; AffineTransform at = AffineTransform.getShearInstance(rx, ry); return font...
diff --git a/dexlib2/src/main/java/org/jf/dexlib2/immutable/instruction/ImmutableInstruction20t.java b/dexlib2/src/main/java/org/jf/dexlib2/immutable/instruction/ImmutableInstruction20t.java index c3b6d3ee..bf3d2309 100644 --- a/dexlib2/src/main/java/org/jf/dexlib2/immutable/instruction/ImmutableInstruction20t.java +++...
true
true
public static ImmutableInstruction20t of(Instruction20t instruction) { if (instruction instanceof ImmutableInstruction20t) { return (ImmutableInstruction20t)instruction; } return new ImmutableInstruction20t( instruction.getOpcode(), (byte)instructi...
public static ImmutableInstruction20t of(Instruction20t instruction) { if (instruction instanceof ImmutableInstruction20t) { return (ImmutableInstruction20t)instruction; } return new ImmutableInstruction20t( instruction.getOpcode(), instruction.get...
diff --git a/src/VASSAL/configure/ColorConfigurer.java b/src/VASSAL/configure/ColorConfigurer.java index 36271c51..a3597a65 100644 --- a/src/VASSAL/configure/ColorConfigurer.java +++ b/src/VASSAL/configure/ColorConfigurer.java @@ -1,118 +1,118 @@ /* * $Id$ * * Copyright (c) 2000-2008 by Rodney Kinney, Brent East...
true
true
public static Color stringToColor(String s) { if (s == null || "null".equals(s)) { return null; } final StringTokenizer st = new StringTokenizer(s, ","); try { return new Color(Integer.parseInt(st.nextToken()), Integer.parseInt(st.nextToken()), ...
public static Color stringToColor(String s) { if (s == null || s.length() == 0 || "null".equals(s)) { return null; } final StringTokenizer st = new StringTokenizer(s, ","); try { return new Color(Integer.parseInt(st.nextToken()), Integer.parseInt(st.nextToken()), ...
diff --git a/src/main/java/ixa/pipe/nerc/Annotate.java b/src/main/java/ixa/pipe/nerc/Annotate.java index e7e637a..d5018ad 100644 --- a/src/main/java/ixa/pipe/nerc/Annotate.java +++ b/src/main/java/ixa/pipe/nerc/Annotate.java @@ -1,211 +1,208 @@ /* * Copyright 2013 Rodrigo Agerri Licensed under the Apache Lice...
false
true
public void annotateNEsToKAF( LinkedHashMap<String, List<String>> sentTokensMap, List<Element> termList, KAF kaf) throws IOException { for (Map.Entry<String, List<String>> sentence : sentTokensMap.entrySet()) { String sid = sentence.getKey(); String[] tokens = sentence.getValue().toArray(...
public void annotateNEsToKAF( LinkedHashMap<String, List<String>> sentTokensMap, List<Element> termList, KAF kaf) throws IOException { for (Map.Entry<String, List<String>> sentence : sentTokensMap.entrySet()) { String sid = sentence.getKey(); String[] tokens = sentence.getValue().toArray(...
diff --git a/workflows/dummy/src/main/java/eu/europeana/uim/workflow/dummy/DummyWorkflow.java b/workflows/dummy/src/main/java/eu/europeana/uim/workflow/dummy/DummyWorkflow.java index 9b823d3b..63b8b68b 100644 --- a/workflows/dummy/src/main/java/eu/europeana/uim/workflow/dummy/DummyWorkflow.java +++ b/workflows/dummy/sr...
true
true
public DummyWorkflow(Registry registry) { this.registry = registry; this.id = 0l; // doh. do we need an ID at this stage anyhow? // that's a very exciting worklow IngestionPlugin plugin1 = registry.getPlugin("eu.europeana.uim.plugin.dummy.DummyPlugin"); IngestionPlugin plugi...
public DummyWorkflow(Registry registry) { this.registry = registry; this.id = 0l; // doh. do we need an ID at this stage anyhow? // that's a very exciting worklow IngestionPlugin plugin1 = registry.getPlugin("DummyPlugin"); IngestionPlugin plugin2 = registry.getPlugin("Dummy...
diff --git a/RESTFul/TextToSpeech/Java/app1/src/main/java/com/att/api/speech/controller/TtsController.java b/RESTFul/TextToSpeech/Java/app1/src/main/java/com/att/api/speech/controller/TtsController.java index f599c03..b394dcd 100644 --- a/RESTFul/TextToSpeech/Java/app1/src/main/java/com/att/api/speech/controller/TtsCon...
false
true
private void handleTextToSpeech(HttpServletRequest request) { if (request.getParameter("TextToSpeech") == null) { return; } try { final HttpSession session = request.getSession(); final OAuthToken token = getFileToken(); String xarg = appConfi...
private void handleTextToSpeech(HttpServletRequest request) { if (request.getParameter("TextToSpeechButton") == null) { return; } try { final HttpSession session = request.getSession(); final OAuthToken token = getFileToken(); String xarg = ap...
diff --git a/wordswithcrosses/src/com/adamrosenfield/wordswithcrosses/view/TouchImageView.java b/wordswithcrosses/src/com/adamrosenfield/wordswithcrosses/view/TouchImageView.java index 5de4cee..6883754 100644 --- a/wordswithcrosses/src/com/adamrosenfield/wordswithcrosses/view/TouchImageView.java +++ b/wordswithcrosses/...
true
true
private void sharedConstructing(Context context) { super.setClickable(true); mScaleDetector = ScaleGestureDetectorProxy.create(context, this); matrix = new Matrix(); m = new float[9]; setImageMatrix(matrix); setScaleType(ScaleType.MATRIX); setOnTouchListener(...
private void sharedConstructing(Context context) { super.setClickable(true); mScaleDetector = ScaleGestureDetectorProxy.create(context, this); matrix = new Matrix(); m = new float[9]; setImageMatrix(matrix); setScaleType(ScaleType.MATRIX); setOnTouchListener(...
diff --git a/src/java/org/archive/jbs/arc/ArchiveRecordProxy.java b/src/java/org/archive/jbs/arc/ArchiveRecordProxy.java index 95fb06f..4a0a648 100644 --- a/src/java/org/archive/jbs/arc/ArchiveRecordProxy.java +++ b/src/java/org/archive/jbs/arc/ArchiveRecordProxy.java @@ -1,329 +1,330 @@ /* * Licensed to the Apache ...
true
true
public ArchiveRecordProxy( WARCRecord warc, int sizeLimit ) throws IOException { ArchiveRecordHeader header = warc.getHeader( ); this.warcRecordType = (String) header.getHeaderValue( WARCConstants.HEADER_KEY_TYPE ); this.warcContentType = (String) header.getHeaderValue( WARCConstants.CONTENT_TYPE ...
public ArchiveRecordProxy( WARCRecord warc, int sizeLimit ) throws IOException { ArchiveRecordHeader header = warc.getHeader( ); this.warcRecordType = (String) header.getHeaderValue( WARCConstants.HEADER_KEY_TYPE ); this.warcContentType = (String) header.getHeaderValue( WARCConstants.CONTENT_TYPE ...
diff --git a/commons/src/main/java/org/archive/io/InMemoryReplayCharSequence.java b/commons/src/main/java/org/archive/io/InMemoryReplayCharSequence.java index dc6c5ce..67e8af1 100644 --- a/commons/src/main/java/org/archive/io/InMemoryReplayCharSequence.java +++ b/commons/src/main/java/org/archive/io/InMemoryReplayCharS...
false
true
private CharBuffer decodeInMemory(byte[] buffer, long size, long responseBodyStart, String encoding) { ByteBuffer bb = ByteBuffer.wrap(buffer); // Move past the HTTP header if present. bb.position((int) responseBodyStart); // Set the end-of-buffer to be end-of-content. ...
private CharBuffer decodeInMemory(byte[] buffer, long size, long responseBodyStart, String encoding) { ByteBuffer bb = ByteBuffer.wrap(buffer); // Move past the HTTP header if present. bb.position((int) responseBodyStart); bb.mark(); // Set the end-of-buffer to be...
diff --git a/src/org/joval/scap/xccdf/engine/XPERT.java b/src/org/joval/scap/xccdf/engine/XPERT.java index 3bb671d2..cdf5e19c 100755 --- a/src/org/joval/scap/xccdf/engine/XPERT.java +++ b/src/org/joval/scap/xccdf/engine/XPERT.java @@ -1,727 +1,728 @@ // Copyright (C) 2012 jOVAL.org. All rights reserved. // This soft...
true
true
public static void main(String[] argv) { boolean help = false; File source = new File(CWD, "scap-datastream.xml"); String streamId = null; String benchmarkId = null; String profileId = null; Map<String, IChecklist> checklists = new HashMap<String, IChecklist>(); File xmlDir = new File(BASE_DIR, "xml"); File...
public static void main(String[] argv) { boolean help = false; File source = new File(CWD, "scap-datastream.xml"); String streamId = null; String benchmarkId = null; String profileId = null; Map<String, IChecklist> checklists = new HashMap<String, IChecklist>(); File xmlDir = new File(BASE_DIR, "xml"); File...
diff --git a/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java b/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java index c09541f6d..a5d928381 100644 --- a/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java +++ b/java/src/com/android/inputmethod/keyboard/LatinKeyboardView.java...
true
true
public boolean processMotionEvent(MotionEvent me) { final boolean nonDistinctMultitouch = !mHasDistinctMultitouch; final int action = me.getActionMasked(); final int pointerCount = me.getPointerCount(); final int oldPointerCount = mOldPointerCount; mOldPointerCount = pointerC...
public boolean processMotionEvent(MotionEvent me) { final boolean nonDistinctMultitouch = !mHasDistinctMultitouch; final int action = me.getActionMasked(); final int pointerCount = me.getPointerCount(); final int oldPointerCount = mOldPointerCount; mOldPointerCount = pointerC...
diff --git a/HttpClient/src/com/levelup/http/HttpClient.java b/HttpClient/src/com/levelup/http/HttpClient.java index 900eb35..2c01f37 100644 --- a/HttpClient/src/com/levelup/http/HttpClient.java +++ b/HttpClient/src/com/levelup/http/HttpClient.java @@ -1,245 +1,246 @@ package com.levelup.http; import java.io.Buffer...
false
true
public static HttpURLConnection getQueryResponse(HttpRequest request) throws HttpException { /* if (!connSettings.useSSL() || TextUtils.isEmpty(proxyHost)) request.setHeader("Connection", "close"); */ HttpURLConnection connection = null; try { connection = openURL(request.getURL()); // TODO handle...
public static HttpURLConnection getQueryResponse(HttpRequest request) throws HttpException { /* if (!connSettings.useSSL() || TextUtils.isEmpty(proxyHost)) request.setHeader("Connection", "close"); */ HttpURLConnection connection = null; try { connection = openURL(request.getURL()); // TODO handle...
diff --git a/src/java/org/apache/hadoop/chukwa/util/PidFile.java b/src/java/org/apache/hadoop/chukwa/util/PidFile.java index 4badbee..a3cd289 100644 --- a/src/java/org/apache/hadoop/chukwa/util/PidFile.java +++ b/src/java/org/apache/hadoop/chukwa/util/PidFile.java @@ -1,118 +1,118 @@ /* * Licensed to the Apache Soft...
false
true
public void init() throws IOException { String pidLong = ManagementFactory.getRuntimeMXBean().getName(); String[] items = pidLong.split("@"); String pid = items[0]; String chukwaPath = System.getProperty("CHUKWA_HOME"); StringBuffer pidFilesb = new StringBuffer(); String pidDir = System.getenv...
public void init() throws IOException { String pidLong = ManagementFactory.getRuntimeMXBean().getName(); String[] items = pidLong.split("@"); String pid = items[0]; String chukwaPath = System.getProperty("CHUKWA_HOME"); StringBuffer pidFilesb = new StringBuffer(); String pidDir = System.getenv...
diff --git a/src/com/android/settings/wifi/WifiDialog.java b/src/com/android/settings/wifi/WifiDialog.java index 9250ee08b..a4538a4c1 100644 --- a/src/com/android/settings/wifi/WifiDialog.java +++ b/src/com/android/settings/wifi/WifiDialog.java @@ -1,362 +1,363 @@ /* * Copyright (C) 2010 The Android Open Source Proj...
true
true
WifiConfiguration getConfig() { if (mAccessPoint != null && mAccessPoint.networkId != -1 && !edit) { return null; } WifiConfiguration config = new WifiConfiguration(); if (mAccessPoint == null) { config.SSID = mSsid.getText().toString(); // If th...
WifiConfiguration getConfig() { if (mAccessPoint != null && mAccessPoint.networkId != -1 && !edit) { return null; } WifiConfiguration config = new WifiConfiguration(); if (mAccessPoint == null) { config.SSID = mSsid.getText().toString(); // If th...
diff --git a/RefereePkg/src/view/MainGUI.java b/RefereePkg/src/view/MainGUI.java index e426f14..4c7a5d9 100644 --- a/RefereePkg/src/view/MainGUI.java +++ b/RefereePkg/src/view/MainGUI.java @@ -1,1000 +1,1000 @@ package view; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import j...
false
true
public void setCompetitionMode(Boolean enable) { if (enable) { if (tripletTable.getColumnCount() == 1) { tripletTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); tripletTableM.addColumn("Passed"); tripletTableM.addColumn("Failed"); tripletTable.getColumn("Triplets") .setCellRenderer(r...
public void setCompetitionMode(Boolean enable) { if (enable) { if (tripletTable.getColumnCount() == 1) { tripletTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); tripletTableM.addColumn("Passed"); tripletTableM.addColumn("Failed"); tripletTable.getColumn("Triplets") .setCellRenderer(r...
diff --git a/src/main/java/com/bouncingdata/plfdemo/controller/DatasetController.java b/src/main/java/com/bouncingdata/plfdemo/controller/DatasetController.java index 176506b..e96c904 100644 --- a/src/main/java/com/bouncingdata/plfdemo/controller/DatasetController.java +++ b/src/main/java/com/bouncingdata/plfdemo/contr...
true
true
public String getSchemaPage(@RequestParam(value="file", required=false) MultipartFile file, @RequestParam(value="fileUrl", required=false) String fileUrl, @RequestParam(value="firstRowAsHeader", required=false) String firstRowAsHeader, @RequestParam(value="delimiter", required=false) String delimit...
public String getSchemaPage(@RequestParam(value="file", required=false) MultipartFile file, @RequestParam(value="fileUrl", required=false) String fileUrl, @RequestParam(value="firstRowAsHeader", required=false) String firstRowAsHeader, @RequestParam(value="delimiter", required=false) String delimit...
diff --git a/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/tools/InfoPixelLabelProvider.java b/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/tools/InfoPixelLabelProvider.java index d5c40395d..17ba6ee38 100644 --- a/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/tools/InfoPixelLa...
true
true
public String getText(Object element) { double x = 0.0; double y = 0.0; try { if (element instanceof IRegion){ final IRegion region = (IRegion)element; if (region.getRegionType()==RegionType.POINT) { PointROI pr = (PointROI)tool.getBounds(region); x = pr.getPointX(); y = pr.get...
public String getText(Object element) { double x = 0.0; double y = 0.0; try { if (element instanceof IRegion){ final IRegion region = (IRegion)element; if (region.getRegionType()==RegionType.POINT) { PointROI pr = (PointROI)tool.getBounds(region); x = pr.getPointX(); y = pr.get...
diff --git a/src/org/nauxiancc/projects/ProjectData.java b/src/org/nauxiancc/projects/ProjectData.java index 6fd5493..913f7f1 100644 --- a/src/org/nauxiancc/projects/ProjectData.java +++ b/src/org/nauxiancc/projects/ProjectData.java @@ -1,55 +1,56 @@ package org.nauxiancc.projects; import org.nauxiancc.configuratio...
true
true
public static void loadCurrent() { final File root = new File(Paths.SOURCE); if (!root.exists()) { return; } final String[] list = root.list(); for (final String name : list) { if (name != null) { final File file = new File(root, name);...
public static void loadCurrent() { DATA.clear(); final File root = new File(Paths.SOURCE); if (!root.exists()) { return; } final String[] list = root.list(); for (final String name : list) { if (name != null) { final File file =...
diff --git a/plugin/src/main/java/com/h3xstream/findsecbugs/crypto/BadHexadecimalConversionDetector.java b/plugin/src/main/java/com/h3xstream/findsecbugs/crypto/BadHexadecimalConversionDetector.java index c20de4a7..5f33ffa6 100644 --- a/plugin/src/main/java/com/h3xstream/findsecbugs/crypto/BadHexadecimalConversionDetec...
true
true
public void visitClassContext(ClassContext classContext) { JavaClass javaClass = classContext.getJavaClass(); Method[] methodList = javaClass.getMethods(); for (Method m : methodList) { MethodGen methodGen = classContext.getMethodGen(m); if (DEBUG) { ...
public void visitClassContext(ClassContext classContext) { JavaClass javaClass = classContext.getJavaClass(); Method[] methodList = javaClass.getMethods(); for (Method m : methodList) { MethodGen methodGen = classContext.getMethodGen(m); if (DEBUG) { ...
diff --git a/src/com/android/gallery3d/glrenderer/BasicTexture.java b/src/com/android/gallery3d/glrenderer/BasicTexture.java index 82eb5a7ee..2e77b903f 100644 --- a/src/com/android/gallery3d/glrenderer/BasicTexture.java +++ b/src/com/android/gallery3d/glrenderer/BasicTexture.java @@ -1,212 +1,212 @@ /* * Copyright (...
true
true
public void setSize(int width, int height) { mWidth = width; mHeight = height; mTextureWidth = Utils.nextPowerOf2(width); mTextureHeight = Utils.nextPowerOf2(height); if (mTextureWidth > MAX_TEXTURE_SIZE || mTextureHeight > MAX_TEXTURE_SIZE) { Log.w(TAG, String.fo...
public void setSize(int width, int height) { mWidth = width; mHeight = height; mTextureWidth = width > 0 ? Utils.nextPowerOf2(width) : 0; mTextureHeight = height > 0 ? Utils.nextPowerOf2(height) : 0; if (mTextureWidth > MAX_TEXTURE_SIZE || mTextureHeight > MAX_TEXTURE_SIZE) {...
diff --git a/src/rltut/World.java b/src/rltut/World.java index 6dd6315..9586c68 100644 --- a/src/rltut/World.java +++ b/src/rltut/World.java @@ -1,268 +1,269 @@ package rltut; import java.awt.Color; import java.util.ArrayList; import java.util.List; /** * Overarching world class. Contains the state of the wo...
false
true
public void addAtEmptySpace(Item item, int x, int y, int z) { /* * TODO: This routine will currently fail silently if there is no empty * space in which to place the item and the item will simply disappear * from the game. This should probably be fixed so the player is warned * and he can keep the item i...
public boolean addAtEmptySpace(Item item, int x, int y, int z) { /* * TODO: This routine will currently fail silently if there is no empty * space in which to place the item and the item will simply disappear * from the game. This should probably be fixed so the player is warned * and he can keep the ite...
diff --git a/finance/service/src/main/java/com/lavida/service/remote/google/GoogleSpreadsheetWorker.java b/finance/service/src/main/java/com/lavida/service/remote/google/GoogleSpreadsheetWorker.java index 77d911d..4f8c2a4 100644 --- a/finance/service/src/main/java/com/lavida/service/remote/google/GoogleSpreadsheetWorke...
true
true
private SpreadsheetEntry getSpreadsheetByName(List spreadsheets, String spreadsheetName) { for (Object spreadsheetObject : spreadsheets) { if (spreadsheetObject instanceof SpreadsheetEntry) { SpreadsheetEntry spreadsheet = (SpreadsheetEntry) spreadsheetObject; Str...
private SpreadsheetEntry getSpreadsheetByName(List spreadsheets, String spreadsheetName) { if (spreadsheetName == null) { throw new RuntimeException("Spreadsheet name is null!"); } for (Object spreadsheetObject : spreadsheets) { if (spreadsheetObject instanceof Spread...
diff --git a/src/de/shandschuh/sparserss/EntryActivity.java b/src/de/shandschuh/sparserss/EntryActivity.java index c4bb02b..cc52754 100644 --- a/src/de/shandschuh/sparserss/EntryActivity.java +++ b/src/de/shandschuh/sparserss/EntryActivity.java @@ -1,297 +1,298 @@ /** * Sparse rss * * Copyright (c) 2010, 2011 S...
true
true
private void reload() { _id = uri.getLastPathSegment(); ContentValues values = new ContentValues(); values.put(FeedData.EntryColumns.READDATE, System.currentTimeMillis()); Cursor entryCursor = getContentResolver().query(uri, null, null, null, null); if (entryCursor.moveToFirst()) { String abst...
private void reload() { _id = uri.getLastPathSegment(); ContentValues values = new ContentValues(); values.put(FeedData.EntryColumns.READDATE, System.currentTimeMillis()); Cursor entryCursor = getContentResolver().query(uri, null, null, null, null); if (entryCursor.moveToFirst()) { String abst...
diff --git a/ISawABird/src/com/isawabird/AboutActivity.java b/ISawABird/src/com/isawabird/AboutActivity.java index e9ad710..eef1179 100644 --- a/ISawABird/src/com/isawabird/AboutActivity.java +++ b/ISawABird/src/com/isawabird/AboutActivity.java @@ -1,35 +1,35 @@ package com.isawabird; import android.app.Activity; ...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_about); getActionBar().hide(); appNameTextView = (TextView) findViewById(R.id.aboutTextView_title); appNameTextView.setTypeface(Utils.getTangerineTypeface(this)); versionTextView = (Te...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_about); getActionBar().hide(); appNameTextView = (TextView) findViewById(R.id.aboutTextView_title); appNameTextView.setTypeface(Utils.getTangerineTypeface(this)); versionTextView = (Te...
diff --git a/application/src/main/java/org/mifos/application/master/persistence/Upgrade213.java b/application/src/main/java/org/mifos/application/master/persistence/Upgrade213.java index 7cf75c6e1..a1eacb7ac 100644 --- a/application/src/main/java/org/mifos/application/master/persistence/Upgrade213.java +++ b/applicatio...
true
true
public void upgrade(Connection connection) throws IOException, SQLException { if (!hasIndex(connection, "customer", "customer_branch_search_idx")) { SqlUpgrade upgrade = SqlUpgradeScriptFinder.findUpgradeScript(this.higherVersion(), "upgrade_to_213_part1.sql"); ...
public void upgrade(Connection connection) throws IOException, SQLException { if (!hasIndex(connection, "customer", "customer_branch_search_idx")) { SqlUpgrade upgrade = SqlUpgradeScriptFinder.findUpgradeScript(this.higherVersion(), "upgrade_to_213_part1.sql"); ...
diff --git a/bundles/org.eclipse.rap.demo/src/org/eclipse/rap/demo/controls/ExampleTab.java b/bundles/org.eclipse.rap.demo/src/org/eclipse/rap/demo/controls/ExampleTab.java index 8d5d8df93..7f4781ed4 100644 --- a/bundles/org.eclipse.rap.demo/src/org/eclipse/rap/demo/controls/ExampleTab.java +++ b/bundles/org.eclipse.ra...
true
true
protected void cteateRoundedBorderGroup() { Group group = new Group( styleComp, SWT.NONE ); group.setText( "Rounded Border" ); group.setLayout( new GridLayout( 2, false ) ); new Label( group, SWT.NONE ).setText( "Width" ); final Text textWidth = new Text( group, SWT.SINGLE | SWT.BORDER ); text...
protected void cteateRoundedBorderGroup() { Group group = new Group( styleComp, SWT.NONE ); group.setText( "Rounded Border" ); group.setLayout( new GridLayout( 2, false ) ); new Label( group, SWT.NONE ).setText( "Width" ); final Text textWidth = new Text( group, SWT.SINGLE | SWT.BORDER ); text...