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/main/src/com/google/refine/expr/functions/ToString.java b/main/src/com/google/refine/expr/functions/ToString.java index 7611b85f..ef66de61 100644 --- a/main/src/com/google/refine/expr/functions/ToString.java +++ b/main/src/com/google/refine/expr/functions/ToString.java @@ -1,88 +1,83 @@ /* Copyright 20...
false
true
public Object call(Properties bindings, Object[] args) { if (args.length >= 1) { Object o1 = args[0]; if (o1 != null) { if (o1 instanceof Date) { Calendar c = Calendar.getInstance(); c.setTime((Date) o1); o1 ...
public Object call(Properties bindings, Object[] args) { if (args.length >= 1) { Object o1 = args[0]; if (o1 != null) { if (o1 instanceof Calendar || o1 instanceof Date) { DateFormat formatter = null; if (args.length == 2) { ...
diff --git a/src/multitallented/redcastlemedia/bukkit/herostronghold/HeroStronghold.java b/src/multitallented/redcastlemedia/bukkit/herostronghold/HeroStronghold.java index e79f3df..18a8456 100644 --- a/src/multitallented/redcastlemedia/bukkit/herostronghold/HeroStronghold.java +++ b/src/multitallented/redcastlemedia/b...
true
true
public boolean onCommand(CommandSender sender, org.bukkit.command.Command command, String label, String[] args) { String debug = label; for (String s : args) { debug += " " + s; } System.out.println("[HeroStronghold] " + debug); Player player = null; try {...
public boolean onCommand(CommandSender sender, org.bukkit.command.Command command, String label, String[] args) { String debug = label; for (String s : args) { debug += " " + s; } System.out.println("[HeroStronghold] " + debug); Player player = null; try {...
diff --git a/src/main/java/me/furt/industrial/CustomBlocks.java b/src/main/java/me/furt/industrial/CustomBlocks.java index 5d993eb..0b0a1cf 100644 --- a/src/main/java/me/furt/industrial/CustomBlocks.java +++ b/src/main/java/me/furt/industrial/CustomBlocks.java @@ -1,38 +1,38 @@ package me.furt.industrial; import me...
true
true
public void init() { machines = new Texture(plugin, "block_machine.png", 256, 256, 16); generators = new Texture(plugin, "block_generator.png", 256, 256, 16); miningMachine = new BlockMiningMachine(plugin); //Mining Machine Recipe ItemStack mmResult = new SpoutItemStack(miningMachine, 1); SpoutShapedRec...
public void init() { machines = new Texture(plugin, "block_machine.png", 256, 256, 16); generators = new Texture(plugin, "block_generator.png", 256, 256, 16); miningMachine = new BlockMiningMachine(plugin); //Mining Machine Recipe ItemStack mmResult = new SpoutItemStack(miningMachine, 1); SpoutShapedRec...
diff --git a/bundles/org.eclipse.e4.tools.compat/src/org/eclipse/e4/tools/compat/internal/PartHelper.java b/bundles/org.eclipse.e4.tools.compat/src/org/eclipse/e4/tools/compat/internal/PartHelper.java index 5c74bc64..aceae1eb 100644 --- a/bundles/org.eclipse.e4.tools.compat/src/org/eclipse/e4/tools/compat/internal/Part...
true
true
public static IEclipseContext createPartContext(WorkbenchPart part) throws PartInitException { IWorkbenchPartSite site = part.getSite(); IEclipseContext parentContext = (IEclipseContext) site.getService(IEclipseContext.class); // Check if running in 4.x if( parentContext.get("org.eclipse.e4.ui.workbench.IPr...
public static IEclipseContext createPartContext(WorkbenchPart part) throws PartInitException { IWorkbenchPartSite site = part.getSite(); IEclipseContext parentContext = (IEclipseContext) site.getService(IEclipseContext.class); // Check if running in 4.x if( parentContext.get("org.eclipse.e4.ui.workbench.IPr...
diff --git a/common/abo/pipes/PipeItemsStripes.java b/common/abo/pipes/PipeItemsStripes.java index 0aa2c8a..e824c5a 100644 --- a/common/abo/pipes/PipeItemsStripes.java +++ b/common/abo/pipes/PipeItemsStripes.java @@ -1,160 +1,160 @@ /** * BuildCraft is open-source. It is distributed under the terms of the * BuildC...
false
true
public void drop(PipeTransportItems pipe, EntityData data) { Position p = new Position(xCoord, yCoord, zCoord, data.orientation); p.moveForwards(1.0); /* * if (convertPipe(pipe, data)) * if(CoreProxy.proxy.isSimulating(worldObj)) * BuildCraftTransport.pipeItemsStipes.onItemUseFirst(new * ItemStack(B...
public void drop(PipeTransportItems pipe, EntityData data) { Position p = new Position(xCoord, yCoord, zCoord, data.orientation); p.moveForwards(1.0); /* * if (convertPipe(pipe, data)) * if(CoreProxy.proxy.isSimulating(worldObj)) * BuildCraftTransport.pipeItemsStipes.onItemUseFirst(new * ItemStack(B...
diff --git a/src/main/java/eu/codearte/fairyland/producer/util/CalendarGenerator.java b/src/main/java/eu/codearte/fairyland/producer/util/CalendarGenerator.java index 5ad7123..0af3199 100644 --- a/src/main/java/eu/codearte/fairyland/producer/util/CalendarGenerator.java +++ b/src/main/java/eu/codearte/fairyland/producer...
true
true
public Calendar randomCalendarInThePast() { GregorianCalendar calendar = timeProvider.getGregorianCalendar(); calendar.roll(YEAR, -randomGenerator.randomBetween(0, 100)); int maximumDay = calendar.getActualMaximum(DAY_OF_YEAR); calendar.set(DAY_OF_YEAR, randomGenerator.randomBetween(1, maximumDay));...
public Calendar randomCalendarInThePast() { GregorianCalendar calendar = timeProvider.getGregorianCalendar(); calendar.roll(YEAR, -randomGenerator.randomBetween(1, 100)); int maximumDay = calendar.getActualMaximum(DAY_OF_YEAR); calendar.set(DAY_OF_YEAR, randomGenerator.randomBetween(1, maximumDay));...
diff --git a/fm-workbench/agree/com.rockwellcollins.atc.agree.analysis/src/com/rockwellcollins/atc/agree/analysis/AgreeGenerator.java b/fm-workbench/agree/com.rockwellcollins.atc.agree.analysis/src/com/rockwellcollins/atc/agree/analysis/AgreeGenerator.java index a4395297..4e010ac0 100644 --- a/fm-workbench/agree/com.ro...
false
true
public Program evaluate(){ ComponentImplementation compImpl = AgreeEmitterUtilities.getInstanceImplementation(compInst); ComponentType ct = AgreeEmitterUtilities.getInstanceType(compInst); AgreeLayout layout = new AgreeLayout(); String category = ""; AgreeAn...
public Program evaluate(){ ComponentImplementation compImpl = AgreeEmitterUtilities.getInstanceImplementation(compInst); ComponentType ct = AgreeEmitterUtilities.getInstanceType(compInst); AgreeLayout layout = new AgreeLayout(); String category = ""; AgreeAn...
diff --git a/rmt/src/main/java/de/flower/common/ui/ajax/event/AjaxEventListener.java b/rmt/src/main/java/de/flower/common/ui/ajax/event/AjaxEventListener.java index 679e2f00..1579833b 100644 --- a/rmt/src/main/java/de/flower/common/ui/ajax/event/AjaxEventListener.java +++ b/rmt/src/main/java/de/flower/common/ui/ajax/ev...
false
true
public void onEvent(final Component component, final IEvent<?> event) { super.onEvent(component, event); final Object payload = event.getPayload(); if (!isAjaxEventPayload(payload)) { return; } if (checkForComponentUpdate(payload)) { // add to ajax req...
public void onEvent(final Component component, final IEvent<?> event) { super.onEvent(component, event); final Object payload = event.getPayload(); if (!isAjaxEventPayload(payload)) { return; } if (checkForComponentUpdate(payload)) { // add to ajax req...
diff --git a/src/main/java/org/mctourney/AutoReferee/listeners/CombatListener.java b/src/main/java/org/mctourney/AutoReferee/listeners/CombatListener.java index bb63ee9..652f2c0 100644 --- a/src/main/java/org/mctourney/AutoReferee/listeners/CombatListener.java +++ b/src/main/java/org/mctourney/AutoReferee/listeners/Com...
true
true
public void playerDeath(PlayerDeathEvent event) { AutoRefMatch match = plugin.getMatch(event.getEntity().getWorld()); if (match != null) { // get victim, and killer (maybe null) of this player Player victim = (Player) event.getEntity(); AutoRefPlayer vapl = match.getPlayer(victim); Player killer = ...
public void playerDeath(PlayerDeathEvent event) { AutoRefMatch match = plugin.getMatch(event.getEntity().getWorld()); if (match != null) { // get victim, and killer (maybe null) of this player Player victim = (Player) event.getEntity(); AutoRefPlayer vapl = match.getPlayer(victim); Player killer = ...
diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/Case.java b/Core/src/org/sleuthkit/autopsy/casemodule/Case.java index 2c3d0d5e4..e1c7dcbec 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/Case.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/Case.java @@ -1,950 +1,950 @@ /* * Autopsy Forensic Browse...
true
true
private static void doCaseChange(Case toChangeTo) { logger.log(Level.INFO, "Chaning case to: " + toChangeTo); if (toChangeTo != null) { // new case is open // clear the temp folder when the case is created / opened Case.clearTempFolder(); checkSubFolders(toChange...
private static void doCaseChange(Case toChangeTo) { logger.log(Level.INFO, "Changing Case to: " + toChangeTo); if (toChangeTo != null) { // new case is open // clear the temp folder when the case is created / opened Case.clearTempFolder(); checkSubFolders(toChang...
diff --git a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/remote/SvnRemoteGetInfo.java b/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/remote/SvnRemoteGetInfo.java index 160f05cca..4ee04730c 100644 --- a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc2/remote/SvnRemoteGetInfo.java +++ b/s...
true
true
protected SvnInfo run() throws SVNException { SvnTarget infoTarget = getOperation().getFirstTarget(); Structure<RepositoryInfo> repositoryInfo = getRepositoryAccess().createRepositoryFor(infoTarget, getOperation().getRevision(), infoTarget.getPegRevision(), null); SVNRe...
protected SvnInfo run() throws SVNException { SvnTarget infoTarget = getOperation().getFirstTarget(); Structure<RepositoryInfo> repositoryInfo = getRepositoryAccess().createRepositoryFor(infoTarget, getOperation().getRevision(), infoTarget.getPegRevision(), null); SVNRe...
diff --git a/sosym-evaluations/org.kevoree.modeling.sosym.eval.kermeta/src/main/java/org/kevoree/modeling/sosym/eval/kermeta/KMFKotlinTest.java b/sosym-evaluations/org.kevoree.modeling.sosym.eval.kermeta/src/main/java/org/kevoree/modeling/sosym/eval/kermeta/KMFKotlinTest.java index b3233c96..ce573f88 100644 --- a/sosym...
true
true
public void doTest(String file) throws IOException, InterruptedException { File tempFile = File.createTempFile("tempKMFBench", "xmi"); FileHelper.copyFile(this.getClass().getClassLoader().getResourceAsStream(file), tempFile); Metamodel model = warmup(tempFile); Metamodel model2 = nu...
public void doTest(String file) throws IOException, InterruptedException { File tempFile = File.createTempFile("tempKMFBench", "xmi"); FileHelper.copyFile(this.getClass().getClassLoader().getResourceAsStream(file), tempFile); Metamodel model = warmup(tempFile); Metamodel model2 = nu...
diff --git a/android/src/com/google/zxing/client/android/CaptureActivityHandler.java b/android/src/com/google/zxing/client/android/CaptureActivityHandler.java index 3cf29691..3e1e2e8a 100755 --- a/android/src/com/google/zxing/client/android/CaptureActivityHandler.java +++ b/android/src/com/google/zxing/client/android/C...
true
true
public void handleMessage(Message message) { switch (message.what) { case R.id.restart_preview: Log.d(TAG, "Got restart preview message"); restartPreviewAndDecode(); break; case R.id.decode_succeeded: Log.d(TAG, "Got decode succeeded message"); state = State.SUC...
public void handleMessage(Message message) { switch (message.what) { case R.id.restart_preview: Log.d(TAG, "Got restart preview message"); restartPreviewAndDecode(); break; case R.id.decode_succeeded: Log.d(TAG, "Got decode succeeded message"); state = State.SUC...
diff --git a/src/com/johnpickup/backup/CatalogComparer.java b/src/com/johnpickup/backup/CatalogComparer.java index edb12ef..4bc7c57 100755 --- a/src/com/johnpickup/backup/CatalogComparer.java +++ b/src/com/johnpickup/backup/CatalogComparer.java @@ -1,72 +1,72 @@ package com.johnpickup.backup; import java.util.HashS...
true
true
private void compare() { for (String name : from) { if (to.contains(name)) { if (!from.getCharacteristics(name).equals(to.getCharacteristics(name))) { changed.add(name); totalBytesToCopy += from.getCharacteristics(name).getSize(); } } else { removed.add(name); } } for (String na...
private void compare() { for (String name : from) { if (to.contains(name)) { if (!from.getCharacteristics(name).equals(to.getCharacteristics(name))) { changed.add(name); totalBytesToCopy += from.getCharacteristics(name).getSize(); } } else { removed.add(name); } } for (String na...
diff --git a/src/com/redhat/qe/sm/cli/tests/GeneralTests.java b/src/com/redhat/qe/sm/cli/tests/GeneralTests.java index 60de64ad..abfb66d8 100644 --- a/src/com/redhat/qe/sm/cli/tests/GeneralTests.java +++ b/src/com/redhat/qe/sm/cli/tests/GeneralTests.java @@ -1,360 +1,361 @@ package com.redhat.qe.sm.cli.tests; impor...
true
true
protected List<List<Object>> getExpectedCommandLineOptionsDataAsListOfLists() { List<List<Object>> ll = new ArrayList<List<Object>>(); // String command, String stdoutRegex, List<String> expectedOptions String modulesRegex = "^ \\w+"; String optionsRegex = "^ --\\w+[(?:=\\w)]*|^ -\\w[(?:=\\w)]*\\, --\\w+[...
protected List<List<Object>> getExpectedCommandLineOptionsDataAsListOfLists() { List<List<Object>> ll = new ArrayList<List<Object>>(); // String command, String stdoutRegex, List<String> expectedOptions String modulesRegex = "^ \\w+"; String optionsRegex = "^ --\\w+[(?:=\\w)]*|^ -\\w[(?:=\\w)]*\\, --\\w+[...
diff --git a/src/dasher/android/ADasherInterface.java b/src/dasher/android/ADasherInterface.java index 3764584..92608e4 100644 --- a/src/dasher/android/ADasherInterface.java +++ b/src/dasher/android/ADasherInterface.java @@ -1,364 +1,364 @@ package dasher.android; import java.io.File; import java.io.FileInputStrea...
true
true
public void CreateModules() { final SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(androidCtx); final CDasherInput touch =new CDasherInput(this, getSettingsStore(), 0, "Touch Input") { @Override public boolean GetScreenCoords(CDasherView pView,long[] Coordinates) { DasherCanvas sur...
public void CreateModules() { final SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(androidCtx); final CDasherInput touch =new CDasherInput(this, getSettingsStore(), 0, "Touch Input") { @Override public boolean GetScreenCoords(CDasherView pView,long[] Coordinates) { DasherCanvas sur...
diff --git a/Server/Portal/trustednet-login/src/main/java/com/digt/web/ReminderController.java b/Server/Portal/trustednet-login/src/main/java/com/digt/web/ReminderController.java index 3a1c58d..23701c1 100644 --- a/Server/Portal/trustednet-login/src/main/java/com/digt/web/ReminderController.java +++ b/Server/Portal/tru...
true
true
public String sendReminder(HttpServletRequest request, Model model, //@RequestParam("recaptcha_challenge_field") String challengeField, //@RequestParam("recaptcha_response_field") String responseField, @ModelAttribute("formBean") ReminderBean form, BindingResult result) throws Messagin...
public String sendReminder(HttpServletRequest request, Model model, //@RequestParam("recaptcha_challenge_field") String challengeField, //@RequestParam("recaptcha_response_field") String responseField, @ModelAttribute("formBean") ReminderBean form, BindingResult result) throws Messagin...
diff --git a/src/main/java/edu/umd/cs/linqs/vision/ImagePatchUtils.java b/src/main/java/edu/umd/cs/linqs/vision/ImagePatchUtils.java index 2945832..50d5bc8 100644 --- a/src/main/java/edu/umd/cs/linqs/vision/ImagePatchUtils.java +++ b/src/main/java/edu/umd/cs/linqs/vision/ImagePatchUtils.java @@ -1,397 +1,396 @@ packag...
false
true
public static void setObservedHasMean(Predicate hasMean, Predicate mean, UniqueID imageID, Database data, int width, int height, int numMeans, double variance, double [] image, boolean [] mask) { /* Counts the number of observed pixels in the image */ int numObservedPixels = 0; for (boolean masked : mask) if ...
public static void setObservedHasMean(Predicate hasMean, Predicate mean, UniqueID imageID, Database data, int width, int height, int numMeans, double variance, double [] image, boolean [] mask) { /* Counts the number of observed pixels in the image */ int numObservedPixels = 0; for (boolean masked : mask) if ...
diff --git a/src/main/java/com/gmail/ikeike443/PlayAutoTestBuilder.java b/src/main/java/com/gmail/ikeike443/PlayAutoTestBuilder.java index 23ba22d..83675e3 100644 --- a/src/main/java/com/gmail/ikeike443/PlayAutoTestBuilder.java +++ b/src/main/java/com/gmail/ikeike443/PlayAutoTestBuilder.java @@ -1,262 +1,262 @@ packag...
true
true
public boolean perform(@SuppressWarnings("rawtypes") AbstractBuild build, Launcher launcher, BuildListener listener) { //clean up try { FilePath[] files = build.getProject().getWorkspace().list("test-result/*"); for (FilePath filePath : files) { filePath.delete(); } } catch (Exception e) { e.pri...
public boolean perform(@SuppressWarnings("rawtypes") AbstractBuild build, Launcher launcher, BuildListener listener) { //clean up try { FilePath[] files = build.getProject().getWorkspace().list("test-result/*"); for (FilePath filePath : files) { filePath.delete(); } } catch (Exception e) { e.pri...
diff --git a/src/main/java/com/wormhole_xtreme/WormholeXTremeCommand.java b/src/main/java/com/wormhole_xtreme/WormholeXTremeCommand.java index 963d39a..ab6d55e 100644 --- a/src/main/java/com/wormhole_xtreme/WormholeXTremeCommand.java +++ b/src/main/java/com/wormhole_xtreme/WormholeXTremeCommand.java @@ -1,909 +1,909 @@...
true
true
private static void doDial(Player p, String[] args) { Stargate start = StargateManager.RemoveActivatedStargate(p); if (start != null) { String startnetwork; if (start.Network != null) { startnetwork = start.Network.netName; } else { startnetwork = "Public"; } boo...
private static void doDial(Player p, String[] args) { Stargate start = StargateManager.RemoveActivatedStargate(p); if (start != null) { String startnetwork; if (start.Network != null) { startnetwork = start.Network.netName; } else { startnetwork = "Public"; } boo...
diff --git a/metrics-sampler-core/src/main/java/org/metricssampler/NormalRunner.java b/metrics-sampler-core/src/main/java/org/metricssampler/NormalRunner.java index 60c2091..15e91ce 100644 --- a/metrics-sampler-core/src/main/java/org/metricssampler/NormalRunner.java +++ b/metrics-sampler-core/src/main/java/org/metricss...
true
true
public void run(final String... args) { if (args.length != 1) { outputHelp(); } final File configFile = new File(args[1]); if (!configFile.canRead()) { System.err.println("Configuration file " + configFile.getAbsolutePath() + " not readable"); System.exit(2); } final Bootstrapper bootstrapper = De...
public void run(final String... args) { if (args.length != 1) { outputHelp(); } final File configFile = new File(args[0]); if (!configFile.canRead()) { System.err.println("Configuration file " + configFile.getAbsolutePath() + " not readable"); System.exit(2); } final Bootstrapper bootstrapper = De...
diff --git a/src/dctc/java/com/dataiku/dctc/file/SshFileBuilder.java b/src/dctc/java/com/dataiku/dctc/file/SshFileBuilder.java index 6ceb75b..08c4cba 100644 --- a/src/dctc/java/com/dataiku/dctc/file/SshFileBuilder.java +++ b/src/dctc/java/com/dataiku/dctc/file/SshFileBuilder.java @@ -1,83 +1,86 @@ package com.dataiku....
true
true
public synchronized GeneralizedFile buildFile(String account, String rawPath) { if (account == null) { throw new UserException("For SSH, you must specify either ssh://user@host/path or ssh://conf_account@/path"); } Params p = bank.getAccountParamsIfExists(getProtocol().getCanoni...
public synchronized GeneralizedFile buildFile(String account, String rawPath) { if (account == null) { throw new UserException("For SSH, you must specify either ssh://user@host/path or ssh://conf_account@/path"); } Params p = bank.getAccountParamsIfExists(getProtocol().getCanoni...
diff --git a/src/main/java/org/shininet/bukkit/playerheads/PlayerHeadsListener.java b/src/main/java/org/shininet/bukkit/playerheads/PlayerHeadsListener.java index 315ca61..1eece13 100644 --- a/src/main/java/org/shininet/bukkit/playerheads/PlayerHeadsListener.java +++ b/src/main/java/org/shininet/bukkit/playerheads/Play...
true
true
public void onEntityDeath(EntityDeathEvent event) { Player killer = event.getEntity().getKiller(); double lootingrate = 1; if (killer != null) { ItemStack weapon = killer.getItemInHand(); if (weapon != null) { lootingrate = 1 + (plugin.configFile.getD...
public void onEntityDeath(EntityDeathEvent event) { Player killer = event.getEntity().getKiller(); double lootingrate = 1; if (killer != null) { ItemStack weapon = killer.getItemInHand(); if (weapon != null) { lootingrate = 1 + (plugin.configFile.getD...
diff --git a/core/src/main/java/org/springframework/richclient/core/LabelInfo.java b/core/src/main/java/org/springframework/richclient/core/LabelInfo.java index 076dba5e..c2a9e9e6 100644 --- a/core/src/main/java/org/springframework/richclient/core/LabelInfo.java +++ b/core/src/main/java/org/springframework/richclient/c...
true
true
public static LabelInfo valueOf(final String labelDescriptor) { if (logger.isDebugEnabled()) { logger.debug("Creating a new LabelInfo from label descriptor [" + labelDescriptor + "]"); } if (!StringUtils.hasText(labelDescriptor)) { return BLANK_LABEL...
public static LabelInfo valueOf(final String labelDescriptor) { if (logger.isDebugEnabled()) { logger.debug("Creating a new LabelInfo from label descriptor [" + labelDescriptor + "]"); } if (!StringUtils.hasText(labelDescriptor)) { return BLANK_LABEL...
diff --git a/src/java/org/jivesoftware/sparkimpl/plugin/bookmarks/BookmarkPlugin.java b/src/java/org/jivesoftware/sparkimpl/plugin/bookmarks/BookmarkPlugin.java index 141fb576..913f7a82 100644 --- a/src/java/org/jivesoftware/sparkimpl/plugin/bookmarks/BookmarkPlugin.java +++ b/src/java/org/jivesoftware/sparkimpl/plugin...
true
true
public void initialize() { final SwingWorker bookmarkThreadWorker = new SwingWorker() { public Object construct() { return this; } /** * Installing menu into spark menu and adding events to bookmarks */ @Override...
public void initialize() { final SwingWorker bookmarkThreadWorker = new SwingWorker() { public Object construct() { return this; } /** * Installing menu into spark menu and adding events to bookmarks */ @Override...
diff --git a/AssemblyCodeGenerator.java b/AssemblyCodeGenerator.java index 6953ed2..5ce9dc9 100644 --- a/AssemblyCodeGenerator.java +++ b/AssemblyCodeGenerator.java @@ -1,726 +1,726 @@ import java.io.FileWriter; import java.io.IOException; import java.util.*; public class AssemblyCodeGenerator { private ...
true
true
public void DoCout(STO sto) { // !----cout << <sto name>---- writeCommentHeader("cout << " + sto.getName()); if(sto.getType().isInt()) { // set _intFmt, %o0 writeAssembly(SparcInstr.TWO_PARAM, SparcInstr.SET_OP, SparcInstr.INTFMT, SparcInstr.REG_ARG0); if...
public void DoCout(STO sto) { // !----cout << <sto name>---- writeCommentHeader("cout << " + sto.getName()); if(sto.getType().isInt()) { // set _intFmt, %o0 writeAssembly(SparcInstr.TWO_PARAM, SparcInstr.SET_OP, SparcInstr.INTFMT, SparcInstr.REG_ARG0); if...
diff --git a/src/js/incomplete/JSDateUtil.java b/src/js/incomplete/JSDateUtil.java index 1332fe7..5f61124 100644 --- a/src/js/incomplete/JSDateUtil.java +++ b/src/js/incomplete/JSDateUtil.java @@ -1,58 +1,58 @@ package js.incomplete; import java.util.Calendar; public class JSDateUtil { public static String g...
false
true
public static String getRelativeTime(Calendar date) { Calendar now = Calendar.getInstance(); long diff = now.getTimeInMillis() - date.getTimeInMillis(); if (Math.abs(diff) >= 86400000) { return getRelativeDate(date); } else if (Math.abs(diff) >= 3600000) { long hours = diff / 3600000; if (hours < 0) {...
public static String getRelativeTime(Calendar date) { Calendar now = Calendar.getInstance(); long diff = now.getTimeInMillis() - date.getTimeInMillis(); if (Math.abs(diff) >= 86400000) { return getRelativeDate(date); } else if (Math.abs(diff) >= 3600000) { long hours = diff / 3600000; if (hours < 0) {...
diff --git a/app/src/processing/app/Sketch.java b/app/src/processing/app/Sketch.java index 25839bcad..fbc9a9bcc 100644 --- a/app/src/processing/app/Sketch.java +++ b/app/src/processing/app/Sketch.java @@ -1,1450 +1,1455 @@ /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* Part of the Processi...
false
true
protected void nameCode(String newName) { // make sure the user didn't hide the sketch folder ensureExistence(); // Add the extension here, this simplifies some of the logic below. if (newName.indexOf('.') == -1) { newName += "." + mode.getDefaultExtension(); } // if renaming to the sa...
protected void nameCode(String newName) { // make sure the user didn't hide the sketch folder ensureExistence(); // Add the extension here, this simplifies some of the logic below. if (newName.indexOf('.') == -1) { newName += "." + mode.getDefaultExtension(); } // if renaming to the sa...
diff --git a/src/au/edu/uts/eng/remotelabs/rigclient/status/StatusUpdater.java b/src/au/edu/uts/eng/remotelabs/rigclient/status/StatusUpdater.java index 8822890..243bb26 100644 --- a/src/au/edu/uts/eng/remotelabs/rigclient/status/StatusUpdater.java +++ b/src/au/edu/uts/eng/remotelabs/rigclient/status/StatusUpdater.java...
true
true
public void run() { while (!Thread.interrupted()) { try { if (this.schedServerStub == null) { this.schedServerStub = new SchedulingServerProviderStub(this.endPoint); } Pro...
public void run() { while (!Thread.interrupted()) { try { if (this.schedServerStub == null) { this.schedServerStub = new SchedulingServerProviderStub(this.endPoint); } Pro...
diff --git a/Java_CCN/com/parc/ccn/library/profiles/AccessControlProfile.java b/Java_CCN/com/parc/ccn/library/profiles/AccessControlProfile.java index e5d29c29f..8ef86015f 100644 --- a/Java_CCN/com/parc/ccn/library/profiles/AccessControlProfile.java +++ b/Java_CCN/com/parc/ccn/library/profiles/AccessControlProfile.java...
true
true
public static PrincipalInfo parsePrincipalInfoFromNameComponent( byte[] childName) { if (!isPrincipalNameComponent(childName) || (childName.length <= PRINCIPAL_PREFIX.length)) return null; // First time we see COMPONENT_SEPARATOR is the separation point. // Could jump back based on fixed width of timest...
public static PrincipalInfo parsePrincipalInfoFromNameComponent( byte[] childName) { if (!isPrincipalNameComponent(childName) || (childName.length <= PRINCIPAL_PREFIX.length)) return null; // First time we see COMPONENT_SEPARATOR is the separation point. // Could jump back based on fixed width of timest...
diff --git a/org.eclipse.epp.mpc.tests/src/org/eclipse/epp/mpc/tests/util/TransportFactoryTest.java b/org.eclipse.epp.mpc.tests/src/org/eclipse/epp/mpc/tests/util/TransportFactoryTest.java index 604de31..a18d5f8 100644 --- a/org.eclipse.epp.mpc.tests/src/org/eclipse/epp/mpc/tests/util/TransportFactoryTest.java +++ b/or...
true
true
public void testStream() throws Exception { ITransport transport = TransportFactory.instance().getTransport(); URI uri = new URI("http://www.eclipse.org"); InputStream stream = transport.stream(uri, new NullProgressMonitor()); assertNotNull(stream); }
public void testStream() throws Exception { ITransport transport = TransportFactory.instance().getTransport(); URI uri = new URI("http://www.eclipse.org"); InputStream stream = transport.stream(uri, new NullProgressMonitor()); assertNotNull(stream); stream.close(); }
diff --git a/technical-debt/src/test/java/org/sonar/plugins/technicaldebt/it/CommonsLangModeLightIT.java b/technical-debt/src/test/java/org/sonar/plugins/technicaldebt/it/CommonsLangModeLightIT.java index e691defb5..0ebbdf243 100644 --- a/technical-debt/src/test/java/org/sonar/plugins/technicaldebt/it/CommonsLangModeLi...
true
true
public void projectsMetrics() { assertThat(getProjectMeasure("technical_debt").getValue(), is(40493.8)); assertThat(getProjectMeasure("technical_debt_ratio").getValue(), is(10)); assertThat(getProjectMeasure("technical_debt_days").getValue(), is(81)); assertThat(getProjectMeasure("technical_debt_repar...
public void projectsMetrics() { assertThat(getProjectMeasure("technical_debt").getValue(), is(40493.8)); assertThat(getProjectMeasure("technical_debt_ratio").getValue(), is(10.0)); assertThat(getProjectMeasure("technical_debt_days").getValue(), is(81.0)); assertThat(getProjectMeasure("technical_debt_r...
diff --git a/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotExt.java b/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotExt.java index 46c2d5558..14ebd1bfc 100644 --- a/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotExt.java +++ ...
true
true
public SWTBotShell waitForShell(final String shellTitle, final int maxTimeout) { if (shellTitle == null) { throw new IllegalArgumentException("shellTitle cannot be null"); } final int SLEEP_TIME = Timing.time2S(); final int ATTEMPTS_TIMEOUT = getAttemptsTimeout((maxTimeout ...
public SWTBotShell waitForShell(final String shellTitle, final int maxTimeout) { if (shellTitle == null) { throw new IllegalArgumentException("shellTitle cannot be null"); } final int SLEEP_TIME = Timing.time2S(); final int ATTEMPTS_TIMEOUT = getAttemptsTimeout((maxTimeout ...
diff --git a/webapp/src/test/java/com/tort/trade/journals/GoodsBalanceIT.java b/webapp/src/test/java/com/tort/trade/journals/GoodsBalanceIT.java index 0edd918..24f752d 100644 --- a/webapp/src/test/java/com/tort/trade/journals/GoodsBalanceIT.java +++ b/webapp/src/test/java/com/tort/trade/journals/GoodsBalanceIT.java @@ ...
true
true
public void getBalance() throws InterruptedException{ _selenium.open("/webapp/journal"); _selenium.click("//a[@name='balance']"); waitForElement("//table[@id='balance']//tr[5]"); assertEquals("Goods balance", _selenium.getTitle()); }
public void getBalance() throws InterruptedException{ _selenium.open("/webapp/journal"); _selenium.click("//a[@name='balance']"); waitForElement("//td[@name='6']"); _selenium.click("//td[@name='6']"); waitForElement("//table[@id='balance']//tr[5]"); assertEquals("Goods balance", _selenium.getTitle())...
diff --git a/generator/src/main/java/org/richfaces/cdk/model/validator/ValidatorImpl.java b/generator/src/main/java/org/richfaces/cdk/model/validator/ValidatorImpl.java index de8976c..5a59a4d 100644 --- a/generator/src/main/java/org/richfaces/cdk/model/validator/ValidatorImpl.java +++ b/generator/src/main/java/org/rich...
true
true
protected void verifyComponentAttributes(ComponentLibrary library, final ComponentModel component, Collection<ComponentModel> verified) { // There is potential StackOverflow, so we process only components which have not been // verified before. if (!verified.contains(component)) { ...
protected void verifyComponentAttributes(ComponentLibrary library, final ComponentModel component, Collection<ComponentModel> verified) { // There is potential StackOverflow, so we process only components which have not been // verified before. if (!verified.contains(component)) { ...
diff --git a/src/edacc/model/ClientDAO.java b/src/edacc/model/ClientDAO.java index 9226558..6320d8f 100755 --- a/src/edacc/model/ClientDAO.java +++ b/src/edacc/model/ClientDAO.java @@ -1,178 +1,178 @@ package edacc.model; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; ...
true
true
public static synchronized ArrayList<Client> getClients() throws SQLException { ArrayList<Client> clients = new ArrayList<Client>(); HashSet<Integer> clientIds = getClientIds(); ArrayList<Integer> idsModified = new ArrayList<Integer>(); ArrayList<Client> deletedClients = new ArrayLi...
public static synchronized ArrayList<Client> getClients() throws SQLException { ArrayList<Client> clients = new ArrayList<Client>(); HashSet<Integer> clientIds = getClientIds(); ArrayList<Integer> idsModified = new ArrayList<Integer>(); ArrayList<Client> deletedClients = new ArrayLi...
diff --git a/jsf-ri/src/com/sun/faces/application/view/FaceletViewHandlingStrategy.java b/jsf-ri/src/com/sun/faces/application/view/FaceletViewHandlingStrategy.java index 2f833e97e..903264e25 100644 --- a/jsf-ri/src/com/sun/faces/application/view/FaceletViewHandlingStrategy.java +++ b/jsf-ri/src/com/sun/faces/applicati...
false
true
public void retargetMethodExpressions(FacesContext context, UIComponent topLevelComponent) { BeanInfo componentBeanInfo = (BeanInfo) topLevelComponent.getAttributes().get(UIComponent.BEANINFO_KEY); // PENDING(edburns): log error message if ...
public void retargetMethodExpressions(FacesContext context, UIComponent topLevelComponent) { BeanInfo componentBeanInfo = (BeanInfo) topLevelComponent.getAttributes().get(UIComponent.BEANINFO_KEY); // PENDING(edburns): log error message if ...
diff --git a/acceptanceTests/src/test/java/org/mifos/test/acceptance/group/GroupViewDetailsPage.java b/acceptanceTests/src/test/java/org/mifos/test/acceptance/group/GroupViewDetailsPage.java index ab184a868..50cb1adaf 100644 --- a/acceptanceTests/src/test/java/org/mifos/test/acceptance/group/GroupViewDetailsPage.java +...
true
true
public GroupViewDetailsPage verifyPage() { verifyPage("GroupViewDetails"); return this; }
public GroupViewDetailsPage verifyPage() { verifyPage("ViewGroupDetails"); return this; }
diff --git a/pcpl.core/src/pcpl/core/breakpoint/BreakpointSetter.java b/pcpl.core/src/pcpl/core/breakpoint/BreakpointSetter.java index 2e59c35..ba77d07 100755 --- a/pcpl.core/src/pcpl/core/breakpoint/BreakpointSetter.java +++ b/pcpl.core/src/pcpl/core/breakpoint/BreakpointSetter.java @@ -1,35 +1,35 @@ package pcpl.cor...
true
true
public void setBreakpoint(IResource resource,int lineNum){ String typeName = FileParaviserUtils.getClassName(resource); //javabreakpoint need this try { IBreakpoint bp = JDIDebugModel.createLineBreakpoint(resource,typeName, lineNum, -1, -1, 0,true,null); BreakpointManager.getInstance().addBreakpointSet(bp, r...
public void setBreakpoint(IResource resource,int lineNum){ String typeName = FileParaviserUtils.getClassName(resource); //javabreakpoint need this try { IBreakpoint bp = JDIDebugModel.createLineBreakpoint(resource,typeName, lineNum+1, -1, -1, 0,true,null); BreakpointManager.getInstance().addBreakpointSet(bp,...
diff --git a/src/main/java/org/bukkit/command/defaults/EffectCommand.java b/src/main/java/org/bukkit/command/defaults/EffectCommand.java index 8d9b7425..1d5f8be6 100644 --- a/src/main/java/org/bukkit/command/defaults/EffectCommand.java +++ b/src/main/java/org/bukkit/command/defaults/EffectCommand.java @@ -1,119 +1,119 ...
true
true
public boolean execute(CommandSender sender, String commandLabel, String[] args) { if (!testPermission(sender)) { return true; } if (args.length < 2) { sender.sendMessage(getUsage()); return true; } final Player player = sender.getServer(...
public boolean execute(CommandSender sender, String commandLabel, String[] args) { if (!testPermission(sender)) { return true; } if (args.length < 2) { sender.sendMessage(getUsage()); return true; } final Player player = sender.getServer(...
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/HistogramTextControl.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/views/histogram/HistogramTextControl.java index 3b77e26ab..15b418ea8 100644 --- a/lttng/org.eclipse.linuxtools.tmf.ui/src/o...
true
true
public HistogramTextControl(HistogramView parentView, Composite parent, String label, long value) { fParentView = parentView; fParent = parent; // -------------------------------------------------------------------- // Reduce font size for a more pleasing rendering // --...
public HistogramTextControl(HistogramView parentView, Composite parent, String label, long value) { fParentView = parentView; fParent = parent; // -------------------------------------------------------------------- // Reduce font size for a more pleasing rendering // --...
diff --git a/backend/grisu-core/src/main/java/org/vpac/grisu/backend/model/job/gt4/GT4Submitter.java b/backend/grisu-core/src/main/java/org/vpac/grisu/backend/model/job/gt4/GT4Submitter.java index cd18ed59..c777f146 100644 --- a/backend/grisu-core/src/main/java/org/vpac/grisu/backend/model/job/gt4/GT4Submitter.java +++...
true
true
private String createJobSubmissionDescription( final ServiceInterface serviceInterface, final Document jsdl) { DebugUtils.jsdlDebugOutput("Before translating into rsl: ", jsdl); Document output = null; try { DocumentBuilderFactory docFactory = DocumentBuilderFactory .newInstance(); DocumentBuilde...
private String createJobSubmissionDescription( final ServiceInterface serviceInterface, final Document jsdl) { DebugUtils.jsdlDebugOutput("Before translating into rsl: ", jsdl); Document output = null; try { DocumentBuilderFactory docFactory = DocumentBuilderFactory .newInstance(); DocumentBuilde...
diff --git a/projects/xt/src/java/org/springmodules/xt/ajax/action/ExecuteJavascriptFunctionAction.java b/projects/xt/src/java/org/springmodules/xt/ajax/action/ExecuteJavascriptFunctionAction.java index 95ba73a8..f3785241 100644 --- a/projects/xt/src/java/org/springmodules/xt/ajax/action/ExecuteJavascriptFunctionAction...
true
true
protected String getJavascript() { StringBuilder function = new StringBuilder(); function.append(name).append("("); if (!this.options.isEmpty()) { JSONObject json = JSONObject.fromMap(this.options); function.append(json.toString()); } function...
protected String getJavascript() { StringBuilder function = new StringBuilder(); function.append(name).append("("); if (this.options != null && !this.options.isEmpty()) { JSONObject json = JSONObject.fromMap(this.options); function.append(json.toString()); ...
diff --git a/src/org/soupware/slicktest/PlayerShip.java b/src/org/soupware/slicktest/PlayerShip.java index 4062123..55877b3 100644 --- a/src/org/soupware/slicktest/PlayerShip.java +++ b/src/org/soupware/slicktest/PlayerShip.java @@ -1,115 +1,115 @@ package org.soupware.slicktest; import org.newdawn.slick.Graphics; ...
false
true
public void move(Input input, int delta){ //bullets = new Bullets(); // MOVEMENT if(input.isKeyDown(Input.KEY_A) || input.isKeyDown(Input.KEY_LEFT)) { if(isWhite){ whitex -= 1.0*delta; } else{ blackx -= 1.0*delta; } } if(inpu...
public void move(Input input, int delta){ //bullets = new Bullets(); // MOVEMENT if(input.isKeyDown(Input.KEY_A) || input.isKeyDown(Input.KEY_LEFT)) { if(isWhite){ whitex -= 0.3*delta; } else{ blackx -= 0.3*delta; } } if(inpu...
diff --git a/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/kmelia/servlets/KmeliaRequestRouter.java b/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/kmelia/servlets/KmeliaRequestRouter.java index 572ef11c5..806196c89 100644 --- a/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/kmelia/servlets/Km...
false
true
public String getDestination(String function, KmeliaSessionController kmelia, HttpServletRequest request) { SilverTrace.info("kmelia", "KmeliaRequestRouter.getDestination()", "root.MSG_GEN_PARAM_VALUE", "function = " + function); String destination = ""; String rootDestination = "/kmelia/jsp...
public String getDestination(String function, KmeliaSessionController kmelia, HttpServletRequest request) { SilverTrace.info("kmelia", "KmeliaRequestRouter.getDestination()", "root.MSG_GEN_PARAM_VALUE", "function = " + function); String destination = ""; String rootDestination = "/kmelia/jsp...
diff --git a/src/replicatorg/machine/model/MachineModel.java b/src/replicatorg/machine/model/MachineModel.java index ebf53351..ddcdedcc 100644 --- a/src/replicatorg/machine/model/MachineModel.java +++ b/src/replicatorg/machine/model/MachineModel.java @@ -1,438 +1,440 @@ /* MachineModel.java A class to model a ...
false
true
private void parseAxes() { if(XML.hasChildNode(xml, "geometry")) { Node geometry = XML.getChildNodeByName(xml, "geometry"); //look through the axes. NodeList axes = geometry.getChildNodes(); for (int i=0; i<axes.getLength(); i++) { Node axis = axes.item(i); if (axis.getNodeName().e...
private void parseAxes() { if(XML.hasChildNode(xml, "geometry")) { Node geometry = XML.getChildNodeByName(xml, "geometry"); //look through the axes. NodeList axes = geometry.getChildNodes(); for (int i=0; i<axes.getLength(); i++) { Node axis = axes.item(i); if (axis.getNodeName().e...
diff --git a/redis/modules/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java b/redis/modules/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java index 0ce55858..185d4098 100644 --- a/redis/modules/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java +++ b/redis/modules/src/main/java...
true
true
public Broadcaster initialize(URI uri, String id, AtmosphereConfig config) { super.initialize(id, URI.create("http://localhost:6379"), config); this.redisUtil = new RedisUtil(uri, config, new RedisUtil.Callback() { @Override public String getID() { return Redi...
public Broadcaster initialize(String id, URI uri, AtmosphereConfig config) { super.initialize(id, URI.create("http://localhost:6379"), config); this.redisUtil = new RedisUtil(uri, config, new RedisUtil.Callback() { @Override public String getID() { return Redi...
diff --git a/src/es/foxcav/foxcaves/api/Lister.java b/src/es/foxcav/foxcaves/api/Lister.java index 5d6cf83..c797c28 100644 --- a/src/es/foxcav/foxcaves/api/Lister.java +++ b/src/es/foxcav/foxcaves/api/Lister.java @@ -1,57 +1,61 @@ package es.foxcav.foxcaves.api; import java.io.BufferedReader; import java.io.IOExce...
true
true
public List<FileInfo> getFiles() throws IOException { HttpURLConnection httpURLConnection = makeHttpURLConnection("list"); httpURLConnection.setRequestMethod("GET"); httpURLConnection.connect(); BufferedReader reader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream())); List<File...
public List<FileInfo> getFiles() throws IOException { HttpURLConnection httpURLConnection = makeHttpURLConnection("list"); httpURLConnection.setRequestMethod("GET"); httpURLConnection.connect(); BufferedReader reader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream())); List<File...
diff --git a/bundles/binding/org.openhab.binding.knx.test/src/test/java/org/openhab/binding/knx/internal/config/KNXCoreTypeMapperTest.java b/bundles/binding/org.openhab.binding.knx.test/src/test/java/org/openhab/binding/knx/internal/config/KNXCoreTypeMapperTest.java index 4865c82e..2af6e1db 100644 --- a/bundles/binding...
true
true
public void testTypeMapping() throws KNXFormatException { // TODO: I don't have any idea yet on what the bytes from KNX are // exactly for which datapoints. Will have to refine this. byte[] data = new byte[] { 0xF, 0xF }; Type type = typeMapper.toType(createDP("5.001"), data); assertNotNull(type); assert...
public void testTypeMapping() throws KNXFormatException { // TODO: I don't have any idea yet on what the bytes from KNX are // exactly for which datapoints. Will have to refine this. byte[] data = new byte[] { 0xF, 0xF }; Type type = typeMapper.toType(createDP("5.001"), data); assertNotNull(type); assert...
diff --git a/app/repo/Repository.java b/app/repo/Repository.java index 58cbfe1..61f325c 100644 --- a/app/repo/Repository.java +++ b/app/repo/Repository.java @@ -1,101 +1,101 @@ package repo; import java.util.*; import models.*; /** * Class that contains many general functions for the system. */ public cl...
true
true
public static List<Exam> searchByDate(Date first, Date last){ //Check for null if( first == null || last == null){ return new ArrayList<Exam>(0); } List<Exam> exams = Exam.findAll(); List<Exam> toRet = new ArrayList<Exam>(exams.size()); //Manually compare them all for(Exam cur: exams){ if( (c...
public static List<Exam> searchByDate(Date first, Date last){ //Check for null if( first == null || last == null){ return new ArrayList<Exam>(0); } List<Exam> exams = Exam.findAll(); List<Exam> toRet = new ArrayList<Exam>(exams.size()); //Manually compare them all for(Exam cur: exams){ if( (c...
diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java index ebfe349ee..d4934689c 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/androi...
false
true
protected Dialog onCreateDialog( int id ) { Dialog dialog = super.onCreateDialog( id ); if ( null == dialog ) { DialogInterface.OnClickListener lstnr; AlertDialog.Builder ab; switch ( id ) { case DLG_OKONLY: case DLG_BADWORDS: ...
protected Dialog onCreateDialog( int id ) { Dialog dialog = super.onCreateDialog( id ); if ( null == dialog ) { DialogInterface.OnClickListener lstnr; AlertDialog.Builder ab; switch ( id ) { case DLG_OKONLY: case DLG_BADWORDS: ...
diff --git a/okapi/steps/rainbowkit/src/main/java/net/sf/okapi/steps/rainbowkit/postprocess/MergingStep.java b/okapi/steps/rainbowkit/src/main/java/net/sf/okapi/steps/rainbowkit/postprocess/MergingStep.java index ac8319033..a0e67a94f 100644 --- a/okapi/steps/rainbowkit/src/main/java/net/sf/okapi/steps/rainbowkit/postpr...
true
true
protected Event handleStartDocument (Event event) { // Initial document is expected to be a manifest StartDocument sd = event.getStartDocument(); info = sd.getAnnotation(MergingInfo.class); if ( info == null ) { throw new OkapiBadFilterInputException("Start document is missing the merging info annotation.")...
protected Event handleStartDocument (Event event) { // Initial document is expected to be a manifest StartDocument sd = event.getStartDocument(); info = sd.getAnnotation(MergingInfo.class); if ( info == null ) { throw new OkapiBadFilterInputException("Start document is missing the merging info annotation.")...
diff --git a/src/com/psywerx/dh/Background.java b/src/com/psywerx/dh/Background.java index f57f7a2..c73f6d4 100644 --- a/src/com/psywerx/dh/Background.java +++ b/src/com/psywerx/dh/Background.java @@ -1,73 +1,73 @@ package com.psywerx.dh; public class Background extends Drawable { private short NUM_CLOUD...
true
true
public Background() { position = new float[] { 0, -8, 3f }; bg = new Square(); bg.color = new float[] { 0, 0, 0, 1 }; bg.size = new float[] { 23f, 23f*(45f/25f), 0f }; bg.position = new float[] { -1.1f, -7f, 30f }; bg.texture.enable...
public Background() { position = new float[] { 0, -8, 3f }; bg = new Square(); bg.color = new float[] { 0, 0, 0, 1 }; bg.size = new float[] { 23f, 23f*(45f/25f), 0f }; bg.position = new float[] { 0f, -7f, 30f }; bg.texture.enabled =...
diff --git a/src/cz/kojotak/arx/ui/renderer/PositionTableCellRenderer.java b/src/cz/kojotak/arx/ui/renderer/PositionTableCellRenderer.java index 369c93d..e16c7dc 100644 --- a/src/cz/kojotak/arx/ui/renderer/PositionTableCellRenderer.java +++ b/src/cz/kojotak/arx/ui/renderer/PositionTableCellRenderer.java @@ -1,39 +1,41 ...
true
true
protected void setValue(Object value) { if(value==null|| !(value instanceof Integer)){ return; } Integer position = Integer.class.cast(value); MedalPosition medal = MedalPosition.resolveFrom(position); Icon icon=null; if (medal != null) { icon = Application.getInstance().getIconLoader().tryLoadIcon(m...
protected void setValue(Object value) { if(value==null|| !(value instanceof Integer)){ setIcon(null); setText(""); return; } Integer position = Integer.class.cast(value); MedalPosition medal = MedalPosition.resolveFrom(position); Icon icon=null; if (medal != null) { icon = Application.getInstan...
diff --git a/geoserver/wms/src/main/java/org/vfny/geoserver/wms/responses/helpers/WMSCapsTransformer.java b/geoserver/wms/src/main/java/org/vfny/geoserver/wms/responses/helpers/WMSCapsTransformer.java index d41f24ec43..a4e9f67951 100644 --- a/geoserver/wms/src/main/java/org/vfny/geoserver/wms/responses/helpers/WMSCapsT...
true
true
private void handleRootSRSAndBbox(Collection ftypes, int TYPE) { String commonSRS = ""; boolean isCommonSRS = true; Envelope latlonBbox = new Envelope(); Envelope layerBbox = null; if (LOGGER.isLoggable(Level.FINER)) { LOGGER.finer("Co...
private void handleRootSRSAndBbox(Collection ftypes, int TYPE) { String commonSRS = ""; boolean isCommonSRS = true; Envelope latlonBbox = new Envelope(); Envelope layerBbox = null; if (LOGGER.isLoggable(Level.FINER)) { LOGGER.finer("Co...
diff --git a/ide/eclipse/bps/org.wso2.developerstudio.eclipse.artifact.bpel/src/org/wso2/developerstudio/eclipse/artifact/bpel/ui/wizard/BPELProjectCreationWizard.java b/ide/eclipse/bps/org.wso2.developerstudio.eclipse.artifact.bpel/src/org/wso2/developerstudio/eclipse/artifact/bpel/ui/wizard/BPELProjectCreationWizard....
true
true
public void replaceAndUpdateNewBpelProject() throws IOException{ //HelloWorldProcess.bpel //HelloWorldProcessArtifacts.wsdl //deploy.xml //read project //"http://eclipse.org/bpel/sample" processName = ((BpelModel)getModel()).getProcessName().trim(); namespace = ((BpelModel)getModel()).getProcessNS(); ...
public void replaceAndUpdateNewBpelProject() throws IOException{ //HelloWorldProcess.bpel //HelloWorldProcessArtifacts.wsdl //deploy.xml //read project //"http://eclipse.org/bpel/sample" processName = ((BpelModel)getModel()).getProcessName().trim(); namespace = ((BpelModel)getModel()).getProcessNS(); ...
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java index 613cd973..653ac289 100644 --- a/src/com/android/launcher2/AllAppsView.java +++ b/src/com/android/launcher2/AllAppsView.java @@ -1,852 +1,854 @@ /* * Copyright (C) 2008 The Android Open Source Project * * Li...
true
true
public boolean onTouchEvent(MotionEvent ev) { if (!isVisible()) { return true; } if (mLocks != 0) { return true; } super.onTouchEvent(ev); int x = (int)ev.getX(); int y = (int)ev.getY(); int deltaX; int action = ...
public boolean onTouchEvent(MotionEvent ev) { if (!isVisible()) { return true; } if (mLocks != 0) { return true; } super.onTouchEvent(ev); int x = (int)ev.getX(); int y = (int)ev.getY(); int deltaX; int action = ...
diff --git a/bndtools.core/src/bndtools/internal/decorator/ExportedPackageDecoratorJob.java b/bndtools.core/src/bndtools/internal/decorator/ExportedPackageDecoratorJob.java index 94236d2b..87e6f334 100644 --- a/bndtools.core/src/bndtools/internal/decorator/ExportedPackageDecoratorJob.java +++ b/bndtools.core/src/bndtoo...
true
true
protected IStatus run(IProgressMonitor monitor) { instances.remove(project.getFullPath().toPortableString()); try { Project model = Workspace.getProject(project.getLocation().toFile()); if (model == null) { return Status.OK_STATUS; } C...
protected IStatus run(IProgressMonitor monitor) { instances.remove(project.getFullPath().toPortableString()); try { Project model = null; try { model = Workspace.getProject(project.getLocation().toFile()); } catch (IllegalArgumentException e) { ...
diff --git a/eclippers.patch.editor.markers/src/textmarker/parse/ParseXMLForMarkers.java b/eclippers.patch.editor.markers/src/textmarker/parse/ParseXMLForMarkers.java index 0ad922f..d8440b2 100644 --- a/eclippers.patch.editor.markers/src/textmarker/parse/ParseXMLForMarkers.java +++ b/eclippers.patch.editor.markers/src/...
false
true
public static void parseXML(IProject proj, IEditorPart part, String pathPrefix, String filter) { tempAffected = new ArrayList<IPath>(); tempAffectedLines = new ArrayList<RemovedLine>(); tempRemovedLines = new ArrayList<RemovedLine>(); File xmlFile = new File(proj.getLocation() + File.separator + pathPrefix...
public static void parseXML(IProject proj, IEditorPart part, String pathPrefix, String filter) { tempAffected = new ArrayList<IPath>(); tempAffectedLines = new ArrayList<RemovedLine>(); tempRemovedLines = new ArrayList<RemovedLine>(); File xmlFile = new File(proj.getLocation() + File.separator + pathPrefix...
diff --git a/org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/WebappManager.java b/org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/WebappManager.java index 09b3aace3..10e952058 100644 --- a/org.eclipse.help.appserver/src/org/eclipse/help/internal/appserver/WebappManager.java +++ b/o...
false
true
private static IPath getWebappPath(String pluginId, IPath path) throws CoreException { IPluginDescriptor descriptor = Platform.getPluginRegistry().getPluginDescriptor(pluginId); if (descriptor == null) { throw new CoreException( new Status( IStatus.ERROR, AppserverPlugin.getID(), IStatu...
private static IPath getWebappPath(String pluginId, IPath path) throws CoreException { IPluginDescriptor descriptor = Platform.getPluginRegistry().getPluginDescriptor(pluginId); if (descriptor == null) { throw new CoreException( new Status( IStatus.ERROR, AppserverPlugin.getID(), IStatu...
diff --git a/spatial-extras-base/src/main/java/com/googlecode/lucene/spatial/base/shape/JtsEnvelope.java b/spatial-extras-base/src/main/java/com/googlecode/lucene/spatial/base/shape/JtsEnvelope.java index 979d80f1..d53826ea 100644 --- a/spatial-extras-base/src/main/java/com/googlecode/lucene/spatial/base/shape/JtsEnvel...
true
true
public IntersectCase intersect(Shape other, SpatialContext context) { if (BBox.class.isInstance(other)) { BBox ext = other.getBoundingBox(); if (ext.getMinX() > envelope.getMaxX() || ext.getMaxX() < envelope.getMinX() || ext.getMinY() > envelope.getMaxY() || ext.getMaxY()...
public IntersectCase intersect(Shape other, SpatialContext context) { if (BBox.class.isInstance(other)) { BBox ext = other.getBoundingBox(); if (ext.getMinX() > envelope.getMaxX() || ext.getMaxX() < envelope.getMinX() || ext.getMinY() > envelope.getMaxY() || ext.getMaxY()...
diff --git a/src/dbtester/CountMatchValidator.java b/src/dbtester/CountMatchValidator.java index 692d1cf..d004062 100644 --- a/src/dbtester/CountMatchValidator.java +++ b/src/dbtester/CountMatchValidator.java @@ -1,66 +1,66 @@ /* * To change this template, choose Tools | Templates * and open the template in the ed...
true
true
protected String doGetSql() { TestCase tc = getTestCase(); String expectSource = makeSource(expect); String actualSource = makeSource(actual); String sql = "SELECT " + "\n" + " CAST('Expected ' || TRIM(e.num_rows) || ' rows, actual ' || TRIM(a.num_rows) AS VARCHA...
protected String doGetSql() { TestCase tc = getTestCase(); String expectSource = makeSource(expect); String actualSource = makeSource(actual); String sql = "SELECT " + "\n" + " CAST('Expected ' || TRIM(CAST(e.num_rows AS VARCHAR(32))) || ' rows, actual ' || TRIM(...
diff --git a/src/com/badrobot/commands/autonomousCommands/ShootDriveGatherShoot.java b/src/com/badrobot/commands/autonomousCommands/ShootDriveGatherShoot.java index 7b7669b..5edf99d 100644 --- a/src/com/badrobot/commands/autonomousCommands/ShootDriveGatherShoot.java +++ b/src/com/badrobot/commands/autonomousCommands/Sh...
true
true
public ShootDriveGatherShoot() { addSequential(new Shoot(shootSpeed, shootTime)); addSequential(new DriveForward(driveTime)); addSequential(new Gather(gatherCount)); addSequential(new RaiseToShooter()); addSequential(new Shoot(shootSpeed, shootTime2)); }
public ShootDriveGatherShoot() { addSequential(new Shoot(shootSpeed, shootTime)); addSequential(new DriveForward(/*driveTime*/));//Drive forward currently (1/29) does not accept a time parameter addSequential(new Gather(gatherCount)); addSequential(new RaiseToShooter());...
diff --git a/EPMS_Rest/src/main/java/com/epms/rest/PropertyStoreController.java b/EPMS_Rest/src/main/java/com/epms/rest/PropertyStoreController.java index 06b6246..ce9f004 100644 --- a/EPMS_Rest/src/main/java/com/epms/rest/PropertyStoreController.java +++ b/EPMS_Rest/src/main/java/com/epms/rest/PropertyStoreController....
false
true
private String findAllApplicationNames() { StringBuilder sb = new StringBuilder(); sb.append("["); // get a collection object to work with DBCollection epmsCollection = epmsDB.getCollection("epms"); BasicDBObject keys = new BasicDBObject(); keys.put("applicationName", 1); ...
private String findAllApplicationNames() { StringBuilder sb = new StringBuilder(); sb.append("{\"applications\":["); // get a collection object to work with DBCollection epmsCollection = epmsDB.getCollection("epms"); BasicDBObject keys = new BasicDBObject(); keys.put("applicationN...
diff --git a/java/com/artum/shootmaniacenter/adapters/ladderAdapter.java b/java/com/artum/shootmaniacenter/adapters/ladderAdapter.java index 08e9598..8bf497c 100644 --- a/java/com/artum/shootmaniacenter/adapters/ladderAdapter.java +++ b/java/com/artum/shootmaniacenter/adapters/ladderAdapter.java @@ -1,85 +1,85 @@ pack...
true
true
public View getView(int position, View convertView, ViewGroup parent) { View vi=convertView; if(convertView==null) vi = inflater.inflate(R.layout.ladder_view, null); HtmlFormatter formatter = new HtmlFormatter(); TextView name = (TextView)vi.findViewById(R.id.name); ...
public View getView(int position, View convertView, ViewGroup parent) { View vi=convertView; if(convertView==null) vi = inflater.inflate(R.layout.ladder_view, null); HtmlFormatter formatter = new HtmlFormatter(); TextView name = (TextView)vi.findViewById(R.id.name); ...
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPOfferService.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPOfferService.java index 6738241c04..69fcdd971b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apa...
true
true
private boolean processCommandFromActive(DatanodeCommand cmd, BPServiceActor actor) throws IOException { if (cmd == null) return true; final BlockCommand bcmd = cmd instanceof BlockCommand? (BlockCommand)cmd: null; switch(cmd.getAction()) { case DatanodeProtocol.DNA_TRANSFER: ...
private boolean processCommandFromActive(DatanodeCommand cmd, BPServiceActor actor) throws IOException { if (cmd == null) return true; final BlockCommand bcmd = cmd instanceof BlockCommand? (BlockCommand)cmd: null; switch(cmd.getAction()) { case DatanodeProtocol.DNA_TRANSFER: ...
diff --git a/src/java/org/apache/commons/math/stat/correlation/Covariance.java b/src/java/org/apache/commons/math/stat/correlation/Covariance.java index 81391e30a..d3cf23ce7 100644 --- a/src/java/org/apache/commons/math/stat/correlation/Covariance.java +++ b/src/java/org/apache/commons/math/stat/correlation/Covariance....
false
true
public double covariance(final double[] xArray, final double[] yArray, boolean biasCorrected) throws IllegalArgumentException { Mean mean = new Mean(); double result = 0d; long length = xArray.length; if(length == yArray.length && length > 1) { double xMean = mea...
public double covariance(final double[] xArray, final double[] yArray, boolean biasCorrected) throws IllegalArgumentException { Mean mean = new Mean(); double result = 0d; int length = xArray.length; if(length == yArray.length && length > 1) { double xMean = mean...
diff --git a/src/main/java/com/in6k/mypal/service/TransactionService.java b/src/main/java/com/in6k/mypal/service/TransactionService.java index 088f26c..b9d4f72 100644 --- a/src/main/java/com/in6k/mypal/service/TransactionService.java +++ b/src/main/java/com/in6k/mypal/service/TransactionService.java @@ -1,61 +1,62 @@ ...
true
true
public static boolean create(User creditUser, String debitUserEmail, String inputSum) throws IOException { User debitUser = UserDao.getByEmail(debitUserEmail); double sum = validateSum(creditUser, inputSum); Transaction transaction = new Transaction(); if (sum != 0 && isEmailValid(...
public static boolean create(User creditUser, String debitUserEmail, String inputSum) throws IOException { User debitUser = UserDao.getByEmail(debitUserEmail); double sum = validateSum(creditUser, inputSum); Transaction transaction = new Transaction(); if (sum != 0 && isEmailValid(...
diff --git a/src/main/java/com/github/rholder/gradle/intellij/DependencyViewer.java b/src/main/java/com/github/rholder/gradle/intellij/DependencyViewer.java index b440210..ac8416f 100644 --- a/src/main/java/com/github/rholder/gradle/intellij/DependencyViewer.java +++ b/src/main/java/com/github/rholder/gradle/intellij/D...
true
true
public DependencyViewer(Project p, ToolWindow t) { super(true, true); this.project = p; this.toolWindow = t; this.splitter = new Splitter(); this.toolingLogger = initToolingLogger(); this.dependencyCellRenderer = new DependencyCellRenderer(); this.dependencyC...
public DependencyViewer(Project p, ToolWindow t) { super(true, true); this.project = p; this.toolWindow = t; this.splitter = new Splitter(); this.toolingLogger = initToolingLogger(); this.dependencyCellRenderer = new DependencyCellRenderer(); this.dependencyC...
diff --git a/src/org/ssgwt/client/ui/form/ComplexInput.java b/src/org/ssgwt/client/ui/form/ComplexInput.java index 4928a0c..95cfd45 100644 --- a/src/org/ssgwt/client/ui/form/ComplexInput.java +++ b/src/org/ssgwt/client/ui/form/ComplexInput.java @@ -1,707 +1,707 @@ package org.ssgwt.client.ui.form; import com.google...
false
true
public void constructor() { //create view components messagePanel = new FlowPanel(); messageTable = new FlowPanel(); messageRow = new FlowPanel(); messageCell = new Label(); messageContainer = new FlowPanel(); messageContainer.add(messagePanel); ...
public void constructor() { //create view components messagePanel = new FlowPanel(); messageTable = new FlowPanel(); messageRow = new FlowPanel(); messageCell = new Label(); messageContainer = new FlowPanel(); messageContainer.add(messagePanel); ...
diff --git a/eXoApplication/faq/webapp/src/main/java/org/exoplatform/faq/webui/popup/UISelectForumForm.java b/eXoApplication/faq/webapp/src/main/java/org/exoplatform/faq/webui/popup/UISelectForumForm.java index be49d5175..86192f6e7 100644 --- a/eXoApplication/faq/webapp/src/main/java/org/exoplatform/faq/webui/popup/UIS...
false
true
public void execute(Event<UISelectForumForm> event) throws Exception { UISelectForumForm uiForm = event.getSource(); String forumId = event.getRequestContext().getRequestParameter(OBJECTID); SessionProvider sProvider = SessionProviderFactory.createSystemProvider(); try { // set url for Topic link. ...
public void execute(Event<UISelectForumForm> event) throws Exception { UISelectForumForm uiForm = event.getSource(); String forumId = event.getRequestContext().getRequestParameter(OBJECTID); SessionProvider sProvider = SessionProviderFactory.createSystemProvider(); try { // set url for Topic link. ...
diff --git a/orcid-persistence/src/main/java/org/orcid/persistence/dao/impl/SolrDaoImpl.java b/orcid-persistence/src/main/java/org/orcid/persistence/dao/impl/SolrDaoImpl.java index 6d852b2d31..5939bfb5ba 100644 --- a/orcid-persistence/src/main/java/org/orcid/persistence/dao/impl/SolrDaoImpl.java +++ b/orcid-persistence...
true
true
public OrcidSolrResult findByOrcid(String orcid) { OrcidSolrResult orcidSolrResult = null; SolrQuery query = new SolrQuery(); query.setQuery(ORCID + ":" + orcid).setFields(SCORE, ORCID, PUBLIC_PROFILE); ; try { QueryResponse queryResponse = solrServerReadOnly.quer...
public OrcidSolrResult findByOrcid(String orcid) { OrcidSolrResult orcidSolrResult = null; SolrQuery query = new SolrQuery(); query.setQuery(ORCID + ":\"" + orcid + "\"").setFields(SCORE, ORCID, PUBLIC_PROFILE); ; try { QueryResponse queryResponse = solrServerRead...
diff --git a/src/bottomUpTree/MakeSHFiles.java b/src/bottomUpTree/MakeSHFiles.java index 03630753..a099d523 100644 --- a/src/bottomUpTree/MakeSHFiles.java +++ b/src/bottomUpTree/MakeSHFiles.java @@ -1,61 +1,61 @@ /** * Author: anthony.fodor@gmail.com * This code is free software; you can redistribute it and/...
true
true
public static void main(String[] args) throws Exception { File dir = new File(ConfigReader.getETreeTestDir() + File.separator + "gastro454DataSet" + File.separator ); List<String> fileNames = new ArrayList<String>(); for( String s : dir.list()) fileNames.add(s); BufferedWriter mainBatFile = new ...
public static void main(String[] args) throws Exception { File dir = new File(ConfigReader.getETreeTestDir() + File.separator + "gastro454DataSet" + File.separator ); List<String> fileNames = new ArrayList<String>(); for( String s : dir.list()) fileNames.add(s); BufferedWriter mainBatFile = new ...
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/write/BuiltInNodeTypes.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/write/BuiltInNodeTypes.java index 5f15e51795..7e8de92b9b 100644 --- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/write/Bui...
true
true
private BuiltInNodeTypes(final Root root) { this.ntMgr = new ReadWriteNodeTypeManager() { @Override protected Tree getTypes() { return root.getTree(NODE_TYPES_PATH); } @Nonnull @Override protected Root getWriteRoot() {...
private BuiltInNodeTypes(final Root root) { this.ntMgr = new ReadWriteNodeTypeManager() { @Override protected Tree getTypes() { return root.getTree(NODE_TYPES_PATH); } @Nonnull @Override protected Root getWriteRoot() {...
diff --git a/src/com/ichi2/libanki/sync/BasicHttpSyncer.java b/src/com/ichi2/libanki/sync/BasicHttpSyncer.java index ecd9d0da..18a46e6a 100644 --- a/src/com/ichi2/libanki/sync/BasicHttpSyncer.java +++ b/src/com/ichi2/libanki/sync/BasicHttpSyncer.java @@ -1,397 +1,397 @@ /***********************************************...
true
true
public HttpResponse req(String method, InputStream fobj, int comp, boolean hkey, JSONObject registerData) { File tmpFileBuffer = null; try { String bdry = "--" + BOUNDARY; StringWriter buf = new StringWriter(); // compression flag and session key as post vars ...
public HttpResponse req(String method, InputStream fobj, int comp, boolean hkey, JSONObject registerData) { File tmpFileBuffer = null; try { String bdry = "--" + BOUNDARY; StringWriter buf = new StringWriter(); // compression flag and session key as post vars ...
diff --git a/main/src/org/objenesis/instantiator/gcj/GCJSerializationInstantiator.java b/main/src/org/objenesis/instantiator/gcj/GCJSerializationInstantiator.java index ff25635..fb33e6e 100644 --- a/main/src/org/objenesis/instantiator/gcj/GCJSerializationInstantiator.java +++ b/main/src/org/objenesis/instantiator/gcj/G...
true
true
public Object newInstance() { try { return newObjectMethod.invoke(dummyStream, new Object[] {type, superType}); } catch(Exception e) { return new ObjenesisException(e); } }
public Object newInstance() { try { return newObjectMethod.invoke(dummyStream, new Object[] {type, superType}); } catch(Exception e) { throw new ObjenesisException(e); } }
diff --git a/displaytag/src/main/java/org/displaytag/tags/TableTag.java b/displaytag/src/main/java/org/displaytag/tags/TableTag.java index 693f36a..07f490a 100644 --- a/displaytag/src/main/java/org/displaytag/tags/TableTag.java +++ b/displaytag/src/main/java/org/displaytag/tags/TableTag.java @@ -1,1415 +1,1419 @@ pack...
true
true
private StringBuffer getHTMLData() throws JspException { StringBuffer lBuffer = new StringBuffer(8000); // variables to hold the previous row columns values. mPreviousRow = new Hashtable(10); // variables to hold next row column values. mNextRow = new Hashtable(10); ...
private StringBuffer getHTMLData() throws JspException { StringBuffer lBuffer = new StringBuffer(8000); // variables to hold the previous row columns values. mPreviousRow = new Hashtable(10); // variables to hold next row column values. mNextRow = new Hashtable(10); ...
diff --git a/eclipse/plugins/net.sf.orcc.simulators/src/net/sf/orcc/simulators/SimulatorCli.java b/eclipse/plugins/net.sf.orcc.simulators/src/net/sf/orcc/simulators/SimulatorCli.java index f86e25953..80f5be0f6 100644 --- a/eclipse/plugins/net.sf.orcc.simulators/src/net/sf/orcc/simulators/SimulatorCli.java +++ b/eclipse...
false
true
public Object start(IApplicationContext context) throws Exception { Options clOptions = new Options(); Option opt; // Required command line arguments opt = new Option("p", "project", true, "Set the project from "); opt.setRequired(true); clOptions.addOption(opt); opt = new Option("i", "input", true, "...
public Object start(IApplicationContext context) throws Exception { Options clOptions = new Options(); Option opt; // Required command line arguments opt = new Option("p", "project", true, "Set the project from "); opt.setRequired(true); clOptions.addOption(opt); opt = new Option("i", "input", true, "...
diff --git a/runtime/src/com/sun/xml/bind/v2/model/impl/RuntimeEnumLeafInfoImpl.java b/runtime/src/com/sun/xml/bind/v2/model/impl/RuntimeEnumLeafInfoImpl.java index c34f2544..5a2b0480 100644 --- a/runtime/src/com/sun/xml/bind/v2/model/impl/RuntimeEnumLeafInfoImpl.java +++ b/runtime/src/com/sun/xml/bind/v2/model/impl/Ru...
true
true
public RuntimeEnumConstantImpl createEnumConstant(String name, String literal, Field constant, EnumConstantImpl<Type,Class,Field,Method> last) { T t = null; try { try { constant.setAccessible(true); } catch (SecurityException e) { ; // in case ...
public RuntimeEnumConstantImpl createEnumConstant(String name, String literal, Field constant, EnumConstantImpl<Type,Class,Field,Method> last) { T t = null; try { try { constant.setAccessible(true); } catch (SecurityException e) { ; // in case ...
diff --git a/src/main/java/com/survivorserver/GlobalMarket/MarketStorage.java b/src/main/java/com/survivorserver/GlobalMarket/MarketStorage.java index df8d914..e1a8b4c 100644 --- a/src/main/java/com/survivorserver/GlobalMarket/MarketStorage.java +++ b/src/main/java/com/survivorserver/GlobalMarket/MarketStorage.java @@ ...
false
true
public void load(Database db) { List<Integer> corruptItems = new ArrayList<Integer>(); boolean sqlite = market.getConfigHandler().getStorageMethod() == StorageMethod.SQLITE; // Items we should cache in memory List<Integer> itemIds = new ArrayList<Integer>(); try { /* * Synchronize the listing index ...
public void load(Database db) { String dbName = market.getConfig().getString("storage.mysql_database"); List<Integer> corruptItems = new ArrayList<Integer>(); boolean sqlite = market.getConfigHandler().getStorageMethod() == StorageMethod.SQLITE; // Items we should cache in memory List<Integer> itemIds = new ...
diff --git a/src/org/cchmc/bmi/snpomics/annotation/annotator/HgvsDnaAnnotator.java b/src/org/cchmc/bmi/snpomics/annotation/annotator/HgvsDnaAnnotator.java index 73e6532..eb57a1c 100644 --- a/src/org/cchmc/bmi/snpomics/annotation/annotator/HgvsDnaAnnotator.java +++ b/src/org/cchmc/bmi/snpomics/annotation/annotator/HgvsD...
true
true
private String getHgvsCoord(TranscriptAnnotation tx, long genomicCoord) { GenomicSpan span = new GenomicSpan(tx.getPosition().getChromosome(), genomicCoord); if (tx.exonContains(span)) { //In an exon: Coding nts are a positive number, 5' UTR are negative, 3' UTR are positive but prefixed with '*' int pos = 1...
private String getHgvsCoord(TranscriptAnnotation tx, long genomicCoord) { GenomicSpan span = new GenomicSpan(tx.getPosition().getChromosome(), genomicCoord); if (tx.exonContains(span)) { //In an exon: Coding nts are a positive number, 5' UTR are negative, 3' UTR are positive but prefixed with '*' int pos = 1...
diff --git a/dtgov-war/src/main/java/org/overlord/sramp/governance/services/NotificationResource.java b/dtgov-war/src/main/java/org/overlord/sramp/governance/services/NotificationResource.java index 43352f2..cf97e8d 100644 --- a/dtgov-war/src/main/java/org/overlord/sramp/governance/services/NotificationResource.java ++...
true
true
public Response emailNotification(@Context HttpServletRequest request, @PathParam("group") String group, @PathParam("template") String template, @PathParam("target") String target, @PathParam("uuid") String uuid) throws Exception { try { // 0. run ...
public Response emailNotification(@Context HttpServletRequest request, @PathParam("group") String group, @PathParam("template") String template, @PathParam("target") String target, @PathParam("uuid") String uuid) throws Exception { try { // 0. run ...
diff --git a/src/buglinky/BugLinkyServlet.java b/src/buglinky/BugLinkyServlet.java index 6095f99..5476616 100644 --- a/src/buglinky/BugLinkyServlet.java +++ b/src/buglinky/BugLinkyServlet.java @@ -1,131 +1,131 @@ // buglinky - A robot for adding bugtracker links to a wave // Copyright 2009 Eric Kidd // // Licensed ...
true
true
private void addInstructionsToWave(RobotMessageBundle bundle) { Wavelet wavelet = bundle.getWavelet(); LOG.fine("Adding instructions to wavelet " + wavelet.getWaveletId()); Blip blip = wavelet.appendBlip(); TextView textView = blip.getDocument(); textView.append(INSTRUCTIONS); // Our form-handling code ...
private void addInstructionsToWave(RobotMessageBundle bundle) { Wavelet wavelet = bundle.getWavelet(); LOG.fine("Adding instructions to wavelet " + wavelet.getWaveletId()); Blip blip = wavelet.appendBlip(); TextView textView = blip.getDocument(); textView.append(INSTRUCTIONS); // Our form-handling code ...
diff --git a/src/main/java/com/treegger/android/imonair/service/TreeggerWebSocketManager.java b/src/main/java/com/treegger/android/imonair/service/TreeggerWebSocketManager.java index e574f6d..0b2ec9f 100644 --- a/src/main/java/com/treegger/android/imonair/service/TreeggerWebSocketManager.java +++ b/src/main/java/com/tr...
true
true
private void applyTransition( int transition ) { try { LOCK.lockInterruptibly(); switch( transition ) { case TRANSITION_CONNECT: if( connectionState == STATE_DISCONNECTED || connectionState == STATE_PAUSED ) ...
private void applyTransition( int transition ) { try { LOCK.lockInterruptibly(); switch( transition ) { case TRANSITION_CONNECT: if( connectionState == STATE_DISCONNECTED || connectionState == STATE_PAUSED ) ...
diff --git a/tests/test_apps/schemachange/src/schemachange/SchemaChangeClient.java b/tests/test_apps/schemachange/src/schemachange/SchemaChangeClient.java index a063b9bc1..3ff7cbef5 100644 --- a/tests/test_apps/schemachange/src/schemachange/SchemaChangeClient.java +++ b/tests/test_apps/schemachange/src/schemachange/Sch...
false
true
private VoltTable catalogChange(VoltTable t1, boolean newTable) throws Exception { CatalogBuilder builder = new CatalogBuilder(); VoltTable t2 = null; String currentName = t1 == null ? "B" : TableHelper.getTableName(t1); String newName = currentName; // add an empty table wi...
private VoltTable catalogChange(VoltTable t1, boolean newTable) throws Exception { CatalogBuilder builder = new CatalogBuilder(); VoltTable t2 = null; String currentName = t1 == null ? "B" : TableHelper.getTableName(t1); String newName = currentName; // add an empty table wi...
diff --git a/scm-issue-check/src/test/java/dk/fujitsu/issuecheck/ShellTest.java b/scm-issue-check/src/test/java/dk/fujitsu/issuecheck/ShellTest.java index 94505ba..691b952 100644 --- a/scm-issue-check/src/test/java/dk/fujitsu/issuecheck/ShellTest.java +++ b/scm-issue-check/src/test/java/dk/fujitsu/issuecheck/ShellTest....
true
true
private String[] getArguments(String... arguments) throws Exception { String[] args; StringBuffer buffer; if (System.getenv().containsKey("windir")) { args = new String[2 + arguments.length]; args[0] = System.getenv("windir") + "\\system32\\cmd.exe"; args...
private String[] getArguments(String... arguments) throws Exception { String[] args; StringBuffer buffer; if (System.getenv().containsKey("windir")) { args = new String[2 + arguments.length]; args[0] = System.getenv("windir") + "\\system32\\cmd.exe"; args...
diff --git a/src/webapp/java/jamm/webapp/JammTilesRequestProcessor.java b/src/webapp/java/jamm/webapp/JammTilesRequestProcessor.java index 1e7e514..1d8cdca 100644 --- a/src/webapp/java/jamm/webapp/JammTilesRequestProcessor.java +++ b/src/webapp/java/jamm/webapp/JammTilesRequestProcessor.java @@ -1,75 +1,75 @@ /* * J...
true
true
protected boolean processRoles(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException, ServletException { // Get roles. If roles aren't defined, we assume its good for /...
protected boolean processRoles(HttpServletRequest request, HttpServletResponse response, ActionMapping mapping) throws IOException, ServletException { // Get roles. If roles aren't defined, we assume its good for // a...
diff --git a/pp-rebel/src/main/java/com/polopoly/javarebel/PolopolyJRebelPlugin.java b/pp-rebel/src/main/java/com/polopoly/javarebel/PolopolyJRebelPlugin.java index ce1fea6..5884849 100644 --- a/pp-rebel/src/main/java/com/polopoly/javarebel/PolopolyJRebelPlugin.java +++ b/pp-rebel/src/main/java/com/polopoly/javarebel/P...
false
true
public void preinit() { // Register the CBP Integration i = IntegrationFactory.getInstance(); ClassLoader cl = PolopolyJRebelPlugin.class.getClassLoader(); i.addIntegrationProcessor(cl, "com.polopoly.cm.client.impl.service2client.ContentBase", new ContentBaseProcessor()); Cfg cfg = ConfigurationPr...
public void preinit() { // Register the CBP Integration i = IntegrationFactory.getInstance(); ClassLoader cl = PolopolyJRebelPlugin.class.getClassLoader(); i.addIntegrationProcessor(cl, "com.polopoly.cm.client.impl.service2client.ContentBase", new ContentBaseProcessor()); Cfg cfg = ConfigurationPr...
diff --git a/src/org/jgrapht/graph/UndirectedGraphUnion.java b/src/org/jgrapht/graph/UndirectedGraphUnion.java index bef86be..d429cf3 100644 --- a/src/org/jgrapht/graph/UndirectedGraphUnion.java +++ b/src/org/jgrapht/graph/UndirectedGraphUnion.java @@ -1,19 +1,19 @@ package org.jgrapht.graph; import org.jgrapht.*; ...
true
true
public int degreeOf(V vertex) { Set<E> r = edgeSet(); return r.size(); }
public int degreeOf(V vertex) { Set<E> r = edgesOf(vertex); return r.size(); }
diff --git a/src/main/java/org/spout/api/command/annotated/SimpleInjector.java b/src/main/java/org/spout/api/command/annotated/SimpleInjector.java index 97a36c40a..e5cd02e2a 100644 --- a/src/main/java/org/spout/api/command/annotated/SimpleInjector.java +++ b/src/main/java/org/spout/api/command/annotated/SimpleInjector....
true
true
public Object newInstance(Class<?> clazz) { try { Constructor<?> ctr = null; int lowestSubclassCount = Integer.MAX_VALUE; for (Constructor<?> c : clazz.getConstructors()) { boolean match = true; Class<?>[] args = c.getParameterTypes(); if (args == null || args.length != argClasses.length) { ...
public Object newInstance(Class<?> clazz) { try { Constructor<?> ctr = null; int lowestSubclassCount = Integer.MAX_VALUE; for (Constructor<?> c : clazz.getConstructors()) { boolean match = true; Class<?>[] args = c.getParameterTypes(); if (args == null || args.length != argClasses.length) { ...
diff --git a/common/src/main/java/cz/incad/kramerius/service/impl/ResourceBundleServiceImpl.java b/common/src/main/java/cz/incad/kramerius/service/impl/ResourceBundleServiceImpl.java index 7d4a5d5ba..a08f19ba9 100644 --- a/common/src/main/java/cz/incad/kramerius/service/impl/ResourceBundleServiceImpl.java +++ b/common/...
true
true
private void copyDefault() throws IOException { String[] defaults = {"base.properties", "base_en.properties", "base_cs.properties"}; for (String base : defaults) { InputStream is = null; OutputStream os = null; try { is = this.getClass().getResourceAsStream("res/"+base); os = new FileOutput...
private void copyDefault() throws IOException { String[] defaults = {"base.properties", "base_en.properties", "base_cs.properties"}; for (String base : defaults) { InputStream is = null; OutputStream os = null; try { is = this.getClass().getResourceAsStream("res/"+base); os = new FileOutput...
diff --git a/modules/quercus/src/com/caucho/quercus/servlet/QuercusServlet.java b/modules/quercus/src/com/caucho/quercus/servlet/QuercusServlet.java index f9406951e..fc7cb5db3 100644 --- a/modules/quercus/src/com/caucho/quercus/servlet/QuercusServlet.java +++ b/modules/quercus/src/com/caucho/quercus/servlet/QuercusServ...
false
true
public QuercusServlet() { if (_impl == null) { try { Class cl = Class.forName("com.caucho.quercus.ProQuercusServlet"); _impl = (QuercusServletImpl) cl.newInstance(); } catch (Exception e) { log.log(Level.FINEST, e.toString(), e); } } if (_impl == null) { try { Class cl =...
public QuercusServlet() { if (_impl == null) { try { Class cl = Class.forName("com.caucho.quercus.servlet.ProQuercusServlet"); _impl = (QuercusServletImpl) cl.newInstance(); } catch (Exception e) { log.log(Level.FINEST, e.toString(), e); } } if (_impl == null) { try { Cl...
diff --git a/SGDE-CSV/src/CSV/main/Database.java b/SGDE-CSV/src/CSV/main/Database.java index 3ebb12d..98da9b4 100644 --- a/SGDE-CSV/src/CSV/main/Database.java +++ b/SGDE-CSV/src/CSV/main/Database.java @@ -1,48 +1,49 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. ...
false
true
public void put(Object v, int row, int col){ try{ data.get(row).put(col, v); }catch(NullPointerException npe){ Hashtable<Integer, Object> r=new Hashtable<Integer, Object>(); r.put(col, v); } }
public void put(Object v, int row, int col){ try{ data.get(row).put(col, v); }catch(NullPointerException npe){ HashMap<Integer, Object> r=new HashMap<Integer, Object>(); r.put(col, v); data.put(row, r); } }
diff --git a/content-impl/impl/src/java/org/sakaiproject/content/impl/ContentHostingHandlerResolverImpl.java b/content-impl/impl/src/java/org/sakaiproject/content/impl/ContentHostingHandlerResolverImpl.java index e7466c26..bd6d8892 100644 --- a/content-impl/impl/src/java/org/sakaiproject/content/impl/ContentHostingHand...
false
true
public ContentEntity getVirtualChild(String finalId, ContentEntity ce, boolean exact) { if (ce == null) { return null; // entirely empty resources tool } String thisid = ce.getId(); // check for an exact match if (finalId.equals(thisid)) { return ce; } // find the next ID in the target eg ...
public ContentEntity getVirtualChild(String finalId, ContentEntity ce, boolean exact) { if (ce == null) { return null; // entirely empty resources tool } String thisid = ce.getId(); // check for an exact match if (finalId.equals(thisid)) { return ce; } // find the next ID in the target eg ...
diff --git a/src/client/Client.java b/src/client/Client.java index ab2c53c..4053d79 100644 --- a/src/client/Client.java +++ b/src/client/Client.java @@ -1,446 +1,449 @@ package client; import fileutil.FileInfo; import fileutil.FileUtil; import fileutil.MD5Calculator; import java.awt.event.ActionEvent; import ...
false
true
private void checkUpdate() { System.out.println("Checking update..."); /* check if there are any files have been deleted */ checkDeletion(); try { /* get the records from the server */ final ArrayList<FileInfo> serverRecords = getServerRecord(); /...
private void checkUpdate() { System.out.println("Checking update..."); /* check if there are any files have been deleted */ checkDeletion(); try { /* get the records from the server */ final ArrayList<FileInfo> serverRecords = getServerRecord(); /...
diff --git a/src/test/java/org/wkh/bateman/trade/GoogleQuoteFetcherTest.java b/src/test/java/org/wkh/bateman/trade/GoogleQuoteFetcherTest.java index 3acf2c6..396acc2 100644 --- a/src/test/java/org/wkh/bateman/trade/GoogleQuoteFetcherTest.java +++ b/src/test/java/org/wkh/bateman/trade/GoogleQuoteFetcherTest.java @@ -1,3...
true
true
public void testParseQuotes() throws Exception { String samplePath = "src/main/resources/sample_response.txt"; Scanner scan = new Scanner(new File(samplePath)); scan.useDelimiter("\\Z"); String sampleResponse = scan.next(); GoogleQuoteFetcher fetcher = ...
public void testParseQuotes() throws Exception { String samplePath = "src/main/resources/sample_response.txt"; Scanner scan = new Scanner(new File(samplePath)); scan.useDelimiter("\\Z"); String sampleResponse = scan.next().replaceAll("\r\n", "\n"); Goog...
diff --git a/src/main/java/uk/ac/ebi/sampletab/STParser4.java b/src/main/java/uk/ac/ebi/sampletab/STParser4.java index 7391371..ee1810d 100644 --- a/src/main/java/uk/ac/ebi/sampletab/STParser4.java +++ b/src/main/java/uk/ac/ebi/sampletab/STParser4.java @@ -1,412 +1,412 @@ package uk.ac.ebi.sampletab; import java.io...
true
true
public static Submission readST(File stfile) throws IOException { String line = null; BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(stfile), "UTF-8")); line = reader.readLine(); int l = line.length(); int pos = 0; for (pos = ...
public static Submission readST(File stfile) throws IOException { String line = null; BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(stfile), "UTF-8")); line = reader.readLine(); int l = line.length(); int pos = 0; for (pos = ...
diff --git a/src/main/java/org/primefaces/extensions/component/ckeditor/CKEditorRenderer.java b/src/main/java/org/primefaces/extensions/component/ckeditor/CKEditorRenderer.java index 87524804..bbef5757 100644 --- a/src/main/java/org/primefaces/extensions/component/ckeditor/CKEditorRenderer.java +++ b/src/main/java/org/...
true
true
protected void encodeScript(final FacesContext context, final CKEditor ckEditor) throws IOException { final ResponseWriter writer = context.getResponseWriter(); final String clientId = ckEditor.getClientId(context); final String widgetVar = ckEditor.resolveWidgetVar(); startScript(writer, clientId); writer...
protected void encodeScript(final FacesContext context, final CKEditor ckEditor) throws IOException { final ResponseWriter writer = context.getResponseWriter(); final String clientId = ckEditor.getClientId(context); final String widgetVar = ckEditor.resolveWidgetVar(); startScript(writer, clientId); writer...
diff --git a/src/main/java/backtype/storm/contrib/cassandra/bolt/mapper/DefaultColumnsMapper.java b/src/main/java/backtype/storm/contrib/cassandra/bolt/mapper/DefaultColumnsMapper.java index df92dbb..fb92e18 100644 --- a/src/main/java/backtype/storm/contrib/cassandra/bolt/mapper/DefaultColumnsMapper.java +++ b/src/main...
true
true
public Map<String, String> mapToColumns(Tuple tuple){ Fields fields = tuple.getFields(); Map<String,String> columns = new HashMap<String,String>(); for (int i=0; i < fields.size(); i++){ columns.put(fields.get(i), ""); } return columns; }
public Map<String, String> mapToColumns(Tuple tuple){ Fields fields = tuple.getFields(); Map<String,String> columns = new HashMap<String,String>(); for (int i=0; i < fields.size(); i++){ String name = fields.get(i); Object value = tuple.getValueByField(name); ...
diff --git a/src/cytoscape/visual/VisualMappingManager.java b/src/cytoscape/visual/VisualMappingManager.java index d3142cc2a..fd27ec4a8 100644 --- a/src/cytoscape/visual/VisualMappingManager.java +++ b/src/cytoscape/visual/VisualMappingManager.java @@ -1,305 +1,307 @@ //------------------------------------------------...
false
true
public void applyNodeAppearances() { CyNetwork network = getNetwork(); GraphView graphView = networkView.getView(); NodeAppearanceCalculator nodeAppearanceCalculator = visualStyle.getNodeAppearanceCalculator(); for (Iterator i = graphView.getNodeViewsIterator(); i.has...
public void applyNodeAppearances() { CyNetwork network = getNetwork(); GraphView graphView = networkView.getView(); NodeAppearanceCalculator nodeAppearanceCalculator = visualStyle.getNodeAppearanceCalculator(); for (Iterator i = graphView.getNodeViewsIterator(); i.has...