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/wicket-contrib-database/src/java/wicket/contrib/database/hibernate/HibernateDatabaseObject.java b/wicket-contrib-database/src/java/wicket/contrib/database/hibernate/HibernateDatabaseObject.java
index e6e63b9ef..98fc4e3e4 100644
--- a/wicket-contrib-database/src/java/wicket/contrib/database/hibernate/Hibern... | true | true | public boolean equals(Object that)
{
if (that instanceof HibernateDatabaseObject)
{
if (id != null)
{
return id.equals((((HibernateDatabaseObject)that).id));
}
else
{
return null == (((HibernateDatabaseObject)that).id);
}
}
else
{
return false;
}
}
| public boolean equals(Object that)
{
if (that instanceof HibernateDatabaseObject)
{
if (id != null)
{
return id.equals((((HibernateDatabaseObject)that).id));
}
else
{
return this == that;
}
}
else
{
return false;
}
}
|
diff --git a/service/src/test/java/org/apache/directory/server/UberJarMainTest.java b/service/src/test/java/org/apache/directory/server/UberJarMainTest.java
index 0e730dcb68..c27c4e51a6 100644
--- a/service/src/test/java/org/apache/directory/server/UberJarMainTest.java
+++ b/service/src/test/java/org/apache/directory/s... | true | true | public void serviceInstanceTest() throws Exception
{
// Getting tmp directory
File tmpDirectory = new File( System.getProperty( "java.io.tmpdir" ) );
// Creating an instance directory
Calendar calendar = Calendar.getInstance();
File instanceDirectory = new File( tmpDirec... | public void serviceInstanceTest() throws Exception
{
// Getting tmp directory
File tmpDirectory = new File( System.getProperty( "java.io.tmpdir" ) );
// Creating an instance directory
Calendar calendar = Calendar.getInstance();
File instanceDirectory = new File( tmpDirec... |
diff --git a/src/main/java/org/firebrandocm/dao/cql/clauses/IndexOperatorPredicate.java b/src/main/java/org/firebrandocm/dao/cql/clauses/IndexOperatorPredicate.java
index 2ce6ab4..49eb3b7 100644
--- a/src/main/java/org/firebrandocm/dao/cql/clauses/IndexOperatorPredicate.java
+++ b/src/main/java/org/firebrandocm/dao/cql... | true | true | public String toString() {
String operatorToken = null;
switch (operator) {
case EQ: operatorToken = "="; break;
case LT: operatorToken = "<"; break;
case LTE: operatorToken = "<="; break;
case GT: operatorToken = ">"; break;
case GTE: operatorToken = ">="; break;
}
return String.format(String.f... | public String toString() {
String operatorToken = null;
switch (operator) {
case EQ: operatorToken = "="; break;
case LT: operatorToken = "<"; break;
case LTE: operatorToken = "<="; break;
case GT: operatorToken = ">"; break;
case GTE: operatorToken = ">="; break;
}
return String.format("%s %s '... |
diff --git a/webservice-psicquic-client-impl/src/main/java/org/cytoscape/webservice/psicquic/task/ImportNetworkFromPSICQUICTask.java b/webservice-psicquic-client-impl/src/main/java/org/cytoscape/webservice/psicquic/task/ImportNetworkFromPSICQUICTask.java
index c76869ee0..b9d93571a 100644
--- a/webservice-psicquic-clien... | true | true | public void run(TaskMonitor taskMonitor) throws Exception {
taskMonitor.setTitle("Importing Interacitons from PSICQUIC Services");
taskMonitor.setStatusMessage("Loading interaction from remote service...");
taskMonitor.setProgress(0.01d);
if (searchResult == null)
processSearchResult();
else
targetSer... | public void run(TaskMonitor taskMonitor) throws Exception {
taskMonitor.setTitle("Importing Interactions from PSICQUIC Services");
taskMonitor.setStatusMessage("Loading interactions from remote service...");
taskMonitor.setProgress(0.01d);
if (searchResult == null)
processSearchResult();
else
targetSe... |
diff --git a/asm/src/org/objectweb/asm/attrs/RuntimeVisibleParameterAnnotations.java b/asm/src/org/objectweb/asm/attrs/RuntimeVisibleParameterAnnotations.java
index 7005b08f..a264d1e3 100644
--- a/asm/src/org/objectweb/asm/attrs/RuntimeVisibleParameterAnnotations.java
+++ b/asm/src/org/objectweb/asm/attrs/RuntimeVisibl... | true | true | protected Attribute read (ClassReader cr, int off,
int len, char[] buf, int codeOff, Label[] labels) {
RuntimeInvisibleParameterAnnotations atr =
new RuntimeInvisibleParameterAnnotations();
Annotation.readParameterAnnotations(atr.parameters, cr, off, buf);
return atr;
}... | protected Attribute read (ClassReader cr, int off,
int len, char[] buf, int codeOff, Label[] labels) {
RuntimeVisibleParameterAnnotations atr =
new RuntimeVisibleParameterAnnotations();
Annotation.readParameterAnnotations(atr.parameters, cr, off, buf);
return atr;
}
|
diff --git a/src/main/java/com/db/exporter/writer/FileWriter.java b/src/main/java/com/db/exporter/writer/FileWriter.java
index c515a2c..c250d49 100644
--- a/src/main/java/com/db/exporter/writer/FileWriter.java
+++ b/src/main/java/com/db/exporter/writer/FileWriter.java
@@ -1,70 +1,74 @@
package com.db.exporter.writer;
... | true | true | public void run() {
Writer streamWriter = null;
try {
File file = new File(m_config.getDumpFilePath());
streamWriter = IOUtils.getOutputStream(file);
synchronized (BufferManager.BUFFER_TOKEN) {
while (!BufferManager.isReadingComplete()) {
if (!Thread.interrupted()) {
try {
BufferMana... | public void run() {
Writer streamWriter = null;
try {
File file = new File(m_config.getDumpFilePath());
streamWriter = IOUtils.getOutputStream(file);
synchronized (BufferManager.BUFFER_TOKEN) {
while (!BufferManager.isReadingComplete()) {
if (!Thread.interrupted()) {
try {
BufferMana... |
diff --git a/src/edu/drexel/cs544/mcmuc/actions/Timeout.java b/src/edu/drexel/cs544/mcmuc/actions/Timeout.java
index f3a7413..073a71e 100644
--- a/src/edu/drexel/cs544/mcmuc/actions/Timeout.java
+++ b/src/edu/drexel/cs544/mcmuc/actions/Timeout.java
@@ -1,63 +1,63 @@
package edu.drexel.cs544.mcmuc.actions;
import ja... | true | true | public void process(Channel channel) {
class Runner implements Runnable {
Timeout message;
Runner(Timeout m) {
message = m;
}
public void run() {
Set<Integer> roomPortsInUse = Controller.getInstance().roomPortsInUse;
... | public void process(Channel channel) {
class Runner implements Runnable {
Timeout message;
Runner(Timeout m) {
message = m;
}
public void run() {
Set<Integer> roomPortsInUse = Controller.getInstance().roomPortsInUse;
... |
diff --git a/src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java b/src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java
index 8c7d1e4b..36fa42de 100644
--- a/src/main/java/net/pterodactylus/sone/template/ProfileAccessor.java
+++ b/src/main/java/net/pterodactylus/sone/template/ProfileAccesso... | true | true | public Object get(TemplateContext templateContext, Object object, String member) {
Profile profile = (Profile) object;
if ("avatar".equals(member)) {
Sone currentSone = (Sone) templateContext.get("currentSone");
if (currentSone == null) {
/* not logged in? don’t show custom avatars, then. */
return n... | public Object get(TemplateContext templateContext, Object object, String member) {
Profile profile = (Profile) object;
if ("avatar".equals(member)) {
Sone currentSone = (Sone) templateContext.get("currentSone");
if (currentSone == null) {
/* not logged in? don’t show custom avatars, then. */
return n... |
diff --git a/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/internal/context/ContextToObjectLink.java b/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/core/services/internal/context/ContextToObjectLink.java
index ea1d2094d..436b29525 100644
--- a/bundles/org.eclipse.e4.core.services/src/... | false | true | public boolean notify(final IEclipseContext context, final String name,
final int eventType, final Object[] args) {
if (eventType == IRunAndTrack.DISPOSE) {
for (Iterator it = userObjects.iterator(); it.hasNext();) {
Object object = (Object) it.next();
findAndCallDispose(object, object.getClass());
... | public boolean notify(final IEclipseContext context, final String name,
final int eventType, final Object[] args) {
if (eventType == IRunAndTrack.DISPOSE) {
for (Iterator it = userObjects.iterator(); it.hasNext();) {
Object object = (Object) it.next();
findAndCallDispose(object, object.getClass());
... |
diff --git a/rxjava-core/src/main/java/rx/operators/OperationGroupBy.java b/rxjava-core/src/main/java/rx/operators/OperationGroupBy.java
index 4a673b6fe..77e04324b 100644
--- a/rxjava-core/src/main/java/rx/operators/OperationGroupBy.java
+++ b/rxjava-core/src/main/java/rx/operators/OperationGroupBy.java
@@ -1,567 +1,56... | true | true | public void testUnsubscribe() throws InterruptedException {
final AtomicInteger eventCounter = new AtomicInteger();
final AtomicInteger subscribeCounter = new AtomicInteger();
final AtomicInteger groupCounter = new AtomicInteger();
final AtomicInteger sentEventCo... | public void testUnsubscribe() throws InterruptedException {
final AtomicInteger eventCounter = new AtomicInteger();
final AtomicInteger subscribeCounter = new AtomicInteger();
final AtomicInteger groupCounter = new AtomicInteger();
final AtomicInteger sentEventCo... |
diff --git a/src/main/java/com/forgenz/mobmanager/limiter/config/Config.java b/src/main/java/com/forgenz/mobmanager/limiter/config/Config.java
index 72ae925..4e036dc 100644
--- a/src/main/java/com/forgenz/mobmanager/limiter/config/Config.java
+++ b/src/main/java/com/forgenz/mobmanager/limiter/config/Config.java
@@ -1,2... | true | true | public Config()
{
FileConfiguration cfg = getConfig("", LIMITER_CONFIG_NAME);
/* ################ ActiveWorlds ################ */
List<String> activeWorlds = cfg.getStringList("EnabledWorlds");
if (activeWorlds == null || activeWorlds.size() == 0)
{
activeWorlds = new ArrayList<String>();
for (... | public Config()
{
FileConfiguration cfg = getConfig("", LIMITER_CONFIG_NAME);
/* ################ ActiveWorlds ################ */
List<String> activeWorlds = cfg.getStringList("EnabledWorlds");
if (activeWorlds == null || activeWorlds.size() == 0)
{
activeWorlds = new ArrayList<String>();
for (... |
diff --git a/src/test/java/org/bouncycastle/openssl/test/ParserTest.java b/src/test/java/org/bouncycastle/openssl/test/ParserTest.java
index d7d49555e..521106b11 100644
--- a/src/test/java/org/bouncycastle/openssl/test/ParserTest.java
+++ b/src/test/java/org/bouncycastle/openssl/test/ParserTest.java
@@ -1,500 +1,500 @@... | true | true | public void performTest()
throws Exception
{
PEMParser pemRd = openPEMResource("test.pem");
Object o;
PEMKeyPair pemPair;
KeyPair pair;
while ((o = pemRd.readObject()) != null)
{
if (o instanceof KeyPair)
... | public void performTest()
throws Exception
{
PEMParser pemRd = openPEMResource("test.pem");
Object o;
PEMKeyPair pemPair;
KeyPair pair;
while ((o = pemRd.readObject()) != null)
{
if (o instanceof KeyPair)
... |
diff --git a/src/main/java/org/apache/giraph/GiraphRunner.java b/src/main/java/org/apache/giraph/GiraphRunner.java
index 6dc1998..6ff1b11 100644
--- a/src/main/java/org/apache/giraph/GiraphRunner.java
+++ b/src/main/java/org/apache/giraph/GiraphRunner.java
@@ -1,183 +1,187 @@
/*
* Licensed to the Apache Software Fou... | false | true | public int run(String[] args) throws Exception {
Options options = getOptions();
HelpFormatter formatter = new HelpFormatter();
if (args.length == 0) {
formatter.printHelp(getClass().getName(), options, true);
return 0;
}
String vertexClassName = args[0];
if (LOG.isDebugEnabled())... | public int run(String[] args) throws Exception {
Options options = getOptions();
HelpFormatter formatter = new HelpFormatter();
if (args.length == 0) {
formatter.printHelp(getClass().getName(), options, true);
return 0;
}
String vertexClassName = args[0];
if (LOG.isDebugEnabled())... |
diff --git a/src/com/itmill/toolkit/data/util/HierarchicalContainer.java b/src/com/itmill/toolkit/data/util/HierarchicalContainer.java
index c702c1479..ce46da362 100644
--- a/src/com/itmill/toolkit/data/util/HierarchicalContainer.java
+++ b/src/com/itmill/toolkit/data/util/HierarchicalContainer.java
@@ -1,313 +1,313 @@... | true | true | public boolean setParent(Object itemId, Object newParentId) {
// Checks that the item is in the container
if (!containsId(itemId)) {
return false;
}
// Gets the old parent
final Object oldParentId = parent.get(itemId);
// Checks if no change is necessar... | public boolean setParent(Object itemId, Object newParentId) {
// Checks that the item is in the container
if (!containsId(itemId)) {
return false;
}
// Gets the old parent
final Object oldParentId = parent.get(itemId);
// Checks if no change is necessar... |
diff --git a/org/jibble/logbot/LogBotMain.java b/org/jibble/logbot/LogBotMain.java
index 594804b..8262882 100644
--- a/org/jibble/logbot/LogBotMain.java
+++ b/org/jibble/logbot/LogBotMain.java
@@ -1,123 +1,125 @@
package org.jibble.logbot;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInp... | false | true | private static void writePidFile() {
try {
String pid = getProcessId();
if (pid == null) { throw new Exception("Cannot find current process id!"); }
File pidFile = new File(p.getProperty("PidFile", "./logbot.pid"));
File parent = pidFile.getParentFile();
... | private static void writePidFile() {
try {
String pid = getProcessId();
if (pid == null) {
throw new Exception("Cannot find current process id!");
}
File pidFile = new File(p.getProperty("PidFile", "./logbot.pid"));
File parent = p... |
diff --git a/src/main/java/liquibase/ext/hibernate/snapshot/TableSnapshotGenerator.java b/src/main/java/liquibase/ext/hibernate/snapshot/TableSnapshotGenerator.java
index 6739970..b809268 100644
--- a/src/main/java/liquibase/ext/hibernate/snapshot/TableSnapshotGenerator.java
+++ b/src/main/java/liquibase/ext/hibernate/... | true | true | protected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException {
HibernateDatabase database = (HibernateDatabase) snapshot.getDatabase();
Configuration cfg = database.getConfiguration();
Dialect dialect = database... | protected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException {
HibernateDatabase database = (HibernateDatabase) snapshot.getDatabase();
Configuration cfg = database.getConfiguration();
Dialect dialect = database... |
diff --git a/src/main/java/com/mojang/minecraft/gui/HUDScreen.java b/src/main/java/com/mojang/minecraft/gui/HUDScreen.java
index 10152c6..3681d8b 100644
--- a/src/main/java/com/mojang/minecraft/gui/HUDScreen.java
+++ b/src/main/java/com/mojang/minecraft/gui/HUDScreen.java
@@ -1,233 +1,233 @@
package com.mojang.minecra... | true | true | public final void render(float var1, boolean var2, int var3, int var4) {
FontRenderer var5 = this.mc.fontRenderer;
this.mc.renderer.enableGuiMode();
TextureManager var6 = this.mc.textureManager;
GL11.glBindTexture(3553, this.mc.textureManager.load("/gui/gui.png"));
ShapeRenderer var7 = ShapeRenderer.instance... | public final void render(float var1, boolean var2, int var3, int var4) {
FontRenderer var5 = this.mc.fontRenderer;
this.mc.renderer.enableGuiMode();
TextureManager var6 = this.mc.textureManager;
GL11.glBindTexture(3553, this.mc.textureManager.load("/gui/gui.png"));
ShapeRenderer var7 = ShapeRenderer.instance... |
diff --git a/src/main/javassist/bytecode/FieldInfo.java b/src/main/javassist/bytecode/FieldInfo.java
index 744a57e..73698a6 100644
--- a/src/main/javassist/bytecode/FieldInfo.java
+++ b/src/main/javassist/bytecode/FieldInfo.java
@@ -1,253 +1,253 @@
/*
* Javassist, a Java-bytecode translator toolkit.
* Copyright (C... | false | true | void prune(ConstPool cp) {
LinkedList newAttributes = new LinkedList();
AttributeInfo invisibleAnnotations
= getAttribute(AnnotationsAttribute.invisibleTag);
if (invisibleAnnotations != null) {
invisibleAnnotations = invisibleAnnotations.copy(cp, null);
ne... | void prune(ConstPool cp) {
LinkedList newAttributes = new LinkedList();
AttributeInfo invisibleAnnotations
= getAttribute(AnnotationsAttribute.invisibleTag);
if (invisibleAnnotations != null) {
invisibleAnnotations = invisibleAnnotations.copy(cp, null);
ne... |
diff --git a/com.soartech.simjr.core/src/com/soartech/simjr/controllers/FixedWingFlightController.java b/com.soartech.simjr.core/src/com/soartech/simjr/controllers/FixedWingFlightController.java
index 41ef19c..7bf8104 100644
--- a/com.soartech.simjr.core/src/com/soartech/simjr/controllers/FixedWingFlightController.java... | true | true | public void tick(double dt)
{
// Convert desired speed, bearing and altitude into a desired velocity
// Note that desiredHeading is CW with 0 north, orientation is CCW with 0 east
// Get X/Y part of desired velocity - sin/cos switched to account for 0 North.
double x = Math.sin... | public void tick(double dt)
{
// Convert desired speed, bearing and altitude into a desired velocity
// Note that desiredHeading is CW with 0 north, orientation is CCW with 0 east
// Get X/Y part of desired velocity - sin/cos switched to account for 0 North.
double x = Math.sin... |
diff --git a/grails/src/java/grails/orm/HibernateCriteriaBuilder.java b/grails/src/java/grails/orm/HibernateCriteriaBuilder.java
index f74c9a028..74ff4eb6f 100644
--- a/grails/src/java/grails/orm/HibernateCriteriaBuilder.java
+++ b/grails/src/java/grails/orm/HibernateCriteriaBuilder.java
@@ -1,1223 +1,1223 @@
/*
* C... | true | true | public Object invokeMethod(String name, Object obj) {
Object[] args = obj.getClass().isArray() ? (Object[])obj : new Object[]{obj};
if(isCriteriaConstructionMethod(name, args)) {
if(this.criteria != null) {
throwRuntimeException( new IllegalArgumentException("c... | public Object invokeMethod(String name, Object obj) {
Object[] args = obj.getClass().isArray() ? (Object[])obj : new Object[]{obj};
if(isCriteriaConstructionMethod(name, args)) {
if(this.criteria != null) {
throwRuntimeException( new IllegalArgumentException("c... |
diff --git a/src/main/java/com/mde/potdroid/fragments/TopicFragment.java b/src/main/java/com/mde/potdroid/fragments/TopicFragment.java
index 841d769..15954c1 100644
--- a/src/main/java/com/mde/potdroid/fragments/TopicFragment.java
+++ b/src/main/java/com/mde/potdroid/fragments/TopicFragment.java
@@ -1,501 +1,501 @@
pa... | false | true | public void setupWebView() {
mDestroyed = false;
// create a webview
mWebView = new WebView(getBaseActivity());
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.getSettings().setAllowFileAccess(true);
mWebView.getSettings().setUseWideViewPort(true);
... | public void setupWebView() {
mDestroyed = false;
// create a webview
mWebView = new WebView(getBaseActivity());
mWebView.getSettings().setJavaScriptEnabled(true);
mWebView.setBackgroundColor(0x00000000);
mWebView.getSettings().setAllowFileAccess(true);
mWebV... |
diff --git a/src/main/Logger.java b/src/main/Logger.java
index 0851b6b..29e697e 100644
--- a/src/main/Logger.java
+++ b/src/main/Logger.java
@@ -1,51 +1,53 @@
package main;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* This class is used to write messages to the user. If setVerbos(true) was
... | true | true | public void sendLog(String message, Severity severity) {
if (verbose || severity.equals(Severity.ERROR)) {
System.out.println(getDate() + " " + message);
}
}
| public void sendLog(String message, Severity severity) {
if (severity.equals(Severity.ERROR)) {
System.err.println(getDate() + " " + message);
} else if (verbose ) {
System.out.println(getDate() + " " + message);
}
}
|
diff --git a/src/main/java/com/ning/http/client/providers/jdk/JDKAsyncHttpProvider.java b/src/main/java/com/ning/http/client/providers/jdk/JDKAsyncHttpProvider.java
index 7901e62f3..a8489e9b4 100644
--- a/src/main/java/com/ning/http/client/providers/jdk/JDKAsyncHttpProvider.java
+++ b/src/main/java/com/ning/http/client... | true | true | private void configure(URI uri, HttpURLConnection urlConnection, Request request) throws IOException, AuthenticationException {
PerRequestConfig conf = request.getPerRequestConfig();
int requestTimeout = (conf != null && conf.getRequestTimeoutInMs() != 0) ?
conf.getR... | private void configure(URI uri, HttpURLConnection urlConnection, Request request) throws IOException, AuthenticationException {
PerRequestConfig conf = request.getPerRequestConfig();
int requestTimeout = (conf != null && conf.getRequestTimeoutInMs() != 0) ?
conf.getR... |
diff --git a/l2jserver2-gameserver/src/main/java/com/l2jserver/service/game/character/CharacterServiceImpl.java b/l2jserver2-gameserver/src/main/java/com/l2jserver/service/game/character/CharacterServiceImpl.java
index 86641c951..6d4aca076 100644
--- a/l2jserver2-gameserver/src/main/java/com/l2jserver/service/game/char... | true | true | public L2Character create(String name, AccountID accountID, ActorSex sex,
CharacterClass characterClass, CharacterHairStyle hairStyle,
CharacterHairColor hairColor, CharacterFace face)
throws CharacterInvalidNameException,
CharacterInvalidAppearanceException,
CharacterNameAlreadyExistsException,
Char... | public L2Character create(String name, AccountID accountID, ActorSex sex,
CharacterClass characterClass, CharacterHairStyle hairStyle,
CharacterHairColor hairColor, CharacterFace face)
throws CharacterInvalidNameException,
CharacterInvalidAppearanceException,
CharacterNameAlreadyExistsException,
Char... |
diff --git a/freegemas/src/com/siondream/freegemas/LanguagesManager.java b/freegemas/src/com/siondream/freegemas/LanguagesManager.java
index bfb344a..c295790 100644
--- a/freegemas/src/com/siondream/freegemas/LanguagesManager.java
+++ b/freegemas/src/com/siondream/freegemas/LanguagesManager.java
@@ -1,99 +1,103 @@
pac... | true | true | public boolean loadLanguage(String languageName) {
try {
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
FileHandle fileHandle = Gdx.files.internal(LANGUAGES_FILE);
Document doc = db.parse(fileHandle.read());
Element root = doc.getD... | public boolean loadLanguage(String languageName) {
try {
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
FileHandle fileHandle = Gdx.files.internal(LANGUAGES_FILE);
Document doc = db.parse(fileHandle.read());
Element root = doc.getD... |
diff --git a/src/com/xingcloud/tasks/services/ItemsService.java b/src/com/xingcloud/tasks/services/ItemsService.java
index e7eabfd..568aeb8 100644
--- a/src/com/xingcloud/tasks/services/ItemsService.java
+++ b/src/com/xingcloud/tasks/services/ItemsService.java
@@ -1,116 +1,116 @@
package com.xingcloud.tasks.services;
... | true | true | public boolean sendable()
{
if(XingCloud.enableCache)
{
String dbFile = Service.ITEMS+md5+XingCloud.instance().appVersionCode+".db";
String fileName=type+"?"+md5+XingCloud.instance().appVersionCode;
int checkdb = checkDB();
if((FileHelper.exist(fileName) || FileHelper.exist(dbFile)) && checkdb==2)... | public boolean sendable()
{
if(XingCloud.enableCache)
{
String dbFile = Service.ITEMS+md5+XingCloud.instance().appVersionCode+".db";
String fileName=type+"?"+md5+XingCloud.instance().appVersionCode;
int checkdb = checkDB();
if((FileHelper.exist(fileName) || FileHelper.exist(dbFile)) && checkdb!=1)... |
diff --git a/wayback-core/src/main/java/org/archive/wayback/resourceindex/CDXSearchResultSource.java b/wayback-core/src/main/java/org/archive/wayback/resourceindex/CDXSearchResultSource.java
index 7e33a1e12..bf4d591c7 100644
--- a/wayback-core/src/main/java/org/archive/wayback/resourceindex/CDXSearchResultSource.java
+... | true | true | public CloseableIterator<CaptureSearchResult> getPrefixIterator(
String prefix) throws ResourceIndexNotAvailableException {
try {
return new AdaptedIterator<String,CaptureSearchResult>
(input.getCDXLineIterator(prefix), new CDXLineToSearchResultAdapter());
} catch (IOException e) {
throw ne... | public CloseableIterator<CaptureSearchResult> getPrefixIterator(
String prefix) throws ResourceIndexNotAvailableException {
try {
return new AdaptedIterator<String,CaptureSearchResult>
(input.getCDXLineIterator(prefix, prefix), new CDXLineToSearchResultAdapter());
} catch (IOException e) {
... |
diff --git a/src/com/cdm/gui/AnimText.java b/src/com/cdm/gui/AnimText.java
index af4fbfe..ade76d0 100644
--- a/src/com/cdm/gui/AnimText.java
+++ b/src/com/cdm/gui/AnimText.java
@@ -1,58 +1,58 @@
package com.cdm.gui;
import java.util.List;
import com.badlogic.gdx.graphics.Color;
import com.cdm.view.IRenderer;
i... | true | true | public void draw(IRenderer renderer) {
time = time % texts.size();
float i = time * 0.3f;
int t = (int) i;
float delta = i - t - 0.5f;
float size = 0;
if (delta < 0) {
if (delta < -0.4f) {
size = 0;
} else if (delta < -0.2f) {
size = (delta + 0.4f) / 0.2f;
} else
size = 1;
} else {
... | public void draw(IRenderer renderer) {
float i = time * 0.7f;
i = i % texts.size();
int t = (int) i;
float delta = i - t - 0.5f;
float size = 0;
if (delta < 0) {
if (delta < -0.4f) {
size = 0;
} else if (delta < -0.2f) {
size = (delta + 0.4f) / 0.2f;
} else
size = 1;
} else {
if (... |
diff --git a/plugins/scm-hg-plugin/src/main/java/sonia/scm/installer/WindowsHgInstaller.java b/plugins/scm-hg-plugin/src/main/java/sonia/scm/installer/WindowsHgInstaller.java
index f007059c7..86c15544b 100644
--- a/plugins/scm-hg-plugin/src/main/java/sonia/scm/installer/WindowsHgInstaller.java
+++ b/plugins/scm-hg-plug... | false | true | private String getRegistryValue(String key, String subKey,
String defaultValue)
{
String programmDirectory = defaultValue;
SimpleCommand command = null;
if (subKey != null)
{
command = new SimpleCommand("reg", "query", key, "/v", subKey);
}
else
{... | private String getRegistryValue(String key, String subKey,
String defaultValue)
{
String programmDirectory = defaultValue;
SimpleCommand command = null;
if (subKey != null)
{
command = new SimpleCommand("reg", "query", key, "/v", subKey);
}
else
{... |
diff --git a/spiffyui/src/main/java/org/spiffyui/client/rest/RESTException.java b/spiffyui/src/main/java/org/spiffyui/client/rest/RESTException.java
index a7373b33..c5901dbe 100644
--- a/spiffyui/src/main/java/org/spiffyui/client/rest/RESTException.java
+++ b/spiffyui/src/main/java/org/spiffyui/client/rest/RESTExceptio... | true | true | public RESTException(String code, String subcode, String reason,
Map<String, String> details, int responseCode,
String url)
{
if (m_code == null) {
throw new IllegalArgumentException("RESTException requires a code.");
}
... | public RESTException(String code, String subcode, String reason,
Map<String, String> details, int responseCode,
String url)
{
if (code == null) {
throw new IllegalArgumentException("RESTException requires a code.");
}
... |
diff --git a/src/com/tools/tvguide/activities/ChannelDetailActivity.java b/src/com/tools/tvguide/activities/ChannelDetailActivity.java
index 107cb1f..d238cdd 100644
--- a/src/com/tools/tvguide/activities/ChannelDetailActivity.java
+++ b/src/com/tools/tvguide/activities/ChannelDetailActivity.java
@@ -1,740 +1,740 @@
pa... | true | true | private void initViews()
{
mChannelNameTextView = (TextView) findViewById(R.id.channeldetail_channel_name_tv);
mDateTextView = (TextView) findViewById(R.id.channeldetail_date_tv);
mProgramListView = (ListView) findViewById(R.id.channeldetail_program_listview);
mDateChosenListView... | private void initViews()
{
mChannelNameTextView = (TextView) findViewById(R.id.channeldetail_channel_name_tv);
mDateTextView = (TextView) findViewById(R.id.channeldetail_date_tv);
mProgramListView = (ListView) findViewById(R.id.channeldetail_program_listview);
mDateChosenListView... |
diff --git a/src/main/java/com/hansson/rento/apartments/multiple/PBAFastigheter.java b/src/main/java/com/hansson/rento/apartments/multiple/PBAFastigheter.java
index c6cd9e3..0958fd8 100644
--- a/src/main/java/com/hansson/rento/apartments/multiple/PBAFastigheter.java
+++ b/src/main/java/com/hansson/rento/apartments/mult... | true | true | public List<Apartment> getAvailableApartments() {
List<Apartment> apartmentList = new LinkedList<Apartment>();
try {
Document doc = Jsoup.connect(BASE_URL).get();
Elements apartments = doc.getElementById("content").getElementsByClass("entry");
for (Element element : apartments) {
try {
Apartment ... | public List<Apartment> getAvailableApartments() {
List<Apartment> apartmentList = new LinkedList<Apartment>();
try {
Document doc = Jsoup.connect(BASE_URL).get();
Elements apartments = doc.getElementById("content").getElementsByClass("entry");
for (Element element : apartments) {
try {
Apartment ... |
diff --git a/src/com/arantius/tivocommander/ShowList.java b/src/com/arantius/tivocommander/ShowList.java
index 05b35da..027955f 100644
--- a/src/com/arantius/tivocommander/ShowList.java
+++ b/src/com/arantius/tivocommander/ShowList.java
@@ -1,381 +1,382 @@
/*
DVR Commander for TiVo allows control of a TiVo Premiere d... | false | true | public View getView(int position, View convertView, ViewGroup parent) {
View v = convertView;
if (mShowStatus.get(position) == ShowStatus.MISSING) {
// If the show for this position is missing, fetch it and more, if they
// exist, up to a limit of MAX_SHOW_REQUEST_BATCH.
ArrayLi... | public View getView(int position, View convertView, ViewGroup parent) {
View v = convertView;
if (mShowStatus.get(position) == ShowStatus.MISSING) {
// If the show for this position is missing, fetch it and more, if they
// exist, up to a limit of MAX_SHOW_REQUEST_BATCH.
ArrayLi... |
diff --git a/src/main/java/org/basex/query/util/http/HTTPClient.java b/src/main/java/org/basex/query/util/http/HTTPClient.java
index b5d1ba54e..72b31482c 100644
--- a/src/main/java/org/basex/query/util/http/HTTPClient.java
+++ b/src/main/java/org/basex/query/util/http/HTTPClient.java
@@ -1,464 +1,464 @@
package org.ba... | true | true | public Iter sendRequest(final byte[] href, final ANode request,
final ItemCache bodies) throws QueryException {
try {
if(request == null) {
if(href == null || href.length == 0) NOPARAMS.thrw(input);
final HttpURLConnection conn = openConnection(string(href));
try {
r... | public Iter sendRequest(final byte[] href, final ANode request,
final ItemCache bodies) throws QueryException {
try {
if(request == null) {
if(href == null || href.length == 0) NOPARAMS.thrw(input);
final HttpURLConnection conn = openConnection(string(href));
try {
r... |
diff --git a/dropwizard-core/src/main/java/com/yammer/dropwizard/util/Generics.java b/dropwizard-core/src/main/java/com/yammer/dropwizard/util/Generics.java
index f80b07cd9..791b44bde 100644
--- a/dropwizard-core/src/main/java/com/yammer/dropwizard/util/Generics.java
+++ b/dropwizard-core/src/main/java/com/yammer/dropw... | true | true | public static <T> Class<? extends T> getTypeParameter(Class<?> klass, Class<T> parameterBound) {
Type t = klass;
while (t instanceof Class<?>) {
t = ((Class<?>) t).getGenericSuperclass();
}
/* This is not guaranteed to work for all cases with convoluted piping
* ... | public static <T> Class<? extends T> getTypeParameter(Class<?> klass, Class<T> parameterBound) {
Type t = klass;
while (t instanceof Class<?>) {
t = ((Class<?>) t).getGenericSuperclass();
}
/* This is not guaranteed to work for all cases with convoluted piping
* ... |
diff --git a/lenskit-core/src/main/java/org/grouplens/lenskit/util/parallel/TaskGroup.java b/lenskit-core/src/main/java/org/grouplens/lenskit/util/parallel/TaskGroup.java
index 2ee9e927d..17f48bd6d 100644
--- a/lenskit-core/src/main/java/org/grouplens/lenskit/util/parallel/TaskGroup.java
+++ b/lenskit-core/src/main/jav... | true | true | public void execute(ExecutorService exec) throws ExecutionException {
synchronized (this) {
Preconditions.checkState(!started, "task group already started");
started = true;
}
// now we can run, any other thread will detect that started is in progress
logger.... | public void execute(ExecutorService exec) throws ExecutionException {
synchronized (this) {
Preconditions.checkState(!started, "task group already started");
started = true;
}
// now we can run, any other thread will detect that started is in progress
logger.... |
diff --git a/src/de/ueller/gps/nmea/NmeaMessage.java b/src/de/ueller/gps/nmea/NmeaMessage.java
index 992117c6..232620d2 100644
--- a/src/de/ueller/gps/nmea/NmeaMessage.java
+++ b/src/de/ueller/gps/nmea/NmeaMessage.java
@@ -1,296 +1,296 @@
package de.ueller.gps.nmea;
/**
* Geographic Location in Lat/Lon
* field #... | true | true | public void decodeMessage(String nmea_sentence) {
Vector param = StringTokenizer.getVector(nmea_sentence, spChar);
String sentence=(String)param.elementAt(0);
try {
// receiver.receiveMessage("got "+buffer.toString() );
if (lastMsgGSV && ! "GSV".equals(sentence)){
receiver.receiveState... | public void decodeMessage(String nmea_sentence) {
Vector param = StringTokenizer.getVector(nmea_sentence, spChar);
String sentence=(String)param.elementAt(0);
try {
// receiver.receiveMessage("got "+buffer.toString() );
if (lastMsgGSV && ! "GSV".equals(sentence)){
receiver.receiveState... |
diff --git a/src/main/java/com/nesscomputing/tracking/TrackingToken.java b/src/main/java/com/nesscomputing/tracking/TrackingToken.java
index b547179..23afc38 100644
--- a/src/main/java/com/nesscomputing/tracking/TrackingToken.java
+++ b/src/main/java/com/nesscomputing/tracking/TrackingToken.java
@@ -1,63 +1,65 @@
/**
... | true | true | public void event(final ScopeEvent event)
{
switch (event) {
case ENTER:
if (value != null) {
MDC.put(MDC_TRACKING_KEY, value);
}
break;
case LEAVE:
MDC.remove(MDC_TRACKING_KEY);
b... | public void event(final ScopeEvent event)
{
switch (event) {
case ENTER:
if (value != null) {
MDC.put(MDC_TRACKING_KEY, value);
}
break;
case LEAVE:
MDC.remove(MDC_TRACKING_KEY);
b... |
diff --git a/MediaCenterHome/src/fr/enseirb/odroidx/home/MediaHome.java b/MediaCenterHome/src/fr/enseirb/odroidx/home/MediaHome.java
index 1ce7ebd..e5a11cc 100644
--- a/MediaCenterHome/src/fr/enseirb/odroidx/home/MediaHome.java
+++ b/MediaCenterHome/src/fr/enseirb/odroidx/home/MediaHome.java
@@ -1,636 +1,636 @@
packag... | false | true | private void bindButtons() {
buttons = new ArrayList<ImageView>();
buttons.add((ImageView) findViewById(R.id.upload));
buttons.add((ImageView) findViewById(R.id.connect_remote));
buttons.add((ImageView) findViewById(R.id.show_all_apps));
buttons.get(2).setOnClickListener(new ShowApplications());
mGr... | private void bindButtons() {
buttons = new ArrayList<ImageView>();
buttons.add((ImageView) findViewById(R.id.upload));
buttons.add((ImageView) findViewById(R.id.connect_remote));
buttons.add((ImageView) findViewById(R.id.show_all_apps));
buttons.get(2).setOnClickListener(new ShowApplications());
mGr... |
diff --git a/dspace/src/org/dspace/content/InstallItem.java b/dspace/src/org/dspace/content/InstallItem.java
index d4a09a2ff..b1b62c5dd 100644
--- a/dspace/src/org/dspace/content/InstallItem.java
+++ b/dspace/src/org/dspace/content/InstallItem.java
@@ -1,178 +1,178 @@
/*
* InstallItem.java
*
* Version: $Revision... | true | true | public static Item installItem(Context c, InProgressSubmission is, EPerson e)
throws SQLException, IOException, AuthorizeException
{
Item item = is.getItem();
// create accession date
DCDate now = DCDate.getCurrent();
item.addDC("date", "accessioned", null, now.t... | public static Item installItem(Context c, InProgressSubmission is, EPerson e)
throws SQLException, IOException, AuthorizeException
{
Item item = is.getItem();
// create accession date
DCDate now = DCDate.getCurrent();
item.addDC("date", "accessioned", null, now.t... |
diff --git a/client/rameses-client-ui/src/com/rameses/rcp/control/XLookupField.java b/client/rameses-client-ui/src/com/rameses/rcp/control/XLookupField.java
index c68f72fd..65e67a9e 100644
--- a/client/rameses-client-ui/src/com/rameses/rcp/control/XLookupField.java
+++ b/client/rameses-client-ui/src/com/rameses/rcp/con... | true | true | private void loadHandler(){
Object o = null;
if( !ValueUtil.isEmpty(handler) ) {
if ( handler.matches(".+:.+") ) //handler is a module:workunit name
o = new Opener(handler);
else
o = UIControlUtil.getBeanValue(this, handler);
} else if ... | private void loadHandler(){
Object o = null;
if( !ValueUtil.isEmpty(handler) ) {
if ( handler.matches(".+:.+") ) //handler is a module:workunit name
o = new Opener(handler);
else
o = UIControlUtil.getBeanValue(this, handler);
} else if ... |
diff --git a/dddsample/src/test/java/se/citerus/dddsample/service/CargoServiceTest.java b/dddsample/src/test/java/se/citerus/dddsample/service/CargoServiceTest.java
index 05d0e6c..bafefc9 100644
--- a/dddsample/src/test/java/se/citerus/dddsample/service/CargoServiceTest.java
+++ b/dddsample/src/test/java/se/citerus/ddd... | true | true | public void testCargoServiceFindByTrackingIdScenario() {
Location origin = new Location(new UnLocode("OR","IGI"), "Origin");
Location finalDestination = new Location(new UnLocode("DE","STI"), "Destination");
final Cargo cargo = new Cargo(new TrackingId("XYZ"), origin, finalDestination);
Location sesto... | public void testCargoServiceFindByTrackingIdScenario() {
Location origin = new Location(new UnLocode("OR","IGI"), "Origin");
Location finalDestination = new Location(new UnLocode("DE","STI"), "Destination");
final Cargo cargo = new Cargo(new TrackingId("XYZ"), origin, finalDestination);
Location sesto... |
diff --git a/WEB-INF/lps/server/src/org/openlaszlo/compiler/DebugCompiler.java b/WEB-INF/lps/server/src/org/openlaszlo/compiler/DebugCompiler.java
index e1d97417..77a38626 100644
--- a/WEB-INF/lps/server/src/org/openlaszlo/compiler/DebugCompiler.java
+++ b/WEB-INF/lps/server/src/org/openlaszlo/compiler/DebugCompiler.ja... | true | true | public void compile(Element element) throws CompilationError
{
element.setName(DEBUG_WINDOW_CLASSNAME);
// If the canvas does not have the debug flag, or if we have already instantiated a debugger,
// return now.
if (!mEnv.getBooleanProperty(mEnv.DEBUG_PROPERTY)
|| mE... | public void compile(Element element) throws CompilationError
{
element.setName(DEBUG_WINDOW_CLASSNAME);
// If the canvas does not have the debug flag, or if we have already instantiated a debugger,
// return now.
if (!mEnv.getBooleanProperty(mEnv.DEBUG_PROPERTY)
|| mE... |
diff --git a/src/main/java/org/iplantc/de/client/viewer/views/cells/TreeUrlCell.java b/src/main/java/org/iplantc/de/client/viewer/views/cells/TreeUrlCell.java
index 013cc1a0..a209f228 100644
--- a/src/main/java/org/iplantc/de/client/viewer/views/cells/TreeUrlCell.java
+++ b/src/main/java/org/iplantc/de/client/viewer/vi... | true | true | public void onBrowserEvent(com.google.gwt.cell.client.Cell.Context context, Element parent,
VizUrl value, NativeEvent event, ValueUpdater<VizUrl> valueUpdater) {
if (value == null) {
return;
}
// Call the super handler, which handlers the enter key.
super.onB... | public void onBrowserEvent(com.google.gwt.cell.client.Cell.Context context, Element parent,
VizUrl value, NativeEvent event, ValueUpdater<VizUrl> valueUpdater) {
if (value == null) {
return;
}
// Call the super handler, which handlers the enter key.
super.onB... |
diff --git a/src/cs2114/tiletraveler/MapTest.java b/src/cs2114/tiletraveler/MapTest.java
index 39d6dec..56d21cc 100644
--- a/src/cs2114/tiletraveler/MapTest.java
+++ b/src/cs2114/tiletraveler/MapTest.java
@@ -1,101 +1,101 @@
package cs2114.tiletraveler;
import student.TestCase;
/**
* // -----------------------... | true | true | public void testGetTile()
{
assertEquals(map1.getTile(0, 0), Tile.FLOOR);
assertEquals(map1.getTile(1, 1), Tile.WALL);
assertEquals(map1.getTile(2, 2), Tile.PILLAR);
assertEquals(map1.getTile(3, 1), Tile.LILY);
assertEquals(map1.getTile(4, 0), Tile.WALL);
assertEq... | public void testGetTile()
{
assertEquals(map1.getTile(0, 0), Tile.FLOOR);
assertEquals(map1.getTile(1, 1), Tile.WALL);
assertEquals(map1.getTile(2, 2), Tile.PILLAR);
assertEquals(map1.getTile(3, 1), Tile.LILY);
assertEquals(map1.getTile(4, 0), Tile.WALL);
assertEq... |
diff --git a/ini/trakem2/display/Display.java b/ini/trakem2/display/Display.java
index 4ee88ca6..914b84b5 100644
--- a/ini/trakem2/display/Display.java
+++ b/ini/trakem2/display/Display.java
@@ -1,6090 +1,6090 @@
/**
TrakEM2 plugin for ImageJ(C).
Copyright (C) 2005-2009 Albert Cardona and Rodney Douglas.
This p... | true | true | public void actionPerformed(final ActionEvent ae) {
dispatcher.exec(new Runnable() { public void run() {
String command = ae.getActionCommand();
if (command.startsWith("Job")) {
if (Utils.checkYN("Really cancel job?")) {
project.getLoader().quitJob(command);
repairGUI();
}
return;
} else if (... | public void actionPerformed(final ActionEvent ae) {
dispatcher.exec(new Runnable() { public void run() {
String command = ae.getActionCommand();
if (command.startsWith("Job")) {
if (Utils.checkYN("Really cancel job?")) {
project.getLoader().quitJob(command);
repairGUI();
}
return;
} else if (... |
diff --git a/apktool-lib/src/main/java/brut/androlib/res/xml/ResXmlEncoders.java b/apktool-lib/src/main/java/brut/androlib/res/xml/ResXmlEncoders.java
index e5d652c..4aebf15 100644
--- a/apktool-lib/src/main/java/brut/androlib/res/xml/ResXmlEncoders.java
+++ b/apktool-lib/src/main/java/brut/androlib/res/xml/ResXmlEncod... | false | true | public static String encodeAsXmlValue(String str) {
if (str.isEmpty()) {
return str;
}
char[] chars = str.toCharArray();
StringBuilder out = new StringBuilder(str.length() + 10);
switch (chars[0]) {
case '#':
case '@':
case '?... | public static String encodeAsXmlValue(String str) {
if (str.isEmpty()) {
return str;
}
char[] chars = str.toCharArray();
StringBuilder out = new StringBuilder(str.length() + 10);
switch (chars[0]) {
case '#':
case '@':
case '?... |
diff --git a/src/framework/report/HTMLReport.java b/src/framework/report/HTMLReport.java
index d710c83a..ca88045e 100644
--- a/src/framework/report/HTMLReport.java
+++ b/src/framework/report/HTMLReport.java
@@ -1,67 +1,67 @@
package framework.report;
import java.io.BufferedReader;
import java.io.BufferedWriter;
i... | true | true | private void appendReportLink(String reportPath, String newBuildreport) {
String suiteName = System.getProperty("sgtest.suiteName");
File report = new File(reportPath);
StringBuilder sb = new StringBuilder();
for (File f : report.listFiles()) {
if (f.getName().equals("ind... | private void appendReportLink(String reportPath, String newBuildreport) {
String suiteName = System.getProperty("sgtest.suiteName");
File report = new File(reportPath);
StringBuilder sb = new StringBuilder();
for (File f : report.listFiles()) {
if (f.getName().equals("ind... |
diff --git a/opal-core-ws/src/main/java/org/obiba/opal/web/magma/support/DatabaseSessionFactoryProvider.java b/opal-core-ws/src/main/java/org/obiba/opal/web/magma/support/DatabaseSessionFactoryProvider.java
index 45799103a..93fc7f58b 100644
--- a/opal-core-ws/src/main/java/org/obiba/opal/web/magma/support/DatabaseSessi... | true | true | public DatabaseSessionFactoryProvider(JdbcDataSourceRegistry jdbcDataSourceRegistry, String databaseName) {
Preconditions.checkArgument(jdbcDataSourceRegistry != null);
Preconditions.checkArgument(databaseName != null);
this.databaseName = databaseName;
}
| public DatabaseSessionFactoryProvider(JdbcDataSourceRegistry jdbcDataSourceRegistry, String databaseName) {
Preconditions.checkArgument(jdbcDataSourceRegistry != null);
Preconditions.checkArgument(databaseName != null);
this.databaseName = databaseName;
this.jdbcDataSourceRegistry = jdbcDataSourceRegi... |
diff --git a/maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java b/maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
index 40a8f0dc9..e7c003f6c 100644
--- a/maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
+++ b/maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java... | false | true | protected Result doRun(final BuildListener listener) throws Exception {
PrintStream logger = listener.getLogger();
try {
EnvVars envVars = getEnvironment(listener);
MavenInstallation mvn = project.getMaven();
if(mvn==null)
... | protected Result doRun(final BuildListener listener) throws Exception {
PrintStream logger = listener.getLogger();
try {
EnvVars envVars = getEnvironment(listener);
MavenInstallation mvn = project.getMaven();
if(mvn==null)
... |
diff --git a/examples/src/main/java/org/apache/spark/streaming/examples/JavaKafkaWordCount.java b/examples/src/main/java/org/apache/spark/streaming/examples/JavaKafkaWordCount.java
index 9a8e4209e..22994fb2e 100644
--- a/examples/src/main/java/org/apache/spark/streaming/examples/JavaKafkaWordCount.java
+++ b/examples/s... | true | true | public static void main(String[] args) {
if (args.length < 5) {
System.err.println("Usage: KafkaWordCount <master> <zkQuorum> <group> <topics> <numThreads>");
System.exit(1);
}
// Create the context with a 1 second batch size
JavaStreamingContext ssc = new JavaStreamingContext(args[0], "N... | public static void main(String[] args) {
if (args.length < 5) {
System.err.println("Usage: KafkaWordCount <master> <zkQuorum> <group> <topics> <numThreads>");
System.exit(1);
}
// Create the context with a 1 second batch size
JavaStreamingContext ssc = new JavaStreamingContext(args[0], "K... |
diff --git a/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/internal/localstore/CaseSensitivityTest.java b/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/internal/localstore/CaseSensitivityTest.java
index d1e922fe1..42a0e32bf 100644
--- a/tests/org.eclipse.core.tests.resources/src/... | false | true | public void testDeleteResources() {
String name = "test31415";
// create a project, should be fine
IProject project = getWorkspace().getRoot().getProject(name);
try {
project.create(null);
project.open(null);
} catch (CoreException e) {
fail("1.1", e);
}
// create a Folder, which should be fin... | public void testDeleteResources() {
String name = "test31415";
// create a project, should be fine
IProject project = getWorkspace().getRoot().getProject(name);
try {
project.create(null);
project.open(null);
} catch (CoreException e) {
fail("1.1", e);
}
// create a Folder, which should be fin... |
diff --git a/login/src/main/java/org/soluvas/web/login/LdapLoginButton.java b/login/src/main/java/org/soluvas/web/login/LdapLoginButton.java
index cee6d83b..65878129 100644
--- a/login/src/main/java/org/soluvas/web/login/LdapLoginButton.java
+++ b/login/src/main/java/org/soluvas/web/login/LdapLoginButton.java
@@ -1,73 ... | true | true | protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
final LoginFormModel loginData = loginFormModel.getObject();
final String upUsername = Strings.nullToEmpty(loginData.getUsername());
final String upPassword = Strings.nullToEmpty(loginData.getPassword());
final UsernamePasswordToken token = new ... | protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
final LoginFormModel loginData = loginFormModel.getObject();
final String upUsername = Strings.nullToEmpty(loginData.getUsername());
final String upPassword = Strings.nullToEmpty(loginData.getPassword());
final UsernamePasswordToken token = new ... |
diff --git a/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/IvmTestServer.java b/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/IvmTestServer.java
index f77b4779b9..ed6edcbca3 100644
--- a/itests/openejb-itests-client/src/main/java/org/apache/openejb/test/IvmTestServer.java
+++ b... | true | true | public void init(Properties props){
properties = new Properties();
properties.putAll(props);
try{
props.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.LocalInitialContextFactory");
Properties p = new Properties();
p.putAl... | public void init(Properties props){
properties = props;
try{
props.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.LocalInitialContextFactory");
Properties p = new Properties();
p.putAll(props);
p.put("openejb.loader",... |
diff --git a/uk.ac.bolton.archimate.editor/src/uk/ac/bolton/archimate/editor/diagram/figures/business/BusinessServiceFigure.java b/uk.ac.bolton.archimate.editor/src/uk/ac/bolton/archimate/editor/diagram/figures/business/BusinessServiceFigure.java
index 6e07d2ed..5d74aa44 100644
--- a/uk.ac.bolton.archimate.editor/src/u... | false | true | public void drawFigure(Graphics graphics) {
graphics.pushState();
Rectangle bounds = getBounds().getCopy();
boolean drawShadows = Preferences.STORE.getBoolean(IPreferenceConstants.SHOW_SHADOWS);
if(isEnabled()) {
if(drawShadows) {
... | public void drawFigure(Graphics graphics) {
graphics.pushState();
Rectangle bounds = getBounds().getCopy();
boolean drawShadows = Preferences.STORE.getBoolean(IPreferenceConstants.SHOW_SHADOWS);
if(isEnabled()) {
if(drawShadows) {
... |
diff --git a/src/org/mozilla/javascript/NativeGlobal.java b/src/org/mozilla/javascript/NativeGlobal.java
index 50703a23..3543967a 100644
--- a/src/org/mozilla/javascript/NativeGlobal.java
+++ b/src/org/mozilla/javascript/NativeGlobal.java
@@ -1,917 +1,918 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-ba... | true | true | private static String decode(Context cx, String str, boolean fullUri) {
char[] buf = null;
int bufTop = 0;
for (int k = 0, length = str.length(); k != length;) {
char C = str.charAt(k);
if (C != '%') {
if (buf != null) {
buf[bufTop... | private static String decode(Context cx, String str, boolean fullUri) {
char[] buf = null;
int bufTop = 0;
for (int k = 0, length = str.length(); k != length;) {
char C = str.charAt(k);
if (C != '%') {
if (buf != null) {
buf[bufTop... |
diff --git a/modules/core/src/main/java/com/griefcraft/modules/setup/DatabaseSetupModule.java b/modules/core/src/main/java/com/griefcraft/modules/setup/DatabaseSetupModule.java
index aa6f80db..a37fc1ac 100644
--- a/modules/core/src/main/java/com/griefcraft/modules/setup/DatabaseSetupModule.java
+++ b/modules/core/src/m... | false | true | public void onCommand(LWCCommandEvent event) {
if (event.isCancelled()) {
return;
}
if (!event.hasFlag("s", "setup")) {
return;
}
LWC lwc = event.getLWC();
CommandSender sender = event.getSender();
String[] args = event.getArgs();
... | public void onCommand(LWCCommandEvent event) {
if (event.isCancelled()) {
return;
}
if (!event.hasFlag("s", "setup")) {
return;
}
LWC lwc = event.getLWC();
CommandSender sender = event.getSender();
String[] args = event.getArgs();
... |
diff --git a/enhancer/engines/keywordextraction/src/main/java/org/apache/stanbol/enhancer/engines/keywordextraction/linking/EntityLinker.java b/enhancer/engines/keywordextraction/src/main/java/org/apache/stanbol/enhancer/engines/keywordextraction/linking/EntityLinker.java
index 9f36c9e09..03960cabe 100644
--- a/enhance... | true | true | private Suggestion matchLabels(Representation rep) {
String curLang = state.getLanguage(); //language of the current sentence
String defLang = config.getDefaultLanguage(); //configured default language
// Iterator<Text> labels = rep.get(config.getNameField(), //get all labels
// s... | private Suggestion matchLabels(Representation rep) {
String curLang = state.getLanguage(); //language of the current sentence
String defLang = config.getDefaultLanguage(); //configured default language
// Iterator<Text> labels = rep.get(config.getNameField(), //get all labels
// s... |
diff --git a/amibe/src-occ/org/jcae/mesh/cad/occ/OCCDiscretizeCurve3D.java b/amibe/src-occ/org/jcae/mesh/cad/occ/OCCDiscretizeCurve3D.java
index e2ed1d88..1db567b8 100644
--- a/amibe/src-occ/org/jcae/mesh/cad/occ/OCCDiscretizeCurve3D.java
+++ b/amibe/src-occ/org/jcae/mesh/cad/occ/OCCDiscretizeCurve3D.java
@@ -1,281 +1,... | true | true | public void initialize(Adaptor3d_Curve myCurve, int n, double start, double end)
{
curve = myCurve;
nr = n;
int nsegments = n;
double [] xyz;
ArrayList abscissa = new ArrayList(nsegments);
while (true)
{
nsegments *= 10;
a = new double[nsegments+1];
xyz = new double[3*(nsegments+1)];
double ... | public void initialize(Adaptor3d_Curve myCurve, int n, double start, double end)
{
curve = myCurve;
nr = n;
int nsegments = n;
double [] xyz;
ArrayList abscissa = new ArrayList(nsegments);
while (true)
{
nsegments *= 10;
a = new double[nsegments+1];
xyz = new double[3*(nsegments+1)];
double ... |
diff --git a/src/test/java/com/alfredwesterveld/AppTest.java b/src/test/java/com/alfredwesterveld/AppTest.java
index 930f156..babab27 100644
--- a/src/test/java/com/alfredwesterveld/AppTest.java
+++ b/src/test/java/com/alfredwesterveld/AppTest.java
@@ -1,31 +1,31 @@
package com.alfredwesterveld;
import com.alfredwe... | true | true | public void testServer() throws Exception {
AtmosphereSpadeServer setup =
WebServerConfigurator.setup(HOST);
setup.start();
AsyncHttpClient asyncHttpClient = new AsyncHttpClient();
Future<Response> execute =
asyncHttpClient.prepareGet(HOST + "schedule/info")... | public void testServer() throws Exception {
AtmosphereSpadeServer setup =
WebServerConfigurator.setup(HOST);
setup.start();
AsyncHttpClient asyncHttpClient = new AsyncHttpClient();
Future<Response> execute =
asyncHttpClient.prepareGet(HOST + "scheduler/info"... |
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/CubeQueryExecutor.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/impl/query/CubeQueryExecutor.java
index fcb66be93..16413bcaf 100644
--- a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engin... | false | true | private SimpleLevelFilter createSimpleLevelFilter( IFilterDefinition filter, List bindings )
{
if( ! ( filter instanceof CubeFilterDefinition ) )
return null;
IBaseExpression expr = (( CubeFilterDefinition )filter).getExpression( );
if( !( expr instanceof IConditionalExpression ) )
return null;
ICon... | private SimpleLevelFilter createSimpleLevelFilter( IFilterDefinition filter, List bindings )
{
if( ! ( filter instanceof CubeFilterDefinition ) )
return null;
IBaseExpression expr = (( CubeFilterDefinition )filter).getExpression( );
if( !( expr instanceof IConditionalExpression ) )
return null;
ICon... |
diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglCanvas.java b/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglCanvas.java
index 0270039..927a485 100644
--- a/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl/JoglCanvas.java
+++ b/ardor3d-jogl/src/main/java/com/ardor3d/framework/jogl... | true | true | protected void privateInit() {
if (_inited) {
return;
}
// Validate window dimensions.
if (_settings.getWidth() <= 0 || _settings.getHeight() <= 0) {
throw new Ardor3dException("Invalid resolution values: " + _settings.getWidth() + " "
+ _... | protected void privateInit() {
if (_inited) {
return;
}
// Validate window dimensions.
if (_settings.getWidth() <= 0 || _settings.getHeight() <= 0) {
throw new Ardor3dException("Invalid resolution values: " + _settings.getWidth() + " "
+ _... |
diff --git a/src/java/com/threerings/getdown/data/Application.java b/src/java/com/threerings/getdown/data/Application.java
index 7fbbdef..ac4dbc7 100644
--- a/src/java/com/threerings/getdown/data/Application.java
+++ b/src/java/com/threerings/getdown/data/Application.java
@@ -1,1026 +1,1026 @@
//
// $Id$
//
// Getd... | true | true | public UpdateInterface init (boolean checkPlatform)
throws IOException
{
// parse our configuration file
HashMap<String,Object> cdata = null;
try {
cdata = ConfigUtil.parseConfig(_config, checkPlatform);
} catch (FileNotFoundException fnfe) {
// th... | public UpdateInterface init (boolean checkPlatform)
throws IOException
{
// parse our configuration file
HashMap<String,Object> cdata = null;
try {
cdata = ConfigUtil.parseConfig(_config, checkPlatform);
} catch (FileNotFoundException fnfe) {
// th... |
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/preferences/AdtPrefs.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/preferences/AdtPrefs.java
index 5acb95488..f680287d5 100644
--- a/eclipse/plugins/com.android.ide.eclipse.adt... | true | true | public synchronized void loadValues(PropertyChangeEvent event) {
// get the name of the property that changed, if any
String property = event != null ? event.getProperty() : null;
if (property == null || PREFS_SDK_DIR.equals(property)) {
mOsSdkLocation = mStore.getString(PREFS_S... | public synchronized void loadValues(PropertyChangeEvent event) {
// get the name of the property that changed, if any
String property = event != null ? event.getProperty() : null;
if (property == null || PREFS_SDK_DIR.equals(property)) {
mOsSdkLocation = mStore.getString(PREFS_S... |
diff --git a/Code/ShoppingList/src/ch/unibe/ese/activities/ShoppingListActionMode.java b/Code/ShoppingList/src/ch/unibe/ese/activities/ShoppingListActionMode.java
index e313038..683e84e 100644
--- a/Code/ShoppingList/src/ch/unibe/ese/activities/ShoppingListActionMode.java
+++ b/Code/ShoppingList/src/ch/unibe/ese/activi... | true | true | public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
int listIndex = manager.getShoppingLists().indexOf(selectedList);
switch (item.getItemId()) {
case R.id.action_edit:
if (isList) {
shoppingListAdapter.notifyDataSetChanged();
... | public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
int listIndex = manager.getShoppingLists().indexOf(selectedList);
switch (item.getItemId()) {
case R.id.action_edit:
if (isList) {
shoppingListAdapter.notifyDataSetChanged();
... |
diff --git a/src/src/common/Vessel.java b/src/src/common/Vessel.java
index debf6e0..6ddfe7d 100644
--- a/src/src/common/Vessel.java
+++ b/src/src/common/Vessel.java
@@ -1,93 +1,93 @@
package common;
import java.util.*;
import vms.Coord;
import vms.Course;
public class Vessel {
private VesselType type;
pr... | true | true | public Coord getCoord(Calendar timestamp) throws IllegalStateException {
long time = timestamp.getTimeInMillis() - lastTimestamp.getTimeInMillis();
time = time / 1000; //Convert to seconds
if (time > 0){
int x = (int)(coords.x() + course.xVel()*time);
int y = (int)(coords.y() + course.yVel()*time);
c... | public Coord getCoord(Calendar timestamp) throws IllegalStateException {
long time = timestamp.getTimeInMillis() - lastTimestamp.getTimeInMillis();
time = time / 1000; //Convert to seconds
if (time > 0){
int x = (int)(coords.x() + course.xVel()*time);
int y = (int)(coords.y() + course.yVel()*time);
r... |
diff --git a/src/com/k99k/keel/wallpaper/ShowPic.java b/src/com/k99k/keel/wallpaper/ShowPic.java
index 32b84d9..8cea904 100644
--- a/src/com/k99k/keel/wallpaper/ShowPic.java
+++ b/src/com/k99k/keel/wallpaper/ShowPic.java
@@ -1,780 +1,780 @@
/**
*
*/
package com.k99k.keel.wallpaper;
import java.io.IOException;... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.showpic);
b_star = (Button)this.findViewById(R.id.b_star1);
//bar = (ProgressBar) this.findViewById(R.id.progressbar);
progress = this.findViewById(R.id.progress);
b_back = (Button) this.findVi... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.showpic);
b_star = (Button)this.findViewById(R.id.b_star1);
//bar = (ProgressBar) this.findViewById(R.id.progressbar);
progress = this.findViewById(R.id.progress);
b_back = (Button) this.findVi... |
diff --git a/core/modelcheckers/probsolver/src/test/java/org/overture/modelcheckers/probsolver/AllTest.java b/core/modelcheckers/probsolver/src/test/java/org/overture/modelcheckers/probsolver/AllTest.java
index e64458d2ac..5b01c9186f 100644
--- a/core/modelcheckers/probsolver/src/test/java/org/overture/modelcheckers/pr... | true | true | private static Collection<? extends Object[]> extractSlTests(File f)
{
Collection<Object[]> tests = new LinkedList<Object[]>();
try
{
Settings.dialect = Dialect.VDM_SL;
ParserResult<List<AModuleModules>> result = ParserUtil.parseSl(f);
for (AModuleModules m : result.result)
{
for (PDefinition ... | private static Collection<? extends Object[]> extractSlTests(File f)
{
Collection<Object[]> tests = new LinkedList<Object[]>();
try
{
Settings.dialect = Dialect.VDM_SL;
Settings.release = Release.VDM_10;
ParserResult<List<AModuleModules>> result = ParserUtil.parseSl(f);
for (AModuleModules m : res... |
diff --git a/main/src/java/de/hunsicker/jalopy/language/JavaRecognizer.java b/main/src/java/de/hunsicker/jalopy/language/JavaRecognizer.java
index 3f836ba..0a85c69 100644
--- a/main/src/java/de/hunsicker/jalopy/language/JavaRecognizer.java
+++ b/main/src/java/de/hunsicker/jalopy/language/JavaRecognizer.java
@@ -1,748 +... | false | true | public void parse(
Reader in,
String filename)
{
if (this.running)
{
throw new IllegalStateException("parser currently running");
}
this.finished = false;
this.running = true;
_transformed = false;
// update the parsers/lexer ... | public void parse(
Reader in,
String filename)
{
if (this.running)
{
throw new IllegalStateException("parser currently running");
}
this.finished = false;
this.running = true;
_transformed = false;
// update the parsers/lexer ... |
diff --git a/src/main/java/org/cloudbees/literate/jenkins/LiterateBranchBuild.java b/src/main/java/org/cloudbees/literate/jenkins/LiterateBranchBuild.java
index 0034190..ac69e4d 100644
--- a/src/main/java/org/cloudbees/literate/jenkins/LiterateBranchBuild.java
+++ b/src/main/java/org/cloudbees/literate/jenkins/Literate... | true | true | protected Result doRun(final BuildListener listener) throws Exception, RunnerAbortedException {
FilePath ws = getWorkspace();
assert ws != null : "we are in a build so must have a workspace";
final FilePathRepository repo = new FilePathRepository(ws);
ProjectModel... | protected Result doRun(final BuildListener listener) throws Exception, RunnerAbortedException {
FilePath ws = getWorkspace();
assert ws != null : "we are in a build so must have a workspace";
final FilePathRepository repo = new FilePathRepository(ws);
ProjectModel... |
diff --git a/trunk/kernel-impl/src/main/java/org/sakaiproject/content/impl/CollectionAccessFormatter.java b/trunk/kernel-impl/src/main/java/org/sakaiproject/content/impl/CollectionAccessFormatter.java
index 1f9f9ce8..e24a16fc 100644
--- a/trunk/kernel-impl/src/main/java/org/sakaiproject/content/impl/CollectionAccessFor... | false | true | public static void format(ContentCollection x, Reference ref, HttpServletRequest req, HttpServletResponse res,
String accessPointTrue, String accessPointFalse)
{
// do not allow directory listings for /attachments and its subfolders
if(ContentHostingService.isAttachmentResource(x.getId()))
{
try
{
... | public static void format(ContentCollection x, Reference ref, HttpServletRequest req, HttpServletResponse res,
String accessPointTrue, String accessPointFalse)
{
// do not allow directory listings for /attachments and its subfolders
if(ContentHostingService.isAttachmentResource(x.getId()))
{
try
{
... |
diff --git a/src/org/e2k/InputThread.java b/src/org/e2k/InputThread.java
index f6f5953..a4697bb 100644
--- a/src/org/e2k/InputThread.java
+++ b/src/org/e2k/InputThread.java
@@ -1,323 +1,323 @@
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public Licen... | true | true | private void getSample () {
// Tell the main thread we getting audio
gettingAudio=true;
int a,sample,count,total=0;
// READ in ISIZE bytes and convert them into ISIZE/2 integers
// Doing it this way reduces CPU loading
try {
while (total<ISIZE) {
count=Line.read(buffer,0,ISIZE);
... | private void getSample () {
// Tell the main thread we getting audio
gettingAudio=true;
int a,sample,count,total=0;
// READ in ISIZE bytes and convert them into ISIZE/2 integers
// Doing it this way reduces CPU loading
try {
while (total<ISIZE) {
count=Line.read(buffer,0,ISIZE);
... |
diff --git a/fest-swing-testng/src/main/java/org/fest/swing/testng/listener/ScreenshotOnFailureListener.java b/fest-swing-testng/src/main/java/org/fest/swing/testng/listener/ScreenshotOnFailureListener.java
index f1234c52..a2e8d9f9 100644
--- a/fest-swing-testng/src/main/java/org/fest/swing/testng/listener/ScreenshotOn... | false | true | private String takeScreenshotAndReturnFileName(ITestResult result) {
output.createIfNecessary();
String imageName = screenshotFileNameFrom(result);
String imagePath = concat(output, separator, imageName);
try {
screenshotTaker.saveDesktopAsPng(imagePath);
} catch (Exception e) {
logger... | private String takeScreenshotAndReturnFileName(ITestResult result) {
String imageName = screenshotFileNameFrom(result);
String imagePath = concat(output, separator, imageName);
try {
output.createIfNecessary();
screenshotTaker.saveDesktopAsPng(imagePath);
} catch (Exception e) {
logg... |
diff --git a/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/TextResourceGenerator.java b/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/TextResourceGenerator.java
index da360578f..aee4f0922 100644
--- a/org.emftext.sdk.codegen.resource/src/org/emftext/... | true | true | private void addDoLoadMethod(JavaComposite sc) {
sc.add("protected void doLoad(" + INPUT_STREAM + " inputStream, " + MAP
+ "<?,?> options) throws " + IO_EXCEPTION + " {");
sc.add("synchronized (loadingLock) {");
sc.add("if (processTerminationRequested()) {");
sc.add("return;");
sc.add("}");
sc.add("thi... | private void addDoLoadMethod(JavaComposite sc) {
sc.add("protected void doLoad(" + INPUT_STREAM + " inputStream, " + MAP
+ "<?,?> options) throws " + IO_EXCEPTION + " {");
sc.add("synchronized (loadingLock) {");
sc.add("if (processTerminationRequested()) {");
sc.add("return;");
sc.add("}");
sc.add("thi... |
diff --git a/src/FE_SRC_COMMON/com/ForgeEssentials/api/permissions/Zone.java b/src/FE_SRC_COMMON/com/ForgeEssentials/api/permissions/Zone.java
index cc27c1fbc..3ad2aeac6 100644
--- a/src/FE_SRC_COMMON/com/ForgeEssentials/api/permissions/Zone.java
+++ b/src/FE_SRC_COMMON/com/ForgeEssentials/api/permissions/Zone.java
@@ ... | true | true | public boolean isParentOf(Zone zone)
{
if (parent == null)
{
return true;
}
else if (zone.parent == null)
{
return false;
}
else if (zoneID.equals(zone.parent))
{
return true;
}
else if (zone.parent.equals(ZoneManager.getGLOBAL().zoneID))
{
return false;
}
else
{
return isPa... | public boolean isParentOf(Zone zone)
{
if (parent == null)
{
return true;
}
else if (zone == null)
{
return false;
}
else if (zone.parent == null)
{
return false;
}
else if (zoneID.equals(zone.parent))
{
return true;
}
else if (zone.parent.equals(ZoneManager.getGLOBAL().zoneID))
... |
diff --git a/application/src/nl/sogeti/android/gpstracker/viewer/TrackList.java b/application/src/nl/sogeti/android/gpstracker/viewer/TrackList.java
index 0d404293..c21e7b43 100644
--- a/application/src/nl/sogeti/android/gpstracker/viewer/TrackList.java
+++ b/application/src/nl/sogeti/android/gpstracker/viewer/TrackLis... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.setContentView(R.layout.tracklist);
// Get all of the rows from the database and create the item list
ContentResolver resolver = this.getContentResolver();
Cursor tracksCursor = re... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.setContentView(R.layout.tracklist);
// Get all of the rows from the database and create the item list
ContentResolver resolver = this.getContentResolver();
Cursor tracksCursor = re... |
diff --git a/src/com/modcrafting/ultrabans/commands/Starve.java b/src/com/modcrafting/ultrabans/commands/Starve.java
index 978dbd7..96b2a93 100644
--- a/src/com/modcrafting/ultrabans/commands/Starve.java
+++ b/src/com/modcrafting/ultrabans/commands/Starve.java
@@ -1,98 +1,98 @@
package com.modcrafting.ultrabans.comman... | false | true | public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
YamlConfiguration config = (YamlConfiguration) plugin.getConfig();
if(!plugin.useStarve) return true;
boolean auth = false;
Player player = null;
String admin = config.getString("defAdminName", "server");
... | public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
YamlConfiguration config = (YamlConfiguration) plugin.getConfig();
if(!plugin.useStarve) return true;
boolean auth = false;
Player player = null;
String admin = config.getString("defAdminName", "server");
... |
diff --git a/demos/gff/GFFToFeatures.java b/demos/gff/GFFToFeatures.java
index 72a88d368..e6cc0a268 100755
--- a/demos/gff/GFFToFeatures.java
+++ b/demos/gff/GFFToFeatures.java
@@ -1,108 +1,108 @@
/*
* BioJava development code
*
* This code may be freely distributed and modified under the
* ... | true | true | public static void main(String [] args) throws Exception {
if(args.length != 2) {
throw new Exception("Use: GFFToFeatures sequence.fa features.gff");
}
try {
// load in the sequences
System.out.println("Loading sequences");
SequenceDB seqDB = loadSequences(new File(args[0]));
... | public static void main(String [] args) throws Exception {
if(args.length != 2) {
throw new Exception("Use: GFFToFeatures sequence.fa features.gff");
}
try {
// load in the sequences
System.out.println("Loading sequences");
SequenceDB seqDB = loadSequences(new File(args[0]));
... |
diff --git a/src/pt/lsts/neptus/mra/NeptusMRA.java b/src/pt/lsts/neptus/mra/NeptusMRA.java
index 81442e750..44663ff5f 100644
--- a/src/pt/lsts/neptus/mra/NeptusMRA.java
+++ b/src/pt/lsts/neptus/mra/NeptusMRA.java
@@ -1,1036 +1,1036 @@
/*
* Copyright (c) 2004-2014 Universidade do Porto - Faculdade de Engenharia
* L... | true | true | public JMenuBar createMenuBar() {
loadRecentlyOpenedFiles();
menuBar = new JMenuBar();
JMenu file = new JMenu(I18n.text("File"));
file.add(getRecentlyOpenFilesMenu());
openLsf = new AbstractAction(I18n.text("Open LSF log"),
ImageUtils.getIcon("images/... | public JMenuBar createMenuBar() {
loadRecentlyOpenedFiles();
menuBar = new JMenuBar();
JMenu file = new JMenu(I18n.text("File"));
file.add(getRecentlyOpenFilesMenu());
openLsf = new AbstractAction(I18n.text("Open LSF log"),
ImageUtils.getIcon("images/... |
diff --git a/src/main/java/io/github/reggert/reb4j/charclass/CharRange.java b/src/main/java/io/github/reggert/reb4j/charclass/CharRange.java
index 7830f52..4f47c67 100644
--- a/src/main/java/io/github/reggert/reb4j/charclass/CharRange.java
+++ b/src/main/java/io/github/reggert/reb4j/charclass/CharRange.java
@@ -1,38 +1... | true | true | CharRange(final char first, final char last)
{
if (first >= last) throw new IllegalArgumentException("first must be < last");
this.first = first;
this.last = last;
}
| CharRange(final char first, final char last)
{
if (first > last) throw new IllegalArgumentException("first must be <= last");
this.first = first;
this.last = last;
}
|
diff --git a/WEB-INF/src/org/cdlib/xtf/textEngine/SnippetMaker.java b/WEB-INF/src/org/cdlib/xtf/textEngine/SnippetMaker.java
index 61aa5eb3..fcf8a616 100644
--- a/WEB-INF/src/org/cdlib/xtf/textEngine/SnippetMaker.java
+++ b/WEB-INF/src/org/cdlib/xtf/textEngine/SnippetMaker.java
@@ -1,466 +1,470 @@
package org.cdlib.xt... | true | true | public String markField( SpanDocument doc,
final String fieldName,
final String value )
{
try
{
// Get the text, and allocate a buffer for the marked up version.
final StringBuffer buf = new StringBuffer( value.length() * 2 ... | public String markField( SpanDocument doc,
final String fieldName,
final String value )
{
try
{
// Get the text, and allocate a buffer for the marked up version.
final StringBuffer buf = new StringBuffer( value.length() * 2 ... |
diff --git a/rwiki-tool/tool/src/test/uk/ac/cam/caret/sakai/rwiki/bean/test/RenderBeanTest.java b/rwiki-tool/tool/src/test/uk/ac/cam/caret/sakai/rwiki/bean/test/RenderBeanTest.java
index 0f0376a7..adf5d4bb 100644
--- a/rwiki-tool/tool/src/test/uk/ac/cam/caret/sakai/rwiki/bean/test/RenderBeanTest.java
+++ b/rwiki-tool/t... | true | true | protected void setUp() throws Exception
{
super.setUp();
renderServiceControl = MockControl
.createControl(ToolRenderService.class);
objectServiceControl = MockControl
.createControl(RWikiObjectService.class);
rwikiObjectControl = MockControl.createControl(RWikiObject.class);
mockToolRenderService ... | protected void setUp() throws Exception
{
super.setUp();
renderServiceControl = MockControl
.createControl(ToolRenderService.class);
objectServiceControl = MockControl
.createControl(RWikiObjectService.class);
rwikiObjectControl = MockControl.createControl(RWikiObject.class);
mockToolRenderService ... |
diff --git a/src/main/java/nl/vu/datalayer/hbase/test/HBaseSailTest.java b/src/main/java/nl/vu/datalayer/hbase/test/HBaseSailTest.java
index 9b6d60c..4257a92 100644
--- a/src/main/java/nl/vu/datalayer/hbase/test/HBaseSailTest.java
+++ b/src/main/java/nl/vu/datalayer/hbase/test/HBaseSailTest.java
@@ -1,62 +1,62 @@
pack... | true | true | public static void main(String[] args) throws SailException, RepositoryException {
// TODO Auto-generated method stub
HBaseSail mySail = new HBaseSail();
mySail.initialize();
HBaseSailRepository myRepo = new HBaseSailRepository(mySail);
HBaseRepositoryConnection conn = myRepo.getConnection();
String que... | public static void main(String[] args) throws SailException, RepositoryException {
// TODO Auto-generated method stub
HBaseSail mySail = new HBaseSail();
mySail.initialize();
HBaseSailRepository myRepo = new HBaseSailRepository(mySail);
HBaseRepositoryConnection conn = myRepo.getConnection();
String que... |
diff --git a/src/main/java/com/mozilla/bagheera/nio/MetricsProcessor.java b/src/main/java/com/mozilla/bagheera/nio/MetricsProcessor.java
index f5ce895..c0c9065 100644
--- a/src/main/java/com/mozilla/bagheera/nio/MetricsProcessor.java
+++ b/src/main/java/com/mozilla/bagheera/nio/MetricsProcessor.java
@@ -1,131 +1,131 @@... | true | true | public HttpResponseStatus process(IMap<String,String> hcMap, String id, String newDocument, String remoteAddr, String obsoleteDocId) {
// Verify that the incoming document is valid
// Insert GeoIP Info
// Delete the obsolete document
HttpResponseStatus status = NOT_ACCEPTABLE;
... | public HttpResponseStatus process(IMap<String,String> hcMap, String id, String newDocument, String remoteAddr, String obsoleteDocId) {
// Verify that the incoming document is valid
// Insert GeoIP Info
// Delete the obsolete document
HttpResponseStatus status = NOT_ACCEPTABLE;
... |
diff --git a/src/no/runsafe/worldguardbridge/WorldGuardInterface.java b/src/no/runsafe/worldguardbridge/WorldGuardInterface.java
index 3c2e609..c32baee 100644
--- a/src/no/runsafe/worldguardbridge/WorldGuardInterface.java
+++ b/src/no/runsafe/worldguardbridge/WorldGuardInterface.java
@@ -1,53 +1,53 @@
package no.runsa... | true | true | public boolean serverHasWorldGuard()
{
if (this.worldGuard == null)
this.getWorldGuard(server);
if (this.worldGuard != null)
return true;
return false;
}
| public boolean serverHasWorldGuard()
{
if (this.worldGuard == null)
this.worldGuard = this.getWorldGuard(this.server);
if (this.worldGuard != null)
return true;
return false;
}
|
diff --git a/plugins/flurry/proj.android/src/org/cocos2dx/plugin/AnalyticsFlurry.java b/plugins/flurry/proj.android/src/org/cocos2dx/plugin/AnalyticsFlurry.java
index 4019f25..851dc32 100644
--- a/plugins/flurry/proj.android/src/org/cocos2dx/plugin/AnalyticsFlurry.java
+++ b/plugins/flurry/proj.android/src/org/cocos2dx... | true | true | protected void logTimedEventBegin(JSONObject eventInfo) {
LogD("logTimedEventBegin invoked!");
try{
String eventId = eventInfo.getString("Param1");
if (eventInfo.has("Param2"))
{
JSONObject params = eventInfo.getJSONObject("Param2");
... | protected void logTimedEventBeginWithParams(JSONObject eventInfo) {
LogD("logTimedEventBegin invoked!");
try{
String eventId = eventInfo.getString("Param1");
if (eventInfo.has("Param2"))
{
JSONObject params = eventInfo.getJSONObject("P... |
diff --git a/src/main/java/org/encog/ml/ea/train/basic/EAWorker.java b/src/main/java/org/encog/ml/ea/train/basic/EAWorker.java
index 626570db3..45777f297 100644
--- a/src/main/java/org/encog/ml/ea/train/basic/EAWorker.java
+++ b/src/main/java/org/encog/ml/ea/train/basic/EAWorker.java
@@ -1,105 +1,108 @@
package org.en... | false | true | public Object call() {
boolean success = false;
do {
try {
// choose an evolutionary operation (i.e. crossover or a type of
// mutation) to use
final EvolutionaryOperator opp = this.train.getOperators()
.pickMaxParents(this.rnd,
this.species.getMembers().size());
this.children[0] ... | public Object call() {
boolean success = false;
do {
try {
// choose an evolutionary operation (i.e. crossover or a type of
// mutation) to use
final EvolutionaryOperator opp = this.train.getOperators()
.pickMaxParents(this.rnd,
this.species.getMembers().size());
this.children[0] ... |
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/changedetail/AlterTopic.java b/gerrit-server/src/main/java/com/google/gerrit/server/changedetail/AlterTopic.java
index 29033b35e..ad3fc7d51 100644
--- a/gerrit-server/src/main/java/com/google/gerrit/server/changedetail/AlterTopic.java
+++ b/gerrit-server... | true | true | public ReviewResult call() throws EmailException,
InvalidChangeOperationException, NoSuchChangeException, OrmException {
final ChangeControl control = changeControlFactory.validateFor(changeId);
final ReviewResult result = new ReviewResult();
result.setChangeId(changeId);
if (!control.canAddPat... | public ReviewResult call() throws EmailException,
InvalidChangeOperationException, NoSuchChangeException, OrmException {
final ChangeControl control = changeControlFactory.validateFor(changeId);
final ReviewResult result = new ReviewResult();
result.setChangeId(changeId);
if (!control.canAddPat... |
diff --git a/src/share/impl/installer/classes/com/sun/jumpimpl/module/installer/JUMPInstallerTool.java b/src/share/impl/installer/classes/com/sun/jumpimpl/module/installer/JUMPInstallerTool.java
index 6a64ee0..126e315 100644
--- a/src/share/impl/installer/classes/com/sun/jumpimpl/module/installer/JUMPInstallerTool.java... | true | true | private void doInfo() {
System.out.println("");
System.out.println("---------------------------------");
System.out.println("Applications Within Content Store");
System.out.println("---------------------------------");
System.out.println("");
JUMPInstallerMod... | private void doInfo() {
System.out.println("");
System.out.println("---------------------------------");
System.out.println("Applications Within Content Store");
System.out.println("---------------------------------");
System.out.println("");
JUMPInstallerMod... |
diff --git a/src/main/java/me/prettyprint/cassandra/service/ExampleClient.java b/src/main/java/me/prettyprint/cassandra/service/ExampleClient.java
index 046ebfbf..7f9dc871 100644
--- a/src/main/java/me/prettyprint/cassandra/service/ExampleClient.java
+++ b/src/main/java/me/prettyprint/cassandra/service/ExampleClient.ja... | true | true | public static void main(String[] args) throws IllegalStateException, PoolExhaustedException,
Exception {
CassandraClientPool pool = CassandraClientPoolFactory.INSTANCE.get();
CassandraClient client = pool.borrowClient("tush", 9160);
// A load balanced version would look like this:
// CassandraCl... | public static void main(String[] args) throws IllegalStateException, PoolExhaustedException,
Exception {
CassandraClientPool pool = CassandraClientPoolFactory.INSTANCE.get();
CassandraClient client = pool.borrowClient("tush", 9160);
// A load balanced version would look like this:
// CassandraCl... |
diff --git a/src/com/android/exchange/adapter/AbstractSyncParser.java b/src/com/android/exchange/adapter/AbstractSyncParser.java
index c913af4..4c73fd8 100644
--- a/src/com/android/exchange/adapter/AbstractSyncParser.java
+++ b/src/com/android/exchange/adapter/AbstractSyncParser.java
@@ -1,197 +1,200 @@
/*
* Copyrig... | true | true | public boolean parse() throws IOException {
int status;
boolean moreAvailable = false;
int interval = mMailbox.mSyncInterval;
// If we're not at the top of the xml tree, throw an exception
if (nextTag(START_DOCUMENT) != Tags.SYNC_SYNC) {
throw new EasParserExcept... | public boolean parse() throws IOException {
int status;
boolean moreAvailable = false;
int interval = mMailbox.mSyncInterval;
// If we're not at the top of the xml tree, throw an exception
if (nextTag(START_DOCUMENT) != Tags.SYNC_SYNC) {
throw new EasParserExcept... |
diff --git a/source/de/tuclausthal/submissioninterface/persistence/dao/impl/TaskNumberDAO.java b/source/de/tuclausthal/submissioninterface/persistence/dao/impl/TaskNumberDAO.java
index 3e4c4b5..c47c405 100644
--- a/source/de/tuclausthal/submissioninterface/persistence/dao/impl/TaskNumberDAO.java
+++ b/source/de/tuclaus... | true | true | public void assignTaskNumbersToSubmission(Submission submission, Participation participation) {
for (TaskNumber taskNumber : getTaskNumbersForTaskLocked(submission.getTask(), participation)) {
taskNumber.setSubmission(submission);
getSession().update(taskNumber);
}
}
| public void assignTaskNumbersToSubmission(Submission submission, Participation participation) {
// only assign new numbers if not already numbers exist
if (getTaskNumbersForSubmission(submission).size() == 0) {
for (TaskNumber taskNumber : getTaskNumbersForTaskLocked(submission.getTask(), participation)) {
... |
diff --git a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/deployer/BpmnDeployer.java b/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/deployer/BpmnDeployer.java
index 657504e72..2ef617a15 100644
--- a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/deploye... | true | true | public void deploy(DeploymentEntity deployment) {
List<ProcessDefinitionEntity> processDefinitions = new ArrayList<ProcessDefinitionEntity>();
Map<String, ResourceEntity> resources = deployment.getResources();
for (String resourceName : resources.keySet()) {
LOG.info("Processing resource " + resou... | public void deploy(DeploymentEntity deployment) {
List<ProcessDefinitionEntity> processDefinitions = new ArrayList<ProcessDefinitionEntity>();
Map<String, ResourceEntity> resources = deployment.getResources();
for (String resourceName : resources.keySet()) {
LOG.info("Processing resource " + resou... |
diff --git a/src/org/wet_boew/wet_boew/ant/I18nCSVtoXML.java b/src/org/wet_boew/wet_boew/ant/I18nCSVtoXML.java
index a958a62..0ad6bc9 100644
--- a/src/org/wet_boew/wet_boew/ant/I18nCSVtoXML.java
+++ b/src/org/wet_boew/wet_boew/ant/I18nCSVtoXML.java
@@ -1,110 +1,110 @@
/*!
* Web Experience Toolkit (WET) / Boîte à out... | true | true | public void execute (){
validateAttributes();
CSVReader iReader = null;
try {
iReader = new CSVReader(new FileReader(i18nFile));
List<String []> i18n = iReader.readAll();
String[] languages = i18n.get(startAtRow);
String[] r;
DocumentBuilderFactory docFactory = DocumentBuilderFactory.new... | public void execute (){
validateAttributes();
CSVReader iReader = null;
try {
iReader = new CSVReader(new FileReader(i18nFile));
List<String []> i18n = iReader.readAll();
String[] languages = i18n.get(startAtRow);
String[] r;
DocumentBuilderFactory docFactory = DocumentBuilderFactory.new... |
diff --git a/genetica-libraries/src/main/java/umcg/genetica/graphics/ViolinBoxPlot.java b/genetica-libraries/src/main/java/umcg/genetica/graphics/ViolinBoxPlot.java
index 09aef037..12c40390 100644
--- a/genetica-libraries/src/main/java/umcg/genetica/graphics/ViolinBoxPlot.java
+++ b/genetica-libraries/src/main/java/umc... | true | true | public void draw(double[][][] vals, String[] datasetNames, String[][] xLabels2, Output output, String outputFileName) throws IOException {
Locale defaultLocale = Locale.getDefault();
Locale.setDefault(Locale.US);
// set up Graphics2D depending on required format using iText in case PDF
... | public void draw(double[][][] vals, String[] datasetNames, String[][] xLabels2, Output output, String outputFileName) throws IOException {
Locale defaultLocale = Locale.getDefault();
Locale.setDefault(Locale.US);
// set up Graphics2D depending on required format using iText in case PDF
... |
diff --git a/main/ClassTester.java b/main/ClassTester.java
index 157279c..72522c2 100644
--- a/main/ClassTester.java
+++ b/main/ClassTester.java
@@ -1,155 +1,155 @@
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import logs.Log;
import serviceLayer.Services;
import tests.Inven... | false | true | protected static void lauchTests() throws IllegalArgumentException,
SecurityException, InvocationTargetException,
NoSuchMethodException, ClassNotFoundException
{
XmlWriter xmlWriter = new XmlWriter();
long RunTestsSuiteStartTime = System.currentTimeMillis();
long RunTestsSuiteStopTime = 0l;
long SetupS... | protected static void lauchTests() throws IllegalArgumentException,
SecurityException, InvocationTargetException,
NoSuchMethodException, ClassNotFoundException
{
XmlWriter xmlWriter = new XmlWriter();
long RunTestsSuiteStartTime = System.currentTimeMillis();
long RunTestsSuiteStopTime = 0l;
long SetupS... |
diff --git a/src/balle/world/SimpleWorldGUI.java b/src/balle/world/SimpleWorldGUI.java
index 890491f..c8791c5 100644
--- a/src/balle/world/SimpleWorldGUI.java
+++ b/src/balle/world/SimpleWorldGUI.java
@@ -1,203 +1,204 @@
package balle.world;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Gra... | true | true | private void drawRobot(Graphics g, Color c, Robot robot) {
// Fail early, fail often
if ((robot == null) || (robot.getPosition() == null)) {
return;
}
// position of center of the robot
float x = (float) robot.getPosition().getX();
... | private void drawRobot(Graphics g, Color c, Robot robot) {
// Fail early, fail often
if ((robot == null) || (robot.getPosition() == null)) {
return;
}
// position of center of the robot
float x = (float) robot.getPosition().getX();
... |
diff --git a/src/de/fuberlin/projectF/CodeGenerator/Translator.java b/src/de/fuberlin/projectF/CodeGenerator/Translator.java
index b24ae612..ece7e7ad 100644
--- a/src/de/fuberlin/projectF/CodeGenerator/Translator.java
+++ b/src/de/fuberlin/projectF/CodeGenerator/Translator.java
@@ -1,684 +1,683 @@
package de.fuberlin.... | true | true | public void translate(ArrayList<Token> code) {
this.code = code;
int tokenNumber = 0;
for (Token tok : code) {
String op1, op2;
RegisterAddress res;
MMXRegisterAddress mmxRes;
MMXRegisterAddress mmxRes2;
switch (tok.getType()) {
case Declare:
asm.declare(tok.getTarget().substring(1... | public void translate(ArrayList<Token> code) {
this.code = code;
int tokenNumber = 0;
for (Token tok : code) {
String op1, op2;
RegisterAddress res;
MMXRegisterAddress mmxRes;
MMXRegisterAddress mmxRes2;
switch (tok.getType()) {
case Declare:
asm.declare(tok.getTarget().substring(1... |
diff --git a/src/main/java/com/yetanotherx/reddit/api/modules/RedditCore.java b/src/main/java/com/yetanotherx/reddit/api/modules/RedditCore.java
index 646665a..17e2e1e 100644
--- a/src/main/java/com/yetanotherx/reddit/api/modules/RedditCore.java
+++ b/src/main/java/com/yetanotherx/reddit/api/modules/RedditCore.java
@@ ... | true | true | public boolean doLogin() {
Transport transport = plugin.getTransport();
HashMap<String, String> map = new EasyHashMap<String, String>(
"user", username,
"passwd", password,
"api_type", "json");
Request request = new WebRequest(plugin... | public boolean doLogin() {
Transport transport = plugin.getTransport();
HashMap<String, String> map = new EasyHashMap<String, String>(
"user", username,
"passwd", password,
"api_type", "json");
Request request = new WebRequest(plugin... |
diff --git a/src/main/java/org/dita/dost/platform/CheckTranstypeAction.java b/src/main/java/org/dita/dost/platform/CheckTranstypeAction.java
index 0db0ad8e6..901a9bfdc 100644
--- a/src/main/java/org/dita/dost/platform/CheckTranstypeAction.java
+++ b/src/main/java/org/dita/dost/platform/CheckTranstypeAction.java
@@ -1,3... | true | true | public String getResult() {
final StringBuilder retBuf = new StringBuilder();
final String property = paramTable.get("property");
for (final String value: valueSet) {
retBuf.append("<not><equals arg1=\"${")
.append(StringUtils.escapeXML(property))
... | public String getResult() {
final StringBuilder retBuf = new StringBuilder();
final String property = paramTable.containsKey("property") ? paramTable.get("property") : "transtype";
for (final String value: valueSet) {
retBuf.append("<not><equals arg1=\"${")
.appen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.