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/ginco-impl/src/test/java/fr/mcc/ginco/tests/services/ThesaurusTermServiceTest.java b/ginco-impl/src/test/java/fr/mcc/ginco/tests/services/ThesaurusTermServiceTest.java index 829b308d..51966d9a 100644 --- a/ginco-impl/src/test/java/fr/mcc/ginco/tests/services/ThesaurusTermServiceTest.java +++ b/ginco-impl/s...
false
true
public final void testimportSandBoxTerms() { String importContent = "Terme1\nTerme accentué2"; String thesID = "fakeId"; String[] termsSplit = importContent.split("\n|\r\n"); Thesaurus thes = new Thesaurus(); thes.setIdentifier(thesID); when(thesaurusDAO.getById(thesID)).thenRetu...
public final void testimportSandBoxTerms() { String importContent = "Terme1\nTerme accentué2\nTerme <b>XSS</b>"; String thesID = "fakeId"; String[] termsSplit = importContent.split("\n|\r\n"); Thesaurus thes = new Thesaurus(); thes.setIdentifier(thesID); when(thesaurusDAO.getById...
diff --git a/src/com/kkbox/toolkit/ui/OnInfiniteViewPagerPageChangeListener.java b/src/com/kkbox/toolkit/ui/OnInfiniteViewPagerPageChangeListener.java index c31c650..f0e2729 100644 --- a/src/com/kkbox/toolkit/ui/OnInfiniteViewPagerPageChangeListener.java +++ b/src/com/kkbox/toolkit/ui/OnInfiniteViewPagerPageChangeListe...
false
true
public void onPageSelected(int position) { InfiniteViewPagerAdapter adapter = (InfiniteViewPagerAdapter)viewPager.getAdapter(); if (adapter.isLoopEnabled()) { if (position == 0) { viewPager.setCurrentItem(viewPager.getAdapter().getCount() - 2, false); return; } if (position == viewPager.getAdapter...
public void onPageSelected(int position) { InfiniteViewPagerAdapter adapter = (InfiniteViewPagerAdapter)viewPager.getAdapter(); if (adapter.isLoopEnabled()) { if (position == 0) { viewPager.setCurrentItem(viewPager.getAdapter().getCount() - 2, false); return; } if (position == viewPager.getAdapter...
diff --git a/rhogen-wizard/src/rhogenwizard/buildfile/SdkYmlFile.java b/rhogen-wizard/src/rhogenwizard/buildfile/SdkYmlFile.java index cdebd0b..095e9ab 100644 --- a/rhogen-wizard/src/rhogenwizard/buildfile/SdkYmlFile.java +++ b/rhogen-wizard/src/rhogenwizard/buildfile/SdkYmlFile.java @@ -1,148 +1,148 @@ package rhogen...
true
true
public List<String> getBbVersions() { List<String> versions = new ArrayList<String>(); Map pathItems = (Map) super.getObject("env", "paths"); Set keys = pathItems.keySet(); for (Object s : keys) { Object item = pathItems.get(s); if (item instanceof Map) { Map mapItem = (Map)item; ...
public List<String> getBbVersions() { List<String> versions = new ArrayList<String>(); Map pathItems = (Map) super.getObject("env", "paths"); Set keys = pathItems.keySet(); for (Object s : keys) { Object item = pathItems.get(s); if (item instanceof Map) { Map mapItem = (Map)item; ...
diff --git a/src/main/java/org/omo/cash/Server.java b/src/main/java/org/omo/cash/Server.java index fb9fb50..7f05bc7 100644 --- a/src/main/java/org/omo/cash/Server.java +++ b/src/main/java/org/omo/cash/Server.java @@ -1,569 +1,569 @@ package org.omo.cash; import java.math.BigDecimal; import java.rmi.server.UID; im...
true
true
public Server(String serverName, ConnectionFactory internalConnectionFactory, ConnectionFactory externalConnectionFactory) throws JMSException, SecurityException, NoSuchMethodException { long start = System.currentTimeMillis(); internalConnection = internalConnectionFactory.createConnection(); internalConn...
public Server(String serverName, ConnectionFactory internalConnectionFactory, ConnectionFactory externalConnectionFactory) throws JMSException, SecurityException, NoSuchMethodException { long start = System.currentTimeMillis(); internalConnection = internalConnectionFactory.createConnection(); internalConn...
diff --git a/BCPGradebook/src/bcp/web/bcpgradebook/GradeViewActivity.java b/BCPGradebook/src/bcp/web/bcpgradebook/GradeViewActivity.java index 309285c..18503ee 100644 --- a/BCPGradebook/src/bcp/web/bcpgradebook/GradeViewActivity.java +++ b/BCPGradebook/src/bcp/web/bcpgradebook/GradeViewActivity.java @@ -1,218 +1,225 @@...
false
true
private String loadGradesFromNetwork(String urlString) throws IOException, JSONException { InputStream stream = null; String rawJson = ""; try { stream = downloadUrl(urlString); rawJson = convertStreamToString(stream); } finally { if(stream != null) stream.close(); } System.out.println(rawJ...
private String loadGradesFromNetwork(String urlString) throws IOException, JSONException { InputStream stream = null; String rawJson = ""; try { stream = downloadUrl(urlString); rawJson = convertStreamToString(stream); } finally { if(stream != null) stream.close(); } System.out.println(rawJ...
diff --git a/atlas-web/src/test/java/ae3/model/AtlasGeneTest.java b/atlas-web/src/test/java/ae3/model/AtlasGeneTest.java index e2a39b310..0af338689 100644 --- a/atlas-web/src/test/java/ae3/model/AtlasGeneTest.java +++ b/atlas-web/src/test/java/ae3/model/AtlasGeneTest.java @@ -1,160 +1,160 @@ /* * Copyright 2008-2010...
false
true
public void test_getRankedGeneExperiments() { List<Experiment> list = atlasStatisticsQueryService.getExperimentsSortedByPvalueTRank( Long.parseLong(gene.getGeneId()), StatisticsType.UP_DOWN, null, null, !StatisticsQueryUtils.EFO, -1, -1); assertNotNull(list); assertEquals(li...
public void test_getRankedGeneExperiments() { List<Experiment> list = atlasStatisticsQueryService.getExperimentsSortedByPvalueTRank( Long.parseLong(gene.getGeneId()), StatisticsType.UP_DOWN, null, null, !StatisticsQueryUtils.EFO, -1, -1); assertNotNull(list); assertTrue(list...
diff --git a/src/org/encog/engine/network/flat/FlatNetworkRBF.java b/src/org/encog/engine/network/flat/FlatNetworkRBF.java index 895025589..8cac4af58 100644 --- a/src/org/encog/engine/network/flat/FlatNetworkRBF.java +++ b/src/org/encog/engine/network/flat/FlatNetworkRBF.java @@ -1,121 +1,121 @@ /* * Encog(tm) Core ...
true
true
public FlatNetworkRBF(final int inputCount, final int hiddenCount, final int outputCount, RadialBasisFunction[] rbf) { FlatLayer[] layers = new FlatLayer[3]; this.rbf = rbf; double[] slope = new double[1]; slope[0] = 1.0; layers[0] = new FlatLayer(new ActivationLinear(), inputCount, 0.0, slope); ...
public FlatNetworkRBF(final int inputCount, final int hiddenCount, final int outputCount, RadialBasisFunction[] rbf) { FlatLayer[] layers = new FlatLayer[3]; this.rbf = rbf; double[] slope = new double[1]; slope[0] = 1.0; layers[0] = new FlatLayer(new ActivationLinear(), inputCount, 0.0, slope); ...
diff --git a/src/com/wolvencraft/prison/PrisonSuite.java b/src/com/wolvencraft/prison/PrisonSuite.java index ad09ec1..f8c78d6 100644 --- a/src/com/wolvencraft/prison/PrisonSuite.java +++ b/src/com/wolvencraft/prison/PrisonSuite.java @@ -1,177 +1,179 @@ package com.wolvencraft.prison; import java.io.File; import ja...
true
true
public void onEnable() { getConfig().options().copyDefaults(true); saveConfig(); settings = new Settings(this); getLanguageData().options().copyDefaults(true); saveLanguageData(); language = new Language(this); Message.debug("1. Loaded plugin configuration"); worldEditPlugin = (WorldEditPlugin) t...
public void onEnable() { getConfig().options().copyDefaults(true); saveConfig(); settings = new Settings(this); getLanguageData().options().copyDefaults(true); saveLanguageData(); language = new Language(this); Message.debug("1. Loaded plugin configuration"); worldEditPlugin = (WorldEditPlugin) t...
diff --git a/SPiDSDK/src/com/schibsted/android/sdk/SPiDAuthorizationRequest.java b/SPiDSDK/src/com/schibsted/android/sdk/SPiDAuthorizationRequest.java index 84ada5b..850456d 100644 --- a/SPiDSDK/src/com/schibsted/android/sdk/SPiDAuthorizationRequest.java +++ b/SPiDSDK/src/com/schibsted/android/sdk/SPiDAuthorizationRequ...
true
true
public WebView getWebView(final Context context, WebView webView, String url, SPiDWebViewClient webViewClient) { if (SPiDClient.getInstance().isAuthorized()) { SPiDLogger.log("Access token found, preforming a soft logout to cleanup before login"); // Fire and forget SPiDA...
public WebView getWebView(final Context context, WebView webView, String url, SPiDWebViewClient webViewClient) { if (SPiDClient.getInstance().isAuthorized()) { SPiDLogger.log("Access token found, preforming a soft logout to cleanup before login"); // Fire and forget SPiDA...
diff --git a/src/org/broad/igv/goby/GobyAlignment.java b/src/org/broad/igv/goby/GobyAlignment.java index dbff7d69..73f2d475 100644 --- a/src/org/broad/igv/goby/GobyAlignment.java +++ b/src/org/broad/igv/goby/GobyAlignment.java @@ -1,635 +1,638 @@ /* * Copyright (c) 2007-2011 by Institute for Computational Biomedicin...
true
true
public void buildBlocks(Alignments.AlignmentEntry alignmentEntry) { ObjectArrayList<AlignmentBlock> blocks = new ObjectArrayList<AlignmentBlock>(); ObjectArrayList<AlignmentBlock> insertionBlocks = new ObjectArrayList<AlignmentBlock>(); int start = alignmentEntry.getPosition(); Byt...
public void buildBlocks(Alignments.AlignmentEntry alignmentEntry) { ObjectArrayList<AlignmentBlock> blocks = new ObjectArrayList<AlignmentBlock>(); ObjectArrayList<AlignmentBlock> insertionBlocks = new ObjectArrayList<AlignmentBlock>(); int start = alignmentEntry.getPosition(); Byt...
diff --git a/src/algo/hash/openAddressing/ProbingStrategy.java b/src/algo/hash/openAddressing/ProbingStrategy.java index e1b0b14..75911db 100644 --- a/src/algo/hash/openAddressing/ProbingStrategy.java +++ b/src/algo/hash/openAddressing/ProbingStrategy.java @@ -1,31 +1,31 @@ package algo.hash.openAddressing; import ...
true
true
public ProbingStrategy(int size) { if (size <= 0) { throw new IllegalArgumentException("Size must be positive"); } mSize = size; }
public ProbingStrategy(int size) { if (size <= 0) { throw new IllegalArgumentException("Size must be positive"); } setSize(size); }
diff --git a/src/esmska/transfer/GatewayInterpreter.java b/src/esmska/transfer/GatewayInterpreter.java index ea035d9b..b8156dfa 100644 --- a/src/esmska/transfer/GatewayInterpreter.java +++ b/src/esmska/transfer/GatewayInterpreter.java @@ -1,151 +1,155 @@ package esmska.transfer; import esmska.data.Keyring; import ...
true
true
public boolean sendMessage(SMS sms) throws Exception { Gateway gateway = Gateways.getInstance().get(sms.getGateway()); logger.log(Level.FINE, "Sending SMS to: {0}", gateway); init(); executor = new GatewayExecutor(sms); if (gateway == null) { executor.set...
public boolean sendMessage(SMS sms) throws Exception { Gateway gateway = Gateways.getInstance().get(sms.getGateway()); logger.log(Level.FINE, "Sending SMS to: {0}", gateway); init(); executor = new GatewayExecutor(sms); if (gateway == null) { executor.set...
diff --git a/src/main/java/org/jtornadoweb/HttpServer.java b/src/main/java/org/jtornadoweb/HttpServer.java index 3c83792..8cbea1c 100644 --- a/src/main/java/org/jtornadoweb/HttpServer.java +++ b/src/main/java/org/jtornadoweb/HttpServer.java @@ -1,227 +1,225 @@ package org.jtornadoweb; import java.net.InetSocketAddr...
false
true
public void execute(String data) { try { int eol = data.indexOf("\r\n"); String[] startLine = data.substring(0, eol).split(" "); String method = startLine[0]; String uri = startLine[1]; String version = startLine[2]; if (!version.startsWith("HTTP/")) throw new RuntimeException( ...
public void execute(String data) { try { int eol = data.indexOf("\r\n"); String[] startLine = data.substring(0, eol).split(" "); String method = startLine[0]; String uri = startLine[1]; String version = startLine[2]; if (!version.startsWith("HTTP/")) throw new RuntimeException( ...
diff --git a/server/src/main/java/org/apache/abdera/protocol/server/ProviderHelper.java b/server/src/main/java/org/apache/abdera/protocol/server/ProviderHelper.java index 754e31dc..33d7483d 100644 --- a/server/src/main/java/org/apache/abdera/protocol/server/ProviderHelper.java +++ b/server/src/main/java/org/apache/abde...
true
true
public static boolean isValidEntry(Entry entry) { try { IRI id = entry.getId(); if (id == null || id.toString().trim().length() == 0 || !id.isAbsolute()) return false; if (entry.getTitle() == null) return false; if (entry.getUpdated() == null) return false; if (e...
public static boolean isValidEntry(Entry entry) { try { IRI id = entry.getId(); if (id == null || id.toString().trim().length() == 0 || !id.isAbsolute()) return false; if (entry.getTitle() == null) return false; if (entry.getUpdated() == null) return false; if (e...
diff --git a/demo/src/main/java/com/praeses/HelloAndroidActivity.java b/demo/src/main/java/com/praeses/HelloAndroidActivity.java index c071bf1..2695d1a 100644 --- a/demo/src/main/java/com/praeses/HelloAndroidActivity.java +++ b/demo/src/main/java/com/praeses/HelloAndroidActivity.java @@ -1,91 +1,91 @@ package com.prae...
true
true
private void doDatabaseWork() { try { Dao<Person, String> personDao = getDbHelper().getPersonDao(); List<Person> list = personDao.queryForAll(); StringBuilder builder = new StringBuilder(); int count = 0; for (Person person : list) { ...
private void doDatabaseWork() { try { Dao<Person, String> personDao = getDbHelper().getPersonDao(); List<Person> list = personDao.queryForAll(); StringBuilder builder = new StringBuilder(); int count = 0; for (Person person : list) { ...
diff --git a/jason/stdlib/drop_desire.java b/jason/stdlib/drop_desire.java index 4408a73..818a467 100644 --- a/jason/stdlib/drop_desire.java +++ b/jason/stdlib/drop_desire.java @@ -1,103 +1,103 @@ //---------------------------------------------------------------------------- // Copyright (C) 2003 Rafael H. Bordini, ...
true
true
public void dropEvt(Circumstance C, Literal l, Unifier un) { Trigger te = new Trigger(TEOperator.add, TEType.achieve, l); Iterator<Event> ie = C.getEvents().iterator(); while (ie.hasNext()) { Event ei = ie.next(); Trigger t = ei.getTrigger(); if (ei.getInten...
public void dropEvt(Circumstance C, Literal l, Unifier un) { Trigger te = new Trigger(TEOperator.add, TEType.achieve, l); Iterator<Event> ie = C.getEvents().iterator(); while (ie.hasNext()) { Event ei = ie.next(); Trigger t = ei.getTrigger(); if (ei.getInten...
diff --git a/test/src/main/java/org/apache/accumulo/test/randomwalk/concurrent/ChangePermissions.java b/test/src/main/java/org/apache/accumulo/test/randomwalk/concurrent/ChangePermissions.java index 6b3acb6e6..63af95a13 100644 --- a/test/src/main/java/org/apache/accumulo/test/randomwalk/concurrent/ChangePermissions.jav...
false
true
public void visit(State state, Properties props) throws Exception { Connector conn = state.getConnector(); Random rand = (Random) state.get("rand"); @SuppressWarnings("unchecked") List<String> userNames = (List<String>) state.get("users"); String userName = userNames.get(rand.nextInt(use...
public void visit(State state, Properties props) throws Exception { Connector conn = state.getConnector(); Random rand = (Random) state.get("rand"); @SuppressWarnings("unchecked") List<String> userNames = (List<String>) state.get("users"); String userName = userNames.get(rand.nextInt(use...
diff --git a/test/org/bodytrack/client/GraphAxisTest.java b/test/org/bodytrack/client/GraphAxisTest.java index b6b12b7..6bef231 100644 --- a/test/org/bodytrack/client/GraphAxisTest.java +++ b/test/org/bodytrack/client/GraphAxisTest.java @@ -1,34 +1,34 @@ package org.bodytrack.client; import org.junit.Test; impor...
true
true
public void test_ticks() { GraphAxis g = new GraphAxis(GraphAxis.NO_CHANNEL_NAME, 0, 1, // min, max Basis.xDownYRight, 5 // width ); double epsilon = 1e-10; assertEquals(0.1, g.computeTickSize( 9), epsilon); assertEquals(0.1, g.computeTickSize( 10), epsilon); assertEquals(0.2, g.compu...
public void test_ticks() { GraphAxis g = new GraphAxis( 0, 1, // min, max Basis.xDownYRight, 5 // width ); double epsilon = 1e-10; assertEquals(0.1, g.computeTickSize( 9), epsilon); assertEquals(0.1, g.computeTickSize( 10), epsilon); assertEquals(0.2, g.computeTickSize( 11), epsilon);...
diff --git a/src/org/openstreetmap/josm/data/osm/DataSetMerger.java b/src/org/openstreetmap/josm/data/osm/DataSetMerger.java index c8e738e6..b9adf45f 100644 --- a/src/org/openstreetmap/josm/data/osm/DataSetMerger.java +++ b/src/org/openstreetmap/josm/data/osm/DataSetMerger.java @@ -1,396 +1,398 @@ package org.openstre...
true
true
private boolean mergeById(OsmPrimitive source) { OsmPrimitive target = targetDataSet.getPrimitiveById(source.getId(), source.getType()); // merge other into an existing primitive with the same id, if possible // if (target == null) return false; // found a corresp...
private boolean mergeById(OsmPrimitive source) { OsmPrimitive target = targetDataSet.getPrimitiveById(source.getId(), source.getType()); // merge other into an existing primitive with the same id, if possible // if (target == null) return false; // found a corresp...
diff --git a/impl/src/main/java/org/richfaces/util/LookAheadObjectInputStream.java b/impl/src/main/java/org/richfaces/util/LookAheadObjectInputStream.java index dbd90bb..ca1e9f8 100644 --- a/impl/src/main/java/org/richfaces/util/LookAheadObjectInputStream.java +++ b/impl/src/main/java/org/richfaces/util/LookAheadObject...
true
true
static void loadWhitelist() { Properties whitelistProperties = new Properties(); InputStream stream = null; try { stream = LookAheadObjectInputStream.class.getResourceAsStream("/org/richfaces/resource/resource-serialization.properties"); whitelistProperties.load(stre...
static void loadWhitelist() { Properties whitelistProperties = new Properties(); InputStream stream = null; try { stream = LookAheadObjectInputStream.class.getResourceAsStream("/org/richfaces/resource/resource-serialization.properties"); whitelistProperties.load(stre...
diff --git a/src/test/junit/fedora/test/integration/TestCommandLineUtilities.java b/src/test/junit/fedora/test/integration/TestCommandLineUtilities.java index b7e00f8c3..768cf5138 100644 --- a/src/test/junit/fedora/test/integration/TestCommandLineUtilities.java +++ b/src/test/junit/fedora/test/integration/TestCommandLi...
false
true
private void traverseAndValidate(File testDir, boolean expectValid) { // assertEquals(testDir.isDirectory(), true); File testFiles[] = testDir.listFiles(new java.io.FilenameFilter() { public boolean accept(File dir, String name) { if...
private void traverseAndValidate(File testDir, boolean expectValid) { // assertEquals(testDir.isDirectory(), true); File testFiles[] = testDir.listFiles(new java.io.FilenameFilter() { public boolean accept(File dir, String name) { if...
diff --git a/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh/SSHServerConnection.java b/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh/SSHServerConnection.java index 7decb91f4..44f209f55 100644 --- a/bundles/org.eclipse.team.cvs.ssh/src/org/eclipse/team/internal/ccvs/ssh...
true
true
public void open(IProgressMonitor monitor) throws IOException, CVSAuthenticationException { monitor.subTask(Policy.bind("SSHServerConnection.authenticating")); //$NON-NLS-1$ monitor.worked(1); String hostname = location.getHost(); String username = location.getUsername(); int port = location.getPort(); if ...
public void open(IProgressMonitor monitor) throws IOException, CVSAuthenticationException { monitor.subTask(Policy.bind("SSHServerConnection.authenticating")); //$NON-NLS-1$ monitor.worked(1); String hostname = location.getHost(); String username = location.getUsername(); int port = location.getPort(); if ...
diff --git a/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java b/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java index 583a4b33..87847b2d 100644 --- a/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java +++ b/site-manage-tool/tool/src/java/org/saka...
true
true
private String buildContextForTemplate(int index, VelocityPortlet portlet, Context context, RunData data, SessionState state) { String realmId = ""; String site_type = ""; String sortedBy = ""; String sortedAsc = ""; ParameterParser params = data.getParameters(); context.put("tlang", rb); context.put(...
private String buildContextForTemplate(int index, VelocityPortlet portlet, Context context, RunData data, SessionState state) { String realmId = ""; String site_type = ""; String sortedBy = ""; String sortedAsc = ""; ParameterParser params = data.getParameters(); context.put("tlang", rb); context.put(...
diff --git a/htroot/xml/queues_p.java b/htroot/xml/queues_p.java index c43de2ca0..6099ad6be 100644 --- a/htroot/xml/queues_p.java +++ b/htroot/xml/queues_p.java @@ -1,231 +1,231 @@ // /xml.queues/indexing_p.java // ------------------------------- // part of the AnomicHTTPD caching proxy // (C) by Michael Peter Chri...
true
true
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { // return variable that accumulates replacements plasmaSwitchboard switchboard = (plasmaSwitchboard) env; //wikiCode wikiTransformer = new wikiCode(switchboard); serverObjects prop = new se...
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) { // return variable that accumulates replacements plasmaSwitchboard switchboard = (plasmaSwitchboard) env; //wikiCode wikiTransformer = new wikiCode(switchboard); serverObjects prop = new se...
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/project/handlers/OpenExperimentHandler.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/project/handlers/OpenExperimentHandler.java index a8fc0b0b4..b2590f958 100644 --- a/lttng/org.eclipse.linuxtools.tmf.ui/s...
true
true
public Object execute(ExecutionEvent event) throws ExecutionException { // Check if we are closing down IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); if (window == null) return false; try { IFile bookmarksFile = fExperiment....
public Object execute(ExecutionEvent event) throws ExecutionException { // Check if we are closing down IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); if (window == null) return false; try { IFile bookmarksFile = fExperiment....
diff --git a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HTMLParserListenerTest.java b/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HTMLParserListenerTest.java index 40c4e66d0..0846a2bc8 100644 --- a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HTMLParserListenerTest.java +++ b/h...
true
true
public void parseFragment() throws Exception { final String html = "<html><head><title>foo</title>\n" + "<script>\n" + "function test() {\n" + " var oNode = document.getElementById('middle');\n" + " oNode.insertAdjacentHTML('afterEnd', '<div>...
public void parseFragment() throws Exception { final String html = "<html><head><title>foo</title>\n" + "<script>\n" + "function test() {\n" + " var oNode = document.getElementById('middle');\n" + " oNode.insertAdjacentHTML('afterEnd', '<div>...
diff --git a/src/main/java/com/metaweb/gridworks/browsing/facets/NumericBinIndex.java b/src/main/java/com/metaweb/gridworks/browsing/facets/NumericBinIndex.java index b34d3b4..ded39d4 100644 --- a/src/main/java/com/metaweb/gridworks/browsing/facets/NumericBinIndex.java +++ b/src/main/java/com/metaweb/gridworks/browsing...
false
true
public NumericBinIndex(Project project, int cellIndex, Evaluable eval) { Properties bindings = ExpressionUtils.createBindings(project); _min = Double.POSITIVE_INFINITY; _max = Double.NEGATIVE_INFINITY; List<Double> allValues = new ArrayList<Double>(); for (int i = 0; i < project.rows.size(); i++)...
public NumericBinIndex(Project project, int cellIndex, Evaluable eval) { Properties bindings = ExpressionUtils.createBindings(project); _min = Double.POSITIVE_INFINITY; _max = Double.NEGATIVE_INFINITY; List<Double> allValues = new ArrayList<Double>(); for (int i = 0; i < project.rows.size(); i++)...
diff --git a/src/com/glowman/spaceunit/game/SpeedFactory.java b/src/com/glowman/spaceunit/game/SpeedFactory.java index 75d8e58..d666603 100644 --- a/src/com/glowman/spaceunit/game/SpeedFactory.java +++ b/src/com/glowman/spaceunit/game/SpeedFactory.java @@ -1,39 +1,42 @@ package com.glowman.spaceunit.game; import co...
true
true
public static float getSpeed(SpaceObject object, int gameType) { float result = 0f; if (object instanceof MovingSpaceObject) { // ship speed if (object instanceof Ship) { result = 2.01f; } else if (object instanceof Enemy) { Enemy enemy = (Enemy) object; //basic space object (asteroids) ...
public static float getSpeed(SpaceObject object, int gameType) { float result = 0f; if (object instanceof MovingSpaceObject) { // ship speed if (object instanceof Ship) { result = 2.01f; } else if (object instanceof Enemy) { Enemy enemy = (Enemy) object; //basic space object (asteroids) ...
diff --git a/src/gui/GUI_Options_Misc.java b/src/gui/GUI_Options_Misc.java index e0ecbe6..d651944 100644 --- a/src/gui/GUI_Options_Misc.java +++ b/src/gui/GUI_Options_Misc.java @@ -1,75 +1,75 @@ package gui; import aniAdd.Communication.ComEvent; public class GUI_Options_Misc extends javax.swing.JPanel { pri...
true
true
private void initComponents() { chck_ShowFileInfoPane = new javax.swing.JCheckBox(); chck_ShowEditboxes = new javax.swing.JCheckBox(); chck_ShowFileInfoPane.setLabel("Show Fileinfo Pane"); chck_ShowFileInfoPane.setOpaque(false); chck_ShowFileInfoPane.addActionListener(new j...
private void initComponents() { chck_ShowFileInfoPane = new javax.swing.JCheckBox(); chck_ShowEditboxes = new javax.swing.JCheckBox(); chck_ShowFileInfoPane.setLabel("Show Fileinfo Pane"); chck_ShowFileInfoPane.setOpaque(false); chck_ShowFileInfoPane.addActionListener(new j...
diff --git a/src/com/github/andlyticsproject/sync/SyncAdapterService.java b/src/com/github/andlyticsproject/sync/SyncAdapterService.java index b8e346c..e10cb6b 100644 --- a/src/com/github/andlyticsproject/sync/SyncAdapterService.java +++ b/src/com/github/andlyticsproject/sync/SyncAdapterService.java @@ -1,133 +1,133 @@...
true
true
private static void performSync(Context context, Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) throws OperationCanceledException { Bundle bundle = null; String token = null; try { bundle = AccountManager.get(context) .getAuthToken(account...
private static void performSync(Context context, Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) throws OperationCanceledException { Bundle bundle = null; String token = null; try { bundle = AccountManager.get(context) .getAuthToken(account...
diff --git a/src/main/java/com/anysoftkeyboard/ui/settings/setup/SetupSupport.java b/src/main/java/com/anysoftkeyboard/ui/settings/setup/SetupSupport.java index b2f18316..37b8bb34 100644 --- a/src/main/java/com/anysoftkeyboard/ui/settings/setup/SetupSupport.java +++ b/src/main/java/com/anysoftkeyboard/ui/settings/setup...
true
true
public static boolean isThisKeyboardEnabled(String enabledIMEList, String myPackageName) { if (TextUtils.isEmpty(enabledIMEList)) return false; String[] enabledIMEs = enabledIMEList.split(":"); for(String enabledIMEId : enabledIMEs) { ComponentName enabledIME = Compo...
public static boolean isThisKeyboardEnabled(String enabledIMEList, String myPackageName) { if (TextUtils.isEmpty(enabledIMEList)) return false; String[] enabledIMEs = enabledIMEList.split(":"); for(String enabledIMEId : enabledIMEs) { ComponentName enabledIME = Compo...
diff --git a/src/minemail/MineMailPlayerListener.java b/src/minemail/MineMailPlayerListener.java index b237d97..3f0a99b 100644 --- a/src/minemail/MineMailPlayerListener.java +++ b/src/minemail/MineMailPlayerListener.java @@ -1,47 +1,47 @@ package minemail; import org.bukkit.Material; import org.bukkit.block.Sign; ...
true
true
public void onPlayerInteract(PlayerInteractEvent event){ if(event.getAction().equals(Action.RIGHT_CLICK_BLOCK)){ if(event.getClickedBlock().getType().equals(Material.CHEST)){ if(event.getItem().getType().equals(Material.ARROW)) { BlockCoords coords = new BlockCoords(event.getClickedBlock()); Con...
public void onPlayerInteract(PlayerInteractEvent event){ if(event.getAction().equals(Action.RIGHT_CLICK_BLOCK)){ if(event.getClickedBlock().getType().equals(Material.CHEST)){ if(event.getItem().getType().equals(Material.ARROW)) { BlockCoords coords = new BlockCoords(event.getClickedBlock()); Con...
diff --git a/parser/src/main/java/org/apache/abdera/parser/stax/util/FOMSniffingInputStream.java b/parser/src/main/java/org/apache/abdera/parser/stax/util/FOMSniffingInputStream.java index 288348a4..18c8013c 100644 --- a/parser/src/main/java/org/apache/abdera/parser/stax/util/FOMSniffingInputStream.java +++ b/parser/sr...
false
true
private String detectEncoding() throws IOException { PeekAheadInputStream pin = (PeekAheadInputStream) this.in; byte[] bom = new byte[4]; pin.peek(bom); String charset = null; if (equals(bom,4,UTF32be)) { bomset = true; return "utf-32be"; } else if (equals(bom,4,UTF32le)) { b...
private String detectEncoding() throws IOException { PeekAheadInputStream pin = (PeekAheadInputStream) this.in; byte[] bom = new byte[4]; pin.peek(bom); String charset = null; if (equals(bom,4,UTF32be)) { bomset = true; return "utf-32be"; } else if (equals(bom,4,UTF32le)) { b...
diff --git a/src/com/garbagemule/MobArena/events/NewWaveEvent.java b/src/com/garbagemule/MobArena/events/NewWaveEvent.java index 17cbba9..b8f09b5 100644 --- a/src/com/garbagemule/MobArena/events/NewWaveEvent.java +++ b/src/com/garbagemule/MobArena/events/NewWaveEvent.java @@ -1,53 +1,54 @@ package com.garbagemule.MobA...
true
true
public NewWaveEvent(Arena arena, Wave wave, int waveNo) { this.wave = wave; this.waveNo = waveNo; }
public NewWaveEvent(Arena arena, Wave wave, int waveNo) { this.arena = arena; this.wave = wave; this.waveNo = waveNo; }
diff --git a/java/de/dfki/lt/mary/unitselection/featureprocessors/en/FeatureProcessorManager.java b/java/de/dfki/lt/mary/unitselection/featureprocessors/en/FeatureProcessorManager.java index 7345b2a06..acfe8357a 100644 --- a/java/de/dfki/lt/mary/unitselection/featureprocessors/en/FeatureProcessorManager.java +++ b/java...
false
true
public FeatureProcessorManager() { super(); try{ MaryGenericFeatureProcessors.TargetItemNavigator segment = new MaryGenericFeatureProcessors.SegmentNavigator(); MaryGenericFeatureProcessors.TargetItemNavigator prevSegment = new MaryGenericFeatureProcessors.PrevSegmentNavi...
public FeatureProcessorManager() { super(); try{ MaryGenericFeatureProcessors.TargetItemNavigator segment = new MaryGenericFeatureProcessors.SegmentNavigator(); MaryGenericFeatureProcessors.TargetItemNavigator prevSegment = new MaryGenericFeatureProcessors.PrevSegmentNavi...
diff --git a/src/main/java/edu/rutgers/winlab/junsim/BinnedRecurGridExperiment.java b/src/main/java/edu/rutgers/winlab/junsim/BinnedRecurGridExperiment.java index f89f883..e53c837 100644 --- a/src/main/java/edu/rutgers/winlab/junsim/BinnedRecurGridExperiment.java +++ b/src/main/java/edu/rutgers/winlab/junsim/BinnedRecu...
true
true
public Boolean perform() { // final ExperimentRender display = new AnimatedRenderer(Main.gfxConfig); final Collection<CaptureDisk> disks = new HashSet<CaptureDisk>(); // Compute all possible capture disks for (final Transmitter t1 : this.config.transmitters) { for (final Transmitter t2 : this.c...
public Boolean perform() { // final ExperimentRender display = new AnimatedRenderer(Main.gfxConfig); final Collection<CaptureDisk> disks = new HashSet<CaptureDisk>(); // Compute all possible capture disks for (final Transmitter t1 : this.config.transmitters) { for (final Transmitter t2 : this.c...
diff --git a/src/test/mapred/org/apache/hadoop/mapred/TestSubmitJob.java b/src/test/mapred/org/apache/hadoop/mapred/TestSubmitJob.java index 1103e153f3..8ab0211ab4 100644 --- a/src/test/mapred/org/apache/hadoop/mapred/TestSubmitJob.java +++ b/src/test/mapred/org/apache/hadoop/mapred/TestSubmitJob.java @@ -1,304 +1,304 ...
false
true
public void testSecureJobExecution() throws Exception { LOG.info("Testing secure job submission/execution"); MiniMRCluster mr = null; Configuration conf = new Configuration(); final MiniDFSCluster dfs = new MiniDFSCluster(conf, 1, true, null); try { FileSystem fs = TestMiniMRWithDFS...
public void testSecureJobExecution() throws Exception { LOG.info("Testing secure job submission/execution"); MiniMRCluster mr = null; Configuration conf = new Configuration(); final MiniDFSCluster dfs = new MiniDFSCluster(conf, 1, true, null); try { FileSystem fs = TestMiniMRWithDFS...
diff --git a/src/test/ed/lang/python/JSPySequenceListWrapperTest.java b/src/test/ed/lang/python/JSPySequenceListWrapperTest.java index f7be49eb9..ac2de73b0 100644 --- a/src/test/ed/lang/python/JSPySequenceListWrapperTest.java +++ b/src/test/ed/lang/python/JSPySequenceListWrapperTest.java @@ -1,60 +1,60 @@ // JSPySeque...
true
true
public void test1(){ PySequenceList p = new PyList(); JSPySequenceListWrapper wrapper = new JSPySequenceListWrapper( p ); JSObject o = new JSObjectBase(); assert wrapper.add( o ); assert wrapper.get( 0 ) == o; JSObject p1 = new JSObjectBase(); p1.set( "attr" ...
public void test1(){ PySequenceList p = new PyList(PyType.fromClass(PyList.class)); JSPySequenceListWrapper wrapper = new JSPySequenceListWrapper( p ); JSObject o = new JSObjectBase(); assert wrapper.add( o ); assert wrapper.get( 0 ) == o; JSObject p1 = new JSObjectB...
diff --git a/src/org/accesointeligente/client/AppController.java b/src/org/accesointeligente/client/AppController.java index 0ce92f0..dcb8144 100644 --- a/src/org/accesointeligente/client/AppController.java +++ b/src/org/accesointeligente/client/AppController.java @@ -1,252 +1,276 @@ package org.accesointeligente.clie...
false
true
public void switchSection(String token) { popup.hide(); tokenHistory.add(token); Map<String, String> parameters = getHistoryTokenParameters(token); AppPlace place = getPlace(token); if (ClientSessionUtil.checkSession()) { switch (place) { case HOME: HomePresenter homePresenter = new HomePresente...
public void switchSection(String token) { popup.hide(); tokenHistory.add(token); Map<String, String> parameters = getHistoryTokenParameters(token); AppPlace place = getPlace(token); if (ClientSessionUtil.checkSession()) { switch (place) { case HOME: HomePresenter homePresenter = new HomePresente...
diff --git a/src/Examples/org/objectweb/proactive/examples/hello/Hello.java b/src/Examples/org/objectweb/proactive/examples/hello/Hello.java index ca5717ca2..94a405d00 100644 --- a/src/Examples/org/objectweb/proactive/examples/hello/Hello.java +++ b/src/Examples/org/objectweb/proactive/examples/hello/Hello.java @@ -1,1...
true
true
public static void main(String[] args) throws Exception { // Access the nodes of the descriptor file GCMApplicationDescriptor applicationDescriptor = API.getGCMApplicationDescriptor(new File( "/home/glaurent/workspace/proactive_trunk/descriptors/helloApplicationLocal.xml")); Vi...
public static void main(String[] args) throws Exception { // Access the nodes of the descriptor file GCMApplicationDescriptor applicationDescriptor = API.getGCMApplicationDescriptor(new File(args[0])); VirtualNode vnode = applicationDescriptor.getVirtualNode("Hello"); applicationD...
diff --git a/bridge-impl/src/main/java/com/liferay/faces/bridge/renderkit/html_basic/HeadPhaseListener.java b/bridge-impl/src/main/java/com/liferay/faces/bridge/renderkit/html_basic/HeadPhaseListener.java index 500dddccb..3239af95a 100644 --- a/bridge-impl/src/main/java/com/liferay/faces/bridge/renderkit/html_basic/Hea...
true
true
protected void beforeApplyRequestValuesPhase(PhaseEvent phaseEvent) { // Get the list of resourceIds that might be contained in the Flash scope. Note that they would have been // placed into the Flash scope by this very same method, except during in the case below for the // RENDER_RESPONSE phase. FacesContex...
protected void beforeApplyRequestValuesPhase(PhaseEvent phaseEvent) { // Get the list of resourceIds that might be contained in the Flash scope. Note that they would have been // placed into the Flash scope by this very same method, except during in the case below for the // RENDER_RESPONSE phase. FacesContex...
diff --git a/framework/src/org/aimas/craftingquest/core/ActionEngine.java b/framework/src/org/aimas/craftingquest/core/ActionEngine.java index 3f1d9b9..4f88211 100644 --- a/framework/src/org/aimas/craftingquest/core/ActionEngine.java +++ b/framework/src/org/aimas/craftingquest/core/ActionEngine.java @@ -1,892 +1,894 @@...
true
true
public TransitionResult process(PlayerState player, Transition transition) { refresh(player); // first check if the operator is of Nothing or PlayerReady type // these are just for filling up and synchronization - so return the OK if(transition.operator == ActionType.Nothing) { TransitionResult res = new...
public TransitionResult process(PlayerState player, Transition transition) { refresh(player); // first check if the operator is of Nothing or PlayerReady type // these are just for filling up and synchronization - so return the OK if(transition.operator == ActionType.Nothing) { TransitionResult res = new...
diff --git a/src/main/java/org/thymeleaf/standard/expression/LinkExpression.java b/src/main/java/org/thymeleaf/standard/expression/LinkExpression.java index b52d7f9a..2ab234ee 100644 --- a/src/main/java/org/thymeleaf/standard/expression/LinkExpression.java +++ b/src/main/java/org/thymeleaf/standard/expression/LinkExpre...
true
true
static Object executeLink(final Configuration configuration, final IProcessingContext processingContext, final LinkExpression expression, final IStandardVariableExpressionEvaluator expressionEvaluator) { if (logger.isTraceEnabled()) { logger.trace("[THYMELEAF][{}] Evalu...
static Object executeLink(final Configuration configuration, final IProcessingContext processingContext, final LinkExpression expression, final IStandardVariableExpressionEvaluator expressionEvaluator) { if (logger.isTraceEnabled()) { logger.trace("[THYMELEAF][{}] Evalu...
diff --git a/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/support/GrailsOpenSessionInViewInterceptor.java b/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/support/GrailsOpenSessionInViewInterceptor.java index b646453fb..0d3d8856b 100644 --- a/grails/src/persistence/org/codehaus/groov...
false
true
public void postHandle(WebRequest request, ModelMap model) throws DataAccessException { final boolean isFlowRequest = request.getAttribute(IS_FLOW_REQUEST_ATTRIBUTE, WebRequest.SCOPE_REQUEST) != null; if(!isFlowRequest) { super.postHandle(request, model); SessionHolder sessi...
public void postHandle(WebRequest request, ModelMap model) throws DataAccessException { final boolean isFlowRequest = request.getAttribute(IS_FLOW_REQUEST_ATTRIBUTE, WebRequest.SCOPE_REQUEST) != null; if(!isFlowRequest) { try { super.postHandle(request, model); ...
diff --git a/drools-clips/src/test/java/org/drools/clp/LhsClpParserTest.java b/drools-clips/src/test/java/org/drools/clp/LhsClpParserTest.java index 25f9a1d0e7..69ab154098 100644 --- a/drools-clips/src/test/java/org/drools/clp/LhsClpParserTest.java +++ b/drools-clips/src/test/java/org/drools/clp/LhsClpParserTest.java @...
true
true
public void testPatternsRule() throws Exception { // the first pattern bellowshould generate a descriptor tree like that: // // FC[person name] // | // OR // +----------|------------+ // ...
public void testPatternsRule() throws Exception { // the first pattern bellowshould generate a descriptor tree like that: // // FC[person name] // | // OR // +----------|------------+ // ...
diff --git a/org.dawnsci.plotting.tools/src/org/dawnsci/plotting/tools/diffraction/DiffractionTool.java b/org.dawnsci.plotting.tools/src/org/dawnsci/plotting/tools/diffraction/DiffractionTool.java index 78a6c6733..0f9292f69 100644 --- a/org.dawnsci.plotting.tools/src/org/dawnsci/plotting/tools/diffraction/DiffractionTo...
true
true
private void createActions() { final IToolBarManager toolMan = getSite().getActionBars().getToolBarManager(); final MenuManager menuMan = new MenuManager(); final Action exportMeta = new Action("Export metadata to file", Activator.getImageDescriptor("icons/mask-export-wiz.png")) { public void run() ...
private void createActions() { final IToolBarManager toolMan = getSite().getActionBars().getToolBarManager(); final MenuManager menuMan = new MenuManager(); final Action exportMeta = new Action("Export metadata to file", Activator.getImageDescriptor("icons/mask-export-wiz.png")) { public void run() ...
diff --git a/src/jogl/classes/com/jogamp/opengl/util/GLReadBufferUtil.java b/src/jogl/classes/com/jogamp/opengl/util/GLReadBufferUtil.java index 602dbb095..ae1b459a6 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/GLReadBufferUtil.java +++ b/src/jogl/classes/com/jogamp/opengl/util/GLReadBufferUtil.java @@ -1,263 +...
true
true
public boolean readPixels(GL gl, int inX, int inY, int ioWidth[], int ioHeight[], boolean mustFlipVertically) { final int glerr0 = gl.glGetError(); if(GL.GL_NO_ERROR != glerr0) { System.err.println("Info: GLReadBufferUtil.readPixels: pre-exisiting GL error 0x"+Integer.toHexString(glerr0)...
public boolean readPixels(GL gl, int inX, int inY, int ioWidth[], int ioHeight[], boolean mustFlipVertically) { final int glerr0 = gl.glGetError(); if(GL.GL_NO_ERROR != glerr0) { System.err.println("Info: GLReadBufferUtil.readPixels: pre-exisiting GL error 0x"+Integer.toHexString(glerr0)...
diff --git a/gui/src/main/java/com/jakeapp/gui/swing/actions/DeleteNoteAction.java b/gui/src/main/java/com/jakeapp/gui/swing/actions/DeleteNoteAction.java index a527aecd..eaa7c46c 100644 --- a/gui/src/main/java/com/jakeapp/gui/swing/actions/DeleteNoteAction.java +++ b/gui/src/main/java/com/jakeapp/gui/swing/actions/Del...
true
true
public void actionPerformed(ActionEvent event) { final List<NoteObject> cache = new ArrayList<NoteObject>(getSelectedNotes()); ICoreAccess core = JakeMainApp.getCore(); UserId currentUser = JakeMainApp.getProject().getUserId(); ResourceMap map = NotesPanel.getInstance().getResourceMap(); String[] optio...
public void actionPerformed(ActionEvent event) { final List<NoteObject> cache = new ArrayList<NoteObject>(getSelectedNotes()); ICoreAccess core = JakeMainApp.getCore(); UserId currentUser = JakeMainApp.getProject().getUserId(); ResourceMap map = NotesPanel.getInstance().getResourceMap(); String[] optio...
diff --git a/de.jpaw.persistence.dsl/src/de/jpaw/persistence/dsl/validation/BDDLJavaValidator.java b/de.jpaw.persistence.dsl/src/de/jpaw/persistence/dsl/validation/BDDLJavaValidator.java index 4a87fe00..69c3b0fa 100644 --- a/de.jpaw.persistence.dsl/src/de/jpaw/persistence/dsl/validation/BDDLJavaValidator.java +++ b/de....
false
true
public void checkEntity(EntityDefinition e) { String s = e.getName(); if (s != null) { if (!Character.isUpperCase(s.charAt(0))) { error("Entity names should start with an upper case letter", BDDLPackage.Literals.ENTITY_DEFINITION__NAME); ...
public void checkEntity(EntityDefinition e) { String s = e.getName(); if (s != null) { if (!Character.isUpperCase(s.charAt(0))) { error("Entity names should start with an upper case letter", BDDLPackage.Literals.ENTITY_DEFINITION__NAME); ...
diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpConnection.java b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpConnection.java index 51255aac0..34cc9e499 100644 --- a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpConnection.java +++ b/jetty-client/src/main/java/org/eclipse/jett...
true
true
public Connection handle() throws IOException { try { int no_progress = 0; boolean failed = false; while (_endp.isBufferingInput() || _endp.isOpen()) { synchronized (this) { while (_exchange == n...
public Connection handle() throws IOException { try { int no_progress = 0; boolean failed = false; while (_endp.isBufferingInput() || _endp.isOpen()) { synchronized (this) { while (_exchange == n...
diff --git a/src/main/java/de/minestar/vincicode/formatter/OfficialFormat.java b/src/main/java/de/minestar/vincicode/formatter/OfficialFormat.java index 28899ff..144cf85 100644 --- a/src/main/java/de/minestar/vincicode/formatter/OfficialFormat.java +++ b/src/main/java/de/minestar/vincicode/formatter/OfficialFormat.java...
true
true
public String formatHead(Message message) { StringBuilder stringBuilder = new StringBuilder(BookHelper.CHARS_PER_PAGE); BookHelper.appendColoredText(stringBuilder, ChatColor.DARK_RED, "++Offiziel++"); BookHelper.newLine(stringBuilder); // append sender BookHelper.appendColo...
public String formatHead(Message message) { StringBuilder stringBuilder = new StringBuilder(BookHelper.CHARS_PER_PAGE); BookHelper.appendColoredText(stringBuilder, ChatColor.DARK_RED, "++Offiziell++"); BookHelper.newLine(stringBuilder); // append sender BookHelper.appendCol...
diff --git a/src/eu/comexis/napoleon/client/core/tenant/TenantListView.java b/src/eu/comexis/napoleon/client/core/tenant/TenantListView.java index 05e2262..2aeb9cd 100644 --- a/src/eu/comexis/napoleon/client/core/tenant/TenantListView.java +++ b/src/eu/comexis/napoleon/client/core/tenant/TenantListView.java @@ -1,147 +...
true
true
protected void initTableColumns(SingleSelectionModel<SimpleTenant> selectionModel, ListHandler<SimpleTenant> sortHandler) { // Name. Column<SimpleTenant, String> nameColumn = new Column<SimpleTenant, String>(new TextCell()) { @Override public String getValue(SimpleTenant object) { r...
protected void initTableColumns(SingleSelectionModel<SimpleTenant> selectionModel, ListHandler<SimpleTenant> sortHandler) { // Name. Column<SimpleTenant, String> nameColumn = new Column<SimpleTenant, String>(new TextCell()) { @Override public String getValue(SimpleTenant object) { r...
diff --git a/src/org/red5/server/AttributeStore.java b/src/org/red5/server/AttributeStore.java index 0ba40c76..30c71815 100644 --- a/src/org/red5/server/AttributeStore.java +++ b/src/org/red5/server/AttributeStore.java @@ -1,146 +1,146 @@ package org.red5.server; /* * RED5 Open Source Flash Server - http://www.os...
true
true
synchronized public boolean setAttribute(String name, Object value) { if (name == null) return false; Object old = attributes.get(name); Integer newHash = (value != null ? value.hashCode() : 0); if ((old == null && value != null) || !old.equals(value) || !newHash.equals(hashes.get(name))) { // Attribu...
synchronized public boolean setAttribute(String name, Object value) { if (name == null) return false; Object old = attributes.get(name); Integer newHash = (value != null ? value.hashCode() : 0); if ((old == null && value != null) || (old != null && !old.equals(value)) || !newHash.equals(hashes.get(name))...
diff --git a/trunk/GeoBeagle/di/com/google/code/geobeagle/activity/cachelist/SearchWhereFactory.java b/trunk/GeoBeagle/di/com/google/code/geobeagle/activity/cachelist/SearchWhereFactory.java index 6a501a09..e70e283f 100644 --- a/trunk/GeoBeagle/di/com/google/code/geobeagle/activity/cachelist/SearchWhereFactory.java +++...
true
true
public String getWhereString() { String target = searchTarget.getTarget(); if (target == null) return ""; return " AND Id LIKE '%" + searchTarget + "%' OR Description LIKE '%" + searchTarget + "%'"; }
public String getWhereString() { String target = searchTarget.getTarget(); if (target == null) return ""; return " AND Id LIKE '%" + target + "%' OR Description LIKE '%" + target + "%'"; }
diff --git a/extras/src/BlockColoredPane.java b/extras/src/BlockColoredPane.java index 6d0b51b..9c98f01 100644 --- a/extras/src/BlockColoredPane.java +++ b/extras/src/BlockColoredPane.java @@ -1,473 +1,472 @@ package com.qzx.au.extras; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; ...
false
true
public Icon[] getBlockTextureVertical(IBlockAccess access, int x, int y, int z, int side){ BlockCoord coord = new BlockCoord(access, x, y, z); int blockID = coord.getBlockID(); int blockColor = coord.getBlockMetadata(); Icon[] halves = new Icon[2]; if(!this.hasConnectedTextures){ halves[0] = this.getBlo...
public Icon[] getBlockTextureVertical(IBlockAccess access, int x, int y, int z, int side){ BlockCoord coord = new BlockCoord(access, x, y, z); int blockID = coord.getBlockID(); int blockColor = coord.getBlockMetadata(); Icon[] halves = new Icon[2]; if(!this.hasConnectedTextures){ halves[0] = this.getBlo...
diff --git a/src/org/broad/igv/sam/AlignmentBlock.java b/src/org/broad/igv/sam/AlignmentBlock.java index d70d8912..5531cf76 100644 --- a/src/org/broad/igv/sam/AlignmentBlock.java +++ b/src/org/broad/igv/sam/AlignmentBlock.java @@ -1,87 +1,87 @@ /* * Copyright (c) 2007-2011 by The Broad Institute of MIT and Harvard. ...
true
true
public AlignmentBlock(int start, byte[] bases, byte[] qualities, Alignment baseAlignment) { this.start = start; this.bases = bases; this.baseAlignment = baseAlignment; if (qualities == null || qualities.length < bases.length) { this.qualities = new byte[bases.length]; ...
public AlignmentBlock(int start, byte[] bases, byte[] qualities, Alignment baseAlignment) { this.start = start; this.bases = bases; this.baseAlignment = baseAlignment; if (qualities == null || qualities.length < bases.length) { this.qualities = new byte[bases.length]; ...
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/classpath/AcceleoClasspathContainerWizard.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/classpath/AcceleoClasspathContainerWizard.java index f40b804a..acc9c991 100644 --- a/plugins/org.eclipse.acc...
false
true
public boolean finish() { try { IJavaProject[] javaProjects = new IJavaProject[] {getPlaceholderProject() }; IClasspathContainer[] containers = {null }; if (engineButton.getSelection() && !parserButton.getSelection()) { this.classpathEntry = JavaCore .newContainerEntry(AcceleoClasspathContainer.A...
public boolean finish() { try { IJavaProject[] javaProjects = new IJavaProject[] {getPlaceholderProject() }; IClasspathContainer[] containers = {null }; if (engineButton.getSelection() && !parserButton.getSelection()) { this.classpathEntry = JavaCore .newContainerEntry(AcceleoClasspathContainer.A...
diff --git a/Awful.apk/src/main/java/com/ferg/awfulapp/ForumsIndexActivity.java b/Awful.apk/src/main/java/com/ferg/awfulapp/ForumsIndexActivity.java index 285c2d6d..78306ad4 100644 --- a/Awful.apk/src/main/java/com/ferg/awfulapp/ForumsIndexActivity.java +++ b/Awful.apk/src/main/java/com/ferg/awfulapp/ForumsIndexActivit...
true
true
public void setNavigationDrawer() { final Activity self = this; RelativeLayout navIndexLayout = (RelativeLayout) findViewById(R.id.sidebar_index); if (null != navIndexLayout) { TextView navIndex = (TextView) navIndexLayout.findViewById(R.id.drawer_text); navIndexLayo...
public void setNavigationDrawer() { final Activity self = this; RelativeLayout navIndexLayout = (RelativeLayout) findViewById(R.id.sidebar_index); if (null != navIndexLayout) { TextView navIndex = (TextView) navIndexLayout.findViewById(R.id.drawer_text); navIndexLayo...
diff --git a/src/Screen.java b/src/Screen.java index 4b49d35..1062975 100644 --- a/src/Screen.java +++ b/src/Screen.java @@ -1,544 +1,544 @@ package com.jotabout.screeninfo; /** * ScreenInfo * * Display the screen configuration parameters for an Android device. * * Copyright (c) 2011 Michael J. Portuesi...
true
true
public Screen( InfoActivity ctx ) { this.ctx = ctx; final android.view.Display mDisplay = ((android.view.WindowManager)ctx.getSystemService(android.content.Context.WINDOW_SERVICE)) .getDefaultDisplay(); mMetrics = new DisplayMetrics(); mDisplay.getMetrics(mMetrics); mConfig = ctx.getResources()...
public Screen( InfoActivity ctx ) { this.ctx = ctx; final android.view.Display mDisplay = ((android.view.WindowManager)ctx.getSystemService(android.content.Context.WINDOW_SERVICE)) .getDefaultDisplay(); mMetrics = new DisplayMetrics(); mDisplay.getMetrics(mMetrics); mConfig = ctx.getResources()...
diff --git a/framework/src/play/libs/OpenID.java b/framework/src/play/libs/OpenID.java index ec6b90e9..1605f770 100644 --- a/framework/src/play/libs/OpenID.java +++ b/framework/src/play/libs/OpenID.java @@ -1,324 +1,324 @@ package play.libs; import java.net.URI; import java.net.URLEncoder; import java.util.ArrayL...
true
true
public boolean verify() { try { // Normalize String claimedId = normalize(id); String server = null; String delegate = null; // Discover HttpResponse response = WS.url(claimedId).get(); // Try HTML (I know it's bad) ...
public boolean verify() { try { // Normalize String claimedId = normalize(id); String server = null; String delegate = null; // Discover HttpResponse response = WS.url(claimedId).get(); // Try HTML (I know it's bad) ...
diff --git a/lucene/src/java/org/apache/lucene/util/ArrayUtil.java b/lucene/src/java/org/apache/lucene/util/ArrayUtil.java index eef023fb..2fd23b6a 100644 --- a/lucene/src/java/org/apache/lucene/util/ArrayUtil.java +++ b/lucene/src/java/org/apache/lucene/util/ArrayUtil.java @@ -1,348 +1,348 @@ package org.apache.lucen...
true
true
public static int oversize(int minTargetSize, int bytesPerElement) { if (minTargetSize < 0) { // catch usage that accidentally overflows int throw new IllegalArgumentException("invalid array size " + minTargetSize); } if (minTargetSize == 0) { // wait until at least one element is requ...
public static int oversize(int minTargetSize, int bytesPerElement) { if (minTargetSize < 0) { // catch usage that accidentally overflows int throw new IllegalArgumentException("invalid array size " + minTargetSize); } if (minTargetSize == 0) { // wait until at least one element is requ...
diff --git a/src/main/java/eu/margiel/components/menu/MainMenuPanel.java b/src/main/java/eu/margiel/components/menu/MainMenuPanel.java index 209d405..b8bbffc 100644 --- a/src/main/java/eu/margiel/components/menu/MainMenuPanel.java +++ b/src/main/java/eu/margiel/components/menu/MainMenuPanel.java @@ -1,49 +1,49 @@ pack...
false
true
public MainMenuPanel(String id, MenuItem mainMenu, MenuLinks menuItemList) { super(id); this.menuItemList = menuItemList; add(new ListView<MenuItem>("menuItems", mainMenu.getChildren()) { @Override protected void populateItem(ListItem<MenuItem> item) { MenuItem menuItem = item.getModelObject(); ite...
public MainMenuPanel(String id, MenuItem mainMenu, MenuLinks menuItemList) { super(id); this.menuItemList = menuItemList; add(new ListView<MenuItem>("menuItems", mainMenu.getChildren()) { @Override protected void populateItem(ListItem<MenuItem> item) { MenuItem menuItem = item.getModelObject(); ite...
diff --git a/src/org/kered/dko/Select.java b/src/org/kered/dko/Select.java index 7ce6c9a..0271f72 100644 --- a/src/org/kered/dko/Select.java +++ b/src/org/kered/dko/Select.java @@ -1,454 +1,454 @@ package org.kered.dko; import static org.kered.dko.Constants.DIRECTION.DESCENDING; import java.lang.ref.WeakReferenc...
false
true
public boolean hasNext() { if (!this.initted) init(); if (query.top>0 && count >= query.top) { this.next = null; cleanUp(); return false; } if (next!=null) return true; ttbMap.clear(); Object[] prevFieldValues = null; Table[] prevObjects = null; try { do { final Object[] peekRow = peekN...
public boolean hasNext() { if (!this.initted) init(); if (query.top>0 && count >= query.top) { this.next = null; cleanUp(); return false; } if (next!=null) return true; ttbMap.clear(); Object[] prevFieldValues = null; Table[] prevObjects = null; try { do { final Object[] peekRow = peekN...
diff --git a/orcid-core/src/main/java/org/orcid/core/version/impl/OrcidMessageVersionConverterImplV1_0_23ToV1_1_0.java b/orcid-core/src/main/java/org/orcid/core/version/impl/OrcidMessageVersionConverterImplV1_0_23ToV1_1_0.java index d0aa071e13..65a1a5424e 100644 --- a/orcid-core/src/main/java/org/orcid/core/version/imp...
true
true
private void downgradeOrcidIds(OrcidProfile orcidProfile) { final String orcid = orcidProfile.retrieveOrcidPath(); OrcidId orcidId = orcidProfile.getOrcidId(); if (orcidId != null) { orcidProfile.setOrcid(orcidId.getPath()); } TreeCleaner treeCleaner = new TreeCle...
private void downgradeOrcidIds(OrcidProfile orcidProfile) { final String orcid = orcidProfile.retrieveOrcidPath(); OrcidId orcidId = orcidProfile.getOrcidId(); if (orcidId != null && orcidId.getPath() != null) { orcidProfile.setOrcid(orcidId.getPath()); } TreeClea...
diff --git a/src/com/martinleopold/mode/python/PythonBuild.java b/src/com/martinleopold/mode/python/PythonBuild.java index fd54278..3b4effe 100644 --- a/src/com/martinleopold/mode/python/PythonBuild.java +++ b/src/com/martinleopold/mode/python/PythonBuild.java @@ -1,102 +1,102 @@ package com.martinleopold.mode.python;...
true
true
public String build(File srcFolder, File binFolder, boolean sizeWarning) throws SketchException { this.srcFolder = srcFolder; this.binFolder = binFolder; // escape all newlines to make single line string String pyCode = sketch.getMainProgram().replaceAll("\n", "\\\\n"); // \\n (will...
public String build(File srcFolder, File binFolder, boolean sizeWarning) throws SketchException { this.srcFolder = srcFolder; this.binFolder = binFolder; // escape all newlines to make single line string String pyCode = sketch.getMainProgram().replaceAll("\n", "\\\\n").replaceAll("\...
diff --git a/htmlunit/src/java/org/openqa/selenium/htmlunit/HtmlUnitWebElement.java b/htmlunit/src/java/org/openqa/selenium/htmlunit/HtmlUnitWebElement.java index 7bb6f7171..d4400311c 100644 --- a/htmlunit/src/java/org/openqa/selenium/htmlunit/HtmlUnitWebElement.java +++ b/htmlunit/src/java/org/openqa/selenium/htmlunit...
true
true
public String getAttribute(String name) { assertElementNotStale(); final String lowerName = name.toLowerCase(); String value = element.getAttribute(name); if (element instanceof HtmlInput && ("selected".equals(lowerName) || "checked".equals(lowerName))) { return ((HtmlInput)element).i...
public String getAttribute(String name) { assertElementNotStale(); final String lowerName = name.toLowerCase(); String value = element.getAttribute(name); if (element instanceof HtmlInput && ("selected".equals(lowerName) || "checked".equals(lowerName))) { return ((HtmlInput)element).i...
diff --git a/2115RobotCode/src/Jordan/bau5/FRC2115/subsystems/Camera.java b/2115RobotCode/src/Jordan/bau5/FRC2115/subsystems/Camera.java index a733637..5b75c1e 100644 --- a/2115RobotCode/src/Jordan/bau5/FRC2115/subsystems/Camera.java +++ b/2115RobotCode/src/Jordan/bau5/FRC2115/subsystems/Camera.java @@ -1,76 +1,76 @@ ...
false
true
public int processImage() { try { if(!camera.freshImage()) image = camera.getImage(); BinaryImage thresholdImage = image.thresholdHSL(0, 255, 0, 255, 165, 255); BinaryImage bigObjectsImage = thresholdImage.removeSmallObjects(false, 2); ...
public int processImage() { try { if(!camera.freshImage()) image = camera.getImage(); BinaryImage thresholdImage = image.thresholdHSL(0, 255, 0, 255, 165, 255); BinaryImage bigObjectsImage = thresholdImage.removeSmallObjects(false, 2); ...
diff --git a/src/main/java/smartrics/rest/fitnesse/fixture/RestFixture.java b/src/main/java/smartrics/rest/fitnesse/fixture/RestFixture.java index d96876e..9378a30 100644 --- a/src/main/java/smartrics/rest/fitnesse/fixture/RestFixture.java +++ b/src/main/java/smartrics/rest/fitnesse/fixture/RestFixture.java @@ -1,960 +...
true
true
public void let() { debugMethodCallStart(); String label = row.getCell(1).text().trim(); String loc = row.getCell(2).text(); String expr = row.getCell(3).text(); CellWrapper valueCell = row.getCell(4); String sValue = null; try { if ("header".equal...
public void let() { debugMethodCallStart(); String label = row.getCell(1).text().trim(); String loc = row.getCell(2).text(); String expr = row.getCell(3).text(); CellWrapper valueCell = row.getCell(4); String sValue = null; try { if ("header".equal...
diff --git a/src/net/mcforge/API/plugin/PluginHandler.java b/src/net/mcforge/API/plugin/PluginHandler.java index 4f9e8db..f01ae33 100644 --- a/src/net/mcforge/API/plugin/PluginHandler.java +++ b/src/net/mcforge/API/plugin/PluginHandler.java @@ -1,331 +1,330 @@ /*********************************************************...
true
true
public Map<Plugin, String> loadFile(File arg0, boolean update) { Map<Plugin, String> required = new HashMap<Plugin, String>(); JarFile file = null; try { file = new JarFile(arg0); } catch (IOException e) { server.logError(e); } if (file != null...
public Map<Plugin, String> loadFile(File arg0, boolean update) { Map<Plugin, String> required = new HashMap<Plugin, String>(); JarFile file = null; try { file = new JarFile(arg0); } catch (IOException e) { server.logError(e); } if (file != null...
diff --git a/src/Extensions/org/objectweb/proactive/extensions/pnp/PNPServerHandler.java b/src/Extensions/org/objectweb/proactive/extensions/pnp/PNPServerHandler.java index c831a8e44..18c1e1c45 100644 --- a/src/Extensions/org/objectweb/proactive/extensions/pnp/PNPServerHandler.java +++ b/src/Extensions/org/objectweb/pr...
false
true
public void run() { if (logger.isTraceEnabled()) { logger.trace("Received request #" + req.getCallId() + " on " + channel); } ClassLoader savedClassLoader = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread...
public void run() { if (logger.isTraceEnabled()) { logger.trace("Received request #" + req.getCallId() + " on " + channel); } ClassLoader savedClassLoader = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread...
diff --git a/src/com/android/camera/ui/SecondLevelIndicatorBar.java b/src/com/android/camera/ui/SecondLevelIndicatorBar.java index 1ba74a96..07ff6023 100644 --- a/src/com/android/camera/ui/SecondLevelIndicatorBar.java +++ b/src/com/android/camera/ui/SecondLevelIndicatorBar.java @@ -1,114 +1,115 @@ /* * Copyright (C)...
false
true
public boolean dispatchTouchEvent(MotionEvent event) { if (!onFilterTouchEventForSecurity(event)) return false; int action = event.getAction(); if (!isEnabled()) return false; double x = (double) event.getX(); double y = (double) event.getY(); if (x > getWidth()) x ...
public boolean dispatchTouchEvent(MotionEvent event) { if (!onFilterTouchEventForSecurity(event)) return false; int action = event.getAction(); if (!isEnabled()) return false; double x = (double) event.getX(); double y = (double) event.getY(); int height = getHeight...
diff --git a/src/java/org/archive/jbs/PageRank.java b/src/java/org/archive/jbs/PageRank.java index 81dfca1..9ed2bd9 100644 --- a/src/java/org/archive/jbs/PageRank.java +++ b/src/java/org/archive/jbs/PageRank.java @@ -1,403 +1,403 @@ /* * Copyright 2011 Internet Archive * * Licensed under the Apache License, Vers...
true
true
public int run( String[] args ) throws Exception { if (args.length < 2) { System.err.println( "PageRank <output> <input>..." ); return 1; } JobConf conf = new JobConf( getConf(), PageRank.class); conf.setJobName("jbs.misc.PageRank"); // No need to set this sin...
public int run( String[] args ) throws Exception { if (args.length < 2) { System.err.println( "PageRank <output> <input>..." ); return 1; } JobConf conf = new JobConf( getConf(), PageRank.class); conf.setJobName("jbs.PageRank"); // No need to set this since we...
diff --git a/src/java/com/zhoujie/test/LzoPBMutiMapTest.java b/src/java/com/zhoujie/test/LzoPBMutiMapTest.java index 3b76db6..1252a29 100644 --- a/src/java/com/zhoujie/test/LzoPBMutiMapTest.java +++ b/src/java/com/zhoujie/test/LzoPBMutiMapTest.java @@ -1,111 +1,111 @@ package com.zhoujie.test; import java.io.IOExce...
true
true
public int run(String[] args) throws Exception { if (args.length != 2) { System.err .println(LzoPBMutiMapTest.class.getSimpleName() + "<in> <out>"); return 1; } Configuration conf = this.getConf(); Job job = new Job(conf); job.set...
public int run(String[] args) throws Exception { if (args.length != 2) { System.err .println(LzoPBMutiMapTest.class.getSimpleName() + "<in> <out>"); return 1; } Configuration conf = this.getConf(); Job job = new Job(conf); job.set...
diff --git a/flickrj-android/src/main/java/com/googlecode/flickrjandroid/photos/SearchParameters.java b/flickrj-android/src/main/java/com/googlecode/flickrjandroid/photos/SearchParameters.java index 7ca28a0..460a080 100644 --- a/flickrj-android/src/main/java/com/googlecode/flickrjandroid/photos/SearchParameters.java ++...
true
true
public Collection<Parameter> getAsParameters() { List<Parameter> parameters = new ArrayList<Parameter>(); parameters.add(new Parameter("is_commons", inCommons)); String lat = getLatitude(); if (lat != null) { parameters.add(new Parameter("lat", lat)); } ...
public Collection<Parameter> getAsParameters() { List<Parameter> parameters = new ArrayList<Parameter>(); if( inCommons ) { parameters.add(new Parameter("is_commons", "true")); } String lat = getLatitude(); if (lat != null) { parameters.add(new ...
diff --git a/shell/src/main/java/org/crsh/plugin/PluginContext.java b/shell/src/main/java/org/crsh/plugin/PluginContext.java index 2f503f76..5e026d4e 100644 --- a/shell/src/main/java/org/crsh/plugin/PluginContext.java +++ b/shell/src/main/java/org/crsh/plugin/PluginContext.java @@ -1,371 +1,371 @@ /* * Copyright (C)...
true
true
public PluginContext( ExecutorService executor, ScheduledExecutorService scanner, PluginDiscovery discovery, Map<String, Object> attributes, FS cmdFS, FS confFS, ClassLoader loader) throws NullPointerException { if (executor == null) { throw new NullPointerException("No null exec...
public PluginContext( ExecutorService executor, ScheduledExecutorService scanner, PluginDiscovery discovery, Map<String, Object> attributes, FS cmdFS, FS confFS, ClassLoader loader) throws NullPointerException { if (executor == null) { throw new NullPointerException("No null exec...
diff --git a/installer/core/src/main/java/org/apache/sling/installer/core/impl/DefaultTransformer.java b/installer/core/src/main/java/org/apache/sling/installer/core/impl/DefaultTransformer.java index c0b492c16c..0951536075 100644 --- a/installer/core/src/main/java/org/apache/sling/installer/core/impl/DefaultTransforme...
true
true
private TransformationResult[] checkBundle(final RegisteredResource resource) { final Util.BundleHeaders headers = Util.readBundleHeaders(resource, logger); if ( headers != null ) { // check the version for validity boolean validVersion = true; try { ...
private TransformationResult[] checkBundle(final RegisteredResource resource) { final Util.BundleHeaders headers = Util.readBundleHeaders(resource, logger); if ( headers != null ) { // check the version for validity boolean validVersion = true; try { ...
diff --git a/service/src/main/java/de/schildbach/pte/service/ConnectionController.java b/service/src/main/java/de/schildbach/pte/service/ConnectionController.java index ba43dbf..18960d9 100644 --- a/service/src/main/java/de/schildbach/pte/service/ConnectionController.java +++ b/service/src/main/java/de/schildbach/pte/s...
true
true
public QueryConnectionsResult connection(@RequestParam(value = "fromType", required = false, defaultValue = "ANY") final LocationType fromType, @RequestParam(value = "from", required = false) final String from, @RequestParam(value = "fromId", required = false, defaultValue = "0") final int fromId, @RequestPar...
public QueryConnectionsResult connection(@RequestParam(value = "fromType", required = false, defaultValue = "ANY") final LocationType fromType, @RequestParam(value = "from", required = false) final String from, @RequestParam(value = "fromId", required = false, defaultValue = "0") final int fromId, @RequestPar...
diff --git a/addon-service-layer/src/main/java/org/gvnix/service/layer/roo/addon/ServiceLayerCommands.java b/addon-service-layer/src/main/java/org/gvnix/service/layer/roo/addon/ServiceLayerCommands.java index 8b277ddc..7ed9d17e 100644 --- a/addon-service-layer/src/main/java/org/gvnix/service/layer/roo/addon/ServiceLaye...
false
true
public void addServiceOperation( @CliOption(key = { "", "name" }, mandatory = true, help = "The name of the operation to add") JavaSymbolName operationName, @CliOption(key = "service", mandatory = true, optionContext = "update,project", help = "The name of the service to receive this field")...
public void addServiceOperation( @CliOption(key = { "", "name" }, mandatory = true, help = "The name of the operation to add") JavaSymbolName operationName, @CliOption(key = "service", mandatory = true, optionContext = "update,project", help = "The name of the service to receive this field")...
diff --git a/de/jskat/ai/mjl/Bidding.java b/de/jskat/ai/mjl/Bidding.java index cd129bac..01c8d452 100644 --- a/de/jskat/ai/mjl/Bidding.java +++ b/de/jskat/ai/mjl/Bidding.java @@ -1,85 +1,100 @@ /* @ShortLicense@ Author: @MJL@ Released: @ReleaseDate@ */ package de.jskat.ai.mjl; import org.apache.commo...
true
true
Bidding(CardList cards) { log.debug("Checking out what to bid with ["+cards+"]"); Suit mostFrequentSuitColor; int mostFrequentSuitColorValue = 0; int multiplier = Helper.getMultiplier(cards); mostFrequentSuitColor = cards.getMostFrequentSuit(); int noOfTrumps = cards.getSuitCount(mostFrequentS...
Bidding(CardList cards) { log.debug("Checking out what to bid with ["+cards+"]"); Suit mostFrequentSuitColor; int mostFrequentSuitColorValue = 0; int multiplier = Helper.getMultiplier(cards); mostFrequentSuitColor = cards.getMostFrequentSuit(); int noOfTrumps = cards.getSuitCount(mostFrequentS...
diff --git a/src/org/broad/igv/data/AbstractDataSource.java b/src/org/broad/igv/data/AbstractDataSource.java index f57d5d6e..c7da8b4d 100644 --- a/src/org/broad/igv/data/AbstractDataSource.java +++ b/src/org/broad/igv/data/AbstractDataSource.java @@ -1,519 +1,519 @@ /* * Copyright (c) 2007-2011 by The Broad Institut...
true
true
SummaryTile computeSummaryTile(String chr, int tileNumber, int startLocation, int endLocation, double binSize) { // TODO -- we should use an index here int longestGene = getLongestFeature(chr); int adjustedStart = Math.max(startLocation - longestGene, 0); DataTile rawTile = getRaw...
SummaryTile computeSummaryTile(String chr, int tileNumber, int startLocation, int endLocation, double binSize) { // TODO -- we should use an index here int longestGene = getLongestFeature(chr); int adjustedStart = Math.max(startLocation - longestGene, 0); DataTile rawTile = getRaw...
diff --git a/Curiosity/src/edu/kit/curiosity/behaviors/SensorHeadPosition.java b/Curiosity/src/edu/kit/curiosity/behaviors/SensorHeadPosition.java index 9dc052c..8d24e59 100644 --- a/Curiosity/src/edu/kit/curiosity/behaviors/SensorHeadPosition.java +++ b/Curiosity/src/edu/kit/curiosity/behaviors/SensorHeadPosition.java...
true
true
public void action() { suppressed = false; ///Motor.A.flt(true); //TODO hier? ER IS LOCKT!!!! Motor.A.rotateTo(0); while (Motor.A.isMoving() && !suppressed) { Thread.yield(); } }
public void action() { suppressed = false; ///Motor.A.flt(true); //TODO hier? ER IS LOCKT!!!! Motor.A.rotateTo(0); Motor.A.flt(true); while (Motor.A.isMoving() && !suppressed) { Thread.yield(); } }
diff --git a/src/de/thm/mni/nn/perceptron/impl/Axon.java b/src/de/thm/mni/nn/perceptron/impl/Axon.java index a484701..5d92497 100644 --- a/src/de/thm/mni/nn/perceptron/impl/Axon.java +++ b/src/de/thm/mni/nn/perceptron/impl/Axon.java @@ -1,143 +1,143 @@ package de.thm.mni.nn.perceptron.impl; /** * Axon Representat...
true
true
public void setRandonWeight(double seedMin, double seedMax) { if (seedMin > seedMax) { double tmp = seedMin; seedMin = seedMax; seedMax = tmp; } double randomValue = Math.random() * ((seedMax - seedMin) + 1) + seedMin; this.weight = Math.round(randomValue*1000)/1000d; }
public void setRandonWeight(double seedMin, double seedMax) { if (seedMin > seedMax) { double tmp = seedMin; seedMin = seedMax; seedMax = tmp; } double randomValue = Math.random() * ((seedMax - seedMin)) + seedMin; this.weight = Math.round(randomValue*1000)/1000d; }
diff --git a/src/me/neatmonster/spacertk/SpaceRTK.java b/src/me/neatmonster/spacertk/SpaceRTK.java index 3bdbbef..142898e 100644 --- a/src/me/neatmonster/spacertk/SpaceRTK.java +++ b/src/me/neatmonster/spacertk/SpaceRTK.java @@ -1,155 +1,158 @@ /* * This file is part of SpaceRTK (http://spacebukkit.xereo.net/). * ...
true
true
public void onEnable() { spaceRTK = this; final YamlConfiguration config = YamlConfiguration.loadConfiguration(SpaceModule.CONFIGURATION); type = config.getString("SpaceModule.type", "Bukkit"); config.set("SpaceModule.type", type = "Bukkit"); worldContainer = new File(config....
public void onEnable() { spaceRTK = this; final YamlConfiguration config = YamlConfiguration.loadConfiguration(SpaceModule.CONFIGURATION); type = config.getString("SpaceModule.type", "Bukkit"); config.set("SpaceModule.type", type = "Bukkit"); worldContainer = new File(config....
diff --git a/src/Views/SearchResults/SearchResultsController.java b/src/Views/SearchResults/SearchResultsController.java index 52e5889..6208e8d 100644 --- a/src/Views/SearchResults/SearchResultsController.java +++ b/src/Views/SearchResults/SearchResultsController.java @@ -1,156 +1,156 @@ package Views.SearchResults; ...
true
true
private void setSearchQuery(SearchQuery sq) { searchQuery = sq; //selectedFilters = ps.getResultCategories(); // Updates the result list of items updateViewResultList(); // Set the available category filters in the view updateViewFilters(sq.getResultCategories()); ...
private void setSearchQuery(SearchQuery sq) { searchQuery = sq; selectedFilters = new HashSet<ProductCategory>(); // Updates the result list of items updateViewResultList(); // Set the available category filters in the view updateViewFilters(sq.getResultCategories()...
diff --git a/orbisgis-view/src/main/java/org/orbisgis/view/toc/actions/cui/legends/model/KeyEditorMappedLegend.java b/orbisgis-view/src/main/java/org/orbisgis/view/toc/actions/cui/legends/model/KeyEditorMappedLegend.java index 56c747642..e60eff7fd 100644 --- a/orbisgis-view/src/main/java/org/orbisgis/view/toc/actions/c...
true
true
public void actionPerformed(ActionEvent e) { if(e.getActionCommand().equals(EDIT)){ U lp = rl.get(val); K k = getNotUsedKey(val); rl.put(k, lp); fireEditingStopped(); } }
public void actionPerformed(ActionEvent e) { if(e.getActionCommand().equals(EDIT)){ U lp = rl.get(val); K k = getNotUsedKey(val); rl.remove(val); rl.put(k, lp); fireEditingStopped(); } }
diff --git a/src/com/daemitus/deadbolt/events/EntityListener.java b/src/com/daemitus/deadbolt/events/EntityListener.java index 87de071..00fd23f 100644 --- a/src/com/daemitus/deadbolt/events/EntityListener.java +++ b/src/com/daemitus/deadbolt/events/EntityListener.java @@ -1,51 +1,51 @@ package com.daemitus.deadbolt.ev...
true
true
public void onEntityExplode(EntityExplodeEvent event) { if (event.isCancelled()) return; if (!Config.explosionProtection) return; for (Block block : event.blockList()) { if (Util.isProtected(block)) { event.setCancelled(true); ...
public void onEntityExplode(EntityExplodeEvent event) { if (event.isCancelled()) return; if (!Config.explosionProtection) return; for (Block block : event.blockList()) { if (Util.isProtected(block)) { event.setCancelled(true); ...
diff --git a/com/tapsterrock/mspdi/MSPDIFile.java b/com/tapsterrock/mspdi/MSPDIFile.java index 3f29b17..7fb8714 100644 --- a/com/tapsterrock/mspdi/MSPDIFile.java +++ b/com/tapsterrock/mspdi/MSPDIFile.java @@ -1,3604 +1,3605 @@ /* * file: MSPDIFile.java * author: Jon Iles * copyright: (c) Tapster Rock ...
false
true
private Project.TasksType.TaskType writeTask (ObjectFactory factory, Task mpx) throws JAXBException { Project.TasksType.TaskType xml = factory.createProjectTypeTasksTypeTaskType(); DateTimeSettings settings = getDateTimeSettings(); int defaultStartTime = settings.getDefaultStartTimeValue()...
private Project.TasksType.TaskType writeTask (ObjectFactory factory, Task mpx) throws JAXBException { Project.TasksType.TaskType xml = factory.createProjectTypeTasksTypeTaskType(); DateTimeSettings settings = getDateTimeSettings(); int defaultStartTime = settings.getDefaultStartTimeValue()...
diff --git a/Essentials/src/com/earth2me/essentials/Essentials.java b/Essentials/src/com/earth2me/essentials/Essentials.java index 3c0a35b..10cdbb5 100644 --- a/Essentials/src/com/earth2me/essentials/Essentials.java +++ b/Essentials/src/com/earth2me/essentials/Essentials.java @@ -1,675 +1,675 @@ /* * Essentials - a ...
true
true
public boolean onCommandEssentials(CommandSender sender, Command command, String commandLabel, String[] args, ClassLoader classLoader, String commandPath) { if ("msg".equals(commandLabel.toLowerCase()) || "r".equals(commandLabel.toLowerCase()) || "mail".equals(commandLabel.toLowerCase()) & sender instanceof CraftPl...
public boolean onCommandEssentials(CommandSender sender, Command command, String commandLabel, String[] args, ClassLoader classLoader, String commandPath) { if ("msg".equals(commandLabel.toLowerCase()) || "r".equals(commandLabel.toLowerCase()) || "mail".equals(commandLabel.toLowerCase()) & sender instanceof CraftPl...
diff --git a/src/main/java/org/basex/test/w3c/W3CTS.java b/src/main/java/org/basex/test/w3c/W3CTS.java index 7bf6cfc96..d61847388 100644 --- a/src/main/java/org/basex/test/w3c/W3CTS.java +++ b/src/main/java/org/basex/test/w3c/W3CTS.java @@ -1,873 +1,873 @@ package org.basex.test.w3c; import static org.basex.core.Te...
true
true
private boolean parse(final Nodes root) throws Exception { final String pth = text("@FilePath", root); final String outname = text("@name", root); if(single != null && !outname.startsWith(single)) return true; Performance perf = new Performance(); if(verbose) Util.out("- " + outname); boolea...
private boolean parse(final Nodes root) throws Exception { final String pth = text("@FilePath", root); final String outname = text("@name", root); if(single != null && !outname.startsWith(single)) return true; Performance perf = new Performance(); if(verbose) Util.out("- " + outname); boolea...
diff --git a/modules/foundation/appbase/src/classes/org/jdesktop/wonderland/modules/appbase/client/ControlArbSingle.java b/modules/foundation/appbase/src/classes/org/jdesktop/wonderland/modules/appbase/client/ControlArbSingle.java index 0dbb6093b..44b9dd9b0 100644 --- a/modules/foundation/appbase/src/classes/org/jdeskt...
true
true
public synchronized void setController(String controller) { String oldController = this.controller; this.controller = controller; if ((controller == null && oldController != null) || !controller.equals(oldController)) { updateControl(); } }
public synchronized void setController(String controller) { String oldController = this.controller; this.controller = controller; if (controller == null) { if (oldController != null) { updateControl(); } } else { if (!controller.equ...
diff --git a/drops/src/main/java/fr/ethilvan/bukkit/drops/randomDrops/CustomDrop.java b/drops/src/main/java/fr/ethilvan/bukkit/drops/randomDrops/CustomDrop.java index 1e05e37..9b5e7a1 100644 --- a/drops/src/main/java/fr/ethilvan/bukkit/drops/randomDrops/CustomDrop.java +++ b/drops/src/main/java/fr/ethilvan/bukkit/drops...
true
true
public ItemStack toItemStack() { int randomAmount = Util.getRandom().nextInt(amountMin, amountMax); ItemStack stack = new ItemStack(id, randomAmount, data); if (enchantmentName != null || enchantmentLevel != 0) { Enchantment enchant = Enchantment.getByName(enchantmentName); ...
public ItemStack toItemStack() { int randomAmount = Util.getRandom().nextInt(amountMin, amountMax); ItemStack stack = new ItemStack(id, randomAmount, data); if (enchantmentName != null || enchantmentLevel != 0) { Enchantment enchant = Enchantment.getByName(enchantmentName); ...
diff --git a/src/info/vanderkooy/ucheck/Account.java b/src/info/vanderkooy/ucheck/Account.java index 8f73b6c..12dcd1e 100644 --- a/src/info/vanderkooy/ucheck/Account.java +++ b/src/info/vanderkooy/ucheck/Account.java @@ -1,88 +1,88 @@ package info.vanderkooy.ucheck; import android.app.Activity; import android.cont...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.account); prefs = new Preferences(getApplicationContext()); infoButton = (Button) findViewById(R.id.info); loginButton = (Button) findViewById(R.id.login); username = (EditText) findViewById(R....
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.account); prefs = new Preferences(getApplicationContext()); infoButton = (Button) findViewById(R.id.info); loginButton = (Button) findViewById(R.id.login); username = (EditText) findViewById(R....
diff --git a/03_IDEA/src/task3/IDEA.java b/03_IDEA/src/task3/IDEA.java index 5fff1a5..ebd7eb7 100755 --- a/03_IDEA/src/task3/IDEA.java +++ b/03_IDEA/src/task3/IDEA.java @@ -1,197 +1,197 @@ /* * jCrypt - Programmierumgebung für das Kryptologie-Praktikum * Studienarbeit am Institut für Theoretische Informatik der ...
true
true
public void makeKey() { BufferedReader standardInput = launcher.openStandardInput(); keyString = new String(); char keyCharArray[] = new char[16]; // Auswahl eingeben oder generieren: int choice = 0; try { Logger("[0] Möchtest du einen eigenen Schlüssel eingeben\n[1] oder einen Schl...
public void makeKey() { BufferedReader standardInput = launcher.openStandardInput(); keyString = new String(); char keyCharArray[] = new char[16]; // Auswahl eingeben oder generieren: int choice = -1; try { Logger("[0] Möchtest du einen eigenen Schlüssel eingeben\n[1] oder einen Sch...
diff --git a/src/CompetitorAI.java b/src/CompetitorAI.java index 8022491..3b11daf 100644 --- a/src/CompetitorAI.java +++ b/src/CompetitorAI.java @@ -1,305 +1,306 @@ import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import bonzai.api.AI; import bonzai.api.Duck; import bonzai.api....
false
true
private String quote(){ if(talkers < 0 && haveSpoken == 0){ talkers = talkers*-1; } if(talkers < 1) talkers--; if(quoteCount >= 10){ quoteCount = 0; int minimum = 1; int maximum = 12; lastQuote = minimum + (int)(Math.random()*maximum); } System.out.println(quoteCount +" "+ las...
private String quote(){ if(talkers < 0 && haveSpoken == 0){ talkers = talkers*-1; } if(talkers < 1) talkers--; if(quoteCount >= 10){ quoteCount = 0; int minimum = 1; int maximum = 12; lastQuote = minimum + (int)(Math.random()*maximum); } System.out.println(quoteCount +" "+ las...
diff --git a/modules/amazon-ec2-provisioner/src/main/java/com/elasticgrid/platforms/ec2/EC2CloudPlatformManager.java b/modules/amazon-ec2-provisioner/src/main/java/com/elasticgrid/platforms/ec2/EC2CloudPlatformManager.java index e5da7599..a83a92c3 100644 --- a/modules/amazon-ec2-provisioner/src/main/java/com/elasticgri...
false
true
public void resizeCluster(String clusterName, List<NodeProfileInfo> clusterTopology) throws ClusterException, ExecutionException, TimeoutException, InterruptedException, RemoteException { // inspect the current cluster in order to figure out its topology EC2Cluster cluster = cluster(clusterName); ...
public void resizeCluster(String clusterName, List<NodeProfileInfo> clusterTopology) throws ClusterException, ExecutionException, TimeoutException, InterruptedException, RemoteException { // inspect the current cluster in order to figure out its topology EC2Cluster cluster = cluster(clusterName); ...
diff --git a/src/nu/nerd/nerdspawn/NerdSpawnListener.java b/src/nu/nerd/nerdspawn/NerdSpawnListener.java index 42539ef..edac4dc 100644 --- a/src/nu/nerd/nerdspawn/NerdSpawnListener.java +++ b/src/nu/nerd/nerdspawn/NerdSpawnListener.java @@ -1,45 +1,45 @@ package nu.nerd.nerdspawn; import org.bukkit.ChatColor; impo...
true
true
public void onPlayerJoin(PlayerJoinEvent event) { if (!event.getPlayer().hasPlayedBefore()) { if (plugin.getConfig().getBoolean("first-join-alternate-spawn")) { event.getPlayer().teleport(plugin.getFirstSpawnLocation()); } else { event.getPlayer().teleport(plugin.ge...
public void onPlayerJoin(PlayerJoinEvent event) { if (!event.getPlayer().hasPlayedBefore()) { if (plugin.getConfig().getBoolean("first-join-alternate-spawn")) { event.getPlayer().teleport(plugin.getFirstSpawnLocation()); } else { event.getPlayer().teleport(plugin.ge...
diff --git a/addon-security/src/main/java/org/springframework/roo/addon/security/SecurityOperationsImpl.java b/addon-security/src/main/java/org/springframework/roo/addon/security/SecurityOperationsImpl.java index 183d318b2..f4b97daa7 100644 --- a/addon-security/src/main/java/org/springframework/roo/addon/security/Secur...
true
true
public void installSecurity() { // Parse the configuration.xml file Element configuration = XmlUtils.getConfiguration(getClass()); // Add POM properties updatePomProperties(configuration); // Add dependencies to POM updateDependencies(configuration); PathResolver pathResolver = projectOperations.getPa...
public void installSecurity() { // Parse the configuration.xml file Element configuration = XmlUtils.getConfiguration(getClass()); // Add POM properties updatePomProperties(configuration); // Add dependencies to POM updateDependencies(configuration); PathResolver pathResolver = projectOperations.getPa...
diff --git a/src/org/allmydata/tahoelafs/Browser.java b/src/org/allmydata/tahoelafs/Browser.java index 433e9a0..844d83a 100644 --- a/src/org/allmydata/tahoelafs/Browser.java +++ b/src/org/allmydata/tahoelafs/Browser.java @@ -1,262 +1,264 @@ package org.allmydata.tahoelafs; import java.io.IOException; import org....
false
true
public boolean onOptionsItemSelected(MenuItem item) { Intent intent; switch (item.getItemId()) { case MENU_UPLOAD: intent = new Intent("org.openintents.action.PICK_FILE"); startActivityForResult(intent, 1); return true; case MENU_MKDIR: ...
public boolean onOptionsItemSelected(MenuItem item) { Intent intent; switch (item.getItemId()) { case MENU_UPLOAD: intent = new Intent("org.openintents.action.PICK_FILE"); startActivityForResult(intent, 1); return true; case MENU_MKDIR: ...
diff --git a/vraptor-core/src/main/java/br/com/caelum/vraptor/reflection/CacheBasedTypeCreator.java b/vraptor-core/src/main/java/br/com/caelum/vraptor/reflection/CacheBasedTypeCreator.java index 327affb21..672dcb192 100644 --- a/vraptor-core/src/main/java/br/com/caelum/vraptor/reflection/CacheBasedTypeCreator.java +++ ...
true
true
public Class<?> typeFor(ResourceMethod method) { if (!cache.containsKey(method.getMethod())) { cache.put(method.getMethod(), creator.typeFor(method)); logger.debug("cached generic type for method " + method); } return cache.get(method); }
public Class<?> typeFor(ResourceMethod method) { if (!cache.containsKey(method.getMethod())) { cache.put(method.getMethod(), creator.typeFor(method)); logger.debug("cached generic type for method " + method); } return cache.get(method.getMethod()); }
diff --git a/engine/src/main/java/org/archive/crawler/framework/ToeThread.java b/engine/src/main/java/org/archive/crawler/framework/ToeThread.java index 52833bfe..e6aefd19 100644 --- a/engine/src/main/java/org/archive/crawler/framework/ToeThread.java +++ b/engine/src/main/java/org/archive/crawler/framework/ToeThread.ja...
true
true
public void run() { String name = controller.getMetadata().getJobName(); logger.fine(getName()+" started for order '"+name+"'"); Recorder.setHttpRecorder(httpRecorder); try { while ( true ) { ArchiveUtils.continueCheck(); ...
public void run() { String name = controller.getMetadata().getJobName(); logger.fine(getName()+" started for order '"+name+"'"); Recorder.setHttpRecorder(httpRecorder); try { while ( true ) { ArchiveUtils.continueCheck(); ...