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/main/java/pl/agh/enrollme/service/PersonService.java b/src/main/java/pl/agh/enrollme/service/PersonService.java
index 9df4987..cee015c 100644
--- a/src/main/java/pl/agh/enrollme/service/PersonService.java
+++ b/src/main/java/pl/agh/enrollme/service/PersonService.java
@@ -1,99 +1,101 @@
package pl.agh.... | true | true | public Person getCurrentUser() {
LOGGER.debug("Entering getCurrentUser");
final Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();
LOGGER.debug("Principal: " + principal + " retrieved");
UserDetails userDetails = null;
if(principal ins... | public Person getCurrentUser() {
LOGGER.debug("Entering getCurrentUser");
final Object principal = SecurityContextHolder.getContext().getAuthentication().getPrincipal();
LOGGER.debug("Principal: " + principal + " retrieved");
UserDetails userDetails = null;
if(principal ins... |
diff --git a/src/savant/format/WIGToContinuous.java b/src/savant/format/WIGToContinuous.java
index 632cb97a..d30ef7b7 100644
--- a/src/savant/format/WIGToContinuous.java
+++ b/src/savant/format/WIGToContinuous.java
@@ -1,277 +1,279 @@
/*
* Copyright 2010 University of Toronto
*
* Licensed under the Apache ... | true | true | public void format() throws InterruptedException {
try {
File inputFile = new File(inFile);
// Initialize the total size of the input file, for purposes of tracking progress
this.totalBytes = inputFile.length();
BufferedReader reader = new Buffe... | public void format() throws InterruptedException {
try {
File inputFile = new File(inFile);
// Initialize the total size of the input file, for purposes of tracking progress
this.totalBytes = inputFile.length();
BufferedReader reader = new Buffe... |
diff --git a/picketlink-idm-hibernate/src/test/java/org/picketlink/idm/test/support/hibernate/HibernateTestPOJO.java b/picketlink-idm-hibernate/src/test/java/org/picketlink/idm/test/support/hibernate/HibernateTestPOJO.java
index 20a4639..685fcc1 100644
--- a/picketlink-idm-hibernate/src/test/java/org/picketlink/idm/tes... | true | true | public void start() throws Exception
{
overrideFromProperties();
JNDISupport jndiSupport = new JNDISupport();
jndiSupport.start();
identityConfig = "hibernate-test-identity-config.xml";
DataSourceConfig dataSourceConfig = DataSourceConfig.obtainConfig(datasources, dataSourceName)... | public void start() throws Exception
{
overrideFromProperties();
JNDISupport jndiSupport = new JNDISupport();
jndiSupport.start();
identityConfig = "hibernate-test-identity-config.xml";
DataSourceConfig dataSourceConfig = DataSourceConfig.obtainConfig(datasources, dataSourceName)... |
diff --git a/core/src/main/java/org/apache/mahout/classifier/naivebayes/test/TestNaiveBayesDriver.java b/core/src/main/java/org/apache/mahout/classifier/naivebayes/test/TestNaiveBayesDriver.java
index c82c4987..9fe8b6a0 100644
--- a/core/src/main/java/org/apache/mahout/classifier/naivebayes/test/TestNaiveBayesDriver.ja... | false | true | public int run(String[] args) throws Exception {
addInputOption();
addOutputOption();
addOption(addOption(DefaultOptionCreator.overwriteOption().create()));
addOption("model", "m", "The path to the model built during training", true);
addOption(buildOption("testComplementary", "c", "test complemen... | public int run(String[] args) throws Exception {
addInputOption();
addOutputOption();
addOption(addOption(DefaultOptionCreator.overwriteOption().create()));
addOption("model", "m", "The path to the model built during training", true);
addOption(buildOption("testComplementary", "c", "test complemen... |
diff --git a/astrid/plugin-src/com/todoroo/astrid/tags/TagFilterExposer.java b/astrid/plugin-src/com/todoroo/astrid/tags/TagFilterExposer.java
index c360b1014..a4c78b7ad 100644
--- a/astrid/plugin-src/com/todoroo/astrid/tags/TagFilterExposer.java
+++ b/astrid/plugin-src/com/todoroo/astrid/tags/TagFilterExposer.java
@@ ... | true | true | public static FilterWithCustomIntent filterFromTag(Context context, Tag tag, Criterion criterion) {
String title = tag.tag;
QueryTemplate tagTemplate = tag.queryTemplate(criterion);
ContentValues contentValues = new ContentValues();
contentValues.put(Metadata.KEY.name, TagService.KEY... | public static FilterWithCustomIntent filterFromTag(Context context, Tag tag, Criterion criterion) {
String title = tag.tag;
QueryTemplate tagTemplate = tag.queryTemplate(criterion);
ContentValues contentValues = new ContentValues();
contentValues.put(Metadata.KEY.name, TagService.KEY... |
diff --git a/servicemix-core/src/main/java/org/apache/servicemix/components/util/BinaryFileMarshaler.java b/servicemix-core/src/main/java/org/apache/servicemix/components/util/BinaryFileMarshaler.java
index e3974f460..988704a22 100644
--- a/servicemix-core/src/main/java/org/apache/servicemix/components/util/BinaryFileM... | true | true | public void writeMessage(MessageExchange exchange, NormalizedMessage message, OutputStream out, String path) throws IOException, JBIException {
DataHandler handler = message.getAttachment(attachment);
if (attachment == null) {
throw new MessagingException("Could not find attachment: " + attachment);
}
Input... | public void writeMessage(MessageExchange exchange, NormalizedMessage message, OutputStream out, String path) throws IOException, JBIException {
DataHandler handler = message.getAttachment(attachment);
if (handler == null) {
throw new MessagingException("Could not find attachment: " + attachment);
}
InputStr... |
diff --git a/org.eclipse.rmf.reqif10.search.test/src/org/eclipse/rmf/reqif10/search/test/DateFilterTest.java b/org.eclipse.rmf.reqif10.search.test/src/org/eclipse/rmf/reqif10/search/test/DateFilterTest.java
index a381c117..c7fc0845 100644
--- a/org.eclipse.rmf.reqif10.search.test/src/org/eclipse/rmf/reqif10/search/test... | true | true | public void testIs() throws Exception {
DateFilter filter;
filter = new DateFilter(IFilter.Operator.IS, new GregorianCalendar(2014, 11, 03), null, attributeDefinition);
doMatch(filter, true);
filter = new DateFilter(IFilter.Operator.IS, new GregorianCalendar(2014, 11, 04), null, attributeDefinition);
... | public void testIs() throws Exception {
DateFilter filter;
filter = new DateFilter(IFilter.Operator.IS, new GregorianCalendar(2014, 11, 03), null, attributeDefinition);
doMatch(filter, true);
filter = new DateFilter(IFilter.Operator.IS, new GregorianCalendar(2014, 11, 04), null, attributeDefinition);
... |
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/PlainStreetEdge.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/PlainStreetEdge.java
index 7489bda44..db0e119b9 100644
--- a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetyp... | true | true | private State doTraverse(State s0, RoutingRequest options, TraverseMode traverseMode) {
Edge backEdge = s0.getBackEdge();
if (backEdge != null &&
(options.arriveBy ? (backEdge.getToVertex() == fromv) : (backEdge.getFromVertex() == tov))) {
//no illegal U-turns
... | private State doTraverse(State s0, RoutingRequest options, TraverseMode traverseMode) {
Edge backEdge = s0.getBackEdge();
if (backEdge != null &&
(options.arriveBy ? (backEdge.getToVertex() == fromv) : (backEdge.getFromVertex() == tov))) {
//no illegal U-turns
... |
diff --git a/src/main/java/com/google/gson/FieldAttributes.java b/src/main/java/com/google/gson/FieldAttributes.java
index b69ebf9..0aa4751 100644
--- a/src/main/java/com/google/gson/FieldAttributes.java
+++ b/src/main/java/com/google/gson/FieldAttributes.java
@@ -1,255 +1,256 @@
/*
* Copyright (C) 2009 Google Inc.
... | false | true | public Collection<Annotation> getAnnotations() {
if (annotations == null) {
Pair<Class<?>, String> key = new Pair<Class<?>, String>(declaringClazz, name);
annotations = ANNOTATION_CACHE.getElement(key);
if (annotations == null) {
annotations = Collections.unmodifiableCollection(
... | public Collection<Annotation> getAnnotations() {
if (annotations == null) {
Pair<Class<?>, String> key = new Pair<Class<?>, String>(declaringClazz, name);
Collection<Annotation> cachedValue = ANNOTATION_CACHE.getElement(key);
if (cachedValue == null) {
cachedValue = Collections.unmodifia... |
diff --git a/java/coalitiongamesjava/experiment/OutputPrinter.java b/java/coalitiongamesjava/experiment/OutputPrinter.java
index b888ae7..a3feaec 100644
--- a/java/coalitiongamesjava/experiment/OutputPrinter.java
+++ b/java/coalitiongamesjava/experiment/OutputPrinter.java
@@ -1,287 +1,287 @@
package experiment;
imp... | true | true | private static void printResultOutput(
final List<SimpleSearchResult> searchResults,
final String algorithmName,
final String inputFilePrefix
) {
final String resultsFileName =
OUTPUT_FILE + algorithmName + UNDERBAR + inputFilePrefix + UNDERBAR
+ RESULT_... | private static void printResultOutput(
final List<SimpleSearchResult> searchResults,
final String algorithmName,
final String inputFilePrefix
) {
final String resultsFileName =
OUTPUT_FILE + algorithmName + UNDERBAR + inputFilePrefix + UNDERBAR
+ RESULT_... |
diff --git a/tool/src/java/org/sakaiproject/lessonbuildertool/tool/producers/ShowPageProducer.java b/tool/src/java/org/sakaiproject/lessonbuildertool/tool/producers/ShowPageProducer.java
index d25a35a2..79b3a418 100644
--- a/tool/src/java/org/sakaiproject/lessonbuildertool/tool/producers/ShowPageProducer.java
+++ b/too... | true | true | public void fillComponents(UIContainer tofill, ViewParameters viewParams, ComponentChecker checker) {
GeneralViewParameters params = (GeneralViewParameters) viewParams;
UIOutput.make(tofill, "html").decorate(new UIFreeAttributeDecorator("lang", localegetter.get().getLanguage()))
.decorate(new ... | public void fillComponents(UIContainer tofill, ViewParameters viewParams, ComponentChecker checker) {
GeneralViewParameters params = (GeneralViewParameters) viewParams;
UIOutput.make(tofill, "html").decorate(new UIFreeAttributeDecorator("lang", localegetter.get().getLanguage()))
.decorate(new ... |
diff --git a/components/bio-formats/src/loci/formats/in/ZeissLSMReader.java b/components/bio-formats/src/loci/formats/in/ZeissLSMReader.java
index 6e30388d5..e71b6cb77 100644
--- a/components/bio-formats/src/loci/formats/in/ZeissLSMReader.java
+++ b/components/bio-formats/src/loci/formats/in/ZeissLSMReader.java
@@ -1,2... | true | true | protected void initMetadata(int series) throws FormatException, IOException {
setSeries(series);
IFDList ifds = ifdsList.get(series);
IFD ifd = ifds.get(0);
in = new RandomAccessInputStream(getLSMFileFromSeries(series));
in.order(isLittleEndian());
tiffParser = new TiffParser(in);
Photo... | protected void initMetadata(int series) throws FormatException, IOException {
setSeries(series);
IFDList ifds = ifdsList.get(series);
IFD ifd = ifds.get(0);
in = new RandomAccessInputStream(getLSMFileFromSeries(series));
in.order(isLittleEndian());
tiffParser = new TiffParser(in);
Photo... |
diff --git a/src/powercrystals/minefactoryreloaded/setup/MineFactoryReloadedWorldGen.java b/src/powercrystals/minefactoryreloaded/setup/MineFactoryReloadedWorldGen.java
index ec895787..b9120125 100644
--- a/src/powercrystals/minefactoryreloaded/setup/MineFactoryReloadedWorldGen.java
+++ b/src/powercrystals/minefactoryr... | false | true | public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
{
int x = chunkX * 16 + random.nextInt(16);
int z = chunkZ * 16 + random.nextInt(16);
if(MineFactoryReloadedCore.rubberTreeWorldGen.getBoolean(true))
{
BiomeGenBase b = w... | public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
{
int x = chunkX * 16 + random.nextInt(16);
int z = chunkZ * 16 + random.nextInt(16);
if(MineFactoryReloadedCore.rubberTreeWorldGen.getBoolean(true))
{
BiomeGenBase b = w... |
diff --git a/src/org/opensolaris/opengrok/analysis/Definitions.java b/src/org/opensolaris/opengrok/analysis/Definitions.java
index 910cff9..aee6c47 100644
--- a/src/org/opensolaris/opengrok/analysis/Definitions.java
+++ b/src/org/opensolaris/opengrok/analysis/Definitions.java
@@ -1,164 +1,171 @@
/*
* CDDL HEADER STA... | true | true | void addTag(int line, String symbol, String type, String text) {
tags.add(new Tag(line, symbol, type, text));
Set<Integer> lines = symbols.get(symbol);
if (lines == null) {
lines = new HashSet<Integer>();
symbols.put(symbol, lines);
}
lines.add(line);
... | void addTag(int line, String symbol, String type, String text) {
// The strings are frequently repeated (a symbol can be used in
// multiple definitions, multiple definitions can have the same type,
// one line can contain multiple definitions). Intern them to minimize
// the space c... |
diff --git a/cat-core/src/main/java/com/dianping/cat/Cat.java b/cat-core/src/main/java/com/dianping/cat/Cat.java
index 3bef2600..b385024a 100644
--- a/cat-core/src/main/java/com/dianping/cat/Cat.java
+++ b/cat-core/src/main/java/com/dianping/cat/Cat.java
@@ -1,181 +1,185 @@
package com.dianping.cat;
import java.io.... | false | true | static Config loadClientConfig(File configFile) {
Config globalConfig = null;
Config clientConfig = null;
try {
// read the global configure from local file system
// so that OPS can:
// - configure the cat servers to connect
// - enable/disable Cat for specific domain(s)
if (configFile != null &... | static Config loadClientConfig(File configFile) {
Config globalConfig = null;
Config clientConfig = null;
try {
// read the global configure from local file system
// so that OPS can:
// - configure the cat servers to connect
// - enable/disable Cat for specific domain(s)
if (configFile != null) ... |
diff --git a/public/java/src/org/broadinstitute/sting/gatk/datasources/reads/LowMemoryIntervalSharder.java b/public/java/src/org/broadinstitute/sting/gatk/datasources/reads/LowMemoryIntervalSharder.java
index ba6321121..bf5f33dc3 100644
--- a/public/java/src/org/broadinstitute/sting/gatk/datasources/reads/LowMemoryInte... | true | true | public FilePointer next() {
FilePointer current = wrappedIterator.next();
while(wrappedIterator.hasNext() && current.minus(wrappedIterator.peek()) == 0)
current = current.combine(parser,wrappedIterator.next());
return current;
}
| public FilePointer next() {
FilePointer current = wrappedIterator.next();
while(wrappedIterator.hasNext() && current.isRegionUnmapped == wrappedIterator.peek().isRegionUnmapped && current.minus(wrappedIterator.peek()) == 0)
current = current.combine(parser,wrappedIterator.next());
... |
diff --git a/core/src/test/java/com/nuodb/migrator/integration/mysql/StructureTest.java b/core/src/test/java/com/nuodb/migrator/integration/mysql/StructureTest.java
index b9199d40..89ece3dc 100644
--- a/core/src/test/java/com/nuodb/migrator/integration/mysql/StructureTest.java
+++ b/core/src/test/java/com/nuodb/migrato... | true | true | private void verifyTableColumns(String tableName) throws Exception {
String sqlStr1 = "select * from information_schema.COLUMNS where TABLE_SCHEMA = ? and TABLE_NAME = ? order by ORDINAL_POSITION";
String sqlStr2 = "select * from system.FIELDS F inner join system.DATATYPES D on "
+ "F.DATATYPE = D.ID and F.SC... | private void verifyTableColumns(String tableName) throws Exception {
String sqlStr1 = "select * from information_schema.COLUMNS where TABLE_SCHEMA = ? and TABLE_NAME = ? order by ORDINAL_POSITION";
String sqlStr2 = "select * from system.FIELDS F inner join system.DATATYPES D on "
+ "F.DATATYPE = D.ID and F.SC... |
diff --git a/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestVariableResolver.java b/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestVariableResolver.java
index c4d5845bae..2766f82a78 100644
--- a/solr/contrib/dataimporthandler/src/test/org/apache/solr/handl... | true | true | public void testFunctionNamespace1() throws Exception {
VariableResolver resolver = new VariableResolver();
final List<Map<String,String>> l = new ArrayList<Map<String,String>>();
Map<String,String> m = new HashMap<String,String>();
m.put("name", "test");
m.put("class", E.class.getName());
l.a... | public void testFunctionNamespace1() throws Exception {
VariableResolver resolver = new VariableResolver();
final List<Map<String,String>> l = new ArrayList<Map<String,String>>();
Map<String,String> m = new HashMap<String,String>();
m.put("name", "test");
m.put("class", E.class.getName());
l.a... |
diff --git a/src/com/google/bitcoin/examples/PrintPeers.java b/src/com/google/bitcoin/examples/PrintPeers.java
index cf3a0d7..bb411ba 100644
--- a/src/com/google/bitcoin/examples/PrintPeers.java
+++ b/src/com/google/bitcoin/examples/PrintPeers.java
@@ -1,114 +1,114 @@
/**
* Copyright 2011 John Sample.
*
* Licens... | true | true | public static void main(String[] args) throws Exception {
System.out.println("=== IRC ===");
printIRC();
System.out.println("=== DNS ===");
printDNS();
System.out.println("=== Version/chain heights ===");
ExecutorService pool = Executors.newFixedThreadPool(100);
... | public static void main(String[] args) throws Exception {
System.out.println("=== IRC ===");
printIRC();
System.out.println("=== DNS ===");
printDNS();
System.out.println("=== Version/chain heights ===");
ExecutorService pool = Executors.newFixedThreadPool(100);
... |
diff --git a/src/java/org/apache/nutch/indexer/solr/SolrIndexer.java b/src/java/org/apache/nutch/indexer/solr/SolrIndexer.java
index ce18e111..6d32d8ea 100644
--- a/src/java/org/apache/nutch/indexer/solr/SolrIndexer.java
+++ b/src/java/org/apache/nutch/indexer/solr/SolrIndexer.java
@@ -1,107 +1,107 @@
/*
* Licensed ... | true | true | private void indexSolr(String solrUrl, Path crawlDb, Path linkDb,
List<Path> segments) throws IOException {
LOG.info("SolrIndexer: starting");
final JobConf job = new NutchJob(getConf());
job.setJobName("index-solr " + solrUrl);
IndexerMapReduce.initMRJob(crawlDb, linkDb, segments, job);
... | public void indexSolr(String solrUrl, Path crawlDb, Path linkDb,
List<Path> segments) throws IOException {
LOG.info("SolrIndexer: starting");
final JobConf job = new NutchJob(getConf());
job.setJobName("index-solr " + solrUrl);
IndexerMapReduce.initMRJob(crawlDb, linkDb, segments, job);
j... |
diff --git a/plugins/org.eclipse.jst.common.frameworks/src/org/eclipse/jst/common/componentcore/util/ProjectValidationHelper.java b/plugins/org.eclipse.jst.common.frameworks/src/org/eclipse/jst/common/componentcore/util/ProjectValidationHelper.java
index 752002a1c..644bdd7b2 100644
--- a/plugins/org.eclipse.jst.common.... | true | true | public IContainer[] getSourceContainers(IProject project) {
if (project == null || JemProjectUtilities.getJavaProject(project)==null)
return EMPTY_RESULT;
IVirtualComponent comp = ComponentCore.createComponent(project);
if (comp == null || !comp.exists())
return EMPTY_RESULT;
IPackageFragmentRoot[] roots... | public IContainer[] getSourceContainers(IProject project) {
if (project == null || JemProjectUtilities.getJavaProject(project)==null)
return EMPTY_RESULT;
IVirtualComponent comp = ComponentCore.createComponent(project);
if (comp == null || !comp.exists())
return EMPTY_RESULT;
IPackageFragmentRoot[] roots... |
diff --git a/petascope/src/main/java/petascope/wcs2/extensions/AbstractFormatExtension.java b/petascope/src/main/java/petascope/wcs2/extensions/AbstractFormatExtension.java
index cb07650e..c597a37f 100644
--- a/petascope/src/main/java/petascope/wcs2/extensions/AbstractFormatExtension.java
+++ b/petascope/src/main/java/... | true | true | protected Pair<String, String> constructWcpsQuery(GetCoverageRequest req, Metadata cov, String format, String params) {
String axes = "";
Iterator<DomainElement> dit = cov.getDomainIterator();
while (dit.hasNext()) {
axes += dit.next().getName() + " ";
}
String pr... | protected Pair<String, String> constructWcpsQuery(GetCoverageRequest req, Metadata cov, String format, String params) {
String axes = "";
Iterator<DomainElement> dit = cov.getDomainIterator();
while (dit.hasNext()) {
axes += dit.next().getName() + " ";
}
String pr... |
diff --git a/src/main/java/uk/co/thomasc/wordmaster/view/game/SwipeController.java b/src/main/java/uk/co/thomasc/wordmaster/view/game/SwipeController.java
index 430b56c..8596d57 100644
--- a/src/main/java/uk/co/thomasc/wordmaster/view/game/SwipeController.java
+++ b/src/main/java/uk/co/thomasc/wordmaster/view/game/Swip... | true | true | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View rootView;
if (getArguments().getBoolean(Pages.ARG_OBJECT)) {
rootView = new PullToRefreshListView(getActivity());
((BaseGame) getActivity()).gameAdapter = adapter = new GameAdapter(getActivity());
... | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View rootView;
if (getArguments().getBoolean(Pages.ARG_OBJECT)) {
rootView = new PullToRefreshListView(getActivity());
((BaseGame) getActivity()).gameAdapter = adapter = new GameAdapter(getActivity());
... |
diff --git a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java b/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
index 14fb93a96..56f139cc7 100644
--- a/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java
+++ b/bundleplugin/src/main/java/org/apa... | true | true | protected void execute(MavenProject project, Map instructions, Properties properties, Jar[] classpath)
throws MojoExecutionException
{
try
{
File jarFile = new File(this.getBuildDirectory(), this.getBundleName(project));
properties.putAll(this.getDefaultProperties(pr... | protected void execute(MavenProject project, Map instructions, Properties properties, Jar[] classpath)
throws MojoExecutionException
{
try
{
File jarFile = new File(this.getBuildDirectory(), this.getBundleName(project));
properties.putAll(this.getDefaultProperties(pr... |
diff --git a/src/main/java/com/github/fge/uritemplate/parse/ExpressionParser.java b/src/main/java/com/github/fge/uritemplate/parse/ExpressionParser.java
index 338b5ca..3681d43 100644
--- a/src/main/java/com/github/fge/uritemplate/parse/ExpressionParser.java
+++ b/src/main/java/com/github/fge/uritemplate/parse/Expressio... | false | true | public URITemplateExpression parse(final CharBuffer buffer)
throws URITemplateParseException
{
// Swallow the '{'
buffer.get();
/*
* Error if the buffer is empty after that
*/
if (!buffer.hasRemaining())
throw new URITemplateParseException(U... | public URITemplateExpression parse(final CharBuffer buffer)
throws URITemplateParseException
{
// Swallow the '{'
buffer.get();
/*
* Error if the buffer is empty after that
*/
if (!buffer.hasRemaining())
throw new URITemplateParseException(U... |
diff --git a/src/net/java/sip/communicator/impl/neomedia/codec/video/h264/JNIEncoder.java b/src/net/java/sip/communicator/impl/neomedia/codec/video/h264/JNIEncoder.java
index 4fd749e5f..0b0abdfa8 100644
--- a/src/net/java/sip/communicator/impl/neomedia/codec/video/h264/JNIEncoder.java
+++ b/src/net/java/sip/communicato... | true | true | public synchronized void open()
throws ResourceUnavailableException
{
int width = 0;
int height = 0;
if (opened)
return;
if (inputFormat == null)
throw new ResourceUnavailableException("No input format selected");
if (outputFormat == null... | public synchronized void open()
throws ResourceUnavailableException
{
int width = 0;
int height = 0;
if (opened)
return;
if (inputFormat == null)
throw new ResourceUnavailableException("No input format selected");
if (outputFormat == null... |
diff --git a/test-modules/functional-tests/src/test/java/org/openlmis/functional/ConvertToOrderPagination.java b/test-modules/functional-tests/src/test/java/org/openlmis/functional/ConvertToOrderPagination.java
index d9c3101617..cb67902598 100644
--- a/test-modules/functional-tests/src/test/java/org/openlmis/functional... | true | true | public void shouldConvertOnlyCurrentPageRequisitions(String program, String userSIC, String password) throws Exception {
setUpData(program, userSIC);
dbWrapper.insertRequisitions(50, "MALARIA", true);
dbWrapper.insertRequisitions(1, "TB", true);
dbWrapper.updateRequisitionStatus("SUBMITTED", userSIC, ... | public void shouldConvertOnlyCurrentPageRequisitions(String program, String userSIC, String password) throws Exception {
setUpData(program, userSIC);
dbWrapper.insertRequisitions(50, "MALARIA", true);
dbWrapper.insertRequisitions(1, "TB", true);
dbWrapper.updateRequisitionStatus("SUBMITTED", userSIC, ... |
diff --git a/src/main/java/jannovar/Jannovar.java b/src/main/java/jannovar/Jannovar.java
index 5b1ecc22..f5dd15fe 100644
--- a/src/main/java/jannovar/Jannovar.java
+++ b/src/main/java/jannovar/Jannovar.java
@@ -1,953 +1,955 @@
package jannovar;
/** Command line functions from apache */
import jannovar.annotation.A... | true | true | private void parseCommandLineArguments(String[] args) {
try {
Options options = new Options();
options.addOption(new Option("h", "help", false, "Shows this help"));
options.addOption(new Option("U", "downloaded-data", true, "Path to directory with previously downloaded transcript definition files."));
op... | private void parseCommandLineArguments(String[] args) {
try {
Options options = new Options();
options.addOption(new Option("h", "help", false, "Shows this help"));
options.addOption(new Option("U", "downloaded-data", true, "Path to directory with previously downloaded transcript definition files."));
op... |
diff --git a/openFaces/source/org/openfaces/renderkit/table/GroupingBoxRenderer.java b/openFaces/source/org/openfaces/renderkit/table/GroupingBoxRenderer.java
index 1f1502493..9ad5e86fa 100644
--- a/openFaces/source/org/openfaces/renderkit/table/GroupingBoxRenderer.java
+++ b/openFaces/source/org/openfaces/renderkit/ta... | false | true | public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
super.encodeBegin(context, component);
final ResponseWriter writer = context.getResponseWriter();
final GroupingBox groupingBox = (GroupingBox) component;
final UIComponent parent = groupingBox.... | public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
super.encodeBegin(context, component);
final ResponseWriter writer = context.getResponseWriter();
final GroupingBox groupingBox = (GroupingBox) component;
final UIComponent parent = groupingBox.... |
diff --git a/src/main/java/com/biasedbit/http/client/processor/AbstractAccumulatorProcessor.java b/src/main/java/com/biasedbit/http/client/processor/AbstractAccumulatorProcessor.java
index 54b4001..6b07ff6 100644
--- a/src/main/java/com/biasedbit/http/client/processor/AbstractAccumulatorProcessor.java
+++ b/src/main/ja... | false | true | @Override public boolean willProcessResponse(HttpResponse response)
throws Exception {
if (!isAcceptableResponse(response)) return false;
// Content already present. Deal with it and bail out.
if ((response.getContent() != null) && (response.getContent().readableBytes() > 0)) {
... | @Override public boolean willProcessResponse(HttpResponse response)
throws Exception {
if (!isAcceptableResponse(response)) return false;
// Content already present. Deal with it and bail out.
if ((response.getContent() != null) && (response.getContent().readableBytes() > 0)) {
... |
diff --git a/org.eclipse.virgo.kernel.deployer.dm/src/main/java/org/eclipse/virgo/kernel/deployer/app/spring/UserRegionModuleContextAccessor.java b/org.eclipse.virgo.kernel.deployer.dm/src/main/java/org/eclipse/virgo/kernel/deployer/app/spring/UserRegionModuleContextAccessor.java
index 5471f663..487a8437 100644
--- a/o... | false | true | public ModuleContext getModuleContext(@NonNull Bundle bundle) {
BundleContext bundleContext = bundle.getBundleContext();
// The bundle must have a bundle context in order to have a module context.
if (bundleContext != null) {
String symbolicName = bundle.getSymbolicName();
... | public ModuleContext getModuleContext(@NonNull Bundle bundle) {
BundleContext bundleContext = bundle.getBundleContext();
// The bundle must have a bundle context in order to have a module context.
if (bundleContext != null) {
String symbolicName = bundle.getSymbolicName();
... |
diff --git a/nuxeo-platform-suggestbox-core/src/main/java/org/nuxeo/ecm/platform/suggestbox/service/suggesters/DocumentSearchByDateSuggester.java b/nuxeo-platform-suggestbox-core/src/main/java/org/nuxeo/ecm/platform/suggestbox/service/suggesters/DocumentSearchByDateSuggester.java
index 091a144..c3f688c 100644
--- a/nux... | false | true | public List<Suggestion> suggest(String userInput, SuggestionContext context)
throws SuggestionException {
List<Suggestion> suggestions = new ArrayList<Suggestion>();
I18nHelper i18n = I18nHelper.instanceFor(context.messages);
// TODO: use SimpleDateFormat and use the locale info... | public List<Suggestion> suggest(String userInput, SuggestionContext context)
throws SuggestionException {
List<Suggestion> suggestions = new ArrayList<Suggestion>();
I18nHelper i18n = I18nHelper.instanceFor(context.messages);
// TODO: use SimpleDateFormat and use the locale info... |
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/PreparedCubeQuery.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/PreparedCubeQuery.java
index 1a34b0aba..d2a767e42 100644
--- a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engin... | true | true | public ICubeQueryResults execute( IBaseQueryResults outerResults, Scriptable scope ) throws DataException
{
Scriptable cubeScope = null;
try
{
// Create a scope for each query execution.
cubeScope = ( (IDataScriptEngine) session.getEngineContext( )
.getScriptContext( )
.getScriptEngine( IDataScr... | public ICubeQueryResults execute( IBaseQueryResults outerResults, Scriptable scope ) throws DataException
{
Scriptable cubeScope = null;
try
{
// Create a scope for each query execution.
cubeScope = ( (IDataScriptEngine) session.getEngineContext( )
.getScriptContext( )
.getScriptEngine( IDataScr... |
diff --git a/gae/src/org/tangram/gae/GaeBeanFactory.java b/gae/src/org/tangram/gae/GaeBeanFactory.java
index 5e07984c..a5008a80 100644
--- a/gae/src/org/tangram/gae/GaeBeanFactory.java
+++ b/gae/src/org/tangram/gae/GaeBeanFactory.java
@@ -1,137 +1,137 @@
/**
*
* Copyright 2013 Martin Goellnitz
*
* This program... | false | true | public <T extends Content> T getBean(Class<T> cls, String id) {
if (activateCaching&&(cache.containsKey(id))) {
statistics.increase("get bean cached");
return (T) cache.get(id);
} // if
T result = null;
try {
Key key = null;
String kind... | public <T extends Content> T getBean(Class<T> cls, String id) {
if (isActivateCaching()&&(cache.containsKey(id))) {
statistics.increase("get bean cached");
return (T) cache.get(id);
} // if
T result = null;
try {
Key key = null;
String ... |
diff --git a/src/org/gridsphere/provider/portletui/beans/GroupBean.java b/src/org/gridsphere/provider/portletui/beans/GroupBean.java
index 64709daf9..4b23e17e8 100644
--- a/src/org/gridsphere/provider/portletui/beans/GroupBean.java
+++ b/src/org/gridsphere/provider/portletui/beans/GroupBean.java
@@ -1,58 +1,58 @@
pack... | true | true | public String toStartString() {
if (width != null) this.addCssStyle(" width=\"" + width + "\" ");
if (height != null) this.addCssStyle(" height=\"" + height + "\" ");
StringBuffer sb = new StringBuffer();
sb.append("<fieldset");
sb.append(getFormattedCss());
sb.appe... | public String toStartString() {
if (width != null) this.addCssStyle(" width:" + width + "; ");
if (height != null) this.addCssStyle(" height:" + height + "; ");
StringBuffer sb = new StringBuffer();
sb.append("<fieldset");
sb.append(getFormattedCss());
sb.append(">"... |
diff --git a/src/main/java/de/jetwick/ui/HomePage.java b/src/main/java/de/jetwick/ui/HomePage.java
index 53a3a6e..ab2b1be 100644
--- a/src/main/java/de/jetwick/ui/HomePage.java
+++ b/src/main/java/de/jetwick/ui/HomePage.java
@@ -1,826 +1,828 @@
/**
* Copyright (C) 2010 Peter Karich <jetwick_@_pannous_._info>
*
*... | false | true | public void init(JetwickQuery query, PageParameters parameters, int page, boolean twitterFallback) {
setStatelessHint(true);
feedbackPanel = new FeedbackPanel("feedback");
add(feedbackPanel.setOutputMarkupId(true));
add(new Label("title", new Model() {
@Override
... | public void init(JetwickQuery query, PageParameters parameters, int page, boolean twitterFallback) {
setStatelessHint(true);
feedbackPanel = new FeedbackPanel("feedback");
add(feedbackPanel.setOutputMarkupId(true));
add(new Label("title", new Model() {
@Override
... |
diff --git a/src/local/cascading/tap/local/FileTap.java b/src/local/cascading/tap/local/FileTap.java
index 8d48290c..2c978260 100644
--- a/src/local/cascading/tap/local/FileTap.java
+++ b/src/local/cascading/tap/local/FileTap.java
@@ -1,205 +1,206 @@
/*
* Copyright (c) 2007-2011 Concurrent, Inc. All Rights Reserved.... | false | true | public TupleEntryCollector openForWrite( LocalFlowProcess flowProcess, FileOutputStream output ) throws IOException
{
// ignore the output. will catch the failure downstream if any.
// not ignoring the output causes race conditions with other systems writing to the same directory.
File parentFile = ne... | public TupleEntryCollector openForWrite( LocalFlowProcess flowProcess, FileOutputStream output ) throws IOException
{
// ignore the output. will catch the failure downstream if any.
// not ignoring the output causes race conditions with other systems writing to the same directory.
File parentFile = ne... |
diff --git a/src/main/java/uk/co/revthefox/foxbot/commands/CommandPing.java b/src/main/java/uk/co/revthefox/foxbot/commands/CommandPing.java
index 8a82f4e..c501254 100644
--- a/src/main/java/uk/co/revthefox/foxbot/commands/CommandPing.java
+++ b/src/main/java/uk/co/revthefox/foxbot/commands/CommandPing.java
@@ -1,68 +1... | true | true | public void execute(final MessageEvent event, final String[] args)
{
Channel channel = event.getChannel();
User sender = event.getUser();
String host;
int port = 80;
if (args.length == 1 || args.length == 2)
{
try
{
host = ... | public void execute(final MessageEvent event, final String[] args)
{
Channel channel = event.getChannel();
User sender = event.getUser();
String host;
int port = 80;
if (args.length == 1 || args.length == 2)
{
try
{
host = ... |
diff --git a/server/src/org/bedework/eventreg/web/UpdateAdminRegController.java b/server/src/org/bedework/eventreg/web/UpdateAdminRegController.java
index 1472e05..dea7b50 100644
--- a/server/src/org/bedework/eventreg/web/UpdateAdminRegController.java
+++ b/server/src/org/bedework/eventreg/web/UpdateAdminRegController.... | true | true | public ModelAndView doRequest(final HttpServletRequest request,
final HttpServletResponse response) throws Throwable {
ModelAndView mv = updateRegistration(true);
if (mv != null) {
return mv;
}
return sessModel("forward:adminagenda.do");
}
| public ModelAndView doRequest(final HttpServletRequest request,
final HttpServletResponse response) throws Throwable {
ModelAndView mv = updateRegistration(true);
if (mv != null) {
return mv;
}
return sessModel(getForwardTo());
}
|
diff --git a/src/mouse/DataProcessor.java b/src/mouse/DataProcessor.java
index 0ce1b2e..b5f0477 100644
--- a/src/mouse/DataProcessor.java
+++ b/src/mouse/DataProcessor.java
@@ -1,410 +1,412 @@
package mouse;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.... | true | true | private boolean generateMeetingResults() {
HashMap<Box, ArrayList<MouseInterval>> boxSet = new HashMap<Box, ArrayList<MouseInterval>>();
for (StayResult stayResult : stayResults) {
Box box = stayResult.getBox();
ArrayList<MouseInterval> mouseIntervals = boxSet.get(box);
if (mouseIntervals == null) {
... | private boolean generateMeetingResults() {
HashMap<Box, ArrayList<MouseInterval>> boxSet = new HashMap<Box, ArrayList<MouseInterval>>();
for (StayResult stayResult : stayResults) {
Box box = stayResult.getBox();
ArrayList<MouseInterval> mouseIntervals = boxSet.get(box);
if (mouseIntervals == null) {
... |
diff --git a/src/VASSAL/tools/imageop/Op.java b/src/VASSAL/tools/imageop/Op.java
index 0d559d13..54953baa 100644
--- a/src/VASSAL/tools/imageop/Op.java
+++ b/src/VASSAL/tools/imageop/Op.java
@@ -1,130 +1,130 @@
/*
* $Id$
*
* Copyright (c) 2007-2010 by Joel Uckelman
*
* This library is free software; you can ... | true | true | public static boolean handleException(Exception e) {
for (Throwable c = e; c != null; c = c.getCause()) {
if (c instanceof OpFailedException) {
// We ignore OpFailedExceptions since the original exceptions
// which caused them have already been reported.
return true;
}
el... | public static boolean handleException(Exception e) {
for (Throwable c = e; c != null; c = c.getCause()) {
if (c instanceof OpFailedException) {
// We ignore OpFailedExceptions since the original exceptions
// which caused them have already been reported.
return true;
}
el... |
diff --git a/src/main/java/org/nuxeo/build/ant/RenameTask.java b/src/main/java/org/nuxeo/build/ant/RenameTask.java
index 2f8c84c..d84cd4d 100644
--- a/src/main/java/org/nuxeo/build/ant/RenameTask.java
+++ b/src/main/java/org/nuxeo/build/ant/RenameTask.java
@@ -1,61 +1,61 @@
/*
* (C) Copyright 2006-2008 Nuxeo SAS (ht... | true | true | public void execute() throws BuildException {
String fromName = from.getName();
if (fromName.endsWith("*")) {
String prefix = fromName.substring(0, fromName.length() - 1);
File dir = from.getParentFile();
File[] files = dir.listFiles();
for (int k = 0;... | public void execute() throws BuildException {
String fromName = from.getName();
if (fromName.endsWith("*")) {
String prefix = fromName.substring(0, fromName.length() - 1);
File dir = from.getParentFile();
File[] files = dir.listFiles();
for (int k = 0;... |
diff --git a/src/com/jidesoft/swing/JideScrollPaneLayout.java b/src/com/jidesoft/swing/JideScrollPaneLayout.java
index 23e4f49a..c691730b 100644
--- a/src/com/jidesoft/swing/JideScrollPaneLayout.java
+++ b/src/com/jidesoft/swing/JideScrollPaneLayout.java
@@ -1,1062 +1,1062 @@
/*
* @(#)${NAME}.java
*
* Copyright ... | false | true | public void layoutContainer(Container parent) {
/* Sync the (now obsolete) policy fields with the
* JScrollPane.
*/
JScrollPane scrollPane = (JScrollPane) parent;
vsbPolicy = scrollPane.getVerticalScrollBarPolicy();
hsbPolicy = scrollPane.getHorizontalScrollBarPolic... | public void layoutContainer(Container parent) {
/* Sync the (now obsolete) policy fields with the
* JScrollPane.
*/
JScrollPane scrollPane = (JScrollPane) parent;
vsbPolicy = scrollPane.getVerticalScrollBarPolicy();
hsbPolicy = scrollPane.getHorizontalScrollBarPolic... |
diff --git a/sonar-server/src/main/java/org/sonar/server/issue/DefaultIssueFinder.java b/sonar-server/src/main/java/org/sonar/server/issue/DefaultIssueFinder.java
index 28342e46bc..c477d9af3c 100644
--- a/sonar-server/src/main/java/org/sonar/server/issue/DefaultIssueFinder.java
+++ b/sonar-server/src/main/java/org/sona... | false | true | public IssueQueryResult find(IssueQuery query) {
LOG.debug("IssueQuery : {}", query);
SqlSession sqlSession = myBatis.openSession();
try {
// 1. Select the ids of all the issues that match the query
List<IssueDto> allIssues = issueDao.selectIssueAndComponentIds(query, sqlSession);
// 2.... | public IssueQueryResult find(IssueQuery query) {
LOG.debug("IssueQuery : {}", query);
SqlSession sqlSession = myBatis.openSession();
try {
// 1. Select the ids of all the issues that match the query
List<IssueDto> allIssues = issueDao.selectIssueAndComponentIds(query, sqlSession);
// 2.... |
diff --git a/trunk/java/src/xpra/Start.java b/trunk/java/src/xpra/Start.java
index f5828c8e1..d2067dfa1 100644
--- a/trunk/java/src/xpra/Start.java
+++ b/trunk/java/src/xpra/Start.java
@@ -1,22 +1,29 @@
package xpra;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java... | true | true | public void run(String[] args) throws IOException {
Socket socket = new Socket(DEFAULT_HOST, DEFAULT_PORT);
socket.setKeepAlive(true);
InputStream is = socket.getInputStream();
OutputStream os = socket.getOutputStream();
this.makeClient(is, os).run(args);
}
| public void run(String[] args) throws IOException {
Socket socket = null;
try {
socket = new Socket(DEFAULT_HOST, DEFAULT_PORT);
socket.setKeepAlive(true);
InputStream is = socket.getInputStream();
OutputStream os = socket.getOutputStream();
this.makeClient(is, os).run(args);
}
finally {
if (... |
diff --git a/src/main/java/com/github/kpacha/jkata/pokerhand/PokerCard.java b/src/main/java/com/github/kpacha/jkata/pokerhand/PokerCard.java
index b94959f..456528f 100644
--- a/src/main/java/com/github/kpacha/jkata/pokerhand/PokerCard.java
+++ b/src/main/java/com/github/kpacha/jkata/pokerhand/PokerCard.java
@@ -1,19 +1... | true | true | public int getNumericValue() {
if (card.charAt(0) == 'J')
return 10;
if (card.charAt(0) == '9')
return 9;
return 5;
}
| public int getNumericValue() {
if (card.charAt(0) == 'Q')
return 11;
if (card.charAt(0) == 'J')
return 10;
if (card.charAt(0) == '9')
return 9;
return 5;
}
|
diff --git a/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/editor/BeansEditor.java b/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/editor/BeansEditor.java
index e79e6d4fb..b897e864e 100644
--- a/cdi/tests/org.jboss.tools.cdi.bot.test/src/org/jboss/tools/cdi/bot/test/e... | true | true | private BeansEditor modify(Item item, String name, String actionLabel, DialogHandler h) {
SWTBotTree tree = bot.tree(1);
for (SWTBotTreeItem ti:tree.getAllItems()) {
log.setLevel(Level.FATAL);
log.fatal(ti.getText());
}
tree.expandNode(ROOT_NODE, item.getNode()).select().click();
selectItem(item, nam... | private BeansEditor modify(Item item, String name, String actionLabel, DialogHandler h) {
SWTBotTree tree = bot.tree(2);
for (SWTBotTreeItem ti:tree.getAllItems()) {
log.setLevel(Level.FATAL);
log.fatal(ti.getText());
}
tree.expandNode(ROOT_NODE, item.getNode()).select().click();
selectItem(item, name)... |
diff --git a/src/edu/wpi/first/wpilibj/templates/debugging/DebugInfo.java b/src/edu/wpi/first/wpilibj/templates/debugging/DebugInfo.java
index 0f3e49f..05aed24 100644
--- a/src/edu/wpi/first/wpilibj/templates/debugging/DebugInfo.java
+++ b/src/edu/wpi/first/wpilibj/templates/debugging/DebugInfo.java
@@ -1,24 +1,24 @@
... | true | true | protected void debug() {
RobotDebugger.push(this);
}
| protected void debug() {
RobotDebugger.pushInfo(this);
}
|
diff --git a/src/org/eclipse/imp/lpg/editor/ContentProposer.java b/src/org/eclipse/imp/lpg/editor/ContentProposer.java
index 222a7ae..8b92da4 100644
--- a/src/org/eclipse/imp/lpg/editor/ContentProposer.java
+++ b/src/org/eclipse/imp/lpg/editor/ContentProposer.java
@@ -1,38 +1,39 @@
/*
* Created on Nov 1, 2005
*/
... | true | true | public ICompletionProposal[] getContentProposals(IParseController controller, int offset) {
PrsStream parseStream= controller.getParser().getParseStream();
int thisTokIdx= parseStream.getTokenIndexAtCharacter(offset);
IToken prevTok= parseStream.getTokenAt(thisTokIdx - 1);
ASTNode currentAst= (ASTNode) controll... | public ICompletionProposal[] getContentProposals(IParseController controller, int offset) {
PrsStream parseStream= controller.getParser().getParseStream();
int thisTokIdx= parseStream.getTokenIndexAtCharacter(offset);
if (thisTokIdx < 0) thisTokIdx= - thisTokIdx;
IToken prevTok= parseStream.getTokenAt(th... |
diff --git a/src/fuschia/tagger/common/RepositoryCreator.java b/src/fuschia/tagger/common/RepositoryCreator.java
index 457c3d4..46ee092 100644
--- a/src/fuschia/tagger/common/RepositoryCreator.java
+++ b/src/fuschia/tagger/common/RepositoryCreator.java
@@ -1,204 +1,204 @@
/**
* File: TaggerThread.java
* Date: Apr ... | true | true | public void run() {
try {
results = new DocumentRepository();
POSModel model = new POSModelLoader().load(new File("resources/en-pos-maxent.bin"));
POSTaggerME tagger = new POSTaggerME(model);
List<File> files = getAllFiles(strWorkingDirectory);
System.out.println("Num of files: " + file... | public void run() {
try {
results = new DocumentRepository();
POSModel model = new POSModelLoader().load(new File("resources/en-pos-maxent.bin"));
POSTaggerME tagger = new POSTaggerME(model);
List<File> files = getAllFiles(strWorkingDirectory);
System.out.println("Num of files: " + file... |
diff --git a/src/main/java/org/primefaces/behavior/printer/PrinterBehavior.java b/src/main/java/org/primefaces/behavior/printer/PrinterBehavior.java
index 67ca84529..fa2026008 100644
--- a/src/main/java/org/primefaces/behavior/printer/PrinterBehavior.java
+++ b/src/main/java/org/primefaces/behavior/printer/PrinterBehav... | true | true | public String getScript(ClientBehaviorContext behaviorContext) {
FacesContext context = behaviorContext.getFacesContext();
String components = SearchExpressionFacade.resolveComponentForClient(
context, behaviorContext.getComponent(), target);
return "PrimeFaces.Expression... | public String getScript(ClientBehaviorContext behaviorContext) {
FacesContext context = behaviorContext.getFacesContext();
String components = SearchExpressionFacade.resolveComponentForClient(
context, behaviorContext.getComponent(), target);
return "PrimeFaces.expression... |
diff --git a/src/DocViewer/src/com/vangent/hieos/DocViewer/client/entrypoint/DocViewer.java b/src/DocViewer/src/com/vangent/hieos/DocViewer/client/entrypoint/DocViewer.java
index bce14f70..5f9ec5e7 100644
--- a/src/DocViewer/src/com/vangent/hieos/DocViewer/client/entrypoint/DocViewer.java
+++ b/src/DocViewer/src/com/va... | true | true | private ToolStrip createToolStrip() {
// Create the "Find Patient" button.
final ToolStripButton findPatientButton = new ToolStripButton();
findPatientButton.setTitle("Find Patients");
findPatientButton.setTooltip("Search network for available patients");
findPatientButton.setIcon("person.png");
findPatien... | private ToolStrip createToolStrip() {
// Create the "Find Patient" button.
final ToolStripButton findPatientButton = new ToolStripButton();
findPatientButton.setTitle("Find Patients");
findPatientButton.setTooltip("Search network for available patients");
findPatientButton.setIcon("person.png");
findPatien... |
diff --git a/src/main/org/hornetq/ra/HornetQRASessionFactoryImpl.java b/src/main/org/hornetq/ra/HornetQRASessionFactoryImpl.java
index 16da2b071..31a0ec82f 100644
--- a/src/main/org/hornetq/ra/HornetQRASessionFactoryImpl.java
+++ b/src/main/org/hornetq/ra/HornetQRASessionFactoryImpl.java
@@ -1,1071 +1,1072 @@
/*
* ... | true | true | protected HornetQRASession allocateConnection(final boolean transacted, int acknowledgeMode, final int sessionType) throws JMSException
{
if (trace)
{
log.trace("allocateConnection(" + transacted + ", " + acknowledgeMode + ", " + sessionType + ")");
}
try
{
synchro... | protected HornetQRASession allocateConnection(final boolean transacted, int acknowledgeMode, final int sessionType) throws JMSException
{
if (trace)
{
log.trace("allocateConnection(" + transacted + ", " + acknowledgeMode + ", " + sessionType + ")");
}
try
{
synchro... |
diff --git a/lucene/src/java/org/apache/lucene/index/DocumentsWriter.java b/lucene/src/java/org/apache/lucene/index/DocumentsWriter.java
index 2ef58357b..7461ce52f 100644
--- a/lucene/src/java/org/apache/lucene/index/DocumentsWriter.java
+++ b/lucene/src/java/org/apache/lucene/index/DocumentsWriter.java
@@ -1,1161 +1,1... | false | true | synchronized SegmentInfo flush(IndexWriter writer, IndexFileDeleter deleter, MergePolicy mergePolicy, SegmentInfos segmentInfos) throws IOException {
// We change writer's segmentInfos:
assert Thread.holdsLock(writer);
waitIdle();
if (numDocs == 0) {
// nothing to do!
if (infoStream != ... | synchronized SegmentInfo flush(IndexWriter writer, IndexFileDeleter deleter, MergePolicy mergePolicy, SegmentInfos segmentInfos) throws IOException {
// We change writer's segmentInfos:
assert Thread.holdsLock(writer);
waitIdle();
if (numDocs == 0) {
// nothing to do!
if (infoStream != ... |
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/JndiEncBuilder.java b/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/JndiEncBuilder.java
index 5781dfe848..23243630ad 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/J... | true | true | public Map<String, Object> buildMap() throws OpenEJBException {
Map<String, Object> bindings = new HashMap<String, Object>();
// bind TransactionManager
TransactionManager transactionManager = SystemInstance.get().getComponent(TransactionManager.class);
bindings.put("java:comp/Trans... | public Map<String, Object> buildMap() throws OpenEJBException {
Map<String, Object> bindings = new HashMap<String, Object>();
// bind TransactionManager
TransactionManager transactionManager = SystemInstance.get().getComponent(TransactionManager.class);
bindings.put("java:comp/Trans... |
diff --git a/src/main/java/org/dasein/cloud/cloudstack/compute/VirtualMachines.java b/src/main/java/org/dasein/cloud/cloudstack/compute/VirtualMachines.java
index f12c7d0..de5e74f 100644
--- a/src/main/java/org/dasein/cloud/cloudstack/compute/VirtualMachines.java
+++ b/src/main/java/org/dasein/cloud/cloudstack/compute/... | true | true | private @Nullable VirtualMachine toVirtualMachine(@Nullable Node node) throws CloudException, InternalException {
if( node == null ) {
return null;
}
HashMap<String,String> properties = new HashMap<String,String>();
VirtualMachine server = new VirtualMachine();
No... | private @Nullable VirtualMachine toVirtualMachine(@Nullable Node node) throws CloudException, InternalException {
if( node == null ) {
return null;
}
HashMap<String,String> properties = new HashMap<String,String>();
VirtualMachine server = new VirtualMachine();
No... |
diff --git a/src/AtomicIncrementRequest.java b/src/AtomicIncrementRequest.java
index 9c48f66..e1fe22d 100644
--- a/src/AtomicIncrementRequest.java
+++ b/src/AtomicIncrementRequest.java
@@ -1,221 +1,225 @@
/*
* Copyright (C) 2010-2012 The Async HBase Authors. All rights reserved.
* This file is part of Async HBas... | false | true | private int predictSerializedSize() {
int size = 0;
size += 4; // int: Number of parameters.
size += 1; // byte: Type of the 1st parameter.
size += 3; // vint: region name length (3 bytes => max length = 32768).
size += region.name().length; // The region name.
size += 1; // byte: Type o... | private int predictSerializedSize() {
int size = 0;
size += 4; // int: Number of parameters.
size += 1; // byte: Type of the 1st parameter.
size += 3; // vint: region name length (3 bytes => max length = 32768).
size += region.name().length; // The region name.
size += 1; // byte: Type o... |
diff --git a/src/org/ssgwt/client/ui/form/ComplexInput.java b/src/org/ssgwt/client/ui/form/ComplexInput.java
index 065374b..c250a3a 100644
--- a/src/org/ssgwt/client/ui/form/ComplexInput.java
+++ b/src/org/ssgwt/client/ui/form/ComplexInput.java
@@ -1,666 +1,667 @@
package org.ssgwt.client.ui.form;
import com.google... | true | true | public void constructor() {
//create view components
messagePanel = new FlowPanel();
messageTable = new FlowPanel();
messageRow = new FlowPanel();
messageCell = new Label();
messageContainer = new FlowPanel();
messageContainer.add(messagePanel);
... | public void constructor() {
//create view components
messagePanel = new FlowPanel();
messageTable = new FlowPanel();
messageRow = new FlowPanel();
messageCell = new Label();
messageContainer = new FlowPanel();
messageContainer.add(messagePanel);
... |
diff --git a/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISSaveSignListener.java b/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISSaveSignListener.java
index d5ad5a66e..612297288 100644
--- a/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISSaveSignListener.java
+++ b/src/main/java/me/eccentric_nz/TARD... | true | true | public void onSaveTerminalClick(InventoryClickEvent event) {
Inventory inv = event.getInventory();
String name = inv.getTitle();
if (name.equals("§4TARDIS saves")) {
event.setCancelled(true);
int slot = event.getRawSlot();
final Player player = (Player) ev... | public void onSaveTerminalClick(InventoryClickEvent event) {
Inventory inv = event.getInventory();
String name = inv.getTitle();
if (name.equals("§4TARDIS saves")) {
event.setCancelled(true);
int slot = event.getRawSlot();
final Player player = (Player) ev... |
diff --git a/src/org/olap4j/driver/xmla/XmlaOlap4jCatalog.java b/src/org/olap4j/driver/xmla/XmlaOlap4jCatalog.java
index 3e951c1..979df3d 100644
--- a/src/org/olap4j/driver/xmla/XmlaOlap4jCatalog.java
+++ b/src/org/olap4j/driver/xmla/XmlaOlap4jCatalog.java
@@ -1,120 +1,120 @@
/*
// $Id$
// This software is subject t... | true | true | XmlaOlap4jCatalog(
XmlaOlap4jDatabaseMetaData olap4jDatabaseMetaData,
XmlaOlap4jDatabase database,
String name)
{
this.database = database;
assert olap4jDatabaseMetaData != null;
assert name != null;
this.olap4jDatabaseMetaData = olap4jDatabaseMetaData;
... | XmlaOlap4jCatalog(
XmlaOlap4jDatabaseMetaData olap4jDatabaseMetaData,
XmlaOlap4jDatabase database,
String name)
{
this.database = database;
assert olap4jDatabaseMetaData != null;
assert name != null;
this.olap4jDatabaseMetaData = olap4jDatabaseMetaData;
... |
diff --git a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/data/target/unresolved/UnresolvedUnknownUsageInfo.java b/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/data/target/unresolved/UnresolvedUnknownUsageInfo.java
index f5a49cfd..aa13da6b 100644
--- a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/data/target/u... | true | true | public EntityUsageInfo resolveEntityUsage(final TargetClassInfo usingClass,
final CallableUnitInfo usingMethod, final ClassInfoManager classInfoManager,
final FieldInfoManager fieldInfoManager, final MethodInfoManager methodInfoManager) {
// �s���ȌĂяo���łȂ������`�F�b�N
Metri... | public EntityUsageInfo resolveEntityUsage(final TargetClassInfo usingClass,
final CallableUnitInfo usingMethod, final ClassInfoManager classInfoManager,
final FieldInfoManager fieldInfoManager, final MethodInfoManager methodInfoManager) {
// �s���ȌĂяo���łȂ������`�F�b�N
Metri... |
diff --git a/wings/src/java/org/wings/plaf/css/ContainerCG.java b/wings/src/java/org/wings/plaf/css/ContainerCG.java
index 1127f71..b8519c3 100644
--- a/wings/src/java/org/wings/plaf/css/ContainerCG.java
+++ b/wings/src/java/org/wings/plaf/css/ContainerCG.java
@@ -1,67 +1,69 @@
/*
* Copyright 2000,2005 wingS develop... | false | true | public void writeInternal(final Device device, final SComponent component) throws java.io.IOException {
final SContainer container = (SContainer) component;
final SLayoutManager layout = container.getLayout();
SDimension preferredSize = container.getPreferredSize();
String height = ... | public void writeInternal(final Device device, final SComponent component) throws java.io.IOException {
final SContainer container = (SContainer) component;
final SLayoutManager layout = container.getLayout();
SDimension preferredSize = container.getPreferredSize();
String height = ... |
diff --git a/src/main/java/netweb/MkIndex.java b/src/main/java/netweb/MkIndex.java
index 64cb475a..f058e435 100644
--- a/src/main/java/netweb/MkIndex.java
+++ b/src/main/java/netweb/MkIndex.java
@@ -1,206 +1,206 @@
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import java.io.*;
/** A simple HTML... | true | true | public void checkOut(String pageURL) {
String thisLine = null;
URL root = null;
if (pageURL == null) {
throw new IllegalArgumentException(
"checkOut(null) isn't very useful");
}
// Open the URL for reading
try {
root = new URL(pageURL);
BufferedReader inrdr = null;
char thisChar = 0;
St... | public void checkOut(String pageURL) {
String thisLine = null;
URL root = null;
if (pageURL == null) {
throw new IllegalArgumentException(
"checkOut(null) isn't very useful");
}
// Open the URL for reading
try {
root = new URL(pageURL);
BufferedReader inrdr = null;
char thisChar = 0;
St... |
diff --git a/src/multimil/Main.java b/src/multimil/Main.java
index a3d9bc7..56f6b9f 100644
--- a/src/multimil/Main.java
+++ b/src/multimil/Main.java
@@ -1,27 +1,27 @@
package multimil;
import java.io.*;
/**
* Main class for Multimil.
*
* @author angelstam
*/
public class Main
{
/**
* @param args
... | true | true | public static void main(String[] args)
{
System.out.println("Multimil disassembler for SY6502.");
opHandler handler;
if (args[0].equals("smooth"))
handler = new opHandler("../codematrix",2);
else
handler = new opHandler("../codematrix",1);
handler.generateInstructions("../doc/multimil.bi... | public static void main(String[] args)
{
System.out.println("Multimil disassembler for SY6502.");
opHandler handler;
if (args.length > 0 && args[0].equals("smooth"))
handler = new opHandler("../codematrix",2);
else
handler = new opHandler("../codematrix",1);
handler.generateInstructions(... |
diff --git a/src/gov/nih/nci/eagle/service/strategies/GeneralizedLinearModelFindingStrategy.java b/src/gov/nih/nci/eagle/service/strategies/GeneralizedLinearModelFindingStrategy.java
index 41ce5a7..a25a1aa 100644
--- a/src/gov/nih/nci/eagle/service/strategies/GeneralizedLinearModelFindingStrategy.java
+++ b/src/gov/nih... | true | true | public boolean analyzeResultSet() throws FindingsAnalysisException {
StatisticalMethodType statisticType = getQueryDTO().getStatisticTypeDE().getValueObject();
try {
if(statisticType==StatisticalMethodType.GLM) {
// set statistical method
glmRequest.setStatistical... | public boolean analyzeResultSet() throws FindingsAnalysisException {
StatisticalMethodType statisticType = getQueryDTO().getStatisticTypeDE().getValueObject();
try {
if(statisticType==StatisticalMethodType.GLM) {
// set statistical method
glmRequest.setStatistical... |
diff --git a/beanstalk-maven-plugin/src/main/java/br/com/ingenieux/mojo/beanstalk/cmd/env/waitfor/WaitForEnvironmentCommand.java b/beanstalk-maven-plugin/src/main/java/br/com/ingenieux/mojo/beanstalk/cmd/env/waitfor/WaitForEnvironmentCommand.java
index c7660fa..3a85822 100644
--- a/beanstalk-maven-plugin/src/main/java/... | true | true | protected Predicate<EnvironmentDescription> getEnvironmentDescriptionPredicate(WaitForEnvironmentContext context) {
// as well as those (which are used as predicate variables, thus being
// final)
final String environmentRef = context.getEnvironmentRef();
final String statusToWaitFor... | protected Predicate<EnvironmentDescription> getEnvironmentDescriptionPredicate(WaitForEnvironmentContext context) {
// as well as those (which are used as predicate variables, thus being
// final)
final String environmentRef = context.getEnvironmentRef();
final String statusToWaitFor... |
diff --git a/src/ee/ut/math/tvt/salessystem/ui/SalesSystemUI.java b/src/ee/ut/math/tvt/salessystem/ui/SalesSystemUI.java
index 3d5d5ea..759be96 100755
--- a/src/ee/ut/math/tvt/salessystem/ui/SalesSystemUI.java
+++ b/src/ee/ut/math/tvt/salessystem/ui/SalesSystemUI.java
@@ -1,149 +1,156 @@
package ee.ut.math.tvt.salessy... | false | true | private void drawWidgets() {
JTabbedPane tabbedPane = new JTabbedPane();
tabbedPane.add("Point-of-sale", purchaseTab.draw());
tabbedPane.add("Warehouse", stockTab.draw());
tabbedPane.add("History", historyTab.draw());
tabbedPane.addChangeListener(new ChangeListener() {
public void stateC... | private void drawWidgets() {
JTabbedPane tabbedPane = new JTabbedPane();
tabbedPane.add("Point-of-sale", purchaseTab.draw());
tabbedPane.add("Warehouse", stockTab.draw());
tabbedPane.add("History", historyTab.draw());
tabbedPane.addChangeListener(new ChangeListener() {
public void stateC... |
diff --git a/src/test/java/com/technophobia/webdriver/substeps/runner/WebdriverSubstepsPropertiesConfigurationTest.java b/src/test/java/com/technophobia/webdriver/substeps/runner/WebdriverSubstepsPropertiesConfigurationTest.java
index 75a3e28..73bb512 100644
--- a/src/test/java/com/technophobia/webdriver/substeps/runne... | false | true | public void testRelativeURLResolvesToFileProtocol() throws SecurityException,
NoSuchMethodException, IllegalArgumentException, IllegalAccessException,
InvocationTargetException {
final Method determineBaseURLMethod = WebdriverSubstepsPropertiesConfiguration.class
.ge... | public void testRelativeURLResolvesToFileProtocol() throws SecurityException,
NoSuchMethodException, IllegalArgumentException, IllegalAccessException,
InvocationTargetException {
final WebdriverSubstepsPropertiesConfiguration config = WebdriverSubstepsPropertiesConfiguration.INSTANC... |
diff --git a/src/de/schildbach/wallet/WalletTransactionsFragment.java b/src/de/schildbach/wallet/WalletTransactionsFragment.java
index dc94340..d2edc47 100644
--- a/src/de/schildbach/wallet/WalletTransactionsFragment.java
+++ b/src/de/schildbach/wallet/WalletTransactionsFragment.java
@@ -1,340 +1,340 @@
/*
* Copyrig... | true | true | public void onCreate(final Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
this.mode = getArguments().getInt(KEY_MODE);
application = (Application) getActivity().getApplication();
final Wallet wallet = application.getWallet();
transactionsListAdapter = new ArrayAdapter<Transaction... | public void onCreate(final Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
this.mode = getArguments().getInt(KEY_MODE);
application = (Application) getActivity().getApplication();
final Wallet wallet = application.getWallet();
transactionsListAdapter = new ArrayAdapter<Transaction... |
diff --git a/ui/plugins/eu.esdihumboldt.hale.ui.common.editors/src/eu/esdihumboldt/hale/ui/common/editors/DefaultAttributeEditor.java b/ui/plugins/eu.esdihumboldt.hale.ui.common.editors/src/eu/esdihumboldt/hale/ui/common/editors/DefaultAttributeEditor.java
index 9fc92b7b4..e3a2b74a7 100644
--- a/ui/plugins/eu.esdihumbo... | true | true | public DefaultAttributeEditor(Composite parent, PropertyDefinition property) {
this.property = property;
TypeDefinition type = property.getPropertyType();
binding = type.getConstraint(Binding.class).getBinding();
validator = type.getConstraint(ValidationConstraint.class).getValidator();
Enumeration<?> enumer... | public DefaultAttributeEditor(Composite parent, PropertyDefinition property) {
this.property = property;
TypeDefinition type = property.getPropertyType();
binding = type.getConstraint(Binding.class).getBinding();
validator = type.getConstraint(ValidationConstraint.class).getValidator();
Enumeration<?> enumer... |
diff --git a/src/freemail/Version.java b/src/freemail/Version.java
index c820464..6ce2221 100644
--- a/src/freemail/Version.java
+++ b/src/freemail/Version.java
@@ -1,47 +1,47 @@
/*
* Version.java
* This file is part of Freemail, copyright (C) 2006 Dave Baker
*
* This program is free software; you can redistri... | true | true | public static String getVersionString() {
if(VERSION.equals("v" + GIT_REVISION)) {
//Presumably because this is a proper release,
//so don't include the redundant git info
return VERSION;
} else {
return VERSION + " (" + GIT_REVISION + ")";
}
}
| public static String getVersionString() {
if(GIT_REVISION.equals("v" + VERSION)) {
//Presumably because this is a proper release,
//so don't include the redundant git info
return VERSION;
} else {
return VERSION + " (" + GIT_REVISION + ")";
}
}
|
diff --git a/src/test/java/novelang/model/implementation/PartTest.java b/src/test/java/novelang/model/implementation/PartTest.java
index 0923e650..ee044c34 100644
--- a/src/test/java/novelang/model/implementation/PartTest.java
+++ b/src/test/java/novelang/model/implementation/PartTest.java
@@ -1,85 +1,77 @@
/*
* Cop... | true | true | public void loadPartOk() throws IOException {
final Part part = new Part( sections1File ) ;
final Tree partTree = part.getTree();
Assert.assertNotNull( partTree ) ;
final Tree expected = tree( PART,
tree( SECTION,
tree( IDENTIFIER, tree( WORD, "Section1nlp" ) ),
tree(... | public void loadPartOk() throws IOException {
final Part part = new Part( sections1File ) ;
final Tree partTree = part.getTree();
Assert.assertNotNull( partTree ) ;
final Tree expected = tree( PART,
tree( SECTION, tree( IDENTIFIER, tree( WORD, "Section1nlp" ) ) ),
tree( PARAGRAPH_PLA... |
diff --git a/src/main/java/tconstruct/tools/model/BattlesignTesr.java b/src/main/java/tconstruct/tools/model/BattlesignTesr.java
index 2bca9ddf4..a3077ba87 100644
--- a/src/main/java/tconstruct/tools/model/BattlesignTesr.java
+++ b/src/main/java/tconstruct/tools/model/BattlesignTesr.java
@@ -1,75 +1,75 @@
package tcon... | false | true | public void renderTileEntityAt (BattlesignLogic te, double x, double y, double z, float something)
{
GL11.glPushMatrix();
GL11.glDisable(GL11.GL_LIGHTING);
float f = 0.016666668F * 0.6666667F;
GL11.glTranslated(x, y, z);
GL11.glScalef(f, -f, f);
// GL11.g... | public void renderTileEntityAt (BattlesignLogic te, double x, double y, double z, float something)
{
GL11.glPushMatrix();
GL11.glDisable(GL11.GL_LIGHTING);
float f = 0.016666668F * 0.6666667F;
GL11.glTranslated(x, y, z);
GL11.glScalef(f, -f, f);
FontRenderer fr... |
diff --git a/src/com/android/volley/toolbox/BasicNetwork.java b/src/com/android/volley/toolbox/BasicNetwork.java
index be77a0d..282fd14 100644
--- a/src/com/android/volley/toolbox/BasicNetwork.java
+++ b/src/com/android/volley/toolbox/BasicNetwork.java
@@ -1,233 +1,231 @@
/*
* Copyright (C) 2011 The Android Open Sou... | true | true | public NetworkResponse performRequest(Request<?> request) throws VolleyError {
long requestStart = SystemClock.elapsedRealtime();
while (true) {
HttpResponse httpResponse = null;
byte[] responseContents = null;
Map<String, String> responseHeaders = new HashMap<Str... | public NetworkResponse performRequest(Request<?> request) throws VolleyError {
long requestStart = SystemClock.elapsedRealtime();
while (true) {
HttpResponse httpResponse = null;
byte[] responseContents = null;
Map<String, String> responseHeaders = new HashMap<Str... |
diff --git a/src/main/java/org/apache/ibatis/builder/SqlSourceBuilder.java b/src/main/java/org/apache/ibatis/builder/SqlSourceBuilder.java
index b8c5fa8285..82baaf912c 100644
--- a/src/main/java/org/apache/ibatis/builder/SqlSourceBuilder.java
+++ b/src/main/java/org/apache/ibatis/builder/SqlSourceBuilder.java
@@ -1,134... | true | true | private ParameterMapping buildParameterMapping(String content) {
Map<String, String> propertiesMap = parseParameterMapping(content);
String property = propertiesMap.get("property");
Class<?> propertyType;
if (metaParameters.hasGetter(property)) { // issue #448 get type from additional params... | private ParameterMapping buildParameterMapping(String content) {
Map<String, String> propertiesMap = parseParameterMapping(content);
String property = propertiesMap.get("property");
Class<?> propertyType;
if (metaParameters.hasGetter(property)) { // issue #448 get type from additional params... |
diff --git a/PetriNetReplayAnalysis/src/org/processmining/plugins/petrinet/addtransition/AddEndTransitionPlugin.java b/PetriNetReplayAnalysis/src/org/processmining/plugins/petrinet/addtransition/AddEndTransitionPlugin.java
index f69ca38..7149593 100644
--- a/PetriNetReplayAnalysis/src/org/processmining/plugins/petrinet... | true | true | public Object addTransition(PluginContext context, Petrinet oldnet, String name){
name = name.replaceAll ("[ \\p{Punct}]", "");
Marking oldmarking=null;
try {
InitialMarkingConnection connection = context.getConnectionManager().getFirstConnection(
InitialMarkingConnection.class, context, oldnet);
old... | public Object addTransition(PluginContext context, Petrinet oldnet, String name){
name = name.replaceAll ("[ \\p{Punct}]", "");
Marking oldmarking=null;
try {
InitialMarkingConnection connection = context.getConnectionManager().getFirstConnection(
InitialMarkingConnection.class, context, oldnet);
old... |
diff --git a/core/src/main/java/org/apache/ftpserver/DataConnectionConfigurationFactory.java b/core/src/main/java/org/apache/ftpserver/DataConnectionConfigurationFactory.java
index f6ffe9b0..7743ab48 100644
--- a/core/src/main/java/org/apache/ftpserver/DataConnectionConfigurationFactory.java
+++ b/core/src/main/java/or... | true | true | public synchronized int requestPassivePort() {
int dataPort = -1;
int loopTimes = 2;
Thread currThread = Thread.currentThread();
while ((dataPort == -1) && (--loopTimes >= 0)
&& (!currThread.isInterrupted())) {
// search for a free port
dataP... | public synchronized int requestPassivePort() {
int dataPort = -1;
int loopTimes = 2;
Thread currThread = Thread.currentThread();
while ((dataPort == -1) && (--loopTimes >= 0)
&& (!currThread.isInterrupted())) {
// search for a free port
dataP... |
diff --git a/wicketstuff-jquery-examples/src/main/java/org/wicketstuff/jquery/demo/Page4JGrowl.java b/wicketstuff-jquery-examples/src/main/java/org/wicketstuff/jquery/demo/Page4JGrowl.java
index 1ef90dde5..42bc6585d 100644
--- a/wicketstuff-jquery-examples/src/main/java/org/wicketstuff/jquery/demo/Page4JGrowl.java
+++ ... | true | true | public Page4JGrowl() {
final JGrowlFeedbackPanel feedback = new JGrowlFeedbackPanel("jgrowlFeedback");
add(feedback);
final Options errorOptions = new Options();
errorOptions.set("header", "Error");
errorOptions.set("theme", "error");
errorOptions.set("glue", "before");
feedback.setErrorMessageOpti... | public Page4JGrowl() {
final JGrowlFeedbackPanel feedback = new JGrowlFeedbackPanel("jgrowlFeedback");
add(feedback);
final Options errorOptions = new Options();
errorOptions.set("header", "Error");
errorOptions.set("theme", "error");
errorOptions.set("glue", "before");
feedback.setErrorMessageOpti... |
diff --git a/src/main/java/de/cismet/cids/custom/nas/PointNumberDownload.java b/src/main/java/de/cismet/cids/custom/nas/PointNumberDownload.java
index 20ff1f4c..301c5bf2 100644
--- a/src/main/java/de/cismet/cids/custom/nas/PointNumberDownload.java
+++ b/src/main/java/de/cismet/cids/custom/nas/PointNumberDownload.java
@... | true | true | public void run() {
if (status != State.WAITING) {
return;
}
status = State.RUNNING;
stateChanged();
final String bytes;
if (downloadProtokoll) {
bytes = content.getProtokoll();
} else {
if (!isPointNumberBeanValid()) {
... | public void run() {
if (status != State.WAITING) {
return;
}
status = State.RUNNING;
stateChanged();
final String bytes;
if (downloadProtokoll) {
bytes = content.getProtokoll();
} else {
if (!isPointNumberBeanValid()) {
... |
diff --git a/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_ownerstatus.java b/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_ownerstatus.java
index 58f9306..282625f 100644
--- a/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_ownerstatus.java... | true | true | public static Boolean run(CommandSender sender, String alias, String[] args) {
// Command Variables
Player player = (Player)sender;
String ownerS = CommandsEX.getConf().getString("ServerOwner");
Player owner = Bukkit.getPlayer(ownerS);
String ownerStatus = "";
// Is the sender the owner?
if(player ... | public static Boolean run(CommandSender sender, String alias, String[] args) {
// Command Variables
Player player = (Player)sender;
String ownerS = CommandsEX.getConf().getString("ServerOwner");
Player owner = Bukkit.getPlayer(ownerS);
String ownerStatus = "";
// Is the sender the owner?
if(player ... |
diff --git a/src/main/java/nodebox/client/NetworkView.java b/src/main/java/nodebox/client/NetworkView.java
index 9ca26f22..0a0f6139 100644
--- a/src/main/java/nodebox/client/NetworkView.java
+++ b/src/main/java/nodebox/client/NetworkView.java
@@ -1,1136 +1,1140 @@
package nodebox.client;
import com.google.common.ba... | false | true | private void paintNode(Graphics2D g, Node network, Node node, BufferedImage icon, boolean selected, boolean rendered, Node connectionOutput, Port hoverInputPort, boolean hoverOutput) {
Rectangle r = nodeRect(node);
String outputType = node.getOutputType();
// Draw selection ring
if ... | private void paintNode(Graphics2D g, Node network, Node node, BufferedImage icon, boolean selected, boolean rendered, Node connectionOutput, Port hoverInputPort, boolean hoverOutput) {
Rectangle r = nodeRect(node);
String outputType = node.getOutputType();
// Draw selection ring
if ... |
diff --git a/sventon/src/main/java/de/berlios/sventon/web/command/ConfigCommandValidator.java b/sventon/src/main/java/de/berlios/sventon/web/command/ConfigCommandValidator.java
index cd7f3c0a..c7675f15 100644
--- a/sventon/src/main/java/de/berlios/sventon/web/command/ConfigCommandValidator.java
+++ b/sventon/src/main/j... | true | true | public void validate(final Object obj, final Errors errors) {
final ConfigCommand command = (ConfigCommand) obj;
// Validate 'repository instance name'
final String instanceName = command.getName();
if (instanceName != null) {
if (!Instance.isValidName(instanceName)) {
final String msg ... | public void validate(final Object obj, final Errors errors) {
final ConfigCommand command = (ConfigCommand) obj;
// Validate 'repository instance name'
final String instanceName = command.getName();
if (instanceName != null) {
if (!Instance.isValidName(instanceName)) {
final String msg ... |
diff --git a/source/de/tuclausthal/submissioninterface/servlets/view/ShowLectureStudentView.java b/source/de/tuclausthal/submissioninterface/servlets/view/ShowLectureStudentView.java
index a64c6ea..09f2d3a 100644
--- a/source/de/tuclausthal/submissioninterface/servlets/view/ShowLectureStudentView.java
+++ b/source/de/t... | false | true | public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
Template template = TemplateFactory.getTemplate(request, response);
PrintWriter out = response.getWriter();
Participation participation = (Participation) request.getAttribute("participation");
L... | public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
Template template = TemplateFactory.getTemplate(request, response);
PrintWriter out = response.getWriter();
Participation participation = (Participation) request.getAttribute("participation");
L... |
diff --git a/dspace/src/org/dspace/browse/Browse.java b/dspace/src/org/dspace/browse/Browse.java
index 744fd2f67..3a3f0e651 100644
--- a/dspace/src/org/dspace/browse/Browse.java
+++ b/dspace/src/org/dspace/browse/Browse.java
@@ -1,2234 +1,2234 @@
/*
* Browse.java
*
* Version: $Revision$
*
* Date: $Date$
*
... | true | true | private static String createSqlInternal(BrowseScope scope,
String itemValue, boolean isCount)
{
String tablename = BrowseTables.getTable(scope);
String column = BrowseTables.getValueColumn(scope);
int browseType = scope.getBrowseType();
StringBuffer sqlb = new Strin... | private static String createSqlInternal(BrowseScope scope,
String itemValue, boolean isCount)
{
String tablename = BrowseTables.getTable(scope);
String column = BrowseTables.getValueColumn(scope);
int browseType = scope.getBrowseType();
StringBuffer sqlb = new Strin... |
diff --git a/splat/src/main/uk/ac/starlink/splat/vo/SSAMetadataFrame.java b/splat/src/main/uk/ac/starlink/splat/vo/SSAMetadataFrame.java
index d0dde5040..d70ebacf8 100644
--- a/splat/src/main/uk/ac/starlink/splat/vo/SSAMetadataFrame.java
+++ b/splat/src/main/uk/ac/starlink/splat/vo/SSAMetadataFrame.java
@@ -1,790 +1,79... | true | true | protected void initMenus()
{
// get the icons
// Get icons.
ImageIcon closeImage = new ImageIcon( ImageHolder.class.getResource( "close.gif" ) );
ImageIcon saveImage = new ImageIcon( ImageHolder.class.getResource( "savefile.gif" ) );
ImageIcon readImage... | protected void initMenus()
{
// get the icons
// Get icons.
ImageIcon closeImage = new ImageIcon( ImageHolder.class.getResource( "close.gif" ) );
ImageIcon saveImage = new ImageIcon( ImageHolder.class.getResource( "savefile.gif" ) );
ImageIcon readImage... |
diff --git a/src/com/android/settings/wifi/WifiDialog.java b/src/com/android/settings/wifi/WifiDialog.java
index 7f69967c4..203499e89 100644
--- a/src/com/android/settings/wifi/WifiDialog.java
+++ b/src/com/android/settings/wifi/WifiDialog.java
@@ -1,362 +1,362 @@
/*
* Copyright (C) 2010 The Android Open Source Proj... | true | true | WifiConfiguration getConfig() {
if (mAccessPoint != null && mAccessPoint.networkId != -1 && !edit) {
return null;
}
WifiConfiguration config = new WifiConfiguration();
if (mAccessPoint == null) {
config.SSID = mSsid.getText().toString();
// If th... | WifiConfiguration getConfig() {
if (mAccessPoint != null && mAccessPoint.networkId != -1 && !edit) {
return null;
}
WifiConfiguration config = new WifiConfiguration();
if (mAccessPoint == null) {
config.SSID = mSsid.getText().toString();
// If th... |
diff --git a/sventon/dev/java/src/de/berlios/sventon/web/ctrl/ShowLogController.java b/sventon/dev/java/src/de/berlios/sventon/web/ctrl/ShowLogController.java
index 36a696c9..99144275 100644
--- a/sventon/dev/java/src/de/berlios/sventon/web/ctrl/ShowLogController.java
+++ b/sventon/dev/java/src/de/berlios/sventon/web/c... | false | true | protected ModelAndView svnHandle(final SVNRepository repository, final SVNBaseCommand svnCommand,
final SVNRevision revision, final HttpServletRequest request,
final HttpServletResponse response, final BindException exception) throws Exception {
... | protected ModelAndView svnHandle(final SVNRepository repository, final SVNBaseCommand svnCommand,
final SVNRevision revision, final HttpServletRequest request,
final HttpServletResponse response, final BindException exception) throws Exception {
... |
diff --git a/MSMExplorer/src/edu/stanford/folding/msmexplorer/util/ui/VisualizationSettingsDialog.java b/MSMExplorer/src/edu/stanford/folding/msmexplorer/util/ui/VisualizationSettingsDialog.java
index 09da988..0099269 100644
--- a/MSMExplorer/src/edu/stanford/folding/msmexplorer/util/ui/VisualizationSettingsDialog.java... | false | true | public VisualizationSettingsDialog(final Frame f, Visualization vis, LabelRenderer lr,
ShapeRenderer sr, SelfRefEdgeRenderer er, PolygonRenderer pr) {
//Init instance members
super(f);
m_vis = vis;
m_lr = lr;
m_sr = sr;
m_er = er;
m_pr = pr;
//Pane for options related to different renderers.
J... | public VisualizationSettingsDialog(final Frame f, Visualization vis, LabelRenderer lr,
ShapeRenderer sr, SelfRefEdgeRenderer er, PolygonRenderer pr) {
//Init instance members
super(f);
m_vis = vis;
m_lr = lr;
m_sr = sr;
m_er = er;
m_pr = pr;
//Pane for options related to different renderers.
J... |
diff --git a/jminix/src/main/java/org/jminix/console/resource/AbstractTemplateResource.java b/jminix/src/main/java/org/jminix/console/resource/AbstractTemplateResource.java
index 669b84e..056b6d9 100644
--- a/jminix/src/main/java/org/jminix/console/resource/AbstractTemplateResource.java
+++ b/jminix/src/main/java/org/j... | true | true | public Representation represent(Variant variant) throws ResourceException
{
// To avoid IE caching causing conflicts between JSON and HTML representations in ajax
// console
Form responseHeaders =
(Form) getResponse().getAttributes().get("org.restlet.http.headers");
... | public Representation represent(Variant variant) throws ResourceException
{
// To avoid IE caching causing conflicts between JSON and HTML representations in ajax
// console
Form responseHeaders =
(Form) getResponse().getAttributes().get("org.restlet.http.headers");
... |
diff --git a/ecologylab/generic/ReflectionTools.java b/ecologylab/generic/ReflectionTools.java
index e00e5397..4c3cde2e 100644
--- a/ecologylab/generic/ReflectionTools.java
+++ b/ecologylab/generic/ReflectionTools.java
@@ -1,235 +1,237 @@
package ecologylab.generic;
import java.lang.reflect.Constructor;
import jav... | true | true | public static<T> T getInstance(Class<T> thatClass, Class[] parameterTypes, Object[] args)
{
T result = null;
if (thatClass != null)
{
try
{
Constructor<T> constructor = thatClass.getDeclaredConstructor(parameterTypes);
if (constructor != null)
result = constructor.n... | public static<T> T getInstance(Class<T> thatClass, Class[] parameterTypes, Object[] args)
{
T result = null;
if (thatClass != null)
{
try
{
Constructor<T> constructor = thatClass.getDeclaredConstructor(parameterTypes);
if (constructor != null)
result = constructor.n... |
diff --git a/src/gov/nist/javax/sip/parser/Pipeline.java b/src/gov/nist/javax/sip/parser/Pipeline.java
index d94bd6b1..66a080c6 100755
--- a/src/gov/nist/javax/sip/parser/Pipeline.java
+++ b/src/gov/nist/javax/sip/parser/Pipeline.java
@@ -1,201 +1,202 @@
/*
* Conditions Of Use
*
* This software was developed by ... | true | true | public int read() throws IOException {
// if (this.isClosed) return -1;
synchronized (this.buffList) {
if (currentBuffer != null
&& currentBuffer.ptr < currentBuffer.length) {
int retval = currentBuffer.getNextByte();
if (currentBuffer.... | public int read() throws IOException {
// if (this.isClosed) return -1;
synchronized (this.buffList) {
if (currentBuffer != null
&& currentBuffer.ptr < currentBuffer.length) {
int retval = currentBuffer.getNextByte();
if (currentBuffer.... |
diff --git a/library/src/com/orm/StringUtil.java b/library/src/com/orm/StringUtil.java
index effb501..40fabf4 100644
--- a/library/src/com/orm/StringUtil.java
+++ b/library/src/com/orm/StringUtil.java
@@ -1,38 +1,38 @@
package com.orm;
public class StringUtil {
public static String toSQLName(String javaNotatio... | true | true | public static String toSQLName(String javaNotation) {
if(javaNotation.equalsIgnoreCase("_id"))
return "_id";
StringBuilder sb = new StringBuilder();
char[] buf = javaNotation.toCharArray();
for (int i = 0; i < buf.length; i++) {
... | public static String toSQLName(String javaNotation) {
if(javaNotation.equalsIgnoreCase("_id"))
return "_id";
StringBuilder sb = new StringBuilder();
char[] buf = javaNotation.toCharArray();
for (int i = 0; i < buf.length; i++) {
... |
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/step/DefaultStepFactoryBean.java b/spring-batch-core/src/main/java/org/springframework/batch/core/step/DefaultStepFactoryBean.java
index cc5d1be5a..f497ff8eb 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/step/Defau... | true | true | protected void applyConfiguration(ItemOrientedStep step) {
super.applyConfiguration(step);
step.setStreams(streams);
for (int i = 0; i < listeners.length; i++) {
BatchListener listener = listeners[i];
if (listener instanceof StepListener) {
step.registerStepListener((StepListener) listener);
}
... | protected void applyConfiguration(ItemOrientedStep step) {
super.applyConfiguration(step);
step.setStreams(streams);
for (int i = 0; i < listeners.length; i++) {
BatchListener listener = listeners[i];
if (listener instanceof StepListener) {
step.registerStepListener((StepListener) listener);
}
... |
diff --git a/src/main/java/org/sonatype/jettytestsuite/proxy/UnstableFileServerServlet.java b/src/main/java/org/sonatype/jettytestsuite/proxy/UnstableFileServerServlet.java
index 7af3a5b..7928ba6 100644
--- a/src/main/java/org/sonatype/jettytestsuite/proxy/UnstableFileServerServlet.java
+++ b/src/main/java/org/sonatype... | true | true | public void service( HttpServletRequest req, HttpServletResponse res )
throws ServletException, IOException
{
if ( numberOfTries > 0 )
{
res.sendError( returnCode );
return;
}
else
{
super.service( req, res );
}
}
| public void service( HttpServletRequest req, HttpServletResponse res )
throws ServletException, IOException
{
if ( numberOfTries > 0 )
{
numberOfTries--;
res.sendError( returnCode );
return;
}
else
{
super.service( r... |
diff --git a/source/RMG/jing/rxnSys/RateBasedPDepVT.java b/source/RMG/jing/rxnSys/RateBasedPDepVT.java
index 1caf40b0..28c8395b 100644
--- a/source/RMG/jing/rxnSys/RateBasedPDepVT.java
+++ b/source/RMG/jing/rxnSys/RateBasedPDepVT.java
@@ -1,90 +1,91 @@
//////////////////////////////////////////////////////////////////... | true | true | public boolean isModelValid(ReactionSystem p_reactionSystem) {
// Check if all the unreacted species has their fluxes under the system min flux
if (!super.isModelValid(p_reactionSystem))
return false;
// check if all the networks has their leak fluxes under the system min flux
Prese... | public boolean isModelValid(ReactionSystem p_reactionSystem) {
// Check if all the unreacted species has their fluxes under the system min flux
if (!super.isModelValid(p_reactionSystem))
return false;
// check if all the networks has their leak fluxes under the system min flux
Prese... |
diff --git a/cilia-workbench-designer/src/fr/liglab/adele/cilia/workbench/designer/parser/ciliajar/MediatorComponent.java b/cilia-workbench-designer/src/fr/liglab/adele/cilia/workbench/designer/parser/ciliajar/MediatorComponent.java
index ea39870..1510fdf 100644
--- a/cilia-workbench-designer/src/fr/liglab/adele/cilia/... | false | true | public CiliaFlag[] getErrorsAndWarnings() {
CiliaFlag[] tab = super.getErrorsAndWarnings();
List<CiliaFlag> flagsTab = new ArrayList<CiliaFlag>();
for (CiliaFlag f : tab)
flagsTab.add(f);
CiliaFlag e1 = CiliaError.checkStringNotNullOrEmpty(this, schedulerName, "scheduler name");
CiliaFlag e2 = CiliaErro... | public CiliaFlag[] getErrorsAndWarnings() {
CiliaFlag[] tab = super.getErrorsAndWarnings();
List<CiliaFlag> flagsTab = new ArrayList<CiliaFlag>();
for (CiliaFlag f : tab)
flagsTab.add(f);
CiliaFlag e1 = CiliaError.checkStringNotNullOrEmpty(this, schedulerName, "scheduler name");
CiliaFlag e2 = CiliaErro... |
diff --git a/src/info/jeppes/ZoneCore/ZoneConfig.java b/src/info/jeppes/ZoneCore/ZoneConfig.java
index 9f9f903..bdb7611 100644
--- a/src/info/jeppes/ZoneCore/ZoneConfig.java
+++ b/src/info/jeppes/ZoneCore/ZoneConfig.java
@@ -1,157 +1,159 @@
/*
* To change this template, choose Tools | Templates
* and open the temp... | true | true | public ZoneConfig(Plugin plugin, File file, boolean loadDefaults){
this.plugin = plugin;
this.file = file;
this.name = file.getName();
if(!file.exists()){
try {
//Create directory if doesn't exist
new File(file.getPath()).mkdirs();
... | public ZoneConfig(Plugin plugin, File file, boolean loadDefaults){
this.plugin = plugin;
this.file = file;
this.name = file.getName();
if(!file.exists()){
try {
//Create directory if doesn't exist
if(file.getParentFile() != null){
... |
diff --git a/src/main/java/edu/rit/asksg/domain/Twilio.java b/src/main/java/edu/rit/asksg/domain/Twilio.java
index 9062c4d..e3bfd79 100755
--- a/src/main/java/edu/rit/asksg/domain/Twilio.java
+++ b/src/main/java/edu/rit/asksg/domain/Twilio.java
@@ -1,108 +1,108 @@
package edu.rit.asksg.domain;
import com.google.com... | true | true | public void handleMessage(String smsSid, String accountSid, String from, String to, String body) {
Message message = new Message();
message.setContent(body);
Identity identity = getIdentityService().findOrCreate(from);
message.setIdentity(identity);
LocalDateTime now = LocalDateTime.now... | public void handleMessage(String smsSid, String accountSid, String from, String to, String body) {
Message message = new Message();
message.setContent(body);
Identity identity = getIdentityService().findOrCreate(from);
message.setIdentity(identity);
LocalDateTime now = LocalDateTime.now... |
diff --git a/src/main/java/com/mike724/email/Email.java b/src/main/java/com/mike724/email/Email.java
index 24d3b99..db5f2dd 100644
--- a/src/main/java/com/mike724/email/Email.java
+++ b/src/main/java/com/mike724/email/Email.java
@@ -1,96 +1,96 @@
/*
This file is part of Email.
Email is free software: you c... | true | true | public void onEnable() {
if (!this.getDataFolder().exists()) {
this.getDataFolder().mkdir();
}
FileConfiguration config = this.getConfig();
config.options().copyHeader(true);
config.options().copyDefaults(true);
this.saveConfig();
Logger log = th... | public void onEnable() {
if (!this.getDataFolder().exists()) {
this.getDataFolder().mkdir();
}
FileConfiguration config = this.getConfig();
config.options().copyHeader(true);
config.options().copyDefaults(true);
this.saveConfig();
Logger log = th... |
diff --git a/src/web/org/openmrs/web/taglib/ForEachEncounterTag.java b/src/web/org/openmrs/web/taglib/ForEachEncounterTag.java
index ac886dda..4bebddb4 100644
--- a/src/web/org/openmrs/web/taglib/ForEachEncounterTag.java
+++ b/src/web/org/openmrs/web/taglib/ForEachEncounterTag.java
@@ -1,200 +1,200 @@
/**
* The cont... | false | true | public int doStartTag() {
if (encounters == null || encounters.isEmpty()) {
log.error("ForEachEncounterTag skipping body due to encounters param = " + encounters);
return SKIP_BODY;
}
// First retrieve all encounters matching the passed concept id, if provided.
// If not provided, return all encounters
... | public int doStartTag() {
if (encounters == null || encounters.isEmpty()) {
log.error("ForEachEncounterTag skipping body due to 'encounters' param = " + encounters);
return SKIP_BODY;
}
// First retrieve all encounters matching the passed encounter type id, if provided.
// If not provided, return all enc... |
Subsets and Splits
Megadiff Train Samples Analysis
Counts the number of changed lines in a patch file, distinguishing additions and deletions but ignoring those marked with more than two '+' or '-', providing insights into significant modifications in patches.