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/java/org/apache/jcs/utils/threadpool/ThreadPoolManager.java b/src/java/org/apache/jcs/utils/threadpool/ThreadPoolManager.java
index 93ef8da7..1b593ccf 100644
--- a/src/java/org/apache/jcs/utils/threadpool/ThreadPoolManager.java
+++ b/src/java/org/apache/jcs/utils/threadpool/ThreadPoolManager.java
@@ -1... | true | true | protected PoolConfiguration loadConfig( String root )
{
PoolConfiguration config = (PoolConfiguration) defaultConfig.clone();
if ( props.containsKey( root + ".useBoundary" ) )
{
try
{
config.setUseBoundary( Boolean.getBoolean( (String) props.get( ... | protected PoolConfiguration loadConfig( String root )
{
PoolConfiguration config = (PoolConfiguration) defaultConfig.clone();
if ( props.containsKey( root + ".useBoundary" ) )
{
try
{
config.setUseBoundary( Boolean.valueOf( (String) props.get( roo... |
diff --git a/moskito-webcontrol/java/net/java/dev/moskito/webcontrol/feed/HttpGetter.java b/moskito-webcontrol/java/net/java/dev/moskito/webcontrol/feed/HttpGetter.java
index de7cb2a4..3943c1f4 100644
--- a/moskito-webcontrol/java/net/java/dev/moskito/webcontrol/feed/HttpGetter.java
+++ b/moskito-webcontrol/java/net/ja... | true | true | public Document retreive(SourceConfiguration source) {
System.out.println(source);
try {
URL url = new URL(source.getUrl());
URLConnection connection = url.openConnection();
if(source.needAuth()) {
StringBuilder credentials = new StringBuilder(source.getUsername() + ":" + source.g... | public Document retreive(SourceConfiguration source) {
System.out.println(source);
try {
URL url = new URL(source.getUrl());
URLConnection connection = url.openConnection();
if(source.needAuth()) {
StringBuilder credentials = new StringBuilder(source.getUsername() + ":" + source.g... |
diff --git a/src/org/opensolaris/opengrok/util/Executor.java b/src/org/opensolaris/opengrok/util/Executor.java
index 68d1ce5a..bcc3ee34 100644
--- a/src/org/opensolaris/opengrok/util/Executor.java
+++ b/src/org/opensolaris/opengrok/util/Executor.java
@@ -1,286 +1,309 @@
/*
* CDDL HEADER START
*
* The contents of... | false | true | public int exec(final boolean reportExceptions, StreamHandler handler) {
int ret = -1;
ProcessBuilder processBuilder = new ProcessBuilder(cmdList);
if (workingDirectory != null) {
processBuilder.directory(workingDirectory);
if (processBuilder.environment().containsKe... | public int exec(final boolean reportExceptions, StreamHandler handler) {
int ret = -1;
String error = null;
ProcessBuilder processBuilder = new ProcessBuilder(cmdList);
if (workingDirectory != null) {
processBuilder.directory(workingDirectory);
if (processBui... |
diff --git a/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java b/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
index d5c59bfa9..f04316018 100644
--- a/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
+++ b/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
@@ -1,1875 +1,1876 @@
/*
* T... | true | true | protected XSDocumentInfo constructTrees(Document schemaRoot, String locationHint, XSDDescription desc) {
if (schemaRoot == null) return null;
String callerTNS = desc.getTargetNamespace();
short referType = desc.getContextType();
XSDocumentInfo currSchemaInfo = null;
... | protected XSDocumentInfo constructTrees(Document schemaRoot, String locationHint, XSDDescription desc) {
if (schemaRoot == null) return null;
String callerTNS = desc.getTargetNamespace();
short referType = desc.getContextType();
XSDocumentInfo currSchemaInfo = null;
... |
diff --git a/src/test/org/jdesktop/test/TableModelReport.java b/src/test/org/jdesktop/test/TableModelReport.java
index e6ae72e0..0f4d6c09 100644
--- a/src/test/org/jdesktop/test/TableModelReport.java
+++ b/src/test/org/jdesktop/test/TableModelReport.java
@@ -1,170 +1,170 @@
/*
* $Id$
*
* Copyright 2006 Sun Micro... | false | true | public void tableChanged(TableModelEvent e) {
allEvents.add(0, e);
if (isUpdate(e)) {
updateEvents.add(0, e);
} else if (isStructureChanged(e)) {
// this is effectively a test for null event
// do nothing for now
} else if (isDataChanged(e)) {
... | public void tableChanged(TableModelEvent e) {
allEvents.add(0, e);
if (isUpdate(e)) {
updateEvents.add(0, e);
} else if (isStructureChanged(e)) {
// this is effectively a test for null event
// do nothing for now
} else if (isDataChanged(e)) {
... |
diff --git a/src/semanticMarkup/LearnMain.java b/src/semanticMarkup/LearnMain.java
index 170df238..d87e8c03 100644
--- a/src/semanticMarkup/LearnMain.java
+++ b/src/semanticMarkup/LearnMain.java
@@ -1,208 +1,208 @@
package semanticMarkup;
import java.io.File;
import org.apache.commons.cli.BasicParser;
import or... | true | true | public void parse(String[] args) {
CommandLineParser parser = new BasicParser();
Options options = new Options();
//for iplant user shown configuration options
options.addOption("i", "input", true, "input file or directory");
options.addOption("c", "config", true, "config to use");
options.addOption(... | public void parse(String[] args) {
CommandLineParser parser = new BasicParser();
Options options = new Options();
//for iplant user shown configuration options
options.addOption("i", "input", true, "input file or directory");
options.addOption("c", "config", true, "config to use");
options.addOption(... |
diff --git a/src/taberystwyth/controller/TeamInsertionListener.java b/src/taberystwyth/controller/TeamInsertionListener.java
index 0860f39..5225035 100644
--- a/src/taberystwyth/controller/TeamInsertionListener.java
+++ b/src/taberystwyth/controller/TeamInsertionListener.java
@@ -1,123 +1,137 @@
/*
* This file is pa... | false | true | public void actionPerformed(ActionEvent e) {
if (e.getActionCommand().equals("Clear")) {
frame.getTeamName().setText("");
frame.getSwing().setSelected(false);
frame.getSpeaker1Name().setText("");
frame.getSpeaker1Institution().setText("");
frame.getSpeaker1ESL().setSelected(false);
frame.getSpeake... | public void actionPerformed(ActionEvent e) {
if (e.getActionCommand().equals("Clear")) {
frame.getTeamName().setText("");
frame.getSwing().setSelected(false);
frame.getSpeaker1Name().setText("");
frame.getSpeaker1Institution().setText("");
frame.getSpeaker1ESL().setSelected(false);
frame.getSpeake... |
diff --git a/src/java/net/sf/jabref/Globals.java b/src/java/net/sf/jabref/Globals.java
index 41e7adbdd..d3722be4e 100644
--- a/src/java/net/sf/jabref/Globals.java
+++ b/src/java/net/sf/jabref/Globals.java
@@ -1,965 +1,965 @@
/* (C) 2003 Nizar N. Batada, Morten O. Alver
All programs in this directory and
subdirec... | false | true | private static String getNewFile(JFrame owner, JabRefPreferences prefs,
File directory, String extension,
String description,
OpenFileFilter off,
int dialogType,
... | private static String getNewFile(JFrame owner, JabRefPreferences prefs,
File directory, String extension,
String description,
OpenFileFilter off,
int dialogType,
... |
diff --git a/main/src/cgeo/geocaching/cgCache.java b/main/src/cgeo/geocaching/cgCache.java
index d6e38018a..75c58cb03 100644
--- a/main/src/cgeo/geocaching/cgCache.java
+++ b/main/src/cgeo/geocaching/cgCache.java
@@ -1,1339 +1,1340 @@
package cgeo.geocaching;
import cgeo.geocaching.cgData.StorageLocation;
import c... | false | true | public boolean gatherMissingFrom(final cgCache other) {
if (other == null) {
return false;
}
updated = System.currentTimeMillis();
if (!detailed && other.detailed) {
detailed = true;
detailedUpdate = other.detailedUpdate;
coords = othe... | public boolean gatherMissingFrom(final cgCache other) {
if (other == null) {
return false;
}
updated = System.currentTimeMillis();
if (!detailed && other.detailed) {
detailed = true;
detailedUpdate = other.detailedUpdate;
coords = othe... |
diff --git a/src/main/java/mobisocial/cocoon/server/AMQPush.java b/src/main/java/mobisocial/cocoon/server/AMQPush.java
index 60a7de2..7bade30 100644
--- a/src/main/java/mobisocial/cocoon/server/AMQPush.java
+++ b/src/main/java/mobisocial/cocoon/server/AMQPush.java
@@ -1,484 +1,485 @@
package mobisocial.cocoon.server;
... | true | true | void amqp() throws Throwable {
final PushQueue dev_queue = Push.queue("push.p12", "pusubi", false, 1);
dev_queue.start();
final PushQueue prod_queue = Push.queue("pushprod.p12", "pusubi", true, 1);
prod_queue.start();
for(;;) {
ConnectionFactory connectionFactory = new ConnectionFa... | void amqp() throws Throwable {
final PushQueue dev_queue = Push.queue("push.p12", "pusubi", false, 1);
dev_queue.start();
final PushQueue prod_queue = Push.queue("pushprod.p12", "pusubi", true, 1);
prod_queue.start();
for(;;) {
ConnectionFactory connectionFactory = new ConnectionFa... |
diff --git a/src/visibilityGraph/Graph.java b/src/visibilityGraph/Graph.java
index d695adf..dd89b7b 100644
--- a/src/visibilityGraph/Graph.java
+++ b/src/visibilityGraph/Graph.java
@@ -1,103 +1,103 @@
package visibilityGraph;
import geometry.GeometryException;
import geometry.Point;
import geometry.Vector;
import ... | true | true | public void iterateToCreateEdges() throws GeometryException, OctNodeException, GraphException, GraphEdgeException{
for(int i=0;i<nodes.size();i++){
for(int j=i+1;j<nodes.size();j++){
//create ray and call octree code here
Vector ray = new Vector(nodes.get(i).getPo... | public void iterateToCreateEdges() throws GeometryException, OctNodeException, GraphException, GraphEdgeException{
for(int i=0;i<nodes.size();i++){
for(int j=i+1;j<nodes.size();j++){
//create ray and call octree code here
Vector ray = new Vector(nodes.get(i).getPo... |
diff --git a/workspace/Plugins/src/cz/zcu/kiv/kc/plugin/create/CreateFilePlugin.java b/workspace/Plugins/src/cz/zcu/kiv/kc/plugin/create/CreateFilePlugin.java
index a7d5775..933240f 100644
--- a/workspace/Plugins/src/cz/zcu/kiv/kc/plugin/create/CreateFilePlugin.java
+++ b/workspace/Plugins/src/cz/zcu/kiv/kc/plugin/crea... | true | true | public void executeAction(List<File> selectedFiles, String destinationPath,
String sourcePath) {
try {
new File(destinationPath + File.pathSeparator + System.nanoTime()).createNewFile();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
| public void executeAction(List<File> selectedFiles, String destinationPath,
String sourcePath) {
try {
new File(destinationPath + File.separator + System.nanoTime()).createNewFile();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
|
diff --git a/src/ibis/satin/impl/SharedObjects.java b/src/ibis/satin/impl/SharedObjects.java
index 3f57f6ad..0ecdf681 100644
--- a/src/ibis/satin/impl/SharedObjects.java
+++ b/src/ibis/satin/impl/SharedObjects.java
@@ -1,579 +1,579 @@
package ibis.satin.impl;
import ibis.ipl.IbisIdentifier;
import ibis.ipl.Receive... | false | true | public void broadcastSOInvocation(SOInvocationRecord r) {
long byteCount = 0;
// int numToSend;
WriteMessage w = null;
if (SO_TIMING) {
broadcastSOInvocationsTimer.start();
}
if (SCALABLE) {
doConnectSendPort();
}
if (soSend... | public void broadcastSOInvocation(SOInvocationRecord r) {
long byteCount = 0;
// int numToSend;
WriteMessage w = null;
if (SO_TIMING) {
broadcastSOInvocationsTimer.start();
}
if (SCALABLE) {
doConnectSendPort();
}
if (soSend... |
diff --git a/gui/src/main/java/org/jboss/as/console/client/shared/runtime/jpa/JPAMetricPresenter.java b/gui/src/main/java/org/jboss/as/console/client/shared/runtime/jpa/JPAMetricPresenter.java
index 5cef7c46..d05aa7b3 100644
--- a/gui/src/main/java/org/jboss/as/console/client/shared/runtime/jpa/JPAMetricPresenter.java
... | false | true | public void loadMetrics(String[] tokens) {
ModelNode operation = new ModelNode();
operation.get(ADDRESS).set(RuntimeBaseAddress.get());
// parent deployment names
if(tokens[0].indexOf("/")!=-1)
{
String[] parent = tokens[0].split("/");
operation.get(... | public void loadMetrics(String[] tokens) {
ModelNode operation = new ModelNode();
operation.get(ADDRESS).set(RuntimeBaseAddress.get());
// parent deployment names
if(tokens[0].indexOf("/")!=-1)
{
String[] parent = tokens[0].split("/");
operation.get(... |
diff --git a/src/gtpdisplay/Main.java b/src/gtpdisplay/Main.java
index b45f10ac..e9045ee5 100644
--- a/src/gtpdisplay/Main.java
+++ b/src/gtpdisplay/Main.java
@@ -1,90 +1,82 @@
//----------------------------------------------------------------------------
// $Id$
// $Source$
//--------------------------------------... | false | true | public static void main(String[] args)
{
try
{
String options[] = {
"config:",
"help",
"size:",
"verbose",
"version",
"version2"
};
Options opt = new Options(args, ... | public static void main(String[] args)
{
try
{
String options[] = {
"config:",
"help",
"size:",
"verbose",
"version",
"version2"
};
Options opt = new Options(args, ... |
diff --git a/src/com/entrocorp/linearlogic/oneinthegun/commands/CommandJoin.java b/src/com/entrocorp/linearlogic/oneinthegun/commands/CommandJoin.java
index 8d7f9fd..99b962c 100644
--- a/src/com/entrocorp/linearlogic/oneinthegun/commands/CommandJoin.java
+++ b/src/com/entrocorp/linearlogic/oneinthegun/commands/CommandJ... | true | true | public void run() {
Player player = (Player) sender;
if (arena.isIngame()) {
player.sendMessage(OITG.prefix + ChatColor.RED + "A game is already in progress in that arena, choose another.");
return;
}
if (arena.isClosed()) {
player.sendMessage(OITG... | public void run() {
Player player = (Player) sender;
if (arena.isIngame()) {
player.sendMessage(OITG.prefix + ChatColor.RED + "A game is already in progress in that arena, choose another.");
return;
}
if (arena.isClosed()) {
player.sendMessage(OITG... |
diff --git a/src/test/java/org/ini4j/IniHandlerTest.java b/src/test/java/org/ini4j/IniHandlerTest.java
index c3dce2e..fd3a57c 100755
--- a/src/test/java/org/ini4j/IniHandlerTest.java
+++ b/src/test/java/org/ini4j/IniHandlerTest.java
@@ -1,146 +1,146 @@
/*
* Copyright 2005 [ini4j] Development Team
*
* Licensed un... | true | true | protected IniHandler newHandler() throws Exception
{
IniHandler handler = EasyMock.createMock(IniHandler.class);
Dwarfs dwarfs = newDwarfs();
Dwarf dwarf;
handler.startIni();
dwarf = dwarfs.getBashful();
handler.startSection(Dwarfs.PROP_... | protected IniHandler newHandler() throws Exception
{
IniHandler handler = EasyMock.createMock(IniHandler.class);
Dwarfs dwarfs = newDwarfs();
Dwarf dwarf;
handler.startIni();
dwarf = dwarfs.getBashful();
handler.startSection(Dwarfs.PROP_... |
diff --git a/jetty/src/main/java/org/mortbay/jetty/AbstractConnector.java b/jetty/src/main/java/org/mortbay/jetty/AbstractConnector.java
index 87378af59..1ec0a30c2 100644
--- a/jetty/src/main/java/org/mortbay/jetty/AbstractConnector.java
+++ b/jetty/src/main/java/org/mortbay/jetty/AbstractConnector.java
@@ -1,784 +1,78... | true | true | public void run()
{
Thread current = Thread.currentThread();
synchronized(AbstractConnector.this)
{
if (_acceptorThread==null)
return;
_acceptorThread[_acceptor]=current;
}
... | public void run()
{
Thread current = Thread.currentThread();
synchronized(AbstractConnector.this)
{
if (_acceptorThread==null)
return;
_acceptorThread[_acceptor]=current;
}
... |
diff --git a/src/frontend/org/voltdb/PartitionDRGateway.java b/src/frontend/org/voltdb/PartitionDRGateway.java
index a84b10ad3..4e3427efd 100644
--- a/src/frontend/org/voltdb/PartitionDRGateway.java
+++ b/src/frontend/org/voltdb/PartitionDRGateway.java
@@ -1,96 +1,96 @@
/* This file is part of VoltDB.
* Copyright (C... | true | true | public static PartitionDRGateway getInstance(int partitionId,
NodeDRGateway nodeGateway,
boolean isRejoin,
boolean iv2Enabled)
{
final VoltDBInterface vdb = ... | public static PartitionDRGateway getInstance(int partitionId,
NodeDRGateway nodeGateway,
boolean iv2Enabled,
boolean isRejoin)
{
final VoltDBInterface vdb = ... |
diff --git a/src/com/tactfactory/mda/template/ProviderGenerator.java b/src/com/tactfactory/mda/template/ProviderGenerator.java
index 582f4017..1c398976 100644
--- a/src/com/tactfactory/mda/template/ProviderGenerator.java
+++ b/src/com/tactfactory/mda/template/ProviderGenerator.java
@@ -1,220 +1,220 @@
/**
* This fil... | true | true | private void updateManifest() {
final String pathRelatif = String.format("%s.%s",
this.localNameSpace,
this.nameProvider);
// Debug Log
ConsoleUtils.displayDebug("Update Manifest : " + pathRelatif);
try {
// Make engine
final SAXBuilder builder = new SAXBuilder();
final File xmlFile
... | private void updateManifest() {
final String pathRelatif = String.format("%s.%s",
this.localNameSpace,
this.nameProvider);
// Debug Log
ConsoleUtils.displayDebug("Update Manifest : " + pathRelatif);
try {
// Make engine
final SAXBuilder builder = new SAXBuilder();
final File xmlFile
... |
diff --git a/trunk/test/java/TestVisibility.java b/trunk/test/java/TestVisibility.java
index 3c6e113..ddd8d1e 100644
--- a/trunk/test/java/TestVisibility.java
+++ b/trunk/test/java/TestVisibility.java
@@ -1,95 +1,95 @@
import java.util.List;
import org.apache.log4j.Logger;
import com.xerox.amazonws.sqs.QueueSe... | true | true | public static void main(String [] args) throws Exception {
final String AWSAccessKeyId = "[AWS Access Id]";
final String SecretAccessKey = "[AWS Access Id]";
QueueService qs = new QueueService(AWSAccessKeyId, SecretAccessKey);
MessageQueue mq = qs.getOrCreateMessageQueue(args[0]);
int timeout = ... | public static void main(String [] args) throws Exception {
final String AWSAccessKeyId = "[AWS Access Id]";
final String SecretAccessKey = "[AWS Access Id]";
QueueService qs = new QueueService(AWSAccessKeyId, SecretAccessKey);
MessageQueue mq = qs.getOrCreateMessageQueue(args[0]);
int timeout = ... |
diff --git a/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/action/Notifier.java b/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/editor/action/Notifier.java
index c37a53f..6f6053c 100644
--- a/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/u... | true | true | protected void doEditing(SWTBotEditor editor, String... path) {
SWTBotSection section = bot.section(editor.bot(),getSectionTitle());
editTextProperty(editor, section.bot(), "Ok Method:", "okMethod", "method");
editTextProperty(editor, section.bot(), "Exception Method:", "exceptionMethod", "method");
section = ... | protected void doEditing(SWTBotEditor editor, String... path) {
SWTBotSection section = bot.section(editor.bot(),getSectionTitle());
editTextProperty(editor, section.bot(), "Ok Method:", "okMethod", "method");
editTextProperty(editor, section.bot(), "Exception Method:", "exceptionMethod", "method");
section = ... |
diff --git a/test/badm/models/BudgetTest.java b/test/badm/models/BudgetTest.java
index 17463b7..316ed07 100644
--- a/test/badm/models/BudgetTest.java
+++ b/test/badm/models/BudgetTest.java
@@ -1,355 +1,355 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
packag... | true | true | public void fetch() {
try {
System.out.println("fetch");
System.out.println(Helper.getTicket(context));
String repos = budget.getRepositoryName();
System.out.println(Helper.getTicket(context));
BudgetInterface fetc... | public void fetch() {
try {
System.out.println("fetch");
System.out.println(Helper.getTicket(context));
String repos = budget.getRepositoryName();
System.out.println(Helper.getTicket(context));
Budget fetched_budge... |
diff --git a/bundles/org.eclipse.rap.jface/src/org/eclipse/jface/resource/URLImageDescriptor.java b/bundles/org.eclipse.rap.jface/src/org/eclipse/jface/resource/URLImageDescriptor.java
index aa2a437dd..2a44d7c96 100755
--- a/bundles/org.eclipse.rap.jface/src/org/eclipse/jface/resource/URLImageDescriptor.java
+++ b/bund... | false | true | public Image createImage( boolean returnMissingImageOnError, Device device ) {
String path = url.toString();
String schema = "bundleentry://"; //$NON-NLS-1$
int pos = path.indexOf( schema );
if( pos != -1 ) {
path = path.substring( pos + schema.length() );
}
schema = "bundleresource://";... | public Image createImage( boolean returnMissingImageOnError, Device device ) {
String path = url.toString();
String schema = "bundleentry://"; //$NON-NLS-1$
int pos = path.indexOf( schema );
if( pos != -1 ) {
path = path.substring( pos + schema.length() );
}
schema = "bundleresource://";... |
diff --git a/src/main/java/me/cmastudios/plugins/WarhubModChat/WarhubModChat.java b/src/main/java/me/cmastudios/plugins/WarhubModChat/WarhubModChat.java
index 9d8e5bc..e0385d1 100644
--- a/src/main/java/me/cmastudios/plugins/WarhubModChat/WarhubModChat.java
+++ b/src/main/java/me/cmastudios/plugins/WarhubModChat/Warhub... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String label,
String[] args) {
Player player = null;
if (sender instanceof Player) {
player = (Player) sender;
}
if (cmd.getName().equalsIgnoreCase("modchat")) {
if (!permissions.has(player, "warhub.moderator")) {
player.sendMessage(ChatC... | public boolean onCommand(CommandSender sender, Command cmd, String label,
String[] args) {
Player player = null;
if (sender instanceof Player) {
player = (Player) sender;
}
if (cmd.getName().equalsIgnoreCase("modchat")) {
if (!permissions.has(player, "warhub.moderator")) {
player.sendMessage(ChatC... |
diff --git a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/typeinference/HostCollection.java b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/typeinference/HostCollection.java
index 8d8970a0..ba371c3b 100644
--- a/plugins/org.eclipse.dltk.javascript... | false | true | public static String parseCompletionString(String id,
boolean dotBeforeBrackets) {
StringBuffer sb = new StringBuffer();
int start = 0;
int current = id.length();
Stack inBrackStack = new Stack();
boolean inString = false;
for (int i = id.length(); --i >= 0;) {
char c = id.charAt(i);
if (c == '\"'... | public static String parseCompletionString(String id,
boolean dotBeforeBrackets) {
StringBuffer sb = new StringBuffer();
int start = 0;
int current = id.length();
Stack inBrackStack = new Stack();
boolean inStringSingle = false;
boolean inStringDouble = false;
for (int i = id.length(); --i >= 0;) {
... |
diff --git a/src/test/java/org/agilos/zendesk_jira_plugin/integrationtest/fixtures/JIRAFixture.java b/src/test/java/org/agilos/zendesk_jira_plugin/integrationtest/fixtures/JIRAFixture.java
index 0276139..8ff260b 100644
--- a/src/test/java/org/agilos/zendesk_jira_plugin/integrationtest/fixtures/JIRAFixture.java
+++ b/sr... | true | true | public void loadData (String fileName) {
String filePath = jiraClient.getFuncTestHelperFactory().getEnvironmentData().getXMLDataLocation().getAbsolutePath() + FS + fileName;
String JIRAHomeDir = jiraClient.getFuncTestHelperFactory().getEnvironmentData().getJIRAHomeLocation().getAbsolutePath();
try {
if (test... | public void loadData (String fileName) {
String filePath = jiraClient.getFuncTestHelperFactory().getEnvironmentData().getXMLDataLocation().getAbsolutePath() + FS + fileName;
String JIRAHomeDir = jiraClient.getFuncTestHelperFactory().getEnvironmentData().getJIRAHomeLocation().getAbsolutePath();
try {
if (test... |
diff --git a/iwsn/runtime.wsn-app/src/main/java/de/uniluebeck/itm/tr/runtime/wsnapp/WSNDeviceAppConnectorFactory.java b/iwsn/runtime.wsn-app/src/main/java/de/uniluebeck/itm/tr/runtime/wsnapp/WSNDeviceAppConnectorFactory.java
index 77476ec3..015ae272 100644
--- a/iwsn/runtime.wsn-app/src/main/java/de/uniluebeck/itm/tr/r... | true | true | public static WSNDeviceAppConnector create(final String nodeUrn, final String nodeType, final String nodeUSBChipID,
final String nodeSerialInterface, final Integer timeoutNodeAPI,
final Integer maximumMessageRate,
final SchedulerService schedulerService,
final In... | public static WSNDeviceAppConnector create(final String nodeUrn, final String nodeType, final String nodeUSBChipID,
final String nodeSerialInterface, final Integer timeoutNodeAPI,
final Integer maximumMessageRate,
final SchedulerService schedulerService,
final In... |
diff --git a/ImportPlugin/src/org/gephi/io/importer/plugin/file/ImporterGraphML.java b/ImportPlugin/src/org/gephi/io/importer/plugin/file/ImporterGraphML.java
index 84a7c3184..204a5ae34 100644
--- a/ImportPlugin/src/org/gephi/io/importer/plugin/file/ImporterGraphML.java
+++ b/ImportPlugin/src/org/gephi/io/importer/plug... | true | true | private void readAttribute(XMLStreamReader reader) throws Exception {
String id = "";
String type = "";
String title = "";
String defaultStr = "";
String forStr = "";
for (int i = 0; i < reader.getAttributeCount(); i++) {
String attName = reader.getAttribu... | private void readAttribute(XMLStreamReader reader) throws Exception {
String id = "";
String type = "";
String title = "";
String defaultStr = "";
String forStr = "";
for (int i = 0; i < reader.getAttributeCount(); i++) {
String attName = reader.getAttribu... |
diff --git a/src/com/eteks/sweethome3d/swing/SwingTools.java b/src/com/eteks/sweethome3d/swing/SwingTools.java
index c755e1ca..128cb8b3 100644
--- a/src/com/eteks/sweethome3d/swing/SwingTools.java
+++ b/src/com/eteks/sweethome3d/swing/SwingTools.java
@@ -1,494 +1,494 @@
/*
* SwingTools.java 21 oct. 2008
*
* Copy... | true | true | public static void installFocusBorder(JComponent component) {
if (unfocusedViewBorder == null) {
Border unfocusedViewInteriorBorder = new AbstractBorder() {
private Color topLeftColor;
private Color botomRightColor;
private Insets insets = new Insets(1, 1, 1, 1);
... | public static void installFocusBorder(JComponent component) {
if (unfocusedViewBorder == null) {
Border unfocusedViewInteriorBorder = new AbstractBorder() {
private Color topLeftColor;
private Color botomRightColor;
private Insets insets = new Insets(1, 1, 1, 1);
... |
diff --git a/Core/util.bundle/src/de/hszg/atocc/core/util/compile/AbstractExecutor.java b/Core/util.bundle/src/de/hszg/atocc/core/util/compile/AbstractExecutor.java
index dc0e8d6..52af667 100644
--- a/Core/util.bundle/src/de/hszg/atocc/core/util/compile/AbstractExecutor.java
+++ b/Core/util.bundle/src/de/hszg/atocc/cor... | false | true | private void deleteTempDirectory() throws IOException {
Files.walkFileTree(tempDirectory, new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs)
throws IOException {
Files.delete(file);
... | private void deleteTempDirectory() throws IOException {
Files.walkFileTree(tempDirectory, new SimpleFileVisitor<Path>() {
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs)
throws IOException {
Files.delete(file);
... |
diff --git a/src/rs/pedjaapps/KernelTuner/ui/KernelTuner.java b/src/rs/pedjaapps/KernelTuner/ui/KernelTuner.java
index 3a21a3b..58819ef 100644
--- a/src/rs/pedjaapps/KernelTuner/ui/KernelTuner.java
+++ b/src/rs/pedjaapps/KernelTuner/ui/KernelTuner.java
@@ -1,2005 +1,2005 @@
/*
* This file is part of the Kernel Tuner.... | false | true | private void initdExport() {
SharedPreferences sharedPrefs = PreferenceManager
.getDefaultSharedPreferences(c);
String gpu3d = sharedPrefs.getString("gpu3d", "");
String gpu2d = sharedPrefs.getString("gpu2d", "");
String hw = sharedPrefs.getString("hw", "");
String cdepth = sharedPrefs.getString("cdept... | private void initdExport() {
SharedPreferences sharedPrefs = PreferenceManager
.getDefaultSharedPreferences(c);
String gpu3d = sharedPrefs.getString("gpu3d", "");
String gpu2d = sharedPrefs.getString("gpu2d", "");
String hw = sharedPrefs.getString("hw", "");
String cdepth = sharedPrefs.getString("cdept... |
diff --git a/hadoop-console/src/main/java/com/gaoshin/hadoop/hdfs/HadoopBaseService.java b/hadoop-console/src/main/java/com/gaoshin/hadoop/hdfs/HadoopBaseService.java
index 2bc90c3..728b43a 100644
--- a/hadoop-console/src/main/java/com/gaoshin/hadoop/hdfs/HadoopBaseService.java
+++ b/hadoop-console/src/main/java/com/ga... | true | true | public String getHdfsUrl() {
if(hdfsUrl == null) {
JobConf conf = confService.get("hadoop.dfs.uri");
if(conf != null) {
hdfsUrl = conf.getValue();
}
}
return hdfsUrl;
}
| public String getHdfsUrl() {
if(hdfsUrl == null) {
JobConf conf = confService.getByKey("hadoop.dfs.uri");
if(conf != null) {
hdfsUrl = conf.getValue();
}
}
return hdfsUrl;
}
|
diff --git a/src/net/sf/antcontrib/cpptasks/CCTask.java b/src/net/sf/antcontrib/cpptasks/CCTask.java
index bd31ccce..b385393d 100644
--- a/src/net/sf/antcontrib/cpptasks/CCTask.java
+++ b/src/net/sf/antcontrib/cpptasks/CCTask.java
@@ -1,1683 +1,1684 @@
/*
*
* Copyright 2001-2005 The Ant-Contrib project
*
* L... | false | true | public void execute() throws BuildException {
//
// if link type allowed objdir to be defaulted
// provide it from outfile
if (_objDir == null) {
if (_outfile != null) {
_objDir = new File(_outfile.getParent());
} else {
_objDir = new File(".");
}
}
//
// if the object directory does no... | public void execute() throws BuildException {
//
// if link type allowed objdir to be defaulted
// provide it from outfile
if (_objDir == null) {
if (_outfile != null) {
_objDir = new File(_outfile.getParent());
} else {
_objDir = new File(".");
}
}
//
// if the object directory does no... |
diff --git a/com.yoursway.utils/src/com/yoursway/utils/os/YsOSUtils.java b/com.yoursway.utils/src/com/yoursway/utils/os/YsOSUtils.java
index 0a90676..0d23454 100644
--- a/com.yoursway.utils/src/com/yoursway/utils/os/YsOSUtils.java
+++ b/com.yoursway.utils/src/com/yoursway/utils/os/YsOSUtils.java
@@ -1,42 +1,43 @@
pack... | false | true | private static OSUtils os() {
if (os == null) {
String osName = System.getProperty("os.name");
if (osName.equals("Mac OS X"))
os = new MacUtils();
else if (osName.equals("Windows NT"))
os = new WinUtils();
... | private static OSUtils os() {
if (os == null) {
String osName = System.getProperty("os.name");
String lowercased = osName.toLowerCase();
if (lowercased.contains("mac"))
os = new MacUtils();
else if (lowercased.contains("win"))
... |
diff --git a/main/src/cgeo/geocaching/cgeocoords.java b/main/src/cgeo/geocaching/cgeocoords.java
index 70ca164a7..972eba90b 100644
--- a/main/src/cgeo/geocaching/cgeocoords.java
+++ b/main/src/cgeo/geocaching/cgeocoords.java
@@ -1,488 +1,488 @@
package cgeo.geocaching;
import cgeo.geocaching.cgSettings.coordInputFo... | true | true | private void updateGUI() {
if (gp == null)
return;
Double lat = 0.0;
if (gp.getLatitude() < 0) {
bLat.setText("S");
} else {
bLat.setText("N");
}
lat = Math.abs(gp.getLatitude());
Double lon = 0.0;
if (gp.getLongit... | private void updateGUI() {
if (gp == null)
return;
Double lat = 0.0;
if (gp.getLatitude() < 0) {
bLat.setText("S");
} else {
bLat.setText("N");
}
lat = Math.abs(gp.getLatitude());
Double lon = 0.0;
if (gp.getLongit... |
diff --git a/src/org/openid4java/message/AuthSuccess.java b/src/org/openid4java/message/AuthSuccess.java
index c9f6dd8..2f128c6 100644
--- a/src/org/openid4java/message/AuthSuccess.java
+++ b/src/org/openid4java/message/AuthSuccess.java
@@ -1,592 +1,592 @@
/*
* Copyright 2006-2008 Sxip Identity Corporation
*/
p... | true | true | public void validate() throws MessageException
{
super.validate();
boolean compatibility = ! isVersion2();
if ( ! compatibility && ! hasParameter("openid.op_endpoint"))
{
throw new MessageException(
"openid.op_endpoint is required in OpenID auth resp... | public void validate() throws MessageException
{
super.validate();
boolean compatibility = ! isVersion2();
if ( ! compatibility && ! hasParameter("openid.op_endpoint"))
{
throw new MessageException(
"openid.op_endpoint is required in OpenID auth resp... |
diff --git a/src/main/java/net/h31ix/anticheat/manage/Backend.java b/src/main/java/net/h31ix/anticheat/manage/Backend.java
index 63c880d..aa02e75 100644
--- a/src/main/java/net/h31ix/anticheat/manage/Backend.java
+++ b/src/main/java/net/h31ix/anticheat/manage/Backend.java
@@ -1,805 +1,804 @@
/*
* AntiCheat for Bukki... | true | true | public boolean checkYAxis(Player player, Distance distance)
{
//Arrow to the knee check
if(distance.getYDifference() > 400) {
//teleport. so just cancel.
return false;
}
//Arrow to the knee check
if(!player.isFlying())
{
double y1 = player.getL... | public boolean checkYAxis(Player player, Distance distance)
{
//Arrow to the knee check
if(distance.getYDifference() > 400) {
//teleport. so just cancel.
return false;
}
if(!isMovingExempt(player))
{
double y1 = player.getLocation().getY();
... |
diff --git a/src/br/com/thiagopagonha/psnapi/GCMIntentService.java b/src/br/com/thiagopagonha/psnapi/GCMIntentService.java
index 61543a5..a34b953 100644
--- a/src/br/com/thiagopagonha/psnapi/GCMIntentService.java
+++ b/src/br/com/thiagopagonha/psnapi/GCMIntentService.java
@@ -1,124 +1,126 @@
package br.com.thiagopagon... | true | true | private static void generateNotification(Context context, String message) {
Log.d(TAG, "generateNotification");
int icon = R.drawable.ic_launcher;
long when = System.currentTimeMillis();
NotificationManager notificationManager = (NotificationManager)
context.get... | private static void generateNotification(Context context, String message) {
Log.d(TAG, "generateNotification");
int icon = R.drawable.ic_launcher;
long when = System.currentTimeMillis();
NotificationManager notificationManager = (NotificationManager)
context.get... |
diff --git a/src/main/java/ru/shutoff/caralarm/TrackView.java b/src/main/java/ru/shutoff/caralarm/TrackView.java
index 040ead9..09d6c5a 100644
--- a/src/main/java/ru/shutoff/caralarm/TrackView.java
+++ b/src/main/java/ru/shutoff/caralarm/TrackView.java
@@ -1,175 +1,179 @@
package ru.shutoff.caralarm;
import android... | false | true | File saveTrack(double min_lat, double max_lat, double min_lon, double max_lon, boolean show_toast) {
try {
File path = Environment.getExternalStorageDirectory();
if (path == null)
path = getFilesDir();
path = new File(path, "Tracks");
path.mkdi... | File saveTrack(double min_lat, double max_lat, double min_lon, double max_lon, boolean show_toast) {
try {
File path = Environment.getExternalStorageDirectory();
if (path == null)
path = getFilesDir();
path = new File(path, "Tracks");
path.mkdi... |
diff --git a/UnitTranslation/src/Measurement.java b/UnitTranslation/src/Measurement.java
index ed13cf6..fdff18c 100644
--- a/UnitTranslation/src/Measurement.java
+++ b/UnitTranslation/src/Measurement.java
@@ -1,41 +1,41 @@
import lombok.EqualsAndHashCode;
import lombok.Getter;
@EqualsAndHashCode
public class Meas... | true | true | public Measurement expressedIn(MeasurementType measurementType) {
if (measurementType.measurementClass.equals(MeasurementClassification.Length)) {
return new Measurement(measurementType, translateTo(measurementType));
}
return new Measurement(MeasurementType.InvalidConversion, 0.... | public Measurement expressedIn(MeasurementType measurementType) {
if (measurementType.measurementClass.equals(measurementType.measurementClass)) {
return new Measurement(measurementType, translateTo(measurementType));
}
return new Measurement(MeasurementType.InvalidConversion, 0.... |
diff --git a/src/org/apache/http/impl/client/DefaultRequestDirector.java b/src/org/apache/http/impl/client/DefaultRequestDirector.java
index 511f8a0..a95c522 100644
--- a/src/org/apache/http/impl/client/DefaultRequestDirector.java
+++ b/src/org/apache/http/impl/client/DefaultRequestDirector.java
@@ -1,1088 +1,1099 @@
... | true | true | public HttpResponse execute(HttpHost target, HttpRequest request,
HttpContext context)
throws HttpException, IOException {
HttpRequest orig = request;
RequestWrapper origWrapper = wrapRequest(orig);
origWrapper.setParams(params);
HttpRoute ori... | public HttpResponse execute(HttpHost target, HttpRequest request,
HttpContext context)
throws HttpException, IOException {
HttpRequest orig = request;
RequestWrapper origWrapper = wrapRequest(orig);
origWrapper.setParams(params);
HttpRoute ori... |
diff --git a/src/com/seanmadden/deepthought/responders/SaluteResponder.java b/src/com/seanmadden/deepthought/responders/SaluteResponder.java
index e6f0b3e..c9af3f6 100644
--- a/src/com/seanmadden/deepthought/responders/SaluteResponder.java
+++ b/src/com/seanmadden/deepthought/responders/SaluteResponder.java
@@ -1,55 +1... | true | true | public boolean handleMessage(IRCClient irc, Message m) {
String message = m.getMessage();
for(String rank : ranks){
if(!message.toLowerCase().contains(rank)){
continue;
}
int startpos = message.toLowerCase().indexOf(rank) + rank.length();
String response = message.substring(startpos, message.indexO... | public boolean handleMessage(IRCClient irc, Message m) {
String message = m.getMessage();
for(String rank : ranks){
if(!message.toLowerCase().contains(rank)){
continue;
}
int startpos = message.toLowerCase().indexOf(rank) + rank.length();
int offset = message.indexOf(' ', startpos + 1);
if(offse... |
diff --git a/org.eclipse.gemini.jpa/src/org/eclipse/gemini/jpa/proxy/EMFBuilderServiceProxyHandler.java b/org.eclipse.gemini.jpa/src/org/eclipse/gemini/jpa/proxy/EMFBuilderServiceProxyHandler.java
index 4307ffb..529edc8 100644
--- a/org.eclipse.gemini.jpa/src/org/eclipse/gemini/jpa/proxy/EMFBuilderServiceProxyHandler.j... | true | true | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
debug("EMFBuilderProxy invocation on method ", method.getName());
if (method.getName().equals("hashCode"))
return this.hashCode();
if (method.getName().equals("toString"))
return thi... | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
debug("EMFBuilderProxy invocation on method ", method.getName());
if (method.getName().equals("hashCode"))
return this.hashCode();
if (method.getName().equals("equals"))
return this.... |
diff --git a/src/main/java/de/lemo/dms/connectors/moodleNumericId/ExtractAndMap.java b/src/main/java/de/lemo/dms/connectors/moodleNumericId/ExtractAndMap.java
index b88d4607..de56013a 100644
--- a/src/main/java/de/lemo/dms/connectors/moodleNumericId/ExtractAndMap.java
+++ b/src/main/java/de/lemo/dms/connectors/moodleNu... | true | true | public long getMiningInitial() {
// open a DB connection
final Session session = this.dbHandler.getMiningSession();
List<?> t;
t = this.dbHandler.performQuery(session, EQueryType.HQL, "from PlatformMining x order by x.id asc");
this.oldPlatformMining = new HashMap<Long, PlatformMining>();
if (t != null) ... | public long getMiningInitial() {
// open a DB connection
final Session session = this.dbHandler.getMiningSession();
List<?> t;
t = this.dbHandler.performQuery(session, EQueryType.HQL, "from PlatformMining x order by x.id asc");
this.oldPlatformMining = new HashMap<Long, PlatformMining>();
if (t != null) ... |
diff --git a/public/java/src/org/broadinstitute/sting/utils/genotype/Haplotype.java b/public/java/src/org/broadinstitute/sting/utils/genotype/Haplotype.java
index cb6557408..31791e805 100755
--- a/public/java/src/org/broadinstitute/sting/utils/genotype/Haplotype.java
+++ b/public/java/src/org/broadinstitute/sting/utils... | false | true | public static LinkedHashMap<Allele,Haplotype> makeHaplotypeListFromAlleles(List<Allele> alleleList, int startPos, ReferenceContext ref,
final int haplotypeSize, final int numPrefBases) {
LinkedHashMap<Allele,Haplotype> haplotypeMap = new Linke... | public static LinkedHashMap<Allele,Haplotype> makeHaplotypeListFromAlleles(List<Allele> alleleList, int startPos, ReferenceContext ref,
final int haplotypeSize, final int numPrefBases) {
LinkedHashMap<Allele,Haplotype> haplotypeMap = new Linke... |
diff --git a/src/test/cascading/BasicPipesTest.java b/src/test/cascading/BasicPipesTest.java
index 490707d0..0d258f48 100644
--- a/src/test/cascading/BasicPipesTest.java
+++ b/src/test/cascading/BasicPipesTest.java
@@ -1,435 +1,436 @@
/*
* Copyright (c) 2007-2010 Concurrent, Inc. All Rights Reserved.
*
* Project... | true | true | void runTestCount( Fields argumentSelector, Fields fieldDeclaration, Fields outputSelector ) throws Exception
{
if( !new File( inputFileIps ).exists() )
fail( "data file not found" );
Tap source = new Hfs( new TextLine( Fields.size( 2 ) ), inputFileIps );
Tap sink = new Hfs( new TextLine(), out... | void runTestCount( Fields argumentSelector, Fields fieldDeclaration, Fields outputSelector ) throws Exception
{
if( !new File( inputFileIps ).exists() )
fail( "data file not found" );
Tap source = new Hfs( new TextLine( Fields.size( 2 ) ), inputFileIps );
Tap sink = new Hfs( new TextLine(), out... |
diff --git a/CocaColaClimateAmbassador/src/main/java/com/cocacola/climateambassador/adapters/MenuListAdapter.java b/CocaColaClimateAmbassador/src/main/java/com/cocacola/climateambassador/adapters/MenuListAdapter.java
index 7d8ca6e..922daa4 100644
--- a/CocaColaClimateAmbassador/src/main/java/com/cocacola/climateambassa... | true | true | private View getNavigationDrawerItemView(NavigationDrawerItem item) {
View v = mInflater.inflate(R.layout.drawer_list_item, null);
TextView txtTitle = (TextView) v.findViewById(R.id.title);
ImageView imgIcon = (ImageView) v.findViewById(R.id.icon);
txtTitle.setText(item.getTitle()... | private View getNavigationDrawerItemView(NavigationDrawerItem item) {
View v = mInflater.inflate(R.layout.drawer_list_item, null);
TextView txtTitle = (TextView) v.findViewById(R.id.drawer_item_title);
ImageView imgIcon = (ImageView) v.findViewById(R.id.drawer_item_icon);
txtTitle... |
diff --git a/src/com/android/phone/EditFdnContactScreen.java b/src/com/android/phone/EditFdnContactScreen.java
old mode 100644
new mode 100755
index cca9a9f6..2992b7dc
--- a/src/com/android/phone/EditFdnContactScreen.java
+++ b/src/com/android/phone/EditFdnContactScreen.java
@@ -1,451 +1,458 @@
/*
* Copyright (C) 20... | false | true | protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
if (DBG) log("onActivityResult request:" + requestCode + " result:" + resultCode);
switch (requestCode) {
case PIN2_REQUEST_CODE:
Bundle extras = (intent != null) ? intent.getExtras() : nul... | protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
if (DBG) log("onActivityResult request:" + requestCode + " result:" + resultCode);
switch (requestCode) {
case PIN2_REQUEST_CODE:
Bundle extras = (intent != null) ? intent.getExtras() : nul... |
diff --git a/vraptor-core/src/test/java/br/com/caelum/vraptor/interceptor/InstantiateInterceptorTest.java b/vraptor-core/src/test/java/br/com/caelum/vraptor/interceptor/InstantiateInterceptorTest.java
index cd2fdd49..7bf2249f 100644
--- a/vraptor-core/src/test/java/br/com/caelum/vraptor/interceptor/InstantiateIntercept... | true | true | public void shouldUseContainerForNewComponent() throws InterceptionException, IOException {
final DogController myDog = new DogController();
InstanceContainer container = new InstanceContainer(myDog);
InstantiateInterceptor interceptor = new InstantiateInterceptor(container);
... | public void shouldUseContainerForNewComponent() throws InterceptionException, IOException {
final DogController myDog = new DogController();
InstanceContainer container = new InstanceContainer(myDog);
InstantiateInterceptor interceptor = new InstantiateInterceptor(container);
... |
diff --git a/project2/src/hmm/StateCollection.java b/project2/src/hmm/StateCollection.java
index ed9d176..5889dad 100644
--- a/project2/src/hmm/StateCollection.java
+++ b/project2/src/hmm/StateCollection.java
@@ -1,142 +1,142 @@
package hmm;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.H... | true | true | public ArrayList<String> calculateStatesofSentence(
ArrayList<String> sentence) {
ArrayList<String> result = new ArrayList<String>();
HashMap<String, Double> probabilities = new HashMap<String, Double>();
String[] splitting = sentence.get(0).split("/");
String first_word = splitting[0];
// Calcul... | public ArrayList<String> calculateStatesofSentence(
ArrayList<String> sentence) {
ArrayList<String> result = new ArrayList<String>();
HashMap<String, Double> probabilities = new HashMap<String, Double>();
String[] splitting = sentence.get(0).split("/");
String first_word = splitting[0];
// Calcul... |
diff --git a/org.emftext.sdk.concretesyntax.resource.cs.post_processing/src/org/emftext/sdk/syntax_analysis/OptionsAnalyser.java b/org.emftext.sdk.concretesyntax.resource.cs.post_processing/src/org/emftext/sdk/syntax_analysis/OptionsAnalyser.java
index b74a90687..aa9db1940 100644
--- a/org.emftext.sdk.concretesyntax.re... | false | true | private void checkPluginIdConflict(
CsResource resource,
ConcreteSyntax syntax,
List<Option> options) {
OptionManager optionManager = OptionManager.INSTANCE;
String antlrPluginID = optionManager.getStringOptionValue(syntax, OptionTypes.ANTLR_PLUGIN_ID);
String resourcePluginID = optionManager.getStr... | private void checkPluginIdConflict(
CsResource resource,
ConcreteSyntax syntax,
List<Option> options) {
OptionManager optionManager = OptionManager.INSTANCE;
String antlrPluginID = optionManager.getStringOptionValue(syntax, OptionTypes.ANTLR_PLUGIN_ID);
String resourcePluginID = optionManager.getStr... |
diff --git a/src/me/libraryaddict/Hungergames/Managers/ConfigManager.java b/src/me/libraryaddict/Hungergames/Managers/ConfigManager.java
index 5ff0959..12a9837 100644
--- a/src/me/libraryaddict/Hungergames/Managers/ConfigManager.java
+++ b/src/me/libraryaddict/Hungergames/Managers/ConfigManager.java
@@ -1,623 +1,623 @@... | true | true | public void loadConfig() {
hg.saveDefaultConfig();
final TranslationManager cm = HungergamesApi.getTranslationManager();
if (Bukkit.getServer().getAllowEnd() && hg.getConfig().getBoolean("DisableEnd", true)) {
YamlConfiguration config = YamlConfiguration.loadConfiguration(new Fil... | public void loadConfig() {
hg.saveDefaultConfig();
final TranslationManager cm = HungergamesApi.getTranslationManager();
if (Bukkit.getServer().getAllowEnd() && hg.getConfig().getBoolean("DisableEnd", true)) {
YamlConfiguration config = YamlConfiguration.loadConfiguration(new Fil... |
diff --git a/src/examples/org/apache/hama/examples/RandomMatrix.java b/src/examples/org/apache/hama/examples/RandomMatrix.java
index 1abff30..06e492c 100644
--- a/src/examples/org/apache/hama/examples/RandomMatrix.java
+++ b/src/examples/org/apache/hama/examples/RandomMatrix.java
@@ -1,43 +1,43 @@
/**
* Copyright 20... | true | true | public static void main(String[] args) throws IOException {
if (args.length < 3) {
System.out
.println("add [-m maps] [-r reduces] <rows> <columns> <matrix_name>");
System.exit(-1);
} else {
parseArgs(args);
}
int row = Integer.parseInt(ARGS.get(0));
int column = Inte... | public static void main(String[] args) throws IOException {
if (args.length < 3) {
System.out
.println("random [-m maps] [-r reduces] <rows> <columns> <matrix_name>");
System.exit(-1);
} else {
parseArgs(args);
}
int row = Integer.parseInt(ARGS.get(0));
int column = I... |
diff --git a/LogicMail/src/org/logicprobe/LogicMail/mail/NetworkMailStore.java b/LogicMail/src/org/logicprobe/LogicMail/mail/NetworkMailStore.java
index 288d28e..505523f 100644
--- a/LogicMail/src/org/logicprobe/LogicMail/mail/NetworkMailStore.java
+++ b/LogicMail/src/org/logicprobe/LogicMail/mail/NetworkMailStore.java... | true | true | public MessageFlagChangeRequest createMessageFlagChangeRequest(
MessageToken messageToken,
MessageFlags messageFlags,
boolean addOrRemove) {
if(messageFlags.isDeleted()) {
if(!addOrRemove && !client.hasUndelete()) {
throw new UnsupportedOperationException();
... | public MessageFlagChangeRequest createMessageFlagChangeRequest(
MessageToken messageToken,
MessageFlags messageFlags,
boolean addOrRemove) {
if(messageFlags.isDeleted()) {
if(!addOrRemove && !client.hasUndelete()) {
throw new UnsupportedOperationException();
... |
diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/PatternKeywordMarkerFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/PatternKeywordMarkerFilter.java
index 886f19f2d5..2e055bbdbb 100644
--- a/lucene/analysis/common/src/java/org/apache/lucene/ana... | true | true | protected PatternKeywordMarkerFilter(TokenStream in, Pattern pattern) {
super(in);
this.matcher = pattern.matcher("");
}
| public PatternKeywordMarkerFilter(TokenStream in, Pattern pattern) {
super(in);
this.matcher = pattern.matcher("");
}
|
diff --git a/src/me/lucariatias/plugins/kaisocraft/PartyCommand.java b/src/me/lucariatias/plugins/kaisocraft/PartyCommand.java
index 9603aac..d0c87bd 100644
--- a/src/me/lucariatias/plugins/kaisocraft/PartyCommand.java
+++ b/src/me/lucariatias/plugins/kaisocraft/PartyCommand.java
@@ -1,181 +1,183 @@
package me.lucaria... | true | true | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (cmd.getName().equalsIgnoreCase("party")) {
if (args.length > 0) {
sender.sendMessage(ChatColor.YELLOW + "==" + ChatColor.BLUE + "/" + cmd.getName().toLowerCase() + " " + ChatColor.DARK_BLUE + args[0].toLowerCase() +... | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (cmd.getName().equalsIgnoreCase("party")) {
if (args.length > 0) {
sender.sendMessage(ChatColor.YELLOW + "==" + ChatColor.BLUE + "/" + cmd.getName().toLowerCase() + " " + ChatColor.DARK_BLUE + args[0].toLowerCase() +... |
diff --git a/rt/libcore/luni/src/main/java/java/net/PlainSocketImpl.java b/rt/libcore/luni/src/main/java/java/net/PlainSocketImpl.java
index 68ba67e42..e462497d6 100644
--- a/rt/libcore/luni/src/main/java/java/net/PlainSocketImpl.java
+++ b/rt/libcore/luni/src/main/java/java/net/PlainSocketImpl.java
@@ -1,552 +1,554 @@... | false | true | protected void accept(SocketImpl newImpl) throws IOException {
if (usingSocks()) {
((PlainSocketImpl) newImpl).socksBind();
((PlainSocketImpl) newImpl).socksAccept();
return;
}
try {
// RovmVM note: accept() on Darwin does not honor the SO_RCV... | protected void accept(SocketImpl newImpl) throws IOException {
if (usingSocks()) {
((PlainSocketImpl) newImpl).socksBind();
((PlainSocketImpl) newImpl).socksAccept();
return;
}
try {
// RovmVM note: accept() on Darwin does not honor the SO_RCV... |
diff --git a/plugins/org.eclipse.emf.mwe2.launch/src/org/eclipse/emf/mwe2/launch/runtime/Mwe2Runner.java b/plugins/org.eclipse.emf.mwe2.launch/src/org/eclipse/emf/mwe2/launch/runtime/Mwe2Runner.java
index adacda0c..1803cfbb 100644
--- a/plugins/org.eclipse.emf.mwe2.launch/src/org/eclipse/emf/mwe2/launch/runtime/Mwe2Run... | false | true | public void run(String moduleName, Map<String, String> params) {
Module module = findModule(moduleName);
if (module == null)
throw new IllegalArgumentException("Couldn't find module with name '" + moduleName + "'.");
EcoreUtil.resolveAll(module);
if (!module.eResource().getErrors().isEmpty()) {
throw new... | public void run(String moduleName, Map<String, String> params) {
Module module = findModule(moduleName);
if (module == null)
throw new IllegalArgumentException("Couldn't find module with name '" + moduleName + "'.");
EcoreUtil.resolveAll(module);
if (!module.eResource().getErrors().isEmpty()) {
throw new... |
diff --git a/src/synclogic/ClientSynchronizationUnit.java b/src/synclogic/ClientSynchronizationUnit.java
index 430e2c1..3b291c8 100644
--- a/src/synclogic/ClientSynchronizationUnit.java
+++ b/src/synclogic/ClientSynchronizationUnit.java
@@ -1,316 +1,317 @@
package synclogic;
import gui.GUILoggInInfo;
import java... | true | true | public List<ErrorMessage> update() throws ConnectException{
this.updateRequest = new UpdateRequest();
List<ErrorMessage> errorMessages = new ArrayList<ErrorMessage>();
try {
addToSendQueue(XmlSerializerX.toXml(this.updateRequest, SaveableClass.UpdateRequest));
UpdateRequest respons = (UpdateRequest) XmlSer... | public List<ErrorMessage> update() throws ConnectException{
this.updateRequest = new UpdateRequest();
List<ErrorMessage> errorMessages = new ArrayList<ErrorMessage>();
try {
addToSendQueue(XmlSerializerX.toXml(this.updateRequest, SaveableClass.UpdateRequest));
UpdateRequest respons = (UpdateRequest) XmlSer... |
diff --git a/stripes/src/net/sourceforge/stripes/controller/multipart/DefaultMultipartWrapperFactory.java b/stripes/src/net/sourceforge/stripes/controller/multipart/DefaultMultipartWrapperFactory.java
index 6458278..bc91e6d 100644
--- a/stripes/src/net/sourceforge/stripes/controller/multipart/DefaultMultipartWrapperFac... | true | true | public void init(Configuration config) throws Exception {
this.configuration = config;
// Determine which class we're using
this.multipartClass = config.getBootstrapPropertyResolver().getClassProperty(WRAPPER_CLASS_NAME, MultipartWrapper.class);
if (this.multipartClass == null... | public void init(Configuration config) throws Exception {
this.configuration = config;
// Determine which class we're using
this.multipartClass = config.getBootstrapPropertyResolver().getClassProperty(WRAPPER_CLASS_NAME, MultipartWrapper.class);
if (this.multipartClass == null... |
diff --git a/org.eclipse.mylyn.wikitext.ui/src/org/eclipse/mylyn/internal/wikitext/ui/WikiTextUiPlugin.java b/org.eclipse.mylyn.wikitext.ui/src/org/eclipse/mylyn/internal/wikitext/ui/WikiTextUiPlugin.java
index 4f2ad7c8..570cc5f6 100644
--- a/org.eclipse.mylyn.wikitext.ui/src/org/eclipse/mylyn/internal/wikitext/ui/Wiki... | false | true | public Map<String, Templates> getTemplates() {
if (templates == null) {
Map<String, Templates> templates = new HashMap<String, Templates>();
IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(getPluginId(),
EXTENSION_POINT_CONTENT_ASSIST);
if (extensionPoint != null) {
... | public Map<String, Templates> getTemplates() {
if (templates == null) {
Map<String, Templates> templates = new HashMap<String, Templates>();
IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(getPluginId(),
EXTENSION_POINT_CONTENT_ASSIST);
if (extensionPoint != null) {
... |
diff --git a/src/com/hyperactivity/android_app/activities/MainActivity.java b/src/com/hyperactivity/android_app/activities/MainActivity.java
index 468fead..dcaadc2 100644
--- a/src/com/hyperactivity/android_app/activities/MainActivity.java
+++ b/src/com/hyperactivity/android_app/activities/MainActivity.java
@@ -1,86 +1... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
View view = findViewById(R.id.forum_categories_surface_view);
scrollPicker = (ScrollPicker) view;
scrollPicker.getThread().setState(
... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
View view = findViewById(R.id.forum_categories_surface_view);
scrollPicker = (ScrollPicker) view;
scrollPicker.getThread().setState(
... |
diff --git a/src/main/java/ee/ignorance/transformiceapi/event/EventService.java b/src/main/java/ee/ignorance/transformiceapi/event/EventService.java
index 6da62fb..6c0ddf1 100644
--- a/src/main/java/ee/ignorance/transformiceapi/event/EventService.java
+++ b/src/main/java/ee/ignorance/transformiceapi/event/EventService.... | true | true | public void notifyListeners(Event e) {
for (EventListener listener : listeners) {
if (listener.matches(e)) {
listener.actionPerformed(e);
}
}
}
| public synchronized void notifyListeners(Event e) {
for (EventListener listener : listeners) {
if (listener.matches(e)) {
listener.actionPerformed(e);
}
}
}
|
diff --git a/src/com/android/mms/data/Contact.java b/src/com/android/mms/data/Contact.java
index f1c6bc1..2d725f0 100644
--- a/src/com/android/mms/data/Contact.java
+++ b/src/com/android/mms/data/Contact.java
@@ -1,488 +1,490 @@
package com.android.mms.data;
import java.util.ArrayList;
import java.util.HashSet;
i... | true | true | private static void updateContact(final Contact c) {
if (c == null) {
return;
}
ContactInfoCache cache = ContactInfoCache.getInstance();
ContactInfoCache.CacheEntry entry = cache.getContactInfo(c.mNumber);
synchronized (Cache.getInstance()) {
if (cont... | private static void updateContact(final Contact c) {
if (c == null) {
return;
}
ContactInfoCache cache = ContactInfoCache.getInstance();
ContactInfoCache.CacheEntry entry = cache.getContactInfo(c.mNumber);
synchronized (Cache.getInstance()) {
if (cont... |
diff --git a/ace/component/src/org/icefaces/ace/component/datetimeentry/DateTimeEntryRenderer.java b/ace/component/src/org/icefaces/ace/component/datetimeentry/DateTimeEntryRenderer.java
index c5553bdb9..51a0b0532 100644
--- a/ace/component/src/org/icefaces/ace/component/datetimeentry/DateTimeEntryRenderer.java
+++ b/a... | true | true | protected void encodeScript(FacesContext context, DateTimeEntry dateTimeEntry, String value, Map<String, Object> labelAttributes) throws IOException {
ResponseWriter writer = context.getResponseWriter();
String clientId = dateTimeEntry.getClientId(context);
writer.startElement("scrip... | protected void encodeScript(FacesContext context, DateTimeEntry dateTimeEntry, String value, Map<String, Object> labelAttributes) throws IOException {
ResponseWriter writer = context.getResponseWriter();
String clientId = dateTimeEntry.getClientId(context);
writer.startElement("scrip... |
diff --git a/src/main/java/com/treasure_data/bulk_import/writer/FileWriter.java b/src/main/java/com/treasure_data/bulk_import/writer/FileWriter.java
index fb2a244..31a330c 100644
--- a/src/main/java/com/treasure_data/bulk_import/writer/FileWriter.java
+++ b/src/main/java/com/treasure_data/bulk_import/writer/FileWriter.... | false | true | public void next(Row row) throws PreparePartsException {
int size = row.getValues().length;
// begin writing
if (row.needAdditionalTimeColumn()) {
// if the row doesn't have 'time' column, new 'time' column needs
// to be appended to it.
writeBeginRow(siz... | public void next(Row row) throws PreparePartsException {
int size = row.getValues().length;
// begin writing
if (row.needAdditionalTimeColumn()) {
// if the row doesn't have 'time' column, new 'time' column needs
// to be appended to it.
writeBeginRow(siz... |
diff --git a/src/main/java/org/spoutcraft/launcher/technic/skin/LauncherOptions.java b/src/main/java/org/spoutcraft/launcher/technic/skin/LauncherOptions.java
index d1f0a31..1589260 100644
--- a/src/main/java/org/spoutcraft/launcher/technic/skin/LauncherOptions.java
+++ b/src/main/java/org/spoutcraft/launcher/technic/s... | true | true | private void initComponents() {
Font minecraft = MetroLoginFrame.getMinecraftFont(12);
background = new JLabel();
background.setBounds(0,0, FRAME_WIDTH, FRAME_HEIGHT);
MetroLoginFrame.setIcon(background, "optionsBackground.png", background.getWidth(), background.getHeight());
ImageButton optionsQuit = ne... | private void initComponents() {
Font minecraft = MetroLoginFrame.getMinecraftFont(12);
background = new JLabel();
background.setBounds(0,0, FRAME_WIDTH, FRAME_HEIGHT);
MetroLoginFrame.setIcon(background, "optionsBackground.png", background.getWidth(), background.getHeight());
ImageButton optionsQuit = ne... |
diff --git a/ev/util/debian/Main.java b/ev/util/debian/Main.java
index 516590b4..33c5e310 100644
--- a/ev/util/debian/Main.java
+++ b/ev/util/debian/Main.java
@@ -1,480 +1,482 @@
/***
* Copyright (C) 2010 Johan Henriksson
* This code is under the Endrov / BSD license. See www.endrov.net
* for the full text and h... | true | true | public static void main(String[] args)
{
try
{
File zip=null;
if(args.length==1)
zip=new File(args[0]);
else
{
System.out.println("Argument: zip-file of release");
System.exit(1);
}
File dPkg=new File("/tmp/endrov");
File dUsr=new File(dPkg,"usr");
//File dEtc=n... | public static void main(String[] args)
{
try
{
File zip=null;
if(args.length==1)
zip=new File(args[0]);
else
{
System.out.println("Argument: zip-file of release");
System.exit(1);
}
File dPkg=new File("/tmp/endrov");
File dUsr=new File(dPkg,"usr");
//File dEtc=n... |
diff --git a/src/test/java/com/youdevise/test/narrative/GivenTest.java b/src/test/java/com/youdevise/test/narrative/GivenTest.java
index e41626d..73ef11d 100644
--- a/src/test/java/com/youdevise/test/narrative/GivenTest.java
+++ b/src/test/java/com/youdevise/test/narrative/GivenTest.java
@@ -1,44 +1,44 @@
package com.... | true | true | @Test public void
canPerformanManyActionsInARow() {
final StringActor actor = context.mock(StringActor.class);
final Action<String, StringActor> action = context.mock(Action.class, "first action");
final Action<String, StringActor> otherAction = context.mock(Action.class, "second action"... | @Test public void
canPerformManyActionsInARow() {
final StringActor actor = context.mock(StringActor.class);
final Action<String, StringActor> action = context.mock(Action.class, "first action");
final Action<String, StringActor> otherAction = context.mock(Action.class, "second action");... |
diff --git a/bank-logic/src/main/java/com/midtrans/bank/logic/transaction/FindTransaction.java b/bank-logic/src/main/java/com/midtrans/bank/logic/transaction/FindTransaction.java
index aae6339..de4ba0b 100644
--- a/bank-logic/src/main/java/com/midtrans/bank/logic/transaction/FindTransaction.java
+++ b/bank-logic/src/ma... | false | true | protected int doPrepare(long id, Context ctx) throws Exception {
DB db = openDB(ctx);
dao = new TransactionDao(db);
String cardNumber = ctx.getString(CARD_NUMBER);
Long amount = (Long) ctx.get(AMOUNT);
String cardExpire = ctx.getString(CARD_EXPIRE);
Terminal termina... | protected int doPrepare(long id, Context ctx) throws Exception {
DB db = openDB(ctx);
dao = new TransactionDao(db);
String cardNumber = ctx.getString(CARD_NUMBER);
Long amount = (Long) ctx.get(AMOUNT);
String cardExpire = ctx.getString(CARD_EXPIRE);
Terminal termina... |
diff --git a/core/plugins/org.eclipse.dltk.core/model/org/eclipse/dltk/core/ScriptContentDescriber.java b/core/plugins/org.eclipse.dltk.core/model/org/eclipse/dltk/core/ScriptContentDescriber.java
index c8b295b55..12324df9c 100644
--- a/core/plugins/org.eclipse.dltk.core/model/org/eclipse/dltk/core/ScriptContentDescrib... | false | true | public static boolean checkPatterns(Reader stream,
Pattern[] headerPatterns, Pattern[] footerPatterns) {
BufferedReader reader = new BufferedReader(stream);
StringBuffer buffer = new StringBuffer();
while (true) {
try {
String line = reader.readLine();
buffer.append(line).append("\n"); //$NON-NLS-1... | public static boolean checkPatterns(Reader stream,
Pattern[] headerPatterns, Pattern[] footerPatterns) {
BufferedReader reader = new BufferedReader(stream);
StringBuffer buffer = new StringBuffer();
char buff[] = new char[8096];
while (true) {
try {
int len = reader.read(buff);
if (len != -1) {
... |
diff --git a/netbout/netbout-rest/src/main/java/com/netbout/rest/auth/NbRs.java b/netbout/netbout-rest/src/main/java/com/netbout/rest/auth/NbRs.java
index f1228ccfc..ff32ab3e2 100644
--- a/netbout/netbout-rest/src/main/java/com/netbout/rest/auth/NbRs.java
+++ b/netbout/netbout-rest/src/main/java/com/netbout/rest/auth/N... | true | true | private Identity authenticate(final Urn iname, final String secret) {
if ((iname == null) || (secret == null)) {
throw new LoginRequiredException(
this,
"Both 'identity' and 'secret' query params are mandatory"
);
}
if (!"netbout".equal... | private Identity authenticate(final Urn iname, final String secret) {
if ((iname == null) || (secret == null)) {
throw new LoginRequiredException(
this,
"Both 'identity' and 'secret' query params are mandatory"
);
}
if (!"netbout".equal... |
diff --git a/library/src/de/passsy/holocircularprogressbar/HoloCircularProgressBar.java b/library/src/de/passsy/holocircularprogressbar/HoloCircularProgressBar.java
index d24993e..603da16 100644
--- a/library/src/de/passsy/holocircularprogressbar/HoloCircularProgressBar.java
+++ b/library/src/de/passsy/holocircularprog... | true | true | public HoloCircularProgressBar(final Context context, final AttributeSet attrs, final int defStyle) {
super(context, attrs, defStyle);
// load the styled attributes and set their properties
final TypedArray attributes = context.obtainStyledAttributes(attrs, R.styleable.HoloCircularProgressBar,
defStyle, 0);... | public HoloCircularProgressBar(final Context context, final AttributeSet attrs, final int defStyle) {
super(context, attrs, defStyle);
// load the styled attributes and set their properties
final TypedArray attributes = context.obtainStyledAttributes(attrs, R.styleable.HoloCircularProgressBar,
defStyle, 0);... |
diff --git a/src/gov/nih/nci/rembrandt/web/helper/RembrandtImageFileHandler.java b/src/gov/nih/nci/rembrandt/web/helper/RembrandtImageFileHandler.java
index 10bfdfc8..6b3d583a 100755
--- a/src/gov/nih/nci/rembrandt/web/helper/RembrandtImageFileHandler.java
+++ b/src/gov/nih/nci/rembrandt/web/helper/RembrandtImageFileHa... | true | true | public RembrandtImageFileHandler(String userSessionId,String imageTypeExtension, int width, int height) {
if(tempDir.equals("")) {
/**
* TOTAL HACK! Since I am not sure how to handle dynamic
* image content when running in a compressed war I am grabbing
* the temp directory from JBoss and walking thro... | public RembrandtImageFileHandler(String userSessionId,String imageTypeExtension, int width, int height) {
if(tempDir.equals("")) {
/**
* TOTAL HACK! Since I am not sure how to handle dynamic
* image content when running in a compressed war I am grabbing
* the temp directory from JBoss and walking thro... |
diff --git a/org.caleydo.view.tourguide/src/org/caleydo/view/tourguide/internal/stratomex/AddWizardElement.java b/org.caleydo.view.tourguide/src/org/caleydo/view/tourguide/internal/stratomex/AddWizardElement.java
index 2c06b8b23..bf32544e3 100644
--- a/org.caleydo.view.tourguide/src/org/caleydo/view/tourguide/internal/... | false | true | protected void renderContent(GL2 gl) {
final GLGraphics g = new GLGraphics(gl, contextLocal, false, 0);
final float w = x;
final float h = y;
final PixelGLConverter converter = view.getPixelGLConverter();
final float h_header = converter.getGLHeightForPixelHeight(100);
final float gap = h_header * 0.1f;
... | protected void renderContent(GL2 gl) {
final GLGraphics g = new GLGraphics(gl, contextLocal, false, 0);
final float w = x;
final float h = y;
final PixelGLConverter converter = view.getPixelGLConverter();
final float h_header = converter.getGLHeightForPixelHeight(100);
final float gap = h_header * 0.1f;
... |
diff --git a/grails/src/web/org/codehaus/groovy/grails/web/mapping/RegexUrlMapping.java b/grails/src/web/org/codehaus/groovy/grails/web/mapping/RegexUrlMapping.java
index 5910343e1..483402b04 100644
--- a/grails/src/web/org/codehaus/groovy/grails/web/mapping/RegexUrlMapping.java
+++ b/grails/src/web/org/codehaus/groovy... | true | true | private String createURLInternal(Map parameterValues, String encoding, boolean includeContextPath) {
if (encoding == null) encoding = "utf-8";
String contextPath = "";
if (includeContextPath) {
GrailsWebRequest webRequest = (GrailsWebRequest) RequestContextHolder.getRequestAttr... | private String createURLInternal(Map parameterValues, String encoding, boolean includeContextPath) {
if (encoding == null) encoding = "utf-8";
String contextPath = "";
if (includeContextPath) {
GrailsWebRequest webRequest = (GrailsWebRequest) RequestContextHolder.getRequestAttr... |
diff --git a/sal-crowd-plugin/src/main/java/com/atlassian/sal/crowd/lifecycle/ApplicationReadyListener.java b/sal-crowd-plugin/src/main/java/com/atlassian/sal/crowd/lifecycle/ApplicationReadyListener.java
index b00261b6..b56eec5f 100644
--- a/sal-crowd-plugin/src/main/java/com/atlassian/sal/crowd/lifecycle/ApplicationR... | true | true | public void handleEvent(Event event)
{
if (event instanceof ApplicationStartedEvent)
{
//final LifecycleManager lifecycleManager = ComponentLocator.getComponent(LifecycleManager.class);
//lifecycleManager.start();
}
}
| public void handleEvent(Event event)
{
if (event instanceof ApplicationStartedEvent)
{
final LifecycleManager lifecycleManager = ComponentLocator.getComponent(LifecycleManager.class);
lifecycleManager.start();
}
}
|
diff --git a/src/main/java/org/encog/workbench/process/EncogAnalystWizard.java b/src/main/java/org/encog/workbench/process/EncogAnalystWizard.java
index 4b68b23f..9dec4b10 100644
--- a/src/main/java/org/encog/workbench/process/EncogAnalystWizard.java
+++ b/src/main/java/org/encog/workbench/process/EncogAnalystWizard.ja... | true | true | public static void createEncogAnalyst(File csvFile) {
boolean refresh = true;
if (csvFile!=null && !EncogWorkBench.getInstance().getMainWindow().getTabManager()
.queryViews(csvFile))
return;
AnalystWizardDialog dialog = new AnalystWizardDialog(EncogWorkBench
.getInstance().getMainWindow());
if (cs... | public static void createEncogAnalyst(File csvFile) {
boolean refresh = true;
if (csvFile!=null && !EncogWorkBench.getInstance().getMainWindow().getTabManager()
.queryViews(csvFile))
return;
AnalystWizardDialog dialog = new AnalystWizardDialog(EncogWorkBench
.getInstance().getMainWindow());
if (cs... |
diff --git a/JsTestDriver/src/com/google/jstestdriver/browser/BrowserManagedRunner.java b/JsTestDriver/src/com/google/jstestdriver/browser/BrowserManagedRunner.java
index c4fa146..5135d5b 100644
--- a/JsTestDriver/src/com/google/jstestdriver/browser/BrowserManagedRunner.java
+++ b/JsTestDriver/src/com/google/jstestdriv... | true | true | public RunData call() throws Exception {
final String url = String.format("%s/capture?id=%s", serverAddress, browserId);
stopWatch.start("browser start %s", runner);
runner.startBrowser(url);
String sessionId = null;
try {
long timeOut = TimeUnit.MILLISECONDS.convert(runner.getTimeout(), Tim... | public RunData call() throws Exception {
final String url = String.format("%s/capture/id/%s", serverAddress, browserId);
stopWatch.start("browser start %s", runner);
runner.startBrowser(url);
String sessionId = null;
try {
long timeOut = TimeUnit.MILLISECONDS.convert(runner.getTimeout(), Tim... |
diff --git a/shrinksafe/src/org/dojotoolkit/shrinksafe/Compressor.java b/shrinksafe/src/org/dojotoolkit/shrinksafe/Compressor.java
index 58a7090..eb565e0 100644
--- a/shrinksafe/src/org/dojotoolkit/shrinksafe/Compressor.java
+++ b/shrinksafe/src/org/dojotoolkit/shrinksafe/Compressor.java
@@ -1,1009 +1,1013 @@
/*
* V... | true | true | private static String compress(String encodedSource,
int flags,
UintMap properties,
ScriptOrFnNode parseTree,
boolean escapeUnicode,
String stripConsole,
... | private static String compress(String encodedSource,
int flags,
UintMap properties,
ScriptOrFnNode parseTree,
boolean escapeUnicode,
String stripConsole,
... |
diff --git a/samples/trivialdrive/src/org/onepf/trivialdrive/MainActivity.java b/samples/trivialdrive/src/org/onepf/trivialdrive/MainActivity.java
index 533680c..68319f6 100644
--- a/samples/trivialdrive/src/org/onepf/trivialdrive/MainActivity.java
+++ b/samples/trivialdrive/src/org/onepf/trivialdrive/MainActivity.java... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// load game data
loadData();
/* base64EncodedPublicKey should be YOUR APPLICATION'S PUBLIC KEY
* (that you got from the Google Play develo... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// load game data
loadData();
/* base64EncodedPublicKey should be YOUR APPLICATION'S PUBLIC KEY
* (that you got from the Google Play develo... |
diff --git a/src/no/digipost/android/api/ErrorHandling.java b/src/no/digipost/android/api/ErrorHandling.java
index 36b7a027..b02547f6 100644
--- a/src/no/digipost/android/api/ErrorHandling.java
+++ b/src/no/digipost/android/api/ErrorHandling.java
@@ -1,41 +1,41 @@
/**
* Copyright (C) Posten Norge AS
*
* License... | true | true | public static String LogError(final int error_type, final String error_message) {
switch (error_type) {
case ERROR_SERVER:
return "";
case ERROR_CLIENT:
return "";
case ERROR_DEVICE:
return "";
case ERROR_GENERAL:
return "";
default:
return null;
}
}
| public static String LogError(final int error_type, final String error_message) {
switch (error_type) {
case ERROR_SERVER:
return "En feil oppstod under oppkoblingen mot Digipost.";
case ERROR_CLIENT:
return "";
case ERROR_DEVICE:
return "";
case ERROR_GENERAL:
return "";
default:
return nu... |
diff --git a/src/be/ibridge/kettle/job/entry/ftp/JobEntryFTP.java b/src/be/ibridge/kettle/job/entry/ftp/JobEntryFTP.java
index 173aa541..abbc293e 100644
--- a/src/be/ibridge/kettle/job/entry/ftp/JobEntryFTP.java
+++ b/src/be/ibridge/kettle/job/entry/ftp/JobEntryFTP.java
@@ -1,547 +1,548 @@
/**************************... | false | true | public Result execute(Result prev_result, int nr, Repository rep, Job parentJob)
{
LogWriter log = LogWriter.getInstance();
log4j.info("Started FTP job to "+serverName);
Result result = new Result(nr);
result.setResult( false );
long filesRetrieved = 0;
log.logDetailed(toString(), "Start of FTP j... | public Result execute(Result prev_result, int nr, Repository rep, Job parentJob)
{
LogWriter log = LogWriter.getInstance();
log4j.info("Started FTP job to "+serverName);
Result result = new Result(nr);
result.setResult( false );
long filesRetrieved = 0;
log.logDetailed(toString(), "Start of FTP j... |
diff --git a/src/Classe/Vehicule.java b/src/Classe/Vehicule.java
index b18d826..205591c 100644
--- a/src/Classe/Vehicule.java
+++ b/src/Classe/Vehicule.java
@@ -1,186 +1,186 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Classe;
import Classe.Strat... | true | true | public void AvancerTemps(ArrayList<Noeud> systemeRoutier, double vitesse)
{
double rapportDistance;
double DistanceSegment;
//Verifie si véhicule est sur un noeud
if(m_noeudCourant.EstMemePosition(m_Position))
{
if(m_noeudCourant.ContientUrgenceDeclen... | public void AvancerTemps(ArrayList<Noeud> systemeRoutier, double vitesse)
{
double rapportDistance;
double DistanceSegment;
//Verifie si véhicule est sur un noeud
if(m_noeudCourant.EstMemePosition(m_Position))
{
if(m_noeudCourant.ContientUrgenceDeclen... |
diff --git a/pmd/src/test/java/net/sourceforge/pmd/lang/java/rule/unnecessary/UnnecessaryRulesTest.java b/pmd/src/test/java/net/sourceforge/pmd/lang/java/rule/unnecessary/UnnecessaryRulesTest.java
index e378e8700..10e5707d5 100644
--- a/pmd/src/test/java/net/sourceforge/pmd/lang/java/rule/unnecessary/UnnecessaryRulesTe... | true | true | public void setUp() {
addRule(RULESET, "UnnecessaryConversionTemporary");
addRule(RULESET, "UnnecessaryReturn");
addRule(RULESET, "UnnecessaryFinalModifier");
addRule(RULESET, "UnusedNullCheckInEquals");
addRule(RULESET, "UselessOverridingMethod");
addRule(RULESET, "UselessO... | public void setUp() {
addRule(RULESET, "UnnecessaryConversionTemporary");
addRule(RULESET, "UnnecessaryReturn");
addRule(RULESET, "UnnecessaryFinalModifier");
addRule(RULESET, "UnusedNullCheckInEquals");
addRule(RULESET, "UselessOverridingMethod");
addRule(RULESET, "U... |
diff --git a/src/com/minecraftserver/pvptoolkit/PVPSpawnCampProtection.java b/src/com/minecraftserver/pvptoolkit/PVPSpawnCampProtection.java
index f58872f..55005bb 100644
--- a/src/com/minecraftserver/pvptoolkit/PVPSpawnCampProtection.java
+++ b/src/com/minecraftserver/pvptoolkit/PVPSpawnCampProtection.java
@@ -1,96 +1... | true | true | public void onPlayerRespawn(PlayerRespawnEvent event) {
if (protectedPlayers.containsKey(event.getPlayer().getName()))
protectedPlayers.remove(event.getPlayer().getName());
if (event.getPlayer().hasPermission("pvptoolkit.spawnprot")) {
Location home = event.getRespawnLocation... | public void onPlayerRespawn(PlayerRespawnEvent event) {
if (protectedPlayers.containsKey(event.getPlayer().getName()))
protectedPlayers.remove(event.getPlayer().getName());
if (event.getPlayer().hasPermission("pvptoolkit.spawnprot")) {
Location home = event.getRespawnLocation... |
diff --git a/continuum-builder/src/main/java/org/apache/continuum/builder/distributed/executor/DistributedBuildProjectTaskExecutor.java b/continuum-builder/src/main/java/org/apache/continuum/builder/distributed/executor/DistributedBuildProjectTaskExecutor.java
index f3e473b40..696200ae9 100644
--- a/continuum-builder/s... | false | true | private List<Map<String, Object>> initializeBuildContext( Map<Integer, Integer> projectsAndBuildDefinitions,
BuildTrigger buildTrigger, String scmRootAddress, int scmRootId )
throws ContinuumException
{
List<Map<String, Object>> buildContext = new Array... | private List<Map<String, Object>> initializeBuildContext( Map<Integer, Integer> projectsAndBuildDefinitions,
BuildTrigger buildTrigger, String scmRootAddress, int scmRootId )
throws ContinuumException
{
List<Map<String, Object>> buildContext = new Array... |
diff --git a/src/java/org/codehaus/groovy/grails/web/servlet/GrailsDispatcherServlet.java b/src/java/org/codehaus/groovy/grails/web/servlet/GrailsDispatcherServlet.java
index 04f2cd57b..ba8c7906a 100644
--- a/src/java/org/codehaus/groovy/grails/web/servlet/GrailsDispatcherServlet.java
+++ b/src/java/org/codehaus/groovy... | false | true | protected void doDispatch(final HttpServletRequest request, HttpServletResponse response) throws Exception {
request.setAttribute(LOCALE_RESOLVER_ATTRIBUTE, localeResolver);
HttpServletRequest processedRequest = request;
HandlerExecutionChain mappedHandler = null;
int interceptorIn... | protected void doDispatch(final HttpServletRequest request, HttpServletResponse response) throws Exception {
request.setAttribute(LOCALE_RESOLVER_ATTRIBUTE, localeResolver);
HttpServletRequest processedRequest = request;
HandlerExecutionChain mappedHandler = null;
int interceptorIn... |
diff --git a/lib/java/src/protocol/TBinaryProtocol.java b/lib/java/src/protocol/TBinaryProtocol.java
index 2e487cd..b9167d2 100644
--- a/lib/java/src/protocol/TBinaryProtocol.java
+++ b/lib/java/src/protocol/TBinaryProtocol.java
@@ -1,339 +1,339 @@
// Copyright (c) 2006- Facebook
// Distributed under the Thrift Softw... | true | true | public TMessage readMessageBegin() throws TException {
TMessage message = new TMessage();
int size = readI32();
if (size < 0) {
int version = size & VERSION_MASK;
if (version != VERSION_1) {
throw new TProtocolException(TProtocolException.BAD_VERSION, "Bad version in readMessageBegin"... | public TMessage readMessageBegin() throws TException {
TMessage message = new TMessage();
int size = readI32();
if (size < 0) {
int version = size & VERSION_MASK;
if (version != VERSION_1) {
throw new TProtocolException(TProtocolException.BAD_VERSION, "Bad version in readMessageBegin"... |
diff --git a/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmith/geppetto/pp/dsl/linking/PPFinder.java b/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmith/geppetto/pp/dsl/linking/PPFinder.java
index 194e91da..aa860a9f 100644
--- a/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmith/geppetto/pp/dsl/linking/PPFinder.java
+++... | true | true | private SearchResult findExternal(EObject scopeDetermeningObject, QualifiedName fqn,
PPImportedNamesAdapter importedNames, SearchStrategy matchingStrategy, EClass... eClasses) {
if(scopeDetermeningObject == null)
throw new IllegalArgumentException("scope determening object is null");
if(fqn == null)
throw... | private SearchResult findExternal(EObject scopeDetermeningObject, QualifiedName fqn,
PPImportedNamesAdapter importedNames, SearchStrategy matchingStrategy, EClass... eClasses) {
if(scopeDetermeningObject == null)
throw new IllegalArgumentException("scope determening object is null");
if(fqn == null)
throw... |
diff --git a/src/com/ziclix/python/sql/util/PyArgParser.java b/src/com/ziclix/python/sql/util/PyArgParser.java
index 77504b02..74451f4e 100644
--- a/src/com/ziclix/python/sql/util/PyArgParser.java
+++ b/src/com/ziclix/python/sql/util/PyArgParser.java
@@ -1,133 +1,133 @@
/*
* Jython Database Specification API 2.0
*... | true | true | protected void parse(PyObject[] args, String[] kws) {
// walk backwards through the kws and build the map
int largs = args.length;
if (kws != null) {
for (String kw: kws) {
keywords.put(kw, args[--largs]);
}
}
arguments = new PyObject... | protected void parse(PyObject[] args, String[] kws) {
// walk backwards through the kws and build the map
int largs = args.length;
if (kws != null) {
for (int i = kws.length - 1; i >= 0; i--) {
keywords.put(kws[i], args[--largs]);
}
}
... |
diff --git a/web/src/org/openmrs/module/simplelabentry/web/controller/LabEntryPortletController.java b/web/src/org/openmrs/module/simplelabentry/web/controller/LabEntryPortletController.java
index 4f0a773..9600c16 100644
--- a/web/src/org/openmrs/module/simplelabentry/web/controller/LabEntryPortletController.java
+++ b... | true | true | protected void populateModel(HttpServletRequest request, Map model) {
SimpleLabEntryService ls = (SimpleLabEntryService) Context.getService(SimpleLabEntryService.class);
// Supported LabTest Sets
model.put("labTestConcepts", ls.getSupportedLabSets());
// Retrieve Orders that Match Input Paramete... | protected void populateModel(HttpServletRequest request, Map model) {
SimpleLabEntryService ls = (SimpleLabEntryService) Context.getService(SimpleLabEntryService.class);
// Supported LabTest Sets
model.put("labTestConcepts", ls.getSupportedLabSets());
// Retrieve Orders that Match Input Paramete... |
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/CommitMessageBlock.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/CommitMessageBlock.java
index 86a2f5ce7..561b43f6f 100644
--- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/CommitMessageBlock.java
+++ b/gerrit-... | true | true | public void display(Change.Id changeId, Boolean starred, String commitMessage) {
starPanel.clear();
if (changeId != null && starred != null && Gerrit.isSignedIn()) {
StarredChanges.Icon star = StarredChanges.createIcon(changeId, starred);
star.setStyleName(Gerrit.RESOURCES.css().changeScreenStarI... | public void display(Change.Id changeId, Boolean starred, String commitMessage) {
starPanel.clear();
if (changeId != null && starred != null && Gerrit.isSignedIn()) {
StarredChanges.Icon star = StarredChanges.createIcon(changeId, starred);
star.setStyleName(Gerrit.RESOURCES.css().changeScreenStarI... |
diff --git a/LittleSmartTool2/src/littlesmarttool2/util/UpdateUtil.java b/LittleSmartTool2/src/littlesmarttool2/util/UpdateUtil.java
index 9616064..8b1b9aa 100644
--- a/LittleSmartTool2/src/littlesmarttool2/util/UpdateUtil.java
+++ b/LittleSmartTool2/src/littlesmarttool2/util/UpdateUtil.java
@@ -1,59 +1,61 @@
/*
* T... | false | true | public static boolean UpdateFirmware(String port)
{
boolean isWindows = System.getProperty("os.name").toLowerCase().startsWith("windows");
int result;
String prog = (isWindows) ? "avrdude-win/avrdude.exe" : "sudo avrdude-mac/avrdude";
String conf = (isWindows) ? "avrdude-win/avrd... | public static boolean UpdateFirmware(String port)
{
boolean isWindows = System.getProperty("os.name").toLowerCase().startsWith("windows");
int result;
String prog = (isWindows) ? "avrdude-win/avrdude.exe" : "./avrdude-mac/avrdude";
String conf = (isWindows) ? "avrdude-win/avrdude... |
diff --git a/app/src/com/halcyonwaves/apps/meinemediathek/fragments/MovieSearchFragment.java b/app/src/com/halcyonwaves/apps/meinemediathek/fragments/MovieSearchFragment.java
index 61b70ec..8ce6c7a 100644
--- a/app/src/com/halcyonwaves/apps/meinemediathek/fragments/MovieSearchFragment.java
+++ b/app/src/com/halcyonwave... | true | true | public View onCreateView( final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState ) {
// get the basic view layout from the application resources
final View v = inflater.inflate( R.layout.fragment_moviesearch, container );
// get the handles to the controls we have to access
... | public View onCreateView( final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState ) {
// get the basic view layout from the application resources
final View v = inflater.inflate( R.layout.fragment_moviesearch, container );
// get the handles to the controls we have to access
... |
diff --git a/src/main/java/com/turt2live/antishare/CommandHandler.java b/src/main/java/com/turt2live/antishare/CommandHandler.java
index 5a4956ef..dab844eb 100644
--- a/src/main/java/com/turt2live/antishare/CommandHandler.java
+++ b/src/main/java/com/turt2live/antishare/CommandHandler.java
@@ -1,589 +1,589 @@
/*******... | true | true | public boolean onCommand(final CommandSender sender, Command command, String label, String[] args) {
if (sender instanceof BlockCommandSender) {
return false;
}
if (command.getName().equalsIgnoreCase("AntiShare")) {
if (args.length > 0) {
if (args[0].e... | public boolean onCommand(final CommandSender sender, Command command, String label, String[] args) {
if (sender instanceof BlockCommandSender) {
return false;
}
if (command.getName().equalsIgnoreCase("AntiShare")) {
if (args.length > 0) {
if (args[0].e... |
diff --git a/src/main/java/servlet/CreateTaskServlet.java b/src/main/java/servlet/CreateTaskServlet.java
index dcdc54f..b16f405 100644
--- a/src/main/java/servlet/CreateTaskServlet.java
+++ b/src/main/java/servlet/CreateTaskServlet.java
@@ -1,112 +1,114 @@
package servlet;
import java.io.File;
import java.io.IOExc... | true | true | protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
//validate user credentials
HttpSession session = request.getSessi... | protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
//validate user credentials
HttpSession session = request.getSessi... |
diff --git a/cmd/src/iumfs/hdfs/HdfsFile.java b/cmd/src/iumfs/hdfs/HdfsFile.java
index d86e8aa..91cdbef 100644
--- a/cmd/src/iumfs/hdfs/HdfsFile.java
+++ b/cmd/src/iumfs/hdfs/HdfsFile.java
@@ -1,297 +1,299 @@
/*
* Copyright 2011 Kazuyoshi Aizawa
*
* Licensed under the Apache License, Version 2.0 (the "License");... | false | true | public long write(byte[] buf, long size, long offset) throws FileNotFoundException, IOException, NotSupportedException {
// ファイルの属性を得る
FileStatus fstat = fs.getFileStatus(new Path(getPath()));
long filesize = fstat.getLen();
/*
* この iumfscntl から受け取る write リクエストのオフセット値 は必ず P... | public long write(byte[] buf, long size, long offset) throws FileNotFoundException, IOException, NotSupportedException {
// ファイルの属性を得る
FileStatus fstat = fs.getFileStatus(new Path(getPath()));
long filesize = fstat.getLen();
int written = 0;
/*
* この iumfscntl から受け取る... |
diff --git a/herbal2/src/tw/edu/ntust/dt/herbal2/activity/AskActivity.java b/herbal2/src/tw/edu/ntust/dt/herbal2/activity/AskActivity.java
index f71828b..c2fc19f 100644
--- a/herbal2/src/tw/edu/ntust/dt/herbal2/activity/AskActivity.java
+++ b/herbal2/src/tw/edu/ntust/dt/herbal2/activity/AskActivity.java
@@ -1,156 +1,15... | true | true | public void clickImage(View view) {
Log.d("debug", "currentState:" + currentState);
int state;
if (view.getId() == R.id.ask_yes) {
state = edge.get(currentState).get(0);
} else {
state = edge.get(currentState).get(1);
}
currentState = state;
if (state < 8 * 3) {
askQ.setImageResource(ask[stat... | public void clickImage(View view) {
Log.d("debug", "currentState:" + currentState);
int state;
if (view.getId() == R.id.ask_yes) {
state = edge.get(currentState).get(0);
} else {
state = edge.get(currentState).get(1);
}
currentState = state;
if (state < 8 * 3) {
askQ.setImageResource(ask[stat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.