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/dspace/src/org/dspace/app/mediafilter/MediaFilter.java b/dspace/src/org/dspace/app/mediafilter/MediaFilter.java
index 74a071080..c2e28544b 100644
--- a/dspace/src/org/dspace/app/mediafilter/MediaFilter.java
+++ b/dspace/src/org/dspace/app/mediafilter/MediaFilter.java
@@ -1,161 +1,161 @@
/*
* MediaFilter... | false | true | public boolean processBitstream(Context c, Item item, Bitstream source, boolean overWrite)
throws Exception
{
// get bitstream filename, calculate destination filename
String newName = getFilteredName(source.getName());
Bitstream existingBitstream = null; // is there an exis... | public boolean processBitstream(Context c, Item item, Bitstream source, boolean overWrite)
throws Exception
{
// get bitstream filename, calculate destination filename
String newName = getFilteredName(source.getName());
Bitstream existingBitstream = null; // is there an exis... |
diff --git a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/TaskListFilterTest.java b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/TaskListFilterTest.java
index beb5133..990f080 100644
--- a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/TaskListFilterTest.java
+++ b... | false | true | protected void setUp() throws Exception {
super.setUp();
assertNotNull(view);
previousFilters = view.getFilters();
view.clearFilters(true);
manager.getTaskList().reset();
assertEquals(0, manager.getTaskList().getAllTasks().size());
taskCompleted = new Task("completed-1", "completed", true);
taskC... | protected void setUp() throws Exception {
super.setUp();
assertNotNull(view);
previousFilters = view.getFilters();
view.clearFilters(true);
manager.getTaskList().reset();
assertEquals(0, manager.getTaskList().getAllTasks().size());
taskCompleted = new Task("completed-1", "completed", true);
taskC... |
diff --git a/staging/testsuite/src/test/java/org/sonatype/nexus/maven/staging/it/multiprofile/MultiprofileFailureWithFailAtEndV2RoundtripIT.java b/staging/testsuite/src/test/java/org/sonatype/nexus/maven/staging/it/multiprofile/MultiprofileFailureWithFailAtEndV2RoundtripIT.java
index 3731d64..fee5cdf 100644
--- a/stagi... | true | true | public void roundtripWithM3MultiprofileProjectUsingM3Deploy()
throws VerificationException, IOException
{
final PreparedVerifier verifier =
createMavenVerifier(getClass().getSimpleName() + "_roundtripWithM3MultiprofileProjectUsingM3Deploy",
M3_VERSION, testData().resolveFile("preset-ne... | public void roundtripWithM3AndFae()
throws VerificationException, IOException
{
final PreparedVerifier verifier =
createMavenVerifier(getClass().getSimpleName() + "_roundtripWithM3MultiprofileProjectUsingM3Deploy",
M3_VERSION, testData().resolveFile("preset-nexus-maven-settings.xml"), ... |
diff --git a/TrendingTopics/src/edu/nyu/trendingtopics/storm/bolts/WriteToCassandra.java b/TrendingTopics/src/edu/nyu/trendingtopics/storm/bolts/WriteToCassandra.java
index 8f3f6d7..88f154a 100644
--- a/TrendingTopics/src/edu/nyu/trendingtopics/storm/bolts/WriteToCassandra.java
+++ b/TrendingTopics/src/edu/nyu/trending... | true | true | private void writeToCassandra(Map<String, Integer> counters){
Connector connector = new Connector();
try {
Client client = connector.connect();
//creates a sorted map based on the count.
ValueComparator comparator = new ValueComparator(counters);
SortedMap<String, Integer> sortedCounter... | private void writeToCassandra(Map<String, Integer> counters){
Connector connector = new Connector();
try {
Client client = connector.connect();
//creates a sorted map based on the count.
ValueComparator comparator = new ValueComparator(counters);
SortedMap<String, Integer> sortedCounter... |
diff --git a/src/screencapture/ScreenCaptureGui.java b/src/screencapture/ScreenCaptureGui.java
index bd75d55..be23640 100755
--- a/src/screencapture/ScreenCaptureGui.java
+++ b/src/screencapture/ScreenCaptureGui.java
@@ -1,82 +1,82 @@
package screencapture;
import java.awt.event.ActionEvent;
import java.awt.event.... | true | true | public void actionPerformed(ActionEvent e)
{
// If the record button is pressed
if(e.getSource() == record)
{
if(mt == null || !mt.isRunning())
{
mt = new MainThread();
this.setTitle(title + " - Recording");
record.s... | public void actionPerformed(ActionEvent e)
{
// If the record button is pressed
if(e.getSource() == record)
{
if(mt == null || !mt.isRunning())
{
mt = new MainThread();
this.setTitle(title + " - Recording");
record.s... |
diff --git a/OPAM_Server/src/com/loic/agenda/outil/NetAnt.java b/OPAM_Server/src/com/loic/agenda/outil/NetAnt.java
index 5b4050c..ece3d61 100644
--- a/OPAM_Server/src/com/loic/agenda/outil/NetAnt.java
+++ b/OPAM_Server/src/com/loic/agenda/outil/NetAnt.java
@@ -1,457 +1,466 @@
package com.loic.agenda.outil;
//CAS ... | false | true | private void chargerCours(Cours c) throws FailException{
//System.out.println(rspHtml);
String page = rspHtml.replaceAll("<[^>]+>", "_");
page = sansAccent(page);
page = page.replace(" ", " ");
page = page.replaceAll("_[ _:]+_", "_");
//System.out.println(page);
Pattern pattern;
if(page.cont... | private void chargerCours(Cours c) throws FailException{
//System.out.println(rspHtml);
String page = rspHtml.replaceAll("<[^>]+>", "_");
page = sansAccent(page);
page = page.replace(" ", " ");
page = page.replaceAll("_[ _:]+_", "_");
//System.out.println(page);
Pattern pattern;
if(page.cont... |
diff --git a/mpxg2-sysex/src/main/java/info/carlwithak/mpxg2/printing/ProgramPrinter.java b/mpxg2-sysex/src/main/java/info/carlwithak/mpxg2/printing/ProgramPrinter.java
index 5025f2af..a308abc9 100644
--- a/mpxg2-sysex/src/main/java/info/carlwithak/mpxg2/printing/ProgramPrinter.java
+++ b/mpxg2-sysex/src/main/java/info... | true | true | static String print(Program program) throws PrintException {
StringBuilder sb = new StringBuilder();
sb.append(program.getProgramName()).append("\n");
StringBuilder styleSB = new StringBuilder();
if (program.isAcoustic()) {
styleSB.append("Acoustic, ");
}
... | static String print(Program program) throws PrintException {
StringBuilder sb = new StringBuilder();
sb.append(program.getProgramName()).append("\n");
StringBuilder styleSB = new StringBuilder();
if (program.isAcoustic()) {
styleSB.append("Acoustic, ");
}
... |
diff --git a/app/util/ModuleChecker.java b/app/util/ModuleChecker.java
index 381b648..1958bdf 100644
--- a/app/util/ModuleChecker.java
+++ b/app/util/ModuleChecker.java
@@ -1,424 +1,428 @@
package util;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOExceptio... | false | true | public static void checkModule(File uploadsDir,
Map<String, File> fileByPath, Module m, User user, List<Module> modules) {
models.Project project = models.Project.findOwner(m.name);
if(project == null)
m.diagnostics.add(new Diagnostic("error", "You do not own this module", project));
else{
// do we own ... | public static void checkModule(File uploadsDir,
Map<String, File> fileByPath, Module m, User user, List<Module> modules) {
models.Project project = models.Project.findOwner(m.name);
if(project == null){
// nobody owns it, but perhaps we already have a claim for it
project = models.Projec... |
diff --git a/PizzaPlace/src/PizzaPck/PrintReceipt.java b/PizzaPlace/src/PizzaPck/PrintReceipt.java
index e0c5867..a4bc76e 100644
--- a/PizzaPlace/src/PizzaPck/PrintReceipt.java
+++ b/PizzaPlace/src/PizzaPck/PrintReceipt.java
@@ -1,104 +1,104 @@
package PizzaPck;
import java.text.DecimalFormat;
public class Pri... | false | true | public void print(){
this.textbox.append("<b>Ordre nr : "+orderNr+"</b>");
this.textbox.append("Skal være ferdig til : "/*orderID*/+1600);
this.textbox.append("Skal leveres "+"\n");//må hente ut om den skal leveres eller ikke
this.textbox.append("<table>" +
"<tr>" +
"<td width=220><strong>Pizza</... | public void print(){
this.textbox.append("<b>Ordre nr : "+orderNr+"</b>");
this.textbox.append("Skal være ferdig til : "/*orderID*/+1600);
this.textbox.append("Skal leveres "+"\n");//må hente ut om den skal leveres eller ikke
this.textbox.append("<table>" +
"<tr>" +
"<td width=220><strong>Pizza</... |
diff --git a/src/impl/java/org/wyona/yarep/impl/repo/vfs/VirtualFileSystemRepository.java b/src/impl/java/org/wyona/yarep/impl/repo/vfs/VirtualFileSystemRepository.java
index c4c5ce4..674d00f 100644
--- a/src/impl/java/org/wyona/yarep/impl/repo/vfs/VirtualFileSystemRepository.java
+++ b/src/impl/java/org/wyona/yarep/im... | false | true | public void readConfiguration(File configFile) throws RepositoryException {
this.configFile = configFile;
DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
Configuration config;
try {
config = builder.buildFromFile(configFile);
name = ... | public void readConfiguration(File configFile) throws RepositoryException {
this.configFile = configFile;
DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
Configuration config;
try {
config = builder.buildFromFile(configFile);
name = ... |
diff --git a/src/main/java/org/spoutcraft/launcher/util/MinecraftDownloadUtils.java b/src/main/java/org/spoutcraft/launcher/util/MinecraftDownloadUtils.java
index 4bb5e12..8b519a1 100644
--- a/src/main/java/org/spoutcraft/launcher/util/MinecraftDownloadUtils.java
+++ b/src/main/java/org/spoutcraft/launcher/util/Minecra... | true | true | public static void downloadMinecraft(String user, String output, PackInfo pack, Modpack build, DownloadListener listener) throws IOException {
int tries = 3;
File outputFile = null;
while (tries > 0) {
System.out.println("Starting download of minecraft, with " + tries + " tries remaining");
tries--;
Dow... | public static void downloadMinecraft(String user, String output, PackInfo pack, Modpack build, DownloadListener listener) throws IOException {
int tries = 3;
File outputFile = null;
while (tries > 0) {
System.out.println("Starting download of minecraft, with " + tries + " tries remaining");
tries--;
Dow... |
diff --git a/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/AbstractThread.java b/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imagemosaic/jdbc/AbstractThread.java
index a2b4192d..58bd8000 100644
--- a/modules/plugin/imagemosaic-jdbc/src/main/java/org/geotools/gce/imag... | false | true | protected BufferedImage rescaleImage(BufferedImage image) {
BufferedImage scaledImage = null;
int imageType=image.getType();
if ((imageType==BufferedImage.TYPE_BYTE_BINARY || imageType==BufferedImage.TYPE_BYTE_INDEXED)
&& (image.getColorModel() instanceof IndexColorModel) ) ... | protected BufferedImage rescaleImage(BufferedImage image) {
BufferedImage scaledImage = null;
int imageType=image.getType();
if ((imageType==BufferedImage.TYPE_BYTE_BINARY || imageType==BufferedImage.TYPE_BYTE_INDEXED)
&& (image.getColorModel() instanceof IndexColorModel) ) ... |
diff --git a/ActiveMtl/src/com/nurun/activemtl/ui/fragment/FormFragment.java b/ActiveMtl/src/com/nurun/activemtl/ui/fragment/FormFragment.java
index 4af6707..6166db7 100644
--- a/ActiveMtl/src/com/nurun/activemtl/ui/fragment/FormFragment.java
+++ b/ActiveMtl/src/com/nurun/activemtl/ui/fragment/FormFragment.java
@@ -1,3... | true | true | private boolean isFormCompleted(Location lastLocation) {
if (lastLocation == null) {
Toast.makeText(getActivity(), R.string.cannot_get_your_location, Toast.LENGTH_LONG).show();
return false;
}
if (editTextTitle.getText().length() < 4) {
Toast.makeText(getA... | private boolean isFormCompleted(Location lastLocation) {
if (lastLocation == null) {
Toast.makeText(getActivity(), R.string.cannot_get_your_location, Toast.LENGTH_LONG).show();
return false;
}
if (editTextTitle.getText().length() < 4) {
Toast.makeText(getA... |
diff --git a/src/de/latlon/deejump/plugin/manager/ExtensionHelper.java b/src/de/latlon/deejump/plugin/manager/ExtensionHelper.java
index e55095e1..f4eb9f8d 100644
--- a/src/de/latlon/deejump/plugin/manager/ExtensionHelper.java
+++ b/src/de/latlon/deejump/plugin/manager/ExtensionHelper.java
@@ -1,289 +1,289 @@
/* This ... | true | true | private static File[] downloadAndSaveResources(String extensionSite, ExtensionWrapper ext, File plugInDirectory) {
// TODO pull down resources from ext and save to pluginDir
List fileList = new ArrayList( ext.getResourceList().size() );
for (Iterator iter = ext.getResourceList().ite... | private static File[] downloadAndSaveResources(String extensionSite, ExtensionWrapper ext, File plugInDirectory) {
// TODO pull down resources from ext and save to pluginDir
List fileList = new ArrayList( ext.getResourceList().size() );
for (Iterator iter = ext.getResourceList().ite... |
diff --git a/source/de/anomic/kelondro/kelondroEcoTable.java b/source/de/anomic/kelondro/kelondroEcoTable.java
index 1bd8695f8..c044b6061 100644
--- a/source/de/anomic/kelondro/kelondroEcoTable.java
+++ b/source/de/anomic/kelondro/kelondroEcoTable.java
@@ -1,652 +1,652 @@
// kelondroEcoIndex.java
// (C) 2008 by Micha... | false | true | public kelondroEcoTable(File tablefile, kelondroRow rowdef, int useTailCache, int buffersize, int initialSpace) {
this.rowdef = rowdef;
this.buffersize = buffersize;
assert rowdef.primaryKeyIndex == 0;
// define the taildef, a row like the rowdef but without the first column
... | public kelondroEcoTable(File tablefile, kelondroRow rowdef, int useTailCache, int buffersize, int initialSpace) {
this.rowdef = rowdef;
this.buffersize = buffersize;
assert rowdef.primaryKeyIndex == 0;
// define the taildef, a row like the rowdef but without the first column
... |
diff --git a/src/main/java/it/polimi/elet/selflet/istantiator/SelfletIstantiator.java b/src/main/java/it/polimi/elet/selflet/istantiator/SelfletIstantiator.java
index b13dceb..53dbba1 100644
--- a/src/main/java/it/polimi/elet/selflet/istantiator/SelfletIstantiator.java
+++ b/src/main/java/it/polimi/elet/selflet/istanti... | true | true | public String istantiateBrokerAndDispatcher() {
if (virtualMachineIPGenerator.isDispatcherSet()) {
LOG.debug("Dispatcher is already set");
return virtualMachineIPGenerator.getDispatcherIpAddress();
}
LOG.debug("Istantiating new broker and dispatcher");
// resetSelflets(virtualMachineIPGenerator.getAllIPA... | public String istantiateBrokerAndDispatcher() {
if (virtualMachineIPGenerator.isDispatcherSet()) {
LOG.debug("Dispatcher is already set");
return virtualMachineIPGenerator.getDispatcherIpAddress();
}
LOG.debug("Istantiating new broker and dispatcher");
// resetSelflets(virtualMachineIPGenerator.getAllIPA... |
diff --git a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/resolution/ResolutionHelper.java b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/resolution/ResolutionHelper.java
index 8dbf77afd..21595c694 100644
--- a/bundles/org.eclipse.equinox.p2.director/src/org... | true | true | public Collection attachCUs(Collection toAttach) {
initialize();
for (Iterator iterator = toAttach.iterator(); iterator.hasNext();) {
addInResolution((IInstallableUnit) iterator.next());
}
state.resolve();
BundleDescription[] bds = state.getBundles();
for (int i = 0; i < bds.length; i++) {
if (DEBUG)... | public Collection attachCUs(Collection toAttach) {
initialize();
for (Iterator iterator = toAttach.iterator(); iterator.hasNext();) {
addInResolution((IInstallableUnit) iterator.next());
}
state.resolve();
BundleDescription[] bds = state.getBundles();
for (int i = 0; i < bds.length; i++) {
if (DEBUG)... |
diff --git a/src/kdtree/KDTreeCell.java b/src/kdtree/KDTreeCell.java
index 80f0a85..ec6be70 100644
--- a/src/kdtree/KDTreeCell.java
+++ b/src/kdtree/KDTreeCell.java
@@ -1,106 +1,106 @@
package kdtree;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
public class KDTreeCell {
... | false | true | public KDTreeCell(Integer dimensions, Integer depth,
ArrayList<ArrayList<Float[]>> points) throws KDTreeCellException {
if (dimensions <= 0)
throw new KDTreeCellWrongCreationArgumentException();
if (depth < 0)
throw new KDTreeCellWrongCreationArgumentException();
... | public KDTreeCell(Integer dimensions, Integer depth,
ArrayList<ArrayList<Float[]>> points) throws KDTreeCellException {
if (dimensions <= 0)
throw new KDTreeCellWrongCreationArgumentException();
if (depth < 0)
throw new KDTreeCellWrongCreationArgumentException();
... |
diff --git a/titan-test/src/test/java/com/thinkaurelius/titan/graphdb/inmemory/InMemoryMetricsTest.java b/titan-test/src/test/java/com/thinkaurelius/titan/graphdb/inmemory/InMemoryMetricsTest.java
index e7c2bce16..358c79db9 100644
--- a/titan-test/src/test/java/com/thinkaurelius/titan/graphdb/inmemory/InMemoryMetricsTe... | false | true | public void testKCVSAccess() throws InterruptedException {
TitanTransaction tx = graph.buildTransaction().setMetricsPrefix(METRICS).start();
TitanVertex v = tx.addVertex(null);
verifyMetrics(STORE_NAMES.get(3), SYSTEM_METRICS, ImmutableMap.of(M_MUTATE, 2l, M_GET_SLICE, 4l));
ElementH... | public void testKCVSAccess() throws InterruptedException {
TitanTransaction tx = graph.buildTransaction().setMetricsPrefix(METRICS).start();
TitanVertex v = tx.addVertex(null);
verifyMetrics(STORE_NAMES.get(3), SYSTEM_METRICS, ImmutableMap.of(M_MUTATE, 2l, M_GET_SLICE, 4l));
ElementH... |
diff --git a/MEditor/src/cz/fi/muni/xkremser/editor/client/view/other/InfoTab.java b/MEditor/src/cz/fi/muni/xkremser/editor/client/view/other/InfoTab.java
index a434efb9..de279cba 100644
--- a/MEditor/src/cz/fi/muni/xkremser/editor/client/view/other/InfoTab.java
+++ b/MEditor/src/cz/fi/muni/xkremser/editor/client/view/... | true | true | public InfoTab(String title,
String icon,
final LangConstants lang,
final DigitalObjectDetail detail,
String type,
String firstPageURL) {
super(title, icon);
this.lang = lang;
String label = detail... | public InfoTab(String title,
String icon,
final LangConstants lang,
final DigitalObjectDetail detail,
String type,
String firstPageURL) {
super(title, icon);
this.lang = lang;
String label = detail... |
diff --git a/moho-impl/src/main/java/com/voxeo/moho/sip/SIPHelper.java b/moho-impl/src/main/java/com/voxeo/moho/sip/SIPHelper.java
index 686d1951..ce7b295c 100755
--- a/moho-impl/src/main/java/com/voxeo/moho/sip/SIPHelper.java
+++ b/moho-impl/src/main/java/com/voxeo/moho/sip/SIPHelper.java
@@ -1,513 +1,517 @@
/**
* ... | true | true | public static SipServletRequest createSipInitnalRequest(final SipFactory factory, final String method,
final Address from, final Address to, final Map<String, String> headers,
SipApplicationSession applicationSession, SipServletRequest origRequest) {
SipServletRequest req = null;
if (origRequest !... | public static SipServletRequest createSipInitnalRequest(final SipFactory factory, final String method,
final Address from, final Address to, final Map<String, String> headers,
SipApplicationSession applicationSession, SipServletRequest origRequest) {
SipServletRequest req = null;
if (origRequest !... |
diff --git a/org.s23m.cell.eclipse.openarchitectureware/src/org/s23m/cell/eclipse/openarchitectureware/types/singleton/RootSetType.java b/org.s23m.cell.eclipse.openarchitectureware/src/org/s23m/cell/eclipse/openarchitectureware/types/singleton/RootSetType.java
index f96160f..72b2ddc 100644
--- a/org.s23m.cell.eclipse.o... | false | true | public Feature[] getContributedFeatures() {
final Type booleanType = getTypeSystem().getBooleanType();
final Type integerType = getTypeSystem().getIntegerType();
return new Feature[] {
new OperationImpl(this, "identity", identityType) {
protected @Override Identity evaluateInternal(final Object target, fi... | public Feature[] getContributedFeatures() {
final Type booleanType = getTypeSystem().getBooleanType();
final Type integerType = getTypeSystem().getIntegerType();
return new Feature[] {
new OperationImpl(this, "identity", identityType) {
protected @Override Identity evaluateInternal(final Object target, fi... |
diff --git a/beam/beam-core/src/main/java/org/esa/beam/framework/dataop/resamp/BilinearInterpolationResampling.java b/beam/beam-core/src/main/java/org/esa/beam/framework/dataop/resamp/BilinearInterpolationResampling.java
index 3af54375e..ca0e49ff0 100644
--- a/beam/beam-core/src/main/java/org/esa/beam/framework/dataop/... | true | true | public final void computeIndex(final float x,
final float y,
final int width,
final int height,
final Index index) {
index.x = x;
index.y = y;
index.wid... | public final void computeIndex(final float x,
final float y,
final int width,
final int height,
final Index index) {
index.x = x;
index.y = y;
index.wid... |
diff --git a/grails/test/web/org/codehaus/groovy/grails/web/sitemesh/GrailsLayoutDecoratorMapperTests.java b/grails/test/web/org/codehaus/groovy/grails/web/sitemesh/GrailsLayoutDecoratorMapperTests.java
index 5f402bf86..1c3ab9cc1 100644
--- a/grails/test/web/org/codehaus/groovy/grails/web/sitemesh/GrailsLayoutDecorator... | true | true | public void testGetDecoratorHttpServletRequestPage() {
MockHttpServletRequest request = new MockHttpServletRequest("GET", "orders/list");
GrailsLayoutDecoratorMapper m = new GrailsLayoutDecoratorMapper();
FastPageParser parser = new FastPageParser();
String html = "<html><head><title>Test title</title><meta na... | public void testGetDecoratorHttpServletRequestPage() {
MockHttpServletRequest request = new MockHttpServletRequest("GET", "orders/list");
GrailsLayoutDecoratorMapper m = new GrailsLayoutDecoratorMapper();
FastPageParser parser = new FastPageParser();
String html = "<html><head><title>Test title</title><meta na... |
diff --git a/src/org/radare/installer/LauncherActivity.java b/src/org/radare/installer/LauncherActivity.java
index 134778d..b6c74d6 100644
--- a/src/org/radare/installer/LauncherActivity.java
+++ b/src/org/radare/installer/LauncherActivity.java
@@ -1,84 +1,88 @@
/*
radare2 installer for Android
(c) 2012 Pau Oliva Fo... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// we don't need a layout for this activity as we finish() it right after the intent has started
//setContentView(R.layout.launcher);
mUtils = new Utils(getApplicationContext());
File radarebin = new File("/data/data/org... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// we don't need a layout for this activity as we finish() it right after the intent has started
//setContentView(R.layout.launcher);
mUtils = new Utils(getApplicationContext());
File radarebin = new File("/data/data/org... |
diff --git a/api/src/main/java/org/obiba/magma/MagmaEngine.java b/api/src/main/java/org/obiba/magma/MagmaEngine.java
index c993ccaa..cffd857d 100644
--- a/api/src/main/java/org/obiba/magma/MagmaEngine.java
+++ b/api/src/main/java/org/obiba/magma/MagmaEngine.java
@@ -1,174 +1,174 @@
package org.obiba.magma;
import j... | true | true | public MagmaEngine() {
if(instance != null) {
throw new IllegalStateException("MetaEngine already instanciated. Only one instance of MetaEngine should be instantiated.");
}
instance = this;
singletons = new LinkedList<Object>();
valueTypeFactory = new ValueTypeFactory();
}
| public MagmaEngine() {
if(instance != null) {
throw new IllegalStateException("MagmaEngine already instanciated. Only one instance of MagmaEngine should be instantiated.");
}
instance = this;
singletons = new LinkedList<Object>();
valueTypeFactory = new ValueTypeFactory();
}
|
diff --git a/src/com/android/provision/DefaultActivity.java b/src/com/android/provision/DefaultActivity.java
index 5bd88a7..0246ba6 100644
--- a/src/com/android/provision/DefaultActivity.java
+++ b/src/com/android/provision/DefaultActivity.java
@@ -1,52 +1,53 @@
/*
* Copyright (C) 2008 The Android Open Source Projec... | true | true | protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
// Add a persistent setting to allow other apps to know the device has been provisioned.
Settings.Global.putInt(getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 1);
// Add a persistent setting to allow other ... | protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
// Add a persistent setting to allow other apps to know the device has been provisioned.
Settings.Global.putInt(getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 1);
Settings.Secure.putInt(getContentResolver(),... |
diff --git a/src/com/herocraftonline/dev/heroes/inventory/InventoryChecker.java b/src/com/herocraftonline/dev/heroes/inventory/InventoryChecker.java
index 970d45a3..81c6317d 100644
--- a/src/com/herocraftonline/dev/heroes/inventory/InventoryChecker.java
+++ b/src/com/herocraftonline/dev/heroes/inventory/InventoryChecke... | true | true | public void checkInventory(Player p) {
PlayerInventory inv = p.getInventory();
Hero h = plugin.getHeroManager().getHero(p);
HeroClass hc = h.getHeroClass();
int removedCount = 0;
int count = 0;
String item;
if (inv.getHelmet() != null && inv.getHelmet().getTyp... | public void checkInventory(Player p) {
PlayerInventory inv = p.getInventory();
Hero h = plugin.getHeroManager().getHero(p);
HeroClass hc = h.getHeroClass();
int removedCount = 0;
int count = 0;
String item;
if (inv.getHelmet() != null && inv.getHelmet().getTyp... |
diff --git a/projects/brms-coolstore-demo/src/main/java/com/redhat/coolstore/web/ui/ShoppingCartView.java b/projects/brms-coolstore-demo/src/main/java/com/redhat/coolstore/web/ui/ShoppingCartView.java
index 23268c2..2c5a52d 100644
--- a/projects/brms-coolstore-demo/src/main/java/com/redhat/coolstore/web/ui/ShoppingCart... | true | true | public ShoppingCartView(CoolStoreApplication app) {
super();
this.app = app;
VerticalLayout vl = new VerticalLayout();
vl.setWidth("100%");
Label inventoryLabel = new Label("Shopping Cart:");
inventoryLabel.setStyleName(Reindeer.LABEL_H1);
vl.addComponent(inventoryLabel);
vl.add... | public ShoppingCartView(CoolStoreApplication app) {
super();
this.app = app;
VerticalLayout vl = new VerticalLayout();
vl.setWidth("100%");
Label inventoryLabel = new Label("Shopping Cart:");
inventoryLabel.setStyleName(Reindeer.LABEL_H1);
vl.addComponent(inventoryLabel);
vl.add... |
diff --git a/src/modtrace/DiffComparator.java b/src/modtrace/DiffComparator.java
index 77a487b..c287d97 100644
--- a/src/modtrace/DiffComparator.java
+++ b/src/modtrace/DiffComparator.java
@@ -1,316 +1,316 @@
package modtrace;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import... | true | true | private void compare(HitObject i, HitObject c) {
List<String> compareMsgs = new ArrayList<String>();
if (i instanceof Circle) {
if (i.getX() != c.getX() && i.getY() != c.getY())
compareMsgs.add("move to " + c.getPosString());
}
else if (i instanceof Spinner) {
if (i.getEndTime() != c.getEndTime())
... | private void compare(HitObject i, HitObject c) {
List<String> compareMsgs = new ArrayList<String>();
if (i instanceof Circle) {
if (i.getX() != c.getX() && i.getY() != c.getY())
compareMsgs.add("move to " + c.getPosString());
}
else if (i instanceof Spinner) {
if (i.getEndTime() != c.getEndTime())
... |
diff --git a/src/net/sqdmc/bubbleshield/ShieldListener.java b/src/net/sqdmc/bubbleshield/ShieldListener.java
index 7516a58..5f8ffe9 100644
--- a/src/net/sqdmc/bubbleshield/ShieldListener.java
+++ b/src/net/sqdmc/bubbleshield/ShieldListener.java
@@ -1,692 +1,692 @@
package net.sqdmc.bubbleshield;
import java.io.File... | true | true | private void decreaseDurability(ShieldBase shieldBase) {
// manage durability stuff
Location signLoc = new Location(shieldBase.world, shieldBase.x, (shieldBase.y+1), shieldBase.z);
Location spongeLoc = new Location(shieldBase.world, shieldBase.x, (shieldBase.y), shieldBase.z);
Block signBlock = signLoc.g... | private void decreaseDurability(ShieldBase shieldBase) {
// manage durability stuff
Location signLoc = new Location(shieldBase.world, shieldBase.x, (shieldBase.y+1), shieldBase.z);
Location spongeLoc = new Location(shieldBase.world, shieldBase.x, (shieldBase.y), shieldBase.z);
Block signBlock = signLoc.g... |
diff --git a/src/main/java/de/derflash/plugins/cnwarn/services/ChatService.java b/src/main/java/de/derflash/plugins/cnwarn/services/ChatService.java
index 8cb06cc..ae08fe0 100644
--- a/src/main/java/de/derflash/plugins/cnwarn/services/ChatService.java
+++ b/src/main/java/de/derflash/plugins/cnwarn/services/ChatService.... | true | true | public void showWarnList(Player player, String playerName, List<Warn> warnList) {
player.sendMessage(ChatColor.DARK_RED + "|------------- " + playerName + " Verwarnungen -------------|");
SimpleDateFormat formatter = new SimpleDateFormat("dd.MM.yy 'um' hh:mm 'Uhr'");
int ratingSum = 0;
... | public void showWarnList(Player player, String playerName, List<Warn> warnList) {
player.sendMessage(ChatColor.DARK_RED + "|------------- " + playerName + " Verwarnungen -------------|");
SimpleDateFormat formatter = new SimpleDateFormat("dd.MM.yy 'um' hh:mm 'Uhr'");
int ratingSum = 0;
... |
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java
index de28908c..bf4a5762 100644
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java
@@ -1,2870 +1,2871 @@
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed und... | false | true | private void updateCameraParametersPreference() {
setAutoExposureLockIfSupported();
setAutoWhiteBalanceLockIfSupported();
setFocusAreasIfSupported();
setMeteringAreasIfSupported();
// Set picture size.
String pictureSize = mPreferences.getString(
Came... | private void updateCameraParametersPreference() {
setAutoExposureLockIfSupported();
setAutoWhiteBalanceLockIfSupported();
setFocusAreasIfSupported();
setMeteringAreasIfSupported();
// Set picture size.
String pictureSize = mPreferences.getString(
Came... |
diff --git a/src/com/mistphizzle/donationpoints/plugin/Commands.java b/src/com/mistphizzle/donationpoints/plugin/Commands.java
index 940a674..99264ef 100644
--- a/src/com/mistphizzle/donationpoints/plugin/Commands.java
+++ b/src/com/mistphizzle/donationpoints/plugin/Commands.java
@@ -1,290 +1,295 @@
package com.mistph... | false | true | private void init() {
PluginCommand donationpoints = plugin.getCommand("donationpoints");
CommandExecutor exe;
exe = new CommandExecutor() {
@Override
public boolean onCommand(CommandSender s, Command c, String label, String[] args) {
if (args.length < 1) {
// Base Command
s.sendMessage("---... | private void init() {
PluginCommand donationpoints = plugin.getCommand("donationpoints");
CommandExecutor exe;
exe = new CommandExecutor() {
@Override
public boolean onCommand(CommandSender s, Command c, String label, String[] args) {
if (args.length < 1) {
// Base Command
s.sendMessage("---... |
diff --git a/main/src/main/java/com/chinarewards/qqgbvpn/main/logic/journal/DbJournalLogic.java b/main/src/main/java/com/chinarewards/qqgbvpn/main/logic/journal/DbJournalLogic.java
index 1aa4d08c..291a6004 100644
--- a/main/src/main/java/com/chinarewards/qqgbvpn/main/logic/journal/DbJournalLogic.java
+++ b/main/src/mai... | true | true | public void logEvent(String event, String entity, String entityId,
String eventDetail) {
Date now = dtProvider.getTime();
// FIXME implements me
// start new transaction on top of this transaction.
Journal j = new Journal();
j.setEntity(entity);
j.setEntityId(entityId);
j.setEventDetail(eventDetail... | public void logEvent(String event, String entity, String entityId,
String eventDetail) {
Date now = dtProvider.getTime();
// FIXME implements me
// start new transaction on top of this transaction.
Journal j = new Journal();
j.setEvent(event);
j.setEntity(entity);
j.setEntityId(entityId);
j.setEv... |
diff --git a/atlas-web/src/test/java/uk/ac/ebi/gxa/requesthandlers/experimentpage/SimilarGeneListTest.java b/atlas-web/src/test/java/uk/ac/ebi/gxa/requesthandlers/experimentpage/SimilarGeneListTest.java
index 7509e9432..9140227db 100644
--- a/atlas-web/src/test/java/uk/ac/ebi/gxa/requesthandlers/experimentpage/SimilarG... | true | true | public void testComputeSimilarityTask() {
// do a similarity over E-AFMX-5 for an arbitrary design element/array design
final SimilarityResultSet simRS = new SimilarityResultSet("226010852", "153094131", "153069949");
final String callSim = "sim.nc(" + simRS.getTargetDesignElementId() + ",'"... | public void testComputeSimilarityTask() {
// do a similarity over E-AFMX-5 for an arbitrary design element/array design
// TODO: fix similarity result test!
final SimilarityResultSet simRS = new SimilarityResultSet("226010852", "153094131", "153069949", "");
final String callSim = "s... |
diff --git a/plugins/org.jnario.spec.ui/src/org/jnario/spec/ui/highlighting/SpecHighlightingCalculator.java b/plugins/org.jnario.spec.ui/src/org/jnario/spec/ui/highlighting/SpecHighlightingCalculator.java
index fd2a7c17d..57f2ae559 100644
--- a/plugins/org.jnario.spec.ui/src/org/jnario/spec/ui/highlighting/SpecHighligh... | true | true | protected void provideHighlightingFor(ExampleGroup exampleGroup,
IHighlightedPositionAcceptor acceptor) {
if (exampleGroup != null) {
for (XtendMember member : exampleGroup.getMembers()) {
if (member.eClass() == XtendPackage.Literals.XTEND_FUNCTION) {
XtendFunction function = (XtendFunction) member;
... | protected void provideHighlightingFor(ExampleGroup exampleGroup,
IHighlightedPositionAcceptor acceptor) {
if (exampleGroup != null) {
for (XtendMember member : exampleGroup.getMembers()) {
if (XtendPackage.Literals.XTEND_FUNCTION.isSuperTypeOf(member.eClass())) {
XtendFunction function = (XtendFunctio... |
diff --git a/src/main/java/com/metaweb/gridworks/expr/ExpressionUtils.java b/src/main/java/com/metaweb/gridworks/expr/ExpressionUtils.java
index f5b8574e..f5928f75 100644
--- a/src/main/java/com/metaweb/gridworks/expr/ExpressionUtils.java
+++ b/src/main/java/com/metaweb/gridworks/expr/ExpressionUtils.java
@@ -1,66 +1,7... | true | true | static public void bind(Properties bindings, Row row, int rowIndex, Cell cell) {
bindings.put("row", row);
bindings.put("rowIndex", rowIndex);
bindings.put("cells", row.getField("cells", bindings));
if (cell == null) {
bindings.remove("cell");
binding... | static public void bind(Properties bindings, Row row, int rowIndex, Cell cell) {
bindings.put("row", row);
bindings.put("rowIndex", rowIndex);
bindings.put("cells", row.getField("cells", bindings));
if (cell == null) {
bindings.remove("cell");
binding... |
diff --git a/projects/browser/src/main/java/org/muis/browser/MuisBrowser.java b/projects/browser/src/main/java/org/muis/browser/MuisBrowser.java
index e91d1ea8..68b494e2 100644
--- a/projects/browser/src/main/java/org/muis/browser/MuisBrowser.java
+++ b/projects/browser/src/main/java/org/muis/browser/MuisBrowser.java
@... | true | true | public void goToAddress(String address) {
if(!theDataLock && !theAddressBar.getText().equals(address)) {
theDataLock = true;
try {
theAddressBar.setText(address);
} finally {
theDataLock = false;
}
}
java.net.URL url;
try {
url = new java.net.URL(address);
} catch(java.net.MalformedURL... | public void goToAddress(String address) {
if(!theDataLock && !theAddressBar.getText().equals(address)) {
theDataLock = true;
try {
theAddressBar.setText(address);
} finally {
theDataLock = false;
}
}
java.net.URL url;
try {
url = new java.net.URL(address);
} catch(java.net.MalformedURL... |
diff --git a/Lookup/src/info/tregmine/lookup/LookupPlayer.java b/Lookup/src/info/tregmine/lookup/LookupPlayer.java
index 90c105f..b884890 100644
--- a/Lookup/src/info/tregmine/lookup/LookupPlayer.java
+++ b/Lookup/src/info/tregmine/lookup/LookupPlayer.java
@@ -1,87 +1,87 @@
package info.tregmine.lookup;
import ja... | true | true | public void onPlayerJoin(PlayerJoinEvent event) {
Player player = event.getPlayer();
InetSocketAddress sock = player.getAddress();
String ip = sock.getAddress().getHostAddress();
String host = sock.getAddress().getCanonicalHostName();
info.tregmine.api.TregminePlayer tregminePlayer = this.plugin.tregmine.tre... | public void onPlayerJoin(PlayerJoinEvent event) {
Player player = event.getPlayer();
InetSocketAddress sock = player.getAddress();
String ip = sock.getAddress().getHostAddress();
String host = sock.getAddress().getCanonicalHostName();
info.tregmine.api.TregminePlayer tregminePlayer = this.plugin.tregmine.tre... |
diff --git a/src/main/java/org/jboss/pressgang/ccms/utils/common/DocBookUtilities.java b/src/main/java/org/jboss/pressgang/ccms/utils/common/DocBookUtilities.java
index 8f0a8a9..dfe8f78 100644
--- a/src/main/java/org/jboss/pressgang/ccms/utils/common/DocBookUtilities.java
+++ b/src/main/java/org/jboss/pressgang/ccms/ut... | false | true | protected static String escapeTitleString(final String title) {
if (title == null) return "";
/*
* Note: The following characters should be escaped: & < > " '
*
* However, all but ampersand pose issues when other elements are included in the title.
*
* e... | public static String escapeTitleString(final String title) {
if (title == null) return "";
/*
* Note: The following characters should be escaped: & < > " '
*
* However, all but ampersand pose issues when other elements are included in the title.
*
* eg <... |
diff --git a/ProjectGammon/src/test/java/fr/ujm/tse/info4/pgammon/test/gui/TestDesignPlateau.java b/ProjectGammon/src/test/java/fr/ujm/tse/info4/pgammon/test/gui/TestDesignPlateau.java
index da2c8ae..f70ce33 100644
--- a/ProjectGammon/src/test/java/fr/ujm/tse/info4/pgammon/test/gui/TestDesignPlateau.java
+++ b/ProjectG... | true | true | public static void main(String[] args) {
JFrame frame = new JFrame("Test Design");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(800,600);
Container panel = frame.getContentPane();
panel.setLayout(new FlowLayout());
panel.setBackground(new Color(0x00000));
{
Triangl... | public static void main(String[] args) {
JFrame frame = new JFrame("Test Design");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(800,600);
Container panel = frame.getContentPane();
panel.setLayout(new FlowLayout());
panel.setBackground(new Color(0x00000));
{
Triangl... |
diff --git a/bitrepository-webclient/src/main/java/org/bitrepository/webservice/Reposervice.java b/bitrepository-webclient/src/main/java/org/bitrepository/webservice/Reposervice.java
index a4aef4f2..936b247c 100644
--- a/bitrepository-webclient/src/main/java/org/bitrepository/webservice/Reposervice.java
+++ b/bitreposi... | true | true | private JSONArray makeCollectionsArray() throws JSONException {
JSONArray array = new JSONArray();
Settings settings = client.getSettings();
List<Collection> collections = settings.getRepositorySettings().getCollections().getCollection();
for(Collection c : collections) {
... | private JSONArray makeCollectionsArray() throws JSONException {
JSONArray array = new JSONArray();
Settings settings = client.getSettings();
List<Collection> collections = settings.getRepositorySettings().getCollections().getCollection();
for(Collection c : collections) {
... |
diff --git a/deegree-misc/deegree-maven-plugin/src/main/java/org/deegree/maven/WorkspaceMojo.java b/deegree-misc/deegree-maven-plugin/src/main/java/org/deegree/maven/WorkspaceMojo.java
index ae0b15a585..f6028e0774 100644
--- a/deegree-misc/deegree-maven-plugin/src/main/java/org/deegree/maven/WorkspaceMojo.java
+++ b/de... | false | true | public void execute()
throws MojoExecutionException, MojoFailureException {
Log log = getLog();
File dir = new File( project.getBasedir(), "src/main/webapp/WEB-INF/workspace" );
if ( !dir.isDirectory() ) {
dir = new File( project.getBasedir(), "src/mai... | public void execute()
throws MojoExecutionException, MojoFailureException {
Log log = getLog();
File dir = new File( project.getBasedir(), "src/main/webapp/WEB-INF/workspace" );
if ( !dir.isDirectory() ) {
dir = new File( project.getBasedir(), "src/mai... |
diff --git a/modules/rampart-integration/src/test/java/org/apache/rampart/RampartTest.java b/modules/rampart-integration/src/test/java/org/apache/rampart/RampartTest.java
index efb2c8c2f..ddeb76997 100644
--- a/modules/rampart-integration/src/test/java/org/apache/rampart/RampartTest.java
+++ b/modules/rampart-integrati... | true | true | public void testWithPolicy() {
try {
String repo = Constants.TESTING_PATH + "rampart_client_repo";
ConfigurationContext configContext = ConfigurationContextFactory.
createConfigurationContextFromFileSystem(repo, null);
ServiceClient serviceCl... | public void testWithPolicy() {
try {
String repo = Constants.TESTING_PATH + "rampart_client_repo";
ConfigurationContext configContext = ConfigurationContextFactory.
createConfigurationContextFromFileSystem(repo, null);
ServiceClient serviceCl... |
diff --git a/src/de/bsd/zwitscher/TweetDB.java b/src/de/bsd/zwitscher/TweetDB.java
index c71b2d5..ef5c2d3 100644
--- a/src/de/bsd/zwitscher/TweetDB.java
+++ b/src/de/bsd/zwitscher/TweetDB.java
@@ -1,455 +1,455 @@
package de.bsd.zwitscher;
import java.lang.String;
import java.util.ArrayList;
import java.util.HashM... | true | true | long getLastRead(int list_id) {
SQLiteDatabase db = tdHelper.getReadableDatabase();
Cursor c = db.query(TABLE_LAST_READ, new String[] {"last_read_id"}, "list_id = ? AND " + ACCOUNT_ID_IS, new String[] {String.valueOf(list_id),account}, null, null, null);
Long ret;
if (c.getCount()==0)
ret = -1L;
else {
... | long getLastRead(int list_id) {
SQLiteDatabase db = tdHelper.getReadableDatabase();
Cursor c = db.query(TABLE_LAST_READ, new String[] {"last_read_id"}, "list_id = ? AND " + ACCOUNT_ID_IS, new String[] {String.valueOf(list_id),account}, null, null, null);
Long ret;
if (c.getCount()==0)
ret = -1L;
else {
... |
diff --git a/ManalithBot/src/main/java/org/manalith/ircbot/plugin/nvidiadrivernews/NvidiaDriverNewsRunner.java b/ManalithBot/src/main/java/org/manalith/ircbot/plugin/nvidiadrivernews/NvidiaDriverNewsRunner.java
index de8e91a..a341786 100644
--- a/ManalithBot/src/main/java/org/manalith/ircbot/plugin/nvidiadrivernews/Nvi... | true | true | public String run()
{
StringBuilder result = new StringBuilder();
/*
String ProductSeriesType = "3"; // Geforce
String ProductSeries = ""; // reserved to get from xml
// String ddlDownloadType = "3"; // Driver : useless
String ddlOperatingSystem = "11"; // Linux:ia32 , 12 => amd64
String hidPageLangu... | public String run()
{
StringBuilder result = new StringBuilder();
/*
String ProductSeriesType = "3"; // Geforce
String ProductSeries = ""; // reserved to get from xml
// String ddlDownloadType = "3"; // Driver : useless
String ddlOperatingSystem = "11"; // Linux:ia32 , 12 => amd64
String hidPageLangu... |
diff --git a/src/main/java/net/pms/dlna/DLNAResource.java b/src/main/java/net/pms/dlna/DLNAResource.java
index b227e790d..a248190cf 100644
--- a/src/main/java/net/pms/dlna/DLNAResource.java
+++ b/src/main/java/net/pms/dlna/DLNAResource.java
@@ -1,2476 +1,2477 @@
/*
* PS3 Media Server, for streaming any medias to you... | true | true | public final String toString(RendererConfiguration mediaRenderer) {
StringBuilder sb = new StringBuilder();
if (isFolder()) {
openTag(sb, "container");
} else {
openTag(sb, "item");
}
addAttribute(sb, "id", getResourceId());
if (isFolder()) {
if (!isDiscovered() && childrenNumber() == 0) {
... | public final String toString(RendererConfiguration mediaRenderer) {
StringBuilder sb = new StringBuilder();
if (isFolder()) {
openTag(sb, "container");
} else {
openTag(sb, "item");
}
addAttribute(sb, "id", getResourceId());
if (isFolder()) {
if (!isDiscovered() && childrenNumber() == 0) {
... |
diff --git a/src/main/java/net/aufdemrand/denizen/scripts/commands/CommandRegistry.java b/src/main/java/net/aufdemrand/denizen/scripts/commands/CommandRegistry.java
index a8ce14cfa..a00a883a1 100644
--- a/src/main/java/net/aufdemrand/denizen/scripts/commands/CommandRegistry.java
+++ b/src/main/java/net/aufdemrand/deniz... | true | true | public void registerCoreMembers() {
// <--[command]
// @Name Anchor
// @Usage anchor [id:<name>] [assume/add/remove/walkto/walknear] (range:<#>)
// @Required 2
// @Stable Stable
// @Short TODO
// @Author Todo
// @Description
// Todo
// @Tags
// Todo
// @Usage
// Todo
// @Example
// To... | public void registerCoreMembers() {
// <--[command]
// @Name Anchor
// @Usage anchor [id:<name>] [assume/add/remove/walkto/walknear] (range:<#>)
// @Required 2
// @Stable Stable
// @Short TODO
// @Author Todo
// @Description
// Todo
// @Tags
// Todo
// @Usage
// Todo
// @Example
// To... |
diff --git a/src/com/dmdirc/parser/Process004005.java b/src/com/dmdirc/parser/Process004005.java
index af0b826f6..8a17bed09 100644
--- a/src/com/dmdirc/parser/Process004005.java
+++ b/src/com/dmdirc/parser/Process004005.java
@@ -1,150 +1,150 @@
/*
* Copyright (c) 2006-2008 Chris Smith, Shane Mc Cormack, Gregory Holm... | false | true | public void process(String sParam, String[] token) {
if (sParam.equals("004")) {
// 004
myParser.h005Info.put("004IRCD",token[4]);
myParser.h005Info.put("USERMODES",token[5]);
myParser.h005Info.put("USERCHANMODES",token[6]);
myParser.parseUserModes();
} else {
// 005
String[] Bits = null;
S... | public void process(String sParam, String[] token) {
if (sParam.equals("004")) {
// 004
myParser.h005Info.put("004IRCD",token[4]);
myParser.h005Info.put("USERMODES",token[5]);
myParser.h005Info.put("USERCHANMODES",token[6]);
myParser.parseUserModes();
} else {
// 005
String[] Bits = null;
S... |
diff --git a/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/services/serviceBus/implementation/WrapRestProxyIntegrationTest.java b/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/services/serviceBus/implementation/WrapRestProxyIntegrationTest.java
index 8a06824695..9e58ad475a 100644
--- a/mic... | false | true | public void serviceCanBeCalledToCreateAccessToken() throws Exception {
// Arrange
Configuration config = Configuration.getInstance();
WrapContract contract = new WrapRestProxy(config.create(Client.class));
// Act
String uri = (String) config.getProperty(ServiceBusConfigurati... | public void serviceCanBeCalledToCreateAccessToken() throws Exception {
// Arrange
Configuration config = Configuration.getInstance();
WrapContract contract = new WrapRestProxy(config.create(Client.class));
// Act
String serviceBusUri = (String) config.getProperty(ServiceBusC... |
diff --git a/src/main/java/pl/llp/aircasting/sensor/WriterWorker.java b/src/main/java/pl/llp/aircasting/sensor/WriterWorker.java
index f7838a75..f40eb45c 100644
--- a/src/main/java/pl/llp/aircasting/sensor/WriterWorker.java
+++ b/src/main/java/pl/llp/aircasting/sensor/WriterWorker.java
@@ -1,102 +1,104 @@
package pl.l... | false | true | public WriterWorker(BluetoothDevice device, EventBus eventBus, final BluetoothSocketWriter socketWriter)
{
super(eventBus);
this.device = device;
this.socketWriter = socketWriter;
this.thread = new Thread(new Runnable()
{
@Override
public void run()
{
... | public WriterWorker(BluetoothDevice device, EventBus eventBus, final BluetoothSocketWriter socketWriter)
{
super(eventBus);
this.device = device;
this.socketWriter = socketWriter;
this.thread = new Thread(new Runnable()
{
@Override
public void run()
{
... |
diff --git a/src/main/java/org/spout/server/SpoutServer.java b/src/main/java/org/spout/server/SpoutServer.java
index 67cf4f4c7..bf949cbb5 100644
--- a/src/main/java/org/spout/server/SpoutServer.java
+++ b/src/main/java/org/spout/server/SpoutServer.java
@@ -1,985 +1,985 @@
/*
* This file is part of Spout (http://www.... | true | true | public void start() {
Spout.setGame(this);
if(debugMode()){
getLogger().warning("Spout has been started in Debug Mode! This mode is for developers only");
}
CommandRegistrationsFactory<Class<?>> commandRegFactory = new AnnotatedCommandRegistrationFactory(new SimpleInjector(this), new SimpleAnnotatedComm... | public void start() {
Spout.setGame(this);
if(debugMode()){
getLogger().warning("Spout has been started in Debug Mode! This mode is for developers only");
}
CommandRegistrationsFactory<Class<?>> commandRegFactory = new AnnotatedCommandRegistrationFactory(new SimpleInjector(this), new SimpleAnnotatedComm... |
diff --git a/KeepScore/src/com/nolanlawson/keepscore/widget/chart/LineChartView.java b/KeepScore/src/com/nolanlawson/keepscore/widget/chart/LineChartView.java
index b25813c..0451f25 100644
--- a/KeepScore/src/com/nolanlawson/keepscore/widget/chart/LineChartView.java
+++ b/KeepScore/src/com/nolanlawson/keepscore/widget/... | true | true | private void init() {
chartPadding = getContext().getResources().getDimensionPixelSize(
R.dimen.chart_padding);
itemWidth = getContext().getResources().getDimensionPixelSize(
R.dimen.chart_item_width);
dotRadius = getContext().getResources().getDimensionPixelSize(
R.dimen.chart_dot_radius);
fontSiz... | private void init() {
chartPadding = getContext().getResources().getDimensionPixelSize(
R.dimen.chart_padding);
itemWidth = getContext().getResources().getDimensionPixelSize(
R.dimen.chart_item_width);
dotRadius = getContext().getResources().getDimensionPixelSize(
R.dimen.chart_dot_radius);
fontSiz... |
diff --git a/lib/packetpig/src/main/java/com/packetloop/packetpig/loaders/pcap/packet/DnsPacketAllRecordReader.java b/lib/packetpig/src/main/java/com/packetloop/packetpig/loaders/pcap/packet/DnsPacketAllRecordReader.java
index 403f5c9..2701f95 100644
--- a/lib/packetpig/src/main/java/com/packetloop/packetpig/loaders/pc... | false | true | public boolean nextKeyValue() throws IOException, InterruptedException {
if (tupleQueue.size() > 0) {
tuple = tupleQueue.remove(0);
return true;
}
try {
// keep going until the decoder says it found a good one.
PcapPacket packet = null;
... | public boolean nextKeyValue() throws IOException, InterruptedException {
if (tupleQueue.size() > 0) {
tuple = tupleQueue.remove(0);
return true;
}
try {
// keep going until the decoder says it found a good one.
PcapPacket packet = null;
... |
diff --git a/javaTools/src/main/java/song/chandler/PrintPermGen.java b/javaTools/src/main/java/song/chandler/PrintPermGen.java
index d988faf..4b75294 100644
--- a/javaTools/src/main/java/song/chandler/PrintPermGen.java
+++ b/javaTools/src/main/java/song/chandler/PrintPermGen.java
@@ -1,253 +1,253 @@
package song.cha... | true | true | public static void main(String args[]) throws Exception {
if (args.length == 0 || args.length > 1) {
try {
// for debug convenient,if you run in IDE, just comment the exception, don't need to modify others
args = new String[] {
"2460"
... | public static void main(String args[]) throws Exception {
if (args.length == 0 || args.length > 1) {
try {
// for debug convenient,if you run in IDE, just comment the exception, don't need to modify others
args = new String[] {
"2460"
... |
diff --git a/oak-performance/src/test/java/org/apache/jackrabbit/mk/tests/perf/TenancyTest.java b/oak-performance/src/test/java/org/apache/jackrabbit/mk/tests/perf/TenancyTest.java
index 340aeca..03b4fdd 100644
--- a/oak-performance/src/test/java/org/apache/jackrabbit/mk/tests/perf/TenancyTest.java
+++ b/oak-performanc... | true | true | public void create10Tenants() throws InterruptedException,
UnknownHostException {
TenantCreator tc;
int tenantsNumber = 3;
dbWriter.initialCommit("syncOAK");
dbWriter.syncMongos(mongosNumber, "syncOAK");
threadExecutor = Executors.newFixedThreadPool(tenantsNumber);
for (int i = 1; i <= tenantsNumber;... | public void create10Tenants() throws InterruptedException,
UnknownHostException {
TenantCreator tc;
int tenantsNumber = 3;
dbWriter.initialCommit("syncOAK");
dbWriter.syncMongos(mongosNumber, "syncOAK");
threadExecutor = Executors.newFixedThreadPool(tenantsNumber);
for (int i = 1; i <= tenantsNumber;... |
diff --git a/common/logisticspipes/routing/LogisticsOrderManager.java b/common/logisticspipes/routing/LogisticsOrderManager.java
index 02ea2cd7..546d5692 100644
--- a/common/logisticspipes/routing/LogisticsOrderManager.java
+++ b/common/logisticspipes/routing/LogisticsOrderManager.java
@@ -1,108 +1,106 @@
/**
* Cop... | false | true | public void addOrder(ItemIdentifierStack stack, IRequestItems requester, List<IRelayItem> relays) {
for (Pair<ItemIdentifierStack,IRequestItems> request : _orders){
if (request.getValue1().getItem() == stack.getItem()) {
if(request.getValue2() == requester) {
request.getValue1().stackSize += stack.stackS... | public void addOrder(ItemIdentifierStack stack, IRequestItems requester, List<IRelayItem> relays) {
for (Pair3<ItemIdentifierStack,IRequestItems,List<IRelayItem>> request : _orders){
if (request.getValue1().getItem() == stack.getItem() && request.getValue2() == requester) {
stack.stackSize += request.getValue... |
diff --git a/seqware-pipeline/src/main/java/net/sourceforge/seqware/pipeline/workflowV2/WorkflowDataModelFactory.java b/seqware-pipeline/src/main/java/net/sourceforge/seqware/pipeline/workflowV2/WorkflowDataModelFactory.java
index 2dc224b9..1b722801 100644
--- a/seqware-pipeline/src/main/java/net/sourceforge/seqware/pi... | true | true | public AbstractWorkflowDataModel getWorkflowDataModel(Integer workflowAccession, Integer workflowRunAccession) {
String bundlePath = null;
Map<String, String> metaInfo = null;
Log.info("factory attempting to find bundle");
if (workflowAccession != null) {
Log.info("factor... | public AbstractWorkflowDataModel getWorkflowDataModel(Integer workflowAccession, Integer workflowRunAccession) {
String bundlePath = null;
Map<String, String> metaInfo = null;
Log.info("factory attempting to find bundle");
if (workflowAccession != null) {
Log.info("factor... |
diff --git a/test/src/com/redhat/ceylon/compiler/java/test/misc/MiscTest.java b/test/src/com/redhat/ceylon/compiler/java/test/misc/MiscTest.java
index 8e0565bb7..3df98fcd3 100755
--- a/test/src/com/redhat/ceylon/compiler/java/test/misc/MiscTest.java
+++ b/test/src/com/redhat/ceylon/compiler/java/test/misc/MiscTest.java... | true | true | public void compileRuntime(){
cleanCars("build/classes-runtime");
java.util.List<File> sourceFiles = new ArrayList<File>();
String ceylonSourcePath = "../ceylon.language/src";
String javaSourcePath = "../ceylon.language/runtime";
String[] ceylonPack... | public void compileRuntime(){
cleanCars("build/classes-runtime");
java.util.List<File> sourceFiles = new ArrayList<File>();
String ceylonSourcePath = "../ceylon.language/src";
String javaSourcePath = "../ceylon.language/runtime";
String[] ceylonPack... |
diff --git a/src/plugins/Freetalk/SubscribedBoard.java b/src/plugins/Freetalk/SubscribedBoard.java
index 90bddc20..e466d03d 100644
--- a/src/plugins/Freetalk/SubscribedBoard.java
+++ b/src/plugins/Freetalk/SubscribedBoard.java
@@ -1,1117 +1,1117 @@
package plugins.Freetalk;
import java.util.Arrays;
import java.uti... | true | true | protected synchronized final void addMessage(Message newMessage) throws Exception {
Logger.debug(this, "addMessage " + newMessage);
// Sanity checks
if(newMessage instanceof OwnMessage) {
/* We do not add the message to the boards it is posted to because the user should only see the messa... | protected synchronized final void addMessage(Message newMessage) throws Exception {
Logger.debug(this, "addMessage " + newMessage);
// Sanity checks
if(newMessage instanceof OwnMessage) {
/* We do not add the message to the boards it is posted to because the user should only see the messa... |
diff --git a/src/net/rptools/maptool/client/ui/zone/ZoneRenderer.java b/src/net/rptools/maptool/client/ui/zone/ZoneRenderer.java
index 8ecb24a6..7d6042c4 100644
--- a/src/net/rptools/maptool/client/ui/zone/ZoneRenderer.java
+++ b/src/net/rptools/maptool/client/ui/zone/ZoneRenderer.java
@@ -1,1680 +1,1680 @@
/* The MIT... | true | true | protected void renderTokens(Graphics2D g, List<Token> tokenList) {
Grid grid = zone.getGrid();
Dimension screenSize = getSize();
int scaledGridWidth = (int)(grid.getCellWidth()*getScale());
int scaledGridHeight = (int)(grid.getCellHeight()*getScale());
Rectangle clipBound... | protected void renderTokens(Graphics2D g, List<Token> tokenList) {
Grid grid = zone.getGrid();
Dimension screenSize = getSize();
int scaledGridWidth = (int)(grid.getCellWidth()*getScale());
int scaledGridHeight = (int)(grid.getCellHeight()*getScale());
Rectangle clipBound... |
diff --git a/src/main/java/net/visualillusionsent/minecraft/plugin/canary/VisualIllusionsCanaryPlugin.java b/src/main/java/net/visualillusionsent/minecraft/plugin/canary/VisualIllusionsCanaryPlugin.java
index e530e5c..31c1085 100644
--- a/src/main/java/net/visualillusionsent/minecraft/plugin/canary/VisualIllusionsCanar... | true | true | public final long[] getVersionArray() {
long[] mmr = new long[3];
String[] vbreakdown = getVersion().split("\\.");
mmr[0] = Long.valueOf(vbreakdown[0]);
mmr[1] = Long.valueOf(vbreakdown[1]);
mmr[2] = Long.valueOf(vbreakdown[2]);
return mmr;
}
| public final long[] getVersionArray() {
long[] mmr = new long[3];
String[] vbreakdown = getVersion().replace("-SNAPSHOT", "").split("\\.");
mmr[0] = Long.valueOf(vbreakdown[0]);
mmr[1] = Long.valueOf(vbreakdown[1]);
mmr[2] = Long.valueOf(vbreakdown[2]);
return mmr;
... |
diff --git a/src/com/librelio/utils/PlistDownloader.java b/src/com/librelio/utils/PlistDownloader.java
index c9accd7..0a1a507 100644
--- a/src/com/librelio/utils/PlistDownloader.java
+++ b/src/com/librelio/utils/PlistDownloader.java
@@ -1,111 +1,113 @@
package com.librelio.utils;
import android.content.Context;
im... | false | true | public static void doLoad(final Context context, final String plistName, boolean force) {
final PlistItem plistItem = new PlistItem(plistName, "", context);
// Don't update if updates not required - i.e. waupdate=0
if (plistItem.getUpdateFrequency() == -1) {
EventBus.getDefault(... | public static void doLoad(final Context context, final String plistName, boolean force) {
final PlistItem plistItem = new PlistItem(plistName, "", context);
// Don't update if updates not required - i.e. waupdate=0
if (plistItem.getUpdateFrequency() == -1) {
EventBus.getDefault(... |
diff --git a/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/kmelia/servlets/KmeliaRequestRouter.java b/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/kmelia/servlets/KmeliaRequestRouter.java
index d9087f97c..6ddc053ee 100644
--- a/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/kmelia/servlets/Km... | false | true | public String getDestination(String function, KmeliaSessionController kmelia,
HttpServletRequest request) {
SilverTrace.info("kmelia", "KmeliaRequestRouter.getDestination()", "root.MSG_GEN_PARAM_VALUE",
"function = " + function);
String destination = "";
String rootDestination = "/kmelia... | public String getDestination(String function, KmeliaSessionController kmelia,
HttpServletRequest request) {
SilverTrace.info("kmelia", "KmeliaRequestRouter.getDestination()", "root.MSG_GEN_PARAM_VALUE",
"function = " + function);
String destination = "";
String rootDestination = "/kmelia... |
diff --git a/src/test/java/org/dada/core/TableTestCase.java b/src/test/java/org/dada/core/TableTestCase.java
index e393d35..4fa175f 100644
--- a/src/test/java/org/dada/core/TableTestCase.java
+++ b/src/test/java/org/dada/core/TableTestCase.java
@@ -1,146 +1,146 @@
/*
* Copyright (c) 2009, Julian Gosnell
* All righ... | true | true | public void testSparseOpenTableRaceCondition() throws Exception {
final CountDownLatch latch = new CountDownLatch(1);
SparseOpenTable.Factory<Integer, String> factory = new SparseOpenTable.Factory<Integer, String>() {
@Override
public String create(Integer key) throws Exception {
latch.await();
ret... | public void testSparseOpenTableRaceCondition() throws Exception {
final CountDownLatch latch = new CountDownLatch(1);
SparseOpenTable.Factory<Integer, String> factory = new SparseOpenTable.Factory<Integer, String>() {
@Override
public String create(Integer key) throws Exception {
latch.await();
ret... |
diff --git a/contrib/clients/TSCA/java/src/JavaClientThrift.java b/contrib/clients/TSCA/java/src/JavaClientThrift.java
index 15afaafe3..477b88789 100644
--- a/contrib/clients/TSCA/java/src/JavaClientThrift.java
+++ b/contrib/clients/TSCA/java/src/JavaClientThrift.java
@@ -1,83 +1,83 @@
// JavaClientThrift.java
impo... | true | true | public static void perform(StateService.Client client, String[] args) throws TException{
Date date = new Date();
dataArgs data = new dataArgs();
List<State> list = new ArrayList();
try{
BufferedReader file = new BufferedReader(new FileReader(args[0]));
try{
String line = new String();
line = ... | public static void perform(StateService.Client client, String[] args) throws TException{
Date date = new Date();
dataArgs data = new dataArgs();
List<State> list = new ArrayList();
try{
BufferedReader file = new BufferedReader(new FileReader(args[0]));
try{
String line = new String();
line = ... |
diff --git a/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java b/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java
index fd395a710..c9c3eac76 100644
--- a/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java
+++ ... | true | true | private Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops) {
Itinerary itinerary = makeEmptyItinerary(path);
Leg leg = null;
CoordinateArrayListSequence coordinates = new CoordinateArrayListSequence();
double previousElevation = Double.MAX_VALUE;
int ... | private Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops) {
Itinerary itinerary = makeEmptyItinerary(path);
Leg leg = null;
CoordinateArrayListSequence coordinates = new CoordinateArrayListSequence();
double previousElevation = Double.MAX_VALUE;
int ... |
diff --git a/src/org/apache/xalan/xsltc/cmdline/Transform.java b/src/org/apache/xalan/xsltc/cmdline/Transform.java
index 331dedad..62d5ac52 100644
--- a/src/org/apache/xalan/xsltc/cmdline/Transform.java
+++ b/src/org/apache/xalan/xsltc/cmdline/Transform.java
@@ -1,327 +1,341 @@
/*
* @(#)$Id$
*
* The Apache Softw... | true | true | private void doTransform() {
try {
final Class clazz = Class.forName(_className);
final Translet translet = (Translet)clazz.newInstance();
// Create a SAX parser and get the XMLReader object it uses
final SAXParserFactory factory = SAXParserFactory.newInstance();
try {
factory.setFeatur... | private void doTransform() {
try {
final Class clazz = Class.forName(_className);
final Translet translet = (Translet)clazz.newInstance();
// Create a SAX parser and get the XMLReader object it uses
final SAXParserFactory factory = SAXParserFactory.newInstance();
try {
factory.setFeatur... |
diff --git a/src/project/corba/server/CorbaServer.java b/src/project/corba/server/CorbaServer.java
index dd607a5..70df8c9 100644
--- a/src/project/corba/server/CorbaServer.java
+++ b/src/project/corba/server/CorbaServer.java
@@ -1,82 +1,87 @@
package corba.server;
import org.omg.CosNaming.*;
import org.omg.CosNami... | true | true | public static void main(String[]args){
try{
Runtime.getRuntime().exec("cmd /c start src/project/corba/server/orbd.exe"); // start orbd service
ORB orb = ORB.init(args, null);
POA root = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
root.the_POAManager().activate();
CorbaImpl cor... | public static void main(String[]args){
try{
Runtime.getRuntime().exec("cmd /c start src/project/corba/server/orbd.exe"); // start orbd service
ORB orb = ORB.init(args, null);
POA root = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
root.the_POAManager().activate();
CorbaImpl cor... |
diff --git a/java/com/objogate/wl/probe/SingleComponentFinder.java b/java/com/objogate/wl/probe/SingleComponentFinder.java
index aee1be1..37e4826 100644
--- a/java/com/objogate/wl/probe/SingleComponentFinder.java
+++ b/java/com/objogate/wl/probe/SingleComponentFinder.java
@@ -1,50 +1,50 @@
package com.objogate.wl.prob... | false | true | public void describeTo(Description description) {
description.appendText("exactly 1 ")
.appendDescriptionOf(finder);
if (finder.isSatisfied()) {
if (isSingle()) {
description.appendText("\nFound ").appendDescriptionOf(finder);
} else {
... | public void describeTo(Description description) {
description.appendText("exactly 1 ")
.appendDescriptionOf(finder);
if (finder.isSatisfied()) {
if (isSingle()) {
description.appendText("\nFound 1 ").appendDescriptionOf(finder);
} else {
... |
diff --git a/test/Misc.java b/test/Misc.java
index c1a5a016..57bb0180 100644
--- a/test/Misc.java
+++ b/test/Misc.java
@@ -1,210 +1,210 @@
public class Misc {
private interface Bar {
public int baz();
}
private static abstract class Bim implements Bar { }
private static class Baz extends Bim {
... | true | true | public static void main(String[] args) {
Bim bim = new Baz();
expect(bim.baz() == 42);
expect(queryDefault(new Object()) != null);
{ Foo foo = new Foo();
int x = foo.a + foo.b + foo.c;
bar(foo.a, foo.b, foo.c);
}
byte2 = 0;
expect(byte2 == 0);
boolean v = Boolean.valueO... | public static void main(String[] args) {
Bim bim = new Baz();
expect(bim.baz() == 42);
expect(queryDefault(new Object()) != null);
{ Foo foo = new Foo();
int x = foo.a + foo.b + foo.c;
bar(foo.a, foo.b, foo.c);
}
byte2 = 0;
expect(byte2 == 0);
boolean v = Boolean.valueO... |
diff --git a/src/org/opensolaris/opengrok/index/Indexer.java b/src/org/opensolaris/opengrok/index/Indexer.java
index a713c2e..6d36a9f 100644
--- a/src/org/opensolaris/opengrok/index/Indexer.java
+++ b/src/org/opensolaris/opengrok/index/Indexer.java
@@ -1,664 +1,664 @@
/*
* CDDL HEADER START
*
* The contents of t... | true | true | public static void main(String argv[]) {
boolean runIndex = true;
boolean update = true;
boolean optimizedChanged = false;
CommandLineOptions cmdOptions = new CommandLineOptions();
if (argv.length == 0) {
System.err.println(cmdOptions.getUsage());
Sys... | public static void main(String argv[]) {
boolean runIndex = true;
boolean update = true;
boolean optimizedChanged = false;
CommandLineOptions cmdOptions = new CommandLineOptions();
if (argv.length == 0) {
System.err.println(cmdOptions.getUsage());
Sys... |
diff --git a/src/edu/stanford/mobisocial/dungbeetle/NearbyActivity.java b/src/edu/stanford/mobisocial/dungbeetle/NearbyActivity.java
index 13e8c94..1d6f0f1 100644
--- a/src/edu/stanford/mobisocial/dungbeetle/NearbyActivity.java
+++ b/src/edu/stanford/mobisocial/dungbeetle/NearbyActivity.java
@@ -1,797 +1,797 @@
pack... | true | true | protected List<NearbyItem> doInBackground(Void... params) {
try {
mSocket.joinGroup(InetAddress.getByName(NEARBY_GROUP));
} catch (IOException e) {
Log.w(TAG, "Failed to listen on multicast", e);
mSocket = null;
}
wh... | protected List<NearbyItem> doInBackground(Void... params) {
try {
mSocket.joinGroup(InetAddress.getByName(NEARBY_GROUP));
} catch (IOException e) {
Log.w(TAG, "Failed to listen on multicast", e);
mSocket = null;
}
wh... |
diff --git a/WEB-INF/src/org/cdlib/xtf/textEngine/QueryResult.java b/WEB-INF/src/org/cdlib/xtf/textEngine/QueryResult.java
index ef7a3924..2d94585d 100644
--- a/WEB-INF/src/org/cdlib/xtf/textEngine/QueryResult.java
+++ b/WEB-INF/src/org/cdlib/xtf/textEngine/QueryResult.java
@@ -1,315 +1,315 @@
package org.cdlib.xtf.te... | true | true | private void structureDocHits(DocHit[] docHits, int startDoc, StringBuffer buf)
{
if (docHits == null)
return;
for (int i = 0; i < docHits.length; i++)
{
DocHit docHit = docHits[i];
String scoreStr;
if (scoresNormalized)
scoreStr = Integer.toString(Math.round(docHit.s... | private void structureDocHits(DocHit[] docHits, int startDoc, StringBuffer buf)
{
if (docHits == null)
return;
for (int i = 0; i < docHits.length; i++)
{
DocHit docHit = docHits[i];
String scoreStr;
if (scoresNormalized)
scoreStr = Integer.toString(Math.round(docHit.s... |
diff --git a/src/main/java/no/citrus/localprioritization/CompilationUnitProvider.java b/src/main/java/no/citrus/localprioritization/CompilationUnitProvider.java
index 3881bbb..2f4d5c1 100644
--- a/src/main/java/no/citrus/localprioritization/CompilationUnitProvider.java
+++ b/src/main/java/no/citrus/localprioritization/... | true | true | public static List<CompilationUnit> getCompilationUnits(List<File> files) throws ParseException, IOException {
List<CompilationUnit> compilationUnits = new ArrayList<CompilationUnit>();
for(File f : files){
compilationUnits.add(JavaParser.parse(f));
}
return compilationUnits;
}
| public static List<CompilationUnit> getCompilationUnits(List<File> files) throws ParseException, IOException {
List<CompilationUnit> compilationUnits = new ArrayList<CompilationUnit>();
for(File f : files){
try {
compilationUnits.add(JavaParser.parse(f));
} catch (Exception e) {
}
}
return compila... |
diff --git a/src/net/java/sip/communicator/impl/netaddr/NetworkConfigurationWatcher.java b/src/net/java/sip/communicator/impl/netaddr/NetworkConfigurationWatcher.java
index 89208a359..cf2ebcab7 100644
--- a/src/net/java/sip/communicator/impl/netaddr/NetworkConfigurationWatcher.java
+++ b/src/net/java/sip/communicator/i... | false | true | private void checkNetworkInterfaces(boolean fireEvents)
{
try
{
// when waking up and there are no interfaces
// give time for devices to come up fully
// before checking with them
if(activeInterfaces.size() == 0)
{
sync... | private void checkNetworkInterfaces(boolean fireEvents)
{
try
{
// when there is a net change
// give time for devices to come up/down fully
// before checking with them
synchronized(this)
{
try{
wait... |
diff --git a/loci/formats/in/TiffReader.java b/loci/formats/in/TiffReader.java
index e9acd2391..84ab324ae 100644
--- a/loci/formats/in/TiffReader.java
+++ b/loci/formats/in/TiffReader.java
@@ -1,515 +1,518 @@
//
// TiffReader.java
//
/*
LOCI Bio-Formats package for reading and converting biological file formats.... | true | true | protected void initStandardMetadata() throws FormatException, IOException {
super.initStandardMetadata();
String comment = (String) getMeta("Comment");
status("Checking comment style");
// check for OME-XML in TIFF comment (OME-TIFF format)
boolean omeTiff = comment != null && comment.indexOf("o... | protected void initStandardMetadata() throws FormatException, IOException {
super.initStandardMetadata();
String comment = (String) getMeta("Comment");
status("Checking comment style");
// check for OME-XML in TIFF comment (OME-TIFF format)
boolean omeTiff = comment != null && comment.indexOf("o... |
diff --git a/software/examples/java/ExampleSimple.java b/software/examples/java/ExampleSimple.java
index ffeff27..7622c2f 100644
--- a/software/examples/java/ExampleSimple.java
+++ b/software/examples/java/ExampleSimple.java
@@ -1,31 +1,31 @@
import com.tinkerforge.BrickletBarometer;
import com.tinkerforge.IPConnecti... | true | true | public static void main(String args[]) throws Exception {
IPConnection ipcon = new IPConnection(); // Create IP connection
BrickletBarometer b = new BrickletBarometer(UID, ipcon); // Create device object
ipcon.connect(HOST, PORT); // Connect to brickd
// Don't use device before ipcon is connected
// Get cu... | public static void main(String args[]) throws Exception {
IPConnection ipcon = new IPConnection(); // Create IP connection
BrickletBarometer b = new BrickletBarometer(UID, ipcon); // Create device object
ipcon.connect(HOST, PORT); // Connect to brickd
// Don't use device before ipcon is connected
// Get cu... |
diff --git a/SimplyVanish/src/asofold/simplyvanish/config/Settings.java b/SimplyVanish/src/asofold/simplyvanish/config/Settings.java
index 521c2a0..1ee4fbb 100644
--- a/SimplyVanish/src/asofold/simplyvanish/config/Settings.java
+++ b/SimplyVanish/src/asofold/simplyvanish/config/Settings.java
@@ -1,140 +1,140 @@
packag... | true | true | public void applyConfig(Configuration config) {
// Exp workaround.
expThreshold = config.getDouble("pickup.exp.workaround.distance.threshold");
expEnabled = config.getBoolean("pickup.exp.workaround.enabled") && config.getBoolean("pickup.exp.workaround.active", true);
expKillDist = config.getDouble("pickup.exp.... | public void applyConfig(Configuration config) {
// Exp workaround.
expThreshold = config.getDouble("pickup.exp.workaround.distance.threshold");
expEnabled = config.getBoolean("pickup.exp.workaround.enabled") && config.getBoolean("pickup.exp.workaround.active", true);
expKillDist = config.getDouble("pickup.exp.... |
diff --git a/src/main/java/net/serubin/serubans/commands/WarnCommand.java b/src/main/java/net/serubin/serubans/commands/WarnCommand.java
index 52ece95..933f0e9 100644
--- a/src/main/java/net/serubin/serubans/commands/WarnCommand.java
+++ b/src/main/java/net/serubin/serubans/commands/WarnCommand.java
@@ -1,117 +1,118 @@... | true | true | public boolean onCommand(CommandSender sender, Command cmd,
String commandLabel, String[] args) {
Player victim;
String mod;
String reason = "";
int display = SeruBans.SHOW;
boolean silent = false;
if (commandLabel.equalsIgnoreCase("warn")) {
... | public boolean onCommand(CommandSender sender, Command cmd,
String commandLabel, String[] args) {
Player victim;
String mod;
String reason = "";
int display = SeruBans.SHOW;
boolean silent = false;
if (commandLabel.equalsIgnoreCase("warn")) {
... |
diff --git a/src-pos/com/openbravo/pos/epm/DataLogicPresenceManagement.java b/src-pos/com/openbravo/pos/epm/DataLogicPresenceManagement.java
index 47b4a76..3342010 100644
--- a/src-pos/com/openbravo/pos/epm/DataLogicPresenceManagement.java
+++ b/src-pos/com/openbravo/pos/epm/DataLogicPresenceManagement.java
@@ -1,327 +... | false | true | public void init(Session s){
this.s = s;
breakread = new SerializerRead() {
public Object readValues(DataRead dr) throws BasicException {
return new Break(
dr.getString(1),
dr.getString(2),
dr.getStr... | public void init(Session s){
this.s = s;
breakread = new SerializerRead() {
public Object readValues(DataRead dr) throws BasicException {
return new Break(
dr.getString(1),
dr.getString(2),
dr.getStr... |
diff --git a/CLIENT/src/com/kaist/crescendo/manager/ComManager.java b/CLIENT/src/com/kaist/crescendo/manager/ComManager.java
index f86356f..4c42ee8 100644
--- a/CLIENT/src/com/kaist/crescendo/manager/ComManager.java
+++ b/CLIENT/src/com/kaist/crescendo/manager/ComManager.java
@@ -1,40 +1,43 @@
package com.kaist.cresce... | true | true | public String processMsg(JSONObject msg) {
int result = MsgInfo.STATUS_OK;
String jsonString = null;
result = handler.write(msg);
if(result == MsgInfo.STATUS_OK) {
jsonString = handler.read();
} else {
Log.e(TAG, "Netwrok error : " + result);
try {
msg.put(MsgInfo.MSGRET_LABEL, result);
... | public String processMsg(JSONObject msg) {
int result = MsgInfo.STATUS_OK;
String jsonString = null;
result = handler.write(msg);
if(result == MsgInfo.STATUS_OK) {
jsonString = handler.read();
} else {
Log.e(TAG, "Netwrok error : " + result);
try {
msg.put(MsgInfo.MSGRET_LABEL, result);
... |
diff --git a/src/id/co/mondial/android/rss/mtsreader/RssItems.java b/src/id/co/mondial/android/rss/mtsreader/RssItems.java
index b6933b7..cef3f7c 100644
--- a/src/id/co/mondial/android/rss/mtsreader/RssItems.java
+++ b/src/id/co/mondial/android/rss/mtsreader/RssItems.java
@@ -1,221 +1,220 @@
package id.co.mondial.andr... | true | true | public void run() {
String url = getResources().getStringArray(R.array.channels_url)[channelId];
// get redirected url
HttpClient client = new DefaultHttpClient();
HttpResponse response = null;
try {
HttpGet request = new HttpGet(url);
response ... | public void run() {
String url = getResources().getStringArray(R.array.channels_url)[channelId];
// get redirected url
HttpClient client = new DefaultHttpClient();
HttpResponse response = null;
try {
HttpGet request = new HttpGet(url);
response ... |
diff --git a/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/GerritTaskEditorPage.java b/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerrit/ui/editor/GerritTaskEditorPage.java
index 4c341708..c93fa4c4 100644
--- a/org.eclipse.mylyn.gerrit.ui/src/org/eclipse/mylyn/internal/gerr... | false | true | protected Set<TaskEditorPartDescriptor> createPartDescriptors() {
Set<TaskEditorPartDescriptor> descriptors = super.createPartDescriptors();
for (Iterator<TaskEditorPartDescriptor> it = descriptors.iterator(); it.hasNext();) {
TaskEditorPartDescriptor descriptor = it.next();
if (PATH_ACTIONS.equals(descripto... | protected Set<TaskEditorPartDescriptor> createPartDescriptors() {
Set<TaskEditorPartDescriptor> descriptors = super.createPartDescriptors();
TaskEditorPartDescriptor commentsDescriptor = null;
TaskEditorPartDescriptor newCommentsDescriptor = null;
for (Iterator<TaskEditorPartDescriptor> it = descriptors.iterat... |
diff --git a/natsuo/src/main/java/org/ritsuka/natsuo/yaconfig/SafeListTransformer.java b/natsuo/src/main/java/org/ritsuka/natsuo/yaconfig/SafeListTransformer.java
index d69420a..8af2947 100644
--- a/natsuo/src/main/java/org/ritsuka/natsuo/yaconfig/SafeListTransformer.java
+++ b/natsuo/src/main/java/org/ritsuka/natsuo/y... | true | true | public final List<K> construct(final Object val) {
if (!(val instanceof List)) {
throw new IllegalArgumentException("incorrect parsers list type");
}
List rawParsers = (List) val;
List<K> parsers = new ArrayList<K>();
for (Object item : rawParsers) {
... | public final List<K> construct(final Object val) {
if (!(val instanceof List)) {
throw new IllegalArgumentException("incorrect parsers list type");
}
List rawParsers = (List) val;
List<K> parsers = new ArrayList<K>();
for (Object item : rawParsers) {
... |
diff --git a/src/org/jruby/ext/posix/WindowsLibCFunctionMapper.java b/src/org/jruby/ext/posix/WindowsLibCFunctionMapper.java
index 8355f0138..515aba08e 100644
--- a/src/org/jruby/ext/posix/WindowsLibCFunctionMapper.java
+++ b/src/org/jruby/ext/posix/WindowsLibCFunctionMapper.java
@@ -1,32 +1,33 @@
/*
* POSIXFunction... | true | true | public WindowsLibCFunctionMapper() {
methodNameMap = new HashMap<String, String>();
methodNameMap.put("getpid", "_getpid");
methodNameMap.put("chmod", "_chmod");
methodNameMap.put("stat", "_stat");
methodNameMap.put("mkdir", "_mkdir");
}
| public WindowsLibCFunctionMapper() {
methodNameMap = new HashMap<String, String>();
methodNameMap.put("getpid", "_getpid");
methodNameMap.put("chmod", "_chmod");
methodNameMap.put("fstat", "_fstat");
methodNameMap.put("stat", "_stat");
methodNameMap.put("mkdi... |
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/RefPatternBox.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/RefPatternBox.java
index a0a3d1746..0cf5d4888 100644
--- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/admin/RefPatternBox.java
+++ b/gerrit-gwtui/src/main/java/c... | true | true | public String parse(CharSequence text) throws ParseException {
String ref = text.toString();
if (ref.isEmpty()) {
throw new ParseException(Util.C.refErrorEmpty(), 0);
}
if (ref.charAt(0) == '/') {
throw new ParseException(Util.C.refErrorBeginSlash(), 0);
}
fina... | public String parse(CharSequence text) throws ParseException {
String ref = text.toString();
if (ref.isEmpty()) {
throw new ParseException(Util.C.refErrorEmpty(), 0);
}
if (ref.charAt(0) == '/') {
throw new ParseException(Util.C.refErrorBeginSlash(), 0);
}
if (... |
diff --git a/modules/core/src/main/java/org/immutant/core/ClojureRuntime.java b/modules/core/src/main/java/org/immutant/core/ClojureRuntime.java
index 8d7d350e..262676a4 100644
--- a/modules/core/src/main/java/org/immutant/core/ClojureRuntime.java
+++ b/modules/core/src/main/java/org/immutant/core/ClojureRuntime.java
@... | true | true | protected Object call(Class klass, Object obj, String methodName, Object... args) {
ClassLoader originalClassLoader = Thread.currentThread().getContextClassLoader();
if (klass == null) {
throw new IllegalArgumentException( "You must provide a class" );
}
try {
... | protected Object call(Class klass, Object obj, String methodName, Object... args) {
ClassLoader originalClassLoader = Thread.currentThread().getContextClassLoader();
if (klass == null) {
throw new IllegalArgumentException( "You must provide a class" );
}
try {
... |
diff --git a/src/main/java/grisu/control/GrisuUserDetails.java b/src/main/java/grisu/control/GrisuUserDetails.java
index c56434a..30ef271 100644
--- a/src/main/java/grisu/control/GrisuUserDetails.java
+++ b/src/main/java/grisu/control/GrisuUserDetails.java
@@ -1,236 +1,236 @@
package grisu.control;
import grisu.bac... | true | true | public synchronized Credential fetchCredential()
throws AuthenticationException {
// myLogger.debug("Getting proxy credential...");
if (authentication == null) {
throw new AuthenticationException("No authentication token set.") {
};
}
if ((proxy != null) && proxy.isValid()) {
// myLogger.debug(... | public synchronized Credential fetchCredential()
throws AuthenticationException {
// myLogger.debug("Getting proxy credential...");
if (authentication == null) {
throw new AuthenticationException("No authentication token set.") {
};
}
if ((proxy != null) && proxy.isValid()) {
// myLogger.debug(... |
diff --git a/java/tools/src/joptimizer/optimizer/peephole/PeepGetfield.java b/java/tools/src/joptimizer/optimizer/peephole/PeepGetfield.java
index 5552f829..e5819bd8 100644
--- a/java/tools/src/joptimizer/optimizer/peephole/PeepGetfield.java
+++ b/java/tools/src/joptimizer/optimizer/peephole/PeepGetfield.java
@@ -1,73 ... | true | true | public StmtHandle processStatement(StmtHandle stmt) {
PutfieldStmt put = (PutfieldStmt) stmt.getStatement();
StmtHandle nextStmt = stmt.getNext();
if ( nextStmt == null || !(nextStmt.getStatement() instanceof GetfieldStmt) ) {
return null;
}
GetfieldStmt get = ... | public StmtHandle processStatement(StmtHandle stmt) {
PutfieldStmt put = (PutfieldStmt) stmt.getStatement();
StmtHandle nextStmt = stmt.getNext();
if ( nextStmt == null || !(nextStmt.getStatement() instanceof GetfieldStmt) ) {
return null;
}
GetfieldStmt get = ... |
diff --git a/src/main/java/org/unitedid/yhsm/internal/CommandHandler.java b/src/main/java/org/unitedid/yhsm/internal/CommandHandler.java
index 4910de5..a5abb85 100644
--- a/src/main/java/org/unitedid/yhsm/internal/CommandHandler.java
+++ b/src/main/java/org/unitedid/yhsm/internal/CommandHandler.java
@@ -1,84 +1,84 @@
... | true | true | private static byte[] readDevice(DeviceHandler device, byte command) throws YubiHSMErrorException {
byte[] result = new byte[0];
if (device.available() > 0) {
result = device.read(2);
}
if (result.length == 0) {
reset(device);
throw new YubiHSMErr... | private static byte[] readDevice(DeviceHandler device, byte command) throws YubiHSMErrorException {
byte[] result = new byte[0];
if (device.available() > 0) {
result = device.read(2);
}
if (result.length == 0) {
reset(device);
throw new YubiHSMErr... |
diff --git a/dat255_group3/src/com/dat255_group3/utils/WorldUtil.java b/dat255_group3/src/com/dat255_group3/utils/WorldUtil.java
index 4be5034..b6ccb20 100644
--- a/dat255_group3/src/com/dat255_group3/utils/WorldUtil.java
+++ b/dat255_group3/src/com/dat255_group3/utils/WorldUtil.java
@@ -1,143 +1,143 @@
package com.da... | false | true | private void addToLists() {
for(int i=0; i<map.getLayers().getCount(); i++) {
TiledMapTileLayer currentLayer = (TiledMapTileLayer)map.getLayers().get(i);
if(currentLayer.getName().equalsIgnoreCase("Solids")) {
for(int x=0; x<currentLayer.getWidth(); x++) {
for(int y=0; y<currentLayer.getHeight(); y++)... | private void addToLists() {
for(int i=0; i<map.getLayers().getCount(); i++) {
TiledMapTileLayer currentLayer = (TiledMapTileLayer)map.getLayers().get(i);
if(currentLayer.getName().equalsIgnoreCase("Solids")) {
for(int x=0; x<currentLayer.getWidth(); x++) {
for(int y=0; y<currentLayer.getHeight(); y++)... |
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/RepositoryExternalizationParticipant.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/RepositoryExternalizationParticipant.java
index 5d9a3519a..ef1bf9b15 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/ec... | true | true | public void execute(IExternalizationContext context, IProgressMonitor monitor) throws CoreException {
Assert.isNotNull(context);
String filePath = context.getRootPath() + File.separator + TaskRepositoryManager.DEFAULT_REPOSITORIES_FILE;
final File repositoriesFile = new File(filePath);
if (!repositoriesFile.... | public void execute(IExternalizationContext context, IProgressMonitor monitor) throws CoreException {
Assert.isNotNull(context);
String filePath = context.getRootPath() + File.separator + TaskRepositoryManager.DEFAULT_REPOSITORIES_FILE;
final File repositoriesFile = new File(filePath);
if (!repositoriesFile.... |
diff --git a/core/src/test/java/org/apache/mahout/cf/taste/hadoop/similarity/item/ItemSimilarityTest.java b/core/src/test/java/org/apache/mahout/cf/taste/hadoop/similarity/item/ItemSimilarityTest.java
index 69f71047..4ef979ec 100644
--- a/core/src/test/java/org/apache/mahout/cf/taste/hadoop/similarity/item/ItemSimilari... | true | true | public void testCompleteJob() throws Exception {
String tmpDirPath = System.getProperty("java.io.tmpdir") +
ItemSimilarityTest.class.getCanonicalName();
File tmpDir = new File(tmpDirPath);
try {
if (tmpDir.exists()) {
recursiveDelete(tmpDir);
} else {
tmpDir.mkdirs(... | public void testCompleteJob() throws Exception {
String tmpDirProp = System.getProperty("java.io.tmpdir");
if (!tmpDirProp.endsWith("/")) {
tmpDirProp += "/";
}
String tmpDirPath = tmpDirProp + ItemSimilarityTest.class.getCanonicalName();
File tmpDir = new File(tmpDirPath);
try {
... |
diff --git a/src/me/stutiguias/webportal/model/Enchant.java b/src/me/stutiguias/webportal/model/Enchant.java
index 7afa319..f24c107 100644
--- a/src/me/stutiguias/webportal/model/Enchant.java
+++ b/src/me/stutiguias/webportal/model/Enchant.java
@@ -1,103 +1,102 @@
/*
* To change this template, choose Tools | Templat... | true | true | public String getEnchantName(int enchant,int level){
String result = WebPortal.materials.getConfig().getString("Enchant." + enchant );
result += " ";
switch (level) {
case 1: result += "I"; break;
case 2: result += "II"; break;
case 3: result += "III"; bre... | public String getEnchantName(int enchant,int level){
String result = WebPortal.materials.getConfig().getString("Enchant." + enchant );
result += " ";
switch (level) {
case 1: result += "I"; break;
case 2: result += "II"; break;
case 3: result += "III"; bre... |
diff --git a/src/main/java/org/werti/uima/ae/SentenceBoundaryDetector.java b/src/main/java/org/werti/uima/ae/SentenceBoundaryDetector.java
index 218cbc9..c2b5e7a 100644
--- a/src/main/java/org/werti/uima/ae/SentenceBoundaryDetector.java
+++ b/src/main/java/org/werti/uima/ae/SentenceBoundaryDetector.java
@@ -1,103 +1,10... | true | true | public void process(JCas cas) {
log.info("Starting sentence boundary detection.");
final FSIndex textIndex = cas.getAnnotationIndex(Token.type);
final Iterator<Token> tit = textIndex.iterator();
int coh_gaps = 0;
Token t;
while (tit.hasNext()) {
t = tit.next();
if (log.isDebugEnabled()) {
log.... | public void process(JCas cas) {
log.info("Starting sentence boundary detection.");
final FSIndex textIndex = cas.getAnnotationIndex(Token.type);
final Iterator<Token> tit = textIndex.iterator();
int coh_gaps = 0;
Token t;
while (tit.hasNext()) {
t = tit.next();
if (log.isDebugEnabled()) {
log.... |
diff --git a/be.ac.ua.ansymo.cheopsj.testtool/src/be/ac/ua/ansymo/cheopsj/testtool/handlers/FindRelevantTests.java b/be.ac.ua.ansymo.cheopsj.testtool/src/be/ac/ua/ansymo/cheopsj/testtool/handlers/FindRelevantTests.java
index 47dc943..1535437 100644
--- a/be.ac.ua.ansymo.cheopsj.testtool/src/be/ac/ua/ansymo/cheopsj/test... | true | true | public Object execute(ExecutionEvent event) throws ExecutionException {
IViewPart findView = HandlerUtil.getActiveWorkbenchWindow(event).getActivePage().findView("be.ac.ua.ansymo.cheopsj.model.ui.view.changeinspector.ChangeView");
ChangeView view = (ChangeView) findView;
IStructuredSelection selection = view.ge... | public Object execute(ExecutionEvent event) throws ExecutionException {
IViewPart findView = HandlerUtil.getActiveWorkbenchWindow(event).getActivePage().findView("be.ac.ua.ansymo.cheopsj.model.ui.view.changeinspector.ChangeView");
ChangeView view = (ChangeView) findView;
IStructuredSelection selection = view.ge... |
diff --git a/src/me/raniy/plugins/UserHistory/UserHistoryPlayerListener.java b/src/me/raniy/plugins/UserHistory/UserHistoryPlayerListener.java
index 104d594..973afea 100644
--- a/src/me/raniy/plugins/UserHistory/UserHistoryPlayerListener.java
+++ b/src/me/raniy/plugins/UserHistory/UserHistoryPlayerListener.java
@@ -1,1... | true | true | public void onPlayerJoin(PlayerJoinEvent event) {
// Start the DB connection
this.myPlugin.getMySQL();
// Get the player
Player thePlayer=event.getPlayer();
int thePlayersUserID = this.myPlugin.playerInDB(thePlayer);
// Check to see if they are already in our DB
if(thePlayersU... | public void onPlayerJoin(PlayerJoinEvent event) {
// Start the DB connection
this.myPlugin.getMySQL();
// Get the player
Player thePlayer=event.getPlayer();
int thePlayersUserID = this.myPlugin.playerInDB(thePlayer);
// Check to see if they are already in our DB
if(thePlayersU... |
diff --git a/contrib/wikipedia/src/de/zib/scalaris/examples/wikipedia/bliki/MyWikiModel.java b/contrib/wikipedia/src/de/zib/scalaris/examples/wikipedia/bliki/MyWikiModel.java
index 6bbf9aa3..c1dafab5 100644
--- a/contrib/wikipedia/src/de/zib/scalaris/examples/wikipedia/bliki/MyWikiModel.java
+++ b/contrib/wikipedia/src... | true | true | public String getRawWikiContent(String namespace, String articleName,
Map<String, String> templateParameters) {
if (isTemplateNamespace(namespace)) {
String magicWord = articleName;
String parameter = "";
int index = magicWord.indexOf(':');
if (ind... | public String getRawWikiContent(String namespace, String articleName,
Map<String, String> templateParameters) {
if (isTemplateNamespace(namespace)) {
String magicWord = articleName;
String parameter = "";
int index = magicWord.indexOf(':');
if (ind... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.