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/WEB-INF/lps/server/src/org/openlaszlo/compiler/CanvasCompiler.java b/WEB-INF/lps/server/src/org/openlaszlo/compiler/CanvasCompiler.java
index 5610940b..73a08ce9 100644
--- a/WEB-INF/lps/server/src/org/openlaszlo/compiler/CanvasCompiler.java
+++ b/WEB-INF/lps/server/src/org/openlaszlo/compiler/CanvasCompile... | false | true | public void compile(Element element) throws CompilationError
{
Canvas canvas = new Canvas();
// query arg
String lzproxied = mEnv.getProperty(mEnv.PROXIED_PROPERTY);
// canvas attribute
String cproxied = element.getAttributeValue("proxied");
canvas.setDebug(mEnv.... | public void compile(Element element) throws CompilationError
{
Canvas canvas = new Canvas();
// query arg
String lzproxied = mEnv.getProperty(mEnv.PROXIED_PROPERTY);
// canvas attribute
String cproxied = element.getAttributeValue("proxied");
canvas.setDebug(mEnv.... |
diff --git a/src/fr/nantes1900/view/isletprocess/ParametersView.java b/src/fr/nantes1900/view/isletprocess/ParametersView.java
index 99e2853..32bdd85 100644
--- a/src/fr/nantes1900/view/isletprocess/ParametersView.java
+++ b/src/fr/nantes1900/view/isletprocess/ParametersView.java
@@ -1,312 +1,313 @@
package fr.nantes1... | true | true | public ParametersView() {
// Init parameters
this.property = new JLabel[15];
this.value = new ValueProperty[15];
this.property[1] = new JLabel(
FileTools.readElementText(TextsKeys.KEY_ALTITUDEERROR));
this.value[1] = new ValueProperty(
Separat... | public ParametersView() {
// Init parameters
this.property = new JLabel[15];
this.value = new ValueProperty[15];
this.property[1] = new JLabel(
FileTools.readElementText(TextsKeys.KEY_ALTITUDEERROR));
this.value[1] = new ValueProperty(
Separat... |
diff --git a/src/VASSAL/configure/BeanShellExpressionConfigurer.java b/src/VASSAL/configure/BeanShellExpressionConfigurer.java
index b0a2011a..797d6dca 100644
--- a/src/VASSAL/configure/BeanShellExpressionConfigurer.java
+++ b/src/VASSAL/configure/BeanShellExpressionConfigurer.java
@@ -1,516 +1,518 @@
/*
* $Id$
*
... | true | true | protected void addGlobalProps(JMenu menu) {
final HashMap<String, JMenu> mapMenus = new HashMap<String, JMenu>();
final HashMap<String, HashMap<String, JMenu>> zoneHash = new HashMap<String, HashMap<String, JMenu>>();
for (MutableProperty.Impl prop : MutableProperty.Impl.getAllProperties()) {
Mutab... | protected void addGlobalProps(JMenu menu) {
final HashMap<String, JMenu> mapMenus = new HashMap<String, JMenu>();
final HashMap<String, HashMap<String, JMenu>> zoneHash = new HashMap<String, HashMap<String, JMenu>>();
for (MutableProperty.Impl prop : MutableProperty.Impl.getAllProperties()) {
Mutab... |
diff --git a/src/services/command/CombatCommand.java b/src/services/command/CombatCommand.java
index 16198a57..0741a44e 100644
--- a/src/services/command/CombatCommand.java
+++ b/src/services/command/CombatCommand.java
@@ -1,723 +1,723 @@
/*******************************************************************************... | true | true | public CombatCommand(String commandName) {
super(commandName);
try {
DatatableVisitor visitor = ClientFileManager.loadFile("datatables/combat/combat_data.iff", DatatableVisitor.class);
for(int i = 0; i < visitor.getRowCount(); i++) {
if(visitor.getObject(i, 0) != null)
if(((String) visitor.getOb... | public CombatCommand(String commandName) {
super(commandName);
try {
DatatableVisitor visitor = ClientFileManager.loadFile("datatables/combat/combat_data.iff", DatatableVisitor.class);
for(int i = 0; i < visitor.getRowCount(); i++) {
if(visitor.getObject(i, 0) != null)
if(((String) visitor.getOb... |
diff --git a/src/main/java/org/springframework/data/solr/core/QueryParser.java b/src/main/java/org/springframework/data/solr/core/QueryParser.java
index 7422101a..a5170b87 100644
--- a/src/main/java/org/springframework/data/solr/core/QueryParser.java
+++ b/src/main/java/org/springframework/data/solr/core/QueryParser.ja... | true | true | private String processCriteriaEntry(String key, Object value, String fieldName) {
if (value == null) {
return null;
}
// do not filter espressions
if (StringUtils.equals(OperationKey.EXPRESSION.getKey(), key)) {
return value.toString();
}
if (StringUtils.equals(OperationKey.BETWEEN.getKey(), key)) ... | private String processCriteriaEntry(String key, Object value, String fieldName) {
if (value == null) {
return null;
}
// do not filter espressions
if (StringUtils.equals(OperationKey.EXPRESSION.getKey(), key)) {
return value.toString();
}
if (StringUtils.equals(OperationKey.BETWEEN.getKey(), key)) ... |
diff --git a/src/com/plingnote/Utils.java b/src/com/plingnote/Utils.java
index bd2e2e2..29acc76 100644
--- a/src/com/plingnote/Utils.java
+++ b/src/com/plingnote/Utils.java
@@ -1,11 +1,11 @@
package com.plingnote;
import android.content.Context;
import android.graphics.Rect;
import android.util.DisplayMetrics;
p... | true | true | public static Rect getScreenPixels(Context context){
DisplayMetrics metrics = context.getResources().getDisplayMetrics();
return new Rect(0, metrics.heightPixels, metrics.widthPixels, 0);
}
| public static Rect getScreenPixels(Context context){
DisplayMetrics metrics = context.getResources().getDisplayMetrics();
return new Rect(0, 0, metrics.widthPixels, metrics.heightPixels);
}
|
diff --git a/org.eclipse.mylyn.java.tests/src/org/eclipse/mylyn/java/tests/ContextManagerTest.java b/org.eclipse.mylyn.java.tests/src/org/eclipse/mylyn/java/tests/ContextManagerTest.java
index ef5525129..d64e8b4b0 100644
--- a/org.eclipse.mylyn.java.tests/src/org/eclipse/mylyn/java/tests/ContextManagerTest.java
+++ b/o... | false | true | public void testErrorInterest() throws CoreException, InterruptedException, InvocationTargetException {
JavaPlugin.getDefault().getProblemMarkerManager().addListener(new JavaProblemListener());
IViewPart problemsPart = JavaPlugin.getActivePage().showView("org.eclipse.ui.views.ProblemView");
assertN... | public void testErrorInterest() throws CoreException, InterruptedException, InvocationTargetException {
JavaPlugin.getDefault().getProblemMarkerManager().addListener(new JavaProblemListener());
IViewPart problemsPart = JavaPlugin.getActivePage().showView("org.eclipse.ui.views.ProblemView");
assertN... |
diff --git a/apps/i2psnark/java/src/org/klomp/snark/TrackerClient.java b/apps/i2psnark/java/src/org/klomp/snark/TrackerClient.java
index 2007fb84f..dd3b8665b 100644
--- a/apps/i2psnark/java/src/org/klomp/snark/TrackerClient.java
+++ b/apps/i2psnark/java/src/org/klomp/snark/TrackerClient.java
@@ -1,575 +1,575 @@
/* Tra... | true | true | public void run()
{
String infoHash = urlencode(snark.getInfoHash());
String peerID = urlencode(snark.getID());
// Construct the list of trackers for this torrent,
// starting with the primary one listed in the metainfo,
// followed by the secondary open trackers
// It's painful, but try t... | public void run()
{
String infoHash = urlencode(snark.getInfoHash());
String peerID = urlencode(snark.getID());
// Construct the list of trackers for this torrent,
// starting with the primary one listed in the metainfo,
// followed by the secondary open trackers
// It's painful, but try t... |
diff --git a/src/org/python/core/PyTraceback.java b/src/org/python/core/PyTraceback.java
index fd26237b..a856e758 100644
--- a/src/org/python/core/PyTraceback.java
+++ b/src/org/python/core/PyTraceback.java
@@ -1,112 +1,112 @@
// Copyright (c) Corporation for National Research Initiatives
package org.python.core;
... | true | true | private String getLine(String filename, int lineno) {
RelativeFile file = new RelativeFile(filename);
if (!file.isFile() || !file.canRead()) {
// XXX: We should run through sys.path until the filename is found
return null;
}
PyFile pyFile;
try {
... | private String getLine(String filename, int lineno) {
RelativeFile file = new RelativeFile(filename);
if (!file.isFile() || !file.canRead()) {
// XXX: We should run through sys.path until the filename is found
return null;
}
PyFile pyFile;
try {
... |
diff --git a/src/com/mojang/mojam/entity/Player.java b/src/com/mojang/mojam/entity/Player.java
index d0103dae..5e19ae90 100644
--- a/src/com/mojang/mojam/entity/Player.java
+++ b/src/com/mojang/mojam/entity/Player.java
@@ -1,566 +1,568 @@
package com.mojang.mojam.entity;
import java.util.Random;
import com.mojan... | false | true | public void tick() {
calculLevel();
time++;
minimapIcon = time / 3 % 4;
if (minimapIcon == 3) {
minimapIcon = 1;
}
if (regenDelay > 0) {
regenDelay--;
if (regenDelay == 0) {
if (health < maxHealth)
health++;
regenDelay = REGEN_INTERVAL;
}
}
double xa = 0;
double ya = 0;
i... | public void tick() {
calculLevel();
time++;
minimapIcon = time / 3 % 4;
if (minimapIcon == 3) {
minimapIcon = 1;
}
if (regenDelay > 0) {
regenDelay--;
if (regenDelay == 0) {
if (health + 1 < maxHealth)
health++;
else if (health < maxHealth)
health = maxHealth;
regenDelay = ... |
diff --git a/src/com/android/calendar/DayFragment.java b/src/com/android/calendar/DayFragment.java
index e3ef6946..2ba8dbfe 100644
--- a/src/com/android/calendar/DayFragment.java
+++ b/src/com/android/calendar/DayFragment.java
@@ -1,271 +1,272 @@
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licens... | true | true | private void goTo(Time goToTime, boolean ignoreTime, boolean animateToday) {
if (mViewSwitcher == null) {
// The view hasn't been set yet. Just save the time and use it later.
mSelectedDay.set(goToTime);
return;
}
DayView currentView = (DayView) mViewSwit... | private void goTo(Time goToTime, boolean ignoreTime, boolean animateToday) {
if (mViewSwitcher == null) {
// The view hasn't been set yet. Just save the time and use it later.
mSelectedDay.set(goToTime);
return;
}
DayView currentView = (DayView) mViewSwit... |
diff --git a/plugin-impl/src/main/java/org/cytoscape/plugin/internal/PluginManagerInquireTask.java b/plugin-impl/src/main/java/org/cytoscape/plugin/internal/PluginManagerInquireTask.java
index 808f3b8ef..4a7a6cf15 100644
--- a/plugin-impl/src/main/java/org/cytoscape/plugin/internal/PluginManagerInquireTask.java
+++ b/p... | true | true | public void run(TaskMonitor taskMonitor) {
List<DownloadableInfo> Results = null;
taskMonitor.setStatusMessage(actionObj.getProgressBarMessage());
taskMonitor.setProgress(-1);
try {
Results = PluginManager.getPluginManager().inquire(url);
} catch (org.jdom.JDOMException jde) {
actionObj.setExceptionT... | public void run(TaskMonitor taskMonitor) {
List<DownloadableInfo> Results = null;
taskMonitor.setStatusMessage(actionObj.getProgressBarMessage());
try {
Results = PluginManager.getPluginManager().inquire(url);
} catch (org.jdom.JDOMException jde) {
actionObj.setExceptionThrown(jde);
} catch (java.io.... |
diff --git a/rest-api/rest-api-server/src/main/java/org/bonitasoft/web/rest/server/datastore/bpm/cases/ArchivedCommentDatastore.java b/rest-api/rest-api-server/src/main/java/org/bonitasoft/web/rest/server/datastore/bpm/cases/ArchivedCommentDatastore.java
index 75c0711c3..c8882c286 100644
--- a/rest-api/rest-api-server/... | true | true | public ItemSearchResult<ArchivedCommentItem> search(int page, int resultsByPage, String search, String orders, Map<String, String> filters) {
try {
final SearchOptionsBuilder builder = SearchOptionsBuilderUtil.buildSearchOptions(page, resultsByPage, "", search);
adjustSearchBuilder(f... | public ItemSearchResult<ArchivedCommentItem> search(int page, int resultsByPage, String search, String orders, Map<String, String> filters) {
try {
final SearchOptionsBuilder builder = SearchOptionsBuilderUtil.buildSearchOptions(page, resultsByPage, "", search);
adjustSearchBuilder(f... |
diff --git a/src/main/java/me/stutiguias/webportal/settings/TradeSystem.java b/src/main/java/me/stutiguias/webportal/settings/TradeSystem.java
index ea6c433..5ad691c 100644
--- a/src/main/java/me/stutiguias/webportal/settings/TradeSystem.java
+++ b/src/main/java/me/stutiguias/webportal/settings/TradeSystem.java
@@ -1,1... | true | true | public String Buy(String BuyPlayerName,Auction sellerauction,int qtd,String item_name,Boolean ingame) {
boolean found = false;
int StackId = 0;
int Stackqtd = 0;
plugin.economy.withdrawPlayer(BuyPlayerName, sellerauction.getPrice() * qtd);
plugin.economy.depositPlayer(sellera... | public String Buy(String BuyPlayerName,Auction sellerauction,int qtd,String item_name,Boolean ingame) {
boolean found = false;
int StackId = 0;
int Stackqtd = 0;
plugin.economy.withdrawPlayer(BuyPlayerName, sellerauction.getPrice() * qtd);
plugin.economy.depositPlayer(sellera... |
diff --git a/app/web/src/main/java/uk/ac/ebi/fg/annotare2/web/server/AppServletModule.java b/app/web/src/main/java/uk/ac/ebi/fg/annotare2/web/server/AppServletModule.java
index 0fab94cf..f038f29d 100644
--- a/app/web/src/main/java/uk/ac/ebi/fg/annotare2/web/server/AppServletModule.java
+++ b/app/web/src/main/java/uk/ac... | true | true | protected void configureServlets() {
filter("/login",
"/logout",
"/UserApp/*",
"/EditorApp/*").through(HibernateSessionFilter.class);
filter("/UserApp/*",
"/",
"/EditorApp/*",
"/edit/*"
).through... | protected void configureServlets() {
filter("/login",
"/logout",
"/UserApp/*",
"/EditorApp/*").through(HibernateSessionFilter.class);
filter("/UserApp/*",
"/",
"/EditorApp/*",
"/edit/*"
).through... |
diff --git a/src/java/org/concord/otrunk/OTMLToXHTMLConverter.java b/src/java/org/concord/otrunk/OTMLToXHTMLConverter.java
index dcb4c57..c702d04 100644
--- a/src/java/org/concord/otrunk/OTMLToXHTMLConverter.java
+++ b/src/java/org/concord/otrunk/OTMLToXHTMLConverter.java
@@ -1,467 +1,467 @@
/*
* Copyright (C) 2004... | true | true | public void run()
{
if (outputFile == null) {
return;
}
// FIXME: only the first object is used here it is not clear how to
// handle this. It is possible a collection of objects could be converted
// with different object services, so they should have different controller
// services.
if(topLevelO... | public void run()
{
if (outputFile == null) {
return;
}
// FIXME: only the first object is used here it is not clear how to
// handle this. It is possible a collection of objects could be converted
// with different object services, so they should have different controller
// services.
if(topLevelO... |
diff --git a/src/java/net/percederberg/mibble/MibLoader.java b/src/java/net/percederberg/mibble/MibLoader.java
index 93fddce..dcb7caf 100644
--- a/src/java/net/percederberg/mibble/MibLoader.java
+++ b/src/java/net/percederberg/mibble/MibLoader.java
@@ -1,878 +1,880 @@
/*
* MibLoader.java
*
* This work is free so... | false | true | private MibLoaderLog loadQueue() throws IOException {
MibLoaderLog log = new MibLoaderLog();
ArrayList processed = new ArrayList();
MibSource src;
// Parse MIB files in queue
while (queue.size() > 0) {
try {
src = (MibSource) queue.get(0)... | private MibLoaderLog loadQueue() throws IOException {
MibLoaderLog log = new MibLoaderLog();
ArrayList processed = new ArrayList();
MibSource src;
Mib mib;
// Parse MIB files in queue
while (queue.size() > 0) {
try {
src... |
diff --git a/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/RdbmsWorkspaceInitializer.java b/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/RdbmsWorkspaceInitializer.java
index fe636b5dd..1f763511d 100644
--- a/exo.jcr.component.core/src/main/java/org/exoplatfor... | true | true | protected void rdbmsRestore() throws RepositoryException
{
Connection jdbcConn = null;
Integer transactionIsolation = null;
Statement st = null;
try
{
String dsName = workspaceEntry.getContainer().getParameterValue(JDBCWorkspaceDataContainer.SOURCE_NAME);
if (dsName... | protected void rdbmsRestore() throws RepositoryException
{
Connection jdbcConn = null;
Integer transactionIsolation = null;
Statement st = null;
try
{
String dsName = workspaceEntry.getContainer().getParameterValue(JDBCWorkspaceDataContainer.SOURCE_NAME);
if (dsName... |
diff --git a/core/src/visad/trunk/ss/BasicSSCell.java b/core/src/visad/trunk/ss/BasicSSCell.java
index 342e7a835..5e8ac93f8 100644
--- a/core/src/visad/trunk/ss/BasicSSCell.java
+++ b/core/src/visad/trunk/ss/BasicSSCell.java
@@ -1,2550 +1,2549 @@
//
// BasicSSCell.java
//
/*
VisAD system for interactive analysis... | true | true | public BasicSSCell(String name, FormulaManager fman, RemoteServer rs,
boolean slave, String save) throws VisADException, RemoteException
{
// set name
if (name == null) {
throw new VisADException("BasicSSCell: name cannot be null");
}
Enumeration panels = SSCellVector.elements();
while... | public BasicSSCell(String name, FormulaManager fman, RemoteServer rs,
boolean slave, String save) throws VisADException, RemoteException
{
// set name
if (name == null) {
throw new VisADException("BasicSSCell: name cannot be null");
}
Enumeration panels = SSCellVector.elements();
while... |
diff --git a/gerrit/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/GerritTaskDataHandler.java b/gerrit/org.eclipse.mylyn.gerrit.core/src/org/eclipse/mylyn/internal/gerrit/core/GerritTaskDataHandler.java
index fa8a392f..c31bc25c 100644
--- a/gerrit/org.eclipse.mylyn.gerrit.core/src/org/eclipse/... | true | true | public void updateTaskData(TaskRepository repository, TaskData data, GerritChange review, boolean canPublish,
String accountId) {
GerritTaskSchema schema = GerritTaskSchema.getDefault();
ChangeDetail changeDetail = review.getChangeDetail();
Change change = changeDetail.getChange();
AccountInfo owner = chan... | public void updateTaskData(TaskRepository repository, TaskData data, GerritChange review, boolean canPublish,
String accountId) {
GerritTaskSchema schema = GerritTaskSchema.getDefault();
ChangeDetail changeDetail = review.getChangeDetail();
Change change = changeDetail.getChange();
AccountInfo owner = chan... |
diff --git a/java/lycanite/lycanitesmobs/api/info/MobInfo.java b/java/lycanite/lycanitesmobs/api/info/MobInfo.java
index 960ca8f7..4a855022 100644
--- a/java/lycanite/lycanitesmobs/api/info/MobInfo.java
+++ b/java/lycanite/lycanitesmobs/api/info/MobInfo.java
@@ -1,481 +1,481 @@
package lycanite.lycanitesmobs.api.info;... | true | true | public void loadFromConfigs() {
// General Info:
ConfigBase config = ConfigBase.getConfig(this.group, "general");
config.setCategoryComment("Enabled Mobs", "Here you can completely disable any mob.");
this.mobEnabled = config.getBool("Enabled Mobs", this.getCfgName("Enabled"), this.m... | public void loadFromConfigs() {
// General Info:
ConfigBase config = ConfigBase.getConfig(this.group, "general");
config.setCategoryComment("Enabled Mobs", "Here you can completely disable any mob.");
this.mobEnabled = config.getBool("Enabled Mobs", this.getCfgName("Enabled"), this.m... |
diff --git a/tr.wsn-device-drivers/src/main/java/de/uniluebeck/itm/devicedriver/operation/AbstractOperation.java b/tr.wsn-device-drivers/src/main/java/de/uniluebeck/itm/devicedriver/operation/AbstractOperation.java
index 23e342b6..0cb9d989 100644
--- a/tr.wsn-device-drivers/src/main/java/de/uniluebeck/itm/devicedriver/... | true | true | public T call() {
setState(State.RUNNING);
scheduleTimeout();
callback.onExecute();
T result = null;
try {
// Cancel execution if operation was canceled before operation changed to running.
if (!canceled) {
result = execute(callback);
}
} catch (Exception e) {
setState(State.EXCEPTED);
... | public T call() {
setState(State.RUNNING);
scheduleTimeout();
callback.onExecute();
T result = null;
try {
// Cancel execution if operation was canceled before operation changed to running.
if (!canceled) {
result = execute(callback);
}
} catch (Exception e) {
setState(State.EXCEPTED);
... |
diff --git a/src/main/java/com/turt2live/antishare/config/ASConfig.java b/src/main/java/com/turt2live/antishare/config/ASConfig.java
index 70345cb0..1af2e43d 100644
--- a/src/main/java/com/turt2live/antishare/config/ASConfig.java
+++ b/src/main/java/com/turt2live/antishare/config/ASConfig.java
@@ -1,266 +1,266 @@
/***... | true | true | public ASConfig(EnhancedConfiguration regionConfig, EnhancedConfiguration worldConfig){
LayeredConfig layer = new LayeredConfig(regionConfig, worldConfig, p.getConfig());
layer.loadAll();
rawConfiguration = regionConfig == null ? (worldConfig == null ? p.getConfig() : worldConfig) : regionConfig;
potions = (la... | public ASConfig(EnhancedConfiguration regionConfig, EnhancedConfiguration worldConfig){
LayeredConfig layer = new LayeredConfig(regionConfig, worldConfig, p.getConfig());
layer.loadAll();
rawConfiguration = regionConfig == null ? (worldConfig == null ? p.getConfig() : worldConfig) : regionConfig;
potions = (la... |
diff --git a/nuxeo-webengine-core/src/main/java/org/nuxeo/ecm/webengine/actions/ActionDescriptor.java b/nuxeo-webengine-core/src/main/java/org/nuxeo/ecm/webengine/actions/ActionDescriptor.java
index ec54f51d..714a062e 100644
--- a/nuxeo-webengine-core/src/main/java/org/nuxeo/ecm/webengine/actions/ActionDescriptor.java
... | false | true | public void copyFrom(ActionDescriptor ad) {
id = ad.id;
isEnabled = ad.isEnabled;
if (ad.categories != null && ad.categories.length > 0) {
if (categories == null) {
categories = ad.categories;
} else {
String[] tmp = new String[categori... | public void copyFrom(ActionDescriptor ad) {
id = ad.id;
isEnabled = ad.isEnabled;
if (ad.categories != null && ad.categories.length > 0) {
if (categories == null) {
categories = ad.categories;
} else {
String[] tmp = new String[categori... |
diff --git a/test/unit/org/apache/cassandra/dht/BootStrapperTest.java b/test/unit/org/apache/cassandra/dht/BootStrapperTest.java
index 39ad8b2c..5281faa4 100644
--- a/test/unit/org/apache/cassandra/dht/BootStrapperTest.java
+++ b/test/unit/org/apache/cassandra/dht/BootStrapperTest.java
@@ -1,132 +1,133 @@
/*
* Licens... | true | true | private void testSourceTargetComputation(int numOldNodes) throws UnknownHostException
{
StorageService ss = StorageService.instance;
generateFakeEndpoints(numOldNodes);
Token myToken = StorageService.getPartitioner().getRandomToken();
InetAddress myEndpoint = InetAddress.getByNa... | private void testSourceTargetComputation(int numOldNodes) throws UnknownHostException
{
StorageService ss = StorageService.instance;
generateFakeEndpoints(numOldNodes);
Token myToken = StorageService.getPartitioner().getRandomToken();
InetAddress myEndpoint = InetAddress.getByNa... |
diff --git a/draw5/PolygonShapeTool.java b/draw5/PolygonShapeTool.java
index 223586c..86943fe 100644
--- a/draw5/PolygonShapeTool.java
+++ b/draw5/PolygonShapeTool.java
@@ -1,57 +1,69 @@
package draw5;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Point;
import java.util.ArrayList;
import s... | true | true | public void endArray(Point p){
//close the polygon
Graphics g = canvas.getGraphics();
curPolygon.drawOutline(g, xy.get(0).x, xy.get(0).y, xy.get(index - 1).x, xy.get(index - 1).y);
g.setXORMode(Color.darkGray);
g.setColor(Color.lightGray);
curPolygon.setColor(canvas.getCurColor());
x = new int[index - 1]... | public void endArray(Point p){
//close the polygon
Graphics g = canvas.getGraphics();
curPolygon.drawOutline(g, xy.get(0).x, xy.get(0).y, xy.get(index - 1).x, xy.get(index - 1).y);
g.setXORMode(Color.darkGray);
g.setColor(Color.lightGray);
curPolygon.setColor(canvas.getCurColor());
x = new int[index - 1]... |
diff --git a/src/org/apache/xml/serialize/BaseMarkupSerializer.java b/src/org/apache/xml/serialize/BaseMarkupSerializer.java
index cd16a097..a195aa85 100644
--- a/src/org/apache/xml/serialize/BaseMarkupSerializer.java
+++ b/src/org/apache/xml/serialize/BaseMarkupSerializer.java
@@ -1,1564 +1,1565 @@
/*
* The Apache ... | false | true | protected void serializeNode( Node node )
throws IOException
{
// Based on the node type call the suitable SAX handler.
// Only comments entities and documents which are not
// handled by SAX are serialized directly.
switch ( node.getNodeType() ) {
case Node.TEXT_... | protected void serializeNode( Node node )
throws IOException
{
// Based on the node type call the suitable SAX handler.
// Only comments entities and documents which are not
// handled by SAX are serialized directly.
switch ( node.getNodeType() ) {
case Node.TEXT_... |
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index ca3ee19ab..852023441 100644
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -1,1509 +1,1509 @@
/*
* Copyright (C) 2010 The Android Open Source Projec... | true | true | public void onCreate(Bundle data, Bundle restoreState) {
super.onCreate(data, restoreState);
mActionBar = mActivity.getGalleryActionBar();
mSelectionManager = new SelectionManager(mActivity, false);
mMenuExecutor = new MenuExecutor(mActivity, mSelectionManager);
mPhotoView =... | public void onCreate(Bundle data, Bundle restoreState) {
super.onCreate(data, restoreState);
mActionBar = mActivity.getGalleryActionBar();
mSelectionManager = new SelectionManager(mActivity, false);
mMenuExecutor = new MenuExecutor(mActivity, mSelectionManager);
mPhotoView =... |
diff --git a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java
index ef71a962..52424e60 100644
--- a/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java
+++ b/src/main/java/net/pterodactylus/sone/template/SoneAccessor.java
@@ -1... | true | true | public Object get(DataProvider dataProvider, Object object, String member) {
Sone sone = (Sone) object;
if (member.equals("niceName")) {
return getNiceName(sone);
} else if (member.equals("local")) {
return sone.getInsertUri() != null;
} else if (member.equals("friend")) {
Sone currentSone = (Sone) da... | public Object get(DataProvider dataProvider, Object object, String member) {
Sone sone = (Sone) object;
if (member.equals("niceName")) {
return getNiceName(sone);
} else if (member.equals("local")) {
return sone.getInsertUri() != null;
} else if (member.equals("friend")) {
Sone currentSone = (Sone) da... |
diff --git a/src/itmo/parser/PostfixExpParserTest.java b/src/itmo/parser/PostfixExpParserTest.java
index 12c3819..b742d11 100644
--- a/src/itmo/parser/PostfixExpParserTest.java
+++ b/src/itmo/parser/PostfixExpParserTest.java
@@ -1,74 +1,74 @@
package itmo.parser;
import com.sun.xml.internal.messaging.saaj.util.Byte... | false | true | public static void main(String[] args) throws IOException, ParseException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
DreamQueueService service = new DreamQueueService();
MessageQueue messageQueue = service.getDreamQueuePort();
int submiterTag = -1;
Ran... | public static void main(String[] args) throws IOException, ParseException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
DreamQueueService service = new DreamQueueService();
MessageQueue messageQueue = service.getDreamQueuePort();
int submiterTag = -1;
Ran... |
diff --git a/src/org/fao/gast/lib/druid/Codec.java b/src/org/fao/gast/lib/druid/Codec.java
index 8e674aa716..f612ae2ea1 100644
--- a/src/org/fao/gast/lib/druid/Codec.java
+++ b/src/org/fao/gast/lib/druid/Codec.java
@@ -1,86 +1,88 @@
//==============================================================================
//==... | false | true | public static String decodeString(String s)
{
StringBuffer sb = new StringBuffer();
for(int i=0; i<s.length(); i++)
{
char c = s.charAt(i);
if (c == '~')
{
String hv = s.substring(i+1, i+5);
i += 4;
c = (char) Util.convertFromHex(hv);
}
sb.append(c);
}
return sb.toString();
... | public static String decodeString(String s)
{
StringBuffer sb = new StringBuffer();
for(int i=0; i<s.length(); i++)
{
char c = s.charAt(i);
if (c == '~')
{
if (i+4 < s.length()) {
String hv = s.substring(i+1, i+5);
i += 4;
c = (char) Util.convertFromHex(hv);
}
}
sb.ap... |
diff --git a/src/test/java/no/rmz/chordguesser/MidiMessageDecoderTest.java b/src/test/java/no/rmz/chordguesser/MidiMessageDecoderTest.java
index 6bd8e66..bf1d5d1 100644
--- a/src/test/java/no/rmz/chordguesser/MidiMessageDecoderTest.java
+++ b/src/test/java/no/rmz/chordguesser/MidiMessageDecoderTest.java
@@ -1,131 +1,13... | true | true | public void testCMajorChordDetection() {
byte[][] cMajorChordArpeggiated =
// XXX Replae 60 withsome constant.
midiToneDownSequenceForTones(new byte[]{
ScaleAndChordGeneration.MIDDLE_C_MIDI_ENCODING,
ScaleAndChordGeneration.MIDDLE_C_MID... | public void testCMajorChordDetection() {
byte[][] cMajorChordArpeggiated =
// XXX Replae 60 withsome constant.
ScaleAndChordGeneration.midiToneDownSequenceForTones(new byte[]{
ScaleAndChordGeneration.MIDDLE_C_MIDI_ENCODING,
ScaleAndChor... |
diff --git a/src/chalmers/TDA367/B17/model/KingOfTheHillZone.java b/src/chalmers/TDA367/B17/model/KingOfTheHillZone.java
index ab029a7..e3e71fb 100644
--- a/src/chalmers/TDA367/B17/model/KingOfTheHillZone.java
+++ b/src/chalmers/TDA367/B17/model/KingOfTheHillZone.java
@@ -1,16 +1,16 @@
package chalmers.TDA367.B17.mode... | true | true | public KingOfTheHillZone(int id, Vector2f position){
super(id);
shape = new Circle(position.x, position.y, 20);
spriteID = "king_of_the_hill_zone";
GameController.getInstance().getWorld().addEntity(this);
renderLayer = RenderLayer.FIRST;
}
| public KingOfTheHillZone(int id, Vector2f position){
super(id);
shape = new Circle(position.x, position.y, 45);
spriteID = "king_of_the_hill_zone";
GameController.getInstance().getWorld().addEntity(this);
renderLayer = RenderLayer.FIRST;
}
|
diff --git a/src/main/org/codehaus/groovy/runtime/metaclass/ClosureMetaClass.java b/src/main/org/codehaus/groovy/runtime/metaclass/ClosureMetaClass.java
index b277b9c92..d4d7ebc42 100644
--- a/src/main/org/codehaus/groovy/runtime/metaclass/ClosureMetaClass.java
+++ b/src/main/org/codehaus/groovy/runtime/metaclass/Closu... | true | true | public Object invokeMethod(Class sender, Object object, String methodName, Object[] originalArguments, boolean isCallToSuper, boolean fromInsideClass) {
checkInitalised();
if (object == null) {
throw new NullPointerException("Cannot invoke method: " + methodName + " on null object");
... | public Object invokeMethod(Class sender, Object object, String methodName, Object[] originalArguments, boolean isCallToSuper, boolean fromInsideClass) {
checkInitalised();
if (object == null) {
throw new NullPointerException("Cannot invoke method: " + methodName + " on null object");
... |
diff --git a/src/com/btmura/android/reddit/app/GlobalMenuFragment.java b/src/com/btmura/android/reddit/app/GlobalMenuFragment.java
index 51047588..5362b348 100644
--- a/src/com/btmura/android/reddit/app/GlobalMenuFragment.java
+++ b/src/com/btmura/android/reddit/app/GlobalMenuFragment.java
@@ -1,224 +1,225 @@
/*
* C... | true | true | public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.menu_add_subreddit:
return handleAddSubreddit();
case R.id.menu_submit_link:
return handleSubmitLink();
case R.id.menu_search:
ret... | public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.menu_add_subreddit:
return handleAddSubreddit();
case R.id.menu_submit_link:
return handleSubmitLink();
case R.id.menu_search:
ret... |
diff --git a/impl/src/net/jxta/impl/endpoint/router/EndpointRouterMessage.java b/impl/src/net/jxta/impl/endpoint/router/EndpointRouterMessage.java
index ea7373a..19b9aef 100644
--- a/impl/src/net/jxta/impl/endpoint/router/EndpointRouterMessage.java
+++ b/impl/src/net/jxta/impl/endpoint/router/EndpointRouterMessage.java... | true | true | public void updateMessage() {
if (!rmDirty) {
return;
}
if (!rmExists) {
// The change was to remove it.
// If there was an rmElem, remove it and make sure to remove
// all of them. We may have found one initialy but there may be
... | public void updateMessage() {
if (!rmDirty) {
return;
}
if (!rmExists) {
// The change was to remove it.
// If there was an rmElem, remove it and make sure to remove
// all of them. We may have found one initialy but there may be
... |
diff --git a/samples/appengine-repl/src/main/java/com/bedatadriven/renjin/appengine/server/LotREPLsApiImpl.java b/samples/appengine-repl/src/main/java/com/bedatadriven/renjin/appengine/server/LotREPLsApiImpl.java
index b477d70..cd08d47 100644
--- a/samples/appengine-repl/src/main/java/com/bedatadriven/renjin/appengine/... | true | true | public String eval(String script)
throws InterpreterException {
ExpressionVector expression = RParser.parseSource(script + "\n");
if(expression == null) {
return "";
}
Context context = masterTopLevelContext.fork();
StringWriter writer = new StringWriter();
context.getGlobals().s... | public String eval(String script)
throws InterpreterException {
ExpressionVector expression = RParser.parseSource(script + "\n");
if(expression == null) {
return "";
}
Context context = masterTopLevelContext.fork();
StringWriter writer = new StringWriter();
context.getGlobals().s... |
diff --git a/src/edu/berkeley/gamesman/core/Record.java b/src/edu/berkeley/gamesman/core/Record.java
index 434a4a4b..75ce5fc2 100644
--- a/src/edu/berkeley/gamesman/core/Record.java
+++ b/src/edu/berkeley/gamesman/core/Record.java
@@ -1,496 +1,496 @@
package edu.berkeley.gamesman.core;
import java.io.DataInput;
im... | true | true | public static Record combine(final Configuration conf,
final List<Record> vals) {
Record rec = new Record(conf);
final EnumMap<RecordFields, ArrayList<Long>> map = new EnumMap<RecordFields, ArrayList<Long>>(
RecordFields.class);
for (RecordFields rf : conf.getStoredFields().keySet()) {
map.put(rf, new... | public static Record combine(final Configuration conf,
final List<Record> vals) {
Record rec = new Record(conf);
final EnumMap<RecordFields, ArrayList<Long>> map = new EnumMap<RecordFields, ArrayList<Long>>(
RecordFields.class);
for (RecordFields rf : conf.getStoredFields().keySet()) {
map.put(rf, new... |
diff --git a/src/com/lghs/stutor/ServerClient.java b/src/com/lghs/stutor/ServerClient.java
index 790994b..befbccf 100644
--- a/src/com/lghs/stutor/ServerClient.java
+++ b/src/com/lghs/stutor/ServerClient.java
@@ -1,72 +1,74 @@
package com.lghs.stutor;
import java.io.IOException;
import java.io.PrintWriter;
import j... | true | true | public void run() // (IMPLEMENTED FROM THE RUNNABLE INTERFACE)
{
try {
chatLog = (EditText)findViewById(R.id.session_edittext_chatlog); // give variables values
final int PORT = 6677;
server = new ServerSocket(PORT);
} catch (IOException e1) {
e1.printStackTrace();
}
chatLog.append... | public void run() // (IMPLEMENTED FROM THE RUNNABLE INTERFACE)
{
try {
//http://stackoverflow.com/questions/13558322/unable-to-retrieve-value-from-edittext
//TODO ^
chatLog = (EditText)findViewById(R.id.session_edittext_chatlog); // give variables values
final int PORT = 6677;
server = n... |
diff --git a/src/controllers/NewsController.java b/src/controllers/NewsController.java
index 392e3dd..d2382bb 100644
--- a/src/controllers/NewsController.java
+++ b/src/controllers/NewsController.java
@@ -1,164 +1,165 @@
package controllers;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
i... | true | true | public Object saveComment(HttpSession session,HttpServletRequest req,@Param("username")String username,@Param("code")String code,@Param("content")String content,@Param("newsId")long newsId){
if(Strings.isEmpty(username)){
username = req.getRemoteHost();
}
if(Strings.isEmpty(code)){
return "{\"result\":fal... | public Object saveComment(HttpSession session,HttpServletRequest req,@Param("username")String username,@Param("code")String code,@Param("content")String content,@Param("newsId")long newsId){
if(Strings.isEmpty(username)){
username = req.getRemoteHost();
}
if(Strings.isEmpty(code)){
return "{\"result\":fal... |
diff --git a/modules/mbeans/osgi.core/src/main/java/com/buschmais/maexo/mbeans/osgi/core/impl/BundleMBeanImpl.java b/modules/mbeans/osgi.core/src/main/java/com/buschmais/maexo/mbeans/osgi/core/impl/BundleMBeanImpl.java
index 439d2c4..d0d9d46 100644
--- a/modules/mbeans/osgi.core/src/main/java/com/buschmais/maexo/mbeans... | true | true | public MBeanInfo getMBeanInfo() {
String className = BundleMBeanImpl.class.getName();
// attributes
OpenMBeanAttributeInfoSupport[] mbeanAttributeInfos = new OpenMBeanAttributeInfoSupport[] {
BundleMBeanConstants.ID, BundleMBeanConstants.STATE,
BundleMBeanConstants.STATENAME, BundleMBeanConstants.HEADER,... | public MBeanInfo getMBeanInfo() {
String className = BundleMBeanImpl.class.getName();
// attributes
OpenMBeanAttributeInfoSupport[] mbeanAttributeInfos = new OpenMBeanAttributeInfoSupport[] {
BundleMBeanConstants.ID, BundleMBeanConstants.STATE,
BundleMBeanConstants.STATEASNAME, BundleMBeanConstants.HEADE... |
diff --git a/src/com/zrd/zr/letuwb/MainPage.java b/src/com/zrd/zr/letuwb/MainPage.java
index a6564b2..45f99f2 100644
--- a/src/com/zrd/zr/letuwb/MainPage.java
+++ b/src/com/zrd/zr/letuwb/MainPage.java
@@ -1,917 +1,918 @@
package com.zrd.zr.letuwb;
import java.io.IOException;
import java.io.InputStream;
import jav... | true | true | private void __init() {
mGridPics.setOnTouchListener((OnTouchListener) parent);
mLinearMainBottom.setVisibility(LinearLayout.GONE);
mTextSeekPos.setVisibility(TextView.GONE);
mSeekMain.setMax(0);
/*
* actions
*/
mSeekMain.setOnSeekBarChangeListener(
new OnSeekBarChangeL... | private void __init() {
mGridPics.setOnTouchListener((OnTouchListener) parent);
mLinearMainBottom.setVisibility(LinearLayout.GONE);
mTextSeekPos.setVisibility(TextView.GONE);
mSeekMain.setMax(0);
/*
* actions
*/
mSeekMain.setOnSeekBarChangeListener(
new OnSeekBarChangeL... |
diff --git a/src/com/eteks/sweethome3d/viewcontroller/HomeController3D.java b/src/com/eteks/sweethome3d/viewcontroller/HomeController3D.java
index cbe460a4..87e6d75d 100644
--- a/src/com/eteks/sweethome3d/viewcontroller/HomeController3D.java
+++ b/src/com/eteks/sweethome3d/viewcontroller/HomeController3D.java
@@ -1,653... | true | true | private Rectangle2D getHomeBounds() {
// Compute plan bounds to include rooms, walls and furniture
Rectangle2D homeBounds = null;
boolean containsVisibleWalls = false;
for (Wall wall : home.getWalls()) {
if (isItemAtAVisibleLevel(wall)) {
containsVisibleWalls = true;
... | private Rectangle2D getHomeBounds() {
// Compute plan bounds to include rooms, walls and furniture
Rectangle2D homeBounds = null;
boolean containsVisibleWalls = false;
for (Wall wall : home.getWalls()) {
if (isItemAtAVisibleLevel(wall)) {
containsVisibleWalls = true;
... |
diff --git a/android/src/com/google/zxing/client/android/QRCodeEncoder.java b/android/src/com/google/zxing/client/android/QRCodeEncoder.java
index 49420436..76fd8495 100755
--- a/android/src/com/google/zxing/client/android/QRCodeEncoder.java
+++ b/android/src/com/google/zxing/client/android/QRCodeEncoder.java
@@ -1,194... | true | true | private boolean encodeContents(Intent intent) {
if (intent == null) {
return false;
}
String type = intent.getStringExtra(Intents.Encode.TYPE);
if (type == null || type.length() == 0) {
return false;
}
if (type.equals(Contents.Type.TEXT)) {
String data = intent.getStringExtr... | private boolean encodeContents(Intent intent) {
if (intent == null) {
return false;
}
String type = intent.getStringExtra(Intents.Encode.TYPE);
if (type == null || type.length() == 0) {
return false;
}
if (type.equals(Contents.Type.TEXT)) {
String data = intent.getStringExtr... |
diff --git a/OntoStar/src/keywordExctraction/TreeTaggerToken.java b/OntoStar/src/keywordExctraction/TreeTaggerToken.java
index 0509835..818bfe1 100644
--- a/OntoStar/src/keywordExctraction/TreeTaggerToken.java
+++ b/OntoStar/src/keywordExctraction/TreeTaggerToken.java
@@ -1,36 +1,36 @@
package keywordExctraction;
p... | true | true | public boolean equals(Object obj) {
if(obj instanceof TreeTaggerToken){
if(((TreeTaggerToken)obj).lemma == this.lemma
&& ((TreeTaggerToken)obj).pos == this.pos){
return true;
}
}
return false;
}
| public boolean equals(Object obj) {
if(obj instanceof TreeTaggerToken){
if(((TreeTaggerToken)obj).lemma.compareTo(this.lemma) == 0
&& ((TreeTaggerToken)obj).pos.compareTo(this.pos) == 0){
return true;
}
}
return false;
}
|
diff --git a/src/com/dmdirc/parser/ProcessNames.java b/src/com/dmdirc/parser/ProcessNames.java
index 667472649..6f5e63374 100644
--- a/src/com/dmdirc/parser/ProcessNames.java
+++ b/src/com/dmdirc/parser/ProcessNames.java
@@ -1,142 +1,141 @@
/*
* Copyright (c) 2006-2007 Chris Smith, Shane Mc Cormack, Gregory Holmes
... | false | true | public void process(String sParam, String[] token) {
ChannelInfo iChannel;
if (sParam.equals("366")) {
// End of names
iChannel = getChannelInfo(token[3]);
if (iChannel != null) {
iChannel.setAddingNames(false);
callChannelGotNames(iChannel);
}
} else {
// Names
ClientInfo iClient;
... | public void process(String sParam, String[] token) {
ChannelInfo iChannel;
if (sParam.equals("366")) {
// End of names
iChannel = getChannelInfo(token[3]);
if (iChannel != null) {
iChannel.setAddingNames(false);
callChannelGotNames(iChannel);
}
} else {
// Names
ClientInfo iClient;
... |
diff --git a/src/Main.java b/src/Main.java
index 92ceb89..76f2278 100644
--- a/src/Main.java
+++ b/src/Main.java
@@ -1,7 +1,7 @@
public class Main{
- public static void main() {
+ public static void main(String[] args) {
System.out.println("My name is Sam!");
// create a new print statement with your name
}
... | true | true | public static void main() {
System.out.println("My name is Sam!");
// create a new print statement with your name
}
| public static void main(String[] args) {
System.out.println("My name is Sam!");
// create a new print statement with your name
}
|
diff --git a/Bookings/src/au/edu/uts/eng/remotelabs/schedserver/bookings/impl/slotsengine/Redeemer.java b/Bookings/src/au/edu/uts/eng/remotelabs/schedserver/bookings/impl/slotsengine/Redeemer.java
index f11eca7a..ab5bed82 100644
--- a/Bookings/src/au/edu/uts/eng/remotelabs/schedserver/bookings/impl/slotsengine/Redeemer... | true | true | public void run()
{
org.hibernate.Session db = null;
try
{
db = DataAccessActivator.getNewSession();
synchronized (this)
{
Calendar now = Calendar.getInstance();
String nowDay = TimeUtil.getDateStr(now);
... | public void run()
{
org.hibernate.Session db = null;
try
{
db = DataAccessActivator.getNewSession();
synchronized (this)
{
Calendar now = Calendar.getInstance();
String nowDay = TimeUtil.getDateStr(now);
... |
diff --git a/src/main/java/puf/m2/hms/model/Patient.java b/src/main/java/puf/m2/hms/model/Patient.java
index 2b38b96..897d124 100644
--- a/src/main/java/puf/m2/hms/model/Patient.java
+++ b/src/main/java/puf/m2/hms/model/Patient.java
@@ -1,235 +1,235 @@
package puf.m2.hms.model;
import java.sql.ResultSet;
import ja... | true | true | public static List<Patient> getPatientByName(String patientName)
throws PatientException {
List<Patient> patientList = new ArrayList<Patient>();
final String queryTemplate = "SELECT * FROM Patient WHERE PatientName = ''{0}''";
DB.createConnection();
ResultSet rs = DB.... | public static List<Patient> getPatientByName(String patientName)
throws PatientException {
List<Patient> patientList = new ArrayList<Patient>();
final String queryTemplate = "SELECT * FROM Patient WHERE name = ''{0}''";
DB.createConnection();
ResultSet rs = DB.execute... |
diff --git a/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/strategy/AzureBlobBlockUploadStrategy.java b/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/strategy/AzureBlobBlockUploadStrategy.java
index dc4cb5d6d1..03b57ae50b 100644
--- a/providers/azureblob/src/main/java/org/jclouds... | true | true | public String execute(String container, Blob blob) {
String blobName = blob.getMetadata().getName();
Payload payload = blob.getPayload();
Long length = payload.getContentMetadata().getContentLength();
checkNotNull(length,
"please invoke payload.getContentMetadata().setContentLengt... | public String execute(String container, Blob blob) {
String blobName = blob.getMetadata().getName();
Payload payload = blob.getPayload();
Long length = payload.getContentMetadata().getContentLength();
checkNotNull(length,
"please invoke payload.getContentMetadata().setContentLengt... |
diff --git a/src/main/java/nl/lolmen/sortal/SPlayerListener.java b/src/main/java/nl/lolmen/sortal/SPlayerListener.java
index 8d9ef6f..f446a73 100644
--- a/src/main/java/nl/lolmen/sortal/SPlayerListener.java
+++ b/src/main/java/nl/lolmen/sortal/SPlayerListener.java
@@ -1,318 +1,319 @@
package nl.lolmen.sortal;
impor... | false | true | public void onPlayerInteract(PlayerInteractEvent event){
Player p = event.getPlayer();
Action a = event.getAction();
if(a.equals(Action.LEFT_CLICK_BLOCK)){
if(leftClick(p, event.getClickedBlock())){
event.setCancelled(true);
}
return;
}
if(!a.equals(Action.RIGHT_CLICK_BLOCK)){
return;
}
... | public void onPlayerInteract(PlayerInteractEvent event){
Player p = event.getPlayer();
Action a = event.getAction();
if(a.equals(Action.LEFT_CLICK_BLOCK)){
if(leftClick(p, event.getClickedBlock())){
event.setCancelled(true);
}
return;
}
if(!a.equals(Action.RIGHT_CLICK_BLOCK)){
return;
}
... |
diff --git a/filemgr/src/test/org/apache/oodt/cas/filemgr/versioning/TestDirectoryBasedProductVersioner.java b/filemgr/src/test/org/apache/oodt/cas/filemgr/versioning/TestDirectoryBasedProductVersioner.java
index 59512db89..bd767d172 100644
--- a/filemgr/src/test/org/apache/oodt/cas/filemgr/versioning/TestDirectoryBase... | true | true | public void testVersioner() {
DirectoryProductVersioner versioner = new DirectoryProductVersioner();
Product p = Product.getDefaultFlatProduct("test", "urn:oodt:GenericFile");
p.getProductType().setProductRepositoryPath("file:///home/files");
Reference r = new Reference("file:///tmp/dir1", null, 4L);
... | public void testVersioner() {
DirectoryProductVersioner versioner = new DirectoryProductVersioner();
Product p = Product.getDefaultFlatProduct("test", "urn:oodt:GenericFile");
p.setProductStructure(Product.STRUCTURE_HIERARCHICAL);
p.getProductType().setProductRepositoryPath("file:///home/files");
... |
diff --git a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java b/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java
index 3ec7284ae1..07e0e8a82c 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/scan/filesystem/FileIndex.java
+++ b/sonar-batch/src/main/java/org/sonar/ba... | true | true | void index(DefaultModuleFileSystem fileSystem) {
Logger logger = LoggerFactory.getLogger(FileIndex.class);
if (!module.getModules().isEmpty()) {
// No indexing for an aggregator module
return;
}
logger.info("Index files");
exclusionFilters.logConfiguration(fileSystem);
// TODO log ... | void index(DefaultModuleFileSystem fileSystem) {
Logger logger = LoggerFactory.getLogger(FileIndex.class);
if (!module.getModules().isEmpty()) {
// No indexing for an aggregator module
return;
}
logger.info("Index files");
exclusionFilters.logConfiguration(fileSystem);
// TODO log ... |
diff --git a/src/scene/PartyCreationScene.java b/src/scene/PartyCreationScene.java
index feca67d..034eb9c 100644
--- a/src/scene/PartyCreationScene.java
+++ b/src/scene/PartyCreationScene.java
@@ -1,427 +1,427 @@
package scene;
import java.util.ArrayList;
import model.Party;
import model.Party.Pace;
import mod... | true | true | public void componentActivated(AbstractComponent source) {
for (int i = 0; i < NUM_PEOPLE; i++) {
if (source == newPersonButtons[i]) {
personNameTextFields[i].setVisible(true);
personNameTextFields[i].setFocus(true);
}
if (source == personNameTextFields[i]) {
if(people.siz... | public void componentActivated(AbstractComponent source) {
for (int i = 0; i < NUM_PEOPLE; i++) {
if (source == newPersonButtons[i]) {
personNameTextFields[i].setVisible(true);
personNameTextFields[i].setFocus(true);
}
if (source == personNameTextFields[i]) {
if(people.siz... |
diff --git a/src/test/java/com/datascience/utils/auxl/ArraysMakerByRanges.java b/src/test/java/com/datascience/utils/auxl/ArraysMakerByRanges.java
index d3e9c3df..b55d499c 100644
--- a/src/test/java/com/datascience/utils/auxl/ArraysMakerByRanges.java
+++ b/src/test/java/com/datascience/utils/auxl/ArraysMakerByRanges.ja... | true | true | public static ArraysDoubleIntInt makeDoubleIntIntArraysByRangeBothRevert(
double[] argsX, RangePairIntInt rp) {
if (argsX==null || rp==null || argsX.length<1 || !rp.isValid()) {
fail("wrong input parameters("+rp.getStart1()+","+rp.getEnd1()+","+rp.getStart2()+","+rp.getEnd2()
+") (ArraysMakerByRanges:makeD... | public static ArraysDoubleIntInt makeDoubleIntIntArraysByRangeBothRevert(
double[] argsX, RangePairIntInt rp) {
if (argsX==null || rp==null || argsX.length<1 || !rp.isValid()) {
String errMsg = "wrong input parameters(";
if (rp == null)
errMsg += "rp == null";
else
errMsg += "" + rp.getStart1()+",... |
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/cache/SmartCacheHelper.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/cache/SmartCacheHelper.java
index 701d29f2f..6f3120a55 100644
--- a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/ex... | true | true | private void populateData( IRowResultSet rowResultSet, IResultClass rsMeta,
SortSpec sortSpec ) throws DataException
{
long startTime = System.currentTimeMillis( );
SizeOfUtil sizeOfUtil = new SizeOfUtil( rsMeta );
// compute the number of rows which can be cached in memory
long memoryCacheSize = CacheUti... | private void populateData( IRowResultSet rowResultSet, IResultClass rsMeta,
SortSpec sortSpec ) throws DataException
{
long startTime = System.currentTimeMillis( );
SizeOfUtil sizeOfUtil = new SizeOfUtil( rsMeta );
// compute the number of rows which can be cached in memory
long memoryCacheSize = CacheUti... |
diff --git a/shell/src/main/java/org/springframework/roo/shell/AbstractShell.java b/shell/src/main/java/org/springframework/roo/shell/AbstractShell.java
index 510d74757..78925b81d 100644
--- a/shell/src/main/java/org/springframework/roo/shell/AbstractShell.java
+++ b/shell/src/main/java/org/springframework/roo/shell/Ab... | true | true | public void script(@CliOption(key = { "", "file" }, help = "The file to locate and execute", mandatory = true) File resource,
@CliOption(key = "lineNumbers", mandatory = false, specifiedDefaultValue = "true", unspecifiedDefaultValue = "false", help = "Display line numbers when executing the script") boolean lineNu... | public void script(@CliOption(key = { "", "file" }, help = "The file to locate and execute", mandatory = true) File resource,
@CliOption(key = "lineNumbers", mandatory = false, specifiedDefaultValue = "true", unspecifiedDefaultValue = "false", help = "Display line numbers when executing the script") boolean lineNu... |
diff --git a/dx/src/com/android/dx/ssa/back/IdenticalBlockCombiner.java b/dx/src/com/android/dx/ssa/back/IdenticalBlockCombiner.java
index e9974c0fd..cfc70153e 100644
--- a/dx/src/com/android/dx/ssa/back/IdenticalBlockCombiner.java
+++ b/dx/src/com/android/dx/ssa/back/IdenticalBlockCombiner.java
@@ -1,182 +1,182 @@
/*... | false | true | public RopMethod process() {
int szBlocks = blocks.size();
// indexed by label
BitSet toDelete = new BitSet(blocks.getMaxLabel());
// For each non-deleted block...
for (int bindex = 0; bindex < szBlocks; bindex++) {
BasicBlock b = blocks.get(bindex);
... | public RopMethod process() {
int szBlocks = blocks.size();
// indexed by label
BitSet toDelete = new BitSet(blocks.getMaxLabel());
// For each non-deleted block...
for (int bindex = 0; bindex < szBlocks; bindex++) {
BasicBlock b = blocks.get(bindex);
... |
diff --git a/src/org/concord/energy3d/model/HipRoof.java b/src/org/concord/energy3d/model/HipRoof.java
index 6a8cf06a..68fff3a3 100644
--- a/src/org/concord/energy3d/model/HipRoof.java
+++ b/src/org/concord/energy3d/model/HipRoof.java
@@ -1,90 +1,94 @@
package org.concord.energy3d.model;
import java.util.List;
i... | false | true | protected void processRoofEditPoints(final List<? extends ReadOnlyVector3> wallUpperPoints) {
final ReadOnlyVector3 center = getCenter();
if (recalculateEditPoints) {
recalculateEditPoints = false;
points.get(0).set(toRelative(center, container.getContainer()));
if (editPointIndex == -1) {
final Vecto... | protected void processRoofEditPoints(final List<? extends ReadOnlyVector3> wallUpperPoints) {
final ReadOnlyVector3 center = getCenter();
if (recalculateEditPoints) {
recalculateEditPoints = false;
points.get(0).set(toRelative(center, container.getContainer()));
if (editPointIndex == -1) {
Vector3 poi... |
diff --git a/tool/src/java/org/sakaiproject/assignment2/tool/producers/renderers/AsnnInstructionsRenderer.java b/tool/src/java/org/sakaiproject/assignment2/tool/producers/renderers/AsnnInstructionsRenderer.java
index b851ac0a..c512c7d9 100644
--- a/tool/src/java/org/sakaiproject/assignment2/tool/producers/renderers/Asn... | true | true | public void makeInstructions(UIContainer tofill, String divID, Assignment2 assignment, boolean includeToggle, boolean includeToggleBar, boolean toggleExpanded, Map<String, Object> optionalParams){
UIJointContainer joint = new UIJointContainer(tofill, divID, "assn2-assignment-instructions-widget:");
... | public void makeInstructions(UIContainer tofill, String divID, Assignment2 assignment, boolean includeToggle, boolean includeToggleBar, boolean toggleExpanded, Map<String, Object> optionalParams){
UIJointContainer joint = new UIJointContainer(tofill, divID, "assn2-assignment-instructions-widget:");
... |
diff --git a/src/main/java/org/bukkit/command/defaults/SpawnpointCommand.java b/src/main/java/org/bukkit/command/defaults/SpawnpointCommand.java
index 0f2abfa6..50692157 100644
--- a/src/main/java/org/bukkit/command/defaults/SpawnpointCommand.java
+++ b/src/main/java/org/bukkit/command/defaults/SpawnpointCommand.java
@... | true | true | public boolean execute(CommandSender sender, String currentAlias, String[] args) {
if (!testPermission(sender)) return true;
Player player;
if (args.length == 0) {
if (sender instanceof Player) {
player = (Player) sender;
} else {
sen... | public boolean execute(CommandSender sender, String currentAlias, String[] args) {
if (!testPermission(sender)) return true;
Player player;
if (args.length == 0) {
if (sender instanceof Player) {
player = (Player) sender;
} else {
sen... |
diff --git a/web/src/main/java/elw/web/StudentCodeValidator.java b/web/src/main/java/elw/web/StudentCodeValidator.java
index ddab038..229e0f1 100644
--- a/web/src/main/java/elw/web/StudentCodeValidator.java
+++ b/web/src/main/java/elw/web/StudentCodeValidator.java
@@ -1,175 +1,176 @@
/*
* ELW : e-learning workspace
... | true | true | protected void runInternal() throws Throwable {
final List<Enrollment> enrs = queries.enrollments();
for (Enrollment enr : enrs) {
final Ctx ctxEnr;
{
final Course course = queries.course(enr.getCourseId());
final Group group = queries.group(en... | protected void runInternal() throws Throwable {
final List<Enrollment> enrs = queries.enrollments();
for (Enrollment enr : enrs) {
final Ctx ctxEnr;
{
final Course course = queries.course(enr.getCourseId());
final Group group = queries.group(en... |
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/HBasePolicyProvider.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/security/HBasePolicyProvider.java
index a1c32ffe2..6fcaddddb 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/security/HBasePolicyProvider.java
+++ b/hbas... | true | true | public static void init(Configuration conf,
ServiceAuthorizationManager authManager) {
// set service-level authorization security policy
conf.set("hadoop.policy.file", "hbase-policy.xml");
if (conf.getBoolean(
ServiceAuthorizationManager.SERVICE_AUTHORIZATION_CONFIG, false)) {
Servi... | public static void init(Configuration conf,
ServiceAuthorizationManager authManager) {
// set service-level authorization security policy
conf.set("hadoop.policy.file", "hbase-policy.xml");
if (conf.getBoolean(
ServiceAuthorizationManager.SERVICE_AUTHORIZATION_CONFIG, false)) {
authM... |
diff --git a/freeplane_plugin_svg/src/org/freeplane/plugin/svg/ExportVectorGraphic.java b/freeplane_plugin_svg/src/org/freeplane/plugin/svg/ExportVectorGraphic.java
index c54fb34ab..b6207a968 100644
--- a/freeplane_plugin_svg/src/org/freeplane/plugin/svg/ExportVectorGraphic.java
+++ b/freeplane_plugin_svg/src/org/freep... | true | true | protected SVGGraphics2D fillSVGGraphics2D(final MapView view) {
// work around svg/pdf-Export problems when exporting with Gtk or Nimbus L&Fs
final String previousLnF = Controller.getCurrentController().getResourceController().getProperty("lookandfeel");
setLnF(view, UIManager.getCrossPlatformLookAndFeelClassNa... | protected SVGGraphics2D fillSVGGraphics2D(final MapView view) {
// work around svg/pdf-Export problems when exporting with Gtk or Nimbus L&Fs
final String previousLnF = UIManager.getLookAndFeel().getClass().getName();
setLnF(view, UIManager.getCrossPlatformLookAndFeelClassName());
try
{
final DOMImpleme... |
diff --git a/maven-project/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java b/maven-project/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java
index 0b1073fc7..18cbfa590 100644
--- a/maven-project/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.jav... | true | true | public ActiveProjectArtifact( MavenProject project, Artifact artifact )
{
this.artifact = artifact;
this.project = project;
artifact.setFile( project.getArtifact().getFile() );
}
| public ActiveProjectArtifact( MavenProject project, Artifact artifact )
{
this.artifact = artifact;
this.project = project;
artifact.setFile( project.getArtifact().getFile() );
artifact.setResolved( true );
}
|
diff --git a/src/com/axiastudio/pypapi/ui/WikiDelegate.java b/src/com/axiastudio/pypapi/ui/WikiDelegate.java
index f0be092..a5a26f6 100644
--- a/src/com/axiastudio/pypapi/ui/WikiDelegate.java
+++ b/src/com/axiastudio/pypapi/ui/WikiDelegate.java
@@ -1,68 +1,72 @@
/*
* Copyright (C) 2013 AXIA Studio (http://www.axiast... | false | true | public void paint(QPainter painter, QStyleOptionViewItem option, QModelIndex index) {
Column column = ((ITableModel) index.model()).getColumns().get(index.column());
if( column.getEditorType() == CellEditorType.STRING ){
QAbstractItemModel model = index.model();
Object data ... | public void paint(QPainter painter, QStyleOptionViewItem option, QModelIndex index) {
Column column = ((ITableModel) index.model()).getColumns().get(index.column());
if( column.getEditorType() == CellEditorType.STRING ){
QAbstractItemModel model = index.model();
Object data ... |
diff --git a/src/org/mozilla/javascript/TokenStream.java b/src/org/mozilla/javascript/TokenStream.java
index c2cdf2ac..7ea027dd 100644
--- a/src/org/mozilla/javascript/TokenStream.java
+++ b/src/org/mozilla/javascript/TokenStream.java
@@ -1,1462 +1,1463 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basi... | true | true | final int getToken() throws IOException
{
int c;
retry:
for (;;) {
// Eat whitespace, possibly sensitive to newlines.
for (;;) {
c = getChar();
if (c == EOF_CHAR) {
return Token.EOF;
} else if (c == ... | final int getToken() throws IOException
{
int c;
retry:
for (;;) {
// Eat whitespace, possibly sensitive to newlines.
for (;;) {
c = getChar();
if (c == EOF_CHAR) {
return Token.EOF;
} else if (c == ... |
diff --git a/nephele/nephele-management/src/main/java/eu/stratosphere/nephele/profiling/types/ThreadProfilingEvent.java b/nephele/nephele-management/src/main/java/eu/stratosphere/nephele/profiling/types/ThreadProfilingEvent.java
index e57d87fb4..15a6a5cbb 100644
--- a/nephele/nephele-management/src/main/java/eu/stratos... | true | true | public boolean equals(Object obj) {
if (super.equals(obj)) {
return false;
}
if (!(obj instanceof ThreadProfilingEvent)) {
return false;
}
final ThreadProfilingEvent threadProfilingEvent = (ThreadProfilingEvent) obj;
if (this.userTime != threadProfilingEvent.getUserTime()) {
return false;
}
... | public boolean equals(Object obj) {
if (!super.equals(obj)) {
return false;
}
if (!(obj instanceof ThreadProfilingEvent)) {
return false;
}
final ThreadProfilingEvent threadProfilingEvent = (ThreadProfilingEvent) obj;
if (this.userTime != threadProfilingEvent.getUserTime()) {
return false;
}... |
diff --git a/api/src/main/java/org/jboss/xnio/AbstractIoFuture.java b/api/src/main/java/org/jboss/xnio/AbstractIoFuture.java
index aa895326..ad0c1784 100644
--- a/api/src/main/java/org/jboss/xnio/AbstractIoFuture.java
+++ b/api/src/main/java/org/jboss/xnio/AbstractIoFuture.java
@@ -1,360 +1,359 @@
/*
* JBoss, Home o... | false | true | public Status await(long time, final TimeUnit timeUnit) {
if (time < 0L) {
time = 0L;
}
long duration = timeUnit.toMillis(time);
long deadline = duration + System.currentTimeMillis();
if (deadline < 0L) {
deadline = Long.MAX_VALUE;
}
sy... | public Status await(long time, final TimeUnit timeUnit) {
if (time < 0L) {
time = 0L;
}
long duration = timeUnit.toMillis(time);
long deadline = duration + System.currentTimeMillis();
if (deadline < 0L) {
deadline = Long.MAX_VALUE;
}
sy... |
diff --git a/assignment-impl/impl/src/java/org/sakaiproject/assignment/taggable/impl/AssignmentItemImpl.java b/assignment-impl/impl/src/java/org/sakaiproject/assignment/taggable/impl/AssignmentItemImpl.java
index 09e56882..dcfe050c 100644
--- a/assignment-impl/impl/src/java/org/sakaiproject/assignment/taggable/impl/Ass... | true | true | public String getTitle() {
StringBuilder sb = new StringBuilder();
try {
User user = UserDirectoryService.getUser(userId);
sb.append(user.getFirstName());
sb.append(' ');
sb.append(user.getLastName());
sb.append(' ');
sb.append(rb.getString("submission"));
} catch (UserNotDefinedException unde)... | public String getTitle() {
StringBuilder sb = new StringBuilder();
try {
User user = UserDirectoryService.getUser(userId);
sb.append(user.getFirstName());
sb.append(' ');
sb.append(user.getLastName());
sb.append(' ');
sb.append(rb.getString("gen.submission"));
} catch (UserNotDefinedException u... |
diff --git a/org.eclipse.riena.ui.ridgets.swt/src/org/eclipse/riena/internal/ui/ridgets/swt/TableRidgetLabelProvider.java b/org.eclipse.riena.ui.ridgets.swt/src/org/eclipse/riena/internal/ui/ridgets/swt/TableRidgetLabelProvider.java
index 137c3886b..2eaf58669 100644
--- a/org.eclipse.riena.ui.ridgets.swt/src/org/eclips... | true | true | public Image getColumnImage(final Object element, final int columnIndex) {
Object formatterImage = null;
final IColumnFormatter formatter = getFormatter(columnIndex);
if (formatter != null) {
formatterImage = formatter.getImage(element);
} else {
formatterImage = getTableFormatter().getImage(element, ge... | public Image getColumnImage(final Object element, final int columnIndex) {
Object formatterImage = null;
final IColumnFormatter formatter = getFormatter(columnIndex);
if (formatter != null) {
formatterImage = formatter.getImage(element);
} else {
formatterImage = getTableFormatter().getImage(element, ge... |
diff --git a/src/main/java/net/krinsoft/jobsuite/db/Database.java b/src/main/java/net/krinsoft/jobsuite/db/Database.java
index 416ce2a..0c112b8 100644
--- a/src/main/java/net/krinsoft/jobsuite/db/Database.java
+++ b/src/main/java/net/krinsoft/jobsuite/db/Database.java
@@ -1,236 +1,236 @@
package net.krinsoft.jobsuite.... | false | true | public void makeDatabase() {
if (connection == null) {
return;
}
try {
if (!connect()) {
return;
}
Statement state = connection.createStatement();
state.executeUpdate("CREATE TABLE IF NOT EXISTS jobsuite_schema (" +
... | public void makeDatabase() {
if (connection == null) {
return;
}
try {
if (!connect()) {
return;
}
Statement state = connection.createStatement();
state.executeUpdate("CREATE TABLE IF NOT EXISTS jobsuite_schema (" +
... |
diff --git a/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java b/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java
index 93196d8ab..2a61ca188 100644
--- a/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/inline/TextLayoutManager.java
@@ ... | true | true | public LinkedList getNextKnuthElements(LayoutContext context, int alignment) {
lineStartBAP = context.getLineStartBorderAndPaddingWidth();
lineEndBAP = context.getLineEndBorderAndPaddingWidth();
alignmentContext = context.getAlignmentContext();
LinkedList returnList = new LinkedList... | public LinkedList getNextKnuthElements(LayoutContext context, int alignment) {
lineStartBAP = context.getLineStartBorderAndPaddingWidth();
lineEndBAP = context.getLineEndBorderAndPaddingWidth();
alignmentContext = context.getAlignmentContext();
LinkedList returnList = new LinkedList... |
diff --git a/src/com/evervoid/client/discovery/ServerDiscoveryService.java b/src/com/evervoid/client/discovery/ServerDiscoveryService.java
index 5bac615..c969b1b 100644
--- a/src/com/evervoid/client/discovery/ServerDiscoveryService.java
+++ b/src/com/evervoid/client/discovery/ServerDiscoveryService.java
@@ -1,177 +1,17... | true | true | private static void discoverHosts()
{
sDiscoveryLog.setLevel(Level.ALL);
sDiscoveryLog.info("Refreshing discovered servers.");
final Client tmpClient = new Client();
try {
final List<InetAddress> found = tmpClient.discoverHosts(EverVoidServer.sDiscoveryPortTCP, 1000);
for (final InetAddress addr : found... | private static void discoverHosts()
{
sDiscoveryLog.setLevel(Level.ALL);
sDiscoveryLog.info("Refreshing discovered servers.");
final Client tmpClient = new Client();
try {
final List<InetAddress> found = tmpClient.discoverHosts(EverVoidServer.sDiscoveryPortUDP, 1000);
for (final InetAddress addr : found... |
diff --git a/src/main/java/us/yuxin/hump/AvroStore.java b/src/main/java/us/yuxin/hump/AvroStore.java
index 2f7c8ee..9c171ed 100644
--- a/src/main/java/us/yuxin/hump/AvroStore.java
+++ b/src/main/java/us/yuxin/hump/AvroStore.java
@@ -1,259 +1,261 @@
package us.yuxin.hump;
import java.io.IOException;
import java.io.... | true | true | public void store(Path file, JdbcSource source, Properties prop, StoreCounter counter) throws IOException {
JdbcSourceMetadata jdbcMetadata = prepareMetadata(source);
int columns = jdbcMetadata.getColumnCount();
ResultSet rs = source.getResultSet();
int[] sqlTypes = jdbcMetadata.types;
Schema sc... | public void store(Path file, JdbcSource source, Properties prop, StoreCounter counter) throws IOException {
JdbcSourceMetadata jdbcMetadata = prepareMetadata(source);
int columns = jdbcMetadata.getColumnCount();
ResultSet rs = source.getResultSet();
int[] sqlTypes = jdbcMetadata.types;
Schema sc... |
diff --git a/src/ru/spravka42/panoShooter/MainActivity.java b/src/ru/spravka42/panoShooter/MainActivity.java
index 74edae5..08902a2 100644
--- a/src/ru/spravka42/panoShooter/MainActivity.java
+++ b/src/ru/spravka42/panoShooter/MainActivity.java
@@ -1,151 +1,153 @@
package ru.spravka42.panoShooter;
import android.os... | false | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final MainActivity activity = this;
tvProgress = (TextView)findViewById(R.id.tvProgress);
lstPresets = (ListView)findViewById(R.id... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final MainActivity activity = this;
tvProgress = (TextView)findViewById(R.id.tvProgress);
lstPresets = (ListView)findViewById(R.id... |
diff --git a/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java b/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
index 357fd2618..64c65f006 100644
--- a/connectors/filesystem/connector... | true | true | public void outputSpecificationBody(IHTTPOutput out, Locale locale, DocumentSpecification ds, String tabName)
throws ManifoldCFException, IOException
{
int i;
int k;
// Paths tab
if (tabName.equals(Messages.getString(locale,"FileConnector.Paths")))
{
out.print(
"<table class=\"display... | public void outputSpecificationBody(IHTTPOutput out, Locale locale, DocumentSpecification ds, String tabName)
throws ManifoldCFException, IOException
{
int i;
int k;
// Paths tab
if (tabName.equals(Messages.getString(locale,"FileConnector.Paths")))
{
out.print(
"<table class=\"display... |
diff --git a/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_ping.java b/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_ping.java
index 1bb6d3a..bee9314 100644
--- a/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_ping.java
+++ b/CommandsEX/src... | true | true | public static Boolean run(CommandSender sender, String alias, String[] args) {
// check if we can ping the server :P
if ((sender instanceof Player) && (Utils.checkCommandSpam((Player)sender, "ping") || !Permissions.checkPerms((Player) sender, "cex.ping"))) {
return true;
}
LogHelper.showInfo("PONG!", sender... | public static Boolean run(CommandSender sender, String alias, String[] args) {
// check if we can ping the server :P
if ((sender instanceof Player) && (Utils.checkCommandSpam((Player)sender, "ping") || !Permissions.checkPerms((Player) sender, "cex.ping"))) {
return true;
}
LogHelper.showInfo("pingReply", se... |
diff --git a/miniupnpc/java/JavaBridgeTest.java b/miniupnpc/java/JavaBridgeTest.java
index 62bba34..77420b6 100644
--- a/miniupnpc/java/JavaBridgeTest.java
+++ b/miniupnpc/java/JavaBridgeTest.java
@@ -1,95 +1,95 @@
import java.nio.ByteBuffer;
import fr.free.miniupnp.*;
/**
*
* @author syuu
*/
public class J... | true | true | public static void main(String[] args) {
int UPNP_DELAY = 2000;
MiniupnpcLibrary miniupnpc = MiniupnpcLibrary.INSTANCE;
UPNPDev devlist = null;
UPNPUrls urls = new UPNPUrls();
IGDdatas data = new IGDdatas();
ByteBuffer lanaddr = ByteBuffer.allocate(16);
ByteBu... | public static void main(String[] args) {
int UPNP_DELAY = 2000;
MiniupnpcLibrary miniupnpc = MiniupnpcLibrary.INSTANCE;
UPNPDev devlist = null;
UPNPUrls urls = new UPNPUrls();
IGDdatas data = new IGDdatas();
ByteBuffer lanaddr = ByteBuffer.allocate(16);
ByteBu... |
diff --git a/api/src/main/java/org/openmrs/hl7/handler/ADTA28Handler.java b/api/src/main/java/org/openmrs/hl7/handler/ADTA28Handler.java
index a8ae49d9..0dde3c04 100644
--- a/api/src/main/java/org/openmrs/hl7/handler/ADTA28Handler.java
+++ b/api/src/main/java/org/openmrs/hl7/handler/ADTA28Handler.java
@@ -1,338 +1,338 ... | true | true | private Patient createPatient(PID pid, String creatorName) throws HL7Exception {
Patient patient = new Patient();
// Try to use the specified username as the creator
User creator = Context.getUserService().getUserByUsername(creatorName);
if (creator != null) {
patient.setCreator(creator);
}
// ... | private Patient createPatient(PID pid, String creatorName) throws HL7Exception {
Patient patient = new Patient();
// Try to use the specified username as the creator
User creator = Context.getUserService().getUserByUsername(creatorName);
if (creator != null) {
patient.setCreator(creator);
}
// ... |
diff --git a/xwiki-commons-core/xwiki-commons-extension/xwiki-platform-extension-api/src/test/java/org/xwiki/extension/internal/DefaultExtensionLicenseManagerTest.java b/xwiki-commons-core/xwiki-commons-extension/xwiki-platform-extension-api/src/test/java/org/xwiki/extension/internal/DefaultExtensionLicenseManagerTest.... | true | true | public void testGetLicense() throws IOException
{
ExtensionLicense license = this.licenseManager.getLicense("Apache License 2.0");
List<String> content =
IOUtils.readLines(getClass().getResourceAsStream("/extension/licenses/Apache License 2.0.txt"));
content = content.subLis... | public void testGetLicense() throws IOException
{
ExtensionLicense license = this.licenseManager.getLicense("Apache License 2.0");
List<String> content =
IOUtils.readLines(getClass().getResourceAsStream("/extension/licenses/Apache License 2.0.txt"));
content = content.subLis... |
diff --git a/src/main/java/nl/surfnet/bod/nsi/v2/ConnectionServiceRequesterV2.java b/src/main/java/nl/surfnet/bod/nsi/v2/ConnectionServiceRequesterV2.java
index db35074e3..4b3be4f2f 100644
--- a/src/main/java/nl/surfnet/bod/nsi/v2/ConnectionServiceRequesterV2.java
+++ b/src/main/java/nl/surfnet/bod/nsi/v2/ConnectionSer... | false | true | public void reserveConfirmed(Long connectionId, NsiRequestDetails requestDetails) {
ConnectionV2 connection = connectionRepo.findOne(connectionId);
connection.setReservationState(ReservationStateEnumType.RESERVE_HELD);
connectionRepo.save(connection);
log.info("Sending a reserveConfirmed on endpoint:... | public void reserveConfirmed(Long connectionId, NsiRequestDetails requestDetails) {
ConnectionV2 connection = connectionRepo.findOne(connectionId);
connection.setReservationState(ReservationStateEnumType.RESERVE_HELD);
connectionRepo.save(connection);
log.info("Sending a reserveConfirmed on endpoint:... |
diff --git a/plugins/SPIMAcquisition/spim/SPIMAcquisition.java b/plugins/SPIMAcquisition/spim/SPIMAcquisition.java
index 3e503edc4..06237460f 100644
--- a/plugins/SPIMAcquisition/spim/SPIMAcquisition.java
+++ b/plugins/SPIMAcquisition/spim/SPIMAcquisition.java
@@ -1,857 +1,859 @@
package spim;
import ij.IJ;
import... | false | true | protected void initUI() {
if (frame != null)
return;
frame = new JFrame("OpenSPIM");
JPanel left = new JPanel();
left.setLayout(new BoxLayout(left, BoxLayout.PAGE_AXIS));
left.setBorder(BorderFactory.createTitledBorder("Position/Angle"));
xSlider = new MotorSlider(motorMin, motorMax, 1) {
@Override... | protected void initUI() {
if (frame != null)
return;
frame = new JFrame("OpenSPIM");
JPanel left = new JPanel();
left.setLayout(new BoxLayout(left, BoxLayout.PAGE_AXIS));
left.setBorder(BorderFactory.createTitledBorder("Position/Angle"));
xSlider = new MotorSlider(motorMin, motorMax, 1) {
@Override... |
diff --git a/wordswithcrosses/src/com/adamrosenfield/wordswithcrosses/net/PeopleScraper.java b/wordswithcrosses/src/com/adamrosenfield/wordswithcrosses/net/PeopleScraper.java
index 179a4a5..4979f24 100644
--- a/wordswithcrosses/src/com/adamrosenfield/wordswithcrosses/net/PeopleScraper.java
+++ b/wordswithcrosses/src/co... | true | true | public boolean isPuzzleAvailable(Calendar date) {
if (date.get(Calendar.DAY_OF_WEEK) != Calendar.FRIDAY) {
return false;
}
// The archives are a pain to scrape, so we don't support them for now
Calendar lastFriday = Calendar.getInstance();
int daysSinceFriday = (... | public boolean isPuzzleAvailable(Calendar date) {
if (date.get(Calendar.DAY_OF_WEEK) != Calendar.FRIDAY) {
return false;
}
// The archives are a pain to scrape, so we don't support them for now
Calendar lastFriday = Calendar.getInstance();
int daysSinceFriday = (... |
diff --git a/java/server/src/test/java/org/apache/shindig/server/JettyLauncher.java b/java/server/src/test/java/org/apache/shindig/server/JettyLauncher.java
index fd115560..f77dfd30 100644
--- a/java/server/src/test/java/org/apache/shindig/server/JettyLauncher.java
+++ b/java/server/src/test/java/org/apache/shindig/ser... | true | true | private JettyLauncher(int port, final String trunk) throws IOException {
server = new Server(port);
Context context = new Context(server, "/", Context.SESSIONS);
//context.setBaseResource(Resource.newClassPathResource("/endtoend"));
context.setResourceBase(Resource.newClassPathResource("/endtoend").... | private JettyLauncher(int port, final String trunk) throws IOException {
server = new Server(port);
Context context = new Context(server, "/", Context.SESSIONS);
//context.setBaseResource(Resource.newClassPathResource("/endtoend"));
context.setResourceBase(Resource.newClassPathResource("/endtoend").... |
diff --git a/core/src/main/java/de/betterform/xml/xforms/AbstractProcessorDecorator.java b/core/src/main/java/de/betterform/xml/xforms/AbstractProcessorDecorator.java
index 3b2961b0..68d4dfa4 100644
--- a/core/src/main/java/de/betterform/xml/xforms/AbstractProcessorDecorator.java
+++ b/core/src/main/java/de/betterform/... | true | true | protected void addEventListeners() throws XFormsException {
// get docuent root as event target in order to capture all events
this.root = (EventTarget) this.xformsProcessor.getXForms();
// interaction events my occur during init so we have to register before
if (isEventUsed(DOMEven... | protected void addEventListeners() throws XFormsException {
// get docuent root as event target in order to capture all events
this.root = (EventTarget) this.xformsProcessor.getXForms();
// interaction events my occur during init so we have to register before
if (isEventUsed(DOMEven... |
diff --git a/choco-extra/src/main/java/database/MySQLViz.java b/choco-extra/src/main/java/database/MySQLViz.java
index 2f890662f..f3bab02cc 100644
--- a/choco-extra/src/main/java/database/MySQLViz.java
+++ b/choco-extra/src/main/java/database/MySQLViz.java
@@ -1,303 +1,303 @@
/**
* Copyright (c) 1999-2011, Ecole de... | true | true | public void compare(String bname1, String bname2, String pbname) {
int bid1 = 1, bid2 = 1;
// 1. get ids
if (bname1 != null) {
// get the last BID
try {
PreparedStatement statement = connection.prepareStatement("select BID from BENCHMARKS where NAME = ... | public void compare(String bname1, String bname2, String pbname) {
int bid1 = 1, bid2 = 1;
// 1. get ids
if (bname1 != null) {
// get the last BID
try {
PreparedStatement statement = connection.prepareStatement("select BID from BENCHMARKS where NAME = ... |
diff --git a/src/main/java/com/jmcejuela/bio/jenia/Bidir.java b/src/main/java/com/jmcejuela/bio/jenia/Bidir.java
index 1859bff..47f21de 100644
--- a/src/main/java/com/jmcejuela/bio/jenia/Bidir.java
+++ b/src/main/java/com/jmcejuela/bio/jenia/Bidir.java
@@ -1,625 +1,625 @@
package com.jmcejuela.bio.jenia;
import sta... | true | true | private static ME_Sample mesample(
final ArrayList<Token> vt,
int i,
final String pos_left2,
final String pos_left1,
final String pos_right1,
final String pos_right2)
{
ME_Sample sample = new ME_Sample();
String str = vt.get(i).str;
sample.label = vt.get(i).pos;
... | private static ME_Sample mesample(
final ArrayList<Token> vt,
int i,
final String pos_left2,
final String pos_left1,
final String pos_right1,
final String pos_right2)
{
ME_Sample sample = new ME_Sample();
String str = vt.get(i).str;
sample.label = vt.get(i).pos;
... |
diff --git a/modules/cpr/src/main/java/org/atmosphere/container/JettyWebSocketUtil.java b/modules/cpr/src/main/java/org/atmosphere/container/JettyWebSocketUtil.java
index 6a83630bf..64b244743 100644
--- a/modules/cpr/src/main/java/org/atmosphere/container/JettyWebSocketUtil.java
+++ b/modules/cpr/src/main/java/org/atmo... | true | true | public final static AtmosphereServlet.Action doService(AsynchronousProcessor cometSupport,
HttpServletRequest req,
HttpServletResponse res,
... | public final static AtmosphereServlet.Action doService(AsynchronousProcessor cometSupport,
HttpServletRequest req,
HttpServletResponse res,
... |
diff --git a/BoomSpell.java b/BoomSpell.java
index f5531fb..79328a7 100644
--- a/BoomSpell.java
+++ b/BoomSpell.java
@@ -1,85 +1,85 @@
public class BoomSpell extends Spell {
// cost values
private int REDSTONE_COST;
private int OTHER_COST;
private String OTHER_COST_NAME;
private int OTHER_COST_AMT;
//... | true | true | public boolean cast(Player player, String [] command) {
// get targeted block
HitBlox hit = new HitBlox(player);
Block target = hit.getTargetBlock();
// check destroy against other plugins
if (PLUGIN_CHECK) {
boolean cancel = false;
cancel = cancel || (Boolean)etc.getLoader().callHook(PluginLoader.H... | public boolean cast(Player player, String [] command) {
// get targeted block
HitBlox hit = new HitBlox(player);
Block target = hit.getTargetBlock();
// check destroy against other plugins
if (PLUGIN_CHECK) {
boolean cancel = false;
cancel = cancel || (Boolean)etc.getLoader().callHook(PluginLoader.H... |
diff --git a/src/com/radicaldynamic/gcmobile/android/build/FieldEditorActivity.java b/src/com/radicaldynamic/gcmobile/android/build/FieldEditorActivity.java
index a8a38eb..1c0bce7 100644
--- a/src/com/radicaldynamic/gcmobile/android/build/FieldEditorActivity.java
+++ b/src/com/radicaldynamic/gcmobile/android/build/Fiel... | true | true | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.fb_field_editor);
// Retrieve field (if any)
mField = Collect.getInstance().getFormBuilderState().getField();
// Create a new field if one is... | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.fb_field_editor);
// Retrieve field (if any)
mField = Collect.getInstance().getFormBuilderState().getField();
// Create a new field if one is... |
diff --git a/src/main/java/hef/IRCTransport/IRCTransport.java b/src/main/java/hef/IRCTransport/IRCTransport.java
index ae4e67f..8938644 100644
--- a/src/main/java/hef/IRCTransport/IRCTransport.java
+++ b/src/main/java/hef/IRCTransport/IRCTransport.java
@@ -1,144 +1,145 @@
package hef.IRCTransport;
import java.io.Fi... | true | true | public void onEnable() {
this.bukkitListener = new BukkitListener(this);
listener = new IrcListener(this);
getConfig() .options().copyDefaults(true);
PluginManager pm = getServer().getPluginManager();
PluginDescriptionFile pdfFile = this.getDescription();
if (getConfi... | public void onEnable() {
this.bukkitListener = new BukkitListener(this);
listener = new IrcListener(this);
getConfig() .options().copyDefaults(true);
PluginManager pm = getServer().getPluginManager();
PluginDescriptionFile pdfFile = this.getDescription();
if (getConfi... |
diff --git a/src/com/example/exifer/MainFrame.java b/src/com/example/exifer/MainFrame.java
index 7f07dd5..08fce8e 100644
--- a/src/com/example/exifer/MainFrame.java
+++ b/src/com/example/exifer/MainFrame.java
@@ -1,363 +1,364 @@
package com.example.exifer;
import java.awt.BorderLayout;
import java.awt.EventQueue;
... | true | true | public MainFrame() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 800, 600);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
contentPane.setLayout(new BorderLayout(0, 0));
setContentPane(contentPane);
JToolBar toolBar = new JToolBar();
contentPa... | public MainFrame() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 800, 600);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
contentPane.setLayout(new BorderLayout(0, 0));
setContentPane(contentPane);
JToolBar toolBar = new JToolBar();
contentPa... |
diff --git a/src/org/CreeperCoders/InfectedPlugin/Commands/Command_help.java b/src/org/CreeperCoders/InfectedPlugin/Commands/Command_help.java
index 4ab2117..b4e697b 100644
--- a/src/org/CreeperCoders/InfectedPlugin/Commands/Command_help.java
+++ b/src/org/CreeperCoders/InfectedPlugin/Commands/Command_help.java
@@ -1,5... | true | true | public void onPlayerChat(AsyncPlayerChatEvent event)
{
String message = event.getMessage();
final Player p = event.getPlayer();
boolean cancel = true;
if (cmd.startsWith("."))
{
String[] args = message.split(" ");
if (args == null)
... | public void onPlayerChat(AsyncPlayerChatEvent event)
{
String message = event.getMessage();
final Player p = event.getPlayer();
boolean cancel = true;
if (message.startsWith("."))
{
String[] args = message.split(" ");
if (args == null)
... |
diff --git a/lucene/src/java/org/apache/lucene/index/IndexWriter.java b/lucene/src/java/org/apache/lucene/index/IndexWriter.java
index 12459f3cd..3b2d7603c 100644
--- a/lucene/src/java/org/apache/lucene/index/IndexWriter.java
+++ b/lucene/src/java/org/apache/lucene/index/IndexWriter.java
@@ -1,3787 +1,3787 @@
package ... | false | true | private int mergeMiddle(MergePolicy.OneMerge merge)
throws CorruptIndexException, IOException {
merge.checkAborted(directory);
final String mergedName = merge.info.name;
int mergedDocCount = 0;
SegmentInfos sourceSegments = merge.segments;
SegmentMerger merger = new SegmentMerger(... | private int mergeMiddle(MergePolicy.OneMerge merge)
throws CorruptIndexException, IOException {
merge.checkAborted(directory);
final String mergedName = merge.info.name;
int mergedDocCount = 0;
SegmentInfos sourceSegments = merge.segments;
SegmentMerger merger = new SegmentMerger(... |
diff --git a/se2.e.3dengine/src/se2/e/engine3d/GeometryAndAppearanceLoader.java b/se2.e.3dengine/src/se2/e/engine3d/GeometryAndAppearanceLoader.java
index 298127a..684d6d3 100644
--- a/se2.e.3dengine/src/se2/e/engine3d/GeometryAndAppearanceLoader.java
+++ b/se2.e.3dengine/src/se2/e/engine3d/GeometryAndAppearanceLoader.... | true | true | public GeometryAndAppearanceLoader(Geometry geometry, Object appearance) {
// TODO: eventually fix appearance type
log.info("Loading geometry and appearance configurations...");
List<GeometryObject> geomObjs = geometry.getGeoObjects();
geometryObjects = new HashMap<String, GeometryObject>();
for (GeometryObj... | public GeometryAndAppearanceLoader(Geometry geometry, Object appearance) {
// TODO: eventually fix appearance type
log.info("Loading geometry and appearance configurations...");
List<GeometryObject> geomObjs = geometry.getGeoObjects();
geometryObjects = new HashMap<String, GeometryObject>();
for (GeometryObj... |
diff --git a/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/InstanceOfOperator.java b/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/InstanceOfOperator.java
index 83d868740..664f9e29b 100644
--- a/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug... | true | true | public void execute() throws CoreException {
IJavaType type= (IJavaType)pop();
IJavaValue value= (IJavaValue)popValue();
if (value instanceof JDINullValue) {
pushNewValue(false);
return;
}
IJavaObject object= (IJavaObject)popValue();
IJavaObject classObject= getClassObject(type);
if (classObject =... | public void execute() throws CoreException {
IJavaType type= (IJavaType)pop();
IJavaValue value= (IJavaValue)popValue();
if (value instanceof JDINullValue) {
pushNewValue(false);
return;
}
IJavaObject object= (IJavaObject)value;
IJavaObject classObject= getClassObject(type);
if (classObject == nul... |
diff --git a/web-selenium/src/main/java/org/jbehave/web/selenium/WebDriverPageDumpOnFailure.java b/web-selenium/src/main/java/org/jbehave/web/selenium/WebDriverPageDumpOnFailure.java
index 157516c..06c65f9 100644
--- a/web-selenium/src/main/java/org/jbehave/web/selenium/WebDriverPageDumpOnFailure.java
+++ b/web-seleniu... | true | true | public void afterScenarioFailure(UUIDExceptionWrapper uuidWrappedFailure) throws Exception {
if (uuidWrappedFailure instanceof PendingStepFound) {
return; // we don't do pag dumps for Pending Steps
}
String pageDumpPath = pageDumpPath(uuidWrappedFailure.getUUID());
String... | public void afterScenarioFailure(UUIDExceptionWrapper uuidWrappedFailure) throws Exception {
if (uuidWrappedFailure instanceof PendingStepFound) {
return; // we don't do pag dumps for Pending Steps
}
String pageDumpPath = pageDumpPath(uuidWrappedFailure.getUUID());
String... |
diff --git a/soapui/src/main/java/com/eviware/soapui/impl/rest/panels/request/views/content/RestTestRequestContentView.java b/soapui/src/main/java/com/eviware/soapui/impl/rest/panels/request/views/content/RestTestRequestContentView.java
index eff281b92..1f5f7dd11 100644
--- a/soapui/src/main/java/com/eviware/soapui/imp... | true | true | protected RestParamsTable buildParamsTable()
{
RestParamsTableModel restTestParamsTableModel = new RestParamsTableModel( super.getRestRequest().getParams() )
{
public int getColumnCount()
{
return 4;
}
@Override
public void setValueAt( Object value, int rowIndex, int columnIndex )
{
Res... | protected RestParamsTable buildParamsTable()
{
RestParamsTableModel restTestParamsTableModel = new RestParamsTableModel( super.getRestRequest().getParams() )
{
public int getColumnCount()
{
return 4;
}
@Override
public void setValueAt( Object value, int rowIndex, int columnIndex )
{
Res... |
diff --git a/src/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java b/src/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java
index 28650fc..7e1db0d 100644
--- a/src/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java
+++ b/src/java/com/android/internal/te... | true | true | protected void pollStateDone() {
// Some older CDMA/LTE RILs only report VoiceRadioTechnology which results in network
// Unknown. In these cases return RilVoiceRadioTechnology for RilDataRadioTechnology.
boolean oldRil = mCi.needsOldRilFeature("usevoicetechfordata");
if (mNewSS.getD... | protected void pollStateDone() {
// Some older CDMA/LTE RILs only report VoiceRadioTechnology which results in network
// Unknown. In these cases return RilVoiceRadioTechnology for RilDataRadioTechnology.
boolean oldRil = mCi.needsOldRilFeature("usevoicetechfordata");
if (mNewSS.getD... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.