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/powercrystals/minefactoryreloaded/gui/GuiFactoryPowered.java b/src/powercrystals/minefactoryreloaded/gui/GuiFactoryPowered.java index 5877dd41..0b96d8e6 100644 --- a/src/powercrystals/minefactoryreloaded/gui/GuiFactoryPowered.java +++ b/src/powercrystals/minefactoryreloaded/gui/GuiFactoryPowered.java @...
false
true
private void drawTank(int liquidId, int liquidMeta, int level) { int liquidTexture = 0; if (liquidId <= 0) { return; } if (liquidId < Block.blocksList.length && Block.blocksList[liquidId] != null) { ForgeHooksClient.bindTexture(Block.blocksList[liquidId].getTextureFile(), 0); liquidTexture = Blo...
private void drawTank(int liquidId, int liquidMeta, int level) { int liquidTexture = 0; int gaugeTexture = mc.renderEngine.getTexture(MineFactoryReloadedCore.guiFolder + "noinvtank.png"); if (liquidId <= 0) { return; } if (liquidId < Block.blocksList.length && Block.blocksList[liquidId] != null) { ...
diff --git a/sub/source/net/sourceforge/texlipse/builder/LatexRunner.java b/sub/source/net/sourceforge/texlipse/builder/LatexRunner.java index 9ec3f09..75f3ff8 100644 --- a/sub/source/net/sourceforge/texlipse/builder/LatexRunner.java +++ b/sub/source/net/sourceforge/texlipse/builder/LatexRunner.java @@ -1,348 +1,364 @@...
false
true
protected boolean parseErrors(IResource resource, String output) { TexlipseProperties.setSessionProperty(resource.getProject(), TexlipseProperties.SESSION_LATEX_RERUN, null); TexlipseProperties.setSessionProperty(resource.getProject(), TexlipseProperties.SESSION_BIBTEX_RERUN, null); ...
protected boolean parseErrors(IResource resource, String output) { TexlipseProperties.setSessionProperty(resource.getProject(), TexlipseProperties.SESSION_LATEX_RERUN, null); TexlipseProperties.setSessionProperty(resource.getProject(), TexlipseProperties.SESSION_BIBTEX_RERUN, null); ...
diff --git a/gnu/testlet/java/text/RuleBasedCollator/jdk11.java b/gnu/testlet/java/text/RuleBasedCollator/jdk11.java index c3692364..c7d5bab6 100644 --- a/gnu/testlet/java/text/RuleBasedCollator/jdk11.java +++ b/gnu/testlet/java/text/RuleBasedCollator/jdk11.java @@ -1,539 +1,539 @@ /***********************************...
false
true
private void expansionTests() { checkStrengths(); harness.checkPoint("expansion ordering"); final String OLD_ENGLISH_RULES = ("<a,A<b,B<c,C<d,D<e,E<f,F" + " &AE,'\u00e6' &AE,'\u00c6'"); final String[][][] TESTS = { { // PRIMARY {"ae", "\u00e6", "="}, {"AE", "\u00e6", "="}, {"ae"...
private void expansionTests() { checkStrengths(); harness.checkPoint("expansion ordering"); final String OLD_ENGLISH_RULES = ("<a,A<b,B<c,C<d,D<e,E<f,F" + " &AE,'\u00e6' &AE,'\u00c6'"); final String[][][] TESTS = { { // PRIMARY {"ae", "\u00e6", "="}, {"AE", "\u00e6", "="}, {"ae"...
diff --git a/src/gwt/src/org/rstudio/studio/client/workbench/ui/FontSizeManager.java b/src/gwt/src/org/rstudio/studio/client/workbench/ui/FontSizeManager.java index 312b729cbc..6394a92e61 100644 --- a/src/gwt/src/org/rstudio/studio/client/workbench/ui/FontSizeManager.java +++ b/src/gwt/src/org/rstudio/studio/client/wor...
false
true
public FontSizeManager(Session session, EventBus events, Commands commands) { session_ = session; events_ = events; commands_ = commands; commands.fontSize10().addHandler(createHandler(FontSizer.Size.Pt10)); commands.fontSize12().ad...
public FontSizeManager(Session session, EventBus events, Commands commands) { session_ = session; events_ = events; commands_ = commands; commands.fontSize10().addHandler(createHandler(FontSizer.Size.Pt10)); commands.fontSize12().ad...
diff --git a/src/main/java/com/testdroid/api/APIDeviceQueryBuilder.java b/src/main/java/com/testdroid/api/APIDeviceQueryBuilder.java index 83cfb97..9368057 100644 --- a/src/main/java/com/testdroid/api/APIDeviceQueryBuilder.java +++ b/src/main/java/com/testdroid/api/APIDeviceQueryBuilder.java @@ -1,65 +1,65 @@ package ...
false
true
protected String build(String uri) { String superResult = super.build(uri); String thisResult = superResult + (superResult.contains("?") ? "&" : "?"); if(labelIds != null && labelIds.length > 0) { thisResult += "label_id=" + StringUtils.join(labelIds, "&label_id=") + "&"; ...
protected String build(String uri) { String superResult = super.build(uri); String thisResult = superResult + (superResult.contains("?") ? "&" : "?"); if(labelIds != null && labelIds.length > 0) { thisResult += "label_id[]=" + StringUtils.join(labelIds, "&label_id=") + "&"; ...
diff --git a/common/logisticspipes/routing/PathFinder.java b/common/logisticspipes/routing/PathFinder.java index bc73af0c..e8ebd089 100644 --- a/common/logisticspipes/routing/PathFinder.java +++ b/common/logisticspipes/routing/PathFinder.java @@ -1,205 +1,205 @@ /** * Copyright (c) Krapht, 2011 * * "LogisticsP...
true
true
private HashMap<RoutedPipe, ExitRoute> getConnectedRoutingPipes(TileGenericPipe startPipe, EnumSet<PipeRoutingConnectionType> connectionFlags) { HashMap<RoutedPipe, ExitRoute> foundPipes = new HashMap<RoutedPipe, ExitRoute>(); //Reset visited count at top level if (setVisited.size() == 1) { pipesVisited = ...
private HashMap<RoutedPipe, ExitRoute> getConnectedRoutingPipes(TileGenericPipe startPipe, EnumSet<PipeRoutingConnectionType> connectionFlags) { HashMap<RoutedPipe, ExitRoute> foundPipes = new HashMap<RoutedPipe, ExitRoute>(); //Reset visited count at top level if (setVisited.size() == 1) { pipesVisited = ...
diff --git a/Adventron.java b/Adventron.java index 0ac069b..7385c8f 100644 --- a/Adventron.java +++ b/Adventron.java @@ -1,260 +1,260 @@ /* * Adventron - Stan Schwertly * Port of an old game I made. Learning git too! * * Adventron.java * * http://www.schwertly.com for my blog * http://github.com/Stant...
true
true
public void run() { Thread.currentThread().setPriority(Thread.MIN_PRIORITY); while (true) { // update the player if (!player.move()) { player.setMap(map.get(player.getRoom())); Bullet.setMap(map.get(player.getRoom())); bullets.clear(); monsters.clear(); for (int i=0; i<map.get(p...
public void run() { Thread.currentThread().setPriority(Thread.MIN_PRIORITY); while (true) { // update the player if (!player.move()) { player.setMap(map.get(player.getRoom())); Bullet.setMap(map.get(player.getRoom())); bullets.clear(); monsters.clear(); for (int i=0; i<map.get(p...
diff --git a/src/com/matburt/mobileorg/Gui/Agenda/OrgQueryBuilder.java b/src/com/matburt/mobileorg/Gui/Agenda/OrgQueryBuilder.java index 63b21ec..2464870 100644 --- a/src/com/matburt/mobileorg/Gui/Agenda/OrgQueryBuilder.java +++ b/src/com/matburt/mobileorg/Gui/Agenda/OrgQueryBuilder.java @@ -1,134 +1,134 @@ package co...
true
true
public SelectionBuilder getQuery(Context context) { final SelectionBuilder builder = new SelectionBuilder(); builder.table(Tables.ORGDATA); getFileSelection(builder, context); if (activeTodos) builder.where(getSelection(OrgProviderUtils.getActiveTodos(context .getContentResolver()), OrgData.TODO));...
public SelectionBuilder getQuery(Context context) { final SelectionBuilder builder = new SelectionBuilder(); builder.table(Tables.ORGDATA); getFileSelection(builder, context); if (activeTodos) builder.where(getSelection(OrgProviderUtils.getActiveTodos(context .getContentResolver()), OrgData.TODO));...
diff --git a/org.eclipse.mylyn.monitor.tests/src/org/eclipse/mylyn/monitor/tests/MonitorTest.java b/org.eclipse.mylyn.monitor.tests/src/org/eclipse/mylyn/monitor/tests/MonitorTest.java index 84ca5879..03ab8332 100644 --- a/org.eclipse.mylyn.monitor.tests/src/org/eclipse/mylyn/monitor/tests/MonitorTest.java +++ b/org.ec...
true
true
public void testLogging() throws InterruptedException { MylarMonitorPlugin.getDefault().startMonitoring(); logger.stopObserving(); MylarMonitorPlugin.getDefault().getMonitorLogFile().delete(); logger.startObserving(); generateSelection(); commandMonitor...
public void testLogging() throws InterruptedException { MylarMonitorPlugin.getDefault().startMonitoring(); logger.stopObserving(); MylarMonitorPlugin.getDefault().getMonitorLogFile().delete(); logger.startObserving(); generateSelection(); commandMonitor...
diff --git a/src/org/compiere/model/MInOut.java b/src/org/compiere/model/MInOut.java index d98105e..f34e579 100644 --- a/src/org/compiere/model/MInOut.java +++ b/src/org/compiere/model/MInOut.java @@ -1,2305 +1,2307 @@ /****************************************************************************** * Product: Adempie...
true
true
public String completeIt() { // Re-Check if (!m_justPrepared) { String status = prepareIt(); if (!DocAction.STATUS_InProgress.equals(status)) return status; } m_processMsg = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_COMPLETE); if (m_processMsg != null) re...
public String completeIt() { // Re-Check if (!m_justPrepared) { String status = prepareIt(); if (!DocAction.STATUS_InProgress.equals(status)) return status; } m_processMsg = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_COMPLETE); if (m_processMsg != null) re...
diff --git a/Model/src/java/fr/cg95/cvq/util/admin/AddressBeanCreator.java b/Model/src/java/fr/cg95/cvq/util/admin/AddressBeanCreator.java index dd3a8b714..9773fccbe 100644 --- a/Model/src/java/fr/cg95/cvq/util/admin/AddressBeanCreator.java +++ b/Model/src/java/fr/cg95/cvq/util/admin/AddressBeanCreator.java @@ -1,138 +...
false
true
private Address parseAddress(String source) { System.out.println("\t\tParsing string : " + source); source = source.replaceAll(forbiddenCharacters, " ").trim(); System.out.println("\t\tSanitized string : " + source); String tempStreetNumber = null; Matcher streetNumberMatcher...
private Address parseAddress(String source) { System.out.println("\t\tParsing string : " + source); source = source.replaceAll(forbiddenCharacters, " ").trim(); System.out.println("\t\tSanitized string : " + source); String tempStreetNumber = null; Matcher streetNumberMatcher...
diff --git a/SimpleAndroidApp/src/org/ivan/simple/game/monster/MonsterFactory.java b/SimpleAndroidApp/src/org/ivan/simple/game/monster/MonsterFactory.java index 71bc0b5..af0ac34 100644 --- a/SimpleAndroidApp/src/org/ivan/simple/game/monster/MonsterFactory.java +++ b/SimpleAndroidApp/src/org/ivan/simple/game/monster/Mon...
true
true
public static Monster createMonster(MonsterModel model, int gridStep) { if(model == null) return new Monster(null, null, gridStep); Sprite monsterSprite; switch(model.getMonsterId()) { case 0: monsterSprite = new Sprite("monster/dishes.png", 1, 16); break; case 1: monsterSprite = new Sp...
public static Monster createMonster(MonsterModel model, int gridStep) { if(model == null) return new Monster(null, null, gridStep); Sprite monsterSprite; switch(model.getMonsterId()) { case 0: monsterSprite = new Sprite("monster/dishes.png", 1, 16); break; case 1: monsterSprite = new Sp...
diff --git a/src/org/jacorb/idl/lexer.java b/src/org/jacorb/idl/lexer.java index 61bf76ba0..5fed8a57f 100644 --- a/src/org/jacorb/idl/lexer.java +++ b/src/org/jacorb/idl/lexer.java @@ -1,1847 +1,1847 @@ /* * JacORB - a free Java ORB * * Copyright (C) 1997-2002 Gerald Brose. * * This library is fr...
false
true
protected static token real_next_token() throws java.io.IOException { int sym_num; if( !tokenStack.empty()) return (token)tokenStack.pop(); for (;;) { if( !in_string ) { swallow_whitespace(); /* look f...
protected static token real_next_token() throws java.io.IOException { int sym_num; if( !tokenStack.empty()) return (token)tokenStack.pop(); for (;;) { if( !in_string ) { swallow_whitespace(); /* look f...
diff --git a/src/klim/orthodox_calendar/Day.java b/src/klim/orthodox_calendar/Day.java index 508bfdf..2d9bc71 100755 --- a/src/klim/orthodox_calendar/Day.java +++ b/src/klim/orthodox_calendar/Day.java @@ -1,257 +1,257 @@ package klim.orthodox_calendar; import java.io.BufferedReader; import java.io.IOException; im...
true
true
public String parseDay(Date day) { String ret=new String(); setCalendarDay(day); try { this.setCalendarDay(day); String toOpen="http://calendar.rop.ru/mes1/" + c.format(getCalendarDay().getTime()).toLowerCase() + ".html"; URL url = new URL(toOpen); HttpURLConnection connection = (HttpURLCon...
public String parseDay(Date day) { String ret=new String(); setCalendarDay(day); try { this.setCalendarDay(day); String toOpen="http://calendar.rop.ru/mes1/" + c.format(getCalendarDay().getTime()).toLowerCase() + ".html"; URL url = new URL(toOpen); HttpURLConnection connection = (HttpURLCon...
diff --git a/rdt/org.eclipse.ptp.rdt.sync.core/src/org/eclipse/ptp/rdt/sync/core/remotemake/SyncCommandLauncher.java b/rdt/org.eclipse.ptp.rdt.sync.core/src/org/eclipse/ptp/rdt/sync/core/remotemake/SyncCommandLauncher.java index 4cf3acb2c..5e42a96d3 100644 --- a/rdt/org.eclipse.ptp.rdt.sync.core/src/org/eclipse/ptp/rdt...
true
true
public Process execute(IPath commandPath, String[] args, String[] env, IPath changeToDirectory, final IProgressMonitor monitor) throws CoreException { isCleanBuild = isCleanBuild(args); IndexBuildSequenceController projectStatus = IndexBuildSequenceController.getIndexBuildSequenceController(getProject()); if...
public Process execute(IPath commandPath, String[] args, String[] env, IPath changeToDirectory, final IProgressMonitor monitor) throws CoreException { isCleanBuild = isCleanBuild(args); IndexBuildSequenceController projectStatus = IndexBuildSequenceController.getIndexBuildSequenceController(getProject()); if...
diff --git a/community/web2/core/src/test/java/org/geoserver/web/wicket/EnvelopePanelTest.java b/community/web2/core/src/test/java/org/geoserver/web/wicket/EnvelopePanelTest.java index 0fbae959a..ad60f93b5 100644 --- a/community/web2/core/src/test/java/org/geoserver/web/wicket/EnvelopePanelTest.java +++ b/community/web...
false
true
public void test() throws Exception { tester.assertComponent( "form", Form.class ); FormTester ft = tester.newFormTester( "form"); assertEquals( "-180", ft.getTextComponentValue( "content:minX") ); assertEquals( "-90", ft.getTextComponentValue( "content:minY") ); ass...
public void test() throws Exception { tester.assertComponent( "form", Form.class ); FormTester ft = tester.newFormTester( "form"); assertEquals( "-180", ft.getTextComponentValue( "panel:minX") ); assertEquals( "-90", ft.getTextComponentValue( "panel:minY") ); assertE...
diff --git a/plugins/org.eclipse.birt.report.engine.emitter.wpml/src/org/eclipse/birt/report/engine/emitter/wpml/WordUtil.java b/plugins/org.eclipse.birt.report.engine.emitter.wpml/src/org/eclipse/birt/report/engine/emitter/wpml/WordUtil.java index ed05063c4..65cb1aaca 100644 --- a/plugins/org.eclipse.birt.report.engin...
false
true
public static String parseColor( String color ) { if ( "transparent".equalsIgnoreCase( color ) || color == null ) { return null; } else if ( color.equalsIgnoreCase( "Black" ) ) return "000000"; else if ( color.equalsIgnoreCase( "Gray" ) ) return "121212"; else if ( color.equalsIgnoreCase( "White"...
public static String parseColor( String color ) { if ( "transparent".equalsIgnoreCase( color ) || color == null || color.length( ) == 0 ) { return null; } if ( color.startsWith( "#" ) ) { return color.substring( 1, Math.min( color.length( ), 7 ) ); } else if ( color.equalsIgnoreCase( "Black" )...
diff --git a/src/main/java/org/apache/commons/jexl/util/ListGetExecutor.java b/src/main/java/org/apache/commons/jexl/util/ListGetExecutor.java index 55827e28..23856901 100644 --- a/src/main/java/org/apache/commons/jexl/util/ListGetExecutor.java +++ b/src/main/java/org/apache/commons/jexl/util/ListGetExecutor.java @@ -1...
false
true
public Object tryExecute(final Object list, Object index) { if (method == discover(list.getClass()) && objectClass.equals(list.getClass()) && index instanceof Integer) { if (method == ARRAY_GET) { return java.lang.reflect.Array.get(list, property.intValue(...
public Object tryExecute(final Object list, Object index) { if (method == discover(list.getClass()) && objectClass.equals(list.getClass()) && index instanceof Integer) { if (method == ARRAY_GET) { return java.lang.reflect.Array.get(list, (Integer) index); ...
diff --git a/src/edu/brown/cs32/MFTG/gui/EndGamePanel.java b/src/edu/brown/cs32/MFTG/gui/EndGamePanel.java index e97ad6d..6a2fe68 100644 --- a/src/edu/brown/cs32/MFTG/gui/EndGamePanel.java +++ b/src/edu/brown/cs32/MFTG/gui/EndGamePanel.java @@ -1,209 +1,209 @@ package edu.brown.cs32.MFTG.gui; import java.awt.Color;...
true
true
public EndGamePanel(MonopolyGui main, Board board) { try { _board=board; _main=main; java.awt.Dimension size = new java.awt.Dimension(Constants.FULL_WIDTH,Constants.FULL_PANEL_HEIGHT); this.setPreferredSize(size); this.setSize(size); this.setBackground(Color.GRAY); this.setLayout(null); _winn...
public EndGamePanel(MonopolyGui main, Board board) { try { _board=board; _main=main; java.awt.Dimension size = new java.awt.Dimension(Constants.FULL_WIDTH,Constants.FULL_PANEL_HEIGHT); this.setPreferredSize(size); this.setSize(size); this.setBackground(Color.GRAY); this.setLayout(null); _winn...
diff --git a/src/main/java/be/Balor/Manager/Commands/Player/Experience.java b/src/main/java/be/Balor/Manager/Commands/Player/Experience.java index 090d754f..cbaed874 100644 --- a/src/main/java/be/Balor/Manager/Commands/Player/Experience.java +++ b/src/main/java/be/Balor/Manager/Commands/Player/Experience.java @@ -1,190...
false
true
public void execute(final CommandSender sender, final CommandArgs args) throws ActionNotPermitedException, PlayerNotFound { float amount = 0; Player target = null; final HashMap<String, String> replace = new HashMap<String, String>(); boolean self = false; if (0 < args.length && args.length < 2) { if (...
public void execute(final CommandSender sender, final CommandArgs args) throws ActionNotPermitedException, PlayerNotFound { float amount = 0; Player target = null; final HashMap<String, String> replace = new HashMap<String, String>(); boolean self = false; if (args.hasFlag('p')) { target = Utils.getPl...
diff --git a/server/standalone/src/main/java/de/matrixweb/smaller/internal/Main.java b/server/standalone/src/main/java/de/matrixweb/smaller/internal/Main.java index 7839e7e..0e50548 100644 --- a/server/standalone/src/main/java/de/matrixweb/smaller/internal/Main.java +++ b/server/standalone/src/main/java/de/matrixweb/sm...
true
true
private static File copyFile(final JarFile jar, final JarEntry entry, final File temp) throws IOException { final File file = new File(temp, entry.getName()); InputStream is = null; try { is = jar.getInputStream(entry); FileOutputStream os = null; try { os = new FileOutputS...
private static File copyFile(final JarFile jar, final JarEntry entry, final File temp) throws IOException { final File file = new File(temp, entry.getName()); InputStream is = null; try { is = jar.getInputStream(entry); FileOutputStream os = null; try { file.getParentFile()...
diff --git a/tool/sakai-sdata-impl/src/main/java/org/sakaiproject/sdata/services/site/SiteBean.java b/tool/sakai-sdata-impl/src/main/java/org/sakaiproject/sdata/services/site/SiteBean.java index 0b25154..34c9382 100644 --- a/tool/sakai-sdata-impl/src/main/java/org/sakaiproject/sdata/services/site/SiteBean.java +++ b/to...
true
true
public SiteBean(SessionManager sessionManager, SiteService siteService, AuthzGroupService authzGroupService, String siteId) { boolean siteExists = true; String status = "900"; ArrayList<HashMap<String, Object>> arlpages = new ArrayList<HashMap<String, Object>>(); String curUser = sessionManager.getCurrent...
public SiteBean(SessionManager sessionManager, SiteService siteService, AuthzGroupService authzGroupService, String siteId) { boolean siteExists = true; String status = "900"; ArrayList<HashMap<String, Object>> arlpages = new ArrayList<HashMap<String, Object>>(); String curUser = sessionManager.getCurrent...
diff --git a/src/org/opensolaris/opengrok/history/ClearCaseRepository.java b/src/org/opensolaris/opengrok/history/ClearCaseRepository.java index ab47605..fadf356 100644 --- a/src/org/opensolaris/opengrok/history/ClearCaseRepository.java +++ b/src/org/opensolaris/opengrok/history/ClearCaseRepository.java @@ -1,328 +1,33...
true
true
public InputStream getHistoryGet(String parent, String basename, String rev) { InputStream ret = null; String directoryName = getDirectoryName(); File directory = new File(directoryName); String filename = (new File(parent, basename)).getAbsolutePath().substring(directoryName.lengt...
public InputStream getHistoryGet(String parent, String basename, String rev) { InputStream ret = null; String directoryName = getDirectoryName(); File directory = new File(directoryName); String filename = (new File(parent, basename)).getAbsolutePath().substring(directoryName.lengt...
diff --git a/com/mraof/minestuck/client/model/ModelGristWidget.java b/com/mraof/minestuck/client/model/ModelGristWidget.java index d990cd91..d09cf45e 100644 --- a/com/mraof/minestuck/client/model/ModelGristWidget.java +++ b/com/mraof/minestuck/client/model/ModelGristWidget.java @@ -1,36 +1,36 @@ package com.mraof.mine...
true
true
public ModelGristWidget() { textureWidth = 128; textureHeight = 128; Base = new ModelRenderer(this, 0, 0); Base.addBox(0F, -1F, 8F, 32, 8, 16); Base.setRotationPoint(0F, -8F, 0F); Base.setTextureSize(128, 128); Base.mirror = true; setRotation(Base, 0F, 0F, 0F); }
public ModelGristWidget() { textureWidth = 128; textureHeight = 128; Base = new ModelRenderer(this, 0, 0); Base.addBox(0F, 0F, 8F, 32, 8, 16); Base.setRotationPoint(0F, -8F, 0F); Base.setTextureSize(128, 128); Base.mirror = true; setRotation(Base, 0F, 0F, 0F); }
diff --git a/alertscape/install-wizard/src/com/alertscape/wizard/client/Wizard.java b/alertscape/install-wizard/src/com/alertscape/wizard/client/Wizard.java index fca96f5..e173d9a 100644 --- a/alertscape/install-wizard/src/com/alertscape/wizard/client/Wizard.java +++ b/alertscape/install-wizard/src/com/alertscape/wizar...
true
true
public Wizard(List<WizardStep> steps) { VerticalPanel mainPanel = new VerticalPanel(); initWidget(mainPanel); nextButton = new Button("Next", new ClickListener() { public void onClick(Widget sender) { currentStep++; TreeItem item = stepsTree.getItem(currentStep); stepsTree.s...
public Wizard(List<WizardStep> steps) { VerticalPanel mainPanel = new VerticalPanel(); initWidget(mainPanel); nextButton = new Button("Next", new ClickListener() { public void onClick(Widget sender) { if(currentStep == Wizard.this.steps.size()-1) { // Finish return; ...
diff --git a/tmc-plugin/src/fi/helsinki/cs/tmc/actions/RunTestsLocallyAction.java b/tmc-plugin/src/fi/helsinki/cs/tmc/actions/RunTestsLocallyAction.java index 61c0746..7a3b9f3 100644 --- a/tmc-plugin/src/fi/helsinki/cs/tmc/actions/RunTestsLocallyAction.java +++ b/tmc-plugin/src/fi/helsinki/cs/tmc/actions/RunTestsLocall...
true
true
private void startRunningSimpleProjectTests(TmcProjectInfo projectInfo, FileObject testDir, List<TestMethod> testMethods) { final Project project = projectInfo.getProject(); File tempFile; try { tempFile = File.createTempFile("tmc_test_results", ".txt"); } catch ...
private void startRunningSimpleProjectTests(TmcProjectInfo projectInfo, FileObject testDir, List<TestMethod> testMethods) { final Project project = projectInfo.getProject(); File tempFile; try { tempFile = File.createTempFile("tmc_test_results", ".txt"); } catch ...
diff --git a/src/api/user/Stats.java b/src/api/user/Stats.java index b13e7a3..4b9089f 100644 --- a/src/api/user/Stats.java +++ b/src/api/user/Stats.java @@ -1,113 +1,113 @@ package api.user; /** * User's stats. * * @author Tim */ public class Stats { /** The downloaded. */ private Number downloaded;...
true
true
public Number getRatio() { //If the ratio was the infinity character change it to Infinity //so that it can be parsed if (r == null){ if (ratio.equalsIgnoreCase("\u221e")){ ratio = "Infinity"; } r = Double.parseDouble(ratio); } return r; }
public Number getRatio() { //If the ratio was the infinity character change it to Infinity //so that it can be parsed if (r == null && ratio != null){ if (ratio.equalsIgnoreCase("\u221e")){ ratio = "Infinity"; } r = Double.parseDouble(ratio); } return r; }
diff --git a/src/main/java/org/esa/beam/meris/icol/graphgen/GraphGenMain.java b/src/main/java/org/esa/beam/meris/icol/graphgen/GraphGenMain.java index ac71fee..5dc1261 100644 --- a/src/main/java/org/esa/beam/meris/icol/graphgen/GraphGenMain.java +++ b/src/main/java/org/esa/beam/meris/icol/graphgen/GraphGenMain.java @@ ...
true
true
public static void main(String[] args) throws IOException { if (args.length < 3) { System.out.println("Usage: GraphGenMain <productPath> <graphmlPath> 'meris'|'landsat' [[<hideBands>] <hideProducts>]"); } String productPath = args[0]; String graphmlPath = args[1]; ...
public static void main(String[] args) throws IOException { if (args.length < 3) { System.out.println("Usage: GraphGenMain <productPath> <graphmlPath> 'meris'|'landsat' [[<hideBands>] <hideProducts>]"); System.exit(1); } String productPath = args[0]; String gr...
diff --git a/code/app/com/feth/play/module/pa/PlayAuthenticate.java b/code/app/com/feth/play/module/pa/PlayAuthenticate.java index a4b43f2..1055f7d 100644 --- a/code/app/com/feth/play/module/pa/PlayAuthenticate.java +++ b/code/app/com/feth/play/module/pa/PlayAuthenticate.java @@ -1,557 +1,562 @@ package com.feth.play....
true
true
public static Result handleAuthentication(final String provider, final Context context, final Object payload) { final AuthProvider ap = getProvider(provider); if (ap == null) { // Provider wasn't found and/or user was fooling with our stuff - // tell him off: return Controller.notFound(Messages.get( ...
public static Result handleAuthentication(final String provider, final Context context, final Object payload) { final AuthProvider ap = getProvider(provider); if (ap == null) { // Provider wasn't found and/or user was fooling with our stuff - // tell him off: return Controller.notFound(Messages.get( ...
diff --git a/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java b/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java index 21bac72a7..751fd536f 100644 --- a/seam/plugins/org.jboss.tools.seam.core/sr...
true
true
private void validateXmlComponentDeclarations(ISeamComponent component) { String componentName = component.getName(); if(componentName!=null) { HashMap<String, ISeamXmlComponentDeclaration> usedPrecedences = new HashMap<String, ISeamXmlComponentDeclaration>(); Set<ISeamXmlComponentDeclaration> markedDeclarat...
private void validateXmlComponentDeclarations(ISeamComponent component) { String componentName = component.getName(); if(componentName!=null) { HashMap<String, ISeamXmlComponentDeclaration> usedPrecedences = new HashMap<String, ISeamXmlComponentDeclaration>(); Set<ISeamXmlComponentDeclaration> markedDeclarat...
diff --git a/src/org/thiesen/helenaorm/HelenaDAO.java b/src/org/thiesen/helenaorm/HelenaDAO.java index 7f5b1c7..b156704 100644 --- a/src/org/thiesen/helenaorm/HelenaDAO.java +++ b/src/org/thiesen/helenaorm/HelenaDAO.java @@ -1,410 +1,410 @@ /* * The MIT License * * Copyright (c) 2010 Marcus Thiesen (marcus@thies...
true
true
public void insert( final T object ) { final MarshalledObject marshalledObject = MarshalledObject.create(); for ( final PropertyDescriptor d : _propertyDescriptors ) { if ( isReadWrite( d ) ) { try { final String name = d.getName(); ...
public void insert( final T object ) { final MarshalledObject marshalledObject = MarshalledObject.create(); for ( final PropertyDescriptor d : _propertyDescriptors ) { if ( isReadWrite( d ) ) { try { final String name = d.getName(); ...
diff --git a/zendserver-deployment-eclipse/org.zend.php.zendserver.deployment.debug.core/src/org/zend/php/zendserver/deployment/debug/core/DebugModeManager.java b/zendserver-deployment-eclipse/org.zend.php.zendserver.deployment.debug.core/src/org/zend/php/zendserver/deployment/debug/core/DebugModeManager.java index e96...
true
true
public IStatus startDebugMode(IZendTarget target) { ZendDebugMode debugMode = new ZendDebugMode(target.getId()); Map<String, String> options = new HashMap<String, String>(); debugMode.setFilters(getFilters(target)); AbstractDebuggerConfiguration debuggerConfiguration = PHPDebuggersRegistry .getDebuggerConf...
public IStatus startDebugMode(IZendTarget target) { ZendDebugMode debugMode = new ZendDebugMode(target.getId()); Map<String, String> options = new HashMap<String, String>(); debugMode.setFilters(getFilters(target)); AbstractDebuggerConfiguration debuggerConfiguration = PHPDebuggersRegistry .getDebuggerConf...
diff --git a/src/net/gamerservices/npcx/npcx.java b/src/net/gamerservices/npcx/npcx.java index 232afda..79d6fa8 100644 --- a/src/net/gamerservices/npcx/npcx.java +++ b/src/net/gamerservices/npcx/npcx.java @@ -1,2665 +1,2665 @@ package net.gamerservices.npcx; import com.nijiko.coelho.iConomy.iConomy; import net.gam...
true
true
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { // any player // // CIV COMMAND MENU // if (command.getName().toLowerCase().equals("civ")) { if (!(sender instanceof Player)) { return false; } Player player = (...
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) { // any player // // CIV COMMAND MENU // if (command.getName().toLowerCase().equals("civ")) { if (!(sender instanceof Player)) { return false; } Player player = (...
diff --git a/atlassian-jira-rest-java-client/src/test/java/it/JerseySearchRestClientTest.java b/atlassian-jira-rest-java-client/src/test/java/it/JerseySearchRestClientTest.java index aba3b34..0684be8 100644 --- a/atlassian-jira-rest-java-client/src/test/java/it/JerseySearchRestClientTest.java +++ b/atlassian-jira-rest-...
true
true
public void testJqlSearchWithPaging() { if (!isJqlSupportedByRest()) { return; } final SearchResult searchResultForNull = client.getSearchClient().searchJql(null, 3, 3, pm); assertEquals(9, searchResultForNull.getTotal()); assertEquals(3, Iterables.size(searchResultForNull.getIssues())); assertEquals(3,...
public void testJqlSearchWithPaging() { if (!isJqlSupportedByRest()) { return; } final SearchResult searchResultForNull = client.getSearchClient().searchJql(null, 3, 3, pm); assertEquals(9, searchResultForNull.getTotal()); assertEquals(3, Iterables.size(searchResultForNull.getIssues())); assertEquals(3,...
diff --git a/grisu-swing/src/main/java/org/vpac/grisu/client/view/swing/mainPanel/Grisu.java b/grisu-swing/src/main/java/org/vpac/grisu/client/view/swing/mainPanel/Grisu.java index 98f087b..4be1d93 100644 --- a/grisu-swing/src/main/java/org/vpac/grisu/client/view/swing/mainPanel/Grisu.java +++ b/grisu-swing/src/main/ja...
true
true
public static void main(String[] args) { Shibboleth.initDefaultSecurityProvider(); if ((args.length > 0) && (Arrays.binarySearch(args, "--debug") >= 0)) { Level lvl = Level.toLevel("debug"); Logger.getRootLogger().setLevel(lvl); } SwingUtilities.invokeLater(new Runnable() { public void run() { ...
public static void main(String[] args) { Shibboleth.initDefaultSecurityProvider(); if ((args.length > 0) && (Arrays.binarySearch(args, "--debug") >= 0)) { Level lvl = Level.toLevel("debug"); Logger.getRootLogger().setLevel(lvl); } SwingUtilities.invokeLater(new Runnable() { public void run() { ...
diff --git a/src/main/java/org/lastbamboo/common/ice/GeneralIceMediaStreamFactoryImpl.java b/src/main/java/org/lastbamboo/common/ice/GeneralIceMediaStreamFactoryImpl.java index 4a75fbb..bcbcdc4 100644 --- a/src/main/java/org/lastbamboo/common/ice/GeneralIceMediaStreamFactoryImpl.java +++ b/src/main/java/org/lastbamboo/...
true
true
public <T> IceMediaStream newIceMediaStream( final IceMediaStreamDesc streamDesc, final IceAgent iceAgent, final DemuxableProtocolCodecFactory protocolCodecFactory, final Class<T> protocolMessageClass, final IoHandler udpProtocolIoHandler, final TurnClientListener delegate...
public <T> IceMediaStream newIceMediaStream( final IceMediaStreamDesc streamDesc, final IceAgent iceAgent, final DemuxableProtocolCodecFactory protocolCodecFactory, final Class<T> protocolMessageClass, final IoHandler udpProtocolIoHandler, final TurnClientListener delegate...
diff --git a/src/cs447/PuzzleFighter/PuzzleFighter.java b/src/cs447/PuzzleFighter/PuzzleFighter.java index 88215f9..2ddb13b 100644 --- a/src/cs447/PuzzleFighter/PuzzleFighter.java +++ b/src/cs447/PuzzleFighter/PuzzleFighter.java @@ -1,173 +1,173 @@ package cs447.PuzzleFighter; import java.awt.Font; import java.a...
true
true
public void update(long deltaMs) { if (playing) { boolean down1 = keyboard.isPressed(KeyEvent.VK_S); boolean left1 = keyboard.isPressed(KeyEvent.VK_A); boolean right1 = keyboard.isPressed(KeyEvent.VK_D); boolean ccw1 = keyboard.isPressed(KeyEvent.VK_Q); boolean cw1 = keyboard.isPressed(KeyEvent.VK_E);...
public void update(long deltaMs) { if (playing) { boolean down1 = keyboard.isPressed(KeyEvent.VK_S); boolean left1 = keyboard.isPressed(KeyEvent.VK_A); boolean right1 = keyboard.isPressed(KeyEvent.VK_D); boolean ccw1 = keyboard.isPressed(KeyEvent.VK_Q); boolean cw1 = keyboard.isPressed(KeyEvent.VK_E);...
diff --git a/src/main/java/hudson/plugins/promoted_builds/Status.java b/src/main/java/hudson/plugins/promoted_builds/Status.java index cbe0df3..a4c4cac 100644 --- a/src/main/java/hudson/plugins/promoted_builds/Status.java +++ b/src/main/java/hudson/plugins/promoted_builds/Status.java @@ -1,227 +1,227 @@ package hudson...
true
true
public List<Promotion> getPromotionBuilds() { PromotionProcess p = getProcess(); List<Promotion> builds = new ArrayList<Promotion>(); for( Integer n : promotionAttempts ) { Promotion b = p.getBuildByNumber(n); if (b != null) { builds.add(b); ...
public List<Promotion> getPromotionBuilds() { PromotionProcess p = getProcess(); List<Promotion> builds = new ArrayList<Promotion>(); for( Integer n : Iterators.reverse(promotionAttempts) ) { Promotion b = p.getBuildByNumber(n); if (b != null) { builds...
diff --git a/Toolbox/src/biz/shadowservices/DegreesToolbox/DataFetcher.java b/Toolbox/src/biz/shadowservices/DegreesToolbox/DataFetcher.java index b90cf24..e74f923 100644 --- a/Toolbox/src/biz/shadowservices/DegreesToolbox/DataFetcher.java +++ b/Toolbox/src/biz/shadowservices/DegreesToolbox/DataFetcher.java @@ -1,428 +...
true
true
public FetchResult updateData(Context context, boolean force) { //Open database DBOpenHelper dbhelper = new DBOpenHelper(context); SQLiteDatabase db = dbhelper.getWritableDatabase(); // check for internet connectivity try { if (!isOnline(context)) { Log.d(TAG, "We do not seem to be online. Skipping U...
public FetchResult updateData(Context context, boolean force) { //Open database DBOpenHelper dbhelper = new DBOpenHelper(context); SQLiteDatabase db = dbhelper.getWritableDatabase(); // check for internet connectivity try { if (!isOnline(context)) { Log.d(TAG, "We do not seem to be online. Skipping U...
diff --git a/src/net/oauth/j2me/Util.java b/src/net/oauth/j2me/Util.java index 99896e9..e98b8ea 100644 --- a/src/net/oauth/j2me/Util.java +++ b/src/net/oauth/j2me/Util.java @@ -1,321 +1,321 @@ /* * Util.java * * Created on November 20, 2007, 2:31 PM * * To change this template, choose Tools | Template Manage...
true
true
public static final String postViaHttpsConnection(String fullUrl) throws IOException, OAuthServiceProviderException { String[] urlPieces=split(fullUrl, "?"); HttpsConnection c = null; DataInputStream dis = null; OutputStream os = null; int rc; String respBody = new St...
public static final String postViaHttpsConnection(String fullUrl) throws IOException, OAuthServiceProviderException { String[] urlPieces=split(fullUrl, "?"); HttpsConnection c = null; DataInputStream dis = null; OutputStream os = null; int rc; String respBody = new St...
diff --git a/app/controllers/SearchApiController.java b/app/controllers/SearchApiController.java index ec6e12b1..0c7dc862 100644 --- a/app/controllers/SearchApiController.java +++ b/app/controllers/SearchApiController.java @@ -1,143 +1,143 @@ /* * Copyright 2013 TORCH UG * * This file is part of Graylog2. * ...
true
true
public Result fieldTerms(String q, String field, String rangeType, int relative, String from, String to, String keyword, String interval) { if (q == null || q.isEmpty()) { q = "*"; } // Histogram interval. if (interval == null || interval.isEmpty() || !SearchTools.isAllo...
public Result fieldTerms(String q, String field, String rangeType, int relative, String from, String to, String keyword, String interval) { if (q == null || q.isEmpty()) { q = "*"; } // Histogram interval. if (interval == null || interval.isEmpty() || !SearchTools.isAllo...
diff --git a/GAE/src/com/gallatinsystems/image/ImageUtils.java b/GAE/src/com/gallatinsystems/image/ImageUtils.java index 64988b6df..7c96430f7 100644 --- a/GAE/src/com/gallatinsystems/image/ImageUtils.java +++ b/GAE/src/com/gallatinsystems/image/ImageUtils.java @@ -1,44 +1,44 @@ package com.gallatinsystems.image; im...
false
true
public static ArrayList<String> parseImageParts(String url) { ArrayList<String> parts = new ArrayList<String>(); url = url.toLowerCase().replace("http://", ""); String[] items = url.split("/"); if (items.length == 3) { // no country in path parts.add("http://:" + items[0] + "/"); parts.add(items[1] + ...
public static String[] parseImageParts(String url) { String[] parts = new String[3]; url = url.toLowerCase().replace("http://", ""); String[] items = url.split("/"); if (items.length == 3) { // no country in path parts[0]=("http://:" + items[0] + "/"); parts[1]=(items[1] + "/"); parts[2]=(items[2])...
diff --git a/src/main/java/br/com/caelum/tubaina/parser/html/CenteredParagraphTag.java b/src/main/java/br/com/caelum/tubaina/parser/html/CenteredParagraphTag.java index d6841da..6968f6c 100644 --- a/src/main/java/br/com/caelum/tubaina/parser/html/CenteredParagraphTag.java +++ b/src/main/java/br/com/caelum/tubaina/parse...
true
true
public String parse(String string, String options) { return "<div style=\"text-align:center\">" + string + "</div>"; }
public String parse(String string, String options) { return "<p class=\"center\">" + string + "</p>"; }
diff --git a/ripple-core/src/main/java/net/fortytwo/ripple/model/RippleList.java b/ripple-core/src/main/java/net/fortytwo/ripple/model/RippleList.java index a186727c..d846b682 100644 --- a/ripple-core/src/main/java/net/fortytwo/ripple/model/RippleList.java +++ b/ripple-core/src/main/java/net/fortytwo/ripple/model/Rippl...
true
true
public void printTo(final RipplePrintStream p, final boolean includeParentheses) throws RippleException { if (!initialized) { initialize(); } ListNode<RippleValue> cur = this; if (includeParentheses) { p.print(")"); ...
public void printTo(final RipplePrintStream p, final boolean includeParentheses) throws RippleException { if (!initialized) { initialize(); } ListNode<RippleValue> cur = this; if (includeParentheses) { p.print("("); ...
diff --git a/src/tempconverter/TempConverter.java b/src/tempconverter/TempConverter.java index 8375c52..dfd084a 100644 --- a/src/tempconverter/TempConverter.java +++ b/src/tempconverter/TempConverter.java @@ -1,34 +1,34 @@ //Opgave 2.4, bogen side 137 package tempconverter; import java.util.Scanner; /** * * @...
true
true
public static void main(String[] args) { final int BASE = 32; final double CONVERSION_FACTOR = 9.0 / 5.0; double fahrenheitTemp; String celsiusTemp; System.out.println("Eter the temperature in celsius: "); Scanner scan = new Scanner (Sy...
public static void main(String[] args) { final int BASE = 32; final double CONVERSION_FACTOR = 9.0 / 5.0; double fahrenheitTemp; String celsiusTemp; System.out.println("Enter the temperature in celsius: "); Scanner scan = new Scanner (S...
diff --git a/providers/netty/src/test/java/org/asynchttpclient/providers/netty/NettyAsyncResponseTest.java b/providers/netty/src/test/java/org/asynchttpclient/providers/netty/NettyAsyncResponseTest.java index 5a654d6ab..6d2b7b800 100644 --- a/providers/netty/src/test/java/org/asynchttpclient/providers/netty/NettyAsyncR...
false
true
public void testCookieParseExpires() { // e.g. "Sun, 06-Feb-2012 03:45:24 GMT"; SimpleDateFormat sdf = new SimpleDateFormat("EEE, dd-MMM-yyyy HH:mm:ss z", Locale.US); sdf.setTimeZone(TimeZone.getTimeZone("GMT")); Date date = new Date(System.currentTimeMillis() + 60000); // sdf.parse...
public void testCookieParseExpires() { // e.g. "Sun, 06-Feb-2012 03:45:24 GMT"; SimpleDateFormat sdf = new SimpleDateFormat("EEE, dd-MMM-yyyy HH:mm:ss z", Locale.US); sdf.setTimeZone(TimeZone.getTimeZone("GMT")); Date date = new Date(System.currentTimeMillis() + 60000); fina...
diff --git a/src/main/java/org/openmrs/module/mirebalais/smoke/pageobjects/AppDashboard.java b/src/main/java/org/openmrs/module/mirebalais/smoke/pageobjects/AppDashboard.java index 53ffa6d..26ce45f 100644 --- a/src/main/java/org/openmrs/module/mirebalais/smoke/pageobjects/AppDashboard.java +++ b/src/main/java/org/openm...
true
true
public List<String> getAppsNames() { List<String> appsNames = new ArrayList<String>(); List<WebElement> apps = driver.findElements(By.cssSelector(".apps a")); for(WebElement app: apps) { appsNames.add(app.getText()); } return appsNames; }
public List<String> getAppsNames() { List<String> appsNames = new ArrayList<String>(); List<WebElement> apps = driver.findElements(By.xpath("//div[@id='apps']/a")); for(WebElement app: apps) { appsNames.add(app.getText()); } return appsNames; }
diff --git a/src/main/java/com/example/Main.java b/src/main/java/com/example/Main.java index 8036f00..458e85b 100644 --- a/src/main/java/com/example/Main.java +++ b/src/main/java/com/example/Main.java @@ -1,48 +1,49 @@ package com.example; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.webapp.Web...
true
true
public static void main(String[] args) throws Exception{ String webappDirLocation = "src/main/webapp/"; //The port that we should run on can be set into an environment variable //Look for that variable and default to 8080 if it isn't there. String webPort = System.getenv("PO...
public static void main(String[] args) throws Exception{ String webappDirLocation = "src/main/webapp/"; //The port that we should run on can be set into an environment variable //Look for that variable and default to 8080 if it isn't there. String webPort = System.getenv("PO...
diff --git a/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/security/jaas/PropertiesLoginModule.java b/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/security/jaas/PropertiesLoginModule.java index 054dd6025..7b103936a 100644 --- a/openejb3/container/openejb-core/src/main/ja...
true
true
public boolean login() throws LoginException { try { users.load(usersUrl.openStream()); } catch (IOException ioe) { throw new LoginException("Unable to load user properties file " + usersUrl.getFile()); } try { groups.load(groupsUrl.openStream());...
public boolean login() throws LoginException { try { users.load(usersUrl.openStream()); } catch (IOException ioe) { throw new LoginException("Unable to load user properties file " + usersUrl.getFile()); } try { groups.load(groupsUrl.openStream());...
diff --git a/seadas-processing/src/main/java/gov/nasa/gsfc/seadas/processing/general/SeadasFileUtils.java b/seadas-processing/src/main/java/gov/nasa/gsfc/seadas/processing/general/SeadasFileUtils.java index a8b0ebae..7d482e6c 100644 --- a/seadas-processing/src/main/java/gov/nasa/gsfc/seadas/processing/general/SeadasFil...
true
true
public static String getDefaultOFileNameFromIFile(String ifileName, String programName) { debug("Program name is " + programName); Debug.assertNotNull(ifileName); ProcessorTypeInfo.ProcessorID processorID = ProcessorTypeInfo.getProcessorID(programName); String ofileName = ifileName +...
public static String getDefaultOFileNameFromIFile(String ifileName, String programName) { debug("Program name is " + programName); Debug.assertNotNull(ifileName); ProcessorTypeInfo.ProcessorID processorID = ProcessorTypeInfo.getProcessorID(programName); String ofileName = ifileName +...
diff --git a/backend/skynet_backend/src/test/java/toctep/skynet/backend/test/CountryTest.java b/backend/skynet_backend/src/test/java/toctep/skynet/backend/test/CountryTest.java index 2cc5622..036d594 100644 --- a/backend/skynet_backend/src/test/java/toctep/skynet/backend/test/CountryTest.java +++ b/backend/skynet_backe...
true
true
public void testCreate() { Country country = new Country(); assertNotNull(country); String code = "NL"; country.setCode(code); assertTrue(code.equals(country.getCode())); String text = "Netherlands"; country.setCode(text); assertTrue(text.equals(country.getText())); }
public void testCreate() { Country country = new Country(); assertNotNull(country); String code = "NL"; country.setCode(code); assertTrue(code.equals(country.getCode())); String text = "Netherlands"; country.setText(text); assertTrue(text.equals(country.getText())); }
diff --git a/hama/hybrid/onlinecf/src/at/illecker/hama/hybrid/examples/onlinecf/OnlineCFTrainHybridBSP.java b/hama/hybrid/onlinecf/src/at/illecker/hama/hybrid/examples/onlinecf/OnlineCFTrainHybridBSP.java index 2d53deb..cd52f24 100644 --- a/hama/hybrid/onlinecf/src/at/illecker/hama/hybrid/examples/onlinecf/OnlineCFTrai...
false
true
public static void main(String[] args) throws Exception { // Defaults int numBspTask = 1; int numGpuBspTask = 1; int blockSize = BLOCK_SIZE; int gridSize = GRID_SIZE; int maxIteration = 150; int matrixRank = 3; int skipCount = 1; boolean useTestExampleInput = false; boolean ...
public static void main(String[] args) throws Exception { // Defaults int numBspTask = 2; // CPU + GPU tasks int numGpuBspTask = 0; // GPU tasks int blockSize = BLOCK_SIZE; int gridSize = GRID_SIZE; int maxIteration = 3; //150; int matrixRank = 3; int skipCount = 1; boolean useT...
diff --git a/gcs/base/src/pt/com/gcs/messaging/GcsRemoteProtocolHandler.java b/gcs/base/src/pt/com/gcs/messaging/GcsRemoteProtocolHandler.java index ccada592..5a55cb7c 100755 --- a/gcs/base/src/pt/com/gcs/messaging/GcsRemoteProtocolHandler.java +++ b/gcs/base/src/pt/com/gcs/messaging/GcsRemoteProtocolHandler.java @@ -1...
true
true
public void messageReceived(final IoSession iosession, Object omessage) throws Exception { final Message msg = (Message) omessage; if (log.isDebugEnabled()) { log.debug("Message Received from: '{}', Type: '{}'", IoSessionHelper.getRemoteAddress(iosession), msg.getType()); } if (msg.getType() == (Messag...
public void messageReceived(final IoSession iosession, Object omessage) throws Exception { final Message msg = (Message) omessage; if (log.isDebugEnabled()) { log.debug("Message Received from: '{}', Type: '{}'", IoSessionHelper.getRemoteAddress(iosession), msg.getType()); } if (msg.getType() == (Messag...
diff --git a/src/main/java/org/got5/tapestry5/jquery/jqgrid/services/javascript/JQGridJavaScriptStack.java b/src/main/java/org/got5/tapestry5/jquery/jqgrid/services/javascript/JQGridJavaScriptStack.java index 2ea42c1..1a99c63 100755 --- a/src/main/java/org/got5/tapestry5/jquery/jqgrid/services/javascript/JQGridJavaScri...
true
true
public JQGridJavaScriptStack(final ThreadLocale threadLocale, @Symbol(SymbolConstants.COMPACT_JSON) final boolean compactJSON, @Symbol(SymbolConstants.PRODUCTION_MODE) final boolean productionMode, ...
public JQGridJavaScriptStack(final ThreadLocale threadLocale, @Symbol(SymbolConstants.COMPACT_JSON) final boolean compactJSON, @Symbol(SymbolConstants.PRODUCTION_MODE) final boolean productionMode, ...
diff --git a/source/util/src/main/java/org/marketcetera/util/file/FileType.java b/source/util/src/main/java/org/marketcetera/util/file/FileType.java index ca7832cfc..6868a1f10 100644 --- a/source/util/src/main/java/org/marketcetera/util/file/FileType.java +++ b/source/util/src/main/java/org/marketcetera/util/file/FileT...
true
true
public static final FileType get (File file) { if (file==null) { return UNKNOWN; } try { if (!file.exists()) { return NONEXISTENT; } if (file.getCanonicalFile().equals(file.getAbsoluteFile())) { if (f...
public static final FileType get (File file) { if (file==null) { return UNKNOWN; } try { if (!file.exists()) { return NONEXISTENT; } if (file.getCanonicalFile().equals(file.getAbsoluteFile())) { if (f...
diff --git a/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelServerImpl.java b/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelServerImpl.java index e247b7330..95ebe199f 100644 --- a/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelServerImpl.java +++ b/bpel-runtime/src/main/java/org/apache...
false
true
private void doActivateProcess(final QName pid) { _mngmtLock.writeLock().lock(); try { // If the process is already active, do nothing. if (_engine.isProcessRegistered(pid)) { __log.debug("skipping doActivateProcess(" + pid + ") -- process is already active");...
private void doActivateProcess(final QName pid) { _mngmtLock.writeLock().lock(); try { // If the process is already active, do nothing. if (_engine.isProcessRegistered(pid)) { __log.debug("skipping doActivateProcess(" + pid + ") -- process is already active");...
diff --git a/src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java b/src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java index 34b47bd66..02d397b63 100644 --- a/src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java +++ b/src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java @@ -1,2302 ...
true
true
private void getContent(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { View view = null; org.w3c.dom.Document doc = null; try { doc = getDocument(NAMESPACE, "yanel"); } catch(Exception e) { log.error(e.getMess...
private void getContent(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { View view = null; org.w3c.dom.Document doc = null; try { doc = getDocument(NAMESPACE, "yanel"); } catch(Exception e) { log.error(e.getMess...
diff --git a/src/pojoGenerator/Main.java b/src/pojoGenerator/Main.java index b38d5c8..f61a062 100644 --- a/src/pojoGenerator/Main.java +++ b/src/pojoGenerator/Main.java @@ -1,255 +1,255 @@ package pojoGenerator; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.Fil...
true
true
private static void refactorFileAndGenerateDuplicate(File f) throws Exception { String path = PathHolder.POJO_TARGET_PATH + File.separator + f.getPath().substring(f.getPath().indexOf("com" + File.separator)); File targetFile = new File(path); File parent = targetFile.getParentFile(); if(!parent.exists() && !p...
private static void refactorFileAndGenerateDuplicate(File f) throws Exception { String path = PathHolder.POJO_TARGET_PATH + File.separator + f.getPath().substring(f.getPath().indexOf("com" + File.separator)); File targetFile = new File(path); File parent = targetFile.getParentFile(); if(!parent.exists() && !p...
diff --git a/Basics/src/coolawesomeme/basics_plugin/EventListener.java b/Basics/src/coolawesomeme/basics_plugin/EventListener.java index db2e093..791aff0 100644 --- a/Basics/src/coolawesomeme/basics_plugin/EventListener.java +++ b/Basics/src/coolawesomeme/basics_plugin/EventListener.java @@ -1,35 +1,35 @@ package cool...
true
true
public void onPlayerJoin(PlayerJoinEvent event) { PlayerDataStorage.makePlayerDataFile(event.getPlayer().getName()); if(BrbCommand.isOwnerBRBing){ if(!event.getPlayer().hasPlayedBefore()){ final PlayerJoinEvent newEvent = event; Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(ne...
public void onPlayerJoin(PlayerJoinEvent event) { PlayerDataStorage.makePlayerDataFile(event.getPlayer().getName()); if(BrbCommand.isOwnerBRBing){ if(!event.getPlayer().hasPlayedBefore()){ final PlayerJoinEvent newEvent = event; Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(ne...
diff --git a/parser/org/eclipse/cdt/core/dom/parser/GNUScannerExtensionConfiguration.java b/parser/org/eclipse/cdt/core/dom/parser/GNUScannerExtensionConfiguration.java index 30b7335ee..0ed8d0f32 100644 --- a/parser/org/eclipse/cdt/core/dom/parser/GNUScannerExtensionConfiguration.java +++ b/parser/org/eclipse/cdt/core/...
true
true
public GNUScannerExtensionConfiguration() { addMacro("__complex__", "_Complex"); addMacro("__extension__", ""); addMacro("__imag__", "(int)"); addMacro("__real__", "(int)"); addMacro("__stdcall", ""); addMacro("__builtin_va_arg(ap,type)", "*(type *)ap"); addMacro("__builtin_constant_p(exp)", "0"); a...
public GNUScannerExtensionConfiguration() { addMacro("__complex__", "_Complex"); addMacro("__extension__", ""); addMacro("__imag__", "(int)"); addMacro("__real__", "(int)"); addMacro("__stdcall", ""); addMacro("__builtin_va_arg(ap,type)", "*(type *)ap"); addMacro("__builtin_constant_p(exp)", "0"); a...
diff --git a/src/main/java/org/atlasapi/remotesite/hulu/HuluBrandContentExtractor.java b/src/main/java/org/atlasapi/remotesite/hulu/HuluBrandContentExtractor.java index a250a2cfa..d9594c178 100644 --- a/src/main/java/org/atlasapi/remotesite/hulu/HuluBrandContentExtractor.java +++ b/src/main/java/org/atlasapi/remotesite...
true
true
public Brand extract(HtmlNavigator source) { try { Brand brand = null; for (Element element : source.allElementsMatching("//body/script")) { String value = element.getValue(); if (value.startsWith(SOCIAL_FEED)) { try { ...
public Brand extract(HtmlNavigator source) { try { Brand brand = null; for (Element element : source.allElementsMatching("//body/script")) { String value = element.getValue(); if (value.startsWith(SOCIAL_FEED)) { try { ...
diff --git a/beam-processing/src/main/java/org/esa/beam/framework/processor/ui/PropertyFileParameterPage.java b/beam-processing/src/main/java/org/esa/beam/framework/processor/ui/PropertyFileParameterPage.java index 8002b6dad..21032d961 100644 --- a/beam-processing/src/main/java/org/esa/beam/framework/processor/ui/Prope...
true
true
public JComponent createUI() { textArea = new JTextArea(); final JScrollPane textPane = new JScrollPane(textArea); textPane.setPreferredSize(new Dimension(400, 300)); final JPanel panel = GridBagUtils.createDefaultEmptyBorderPanel(); final GridBagConstraints gbc = GridBagUtil...
public JComponent createUI() { textArea = new JTextArea(); final JScrollPane textPane = new JScrollPane(textArea); textPane.setPreferredSize(new Dimension(400, 300)); final JPanel panel = GridBagUtils.createDefaultEmptyBorderPanel(); final GridBagConstraints gbc = GridBagUtil...
diff --git a/OpenKitSDK/src/io/openkit/OKLoginFragment.java b/OpenKitSDK/src/io/openkit/OKLoginFragment.java index 00263b1..8664413 100644 --- a/OpenKitSDK/src/io/openkit/OKLoginFragment.java +++ b/OpenKitSDK/src/io/openkit/OKLoginFragment.java @@ -1,543 +1,549 @@ /** * Copyright 2012 OpenKit * * Licensed under...
true
true
private void performGoogleAuth(Account account) { mGoogAuthRequest = new GoogleAuthRequest(OKLoginFragment.this,account); showSpinner(); mGoogAuthRequest.loginWithGoogleAccount(new GoogleAuthRequestHandler() { @Override public void onUserCancelled() { hideSpinner(); dialogDelegate.onLoginCancell...
private void performGoogleAuth(Account account) { mGoogAuthRequest = new GoogleAuthRequest(OKLoginFragment.this,account); showSpinner(); mGoogAuthRequest.loginWithGoogleAccount(new GoogleAuthRequestHandler() { @Override public void onUserCancelled() { hideSpinner(); dialogDelegate.onLoginCancell...
diff --git a/geotools2/geotools-src/gmldatasource/tests/unit/org/geotools/gml/ProducerTest.java b/geotools2/geotools-src/gmldatasource/tests/unit/org/geotools/gml/ProducerTest.java index 4b47da497..c5163236f 100644 --- a/geotools2/geotools-src/gmldatasource/tests/unit/org/geotools/gml/ProducerTest.java +++ b/geotools2/...
false
true
public void testProducer() throws Exception { System.setProperty("javax.xml.transform.TransformerFactory", "org.apache.xalan.processor.TransformerFactoryImpl"); LOGGER.fine("testing producer"); String dataFolder = System.getProperty("dataFolder"); if (dataFolder == nul...
public void testProducer() throws Exception { System.setProperty("javax.xml.transform.TransformerFactory", "org.apache.xalan.processor.TransformerFactoryImpl"); LOGGER.fine("testing producer"); String dataFolder = System.getProperty("dataFolder"); if (dataFolder == nul...
diff --git a/src/client/MapleClient.java b/src/client/MapleClient.java index 686d75d7..e51eb484 100644 --- a/src/client/MapleClient.java +++ b/src/client/MapleClient.java @@ -1,991 +1,991 @@ /* This file is part of the OdinMS Maple Story Server Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc> Matthias Butz <matz...
true
true
public int login(String login, String pwd) { loginattempt++; if (loginattempt > 4) { getSession().close(true); } int loginok = 5; Connection con = DatabaseConnection.getConnection(); PreparedStatement ps = null; ResultSet rs = null; try { ps = con.prepareStatement("SELECT id, password, salt, gend...
public int login(String login, String pwd) { loginattempt++; if (loginattempt > 4) { getSession().close(true); } int loginok = 5; Connection con = DatabaseConnection.getConnection(); PreparedStatement ps = null; ResultSet rs = null; try { ps = con.prepareStatement("SELECT id, password, salt, gend...
diff --git a/trunk/org/xbill/DNS/KEYRecord.java b/trunk/org/xbill/DNS/KEYRecord.java index 19cbcc8..5abeec2 100644 --- a/trunk/org/xbill/DNS/KEYRecord.java +++ b/trunk/org/xbill/DNS/KEYRecord.java @@ -1,222 +1,222 @@ // Copyright (c) 1999 Brian Wellington (bwelling@xbill.org) // Portions Copyright (c) 1999 Network As...
true
true
public short getFootprint() { if (footprint >= 0) return (short)footprint; int foot = 0; DataByteOutputStream out = new DataByteOutputStream(); try { rrToWire(out, null); } catch (IOException e) {} byte [] rdata = out.toByteArray(); if (alg == DNSSEC.RSA) { int d1 = rdata[key.length - 3] & 0xFF; int...
public short getFootprint() { if (footprint >= 0) return (short)footprint; int foot = 0; DataByteOutputStream out = new DataByteOutputStream(); try { rrToWire(out, null); } catch (IOException e) {} byte [] rdata = out.toByteArray(); if (alg == DNSSEC.RSA) { int d1 = rdata[key.length - 3] & 0xFF; int...
diff --git a/src/org/openjump/core/ui/io/file/DataSourceFileLayerLoader.java b/src/org/openjump/core/ui/io/file/DataSourceFileLayerLoader.java index 07632912..cac1a6b2 100644 --- a/src/org/openjump/core/ui/io/file/DataSourceFileLayerLoader.java +++ b/src/org/openjump/core/ui/io/file/DataSourceFileLayerLoader.java @@ -1...
true
true
public boolean open(TaskMonitor monitor, URI uri, Map<String, Object> options) { DataSource dataSource = (DataSource)LangUtil.newInstance(dataSourceClass); Map<String, Object> properties = toProperties(uri, options); dataSource.setProperties(properties); String name = UriUtil.getFileNameWithoutExtensi...
public boolean open(TaskMonitor monitor, URI uri, Map<String, Object> options) { DataSource dataSource = (DataSource)LangUtil.newInstance(dataSourceClass); Map<String, Object> properties = toProperties(uri, options); dataSource.setProperties(properties); String name = UriUtil.getFileNameWithoutExtensi...
diff --git a/src/main/java/org/isatools/tablib/export/graph2tab/StructuredTable.java b/src/main/java/org/isatools/tablib/export/graph2tab/StructuredTable.java index d006f89..f2bc24a 100644 --- a/src/main/java/org/isatools/tablib/export/graph2tab/StructuredTable.java +++ b/src/main/java/org/isatools/tablib/export/graph2...
true
true
public static void mergeTabValues ( List<StructuredTable> tables, int newSize, List<TabValueGroup> tbvs ) { if ( tables == null ) throw new RuntimeException ( "mergeRows() expects a non null table array as parameter" ); if ( tbvs == null ) { mergeNullTabValues ( tables, newSize ); return; } ...
public static void mergeTabValues ( List<StructuredTable> tables, int newSize, List<TabValueGroup> tbvs ) { if ( tables == null ) throw new RuntimeException ( "mergeRows() expects a non null table array as parameter" ); if ( tbvs == null ) { mergeNullTabValues ( tables, newSize ); return; } ...
diff --git a/Infamy/TutorialInfamyWorld.java b/Infamy/TutorialInfamyWorld.java index 2864e58..8e652fa 100755 --- a/Infamy/TutorialInfamyWorld.java +++ b/Infamy/TutorialInfamyWorld.java @@ -1,250 +1,250 @@ import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.awt.*; import java.u...
true
true
public void act() { super.act(); Date d = new Date(); if (dialogueTimer == 500) { removeObject(tutorialDia); } if (phase == 0){ spawnG = germansKilled() < 5 && (d.getTime() - baseTimeG) > germSpawn; spawnB = (d.getTime() - b...
public void act() { super.act(); Date d = new Date(); if (dialogueTimer == 500) { removeObject(tutorialDia); } if (phase == 0){ spawnG = germansKilled() < 5 && (d.getTime() - baseTimeG) > germSpawn; spawnB = (d.getTime() - b...
diff --git a/src/com/android/settings/wifi/AccessPoint.java b/src/com/android/settings/wifi/AccessPoint.java index f6581a5fa..20146eb27 100644 --- a/src/com/android/settings/wifi/AccessPoint.java +++ b/src/com/android/settings/wifi/AccessPoint.java @@ -1,398 +1,398 @@ /* * Copyright (C) 2010 The Android Open Source ...
false
true
private void refresh() { setTitle(ssid); Context context = getContext(); if (mState != null) { // This is the active connection setSummary(Summary.get(context, mState)); } else if (mRssi == Integer.MAX_VALUE) { // Wifi out of range setSummary(context.getStrin...
private void refresh() { setTitle(ssid); Context context = getContext(); if (mConfig != null && mConfig.status == WifiConfiguration.Status.DISABLED) { switch (mConfig.disableReason) { case WifiConfiguration.DISABLED_AUTH_FAILURE: setSummary(co...
diff --git a/src/main/java/jscover/report/JSONDataSaver.java b/src/main/java/jscover/report/JSONDataSaver.java index 0302b941..fdd981a2 100644 --- a/src/main/java/jscover/report/JSONDataSaver.java +++ b/src/main/java/jscover/report/JSONDataSaver.java @@ -1,403 +1,404 @@ /** GNU GENERAL PUBLIC LICENSE ...
false
true
public void saveJSONData(File reportDir, String data, List<ScriptCoverageCount> unloadJSData) { try { lockOnReportDir(reportDir); reportDir.mkdirs(); File jsonFile = new File(reportDir, "jscoverage.json"); SortedMap<String, FileData> extraData = new TreeMap<St...
public void saveJSONData(File reportDir, String data, List<ScriptCoverageCount> unloadJSData) { try { lockOnReportDir(reportDir); reportDir.mkdirs(); File jsonFile = new File(reportDir, "jscoverage.json"); SortedMap<String, FileData> extraData = new TreeMap<St...
diff --git a/src/org/java/android/BuyersGuideActivity.java b/src/org/java/android/BuyersGuideActivity.java index 179e71c..f97ecdb 100644 --- a/src/org/java/android/BuyersGuideActivity.java +++ b/src/org/java/android/BuyersGuideActivity.java @@ -1,56 +1,52 @@ package org.java.android; import java.util.ArrayList; ...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); listView = (ListView)findViewById(R.id.listView1); progressBar = (ProgressBar)findViewById(R.id.progressBar); object = this; progressBar.setProgress(0)...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); listView = (ListView)findViewById(R.id.listView1); progressBar = (ProgressBar)findViewById(R.id.progressBar); object = this; progressBar.setProgress(0)...
diff --git a/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java b/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java index 5f5e4391..d1f0e7aa 100644 --- a/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java +++ b/src/java/org/jives...
true
true
private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); } public vo...
private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); } public vo...
diff --git a/src/com/example/testgame/MainActivity.java b/src/com/example/testgame/MainActivity.java index 62c58e8..26c54b3 100644 --- a/src/com/example/testgame/MainActivity.java +++ b/src/com/example/testgame/MainActivity.java @@ -1,264 +1,264 @@ package com.example.testgame; import com.testgame.scene.*; import ...
true
true
public EngineOptions onCreateEngineOptions() { newTurn = new BroadcastReceiver(){ @Override public void onReceive(Context context, Intent intent) { if(resourcesManager.inGame == false){ return; } ...
public EngineOptions onCreateEngineOptions() { newTurn = new BroadcastReceiver(){ @Override public void onReceive(Context context, Intent intent) { if(resourcesManager.inGame == false){ return; } ...
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IGridLayout.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IGridLayout.java index e532e8b79..d0ae64ed0 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IGridLayout.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IGridLayout.java @@ -1,1...
false
true
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { if (client.updateComponent(this, uidl, false)) { return; } clear(); if (uidl.hasAttribute("caption")) { setTitle(uidl.getStringAttribute("caption")); } int row = 0, column ...
public void updateFromUIDL(UIDL uidl, ApplicationConnection client) { if (client.updateComponent(this, uidl, false)) { return; } clear(); if (uidl.hasAttribute("caption")) { setTitle(uidl.getStringAttribute("caption")); } int row = 0, column ...
diff --git a/src/net/sf/gogui/thumbnail/Main.java b/src/net/sf/gogui/thumbnail/Main.java index 6c388b9f..6a468d14 100644 --- a/src/net/sf/gogui/thumbnail/Main.java +++ b/src/net/sf/gogui/thumbnail/Main.java @@ -1,79 +1,80 @@ //---------------------------------------------------------------------------- // $Id$ // $S...
true
true
public static void main(String[] args) { try { String options[] = { "help", "verbose", "version", }; Options opt = Options.parse(args, options); if (opt.isSet("help")) { pr...
public static void main(String[] args) { try { String options[] = { "help", "verbose", "version", }; Options opt = Options.parse(args, options); if (opt.isSet("help")) { pr...
diff --git a/tests/frontend/org/voltdb/compiler/TestVoltCompiler.java b/tests/frontend/org/voltdb/compiler/TestVoltCompiler.java index 7de88f77b..8f8aabdfe 100644 --- a/tests/frontend/org/voltdb/compiler/TestVoltCompiler.java +++ b/tests/frontend/org/voltdb/compiler/TestVoltCompiler.java @@ -1,2397 +1,2397 @@ /* This ...
false
true
public void testInvalidCreateProcedureDDL() throws Exception { ArrayList<Feedback> fbs; String expectedError; fbs = checkInvalidProcedureDDL( "CREATE TABLE PKEY_INTEGER ( PKEY INTEGER NOT NULL, PRIMARY KEY (PKEY) );" + "PARTITION TABLE PKEY_INTEGER ON COLUMN ...
public void testInvalidCreateProcedureDDL() throws Exception { ArrayList<Feedback> fbs; String expectedError; fbs = checkInvalidProcedureDDL( "CREATE TABLE PKEY_INTEGER ( PKEY INTEGER NOT NULL, PRIMARY KEY (PKEY) );" + "PARTITION TABLE PKEY_INTEGER ON COLUMN ...
diff --git a/WoT.java b/WoT.java index 7ff9d0d2..c3fa91b6 100644 --- a/WoT.java +++ b/WoT.java @@ -1,894 +1,894 @@ /** * This code is part of WoT, a plugin for Freenet. It is distributed * under the GNU General Public License, version 2 (or at your option * any later version). See http://www.gnu.org/ for detail...
true
true
private void restoreIdentity(String requestURI, String insertURI) throws InvalidParameterException, MalformedURLException, Db4oIOException, DatabaseClosedException, DuplicateScoreException, DuplicateIdentityException, DuplicateTrustException { OwnIdentity id; try { Identity old = Identity.getByURI(db, req...
private void restoreIdentity(String requestURI, String insertURI) throws InvalidParameterException, MalformedURLException, Db4oIOException, DatabaseClosedException, DuplicateScoreException, DuplicateIdentityException, DuplicateTrustException { OwnIdentity id; try { Identity old = Identity.getByURI(db, req...
diff --git a/appengine/c2dm/com/browsertophone/c2dm/server/C2DMConfigLoader.java b/appengine/c2dm/com/browsertophone/c2dm/server/C2DMConfigLoader.java index 6c9400f..e853a15 100644 --- a/appengine/c2dm/com/browsertophone/c2dm/server/C2DMConfigLoader.java +++ b/appengine/c2dm/com/browsertophone/c2dm/server/C2DMConfigLoa...
true
true
private C2DMConfig getDataMessagingConfig(PersistenceManager pm) { Key key = KeyFactory.createKey(C2DMConfig.class.getSimpleName(), 1); C2DMConfig dmConfig = null; try { dmConfig = pm.getObjectById(C2DMConfig.class, key); } catch (JDOObjectNotFoundException e) { ...
private C2DMConfig getDataMessagingConfig(PersistenceManager pm) { Key key = KeyFactory.createKey(C2DMConfig.class.getSimpleName(), 1); C2DMConfig dmConfig = null; try { dmConfig = pm.getObjectById(C2DMConfig.class, key); } catch (JDOObjectNotFoundException e) { ...
diff --git a/service-api/src/main/java/com/korwe/thecore/service/CoreServices.java b/service-api/src/main/java/com/korwe/thecore/service/CoreServices.java index 0862a49..50f6ae0 100644 --- a/service-api/src/main/java/com/korwe/thecore/service/CoreServices.java +++ b/service-api/src/main/java/com/korwe/thecore/service/C...
true
true
public static void main(String[] args) { CoreConfig.initialize(CoreServices.class.getResourceAsStream("/coreconfig.xml")); final Server servletServer = configureServer(); services.add(new CorePingService()); services.add(new CoreSyndicationService()); Runtime.getRuntime().ad...
public static void main(String[] args) { CoreConfig.initialize(CoreServices.class.getResourceAsStream("/coreconfig.xml")); final Server servletServer = configureServer(); services.add(new CorePingService(10)); services.add(new CoreSyndicationService(new SyndicationServiceImpl(),10));...
diff --git a/src/greedGame/GreedGameController.java b/src/greedGame/GreedGameController.java index 1c46f36..354811b 100644 --- a/src/greedGame/GreedGameController.java +++ b/src/greedGame/GreedGameController.java @@ -1,158 +1,158 @@ package greedGame; import java.awt.event.ActionEvent; import java.awt.event.Action...
true
true
public GreedGameController(GreedGameModel greedGameModel, GreedGameGUI greedGameView) { model = greedGameModel; view = greedGameView; checkBoxDiceMap = new ArrayList<CheckBoxDicePair>(6); playerFactory = new PlayerFactory(model); // Iterate through all check boxes and dice and create as many pairs as ...
public GreedGameController(GreedGameModel greedGameModel, GreedGameGUI greedGameView) { model = greedGameModel; view = greedGameView; checkBoxDiceMap = new ArrayList<CheckBoxDicePair>(6); playerFactory = new PlayerFactory(model); // Iterate through all check boxes and dice and create as many pairs as ...
diff --git a/core/src/main/java/com/meltmedia/cadmium/core/git/DelayedGitServiceInitializer.java b/core/src/main/java/com/meltmedia/cadmium/core/git/DelayedGitServiceInitializer.java index 3109d087..82577436 100644 --- a/core/src/main/java/com/meltmedia/cadmium/core/git/DelayedGitServiceInitializer.java +++ b/core/src/...
false
true
public synchronized void switchRepository(String uri) throws Exception { String branch = null; String revision = null; String oldRepoUri = null; File gitDir = null; try { writeLock.lock(); latch.await(); if(!git.getRemoteRepository().equalsIgnoreCase(uri)) { logger.debug(...
public synchronized void switchRepository(String uri) throws Exception { File oldRepo = null; File gitDir = null; try { writeLock.lock(); latch.await(); if(!git.getRemoteRepository().equalsIgnoreCase(uri)) { logger.debug("Switching repo from {} to {}", git.getRemoteRepository(), ...
diff --git a/src/com/google/caliper/CaliperRc.java b/src/com/google/caliper/CaliperRc.java index d376431..963df15 100644 --- a/src/com/google/caliper/CaliperRc.java +++ b/src/com/google/caliper/CaliperRc.java @@ -1,53 +1,56 @@ /* * Copyright (C) 2010 Google Inc. * * Licensed under the Apache License, Version 2.0...
true
true
private CaliperRc() { try { File dotCaliperRc = new File(System.getProperty("user.home"), ".caliperrc"); if (dotCaliperRc.exists()) { properties.load(new FileInputStream(dotCaliperRc)); } else { // create it with a template } } catch (IOException e) { throw new Ru...
private CaliperRc() { try { String caliperRcEnvVar = System.getenv("CALIPERRC"); File caliperRcFile = (caliperRcEnvVar == null) ? new File(System.getProperty("user.home"), ".caliperrc") : new File(caliperRcEnvVar); if (caliperRcFile.exists()) { properties.load(new Fil...
diff --git a/src/replicated_calculator/ClientNonRobust.java b/src/replicated_calculator/ClientNonRobust.java index 5564d49..99538c8 100755 --- a/src/replicated_calculator/ClientNonRobust.java +++ b/src/replicated_calculator/ClientNonRobust.java @@ -1,177 +1,179 @@ package replicated_calculator; import point_to_point_...
true
true
public void run() { while (!shutdown) { final ClientEvent nextACK = fromServer.get(); if (nextACK instanceof ClientEventRead) { ClientEventRead eventRead = (ClientEventRead)nextACK; Callback<BigInteger> callback; synchronized (callbacks) { callback = callbacks.get(new Long(eventRead.eventID...
public void run() { while (!shutdown) { final ClientEvent nextACK = fromServer.get(); if (nextACK instanceof ClientEventRead) { ClientEventRead eventRead = (ClientEventRead)nextACK; Callback<BigInteger> callback; synchronized (callbacks) { callback = callbacks.get(new Long(eventRead.eventID...
diff --git a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/BrowseFilteredListener.java b/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/BrowseFilteredListener.java index 0ed6fc3cc..b95f9abb3 100644 --- a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context...
false
true
public void mouseDown(MouseEvent event) { final InterestFilter filter = getInterestFilter(viewer); if (filter == null || !(viewer instanceof TreeViewer)) { return; } TreeViewer treeViewer = (TreeViewer) viewer; Object selectedObject = null; Object clickedObject = getClickedItem(event); if (clickedObj...
public void mouseDown(MouseEvent event) { final InterestFilter filter = getInterestFilter(viewer); if (filter == null || !(viewer instanceof TreeViewer)) { return; } TreeViewer treeViewer = (TreeViewer) viewer; Object selectedObject = null; Object clickedObject = getClickedItem(event); if (clickedObj...
diff --git a/src/lib/com/izforge/izpack/util/IsPortValidator.java b/src/lib/com/izforge/izpack/util/IsPortValidator.java index 31cc3bfa..023e0bd8 100644 --- a/src/lib/com/izforge/izpack/util/IsPortValidator.java +++ b/src/lib/com/izforge/izpack/util/IsPortValidator.java @@ -1,60 +1,60 @@ /* * IzPack - Copyright 2001...
true
true
public boolean validate(ProcessingClient client) { int port = 0; if ("".equals(client.getFieldContents(0))) { return false; } try { port = Integer.parseInt(client.getFieldContents(0)); if (port > 0 && port < Integer.MAX_VALUE)...
public boolean validate(ProcessingClient client) { int port = 0; if ("".equals(client.getFieldContents(0))) { return false; } try { port = Integer.parseInt(client.getFieldContents(0)); if (port > 0 && port < 65535) ...
diff --git a/src/net/sozinsoft/tokenlab/PathfinderToken.java b/src/net/sozinsoft/tokenlab/PathfinderToken.java index 3208db3..9d03762 100755 --- a/src/net/sozinsoft/tokenlab/PathfinderToken.java +++ b/src/net/sozinsoft/tokenlab/PathfinderToken.java @@ -1,963 +1,966 @@ package net.sozinsoft.tokenlab; import com.go...
true
true
public Token asToken( Config.ConfigEntry configEntry ) throws Exception { _token.createToken( this, configEntry ); _token.setCommonProperties( (ICharacter)this, _propertyMap ); loadMacros(_token.getToken()); //set all the token properties. _token.getToken().setPropertyType...
public Token asToken( Config.ConfigEntry configEntry ) throws Exception { _token.createToken( this, configEntry ); _token.setCommonProperties( (ICharacter)this, _propertyMap ); loadMacros(_token.getToken()); //set all the token properties. _token.getToken().setPropertyType...
diff --git a/src/backup/BackupTask.java b/src/backup/BackupTask.java index 52c1401..84d200b 100644 --- a/src/backup/BackupTask.java +++ b/src/backup/BackupTask.java @@ -1,236 +1,236 @@ /* * Copyright (C) 2011 Kilian Gaertner * * This program is free software: you can redistribute it and/or modify * it unde...
true
true
protected void backup() { // the messages String startBackupMessage = pSystem.getStringProperty(STRING_START_BACKUP_MESSAGE); System.out.println(startBackupMessage); server.broadcastMessage(startBackupMessage); // a hack like methode to send the console command for disabling...
protected void backup() { // the messages String startBackupMessage = pSystem.getStringProperty(STRING_START_BACKUP_MESSAGE); System.out.println(startBackupMessage); server.broadcastMessage(startBackupMessage); // a hack like methode to send the console command for disabling...
diff --git a/src/com/wrapp/android/webimage/ImageLoader.java b/src/com/wrapp/android/webimage/ImageLoader.java index 239c7fa..1c61043 100644 --- a/src/com/wrapp/android/webimage/ImageLoader.java +++ b/src/com/wrapp/android/webimage/ImageLoader.java @@ -1,151 +1,151 @@ /* * Copyright (c) 2011 Bohemian Wrappsody, AB ...
true
true
private void processRequest(ImageRequest request) { try { Drawable drawable = ImageCache.loadImage(request); if(drawable == null) { request.listener.onDrawableError("Failed to load image"); } else { // When this request has completed successfully, check the ...
private void processRequest(ImageRequest request) { try { Drawable drawable = ImageCache.loadImage(request); if(drawable == null) { request.listener.onDrawableError("Failed to load image"); } else { // When this request has completed successfully, check the ...
diff --git a/Android/Roger/src/com/bignerdranch/franklin/roger/RogerActivity.java b/Android/Roger/src/com/bignerdranch/franklin/roger/RogerActivity.java index 7afd6f1..136b0ed 100644 --- a/Android/Roger/src/com/bignerdranch/franklin/roger/RogerActivity.java +++ b/Android/Roger/src/com/bignerdranch/franklin/roger/RogerA...
true
true
private void loadLayout(LayoutDescription description) { management.layoutDescription = description; if (description.getMinVersion() != 0 && description.getMinVersion() > Build.VERSION.SDK_INT) { Log.e(TAG, "invalid version of Android"); String versionFormat = getString(...
private void loadLayout(LayoutDescription description) { management.layoutDescription = description; if (description.getMinVersion() != 0 && description.getMinVersion() > Build.VERSION.SDK_INT) { Log.e(TAG, "invalid version of Android"); String versionFormat = getString(...
diff --git a/esmska/src/esmska/gui/NotificationIcon.java b/esmska/src/esmska/gui/NotificationIcon.java index 0c024ec3..69d10f95 100644 --- a/esmska/src/esmska/gui/NotificationIcon.java +++ b/esmska/src/esmska/gui/NotificationIcon.java @@ -1,233 +1,233 @@ /* * To change this template, choose Tools | Templates * and...
false
true
private NotificationIcon() { // show/hide main window toggleItem = new MenuItem(l10n.getString("Show/hide_program")); toggleItem.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { toggleMainFrameVisibility(...
private NotificationIcon() { // show/hide main window toggleItem = new MenuItem(l10n.getString("Show/hide_program")); toggleItem.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { toggleMainFrameVisibility(...
diff --git a/java/src/org/broadinstitute/sting/alignment/bwa/AlignmentValidationWalker.java b/java/src/org/broadinstitute/sting/alignment/bwa/AlignmentValidationWalker.java index 018149c5f..a2f8731fc 100644 --- a/java/src/org/broadinstitute/sting/alignment/bwa/AlignmentValidationWalker.java +++ b/java/src/org/broadinst...
false
true
public Integer map(char[] ref, SAMRecord read) { byte[] bases = read.getReadBases(); if(read.getReadNegativeStrandFlag()) bases = BaseUtils.simpleReverseComplement(bases); boolean matches = true; Alignment[] alignments = aligner.getAlignments(bases); if(alignments.length ==...
public Integer map(char[] ref, SAMRecord read) { byte[] bases = read.getReadBases(); if(read.getReadNegativeStrandFlag()) bases = BaseUtils.simpleReverseComplement(bases); boolean matches = true; Alignment[] alignments = aligner.getAlignments(bases); if(alignments.length ==...
diff --git a/org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java b/org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java index 5dc0a4a89..40e66f75a 100644 --- a/org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java +++ b/org.eclipse.text/src/org/eclips...
true
true
public IRegion findReplace(FindReplaceOperationCode operationCode, int startOffset, String findString, String replaceText, boolean forwardSearch, boolean caseSensitive, boolean wholeWord, boolean regExSearch) throws BadLocationException { // Validate option combinations Assert.isTrue(!(regExSearch && wholeWord));...
public IRegion findReplace(FindReplaceOperationCode operationCode, int startOffset, String findString, String replaceText, boolean forwardSearch, boolean caseSensitive, boolean wholeWord, boolean regExSearch) throws BadLocationException { // Validate option combinations Assert.isTrue(!(regExSearch && wholeWord));...
diff --git a/BitDestroyer/src/abilities/WizSpells.java b/BitDestroyer/src/abilities/WizSpells.java index dfb703c..8b3aba7 100755 --- a/BitDestroyer/src/abilities/WizSpells.java +++ b/BitDestroyer/src/abilities/WizSpells.java @@ -1,67 +1,68 @@ package abilities; import java.util.ArrayList; import java.util.Timer; im...
true
true
public FrostBolt(int x, int y) { super.buttonName = "FrostBolt"; super.snare_effect = EffectsDatabase.snareTypes.FROSTBOLT; super.setDamage(10); ImageIcon ii = new ImageIcon(this.getClass().getResource( "frostboltimgUP.png")); super.image = ii.getImage(); super.visible = true; super.x = x; ...
public FrostBolt(int x, int y) { super.buttonName = "FrostBolt"; super.snare_effect = EffectsDatabase.snareTypes.FROSTBOLT; super.setDamage(10); ClassLoader cl = Thread.currentThread().getContextClassLoader(); ImageIcon ii = new ImageIcon(cl.getResource( "frostboltimgUP.png")); super.image = ii...
diff --git a/benchmark/src/main/java/info/gehrels/diplomarbeit/hypergraphdb/HyperGraphDBImporter.java b/benchmark/src/main/java/info/gehrels/diplomarbeit/hypergraphdb/HyperGraphDBImporter.java index c12c1fc..c4dcffa 100644 --- a/benchmark/src/main/java/info/gehrels/diplomarbeit/hypergraphdb/HyperGraphDBImporter.java ++...
false
true
public HyperGraphDBImporter(String sourceFile, String dbPath) throws Exception { super(sourceFile); hyperGraph = createHyperGraphDB(dbPath); // For Nodes hyperGraph.getIndexManager().register( new DirectValueIndexer(hyperGraph.getTypeSystem().getTypeHandle(Long.class))); // For Edge labels...
public HyperGraphDBImporter(String sourceFile, String dbPath) throws Exception { super(sourceFile); hyperGraph = createHyperGraphDB(dbPath); // For Nodes hyperGraph.getIndexManager().register( new DirectValueIndexer(hyperGraph.getTypeSystem().getTypeHandle(Long.class))); // For Edge labels...
diff --git a/bug-pattern/src/main/java/jp/co/worksap/oss/findbugs/ForbiddenSystemClass.java b/bug-pattern/src/main/java/jp/co/worksap/oss/findbugs/ForbiddenSystemClass.java index ade18ac..84f1628 100755 --- a/bug-pattern/src/main/java/jp/co/worksap/oss/findbugs/ForbiddenSystemClass.java +++ b/bug-pattern/src/main/java/...
true
true
public void sawOpcode(int seen) { if (seen == GETSTATIC) { if (getClassConstantOperand().equals("java/lang/System") && (getNameConstantOperand().equals("out") || getNameConstantOperand() .equals("err"))) { BugInstance bug = new BugI...
public void sawOpcode(int seen) { if (seen == GETSTATIC) { if (getClassConstantOperand().equals("java/lang/System") && (getNameConstantOperand().equals("out") || getNameConstantOperand() .equals("err"))) { BugInstance bug = new BugI...
diff --git a/src/fi/hackoid/BeerProjectile.java b/src/fi/hackoid/BeerProjectile.java index f28744c..6506b50 100644 --- a/src/fi/hackoid/BeerProjectile.java +++ b/src/fi/hackoid/BeerProjectile.java @@ -1,94 +1,94 @@ package fi.hackoid; import java.util.Random; import org.andengine.entity.sprite.AnimatedSprite; i...
true
true
public void createScene(VertexBufferObjectManager vertexBufferObjectManager, PhysicsWorld world, AnimatedSprite sprite, boolean right) { float projectileX = sprite.getX(); float projectileY = sprite.getY(); animatedSprite = new AnimatedSprite(projectileX, projectileY, textureRegion, vertexBufferObjectManager...
public void createScene(VertexBufferObjectManager vertexBufferObjectManager, PhysicsWorld world, AnimatedSprite sprite, boolean right) { float projectileX = sprite.getX() + sprite.getWidth() / 2; float projectileY = sprite.getY(); animatedSprite = new AnimatedSprite(projectileX, projectileY, textureRegion, v...
diff --git a/src/commons/org/codehaus/groovy/grails/support/GrailsTestSuite.java b/src/commons/org/codehaus/groovy/grails/support/GrailsTestSuite.java index dacc9bbb8..08095bc03 100644 --- a/src/commons/org/codehaus/groovy/grails/support/GrailsTestSuite.java +++ b/src/commons/org/codehaus/groovy/grails/support/GrailsTe...
true
true
public void runTest(Test test, TestResult result) { if (test instanceof TestCase) { beanFactory.autowireBeanProperties(test, AutowireCapableBeanFactory.AUTOWIRE_BY_TYPE, false); } test.run(result); }
public void runTest(Test test, TestResult result) { if (test instanceof TestCase) { beanFactory.autowireBeanProperties(test, AutowireCapableBeanFactory.AUTOWIRE_BY_NAME, false); } test.run(result); }
diff --git a/classes/test/FileHandle.java b/classes/test/FileHandle.java index 0310d68d..8ea9d76c 100644 --- a/classes/test/FileHandle.java +++ b/classes/test/FileHandle.java @@ -1,16 +1,16 @@ // read a local file package classes.test; import java.io.*; public class FileHandle { public static void main(String[] ...
true
true
public static void main(String[] args) { FileInputStream in = null; try { in = new FileInputStream("./classes/test/FileHandle.java"); in.read(); in.close(); in.read(); } catch (Exception e) { System.err.println(e.toString()); } }
public static void main(String[] args) { FileInputStream in = null; try { in = new FileInputStream("./classes/test/FileHandle.java"); in.read(); in.close(); in.read(); } catch (IOException e) { System.err.println("An IOException has occurred (expected)."); } }
diff --git a/src/lightbeam/editor/MapSettings.java b/src/lightbeam/editor/MapSettings.java index 9e1db54..5514238 100644 --- a/src/lightbeam/editor/MapSettings.java +++ b/src/lightbeam/editor/MapSettings.java @@ -1,150 +1,150 @@ package lightbeam.editor; import java.awt.event.MouseAdapter; import java.awt.event....
false
true
public MapSettings( MapArea maparea, int rows, int cols ) { this.maparea = maparea; panelSettings.setBorder( new TitledBorder( "Einstellungen:" ) ); panelSettings.setLayout( null ); JPanel pnlRows = new JPanel(); JPanel pnlCols = new JPanel(); pnlRows.setLayout( null ); pnlCols.setLayout( ...
public MapSettings( MapArea maparea, int rows, int cols ) { this.maparea = maparea; panelSettings.setBorder( new TitledBorder( "Einstellungen:" ) ); panelSettings.setLayout( null ); JPanel pnlRows = new JPanel(); JPanel pnlCols = new JPanel(); pnlRows.setLayout( null ); pnlCols.setLayout( ...