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/source/src/ca/idi/tekla/TeclaPrefs.java b/source/src/ca/idi/tekla/TeclaPrefs.java index 1cd2ccf..71c5d88 100644 --- a/source/src/ca/idi/tekla/TeclaPrefs.java +++ b/source/src/ca/idi/tekla/TeclaPrefs.java @@ -1,436 +1,444 @@ /* * Copyright (C) 2008-2009 Google Inc. * * Licensed under the Apache Lice...
true
true
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { if (key.equals(Persistence.PREF_VOICE_INPUT) || key.equals(Persistence.PREF_VARIANTS_KEY)) { if (mPrefPersistentKeyboard.isChecked() || mPrefVariantsKey.isChecked()) { if (mPrefPersistentKeyboard.isChecked()) { //...
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { if (key.equals(Persistence.PREF_VOICE_INPUT) || key.equals(Persistence.PREF_VARIANTS_KEY)) { if (mPrefPersistentKeyboard.isChecked() || mPrefVariantsKey.isChecked()) { if (mPrefPersistentKeyboard.isChecked()) { //...
diff --git a/gui/src/main/java/org/jboss/as/console/client/core/BootstrapCmd.java b/gui/src/main/java/org/jboss/as/console/client/core/BootstrapCmd.java index 5966dcfc..8c5515b6 100644 --- a/gui/src/main/java/org/jboss/as/console/client/core/BootstrapCmd.java +++ b/gui/src/main/java/org/jboss/as/console/client/core/Boo...
true
true
public void execute(final AsyncCallback<Boolean> callback) { final ModelNode operation = new ModelNode(); operation.get(OP).set(READ_CHILDREN_NAMES_OPERATION); operation.get(CHILD_TYPE).set("subsystem"); operation.get(ADDRESS).setEmptyList(); dispatcher.execute(new DMRActio...
public void execute(final AsyncCallback<Boolean> callback) { final ModelNode operation = new ModelNode(); operation.get(OP).set(READ_CHILDREN_NAMES_OPERATION); operation.get(CHILD_TYPE).set("subsystem"); operation.get(ADDRESS).setEmptyList(); dispatcher.execute(new DMRActio...
diff --git a/tests/ch/hsr/ifs/pystructure/tests/playground/fibonacci/FibonacciTest.java b/tests/ch/hsr/ifs/pystructure/tests/playground/fibonacci/FibonacciTest.java index eef29c5..b8d5ccf 100644 --- a/tests/ch/hsr/ifs/pystructure/tests/playground/fibonacci/FibonacciTest.java +++ b/tests/ch/hsr/ifs/pystructure/tests/pla...
true
true
public void testFibbonacci() { Fibonacci fib = new Fibonacci(); assertEquals(0, fib.calc(0)); assertEquals(1, fib.calc(1)); assertEquals(1, fib.calc(2)); assertEquals(2, fib.calc(3)); assertEquals(3, fib.calc(4)); assertEquals(5, fib.calc(5)); assertEquals(8, fib.calc(6)); assertEquals(13, fib.cal...
public void testFibbonacci() { Fibonacci fib = new Fibonacci(); assertEquals(0, fib.calculate(0)); assertEquals(1, fib.calculate(1)); assertEquals(1, fib.calculate(2)); assertEquals(2, fib.calculate(3)); assertEquals(3, fib.calculate(4)); assertEquals(5, fib.calculate(5)); assertEquals(8, fib.calcul...
diff --git a/app/scm/GitVersionControlSystem.java b/app/scm/GitVersionControlSystem.java index e10a9e0..c6b9217 100644 --- a/app/scm/GitVersionControlSystem.java +++ b/app/scm/GitVersionControlSystem.java @@ -1,76 +1,76 @@ /* * Copyright 2011 Matthias van der Vlies * * Licensed under the Apache License, Version...
true
true
public String update(final String pid) throws Exception { final String checkoutPid = "git-pull-" + pid; final StringBuffer output = new StringBuffer(); try { ProcessManager.executeCommand(checkoutPid, getFullGitPath() + " pull origin master", output, new File("apps/" + pid), false); } catch(Exceptio...
public String update(final String pid) throws Exception { final String checkoutPid = "git-pull-" + pid; final StringBuffer output = new StringBuffer(); try { ProcessManager.executeCommand(checkoutPid, getFullGitPath() + " pull origin master", output, new File("apps/" + pid), false); } catch(Exceptio...
diff --git a/Examples/Java/DecompressPixmap.java b/Examples/Java/DecompressPixmap.java index 214fbdaa2..df2a3c762 100644 --- a/Examples/Java/DecompressPixmap.java +++ b/Examples/Java/DecompressPixmap.java @@ -1,72 +1,73 @@ /*========================================================================= Program: GDCM (...
false
true
public static void main(String[] args) throws Exception { String file1 = args[0]; String file2 = args[1]; //PixmapReader reader = new PixmapReader(); ImageReader reader = new ImageReader(); reader.SetFileName( file1 ); boolean ret = reader.Read(); if( !ret ) { throw new Exc...
public static void main(String[] args) throws Exception { String file1 = args[0]; String file2 = args[1]; //PixmapReader reader = new PixmapReader(); ImageReader reader = new ImageReader(); reader.SetFileName( file1 ); boolean ret = reader.Read(); if( !ret ) { throw new Exc...
diff --git a/src/main/java/de/ailis/jasdoc/doc/JsType.java b/src/main/java/de/ailis/jasdoc/doc/JsType.java index fa50a9d..49f26f2 100644 --- a/src/main/java/de/ailis/jasdoc/doc/JsType.java +++ b/src/main/java/de/ailis/jasdoc/doc/JsType.java @@ -1,63 +1,66 @@ /* * Copyright (C) 2012 Klaus Reimer <k@ailis.de> * See ...
true
true
public JsType(final String expression) { this.expression = expression.substring(1, expression.length() - 1); }
public JsType(final String expression) { if (expression.startsWith("{") && expression.endsWith("}")) this.expression = expression.substring(1, expression.length() - 1); else this.expression = expression; }
diff --git a/selenium_testing/test/Test_03_W0100_Search_for_a_data_set.java b/selenium_testing/test/Test_03_W0100_Search_for_a_data_set.java index b80fbeb..7c78fc3 100644 --- a/selenium_testing/test/Test_03_W0100_Search_for_a_data_set.java +++ b/selenium_testing/test/Test_03_W0100_Search_for_a_data_set.java @@ -1,95 +1...
true
true
public void test_03_W0100_Search_for_a_data_set() throws Exception { selenium.open("/ooici-pres-0.1/"); selenium.click("login_button"); selenium.waitForPageToLoad("60000"); selenium.click("wayflogonbutton"); selenium.waitForPageToLoad("60000"); for (int second = 0;; second++) { if (second >= 60) fail("t...
public void test_03_W0100_Search_for_a_data_set() throws Exception { selenium.open("/ooici-pres-0.1/"); selenium.click("login_button"); selenium.waitForPageToLoad("60000"); selenium.click("wayflogonbutton"); selenium.waitForPageToLoad("60000"); for (int second = 0;; second++) { if (second >= 60) fail("t...
diff --git a/src/it/corley/ant/S3.java b/src/it/corley/ant/S3.java index ee9de69..7ff5038 100644 --- a/src/it/corley/ant/S3.java +++ b/src/it/corley/ant/S3.java @@ -1,68 +1,68 @@ package it.corley.ant; import java.io.File; import java.util.Vector; import org.apache.tools.ant.BuildException; import org.apache.t...
true
true
public void execute() { if (fail) throw new BuildException("Fail requested."); AWSCredentials credential = new BasicAWSCredentials(key, secret); AmazonS3 s3 = new AmazonS3Client(); File file = new File(bundleUpload); PutObjectRequest por = new PutObjectRequest(bucket, dest, file); PutObjectResult r...
public void execute() { if (fail) throw new BuildException("Fail requested."); AWSCredentials credential = new BasicAWSCredentials(key, secret); AmazonS3 s3 = new AmazonS3Client(credential); File file = new File(bundleUpload); PutObjectRequest por = new PutObjectRequest(bucket, dest, file); PutObje...
diff --git a/MainProject/src/se/chalmers/dat255/risk/view/WorldStage.java b/MainProject/src/se/chalmers/dat255/risk/view/WorldStage.java index d45e3be..5dfeff0 100644 --- a/MainProject/src/se/chalmers/dat255/risk/view/WorldStage.java +++ b/MainProject/src/se/chalmers/dat255/risk/view/WorldStage.java @@ -1,73 +1,70 @@ ...
false
true
public WorldStage(List<IProvince> provinces) { backGround = new Image(Resource.getInstance().backGround); backGround.toBack(); // Texture.setEnforcePotImages(false); Solves power of two? actor = new ArrayList<AbstractView>(); for (int i = 0; i < provinces.size(); i++) { ProvinceView provinceView = new ...
public WorldStage(List<IProvince> provinces) { backGround = new Image(Resource.getInstance().backGround); backGround.toBack(); // Texture.setEnforcePotImages(false); Solves power of two? actor = new ArrayList<AbstractView>(); for (int i = 0; i < provinces.size(); i++) { ProvinceView provinceView = new ...
diff --git a/src/test/com/jogamp/opengl/test/junit/util/NEWTGLContext.java b/src/test/com/jogamp/opengl/test/junit/util/NEWTGLContext.java index 3992c0876..a4449e6d6 100644 --- a/src/test/com/jogamp/opengl/test/junit/util/NEWTGLContext.java +++ b/src/test/com/jogamp/opengl/test/junit/util/NEWTGLContext.java @@ -1,142 +...
true
true
public static WindowContext createOffscreenWindow(GLProfile glp, int width, int height, boolean debugGL) throws InterruptedException { GLCapabilities caps = new GLCapabilities(glp); caps.setOnscreen(false); // // Create native windowing resources .. X11/Win/OSX ...
public static WindowContext createOffscreenWindow(GLProfile glp, int width, int height, boolean debugGL) throws InterruptedException { GLCapabilities caps = new GLCapabilities(glp); caps.setOnscreen(false); caps.setPBuffer(true); // // Create native windowing...
diff --git a/sventon/dev/java/src/de/berlios/sventon/web/ctrl/ShowLocksController.java b/sventon/dev/java/src/de/berlios/sventon/web/ctrl/ShowLocksController.java index dd30cb2b..89f4629f 100644 --- a/sventon/dev/java/src/de/berlios/sventon/web/ctrl/ShowLocksController.java +++ b/sventon/dev/java/src/de/berlios/sventon...
true
true
protected ModelAndView svnHandle(final SVNRepository repository, final SVNBaseCommand svnCommand, final SVNRevision revision, final UserContext userContext, final HttpServletRequest request, final HttpServletResponse response, ...
protected ModelAndView svnHandle(final SVNRepository repository, final SVNBaseCommand svnCommand, final SVNRevision revision, final UserContext userContext, final HttpServletRequest request, final HttpServletResponse response, ...
diff --git a/src/main/java/com/github/fge/jsonpatch/diff/JsonDiff.java b/src/main/java/com/github/fge/jsonpatch/diff/JsonDiff.java index 3e0d7a8..f81f7c9 100644 --- a/src/main/java/com/github/fge/jsonpatch/diff/JsonDiff.java +++ b/src/main/java/com/github/fge/jsonpatch/diff/JsonDiff.java @@ -1,448 +1,448 @@ /* * Cop...
true
true
private static void preLCS(final List<Diff> diffs, final JsonPointer path, final IndexedJsonArray lcs, final IndexedJsonArray array1, final IndexedJsonArray array2) { if (lcs.isEmpty()) return; /* * This is our sentinel: if nodes from both the first array and...
private static void preLCS(final List<Diff> diffs, final JsonPointer path, final IndexedJsonArray lcs, final IndexedJsonArray array1, final IndexedJsonArray array2) { if (lcs.isEmpty()) return; /* * This is our sentinel: if nodes from both the first array and...
diff --git a/control-panel/src/main/java/nl/runnable/alfresco/extensions/controlpanel/BundleRestApi.java b/control-panel/src/main/java/nl/runnable/alfresco/extensions/controlpanel/BundleRestApi.java index 69fd2125..323dabb3 100644 --- a/control-panel/src/main/java/nl/runnable/alfresco/extensions/controlpanel/BundleRest...
true
true
public void installBundle(final Content content, @Header("Content-Type") final String contentType, @Attribute final JsonResponseHelper response) throws IOException { if (JAR_MIME_TYPE.equalsIgnoreCase(contentType) == false) { response.sendMessage(HttpServletResponse.SC_BAD_REQUEST, String.format("Can only...
public void installBundle(final Content content, @Header("Content-Type") final String contentType, @Attribute final JsonResponseHelper response) throws IOException { if (JAR_MIME_TYPE.equalsIgnoreCase(contentType) == false) { response.sendMessage(HttpServletResponse.SC_BAD_REQUEST, String.format("Can only...
diff --git a/bean/src/main/java/org/switchyard/component/bean/deploy/BeanDeploymentMetaData.java b/bean/src/main/java/org/switchyard/component/bean/deploy/BeanDeploymentMetaData.java index ef88a0cf..bcea255e 100644 --- a/bean/src/main/java/org/switchyard/component/bean/deploy/BeanDeploymentMetaData.java +++ b/bean/src/...
false
true
private static Context getJavaComp(String jndiName) { Context javaComp; InitialContext initialContext = null; try { initialContext = new InitialContext(); javaComp = (Context) initialContext.lookup(jndiName); } catch (Exception e) { throw new Swit...
private static Context getJavaComp(String jndiName) { InitialContext initialContext = null; try { initialContext = new InitialContext(); return (Context) initialContext.lookup(jndiName); } catch (NamingException e) { return null; } catch (Exceptio...
diff --git a/WorldChannels/src/com/mitsugaru/WorldChannels/config/ConfigHandler.java b/WorldChannels/src/com/mitsugaru/WorldChannels/config/ConfigHandler.java index 6fb277c..94d87c0 100644 --- a/WorldChannels/src/com/mitsugaru/WorldChannels/config/ConfigHandler.java +++ b/WorldChannels/src/com/mitsugaru/WorldChannels/c...
true
true
public ConfigHandler(WorldChannels plugin) { this.plugin = plugin; // Load defaults final ConfigurationSection config = plugin.getConfig(); // LinkedHashmap of defaults final Map<String, Object> defaults = new LinkedHashMap<String, Object>(); defaults.put("formatter.use", true); defaults.put("formatter.defau...
public ConfigHandler(WorldChannels plugin) { this.plugin = plugin; // Load defaults final ConfigurationSection config = plugin.getConfig(); // LinkedHashmap of defaults final Map<String, Object> defaults = new LinkedHashMap<String, Object>(); defaults.put("formatter.use", true); defaults.put("formatter.defau...
diff --git a/robocode/robocode/manager/LookAndFeelManager.java b/robocode/robocode/manager/LookAndFeelManager.java index 8df5ae72b..a098076fb 100644 --- a/robocode/robocode/manager/LookAndFeelManager.java +++ b/robocode/robocode/manager/LookAndFeelManager.java @@ -1,43 +1,49 @@ /***************************************...
false
true
public static void setLookAndFeel() { String laf = UIManager.getSystemLookAndFeelClassName(); if (laf == null) { laf = UIManager.getCrossPlatformLookAndFeelClassName(); } if (laf != null) { try { UIManager.setLookAndFeel(laf); } catch (Exception e) { e.printStackTrace(); } } }
public static void setLookAndFeel() { try { String laf = UIManager.getSystemLookAndFeelClassName(); if (laf == null) { laf = UIManager.getCrossPlatformLookAndFeelClassName(); } if (laf != null) { try { UIManager.setLookAndFeel(laf); } catch (Exception e) { e.printStackTrace(); }...
diff --git a/src/main/java/net/anzix/proxyagent/Agent.java b/src/main/java/net/anzix/proxyagent/Agent.java index bdbfdc5..c9796b6 100755 --- a/src/main/java/net/anzix/proxyagent/Agent.java +++ b/src/main/java/net/anzix/proxyagent/Agent.java @@ -1,44 +1,44 @@ package net.anzix.proxyagent; import java.lang.instrument...
true
true
public static void premain(String agentArgs, Instrumentation inst) { // Java ignores http.proxyUser. Here come's the workaround. Authenticator.setDefault(new Authenticator() { @Override protected PasswordAuthentication getPasswordAuthentication() { if (getReq...
public static void premain(String agentArgs, Instrumentation inst) { // Java ignores http.proxyUser. Here comes the workaround. Authenticator.setDefault(new Authenticator() { @Override protected PasswordAuthentication getPasswordAuthentication() { if (getRequ...
diff --git a/java/src/steamcondenser/steam/community/alien_swarm/AlienSwarmStats.java b/java/src/steamcondenser/steam/community/alien_swarm/AlienSwarmStats.java index 3832fdb..c0abe0d 100644 --- a/java/src/steamcondenser/steam/community/alien_swarm/AlienSwarmStats.java +++ b/java/src/steamcondenser/steam/community/alie...
true
true
public AlienSwarmStats(Object steamId) throws SteamCondenserException { super(steamId, "alienswarm"); if(this.isPublic()) { Element lifetimeStats = (Element) ((Element) this.xmlData.getElementsByTagName("stats").item(0)).getElementsByTagName("lifetime").item(0); this.hoursPl...
public AlienSwarmStats(Object steamId) throws SteamCondenserException { super(steamId, "alienswarm"); if(this.isPublic()) { Element lifetimeStats = (Element) ((Element) this.xmlData.getElementsByTagName("stats").item(0)).getElementsByTagName("lifetime").item(0); this.hoursPl...
diff --git a/fap/app/controllers/fap/FichaEvaluadorController.java b/fap/app/controllers/fap/FichaEvaluadorController.java index 47edb895..9d2aa8d6 100644 --- a/fap/app/controllers/fap/FichaEvaluadorController.java +++ b/fap/app/controllers/fap/FichaEvaluadorController.java @@ -1,402 +1,404 @@ package controllers.fap;...
true
true
public static void save(){ if(secure.checkGrafico("evaluacion", "editable", "editar", null, null)){ boolean actionSave = params.get("save") != null; boolean actionPdf = params.get("pdf") != null; boolean actionEnd = params.get("end") != null; if(!(actionSave || actionPdf || actionEnd)){ //No se espec...
public static void save(){ if(secure.checkGrafico("evaluacion", "editable", "editar", null, null)){ boolean actionSave = params.get("save") != null; boolean actionPdf = params.get("pdf") != null; boolean actionEnd = params.get("end") != null; if(!(actionSave || actionPdf || actionEnd)){ //No se espec...
diff --git a/src/RiverWatch.java b/src/RiverWatch.java index c0940c5..9b816ce 100644 --- a/src/RiverWatch.java +++ b/src/RiverWatch.java @@ -1,23 +1,23 @@ import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; import java.text.SimpleDateFormat; import java.util.Date; public c...
true
true
public static void main(String args[]){ try{ String pass = new Password().password; String address = "http://localhost/write.php"; Date dconn = new Date(); SimpleDateFormat dform = new SimpleDateFormat("yyyy:MM:dd:HH:mm"); String date = dform.format(dconn); String data = date +"," + level; URL u...
public static void main(String args[]){ try{ String pass = new Password().password; String address = "http://localhost/write.php"; Date dconn = new Date(); SimpleDateFormat dform = new SimpleDateFormat("yyyy.MM.dd.HH"); String date = dform.format(dconn); String data = date +"," + level; URL url ...
diff --git a/Maka/src/edu/hawaii/ihale/lights/KitchenLightsResource.java b/Maka/src/edu/hawaii/ihale/lights/KitchenLightsResource.java index 9a9ed61..77db1f7 100644 --- a/Maka/src/edu/hawaii/ihale/lights/KitchenLightsResource.java +++ b/Maka/src/edu/hawaii/ihale/lights/KitchenLightsResource.java @@ -1,78 +1,78 @@ pack...
true
true
public Representation getResource() throws Exception { //refresh values // Create an empty XML representation. DomRepresentation result = new DomRepresentation(); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Docu...
public Representation getResource() throws Exception { //refresh values // Create an empty XML representation. DomRepresentation result = new DomRepresentation(); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Docu...
diff --git a/src/org/androidaalto/bookingroom/model/db/MeetingDb.java b/src/org/androidaalto/bookingroom/model/db/MeetingDb.java index 6d87d3e..07e503c 100644 --- a/src/org/androidaalto/bookingroom/model/db/MeetingDb.java +++ b/src/org/androidaalto/bookingroom/model/db/MeetingDb.java @@ -1,171 +1,169 @@ /** Copyri...
false
true
public static List<Meeting> getMeetings(Time from, Time to) { SQLiteDatabase db = DataBaseHelper.getInstance().getReadableDatabase(); ArrayList<Meeting> records = new ArrayList<Meeting>(); Cursor cursor = null; try { cursor = db .rawQuery( ...
public static List<Meeting> getMeetings(Time from, Time to) { SQLiteDatabase db = DataBaseHelper.getInstance().getReadableDatabase(); ArrayList<Meeting> records = new ArrayList<Meeting>(); Cursor cursor = null; try { cursor = db .rawQuery( ...
diff --git a/source/de/anomic/plasma/plasmaSearchEvent.java b/source/de/anomic/plasma/plasmaSearchEvent.java index 737bedafb..b2399a5bf 100644 --- a/source/de/anomic/plasma/plasmaSearchEvent.java +++ b/source/de/anomic/plasma/plasmaSearchEvent.java @@ -1,841 +1,844 @@ // plasmaSearchEvent.java // (C) 2005 by Michael ...
false
true
private plasmaSearchEvent(plasmaSearchQuery query, plasmaSearchRankingProfile ranking, serverProfiling localTiming, plasmaWordIndex wordIndex, TreeMap preselectedPeerHashes, ...
private plasmaSearchEvent(plasmaSearchQuery query, plasmaSearchRankingProfile ranking, serverProfiling localTiming, plasmaWordIndex wordIndex, TreeMap preselectedPeerHashes, ...
diff --git a/errai-bus/src/main/java/org/jboss/errai/bus/server/io/JSONStreamEncoder.java b/errai-bus/src/main/java/org/jboss/errai/bus/server/io/JSONStreamEncoder.java index e2596ea91..d2ef656b5 100644 --- a/errai-bus/src/main/java/org/jboss/errai/bus/server/io/JSONStreamEncoder.java +++ b/errai-bus/src/main/java/org/...
false
true
private static void encodeObject(Object o, OutputStream outstream, EncodingContext ctx) throws IOException { if (o == null) { outstream.write(NULL_BYTES); return; } Class cls = o.getClass(); if (java.util.Date.class.isAssignableFrom(cls)) { outstream.write(("{\"__EncodedType\":\"ja...
private static void encodeObject(Object o, OutputStream outstream, EncodingContext ctx) throws IOException { if (o == null) { outstream.write(NULL_BYTES); return; } Class cls = o.getClass(); if (java.util.Date.class.isAssignableFrom(cls)) { outstream.write(("{\"__EncodedType\":\"ja...
diff --git a/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/servlet/FileDownloadServlet.java b/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/servlet/FileDownloadServlet.java index f4f906dba..95d44b8c0 100644 --- a/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/servlet/FileDownloadServlet.java +++ b/src/DVN-web/src/edu/harvard/...
true
true
public void service(HttpServletRequest req, HttpServletResponse res) { VDCUser user = null; if ( LoginFilter.getLoginBean(req) != null ) { user= LoginFilter.getLoginBean(req).getUser(); } VDC vdc = vdcService.getVDCFromRequest(req); UserGroup ipUserGroup= null; ...
public void service(HttpServletRequest req, HttpServletResponse res) { VDCUser user = null; if ( LoginFilter.getLoginBean(req) != null ) { user= LoginFilter.getLoginBean(req).getUser(); } VDC vdc = vdcService.getVDCFromRequest(req); UserGroup ipUserGroup= null; ...
diff --git a/Alkitab/src/yuku/alkitab/base/widget/VersesView.java b/Alkitab/src/yuku/alkitab/base/widget/VersesView.java index e15485e9..15325f17 100644 --- a/Alkitab/src/yuku/alkitab/base/widget/VersesView.java +++ b/Alkitab/src/yuku/alkitab/base/widget/VersesView.java @@ -1,456 +1,456 @@ package yuku.alkitab.base.wi...
true
true
public void scrollToVerse(int verse_1, final float prop) { final int position = adapter.getPositionIgnoringPericopeFromVerse(verse_1); if (position == -1) { Log.w(TAG, "could not find verse=" + verse_1 + ", weird!"); //$NON-NLS-1$ //$NON-NLS-2$ } else { post(new Runnable() { @Override public void ru...
public void scrollToVerse(int verse_1, final float prop) { final int position = adapter.getPositionIgnoringPericopeFromVerse(verse_1); if (position == -1) { Log.w(TAG, "could not find verse=" + verse_1 + ", weird!"); //$NON-NLS-1$ //$NON-NLS-2$ } else { post(new Runnable() { @Override public void ru...
diff --git a/Core/src/java/de/hattrickorganizer/gui/transferscout/PlayerConverter.java b/Core/src/java/de/hattrickorganizer/gui/transferscout/PlayerConverter.java index 59329378..0bfc2c1d 100644 --- a/Core/src/java/de/hattrickorganizer/gui/transferscout/PlayerConverter.java +++ b/Core/src/java/de/hattrickorganizer/gui/...
false
true
public final Player build(String text) throws Exception { error = 0; final Player player = new Player(); // Init some helper variables String mytext = text; final List<String> lines = new ArrayList<String>(); int p = -1; String tmp = ""; // Detect l...
public final Player build(String text) throws Exception { error = 0; final Player player = new Player(); // Init some helper variables String mytext = text; final List<String> lines = new ArrayList<String>(); int p = -1; String tmp = ""; // Detect l...
diff --git a/event-bus/src/main/java/org/jboss/seam/sidekick/bus/cdi/ObserverCaptureExtension.java b/event-bus/src/main/java/org/jboss/seam/sidekick/bus/cdi/ObserverCaptureExtension.java index 9c51dac7..c0fbe4dc 100644 --- a/event-bus/src/main/java/org/jboss/seam/sidekick/bus/cdi/ObserverCaptureExtension.java +++ b/eve...
true
true
private AnnotatedParameter addUniqueQualifier(final AnnotatedMethod method, final AnnotatedParameter param, final String identifier) { final BusManaged qualifier = new BusManaged() { @Override public Class<? extends Annotation> annotationType() { retu...
private AnnotatedParameter addUniqueQualifier(final AnnotatedMethod method, final AnnotatedParameter param, final String identifier) { final BusManaged qualifier = new BusManaged() { @Override public Class<? extends Annotation> annotationType() { retu...
diff --git a/qdox/src/main/java/com/thoughtworks/qdox/library/ClassLoaderLibrary.java b/qdox/src/main/java/com/thoughtworks/qdox/library/ClassLoaderLibrary.java index 62c1d336..ada2a301 100644 --- a/qdox/src/main/java/com/thoughtworks/qdox/library/ClassLoaderLibrary.java +++ b/qdox/src/main/java/com/thoughtworks/qdox/l...
false
true
protected JavaClass resolveJavaClass( String name ) { JavaClass result = null; for ( ClassLoader classLoader : classLoaders ) { String resource = name; if(name.indexOf( '$' ) > 0) { resource = resource.split( "$" )[0]; } res...
protected JavaClass resolveJavaClass( final String name ) { JavaClass result = null; for ( ClassLoader classLoader : classLoaders ) { String resource = name; if ( resource.indexOf( '$' ) > 0 ) { resource = resource.split( "$" )[0]; ...
diff --git a/ananya-reports-purge/src/main/java/org/motechproject/ananya/reports/kilkari/purge/service/ReportsPurgeService.java b/ananya-reports-purge/src/main/java/org/motechproject/ananya/reports/kilkari/purge/service/ReportsPurgeService.java index add1220..1618f16 100644 --- a/ananya-reports-purge/src/main/java/org/...
false
true
private void purgeFor(String msisdn) { msisdn = msisdn.trim(); if(msisdn.isEmpty()) { return; } logger.info("Started purging report records for msisdn: " + msisdn); Long msisdnInLong; try{ msisdnInLong = Long.valueOf(msisdn); }catch (E...
private void purgeFor(String msisdn) { msisdn = msisdn.trim(); if(msisdn.isEmpty()) { return; } logger.info(String.format("Started purging report records for msisdn: %s", msisdn)); Long msisdnInLong; try{ msisdnInLong = Long.valueOf(msisdn); ...
diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java index f1d09f3d2..4baca3c8f 100644 --- a/htroot/yacysearch.java +++ b/htroot/yacysearch.java @@ -1,466 +1,467 @@ // yacysearch.java // ----------------------- // part of the AnomicHTTPD caching proxy // (C) by Michael Peter Christen; mc@yacy.net // first ...
true
true
public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) { final plasmaSwitchboard sb = (plasmaSwitchboard) env; sb.localSearchLastAccess = System.currentTimeMillis(); final boolean searchAllowed = sb.getConfigBool("pub...
public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) { final plasmaSwitchboard sb = (plasmaSwitchboard) env; sb.localSearchLastAccess = System.currentTimeMillis(); final boolean searchAllowed = sb.getConfigBool("pub...
diff --git a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/data/target/unresolved/UnresolvedMethodCallInfo.java b/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/data/target/unresolved/UnresolvedMethodCallInfo.java index 63fa2fb0..fb4ade30 100644 --- a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/data/target/unres...
false
true
public MethodCallInfo resolve(final TargetClassInfo usingClass, final CallableUnitInfo usingMethod, final ClassInfoManager classInfoManager, final FieldInfoManager fieldInfoManager, final MethodInfoManager methodInfoManager) { // �s���ȌĂяo���łȂ������`�F�b�N MetricsToolSecuri...
public MethodCallInfo resolve(final TargetClassInfo usingClass, final CallableUnitInfo usingMethod, final ClassInfoManager classInfoManager, final FieldInfoManager fieldInfoManager, final MethodInfoManager methodInfoManager) { // �s���ȌĂяo���łȂ������`�F�b�N MetricsToolSecuri...
diff --git a/sikuli-script/src/main/java/org/sikuli/script/ScriptRunner.java b/sikuli-script/src/main/java/org/sikuli/script/ScriptRunner.java index 00219ad2..501d3bb6 100644 --- a/sikuli-script/src/main/java/org/sikuli/script/ScriptRunner.java +++ b/sikuli-script/src/main/java/org/sikuli/script/ScriptRunner.java @@ -1...
true
true
public void runPython(String bundlePath, File pyFile) throws IOException{ addTempHeader("addModPath(\"" + Util.slashify(bundlePath, true) + "\")"); addTempHeader("addModPath(\"" + Util.slashify(Util.getParentPath(bundlePath), true) + "\")"); addTempHeader("if len(sys.argv)==0 or '" + bundlePath + "...
public void runPython(String bundlePath, File pyFile) throws IOException{ addTempHeader("addModPath(\"" + Util.slashify(bundlePath, true) + "\")"); String parent = Util.getParentPath(bundlePath); if(parent == null) parent = "."; addTempHeader("addModPath(\"" + Util.slashify(parent, t...
diff --git a/core/src/main/java/org/apache/mina/handler/multiton/SingleSessionIoHandlerFactory.java b/core/src/main/java/org/apache/mina/handler/multiton/SingleSessionIoHandlerFactory.java index db416909..47c88390 100644 --- a/core/src/main/java/org/apache/mina/handler/multiton/SingleSessionIoHandlerFactory.java +++ b/...
true
true
SingleSessionIoHandler getHandler(IoSession session);
SingleSessionIoHandler getHandler(IoSession session) throws Exception;
diff --git a/src/web/org/openmrs/web/OpenmrsFilter.java b/src/web/org/openmrs/web/OpenmrsFilter.java index d85e6483..a33d849c 100644 --- a/src/web/org/openmrs/web/OpenmrsFilter.java +++ b/src/web/org/openmrs/web/OpenmrsFilter.java @@ -1,157 +1,159 @@ /** * The contents of this file are subject to the OpenMRS Public ...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest)request; HttpSession httpSession = httpRequest.getSession(); UserContext userContext = null; Object val = httpRequest.getAtt...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest httpRequest = (HttpServletRequest)request; HttpSession httpSession = httpRequest.getSession(); UserContext userContext = null; Object val = httpRequest.getAtt...
diff --git a/src/main/java/com/precipicegames/utilities/WorldChunkListener.java b/src/main/java/com/precipicegames/utilities/WorldChunkListener.java index 7ab3af4..d3e0bb5 100644 --- a/src/main/java/com/precipicegames/utilities/WorldChunkListener.java +++ b/src/main/java/com/precipicegames/utilities/WorldChunkListener....
true
true
public void oreChecker(ChunkPopulateEvent e) { Chunk chunk = e.getChunk(); ArrayList<Location> possibleLocations = new ArrayList<Location>(); for(int y = 0; y < chunk.getWorld().getMaxHeight(); y++) { for(int z = 0; z < 16; z++) { for(int x = 0; x < 16; x++) { Block block = chunk.getBlock(x, y, z)...
public void oreChecker(ChunkPopulateEvent e) { Chunk chunk = e.getChunk(); ArrayList<Location> possibleLocations = new ArrayList<Location>(); for(int y = 0; y < chunk.getWorld().getMaxHeight(); y++) { for(int z = 0; z < 16; z++) { for(int x = 0; x < 16; x++) { Block block = chunk.getBlock(x, y, z)...
diff --git a/JustAFK/src/net/alexben/JustAFK/JustAFK.java b/JustAFK/src/net/alexben/JustAFK/JustAFK.java index 01d38a1..b4a981e 100644 --- a/JustAFK/src/net/alexben/JustAFK/JustAFK.java +++ b/JustAFK/src/net/alexben/JustAFK/JustAFK.java @@ -1,236 +1,236 @@ /* * Copyright (c) 2013 Alex Bennett * * Permission is h...
true
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Player player = (Player) sender; if(JUtility.hasPermission(player, "justafk.basic")) { if(command.getName().equalsIgnoreCase("afk")) { if(JUtility.isAway(player)) { JUtility.setAway(player, false, ...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Player player = (Player) sender; if(JUtility.hasPermission(player, "justafk.basic")) { if(command.getName().equalsIgnoreCase("afk")) { if(JUtility.isAway(player)) { JUtility.setAway(player, false, ...
diff --git a/plugins/org.bonitasoft.studio.importer.bar/src/org/bonitasoft/studio/importer/bar/custom/migration/DatatypesMigration.java b/plugins/org.bonitasoft.studio.importer.bar/src/org/bonitasoft/studio/importer/bar/custom/migration/DatatypesMigration.java index c1cadb1c91..d0599bb425 100644 --- a/plugins/org.bonit...
false
true
public void migrateAfter(Model model, Metamodel metamodel) throws MigrationException { Instance doubleDataType = null; for (Instance mainProcess : model.getAllInstances("process.MainProcess")) { List<Object> datatypes = mainProcess.get("datatypes"); doubleDataType = model.new...
public void migrateAfter(Model model, Metamodel metamodel) throws MigrationException { Instance doubleDataType = null; for (Instance mainProcess : model.getAllInstances("process.MainProcess")) { List<Object> datatypes = mainProcess.get("datatypes"); doubleDataType = model.new...
diff --git a/src/main/TextFactory.java b/src/main/TextFactory.java index 651fc45..cb556a5 100644 --- a/src/main/TextFactory.java +++ b/src/main/TextFactory.java @@ -1,80 +1,80 @@ package main; import java.awt.Color; import java.awt.Font; import java.awt.GradientPaint; import java.awt.Graphics; import java.awt.G...
true
true
public static Texture toGradientTexture(String s, int color1, int color2, Font f, boolean antialias) { Texture tfall = TextureBank.getTexture("textg_"+s+"_"+color1+"_"+color2+"_"+f+"_"+antialias); if (tfall != null) return tfall; BufferedImage bi = new BufferedImage(1, 1, BufferedImage.TYP...
public static Texture toGradientTexture(String s, int color1, int color2, Font f, boolean antialias) { Texture tfall = TextureBank.getTexture("textg_"+s+"_"+color1+"_"+color2+"_"+f+"_"+antialias); if (tfall != null) return tfall; BufferedImage bi = new BufferedImage(1, 1, BufferedImage.TYP...
diff --git a/youJi/src/main/java/org/ritsuka/youji/util/yaconfig/IVerifier.java b/youJi/src/main/java/org/ritsuka/youji/util/yaconfig/IVerifier.java index b2a7216..2460a07 100644 --- a/youJi/src/main/java/org/ritsuka/youji/util/yaconfig/IVerifier.java +++ b/youJi/src/main/java/org/ritsuka/youji/util/yaconfig/IVerifier....
true
true
public boolean verify(List value) { for (Object obj: value) { if (obj !=null && obj.getClass() == getTypeClass()) return false; } return true; }
public boolean verify(List value) { for (Object obj: value) { if (obj !=null && obj.getClass() != getTypeClass()) return false; } return true; }
diff --git a/SnakesAndLadder/src/GameLogic/Star.java b/SnakesAndLadder/src/GameLogic/Star.java index f8f976e..c40dd88 100644 --- a/SnakesAndLadder/src/GameLogic/Star.java +++ b/SnakesAndLadder/src/GameLogic/Star.java @@ -1,95 +1,95 @@ /* * To change this template, choose Tools | Templates * and open the template i...
true
true
Star(int squareNum){ if (squareNum >= 0 && squareNum <= 100){ this.affectsSquare = squareNum; } else if (squareNum < 0) { this.affectsSquare = 0; } else { this.affectsSquare = 99; } this.calcDrawXY(); if (starIMG == null){ tr...
Star(int squareNum){ if (squareNum >= 0 && squareNum <= 100){ this.affectsSquare = squareNum; } else if (squareNum < 0) { this.affectsSquare = 0; } else { this.affectsSquare = 100; } this.calcDrawXY(); if (starIMG == null){ t...
diff --git a/src/xmlvm/org/xmlvm/proc/out/CppOutputProcess.java b/src/xmlvm/org/xmlvm/proc/out/CppOutputProcess.java index b97993ed..c57b9bfb 100755 --- a/src/xmlvm/org/xmlvm/proc/out/CppOutputProcess.java +++ b/src/xmlvm/org/xmlvm/proc/out/CppOutputProcess.java @@ -1,180 +1,180 @@ /* * Copyright (c) 2004-2009 XMLVM...
true
true
private List<String> getTypesForHeader(Document doc) { HashSet<String> seen = new HashSet<String>(); @SuppressWarnings("unchecked") Iterator<Object> i = doc.getDescendants(); while (i.hasNext()) { Object cur = i.next(); if (cur instanceof Element) { ...
private List<String> getTypesForHeader(Document doc) { HashSet<String> seen = new HashSet<String>(); @SuppressWarnings("unchecked") Iterator<Object> i = doc.getDescendants(); while (i.hasNext()) { Object cur = i.next(); if (cur instanceof Element) { ...
diff --git a/src/bwa_picard_gatk_pipeline/CommandLineClass.java b/src/bwa_picard_gatk_pipeline/CommandLineClass.java index 2e00aa7..496f6aa 100644 --- a/src/bwa_picard_gatk_pipeline/CommandLineClass.java +++ b/src/bwa_picard_gatk_pipeline/CommandLineClass.java @@ -1,233 +1,233 @@ /* * To change this template, choose...
true
true
public static void main(String[] args) { //Define all options Options options = new Options(); //general options options.addOption("i", "input", true, "the Json config file describing the samples, read groups, tags and files to process. "); options.addOption("o", "ou...
public static void main(String[] args) { //Define all options Options options = new Options(); //general options options.addOption("i", "input", true, "the Json config file describing the samples, read groups, tags and files to process. "); options.addOption("o", "ou...
diff --git a/src/toritools/leveleditor/LayerEditor.java b/src/toritools/leveleditor/LayerEditor.java index 8f57e64..e38bf93 100644 --- a/src/toritools/leveleditor/LayerEditor.java +++ b/src/toritools/leveleditor/LayerEditor.java @@ -1,89 +1,88 @@ package toritools.leveleditor; import java.awt.event.ActionEvent; im...
false
true
public LayerEditor(final LevelEditor editor) { setBorder(BorderFactory.createRaisedBevelBorder()); ActionListener action = new ActionListener() { public void actionPerformed(ActionEvent arg0) { editor.repaint(); } }; setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS)); Integer[] layers = new Inte...
public LayerEditor(final LevelEditor editor) { setBorder(BorderFactory.createRaisedBevelBorder()); ActionListener action = new ActionListener() { public void actionPerformed(ActionEvent arg0) { editor.repaint(); } }; setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS)); Integer[] layers = new Inte...
diff --git a/enzyme-portal/ep-web-client/src/main/java/uk/ac/ebi/ep/web/SearchController.java b/enzyme-portal/ep-web-client/src/main/java/uk/ac/ebi/ep/web/SearchController.java index 215c930dd..8679649ed 100644 --- a/enzyme-portal/ep-web-client/src/main/java/uk/ac/ebi/ep/web/SearchController.java +++ b/enzyme-portal/ep...
true
true
public String postSearchResult(SearchModel searchModelForm, BindingResult result, Model model, HttpSession session) { String view = "search"; List<EnzymeSummary> summaryEntryFilteredResults = new LinkedList<EnzymeSummary>(); if (searchModelForm != null) { try { ...
public String postSearchResult(SearchModel searchModelForm, BindingResult result, Model model, HttpSession session) { String view = "search"; List<EnzymeSummary> summaryEntryFilteredResults = new LinkedList<EnzymeSummary>(); if (searchModelForm != null) { try { ...
diff --git a/web/src/main/java/org/fao/geonet/kernel/harvest/harvester/csw/Aligner.java b/web/src/main/java/org/fao/geonet/kernel/harvest/harvester/csw/Aligner.java index b5803fcd61..1d616367f3 100644 --- a/web/src/main/java/org/fao/geonet/kernel/harvest/harvester/csw/Aligner.java +++ b/web/src/main/java/org/fao/geonet...
true
true
public Aligner(Logger log, ServiceContext sc, Dbms dbms, CswServer server, CswParams params) throws OperationAbortedEx { this.log = log; this.context = sc; this.dbms = dbms; this.server = server; this.params = params; GeonetContext gc = (GeonetContext) context.getHandlerContext(Ge...
public Aligner(Logger log, ServiceContext sc, Dbms dbms, CswServer server, CswParams params) throws OperationAbortedEx { this.log = log; this.context = sc; this.dbms = dbms; this.server = server; this.params = params; GeonetContext gc = (GeonetContext) context.getHandlerContext(Ge...
diff --git a/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/traintest/TrainTestEvalJob.java b/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/traintest/TrainTestEvalJob.java index 5f816d2ad..915cab391 100644 --- a/lenskit-eval/src/main/java/org/grouplens/lenskit/eval/traintest/TrainTestEvalJob.java +++ b/l...
true
true
private void runEvaluation() throws IOException, RecommenderBuildException { Closer closer = Closer.create(); try { TableWriter userTable = userOutputSupplier.get(); if (userTable != null) { closer.register(userTable); } TableWriter pre...
private void runEvaluation() throws IOException, RecommenderBuildException { Closer closer = Closer.create(); try { TableWriter userTable = userOutputSupplier.get(); if (userTable != null) { closer.register(userTable); } TableWriter pre...
diff --git a/fap/app/verificacion/VerificacionUtils.java b/fap/app/verificacion/VerificacionUtils.java index 92907dd4..1332f5d5 100644 --- a/fap/app/verificacion/VerificacionUtils.java +++ b/fap/app/verificacion/VerificacionUtils.java @@ -1,410 +1,417 @@ package verificacion; import java.util.ArrayList; import jav...
true
true
public static List<VerificacionDocumento> getVerificacionDocumentosFromNewDocumentos (List<Documento> listDoc, String uriTramite, List<Verificacion> verificacionesBefore, Long idSolicitud) { Tramite tramite = (Tramite) Tramite.find("select t from Tramite t where t.uri=?", uriTramite).first(); List<Verificaci...
public static List<VerificacionDocumento> getVerificacionDocumentosFromNewDocumentos (List<Documento> listDoc, String uriTramite, List<Verificacion> verificacionesBefore, Long idSolicitud) { Tramite tramite = (Tramite) Tramite.find("select t from Tramite t where t.uri=?", uriTramite).first(); List<Verificaci...
diff --git a/src/main/java/com/drtshock/willie/command/utility/AuthorCommandHandler.java b/src/main/java/com/drtshock/willie/command/utility/AuthorCommandHandler.java index eef79a7..aa81fdf 100644 --- a/src/main/java/com/drtshock/willie/command/utility/AuthorCommandHandler.java +++ b/src/main/java/com/drtshock/willie/c...
true
true
public void handle(Willie bot, Channel channel, User sender, String[] args) throws Exception { LOG.info("Started to handle !author command from " + sender.getNick() + "..."); if (args.length != 1 && args.length != 2) { nope(channel); return; } try { ...
public void handle(Willie bot, Channel channel, User sender, String[] args) throws Exception { LOG.info("Started to handle !author command from " + sender.getNick() + "..."); if (args.length != 1 && args.length != 2) { nope(channel); return; } try { ...
diff --git a/resource/src/test/org/apache/oodt/cas/resource/queuerepo/TestXmlQueueRepository.java b/resource/src/test/org/apache/oodt/cas/resource/queuerepo/TestXmlQueueRepository.java index 5c914b153..c2f144b9e 100644 --- a/resource/src/test/org/apache/oodt/cas/resource/queuerepo/TestXmlQueueRepository.java +++ b/reso...
true
true
public void testMapping() throws QueueManagerException { assertEquals(this.queueManager.getQueues(), Arrays.asList("quick", "high", "long")); assertEquals(this.queueManager.getNodes("quick"), Arrays.asList("localhost")); assertEquals(this.queueManager.getNodes("high"), Arrays.asList("localhost")); assertEquals...
public void testMapping() throws QueueManagerException { assertTrue(this.queueManager.getQueues().containsAll(Arrays.asList("quick", "high", "long"))); assertEquals(this.queueManager.getNodes("quick"), Arrays.asList("localhost")); assertEquals(this.queueManager.getNodes("high"), Arrays.asList("localhost")); a...
diff --git a/src/com/jgaap/generics/DivergenceFunction.java b/src/com/jgaap/generics/DivergenceFunction.java index 71cd1b4..0c23e37 100644 --- a/src/com/jgaap/generics/DivergenceFunction.java +++ b/src/com/jgaap/generics/DivergenceFunction.java @@ -1,102 +1,106 @@ /* * JGAAP -- a graphical program for stylometric au...
true
true
public double distance(EventSet es1, EventSet es2) { double dist; double first; double second; String divergenceString = getParameter("divergenceType"); DivergenceType divergenceType = DivergenceType.valueOf(divergenceString.toUpperCase()); switch (divergenceType.ordinal()) { case 1: dist = (divergenc...
public double distance(EventSet es1, EventSet es2) { double dist; double first; double second; String divergenceString = getParameter("divergenceType"); DivergenceType divergenceType; if(!divergenceString.isEmpty()) divergenceType = DivergenceType.valueOf(divergenceString.toUpperCase()); else diver...
diff --git a/src/main/java/com/era7/lib/bioinfo/bioinfoutil/seq/SeqUtil.java b/src/main/java/com/era7/lib/bioinfo/bioinfoutil/seq/SeqUtil.java index d067b54..d7b3582 100644 --- a/src/main/java/com/era7/lib/bioinfo/bioinfoutil/seq/SeqUtil.java +++ b/src/main/java/com/era7/lib/bioinfo/bioinfoutil/seq/SeqUtil.java @@ -1,9...
false
true
public static String getComplementaryInverted(String sequence){ StringBuilder result = new StringBuilder(); for (int i = sequence.length() - 1 ; i >= 0 ; i--) { char currentChar = sequence.charAt(i); char valueToAppend; ...
public static String getComplementaryInverted(String sequence){ StringBuilder result = new StringBuilder(); for (int i = sequence.length() - 1 ; i >= 0 ; i--) { char currentChar = sequence.charAt(i); char valueToAppend; ...
diff --git a/src/logic/AIAdapter.java b/src/logic/AIAdapter.java index fd76a7c..bd29a10 100644 --- a/src/logic/AIAdapter.java +++ b/src/logic/AIAdapter.java @@ -1,256 +1,256 @@ package logic; import gui.PlayNetGame; import java.util.ArrayList; import java.util.List; import net.FakeMove; /** * AIAdapter....
false
true
public void runGame(AIPlugin ai){ PlayNetGame.running = true; while(PlayNetGame.running){ // System.out.println("my turn"); while(g.isBlackMove()){ try { Thread.sleep(200); } catch (InterruptedException e) { } AIBoard[] boards = getBoards(); FakeMove fm = ai.getMove(boards); } t...
public void runGame(AIPlugin ai){ PlayNetGame.running = true; while(PlayNetGame.running){ while(g.isBlackMove()){ try { Thread.sleep(200); } catch (InterruptedException e) { } AIBoard[] boards = getBoards(); FakeMove fm = ai.getMove(boards); playMove(fm); } try { Thread.sl...
diff --git a/src/generator/src/main/java/com/smvp4g/generator/generator/AbstractGenerator.java b/src/generator/src/main/java/com/smvp4g/generator/generator/AbstractGenerator.java index e6f8e36..af108dc 100644 --- a/src/generator/src/main/java/com/smvp4g/generator/generator/AbstractGenerator.java +++ b/src/generator/src...
false
true
public String generate(TreeLogger logger, GeneratorContext context, String typeName) throws UnableToCompleteException { try { this.context = context; classType = context.getTypeOracle().getType(typeName); PrintWriter sourceWriter = context.tryCreate(logger, getPackageName...
public String generate(TreeLogger logger, GeneratorContext context, String typeName) throws UnableToCompleteException { try { this.context = context; classType = context.getTypeOracle().getType(typeName); PrintWriter sourceWriter = context.tryCreate(logger, getPackageName...
diff --git a/src/main/java/gov/loc/repository/bagit/filesystem/impl/AbstractFileNode.java b/src/main/java/gov/loc/repository/bagit/filesystem/impl/AbstractFileNode.java index ba3d5587..817b7917 100644 --- a/src/main/java/gov/loc/repository/bagit/filesystem/impl/AbstractFileNode.java +++ b/src/main/java/gov/loc/reposito...
true
true
protected AbstractFileNode(File file, FileFileSystem fileSystem) { this.file = file; this.fileSystem = fileSystem; if(fileSystem.getRoot() == null) { this.filepath = ""; this.name = null; } else { try { this.filepath = FilenameHelper.removeBasePath(fileSystem.getFile().getCanonicalPath(), fil...
protected AbstractFileNode(File file, FileFileSystem fileSystem) { this.file = file; this.fileSystem = fileSystem; if(fileSystem.getRoot() == null) { this.filepath = ""; this.name = null; } else { //Using absolute instead of canonical so symlinks name are not dereferenced this.filepath = Filen...
diff --git a/jasypt/src/main/java/org/jasypt/hibernate/connectionprovider/EncryptedPasswordC3P0ConnectionProvider.java b/jasypt/src/main/java/org/jasypt/hibernate/connectionprovider/EncryptedPasswordC3P0ConnectionProvider.java index f836592..ff652f1 100644 --- a/jasypt/src/main/java/org/jasypt/hibernate/connectionprovi...
false
true
public void configure(Properties props) { String encryptorRegisteredName = props.getProperty(ParameterNaming.ENCRYPTOR_REGISTERED_NAME); HibernatePBEEncryptorRegistry encryptorRegistry = HibernatePBEEncryptorRegistry.getInstance(); PBEStringEncryptor encry...
public void configure(Properties props) { String encryptorRegisteredName = props.getProperty(ParameterNaming.ENCRYPTOR_REGISTERED_NAME); HibernatePBEEncryptorRegistry encryptorRegistry = HibernatePBEEncryptorRegistry.getInstance(); PBEStringEncryptor encry...
diff --git a/src/com/jidesoft/plaf/basic/BasicFolderChooserUI.java b/src/com/jidesoft/plaf/basic/BasicFolderChooserUI.java index 9a3ba3af..c636de3c 100644 --- a/src/com/jidesoft/plaf/basic/BasicFolderChooserUI.java +++ b/src/com/jidesoft/plaf/basic/BasicFolderChooserUI.java @@ -1,680 +1,685 @@ /* * @(#)BasicFolderCh...
false
true
protected JComponent createToolbar() { _toolbar = new FolderToolBar(true, _folderChooser.getRecentList()); _folderToolbarListener = new FolderToolBarListener() { // ------------------------------------------------------------------------------ // Implementation of FolderToolB...
protected JComponent createToolbar() { _toolbar = new FolderToolBar(true, _folderChooser.getRecentList()); _folderToolbarListener = new FolderToolBarListener() { // ------------------------------------------------------------------------------ // Implementation of FolderToolB...
diff --git a/src/lib/com/izforge/izpack/panels/PathInputPanel.java b/src/lib/com/izforge/izpack/panels/PathInputPanel.java index 2668fc36..a10ffb6f 100755 --- a/src/lib/com/izforge/izpack/panels/PathInputPanel.java +++ b/src/lib/com/izforge/izpack/panels/PathInputPanel.java @@ -1,424 +1,427 @@ /* * IzPack - Copyrigh...
true
true
public static void loadDefaultInstallDir(InstallerFrame parentFrame, InstallData idata) { // Load only once ... if (getDefaultInstallDir() != null) return; BufferedReader br = null; try { InputStream in = null; if (OsVersion.IS_WINDOWS) ...
public static void loadDefaultInstallDir(InstallerFrame parentFrame, InstallData idata) { // Load only once ... if (getDefaultInstallDir() != null) return; BufferedReader br = null; try { InputStream in = null; if (OsVersion.IS_WINDOWS) ...
diff --git a/sub/source/net/sourceforge/texlipse/bibeditor/BibDocumentModel.java b/sub/source/net/sourceforge/texlipse/bibeditor/BibDocumentModel.java index d49ca88..961ace9 100644 --- a/sub/source/net/sourceforge/texlipse/bibeditor/BibDocumentModel.java +++ b/sub/source/net/sourceforge/texlipse/bibeditor/BibDocumentMo...
true
true
private void updateDocumentPositions() { IDocument document = editor.getDocumentProvider().getDocument(editor.getEditorInput()); try { document.removePositionCategory(BibOutlinePage.SEGMENTS); } catch (BadPositionCategoryException bpce) { // do nothing ...
private void updateDocumentPositions() { IDocument document = editor.getDocumentProvider().getDocument(editor.getEditorInput()); try { document.removePositionCategory(BibOutlinePage.SEGMENTS); } catch (BadPositionCategoryException bpce) { // do nothing ...
diff --git a/src/main/java/cz/mallat/uasparser/OnlineUpdater.java b/src/main/java/cz/mallat/uasparser/OnlineUpdater.java index 7e6a262..c89f9c7 100644 --- a/src/main/java/cz/mallat/uasparser/OnlineUpdater.java +++ b/src/main/java/cz/mallat/uasparser/OnlineUpdater.java @@ -1,222 +1,222 @@ package cz.mallat.uasparser; ...
true
true
protected List<Section> loadDataFromInternet() throws IOException { File tmpFile = File.createTempFile("uas", ".txt"); try { // Download file to temp location BufferedReader reader = null; FileWriter writer = new FileWriter(tmpFile); try { ...
protected List<Section> loadDataFromInternet() throws IOException { File tmpFile = File.createTempFile("uas", ".txt"); try { // Download file to temp location BufferedReader reader = null; FileWriter writer = new FileWriter(tmpFile); try { ...
diff --git a/src/frontend/org/voltcore/messaging/VoltMessageFactory.java b/src/frontend/org/voltcore/messaging/VoltMessageFactory.java index 160d80c36..fdb505bdb 100644 --- a/src/frontend/org/voltcore/messaging/VoltMessageFactory.java +++ b/src/frontend/org/voltcore/messaging/VoltMessageFactory.java @@ -1,115 +1,91 @@ ...
false
true
private VoltMessage instantiate(byte messageType) { // instantiate a new message instance according to the id VoltMessage message = null; switch (messageType) { // case INITIATE_TASK_ID: // message = new InitiateTaskMessage(); // break; // case INITIATE_R...
private VoltMessage instantiate(byte messageType) { // instantiate a new message instance according to the id VoltMessage message = null; switch (messageType) { case HEARTBEAT_ID: message = new HeartbeatMessage(); break; case HEARTBEAT_RESPONSE_ID: ...
diff --git a/src/web/org/codehaus/groovy/grails/web/metaclass/RedirectDynamicMethod.java b/src/web/org/codehaus/groovy/grails/web/metaclass/RedirectDynamicMethod.java index 9a7341702..e87679ada 100644 --- a/src/web/org/codehaus/groovy/grails/web/metaclass/RedirectDynamicMethod.java +++ b/src/web/org/codehaus/groovy/gra...
true
true
public Object invoke(Object target, String methodName, Object[] arguments) { if(arguments.length == 0) throw new MissingMethodException(METHOD_SIGNATURE,target.getClass(),arguments); Map argMap = arguments[0] instanceof Map ? (Map)arguments[0] : Collections.EMPTY_MAP; if(argMap....
public Object invoke(Object target, String methodName, Object[] arguments) { if(arguments.length == 0) throw new MissingMethodException(METHOD_SIGNATURE,target.getClass(),arguments); Map argMap = arguments[0] instanceof Map ? (Map)arguments[0] : Collections.EMPTY_MAP; if(argMap....
diff --git a/servers/sip-servlets/sip-servlets-examples/shopping-demo/business/src/main/java/org/jboss/mobicents/seam/listeners/MediaResourceListener.java b/servers/sip-servlets/sip-servlets-examples/shopping-demo/business/src/main/java/org/jboss/mobicents/seam/listeners/MediaResourceListener.java index d8afebba9..9414...
false
true
public void update(MsNotifyEvent event) { logger.info("event ID " + event.getEventID()); // logger.info("event cause " + event.getCause()); // logger.info("event message " + event.getMessage()); // if(session != null && connection != null && event.getEventID() == MsAnnouncement.COMPLETED) { try { ...
public void update(MsNotifyEvent event) { logger.info("event ID " + event.getEventID()); // logger.info("event cause " + event.getCause()); // logger.info("event message " + event.getMessage()); // if(session != null && connection != null && event.getEventID().equals(MsAnnouncement.COMPLETED)) { tr...
diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java index 971df76d..e790553f 100644 --- a/vlc-android/src/org/videolan/vlc/AudioService.java +++ b/vlc-android/src/org/videolan/vlc/AudioService.java @@ -1,1288 +1,1289 @@ /*********************************...
true
true
public void handleMessage(Message msg) { AudioService service = getOwner(); if(service == null) return; switch (msg.getData().getInt("event")) { case EventHandler.MediaPlayerPlaying: Log.i(TAG, "MediaPlayerPlaying"); se...
public void handleMessage(Message msg) { AudioService service = getOwner(); if(service == null) return; switch (msg.getData().getInt("event")) { case EventHandler.MediaPlayerPlaying: Log.i(TAG, "MediaPlayerPlaying"); se...
diff --git a/src/Extensions/org/objectweb/proactive/extensions/gcmdeployment/GCMApplication/commandbuilder/CommandBuilderProActive.java b/src/Extensions/org/objectweb/proactive/extensions/gcmdeployment/GCMApplication/commandbuilder/CommandBuilderProActive.java index 5bf4a2c36..6b85dc9d5 100644 --- a/src/Extensions/org/...
true
true
public String buildCommand(HostInfo hostInfo, GCMApplicationInternal gcma) { if ((proActivePath == null) && (hostInfo.getTool(Tools.PROACTIVE.id) == null)) { throw new IllegalStateException( "ProActive installation path must be specified with the relpath attribute inside the pro...
public String buildCommand(HostInfo hostInfo, GCMApplicationInternal gcma) { if ((proActivePath == null) && (hostInfo.getTool(Tools.PROACTIVE.id) == null)) { throw new IllegalStateException( "ProActive installation path must be specified with the relpath attribute inside the pro...
diff --git a/scrambles/src_tnoodle_resources/scrambler/CubeScrambler.java b/scrambles/src_tnoodle_resources/scrambler/CubeScrambler.java index 0ab53fc4..8b09c6b4 100644 --- a/scrambles/src_tnoodle_resources/scrambler/CubeScrambler.java +++ b/scrambles/src_tnoodle_resources/scrambler/CubeScrambler.java @@ -1,398 +1,398 ...
true
true
public String generateScramble(Random r) { if(size == 2) { int[] posit = twoSolver.mix(r); return twoSolver.solve(posit, TWO_BY_TWO_MIN_SCRAMBLE_LENGTH); } else if(size == 3) { return twoPhaseSearcher.get().solution(Tools.randomCube(r), THREE_BY_THREE_MAX_SCRAMBLE_LENGTH, THREE_BY_THREE_TIMEOUT, THREE_BY_...
public String generateScramble(Random r) { if(size == 2) { int[] posit = twoSolver.mix(r); return twoSolver.solve(posit, TWO_BY_TWO_MIN_SCRAMBLE_LENGTH); } else if(size == 3) { return twoPhaseSearcher.get().solution(Tools.randomCube(r), THREE_BY_THREE_MAX_SCRAMBLE_LENGTH, THREE_BY_THREE_TIMEOUT, THREE_BY_...
diff --git a/jumble/src/com/reeltwo/jumble/fast/FlatTestSuite.java b/jumble/src/com/reeltwo/jumble/fast/FlatTestSuite.java index 3dd9b9b..00957cc 100644 --- a/jumble/src/com/reeltwo/jumble/fast/FlatTestSuite.java +++ b/jumble/src/com/reeltwo/jumble/fast/FlatTestSuite.java @@ -1,114 +1,114 @@ package com.reeltwo.jumble...
true
true
public FlatTestSuite(final Class theClass) { Method suiteMethod; try { suiteMethod = theClass.getMethod("suite", new Class[] {}); if ((suiteMethod.getModifiers() & Modifier.STATIC) == 0) { // No nonstatic methods suiteMethod = null; } else if ((suiteMethod.getModifiers() & Mo...
public FlatTestSuite(final Class<?> theClass) { Method suiteMethod; try { suiteMethod = theClass.getMethod("suite", new Class[] {}); if ((suiteMethod.getModifiers() & Modifier.STATIC) == 0) { // No nonstatic methods suiteMethod = null; } else if ((suiteMethod.getModifiers() &...
diff --git a/src/com/cyanogenmod/filemanager/ui/widgets/DirectoryInlineAutocompleteTextView.java b/src/com/cyanogenmod/filemanager/ui/widgets/DirectoryInlineAutocompleteTextView.java index b674d98..6ab3017 100644 --- a/src/com/cyanogenmod/filemanager/ui/widgets/DirectoryInlineAutocompleteTextView.java +++ b/src/com/cya...
true
true
public void onTextChanged(String newValue, List<String> currentFilterData) { String value = newValue; //Check if directory is valid if (value.length() == 0) { if (this.mOnValidationListener != null) { this.mOnValidationListener.onVoidValue(); } ...
public void onTextChanged(String newValue, List<String> currentFilterData) { String value = newValue; //Check if directory is valid if (value.length() == 0) { if (this.mOnValidationListener != null) { this.mOnValidationListener.onVoidValue(); } ...
diff --git a/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java b/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java index c990c1870..00a18091b 100644 --- a/src/com/android/gallery3d/filtershow/filters/ImageFilterRedEye.java +++ b/src/com/android/gallery3d/filtershow/filters/ImageFilte...
false
true
public void apply(Bitmap bitmap) { int w = bitmap.getWidth(); int h = bitmap.getHeight(); float p = mParameter; float value = p; int box = Math.min(w, h); int sizex = Math.min((int)((p+100)*box/400),w/2); int sizey = Math.min((int)((p+100)*box/800),h/2); ...
public Bitmap apply(Bitmap bitmap, float scaleFactor, boolean highQuality) { int w = bitmap.getWidth(); int h = bitmap.getHeight(); float p = mParameter; float value = p; int box = Math.min(w, h); int sizex = Math.min((int)((p+100)*box/400),w/2); int sizey = M...
diff --git a/src/org/gaem/bodies/AbstractBody.java b/src/org/gaem/bodies/AbstractBody.java index 78dec1d..9f787c3 100644 --- a/src/org/gaem/bodies/AbstractBody.java +++ b/src/org/gaem/bodies/AbstractBody.java @@ -1,278 +1,278 @@ package org.gaem.bodies; import org.gaem.ObjectManager; import org.jsfml.graphics.Colo...
true
true
public void move (float dx, float dy) { if (collidable) { //Calculating ort float abs_r = (float) Math.sqrt(dx*dx + dy*dy); // Prevent from division by zero if (abs_r == 0) { return; } Vector2f tr = new Vector2f(0, 0); Vector2f ir = new Vector2f(dx/abs_r, dy/abs_r); boolean collid...
public void move (float dx, float dy) { if (collidable) { //Calculating ort float abs_r = (float) Math.sqrt(dx*dx + dy*dy); // Prevent from division by zero if (abs_r == 0) { return; } Vector2f tr = new Vector2f(0, 0); Vector2f ir = new Vector2f(dx/abs_r, dy/abs_r); boolean collid...
diff --git a/build/kits/jboss-container/teiid-examples/simpleclient/JDBCClient.java b/build/kits/jboss-container/teiid-examples/simpleclient/JDBCClient.java index 0940fa93db..9ea3c61a21 100644 --- a/build/kits/jboss-container/teiid-examples/simpleclient/JDBCClient.java +++ b/build/kits/jboss-container/teiid-examples/si...
false
true
public static void execute(Connection connection, String sql) throws Exception { try { Statement statement = connection.createStatement(); ResultSet results = statement.executeQuery(sql); ResultSetMetaData metadata = results.getMetaData(); int columns = metadata.getColumnCount(); System.out.pr...
public static void execute(Connection connection, String sql) throws Exception { try { Statement statement = connection.createStatement(); ResultSet results = statement.executeQuery(sql); ResultSetMetaData metadata = results.getMetaData(); int columns = metadata.getColumnCount(); System.out.pr...
diff --git a/extension/eevolution/libero/src/main/java/org/eevolution/form/VOrderPlanning.java b/extension/eevolution/libero/src/main/java/org/eevolution/form/VOrderPlanning.java index 3065310..28bf03f 100644 --- a/extension/eevolution/libero/src/main/java/org/eevolution/form/VOrderPlanning.java +++ b/extension/eevolut...
true
true
public void run() { log.fine("Info.Worker.run"); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); StringBuffer sql = new StringBuffer (m_sqlMain); String dynWhere = find (); if (dynWhere.length() > 0 && !dynWhere.equals("()")) sql.append(" AND "...
public void run() { log.fine("Info.Worker.run"); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); StringBuffer sql = new StringBuffer (m_sqlMain); String dynWhere = find (); if (dynWhere.length() > 0) sql.append(" AND " + dynWhere); // includ...
diff --git a/tests/src/com/todoroo/astrid/repeats/NewRepeatTests.java b/tests/src/com/todoroo/astrid/repeats/NewRepeatTests.java index 6ee048098..70de96bc1 100644 --- a/tests/src/com/todoroo/astrid/repeats/NewRepeatTests.java +++ b/tests/src/com/todoroo/astrid/repeats/NewRepeatTests.java @@ -1,430 +1,430 @@ /** * Co...
true
true
protected void testRepeating(boolean completeBefore, boolean fromCompletion, RRule rrule, Frequency frequency, String title) { Task t = new Task(); t.setValue(Task.TITLE, title); long dueDate = DateUtilities.now() + DateUtilities.ONE_DAY * 3; Date adjustDate = new Date(du...
protected void testRepeating(boolean completeBefore, boolean fromCompletion, RRule rrule, Frequency frequency, String title) { Task t = new Task(); t.setValue(Task.TITLE, title); long dueDate = DateUtilities.now() + DateUtilities.ONE_DAY * 3; Date adjustDate = new Date(du...
diff --git a/SpagoBIProject/src/it/eng/spagobi/tools/dataset/DatasetManagementAPI.java b/SpagoBIProject/src/it/eng/spagobi/tools/dataset/DatasetManagementAPI.java index 0440b030d..55c30e9ef 100644 --- a/SpagoBIProject/src/it/eng/spagobi/tools/dataset/DatasetManagementAPI.java +++ b/SpagoBIProject/src/it/eng/spagobi/too...
false
true
public List<JSONObject> getDataSetParameters(String label) { logger.debug("IN"); try { List<JSONObject> parametersList = new ArrayList<JSONObject>(); IDataSet dataSet = getDataSetDAO().loadDataSetByLabel(label); if(dataSet == null) { throw new RuntimeException("Impossible to get dataset [" + label...
public List<JSONObject> getDataSetParameters(String label) { logger.debug("IN"); try { List<JSONObject> parametersList = new ArrayList<JSONObject>(); IDataSet dataSet = getDataSetDAO().loadDataSetByLabel(label); if(dataSet == null) { throw new RuntimeException("Impossible to get dataset [" + label...
diff --git a/src/main/java/org/apache/ws/security/message/token/BinarySecurity.java b/src/main/java/org/apache/ws/security/message/token/BinarySecurity.java index 9a5c0fbb0..4ee68204a 100644 --- a/src/main/java/org/apache/ws/security/message/token/BinarySecurity.java +++ b/src/main/java/org/apache/ws/security/message/t...
true
true
public BinarySecurity(Element elem, boolean bspCompliant) throws WSSecurityException { element = elem; QName el = new QName(element.getNamespaceURI(), element.getLocalName()); if (!(el.equals(TOKEN_BST) || el.equals(TOKEN_KI))) { throw new WSSecurityException( WSS...
public BinarySecurity(Element elem, boolean bspCompliant) throws WSSecurityException { element = elem; QName el = new QName(element.getNamespaceURI(), element.getLocalName()); if (!(el.equals(TOKEN_BST) || el.equals(TOKEN_KI))) { throw new WSSecurityException( WSS...
diff --git a/basic/mail/src/main/java/org/springframework/integration/samples/mail/imapidle/GmailInboundImapIdleAdapterTestApp.java b/basic/mail/src/main/java/org/springframework/integration/samples/mail/imapidle/GmailInboundImapIdleAdapterTestApp.java index e2e5956c..9a02b3e8 100644 --- a/basic/mail/src/main/java/org/...
true
true
public static void main (String[] args) throws Exception { ApplicationContext ac = new ClassPathXmlApplicationContext("/META-INF/spring/integration/gmail-imap-idle-config.xml"); DirectChannel inputChannel = ac.getBean("recieveChannel", DirectChannel.class); inputChannel.subscribe(new MessageHandler() { public...
public static void main (String[] args) throws Exception { ApplicationContext ac = new ClassPathXmlApplicationContext("/META-INF/spring/integration/gmail-imap-idle-config.xml"); DirectChannel inputChannel = ac.getBean("receiveChannel", DirectChannel.class); inputChannel.subscribe(new MessageHandler() { public...
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/WhitespaceCharacterPainter.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/WhitespaceCharacterPainter.java index 4beed44a1..08e13f575 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/WhitespaceCharacterPainter.java +++ b/org.eclipse.j...
true
true
private void handleDrawRequest(GC gc, int startOffset, int endOffset) { StyledTextContent content= fTextWidget.getContent(); int length= endOffset - startOffset; String text= content.getTextRange(startOffset, length); StyleRange styleRange= null; Color fg= null; Point selection= fTextWidget.getSelection();...
private void handleDrawRequest(GC gc, int startOffset, int endOffset) { StyledTextContent content= fTextWidget.getContent(); int length= endOffset - startOffset; String text= content.getTextRange(startOffset, length); StyleRange styleRange= null; Color fg= null; Point selection= fTextWidget.getSelection();...
diff --git a/src/ibis/impl/tcp/TcpReceivePort.java b/src/ibis/impl/tcp/TcpReceivePort.java index c41cbd1e..5dca3139 100644 --- a/src/ibis/impl/tcp/TcpReceivePort.java +++ b/src/ibis/impl/tcp/TcpReceivePort.java @@ -1,663 +1,663 @@ /* $Id$ */ package ibis.impl.tcp; import ibis.ipl.IbisError; import ibis.ipl.Port...
true
true
private boolean doUpcall(TcpReadMessage msg) { synchronized (this) { // Wait until the previous message was finished. while (this.m != null || !allowUpcalls) { try { wait(); } catch (InterruptedException e) { // ...
private boolean doUpcall(TcpReadMessage msg) { synchronized (this) { // Wait until the previous message was finished. while (this.m != null || !allowUpcalls) { try { wait(); } catch (InterruptedException e) { // ...
diff --git a/src/ai/Determine.java b/src/ai/Determine.java index 7853741..f2eda5e 100644 --- a/src/ai/Determine.java +++ b/src/ai/Determine.java @@ -1,74 +1,75 @@ package ai; import ui.Coordinate; public class Determine { public static Coordinate[] judge(Coordinate c, boolean[][] yours, boolean[][] enemys)...
true
true
public static Coordinate[] judge(Coordinate c, boolean[][] yours, boolean[][] enemys) { Coordinate[] pieces; if (yours[c.x][c.y] || enemys[c.x][c.y]) pieces = new Coordinate[0]; else { boolean[][] direction = new boolean[3][3]; int x, y, totalNum = 0, maxLineNum = 1, LineNum, n = 0; for (int i = -...
public static Coordinate[] judge(Coordinate c, boolean[][] yours, boolean[][] enemys) { Coordinate[] pieces; if ((c.x < 0) || (c.x > 7) || (c.y < 0) || (c.y > 7) || yours[c.x][c.y] || enemys[c.x][c.y]) pieces = new Coordinate[0]; else { boolean[][] direction = new boolean[3][3]; int x, y, totalNu...
diff --git a/src/plugins/XMLSpider/web/ConfigPage.java b/src/plugins/XMLSpider/web/ConfigPage.java index b295391..c32cbcd 100644 --- a/src/plugins/XMLSpider/web/ConfigPage.java +++ b/src/plugins/XMLSpider/web/ConfigPage.java @@ -1,227 +1,227 @@ /** * Configuration page * @author j16sdiz (1024D/75494252) */ pack...
true
true
public void writeContent(HTTPRequest request, HTMLNode contentNode) { HTMLNode configContent = pageMaker.getInfobox("#", "Configuration", contentNode); HTMLNode configForm = pr.addFormChild(configContent, "plugins.XMLSpider.XMLSpider?ConfigPage", "configForm"); configForm.addChild("div", "class", "configprefi...
public void writeContent(HTTPRequest request, HTMLNode contentNode) { HTMLNode configContent = pageMaker.getInfobox("#", "Configuration", contentNode); HTMLNode configForm = pr.addFormChild(configContent, "", "configForm"); configForm.addChild("div", "class", "configprefix", "Spider Options"); HTMLNode s...
diff --git a/src/minecraft/ml/core/Config.java b/src/minecraft/ml/core/Config.java index 717845d..d40ed49 100644 --- a/src/minecraft/ml/core/Config.java +++ b/src/minecraft/ml/core/Config.java @@ -1,87 +1,87 @@ package ml.core; import java.lang.annotation.Annotation; import java.lang.annotation.Retention; import ...
true
true
public void load(Configuration cfg) { try { for (Field fld : this.getClass().getFields()){ prop ann = fld.getAnnotation(prop.class); if (ann != null){ Class type = fld.getType(); String propName = ann.inFileName().isEmpty() ? fld.getName() : ann.inFileName(); Property cProp = null; if ...
public void load(Configuration cfg) { try { for (Field fld : this.getClass().getFields()){ prop ann = fld.getAnnotation(prop.class); if (ann != null){ Class type = fld.getType(); String propName = ann.inFileName().isEmpty() ? fld.getName() : ann.inFileName(); Property cProp = null; if ...
diff --git a/conan-biosd-processes/src/main/java/uk/ac/ebi/fgpt/conan/process/biosd/SampleTabRelationalLSFProcess.java b/conan-biosd-processes/src/main/java/uk/ac/ebi/fgpt/conan/process/biosd/SampleTabRelationalLSFProcess.java index be54351..ea0a47d 100644 --- a/conan-biosd-processes/src/main/java/uk/ac/ebi/fgpt/conan/...
true
true
protected String getCommand(Map<ConanParameter, String> parameters) throws IllegalArgumentException { getLog().info( "Executing " + getName() + " with the following parameters: " + parameters.toString()); // deal with parameters SampleTabAccessionParameter accession = new SampleTabAccessionParamete...
protected String getCommand(Map<ConanParameter, String> parameters) throws IllegalArgumentException { getLog().info( "Executing " + getName() + " with the following parameters: " + parameters.toString()); // deal with parameters SampleTabAccessionParameter accession = new SampleTabAccessionParamete...
diff --git a/test-case/src/test/java/pkg/XmlParser.java b/test-case/src/test/java/pkg/XmlParser.java index 8909dd3..6a702df 100644 --- a/test-case/src/test/java/pkg/XmlParser.java +++ b/test-case/src/test/java/pkg/XmlParser.java @@ -1,56 +1,56 @@ package pkg; import static org.hamcrest.core.Is.is; import static or...
true
true
void expectBugs(String className, int expectedBugs) { final String filePath = "pkg/" + className + ".java"; try { DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); Document doc = docBuilder.parse("target/findbugsXml.xml"...
void expectBugs(String className, int expectedBugs) { final String filePath = "pkg/" + className + ".java"; try { DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); Document doc = docBuilder.parse("target/findbugsXml.xml"...
diff --git a/email/src/main/java/org/soluvas/email/util/EmailCatalogXmiTracker.java b/email/src/main/java/org/soluvas/email/util/EmailCatalogXmiTracker.java index 229450e9..862784b2 100644 --- a/email/src/main/java/org/soluvas/email/util/EmailCatalogXmiTracker.java +++ b/email/src/main/java/org/soluvas/email/util/Email...
false
true
private List<EObject> extractObjects(final List<URL> xmiUrls, @Nullable final Bundle bundle, final ClassLoader classLoader) { if (xmiUrls.isEmpty()) return ImmutableList.of(); // ------------------ Ecore package files ------------ final List<EmailCatalog> catalogs = new ArrayList<>(); for (final URL xmi...
private List<EObject> extractObjects(final List<URL> xmiUrls, @Nullable final Bundle bundle, final ClassLoader classLoader) { if (xmiUrls.isEmpty()) return ImmutableList.of(); // ------------------ Ecore package files ------------ final List<EmailCatalog> catalogs = new ArrayList<>(); for (final URL xmi...
diff --git a/TipCalculator/src/il/ac/huji/tipcalculator/TipCalculatorActivity.java b/TipCalculator/src/il/ac/huji/tipcalculator/TipCalculatorActivity.java index 62bc254..c6aa0f6 100644 --- a/TipCalculator/src/il/ac/huji/tipcalculator/TipCalculatorActivity.java +++ b/TipCalculator/src/il/ac/huji/tipcalculator/TipCalcula...
false
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tip_calculator); final CheckBox roundCheckBox = (CheckBox) findViewById(R.id.chkRound); final TextView tipResText = (TextView) findViewById(R.id.txtTipResult); final EditText edtBillEdit...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tip_calculator); final CheckBox roundCheckBox = (CheckBox) findViewById(R.id.chkRound); final TextView tipResText = (TextView) findViewById(R.id.txtTipResult); final EditText edtBillEdit...
diff --git a/src/com/fsck/k9/view/MessageWebView.java b/src/com/fsck/k9/view/MessageWebView.java index 6ec7f50b..e81016df 100644 --- a/src/com/fsck/k9/view/MessageWebView.java +++ b/src/com/fsck/k9/view/MessageWebView.java @@ -1,154 +1,160 @@ package com.fsck.k9.view; import android.content.Context; import android...
true
true
public void configure() { this.setVerticalScrollBarEnabled(true); this.setVerticalScrollbarOverlay(true); this.setScrollBarStyle(SCROLLBARS_INSIDE_OVERLAY); this.setLongClickable(true); if (K9.getK9Theme() == K9.THEME_DARK) { // Black theme should get a black web...
public void configure() { this.setVerticalScrollBarEnabled(true); this.setVerticalScrollbarOverlay(true); this.setScrollBarStyle(SCROLLBARS_INSIDE_OVERLAY); this.setLongClickable(true); if (K9.getK9Theme() == K9.THEME_DARK) { // Black theme should get a black web...
diff --git a/support/org/intellij/grammar/psi/impl/BnfFileImpl.java b/support/org/intellij/grammar/psi/impl/BnfFileImpl.java index 642f7b9..2bd1fac 100755 --- a/support/org/intellij/grammar/psi/impl/BnfFileImpl.java +++ b/support/org/intellij/grammar/psi/impl/BnfFileImpl.java @@ -1,150 +1,153 @@ /* * Copyright 2011-...
true
true
public BnfRule getRule(String ruleName) { if (myNamesMap == null) { myNamesMap = CachedValuesManager.getManager(getProject()).createCachedValue(new CachedValueProvider<Map<String, BnfRule>>() { @Override public Result<Map<String, BnfRule>> compute() { Map<String, BnfRule> map = new...
public BnfRule getRule(String ruleName) { if (myNamesMap == null) { myNamesMap = CachedValuesManager.getManager(getProject()).createCachedValue(new CachedValueProvider<Map<String, BnfRule>>() { @Override public Result<Map<String, BnfRule>> compute() { Map<String, BnfRule> map = new...
diff --git a/java/src/org/broadinstitute/sting/playground/gatk/walkers/CovariateCounterWalker.java b/java/src/org/broadinstitute/sting/playground/gatk/walkers/CovariateCounterWalker.java index 745e40a2e..fd7c4e666 100644 --- a/java/src/org/broadinstitute/sting/playground/gatk/walkers/CovariateCounterWalker.java +++ b/j...
true
true
public Integer map(RefMetaDataTracker tracker, char ref, LocusContext context) { rodDbSNP dbsnp = (rodDbSNP)tracker.lookup("dbSNP", null); if ( dbsnp == null || !dbsnp.isSNP() ) { List<SAMRecord> reads = context.getReads(); List<Integer> offsets = context.getOffsets(); ...
public Integer map(RefMetaDataTracker tracker, char ref, LocusContext context) { rodDbSNP dbsnp = (rodDbSNP)tracker.lookup("dbSNP", null); if ( dbsnp == null || !dbsnp.isSNP() ) { List<SAMRecord> reads = context.getReads(); List<Integer> offsets = context.getOffsets(); ...
diff --git a/java-api/src/de/zib/scalaris/ConnectionPool.java b/java-api/src/de/zib/scalaris/ConnectionPool.java index 634d16a6..5ce589fb 100644 --- a/java-api/src/de/zib/scalaris/ConnectionPool.java +++ b/java-api/src/de/zib/scalaris/ConnectionPool.java @@ -1,160 +1,160 @@ /** * Copyright 2011 Zuse Institute Berli...
true
true
public Connection getConnection(final long timeout) throws ConnectionException { final long timeAtStart = System.currentTimeMillis(); Connection conn; while ((conn = getConnection()) == null) { try { wait(timeout); } catch (final InterruptedException e...
public Connection getConnection(final long timeout) throws ConnectionException { final long timeAtStart = System.currentTimeMillis(); Connection conn; while ((conn = getConnection()) == null) { try { Thread.currentThread().wait(timeout); } catch (final...
diff --git a/src/powercrystals/minefactoryreloaded/gui/GuiFactoryPowered.java b/src/powercrystals/minefactoryreloaded/gui/GuiFactoryPowered.java index 5877dd41..0b96d8e6 100644 --- a/src/powercrystals/minefactoryreloaded/gui/GuiFactoryPowered.java +++ b/src/powercrystals/minefactoryreloaded/gui/GuiFactoryPowered.java @...
false
true
private void drawTank(int liquidId, int liquidMeta, int level) { int liquidTexture = 0; if (liquidId <= 0) { return; } if (liquidId < Block.blocksList.length && Block.blocksList[liquidId] != null) { ForgeHooksClient.bindTexture(Block.blocksList[liquidId].getTextureFile(), 0); liquidTexture = Blo...
private void drawTank(int liquidId, int liquidMeta, int level) { int liquidTexture = 0; int gaugeTexture = mc.renderEngine.getTexture(MineFactoryReloadedCore.guiFolder + "noinvtank.png"); if (liquidId <= 0) { return; } if (liquidId < Block.blocksList.length && Block.blocksList[liquidId] != null) { ...
diff --git a/manual/other/intentTargetApp/targetApp/src/com/smap/targetapp/BroadCastReceiver.java b/manual/other/intentTargetApp/targetApp/src/com/smap/targetapp/BroadCastReceiver.java index a480e424..da9e1902 100644 --- a/manual/other/intentTargetApp/targetApp/src/com/smap/targetapp/BroadCastReceiver.java +++ b/manual...
true
true
public void onReceive(Context context, Intent intent) { String testData = ""; testData = intent.getStringExtra("MyData"); Toast toast = Toast.makeText(context, testData + " - Toast from Target Application", Toast.LENGTH_SHORT); toast.show(); }
public void onReceive(Context context, Intent intent) { String testData = ""; testData = intent.getStringExtra("myData"); Toast toast = Toast.makeText(context, testData + " - Toast from Target Application", Toast.LENGTH_SHORT); toast.show(); }
diff --git a/src/main/java/ru/urbancamper/audiobookmarker/text/LongestSubsequenceFinder.java b/src/main/java/ru/urbancamper/audiobookmarker/text/LongestSubsequenceFinder.java index 999d6b6..add3ae6 100644 --- a/src/main/java/ru/urbancamper/audiobookmarker/text/LongestSubsequenceFinder.java +++ b/src/main/java/ru/urbanc...
true
true
private TreeMap<Integer, Integer> findLogestSubsequence(Integer[] fullArray, Integer[] subArray) { int[][] lengths = new int[fullArray.length + 1][subArray.length + 1]; int[] fullArrayIndexesOfSameWords = new int[subArray.length + 1]; // row 0 and column 0 are initialized to 0 ...
private TreeMap<Integer, Integer> findLogestSubsequence(Integer[] fullArray, Integer[] subArray) { int[][] lengths = new int[fullArray.length + 1][subArray.length + 1]; int[] fullArrayIndexesOfSameWords = new int[subArray.length + 1]; // row 0 and column 0 are initialized to 0 ...
diff --git a/cadpageTest/src/net/anei/cadpage/parsers/NC/NCCabarrusCountyBParserTest.java b/cadpageTest/src/net/anei/cadpage/parsers/NC/NCCabarrusCountyBParserTest.java index 7aa8d6753..7053fcceb 100644 --- a/cadpageTest/src/net/anei/cadpage/parsers/NC/NCCabarrusCountyBParserTest.java +++ b/cadpageTest/src/net/anei/cad...
false
true
public void testParser2() { doTest("T1", "82:P|BOMB|2|273|90|3200 PATRICK HENRY DR NW|DAVIDSON HWY|10/26/2011 14:48:25|COVENANT CLASSICAL SCHOOL|7047921854|1106799", "DATE:10/26/2011", "TIME:14:48:25", "CALL:BOMB", "ADDR:3200 PATRICK HENRY DR NW", "X:DAVIDSON H...
public void testParser2() { doTest("T1", "82:P|BOMB|2|273|90|3200 PATRICK HENRY DR NW|DAVIDSON HWY|10/26/2011 14:48:25|COVENANT CLASSICAL SCHOOL|7047921854|1106799", "DATE:10/26/2011", "TIME:14:48:25", "CALL:BOMB", "ADDR:3200 PATRICK HENRY DR NW", "X:DAVIDSON H...
diff --git a/core/src/main/java/org/apache/abdera/util/AbstractExtensionFactory.java b/core/src/main/java/org/apache/abdera/util/AbstractExtensionFactory.java index 82be5b8c..73fee601 100644 --- a/core/src/main/java/org/apache/abdera/util/AbstractExtensionFactory.java +++ b/core/src/main/java/org/apache/abdera/util/Abs...
true
true
public <T extends Element> T getElementWrapper(Element internal) { T t = null; QName qname = internal.getQName(); Class<? extends ElementWrapper> impl = impls.get(qname); if (impl != null) { try { t = (T)impl.getConstructor( new Class[] {Element.class}).newInstance( ...
public <T extends Element> T getElementWrapper(Element internal) { T t = null; QName qname = internal.getQName(); Class<? extends ElementWrapper> impl = impls.get(qname); if (impl != null) { try { t = (T)impl.getConstructor( new Class[] {Element.class}).newInstance( ...
diff --git a/src/main/java/com/rackspace/cloud/api/docs/calabash/extensions/CopyTransformImage.java b/src/main/java/com/rackspace/cloud/api/docs/calabash/extensions/CopyTransformImage.java index 06dbfd6..76d3821 100644 --- a/src/main/java/com/rackspace/cloud/api/docs/calabash/extensions/CopyTransformImage.java +++ b/sr...
true
true
private String processSelectedImage(XdmNode imageDataFileRef) { final URI baseUri = imageDataFileRef.getBaseURI(); final String fileRef = imageDataFileRef.getStringValue(); final URI baseDirUri = baseUri.resolve("."); String srcImgFilePath = FilenameUtils.normalize(baseDirUri.getPath() + File.separator + fi...
private String processSelectedImage(XdmNode imageDataFileRef) { final URI baseUri = imageDataFileRef.getBaseURI(); final String fileRef = imageDataFileRef.getStringValue(); final URI baseDirUri = baseUri.resolve("."); String srcImgFilePath = FilenameUtils.normalize(baseDirUri.getPath() + File.separator + fi...
diff --git a/src/main/java/pl/com/it_crowd/utils/BigDecimalUtils.java b/src/main/java/pl/com/it_crowd/utils/BigDecimalUtils.java index d4ec2d1..2ab95d6 100644 --- a/src/main/java/pl/com/it_crowd/utils/BigDecimalUtils.java +++ b/src/main/java/pl/com/it_crowd/utils/BigDecimalUtils.java @@ -1,34 +1,34 @@ package pl.com.i...
true
true
public static BigDecimal scale(BigDecimal value, int scale) { if (value != null && value.scale() != scale) { return value.setScale(2, RoundingMode.HALF_UP); } else { return value; } }
public static BigDecimal scale(BigDecimal value, int scale) { if (value != null && value.scale() != scale) { return value.setScale(scale, RoundingMode.HALF_UP); } else { return value; } }
diff --git a/src/net/sf/freecol/server/generator/TerrainGenerator.java b/src/net/sf/freecol/server/generator/TerrainGenerator.java index f640f254e..01e82a13e 100644 --- a/src/net/sf/freecol/server/generator/TerrainGenerator.java +++ b/src/net/sf/freecol/server/generator/TerrainGenerator.java @@ -1,362 +1,361 @@ packag...
false
true
public void createMap(Game game, Game importGame, boolean[][] landMap) { final int width = landMap.length; final int height = landMap[0].length; final boolean importTerrain = getMapGeneratorOptions().getBoolean(MapGeneratorOptions.IMPORT_TERRAIN); final boolean importBonuses...
public void createMap(Game game, Game importGame, boolean[][] landMap) { final int width = landMap.length; final int height = landMap[0].length; final boolean importTerrain = (importGame != null) && getMapGeneratorOptions().getBoolean(MapGeneratorOptions.IMPORT_TERRAIN); fin...
diff --git a/ZONE-extractor/ZONE-RSSreader/src/main/java/org/zoneproject/extractor/rssreader/DownloadLastsNewsThread.java b/ZONE-extractor/ZONE-RSSreader/src/main/java/org/zoneproject/extractor/rssreader/DownloadLastsNewsThread.java index 3772cf9..5a5308c 100644 --- a/ZONE-extractor/ZONE-RSSreader/src/main/java/org/zon...
true
true
public void run() { String lastRss = ""; String [] sources; while(true){ sources = RSSGetter.getLastsSources(50); for(String cur: sources){ if(cur == lastRss){ break; } logger.info("QUICKANNOTATE:"+cu...
public void run() { String lastRss = ""; String [] sources; while(true){ sources = RSSGetter.getLastsSources(50); for(String cur: sources){ if(cur.equals(lastRss)){ break; } logger.info("QUICKANNOTATE...
diff --git a/Samples/NavigationSample/src/org/cocoa4android/navigationsample/FirstViewController.java b/Samples/NavigationSample/src/org/cocoa4android/navigationsample/FirstViewController.java index c65dddd..01fa102 100644 --- a/Samples/NavigationSample/src/org/cocoa4android/navigationsample/FirstViewController.java ++...
true
true
protected void viewDidLoad() { super.viewDidLoad(); this.setTitle("FirstView"); UIImageView imageView = new UIImageView(UIImage.imageNamed(R.drawable.ic_launcher)); imageView.setCenter(CGPointMake(160, 200)); //this is very important imageView.setKeepAspectRatio(YES); this.view.addSubview(imageView); ...
protected void viewDidLoad() { super.viewDidLoad(); this.setTitle("FirstView"); UIImageView imageView = new UIImageView(UIImage.imageNamed(R.drawable.ic_launcher)); imageView.setCenter(CGPointMake(160, 200)); //this is very important imageView.setKeepAspectRatio(YES); this.view.addSubview(imageView); ...
diff --git a/SWADroid/src/es/ugr/swad/swadroid/modules/Login.java b/SWADroid/src/es/ugr/swad/swadroid/modules/Login.java index b75f8dea..ad9c351e 100644 --- a/SWADroid/src/es/ugr/swad/swadroid/modules/Login.java +++ b/SWADroid/src/es/ugr/swad/swadroid/modules/Login.java @@ -1,176 +1,176 @@ /* * This file is part of...
true
true
private void requestService() throws NoSuchAlgorithmException, IOException, XmlPullParserException, SoapFault { //Encrypts user password with SHA-512 and encodes it to Base64 md = MessageDigest.getInstance("SHA-512"); md.update(prefs.getUserPassword().getBytes()); userPa...
private void requestService() throws NoSuchAlgorithmException, IOException, XmlPullParserException, SoapFault { //Encrypts user password with SHA-512 and encodes it to Base64 md = MessageDigest.getInstance("SHA-512"); md.update(prefs.getUserPassword().getBytes()); userPa...