Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/com/thoughtworks/activities/BaseActivity.java b/src/com/thoughtworks/activities/BaseActivity.java index 9ce0641..ef88591 100644 --- a/src/com/thoughtworks/activities/BaseActivity.java +++ b/src/com/thoughtworks/activities/BaseActivity.java @@ -1,104 +1,102 @@ package com.thoughtworks.activities; im...
false
true
private void syncData() { final Context context = this; if (isNetworkAvailable()) { new SyncActivity(BaseActivity.this).sync(); new Handler().postDelayed(new Runnable() { public void run() { finish(); Intent intent = new...
private void syncData() { final Context context = this; if (isNetworkAvailable()) { new SyncActivity(BaseActivity.this).sync(); new Handler().postDelayed(new Runnable() { public void run() { Intent intent = new Intent(context, SplashScreenA...
diff --git a/src/smartpool/web/form/CreateProfileFormValidator.java b/src/smartpool/web/form/CreateProfileFormValidator.java index 0d63baa..0b16f42 100644 --- a/src/smartpool/web/form/CreateProfileFormValidator.java +++ b/src/smartpool/web/form/CreateProfileFormValidator.java @@ -1,38 +1,39 @@ package smartpool.web.fo...
false
true
public void validate(Object target, Errors errors) { CreateProfileForm form = (CreateProfileForm) target; if (StringUtils.isBlank(form.contactNumber)) { rejectIfEmpty(errors, "contactNumber", "field.required"); } else if (!form.contactNumber.matches("\\d*")) { errors....
public void validate(Object target, Errors errors) { CreateProfileForm form = (CreateProfileForm) target; if (StringUtils.isBlank(form.contactNumber)) { rejectIfEmpty(errors, "contactNumber", "field.required"); } else if (!form.contactNumber.matches("\\d*")) { errors....
diff --git a/src/net/bubbaland/trivia/client/TriviaFrame.java b/src/net/bubbaland/trivia/client/TriviaFrame.java index 3580726..a778698 100644 --- a/src/net/bubbaland/trivia/client/TriviaFrame.java +++ b/src/net/bubbaland/trivia/client/TriviaFrame.java @@ -1,752 +1,752 @@ package net.bubbaland.trivia.client; import...
true
true
private TriviaFrame(TriviaClient client, boolean showIRC) { super(); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); this.client = client; final String title = client.nextWindowName(); this.setTitle(title); this.setName(title); loadPosition(); // Notify the client this frame exists this...
private TriviaFrame(TriviaClient client, boolean showIRC) { super(); setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); this.client = client; final String title = client.nextWindowName(); this.setTitle(title); this.setName(title); loadPosition(); // Notify the client this frame exists this...
diff --git a/src/org/codeaurora/bluetooth/map/BluetoothMasService.java b/src/org/codeaurora/bluetooth/map/BluetoothMasService.java index a72b155..aa6d64e 100755 --- a/src/org/codeaurora/bluetooth/map/BluetoothMasService.java +++ b/src/org/codeaurora/bluetooth/map/BluetoothMasService.java @@ -1,990 +1,990 @@ /* * Cop...
true
true
private void parseIntent(final Intent intent) { String action = intent.getStringExtra("action"); if (VERBOSE) Log.v(TAG, "action: " + action); int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR); boolean removeTimeoutMsg =...
private synchronized void parseIntent(final Intent intent) { String action = intent.getStringExtra("action"); if (VERBOSE) Log.v(TAG, "action: " + action); int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE, BluetoothAdapter.ERROR); boolean remov...
diff --git a/org.oobium.build.console/src/org/oobium/build/console/commands/destroy/ControllerCommand.java b/org.oobium.build.console/src/org/oobium/build/console/commands/destroy/ControllerCommand.java index 0a0a42ae..16539ebf 100644 --- a/org.oobium.build.console/src/org/oobium/build/console/commands/destroy/Controll...
true
true
public void run() { Module module = getModule(); File controller = module.getController(param(0)); if(!controller.exists()) { console.err.println(param(0) + " does not exist in " + module); return; } String confirm = flag('f') ? "Y" : ask("This will permanently remove the controller. Are you sure?[Y/N...
public void run() { Module module = getModule(); File controller = module.getController(param(0)); if(!controller.exists()) { console.err.println(param(0) + " does not exist in " + module); return; } String confirm = flag('f') ? "Y" : ask("This will permanently remove the controller. Are you sure?[Y/N...
diff --git a/src/bwa_picard_gatk_pipeline/sge/ilumina/BWAmem/mappingJob/BwaMemIluminaMappingJob.java b/src/bwa_picard_gatk_pipeline/sge/ilumina/BWAmem/mappingJob/BwaMemIluminaMappingJob.java index bdd813b..3f249ca 100644 --- a/src/bwa_picard_gatk_pipeline/sge/ilumina/BWAmem/mappingJob/BwaMemIluminaMappingJob.java +++ b...
true
true
private void addCommands() throws IOException { File referenceFile = readGroup.getGlobalConfiguration().getReferenceFile(); File referenceIndex = new File(referenceFile.getAbsolutePath() + ".fai"); File samtoolsFile = new File("/usr/local/samtools/samtools"); File bwaFile = ...
private void addCommands() throws IOException { File referenceFile = readGroup.getGlobalConfiguration().getReferenceFile(); File referenceIndex = new File(referenceFile.getAbsolutePath() + ".fai"); File samtoolsFile = new File("/usr/local/samtools/samtools"); File bwaFile = ...
diff --git a/src/me/ellbristow/ChestBank/ChestBank.java b/src/me/ellbristow/ChestBank/ChestBank.java index 0c19827..24af0d3 100644 --- a/src/me/ellbristow/ChestBank/ChestBank.java +++ b/src/me/ellbristow/ChestBank/ChestBank.java @@ -1,773 +1,771 @@ package me.ellbristow.ChestBank; import java.io.File; import java....
true
true
public boolean onCommand (CommandSender sender, Command cmd, String commandLabel, String[] args) { if (!(sender instanceof Player)) { sender.sendMessage("Sorry! The console can't use this command!"); return true; } Player player = (Player) sender; ...
public boolean onCommand (CommandSender sender, Command cmd, String commandLabel, String[] args) { if (!(sender instanceof Player)) { sender.sendMessage("Sorry! The console can't use this command!"); return true; } Player player = (Player) sender; ...
diff --git a/Slick/src/org/newdawn/slick/SpriteSheet.java b/Slick/src/org/newdawn/slick/SpriteSheet.java index ad6418a..c9b943b 100644 --- a/Slick/src/org/newdawn/slick/SpriteSheet.java +++ b/Slick/src/org/newdawn/slick/SpriteSheet.java @@ -1,204 +1,204 @@ package org.newdawn.slick; import java.io.InputStream; /...
true
true
protected void initImpl() { if (subImages != null) { return; } int tilesAcross = ((getWidth() - tw) / (tw + spacing)) + 1; int tilesDown = ((getHeight() - th) / (th + spacing)) + 1; if (getHeight() - th % (th+spacing) != 0) { tilesDown++; } subImages = new Image[tilesAcross][tilesDown]; for...
protected void initImpl() { if (subImages != null) { return; } int tilesAcross = ((getWidth() - tw) / (tw + spacing)) + 1; int tilesDown = ((getHeight() - th) / (th + spacing)) + 1; if ((getHeight() - th) % (th+spacing) != 0) { tilesDown++; } subImages = new Image[tilesAcross][tilesDown]; f...
diff --git a/src/com/edinarobotics/zephyr/autonomous/AutonomousStepFactory.java b/src/com/edinarobotics/zephyr/autonomous/AutonomousStepFactory.java index 79c6c2a..8452770 100644 --- a/src/com/edinarobotics/zephyr/autonomous/AutonomousStepFactory.java +++ b/src/com/edinarobotics/zephyr/autonomous/AutonomousStepFactory....
false
true
public AutonomousStep getShooterFireStep(double shooterSpeed, int numShots){ final double PISTON_SET_DELAY = 1; final double BALL_LOAD_DELAY = 2.5; //Steps to bring the piston up and down AutonomousStep[] fireSteps = new AutonomousStep[7]; fireSteps[0] = new ShooterPistonCont...
public AutonomousStep getShooterFireStep(double shooterSpeed, int numShots){ final double PISTON_SET_DELAY = 1; final double BALL_LOAD_DELAY = 2.5; //Steps to bring the piston up and down AutonomousStep[] fireSteps = new AutonomousStep[7]; fireSteps[0] = new ShooterPistonCont...
diff --git a/src/org/odk/collect/android/logic/PropertyManager.java b/src/org/odk/collect/android/logic/PropertyManager.java index d6c3263..2497c68 100644 --- a/src/org/odk/collect/android/logic/PropertyManager.java +++ b/src/org/odk/collect/android/logic/PropertyManager.java @@ -1,109 +1,109 @@ /* * Copyright (C) 2...
true
true
public PropertyManager(Context context) { Log.i(t, "calling constructor"); mContext = context; mProperties = new HashMap<String, String>(); mTelephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); String deviceId = mTelephonyManager.getD...
public PropertyManager(Context context) { Log.i(t, "calling constructor"); mContext = context; mProperties = new HashMap<String, String>(); mTelephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); String deviceId = mTelephonyManager.getD...
diff --git a/ExchangeBypassForXposed/src/main/java/com/shantz/exchangebypass/XposedModule.java b/ExchangeBypassForXposed/src/main/java/com/shantz/exchangebypass/XposedModule.java index c5500f3..ee783f3 100644 --- a/ExchangeBypassForXposed/src/main/java/com/shantz/exchangebypass/XposedModule.java +++ b/ExchangeBypassFor...
true
true
private void hookEmail(LoadPackageParam lpparam) { findAndHookMethod("com.android.emailcommon.provider.Policy", lpparam.classLoader, "normalize", updatePolicy); findAndHookMethod("com.android.email.SecurityPolicy", lpparam.classLoader, "getInactiveReasons", "com.andro...
private void hookEmail(LoadPackageParam lpparam) { findAndHookMethod("com.android.emailcommon.provider.Policy", lpparam.classLoader, "normalize", updatePolicy); findAndHookMethod("com.android.email.SecurityPolicy", lpparam.classLoader, "getInactiveReasons", "com.andro...
diff --git a/org.whole.lang.e4.ui/src/org/whole/lang/e4/ui/menu/EntityAssistCompositeContributionItem.java b/org.whole.lang.e4.ui/src/org/whole/lang/e4/ui/menu/EntityAssistCompositeContributionItem.java index e6c44f092..321f6221e 100644 --- a/org.whole.lang.e4.ui/src/org/whole/lang/e4/ui/menu/EntityAssistCompositeContr...
true
true
protected boolean fillEntityAssistMenu(IItemContainer<IAction, ImageDescriptor> container, IEntity selectedEntity, ILanguageKit lk) { boolean hasActions = false; final IEntity targetEntity = getTargetEntity(selectedEntity).wGetAdaptee(false); if (EntityUtils.isComposite(targetEntity)) { List<IAction> addActi...
protected boolean fillEntityAssistMenu(IItemContainer<IAction, ImageDescriptor> container, IEntity selectedEntity, ILanguageKit lk) { boolean hasActions = false; final IEntity targetEntity = getTargetEntity(selectedEntity).wGetAdaptee(false); if (EntityUtils.isComposite(targetEntity)) { List<IAction> addActi...
diff --git a/integration-test/src/test/java/org/sagebionetworks/IT700SynapseRClient.java b/integration-test/src/test/java/org/sagebionetworks/IT700SynapseRClient.java index 9da0a814..9ab4e695 100644 --- a/integration-test/src/test/java/org/sagebionetworks/IT700SynapseRClient.java +++ b/integration-test/src/test/java/or...
true
true
public void testRunRIntegrationTests() throws Exception { String cmd[] = { Helpers.getRPath(), "-e", "library(synapseClient)", "-e", "synapseAuthServiceEndpoint(endpoint='" + StackConfiguration.getAuthenticationServiceEndpoint() + "')", "-e", "synapseRepoServiceEndpoint(endpoi...
public void testRunRIntegrationTests() throws Exception { String cmd[] = { Helpers.getRPath(), "-e", "library(synapseClient)", "-e", "synapseAuthServiceEndpoint(endpoint='" + StackConfiguration.getAuthenticationServiceEndpoint() + "')", "-e", "synapseRepoServiceEndpoint(endpoi...
diff --git a/src/main/java/net/new_liberty/commandtimer/ConfigLoader.java b/src/main/java/net/new_liberty/commandtimer/ConfigLoader.java index 27a7a05..c1a0f64 100644 --- a/src/main/java/net/new_liberty/commandtimer/ConfigLoader.java +++ b/src/main/java/net/new_liberty/commandtimer/ConfigLoader.java @@ -1,209 +1,209 @@...
false
true
public static CommandSet loadSet(String id, ConfigurationSection section, Map<String, CommandSet> commandMappings) { if (section == null) { return null; } // Set messages Map<String, String> messages = new HashMap<String, String>(); ConfigurationSection setMessag...
public static CommandSet loadSet(String id, ConfigurationSection section, Map<String, CommandSet> commandMappings) { if (section == null) { return null; } // Set messages Map<String, String> messages = new HashMap<String, String>(); ConfigurationSection messagesS...
diff --git a/Slick/src/org/newdawn/slick/opengl/CursorLoader.java b/Slick/src/org/newdawn/slick/opengl/CursorLoader.java index 71118b1..b450b50 100644 --- a/Slick/src/org/newdawn/slick/opengl/CursorLoader.java +++ b/Slick/src/org/newdawn/slick/opengl/CursorLoader.java @@ -1,147 +1,147 @@ package org.newdawn.slick.open...
true
true
public Cursor getCursor(String ref,int x,int y) throws IOException, LWJGLException { LoadableImageData imageData = null; if (ref.endsWith(".tga")) { imageData = new TGAImageData(); } else { imageData = new ImageIOImageData(); } ByteBuffer buf = imageData.loadImage(ResourceLoader.getResourceAsStre...
public Cursor getCursor(String ref,int x,int y) throws IOException, LWJGLException { LoadableImageData imageData = null; if (ref.endsWith(".tga")) { imageData = new TGAImageData(); } else { imageData = new ImageIOImageData(); } ByteBuffer buf = imageData.loadImage(ResourceLoader.getResourceAsStre...
diff --git a/ide_common/src/com/android/ide/common/rendering/LayoutLibrary.java b/ide_common/src/com/android/ide/common/rendering/LayoutLibrary.java index e1ce53b1c..a757c2002 100644 --- a/ide_common/src/com/android/ide/common/rendering/LayoutLibrary.java +++ b/ide_common/src/com/android/ide/common/rendering/LayoutLibr...
false
true
private RenderSession createLegacySession(Params params) { if (params.getLayoutDescription() instanceof IXmlPullParser == false) { throw new IllegalArgumentException("Parser must be of type ILegacyPullParser"); } if (params.getProjectCallback() instanceof com.andr...
private RenderSession createLegacySession(Params params) { if (params.getLayoutDescription() instanceof IXmlPullParser == false) { throw new IllegalArgumentException("Parser must be of type ILegacyPullParser"); } if (params.getProjectCallback() instanceof com.andr...
diff --git a/dev/bytecast.fsys/src/edu/syr/bytecast/fsys/elf/ElfFileParser.java b/dev/bytecast.fsys/src/edu/syr/bytecast/fsys/elf/ElfFileParser.java index e3b4b02..49d4dec 100644 --- a/dev/bytecast.fsys/src/edu/syr/bytecast/fsys/elf/ElfFileParser.java +++ b/dev/bytecast.fsys/src/edu/syr/bytecast/fsys/elf/ElfFileParser....
false
true
public static void main(String args[]) { ElfFileParser elf_parser = new ElfFileParser(); //elf_parser.setFilepath("/home/adodds/code/bytecast-fsys/documents/testcase1_input_files/libc.so.6"); //elf_parser.setFilepath("/lib32/libc.so.6"); elf_parser.setFilePath("../../documents/testca...
public static void main(String args[]) { ElfFileParser elf_parser = new ElfFileParser(); //elf_parser.setFilepath("/home/adodds/code/bytecast-fsys/documents/testcase1_input_files/libc.so.6"); //elf_parser.setFilepath("/lib32/libc.so.6"); elf_parser.setFilePath("../../documents/testca...
diff --git a/src/java/org/apache/nutch/fs/FileUtil.java b/src/java/org/apache/nutch/fs/FileUtil.java index 7b49cd7a..eb095bfc 100644 --- a/src/java/org/apache/nutch/fs/FileUtil.java +++ b/src/java/org/apache/nutch/fs/FileUtil.java @@ -1,120 +1,120 @@ /** * Copyright 2005 The Apache Software Foundation * * Licens...
true
true
public static boolean copyContents(NutchFileSystem nfs, File src, File dst, boolean overwrite) throws IOException { if (nfs.exists(dst) && !overwrite) { return false; } File dstParent = dst.getParentFile(); if (! nfs.exists(dstParent)) { nfs.mkdirs(dstParent)...
public static boolean copyContents(NutchFileSystem nfs, File src, File dst, boolean overwrite) throws IOException { if (nfs.exists(dst) && !overwrite) { return false; } File dstParent = dst.getParentFile(); if ((dstParent != null) && (!nfs.exists(dstParent))) { ...
diff --git a/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseAxisServlet.java b/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseAxisServlet.java index 023210618..b340d7438 100644 --- a/java/modules/core/src/main/java/org/apache/synapse/core/axis2/SynapseAxisServlet.java +++ b/j...
true
true
public void init(ServletConfig config) throws ServletException { ServletContext servletContext = config.getServletContext(); //TODO SUPUN /*this.configContext = (ConfigurationContext) ServerManager.getInstance(). getServerContextInformation().getServerContext();*/ th...
public void init(ServletConfig config) throws ServletException { ServletContext servletContext = config.getServletContext(); ServerManager serverManager = (ServerManager) config.getServletContext(). getAttribute(SynapseStartUpServlet.SYNAPSE_SERVER_MANAGER); if (serverManage...
diff --git a/android/phoenix/src/org/retroarch/browser/preferences/UserPreferences.java b/android/phoenix/src/org/retroarch/browser/preferences/UserPreferences.java index ffc5eb73df..5b03b23b99 100644 --- a/android/phoenix/src/org/retroarch/browser/preferences/UserPreferences.java +++ b/android/phoenix/src/org/retroarc...
true
true
public static void updateConfigFile(Context ctx) { String path = getDefaultConfigPath(ctx); ConfigFile config; try { config = new ConfigFile(new File(path)); } catch (IOException e) { config = new ConfigFile(); } Log.i(TAG, "Writing config to: " + path); // Native library and data director...
public static void updateConfigFile(Context ctx) { String path = getDefaultConfigPath(ctx); ConfigFile config; try { config = new ConfigFile(new File(path)); } catch (IOException e) { config = new ConfigFile(); } Log.i(TAG, "Writing config to: " + path); // Native library and data director...
diff --git a/pruebas/src/PruebaFile3.java b/pruebas/src/PruebaFile3.java index 82bb67f..f6829a2 100644 --- a/pruebas/src/PruebaFile3.java +++ b/pruebas/src/PruebaFile3.java @@ -1,9 +1,9 @@ public class PruebaFile { public static void main(String[] args) { - System.out.println("prueba trabajo 1"); + System....
true
true
public static void main(String[] args) { System.out.println("prueba trabajo 1"); }
public static void main(String[] args) { System.out.println("prueba trabajo 1qwdqwdqwd"); }
diff --git a/ui/src/main/java/rinde/sim/ui/View.java b/ui/src/main/java/rinde/sim/ui/View.java index d0f99cd0..279e487f 100644 --- a/ui/src/main/java/rinde/sim/ui/View.java +++ b/ui/src/main/java/rinde/sim/ui/View.java @@ -1,235 +1,234 @@ /** * */ package rinde.sim.ui; import static com.google.common.base.Pre...
false
true
public void show() { checkState( simulator.isConfigured(), "Simulator needs to be configured before it can be visualized, see Simulator.configure()"); // if( ) Display.setAppName("RinSim"); final Display d = display != null ? display : Display.getCurrent(); final b...
public void show() { checkState( simulator.isConfigured(), "Simulator needs to be configured before it can be visualized, see Simulator.configure()"); // if( ) Display.setAppName("RinSim"); final Display d = display != null ? display : Display.getCurrent(); final b...
diff --git a/fcrepo-server/src/main/java/org/fcrepo/server/rest/DefaultSerializer.java b/fcrepo-server/src/main/java/org/fcrepo/server/rest/DefaultSerializer.java index 68fbb1e5..ae6f0347 100644 --- a/fcrepo-server/src/main/java/org/fcrepo/server/rest/DefaultSerializer.java +++ b/fcrepo-server/src/main/java/org/fcrepo/...
true
true
String searchResultToHtml( String query, String terms, String[] searchableFields, String[] wantedFields, int maxResults, FieldSearchResult result) { StringBuffer html = new StringBuffer(); HashSet<String> fieldHash = new HashSet...
String searchResultToHtml( String query, String terms, String[] searchableFields, String[] wantedFields, int maxResults, FieldSearchResult result) { StringBuffer html = new StringBuffer(); HashSet<String> fieldHash = new HashSet...
diff --git a/src/de/ueller/gpsmid/ui/GuiWebInfo.java b/src/de/ueller/gpsmid/ui/GuiWebInfo.java index fed9e3e0..9a86193d 100644 --- a/src/de/ueller/gpsmid/ui/GuiWebInfo.java +++ b/src/de/ueller/gpsmid/ui/GuiWebInfo.java @@ -1,307 +1,307 @@ package de.ueller.gpsmid.ui; /* * GpsMid - Copyright (c) 2008 Kai Krueger a...
true
true
public String getUrlForSite(String site) { String url = null; // checked url at 2010-01-09; free servers overloaded, can't test what's the difference // between full and non-full // http://ws.geonames.org/findNearbyWikipediaRSS?lat=47&lng=9&style=full if (site.equalsIgnoreCase(Locale.get("guiwebinfo.Wikipedi...
public String getUrlForSite(String site) { String url = null; // checked url at 2010-01-09; free servers overloaded, can't test what's the difference // between full and non-full // http://ws.geonames.org/findNearbyWikipediaRSS?lat=47&lng=9&style=full if (site.equalsIgnoreCase(Locale.get("guiwebinfo.Wikipedi...
diff --git a/java/src/playn/java/JavaImageLayer.java b/java/src/playn/java/JavaImageLayer.java index b6c1334e..625579e6 100644 --- a/java/src/playn/java/JavaImageLayer.java +++ b/java/src/playn/java/JavaImageLayer.java @@ -1,210 +1,212 @@ /** * Copyright 2011 The PlayN Authors * * Licensed under the Apache Licen...
true
true
void paint(JavaCanvas canvas) { if (!visible() || !image.isReady()) return; canvas.save(); transform(canvas); canvas.setAlpha(canvas.alpha() * alpha); float dw = widthSet ? width : image.width(); float dh = heightSet ? height : image.height(); if (repeatX || repeatY) { if (dirty) ...
void paint(JavaCanvas canvas) { if (!visible() || !image.isReady()) return; canvas.save(); transform(canvas); canvas.setAlpha(canvas.alpha() * alpha); float dw = widthSet ? width : image.width(); float dh = heightSet ? height : image.height(); if (repeatX || repeatY) { if (dirty) ...
diff --git a/src/org/openstreetmap/josm/gui/layer/markerlayer/ButtonMarker.java b/src/org/openstreetmap/josm/gui/layer/markerlayer/ButtonMarker.java index c2ee4031..090716aa 100644 --- a/src/org/openstreetmap/josm/gui/layer/markerlayer/ButtonMarker.java +++ b/src/org/openstreetmap/josm/gui/layer/markerlayer/ButtonMarke...
false
true
@Override public void paint(Graphics g, MapView mv, boolean mousePressed, String show) { if (! show.equalsIgnoreCase("show")) { super.paint(g, mv, mousePressed, show); return; } Point screen = mv.getPoint(getEastNorth()); buttonRectangle.setLocation(screen.x+4...
@Override public void paint(Graphics g, MapView mv, boolean mousePressed, String show) { if (! show.equalsIgnoreCase("show")) { super.paint(g, mv, mousePressed, show); return; } Point screen = mv.getPoint(getEastNorth()); buttonRectangle.setLocation(screen.x+4...
diff --git a/src/main/java/com/drtshock/willie/command/minecraft/GlobalMCStatsCommandHandler.java b/src/main/java/com/drtshock/willie/command/minecraft/GlobalMCStatsCommandHandler.java index d2a9708..bbb6633 100644 --- a/src/main/java/com/drtshock/willie/command/minecraft/GlobalMCStatsCommandHandler.java +++ b/src/main...
false
true
public GlobalStats() throws IOException { final String apiUrl = "http://api.mcstats.org/1.0/All+Servers/graph/Global+Statistics"; final String jsonString = getPage(apiUrl); final JsonObject jsonObject = new JsonParser().parse(jsonString).getAsJsonObject(); final J...
public GlobalStats() throws IOException { final String apiUrl = "http://api.mcstats.org/1.0/All+Servers/graph/Global+Statistics"; final String jsonString = getPage(apiUrl); final JsonObject jsonObject = new JsonParser().parse(jsonString).getAsJsonObject(); final J...
diff --git a/src/dk/dbc/opensearch/components/harvest/FileHarvestLight.java b/src/dk/dbc/opensearch/components/harvest/FileHarvestLight.java index a31c0425..cbd45987 100644 --- a/src/dk/dbc/opensearch/components/harvest/FileHarvestLight.java +++ b/src/dk/dbc/opensearch/components/harvest/FileHarvestLight.java @@ -1,674...
true
true
public CargoContainer getCargoContainer( IIdentifier jobId ) throws HarvesterUnknownIdentifierException, HarvesterIOException { DocumentBuilderFactory docBuilderFact; DocumentBuilder docBuilder = null; Document refDoc = null; CargoContainer returnCargo = new CargoContainer(); ...
public CargoContainer getCargoContainer( IIdentifier jobId ) throws HarvesterUnknownIdentifierException, HarvesterIOException { DocumentBuilderFactory docBuilderFact; DocumentBuilder docBuilder = null; Document refDoc = null; CargoContainer returnCargo = new CargoContainer(); ...
diff --git a/trunk/src/webcamstudio/WebcamStudio.java b/trunk/src/webcamstudio/WebcamStudio.java index 747db24..86b0e8a 100644 --- a/trunk/src/webcamstudio/WebcamStudio.java +++ b/trunk/src/webcamstudio/WebcamStudio.java @@ -1,644 +1,640 @@ /* * To change this template, choose Tools | Templates * and open the temp...
false
true
private void initComponents() { mainSplit = new javax.swing.JSplitPane(); panSources = new javax.swing.JPanel(); toolbar = new javax.swing.JToolBar(); btnAddFile = new javax.swing.JButton(); btnAddDesktop = new javax.swing.JButton(); btnAddText = new javax.swing.JBut...
private void initComponents() { mainSplit = new javax.swing.JSplitPane(); panSources = new javax.swing.JPanel(); toolbar = new javax.swing.JToolBar(); btnAddFile = new javax.swing.JButton(); btnAddDesktop = new javax.swing.JButton(); btnAddText = new javax.swing.JBut...
diff --git a/src/main/java/org/exoplatform/jcr/benchmark/usecases/portal/PageUsecasesTest.java b/src/main/java/org/exoplatform/jcr/benchmark/usecases/portal/PageUsecasesTest.java index 2f032e6..0a27be9 100644 --- a/src/main/java/org/exoplatform/jcr/benchmark/usecases/portal/PageUsecasesTest.java +++ b/src/main/java/org...
false
true
private List<AbstractAction> parse(String line, RepositoryImpl repository, String workspace, String rootNodeName) throws Exception { log.info("Found scenario: '" + line + "'. Parsing..."); List<AbstractAction> actions = new ArrayList<AbstractAction>(); // matching "22*read(2,5,4,6)" ...
private List<AbstractAction> parse(String line, RepositoryImpl repository, String workspace, String rootNodeName) throws Exception { log.info("Found scenario: '" + line + "'. Parsing..."); List<AbstractAction> actions = new ArrayList<AbstractAction>(); // matching "22*read(2,5,4,6)" ...
diff --git a/trunk/kernel-impl/src/main/java/org/sakaiproject/log/impl/Log4jConfigurationManager.java b/trunk/kernel-impl/src/main/java/org/sakaiproject/log/impl/Log4jConfigurationManager.java index e80e67bc..310b5606 100644 --- a/trunk/kernel-impl/src/main/java/org/sakaiproject/log/impl/Log4jConfigurationManager.java ...
true
true
protected boolean doSetLogLevel(String level, String loggerName) { if (level.equals("OFF")) { Logger logger = Logger.getLogger(loggerName); if (logger != null) { logger.setLevel(org.apache.log4j.Level.OFF); M_log.info("OFF logging for: " + loggerName); } else { M_log.warn("no logger ...
protected boolean doSetLogLevel(String level, String loggerName) { if (level.equals("OFF")) { Logger logger = Logger.getLogger(loggerName); if (logger != null) { logger.setLevel(org.apache.log4j.Level.OFF); M_log.info("OFF logging for: " + loggerName); } else { M_log.warn("no logger ...
diff --git a/src/main/java/hex/nn/NN.java b/src/main/java/hex/nn/NN.java index 9673d72ac..bbaf32bd1 100644 --- a/src/main/java/hex/nn/NN.java +++ b/src/main/java/hex/nn/NN.java @@ -1,405 +1,406 @@ package hex.nn; import hex.FrameTask; import hex.FrameTask.DataInfo; import junit.framework.Assert; import org.junit...
false
true
public void test() { Key file = NFSFileVec.make(find_test_file("smalldata/mnist/test.csv.gz")); Frame fr = ParseDataset2.parse(Key.make("iris_nn2"), new Key[]{file}); NN p = new NN(); p.hidden = new int[]{128,128,256}; p.activation = NN.Activation.RectifierWithDropout; p.input_dropout_ratio = ...
public void test() { Key file = NFSFileVec.make(find_test_file("smalldata/mnist/test.csv.gz")); Frame fr = ParseDataset2.parse(Key.make("mnist"), new Key[]{file}); NN p = new NN(); p.hidden = new int[]{128,128,256}; p.activation = NN.Activation.RectifierWithDropout; p.input_dropout_ratio = 0.4...
diff --git a/blueprint-sdk/src/blueprint/sdk/google/gcm/example/GcmSenderExample.java b/blueprint-sdk/src/blueprint/sdk/google/gcm/example/GcmSenderExample.java index 6384b58..69f4a28 100644 --- a/blueprint-sdk/src/blueprint/sdk/google/gcm/example/GcmSenderExample.java +++ b/blueprint-sdk/src/blueprint/sdk/google/gcm/e...
true
true
public static void main(String[] args) throws MalformedURLException, IOException { // set your apiKey String apiKey = "XXX"; // set registration id of android clients String[] regIds = { "XXX", "YYY", "ZZZ" }; HashMap<String, String> map = new HashMap<String, String>(); map.put("test", "Message from GcmSe...
public static void main(String[] args) throws MalformedURLException, IOException { // set your apiKey String apiKey = "XXX"; // set registration id of android clients String[] regIds = { "XXX", "YYY", "ZZZ" }; HashMap<String, String> map = new HashMap<String, String>(); map.put("test", "Message from GcmSe...
diff --git a/ant/org.eclipse.ant.launching/src/org/eclipse/ant/internal/launching/launchConfigurations/AntLaunchDelegate.java b/ant/org.eclipse.ant.launching/src/org/eclipse/ant/internal/launching/launchConfigurations/AntLaunchDelegate.java index 375e1ff96..4ad4532db 100644 --- a/ant/org.eclipse.ant.launching/src/org/e...
true
true
public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (monitor.isCanceled()) { return; } fUserSpecifiedLogger = false; fMode = mode; launchManager = DebugPlugin.getDefault().getLaunchManager(); // migrate the config to...
public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (monitor.isCanceled()) { return; } fUserSpecifiedLogger = false; fMode = mode; launchManager = DebugPlugin.getDefault().getLaunchManager(); // migrate the config to...
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/ISplitPanel.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/ISplitPanel.java index 4c42222c4..fb279b48a 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/ISplitPanel.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/ISplitPanel.java @@ -1,5...
false
true
public void iLayout() { if (!isAttached()) { return; } renderInformationFirst.updateSize(getElement()); int wholeSize; int pixelPosition; if (!(resizing && BrowserInfo.get().isGecko())) { DOM.setStyleAttribute(firstContainer, "overflow", "hi...
public void iLayout() { if (!isAttached()) { return; } renderInformationFirst.updateSize(getElement()); int wholeSize; int pixelPosition; if (!(resizing && BrowserInfo.get().isGecko())) { DOM.setStyleAttribute(firstContainer, "overflow", "hi...
diff --git a/src/com/android/nfc/handover/HandoverTransfer.java b/src/com/android/nfc/handover/HandoverTransfer.java index 8369678..df7addd 100644 --- a/src/com/android/nfc/handover/HandoverTransfer.java +++ b/src/com/android/nfc/handover/HandoverTransfer.java @@ -1,459 +1,463 @@ package com.android.nfc.handover; i...
false
true
void updateNotification() { Builder notBuilder = new Notification.Builder(mContext); String beamString; if (mIncoming) { beamString = mContext.getString(R.string.beam_progress); } else { beamString = mContext.getString(R.string.beam_outgoing); } ...
void updateNotification() { Builder notBuilder = new Notification.Builder(mContext); String beamString; if (mIncoming) { beamString = mContext.getString(R.string.beam_progress); } else { beamString = mContext.getString(R.string.beam_outgoing); } ...
diff --git a/src/test/java/org/elasticsearch/test/integration/search/suggest/SuggestSearchTests.java b/src/test/java/org/elasticsearch/test/integration/search/suggest/SuggestSearchTests.java index 77cbb8f8101..e7088283b32 100644 --- a/src/test/java/org/elasticsearch/test/integration/search/suggest/SuggestSearchTests.ja...
true
true
public void testSizeAndSort() throws Exception { client.admin().indices().prepareDelete().execute().actionGet(); client.admin().indices().prepareCreate("test") .setSettings(settingsBuilder() .put(SETTING_NUMBER_OF_SHARDS, 5) .put(SETTIN...
public void testSizeAndSort() throws Exception { client.admin().indices().prepareDelete().execute().actionGet(); client.admin().indices().prepareCreate("test") .setSettings(settingsBuilder() .put(SETTING_NUMBER_OF_SHARDS, 5) .put(SETTIN...
diff --git a/Functional-Test/src/test/java/HomePageTest.java b/Functional-Test/src/test/java/HomePageTest.java index 80dd763..864bdd7 100644 --- a/Functional-Test/src/test/java/HomePageTest.java +++ b/Functional-Test/src/test/java/HomePageTest.java @@ -1,22 +1,22 @@ import org.junit.After; import org.junit.Before; i...
false
true
public void homePageHasAllElements() { webDriver.get("http://10.10.4.121:8080/Donor-Connect-App/"); assertThat(webDriver.findElement(By.xpath("//h1")).getText(), is("welcome...")); assertThat(webDriver.findElement(By.xpath("//img[@src='image/children.jpg']")).isDisplayed(),is(true)); }
public void homePageHasAllElements() { webDriver.get("http://10.10.4.121:8080/Donor-Connect-App/home"); assertThat(webDriver.findElement(By.xpath("//h1")).getText(), is("welcome...")); assertThat(webDriver.findElement(By.xpath("//img[@src='static/image/children.jpg']")).isDisplayed(),is(true...
diff --git a/src/no/runsafe/framework/event/listener/EventRouter.java b/src/no/runsafe/framework/event/listener/EventRouter.java index 91293575..efc0fa7b 100644 --- a/src/no/runsafe/framework/event/listener/EventRouter.java +++ b/src/no/runsafe/framework/event/listener/EventRouter.java @@ -1,89 +1,89 @@ package no.run...
true
true
private void Invoke(EventType event) { boolean result; try { result = OnEvent(event); } catch (Exception e) { console.outputColoredToConsole( String.format( "Database failure: %s%s%s\n%s", ChatColor.RED, ExceptionUtils.getMessage(e), ChatColor.RESET, ExceptionUtils.getSt...
private void Invoke(EventType event) { boolean result; try { result = OnEvent(event); } catch (Exception e) { console.outputColoredToConsole( String.format( "Exception in event handler: %s%s%s\n%s", ChatColor.RED, ExceptionUtils.getMessage(e), ChatColor.RESET, ExceptionU...
diff --git a/classes/com/sapienter/jbilling/client/user/GetUserTag.java b/classes/com/sapienter/jbilling/client/user/GetUserTag.java index 09090573..73b1e5db 100644 --- a/classes/com/sapienter/jbilling/client/user/GetUserTag.java +++ b/classes/com/sapienter/jbilling/client/user/GetUserTag.java @@ -1,186 +1,187 @@ /* ...
true
true
public int doStartTag() throws JspException { Logger log = Logger.getLogger(GetUserTag.class); HttpSession session = pageContext.getSession(); try { // get the order session bean JNDILookup EJBFactory = JNDILookup.getFactory(false); UserSessionHome or...
public int doStartTag() throws JspException { Logger log = Logger.getLogger(GetUserTag.class); HttpSession session = pageContext.getSession(); try { // get the order session bean JNDILookup EJBFactory = JNDILookup.getFactory(false); UserSessionHome or...
diff --git a/src/org/unrealscriptsupport/lexer/UnrealScriptLanguageHierarchy.java b/src/org/unrealscriptsupport/lexer/UnrealScriptLanguageHierarchy.java index 3d3ef30..e16a943 100644 --- a/src/org/unrealscriptsupport/lexer/UnrealScriptLanguageHierarchy.java +++ b/src/org/unrealscriptsupport/lexer/UnrealScriptLanguageHi...
true
true
private static void init() { tokens = Arrays.<UnrealScriptTokenId>asList(new UnrealScriptTokenId[]{ new UnrealScriptTokenId("EOF", "whitespace", UnrealScriptParserConstants.EOF), new UnrealScriptTokenId("WHITESPACE", "whitespace", UnrealScriptParserConstants.WHITESPACE), ...
private static void init() { tokens = Arrays.<UnrealScriptTokenId>asList(new UnrealScriptTokenId[]{ new UnrealScriptTokenId("EOF", "whitespace", UnrealScriptParserConstants.EOF), new UnrealScriptTokenId("WHITESPACE", "whitespace", UnrealScriptParserConstants.WHITESPACE), ...
diff --git a/xcmis-spi-tck/src/test/java/org/xcmis/spi/tck/RelationshipTest.java b/xcmis-spi-tck/src/test/java/org/xcmis/spi/tck/RelationshipTest.java index 4f8406c0..f7d81fb4 100644 --- a/xcmis-spi-tck/src/test/java/org/xcmis/spi/tck/RelationshipTest.java +++ b/xcmis-spi-tck/src/test/java/org/xcmis/spi/tck/Relationshi...
true
true
public void testGetObjectRelationships_IncludeSubrelationshipTypes() throws Exception { String testname = "testGetObjectRelationships_IncludeSubrelationshipTypes"; System.out.print("Running " + testname + ".... "); if (!IS_RELATIONSHIPS_SUPPORTED) { skip("RelationshipTest....
public void testGetObjectRelationships_IncludeSubrelationshipTypes() throws Exception { String testname = "testGetObjectRelationships_IncludeSubrelationshipTypes"; System.out.print("Running " + testname + ".... "); if (!IS_RELATIONSHIPS_SUPPORTED) { skip("RelationshipTest....
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/OutjarTest.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/OutjarTest.java index 866fa523c..c75f8339a 100644 --- a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/OutjarTest.java +++ b/org....
true
true
public void testOutjarDeletedOnError () { String[] args = new String[] {"-aspectpath", aspectjarName, "-injars", injarName, "-outjar", outjarName}; Message error = new Message(WeaverMessages.format(WeaverMessages.CANT_FIND_TYPE,"jar1.Parent")); MessageSpec spec = new MessageSpec(null,newMessageList(error)); Co...
public void xtestOutjarDeletedOnError () { String[] args = new String[] {"-aspectpath", aspectjarName, "-injars", injarName, "-outjar", outjarName}; Message error = new Message(WeaverMessages.format(WeaverMessages.CANT_FIND_TYPE,"jar1.Parent")); MessageSpec spec = new MessageSpec(null,newMessageList(error)); C...
diff --git a/src/org/broad/igv/sam/AlignmentRenderer.java b/src/org/broad/igv/sam/AlignmentRenderer.java index a1ad19526..fd2addf0c 100644 --- a/src/org/broad/igv/sam/AlignmentRenderer.java +++ b/src/org/broad/igv/sam/AlignmentRenderer.java @@ -1,1171 +1,1172 @@ /* * Copyright (c) 2007-2012 The Broad Institute, Inc....
false
true
private void drawBases(RenderContext context, Rectangle rect, AlignmentBlock block, Color alignmentColor, RenderOptions renderOptions) { ShadeBasesOption shadeBasesOption = renderOptions.shadeBasesO...
private void drawBases(RenderContext context, Rectangle rect, AlignmentBlock block, Color alignmentColor, RenderOptions renderOptions) { ShadeBasesOption shadeBasesOption = renderOptions.shadeBasesO...
diff --git a/src/minecraft/co/uk/flansmods/client/model/RenderMecha.java b/src/minecraft/co/uk/flansmods/client/model/RenderMecha.java index ad217a1f..0ad432bf 100644 --- a/src/minecraft/co/uk/flansmods/client/model/RenderMecha.java +++ b/src/minecraft/co/uk/flansmods/client/model/RenderMecha.java @@ -1,321 +1,329 @@ ...
false
true
public void render(EntityMecha mecha, double d, double d1, double d2, float f, float f1) { bindEntityTexture(mecha); float scale = 1F / 16F; MechaType type = mecha.getMechaType(); GL11.glPushMatrix(); GL11.glTranslatef((float)d, (float)d1, (float)d2); float dYaw = (mecha.a...
public void render(EntityMecha mecha, double d, double d1, double d2, float f, float f1) { bindEntityTexture(mecha); float scale = 1F / 16F; MechaType type = mecha.getMechaType(); GL11.glPushMatrix(); GL11.glTranslatef((float)d, (float)d1, (float)d2); float dYaw = (mecha.a...
diff --git a/electric/electric-core/src/main/java/com/sun/electric/tool/io/input/CIF.java b/electric/electric-core/src/main/java/com/sun/electric/tool/io/input/CIF.java index 5f8695628..01db81084 100644 --- a/electric/electric-core/src/main/java/com/sun/electric/tool/io/input/CIF.java +++ b/electric/electric-core/src/m...
true
true
private int parseStatement() { if (atEndOfFile()) return ENDFILE; skipBlanks(); // flush initial junk int curChar = getNextCharacter(); int command = 0; int xRotate=0, yRotate=0, length=0, width=0, diameter=0, symbolNumber=0, multiplier=0, divisor=0, userCommand=0; Point center = null, namePoint = null...
private int parseStatement() { if (atEndOfFile()) return ENDFILE; skipBlanks(); // flush initial junk int curChar = getNextCharacter(); int command = 0; int xRotate=0, yRotate=0, length=0, width=0, diameter=0, symbolNumber=0, multiplier=0, divisor=0, userCommand=0; Point center = null, namePoint = null...
diff --git a/src/main/java/net/canarymod/commandsys/commands/MobspawnCommand.java b/src/main/java/net/canarymod/commandsys/commands/MobspawnCommand.java index a79c20e..806389a 100644 --- a/src/main/java/net/canarymod/commandsys/commands/MobspawnCommand.java +++ b/src/main/java/net/canarymod/commandsys/commands/Mobspawn...
false
true
private void player(Player player, String[] args) { if (args.length == 2) { LineTracer tracer = new LineTracer(player); Block b = tracer.getTargetBlock(); // Spawn a mob with Rider if (b != null) { b.setY(b.getY() + 1); try { ...
private void player(Player player, String[] args) { if (args.length == 2) { LineTracer tracer = new LineTracer(player); Block b = tracer.getTargetBlock(); // Spawn a mob with Rider if (b != null) { b.setY(b.getY() + 1); try { ...
diff --git a/svnkit/src/test/java/org/tmatesoft/svn/test/SvnLookTest.java b/svnkit/src/test/java/org/tmatesoft/svn/test/SvnLookTest.java index 0e8e33702..5d60ab63e 100644 --- a/svnkit/src/test/java/org/tmatesoft/svn/test/SvnLookTest.java +++ b/svnkit/src/test/java/org/tmatesoft/svn/test/SvnLookTest.java @@ -1,60 +1,58 ...
false
true
public void testNoChangedDirectoriesAtZeroRevision() throws Exception { final TestOptions options = TestOptions.getInstance(); final SvnOperationFactory svnOperationFactory = new SvnOperationFactory(); final Sandbox sandbox = Sandbox.createWithCleanup(getTestName() + ".test", options); ...
public void testNoChangedDirectoriesAtZeroRevision() throws Exception { final TestOptions options = TestOptions.getInstance(); final SvnOperationFactory svnOperationFactory = new SvnOperationFactory(); final Sandbox sandbox = Sandbox.createWithCleanup(getTestName() + ".test", options); ...
diff --git a/WFPMapping/device/survey/src/com/gallatinsystems/survey/device/service/DataSyncService.java b/WFPMapping/device/survey/src/com/gallatinsystems/survey/device/service/DataSyncService.java index bedbeb6df..790d805a9 100644 --- a/WFPMapping/device/survey/src/com/gallatinsystems/survey/device/service/DataSyncSe...
true
true
private void processSurveyData(StringBuilder buf, ArrayList<String> imagePaths, HashSet<String> respondentIds) { Cursor data = null; try { data = databaseAdaptor.fetchUnsentData(); if (data != null && data.isFirst()) { Log.i(TAG, "There is data to send. Forming contents"); String deviceIdentifier ...
private void processSurveyData(StringBuilder buf, ArrayList<String> imagePaths, HashSet<String> respondentIds) { Cursor data = null; try { data = databaseAdaptor.fetchUnsentData(); if (data != null && data.isFirst()) { Log.i(TAG, "There is data to send. Forming contents"); String deviceIdentifier ...
diff --git a/table-browser-impl/src/main/java/org/cytoscape/browser/internal/BrowserTableCellRenderer.java b/table-browser-impl/src/main/java/org/cytoscape/browser/internal/BrowserTableCellRenderer.java index bae9e3a43..54e42e534 100644 --- a/table-browser-impl/src/main/java/org/cytoscape/browser/internal/BrowserTableC...
true
true
public Component getTableCellRendererComponent(final JTable table, final Object value, final boolean isSelected, final boolean hasFocus, final int row, final int column) { setHorizontalAlignment(JLabel.LEFT); final ValidatedObjectAndEditString objectAndEditString =...
public Component getTableCellRendererComponent(final JTable table, final Object value, final boolean isSelected, final boolean hasFocus, final int row, final int column) { setHorizontalAlignment(JLabel.LEFT); final ValidatedObjectAndEditString objectAndEditString =...
diff --git a/EMRUtil.java b/EMRUtil.java index 8b73fba..1b6900c 100755 --- a/EMRUtil.java +++ b/EMRUtil.java @@ -1,74 +1,74 @@ import java.io.*; import java.util.*; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.text.ParsePosition; import java.util.regex.Pattern; public class EMRUt...
false
true
public static boolean dateIsValid(String s) { if (s == null) return false; try { SimpleDateFormat sdf = new SimpleDateFormat("d-M-yyyy", Locale.ENGLISH); sdf.setLenient(false); sdf.parse(s); return true; } catch (Exception e) { return false; } }
public static boolean dateIsValid(String s) { if (s == null) return false; if (!s.matches("\\d{1,2}-\\d{1,2}-\\d{4}")) return false; try { SimpleDateFormat sdf = new SimpleDateFormat("d-M-y", Locale.ENGLISH); sdf.setLenient(false); sdf.parse(s); return true; } catch (Exception e) { return false;...
diff --git a/common/src/org/riotfamily/common/web/util/PathCompleter.java b/common/src/org/riotfamily/common/web/util/PathCompleter.java index c37e2cfac..dca13028d 100644 --- a/common/src/org/riotfamily/common/web/util/PathCompleter.java +++ b/common/src/org/riotfamily/common/web/util/PathCompleter.java @@ -1,139 +1,13...
true
true
public void afterPropertiesSet() throws Exception { if (servletMapping == null) { Assert.notNull(servletName, "Either servletMapping or " + "servletName must be set."); servletMapping = ServletUtils.getServletMapping(servletName, servletContext); Assert.notNull(servletMapping, "Could not determi...
public void afterPropertiesSet() throws Exception { if (servletMapping == null) { Assert.notNull(servletName, "Either servletMapping or " + "servletName must be set."); servletMapping = ServletUtils.getServletMapping(servletName, servletContext); Assert.notNull(servletMapping, "Could not determi...
diff --git a/src/gutenberg/collect/Upload.java b/src/gutenberg/collect/Upload.java index d0f61c3..f5acf7f 100644 --- a/src/gutenberg/collect/Upload.java +++ b/src/gutenberg/collect/Upload.java @@ -1,174 +1,174 @@ package gutenberg.collect; import java.io.IOException; import java.nio.file.FileSystems; import java....
false
true
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { MessageDigest md = null; try { md = MessageDigest.getInstance("SHA-1"); } catch (NoSuchAlgorithmException e) { throw new ServletException(e....
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { MessageDigest md = null; try { md = MessageDigest.getInstance("SHA-1"); } catch (NoSuchAlgorithmException e) { throw new ServletException(e....
diff --git a/src/main/java/br/fgv/controller/ConsultaResultadosController.java b/src/main/java/br/fgv/controller/ConsultaResultadosController.java index 1c5c8fb..5ba9952 100644 --- a/src/main/java/br/fgv/controller/ConsultaResultadosController.java +++ b/src/main/java/br/fgv/controller/ConsultaResultadosController.java...
true
true
public Download resultadosCSV(List<String> anosEscolhidos, String filtroCargo, String nivelAgregacaoRegional, String nivelAgregacaoPolitica, List<String> camposEscolhidos, List<String> camposFixos, String nivelFiltroRegional, List<String> filtroRegional, List<String> filtroPartido, List<String> filtroCandi...
public Download resultadosCSV(List<String> anosEscolhidos, String filtroCargo, String nivelAgregacaoRegional, String nivelAgregacaoPolitica, List<String> camposEscolhidos, List<String> camposFixos, String nivelFiltroRegional, List<String> filtroRegional, List<String> filtroPartido, List<String> filtroCandi...
diff --git a/src/org/red5/server/service/ServiceInvoker.java b/src/org/red5/server/service/ServiceInvoker.java index d435c3e3..39b80b8f 100644 --- a/src/org/red5/server/service/ServiceInvoker.java +++ b/src/org/red5/server/service/ServiceInvoker.java @@ -1,208 +1,210 @@ package org.red5.server.service; /* * RED5 ...
true
true
public void invoke(Call call, ApplicationContext serviceContext) { String serviceName = call.getServiceName(); String methodName = call.getServiceMethodName(); log.debug("Service name " + serviceName); log.debug("Service method " + methodName); Object service = null; if(serviceContext.containsBean...
public void invoke(Call call, ApplicationContext serviceContext) { String serviceName = call.getServiceName(); String methodName = call.getServiceMethodName(); log.debug("Service name " + serviceName); log.debug("Service method " + methodName); Object service = null; if(serviceContext.containsBean...
diff --git a/src/main/java/org/warcbase/ingest/IngestFiles.java b/src/main/java/org/warcbase/ingest/IngestFiles.java index 986b2dc..37d092f 100644 --- a/src/main/java/org/warcbase/ingest/IngestFiles.java +++ b/src/main/java/org/warcbase/ingest/IngestFiles.java @@ -1,246 +1,250 @@ package org.warcbase.ingest; import...
true
true
private void ingestWarcFile(File inputWarcFile) throws IOException { WarcReader warcReader = null; org.jwat.warc.WarcRecord warcRecord = null; String uri = null; String date = null; String type = null; byte[] content = null; String key = null; UriProfile uriProfile = UriProfile.RF...
private void ingestWarcFile(File inputWarcFile) throws IOException { WarcReader warcReader = null; org.jwat.warc.WarcRecord warcRecord = null; String uri = null; String date = null; String type = null; byte[] content = null; String key = null; UriProfile uriProfile = UriProfile.RF...
diff --git a/GShelf/Gshelf/src/com/derpicons/gshelf/Network.java b/GShelf/Gshelf/src/com/derpicons/gshelf/Network.java index bbd4f94..b430649 100644 --- a/GShelf/Gshelf/src/com/derpicons/gshelf/Network.java +++ b/GShelf/Gshelf/src/com/derpicons/gshelf/Network.java @@ -1,1465 +1,1465 @@ package com.derpicons.gshelf; ...
true
true
protected ArrayList<Game> doInBackground(String... params) { // if(params[0].equalsIgnoreCase("getGames")) // ctrl = 4; ctrl = Integer.parseInt(params[0]); Log.i("CONTROL LINE", "" + ctrl); if (ctrl == 1) { String result = null; InputStream input = null; ArrayList<NameValuePair> paramList = new...
protected ArrayList<Game> doInBackground(String... params) { // if(params[0].equalsIgnoreCase("getGames")) // ctrl = 4; ctrl = Integer.parseInt(params[0]); Log.i("CONTROL LINE", "" + ctrl); if (ctrl == 1) { String result = null; InputStream input = null; ArrayList<NameValuePair> paramList = new...
diff --git a/asakusa-dmdl-java/src/main/java/com/asakusafw/dmdl/java/emitter/CompositeDataModelDriver.java b/asakusa-dmdl-java/src/main/java/com/asakusafw/dmdl/java/emitter/CompositeDataModelDriver.java index 45a62c720..6c8c57f98 100644 --- a/asakusa-dmdl-java/src/main/java/com/asakusafw/dmdl/java/emitter/CompositeData...
true
true
private List<JavaDataModelDriver> loadSpi(ClassLoader serviceClassLoader) { assert serviceClassLoader != null; List<JavaDataModelDriver> results = new ArrayList<JavaDataModelDriver>(); ServiceLoader<JavaDataModelDriver> loader = ServiceLoader.load(JavaDataModelDriver.class, servi...
private List<JavaDataModelDriver> loadSpi(ClassLoader serviceClassLoader) { assert serviceClassLoader != null; List<JavaDataModelDriver> results = new ArrayList<JavaDataModelDriver>(); ServiceLoader<JavaDataModelDriver> loader = ServiceLoader.load(JavaDataModelDriver.class, servi...
diff --git a/GameServer/src/com/whiuk/philip/mmorpg/server/chat/ChatServiceImpl.java b/GameServer/src/com/whiuk/philip/mmorpg/server/chat/ChatServiceImpl.java index f98bf19..3b84b49 100644 --- a/GameServer/src/com/whiuk/philip/mmorpg/server/chat/ChatServiceImpl.java +++ b/GameServer/src/com/whiuk/philip/mmorpg/server/c...
false
true
public final void processMessage( final Account account, final ChatData chatData) { logger.info("Processing chat message"); if (chatData.getPrivate()) { if (chatData.hasTarget()) { handlePrivateMessage(account, chatData.getMessage(), chatDa...
public final void processMessage( final Account account, final ChatData chatData) { logger.trace("Processing chat message"); if (chatData.getPrivate()) { if (chatData.hasTarget()) { handlePrivateMessage(account, chatData.getMessage(), chatD...
diff --git a/javasrc/src/org/ccnx/ccn/test/repo/RepoIOTest.java b/javasrc/src/org/ccnx/ccn/test/repo/RepoIOTest.java index 8b383a174..9e3b1ccf4 100644 --- a/javasrc/src/org/ccnx/ccn/test/repo/RepoIOTest.java +++ b/javasrc/src/org/ccnx/ccn/test/repo/RepoIOTest.java @@ -1,240 +1,239 @@ /* * A CCNx library test. * ...
false
true
public static void setUpBeforeClass() throws Exception { //Library.setLevel(Level.FINEST); _testPrefix += "-" + rand.nextInt(10000); _testPrefixObj += "-" + rand.nextInt(10000); RepoTestBase.setUpBeforeClass(); byte value = 1; for (int i = 0; i < data.length; i++) data[i] = value++; RepositoryOutputSt...
public static void setUpBeforeClass() throws Exception { //Library.setLevel(Level.FINEST); _testPrefix += "-" + rand.nextInt(10000); _testPrefixObj += "-" + rand.nextInt(10000); RepoTestBase.setUpBeforeClass(); byte value = 1; for (int i = 0; i < data.length; i++) data[i] = value++; RepositoryOutputSt...
diff --git a/src/com/heneryh/aquanotes/io/ApexExecutor.java b/src/com/heneryh/aquanotes/io/ApexExecutor.java index d7d9400..e8f7545 100644 --- a/src/com/heneryh/aquanotes/io/ApexExecutor.java +++ b/src/com/heneryh/aquanotes/io/ApexExecutor.java @@ -1,234 +1,235 @@ /* * Copyright 2011 Google Inc. * * Licensed und...
false
true
public void executeGet(Uri ctrlUri, DefaultHandler xmlParser) throws HandlerException { controllerUri = ctrlUri; Cursor cursor = null; String username = null; String password = null; String apexBaseURL = null; String apexWANURL = null; String apexWiFiURL = null; String apexWiFiSID = null; Str...
public void executeGet(Uri ctrlUri, DefaultHandler xmlParser) throws HandlerException { controllerUri = ctrlUri; Cursor cursor = null; String username = null; String password = null; String apexBaseURL = null; String apexWANURL = null; String apexWiFiURL = null; String apexWiFiSID = null; Str...
diff --git a/vlc-android/src/org/videolan/vlc/gui/CommonDialogs.java b/vlc-android/src/org/videolan/vlc/gui/CommonDialogs.java index 4ab42ae9..eed298c8 100644 --- a/vlc-android/src/org/videolan/vlc/gui/CommonDialogs.java +++ b/vlc-android/src/org/videolan/vlc/gui/CommonDialogs.java @@ -1,178 +1,178 @@ /***************...
true
true
public static void advancedOptions(final Context context, View v, MenuType t) { int style = Util.getResourceFromAttribute(context, R.attr.advanced_options_style); final Dialog dialog = new Dialog(context, style); dialog.setContentView(R.layout.advanced_options); dialog.setCanceledO...
public static void advancedOptions(final Context context, View v, MenuType t) { int style = Util.getResourceFromAttribute(context, R.attr.advanced_options_style); final Dialog dialog = new Dialog(context, style); dialog.setContentView(R.layout.advanced_options); dialog.setCanceledO...
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/factory/GTFSPatternHopFactory.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/factory/GTFSPatternHopFactory.java index 67ef2b623..5985355ee 100644 --- a/opentripplanner-routing/src/main/java/org/ope...
true
true
public void run(Graph graph) { clearCachedData(); /* * For each trip, create either pattern edges, the entries in a trip pattern's list of * departures, or simple hops */ // Load hops Collection<Trip> trips = _dao.getAllTrips(); HashMap<StopPatt...
public void run(Graph graph) { clearCachedData(); /* * For each trip, create either pattern edges, the entries in a trip pattern's list of * departures, or simple hops */ // Load hops Collection<Trip> trips = _dao.getAllTrips(); HashMap<StopPatt...
diff --git a/src/dht/DHTNode.java b/src/dht/DHTNode.java index 02cde65..5fad59d 100644 --- a/src/dht/DHTNode.java +++ b/src/dht/DHTNode.java @@ -1,116 +1,116 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package dht; import java.io.BufferedReader; import...
false
true
public void run() { try { while (true) { BufferedReader inFromClient = new BufferedReader(new InputStreamReader(socket.getInputStream())); DataOutputStream outToClient = new DataOutputStream(socket.getOutputStream()); String clientMessage = inFromC...
public void run() { try { BufferedReader inFromClient = new BufferedReader(new InputStreamReader(socket.getInputStream())); DataOutputStream outToClient = new DataOutputStream(socket.getOutputStream()); while (true) { String clientMessage = inFromClient.re...
diff --git a/StateTesting/src/com/teamawesome/testing/PausedState.java b/StateTesting/src/com/teamawesome/testing/PausedState.java index 56d09fe..5c81720 100644 --- a/StateTesting/src/com/teamawesome/testing/PausedState.java +++ b/StateTesting/src/com/teamawesome/testing/PausedState.java @@ -1,114 +1,114 @@ package ...
true
true
public void setEnabled(boolean enabled) { super.setEnabled(enabled); if(enabled){ System.out.println("PausedState enabled"); guiNode.detachAllChildren(); Picture pic = new Picture("HUD Picture"); pic.setImage(assetManager, "Interface/backg...
public void setEnabled(boolean enabled) { super.setEnabled(enabled); if(enabled){ System.out.println("PausedState enabled"); guiNode.detachAllChildren(); Picture pic = new Picture("HUD Picture"); pic.setImage(assetManager, "Interface/backg...
diff --git a/src/edu/stuy/commands/AutonSetting2.java b/src/edu/stuy/commands/AutonSetting2.java index fb2a37a..2c61908 100644 --- a/src/edu/stuy/commands/AutonSetting2.java +++ b/src/edu/stuy/commands/AutonSetting2.java @@ -1,33 +1,33 @@ /* * To change this template, choose Tools | Templates * and open the templa...
true
true
public AutonSetting2() { // TODO: Get tusks running concurrently with backing up, have them retract after backuptobridge is done addSequential(new TusksExtend()); addSequential(new AutonBackUpToBridge(Autonomous.INCHES_TO_BRIDGE)); addSequential(new AutonDriveToFender(Autonomous.IN...
public AutonSetting2() { // TODO: Get tusks running concurrently with backing up, have them retract after backuptobridge is done addSequential(new TusksExtend()); addSequential(new AutonBackUpToBridge(Autonomous.INCHES_TO_BRIDGE - Autonomous.INCHES_TO_FENDER)); addSequential(new Au...
diff --git a/crypto/src/org/bouncycastle/util/BigIntegers.java b/crypto/src/org/bouncycastle/util/BigIntegers.java index 50906174..1007ecb7 100644 --- a/crypto/src/org/bouncycastle/util/BigIntegers.java +++ b/crypto/src/org/bouncycastle/util/BigIntegers.java @@ -1,123 +1,123 @@ package org.bouncycastle.util; import...
true
true
public static byte[] asUnsignedByteArray( int length, BigInteger value) { byte[] bytes = value.toByteArray(); if (bytes[0] == 0) { if (bytes.length - 1 > length) { throw new IllegalArgumentException("standard length exceeded...
public static byte[] asUnsignedByteArray( int length, BigInteger value) { byte[] bytes = value.toByteArray(); if (bytes[0] == 0) { if (bytes.length - 1 > length) { throw new IllegalArgumentException("standard length exceeded...
diff --git a/src/main/java/com/github/lankylord/SimpleHomes/commands/DeleteHomeCommand.java b/src/main/java/com/github/lankylord/SimpleHomes/commands/DeleteHomeCommand.java index e44f3d4..b6c134c 100644 --- a/src/main/java/com/github/lankylord/SimpleHomes/commands/DeleteHomeCommand.java +++ b/src/main/java/com/github/l...
true
true
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if (sender instanceof Player && sender.hasPermission("simplehomes.home")) { Player player = (Player) sender; String homeName = "default"; if (args.length == 1 && sender.hasPermissi...
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { if (sender instanceof Player && sender.hasPermission("simplehomes.homes")) { Player player = (Player) sender; String homeName = "default"; if (args.length == 1 && sender.hasPermiss...
diff --git a/src/minecraft/ml/boxes/client/render/item/BoxItemRenderer.java b/src/minecraft/ml/boxes/client/render/item/BoxItemRenderer.java index 1a536de..77b9eec 100644 --- a/src/minecraft/ml/boxes/client/render/item/BoxItemRenderer.java +++ b/src/minecraft/ml/boxes/client/render/item/BoxItemRenderer.java @@ -1,199 +...
true
true
public void renderItem(ItemRenderType type, ItemStack item, Object... data) { switch (type){ case ENTITY: GL11.glPushMatrix(); GL11.glTranslatef(-0.5F, -0.5F, -0.5F); BoxTESR.instance.setBoxFlaps(5, 2, 0, 0); break; case EQUIPPED_FIRST_PERSON: EntityLiving holder = (EntityLiving)data[1]; Minec...
public void renderItem(ItemRenderType type, ItemStack item, Object... data) { switch (type){ case ENTITY: GL11.glPushMatrix(); GL11.glTranslatef(-0.5F, -0.5F, -0.5F); BoxTESR.instance.setBoxFlaps(5, 2, 0, 0); break; case EQUIPPED_FIRST_PERSON: EntityLiving holder = (EntityLiving)data[1]; Minec...
diff --git a/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/Axis2HttpRequest.java b/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/Axis2HttpRequest.java index 6d82dd76e..8c3497fb7 100644 --- a/java/modules/transports/core/nhttp/src/main/java/org/...
true
true
public HttpRequest getRequest() throws IOException { String httpMethod = (String) msgContext.getProperty(Constants.Configuration.HTTP_METHOD); if (httpMethod == null) { httpMethod = "POST"; } endpointURLPrefix = (String) msgContext.getProperty(NhttpConstants.ENDPOINT_PRE...
public HttpRequest getRequest() throws IOException { String httpMethod = (String) msgContext.getProperty(Constants.Configuration.HTTP_METHOD); if (httpMethod == null) { httpMethod = "POST"; } endpointURLPrefix = (String) msgContext.getProperty(NhttpConstants.ENDPOINT_PRE...
diff --git a/patientview-parent/radar/src/main/java/org/patientview/radar/web/panels/PatientDetailPanel.java b/patientview-parent/radar/src/main/java/org/patientview/radar/web/panels/PatientDetailPanel.java index e3554cb3..ad4ba8d9 100644 --- a/patientview-parent/radar/src/main/java/org/patientview/radar/web/panels/Pat...
true
true
public PatientDetailPanel(String id, final Patient patient, String title) { super(id); WebMarkupContainer details = new WebMarkupContainer("details", new CompoundPropertyModel<Object>(patient)); details.setOutputMarkupId(true); details.setOutputMarkupPlaceholderTag(true); ad...
public PatientDetailPanel(String id, final Patient patient, String title) { super(id); WebMarkupContainer details = new WebMarkupContainer("details", new CompoundPropertyModel<Object>(patient)); details.setOutputMarkupId(true); details.setOutputMarkupPlaceholderTag(true); ad...
diff --git a/modello-plugins/modello-plugin-stax/src/test/java/org/codehaus/modello/generator/xml/stax/AbstractStaxGeneratorTestCase.java b/modello-plugins/modello-plugin-stax/src/test/java/org/codehaus/modello/generator/xml/stax/AbstractStaxGeneratorTestCase.java index 9025fd61..8c928d00 100644 --- a/modello-plugins/m...
true
true
protected void verifyModel( Model model, String className, String[] versions ) throws IOException, ModelloException, CompilerException { File generatedSources = new File( getTestPath( "target/" + getName() + "/sources" ) ); File classes = new File( getTestPath( "target/" + getName() + "...
protected void verifyModel( Model model, String className, String[] versions ) throws IOException, ModelloException, CompilerException { File generatedSources = new File( getTestPath( "target/" + getName() + "/sources" ) ); File classes = new File( getTestPath( "target/" + getName() + "...
diff --git a/table/src/main/uk/ac/starlink/table/Tables.java b/table/src/main/uk/ac/starlink/table/Tables.java index f46ed8ee2..71d8a72f1 100644 --- a/table/src/main/uk/ac/starlink/table/Tables.java +++ b/table/src/main/uk/ac/starlink/table/Tables.java @@ -1,234 +1,238 @@ package uk.ac.starlink.table; import java.i...
true
true
public static void checkTable( StarTable table ) throws IOException { int formatChars = 100; int ncol = table.getColumnCount(); long nrow = table.getRowCount(); boolean isRandom = table.isRandom(); /* Check a random-access table knows how many rows it has. */ if ( is...
public static void checkTable( StarTable table ) throws IOException { int formatChars = 100; int ncol = table.getColumnCount(); long nrow = table.getRowCount(); boolean isRandom = table.isRandom(); /* Check a random-access table knows how many rows it has. */ if ( is...
diff --git a/src/java/net/sf/jabref/export/LatexFieldFormatter.java b/src/java/net/sf/jabref/export/LatexFieldFormatter.java index 67c763ead..3a47ca019 100644 --- a/src/java/net/sf/jabref/export/LatexFieldFormatter.java +++ b/src/java/net/sf/jabref/export/LatexFieldFormatter.java @@ -1,268 +1,267 @@ /* Copyright (C) ...
true
true
public String format(String text, String fieldName) throws IllegalArgumentException { if (Globals.prefs.putBracesAroundCapitals(fieldName) && !Globals.BIBTEX_STRING.equals(fieldName)) { text = Util.putBracesAroundCapitals(text); } // If the field is non-standard, we...
public String format(String text, String fieldName) throws IllegalArgumentException { if (Globals.prefs.putBracesAroundCapitals(fieldName) && !Globals.BIBTEX_STRING.equals(fieldName)) { text = Util.putBracesAroundCapitals(text); } // If the field is non-standard, we...
diff --git a/standalone/src/main/java/org/jboss/as/console/client/shared/subsys/messaging/TopicList.java b/standalone/src/main/java/org/jboss/as/console/client/shared/subsys/messaging/TopicList.java index 7aa44b65..f5a81a6f 100644 --- a/standalone/src/main/java/org/jboss/as/console/client/shared/subsys/messaging/TopicL...
true
true
Widget asWidget() { VerticalPanel layout = new VerticalPanel(); ToolStrip toolStrip = new ToolStrip(); toolStrip.getElement().setAttribute("style", "margin-bottom:10px;"); edit = new ToolButton("Edit", new ClickHandler() { @Override public void onClick(Click...
Widget asWidget() { VerticalPanel layout = new VerticalPanel(); ToolStrip toolStrip = new ToolStrip(); toolStrip.getElement().setAttribute("style", "margin-bottom:10px;"); edit = new ToolButton("Edit", new ClickHandler() { @Override public void onClick(Click...
diff --git a/org.oobium.eclipse.esp/src/org/oobium/eclipse/esp/outline/EspContentProvider.java b/org.oobium.eclipse.esp/src/org/oobium/eclipse/esp/outline/EspContentProvider.java index 1bfe255c..d20cb9d8 100644 --- a/org.oobium.eclipse.esp/src/org/oobium/eclipse/esp/outline/EspContentProvider.java +++ b/org.oobium.ecli...
true
true
public Object[] getElements(Object element) { if(element instanceof IDocument) { List<Object> elements = new ArrayList<Object>(); imports = null; EspDom dom = EspCore.get(document); for(int i = 0; i < dom.size(); i++) { EspElement e = dom.get(i); if(e.isA(ImportElement)) { if(imports == null...
public Object[] getElements(Object element) { if(element instanceof IDocument) { List<Object> elements = new ArrayList<Object>(); imports = null; EspDom dom = EspCore.get(document); for(int i = 0; i < dom.size(); i++) { EspElement e = dom.get(i); if(e.isA(ImportElement)) { if(imports == null...
diff --git a/src/web/org/openmrs/web/controller/user/UserListController.java b/src/web/org/openmrs/web/controller/user/UserListController.java index 0c1529da..4c77ee60 100644 --- a/src/web/org/openmrs/web/controller/user/UserListController.java +++ b/src/web/org/openmrs/web/controller/user/UserListController.java @@ -1...
true
true
protected Object formBackingObject(HttpServletRequest request) throws ServletException { //default empty Object List<User> userList = new Vector<User>(); //only fill the Object is the user has authenticated properly if (Context.isAuthenticated()) { UserService us = Context.getUserService(); userLis...
protected Object formBackingObject(HttpServletRequest request) throws ServletException { //default empty Object List<User> userList = new Vector<User>(); //only fill the Object is the user has authenticated properly if (Context.isAuthenticated()) { //UserService us = Context.getUserService(); //use...
diff --git a/src/java/com/mosedb/dao/MovieFormatDao.java b/src/java/com/mosedb/dao/MovieFormatDao.java index 45b0db4..f8a0289 100644 --- a/src/java/com/mosedb/dao/MovieFormatDao.java +++ b/src/java/com/mosedb/dao/MovieFormatDao.java @@ -1,98 +1,98 @@ /* * To change this template, choose Tools | Templates * and ope...
true
true
public List<Format> getFormats(int movieid) throws SQLException { String sql = "select f.mediaformat, f.filetype, f.resox, f.resoy " + "from mosedb.movieformat mf, mosedb.format f " + "where mf.movieid=? and f.formatid=mf.formatid"; ResultSet result = executeQuery(sql...
public List<Format> getFormats(int movieid) throws SQLException { String sql = "select f.mediaformat, f.filetype, f.resox, f.resoy " + "from mosedb.movieformat mf, mosedb.format f " + "where mf.movieid=? and f.formatid=mf.formatid"; ResultSet result = executeQuery(sql...
diff --git a/android/src/com/google/zxing/client/android/ResultHandler.java b/android/src/com/google/zxing/client/android/ResultHandler.java index 2489ceb9..0f20b2df 100755 --- a/android/src/com/google/zxing/client/android/ResultHandler.java +++ b/android/src/com/google/zxing/client/android/ResultHandler.java @@ -1,128...
false
true
public void handleMessage(Message message) { if (message.what == R.string.button_yes) { Intent intent = null; ParsedReaderResultType type = result.getType(); if (type == ParsedReaderResultType.ADDRESSBOOK) { AddressBookDoCoMoResult addressResult = (AddressBookDoCoMoResult) result; ...
public void handleMessage(Message message) { if (message.what == R.string.button_yes) { Intent intent = null; ParsedReaderResultType type = result.getType(); if (type.equals(ParsedReaderResultType.ADDRESSBOOK)) { AddressBookDoCoMoResult addressResult = (AddressBookDoCoMoResult) result; ...
diff --git a/src/org/spiffyui/client/rest/RESTility.java b/src/org/spiffyui/client/rest/RESTility.java index 39a55c8d..178986af 100644 --- a/src/org/spiffyui/client/rest/RESTility.java +++ b/src/org/spiffyui/client/rest/RESTility.java @@ -1,941 +1,941 @@ /* * Copyright (c) 2010 Unpublished Work of Novell, Inc. All R...
true
true
public void onResponseReceived(Request request, Response response) { if (response.getStatusCode() == 0) { /* This means we couldn't contact the server. It might be that the server is down or that we have a network timeout */...
public void onResponseReceived(Request request, Response response) { if (response.getStatusCode() == 0) { /* This means we couldn't contact the server. It might be that the server is down or that we have a network timeout */...
diff --git a/src/com/dmdirc/parser/ProcessNick.java b/src/com/dmdirc/parser/ProcessNick.java index ae21a78cf..d42bcca7d 100644 --- a/src/com/dmdirc/parser/ProcessNick.java +++ b/src/com/dmdirc/parser/ProcessNick.java @@ -1,132 +1,133 @@ /* * Copyright (c) 2006-2008 Chris Smith, Shane Mc Cormack, Gregory Holmes * ...
true
true
public void process(String sParam, String[] token) { ClientInfo iClient; ChannelClientInfo iChannelClient; String oldNickname; iClient = getClientInfo(token[0]); if (iClient != null) { oldNickname = myParser.toLowerCase(iClient.getNickname()); // Remove the client from the known clients list fina...
public void process(String sParam, String[] token) { ClientInfo iClient; ChannelClientInfo iChannelClient; String oldNickname; iClient = getClientInfo(token[0]); if (iClient != null) { oldNickname = myParser.toLowerCase(iClient.getNickname()); // Remove the client from the known clients list fina...
diff --git a/core/src/org/bitducks/spoofing/services/ArpScanService.java b/core/src/org/bitducks/spoofing/services/ArpScanService.java index f252140..da23042 100644 --- a/core/src/org/bitducks/spoofing/services/ArpScanService.java +++ b/core/src/org/bitducks/spoofing/services/ArpScanService.java @@ -1,68 +1,68 @@ pack...
true
true
public void runNetworkScan() { this.logger.info("Arp network scan started"); Server server = Server.getInstance(); NetworkInterface device = server.getInfo().getDevice(); PacketGenerator generator = new PacketGenerator(device); InetAddress start = IpUtil.network( device ); InetAddress end = IpU...
public void runNetworkScan() { this.logger.info("Arp network scan started"); Server server = Server.getInstance(); NetworkInterface device = server.getInfo().getDevice(); PacketGenerator generator = new PacketGenerator(device); InetAddress start = IpUtil.network( device ); InetAddress end = IpU...
diff --git a/src/main/java/org/subethamail/smtp/command/AuthCommand.java b/src/main/java/org/subethamail/smtp/command/AuthCommand.java index a191e4e..c278ee4 100644 --- a/src/main/java/org/subethamail/smtp/command/AuthCommand.java +++ b/src/main/java/org/subethamail/smtp/command/AuthCommand.java @@ -1,113 +1,113 @@ pa...
true
true
public void execute(String commandString, Session sess) throws IOException { if (sess.isAuthenticated()) { sess.sendResponse("503 Refusing any other AUTH command."); return; } AuthenticationHandlerFactory authFactory = sess.getServer().getAuthenticationHandlerFactory(); if (authFactory == null) ...
public void execute(String commandString, Session sess) throws IOException { if (sess.isAuthenticated()) { sess.sendResponse("503 Refusing any other AUTH command."); return; } AuthenticationHandlerFactory authFactory = sess.getServer().getAuthenticationHandlerFactory(); if (authFactory == null) ...
diff --git a/src/com/sk/util/parse/search/GoogleSearcher.java b/src/com/sk/util/parse/search/GoogleSearcher.java index 48792a5..128d5df 100644 --- a/src/com/sk/util/parse/search/GoogleSearcher.java +++ b/src/com/sk/util/parse/search/GoogleSearcher.java @@ -1,67 +1,67 @@ package com.sk.util.parse.search; import java...
true
true
public boolean parse() throws IllegalStateException { Document doc = this.doc.get(); if (doc == null) throw new IllegalStateException(); Set<String> found = new LinkedHashSet<>(); for (Element e : doc.select("li.g div.rc div.f.kv cite")) { String cur = e.text(); Matcher m = accept.matcher(cur); if ...
public boolean parse() throws IllegalStateException { Document doc = this.doc.get(); if (doc == null) throw new IllegalStateException(); Set<String> found = new LinkedHashSet<>(); for (Element e : doc.select("li.g div.rc div.f.kv cite")) { String cur = e.text(); Matcher m = accept.matcher(cur); if ...
diff --git a/src/org/biojava/bio/program/abi/ABIFParser.java b/src/org/biojava/bio/program/abi/ABIFParser.java index c0b53f194..ec762a2c0 100644 --- a/src/org/biojava/bio/program/abi/ABIFParser.java +++ b/src/org/biojava/bio/program/abi/ABIFParser.java @@ -1,393 +1,393 @@ /* * BioJava development ...
false
true
public String toString() { StringBuffer sb = new StringBuffer(super.toString()).append("[\n"); sb.append(" tagName = ").append(tagName).append('\n'); sb.append(" tagNumber = ").append(tagNumber).append('\n'); sb.append(" dataType = "); ...
public String toString() { StringBuffer sb = new StringBuffer(super.toString()).append("[\n"); sb.append(" tagName = ").append(tagName).append('\n'); sb.append(" tagNumber = ").append(tagNumber).append('\n'); sb.append(" dataType = "); ...
diff --git a/src/main/java/com/philihp/weblabora/action/MakeMove.java b/src/main/java/com/philihp/weblabora/action/MakeMove.java index 9ddc95d..07cd081 100644 --- a/src/main/java/com/philihp/weblabora/action/MakeMove.java +++ b/src/main/java/com/philihp/weblabora/action/MakeMove.java @@ -1,112 +1,114 @@ package com.ph...
true
true
public ActionForward execute(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response, User user) throws Exception { MoveForm form = (MoveForm) actionForm; EntityManager em = EntityManagerManager.get(); String submit = request.getParameter("submit"); if(submit ...
public ActionForward execute(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response, User user) throws Exception { MoveForm form = (MoveForm) actionForm; EntityManager em = EntityManagerManager.get(); String submit = request.getParameter("submit"); if(submit ...
diff --git a/src/test/java/com/mashape/client/test/http/HttpClientTest.java b/src/test/java/com/mashape/client/test/http/HttpClientTest.java index db8bd79..354abed 100644 --- a/src/test/java/com/mashape/client/test/http/HttpClientTest.java +++ b/src/test/java/com/mashape/client/test/http/HttpClientTest.java @@ -1,56 +1...
false
true
public void testDoRequest() throws MashapeClientException, JSONException, InterruptedException { try { HttpClient.doRequest(HttpMethod.DELETE, "http://www.ciao.com", null, null, null, true); fail(); } catch (MashapeClientException e) { // OK } try { HttpClient.doRequest(HttpMethod.GET, "http://w...
public void testDoRequest() throws MashapeClientException, JSONException, InterruptedException { try { HttpClient.doRequest(HttpMethod.DELETE, "http://www.ciao.com", null, true, null); fail(); } catch (MashapeClientException e) { // OK } try { HttpClient.doRequest(HttpMethod.GET, "http://www.goo...
diff --git a/src/main/java/de/cismet/cids/custom/objectrenderer/wunda_blau/VermessungRissAggregationRenderer.java b/src/main/java/de/cismet/cids/custom/objectrenderer/wunda_blau/VermessungRissAggregationRenderer.java index 44999081..4c55ac74 100644 --- a/src/main/java/de/cismet/cids/custom/objectrenderer/wunda_blau/Ver...
false
true
private void downloadProducts(final Collection<CidsBean> selectedVermessungsrisse, final String type, final String host) { final Runnable runnable = new Runnable() { @Override public void run() { EventQueue.invokeLater(new Runnable...
private void downloadProducts(final Collection<CidsBean> selectedVermessungsrisse, final String type, final String host) { final Runnable runnable = new Runnable() { @Override public void run() { EventQueue.invokeLater(new Runnable...
diff --git a/src/main/java/Sirius/navigator/ui/MutableToolBar.java b/src/main/java/Sirius/navigator/ui/MutableToolBar.java index 9ed43c5..8fcc63a 100644 --- a/src/main/java/Sirius/navigator/ui/MutableToolBar.java +++ b/src/main/java/Sirius/navigator/ui/MutableToolBar.java @@ -1,408 +1,407 @@ /*************************...
true
true
private void createDefaultButtons() { if (logger.isDebugEnabled()) { logger.debug("creating default buttons"); // NOI18N } final ActionListener toolBarListener = new ToolBarListener(); JButton button = null; button = new JButton(resources.getIcon("find24.gif"));...
private void createDefaultButtons() { if (logger.isDebugEnabled()) { logger.debug("creating default buttons"); // NOI18N } final ActionListener toolBarListener = new ToolBarListener(); JButton button = null; button = new JButton(resources.getIcon("find24.gif"));...
diff --git a/src/main/java/de/cismet/cids/custom/objecteditors/utils/VermessungRissUtils.java b/src/main/java/de/cismet/cids/custom/objecteditors/utils/VermessungRissUtils.java index 92d30fcc..e6912684 100644 --- a/src/main/java/de/cismet/cids/custom/objecteditors/utils/VermessungRissUtils.java +++ b/src/main/java/de/c...
true
true
public static void setFluerstueckKickerInVermessung(final CidsBean vermessung) throws ConnectionException, Exception { final Object tmp = vermessung.getProperty("tmp_lp_orig"); if (tmp instanceof CidsBean) { // For each object find the corresponding kicker String gem...
public static void setFluerstueckKickerInVermessung(final CidsBean vermessung) throws ConnectionException, Exception { final Object tmp = vermessung.getProperty("tmp_lp_orig"); if (tmp instanceof CidsBean) { // For each object find the corresponding kicker String gem...
diff --git a/src/mapred/org/apache/hadoop/mapred/DefaultTaskController.java b/src/mapred/org/apache/hadoop/mapred/DefaultTaskController.java index 042da418c..5a0c31a57 100644 --- a/src/mapred/org/apache/hadoop/mapred/DefaultTaskController.java +++ b/src/mapred/org/apache/hadoop/mapred/DefaultTaskController.java @@ -1,2...
false
true
public int launchTask(String user, String jobId, String attemptId, List<String> setup, List<String> jvmArguments, File currentWorkDirectory, ...
public int launchTask(String user, String jobId, String attemptId, List<String> setup, List<String> jvmArguments, File currentWorkDirectory, ...
diff --git a/tests/java5/ataspectj/ataspectj/ltwreweavable/MainReweavableLogging.java b/tests/java5/ataspectj/ataspectj/ltwreweavable/MainReweavableLogging.java index caa4a9ac7..3bb30da74 100644 --- a/tests/java5/ataspectj/ataspectj/ltwreweavable/MainReweavableLogging.java +++ b/tests/java5/ataspectj/ataspectj/ltwrewea...
true
true
public static void main (String[] args) { String ERROR_STRING = "error aspect 'ataspectj.ltwreweavable.AspectReweavableLogging' woven into 'ataspectj.ltwreweavable.MainReweavableLogging' must be declared in an aop.xml file."; if(Boolean.getBoolean("aspectDeclared")){ //if the aspect is d...
public static void main (String[] args) { String ERROR_STRING = "error aspect 'ataspectj.ltwreweavable.AspectReweavableLogging' woven into 'ataspectj.ltwreweavable.MainReweavableLogging' must be defined to the weaver (placed on the aspectpath, or defined in an aop.xml file if using LTW)."; if(Boolea...
diff --git a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/BpmnActivityBehavior.java b/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/BpmnActivityBehavior.java index 3d9d156d..81f4a111 100644 --- a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/BpmnActivit...
false
true
protected void performOutgoingBehavior(ActivityExecution execution, boolean checkConditions) { if (log.isLoggable(Level.FINE)) { log.fine("Leaving activity '" + execution.getActivity().getId() + "'"); } List<PvmTransition> transitionsToTake = new ArrayList<PvmTransition>(); List...
protected void performOutgoingBehavior(ActivityExecution execution, boolean checkConditions) { if (log.isLoggable(Level.FINE)) { log.fine("Leaving activity '" + execution.getActivity().getId() + "'"); } List<PvmTransition> transitionsToTake = new ArrayList<PvmTransition>(); List...
diff --git a/src/com/android/settings/DeviceInfoSettings.java b/src/com/android/settings/DeviceInfoSettings.java index 82b7f2879..a769c3847 100644 --- a/src/com/android/settings/DeviceInfoSettings.java +++ b/src/com/android/settings/DeviceInfoSettings.java @@ -1,172 +1,172 @@ /* * Copyright (C) 2008 The Android Open...
true
true
private String getFormattedKernelVersion() { String procVersionStr; try { BufferedReader reader = new BufferedReader(new FileReader("/proc/version"), 256); try { procVersionStr = reader.readLine(); } finally { reader.close(); ...
private String getFormattedKernelVersion() { String procVersionStr; try { BufferedReader reader = new BufferedReader(new FileReader("/proc/version"), 256); try { procVersionStr = reader.readLine(); } finally { reader.close(); ...
diff --git a/src/de/ueller/gps/nmea/NmeaMessage.java b/src/de/ueller/gps/nmea/NmeaMessage.java index 3bf24b7..14c027a 100644 --- a/src/de/ueller/gps/nmea/NmeaMessage.java +++ b/src/de/ueller/gps/nmea/NmeaMessage.java @@ -1,272 +1,272 @@ package de.ueller.gps.nmea; /* * GpsMid - Copyright (c) 2007 Harald Mueller jam...
true
true
public void decodeMessage(String nmea_sentence) { Vector param = StringTokenizer.getVector(nmea_sentence, spChar); String sentence=(String)param.elementAt(0); try { // receiver.receiveMessage("got "+buffer.toString() ); if (lastMsgGSV && ! "GSV".equals(sentence)){ receiver.receiveState...
public void decodeMessage(String nmea_sentence) { Vector param = StringTokenizer.getVector(nmea_sentence, spChar); String sentence=(String)param.elementAt(0); try { // receiver.receiveMessage("got "+buffer.toString() ); if (lastMsgGSV && ! "GSV".equals(sentence)){ receiver.receiveState...
diff --git a/src/test/java/com/crozin/wykop/sdk/util/TestRange.java b/src/test/java/com/crozin/wykop/sdk/util/TestRange.java index d4ee4d0..803bfb3 100644 --- a/src/test/java/com/crozin/wykop/sdk/util/TestRange.java +++ b/src/test/java/com/crozin/wykop/sdk/util/TestRange.java @@ -1,52 +1,52 @@ package com.crozin.wykop...
true
true
public static Collection<Object[]> data() throws ParseException { SimpleDateFormat sdf = new SimpleDateFormat("YYYY-MM-DD"); Object[][] dates = new Object[][] { { null, sdf.parse("2011-12-12"), false }, { sdf.parse("2012-12-12"), sdf.parse("2011-12-12"), false }, { sdf.parse("2012-12-12"), sdf.parse...
public static Collection<Object[]> data() throws ParseException { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Object[][] dates = new Object[][] { { null, sdf.parse("2011-12-12"), false }, { sdf.parse("2012-12-12"), sdf.parse("2011-12-12"), false }, { sdf.parse("2012-12-12"), sdf.parse...
diff --git a/src/org/openstreetmap/osmosis/core/apidb/v0_6/impl/ChangeReader.java b/src/org/openstreetmap/osmosis/core/apidb/v0_6/impl/ChangeReader.java index 1b8b7dba..1fe6fd62 100644 --- a/src/org/openstreetmap/osmosis/core/apidb/v0_6/impl/ChangeReader.java +++ b/src/org/openstreetmap/osmosis/core/apidb/v0_6/impl/Cha...
true
true
public ChangeContainer next() { EntityHistory<T> entityHistory; T entity; EntityContainer entityContainer; boolean createdPreviously; // Get the entity from the underlying source. entityHistory = source.next(); entity = entityHistory.getEntity(); // Wrap the entity in a container. entityContain...
public ChangeContainer next() { EntityHistory<T> entityHistory; T entity; EntityContainer entityContainer; boolean createdPreviously; // Get the entity from the underlying source. entityHistory = source.next(); entity = entityHistory.getEntity(); // Wrap the entity in a container. entityContain...
diff --git a/org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/MarkerTest.java b/org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/MarkerTest.java index 37d0e1d5..f64fa54a 100644 --- a/org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/MarkerTest.java +++ b/org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/MarkerTest.java @@ -1...
false
true
public void test() throws Exception { // Import a project with bad pom.xml IProject project = createExisting("markerTest", "projects/markers/testWorkflow"); waitForJobsToComplete(); assertNotNull("Expected not null project", project); IMavenProjectFacade facade = MavenPlugin.getDefault().getMavenP...
public void test() throws Exception { // Import a project with bad pom.xml IProject project = createExisting("markerTest", "projects/markers/testWorkflow"); waitForJobsToComplete(); assertNotNull("Expected not null project", project); IMavenProjectFacade facade = MavenPlugin.getDefault().getMavenP...
diff --git a/loci/apps/slim/SlimPlotter.java b/loci/apps/slim/SlimPlotter.java index 0c29d86..2e2d0d2 100644 --- a/loci/apps/slim/SlimPlotter.java +++ b/loci/apps/slim/SlimPlotter.java @@ -1,1997 +1,1998 @@ // // SlimPlotter.java // /* Coded in 2006-@year@ by Curtis Rueden, with suggestions from Long Yan, Steve...
true
true
public SlimPlotter(String[] args) throws Exception { console = new OutputConsole("Log"); System.setErr(new ConsoleStream(new PrintStream(console))); console.getTextArea().setColumns(54); console.getTextArea().setRows(10); // progress estimate: // * Reading data - 70% // * Creating types -...
public SlimPlotter(String[] args) throws Exception { console = new OutputConsole("Log"); System.setErr(new ConsoleStream(new PrintStream(console))); console.getTextArea().setColumns(54); console.getTextArea().setRows(10); // progress estimate: // * Reading data - 70% // * Creating types -...
diff --git a/demo/codeplanes/SimulationDrawerTest.java b/demo/codeplanes/SimulationDrawerTest.java index c24b3f9..ffb3b1d 100644 --- a/demo/codeplanes/SimulationDrawerTest.java +++ b/demo/codeplanes/SimulationDrawerTest.java @@ -1,44 +1,44 @@ package codeplanes; import javax.swing.*; import java.util.ArrayList; i...
true
true
public static void main(final String[] args) { final SimulationDrawerTest battleDrawerTest = new SimulationDrawerTest(); final List<Strategy> strategies = new ArrayList<>(); strategies.add( new TestStrategy() ); strategies.add( new TestStrategy() ); final Simulation battle ...
public static void main(final String[] args) { final SimulationDrawerTest battleDrawerTest = new SimulationDrawerTest(); final List<Strategy> strategies = new ArrayList<>(); strategies.add( new TestStrategy() ); strategies.add( new TestStrategy() ); final Simulation battle ...