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/GnuBackgammon/src/it/alcacoop/backgammon/layers/MainMenuScreen.java b/GnuBackgammon/src/it/alcacoop/backgammon/layers/MainMenuScreen.java index 09870e9..585fb6e 100644 --- a/GnuBackgammon/src/it/alcacoop/backgammon/layers/MainMenuScreen.java +++ b/GnuBackgammon/src/it/alcacoop/backgammon/layers/MainMenuScr...
true
true
public MainMenuScreen(){ ClickListener cl = new ClickListener() { public void clicked(InputEvent event, float x, float y) { GnuBackgammon.fsm.processEvent(Events.BUTTON_CLICKED,((IconButton)event.getListenerActor()).getText().toString().toUpperCase()); }; }; stage.addListener(new ...
public MainMenuScreen(){ ClickListener cl = new ClickListener() { public void clicked(InputEvent event, float x, float y) { GnuBackgammon.fsm.processEvent(Events.BUTTON_CLICKED,((IconButton)event.getListenerActor()).getText().toString().toUpperCase()); }; }; stage.addListener(new ...
diff --git a/src/test/org/apache/hadoop/mapred/SortValidator.java b/src/test/org/apache/hadoop/mapred/SortValidator.java index cdaf5e195..ce5f85a27 100644 --- a/src/test/org/apache/hadoop/mapred/SortValidator.java +++ b/src/test/org/apache/hadoop/mapred/SortValidator.java @@ -1,577 +1,579 @@ /** * Licensed to the Ap...
false
true
static void checkRecords(Configuration defaults, Path sortInput, Path sortOutput) throws IOException { FileSystem fs = FileSystem.get(defaults); JobConf jobConf = new JobConf(defaults, RecordStatsChecker.class); jobConf.setJobName("sortvalidate-recordstats-checker"); ...
static void checkRecords(Configuration defaults, Path sortInput, Path sortOutput) throws IOException { FileSystem inputfs = sortInput.getFileSystem(defaults); FileSystem outputfs = sortOutput.getFileSystem(defaults); FileSystem defaultfs = FileSystem.get(defaults); ...
diff --git a/src/main/java/org/mozilla/gecko/background/healthreport/HealthReportGenerator.java b/src/main/java/org/mozilla/gecko/background/healthreport/HealthReportGenerator.java index ed5547e1a..7e6fb8335 100644 --- a/src/main/java/org/mozilla/gecko/background/healthreport/HealthReportGenerator.java +++ b/src/main/j...
true
true
protected JSONObject getDaysJSON(Environment currentEnvironment, SparseArray<Environment> envs, SparseArray<Field> fields, long since) throws JSONException { if (Logger.shouldLogVerbose(LOG_TAG)) { for (int i = 0; i < envs.size(); ++i) { Logger.trace(LOG_TAG, "Days environment " + envs.keyAt(i) + ":...
protected JSONObject getDaysJSON(Environment currentEnvironment, SparseArray<Environment> envs, SparseArray<Field> fields, long since) throws JSONException { if (Logger.shouldLogVerbose(LOG_TAG)) { for (int i = 0; i < envs.size(); ++i) { Logger.trace(LOG_TAG, "Days environment " + envs.keyAt(i) + ":...
diff --git a/htroot/IndexCreateIndexingQueue_p.java b/htroot/IndexCreateIndexingQueue_p.java index 1dd3f25e9..d95945bd0 100644 --- a/htroot/IndexCreateIndexingQueue_p.java +++ b/htroot/IndexCreateIndexingQueue_p.java @@ -1,240 +1,238 @@ // IndexCreateIndexingQueue_p.java // ------------------------------- // part of...
false
true
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { // return variable that accumulates replacements plasmaSwitchboard switchboard = (plasmaSwitchboard) env; serverObjects prop = new serverObjects(); prop.put("rejected", 0); int show...
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { // return variable that accumulates replacements plasmaSwitchboard switchboard = (plasmaSwitchboard) env; serverObjects prop = new serverObjects(); prop.put("rejected", 0); int show...
diff --git a/mpayments-help/mpayments-help-web/src/main/java/com/bluelotussoftware/example/jsf/DrvoBean.java b/mpayments-help/mpayments-help-web/src/main/java/com/bluelotussoftware/example/jsf/DrvoBean.java index 326cd53..7bf3596 100644 --- a/mpayments-help/mpayments-help-web/src/main/java/com/bluelotussoftware/example...
true
true
public DrvoBean() { root = new DefaultTreeNode("Root", null); TreeNode node0 = new DefaultTreeNode(new Podatak("Milan", "neki link"), root); TreeNode node1 = new DefaultTreeNode("Miodrag", root); TreeNode node2 = new DefaultTreeNode(new Podatak("Petar", "neki link"), root); TreeNode node00 = new DefaultTre...
public DrvoBean() { root = new DefaultTreeNode("Root", null); TreeNode node0 = new DefaultTreeNode(new Podatak("Milan", "neki link"), root); TreeNode node1 = new DefaultTreeNode(new Podatak("Miodrag", "neki link"), root); TreeNode node2 = new DefaultTreeNode(new Podatak("Petar", "neki link"), root); TreeNo...
diff --git a/src/minecraft/net/minecraft/src/EntityRenderer.java b/src/minecraft/net/minecraft/src/EntityRenderer.java index 4d52f468..9db6e93f 100644 --- a/src/minecraft/net/minecraft/src/EntityRenderer.java +++ b/src/minecraft/net/minecraft/src/EntityRenderer.java @@ -1,1559 +1,1559 @@ package net.minecraft.src; ...
true
true
public void renderWorld(float par1, long par2) { Shaders.beginRender(this.mc, par1, par2); //Spout Profiler.startSection("lightTex"); if (this.lightmapUpdateNeeded) { this.updateLightmap(); } GL11.glEnable(GL11.GL_CULL_FACE); GL11.glEnable(GL11.GL_DEPTH_TEST); if (this.mc.renderViewEntity == null) { ...
public void renderWorld(float par1, long par2) { Shaders.beginRender(this.mc, par1, par2); //Spout Profiler.startSection("lightTex"); if (this.lightmapUpdateNeeded) { this.updateLightmap(); } GL11.glEnable(GL11.GL_CULL_FACE); GL11.glEnable(GL11.GL_DEPTH_TEST); if (this.mc.renderViewEntity == null) { ...
diff --git a/srcj/com/sun/electric/tool/user/menus/FileMenu.java b/srcj/com/sun/electric/tool/user/menus/FileMenu.java index b2da2e17d..1a5a79174 100644 --- a/srcj/com/sun/electric/tool/user/menus/FileMenu.java +++ b/srcj/com/sun/electric/tool/user/menus/FileMenu.java @@ -1,2017 +1,2017 @@ /* -*- tab-width: 4 -*- * ...
false
true
static EMenu makeMenu() { openRecentLibs = new EMenu("Open Recent Library", new ArrayList<EMenuItem>()); /****************************** THE FILE MENU ******************************/ // mnemonic keys available: D T WXYZ return new EMenu("_File", new EMenuItem("_Ne...
static EMenu makeMenu() { openRecentLibs = new EMenu("Open Recent Library", new ArrayList<EMenuItem>()); /****************************** THE FILE MENU ******************************/ // mnemonic keys available: D T WXYZ return new EMenu("_File", new EMenuItem("_Ne...
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TCFTestSuite.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TCFTestSuite.java index a702964f1..64761c6fe 100644 --- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TCFTestSuite.jav...
false
true
public TCFTestSuite(final IPeer peer, final TestListener listener, final List<IPathMap.PathMapRule> path_map, final Map<String,ArrayList<IMemoryMap.MemoryRegion>> mem_map) throws IOException { this.listener = listener; pending_tests.add(new Runnable() { public void run() { ...
public TCFTestSuite(final IPeer peer, final TestListener listener, final List<IPathMap.PathMapRule> path_map, final Map<String,ArrayList<IMemoryMap.MemoryRegion>> mem_map) throws IOException { this.listener = listener; pending_tests.add(new Runnable() { public void run() { ...
diff --git a/iControlU/src/me/firebreath15/icontrolu/CheckVictim.java b/iControlU/src/me/firebreath15/icontrolu/CheckVictim.java index 8057ba7..e916850 100644 --- a/iControlU/src/me/firebreath15/icontrolu/CheckVictim.java +++ b/iControlU/src/me/firebreath15/icontrolu/CheckVictim.java @@ -1,32 +1,40 @@ package me.fireb...
false
true
public void run(){ if(v != null && c != null){ if(v.getWorld().getName().equalsIgnoreCase(c.getWorld().getName())){ if(v.getLocation().distance(c.getLocation()) > 25){ v.teleport(c); TitleAPI.sendTitle(v, 20, 20, 60, "�4TOO FAR AWAY", ""); } }else{ v.teleport(c); v.setGameMode(GameMod...
public void run(){ if(v != null && c != null){ if(v.hasMetadata("iCU_P")){ if(c.hasMetadata("iCU_H")){ if(v.getWorld().getName().equalsIgnoreCase(c.getWorld().getName())){ if(v.getLocation().distance(c.getLocation()) > 25){ v.teleport(c); TitleAPI.sendTitle(v, 20, 20, 60, "�4TOO FAR A...
diff --git a/src/gov/nih/nci/rembrandt/web/helper/WebGenomeHelper.java b/src/gov/nih/nci/rembrandt/web/helper/WebGenomeHelper.java index c1e4ad66..912ca286 100755 --- a/src/gov/nih/nci/rembrandt/web/helper/WebGenomeHelper.java +++ b/src/gov/nih/nci/rembrandt/web/helper/WebGenomeHelper.java @@ -1,284 +1,286 @@ package ...
false
true
public static String buildURL(ReportBean report, String sessionID, String hostURL) throws Exception { Resultant resultant = report.getResultant(); ResultsContainer resultsContainer = resultant.getResultsContainer(); CopyNumberSingleViewResultsContainer copyNumberContainer = null; C...
public static String buildURL(ReportBean report, String sessionID, String hostURL, List<String> specimenNames) throws Exception { Resultant resultant = report.getResultant(); ResultsContainer resultsContainer = resultant.getResultsContainer(); CopyNumberSingleViewResultsContainer copyNumbe...
diff --git a/plugins/org.eclipse.gmf.runtime.lite/src/org/eclipse/gmf/runtime/lite/services/ParserUtil.java b/plugins/org.eclipse.gmf.runtime.lite/src/org/eclipse/gmf/runtime/lite/services/ParserUtil.java index c601d1936..6e0b6669d 100644 --- a/plugins/org.eclipse.gmf.runtime.lite/src/org/eclipse/gmf/runtime/lite/servi...
true
true
public static Object parseValue(EAttribute feature, Object value) throws IllegalArgumentException { if (value == null) { throw new IllegalArgumentException(); } EDataType type = feature.getEAttributeType(); Class iClass = type.getInstanceClass(); if (Boolean.TYPE.equals(iClass) || Boolean.class.equals(iCl...
public static Object parseValue(EAttribute feature, Object value) throws IllegalArgumentException { if (value == null) { return null; } EDataType type = feature.getEAttributeType(); Class iClass = type.getInstanceClass(); if (Boolean.TYPE.equals(iClass) || Boolean.class.equals(iClass)) { if (value inst...
diff --git a/javafx.editor/src/org/netbeans/modules/javafx/editor/preview/JavaFXPreviewTopComponent.java b/javafx.editor/src/org/netbeans/modules/javafx/editor/preview/JavaFXPreviewTopComponent.java index 63f93e47..a23b12cb 100644 --- a/javafx.editor/src/org/netbeans/modules/javafx/editor/preview/JavaFXPreviewTopCompon...
true
true
public void run() { synchronized (JavaFXPreviewTopComponent.this) { if (pr != null) { pr.destroy(); timer = 0; task.schedule(150); return; } } if (oldD != null) { ...
public void run() { synchronized (JavaFXPreviewTopComponent.this) { if (pr != null) { pr.destroy(); timer = 0; task.schedule(150); return; } } if (oldD != null) { ...
diff --git a/jbpm-services/jbpm-kie-services/src/main/java/org/droolsjbpm/services/impl/form/FormProviderServiceImpl.java b/jbpm-services/jbpm-kie-services/src/main/java/org/droolsjbpm/services/impl/form/FormProviderServiceImpl.java index eebadefe1..0f3e7f420 100644 --- a/jbpm-services/jbpm-kie-services/src/main/java/o...
false
true
public String getFormDisplayTask(long taskId) { Task task = queryService.getTaskInstanceById(taskId); Map<String, Object> renderContext = new HashMap<String, Object>(); String processAssetPath = ""; Path processPath = null; if(task.getTaskData().getProcessId() != null && !tas...
public String getFormDisplayTask(long taskId) { Task task = queryService.getTaskInstanceById(taskId); Map<String, Object> renderContext = new HashMap<String, Object>(); String processAssetPath = ""; Path processPath = null; if(task.getTaskData().getProcessId() != null && !tas...
diff --git a/src/anchovy/Components/Component.java b/src/anchovy/Components/Component.java index a06482d..0552ddc 100644 --- a/src/anchovy/Components/Component.java +++ b/src/anchovy/Components/Component.java @@ -1,340 +1,342 @@ package anchovy.Components; import java.util.Iterator; import java.util.Random; impor...
false
true
public Component(String name, InfoPacket info){ outputsTo = new ArrayList<Component>(); receivesInputFrom = new ArrayList<Component>(); this.name = name; Pair<?> currentpair = null; Iterator<Pair<?>> pi = info.namedValues.iterator(); Label currentlabel = null; while(pi.hasNext()){ currentpair = pi....
public Component(String name, InfoPacket info){ outputsTo = new ArrayList<Component>(); receivesInputFrom = new ArrayList<Component>(); this.name = name; Pair<?> currentpair = null; Iterator<Pair<?>> pi = info.namedValues.iterator(); Label currentlabel = null; while(pi.hasNext()){ currentpair = pi....
diff --git a/src/main/java/com/cloudbees/run/CloudBeesAgent.java b/src/main/java/com/cloudbees/run/CloudBeesAgent.java index 951b88c..18ff98d 100644 --- a/src/main/java/com/cloudbees/run/CloudBeesAgent.java +++ b/src/main/java/com/cloudbees/run/CloudBeesAgent.java @@ -1,121 +1,125 @@ /* * Copyright 2010-2013, CloudB...
true
true
public static void loadSystemProperties(String propertiesFilePath) throws IOException { if (propertiesFilePath == null) { logger.severe("System properties file not defined with parameter " + "sys_prop"); return; } File propertyFile = new File(propertiesFilePath); ...
public static void loadSystemProperties(String propertiesFilePath) throws IOException { if (propertiesFilePath == null) { logger.severe("System properties file not defined with parameter " + "sys_prop"); return; } File propertyFile = new File(propertiesFilePath); ...
diff --git a/sphinx4/edu/cmu/sphinx/frontend/SimpleFrontEnd.java b/sphinx4/edu/cmu/sphinx/frontend/SimpleFrontEnd.java index 7d58453f6..2f0b2c1b6 100644 --- a/sphinx4/edu/cmu/sphinx/frontend/SimpleFrontEnd.java +++ b/sphinx4/edu/cmu/sphinx/frontend/SimpleFrontEnd.java @@ -1,104 +1,104 @@ /* * Copyright 1999-2002 Car...
true
true
public void initialize(String name, String context, String amName, DataSource dataSource) throws IOException { SphinxProperties props = SphinxProperties.getSphinxProperties(context); boolean useAcousticModelProperties = props.getBoolean (FrontEnd.PROP_USE_ACOUSTIC_MODEL_PROPERTIE...
public void initialize(String name, String context, String amName, DataSource dataSource) throws IOException { SphinxProperties props = SphinxProperties.getSphinxProperties(context); boolean useAcousticModelProperties = props.getBoolean (FrontEnd.PROP_USE_ACOUSTIC_MODEL_PROPERTIE...
diff --git a/java/de/dfki/lt/signalproc/util/DDSAudioInputStream.java b/java/de/dfki/lt/signalproc/util/DDSAudioInputStream.java index 53b4ac205..39e2c1833 100644 --- a/java/de/dfki/lt/signalproc/util/DDSAudioInputStream.java +++ b/java/de/dfki/lt/signalproc/util/DDSAudioInputStream.java @@ -1,232 +1,232 @@ /** * Co...
false
true
public int read(byte[] b, int off, int len) throws IOException { int nSamples = len/frameSize; int totalRead = 0; int currentPos = off; do { int toRead = nSamples-totalRead; if (toRead > sampleBuf.length) toRead = sampleBuf.length; int nRead = sour...
public int read(byte[] b, int off, int len) throws IOException { int nSamples = len/frameSize; int totalRead = 0; int currentPos = off; do { int toRead = nSamples-totalRead; if (toRead > sampleBuf.length) toRead = sampleBuf.length; int nRead = sour...
diff --git a/src/main/java/ch/o2it/weblounge/contentrepository/impl/endpoint/ContentRepositoryEndpoint.java b/src/main/java/ch/o2it/weblounge/contentrepository/impl/endpoint/ContentRepositoryEndpoint.java index 7c8c4f68e..b7ad40a77 100644 --- a/src/main/java/ch/o2it/weblounge/contentrepository/impl/endpoint/ContentRepo...
true
true
protected Response getResourceContent(HttpServletRequest request, final Resource<?> resource, final Language language) { // Check the parameters if (resource == null) throw new WebApplicationException(Status.BAD_REQUEST); // Is there an up-to-date, cached version on the client side? if (...
protected Response getResourceContent(HttpServletRequest request, final Resource<?> resource, final Language language) { // Check the parameters if (resource == null) throw new WebApplicationException(Status.BAD_REQUEST); // Is there an up-to-date, cached version on the client side? if (...
diff --git a/grisu-core/src/main/java/grisu/backend/model/fs/GroupFileSystemPlugin.java b/grisu-core/src/main/java/grisu/backend/model/fs/GroupFileSystemPlugin.java index be7b24e5..e3f56468 100644 --- a/grisu-core/src/main/java/grisu/backend/model/fs/GroupFileSystemPlugin.java +++ b/grisu-core/src/main/java/grisu/backe...
false
true
public GridFile createGridFile(String path, int recursiveLevels) throws RemoteFileSystemException { path = FileManager.removeTrailingSlash(path); // Thread.dumpStack(); if (recursiveLevels > 1) { throw new RuntimeException( "Recursion levels greater than 1 not supported yet"); } String rightPar...
public GridFile createGridFile(String path, int recursiveLevels) throws RemoteFileSystemException { path = FileManager.removeTrailingSlash(path); // Thread.dumpStack(); if (recursiveLevels > 1) { throw new RuntimeException( "Recursion levels greater than 1 not supported yet"); } String rightPar...
diff --git a/contentconnector-lucene/src/main/java/com/gentics/cr/lucene/search/LuceneRequestProcessor.java b/contentconnector-lucene/src/main/java/com/gentics/cr/lucene/search/LuceneRequestProcessor.java index 5e7e5f2d..e845c111 100644 --- a/contentconnector-lucene/src/main/java/com/gentics/cr/lucene/search/LuceneRequ...
false
true
public final Collection<CRResolvableBean> getObjects(final CRRequest request, final boolean doNavigation) throws CRException { UseCase ucGetObjects = startUseCase("LuceneRequestProcessor." + "getObjects(" + name + ")"); /** * search preparations (instantiate/validate all needed variables) */ UseCase uc...
public final Collection<CRResolvableBean> getObjects(final CRRequest request, final boolean doNavigation) throws CRException { UseCase ucGetObjects = startUseCase("LuceneRequestProcessor." + "getObjects(" + name + ")"); /** * search preparations (instantiate/validate all needed variables) */ UseCase uc...
diff --git a/tool/sakai-sdata-impl/src/main/java/org/sakaiproject/sdata/services/site/SiteAddToolFunction.java b/tool/sakai-sdata-impl/src/main/java/org/sakaiproject/sdata/services/site/SiteAddToolFunction.java index a97663d..ce052cd 100644 --- a/tool/sakai-sdata-impl/src/main/java/org/sakaiproject/sdata/services/site/...
true
true
public void call(Handler handler, HttpServletRequest request, HttpServletResponse response, Object target, ResourceDefinition rp) throws SDataException { SDataFunctionUtil.checkMethod(request.getMethod(), "POST"); try { Site site = (Site) target; Map<String, Object> map = new HashMap<String, Object>()...
public void call(Handler handler, HttpServletRequest request, HttpServletResponse response, Object target, ResourceDefinition rp) throws SDataException { SDataFunctionUtil.checkMethod(request.getMethod(), "POST"); try { Site site = (Site) target; Map<String, Object> map = new HashMap<String, Object>()...
diff --git a/DurationGoal.java b/DurationGoal.java index 7a6f7df..3136cc9 100644 --- a/DurationGoal.java +++ b/DurationGoal.java @@ -1,20 +1,20 @@ public class DurationGoal implements Goal { private double goal; private double startTime; public DurationGoal(double dur, Session session) { goal = dur*60; s...
true
true
public String getProgress(Session session) { int timeElapsed = (int)((goal - (session.getTimeElapsed() - startTime))); return String.format("%02d:%02d:%02d", (int)(timeElapsed / 3600), (int)(timeElapsed / 60) % 60, (int)(timeElapsed) % 60); }
public String getProgress(Session session) { int timeElapsed = (int)((goal - (session.getTimeElapsed() - startTime))); return String.format("%02d:%02d:%02d", timeElapsed / 3600, (timeElapsed / 60) % 60, timeElapsed % 60); }
diff --git a/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/scoping/index/IndexBasedScopeProviderTest.java b/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/scoping/index/IndexBasedScopeProviderTest.java index 478a06b03..c1620e859 100644 --- a/tests/org.eclipse.xtext.generator.tests/src/org...
true
true
public void testStuff() throws Exception { IndexAwareResourceSet set = get(IndexAwareResourceSet.class); URI uri = URI.createURI("classpath:/" + IndexAwareResourcesetTest.class.getName().replace('.', '/') + ".importuritestlanguage"); System.out.println(uri); set.getResource(uri, true); set.getResource...
public void testStuff() throws Exception { IndexAwareResourceSet set = get(IndexAwareResourceSet.class); set.setClasspathURIContext(getClass()); URI uri = URI.createURI("classpath:/" + IndexAwareResourcesetTest.class.getName().replace('.', '/') + ".importuritestlanguage"); System.out.println(uri); set...
diff --git a/src/blur-util/src/main/java/com/nearinfinity/blur/metrics/BlurMetrics.java b/src/blur-util/src/main/java/com/nearinfinity/blur/metrics/BlurMetrics.java index f2c79065..80a6a205 100644 --- a/src/blur-util/src/main/java/com/nearinfinity/blur/metrics/BlurMetrics.java +++ b/src/blur-util/src/main/java/com/near...
true
true
public void doUpdates(MetricsContext context) { synchronized (this) { long now = System.nanoTime(); float seconds = (now - _previous) / 1000000000.0f; _metricsRecord.setMetric("blockcache.hit", getPerSecond(blockCacheHit.getAndSet(0), seconds)); _metricsRecord.setMetric("blockcache.miss", ...
public void doUpdates(MetricsContext context) { synchronized (this) { long now = System.nanoTime(); float seconds = (now - _previous) / 1000000000.0f; _metricsRecord.setMetric("blockcache.hit", getPerSecond(blockCacheHit.getAndSet(0), seconds)); _metricsRecord.setMetric("blockcache.miss", ...
diff --git a/src/net/sf/freecol/common/model/LostCityRumour.java b/src/net/sf/freecol/common/model/LostCityRumour.java index fedee79e3..8e62e5ac3 100644 --- a/src/net/sf/freecol/common/model/LostCityRumour.java +++ b/src/net/sf/freecol/common/model/LostCityRumour.java @@ -1,361 +1,361 @@ /** * Copyright (C) 2002-20...
true
true
public RumourType chooseType(Unit unit, int difficulty, Random random) { Tile tile = getTile(); boolean allowLearn = unit != null && !unit.getType().getUnitTypesLearntInLostCity().isEmpty(); boolean isExpertScout = unit != null && unit.hasAbility("model.ability.expert...
public RumourType chooseType(Unit unit, int difficulty, Random random) { Tile tile = getTile(); boolean allowLearn = unit != null && !unit.getType().getUnitTypesLearntInLostCity().isEmpty(); boolean isExpertScout = unit != null && unit.hasAbility("model.ability.expert...
diff --git a/src/main/java/com/google/code/maven_replacer_plugin/file/FileUtils.java b/src/main/java/com/google/code/maven_replacer_plugin/file/FileUtils.java index 8680f59..31042db 100644 --- a/src/main/java/com/google/code/maven_replacer_plugin/file/FileUtils.java +++ b/src/main/java/com/google/code/maven_replacer_pl...
true
true
public void ensureFolderStructureExists(String file) { File outputFile = new File(file); if (outputFile.getParent() == null) { return; } if (!outputFile.isDirectory()) { File parentPath = new File(outputFile.getParent()); if (!parentPath.exists()) { parentPath.mkdirs(); } } else { throw n...
public void ensureFolderStructureExists(String file) { File outputFile = new File(file); if (outputFile.getParent() == null) { return; } if (!outputFile.isDirectory()) { File parentPath = new File(outputFile.getParent()); if (!parentPath.exists() && !parentPath.mkdirs()) { throw new Error("Error ...
diff --git a/txtfnnl-bin/src/main/java/txtfnnl/pipelines/GeneNormalization.java b/txtfnnl-bin/src/main/java/txtfnnl/pipelines/GeneNormalization.java index 232aafb..84cb687 100644 --- a/txtfnnl-bin/src/main/java/txtfnnl/pipelines/GeneNormalization.java +++ b/txtfnnl-bin/src/main/java/txtfnnl/pipelines/GeneNormalization....
false
true
public static void main(String[] arguments) { final CommandLineParser parser = new PosixParser(); final Options opts = new Options(); final String geneAnnotationNamespace = "gene"; CommandLine cmd = null; // standard pipeline options Pipeline.addLogHelpAndInputOptions(opts); Pipeline.addTi...
public static void main(String[] arguments) { final CommandLineParser parser = new PosixParser(); final Options opts = new Options(); final String geneAnnotationNamespace = "gene"; CommandLine cmd = null; // standard pipeline options Pipeline.addLogHelpAndInputOptions(opts); Pipeline.addTi...
diff --git a/deegree-core/src/main/java/org/deegree/rendering/r3d/opengl/JOGLChecker.java b/deegree-core/src/main/java/org/deegree/rendering/r3d/opengl/JOGLChecker.java index c485b0b168..926103e2b8 100644 --- a/deegree-core/src/main/java/org/deegree/rendering/r3d/opengl/JOGLChecker.java +++ b/deegree-core/src/main/java...
true
true
public static void check() throws UnsatisfiedLinkError { try { // check that JOGL's native libraries are available new GLCanvas(); } catch ( UnsatisfiedLinkError e ) { StringBuilder sb = new StringBuilder( "Cannot initialize JOGL (Java...
public static void check() throws UnsatisfiedLinkError { try { // check that JOGL's native libraries are available new GLCanvas(); } catch ( UnsatisfiedLinkError e ) { StringBuilder sb = new StringBuilder( "Cannot initialize JOGL (Java...
diff --git a/java/src/se/sveaekonomi/webpay/integration/hosted/payment/HostedPayment.java b/java/src/se/sveaekonomi/webpay/integration/hosted/payment/HostedPayment.java index 5fd38d7..299e6eb 100644 --- a/java/src/se/sveaekonomi/webpay/integration/hosted/payment/HostedPayment.java +++ b/java/src/se/sveaekonomi/webpay/i...
true
true
public String validateOrder() { String errors = ""; if (this.returnUrl.equals("")) { errors += "MISSING VALUE - Return url is required, setReturnUrl(...).\n"; } HostedOrderValidator validator = new HostedOrderValidator(); // Check if payment method is EU country, PaymentMethod: INVOICE or PAYMENTPLAN i...
public String validateOrder() { String errors = ""; if (this.returnUrl.equals("")) { errors += "MISSING VALUE - Return url is required, setReturnUrl(...).\n"; } HostedOrderValidator validator = new HostedOrderValidator(); // Check if payment method is EU country, PaymentMethod: INVOICE or PAYMENTPLAN i...
diff --git a/CompactSolarArrays/common/cpw/mods/compactsolars/Version.java b/CompactSolarArrays/common/cpw/mods/compactsolars/Version.java index ba7b87a..a55a595 100644 --- a/CompactSolarArrays/common/cpw/mods/compactsolars/Version.java +++ b/CompactSolarArrays/common/cpw/mods/compactsolars/Version.java @@ -1,35 +1,35 ...
true
true
static void init(Properties properties) { if (properties != null) { major = properties.getProperty("CompactSolars.build.major.number"); minor = properties.getProperty("CompactSolars.build.minor.number"); rev = properties.getProperty("CompactSolars.build.revision.number"); build = properties.getProperty...
static void init(Properties properties) { if (properties != null) { major = properties.getProperty("CompactSolars.build.major.number"); minor = properties.getProperty("CompactSolars.build.minor.number"); rev = properties.getProperty("CompactSolars.build.revision.number"); build = properties.getProperty...
diff --git a/java/src/com/android/inputmethod/latin/Settings.java b/java/src/com/android/inputmethod/latin/Settings.java index 1e2ef482..db8ca349 100644 --- a/java/src/com/android/inputmethod/latin/Settings.java +++ b/java/src/com/android/inputmethod/latin/Settings.java @@ -1,609 +1,611 @@ /* * Copyright (C) 2008 Th...
true
true
public void onCreate(Bundle icicle) { super.onCreate(icicle); setInputMethodSettingsCategoryTitle(R.string.language_selection_title); setSubtypeEnablerTitle(R.string.select_language); final Resources res = getResources(); final Context context = getActivityInternal(); ...
public void onCreate(Bundle icicle) { super.onCreate(icicle); setInputMethodSettingsCategoryTitle(R.string.language_selection_title); setSubtypeEnablerTitle(R.string.select_language); final Resources res = getResources(); final Context context = getActivityInternal(); ...
diff --git a/src/be/ibridge/kettle/trans/step/uniquerows/UniqueRowsMeta.java b/src/be/ibridge/kettle/trans/step/uniquerows/UniqueRowsMeta.java index 4a17e5db..7303e906 100644 --- a/src/be/ibridge/kettle/trans/step/uniquerows/UniqueRowsMeta.java +++ b/src/be/ibridge/kettle/trans/step/uniquerows/UniqueRowsMeta.java @@ -1...
true
true
private void readData(Node stepnode) throws KettleXMLException { try { countRows = "Y".equalsIgnoreCase(XMLHandler.getTagValue(stepnode, "count_rows")); //$NON-NLS-1$ //$NON-NLS-2$ countField = XMLHandler.getTagValue(stepnode, "count_field"); //$NON-NLS-1$ Node fields = XMLHandler.getSubNode(stepnode,...
private void readData(Node stepnode) throws KettleXMLException { try { countRows = "Y".equalsIgnoreCase(XMLHandler.getTagValue(stepnode, "count_rows")); //$NON-NLS-1$ //$NON-NLS-2$ countField = XMLHandler.getTagValue(stepnode, "count_field"); //$NON-NLS-1$ Node fields = XMLHandler.getSubNode(stepnode,...
diff --git a/src/main/java/com/cathive/fx/guice/GuiceApplication.java b/src/main/java/com/cathive/fx/guice/GuiceApplication.java index 7adc483..de97a1e 100755 --- a/src/main/java/com/cathive/fx/guice/GuiceApplication.java +++ b/src/main/java/com/cathive/fx/guice/GuiceApplication.java @@ -1,77 +1,75 @@ package com.cath...
false
true
public final void init() throws Exception { super.init(); final Class<GuiceApplication> clazz = GuiceApplication.class; final GuiceApplication instance = this; final Injector inj = createInjector(); if (inj == null) { throw new IllegalStateException("Injector h...
public final void init() throws Exception { super.init(); @SuppressWarnings("unchecked") final Class<GuiceApplication> clazz = (Class<GuiceApplication>) getClass(); final GuiceApplication instance = this; final Injector inj = createInjector(); if (inj == null) { ...
diff --git a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/ManifestElement.java b/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/ManifestElement.java index 2845a624..c261ac79 100644 --- a/bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/util/ManifestElement.java +++ b/bundles/org....
true
true
public static ManifestElement[] parseHeader(String header, String value) throws BundleException { if (value == null) return (null); ArrayList headerElements = new ArrayList(10); Tokenizer tokenizer = new Tokenizer(value); parseloop: while (true) { String next = tokenizer.getString(";,"); //$NON-NLS-1$ ...
public static ManifestElement[] parseHeader(String header, String value) throws BundleException { if (value == null) return (null); ArrayList headerElements = new ArrayList(10); Tokenizer tokenizer = new Tokenizer(value); parseloop: while (true) { String next = tokenizer.getString(";,"); //$NON-NLS-1$ ...
diff --git a/src/main/java/net/stuxcrystal/commandhandler/compat/bungee/BungeePluginBackend.java b/src/main/java/net/stuxcrystal/commandhandler/compat/bungee/BungeePluginBackend.java index d3b17ad..5884559 100644 --- a/src/main/java/net/stuxcrystal/commandhandler/compat/bungee/BungeePluginBackend.java +++ b/src/main/ja...
true
true
public void schedule(Runnable runnable) { // Fortunately this API supports scheduling asyncronous tasks. this.plugin.getProxy().getScheduler().runAsync(this.plugin, runnable); }
public void schedule(Runnable runnable) { // Fortunately this API supports scheduling asynchronous tasks. this.plugin.getProxy().getScheduler().runAsync(this.plugin, runnable); }
diff --git a/src/test/cli/cloudify/InstallApplicationWithOverridesFile.java b/src/test/cli/cloudify/InstallApplicationWithOverridesFile.java index 6907e7bf..70ddbbac 100644 --- a/src/test/cli/cloudify/InstallApplicationWithOverridesFile.java +++ b/src/test/cli/cloudify/InstallApplicationWithOverridesFile.java @@ -1,234...
true
true
public void applicationWithOverridesFilePostedDirectlyTest() throws IOException, DSLException, PackagingException, InterruptedException { // create application zip file final File applicationDir = new File(APPLICATION_DIR_PATH); final File overridesFile = new File(OVERRIDES_FILE_PATH); Application applicat...
public void applicationWithOverridesFilePostedDirectlyTest() throws IOException, DSLException, PackagingException, InterruptedException { // create application zip file final File applicationDir = new File(APPLICATION_DIR_PATH); final File overridesFile = new File(OVERRIDES_FILE_PATH); Application applicat...
diff --git a/WarpSuite/src/com/mrz/dyndns/server/warpsuite/WarpSuite.java b/WarpSuite/src/com/mrz/dyndns/server/warpsuite/WarpSuite.java index 4ad1da3..9eed6a5 100644 --- a/WarpSuite/src/com/mrz/dyndns/server/warpsuite/WarpSuite.java +++ b/WarpSuite/src/com/mrz/dyndns/server/warpsuite/WarpSuite.java @@ -1,163 +1,163 @@...
true
true
public void onEnable() { Util.initialize(this); Util.setDebugging(true); cs = new CommandSystem(this); getConfig().options().copyDefaults(true); saveConfig(); Config.load(getConfig()); playerManager = new PlayerManager(this); publicWarpManager = new PublicWarpManager(this); pendingWarpManag...
public void onEnable() { Util.initialize(this); Util.setDebugging(true); cs = new CommandSystem(this); getConfig().options().copyDefaults(true); saveConfig(); Config.load(getConfig()); playerManager = new PlayerManager(this); publicWarpManager = new PublicWarpManager(this); pendingWarpManag...
diff --git a/core/src/main/java/net/tomp2p/p2p/PeerMaker.java b/core/src/main/java/net/tomp2p/p2p/PeerMaker.java index 1729f8d9..ac10eb44 100644 --- a/core/src/main/java/net/tomp2p/p2p/PeerMaker.java +++ b/core/src/main/java/net/tomp2p/p2p/PeerMaker.java @@ -1,977 +1,972 @@ /* * Copyright 2012 Thomas Bocek * * L...
true
true
public Peer makeAndListen() throws IOException { if (behindFirewall == null) { behindFirewall = false; } if (channelServerConfiguration == null) { channelServerConfiguration = createDefaultChannelServerConfiguration(); } if (channelClientConfiguration == null) { channelClientConfiguration = create...
public Peer makeAndListen() throws IOException { if (behindFirewall == null) { behindFirewall = false; } if (channelServerConfiguration == null) { channelServerConfiguration = createDefaultChannelServerConfiguration(); } if (channelClientConfiguration == null) { channelClientConfiguration = create...
diff --git a/uk.ac.diamond.scisoft.analysis.rcp/src/uk/ac/diamond/scisoft/analysis/rcp/plotting/Plotting2DUI.java b/uk.ac.diamond.scisoft.analysis.rcp/src/uk/ac/diamond/scisoft/analysis/rcp/plotting/Plotting2DUI.java index 8daafef..96c5956 100644 --- a/uk.ac.diamond.scisoft.analysis.rcp/src/uk/ac/diamond/scisoft/analys...
false
true
public void processPlotUpdate(final DataBean dbPlot, boolean isUpdate) { Display.getDefault().syncExec(new Runnable() { @Override public void run() { Collection<DataSetWithAxisInformation> plotData = dbPlot.getData(); if (plotData != null) { Iterator<DataSetWithAxisInformation> iter = plotData.ite...
public void processPlotUpdate(final DataBean dbPlot, boolean isUpdate) { Display.getDefault().syncExec(new Runnable() { @Override public void run() { Collection<DataSetWithAxisInformation> plotData = dbPlot.getData(); if (plotData != null) { Iterator<DataSetWithAxisInformation> iter = plotData.ite...
diff --git a/bundles/org.eclipse.emf.emfstore.client/src/org/eclipse/emf/emfstore/internal/client/configuration/Behavior.java b/bundles/org.eclipse.emf.emfstore.client/src/org/eclipse/emf/emfstore/internal/client/configuration/Behavior.java index de280bcea..ecbf6b47b 100644 --- a/bundles/org.eclipse.emf.emfstore.client...
true
true
public ESChecksumErrorHandler getChecksumErrorHandler() { if (checksumErrorHandler == null) { ESExtensionPoint extensionPoint = new ESExtensionPoint( "org.eclipse.emf.emfstore.client.checksumErrorHandler"); ESExtensionElement elementWithHighestPriority = extensionPoint.getElementWithHighestPriority(); ...
public ESChecksumErrorHandler getChecksumErrorHandler() { if (checksumErrorHandler == null) { ESExtensionPoint extensionPoint = new ESExtensionPoint( "org.eclipse.emf.emfstore.client.checksumErrorHandler"); ESExtensionElement elementWithHighestPriority = extensionPoint.getElementWithHighestPriority(); ...
diff --git a/src/main/java/org/spout/api/inventory/ItemStack.java b/src/main/java/org/spout/api/inventory/ItemStack.java index 0aa4e85d1..cc534b190 100644 --- a/src/main/java/org/spout/api/inventory/ItemStack.java +++ b/src/main/java/org/spout/api/inventory/ItemStack.java @@ -1,390 +1,391 @@ /* * This file is part o...
true
true
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { short matId = in.readShort(); short matData = in.readShort(); material = MaterialRegistry.get(matId); if (matData != 0 && material != null) { material = material.getSubMaterial(matData); } amount = in.read...
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { short matId = in.readShort(); short matData = in.readShort(); material = MaterialRegistry.get(matId); if (matData != 0 && material != null) { material = material.getSubMaterial(matData); } amount = in.read...
diff --git a/QOptimizerP1/src/iterators/scanners/FileScan.java b/QOptimizerP1/src/iterators/scanners/FileScan.java index de4d66b..6cdd709 100644 --- a/QOptimizerP1/src/iterators/scanners/FileScan.java +++ b/QOptimizerP1/src/iterators/scanners/FileScan.java @@ -1,87 +1,88 @@ package iterators.scanners; import iterat...
true
true
public FileScan(Schema schema, HeapFile file) { this.setSchema(schema); this.file = file; this.tuple = new Tuple(schema); }
public FileScan(Schema schema, HeapFile file) { this.setSchema(schema); this.file = file; this.tuple = new Tuple(schema); this.scan = file.openScan(); }
diff --git a/aigilas/src/aigilas/dungeons/DungeonFloor.java b/aigilas/src/aigilas/dungeons/DungeonFloor.java index 9a63b324..c1e38bcc 100644 --- a/aigilas/src/aigilas/dungeons/DungeonFloor.java +++ b/aigilas/src/aigilas/dungeons/DungeonFloor.java @@ -1,219 +1,218 @@ package aigilas.dungeons; import aigilas.Aigilas;...
true
true
public void transferDungeonState() { for (Entity[] row : dungeon) { for (Entity tile : row) { if (tile != null) { if (!EntityCache.get().isReusable(tile.getEntityType())) { _contents.add(tile); } ...
public void transferDungeonState() { for (Entity[] row : dungeon) { for (Entity tile : row) { if (tile != null) { if (!EntityCache.get().isReusable(tile.getEntityType())) { _contents.add(tile); } ...
diff --git a/phone/com/android/internal/policy/impl/PhoneWindowManager.java b/phone/com/android/internal/policy/impl/PhoneWindowManager.java index 2f9faae..feb0717 100755 --- a/phone/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/phone/com/android/internal/policy/impl/PhoneWindowManager.java @@ -1,2242 ...
false
true
public int interceptKeyTq(RawInputEvent event, boolean screenIsOn) { int result = ACTION_PASS_TO_USER; final boolean isWakeKey = isWakeKeyTq(event); // If screen is off then we treat the case where the keyguard is open but hidden // the same as if it were open and in front. /...
public int interceptKeyTq(RawInputEvent event, boolean screenIsOn) { int result = ACTION_PASS_TO_USER; final boolean isWakeKey = isWakeKeyTq(event); // If screen is off then we treat the case where the keyguard is open but hidden // the same as if it were open and in front. /...
diff --git a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/EclipseConnector.java b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/EclipseConnector.java index 363c86595..d8ad02548 100644 --- a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/EclipseConnect...
false
true
public void transfer(HttpServletRequest req, HttpServletResponse resp) throws IOException { try { String url = getURL(req); if (url == null) return; // Redirect if the request includes PLUGINS_ROOT and is not a content request int index = url.lastIndexOf(HelpURLConnection.PLUGINS_ROOT); if (ind...
public void transfer(HttpServletRequest req, HttpServletResponse resp) throws IOException { try { String url = getURL(req); if (url == null) return; // Redirect if the request includes PLUGINS_ROOT and is not a content request int index = url.lastIndexOf(HelpURLConnection.PLUGINS_ROOT); if (ind...
diff --git a/enhancement-engines/lucenefstlinking/src/main/java/org/apache/stanbol/enhancer/engines/lucenefstlinking/FstLinkingEngine.java b/enhancement-engines/lucenefstlinking/src/main/java/org/apache/stanbol/enhancer/engines/lucenefstlinking/FstLinkingEngine.java index adee3fba4..3d9723dc4 100644 --- a/enhancement-e...
true
true
private int match(AnalysedText at, Collection<Tag> tags) { log.trace(" ... process matches for {} extracted Tags:",tags.size()); int matchCount = 0; String text = at.getSpan(); Iterator<Tag> tagIt = tags.iterator(); while(tagIt.hasNext()){ Tag tag = tagIt.next();...
private int match(AnalysedText at, Collection<Tag> tags) { log.trace(" ... process matches for {} extracted Tags:",tags.size()); int matchCount = 0; String text = at.getSpan(); Iterator<Tag> tagIt = tags.iterator(); while(tagIt.hasNext()){ Tag tag = tagIt.next();...
diff --git a/src/java/com/bizosys/hsearch/kv/dao/donotmodify/HSearchTableCombinerImpl.java b/src/java/com/bizosys/hsearch/kv/dao/donotmodify/HSearchTableCombinerImpl.java index 2ff1e3c..0eee1ce 100644 --- a/src/java/com/bizosys/hsearch/kv/dao/donotmodify/HSearchTableCombinerImpl.java +++ b/src/java/com/bizosys/hsearch/...
false
true
public final IHSearchTable buildTable(final String tableType) throws IOException { char thirdLetter = tableType.charAt(2); switch ( thirdLetter) { case 'I': //KVInteger if ( tableType.equals("KVInteger")) return new HSearchTableKVInteger(); return new HSearchTableKVIndex(); //HSearchTableKVIndex ...
public final IHSearchTable buildTable(final String tableType) throws IOException { char thirdLetter = tableType.charAt(2); switch ( thirdLetter) { case 'I': //KVInteger /** if ( tableType.equals("KVInteger")) return new HSearchTableKVInteger(); return new HSearchTableKVIndex(); //HSearchTableKVIn...
diff --git a/Game.java b/Game.java index 4be6449..a0a4805 100644 --- a/Game.java +++ b/Game.java @@ -1,717 +1,716 @@ // Copyright 2010 owners of the AI Challenge project // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may ...
true
true
public void DoTimeStep() { // Add ships to each non-neutral planet according to its growth rate. for (Planet p : planets) { if (p.Owner() > 0) { p.AddShips(p.GrowthRate()); } } // Advance all fleets by one time step. Collect the ones that are // arriving at their destination planets this t...
public void DoTimeStep() { // Add ships to each non-neutral planet according to its growth rate. for (Planet p : planets) { if (p.Owner() > 0) { p.AddShips(p.GrowthRate()); } } // Advance all fleets by one time step. Collect the ones that are // arriving at their destination planets this t...
diff --git a/sch-kp-web/src/main/java/hu/sch/kp/web/pages/group/EditGroupInfo.java b/sch-kp-web/src/main/java/hu/sch/kp/web/pages/group/EditGroupInfo.java index bfc7f264..ecba79f8 100644 --- a/sch-kp-web/src/main/java/hu/sch/kp/web/pages/group/EditGroupInfo.java +++ b/sch-kp-web/src/main/java/hu/sch/kp/web/pages/group/...
false
true
public EditGroupInfo(PageParameters parameters) { Object p = parameters.get("id"); try { id = Long.parseLong(p.toString()); } catch (NumberFormatException e) { setResponsePage(Index.class); } setHeaderLabelText("Csoport adatlap szerkesztése"); ...
public EditGroupInfo(PageParameters parameters) { Object p = parameters.get("id"); try { id = Long.parseLong(p.toString()); } catch (NumberFormatException e) { setResponsePage(Index.class); } setHeaderLabelText("Csoport adatlap szerkesztése"); ...
diff --git a/core/src/main/java/eu/scape_project/watch/scheduling/quartz/QuartzExecutionListener.java b/core/src/main/java/eu/scape_project/watch/scheduling/quartz/QuartzExecutionListener.java index 320b302..fdb7e6f 100644 --- a/core/src/main/java/eu/scape_project/watch/scheduling/quartz/QuartzExecutionListener.java ++...
false
true
public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException) { QuartzAdaptorJob job = (QuartzAdaptorJob) context.getJobInstance(); AdaptorPluginInterface adaptor = job.getAdaptorPlugin(); Boolean result = (Boolean) context.getResult(); if (result != null && result.boolea...
public void jobWasExecuted(JobExecutionContext context, JobExecutionException jobException) { QuartzAdaptorJob job = (QuartzAdaptorJob) context.getJobInstance(); AdaptorPluginInterface adaptor = job.getAdaptorPlugin(); Boolean result = (Boolean) context.getResult(); if (result != null && result.boolea...
diff --git a/webapp/WEB-INF/classes/org/makumba/parade/controller/FileAction.java b/webapp/WEB-INF/classes/org/makumba/parade/controller/FileAction.java index 9b5e70d..7232690 100644 --- a/webapp/WEB-INF/classes/org/makumba/parade/controller/FileAction.java +++ b/webapp/WEB-INF/classes/org/makumba/parade/controller/Fil...
false
true
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { String context = request.getParameter("context"); String path = request.getParameter("path"); String file = request.getParameter("fil...
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { String context = request.getParameter("context"); String path = request.getParameter("path"); String file = request.getParameter("fil...
diff --git a/src/com/android/email/activity/MessageViewFragment.java b/src/com/android/email/activity/MessageViewFragment.java index 88f1f22c..26c695a6 100644 --- a/src/com/android/email/activity/MessageViewFragment.java +++ b/src/com/android/email/activity/MessageViewFragment.java @@ -1,479 +1,480 @@ /* * Copyright...
true
true
public void onClick(View view) { if (!isMessageOpen()) { return; // Ignore. } switch (view.getId()) { case R.id.reply: mCallback.onReply(); return; case R.id.reply_all: mCallback.onReplyAll(); ...
public void onClick(View view) { if (!isMessageOpen()) { return; // Ignore. } switch (view.getId()) { case R.id.reply: mCallback.onReply(); return; case R.id.reply_all: mCallback.onReplyAll(); ...
diff --git a/src/aarddict/android/LookupActivity.java b/src/aarddict/android/LookupActivity.java index 6910861..6d8c307 100644 --- a/src/aarddict/android/LookupActivity.java +++ b/src/aarddict/android/LookupActivity.java @@ -1,368 +1,374 @@ /* This file is part of Aard Dictionary for Android <http://aarddict.org>. *...
true
true
void initUI() { getWindow().requestFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setContentView(R.layout.lookup); timer = new Timer(); listView = (ListView)findViewById(R.id.lookupResult); ...
void initUI() { getWindow().requestFeature(Window.FEATURE_INDETERMINATE_PROGRESS); setContentView(R.layout.lookup); timer = new Timer(); listView = (ListView)findViewById(R.id.lookupResult); ...
diff --git a/astrid/src/com/todoroo/astrid/service/UpgradeService.java b/astrid/src/com/todoroo/astrid/service/UpgradeService.java index dac2d6ac5..0f4471ce7 100644 --- a/astrid/src/com/todoroo/astrid/service/UpgradeService.java +++ b/astrid/src/com/todoroo/astrid/service/UpgradeService.java @@ -1,614 +1,612 @@ /** ...
false
true
public void showChangeLog(Context context, int from) { if(!(context instanceof Activity) || from == 0) return; Preferences.clear(TagCaseMigrator.PREF_SHOW_MIGRATION_ALERT); Preferences.clear(AstridPreferences.P_UPGRADE_FROM); StringBuilder changeLog = new StringBuilder(...
public void showChangeLog(Context context, int from) { if(!(context instanceof Activity) || from == 0) return; Preferences.clear(TagCaseMigrator.PREF_SHOW_MIGRATION_ALERT); Preferences.clear(AstridPreferences.P_UPGRADE_FROM); StringBuilder changeLog = new StringBuilder(...
diff --git a/src/cz/robyer/gamework/activity/BaseGameActivity.java b/src/cz/robyer/gamework/activity/BaseGameActivity.java index 41bdea8..39eef1f 100644 --- a/src/cz/robyer/gamework/activity/BaseGameActivity.java +++ b/src/cz/robyer/gamework/activity/BaseGameActivity.java @@ -1,85 +1,88 @@ package cz.robyer.gamework.a...
true
true
private void initButtons() { final OnClickListener listener = new OnClickListener() { @Override public void onClick(View v) { Class<?> cls = null; if (v.getId() == R.id.btn_map) cls = GameMapActivity.class; else if (v.getId() == R.id.btn_messages) cls = GameMessagesActivity.class; ...
private void initButtons() { final OnClickListener listener = new OnClickListener() { @Override public void onClick(View v) { Class<?> cls = null; if (v.getId() == R.id.btn_map) cls = GameMapActivity.class; else if (v.getId() == R.id.btn_messages) cls = GameMessagesActivity.class; ...
diff --git a/src/com/id/ui/editor/TextPanel.java b/src/com/id/ui/editor/TextPanel.java index 0cde5d0..0f6d66e 100644 --- a/src/com/id/ui/editor/TextPanel.java +++ b/src/com/id/ui/editor/TextPanel.java @@ -1,62 +1,79 @@ package com.id.ui.editor; import java.awt.Color; import java.awt.Dimension; import java.awt.Fon...
true
true
public void paint(Graphics g) { super.paint(g); App.configureFont(g); int fontDescentPx = g.getFontMetrics().getDescent(); int fontWidthPx = g.getFontMetrics().getWidths()[70]; int fontHeightPx = g.getFontMetrics().getHeight(); int linesHigh = (int) Math.floor(g.getClipBounds().getHeight() / ...
public void paint(Graphics g) { super.paint(g); App.configureFont(g); int fontDescentPx = g.getFontMetrics().getDescent(); int fontWidthPx = g.getFontMetrics().getWidths()[70]; int fontHeightPx = g.getFontMetrics().getHeight(); int linesHigh = (int) Math.floor(g.getClipBounds().getHeight() / ...
diff --git a/tools/src/main/java/com/bazaarvoice/jolt/DiffyTool.java b/tools/src/main/java/com/bazaarvoice/jolt/DiffyTool.java index db3f913..ce56ec3 100644 --- a/tools/src/main/java/com/bazaarvoice/jolt/DiffyTool.java +++ b/tools/src/main/java/com/bazaarvoice/jolt/DiffyTool.java @@ -1,135 +1,135 @@ package com.bazaar...
false
true
public static void main( String[] args ) { ArgumentParser parser = ArgumentParsers.newArgumentParser( "diffy" ) .description( "Jolt CLI Diffy Tool. This tool will ingest two JSON inputs (from files or standard input) and " + "perform the Jolt Diffy operation to detect...
public static void main( String[] args ) { ArgumentParser parser = ArgumentParsers.newArgumentParser( "diffy" ) .description( "Jolt CLI Diffy Tool. This tool will ingest two JSON inputs (from files or standard input) and " + "perform the Jolt Diffy operation to detect...
diff --git a/src/com/android/ex/photo/PhotoViewActivity.java b/src/com/android/ex/photo/PhotoViewActivity.java index aa8029e..1ba81a8 100644 --- a/src/com/android/ex/photo/PhotoViewActivity.java +++ b/src/com/android/ex/photo/PhotoViewActivity.java @@ -1,543 +1,541 @@ /* * Copyright (C) 2011 Google Inc. * Licensed...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final ActivityManager mgr = (ActivityManager) getApplicationContext(). getSystemService(Activity.ACTIVITY_SERVICE); sMemoryClass = mgr.getMemoryClass(); Intent mIntent = getInte...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); final ActivityManager mgr = (ActivityManager) getApplicationContext(). getSystemService(Activity.ACTIVITY_SERVICE); sMemoryClass = mgr.getMemoryClass(); Intent mIntent = getInte...
diff --git a/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/ruby/RubyTokenScanner.java b/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/ruby/RubyTokenScanner.java index dafdbcdd..c33982f3 100644 --- a/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/ruby/RubyTokenScanner.java ...
true
true
public IToken nextToken() { if (fSavedToken != null) { IToken returnToken = fSavedToken; fSavedToken = null; return returnToken; } oldOffset = getOffset(); tokenLength = 0; IToken returnValue = getToken(IRubyColorConstants.RUBY_DEFAULT); boolean isEOF = false; try { isEOF = !lexer.advance(); ...
public IToken nextToken() { if (fSavedToken != null) { IToken returnToken = fSavedToken; fSavedToken = null; return returnToken; } oldOffset = getOffset(); tokenLength = 0; IToken returnValue = getToken(IRubyColorConstants.RUBY_DEFAULT); boolean isEOF = false; try { isEOF = !lexer.advance(); ...
diff --git a/src/application/TimeTableManager.java b/src/application/TimeTableManager.java index 94bcc20..22526bd 100644 --- a/src/application/TimeTableManager.java +++ b/src/application/TimeTableManager.java @@ -1,196 +1,197 @@ package application; import java.sql.SQLException; import java.text.SimpleDateFormat; ...
true
true
private Date calcSimilarDate(List<Transport> transportList, Date searchDate) { List<Transport> rightDow = new LinkedList<Transport>(); SimpleDateFormat dowFormat = new SimpleDateFormat("E"); String searchDow = dowFormat.format(searchDate); for (Transport transport : transportList) { String tran...
private Date calcSimilarDate(List<Transport> transportList, Date searchDate) { List<Transport> rightDow = new LinkedList<Transport>(); SimpleDateFormat dowFormat = new SimpleDateFormat("E"); String searchDow = dowFormat.format(searchDate); for (Transport transport : transportList) { String tran...
diff --git a/tubular-core/src/main/java/org/trancecode/xproc/step/XsltStepProcessor.java b/tubular-core/src/main/java/org/trancecode/xproc/step/XsltStepProcessor.java index 1065670a..b3cfc60e 100644 --- a/tubular-core/src/main/java/org/trancecode/xproc/step/XsltStepProcessor.java +++ b/tubular-core/src/main/java/org/tr...
true
true
protected void execute(final StepInput input, final StepOutput output) { final XdmNode sourceDocument = input.readNode(XProcPorts.SOURCE); assert sourceDocument != null; final String providedOutputBaseUri = input.getOptionValue(XProcOptions.OUTPUT_BASE_URI); final URI outputBase...
protected void execute(final StepInput input, final StepOutput output) { final XdmNode sourceDocument = input.readNode(XProcPorts.SOURCE); assert sourceDocument != null; final String providedOutputBaseUri = input.getOptionValue(XProcOptions.OUTPUT_BASE_URI); final URI outputBase...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/PopupInspectAction.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/PopupInspectAction.java index e2569ce08..c509607b1 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/PopupIn...
true
true
protected void showPopup(final IEvaluationResult result) { final InformationPresenter infoPresenter = new InformationPresenter(new IInformationControlCreator() { public IInformationControl createInformationControl(Shell parent) { IWorkbenchPage page = JDIDebugUIPlugin.getActivePage(); expression = new Jav...
protected void showPopup(final IEvaluationResult result) { final InformationPresenter infoPresenter = new InformationPresenter(new IInformationControlCreator() { public IInformationControl createInformationControl(Shell parent) { IWorkbenchPage page = JDIDebugUIPlugin.getActivePage(); expression = new Jav...
diff --git a/sch-pek-web/src/main/java/hu/sch/web/kp/user/UserHistory.java b/sch-pek-web/src/main/java/hu/sch/web/kp/user/UserHistory.java index 5e47ae11..745929bb 100644 --- a/sch-pek-web/src/main/java/hu/sch/web/kp/user/UserHistory.java +++ b/sch-pek-web/src/main/java/hu/sch/web/kp/user/UserHistory.java @@ -1,169 +1,...
false
true
private void initComponents() { User user; if (id == null) { id = getSession().getUserId(); } user = userManager.findUserById(id, true); if (user == null) { logger.warn("Not founded user for UserHistory page with id: " + id); error("A megad...
private void initComponents() { User user; if (id == null) { id = getSession().getUserId(); } user = userManager.findUserById(id, true); if (user == null) { logger.warn("Not founded user for UserHistory page with id: " + id); error("A megad...
diff --git a/tchat/src/serveur/Serveur.java b/tchat/src/serveur/Serveur.java index ba6d36b..06f2faf 100644 --- a/tchat/src/serveur/Serveur.java +++ b/tchat/src/serveur/Serveur.java @@ -1,85 +1,85 @@ /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package serveur;...
true
true
public String request(String str) { char parseChar = ' '; int indiceToParse; indiceToParse = str.indexOf(parseChar); String subStr = str.substring(0, indiceToParse); switch (subStr){ case "connect": return "l'utilisateur s'est conn...
public String request(String str) { char parseChar = ' '; int indiceToParse; indiceToParse = str.indexOf(parseChar); String subStr = str.substring(0, indiceToParse); switch (subStr){ case "connect": return "l'utilisateur s'est conn...
diff --git a/src/main/java/org/basex/query/item/Str.java b/src/main/java/org/basex/query/item/Str.java index c6c418b8e..eaeb30a8a 100644 --- a/src/main/java/org/basex/query/item/Str.java +++ b/src/main/java/org/basex/query/item/Str.java @@ -1,113 +1,109 @@ package org.basex.query.item; import static org.basex.data....
true
true
public final String toString() { final ByteList tb = new ByteList(); tb.add('"'); for(final byte v : val) { switch(v) { case '&': tb.add(E_AMP); break; case '>': tb.add(E_GT); break; case '<': tb.add(E_LT); break; default: tb.add(v); } } return tb.add('"...
public final String toString() { final ByteList tb = new ByteList(); tb.add('"'); for(final byte v : val) { if(v == '&') tb.add(E_AMP); else tb.add(v); } return tb.add('"').toString(); }
diff --git a/user/src/main/java/org/gwtmpv/widgets/form/lines/TextBoxBaseFormLine.java b/user/src/main/java/org/gwtmpv/widgets/form/lines/TextBoxBaseFormLine.java index 3389e97c..eb08861e 100644 --- a/user/src/main/java/org/gwtmpv/widgets/form/lines/TextBoxBaseFormLine.java +++ b/user/src/main/java/org/gwtmpv/widgets/f...
true
true
public void bind(final FormPresenter p, PropertyGroup all, Binder binder) { id = p.getId() + "-" + Inflector.camelize(property.getName()); textBox.getIsElement().setId(id); textBox.addKeyUpHandler(new KeyUpHandler() { public void onKeyUp(KeyUpEvent event) { if (event.getNativeKeyCode() == KE...
public void bind(final FormPresenter p, PropertyGroup all, Binder binder) { id = p.getId() + "-" + Inflector.camelize(property.getName()); textBox.getIsElement().setId(id); errorList.getIsElement().setId(id + "-errors"); textBox.addKeyUpHandler(new KeyUpHandler() { public void onKeyUp(KeyUpEvent...
diff --git a/drools-api/src/main/java/org/drools/runtime/rule/ConsequenceException.java b/drools-api/src/main/java/org/drools/runtime/rule/ConsequenceException.java index e5ef83bf..8ab0e3a0 100644 --- a/drools-api/src/main/java/org/drools/runtime/rule/ConsequenceException.java +++ b/drools-api/src/main/java/org/drools/...
true
true
public ConsequenceException(final Throwable rootCause, final Rule rule) { super( rootCause ); this.rule = rule; }
public ConsequenceException(final Throwable rootCause, final Rule rule) { super( "rule: " + rule.getName() + "\n", rootCause ); this.rule = rule; }
diff --git a/src/main/java/me/desht/scrollingmenusign/commands/RemoveViewCommand.java b/src/main/java/me/desht/scrollingmenusign/commands/RemoveViewCommand.java index ab14233..aee13ef 100644 --- a/src/main/java/me/desht/scrollingmenusign/commands/RemoveViewCommand.java +++ b/src/main/java/me/desht/scrollingmenusign/com...
false
true
public boolean execute(Plugin plugin, CommandSender sender, String[] args) { SMSView view = null; if (args.length == 2 && args[0].equals("-view")) { // detaching a view by view name view = SMSView.getView(args[1]); } else if (args.length == 2 && args[0].equals("-loc")) { // detaching a view by location...
public boolean execute(Plugin plugin, CommandSender sender, String[] args) { SMSView view = null; if (args.length == 2 && args[0].equals("-view")) { // detaching a view by view name view = SMSView.getView(args[1]); } else if (args.length == 2 && args[0].equals("-loc")) { // detaching a view by location...
diff --git a/java/src/org/broadinstitute/sting/playground/gatk/walkers/annotator/TranscriptToInfo.java b/java/src/org/broadinstitute/sting/playground/gatk/walkers/annotator/TranscriptToInfo.java index 2033da591..37d5048cc 100755 --- a/java/src/org/broadinstitute/sting/playground/gatk/walkers/annotator/TranscriptToInfo....
false
true
private void generateOutputRecordsForROD(TranscriptTableRecord parsedTranscriptRod, TreeMap<String, String> result) throws IOException { //Transcripts that don't produce proteins are indicated in transcript by cdsStart == cdsEnd //These will be handled by generating only one record, with haploty...
private void generateOutputRecordsForROD(TranscriptTableRecord parsedTranscriptRod, TreeMap<String, String> result) throws IOException { //Transcripts that don't produce proteins are indicated in transcript by cdsStart == cdsEnd //These will be handled by generating only one record, with haploty...
diff --git a/source/de/anomic/yacy/yacySeedDB.java b/source/de/anomic/yacy/yacySeedDB.java index 30432731e..82bc391f0 100644 --- a/source/de/anomic/yacy/yacySeedDB.java +++ b/source/de/anomic/yacy/yacySeedDB.java @@ -1,1070 +1,1071 @@ // yacySeedDB.java // ------------------------------------- // (C) by Michael Pet...
true
true
public yacySeed lookupByIP( final InetAddress peerIP, final boolean lookupConnected, final boolean lookupDisconnected, final boolean lookupPotential ) { if (peerIP == null) return null; yacySeed seed = null; // l...
public yacySeed lookupByIP( final InetAddress peerIP, final boolean lookupConnected, final boolean lookupDisconnected, final boolean lookupPotential ) { if (peerIP == null) return null; yacySeed seed = null; // l...
diff --git a/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/project/E4NewProjectWizard.java b/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tools/wizards/project/E4NewProjectWizard.java index 24c84c3d..e7a1434e 100644 --- a/bundles/org.eclipse.e4.tools/src/org/eclipse/e4/internal/tool...
false
true
public void createApplicationResources(IProject project, IProgressMonitor monitor) { Map<String, String> map = fApplicationPage.getData(); if (map == null || map.get(NewApplicationWizardPage.PRODUCT_NAME) == null) return; // If the project has invalid characters, the plug-in name would replace them wi...
public void createApplicationResources(IProject project, IProgressMonitor monitor) { Map<String, String> map = fApplicationPage.getData(); if (map == null || map.get(NewApplicationWizardPage.PRODUCT_NAME) == null) return; // If the project has invalid characters, the plug-in name would replace them wi...
diff --git a/webapp/src/main/java/uk/ac/ebi/arrayexpress/servlets/FlatFileTransformationServlet.java b/webapp/src/main/java/uk/ac/ebi/arrayexpress/servlets/FlatFileTransformationServlet.java index 99577c82..39d8492a 100644 --- a/webapp/src/main/java/uk/ac/ebi/arrayexpress/servlets/FlatFileTransformationServlet.java +++...
false
true
protected void doAuthenticatedRequest( HttpServletRequest request , HttpServletResponse response , RequestType requestType , List<String> authUserIDs ) throws ServletException, IOException { RegexHelper PARSE_ARGUMENTS_REGEX = new RegexHelper("/([^/]+)...
protected void doAuthenticatedRequest( HttpServletRequest request , HttpServletResponse response , RequestType requestType , List<String> authUserIDs ) throws ServletException, IOException { RegexHelper PARSE_ARGUMENTS_REGEX = new RegexHelper("/([^/]+)...
diff --git a/cli/src/main/java/com/gooddata/processor/GdcDI.java b/cli/src/main/java/com/gooddata/processor/GdcDI.java index 0247ad70..464eec83 100644 --- a/cli/src/main/java/com/gooddata/processor/GdcDI.java +++ b/cli/src/main/java/com/gooddata/processor/GdcDI.java @@ -1,1493 +1,1498 @@ /* * Copyright (c) 2009, Goo...
false
true
public GdcDI(CommandLine ln, Properties defaults) { try { cliParams = parse(ln, defaults); if(cliParams.containsKey(CLI_PARAM_TIMEZONE[0])) { String timezone = cliParams.get(CLI_PARAM_TIMEZONE[0]); if(timezone != null && timezone.length()>0) { ...
public GdcDI(CommandLine ln, Properties defaults) { try { cliParams = parse(ln, defaults); if(cliParams.containsKey(CLI_PARAM_TIMEZONE[0])) { String timezone = cliParams.get(CLI_PARAM_TIMEZONE[0]); if(timezone != null && timezone.length()>0) { ...
diff --git a/hopper/src/main/java/org/atomhopper/abdera/WorkspaceHandler.java b/hopper/src/main/java/org/atomhopper/abdera/WorkspaceHandler.java index a42437e5..be4622c4 100644 --- a/hopper/src/main/java/org/atomhopper/abdera/WorkspaceHandler.java +++ b/hopper/src/main/java/org/atomhopper/abdera/WorkspaceHandler.java @...
true
true
public TargetAwareAbstractCollectionAdapter getAnsweringAdapter(RequestContext rc) { final String feedSpec = rc.getTarget().getParameter(TargetResolverField.FEED.toString()); TargetAwareAbstractCollectionAdapter collectionAdapter = null; if(!StringUtils.isBlank(feedSpec)) { ...
public TargetAwareAbstractCollectionAdapter getAnsweringAdapter(RequestContext rc) { final String feedSpec = rc.getTarget().getParameter(TargetResolverField.FEED.toString()); TargetAwareAbstractCollectionAdapter collectionAdapter = null; if(!StringUtils.isBlank(feedSpec)) { ...
diff --git a/OrderProcessorService/OrderProcessorServiceV1Impl/src/nl/tudelft/ewi/st/atlantis/tudelft/v1/services/orderprocessorservice/impl/OrderProcessManager.java b/OrderProcessorService/OrderProcessorServiceV1Impl/src/nl/tudelft/ewi/st/atlantis/tudelft/v1/services/orderprocessorservice/impl/OrderProcessManager.java...
false
true
public void processAndCompleteOrder(Order order) throws DAOException { if (logger.isDebugEnabled()) { logger .debug("ProcessOrder.processAndCompleteOrder(OrderDataModel) \nOrderID :" + order.getOrderID() + "\nOrderType :" + order.getOrderType() + "\nSymbol :" + order.ge...
public void processAndCompleteOrder(Order order) throws DAOException { if (logger.isDebugEnabled()) { logger .debug("ProcessOrder.processAndCompleteOrder(OrderDataModel) \nOrderID :" + order.getOrderID() + "\nOrderType :" + order.getOrderType() + "\nSymbol :" + order.ge...
diff --git a/bindings/servicemix-truezip/src/main/java/org/apache/servicemix/truezip/TrueZipPollerEndpoint.java b/bindings/servicemix-truezip/src/main/java/org/apache/servicemix/truezip/TrueZipPollerEndpoint.java index ca27426f..f4e4be3d 100644 --- a/bindings/servicemix-truezip/src/main/java/org/apache/servicemix/truez...
true
true
protected void pollFile(final File aFile) { if (logger.isDebugEnabled()) { logger.debug("Scheduling file " + aFile + " for processing"); } getExecutor().execute(new Runnable() { public void run() { String uri = file.toURI().relativize(aFile.toURI()).to...
protected void pollFile(final File aFile) { if (logger.isDebugEnabled()) { logger.debug("Scheduling file " + aFile + " for processing"); } getExecutor().execute(new Runnable() { public void run() { String uri = file.toURI().relativize(aFile.toURI()).to...
diff --git a/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/tools/fitting/PeakFittingTool.java b/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/tools/fitting/PeakFittingTool.java index b0c30fce7..5f6e857c1 100644 --- a/org.dawb.workbench.plotting/src/org/dawb/workbench/plotting/tools/fitting/P...
true
true
protected void createActions() { final Action createNewSelection = new Action("New fit selection.", IAction.AS_PUSH_BUTTON) { public void run() { createNewFit(); } }; createNewSelection.setImageDescriptor(Activator.getImageDescriptor("icons/plot-tool-peak-fit.png")); getSite().getActionBars().getT...
protected void createActions() { final Action createNewSelection = new Action("New fit selection.", IAction.AS_PUSH_BUTTON) { public void run() { createNewFit(); } }; createNewSelection.setImageDescriptor(Activator.getImageDescriptor("icons/plot-tool-peak-fit.png")); getSite().getActionBars().getT...
diff --git a/src/pse11/misc/ExecutionHandler.java b/src/pse11/misc/ExecutionHandler.java index eb91b26..7ade4ca 100755 --- a/src/pse11/misc/ExecutionHandler.java +++ b/src/pse11/misc/ExecutionHandler.java @@ -1,232 +1,228 @@ package misc; import java.io.File; import java.io.IOException; import java.util.ArrayList...
false
true
public void verify(String source) { this.parse(source); if(this.ast == null) { return; } this.messagesystem.clear(MessageCategories.VERIFYERROR); if(!new File(Settings.getInstance().getVerifierPath()).exists()) { this.messagesystem.addMessage(MessageCategories.VERIFYERROR, -1, "Please specify a p...
public void verify(String source) { this.parse(source); if(this.ast == null) { return; } this.messagesystem.clear(MessageCategories.VERIFYERROR); if(!new File(Settings.getInstance().getVerifierPath()).exists()) { this.messagesystem.addMessage(MessageCategories.VERIFYERROR, -1, "Please specify a p...
diff --git a/plugins/com.python.pydev.refactoring/src/com/python/pydev/refactoring/search/FindOccurrencesSearchQuery.java b/plugins/com.python.pydev.refactoring/src/com/python/pydev/refactoring/search/FindOccurrencesSearchQuery.java index 766251bdd..b16fdb8c1 100644 --- a/plugins/com.python.pydev.refactoring/src/com/py...
true
true
public IStatus run(IProgressMonitor monitor) throws OperationCanceledException { try { req.pushMonitor(monitor); Map<Tuple<String, IFile>, HashSet<ASTEntry>> occurrences; occurrences = pyRefactoring.findAllOccurrences(req); if(occurrences == null){ ...
public IStatus run(IProgressMonitor monitor) throws OperationCanceledException { try { req.pushMonitor(monitor); Map<Tuple<String, IFile>, HashSet<ASTEntry>> occurrences; occurrences = pyRefactoring.findAllOccurrences(req); if(occurrences == null){ ...
diff --git a/src/test/java/com/concursive/connect/web/modules/common/social/geotagging/utils/USAGeocodeAPITest.java b/src/test/java/com/concursive/connect/web/modules/common/social/geotagging/utils/USAGeocodeAPITest.java index 02379ea..eb3aa20 100644 --- a/src/test/java/com/concursive/connect/web/modules/common/social/...
true
true
public void testUSAGeocode() throws Exception { USAddressGeocoder geo = new USAddressGeocoder(); geo.setAddress("223 East City Hall Avenue"); geo.setCity("Norfolk"); geo.setState("VA"); geo.setZip("23510"); boolean result = geo.geocode(); if (result) { // Only allows 5,000 tries per ...
public void testUSAGeocode() throws Exception { USAddressGeocoder geo = new USAddressGeocoder(); geo.setAddress("223 East City Hall Avenue"); geo.setCity("Norfolk"); geo.setState("VA"); geo.setZip("23510"); boolean result = geo.geocode(); if (result) { // Only allows 5,000 tries per ...
diff --git a/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java b/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java index cadaba010..26827e211 100644 --- a/continuum-core/src/main/java/org/apache/maven/continuum/DefaultContinuum.java +++ b/continuum-core/src/main/j...
true
true
protected ContinuumProjectBuildingResult executeAddProjectsFromMetadataActivity( String metadataUrl, String projectBuilderId, int projectGroupId, ...
protected ContinuumProjectBuildingResult executeAddProjectsFromMetadataActivity( String metadataUrl, String projectBuilderId, int projectGroupId, ...
diff --git a/dropwizard-core/src/main/java/com/yammer/dropwizard/cli/ServerCommand.java b/dropwizard-core/src/main/java/com/yammer/dropwizard/cli/ServerCommand.java index 9bb89783d..70af298b5 100644 --- a/dropwizard-core/src/main/java/com/yammer/dropwizard/cli/ServerCommand.java +++ b/dropwizard-core/src/main/java/com/...
false
true
protected void run(AbstractService<T> service, T configuration, CommandLine params) throws Exception { final Environment environment = new Environment(); service.initializeWithBundles(configuration, environment); final Server server = new Server...
protected void run(AbstractService<T> service, T configuration, CommandLine params) throws Exception { final Environment environment = new Environment(); service.initializeWithBundles(configuration, environment); final Server server = new Server...
diff --git a/src/android/LocationUpdateService.java b/src/android/LocationUpdateService.java index 2501038..d7dfc19 100644 --- a/src/android/LocationUpdateService.java +++ b/src/android/LocationUpdateService.java @@ -1,602 +1,602 @@ package com.tenforwardconsulting.cordova.bgloc; import java.util.List; import or...
true
true
public void onLocationChanged(Location location) { Log.d(TAG, "- onLocationChanged: " + location.getLatitude() + "," + location.getLongitude() + ", accuracy: " + location.getAccuracy() + ", isMoving: " + isMoving + ", speed: " + location.getSpeed()); if (isDebugging) { Toast.makeText(thi...
public void onLocationChanged(Location location) { Log.d(TAG, "- onLocationChanged: " + location.getLatitude() + "," + location.getLongitude() + ", accuracy: " + location.getAccuracy() + ", isMoving: " + isMoving + ", speed: " + location.getSpeed()); if (isDebugging) { Toast.makeText(thi...
diff --git a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/servlet/AjaxServlet.java b/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/servlet/AjaxServlet.java index 7feb65dc..2fe05a9c 100644 --- a/software/ncitbrowser/src/java/gov/nih/nci/evs/browser/servlet/AjaxServlet.java +++ b/software/ncitbrowser/src...
false
true
public static void create_vs_tree(HttpServletRequest request, HttpServletResponse response, int view) { response.setContentType("text/html"); PrintWriter out = null; try { out = response.getWriter(); } catch (Exception ex) { ex.printStackTrace(); return; } String mes...
public static void create_vs_tree(HttpServletRequest request, HttpServletResponse response, int view) { response.setContentType("text/html"); PrintWriter out = null; try { out = response.getWriter(); } catch (Exception ex) { ex.printStackTrace(); return; } String mes...
diff --git a/android/TapJoyPlugin.java b/android/TapJoyPlugin.java index 358a45c..df0b4c3 100644 --- a/android/TapJoyPlugin.java +++ b/android/TapJoyPlugin.java @@ -1,105 +1,105 @@ package com.tealeaf.plugin.plugins; import java.util.Map; import org.json.JSONObject; import org.json.JSONArray; import org.json.JSONE...
false
true
public void onCreate(Activity activity, Bundle savedInstanceState) { PackageManager manager = activity.getBaseContext().getPackageManager(); String[] keys = {"tapJoyAppID", "tapJoySecretKey"}; try { Bundle meta = manager.getApplicationInfo(activity.getApplicationContext().getPackageName(), PackageManager...
public void onCreate(Activity activity, Bundle savedInstanceState) { PackageManager manager = activity.getBaseContext().getPackageManager(); String[] keys = {"tapjoyAppID", "tapjoySecretKey"}; try { Bundle meta = manager.getApplicationInfo(activity.getApplicationContext().getPackageName(), PackageManager...
diff --git a/src/com/android/settings/inputmethod/UserDictionaryAddWordContents.java b/src/com/android/settings/inputmethod/UserDictionaryAddWordContents.java index d33f8c34a..68b5c482f 100644 --- a/src/com/android/settings/inputmethod/UserDictionaryAddWordContents.java +++ b/src/com/android/settings/inputmethod/UserDi...
true
true
public ArrayList<LocaleRenderer> getLocalesList(final Activity activity) { final TreeSet<String> locales = UserDictionaryList.getUserDictionaryLocalesSet(activity); // Remove our locale if it's in, because we're always gonna put it at the top locales.remove(mLocale); // mLocale may not be nu...
public ArrayList<LocaleRenderer> getLocalesList(final Activity activity) { final TreeSet<String> locales = UserDictionaryList.getUserDictionaryLocalesSet(activity); // Remove our locale if it's in, because we're always gonna put it at the top locales.remove(mLocale); // mLocale may not be nu...
diff --git a/src/java/davmail/exchange/XMLStreamUtil.java b/src/java/davmail/exchange/XMLStreamUtil.java index 5c34c45..fb20071 100644 --- a/src/java/davmail/exchange/XMLStreamUtil.java +++ b/src/java/davmail/exchange/XMLStreamUtil.java @@ -1,61 +1,63 @@ package davmail.exchange; import javax.xml.stream.XMLInputFac...
false
true
public static Map<String,Map<String,String>> getElementContentsAsMap(InputStream inputStream, String rowName, String idName) throws IOException { Map<String,Map<String,String>> results = new HashMap<String,Map<String,String>>(); Map<String, String> item = null; String currentElement = null; ...
public static Map<String, Map<String, String>> getElementContentsAsMap(InputStream inputStream, String rowName, String idName) throws IOException { Map<String, Map<String, String>> results = new HashMap<String, Map<String, String>>(); Map<String, String> item = null; String currentElement = ...
diff --git a/src/main/java/webboards/client/games/scs/SCSBoard.java b/src/main/java/webboards/client/games/scs/SCSBoard.java index b20030c..42ac5ad 100644 --- a/src/main/java/webboards/client/games/scs/SCSBoard.java +++ b/src/main/java/webboards/client/games/scs/SCSBoard.java @@ -1,161 +1,161 @@ package webboards.clie...
true
true
public static int[] calculateOdds(SCSHex target, Collection<SCSHex> attacking, Hex targetPosition) { List<CounterInfo> defending = target.getPieces(); float defence = getDefenceRawSum(defending); float defenceModifier = target.getDefenceCombatModifier(); defence *= defenceModifier; float attack = getAttackRa...
public static int[] calculateOdds(SCSHex target, Collection<SCSHex> attacking, Hex targetPosition) { List<CounterInfo> defending = target.getPieces(); float defence = getDefenceRawSum(defending); float defenceModifier = target.getDefenceCombatModifier(); defence *= defenceModifier; float attack = getAttackRa...
diff --git a/src/NFAGenerator.java b/src/NFAGenerator.java index 1b91d94..f73cc1a 100644 --- a/src/NFAGenerator.java +++ b/src/NFAGenerator.java @@ -1,492 +1,496 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.Map; /** * * @author andrew * */ public class NFAGenerator { pri...
false
true
private boolean rexp2(){ if(DEBUG)System.out.println("rexp2()"); int state1 = entry_ind-1; if(peekChar()=='('){ if(match('(')&&rexp()&&match(')')){ int state2 = entry_ind-2; rexp2_tail(); if(toggleStar){ TableRow nextRow = new TableRow(new HashMap<String,ArrayList<TableRow>>(), Integer.toStri...
private boolean rexp2(){ if(DEBUG)System.out.println("rexp2()"); int state1 = entry_ind-1; if(peekChar()=='('){ if(match('(')&&rexp()&&match(')')){ int state2 = entry_ind-2; rexp2_tail(); if(toggleStar){ TableRow nextRow = new TableRow(new HashMap<String,ArrayList<TableRow>>(), Integer.toStri...
diff --git a/src/gui/NuevoJuzgado.java b/src/gui/NuevoJuzgado.java index faeb1d1..b646836 100644 --- a/src/gui/NuevoJuzgado.java +++ b/src/gui/NuevoJuzgado.java @@ -1,61 +1,61 @@ package gui; import net.rim.device.api.ui.component.Dialog; import persistence.Persistence; import core.Juzgado; public class NuevoJ...
true
true
public void guardarJuzgado() throws Exception { if (_screen.isGuardado()) { Persistence guardado = null; try { guardado = new Persistence(); } catch (Exception e) { Dialog.alert(e.toString()); } _juzgado = new Juzgado(_screen.getNombre(), _screen.getCiudad(), _screen.getDireccion(), _scre...
public void guardarJuzgado() throws Exception { if (_screen.isGuardado()) { Persistence guardado = null; try { guardado = new Persistence(); } catch (Exception e) { Dialog.alert(e.toString()); } _juzgado = new Juzgado(_screen.getNombre(), _screen.getCiudad(), _screen.getDireccion(), _scre...
diff --git a/db/src/main/java/com/psddev/dari/db/SqlDatabase.java b/db/src/main/java/com/psddev/dari/db/SqlDatabase.java index bf0005e9..5fc1dcc1 100644 --- a/db/src/main/java/com/psddev/dari/db/SqlDatabase.java +++ b/db/src/main/java/com/psddev/dari/db/SqlDatabase.java @@ -1,2354 +1,2353 @@ package com.psddev.dari.db...
true
true
protected void doSaves(Connection connection, boolean isImmediate, List<State> states) throws SQLException { List<State> indexStates = null; for (State state1 : states) { if (Boolean.TRUE.equals(state1.getExtra(SKIP_INDEX_STATE_EXTRA))) { indexStates = new ArrayList<State...
protected void doSaves(Connection connection, boolean isImmediate, List<State> states) throws SQLException { List<State> indexStates = null; for (State state1 : states) { if (Boolean.TRUE.equals(state1.getExtra(SKIP_INDEX_STATE_EXTRA))) { indexStates = new ArrayList<State...
diff --git a/deegree-services/deegree-services-wms/src/main/java/org/deegree/services/wms/controller/capabilities/Capabilities130XMLAdapter.java b/deegree-services/deegree-services-wms/src/main/java/org/deegree/services/wms/controller/capabilities/Capabilities130XMLAdapter.java index cf68a18df1..b06419c4e9 100644 --- a...
true
true
private void writeLayers( XMLStreamWriter writer, Layer layer ) throws XMLStreamException { if ( layer.getTitle() == null || !layer.isAvailable() ) { return; } writer.writeStartElement( WMSNS, "Layer" ); if ( layer.isQueryable() ) { ...
private void writeLayers( XMLStreamWriter writer, Layer layer ) throws XMLStreamException { if ( layer.getTitle() == null || !layer.isAvailable() ) { return; } writer.writeStartElement( WMSNS, "Layer" ); if ( layer.isQueryable() ) { ...
diff --git a/containers/glassfish-remote-3/src/main/java/org/jboss/arquillian/container/glassfish/remote_3/GlassFishJSR88RemoteContainer.java b/containers/glassfish-remote-3/src/main/java/org/jboss/arquillian/container/glassfish/remote_3/GlassFishJSR88RemoteContainer.java index b6922886..06d81368 100644 --- a/container...
true
true
public ContainerMethodExecutor deploy(Context context, Archive<?> archive) throws DeploymentException { if (WebArchive.class.isInstance(archive)) { //ArchivePath webXmlPath = ArchivePaths.create("/WEB-INF/web.xml"); //if (!archive.contains(webXmlPath)) //{ // ...
public ContainerMethodExecutor deploy(Context context, Archive<?> archive) throws DeploymentException { if (WebArchive.class.isInstance(archive)) { //ArchivePath webXmlPath = ArchivePaths.create("/WEB-INF/web.xml"); //if (!archive.contains(webXmlPath)) //{ // ...
diff --git a/src/com/android/contacts/PhoneCallDetailsHelper.java b/src/com/android/contacts/PhoneCallDetailsHelper.java index 15bd25eef..09122c582 100644 --- a/src/com/android/contacts/PhoneCallDetailsHelper.java +++ b/src/com/android/contacts/PhoneCallDetailsHelper.java @@ -1,208 +1,208 @@ /* * Copyright (C) 2011 ...
false
true
public void setPhoneCallDetails(PhoneCallDetailsViews views, PhoneCallDetails details, boolean isHighlighted) { // Display up to a given number of icons. views.callTypeIcons.clear(); int count = details.callTypes.length; for (int index = 0; index < count && index < MAX_CA...
public void setPhoneCallDetails(PhoneCallDetailsViews views, PhoneCallDetails details, boolean isHighlighted) { // Display up to a given number of icons. views.callTypeIcons.clear(); int count = details.callTypes.length; for (int index = 0; index < count && index < MAX_CA...
diff --git a/pixi/src/main/java/org/openpixi/pixi/ui/Particle2DPanel.java b/pixi/src/main/java/org/openpixi/pixi/ui/Particle2DPanel.java index 9e5bda7c..3cc4d81a 100644 --- a/pixi/src/main/java/org/openpixi/pixi/ui/Particle2DPanel.java +++ b/pixi/src/main/java/org/openpixi/pixi/ui/Particle2DPanel.java @@ -1,478 +1,478 ...
false
true
public void writePosition() { writePosition =! writePosition; if(writePosition) { s.f.clear(); ConstantForce force = new ConstantForce(); force.bz = - 0.23; // -ConstantsSI.g; //force.gy = -1; //force.drag = 0.08; s.f.add(force); InitialConditions.createRandomParticles(s.getWidth(), s.getHei...
public void writePosition() { writePosition =! writePosition; if(writePosition) { s.f.clear(); ConstantForce force = new ConstantForce(); force.bz = - 0.23; // -ConstantsSI.g; //force.gy = -1; //force.drag = 0.08; s.f.add(force); s.particles = InitialConditions.createRandomParticles(s.getWid...
diff --git a/src/org/flowvisor/message/FVStatisticsReply.java b/src/org/flowvisor/message/FVStatisticsReply.java index 1e52836..b897e0e 100644 --- a/src/org/flowvisor/message/FVStatisticsReply.java +++ b/src/org/flowvisor/message/FVStatisticsReply.java @@ -1,124 +1,124 @@ package org.flowvisor.message; import java....
true
true
public void classifyFromSwitch(FVClassifier fvClassifier) { FVLog.log(LogLevel.WARN, fvClassifier, "START Processing stats reply ", this); XidPairWithMessage pair = FVMessageUtil .untranslateXidMsg(this, fvClassifier); if (pair == null) { FVLog.log(LogLevel.WARN, fvClassifier, "dropping unclassifiabl...
public void classifyFromSwitch(FVClassifier fvClassifier) { FVLog.log(LogLevel.WARN, fvClassifier, "START Processing stats reply ", this.getXid(), this); XidPairWithMessage pair = FVMessageUtil .untranslateXidMsg(this, fvClassifier); if (pair == null) { FVLog.log(LogLevel.WARN, fvClassifier, "droppin...
diff --git a/src/main/java/org/apache/thrift/maven/AbstractThriftMojo.java b/src/main/java/org/apache/thrift/maven/AbstractThriftMojo.java index 11a1c5e..b5cbb64 100644 --- a/src/main/java/org/apache/thrift/maven/AbstractThriftMojo.java +++ b/src/main/java/org/apache/thrift/maven/AbstractThriftMojo.java @@ -1,365 +1,36...
true
true
public void execute() throws MojoExecutionException, MojoFailureException { checkParameters(); final File thriftSourceRoot = getThriftSourceRoot(); if (thriftSourceRoot.exists()) { try { ImmutableSet<File> thriftFiles = findThriftFilesInDirectory(thriftSourceRoot)...
public void execute() throws MojoExecutionException, MojoFailureException { checkParameters(); final File thriftSourceRoot = getThriftSourceRoot(); if (thriftSourceRoot.exists()) { try { ImmutableSet<File> thriftFiles = findThriftFilesInDirectory(thriftSourceRoot)...
diff --git a/src/de/sofd/viskit/test/listselmodel/BoundedListSelectionModel.java b/src/de/sofd/viskit/test/listselmodel/BoundedListSelectionModel.java index 1b70c5e..d8f6b21 100644 --- a/src/de/sofd/viskit/test/listselmodel/BoundedListSelectionModel.java +++ b/src/de/sofd/viskit/test/listselmodel/BoundedListSelectionMo...
true
true
protected void clipToBounds() { final int min = getMinSelectionIndex(); if (min == -1) { return; } final int max = getMaxSelectionIndex(); runWithValueAdjusting(new Runnable() { @Override public void run() { removeSelectionI...
protected void clipToBounds() { final int min = getMinSelectionIndex(); if (min == -1) { return; } final int max = getMaxSelectionIndex(); runWithValueAdjusting(new Runnable() { @Override public void run() { if (getLowerBoun...
diff --git a/framework/src/org/apache/cordova/PluginManager.java b/framework/src/org/apache/cordova/PluginManager.java index 90f03072..40918f5a 100755 --- a/framework/src/org/apache/cordova/PluginManager.java +++ b/framework/src/org/apache/cordova/PluginManager.java @@ -1,438 +1,430 @@ /* Licensed to the Apach...
true
true
public void loadPlugins() { int id = this.ctx.getActivity().getResources().getIdentifier("config", "xml", this.ctx.getActivity().getPackageName()); if (id == 0) { this.pluginConfigurationMissing(); //We have the error, we need to exit without crashing! return; ...
public void loadPlugins() { int id = this.ctx.getActivity().getResources().getIdentifier("config", "xml", this.ctx.getActivity().getPackageName()); if (id == 0) { this.pluginConfigurationMissing(); //We have the error, we need to exit without crashing! return; ...
diff --git a/src/org/bouncycastle/cms/CMSEnvelopedDataParser.java b/src/org/bouncycastle/cms/CMSEnvelopedDataParser.java index 6884d7cc..42539d51 100644 --- a/src/org/bouncycastle/cms/CMSEnvelopedDataParser.java +++ b/src/org/bouncycastle/cms/CMSEnvelopedDataParser.java @@ -1,249 +1,250 @@ package org.bouncycastle.cms...
false
true
public CMSEnvelopedDataParser( InputStream envelopedData) throws CMSException, IOException { super(envelopedData); this._attrNotRead = true; this._envelopedData = new EnvelopedDataParser((Asn1Sequence)_contentInfo.getContent(BerTag.SEQUENCE)); // // ...
public CMSEnvelopedDataParser( InputStream envelopedData) throws CMSException, IOException { super(envelopedData); this._attrNotRead = true; this._envelopedData = new EnvelopedDataParser((Asn1Sequence)_contentInfo.getContent(BerTag.SEQUENCE)); // // ...