Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/strategy/FilterWriter.java b/src/strategy/FilterWriter.java index c475567..34a1821 100644 --- a/src/strategy/FilterWriter.java +++ b/src/strategy/FilterWriter.java @@ -1,176 +1,175 @@ package strategy; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; im...
true
true
public void writeCalcArray(String userPoly) { //CalcArray Element from Element root = doc.getRootElement(); Element calcArray = root.getChild("CalcArray"); //sets the size of the calcArray calcArray.setAttribute("Size", "" + sensors.size()); //counter int counter = 0; //places sensors in ca...
public void writeCalcArray(String userPoly) { //CalcArray Element from Element root = doc.getRootElement(); Element calcArray = root.getChild("CalcArray"); //sets the size of the calcArray calcArray.setAttribute("Size", "" + sensors.size()); //counter int counter = 0; //places sensors in ca...
diff --git a/src/main/java/com/ssm/llp/web/controller/secure/FilterController.java b/src/main/java/com/ssm/llp/web/controller/secure/FilterController.java index 66cd9d4..df2f378 100644 --- a/src/main/java/com/ssm/llp/web/controller/secure/FilterController.java +++ b/src/main/java/com/ssm/llp/web/controller/secure/Filte...
false
true
public String update(@RequestParam Long id, @RequestParam String name, @RequestParam String description, @RequestParam String script, ModelMap model) { SsmFilter n = filterDao.findById(id); n.setName(name); n.setDescription(description); n.setScript(script); filterDao.update(...
public String update(@RequestParam Long id, @RequestParam String name, @RequestParam String description, @RequestParam String error, @RequestParam String script, ModelMap model) { Ssm...
diff --git a/table/src/main/uk/ac/starlink/table/storage/FileByteStore.java b/table/src/main/uk/ac/starlink/table/storage/FileByteStore.java index b1bcd77a9..64591db5c 100644 --- a/table/src/main/uk/ac/starlink/table/storage/FileByteStore.java +++ b/table/src/main/uk/ac/starlink/table/storage/FileByteStore.java @@ -1,1...
true
true
static ByteBuffer[] toByteBuffers( File file, int maxLen ) throws IOException { long size = file.length(); if ( size == 0 ) { return new ByteBuffer[] { ByteBuffer.allocate( 0 ) }; } FileInputStream in = new FileInputStream( file ); FileChannel chan = i...
static ByteBuffer[] toByteBuffers( File file, int maxLen ) throws IOException { long size = file.length(); if ( size == 0 ) { return new ByteBuffer[] { ByteBuffer.allocate( 0 ) }; } FileInputStream in = new FileInputStream( file ); FileChannel chan = i...
diff --git a/sip-core/src/main/java/eu/delving/metadata/AnalysisTreeNode.java b/sip-core/src/main/java/eu/delving/metadata/AnalysisTreeNode.java index 66bbe69b..bce036f7 100644 --- a/sip-core/src/main/java/eu/delving/metadata/AnalysisTreeNode.java +++ b/sip-core/src/main/java/eu/delving/metadata/AnalysisTreeNode.java @...
true
true
public String getVariableName() { if (tag.isAttribute()) throw new RuntimeException("Should never ask an attribute for its variable name"); List<AnalysisTreeNode> path = new ArrayList<AnalysisTreeNode>(); AnalysisTreeNode node = this; while (node != null && !node.isRecordRoot()) { ...
public String getVariableName() { if (tag.isAttribute()) throw new RuntimeException("Should never ask an attribute for its variable name"); List<AnalysisTreeNode> path = new ArrayList<AnalysisTreeNode>(); AnalysisTreeNode node = this; while (node != null && !node.isRecordRoot()) { ...
diff --git a/geotools2/geotools-src/proj4j/src/org/geotools/proj4j/Ellipse.java b/geotools2/geotools-src/proj4j/src/org/geotools/proj4j/Ellipse.java index 8bda1fe12..868d6e978 100644 --- a/geotools2/geotools-src/proj4j/src/org/geotools/proj4j/Ellipse.java +++ b/geotools2/geotools-src/proj4j/src/org/geotools/proj4j/Elli...
true
true
private void setup(ParamSet params) throws ProjectionException{ double b=0.0, e; a=es=0d; /* R takes precedence */ if(params.contains("R")){ a = params.getFloatParam("R"); } else{ /* probable elliptical figure */ if(params.contains("ellips")){ ...
private void setup(ParamSet params) throws ProjectionException{ double b=0.0; a=es=0d; /* R takes precedence */ if(params.contains("R")){ a = params.getFloatParam("R"); } else{ /* probable elliptical figure */ if(params.contains("ellips")){ ...
diff --git a/src/test/java/org/apache/hadoop/hbase/util/TestMergeTool.java b/src/test/java/org/apache/hadoop/hbase/util/TestMergeTool.java index cf6ad9a25..ccd181424 100644 --- a/src/test/java/org/apache/hadoop/hbase/util/TestMergeTool.java +++ b/src/test/java/org/apache/hadoop/hbase/util/TestMergeTool.java @@ -1,285 +...
true
true
public void setUp() throws Exception { // Set the timeout down else this test will take a while to complete. this.conf.setLong("hbase.zookeeper.recoverable.waittime", 1000); this.conf.set("hbase.hstore.compactionThreshold", "2"); // Create table description this.desc = new HTableDescriptor("Test...
public void setUp() throws Exception { // Set the timeout down else this test will take a while to complete. this.conf.setLong("hbase.zookeeper.recoverable.waittime", 1000); this.conf.set("hbase.hstore.compactionThreshold", "2"); // Create table description this.desc = new HTableDescriptor("Test...
diff --git a/controllers/src/main/java/org/idiginfo/docsvc/controller/harvest/LoadDocuments.java b/controllers/src/main/java/org/idiginfo/docsvc/controller/harvest/LoadDocuments.java index 0f7bed9..1802484 100644 --- a/controllers/src/main/java/org/idiginfo/docsvc/controller/harvest/LoadDocuments.java +++ b/controllers...
true
true
Container load(Container containerFields, Document document) { boolean localTransaction = false; String doi = document.getDoi(); if (doi != null) { Reference ref = factory.findReferenceByDoi(doi); if (ref != null) { System.out.println(" doi: " + doi + " already present"); List<Container> containers...
Container load(Container containerFields, Document document) { boolean localTransaction = false; String doi = document.getDoi(); if (doi!=null && !doi.startsWith("10.")){ //not a valid doi doi = null; } if (doi != null) { Reference ref = factory.findReferenceByDoi(doi); if (ref != null) { ...
diff --git a/src/main/java/de/cismet/cids/custom/objecteditors/wunda_blau/Alb_picturePanel.java b/src/main/java/de/cismet/cids/custom/objecteditors/wunda_blau/Alb_picturePanel.java index ed5ca74e..3d5ab0ad 100644 --- a/src/main/java/de/cismet/cids/custom/objecteditors/wunda_blau/Alb_picturePanel.java +++ b/src/main/jav...
false
true
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; btnGrpDocs = new javax.swing.ButtonGroup(); buttonGrpMode = new javax.swing.ButtonGroup(); panPicNavigation = new javax.swing.JPanel(); spDocuments = new de.cismet.tools.gui.RoundedPanel(); ...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; btnGrpDocs = new javax.swing.ButtonGroup(); buttonGrpMode = new javax.swing.ButtonGroup(); panPicNavigation = new javax.swing.JPanel(); spDocuments = new de.cismet.tools.gui.RoundedPanel(); ...
diff --git a/webapp/app/gov/nrel/util/TransferBean.java b/webapp/app/gov/nrel/util/TransferBean.java index f48e4189..d785f9d3 100644 --- a/webapp/app/gov/nrel/util/TransferBean.java +++ b/webapp/app/gov/nrel/util/TransferBean.java @@ -1,230 +1,232 @@ package gov.nrel.util; import java.util.ArrayList; import java.u...
true
true
private void portOverCursorToMany(NoSqlEntityManager mgr, NoSqlEntityManager mgr2) { log.info("porting over all the CursorToMany of SecureTable entities"); List<SecureSchema> schemas = SecureSchema.findAll(mgr); List<SecureSchema> schemas2 = SecureSchema.findAll(mgr2); Map<String, SecureSchema> map = new Ha...
private void portOverCursorToMany(NoSqlEntityManager mgr, NoSqlEntityManager mgr2) { log.info("porting over all the CursorToMany of SecureTable entities"); List<SecureSchema> schemas = SecureSchema.findAll(mgr); List<SecureSchema> schemas2 = SecureSchema.findAll(mgr2); Map<String, SecureSchema> map = new Ha...
diff --git a/PVUgame/src/no/hist/gruppe5/pvu/PVU.java b/PVUgame/src/no/hist/gruppe5/pvu/PVU.java index 99856fd..013bb82 100644 --- a/PVUgame/src/no/hist/gruppe5/pvu/PVU.java +++ b/PVUgame/src/no/hist/gruppe5/pvu/PVU.java @@ -1,74 +1,74 @@ package no.hist.gruppe5.pvu; import aurelienribon.tweenengine.Tween; import ...
true
true
public void create() { long gameStart = TimeUtils.millis(); ScoreHandler.load(); Assets.load(); //Sounds.playMusic(); float loadTook = (TimeUtils.millis() - gameStart) / 1000f; Gdx.app.log(this.getClass().toString(), "Loading took: " + loadTook + " ...
public void create() { long gameStart = TimeUtils.millis(); ScoreHandler.load(); Assets.load(); //Sounds.playMusic(); float loadTook = (TimeUtils.millis() - gameStart) / 1000f; Gdx.app.log(this.getClass().toString(), "Loading took: " + loadTook + " ...
diff --git a/runtime/src/org/zaluum/runtime/LoopBox.java b/runtime/src/org/zaluum/runtime/LoopBox.java index 7e02d6b..cc3cf47 100644 --- a/runtime/src/org/zaluum/runtime/LoopBox.java +++ b/runtime/src/org/zaluum/runtime/LoopBox.java @@ -1,12 +1,18 @@ package org.zaluum.runtime; @Box public abstract class LoopBox e...
true
true
public void apply() { do{ contents(); }while(cond); }
public void apply() { do{ contents(); try { Thread.sleep(10); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } }while(cond); }
diff --git a/src/main/java/jade/tree/NexsonReader.java b/src/main/java/jade/tree/NexsonReader.java index 3eb73fa..3e33d66 100644 --- a/src/main/java/jade/tree/NexsonReader.java +++ b/src/main/java/jade/tree/NexsonReader.java @@ -1,372 +1,375 @@ /* * Read in a Nexml/JSON study file, returning a list of JadeTrees. ...
false
true
private static JadeTree importTree(Map<String,JSONObject> otuMap, JSONArray nodeList, JSONArray edgeList, List<Object> studyMetaList, List<Object> treeMetaList, String treeID, Boolean verbose, MessageLogger msgLogger) { msgLogger.ind...
private static JadeTree importTree(Map<String,JSONObject> otuMap, JSONArray nodeList, JSONArray edgeList, List<Object> studyMetaList, List<Object> treeMetaList, String treeID, Boolean verbose, MessageLogger msgLogger) { msgLogger.ind...
diff --git a/src/main/java/com/yetanotherx/xbot/bots/aiv/RemoveNameJob.java b/src/main/java/com/yetanotherx/xbot/bots/aiv/RemoveNameJob.java index 071e8e4..31fe2ad 100644 --- a/src/main/java/com/yetanotherx/xbot/bots/aiv/RemoveNameJob.java +++ b/src/main/java/com/yetanotherx/xbot/bots/aiv/RemoveNameJob.java @@ -1,140 +...
false
true
public void doRun() { try { String content = bot.getParent().getWiki().getPageText(page); String originalContent = content.toString(); Calendar time = bot.getParent().getWiki().getTimestamp(); if (!content.isEmpty()) { int ipsLeft ...
public void doRun() { try { String content = bot.getParent().getWiki().getPageText(page); String originalContent = content.toString(); Calendar time = bot.getParent().getWiki().getTimestamp(); if (!content.isEmpty()) { int ipsLeft ...
diff --git a/adapters/postgres-adapter/src/main/java/org/atomhopper/postgres/adapter/PostgresFeedSource.java b/adapters/postgres-adapter/src/main/java/org/atomhopper/postgres/adapter/PostgresFeedSource.java index eb7c584a..54f3675f 100644 --- a/adapters/postgres-adapter/src/main/java/org/atomhopper/postgres/adapter/Pos...
false
true
private List<PersistedEntry> enhancedGetFeedPage(final String feedName, final PersistedEntry markerEntry, final PageDirection direction, final String searchString, final int pageSize) { List<PersistedE...
private List<PersistedEntry> enhancedGetFeedPage(final String feedName, final PersistedEntry markerEntry, final PageDirection direction, final String searchString, final int pageSize) { List<PersistedE...
diff --git a/src/main/java/net/canarymod/commandsys/CommandManager.java b/src/main/java/net/canarymod/commandsys/CommandManager.java index 9a1247a..ac33e8a 100644 --- a/src/main/java/net/canarymod/commandsys/CommandManager.java +++ b/src/main/java/net/canarymod/commandsys/CommandManager.java @@ -1,473 +1,474 @@ packag...
false
true
public void registerCommands(final CommandListener listener, CommandOwner owner, LocaleHelper translator, boolean force) throws CommandDependencyException { Method[] methods = listener.getClass().getDeclaredMethods(); ArrayList<CanaryCommand> loadedCommands = new ArrayList<CanaryCommand>(); ...
public void registerCommands(final CommandListener listener, CommandOwner owner, LocaleHelper translator, boolean force) throws CommandDependencyException { Method[] methods = listener.getClass().getDeclaredMethods(); ArrayList<CanaryCommand> newCommands = new ArrayList<CanaryCommand>(); fo...
diff --git a/src/main/java/hudson/plugins/jwsdp_sqe/SQETestResultPublisher.java b/src/main/java/hudson/plugins/jwsdp_sqe/SQETestResultPublisher.java index eb0d0e0..0cd159b 100644 --- a/src/main/java/hudson/plugins/jwsdp_sqe/SQETestResultPublisher.java +++ b/src/main/java/hudson/plugins/jwsdp_sqe/SQETestResultPublisher....
true
true
public boolean perform(Build build, Launcher launcher, BuildListener listener) { FileSet fs = new FileSet(); org.apache.tools.ant.Project p = new org.apache.tools.ant.Project(); fs.setProject(p); fs.setDir(build.getProject().getWorkspace().getLocal()); fs.setIncludes(includes...
public boolean perform(Build build, Launcher launcher, BuildListener listener) { FileSet fs = new FileSet(); org.apache.tools.ant.Project p = new org.apache.tools.ant.Project(); fs.setProject(p); fs.setDir(build.getProject().getWorkspace().getLocal()); fs.setIncludes(includes...
diff --git a/src/ucbang/core/Card.java b/src/ucbang/core/Card.java index 9ed965f..b6d8853 100644 --- a/src/ucbang/core/Card.java +++ b/src/ucbang/core/Card.java @@ -1,306 +1,306 @@ package ucbang.core; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; public class Card { pub...
true
true
public Card(Enum e) { this.e = e; ordinal = e.ordinal(); name = e.toString(); if (e instanceof Deck.Characters) { type = 1; int[] threehp = new int[] { 3, 6, 8, 16, 21, 27, 28, 30 }; if (Arrays.binarySearch(threehp, ordinal) >= 0 && ordinal == threehp[Arrays.binarySearch(threehp, ordinal)]) { // ...
public Card(Enum e) { this.e = e; ordinal = e.ordinal(); name = e.toString(); if (e instanceof Deck.Characters) { type = 1; int[] threehp = new int[] { 3, 6, 8, 16, 21, 27, 28, 30 }; if (Arrays.binarySearch(threehp, ordinal) >= 0 && ordinal == threehp[Arrays.binarySearch(threehp, ordinal)]) { // ...
diff --git a/src/com/ichi2/anki/CardBrowser.java b/src/com/ichi2/anki/CardBrowser.java index 166830bf..766b5569 100644 --- a/src/com/ichi2/anki/CardBrowser.java +++ b/src/com/ichi2/anki/CardBrowser.java @@ -1,1055 +1,1059 @@ /**************************************************************************************** * ...
true
true
protected void onCreate(Bundle savedInstanceState) { Themes.applyTheme(this); super.onCreate(savedInstanceState); View mainView = getLayoutInflater().inflate(R.layout.card_browser, null); setContentView(mainView); Themes.setContentStyle(mainView, Themes.CALLER_CARDBROWSER); mDeck = AnkiDroidApp.deck(); ...
protected void onCreate(Bundle savedInstanceState) { Themes.applyTheme(this); super.onCreate(savedInstanceState); View mainView = getLayoutInflater().inflate(R.layout.card_browser, null); setContentView(mainView); Themes.setContentStyle(mainView, Themes.CALLER_CARDBROWSER); mDeck = AnkiDroidApp.deck(); ...
diff --git a/tests/filesystem/src/test/java/org/apache/manifoldcf/filesystem_tests/NavigationUITester.java b/tests/filesystem/src/test/java/org/apache/manifoldcf/filesystem_tests/NavigationUITester.java index 79ce1206f..5a4f3772a 100644 --- a/tests/filesystem/src/test/java/org/apache/manifoldcf/filesystem_tests/Navigat...
true
true
public void createConnectionsAndJob() throws Exception { testerInstance.newTest(Locale.US); HTMLTester.Window window; HTMLTester.Link link; HTMLTester.Form form; HTMLTester.Textarea textarea; HTMLTester.Selectbox selectbox; HTMLTester.Button button; HTMLTester.Radiobutton ra...
public void createConnectionsAndJob() throws Exception { testerInstance.newTest(Locale.US); HTMLTester.Window window; HTMLTester.Link link; HTMLTester.Form form; HTMLTester.Textarea textarea; HTMLTester.Selectbox selectbox; HTMLTester.Button button; HTMLTester.Radiobutton ra...
diff --git a/src/Checker/Buffer.java b/src/Checker/Buffer.java index 2fed1b4..4284a6d 100644 --- a/src/Checker/Buffer.java +++ b/src/Checker/Buffer.java @@ -1,82 +1,83 @@ package Checker; import java.util.Stack; import Tag.TagCollection; /** * This is the buffer, it reads through the text from one of the wind...
true
true
public String validate(String text,TagCollection tags){ char[] textArray = text.toCharArray(); boolean inTag = false; String temp = ""; //loop through the text for(int i = 0; i<textArray.length;i++){ //If character is the end of a tag if(inTag == true && textArray[i] == '>'){ //conve...
public String validate(String text,TagCollection tags){ char[] textArray = text.toCharArray(); boolean inTag = false; String temp = ""; //loop through the text for(int i = 0; i<textArray.length;i++){ //If character is the end of a tag if(inTag == true && textArray[i] == '>'){ //conve...
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem/src/org/eclipse/tcf/te/tcf/filesystem/internal/columns/FSTreeElementComparator.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem/src/org/eclipse/tcf/te/tcf/filesystem/internal/columns/FSTreeElementComparator.java index 2d95b62e7..e406...
true
true
public int doCompare(FSTreeNode node1, FSTreeNode node2) { String name1 = node1.name; String name2 = node2.name; if (name1 != null && name2 != null) { if (name1.startsWith(".") && !name2.startsWith(".")) return -1; //$NON-NLS-1$ //$NON-NLS-2$ if (!name1.startsWith(".") && name2.startsWith(".")) return 1; /...
public int doCompare(FSTreeNode node1, FSTreeNode node2) { String name1 = node1.name; String name2 = node2.name; if (name1 != null && name2 != null) { if (name1.startsWith(".") && !name2.startsWith(".")) return -1; //$NON-NLS-1$ //$NON-NLS-2$ if (!name1.startsWith(".") && name2.startsWith(".")) return 1; /...
diff --git a/src/powercrystals/minefactoryreloaded/modhelpers/forestry/Forestry.java b/src/powercrystals/minefactoryreloaded/modhelpers/forestry/Forestry.java index 4fe9e344..2fa9ec4c 100644 --- a/src/powercrystals/minefactoryreloaded/modhelpers/forestry/Forestry.java +++ b/src/powercrystals/minefactoryreloaded/modhelp...
true
true
public static void load(FMLInitializationEvent e) { if(!Loader.isModLoaded("Forestry")) { FMLLog.warning("Forestry missing - MFR Forestry Compat not loading"); return; } try { Item fertilizer = (Item)Class.forName("forestry.core.config.ForestryItem").getField("fertilizerCompound").get(null); if(...
public static void load(FMLInitializationEvent e) { if(!Loader.isModLoaded("Forestry")) { FMLLog.warning("Forestry missing - MFR Forestry Compat not loading"); return; } try { Item fertilizer = (Item)Class.forName("forestry.core.config.ForestryItem").getField("fertilizerCompound").get(null); if(...
diff --git a/src/main/java/hudson/plugins/ec2/SlaveTemplate.java b/src/main/java/hudson/plugins/ec2/SlaveTemplate.java index 70bbddc..e272f8e 100644 --- a/src/main/java/hudson/plugins/ec2/SlaveTemplate.java +++ b/src/main/java/hudson/plugins/ec2/SlaveTemplate.java @@ -1,213 +1,212 @@ package hudson.plugins.ec2; imp...
true
true
public FormValidation doValidateAmi( @QueryParameter String accessId, @QueryParameter String secretKey, @QueryParameter AwsRegion region, final @QueryParameter String ami) throws IOException, ServletException { Jec2 jec2 = EC2Cloud.connect(accessId, se...
public FormValidation doValidateAmi( @QueryParameter String accessId, @QueryParameter String secretKey, @QueryParameter AwsRegion region, final @QueryParameter String ami) throws IOException, ServletException { Jec2 jec2 = EC2Cloud.connect(accessId, se...
diff --git a/src/main/org/h2/mvstore/db/TransactionStore.java b/src/main/org/h2/mvstore/db/TransactionStore.java index eca51e69a..ae49c83ae 100644 --- a/src/main/org/h2/mvstore/db/TransactionStore.java +++ b/src/main/org/h2/mvstore/db/TransactionStore.java @@ -1,1590 +1,1590 @@ /* * Copyright 2004-2013 H2 Group. Mul...
true
true
public boolean trySet(K key, V value, boolean onlyIfUnchanged) { VersionedValue current = map.get(key); if (onlyIfUnchanged) { VersionedValue old = getValue(key, readLogId); if (!map.areValuesEqual(old, current)) { long tx = getTransact...
public boolean trySet(K key, V value, boolean onlyIfUnchanged) { VersionedValue current = map.get(key); if (onlyIfUnchanged) { VersionedValue old = getValue(key, readLogId); if (!map.areValuesEqual(old, current)) { long tx = getTransact...
diff --git a/examples/org.eclipse.ocl.examples.codegen/src/org/eclipse/ocl/examples/codegen/expression/OCLinEcore2JavaClass.java b/examples/org.eclipse.ocl.examples.codegen/src/org/eclipse/ocl/examples/codegen/expression/OCLinEcore2JavaClass.java index f23964464b..b39797a3a7 100644 --- a/examples/org.eclipse.ocl.exampl...
false
true
protected void generateOuterClassDefinition(@NonNull GenClassifier genClassifier, @NonNull String className, @Nullable Class<?> baseClass, @NonNull org.eclipse.ocl.examples.pivot.Class pivotClass) { // @NonNull EClassifier eClassifier = genClassifier.getEcoreClassifier(); // Element element = expInOcl; // String ou...
protected void generateOuterClassDefinition(@NonNull GenClassifier genClassifier, @NonNull String className, @Nullable Class<?> baseClass, @NonNull org.eclipse.ocl.examples.pivot.Class pivotClass) { // @NonNull EClassifier eClassifier = genClassifier.getEcoreClassifier(); // Element element = expInOcl; // String ou...
diff --git a/src/me/neatmonster/spacebukkit/PingListener.java b/src/me/neatmonster/spacebukkit/PingListener.java index 5f4a2ef..ceb37cb 100644 --- a/src/me/neatmonster/spacebukkit/PingListener.java +++ b/src/me/neatmonster/spacebukkit/PingListener.java @@ -1,130 +1,131 @@ /* * This file is part of SpaceBukkit (http:...
true
true
public void run() { try { socket.setSoTimeout(REQUEST_THRESHOLD); } catch (SocketException e) { handleException(e, "Error setting the So Timeout!"); } while (running.get()) { byte[] buffer = new byte[512]; try { Datagram...
public void run() { try { socket.setSoTimeout(REQUEST_THRESHOLD); } catch (SocketException e) { handleException(e, "Error setting the So Timeout!"); } while (running.get()) { byte[] buffer = new byte[512]; buffer[0] = 1; try...
diff --git a/maqetta.core.server/src/org/maqetta/server/ServerManager.java b/maqetta.core.server/src/org/maqetta/server/ServerManager.java index 635d91c6e..0d97fd532 100644 --- a/maqetta.core.server/src/org/maqetta/server/ServerManager.java +++ b/maqetta.core.server/src/org/maqetta/server/ServerManager.java @@ -1,260 +...
false
true
public String getDavinciProperty(String propertyName) { String property = null; if (ServerManager.IN_WAR) { try { Context env = (Context) new InitialContext().lookup("java:comp/env"); property = (String) env.lookup(propertyName); } catch (NameN...
public String getDavinciProperty(String propertyName) { String property = null; if (ServerManager.IN_WAR) { try { Context env = (Context) new InitialContext().lookup("java:comp/env"); property = (String) env.lookup(propertyName); } catch (NameN...
diff --git a/uk.ac.gda.client.tomo/src/uk/ac/gda/client/tomo/alignment/view/handlers/impl/TiltController.java b/uk.ac.gda.client.tomo/src/uk/ac/gda/client/tomo/alignment/view/handlers/impl/TiltController.java index de53604..6957a3d 100644 --- a/uk.ac.gda.client.tomo/src/uk/ac/gda/client/tomo/alignment/view/handlers/imp...
true
true
public TiltPlotPointsHolder doTilt(IProgressMonitor monitor, CAMERA_MODULE module, double exposureTime) throws Exception { SubMonitor progress = SubMonitor.convert(monitor); progress.beginTask("Preparing for Tilt alignment", 100); // 1. set roi minY and maxY to values in the lookuptable so that the scanned i...
public TiltPlotPointsHolder doTilt(IProgressMonitor monitor, CAMERA_MODULE module, double exposureTime) throws Exception { SubMonitor progress = SubMonitor.convert(monitor); progress.beginTask("Preparing for Tilt alignment", 100); // 1. set roi minY and maxY to values in the lookuptable so that the scanned i...
diff --git a/server/src/main/java/io/druid/segment/loading/S3DataSegmentPuller.java b/server/src/main/java/io/druid/segment/loading/S3DataSegmentPuller.java index 49b7501ad5..abf4b3502c 100644 --- a/server/src/main/java/io/druid/segment/loading/S3DataSegmentPuller.java +++ b/server/src/main/java/io/druid/segment/loadin...
false
true
public void getSegmentFiles(final DataSegment segment, final File outDir) throws SegmentLoadingException { final S3Coords s3Coords = new S3Coords(segment); log.info("Pulling index at path[%s] to outDir[%s]", s3Coords, outDir); if (!isObjectInBucket(s3Coords)) { throw new SegmentLoadingException(...
public void getSegmentFiles(final DataSegment segment, final File outDir) throws SegmentLoadingException { final S3Coords s3Coords = new S3Coords(segment); log.info("Pulling index at path[%s] to outDir[%s]", s3Coords, outDir); if (!isObjectInBucket(s3Coords)) { throw new SegmentLoadingException(...
diff --git a/portal/src/main/java/com/googlecode/fascinator/portal/security/handler/FascinatorLoginUrlAuthenticationEntryPoint.java b/portal/src/main/java/com/googlecode/fascinator/portal/security/handler/FascinatorLoginUrlAuthenticationEntryPoint.java index 6f8f878..17db760 100644 --- a/portal/src/main/java/com/google...
true
true
protected String determineUrlToUseForThisRequest( HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) { String path = request.getServletPath(); path = path.substring(1, path.length()); String portal = path.substring(0, path.ind...
protected String determineUrlToUseForThisRequest( HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) { String path = request.getServletPath(); path = path.substring(1, path.length()); int nextSlash = path.indexOf("/"); ...
diff --git a/java/client/test/com/thoughtworks/selenium/corebased/TestType.java b/java/client/test/com/thoughtworks/selenium/corebased/TestType.java index f4b101b99..99b19415f 100644 --- a/java/client/test/com/thoughtworks/selenium/corebased/TestType.java +++ b/java/client/test/com/thoughtworks/selenium/corebased/TestT...
true
true
public void testType() throws Exception { selenium.open("../tests/html/test_type_page1.html"); verifyEquals(selenium.getValue("username"), ""); selenium.shiftKeyDown(); selenium.type("username", "x"); verifyEquals(selenium.getValue("username"), "X"); selenium.shiftKeyUp(); selenium.type("u...
public void testType() throws Exception { selenium.open("../tests/html/test_type_page1.html"); verifyEquals(selenium.getValue("username"), ""); selenium.shiftKeyDown(); selenium.type("username", "x"); verifyEquals(selenium.getValue("username"), "X"); selenium.shiftKeyUp(); selenium.type("u...
diff --git a/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/date/DateTimeBean.java b/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/date/DateTimeBean.java index 97e0f865b..bd6377286 100644 --- a/samples/showcase/showcase/src/main/java/org/icefaces/sa...
true
true
public void setSelectedDate(Date selectedDate) { if (pattern.equals(PATTERN_TIME)) { // Only update the time portion of the date Calendar currentDate = Calendar.getInstance(); currentDate.setTime(this.selectedDate); Calendar newDate = Calendar.getInstance(); newDate.setTime(selectedDate); currentD...
public void setSelectedDate(Date selectedDate) { if (pattern.equals(PATTERN_TIME)) { // Only update the time portion of the date Calendar currentDate = Calendar.getInstance(); currentDate.setTime(this.selectedDate); Calendar newDate = Calendar.getInstance(); newDate.setTime(selectedDate); currentD...
diff --git a/src/VASSAL/tools/AdjustableSpeedScrollPane.java b/src/VASSAL/tools/AdjustableSpeedScrollPane.java index 25695d54..02c8710e 100644 --- a/src/VASSAL/tools/AdjustableSpeedScrollPane.java +++ b/src/VASSAL/tools/AdjustableSpeedScrollPane.java @@ -1,98 +1,103 @@ /* * $Id$ * * Copyright (c) 2006 by Joel Uc...
false
true
public AdjustableSpeedScrollPane(Component view, int vsbPolicy, int hsbPolicy) { super(view, vsbPolicy, hsbPolicy); // set configurer final IntConfigurer config = new IntConfigurer( SCROLL_SPEED, Resources.getString("AdjustableSpeedScrollPane.scroll_increme...
public AdjustableSpeedScrollPane(Component view, int vsbPolicy, int hsbPolicy) { super(view, vsbPolicy, hsbPolicy); // set configurer final IntConfigurer config = new IntConfigurer( SCROLL_SPEED, Resources.getString("AdjustableSpeedScrollPane.scroll_increme...
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java index a07753735..3ead55452 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java +++ b/o...
true
true
public void start(BundleContext context) throws Exception { super.start(context); // NOTE: startup order is very sensitive try { // initialize framework and settings WebUtil.init(); WebClientLog.setLoggingEnabled(DEBUG_HTTPCLIENT); initializePreferences(getPreferenceStore()); // initialize Common...
public void start(BundleContext context) throws Exception { super.start(context); // NOTE: startup order is very sensitive try { // initialize framework and settings WebUtil.init(); WebClientLog.setLoggingEnabled(DEBUG_HTTPCLIENT); initializePreferences(getPreferenceStore()); // initialize Common...
diff --git a/src/org/jruby/compiler/ASTInspector.java b/src/org/jruby/compiler/ASTInspector.java index a50b41337..a16de3b18 100644 --- a/src/org/jruby/compiler/ASTInspector.java +++ b/src/org/jruby/compiler/ASTInspector.java @@ -1,736 +1,737 @@ /* ***** BEGIN LICENSE BLOCK ***** * Version: CPL 1.0/GPL 2.0/LGPL 2.1...
true
true
public void inspect(Node node) { // TODO: This code effectively disables all inspection-based optimizations; none of them are 100% safe yet if (!ENABLED) disable(); if (node == null) return; switch (node.nodeId) { case ALIASNODE: setFlag(METHOD); ...
public void inspect(Node node) { // TODO: This code effectively disables all inspection-based optimizations; none of them are 100% safe yet if (!ENABLED) disable(); if (node == null) return; switch (node.nodeId) { case ALIASNODE: setFlag(METHOD); ...
diff --git a/tools/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/ProjectResources.java b/tools/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/ProjectResources.java index 9052672d..dce26228 100644 --- a/tools...
true
true
private Resource findMatchingConfiguredResource(List<? extends Resource> resources, FolderConfiguration referenceConfig) { // // 1: eliminate resources that contradict the reference configuration // 2: pick next qualifier type // 3: check if any resources use this qualifi...
private Resource findMatchingConfiguredResource(List<? extends Resource> resources, FolderConfiguration referenceConfig) { // // 1: eliminate resources that contradict the reference configuration // 2: pick next qualifier type // 3: check if any resources use this qualifi...
diff --git a/unifi-litas-esis-parent/unifi-litas-esis-pain-client/src/main/java/lt/itdbaltics/unifi/gateway/pain/CustomerCreditTransferBuilder.java b/unifi-litas-esis-parent/unifi-litas-esis-pain-client/src/main/java/lt/itdbaltics/unifi/gateway/pain/CustomerCreditTransferBuilder.java index 4b6f8c2..4bc6393 100644 --- a...
true
true
public static SignableDocumentType convertToSignableDocumentType(List<LitasPaymentDto> rows) { if (rows == null || rows.size() < 1) { throw new IllegalArgumentException("List of LITAS-ESIS payments should be provided with at least one payment in the list."); } XMLGregorianCalendar createDate = createXMLGr...
public static SignableDocumentType convertToSignableDocumentType(List<LitasPaymentDto> rows) { if (rows == null || rows.size() < 1) { throw new IllegalArgumentException("List of LITAS-ESIS payments should be provided with at least one payment in the list."); } XMLGregorianCalendar createDate = createXMLGr...
diff --git a/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/NullFileStore.java b/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/NullFileStore.java index d2b24a2f3..9929ea782 100644 --- a/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesys...
false
true
public URI toURI() { try { return new URI(EFS.SCHEME_NULL, null, path.toString(), null); } catch (URISyntaxException e) { //should not happen throw new Error(e); } }
public URI toURI() { try { return new URI(EFS.SCHEME_NULL, null, path.isEmpty() ? "/" : path.toString(), null); //$NON-NLS-1$ } catch (URISyntaxException e) { //should never happen Policy.log(IStatus.ERROR, "Invalid URI", e); //$NON-NLS-1$ return null; } }
diff --git a/src/classviewer/changes/EdxModelAdapter.java b/src/classviewer/changes/EdxModelAdapter.java index bd909ac..a165f51 100644 --- a/src/classviewer/changes/EdxModelAdapter.java +++ b/src/classviewer/changes/EdxModelAdapter.java @@ -1,541 +1,541 @@ package classviewer.changes; import java.io.BufferedReader;...
true
true
private void diffCourse(ArrayList<EdxRecord> list, CourseRec oldRec, ArrayList<Change> res, CourseModel model, Date tooOld) { // The only things we have here are: name, description, offerings String s1 = list.get(0).getName(); String s2 = oldRec.getName(); if (s1 == null && s2 != null || s1 != null && !s1.e...
private void diffCourse(ArrayList<EdxRecord> list, CourseRec oldRec, ArrayList<Change> res, CourseModel model, Date tooOld) { // The only things we have here are: name, description, offerings String s1 = list.get(0).getName(); String s2 = oldRec.getName(); if (s1 == null && s2 != null || s1 != null && !s1.e...
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/PackageHtmlCheck.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/PackageHtmlCheck.java index c6a3428e..11b97d8d 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/PackageHtmlCheck.java +++ b/src/checkstyle/com/puppycrawl/too...
true
true
public void process(File[] aFiles) { Set directories = getParentDirs(aFiles); for (Iterator it = directories.iterator(); it.hasNext();) { File dir = (File) it.next(); File packageHtml = new File(dir, "package.html"); MessageDispatcher dispatcher = getMessageDi...
public void process(File[] aFiles) { Set directories = getParentDirs(aFiles); for (Iterator it = directories.iterator(); it.hasNext();) { File dir = (File) it.next(); File packageHtml = new File(dir, "package.html"); MessageDispatcher dispatcher = getMessageDi...
diff --git a/src/test/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationPreCheckoutTest.java b/src/test/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegrationPreCheckoutTest.java index a8a41da..2fbd69b 100644 --- a/src/test/java/org/jenkinsci/plugins/pretestedintegration/PretestedIntegra...
true
true
public void testShouldCreateInstance() throws Exception { Constructor <?> c = PretestedIntegrationPreCheckout.class .getConstructor(String.class); Object inst = c.newInstance(); assertNotNull(inst); }
public void testShouldCreateInstance() throws Exception { Constructor <?> c = PretestedIntegrationPreCheckout.class .getConstructor(); Object inst = c.newInstance(); assertNotNull(inst); }
diff --git a/src/main/java/net/aufdemrand/denizen/objects/dLocation.java b/src/main/java/net/aufdemrand/denizen/objects/dLocation.java index 71007c272..d6b058fe9 100644 --- a/src/main/java/net/aufdemrand/denizen/objects/dLocation.java +++ b/src/main/java/net/aufdemrand/denizen/objects/dLocation.java @@ -1,1042 +1,1042 ...
false
true
public String getAttribute(Attribute attribute) { if (attribute == null) return null; // <--[tag] // @attribute <l@location.biome.formatted> // @returns Element // @description // Returns the formatted biome name at the location. // --> if (attribute....
public String getAttribute(Attribute attribute) { if (attribute == null) return null; // <--[tag] // @attribute <l@location.biome.formatted> // @returns Element // @description // Returns the formatted biome name at the location. // --> if (attribute....
diff --git a/src/main/java/songscribe/ui/musicsheetdrawer/BaseMsDrawer.java b/src/main/java/songscribe/ui/musicsheetdrawer/BaseMsDrawer.java index 36df8e2..fc475b6 100644 --- a/src/main/java/songscribe/ui/musicsheetdrawer/BaseMsDrawer.java +++ b/src/main/java/songscribe/ui/musicsheetdrawer/BaseMsDrawer.java @@ -1,827 +...
false
true
public void drawMusicSheet(Graphics2D g2, boolean drawEditingComponents, double scale){ FughettaDrawer.calculateAccidentalWidths(g2); Composition composition = ms.getComposition(); if(scale!=1d) g2.scale(scale, scale); if(!drawEditingComponents)g2.translate(0, -ms.getStartY()); ...
public void drawMusicSheet(Graphics2D g2, boolean drawEditingComponents, double scale){ FughettaDrawer.calculateAccidentalWidths(g2); Composition composition = ms.getComposition(); if(scale!=1d) g2.scale(scale, scale); if(!drawEditingComponents)g2.translate(0, -ms.getStartY()); ...
diff --git a/trunk/uim/api/src/test/java/eu/europeana/uim/store/AbstractResourceEngineTest.java b/trunk/uim/api/src/test/java/eu/europeana/uim/store/AbstractResourceEngineTest.java index afb855fc..0e11e724 100644 --- a/trunk/uim/api/src/test/java/eu/europeana/uim/store/AbstractResourceEngineTest.java +++ b/trunk/uim/ap...
false
true
public void run() { //simple put and get List<String> testList1=new LinkedList<String>(); testList1.add(EXAMPLE_VALUE_1); testList1.add(EXAMPLE_VALUE_2); LinkedHashMap<String, List<String>> testSet1=new LinkedHashMap<String, Li...
public void run() { //simple put and get List<String> testList1=new LinkedList<String>(); testList1.add(EXAMPLE_VALUE_1); testList1.add(EXAMPLE_VALUE_2); LinkedHashMap<String, List<String>> testSet1=new LinkedHashMap<String, Li...
diff --git a/projects/impl/src/main/java/org/jboss/forge/addon/projects/impl/NewProjectWizard.java b/projects/impl/src/main/java/org/jboss/forge/addon/projects/impl/NewProjectWizard.java index 65ad00d58..9433bfa3a 100644 --- a/projects/impl/src/main/java/org/jboss/forge/addon/projects/impl/NewProjectWizard.java +++ b/p...
false
true
public void initializeUI(final UIBuilder builder) throws Exception { version.setDefaultValue("1.0.0-SNAPSHOT"); UISelection<Resource<?>> currentSelection = builder.getUIContext().getInitialSelection(); if (currentSelection != null) { Resource<?> resource = currentSelection.get();...
public void initializeUI(final UIBuilder builder) throws Exception { version.setDefaultValue("1.0.0-SNAPSHOT"); UISelection<Resource<?>> currentSelection = builder.getUIContext().getInitialSelection(); if (currentSelection != null) { Resource<?> resource = currentSelection.get();...
diff --git a/src/com/harcourtprogramming/utils/FileUtils.java b/src/com/harcourtprogramming/utils/FileUtils.java index abbac43..7cc2b29 100644 --- a/src/com/harcourtprogramming/utils/FileUtils.java +++ b/src/com/harcourtprogramming/utils/FileUtils.java @@ -1,73 +1,78 @@ package com.harcourtprogramming.utils; import...
false
true
public static String realtivePath(File base, File target) { if (!base.isDirectory()) { base = base.getParentFile(); } String[] fromPath = explodedPath(base); String[] toPath = explodedPath(target); int common; int i; for (i = 0; i < Math.min(fromPath.length, toPath.length); ...
public static String realtivePath(final File base, final File target) { final File baseDir; if (!base.isDirectory()) { baseDir = base.getParentFile(); } else { baseDir = base; } final String[] fromPath = explodedPath(baseDir); final String[] toPath = explodedPath(target); ...
diff --git a/src/main/java/net/aufdemrand/denizen/objects/Element.java b/src/main/java/net/aufdemrand/denizen/objects/Element.java index 6decc53dc..7cb8b3a2d 100644 --- a/src/main/java/net/aufdemrand/denizen/objects/Element.java +++ b/src/main/java/net/aufdemrand/denizen/objects/Element.java @@ -1,497 +1,497 @@ packag...
false
true
public String getAttribute(Attribute attribute) { if (attribute == null) return null; // <-- // <element.asint> -> Element(Number) // Returns the element as a number without a decimal. // --> if (attribute.startsWith("asint") || attribute.startsWith(...
public String getAttribute(Attribute attribute) { if (attribute == null) return null; // <-- // <element.asint> -> Element(Number) // Returns the element as a number without a decimal. // --> if (attribute.startsWith("asint") || attribute.startsWith(...
diff --git a/SIMSOnline/src/test/Sims_1.java b/SIMSOnline/src/test/Sims_1.java index 67147ba..bd0f9b1 100644 --- a/SIMSOnline/src/test/Sims_1.java +++ b/SIMSOnline/src/test/Sims_1.java @@ -1,1699 +1,1699 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ...
true
true
private void initComponents() { buyCoins = new javax.swing.JDialog(); label_swapper = new javax.swing.JLabel(); label_swapperUcoins = new javax.swing.JLabel(); label_swapperUcoinsAmount = new javax.swing.JLabel(); label_swapperCredits = new javax.swing.JLabel(); labe...
private void initComponents() { buyCoins = new javax.swing.JDialog(); label_swapper = new javax.swing.JLabel(); label_swapperUcoins = new javax.swing.JLabel(); label_swapperUcoinsAmount = new javax.swing.JLabel(); label_swapperCredits = new javax.swing.JLabel(); labe...
diff --git a/src/filius/software/transportschicht/TransportProtokoll.java b/src/filius/software/transportschicht/TransportProtokoll.java index 60a1388..559163e 100644 --- a/src/filius/software/transportschicht/TransportProtokoll.java +++ b/src/filius/software/transportschicht/TransportProtokoll.java @@ -1,233 +1,229 @@...
true
true
public void run() { Main.debug.println("INVOKED ("+this.hashCode()+") "+getClass()+" (TransportProtokoll), run()"); InternetKnotenBetriebssystem bs; Object[] temp; while (running) { synchronized (segmentListe) { if (segmentListe.size() < 1) { try { segmentListe.wait(); } catch (Interru...
public void run() { Main.debug.println("INVOKED ("+this.hashCode()+") "+getClass()+" (TransportProtokoll), run()"); InternetKnotenBetriebssystem bs; Object[] temp; while (running) { synchronized (segmentListe) { if (segmentListe.size() < 1) { try { segmentListe.wait(); } catch (Interru...
diff --git a/loci/plugins/LociUploader.java b/loci/plugins/LociUploader.java index 10c3852dc..0915c1c21 100644 --- a/loci/plugins/LociUploader.java +++ b/loci/plugins/LociUploader.java @@ -1,214 +1,215 @@ // // LociUploader.java // /* LOCI Plugins for ImageJ: a collection of ImageJ plugins including the 4D Data...
false
true
private void uploadStack() { try { IJ.showStatus("Starting upload..."); OMEWriter ul = new OMEWriter(); String id = server + "?user=" + user + "&password=" + pass; ImagePlus imp = WindowManager.getCurrentImage(); if (imp == null) { IJ.error("No open images!"); IJ.s...
private void uploadStack() { try { IJ.showStatus("Starting upload..."); OMEWriter ul = new OMEWriter(); String id = server + "?user=" + user + "&password=" + pass; ul.setId(id); ImagePlus imp = WindowManager.getCurrentImage(); if (imp == null) { IJ.error("No open ima...
diff --git a/src/java/com/idega/block/navigation/presentation/NavigationMenu.java b/src/java/com/idega/block/navigation/presentation/NavigationMenu.java index 6ac53b9..620fc0e 100644 --- a/src/java/com/idega/block/navigation/presentation/NavigationMenu.java +++ b/src/java/com/idega/block/navigation/presentation/Navigat...
true
true
public void main(IWContext iwc) throws Exception{ setStyles(); BuilderService bs = getBuilderService(iwc); if (rootNode == -1) { rootNode = bs.getRootPageId(); } //String sCurrentPageId = iwc.getParameter(com.idega.builder.business.BuilderLogic.IB_PAGE_PARAMETER); currentPageId = bs.getCurrentPageId(iwc...
public void main(IWContext iwc) throws Exception{ setStyles(); BuilderService bs = getBuilderService(iwc); if (rootNode == -1) { rootNode = bs.getRootPageId(); } //String sCurrentPageId = iwc.getParameter(com.idega.builder.business.BuilderLogic.IB_PAGE_PARAMETER); currentPageId = bs.getCurrentPageId(iwc...
diff --git a/com.mobilesorcery.sdk.profiles.ui/src/com/mobilesorcery/sdk/profiles/ui/internal/actions/FinalizeForProfileAction.java b/com.mobilesorcery.sdk.profiles.ui/src/com/mobilesorcery/sdk/profiles/ui/internal/actions/FinalizeForProfileAction.java index 336d847b..6792f655 100644 --- a/com.mobilesorcery.sdk.profile...
false
true
public void run() { if (selection instanceof IStructuredSelection) { Object selected = ((IStructuredSelection)selection).getFirstElement(); if (selected instanceof IProfile && project != null) { //FinalizerParser.autoSwitchConfiguration(project); IProf...
public void run() { if (selection instanceof IStructuredSelection) { Object selected = ((IStructuredSelection)selection).getFirstElement(); if (selected instanceof IProfile && project != null) { //FinalizerParser.autoSwitchConfiguration(project); IProf...
diff --git a/gui/src/main/java/fi/smaa/jsmaa/gui/components/DiscreteMeasurementPanel.java b/gui/src/main/java/fi/smaa/jsmaa/gui/components/DiscreteMeasurementPanel.java index 656dc2d..3770d1e 100644 --- a/gui/src/main/java/fi/smaa/jsmaa/gui/components/DiscreteMeasurementPanel.java +++ b/gui/src/main/java/fi/smaa/jsmaa/...
false
true
public DiscreteMeasurementPanel(JComponent parent, PresentationModel<DiscreteMeasurement> m) { setLayout(new FlowLayout()); dm = m.getBean(); this.parent = parent; jlist = new JList(dm); jlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); jlist.setSelectedIndex(0); jlist.addListSelectionList...
public DiscreteMeasurementPanel(JComponent parent, PresentationModel<DiscreteMeasurement> m) { setLayout(new FlowLayout()); dm = m.getBean(); this.parent = parent; jlist = new JList(dm); jlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); jlist.setSelectedIndex(0); jlist.addListSelectionList...
diff --git a/loci/formats/tools/ImageInfo.java b/loci/formats/tools/ImageInfo.java index 428e1b305..b72956572 100644 --- a/loci/formats/tools/ImageInfo.java +++ b/loci/formats/tools/ImageInfo.java @@ -1,638 +1,645 @@ // // ImageInfo.java // /* LOCI Bio-Formats package for reading and converting biological file f...
true
true
public static boolean testRead(IFormatReader reader, String[] args) throws FormatException, IOException { String id = null; boolean pixels = true; boolean doMeta = true; boolean thumbs = false; boolean minmax = false; boolean merge = false; boolean stitch = false; boolean separat...
public static boolean testRead(IFormatReader reader, String[] args) throws FormatException, IOException { String id = null; boolean pixels = true; boolean doMeta = true; boolean thumbs = false; boolean minmax = false; boolean merge = false; boolean stitch = false; boolean separat...
diff --git a/src/com/github/Shot.java b/src/com/github/Shot.java index ce18498..56f0afc 100644 --- a/src/com/github/Shot.java +++ b/src/com/github/Shot.java @@ -1,74 +1,74 @@ package com.github; import java.util.ArrayList; import java.util.List; import org.bukkit.Location; public class Shot { private fi...
true
true
public List<Hit> shoot(ShotData data, List<HitBox> hitBoxes) { List<Hit> hits = new ArrayList<Hit>(); for (HitBox hitBox : hitBoxes) { hitBox.update(); float fromYaw = 360 % from.getYaw(); float fromPitch = 360 % from.getPitch(); // making sure the cen...
public List<Hit> shoot(ShotData data, List<HitBox> hitBoxes) { List<Hit> hits = new ArrayList<Hit>(); for (HitBox hitBox : hitBoxes) { hitBox.update(); float fromYaw = from.getYaw() % 360; float fromPitch = from.getPitch() % 360; // making sure the cen...
diff --git a/illaclient/src/illarion/client/graphics/AbstractEntity.java b/illaclient/src/illarion/client/graphics/AbstractEntity.java index 5cd2921d..897c7450 100644 --- a/illaclient/src/illarion/client/graphics/AbstractEntity.java +++ b/illaclient/src/illarion/client/graphics/AbstractEntity.java @@ -1,835 +1,843 @@ ...
true
true
public void update(@Nonnull final GameContainer container, final int delta) { if (removedEntity) { LOGGER.warn("Updating a removed entity is not allowed."); return; } final Sprite sprite = template.getSprite(); final int offS = template.getShadowOffset(); ...
public void update(@Nonnull final GameContainer container, final int delta) { if (removedEntity) { LOGGER.warn("Updating a removed entity is not allowed."); shown = true; hide(); return; } if (!shown) { LOGGER.warn("Entity that is n...
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxMultiBugReportContentHandler.java index ac57f7291..cbaf6c9c4 100644 --- a/org.eclipse.mylyn.bugzilla.core/src/o...
false
true
public void endElement(String uri, String localName, String qName) throws SAXException { String parsedText = characters.toString(); if (localName.startsWith(BugzillaCustomField.CUSTOM_FIELD_PREFIX)) { RepositoryTaskAttribute attribute = repositoryTaskData.getAttribute(localName); if (attribute == null) { ...
public void endElement(String uri, String localName, String qName) throws SAXException { String parsedText = characters.toString(); if (localName.startsWith(BugzillaCustomField.CUSTOM_FIELD_PREFIX)) { RepositoryTaskAttribute attribute = repositoryTaskData.getAttribute(localName); if (attribute == null) { ...
diff --git a/com.mountainminds.eclemma.ui/src/com/mountainminds/eclemma/internal/ui/UIPreferences.java b/com.mountainminds.eclemma.ui/src/com/mountainminds/eclemma/internal/ui/UIPreferences.java index 2d78fc0..dd6f9bc 100644 --- a/com.mountainminds.eclemma.ui/src/com/mountainminds/eclemma/internal/ui/UIPreferences.java...
true
true
public void initializeDefaultPreferences() { IPreferenceStore pref = getPreferenceStore(); pref.setDefault(PREF_SHOW_COVERAGE_VIEW, true); pref.setDefault(PREF_SHOW_COVERAGE_VIEW, false); pref.setDefault(PREF_ACTICATE_NEW_SESSIONS, ICorePreferences.DEFAULT.getActivateNewSessions()); pref.s...
public void initializeDefaultPreferences() { IPreferenceStore pref = getPreferenceStore(); pref.setDefault(PREF_SHOW_COVERAGE_VIEW, true); pref.setDefault(PREF_RESET_ON_DUMP, false); pref.setDefault(PREF_ACTICATE_NEW_SESSIONS, ICorePreferences.DEFAULT.getActivateNewSessions()); pref.setDef...
diff --git a/EasyShopperTest/src/com/google/code/easyshopper/utility/CameraUtilsTest.java b/EasyShopperTest/src/com/google/code/easyshopper/utility/CameraUtilsTest.java index 73e124f..e7e6c70 100644 --- a/EasyShopperTest/src/com/google/code/easyshopper/utility/CameraUtilsTest.java +++ b/EasyShopperTest/src/com/google/c...
true
true
public void testPathComposition() { Uri imagePath = CameraUtils.getImagePath("another_path"); Uri expUri = new Uri.Builder().scheme("file").appendEncodedPath("//sdcard/Android/data/com.gmail.gulino.marco.easyshopper/another_path").build(); assertEquals(expUri, imagePath); }
public void testPathComposition() { Uri imagePath = CameraUtils.getImagePath("another_path"); Uri expUri = new Uri.Builder().scheme("file").appendEncodedPath("//sdcard/Android/data/com.gmail.gulino.marco.easyshopper/another_path").build(); // assertEquals(expUri, imagePath); }
diff --git a/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java b/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java index b28b82e9..4e2049eb 100644 --- a/src/main/java/net/pterodactylus/sone/web/ajax/GetStatusAjaxPage.java +++ b/src/main/java/net/pterodactylus/sone/web/ajax/GetStatu...
false
true
protected JsonObject createJsonObject(Request request) { final Sone currentSone = getCurrentSone(request.getToadletContext(), false); /* load Sones. */ boolean loadAllSones = Boolean.parseBoolean(request.getHttpRequest().getParam("loadAllSones", "true")); Set<Sone> sones = new HashSet<Sone>(Collections.singlet...
protected JsonObject createJsonObject(Request request) { final Sone currentSone = getCurrentSone(request.getToadletContext(), false); /* load Sones. */ boolean loadAllSones = Boolean.parseBoolean(request.getHttpRequest().getParam("loadAllSones", "false")); Set<Sone> sones = new HashSet<Sone>(Collections.single...
diff --git a/src/main/java/org/springframework/data/demo/repository/MongoBookShelf.java b/src/main/java/org/springframework/data/demo/repository/MongoBookShelf.java index 08e5a6b..9d4be8f 100644 --- a/src/main/java/org/springframework/data/demo/repository/MongoBookShelf.java +++ b/src/main/java/org/springframework/data...
true
true
private void lookUpAuthor(Book book) { if (book.getAuthor() != null) { Query query = new Query(Criteria.where("name").is(book.getAuthor().getName())); Author existing = mongoTemplate.findOne(query ,Author.class); if (existing != null) { book.setAuthor(existing); } mongoTemplate.insert(book.getAuth...
private void lookUpAuthor(Book book) { if (book.getAuthor() != null) { Query query = new Query(Criteria.where("name").is(book.getAuthor().getName())); Author existing = mongoTemplate.findOne(query ,Author.class); if (existing != null) { book.setAuthor(existing); } else { mongoTemplate.insert(b...
diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/FormAuthenticator.java b/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/FormAuthenticator.java index 194888c6..594b8222 100644 --- a/jetty-security/src/main/java/org/eclipse/jetty/security/authentication/FormAuth...
true
true
public Authentication validateRequest(ServletRequest req, ServletResponse res, boolean mandatory) throws ServerAuthException { HttpServletRequest request = (HttpServletRequest)req; HttpServletResponse response = (HttpServletResponse)res; HttpSession session = request.getSession(mandatory...
public Authentication validateRequest(ServletRequest req, ServletResponse res, boolean mandatory) throws ServerAuthException { HttpServletRequest request = (HttpServletRequest)req; HttpServletResponse response = (HttpServletResponse)res; HttpSession session = request.getSession(mandatory...
diff --git a/src/com/dmdirc/plugins/PluginInfo.java b/src/com/dmdirc/plugins/PluginInfo.java index 8416a9949..524a4c120 100644 --- a/src/com/dmdirc/plugins/PluginInfo.java +++ b/src/com/dmdirc/plugins/PluginInfo.java @@ -1,980 +1,971 @@ /* * Copyright (c) 2006-2008 Chris Smith, Shane Mc Cormack, Gregory Holmes * ...
false
true
public boolean checkRequirements() { if (metaData == null) { // No meta-data, so no requirements. return true; } final String uiPackage; if (Main.getUI().getClass().getPackage() != null) { uiPackage = Main.getUI().getClass().getPackage().getName(); } else { final String uiController = Main.get...
public boolean checkRequirements() { if (metaData == null) { // No meta-data, so no requirements. return true; } final String uiPackage; if (Main.getUI().getClass().getPackage() != null) { uiPackage = Main.getUI().getClass().getPackage().getName(); } else { final String uiController = Main.get...
diff --git a/Writable.java b/Writable.java index 45f5a66..2e81c15 100644 --- a/Writable.java +++ b/Writable.java @@ -1,764 +1,764 @@ package me.exphc.Writable; import java.util.Collections; import java.util.List; import java.util.ArrayList; import java.util.Map; import java.util.HashMap; import java.util.UUI...
false
true
public void onPlayerInteract(PlayerInteractEvent event) { Block block = event.getClickedBlock(); ItemStack item = event.getItem(); Player player = event.getPlayer(); Action action = event.getAction(); if (item != null && item.getType() == Material.PAPER && action == Action.R...
public void onPlayerInteract(PlayerInteractEvent event) { Block block = event.getClickedBlock(); ItemStack item = event.getItem(); Player player = event.getPlayer(); Action action = event.getAction(); if (item != null && item.getType() == Material.PAPER && action == Action.R...
diff --git a/contentconnector-portlet/src/main/java/com/gentics/cr/taglib/portlet/RenderContentTag.java b/contentconnector-portlet/src/main/java/com/gentics/cr/taglib/portlet/RenderContentTag.java index 1303835d..9f7d5000 100644 --- a/contentconnector-portlet/src/main/java/com/gentics/cr/taglib/portlet/RenderContentTag...
true
true
public int doEndTag() throws JspException { // get the ContentRenderer RenderRequest renderRequest = getRenderRequest(); PortletSession session = renderRequest.getPortletSession(); ContentRenderer renderer = (ContentRenderer)renderRequest.getAttribute(RENDERER_PARAM); PLinkReplacer pLinkReplacer = (PLinkRep...
public int doEndTag() throws JspException { // get the ContentRenderer RenderRequest renderRequest = getRenderRequest(); PortletSession session = renderRequest.getPortletSession(); ContentRenderer renderer = (ContentRenderer)renderRequest.getAttribute(RENDERER_PARAM); PLinkReplacer pLinkReplacer = (PLinkRep...
diff --git a/src/main/java/org/example/websocket/server/WebSocketServer.java b/src/main/java/org/example/websocket/server/WebSocketServer.java index cb96ade..35e1cd3 100644 --- a/src/main/java/org/example/websocket/server/WebSocketServer.java +++ b/src/main/java/org/example/websocket/server/WebSocketServer.java @@ -1,4...
true
true
public static void main(String[] args) throws Exception { final ServerBootstrap sb = new ServerBootstrap(); try { sb.eventLoop(new NioEventLoop(), new NioEventLoop()) .channel(new NioServerSocketChannel()) .localAddress(new InetSocketAddress(8080)) ...
public static void main(String[] args) throws Exception { final ServerBootstrap sb = new ServerBootstrap(); try { sb.eventLoop(new NioEventLoop(), new NioEventLoop()) .channel(new NioServerSocketChannel()) .localAddress(new InetSocketAddress(8080)) ...
diff --git a/omod/src/main/java/org/openmrs/module/addresshierarchy/web/controller/AdvancedFeaturesController.java b/omod/src/main/java/org/openmrs/module/addresshierarchy/web/controller/AdvancedFeaturesController.java index 359e37f..c1a0b09 100644 --- a/omod/src/main/java/org/openmrs/module/addresshierarchy/web/contro...
true
true
public ModelAndView processAddressHierarchyUploadForm(@RequestParam(value = "repeatInterval", required = false) Integer repeatInterval, @RequestParam(value = "updaterStarted", required = false) Boolean updaterStarted, ...
public ModelAndView processAddressHierarchyUploadForm(@RequestParam(value = "repeatInterval", required = false) Integer repeatInterval, @RequestParam(value = "updaterStarted", required = false) Boolean updaterStarted, ...
diff --git a/spring-richclient/src/org/springframework/richclient/form/builder/GridBagLayoutFormBuilder.java b/spring-richclient/src/org/springframework/richclient/form/builder/GridBagLayoutFormBuilder.java index fc80c793..56e7a308 100644 --- a/spring-richclient/src/org/springframework/richclient/form/builder/GridBagLa...
false
true
public GridBagLayoutFormBuilder appendLabeledField(String propertyName, final JComponent field, LabelOrientation labelOrientation, int colSpan, ...
public GridBagLayoutFormBuilder appendLabeledField(String propertyName, final JComponent field, LabelOrientation labelOrientation, int colSpan, ...
diff --git a/src/no/runsafe/itemflangerorimega/tools/enchants/Lumberjacking.java b/src/no/runsafe/itemflangerorimega/tools/enchants/Lumberjacking.java index 2d6a94a..d0257b5 100644 --- a/src/no/runsafe/itemflangerorimega/tools/enchants/Lumberjacking.java +++ b/src/no/runsafe/itemflangerorimega/tools/enchants/Lumberjack...
true
true
private void breakBlock(IBlock block, int depth) { if (block.is(Item.BuildingBlock.Wood.Any)) { block.breakNaturally(); ILocation location = block.getLocation(); depth += 1; if (depth < 30) { check(location, 1, 0, 0, depth); check(location, -1, 0, 0, depth); check(location, 0, 0, 1, d...
private void breakBlock(IBlock block, int depth) { if (block.is(Item.BuildingBlock.Wood.Any)) { block.breakNaturally(); ILocation location = block.getLocation(); depth += 1; if (depth < 100) { check(location, 1, 0, 0, depth); check(location, -1, 0, 0, depth); check(location, 0, 0, 1, ...
diff --git a/src/main/java/org/primefaces/component/calendar/CalendarRenderer.java b/src/main/java/org/primefaces/component/calendar/CalendarRenderer.java index f8c56e56c..6b7baaff7 100644 --- a/src/main/java/org/primefaces/component/calendar/CalendarRenderer.java +++ b/src/main/java/org/primefaces/component/calendar/C...
true
true
protected void encodeScript(FacesContext context, Calendar calendar, String value) throws IOException { ResponseWriter writer = context.getResponseWriter(); String clientId = calendar.getClientId(context); writer.startElement("script", null); writer.writeAttribute("type", "te...
protected void encodeScript(FacesContext context, Calendar calendar, String value) throws IOException { ResponseWriter writer = context.getResponseWriter(); String clientId = calendar.getClientId(context); writer.startElement("script", null); writer.writeAttribute("type", "te...
diff --git a/web/src/test/java/org/openmrs/web/controller/patient/ShortPatientFormControllerTest.java b/web/src/test/java/org/openmrs/web/controller/patient/ShortPatientFormControllerTest.java index 5ddf9a12..a64d01f6 100644 --- a/web/src/test/java/org/openmrs/web/controller/patient/ShortPatientFormControllerTest.java ...
true
true
public void saveShortPatient_shouldCreateANewPatient() throws Exception { int patientCount = Context.getPatientService().getAllPatients().size(); Patient p = new Patient(); ShortPatientModel patientModel = new ShortPatientModel(p); patientModel.setPersonName(new PersonName("new", "", "patient")); List<Patien...
public void saveShortPatient_shouldCreateANewPatient() throws Exception { int patientCount = Context.getPatientService().getAllPatients().size(); Patient p = new Patient(); ShortPatientModel patientModel = new ShortPatientModel(p); patientModel.setPersonName(new PersonName("new", "", "patient")); List<Patien...
diff --git a/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java b/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java index 5e55a7273..1237e5347 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java +++ b/maven-core/src/main/java/org/apach...
true
true
public void executeMojo( MavenProject project, MojoExecution mojoExecution, MavenSession session ) throws ArtifactResolutionException, MojoExecutionException, MojoFailureException, ArtifactNotFoundException, InvalidDependencyVersionException, PluginManagerException, PluginConfigurationException ...
public void executeMojo( MavenProject project, MojoExecution mojoExecution, MavenSession session ) throws ArtifactResolutionException, MojoExecutionException, MojoFailureException, ArtifactNotFoundException, InvalidDependencyVersionException, PluginManagerException, PluginConfigurationException ...
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java b/src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java index 9020360e8..f971a1704 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java @@ -1,1689 +1,1691 @@ /* ...
false
true
private void buildCalendarBody() { final int weekColumn = 0; final int firstWeekdayColumn = 1; final int headerRow = 0; setWidget(1, 0, days); setCellPadding(0); setCellSpacing(0); getFlexCellFormatter().setColSpan(1, 0, 5); getFlexCellFormatter().se...
private void buildCalendarBody() { final int weekColumn = 0; final int firstWeekdayColumn = 1; final int headerRow = 0; setWidget(1, 0, days); setCellPadding(0); setCellSpacing(0); getFlexCellFormatter().setColSpan(1, 0, 5); getFlexCellFormatter().se...
diff --git a/src/main/java/ar/com/cuyum/cnc/service/TransformationService.java b/src/main/java/ar/com/cuyum/cnc/service/TransformationService.java index 8ad951e..a91cbc0 100644 --- a/src/main/java/ar/com/cuyum/cnc/service/TransformationService.java +++ b/src/main/java/ar/com/cuyum/cnc/service/TransformationService.java...
false
true
private String transformHtml(InputStream xmlStream) throws Exception { // Create a transform factory instance. TransformerFactory tfactory = TransformerFactory.newInstance(); StringWriter resultForm = new StringWriter(); // StringWriter resultData = new StringWriter(); // Create a transformer for the st...
private String transformHtml(InputStream xmlStream) throws Exception { // Create a transform factory instance. TransformerFactory tfactory = TransformerFactory.newInstance(); StringWriter resultForm = new StringWriter(); // StringWriter resultData = new StringWriter(); // Create a transformer for the st...
diff --git a/src/java/org/jdesktop/swingx/plaf/basic/BasicHeaderUI.java b/src/java/org/jdesktop/swingx/plaf/basic/BasicHeaderUI.java index 234c2b72..4f81852d 100644 --- a/src/java/org/jdesktop/swingx/plaf/basic/BasicHeaderUI.java +++ b/src/java/org/jdesktop/swingx/plaf/basic/BasicHeaderUI.java @@ -1,322 +1,320 @@ /* ...
false
true
protected void installDefaults(JXHeader h) { gradientLightColor = UIManager.getColor("JXHeader.startBackground"); if (gradientLightColor == null) { // fallback to white gradientLightColor = Color.WHITE; } gradientDarkColor = UIManager.getColor("JXHeader.background")...
protected void installDefaults(JXHeader h) { gradientLightColor = UIManager.getColor("JXHeader.startBackground"); if (gradientLightColor == null) { // fallback to white gradientLightColor = Color.WHITE; } gradientDarkColor = UIManager.getColor("JXHeader.background")...
diff --git a/src/main/java/hudson/maven/RedeployPublisher.java b/src/main/java/hudson/maven/RedeployPublisher.java index 162ea6f..88e1fd9 100644 --- a/src/main/java/hudson/maven/RedeployPublisher.java +++ b/src/main/java/hudson/maven/RedeployPublisher.java @@ -1,441 +1,441 @@ /* * The MIT License * * Copyright ...
true
true
private MavenEmbedder createEmbedder(TaskListener listener, AbstractBuild<?,?> build) throws MavenEmbedderException, IOException, InterruptedException { MavenInstallation m=null; File settingsLoc = null; String profiles = null; Properties systemProperties = null; String priva...
private MavenEmbedder createEmbedder(TaskListener listener, AbstractBuild<?,?> build) throws MavenEmbedderException, IOException, InterruptedException { MavenInstallation m=null; File settingsLoc = null; String profiles = null; Properties systemProperties = null; String priva...
diff --git a/bte-io/src/main/java/gr/ekt/bteio/loaders/ExcelDataLoader.java b/bte-io/src/main/java/gr/ekt/bteio/loaders/ExcelDataLoader.java index 3bbfc2a..11a1024 100644 --- a/bte-io/src/main/java/gr/ekt/bteio/loaders/ExcelDataLoader.java +++ b/bte-io/src/main/java/gr/ekt/bteio/loaders/ExcelDataLoader.java @@ -1,214 +...
true
true
public RecordSet getRecords() throws MalformedSourceException { try { openReader(); } catch (IOException e) { logger.info("Problem loading file: " + filename + " (" + e.getMessage() + ")"); throw new MalformedSourceException("Proble...
public RecordSet getRecords() throws MalformedSourceException { try { openReader(); } catch (IOException e) { logger.info("Problem loading file: " + filename + " (" + e.getMessage() + ")"); throw new MalformedSourceException("Proble...
diff --git a/comet/service/src/test/java/org/exoplatform/ws/frameworks/cometd/CargoContainer.java b/comet/service/src/test/java/org/exoplatform/ws/frameworks/cometd/CargoContainer.java index 55e2fe80..4dde2547 100644 --- a/comet/service/src/test/java/org/exoplatform/ws/frameworks/cometd/CargoContainer.java +++ b/comet/...
true
true
public static InstalledLocalContainer cargoContainerStart(String port, String home) { try { if (port == null || port == "") { // Default port port = "8080"; } if (home == null || home == "") { // Default home ...
public static InstalledLocalContainer cargoContainerStart(String port, String home) { try { if (port == null || port == "") { // Default port port = "8080"; } if (home == null || home == "") { // Default home ...
diff --git a/modules/org.restlet/src/org/restlet/Finder.java b/modules/org.restlet/src/org/restlet/Finder.java index 7cd1509ba..272e396a0 100644 --- a/modules/org.restlet/src/org/restlet/Finder.java +++ b/modules/org.restlet/src/org/restlet/Finder.java @@ -1,372 +1,372 @@ /* * Copyright 2005-2007 Noelios Consulting....
true
true
public void handle(Request request, Response response) { init(request, response); if (isStarted()) { Resource target = findTarget(request, response); if (!response.getStatus().equals(Status.SUCCESS_OK)) { // Probably during the instantiation of the target re...
public void handle(Request request, Response response) { init(request, response); if (isStarted()) { Resource target = findTarget(request, response); if (!response.getStatus().equals(Status.SUCCESS_OK)) { // Probably during the instantiation of the target re...
diff --git a/src/com/wolvencraft/prison/mines/util/Message.java b/src/com/wolvencraft/prison/mines/util/Message.java index cf350da..74ac0b7 100644 --- a/src/com/wolvencraft/prison/mines/util/Message.java +++ b/src/com/wolvencraft/prison/mines/util/Message.java @@ -1,110 +1,110 @@ package com.wolvencraft.prison.mines.u...
true
true
public static void broadcast(String message) { if(message == null) message = ""; message = PrisonMine.getLanguage().GENERAL_SUCCESS + " " + ChatColor.WHITE + message; for (Player p : Bukkit.getServer().getOnlinePlayers()) { p.sendMessage(Util.parseColors(message)); } }
public static void broadcast(String message) { if(message == null) message = ""; message = PrisonMine.getLanguage().GENERAL_SUCCESS + " " + ChatColor.WHITE + message; for (Player p : Bukkit.getServer().getOnlinePlayers()) { if(p.hasPermission("mcprison.mine.reset.broadcast")) p.sendMessag...
diff --git a/SeriesGuide/src/com/battlelancer/seriesguide/ui/BaseNavDrawerActivity.java b/SeriesGuide/src/com/battlelancer/seriesguide/ui/BaseNavDrawerActivity.java index 4fc6f69d2..b7d81b5f4 100644 --- a/SeriesGuide/src/com/battlelancer/seriesguide/ui/BaseNavDrawerActivity.java +++ b/SeriesGuide/src/com/battlelancer/s...
true
true
private void setupNavDrawer() { mMenuDrawer = getAttachedMenuDrawer(); mMenuDrawer.setTouchMode(MenuDrawer.TOUCH_MODE_BEZEL); // setting size in pixels, oh come on... int menuSize = (int) getResources().getDimension(R.dimen.slidingmenu_width); mMenuDrawer.setMenuSize(menuSiz...
private void setupNavDrawer() { mMenuDrawer = getAttachedMenuDrawer(); mMenuDrawer.setTouchMode(MenuDrawer.TOUCH_MODE_BEZEL); // setting size in pixels, oh come on... int menuSize = (int) getResources().getDimension(R.dimen.slidingmenu_width); mMenuDrawer.setMenuSize(menuSiz...
diff --git a/org.dawnsci.plotting.tools/src/org/dawnsci/plotting/tools/InfoPixelLabelProvider.java b/org.dawnsci.plotting.tools/src/org/dawnsci/plotting/tools/InfoPixelLabelProvider.java index 088a73162..699cfdf87 100644 --- a/org.dawnsci.plotting.tools/src/org/dawnsci/plotting/tools/InfoPixelLabelProvider.java +++ b/o...
true
true
public String getText(Object element) { //TODO could use ToolPageRole on the tool to separate 1D and 2D cases better double xIndex = 0.0; double yIndex = 0.0; double xLabel = Double.NaN; double yLabel = Double.NaN; final IImageTrace trace = tool.getImageTrace(); try { if (element instanceof IRegion...
public String getText(Object element) { //TODO could use ToolPageRole on the tool to separate 1D and 2D cases better double xIndex = 0.0; double yIndex = 0.0; double xLabel = Double.NaN; double yLabel = Double.NaN; final IImageTrace trace = tool.getImageTrace(); try { if (element instanceof IRegion...
diff --git a/war-core/src/main/java/com/silverpeas/portlets/portal/SPDesktopServlet.java b/war-core/src/main/java/com/silverpeas/portlets/portal/SPDesktopServlet.java index ab53b62cde..ed3d6d56fc 100644 --- a/war-core/src/main/java/com/silverpeas/portlets/portal/SPDesktopServlet.java +++ b/war-core/src/main/java/com/si...
true
true
private void doGetPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String spaceHomePage = null; String spaceId = request.getParameter("SpaceId"); if (StringUtil.isDefined(spaceId)) { request.getSession().setAttribute("Silverpeas_Portlet_Spa...
private void doGetPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String spaceHomePage = null; String spaceId = request.getParameter("SpaceId"); if (StringUtil.isDefined(spaceId)) { request.getSession().setAttribute("Silverpeas_Portlet_Spa...
diff --git a/src/me/ashconnell/Fight/Fight.java b/src/me/ashconnell/Fight/Fight.java index bc3f964..1ba8d18 100644 --- a/src/me/ashconnell/Fight/Fight.java +++ b/src/me/ashconnell/Fight/Fight.java @@ -1,444 +1,447 @@ package me.ashconnell.Fight; import java.io.File; import java.util.HashMap; import java.util.Iter...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){ String[] fightCmd = args; if(commandLabel.equalsIgnoreCase("Fight")){ Player player = (Player) sender; // Command: /Fight if(args.length < 1 && this.isSetup() && !fightInProgress && hasPermissions(pl...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){ String[] fightCmd = args; if(commandLabel.equalsIgnoreCase("Fight")){ Player player = (Player) sender; // Command: /Fight if(args.length < 1 && this.isSetup() && !fightInProgress && hasPermissions(pl...
diff --git a/src/distributedRedditAnalyser/spout/RawRedditSpout.java b/src/distributedRedditAnalyser/spout/RawRedditSpout.java index 814437e..d8a0563 100644 --- a/src/distributedRedditAnalyser/spout/RawRedditSpout.java +++ b/src/distributedRedditAnalyser/spout/RawRedditSpout.java @@ -1,178 +1,178 @@ package distribute...
true
true
private Post getNextPost(){ if(QUEUE.size() < 1){ HttpParams parameters = new BasicHttpParams(); parameters.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1); parameters.setParameter(CoreProtocolPNames.HTTP_CONTENT_CHARSET, "ISO-8859-1"); parameters.setBooleanParameter(CoreConne...
private Post getNextPost(){ if(QUEUE.size() < 1){ HttpParams parameters = new BasicHttpParams(); parameters.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, HttpVersion.HTTP_1_1); parameters.setParameter(CoreProtocolPNames.HTTP_CONTENT_CHARSET, "ISO-8859-1"); parameters.setBooleanParameter(CoreConne...
diff --git a/src/Developer.java b/src/Developer.java index cf03327..d4423ba 100644 --- a/src/Developer.java +++ b/src/Developer.java @@ -1,100 +1,98 @@ import java.util.Calendar; import java.util.Random; /** * This model describes the Developer. It extends Programmer. * * @author Yin * @author Shawn * @...
false
true
public void run() { Random ran = new Random(); Boolean hasGoneToLunch = false; Boolean hasGoneToMeeting = false; try { leader.notifyArrival(this); } catch (InterruptedException e) { } long begin = System.currentTimeMillis(); while (System.c...
public void run() { Random ran = new Random(); Boolean hasGoneToLunch = false; Boolean hasGoneToMeeting = false; try { leader.notifyArrival(this); } catch (InterruptedException e) { } while (System.currentTimeMillis() - startTime.getTimeInMillis() ...
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/navigation/ui/controllers/ModuleControllerTest.java b/org.eclipse.riena.tests/src/org/eclipse/riena/navigation/ui/controllers/ModuleControllerTest.java index aa06b5d34..3cf8b85b8 100644 --- a/org.eclipse.riena.tests/src/org/eclipse/riena/navigation/ui/controlle...
true
true
public void testAfterBind() throws Exception { ModuleNode node = new ModuleNode(null); node.setCloseable(true); node.setLabel("Hello"); ModuleController controller = new ModuleController(node); ShellRidget shellRidget = new ShellRidget(); shellRidget.setUIControl(new Shell()); controller.setWindowRidget...
public void testAfterBind() throws Exception { ModuleNode node = new ModuleNode(null); node.setCloseable(true); node.setLabel("Hello"); ModuleController controller = new ModuleController(node); ShellRidget shellRidget = new ShellRidget(); shellRidget.setUIControl(new Shell()); controller.setWindowRidget...
diff --git a/src/com/archmageinc/RealStore/RSExecutor.java b/src/com/archmageinc/RealStore/RSExecutor.java index 242fca9..45379cf 100644 --- a/src/com/archmageinc/RealStore/RSExecutor.java +++ b/src/com/archmageinc/RealStore/RSExecutor.java @@ -1,202 +1,202 @@ package com.archmageinc.RealStore; import org.bukkit.Ch...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String label,String[] args){ if(cmd.getName().equalsIgnoreCase("rs") || cmd.getName().equalsIgnoreCase("RealStore")){ if(!(sender instanceof Player)){ plugin.logMessage("RealStore interactions may only be used by Players!"); return true; } ...
public boolean onCommand(CommandSender sender, Command cmd, String label,String[] args){ if(cmd.getName().equalsIgnoreCase("rs") || cmd.getName().equalsIgnoreCase("RealStore")){ if(!(sender instanceof Player)){ plugin.logMessage("RealStore interactions may only be used by Players!"); return true; } ...
diff --git a/src/main/java/org/elasticsearch/transport/couchbase/capi/ElasticSearchCAPIBehavior.java b/src/main/java/org/elasticsearch/transport/couchbase/capi/ElasticSearchCAPIBehavior.java index 5756b5a..b72ea3c 100644 --- a/src/main/java/org/elasticsearch/transport/couchbase/capi/ElasticSearchCAPIBehavior.java +++ b...
false
true
public List<Object> bulkDocs(String database, List<Map<String, Object>> docs) { String index = getElasticSearchIndexNameFromDatabase(database); BulkRequestBuilder bulkBuilder = client.prepareBulk(); // keep a map of the id - rev for building the response Map<String,String> revisio...
public List<Object> bulkDocs(String database, List<Map<String, Object>> docs) { String index = getElasticSearchIndexNameFromDatabase(database); BulkRequestBuilder bulkBuilder = client.prepareBulk(); // keep a map of the id - rev for building the response Map<String,String> revisio...
diff --git a/src/com/github/mpotacon/chatgear/muteCommand.java b/src/com/github/mpotacon/chatgear/muteCommand.java index adc6fe6..12be064 100644 --- a/src/com/github/mpotacon/chatgear/muteCommand.java +++ b/src/com/github/mpotacon/chatgear/muteCommand.java @@ -1,41 +1,41 @@ package com.github.mpotacon.chatgear; imp...
false
true
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){ if(commandLabel.equalsIgnoreCase("mute")){ if(sender.hasPermission("chatgear.mute")){ if(args.length == 1){ Player player = Bukkit.getServer().getPlayer(args[0]); if(player.isOnline()){ if(player.is...
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){ if(commandLabel.equalsIgnoreCase("mute")){ if(sender.hasPermission("chatgear.mute")){ if(args.length == 1){ Player player = Bukkit.getServer().getPlayer(args[0]); if(player.isOnline()){ if(player.is...
diff --git a/xjc/test/com/sun/tools/xjc/OptionsJUTest.java b/xjc/test/com/sun/tools/xjc/OptionsJUTest.java index 79792f9f..190a94d1 100644 --- a/xjc/test/com/sun/tools/xjc/OptionsJUTest.java +++ b/xjc/test/com/sun/tools/xjc/OptionsJUTest.java @@ -1,139 +1,141 @@ /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS ...
false
true
public void testCreateCodeWriter() throws JClassAlreadyExistsException, IOException { JCodeModel jcm = new JCodeModel(); JDefinedClass c = jcm._class("test.TestClass"); c.constructor(JMod.PUBLIC); o.readOnly = false; //test UTF-8 o.encoding = "UTF-8"; jcm.bui...
public void testCreateCodeWriter() throws JClassAlreadyExistsException, IOException { JCodeModel jcm = new JCodeModel(); JDefinedClass c = jcm._class("test.TestClass"); c.constructor(JMod.PUBLIC); o.readOnly = false; //test UTF-8 o.encoding = "UTF-8"; jcm.bui...
diff --git a/genie-server/src/test/java/com/netflix/genie/server/metrics/TestGenieNodeStatistics.java b/genie-server/src/test/java/com/netflix/genie/server/metrics/TestGenieNodeStatistics.java index 1f725ef860..d02617d0d8 100644 --- a/genie-server/src/test/java/com/netflix/genie/server/metrics/TestGenieNodeStatistics.j...
true
true
public void testRunningJobs() throws InterruptedException, CloudServiceException { // get number of running jobs before we get started int numRunningJobs = JobCountManager.getNumInstanceJobs(); stats.setGenieRunningJobs(0); Assert.assertEquals(stats.getGenieRunningJobs().intValue(), ...
public void testRunningJobs() throws InterruptedException, CloudServiceException { // get number of running jobs before we get started int numRunningJobs = JobCountManager.getNumInstanceJobs(); stats.setGenieRunningJobs(0); Assert.assertEquals(stats.getGenieRunningJobs().intValue(), ...
diff --git a/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/Jsr181ExchangeProcessor.java b/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/Jsr181ExchangeProcessor.java index d8e189cf0..e53ccc79c 100644 --- a/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/Jsr181ExchangeProcessor....
true
true
public void process(MessageExchange exchange) throws Exception { if (exchange.getStatus() == ExchangeStatus.DONE) { return; } else if (exchange.getStatus() == ExchangeStatus.ERROR) { exchange.setStatus(ExchangeStatus.DONE); channel.send(exchange); retu...
public void process(MessageExchange exchange) throws Exception { if (exchange.getStatus() == ExchangeStatus.DONE) { return; } else if (exchange.getStatus() == ExchangeStatus.ERROR) { return; } // TODO: fault should not be serialized as soap // TODO: c...
diff --git a/src/org/broad/igv/DirectoryManager.java b/src/org/broad/igv/DirectoryManager.java index f8a88d75..99ab5d04 100644 --- a/src/org/broad/igv/DirectoryManager.java +++ b/src/org/broad/igv/DirectoryManager.java @@ -1,437 +1,437 @@ /* * Copyright (c) 2007-2012 The Broad Institute, Inc. * SOFTWARE COPYRIGHT ...
true
true
public static File getIgvDirectory() { if (IGV_DIRECTORY == null) { IGV_DIRECTORY = getIgvDirectoryOverride(); // If still null, try the default place if (IGV_DIRECTORY == null) { File rootDir = getUserHome(); IGV_DIRECTORY = new File(ro...
public static File getIgvDirectory() { if (IGV_DIRECTORY == null) { IGV_DIRECTORY = getIgvDirectoryOverride(); // If still null, try the default place if (IGV_DIRECTORY == null) { File rootDir = getUserHome(); IGV_DIRECTORY = new File(ro...
diff --git a/src/main/java/net/daboross/bukkitdev/uberchat/UberChat.java b/src/main/java/net/daboross/bukkitdev/uberchat/UberChat.java index 3cd0ac1..2b0f8e7 100644 --- a/src/main/java/net/daboross/bukkitdev/uberchat/UberChat.java +++ b/src/main/java/net/daboross/bukkitdev/uberchat/UberChat.java @@ -1,59 +1,59 @@ pack...
true
true
private void assignCommands() { PluginCommand colorizor = getCommand("colorizor"); if (colorizor != null) { colorizor.setExecutor(new ColorizorExecutor()); } PluginCommand me = getCommand("me"); if (me != null) { me.setExecutor(new MeExecutor()); ...
private void assignCommands() { PluginCommand colorize = getCommand("colorize"); if (colorize != null) { colorize.setExecutor(new ColorizorExecutor()); } PluginCommand me = getCommand("me"); if (me != null) { me.setExecutor(new MeExecutor()); }...
diff --git a/admin/src/main/java/org/jboss/capedwarf/admin/TimeFormatter.java b/admin/src/main/java/org/jboss/capedwarf/admin/TimeFormatter.java index 94e117e6..5b5bd0f3 100644 --- a/admin/src/main/java/org/jboss/capedwarf/admin/TimeFormatter.java +++ b/admin/src/main/java/org/jboss/capedwarf/admin/TimeFormatter.java @...
true
true
public String format(long millis) { return new Date(millis).toString(); }
public String format(long usec) { return new Date(usec / 1000).toString(); }
diff --git a/app/models/Line.java b/app/models/Line.java index 752ef5c..50650bd 100644 --- a/app/models/Line.java +++ b/app/models/Line.java @@ -1,55 +1,55 @@ package models; import play.data.validation.Email; import play.data.validation.Required; import play.modules.morphia.Model; import play.modules.morphia.M...
false
true
public Line(Budget budget, User user, int line_number, String name, double subtotal, int parent_line_id, int order) { // this.id = id; this.budget = budget; this.user = user; this.line_number = line_number; this.name = name; this.subtotal = subtotal; this.parent_line_id = parent_line_id; ...
public Line(Budget budget, User user, int lineNumber, String name, double subtotal, int parent_line_id, int order) { // this.id = id; this.budget = budget; this.user = user; this.line_number = lineNumber; this.name = name; this.subtotal = subtotal; this.parent_line_id = parent_line_id; ...
diff --git a/src/ServiceDiscovery/ServiceDiscovery.java b/src/ServiceDiscovery/ServiceDiscovery.java index a0e7f043..62c2fc4c 100644 --- a/src/ServiceDiscovery/ServiceDiscovery.java +++ b/src/ServiceDiscovery/ServiceDiscovery.java @@ -1,519 +1,522 @@ /* * ServiceDiscovery.java * * Created on 4.06.2005, 21:12 *...
true
true
public int blockArrived(JabberDataBlock data) { if (!(data instanceof Iq)) return JabberBlockListener.BLOCK_REJECTED; String id=data.getAttribute("id"); if (!id.startsWith("disco")) return JabberBlockListener.BLOCK_REJECTED; if (data.getTypeAttribute().equals("error")) { ...
public int blockArrived(JabberDataBlock data) { if (!(data instanceof Iq)) return JabberBlockListener.BLOCK_REJECTED; String id=data.getAttribute("id"); if (!id.startsWith("disco")) return JabberBlockListener.BLOCK_REJECTED; if (data.getTypeAttribute().equals("error")) { ...
diff --git a/plugins/org.integratedmodelling.thinklab.core/src/org/integratedmodelling/thinklab/rest/RESTUserModel.java b/plugins/org.integratedmodelling.thinklab.core/src/org/integratedmodelling/thinklab/rest/RESTUserModel.java index 20201e48..0ed3e16c 100644 --- a/plugins/org.integratedmodelling.thinklab.core/src/org...
true
true
public IInstance getUserInstance() throws ThinklabException { IInstance ret = session.retrieveObject("user"); if (ret == null) { String user = properties.getProperty("authenticated-user"); if (user == null) return null; ret = AuthenticationManager.get().getUserInstance(user, session); } ...
public IInstance getUserInstance() throws ThinklabException { IInstance ret = session.retrieveObject("user"); if (ret == null && properties != null) { String user = properties.getProperty("authenticated-user"); if (user == null) return null; ret = AuthenticationManager.get().getUserInstanc...
diff --git a/src/kundera-elastic-search/src/test/java/com/impetus/client/es/ESClientTest.java b/src/kundera-elastic-search/src/test/java/com/impetus/client/es/ESClientTest.java index ad1a2834b..0eb7a8139 100644 --- a/src/kundera-elastic-search/src/test/java/com/impetus/client/es/ESClientTest.java +++ b/src/kundera-elas...
true
true
private void getEntityManagerFactory() { ClientMetadata clientMetadata = new ClientMetadata(); Map<String, Object> props = new HashMap<String, Object>(); props.put(Constants.PERSISTENCE_UNIT_NAME, persistenceUnit); props.put(PersistenceProperties.KUNDERA_CLIENT_FACTORY, ESClient...
private void getEntityManagerFactory() { ClientMetadata clientMetadata = new ClientMetadata(); Map<String, Object> props = new HashMap<String, Object>(); props.put(Constants.PERSISTENCE_UNIT_NAME, persistenceUnit); props.put(PersistenceProperties.KUNDERA_CLIENT_FACTORY, ESClient...