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/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/WebRepositoryConnectorTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/WebRepositoryConnectorTest.java
index 7160b7020..b53b6e312 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/WebReposi... | false | true | public void testRepositoryTemplate() throws Exception {
IProgressMonitor monitor = new NullProgressMonitor();
MultiStatus queryStatus = new MultiStatus(TasksUiPlugin.PLUGIN_ID, IStatus.OK, "Query result", null);
final List<AbstractQueryHit> hits = new ArrayList<AbstractQueryHit>();
QueryHit... | public void testRepositoryTemplate() throws Exception {
IProgressMonitor monitor = new NullProgressMonitor();
MultiStatus queryStatus = new MultiStatus(TasksUiPlugin.PLUGIN_ID, IStatus.OK, "Query result", null);
final List<AbstractQueryHit> hits = new ArrayList<AbstractQueryHit>();
QueryHit... |
diff --git a/SeriesGuide/src/com/battlelancer/seriesguide/util/SimpleCrypto.java b/SeriesGuide/src/com/battlelancer/seriesguide/util/SimpleCrypto.java
index 0af1b69b7..4417c62e7 100644
--- a/SeriesGuide/src/com/battlelancer/seriesguide/util/SimpleCrypto.java
+++ b/SeriesGuide/src/com/battlelancer/seriesguide/util/Simpl... | false | true | private static byte[] getRawKey(Context context) throws Exception {
KeyGenerator kgen = KeyGenerator.getInstance("AES");
SecureRandom sr = SecureRandom.getInstance("SHA1PRNG");
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
String seed = prefs.getS... | private static byte[] getRawKey(Context context) throws Exception {
KeyGenerator kgen = KeyGenerator.getInstance("AES");
SecureRandom sr = SecureRandom.getInstance("SHA1PRNG");
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context
.getApplicationCon... |
diff --git a/chronicle/src/test/java/com/higherfrequencytrading/chronicle/examples/ExampleRewriteMain.java b/chronicle/src/test/java/com/higherfrequencytrading/chronicle/examples/ExampleRewriteMain.java
index 0f27c58..603d8a3 100644
--- a/chronicle/src/test/java/com/higherfrequencytrading/chronicle/examples/ExampleRewr... | true | true | public static void main(String... ignored) throws IOException {
final String basePath = System.getProperty("java.io.tmpdir") + File.separator + "test";
ChronicleTools.deleteOnExit(basePath);
final int[] consolidates = new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
... | public static void main(String... ignored) throws IOException {
final String basePath = System.getProperty("java.io.tmpdir") + File.separator + "test";
ChronicleTools.deleteOnExit(basePath);
final int[] consolidates = new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
... |
diff --git a/plugins/org.eclipse.m2m.atl.core.ant/src_ant/org/eclipse/m2m/atl/core/ant/tasks/ATLModelTransformationTask.java b/plugins/org.eclipse.m2m.atl.core.ant/src_ant/org/eclipse/m2m/atl/core/ant/tasks/ATLModelTransformationTask.java
index 2a4fbf3f..d1e8839b 100644
--- a/plugins/org.eclipse.m2m.atl.core.ant/src_an... | true | true | public void execute() throws BuildException {
log(Messages.getString("ATLModelTransformationTask.MSG", asmPath.toString(), getLauncherName())); //$NON-NLS-1$
ILauncher launcherInstance = getLauncher();
launcherInstance.initialize(options);
if (asmPath == null) {
error(Messages.getString("ATLModelTransform... | public void execute() throws BuildException {
log(Messages.getString("ATLModelTransformationTask.MSG", asmPath.toString(), getLauncherName())); //$NON-NLS-1$
ILauncher launcherInstance = getLauncher();
launcherInstance.initialize(options);
if (asmPath == null) {
error(Messages.getString("ATLModelTransform... |
diff --git a/src/rajawali/BaseObject3D.java b/src/rajawali/BaseObject3D.java
index 7b304059..f141d359 100644
--- a/src/rajawali/BaseObject3D.java
+++ b/src/rajawali/BaseObject3D.java
@@ -1,817 +1,820 @@
package rajawali;
import java.nio.IntBuffer;
import java.nio.ShortBuffer;
import java.util.ArrayList;
import j... | false | true | public void render(Camera camera, float[] projMatrix, float[] vMatrix, final float[] parentMatrix,
ColorPickerInfo pickerInfo) {
if (!mIsVisible)
return;
preRender();
// -- move view matrix transformation first
Matrix.setIdentityM(mMMatrix, 0);
Matrix.setIdentityM(mScalematrix, 0);
Matrix.scaleM(mS... | public void render(Camera camera, float[] projMatrix, float[] vMatrix, final float[] parentMatrix,
ColorPickerInfo pickerInfo) {
if (!mIsVisible)
return;
preRender();
// -- move view matrix transformation first
Matrix.setIdentityM(mMMatrix, 0);
Matrix.setIdentityM(mScalematrix, 0);
Matrix.scaleM(mS... |
diff --git a/src/imp/model/SQLAudit.java b/src/imp/model/SQLAudit.java
index 9763a68..ff6f25f 100644
--- a/src/imp/model/SQLAudit.java
+++ b/src/imp/model/SQLAudit.java
@@ -1,113 +1,116 @@
/**
*
*/
package imp.model;
import java.sql.DriverManager;
import java.util.ArrayList;
import java.sql.Connection;
imp... | true | true | private void run() {
try {
Class.forName(JDBC_DRIVER);
} catch (Exception e) {
System.out.println("Could not create JDBC driver");
e.printStackTrace();
return;
}
System.out.println("Starting connection...");
Connection con = null;
try {
DriverManager.setLoginTimeout(2);
con = DriverMa... | private void run() {
try {
Class.forName(JDBC_DRIVER);
} catch (Exception e) {
System.out.println("Could not create JDBC driver");
e.printStackTrace();
return;
}
System.out.println("Starting connection...");
Connection con = null;
try {
DriverManager.setLoginTimeout(2);
con = DriverMa... |
diff --git a/vufind/cron/src/org/epub/Reindex.java b/vufind/cron/src/org/epub/Reindex.java
index 3bff4c48..b47726e5 100644
--- a/vufind/cron/src/org/epub/Reindex.java
+++ b/vufind/cron/src/org/epub/Reindex.java
@@ -1,75 +1,75 @@
package org.epub;
import java.io.InputStream;
import java.net.URL;
import java.sql.Co... | false | true | public void doCronProcess(String servername, Ini configIni, Section processSettings, Connection vufindConn, Connection econtentConn, CronLogEntry cronEntry, Logger logger) {
CronProcessLogEntry processLog = new CronProcessLogEntry(cronEntry.getLogEntryId(), "Reindex eContent");
processLog.saveToDatabase(vufindConn... | public void doCronProcess(String servername, Ini configIni, Section processSettings, Connection vufindConn, Connection econtentConn, CronLogEntry cronEntry, Logger logger) {
CronProcessLogEntry processLog = new CronProcessLogEntry(cronEntry.getLogEntryId(), "Reindex eContent");
processLog.saveToDatabase(vufindConn... |
diff --git a/jar/src/main/java/org/mobicents/tools/sip/balancer/NodeRegisterImpl.java b/jar/src/main/java/org/mobicents/tools/sip/balancer/NodeRegisterImpl.java
index a082b6c..1c0ed11 100644
--- a/jar/src/main/java/org/mobicents/tools/sip/balancer/NodeRegisterImpl.java
+++ b/jar/src/main/java/org/mobicents/tools/sip/ba... | true | true | public void handlePingInRegister(ArrayList<SIPNode> ping) {
for (SIPNode pingNode : ping) {
if(pingNode.getProperties().get("jvmRoute") != null) {
// Let it leak, we will have 10-100 nodes, not a big deal if it leaks.
// We need info about inactive nodes to do the failover
BalancerContext.balancerCont... | public void handlePingInRegister(ArrayList<SIPNode> ping) {
for (SIPNode pingNode : ping) {
pingNode.updateTimerStamp();
if(pingNode.getProperties().get("jvmRoute") != null) {
// Let it leak, we will have 10-100 nodes, not a big deal if it leaks.
// We need info about inactive nodes to do the failover
... |
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerXmlRpcTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerXmlRpcTest.java
index 7c7c8a8b4..45300a543 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests... | true | true | public void testMarkStaleTasks() throws Exception {
SynchronizationSession session;
TracTicket ticket = TracTestUtil.createTicket(client, "markStaleTasks");
ITask task = TracTestUtil.createTask(repository, ticket.getId() + "");
long lastModified = TracUtil.toTracTime(task.getModificationDate());
// an empty... | public void testMarkStaleTasks() throws Exception {
SynchronizationSession session;
TracTicket ticket = TracTestUtil.createTicket(client, "markStaleTasks");
ITask task = TracTestUtil.createTask(repository, ticket.getId() + "");
long lastModified = TracUtil.toTracTime(task.getModificationDate());
// an empty... |
diff --git a/hazelcast/src/main/java/com/hazelcast/impl/concurrentmap/MapSystemLogFactory.java b/hazelcast/src/main/java/com/hazelcast/impl/concurrentmap/MapSystemLogFactory.java
index cb382a04..0ee0bc7e 100644
--- a/hazelcast/src/main/java/com/hazelcast/impl/concurrentmap/MapSystemLogFactory.java
+++ b/hazelcast/src/m... | true | true | public String toString() {
StringBuilder sb = new StringBuilder("RedoLog{");
sb.append("key=" + key +
", operation=" + operation +
", target=" + target +
", targetConnected=" + targetConnected +
", redoCount=... | public String toString() {
StringBuilder sb = new StringBuilder("RedoLog{");
sb.append("key=" + key +
", operation=" + operation +
", target=" + target +
", targetConnected=" + targetConnected +
", redoCount=... |
diff --git a/course_manager_mobile/src/cz/kinst/jakub/coursemanager/AssignmentDetail.java b/course_manager_mobile/src/cz/kinst/jakub/coursemanager/AssignmentDetail.java
index 9eee8e1..83c3d82 100644
--- a/course_manager_mobile/src/cz/kinst/jakub/coursemanager/AssignmentDetail.java
+++ b/course_manager_mobile/src/cz/kin... | true | true | public void gotData(JSONObject data) throws JSONException {
JSONObject assignment = data.getJSONObject("assignment");
TextView name = (TextView) findViewById(R.id.name);
TextView date = (TextView) findViewById(R.id.date);
JSONObject course = data.getJSONObject("activeCourse");
setTitle(course.getString("name... | public void gotData(JSONObject data) throws JSONException {
JSONObject assignment = data.getJSONObject("assignment");
TextView name = (TextView) findViewById(R.id.name);
TextView date = (TextView) findViewById(R.id.date);
JSONObject course = data.getJSONObject("activeCourse");
setTitle(course.getString("name... |
diff --git a/Model/src/java/fr/cg95/cvq/dao/request/xml/LocalReferentialDAO.java b/Model/src/java/fr/cg95/cvq/dao/request/xml/LocalReferentialDAO.java
index 0941c2c1a..cf99f4ad2 100644
--- a/Model/src/java/fr/cg95/cvq/dao/request/xml/LocalReferentialDAO.java
+++ b/Model/src/java/fr/cg95/cvq/dao/request/xml/LocalReferen... | true | true | private File getOrCreateLocalReferentialFile(final String requestTypeLabel) {
final String fileName = requestServiceRegistry.getRequestService(requestTypeLabel).getLocalReferentialFilename();
final File file = getLocalReferentialFile(fileName);
if (file != null && file.exists()) {
... | private File getOrCreateLocalReferentialFile(final String requestTypeLabel) {
final String fileName = requestServiceRegistry.getRequestService(requestTypeLabel).getLocalReferentialFilename();
if (fileName == null)
return null;
final File file = getLocalReferentialFile(fileName);
... |
diff --git a/org.emftext.runtime.ui/src/org/emftext/runtime/ui/EMFTextEditorCompletionProcessor.java b/org.emftext.runtime.ui/src/org/emftext/runtime/ui/EMFTextEditorCompletionProcessor.java
index 505ee54d8..e630d8857 100644
--- a/org.emftext.runtime.ui/src/org/emftext/runtime/ui/EMFTextEditorCompletionProcessor.java
+... | true | true | public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer,
int documentOffset) {
long startTime = System.currentTimeMillis();
Resource resource = editor.getResource();
ITextResource textResource = (ITextResource) resource;
ILocationMap locationMap = textResource.getLocationMap();
EList<EO... | public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer,
int documentOffset) {
long startTime = System.currentTimeMillis();
Resource resource = editor.getResource();
ITextResource textResource = (ITextResource) resource;
ILocationMap locationMap = textResource.getLocationMap();
EList<EO... |
diff --git a/piratebay-downloader-gui/src/main/java/com/ags/pirate/PirateGui.java b/piratebay-downloader-gui/src/main/java/com/ags/pirate/PirateGui.java
index a3543e4..1bbf1dd 100644
--- a/piratebay-downloader-gui/src/main/java/com/ags/pirate/PirateGui.java
+++ b/piratebay-downloader-gui/src/main/java/com/ags/pirate/Pi... | true | true | private void createComponents() {
//Create and set up the window.
frame = new JFrame("PirateBay downloader "+ Configuration.getInstance().getProjectVersion());
frame.setResizable(false);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
MigLayout layout = new MigLayout(""... | private void createComponents() {
//Create and set up the window.
frame = new JFrame("PirateBay downloader "+ Configuration.getInstance().getProjectVersion());
frame.setResizable(false);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
MigLayout layout = new MigLayout(""... |
diff --git a/src/com/github/triplesolitaire/Lane.java b/src/com/github/triplesolitaire/Lane.java
index bf80a96..e52b6d5 100644
--- a/src/com/github/triplesolitaire/Lane.java
+++ b/src/com/github/triplesolitaire/Lane.java
@@ -1,248 +1,248 @@
package com.github.triplesolitaire;
import java.util.List;
import androi... | true | true | public void addCascade(final List<String> cascadeToAdd)
{
final int card_vert_overlap_dim = getResources().getDimensionPixelSize(
R.dimen.card_vert_overlap_dim);
// Create the cascade
for (int h = 0; h < cascadeToAdd.size(); h++)
{
final int cascadeId = h + cascadeSize + stackSize + 1;
final Card ca... | public void addCascade(final List<String> cascadeToAdd)
{
final int card_vert_overlap_dim = getResources().getDimensionPixelSize(
R.dimen.card_vert_overlap_dim);
// Create the cascade
for (int h = 0; h < cascadeToAdd.size(); h++)
{
final int cascadeId = h + cascadeSize + stackSize + 1;
final Card ca... |
diff --git a/jtidy/src/main/org/w3c/tidy/Lexer.java b/jtidy/src/main/org/w3c/tidy/Lexer.java
index 969ba97..f68966b 100644
--- a/jtidy/src/main/org/w3c/tidy/Lexer.java
+++ b/jtidy/src/main/org/w3c/tidy/Lexer.java
@@ -1,3472 +1,3472 @@
/**
* Java HTML Tidy - JTidy
* HTML parser and pretty printer
*
* Copyright (... | true | true | public Node getToken(short mode)
{
short map;
int c = 0;
int badcomment = 0;
MutableBoolean isempty = new MutableBoolean();
AttVal attributes;
if (this.pushed)
{
/* duplicate inlines in preference to pushed text nodes when appropriate */
... | public Node getToken(short mode)
{
short map;
int c = 0;
int badcomment = 0;
MutableBoolean isempty = new MutableBoolean();
AttVal attributes;
if (this.pushed)
{
/* duplicate inlines in preference to pushed text nodes when appropriate */
... |
diff --git a/common/crazypants/enderio/conduit/liquid/LiquidConduitRenderer.java b/common/crazypants/enderio/conduit/liquid/LiquidConduitRenderer.java
index b0bbb31d3..78b89518c 100644
--- a/common/crazypants/enderio/conduit/liquid/LiquidConduitRenderer.java
+++ b/common/crazypants/enderio/conduit/liquid/LiquidConduitR... | true | true | private void renderFluidOutline(CollidableComponent component, FluidStack fluid) {
//TODO: Should cache these vertices as relatively heavy weight to calc each frame
Icon texture = fluid.getFluid().getStillIcon();
BoundingBox bbb = component.bound;
for (ForgeDirection face : ForgeDirection.VALID_DIRECT... | private void renderFluidOutline(CollidableComponent component, FluidStack fluid) {
//TODO: Should cache these vertices as relatively heavy weight to calc each frame
Icon texture = fluid.getFluid().getStillIcon();
if(texture == null) {
texture = fluid.getFluid().getIcon();
if(texture == null) {... |
diff --git a/hibernate-ogm-core/src/main/java/org/hibernate/ogm/type/descriptor/BasicGridBinder.java b/hibernate-ogm-core/src/main/java/org/hibernate/ogm/type/descriptor/BasicGridBinder.java
index 9a53d6d84..900a79315 100644
--- a/hibernate-ogm-core/src/main/java/org/hibernate/ogm/type/descriptor/BasicGridBinder.java
+... | false | true | public void bind(Tuple resultset, X value, String[] names) {
if ( value == null ) {
for ( String name : names ) {
log.tracef( "binding [null] to parameter [$s]", name );
resultset.put( name, null );
}
}
else {
if ( log.isTraceEnabled() ) {
log.tracef( "binding [$s] to parameter(s) $s", javaD... | public void bind(Tuple resultset, X value, String[] names) {
if ( value == null ) {
for ( String name : names ) {
log.tracef( "binding [null] to parameter [%1$s]", name );
resultset.put( name, null );
}
}
else {
if ( log.isTraceEnabled() ) {
log.tracef( "binding [%2$s] to parameter(s) %1$s",... |
diff --git a/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/RetriableFileCopyCommand.java b/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/RetriableFileCopyCommand.java
index 227df08d11..9148630d08 100644
--- a/hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/... | true | true | private long doCopy(FileStatus sourceFileStatus, Path target,
Mapper.Context context,
EnumSet<FileAttribute> fileAttributes)
throws IOException {
Path tmpTargetPath = getTmpFile(target, context);
final Configuration configuration = context.getConfiguratio... | private long doCopy(FileStatus sourceFileStatus, Path target,
Mapper.Context context,
EnumSet<FileAttribute> fileAttributes)
throws IOException {
Path tmpTargetPath = getTmpFile(target, context);
final Configuration configuration = context.getConfiguratio... |
diff --git a/iwsn/wsn-federator/src/main/java/de/uniluebeck/itm/tr/wsn/federator/FederatorSessionManagement.java b/iwsn/wsn-federator/src/main/java/de/uniluebeck/itm/tr/wsn/federator/FederatorSessionManagement.java
index f83eb35d..a8949c8e 100644
--- a/iwsn/wsn-federator/src/main/java/de/uniluebeck/itm/tr/wsn/federator... | true | true | public String getInstance(
@WebParam(name = "secretReservationKeys", targetNamespace = "")
List<SecretReservationKey> secretReservationKeys,
@WebParam(name = "controller", targetNamespace = "")
String controller)
throws ExperimentNotRunningException_Exception, UnknownReservationIdException_Exception {
... | public String getInstance(
@WebParam(name = "secretReservationKeys", targetNamespace = "")
List<SecretReservationKey> secretReservationKeys,
@WebParam(name = "controller", targetNamespace = "")
String controller)
throws ExperimentNotRunningException_Exception, UnknownReservationIdException_Exception {
... |
diff --git a/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java b/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java
index 2eb197c1a..05dbc38d6 100644
--- a/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java
+++ b/drools-analytics/src/test/java/org/drools/analyti... | true | true | public void testAnalyzer() throws Exception {
Analyzer anal = new Analyzer();
DrlParser p = new DrlParser();
InputStreamReader reader = new InputStreamReader(this.getClass().getResourceAsStream("Misc3.drl"));
PackageDescr pkg = p.parse(reader);
assertFalse(p.hasErrors());
anal.addPackageDescr(pkg);
ana... | public void testAnalyzer() throws Exception {
Analyzer anal = new Analyzer();
DrlParser p = new DrlParser();
InputStreamReader reader = new InputStreamReader(this.getClass().getResourceAsStream("Misc3.drl"));
PackageDescr pkg = p.parse(reader);
assertFalse(p.hasErrors());
anal.addPackageDescr(pkg);
ana... |
diff --git a/onebusaway-transit-data-federation/src/main/java/org/onebusaway/transit_data_federation/impl/transit_graph/BlockConfigurationEntryImpl.java b/onebusaway-transit-data-federation/src/main/java/org/onebusaway/transit_data_federation/impl/transit_graph/BlockConfigurationEntryImpl.java
index 1f6460e6..af171ae8 ... | true | true | private List<BlockTripEntry> computeBlockTrips(
BlockConfigurationEntryImpl blockConfiguration) {
ArrayList<BlockTripEntry> blockTrips = new ArrayList<BlockTripEntry>();
short accumulatedStopTimeIndex = 0;
int accumulatedSlackTime = 0;
double distanceAlongBlock = 0;
BlockTrip... | private List<BlockTripEntry> computeBlockTrips(
BlockConfigurationEntryImpl blockConfiguration) {
ArrayList<BlockTripEntry> blockTrips = new ArrayList<BlockTripEntry>();
short accumulatedStopTimeIndex = 0;
int accumulatedSlackTime = 0;
double distanceAlongBlock = 0;
BlockTrip... |
diff --git a/core/src/visad/trunk/Irregular3DSet.java b/core/src/visad/trunk/Irregular3DSet.java
index 3207e405c..e63f62e31 100644
--- a/core/src/visad/trunk/Irregular3DSet.java
+++ b/core/src/visad/trunk/Irregular3DSet.java
@@ -1,2997 +1,3018 @@
//
// Irregular3DSet.java
//
/*
VisAD system for interactive analy... | false | true | private void makeIsosurface(float isolevel, float[] fieldValues,
byte[][] auxValues, float[][] fieldVertices,
byte[][] auxLevels, int[][][] polyToVert,
int[][][] vertToPoly) throws VisADException {
boolean DEBUG = false;
... | private void makeIsosurface(float isolevel, float[] fieldValues,
byte[][] auxValues, float[][] fieldVertices,
byte[][] auxLevels, int[][][] polyToVert,
int[][][] vertToPoly) throws VisADException {
boolean DEBUG = false;
... |
diff --git a/syncronizer/src/org/sync/MainEntry.java b/syncronizer/src/org/sync/MainEntry.java
index 69f61e4..dcd58d1 100644
--- a/syncronizer/src/org/sync/MainEntry.java
+++ b/syncronizer/src/org/sync/MainEntry.java
@@ -1,229 +1,234 @@
/*****************************************************************************
... | false | true | public static void main(String[] args) {
CmdLineParser parser = new CmdLineParser();
CmdLineParser.Option selectHost = parser.addStringOption('h', "host");
CmdLineParser.Option selectPort = parser.addIntegerOption('P', "port");
CmdLineParser.Option selectProject = parser.addStringOption('p', "project");
CmdL... | public static void main(String[] args) {
CmdLineParser parser = new CmdLineParser();
CmdLineParser.Option selectHost = parser.addStringOption('h', "host");
CmdLineParser.Option selectPort = parser.addIntegerOption('P', "port");
CmdLineParser.Option selectProject = parser.addStringOption('p', "project");
CmdL... |
diff --git a/src/main/java/pl/psnc/dl/wf4ever/rosrs/ZippedResearchObjectResource.java b/src/main/java/pl/psnc/dl/wf4ever/rosrs/ZippedResearchObjectResource.java
index 30dafcc5..d867bf68 100644
--- a/src/main/java/pl/psnc/dl/wf4ever/rosrs/ZippedResearchObjectResource.java
+++ b/src/main/java/pl/psnc/dl/wf4ever/rosrs/Zip... | true | true | public Response getZippedRO(@PathParam("ro_id") String researchObjectId)
throws DigitalLibraryException, NotFoundException {
URI uri = uriInfo.getAbsolutePath().resolve("../../ROs/" + researchObjectId);
ResearchObject researchObject = ResearchObject.findByUri(uri);
if (researchOb... | public Response getZippedRO(@PathParam("ro_id") String researchObjectId)
throws DigitalLibraryException, NotFoundException {
URI uri = URI.create(uriInfo.getAbsolutePath().toString().replaceFirst("zippedROs", "ROs"));
ResearchObject researchObject = ResearchObject.findByUri(uri);
... |
diff --git a/src/test/java/org/encog/neural/activation/TestActivationGaussian.java b/src/test/java/org/encog/neural/activation/TestActivationGaussian.java
index 4a30070ed..3fa23de44 100644
--- a/src/test/java/org/encog/neural/activation/TestActivationGaussian.java
+++ b/src/test/java/org/encog/neural/activation/TestAct... | true | true | public void testGaussian() throws Throwable
{
ActivationGaussian activation = new ActivationGaussian(0.0,1.0);
Assert.assertFalse(activation.hasDerivative());
ActivationGaussian clone = (ActivationGaussian)activation.clone();
Assert.assertNotNull(clone);
double[] input = { 0.0 };
activation.acti... | public void testGaussian() throws Throwable
{
ActivationGaussian activation = new ActivationGaussian(0.0,1.0);
Assert.assertFalse(!activation.hasDerivative());
ActivationGaussian clone = (ActivationGaussian)activation.clone();
Assert.assertNotNull(clone);
double[] input = { 0.0 };
activation.act... |
diff --git a/filters/net.sf.okapi.filters.rtf/src/net/sf/okapi/filters/rtf/RTFFilter.java b/filters/net.sf.okapi.filters.rtf/src/net/sf/okapi/filters/rtf/RTFFilter.java
index 8443ee5f1..0a6a3f02d 100644
--- a/filters/net.sf.okapi.filters.rtf/src/net/sf/okapi/filters/rtf/RTFFilter.java
+++ b/filters/net.sf.okapi.filters... | false | true | public boolean getSegment (TextUnit tu) {
int nState = 0;
String sTmp = "";
String sCode = "";
int nGrp = 0;
int nStyle = 0;
int nCode = 0;
TextFragment srcFrag = tu.setSourceContent(new TextFragment());
TextFragment trgFrag = new TextFragment();
TextFragment currentFrag = null;
while ( true ) ... | public boolean getSegment (TextUnit tu) {
int nState = 0;
String sTmp = "";
String sCode = "";
int nGrp = 0;
int nStyle = 0;
int nCode = 0;
TextFragment srcFrag = tu.setSourceContent(new TextFragment());
TextFragment trgFrag = new TextFragment();
TextFragment currentFrag = null;
while ( true ) ... |
diff --git a/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/internal/properties/tabbed/ReviewExtraTabPropertySection.java b/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/internal/properties/tabbed/ReviewExtraTabPropertySection.java
index 7b43f8f..730b309 100644
--- a/org.e... | false | true | public void createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage) {
super.createControls(parent.getParent(), aTabbedPropertySheetPage);
final TabbedPropertySheetWidgetFactory widgetFactory = aTabbedPropertySheetPage.getWidgetFactory();
FormData data = null;
final Composite mainFor... | public void createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage) {
super.createControls(parent.getParent(), aTabbedPropertySheetPage);
final TabbedPropertySheetWidgetFactory widgetFactory = aTabbedPropertySheetPage.getWidgetFactory();
FormData data = null;
final Composite mainFor... |
diff --git a/src/java/plantgame/models/Store.java b/src/java/plantgame/models/Store.java
index 3a2deef..de95b6e 100644
--- a/src/java/plantgame/models/Store.java
+++ b/src/java/plantgame/models/Store.java
@@ -1,211 +1,211 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the edit... | false | true | public synchronized String purchaseItems(int[] selectedItems, User user){
//DEBUG
System.out.println("Store User's name is "+user.getUserName());
//DEBUG
if (user.getItems() == null){
System.out.println("Store the User's items are null");
}
else{
for (GameItemsEnum item :... | public synchronized String purchaseItems(int[] selectedItems, User user){
//DEBUG
System.out.println("Store User's name is "+user.getUserName());
//DEBUG
if (user.getItems() == null){
System.out.println("Store the User's items are null");
}
else{
for (GameItemsEnum item :... |
diff --git a/src/main/java/com/steamedpears/comp3004/models/Card.java b/src/main/java/com/steamedpears/comp3004/models/Card.java
index b000552..fa002c2 100644
--- a/src/main/java/com/steamedpears/comp3004/models/Card.java
+++ b/src/main/java/com/steamedpears/comp3004/models/Card.java
@@ -1,151 +1,151 @@
package com.st... | false | true | public Card(JsonObject obj){
this.name = obj.has(PROP_CARD_NAME) ? obj.getAsJsonPrimitive(PROP_CARD_NAME).getAsString() : "";
this.color = obj.has(PROP_CARD_COLOR) ? obj.getAsJsonPrimitive(PROP_CARD_COLOR).getAsString() : "";
this.cost = convertJSONToAssetMap(obj, PROP_CARD_COST);
th... | public Card(JsonObject obj){
this.name = obj.has(PROP_CARD_NAME) ? obj.getAsJsonPrimitive(PROP_CARD_NAME).getAsString() : "";
this.color = obj.has(PROP_CARD_COLOR) ? obj.getAsJsonPrimitive(PROP_CARD_COLOR).getAsString() : "";
this.cost = convertJSONToAssetMap(obj, PROP_CARD_COST);
th... |
diff --git a/solr/core/src/java/org/apache/solr/schema/IndexSchema.java b/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
index 55276a2863..6f778cbd0f 100644
--- a/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
+++ b/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
@@ -1,1464 +1,1468 @@... | false | true | protected void readSchema(InputSource is) {
log.info("Reading Solr Schema from " + resourceName);
try {
// pass the config resource loader to avoid building an empty one for no reason:
// in the current case though, the stream is valid so we wont load the resource by name
Config schemaConf ... | protected void readSchema(InputSource is) {
log.info("Reading Solr Schema from " + resourceName);
try {
// pass the config resource loader to avoid building an empty one for no reason:
// in the current case though, the stream is valid so we wont load the resource by name
Config schemaConf ... |
diff --git a/src/main/java/nl/surfnet/bod/web/manager/DashboardController.java b/src/main/java/nl/surfnet/bod/web/manager/DashboardController.java
index bfc9fbe46..055f88864 100644
--- a/src/main/java/nl/surfnet/bod/web/manager/DashboardController.java
+++ b/src/main/java/nl/surfnet/bod/web/manager/DashboardController.... | true | true | public String index(RedirectAttributes model) {
Collection<PhysicalResourceGroup> groups = physicalResourceGroupService
.findAllForManager(Security.getUserDetails());
for (PhysicalResourceGroup group : groups) {
if (!group.isActive()) {
WebUtils.addInfoMessage(model, createNewActivatio... | public String index(RedirectAttributes model) {
Collection<PhysicalResourceGroup> groups = physicalResourceGroupService
.findAllForManager(Security.getUserDetails());
for (PhysicalResourceGroup group : groups) {
if (!group.isActive()) {
WebUtils.addInfoMessage(model, createNewActivatio... |
diff --git a/core/src/main/java/hudson/node_monitors/AbstractNodeMonitorDescriptor.java b/core/src/main/java/hudson/node_monitors/AbstractNodeMonitorDescriptor.java
index b10a1d9f5..5bb2f2787 100644
--- a/core/src/main/java/hudson/node_monitors/AbstractNodeMonitorDescriptor.java
+++ b/core/src/main/java/hudson/node_mon... | true | true | public void run() {
try {
long startTime = System.currentTimeMillis();
for( Computer c : Hudson.getInstance().getComputers() ) {
try {
if(c.isOffline())
data.put(c,null);
... | public void run() {
try {
long startTime = System.currentTimeMillis();
for( Computer c : Hudson.getInstance().getComputers() ) {
try {
if(c.isOffline())
data.put(c,null);
... |
diff --git a/agile-apps/agile-app-docs/src/main/java/org/headsupdev/agile/app/docs/DocumentRenderer.java b/agile-apps/agile-app-docs/src/main/java/org/headsupdev/agile/app/docs/DocumentRenderer.java
index 759f5e41..8dca29ba 100644
--- a/agile-apps/agile-app-docs/src/main/java/org/headsupdev/agile/app/docs/DocumentRende... | true | true | public static String markupLinks( String in, final Project project,
final Map<String,LinkProvider> linkProviders )
{
try
{
final StringWriter text = new StringWriter();
HTMLEditorKit.ParserCallback callback = new HTMLEditorKit.Parser... | public static String markupLinks( String in, final Project project,
final Map<String,LinkProvider> linkProviders )
{
try
{
final StringWriter text = new StringWriter();
HTMLEditorKit.ParserCallback callback = new HTMLEditorKit.Parser... |
diff --git a/org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/init/ResourceDatabasePopulator.java b/org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/init/ResourceDatabasePopulator.java
index 157794a02..2e8e90702 100644
--- a/org.springframework.jdbc/src/main/java/org/... | true | true | private void executeSqlScript(Connection connection, EncodedResource resource, boolean continueOnError, boolean ignoreFailedDrops)
throws SQLException {
if (logger.isInfoEnabled()) {
logger.info("Executing SQL script from " + resource);
}
long startTime = System.currentTimeMillis();
List<String> stateme... | private void executeSqlScript(Connection connection, EncodedResource resource, boolean continueOnError, boolean ignoreFailedDrops)
throws SQLException {
if (logger.isInfoEnabled()) {
logger.info("Executing SQL script from " + resource);
}
long startTime = System.currentTimeMillis();
List<String> stateme... |
diff --git a/src/java/org/lwjgl/test/opengl/Game.java b/src/java/org/lwjgl/test/opengl/Game.java
index 0f6c9658..3cdbdfa1 100644
--- a/src/java/org/lwjgl/test/opengl/Game.java
+++ b/src/java/org/lwjgl/test/opengl/Game.java
@@ -1,193 +1,193 @@
/*
* Copyright (c) 2002 Lightweight Java Game Library Project
* All righ... | true | true | private static void mainLoop() {
angle += 1f;
if (angle > 360.0f)
angle = 0.0f;
Mouse.poll();
if (Mouse.dx != 0 || Mouse.dy != 0 || Mouse.dz != 0)
System.out.println("Mouse moved " + Mouse.dx + " " + Mouse.dy + " " + Mouse.dz);
for (int i = 0; i ... | private static void mainLoop() {
angle += 1f;
if (angle > 360.0f)
angle = 0.0f;
Mouse.poll();
if (Mouse.dx != 0 || Mouse.dy != 0 || Mouse.dwheel != 0)
System.out.println("Mouse moved " + Mouse.dx + " " + Mouse.dy + " " + Mouse.dwheel);
for (int i... |
diff --git a/client/Android/FreeRDPCore/src/com/freerdp/freerdpcore/services/BookmarkDB.java b/client/Android/FreeRDPCore/src/com/freerdp/freerdpcore/services/BookmarkDB.java
index 1ea56d1f9..5d10d7048 100644
--- a/client/Android/FreeRDPCore/src/com/freerdp/freerdpcore/services/BookmarkDB.java
+++ b/client/Android/Free... | false | true | public void onCreate(SQLiteDatabase db)
{
String sqlScreenSettings =
"CREATE TABLE tbl_screen_settings ("
+ ID + " INTEGER PRIMARY KEY, "
+ "colors INTEGER DEFAULT 16, "
+ "resolution INTEGER DEFAULT 0, "
+ "width, "
+ "height);";
db.execSQL(sqlScreenSettings);
String sqlPerformanceFlags =... | public void onCreate(SQLiteDatabase db)
{
String sqlScreenSettings =
"CREATE TABLE tbl_screen_settings ("
+ ID + " INTEGER PRIMARY KEY, "
+ "colors INTEGER DEFAULT 16, "
+ "resolution INTEGER DEFAULT 0, "
+ "width, "
+ "height);";
db.execSQL(sqlScreenSettings);
String sqlPerformanceFlags =... |
diff --git a/motech-mobile-omp/src/main/java/com/dreamoval/motech/omp/manager/orserve/ORServeGatewayMessageHandlerImpl.java b/motech-mobile-omp/src/main/java/com/dreamoval/motech/omp/manager/orserve/ORServeGatewayMessageHandlerImpl.java
index 225050d6..826fdc5b 100644
--- a/motech-mobile-omp/src/main/java/com/dreamoval... | true | true | public Set<GatewayResponse> parseMessageResponse(GatewayRequest message, String gatewayResponse, MotechContext context) {
logger.info("Parsing message gateway response");
logger.debug(gatewayResponse);
if(message == null)
return null;
if(gatewayResponse.isEmpty(... | public Set<GatewayResponse> parseMessageResponse(GatewayRequest message, String gatewayResponse, MotechContext context) {
logger.info("Parsing message gateway response");
logger.debug(gatewayResponse);
if(message == null)
return null;
if(gatewayResponse.isEmpty(... |
diff --git a/src/org/ohmage/dao/CampaignCreationDao.java b/src/org/ohmage/dao/CampaignCreationDao.java
index 0ce2d762..5f4bcfab 100644
--- a/src/org/ohmage/dao/CampaignCreationDao.java
+++ b/src/org/ohmage/dao/CampaignCreationDao.java
@@ -1,458 +1,458 @@
/***************************************************************... | true | true | public void execute(AwRequest awRequest) {
_logger.info("Inserting campaign into the database.");
// Note: This function is a bear, but I tried to document it well and
// give it a nice flow. May need refactoring if major changes are to
// be made.
String campaignXml;
try {
campaignXml = (String) ... | public void execute(AwRequest awRequest) {
_logger.info("Inserting campaign into the database.");
// Note: This function is a bear, but I tried to document it well and
// give it a nice flow. May need refactoring if major changes are to
// be made.
String campaignXml;
try {
campaignXml = (String) ... |
diff --git a/src/org/mozilla/javascript/regexp/RegExpImpl.java b/src/org/mozilla/javascript/regexp/RegExpImpl.java
index b1a5e4ff..cb9030f9 100644
--- a/src/org/mozilla/javascript/regexp/RegExpImpl.java
+++ b/src/org/mozilla/javascript/regexp/RegExpImpl.java
@@ -1,567 +1,569 @@
/* -*- Mode: java; tab-width: 8; indent-... | false | true | static SubString interpretDollar(Context cx, RegExpImpl res,
char[] da, int dp, int bp, int[] skip)
{
char[] ca;
int cp;
char dc;
int num, tmp;
/* Allow a real backslash (literal "\\") to escape "$1" etc. */
if (da[dp] != '$'... | static SubString interpretDollar(Context cx, RegExpImpl res,
char[] da, int dp, int bp, int[] skip)
{
char[] ca;
int cp;
char dc;
int num, tmp;
/* Allow a real backslash (literal "\\") to escape "$1" etc. */
if (da[dp] != '$'... |
diff --git a/app/beans/ProcExecutorEventListener.java b/app/beans/ProcExecutorEventListener.java
index f7c5f7c..80716f9 100644
--- a/app/beans/ProcExecutorEventListener.java
+++ b/app/beans/ProcExecutorEventListener.java
@@ -1,61 +1,61 @@
/*******************************************************************************... | true | true | public void writeEvent(int b) {
if (this.sb == null) {
sb = ( (StringBuilder) Cache.get( String.format( keyFormat, serverNodeId) ) );
}
sb.append(b);
}
| public void writeEvent(int b) {
if (this.sb == null) {
sb = ( (StringBuilder) Cache.get( String.format( keyFormat, serverNodeId) ) );
}
sb.append((byte) b);
}
|
diff --git a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/data/target/MethodInfo.java b/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/data/target/MethodInfo.java
index bf720fdb..95fc51c4 100644
--- a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/data/target/MethodInfo.java
+++ b/main/src/jp/ac/osaka_u/ist/sel/me... | false | true | public final String getMeasuredUnitName() {
final StringBuilder sb = new StringBuilder();
final String fullQualifiedName = this.getOwnerClass().getFullQualifiedName(
Settings.getInstance().getLanguage().getNamespaceDelimiter());
sb.append(fullQualifiedName);
sb.app... | public final String getMeasuredUnitName() {
final StringBuilder sb = new StringBuilder();
final String fullQualifiedName = this.getOwnerClass().getFullQualifiedName(
Settings.getInstance().getLanguage().getNamespaceDelimiter());
sb.append(fullQualifiedName);
sb.app... |
diff --git a/JSTUN.java b/JSTUN.java
index 3ec613b..7e1a839 100644
--- a/JSTUN.java
+++ b/JSTUN.java
@@ -1,280 +1,281 @@
package plugins.JSTUN;
import java.lang.reflect.Method;
import java.net.BindException;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import ... | true | true | DetectedIP[] runTest(InetAddress iaddress) {
this.hasRunTestBeenCalled = true;
Random r = new Random(); // FIXME use something safer?
Vector v = new Vector(publicSTUNServers.length);
Vector out = new Vector();
int countLikely = 0;
int countUnlikely = 0;
for(int i=0;i<publicSTUNServers.length;i++)
v.ad... | DetectedIP[] runTest(InetAddress iaddress) {
this.hasRunTestBeenCalled = true;
Random r = new Random(); // FIXME use something safer?
Vector v = new Vector(publicSTUNServers.length);
Vector out = new Vector();
int countLikely = 0;
int countUnlikely = 0;
for(int i=0;i<publicSTUNServers.length;i++)
v.ad... |
diff --git a/src/it/wolfed/operation/MergeGraphsOperation.java b/src/it/wolfed/operation/MergeGraphsOperation.java
index 4cc2508..b0853a5 100644
--- a/src/it/wolfed/operation/MergeGraphsOperation.java
+++ b/src/it/wolfed/operation/MergeGraphsOperation.java
@@ -1,77 +1,79 @@
package it.wolfed.operation;
import com... | false | true | void process()
{
mxCell clone = null;
Object parent = operationGraph.getDefaultParent();
for (int i = 0; i < inputGraphs.size(); i++)
{
PetriNetGraph net = inputGraphs.get(i);
for (Object cellObj : net.getChildCells(net.getDefaultParent()))
... | void process()
{
mxCell clone = null;
Object parent = operationGraph.getDefaultParent();
for (int i = 0; i < inputGraphs.size(); i++)
{
PetriNetGraph net = inputGraphs.get(i);
for (Object cellObj : net.getChildCells(net.getDefaultParent()))
... |
diff --git a/EAPLI/src/eapli/NewClass.java b/EAPLI/src/eapli/NewClass.java
index 6e73579..d20c215 100644
--- a/EAPLI/src/eapli/NewClass.java
+++ b/EAPLI/src/eapli/NewClass.java
@@ -1,31 +1,31 @@
/*
* NewClass
* 08-Mar-2013
*
* funcoes:
* main
*
*
* Comentários:
* ... | true | true | public static void main(String[] args) {
for (int i = 0; i < 10; i++){
System.out.println("--->"+i);
}
}
| public static void main(String[] args) {
for (int i = 0; i < 10; i++){
System.out.println("--->"+(1+i));
}
}
|
diff --git a/src/com/mahn42/anhalter42/creator/CommandWorldEditFlood.java b/src/com/mahn42/anhalter42/creator/CommandWorldEditFlood.java
index 352d077..becfbde 100644
--- a/src/com/mahn42/anhalter42/creator/CommandWorldEditFlood.java
+++ b/src/com/mahn42/anhalter42/creator/CommandWorldEditFlood.java
@@ -1,78 +1,83 @@
... | true | true | public boolean onCommand(CommandSender aCommandSender, Command aCommand, String aString, String[] aStrings) {
if (aCommandSender instanceof Player) {
if (aStrings.length > 1) {
ArrayList<Material> lTrans = new ArrayList<Material>();
if (aStrings.length > 2) {
... | public boolean onCommand(CommandSender aCommandSender, Command aCommand, String aString, String[] aStrings) {
if (aCommandSender instanceof Player) {
if (aStrings.length > 1) {
ArrayList<Material> lTrans = new ArrayList<Material>();
if (aStrings.length > 2) {
... |
diff --git a/src/org/geworkbench/engine/skin/Skin.java b/src/org/geworkbench/engine/skin/Skin.java
index d630b873..711786e3 100755
--- a/src/org/geworkbench/engine/skin/Skin.java
+++ b/src/org/geworkbench/engine/skin/Skin.java
@@ -1,830 +1,831 @@
package org.geworkbench.engine.skin;
import java.awt.BorderLayout;
i... | false | true | private void jbInit() throws Exception {
contentPane = (JPanel) this.getContentPane();
this.setIconImage(Icons.MICROARRAYS_ICON.getImage());
contentPane.setLayout(borderLayout1);
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
int guiHeight = 0;
int guiWi... | private void jbInit() throws Exception {
contentPane = (JPanel) this.getContentPane();
this.setIconImage(Icons.MICROARRAYS_ICON.getImage());
contentPane.setLayout(borderLayout1);
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
int guiHeight = 0;
int guiWi... |
diff --git a/Bending2/src/tools/ConfigManager.java b/Bending2/src/tools/ConfigManager.java
index db15f6f..8079cb2 100644
--- a/Bending2/src/tools/ConfigManager.java
+++ b/Bending2/src/tools/ConfigManager.java
@@ -1,567 +1,567 @@
package tools;
import java.io.File;
import java.io.IOException;
import java.util.Arra... | true | true | public void load(File file) {
FileConfiguration config = new YamlConfiguration();
try {
if (file.exists())
config.load(file);
} catch (IOException e) {
e.printStackTrace();
} catch (InvalidConfigurationException e) {
e.printStackTrace();
}
config.setDefaults(getDefaults());
colors = config.... | public void load(File file) {
FileConfiguration config = new YamlConfiguration();
try {
if (file.exists())
config.load(file);
} catch (IOException e) {
e.printStackTrace();
} catch (InvalidConfigurationException e) {
e.printStackTrace();
}
config.setDefaults(getDefaults());
colors = config.... |
diff --git a/GAE/src/org/waterforpeople/mapping/app/web/TestHarnessServlet.java b/GAE/src/org/waterforpeople/mapping/app/web/TestHarnessServlet.java
index 4a27e5062..b3135512f 100644
--- a/GAE/src/org/waterforpeople/mapping/app/web/TestHarnessServlet.java
+++ b/GAE/src/org/waterforpeople/mapping/app/web/TestHarnessServ... | false | true | public void doGet(HttpServletRequest req, HttpServletResponse resp) {
String action = req.getParameter("action");
if ("testBaseDomain".equals(action)) {
SurveyDAO surveyDAO = new SurveyDAO();
surveyDAO.test();
String outString = surveyDAO.getForTest();
BaseDAO<AccessPoint> pointDao = new BaseDAO<Access... | public void doGet(HttpServletRequest req, HttpServletResponse resp) {
String action = req.getParameter("action");
if ("testBaseDomain".equals(action)) {
SurveyDAO surveyDAO = new SurveyDAO();
surveyDAO.test();
String outString = surveyDAO.getForTest();
BaseDAO<AccessPoint> pointDao = new BaseDAO<Access... |
diff --git a/src/main/java/org/spout/vanilla/command/AdministrationCommands.java b/src/main/java/org/spout/vanilla/command/AdministrationCommands.java
index 05b641ae..27445018 100644
--- a/src/main/java/org/spout/vanilla/command/AdministrationCommands.java
+++ b/src/main/java/org/spout/vanilla/command/AdministrationCom... | true | true | public void gamemode(CommandContext args, CommandSource source) throws CommandException {
// If source is player
if (args.length() == 1) {
if (source instanceof Player) {
Player sender = (Player) source;
if (this.isInteger(args.getString(0))) {
int mode = args.getInteger(0);
switch (mode) {
... | public void gamemode(CommandContext args, CommandSource source) throws CommandException {
// If source is player
if (args.length() == 1) {
if (source instanceof Player) {
Player sender = (Player) source;
if (this.isInteger(args.getString(0))) {
int mode = args.getInteger(0);
switch (mode) {
... |
diff --git a/src/main/java/org/delegator/engine/LoggedUserBean.java b/src/main/java/org/delegator/engine/LoggedUserBean.java
index 7e41109..6ef338a 100644
--- a/src/main/java/org/delegator/engine/LoggedUserBean.java
+++ b/src/main/java/org/delegator/engine/LoggedUserBean.java
@@ -1,50 +1,51 @@
package org.delegator.en... | false | true | public int isRegistered(String username, String password) {
try {
Session session = HibernateUtils.getSessionFactory().getCurrentSession();
emp = (Employee)session
.createQuery(
"from Employee where username = :username and password = :password")
.setParameter("username", username)
.setPa... | public int isRegistered(String username, String password) {
try {
Session session = HibernateUtils.getSessionFactory().getCurrentSession();
session.beginTransaction();
emp = (Employee)session
.createQuery(
"from Employee where userName = :u and password = :p")
.setParameter("u", username)
... |
diff --git a/addon/src/test/java/com/vaadin/addon/charts/demoandtestapp/lineandscatter/SplineWithSymbols.java b/addon/src/test/java/com/vaadin/addon/charts/demoandtestapp/lineandscatter/SplineWithSymbols.java
index d400f412..03fdcb88 100644
--- a/addon/src/test/java/com/vaadin/addon/charts/demoandtestapp/lineandscatter... | false | true | protected Component getChart() {
Chart chart = new Chart();
chart.setHeight("450px");
chart.setWidth("100%");
Configuration configuration = new Configuration();
configuration.getChart().setType(ChartType.SPLINE);
configuration.getTitle().setText("Monthly Average Tem... | protected Component getChart() {
Chart chart = new Chart();
chart.setHeight("450px");
chart.setWidth("100%");
Configuration configuration = new Configuration();
configuration.getChart().setType(ChartType.SPLINE);
configuration.getTitle().setText("Monthly Average Tem... |
diff --git a/src/core/schedule/DailySchedule.java b/src/core/schedule/DailySchedule.java
index 8201150..910ddc8 100644
--- a/src/core/schedule/DailySchedule.java
+++ b/src/core/schedule/DailySchedule.java
@@ -1,158 +1,159 @@
package core.schedule;
import core.schedule.task.Task;
import core.utils.Hour;
import jav... | true | true | private boolean isPeriodAvailable( Hour init, Hour end ) {
boolean res = true;
//recorremos las tasks
for ( Task t : this.tasks ) {
//comprobamos si la task transcurre DURANTE el horario inicial
if ( t.isTranscurringAt( init ) )
res = false;
... | private boolean isPeriodAvailable( Hour init, Hour end ) {
boolean res = true;
//recorremos las tasks
for ( Task t : this.tasks ) {
//comprobamos si la task transcurre DURANTE el horario inicial
if ( t.isTranscurringAt( init ) )
res = false;
... |
diff --git a/src/main/java/org/osiam/resources/scim/User.java b/src/main/java/org/osiam/resources/scim/User.java
index fdcd34b..5fe296b 100644
--- a/src/main/java/org/osiam/resources/scim/User.java
+++ b/src/main/java/org/osiam/resources/scim/User.java
@@ -1,458 +1,458 @@
/*
* Copyright (C) 2013 tarent AG
*
* Pe... | true | true | public static User generateForOuput(User user) {
if (user == null) {
return null;
}
Builder builder = new Builder(user.userName);
builder.id = user.getId();
builder.meta = user.getMeta();
builder.externalId = user.getExterna... | public static User generateForOutput(User user) {
if (user == null) {
return null;
}
Builder builder = new Builder(user.userName);
builder.id = user.getId();
builder.meta = user.getMeta();
builder.externalId = user.getExtern... |
diff --git a/modules/auth/org/molgenis/auth/ui/form/DatabaseAuthenticationForm.java b/modules/auth/org/molgenis/auth/ui/form/DatabaseAuthenticationForm.java
index 1368891dd..68bfda9ec 100644
--- a/modules/auth/org/molgenis/auth/ui/form/DatabaseAuthenticationForm.java
+++ b/modules/auth/org/molgenis/auth/ui/form/Databas... | false | true | public DatabaseAuthenticationForm()
{
StringInput usernameInput = new StringInput("username");
usernameInput.setNillable(false);
this.add(usernameInput);
PasswordInput passwordInput = new PasswordInput("password");
passwordInput.setNillable(false);
this.add(passwordInput);
ActionInput loginInput ... | public DatabaseAuthenticationForm()
{
StringInput usernameInput = new StringInput("username");
usernameInput.setNillable(false);
usernameInput.setDescription("The name of a registered user.");
this.add(usernameInput);
PasswordInput passwordInput = new PasswordInput("password");
passwordInput.setNillab... |
diff --git a/h2/src/main/org/h2/server/web/DbContextRule.java b/h2/src/main/org/h2/server/web/DbContextRule.java
index 84675b910..71624689d 100644
--- a/h2/src/main/org/h2/server/web/DbContextRule.java
+++ b/h2/src/main/org/h2/server/web/DbContextRule.java
@@ -1,481 +1,480 @@
/*
* Copyright 2004-2010 H2 Group. Multi... | true | true | private void addColumn(Sentence sentence) {
String query = sentence.getQuery();
String tableName = query;
String columnPattern = "";
if (query.trim().length() == 0) {
tableName = null;
} else {
tableName = StringUtils.toUpperEnglish(query.trim());
... | private void addColumn(Sentence sentence) {
String query = sentence.getQuery();
String tableName = query;
String columnPattern = "";
if (query.trim().length() == 0) {
tableName = null;
} else {
tableName = StringUtils.toUpperEnglish(query.trim());
... |
diff --git a/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/internal/provisional/commons/ui/DatePicker.java b/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/internal/provisional/commons/ui/DatePicker.java
index 206bb9e7..b90748c3 100644
--- a/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/internal/provision... | false | true | private void initialize(int style) {
GridLayout gridLayout = new GridLayout(3, false);
gridLayout.horizontalSpacing = 3;
gridLayout.verticalSpacing = 0;
gridLayout.marginWidth = 0;
gridLayout.marginHeight = 0;
this.setLayout(gridLayout);
dateText = new Text(this, style);
GridData dateTextGridData = ne... | private void initialize(int style) {
GridLayout gridLayout = new GridLayout(3, false);
gridLayout.horizontalSpacing = 0;
gridLayout.verticalSpacing = 0;
gridLayout.marginWidth = 0;
gridLayout.marginHeight = 0;
this.setLayout(gridLayout);
dateText = new Text(this, style);
GridData dateTextGridData = ne... |
diff --git a/mail/src/main/java/com/sun/mail/imap/protocol/BODYSTRUCTURE.java b/mail/src/main/java/com/sun/mail/imap/protocol/BODYSTRUCTURE.java
index 0b698d4..119149c 100644
--- a/mail/src/main/java/com/sun/mail/imap/protocol/BODYSTRUCTURE.java
+++ b/mail/src/main/java/com/sun/mail/imap/protocol/BODYSTRUCTURE.java
@@ ... | true | true | public BODYSTRUCTURE(FetchResponse r) throws ParsingException {
if (parseDebug)
System.out.println("DEBUG IMAP: parsing BODYSTRUCTURE");
msgno = r.getNumber();
if (parseDebug)
System.out.println("DEBUG IMAP: msgno " + msgno);
r.skipSpaces();
if (r.readByte() != '(')
throw new ParsingException(... | public BODYSTRUCTURE(FetchResponse r) throws ParsingException {
if (parseDebug)
System.out.println("DEBUG IMAP: parsing BODYSTRUCTURE");
msgno = r.getNumber();
if (parseDebug)
System.out.println("DEBUG IMAP: msgno " + msgno);
r.skipSpaces();
if (r.readByte() != '(')
throw new ParsingException(... |
diff --git a/beam-visat-rcp/src/main/java/org/esa/beam/visat/toolviews/spectrum/SpectrumToolView.java b/beam-visat-rcp/src/main/java/org/esa/beam/visat/toolviews/spectrum/SpectrumToolView.java
index 90cfb234e..e0c9acc78 100644
--- a/beam-visat-rcp/src/main/java/org/esa/beam/visat/toolviews/spectrum/SpectrumToolView.jav... | true | true | public JComponent createControl() {
filterButton = ToolButtonFactory.createButton(UIUtils.loadImageIcon("icons/Filter24.gif"), false);
filterButton.setName("filterButton");
filterButton.setEnabled(false);
filterButton.addActionListener(new ActionListener() {
public void a... | public JComponent createControl() {
filterButton = ToolButtonFactory.createButton(UIUtils.loadImageIcon("icons/Filter24.gif"), false);
filterButton.setName("filterButton");
filterButton.setEnabled(false);
filterButton.addActionListener(new ActionListener() {
public void a... |
diff --git a/src/to/joe/util/Packeteer/Packeteer20NamedEntitySpawn.java b/src/to/joe/util/Packeteer/Packeteer20NamedEntitySpawn.java
index b8517bb..f30a5dc 100644
--- a/src/to/joe/util/Packeteer/Packeteer20NamedEntitySpawn.java
+++ b/src/to/joe/util/Packeteer/Packeteer20NamedEntitySpawn.java
@@ -1,33 +1,33 @@
package ... | true | true | public boolean checkPacket(Player player, MCPacket packet) {
final Packet20NamedEntitySpawn packet20 = (Packet20NamedEntitySpawn) ((MCCraftPacket) packet).getPacket();
if (this.vanish.isEIDVanished(packet20.a)) {
packet20.b = ChatColor.DARK_AQUA + packet20.b;
if(packet20.b.le... | public boolean checkPacket(Player player, MCPacket packet) {
final Packet20NamedEntitySpawn packet20 = (Packet20NamedEntitySpawn) ((MCCraftPacket) packet).getPacket();
if (this.vanish.isEIDVanished(packet20.a)) {
packet20.b = ChatColor.DARK_AQUA + packet20.b;
if(packet20.b.le... |
diff --git a/src/com/android/shakemusic/Instrument.java b/src/com/android/shakemusic/Instrument.java
index 2b4c957..5a2ccb6 100644
--- a/src/com/android/shakemusic/Instrument.java
+++ b/src/com/android/shakemusic/Instrument.java
@@ -1,16 +1,16 @@
package com.android.shakemusic;
public interface Instrument {
fin... | true | true | public short[] Note(int freq);
| public byte[] Note(int freq);
|
diff --git a/src_new/org/argouml/ui/ProjectBrowser.java b/src_new/org/argouml/ui/ProjectBrowser.java
index ad2c97e..8b7e23c 100644
--- a/src_new/org/argouml/ui/ProjectBrowser.java
+++ b/src_new/org/argouml/ui/ProjectBrowser.java
@@ -1,823 +1,824 @@
// Copyright (c) 1996-2001 The Regents of the University of California... | true | true | protected void initMenus() {
KeyStroke ctrlN = Localizer.getShortcut("CoreMenu","Shortcut_New");
KeyStroke ctrlO = Localizer.getShortcut("CoreMenu","Shortcut_Open");
KeyStroke ctrlS = Localizer.getShortcut("CoreMenu","Shortcut_Save");
KeyStroke ctrlP = Localizer.getShortcut("CoreMenu","Shortcut_Print"... | protected void initMenus() {
KeyStroke ctrlN = Localizer.getShortcut("CoreMenu","Shortcut_New");
KeyStroke ctrlO = Localizer.getShortcut("CoreMenu","Shortcut_Open");
KeyStroke ctrlS = Localizer.getShortcut("CoreMenu","Shortcut_Save");
KeyStroke ctrlP = Localizer.getShortcut("CoreMenu","Shortcut_Print"... |
diff --git a/tests/frontend/org/voltdb/planner/plannerTester.java b/tests/frontend/org/voltdb/planner/plannerTester.java
index 9edd47c4e..b7479c3e6 100644
--- a/tests/frontend/org/voltdb/planner/plannerTester.java
+++ b/tests/frontend/org/voltdb/planner/plannerTester.java
@@ -1,837 +1,841 @@
/* This file is part of Vo... | false | true | public static void main( String[] args ) {
int size = args.length;
for( int i=0; i<size; i++ ) {
String str = args[i];
if( str.startsWith("-C=")) {
String subStr = str.split("=")[1];
String [] configs = subStr.split(",");
for( S... | public static void main( String[] args ) {
int size = args.length;
for( int i=0; i<size; i++ ) {
String str = args[i];
if( str.startsWith("-C=")) {
String subStr = str.split("=")[1];
String [] configs = subStr.split(",");
for( S... |
diff --git a/project-set/external/service-clients/rackspace-auth-v1.1/src/main/java/com/rackspace/auth/v1_1/AuthenticationServiceClient.java b/project-set/external/service-clients/rackspace-auth-v1.1/src/main/java/com/rackspace/auth/v1_1/AuthenticationServiceClient.java
index a5c8fb92dc..07cfa31085 100644
--- a/project... | true | true | public CachableTokenInfo validateToken(ExtractorResult<String> account, String token) {
CachableTokenInfo tokenInfo = authenticationCache.tokenIsCached(account.getResult(), token);
if (token == null) {
final ServiceClientResponse<FullToken> validateTokenMethod = serviceClient.get(targe... | public CachableTokenInfo validateToken(ExtractorResult<String> account, String token) {
CachableTokenInfo tokenInfo = authenticationCache.tokenIsCached(account.getResult(), token);
if (tokenInfo == null) {
final ServiceClientResponse<FullToken> validateTokenMethod = serviceClient.get(t... |
diff --git a/org.envirocar.app/src/org/envirocar/app/protocol/drivedeck/DriveDeckSportConnector.java b/org.envirocar.app/src/org/envirocar/app/protocol/drivedeck/DriveDeckSportConnector.java
index b917bfe7..0edfa1d8 100644
--- a/org.envirocar.app/src/org/envirocar/app/protocol/drivedeck/DriveDeckSportConnector.java
+++... | true | true | public CommonCommand processResponse(byte[] bytes, int start, int count) {
if (count <= 0) return null;
char type = (char) bytes[start+0];
if (type == CycleCommand.RESPONSE_PREFIX_CHAR) {
if ((char) bytes[start+4] == CycleCommand.TOKEN_SEPARATOR_CHAR) return null;
String pid = new String... | public CommonCommand processResponse(byte[] bytes, int start, int count) {
if (count <= 0) return null;
char type = (char) bytes[start+0];
if (type == CycleCommand.RESPONSE_PREFIX_CHAR) {
if ((char) bytes[start+4] == CycleCommand.TOKEN_SEPARATOR_CHAR) return null;
String pid = new String... |
diff --git a/src/BoardFiller.java b/src/BoardFiller.java
index 66ce177..6530523 100644
--- a/src/BoardFiller.java
+++ b/src/BoardFiller.java
@@ -1,166 +1,166 @@
import java.util.LinkedList;
import java.util.Random;
/**
* Generates a board
* Randomly assigns values, checks they work, reassigns if required
... | true | true | public boolean fillBoard(){
int row, col, square;
int x = 0;
Random r = new Random();
LinkedList<Integer> l = new LinkedList<Integer>();
int counter = 0;
row = 0;
while(row < 9){
counter = 0;
col = 0;
while(col < 9){
square = squareNo(row, col);
// TODO THIS IS A NICE PLACE T... | public boolean fillBoard(){
int row, col, square;
int x = 0;
Random r = new Random();
LinkedList<Integer> l = new LinkedList<Integer>();
int counter = 0;
row = 0;
while(row < 9){
counter = 0;
col = 0;
while(col < 9){
square = squareNo(row, col);
// TODO THIS IS A NICE PLACE T... |
diff --git a/src/java/main/org/strasa/web/uploadstudy/view/model/UploadData.java b/src/java/main/org/strasa/web/uploadstudy/view/model/UploadData.java
index 8bac36e3..88f7cd47 100644
--- a/src/java/main/org/strasa/web/uploadstudy/view/model/UploadData.java
+++ b/src/java/main/org/strasa/web/uploadstudy/view/model/Uploa... | true | true | public boolean validateTab() {
Runtimer timer = new Runtimer();
timer.start();
boolean isRawData = studyType.equalsIgnoreCase("rawdata");
System.out.println("StudyType: " + studyType + " + " + isRawData);
if (txtProgram == null || txtProject == null || txtStudyName == null
|| txtStudyType == null) {
... | public boolean validateTab() {
Runtimer timer = new Runtimer();
timer.start();
boolean isRawData = studyType.equalsIgnoreCase("rawdata");
System.out.println("StudyType: " + studyType + " + " + isRawData);
if (txtProgram == null || txtProject == null || txtStudyName == null
|| txtStudyType == null) {
... |
diff --git a/src/main/java/com/gitblit/wicket/pages/DashboardPage.java b/src/main/java/com/gitblit/wicket/pages/DashboardPage.java
index 66bbf734..5d838391 100644
--- a/src/main/java/com/gitblit/wicket/pages/DashboardPage.java
+++ b/src/main/java/com/gitblit/wicket/pages/DashboardPage.java
@@ -1,441 +1,441 @@
/*
* C... | false | true | private void setup(PageParameters params) {
setupPage("", "");
// check to see if we should display a login message
boolean authenticateView = GitBlit.getBoolean(Keys.web.authenticateViewPages, true);
if (authenticateView && !GitBlitWebSession.get().isLoggedIn()) {
String messageSource = GitBlit.getString(K... | private void setup(PageParameters params) {
setupPage("", "");
// check to see if we should display a login message
boolean authenticateView = GitBlit.getBoolean(Keys.web.authenticateViewPages, true);
if (authenticateView && !GitBlitWebSession.get().isLoggedIn()) {
String messageSource = GitBlit.getString(K... |
diff --git a/CheMet/CheMet-Visualisation/src/main/java/uk/ac/ebi/chemet/render/components/MetaboliteMatchIndication.java b/CheMet/CheMet-Visualisation/src/main/java/uk/ac/ebi/chemet/render/components/MetaboliteMatchIndication.java
index 7abeeb05..66e06cf5 100644
--- a/CheMet/CheMet-Visualisation/src/main/java/uk/ac/ebi... | true | true | public void setFormulaQuality() {
formula.setQuality(MatchIndication.Quality.Bad);
List<MolecularFormula> queryMfs = new ArrayList(query.getAnnotationsExtending(MolecularFormula.class));
List<MolecularFormula> subjectMfs = new ArrayList(query.getAnnotationsExtending(MolecularFormula.class)... | public void setFormulaQuality() {
formula.setQuality(MatchIndication.Quality.Bad);
List<MolecularFormula> queryMfs = new ArrayList(query.getAnnotationsExtending(MolecularFormula.class));
List<MolecularFormula> subjectMfs = new ArrayList(subject.getAnnotationsExtending(MolecularFormula.clas... |
diff --git a/src/gnu/io/RXTXCommDriver.java b/src/gnu/io/RXTXCommDriver.java
index 3615719..fa39cdc 100644
--- a/src/gnu/io/RXTXCommDriver.java
+++ b/src/gnu/io/RXTXCommDriver.java
@@ -1,743 +1,755 @@
/*-------------------------------------------------------------------------
| A wrapper to convert RXTX into Linux ... | true | true | private void registerScannedPorts(int PortType)
{
String[] CandidateDeviceNames;
if (debug)
System.out.println("scanning device directory "+deviceDirectory+" for ports of type "+PortType);
if(osName.equals("Windows CE"))
{
String[] temp =
{ "COM1:", "COM2:","COM3:","COM4:",
"COM5:", "COM6:", "COM7... | private void registerScannedPorts(int PortType)
{
String[] CandidateDeviceNames;
if (debug)
System.out.println("scanning device directory "+deviceDirectory+" for ports of type "+PortType);
if(osName.equals("Windows CE"))
{
String[] temp =
{ "COM1:", "COM2:","COM3:","COM4:",
"COM5:", "COM6:", "COM7... |
diff --git a/pn-dispatcher/src/main/java/info/papyri/dispatch/Reader.java b/pn-dispatcher/src/main/java/info/papyri/dispatch/Reader.java
index 6d6fd924..7bf128f2 100644
--- a/pn-dispatcher/src/main/java/info/papyri/dispatch/Reader.java
+++ b/pn-dispatcher/src/main/java/info/papyri/dispatch/Reader.java
@@ -1,242 +1,239 ... | false | true | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String page = request.getParameter("p");
if (page != null) {
// Redirection for old static URLs
if (page.contains("current") && (page.contains("-citations-") || ... | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String page = request.getParameter("p");
if (page != null) {
// Redirection for old static URLs
if (page.contains("current") && (page.contains("-citations-") || ... |
diff --git a/railo-java/railo-core/src/railo/runtime/listener/ModernAppListener.java b/railo-java/railo-core/src/railo/runtime/listener/ModernAppListener.java
index 15754e741..1a8c151d1 100755
--- a/railo-java/railo-core/src/railo/runtime/listener/ModernAppListener.java
+++ b/railo-java/railo-core/src/railo/runtime/lis... | true | true | protected void _onRequest(PageContext pc, PageSource requestedPage,PageSource appPS) throws PageException {
PageContextImpl pci = (PageContextImpl)pc;
if(appPS!=null) {
String callPath=appPS.getComponentName();
ComponentAccess app = ComponentLoader.loadComponent(pci,null,appPS, callPath, false,true);... | protected void _onRequest(PageContext pc, PageSource requestedPage,PageSource appPS) throws PageException {
PageContextImpl pci = (PageContextImpl)pc;
if(appPS!=null) {
String callPath=appPS.getComponentName();
ComponentAccess app = ComponentLoader.loadComponent(pci,null,appPS, callPath, false,false)... |
diff --git a/src/main/java/org/esa/beam/dataViewer3D/data/color/HSVColorProvider.java b/src/main/java/org/esa/beam/dataViewer3D/data/color/HSVColorProvider.java
index 0815074..c11ffad 100644
--- a/src/main/java/org/esa/beam/dataViewer3D/data/color/HSVColorProvider.java
+++ b/src/main/java/org/esa/beam/dataViewer3D/data... | true | true | public Color getColor(double sample, double weight)
{
final double val = (sample < min ? min : (sample > max ? max : sample));
return Color.getHSBColor((float) ((val - min) / difference), 1f, (float) weight);
}
| public Color getColor(double sample, double weight)
{
final double val = (sample < min ? min : (sample > max ? max : sample));
// we scale the hue to interval [0, 0.8], because if it would go up to 1.0, the color for min and max would be
// the same
return Color.getHSBColor((floa... |
diff --git a/update/org.eclipse.update.configurator/src/org/eclipse/update/internal/configurator/branding/AboutInfo.java b/update/org.eclipse.update.configurator/src/org/eclipse/update/internal/configurator/branding/AboutInfo.java
index a3a7a31bc..dd2b59fc1 100644
--- a/update/org.eclipse.update.configurator/src/org/ec... | true | true | public static AboutInfo readFeatureInfo(String featureId, String versionId, String pluginId) {
// Assert.isNotNull(featureId);
// Assert.isNotNull(versionId);
// Assert.isNotNull(pluginId);
IniFileReader reader = new IniFileReader(featureId, pluginId, INI_FILENAME, PROPERTIES_FILENAME, MAPPINGS_FILENAME);
IStat... | public static AboutInfo readFeatureInfo(String featureId, String versionId, String pluginId) {
// Assert.isNotNull(featureId);
// Assert.isNotNull(versionId);
// Assert.isNotNull(pluginId);
IniFileReader reader = new IniFileReader(featureId, pluginId, INI_FILENAME, PROPERTIES_FILENAME, MAPPINGS_FILENAME);
IStat... |
diff --git a/src/com/dmdirc/addons/ui_swing/dialogs/aliases/AliasManagerLinker.java b/src/com/dmdirc/addons/ui_swing/dialogs/aliases/AliasManagerLinker.java
index 524db08c..5c2c3bd3 100644
--- a/src/com/dmdirc/addons/ui_swing/dialogs/aliases/AliasManagerLinker.java
+++ b/src/com/dmdirc/addons/ui_swing/dialogs/aliases/A... | false | true | public void bindCommandList(final JTable commandList) {
final GenericTableModel<Alias> commandModel = new GenericTableModel<>(
Alias.class, "getName", "getMinArguments", "getSubstitution");
commandModel.setHeaderNames("Name", "Minimum Arguments", "Substitution");
commandList.... | public void bindCommandList(final JTable commandList) {
final GenericTableModel<Alias> commandModel = new GenericTableModel<>(
Alias.class, "getName", "getMinArguments", "getSubstitution");
commandModel.setHeaderNames("Name", "Minimum Arguments", "Substitution");
commandList.... |
diff --git a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/dispatchers/SubsequentRequestDispatcher.java b/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/core/dispatchers/SubsequentRequestDispatcher.java
index 354c9e8cf..ce9adf616 100644
--- a/sip-servlets-impl/src/main/java/org/mobicents/ser... | true | true | public void dispatchMessage(final SipProvider sipProvider, SipServletMessageImpl sipServletMessage) throws DispatcherException {
final SipFactoryImpl sipFactoryImpl = sipApplicationDispatcher.getSipFactory();
final SipServletRequestImpl sipServletRequest = (SipServletRequestImpl) sipServletMessage;
if(logger.isD... | public void dispatchMessage(final SipProvider sipProvider, SipServletMessageImpl sipServletMessage) throws DispatcherException {
final SipFactoryImpl sipFactoryImpl = sipApplicationDispatcher.getSipFactory();
final SipServletRequestImpl sipServletRequest = (SipServletRequestImpl) sipServletMessage;
if(logger.isD... |
diff --git a/src/logreporter/SuiteReporter.java b/src/logreporter/SuiteReporter.java
index fa19c90..f9c7cc5 100644
--- a/src/logreporter/SuiteReporter.java
+++ b/src/logreporter/SuiteReporter.java
@@ -1,285 +1,285 @@
/*
Copyright 2011 SugarCRM Inc.
Licensed under the Apache License, Version 2.0 (the "License");
y... | false | true | private String GenMiniErrorTable(String line) {
String result = "";
Pattern p = null;
Matcher m = null;
String exceptions = "";
String watchdog = "";
String fasserts = "";
String errors = "";
String color = "";
try {
p = Pattern.compile("failedasserts:(\\d+).*exceptions:(\\d+).*errors:(\\d+).*w... | private String GenMiniErrorTable(String line) {
String result = "";
Pattern p = null;
Matcher m = null;
String exceptions = "";
String watchdog = "";
String fasserts = "";
String errors = "";
String color = "";
try {
p = Pattern.compile("failedasserts:(\\d+).*exceptions:(\\d+).*errors:(\\d+).*w... |
diff --git a/proxytoys-website/src/java/minimesh/Page.java b/proxytoys-website/src/java/minimesh/Page.java
index 1a0003a..84cc930 100644
--- a/proxytoys-website/src/java/minimesh/Page.java
+++ b/proxytoys-website/src/java/minimesh/Page.java
@@ -1,160 +1,160 @@
package minimesh;
import com.opensymphony.module.siteme... | true | true | private void extractContentFromHTML(char[] rawHTML) throws IOException {
// where to dump properties extracted from the page
properties = new Properties();
PageBuilder pageBuilder = new PageBuilder() {
public void addProperty(String key, String value) {
properties... | private void extractContentFromHTML(char[] rawHTML) throws IOException {
// where to dump properties extracted from the page
properties = new Properties();
PageBuilder pageBuilder = new PageBuilder() {
public void addProperty(String key, String value) {
properties... |
diff --git a/src/com/github/pageallocation/gui/table/PageFaultRenderer.java b/src/com/github/pageallocation/gui/table/PageFaultRenderer.java
index 3f94cb8..ac1924b 100644
--- a/src/com/github/pageallocation/gui/table/PageFaultRenderer.java
+++ b/src/com/github/pageallocation/gui/table/PageFaultRenderer.java
@@ -1,92 +1... | true | true | private boolean pageFaultOccurred(final TableModel model, final int column) {
String columnName = model.getColumnName(column);
if (column == 0) {// Frames column
return false;
}
if (column == 1) {// First reference and its not in the initial state
return !Util.isInteger(columnName);
} else if (column... | private boolean pageFaultOccurred(final TableModel model, final int column) {
String columnName = model.getColumnName(column);
if (column == 0) {// Frames column
return false;
}
if (column == 1) {// First reference and its not in the initial state
return Util.isInteger(columnName);
} else if (column ... |
diff --git a/src/main/java/com/soulgalore/crawler/core/HTMLPageResponse.java b/src/main/java/com/soulgalore/crawler/core/HTMLPageResponse.java
index b3ea830..b2b6104 100644
--- a/src/main/java/com/soulgalore/crawler/core/HTMLPageResponse.java
+++ b/src/main/java/com/soulgalore/crawler/core/HTMLPageResponse.java
@@ -1,1... | false | true | public HTMLPageResponse(PageURL pageUrl, int theResponseCode,
Map<String, String> theHeaders, String theBody, String theEncoding,
long theSize, String theResponseType, long theFetchTime) {
encoding = theEncoding;
url = pageUrl;
responseCode = theResponseCode;
responseType = theResponseType;
headers = t... | public HTMLPageResponse(PageURL pageUrl, int theResponseCode,
Map<String, String> theHeaders, String theBody, String theEncoding,
long theSize, String theResponseType, long theFetchTime) {
encoding = theEncoding;
url = pageUrl;
responseCode = theResponseCode;
responseType = theResponseType;
headers = t... |
diff --git a/Configuration.java b/Configuration.java
index 9a19224..9940ad1 100644
--- a/Configuration.java
+++ b/Configuration.java
@@ -1,232 +1,232 @@
import java.io.*;
import java.util.*;
public class Configuration extends Module {
private HashMap<String, Configuration.PeerInfo> peerList;
private C... | true | true | public void initialConfiguration() {
String st;
boolean hasFile;
peerList = new HashMap<String, Configuration.PeerInfo>();
Configuration.PeerInfo node = new Configuration.PeerInfo();
try {
BufferedReader in = new BufferedReader(new FileReader(Constants.PEER_CFG_FILE));
while((st = in.readLine(... | public void initialConfiguration() {
String st;
boolean hasFile;
peerList = new HashMap<String, Configuration.PeerInfo>();
Configuration.PeerInfo node = new Configuration.PeerInfo();
try {
BufferedReader in = new BufferedReader(new FileReader(Constants.PEER_CFG_FILE));
while((st = in.readLine(... |
diff --git a/src/jpcsp/graphics/RE/software/RendererTemplate.java b/src/jpcsp/graphics/RE/software/RendererTemplate.java
index 7ad8530f..c3c34f32 100644
--- a/src/jpcsp/graphics/RE/software/RendererTemplate.java
+++ b/src/jpcsp/graphics/RE/software/RendererTemplate.java
@@ -1,1776 +1,1780 @@
/*
This file is part of j... | false | true | private static void doRender(final BasePrimitiveRenderer renderer) {
final PixelState pixel = renderer.pixel;
final PrimitiveState prim = renderer.prim;
final IRendererWriter rendererWriter = renderer.rendererWriter;
final Lighting lighting = renderer.lighting;
IRandomTextureAccess textureAccess = resampleTe... | private static void doRender(final BasePrimitiveRenderer renderer) {
final PixelState pixel = renderer.pixel;
final PrimitiveState prim = renderer.prim;
final IRendererWriter rendererWriter = renderer.rendererWriter;
final Lighting lighting = renderer.lighting;
IRandomTextureAccess textureAccess = resampleTe... |
diff --git a/e/hu.e.compiler/src/hu/e/compiler/tasks/internal/AbstractConverter.java b/e/hu.e.compiler/src/hu/e/compiler/tasks/internal/AbstractConverter.java
index c3c3218a..e48a2017 100644
--- a/e/hu.e.compiler/src/hu/e/compiler/tasks/internal/AbstractConverter.java
+++ b/e/hu.e.compiler/src/hu/e/compiler/tasks/inter... | true | true | protected EObject internalCopy(EObject element){
EClass eclass = element.eClass();
EObject result = eclass.getEPackage().getEFactoryInstance().create(eclass);
converted.put(element, result);
if (element instanceof MODembedElement){
TaskUtils.addOrigin((MODembedElement) element, (MODembedElement)result);
... | protected EObject internalCopy(EObject element){
EClass eclass = element.eClass();
EObject result = eclass.getEPackage().getEFactoryInstance().create(eclass);
converted.put(element, result);
if (element instanceof MODembedElement){
TaskUtils.addOrigin((MODembedElement) result, (MODembedElement)element);
... |
diff --git a/support/org/intellij/grammar/generator/RuleGraphHelper.java b/support/org/intellij/grammar/generator/RuleGraphHelper.java
index 0ccccc6..5139f78 100755
--- a/support/org/intellij/grammar/generator/RuleGraphHelper.java
+++ b/support/org/intellij/grammar/generator/RuleGraphHelper.java
@@ -1,697 +1,697 @@
/*... | true | true | private Map<PsiElement, Cardinality> collectMembers(BnfRule rule, BnfExpression tree, String funcName, Set<PsiElement> visited) {
if (tree instanceof BnfPredicate) return Collections.emptyMap();
if (tree instanceof BnfLiteralExpression) return psiMap(tree, REQUIRED);
if (!visited.add(tree)) return psiMap... | private Map<PsiElement, Cardinality> collectMembers(BnfRule rule, BnfExpression tree, String funcName, Set<PsiElement> visited) {
if (tree instanceof BnfPredicate) return Collections.emptyMap();
if (tree instanceof BnfLiteralExpression) return psiMap(tree, REQUIRED);
if (!visited.add(tree)) return psiMap... |
diff --git a/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/xml/XMLAdapter.java b/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/xml/XMLAdapter.java
index b4830f2f90..9639bc47b5 100644
--- a/deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/xml/XMLAdapter.java... | false | true | public static void writeElement( XMLStreamWriter writer, XMLStreamReader inStream )
throws XMLStreamException {
if ( inStream.getEventType() != XMLStreamConstants.START_ELEMENT ) {
throw new XMLStreamException( "Input stream does not point to a START_ELEMENT event." ... | public static void writeElement( XMLStreamWriter writer, XMLStreamReader inStream )
throws XMLStreamException {
if ( inStream.getEventType() != XMLStreamConstants.START_ELEMENT ) {
throw new XMLStreamException( "Input stream does not point to a START_ELEMENT event." ... |
diff --git a/src/java/org/codehaus/groovy/grails/support/MockFileResource.java b/src/java/org/codehaus/groovy/grails/support/MockFileResource.java
index 8da64151f..ad4ea8408 100644
--- a/src/java/org/codehaus/groovy/grails/support/MockFileResource.java
+++ b/src/java/org/codehaus/groovy/grails/support/MockFileResource.... | true | true | public MockFileResource(String fileName, String contents) {
super(contents.getBytes("UTF-8"));
this.fileName = fileName;
}
| public MockFileResource(String fileName, String contents) throws UnsupportedEncodingException {
super(contents.getBytes("UTF-8"));
this.fileName = fileName;
}
|
diff --git a/src/main/java/org/iplantc/de/server/FileDownloadServlet.java b/src/main/java/org/iplantc/de/server/FileDownloadServlet.java
index 2fd0183a..f1b2b4bd 100644
--- a/src/main/java/org/iplantc/de/server/FileDownloadServlet.java
+++ b/src/main/java/org/iplantc/de/server/FileDownloadServlet.java
@@ -1,138 +1,137 ... | true | true | private String buildRequestAddress(HttpServletRequest request) throws UnsupportedEncodingException {
String user = URLEncoder.encode(request.getParameter("user"), "UTF-8"); //$NON-NLS-1$ //$NON-NLS-2$
String path = URLEncoder.encode(request.getParameter("path"), "UTF-8"); //$NON-NLS-1$ //$NON-NLS-2$... | private String buildRequestAddress(HttpServletRequest request) throws UnsupportedEncodingException {
String user = URLEncoder.encode(request.getParameter("user"), "UTF-8"); //$NON-NLS-1$ //$NON-NLS-2$
String path = URLEncoder.encode(request.getParameter("path"), "UTF-8"); //$NON-NLS-1$ //$NON-NLS-2$... |
diff --git a/src/main/java/org/primefaces/extensions/behavior/javascript/JavascriptBehaviorRenderer.java b/src/main/java/org/primefaces/extensions/behavior/javascript/JavascriptBehaviorRenderer.java
index a1de2dbe..9616f66a 100644
--- a/src/main/java/org/primefaces/extensions/behavior/javascript/JavascriptBehaviorRende... | true | true | public String getScript(final ClientBehaviorContext behaviorContext, final ClientBehavior behavior) {
final JavascriptBehavior javascriptBehavior = (JavascriptBehavior) behavior;
if (javascriptBehavior.isDisabled()) {
return null;
}
final FacesContext context = behaviorContext.getFacesContext();
final UI... | public String getScript(final ClientBehaviorContext behaviorContext, final ClientBehavior behavior) {
final JavascriptBehavior javascriptBehavior = (JavascriptBehavior) behavior;
if (javascriptBehavior.isDisabled()) {
return null;
}
final FacesContext context = behaviorContext.getFacesContext();
final UI... |
diff --git a/src/com/librelio/activity/SlideShowActivity.java b/src/com/librelio/activity/SlideShowActivity.java
index 82241ca..0ee8458 100644
--- a/src/com/librelio/activity/SlideShowActivity.java
+++ b/src/com/librelio/activity/SlideShowActivity.java
@@ -1,81 +1,81 @@
/**
*
*/
package com.librelio.activity;
... | false | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.sideshow_activity_layout);
LinearLayout frame = (LinearLayout)findViewById(R.id.slide_show_full);
autoPlayDelay = getIntent().getExtras().getInt(MediaHolder.PLAY_DELAY_KEY);
transition = getInten... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.sideshow_activity_layout);
LinearLayout frame = (LinearLayout)findViewById(R.id.slide_show_full);
autoPlayDelay = getIntent().getExtras().getInt(MediaHolder.PLAY_DELAY_KEY);
transition = getInten... |
diff --git a/org.eclipse.mylyn.resources.ui/src/org/eclipse/mylyn/internal/resources/ui/ContextEditorManager.java b/org.eclipse.mylyn.resources.ui/src/org/eclipse/mylyn/internal/resources/ui/ContextEditorManager.java
index 1aa52d0d1..eec2af147 100644
--- a/org.eclipse.mylyn.resources.ui/src/org/eclipse/mylyn/internal/r... | false | true | public void taskActivated(ITask task) {
if (!Workbench.getInstance().isStarting()
&& ContextUiPlugin.getDefault().getPreferenceStore().getBoolean(
ContextUiPrefContstants.AUTO_MANAGE_EDITORS)) {
Workbench workbench = (Workbench) PlatformUI.getWorkbench();
previousCloseEditorsSetting = workbench.getPr... | public void taskActivated(ITask task) {
if (!Workbench.getInstance().isStarting()
&& ContextUiPlugin.getDefault().getPreferenceStore().getBoolean(
ContextUiPrefContstants.AUTO_MANAGE_EDITORS)) {
Workbench workbench = (Workbench) PlatformUI.getWorkbench();
previousCloseEditorsSetting = workbench.getPr... |
diff --git a/src/ca/mcgill/hs/serv/HSServAutoStart.java b/src/ca/mcgill/hs/serv/HSServAutoStart.java
index 43e9130..2bc6431 100644
--- a/src/ca/mcgill/hs/serv/HSServAutoStart.java
+++ b/src/ca/mcgill/hs/serv/HSServAutoStart.java
@@ -1,40 +1,40 @@
package ca.mcgill.hs.serv;
import android.app.Activity;
import andro... | true | true | public void onReceive(Context context, Intent intent){
//check if the received intent is BOOT_COMPLETED
if( "android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
//get the saved settings
settings = context.getSharedPreferences(HSANDROID_PREFS_NAME, Activity.MODE_WORLD_READABLE);
//read the ... | public void onReceive(Context context, Intent intent){
//check if the received intent is BOOT_COMPLETED
if( "android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
//get the saved settings
settings = context.getSharedPreferences(HSANDROID_PREFS_NAME, Activity.MODE_WORLD_READABLE);
//read the ... |
diff --git a/src/main/java/com/salesforce/phoenix/pig/TypeUtil.java b/src/main/java/com/salesforce/phoenix/pig/TypeUtil.java
index 97f9e5a4..d8c42657 100644
--- a/src/main/java/com/salesforce/phoenix/pig/TypeUtil.java
+++ b/src/main/java/com/salesforce/phoenix/pig/TypeUtil.java
@@ -1,183 +1,183 @@
/*******************... | false | true | public static PDataType getType(Object obj, byte type) {
if (obj == null) {
return null;
}
PDataType sqlType;
switch (type) {
case DataType.BYTEARRAY:
sqlType = PDataType.VARBINARY;
break;
case DataType.CHARARRAY:
sqlType = PDataType.VARCHAR;
break;
case DataType.DOUBLE:
case DataType... | public static PDataType getType(Object obj, byte type) {
if (obj == null) {
return null;
}
PDataType sqlType;
switch (type) {
case DataType.BYTEARRAY:
sqlType = PDataType.VARBINARY;
break;
case DataType.CHARARRAY:
sqlType = PDataType.VARCHAR;
break;
case DataType.DOUBLE:
sqlType = PD... |
diff --git a/webapp/src/main/java/uk/ac/ebi/arrayexpress/servlets/LookupServlet.java b/webapp/src/main/java/uk/ac/ebi/arrayexpress/servlets/LookupServlet.java
index 5630ee97..8f1bf239 100644
--- a/webapp/src/main/java/uk/ac/ebi/arrayexpress/servlets/LookupServlet.java
+++ b/webapp/src/main/java/uk/ac/ebi/arrayexpress/s... | true | true | protected void doRequest( HttpServletRequest request, HttpServletResponse response, RequestType requestType )
throws ServletException, IOException
{
logRequest(logger, request, requestType);
String[] requestArgs = new RegexHelper("/([^/]+)", "i")
.match(request.getRe... | protected void doRequest( HttpServletRequest request, HttpServletResponse response, RequestType requestType )
throws ServletException, IOException
{
logRequest(logger, request, requestType);
String[] requestArgs = new RegexHelper("/([^/]+)$", "i")
.match(request.getR... |
diff --git a/citations-tool/tool/src/java/org/sakaiproject/citation/tool/CitationHelperAction.java b/citations-tool/tool/src/java/org/sakaiproject/citation/tool/CitationHelperAction.java
index d8ad183..2c4114c 100644
--- a/citations-tool/tool/src/java/org/sakaiproject/citation/tool/CitationHelperAction.java
+++ b/citat... | true | true | public String buildNewResourcePanelContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state) {
logger.debug("buildNewResourcePanelContext()");
context.put("MIMETYPE_JSON", MIMETYPE_JSON);
context.put("REQUESTED_MIMETYPE", REQUESTED_MIMETYPE);
context.put("xilator", new Validat... | public String buildNewResourcePanelContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state) {
logger.debug("buildNewResourcePanelContext()");
context.put("MIMETYPE_JSON", MIMETYPE_JSON);
context.put("REQUESTED_MIMETYPE", REQUESTED_MIMETYPE);
context.put("xilator", new Validat... |
diff --git a/ingest/src/main/java/org/apache/accumulo/examples/wikisearch/ingest/WikipediaInputFormat.java b/ingest/src/main/java/org/apache/accumulo/examples/wikisearch/ingest/WikipediaInputFormat.java
index 4c6a3b8..e8b8b52 100644
--- a/ingest/src/main/java/org/apache/accumulo/examples/wikisearch/ingest/WikipediaInpu... | false | true | public List<InputSplit> getSplits(JobContext job) throws IOException {
List<InputSplit> superSplits = super.getSplits(job);
List<WikipediaInputSplit> splits = new ArrayList<WikipediaInputSplit>();
int numGroups = WikipediaConfiguration.getNumGroups(job.getConfiguration());
for(InputSplit split:s... | public List<InputSplit> getSplits(JobContext job) throws IOException {
List<InputSplit> superSplits = super.getSplits(job);
List<InputSplit> splits = new ArrayList<InputSplit>();
int numGroups = WikipediaConfiguration.getNumGroups(job.getConfiguration());
for(InputSplit split:superSplits)
{
... |
diff --git a/sub/source/net/sourceforge/texlipse/editor/TexSourceViewerConfiguration.java b/sub/source/net/sourceforge/texlipse/editor/TexSourceViewerConfiguration.java
index cf5d209..24bcd7a 100644
--- a/sub/source/net/sourceforge/texlipse/editor/TexSourceViewerConfiguration.java
+++ b/sub/source/net/sourceforge/texli... | true | true | public String updatePresentation(Display display, String infoText,
TextPresentation presentation, int maxWidth, int maxHeight) {
int cstart = -1;
int gstart = -1;
// Loop over all characters of information text
for (int i = 0; i < info... | public String updatePresentation(Display display, String infoText,
TextPresentation presentation, int maxWidth, int maxHeight) {
int cstart = -1;
int gstart = -1;
// Loop over all characters of information text
for (int i = 0; i < info... |
diff --git a/src/com/kkbox/toolkit/api/KKAPIJsonRequest.java b/src/com/kkbox/toolkit/api/KKAPIJsonRequest.java
index 540ea6f..a65865b 100644
--- a/src/com/kkbox/toolkit/api/KKAPIJsonRequest.java
+++ b/src/com/kkbox/toolkit/api/KKAPIJsonRequest.java
@@ -1,74 +1,78 @@
/* Copyright (C) 2014 KKBOX Inc.
*
* Licensed un... | false | true | protected void preCompleteAndCachedAPI(ByteArrayOutputStream data, File cacheFile) throws BadPaddingException, IllegalBlockSizeException, IOException {
if (is != null) {
int readLength;
byte[] buffer = new byte[128];
FileOutputStream fileOutputStream = new FileOutputStream(cacheFile);
while ((readLength ... | protected void preCompleteAndCachedAPI(ByteArrayOutputStream data, File cacheFile) throws BadPaddingException, IllegalBlockSizeException, IOException {
InputStream inputStream;
if (cacheTimeOut > 0) {
if (is != null) {
int readLength;
byte[] buffer = new byte[128];
FileOutputStream fileOutputStream ... |
diff --git a/src/test/java/swing/revival/ActivePanelTest.java b/src/test/java/swing/revival/ActivePanelTest.java
index 947e8aa..6ba04c7 100644
--- a/src/test/java/swing/revival/ActivePanelTest.java
+++ b/src/test/java/swing/revival/ActivePanelTest.java
@@ -1,67 +1,67 @@
/**
* swing-revival:
* Swing Revival Toolkit... | true | true | public void testMyPanel() throws Exception {
final MyPanel myPanel = new MyPanel();
final JLabel field1Label = myPanel.field1Label;
assertNotNull("field1Label is null!", field1Label);
assertEquals("field1Label", field1Label.getName());
assertEquals("Tahoma", field1Label.getFo... | public void testMyPanel() throws Exception {
final MyPanel myPanel = new MyPanel();
final JLabel field1Label = myPanel.field1Label;
assertNotNull("field1Label is null!", field1Label);
assertEquals("field1Label", field1Label.getName());
assertEquals("Tahoma", field1Label.getFo... |
diff --git a/oeclib/src/ke/go/moh/oec/lib/HttpService.java b/oeclib/src/ke/go/moh/oec/lib/HttpService.java
index d90ad58..87fed53 100644
--- a/oeclib/src/ke/go/moh/oec/lib/HttpService.java
+++ b/oeclib/src/ke/go/moh/oec/lib/HttpService.java
@@ -1,454 +1,467 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
... | false | true | public void handle(HttpExchange exchange) throws IOException {
Message m = new Message();
/*
* Unpack the URL.
*/
String requestMethod = exchange.getRequestMethod();
URI uri = exchange.getRequestURI();
String query = uri.getQu... | public void handle(HttpExchange exchange) throws IOException {
Message m = new Message();
/*
* Unpack the URL.
*/
String requestMethod = exchange.getRequestMethod();
URI uri = exchange.getRequestURI();
String query = uri.getQu... |
diff --git a/src/net/volus/ronwalf/phs2010/games/core/impl/BestNextMove.java b/src/net/volus/ronwalf/phs2010/games/core/impl/BestNextMove.java
index 4c6b867..4a627da 100644
--- a/src/net/volus/ronwalf/phs2010/games/core/impl/BestNextMove.java
+++ b/src/net/volus/ronwalf/phs2010/games/core/impl/BestNextMove.java
@@ -1,4... | false | true | public Action move(State s) {
controller.start();
double best = Double.NEGATIVE_INFINITY;
Action bestAction = null;
for (Action a : transition.enumerate( s )) {
State sa = transition.apply(s, a);
double[] score = evaluate(sa);
if (score == null)
score = heuristic.score(sa);
if (score[s.p... | public Action move(State s) {
controller.start();
double best = Double.NEGATIVE_INFINITY;
Action bestAction = null;
for (Action a : transition.enumerate( s )) {
State sa = transition.apply(s, a);
double[] score = evaluate(sa);
if (score == null)
score = heuristic.score(sa);
if (score[s.p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.