diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/src/org/gavrog/joss/tilings/FaceList.java b/src/org/gavrog/joss/tilings/FaceList.java
index 0e16558..18944e3 100644
--- a/src/org/gavrog/joss/tilings/FaceList.java
+++ b/src/org/gavrog/joss/tilings/FaceList.java
@@ -1,618 +1,618 @@
/*
Copyright 2012 Olaf Delgado-Friedrichs
Licensed under the Apa... | false | true | public FaceList(
final List<Object> input,
final Map<Integer, Point> indexToPosition)
{
if (DEBUG) {
System.err.println("\nStarting FaceList constructor");
}
if (input == null || input.size() < 1) {
throw new IllegalArgumentException("no data given");
}
if (in... | public FaceList(
final List<Object> input,
final Map<Integer, Point> indexToPosition)
{
if (DEBUG) {
System.err.println("\nStarting FaceList constructor");
}
if (input == null || input.size() < 1) {
throw new IllegalArgumentException("no data given");
}
if (in... |
diff --git a/Source/summative2013/lifeform/Animal.java b/Source/summative2013/lifeform/Animal.java
index c1757a3..9dd189f 100644
--- a/Source/summative2013/lifeform/Animal.java
+++ b/Source/summative2013/lifeform/Animal.java
@@ -1,476 +1,476 @@
package summative2013.lifeform;
import java.awt.Point;
import java.uti... | true | true | public void act(WEATHER Weather) {
boolean walked = false;
if (diseased) {
int temp = sight;
sight = 4;
findNearbyLife();
for (Lifeform l : nearbyLife) {
l.disease();
}
sight = temp;
hunger = hunger... | public void act(WEATHER Weather) {
boolean walked = false;
if (diseased) {
int temp = sight;
sight = 4;
findNearbyLife();
for (Lifeform l : nearbyLife) {
l.disease();
}
sight = temp;
hunger = hunger... |
diff --git a/src/main/java/com/google/gerrit/server/mail/NewChangeSender.java b/src/main/java/com/google/gerrit/server/mail/NewChangeSender.java
index a99fa5720..557833970 100644
--- a/src/main/java/com/google/gerrit/server/mail/NewChangeSender.java
+++ b/src/main/java/com/google/gerrit/server/mail/NewChangeSender.java... | true | true | private void formatSalutation() {
final String changeUrl = getChangeUrl();
final String pullUrl = getPullUrl();
if (reviewers.isEmpty()) {
formatDest();
if (changeUrl != null) {
appendText("\n");
appendText(" " + changeUrl + "\n");
appendText("\n");
}
ap... | private void formatSalutation() {
final String changeUrl = getChangeUrl();
final String pullUrl = getPullUrl();
if (reviewers.isEmpty()) {
formatDest();
if (changeUrl != null) {
appendText("\n");
appendText(" " + changeUrl + "\n");
appendText(" " + pullUrl + "\n"... |
diff --git a/src/org/bh/platform/PlatformActionListener.java b/src/org/bh/platform/PlatformActionListener.java
index e88c0c07..cc577763 100644
--- a/src/org/bh/platform/PlatformActionListener.java
+++ b/src/org/bh/platform/PlatformActionListener.java
@@ -1,780 +1,782 @@
package org.bh.platform;
import java.awt.even... | false | true | public void actionPerformed(ActionEvent aEvent) {
// get actionKey of fired action
PlatformKey actionKey = ((IBHAction) aEvent.getSource())
.getPlatformKey();
// do right action...
switch (actionKey) {
/*
* Clear current workspace
*
* @author Michael Löckelt
*/
case FILENEW:
log.debu... | public void actionPerformed(ActionEvent aEvent) {
// get actionKey of fired action
PlatformKey actionKey = ((IBHAction) aEvent.getSource())
.getPlatformKey();
// do right action...
switch (actionKey) {
/*
* Clear current workspace
*
* @author Michael Löckelt
*/
case FILENEW:
log.debu... |
diff --git a/src/cmu/arktweetnlp/io/JsonTweetReader.java b/src/cmu/arktweetnlp/io/JsonTweetReader.java
index c0b5382..7ef0e2c 100644
--- a/src/cmu/arktweetnlp/io/JsonTweetReader.java
+++ b/src/cmu/arktweetnlp/io/JsonTweetReader.java
@@ -1,51 +1,50 @@
package cmu.arktweetnlp.io;
import java.io.BufferedReader;
impor... | true | true | public String getText(String tweetJson) {
JsonNode rootNode;
// wtf, we have to allocate a new parser for every line?
try {
rootNode = mapper.readValue(tweetJson, JsonNode.class);
} catch (JsonParseException e) {
return null;
} catch (IOException e) {
return null;
}
if (! rootNode.isObjec... | public String getText(String tweetJson) {
JsonNode rootNode;
try {
rootNode = mapper.readValue(tweetJson, JsonNode.class);
} catch (JsonParseException e) {
return null;
} catch (IOException e) {
return null;
}
if (! rootNode.isObject())
return null;
JsonNode textValue = rootNode.get... |
diff --git a/src/java/org/infoglue/cms/util/graphics/ThumbnailGenerator.java b/src/java/org/infoglue/cms/util/graphics/ThumbnailGenerator.java
index 755312b80..3c7c36e6b 100755
--- a/src/java/org/infoglue/cms/util/graphics/ThumbnailGenerator.java
+++ b/src/java/org/infoglue/cms/util/graphics/ThumbnailGenerator.java
@@ ... | true | true | public void transform(String originalFile, String thumbnailFile, int thumbWidth, int thumbHeight, int quality) throws Exception
{
Image image = javax.imageio.ImageIO.read(new File(originalFile));
double thumbRatio = (double)thumbWidth / (double)thumbHeight;
int imageWidth = image.getWidth(null);
i... | public void transform(String originalFile, String thumbnailFile, int thumbWidth, int thumbHeight, int quality) throws Exception
{
Image image = javax.imageio.ImageIO.read(new File(originalFile));
double thumbRatio = (double)thumbWidth / (double)thumbHeight;
int imageWidth = image.getWidth(null);
i... |
diff --git a/portsensor.core/com/portsensor/main/Main.java b/portsensor.core/com/portsensor/main/Main.java
index 79a9215..628d398 100644
--- a/portsensor.core/com/portsensor/main/Main.java
+++ b/portsensor.core/com/portsensor/main/Main.java
@@ -1,381 +1,379 @@
/**
* @author Jeff Standen <jeff@webgroupmedia.com>
*/... | true | true | private static String getXML() {
Configuration cfg = Configuration.getInstance();
Sigar sigar = new Sigar();
// Formatters
NumberFormat loadFormatter = DecimalFormat.getNumberInstance();
loadFormatter.setMaximumFractionDigits(2);
SimpleDateFormat dateFormatter = new SimpleDateFormat("MMM dd HH:mm");
... | private static String getXML() {
Configuration cfg = Configuration.getInstance();
Sigar sigar = new Sigar();
// Formatters
NumberFormat loadFormatter = DecimalFormat.getNumberInstance();
loadFormatter.setMaximumFractionDigits(2);
SimpleDateFormat dateFormatter = new SimpleDateFormat("MMM dd HH:mm");
... |
diff --git a/app/controllers/PageViewer.java b/app/controllers/PageViewer.java
index 517d2f6..68a1998 100644
--- a/app/controllers/PageViewer.java
+++ b/app/controllers/PageViewer.java
@@ -1,106 +1,106 @@
package controllers;
import elasticsearch.SearchJob;
import java.util.ArrayList;
import java.util.List;
impo... | true | true | public static Page getGoodPage(List<Page> pages) {
if(pages == null)
return null;
Page page = null;
switch (pages.size()) {
case 0:
return null;
case 1:
page = pages.get(0);
if (!page.published)
... | public static Page getGoodPage(List<Page> pages) {
if(pages == null || pages.isEmpty())
return null;
Page page = null;
switch (pages.size()) {
case 0:
return null;
case 1:
page = pages.get(0);
if (!page.publ... |
diff --git a/src/main/java/cn/beihangsoft/parkingsystem/model/ParkingArea.java b/src/main/java/cn/beihangsoft/parkingsystem/model/ParkingArea.java
index 5e85427..194b8fd 100644
--- a/src/main/java/cn/beihangsoft/parkingsystem/model/ParkingArea.java
+++ b/src/main/java/cn/beihangsoft/parkingsystem/model/ParkingArea.java... | true | true | public ParkingArea(int totalSlots) {
this.totalSlots = totalSlots;
}
| public ParkingArea(int totalSlots) {
this.totalSlots = totalSlots;
this.freeSlots = totalSlots;
}
|
diff --git a/src/main/java/org/mybatis/spring/SqlSessionFactoryBean.java b/src/main/java/org/mybatis/spring/SqlSessionFactoryBean.java
index 8a92f736..a7b26ee1 100644
--- a/src/main/java/org/mybatis/spring/SqlSessionFactoryBean.java
+++ b/src/main/java/org/mybatis/spring/SqlSessionFactoryBean.java
@@ -1,360 +1,360 @@
... | true | true | protected SqlSessionFactory buildSqlSessionFactory() throws IOException, IllegalAccessException,
InstantiationException {
XMLConfigBuilder xmlConfigBuilder;
Configuration configuration;
if (configLocation != null) {
Reader reader = null;
try {
... | protected SqlSessionFactory buildSqlSessionFactory() throws IOException, IllegalAccessException,
InstantiationException {
XMLConfigBuilder xmlConfigBuilder;
Configuration configuration;
if (configLocation != null) {
Reader reader = null;
try {
... |
diff --git a/org/jruby/parser/DefaultRubyParser.java b/org/jruby/parser/DefaultRubyParser.java
index 4df8b0c32..91802c1ac 100644
--- a/org/jruby/parser/DefaultRubyParser.java
+++ b/org/jruby/parser/DefaultRubyParser.java
@@ -1,2934 +1,2934 @@
// line 2 "parse.y"
/*
* DefaultRubyParser.java - JRuby - Parser con... | false | true | public Object yyparse (yyInput yyLex)
throws java.io.IOException, yyException {
if (yyMax <= 0) yyMax = 256; // initial size
int yyState = 0, yyStates[] = new int[yyMax]; // state stack
Object yyVal = null, yyVals[] = new Object[yyMax]; // value stack
int yyToken = -1; // current input
i... | public Object yyparse (yyInput yyLex)
throws java.io.IOException, yyException {
if (yyMax <= 0) yyMax = 256; // initial size
int yyState = 0, yyStates[] = new int[yyMax]; // state stack
Object yyVal = null, yyVals[] = new Object[yyMax]; // value stack
int yyToken = -1; // current input
i... |
diff --git a/sch-kp-web/src/main/java/hu/sch/web/kp/pages/group/ShowGroup.java b/sch-kp-web/src/main/java/hu/sch/web/kp/pages/group/ShowGroup.java
index 12fb1882..a65b7b01 100644
--- a/sch-kp-web/src/main/java/hu/sch/web/kp/pages/group/ShowGroup.java
+++ b/sch-kp-web/src/main/java/hu/sch/web/kp/pages/group/ShowGroup.ja... | true | true | public ShowGroup(PageParameters parameters) {
//az oldal paraméterének dekódolása
Object p = parameters.get("id");
Long id = null;
try {
id = Long.parseLong(p.toString());
} catch (NumberFormatException e) {
error("Hibás paraméter!");
throw... | public ShowGroup(PageParameters parameters) {
//az oldal paraméterének dekódolása
Object p = parameters.get("id");
Long id = null;
try {
id = Long.parseLong(p.toString());
} catch (NumberFormatException e) {
error("Hibás paraméter!");
throw... |
diff --git a/ghana-national-functional-tests/src/main/java/org/motechproject/ghana/national/functional/framework/ScheduleTracker.java b/ghana-national-functional-tests/src/main/java/org/motechproject/ghana/national/functional/framework/ScheduleTracker.java
index df45e3c6..079090f1 100644
--- a/ghana-national-functional... | true | true | private LocalDate findFirstApplicableAlert(Milestone milestone, LocalDate referenceDate) {
List<MilestoneWindow> milestoneWindows = milestone.getMilestoneWindows();
for (MilestoneWindow milestoneWindow : milestoneWindows) {
Period windowStart = milestone.getWindowStart(milestoneWindow.g... | private LocalDate findFirstApplicableAlert(Milestone milestone, LocalDate referenceDate) {
List<MilestoneWindow> milestoneWindows = milestone.getMilestoneWindows();
for (MilestoneWindow milestoneWindow : milestoneWindows) {
Period windowStart = milestone.getWindowStart(milestoneWindow.g... |
diff --git a/mes-plugins/mes-plugins-basic/src/main/java/com/qcadoo/mes/basic/CompanyService.java b/mes-plugins/mes-plugins-basic/src/main/java/com/qcadoo/mes/basic/CompanyService.java
index cf58e3b24d..fcfbd4b83f 100644
--- a/mes-plugins/mes-plugins-basic/src/main/java/com/qcadoo/mes/basic/CompanyService.java
+++ b/me... | true | true | public final Boolean isCompanyOwner(final Entity company) {
Long compantId = company.getId();
if (companyId == null) {
return Boolean.FALSE;
}
Entity companyFromDB = getCompanyDD().get(companyId);
if (companyFromDB == null) {
return Boolean.... | public final Boolean isCompanyOwner(final Entity company) {
Long companyId = company.getId();
if (companyId == null) {
return Boolean.FALSE;
}
Entity companyFromDB = getCompanyDD().get(companyId);
if (companyFromDB == null) {
return Boolean.... |
diff --git a/src/main/java/hudson/plugins/analysis/core/HealthAwareReporter.java b/src/main/java/hudson/plugins/analysis/core/HealthAwareReporter.java
index 81d2295..271d64e 100644
--- a/src/main/java/hudson/plugins/analysis/core/HealthAwareReporter.java
+++ b/src/main/java/hudson/plugins/analysis/core/HealthAwareRepor... | true | true | public final boolean postExecute(final MavenBuildProxy build, final MavenProject pom, final MojoInfo mojo,
final BuildListener listener, final Throwable error) throws InterruptedException, IOException {
PluginLogger logger = new PluginLogger(listener.getLogger(), pluginName);
if (!accept... | public final boolean postExecute(final MavenBuildProxy build, final MavenProject pom, final MojoInfo mojo,
final BuildListener listener, final Throwable error) throws InterruptedException, IOException {
PluginLogger logger = new PluginLogger(listener.getLogger(), pluginName);
if (!accept... |
diff --git a/project/src/com/jeffboody/GearsES2eclair/GearsES2eclairAbout.java b/project/src/com/jeffboody/GearsES2eclair/GearsES2eclairAbout.java
index a1b2f42..c608842 100644
--- a/project/src/com/jeffboody/GearsES2eclair/GearsES2eclairAbout.java
+++ b/project/src/com/jeffboody/GearsES2eclair/GearsES2eclairAbout.java... | false | true | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
WebView wv = new WebView(this);
String text = "<html><body bgcolor=\"#37547c\" text=\"#FFFFFF\" link=\"#a08f6b\" vlink=\"#a08f6b\">" +
"<h2>About Gears for Android(TM)</h2>" +
"<p>" +
... | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
WebView wv = new WebView(this);
String text = "<html><body bgcolor=\"#37547c\" text=\"#FFFFFF\" link=\"#a08f6b\" vlink=\"#a08f6b\">" +
"<h2>About Gears for Android(TM)</h2>" +
"<p>" +
... |
diff --git a/org.caleydo.core/src/org/caleydo/core/data/graph/tree/TreePorter.java b/org.caleydo.core/src/org/caleydo/core/data/graph/tree/TreePorter.java
index 45c5e1260..db5804957 100644
--- a/org.caleydo.core/src/org/caleydo/core/data/graph/tree/TreePorter.java
+++ b/org.caleydo.core/src/org/caleydo/core/data/graph/... | true | true | public ClusterTree importTree(String fileName, IDType leafIDType)
throws JAXBException, FileNotFoundException {
JAXBContext jaxbContext = null;
TreePorter treePorter = null;
Unmarshaller unmarshaller;
jaxbContext = JAXBContext.newInstance(TreePorter.class);
unmarshaller = jaxbContext.createUnmarshaller(... | public ClusterTree importTree(String fileName, IDType leafIDType)
throws JAXBException, FileNotFoundException {
JAXBContext jaxbContext = null;
TreePorter treePorter = null;
Unmarshaller unmarshaller;
jaxbContext = JAXBContext.newInstance(TreePorter.class);
unmarshaller = jaxbContext.createUnmarshaller(... |
diff --git a/src/com/owncloud/android/operations/DownloadFileOperation.java b/src/com/owncloud/android/operations/DownloadFileOperation.java
index 24990a2d3..04011c102 100644
--- a/src/com/owncloud/android/operations/DownloadFileOperation.java
+++ b/src/com/owncloud/android/operations/DownloadFileOperation.java
@@ -1,1... | true | true | protected RemoteOperationResult run(OwnCloudClient client) {
RemoteOperationResult result = null;
File newFile = null;
boolean moved = true;
/// download will be performed to a temporal file, then moved to the final location
File tmpFile = new File(getTmpPath());
... | protected RemoteOperationResult run(OwnCloudClient client) {
RemoteOperationResult result = null;
File newFile = null;
boolean moved = true;
/// download will be performed to a temporal file, then moved to the final location
File tmpFile = new File(getTmpPath());
... |
diff --git a/lib/src/main/java/com/github/fhirschmann/clozegen/lib/util/StringUtils.java b/lib/src/main/java/com/github/fhirschmann/clozegen/lib/util/StringUtils.java
index 2e773b6..387b2ed 100644
--- a/lib/src/main/java/com/github/fhirschmann/clozegen/lib/util/StringUtils.java
+++ b/lib/src/main/java/com/github/fhirsc... | true | true | public static final boolean isSentenceDelimiter(String subject) {
return SENTENCE_DELIMITER_MATCHER.matches(checkNotNull(subject.charAt(0)));
}
| public static boolean isSentenceDelimiter(final String subject) {
return SENTENCE_DELIMITER_MATCHER.matches(checkNotNull(subject.charAt(0)));
}
|
diff --git a/ide/plugins/combinatorialtesting/src/main/java/org/overture/ide/plugins/combinatorialtesting/views/ViewContentProvider.java b/ide/plugins/combinatorialtesting/src/main/java/org/overture/ide/plugins/combinatorialtesting/views/ViewContentProvider.java
index 918d0cdd90..61cea16286 100644
--- a/ide/plugins/com... | true | true | private void initialize()
{
invisibleRoot = new TreeParent("");
// IWorkspaceRoot iworkspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
// IProject[] iprojects = iworkspaceRoot.getProjects();
// ArrayList<String> fileNameList = new ArrayList<String>();
ProjectTreeNode projectTreeNode;
for (IVdmProj... | private void initialize()
{
invisibleRoot = new TreeParent("");
// IWorkspaceRoot iworkspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
// IProject[] iprojects = iworkspaceRoot.getProjects();
// ArrayList<String> fileNameList = new ArrayList<String>();
ProjectTreeNode projectTreeNode;
for (IVdmProj... |
diff --git a/piggy/src/string_utils/JsonParser.java b/piggy/src/string_utils/JsonParser.java
index 4ed8fdb..22a186f 100644
--- a/piggy/src/string_utils/JsonParser.java
+++ b/piggy/src/string_utils/JsonParser.java
@@ -1,63 +1,68 @@
package string_utils;
import java.io.IOException;
import java.util.ArrayList;
impor... | false | true | public Tuple exec(Tuple input) throws IOException {
List<Tuple> bagtuples = new ArrayList<Tuple>();
;
Tuple result = TupleFactory.getInstance().newTuple(bagtuples);
String[] paramColumns = getParamColumns();
try {
if (DataChecker.isValid(input, 1)) {
String json = "{}";
if (input.get(0) != null) {... | public Tuple exec(Tuple input) throws IOException {
List<Tuple> bagtuples = new ArrayList<Tuple>();
;
Tuple result = TupleFactory.getInstance().newTuple(bagtuples);
String[] paramColumns = getParamColumns();
String jj = "";
try {
if (DataChecker.isValid(input, 1)) {
String json = "{}";
if (input... |
diff --git a/Tamagotchi/src/com/redditandroiddevelopers/tamagotchi/TamagotchiGame.java b/Tamagotchi/src/com/redditandroiddevelopers/tamagotchi/TamagotchiGame.java
index 58f1d4e..250530c 100644
--- a/Tamagotchi/src/com/redditandroiddevelopers/tamagotchi/TamagotchiGame.java
+++ b/Tamagotchi/src/com/redditandroiddeveloper... | true | true | public void create() {
// do first-time configurations that should live as long as the
// application does
Gdx.app.setLogLevel(config.logLevel);
// create screen objects we're going to need throughout
screens = new CommonScreen[] {
new MainMenuScreen(this),
... | public void create() {
// do first-time configurations that should live as long as the
// application does
Gdx.app.setLogLevel(config.logLevel);
// create screen objects we're going to need throughout
screens = new CommonScreen[] {
new MainMenuScreen(this),
... |
diff --git a/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLList.java b/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLList.java
index 4b90b9bc..f40e599d 100644
--- a/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLList.java
+++ b/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLList.java
@@ -1,824 +1,829 @@
/* -*- Mode: java; t... | false | true | public void put(int index, Scriptable start, Object value) {
Object parent = Undefined.instance;
// Convert text into XML if needed.
XMLObject xmlValue;
// Special-case checks for undefined and null
if (value == null) {
value = "null";
} else if (value in... | public void put(int index, Scriptable start, Object value) {
Object parent = Undefined.instance;
// Convert text into XML if needed.
XMLObject xmlValue;
// Special-case checks for undefined and null
if (value == null) {
value = "null";
} else if (value in... |
diff --git a/src/java/server/org/jor/rest/report/report/InsiderActivityLast14Days.java b/src/java/server/org/jor/rest/report/report/InsiderActivityLast14Days.java
index e6f9d6f..31d6e2e 100644
--- a/src/java/server/org/jor/rest/report/report/InsiderActivityLast14Days.java
+++ b/src/java/server/org/jor/rest/report/repor... | true | true | public DataTable getData()
{
DataService service = DataService.getDataService("metrics-postgres");
String sql =
"SELECT email," +
" (COUNT(event_type_id) - SUM ( CASE WHEN (event_type_id = 16) THEN 1 ELSE 0 END)) AS activity_count,"
+ " SUM (... | public DataTable getData()
{
DataService service = DataService.getDataService("metrics-postgres");
String sql =
"SELECT email," +
" (COUNT(event_type_id) - SUM ( CASE WHEN (event_type_id = 16) THEN 1 ELSE 0 END)) AS activity_count,"
+ " SUM (... |
diff --git a/Terminal/src/device/Device.java b/Terminal/src/device/Device.java
index de8b4ad..3eaefd1 100644
--- a/Terminal/src/device/Device.java
+++ b/Terminal/src/device/Device.java
@@ -1,39 +1,40 @@
package device;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Vector;
public clas... | true | true | public Device(Hashtable<String, Object> device_info) {
props = device_info;
ID = (String) device_info.get("UPnP.device.UDN");
Hashtable<String, ArrayList<Object>> Services =
(Hashtable<String, ArrayList<Object>>) device_info.get("Device Services");
for (String key : Services.keySet()) {
services.add(new... | public Device(Hashtable<String, Object> device_info) {
props = device_info;
ID = (String) device_info.get("UPnP.device.UDN");
Hashtable<String, ArrayList<Object>> Services =
(Hashtable<String, ArrayList<Object>>) device_info.get("Device Services");
for (String key : Services.keySet()) {
services.add(new... |
diff --git a/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java b/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java
index 9c8daa7d..d7df3b28 100644
--- a/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java
+++ b/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java
@@ -1,721 +1,713 @@
... | false | true | private InputSource getInputSource(XSLTC xsltc, Source source)
throws TransformerConfigurationException {
InputSource input = null;
String systemId = source.getSystemId();
if (systemId == null) {
systemId = "";
}
try {
// Try to get InputSource from SAXSource input
if (source instanceof SAXS... | private InputSource getInputSource(XSLTC xsltc, Source source)
throws TransformerConfigurationException {
InputSource input = null;
String systemId = source.getSystemId();
if (systemId == null) ystemId = "";
try {
// Try to get InputSource from SAXSource input
if (source instanceof SAXSource) {
... |
diff --git a/openejb0/src/main/org/openejb/core/entity/EntityEjbHomeHandler.java b/openejb0/src/main/org/openejb/core/entity/EntityEjbHomeHandler.java
index b62601e10..bdf607f1e 100644
--- a/openejb0/src/main/org/openejb/core/entity/EntityEjbHomeHandler.java
+++ b/openejb0/src/main/org/openejb/core/entity/EntityEjbHome... | true | true | protected Object findX(Method method, Object[] args, Object proxy) throws Throwable {
Object retValue = container.invoke(deploymentID,method,args,null, getThreadSpecificSecurityIdentity());
if ( retValue instanceof java.util.Collection ) {
Object [] proxyInfos = ((java.util.Collection)... | protected Object findX(Method method, Object[] args, Object proxy) throws Throwable {
Object retValue = container.invoke(deploymentID,method,args,null, getThreadSpecificSecurityIdentity());
if ( retValue instanceof java.util.Collection ) {
Object [] proxyInfos = ((java.util.Collection)... |
diff --git a/src/jp/mitukiii/tumblife/parser/TLPostParser.java b/src/jp/mitukiii/tumblife/parser/TLPostParser.java
index 41b8112..63b297d 100644
--- a/src/jp/mitukiii/tumblife/parser/TLPostParser.java
+++ b/src/jp/mitukiii/tumblife/parser/TLPostParser.java
@@ -1,120 +1,124 @@
package jp.mitukiii.tumblife.parser;
im... | true | true | public List<TLPost> parse()
throws NumberFormatException, XmlPullParserException, IOException
{
List<TLPost> posts = new ArrayList<TLPost>(50);
TLPost post = null;
for (int e = parser.getEventType(); e != XmlPullParser.END_DOCUMENT; e = parser.next()) {
String tag = parser.getName();
if ... | public List<TLPost> parse()
throws NumberFormatException, XmlPullParserException, IOException
{
List<TLPost> posts = new ArrayList<TLPost>(50);
TLPost post = null;
for (int e = parser.getEventType(); e != XmlPullParser.END_DOCUMENT; e = parser.next()) {
String tag = parser.getName();
if ... |
diff --git a/mydlp-ui-dao/src/main/java/com/mydlp/ui/schema/granules/_000_00026_Config_Icap.java b/mydlp-ui-dao/src/main/java/com/mydlp/ui/schema/granules/_000_00026_Config_Icap.java
index 3fabddc4..0f2fa92d 100644
--- a/mydlp-ui-dao/src/main/java/com/mydlp/ui/schema/granules/_000_00026_Config_Icap.java
+++ b/mydlp-ui-... | false | true | protected void callback() {
Config icapReqModPath = new Config();
icapReqModPath.setKey("icap_reqmod_path");
icapReqModPath.setValue("\\dlp");
Config icapRespModPath = new Config();
icapRespModPath.setKey("icap_respmod_path");
icapRespModPath.setValue("dlp-respmod");
Config icapMaxConnections = new Co... | protected void callback() {
Config icapReqModPath = new Config();
icapReqModPath.setKey("icap_reqmod_path");
icapReqModPath.setValue("/dlp");
Config icapRespModPath = new Config();
icapRespModPath.setKey("icap_respmod_path");
icapRespModPath.setValue("/dlp-respmod");
Config icapMaxConnections = new Co... |
diff --git a/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/custom/ExceptionMessageMapper.java b/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/custom/ExceptionMessageMapper.java... | true | true | public static String getNonTechnicalMessage(String message) {
String simpleMessage = message;
if (message.contains("Only one resource can be designated as default"))
{
simpleMessage = "You have defined more than one resources where no uri-mapping(or uri-template) is provided or with empty uir-maping(or uri... | public static String getNonTechnicalMessage(String message) {
String simpleMessage = message;
if (message.contains("Only one resource can be designated as default"))
{
simpleMessage = "You have defined more than one resources where no uri-mapping(or uri-template) is provided or with empty uri-maping(or uri... |
diff --git a/lib/src/main/java/com/github/fhirschmann/clozegen/lib/annotators/GapAnnotator.java b/lib/src/main/java/com/github/fhirschmann/clozegen/lib/annotators/GapAnnotator.java
index 6c54935..01202d7 100644
--- a/lib/src/main/java/com/github/fhirschmann/clozegen/lib/annotators/GapAnnotator.java
+++ b/lib/src/main/j... | false | true | public void process(JCas jcas) throws AnalysisEngineProcessException {
for (Iterator<Annotation> i = jcas.getAnnotationIndex(getType()).iterator(); i.hasNext();) {
Annotation subject = i.next();
GapAnnotation annotation = new GapAnnotation(jcas);
annotation.setBegin(subj... | public void process(final JCas jcas) throws AnalysisEngineProcessException {
for (Iterator<Annotation> i = jcas.getAnnotationIndex(
getType()).iterator(); i.hasNext();) {
Annotation subject = i.next();
GapAnnotation annotation = new GapAnnotation(jcas);
a... |
diff --git a/Core/src/com/serotonin/m2m2/web/dwr/BaseDwr.java b/Core/src/com/serotonin/m2m2/web/dwr/BaseDwr.java
index cafc55b11..82c04fd0d 100644
--- a/Core/src/com/serotonin/m2m2/web/dwr/BaseDwr.java
+++ b/Core/src/com/serotonin/m2m2/web/dwr/BaseDwr.java
@@ -1,679 +1,679 @@
/*
Copyright (C) 2006-2011 Serotonin ... | false | true | public Map<String, Object> doLongPoll(int pollSessionId) {
Map<String, Object> response = new HashMap<String, Object>();
HttpServletRequest httpRequest = WebContextFactory.get().getHttpServletRequest();
User user = Common.getUser(httpRequest);
EventDao eventDao = new EventDao();
... | public Map<String, Object> doLongPoll(int pollSessionId) {
Map<String, Object> response = new HashMap<String, Object>();
HttpServletRequest httpRequest = WebContextFactory.get().getHttpServletRequest();
User user = Common.getUser(httpRequest);
EventDao eventDao = new EventDao();
... |
diff --git a/lang/src/test/java/net/openhft/lang/testing/RunningMinimumTest.java b/lang/src/test/java/net/openhft/lang/testing/RunningMinimumTest.java
index a1e9a6233..4d4c6f5b7 100644
--- a/lang/src/test/java/net/openhft/lang/testing/RunningMinimumTest.java
+++ b/lang/src/test/java/net/openhft/lang/testing/RunningMini... | true | true | public void testSample() throws Exception {
for (int k = 0; k < 1000; k++) {
for (long delta : new long[]{0, Integer.MIN_VALUE, Integer.MAX_VALUE}) {
RunningMinimum rm = new RunningMinimum(50 * 1000);
int j;
for (j = 0; j < 40 * 1000000; j += 10000... | public void testSample() throws Exception {
for (int k = 0; k < 1000; k++) {
for (long delta : new long[]{0, Integer.MIN_VALUE, Integer.MAX_VALUE}) {
RunningMinimum rm = new RunningMinimum(50 * 1000);
int j;
for (j = 0; j < 50 * 1000000; j += 10000... |
diff --git a/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/editor/validation/MarkerCreator.java b/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/editor/validation/MarkerCreator.java
index e98385d11..48dce2ea6 100644
--- a/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core... | true | true | public void createMarker(Issue issue, IResource resource, String markerId) throws CoreException {
IMarker marker = resource.createMarker(markerId);
String lineNR = "";
if (issue.getLineNumber() != null) {
lineNR = "line: " + issue.getLineNumber() + " ";
}
marker.setAttribute(IMarker.LOCATION, lineNR + res... | public void createMarker(Issue issue, IResource resource, String markerId) throws CoreException {
IMarker marker = resource.createMarker(markerId);
String lineNR = "";
if (issue.getLineNumber() != null) {
lineNR = "line: " + issue.getLineNumber() + " ";
}
marker.setAttribute(IMarker.LOCATION, lineNR + res... |
diff --git a/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java b/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java
index ab2c3c2..3091e3f 100644
--- a/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Es... | true | true | protected User getPlayer(Server server, String[] args, int pos) throws NoSuchFieldException, NotEnoughArgumentsException
{
if (args.length <= pos) throw new NotEnoughArgumentsException();
List<Player> matches = server.matchPlayer(args[pos]);
if (matches.size() < 1) throw new NoSuchFieldException(Util.i18n("noPl... | protected User getPlayer(Server server, String[] args, int pos) throws NoSuchFieldException, NotEnoughArgumentsException
{
if (args.length <= pos) throw new NotEnoughArgumentsException();
List<Player> matches = server.matchPlayer(args[pos]);
if (matches.size() < 1) throw new NoSuchFieldException(Util.i18n("play... |
diff --git a/src/test/Test03.java b/src/test/Test03.java
index d306a96..43ece58 100644
--- a/src/test/Test03.java
+++ b/src/test/Test03.java
@@ -1,72 +1,72 @@
package test;
import java.sql.*;
public class Test03 implements Test.Case
{
private String error;
private Exception ex;
public boolean r... | false | true | public boolean run() throws Exception {
int res;
Class.forName("org.sqlite.JDBC");
Connection conn = DriverManager.getConnection(
"jdbc:sqlite:build/test/test.db");
ResultSet rs;
Statement stat = conn.createStatement();
// test empty ResultSets
r... | public boolean run() throws Exception {
int res;
Class.forName("org.sqlite.JDBC");
Connection conn = DriverManager.getConnection(
"jdbc:sqlite:build/test/test.db");
ResultSet rs;
Statement stat = conn.createStatement();
// test empty ResultSets
r... |
diff --git a/SimplyVanish/src/asofold/simplyvanish/SimplyVanishCore.java b/SimplyVanish/src/asofold/simplyvanish/SimplyVanishCore.java
index aeac8c8..a85df2c 100644
--- a/SimplyVanish/src/asofold/simplyvanish/SimplyVanishCore.java
+++ b/SimplyVanish/src/asofold/simplyvanish/SimplyVanishCore.java
@@ -1,791 +1,793 @@
pa... | true | true | public void setFlags(String playerName, String[] args, int startIndex, CommandSender sender, boolean hasBypass, boolean other, boolean save) {
playerName = playerName.trim().toLowerCase();
if (playerName.isEmpty()) return;
final String permBase = "simplyvanish.flags.set."+(other?"other":"self"); // bypass permi... | public void setFlags(String playerName, String[] args, int startIndex, CommandSender sender, boolean hasBypass, boolean other, boolean save) {
playerName = playerName.trim().toLowerCase();
if (playerName.isEmpty()) return;
final String permBase = "simplyvanish.flags.set."+(other?"other":"self"); // bypass permi... |
diff --git a/src/org/mozilla/javascript/Interpreter.java b/src/org/mozilla/javascript/Interpreter.java
index 0673433c..189d6193 100644
--- a/src/org/mozilla/javascript/Interpreter.java
+++ b/src/org/mozilla/javascript/Interpreter.java
@@ -1,3042 +1,3041 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basi... | true | true | static Object interpret(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args, double[] argsDbl,
int argShift, int argCount,
NativeFunction fnOrScript,
InterpreterData idata)
throws Java... | static Object interpret(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args, double[] argsDbl,
int argShift, int argCount,
NativeFunction fnOrScript,
InterpreterData idata)
throws Java... |
diff --git a/src/main/java/hu/ppke/itk/nlpg/purepos/common/SpecTokenMatcher.java b/src/main/java/hu/ppke/itk/nlpg/purepos/common/SpecTokenMatcher.java
index 8e60b41..768b173 100644
--- a/src/main/java/hu/ppke/itk/nlpg/purepos/common/SpecTokenMatcher.java
+++ b/src/main/java/hu/ppke/itk/nlpg/purepos/common/SpecTokenMatc... | true | true | public SpecTokenMatcher() {
addPattern("@CARD", "^[0-9]*$");
addPattern("@CARDPUNCT", "^[0-9]+\\.$");
addPattern("@CARDSEPS", "^[0-9\\.,:-]+[0-9]+$");
addPattern("@CARDSUFFIX", "^[0-9]+[a-zA-Z][a-zA-Z]?[a-zA-Z]?$");
addPattern("@HTMLENTITY", "^&[^;]+;?$");
addPattern("@PUNCT", "^\\pP+$");
}
| public SpecTokenMatcher() {
addPattern("@CARD", "^[0-9]+$");
addPattern("@CARDPUNCT", "^[0-9]+\\.$");
addPattern("@CARDSEPS", "^[0-9\\.,:-]+[0-9]+$");
addPattern("@CARDSUFFIX", "^[0-9]+[a-zA-Z][a-zA-Z]?[a-zA-Z]?$");
addPattern("@HTMLENTITY", "^&[^;]+;?$");
addPattern("@PUNCT", "^\\pP+$");
}
|
diff --git a/ide/eclipse/esb/org.wso2.developerstudio.eclipse.esb/src/org/wso2/developerstudio/eclipse/esb/mediators/impl/SequenceMediatorImpl.java b/ide/eclipse/esb/org.wso2.developerstudio.eclipse.esb/src/org/wso2/developerstudio/eclipse/esb/mediators/impl/SequenceMediatorImpl.java
index d7644a853..c1b20657c 100644
-... | true | true | protected void doLoad(Element self) throws Exception {
switch (getCurrentEsbVersion()) {
case ESB301:
if (self.hasAttribute("key")) {
getSequenceKey().load(self);
} else {
throw new Exception("Expected sequence key.");
}
break;
case ESB400:
if (self.hasAttribute("key")) {
getSequenceK... | protected void doLoad(Element self) throws Exception {
switch (getCurrentEsbVersion()) {
case ESB301:
if (self.hasAttribute("key")) {
getSequenceKey().load(self);
} else {
throw new Exception("Expected sequence key.");
}
break;
case ESB400:
if (self.hasAttribute("key")) {
getSequenceK... |
diff --git a/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/directory/DirectoryEntryOutputRenderer.java b/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/directory/DirectoryEntryOutputRenderer.java
index bd718291..0ed97e47 100644
--- a/nuxeo-platform-ui-web/src/main/java/org/nuxeo/e... | true | true | public void encodeBegin(FacesContext context, UIComponent component) {
DirectoryEntryOutputComponent dirComponent = (DirectoryEntryOutputComponent) component;
String entryId = (String) dirComponent.getValue();
if (entryId == null) {
// BBB
entryId = dirComponent.getEn... | public void encodeBegin(FacesContext context, UIComponent component) {
DirectoryEntryOutputComponent dirComponent = (DirectoryEntryOutputComponent) component;
String entryId = (String) dirComponent.getValue();
if (entryId == null) {
// BBB
entryId = dirComponent.getEn... |
diff --git a/jsword/java/jswordtest/JSwordAllTests.java b/jsword/java/jswordtest/JSwordAllTests.java
index 67455596..d79d631b 100644
--- a/jsword/java/jswordtest/JSwordAllTests.java
+++ b/jsword/java/jswordtest/JSwordAllTests.java
@@ -1,47 +1,48 @@
// package default;
import junit.framework.Test;
import junit.fr... | true | true | public static Test suite()
{
TestSuite suite = new TestSuite();
suite.addTestSuite(org.crosswire.jsword.book.jdbc.TestJDBCBible.class);
suite.addTestSuite(org.crosswire.jsword.book.raw.TestRawBible.class);
suite.addTestSuite(org.crosswire.jsword.book.ser.TestSerBible.class);
... | public static Test suite()
{
TestSuite suite = new TestSuite();
suite.addTestSuite(org.crosswire.jsword.book.jdbc.TestJDBCBible.class);
suite.addTestSuite(org.crosswire.jsword.book.raw.TestRawBible.class);
suite.addTestSuite(org.crosswire.jsword.book.ser.TestSerBible.class);
... |
diff --git a/basex-core/src/main/java/org/basex/query/expr/Try.java b/basex-core/src/main/java/org/basex/query/expr/Try.java
index b0ab74ea3..883edbbb6 100644
--- a/basex-core/src/main/java/org/basex/query/expr/Try.java
+++ b/basex-core/src/main/java/org/basex/query/expr/Try.java
@@ -1,161 +1,162 @@
package org.basex.... | true | true | public Expr inline(final QueryContext ctx, final VarScope scp, final Var v, final Expr e)
throws QueryException {
boolean change = false;
try {
final Expr sub = expr.inline(ctx, scp, v, e);
if(sub != null) {
if(sub.isValue()) return optPre(sub, ctx);
expr = sub;
chan... | public Expr inline(final QueryContext ctx, final VarScope scp, final Var v, final Expr e)
throws QueryException {
boolean change = false;
try {
final Expr sub = expr.inline(ctx, scp, v, e);
if(sub != null) {
if(sub.isValue()) return optPre(sub, ctx);
expr = sub;
chan... |
diff --git a/museumassault/MuseumAssault.java b/museumassault/MuseumAssault.java
index 4363c12..8ccb42e 100644
--- a/museumassault/MuseumAssault.java
+++ b/museumassault/MuseumAssault.java
@@ -1,84 +1,87 @@
package museumassault;
import java.util.Random;
import museumassault.monitor.Corridor;
import museumassault... | false | true | public static void main(String[] args)
{
// Configurable params
int nrChiefs = 1;
int nrTeams = 2;
int nrThievesPerTeam = 3;
int nrRooms = 5;
int maxDistanceBetweenThieves = 1;
String logFileName = "log.txt";
int totalThieves = nrTeams * nrThievesPer... | public static void main(String[] args)
{
// Configurable params
int nrChiefs = 1;
int nrTeams = 4;
int nrThievesPerTeam = 3;
int nrRooms = 5;
int maxDistanceBetweenThieves = 1;
int maxPositionsInCorridor = 30;
int maxPowerPerThief = 5;
int max... |
diff --git a/src/test/TestCar01.java b/src/test/TestCar01.java
index e84bb71..c18764a 100644
--- a/src/test/TestCar01.java
+++ b/src/test/TestCar01.java
@@ -1,37 +1,37 @@
package test;
import com.github.kenji0717.a3cs.*;
import javax.vecmath.Vector3d;
public class TestCar01 extends RaceCarBase {
public voi... | true | true | public void exec() {
Vector3d loc = getLoc();//現在の車の座標
Vector3d point = getPoint(13.0);//前方13メートルの座標
Vector3d dir = getDirection(13.0);//前方13メートルの方向
point.sub(loc);//車から見たポイントの方向
point.normalize();//長さを1に正規化
Vector3d left = getUnitVecX();//車の左向き方向
Vec... | public void exec() {
Vector3d loc = getLoc();//現在の車の座標
Vector3d point = getPoint(13.0);//前方13メートルの座標
Vector3d dir = getDirection(13.0);//前方13メートルの方向
point.sub(loc);//車から見たポイントの方向
point.normalize();//長さを1に正規化
Vector3d left = getUnitVecX();//車の左向き方向
Vec... |
diff --git a/src/java/com/idega/content/themes/presentation/ThemesSliderViewer.java b/src/java/com/idega/content/themes/presentation/ThemesSliderViewer.java
index 9ef31fae..434e5c08 100644
--- a/src/java/com/idega/content/themes/presentation/ThemesSliderViewer.java
+++ b/src/java/com/idega/content/themes/presentation/T... | false | true | public void main(IWContext iwc) {
IWBundle bundle = getBundle(iwc);
IWResourceBundle iwrb = getResourceBundle(iwc);
// Main container
Layer container = new Layer();
container.setId(getMainId());
container.setStyleClass(getMainStyleClass());
if (hiddenOnLoad) {
container.setStyleAttribute("display",... | public void main(IWContext iwc) {
IWBundle bundle = getBundle(iwc);
IWResourceBundle iwrb = getResourceBundle(iwc);
// Main container
Layer container = new Layer();
container.setId(getMainId());
container.setStyleClass(getMainStyleClass());
if (hiddenOnLoad) {
container.setStyleAttribute("display",... |
diff --git a/TheHolyFlint/src/me/reddy360/theholyflint/listeners/WorldListener.java b/TheHolyFlint/src/me/reddy360/theholyflint/listeners/WorldListener.java
index 01117cf..bd696bd 100644
--- a/TheHolyFlint/src/me/reddy360/theholyflint/listeners/WorldListener.java
+++ b/TheHolyFlint/src/me/reddy360/theholyflint/listener... | false | true | private void doSignEvent(String line, Player player, Location signLocation) {
if(line.startsWith("Launch:")){
if(line.split(":").length == 1){
return;
}
player.getWorld().createExplosion(player.getLocation(), 0F);
Location location = player.getLocation().clone();
location.setPitch(-90);
Vector ... | private void doSignEvent(String line, Player player, Location signLocation) {
if(line.startsWith("Launch:")){
if(line.split(":").length == 1){
return;
}
player.getWorld().createExplosion(player.getLocation(), 0F);
Location location = player.getLocation().clone();
location.setPitch(-90);
Vector ... |
diff --git a/com.versionone.taskview/src/com/versionone/taskview/views/ProjectSelectDialog.java b/com.versionone.taskview/src/com/versionone/taskview/views/ProjectSelectDialog.java
index 6d68122..5c1fcfa 100644
--- a/com.versionone.taskview/src/com/versionone/taskview/views/ProjectSelectDialog.java
+++ b/com.versionone... | false | true | private void populateTree() {
if(_rootNode.hasChildren()) {
IProjectTreeNode[] rootNodes = _rootNode.getChildren();
for(int i=0; i<rootNodes.length;++i) {
final TreeItem treeItem = new TreeItem(this.projectTree, SWT.NONE, i);
treeItem.setText(rootNodes[i].getName());
treeItem.setData(rootNodes[i]... | private void populateTree() {
if(_rootNode.hasChildren()) {
IProjectTreeNode[] rootNodes = _rootNode.getChildren();
for(int i=0; i<rootNodes.length;++i) {
final TreeItem treeItem = new TreeItem(this.projectTree, SWT.NONE, i);
treeItem.setText(rootNodes[i].getName());
treeItem.setData(rootNodes[i]... |
diff --git a/src/hdfs/org/apache/hadoop/hdfs/server/namenode/GetImageServlet.java b/src/hdfs/org/apache/hadoop/hdfs/server/namenode/GetImageServlet.java
index b92e0d0..dda31d1 100644
--- a/src/hdfs/org/apache/hadoop/hdfs/server/namenode/GetImageServlet.java
+++ b/src/hdfs/org/apache/hadoop/hdfs/server/namenode/GetImage... | true | true | public void doGet(HttpServletRequest request,
HttpServletResponse response
) throws ServletException, IOException {
Map<String,String[]> pmap = request.getParameterMap();
try {
ServletContext context = getServletContext();
FSImage nnImage = (FSImage)context.... | public void doGet(HttpServletRequest request,
HttpServletResponse response
) throws ServletException, IOException {
Map<String,String[]> pmap = request.getParameterMap();
try {
ServletContext context = getServletContext();
FSImage nnImage = (FSImage)context.... |
diff --git a/src/main/java/org/topstack/simianarmy/basic/SimplerDbRecorder.java b/src/main/java/org/topstack/simianarmy/basic/SimplerDbRecorder.java
index 6cac75e..13bffd0 100644
--- a/src/main/java/org/topstack/simianarmy/basic/SimplerDbRecorder.java
+++ b/src/main/java/org/topstack/simianarmy/basic/SimplerDbRecorder.... | false | true | public List<Event> findEvents(Map<String, String> query, Date after) {
init();
List<Event> foundEvents = new ArrayList<Event>();
for (Event evt : eventMap.tailMap(toKey(after)).values()) {
boolean matched = true;
for (Map.Entry<String, String> pair : query.entrySet())... | public List<Event> findEvents(Map<String, String> query, Date after) {
init();
List<Event> foundEvents = new ArrayList<Event>();
for (Event evt : eventMap.tailMap(toKey(after)).values()) {
boolean matched = true;
for (Map.Entry<String, String> pair : query.entrySet())... |
diff --git a/entitlement/src/test/java/com/ning/billing/entitlement/api/TestDefaultSubscriptionApi.java b/entitlement/src/test/java/com/ning/billing/entitlement/api/TestDefaultSubscriptionApi.java
index 6856ec918..6e610dfb5 100644
--- a/entitlement/src/test/java/com/ning/billing/entitlement/api/TestDefaultSubscriptionA... | true | true | public void testWithMultipleBundle() throws AccountApiException, SubscriptionApiException, EntitlementApiException {
final String externalKey = "fooXXX";
final LocalDate initialDate = new LocalDate(2013, 8, 7);
clock.setDay(initialDate);
final Account account = accountApi.createAcc... | public void testWithMultipleBundle() throws AccountApiException, SubscriptionApiException, EntitlementApiException {
final String externalKey = "fooXXX";
final LocalDate initialDate = new LocalDate(2013, 8, 7);
clock.setDay(initialDate);
final Account account = accountApi.createAcc... |
diff --git a/src/com/wolvencraft/prison/mines/cmd/EditCommand.java b/src/com/wolvencraft/prison/mines/cmd/EditCommand.java
index 283dd17..626f533 100644
--- a/src/com/wolvencraft/prison/mines/cmd/EditCommand.java
+++ b/src/com/wolvencraft/prison/mines/cmd/EditCommand.java
@@ -1,227 +1,227 @@
package com.wolvencraft.pr... | true | true | public boolean run(String[] args) {
Language language = PrisonMine.getLanguage();
Mine curMine = PrisonMine.getCurMine();
if(curMine == null
&& !args[0].equalsIgnoreCase("edit")
&& !args[0].equalsIgnoreCase("delete")) {
Message.sendFormattedError(language.ERROR_MINENOTSELECTED);
return false;
... | public boolean run(String[] args) {
Language language = PrisonMine.getLanguage();
Mine curMine = PrisonMine.getCurMine();
if(curMine == null
&& !args[0].equalsIgnoreCase("edit")
&& !args[0].equalsIgnoreCase("delete")) {
Message.sendFormattedError(language.ERROR_MINENOTSELECTED);
return false;
... |
diff --git a/src/CS565/RationalTestRun.java b/src/CS565/RationalTestRun.java
index dfa08dd..4a4c6fd 100644
--- a/src/CS565/RationalTestRun.java
+++ b/src/CS565/RationalTestRun.java
@@ -1,58 +1,58 @@
package CS565;
public class RationalTestRun {
public static void main(String[] args) {
// default ctor return... | false | true | public static void main(String[] args) {
// default ctor returns 1/1
Rational r = new Rational();
puts("default ctor returns 1/1: "+ r.toFractionString() + " or " + r.toFloatString());
// constructor can take numerator, denominator to initialize
Rational half = new Rational(1, 2);
puts("ctor takes numerat... | public static void main(String[] args) {
// default ctor returns 1/1
Rational r = new Rational();
puts("default ctor returns 1/1: \n\t"+ r.toFractionString() + " or " + r.toFloatString());
// constructor can take numerator, denominator to initialize
Rational half = new Rational(1, 2);
puts("ctor takes num... |
diff --git a/ananya-reference-data-flw/src/test/java/org/motechproject/ananya/referencedata/flw/repository/AllSyncJobsTest.java b/ananya-reference-data-flw/src/test/java/org/motechproject/ananya/referencedata/flw/repository/AllSyncJobsTest.java
index 4aa0dc5..1a8f449 100644
--- a/ananya-reference-data-flw/src/test/java... | true | true | public void shouldScheduleJobToAddFLWToQueue() {
AllSyncJobs allSyncJobs = new AllSyncJobs(schedulerService, referenceDataProperteies);
when(referenceDataProperteies.get("cronExpression")).thenReturn("* * * * *");
allSyncJobs.addFrontLineWorkerSyncJob();
ArgumentCaptor<CronSchedula... | public void shouldScheduleJobToAddFLWToQueue() {
AllSyncJobs allSyncJobs = new AllSyncJobs(schedulerService, referenceDataProperteies);
when(referenceDataProperteies.get("scheduler.cron.expression")).thenReturn("* * * * * ?");
allSyncJobs.addFrontLineWorkerSyncJob();
ArgumentCaptor... |
diff --git a/hazelcast-client/src/main/java/com/hazelcast/client/connection/SmartClientConnectionManager.java b/hazelcast-client/src/main/java/com/hazelcast/client/connection/SmartClientConnectionManager.java
index 3ea83f3ad8..ff0daf3b61 100644
--- a/hazelcast-client/src/main/java/com/hazelcast/client/connection/SmartC... | true | true | public Connection getConnection(Address address) throws IOException {
checkLive();
if (address == null) {
throw new IllegalArgumentException("Target address is required!");
}
final ObjectPool<ConnectionWrapper> pool = getConnectionPool(address);
if (pool == null){... | public Connection getConnection(Address address) throws IOException {
checkLive();
if (address == null) {
throw new IllegalArgumentException("Target address is required!");
}
final ObjectPool<ConnectionWrapper> pool = getConnectionPool(address);
if (pool == null){... |
diff --git a/test/com/eteks/sweethome3d/junit/ImportedTextureWizardTest.java b/test/com/eteks/sweethome3d/junit/ImportedTextureWizardTest.java
index 3063821f..ab972836 100644
--- a/test/com/eteks/sweethome3d/junit/ImportedTextureWizardTest.java
+++ b/test/com/eteks/sweethome3d/junit/ImportedTextureWizardTest.java
@@ -1... | true | true | public void testImportedTextureWizard() throws ComponentSearchException, InterruptedException,
NoSuchFieldException, IllegalAccessException, InvocationTargetException {
String language = Locale.getDefault().getLanguage();
final UserPreferences preferences = new FileUserPreferences() {
@Override... | public void testImportedTextureWizard() throws ComponentSearchException, InterruptedException,
NoSuchFieldException, IllegalAccessException, InvocationTargetException {
String language = Locale.getDefault().getLanguage();
final UserPreferences preferences = new FileUserPreferences() {
@Override... |
diff --git a/src/org/gridlab/gridsphere/provider/portlet/tags/jsr/NamespaceTag.java b/src/org/gridlab/gridsphere/provider/portlet/tags/jsr/NamespaceTag.java
index 472076e14..e92af3f13 100644
--- a/src/org/gridlab/gridsphere/provider/portlet/tags/jsr/NamespaceTag.java
+++ b/src/org/gridlab/gridsphere/provider/portlet/ta... | true | true | public int doStartTag() throws JspException {
RenderResponse renderResponse = (RenderResponse) pageContext.getAttribute("renderResponse", PageContext.PAGE_SCOPE);
String namespace = renderResponse.getNamespace();
JspWriter writer = pageContext.getOut();
try {
writer.print... | public int doStartTag() throws JspException {
RenderResponse renderResponse = (RenderResponse) pageContext.getAttribute("renderResponse", PageContext.PAGE_SCOPE);
String namespace = renderResponse.getNamespace();
JspWriter writer = pageContext.getOut();
try {
writer.print... |
diff --git a/library/src/com/androidformenhancer/validator/AlphaNumValidator.java b/library/src/com/androidformenhancer/validator/AlphaNumValidator.java
index 01611f9..b7d8985 100644
--- a/library/src/com/androidformenhancer/validator/AlphaNumValidator.java
+++ b/library/src/com/androidformenhancer/validator/AlphaNumVa... | true | true | public String validate(final Field field) {
final String value = getValueAsString(field);
AlphaNum alphaNum = field.getAnnotation(AlphaNum.class);
if (alphaNum != null) {
final Class<?> type = field.getType();
if (type.equals(String.class)) {
if (Text... | public String validate(final Field field) {
final String value = getValueAsString(field);
AlphaNum alphaNum = field.getAnnotation(AlphaNum.class);
if (alphaNum != null) {
final Class<?> type = field.getType();
if (type.equals(String.class)) {
if (Text... |
diff --git a/code/src/ca/mcgill/dpm/winter2013/group6/localization/SmartLightLocalizer.java b/code/src/ca/mcgill/dpm/winter2013/group6/localization/SmartLightLocalizer.java
index 9c0ecd4..6dde5d7 100644
--- a/code/src/ca/mcgill/dpm/winter2013/group6/localization/SmartLightLocalizer.java
+++ b/code/src/ca/mcgill/dpm/win... | true | true | public void localize() {
if (3 <= count) {
Sound.beepSequence();
count = 0;
return;
}
navigator.face(45);
odometer.setPosition(new double[] { 0, 0, 0 }, new boolean[] { true, true, true });
lightSensor.setFloodlight(true);
int lineCounter = 0;
double[] raw = new double[4... | public void localize() {
if (3 <= count) {
Sound.beepSequence();
count = 0;
return;
}
navigator.face(45);
odometer.setPosition(new double[] { 0, 0, 0 }, new boolean[] { true, true, true });
lightSensor.setFloodlight(true);
int lineCounter = 0;
double[] raw = new double[4... |
diff --git a/src/me/libraryaddict/Hungergames/Managers/KitManager.java b/src/me/libraryaddict/Hungergames/Managers/KitManager.java
index 47a01de..e81d2b3 100644
--- a/src/me/libraryaddict/Hungergames/Managers/KitManager.java
+++ b/src/me/libraryaddict/Hungergames/Managers/KitManager.java
@@ -1,292 +1,296 @@
package me... | true | true | public ItemStack[] parseItem(String string) {
if (string == null)
return new ItemStack[] { null };
String[] args = string.split(" ");
try {
double amount = Integer.parseInt(args[2]);
ItemStack[] items = new ItemStack[(int) Math.ceil(amount / 64)];
... | public ItemStack[] parseItem(String string) {
if (string == null)
return new ItemStack[] { null };
String[] args = string.split(" ");
try {
double amount = Integer.parseInt(args[2]);
ItemStack[] items = new ItemStack[(int) Math.ceil(amount / 64)];
... |
diff --git a/src/uk/ac/gla/dcs/tp3/w/Main.java b/src/uk/ac/gla/dcs/tp3/w/Main.java
index b84e034..0a68e38 100644
--- a/src/uk/ac/gla/dcs/tp3/w/Main.java
+++ b/src/uk/ac/gla/dcs/tp3/w/Main.java
@@ -1,52 +1,52 @@
package uk.ac.gla.dcs.tp3.w;
import java.io.File;
import java.util.HashMap;
import javax.swing.SwingU... | true | true | public static void main(String[] args) {
Parser p = null;
File source;
if (args.length == 0)
source = new File(DEFAULT_FILE);
else
source = new File(args[0]);
if (source.exists())
p = new Parser(source);
else
System.err.println("File not found.");
if (p == null)
return;
final HashMap<St... | public static void main(String[] args) {
Parser p = null;
File source;
if (args.length == 0)
source = new File(DEFAULT_FILE);
else
source = new File(args[0]);
if (source.exists())
p = new Parser(source);
else
System.err.println("File not found.");
if (p == null)
return;
final HashMap<St... |
diff --git a/ha/src/test/java/slavetest/AbstractHaTest.java b/ha/src/test/java/slavetest/AbstractHaTest.java
index d6e87bfb..68c5879f 100644
--- a/ha/src/test/java/slavetest/AbstractHaTest.java
+++ b/ha/src/test/java/slavetest/AbstractHaTest.java
@@ -1,813 +1,812 @@
/**
* Copyright (c) 2002-2011 "Neo Technology,"
... | true | true | public void indexingIsSynchronizedBetweenInstances() throws Exception
{
initializeDbs( 2 );
long id = executeJobOnMaster( new CommonJobs.CreateNodeAndIndexJob( "name", "Morpheus" ) );
pullUpdates();
long id2 = executeJobOnMaster( new CommonJobs.CreateNodeAndIndexJob( "name", "Tri... | public void indexingIsSynchronizedBetweenInstances() throws Exception
{
initializeDbs( 2 );
long id = executeJobOnMaster( new CommonJobs.CreateNodeAndIndexJob( "name", "Morpheus" ) );
pullUpdates();
long id2 = executeJobOnMaster( new CommonJobs.CreateNodeAndIndexJob( "name", "Tri... |
diff --git a/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/DatasourceComponent.java b/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/DatasourceComponent.java
index 4a7c4cc8f3..68c0bce802 100644
--- a/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/DatasourceComponent.java
+++ b/jboss-as... | true | true | public OperationResult invokeOperation(String operationName,
Configuration parameters) throws Exception {
OperationResult result = new OperationResult();
ASConnection connection = getASConnection();
Operation op;
if (operationName.equals("... | public OperationResult invokeOperation(String operationName,
Configuration parameters) throws Exception {
OperationResult result = new OperationResult();
ASConnection connection = getASConnection();
Operation op;
if (operationName.equals("... |
diff --git a/src/com/orange/place/api/service/ServiceHandler.java b/src/com/orange/place/api/service/ServiceHandler.java
index 7bd51b2..059b109 100644
--- a/src/com/orange/place/api/service/ServiceHandler.java
+++ b/src/com/orange/place/api/service/ServiceHandler.java
@@ -1,127 +1,127 @@
package com.orange.place.api.s... | false | true | public void handlRequest(HttpServletRequest request,
HttpServletResponse response) {
printRequest(request);
String method = request.getParameter(ServiceConstant.METHOD);
CommonService obj = null;
try {
obj = CommonService.createServiceObjectByMethod(method);
} catch (InstantiationException e1) {
... | public void handlRequest(HttpServletRequest request,
HttpServletResponse response) {
printRequest(request);
String method = request.getParameter(ServiceConstant.METHOD);
CommonService obj = null;
try {
obj = CommonService.createServiceObjectByMethod(method);
} catch (InstantiationException e1) {
... |
diff --git a/pi/pipair.java b/pi/pipair.java
index 6b7555d..fb219f3 100644
--- a/pi/pipair.java
+++ b/pi/pipair.java
@@ -1,151 +1,151 @@
package fauna.testing;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.Collections;
import java.io.IOException;
import java.util.Hashtable;
import ja... | false | true | private void printInvariantsForFunction(String caller,
String f1,
SupportGraph sg,
HashSet<String> calls) {
Iterator<String> i = sg.allNames.iterator();
while (i.hasNex... | private void printInvariantsForFunction(String caller,
String f1,
SupportGraph sg,
HashSet<String> calls) {
Iterator<String> i = sg.allNames.iterator();
while (i.hasNex... |
diff --git a/android/src/org/openqa/selenium/android/server/handler/GetCapabilities.java b/android/src/org/openqa/selenium/android/server/handler/GetCapabilities.java
index 0893c4599..6d35e547d 100644
--- a/android/src/org/openqa/selenium/android/server/handler/GetCapabilities.java
+++ b/android/src/org/openqa/selenium... | true | true | protected Map<String, Object> describeSession(Map<String, Object> capabilities) {
// Creating a new map because the map received is not modifiable.
Map<String, Object> caps = Maps.newHashMap();
caps.putAll(capabilities);
caps.put(CapabilityType.TAKES_SCREENSHOT, true);
caps.put(CapabilityType.BROW... | protected Map<String, Object> describeSession(Map<String, Object> capabilities) {
// Creating a new map because the map received is not modifiable.
Map<String, Object> caps = Maps.newHashMap();
caps.putAll(capabilities);
caps.put(CapabilityType.TAKES_SCREENSHOT, true);
caps.put(CapabilityType.BROW... |
diff --git a/src/main/java/me/xhawk87/Coinage/commands/SpendCoinsCommand.java b/src/main/java/me/xhawk87/Coinage/commands/SpendCoinsCommand.java
index 2456f42..ed06d62 100644
--- a/src/main/java/me/xhawk87/Coinage/commands/SpendCoinsCommand.java
+++ b/src/main/java/me/xhawk87/Coinage/commands/SpendCoinsCommand.java
@@ ... | true | true | public boolean execute(CommandSender sender, String[] args) {
if (args.length < 2 || args.length > 3) {
return false;
}
int index = 0;
String playerName = args[index++];
Player player = plugin.getServer().getPlayer(playerName);
if (player == null) {
... | public boolean execute(CommandSender sender, String[] args) {
if (args.length < 2 || args.length > 3) {
return false;
}
int index = 0;
String playerName = args[index++];
Player player = plugin.getServer().getPlayer(playerName);
if (player == null) {
... |
diff --git a/jsf-ri/src/com/sun/faces/renderkit/html_basic/RadioRenderer.java b/jsf-ri/src/com/sun/faces/renderkit/html_basic/RadioRenderer.java
index feb37a258..1e749862e 100644
--- a/jsf-ri/src/com/sun/faces/renderkit/html_basic/RadioRenderer.java
+++ b/jsf-ri/src/com/sun/faces/renderkit/html_basic/RadioRenderer.java... | true | true | protected void renderOption(FacesContext context,
UIComponent component,
Converter converter,
SelectItem curItem,
Object currentSelections,
Object[] submitt... | protected void renderOption(FacesContext context,
UIComponent component,
Converter converter,
SelectItem curItem,
Object currentSelections,
Object[] submitt... |
diff --git a/core/org.eclipse.ptp.remote.rse.core/miners/org/eclipse/ptp/internal/remote/rse/core/miners/SpawnerMiner.java b/core/org.eclipse.ptp.remote.rse.core/miners/org/eclipse/ptp/internal/remote/rse/core/miners/SpawnerMiner.java
index be627e0a7..c0f007602 100644
--- a/core/org.eclipse.ptp.remote.rse.core/miners/o... | true | true | private DataElement doHandleCommand(DataElement theCommand) {
String name = getCommandName(theCommand);
DataElement status = getCommandStatus(theCommand);
_status = status;
DataElement subject = getCommandArgument(theCommand, 0);
if (name.equals(C_SPAWN_REDIRECTED)) {
String cmd = getString(theCommand,... | private DataElement doHandleCommand(DataElement theCommand) {
String name = getCommandName(theCommand);
DataElement status = getCommandStatus(theCommand);
_status = status;
DataElement subject = getCommandArgument(theCommand, 0);
if (name.equals(C_SPAWN_REDIRECTED)) {
String cmd = getString(theCommand,... |
diff --git a/source/base/file/File.java b/source/base/file/File.java
index 4b83931..0c6e0b2 100755
--- a/source/base/file/File.java
+++ b/source/base/file/File.java
@@ -1,135 +1,141 @@
package base.file;
import java.io.IOException;
import java.io.RandomAccessFile;
import base.data.Bay;
import base.data.Data;
... | true | true | public File(Open open) {
try {
// Get and save the path
path = open.path;
// Enforce and check how we are told to open the file
if (open.how == Open.overwrite) path.delete(); // Delete a file or empty folder at path, or throw a DiskException
if ((open.how == Open.overwrite || open.how == Open.... | public File(Open open) {
try {
// Get and save the path
path = open.path;
// Enforce and check how we are told to open the file
if (open.how == Open.overwrite) path.delete(); // Delete a file or empty folder at path, or throw a DiskException
if ((open.how == Open.overwrite || open.how == Open.... |
diff --git a/src/java/liquibase/migrator/change/AddAutoIncrementChange.java b/src/java/liquibase/migrator/change/AddAutoIncrementChange.java
index 99f3854f..561fa4a7 100644
--- a/src/java/liquibase/migrator/change/AddAutoIncrementChange.java
+++ b/src/java/liquibase/migrator/change/AddAutoIncrementChange.java
@@ -1,75 ... | false | true | public String[] generateStatements(Database database) throws UnsupportedChangeException {
if (database instanceof OracleDatabase) {
throw new UnsupportedChangeException("Oracle does not support auto-increment columns");
} else if (database instanceof MSSQLDatabase) {
throw ne... | public String[] generateStatements(Database database) throws UnsupportedChangeException {
if (database instanceof OracleDatabase) {
throw new UnsupportedChangeException("Oracle does not support auto-increment columns");
} else if (database instanceof MSSQLDatabase) {
throw ne... |
diff --git a/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmith/geppetto/pp/dsl/validation/PPJavaValidator.java b/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmith/geppetto/pp/dsl/validation/PPJavaValidator.java
index ca9c0e28..af682c13 100644
--- a/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmith/geppetto/pp/dsl/valid... | true | true | public void checkResourceExpression(ResourceExpression o) {
// A regular resource must have a classname
// Use of class reference is deprecated
// classname : NAME | "class" | CLASSNAME
int resourceType = RESOURCE_IS_BAD; // unknown at this point
final Expression resourceExpr = o.getResourceExpr();
String ... | public void checkResourceExpression(ResourceExpression o) {
// A regular resource must have a classname
// Use of class reference is deprecated
// classname : NAME | "class" | CLASSNAME
int resourceType = RESOURCE_IS_BAD; // unknown at this point
final Expression resourceExpr = o.getResourceExpr();
String ... |
diff --git a/src/no/HiOAProsjektV2013/Main/Person.java b/src/no/HiOAProsjektV2013/Main/Person.java
index 5dd0152..faeb95f 100644
--- a/src/no/HiOAProsjektV2013/Main/Person.java
+++ b/src/no/HiOAProsjektV2013/Main/Person.java
@@ -1,44 +1,44 @@
package no.HiOAProsjektV2013.Main;
public class Person {
private String... | true | true | private void nameSplitter(String navn){
String regex = "\\s";
String[] alleNavn = navn.split(regex);
this.fNavn = alleNavn[FORNAVN];
if(alleNavn.length <= KUNETNAVNSKREVET)
this.eNavn = alleNavn[alleNavn.length + ETTERNAVN];
}
| private void nameSplitter(String navn){
String regex = "\\s";
String[] alleNavn = navn.split(regex);
this.fNavn = alleNavn[FORNAVN];
if(alleNavn.length >= KUNETNAVNSKREVET)
this.eNavn = alleNavn[alleNavn.length + ETTERNAVN];
}
|
diff --git a/src/java/com/scratchdisk/util/EnumUtils.java b/src/java/com/scratchdisk/util/EnumUtils.java
index 79a5cdbe..fe779ad1 100644
--- a/src/java/com/scratchdisk/util/EnumUtils.java
+++ b/src/java/com/scratchdisk/util/EnumUtils.java
@@ -1,73 +1,78 @@
/*
* Scriptographer
*
* This file is part of Scriptograp... | false | true | public static <E extends Enum<E>> EnumSet<E> asSet(Collection<E> list) {
if (list instanceof EnumSet) {
return ((EnumSet<E>)list).clone();
} else {
Iterator<E> i = list.iterator();
E first = i.next();
while (first == null)
first = i.next();
EnumSet<E> result = EnumSet.of(first);
while (i.hasN... | public static <E extends Enum<E>> EnumSet<E> asSet(Collection<E> list) {
if (list instanceof EnumSet) {
return ((EnumSet<E>)list).clone();
} else {
Iterator<E> it = list.iterator();
if (it.hasNext()) {
E first = it.next();
while (first == null && it.hasNext())
first = it.next();
if (first... |
diff --git a/src/main/java/fr/adhoc/leboncoin/model/Utilisateur.java b/src/main/java/fr/adhoc/leboncoin/model/Utilisateur.java
index 2ee9388..3c2ff14 100644
--- a/src/main/java/fr/adhoc/leboncoin/model/Utilisateur.java
+++ b/src/main/java/fr/adhoc/leboncoin/model/Utilisateur.java
@@ -1,86 +1,87 @@
package fr.adhoc.leb... | true | true | public Utilisateur(String nom, String mail) {
super();
this.nom = nom;
this.mail = mail;
}
| public Utilisateur(String nom, String mail) {
super();
this.nom = nom;
this.mail = mail;
this.note = (float) nom.charAt(0) - (float) 'A' +1;
}
|
diff --git a/src/contrib/gridmix/src/java/org/apache/hadoop/mapred/gridmix/Statistics.java b/src/contrib/gridmix/src/java/org/apache/hadoop/mapred/gridmix/Statistics.java
index 92a1e97445..6d8c166a67 100644
--- a/src/contrib/gridmix/src/java/org/apache/hadoop/mapred/gridmix/Statistics.java
+++ b/src/contrib/gridmix/src... | true | true | public void run() {
try {
startFlag.await();
if (Thread.currentThread().isInterrupted()) {
return;
}
} catch (InterruptedException ie) {
LOG.error(
"Statistics Error while waiting for other threads to get ready ", ie);
return;
}
whi... | public void run() {
try {
startFlag.await();
if (Thread.currentThread().isInterrupted()) {
return;
}
} catch (InterruptedException ie) {
LOG.error(
"Statistics Error while waiting for other threads to get ready ", ie);
return;
}
whi... |
diff --git a/src/fr/gcastel/freeboxV6GeekIncDownloader/ProgressTask.java b/src/fr/gcastel/freeboxV6GeekIncDownloader/ProgressTask.java
index 75ab2a9..63ebd17 100644
--- a/src/fr/gcastel/freeboxV6GeekIncDownloader/ProgressTask.java
+++ b/src/fr/gcastel/freeboxV6GeekIncDownloader/ProgressTask.java
@@ -1,205 +1,213 @@
/*... | false | true | protected Void doInBackground(Void... unused) {
// R�cup�ration du flux RSS
try {
fetchFluxRSS();
} catch (Exception ex) {
Log.w("ProgressTask", "HTTP request error");
return (null);
}
progress += 40;
publishProgress();
// Parsing
String logoURL = getGeekIncLogoURL(... | protected Void doInBackground(Void... unused) {
// R�cup�ration du flux RSS
try {
fetchFluxRSS();
} catch (Exception ex) {
Log.w("ProgressTask", "HTTP request error");
return (null);
}
progress += 40;
publishProgress();
// Parsing
String logoURL = null;
try {
... |
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/full/AllTests.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/full/AllTests.java
index 00f1b472e..7add26707 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/full/AllTests.jav... | true | true | public static Test suite() {
TestSuite suite = new TestSuite(AllTests.class.getName());
suite.addTestSuite(End2EndTest.class);
suite.addTest(From35to36.suite());
suite.addTest(Install36from35.suite());
return suite;
}
| public static Test suite() {
TestSuite suite = new TestSuite(AllTests.class.getName());
suite.addTestSuite(End2EndTest.class);
// suite.addTest(From35to36.suite());
// suite.addTest(Install36from35.suite());
return suite;
}
|
diff --git a/src/uk/co/quartzcraft/kingdoms/QuartzKingdoms.java b/src/uk/co/quartzcraft/kingdoms/QuartzKingdoms.java
index f6cf9f7..c453037 100644
--- a/src/uk/co/quartzcraft/kingdoms/QuartzKingdoms.java
+++ b/src/uk/co/quartzcraft/kingdoms/QuartzKingdoms.java
@@ -1,126 +1,126 @@
package uk.co.quartzcraft.kingdoms;
... | true | true | public void onEnable() {
log.info("[QC]Running plugin configuration");
this.saveDefaultConfig();
String SQLKingHost = this.getConfig().getString("database.kingdoms.host");
String SQLKingDatabase = this.getConfig().getString("database.kingdoms.database");
String SQLKingUser = this.getConfig().getString(... | public void onEnable() {
log.info("[QC]Running plugin configuration");
this.saveDefaultConfig();
String SQLKingHost = this.getConfig().getString("database.kingdoms.host");
String SQLKingDatabase = this.getConfig().getString("database.kingdoms.database");
String SQLKingUser = this.getConfig().getString(... |
diff --git a/src/main/gradeapp/ExcelReader.java b/src/main/gradeapp/ExcelReader.java
index 00bbb11..16552cd 100644
--- a/src/main/gradeapp/ExcelReader.java
+++ b/src/main/gradeapp/ExcelReader.java
@@ -1,115 +1,115 @@
package gradeapp;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException... | true | true | public ExcelReader (File in) throws IOException, GraphFormatException{
Workbook wb;
if (in.getName().endsWith("xlsx")){
wb = new XSSFWorkbook(new FileInputStream(in));
}else{
wb = new HSSFWorkbook(new FileInputStream(in));
}
Sheet MainSheet = wb.getSh... | public ExcelReader (File in) throws IOException, GraphFormatException{
Workbook wb;
if (in.getName().endsWith("xlsx")){
wb = new XSSFWorkbook(new FileInputStream(in));
}else{
wb = new HSSFWorkbook(new FileInputStream(in));
}
Sheet MainSheet = wb.getSh... |
diff --git a/geoserver/src/org/vfny/geoserver/wfs/responses/TransactionResponse.java b/geoserver/src/org/vfny/geoserver/wfs/responses/TransactionResponse.java
index f7ab0b2239..43363b2a29 100644
--- a/geoserver/src/org/vfny/geoserver/wfs/responses/TransactionResponse.java
+++ b/geoserver/src/org/vfny/geoserver/wfs/resp... | true | true | protected void execute(TransactionRequest transactionRequest)
throws ServiceException, WfsException {
request = transactionRequest; // preserved toWrite() handle access
transaction = new DefaultTransaction();
LOGGER.fine("request is " + request);
Data catalog = transactionR... | protected void execute(TransactionRequest transactionRequest)
throws ServiceException, WfsException {
request = transactionRequest; // preserved toWrite() handle access
transaction = new DefaultTransaction();
LOGGER.fine("request is " + request);
Data catalog = transactionR... |
diff --git a/modules/quercus/src/com/caucho/quercus/env/DefinitionState.java b/modules/quercus/src/com/caucho/quercus/env/DefinitionState.java
index c275fbef9..bb94a45ad 100644
--- a/modules/quercus/src/com/caucho/quercus/env/DefinitionState.java
+++ b/modules/quercus/src/com/caucho/quercus/env/DefinitionState.java
@@ ... | false | true | public AbstractFunction findFunction(String name)
{
AbstractFunction fun = _funMap.get(name);
if (fun == null) {
}
else if (fun instanceof UnsetFunction) {
UnsetFunction unsetFun = (UnsetFunction) fun;
if (_crc == unsetFun.getCrc())
return null;
}
else {
return fun;
... | public AbstractFunction findFunction(String name)
{
AbstractFunction fun = _funMap.get(name);
if (fun == null) {
}
else if (fun instanceof UnsetFunction) {
UnsetFunction unsetFun = (UnsetFunction) fun;
if (_crc == unsetFun.getCrc())
return null;
}
else {
return fun;
... |
diff --git a/test/org/plovr/ManifestTest.java b/test/org/plovr/ManifestTest.java
index b180165b..fc7a28b5 100644
--- a/test/org/plovr/ManifestTest.java
+++ b/test/org/plovr/ManifestTest.java
@@ -1,137 +1,138 @@
package org.plovr;
import java.io.File;
import java.util.Collection;
import java.util.List;
import j... | true | true | public void testSimpleManifest() throws CompilationException {
File closureLibraryDirectory = new File("../closure-library/closure/goog/");
final List<File> dependencies = ImmutableList.of();
String path = "test/org/plovr/example.js";
File testFile = new File(path);
JsSourceFile requiredInput = ... | public void testSimpleManifest() throws CompilationException {
File closureLibraryDirectory = new File("../closure-library/closure/goog/");
final List<File> dependencies = ImmutableList.of();
String path = "test/org/plovr/example.js";
File testFile = new File(path);
JsSourceFile requiredInput = ... |
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java
index 7d620622..4ad8922f 100644
--- a/src/com/android/launcher2/LauncherModel.java
+++ b/src/com/android/launcher2/LauncherModel.java
@@ -1,1945 +1,1947 @@
/*
* Copyright (C) 2008 The Android Open Source Project
... | true | true | static boolean shortcutExists(Context context, String title, Intent intent) {
final ContentResolver cr = context.getContentResolver();
Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI,
new String[] { "title", "intent" }, "title=? and intent=?",
new String[] { title,... | static boolean shortcutExists(Context context, String title, Intent intent) {
final ContentResolver cr = context.getContentResolver();
Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI,
new String[] { "title", "intent" }, "title=? and intent=?",
new String[] { title,... |
diff --git a/srcj/com/sun/electric/tool/Job.java b/srcj/com/sun/electric/tool/Job.java
index 633b5726e..2eb20fd95 100644
--- a/srcj/com/sun/electric/tool/Job.java
+++ b/srcj/com/sun/electric/tool/Job.java
@@ -1,771 +1,771 @@
/* -*- tab-width: 4 -*-
*
* Electric(tm) VLSI Design System
*
* File: Job.java
*
*... | true | true | private void startJob(boolean deleteWhenDone, boolean onMySnapshot)
{
this.deleteWhenDone = deleteWhenDone;
UserInterface ui = getUserInterface();
Job.Key curJobKey = ui.getJobKey();
boolean startedByServer = curJobKey.jobId > 0;
boolean doItOnServer = ejob.jobType != Jo... | private void startJob(boolean deleteWhenDone, boolean onMySnapshot)
{
this.deleteWhenDone = deleteWhenDone;
UserInterface ui = getUserInterface();
Job.Key curJobKey = ui.getJobKey();
boolean startedByServer = curJobKey.doItOnServer;
boolean doItOnServer = ejob.jobType !=... |
diff --git a/src/knapsack/KnapSackMutation.java b/src/knapsack/KnapSackMutation.java
index 2a388e6..4b05863 100644
--- a/src/knapsack/KnapSackMutation.java
+++ b/src/knapsack/KnapSackMutation.java
@@ -1,23 +1,19 @@
package knapsack;
import java.util.BitSet;
import java.util.Random;
import model.Genome;
import ... | true | true | public Genome mutate(Genome victim) {
BitSet bits = victim.getBits();
int length = bits.length();
if (length == -1) {
bits.flip(rand.nextInt(0));
}
else {
bits.flip(length);
}
return new Genome(bits);
}
| public Genome mutate(Genome victim) {
BitSet bits = victim.getBits();
int length = bits.length();
System.out.println(length);
bits.flip(rand.nextInt(length));
return new Genome(bits);
}
|
diff --git a/flexodesktop/modules/flexoworkfloweditor/src/main/java/org/openflexo/wkf/controller/WKFClipboard.java b/flexodesktop/modules/flexoworkfloweditor/src/main/java/org/openflexo/wkf/controller/WKFClipboard.java
index ff92280d7..f8c125cb2 100644
--- a/flexodesktop/modules/flexoworkfloweditor/src/main/java/org/op... | true | true | protected boolean performCopyOfSelection(Vector<FlexoModelObject> currentlySelectedObjects)
{
logger.info("performCopyOfSelection() for "+currentlySelectedObjects);
// TODO reimplement all of this
resetClipboard();
if (currentlySelectedObjects.size() > 0) {
if (currentlySelectedObjects.firstElement() i... | protected boolean performCopyOfSelection(Vector<FlexoModelObject> currentlySelectedObjects)
{
logger.info("performCopyOfSelection() for "+currentlySelectedObjects);
// TODO reimplement all of this
resetClipboard();
if (currentlySelectedObjects.size() > 0) {
if (currentlySelectedObjects.firstElement() i... |
diff --git a/processor/src/main/java/org/apache/camel/processor/mashup/model/Mashup.java b/processor/src/main/java/org/apache/camel/processor/mashup/model/Mashup.java
index 23d2df0..2be50ba 100644
--- a/processor/src/main/java/org/apache/camel/processor/mashup/model/Mashup.java
+++ b/processor/src/main/java/org/apache/... | true | true | public void digeste(InputStream inputStream) throws Exception {
Digester digester = new Digester();
digester.push(this);
digester.addSetProperties("mashup");
digester.addObjectCreate("mashup/cookiestore", CookieStore.class);
digester.addSetProperties("mashup/cookie... | public void digeste(InputStream inputStream) throws Exception {
Digester digester = new Digester();
digester.push(this);
digester.addSetProperties("mashup");
digester.addObjectCreate("mashup/cookiestore", CookieStore.class);
digester.addSetProperties("mashup/cookie... |
diff --git a/src/java/org/apache/cassandra/service/GCInspector.java b/src/java/org/apache/cassandra/service/GCInspector.java
index dedb3b51..e565e33b 100644
--- a/src/java/org/apache/cassandra/service/GCInspector.java
+++ b/src/java/org/apache/cassandra/service/GCInspector.java
@@ -1,145 +1,147 @@
package org.apache.c... | true | true | private void logGCResults()
{
for (GarbageCollectorMXBean gc : beans)
{
Long previousTotal = gctimes.get(gc.getName());
Long total = gc.getCollectionTime();
if (previousTotal == null)
previousTotal = 0L;
if (previousTotal.equals(tot... | private void logGCResults()
{
for (GarbageCollectorMXBean gc : beans)
{
Long previousTotal = gctimes.get(gc.getName());
Long total = gc.getCollectionTime();
if (previousTotal == null)
previousTotal = 0L;
if (previousTotal.equals(tot... |
diff --git a/QCMediaPlayer/com/qualcomm/qcmedia/QCTimedText.java b/QCMediaPlayer/com/qualcomm/qcmedia/QCTimedText.java
index a9ee42f..1acd35c 100644
--- a/QCMediaPlayer/com/qualcomm/qcmedia/QCTimedText.java
+++ b/QCMediaPlayer/com/qualcomm/qcmedia/QCTimedText.java
@@ -1,769 +1,768 @@
/*
* Copyright (c) 2012-2013, Th... | true | true | private boolean parseParcel(Parcel mParcel) {
mParcel.setDataPosition(0);
if (mParcel.dataAvail() == 0) {
Log.e(TAG, "mParcel.dataAvail()");
return false;
}
int type = mParcel.readInt();
if (type == KEY_LOCAL_SETTING) {
type = mParcel.read... | private boolean parseParcel(Parcel mParcel) {
mParcel.setDataPosition(0);
if (mParcel.dataAvail() == 0) {
Log.e(TAG, "mParcel.dataAvail()");
return false;
}
int type = mParcel.readInt();
if (type == KEY_LOCAL_SETTING) {
type = mParcel.read... |
diff --git a/PC/src/main/java/edu/thu/cslab/footwith/form/InsertPlanForm.java b/PC/src/main/java/edu/thu/cslab/footwith/form/InsertPlanForm.java
index 5a885ef..ff49fe8 100644
--- a/PC/src/main/java/edu/thu/cslab/footwith/form/InsertPlanForm.java
+++ b/PC/src/main/java/edu/thu/cslab/footwith/form/InsertPlanForm.java
@@ ... | true | true | private void init() {
final BorderLayout borderLayout = new BorderLayout();
borderLayout.setVgap(5);
getContentPane().setLayout(borderLayout);
JPanel mainPanel = new JPanel();
mainPanel.setBorder(new EmptyBorder(5,10,5,10)); // need to understand
final GridLayou... | private void init() {
final BorderLayout borderLayout = new BorderLayout();
borderLayout.setVgap(5);
getContentPane().setLayout(borderLayout);
JPanel mainPanel = new JPanel();
mainPanel.setBorder(new EmptyBorder(5,10,5,10)); // need to understand
final GridLayou... |
diff --git a/ui-tests/src/test/java/org/openmrs/reference/RegistrationAppTest.java b/ui-tests/src/test/java/org/openmrs/reference/RegistrationAppTest.java
index 77c230c..7eeb93d 100644
--- a/ui-tests/src/test/java/org/openmrs/reference/RegistrationAppTest.java
+++ b/ui-tests/src/test/java/org/openmrs/reference/Registra... | true | true | public void verifyAddressValuesDisplayedInConfirmationPage() {
homePage.openRegisterAPatientApp();
TestPatient patient = PatientGenerator.generateTestPatient();
registrationPage.enterPatientGivenName(patient.givenName);
registrationPage.enterPatientFamilyName(patient.familyName);
... | public void verifyAddressValuesDisplayedInConfirmationPage() {
homePage.openRegisterAPatientApp();
TestPatient patient = PatientGenerator.generateTestPatient();
registrationPage.enterPatientGivenName(patient.givenName);
registrationPage.enterPatientFamilyName(patient.familyName);
... |
diff --git a/src/btwmod/tinyurl/mod_TinyUrl.java b/src/btwmod/tinyurl/mod_TinyUrl.java
index 9542287..8e36687 100644
--- a/src/btwmod/tinyurl/mod_TinyUrl.java
+++ b/src/btwmod/tinyurl/mod_TinyUrl.java
@@ -1,93 +1,93 @@
package btwmod.tinyurl;
import java.io.BufferedWriter;
import java.io.File;
import java.io.File... | true | true | public void onPlayerChatAction(PlayerChatEvent event) {
String message = event.getMessage();
if (!message.startsWith("/")) {
String[] split = message.split(" ", -1);
String last = split[split.length - 1];
if (last.length() >= url.length() && (last.startsWith("http://") || last.startsWith("https://")) && !... | public void onPlayerChatAction(PlayerChatEvent event) {
String message = event.getMessage();
if (event.type == PlayerChatEvent.TYPE.AUTO_COMPLETE && !message.startsWith("/")) {
String[] split = message.split(" ", -1);
String last = split[split.length - 1];
if (last.length() >= url.length() && (last.starts... |
diff --git a/src/org/apache/xalan/xslt/Process.java b/src/org/apache/xalan/xslt/Process.java
index 83b05ddc..a9648409 100644
--- a/src/org/apache/xalan/xslt/Process.java
+++ b/src/org/apache/xalan/xslt/Process.java
@@ -1,1192 +1,1192 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more cont... | false | true | public static void main(String argv[])
{
// Runtime.getRuntime().traceMethodCalls(false); // turns Java tracing off
boolean doStackDumpOnError = false;
boolean setQuietMode = false;
boolean doDiag = false;
String msg = null;
boolean isSecureProcessing = false;
// Runtime.getRuntime... | public static void main(String argv[])
{
// Runtime.getRuntime().traceMethodCalls(false); // turns Java tracing off
boolean doStackDumpOnError = false;
boolean setQuietMode = false;
boolean doDiag = false;
String msg = null;
boolean isSecureProcessing = false;
// Runtime.getRuntime... |
diff --git a/src/main/java/org/glite/authz/pap/distribution/DistributionConfiguration.java b/src/main/java/org/glite/authz/pap/distribution/DistributionConfiguration.java
index 468b569..87e64e1 100644
--- a/src/main/java/org/glite/authz/pap/distribution/DistributionConfiguration.java
+++ b/src/main/java/org/glite/authz... | false | true | public void savePAPOrder(String[] aliasArray) throws AliasNotFoundException {
papConfiguration.clearDistributionProperty(papOrderKey());
if (aliasArray == null) {
papConfiguration.saveStartupConfiguration();
return;
}
if (aliasArray.length == 0) {
... | public void savePAPOrder(String[] aliasArray) throws AliasNotFoundException {
if (aliasArray == null) {
papConfiguration.clearDistributionProperty(papOrderKey());
papConfiguration.saveStartupConfiguration();
return;
}
if (aliasArray.length == 0) ... |
diff --git a/application/src/main/java/org/richfaces/tests/metamer/bean/RichInputNumberSpinnerBean.java b/application/src/main/java/org/richfaces/tests/metamer/bean/RichInputNumberSpinnerBean.java
index 5dc5d74b..9b2e0351 100644
--- a/application/src/main/java/org/richfaces/tests/metamer/bean/RichInputNumberSpinnerBean... | true | true | public void init() {
logger = LoggerFactory.getLogger(getClass());
logger.debug("initializing bean " + getClass().getName());
attributes = Attributes.getComponentAttributesFromFacesConfig(HtmlInputNumberSpinner.class, getClass());
attributes.setAttribute("enableManualInput", true);... | public void init() {
logger = LoggerFactory.getLogger(getClass());
logger.debug("initializing bean " + getClass().getName());
attributes = Attributes.getComponentAttributesFromFacesConfig(HtmlInputNumberSpinner.class, getClass());
attributes.setAttribute("enableManualInput", true);... |
diff --git a/src/test/webui/recipes/applications/TerminateServiceContainerLogsPanelTest.java b/src/test/webui/recipes/applications/TerminateServiceContainerLogsPanelTest.java
index c64046bf..d1ed2332 100644
--- a/src/test/webui/recipes/applications/TerminateServiceContainerLogsPanelTest.java
+++ b/src/test/webui/recipe... | true | true | public void terminateContainerTest() throws InterruptedException {
// get new login page
LoginPage loginPage = getLoginPage();
MainNavigation mainNav = loginPage.login();
TopologyTab topology = mainNav.switchToTopology();
ApplicationMap appMap = topology.getApplicationMap();
appMap.selectAppli... | public void terminateContainerTest() throws InterruptedException {
// get new login page
LoginPage loginPage = getLoginPage();
MainNavigation mainNav = loginPage.login();
TopologyTab topology = mainNav.switchToTopology();
ApplicationMap appMap = topology.getApplicationMap();
appMap.selectAppli... |
diff --git a/common/test/java/org/openqa/selenium/browserlaunchers/WindowsUtilsUnitTest.java b/common/test/java/org/openqa/selenium/browserlaunchers/WindowsUtilsUnitTest.java
index 5f96ba000..fa48e1534 100644
--- a/common/test/java/org/openqa/selenium/browserlaunchers/WindowsUtilsUnitTest.java
+++ b/common/test/java/or... | true | true | public void testRegistry() {
if (!WindowsUtils.thisIsWindows()) return;
//TODO(danielwh): Uncomment or remove assert
//String keyCurrentVersion = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\CurrentVersion";
String keyProxyEnable = "HKEY_CURRENT_USER\\Softwa... | public void testRegistry() {
if (!WindowsUtils.thisIsWindows()) return;
//TODO(danielwh): Uncomment or remove assert
//String keyCurrentVersion = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\CurrentVersion";
String keyProxyEnable = "HKEY_CURRENT_USER\\Softwa... |
diff --git a/org.dawnsci.conversion/src/org/dawnsci/conversion/Activator.java b/org.dawnsci.conversion/src/org/dawnsci/conversion/Activator.java
index dd1c7596..298925d7 100644
--- a/org.dawnsci.conversion/src/org/dawnsci/conversion/Activator.java
+++ b/org.dawnsci.conversion/src/org/dawnsci/conversion/Activator.java
@... | false | true | public void start(BundleContext bundleContext) throws Exception {
System.out.println("Starting org.dawnsci.persistence");
Hashtable<String, String> props = new Hashtable<String, String>(1);
props.put("description", "A service used to convert hdf5 files");
context.registerService(IConversionService.class, new C... | public void start(BundleContext bundleContext) throws Exception {
System.out.println("Starting "+bundleContext.getBundle().getSymbolicName());
Hashtable<String, String> props = new Hashtable<String, String>(1);
props.put("description", "A service used to convert hdf5 files");
bundleContext.registerService(ICon... |
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 8c73c294..4ae9c7d2 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -1,3815 +1,3815 @@
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed u... | true | true | private void showAppsCustomizeHelper(final boolean animated, final boolean springLoaded) {
if (mStateAnimation != null) {
mStateAnimation.cancel();
mStateAnimation = null;
}
final Resources res = getResources();
final int duration = res.getInteger(R.integer.c... | private void showAppsCustomizeHelper(final boolean animated, final boolean springLoaded) {
if (mStateAnimation != null) {
mStateAnimation.cancel();
mStateAnimation = null;
}
final Resources res = getResources();
final int duration = res.getInteger(R.integer.c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.