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/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/validation/FlowValidationFactory.java b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/validation/FlowValidationFactory.java index b6f7b527..5a9ff1c9 100644 --- a/plugins/org.eclipse.dltk.ja...
false
true
public IBuildParticipant createBuildParticipant(IScriptProject project) throws CoreException { return new FlowValidation() { final Set<FunctionStatement> inconsistentReturns = new HashSet<FunctionStatement>(); @Override public void build(IBuildContext context) throws CoreException { super.build(con...
public IBuildParticipant createBuildParticipant(IScriptProject project) throws CoreException { return new FlowValidation() { private Set<FunctionStatement> inconsistentReturns; @Override public void build(IBuildContext context) throws CoreException { super.build(context); if (inconsistentReturn...
diff --git a/firefox/src/java/org/openqa/selenium/firefox/FirefoxProfile.java b/firefox/src/java/org/openqa/selenium/firefox/FirefoxProfile.java index 8a5c9119b..2701c1b26 100644 --- a/firefox/src/java/org/openqa/selenium/firefox/FirefoxProfile.java +++ b/firefox/src/java/org/openqa/selenium/firefox/FirefoxProfile.java...
true
true
public void updateUserPrefs() { if (port == 0) { throw new WebDriverException("You must set the port to listen on before updating user.js"); } Map<String, String> prefs = new HashMap<String, String>(); // Allow users to override these settings prefs.put("browser...
public void updateUserPrefs() { if (port == 0) { throw new WebDriverException("You must set the port to listen on before updating user.js"); } Map<String, String> prefs = new HashMap<String, String>(); // Allow users to override these settings prefs.put("browser...
diff --git a/src/com/cpcookieman/cookieirc/CommandProcessor.java b/src/com/cpcookieman/cookieirc/CommandProcessor.java index 09dab94..d1e3bc3 100644 --- a/src/com/cpcookieman/cookieirc/CommandProcessor.java +++ b/src/com/cpcookieman/cookieirc/CommandProcessor.java @@ -1,163 +1,163 @@ package com.cpcookieman.cookieirc;...
true
true
public void process(String s, int tab) { if(s.equals("")) { } else if(s.equals("/spinner")) { new Thread(new Runnable() { @Override public void run() { final JWindow newFrame = new JWindow(); Main.frame.setEnabled(false); newFrame.setVisible(false); newFrame.add(new...
public void process(String s, int tab) { if(s.equals("")) { } else if(s.equals("/spinner")) { new Thread(new Runnable() { @Override public void run() { final JWindow newFrame = new JWindow(); Main.frame.setEnabled(false); newFrame.setVisible(false); newFrame.add(new...
diff --git a/pgsnapshot/src/org/openstreetmap/osmosis/pgsnapshot/v0_6/impl/PostgreSqlDatasetContext.java b/pgsnapshot/src/org/openstreetmap/osmosis/pgsnapshot/v0_6/impl/PostgreSqlDatasetContext.java index 266891a0..28d565e1 100644 --- a/pgsnapshot/src/org/openstreetmap/osmosis/pgsnapshot/v0_6/impl/PostgreSqlDatasetCont...
true
true
public ReleasableIterator<EntityContainer> iterateBoundingBox( double left, double right, double top, double bottom, boolean completeWays) { List<Bound> bounds; Point[] bboxPoints; Polygon bboxPolygon; int rowCount; List<ReleasableIterator<EntityContainer>> resultSets; if (!initialized) { initiali...
public ReleasableIterator<EntityContainer> iterateBoundingBox( double left, double right, double top, double bottom, boolean completeWays) { List<Bound> bounds; Point[] bboxPoints; Polygon bboxPolygon; int rowCount; List<ReleasableIterator<EntityContainer>> resultSets; if (!initialized) { initiali...
diff --git a/example/src/edu/mit/mobile/android/content/example/SampleProvider.java b/example/src/edu/mit/mobile/android/content/example/SampleProvider.java index 7ca965e..4c9a8f4 100644 --- a/example/src/edu/mit/mobile/android/content/example/SampleProvider.java +++ b/example/src/edu/mit/mobile/android/content/example...
true
true
public SampleProvider() { super(AUTHORITY, DB_VERSION); // This helper creates the table and can do basic database queries. See // Message for more info. final DBHelper messageHelper = new GenericDBHelper(Message.class, Message.CONTENT_URI); // This adds a mapping between the given content:// URI path ...
public SampleProvider() { super(AUTHORITY, DB_VERSION); // This helper creates the table and can do basic database queries. See // Message for more info. final DBHelper messageHelper = new GenericDBHelper(Message.class); // This adds a mapping between the given content:// URI path and the // helper. ad...
diff --git a/src/mmb/foss/aueb/icong/DrawableAreaView.java b/src/mmb/foss/aueb/icong/DrawableAreaView.java index f405b03..528283e 100644 --- a/src/mmb/foss/aueb/icong/DrawableAreaView.java +++ b/src/mmb/foss/aueb/icong/DrawableAreaView.java @@ -1,308 +1,308 @@ package mmb.foss.aueb.icong; import java.io.InputStream...
true
true
public boolean onTouchEvent(MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: if (showTrash && onTrash(event.getX(), event.getY())) { // if trash icon is visible and clicked delete the possibleTrash // box deleteBox(possibleTrash); possibleTrash = null; } box ...
public boolean onTouchEvent(MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: if (showTrash && onTrash(event.getX(), event.getY())) { // if trash icon is visible and clicked delete the possibleTrash // box deleteBox(possibleTrash); possibleTrash = null; } box ...
diff --git a/impl/dao/src/java/org/sakaiproject/poll/dao/impl/PollVoteManagerDaoImpl.java b/impl/dao/src/java/org/sakaiproject/poll/dao/impl/PollVoteManagerDaoImpl.java index 848f8a9..dc0f52a 100644 --- a/impl/dao/src/java/org/sakaiproject/poll/dao/impl/PollVoteManagerDaoImpl.java +++ b/impl/dao/src/java/org/sakaiproje...
true
true
public boolean saveVote(Vote vote) { try { getHibernateTemplate().save(vote); } catch (DataAccessException e) { log.error("Hibernate could not save: " + e.toString()); e.printStackTrace(); return false; } //Session sess = ; //we need the siteID log.info(" Vote " + vote.getId() + " succ...
public boolean saveVote(Vote vote) { try { getHibernateTemplate().save(vote); } catch (DataAccessException e) { log.error("Hibernate could not save: " + e.toString()); e.printStackTrace(); return false; } //Session sess = ; //we need the siteID log.debug(" Vote " + vote.getId() + " suc...
diff --git a/ActivityManagerWebPrivate/ActivityManagerWebPrivate-war/src/java/eas/asu/edu/snac/activitymanager/servlets/RegisterNewUser.java b/ActivityManagerWebPrivate/ActivityManagerWebPrivate-war/src/java/eas/asu/edu/snac/activitymanager/servlets/RegisterNewUser.java index 73f0f53..c887039 100644 --- a/ActivityManag...
false
true
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); try { // Get all the information from the...
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); try { // Get all the information from the...
diff --git a/Statics/src/edu/gatech/statics/modes/fbd/FBDChecker.java b/Statics/src/edu/gatech/statics/modes/fbd/FBDChecker.java index 7d2f4d09..186b2afc 100644 --- a/Statics/src/edu/gatech/statics/modes/fbd/FBDChecker.java +++ b/Statics/src/edu/gatech/statics/modes/fbd/FBDChecker.java @@ -1,968 +1,968 @@ /* * To ch...
true
true
public boolean checkDiagram() { //done = false; // step 1: assemble a list of all the forces the user has added. List<Load> addedLoads = getAddedLoads(); logInfo("check: user added loads: " + addedLoads); if (addedLoads.size() <= 0) { logInfo("check: diagram d...
public boolean checkDiagram() { //done = false; // step 1: assemble a list of all the forces the user has added. List<Load> addedLoads = new ArrayList<Load>(getAddedLoads()); logInfo("check: user added loads: " + addedLoads); if (addedLoads.size() <= 0) { logI...
diff --git a/sgs-server/src/main/java/com/sun/sgs/impl/profile/ProfileReportImpl.java b/sgs-server/src/main/java/com/sun/sgs/impl/profile/ProfileReportImpl.java index 5b4e63c35..887439189 100644 --- a/sgs-server/src/main/java/com/sun/sgs/impl/profile/ProfileReportImpl.java +++ b/sgs-server/src/main/java/com/sun/sgs/imp...
true
true
void merge(ProfileReportImpl report) { // for each of the child task counters and samples, we first // check whether the task recorded any data. If so, then we // copy the data to this report. if (report.taskCounters != null) { if (taskCounters == null) { taskCounters = new HashMap<String,Long>...
void merge(ProfileReportImpl report) { // for each of the child task counters and samples, we first // check whether the task recorded any data. If so, then we // copy the data to this report. if (report.taskCounters != null) { if (taskCounters == null) { taskCounters = new HashMap<String,Long>...
diff --git a/src/main/java/com/jdkcn/jabber/web/servlet/IndexServlet.java b/src/main/java/com/jdkcn/jabber/web/servlet/IndexServlet.java index fde1ccc..545a493 100644 --- a/src/main/java/com/jdkcn/jabber/web/servlet/IndexServlet.java +++ b/src/main/java/com/jdkcn/jabber/web/servlet/IndexServlet.java @@ -1,73 +1,73 @@ ...
true
true
protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { JsonNode jsonConfig = (JsonNode) req.getServletContext().getAttribute(Constants.JABBERERJSONCONFIG); User loginUser = (User) req.getSession().getAttribute(Constants.LOGIN_USER); Li...
protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { JsonNode jsonConfig = (JsonNode) req.getServletContext().getAttribute(Constants.JABBERERJSONCONFIG); User loginUser = (User) req.getSession().getAttribute(Constants.LOGIN_USER); Li...
diff --git a/tests/tests/view/src/android/view/cts/View_AnimationTest.java b/tests/tests/view/src/android/view/cts/View_AnimationTest.java index 7a22a3b5..06763f53 100644 --- a/tests/tests/view/src/android/view/cts/View_AnimationTest.java +++ b/tests/tests/view/src/android/view/cts/View_AnimationTest.java @@ -1,169 +1,...
false
true
public void testClearDuringAnimation() throws Throwable { final View view = mActivity.findViewById(R.id.fit_windows); runTestOnUiThread(new Runnable() { public void run() { view.startAnimation(mAnimation); } }); new DelayedCheck(TIME_OUT) { ...
public void testClearDuringAnimation() throws Throwable { final View view = mActivity.findViewById(R.id.fit_windows); runTestOnUiThread(new Runnable() { public void run() { view.startAnimation(mAnimation); assertNotNull(view.getAnimation()); } ...
diff --git a/src/org/geworkbench/util/pathwaydecoder/mutualinformation/AdjacencyMatrixDataSet.java b/src/org/geworkbench/util/pathwaydecoder/mutualinformation/AdjacencyMatrixDataSet.java index 2e0ef05e..17fb8fdf 100755 --- a/src/org/geworkbench/util/pathwaydecoder/mutualinformation/AdjacencyMatrixDataSet.java +++ b/src...
false
true
public void writeToFile(String fileName) { File file = new File(fileName); try { file.createNewFile(); if (!file.canWrite()) { JOptionPane.showMessageDialog(null, "Cannot write to specified file."); return; } BufferedWr...
public void writeToFile(String fileName) { File file = new File(fileName); try { file.createNewFile(); if (!file.canWrite()) { JOptionPane.showMessageDialog(null, "Cannot write to specified file."); return; } BufferedWr...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/JavaPrimitiveValueEditor.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/JavaPrimitiveValueEditor.java index 68f81a9ae..49e0ff915 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/act...
true
true
public String isValid(String newText) { String type= null; switch (fSignature.charAt(0)) { case 'B': try { Byte.parseByte(newText); } catch (NumberFormatException e) { type= "byte"; //$NON-NLS-1$ ...
public String isValid(String newText) { String type= null; switch (fSignature.charAt(0)) { case 'B': try { Byte.parseByte(newText); } catch (NumberFormatException e) { type= "byte"; //$NON-NLS-1$ ...
diff --git a/src/main/java/me/limebyte/battlenight/core/util/BattleClass.java b/src/main/java/me/limebyte/battlenight/core/util/BattleClass.java index 5921d7c..8fb8552 100644 --- a/src/main/java/me/limebyte/battlenight/core/util/BattleClass.java +++ b/src/main/java/me/limebyte/battlenight/core/util/BattleClass.java @@ ...
true
true
public void equip(Player player) { PlayerInventory inv = player.getInventory(); inv.setContents((ItemStack[]) items.toArray()); inv.setHelmet(armour.get(0)); inv.setChestplate(armour.get(1)); inv.setLeggings(armour.get(2)); inv.setBoots(armour.get(3)); }
public void equip(Player player) { PlayerInventory inv = player.getInventory(); inv.setContents(items.toArray(new ItemStack[items.size()])); inv.setHelmet(armour.get(0)); inv.setChestplate(armour.get(1)); inv.setLeggings(armour.get(2)); inv.setBoots(armour.get(3)); ...
diff --git a/src/org/eclipse/jface/window/ToolTip.java b/src/org/eclipse/jface/window/ToolTip.java index 5d6e350d..82439856 100644 --- a/src/org/eclipse/jface/window/ToolTip.java +++ b/src/org/eclipse/jface/window/ToolTip.java @@ -1,633 +1,633 @@ /***********************************************************************...
false
true
private Point fixupDisplayBounds(Point tipSize, Point location) { if (respectDisplayBounds || respectMonitorBounds) { Rectangle bounds; Point rightBounds = new Point(tipSize.x + location.x, tipSize.y + location.y); Monitor[] ms = control.getDisplay().getMonitors(); if (respectMonitorBounds && ms.l...
private Point fixupDisplayBounds(Point tipSize, Point location) { if (respectDisplayBounds || respectMonitorBounds) { Rectangle bounds; Point rightBounds = new Point(tipSize.x + location.x, tipSize.y + location.y); Monitor[] ms = control.getDisplay().getMonitors(); if (respectMonitorBounds && ms.l...
diff --git a/src/test/java/org/agmip/translators/dssat/DssatAcmoCsvTranslatorTest.java b/src/test/java/org/agmip/translators/dssat/DssatAcmoCsvTranslatorTest.java index c3e55c4..5fcd170 100644 --- a/src/test/java/org/agmip/translators/dssat/DssatAcmoCsvTranslatorTest.java +++ b/src/test/java/org/agmip/translators/dssat...
true
true
public void test() throws IOException, Exception { ArrayList<LinkedHashMap> result; String filePath = "src\\test\\java\\org\\agmip\\translators\\dssat\\testCsv.ZIP"; result = obDssatOutputFileInput.readFileAll(filePath); // System.out.println(JSONAdapter.toJSON(result)); File...
public void test() throws IOException, Exception { ArrayList<LinkedHashMap> result; String filePath = "src\\test\\java\\org\\agmip\\translators\\dssat\\testCsv.ZIP"; result = obDssatOutputFileInput.readFileAll(filePath); // System.out.println(JSONAdapter.toJSON(result)); File...
diff --git a/framework-ios/src/com/turpgames/framework/impl/ios/IOSProvider.java b/framework-ios/src/com/turpgames/framework/impl/ios/IOSProvider.java index 2cc2770..149b685 100644 --- a/framework-ios/src/com/turpgames/framework/impl/ios/IOSProvider.java +++ b/framework-ios/src/com/turpgames/framework/impl/ios/IOSProvi...
false
true
public Version getVersion() { if (version == null) { try { NSBundle mainBundle = NSBundle.getMainBundle(); if (mainBundle == null) System.out.println("mainBundle is null"); NSDictionary infoDictionary = mainBundle.getInfoDictionary(); if (infoDictionary == null) System.out.println("...
public Version getVersion() { if (version == null) { try { NSBundle mainBundle = NSBundle.getMainBundle(); if (mainBundle == null) throw new Exception("mainBundle is null"); NSDictionary infoDictionary = mainBundle.getInfoDictionary(); if (infoDictionary == null) throw new Exception...
diff --git a/test_rosjava/test/Testee.java b/test_rosjava/test/Testee.java index 3c0a096..32a42cb 100644 --- a/test_rosjava/test/Testee.java +++ b/test_rosjava/test/Testee.java @@ -1,267 +1,267 @@ import ros.*; import ros.communication.*; import ros.pkg.test_rosjava.msg.*; import ros.pkg.test_rosjava.srv.*; impo...
false
true
public static void main(String [] args) throws InterruptedException, RosException{ System.out.println("Starting rosjava."); Ros ros = Ros.getInstance(); ros.init("testNode"); System.out.println("Initialized"); NodeHandle n = ros.createNodeHandle(); // Can't call Time::now() and ros.log*() until *after* ...
public static void main(String [] args) throws InterruptedException, RosException{ System.out.println("Starting rosjava."); Ros ros = Ros.getInstance(); ros.init("testNode"); System.out.println("Initialized"); NodeHandle n = ros.createNodeHandle(); // Can't call Time::now() and ros.log*() until *after* ...
diff --git a/src/ams/ams_util/mvm/classes/com/sun/midp/main/AmsUtil.java b/src/ams/ams_util/mvm/classes/com/sun/midp/main/AmsUtil.java index 06d76942..b0ab346a 100644 --- a/src/ams/ams_util/mvm/classes/com/sun/midp/main/AmsUtil.java +++ b/src/ams/ams_util/mvm/classes/com/sun/midp/main/AmsUtil.java @@ -1,598 +1,600 @@ ...
true
true
private static Isolate startMidletCommon(MIDletSuiteStorage midletSuiteStorage, int externalAppId, int id, String midlet, String displayName, String arg0, String arg1, String arg2, int memoryReserved, int memoryTotal, int priority, String profileName, int ...
private static Isolate startMidletCommon(MIDletSuiteStorage midletSuiteStorage, int externalAppId, int id, String midlet, String displayName, String arg0, String arg1, String arg2, int memoryReserved, int memoryTotal, int priority, String profileName, int ...
diff --git a/src/instructions/UIG_Arithmetic.java b/src/instructions/UIG_Arithmetic.java index 8f8bdfb..700adbb 100644 --- a/src/instructions/UIG_Arithmetic.java +++ b/src/instructions/UIG_Arithmetic.java @@ -1,277 +1,277 @@ package instructions; import static assemblernator.ErrorReporting.makeError; import assemb...
false
true
public final boolean check(ErrorHandler hErr, Module module) { boolean isValid = true; // any size under two is invalid if (this.operands.size() < 2) { isValid = false; hErr.reportError(makeError("instructionMissingOp", this.getOpId(), ""), this.lineNum, -1); // checks all combinations for two operands ...
public final boolean check(ErrorHandler hErr, Module module) { boolean isValid = true; // any size under two is invalid if (this.operands.size() < 2) { isValid = false; hErr.reportError(makeError("instructionMissingOp", this.getOpId(), ""), this.lineNum, -1); // checks all combinations for two operands ...
diff --git a/src/Couch25K.java b/src/Couch25K.java index 9390e8e..c204961 100644 --- a/src/Couch25K.java +++ b/src/Couch25K.java @@ -1,307 +1,307 @@ import java.io.IOException; import java.io.InputStream; import java.util.Timer; import java.util.TimerTask; import javax.microedition.lcdui.Choice; import javax.mi...
true
true
protected void startApp() throws MIDletStateChangeException { if (display == null) { display = Display.getDisplay(this); bigBoldFont = Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_BOLD, Font.SIZE_LARGE); // Week selection screen setup selectWeekScreen = ne...
protected void startApp() throws MIDletStateChangeException { if (display == null) { display = Display.getDisplay(this); bigBoldFont = Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_BOLD, Font.SIZE_LARGE); // Week selection screen setup selectWeekScreen = ne...
diff --git a/core/src/main/java/com/predic8/membrane/core/transport/http/ConnectionManager.java b/core/src/main/java/com/predic8/membrane/core/transport/http/ConnectionManager.java index 007af39a..4aacb7e5 100644 --- a/core/src/main/java/com/predic8/membrane/core/transport/http/ConnectionManager.java +++ b/core/src/mai...
true
true
private int closeOldConnections() { ArrayList<ConnectionKey> toRemove = new ArrayList<ConnectionKey>(); ArrayList<Connection> toClose = new ArrayList<Connection>(); long now = System.currentTimeMillis(); log.trace("closing old connections"); int closed = 0, remaining; synchronized(this) { // close conne...
private int closeOldConnections() { ArrayList<ConnectionKey> toRemove = new ArrayList<ConnectionKey>(); ArrayList<Connection> toClose = new ArrayList<Connection>(); long now = System.currentTimeMillis(); log.trace("closing old connections"); int closed = 0, remaining; synchronized(this) { // close conne...
diff --git a/src/main/java/org/soundboard/server/command/ListCommand.java b/src/main/java/org/soundboard/server/command/ListCommand.java index a16ceeb..cbe2be7 100644 --- a/src/main/java/org/soundboard/server/command/ListCommand.java +++ b/src/main/java/org/soundboard/server/command/ListCommand.java @@ -1,87 +1,92 @@ ...
false
true
@Override public String execute(InputService inputService, String who, String[] args, boolean isCron, boolean respondWithHtml) { LoggingService.getInstance().serverLog(who + ": " + Joiner.on(" ").join(args)); StringBuilder out = new StringBuilder(); SoundLibrary library = args.length > 1 && SoundLi...
@Override public String execute(InputService inputService, String who, String[] args, boolean isCron, boolean respondWithHtml) { LoggingService.getInstance().serverLog(who + ": " + Joiner.on(" ").join(args)); StringBuilder out = new StringBuilder(); SoundLibrary library = args.length > 1 && SoundLi...
diff --git a/src/jtvprog/RibbonReleaser.java b/src/jtvprog/RibbonReleaser.java index a8465dd..589986e 100644 --- a/src/jtvprog/RibbonReleaser.java +++ b/src/jtvprog/RibbonReleaser.java @@ -1,114 +1,114 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package jt...
false
true
public void release() { if (!this.allowIncomplete && JTVProg.isPass()) { this.status = "Невозможно выпустить: пропущены каналы!"; return; } if (this.channelRelease) { for (int chIndex = 1; chIndex < JTVProg.configer.ChannelProcessor.getSetSize(); chIndex++...
public void release() { if (!this.allowIncomplete && JTVProg.isPass()) { this.status = "Невозможно выпустить: пропущены каналы!"; return; } if (this.channelRelease) { for (int chIndex = 1; chIndex < JTVProg.configer.ChannelProcessor.getSetSize() + 1; chInd...
diff --git a/acceptanceTests/src/test/java/org/mifos/test/acceptance/framework/savingsproduct/DefineNewSavingsProductPage.java b/acceptanceTests/src/test/java/org/mifos/test/acceptance/framework/savingsproduct/DefineNewSavingsProductPage.java index 7598c6a9b..85b4ffa50 100644 --- a/acceptanceTests/src/test/java/org/mif...
false
true
public DefineNewSavingsProductPreviewPage submitAndNavigateToDefineNewSavingsProductPreviewPage(SavingsProductParameters productParameters) { selenium.type("CreateSavingsProduct.input.prdOfferingName", productParameters.getProductInstanceName()); selenium.type("CreateSavingsProduct.input.prdOffering...
public DefineNewSavingsProductPreviewPage submitAndNavigateToDefineNewSavingsProductPreviewPage(SavingsProductParameters productParameters) { selenium.type("CreateSavingsProduct.input.prdOfferingName", productParameters.getProductInstanceName()); selenium.type("CreateSavingsProduct.input.prdOffering...
diff --git a/src/com/kurento/kas/mscontrol/networkconnection/internal/NetworkConnectionImpl.java b/src/com/kurento/kas/mscontrol/networkconnection/internal/NetworkConnectionImpl.java index 74d480b..3512c1b 100644 --- a/src/com/kurento/kas/mscontrol/networkconnection/internal/NetworkConnectionImpl.java +++ b/src/com/kur...
true
true
public SessionSpec generateSessionSpec() { int payload = 96; // VIDEO MediaSpec videoMedia = null; if (videoProfiles != null && videoProfiles.size() > 0) { List<PayloadSpec> videoList = new Vector<PayloadSpec>(); for (VideoProfile vp : videoProfiles) { if (VideoProfile.MPEG4.equals(vp)) addPay...
public SessionSpec generateSessionSpec() { int payload = 96; // VIDEO MediaSpec videoMedia = null; if (videoProfiles != null && videoProfiles.size() > 0) { List<PayloadSpec> videoList = new Vector<PayloadSpec>(); for (VideoProfile vp : videoProfiles) { if (VideoProfile.MPEG4.equals(vp)) addPay...
diff --git a/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/marshallers/AmqCppMarshallingHeadersGenerator.java b/activemq-cpp-openwire-generator/src/main/java/org/apache/activemq/openwire/tool/marshallers/AmqCppMarshallingHeadersGenerator.java index af0ad9d2..fc49a64c 100644 --- a/activ...
false
true
protected void generateFile(PrintWriter out) throws Exception { generateLicence(out); out.println(""); out.println("#ifndef _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V"+getOpenwireVersion()+"_"+className.toUpperCase()+"_H_"); out.println("#define _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V"+getOpenwireVersion()+...
protected void generateFile(PrintWriter out) throws Exception { generateLicence(out); out.println(""); out.println("#ifndef _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V"+getOpenwireVersion()+"_"+className.toUpperCase()+"_H_"); out.println("#define _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSAHAL_V"+getOpenwireVersion()+...
diff --git a/spring-social-config/src/main/java/org/springframework/social/config/xml/JdbcConnectionRepositoryElementParser.java b/spring-social-config/src/main/java/org/springframework/social/config/xml/JdbcConnectionRepositoryElementParser.java index 665ff252..5c387020 100644 --- a/spring-social-config/src/main/java/...
false
true
public BeanDefinition parse(Element element, ParserContext parserContext) { BeanDefinitionBuilder beanBuilder = BeanDefinitionBuilder .genericBeanDefinition(JdbcConnectionRepository.class); String jdbcTemplate = element.getAttribute("jdbc-template"); beanBuilder.addConstructorArgReference(jdbcTemplate); Stri...
public BeanDefinition parse(Element element, ParserContext parserContext) { BeanDefinitionBuilder beanBuilder = BeanDefinitionBuilder.genericBeanDefinition(JdbcConnectionRepository.class); String dataSource = element.getAttribute("data-source"); beanBuilder.addConstructorArgReference(dataSource); String stri...
diff --git a/src/main/java/hudson/plugins/promoted_builds/conditions/DownstreamPassCondition.java b/src/main/java/hudson/plugins/promoted_builds/conditions/DownstreamPassCondition.java index c94eb06..9da94b8 100644 --- a/src/main/java/hudson/plugins/promoted_builds/conditions/DownstreamPassCondition.java +++ b/src/main...
false
true
public void onCompleted(AbstractBuild<?,?> build, TaskListener listener) { // this is not terribly efficient, for(AbstractProject<?,?> j : Hudson.getInstance().getAllItems(AbstractProject.class)) { JobPropertyImpl p = j.getProperty(JobPropertyImpl.class); ...
public void onCompleted(AbstractBuild<?,?> build, TaskListener listener) { // this is not terribly efficient, for(AbstractProject<?,?> j : Hudson.getInstance().getAllItems(AbstractProject.class)) { JobPropertyImpl p = j.getProperty(JobPropertyImpl.class); ...
diff --git a/openejb-itests-client/src/main/java/org/apache/openejb/test/IvmTestServer.java b/openejb-itests-client/src/main/java/org/apache/openejb/test/IvmTestServer.java index f77b477..ed6edcb 100644 --- a/openejb-itests-client/src/main/java/org/apache/openejb/test/IvmTestServer.java +++ b/openejb-itests-client/src/...
true
true
public void init(Properties props){ properties = new Properties(); properties.putAll(props); try{ props.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.LocalInitialContextFactory"); Properties p = new Properties(); p.putAl...
public void init(Properties props){ properties = props; try{ props.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.LocalInitialContextFactory"); Properties p = new Properties(); p.putAll(props); p.put("openejb.loader",...
diff --git a/Compiler/java/AppleCoreCompiler/AVM/AVMTranslatorPass.java b/Compiler/java/AppleCoreCompiler/AVM/AVMTranslatorPass.java index 4dd5d81..49b2c0f 100644 --- a/Compiler/java/AppleCoreCompiler/AVM/AVMTranslatorPass.java +++ b/Compiler/java/AppleCoreCompiler/AVM/AVMTranslatorPass.java @@ -1,611 +1,611 @@ /** ...
true
true
public void visitBinopExpression(BinopExpression node) throws ACCError { int size = Math.max(node.left.size,node.right.size); // Evaluate left needAddress = false; scan(node.left); adjustSize(size,node.left.size,node.left.isSigned); // Evaluate right needAddress = false; scan(node.right); if (node....
public void visitBinopExpression(BinopExpression node) throws ACCError { int size = Math.max(node.left.size,node.right.size); // Evaluate left needAddress = false; scan(node.left); adjustSize(size,node.left.size,node.left.isSigned); // Evaluate right needAddress = false; scan(node.right); if (node....
diff --git a/plugins/org.eclipse.wst.common.frameworks/src/org/eclipse/wst/common/frameworks/internal/OperationManager.java b/plugins/org.eclipse.wst.common.frameworks/src/org/eclipse/wst/common/frameworks/internal/OperationManager.java index 6fb0d412..78e77e93 100644 --- a/plugins/org.eclipse.wst.common.frameworks/src...
true
true
private boolean runOperationsUntilStopped(RunListEntry runListEntry) { StackEntry stackEntry = (StackEntry) runListEntry.stackEntries.peek(); boolean continueRun = true; // Run the pre operations. for (int index = stackEntry.preOperationIndex + 1; continueRun && index < stackEntry.tableEntry.preOperations.siz...
private boolean runOperationsUntilStopped(RunListEntry runListEntry) { StackEntry stackEntry = (StackEntry) runListEntry.stackEntries.peek(); boolean continueRun = true; // Run the pre operations. for (int index = stackEntry.preOperationIndex + 1; continueRun && index < stackEntry.tableEntry.preOperations.siz...
diff --git a/htroot/Bookmarks.java b/htroot/Bookmarks.java index 96b7b0d15..2f8a8b8c0 100644 --- a/htroot/Bookmarks.java +++ b/htroot/Bookmarks.java @@ -1,282 +1,285 @@ // Bookmarks_p.java // ----------------------- // part of YACY // (C) by Michael Peter Christen; mc@anomic.de // first published on http://www.an...
true
true
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { serverObjects prop = new serverObjects(); plasmaSwitchboard switchboard = (plasmaSwitchboard) env; int max_count=10; String tagName=""; int start=0; boolean isAdmin=switchboard.verifyAuthentication...
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { serverObjects prop = new serverObjects(); plasmaSwitchboard switchboard = (plasmaSwitchboard) env; int max_count=10; String tagName=""; int start=0; boolean isAdmin=switchboard.verifyAuthentication...
diff --git a/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java b/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java index 1c8cc78b..f70fa0af 100644 --- a/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java +++ b/parser/src/main/java/org/apache/abdera/parser/stax/FOMElemen...
false
true
protected OMElement _copyElement(OMElement src, OMElement dest) { for (Iterator i = src.getAllAttributes(); i.hasNext();) { OMAttribute attr = (OMAttribute) i.next(); dest.addAttribute( attr.getLocalName(), attr.getAttributeValue(), (attr.getNamespace() != null) ? ...
protected OMElement _copyElement(OMElement src, OMElement dest) { for (Iterator i = src.getAllAttributes(); i.hasNext();) { OMAttribute attr = (OMAttribute) i.next(); dest.addAttribute(attr); dest.addAttribute( factory.createOMAttribute( attr.getLocalName(), attr.get...
diff --git a/src/be/ibridge/kettle/trans/step/combinationlookup/CombinationLookup.java b/src/be/ibridge/kettle/trans/step/combinationlookup/CombinationLookup.java index 2c0066d3..5bd965ca 100644 --- a/src/be/ibridge/kettle/trans/step/combinationlookup/CombinationLookup.java +++ b/src/be/ibridge/kettle/trans/step/combin...
true
true
private void lookupValues(Row row) throws KettleException { Value val_hash = null; Value val_key = null; if (first) { debug="First: lookup keys etc"; first=false; // Lookup values data.keynrs = new int[meta.getKeyField().length]; for (int i=0;i<meta.getKeyField().length;i++) ...
private void lookupValues(Row row) throws KettleException { Value val_hash = null; Value val_key = null; if (first) { debug="First: lookup keys etc"; first=false; // Lookup values data.keynrs = new int[meta.getKeyField().length]; for (int i=0;i<meta.getKeyField().length;i++) ...
diff --git a/src/main/java/org/atlasapi/remotesite/space/TheSpaceItemProcessor.java b/src/main/java/org/atlasapi/remotesite/space/TheSpaceItemProcessor.java index f46688a7c..a136369a5 100644 --- a/src/main/java/org/atlasapi/remotesite/space/TheSpaceItemProcessor.java +++ b/src/main/java/org/atlasapi/remotesite/space/Th...
true
true
private void makeEpisode(Episode episode, JsonNode node, ObjectMapper mapper) throws Exception { JsonNode pid = node.get("pid"); episode.setCanonicalUri(getCanonicalUri(pid.asText())); JsonNode title = node.get("title"); episode.setTitle(title.asText()); JsonNode position =...
private void makeEpisode(Episode episode, JsonNode node, ObjectMapper mapper) throws Exception { JsonNode pid = node.get("pid"); episode.setCanonicalUri(getCanonicalUri(pid.asText())); JsonNode title = node.get("title"); episode.setTitle(title.asText()); JsonNode position =...
diff --git a/src/savant/view/swing/interval/IntervalTrack.java b/src/savant/view/swing/interval/IntervalTrack.java index 93a27e9e..16980a4d 100644 --- a/src/savant/view/swing/interval/IntervalTrack.java +++ b/src/savant/view/swing/interval/IntervalTrack.java @@ -1,139 +1,139 @@ /* * Copyright 2010 University of T...
true
true
public void prepareForRendering(String reference, Range range) { Resolution r = getResolution(range); switch (r) { case VERY_HIGH: renderer.addInstruction(DrawingInstruction.PROGRESS, "Loading track..."); requestData(reference, range); br...
public void prepareForRendering(String reference, Range range) { Resolution r = getResolution(range); switch (r) { case VERY_HIGH: renderer.addInstruction(DrawingInstruction.PROGRESS, "Loading track..."); requestData(reference, range); br...
diff --git a/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java b/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java index e475f8481..648ba05a0 100644 --- a/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java +++ b/dev/core/src/com/google/gwt/cor...
true
true
protected String generateSelectionScript(TreeLogger logger, LinkerContext context, ArtifactSet artifacts) throws UnableToCompleteException { StringBuffer selectionScript; try { selectionScript = new StringBuffer( Utility.getFileFromClassPath(getSelectionScriptTemplate(logger, ...
protected String generateSelectionScript(TreeLogger logger, LinkerContext context, ArtifactSet artifacts) throws UnableToCompleteException { StringBuffer selectionScript; try { selectionScript = new StringBuffer( Utility.getFileFromClassPath(getSelectionScriptTemplate(logger, ...
diff --git a/src/main/java/batch/launch/HelloBatchMain.java b/src/main/java/batch/launch/HelloBatchMain.java index 43d2983..3d6af3d 100644 --- a/src/main/java/batch/launch/HelloBatchMain.java +++ b/src/main/java/batch/launch/HelloBatchMain.java @@ -1,33 +1,34 @@ package batch.launch; import java.util.HashMap; im...
true
true
public static void main(String[] args) throws JobExecutionAlreadyRunningException, JobRestartException, JobInstanceAlreadyCompleteException, JobParametersInvalidException { AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext( HelloWorldJobProducer.class, DatabaseRepositoryPr...
public static void main(String[] args) throws JobExecutionAlreadyRunningException, JobRestartException, JobInstanceAlreadyCompleteException, JobParametersInvalidException { AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext( HelloWorldJobProducer.class, DatabaseRepositoryPr...
diff --git a/farrago/src/net/sf/farrago/query/FennelCartesianJoinRule.java b/farrago/src/net/sf/farrago/query/FennelCartesianJoinRule.java index 36e251b48..e4e5076d9 100644 --- a/farrago/src/net/sf/farrago/query/FennelCartesianJoinRule.java +++ b/farrago/src/net/sf/farrago/query/FennelCartesianJoinRule.java @@ -1,228 +...
false
true
public void onMatch(RelOptRuleCall call) { JoinRel joinRel = (JoinRel) call.rels[0]; RelNode leftRel = joinRel.getLeft(); RelNode rightRel = joinRel.getRight(); /* * Joins that can use CartesianProduct will have only TRUE condition * in JoinRel. Any other joi...
public void onMatch(RelOptRuleCall call) { JoinRel joinRel = (JoinRel) call.rels[0]; RelNode leftRel = joinRel.getLeft(); RelNode rightRel = joinRel.getRight(); /* * Joins that can use CartesianProduct will have only TRUE condition * in JoinRel. Any other joi...
diff --git a/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/jnaerator/BridJer.java b/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/jnaerator/BridJer.java index ea26e322..363f64d7 100644 --- a/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/jnaerator/BridJer.java +++ b/libraries...
false
true
public Pair<Element, List<Declaration>> convertToJava(Element element) { //element = element.clone(); try { PrintStream out = new PrintStream("jnaerator-" + (iFile++) + ".out"); out.println(element); out.close(); } catch (Exception ex) { ex.printS...
public Pair<Element, List<Declaration>> convertToJava(Element element) { //element = element.clone(); try { PrintStream out = new PrintStream("jnaerator-" + (iFile++) + ".out"); out.println(element); out.close(); } catch (Exception ex) { ex.printS...
diff --git a/caintegrator2-war/test/src/gov/nih/nci/caintegrator2/external/cabio/CaBioFacadeImplTestIntegration.java b/caintegrator2-war/test/src/gov/nih/nci/caintegrator2/external/cabio/CaBioFacadeImplTestIntegration.java index bddf901f4..7d5bcd848 100644 --- a/caintegrator2-war/test/src/gov/nih/nci/caintegrator2/exte...
true
true
public void testRetrieveGeneSymbolsFromKeywords() throws ConnectionException { CaBioGeneSearchParameters params = new CaBioGeneSearchParameters(); params.setKeywords("heart"); params.setTaxon("human"); List<CaBioDisplayableGene> genes = caBioFacade.retrieveGenes(params); asse...
public void testRetrieveGeneSymbolsFromKeywords() throws ConnectionException { CaBioGeneSearchParameters params = new CaBioGeneSearchParameters(); params.setKeywords("heart"); params.setTaxon("human"); params.setFilterGenesOnStudy(false); List<CaBioDisplayableGene> genes = ca...
diff --git a/splat/src/main/uk/ac/starlink/splat/vo/SSAMetadataFrame.java b/splat/src/main/uk/ac/starlink/splat/vo/SSAMetadataFrame.java index d0dde504..d70ebacf 100644 --- a/splat/src/main/uk/ac/starlink/splat/vo/SSAMetadataFrame.java +++ b/splat/src/main/uk/ac/starlink/splat/vo/SSAMetadataFrame.java @@ -1,790 +1,790 ...
true
true
protected void initMenus() { // get the icons // Get icons. ImageIcon closeImage = new ImageIcon( ImageHolder.class.getResource( "close.gif" ) ); ImageIcon saveImage = new ImageIcon( ImageHolder.class.getResource( "savefile.gif" ) ); ImageIcon readImage...
protected void initMenus() { // get the icons // Get icons. ImageIcon closeImage = new ImageIcon( ImageHolder.class.getResource( "close.gif" ) ); ImageIcon saveImage = new ImageIcon( ImageHolder.class.getResource( "savefile.gif" ) ); ImageIcon readImage...
diff --git a/mod/jodd-wot/test/jodd/petite/WireTest.java b/mod/jodd-wot/test/jodd/petite/WireTest.java index 279a100d6..f36d76649 100644 --- a/mod/jodd-wot/test/jodd/petite/WireTest.java +++ b/mod/jodd-wot/test/jodd/petite/WireTest.java @@ -1,210 +1,210 @@ // Copyright (c) 2003-2011, Jodd Team (jodd.org). All Rights R...
true
true
public void testContainer() { PetiteContainer pc = new PetiteContainer(); AutomagicPetiteConfigurator configurator = new AutomagicPetiteConfigurator(); configurator.setIncludedEntries(new String[] {"jodd.petite.*"}); configurator.setExcludedEntries(new String[] {"jodd.petite.data.*"}); configurator.configure...
public void testContainer() { PetiteContainer pc = new PetiteContainer(); AutomagicPetiteConfigurator configurator = new AutomagicPetiteConfigurator(); configurator.setIncludedEntries("jodd.petite.*"); configurator.setExcludedEntries("jodd.petite.data.*", "jodd.petite.test3.*"); configurator.configure(pc); ...
diff --git a/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/sample/SampleWSBase.java b/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/sample/SampleWSBase.java index 0d9fdc4e..3bd324e4 100644 --- a/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/s...
true
true
protected void checkService(Type type, String project, String svcName, String svcPkg, String svcClass, String msgContent, String appCls) { SWTBotEditor ed = bot.editorByTitle(svcClass + ".java"); ed.show(); String code = ed.toTextEditor().getText(); assertContains("package " + svcPkg...
protected void checkService(Type type, String project, String svcName, String svcPkg, String svcClass, String msgContent, String appCls) { SWTBotEditor ed = bot.editorByTitle(svcClass + ".java"); ed.show(); String code = ed.toTextEditor().getText(); assertContains("package " + svcPkg...
diff --git a/test/unit/edu/sc/seis/sod/StatusTest.java b/test/unit/edu/sc/seis/sod/StatusTest.java index 11ca7be63..ac52fbb2c 100644 --- a/test/unit/edu/sc/seis/sod/StatusTest.java +++ b/test/unit/edu/sc/seis/sod/StatusTest.java @@ -1,23 +1,23 @@ /** * StatusTest.java * * @author Created by Omnicore CodeGuide ...
true
true
public void testGetFromInt() throws NoSuchFieldException{ for (int i = 0; i < Status.ALL.length; i++) { for (int j = 0; j < Status.ALL[i].length; j++) { assertEquals("Check status for "+i+", "+j, Status.ALL[i][j], Status.g...
public void testGetFromInt(){ for (int i = 0; i < Status.ALL.length; i++) { for (int j = 0; j < Status.ALL[i].length; j++) { assertEquals("Check status for "+i+", "+j, Status.ALL[i][j], Status.getFromShort(Status.ALL[i][j]...
diff --git a/modules/dar/src/main/java/org/cipango/dar/DefaultApplicationRouter.java b/modules/dar/src/main/java/org/cipango/dar/DefaultApplicationRouter.java index 6026167..80963f1 100644 --- a/modules/dar/src/main/java/org/cipango/dar/DefaultApplicationRouter.java +++ b/modules/dar/src/main/java/org/cipango/dar/Defau...
true
true
public SipApplicationRouterInfo getNextApplication(SipServletRequest initialRequest, SipApplicationRoutingRegion region, SipApplicationRoutingDirective directive, SipTargetedRequestInfo toto, Serializable stateInfo) { if (!_matchOnNewOutgoingRequests && initialRequest.getInitialRemoteAddr() == null) return nu...
public SipApplicationRouterInfo getNextApplication(SipServletRequest initialRequest, SipApplicationRoutingRegion region, SipApplicationRoutingDirective directive, SipTargetedRequestInfo toto, Serializable stateInfo) { if (!_matchOnNewOutgoingRequests && initialRequest.getRemoteAddr() == null) return null; ...
diff --git a/src/org/xdty/smilehelper/FloatWindowService.java b/src/org/xdty/smilehelper/FloatWindowService.java index b1a1375..fab5d4e 100755 --- a/src/org/xdty/smilehelper/FloatWindowService.java +++ b/src/org/xdty/smilehelper/FloatWindowService.java @@ -1,182 +1,182 @@ package org.xdty.smilehelper; import java.u...
true
true
public void run() { if (!isHome() && !MyWindowManager.isWindowShowing() && !isClose()) { handler.post(new Runnable() { @Override public void run() { if (MyWindowManager.getAddState()) { MyWindowManager.createAddWindow(getApplicationContext()); } else if (isInList...
public void run() { if (!isHome() && !MyWindowManager.isWindowShowing() && !isClose()) { handler.post(new Runnable() { @Override public void run() { if (MyWindowManager.getAddState()) { MyWindowManager.createAddWindow(getApplicationContext()); } else if (isInList...
diff --git a/freeplane/src/org/freeplane/main/application/ApplicationViewController.java b/freeplane/src/org/freeplane/main/application/ApplicationViewController.java index 52953a2fe..6dfcb07c1 100644 --- a/freeplane/src/org/freeplane/main/application/ApplicationViewController.java +++ b/freeplane/src/org/freeplane/mai...
false
true
public void openDocument(final URL url) throws Exception { String correctedUrl = url.toExternalForm(); if (url.getProtocol().equals("file")) { correctedUrl = correctedUrl.replace('\\', '/').replaceAll(" ", "%20"); } final String osName = System.getProperty("os.name"); if (osName.substring(0, 3).equals("Wi...
public void openDocument(final URL url) throws Exception { final String osName = System.getProperty("os.name"); if (osName.substring(0, 3).equals("Win")) { String propertyString = "default_browser_command_windows"; if (osName.indexOf("9") != -1 || osName.indexOf("Me") != -1) { propertyString += "_9x"; ...
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/xhtml/UAContentMergeProcessor.java b/org.eclipse.help/src/org/eclipse/help/internal/xhtml/UAContentMergeProcessor.java index 786531559..885847e21 100644 --- a/org.eclipse.help/src/org/eclipse/help/internal/xhtml/UAContentMergeProcessor.java +++ b/org.eclipse.h...
false
true
private Element findIncludeTarget(UAInclude include) { String path = include.getPath(); int index = path.indexOf("/"); //$NON-NLS-1$ if (index < 0) return null; String pluginID = path.substring(0, index); int lastIndex = path.lastIndexOf("/"); //$NON-NLS-1$ String pluginRelativePath = path.substring(ind...
private Element findIncludeTarget(UAInclude include) { String path = include.getPath(); int index = path.indexOf("/"); //$NON-NLS-1$ if (index < 0) return null; String pluginID = path.substring(0, index); int lastIndex = path.lastIndexOf("/"); //$NON-NLS-1$ String pluginRelativePath = path.substring(ind...
diff --git a/common/com/pahimar/ee3/core/handlers/TransmutationTargetOverlayHandler.java b/common/com/pahimar/ee3/core/handlers/TransmutationTargetOverlayHandler.java index 11afbf0e..9498f1e9 100644 --- a/common/com/pahimar/ee3/core/handlers/TransmutationTargetOverlayHandler.java +++ b/common/com/pahimar/ee3/core/handl...
true
true
private static void renderStoneHUD(Minecraft minecraft, EntityPlayer player, ItemStack stack, float partialTicks) { float overlayScale = ConfigurationSettings.TARGET_BLOCK_OVERLAY_SCALE; float blockScale = overlayScale / 2; float overlayOpacity = ConfigurationSettings.TARGET_BLOCK_OVERLAY_O...
private static void renderStoneHUD(Minecraft minecraft, EntityPlayer player, ItemStack stack, float partialTicks) { float overlayScale = ConfigurationSettings.TARGET_BLOCK_OVERLAY_SCALE; float blockScale = overlayScale / 2; float overlayOpacity = ConfigurationSettings.TARGET_BLOCK_OVERLAY_O...
diff --git a/src/main/java/com/syncthemall/enml4j/impl/DefaultTodoTagConverter.java b/src/main/java/com/syncthemall/enml4j/impl/DefaultTodoTagConverter.java index e7c5095..d85c903 100644 --- a/src/main/java/com/syncthemall/enml4j/impl/DefaultTodoTagConverter.java +++ b/src/main/java/com/syncthemall/enml4j/impl/DefaultT...
true
true
public final Elements convertElement(final StartElement start, final Note note) { List<Attribute> attrs = new ArrayList<Attribute>(); attrs.add(getEventFactory().createAttribute("type", "checkbox")); if (start.getAttributeByName(new QName("checked")).getValue().equalsIgnoreCase("true")) { attrs.add(getEventF...
public final Elements convertElement(final StartElement start, final Note note) { List<Attribute> attrs = new ArrayList<Attribute>(); attrs.add(getEventFactory().createAttribute("type", "checkbox")); Attribute checkedAttr = start.getAttributeByName(new QName("checked")); if (checkedAttr != null &&...
diff --git a/tapestry-framework/src/java/org/apache/tapestry/components/Any.java b/tapestry-framework/src/java/org/apache/tapestry/components/Any.java index cf4645b92..2915e5e22 100644 --- a/tapestry-framework/src/java/org/apache/tapestry/components/Any.java +++ b/tapestry-framework/src/java/org/apache/tapestry/compone...
false
true
protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle) { String element = getElement(); if (element == null) throw new ApplicationRuntimeException(ComponentMessages.anyElementNotDefined(), this, null, null); boolean rew...
protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle) { String element = getElement(); if (element == null) throw new ApplicationRuntimeException(ComponentMessages.anyElementNotDefined(), this, null, null); boolean rew...
diff --git a/nuxeo-connect-standalone/src/main/java/org/nuxeo/connect/update/xml/XmlSerializer.java b/nuxeo-connect-standalone/src/main/java/org/nuxeo/connect/update/xml/XmlSerializer.java index 2eeb8937..b0d13717 100644 --- a/nuxeo-connect-standalone/src/main/java/org/nuxeo/connect/update/xml/XmlSerializer.java +++ b/...
false
true
public String toXML(PackageDefinition def) { start("package"); if (def.getType() != null) { attr("type", def.getType().getValue()); } try { def.getClass().getMethod( "org.nuxeo.connect.update.model.PackageDefinition.getVisibility"); ...
public String toXML(PackageDefinition def) { start("package"); if (def.getType() != null) { attr("type", def.getType().getValue()); } try { def.getClass().getMethod("getVisibility"); if (def.getVisibility() != null) { attr("visibili...
diff --git a/src/cytoscape/visual/CalculatorCatalogFactory.java b/src/cytoscape/visual/CalculatorCatalogFactory.java index adba90047..26a41ef2e 100644 --- a/src/cytoscape/visual/CalculatorCatalogFactory.java +++ b/src/cytoscape/visual/CalculatorCatalogFactory.java @@ -1,163 +1,161 @@ /** Copyright (c) 2002 Institute f...
false
true
public static CalculatorCatalog loadCalculatorCatalog () { final CalculatorCatalog calculatorCatalog = new CalculatorCatalog(); // register mappings calculatorCatalog.addMapping("Discrete Mapper", DiscreteMapping.class); calculatorCatalog.addMapping("Continuous Mapper", ContinuousMapping.clas...
public static CalculatorCatalog loadCalculatorCatalog () { final CalculatorCatalog calculatorCatalog = new CalculatorCatalog(); // register mappings calculatorCatalog.addMapping("Discrete Mapper", DiscreteMapping.class); calculatorCatalog.addMapping("Continuous Mapper", ContinuousMapping.clas...
diff --git a/src/framework/utils/ApplicationInstaller.java b/src/framework/utils/ApplicationInstaller.java index 9b66e08e..bb3f6493 100644 --- a/src/framework/utils/ApplicationInstaller.java +++ b/src/framework/utils/ApplicationInstaller.java @@ -1,64 +1,64 @@ package framework.utils; import junit.framework.Assert;...
true
true
public void uninstallIfFound() { if (getRestUrl() != null) { String command = "connect " + getRestUrl() + ";list-services"; String output; try { output = CommandTestUtils.runCommandAndWait(command); if (output.contains(applicationName)) { uninstall(); } } catch (final Exception e) { ...
public void uninstallIfFound() { if (getRestUrl() != null) { String command = "connect " + getRestUrl() + ";list-application"; String output; try { output = CommandTestUtils.runCommandAndWait(command); if (output.contains(applicationName)) { uninstall(); } } catch (final Exception e) { ...
diff --git a/src/com/orange/groupbuy/api/service/GroupBuyServiceFactory.java b/src/com/orange/groupbuy/api/service/GroupBuyServiceFactory.java index 9affb3f..f49671d 100644 --- a/src/com/orange/groupbuy/api/service/GroupBuyServiceFactory.java +++ b/src/com/orange/groupbuy/api/service/GroupBuyServiceFactory.java @@ -1,1...
false
true
public CommonService createServiceObjectByMethod(String method) { if (method == null){ return new VerifyUserService(); } if (method.equalsIgnoreCase(ServiceConstant.METHOD_REGISTERDEVICE)){ return new RegisterDeviceService(); } else if (method.equalsIgnoreCase(ServiceConstant.METHOD_DEVICELOGIN)){ r...
public CommonService createServiceObjectByMethod(String method) { if (method == null){ return new VerifyUserService(); } if (method.equalsIgnoreCase(ServiceConstant.METHOD_REGISTERDEVICE)){ return new RegisterDeviceService(); } else if (method.equalsIgnoreCase(ServiceConstant.METHOD_DEVICELOGIN)){ r...
diff --git a/app/models/Tag.java b/app/models/Tag.java index 1897061..97196c1 100644 --- a/app/models/Tag.java +++ b/app/models/Tag.java @@ -1,63 +1,64 @@ package models; import java.util.*; import play.db.ebean.*; import play.data.validation.Constraints.*; import play.data.format.Formats.*; import javax.persis...
true
true
public static List<Tag> createOrFindAllFromString(String list) { List<Tag> tags = new ArrayList<Tag>(); String[] tagArray = new String[]{list}; try { tagArray = list.split("\\s+"); } catch (PatternSyntaxException ex) { // TODO } for(String title : tagArray) { Tag tag = ...
public static List<Tag> createOrFindAllFromString(String list) { List<Tag> tags = new ArrayList<Tag>(); String[] tagArray = new String[]{list}; try { tagArray = list.split("\\s+"); } catch (PatternSyntaxException ex) { // TODO } for(String title : tagArray) { Tag tag = ...
diff --git a/src/java/org/apache/cassandra/cql/QueryProcessor.java b/src/java/org/apache/cassandra/cql/QueryProcessor.java index 71142cd0a..28ee3534c 100644 --- a/src/java/org/apache/cassandra/cql/QueryProcessor.java +++ b/src/java/org/apache/cassandra/cql/QueryProcessor.java @@ -1,1018 +1,1018 @@ /* * * Licensed ...
false
true
public static CqlResult processStatement(CQLStatement statement,ClientState clientState, List<ByteBuffer> variables ) throws UnavailableException, InvalidRequestException, TimedOutException, SchemaDisagreementException { String keyspace = null; // Some statements won't have (or don't need)...
public static CqlResult processStatement(CQLStatement statement,ClientState clientState, List<ByteBuffer> variables ) throws UnavailableException, InvalidRequestException, TimedOutException, SchemaDisagreementException { String keyspace = null; // Some statements won't have (or don't need)...
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/StreamCopyThread.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/StreamCopyThread.java index bf47d199..c3683569 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/io/StreamCopyThread.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/io/StreamCopyT...
false
true
public void run() { try { final byte[] buf = new byte[BUFFER_SIZE]; for (;;) { try { if (needFlush()) dst.flush(); final int n; try { n = src.read(buf); } catch (InterruptedIOException wakey) { if (flushCounter.get() > 0) continue; else throw wakey...
public void run() { try { final byte[] buf = new byte[BUFFER_SIZE]; for (;;) { try { if (needFlush()) dst.flush(); final int n; try { n = src.read(buf); } catch (InterruptedIOException wakey) { continue; } if (n < 0) break; for (;;) { try {...
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/CompositeItemWriterTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/item/support/CompositeItemWriterTests.java index 552cb8e72..461b6475b 100644 --- a/spring-batch-infrastructure/src/test/java/o...
false
true
public void testProcess() throws Exception { final int NUMBER_OF_WRITERS = 10; List<Object> data = Collections.singletonList(new Object()); List<ItemWriter<? super Object>> writers = new ArrayList<ItemWriter<? super Object>>(); for (int i = 0; i < NUMBER_OF_WRITERS; i++) { @SuppressWarnings("unchecked") ...
public void testProcess() throws Exception { final int NUMBER_OF_WRITERS = 10; List<Object> data = Collections.singletonList(new Object()); List<ItemWriter<? super Object>> writers = new ArrayList<ItemWriter<? super Object>>(); for (int i = 0; i < NUMBER_OF_WRITERS; i++) { @SuppressWarnings("unchecked") ...
diff --git a/web/src/main/java/org/apache/ki/web/DefaultWebSecurityManager.java b/web/src/main/java/org/apache/ki/web/DefaultWebSecurityManager.java index 443fe867..650406ea 100644 --- a/web/src/main/java/org/apache/ki/web/DefaultWebSecurityManager.java +++ b/web/src/main/java/org/apache/ki/web/DefaultWebSecurityManage...
true
true
public void setSessionMode(String sessionMode) { String mode = sessionMode; if (mode == null) { throw new IllegalArgumentException("sessionMode argument cannot be null."); } mode = sessionMode.toLowerCase(); if (!HTTP_SESSION_MODE.equals(mode) && !KI_SESSION_MODE....
public void setSessionMode(String sessionMode) { String mode = sessionMode; if (mode == null) { throw new IllegalArgumentException("sessionMode argument cannot be null."); } mode = sessionMode.toLowerCase(); if (!HTTP_SESSION_MODE.equals(mode) && !KI_SESSION_MODE....
diff --git a/discovery/src/main/java/com/proofpoint/discovery/client/HttpDiscoveryClient.java b/discovery/src/main/java/com/proofpoint/discovery/client/HttpDiscoveryClient.java index 98d668ffa..9b8001e07 100644 --- a/discovery/src/main/java/com/proofpoint/discovery/client/HttpDiscoveryClient.java +++ b/discovery/src/ma...
true
true
private CheckedFuture<ServiceDescriptors, DiscoveryException> lookup(final String type, final String pool, final ServiceDescriptors serviceDescriptors) { Preconditions.checkNotNull(type, "type is null"); RequestBuilder requestBuilder = prepareGet().setUri(URI.create(discoveryServiceURI + "/v1/s...
private CheckedFuture<ServiceDescriptors, DiscoveryException> lookup(final String type, final String pool, final ServiceDescriptors serviceDescriptors) { Preconditions.checkNotNull(type, "type is null"); RequestBuilder requestBuilder = prepareGet().setUri(URI.create(discoveryServiceURI + "/v1/s...
diff --git a/src/haven/SkelSprite.java b/src/haven/SkelSprite.java index 2b97c5fd..6b146ed6 100644 --- a/src/haven/SkelSprite.java +++ b/src/haven/SkelSprite.java @@ -1,117 +1,118 @@ /* * This file is part of the Haven & Hearth game client. * Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and * ...
false
true
private SkelSprite(Owner owner, Resource res, Message sdt) { super(owner, res); skel = res.layer(Skeleton.Res.class).s; pose = skel.new Pose(skel.bindpose); Collection<Rendered> rl = new LinkedList<Rendered>(); for(FastMesh.MeshRes mr : res.layers(FastMesh.MeshRes.class)) { if(mr.mat != null) { if(mr.m....
private SkelSprite(Owner owner, Resource res, Message sdt) { super(owner, res); skel = res.layer(Skeleton.Res.class).s; pose = skel.new Pose(skel.bindpose); int fl = sdt.eom()?0xffff0000:SkelSprite.decnum(sdt); Collection<Rendered> rl = new LinkedList<Rendered>(); for(FastMesh.MeshRes mr : res.layers(FastMesh...
diff --git a/src/org/mythtv/db/dvr/ProgramDaoHelper.java b/src/org/mythtv/db/dvr/ProgramDaoHelper.java index cca660e6..1d5253ee 100644 --- a/src/org/mythtv/db/dvr/ProgramDaoHelper.java +++ b/src/org/mythtv/db/dvr/ProgramDaoHelper.java @@ -1,801 +1,801 @@ /** * This file is part of MythTV Android Frontend * * Myt...
true
true
protected int load( final Context context, final Uri uri, final LocationProfile locationProfile, List<Program> programs, String table ) throws RemoteException, OperationApplicationException { // Log.v( TAG, "load : enter" ); if( null == context ) throw new RuntimeException( "ProgramDaoHelper is not initializ...
protected int load( final Context context, final Uri uri, final LocationProfile locationProfile, List<Program> programs, String table ) throws RemoteException, OperationApplicationException { // Log.v( TAG, "load : enter" ); if( null == context ) throw new RuntimeException( "ProgramDaoHelper is not initializ...
diff --git a/src/nl/sense_os/commonsense/client/auth/login/LoginForm.java b/src/nl/sense_os/commonsense/client/auth/login/LoginForm.java index 39c2e56b..7c9071ab 100644 --- a/src/nl/sense_os/commonsense/client/auth/login/LoginForm.java +++ b/src/nl/sense_os/commonsense/client/auth/login/LoginForm.java @@ -1,191 +1,192 ...
true
true
private void initButtons() { btnForgotPassword = new LabelField("Forgot your password?"); btnForgotPassword.setHideLabel(true); btnForgotPassword.setStyleAttribute("cursor", "pointer"); // btnSubmit button btnSubmit = new Button("Log in"); btnSubmit.setIconStyle("se...
private void initButtons() { btnForgotPassword = new LabelField("Forgot your password?"); btnForgotPassword.setHideLabel(true); btnForgotPassword.setStyleAttribute("cursor", "pointer"); // btnSubmit button btnSubmit = new Button("Log in"); btnSubmit.setIconStyle("se...
diff --git a/src/main/java/net/aufdemrand/denizen/objects/dNPC.java b/src/main/java/net/aufdemrand/denizen/objects/dNPC.java index 3b2dfa7f1..e8c19f520 100644 --- a/src/main/java/net/aufdemrand/denizen/objects/dNPC.java +++ b/src/main/java/net/aufdemrand/denizen/objects/dNPC.java @@ -1,576 +1,576 @@ package net.aufdem...
true
true
public String getAttribute(Attribute attribute) { if (attribute == null) return "null"; // <--[tag] // @attribute <npc.name.nickname> // @returns Element // @description // returns the NPC's nickname provided by the nickname trait, or null if the NPC does not have t...
public String getAttribute(Attribute attribute) { if (attribute == null) return "null"; // <--[tag] // @attribute <npc.name.nickname> // @returns Element // @description // returns the NPC's nickname provided by the nickname trait, or null if the NPC does not have t...
diff --git a/src/main/java/hudson/maven/MavenModuleSetBuild.java b/src/main/java/hudson/maven/MavenModuleSetBuild.java index 92164bd..a315b46 100644 --- a/src/main/java/hudson/maven/MavenModuleSetBuild.java +++ b/src/main/java/hudson/maven/MavenModuleSetBuild.java @@ -1,1577 +1,1577 @@ /* * The MIT License * * ...
true
true
protected Result doRun(final BuildListener listener) throws Exception { PrintStream logger = listener.getLogger(); Result r = null; File tmpSettingsFile = null, tmpGlobalSettingsFile = null; FilePath remoteSettings = null, remoteGlobalSettings = null; ...
protected Result doRun(final BuildListener listener) throws Exception { PrintStream logger = listener.getLogger(); Result r = null; File tmpSettingsFile = null, tmpGlobalSettingsFile = null; FilePath remoteSettings = null, remoteGlobalSettings = null; ...
diff --git a/ttools/src/testcases/uk/ac/starlink/ttools/task/TableMatch2Test.java b/ttools/src/testcases/uk/ac/starlink/ttools/task/TableMatch2Test.java index 7733744f9..16099cb8e 100644 --- a/ttools/src/testcases/uk/ac/starlink/ttools/task/TableMatch2Test.java +++ b/ttools/src/testcases/uk/ac/starlink/ttools/task/Tabl...
true
true
public void testCols() throws Exception { String[] cols12sep = new String[] { "X_1", "Y_1", "Vmag", "X_2", "Y_2", "Bmag", "Separation" }; assertArrayEquals( cols12sep, getColNames...
public void testCols() throws Exception { String[] cols12sep = new String[] { "X_1", "Y_1", "Vmag", "X_2", "Y_2", "Bmag", "Separation" }; assertArrayEquals( cols12sep, getColNames...
diff --git a/RequirementManager/src/edu/wpi/cs/wpisuitetng/modules/requirementmanager/view/overview/OverviewTreePanel.java b/RequirementManager/src/edu/wpi/cs/wpisuitetng/modules/requirementmanager/view/overview/OverviewTreePanel.java index 594ec336..bbccbd34 100644 --- a/RequirementManager/src/edu/wpi/cs/wpisuitetng/m...
true
true
public void refresh(){ DefaultMutableTreeNode top = new DefaultMutableTreeNode(/*ConfigManager.getConfig().getProjectName()*/ "BEHOLD THE TREE"); //makes a starting node List<Iteration> iterations = IterationModel.getInstance().getIterations(); //retreive the list of all iterations System.out.println("Num Ite...
public void refresh(){ DefaultMutableTreeNode top = new DefaultMutableTreeNode(/*ConfigManager.getConfig().getProjectName()*/ "Iteration Tree"); //makes a starting node List<Iteration> iterations = IterationModel.getInstance().getIterations(); //retreive the list of all iterations System.out.println("Num Iter...
diff --git a/org.eclipse.mylyn.commons.tests/src/org/eclipse/mylyn/commons/tests/support/ManagedTestSuite.java b/org.eclipse.mylyn.commons.tests/src/org/eclipse/mylyn/commons/tests/support/ManagedTestSuite.java index 3313aac1..10ea9c02 100644 --- a/org.eclipse.mylyn.commons.tests/src/org/eclipse/mylyn/commons/tests/sup...
false
true
private static void dumpSystemInfo() { if (Platform.isRunning() && CommonsNetPlugin.getProxyService() != null && !CommonsNetPlugin.getProxyService().isSystemProxiesEnabled()) { // XXX e3.5/gtk.x86_64 activate manual proxy configuration which // defaults to Java system properties if system proxy support is ...
private static void dumpSystemInfo() { if (Platform.isRunning() && CommonsNetPlugin.getProxyService() != null && CommonsNetPlugin.getProxyService().isSystemProxiesEnabled() && !CommonsNetPlugin.getProxyService().hasSystemProxies()) { // XXX e3.5/gtk.x86_64 activate manual proxy configuration which // d...
diff --git a/src/cards/CardSicarius.java b/src/cards/CardSicarius.java index fd10472..c3358de 100644 --- a/src/cards/CardSicarius.java +++ b/src/cards/CardSicarius.java @@ -1,70 +1,71 @@ package cards; import java.util.ArrayList; import java.util.List; import cards.activators.CardParams; import cards.activator...
true
true
public boolean performEffect(GameVisor g, int pos, CardParams a) { boolean performed = false; SicariusParams myParams = (SicariusParams) a; int enemyPos = (g.whoseTurn() + 1) % Game.MAX_PLAYERS; Card targetCard = g.getField().getCard(enemyPos, myParams.getTargetPos()); // Sicarius attacks the enemy for 99...
public boolean performEffect(GameVisor g, int pos, CardParams a) { boolean performed = false; SicariusParams myParams = (SicariusParams) a; int enemyPos = (g.whoseTurn() + 1) % Game.MAX_PLAYERS; Card targetCard = g.getField().getCard(enemyPos, myParams.getTargetPos()); // Sicarius attacks the enemy for 99...
diff --git a/easyb/src/java/org/disco/easyb/core/delegates/EnsuringDelegate.java b/easyb/src/java/org/disco/easyb/core/delegates/EnsuringDelegate.java index 794c91d..728aa7e 100644 --- a/easyb/src/java/org/disco/easyb/core/delegates/EnsuringDelegate.java +++ b/easyb/src/java/org/disco/easyb/core/delegates/EnsuringDeleg...
true
true
public void ensureThrows(final Class<?> clzz, final Closure closure) throws Exception { try { closure.call(); } catch (Throwable e) { if (!clzz.isAssignableFrom(e.getClass()) && !(e.getCause().getClass() == clzz)) { throw new VerificationException( "exception caught (" + e.getClass().getName()+ ...
public void ensureThrows(final Class<?> clzz, final Closure closure) throws Exception { try { closure.call(); } catch (Throwable e) { if (!clzz.isAssignableFrom(e.getClass()) && (e.getCause() != null) && !(e.getCause().getClass() == clzz)) { throw new VerificationException( "exception caugh...
diff --git a/apvs-ptu/src/main/java/ch/cern/atlas/apvs/ptu/server/PtuJsonReader.java b/apvs-ptu/src/main/java/ch/cern/atlas/apvs/ptu/server/PtuJsonReader.java index b13b8427..d7e47657 100644 --- a/apvs-ptu/src/main/java/ch/cern/atlas/apvs/ptu/server/PtuJsonReader.java +++ b/apvs-ptu/src/main/java/ch/cern/atlas/apvs/ptu...
true
true
public Object readObject() throws IOException { List<Message> result = new ArrayList<Message>(); @SuppressWarnings("rawtypes") JsonObject jsonObj = (JsonObject) readIntoJsonMaps(); String sender = (String) jsonObj.get("Sender"); // String receiver = (String) jsonObj.get("Receiver"); // String frameID = (...
public Object readObject() throws IOException { List<Message> result = new ArrayList<Message>(); @SuppressWarnings("rawtypes") JsonObject jsonObj = (JsonObject) readIntoJsonMaps(); String sender = (String) jsonObj.get("Sender"); // String receiver = (String) jsonObj.get("Receiver"); // String frameID = (...
diff --git a/src/main/java/by/vsu/emdsproject/report/jasper/PersonCardReportDSWrapper.java b/src/main/java/by/vsu/emdsproject/report/jasper/PersonCardReportDSWrapper.java index f1d2731..4d41b7f 100644 --- a/src/main/java/by/vsu/emdsproject/report/jasper/PersonCardReportDSWrapper.java +++ b/src/main/java/by/vsu/emdsproj...
false
true
public HashMap getDataSource() { Questionnaire questionnaire = student.getQuestionnaire(); HashMap map = new HashMap(); map.put(Parameter.CARD_NUMBER, student.getId()); map.put(Parameter.FIO, student.getLastName() + " " + student.getFirstName() + " " + student.getMiddleName()); ...
public HashMap getDataSource() { Questionnaire questionnaire = student.getQuestionnaire(); HashMap map = new HashMap(); map.put(Parameter.CARD_NUMBER, student.getId().toString()); map.put(Parameter.FIO, student.getLastName() + " " + student.getFirstName() + " " + student.getMiddleNam...
diff --git a/src/main/java/org/sonar/ant/SonarTask.java b/src/main/java/org/sonar/ant/SonarTask.java index 5a4605f..bda9dcb 100644 --- a/src/main/java/org/sonar/ant/SonarTask.java +++ b/src/main/java/org/sonar/ant/SonarTask.java @@ -1,284 +1,285 @@ /* * Sonar Ant Task * Copyright (C) 2011 SonarSource * dev@sonar...
true
true
private void launchAnalysis(Properties properties) { if (isCompatibilityModeActivated(properties)) { // Compatibility mode is activated to prevent issues with the standard way to execute analyses (= with the Sonar Runner) log("/!\\ Sonar Ant Task running in compatibility mode: please refer to the docu...
private void launchAnalysis(Properties properties) { if (isCompatibilityModeActivated(properties)) { // Compatibility mode is activated to prevent issues with the standard way to execute analyses (= with the Sonar Runner) log("/!\\ Sonar Ant Task running in compatibility mode: please refer to the docu...
diff --git a/app/controllers/IssueApp.java b/app/controllers/IssueApp.java index 2e224b98..413529b9 100644 --- a/app/controllers/IssueApp.java +++ b/app/controllers/IssueApp.java @@ -1,735 +1,735 @@ package controllers; import models.*; import models.enumeration.*; import play.mvc.Http; import views.html.issue...
true
true
public static Result massUpdate(String ownerName, String projectName) throws IOException { Form<IssueMassUpdate> issueMassUpdateForm = new Form<>(IssueMassUpdate.class).bindFromRequest(); if (issueMassUpdateForm.hasErrors()) { return badRequest(issueMassUpdateForm.errorsA...
public static Result massUpdate(String ownerName, String projectName) throws IOException { Form<IssueMassUpdate> issueMassUpdateForm = new Form<>(IssueMassUpdate.class).bindFromRequest(); if (issueMassUpdateForm.hasErrors()) { return badRequest(issueMassUpdateForm.errorsA...
diff --git a/dotnet/sonar/sonar-plugin-sourcemonitor/src/test/java/org/sonar/plugin/dotnet/srcmon/SourceMonitorResultParserTest.java b/dotnet/sonar/sonar-plugin-sourcemonitor/src/test/java/org/sonar/plugin/dotnet/srcmon/SourceMonitorResultParserTest.java index 54b7e1677..4c1bf3117 100644 --- a/dotnet/sonar/sonar-plugin...
false
true
private void simpleTest(File reportFile) throws IOException { SourceMonitorResultParser parser = new SourceMonitorResultStaxParser(); File moneyFile = new File("target/test-classes/solution/MessyTestSolution/MessyTestApplication/Money.cs"); List<FileMetrics> metrics = parser.parse(reportFile); assertN...
private void simpleTest(File reportFile) throws IOException { SourceMonitorResultParser parser = new SourceMonitorResultStaxParser(); List<FileMetrics> metrics = parser.parse(reportFile); assertNotNull(metrics); assertEquals(5, metrics.size()); FileMetrics firstFile = metrics.get(0); assertEqu...
diff --git a/src/frontend/org/voltcore/network/VoltNetworkPool.java b/src/frontend/org/voltcore/network/VoltNetworkPool.java index 5fa3907f3..f4c99d793 100644 --- a/src/frontend/org/voltcore/network/VoltNetworkPool.java +++ b/src/frontend/org/voltcore/network/VoltNetworkPool.java @@ -1,119 +1,119 @@ /* This file is pa...
true
true
public Map<Long, Pair<String, long[]>> getIOStats(final boolean interval) throws ExecutionException, InterruptedException { HashMap<Long, Pair<String, long[]>> retval = new HashMap<Long, Pair<String, long[]>>(); LinkedList<Future<Map<Long, Pair<String, long[]>>>> statTasks =...
public Map<Long, Pair<String, long[]>> getIOStats(final boolean interval) throws ExecutionException, InterruptedException { HashMap<Long, Pair<String, long[]>> retval = new HashMap<Long, Pair<String, long[]>>(); LinkedList<Future<Map<Long, Pair<String, long[]>>>> statTasks =...
diff --git a/src/nl/giantit/minecraft/GiantShop/core/Commands/buy.java b/src/nl/giantit/minecraft/GiantShop/core/Commands/buy.java index 314a46a..c99bae0 100644 --- a/src/nl/giantit/minecraft/GiantShop/core/Commands/buy.java +++ b/src/nl/giantit/minecraft/GiantShop/core/Commands/buy.java @@ -1,434 +1,437 @@ package nl...
true
true
public static void buy(Player player, String[] args) { Heraut.savePlayer(player); if(perms.has(player, "giantshop.shop.buy")) { if(args.length >= 2) { int itemID; Integer itemType = -1; int quantity; if(!args[1].matches("[0-9]+:[0-9]+")) { try { itemID = Integer.parseInt(args[1]); ...
public static void buy(Player player, String[] args) { Heraut.savePlayer(player); if(perms.has(player, "giantshop.shop.buy")) { if(args.length >= 2) { int itemID; Integer itemType = -1; int quantity; if(!args[1].matches("[0-9]+:[0-9]+")) { try { itemID = Integer.parseInt(args[1]); ...
diff --git a/core/src/main/java/com/google/bitcoin/store/WalletProtobufSerializer.java b/core/src/main/java/com/google/bitcoin/store/WalletProtobufSerializer.java index 7dfbe52..15fce75 100644 --- a/core/src/main/java/com/google/bitcoin/store/WalletProtobufSerializer.java +++ b/core/src/main/java/com/google/bitcoin/sto...
true
true
private void readConfidence(Transaction tx, Protos.TransactionConfidence confidenceProto, TransactionConfidence confidence) { // We are lenient here because tx confidence is not an essential part of the wallet. // If the tx has an unknown type of confidence, ignore. ...
private void readConfidence(Transaction tx, Protos.TransactionConfidence confidenceProto, TransactionConfidence confidence) { // We are lenient here because tx confidence is not an essential part of the wallet. // If the tx has an unknown type of confidence, ignore. ...
diff --git a/src/com/android/phone/GsmUmtsOptions.java b/src/com/android/phone/GsmUmtsOptions.java index 2b5bb145..703770ae 100644 --- a/src/com/android/phone/GsmUmtsOptions.java +++ b/src/com/android/phone/GsmUmtsOptions.java @@ -1,95 +1,94 @@ /* * Copyright (C) 2008, 2011 The Android Open Source Project * * Li...
true
true
public void enableScreen() { Phone phone = PhoneFactory.getDefaultPhone(); if (phone.getPhoneType() != Phone.PHONE_TYPE_GSM) { log("Not a GSM phone"); mButtonAPNExpand.setEnabled(false); mButtonPrefer2g.setEnabled(false); } mButtonOperatorSelection...
public void enableScreen() { Phone phone = PhoneFactory.getDefaultPhone(); if (phone.getPhoneType() != Phone.PHONE_TYPE_GSM) { log("Not a GSM phone"); mButtonPrefer2g.setEnabled(false); } mButtonOperatorSelectionExpand = (PreferenceScreen) mPrefScreen ...
diff --git a/org.eclipse.mylyn.context.core/src/org/eclipse/mylyn/internal/core/SaxContextWriter.java b/org.eclipse.mylyn.context.core/src/org/eclipse/mylyn/internal/core/SaxContextWriter.java index 3c7e8f091..d587da7da 100644 --- a/org.eclipse.mylyn.context.core/src/org/eclipse/mylyn/internal/core/SaxContextWriter.jav...
true
true
public void parse(InputSource input) throws IOException, SAXException { if (!(input instanceof MylarContextInputSource)) { throw new SAXException("Can only parse writable input sources"); } MylarContext context = ((MylarContextInputSource) input).getContext(); handler.startDocument(); AttributesI...
public void parse(InputSource input) throws IOException, SAXException { if (!(input instanceof MylarContextInputSource)) { throw new SAXException("Can only parse writable input sources"); } MylarContext context = ((MylarContextInputSource) input).getContext(); handler.startDocument(); AttributesI...
diff --git a/yamodroid/src/main/java/ru/yandex/money/droid/YandexMoneyDroid.java b/yamodroid/src/main/java/ru/yandex/money/droid/YandexMoneyDroid.java index f1c9b87..11f6041 100644 --- a/yamodroid/src/main/java/ru/yandex/money/droid/YandexMoneyDroid.java +++ b/yamodroid/src/main/java/ru/yandex/money/droid/YandexMoneyDr...
true
true
public void callbackOnResult(int requestCode, int resultCode, Intent data) { boolean isSuccess = data.getBooleanExtra(ActivityParams.AUTH_OUT_IS_SUCCESS, false); if (requestCode == activityCodeAuth) { if (resultCode == Activity.RESULT_OK) { if (isSuccess) ...
public void callbackOnResult(int requestCode, int resultCode, Intent data) { boolean isSuccess = false; if (data != null) isSuccess = data.getBooleanExtra(ActivityParams.AUTH_OUT_IS_SUCCESS, false); if (requestCode == activityCodeAuth) { if (resultCode == Activity.R...
diff --git a/cinderella-web/src/main/java/io/cinderella/security/AuthenticationServiceImpl.java b/cinderella-web/src/main/java/io/cinderella/security/AuthenticationServiceImpl.java index bb61f6213..ed7c1c161 100644 --- a/cinderella-web/src/main/java/io/cinderella/security/AuthenticationServiceImpl.java +++ b/cinderella...
false
true
public boolean authenticateRequest(HttpServletRequest request, HttpServletResponse response) throws SignatureException, IOException, InstantiationException, IllegalAccessException, ClassNotFoundException, ParseException { String cloudAccessKey = null; String ...
public boolean authenticateRequest(HttpServletRequest request, HttpServletResponse response) throws SignatureException, IOException, InstantiationException, IllegalAccessException, ClassNotFoundException, ParseException { String cloudAccessKey = null; String ...
diff --git a/pivot4j-analytics/src/main/java/com/eyeq/pivot4j/analytics/ui/PrimeFacesPivotRenderer.java b/pivot4j-analytics/src/main/java/com/eyeq/pivot4j/analytics/ui/PrimeFacesPivotRenderer.java index 0b89d8e6..9c2f7b7a 100644 --- a/pivot4j-analytics/src/main/java/com/eyeq/pivot4j/analytics/ui/PrimeFacesPivotRenderer...
true
true
public void startCell(RenderContext context, List<CellCommand<?>> commands) { this.column = new Column(); String id = "col-" + column.hashCode(); column.setId(id); column.setColspan(context.getColSpan()); column.setRowspan(context.getRowSpan()); String styleClass; switch (context.getCellType()) { c...
public void startCell(RenderContext context, List<CellCommand<?>> commands) { this.column = new Column(); String id = "col-" + column.hashCode(); column.setId(id); column.setColspan(context.getColSpan()); column.setRowspan(context.getRowSpan()); String styleClass; switch (context.getCellType()) { c...
diff --git a/src/com/db/training/blb/cron/CronServlet.java b/src/com/db/training/blb/cron/CronServlet.java index 23f4685..a3ea7ce 100644 --- a/src/com/db/training/blb/cron/CronServlet.java +++ b/src/com/db/training/blb/cron/CronServlet.java @@ -1,95 +1,95 @@ package com.db.training.blb.cron; import java.io.IOExcept...
false
true
public void init(ServletConfig config) throws ServletException { System.out.println(new Date()+" INFO: Cron Job Started"); timer.schedule(new TimerTask(){ @Override public void run() { try { QueryEngine queryEngine=new QueryEngine(new ConnectionEngine()); ResultSet rs=queryEngine.query("selec...
public void init(ServletConfig config) throws ServletException { System.out.println(new Date()+" INFO: Cron Job Started"); timer.schedule(new TimerTask(){ @Override public void run() { try { QueryEngine queryEngine=new QueryEngine(new ConnectionEngine()); ResultSet rs=queryEngine.query("selec...
diff --git a/restnet-c/src/main/java/net/idea/restnet/c/reporters/CatalogHTMLReporter.java b/restnet-c/src/main/java/net/idea/restnet/c/reporters/CatalogHTMLReporter.java index f3edcbc..1c9e1cd 100644 --- a/restnet-c/src/main/java/net/idea/restnet/c/reporters/CatalogHTMLReporter.java +++ b/restnet-c/src/main/java/net/i...
true
true
public void header(Writer output, Iterator<T> query) { try { if (htmlBeauty==null) htmlBeauty = new HTMLBeauty(); htmlBeauty.writeHTMLHeader(output, "AMBIT", getRequest(), getDocumentation());//,"<meta http-equiv=\"refresh\" content=\"10\">"); } catch (Exception x) { } }
public void header(Writer output, Iterator<T> query) { try { if (htmlBeauty==null) htmlBeauty = new HTMLBeauty(); htmlBeauty.writeHTMLHeader(output, htmlBeauty.getTitle(), getRequest(), getDocumentation());//,"<meta http-equiv=\"refresh\" content=\"10\">"); } catch (Exception x) { } }
diff --git a/src/itopos/ItoPosFrame.java b/src/itopos/ItoPosFrame.java index 4c6c21d..674bcfe 100644 --- a/src/itopos/ItoPosFrame.java +++ b/src/itopos/ItoPosFrame.java @@ -1,560 +1,560 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * ItoPosFrame.java ...
true
true
public ItoPosFrame() { initComponents(); this.idao = DaoFactry.createItemDao(); this.udao = DaoFactry.createUserDao(); this.hdao = DaoFactry.createHistoryDao(); model = new DefaultListModel(); bucket = new ArrayList<Item>(); udpFelica = new UdpFelica(50005);...
public ItoPosFrame() { initComponents(); this.idao = DaoFactry.createItemDao(); this.udao = DaoFactry.createUserDao(); this.hdao = DaoFactry.createHistoryDao(); model = new DefaultListModel(); bucket = new ArrayList<Item>(); udpFelica = new UdpFelica(50005);...
diff --git a/src/com/VolunteerCoordinatorApp/addVolunteerServlet.java b/src/com/VolunteerCoordinatorApp/addVolunteerServlet.java index 487d5d9..df42ff9 100644 --- a/src/com/VolunteerCoordinatorApp/addVolunteerServlet.java +++ b/src/com/VolunteerCoordinatorApp/addVolunteerServlet.java @@ -1,490 +1,490 @@ package com.Vo...
false
true
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { String date = req.getParameter("date"); String title = req.getParameter("title"); String name = req.getParameter("name"); //If no user in query string, prompt to log in. if (name == null || name.equalsIgnoreCase("null"...
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { String date = req.getParameter("date"); String title = req.getParameter("title"); String name = req.getParameter("name"); //If no user in query string, prompt to log in. if (name == null || name.equalsIgnoreCase("null"...
diff --git a/src/java/org/lwjgl/opengl/MacOSXFrame.java b/src/java/org/lwjgl/opengl/MacOSXFrame.java index 348cc860..60224957 100644 --- a/src/java/org/lwjgl/opengl/MacOSXFrame.java +++ b/src/java/org/lwjgl/opengl/MacOSXFrame.java @@ -1,201 +1,202 @@ /* * Copyright (c) 2002-2004 LWJGL Project * All rights reserved...
true
true
MacOSXFrame(DisplayMode mode, java.awt.DisplayMode requested_mode, boolean fullscreen, int x, int y) throws LWJGLException { setResizable(false); addWindowListener(this); addComponentListener(this); canvas = new MacOSXGLCanvas(); add(canvas, BorderLayout.CENTER); boolean undecorated = Boolean.getBoolean("o...
MacOSXFrame(DisplayMode mode, java.awt.DisplayMode requested_mode, boolean fullscreen, int x, int y) throws LWJGLException { setResizable(false); addWindowListener(this); addComponentListener(this); canvas = new MacOSXGLCanvas(); add(canvas, BorderLayout.CENTER); boolean undecorated = Boolean.getBoolean("o...
diff --git a/crypto/test/src/org/bouncycastle/asn1/test/X509NameTest.java b/crypto/test/src/org/bouncycastle/asn1/test/X509NameTest.java index 60e5862c..c8947479 100644 --- a/crypto/test/src/org/bouncycastle/asn1/test/X509NameTest.java +++ b/crypto/test/src/org/bouncycastle/asn1/test/X509NameTest.java @@ -1,328 +1,328 ...
false
true
public void performTest() throws Exception { testEncodingPrintableString(X509Name.C, "AU"); testEncodingPrintableString(X509Name.SERIALNUMBER, "123456"); testEncodingIA5String(X509Name.EmailAddress, "test@test.com"); testEncodingIA5String(X509Name.DC, "test"); tes...
public void performTest() throws Exception { testEncodingPrintableString(X509Name.C, "AU"); testEncodingPrintableString(X509Name.SERIALNUMBER, "123456"); testEncodingIA5String(X509Name.EmailAddress, "test@test.com"); testEncodingIA5String(X509Name.DC, "test"); tes...
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java index 7fbe60bb6..e391b86ad 100644 --- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/inter...
true
true
protected void createOptionsGroup(Composite control) { GridLayout sashFormLayout = new GridLayout(); sashFormLayout.numColumns = 4; sashFormLayout.marginHeight = 5; sashFormLayout.marginWidth = 5; sashFormLayout.horizontalSpacing = 5; final Composite composite = new Composite(control, SWT.NONE); composi...
protected void createOptionsGroup(Composite control) { GridLayout sashFormLayout = new GridLayout(); sashFormLayout.numColumns = 4; sashFormLayout.marginHeight = 5; sashFormLayout.marginWidth = 5; sashFormLayout.horizontalSpacing = 5; final Composite composite = new Composite(control, SWT.NONE); composi...
diff --git a/src/com/android/exchange/service/EasAutoDiscover.java b/src/com/android/exchange/service/EasAutoDiscover.java index 4f7558ef..0713b0db 100644 --- a/src/com/android/exchange/service/EasAutoDiscover.java +++ b/src/com/android/exchange/service/EasAutoDiscover.java @@ -1,405 +1,405 @@ package com.android.exch...
true
true
public Bundle doAutodiscover() { final String domain = getDomain(); if (domain == null) { return null; } final StringEntity entity = buildRequestEntity(); if (entity == null) { return null; } try { final HttpPost post = mak...
public Bundle doAutodiscover() { final String domain = getDomain(); if (domain == null) { return null; } final StringEntity entity = buildRequestEntity(); if (entity == null) { return null; } try { final HttpPost post = mak...
diff --git a/src/snookerTables/Settings.java b/src/snookerTables/Settings.java index 2b7a0f8..aff3538 100644 --- a/src/snookerTables/Settings.java +++ b/src/snookerTables/Settings.java @@ -1,116 +1,116 @@ package snookerTables; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.event.ActionE...
true
true
public Settings(Main main) { this.setVisible(true); //set frame visible this.setSize(new Dimension(260, 320)); //set size of frame this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); //set close action this.main = main; this.setLayout(new BorderLayout()); JLabel title = new JLabel("Settings...
public Settings(Main main) { this.setVisible(true); //set frame visible this.setSize(new Dimension(260, 320)); //set size of frame this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); //set close action this.main = main; this.setLayout(new BorderLayout()); JLabel title = new JLabel("Settings...
diff --git a/wifi/java/android/net/wifi/p2p/WifiP2pService.java b/wifi/java/android/net/wifi/p2p/WifiP2pService.java index 68a082a4..1b15cf35 100644 --- a/wifi/java/android/net/wifi/p2p/WifiP2pService.java +++ b/wifi/java/android/net/wifi/p2p/WifiP2pService.java @@ -1,2860 +1,2864 @@ /* * Copyright (C) 2011 The Andr...
true
true
public boolean processMessage(Message message) { if (DBG) logd(getName() + message.toString()); switch (message.what) { case WifiMonitor.AP_STA_CONNECTED_EVENT: WifiP2pDevice device = (WifiP2pDevice) message.obj; String deviceAddres...
public boolean processMessage(Message message) { if (DBG) logd(getName() + message.toString()); switch (message.what) { case WifiMonitor.AP_STA_CONNECTED_EVENT: WifiP2pDevice device = (WifiP2pDevice) message.obj; String deviceAddres...
diff --git a/src/test/java/org/nohope/app/spring/GetImplementationsTest.java b/src/test/java/org/nohope/app/spring/GetImplementationsTest.java index 9435ccf..dab2e8a 100644 --- a/src/test/java/org/nohope/app/spring/GetImplementationsTest.java +++ b/src/test/java/org/nohope/app/spring/GetImplementationsTest.java @@ -1,7...
true
true
public void testGetImpl() { final List<ModuleDescriptor<Iface>> allModules = new ArrayList<>(); class M1Impl implements Marker1, Iface { } class M2Impl implements Marker2, Iface { } allModules.add(new ModuleDescriptor<Iface>("M1-1", new M1Impl() { }, null)...
public void testGetImpl() { final List<ModuleDescriptor<Iface>> allModules = new ArrayList<>(); class M1Impl implements Marker1, Iface { } class M2Impl implements Marker2, Iface { } allModules.add(new ModuleDescriptor<Iface>("M1-1", new M1Impl() { }, null)...
diff --git a/code/uci/pacman/multiplayer/Server.java b/code/uci/pacman/multiplayer/Server.java index 5a222ca..a2d51a9 100644 --- a/code/uci/pacman/multiplayer/Server.java +++ b/code/uci/pacman/multiplayer/Server.java @@ -1,246 +1,246 @@ package code.uci.pacman.multiplayer; import code.uci.pacman.game.*; import j...
true
true
public void run() { // should be while game is not over while (moreQuotes) { try { byte[] buf = new byte[4]; byte[] bufOut = new byte[4]; // receive request DatagramPacket packet = new DatagramPacket(buf, buf.length); socket.receive(packet); buf = packet.getData(); /...
public void run() { // should be while game is not over while (moreQuotes) { try { byte[] buf = new byte[4]; byte[] bufOut = new byte[4]; // receive request DatagramPacket packet = new DatagramPacket(buf, buf.length); socket.receive(packet); buf = packet.getData(); /...
diff --git a/source/RMG/jing/rxnSys/RateBasedRME.java b/source/RMG/jing/rxnSys/RateBasedRME.java index fb9c3b2c..722019b9 100644 --- a/source/RMG/jing/rxnSys/RateBasedRME.java +++ b/source/RMG/jing/rxnSys/RateBasedRME.java @@ -1,500 +1,500 @@ ////////////////////////////////////////////////////////////////////////////...
true
true
public void enlargeReactionModel(LinkedList p_reactionSystemList, ReactionModel rm, LinkedList p_validList){ //public void enlargeReactionModel(ReactionSystem p_reactionSystem, ReactionModel rm) //#[ operation enlargeReactionModel(ReactionSystem) //ReactionModel rm = p_reactionSystem.getReacti...
public void enlargeReactionModel(LinkedList p_reactionSystemList, ReactionModel rm, LinkedList p_validList){ //public void enlargeReactionModel(ReactionSystem p_reactionSystem, ReactionModel rm) //#[ operation enlargeReactionModel(ReactionSystem) //ReactionModel rm = p_reactionSystem.getReacti...