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/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java
index e6959631..14fac15d 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_POSIX.java
@@ -1,97 +1,102 @@
/*
* Copyri... | true | true | public File gitPrefix() {
String path = SystemReader.getInstance().getenv("PATH");
File gitExe = searchPath(path, "git");
if (gitExe != null)
return gitExe.getParentFile().getParentFile();
if (isMacOS()) {
// On MacOSX, PATH is shorter when Eclipse is launched from the
// Finder than from a terminal.... | public File gitPrefix() {
String path = SystemReader.getInstance().getenv("PATH");
File gitExe = searchPath(path, "git");
if (gitExe != null)
return gitExe.getParentFile().getParentFile();
if (isMacOS()) {
// On MacOSX, PATH is shorter when Eclipse is launched from the
// Finder than from a terminal.... |
diff --git a/nuxeo-core-api/src/test/java/org/nuxeo/ecm/core/api/impl/blob/TestBlob.java b/nuxeo-core-api/src/test/java/org/nuxeo/ecm/core/api/impl/blob/TestBlob.java
index 3954fa0f4..5609b7e1b 100644
--- a/nuxeo-core-api/src/test/java/org/nuxeo/ecm/core/api/impl/blob/TestBlob.java
+++ b/nuxeo-core-api/src/test/java/or... | true | true | public void testStringBlob() throws Exception {
// Use random string for this test.
StringBuilder buff = new StringBuilder();
Random rand = new Random();
for (int i = 0; i < 1000000; i++) {
buff.append((char) rand.nextInt());
}
String s = buff.toString();
... | public void testStringBlob() throws Exception {
// Use random string for this test.
StringBuilder buff = new StringBuilder();
Random rand = new Random();
for (int i = 0; i < 1000000; i++) {
buff.append((char) rand.nextInt());
}
String s = buff.toString();
... |
diff --git a/src/main/java/net/idea/opentox/cli/structure/SubstanceClient.java b/src/main/java/net/idea/opentox/cli/structure/SubstanceClient.java
index f70f73b..1935165 100644
--- a/src/main/java/net/idea/opentox/cli/structure/SubstanceClient.java
+++ b/src/main/java/net/idea/opentox/cli/structure/SubstanceClient.java... | true | true | protected List<Substance> processPayload(InputStream in, String mediaType)
throws RestException, IOException {
List<Substance> list = null;
if (mime_json.equals(mediaType)) {
ObjectMapper m = new ObjectMapper();
JsonNode node = m.readTree(in);
ArrayNode data = (ArrayNode)node.get("dataEntry");
J... | protected List<Substance> processPayload(InputStream in, String mediaType)
throws RestException, IOException {
List<Substance> list = null;
if (mime_json.equals(mediaType)) {
ObjectMapper m = new ObjectMapper();
JsonNode node = m.readTree(in);
ArrayNode data = (ArrayNode)node.get("dataEntry");
J... |
diff --git a/loci/formats/FilePattern.java b/loci/formats/FilePattern.java
index 8ea38dfd6..fedda4c79 100644
--- a/loci/formats/FilePattern.java
+++ b/loci/formats/FilePattern.java
@@ -1,722 +1,722 @@
//
// FilePattern.java
//
/*
LOCI Bio-Formats package for reading and converting biological file formats.
Copyr... | true | true | public static String findPattern(String name, String dir, String[] nameList) {
if (dir == null) dir = ""; // current directory
else if (!dir.equals("") && !dir.endsWith(File.separator)) {
dir += File.separator;
}
// compile list of numerical blocks
int len = name.length();
int bound = (... | public static String findPattern(String name, String dir, String[] nameList) {
if (dir == null) dir = ""; // current directory
else if (!dir.equals("") && !dir.endsWith(File.separator)) {
dir += File.separator;
}
// compile list of numerical blocks
int len = name.length();
int bound = (... |
diff --git a/src/test/java/test/ant/TestCommandLineArgs.java b/src/test/java/test/ant/TestCommandLineArgs.java
index 7d823911..641f5bd8 100644
--- a/src/test/java/test/ant/TestCommandLineArgs.java
+++ b/src/test/java/test/ant/TestCommandLineArgs.java
@@ -1,51 +1,51 @@
package test.ant;
import static org.testng.Asse... | true | true | public void testPathResolution()
{
File file = new File("build.xml");
assert file.exists();
String path = file.getAbsolutePath();
assert path.split("[/\\\\]", -1).length > 1;
}
| public void testPathResolution()
{
File file = new File("pom.xml");
assert file.exists();
String path = file.getAbsolutePath();
assert path.split("[/\\\\]", -1).length > 1;
}
|
diff --git a/extensions/jcrinstall/src/main/java/org/apache/sling/jcr/jcrinstall/jcr/impl/WatchedFolder.java b/extensions/jcrinstall/src/main/java/org/apache/sling/jcr/jcrinstall/jcr/impl/WatchedFolder.java
index d2a0aefcc6..bd171993db 100644
--- a/extensions/jcrinstall/src/main/java/org/apache/sling/jcr/jcrinstall/jcr... | true | true | protected void scan() throws Exception {
log.debug("Scanning {}", path);
checkDeletions(controller.getInstalledUris());
Node folder = null;
if(session.itemExists(path)) {
Item i = session.getItem(path);
if(i.isNode()) {
folder = (Node)i;
... | protected void scan() throws Exception {
log.debug("Scanning {}", path);
checkDeletions(controller.getInstalledUris());
Node folder = null;
if(session.itemExists(path)) {
Item i = session.getItem(path);
if(i.isNode()) {
folder = (Node)i;
... |
diff --git a/src/main/java/pl/agh/enrollme/service/PreferencesManagementService.java b/src/main/java/pl/agh/enrollme/service/PreferencesManagementService.java
index 683faf6..36cd437 100644
--- a/src/main/java/pl/agh/enrollme/service/PreferencesManagementService.java
+++ b/src/main/java/pl/agh/enrollme/service/Preferenc... | true | true | public void saveScheduleController(Enroll currentEnroll, ScheduleController scheduleController) {
currentEnroll = enrollDAO.getByPK(currentEnroll.getEnrollID());
//Importing enroll configuration
final EnrollConfiguration enrollConfiguration = currentEnroll.getEnrollConfiguration();
... | public void saveScheduleController(Enroll currentEnroll, ScheduleController scheduleController) {
currentEnroll = enrollDAO.getByPK(currentEnroll.getEnrollID());
//Importing enroll configuration
final EnrollConfiguration enrollConfiguration = currentEnroll.getEnrollConfiguration();
... |
diff --git a/app/rules/RuleUtils.java b/app/rules/RuleUtils.java
index 49bbc17..addd21a 100644
--- a/app/rules/RuleUtils.java
+++ b/app/rules/RuleUtils.java
@@ -1,207 +1,206 @@
package rules;
import java.io.File;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.regex.P... | true | true | public static List<FileMove> runRules(User user) {
user.updateLastSyncDate();
List<FileMove> fileMoves = Lists.newArrayList();
DropboxClient client = DropboxClientFactory.create(user);
try {
//Rebranding from Sortbox to SortMyBox requires backwards compatibility
... | public static List<FileMove> runRules(User user) {
user.updateLastSyncDate();
List<FileMove> fileMoves = Lists.newArrayList();
DropboxClient client = DropboxClientFactory.create(user);
try {
//Rebranding from Sortbox to SortMyBox requires backwards compatibility
... |
diff --git a/java/client/src/org/openqa/selenium/WebDriverCommandProcessor.java b/java/client/src/org/openqa/selenium/WebDriverCommandProcessor.java
index f228e6443..d4d20ad74 100644
--- a/java/client/src/org/openqa/selenium/WebDriverCommandProcessor.java
+++ b/java/client/src/org/openqa/selenium/WebDriverCommandProces... | true | true | private void setUpMethodMap() {
JavascriptLibrary javascriptLibrary = new JavascriptLibrary();
ElementFinder elementFinder = new ElementFinder(javascriptLibrary);
KeyState keyState = new KeyState();
AlertOverride alertOverride = new AlertOverride();
Windows windows = new Windows(driver);
// ... | private void setUpMethodMap() {
JavascriptLibrary javascriptLibrary = new JavascriptLibrary();
ElementFinder elementFinder = new ElementFinder(javascriptLibrary);
KeyState keyState = new KeyState();
AlertOverride alertOverride = new AlertOverride();
Windows windows = new Windows(driver);
// ... |
diff --git a/src/test/java/com/seitenbau/micgwaf/generator/GeneratedSourcesTest.java b/src/test/java/com/seitenbau/micgwaf/generator/GeneratedSourcesTest.java
index d782322..4d2f25b 100644
--- a/src/test/java/com/seitenbau/micgwaf/generator/GeneratedSourcesTest.java
+++ b/src/test/java/com/seitenbau/micgwaf/generator/G... | true | true | public void generateAndCompile() throws Exception
{
File componentDir = new File("src/test/resources/com/seitenbau/micgwaf/page");
File generatedSourcesDir = new File("target/generated-sources");
File generatedExtensionsDir = new File("target/generated-extension-sources");
File compileRootDir =... | public void generateAndCompile() throws Exception
{
File componentDir = new File("src/test/resources/com/seitenbau/micgwaf/page");
File generatedSourcesDir = new File("target/generated-sources");
File generatedExtensionsDir = new File("target/generated-extension-sources");
File compileRootDir =... |
diff --git a/src/com/android/settings/wifi/WifiConfigController.java b/src/com/android/settings/wifi/WifiConfigController.java
index 77aa7c71e..a20e16085 100644
--- a/src/com/android/settings/wifi/WifiConfigController.java
+++ b/src/com/android/settings/wifi/WifiConfigController.java
@@ -1,753 +1,753 @@
/*
* Copyrig... | true | true | public WifiConfigController(
WifiConfigUiBase parent, View view, AccessPoint accessPoint, boolean edit) {
mConfigUi = parent;
mInXlSetupWizard = (parent instanceof WifiConfigUiForSetupWizardXL);
mView = view;
mAccessPoint = accessPoint;
mAccessPointSecurity = (ac... | public WifiConfigController(
WifiConfigUiBase parent, View view, AccessPoint accessPoint, boolean edit) {
mConfigUi = parent;
mInXlSetupWizard = (parent instanceof WifiConfigUiForSetupWizardXL);
mView = view;
mAccessPoint = accessPoint;
mAccessPointSecurity = (ac... |
diff --git a/src/com/nadmm/airports/wx/WxCursorAdapter.java b/src/com/nadmm/airports/wx/WxCursorAdapter.java
index 2f4d0a31..7415ae2a 100644
--- a/src/com/nadmm/airports/wx/WxCursorAdapter.java
+++ b/src/com/nadmm/airports/wx/WxCursorAdapter.java
@@ -1,249 +1,251 @@
/*
* FlightIntel for Pilots
*
* Copyright 2012... | true | true | protected void showMetarInfo( View view, Cursor c, Metar metar ) {
if ( metar != null ) {
if ( metar.isValid ) {
// We have METAR for this station
double lat = c.getDouble(
c.getColumnIndex( Wxs.STATION_LATITUDE_DEGREES ) );
... | protected void showMetarInfo( View view, Cursor c, Metar metar ) {
if ( metar != null ) {
if ( metar.isValid ) {
// We have METAR for this station
double lat = c.getDouble(
c.getColumnIndex( Wxs.STATION_LATITUDE_DEGREES ) );
... |
diff --git a/frost-wot/source/frost/gui/TableXmlIO.java b/frost-wot/source/frost/gui/TableXmlIO.java
index 9473a808..15457cb7 100644
--- a/frost-wot/source/frost/gui/TableXmlIO.java
+++ b/frost-wot/source/frost/gui/TableXmlIO.java
@@ -1,474 +1,474 @@
package frost.gui;
import java.io.File;
import java.util.ArrayLi... | true | true | protected static FrostDownloadItemObject getDownloadItemFromElement(Element dlItemElement)
{
String filename = XMLTools.getChildElementsCDATAValue(dlItemElement, "filename");
String filesize = XMLTools.getChildElementsTextValue(dlItemElement, "filesize");
String fileage = XMLTools.getChi... | protected static FrostDownloadItemObject getDownloadItemFromElement(Element dlItemElement)
{
String filename = XMLTools.getChildElementsCDATAValue(dlItemElement, "filename");
String filesize = XMLTools.getChildElementsTextValue(dlItemElement, "filesize");
String fileage = XMLTools.getChi... |
diff --git a/public/java/src/org/broadinstitute/sting/gatk/walkers/diffengine/DiffEngine.java b/public/java/src/org/broadinstitute/sting/gatk/walkers/diffengine/DiffEngine.java
index 4e3342609..2159bc839 100644
--- a/public/java/src/org/broadinstitute/sting/gatk/walkers/diffengine/DiffEngine.java
+++ b/public/java/src/... | true | true | protected void printSummaryReport(List<Difference> sortedSummaries, SummaryReportParams params ) {
List<Difference> toShow = new ArrayList<Difference>();
int count = 0, count1 = 0;
for ( Difference diff : sortedSummaries ) {
if ( diff.getCount() < params.minSumDiffToShow )
... | protected void printSummaryReport(List<Difference> sortedSummaries, SummaryReportParams params ) {
List<Difference> toShow = new ArrayList<Difference>();
int count = 0, count1 = 0;
for ( Difference diff : sortedSummaries ) {
if ( diff.getCount() < params.minSumDiffToShow )
... |
diff --git a/MaxRectangular/Solution.java b/MaxRectangular/Solution.java
index 0bc25d6..97eb200 100644
--- a/MaxRectangular/Solution.java
+++ b/MaxRectangular/Solution.java
@@ -1,40 +1,40 @@
public class Solution {
public int maximalRectangle(char[][] matrix) {
if (matrix == null || matrix.length ... | true | true | public int maximalRectangle(char[][] matrix) {
if (matrix == null || matrix.length == 0 || matrix[0].length == 0)
return 0;
int height = matrix.length;
int width = matrix[0].length;
int [][] dp = new int [height][width];
for(int i = 0; i< height; ++i)
dp [i]... | public int maximalRectangle(char[][] matrix) {
if (matrix == null || matrix.length == 0 || matrix[0].length == 0)
return 0;
int height = matrix.length;
int width = matrix[0].length;
int [][] dp = new int [height][width];
for(int i = 0; i< height; ++i)
dp [i]... |
diff --git a/android/pme/src/com/hn/pme/android/pme.java b/android/pme/src/com/hn/pme/android/pme.java
index db4477c..9b3c2c8 100644
--- a/android/pme/src/com/hn/pme/android/pme.java
+++ b/android/pme/src/com/hn/pme/android/pme.java
@@ -1,35 +1,35 @@
/*
Licensed to the Apache Software Foundation (ASF) under on... | true | true | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/index.html");
}
| public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/pme.html");
}
|
diff --git a/portal.ejb/src/test/java/org/vamdc/portal/session/queryBuilder/QueryLoaderTest.java b/portal.ejb/src/test/java/org/vamdc/portal/session/queryBuilder/QueryLoaderTest.java
index 3fedb9e..229246b 100644
--- a/portal.ejb/src/test/java/org/vamdc/portal/session/queryBuilder/QueryLoaderTest.java
+++ b/portal.ejb/... | true | true | private void assertQueryLoadsFine(String query) {
assertTrue(QueryLoader.loadQuery(queryData, query));
System.out.println("---------- Testing queryLoader");
System.out.println("original: "+query);
System.out.println("rebuilt : "+queryData.buildQueryString());
assertEquals(query,queryData.buildQueryString());... | private void assertQueryLoadsFine(String query) {
assertTrue(QueryLoader.loadQuery(queryData, query));
System.out.println("---------- Testing queryLoader");
System.out.println("original: "+query);
String rebuilt = QueryGenerator.buildQueryString(queryData.getRequest(),queryData.getForms());
System.out.printl... |
diff --git a/core/src/main/java/org/jclouds/rest/RestContextFactory.java b/core/src/main/java/org/jclouds/rest/RestContextFactory.java
index 5defcda0d..a491295b4 100644
--- a/core/src/main/java/org/jclouds/rest/RestContextFactory.java
+++ b/core/src/main/java/org/jclouds/rest/RestContextFactory.java
@@ -1,477 +1,477 @@... | true | true | public <S, A> RestContextSpec<S, A> createContextSpec(String providerName, String identity, String credential,
Iterable<? extends Module> wiring, Properties _overrides) {
checkNotNull(providerName, "providerName");
checkNotNull(_overrides, "overrides");
Properties props = new Properties()... | public <S, A> RestContextSpec<S, A> createContextSpec(String providerName, String identity, String credential,
Iterable<? extends Module> wiring, Properties _overrides) {
checkNotNull(providerName, "providerName");
checkNotNull(_overrides, "overrides");
Properties props = new Properties()... |
diff --git a/VirsysJ/src/edu/wpi/first/wpilibj/Timer.java b/VirsysJ/src/edu/wpi/first/wpilibj/Timer.java
index 314612a..2df14e1 100644
--- a/VirsysJ/src/edu/wpi/first/wpilibj/Timer.java
+++ b/VirsysJ/src/edu/wpi/first/wpilibj/Timer.java
@@ -1,48 +1,48 @@
package edu.wpi.first.wpilibj;
public class Timer {
pr... | true | true | public static void delay(double seconds) {
try {
Thread.sleep((long) seconds * 1000);
} catch (InterruptedException e) {
System.out.print("you did sonething really bad!!");
}
}
| public static void delay(double seconds) {
try {
Thread.sleep((long) (seconds * 1000));
} catch (InterruptedException e) {
System.out.print("you did sonething really bad!!");
}
}
|
diff --git a/dspace-api/src/main/java/org/dspace/content/packager/AbstractMETSDisseminator.java b/dspace-api/src/main/java/org/dspace/content/packager/AbstractMETSDisseminator.java
index 56ac424bb..6c7db9a60 100644
--- a/dspace-api/src/main/java/org/dspace/content/packager/AbstractMETSDisseminator.java
+++ b/dspace-api... | true | true | protected Mets makeManifest(Context context, DSpaceObject dso,
PackageParameters params,
MdStreamCache extraStreams)
throws MetsException, PackageValidationException, CrosswalkException, AuthorizeException, SQLException, IOException
{
... | protected Mets makeManifest(Context context, DSpaceObject dso,
PackageParameters params,
MdStreamCache extraStreams)
throws MetsException, PackageValidationException, CrosswalkException, AuthorizeException, SQLException, IOException
{
... |
diff --git a/sveditor/plugins/net.sf.sveditor.ui/src/net/sf/sveditor/ui/svcp/SVTreeLabelProvider.java b/sveditor/plugins/net.sf.sveditor.ui/src/net/sf/sveditor/ui/svcp/SVTreeLabelProvider.java
index b6081f9e..3af5a9c0 100644
--- a/sveditor/plugins/net.sf.sveditor.ui/src/net/sf/sveditor/ui/svcp/SVTreeLabelProvider.java
... | true | true | public StyledString getStyledText(Object element) {
if (element == null) {
return new StyledString("null");
}
if (element instanceof SVDBDeclCacheItem) {
SVDBDeclCacheItem item = (SVDBDeclCacheItem)element;
return new StyledString(item.getName());
} else if (element instanceof SVDBVarDeclItem) {
... | public StyledString getStyledText(Object element) {
if (element == null) {
return new StyledString("null");
}
if (element instanceof SVDBDeclCacheItem) {
SVDBDeclCacheItem item = (SVDBDeclCacheItem)element;
return new StyledString(item.getName());
} else if (element instanceof SVDBVarDeclItem) {
... |
diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLogCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLogCommand.java
index e1a4fcc56..8a478f1f2 100644
--- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLogCommand.java
+++ b/scm-... | true | true | public ChangesetPagingResult getChangesets(LogCommandRequest request)
throws IOException, RepositoryException
{
if (logger.isDebugEnabled())
{
logger.debug("fetch changesets for {}", request);
}
ChangesetPagingResult changesets = null;
String startRevision = request.getStartChangeset(... | public ChangesetPagingResult getChangesets(LogCommandRequest request)
throws IOException, RepositoryException
{
if (logger.isDebugEnabled())
{
logger.debug("fetch changesets for {}", request);
}
ChangesetPagingResult changesets = null;
String startRevision = request.getStartChangeset(... |
diff --git a/src/main/java/br/com/caelum/tubaina/ParseType.java b/src/main/java/br/com/caelum/tubaina/ParseType.java
index b358316..e4be1dc 100644
--- a/src/main/java/br/com/caelum/tubaina/ParseType.java
+++ b/src/main/java/br/com/caelum/tubaina/ParseType.java
@@ -1,84 +1,84 @@
package br.com.caelum.tubaina;
import... | true | true | public Parser getParser(RegexConfigurator conf, boolean noAnswer, boolean showNotes, String linkParameter) throws IOException {
List<Tag> tags = conf.read("/regex.properties", "/latex.properties");
tags.add(new LinkTag("\\\\href{$1"+linkParameter+"}{$1}$2"));
return new LatexParser(tags, showNotes, ... | public Parser getParser(RegexConfigurator conf, boolean noAnswer, boolean showNotes, String linkParameter) throws IOException {
List<Tag> tags = conf.read("/regex.properties", "/latex.properties");
tags.add(new LinkTag("\\\\link{$1}$2"));
return new LatexParser(tags, showNotes, noAnswer);
}
|
diff --git a/luni/src/test/java/tests/api/javax/net/ssl/KeyStoreBuilderParametersTest.java b/luni/src/test/java/tests/api/javax/net/ssl/KeyStoreBuilderParametersTest.java
index a578f7293..341342e39 100644
--- a/luni/src/test/java/tests/api/javax/net/ssl/KeyStoreBuilderParametersTest.java
+++ b/luni/src/test/java/tests/... | true | true | public void test_Constructor02() {
//Null parameter
try {
KeyStoreBuilderParameters ksp = new KeyStoreBuilderParameters((List)null);
fail("NullPointerException should be thrown");
} catch (NullPointerException npe) {
//expected
}
//Empty ... | public void test_Constructor02() {
//Null parameter
try {
KeyStoreBuilderParameters ksp = new KeyStoreBuilderParameters((List) null);
fail("NullPointerException should be thrown");
} catch (NullPointerException npe) {
//expected
}
//Empty... |
diff --git a/Client/UI/Web/src/main/java/me/footlights/ui/web/MasterServer.java b/Client/UI/Web/src/main/java/me/footlights/ui/web/MasterServer.java
index fea1d6c1..46b86c9b 100644
--- a/Client/UI/Web/src/main/java/me/footlights/ui/web/MasterServer.java
+++ b/Client/UI/Web/src/main/java/me/footlights/ui/web/MasterServe... | false | true | public void run()
{
log.entering(getClass().getName(), "run");
try
{
ServerSocket serverSocket = new ServerSocket(port);
done = false;
while (!done)
{
log.fine("Waiting for connection...");
Socket socket = serverSocket.accept();
log.fine("Accepted conncetion from " + socket);
Buff... | public void run()
{
log.entering(getClass().getName(), "run");
try
{
ServerSocket serverSocket = new ServerSocket(port);
done = false;
while (!done)
{
log.fine("Waiting for connection...");
Socket socket = serverSocket.accept();
log.fine("Accepted conncetion from " + socket);
Buff... |
diff --git a/ply-filter-file/src/main/java/org/moxie/ply/script/FilterScript.java b/ply-filter-file/src/main/java/org/moxie/ply/script/FilterScript.java
index acdbf50..0831eeb 100644
--- a/ply-filter-file/src/main/java/org/moxie/ply/script/FilterScript.java
+++ b/ply-filter-file/src/main/java/org/moxie/ply/script/Filte... | false | true | public static void main(String[] args) {
Prop filterDirProp = Props.get("project", "filter.dir");
if (filterDirProp == null) {
Output.print("^error^ Could not find project.filter.dir property.");
System.exit(1);
}
Map<String, Prop> filterFiles = Props.getProps... | public static void main(String[] args) {
Prop filterDirProp = Props.get("project", "filter.dir");
if (filterDirProp == null) {
Output.print("^error^ Could not find project.filter.dir property.");
System.exit(1);
}
Map<String, Prop> filterFiles = Props.getProps... |
diff --git a/src/nl/nikhef/jgridstart/gui/ComponentCertificateList.java b/src/nl/nikhef/jgridstart/gui/ComponentCertificateList.java
index fda61c7..055327b 100644
--- a/src/nl/nikhef/jgridstart/gui/ComponentCertificateList.java
+++ b/src/nl/nikhef/jgridstart/gui/ComponentCertificateList.java
@@ -1,95 +1,96 @@
package ... | true | true | public Component getListCellRendererComponent(JList list, Object value,
int index, boolean isSelected, boolean cellHasFocus) {
super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
if (value==null) return this;
// we want a more rich markup from the object
CertificateP... | public Component getListCellRendererComponent(JList list, Object value,
int index, boolean isSelected, boolean cellHasFocus) {
super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
if (value==null) return this;
// we want a more rich markup from the object
CertificateP... |
diff --git a/src/coffeescript/nb/CoffeeScriptParser.java b/src/coffeescript/nb/CoffeeScriptParser.java
index ffeed32..82035e8 100644
--- a/src/coffeescript/nb/CoffeeScriptParser.java
+++ b/src/coffeescript/nb/CoffeeScriptParser.java
@@ -1,116 +1,116 @@
// Copyright 2011 Denis Stepanov
//
// Licensed under the Apache... | true | true | public List<? extends Error> getDiagnostics() {
if ((compilerResult != null) && (compilerResult.getError() != null)) {
CoffeeScriptCompiler.Error error = compilerResult.getError();
int line = error.getLine() == -1 ? 0 : error.getLine();
String msg = er... | public List<? extends Error> getDiagnostics() {
if ((compilerResult != null) && (compilerResult.getError() != null)) {
CoffeeScriptCompiler.Error error = compilerResult.getError();
int line = error.getLine() == -1 ? 0 : error.getLine();
String msg = er... |
diff --git a/core/src/main/java/org/jtransfo/ToDomainTypeConverter.java b/core/src/main/java/org/jtransfo/ToDomainTypeConverter.java
index 6294ea0..ecbe315 100644
--- a/core/src/main/java/org/jtransfo/ToDomainTypeConverter.java
+++ b/core/src/main/java/org/jtransfo/ToDomainTypeConverter.java
@@ -1,57 +1,60 @@
/*
* T... | true | true | public Object reverse(Object domainObject, Class<Object> toType) throws JTransfoException {
try {
return jTransfo.convert(domainObject, reflectionHelper.newInstance(toType));
} catch (InstantiationException ie) {
throw new JTransfoException("Cannot create instance for transfe... | public Object reverse(Object domainObject, Class<Object> toType) throws JTransfoException {
try {
if (null == domainObject) {
return null;
}
return jTransfo.convert(domainObject, reflectionHelper.newInstance(toType));
} catch (InstantiationExceptio... |
diff --git a/source/net/yacy/kelondro/table/SplitTable.java b/source/net/yacy/kelondro/table/SplitTable.java
index f10b0a49a..37258c930 100644
--- a/source/net/yacy/kelondro/table/SplitTable.java
+++ b/source/net/yacy/kelondro/table/SplitTable.java
@@ -1,678 +1,676 @@
// kelondroSplitTable.java
// (C) 2006 by Michael... | false | true | public void init() throws RowSpaceExceededException {
current = null;
// initialized tables map
this.tables = new HashMap<String, ObjectIndex>();
if (!(path.exists())) path.mkdirs();
String[] tablefile = path.list();
// zero pass: migrate old table names
... | public void init() throws RowSpaceExceededException {
current = null;
// initialized tables map
this.tables = new HashMap<String, ObjectIndex>();
if (!(path.exists())) path.mkdirs();
String[] tablefile = path.list();
// zero pass: migrate old table names
... |
diff --git a/src/main/java/org/jboss/dcp/api/service/PersistanceBackendService.java b/src/main/java/org/jboss/dcp/api/service/PersistanceBackendService.java
index 84d03fa..f7ef9e7 100644
--- a/src/main/java/org/jboss/dcp/api/service/PersistanceBackendService.java
+++ b/src/main/java/org/jboss/dcp/api/service/Persistanc... | true | true | public EntityService produceProviderService() {
ElasticsearchEntityService serv = new ElasticsearchEntityService(client, INDEX_NAME, INDEX_TYPE_PROVIDER, false);
if (appConfigurationService.getAppConfiguration().isProviderCreateInitData()) {
if (!client.admin().indices().prepareExists(INDEX_NAME).execute().ac... | public ElasticsearchEntityService produceProviderService() {
ElasticsearchEntityService serv = new ElasticsearchEntityService(client, INDEX_NAME, INDEX_TYPE_PROVIDER, false);
if (appConfigurationService.getAppConfiguration().isProviderCreateInitData()) {
if (!client.admin().indices().prepareExists(INDEX_NAME)... |
diff --git a/bupro/src/main/java/cz/cvut/fel/bupro/security/SpringSecurityService.java b/bupro/src/main/java/cz/cvut/fel/bupro/security/SpringSecurityService.java
index be2e3b0..86ed241 100644
--- a/bupro/src/main/java/cz/cvut/fel/bupro/security/SpringSecurityService.java
+++ b/bupro/src/main/java/cz/cvut/fel/bupro/sec... | true | true | private User find(Authentication authentication) {
Object o = authentication.getPrincipal();
if (o instanceof User) {
return (User) o;
}
if (o instanceof UserDetails) {
log.trace("Principal type UserDetails");
UserDetails userDetails = (UserDetails) o;
return userRepository.findByUsername(userDetai... | private User find(Authentication authentication) {
Object o = authentication.getPrincipal();
if (o instanceof User) {
return userRepository.findOne(((User) o).getId());
}
if (o instanceof UserDetails) {
log.trace("Principal type UserDetails");
UserDetails userDetails = (UserDetails) o;
return userR... |
diff --git a/src/FeatureExtractor.java b/src/FeatureExtractor.java
index 710de26..ca66342 100644
--- a/src/FeatureExtractor.java
+++ b/src/FeatureExtractor.java
@@ -1,229 +1,229 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
/**
* Created with IntelliJ... | true | true | public FeatureVector getFeatures(Sentence sentence, int n) {
String[] feats = new String[featureSize];
for (int i = 0; i < feats.length; i++) {
feats[i] = "";
}
//ObjectToDoubleMap<String> feats
// = new ObjectToDoubleMap<String>();
boolean bos = n == 0;
boolean eos = (n + 1) >= sentence.length();... | public FeatureVector getFeatures(Sentence sentence, int n) {
String[] feats = new String[featureSize];
for (int i = 0; i < feats.length; i++) {
feats[i] = "";
}
//ObjectToDoubleMap<String> feats
// = new ObjectToDoubleMap<String>();
boolean bos = n == 0;
boolean eos = (n + 1) >= sentence.length();... |
diff --git a/src/ohm/roth/lbs/GPXBuilder.java b/src/ohm/roth/lbs/GPXBuilder.java
index 02de6b9..3a80070 100644
--- a/src/ohm/roth/lbs/GPXBuilder.java
+++ b/src/ohm/roth/lbs/GPXBuilder.java
@@ -1,106 +1,105 @@
package ohm.roth.lbs;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import javax.xml.parse... | false | true | public static String build(String filename, Path path) {
try {
/////////////////////////////
//Creating an empty XML Document
//We need a Document
DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = db... | public static String build(String filename, Path path) {
try {
/////////////////////////////
//Creating an empty XML Document
//We need a Document
DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = db... |
diff --git a/src/vehicleShepard/VehicleDB.java b/src/vehicleShepard/VehicleDB.java
index 2735ff5..5ade9e3 100644
--- a/src/vehicleShepard/VehicleDB.java
+++ b/src/vehicleShepard/VehicleDB.java
@@ -1,430 +1,430 @@
package vehicleShepard;
/*
* This class is controlling the methods containing
* methods using ou... | true | true | public Vehicle getAvailableVehicle(int typeID, boolean automatic, java.sql.Date fromDate, java.sql.Date toDate)
{
//We get the connection from the Controller class
Connection conn = Controller.getConnection();
/*
* If no vehicle is added because of the soon
* to follow code, we will return null
*/
V... | public Vehicle getAvailableVehicle(int typeID, boolean automatic, java.sql.Date fromDate, java.sql.Date toDate)
{
//We get the connection from the Controller class
Connection conn = Controller.getConnection();
/*
* If no vehicle is added because of the soon
* to follow code, we will return null
*/
V... |
diff --git a/src/main/java/org/weiqi/Coordinate.java b/src/main/java/org/weiqi/Coordinate.java
index 2ef6c13c6..ec0c22e97 100644
--- a/src/main/java/org/weiqi/Coordinate.java
+++ b/src/main/java/org/weiqi/Coordinate.java
@@ -1,91 +1,91 @@
package org.weiqi;
import java.util.Iterator;
public class Coordinate {
... | true | true | public Iterable<Coordinate> getNeighbours() {
return new Iterable<Coordinate>() {
public Iterator<Coordinate> iterator() {
return new Iterator<Coordinate>() {
public int n = 0;
public boolean hasNext() {
return n < 4;
}
public Coordinate next() {
switch (n++) {
case 0:
... | public Iterable<Coordinate> getNeighbours() {
return new Iterable<Coordinate>() {
public Iterator<Coordinate> iterator() {
return new Iterator<Coordinate>() {
public int n = 0;
public boolean hasNext() {
return n < 4;
}
public Coordinate next() {
switch (n++) {
case 0:
... |
diff --git a/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunction.java b/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunction.java
index f0fae2915..32716d761 100644
--- a/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPFunction.java
+++ b/parser/org/eclipse/cdt/internal/core/pdom/dom/... | true | true | public PDOMCPPFunction(PDOM pdom, PDOMNode parent, IASTName name) throws CoreException {
super(pdom, parent, name);
IASTNode parentNode = name.getParent();
if (parentNode instanceof ICPPASTFunctionDeclarator) {
ICPPASTFunctionDeclarator funcDecl = (ICPPASTFunctionDeclarator)parentNode;
IASTParameterDeclara... | public PDOMCPPFunction(PDOM pdom, PDOMNode parent, IASTName name) throws CoreException {
super(pdom, parent, name);
IASTNode parentNode = name.getParent();
if (parentNode instanceof ICPPASTFunctionDeclarator) {
ICPPASTFunctionDeclarator funcDecl = (ICPPASTFunctionDeclarator)parentNode;
IASTParameterDeclara... |
diff --git a/src/org/achartengine/chart/PieSegment.java b/src/org/achartengine/chart/PieSegment.java
index 75d4506..fa736f2 100644
--- a/src/org/achartengine/chart/PieSegment.java
+++ b/src/org/achartengine/chart/PieSegment.java
@@ -1,80 +1,80 @@
/**
* Copyright (C) 2009 - 2012 SC 4ViewSoft SRL
*
* Licensed un... | true | true | public boolean isInSegment(double angle) {
if (angle >= mStartAngle && angle <= mEndAngle) {
return true;
}
double cAngle = angle % 360;
double startAngle = mStartAngle;
double stopAngle = mEndAngle;
while (startAngle > 360) {
startAngle -= 360;
stopAngle -= 360;
}
re... | public boolean isInSegment(double angle) {
if (angle >= mStartAngle && angle <= mEndAngle) {
return true;
}
double cAngle = angle % 360;
double startAngle = mStartAngle;
double stopAngle = mEndAngle;
while (stopAngle > 360) {
startAngle -= 360;
stopAngle -= 360;
}
ret... |
diff --git a/subprojects/core/src/main/java/org/gethydrated/hydra/core/transport/TCPConnection.java b/subprojects/core/src/main/java/org/gethydrated/hydra/core/transport/TCPConnection.java
index e71457b..387cab7 100644
--- a/subprojects/core/src/main/java/org/gethydrated/hydra/core/transport/TCPConnection.java
+++ b/su... | true | true | public synchronized boolean handshake(Map<UUID, NodeAddress> nodes) throws IOException {
if(connected) {
throw new IllegalStateException("Connection handshake already done.");
}
Envelope connect = objectMapper.readValue(socket.getInputStream(), Envelope.class);
nodeid = c... | public synchronized boolean handshake(Map<UUID, NodeAddress> nodes) throws IOException {
if(connected) {
throw new IllegalStateException("Connection handshake already done.");
}
Envelope connect = objectMapper.readValue(socket.getInputStream(), Envelope.class);
nodeid = c... |
diff --git a/org.emftext.sdk/src/org/emftext/sdk/finders/GenPackageInFileFinder.java b/org.emftext.sdk/src/org/emftext/sdk/finders/GenPackageInFileFinder.java
index c2287e149..658593271 100644
--- a/org.emftext.sdk/src/org/emftext/sdk/finders/GenPackageInFileFinder.java
+++ b/org.emftext.sdk/src/org/emftext/sdk/finders... | true | true | protected IGenPackageFinderResult findGenPackage(ConcreteSyntax syntax, String nsURI, final ResourceSet rs, URI genModelURI) {
Resource genModelResource = null;
try {
genModelResource = rs.getResource(genModelURI, true);
} catch (Exception e) {}
EList<EObject> contents = null;
if (genModelResource ... | protected IGenPackageFinderResult findGenPackage(ConcreteSyntax syntax, String nsURI, final ResourceSet rs, URI genModelURI) {
Resource genModelResource = null;
try {
genModelResource = rs.getResource(genModelURI, true);
} catch (Exception e) {}
EList<EObject> contents = null;
if (genModelResource ... |
diff --git a/src/main/java/com/pahimar/ee3/block/BlockChalk.java b/src/main/java/com/pahimar/ee3/block/BlockChalk.java
index 7a6a905f..6e387af4 100644
--- a/src/main/java/com/pahimar/ee3/block/BlockChalk.java
+++ b/src/main/java/com/pahimar/ee3/block/BlockChalk.java
@@ -1,32 +1,32 @@
package com.pahimar.ee3.block;
... | true | true | public BlockChalk(int id)
{
super(id, Material.clay);
this.setHardness(0.6F);
this.setUnlocalizedName(Strings.CHALK_NAME);
this.setCreativeTab(EquivalentExchange3.tabsEE3);
this.setStepSound(soundGravelFootstep);
}
| public BlockChalk(int id)
{
super(id, Material.clay);
this.setHardness(0.6F);
this.setUnlocalizedName(Strings.CHALK_NAME);
this.setCreativeTab(EquivalentExchange3.tabsEE3);
this.setStepSound(soundStoneFootstep);
}
|
diff --git a/src/main/java/de/cismet/cids/mavenplugin/CreatePropertiesMojo.java b/src/main/java/de/cismet/cids/mavenplugin/CreatePropertiesMojo.java
index 4c91a0a..eb21169 100644
--- a/src/main/java/de/cismet/cids/mavenplugin/CreatePropertiesMojo.java
+++ b/src/main/java/de/cismet/cids/mavenplugin/CreatePropertiesMojo.... | true | true | private void createClasspathProperty() {
final StringBuilder sb = new StringBuilder();
// to collect all the files for the win long classpath issue [issue:2335]
final List<File> cpFiles = new ArrayList<File>();
// first collect local jars and append them to the classpath string
... | private void createClasspathProperty() {
final StringBuilder sb = new StringBuilder();
// to collect all the files for the win long classpath issue [issue:2335]
final List<File> cpFiles = new ArrayList<File>();
// first collect local jars and append them to the classpath string
... |
diff --git a/java/edu/ualr/bittorrent/impl/core/MetainfoImpl.java b/java/edu/ualr/bittorrent/impl/core/MetainfoImpl.java
index d027176..26e33d4 100644
--- a/java/edu/ualr/bittorrent/impl/core/MetainfoImpl.java
+++ b/java/edu/ualr/bittorrent/impl/core/MetainfoImpl.java
@@ -1,248 +1,246 @@
package edu.ualr.bittorrent.im... | true | true | public MetainfoImpl(ImmutableList<Tracker> trackers,
ImmutableList<String> pieces, @PieceLength Integer pieceLength,
ImmutableList<File> files) throws NoSuchAlgorithmException {
this.trackers = Preconditions.checkNotNull(trackers);
this.pieces = Preconditions.checkNotNull(pieces);
this.pieceLe... | public MetainfoImpl(ImmutableList<Tracker> trackers,
ImmutableList<String> pieces, @PieceLength Integer pieceLength,
ImmutableList<File> files) throws NoSuchAlgorithmException {
this.trackers = Preconditions.checkNotNull(trackers);
this.pieces = Preconditions.checkNotNull(pieces);
this.pieceLe... |
diff --git a/SickStache/src/org/sickstache/fragments/AddShowFragment.java b/SickStache/src/org/sickstache/fragments/AddShowFragment.java
index e39b5c7..8812e14 100644
--- a/SickStache/src/org/sickstache/fragments/AddShowFragment.java
+++ b/SickStache/src/org/sickstache/fragments/AddShowFragment.java
@@ -1,291 +1,293 @@... | true | true | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View root = inflater.inflate(R.layout.add_show_fragment, container, false);
showTextView = (TextView)root.findViewById(R.id.showTextView);
// directoryTextView = (TextView)root.findViewById(R.id.directoryTextView);... | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View root = inflater.inflate(R.layout.add_show_fragment, container, false);
showTextView = (TextView)root.findViewById(R.id.showTextView);
// directoryTextView = (TextView)root.findViewById(R.id.directoryTextView);... |
diff --git a/src/strategy/AlignWriter.java b/src/strategy/AlignWriter.java
index ecb09de..35d1f02 100644
--- a/src/strategy/AlignWriter.java
+++ b/src/strategy/AlignWriter.java
@@ -1,160 +1,160 @@
package strategy;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import... | true | true | public void writeCalcArray(String userPoly) {
// TODO Auto-generated method stub
int count = 0;
Element rootElement = doc.getRootElement();
Element calcArray = rootElement.getChild("CalcArray");
calcArray.setAttribute("Size", sensors.size() + "");
for (SensorInfo info : sensors) {
if (info != null) ... | public void writeCalcArray(String userPoly) {
// TODO Auto-generated method stub
int count = 0;
Element rootElement = doc.getRootElement();
Element calcArray = rootElement.getChild("CalcArray");
calcArray.setAttribute("Size", sensors.size() + "");
for (SensorInfo info : sensors) {
if (info != null) ... |
diff --git a/src/com/android/mms/data/Contact.java b/src/com/android/mms/data/Contact.java
index eb7b6ad..b586334 100644
--- a/src/com/android/mms/data/Contact.java
+++ b/src/com/android/mms/data/Contact.java
@@ -1,797 +1,800 @@
package com.android.mms.data;
import java.io.IOException;
import java.io.InputStream;
... | true | true | public Contact get(String number, boolean canBlock) {
if (V) logWithTrace("get(%s, %s)", number, canBlock);
if (TextUtils.isEmpty(number)) {
throw new IllegalArgumentException("Contact.get called with null or empty number");
}
// Always return a ... | public Contact get(String number, boolean canBlock) {
if (V) logWithTrace("get(%s, %s)", number, canBlock);
if (TextUtils.isEmpty(number)) {
number = ""; // In some places (such as Korea), it's possible to receive
// a message w... |
diff --git a/spiffyui-app/src/main/java/org/spiffyui/spsample/client/SPSampleHeader.java b/spiffyui-app/src/main/java/org/spiffyui/spsample/client/SPSampleHeader.java
index 2ae20c77..1a41d16d 100644
--- a/spiffyui-app/src/main/java/org/spiffyui/spsample/client/SPSampleHeader.java
+++ b/spiffyui-app/src/main/java/org/sp... | true | true | public SPSampleHeader()
{
Anchor logout = new Anchor("Logout", "#");
logout.getElement().setId("header_logout");
setLogout(logout);
if (!Index.userLoggedIn()) {
logout.setVisible(false);
setWelcomeString("");
} else {
String... | public SPSampleHeader()
{
Anchor logout = new Anchor("Logout", "#");
logout.getElement().setId("header_logout");
setLogout(logout);
if (!Index.userLoggedIn()) {
logout.setVisible(false);
setWelcomeString("");
} else {
String... |
diff --git a/src/main/java/org/multibit/action/ResetTransactionsSubmitAction.java b/src/main/java/org/multibit/action/ResetTransactionsSubmitAction.java
index 4606aeb9..a3b603d1 100644
--- a/src/main/java/org/multibit/action/ResetTransactionsSubmitAction.java
+++ b/src/main/java/org/multibit/action/ResetTransactionsSub... | true | true | public void execute(DataProvider dataProvider) {
// check to see if another process has changed the active wallet
// check to see if the wallet files have changed
PerWalletModelData perWalletModelData = controller.getModel().getActivePerWalletModelData();
boolean haveFilesChanged = c... | public void execute(DataProvider dataProvider) {
// check to see if another process has changed the active wallet
// check to see if the wallet files have changed
PerWalletModelData perWalletModelData = controller.getModel().getActivePerWalletModelData();
boolean haveFilesChanged = c... |
diff --git a/src/java/main/org/apache/zookeeper/server/ServerJoinMain.java b/src/java/main/org/apache/zookeeper/server/ServerJoinMain.java
index a4d2897..a20fb9d 100644
--- a/src/java/main/org/apache/zookeeper/server/ServerJoinMain.java
+++ b/src/java/main/org/apache/zookeeper/server/ServerJoinMain.java
@@ -1,88 +1,88 ... | true | true | public ServerJoinMain(String[] args) {
if (args.length < 2) {
LOG.fatal("Missing parameters.");
LOG.info("The correct parameters are:");
LOG.info("Server config file.");
LOG.info("Server:port to connect.");
System.exit(1);
}
String[] remote_server_full = args[1].split(":... | public ServerJoinMain(String[] args) {
if (args.length < 2) {
LOG.fatal("Missing parameters.");
LOG.info("The correct parameters are:");
LOG.info("Server config file.");
LOG.info("Server:port to connect.");
System.exit(1);
}
String[] remote_server_full = args[1].split(":... |
diff --git a/src/org/eclipse/viatra2/gtasm/patternmatcher/incremental/rete/single/UniquenessEnforcerNode.java b/src/org/eclipse/viatra2/gtasm/patternmatcher/incremental/rete/single/UniquenessEnforcerNode.java
index 68df592a..6aa6c8df 100644
--- a/src/org/eclipse/viatra2/gtasm/patternmatcher/incremental/rete/single/Uniq... | true | true | public void update(Direction direction, Tuple updateElement) {
boolean change;
if (direction == Direction.INSERT) {
change = memory.add(updateElement);
} else { // REVOKE
try {
change = memory.remove(updateElement);
} catch (java.lang.NullPointerException ex) {
// TODO UGLY, but will it find our... | public void update(Direction direction, Tuple updateElement) {
boolean change;
if (direction == Direction.INSERT) {
change = memory.add(updateElement);
} else { // REVOKE
try {
change = memory.remove(updateElement);
} catch (java.lang.NullPointerException ex) {
// TODO UGLY, but will it find our... |
diff --git a/src/com/android/camera/PhotoController.java b/src/com/android/camera/PhotoController.java
index 2a35af5c..5f4b039c 100644
--- a/src/com/android/camera/PhotoController.java
+++ b/src/com/android/camera/PhotoController.java
@@ -1,202 +1,205 @@
/*
* Copyright (C) 2012 The Android Open Source Project
*
... | false | true | public void initialize(PreferenceGroup group) {
super.initialize(group);
mPopup = null;
mSecondPopup = null;
float sweep = FLOAT_PI_DIVIDED_BY_TWO / 2;
addItem(CameraSettings.KEY_FLASH_MODE, FLOAT_PI_DIVIDED_BY_TWO - sweep, sweep);
addItem(CameraSettings.KEY_EXPOSURE,... | public void initialize(PreferenceGroup group) {
super.initialize(group);
mPopup = null;
mSecondPopup = null;
float sweep = FLOAT_PI_DIVIDED_BY_TWO / 2;
addItem(CameraSettings.KEY_FLASH_MODE, FLOAT_PI_DIVIDED_BY_TWO - sweep, sweep);
addItem(CameraSettings.KEY_EXPOSURE,... |
diff --git a/rotary-core/src/main/java/org/rotarysource/core/sep/task/TaskTemplate.java b/rotary-core/src/main/java/org/rotarysource/core/sep/task/TaskTemplate.java
index 2fad432..450a619 100644
--- a/rotary-core/src/main/java/org/rotarysource/core/sep/task/TaskTemplate.java
+++ b/rotary-core/src/main/java/org/rotaryso... | true | true | protected void sendEvent( String eventCode,
String eventType,
HashMap<String, String> compDataMap){
BasicEvent event = new BasicEvent();
Date date = new Date();
event.setEventId(Integer.toString((int)date.getTime()));
event.setEventCode(eventCode);
... | protected void sendEvent( String eventCode,
String eventType,
HashMap<String, String> compDataMap){
BasicEvent event = new BasicEvent();
Date date = new Date();
event.setEventId(Integer.toString((int)date.getTime()));
event.setEventCode(eventCode);
... |
diff --git a/src/main/java/gr/iti/mklab/visual/datastructures/AbstractSearchStructure.java b/src/main/java/gr/iti/mklab/visual/datastructures/AbstractSearchStructure.java
index 11590a3..e1b6747 100644
--- a/src/main/java/gr/iti/mklab/visual/datastructures/AbstractSearchStructure.java
+++ b/src/main/java/gr/iti/mklab/vi... | true | true | private void createOrOpenBDBEnv(String BDBEnvHome) throws Exception {
// create the BDBEnvHome directory if it does not exist
File BDBEnvHomeDir = new File(BDBEnvHome);
if (!BDBEnvHomeDir.isDirectory()) {
boolean success = BDBEnvHomeDir.mkdir();
if (success) {
System.out.println(BDBEnvHome + " director... | private void createOrOpenBDBEnv(String BDBEnvHome) throws Exception {
// create the BDBEnvHome directory if it does not exist
File BDBEnvHomeDir = new File(BDBEnvHome);
if (!BDBEnvHomeDir.isDirectory()) {
boolean success = BDBEnvHomeDir.mkdirs();
if (success) {
System.out.println(BDBEnvHome + " directo... |
diff --git a/cycle_finder/src/main/java/com/google/devtools/cyclefinder/TypeCollector.java b/cycle_finder/src/main/java/com/google/devtools/cyclefinder/TypeCollector.java
index 6fc46a52..a7649c46 100644
--- a/cycle_finder/src/main/java/com/google/devtools/cyclefinder/TypeCollector.java
+++ b/cycle_finder/src/main/java/... | false | true | public void visitType(ITypeBinding type) {
if (type == null) {
return;
}
type = getElementType(type);
if (allTypes.containsKey(type.getKey()) || type.isPrimitive()) {
return;
}
if (type.isParameterizedType()) {
for (ITypeBinding typeParam : type.getTypeArguments()) {
... | public void visitType(ITypeBinding type) {
if (type == null) {
return;
}
type = getElementType(type);
if (allTypes.containsKey(type.getKey()) || type.isPrimitive()) {
return;
}
if (type.isParameterizedType()) {
for (ITypeBinding typeParam : type.getTypeArguments()) {
... |
diff --git a/src/main/java/jscl/math/numeric/Complex.java b/src/main/java/jscl/math/numeric/Complex.java
index b9c50fe..9bcf1e7 100644
--- a/src/main/java/jscl/math/numeric/Complex.java
+++ b/src/main/java/jscl/math/numeric/Complex.java
@@ -1,251 +1,251 @@
package jscl.math.numeric;
import jscl.math.NotDivisibleExc... | true | true | public String toString() {
final StringBuilder result = new StringBuilder();
if (imaginary == 0.) {
result.append(toString(real));
} else {
if (real != 0.) {
result.append(toString(real));
if (imaginary > 0.) {
result.append("+");
}
}
if (imaginary != 1.) {
if (imaginary == -1.... | public String toString() {
final StringBuilder result = new StringBuilder();
if (imaginary == 0.) {
result.append(toString(real));
} else {
if (real != 0.) {
result.append(toString(real));
if (imaginary > 0.) {
result.append("+");
}
}
if (imaginary != 1.) {
if (imaginary == -1.... |
diff --git a/src/com/jgaap/classifiers/AuthorCentroidDriver.java b/src/com/jgaap/classifiers/AuthorCentroidDriver.java
index a125124..cfbfb54 100644
--- a/src/com/jgaap/classifiers/AuthorCentroidDriver.java
+++ b/src/com/jgaap/classifiers/AuthorCentroidDriver.java
@@ -1,113 +1,113 @@
/**
* JGAAP -- Java Graphical ... | true | true | public List<Pair<String, Double>> analyze(EventSet unknown, List<EventSet> known) {
List<Pair<String, Double>> results = new ArrayList<Pair<String, Double>>();
List<EventSet> knownCentroids = new ArrayList<EventSet>();
Map<String, List<EventSet>> knownAuthors = new HashMap<String, List<EventSet>>();
for (Event... | public List<Pair<String, Double>> analyze(EventSet unknown, List<EventSet> known) {
List<Pair<String, Double>> results = new ArrayList<Pair<String, Double>>();
List<EventSet> knownCentroids = new ArrayList<EventSet>();
Map<String, List<EventSet>> knownAuthors = new HashMap<String, List<EventSet>>();
for (Event... |
diff --git a/jaxrs/security/skeleton-key-idm/examples/sso/third-party/src/main/java/org/jboss/resteasy/example/oauth/ProductDatabaseClient.java b/jaxrs/security/skeleton-key-idm/examples/sso/third-party/src/main/java/org/jboss/resteasy/example/oauth/ProductDatabaseClient.java
index 68f4f4f03..78486279e 100644
--- a/jax... | true | true | public static List<String> getProducts(HttpServletRequest request)
{
// This is really the worst code ever. The ServletOAuthClient is obtained by getting a context attribute
// that is set in the Bootstrap context listenr in this project.
// You really should come up with a better way to initial... | public static List<String> getProducts(HttpServletRequest request)
{
// This is really the worst code ever. The ServletOAuthClient is obtained by getting a context attribute
// that is set in the Bootstrap context listenr in this project.
// You really should come up with a better way to initial... |
diff --git a/src/java/davmail/exchange/ews/GetUserAvailabilityMethod.java b/src/java/davmail/exchange/ews/GetUserAvailabilityMethod.java
index 967a37d..68f3e6c 100644
--- a/src/java/davmail/exchange/ews/GetUserAvailabilityMethod.java
+++ b/src/java/davmail/exchange/ews/GetUserAvailabilityMethod.java
@@ -1,115 +1,115 @@... | false | true | protected void writeSoapBody(Writer writer) throws IOException {
// write UTC timezone
writer.write("<t:TimeZone>" +
"<t:Bias>0</t:Bias>" +
"<t:StandardTime>" +
"<t:Bias>0</t:Bias>" +
"<t:Time>00:00:00</t:Time>" +
"<t:Da... | protected void writeSoapBody(Writer writer) throws IOException {
// write UTC timezone
writer.write("<t:TimeZone>" +
"<t:Bias>0</t:Bias>" +
"<t:StandardTime>" +
"<t:Bias>0</t:Bias>" +
"<t:Time>02:00:00</t:Time>" +
"<t:Da... |
diff --git a/tests/tests/util/src/android/util/cts/TimeUtilsTest.java b/tests/tests/util/src/android/util/cts/TimeUtilsTest.java
index 5a5bd205..fb66a77c 100644
--- a/tests/tests/util/src/android/util/cts/TimeUtilsTest.java
+++ b/tests/tests/util/src/android/util/cts/TimeUtilsTest.java
@@ -1,486 +1,486 @@
/*
* Copyr... | false | true | public void testWorld() throws Exception {
String[] world = new String[] {
"ad", "Europe/Andorra",
"ae", "Asia/Dubai",
"af", "Asia/Kabul",
"ag", "America/Antigua",
"ai", "America/Anguilla",
"al", "Europe/Tirane",
"am", "Asia... | public void testWorld() throws Exception {
String[] world = new String[] {
"ad", "Europe/Andorra",
"ae", "Asia/Dubai",
"af", "Asia/Kabul",
"ag", "America/Antigua",
"ai", "America/Anguilla",
"al", "Europe/Tirane",
"am", "Asia... |
diff --git a/jsf-ri/systest/src/com/sun/faces/render/MessagesRenderTestCase.java b/jsf-ri/systest/src/com/sun/faces/render/MessagesRenderTestCase.java
index 0f4284463..5b7922387 100644
--- a/jsf-ri/systest/src/com/sun/faces/render/MessagesRenderTestCase.java
+++ b/jsf-ri/systest/src/com/sun/faces/render/MessagesRenderT... | true | true | public void testMessagesToolTip() throws Exception {
HtmlPage page = getPage("/faces/messages.xhtml");
String pageXml = page.asXml().replaceAll("\n","");
pageXml = pageXml.replaceAll("\t","");
String case1 = "<!-- Case 1: Expected output: Both summary and detail rendered. --> <u... | public void testMessagesToolTip() throws Exception {
HtmlPage page = getPage("/faces/messages.xhtml");
String pageXml = page.asXml().replaceAll("\n","");
pageXml = pageXml.replaceAll("\t","");
pageXml = pageXml.replaceAll("\r","");
String case1 = "<!-- Case 1: Expected output... |
diff --git a/opentripplanner-graph-builder/src/test/java/org/opentripplanner/graph_builder/impl/osm/OpenStreetMapGraphBuilderTest.java b/opentripplanner-graph-builder/src/test/java/org/opentripplanner/graph_builder/impl/osm/OpenStreetMapGraphBuilderTest.java
index 717d481d1..0bffbb516 100644
--- a/opentripplanner-graph... | true | true | public void testGraphBuilder() throws Exception {
Graph gg = new Graph();
OpenStreetMapGraphBuilderImpl loader = new OpenStreetMapGraphBuilderImpl();
FileBasedOpenStreetMapProviderImpl provider = new FileBasedOpenStreetMapProviderImpl();
File file = new File(getClass().getResource... | public void testGraphBuilder() throws Exception {
Graph gg = new Graph();
OpenStreetMapGraphBuilderImpl loader = new OpenStreetMapGraphBuilderImpl();
FileBasedOpenStreetMapProviderImpl provider = new FileBasedOpenStreetMapProviderImpl();
File file = new File(getClass().getResource... |
diff --git a/support/common/src/org/plt/types/Complex.java b/support/common/src/org/plt/types/Complex.java
index 3e7a613..f6adb1e 100644
--- a/support/common/src/org/plt/types/Complex.java
+++ b/support/common/src/org/plt/types/Complex.java
@@ -1,360 +1,360 @@
package org.plt.types;
import org.plt.checker.*;
pub... | true | true | public Number angle() {
if (isReal()) {
if (toReal().isZero())
throw new SchemeException("angle: undefined for 0");
if (NumberTower.greaterThan(toReal(), Rational.ZERO))
return Rational.ZERO;
else
return FloatPoint.PI;
} else {
if (real_part.isZero()) {
if (NumberTower.greaterThan(imag_... | public Number angle() {
if (isReal()) {
if (toReal().isZero())
throw new SchemeException("angle: undefined for 0");
if (NumberTower.greaterThan(toReal(), Rational.ZERO))
return Rational.ZERO;
else
return FloatPoint.PI;
} else {
if (real_part.isZero()) {
if (NumberTower.greaterThan(imag_... |
diff --git a/bundles/SEProviderRssSearch/src/main/java/org/paxle/se/provider/rsssearch/impl/GuiListener.java b/bundles/SEProviderRssSearch/src/main/java/org/paxle/se/provider/rsssearch/impl/GuiListener.java
index ad2062a1..806a5fc3 100644
--- a/bundles/SEProviderRssSearch/src/main/java/org/paxle/se/provider/rsssearch/i... | true | true | public void bundleChanged(BundleEvent event) {
if (event.getBundle().getHeaders().get(Constants.BUNDLE_SYMBOLICNAME).equals("org.paxle.gui")) {
if (event.getType() == BundleEvent.STARTED) {
/*
* Registering the servlet
*/
ConfigServlet servlet=new ConfigServlet();
servlet.init(bc.getBundle()... | public void bundleChanged(BundleEvent event) {
if (event.getBundle().getHeaders().get(Constants.BUNDLE_SYMBOLICNAME).equals("org.paxle.gui")) {
if (event.getType() == BundleEvent.STARTED) {
/*
* Registering the servlet
*/
ConfigServlet servlet=new ConfigServlet();
servlet.setBundleLocation(b... |
diff --git a/org.jmlspecs.eclipse.jdt.core.tests/src/org/jmlspecs/eclipse/jdt/core/tests/boogie/AdapterTests.java b/org.jmlspecs.eclipse.jdt.core.tests/src/org/jmlspecs/eclipse/jdt/core/tests/boogie/AdapterTests.java
index e571e58d..5742e0bd 100644
--- a/org.jmlspecs.eclipse.jdt.core.tests/src/org/jmlspecs/eclipse/jdt/... | false | true | public void test_0113_MethodDefinition_EnsuresRequires() {
this.runNegativeTest (new String[] {
testsPath + "X.java",
"package tests.esc;\n" +
"public class X {\n" +
" //@ ensures \\result == 42;\n" +
" public int m1() {\n" +
" //@ assert true;\n" +
" return 42;\n" +
" }\n" +... | public void test_0113_MethodDefinition_EnsuresRequires() {
this.runNegativeTest (new String[] {
testsPath + "X.java",
"package tests.esc;\n" +
"public class X {\n" +
" //@ ensures \\result == 42;\n" +
" public int m1() {\n" +
" //@ assert true;\n" +
" return 42;\n" +
" }\n" +... |
diff --git a/src/autosaveworld/threads/restart/JVMshutdownhook.java b/src/autosaveworld/threads/restart/JVMshutdownhook.java
index d1fd149..2163b66 100644
--- a/src/autosaveworld/threads/restart/JVMshutdownhook.java
+++ b/src/autosaveworld/threads/restart/JVMshutdownhook.java
@@ -1,115 +1,115 @@
/**
* This program is... | false | true | public void restart()
{
try {
File restartscript = new File(crashrestartscriptpath);
String OS = System.getProperty("os.name").toLowerCase();
if (restartscript.exists()) {
System.out.println("[AutoSaveWorld] Startup script found. Restarting");
if (OS.contains("win")) {
Runtime.getRuntime().exec("cmd... | public void restart()
{
try {
File restartscript = new File(crashrestartscriptpath);
String OS = System.getProperty("os.name").toLowerCase();
if (restartscript.exists()) {
System.out.println("[AutoSaveWorld] Startup script found. Restarting");
if (OS.contains("win")) {
Runtime.getRuntime().exec("cmd... |
diff --git a/loci/visbio/SystemManager.java b/loci/visbio/SystemManager.java
index b29367baa..2b44d1a73 100644
--- a/loci/visbio/SystemManager.java
+++ b/loci/visbio/SystemManager.java
@@ -1,239 +1,239 @@
//
// SystemManager.java
//
/*
VisBio application for visualization of multidimensional
biological image da... | false | true | public void writeScript(int heap, String laf) {
// a platform-dependent mess!
String filename;
if (LookUtils.IS_OS_WINDOWS) filename = "launcher.cfg";
else if (LookUtils.IS_OS_MAC) filename = "VisBio.app/Contents/Info.plist";
else filename = "visbio";
// read in the VisBio startup script
... | public void writeScript(int heap, String laf) {
// a platform-dependent mess!
String filename;
if (LookUtils.IS_OS_WINDOWS) filename = "launcher.cfg";
else if (LookUtils.IS_OS_MAC) filename = "VisBio.app/Contents/Info.plist";
else filename = "visbio";
// read in the VisBio startup script
... |
diff --git a/src/balle/strategy/planner/GoToBall.java b/src/balle/strategy/planner/GoToBall.java
index c9486f6..049cd6e 100644
--- a/src/balle/strategy/planner/GoToBall.java
+++ b/src/balle/strategy/planner/GoToBall.java
@@ -1,307 +1,307 @@
/**
*
*/
package balle.strategy.planner;
import java.awt.Color;
im... | true | true | public void step(Controller controller) {
StaticFieldObject target = getTarget();
if ((getSnapshot() == null)
|| (getSnapshot().getBalle().getPosition() == null)
|| (target == null))
return;
// Update the current state of executor strategy
executorStrategy.updateState(getSnapshot());
if (should... | public void step(Controller controller) {
StaticFieldObject target = getTarget();
if ((getSnapshot() == null)
|| (getSnapshot().getBalle().getPosition() == null)
|| (target == null))
return;
// Update the current state of executor strategy
executorStrategy.updateState(getSnapshot());
if (should... |
diff --git a/src/test/java/com/biogenidec/datasciences/codetest/Test2.java b/src/test/java/com/biogenidec/datasciences/codetest/Test2.java
index e19a10b..e2e6b89 100644
--- a/src/test/java/com/biogenidec/datasciences/codetest/Test2.java
+++ b/src/test/java/com/biogenidec/datasciences/codetest/Test2.java
@@ -1,62 +1,62 ... | true | true | public void test() {
/*
* Your code - begin **********************************************
*/
/*
* Replace PermuationMock with your own implementation of the
* Permutation interface
*/
Permutation permutation = new PermutationMock();
/*
* Your code - end ***********************************... | public void test() {
/*
* Your code - begin **********************************************
*/
/*
* Replace PermuationMock with your own implementation of the
* Permutation interface
*/
Permutation permutation = new PermutationMock();
/*
* Your code - end ***********************************... |
diff --git a/mydlp-ui-dao/src/main/java/com/mydlp/ui/dao/InformationTypeDAOImpl.java b/mydlp-ui-dao/src/main/java/com/mydlp/ui/dao/InformationTypeDAOImpl.java
index 703559bc..db41ac0a 100644
--- a/mydlp-ui-dao/src/main/java/com/mydlp/ui/dao/InformationTypeDAOImpl.java
+++ b/mydlp-ui-dao/src/main/java/com/mydlp/ui/dao/I... | true | true | public List<Map<String, String>> getITypeLabelsAndIds() {
List<Map<String, String>> returnList = new ArrayList<Map<String,String>>();
Query query = getSession().createQuery(
"select r.id, r.name, r.nameKey from InformationType r ");
for (@SuppressWarnings("unchecked")
Iterator<Object[]> iterator = query.l... | public List<Map<String, String>> getITypeLabelsAndIds() {
List<Map<String, String>> returnList = new ArrayList<Map<String,String>>();
Query query = getSession().createQuery(
"select t.id, i.name, i.nameKey from InformationType t, InventoryItem i where i.item=t ");
for (@SuppressWarnings("unchecked")
Itera... |
diff --git a/src/com/android/contacts/model/AccountTypeManager.java b/src/com/android/contacts/model/AccountTypeManager.java
index 7232a2615..eccf44b1f 100644
--- a/src/com/android/contacts/model/AccountTypeManager.java
+++ b/src/com/android/contacts/model/AccountTypeManager.java
@@ -1,506 +1,514 @@
/*
* Copyright (... | false | true | protected void loadAccountsInBackground() {
long startTime = SystemClock.currentThreadTimeMillis();
// Account types, keyed off the account type and data set concatenation.
Map<String, AccountType> accountTypesByTypeAndDataSet = Maps.newHashMap();
// The same AccountTypes, but keye... | protected void loadAccountsInBackground() {
long startTime = SystemClock.currentThreadTimeMillis();
// Account types, keyed off the account type and data set concatenation.
Map<String, AccountType> accountTypesByTypeAndDataSet = Maps.newHashMap();
// The same AccountTypes, but keye... |
diff --git a/ljdp/minechem/common/ScheduledTickHandler.java b/ljdp/minechem/common/ScheduledTickHandler.java
index 094c13e..3900072 100644
--- a/ljdp/minechem/common/ScheduledTickHandler.java
+++ b/ljdp/minechem/common/ScheduledTickHandler.java
@@ -1,76 +1,76 @@
package ljdp.minechem.common;
import java.util.EnumSe... | true | true | private void checkForPoison(EntityPlayer entityPlayer) {
ItemStack itemInUse = entityPlayer.getItemInUse();
if(itemInUse != null && itemInUse.getTagCompound() != null) {
NBTTagCompound stackTag = itemInUse.getTagCompound();
boolean isPoisoned = stackTag.getBoolean("minechem.isPoisoned");
if(isPoisoned && ... | private void checkForPoison(EntityPlayer entityPlayer) {
ItemStack currentItem = entityPlayer.inventory.getCurrentItem();
if(entityPlayer.isEating() && currentItem != null && currentItem.getTagCompound() != null) {
NBTTagCompound stackTag = currentItem.getTagCompound();
boolean isPoisoned = stackTag.getBoole... |
diff --git a/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.java b/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.java
index f6bdb3917..aa316d2a9 100644
--- a/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/... | true | true | public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset) {
try {
ITextEditor part = getActiveEditor();
if (part == null)
return NO_PROPOSALS;
IEditorInput editorInput = part.getEditorInput();
if (!(editorInput instanceof IFileEditorInput))
return NO_PROPOSALS;
... | public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset) {
try {
ITextEditor part = getActiveEditor();
if (part == null)
return NO_PROPOSALS;
IEditorInput editorInput = part.getEditorInput();
if (!(editorInput instanceof IFileEditorInput))
return NO_PROPOSALS;
... |
diff --git a/src/com/redhat/ceylon/compiler/java/codegen/ClassTransformer.java b/src/com/redhat/ceylon/compiler/java/codegen/ClassTransformer.java
index 1d2f4f338..4d18ee805 100755
--- a/src/com/redhat/ceylon/compiler/java/codegen/ClassTransformer.java
+++ b/src/com/redhat/ceylon/compiler/java/codegen/ClassTransformer.... | true | true | private void concreteMembersFromSuperinterfaces(final Class model,
ClassDefinitionBuilder classBuilder,
ProducedType satisfiedType, Set<Interface> satisfiedInterfaces) {
satisfiedType = satisfiedType.resolveAliases();
Interface iface = (Interface)satisfiedType.getDeclaration... | private void concreteMembersFromSuperinterfaces(final Class model,
ClassDefinitionBuilder classBuilder,
ProducedType satisfiedType, Set<Interface> satisfiedInterfaces) {
satisfiedType = satisfiedType.resolveAliases();
Interface iface = (Interface)satisfiedType.getDeclaration... |
diff --git a/src/com/group7/dragonwars/engine/BitmapChanger.java b/src/com/group7/dragonwars/engine/BitmapChanger.java
index ffe5820..43940e4 100644
--- a/src/com/group7/dragonwars/engine/BitmapChanger.java
+++ b/src/com/group7/dragonwars/engine/BitmapChanger.java
@@ -1,32 +1,32 @@
package com.group7.dragonwars.engine... | true | true | public static Bitmap changeColour(final Bitmap templateBitmap,
final Integer originalColour,
final Integer replacementColour) {
Bitmap replacement = Bitmap.createBitmap(templateBitmap);
Integer allPxs = replacement.getHeight... | public static Bitmap changeColour(final Bitmap templateBitmap,
final Integer originalColour,
final Integer replacementColour) {
Bitmap replacement = Bitmap.createBitmap(templateBitmap);
Integer allPxs = replacement.getHeight... |
diff --git a/src/relop/SimpleJoin.java b/src/relop/SimpleJoin.java
index be61ede..b0c51e4 100644
--- a/src/relop/SimpleJoin.java
+++ b/src/relop/SimpleJoin.java
@@ -1,118 +1,118 @@
package relop;
import java.util.Arrays;
/**
* The simplest of all join algorithms: nested loops (see textbook, 3rd edition,
* se... | true | true | private void calcNext()
{
Tuple candidate = null;
while (left.hasNext())
{
Tuple leftTuple = left.getNext();
while(right.hasNext())
{
// merge right and left tuples
candidate = Tuple.join(leftTuple, right.getNext(),
getSchema());
boolean valid = true;
// check this candidate with ... | private void calcNext()
{
Tuple candidate = null;
while (left.hasNext() && candidate== null)
{
Tuple leftTuple = left.getNext();
while(right.hasNext())
{
// merge right and left tuples
candidate = Tuple.join(leftTuple, right.getNext(),
getSchema());
boolean valid = true;
// check ... |
diff --git a/yamcs-core/src/main/java/org/yamcs/xtce/SpreadsheetLoader.java b/yamcs-core/src/main/java/org/yamcs/xtce/SpreadsheetLoader.java
index 227e09d1d..2e5f196a7 100644
--- a/yamcs-core/src/main/java/org/yamcs/xtce/SpreadsheetLoader.java
+++ b/yamcs-core/src/main/java/org/yamcs/xtce/SpreadsheetLoader.java
@@ -1,1... | true | true | private void loadParameters() {
Sheet para_sheet = workbook.getSheet("Parameters");
for (int i = 1; i < para_sheet.getRows(); i++) {
Cell[] cells = para_sheet.getRow(i);
if ((cells == null) || (cells.length < 4) || cells[0].getContents().startsWith("#")) {
continue;
}
String name = cells[IDX_PARAM_... | private void loadParameters() {
Sheet para_sheet = workbook.getSheet("Parameters");
for (int i = 1; i < para_sheet.getRows(); i++) {
Cell[] cells = para_sheet.getRow(i);
if ((cells == null) || (cells.length < 4) || cells[0].getContents().startsWith("#")) {
continue;
}
String name = cells[IDX_PARAM_... |
diff --git a/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/ProvSDKQueryProvider.java b/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclipse/equinox/internal/p2/ui/sdk/ProvSDKQueryProvider.java
index b50fdea17..425b47536 100644
--- a/bundles/org.eclipse.equinox.p2.ui.sdk/src/org/eclip... | true | true | public ElementQueryDescriptor getQueryDescriptor(Object element, int queryType) {
IQueryable queryable;
QueryContext queryContext = null;
if (element instanceof QueriedElement)
queryContext = ((QueriedElement) element).getQueryContext();
boolean showLatest = ProvSDKUIActivator.getDefault().getPreferenceStor... | public ElementQueryDescriptor getQueryDescriptor(Object element, int queryType) {
IQueryable queryable;
QueryContext queryContext = null;
if (element instanceof QueriedElement)
queryContext = ((QueriedElement) element).getQueryContext();
boolean showLatest = ProvSDKUIActivator.getDefault().getPreferenceStor... |
diff --git a/src/backend/src/java/com/kapti/data/persistence/oracle/OracleConnection.java b/src/backend/src/java/com/kapti/data/persistence/oracle/OracleConnection.java
index 3a85d20..e2e141a 100644
--- a/src/backend/src/java/com/kapti/data/persistence/oracle/OracleConnection.java
+++ b/src/backend/src/java/com/kapti/d... | true | true | public static Connection getConnection() throws DBException {
try {
if (ds == null) {
ds = new BasicDataSource();
ds.setDriverClassName("oracle.jdbc.driver.OracleDriver");
//ds.setUrl("jdbc:oracle:thin:@//localhost:1521/xe");
ds.s... | public static Connection getConnection() throws DBException {
try {
if (ds == null) {
ds = new BasicDataSource();
ds.setDriverClassName("oracle.jdbc.driver.OracleDriver");
//ds.setUrl("jdbc:oracle:thin:@//localhost:1521/xe");
ds.s... |
diff --git a/robospice-core-parent/robospice/src/main/java/com/octo/android/robospice/notification/SpiceNotificationService.java b/robospice-core-parent/robospice/src/main/java/com/octo/android/robospice/notification/SpiceNotificationService.java
index 4bb03e61b..2ed937f91 100644
--- a/robospice-core-parent/robospice/s... | true | true | public final void onStart(final Intent intent, final int startId) {
super.onStart(intent, startId);
notificationId = intent.getIntExtra(BUNDLE_KEY_NOTIFICATION_ID,
DEFAULT_ROBOSPICE_NOTIFICATION_ID);
requestClass = (Class<?>) intent
.getSerializableExtra(BUNDLE_KEY_RE... | public final void onStart(final Intent intent, final int startId) {
super.onStart(intent, startId);
notificationId = intent.getIntExtra(BUNDLE_KEY_NOTIFICATION_ID,
DEFAULT_ROBOSPICE_NOTIFICATION_ID);
requestClass = (Class<?>) intent
.getSerializableExtra(BUNDLE_KEY_RE... |
diff --git a/core/src/com/google/inject/spi/InjectionPoint.java b/core/src/com/google/inject/spi/InjectionPoint.java
index 76197e3a..36c10be0 100644
--- a/core/src/com/google/inject/spi/InjectionPoint.java
+++ b/core/src/com/google/inject/spi/InjectionPoint.java
@@ -1,837 +1,837 @@
/**
* Copyright (C) 2008 Google In... | true | true | private static Set<InjectionPoint> getInjectionPoints(final TypeLiteral<?> type,
boolean statics, Errors errors) {
InjectableMembers injectableMembers = new InjectableMembers();
OverrideIndex overrideIndex = null;
List<TypeLiteral<?>> hierarchy = hierarchyFor(type);
int topIndex = hierarchy.siz... | private static Set<InjectionPoint> getInjectionPoints(final TypeLiteral<?> type,
boolean statics, Errors errors) {
InjectableMembers injectableMembers = new InjectableMembers();
OverrideIndex overrideIndex = null;
List<TypeLiteral<?>> hierarchy = hierarchyFor(type);
int topIndex = hierarchy.siz... |
diff --git a/srcj/com/sun/electric/tool/user/tecEditWizard/TechEditWizardData.java b/srcj/com/sun/electric/tool/user/tecEditWizard/TechEditWizardData.java
index 965af475d..3891a7f78 100644
--- a/srcj/com/sun/electric/tool/user/tecEditWizard/TechEditWizardData.java
+++ b/srcj/com/sun/electric/tool/user/tecEditWizard/Tec... | true | true | public void dumpXMLFile(String fileName)
throws IOException
{
Xml.Technology t = new Xml.Technology();
t.techName = getTechName();
t.shortTechName = getTechName();
t.description = getTechDescription();
t.minNumMetals = t.maxNumMetals = t.defaultNumMetals = getNum... | public void dumpXMLFile(String fileName)
throws IOException
{
Xml.Technology t = new Xml.Technology();
t.techName = getTechName();
t.shortTechName = getTechName();
t.description = getTechDescription();
t.minNumMetals = t.maxNumMetals = t.defaultNumMetals = getNum... |
diff --git a/src/edu/wpi/first/wpilibj/templates/Shooter_underneath.java b/src/edu/wpi/first/wpilibj/templates/Shooter_underneath.java
index f2b473e..2b3bd3e 100644
--- a/src/edu/wpi/first/wpilibj/templates/Shooter_underneath.java
+++ b/src/edu/wpi/first/wpilibj/templates/Shooter_underneath.java
@@ -1,25 +1,23 @@
/*
... | false | true | public void RPMTarget(double a){ //defines target based on input. Appeaers to be better than speed increase. can probbaly be used in place of a bunch of code.
if (shootA){
target = ((RPMModifier *ShooterSpeedScale) + currentRPMT2) * a;
StageTwoTalon.set(target);
} else if (sh... | public void RPMTarget(double a){ //defines target based on input. Appeaers to be better than speed increase. can probbaly be used in place of a bunch of code.
if (shootA){
target = ((RPMModifier *ShooterSpeedScale) + currentRPMT2) * a;
} else if (shootB){
target = (( -RPMModi... |
diff --git a/otherblocks/src/com/sargant/bukkit/otherblocks/OtherBlocks.java b/otherblocks/src/com/sargant/bukkit/otherblocks/OtherBlocks.java
index dc00a57..2679eac 100644
--- a/otherblocks/src/com/sargant/bukkit/otherblocks/OtherBlocks.java
+++ b/otherblocks/src/com/sargant/bukkit/otherblocks/OtherBlocks.java
@@ -1,1... | false | true | public void onEnable()
{
// Initialize and read in the YAML file
getDataFolder().mkdirs();
File yml = new File(getDataFolder(), "config.yml");
if (!yml.exists())
{
try {
yml.createNewFile();
log.info("Created an empty file " + getDataFolder() +"/config.yml, please edit it!");
getConfigura... | public void onEnable()
{
// Initialize and read in the YAML file
getDataFolder().mkdirs();
File yml = new File(getDataFolder(), "config.yml");
if (!yml.exists())
{
try {
yml.createNewFile();
log.info("Created an empty file " + getDataFolder() +"/config.yml, please edit it!");
getConfigura... |
diff --git a/org.iucn.sis.client/src/org/iucn/sis/client/panels/users/UserViewPanel.java b/org.iucn.sis.client/src/org/iucn/sis/client/panels/users/UserViewPanel.java
index 314cf001..92f33f84 100644
--- a/org.iucn.sis.client/src/org/iucn/sis/client/panels/users/UserViewPanel.java
+++ b/org.iucn.sis.client/src/org/iucn/... | true | true | private void draw() {
removeAll();
final ToolBar bar = new ToolBar();
if (AuthorizationCache.impl.hasRight(SISClientBase.currentUser, AuthorizableObject.USE_FEATURE,
AuthorizableFeature.USER_MANAGEMENT_FEATURE)) {
Button item = new Button("Add Profile and Create Password", new SelectionListener<ButtonEv... | private void draw() {
removeAll();
final ToolBar bar = new ToolBar();
if (AuthorizationCache.impl.hasRight(SISClientBase.currentUser, AuthorizableObject.USE_FEATURE,
AuthorizableFeature.USER_MANAGEMENT_FEATURE)) {
Button item = new Button("Add Profile and Create Password", new SelectionListener<ButtonEv... |
diff --git a/src/org/apache/xalan/xsltc/compiler/XslElement.java b/src/org/apache/xalan/xsltc/compiler/XslElement.java
index 6f3df540..121ad35b 100644
--- a/src/org/apache/xalan/xsltc/compiler/XslElement.java
+++ b/src/org/apache/xalan/xsltc/compiler/XslElement.java
@@ -1,363 +1,362 @@
/*
* @(#)$Id$
*
* The Apac... | true | true | public void parseContents(Parser parser) {
final SymbolTable stable = parser.getSymbolTable();
// Handle the 'name' attribute
String name = getAttribute("name");
if (name == EMPTYSTRING) {
ErrorMsg msg = new ErrorMsg(ErrorMsg.ILLEGAL_ELEM_NAME_ERR,
name, this);
parser.reportError(WARNING, msg);
... | public void parseContents(Parser parser) {
final SymbolTable stable = parser.getSymbolTable();
// Handle the 'name' attribute
String name = getAttribute("name");
if (name == EMPTYSTRING) {
ErrorMsg msg = new ErrorMsg(ErrorMsg.ILLEGAL_ELEM_NAME_ERR,
name, this);
parser.reportError(WARNING, msg);
... |
diff --git a/FiltersPlugin/src/org/gephi/filters/plugin/graph/EgoBuilder.java b/FiltersPlugin/src/org/gephi/filters/plugin/graph/EgoBuilder.java
index 40ac4fa63..1651c0304 100644
--- a/FiltersPlugin/src/org/gephi/filters/plugin/graph/EgoBuilder.java
+++ b/FiltersPlugin/src/org/gephi/filters/plugin/graph/EgoBuilder.java... | true | true | public Graph filter(Graph graph) {
HierarchicalGraph hgraph = (HierarchicalGraph) graph;
String str = pattern.toLowerCase();
List<Node> nodes = new ArrayList<Node>();
for (Node n : hgraph.getNodes()) {
if (n.getNodeData().getId().toLowerCase().eq... | public Graph filter(Graph graph) {
HierarchicalGraph hgraph = (HierarchicalGraph) graph;
String str = pattern.toLowerCase();
List<Node> nodes = new ArrayList<Node>();
for (Node n : hgraph.getNodes()) {
if (n.getNodeData().getId().toLowerCase().eq... |
diff --git a/bundles/org.eclipse.equinox.compendium.tests/src/org/eclipse/equinox/metatype/tests/Bug358969Test.java b/bundles/org.eclipse.equinox.compendium.tests/src/org/eclipse/equinox/metatype/tests/Bug358969Test.java
index 1097ddd8..fe9af937 100644
--- a/bundles/org.eclipse.equinox.compendium.tests/src/org/eclipse/... | true | true | public void test1() {
String message = "NLS properties file not configured correctly"; //$NON-NLS-1$
assertFalse(message, MetaTypeMsg.SERVICE_DESCRIPTION.startsWith("NLS missing message:")); //$NON-NLS-1$
assertFalse(message, LogTrackerMsg.Debug.startsWith("NLS missing message:")); //$NON-NLS-1$
}
| public void test1() {
String message = "NLS properties file not configured correctly"; //$NON-NLS-1$
String prefix = "NLS missing message:"; //$NON-NLS-1$
assertFalse(message, MetaTypeMsg.SERVICE_DESCRIPTION.startsWith(prefix));
assertFalse(message, LogTrackerMsg.Debug.startsWith(prefix));
}
|
diff --git a/melete-impl/src/java/org/sakaiproject/component/app/melete/ModuleDB.java b/melete-impl/src/java/org/sakaiproject/component/app/melete/ModuleDB.java
index be92f8f0..083ce341 100644
--- a/melete-impl/src/java/org/sakaiproject/component/app/melete/ModuleDB.java
+++ b/melete-impl/src/java/org/sakaiproject/comp... | false | true | public int cleanUpDeletedModules() throws Exception
{
if (!meleteSecurityService.isSuperUser(UserDirectoryService.getCurrentUser().getId())) throw new MeleteException("admin_allow_cleanup");
int delCount = 0;
long totalStart = System.currentTimeMillis();
try
{
Session session = hibernateUtil.currentSess... | public int cleanUpDeletedModules() throws Exception
{
if (!meleteSecurityService.isSuperUser(UserDirectoryService.getCurrentUser().getId())) throw new MeleteException("admin_allow_cleanup");
int delCount = 0;
long totalStart = System.currentTimeMillis();
try
{
Session session = hibernateUtil.currentSess... |
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/git/LocalDiskRepositoryManager.java b/gerrit-server/src/main/java/com/google/gerrit/server/git/LocalDiskRepositoryManager.java
index 44cb9a71e..e23e84974 100644
--- a/gerrit-server/src/main/java/com/google/gerrit/server/git/LocalDiskRepositoryManager.jav... | true | true | public Repository createRepository(final Project.NameKey name)
throws RepositoryNotFoundException, RepositoryCaseMismatchException {
if (isUnreasonableName(name)) {
throw new RepositoryNotFoundException("Invalid name: " + name);
}
File dir = FileKey.resolve(gitDirOf(name), FS.DETECTED);
F... | public Repository createRepository(final Project.NameKey name)
throws RepositoryNotFoundException, RepositoryCaseMismatchException {
if (isUnreasonableName(name)) {
throw new RepositoryNotFoundException("Invalid name: " + name);
}
File dir = FileKey.resolve(gitDirOf(name), FS.DETECTED);
F... |
diff --git a/clients/java-client/src/ai/AI.java b/clients/java-client/src/ai/AI.java
index fc7f178..3727c8f 100644
--- a/clients/java-client/src/ai/AI.java
+++ b/clients/java-client/src/ai/AI.java
@@ -1,56 +1,56 @@
package ai;
import client.CommandReactor;
import client.GameObject;
import client.Landscape;
pub... | true | true | public void onTurn(GameObject[] info, Turn turn) {
for (GameObject go: info) {
if (go.type == GameObject.Type.UNKNOWN && go.voice == GameObject.Voice.BARKING) {
System.out.println("Someone barking at " + go.x + "," + go.y);
}
}
this.turn++;
Dir... | public void onTurn(GameObject[] info, Turn turn) {
for (GameObject go: info) {
if (go.type == GameObject.Type.UNKNOWN && go.voice == GameObject.Voice.BARKING) {
System.out.println("Someone barking at " + go.x + "," + go.y);
}
}
this.turn++;
Dir... |
diff --git a/src/db/Notification.java b/src/db/Notification.java
index e357ba2..81fed05 100644
--- a/src/db/Notification.java
+++ b/src/db/Notification.java
@@ -1,53 +1,53 @@
package db;
public class Notification {
private int userId;
private int appointmentId;
private NotificationType notificationType;
... | true | true | public Notification(int iserId, int appointmentId, NotificationType notificationType){
this.userId = userId;
this.appointmentId = appointmentId;
this.notificationType = notificationType;
}
| public Notification(int userId, int appointmentId, NotificationType notificationType){
this.userId = userId;
this.appointmentId = appointmentId;
this.notificationType = notificationType;
}
|
diff --git a/src/radlab/rain/workload/olio/AddEventOperation.java b/src/radlab/rain/workload/olio/AddEventOperation.java
index 6dbb698..02ef4c2 100644
--- a/src/radlab/rain/workload/olio/AddEventOperation.java
+++ b/src/radlab/rain/workload/olio/AddEventOperation.java
@@ -1,274 +1,275 @@
/*
* Copyright (c) 2010, Reg... | true | true | public void execute() throws Throwable
{
// Need a logged person
OlioPerson loggedPerson = this.getUtility().getPerson(this.getSessionState().getLoggedPersonId());
if (!this.getUtility().isRegisteredPerson(loggedPerson))
{
this.getLogger().severe("Login required for adding an event");
//throw new Except... | public void execute() throws Throwable
{
// Need a logged person
OlioPerson loggedPerson = this.getUtility().getPerson(this.getSessionState().getLoggedPersonId());
if (!this.getUtility().isRegisteredPerson(loggedPerson))
{
this.getLogger().severe("Login required for adding an event");
//throw new Except... |
diff --git a/src/main/java/eu/kyotoproject/util/Resources.java b/src/main/java/eu/kyotoproject/util/Resources.java
index 62ec8dc..02f09e8 100644
--- a/src/main/java/eu/kyotoproject/util/Resources.java
+++ b/src/main/java/eu/kyotoproject/util/Resources.java
@@ -1,573 +1,573 @@
package eu.kyotoproject.util;
import eu... | true | true | public void processMatrixFileWithWordnetILI (String file) {
try {
/*
VN_CLASS VN_CLASS_NUMBER VN_SUBCLASS VN_SUBCLASS_NUMBER VN_LEMA WN_SENSE VN_THEMROLE FN_FRAME FN_LEXENT FN_ROLE PB_ROLESET PB_ARG MCR_ILIOFFSET MCR_DOMAIN MCR_SUMO MC_LEXNAME
vn:comprehend-87.2 vn:87.2 vn:null vn:null... | public void processMatrixFileWithWordnetILI (String file) {
try {
/*
VN_CLASS VN_CLASS_NUMBER VN_SUBCLASS VN_SUBCLASS_NUMBER VN_LEMA WN_SENSE VN_THEMROLE FN_FRAME FN_LEXENT FN_ROLE PB_ROLESET PB_ARG MCR_ILIOFFSET MCR_DOMAIN MCR_SUMO MC_LEXNAME
vn:comprehend-87.2 vn:87.2 vn:null vn:null... |
diff --git a/src/com/android/contacts/calllog/ContactInfoHelper.java b/src/com/android/contacts/calllog/ContactInfoHelper.java
index b4e4cf7d3..90d5e8b0b 100644
--- a/src/com/android/contacts/calllog/ContactInfoHelper.java
+++ b/src/com/android/contacts/calllog/ContactInfoHelper.java
@@ -1,214 +1,215 @@
/*
* Copyrig... | true | true | public ContactInfo lookupNumber(String number, String countryIso) {
final ContactInfo info;
// Determine the contact info.
if (PhoneNumberUtils.isUriNumber(number)) {
// This "number" is really a SIP address.
ContactInfo sipInfo = queryContactInfoForSipAddress(number... | public ContactInfo lookupNumber(String number, String countryIso) {
final ContactInfo info;
// Determine the contact info.
if (PhoneNumberUtils.isUriNumber(number)) {
// This "number" is really a SIP address.
ContactInfo sipInfo = queryContactInfoForSipAddress(number... |
diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/rdfservice/impl/jena/RDFServiceJena.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/rdfservice/impl/jena/RDFServiceJena.java
index 5fbb544bc..76acdb839 100644
--- a/webapp/src/edu/cornell/mannlib/vitro/webapp/rdfservice/impl/jena/RDFServiceJena.java
+++ b/weba... | true | true | private void removeBlankNodesWithSparqlUpdate(Dataset dataset, Model model, String graphURI) {
List<Statement> blankNodeStatements = new ArrayList<Statement>();
StmtIterator stmtIt = model.listStatements();
while (stmtIt.hasNext()) {
Statement stmt = stmtIt.nextSt... | private void removeBlankNodesWithSparqlUpdate(Dataset dataset, Model model, String graphURI) {
List<Statement> blankNodeStatements = new ArrayList<Statement>();
StmtIterator stmtIt = model.listStatements();
while (stmtIt.hasNext()) {
Statement stmt = stmtIt.nextSt... |
diff --git a/vertx-platform/src/main/java/org/vertx/java/platform/impl/java/CompilingClassLoader.java b/vertx-platform/src/main/java/org/vertx/java/platform/impl/java/CompilingClassLoader.java
index 91443c5bd..3145c8557 100644
--- a/vertx-platform/src/main/java/org/vertx/java/platform/impl/java/CompilingClassLoader.jav... | true | true | public CompilingClassLoader(ClassLoader loader, String sourceName) {
super(loader);
URL resource = getResource(sourceName);
if(resource == null) {
throw new RuntimeException("Resource not found: " + sourceName);
}
//Need to urldecode it too, since bug in JDK URL class which does not url deco... | public CompilingClassLoader(ClassLoader loader, String sourceName) {
super(loader);
URL resource = getResource(sourceName);
if(resource == null) {
throw new RuntimeException("Resource not found: " + sourceName);
}
//Need to urldecode it too, since bug in JDK URL class which does not url deco... |
diff --git a/common/mrtjp/projectred/illumination/IlluminationProxy.java b/common/mrtjp/projectred/illumination/IlluminationProxy.java
index 622b04a6..146d5991 100644
--- a/common/mrtjp/projectred/illumination/IlluminationProxy.java
+++ b/common/mrtjp/projectred/illumination/IlluminationProxy.java
@@ -1,61 +1,61 @@
pa... | true | true | public void init()
{
MultiPartRegistry.registerParts(this, new String[] { "pr_lantern", "pr_lightbutton", "pr_cagelamp", "pr_fixture" });
itemPartLantern = new ItemPartLantern(Configurator.part_lantern.getInt(), false);
itemPartInvLantern = new ItemPartLantern(Configurator.part_invlante... | public void init()
{
MultiPartRegistry.registerParts(this, new String[] { "pr_lantern", "pr_lightbutton", "pr_cagelamp", "pr_fixture" });
itemPartLantern = new ItemPartLantern(Configurator.part_lantern.getInt(), false);
itemPartInvLantern = new ItemPartLantern(Configurator.part_invlante... |
diff --git a/benchmark/src/main/java/info/gehrels/diplomarbeit/RunBenchmarkStep.java b/benchmark/src/main/java/info/gehrels/diplomarbeit/RunBenchmarkStep.java
index 08e1aec..f9b5123 100644
--- a/benchmark/src/main/java/info/gehrels/diplomarbeit/RunBenchmarkStep.java
+++ b/benchmark/src/main/java/info/gehrels/diplomarbe... | true | true | public static void main(String[] args) throws Exception {
String inputPath = args[0];
String dbName = args[1];
String algorithm = args[2];
switch (dbName) {
case "flockdb": {
new FlockDBBenchmarkStep(algorithm, inputPath).execute();
break;
}
case "neo4j": {
... | public static void main(String[] args) throws Exception {
String inputPath = args[0];
String dbName = args[1];
String algorithm = args[2];
switch (dbName) {
case "flockdb": {
new FlockDBBenchmarkStep(algorithm, inputPath).execute();
break;
}
case "neo4j": {
... |
diff --git a/autograph/ui/mainWindow.java b/autograph/ui/mainWindow.java
index cb107ba..41cf3fa 100644
--- a/autograph/ui/mainWindow.java
+++ b/autograph/ui/mainWindow.java
@@ -1,717 +1,717 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package autograph.ui;
... | false | true | private void initComponents() {
jToolBar1 = new javax.swing.JToolBar();
jButton1 = new javax.swing.JButton();
filler3 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(25, 0));
jButton2 = new javax.swing.JButton();
... | private void initComponents() {
jToolBar1 = new javax.swing.JToolBar();
jButton1 = new javax.swing.JButton();
filler3 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(10, 0), new java.awt.Dimension(25, 0));
jButton2 = new javax.swing.JButton();
... |
diff --git a/project/src/de/topobyte/livecg/geometry/ui/geometryeditor/Content.java b/project/src/de/topobyte/livecg/geometry/ui/geometryeditor/Content.java
index bc64abf..fd949fd 100644
--- a/project/src/de/topobyte/livecg/geometry/ui/geometryeditor/Content.java
+++ b/project/src/de/topobyte/livecg/geometry/ui/geometr... | true | true | public Node getNearestDifferentNode(Coordinate coordinate, Node node)
{
double distance = Double.MAX_VALUE;
Node nearestNode = null;
for (Chain chain : chains) {
Node n = chain.getNearestDifferentNode(node);
if (n == node) {
continue;
}
double d = n.getCoordinate().distance(coordinate);
if (d... | public Node getNearestDifferentNode(Coordinate coordinate, Node node)
{
double distance = Double.MAX_VALUE;
Node nearestNode = null;
for (Chain chain : chains) {
Node n = chain.getNearestDifferentNode(node);
if (n == null || n == node) {
continue;
}
double d = n.getCoordinate().distance(coordina... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.