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/alchemy-midlet/src/alchemy/evm/EtherFunction.java b/alchemy-midlet/src/alchemy/evm/EtherFunction.java
index 04d3715..d6442ba 100644
--- a/alchemy-midlet/src/alchemy/evm/EtherFunction.java
+++ b/alchemy-midlet/src/alchemy/evm/EtherFunction.java
@@ -1,952 +1,953 @@
/*
* This file is a part of Alchemy OS p... | true | true | public Object exec(Context c, Object[] args) throws AlchemyException {
//initializing
final Object[] stack = new Object[stacksize];
int head = -1;
final byte[] code = this.bcode;
Object[] locals;
if (args.length == localsize) {
locals = args;
} else {
locals = new Object[localsize];
System.array... | public Object exec(Context c, Object[] args) throws AlchemyException {
//initializing
final Object[] stack = new Object[stacksize];
int head = -1;
final byte[] code = this.bcode;
Object[] locals;
if (args.length == localsize) {
locals = args;
} else {
locals = new Object[localsize];
System.array... |
diff --git a/src/main/java/com/janrain/backplane2/server/AuthorizationRequest.java b/src/main/java/com/janrain/backplane2/server/AuthorizationRequest.java
index 1a85975..2df452f 100644
--- a/src/main/java/com/janrain/backplane2/server/AuthorizationRequest.java
+++ b/src/main/java/com/janrain/backplane2/server/Authoriza... | false | true | public AuthorizationRequest(String cookie, String configuredRedirectUri, Map parameterMap) {
Map<String,String> data = new LinkedHashMap<String, String>();
for(Field f: EnumSet.allOf(Field.class)) {
Object value = parameterMap.get(f.getFieldName().toLowerCase());
if (value in... | public AuthorizationRequest(String cookie, String configuredRedirectUri, Map parameterMap) {
Map<String,String> data = new LinkedHashMap<String, String>();
data.put(Field.COOKIE.getFieldName(), cookie);
for(Field f: EnumSet.allOf(Field.class)) {
Object value = parameterMap.get(f.... |
diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java b/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java
index 51270592a..6f6f7522e 100644
--- a/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java
+++ b/activemq-broker/src/main/java/o... | true | true | protected void checkSystemUsageLimits() throws IOException {
SystemUsage usage = getSystemUsage();
long memLimit = usage.getMemoryUsage().getLimit();
long jvmLimit = Runtime.getRuntime().maxMemory();
if (memLimit > jvmLimit) {
LOG.error("Memory Usage for the Broker (" + ... | protected void checkSystemUsageLimits() throws IOException {
SystemUsage usage = getSystemUsage();
long memLimit = usage.getMemoryUsage().getLimit();
long jvmLimit = Runtime.getRuntime().maxMemory();
if (memLimit > jvmLimit) {
LOG.error("Memory Usage for the Broker (" + ... |
diff --git a/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/app/client/administration/database/presenter/Resources.java b/opal-gwt-client/src/main/java/org/obiba/opal/web/gwt/app/client/administration/database/presenter/Resources.java
index c5894d6a5..7ba8b4481 100644
--- a/opal-gwt-client/src/main/java/org/obiba... | false | true | static String database(String name, String... more) {
String r = database(name);
if(more != null) {
for(String s : more) {
r += "/" + s;
}
}
return r;
}
| static String database(String name, String... more) {
String r = database(name);
if(more != null) {
StringBuilder sb = new StringBuilder(r);
for(String s : more) {
sb.append("/").append(s);
}
r = sb.toString();
}
return r;
}
|
diff --git a/src/main/java/drinkcounter/web/controllers/ui/UserController.java b/src/main/java/drinkcounter/web/controllers/ui/UserController.java
index 5a71fa8..e578617 100644
--- a/src/main/java/drinkcounter/web/controllers/ui/UserController.java
+++ b/src/main/java/drinkcounter/web/controllers/ui/UserController.java... | true | true | public ResponseEntity<byte[]> getUserNotInPartyByEmail(HttpSession session, @RequestParam("email") String email, @RequestParam("partyId") String partyId){
String openId = (String)session.getAttribute(AuthenticationController.OPENID);
int id = Integer.parseInt(partyId);
authenticationChecks.c... | public ResponseEntity<byte[]> getUserNotInPartyByEmail(HttpSession session, @RequestParam("email") String email, @RequestParam("partyId") String partyId){
System.out.println(email);
String openId = (String)session.getAttribute(AuthenticationController.OPENID);
int id = Integer.parseInt(party... |
diff --git a/luni/src/main/java/java/text/SimpleDateFormat.java b/luni/src/main/java/java/text/SimpleDateFormat.java
index 46ecc1af3..19855b5d0 100644
--- a/luni/src/main/java/java/text/SimpleDateFormat.java
+++ b/luni/src/main/java/java/text/SimpleDateFormat.java
@@ -1,1302 +1,1302 @@
/*
* Licensed to the Apache So... | true | true | private void append(StringBuffer buffer, FieldPosition position,
List<FieldPosition> fields, char format, int count) {
int field = -1;
int index = PATTERN_CHARS.indexOf(format);
if (index == -1) {
throw new IllegalArgumentException("Unknown pattern character '" + form... | private void append(StringBuffer buffer, FieldPosition position,
List<FieldPosition> fields, char format, int count) {
int field = -1;
int index = PATTERN_CHARS.indexOf(format);
if (index == -1) {
throw new IllegalArgumentException("Unknown pattern character '" + form... |
diff --git a/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/RegionManager.java b/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/RegionManager.java
index 8e1dc43d..07bc7ccc 100644
--- a/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kerne... | true | true | private void createAndPublishUserRegion() throws BundleException {
registerRegionService(new ImmutableRegion(REGION_KERNEL, this.bundleContext));
String userRegionImportsProperty = this.regionImports != null ? this.regionImports
: this.bundleContext.getProperty(USER_REGION_PACKAGE_IMPO... | private void createAndPublishUserRegion() throws BundleException {
registerRegionService(new ImmutableRegion(REGION_KERNEL, this.bundleContext));
String userRegionImportsProperty = this.regionImports != null ? this.regionImports
: this.bundleContext.getProperty(USER_REGION_PACKAGE_IMPO... |
diff --git a/libraries/javalib/gnu/java/awt/peer/gtk/GdkGraphics2D.java b/libraries/javalib/gnu/java/awt/peer/gtk/GdkGraphics2D.java
index 82de03d5a..9079b9619 100644
--- a/libraries/javalib/gnu/java/awt/peer/gtk/GdkGraphics2D.java
+++ b/libraries/javalib/gnu/java/awt/peer/gtk/GdkGraphics2D.java
@@ -1,1512 +1,1515 @@
... | false | true | private final boolean drawRaster (ColorModel cm, Raster r,
AffineTransform imageToUser,
Color bgcolor)
{
if (r == null)
return false;
SampleModel sm = r.getSampleModel ();
DataBuffer db = r.getDataBuffer ();
if (db == ... | private final boolean drawRaster (ColorModel cm, Raster r,
AffineTransform imageToUser,
Color bgcolor)
{
if (r == null)
return false;
SampleModel sm = r.getSampleModel ();
DataBuffer db = r.getDataBuffer ();
if (db == ... |
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaLocalApplicationLaunchConfigurationDelegate.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaLocalApplicationLaunchConfigurationDelegate.java
index a31fe2ab1..c02ca2a2d 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/ecl... | true | true | protected ILaunch verifyAndLaunch(ILaunchConfiguration configuration, String mode, boolean doLaunch) throws CoreException {
/*
// Java project
String projectName = configuration.getAttribute(JavaDebugUI.PROJECT_ATTR, (String)null);
if ((projectName == null) || (projectName.trim().length() < 1)) {
abort("... | protected ILaunch verifyAndLaunch(ILaunchConfiguration configuration, String mode, boolean doLaunch) throws CoreException {
/*
// Java project
String projectName = configuration.getAttribute(JavaDebugUI.PROJECT_ATTR, (String)null);
if ((projectName == null) || (projectName.trim().length() < 1)) {
abort("... |
diff --git a/jython/src/org/python/util/jython.java b/jython/src/org/python/util/jython.java
index daf46c6d..e619e9b3 100644
--- a/jython/src/org/python/util/jython.java
+++ b/jython/src/org/python/util/jython.java
@@ -1,547 +1,547 @@
// Copyright (c) Corporation for National Research Initiatives
package org.python.u... | true | true | public static void run(String[] args) {
// Parse the command line options
CommandLineOptions opts = new CommandLineOptions();
if (!opts.parse(args)) {
if (opts.version) {
System.err.println("Jython " + Version.PY_VERSION);
System.exit(0);
... | public static void run(String[] args) {
// Parse the command line options
CommandLineOptions opts = new CommandLineOptions();
if (!opts.parse(args)) {
if (opts.version) {
System.err.println("Jython " + Version.PY_VERSION);
System.exit(0);
... |
diff --git a/reports/src/main/java/org/sola/clients/reports/ReportManager.java b/reports/src/main/java/org/sola/clients/reports/ReportManager.java
index 659df182..65eaf863 100644
--- a/reports/src/main/java/org/sola/clients/reports/ReportManager.java
+++ b/reports/src/main/java/org/sola/clients/reports/ReportManager.ja... | true | true | public static JasperPrint getBrReport() {
HashMap inputParameters = new HashMap();
inputParameters.put("REPORT_LOCALE", Locale.getDefault());
inputParameters.put("today", new Date());
inputParameters.put("USER_NAME", SecurityBean.getCurrentUser().getFullUserName());
BrListBea... | public static JasperPrint getBrReport() {
HashMap inputParameters = new HashMap();
inputParameters.put("REPORT_LOCALE", Locale.getDefault());
inputParameters.put("today", new Date());
inputParameters.put("USER_NAME", SecurityBean.getCurrentUser().getFullUserName());
BrListBea... |
diff --git a/sccp/sccp-api/src/main/java/org/mobicents/protocols/ss7/indicator/NatureOfAddress.java b/sccp/sccp-api/src/main/java/org/mobicents/protocols/ss7/indicator/NatureOfAddress.java
index d7f68b015..4959f6db6 100644
--- a/sccp/sccp-api/src/main/java/org/mobicents/protocols/ss7/indicator/NatureOfAddress.java
+++ ... | true | true | public static NatureOfAddress valueOf(int v) throws IOException {
switch (v) {
case 0:
return UNKNOWN;
case 1:
return SUBSCRIBER;
case 2:
return RESERVED_NATIONAL_2;
case 3:
return NATIONAL;
case 4:
return INTERNATIONAL;
case 5:
return SPARE_5;
case 6:
return SPARE_6;
case 7:
... | public static NatureOfAddress valueOf(int v) throws IOException {
switch (v) {
case 0:
return UNKNOWN;
case 1:
return SUBSCRIBER;
case 2:
return RESERVED_NATIONAL_2;
case 3:
return NATIONAL;
case 4:
return INTERNATIONAL;
case 5:
return SPARE_5;
case 6:
return SPARE_6;
case 7:
... |
diff --git a/bundles/model/org.openhab.model.core/src/main/java/org/openhab/model/core/internal/ModelRepositoryImpl.java b/bundles/model/org.openhab.model.core/src/main/java/org/openhab/model/core/internal/ModelRepositoryImpl.java
index 6e97d99a..238a3c42 100644
--- a/bundles/model/org.openhab.model.core/src/main/java/... | false | true | public void addOrRefreshModel(String name, InputStream inputStream) {
Resource resource = getResource(name);
if(resource==null) {
// seems to be a new file
resource = resourceSet.createResource(URI.createURI(name));
try {
resource.load(inputStream, Collections.EMPTY_MAP);
notifyListeners(name, Eve... | public void addOrRefreshModel(String name, InputStream inputStream) {
Resource resource = getResource(name);
if(resource==null) {
// seems to be a new file
resource = resourceSet.createResource(URI.createURI(name));
try {
resource.load(inputStream, Collections.EMPTY_MAP);
notifyListeners(name, Eve... |
diff --git a/src/com/android/mms/transaction/MmsSystemEventReceiver.java b/src/com/android/mms/transaction/MmsSystemEventReceiver.java
index 9b78ea08..d89a31a4 100644
--- a/src/com/android/mms/transaction/MmsSystemEventReceiver.java
+++ b/src/com/android/mms/transaction/MmsSystemEventReceiver.java
@@ -1,96 +1,99 @@
/*... | true | true | public void onReceive(Context context, Intent intent) {
if (Log.isLoggable(LogTag.TRANSACTION, Log.VERBOSE)) {
Log.v(TAG, "Intent received: " + intent);
}
String action = intent.getAction();
if (action.equals(Mms.Intents.CONTENT_CHANGED_ACTION)) {
Uri changed... | public void onReceive(Context context, Intent intent) {
if (Log.isLoggable(LogTag.TRANSACTION, Log.VERBOSE)) {
Log.v(TAG, "Intent received: " + intent);
}
String action = intent.getAction();
if (action.equals(Mms.Intents.CONTENT_CHANGED_ACTION)) {
Uri changed... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PersonAttributeEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/PersonAttributeEditor.java
index c8684824b..ac81b57d2 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tas... | true | true | public void createControl(Composite parent, FormToolkit toolkit) {
String userName = getModel().getTaskRepository().getUserName();
if (isReadOnly() || userName == null || userName.length() == 0) {
super.createControl(parent, toolkit);
} else {
final Composite composite = new Composite(parent, SWT.NONE);
... | public void createControl(Composite parent, FormToolkit toolkit) {
String userName = getModel().getTaskRepository().getUserName();
if (isReadOnly() || userName == null || userName.length() == 0) {
super.createControl(parent, toolkit);
} else {
final Composite composite = new Composite(parent, SWT.NONE);
... |
diff --git a/software/camod/src/gov/nih/nci/camod/webapp/action/ChangeAnimalModelStatePopulateAction.java b/software/camod/src/gov/nih/nci/camod/webapp/action/ChangeAnimalModelStatePopulateAction.java
index 81abf088..d2e18885 100755
--- a/software/camod/src/gov/nih/nci/camod/webapp/action/ChangeAnimalModelStatePopulate... | false | true | public ActionForward execute(ActionMapping inMapping, ActionForm inForm, HttpServletRequest inRequest,
HttpServletResponse inResponse) throws Exception {
log.debug("Entering ChangeAnimalModelStatePopulateAction.execute");
String theForward = "next";
String theModelId = null;
AnimalModel theAni... | public ActionForward execute(ActionMapping inMapping, ActionForm inForm, HttpServletRequest inRequest,
HttpServletResponse inResponse) throws Exception {
log.debug("Entering ChangeAnimalModelStatePopulateAction.execute");
String theForward = "next";
String theModelId = null;
AnimalModel theAni... |
diff --git a/src/clientmanager/InternetService.java b/src/clientmanager/InternetService.java
index a15e929..8632ba7 100644
--- a/src/clientmanager/InternetService.java
+++ b/src/clientmanager/InternetService.java
@@ -1,119 +1,121 @@
/*
* To change this template, choose Tools | Templates
* and open the template in ... | false | true | public InternetService(String id, internetOptions speed){
super(0);
if(speed.equals(internetOptions.M20)){
this.setMonthlyCost(monthlyCostM20);
this.idAccount = id;
}
else if(speed.equals(internetOptions.M100)){
this.setMonthlyCost(monthlyCostM100)... | public InternetService(String id, internetOptions speed){
super(0);
if(speed.equals(internetOptions.M20)){
this.setMonthlyCost(monthlyCostM20);
this.idAccount = id;
internetSpeed=speed;
}
else if(speed.equals(internetOptions.M100)){
thi... |
diff --git a/rultor-web/src/main/java/com/rultor/web/Lifespan.java b/rultor-web/src/main/java/com/rultor/web/Lifespan.java
index 3be468f6a..cc2f69384 100644
--- a/rultor-web/src/main/java/com/rultor/web/Lifespan.java
+++ b/rultor-web/src/main/java/com/rultor/web/Lifespan.java
@@ -1,173 +1,173 @@
/**
* Copyright (c) ... | true | true | public void contextInitialized(final ServletContextEvent event) {
try {
Manifests.append(event.getServletContext());
} catch (java.io.IOException ex) {
throw new IllegalStateException(ex);
}
final String key = Manifests.read("Rultor-AwsKey");
final Str... | public void contextInitialized(final ServletContextEvent event) {
try {
Manifests.append(event.getServletContext());
} catch (java.io.IOException ex) {
throw new IllegalStateException(ex);
}
final String key = Manifests.read("Rultor-S3Key");
final Stri... |
diff --git a/src/aws/apps/underthehood/Main.java b/src/aws/apps/underthehood/Main.java
index 85621c6..af5a933 100644
--- a/src/aws/apps/underthehood/Main.java
+++ b/src/aws/apps/underthehood/Main.java
@@ -1,531 +1,531 @@
/*******************************************************************************
* Copyright 201... | true | true | private void populateInfo(){
//HashMap<Integer, Boolean> actionMap) {
final Object data = getLastNonConfigurationInstance();
LayoutParams lp = new TableLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
if (data == null) { // We need to do everything from scratch!
mTimeDate = uB.for... | private void populateInfo(){
//HashMap<Integer, Boolean> actionMap) {
final Object data = getLastNonConfigurationInstance();
LayoutParams lp = new TableLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);
if (data == null) { // We need to do everything from scratch!
mTimeDate = uB.for... |
diff --git a/Osm2GpsMid/src/de/ueller/osmToGpsMid/MyMath.java b/Osm2GpsMid/src/de/ueller/osmToGpsMid/MyMath.java
index 47391e23..43d92734 100644
--- a/Osm2GpsMid/src/de/ueller/osmToGpsMid/MyMath.java
+++ b/Osm2GpsMid/src/de/ueller/osmToGpsMid/MyMath.java
@@ -1,331 +1,331 @@
/**
* This file is part of OSM2GpsMid
*... | true | true | public static Node intersection(Node p1, double b1g, Node p2, double b2g) {
double lat1 = Math.toRadians(p1.lat), lon1 = Math.toRadians(p1.lon);
double lat2 = Math.toRadians(p2.lat), lon2 = Math.toRadians(p2.lon);
double b1 = Math.toRadians(b1g), b2 = Math.toRadians(b2g);
double dLat = lat2-lat1, dLon = l... | public static Node intersection(Node p1, double b1g, Node p2, double b2g) {
double lat1 = Math.toRadians(p1.lat), lon1 = Math.toRadians(p1.lon);
double lat2 = Math.toRadians(p2.lat), lon2 = Math.toRadians(p2.lon);
double b1 = Math.toRadians(b1g), b2 = Math.toRadians(b2g);
double dLat = lat2-lat1, dLon = l... |
diff --git a/src/pxchat/util/Config.java b/src/pxchat/util/Config.java
index 6ea0232..35673de 100644
--- a/src/pxchat/util/Config.java
+++ b/src/pxchat/util/Config.java
@@ -1,353 +1,353 @@
package pxchat.util;
import java.io.File;
import java.io.FileOutputStream;
import java.util.HashMap;
import java.util.Vector... | true | true | public static void init(String fileName) {
config.clear();
profiles.clear();
config.put("defaultProfile", "default");
config.put("masterServer","http://localhost/servers.php?&action=list");
file = new File(fileName);
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
fa... | public static void init(String fileName) {
config.clear();
profiles.clear();
config.put("defaultProfile", "default");
config.put("masterServer","http://localhost/servers.php?&action=list");
file = new File(fileName);
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factor... |
diff --git a/src/com/stackframe/pattymelt/PattyMelt.java b/src/com/stackframe/pattymelt/PattyMelt.java
index da590f8..ff608cf 100644
--- a/src/com/stackframe/pattymelt/PattyMelt.java
+++ b/src/com/stackframe/pattymelt/PattyMelt.java
@@ -1,276 +1,276 @@
/*
* Copyright 2012, Gene McCulley
* All rights reserved.
*
... | true | true | private void launch(String filename) throws Exception {
final short[] memory = cpu.memory();
System.err.println("Loading " + filename);
File file = new File(filename);
// Try to guess if this is binary or not. Should add an option to be explicit.
if (isBinary(file)) {
... | private void launch(String filename) throws Exception {
final short[] memory = cpu.memory();
System.err.println("Loading " + filename);
File file = new File(filename);
// Try to guess if this is binary or not. Should add an option to be explicit.
if (isBinary(file)) {
... |
diff --git a/examples/fixengine/examples/console/commands/Logon.java b/examples/fixengine/examples/console/commands/Logon.java
index 2b6655d4..d8502a3d 100644
--- a/examples/fixengine/examples/console/commands/Logon.java
+++ b/examples/fixengine/examples/console/commands/Logon.java
@@ -1,131 +1,131 @@
/*
* Copyright... | true | true | public void execute(final ConsoleClient client, Scanner scanner) throws CommandArgException {
try {
Connection conn = Connection.connect(new InetSocketAddress(host(scanner), port(scanner)),
new FixMessageParser(), new Connection.Callback() {
@Override public void messages(Connection conn... | public void execute(final ConsoleClient client, Scanner scanner) throws CommandArgException {
try {
Connection conn = Connection.connect(new InetSocketAddress(host(scanner), port(scanner)),
new FixMessageParser(), new Connection.Callback() {
@Override public void messages(Connection conn... |
diff --git a/src/org/pentaho/agilebi/platform/JettyServer.java b/src/org/pentaho/agilebi/platform/JettyServer.java
index 8981cbe..36410ac 100755
--- a/src/org/pentaho/agilebi/platform/JettyServer.java
+++ b/src/org/pentaho/agilebi/platform/JettyServer.java
@@ -1,116 +1,117 @@
/*
* This program is free software; you ... | true | true | public void startServer() throws Exception {
server = new Server();
WebAppContext pentahoContext = new WebAppContext();
pentahoContext.setContextPath("/pentaho"); //$NON-NLS-1$
pentahoContext.setWar(webappsFolder + "/pentaho"); //$NON-NLS-1$
pentahoContext.setParentLoaderPriority(true);
... | public void startServer() throws Exception {
server = new Server();
WebAppContext pentahoContext = new WebAppContext();
pentahoContext.setClassLoader(getClass().getClassLoader());
pentahoContext.setContextPath("/pentaho"); //$NON-NLS-1$
pentahoContext.setWar(webappsFolder + "/pentaho"); //$NON-NL... |
diff --git a/deegree-core/deegree-core-cs/src/main/java/org/deegree/cs/coordinatesystems/CRS.java b/deegree-core/deegree-core-cs/src/main/java/org/deegree/cs/coordinatesystems/CRS.java
index 2258a798be..42ef6b731a 100644
--- a/deegree-core/deegree-core-cs/src/main/java/org/deegree/cs/coordinatesystems/CRS.java
+++ b/de... | true | true | public double[] getValidDomain() {
synchronized ( LOCK ) {
if ( this.validDomain == null ) {
double[] bbox = getAreaOfUseBBox();
// transform world to coordinates in sourceCRS;
CoordinateTransformer t = new CoordinateTransformer( this );
... | public double[] getValidDomain() {
synchronized ( LOCK ) {
if ( this.validDomain == null ) {
double[] bbox = getAreaOfUseBBox();
// transform world to coordinates in sourceCRS;
CoordinateTransformer t = new CoordinateTransformer( this );
... |
diff --git a/src/java/main/org/jaxen/function/StringLengthFunction.java b/src/java/main/org/jaxen/function/StringLengthFunction.java
index cdf480d..08e26d5 100644
--- a/src/java/main/org/jaxen/function/StringLengthFunction.java
+++ b/src/java/main/org/jaxen/function/StringLengthFunction.java
@@ -1,156 +1,156 @@
/*
*... | true | true | public static Double evaluate(Object obj, Navigator nav) throws FunctionCallException
{
String str = StringFunction.evaluate( obj, nav );
// String.length() counts UTF-16 code points; not Unicode characters
char[] data = str.toCharArray();
int length = 0;
for (int i = 0; ... | public static Double evaluate(Object obj, Navigator nav) throws FunctionCallException
{
String str = StringFunction.evaluate( obj, nav );
// String.length() counts UTF-16 code points; not Unicode characters
char[] data = str.toCharArray();
int length = 0;
for (int i = 0; ... |
diff --git a/src/us/Myles/DP/Plug.java b/src/us/Myles/DP/Plug.java
index 50fb2c7..3937511 100644
--- a/src/us/Myles/DP/Plug.java
+++ b/src/us/Myles/DP/Plug.java
@@ -1,25 +1,24 @@
package us.Myles.DP;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Minecart;
import org.bukkit.entit... | true | true | public void onOpen(InventoryOpenEvent e){
System.out.println(e.getInventory().getHolder().getClass());
if(e.getPlayer().isInsideVehicle() && e.getInventory().getHolder() instanceof Minecart){
((Player) e.getPlayer()).sendMessage(ChatColor.RED + "You may not open Minecart Inventories while in a vehicle.");
Sy... | public void onOpen(InventoryOpenEvent e){
if(e.getPlayer().isInsideVehicle() && e.getInventory().getHolder() instanceof Minecart){
((Player) e.getPlayer()).sendMessage(ChatColor.RED + "You may not open Minecart Inventories while in a vehicle.");
System.out.println("[Alert] " + e.getPlayer().getName() + " just ... |
diff --git a/web-nutsNbolts/src/main/java/org/intalio/tempo/web/controller/SecuredController.java b/web-nutsNbolts/src/main/java/org/intalio/tempo/web/controller/SecuredController.java
index 541a485..34df623 100644
--- a/web-nutsNbolts/src/main/java/org/intalio/tempo/web/controller/SecuredController.java
+++ b/web-nuts... | true | true | protected final ModelAndView showForm(HttpServletRequest request, HttpServletResponse response, BindException errors)
throws Exception {
ModelAndView mav = Constants.REDIRECTION_TO_LOGIN;
ApplicationState state = getApplicationState(request);
User currentUser = state.getCurrentUs... | protected final ModelAndView showForm(HttpServletRequest request, HttpServletResponse response, BindException errors)
throws Exception {
ModelAndView mav = Constants.REDIRECTION_TO_LOGIN;
ApplicationState state = getApplicationState(request);
User currentUser = state.getCurrentUs... |
diff --git a/src/main/java/com/alexrnl/commons/arguments/Arguments.java b/src/main/java/com/alexrnl/commons/arguments/Arguments.java
index a855d5a..6b9acb8 100644
--- a/src/main/java/com/alexrnl/commons/arguments/Arguments.java
+++ b/src/main/java/com/alexrnl/commons/arguments/Arguments.java
@@ -1,116 +1,119 @@
packag... | false | true | public String toString () {
final StringBuilder usage = new StringBuilder(programName).append(" usage as follow:");
for (final Parameter param : parameters) {
usage.append(TAB);
if (!param.isRequired()) {
usage.append('[');
} else {
usage.append(' ');
}
usage.append(" ").append(StringUtils.... | public String toString () {
final StringBuilder usage = new StringBuilder(programName).append(" usage as follow:");
for (final Parameter param : parameters) {
usage.append(StringUtils.NEW_LINE).append(TAB);
if (!param.isRequired()) {
usage.append('[');
} else {
usage.append(' ');
}
usage.app... |
diff --git a/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/TextField.java b/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/TextField.java
index 1ed79fb75..55dbc172c 100644
--- a/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/TextField.java
+++ b/gdx/src/com/badlogic/gdx/scenes/scene2d/ui/TextField.java
@@ -1,890 +1,889 @@
/*****... | true | true | private void initialize () {
addListener(inputListener = new ClickListener() {
public void clicked (InputEvent event, float x, float y) {
if (getTapCount() > 1) setSelection(0, text.length());
}
public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
if (!super.touc... | private void initialize () {
addListener(inputListener = new ClickListener() {
public void clicked (InputEvent event, float x, float y) {
if (getTapCount() > 1) setSelection(0, text.length());
}
public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
if (!super.touc... |
diff --git a/omod/src/main/java/org/openmrs/module/errorlogging/web/controller/ManageErrorLoggingController.java b/omod/src/main/java/org/openmrs/module/errorlogging/web/controller/ManageErrorLoggingController.java
index c0298fe..56f49eb 100644
--- a/omod/src/main/java/org/openmrs/module/errorlogging/web/controller/Man... | false | true | private boolean saveIgnoredExceprions(String errors) {
GlobalProperty glProp = Context.getAdministrationService().getGlobalPropertyObject(
ErrorLoggingConstants.ERRROR_LOGGING_GP_IGNORED_EXCEPTION);
if (glProp != null) {
glProp.setPropertyValue(errors);
GlobalProperty saved = Context.getAdministrationS... | private boolean saveIgnoredExceprions(String errors) {
if (errors == null) {
return false;
}
GlobalProperty glProp = Context.getAdministrationService().getGlobalPropertyObject(
ErrorLoggingConstants.ERRROR_LOGGING_GP_IGNORED_EXCEPTION);
if (glProp != null) {
glProp.setPropertyValue(errors);
Glob... |
diff --git a/src/battleship/Player.java b/src/battleship/Player.java
index 1c10fd9..e5e6cb6 100644
--- a/src/battleship/Player.java
+++ b/src/battleship/Player.java
@@ -1,33 +1,33 @@
package battleship;
import java.util.ArrayList;
import entities.Aircraft;
import entities.Battleship;
import entities.Cruiser;
... | true | true | public Player(String name) {
this.name = name;
try{
shipList.add(new Aircraft(1,1,Ship.HORIZONTAL));
shipList.add(new Battleship(1,1,Ship.HORIZONTAL));
shipList.add(new Battleship(1,1,Ship.VERTICAL));
shipList.add(new Submarine(1,1,Ship.HORIZONTAL));
shipList.add(new Cruiser(1,1,Ship.VERTICAL));
... | public Player(String name) {
this.name = name;
try{
shipList.add(new Aircraft(1,1,Ship.HORIZONTAL));
shipList.add(new Battleship(1,1,Ship.HORIZONTAL));
shipList.add(new Battleship(1,1,Ship.VERTICAL));
shipList.add(new Submarine(1,1,Ship.HORIZONTAL));
shipList.add(new Cruiser(1,1,Ship.VERTICAL));
... |
diff --git a/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/PServerSSH2ServerConnection.java b/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/PServerSSH2ServerConnection.java
index 86b77c9f2..9dcf54f4b 100644
--- a/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/t... | true | true | public void open(IProgressMonitor monitor) throws IOException, CVSAuthenticationException {
monitor.subTask("PServerSSH2ServerConnection.open"); //$NON-NLS-1$
monitor.worked(1);
String cvs_root = location.getRootDirectory();
int cvs_port = location.getPort();
if (cvs_port == 0)
cvs_port = 2401;
String c... | public void open(IProgressMonitor monitor) throws IOException, CVSAuthenticationException {
monitor.subTask("PServerSSH2ServerConnection.open"); //$NON-NLS-1$
monitor.worked(1);
String cvs_root = location.getRootDirectory();
int cvs_port = location.getPort();
if (cvs_port == 0)
cvs_port = 2401;
String c... |
diff --git a/src/org/jwildfire/create/tina/variation/AbstractDisplacementMapWFFunc.java b/src/org/jwildfire/create/tina/variation/AbstractDisplacementMapWFFunc.java
index f9b5205e..8e792c3a 100644
--- a/src/org/jwildfire/create/tina/variation/AbstractDisplacementMapWFFunc.java
+++ b/src/org/jwildfire/create/tina/variat... | true | true | public void transform(FlameTransformationContext pContext, XForm pXForm, XYZPoint pAffineTP, XYZPoint pVarTP, double pAmount, double pInputX, double pInputY) {
double x = (pInputX - (offsetX + 0.5) + 1.0) / scaleX * (double) (imgWidth - 1);
double y = (pInputY - (offsetY + 0.5) + 1.0) / scaleY * (double) (img... | public void transform(FlameTransformationContext pContext, XForm pXForm, XYZPoint pAffineTP, XYZPoint pVarTP, double pAmount, double pInputX, double pInputY) {
double x = (pInputX - (offsetX + 0.5) + 1.0) / scaleX * (double) (imgWidth - 1);
double y = (pInputY - (offsetY + 0.5) + 1.0) / scaleY * (double) (img... |
diff --git a/unittests/com/jgaap/classifiers/RandomAnalysisTest.java b/unittests/com/jgaap/classifiers/RandomAnalysisTest.java
index aa39a74..1db1294 100644
--- a/unittests/com/jgaap/classifiers/RandomAnalysisTest.java
+++ b/unittests/com/jgaap/classifiers/RandomAnalysisTest.java
@@ -1,147 +1,147 @@
/*
* JGAAP -- a ... | true | true | public void testAnalyze() {
EventSet known1 = new EventSet();
EventSet known2 = new EventSet();
EventSet unknownMary = new EventSet();
Vector<Event> test1 = new Vector<Event>();
test1.add(new Event("Mary"));
test1.add(new Event("had"));
test1.add(new Event("a"));
test1.add(new Event("little"));
tes... | public void testAnalyze() {
EventSet known1 = new EventSet();
EventSet known2 = new EventSet();
EventSet unknownMary = new EventSet();
Vector<Event> test1 = new Vector<Event>();
test1.add(new Event("Mary"));
test1.add(new Event("had"));
test1.add(new Event("a"));
test1.add(new Event("little"));
tes... |
diff --git a/src/uk/me/parabola/imgfmt/app/mdr/MDRFile.java b/src/uk/me/parabola/imgfmt/app/mdr/MDRFile.java
index 6447729b..fa622f3c 100644
--- a/src/uk/me/parabola/imgfmt/app/mdr/MDRFile.java
+++ b/src/uk/me/parabola/imgfmt/app/mdr/MDRFile.java
@@ -1,346 +1,346 @@
/*
* Copyright (C) 2009.
*
* This program is f... | true | true | private void writeSections(ImgFileWriter writer) {
sizes = new MdrMapSection.PointerSizes(sections);
// Deal with the dependencies between the sections. The order of the following
// statements is sometimes important.
mdr10.setNumberOfPois(mdr11.getNumberOfPois());
mdr28.buildFromRegions(mdr13.getRegions()... | private void writeSections(ImgFileWriter writer) {
sizes = new MdrMapSection.PointerSizes(sections);
// Deal with the dependencies between the sections. The order of the following
// statements is sometimes important.
mdr10.setNumberOfPois(mdr11.getNumberOfPois());
mdr28.buildFromRegions(mdr13.getRegions()... |
diff --git a/src/com/modcrafting/diablodrops/commands/DiabloDropCommand.java b/src/com/modcrafting/diablodrops/commands/DiabloDropCommand.java
index 2f0d627..426c8f9 100644
--- a/src/com/modcrafting/diablodrops/commands/DiabloDropCommand.java
+++ b/src/com/modcrafting/diablodrops/commands/DiabloDropCommand.java
@@ -1,2... | true | true | public boolean onCommand(CommandSender sender, Command command,
String commandLabel, String[] args)
{
if (!(sender instanceof Player)
|| !sender.hasPermission(command.getPermission()))
{
sender.sendMessage(ChatColor.RED + "You cannot run this command.");
... | public boolean onCommand(CommandSender sender, Command command,
String commandLabel, String[] args)
{
if (!(sender instanceof Player)
|| !sender.hasPermission(command.getPermission()))
{
sender.sendMessage(ChatColor.RED + "You cannot run this command.");
... |
diff --git a/examples/src/main/java/com/xebialabs/overthere/WriteFile.java b/examples/src/main/java/com/xebialabs/overthere/WriteFile.java
index bc56c57..9d8266d 100644
--- a/examples/src/main/java/com/xebialabs/overthere/WriteFile.java
+++ b/examples/src/main/java/com/xebialabs/overthere/WriteFile.java
@@ -1,47 +1,47 ... | true | true | public static void main(String[] args) throws IOException {
ConnectionOptions options = new ConnectionOptions();
options.set(ADDRESS, "unix-box");
options.set(USERNAME, "demo");
options.set(PASSWORD, "secret");
options.set(OPERATING_SYSTEM, UNIX);
options.set(CONNECTION_TYPE, SCP);
OverthereConnection co... | public static void main(String[] args) throws IOException {
ConnectionOptions options = new ConnectionOptions();
options.set(ADDRESS, "unix-box");
options.set(USERNAME, "demo");
options.set(PASSWORD, "secret");
options.set(OPERATING_SYSTEM, UNIX);
options.set(CONNECTION_TYPE, SCP);
OverthereConnection co... |
diff --git a/src/com/github/noxan/aves/server/SocketServer.java b/src/com/github/noxan/aves/server/SocketServer.java
index 3822e64..ac606b0 100644
--- a/src/com/github/noxan/aves/server/SocketServer.java
+++ b/src/com/github/noxan/aves/server/SocketServer.java
@@ -1,142 +1,144 @@
/*
* Copyright (c) 2012, noxan
* ... | true | true | public void run() {
while(true) {
Tuple<ServerEvent, Object> event = serverEvents.poll();
if(event != null) {
switch(event.getFirst()) {
case DATA_READ:
Tuple<?, ?> read = (Tuple<?, ?>)event.getSecond();
... | public void run() {
while(true) {
Tuple<ServerEvent, Object> event = serverEvents.poll();
if(event != null) {
switch(event.getFirst()) {
case DATA_READ:
Tuple<?, ?> read = (Tuple<?, ?>) event.getS... |
diff --git a/main/src/cgeo/geocaching/cgeocaches.java b/main/src/cgeo/geocaching/cgeocaches.java
index 23eeec4b4..032438531 100644
--- a/main/src/cgeo/geocaching/cgeocaches.java
+++ b/main/src/cgeo/geocaching/cgeocaches.java
@@ -1,2237 +1,2242 @@
package cgeo.geocaching;
import cgeo.geocaching.activity.AbstractActi... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// init
app.setAction(action);
setTheme();
setContentView(R.layout.caches);
setTitle("caches");
// get parameters
final Bundle extras = getIntent().getExtras();
... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// init
app.setAction(action);
setTheme();
setContentView(R.layout.caches);
setTitle("caches");
// get parameters
final Bundle extras = getIntent().getExtras();
... |
diff --git a/src/graindcafe/tribu/Executors/CmdTribu.java b/src/graindcafe/tribu/Executors/CmdTribu.java
index 2c9850f..1a2ade0 100644
--- a/src/graindcafe/tribu/Executors/CmdTribu.java
+++ b/src/graindcafe/tribu/Executors/CmdTribu.java
@@ -1,482 +1,482 @@
/*************************************************************... | true | true | public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (args.length == 0) {
return usage(sender);
}
args[0] = args[0].toLowerCase();
/*
* Players commands
*/
if (args[0].equalsIgnoreCase("enter") || args[0].equalsIgnoreCase("join")) {
if (!plugin.confi... | public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (args.length == 0) {
return usage(sender);
}
args[0] = args[0].toLowerCase();
/*
* Players commands
*/
if (args[0].equalsIgnoreCase("enter") || args[0].equalsIgnoreCase("join")) {
if (!plugin.confi... |
diff --git a/modules/cpr/src/main/java/org/atmosphere/container/Jetty9AsyncSupportWithWebSocket.java b/modules/cpr/src/main/java/org/atmosphere/container/Jetty9AsyncSupportWithWebSocket.java
index 522bab5d3..ea65135d0 100644
--- a/modules/cpr/src/main/java/org/atmosphere/container/Jetty9AsyncSupportWithWebSocket.java
+... | false | true | public Jetty9AsyncSupportWithWebSocket(final AtmosphereConfig config) {
super(config);
String bs = config.getInitParameter(ApplicationConfig.WEBSOCKET_BUFFER_SIZE);
WebSocketPolicy policy = new WebSocketPolicy(WebSocketBehavior.SERVER);
if (bs != null) {
policy.setInputB... | public Jetty9AsyncSupportWithWebSocket(final AtmosphereConfig config) {
super(config);
String bs = config.getInitParameter(ApplicationConfig.WEBSOCKET_BUFFER_SIZE);
WebSocketPolicy policy = new WebSocketPolicy(WebSocketBehavior.SERVER);
if (bs != null) {
policy.setInputB... |
diff --git a/src/main/groovy/servlet/TemplateServlet.java b/src/main/groovy/servlet/TemplateServlet.java
index a7a5d24b2..5666a0cd1 100644
--- a/src/main/groovy/servlet/TemplateServlet.java
+++ b/src/main/groovy/servlet/TemplateServlet.java
@@ -1,520 +1,522 @@
/*
* $Id$
*
* Copyright 2003 (C) James Strachan and... | false | true | public void service(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
if (VERBOSE) {
log("Creating/getting cached template...");
}
//
// Get the template source file handle.
//
File file = super.getScriptUriAsFile(request, context);
... | public void service(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
if (VERBOSE) {
log("Creating/getting cached template...");
}
//
// Get the template source file handle.
//
File file = super.getScriptUriAsFile(request, context);
... |
diff --git a/src/main/java/jline/console/ConsoleReader.java b/src/main/java/jline/console/ConsoleReader.java
index 42eb623..4067088 100644
--- a/src/main/java/jline/console/ConsoleReader.java
+++ b/src/main/java/jline/console/ConsoleReader.java
@@ -1,1651 +1,1653 @@
/*
* Copyright (c) 2002-2007, Marc Prud'hommeaux. ... | true | true | public String readLine(String prompt, final Character mask) throws IOException {
// prompt may be null
// mask may be null
// FIXME: This blows, each call to readLine will reset the console's state which doesn't seem very nice.
this.mask = mask;
if (prompt != null) {
... | public String readLine(String prompt, final Character mask) throws IOException {
// prompt may be null
// mask may be null
// FIXME: This blows, each call to readLine will reset the console's state which doesn't seem very nice.
this.mask = mask;
if (prompt != null) {
... |
diff --git a/srcj/com/sun/electric/tool/io/output/Spice.java b/srcj/com/sun/electric/tool/io/output/Spice.java
index e02c42cf4..e2bf69124 100644
--- a/srcj/com/sun/electric/tool/io/output/Spice.java
+++ b/srcj/com/sun/electric/tool/io/output/Spice.java
@@ -1,3019 +1,3019 @@
/* -*- tab-width: 4 -*-
*
* Electric(tm)... | true | true | protected void writeCellTopology(Cell cell, CellNetInfo cni, VarContext context, Topology.MyCellInfo info)
{
// if this is the top level cell, write globals
if (cell == topCell)
{
Netlist netList = cni.getNetList();
Global.Set globals = netList.getGlobals();
int globalSize = ... | protected void writeCellTopology(Cell cell, CellNetInfo cni, VarContext context, Topology.MyCellInfo info)
{
// if this is the top level cell, write globals
if (cell == topCell)
{
Netlist netList = cni.getNetList();
Global.Set globals = netList.getGlobals();
int globalSize = ... |
diff --git a/src/test/java/com/asgeirnilsen/blog/logging/WtfLoggerTest.java b/src/test/java/com/asgeirnilsen/blog/logging/WtfLoggerTest.java
index 7caa230..67abdf6 100644
--- a/src/test/java/com/asgeirnilsen/blog/logging/WtfLoggerTest.java
+++ b/src/test/java/com/asgeirnilsen/blog/logging/WtfLoggerTest.java
@@ -1,18 +1... | true | true | public void test() {
Logger logger = LoggerFactory.getLogger(getClass());
logger.error("Oh My GOD!");
logger.warn("What The F*ck just happened?");
logger.info("JYI it worked fine.");
logger.debug("Oh by the way -- test this");
}
| public void test() {
Logger logger = LoggerFactory.getLogger(getClass());
logger.error("Oh My GOD!");
logger.warn("What The F*ck just happened?");
logger.info("JFYI it worked fine.");
logger.debug("Oh by the way -- test this");
}
|
diff --git a/baixing_quanleimu/src/com/quanleimu/util/Util.java b/baixing_quanleimu/src/com/quanleimu/util/Util.java
index bc16e112..71a5b39d 100644
--- a/baixing_quanleimu/src/com/quanleimu/util/Util.java
+++ b/baixing_quanleimu/src/com/quanleimu/util/Util.java
@@ -1,1000 +1,1000 @@
package com.quanleimu.util;
imp... | false | true | public static Bitmap scaleBitmap(Bitmap src, int outputX, int outputY, int leftMask, int topMask, int rightMask, int bottomMask){
Bitmap toRet = null;
BitmapFactory.Options o = new BitmapFactory.Options();
o.inPurgeable = true;
if(src.getWidth() > outputX){
Bitmap scaledBmp = newBitmap(src, outputX, (int)(... | public static Bitmap scaleBitmap(Bitmap src, int outputX, int outputY, int leftMask, int topMask, int rightMask, int bottomMask){
Bitmap toRet = null;
BitmapFactory.Options o = new BitmapFactory.Options();
o.inPurgeable = true;
if(src.getWidth() > outputX){
Bitmap scaledBmp = newBitmap(src, outputX, (int)(... |
diff --git a/src/uk/org/smithfamily/utils/normaliser/Process.java b/src/uk/org/smithfamily/utils/normaliser/Process.java
index dcd9224..144abf4 100644
--- a/src/uk/org/smithfamily/utils/normaliser/Process.java
+++ b/src/uk/org/smithfamily/utils/normaliser/Process.java
@@ -1,916 +1,916 @@
package uk.org.smithfamily.uti... | true | true | static void processConstants(ECUData ecuData, String line)
{
line = removeComments(line);
if (StringUtils.isEmpty(line))
{
return;
}
if (line.contains("idleadvance_rpmsdelta"))
{
int x=1;
}
if (line.contains("messageEnvelopeFormat"))
{
ecuData.setCRC32Protocol(line.contains("msEnvelope_1.0... | static void processConstants(ECUData ecuData, String line)
{
line = removeComments(line);
if (StringUtils.isEmpty(line))
{
return;
}
if (line.contains("DI_rpm"))
{
int x=1;
}
if (line.contains("messageEnvelopeFormat"))
{
ecuData.setCRC32Protocol(line.contains("msEnvelope_1.0"));
}
Matc... |
diff --git a/src/alignment/AlignmentCalculator.java b/src/alignment/AlignmentCalculator.java
index 4eb8ef9..e34bcc3 100644
--- a/src/alignment/AlignmentCalculator.java
+++ b/src/alignment/AlignmentCalculator.java
@@ -1,340 +1,352 @@
package alignment;
import java.io.BufferedWriter;
import java.io.File;
import jav... | false | true | public void fillScoreArray()
{
int col, row;
double northwest;
double west;
double north;
double best;
PointerDirection dir;
a[0][0].score = 0.0;
for (col = 1; col <= x.length(); col++)
{
a[0][col].score = localScore(scoring.gapContinue * col);
a[0][col].direction = PointerDirection.WEST;
n... | public void fillScoreArray()
{
int col, row;
double northwest;
double west;
double north;
double best;
PointerDirection dir;
a[0][0].score = 0.0;
if (x.length() >= 2)
{
a[0][1].score = localScore(scoring.gapStart + scoring.gapContinue);
a[0][1].direction = PointerDirection.WEST;
n[0][1].sco... |
diff --git a/DatabaseProyecto/src/ar/proyecto/gui/MiddlePanelSelect.java b/DatabaseProyecto/src/ar/proyecto/gui/MiddlePanelSelect.java
index 3b47846..68aa8a4 100644
--- a/DatabaseProyecto/src/ar/proyecto/gui/MiddlePanelSelect.java
+++ b/DatabaseProyecto/src/ar/proyecto/gui/MiddlePanelSelect.java
@@ -1,80 +1,82 @@
pack... | true | true | public MiddlePanelSelect(MainWindow gui) {
super(gui);
this.setLayout(new FlowLayout(FlowLayout.LEFT));
from = new JLabel("FROM TABLE :");
centralPanel = new JPanel();
centralPanel.setLayout(new CardLayout());
whereNum = new JLabel("WHERE nro_multa =");
nroMulta = new JFormattedTextField(NumberF... | public MiddlePanelSelect(MainWindow gui) {
super(gui);
this.setLayout(new FlowLayout(FlowLayout.LEFT));
from = new JLabel("FROM TABLE :");
centralPanel = new JPanel();
centralPanel.setLayout(new CardLayout());
whereNum = new JLabel("WHERE nro_multa =");
NumberFormat nroMultaFormat = NumberFormat... |
diff --git a/doxia-core/src/main/java/org/apache/maven/doxia/macro/snippet/SnippetMacro.java b/doxia-core/src/main/java/org/apache/maven/doxia/macro/snippet/SnippetMacro.java
index c00a0323..f2d2208e 100644
--- a/doxia-core/src/main/java/org/apache/maven/doxia/macro/snippet/SnippetMacro.java
+++ b/doxia-core/src/main/j... | true | true | public void execute( Sink sink, MacroRequest request )
throws MacroExecutionException
{
String id = (String) request.getParameter( "id" );
required( id, "id" );
String urlParam = (String) request.getParameter( "url" );
String fileParam = (String) request.getParameter( ... | public void execute( Sink sink, MacroRequest request )
throws MacroExecutionException
{
String id = (String) request.getParameter( "id" );
required( id, "id" );
String urlParam = (String) request.getParameter( "url" );
String fileParam = (String) request.getParameter( ... |
diff --git a/syncronizer/src/org/ossnoize/git/fastimport/Done.java b/syncronizer/src/org/ossnoize/git/fastimport/Done.java
index c091dd8..f5468cf 100644
--- a/syncronizer/src/org/ossnoize/git/fastimport/Done.java
+++ b/syncronizer/src/org/ossnoize/git/fastimport/Done.java
@@ -1,30 +1,30 @@
/***************************... | true | true | public void writeTo(OutputStream out) throws IOException {
out.write("done".getBytes());
out.flush();
}
| public void writeTo(OutputStream out) throws IOException {
out.write("done\n".getBytes());
out.flush();
}
|
diff --git a/jumble/src/com/reeltwo/jumble/mutation/MutatingClassLoader.java b/jumble/src/com/reeltwo/jumble/mutation/MutatingClassLoader.java
index 6850255..c68dfc2 100644
--- a/jumble/src/com/reeltwo/jumble/mutation/MutatingClassLoader.java
+++ b/jumble/src/com/reeltwo/jumble/mutation/MutatingClassLoader.java
@@ -1,1... | true | true | protected Class loadClass(String className, boolean resolve) throws ClassNotFoundException {
Class cl = null;
if ((cl = (Class) mClasses.get(className)) == null) {
// Classes we're forcing to be loaded by mDeferTo
for (int i = 0; i < mIgnoredPackages.length; i++) {
if (className.startsWit... | protected Class loadClass(String className, boolean resolve) throws ClassNotFoundException {
Class cl = null;
if ((cl = mClasses.get(className)) == null) {
// Classes we're forcing to be loaded by mDeferTo
for (int i = 0; i < mIgnoredPackages.length; i++) {
if (className.startsWith(mIgnor... |
diff --git a/common/src/org/riotfamily/common/io/AbstractTokenFilterReader.java b/common/src/org/riotfamily/common/io/AbstractTokenFilterReader.java
index 159c53994..b3d9adedb 100644
--- a/common/src/org/riotfamily/common/io/AbstractTokenFilterReader.java
+++ b/common/src/org/riotfamily/common/io/AbstractTokenFilterRea... | true | true | public int read() throws IOException {
if (replaceIndex != -1) {
// Fill in replacement ...
int i = replacement.charAt(replaceIndex++);
if (replaceIndex == replacement.length()) {
replaceIndex = -1;
}
return i;
}
int i = super.read();
... | public int read() throws IOException {
if (replaceIndex != -1) {
// Fill in replacement ...
int i = replacement.charAt(replaceIndex++);
if (replaceIndex == replacement.length()) {
replaceIndex = -1;
}
return i;
}
int i = super.read();
... |
diff --git a/org.dawnsci.plotting/src/org/dawnsci/plotting/PlottingActionBarManager.java b/org.dawnsci.plotting/src/org/dawnsci/plotting/PlottingActionBarManager.java
index d5b7e3908..ae873b567 100644
--- a/org.dawnsci.plotting/src/org/dawnsci/plotting/PlottingActionBarManager.java
+++ b/org.dawnsci.plotting/src/org/da... | true | true | protected MenuAction createToolActions(final ToolPageRole role, final String viewId) throws Exception {
if (!isToolsRequired) return null;
final IWorkbenchPart part = system.getPart();
if (part==null) return null;
final MenuAction toolActions = new MenuAction(role.getLabel());
toolActions.setToolTi... | protected MenuAction createToolActions(final ToolPageRole role, final String viewId) throws Exception {
if (!isToolsRequired) return null;
final IWorkbenchPart part = system.getPart();
if (part==null) return null;
final MenuAction toolActions = new MenuAction(role.getLabel());
toolActions.setToolTi... |
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java
index 99637ee6..ed159ef3 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/PackFile.java
@... | true | true | private void copyAsIs2(PackOutputStream out, LocalObjectToPack src,
WindowCursor curs) throws IOException,
StoredObjectRepresentationNotAvailableException {
final CRC32 crc1 = new CRC32();
final CRC32 crc2 = new CRC32();
final byte[] buf = out.getCopyBuffer();
// Rip apart the header so we can discover ... | private void copyAsIs2(PackOutputStream out, LocalObjectToPack src,
WindowCursor curs) throws IOException,
StoredObjectRepresentationNotAvailableException {
final CRC32 crc1 = new CRC32();
final CRC32 crc2 = new CRC32();
final byte[] buf = out.getCopyBuffer();
// Rip apart the header so we can discover ... |
diff --git a/src/strategy/game/version/beta/move/BetaMoveRuleSet.java b/src/strategy/game/version/beta/move/BetaMoveRuleSet.java
index 51f6f5a..c613f0d 100644
--- a/src/strategy/game/version/beta/move/BetaMoveRuleSet.java
+++ b/src/strategy/game/version/beta/move/BetaMoveRuleSet.java
@@ -1,255 +1,259 @@
/*************... | false | true | public FinishedMove doMove(PieceType movingType, PieceLocationDescriptor movingPiece, PieceLocationDescriptor targetPiece, Collection<PieceLocationDescriptor> redConfiguration, Collection<PieceLocationDescriptor> blueConfiguration) throws StrategyException
{
MoveResult moveResult = null;
//Checks
if (!boardR... | public FinishedMove doMove(PieceType movingType, PieceLocationDescriptor movingPiece, PieceLocationDescriptor targetPiece, Collection<PieceLocationDescriptor> redConfiguration, Collection<PieceLocationDescriptor> blueConfiguration) throws StrategyException
{
MoveResult moveResult = null;
//Checks
if (!boardR... |
diff --git a/org.osate.xtext.aadl2.errormodel/src/org/osate/xtext/aadl2/errormodel/validation/ErrorModelJavaValidator.java b/org.osate.xtext.aadl2.errormodel/src/org/osate/xtext/aadl2/errormodel/validation/ErrorModelJavaValidator.java
index 7be63f58..20984126 100644
--- a/org.osate.xtext.aadl2.errormodel/src/org/osate/... | false | true | private void checkConnectionErrorTypes(Connection conn){
ComponentImplementation cimpl = conn.getContainingComponentImpl();
ConnectionEnd src = conn.getAllSource();
Context srcCxt = conn.getAllSourceContext();
ErrorPropagation srcprop = null;
ErrorPropagation srccontain = null;
ErrorModelSubclause srcems =... | private void checkConnectionErrorTypes(Connection conn){
ComponentImplementation cimpl = conn.getContainingComponentImpl();
ConnectionEnd src = conn.getAllSource();
Context srcCxt = conn.getAllSourceContext();
ErrorPropagation srcprop = null;
ErrorPropagation srccontain = null;
ErrorModelSubclause srcems =... |
diff --git a/framework/src/main/java/org/qi4j/library/framework/constraint/NotEmptyConstraint.java b/framework/src/main/java/org/qi4j/library/framework/constraint/NotEmptyConstraint.java
index 830c0c602..53e11b783 100644
--- a/framework/src/main/java/org/qi4j/library/framework/constraint/NotEmptyConstraint.java
+++ b/f... | true | true | public boolean isValid( NotEmpty annotation, String value )
{
return (null != value) && (value.trim().length() > 0);
}
| public boolean isValid( NotEmpty annotation, String value )
{
return value.trim().length() > 0;
}
|
diff --git a/plugins/org.eclipse.acceleo.engine/src/org/eclipse/acceleo/engine/internal/environment/DynamicModulesURIConverter.java b/plugins/org.eclipse.acceleo.engine/src/org/eclipse/acceleo/engine/internal/environment/DynamicModulesURIConverter.java
index f9109d95..b34bf5e6 100644
--- a/plugins/org.eclipse.acceleo.e... | true | true | private URI dynamicNormalize(URI uri) {
URI normalized = getURIMap().get(uri);
if (normalized == null) {
BundleURLConverter conv = new BundleURLConverter(uri.toString());
if (conv.resolveBundle() != null) {
normalized = URI.createURI(conv.resolveAsPlatformPlugin());
}
}
if (normalized == null
... | private URI dynamicNormalize(URI uri) {
URI normalized = getURIMap().get(uri);
if (normalized == null && EMFPlugin.IS_ECLIPSE_RUNNING) {
BundleURLConverter conv = new BundleURLConverter(uri.toString());
if (conv.resolveBundle() != null) {
normalized = URI.createURI(conv.resolveAsPlatformPlugin());
}
... |
diff --git a/src/main/java/net/krinsoft/jobsuite/JobManager.java b/src/main/java/net/krinsoft/jobsuite/JobManager.java
index a64e407..f931f9a 100644
--- a/src/main/java/net/krinsoft/jobsuite/JobManager.java
+++ b/src/main/java/net/krinsoft/jobsuite/JobManager.java
@@ -1,260 +1,260 @@
package net.krinsoft.jobsuite;
... | true | true | public void persist() {
PreparedStatement schema = database.prepare("REPLACE INTO jobsuite_schema (id, NEXT_ID) VALUES (?, ?);");
PreparedStatement jobStatement = database.prepare("REPLACE INTO jobsuite_base (job_id, owner, name, description, expiry, reward, locked_by, finished, claimed) VALUES (?, ... | public void persist() {
PreparedStatement schema = database.prepare("REPLACE INTO jobsuite_schema (id, NEXT_ID) VALUES (?, ?);");
PreparedStatement jobStatement = database.prepare("REPLACE INTO jobsuite_base (job_id, owner, name, description, expiry, reward, locked_by, finished, claimed) VALUES (?, ... |
diff --git a/com.mobilesorcery.sdk.builder.iphoneos/src/com/mobilesorcery/sdk/builder/iphoneos/IPhoneOSPackager.java b/com.mobilesorcery.sdk.builder.iphoneos/src/com/mobilesorcery/sdk/builder/iphoneos/IPhoneOSPackager.java
index 35c5afbe..2140df11 100644
--- a/com.mobilesorcery.sdk.builder.iphoneos/src/com/mobilesorcer... | true | true | public void createPackage ( MoSyncProject project,
IBuildVariant variant,
IBuildResult buildResult )
throws CoreException
{
String appName;
String version;
String company;
IconManager icon;
DefaultPackager intern... | public void createPackage ( MoSyncProject project,
IBuildVariant variant,
IBuildResult buildResult )
throws CoreException
{
String appName;
String version;
String company;
IconManager icon;
DefaultPackager intern... |
diff --git a/src/drbd/gui/ClusterBrowser.java b/src/drbd/gui/ClusterBrowser.java
index e4ae11e3..1d9ee103 100644
--- a/src/drbd/gui/ClusterBrowser.java
+++ b/src/drbd/gui/ClusterBrowser.java
@@ -1,7250 +1,7254 @@
/*
* This file is part of DRBD Management Console by LINBIT HA-Solutions GmbH
* written by Rasto Levri... | true | true | public List<UpdatableItem> createPopup() {
final List<UpdatableItem> items = new ArrayList<UpdatableItem>();
/* remove service */
final MyMenuItem removeMenuItem = new MyMenuItem(
Tools.getString(
"ClusterBrowser.Hb.Remo... | public List<UpdatableItem> createPopup() {
final List<UpdatableItem> items = new ArrayList<UpdatableItem>();
/* remove service */
final MyMenuItem removeMenuItem = new MyMenuItem(
Tools.getString(
"ClusterBrowser.Hb.Remo... |
diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/annotations/TestVersion.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/annotations/TestVersion.java
index 3106e02fa..291936928 100644
--- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa... | true | true | public void testVersionTimestamp() {
// ensure that some time has passed
// since the records were created
try {
Thread.sleep(50);
}
catch (InterruptedException e) {
// do nothing
}
EntityManager em1 = emf.createEntityManager()... | public void testVersionTimestamp() {
// ensure that some time has passed
// since the records were created
try {
Thread.sleep(5000);
}
catch (InterruptedException e) {
// do nothing
}
EntityManager em1 = emf.createEntityManager... |
diff --git a/src/main/java/hudson/plugins/clearcase/ClearToolExec.java b/src/main/java/hudson/plugins/clearcase/ClearToolExec.java
index c35b019..82c29c1 100755
--- a/src/main/java/hudson/plugins/clearcase/ClearToolExec.java
+++ b/src/main/java/hudson/plugins/clearcase/ClearToolExec.java
@@ -1,180 +1,180 @@
package hu... | true | true | public Reader lshistory(String format, Date lastBuildDate, String viewName,
String branch, String[] viewPaths) throws IOException,
InterruptedException {
SimpleDateFormat formatter = new SimpleDateFormat("d-MMM.HH:mm:ss");
ArgumentListBuilder cmd = new ArgumentListBuilder();
cmd.add("lshistory");
cmd.add... | public Reader lshistory(String format, Date lastBuildDate, String viewName,
String branch, String[] viewPaths) throws IOException,
InterruptedException {
SimpleDateFormat formatter = new SimpleDateFormat("d-MMM.HH:mm:ss");
ArgumentListBuilder cmd = new ArgumentListBuilder();
cmd.add("lshistory");
cmd.add... |
diff --git a/src/edacc/model/ConfigurationScenarioDAO.java b/src/edacc/model/ConfigurationScenarioDAO.java
index 633f8c5..2bb7c5f 100755
--- a/src/edacc/model/ConfigurationScenarioDAO.java
+++ b/src/edacc/model/ConfigurationScenarioDAO.java
@@ -1,154 +1,154 @@
package edacc.model;
import java.sql.PreparedStatement;... | true | true | public static void save(ConfigurationScenario cs) throws SQLException {
boolean autocommit = DatabaseConnector.getInstance().getConn().getAutoCommit();
try {
DatabaseConnector.getInstance().getConn().setAutoCommit(false);
if (cs.isNew()) {
PreparedStatement st... | public static void save(ConfigurationScenario cs) throws SQLException {
boolean autocommit = DatabaseConnector.getInstance().getConn().getAutoCommit();
try {
DatabaseConnector.getInstance().getConn().setAutoCommit(false);
if (cs.isNew()) {
PreparedStatement st... |
diff --git a/src/main/java/com/objectstyle/db/migration/kit/MigrationsRunner.java b/src/main/java/com/objectstyle/db/migration/kit/MigrationsRunner.java
index bbf8952..3cc0da0 100644
--- a/src/main/java/com/objectstyle/db/migration/kit/MigrationsRunner.java
+++ b/src/main/java/com/objectstyle/db/migration/kit/Migration... | true | true | private static String[] getMigrationPaths() {
String[] migrationPaths = DEFAULT_MIGRATION_PATHS;
String migrationPathsStr = System.getProperty("paths");
if (migrationPaths != null) {
migrationPaths = migrationPathsStr.split(":");
for (int i = 0; i < migrationPaths.len... | private static String[] getMigrationPaths() {
String[] migrationPaths = DEFAULT_MIGRATION_PATHS;
String migrationPathsStr = System.getProperty("paths");
if (migrationPathsStr != null) {
migrationPaths = migrationPathsStr.split(":");
for (int i = 0; i < migrationPaths.... |
diff --git a/src/net/cactii/flash2/FlashDevice.java b/src/net/cactii/flash2/FlashDevice.java
index 96d3770..75c7eb3 100644
--- a/src/net/cactii/flash2/FlashDevice.java
+++ b/src/net/cactii/flash2/FlashDevice.java
@@ -1,135 +1,137 @@
package net.cactii.flash2;
import android.os.Build;
import java.io.FileWriter;
... | true | true | public synchronized void setFlashMode(int mode) {
try {
int value = mode;
switch (mode) {
case STROBE:
value = OFF;
break;
case DEATH_RAY:
if (mValueDeathRay >= 0) {
va... | public synchronized void setFlashMode(int mode) {
try {
int value = mode;
switch (mode) {
case STROBE:
value = OFF;
break;
case DEATH_RAY:
if (mValueDeathRay >= 0) {
va... |
diff --git a/core/src/visad/trunk/DelaunayWatson.java b/core/src/visad/trunk/DelaunayWatson.java
index c81bdd187..f5122ef43 100644
--- a/core/src/visad/trunk/DelaunayWatson.java
+++ b/core/src/visad/trunk/DelaunayWatson.java
@@ -1,367 +1,367 @@
//
// DelaunayWatson.java
//
/*
VisAD system for interactive analysi... | true | true | public DelaunayWatson(float[][] samples) throws VisADException {
int dim = samples.length;
int nrs = samples[0].length;
float xx, yy, bgs;
int i0, i1, i2, i3, i4, i5, i6, i7, i8, i9, i11;
int[] ii = new int[3];
int dm, dim1, nts, tsz;
float[][] mxy = new float[2][dim];
for (i0=0; i0<... | public DelaunayWatson(float[][] samples) throws VisADException {
int dim = samples.length;
int nrs = samples[0].length;
float xx, yy, bgs;
int i0, i1, i2, i3, i4, i5, i6, i7, i8, i9, i11;
int[] ii = new int[3];
int dm, dim1, nts, tsz;
float[][] mxy = new float[2][dim];
for (i0=0; i0<... |
diff --git a/src/com/amd/myhomework/adapters/SimpleListAdapter.java b/src/com/amd/myhomework/adapters/SimpleListAdapter.java
index 4e23381..f89ee7d 100644
--- a/src/com/amd/myhomework/adapters/SimpleListAdapter.java
+++ b/src/com/amd/myhomework/adapters/SimpleListAdapter.java
@@ -1,65 +1,65 @@
package com.amd.myhomewo... | false | true | public View getView(int position, View convertView, ViewGroup parent) {
LayoutInflater vi = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View view = vi.inflate(R.layout.adapter_item, null);
MyHomeworkModel model = items.get(position);
TextView txtGroup = (... | public View getView(int position, View convertView, ViewGroup parent) {
LayoutInflater vi = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View view = vi.inflate(R.layout.adapter_item, null);
MyHomeworkModel model = items.get(position);
TextView txtGroup = (... |
diff --git a/src/edu/mines/alterego/CharacterDBHelper.java b/src/edu/mines/alterego/CharacterDBHelper.java
index 9c85d4e..bedd98b 100644
--- a/src/edu/mines/alterego/CharacterDBHelper.java
+++ b/src/edu/mines/alterego/CharacterDBHelper.java
@@ -1,118 +1,118 @@
package edu.mines.alterego;
import android.content.Cont... | true | true | public void onCreate(SQLiteDatabase database) {
/*
* Game table: Base unifying game_id construct
* The game is used to reference
*/
database.execSQL("CREATE TABLE IF NOT EXISTS game ( " +
"game_id INTEGER PRIMARY KEY AUTOINCREMENT," +
"nam... | public void onCreate(SQLiteDatabase database) {
/*
* Game table: Base unifying game_id construct
* The game is used to reference
*/
database.execSQL("CREATE TABLE IF NOT EXISTS game ( " +
"game_id INTEGER PRIMARY KEY AUTOINCREMENT," +
"nam... |
diff --git a/sphinx4/edu/cmu/sphinx/frontend/DataProcessor.java b/sphinx4/edu/cmu/sphinx/frontend/DataProcessor.java
index e390d99db..9f6decc6b 100644
--- a/sphinx4/edu/cmu/sphinx/frontend/DataProcessor.java
+++ b/sphinx4/edu/cmu/sphinx/frontend/DataProcessor.java
@@ -1,228 +1,230 @@
/*
* Copyright 1999-2002 Carnegi... | true | true | protected void signalCheck(Data data) {
if (!inUtterance) {
if (data != null) {
if (data.hasSignal(Signal.UTTERANCE_START)) {
inUtterance = true;
} else {
throw new Error(getName() + ": no UTTERANCE_START");
}
}
} else {
if (data == null) {
throw new Error
(g... | protected void signalCheck(Data data) {
if (!inUtterance) {
if (data != null) {
if (data.hasSignal(Signal.UTTERANCE_START)) {
inUtterance = true;
} else if (data.hasSignal(Signal.UTTERANCE_END)) {
throw new Error(getName() + ": too many UTTERANCE_END.");
} else {
... |
diff --git a/src/Map.java b/src/Map.java
index f348595..bf5ab26 100644
--- a/src/Map.java
+++ b/src/Map.java
@@ -1,77 +1,77 @@
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;
public class Map {
private Tile[][] map;
private File inputfile;
... | true | true | private void readmap() {
while(scan.hasNext()){
for(int j = 0; j< yDimension; j++){
for(int i = 0; i< xDimension; i++){
int item = scan.nextInt();
if(item==17){
character = new Character(i*BLOCK_SIZE,j*BLOCK_SIZE);
map[i][j] = new BackgroundTile(BLOCK_SIZE,BLOCK_SIZE,i*BLOCK_SIZE,j*B... | private void readmap() {
while(scan.hasNext()){
for(int j = 0; j< yDimension; j++){
for(int i = 0; i< xDimension; i++){
int item = scan.nextInt();
if(item==17){
character = new Character(i*BLOCK_SIZE,j*BLOCK_SIZE);
map[i][j] = new BackgroundTile(BLOCK_SIZE,BLOCK_SIZE,i*BLOCK_SIZE,j*B... |
diff --git a/src/me/mcandze/plugin/zeareas/area/Area2D.java b/src/me/mcandze/plugin/zeareas/area/Area2D.java
index 228349f..21487cf 100644
--- a/src/me/mcandze/plugin/zeareas/area/Area2D.java
+++ b/src/me/mcandze/plugin/zeareas/area/Area2D.java
@@ -1,82 +1,82 @@
package me.mcandze.plugin.zeareas.area;
import java.u... | true | true | public BlockLocation[] getCorners() {
BlockLocation[] list = new BlockLocation[4];
list[0] = this.location1;
list[1] = this.location2;
list[2] = new BlockLocation(Math.max(list[0].getX(), list[1].getX()),
Math.max(list[0].getZ(), list[1].getZ()),
list[0].getY(), list[0].getWorld());
list[3] = new B... | public BlockLocation[] getCorners() {
BlockLocation[] list = new BlockLocation[4];
list[0] = this.location1;
list[1] = this.location2;
list[2] = new BlockLocation(Math.max(list[0].getX(), list[1].getX()),
Math.max(list[0].getZ(), list[1].getZ()),
list[0].getY(), list[0].getWorld());
list[3] = new B... |
diff --git a/source/RMG/jing/rxnSys/ReactionModelGenerator.java b/source/RMG/jing/rxnSys/ReactionModelGenerator.java
index 8b713a8c..ade45cd7 100644
--- a/source/RMG/jing/rxnSys/ReactionModelGenerator.java
+++ b/source/RMG/jing/rxnSys/ReactionModelGenerator.java
@@ -1,5238 +1,5242 @@
//////////////////////////////////... | false | true | public void initializeReactionSystems() throws InvalidSymbolException, IOException {
//#[ operation initializeReactionSystem()
try {
String initialConditionFile = System.getProperty("jing.rxnSys.ReactionModelGenerator.conditionFile");
if (initialConditionFile == null) {
L... | public void initializeReactionSystems() throws InvalidSymbolException, IOException {
//#[ operation initializeReactionSystem()
try {
String initialConditionFile = System.getProperty("jing.rxnSys.ReactionModelGenerator.conditionFile");
if (initialConditionFile == null) {
L... |
diff --git a/src/main/java/com/github/rnewson/couchdb/lucene/rhino/RhinoDocument.java b/src/main/java/com/github/rnewson/couchdb/lucene/rhino/RhinoDocument.java
index 2009e61..c0583c1 100644
--- a/src/main/java/com/github/rnewson/couchdb/lucene/rhino/RhinoDocument.java
+++ b/src/main/java/com/github/rnewson/couchdb/luc... | true | true | public static void jsFunction_add(final Context cx, final Scriptable thisObj, final Object[] args, final Function funObj) {
final RhinoDocument doc = checkInstance(thisObj);
if (args.length < 1 || args.length > 2) {
throw Context.reportRuntimeError("Invalid number of arguments.");
... | public static void jsFunction_add(final Context cx, final Scriptable thisObj, final Object[] args, final Function funObj) {
final RhinoDocument doc = checkInstance(thisObj);
if (args.length < 1 || args.length > 2) {
throw Context.reportRuntimeError("Invalid number of arguments.");
... |
diff --git a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/GeneratorBaseModule.java b/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generator/base/GeneratorBaseModule.java
index 16ecbfa0..3c5993ad 100644
--- a/plugins/org.eclipse.etrice.generator/src/org/eclipse/etrice/generat... | true | true | public void configure(Binder binder) {
binder.bind(ResourceSet.class).to(ResourceSetImpl.class);
binder.bind(Logger.class).in(Singleton.class);
binder.bind(ILineOutputLogger.class).to(Logger.class);
binder.bind(Diagnostician.class).in(Singleton.class);
binder.bind(IDiagnostician.class).to(Diagnostician.c... | public void configure(Binder binder) {
binder.bind(ResourceSet.class).to(ResourceSetImpl.class);
binder.bind(Logger.class).in(Singleton.class);
binder.bind(ILineOutputLogger.class).to(Logger.class);
binder.bind(ILogger.class).to(Logger.class);
binder.bind(Diagnostician.class).in(Singleton.class);
binde... |
diff --git a/src/frontend/org/voltdb/RealVoltDB.java b/src/frontend/org/voltdb/RealVoltDB.java
index 53e574843..71e99ea81 100644
--- a/src/frontend/org/voltdb/RealVoltDB.java
+++ b/src/frontend/org/voltdb/RealVoltDB.java
@@ -1,2256 +1,2254 @@
/* This file is part of VoltDB.
* Copyright (C) 2008-2012 VoltDB Inc.
*
... | true | true | public void initialize(VoltDB.Configuration config) {
synchronized(m_startAndStopLock) {
// check that this is a 64 bit VM
if (System.getProperty("java.vm.name").contains("64") == false) {
hostLog.fatal("You are running on an unsupported (probably 32 bit) JVM. Exiting... | public void initialize(VoltDB.Configuration config) {
synchronized(m_startAndStopLock) {
// check that this is a 64 bit VM
if (System.getProperty("java.vm.name").contains("64") == false) {
hostLog.fatal("You are running on an unsupported (probably 32 bit) JVM. Exiting... |
diff --git a/src/main/java/com/attask/jenkins/ScriptBuilder.java b/src/main/java/com/attask/jenkins/ScriptBuilder.java
index 5243ff5..cc33076 100644
--- a/src/main/java/com/attask/jenkins/ScriptBuilder.java
+++ b/src/main/java/com/attask/jenkins/ScriptBuilder.java
@@ -1,369 +1,369 @@
package com.attask.jenkins;
imp... | true | true | private int executeScript(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener, CommandInterpreter command) throws InterruptedException, IOException {
FilePath ws = build.getWorkspace();
FilePath script = null;
try {
try {
script = command.createScriptFile(ws);
} catch (IOException e) {... | private int executeScript(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener, CommandInterpreter command) throws InterruptedException, IOException {
FilePath ws = build.getWorkspace();
FilePath script = null;
try {
try {
script = command.createScriptFile(ws);
} catch (IOException e) {... |
diff --git a/src/common/com/github/AbrarSyed/SecretRooms/BlockCamoFull.java b/src/common/com/github/AbrarSyed/SecretRooms/BlockCamoFull.java
index 619f3dd..c6226c9 100644
--- a/src/common/com/github/AbrarSyed/SecretRooms/BlockCamoFull.java
+++ b/src/common/com/github/AbrarSyed/SecretRooms/BlockCamoFull.java
@@ -1,441 +... | true | true | private int[] getIdCamoStyle(World world, int x, int y, int z)
{
int[] id = new int[]{0, 0, 0 , 0};
int[][] plusIds = new int[6][4];
Block block;
// Only PLUS sign id checks.
plusIds[0] = getInfo(world, x, y-1, z); // y-1
plusIds[1] = getInfo(w... | private int[] getIdCamoStyle(World world, int x, int y, int z)
{
int[] id = new int[]{0, 0, 0 , 0};
int[][] plusIds = new int[6][4];
Block block;
// Only PLUS sign id checks.
plusIds[0] = getInfo(world, x, y-1, z); // y-1
plusIds[1] = getInfo(w... |
diff --git a/src/test/java/org/atlasapi/beans/JaxbXmlTranslatorTest.java b/src/test/java/org/atlasapi/beans/JaxbXmlTranslatorTest.java
index b297e211f..1b4f7d866 100644
--- a/src/test/java/org/atlasapi/beans/JaxbXmlTranslatorTest.java
+++ b/src/test/java/org/atlasapi/beans/JaxbXmlTranslatorTest.java
@@ -1,120 +1,121 @@... | true | true | public void testCanOutputSimpleItemObjectModelAsXml() throws Exception {
Set<Object> graph = Sets.newHashSet();
Item item = new Item();
item.setTitle("Blue Peter");
item.setUri("http://www.bbc.co.uk/programmes/bluepeter");
item.setAliases(Sets.newHashSet("http://www.bbc.co.uk/p/bluepeter"));
Location loca... | public void testCanOutputSimpleItemObjectModelAsXml() throws Exception {
Set<Object> graph = Sets.newHashSet();
Item item = new Item();
item.setTitle("Blue Peter");
item.setUri("http://www.bbc.co.uk/programmes/bluepeter");
item.setAliases(Sets.newHashSet("http://www.bbc.co.uk/p/bluepeter"));
Location loca... |
diff --git a/src/com/yahoo/platform/yui/compressor/JavaScriptCompressor.java b/src/com/yahoo/platform/yui/compressor/JavaScriptCompressor.java
index 43a83fd..d2f77ef 100644
--- a/src/com/yahoo/platform/yui/compressor/JavaScriptCompressor.java
+++ b/src/com/yahoo/platform/yui/compressor/JavaScriptCompressor.java
@@ -1,1... | true | true | private StringBuffer printSymbolTree(int linebreakpos, boolean preserveAllSemiColons)
throws IOException {
offset = 0;
braceNesting = 0;
scopes.clear();
String symbol;
JavaScriptToken token;
JavaScriptToken lastToken = getToken(0);
ScriptOrFnScop... | private StringBuffer printSymbolTree(int linebreakpos, boolean preserveAllSemiColons)
throws IOException {
offset = 0;
braceNesting = 0;
scopes.clear();
String symbol;
JavaScriptToken token;
JavaScriptToken lastToken = getToken(0);
ScriptOrFnScop... |
diff --git a/src/DVN-web/src/edu/harvard/iq/dvn/core/web/BasicSearchFragment.java b/src/DVN-web/src/edu/harvard/iq/dvn/core/web/BasicSearchFragment.java
index 44aee462..01f9bbce 100644
--- a/src/DVN-web/src/edu/harvard/iq/dvn/core/web/BasicSearchFragment.java
+++ b/src/DVN-web/src/edu/harvard/iq/dvn/core/web/BasicSearc... | true | true | public String search_action() {
searchField = (searchField == null) ? "any" : searchField; // default searchField, in case no dropdown
List searchTerms = new ArrayList();
SearchTerm st = new SearchTerm();
st.setFieldName( searchField );
st.setValue( searchValue );
... | public String search_action() {
searchField = (searchField == null) ? "any" : searchField; // default searchField, in case no dropdown
List searchTerms = new ArrayList();
SearchTerm st = new SearchTerm();
st.setFieldName( searchField );
st.setValue( searchValue );
... |
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/EclipseTouchpoint.java b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/EclipseTouchpoint.java
index c79f858d4..0fba62685 100644
--- a/bundles/o... | true | true | private IInstallableUnit prepareIU(IInstallableUnit iu, IProfile profile) {
Class c = null;
try {
c = Class.forName("org.eclipse.equinox.spi.p2.publisher.PublisherHelper"); //$NON-NLS-1$
if (c != null)
c = Class.forName("org.eclipse.osgi.service.resolver.PlatformAdmin"); //$NON-NLS-1$
} catch (ClassNo... | private IInstallableUnit prepareIU(IInstallableUnit iu, IProfile profile) {
Class c = null;
try {
c = Class.forName("org.eclipse.equinox.p2.publisher.eclipse.BundlesAction"); //$NON-NLS-1$
if (c != null)
c = Class.forName("org.eclipse.osgi.service.resolver.PlatformAdmin"); //$NON-NLS-1$
} catch (Class... |
diff --git a/src/main/java/com/metaweb/gridworks/clustering/binning/BinningClusterer.java b/src/main/java/com/metaweb/gridworks/clustering/binning/BinningClusterer.java
index b83ca760..adb36009 100644
--- a/src/main/java/com/metaweb/gridworks/clustering/binning/BinningClusterer.java
+++ b/src/main/java/com/metaweb/grid... | true | true | public boolean visit(Project project, int rowIndex, Row row, boolean contextual) {
Cell cell = row.cells.get(_colindex);
if (cell != null && cell.value != null) {
String v = cell.value.toString();
String s = (v instanceof String) ? ((String) v) : v.toStrin... | public boolean visit(Project project, int rowIndex, Row row, boolean contextual) {
Cell cell = row.getCell(_colindex);
if (cell != null && cell.value != null) {
String v = cell.value.toString();
String s = (v instanceof String) ? ((String) v) : v.toString(... |
diff --git a/src/app/client/RetailStoreClientImplDriver3.java b/src/app/client/RetailStoreClientImplDriver3.java
index f2cb715..a9c3151 100644
--- a/src/app/client/RetailStoreClientImplDriver3.java
+++ b/src/app/client/RetailStoreClientImplDriver3.java
@@ -1,32 +1,32 @@
package app.client;
import java.io.IOExceptio... | true | true | public void run() {
try {
for (int i = 0; i != 60; i++) {
System.out.println("Attempting to purhcase 2 of 1000");
purchaseItem(1000, 1); // should succeed
Thread.sleep(1000);
}
} catch (NoSuchItem e) {
System.err.println(getCustomerID() + ": The requested item does not exist!");
} catch (I... | public void run() {
try {
for (int i = 0; i != 60; i++) {
System.out.println("Attempting to purchase 1 of 1000");
purchaseItem(1000, 1); // should succeed
Thread.sleep(1000);
}
} catch (NoSuchItem e) {
System.err.println(getCustomerID() + ": The requested item does not exist!");
} catch (I... |
diff --git a/plugins/org.eclipse.acceleo.parser/src/org/eclipse/acceleo/internal/parser/compiler/AcceleoParserUtils.java b/plugins/org.eclipse.acceleo.parser/src/org/eclipse/acceleo/internal/parser/compiler/AcceleoParserUtils.java
index 02d4c5af..47014013 100644
--- a/plugins/org.eclipse.acceleo.parser/src/org/eclipse/... | true | true | public static Set<URI> getAllModules(URI jar) {
Set<URI> modulesURIs = new LinkedHashSet<URI>();
try {
String jarPath = jar.toString();
String osName = System.getProperty("os.name"); //$NON-NLS-1$
final String file = "file:"; //$NON-NLS-1$
if (osName.indexOf("win") >= 0) { //$NON-NLS-1$
// Windows... | public static Set<URI> getAllModules(URI jar) {
Set<URI> modulesURIs = new LinkedHashSet<URI>();
try {
String jarPath = jar.toString();
String osName = System.getProperty("os.name"); //$NON-NLS-1$
final String file = "file:"; //$NON-NLS-1$
if (osName.indexOf("win") >= 0 || osName.indexOf("Win") >= 0) ... |
diff --git a/ImportPlugin/src/org/gephi/io/importer/plugin/database/EdgeListDatabaseImpl.java b/ImportPlugin/src/org/gephi/io/importer/plugin/database/EdgeListDatabaseImpl.java
index df75131be..5ce6bc4b7 100644
--- a/ImportPlugin/src/org/gephi/io/importer/plugin/database/EdgeListDatabaseImpl.java
+++ b/ImportPlugin/src... | false | true | public EdgeListDatabaseImpl() {
//Default node associations
properties.addNodePropertyAssociation(NodeProperties.ID, "id");
properties.addNodePropertyAssociation(NodeProperties.LABEL, "label");
properties.addNodePropertyAssociation(NodeProperties.X, "x");
properties.addNodeP... | public EdgeListDatabaseImpl() {
//Default node associations
properties.addNodePropertyAssociation(NodeProperties.ID, "id");
properties.addNodePropertyAssociation(NodeProperties.LABEL, "label");
properties.addNodePropertyAssociation(NodeProperties.X, "x");
properties.addNodeP... |
diff --git a/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNFileUtil.java b/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNFileUtil.java
index e020789c3..0a289c698 100644
--- a/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNFileUtil.java
+++ b/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNFileUtil.java
@@ -1,1... | true | true | public static void copyFile(File src, File dst, boolean safe) throws SVNException {
if (src == null || dst == null) {
return;
}
if (src.equals(dst)) {
return;
}
if (!src.exists()) {
dst.delete();
return;
}
File t... | public static void copyFile(File src, File dst, boolean safe) throws SVNException {
if (src == null || dst == null) {
return;
}
if (src.equals(dst)) {
return;
}
if (!src.exists()) {
dst.delete();
return;
}
File t... |
diff --git a/com.mountainminds.eclemma.core/src/com/mountainminds/eclemma/internal/core/instr/InstrMarker.java b/com.mountainminds.eclemma.core/src/com/mountainminds/eclemma/internal/core/instr/InstrMarker.java
index c2cfff6..dca6aad 100644
--- a/com.mountainminds.eclemma.core/src/com/mountainminds/eclemma/internal/cor... | true | true | public static void mark(IPath path) throws CoreException {
IFolder folder = getFolder(path);
if (folder != null) {
IFile marker = folder.getFile(MARKERFILE);
marker.create(getMarkerContent(), true, null);
marker.setDerived(true);
}
}
| public static void mark(IPath path) throws CoreException {
IFolder folder = getFolder(path);
if (folder != null) {
IFile marker = folder.getFile(MARKERFILE);
if (!marker.exists()) {
marker.create(getMarkerContent(), true, null);
marker.setDerived(true);
}
}
}
|
diff --git a/src/org/eclipse/jface/viewers/WrappedViewerLabelProvider.java b/src/org/eclipse/jface/viewers/WrappedViewerLabelProvider.java
index 46faa884..bc00609b 100644
--- a/src/org/eclipse/jface/viewers/WrappedViewerLabelProvider.java
+++ b/src/org/eclipse/jface/viewers/WrappedViewerLabelProvider.java
@@ -1,205 +1,... | false | true | public void update(ViewerCell cell) {
if(viewerLabelProvider == null && treePathLabelProvider == null){
super.update(cell);
return;
}
ViewerLabel label = new ViewerLabel(cell.getText(), cell.getImage());
if (viewerLabelProvider != null) {
viewerLabelProvider.updateLabel(label, cell.getElement())... | public void update(ViewerCell cell) {
if(viewerLabelProvider == null && treePathLabelProvider == null){
super.update(cell);
return;
}
ViewerLabel label = new ViewerLabel(cell.getText(), cell.getImage());
if (treePathLabelProvider != null) {
TreePath treePath = cell.getViewerRow().getTreePath();
... |
diff --git a/AdvancedMap3D/src/main/java/com/nutiteq/utils/WkbRead.java b/AdvancedMap3D/src/main/java/com/nutiteq/utils/WkbRead.java
index b2f3dd7..afee077 100644
--- a/AdvancedMap3D/src/main/java/com/nutiteq/utils/WkbRead.java
+++ b/AdvancedMap3D/src/main/java/com/nutiteq/utils/WkbRead.java
@@ -1,224 +1,224 @@
packag... | true | true | public static Geometry[] readWkb(ByteArrayInputStream is, Object userData){
int endinanByte = is.read();
ByteOrder endian;
if(endinanByte == 0){
endian = java.nio.ByteOrder.BIG_ENDIAN;
}else{
endian = java.nio.ByteOrder.LITTLE_ENDIAN;
}
int type = readInt(is,endian);
int geometryType = type & 0x... | public static Geometry[] readWkb(ByteArrayInputStream is, Object userData){
int endinanByte = is.read();
ByteOrder endian;
if(endinanByte == 0){
endian = java.nio.ByteOrder.BIG_ENDIAN;
}else{
endian = java.nio.ByteOrder.LITTLE_ENDIAN;
}
int type = readInt(is,endian);
int geometryType = type & 0x... |
diff --git a/ModeratorGui/src/me/heldplayer/ModeratorGui/ReviewCommand.java b/ModeratorGui/src/me/heldplayer/ModeratorGui/ReviewCommand.java
index b0ab3ef..257f2e6 100644
--- a/ModeratorGui/src/me/heldplayer/ModeratorGui/ReviewCommand.java
+++ b/ModeratorGui/src/me/heldplayer/ModeratorGui/ReviewCommand.java
@@ -1,213 +... | false | true | public boolean onCommand(CommandSender sender, Command command, String alias, String[] args) {
if (args.length <= 0) {
int rowCount = main.getDatabase().find(Lists.class).findRowCount();
String[] results = new String[13];
results[0] = ChatColor.GRAY + "Types: " + ChatColor.YELLOW + "Issue " + ChatColor.DA... | public boolean onCommand(CommandSender sender, Command command, String alias, String[] args) {
if (args.length <= 0) {
int rowCount = main.getDatabase().find(Lists.class).findRowCount();
String[] results = new String[13];
results[0] = ChatColor.GRAY + "Types: " + ChatColor.YELLOW + "Issue " + ChatColor.DA... |
diff --git a/src/main/java/net/catharos/lib/mysql/QueryBuilder.java b/src/main/java/net/catharos/lib/mysql/QueryBuilder.java
index 1847b2d..b618194 100644
--- a/src/main/java/net/catharos/lib/mysql/QueryBuilder.java
+++ b/src/main/java/net/catharos/lib/mysql/QueryBuilder.java
@@ -1,113 +1,113 @@
package net.catharos.l... | false | true | public String update(String table, Object[] keys, Object[] values) {
Validate.notEmpty(keys);
Validate.notEmpty(values);
Validate.isTrue(keys.length > values.length);
StringBuilder str = new StringBuilder("UPDATE ");
str.append(getTableName(table)).append(" SET ");
if(values.length == 1) {
str.app... | public String update(String table, String[] keys, Object[] values) {
Validate.notEmpty(keys);
Validate.notEmpty(values);
Validate.isTrue(keys.length >= values.length);
StringBuilder str = new StringBuilder("UPDATE ");
str.append(getTableName(table)).append(" SET ");
if(values.length == 1) {
str.ap... |
diff --git a/TestScript.java b/TestScript.java
index 726439d..e91bd91 100644
--- a/TestScript.java
+++ b/TestScript.java
@@ -1,90 +1,91 @@
package com.redhat.qe.auto.testng;
import java.io.File;
import java.io.FileInputStream;
import java.util.List;
import java.util.Properties;
import java.util.Set;
import jav... | true | true | public TestScript() {
if (initialized) return; //only need to run this stuff once per jvm
String propFile ="";
//load log properties
try{
Thread.currentThread().setContextClassLoader(ClassLoader.getSystemClassLoader());
propFile = System.getProperty("log.propertiesfile", defaultLogProperti... | public TestScript() {
if (initialized) return; //only need to run this stuff once per jvm
String propFile ="";
//load log properties
try{
Thread.currentThread().setContextClassLoader(ClassLoader.getSystemClassLoader());
propFile = System.getProperty("log.propertiesfile", defaultLogProperti... |
diff --git a/srcj/com/sun/electric/tool/io/input/LTSpiceOut.java b/srcj/com/sun/electric/tool/io/input/LTSpiceOut.java
index 7cbb52b6a..6676812c0 100644
--- a/srcj/com/sun/electric/tool/io/input/LTSpiceOut.java
+++ b/srcj/com/sun/electric/tool/io/input/LTSpiceOut.java
@@ -1,319 +1,319 @@
/* -*- tab-width: 4 -*-
*
... | true | true | private Stimuli readRawLTSpiceFile(Cell cell)
throws IOException
{
complexValues = false;
boolean realValues = false;
int signalCount = -1;
String[] signalNames = null;
int rowCount = -1;
AnalogAnalysis.AnalysisType aType = AnalogAnalysis.ANALYSIS_TRANS;
for(;;)
{
String line = getLineFromBinary(... | private Stimuli readRawLTSpiceFile(Cell cell)
throws IOException
{
complexValues = false;
boolean realValues = false;
int signalCount = -1;
String[] signalNames = null;
int rowCount = -1;
AnalogAnalysis.AnalysisType aType = AnalogAnalysis.ANALYSIS_TRANS;
for(;;)
{
String line = getLineFromBinary(... |
diff --git a/src/main/java/fr/msch/wissl/launcher/Launcher.java b/src/main/java/fr/msch/wissl/launcher/Launcher.java
index 3e20580..16adf9f 100644
--- a/src/main/java/fr/msch/wissl/launcher/Launcher.java
+++ b/src/main/java/fr/msch/wissl/launcher/Launcher.java
@@ -1,234 +1,239 @@
/* This file is part of Wissl - Copyri... | true | true | public static void main(String[] args) {
File configFile = null;
int port = 8080;
boolean verbose = false;
for (int i = 0; i < args.length; i++) {
String str = args[i];
if ("-c".equals(str)) {
i++;
if (args.length == i) {
error("Option -c requires an argument");
} else {
configFil... | public static void main(String[] args) {
File configFile = null;
int port = 8080;
boolean verbose = false;
for (int i = 0; i < args.length; i++) {
String str = args[i];
if ("-c".equals(str)) {
i++;
if (args.length == i) {
error("Option -c requires an argument");
} else {
configFil... |
diff --git a/eol-globi-data-tool/src/main/java/org/eol/globi/service/EcoRegionFinderProxy.java b/eol-globi-data-tool/src/main/java/org/eol/globi/service/EcoRegionFinderProxy.java
index aad4c71b..a9457aec 100644
--- a/eol-globi-data-tool/src/main/java/org/eol/globi/service/EcoRegionFinderProxy.java
+++ b/eol-globi-data-... | true | true | public Collection<EcoRegion> findEcoRegion(double lat, double lng) throws EcoRegionFinderException {
if (finders == null) {
finders = factory.createAll();
}
Collection<EcoRegion> regions = null;
for (EcoRegionFinder finder : finders) {
Collection<EcoRegion> ec... | public Collection<EcoRegion> findEcoRegion(double lat, double lng) throws EcoRegionFinderException {
if (finders == null) {
finders = factory.createAll();
}
Collection<EcoRegion> regions = null;
for (EcoRegionFinder finder : finders) {
Collection<EcoRegion> ec... |
diff --git a/designs/cinematic/plugins/org.obeonetwork.dsl.cinematic.design/src/org/obeonetwork/dsl/cinematic/design/services/CinematicToolkitsServices.java b/designs/cinematic/plugins/org.obeonetwork.dsl.cinematic.design/src/org/obeonetwork/dsl/cinematic/design/services/CinematicToolkitsServices.java
index 122d6bc6..1... | false | true | public static Collection<Toolkit> getCinematicProvidedToolkits(EObject context, Collection<Toolkit> alreadyUsedToolkits) {
Collection<Toolkit> toolkits = new ArrayList<Toolkit>();
// Get toolkits in ResourceSet
Collection<Toolkit> toolkitsInResourceSet = getToolkitsInResourceSet(context);
for (Toolkit toolk... | public static Collection<Toolkit> getCinematicProvidedToolkits(EObject context, Collection<Toolkit> alreadyUsedToolkits) {
Collection<Toolkit> toolkits = new ArrayList<Toolkit>();
Collection<URI> toolkitsURI = new ArrayList<URI>();
// Get toolkits in ResourceSet
Collection<Toolkit> toolkitsInResourceSet = g... |
diff --git a/TetrisClone/src/Shape.java b/TetrisClone/src/Shape.java
index 7c3bccc..7bad882 100644
--- a/TetrisClone/src/Shape.java
+++ b/TetrisClone/src/Shape.java
@@ -1,251 +1,251 @@
import java.util.Random;
import LinkedQueue.LinkedQueue;
public abstract class Shape {
protected Block[][] blocks;
... | true | true | private void shiftBlocksUpLeft() {
if (!(this instanceof IShape || this instanceof OShape
|| this instanceof SShape || this instanceof ZShape))
switch (rotation) {
case 0 :
++y;
break;
case 1 :
--x;
break;
case 2 :
--y;
break;
case 3 :
++x;
break;
}
else if (this instanceof... | private void shiftBlocksUpLeft() {
if (!(this instanceof IShape || this instanceof OShape
|| this instanceof SShape || this instanceof ZShape))
switch (rotation) {
case 0 :
++y;
break;
case 1 :
--x;
break;
case 2 :
--y;
break;
case 3 :
++x;
break;
}
else if (this instanceof... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.