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/com/massivecraft/factions/listeners/FactionsEntityListener.java b/src/com/massivecraft/factions/listeners/FactionsEntityListener.java
index 1e471af6..a3002ff4 100644
--- a/src/com/massivecraft/factions/listeners/FactionsEntityListener.java
+++ b/src/com/massivecraft/factions/listeners/FactionsEntityLis... | true | true | public boolean canDamagerHurtDamagee(EntityDamageByEntityEvent sub)
{
Entity damager = sub.getDamager();
Entity damagee = sub.getEntity();
int damage = sub.getDamage();
if ( ! (damagee instanceof Player)) return true;
FPlayer defender = FPlayers.i.get((Player)damagee);
if (defender == null || def... | public boolean canDamagerHurtDamagee(EntityDamageByEntityEvent sub)
{
Entity damager = sub.getDamager();
Entity damagee = sub.getEntity();
int damage = sub.getDamage();
if ( ! (damagee instanceof Player)) return true;
FPlayer defender = FPlayers.i.get((Player)damagee);
if (defender == null || def... |
diff --git a/jbpm-persistence-jpa/src/test/java/org/jbpm/persistence/util/PersistenceUtil.java b/jbpm-persistence-jpa/src/test/java/org/jbpm/persistence/util/PersistenceUtil.java
index ed692794e..942d2977a 100644
--- a/jbpm-persistence-jpa/src/test/java/org/jbpm/persistence/util/PersistenceUtil.java
+++ b/jbpm-persiste... | false | true | public static PoolingDataSource setupPoolingDataSource() {
Properties dsProps = getDatasourceProperties();
PoolingDataSource pds = new PoolingDataSource();
// The name must match what's in the persistence.xml!
pds.setUniqueName("jdbc/testDS1");
pds.setClassName(dsProps.get... | public static PoolingDataSource setupPoolingDataSource() {
Properties dsProps = getDatasourceProperties();
PoolingDataSource pds = new PoolingDataSource();
// The name must match what's in the persistence.xml!
pds.setUniqueName("jdbc/testDS1");
pds.setClassName(dsProps.get... |
diff --git a/src/com/android/settings/jellybam/BamHaloSettings.java b/src/com/android/settings/jellybam/BamHaloSettings.java
index 725c8d606..4149722e5 100644
--- a/src/com/android/settings/jellybam/BamHaloSettings.java
+++ b/src/com/android/settings/jellybam/BamHaloSettings.java
@@ -1,204 +1,204 @@
/*
* Copyright (... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mContext = getActivity();
addPreferencesFromResource(R.xml.halo_settings);
mNotificationManager = INotificationManager.Stub.asInterface(
ServiceManager.getService(Context.NOTIFICAT... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mContext = getActivity();
addPreferencesFromResource(R.xml.jellybam_halo_settings);
mNotificationManager = INotificationManager.Stub.asInterface(
ServiceManager.getService(Context.... |
diff --git a/src/test/net/jpountz/lz4/LZ4FactoryTest.java b/src/test/net/jpountz/lz4/LZ4FactoryTest.java
index 5262ae5..1eedb73 100644
--- a/src/test/net/jpountz/lz4/LZ4FactoryTest.java
+++ b/src/test/net/jpountz/lz4/LZ4FactoryTest.java
@@ -1,41 +1,41 @@
package net.jpountz.lz4;
/*
* Licensed to the Apache Softwa... | true | true | public void test() {
assertEquals(LZ4JNICompressor.FAST, LZ4Factory.nativeInstance().fastCompressor());
assertEquals(LZ4JNICompressor.HIGH_COMPRESSION, LZ4Factory.nativeInstance().highCompressor());
assertEquals(LZ4JavaUnsafeCompressor.FAST, LZ4Factory.unsafeInstance().fastCompressor());
assertEquals(... | public void test() {
assertEquals(LZ4JNICompressor.FAST, LZ4Factory.nativeInstance().fastCompressor());
assertEquals(LZ4JNICompressor.HIGH_COMPRESSION, LZ4Factory.nativeInstance().highCompressor());
assertEquals(LZ4JavaUnsafeCompressor.FAST, LZ4Factory.unsafeInstance().fastCompressor());
assertEquals(... |
diff --git a/graph/src/main/java/edu/jhuapl/graphs/controller/GraphController.java b/graph/src/main/java/edu/jhuapl/graphs/controller/GraphController.java
old mode 100644
new mode 100755
index 4f5a012..c93905e
--- a/graph/src/main/java/edu/jhuapl/graphs/controller/GraphController.java
+++ b/graph/src/main/java/edu/jhua... | true | true | private double setDataSeries(GraphDataInterface graphData, String displayKey, boolean useNoDataColor,
List<DataSeries> dataSeries, LegendItemCollection legendItems, boolean useItemColor,
boolean graphExpected) {
double[][] counts = graphData.... | private double setDataSeries(GraphDataInterface graphData, String displayKey, boolean useNoDataColor,
List<DataSeries> dataSeries, LegendItemCollection legendItems, boolean useItemColor,
boolean graphExpected) {
double[][] counts = graphData.... |
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/sharing/ExistingOrNewPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/sharing/ExistingOrNewPage.java
index db781e79..edf8ec6e 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/sharing/ExistingOrNewPage.java
+++ b/org.eclip... | false | true | public void createControl(Composite parent) {
Group g = new Group(parent, SWT.NONE);
g.setLayout(new GridLayout(3,false));
g.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());
tree = new Tree(g, SWT.BORDER|SWT.MULTI|SWT.FULL_SELECTION);
tree.setHeaderVisible(true);
tree.setLayout(new ... | public void createControl(Composite parent) {
Group g = new Group(parent, SWT.NONE);
g.setLayout(new GridLayout(3,false));
g.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());
tree = new Tree(g, SWT.BORDER|SWT.MULTI|SWT.FULL_SELECTION);
tree.setHeaderVisible(true);
tree.setLayout(new ... |
diff --git a/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java b/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java
index 01bbfef8..6982b4e6 100644
--- a/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java
+++ b/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java
@@ -1... | false | true | public static void handleException(Throwable e) {
e.printStackTrace();
if (Main.parent != null) {
if (e instanceof OutOfMemoryError) {
// do not translate the string, as translation may raise an exception
JOptionPane.showMessageDialog(Main.parent, "JOSM is... | public static void handleException(Throwable e) {
e.printStackTrace();
if (Main.parent != null) {
if (e instanceof OutOfMemoryError) {
// do not translate the string, as translation may raise an exception
JOptionPane.showMessageDialog(Main.parent, "JOSM is... |
diff --git a/src/main/java/ch/entwine/weblounge/dispatcher/impl/SiteServlet.java b/src/main/java/ch/entwine/weblounge/dispatcher/impl/SiteServlet.java
index 4381f153b..14b0b74cf 100644
--- a/src/main/java/ch/entwine/weblounge/dispatcher/impl/SiteServlet.java
+++ b/src/main/java/ch/entwine/weblounge/dispatcher/impl/Site... | true | true | protected void serviceResource(final HttpServletRequest request,
final HttpServletResponse response) throws ServletException, IOException {
Http11ResponseType responseType = null;
String requestPath = request.getPathInfo();
// There is also a special set of resources that we don't want to expose
... | protected void serviceResource(final HttpServletRequest request,
final HttpServletResponse response) throws ServletException, IOException {
Http11ResponseType responseType = null;
String requestPath = UrlUtils.concat("/site", request.getPathInfo());
// There is also a special set of resources that... |
diff --git a/main/src/main/java/com/bloatit/model/FollowSoftware.java b/main/src/main/java/com/bloatit/model/FollowSoftware.java
index 1fd878137..b863e007f 100644
--- a/main/src/main/java/com/bloatit/model/FollowSoftware.java
+++ b/main/src/main/java/com/bloatit/model/FollowSoftware.java
@@ -1,91 +1,91 @@
//
// Copyr... | true | true | public final void setMail(final boolean mail) throws UnauthorizedOperationException {
final Member follower = Member.create(getDao().getFollower());
if (!(AuthToken.isAdmin() || (AuthToken.isAuthenticated() && AuthToken.getMember().equals(follower)))) {
throw new UnauthorizedOperationExc... | public final void setMail(final boolean mail) throws UnauthorizedOperationException {
final Member follower = Member.create(getDao().getFollower());
if (!(AuthToken.isAdmin() || (AuthToken.isAuthenticated() && AuthToken.getMember().equals(follower)))) {
throw new UnauthorizedOperationExc... |
diff --git a/cuke4duke-maven-plugin/src/main/java/cuke4duke/mojo/CucumberMojo.java b/cuke4duke-maven-plugin/src/main/java/cuke4duke/mojo/CucumberMojo.java
index c3c1da88..60f355f9 100755
--- a/cuke4duke-maven-plugin/src/main/java/cuke4duke/mojo/CucumberMojo.java
+++ b/cuke4duke-maven-plugin/src/main/java/cuke4duke/mojo... | true | true | public void execute() throws MojoFailureException, MojoExecutionException {
if (installGems) {
for (String s : gems) {
installGem(parseGem(s));
}
}
List<String> allArgs = new ArrayList<String>();
allArgs.add(cucumberBin().getAbsolutePath());
... | public void execute() throws MojoFailureException, MojoExecutionException {
if (installGems) {
for (String s : gems) {
installGem(parseGem(s));
}
}
List<String> allArgs = new ArrayList<String>();
allArgs.add("-r");
allArgs.add("cuke4d... |
diff --git a/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/AddPersonToRoleTwoStageGenerator.java b/src/edu/cornell/mannlib/vitro/webapp/edit/n3editing/configuration/generators/AddPersonToRoleTwoStageGenerator.java
index 16dc0ea..9ca4fdd 100644
--- a/src/edu/cornell/mannlib/vitro/webapp/ed... | true | true | public EditConfigurationVTwo getEditConfiguration(VitroRequest vreq, HttpSession session) {
EditConfigurationVTwo editConfiguration = new EditConfigurationVTwo();
initProcessParameters(vreq, session, editConfiguration);
editConfiguration.setVarNameForSubject("grant"); ... | public EditConfigurationVTwo getEditConfiguration(VitroRequest vreq, HttpSession session) {
EditConfigurationVTwo editConfiguration = new EditConfigurationVTwo();
initProcessParameters(vreq, session, editConfiguration);
editConfiguration.setVarNameForSubject("grant"); ... |
diff --git a/xwiki-rendering-transformations/xwiki-rendering-transformation-macro/src/test/java/org/xwiki/rendering/internal/macro/DefaultMacroManagerTest.java b/xwiki-rendering-transformations/xwiki-rendering-transformation-macro/src/test/java/org/xwiki/rendering/internal/macro/DefaultMacroManagerTest.java
index 2459c... | true | true | public void testInvalidMacroHint() throws Exception
{
// Control the list of macros found in the system by replacing the real ComponentManager in MacroManager with
// a mock one.
final ComponentManager mockRootComponentManager = getMockery().mock(ComponentManager.class);
Reflecti... | public void testInvalidMacroHint() throws Exception
{
// Control the list of macros found in the system by replacing the real ComponentManager in MacroManager with
// a mock one.
final ComponentManager mockRootComponentManager = getMockery().mock(ComponentManager.class);
Reflecti... |
diff --git a/src/simpleserver/stream/StreamTunnel.java b/src/simpleserver/stream/StreamTunnel.java
index 41f73b9..72e6d3a 100644
--- a/src/simpleserver/stream/StreamTunnel.java
+++ b/src/simpleserver/stream/StreamTunnel.java
@@ -1,781 +1,781 @@
/*************************************************************************... | true | true | private void handlePacket() throws IOException {
Byte packetId = in.readByte();
switch (packetId) {
case 0x00: // Keep Alive
write(packetId);
break;
case 0x01: // Login Request/Response
write(packetId);
write(in.readInt());
write(in.readUTF());
write... | private void handlePacket() throws IOException {
Byte packetId = in.readByte();
switch (packetId) {
case 0x00: // Keep Alive
write(packetId);
break;
case 0x01: // Login Request/Response
write(packetId);
write(in.readInt());
write(in.readUTF());
write... |
diff --git a/SewTiffs.java b/SewTiffs.java
index 6370d7e..9bb4d44 100644
--- a/SewTiffs.java
+++ b/SewTiffs.java
@@ -1,86 +1,86 @@
//
// SewTiffs.java
//
import java.awt.image.BufferedImage;
import java.io.File;
import java.util.Hashtable;
import loci.formats.FilePattern;
import loci.formats.RandomAccessStrea... | true | true | public static void main(String[] args) throws Exception {
if (args.length < 2) {
System.out.println(
"Usage: java SewTiffs base_name channel_num [time_count]");
System.exit(1);
}
String base = args[0];
int c = Integer.parseInt(args[1]);
int num;
if (args.length < 3) {
... | public static void main(String[] args) throws Exception {
if (args.length < 2) {
System.out.println(
"Usage: java SewTiffs base_name channel_num [time_count]");
System.exit(1);
}
String base = args[0];
int c = Integer.parseInt(args[1]);
int num;
if (args.length < 3) {
... |
diff --git a/src/com/android/phone/InCallTouchUi.java b/src/com/android/phone/InCallTouchUi.java
index 0359b226..20630576 100644
--- a/src/com/android/phone/InCallTouchUi.java
+++ b/src/com/android/phone/InCallTouchUi.java
@@ -1,650 +1,651 @@
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed u... | true | true | void updateInCallControls(Phone phone) {
int phoneType = phone.getPhoneType();
// Note we do NOT need to worry here about cases where the entire
// in-call touch UI is disabled, like during an OTA call or if the
// dtmf dialpad is up. (That's handled by updateState(), which
... | void updateInCallControls(Phone phone) {
int phoneType = phone.getPhoneType();
// Note we do NOT need to worry here about cases where the entire
// in-call touch UI is disabled, like during an OTA call or if the
// dtmf dialpad is up. (That's handled by updateState(), which
... |
diff --git a/src/org/openstreetmap/josm/gui/preferences/PluginPreference.java b/src/org/openstreetmap/josm/gui/preferences/PluginPreference.java
index d4f5af86..b71f3d87 100644
--- a/src/org/openstreetmap/josm/gui/preferences/PluginPreference.java
+++ b/src/org/openstreetmap/josm/gui/preferences/PluginPreference.java
@... | false | true | private void refreshPluginPanel(final PreferenceDialog gui) {
Collection<PluginDescription> availablePlugins = getAvailablePlugins();
pluginMap = new HashMap<PluginDescription, Boolean>();
pluginPanel.removeAll();
int width = pluginPanel.myGetWidth();
// the following could probably be done more elegantly?
... | private void refreshPluginPanel(final PreferenceDialog gui) {
Collection<PluginDescription> availablePlugins = getAvailablePlugins();
pluginMap = new HashMap<PluginDescription, Boolean>();
pluginPanel.removeAll();
int width = pluginPanel.myGetWidth();
Collection<String> enabledPlugins = Main.pref.getCollect... |
diff --git a/jsf-ri/systest/src/com/sun/faces/jsptest/ViewTagTestCase.java b/jsf-ri/systest/src/com/sun/faces/jsptest/ViewTagTestCase.java
index ee9878e24..6c7ed524f 100644
--- a/jsf-ri/systest/src/com/sun/faces/jsptest/ViewTagTestCase.java
+++ b/jsf-ri/systest/src/com/sun/faces/jsptest/ViewTagTestCase.java
@@ -1,126 +... | true | true | public void testLocaleOnViewTag() throws Exception {
HtmlForm form;
HtmlSubmitInput submit;
HtmlAnchor link;
HtmlTextInput input;
HtmlPage page;
page = getPage("/faces/viewLocale.jsp");
form = getFormById(page, "form");
submit = (HtmlSubmitInput)
... | public void testLocaleOnViewTag() throws Exception {
HtmlForm form;
HtmlSubmitInput submit;
HtmlAnchor link;
HtmlTextInput input;
HtmlPage page;
page = getPage("/faces/viewLocale.jsp");
form = getFormById(page, "form");
submit = (HtmlSubmitInput)
... |
diff --git a/java/src/jp/gr/java_conf/neko_daisuki/fsyscall/io/SyscallInputStream.java b/java/src/jp/gr/java_conf/neko_daisuki/fsyscall/io/SyscallInputStream.java
index 3e76717..e8fc66f 100644
--- a/java/src/jp/gr/java_conf/neko_daisuki/fsyscall/io/SyscallInputStream.java
+++ b/java/src/jp/gr/java_conf/neko_daisuki/fsy... | true | true | public int readInteger() throws IOException {
int n = 0;
int shift = 0;
int m;
while (((m = mIn.read()) & 0x80) != 0) {
n += ((m & 0x7f) << shift);
shift += 7;
}
return n;
}
| public int readInteger() throws IOException {
int n = 0;
int shift = 0;
int m;
while (((m = mIn.read()) & 0x80) != 0) {
n += ((m & 0x7f) << shift);
shift += 7;
}
return n + ((m & 0x7f) << shift);
}
|
diff --git a/src/com/android/phone/CallCard.java b/src/com/android/phone/CallCard.java
index 06927269..531253d0 100644
--- a/src/com/android/phone/CallCard.java
+++ b/src/com/android/phone/CallCard.java
@@ -1,1823 +1,1825 @@
/*
* Copyright (C) 2006 The Android Open Source Project
*
* Licensed under the Apache Li... | true | true | private void updateDisplayForPerson(CallerInfo info,
int presentation,
boolean isTemporary,
Call call,
Connection conn) {
if (DBG) log("updateDispla... | private void updateDisplayForPerson(CallerInfo info,
int presentation,
boolean isTemporary,
Call call,
Connection conn) {
if (DBG) log("updateDispla... |
diff --git a/src/common/com/kaijin/InventoryStocker/TileEntityInventoryStocker.java b/src/common/com/kaijin/InventoryStocker/TileEntityInventoryStocker.java
index 09102d2..f5eafd1 100644
--- a/src/common/com/kaijin/InventoryStocker/TileEntityInventoryStocker.java
+++ b/src/common/com/kaijin/InventoryStocker/TileEntityI... | false | true | public void updateEntity()
{
// debugSnapshotDataClient();
// debugSnapshotDataServer();
// Check if this or one of the blocks next to this is getting power from a neighboring block.
boolean isPowered = worldObj.isBlockIndirectlyGettingPowered(xCoord, yCoord, zCoord);
// This code is probably not needed, but... | public void updateEntity()
{
// debugSnapshotDataClient();
// debugSnapshotDataServer();
// Check if this or one of the blocks next to this is getting power from a neighboring block.
boolean isPowered = worldObj.isBlockIndirectlyGettingPowered(xCoord, yCoord, zCoord);
// This code is probably not needed, but... |
diff --git a/servo-aws/src/test/java/com/netflix/servo/publish/cloudwatch/CloudWatchMetricObserverTest.java b/servo-aws/src/test/java/com/netflix/servo/publish/cloudwatch/CloudWatchMetricObserverTest.java
index 6b68d37..c39f6b5 100644
--- a/servo-aws/src/test/java/com/netflix/servo/publish/cloudwatch/CloudWatchMetricOb... | true | true | public void testUpdate() throws Exception {
List<Metric> metrics = new ArrayList<Metric>(33);
for (int i = 0; i < 33; i++) {
metrics.add(new Metric("test", BasicTagList.EMPTY, System.currentTimeMillis(), 10));
}
try{
observer.update(metrics);
} catch ... | public void testUpdate() throws Exception {
List<Metric> metrics = new ArrayList<Metric>(33);
for (int i = 0; i < 33; i++) {
metrics.add(new Metric("test", BasicTagList.EMPTY, System.currentTimeMillis(), 10));
}
try{
observer.update(metrics);
} catch ... |
diff --git a/src/com/ceco/gm2/gravitybox/quicksettings/GpsTile.java b/src/com/ceco/gm2/gravitybox/quicksettings/GpsTile.java
index 888598c..074308c 100644
--- a/src/com/ceco/gm2/gravitybox/quicksettings/GpsTile.java
+++ b/src/com/ceco/gm2/gravitybox/quicksettings/GpsTile.java
@@ -1,128 +1,128 @@
/*
* Copyright (C) 2... | true | true | public GpsTile(Context context, Context gbContext, Object statusBar, Object panelBar) {
super(context, gbContext, statusBar, panelBar);
mOnClick = new View.OnClickListener() {
@Override
public void onClick(View v) {
Settings.Secure.setLocationProviderEnabled... | public GpsTile(Context context, Context gbContext, Object statusBar, Object panelBar) {
super(context, gbContext, statusBar, panelBar);
mOnClick = new View.OnClickListener() {
@Override
public void onClick(View v) {
Settings.Secure.setLocationProviderEnabled... |
diff --git a/src/com/michalmazur/orphanedtexts/RawSmsReader.java b/src/com/michalmazur/orphanedtexts/RawSmsReader.java
index 076a90e..765124f 100644
--- a/src/com/michalmazur/orphanedtexts/RawSmsReader.java
+++ b/src/com/michalmazur/orphanedtexts/RawSmsReader.java
@@ -1,79 +1,83 @@
package com.michalmazur.orphanedtext... | true | true | public ArrayList<Orphan> getOrphans() {
if (this.context == null) {
Log.d("ORPHAN", "No context. Will return fake data.");
return getFakeOrphans();
}
String uriString = "content://sms/raw";
Uri uri = Uri.parse(uriString);
Cursor c = context.getContentResolver()
.query(uri, null, null, null, null /... | public ArrayList<Orphan> getOrphans() {
if (this.context == null) {
Log.d("ORPHAN", "No context. Will return fake data.");
return getFakeOrphans();
}
String uriString = "content://sms/raw";
Uri uri = Uri.parse(uriString);
Cursor c = context.getContentResolver()
.query(uri, null, null, null, null /... |
diff --git a/src/vooga/rts/gui/Button.java b/src/vooga/rts/gui/Button.java
index c340803d..33f670c5 100755
--- a/src/vooga/rts/gui/Button.java
+++ b/src/vooga/rts/gui/Button.java
@@ -1,70 +1,70 @@
package vooga.rts.gui;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
i... | true | true | public Button (String image, Dimension size, Location pos) {
if (image != null) {
myImage = ResourceManager.getInstance().<BufferedImage>getFile(image, BufferedImage.class);
}
mySize = size;
myPos = pos;
isFocused = false;
}
| public Button (String image, Dimension size, Location pos) {
if (image != null) {
myImage = ResourceManager.getInstance().<BufferedImage> getFile(image, BufferedImage.class);
}
mySize = size;
myPos = pos;
isFocused = false;
}
|
diff --git a/src/com/vaadin/terminal/gwt/server/ApplicationPortlet.java b/src/com/vaadin/terminal/gwt/server/ApplicationPortlet.java
index 755994577..51e148a76 100644
--- a/src/com/vaadin/terminal/gwt/server/ApplicationPortlet.java
+++ b/src/com/vaadin/terminal/gwt/server/ApplicationPortlet.java
@@ -1,244 +1,244 @@
pa... | true | true | protected void writeAjaxWindow(RenderRequest request,
RenderResponse response) throws IOException {
response.setContentType("text/html");
if (app != null) {
PortletSession sess = request.getPortletSession();
PortletApplicationContext ctx = PortletApplicationConte... | protected void writeAjaxWindow(RenderRequest request,
RenderResponse response) throws IOException {
response.setContentType("text/html");
if (app != null) {
PortletSession sess = request.getPortletSession();
PortletApplicationContext ctx = PortletApplicationConte... |
diff --git a/src/org/nutz/dao/util/Pojos.java b/src/org/nutz/dao/util/Pojos.java
index aad7ac65c..3ddfd2f1e 100644
--- a/src/org/nutz/dao/util/Pojos.java
+++ b/src/org/nutz/dao/util/Pojos.java
@@ -1,236 +1,234 @@
package org.nutz.dao.util;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.... | true | true | public static PItem cndAuto(Entity<?> en, Object obj) {
obj = Lang.first(obj);
switch (en.getPkType()) {
case ID:
Number id = null != obj ? ((Number) en.getIdField().getValue(obj)) : null;
return cndId(en, id);
case NAME:
String name = null != obj ? en.getNameField().getValue(obj).toString() :... | public static PItem cndAuto(Entity<?> en, Object obj) {
obj = Lang.first(obj);
switch (en.getPkType()) {
case ID:
Number id = null != obj ? ((Number) en.getIdField().getValue(obj)) : null;
return cndId(en, id);
case NAME:
String name = null != obj ? en.getNameField().getValue(obj).toString() :... |
diff --git a/src/org/ohmage/request/survey/SurveyUploadRequest.java b/src/org/ohmage/request/survey/SurveyUploadRequest.java
index 21e4fe39..00253dd6 100644
--- a/src/org/ohmage/request/survey/SurveyUploadRequest.java
+++ b/src/org/ohmage/request/survey/SurveyUploadRequest.java
@@ -1,398 +1,402 @@
/*******************... | false | true | public SurveyUploadRequest(HttpServletRequest httpRequest) throws IOException, InvalidRequestException {
super(httpRequest, false, null, null);
LOGGER.info("Creating a survey upload request.");
String tCampaignUrn = null;
DateTime tCampaignCreationTimestamp = null;
List<JSONObject> tJsonData = null;
Ma... | public SurveyUploadRequest(HttpServletRequest httpRequest) throws IOException, InvalidRequestException {
super(httpRequest, false, null, null);
LOGGER.info("Creating a survey upload request.");
String tCampaignUrn = null;
DateTime tCampaignCreationTimestamp = null;
List<JSONObject> tJsonData = null;
Ma... |
diff --git a/web/src/main/java/org/eurekastreams/web/client/ui/common/GadgetMetaDataPanel.java b/web/src/main/java/org/eurekastreams/web/client/ui/common/GadgetMetaDataPanel.java
index a79e881a7..963533a0a 100644
--- a/web/src/main/java/org/eurekastreams/web/client/ui/common/GadgetMetaDataPanel.java
+++ b/web/src/main/... | false | true | public GadgetMetaDataPanel(final GadgetMetaDataDTO metaData, final Long inTabId, final Deletable<Long> model,
final String deleteMessage)
{
Session.getInstance().getEventBus().addObserver(UpdatedHistoryParametersEvent.class,
new Observer<UpdatedHistoryParametersEvent>()
... | public GadgetMetaDataPanel(final GadgetMetaDataDTO metaData, final Long inTabId, final Deletable<Long> model,
final String deleteMessage)
{
Session.getInstance().getEventBus().addObserver(UpdatedHistoryParametersEvent.class,
new Observer<UpdatedHistoryParametersEvent>()
... |
diff --git a/src/com/limelight/nvstream/av/video/MediaCodecDecoderRenderer.java b/src/com/limelight/nvstream/av/video/MediaCodecDecoderRenderer.java
index c802683..18a0332 100644
--- a/src/com/limelight/nvstream/av/video/MediaCodecDecoderRenderer.java
+++ b/src/com/limelight/nvstream/av/video/MediaCodecDecoderRenderer.... | true | true | public static MediaCodecInfo findSafeDecoder() {
for (int i = 0; i < MediaCodecList.getCodecCount(); i++) {
MediaCodecInfo codecInfo = MediaCodecList.getCodecInfoAt(i);
boolean badCodec = false;
// Skip encoders
if (codecInfo.isEncoder()) {
continue;
}
for (String badPrefix : blacklist... | public static MediaCodecInfo findSafeDecoder() {
for (int i = 0; i < MediaCodecList.getCodecCount(); i++) {
MediaCodecInfo codecInfo = MediaCodecList.getCodecInfoAt(i);
boolean badCodec = false;
// Skip encoders
if (codecInfo.isEncoder()) {
continue;
}
for (String badPrefix : blacklist... |
diff --git a/vcat-core/src/main/java/vcat/graphviz/GraphvizExternal.java b/vcat-core/src/main/java/vcat/graphviz/GraphvizExternal.java
index 7bf8158..2214f85 100644
--- a/vcat-core/src/main/java/vcat/graphviz/GraphvizExternal.java
+++ b/vcat-core/src/main/java/vcat/graphviz/GraphvizExternal.java
@@ -1,103 +1,108 @@
pa... | true | true | public void render(File inputFile, File outputFile, GraphvizParams params) throws GraphvizException {
final Runtime runtime = Runtime.getRuntime();
final long startMillis = System.currentTimeMillis();
final File programFile = new File(programPath, params.getAlgorithm().getProgram());
if (!programFile.exists(... | public void render(File inputFile, File outputFile, GraphvizParams params) throws GraphvizException {
final Runtime runtime = Runtime.getRuntime();
final long startMillis = System.currentTimeMillis();
final File programFile = new File(programPath, params.getAlgorithm().getProgram());
if (!programFile.exists(... |
diff --git a/src/main/java/to/networld/soap/security/security/SOAPSecMessageFactory.java b/src/main/java/to/networld/soap/security/security/SOAPSecMessageFactory.java
index 433c3ce..d299938 100644
--- a/src/main/java/to/networld/soap/security/security/SOAPSecMessageFactory.java
+++ b/src/main/java/to/networld/soap/secu... | false | true | public static ISecSOAPMessage newInstance(int _expiresInMinutes) throws SOAPException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, CredentialException, IOException, CertificateException, KeyStoreException {
SOAPMessage soapMessage = MessageFactory.newInstance().createMessage();
SOAPPart soa... | public static ISecSOAPMessage newInstance(int _expiresInMinutes) throws SOAPException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, CredentialException, IOException, CertificateException, KeyStoreException {
SOAPMessage soapMessage = MessageFactory.newInstance().createMessage();
SOAPPart soapPa... |
diff --git a/src/NDFAtoDFATransformer.java b/src/NDFAtoDFATransformer.java
index 449edee..7c3c548 100644
--- a/src/NDFAtoDFATransformer.java
+++ b/src/NDFAtoDFATransformer.java
@@ -1,153 +1,153 @@
import java.io.IOException;
import java.util.Hashtable;
import java.util.ArrayList;
import java.util.HashSet;
import j... | false | true | public static Hashtable<String,State> toDFA(String inputFile) throws IOException{
Hashtable<String, State> nfaStates = FAReader.parseAutomata(inputFile);
Hashtable<String,DFAState> dfaStates = new Hashtable<String,DFAState>();
Hashtable <String, State> startingStates = acceptingStates(nfaStates);
DFAState s... | public static Hashtable<String,DFAState> toDFA(String inputFile) throws IOException{
Hashtable<String, State> nfaStates = FAReader.parseAutomata(inputFile);
Hashtable<String,DFAState> dfaStates = new Hashtable<String,DFAState>();
Hashtable <String, State> startingStates = acceptingStates(nfaStates);
DFAStat... |
diff --git a/SleepClock/src/com/pps/sleepcalc/MainActivity.java b/SleepClock/src/com/pps/sleepcalc/MainActivity.java
index 3d8064a..0fde97b 100644
--- a/SleepClock/src/com/pps/sleepcalc/MainActivity.java
+++ b/SleepClock/src/com/pps/sleepcalc/MainActivity.java
@@ -1,209 +1,209 @@
package com.pps.sleepcalc;
import j... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON
| WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
//set... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON
| WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
//set... |
diff --git a/net/marcuswatkins/pisaver/PiSaver.java b/net/marcuswatkins/pisaver/PiSaver.java
index 6db64f1..8414012 100644
--- a/net/marcuswatkins/pisaver/PiSaver.java
+++ b/net/marcuswatkins/pisaver/PiSaver.java
@@ -1,282 +1,282 @@
package net.marcuswatkins.pisaver;
//Original copyright header from jogl demo:
/... | true | true | public static void main(String[] args) {
Properties props = new Properties( );
File propsFile = new File( PROPS_FILE );
if( propsFile.exists() && propsFile.canRead() ) {
try {
InputStream is = new FileInputStream( propsFile );
props.load( is );
is.close();
}
catch( Exception e ) {
Sy... | public static void main(String[] args) {
Properties props = new Properties( );
File propsFile = new File( PROPS_FILE );
if( propsFile.exists() && propsFile.canRead() ) {
try {
InputStream is = new FileInputStream( propsFile );
props.load( is );
is.close();
}
catch( Exception e ) {
Sy... |
diff --git a/src/com/android/contacts/ContactsListActivity.java b/src/com/android/contacts/ContactsListActivity.java
index 0ddb608ca..968252e3d 100644
--- a/src/com/android/contacts/ContactsListActivity.java
+++ b/src/com/android/contacts/ContactsListActivity.java
@@ -1,2007 +1,2004 @@
/*
* Copyright (C) 2007 The An... | true | true | protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
// Resolve the intent
final Intent intent = getIntent();
// Allow the title to be set to a custom String using an extra on the intent
String title = intent.getStringExtra(Contacts.Intents.UI.TITLE_EXTRA_KEY);
... | protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
// Resolve the intent
final Intent intent = getIntent();
// Allow the title to be set to a custom String using an extra on the intent
String title = intent.getStringExtra(Contacts.Intents.UI.TITLE_EXTRA_KEY);
... |
diff --git a/host/whiteboard-app/src/main/java/whiteboard/app/SelectPanel.java b/host/whiteboard-app/src/main/java/whiteboard/app/SelectPanel.java
index 9e150ea..a2bda0e 100644
--- a/host/whiteboard-app/src/main/java/whiteboard/app/SelectPanel.java
+++ b/host/whiteboard-app/src/main/java/whiteboard/app/SelectPanel.java... | true | true | public SelectPanel() {
super(new MigLayout("", "[right]rel[300lp,grow,fill]"));
add(new JLabel("Filename"));
add(filenameField, "grow, span");
add(chooseFileButton, "skip 1, wrap, grow 0");
add(new JLabel("Reel radius"));
add(reelRadiusField, "wrap");
... | public SelectPanel() {
super(new MigLayout("", "[right]rel[300lp,grow,fill]"));
add(new JLabel("Filename"));
add(filenameField, "grow, span");
add(chooseFileButton, "skip 1, wrap, grow 0");
add(new JLabel("Reel radius"));
add(reelRadiusField, "wrap");
... |
diff --git a/src/uk/me/parabola/imgfmt/sys/ImgHeader.java b/src/uk/me/parabola/imgfmt/sys/ImgHeader.java
index 11d59d9d..de798351 100644
--- a/src/uk/me/parabola/imgfmt/sys/ImgHeader.java
+++ b/src/uk/me/parabola/imgfmt/sys/ImgHeader.java
@@ -1,313 +1,313 @@
/*
* Copyright (C) 2006 Steve Ratcliffe
*
* This pro... | false | true | void createHeader(FileSystemParam params) {
this.fsParams = params;
header.put(OFF_XOR, (byte) 0);
// Set the block size. 2^(E1+E2) where E1 is always 9.
int exp = 9;
int bs = params.getBlockSize();
for (int i = 0; i < 32; i++) {
bs >>>= 1;
if (bs == 0) {
exp = i;
break;
}
}
if (e... | void createHeader(FileSystemParam params) {
this.fsParams = params;
header.put(OFF_XOR, (byte) 0);
// Set the block size. 2^(E1+E2) where E1 is always 9.
int exp = 9;
int bs = params.getBlockSize();
for (int i = 0; i < 32; i++) {
bs >>>= 1;
if (bs == 0) {
exp = i;
break;
}
}
if (e... |
diff --git a/jamwiki-core/src/main/java/org/jamwiki/parser/jflex/TemplateTag.java b/jamwiki-core/src/main/java/org/jamwiki/parser/jflex/TemplateTag.java
index f9388ef8..4a4e1def 100644
--- a/jamwiki-core/src/main/java/org/jamwiki/parser/jflex/TemplateTag.java
+++ b/jamwiki-core/src/main/java/org/jamwiki/parser/jflex/Te... | false | true | public String parse(ParserInput parserInput, ParserOutput parserOutput, int mode, String raw) {
try {
parserInput.incrementTemplateDepth();
// validate and extract the template content
if (StringUtils.isBlank(raw)) {
throw new Exception("Empty template text");
}
if (!raw.startsWith("{{") || !raw.e... | public String parse(ParserInput parserInput, ParserOutput parserOutput, int mode, String raw) {
try {
parserInput.incrementTemplateDepth();
// validate and extract the template content
if (StringUtils.isBlank(raw)) {
throw new Exception("Empty template text");
}
if (!raw.startsWith("{{") || !raw.e... |
diff --git a/src/cx/mccormick/pddroidparty/PatchSelector.java b/src/cx/mccormick/pddroidparty/PatchSelector.java
index e8abd02..863b193 100644
--- a/src/cx/mccormick/pddroidparty/PatchSelector.java
+++ b/src/cx/mccormick/pddroidparty/PatchSelector.java
@@ -1,123 +1,125 @@
package cx.mccormick.pddroidparty;
/* Based... | false | true | private void initGui() {
setContentView(R.layout.patch_selector);
patchList = (ListView) findViewById(R.id.patch_selector);
final ProgressDialog progress = new ProgressDialog(this);
progress.setMessage("Finding patches...");
progress.setCancelable(false);
progress.setIndeterminate(true);
progress.show();... | private void initGui() {
setContentView(R.layout.patch_selector);
patchList = (ListView) findViewById(R.id.patch_selector);
final ProgressDialog progress = new ProgressDialog(this);
progress.setMessage("Finding patches...");
progress.setCancelable(false);
progress.setIndeterminate(true);
progress.show();... |
diff --git a/omod/src/main/java/org/openmrs/module/emr/fragment/controller/visit/VisitDetailsFragmentController.java b/omod/src/main/java/org/openmrs/module/emr/fragment/controller/visit/VisitDetailsFragmentController.java
index 9012948f..c78b4751 100644
--- a/omod/src/main/java/org/openmrs/module/emr/fragment/controll... | false | true | public SimpleObject getVisitDetails(
@SpringBean("adminService") AdministrationService administrationService,
@RequestParam("visitId") Visit visit,
UiUtils uiUtils,
EmrContext emrContext) throws ParseException {
SimpleObject simpleObject = SimpleObject.fromOb... | public SimpleObject getVisitDetails(
@SpringBean("adminService") AdministrationService administrationService,
@RequestParam("visitId") Visit visit,
UiUtils uiUtils,
EmrContext emrContext) throws ParseException {
SimpleObject simpleObject = SimpleObject.fromOb... |
diff --git a/src/de/ueller/gps/BtReceiverInput.java b/src/de/ueller/gps/BtReceiverInput.java
index 5762b5f2..b0ff7d8c 100644
--- a/src/de/ueller/gps/BtReceiverInput.java
+++ b/src/de/ueller/gps/BtReceiverInput.java
@@ -1,363 +1,365 @@
package de.ueller.gps;
/**
* This file is part of GpsMid
*
* This program ... | false | true | public void run() {
receiverList.receiveMessage("Start Bt GPS receiver");
// Eat the buffer content
try {
try {
byte[] buf = new byte[512];
while (btGpsInputStream.available() > 0) {
int received = btGpsInputStream.read(buf);
bytesReceived += received;
if (rawDataLogger != null) {
... | public void run() {
receiverList.receiveMessage("Start Bt GPS receiver");
// Eat the buffer content
try {
try {
byte[] buf = new byte[512];
while (btGpsInputStream.available() > 0) {
int received = btGpsInputStream.read(buf);
bytesReceived += received;
if (rawDataLogger != null) {
... |
diff --git a/src/cz/zcu/kiv/eeg/mobile/base/ui/experiment/ElectrodeLocationAddActivity.java b/src/cz/zcu/kiv/eeg/mobile/base/ui/experiment/ElectrodeLocationAddActivity.java
index 9836fff..0a8ad0b 100644
--- a/src/cz/zcu/kiv/eeg/mobile/base/ui/experiment/ElectrodeLocationAddActivity.java
+++ b/src/cz/zcu/kiv/eeg/mobile/... | true | true | private ElectrodeLocation getValidRecord() {
EditText title = (EditText) findViewById(R.id.electrode_add_title);
EditText abbr = (EditText) findViewById(R.id.electrode_add_abbr);
EditText description = (EditText) findViewById(R.id.electrode_add_description);
Spinner type = (Spinner)... | private ElectrodeLocation getValidRecord() {
EditText title = (EditText) findViewById(R.id.electrode_add_title);
EditText abbr = (EditText) findViewById(R.id.electrode_add_abbr);
EditText description = (EditText) findViewById(R.id.electrode_add_description);
Spinner type = (Spinner)... |
diff --git a/src/main/java/com/treasure_data/bulk_import/BulkImportOptions.java b/src/main/java/com/treasure_data/bulk_import/BulkImportOptions.java
index 889a09f..d157964 100644
--- a/src/main/java/com/treasure_data/bulk_import/BulkImportOptions.java
+++ b/src/main/java/com/treasure_data/bulk_import/BulkImportOptions.... | true | true | public void initPrepareOptionParser(Properties props) {
op.formatHelpWith(new SimpleHelpFormatter());
op.acceptsAll(Arrays.asList("h",
Configuration.BI_PREPARE_PARTS_HELP),
Configuration.BI_PREPARE_PARTS_HELP_DESC);
op.acceptsAll(Arrays.asList("f",
... | public void initPrepareOptionParser(Properties props) {
op.formatHelpWith(new SimpleHelpFormatter());
op.acceptsAll(Arrays.asList("h",
Configuration.BI_PREPARE_PARTS_HELP),
Configuration.BI_PREPARE_PARTS_HELP_DESC);
op.acceptsAll(Arrays.asList("f",
... |
diff --git a/dbmaintain/src/main/java/org/dbmaintain/dbsupport/impl/MsSqlDbSupport.java b/dbmaintain/src/main/java/org/dbmaintain/dbsupport/impl/MsSqlDbSupport.java
index ebe1ab1..a5579ee 100644
--- a/dbmaintain/src/main/java/org/dbmaintain/dbsupport/impl/MsSqlDbSupport.java
+++ b/dbmaintain/src/main/java/org/dbmaintai... | false | true | protected void disableNotNullConstraints(String schemaName, String tableName) {
SQLHandler sqlHandler = getSQLHandler();
// retrieve the name of the primary key, since we cannot remove the not-null constraint on this column
Set<String> primaryKeyColumnNames = sqlHandler.getItemsAsStringSet(... | protected void disableNotNullConstraints(String schemaName, String tableName) {
SQLHandler sqlHandler = getSQLHandler();
// retrieve the name of the primary key, since we cannot remove the not-null constraint on this column
Set<String> primaryKeyColumnNames = sqlHandler.getItemsAsStringSet(... |
diff --git a/src/capstone/daemon/DaemonHandler.java b/src/capstone/daemon/DaemonHandler.java
index 921bf6c..39dd6a7 100644
--- a/src/capstone/daemon/DaemonHandler.java
+++ b/src/capstone/daemon/DaemonHandler.java
@@ -1,135 +1,135 @@
package capstone.daemon;
import capstone.wrapper.*;
import java.util.HashMap;
i... | false | true | public void messageReceived(
ChannelHandlerContext ctx
, DefaultFullHttpRequest request)
{
System.out.println("[Daemon] Connection started");
String body = request.data().toString(CharsetUtil.UTF_8);
try
{
HashMap<... | public void messageReceived(
ChannelHandlerContext ctx
, DefaultFullHttpRequest request)
{
System.out.println("[Daemon] Connection started");
String body = request.data().toString(CharsetUtil.UTF_8);
try
{
HashMap<... |
diff --git a/src/de/aidger/view/models/TableModel.java b/src/de/aidger/view/models/TableModel.java
index 18f5dc68..fea0affa 100644
--- a/src/de/aidger/view/models/TableModel.java
+++ b/src/de/aidger/view/models/TableModel.java
@@ -1,176 +1,176 @@
package de.aidger.view.models;
import java.util.ArrayList;
import ja... | true | true | public void update(Observable m, Object arg) {
AbstractModel model = (AbstractModel) m;
Boolean save = (Boolean) arg;
try {
if (save) {
// the model was added
if (models.size() != model.size()) {
models.add(model);
... | public void update(Observable m, Object arg) {
AbstractModel model = (AbstractModel) m;
Boolean save = (Boolean) arg;
try {
if (save) {
// the model was added
if (models.size() < model.size()) {
models.add(model);
... |
diff --git a/Cojen/src/java/cojen/classfile/CodeDisassembler.java b/Cojen/src/java/cojen/classfile/CodeDisassembler.java
index e896917..6d177ba 100644
--- a/Cojen/src/java/cojen/classfile/CodeDisassembler.java
+++ b/Cojen/src/java/cojen/classfile/CodeDisassembler.java
@@ -1,1622 +1,1623 @@
/*
* Copyright 2004 Brian... | true | true | public synchronized void disassemble(CodeAssembler assembler,
LocalVariable[] params, Location returnLocation) {
mAssembler = assembler;
mLocals = new Vector();
if (mHasThis = !mMethod.getModifiers().isStatic()) {
// Reserve a slot for "th... | public synchronized void disassemble(CodeAssembler assembler,
LocalVariable[] params, Location returnLocation) {
mAssembler = assembler;
mLocals = new Vector();
if (mHasThis = !mMethod.getModifiers().isStatic()) {
// Reserve a slot for "th... |
diff --git a/teams/confusedteam/RobotPlayer.java b/teams/confusedteam/RobotPlayer.java
index 3e1e9dc..48cf433 100644
--- a/teams/confusedteam/RobotPlayer.java
+++ b/teams/confusedteam/RobotPlayer.java
@@ -1,222 +1,227 @@
package confusedteam;
import battlecode.common.Direction;
import battlecode.common.GameConstan... | false | true | public static void run(RobotController rc) {
while (true) {
try {
if (rc.getType() == RobotType.HQ) {
if (rc.isActive()) {
if(rc.senseEnemyNukeHalfDone()){
rc.broadcast(1354, 1000);
}
else{
rc.broadcast(1354, 100);
}
if((int)rc.getEnergon() < rc.readBroadcast(1... | public static void run(RobotController rc) {
while (true) {
try {
if (rc.getType() == RobotType.HQ) {
if (rc.isActive()) {
if(rc.senseEnemyNukeHalfDone()){
rc.broadcast(1354, 1000);
}
else{
rc.broadcast(1354, 100);
}
if((int)rc.getEnergon() < rc.readBroadcast(1... |
diff --git a/src/flow/netbeans/markdown/options/MarkdownPanel.java b/src/flow/netbeans/markdown/options/MarkdownPanel.java
index 130f645..19d495f 100644
--- a/src/flow/netbeans/markdown/options/MarkdownPanel.java
+++ b/src/flow/netbeans/markdown/options/MarkdownPanel.java
@@ -1,443 +1,443 @@
package flow.netbeans.mark... | true | true | private void initComponents() {
TABS = new javax.swing.JTabbedPane();
EXTENSIONS_PANEL = new javax.swing.JPanel();
EXTENSIONS_PANEL_HEADER = new javax.swing.JLabel();
SMARTS = new javax.swing.JCheckBox();
QUOTES = new javax.swing.JCheckBox();
ABBREVIATIONS = new java... | private void initComponents() {
TABS = new javax.swing.JTabbedPane();
EXTENSIONS_PANEL = new javax.swing.JPanel();
EXTENSIONS_PANEL_HEADER = new javax.swing.JLabel();
SMARTS = new javax.swing.JCheckBox();
QUOTES = new javax.swing.JCheckBox();
ABBREVIATIONS = new java... |
diff --git a/ShareYourSpot_Client/src/de/hska/shareyourspot/android/activites/Friends.java b/ShareYourSpot_Client/src/de/hska/shareyourspot/android/activites/Friends.java
index f6f03e5..21d040e 100644
--- a/ShareYourSpot_Client/src/de/hska/shareyourspot/android/activites/Friends.java
+++ b/ShareYourSpot_Client/src/de/h... | false | true | public void onClickSearch(View view) {
// TODO: search for users and get list, add friends
this.lookFor = new User();
EditText username = (EditText) findViewById(R.id.lookForUser);
this.lookFor.setName(username.getText().toString());
Users users = this.restClient.searchUser(this.lookFor);
// TODO:... | public void onClickSearch(View view) {
// TODO: search for users and get list, add friends
this.lookFor = new User();
EditText username = (EditText) findViewById(R.id.editText_enter_name);
this.lookFor.setName(username.getText().toString());
Users users = this.restClient.searchUser(this.lookFor);
/... |
diff --git a/src/com/esotericsoftware/kryo/serializers/BeanSerializer.java b/src/com/esotericsoftware/kryo/serializers/BeanSerializer.java
index 30f149f..8e9a5e5 100644
--- a/src/com/esotericsoftware/kryo/serializers/BeanSerializer.java
+++ b/src/com/esotericsoftware/kryo/serializers/BeanSerializer.java
@@ -1,194 +1,19... | true | true | public BeanSerializer (Kryo kryo, Class type) {
this.kryo = kryo;
BeanInfo info;
try {
info = Introspector.getBeanInfo(type);
} catch (IntrospectionException ex) {
throw new KryoException("Error getting bean info.", ex);
}
// Methods are sorted by alpha so the order of the data is known.
PropertyD... | public BeanSerializer (Kryo kryo, Class type) {
this.kryo = kryo;
BeanInfo info;
try {
info = Introspector.getBeanInfo(type);
} catch (IntrospectionException ex) {
throw new KryoException("Error getting bean info.", ex);
}
// Methods are sorted by alpha so the order of the data is known.
PropertyD... |
diff --git a/gui/src/main/java/org/jboss/as/console/client/shared/general/InterfacePresenter.java b/gui/src/main/java/org/jboss/as/console/client/shared/general/InterfacePresenter.java
index 06f047a6..4abc0314 100644
--- a/gui/src/main/java/org/jboss/as/console/client/shared/general/InterfacePresenter.java
+++ b/gui/sr... | true | true | private void doPersistChanges(final Interface entity, Map<String,Object> changeset)
{
// artificial values need to be merged manually
String wildcard = entity.getAddressWildcard();
changeset.put("anyAddress", wildcard.equals(Interface.ANY_ADDRESS) ? true : FormItem.VALUE_SEMANTICS.UNDEF... | private void doPersistChanges(final Interface entity, Map<String,Object> changeset)
{
// artificial values need to be merged manually
String wildcard = entity.getAddressWildcard();
changeset.put("anyAddress", wildcard.equals(Interface.ANY_ADDRESS) ? true : FormItem.VALUE_SEMANTICS.UNDEF... |
diff --git a/codegen/src/main/java/org/exolab/castor/builder/info/CollectionInfo.java b/codegen/src/main/java/org/exolab/castor/builder/info/CollectionInfo.java
index a950b860..8a8f8205 100644
--- a/codegen/src/main/java/org/exolab/castor/builder/info/CollectionInfo.java
+++ b/codegen/src/main/java/org/exolab/castor/bu... | true | true | protected final void createGetAsArrayMethod(final JClass jClass, final boolean useJava50) {
JType baseType = this.getContentType().getJType();
JType arrayType = new JArrayType(baseType, useJava50);
JMethod method = new JMethod(this.getReadMethodName(), arrayType,
... | protected final void createGetAsArrayMethod(final JClass jClass, final boolean useJava50) {
JType baseType = this.getContentType().getJType();
JType arrayType = new JArrayType(baseType, useJava50);
JMethod method = new JMethod(this.getReadMethodName(), arrayType,
... |
diff --git a/src/me/corriekay/pppopp3/warp/WarpHandler.java b/src/me/corriekay/pppopp3/warp/WarpHandler.java
index 0615092..4c80315 100644
--- a/src/me/corriekay/pppopp3/warp/WarpHandler.java
+++ b/src/me/corriekay/pppopp3/warp/WarpHandler.java
@@ -1,559 +1,564 @@
package me.corriekay.pppopp3.warp;
import java.util... | true | true | public boolean handleCommand(CommandSender sender, Command cmd, String label, String[] args){
if(cmd.getName().equals("warpdebug")) {
for(String warpCategory : warpHandler.keySet()) {
System.out.print(warpCategory + ":");
WarpList wl = warpHandler.get(warpCategory);
for(String warp : wl.warps()) {
... | public boolean handleCommand(CommandSender sender, Command cmd, String label, String[] args){
if(cmd.getName().equals("warpdebug")) {
for(String warpCategory : warpHandler.keySet()) {
System.out.print(warpCategory + ":");
WarpList wl = warpHandler.get(warpCategory);
for(String warp : wl.warps()) {
... |
diff --git a/x10.compiler/src/polyglot/types/Types.java b/x10.compiler/src/polyglot/types/Types.java
index b0c4ef386..ca13b3121 100644
--- a/x10.compiler/src/polyglot/types/Types.java
+++ b/x10.compiler/src/polyglot/types/Types.java
@@ -1,1781 +1,1779 @@
package polyglot.types;
import java.util.ArrayList;
import j... | false | true | public static boolean isHaszero(Type t, Context xc) {
TypeSystem ts = xc.typeSystem();
XLit zeroLit = null; // see Lit_c.constantValue() in its decendants
if (t.isBoolean()) {
zeroLit = XTerms.FALSE;
} else if (ts.isChar(t)) {
zeroLit = XTerms.ZERO_CHAR;
} else if (ts.isInt(... | public static boolean isHaszero(Type t, Context xc) {
TypeSystem ts = xc.typeSystem();
XLit zeroLit = null; // see Lit_c.constantValue() in its decendants
if (t.isBoolean()) {
zeroLit = XTerms.FALSE;
} else if (ts.isChar(t)) {
zeroLit = XTerms.ZERO_CHAR;
} else if (ts.isInt(... |
diff --git a/src/edu/jhu/thrax/hadoop/jobs/WordLexprobJob.java b/src/edu/jhu/thrax/hadoop/jobs/WordLexprobJob.java
index 0e840d2..5643261 100644
--- a/src/edu/jhu/thrax/hadoop/jobs/WordLexprobJob.java
+++ b/src/edu/jhu/thrax/hadoop/jobs/WordLexprobJob.java
@@ -1,61 +1,61 @@
package edu.jhu.thrax.hadoop.jobs;
import... | true | true | public Job getJob(Configuration conf) throws IOException {
Configuration theConf = new Configuration(conf);
theConf.setBoolean(SOURCE_GIVEN_TARGET, isSourceGivenTarget);
Job job = new Job(theConf, "source-word-lexprob");
job.setJarByClass(WordLexicalProbabilityCalculator.class);
job.setMapperClass... | public Job getJob(Configuration conf) throws IOException {
Configuration theConf = new Configuration(conf);
theConf.setBoolean(SOURCE_GIVEN_TARGET, isSourceGivenTarget);
Job job = new Job(theConf, getName());
job.setJarByClass(WordLexicalProbabilityCalculator.class);
job.setMapperClass(WordLexical... |
diff --git a/dspace/src/org/dspace/storage/rdbms/TableRow.java b/dspace/src/org/dspace/storage/rdbms/TableRow.java
index 35c824733..21233329f 100644
--- a/dspace/src/org/dspace/storage/rdbms/TableRow.java
+++ b/dspace/src/org/dspace/storage/rdbms/TableRow.java
@@ -1,456 +1,456 @@
/*
* TableRow.java
*
* Version: ... | true | true | public int getIntColumn(String column)
{
if (! hasColumn(column))
throw new IllegalArgumentException("No such column " + column);
String name = canonicalize(column);
if (isColumnNull(name))
return -1;
Object value = data.get(name);
if (value ==... | public int getIntColumn(String column)
{
if (! hasColumn(column))
throw new IllegalArgumentException("No such column " + column);
String name = canonicalize(column);
if (isColumnNull(name))
return -1;
Object value = data.get(name);
if (value ==... |
diff --git a/source/RMG/jing/chem/ThermoGAGroupLibrary.java b/source/RMG/jing/chem/ThermoGAGroupLibrary.java
index 7b35805f..cc324aed 100644
--- a/source/RMG/jing/chem/ThermoGAGroupLibrary.java
+++ b/source/RMG/jing/chem/ThermoGAGroupLibrary.java
@@ -1,1539 +1,1539 @@
//////////////////////////////////////////////////... | true | true | public ThermoGAValue findGAGroup(ChemGraph p_chemGraph) throws GroupNotFoundException, MultipleGroupFoundException, InvalidCenterTypeException {
//#[ operation findGAGroup(ChemGraph)
if (p_chemGraph == null) return null;
Stack stack = groupTree.findMatchedPath(p_chemGraph);
p_chemGraph.getGraph().resetMatched... | public ThermoGAValue findGAGroup(ChemGraph p_chemGraph) throws GroupNotFoundException, MultipleGroupFoundException, InvalidCenterTypeException {
//#[ operation findGAGroup(ChemGraph)
if (p_chemGraph == null) return null;
Stack stack = groupTree.findMatchedPath(p_chemGraph);
p_chemGraph.getGraph().resetMatched... |
diff --git a/mini2Dx-core/src/main/java/org/mini2Dx/core/audio/CrossFadingMusicLoop.java b/mini2Dx-core/src/main/java/org/mini2Dx/core/audio/CrossFadingMusicLoop.java
index 1b7c1da35..cd7445269 100644
--- a/mini2Dx-core/src/main/java/org/mini2Dx/core/audio/CrossFadingMusicLoop.java
+++ b/mini2Dx-core/src/main/java/org/... | true | true | public void stop() {
scheduledFuture.cancel(false);
while (!scheduledFuture.isDone()) {
try {
Thread.sleep(1);
} catch (Exception e) {
}
}
currentTrack.stop();
nextTrack.stop();
scheduledFuture = null;
}
| public void stop() {
if(scheduledFuture != null) {
scheduledFuture.cancel(false);
while (!scheduledFuture.isDone()) {
try {
Thread.sleep(1);
} catch (Exception e) {
}
}
}
currentTrack.stop();
nextTrack.stop();
scheduledFuture = null;
}
|
diff --git a/src/web/core/src/main/java/org/geoserver/web/data/layer/NewLayerPageProvider.java b/src/web/core/src/main/java/org/geoserver/web/data/layer/NewLayerPageProvider.java
index 1c7ff298d7..c5323f1a5a 100644
--- a/src/web/core/src/main/java/org/geoserver/web/data/layer/NewLayerPageProvider.java
+++ b/src/web/cor... | true | true | protected List<Resource> getItems() {
// return an empty list in case we still don't know about the store
if(storeId == null)
return new ArrayList<Resource>();
// else, grab the resource list
try {
List<Resource> result;
StoreInfo store = ... | protected List<Resource> getItems() {
// return an empty list in case we still don't know about the store
if(storeId == null)
return new ArrayList<Resource>();
// else, grab the resource list
try {
List<Resource> result;
StoreInfo store = ... |
diff --git a/blueprints/blueprints-generator/src/main/java/com/tinkerpop/blueprints/generator/AbstractGenerator.java b/blueprints/blueprints-generator/src/main/java/com/tinkerpop/blueprints/generator/AbstractGenerator.java
index e7dca4f59..f7fc99e18 100644
--- a/blueprints/blueprints-generator/src/main/java/com/tinkerp... | true | true | public AbstractGenerator(final String label, final Optional<Consumer<Edge>> edgeAnnotator,
final Optional<BiConsumer<Vertex,Map<String,Object>>> vertexAnnotator, final Optional<Supplier<Long>> seedGenerator) {
if (label == null || label.isEmpty()) throw new IllegalArgumentExcept... | public AbstractGenerator(final String label, final Optional<Consumer<Edge>> edgeAnnotator,
final Optional<BiConsumer<Vertex,Map<String,Object>>> vertexAnnotator,
final Optional<Supplier<Long>> seedGenerator) {
if (label == null || label.isEmpty()) th... |
diff --git a/src/com/angrykings/activities/LobbyActivity.java b/src/com/angrykings/activities/LobbyActivity.java
index b3dd048..6d5b3cc 100644
--- a/src/com/angrykings/activities/LobbyActivity.java
+++ b/src/com/angrykings/activities/LobbyActivity.java
@@ -1,179 +1,186 @@
package com.angrykings.activities;
import j... | false | true | private void displayLobby() {
updateLobby(users);
getListView().setTextFilterEnabled(true);
ServerConnection.getInstance().setHandler(new OnMessageHandler() {
@Override
public void onMessage(String payload) {
try {
JSONObject jObj = new JSONObject(payload);
if (jObj.getInt("action") == Actio... | private void displayLobby() {
updateLobby(users);
getListView().setTextFilterEnabled(true);
ServerConnection.getInstance().setHandler(new OnMessageHandler() {
@Override
public void onMessage(String payload) {
try {
final JSONObject jObj = new JSONObject(payload);
if (jObj.getInt("action") ==... |
diff --git a/src/com/github/unluckyninja/mousekiller/MouseKiller.java b/src/com/github/unluckyninja/mousekiller/MouseKiller.java
index fc55b05..ffa5718 100644
--- a/src/com/github/unluckyninja/mousekiller/MouseKiller.java
+++ b/src/com/github/unluckyninja/mousekiller/MouseKiller.java
@@ -1,61 +1,61 @@
package com.gith... | true | true | public static void main(String[] args) {
LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration();
cfg.title = "Drop";
cfg.width = width;
cfg.height = height;
cfg.useGL20 = true;
new LwjglApplication(new MouseKiller(), cfg);
}
| public static void main(String[] args) {
LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration();
cfg.title = "MouseKiller";
cfg.width = width;
cfg.height = height;
cfg.useGL20 = true;
new LwjglApplication(new MouseKiller(), cfg);
}
|
diff --git a/src/de/ueller/midlet/gps/DiscoverGps.java b/src/de/ueller/midlet/gps/DiscoverGps.java
index 326c30d1..602d592b 100644
--- a/src/de/ueller/midlet/gps/DiscoverGps.java
+++ b/src/de/ueller/midlet/gps/DiscoverGps.java
@@ -1,463 +1,463 @@
package de.ueller.midlet.gps;
/*
* GpsMid - Copyright (c) 2007 Harald... | false | true | public void run() {
try {
guiBusy = new GuiBusy();
guiBusy.show();
//Probe Commports:
try {
String commports = System.getProperty("microedition.commports");
String[] commport = StringTokenizer.getArray(commports, ",");
for (int i = 0; i < commport.length; i++) {
parent.addDevice("... | public void run() {
try {
guiBusy = new GuiBusy();
guiBusy.show();
//Probe Commports:
try {
String commports = System.getProperty("microedition.commports");
String[] commport = StringTokenizer.getArray(commports, ",");
for (int i = 0; i < commport.length; i++) {
parent.addDevice("... |
diff --git a/javafx.navigation/src/org/netbeans/modules/javafx/navigation/ClassMemberPanel.java b/javafx.navigation/src/org/netbeans/modules/javafx/navigation/ClassMemberPanel.java
index 50a64171..42b10fc3 100644
--- a/javafx.navigation/src/org/netbeans/modules/javafx/navigation/ClassMemberPanel.java
+++ b/javafx.navig... | true | true | public void panelActivated(Lookup context) {
assert context != null;
INSTANCE = this;
// System.out.println("Panel Activated");
ClassMemberNavigatorJavaFXSourceFactory.getInstance().setLookup(context, getClassMemberPanelUI());
getClassMemberPanelUI().showWaitNode();
}
| public void panelActivated(Lookup context) {
assert context != null;
INSTANCE = this;
final ClassMemberNavigatorJavaFXSourceFactory instance = ClassMemberNavigatorJavaFXSourceFactory.getInstance();
if (instance != null) {
instance.setLookup(context, getClassMemberPanelUI(... |
diff --git a/src/main/java/org/pircbotx/PircBotX.java b/src/main/java/org/pircbotx/PircBotX.java
index a33345b..0ab7c5a 100644
--- a/src/main/java/org/pircbotx/PircBotX.java
+++ b/src/main/java/org/pircbotx/PircBotX.java
@@ -1,2328 +1,2327 @@
/**
* Copyright (C) 2010 Leon Blakey <lord.quackstar at gmail.com>
*
*... | false | true | protected void handleLine(String line) {
log("<<<" + line);
// Check for server pings.
if (line.startsWith("PING ")) {
// Respond to the ping and return immediately.
getListenerManager().dispatchEvent(new ServerPingEvent(this, line.substring(5)));
return;
}
String sourceNick = "";
String sourceL... | protected void handleLine(String line) {
log("<<<" + line);
// Check for server pings.
if (line.startsWith("PING ")) {
// Respond to the ping and return immediately.
getListenerManager().dispatchEvent(new ServerPingEvent(this, line.substring(5)));
return;
}
String sourceNick = "";
String sourceL... |
diff --git a/net.sf.rcer.jcoimport/src/net/sf/rcer/jcoimport/JCoImportWizard.java b/net.sf.rcer.jcoimport/src/net/sf/rcer/jcoimport/JCoImportWizard.java
index f508d3d..8808fed 100644
--- a/net.sf.rcer.jcoimport/src/net/sf/rcer/jcoimport/JCoImportWizard.java
+++ b/net.sf.rcer.jcoimport/src/net/sf/rcer/jcoimport/JCoImpor... | true | true | public void init(IWorkbench workbench, IStructuredSelection selection) {
setWindowTitle(Messages.JCoImportWizard_WindowTitle);
setNeedsProgressMonitor(true);
generatorSettings = new ProjectGeneratorSettings();
if (Platform.getInstallLocation() != null) {
generatorSettings.setBundleExportSelected(true);
... | public void init(IWorkbench workbench, IStructuredSelection selection) {
setWindowTitle(Messages.JCoImportWizard_WindowTitle);
setNeedsProgressMonitor(true);
generatorSettings = new ProjectGeneratorSettings();
if (Platform.getInstallLocation() != null) {
generatorSettings.setBundleExportSelected(true);
... |
diff --git a/src/com/undeadscythes/udsplugin/eventhandlers/PlayerInteractEntity.java b/src/com/undeadscythes/udsplugin/eventhandlers/PlayerInteractEntity.java
index 13995e4..2652e56 100644
--- a/src/com/undeadscythes/udsplugin/eventhandlers/PlayerInteractEntity.java
+++ b/src/com/undeadscythes/udsplugin/eventhandlers/P... | false | true | public void onEvent(final PlayerInteractEntityEvent event) {
if(event.getRightClicked() instanceof Tameable) {
final Tameable pet = (Tameable) event.getRightClicked();
if(pet.isTamed()) {
String ownerName = "";
if(pet instanceof Wolf) {
... | public final void onEvent(final PlayerInteractEntityEvent event) {
if(event.getRightClicked() instanceof Tameable) {
final Tameable pet = (Tameable)event.getRightClicked();
if(pet.isTamed()) {
final String ownerName = pet.getOwner().getName();
if(owner... |
diff --git a/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/jnaerator/BridJDeclarationsConverter.java b/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/jnaerator/BridJDeclarationsConverter.java
index ad841845..fc696c90 100644
--- a/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/... | false | true | public void convertEnum(Enum e, Signatures signatures, DeclarationsHolder out, Identifier libraryClassName) {
if (e.isForwardDeclaration())
return;
Identifier rawEnumName = getActualTaggedTypeName(e);
List<EnumItemResult> results = getEnumValuesAndCommentsByName(e, signatures, libraryClassName);
... | public void convertEnum(Enum e, Signatures signatures, DeclarationsHolder out, Identifier libraryClassName) {
if (e.isForwardDeclaration())
return;
Identifier rawEnumName = getActualTaggedTypeName(e);
List<EnumItemResult> results = getEnumValuesAndCommentsByName(e, signatures, libraryClassName);
... |
diff --git a/CubicTestWatirExporter/src/org/cubictest/exporters/watir/converters/TransitionConverter.java b/CubicTestWatirExporter/src/org/cubictest/exporters/watir/converters/TransitionConverter.java
index b8d41a68..2fb5d474 100644
--- a/CubicTestWatirExporter/src/org/cubictest/exporters/watir/converters/TransitionCon... | true | true | private void handlePageElementAction(IStepList steps, UserInteraction peAction) {
Object obj = peAction.getElement();
if (obj == null) {
return;
}
ActionType action = peAction.getActionType();
TestStep step = null;
if (obj instanceof PageElement) {
String input = peAction.getTextualInput();
PageEl... | private void handlePageElementAction(IStepList steps, UserInteraction peAction) {
Object obj = peAction.getElement();
if (obj == null) {
return;
}
ActionType action = peAction.getActionType();
TestStep step = null;
if (obj instanceof PageElement) {
String input = peAction.getTextualInput();
PageEl... |
diff --git a/src/net/java/sip/communicator/impl/media/EncodingConfigurationTableModel.java b/src/net/java/sip/communicator/impl/media/EncodingConfigurationTableModel.java
index 617c5dd69..c177f8ff8 100644
--- a/src/net/java/sip/communicator/impl/media/EncodingConfigurationTableModel.java
+++ b/src/net/java/sip/communic... | true | true | private String[] getEncodings()
{
if (encodings != null)
return encodings;
String[] availableEncodings;
switch (type)
{
case AUDIO:
availableEncodings =
encodingConfiguration.getAvailableAudioEncodings();
break;
... | private String[] getEncodings()
{
if (encodings != null)
return encodings;
String[] availableEncodings;
switch (type)
{
case AUDIO:
availableEncodings =
encodingConfiguration.getAvailableAudioEncodings();
break;
... |
diff --git a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/launch/TCFLaunchContext.java b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/launch/TCFLaunchContext.java
index c7d71a75f..ab0910489 100644
--- a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/t... | true | true | public static ITCFLaunchContext getLaunchContext(Object selection) {
try {
IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint(Activator.PLUGIN_ID, "launch_context");
IExtension[] extensions = point.getExtensions();
for (int i = 0; i < extensions.len... | public static ITCFLaunchContext getLaunchContext(Object selection) {
try {
IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint(Activator.PLUGIN_ID, "launch_context");
IExtension[] extensions = point.getExtensions();
for (int i = 0; i < extensions.len... |
diff --git a/src/org/eclipse/jface/bindings/keys/formatting/NativeKeyFormatter.java b/src/org/eclipse/jface/bindings/keys/formatting/NativeKeyFormatter.java
index e388dd24..b8295fe1 100644
--- a/src/org/eclipse/jface/bindings/keys/formatting/NativeKeyFormatter.java
+++ b/src/org/eclipse/jface/bindings/keys/formatting/N... | true | true | protected int[] sortModifierKeys(final int modifierKeys) {
final IKeyLookup lookup = KeyLookupFactory.getDefault();
final String platform = SWT.getPlatform();
final int[] sortedKeys = new int[4];
int index = 0;
if ("win32".equals(platform)) { //$NON-NLS-1$
if ((modifierKeys & lookup.getCtrl()) != 0) {
... | protected int[] sortModifierKeys(final int modifierKeys) {
final IKeyLookup lookup = KeyLookupFactory.getDefault();
final String platform = SWT.getPlatform();
final int[] sortedKeys = new int[4];
int index = 0;
if ("win32".equals(platform) || "wpf".equals(platform)) { //$NON-NLS-1$ //$NON-NLS-2$
if ((mod... |
diff --git a/src/org/bombusim/lime/NotificationMgr.java b/src/org/bombusim/lime/NotificationMgr.java
index 13065da..690e43e 100644
--- a/src/org/bombusim/lime/NotificationMgr.java
+++ b/src/org/bombusim/lime/NotificationMgr.java
@@ -1,147 +1,151 @@
/*
* Copyright (c) 2005-2011, Eugene Stahov (evgs@bombus-im.org),
... | false | true | public void showChatNotification(Contact visavis, String message, long id) {
// target ChatActivity
Intent openChat = new Intent(context, ChatActivity.class);
openChat.putExtra(ChatActivity.MY_JID, visavis.getRosterJid());
openChat.putExtra(ChatActivity.TO_JID, visavis.getJid());
if (message.length()>... | public void showChatNotification(Contact visavis, String message, long id) {
//cancelling old notification
mNM.cancel(NOTIFICATION_CHAT);
// target ChatActivity
// Every intent should have unique action or uri,
// else we have a mess: same intents with different values.
Intent openChat = new Intent(... |
diff --git a/src/org/newdawn/slick/Color.java b/src/org/newdawn/slick/Color.java
index 60235d0..143fb76 100644
--- a/src/org/newdawn/slick/Color.java
+++ b/src/org/newdawn/slick/Color.java
@@ -1,317 +1,317 @@
package org.newdawn.slick;
import java.io.Serializable;
import java.nio.FloatBuffer;
import org.newdawn... | true | true | public Color(int value) {
int r = (value & 0x00FF0000) >> 16;
int g = (value & 0x0000FF00) >> 8;
int b = (value & 0x000000FF);
int a = (value & 0xFF000000) >> 24;
if (a == 0) {
a = 255;
}
this.r = r / 255.0f;
this.g = g / 255.0f;
this.b = b / 255.0f;
this.a = a / 255.0f;
}
| public Color(int value) {
int r = (value & 0x00FF0000) >> 16;
int g = (value & 0x0000FF00) >> 8;
int b = (value & 0x000000FF);
int a = (value & 0xFF000000) >> 24;
if (a < 0) {
a += 255;
}
this.r = r / 255.0f;
this.g = g / 255.0f;
this.b = b / 255.0f;
this.a = a / 255.0f;
}
|
diff --git a/src/net/drmods/plugins/irc/Rank.java b/src/net/drmods/plugins/irc/Rank.java
index dee3663a..720da383 100644
--- a/src/net/drmods/plugins/irc/Rank.java
+++ b/src/net/drmods/plugins/irc/Rank.java
@@ -1,230 +1,230 @@
/*
* This file is part of DrFTPD, Distributed FTP Daemon.
*
* DrFTPD is free software;... | true | true | public ArrayList<String> doRank(String args, MessageCommand msgc) {
ArrayList<String> out = new ArrayList<String>();
ReplacerEnvironment env = new ReplacerEnvironment(SiteBot.GLOBAL_ENV);
env.add("ircnick", msgc.getSource().getNick());
FullNick fn = msgc.getSource();
String ident = fn.getNick() + "!" + f... | public ArrayList<String> doRank(String args, MessageCommand msgc) {
ArrayList<String> out = new ArrayList<String>();
ReplacerEnvironment env = new ReplacerEnvironment(SiteBot.GLOBAL_ENV);
env.add("ircnick", msgc.getSource().getNick());
FullNick fn = msgc.getSource();
String ident = fn.getNick() + "!" + f... |
diff --git a/src/main/java/com/alecgorge/minecraft/jsonapi/packets/Packet0x47HttpGetPacket.java b/src/main/java/com/alecgorge/minecraft/jsonapi/packets/Packet0x47HttpGetPacket.java
index b7b6d21..1e68d03 100644
--- a/src/main/java/com/alecgorge/minecraft/jsonapi/packets/Packet0x47HttpGetPacket.java
+++ b/src/main/java/... | true | true | public void handle(Connection net) {
if(!isGET || !isHTTP) {
super.handle(net);
return;
}
final PendingConnection loginHandler = (PendingConnection) net;
try {
loginHandler.getSocket().setTcpNoDelay(true);
RawPacket.resetTimeout(loginHandler);
if (isKeepAlive) {
return;
}
if (isStr... | public void handle(Connection net) {
if(!isGET) {
super.handle(net);
return;
}
final PendingConnection loginHandler = (PendingConnection) net;
try {
loginHandler.getSocket().setTcpNoDelay(true);
RawPacket.resetTimeout(loginHandler);
if (isKeepAlive) {
return;
}
if (isStream) {
... |
diff --git a/JsTestDriver/src/com/google/jstestdriver/browser/BrowserControl.java b/JsTestDriver/src/com/google/jstestdriver/browser/BrowserControl.java
index f0023bbb..99f9d00f 100644
--- a/JsTestDriver/src/com/google/jstestdriver/browser/BrowserControl.java
+++ b/JsTestDriver/src/com/google/jstestdriver/browser/Brows... | true | true | public String captureBrowser(String browserId) throws InterruptedException {
try {
stopWatch.start("browser start %s", browserId);
final String url;
if (testCases.isEmpty()) {
url = String.format(CAPTURE_URL,
serverAddress,
browserId,
Math.max(runner.g... | public String captureBrowser(String browserId) throws InterruptedException {
try {
stopWatch.start("browser start %s", browserId);
final String url;
if (testCases.isEmpty()) {
url = String.format(CAPTURE_URL,
serverAddress,
browserId,
Math.max(runner.g... |
diff --git a/achartengine/src/org/achartengine/chart/TimeChart.java b/achartengine/src/org/achartengine/chart/TimeChart.java
index 2fbf83d..864e5f8 100644
--- a/achartengine/src/org/achartengine/chart/TimeChart.java
+++ b/achartengine/src/org/achartengine/chart/TimeChart.java
@@ -1,208 +1,211 @@
/**
* Copyright (C) ... | false | true | protected List<Double> getXLabels(double min, double max, int count) {
if (!mXAxisSmart) {
return super.getXLabels(min, max, count);
}
if (mStartPoint == null) {
mStartPoint = min - (min % DAY) + DAY + new Date(Math.round(min)).getTimezoneOffset() * 60
* 1000;
}
if (count > 2... | protected List<Double> getXLabels(double min, double max, int count) {
if (!mXAxisSmart) {
return super.getXLabels(min, max, count);
}
if (mStartPoint == null) {
mStartPoint = min - (min % DAY) + DAY + new Date(Math.round(min)).getTimezoneOffset() * 60
* 1000;
}
if (count > 2... |
diff --git a/Yamba-8/src/com/marakana/yamba8/YambaWidget.java b/Yamba-8/src/com/marakana/yamba8/YambaWidget.java
index 29f45ab..7949cc6 100644
--- a/Yamba-8/src/com/marakana/yamba8/YambaWidget.java
+++ b/Yamba-8/src/com/marakana/yamba8/YambaWidget.java
@@ -1,60 +1,60 @@
package com.marakana.yamba8;
import android.a... | true | true | public void onUpdate(Context context, AppWidgetManager appWidgetManager,
int[] appWidgetIds) { // <2>
Cursor c = context.getContentResolver().query(StatusProvider.CONTENT_URI,
null, null, null, null); // <3>
try {
if (c.moveToFirst()) { // <4>
CharSequence user = c.getString(c.getC... | public void onUpdate(Context context, AppWidgetManager appWidgetManager,
int[] appWidgetIds) { // <2>
Cursor c = context.getContentResolver().query(StatusProvider.CONTENT_URI,
null, null, null, StatusData.C_CREATED_AT + " DESC"); // <3>
try {
if (c.moveToFirst()) { // <4>
CharSeque... |
diff --git a/ini/trakem2/display/Treeline.java b/ini/trakem2/display/Treeline.java
index 39e331b6..a3dc0acc 100644
--- a/ini/trakem2/display/Treeline.java
+++ b/ini/trakem2/display/Treeline.java
@@ -1,824 +1,824 @@
package ini.trakem2.display;
import ij.measure.Calibration;
import ij.gui.GenericDialog;
import ini... | true | true | public MeshData generateMesh(double scale_, int parallels) {
// Construct a mesh made of straight tubes for each edge, and balls of the same ending diameter on the nodes.
//
// TODO:
// With some cleverness, such meshes could be welded together by merging the nearest vertices on the ball
// surfaces, or by c... | public MeshData generateMesh(double scale_, int parallels) {
// Construct a mesh made of straight tubes for each edge, and balls of the same ending diameter on the nodes.
//
// TODO:
// With some cleverness, such meshes could be welded together by merging the nearest vertices on the ball
// surfaces, or by c... |
diff --git a/src/com/js/interpreter/runtime/exception/PascalIndexOutOfBoundsException.java b/src/com/js/interpreter/runtime/exception/PascalIndexOutOfBoundsException.java
index 7c5abfa..50aea5c 100644
--- a/src/com/js/interpreter/runtime/exception/PascalIndexOutOfBoundsException.java
+++ b/src/com/js/interpreter/runtim... | true | true | private String getcause(int index, int min, int max) {
if (index < min) {
return index + " is less than the minimum index of " + min;
} else {
return index + " is greater than the maximum index of " + max;
}
}
| private String getcause(int index, int min, int max) {
if (index < min) {
return index + " is less than the minimum index of " + min;
} else if (max == -1 && min == 0) {
return "variable length array has not been initialized yet";
} else {
return index + " is greater than the maximum index of " + max;
... |
diff --git a/org/jruby/parser/Parser.java b/org/jruby/parser/Parser.java
index 12b515272..2c2c5b90f 100644
--- a/org/jruby/parser/Parser.java
+++ b/org/jruby/parser/Parser.java
@@ -1,71 +1,79 @@
/*
* Copyright (C) 2002 Anders Bengtsson <ndrsbngtssn@yahoo.se>
*
* JRuby - http://jruby.sourceforge.net
*
* This ... | false | true | public INode parse(String file, Reader content, RubyParserConfiguration config) {
config.setLocalVariables(ruby.getScope().getLocalNames());
internalParser.init(config);
ILexerSource lexerSource = LexerFactory.getInstance().getSource(file, content);
IRubyParserResult result = (IRubyP... | public INode parse(String file, Reader content, RubyParserConfiguration config) {
config.setLocalVariables(ruby.getScope().getLocalNames());
internalParser.init(config);
ILexerSource lexerSource = LexerFactory.getInstance().getSource(file, content);
IRubyParserResult result = (IRubyP... |
diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/fasta/PickSequenomProbes.java b/java/src/org/broadinstitute/sting/gatk/walkers/fasta/PickSequenomProbes.java
index 965ee935c..85cedf520 100755
--- a/java/src/org/broadinstitute/sting/gatk/walkers/fasta/PickSequenomProbes.java
+++ b/java/src/org/broadinstitute/... | true | true | public String map(RefMetaDataTracker rodData, ReferenceContext ref, AlignmentContext context) {
logger.debug("Probing " + ref.getLocus() + " " + ref.getWindow());
String refBase = String.valueOf(ref.getBase());
Iterator<ReferenceOrderedDatum> rods = rodData.getAllRods().iterator();
Vari... | public String map(RefMetaDataTracker rodData, ReferenceContext ref, AlignmentContext context) {
logger.debug("Probing " + ref.getLocus() + " " + ref.getWindow());
String refBase = String.valueOf(ref.getBase());
Iterator<ReferenceOrderedDatum> rods = rodData.getAllRods().iterator();
Vari... |
diff --git a/plugins/org.xwiki.eclipse.ui/src/main/java/org/xwiki/eclipse/ui/adapters/XWikiEclipsePageSummaryAdapter.java b/plugins/org.xwiki.eclipse.ui/src/main/java/org/xwiki/eclipse/ui/adapters/XWikiEclipsePageSummaryAdapter.java
index 17b2db5..abd3a18 100644
--- a/plugins/org.xwiki.eclipse.ui/src/main/java/org/xwik... | false | true | public Object[] getChildren(Object object)
{
if (object instanceof XWikiEclipsePageSummary) {
final XWikiEclipsePageSummary pageSummary = (XWikiEclipsePageSummary) object;
try {
/* fetch objects (including annotations, comments and customized objects), pageClass,... | public Object[] getChildren(Object object)
{
if (object instanceof XWikiEclipsePageSummary) {
final XWikiEclipsePageSummary pageSummary = (XWikiEclipsePageSummary) object;
try {
/* fetch objects (including annotations, comments and customized objects), pageClass,... |
diff --git a/nexus/nexus-test-harness/nexus-test-harness-launcher/src/test/java/org/sonatype/nexus/integrationtests/nexus779/Nexus779RssFeedFilteringTest.java b/nexus/nexus-test-harness/nexus-test-harness-launcher/src/test/java/org/sonatype/nexus/integrationtests/nexus779/Nexus779RssFeedFilteringTest.java
index 9422f5f... | true | true | public void filteredFeeds()
throws Exception
{
TestContainer.getInstance().getTestContext().useAdminForRequests();
// First create the targets
RepositoryTargetResource test1Target = createTarget( "filterTarget1", Collections.singletonList( ".*/test1/.*" ) );
RepositoryTa... | public void filteredFeeds()
throws Exception
{
TestContainer.getInstance().getTestContext().useAdminForRequests();
// First create the targets
RepositoryTargetResource test1Target = createTarget( "filterTarget1", Collections.singletonList( ".*/test1/.*" ) );
RepositoryTa... |
diff --git a/src/org/jets3t/service/impl/rest/httpclient/RestS3Service.java b/src/org/jets3t/service/impl/rest/httpclient/RestS3Service.java
index c435b00..c710c68 100644
--- a/src/org/jets3t/service/impl/rest/httpclient/RestS3Service.java
+++ b/src/org/jets3t/service/impl/rest/httpclient/RestS3Service.java
@@ -1,1734 ... | false | true | protected void performRequest(HttpMethodBase httpMethod, int expectedResponseCode)
throws S3ServiceException
{
try {
log.debug("Performing " + httpMethod.getName()
+ " request for '" + httpMethod.getURI().toString()
+ "', expecting response... | protected void performRequest(HttpMethodBase httpMethod, int expectedResponseCode)
throws S3ServiceException
{
try {
log.debug("Performing " + httpMethod.getName()
+ " request for '" + httpMethod.getURI().toString()
+ "', expecting response... |
diff --git a/src/general/tracers/OppositeWaveTracer.java b/src/general/tracers/OppositeWaveTracer.java
index 2ad3a94..269300e 100644
--- a/src/general/tracers/OppositeWaveTracer.java
+++ b/src/general/tracers/OppositeWaveTracer.java
@@ -1,99 +1,102 @@
package general.tracers;
import general.*;
import general.Panel... | true | true | private void makeWave (int index)
{
int x = (int) points.get(index).getX();
int y = (int) points.get(index).getY();
// points.remove(index);
int waveFront;
if (Scheme.labels[x][y].equals(""))
waveFront=0;
else
waveFront = Integer.parseInt(Sc... | private void makeWave (int index)
{
int x = (int) points.get(index).getX();
int y = (int) points.get(index).getY();
// points.remove(index);
int waveFront;
if (Scheme.labels[x][y].equals(""))
{
waveFront=0;
Scheme.labels[x][y]="0";
}
... |
diff --git a/fits/src/main/uk/ac/starlink/fits/FitsTableSerializer.java b/fits/src/main/uk/ac/starlink/fits/FitsTableSerializer.java
index f2c6515b0..210fe949d 100644
--- a/fits/src/main/uk/ac/starlink/fits/FitsTableSerializer.java
+++ b/fits/src/main/uk/ac/starlink/fits/FitsTableSerializer.java
@@ -1,848 +1,848 @@
pa... | true | true | private static ColumnWriter makeColumnWriter( ColumnInfo cinfo, int[] shape,
int eSize,
final boolean nullableInt ) {
Class clazz = cinfo.getContentClass();
int n1 = 1;
if ( shape != null ) ... | private static ColumnWriter makeColumnWriter( ColumnInfo cinfo, int[] shape,
int eSize,
final boolean nullableInt ) {
Class clazz = cinfo.getContentClass();
int n1 = 1;
if ( shape != null ) ... |
diff --git a/src/test/java/io/prismic/AppTest.java b/src/test/java/io/prismic/AppTest.java
index 712ee98..ca91db9 100644
--- a/src/test/java/io/prismic/AppTest.java
+++ b/src/test/java/io/prismic/AppTest.java
@@ -1,101 +1,103 @@
package io.prismic;
import junit.framework.Test;
import junit.framework.TestCase;
imp... | false | true | public void testDocumentSerializationWorks() {
String article1_retrieved = lbc_api.getForm("everything")
.query("[[:d = at(document.id, \"UkL0gMuvzYUANCps\")]]")
.ref(lbc_api.getMaster())
.submit()
.get(0)
.asHtml(new DocumentLinkResolver() {
public String resolve(Fragment.DocumentLink link)... | public void testDocumentSerializationWorks() {
String article1_retrieved = lbc_api.getForm("everything")
.query("[[:d = at(document.id, \"UkL0gMuvzYUANCps\")]]")
.ref(lbc_api.getMaster())
.submit()
.get(0)
.asHtml(new DocumentLinkResolver() {
public String resolve(Fragment.DocumentLink link)... |
diff --git a/bundles/org.eclipse.orion.server.useradmin/src/org/eclipse/orion/server/useradmin/servlets/AdminFilter.java b/bundles/org.eclipse.orion.server.useradmin/src/org/eclipse/orion/server/useradmin/servlets/AdminFilter.java
index d920f88..2a9f725 100644
--- a/bundles/org.eclipse.orion.server.useradmin/src/org/ec... | true | true | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
HttpServletRequest httpRequest = (HttpServletRequest) request;
HttpServletResponse httpResponse = (HttpServletResponse) response;
if ("POST".equals(httpRequest.getMethod())) { // eve... | public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
HttpServletRequest httpRequest = (HttpServletRequest) request;
HttpServletResponse httpResponse = (HttpServletResponse) response;
if ("POST".equals(httpRequest.getMethod())) { // eve... |
diff --git a/CS5430/src/database/SocialNetworkDatabaseRegions.java b/CS5430/src/database/SocialNetworkDatabaseRegions.java
index 1d91156..1f75d7f 100644
--- a/CS5430/src/database/SocialNetworkDatabaseRegions.java
+++ b/CS5430/src/database/SocialNetworkDatabaseRegions.java
@@ -1,159 +1,162 @@
package database;
impor... | false | true | public static String getRegionListRecentPosts(Connection conn, String username, String boardName){
String regionsAndPosts = "print Regions:;";
PreparedStatement regionPstmt = null;
String fetchRegionsMember = "SELECT rname, privileges FROM " +
boardName + ".regionprivileges " +
"WHERE username = ?";
... | public static String getRegionListRecentPosts(Connection conn, String username, String boardName){
String regionsAndPosts = "print Regions:;";
PreparedStatement regionPstmt = null;
String fetchRegionsMember = "SELECT rname, privileges FROM " +
boardName + ".regionprivileges " +
"WHERE username = ?";
... |
diff --git a/src/test/java/com/solidstategroup/radar/test/dao/generic/MedicalResultDaoTest.java b/src/test/java/com/solidstategroup/radar/test/dao/generic/MedicalResultDaoTest.java
index 54b0eb0c..b2a097ca 100644
--- a/src/test/java/com/solidstategroup/radar/test/dao/generic/MedicalResultDaoTest.java
+++ b/src/test/jav... | false | true | public void testSave() throws Exception {
//save new record
Date date = new Date();
MedicalResult medicalResult = new MedicalResult();
medicalResult.setRadarNo(1L);
medicalResult.setSerumCreatanine(10.25);
medicalResult.setAntihypertensiveDrugs(MedicalResult.YesNo.YE... | public void testSave() throws Exception {
//save new record
Date date = new Date();
MedicalResult medicalResult = new MedicalResult();
medicalResult.setNhsNo("123456789");
medicalResult.setRadarNo(1L);
medicalResult.setSerumCreatanine(10.25);
medicalResult.se... |
diff --git a/src/test/java/kata/holdem/PokerRoundScenariosTest.java b/src/test/java/kata/holdem/PokerRoundScenariosTest.java
index 96bda9c..6a8cc5a 100644
--- a/src/test/java/kata/holdem/PokerRoundScenariosTest.java
+++ b/src/test/java/kata/holdem/PokerRoundScenariosTest.java
@@ -1,128 +1,128 @@
package kata.holdem;
... | false | true | public static Collection<Object[]> rounds() {
return Arrays.asList(new Object[][] {
{ Round.scenario("player folds", "john 4h 2d", "jane Th 3c").deal("Ks 8d 4d").fold("jane")
.expect("john: 4h 2d Ks 8d 4d [Pair 4h 4d Kicker(s) Ks 8d 2d] (Winner)\n" +
"jane: Th 3c Ks 8d 4... | public static Collection<Object[]> rounds() {
return Arrays.asList(new Object[][] {
{ Round.scenario("player folds", "john 4h 2d", "jane Th 3c").deal("Ks 8d 4d").fold("jane")
.expect("john: 4h 2d Ks 8d 4d [Pair 4h 4d Kicker(s) Ks 8d 2d] (Winner)\n" +
"jane: Th 3c Ks 8d 4... |
diff --git a/src/core/de/jroene/vrapper/vim/action/InsertLine.java b/src/core/de/jroene/vrapper/vim/action/InsertLine.java
index 4dd97e3a..7d3fe503 100644
--- a/src/core/de/jroene/vrapper/vim/action/InsertLine.java
+++ b/src/core/de/jroene/vrapper/vim/action/InsertLine.java
@@ -1,72 +1,72 @@
package de.jroene.vrapper.... | true | true | protected void doEdit(Platform p, LineInformation currentLine, String indent) {
int begin = currentLine.getEndOffset();
if (currentLine.getNumber() == p.getNumberOfLines()-1) {
begin += 1;
}
p.replace(begin, 0, VimConstants.NEWLINE+indent);
... | protected void doEdit(Platform p, LineInformation currentLine, String indent) {
int begin = currentLine.getEndOffset();
if (currentLine.getNumber() == p.getNumberOfLines()-1) {
begin += 1;
}
p.replace(begin, 0, VimConstants.NEWLINE+indent);
... |
diff --git a/core/org.eclipse.ptp.core/src/org/eclipse/ptp/rtsystem/ompi/OMPIProxyRuntimeClient.java b/core/org.eclipse.ptp.core/src/org/eclipse/ptp/rtsystem/ompi/OMPIProxyRuntimeClient.java
index 57a0f472b..7c3e7b41d 100644
--- a/core/org.eclipse.ptp.core/src/org/eclipse/ptp/rtsystem/ompi/OMPIProxyRuntimeClient.java
+... | false | true | public boolean startup(final IProgressMonitor monitor) {
System.out.println("OMPIProxyRuntimeClient - firing up proxy, waiting for connecting. Please wait! This can take a minute . . .");
Preferences preferences = PTPCorePlugin.getDefault().getPluginPreferences();
String proxyPath = preferences.getString(Pr... | public boolean startup(final IProgressMonitor monitor) {
System.out.println("OMPIProxyRuntimeClient - firing up proxy, waiting for connecting. Please wait! This can take a minute . . .");
Preferences preferences = PTPCorePlugin.getDefault().getPluginPreferences();
String proxyPath = preferences.getString(Pr... |
diff --git a/modeling-core/src/main/java/org/inbio/modeling/core/manager/impl/LayerManagerImpl.java b/modeling-core/src/main/java/org/inbio/modeling/core/manager/impl/LayerManagerImpl.java
index 2a9b572..d9aa074 100644
--- a/modeling-core/src/main/java/org/inbio/modeling/core/manager/impl/LayerManagerImpl.java
+++ b/mo... | true | true | public List<LayerDTO> getLayerList() {
List<String> layerNames = null;
List<LayerDTO> resultList = null;
layerNames = this.fileManagerImpl.listLayerHomeFolder();
resultList = new ArrayList<LayerDTO>();
for(String layerName : layerNames)
resultList.add(new LayerDTO(layerName, -1));
return resultLi... | public List<LayerDTO> getLayerList() {
List<String> layerNames = null;
List<LayerDTO> resultList = null;
layerNames = this.fileManagerImpl.listLayerHomeFolder();
resultList = new ArrayList<LayerDTO>();
for(String layerName : layerNames)
resultList.add(new LayerDTO(layerName, 0));
return resultLis... |
diff --git a/src/codemate/operator/Update.java b/src/codemate/operator/Update.java
index 2181691..18d5152 100644
--- a/src/codemate/operator/Update.java
+++ b/src/codemate/operator/Update.java
@@ -1,64 +1,68 @@
package codemate.operator;
import java.io.*;
import java.util.*;
import java.util.regex.*;
import co... | true | true | public static void operate() {
Pattern hashPattern = Pattern.compile("prev_commit_hash = \\w*");
String urlBase = "https://raw.github.com/dongli/CodeMate/"+
"master/products/installer/payload/";
String dirBase = System.getenv("HOME")+"/.codemate/";
// ----------------------------------------------------... | public static void operate() {
Pattern hashPattern = Pattern.compile("prev_commit_hash = \\w*");
String urlBase = "https://raw.github.com/dongli/CodeMate/"+
"master/products/installer/payload/";
String dirBase = System.getenv("HOME")+"/.codemate/";
// ----------------------------------------------------... |
diff --git a/src/core/cascading/flow/FlowPlanner.java b/src/core/cascading/flow/FlowPlanner.java
index 261be60d..8afd4e78 100644
--- a/src/core/cascading/flow/FlowPlanner.java
+++ b/src/core/cascading/flow/FlowPlanner.java
@@ -1,350 +1,350 @@
/*
* Copyright (c) 2007-2009 Concurrent, Inc. All Rights Reserved.
*
*... | true | true | protected void verifyPipeAssemblyEndPoints( Map<String, Tap> sources, Map<String, Tap> sinks, Pipe[] pipes )
{
Set<String> tapNames = new HashSet<String>();
tapNames.addAll( sources.keySet() );
tapNames.addAll( sinks.keySet() );
// handle tails
Set<Pipe> tails = new HashSet<Pipe>();
Set<... | protected void verifyPipeAssemblyEndPoints( Map<String, Tap> sources, Map<String, Tap> sinks, Pipe[] pipes )
{
Set<String> tapNames = new HashSet<String>();
tapNames.addAll( sources.keySet() );
tapNames.addAll( sinks.keySet() );
// handle tails
Set<Pipe> tails = new HashSet<Pipe>();
Set<... |
diff --git a/mineguild-admin-plugin/src/com/github/mineguild/MineguildAdmin/MGACommandExecutor.java b/mineguild-admin-plugin/src/com/github/mineguild/MineguildAdmin/MGACommandExecutor.java
index bb0a859..c486204 100644
--- a/mineguild-admin-plugin/src/com/github/mineguild/MineguildAdmin/MGACommandExecutor.java
+++ b/mi... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
//Introducing /mga command
if(cmd.getName().equalsIgnoreCase("mga")){
//If the args are length 0 or the args[0] isnt equal "version" it will return false
if (args.length == 0 || !args[0].equalsIgnoreCase("version")){
... | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
//Introducing /mga command
if(cmd.getName().equalsIgnoreCase("mga")){
//If the args are length 0 or the args[0] isnt equal "version" it will return false
if (args.length == 0 || !args[0].equalsIgnoreCase("version")){
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.