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/lang/psi/impl/symbols/LuaGlobalDeclarationImpl.java b/src/lang/psi/impl/symbols/LuaGlobalDeclarationImpl.java
index 0ab1fa22..1166488b 100644
--- a/src/lang/psi/impl/symbols/LuaGlobalDeclarationImpl.java
+++ b/src/lang/psi/impl/symbols/LuaGlobalDeclarationImpl.java
@@ -1,152 +1,152 @@
/*
* Copyright... | true | true | public String getName() {
// LuaPsiFile file = (LuaPsiFile) getContainingFile();
String module = "";
// if (file != null) {
// module = ((LuaPsiFile) getContainingFile()).getModuleName();
// module = module == null ? "" : module;
// final LuaGlobalDeclarationS... | public String getName() {
// LuaPsiFile file = (LuaPsiFile) getContainingFile();
String module = "";
// if (file != null) {
// module = ((LuaPsiFile) getContainingFile()).getModuleName();
// module = module == null ? "" : module;
// final LuaGlobalDeclarationS... |
diff --git a/disambiguation-work/disambiguation-work-impl/src/main/java/pl/edu/icm/coansys/disambiguation/work/voter/AuthorsVoter.java b/disambiguation-work/disambiguation-work-impl/src/main/java/pl/edu/icm/coansys/disambiguation/work/voter/AuthorsVoter.java
index 0f621ca0..08f52c65 100644
--- a/disambiguation-work/dis... | true | true | private Pair<String[], Boolean> extractSurnames(DocumentProtos.DocumentWrapper doc) {
RegexpParser authorParser = new RegexpParser("authorParser.properties", "author");
List<DocumentProtos.Author> authorList = doc.getDocumentMetadata().getBasicMetadata().getAuthorList();
String[] resultByPos... | private Pair<String[], Boolean> extractSurnames(DocumentProtos.DocumentWrapper doc) {
RegexpParser authorParser = new RegexpParser("authorParser.properties", "author");
List<DocumentProtos.Author> authorList = doc.getDocumentMetadata().getBasicMetadata().getAuthorList();
String[] resultByPos... |
diff --git a/CandroidSample/src/com/candroidsample/CaldroidSampleActivity.java b/CandroidSample/src/com/candroidsample/CaldroidSampleActivity.java
index 600e6f7..2ebc7ad 100644
--- a/CandroidSample/src/com/candroidsample/CaldroidSampleActivity.java
+++ b/CandroidSample/src/com/candroidsample/CaldroidSampleActivity.java... | false | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final SimpleDateFormat formatter = new SimpleDateFormat("dd MMM yyyy");
// Setup caldroid fragment
// **** If you want normal CaldroidFragment, use below line ****
// final Cald... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final SimpleDateFormat formatter = new SimpleDateFormat("dd MMM yyyy");
// Setup caldroid fragment
// **** If you want normal CaldroidFragment, use below line ****
final Caldro... |
diff --git a/gsf-action/src/main/java/com/fatwire/gst/foundation/controller/annotation/AnnotationUtils.java b/gsf-action/src/main/java/com/fatwire/gst/foundation/controller/annotation/AnnotationUtils.java
index a18bc55b..3d87b98e 100644
--- a/gsf-action/src/main/java/com/fatwire/gst/foundation/controller/annotation/Ann... | true | true | public static <T> Field findField(final Object a, final Class<T> type) {
Class<?> klazz = a.getClass();
while (klazz != null && klazz != Object.class) {
for (final Field field : a.getClass().getDeclaredFields()) {
if (field.getAnnotation(InjectForRequest.class) != null &&... | public static <T> Field findField(final Object a, final Class<T> type) {
Class<?> klazz = a.getClass();
while (klazz != null && klazz != Object.class) {
for (final Field field : klazz.getDeclaredFields()) {
if (field.getAnnotation(InjectForRequest.class) != null && type.i... |
diff --git a/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java b/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java
index 7f60b2e..2190db6 100644
--- a/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java
+++ b/stripes/src/net/sour... | false | true | public ActionBean getActionBean(ActionBeanContext context, String path)
throws StripesServletException {
Class<? extends ActionBean> beanClass = getActionBeanType(path);
ActionBean bean;
if (beanClass == null) {
throw new ActionBeanNotFoundException(
... | public ActionBean getActionBean(ActionBeanContext context, String path)
throws StripesServletException {
Class<? extends ActionBean> beanClass = getActionBeanType(path);
ActionBean bean;
if (beanClass == null) {
throw new ActionBeanNotFoundException(
... |
diff --git a/org.eclipse.mylyn.context.tests/src/org/eclipse/mylyn/context/tests/support/TestUtil.java b/org.eclipse.mylyn.context.tests/src/org/eclipse/mylyn/context/tests/support/TestUtil.java
index c79f30ec8..a6f72e533 100644
--- a/org.eclipse.mylyn.context.tests/src/org/eclipse/mylyn/context/tests/support/TestUtil.... | false | true | public static Credentials readCredentials(PrivilegeLevel level, String realm) {
Properties properties = new Properties();
try {
URL localURL = FileLocator.toFileURL(ContextTestsPlugin.getDefault().getBundle().getEntry(
"credentials.properties"));
properties.load(new FileInputStream(new File(localURL.get... | public static Credentials readCredentials(PrivilegeLevel level, String realm) {
Properties properties = new Properties();
try {
URL localURL = FileLocator.toFileURL(ContextTestsPlugin.getDefault().getBundle().getEntry(
"credentials.properties"));
properties.load(new FileInputStream(new File(localURL.get... |
diff --git a/log120/tp1/src/ApplicationSwing.java b/log120/tp1/src/ApplicationSwing.java
index b66bdb9..a71a56d 100644
--- a/log120/tp1/src/ApplicationSwing.java
+++ b/log120/tp1/src/ApplicationSwing.java
@@ -1,384 +1,384 @@
/*
*******************************************************
Historique des modifications
**... | false | true | public void actionPerformed(ActionEvent arg0) {
boolean validServer = false;
client = ClientShape.getInstance();
while (!validServer) {
try {
// ask user for address
String address = JOptionPane.showInputDialog(
"Quel est nom d'h�te et le port du serve... | public void actionPerformed(ActionEvent arg0) {
boolean validServer = false;
client = ClientShape.getInstance();
while (!validServer) {
try {
// ask user for address
String address = JOptionPane.showInputDialog(
"Please enter the hostname and port.", "... |
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 025b9a39c..166c91eaf 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/teatime/game/model/FoodSorter.java b/src/com/teatime/game/model/FoodSorter.java
index 6d70a66..fdf777c 100644
--- a/src/com/teatime/game/model/FoodSorter.java
+++ b/src/com/teatime/game/model/FoodSorter.java
@@ -1,18 +1,18 @@
package com.teatime.game.model;
import java.util.Comparator;
publi... | false | true | public int compare(Human arg0, Human arg1) {
if ( arg0.getFoodScore() < arg1.getFoodScore() ) {
return -1;
} else if ( arg0.getFoodScore() > arg1.getFoodScore() ) {
return 1;
} else {
return 0;
}
}
| public int compare(Human arg0, Human arg1) {
if ( arg0.getFoodScore() > arg1.getFoodScore() ) {
return -1;
} else if ( arg0.getFoodScore() < arg1.getFoodScore() ) {
return 1;
} else {
return 0;
}
}
|
diff --git a/common/src/main/java/cz/incad/kramerius/security/impl/criteria/MovingWall.java b/common/src/main/java/cz/incad/kramerius/security/impl/criteria/MovingWall.java
index 3a02b57db..95299d743 100644
--- a/common/src/main/java/cz/incad/kramerius/security/impl/criteria/MovingWall.java
+++ b/common/src/main/java/c... | false | true | public EvaluatingResult resolveInternal(int wallFromConf, String pid) throws IOException, XPathExpressionException {
Document mods = getEvaluateContext().getFedoraAccess().getBiblioMods(pid);
XPathFactory xpfactory = XPathFactory.newInstance();
XPath xpath = xpfactory.newXPath();
xp... | public EvaluatingResult resolveInternal(int wallFromConf, String pid) throws IOException, XPathExpressionException {
// configurable ??
if (pid.equals(SpecialObjects.REPOSITORY.getPid())) return EvaluatingResult.FALSE;
Document mods = getEvaluateContext().getFedoraAccess().getBiblioMods(pid)... |
diff --git a/core-integ/src/test/java/org/apache/directory/server/core/configuration/PartitionConfigurationIT.java b/core-integ/src/test/java/org/apache/directory/server/core/configuration/PartitionConfigurationIT.java
index ddb6dccd9d..cc3d2e9614 100644
--- a/core-integ/src/test/java/org/apache/directory/server/core/c... | true | true | public void testAddAndRemove() throws Exception
{
JdbmPartition partition = new JdbmPartition();
partition.setId( "removable" );
partition.setSuffix( "ou=removable" );
partition.setPartitionDir( service.getWorkingDirectory() );
// Test AddContextPartition
... | public void testAddAndRemove() throws Exception
{
JdbmPartition partition = new JdbmPartition();
partition.setId( "removable" );
partition.setSuffix( "ou=removable" );
partition.setPartitionDir( service.getWorkingDirectory() );
// Test AddContextPartition
... |
diff --git a/LabBook/source/LObjDictionaryView.java b/LabBook/source/LObjDictionaryView.java
index 473819f..87cbce9 100644
--- a/LabBook/source/LObjDictionaryView.java
+++ b/LabBook/source/LObjDictionaryView.java
@@ -1,345 +1,345 @@
package org.concord.LabBook;
import waba.ui.*;
import org.concord.waba.extra.ui.*;... | false | true | public void dialogClosed(DialogEvent e)
{
String command = e.getActionCommand();
if(e.getSource() == newDialog){
if(command.equals("Create")){
String objType = (String)e.getInfo();
LabObject newObj = null;
boolean autoEdit = false;
if(objType.equals("Folder")){
newObj = new LObjDictionary()... | public void dialogClosed(DialogEvent e)
{
String command = e.getActionCommand();
if(e.getSource() == newDialog){
if(command.equals("Create")){
String objType = (String)e.getInfo();
LabObject newObj = null;
boolean autoEdit = false;
if(objType.equals("Folder")){
newObj = new LObjDictionary()... |
diff --git a/timemeasurement-core/src/test/java/com/coremedia/contribution/timemeasurement/TimeMeasurementTest.java b/timemeasurement-core/src/test/java/com/coremedia/contribution/timemeasurement/TimeMeasurementTest.java
index 762e728..32af36a 100644
--- a/timemeasurement-core/src/test/java/com/coremedia/contribution/t... | true | true | public void testUseMillis() {
System.setProperty("timemeasurement.enabled", "true");
System.setProperty("timemeasurement.useMillis", "true");
TimeMeasurement.reset();
EtmPoint etmPoint = null;
try {
etmPoint = TimeMeasurement.start("testUseMillis");
//although most systems, Thread.sle... | public void testUseMillis() {
System.setProperty("timemeasurement.enabled", "true");
System.setProperty("timemeasurement.useMillis", "true");
TimeMeasurement.reset();
EtmPoint etmPoint = null;
try {
etmPoint = TimeMeasurement.start("testUseMillis");
//although most systems, Thread.sle... |
diff --git a/src/test/java/org/glom/web/client/place/GwtTestDetailsPlace.java b/src/test/java/org/glom/web/client/place/GwtTestDetailsPlace.java
index 75280b3..97e27b0 100644
--- a/src/test/java/org/glom/web/client/place/GwtTestDetailsPlace.java
+++ b/src/test/java/org/glom/web/client/place/GwtTestDetailsPlace.java
@@ ... | true | true | public void testGetPlaceParametersDatePrimaryKey() {
// Create a DetailsPlace, testing getPlace():
final String documentId = "somedocument";
final String tableName = "sometable";
//TODO: Is there no easier (and non-deprecated) way to create
//a Date intance?
Calendar cal = new GregorianCalendar();
cal... | public void testGetPlaceParametersDatePrimaryKey() {
// Create a DetailsPlace, testing getPlace():
final String documentId = "somedocument";
final String tableName = "sometable";
//TODO: Is there no easier (and non-deprecated) way to create
//a Date instance?
Calendar cal = new GregorianCalendar();
ca... |
diff --git a/src/main/java/hudson/plugins/promoted_builds/Promotion.java b/src/main/java/hudson/plugins/promoted_builds/Promotion.java
index 2c028f2..0043a99 100644
--- a/src/main/java/hudson/plugins/promoted_builds/Promotion.java
+++ b/src/main/java/hudson/plugins/promoted_builds/Promotion.java
@@ -1,162 +1,163 @@
pa... | true | true | protected Result doRun(BuildListener listener) throws Exception {
AbstractBuild<?, ?> target = getTarget();
listener.getLogger().println("Promoting "+target);
getStatus().addPromotionAttempt(Promotion.this);
// start with SUCCESS, unless someone makes it a fail... | protected Result doRun(BuildListener listener) throws Exception {
AbstractBuild<?, ?> target = getTarget();
targetBuildNumber = target.getNumber();
listener.getLogger().println("Promoting "+target);
getStatus().addPromotionAttempt(Promotion.this);
/... |
diff --git a/msv/src/com/sun/msv/reader/xmlschema/ElementDeclState.java b/msv/src/com/sun/msv/reader/xmlschema/ElementDeclState.java
index cf8830af..ea1a8df9 100644
--- a/msv/src/com/sun/msv/reader/xmlschema/ElementDeclState.java
+++ b/msv/src/com/sun/msv/reader/xmlschema/ElementDeclState.java
@@ -1,270 +1,270 @@
/*
... | true | true | protected Expression annealExpression(Expression contentType) {
final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
String name = startTag.getAttribute("name");
if( name==null ) {
reader.reportError( reader.ERR_MISSING_ATTRIBUTE, "element", "name" );
// recover by abandoning this element.
re... | protected Expression annealExpression(Expression contentType) {
final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
String name = startTag.getAttribute("name");
if( name==null ) {
reader.reportError( reader.ERR_MISSING_ATTRIBUTE, "element", "name" );
// recover by abandoning this element.
re... |
diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClientGetJob.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-common/src/test/java/org/apache/hadoop/mapred/TestJobClientGetJob.java
index 5ba5f25a6..... | true | true | public void testGetRunningJobFromJobClient() throws Exception {
JobConf conf = new JobConf();
conf.set("mapreduce.framework.name", "local");
FileInputFormat.addInputPath(conf, createTempFile("in", "hello"));
FileOutputFormat.setOutputPath(conf,
new Path(TEST_ROOT_DIR, getClass().getSimpleName(... | public void testGetRunningJobFromJobClient() throws Exception {
JobConf conf = new JobConf();
conf.set("mapreduce.framework.name", "local");
FileInputFormat.addInputPath(conf, createTempFile("in", "hello"));
Path outputDir = new Path(TEST_ROOT_DIR, getClass().getSimpleName());
outputDir.getFileSys... |
diff --git a/src/com/cyanogenmod/explorer/commands/shell/Shell.java b/src/com/cyanogenmod/explorer/commands/shell/Shell.java
index 0cf288e..583b5cf 100644
--- a/src/com/cyanogenmod/explorer/commands/shell/Shell.java
+++ b/src/com/cyanogenmod/explorer/commands/shell/Shell.java
@@ -1,131 +1,131 @@
/*
* Copyright (C) 2... | true | true | public void checkStdErr(Program program, int exitCode, String err)
throws InsufficientPermissionsException, NoSuchFileOrDirectory,
CommandNotFoundException, ExecutionException, ReadOnlyFilesystemException {
//Check problems in the standard error
if (err.indexOf("No such file ... | public void checkStdErr(Program program, int exitCode, String err)
throws InsufficientPermissionsException, NoSuchFileOrDirectory,
CommandNotFoundException, ExecutionException, ReadOnlyFilesystemException {
//Check problems in the standard error
if (exitCode != 0 && err.index... |
diff --git a/src/java/org/apache/fop/render/PrintRendererConfigurator.java b/src/java/org/apache/fop/render/PrintRendererConfigurator.java
index 2dbb88be1..ccff3baa1 100644
--- a/src/java/org/apache/fop/render/PrintRendererConfigurator.java
+++ b/src/java/org/apache/fop/render/PrintRendererConfigurator.java
@@ -1,376 +... | true | true | public static EmbedFontInfo getFontInfoFromConfiguration(
Configuration fontCfg, FontResolver fontResolver, boolean strict, FontCache fontCache)
throws FOPException {
String metricsUrl = fontCfg.getAttribute("metrics-url", null);
String embedUrl = fontCfg.getAttribute... | public static EmbedFontInfo getFontInfoFromConfiguration(
Configuration fontCfg, FontResolver fontResolver, boolean strict, FontCache fontCache)
throws FOPException {
String metricsUrl = fontCfg.getAttribute("metrics-url", null);
String embedUrl = fontCfg.getAttribute... |
diff --git a/src/main/java/hudson/plugins/selenium/HudsonRemoteControlPool.java b/src/main/java/hudson/plugins/selenium/HudsonRemoteControlPool.java
index 21a9aa2..b246452 100644
--- a/src/main/java/hudson/plugins/selenium/HudsonRemoteControlPool.java
+++ b/src/main/java/hudson/plugins/selenium/HudsonRemoteControlPool.... | true | true | public synchronized RemoteControlProxy reserve(Environment env) {
String[] keys = env.name().split("&");
for (int i = 0; i < keys.length; i++)
keys[i] = '/'+keys[i]+'/';
while(true) {
boolean hadMatch=false;
for (RemoteControlProxy rc : all) {
... | public synchronized RemoteControlProxy reserve(Environment env) {
String[] keys = env.name().split("&");
for (int i = 0; i < keys.length; i++)
keys[i] = '/'+keys[i]+'/';
while(true) {
boolean hadMatch=false;
for (RemoteControlProxy rc : all) {
... |
diff --git a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/servlets/FetchJob.java b/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/servlets/FetchJob.java
index 04bca171..06f87633 100644
--- a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/servlets/Fe... | false | true | protected IStatus run(IProgressMonitor monitor) {
try {
doFetch();
} catch (IOException e) {
return new Status(IStatus.ERROR, GitActivator.PI_GIT, "Error cloning git repository", e); //$NON-NLS-1$
} catch (CoreException e) {
return e.getStatus();
} catch (JGitInternalException e) {
return new Statu... | protected IStatus run(IProgressMonitor monitor) {
try {
doFetch();
} catch (IOException e) {
return new Status(IStatus.ERROR, GitActivator.PI_GIT, "Error fetching git remote", e); //$NON-NLS-1$
} catch (CoreException e) {
return e.getStatus();
} catch (JGitInternalException e) {
return new Status(I... |
diff --git a/src/test/java/ch/o2it/weblounge/contentrepository/solr/SolrUtilsTest.java b/src/test/java/ch/o2it/weblounge/contentrepository/solr/SolrUtilsTest.java
index a1a96906f..63627e1e2 100644
--- a/src/test/java/ch/o2it/weblounge/contentrepository/solr/SolrUtilsTest.java
+++ b/src/test/java/ch/o2it/weblounge/conte... | true | true | public void testSerializeDateRange() {
Calendar d = Calendar.getInstance();
d.set(Calendar.MILLISECOND, 0);
d.set(Calendar.SECOND, 0);
d.set(Calendar.MINUTE, 0);
d.set(Calendar.HOUR_OF_DAY, 0);
Date startDate = d.getTime();
d.add(Calendar.DAY_OF_MONTH, 2);
d.add(Calendar.HOUR, 5);
... | public void testSerializeDateRange() {
Calendar d = Calendar.getInstance();
d.set(Calendar.MILLISECOND, 0);
d.set(Calendar.SECOND, 0);
d.set(Calendar.MINUTE, 0);
d.set(Calendar.HOUR_OF_DAY, 0);
Date startDate = d.getTime();
d.add(Calendar.DAY_OF_MONTH, 2);
d.set(Calendar.HOUR_OF_DAY, 5... |
diff --git a/src/Algorithm.java b/src/Algorithm.java
index c3a2ecd..a8ef936 100644
--- a/src/Algorithm.java
+++ b/src/Algorithm.java
@@ -1,104 +1,104 @@
import java.util.ArrayList;
import java.util.LinkedHashSet;
public class Algorithm {
public ArrayList<PlanRecord> plans;
private LogicalAndTerm terms; ... | true | true | public PlanRecord findOptimialPlan() {
generateAllPlans(terms);
for(PlanRecord p1 : plans) {
LinkedHashSet<BasicTerm> set1 = Util.convertToSet(p1.subset);
for(PlanRecord p2 : plans) {
LinkedHashSet<BasicTerm> set2 = Util.convertToSet(p2.subset);
set1.retainAll(set2);
if (set1.size() > 1) {
... | public PlanRecord findOptimialPlan() {
generateAllPlans(terms);
for(PlanRecord p1 : plans) {
LinkedHashSet<BasicTerm> set1 = Util.convertToSet(p1.subset);
for(PlanRecord p2 : plans) {
LinkedHashSet<BasicTerm> set2 = Util.convertToSet(p2.subset);
set1.retainAll(set2);
if (set1.size() > 0) {
... |
diff --git a/src/com/android/mms/transaction/SmsMessageSender.java b/src/com/android/mms/transaction/SmsMessageSender.java
index 0aee539b..c59f147e 100644
--- a/src/com/android/mms/transaction/SmsMessageSender.java
+++ b/src/com/android/mms/transaction/SmsMessageSender.java
@@ -1,204 +1,204 @@
/*
* Copyright (C) 200... | true | true | private boolean queueMessage(long token) throws MmsException {
if ((mMessageText == null) || (mNumberOfDests == 0)) {
// Don't try to send an empty message.
throw new MmsException("Null message body or dest.");
}
SharedPreferences prefs = PreferenceManager.getDefault... | private boolean queueMessage(long token) throws MmsException {
if ((mMessageText == null) || (mNumberOfDests == 0)) {
// Don't try to send an empty message.
throw new MmsException("Null message body or dest.");
}
SharedPreferences prefs = PreferenceManager.getDefault... |
diff --git a/uaa/src/test/java/org/cloudfoundry/identity/uaa/integration/LoginInfoEndpointIntegrationTests.java b/uaa/src/test/java/org/cloudfoundry/identity/uaa/integration/LoginInfoEndpointIntegrationTests.java
index e1dad8cf1..a2e2b4e98 100644
--- a/uaa/src/test/java/org/cloudfoundry/identity/uaa/integration/LoginIn... | true | true | public void testHappyDayHtml() throws Exception {
HttpHeaders headers = new HttpHeaders();
headers.setAccept(Arrays.asList(MediaType.TEXT_HTML));
ResponseEntity<String> response = serverRunning.getForString("/login", headers );
assertEquals(HttpStatus.OK, response.getStatusCode());
String body = response.ge... | public void testHappyDayHtml() throws Exception {
HttpHeaders headers = new HttpHeaders();
headers.setAccept(Arrays.asList(MediaType.TEXT_HTML));
ResponseEntity<String> response = serverRunning.getForString("/login", headers );
assertEquals(HttpStatus.OK, response.getStatusCode());
String body = response.ge... |
diff --git a/registry/src/main/java/org/intalio/tempo/registry/RegistryFactory.java b/registry/src/main/java/org/intalio/tempo/registry/RegistryFactory.java
index fb45d1ca..5c96b4e1 100644
--- a/registry/src/main/java/org/intalio/tempo/registry/RegistryFactory.java
+++ b/registry/src/main/java/org/intalio/tempo/registr... | false | true | public synchronized void init() {
if (_propertyFile != null) {
_propertyFile = resolveSystemProperties(_propertyFile);
}
try {
if (_props == null && new File(_propertyFile).exists()) {
_props = new Properties();
_props.load(new FileInpu... | public synchronized void init() {
if (_propertyFile != null) {
_propertyFile = resolveSystemProperties(_propertyFile);
}
try {
_props = new Properties();
if (_props == null && new File(_propertyFile).exists()) {
_props.load(new FileInputStr... |
diff --git a/source/de/tuclausthal/submissioninterface/servlets/view/TaskGroupManagerView.java b/source/de/tuclausthal/submissioninterface/servlets/view/TaskGroupManagerView.java
index 67fb5f4..153d5a3 100644
--- a/source/de/tuclausthal/submissioninterface/servlets/view/TaskGroupManagerView.java
+++ b/source/de/tuclaus... | false | true | public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
Template template = TemplateFactory.getTemplate(request, response);
PrintWriter out = response.getWriter();
TaskGroup taskGroup = (TaskGroup) request.getAttribute("taskGroup");
Lecture lecture =... | public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
Template template = TemplateFactory.getTemplate(request, response);
PrintWriter out = response.getWriter();
TaskGroup taskGroup = (TaskGroup) request.getAttribute("taskGroup");
Lecture lecture =... |
diff --git a/Analysis/test-plugin/src/basic/VariousLoops.java b/Analysis/test-plugin/src/basic/VariousLoops.java
index 5ebf1f9..ad99d3f 100644
--- a/Analysis/test-plugin/src/basic/VariousLoops.java
+++ b/Analysis/test-plugin/src/basic/VariousLoops.java
@@ -1,95 +1,95 @@
package basic;
import ch.ethz.intervals.Inter... | false | true | protected void minimumIterationsAndTheHbRelation(
int j,
@Creator("x") Object xObject
) {
@Creator("hb y") Object hbYObject;
// Here the loop is not statically known to
// execute at least one iteration:
for (int i = j; i < 1; i++) {
Intervals.addHb(x, y); ... | protected void minimumIterationsAndTheHbRelation(
int j,
@Creator("x") Object xObject
) {
@Creator("readableBy y") Object readableByYObject;
// Here the loop is not statically known to
// execute at least one iteration:
for (int i = j; i < 1; i++) {
Intervals.addHb... |
diff --git a/api_test/APITest.java b/api_test/APITest.java
index f004caf..8a5dc68 100644
--- a/api_test/APITest.java
+++ b/api_test/APITest.java
@@ -1,129 +1,129 @@
import clj_span.java_span_bridge;
import java.util.HashMap;
public class APITest {
public static void main(String[] args) {
int rows... | true | true | public static void main(String[] args) {
int rows = 10;
int cols = 10;
double[] sourceLayer =
{0.0,100.0,0.0,0.0,0.0,0.0,0.0, 0.0,0.0,0.0,
0.0, 0.0,0.0,0.0,0.0,0.0,0.0, 0.0,0.0,0.0,
0.0, 0.0,0.0,0.0,0.0,0.0,0.0, 0.0,0.0,0.0,
0.0, 0.0... | public static void main(String[] args) {
int rows = 10;
int cols = 10;
double[] sourceLayer =
{0.0,100.0,0.0,0.0,0.0,0.0,0.0, 0.0,0.0,0.0,
0.0, 0.0,0.0,0.0,0.0,0.0,0.0, 0.0,0.0,0.0,
0.0, 0.0,0.0,0.0,0.0,0.0,0.0, 0.0,0.0,0.0,
0.0, 0.0... |
diff --git a/app/src/main/java/com/github/mobile/util/HtmlUtils.java b/app/src/main/java/com/github/mobile/util/HtmlUtils.java
index 4b0de42f..f612a4d1 100644
--- a/app/src/main/java/com/github/mobile/util/HtmlUtils.java
+++ b/app/src/main/java/com/github/mobile/util/HtmlUtils.java
@@ -1,486 +1,486 @@
/*
* Copyright... | false | true | public void handleTag(final boolean opening, final String tag,
final Editable output, final XMLReader xmlReader) {
if (TAG_DEL.equalsIgnoreCase(tag)) {
if (opening)
startSpan(new StrikethroughSpan(), output);
else
... | public void handleTag(final boolean opening, final String tag,
final Editable output, final XMLReader xmlReader) {
if (TAG_DEL.equalsIgnoreCase(tag)) {
if (opening)
startSpan(new StrikethroughSpan(), output);
else
... |
diff --git a/src/main/java/net/aufdemrand/denizen/scripts/commands/CommandRegistry.java b/src/main/java/net/aufdemrand/denizen/scripts/commands/CommandRegistry.java
index e37f5f0b7..2251b5ffc 100644
--- a/src/main/java/net/aufdemrand/denizen/scripts/commands/CommandRegistry.java
+++ b/src/main/java/net/aufdemrand/deniz... | false | true | public void registerCoreMembers() {
// <--[command]
// @Name Age
// @Usage age [<entity>|...] (adult/baby/<age>) (lock)
// @Required 1
// @Stable stable
// @Short Sets the ages of a list of entities, optionally locking them in those ages.
// @Author David Cer... | public void registerCoreMembers() {
// <--[command]
// @Name Age
// @Usage age [<entity>|...] (adult/baby/<age>) (lock)
// @Required 1
// @Stable stable
// @Short Sets the ages of a list of entities, optionally locking them in those ages.
// @Author David Cer... |
diff --git a/webapp/app/models/message/Trigger.java b/webapp/app/models/message/Trigger.java
index ad286188..c34bb419 100644
--- a/webapp/app/models/message/Trigger.java
+++ b/webapp/app/models/message/Trigger.java
@@ -1,174 +1,174 @@
package models.message;
import java.util.ArrayList;
import java.util.List;
im... | true | true | public String toString() {
return "Trigger [id=" + id + ", url=" + url + ", rate=" + rate
+ ", offset=" + offset + ", before=" + before + ", after="
+ after + ", runAsUser=" + runAsUser + ", lastRunSuccess="
+ lastRunSuccess + ", lastRunTime=" + lastRunTime
+ ", lastRunDuration=" + lastRunDuration + ... | public String toString() {
return "Trigger [id=" + id + ", url=" + url + ", rate=" + rate
+ ", offset=" + offset + ", before=" + before + ", after="
+ after + ", runAsUser=" + runAsUser + ", lastRunSuccess="
+ lastRunSuccess + ", lastRunTime=" + lastRunTime
+ ", lastRunDuration=" + lastRunDuration + ... |
diff --git a/src/main/java/de/thatsich/bachelor/imageprocessing/restricted/controller/ImageInputPresenter.java b/src/main/java/de/thatsich/bachelor/imageprocessing/restricted/controller/ImageInputPresenter.java
index 4a298c8..80da8a3 100644
--- a/src/main/java/de/thatsich/bachelor/imageprocessing/restricted/controller/... | true | true | @FXML private void onAddImageAction() throws IOException {
final List<Path> imagePathList = this.chooser.show();
if (imagePathList == null) return;
this.log.info("Fetched Path from chosen Image.");
final ExecutorService executor = CommandExecutor.newFixedThreadPool(imagePathList.size());
this.log.info("Cre... | @FXML private void onAddImageAction() throws IOException {
final List<Path> imagePathList = this.chooser.show();
if (imagePathList == null) return;
this.log.info("Fetched Path from chosen Image.");
final ExecutorService executor = CommandExecutor.newFixedThreadPool(imagePathList.size());
this.log.info("Cre... |
diff --git a/src/main/java/plugins/WebOfTrust/pages/ShowIdentity.java b/src/main/java/plugins/WebOfTrust/pages/ShowIdentity.java
index ad4bead..763dd90 100644
--- a/src/main/java/plugins/WebOfTrust/pages/ShowIdentity.java
+++ b/src/main/java/plugins/WebOfTrust/pages/ShowIdentity.java
@@ -1,440 +1,440 @@
package plugin... | true | true | public void handleMethodGET(URI uri, HTTPRequest request, ToadletContext ctx) throws ToadletContextClosedException, IOException {
if(WebOfTrust.allowFullAccessOnly && !ctx.isAllowedFullAccess()) {
writeReply(ctx, 403, "text/plain", "forbidden", "Your host is not allowed to access this page.");
return;
}
Pa... | public void handleMethodGET(URI uri, HTTPRequest request, ToadletContext ctx) throws ToadletContextClosedException, IOException {
if(WebOfTrust.allowFullAccessOnly && !ctx.isAllowedFullAccess()) {
writeReply(ctx, 403, "text/plain", "forbidden", "Your host is not allowed to access this page.");
return;
}
Pa... |
diff --git a/src/application/MySwerveFile.java b/src/application/MySwerveFile.java
index 21748f7..91cb90f 100644
--- a/src/application/MySwerveFile.java
+++ b/src/application/MySwerveFile.java
@@ -1,78 +1,79 @@
package application;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundEx... | true | true | public void save(JFileChooser filename, List<Shape> shapes) {
file = filename.getSelectedFile();
String path = file.getPath() + ".swerve";
file = new File(path);
FileOutputStream fileOut = null;
try {
fileOut = new FileOutputStream(file);
} catch (FileNotFoundException e) {
// TODO Auto-generated ... | public void save(JFileChooser filename, List<Shape> shapes) {
file = filename.getSelectedFile();
String path = file.getPath() + ".swerve";
if (!path.contains(".swerve"))
file = new File(path);
FileOutputStream fileOut = null;
try {
fileOut = new FileOutputStream(file);
} catch (FileNotFoundExcepti... |
diff --git a/pentaho-gwt-widgets/src/org/pentaho/gwt/widgets/client/listbox/DefaultListItem.java b/pentaho-gwt-widgets/src/org/pentaho/gwt/widgets/client/listbox/DefaultListItem.java
index 93110a44..aaf7ef0e 100644
--- a/pentaho-gwt-widgets/src/org/pentaho/gwt/widgets/client/listbox/DefaultListItem.java
+++ b/pentaho-g... | true | true | private void formatWidget(HorizontalPanel panel){
panel.sinkEvents(Event.MOUSEEVENTS);
if(img != null){
Image i = new Image(img.getUrl());
panel.add(i);
panel.setCellVerticalAlignment(i, HasVerticalAlignment.ALIGN_MIDDLE);
i.getElement().getStyle().setProperty("marginRight","2px"); //... | private void formatWidget(HorizontalPanel panel){
panel.sinkEvents(Event.MOUSEEVENTS);
if(img != null){
Image i = new Image(img.getUrl());
panel.add(i);
panel.setCellVerticalAlignment(i, HasVerticalAlignment.ALIGN_MIDDLE);
i.getElement().getStyle().setProperty("marginRight","2px"); //... |
diff --git a/org.eclipse.draw3d.ui/src/org/eclipse/draw3d/ui/viewer/ShapeViewer.java b/org.eclipse.draw3d.ui/src/org/eclipse/draw3d/ui/viewer/ShapeViewer.java
index 170664c..456ea94 100644
--- a/org.eclipse.draw3d.ui/src/org/eclipse/draw3d/ui/viewer/ShapeViewer.java
+++ b/org.eclipse.draw3d.ui/src/org/eclipse/draw3d/ui... | true | true | protected IFigure3D createContents() {
IFigure3D figure = new ShapeFigure3D() {
/**
* {@inheritDoc}
*
* @see org.eclipse.draw3d.ShapeFigure3D#createShape()
*/
@Override
protected Shape createShape() {
CompositeShape composite = new CompositeShape();
// composite.addOpaque(new Cyl... | protected IFigure3D createContents() {
IFigure3D figure = new ShapeFigure3D() {
/**
* {@inheritDoc}
*
* @see org.eclipse.draw3d.ShapeFigure3D#createShape()
*/
@Override
protected Shape createShape() {
CompositeShape composite = new CompositeShape();
// composite.addOpaque(new Cyl... |
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem/src/org/eclipse/tcf/te/tcf/filesystem/internal/columns/ProgramImageProvider.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem/src/org/eclipse/tcf/te/tcf/filesystem/internal/columns/ProgramImageProvider.java
index 3cfae1e9c..d0deb3b96 ... | false | true | public Image getImage(FSTreeNode node) {
if (node.isFile()) {
String name = node.name;
String ending = name.substring(name.lastIndexOf('.'));
String key = "EXT_IMAGE" + ending; //$NON-NLS-1$
Image image = UIPlugin.getImage(key);
Program program = Program.findProgram(ending);
if (image == null && pr... | public Image getImage(FSTreeNode node) {
if (node.isFile()) {
String name = node.name;
int dot = name.lastIndexOf("."); //$NON-NLS-1$
if (dot != -1) {
String ending = name.substring(dot);
String key = "EXT_IMAGE" + ending; //$NON-NLS-1$
Image image = UIPlugin.getImage(key);
Program program =... |
diff --git a/src/com/seawolfsanctuary/tmt/Helpers.java b/src/com/seawolfsanctuary/tmt/Helpers.java
index b241f04..2bca788 100644
--- a/src/com/seawolfsanctuary/tmt/Helpers.java
+++ b/src/com/seawolfsanctuary/tmt/Helpers.java
@@ -1,272 +1,272 @@
package com.seawolfsanctuary.tmt;
import java.io.BufferedReader;
impor... | false | true | public static void loadCurrentJourney(Bundle journey, Activity dest) {
if (journey != null) {
if (journey.containsKey("from_stn")) {
if (journey.getString("from_stn").length() > 0) {
AutoCompleteTextView actv_FromSearch = (AutoCompleteTextView) dest
.findViewById(R.id.actv_FromSearch);
actv_F... | public static void loadCurrentJourney(Bundle journey, Activity dest) {
if (journey != null) {
if (journey.containsKey("from_stn")) {
if (journey.getString("from_stn").length() > 0) {
AutoCompleteTextView actv_FromSearch = (AutoCompleteTextView) dest
.findViewById(R.id.actv_FromSearch);
actv_F... |
diff --git a/src/main/java/org/jboss/modules/DependencyTreeViewer.java b/src/main/java/org/jboss/modules/DependencyTreeViewer.java
index 43b65cff..bdd4def6 100644
--- a/src/main/java/org/jboss/modules/DependencyTreeViewer.java
+++ b/src/main/java/org/jboss/modules/DependencyTreeViewer.java
@@ -1,131 +1,131 @@
/*
* J... | true | true | private static void print(PrintWriter out, String prefix, ModuleSpec spec, FastCopyHashSet<ModuleIdentifier> visited, File... roots) {
if (spec instanceof AliasModuleSpec) {
final AliasModuleSpec aliasModuleSpec = (AliasModuleSpec) spec;
out.print(" -> ");
final ModuleIde... | private static void print(PrintWriter out, String prefix, ModuleSpec spec, FastCopyHashSet<ModuleIdentifier> visited, File... roots) {
if (spec instanceof AliasModuleSpec) {
final AliasModuleSpec aliasModuleSpec = (AliasModuleSpec) spec;
out.print(" -> ");
final ModuleIde... |
diff --git a/railo-java/railo-core/src/railo/commons/io/res/type/s3/S3ResourceProvider.java b/railo-java/railo-core/src/railo/commons/io/res/type/s3/S3ResourceProvider.java
index 4ed9975b4..9605167f7 100755
--- a/railo-java/railo-core/src/railo/commons/io/res/type/s3/S3ResourceProvider.java
+++ b/railo-java/railo-core/... | true | true | public static String loadWithNewPattern(S3 s3,RefInteger storage, String path) {
PageContext pc = ThreadLocalPageContext.get();
Properties prop=null;
if(pc!=null){
prop=((ApplicationContextPro)pc.getApplicationContext()).getS3();
}
else prop=new Properties();
int defaultLocation = prop.getDefaultLoc... | public static String loadWithNewPattern(S3 s3,RefInteger storage, String path) {
PageContext pc = ThreadLocalPageContext.get();
Properties prop=null;
if(pc!=null){
prop=((ApplicationContextPro)pc.getApplicationContext()).getS3();
}
if(prop==null) prop=new Properties();
int defaultLocation = prop.get... |
diff --git a/runtime/src/com/sun/xml/bind/v2/runtime/reflect/opt/Injector.java b/runtime/src/com/sun/xml/bind/v2/runtime/reflect/opt/Injector.java
index b3605a72..33cc124e 100644
--- a/runtime/src/com/sun/xml/bind/v2/runtime/reflect/opt/Injector.java
+++ b/runtime/src/com/sun/xml/bind/v2/runtime/reflect/opt/Injector.ja... | true | true | private synchronized Class inject(String className, byte[] image) {
if(!loadable) // this injector cannot inject anything
return null;
Class c = classes.get(className);
//find loaded class from classloader
if(c==null) {
try {
c = (Cl... | private synchronized Class inject(String className, byte[] image) {
if(!loadable) // this injector cannot inject anything
return null;
Class c = classes.get(className);
//find loaded class from classloader
if(c==null) {
try {
c = (Cl... |
diff --git a/function-schoolmaster2/java/function-schoolmaster2/src/main/com/nbcedu/function/schoolmaster2/action/MasterIndexAction.java b/function-schoolmaster2/java/function-schoolmaster2/src/main/com/nbcedu/function/schoolmaster2/action/MasterIndexAction.java
index c2123bd..83e11d8 100644
--- a/function-schoolmaster... | true | true | public void findLinshi(){
String uid = Utils.getAllSchoolMaster().
contains(this.getUserId())?null:getUserId();
//url,progress,title
final List<TSm2Subject> subList=
this.masterSubBiz.findByMasterAndCount(LINSHI_MODULEID, uid,6);
SearchFunction linshi = new SearchFunction() {
@Override
public... | public void findLinshi(){
String uid = Utils.getDefaultMasterUids().
contains(this.getUserId())?null:getUserId();
//url,progress,title
final List<TSm2Subject> subList=
this.masterSubBiz.findByMasterAndCount(LINSHI_MODULEID, uid,6);
SearchFunction linshi = new SearchFunction() {
@Override
publ... |
diff --git a/src/de/ueller/midlet/gps/tile/SearchNames.java b/src/de/ueller/midlet/gps/tile/SearchNames.java
index d353af6a..412f4dc0 100644
--- a/src/de/ueller/midlet/gps/tile/SearchNames.java
+++ b/src/de/ueller/midlet/gps/tile/SearchNames.java
@@ -1,503 +1,503 @@
package de.ueller.midlet.gps.tile;
/*
* GpsMid - ... | false | true | private void doSearch(String search, int iType) throws IOException {
try {
synchronized(this) {
stopSearch = false;
if (newSearch) {
if (!appendRes) {
gui.clearList();
}
newSearch = false;
}
}
if (!noWaypointSearch && search.length() < 2) {
synchronized (this) {
... | private void doSearch(String search, int iType) throws IOException {
try {
synchronized(this) {
stopSearch = false;
if (newSearch) {
if (!appendRes) {
gui.clearList();
}
newSearch = false;
}
}
if (!noWaypointSearch && search.length() < 2) {
synchronized (this) {
... |
diff --git a/TileEngine/src/entities/Being.java b/TileEngine/src/entities/Being.java
index 319ec00..7df2d3b 100644
--- a/TileEngine/src/entities/Being.java
+++ b/TileEngine/src/entities/Being.java
@@ -1,258 +1,262 @@
package entities;
import interfaces.Constants;
import interfaces.PlayerImages;
import java.awt.Gr... | false | true | public void move(int xMove, int yMove) {
// Are we moving up or down?
if (yMove != 0) {// Move up and down
isAirborne = true; // In the air
/*----DOWN----*/
if (yMove > 0) {
// Are we above two blocks?
if (x % TILE_SIZE != 0) {
// Are either solid?
if (currMap[getXMapIndex()][getYMapInde... | public void move(int xMove, int yMove) {
// Are we moving up or down?
if (yMove != 0) {// Move up and down
isAirborne = true; // In the air
/*----DOWN----*/
if (yMove > 0) {
// Are we above two blocks?
if (x % TILE_SIZE != 0) {
// Are either solid?
if (currMap[getXMapIndex()][getYMapInde... |
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/InspectAction.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/InspectAction.java
index 38211f04d..448827abc 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/InspectAction.jav... | true | true | protected void run() {
IWorkbenchPart part= getTargetPart();
if (part instanceof JavaSnippetEditor) {
((JavaSnippetEditor)part).evalSelection(JavaSnippetEditor.RESULT_INSPECT);
return;
}
Object selection= getSelectedObject();
if (!(selection instanceof IStructuredSelection)) {
super.run();
ret... | protected void run() {
IWorkbenchPart part= getTargetPart();
if (part instanceof JavaSnippetEditor) {
((JavaSnippetEditor)part).evalSelection(JavaSnippetEditor.RESULT_INSPECT);
return;
}
Object selection= getSelectedObject();
if (!(selection instanceof IStructuredSelection)) {
super.run();
ret... |
diff --git a/src/main/java/jetbrick/schema/app/model/methods/TableColumnUtils.java b/src/main/java/jetbrick/schema/app/model/methods/TableColumnUtils.java
index 5b5bb8f..3acc770 100644
--- a/src/main/java/jetbrick/schema/app/model/methods/TableColumnUtils.java
+++ b/src/main/java/jetbrick/schema/app/model/methods/Table... | true | true | public static String rsGetter(TableColumn c) {
Map<Class<?>, String> map = new HashMap<Class<?>, String>(20);
map.put(String.class, "String");
map.put(Boolean.class, "Boolean");
map.put(Byte.class, "Byte");
map.put(Short.class, "Short");
map.put(Integer.class, "Int");... | public static String rsGetter(TableColumn c) {
Map<Class<?>, String> map = new HashMap<Class<?>, String>(32);
map.put(String.class, "String");
map.put(Boolean.class, "Boolean");
map.put(Byte.class, "Byte");
map.put(Short.class, "Short");
map.put(Integer.class, "Int");... |
diff --git a/x10.compiler/src/x10c/visit/RailInLoopOptimizer.java b/x10.compiler/src/x10c/visit/RailInLoopOptimizer.java
index c72a1befd..2c606e77e 100644
--- a/x10.compiler/src/x10c/visit/RailInLoopOptimizer.java
+++ b/x10.compiler/src/x10c/visit/RailInLoopOptimizer.java
@@ -1,513 +1,513 @@
/*
* This file is part ... | false | true | protected Node leaveCall(Node parent, Node old, Node n, NodeVisitor v) throws SemanticException {
if (n instanceof Loop) {
Loop loop = (Loop) n;
final List<String> ignores = new ArrayList<String>();
if (n instanceof For) {
For forn = (For) loop;
... | protected Node leaveCall(Node parent, Node old, Node n, NodeVisitor v) throws SemanticException {
if (n instanceof Loop) {
Loop loop = (Loop) n;
final List<String> ignores = new ArrayList<String>();
if (n instanceof For) {
For forn = (For) loop;
... |
diff --git a/Updater/src/main/java/jk_5/nailed/updater/json/serialization/LibraryListSerializer.java b/Updater/src/main/java/jk_5/nailed/updater/json/serialization/LibraryListSerializer.java
index 9dee0ea..3261bb9 100644
--- a/Updater/src/main/java/jk_5/nailed/updater/json/serialization/LibraryListSerializer.java
+++ b... | true | true | public LibraryList deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException{
JsonObject obj = json.getAsJsonObject();
LibraryList libraryList = new LibraryList();
for(Map.Entry<String, JsonElement> e : obj.entrySet()){
Library lib ... | public LibraryList deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException{
JsonObject obj = json.getAsJsonObject();
LibraryList libraryList = new LibraryList();
for(Map.Entry<String, JsonElement> e : obj.entrySet()){
Library lib ... |
diff --git a/jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/internal/webapp/WebBundleTrackerCustomizer.java b/jetty-osgi/jetty-osgi-boot/src/main/java/org/eclipse/jetty/osgi/boot/internal/webapp/WebBundleTrackerCustomizer.java
index ca0c09905..9ae3fb7f3 100644
--- a/jetty-osgi/jetty-osgi-boot/src/... | true | true | private boolean register(Bundle bundle)
{
Dictionary<?, ?> dic = bundle.getHeaders();
String warFolderRelativePath = (String)dic.get(OSGiWebappConstants.JETTY_WAR_FOLDER_PATH);
if (warFolderRelativePath != null)
{
String contextPath = getWebContextPath(bundle, dic, fa... | private boolean register(Bundle bundle)
{
Dictionary<?, ?> dic = bundle.getHeaders();
String warFolderRelativePath = (String)dic.get(OSGiWebappConstants.JETTY_WAR_FOLDER_PATH);
if (warFolderRelativePath != null)
{
String contextPath = getWebContextPath(bundle, dic, fa... |
diff --git a/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/RubyRefactoring.java b/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/RubyRefactoring.java
index 72fd96cc..da7a1db1 100644
--- a/org.rubypeople.rdt.refactoring/src/org/rubypeople/rdt/refactoring/core/RubyRefactor... | true | true | public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException {
Change change = createEditChanges();
Map<String, String> filesToRename = fileNameChangeProvider.getFilesToRename(getAllAffectedFiles(change));
if(filesToRename.isEmpty()) {
return change;
}
CompositeChan... | public Change createChange(IProgressMonitor pm) throws CoreException, OperationCanceledException {
Change change = createEditChanges();
Map<String, String> filesToRename = getFileNameChangeProvider().getFilesToRename(getAllAffectedFiles(change));
if(filesToRename.isEmpty()) {
return change;
}
Composit... |
diff --git a/src/jDistsim/ui/panel/tab/OutputTabPanel.java b/src/jDistsim/ui/panel/tab/OutputTabPanel.java
index cda297e..3f20a09 100644
--- a/src/jDistsim/ui/panel/tab/OutputTabPanel.java
+++ b/src/jDistsim/ui/panel/tab/OutputTabPanel.java
@@ -1,154 +1,154 @@
package jDistsim.ui.panel.tab;
import jDistsim.ui.contr... | true | true | private LightContainer makeSimulatorOutput() {
final OutputPanel outputPanel = new OutputPanel(textArea);
final LightContainer outputContainer = new LightContainer("Simulator output", outputPanel);
IconBackgroundColorHoverStyle buttonHoverStyle = new IconBackgroundColorHoverStyle();
... | private LightContainer makeSimulatorOutput() {
final OutputPanel outputPanel = new OutputPanel(textArea);
final LightContainer outputContainer = new LightContainer("Simulator output", outputPanel);
IconBackgroundColorHoverStyle buttonHoverStyle = new IconBackgroundColorHoverStyle();
... |
diff --git a/src/share/classes/java/lang/invoke/MethodHandleNatives.java b/src/share/classes/java/lang/invoke/MethodHandleNatives.java
index daf64224c..0d17f4a5c 100644
--- a/src/share/classes/java/lang/invoke/MethodHandleNatives.java
+++ b/src/share/classes/java/lang/invoke/MethodHandleNatives.java
@@ -1,419 +1,425 @@... | true | true | static void raiseException(int code, Object actual, Object required) {
String message = null;
switch (code) {
case 190: // arraylength
try {
String reqLength = "";
if (required instanceof AdapterMethodHandle) {
int conv = ((Adap... | static void raiseException(int code, Object actual, Object required) {
String message = null;
switch (code) {
case 190: // arraylength
try {
String reqLength = "";
if (required instanceof AdapterMethodHandle) {
int conv = ((Adap... |
diff --git a/src/main/java/org/tdwg/dwca/wikipedia/WikipediaParser.java b/src/main/java/org/tdwg/dwca/wikipedia/WikipediaParser.java
index 87d45cc..f69e9d6 100644
--- a/src/main/java/org/tdwg/dwca/wikipedia/WikipediaParser.java
+++ b/src/main/java/org/tdwg/dwca/wikipedia/WikipediaParser.java
@@ -1,162 +1,162 @@
/*
*... | false | true | public void parse() throws IOException{
if (dumpFile == null) {
dumpFile = new File(repo, "wiki" + lang + ".xml");
}
// get file
if (!dumpFile.exists()){
// http://dumps.wikimedia.org/enwiki/latest/enwiki-latest-pages-articles.xml.bz2
// http://dumps.wikimedia.org/dewiki/latest/dewi... | public void parse() throws IOException{
if (dumpFile == null) {
dumpFile = new File(repo, "wiki" + lang + ".xml");
}
// get file
if (!dumpFile.exists()){
// http://dumps.wikimedia.org/enwiki/latest/enwiki-latest-pages-articles.xml.bz2
// http://dumps.wikimedia.org/dewiki/latest/dewi... |
diff --git a/temp2/CA/src/DM.java b/temp2/CA/src/DM.java
index 9b6ee15..48227ff 100644
--- a/temp2/CA/src/DM.java
+++ b/temp2/CA/src/DM.java
@@ -1,33 +1,33 @@
import java.util.ArrayList;
public class DM {
ArrayList<String> memory = new ArrayList<String>();
ArrayList<String> index = new ArrayList<String>();
p... | false | true | public void writeData(String address, String data){
long temp = 0;
String binaryValue = "";
index.add(address);
memory.add(data.substring(0, 7));
temp = Long.parseLong(address,2)+1;
binaryValue = Long.toBinaryString(temp);
index.add(binaryValue);
memory.add(data.substring(8, 15));
temp = Long.pars... | public void writeData(String address, String data){
long temp = 0;
String binaryValue = "";
index.add(address);
memory.add(data.substring(0, 8));
temp = Long.parseLong(address,2)+1;
binaryValue = Long.toBinaryString(temp);
index.add(binaryValue);
memory.add(data.substring(8, 16));
temp = Long.pars... |
diff --git a/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsComponentTest.java b/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/src/org/jboss/tools/jsf/vpe/facelets/test/FaceletsComponentTest.java
index 47c8638ef..024a9e3dc 100644
--- a/jsf/tests/org.jboss.tools.jsf.v... | true | true | public void testParam() throws Throwable {
// check absolute path
nsIDOMElement element = performTestForFaceletComponent("components/param.xhtml");
nsIDOMNode node = (nsIDOMNode) element
.queryInterface(nsIDOMNode.NS_IDOMNODE_IID);
List<nsIDOMNode> elements = new ArrayList<nsIDOMNode>();
// find "table" e... | public void testParam() throws Throwable {
// check absolute path
nsIDOMElement element = performTestForFaceletComponent("components/param.xhtml");
nsIDOMNode node = (nsIDOMNode) element
.queryInterface(nsIDOMNode.NS_IDOMNODE_IID);
List<nsIDOMNode> elements = new ArrayList<nsIDOMNode>();
// find "table" e... |
diff --git a/bundles/Dbus/src/main/java/org/paxle/dbus/impl/search/tracker/TrackerSearchProvider.java b/bundles/Dbus/src/main/java/org/paxle/dbus/impl/search/tracker/TrackerSearchProvider.java
index 14a99c96..d75e07e5 100644
--- a/bundles/Dbus/src/main/java/org/paxle/dbus/impl/search/tracker/TrackerSearchProvider.java
... | true | true | public void search(AToken token, List<IIndexerDocument> results, int maxCount, long timeout) throws IOException, InterruptedException {
long start = System.currentTimeMillis();
try {
String request = TrackerQueryFactory.transformToken(token, new TrackerQueryFactory());
List<String> result = this.search.T... | public void search(AToken token, List<IIndexerDocument> results, int maxCount, long timeout) throws IOException, InterruptedException {
long start = System.currentTimeMillis();
try {
String request = new TrackerQueryFactory().transformToken(token);
List<String> result = this.search.Text(searchID++, Track... |
diff --git a/luni/src/main/java/java/nio/NIOAccess.java b/luni/src/main/java/java/nio/NIOAccess.java
index 79c4e3729..2a11231e8 100644
--- a/luni/src/main/java/java/nio/NIOAccess.java
+++ b/luni/src/main/java/java/nio/NIOAccess.java
@@ -1,85 +1,85 @@
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Li... | true | true | static long getBasePointer(Buffer b) {
if (b instanceof DirectBuffer) {
int address = ((DirectBuffer) b).getEffectiveAddress();
if (address == 0) {
return 0L;
}
return address + (b.position() << b._elementSizeShift);
}
return 0L... | static long getBasePointer(Buffer b) {
if (b instanceof DirectBuffer) {
int address = ((DirectBuffer) b).getEffectiveAddress();
if (address == 0) {
return 0L;
}
return address + (b.position << b._elementSizeShift);
}
return 0L;
... |
diff --git a/src/org/napile/idea/plugin/run/NapileProgramRunner.java b/src/org/napile/idea/plugin/run/NapileProgramRunner.java
index ea437b0..a5621f1 100644
--- a/src/org/napile/idea/plugin/run/NapileProgramRunner.java
+++ b/src/org/napile/idea/plugin/run/NapileProgramRunner.java
@@ -1,43 +1,45 @@
/*
* Copyright 201... | true | true | public boolean canRun(@NotNull String executorId, @NotNull RunProfile profile)
{
NapileRunConfiguration runConfiguration = (NapileRunConfiguration) profile;
return runConfiguration.getConfigurationModule().getModule() != null && runConfiguration.findSdk() != null;
}
| public boolean canRun(@NotNull String executorId, @NotNull RunProfile profile)
{
if(!(profile instanceof NapileRunConfiguration))
return false;
NapileRunConfiguration runConfiguration = (NapileRunConfiguration) profile;
return runConfiguration.getConfigurationModule().getModule() != null && runConfiguration... |
diff --git a/src/com/dmdirc/parser/ProcessMode.java b/src/com/dmdirc/parser/ProcessMode.java
index 4225b2045..f045219b8 100644
--- a/src/com/dmdirc/parser/ProcessMode.java
+++ b/src/com/dmdirc/parser/ProcessMode.java
@@ -1,353 +1,353 @@
/*
* Copyright (c) 2006-2008 Chris Smith, Shane Mc Cormack, Gregory Holmes
*
... | true | true | public void processChanMode(String sParam, String token[], String sModestr[], String sChannelName) {
StringBuilder sFullModeStr = new StringBuilder();
String sNonUserModeStr = "";
String sNonUserModeStrParams = "";
String sModeParam;
String sTemp;
int nParam = 1;
long nTemp = 0, nValue = 0, nCurrent = 0;... | public void processChanMode(String sParam, String token[], String sModestr[], String sChannelName) {
StringBuilder sFullModeStr = new StringBuilder();
String sNonUserModeStr = "";
String sNonUserModeStrParams = "";
String sModeParam;
String sTemp;
int nParam = 1;
long nTemp = 0, nValue = 0, nCurrent = 0;... |
diff --git a/odfdom/src/test/java/org/odftoolkit/odfdom/pkg/LoadSaveErrorTest.java b/odfdom/src/test/java/org/odftoolkit/odfdom/pkg/LoadSaveErrorTest.java
index 864cb979..5215fb48 100644
--- a/odfdom/src/test/java/org/odftoolkit/odfdom/pkg/LoadSaveErrorTest.java
+++ b/odfdom/src/test/java/org/odftoolkit/odfdom/pkg/Load... | true | true | public void testInvalidZipAsODF() throws SAXException, IOException {
ByteArrayOutputStream baout = new ByteArrayOutputStream();
ZipOutputStream zout = new ZipOutputStream(baout);
ZipEntry entry = new ZipEntry("mimetype");
zout.putNextEntry(entry);
zout.write(OdfDocument.OdfMediaType.TEXT.getMediaTypeString()... | public void testInvalidZipAsODF() throws Exception {
ByteArrayOutputStream baout = new ByteArrayOutputStream();
ZipOutputStream zout = new ZipOutputStream(baout);
ZipEntry entry = new ZipEntry("mimetype");
zout.putNextEntry(entry);
zout.write(OdfDocument.OdfMediaType.TEXT.getMediaTypeString().getBytes("US-AS... |
diff --git a/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java b/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java
index 0b87ec3f7e..4890347591 100644
--- a/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java
+++ b/drools-analytics/src/test/java/org/drools/analy... | true | true | public void testAnalyzer() throws Exception {
Analyzer anal = new Analyzer();
DrlParser p = new DrlParser();
InputStreamReader reader = new InputStreamReader(this.getClass().getResourceAsStream("Misc3.drl"));
PackageDescr pkg = p.parse(reader);
assertFalse(p.hasErrors());
anal.addPackageDescr(pkg);
ana... | public void fixmetestAnalyzer() throws Exception {
Analyzer anal = new Analyzer();
DrlParser p = new DrlParser();
InputStreamReader reader = new InputStreamReader(this.getClass().getResourceAsStream("Misc3.drl"));
PackageDescr pkg = p.parse(reader);
assertFalse(p.hasErrors());
anal.addPackageDescr(pkg);
... |
diff --git a/testsrc/org/olap4j/ConnectionTest.java b/testsrc/org/olap4j/ConnectionTest.java
index f97419a..382a428 100644
--- a/testsrc/org/olap4j/ConnectionTest.java
+++ b/testsrc/org/olap4j/ConnectionTest.java
@@ -1,2078 +1,2077 @@
/*
// $Id$
// This software is subject to the terms of the Common Public License
... | false | true | public void testCell() throws Exception {
connection = tester.createConnection();
Statement statement = connection.createStatement();
final OlapStatement olapStatement =
tester.getWrapper().unwrap(statement, OlapStatement.class);
CellSet cellSet =
olapStatemen... | public void testCell() throws Exception {
connection = tester.createConnection();
Statement statement = connection.createStatement();
final OlapStatement olapStatement =
tester.getWrapper().unwrap(statement, OlapStatement.class);
CellSet cellSet =
olapStatemen... |
diff --git a/xjc/src/com/sun/tools/xjc/reader/xmlschema/ExpressionBuilder.java b/xjc/src/com/sun/tools/xjc/reader/xmlschema/ExpressionBuilder.java
index a9404a5b..652fd5e3 100644
--- a/xjc/src/com/sun/tools/xjc/reader/xmlschema/ExpressionBuilder.java
+++ b/xjc/src/com/sun/tools/xjc/reader/xmlschema/ExpressionBuilder.ja... | false | true | public Expression modelGroup(XSModelGroup group) {
XSModelGroup.Compositor comp = group.getCompositor();
if(comp==XSModelGroup.CHOICE) {
Expression e = null;
for (XSParticle p : group.getChildren()) {
if(e==null) e = particle(p);
else ... | public Expression modelGroup(XSModelGroup group) {
XSModelGroup.Compositor comp = group.getCompositor();
if(comp==XSModelGroup.CHOICE) {
// empty choice is not epsilon, but empty set,
// so this initial value is incorrect. But this
// kinda works.
// p... |
diff --git a/src/java/com/threerings/whirled/zone/server/ZoneMoveHandler.java b/src/java/com/threerings/whirled/zone/server/ZoneMoveHandler.java
index ba296b36..fe8aeffb 100644
--- a/src/java/com/threerings/whirled/zone/server/ZoneMoveHandler.java
+++ b/src/java/com/threerings/whirled/zone/server/ZoneMoveHandler.java
@... | true | true | protected void effectSceneMove (SceneManager scmgr)
throws InvocationException
{
// move to the place object associated with this scene
int ploid = scmgr.getPlaceObject().getOid();
PlaceConfig config = _locman.moveTo(_body, ploid);
// now that we've moved, we can update ... | protected void effectSceneMove (SceneManager scmgr)
throws InvocationException
{
// move to the place object associated with this scene
int ploid = scmgr.getPlaceObject().getOid();
PlaceConfig config = _locman.moveTo(_body, ploid);
// now that we've moved, we can update ... |
diff --git a/site-manage-group-section-role-helper/tool/src/java/org/sakaiproject/site/tool/helper/managegroupsectionrole/rsf/GroupEditProducer.java b/site-manage-group-section-role-helper/tool/src/java/org/sakaiproject/site/tool/helper/managegroupsectionrole/rsf/GroupEditProducer.java
index 051c877a..cfa50037 100644
-... | true | true | public void fillComponents(UIContainer arg0, ViewParameters arg1, ComponentChecker arg2) {
String state="";
// group
Group g = null;
// id for group
String groupId = null;
// title for group
String groupTitle = null;
// description for group
String groupDescr... | public void fillComponents(UIContainer arg0, ViewParameters arg1, ComponentChecker arg2) {
String state="";
// group
Group g = null;
// id for group
String groupId = null;
// title for group
String groupTitle = null;
// description for group
String groupDescr... |
diff --git a/DataTableUI/src/org/mongkie/ui/datatable/graph/AbstractDataTable.java b/DataTableUI/src/org/mongkie/ui/datatable/graph/AbstractDataTable.java
index 94be399..2db82b5 100644
--- a/DataTableUI/src/org/mongkie/ui/datatable/graph/AbstractDataTable.java
+++ b/DataTableUI/src/org/mongkie/ui/datatable/graph/Abstra... | false | true | protected AbstractDataTable() {
super("Name");
setBorder(BorderFactory.createEmptyBorder());
final Outline outline = getOutline();
outline.setRootVisible(false);
outline.getTableHeader().setPreferredSize(new Dimension(0, 24));
outline.setSelectVisibleColumnsLabel("Sh... | protected AbstractDataTable() {
super("Name");
setBorder(BorderFactory.createEmptyBorder());
final Outline outline = getOutline();
outline.setRootVisible(false);
outline.getTableHeader().setPreferredSize(new Dimension(0, 24));
outline.setSelectVisibleColumnsLabel("Sh... |
diff --git a/viewer/src/main/java/nl/b3p/viewer/stripes/CombineImageActionBean.java b/viewer/src/main/java/nl/b3p/viewer/stripes/CombineImageActionBean.java
index e55f41627..2dd65be7a 100644
--- a/viewer/src/main/java/nl/b3p/viewer/stripes/CombineImageActionBean.java
+++ b/viewer/src/main/java/nl/b3p/viewer/stripes/Com... | true | true | public Resolution create() throws JSONException, Exception {
JSONObject jRequest = new JSONObject(params);
JSONObject jResponse = new JSONObject();
String error=null;
String pageFormat = jRequest.has("pageformat") ? jRequest.getString("pageformat") : PrintActionBean.A4;
... | public Resolution create() throws JSONException, Exception {
JSONObject jRequest = new JSONObject(params);
JSONObject jResponse = new JSONObject();
String error=null;
String pageFormat = jRequest.has("pageformat") ? jRequest.getString("pageformat") : PrintActionBean.A4;
... |
diff --git a/src/com/barroncraft/sce/ServerResetter.java b/src/com/barroncraft/sce/ServerResetter.java
index 2793328..405b4ce 100644
--- a/src/com/barroncraft/sce/ServerResetter.java
+++ b/src/com/barroncraft/sce/ServerResetter.java
@@ -1,45 +1,45 @@
package com.barroncraft.sce;
import java.io.File;
import java.io... | true | true | public static boolean setResetFlag(boolean reset)
{
File resetFile = new File(FileName);
if (resetFile.exists() == reset)
return true;
try
{
if (reset)
return resetFile.createNewFile();
else
return resetFile.delete();
}
cat... | public static boolean resetFlag(boolean reset)
{
File resetFile = new File(FileName);
if (resetFile.exists() == reset)
return true;
try
{
if (reset)
return resetFile.createNewFile();
else
return resetFile.delete();
}
catch(... |
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java
index 21a7b3d772..3e87b766f8 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/ZipUtils.ja... | false | true | public static File unzip(File zip, File toDir, ZipEntryFilter filter) throws IOException {
if (!toDir.exists()) {
FileUtils.forceMkdir(toDir);
}
ZipFile zipFile = new ZipFile(zip);
try {
Enumeration<? extends ZipEntry> entries = zipFile.entries();
while (entries.hasMoreElements()) {... | public static File unzip(File zip, File toDir, ZipEntryFilter filter) throws IOException {
if (!toDir.exists()) {
FileUtils.forceMkdir(toDir);
}
ZipFile zipFile = new ZipFile(zip);
try {
Enumeration<? extends ZipEntry> entries = zipFile.entries();
while (entries.hasMoreElements()) {... |
diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java
index a50b5fe32..1bcc80282 100644
--- a/htroot/yacysearch.java
+++ b/htroot/yacysearch.java
@@ -1,515 +1,527 @@
// yacysearch.java
// -----------------------
// part of the AnomicHTTPD caching proxy
// (C) by Michael Peter Christen; mc@yacy.net
// first ... | false | true | public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) {
final plasmaSwitchboard sb = (plasmaSwitchboard) env;
sb.localSearchLastAccess = System.currentTimeMillis();
final boolean searchAllowed = sb.getConfigBool("pub... | public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) {
final plasmaSwitchboard sb = (plasmaSwitchboard) env;
sb.localSearchLastAccess = System.currentTimeMillis();
final boolean searchAllowed = sb.getConfigBool("pub... |
diff --git a/src/org/apache/fop/fo/flow/ExternalGraphic.java b/src/org/apache/fop/fo/flow/ExternalGraphic.java
index a6d2bcee9..297908a4b 100644
--- a/src/org/apache/fop/fo/flow/ExternalGraphic.java
+++ b/src/org/apache/fop/fo/flow/ExternalGraphic.java
@@ -1,243 +1,243 @@
/*
=======================================... | true | true | public Status layout(Area area) throws FOPException {
if (this.marker == START) {
String fontFamily =
this.properties.get("font-family").getString();
String fontStyle =
this.properties.get("font-style").getString();
String fontWeight =
... | public Status layout(Area area) throws FOPException {
if (this.marker == START) {
String fontFamily =
this.properties.get("font-family").getString();
String fontStyle =
this.properties.get("font-style").getString();
String fontWeight =
... |
diff --git a/src/com/vloxlands/scene/SceneSettings.java b/src/com/vloxlands/scene/SceneSettings.java
index 9796b0d..4e1186d 100644
--- a/src/com/vloxlands/scene/SceneSettings.java
+++ b/src/com/vloxlands/scene/SceneSettings.java
@@ -1,87 +1,87 @@
package com.vloxlands.scene;
import org.lwjgl.opengl.Display;
impo... | true | true | public void init()
{
setBackground();
setTitle(Tr._("settings"));
content.add(new Container(0, 115, Display.getWidth() / 2, Display.getHeight() - 220));
content.add(new Label(20, 125, 0, 25, Tr._("language") + ":", false));
content.add(new FlagButton(Display.getWidth() / 4, 130, "de"));
content.add(... | public void init()
{
setBackground();
setTitle(Tr._("settings"));
content.add(new Container(0, 115, Display.getWidth() / 2, Display.getHeight() - 220));
content.add(new Label(20, 125, 0, 25, Tr._("language") + ":", false));
content.add(new FlagButton(Display.getWidth() / 4, 130, "de"));
content.add(... |
diff --git a/src/me/confuserr/banmanager/scheduler/muteAsync.java b/src/me/confuserr/banmanager/scheduler/muteAsync.java
index 163aa34..6f782fa 100644
--- a/src/me/confuserr/banmanager/scheduler/muteAsync.java
+++ b/src/me/confuserr/banmanager/scheduler/muteAsync.java
@@ -1,76 +1,76 @@
package me.confuserr.banmanager.... | true | true | public void run() {
// Check for new mutes
ResultSet result = localConn.query("SELECT * FROM "+plugin.localMutesTable+" WHERE mute_time > "+lastRun+"");
long now = System.currentTimeMillis() / 1000;
try {
while(result.next()) {
// Add them to the muted list
String player = result.getString("mu... | public void run() {
// Check for new mutes
ResultSet result = localConn.query("SELECT * FROM "+plugin.localMutesTable+" WHERE mute_time > "+lastRun+"");
long now = System.currentTimeMillis() / 1000;
try {
while(result.next()) {
// Add them to the muted list
String player = result.getString("mu... |
diff --git a/src/main/java/tconstruct/util/TCraftingHandler.java b/src/main/java/tconstruct/util/TCraftingHandler.java
index e09e8754a..7e479161e 100644
--- a/src/main/java/tconstruct/util/TCraftingHandler.java
+++ b/src/main/java/tconstruct/util/TCraftingHandler.java
@@ -1,56 +1,56 @@
package tconstruct.util;
impo... | false | true | public void onCrafting (ItemCraftedEvent event)// EntityPlayer player,
// ItemStack itemstack,
// IInventory craftMatrix)
{
Item item = event.crafting.getItem();
if (!event.player.worldObj.isRem... | public void onCrafting (ItemCraftedEvent event)// EntityPlayer player,
// ItemStack itemstack,
// IInventory craftMatrix)
{
Item item = event.crafting.getItem();
if (!event.player.worldObj.isRem... |
diff --git a/NeoCraft_common/MMC/neocraft/recipe/RecipeRegistry.java b/NeoCraft_common/MMC/neocraft/recipe/RecipeRegistry.java
index 25cbe8e..088894c 100644
--- a/NeoCraft_common/MMC/neocraft/recipe/RecipeRegistry.java
+++ b/NeoCraft_common/MMC/neocraft/recipe/RecipeRegistry.java
@@ -1,34 +1,34 @@
package MMC.neocraft... | true | true | public static void registerRecipes()
{
GameRegistry.addRecipe(new ItemStack(NCitem.staveSinensium), " C", " S ", "G ", 'C', NCitem.conglomerateSinensium, 'S', Item.stick, 'G', Item.ingotGold);
GameRegistry.addRecipe(new ItemStack(NCitem.knifePruning), "HH", " S", "S ", 'H', Item.ingotIron, 'S', Item.stick);
G... | public static void registerRecipes()
{
GameRegistry.addRecipe(new ItemStack(NCitem.staveSinensium), " C", " S ", "G ", 'C', NCitem.conglomerateSinensium, 'S', Item.stick, 'G', Item.ingotGold);
GameRegistry.addRecipe(new ItemStack(NCitem.knifePruning), "HH", " S", "S ", 'H', Item.ingotIron, 'S', Item.stick);
G... |
diff --git a/WEB-INF/src/org/cdlib/xtf/textEngine/DocHitImpl.java b/WEB-INF/src/org/cdlib/xtf/textEngine/DocHitImpl.java
index c724e58c..f8c930bf 100644
--- a/WEB-INF/src/org/cdlib/xtf/textEngine/DocHitImpl.java
+++ b/WEB-INF/src/org/cdlib/xtf/textEngine/DocHitImpl.java
@@ -1,403 +1,406 @@
package org.cdlib.xtf.textEn... | true | true | private void loadMetaField(String name, String value, Document docContents,
AttribList metaData, boolean isTokenized)
{
// First, mark up the value.
String markedValue;
if (isTokenized)
markedValue = snippetMaker.markField(docContents, fieldSpans, name, value);
el... | private void loadMetaField(String name, String value, Document docContents,
AttribList metaData, boolean isTokenized)
{
// First, mark up the value.
String markedValue;
if (isTokenized)
markedValue = snippetMaker.markField(docContents, fieldSpans, name, value);
el... |
diff --git a/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java b/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java
index addbf7f6..67884bde 100644
--- a/src/main/java/net/pterodactylus/sone/web/page/FreenetTemplatePage.java
+++ b/src/main/java/net/pterodactylus/sone/web/page/Fr... | true | true | public Response handleRequest(FreenetRequest request, Response response) throws IOException {
String redirectTarget = getRedirectTarget(request);
if (redirectTarget != null) {
return new RedirectResponse(redirectTarget);
}
if (isFullAccessOnly() && !request.getToadletContext().isAllowedFullAccess()) {
r... | public Response handleRequest(FreenetRequest request, Response response) throws IOException {
String redirectTarget = getRedirectTarget(request);
if (redirectTarget != null) {
return new RedirectResponse(redirectTarget);
}
if (isFullAccessOnly() && !request.getToadletContext().isAllowedFullAccess()) {
r... |
diff --git a/src/ImageHolder.java b/src/ImageHolder.java
index f6358e7..29bf85f 100644
--- a/src/ImageHolder.java
+++ b/src/ImageHolder.java
@@ -1,301 +1,302 @@
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.event.MouseEvent;
import java.awt.event.... | false | true | public Image getImage(int nth)
{
File[] myFiles = myPictureDirectory.listFiles();
// count how many pngs are in directory
int directoryLength = 0;
for(int i = 0; i < myFiles.length; i++)
{
if (isPicture(myFiles[i].toString()))
directoryLength++;
}
System.out.println("all: "+myFiles.length+ ", ... | public Image getImage(int nth)
{
System.out.println("given nth: "+nth);
File[] myFiles = myPictureDirectory.listFiles();
// count how many pngs are in directory
int directoryLength = 0;
for(int i = 0; i < myFiles.length; i++)
{
if (isPicture(myFiles[i].toString()))
directoryLength++;
}
//Sys... |
diff --git a/ext/java/sandbox/SandboxFull.java b/ext/java/sandbox/SandboxFull.java
index ebfb620..0d6ed23 100644
--- a/ext/java/sandbox/SandboxFull.java
+++ b/ext/java/sandbox/SandboxFull.java
@@ -1,303 +1,305 @@
package sandbox;
import java.util.Collection;
import java.util.Map;
import org.jruby.Ruby;
import ... | true | true | private RubyModule importClassPath(String path, final boolean link) {
RubyModule runtimeModule = getRuntime().getObject();
RubyModule wrappedModule = wrapped.getObject();
if (path.startsWith("#")) {
throw getRuntime().newArgumentError("can't import anonymous class " + path);
}
for (String ... | private RubyModule importClassPath(String path, final boolean link) {
RubyModule runtimeModule = getRuntime().getObject();
RubyModule wrappedModule = wrapped.getObject();
if (path.startsWith("#")) {
throw getRuntime().newArgumentError("can't import anonymous class " + path);
}
for (String ... |
diff --git a/src/com/android/exchange/adapter/EmailSyncAdapter.java b/src/com/android/exchange/adapter/EmailSyncAdapter.java
index 2cd43c2a..18324ff4 100644
--- a/src/com/android/exchange/adapter/EmailSyncAdapter.java
+++ b/src/com/android/exchange/adapter/EmailSyncAdapter.java
@@ -1,698 +1,699 @@
/*
* Copyright (C)... | false | true | public boolean sendLocalChanges(Serializer s) throws IOException {
ContentResolver cr = mContext.getContentResolver();
// Find any of our deleted items
Cursor c = cr.query(Message.DELETED_CONTENT_URI, Message.LIST_PROJECTION,
MessageColumns.MAILBOX_KEY + '=' + mMailbox.mId, ... | public boolean sendLocalChanges(Serializer s) throws IOException {
ContentResolver cr = mContext.getContentResolver();
// Find any of our deleted items
Cursor c = cr.query(Message.DELETED_CONTENT_URI, Message.LIST_PROJECTION,
MessageColumns.MAILBOX_KEY + '=' + mMailbox.mId, ... |
diff --git a/src/main/java/in/mDev/MiracleM4n/mChatSuite/mChatSuite.java b/src/main/java/in/mDev/MiracleM4n/mChatSuite/mChatSuite.java
index f021bdb..d49780c 100644
--- a/src/main/java/in/mDev/MiracleM4n/mChatSuite/mChatSuite.java
+++ b/src/main/java/in/mDev/MiracleM4n/mChatSuite/mChatSuite.java
@@ -1,559 +1,560 @@
pa... | false | true | public void onEnable() {
// 1st Startup Timer
sTime1 = new Date().getTime();
// Initialize Plugin Data
pm = getServer().getPluginManager();
pdfFile = getDescription();
mSuite = this;
// First we kill Essentials Chat
killEss();
// Initialize ... | public void onEnable() {
// 1st Startup Timer
sTime1 = new Date().getTime();
// Initialize Plugin Data
pm = getServer().getPluginManager();
pdfFile = getDescription();
mSuite = this;
// First we kill Essentials Chat
killEss();
// Initialize ... |
diff --git a/src/cz/muni/stanse/cfgparser/CfgUnit.java b/src/cz/muni/stanse/cfgparser/CfgUnit.java
index 4f19130..ff50270 100644
--- a/src/cz/muni/stanse/cfgparser/CfgUnit.java
+++ b/src/cz/muni/stanse/cfgparser/CfgUnit.java
@@ -1,176 +1,176 @@
/* Distributed under GPLv2 */
package cz.muni.stanse.cfgparser;
impo... | true | true | private static CFG parseCfg(String cfgName, JSONObject jsonCfg, File[] filenames) throws JSONException, ParserException {
// TODO: Do not ignore non-normal control flow paths
// (i.e. succs that have succ index other than 0).
JSONArray tags = jsonCfg.getJSONArray("tags");
JSONArray... | private static CFG parseCfg(String cfgName, JSONObject jsonCfg, File[] filenames) throws JSONException, ParserException {
// TODO: Do not ignore non-normal control flow paths
// (i.e. succs that have succ index other than 0).
JSONArray tags = jsonCfg.getJSONArray("tags");
JSONArray... |
diff --git a/src/com/untamedears/JukeAlert/JukeAlert.java b/src/com/untamedears/JukeAlert/JukeAlert.java
index 8455cf4..a7fff30 100755
--- a/src/com/untamedears/JukeAlert/JukeAlert.java
+++ b/src/com/untamedears/JukeAlert/JukeAlert.java
@@ -1,88 +1,88 @@
package com.untamedears.JukeAlert;
import com.untamedears.Juk... | false | true | public void onEnable() {
instance = this;
configManager = new ConfigManager();
jaLogger = new JukeAlertLogger();
snitchManager = new SnitchManager();
groupMediator = new GroupMediator();
registerEvents();
registerCommands();
snitchManager.loadSnitches();
}
| public void onEnable() {
instance = this;
configManager = new ConfigManager();
groupMediator = new GroupMediator();
jaLogger = new JukeAlertLogger();
snitchManager = new SnitchManager();
registerEvents();
registerCommands();
snitchManager.loadSnitches();
}
|
diff --git a/src/java/fedora/server/storage/translation/FOXMLDODeserializer.java b/src/java/fedora/server/storage/translation/FOXMLDODeserializer.java
index 40d231e65..468fa6e28 100755
--- a/src/java/fedora/server/storage/translation/FOXMLDODeserializer.java
+++ b/src/java/fedora/server/storage/translation/FOXMLDODeser... | false | true | public void startElement(String uri, String localName, String qName,
Attributes a) throws SAXException {
// Initialize string buffer to hold content of the new element.
// This will start a fresh buffer for every element encountered.
m_elementContent=new StringBuffer();
if (... | public void startElement(String uri, String localName, String qName,
Attributes a) throws SAXException {
// Initialize string buffer to hold content of the new element.
// This will start a fresh buffer for every element encountered.
m_elementContent=new StringBuffer();
if (... |
diff --git a/svn/org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/CFMLPlugin.java b/svn/org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/CFMLPlugin.java
index e8735aca..829ad0d4 100644
--- a/svn/org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/CFMLPlugin.java
+++ b/svn/org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/CFMLP... | false | true | public void start(BundleContext context) throws Exception {
super.start(context);
/*
* //System.out.println( "Property store file set to " +
* CFMLPlugin.getDefault().getStateLocation().toString() +
* "/properties.ini" );
*/
PropertyConfigurator.configure(CFMLPlugin.getDefault().getBundle().getEntr... | public void start(BundleContext context) throws Exception {
super.start(context);
/*
* //System.out.println( "Property store file set to " +
* CFMLPlugin.getDefault().getStateLocation().toString() +
* "/properties.ini" );
*/
PropertyConfigurator.configure(CFMLPlugin.getDefault().getBundle().getEntr... |
diff --git a/plugins/org.eclipse.acceleo.parser/src/org/eclipse/acceleo/internal/parser/ast/ocl/environment/AcceleoUMLReflection.java b/plugins/org.eclipse.acceleo.parser/src/org/eclipse/acceleo/internal/parser/ast/ocl/environment/AcceleoUMLReflection.java
index 27f8d6c5..6166ebaa 100644
--- a/plugins/org.eclipse.accel... | true | true | public List<EOperation> getOperations(EClassifier classifier) {
final List<EOperation> operations = new ArrayList<EOperation>(delegate.getOperations(classifier));
final Iterator<EOperation> operationIterator = operations.iterator();
while (operationIterator.hasNext()) {
if (operationIterator.next() == EOBJECT... | public synchronized List<EOperation> getOperations(EClassifier classifier) {
final List<EOperation> operations = new ArrayList<EOperation>(delegate.getOperations(classifier));
final Iterator<EOperation> operationIterator = operations.iterator();
while (operationIterator.hasNext()) {
if (operationIterator.next... |
diff --git a/org.eclipse.mylyn.java.tasks/src/org/eclipse/mylyn/internal/java/tasks/JavaStackTraceHyperlinkDetector.java b/org.eclipse.mylyn.java.tasks/src/org/eclipse/mylyn/internal/java/tasks/JavaStackTraceHyperlinkDetector.java
index 27b80bc2b..3f905acda 100644
--- a/org.eclipse.mylyn.java.tasks/src/org/eclipse/myly... | true | true | protected List<IHyperlink> detectHyperlinks(ITextViewer textViewer, String content, int contentOffset,
int offsetInContent) {
List<IHyperlink> links = null;
Matcher m = stackTracePattern.matcher(content);
while (m.find()) {
if (isInRegion(offsetInContent, m)) {
if (links == null) {
links = new Arr... | protected List<IHyperlink> detectHyperlinks(ITextViewer textViewer, String content, int offsetInContent,
int contentOffset) {
List<IHyperlink> links = null;
Matcher m = stackTracePattern.matcher(content);
while (m.find()) {
if (isInRegion(offsetInContent, m)) {
if (links == null) {
links = new Arr... |
diff --git a/src/org/geworkbench/parsers/PatternFileFormat.java b/src/org/geworkbench/parsers/PatternFileFormat.java
index 2450c758..b9b44584 100644
--- a/src/org/geworkbench/parsers/PatternFileFormat.java
+++ b/src/org/geworkbench/parsers/PatternFileFormat.java
@@ -1,266 +1,266 @@
package org.geworkbench.parsers;
... | true | true | private DSDataSet<?> getPatternResultSet(File file)
throws InputFileFormatException, InterruptedIOException {{
// TODO Auto-generated method stub
// get list of data sets that a selected adjacency matrix could be
// attached to
this.fileName = file.getName();
ArrayList<DataSetNode> dataSetstmp = new... | private DSDataSet<?> getPatternResultSet(File file)
throws InputFileFormatException, InterruptedIOException {{
// TODO Auto-generated method stub
// get list of data sets that a selected adjacency matrix could be
// attached to
this.fileName = file.getName();
ArrayList<DataSetNode> dataSetstmp = new... |
diff --git a/exchange2/src/com/android/exchange/adapter/ProvisionParser.java b/exchange2/src/com/android/exchange/adapter/ProvisionParser.java
index de30111..0825f74 100644
--- a/exchange2/src/com/android/exchange/adapter/ProvisionParser.java
+++ b/exchange2/src/com/android/exchange/adapter/ProvisionParser.java
@@ -1,6... | false | true | private void parseProvisionDocWbxml() throws IOException {
Policy policy = new Policy();
ArrayList<Integer> unsupportedList = new ArrayList<Integer>();
boolean passwordEnabled = false;
while (nextTag(Tags.PROVISION_EAS_PROVISION_DOC) != END) {
boolean tagIsSupported = tr... | private void parseProvisionDocWbxml() throws IOException {
Policy policy = new Policy();
ArrayList<Integer> unsupportedList = new ArrayList<Integer>();
boolean passwordEnabled = false;
while (nextTag(Tags.PROVISION_EAS_PROVISION_DOC) != END) {
boolean tagIsSupported = tr... |
diff --git a/bundles/org.eclipse.rap.rwt/src/org/eclipse/rwt/internal/theme/ThemeStoreWriter.java b/bundles/org.eclipse.rap.rwt/src/org/eclipse/rwt/internal/theme/ThemeStoreWriter.java
index a078d35ad..dce63c89f 100644
--- a/bundles/org.eclipse.rap.rwt/src/org/eclipse/rwt/internal/theme/ThemeStoreWriter.java
+++ b/bund... | false | true | private JsonObject createValues() {
JsonObject dimensionMap = new JsonObject();
JsonObject boxDimensionMap = new JsonObject();
JsonObject imageMap = new JsonObject();
JsonObject gradientMap = new JsonObject();
JsonObject colorMap = new JsonObject();
JsonObject fontMap = new JsonObject();
J... | private JsonObject createValues() {
JsonObject dimensionMap = new JsonObject();
JsonObject boxDimensionMap = new JsonObject();
JsonObject imageMap = new JsonObject();
JsonObject gradientMap = new JsonObject();
JsonObject colorMap = new JsonObject();
JsonObject fontMap = new JsonObject();
J... |
diff --git a/src/main/java/be/Balor/Manager/Commands/Player/KickAllPlayers.java b/src/main/java/be/Balor/Manager/Commands/Player/KickAllPlayers.java
index 909204d2..49687a81 100644
--- a/src/main/java/be/Balor/Manager/Commands/Player/KickAllPlayers.java
+++ b/src/main/java/be/Balor/Manager/Commands/Player/KickAllPlayer... | true | true | public void execute(final CommandSender sender, final CommandArgs args)
throws ActionNotPermitedException, PlayerNotFound {
String message = "";
String playerName = "";
if (args.length >= 1) {
for (int i = 0; i < args.length; i++) {
message += args.getString(i) + " ";
}
} else {
message = "You ... | public void execute(final CommandSender sender, final CommandArgs args)
throws ActionNotPermitedException, PlayerNotFound {
String message = "";
String playerName = "";
if (args.length >= 1) {
for (int i = 0; i < args.length; i++) {
message += args.getString(i) + " ";
}
} else {
message = "You ... |
diff --git a/bundles/ui/org.openhab.ui.webapp/src/main/java/org/openhab/ui/webapp/internal/render/SwitchRenderer.java b/bundles/ui/org.openhab.ui.webapp/src/main/java/org/openhab/ui/webapp/internal/render/SwitchRenderer.java
index 73f22a25..41a32efa 100644
--- a/bundles/ui/org.openhab.ui.webapp/src/main/java/org/openha... | true | true | public EList<Widget> renderWidget(Widget w, StringBuilder sb) throws RenderException {
Switch s = (Switch) w;
String snippetName = null;
Item item;
try {
item = itemUIRegistry.getItem(w.getItem());
if(s.getMappings().size()==0) {
if(item instanceof RollershutterItem) {
snippetName = "rollerbl... | public EList<Widget> renderWidget(Widget w, StringBuilder sb) throws RenderException {
Switch s = (Switch) w;
String snippetName = null;
Item item;
try {
item = itemUIRegistry.getItem(w.getItem());
if(s.getMappings().size()==0) {
if(item instanceof RollershutterItem) {
snippetName = "rollerbl... |
diff --git a/src/main/java/com/gitblit/wicket/panels/LogPanel.java b/src/main/java/com/gitblit/wicket/panels/LogPanel.java
index f8d980e5..dad25a05 100644
--- a/src/main/java/com/gitblit/wicket/panels/LogPanel.java
+++ b/src/main/java/com/gitblit/wicket/panels/LogPanel.java
@@ -1,197 +1,197 @@
/*
* Copyright 2011 gi... | true | true | public LogPanel(String wicketId, final String repositoryName, final String objectId,
Repository r, int limit, int pageOffset, boolean showRemoteRefs) {
super(wicketId);
boolean pageResults = limit <= 0;
int itemsPerPage = app().settings().getInteger(Keys.web.itemsPerPage, 50);
if (itemsPerPage <= 1) {
it... | public LogPanel(String wicketId, final String repositoryName, final String objectId,
Repository r, int limit, int pageOffset, boolean showRemoteRefs) {
super(wicketId);
boolean pageResults = limit <= 0;
int itemsPerPage = app().settings().getInteger(Keys.web.itemsPerPage, 50);
if (itemsPerPage <= 1) {
it... |
diff --git a/src/com/jidesoft/swing/ComboBoxSearchable.java b/src/com/jidesoft/swing/ComboBoxSearchable.java
index d44481d8..09287b8c 100644
--- a/src/com/jidesoft/swing/ComboBoxSearchable.java
+++ b/src/com/jidesoft/swing/ComboBoxSearchable.java
@@ -1,182 +1,183 @@
/*
* @(#)${NAME}
*
* Copyright 2002 - 2004 JID... | true | true | protected void setSelectedIndex(int index, boolean incremental) {
if (((JComboBox) _component).getSelectedIndex() != index) {
((JComboBox) _component).setSelectedIndex(index);
}
if (isShowPopupDuringSearching()) {
try {
if (!((JComboBox) _component).is... | protected void setSelectedIndex(int index, boolean incremental) {
if (((JComboBox) _component).getSelectedIndex() != index) {
((JComboBox) _component).setSelectedIndex(index);
}
((JComboBox) _component).hidePopup();
if (isShowPopupDuringSearching()) {
try {
... |
diff --git a/shadow-platformer/src/net/fourbytes/shadow/Mob.java b/shadow-platformer/src/net/fourbytes/shadow/Mob.java
index 1773b05..f9eb450 100755
--- a/shadow-platformer/src/net/fourbytes/shadow/Mob.java
+++ b/shadow-platformer/src/net/fourbytes/shadow/Mob.java
@@ -1,212 +1,212 @@
package net.fourbytes.shadow;
i... | false | true | public void tick() {
if (!standing) {
if (facingLeft) {
movement.add(-SPEED, 0f);
imgupdate = true;
subframe++;
}
if (!facingLeft) {
movement.add(SPEED, 0f);
imgupdate = true;
subframe++;
}
//movement.add((float)Math.random()/12f-1f/24f, 0f);
//movement.add(0f, (float)Math.r... | public void tick() {
if (!standing) {
if (facingLeft) {
movement.add(-SPEED, 0f);
imgupdate = true;
subframe++;
}
if (!facingLeft) {
movement.add(SPEED, 0f);
imgupdate = true;
subframe++;
}
//movement.add((float)Math.random()/12f-1f/24f, 0f);
//movement.add(0f, (float)Math.r... |
diff --git a/server/ParkingIQServerApp/src/main/java/edu/colorado/piq/service/impl/ParkingLotStatusServiceImpl.java b/server/ParkingIQServerApp/src/main/java/edu/colorado/piq/service/impl/ParkingLotStatusServiceImpl.java
index 36095b3..5afa297 100644
--- a/server/ParkingIQServerApp/src/main/java/edu/colorado/piq/servic... | true | true | public void updateParkingLotStatus(List<ParkingLotInfo> parkingLots) {
Keyspace keyspace = CassandraUtil.Connect(cassandraConfig);
StringSerializer stringSerializer = StringSerializer.get();
HashMap<String, ParkingLotInfo> parkingLotInfoMap = createParkingLotInfoMap(parkingLots);
// Get the last column as i... | public void updateParkingLotStatus(List<ParkingLotInfo> parkingLots) {
Keyspace keyspace = CassandraUtil.Connect(cassandraConfig);
StringSerializer stringSerializer = StringSerializer.get();
HashMap<String, ParkingLotInfo> parkingLotInfoMap = createParkingLotInfoMap(parkingLots);
// Get the last column as i... |
diff --git a/MSMExplorer/src/edu/stanford/folding/msmexplorer/tpt/TPTFactoryCM.java b/MSMExplorer/src/edu/stanford/folding/msmexplorer/tpt/TPTFactoryCM.java
index 534ee3f..d579f48 100644
--- a/MSMExplorer/src/edu/stanford/folding/msmexplorer/tpt/TPTFactoryCM.java
+++ b/MSMExplorer/src/edu/stanford/folding/msmexplorer/t... | true | true | private ArrayList<Edge> getHighFluxPathV2() {
OpenMapRealMatrix fluxes = new OpenMapRealMatrix(this.m_fFluxes.copy());
ArrayList<Integer> target = getIndicies(m_target);
ArrayDeque<Integer> iList = new ArrayDeque<Integer>();
ArrayDeque<Double> fList = new ArrayDeque<Double>();
int index = getIndicie... | private ArrayList<Edge> getHighFluxPathV2() {
OpenMapRealMatrix fluxes = new OpenMapRealMatrix(this.m_fFluxes.copy());
ArrayList<Integer> target = getIndicies(m_target);
ArrayDeque<Integer> iList = new ArrayDeque<Integer>();
ArrayDeque<Double> fList = new ArrayDeque<Double>();
int index = getIndicie... |
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/CancelManager.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/CancelManager.java
index acf07d88d..7abc93d02 100644
--- a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/CancelManager.java
+++ ... | false | true | public void run( )
{
for( ICancellable cancellable: cancellableList )
{
if( cancellable.doCancel( ))
cancellable.cancel();
}
}
| public void run( )
{
synchronized ( cancellableList )
{
for ( ICancellable cancellable : cancellableList )
{
if ( cancellable.doCancel( ) )
cancellable.cancel( );
}
}
}
|
diff --git a/asm/examples/annotations/src/Annotations.java b/asm/examples/annotations/src/Annotations.java
index e018920a..815ffcd2 100644
--- a/asm/examples/annotations/src/Annotations.java
+++ b/asm/examples/annotations/src/Annotations.java
@@ -1,123 +1,123 @@
/***
* ASM examples: examples showing how ASM can be u... | true | true | public static void main (final String[] args) throws Exception {
System.out.println("Calling foo(null) results in a NullPointerException:");
try {
foo(null);
} catch (Exception e) {
e.printStackTrace(System.out);
}
final String n = Annotations.class.getName();
final ClassWrite... | public static void main (final String[] args) throws Exception {
System.out.println("Calling foo(null) results in a NullPointerException:");
try {
foo(null);
} catch (Exception e) {
e.printStackTrace(System.out);
}
final String n = Annotations.class.getName();
final ClassWrite... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.