diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/src/com/edinarobotics/utils/gamepad/gamepadfilters/SimpleGamepadFilter.java b/src/com/edinarobotics/utils/gamepad/gamepadfilters/SimpleGamepadFilter.java
index 91a65b8..e16e5cc 100644
--- a/src/com/edinarobotics/utils/gamepad/gamepadfilters/SimpleGamepadFilter.java
+++ b/src/com/edinarobotics/utils/gamepad... | true | true | public GamepadAxisState filter(GamepadAxisState toFilter){
double leftX = toFilter.getLeftJoystick().getX();
double leftY = toFilter.getLeftJoystick().getY();
double rightX = toFilter.getRightJoystick().getX();
double rightY = toFilter.getRightJoystick().getY();
Vector2 left ... | public GamepadAxisState filter(GamepadAxisState toFilter){
double leftX = applyFilter(toFilter.getLeftJoystick().getX());
double leftY = applyFilter(toFilter.getLeftJoystick().getY());
double rightX = applyFilter(toFilter.getRightJoystick().getX());
double rightY = applyFilter(toFilt... |
diff --git a/src/main/demo/cli/DemoCliApp.java b/src/main/demo/cli/DemoCliApp.java
index 9e9fa31..a1b424b 100644
--- a/src/main/demo/cli/DemoCliApp.java
+++ b/src/main/demo/cli/DemoCliApp.java
@@ -1,121 +1,122 @@
package main.demo.cli;
import gx.realtime.*;
import org.apache.logging.log4j.Level;
import org.apache... | false | true | private void run()
{
RealtimeOptions options = new RealtimeOptions();
options.setClientId(getClientId());
options.setDocId("0B6gFLa0mYRcOUHlpUlFTTm5EaDQ");
options.setOnFileLoaded((doc) -> {
System.out.println("Received onDocumentLoadedCallback for sessionid " + doc.... | private void run()
{
RealtimeOptions options = new RealtimeOptions();
options.setClientId(getClientId());
options.setDocId("0B6gFLa0mYRcOUHlpUlFTTm5EaDQ");
options.setOnFileLoaded((doc) -> {
System.out.println("Received onDocumentLoadedCallback for sessionid " + doc.... |
diff --git a/com.github.gittodo/src/main/org/openscience/gittodo/format/OneLiner.java b/com.github.gittodo/src/main/org/openscience/gittodo/format/OneLiner.java
index 1267a93..61a0134 100644
--- a/com.github.gittodo/src/main/org/openscience/gittodo/format/OneLiner.java
+++ b/com.github.gittodo/src/main/org/openscience/... | true | true | public static String format(Item item) {
StringBuffer result = new StringBuffer();
result.append(FormatHelpers.formatInteger(item.hashCode(), 12));
result.append(" ");
result.append(FormatHelpers.formatString(""+item.getState(), 6));
result.append(" ");
result.append(FormatHelpers.formatString(""+item.getP... | public static String format(Item item) {
StringBuffer result = new StringBuffer();
result.append(FormatHelpers.formatInteger(item.hashCode(), 12));
result.append(" ");
result.append(FormatHelpers.formatString(""+item.getState(), 6));
result.append(" ");
result.append(FormatHelpers.formatString(""+item.getP... |
diff --git a/org.dojotoolkit.optimizer/src/org/dojotoolkit/optimizer/CachingJSOptimizer.java b/org.dojotoolkit.optimizer/src/org/dojotoolkit/optimizer/CachingJSOptimizer.java
index 4222d25..2bfc7fe 100644
--- a/org.dojotoolkit.optimizer/src/org/dojotoolkit/optimizer/CachingJSOptimizer.java
+++ b/org.dojotoolkit.optimiz... | true | true | public JSAnalysisData getAnalysisData(String[] modules) throws IOException {
String key = getKey(modules);
logger.logp(Level.FINE, getClass().getName(), "getAnalysisData", "modules ["+key+"] in");
Object lock = null;
synchronized (lockMap) {
lock = lockMap.get(key);
if (lock == null) {
lock = new Obj... | public JSAnalysisData getAnalysisData(String[] modules) throws IOException {
String key = getKey(modules);
logger.logp(Level.FINE, getClass().getName(), "getAnalysisData", "modules ["+key+"] in");
Object lock = null;
synchronized (lockMap) {
lock = lockMap.get(key);
if (lock == null) {
lock = new Obj... |
diff --git a/src/tk/nekotech/war/events/EntityExplode.java b/src/tk/nekotech/war/events/EntityExplode.java
index 21886ce..171b551 100644
--- a/src/tk/nekotech/war/events/EntityExplode.java
+++ b/src/tk/nekotech/war/events/EntityExplode.java
@@ -1,14 +1,14 @@
package tk.nekotech.war.events;
import org.bukkit.event.E... | true | true | public void onEntityExplode(EntityExplodeEvent event) {
event.setCancelled(true);
}
| public void onEntityExplode(EntityExplodeEvent event) {
event.blockList().clear();
}
|
diff --git a/main/src/main/java/org/vfny/geoserver/global/GeoserverDataDirectory.java b/main/src/main/java/org/vfny/geoserver/global/GeoserverDataDirectory.java
index 869caa36fd..2dcfb46fdb 100644
--- a/main/src/main/java/org/vfny/geoserver/global/GeoserverDataDirectory.java
+++ b/main/src/main/java/org/vfny/geoserver/... | true | true | public static void init(ServletContext servContext) {
// This was once in the GetGeoserverDataDirectory method, I've moved
// here so that servlet
// context is not needed as a parameter anymore.
// caching this, so we're not looking up everytime, and more
// importantly, so ... | public static void init(ServletContext servContext) {
// This was once in the GetGeoserverDataDirectory method, I've moved
// here so that servlet
// context is not needed as a parameter anymore.
// caching this, so we're not looking up everytime, and more
// importantly, so ... |
diff --git a/platform/com.netifera.platform.net.cifs/com.netifera.platform.net.cifs.tools/src/com/netifera/platform/net/cifs/tools/NTLMAuthBruteforcer.java b/platform/com.netifera.platform.net.cifs/com.netifera.platform.net.cifs.tools/src/com/netifera/platform/net/cifs/tools/NTLMAuthBruteforcer.java
index 35e3243a..f66... | false | true | public CredentialsVerifier createCredentialsVerifier() {
TCPCredentialsVerifier verifier = new TCPCredentialsVerifier(target) {
private Random random = new Random(System.currentTimeMillis());
@Override
protected void authenticate(final TCPChannel channel, final Credential credential,
final long... | public CredentialsVerifier createCredentialsVerifier() {
TCPCredentialsVerifier verifier = new TCPCredentialsVerifier(target) {
private Random random = new Random(System.currentTimeMillis());
@Override
protected void authenticate(final TCPChannel channel, final Credential credential,
final long... |
diff --git a/tahiti/src/com/sun/tahiti/reader/TypeUtil.java b/tahiti/src/com/sun/tahiti/reader/TypeUtil.java
index c769b74b..b284dd49 100644
--- a/tahiti/src/com/sun/tahiti/reader/TypeUtil.java
+++ b/tahiti/src/com/sun/tahiti/reader/TypeUtil.java
@@ -1,34 +1,34 @@
package com.sun.tahiti.reader;
import com.sun.tahit... | true | true | public static Type getCommonBaseType( Type[] t ) {
// TODO:
for( int i=1; i<t.length; i++ )
if(t[0]!=t[i])
return SystemType.get(Object.class);
return t[0];
}
| public static Type getCommonBaseType( Type[] t ) {
// TODO:
for( int i=1; i<t.length; i++ )
if(!t[0].getTypeName().equals(t[i].getTypeName()))
return SystemType.get(Object.class);
return t[0];
}
|
diff --git a/src/lazygames/trainyoureye/TouchShapesHandler.java b/src/lazygames/trainyoureye/TouchShapesHandler.java
index d24e99d..73167aa 100644
--- a/src/lazygames/trainyoureye/TouchShapesHandler.java
+++ b/src/lazygames/trainyoureye/TouchShapesHandler.java
@@ -1,87 +1,87 @@
package lazygames.trainyoureye;
impor... | true | true | public void createDialog() {
AlertDialog.Builder restartDialog = new AlertDialog.Builder(context);
// Setting Dialog Title
restartDialog.setTitle(res.getString(R.string.game_over) + Integer.toString(game_data.getScore()));
// Setting Dialog Message
restartDialog.setMessage(res.getString(R.string.retr... | public void createDialog() {
AlertDialog.Builder restartDialog = new AlertDialog.Builder(context);
// Setting Dialog Title
restartDialog.setTitle(res.getString(R.string.game_over) + " " + Integer.toString(game_data.getScore()));
// Setting Dialog Message
restartDialog.setMessage(res.getString(R.strin... |
diff --git a/components/scifio/src/loci/formats/in/ICSReader.java b/components/scifio/src/loci/formats/in/ICSReader.java
index 701f4d100..62058ff11 100644
--- a/components/scifio/src/loci/formats/in/ICSReader.java
+++ b/components/scifio/src/loci/formats/in/ICSReader.java
@@ -1,1824 +1,1825 @@
//
// ICSReader.java
/... | false | true | protected void initFile(String id) throws FormatException, IOException {
super.initFile(id);
LOGGER.info("Finding companion file");
String icsId = id, idsId = id;
int dot = id.lastIndexOf(".");
String ext = dot < 0 ? "" : id.substring(dot + 1).toLowerCase();
if (ext.equals("ics")) {
//... | protected void initFile(String id) throws FormatException, IOException {
super.initFile(id);
LOGGER.info("Finding companion file");
String icsId = id, idsId = id;
int dot = id.lastIndexOf(".");
String ext = dot < 0 ? "" : id.substring(dot + 1).toLowerCase();
if (ext.equals("ics")) {
//... |
diff --git a/src/com/android/gallery3d/ui/DialogDetailsView.java b/src/com/android/gallery3d/ui/DialogDetailsView.java
index 41753f6ea..b507407f9 100644
--- a/src/com/android/gallery3d/ui/DialogDetailsView.java
+++ b/src/com/android/gallery3d/ui/DialogDetailsView.java
@@ -1,288 +1,289 @@
/*
* Copyright (C) 2011 The ... | true | true | private void setDetails(Context context, MediaDetails details) {
boolean resolutionIsValid = true;
String path = null;
for (Entry<Integer, Object> detail : details) {
String value;
switch (detail.getKey()) {
case MediaDetail... | private void setDetails(Context context, MediaDetails details) {
boolean resolutionIsValid = true;
String path = null;
for (Entry<Integer, Object> detail : details) {
String value;
switch (detail.getKey()) {
case MediaDetail... |
diff --git a/assignment-impl/impl/src/java/org/sakaiproject/assignment/impl/BaseAssignmentService.java b/assignment-impl/impl/src/java/org/sakaiproject/assignment/impl/BaseAssignmentService.java
index 4c6e93fb..2e36afe6 100644
--- a/assignment-impl/impl/src/java/org/sakaiproject/assignment/impl/BaseAssignmentService.ja... | true | true | public byte[] getGradesSpreadsheet(String ref) throws IdUnusedException, PermissionException
{
String typeGradesString = new String(REF_TYPE_GRADES + Entity.SEPARATOR);
String context = ref.substring(ref.indexOf(typeGradesString) + typeGradesString.length());
// get site title for display purpose
String site... | public byte[] getGradesSpreadsheet(String ref) throws IdUnusedException, PermissionException
{
String typeGradesString = new String(REF_TYPE_GRADES + Entity.SEPARATOR);
String context = ref.substring(ref.indexOf(typeGradesString) + typeGradesString.length());
// get site title for display purpose
String site... |
diff --git a/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/byon/AddRemoveTemplatesTest.java b/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/byon/AddRemoveTemplatesTest.java
index 772fe80a..16b4ce8c 100644
--- a/src/main/java/org/cloudifysource/quality/iTests/test/cli/... | false | true | public void failedAddInstallTemplates() throws Exception {
TemplatesFolderHandler folderHandler = templatesHandler.createNewTemplatesFolder();
TemplateDetails template = folderHandler.addTempalteForServiceInstallation();
String templateName = template.getTemplateName();
templatesHandler.addTemplatesToCloud(fol... | public void failedAddInstallTemplates() throws Exception {
TemplatesFolderHandler folderHandler = templatesHandler.createNewTemplatesFolder();
TemplateDetails template = folderHandler.addTempalteForServiceInstallation();
String templateName = template.getTemplateName();
templatesHandler.addTemplatesToCloud(fol... |
diff --git a/src/main/java/com/j256/ormlite/android/AndroidDatabaseConnection.java b/src/main/java/com/j256/ormlite/android/AndroidDatabaseConnection.java
index dbd7175..85fc9fa 100644
--- a/src/main/java/com/j256/ormlite/android/AndroidDatabaseConnection.java
+++ b/src/main/java/com/j256/ormlite/android/AndroidDatabas... | true | true | private void bindArgs(SQLiteStatement stmt, Object[] args, FieldType[] argFieldTypes) throws SQLException {
if (args == null) {
return;
}
for (int i = 0; i < args.length; i++) {
Object arg = args[i];
int argIndex = AndroidDatabaseResults.androidColumnIndexToJdbc(i);
if (arg == null) {
stmt.bindNu... | private void bindArgs(SQLiteStatement stmt, Object[] args, FieldType[] argFieldTypes) throws SQLException {
if (args == null) {
return;
}
for (int i = 0; i < args.length; i++) {
Object arg = args[i];
int argIndex = AndroidDatabaseResults.androidColumnIndexToJdbc(i);
if (arg == null) {
stmt.bindNu... |
diff --git a/backend/src/com/mymed/controller/core/requesthandler/SessionRequestHandler.java b/backend/src/com/mymed/controller/core/requesthandler/SessionRequestHandler.java
index 9d372b2a6..5ed75c422 100644
--- a/backend/src/com/mymed/controller/core/requesthandler/SessionRequestHandler.java
+++ b/backend/src/com/mym... | true | true | protected void doPost(final HttpServletRequest request, final HttpServletResponse response) throws ServletException,
IOException {
final JsonMessage message = new JsonMessage(200, this.getClass().getName());
try {
final Map<String, String> parameters = getParameters(request);
final Request... | protected void doPost(final HttpServletRequest request, final HttpServletResponse response) throws ServletException,
IOException {
final JsonMessage message = new JsonMessage(200, this.getClass().getName());
try {
final Map<String, String> parameters = getParameters(request);
final Request... |
diff --git a/src/main/java/org/dasein/cloud/openstack/nova/os/network/NovaSecurityGroup.java b/src/main/java/org/dasein/cloud/openstack/nova/os/network/NovaSecurityGroup.java
index f11a463..7742993 100644
--- a/src/main/java/org/dasein/cloud/openstack/nova/os/network/NovaSecurityGroup.java
+++ b/src/main/java/org/dasei... | false | true | public @Nonnull Collection<FirewallRule> getRules(@Nonnull String firewallId) throws InternalException, CloudException {
APITrace.begin(getProvider(), "Firewall.getRules");
try {
NovaMethod method = new NovaMethod((NovaOpenStack)getProvider());
JSONObject ob = method.getServ... | public @Nonnull Collection<FirewallRule> getRules(@Nonnull String firewallId) throws InternalException, CloudException {
APITrace.begin(getProvider(), "Firewall.getRules");
try {
NovaMethod method = new NovaMethod((NovaOpenStack)getProvider());
JSONObject ob = method.getServ... |
diff --git a/Sparx/src/java/main/com/netspective/sparx/security/authenticator/DatabaseLoginAuthenticator.java b/Sparx/src/java/main/com/netspective/sparx/security/authenticator/DatabaseLoginAuthenticator.java
index d03353fe..416e4152 100644
--- a/Sparx/src/java/main/com/netspective/sparx/security/authenticator/Database... | true | true | public boolean isUserValid(HttpLoginManager loginManager, LoginDialogContext ldc)
{
if(passwordQuery == null)
{
ldc.getValidationContext().addError("No password query defined in DatabaseLoginAuthenticator");
return false;
}
QueryResultSet qrs = null;
... | public boolean isUserValid(HttpLoginManager loginManager, LoginDialogContext ldc)
{
if(passwordQuery == null)
{
ldc.getValidationContext().addError("No password query defined in DatabaseLoginAuthenticator");
return false;
}
QueryResultSet qrs = null;
... |
diff --git a/SleepClock/src/com/pps/sleepcalc/MainActivity.java b/SleepClock/src/com/pps/sleepcalc/MainActivity.java
index 0fde97b..7d172c7 100644
--- a/SleepClock/src/com/pps/sleepcalc/MainActivity.java
+++ b/SleepClock/src/com/pps/sleepcalc/MainActivity.java
@@ -1,209 +1,209 @@
package com.pps.sleepcalc;
import j... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON
| WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
//set... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON
| WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
//set... |
diff --git a/src/minecraft/biomesoplenty/worldgen/WorldGenTundra1.java b/src/minecraft/biomesoplenty/worldgen/WorldGenTundra1.java
index 55afb11c9..051a68074 100644
--- a/src/minecraft/biomesoplenty/worldgen/WorldGenTundra1.java
+++ b/src/minecraft/biomesoplenty/worldgen/WorldGenTundra1.java
@@ -1,64 +1,65 @@
package ... | true | true | public boolean generate(World var1, Random var2, int var3, int var4, int var5)
{
while (var1.isAirBlock(var3, var4, var5) && var4 > 2)
{
--var4;
}
int var6 = var1.getBlockId(var3, var4, var5);
int var95 = var1.getBlockId(var3 - 1, var4, var5);
int var96 = var1.getBlockId(var3 + 1, var4, var5);
int v... | public boolean generate(World var1, Random var2, int var3, int var4, int var5)
{
while (var1.isAirBlock(var3, var4, var5) && var4 > 2)
{
--var4;
}
int var6 = var1.getBlockId(var3, var4, var5);
int var95 = var1.getBlockId(var3 - 1, var4, var5);
int var96 = var1.getBlockId(var3 + 1, var4, var5);
int v... |
diff --git a/intermediate/monitoring/src/main/java/org/springframework/integration/service/impl/DummyTwitter.java b/intermediate/monitoring/src/main/java/org/springframework/integration/service/impl/DummyTwitter.java
index 0cf9f5a2..19c56d67 100644
--- a/intermediate/monitoring/src/main/java/org/springframework/integra... | true | true | public Tweet getTweet() {
Tweet tweet = new Tweet(++this.id,
"Spring Integration is the coolest Enterprise Integration project",
new Date(),
"SomeUser",
"http://a0.twimg.com/profile_images/1598911687/ICO_S2_Bug_normal.png",
0L,
0L,
null,
null);
return tweet;
}
| public Tweet getTweet() {
Tweet tweet = new Tweet(++this.id,
"Spring Integration is the coolest Enterprise Integration project",
new Date(),
"SomeUser",
"https://pbs.twimg.com/profile_images/378800000502646541/992d3596458fca87741b8e93e7df0860_normal.png",
0L,
0L,
null,
null);
return... |
diff --git a/src/main/java/se/llbit/chunky/model/BeaconModel.java b/src/main/java/se/llbit/chunky/model/BeaconModel.java
index b9be8a11..13a617ab 100644
--- a/src/main/java/se/llbit/chunky/model/BeaconModel.java
+++ b/src/main/java/se/llbit/chunky/model/BeaconModel.java
@@ -1,64 +1,64 @@
/* Copyright (c) 2013 Jesper Ö... | false | true | public static boolean intersect(Ray ray) {
boolean hit = false;
ray.t = Double.POSITIVE_INFINITY;
for (int i = 0; i < boxes.length; ++i) {
if (boxes[i].intersect(ray)) {
float[] color = tex[i].getColor(ray.u, ray.v);
if (color[3] > Ray.EPSILON) {
ray.color.set(color);
hit = true;
}
}
... | public static boolean intersect(Ray ray) {
boolean hit = false;
ray.t = Double.POSITIVE_INFINITY;
for (int i = 0; i < boxes.length; ++i) {
if (boxes[i].intersect(ray)) {
float[] color = tex[i].getColor(ray.u, ray.v);
if (color[3] > Ray.EPSILON) {
ray.color.set(color);
ray.t = ray.tNear;
... |
diff --git a/src/main/java/net/aufdemrand/denizen/utilities/RuntimeCompiler.java b/src/main/java/net/aufdemrand/denizen/utilities/RuntimeCompiler.java
index 658bae222..7bc005706 100644
--- a/src/main/java/net/aufdemrand/denizen/utilities/RuntimeCompiler.java
+++ b/src/main/java/net/aufdemrand/denizen/utilities/RuntimeC... | false | true | public void loader() {
List<String> dependencies = new ArrayList<String>();
dB.log("Loading external dependencies for run-time compiler.");
try {
File file = new File(denizen.getDataFolder() + File.separator + "externals" + File.separator + "dependencies");
for (File... | public void loader() {
List<String> dependencies = new ArrayList<String>();
dB.log("Loading external dependencies for run-time compiler.");
try {
File file = new File(denizen.getDataFolder() + File.separator + "externals" + File.separator + "dependencies");
for (File... |
diff --git a/task-2680/ProcessSanitizedBridges.java b/task-2680/ProcessSanitizedBridges.java
index 1f0e00e..c3ab6c8 100644
--- a/task-2680/ProcessSanitizedBridges.java
+++ b/task-2680/ProcessSanitizedBridges.java
@@ -1,327 +1,327 @@
import java.io.*;
import java.text.*;
import java.util.*;
import org.apache.commons... | true | true | public static void main(String[] args) throws IOException,
ParseException {
/* Validate command-line arguments. */
if (args.length != 1 || !new File(args[0]).exists()) {
System.out.println("Usage: java ProcessSanitizedBridges <dir>");
System.exit(1);
}
/* Find all files that we sho... | public static void main(String[] args) throws IOException,
ParseException {
/* Validate command-line arguments. */
if (args.length != 1 || !new File(args[0]).exists()) {
System.out.println("Usage: java ProcessSanitizedBridges <dir>");
System.exit(1);
}
/* Find all files that we sho... |
diff --git a/spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/MBeanExportingPlugin.java b/spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/MBeanExportingPlugin.java
index 8fa6e97f6..5d3cd919f 100644
--- a/spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/MBeanExportingPlug... | true | true | public void preProcessModule(Module module) {
if (System.getProperty(XdPropertyKeys.XD_JMX_ENABLED) == null) {
module.addComponents(new ClassPathResource(CONTEXT_CONFIG_ROOT + "mbean-exporters.xml"));
Properties objectNameProperties = new Properties();
objectNameProperties.put("xd.module.name", module.getN... | public void preProcessModule(Module module) {
if (System.getProperty(XdPropertyKeys.XD_JMX_ENABLED).equals("true")) {
module.addComponents(new ClassPathResource(CONTEXT_CONFIG_ROOT + "mbean-exporters.xml"));
Properties objectNameProperties = new Properties();
objectNameProperties.put("xd.module.name", modu... |
diff --git a/applications/rest-api/src/main/java/com/elasticgrid/rest/RestJSB.java b/applications/rest-api/src/main/java/com/elasticgrid/rest/RestJSB.java
index b604a7c6..bec8b5a7 100755
--- a/applications/rest-api/src/main/java/com/elasticgrid/rest/RestJSB.java
+++ b/applications/rest-api/src/main/java/com/elasticgrid... | false | true | protected void bootstrap(String[] configArgs) throws Exception {
try {
context = ServiceBeanActivation.getServiceBeanContext(
getConfigComponent(),
"REST",
... | protected void bootstrap(String[] configArgs) throws Exception {
try {
context = ServiceBeanActivation.getServiceBeanContext(
getConfigComponent(),
"REST",
... |
diff --git a/application/src/test/java/org/mifos/framework/components/batchjobs/MifosSchedulerTest.java b/application/src/test/java/org/mifos/framework/components/batchjobs/MifosSchedulerTest.java
index 66e79cc35..683df1cda 100644
--- a/application/src/test/java/org/mifos/framework/components/batchjobs/MifosSchedulerTe... | false | true | public void testRegisterTasks() throws Exception {
MifosScheduler mifosScheduler = getMifosScheduler("org/mifos/config/resources/task.xml");
mifosScheduler.registerTasks();
List<String> taskNames = mifosScheduler.getTaskNames();
Assert.assertEquals(13, taskNames.size());
Assert... | public void testRegisterTasks() throws Exception {
MifosScheduler mifosScheduler = getMifosScheduler("org/mifos/config/resources/task.xml");
mifosScheduler.registerTasks();
List<String> taskNames = mifosScheduler.getTaskNames();
Assert.assertEquals(12, taskNames.size());
Assert... |
diff --git a/src/uk/co/sticksoft/adce/cpu/CPU_1_7.java b/src/uk/co/sticksoft/adce/cpu/CPU_1_7.java
index 97f5d5a..acc916f 100644
--- a/src/uk/co/sticksoft/adce/cpu/CPU_1_7.java
+++ b/src/uk/co/sticksoft/adce/cpu/CPU_1_7.java
@@ -1,575 +1,585 @@
package uk.co.sticksoft.adce.cpu;
import java.util.LinkedList;
import ... | false | true | public synchronized void execute()
{
cycleCount++;
tSP = SP; // Cache SP
tPC = (char)(PC+1); // Pre-increment tPC
lastResult = 0;
boolean error = false; // Not sure what to do with this yet (maybe set on fire?)
// Fetch
char instr = RAM[PC];
if (instr == 0) // Invalid instruction; stop.
{... | public synchronized void execute()
{
cycleCount++;
tSP = SP; // Cache SP
tPC = (char)(PC+1); // Pre-increment tPC
lastResult = 0;
boolean error = false; // Not sure what to do with this yet (maybe set on fire?)
// Fetch
char instr = RAM[PC];
if (instr == 0) // Invalid instruction; stop.
{... |
diff --git a/src/core/jtester/ontology/checker/ConditionAlwaysSameValueChecker.java b/src/core/jtester/ontology/checker/ConditionAlwaysSameValueChecker.java
index 799cbdc..c80590f 100644
--- a/src/core/jtester/ontology/checker/ConditionAlwaysSameValueChecker.java
+++ b/src/core/jtester/ontology/checker/ConditionAlwaysS... | false | true | private void generateReport(List<JavaControlFlowGraph> cfgs){
System.err.println("Warning: ����ֵʼ�ղ��䣡");
for(JavaControlFlowGraph cfg: cfgs){
List<ConditionExpression> conditions = cfg.getConditions();
if(conditions != null && !conditions.isEmpty()){
for(ConditionExpression ce: conditions){
System.... | private void generateReport(List<JavaControlFlowGraph> cfgs){
boolean tipped = false;
for(JavaControlFlowGraph cfg: cfgs){
List<ConditionExpression> conditions = cfg.getConditions();
if(conditions != null && !conditions.isEmpty()){
for(ConditionExpression ce: conditions){
if(tipped == false){
... |
diff --git a/src/main/java/org/spout/engine/renderer/GL20BatchVertexRenderer.java b/src/main/java/org/spout/engine/renderer/GL20BatchVertexRenderer.java
index a3452b0a5..a7ce27478 100644
--- a/src/main/java/org/spout/engine/renderer/GL20BatchVertexRenderer.java
+++ b/src/main/java/org/spout/engine/renderer/GL20BatchVer... | true | true | protected void doFlush() {
for(Entry<Integer, Buffer> entry : buffers.entrySet()){
int layout = entry.getKey();
Buffer buffer = entry.getValue();
if(buffer instanceof FloatBuffer){
GLFloatBuffer vertexBuffer = vertexBuffers.get(layout);
if(vertexBuffer == null) {
vertexBuffer = new GLFloatBuf... | protected void doFlush() {
for(Entry<Integer, Buffer> entry : buffers.entrySet()){
int layout = entry.getKey();
Buffer buffer = entry.getValue();
if(buffer instanceof FloatBuffer){
GLFloatBuffer vertexBuffer = vertexBuffers.get(layout);
if(vertexBuffer == null) {
vertexBuffer = new GLFloatBuf... |
diff --git a/src/game/Block.java b/src/game/Block.java
index 3173761..76621fc 100644
--- a/src/game/Block.java
+++ b/src/game/Block.java
@@ -1,115 +1,115 @@
package game;
import java.util.Iterator;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g... | true | true | public void update(Array<Block> blocks) {
if(pos.y <= stopPos) {
falling = false;
pos.y = stopPos;
}
boolean noNonFallingBlocksBelow = true;
for(int i = 0; i < blocks.size; i++) {
Block b = blocks.get(i);
Vector2 blockPos = b.getPosition();
float y = (32 + blockPos.y);
if(b != this && !b.isFa... | public void update(Array<Block> blocks) {
if(pos.y <= stopPos) {
falling = false;
pos.y = stopPos;
}
boolean noNonFallingBlocksBelow = true;
for(int i = 0; i < blocks.size; i++) {
Block b = blocks.get(i);
Vector2 blockPos = b.getPosition();
float y = (32 + blockPos.y);
if(b != this && !b.isFa... |
diff --git a/integration-test-src/model/ItemTest.java b/integration-test-src/model/ItemTest.java
index 894b9d4..d1d5acb 100644
--- a/integration-test-src/model/ItemTest.java
+++ b/integration-test-src/model/ItemTest.java
@@ -1,151 +1,151 @@
/**
*
*/
package model;
import static org.junit.Assert.*;
import j... | true | true | public void testItem() {
assertTrue(item.getBarcode().equals(validUPCABarcode));
assertTrue(item.getProduct().compareTo(product) == 0);
assertTrue(item.getContainer().equals(productGroup));
assertTrue(item.getExitTime() == null);
Date expiration = item.getExpirationDate();
Date entry = item.getEntryD... | public void testItem() {
assertTrue(item.getBarcode().equals(validUPCABarcode.getValue()));
assertTrue(item.getProduct().compareTo(product) == 0);
assertTrue(item.getContainer().equals(productGroup));
assertTrue(item.getExitTime() == null);
Date expiration = item.getExpirationDate();
Date entry = ite... |
diff --git a/modules/org.restlet/src/org/restlet/data/Conditions.java b/modules/org.restlet/src/org/restlet/data/Conditions.java
index 41ec7eb0b..a8ff4479c 100644
--- a/modules/org.restlet/src/org/restlet/data/Conditions.java
+++ b/modules/org.restlet/src/org/restlet/data/Conditions.java
@@ -1,267 +1,267 @@
/*
* Cop... | false | true | public Status getStatus(Method method, Variant variant) {
Status result = null;
// Is the "if-Match" rule followed or not?
if (getMatch() != null && getMatch().size() != 0) {
boolean matched = false;
boolean failed = false;
if (variant != null) {
... | public Status getStatus(Method method, Variant variant) {
Status result = null;
// Is the "if-Match" rule followed or not?
if (getMatch() != null && getMatch().size() != 0) {
boolean matched = false;
boolean failed = false;
if (variant != null) {
... |
diff --git a/src/net/openvision/tools/restlight/ParseException.java b/src/net/openvision/tools/restlight/ParseException.java
index 03a43fc..c4911da 100644
--- a/src/net/openvision/tools/restlight/ParseException.java
+++ b/src/net/openvision/tools/restlight/ParseException.java
@@ -1,20 +1,21 @@
package net.openvision.t... | true | true | public ParseException(String message, int line) {
super(message);
}
| public ParseException(String message, int line) {
super(message);
this.line = line;
}
|
diff --git a/src/main/java/net/latroquette/web/beans/item/ItemSearchBean.java b/src/main/java/net/latroquette/web/beans/item/ItemSearchBean.java
index 3bf121d..a99a441 100755
--- a/src/main/java/net/latroquette/web/beans/item/ItemSearchBean.java
+++ b/src/main/java/net/latroquette/web/beans/item/ItemSearchBean.java
@@ ... | true | true | public void loadSearch(){
initCount();
if(page == null){
page = 1;
}
if(count > 0){
this.itemsFound = itemsService.searchItem(itemFilter, page, false);
}
if(count > itemsFound.size()){
int itemToLoad = itemsService.getNbResultByPage();
int nbPage = Double.valueOf(Math.ceil((double)count/(double... | public void loadSearch(){
initCount();
if(page == null){
page = 1;
}
if(count > 0){
this.itemsFound = itemsService.searchItem(itemFilter, page, false);
}else{
this.itemsFound = new ArrayList<>(0);
}
if(count > itemsFound.size()){
int itemToLoad = itemsService.getNbResultByPage();
int nbPag... |
diff --git a/plugins/org.eclipse.acceleo.model.edit/src/org/eclipse/acceleo/model/mtl/provider/TemplateInvocationItemProviderSpec.java b/plugins/org.eclipse.acceleo.model.edit/src/org/eclipse/acceleo/model/mtl/provider/TemplateInvocationItemProviderSpec.java
index 3250c45b..08d6d9f1 100644
--- a/plugins/org.eclipse.acc... | true | true | public Object getImage(Object object) {
Object res = null;
if (((TemplateInvocation)object).getDefinition().isMain()) {
res = overlayImage(object, getResourceLocator().getImage("full/obj16/TemplateInvocation_main")); //$NON-NLS-1$
} else {
res = super.getImage(object);
}
return res;
}
| public Object getImage(Object object) {
Object res = null;
if (object != null && ((TemplateInvocation)object).getDefinition() != null
&& ((TemplateInvocation)object).getDefinition().isMain()) {
res = overlayImage(object, getResourceLocator().getImage("full/obj16/TemplateInvocation_main")); //$NON-NLS-1$
... |
diff --git a/mes-plugins/mes-plugins-basic/src/main/java/com/qcadoo/mes/basic/ParameterService.java b/mes-plugins/mes-plugins-basic/src/main/java/com/qcadoo/mes/basic/ParameterService.java
index 87e578ca7a..c87e0f6edb 100644
--- a/mes-plugins/mes-plugins-basic/src/main/java/com/qcadoo/mes/basic/ParameterService.java
++... | true | true | public Entity getParameter() {
DataDefinition dataDefinition = dataDefinitionService.get(BasicConstants.PLUGIN_IDENTIFIER,
BasicConstants.MODEL_PARAMETER);
Entity parameter = dataDefinition.find().setMaxResults(1).uniqueResult();
if (parameter == null) {
paramete... | public Entity getParameter() {
DataDefinition dataDefinition = dataDefinitionService.get(BasicConstants.PLUGIN_IDENTIFIER,
BasicConstants.MODEL_PARAMETER);
Entity parameter = dataDefinition.find().setMaxResults(1).setCacheable(true).uniqueResult();
if (parameter == null) {
... |
diff --git a/src/java/com/idega/company/companyregister/business/CompanyRegisterBusinessBean.java b/src/java/com/idega/company/companyregister/business/CompanyRegisterBusinessBean.java
index 2e905ed..9820bf4 100644
--- a/src/java/com/idega/company/companyregister/business/CompanyRegisterBusinessBean.java
+++ b/src/java... | false | true | public boolean updateEntry(
String personal_id,
String commune,
String postalCode,
String workingArea,
String orderAreaForName,
String name,
String address,
String ceoId,
String dateOfLastChange,
String operationForm,
String vatNumber,
String legalAddress,
String registerDate,
... | public boolean updateEntry(
String personal_id,
String commune,
String postalCode,
String workingArea,
String orderAreaForName,
String name,
String address,
String ceoId,
String dateOfLastChange,
String operationForm,
String vatNumber,
String legalAddress,
String registerDate,
... |
diff --git a/core/src/java/com/robonobo/core/service/DownloadService.java b/core/src/java/com/robonobo/core/service/DownloadService.java
index 10eb867..12663cb 100644
--- a/core/src/java/com/robonobo/core/service/DownloadService.java
+++ b/core/src/java/com/robonobo/core/service/DownloadService.java
@@ -1,438 +1,444 @@... | true | true | public void startAllDownloads() throws RobonoboException {
// We could taskify this but we're unlikely to have enough downloads to make it worth it
rbnb.getExecutor().execute(new CatchingRunnable() {
public void doRun() throws Exception {
int numStarted = 0;
// This list is in order of date started
... | public void startAllDownloads() throws RobonoboException {
// We could taskify this but we're unlikely to have enough downloads to make it worth it
rbnb.getExecutor().execute(new CatchingRunnable() {
public void doRun() throws Exception {
int numStarted = 0;
// This list is in order of date started
... |
diff --git a/src/com/android/gallery3d/ui/TileImageView.java b/src/com/android/gallery3d/ui/TileImageView.java
index eb5da89..7e811fc 100644
--- a/src/com/android/gallery3d/ui/TileImageView.java
+++ b/src/com/android/gallery3d/ui/TileImageView.java
@@ -1,757 +1,757 @@
/*
* Copyright (C) 2010 The Android Open Source ... | false | true | private void layoutTiles(int centerX, int centerY, float scale, int rotation) {
// The width and height of this view.
int width = getWidth();
int height = getHeight();
// The tile levels we want to keep as texture is in the range
// [fromLevel, endLevel).
int fromLev... | private void layoutTiles(int centerX, int centerY, float scale, int rotation) {
// The width and height of this view.
int width = getWidth();
int height = getHeight();
// The tile levels we want to keep as texture is in the range
// [fromLevel, endLevel).
int fromLev... |
diff --git a/jbpm-form-modeler-panels/jbpm-form-modeler-editor/jbpm-form-modeler-editor-client/src/main/java/org/jbpm/formModeler/editor/client/editors/FormModelerPanelViewImpl.java b/jbpm-form-modeler-panels/jbpm-form-modeler-editor/jbpm-form-modeler-editor-client/src/main/java/org/jbpm/formModeler/editor/client/edito... | true | true | public void loadContext(FormEditorContextTO context) {
String contexUID = "";
if(context != null){
contexUID = context.getCtxUID();
}
String localeName = LocaleInfo.getCurrentLocale().getLocaleName();
if (GWT_DEFAULT_LOCALE.equals(localeName)) localeName = FORM_MO... | public void loadContext(FormEditorContextTO context) {
String contexUID = "";
if(context != null){
contexUID = context.getCtxUID();
}
String height = getParent().getOffsetHeight() - 30 + "px";
this.setHeight(height);
frame.setHeight(height);
String... |
diff --git a/src/org/androidaalto/bookingroom/logic/MeetingInfoValidator.java b/src/org/androidaalto/bookingroom/logic/MeetingInfoValidator.java
index 24e2e0d..60ebdd0 100644
--- a/src/org/androidaalto/bookingroom/logic/MeetingInfoValidator.java
+++ b/src/org/androidaalto/bookingroom/logic/MeetingInfoValidator.java
@@ ... | false | true | public ValidationResult validate(MeetingInfo meetingInfo) {
final ValidationResult errors = new ValidationResult();
final long nowMillis = System.currentTimeMillis();
final Time now = new Time();
now.set(nowMillis);
if (meetingInfo.getStart().before(now))
errors.a... | public ValidationResult validate(MeetingInfo meetingInfo) {
final ValidationResult errors = new ValidationResult();
final long nowMillis = System.currentTimeMillis();
final Time now = new Time();
now.set(nowMillis);
if (meetingInfo.getStart().before(now))
errors.a... |
diff --git a/src/dev/ukanth/ufirewall/preferences/PreferencesActivity.java b/src/dev/ukanth/ufirewall/preferences/PreferencesActivity.java
index 6a7e628e..82a1efce 100644
--- a/src/dev/ukanth/ufirewall/preferences/PreferencesActivity.java
+++ b/src/dev/ukanth/ufirewall/preferences/PreferencesActivity.java
@@ -1,272 +1,... | true | true | public void onSharedPreferenceChanged(SharedPreferences sharedPreferences,
String key) {
if(key.equals("activeRules")){
if(!G.activeRules()){
G.enableRoam(false);
G.enableLAN(false);
}
}
if(key.equals("enableIPv6")){
File defaultIP6TablesPath = new File("/system/bin/ip6tables");
if(!... | public void onSharedPreferenceChanged(SharedPreferences sharedPreferences,
String key) {
if(key.equals("activeRules")){
if(!G.activeRules()){
G.enableRoam(false);
G.enableLAN(false);
}
}
if(key.equals("enableIPv6")){
File defaultIP6TablesPath = new File("/system/bin/ip6tables");
if(!... |
diff --git a/src/main/java/net/floodlightcontroller/core/internal/Controller.java b/src/main/java/net/floodlightcontroller/core/internal/Controller.java
index 104b1d26..0c4d6d24 100644
--- a/src/main/java/net/floodlightcontroller/core/internal/Controller.java
+++ b/src/main/java/net/floodlightcontroller/core/internal/C... | false | true | protected void processOFMessage(OFMessage m)
throws IOException, SwitchStateException {
boolean shouldHandleMessage = false;
switch (m.getType()) {
case HELLO:
if (log.isTraceEnabled())
log.trace("HELLO from {}"... | protected void processOFMessage(OFMessage m)
throws IOException, SwitchStateException {
boolean shouldHandleMessage = false;
switch (m.getType()) {
case HELLO:
if (log.isTraceEnabled())
log.trace("HELLO from {}"... |
diff --git a/src/com/mntnorv/wrdl_holo/GridIndicatorView.java b/src/com/mntnorv/wrdl_holo/GridIndicatorView.java
index 32bbb02..39653a1 100644
--- a/src/com/mntnorv/wrdl_holo/GridIndicatorView.java
+++ b/src/com/mntnorv/wrdl_holo/GridIndicatorView.java
@@ -1,147 +1,147 @@
package com.mntnorv.wrdl_holo;
import java.... | false | true | private void initGridIndicatorView() {
indicatorRectList = new ArrayList<RectF>();
indicatorRotationList = new ArrayList<Float>();
indicatorPaint = new Paint();
indicatorPaint.setColor(0xFF63BAF9);
float rotValue = (float)Math.toDegrees(Math.atan(tileWidth/tileHeight));
rotMatrix = new float[9];
ro... | private void initGridIndicatorView() {
indicatorRectList = new ArrayList<RectF>();
indicatorRotationList = new ArrayList<Float>();
indicatorPaint = new Paint();
indicatorPaint.setColor(0xFF63BAF9);
float rotValue = (float)Math.toDegrees(Math.atan(tileWidth/tileHeight));
rotMatrix = new float[9];
ro... |
diff --git a/src/main/java/biomesoplenty/common/world/layer/GenLayerBiomeBOP.java b/src/main/java/biomesoplenty/common/world/layer/GenLayerBiomeBOP.java
index a60d4a876..c45e9cd6d 100644
--- a/src/main/java/biomesoplenty/common/world/layer/GenLayerBiomeBOP.java
+++ b/src/main/java/biomesoplenty/common/world/layer/GenLa... | true | true | public int[] getInts(int par1, int par2, int par3, int par4)
{
int[] aint = this.parent.getInts(par1, par2, par3, par4);
int[] aint1 = IntCache.getIntCache(par3 * par4);
for (int i1 = 0; i1 < par4; ++i1)
{
for (int j1 = 0; j1 < par3; ++j1)
{
... | public int[] getInts(int par1, int par2, int par3, int par4)
{
int[] aint = this.parent.getInts(par1, par2, par3, par4);
int[] aint1 = IntCache.getIntCache(par3 * par4);
for (int i1 = 0; i1 < par4; ++i1)
{
for (int j1 = 0; j1 < par3; ++j1)
{
... |
diff --git a/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_tpaccept.java b/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_tpaccept.java
index fbb1eb4..ecd0312 100644
--- a/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_tpaccept.java
+++ b/Co... | false | true | public static Boolean run(CommandSender sender, String alias, String[] args) {
if (PlayerHelper.checkIsPlayer(sender)) {
Player player = (Player)sender;
if (args.length > 0) {
if (Permissions.checkPerms(player, "cex.tpaccept")) {
// check if the requested player is online
Player tpaPlayer = Bukk... | public static Boolean run(CommandSender sender, String alias, String[] args) {
if (PlayerHelper.checkIsPlayer(sender)) {
Player player = (Player)sender;
if (args.length > 0) {
if (Permissions.checkPerms(player, "cex.tpaccept")) {
// check if the requested player is online
Player tpaPlayer = Bukk... |
diff --git a/src/com/jreddit/pollingbot/PotentialPollMatchCriteria.java b/src/com/jreddit/pollingbot/PotentialPollMatchCriteria.java
index 04f61b6..b6da7d3 100644
--- a/src/com/jreddit/pollingbot/PotentialPollMatchCriteria.java
+++ b/src/com/jreddit/pollingbot/PotentialPollMatchCriteria.java
@@ -1,101 +1,101 @@
packag... | true | true | protected boolean matchBody(Thing thing, String body) {
//
// Check for potentials game requests which
// will need a human to look at.
//
Object lock = PersistenceUtils.getDatabaseLock();
synchronized(lock) {
if(PersistenceUtils.isBotReplied(thing.getId(... | protected boolean matchBody(Thing thing, String body) {
//
// Check for potentials game requests which
// will need a human to look at.
//
Object lock = PersistenceUtils.getDatabaseLock();
synchronized(lock) {
if(PersistenceUtils.isBotReplied(thing.getId(... |
diff --git a/src/main/java/org/imirsel/nema/flowservice/monitor/PollingJobStatusMonitor.java b/src/main/java/org/imirsel/nema/flowservice/monitor/PollingJobStatusMonitor.java
index 6d38f7f..67f1c6d 100644
--- a/src/main/java/org/imirsel/nema/flowservice/monitor/PollingJobStatusMonitor.java
+++ b/src/main/java/org/imirs... | true | true | public void run() {
jobsLock.lock();
Session session = null;
JobDao jobDao = null;
try {
logger.fine(
"Checking for job status updates...");
if(jobs.size() > 0) {
logger.fine("Found " + jobs.size() + " jobs with possi... | public void run() {
jobsLock.lock();
Session session = null;
JobDao jobDao = null;
try {
logger.fine(
"Checking for job status updates...");
if(jobs.size() > 0) {
logger.fine("Found " + jobs.size() + " jobs with possi... |
diff --git a/tool/src/java/org/sakaiproject/profile2/tool/pages/panels/GalleryFeed.java b/tool/src/java/org/sakaiproject/profile2/tool/pages/panels/GalleryFeed.java
index ee87fb89..82bfc338 100644
--- a/tool/src/java/org/sakaiproject/profile2/tool/pages/panels/GalleryFeed.java
+++ b/tool/src/java/org/sakaiproject/profi... | true | true | public GalleryFeed(String id, final String ownerUserId,
final String viewingUserId) {
super(id);
log.debug("GalleryFeed()");
Label heading;
if (viewingUserId.equals(ownerUserId)) {
heading = new Label("heading", new ResourceModel(
"heading.widget.my.pictures"));
} else {
heading = new Label(... | public GalleryFeed(String id, final String ownerUserId,
final String viewingUserId) {
super(id);
log.debug("GalleryFeed()");
Label heading;
if (viewingUserId.equals(ownerUserId)) {
heading = new Label("heading", new ResourceModel(
"heading.widget.my.pictures"));
} else {
heading = new Label(... |
diff --git a/engine/hu/mentlerd/hybrid/LuaUtil.java b/engine/hu/mentlerd/hybrid/LuaUtil.java
index 34123eb..30f6342 100644
--- a/engine/hu/mentlerd/hybrid/LuaUtil.java
+++ b/engine/hu/mentlerd/hybrid/LuaUtil.java
@@ -1,155 +1,155 @@
package hu.mentlerd.hybrid;
import static hu.mentlerd.hybrid.LuaOpcodes.*;
publi... | true | true | public static String findSlotOrigin( CallFrame frame, int slot ){
Prototype proto = frame.closure.proto;
int[] opcodes = proto.code;
int pc = frame.pc -1;
while( pc-- > 0 ){
int code = opcodes[pc];
if ( getA8(code) == slot ){ //Only process opcodes pointing to the slot
switch( getOp(code... | public static String findSlotOrigin( CallFrame frame, int slot ){
Prototype proto = frame.closure.proto;
int[] opcodes = proto.code;
int pc = frame.pc -1;
while( pc-- > 0 ){
int code = opcodes[pc];
if ( getA8(code) == slot ){ //Only process opcodes pointing to the slot
switch( getOp(code... |
diff --git a/bindings/java/src/org/hyperic/sigar/MultiProcCpu.java b/bindings/java/src/org/hyperic/sigar/MultiProcCpu.java
index d3a84d43..a389ac7d 100644
--- a/bindings/java/src/org/hyperic/sigar/MultiProcCpu.java
+++ b/bindings/java/src/org/hyperic/sigar/MultiProcCpu.java
@@ -1,118 +1,118 @@
/*
* Copyright (C) [20... | true | true | static synchronized MultiProcCpu get(Sigar sigar, String query)
throws SigarException {
MultiProcCpu cpu;
cpu = (MultiProcCpu)ptable.get(query);
if (cpu == null) {
cpu = new MultiProcCpu();
cpu.pid = query.hashCode(); //for equals()
ptable.put(q... | static synchronized MultiProcCpu get(Sigar sigar, String query)
throws SigarException {
MultiProcCpu cpu;
cpu = (MultiProcCpu)ptable.get(query);
if (cpu == null) {
cpu = new MultiProcCpu();
cpu.pid = query.hashCode(); //for equals()
ptable.put(q... |
diff --git a/hazelcast/src/main/java/com/hazelcast/config/ConfigXmlGenerator.java b/hazelcast/src/main/java/com/hazelcast/config/ConfigXmlGenerator.java
index cf16ceef59..6fc0017f58 100644
--- a/hazelcast/src/main/java/com/hazelcast/config/ConfigXmlGenerator.java
+++ b/hazelcast/src/main/java/com/hazelcast/config/Confi... | true | true | public String generate(Config config) {
final StringBuilder xml = new StringBuilder();
xml.append("<hazelcast ")
.append("xmlns=\"http://www.hazelcast.com/schema/config\"\n")
.append("xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n")
.append(... | public String generate(Config config) {
final StringBuilder xml = new StringBuilder();
xml.append("<hazelcast ")
.append("xmlns=\"http://www.hazelcast.com/schema/config\"\n")
.append("xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n")
.append(... |
diff --git a/src/java/davmail/caldav/CaldavConnection.java b/src/java/davmail/caldav/CaldavConnection.java
index 360cb58..9d08aa5 100644
--- a/src/java/davmail/caldav/CaldavConnection.java
+++ b/src/java/davmail/caldav/CaldavConnection.java
@@ -1,518 +1,521 @@
package davmail.caldav;
import davmail.AbstractConnecti... | false | true | public void handleRequest(String command, String path, Map<String, String> headers, String body) throws IOException {
int depth = getDepth(headers);
if ("OPTIONS".equals(command)) {
sendOptions();
} else if ("PROPFIND".equals(command) && "/user/".equals(path)) {
Calda... | public void handleRequest(String command, String path, Map<String, String> headers, String body) throws IOException {
int depth = getDepth(headers);
if ("OPTIONS".equals(command)) {
sendOptions();
} else if ("PROPFIND".equals(command)
&& ("/user/".equals(path) || ... |
diff --git a/core/src/main/org/hamsandwich/core/StackInterrogatingNameResolver.java b/core/src/main/org/hamsandwich/core/StackInterrogatingNameResolver.java
index 4568af9..1c5a2f3 100644
--- a/core/src/main/org/hamsandwich/core/StackInterrogatingNameResolver.java
+++ b/core/src/main/org/hamsandwich/core/StackInterrogat... | true | true | public String resolveFor(Object o) {
try {
throw new Exception();
} catch (Exception e) {
for (StackTraceElement stackTraceElement : e.getStackTrace()) {
try {
Class<?> clientClass = Class.forName(stackTraceElement.getClassName());
... | public String resolveFor(Object o) {
try {
throw new Exception();
} catch (Exception e) {
for (StackTraceElement stackTraceElement : e.getStackTrace()) {
try {
Class<?> clientClass = Class.forName(stackTraceElement.getClassName());
... |
diff --git a/App/src/com/dozuki/ifixit/view/ui/TopicsActivity.java b/App/src/com/dozuki/ifixit/view/ui/TopicsActivity.java
index aecf8d69..74d47b89 100644
--- a/App/src/com/dozuki/ifixit/view/ui/TopicsActivity.java
+++ b/App/src/com/dozuki/ifixit/view/ui/TopicsActivity.java
@@ -1,507 +1,507 @@
package com.dozuki.ifixi... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getSupportActionBar().setTitle("");
setContentView(R.layout.topics);
com.actionbarsherlock.app.ActionBar actionBar = getSupportActionBar();
mTopicListView = (View)findViewById( R.id.topic_... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getSupportActionBar().setTitle("");
setContentView(R.layout.topics);
com.actionbarsherlock.app.ActionBar actionBar = getSupportActionBar();
mTopicListView = (View)findViewById( R.id.topic_... |
diff --git a/src/com/secretnotes/fb/client/FriendProfilePanel.java b/src/com/secretnotes/fb/client/FriendProfilePanel.java
index 0edf289..eddda64 100644
--- a/src/com/secretnotes/fb/client/FriendProfilePanel.java
+++ b/src/com/secretnotes/fb/client/FriendProfilePanel.java
@@ -1,110 +1,106 @@
package com.secretnotes.fb... | true | true | public void processPhotosRequest(JavaScriptObject response) {
JSOModel jso = response.cast();
JsArray<JSOModel> photos = jso.getArray(Util.ARRAY_DATA);
getPhotosPanel().clear();
getAlbumListPanel().clear();
clear();
add(getPhotosPanel());
add(getAlbumListPanel());
getPhotosPanel().add(new HTML("<h2>"+c... | public void processPhotosRequest(JavaScriptObject response) {
JSOModel jso = response.cast();
JsArray<JSOModel> photos = jso.getArray(Util.ARRAY_DATA);
resetPanel();
getPhotosPanel().add(new HTML("<h2>"+currentFriend.getName()+"</h2>"));
getPhotosPanel().add(new HTML("Photos uploaded: "+photos.length()));
... |
diff --git a/src/com/mel/wallpaper/starWars/view/JediAnimator.java b/src/com/mel/wallpaper/starWars/view/JediAnimator.java
index 70f1d6e..385cb24 100644
--- a/src/com/mel/wallpaper/starWars/view/JediAnimator.java
+++ b/src/com/mel/wallpaper/starWars/view/JediAnimator.java
@@ -1,151 +1,160 @@
package com.mel.wallpaper.... | false | true | protected void animate(Animation a){
if(a==null){
a = Animation.STOP_S;
}
if(this.lastAnimation == a){
return;
}
long tileDuration = 200;
switch(a) {
case WALK_E: //derecha
tileDuration = Math.round(10000/speed);
sprite.animate(new long[]{tileDuration, tileDuration, tileDuration, ti... | protected void animate(Animation a){
if(a==null){
a = Animation.STOP_S;
}
if(this.lastAnimation == a){
return;
}
long tileDuration = 200;
switch(a) {
case WALK_E: //derecha
tileDuration = Math.round(10000/speed);
sprite.animate(new long[]{tileDuration, tileDuration, tileDuration, ti... |
diff --git a/Dimmer/src/giraffine/dimmer/SettingsFragment.java b/Dimmer/src/giraffine/dimmer/SettingsFragment.java
index d5a2eca..0797007 100644
--- a/Dimmer/src/giraffine/dimmer/SettingsFragment.java
+++ b/Dimmer/src/giraffine/dimmer/SettingsFragment.java
@@ -1,231 +1,232 @@
package giraffine.dimmer;
import andr... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.preference);
mPrefAutoMode = (CheckBoxPreference)findPreference(Prefs.PREF_AUTOMODE);
mPrefAutoMode.setOnPreferenceClickListener(this);
mP... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Prefs.init(getActivity());
addPreferencesFromResource(R.xml.preference);
mPrefAutoMode = (CheckBoxPreference)findPreference(Prefs.PREF_AUTOMODE);
mPrefAutoMode.setOnPreferenceClick... |
diff --git a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java
index a7c76e2f3..a3d6f75e4 100644
--- a/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java
+++ b/apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPCli... | false | true | protected void clientConnectionRun(Socket s) {
OutputStream out = null;
String targetRequest = null;
boolean usingWWWProxy = false;
String currentProxy = null;
long requestId = ++__requestId;
try {
out = s.getOutputStream();
BufferedReader br =... | protected void clientConnectionRun(Socket s) {
OutputStream out = null;
String targetRequest = null;
boolean usingWWWProxy = false;
String currentProxy = null;
long requestId = ++__requestId;
try {
out = s.getOutputStream();
BufferedReader br =... |
diff --git a/paul/src/main/java/au/edu/uq/cmm/paul/grabber/AbstractFileGrabber.java b/paul/src/main/java/au/edu/uq/cmm/paul/grabber/AbstractFileGrabber.java
index 2e5bdb5..b2c4d0d 100644
--- a/paul/src/main/java/au/edu/uq/cmm/paul/grabber/AbstractFileGrabber.java
+++ b/paul/src/main/java/au/edu/uq/cmm/paul/grabber/Abst... | true | true | private void processEvent(FileWatcherEvent event) {
File file = event.getFile();
Facility facility = (Facility) event.getFacility();
LOG.debug("FileWatcherEvent received : " +
facility.getFacilityName() + "," + file + "," + event.isCreate());
File baseFile = null;
... | private void processEvent(FileWatcherEvent event) {
File file = event.getFile();
Facility facility = (Facility) event.getFacility();
LOG.debug("FileWatcherEvent received : " +
facility.getFacilityName() + "," + file + "," + event.isCreate());
File baseFile = null;
... |
diff --git a/bundles/plugins/org.bonitasoft.studio.intro/src/org/bonitasoft/studio/intro/content/OpenActionContentProvider.java b/bundles/plugins/org.bonitasoft.studio.intro/src/org/bonitasoft/studio/intro/content/OpenActionContentProvider.java
index e89dfe9e9d..ee01c1c5db 100644
--- a/bundles/plugins/org.bonitasoft.st... | true | true | public void createContent(String id, Element parent) {
if(PlatformUI.isWorkbenchRunning()){
final IWorkbenchWindow activeWorkbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
if(activeWorkbenchWindow != null){
final IWorkbenchPage activePage = activeWorkbenchWindow.getActivePage();
if... | public void createContent(String id, Element parent) {
if(PlatformUI.isWorkbenchRunning()){
final IWorkbenchWindow activeWorkbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
if(activeWorkbenchWindow != null){
final IWorkbenchPage activePage = activeWorkbenchWindow.getActivePage();
if... |
diff --git a/maven-mboot2/src/main/java/download/RepositoryMetadata.java b/maven-mboot2/src/main/java/download/RepositoryMetadata.java
index 90be3e658..b9649f24e 100644
--- a/maven-mboot2/src/main/java/download/RepositoryMetadata.java
+++ b/maven-mboot2/src/main/java/download/RepositoryMetadata.java
@@ -1,346 +1,352 @@... | false | true | public void endElement( String uri, String localName, String rawName )
throws SAXException
{
if ( insideVersioning )
{
if ( "versioning".equals( rawName ) )
{
insideVersioning = false;
}
... | public void endElement( String uri, String localName, String rawName )
throws SAXException
{
if ( insideVersioning )
{
if ( "versioning".equals( rawName ) )
{
insideVersioning = false;
}
... |
diff --git a/src/main/java/org/basex/core/cmd/OptimizeAll.java b/src/main/java/org/basex/core/cmd/OptimizeAll.java
index bd0d44edd..12141181c 100644
--- a/src/main/java/org/basex/core/cmd/OptimizeAll.java
+++ b/src/main/java/org/basex/core/cmd/OptimizeAll.java
@@ -1,184 +1,185 @@
package org.basex.core.cmd;
import ... | true | true | public static void optimizeAll(final Data data, final Context ctx,
final OptimizeAll cmd) throws IOException {
if(!(data instanceof DiskData)) throw new BaseXException(PROCMM);
final DiskData old = (DiskData) data;
final MetaData m = old.meta;
if(cmd != null) cmd.size = m.size;
// check i... | public static void optimizeAll(final Data data, final Context ctx,
final OptimizeAll cmd) throws IOException {
if(!(data instanceof DiskData)) throw new BaseXException(PROCMM);
final DiskData old = (DiskData) data;
final MetaData m = old.meta;
if(cmd != null) cmd.size = m.size;
// check i... |
diff --git a/src/de/hikinggrass/WhoPlacedIt/WhoPlacedItPlayerListener.java b/src/de/hikinggrass/WhoPlacedIt/WhoPlacedItPlayerListener.java
index 289cd9d..3904b1e 100644
--- a/src/de/hikinggrass/WhoPlacedIt/WhoPlacedItPlayerListener.java
+++ b/src/de/hikinggrass/WhoPlacedIt/WhoPlacedItPlayerListener.java
@@ -1,40 +1,40 ... | true | true | public void onPlayerInteract(PlayerInteractEvent event) {
if (event.getAction().equals(Action.RIGHT_CLICK_BLOCK)
&& (this.manager.getInHand().contains(event.getPlayer().getItemInHand().getTypeId()))
|| this.manager.getInHand().isEmpty()) {
// log.info("right clicked on block" + event.getClickedBlock().get... | public void onPlayerInteract(PlayerInteractEvent event) {
if (event.getAction().equals(Action.RIGHT_CLICK_BLOCK)
&& (this.manager.getInHand().isEmpty() || this.manager.getInHand().contains(
event.getPlayer().getItemInHand().getTypeId()))) {
// log.info("right clicked on block" + event.getClickedBlock().... |
diff --git a/src/worker/MatchRunner.java b/src/worker/MatchRunner.java
index 9d36366..bf23847 100755
--- a/src/worker/MatchRunner.java
+++ b/src/worker/MatchRunner.java
@@ -1,310 +1,312 @@
package worker;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputS... | false | true | private void runMatch() {
_log.info("Running: " + match);
if (Config.MOCK_WORKER) {
try {
Thread.sleep(1000 * Config.MOCK_WORKER_SLEEP);
} catch (InterruptedException e) {
}
if (running) {
worker.matchFinish(this, core, match, STATUS.COMPLETE, MatchResultImpl.constructMockMatchResult(), new byt... | private void runMatch() {
_log.info("Running: " + match);
if (Config.MOCK_WORKER) {
try {
Thread.sleep(1000 * Config.MOCK_WORKER_SLEEP);
} catch (InterruptedException e) {
}
if (running) {
worker.matchFinish(this, core, match, STATUS.COMPLETE, MatchResultImpl.constructMockMatchResult(), new byt... |
diff --git a/Adme_v1/src/com/example/adme_v1/Splash.java b/Adme_v1/src/com/example/adme_v1/Splash.java
index 0f73e8e..51c12bd 100644
--- a/Adme_v1/src/com/example/adme_v1/Splash.java
+++ b/Adme_v1/src/com/example/adme_v1/Splash.java
@@ -1,31 +1,31 @@
package com.example.adme_v1;
import android.app.Activity;
import... | true | true | protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
Thread timer = new Thread(){
public void run(){
try{
sleep(3000);
}catch(InterruptedException e){
e.printStackTrace();
}finally{
... | protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
Thread timer = new Thread(){
public void run(){
try{
sleep(3000);
}catch(InterruptedException e){
e.printStackTrace();
}finally{
... |
diff --git a/bundles/org.eclipse.wst.xsl.ui/src/org/eclipse/wst/xsl/ui/internal/contentassist/SelectAttributeContentAssist.java b/bundles/org.eclipse.wst.xsl.ui/src/org/eclipse/wst/xsl/ui/internal/contentassist/SelectAttributeContentAssist.java
index 1dcee8d..15fc40a 100644
--- a/bundles/org.eclipse.wst.xsl.ui/src/org/... | true | true | private void addVariablesProposals(String xpath, Node xpathnode, int offset) {
synchronized (XPATH_LOCK) {
try {
NodeList nodes = XSLTXPathHelper.selectNodeList(xpathnode,
xpath);
if (!hasNodes(nodes)) {
return;
}
int startLength = getCursorPosition() - offset;
for (int nodecn... | private void addVariablesProposals(String xpath, Node xpathnode, int offset) {
synchronized (XPATH_LOCK) {
try {
NodeList nodes = XSLTXPathHelper.selectNodeList(xpathnode,
xpath);
if (!hasNodes(nodes)) {
return;
}
int startLength = getCursorPosition() - offset;
for (int nodecn... |
diff --git a/src/org/melonbrew/fee/listeners/FeePlayerListener.java b/src/org/melonbrew/fee/listeners/FeePlayerListener.java
index 25639d4..1ca9bcf 100644
--- a/src/org/melonbrew/fee/listeners/FeePlayerListener.java
+++ b/src/org/melonbrew/fee/listeners/FeePlayerListener.java
@@ -1,132 +1,132 @@
package org.melonbrew.... | true | true | public void onPlayerInteract(PlayerInteractEvent event){
Block block = event.getClickedBlock();
if (block == null){
return;
}
Player player = event.getPlayer();
Material type = block.getType();
if (event.getAction() == Action.LEFT_CLICK_BLOCK){
if (type == Material.FURNACE || type == Mate... | public void onPlayerInteract(PlayerInteractEvent event){
Block block = event.getClickedBlock();
if (block == null){
return;
}
Player player = event.getPlayer();
Material type = block.getType();
if (event.getAction() == Action.LEFT_CLICK_BLOCK){
if (type == Material.FURNACE || type == Mate... |
diff --git a/plugin/src/main/java/org/exoplatform/crowdin/mojo/DownloadTranslationsMojo.java b/plugin/src/main/java/org/exoplatform/crowdin/mojo/DownloadTranslationsMojo.java
index 0c772a9..ce2d953 100644
--- a/plugin/src/main/java/org/exoplatform/crowdin/mojo/DownloadTranslationsMojo.java
+++ b/plugin/src/main/java/or... | true | true | public void crowdInMojoExecute() throws MojoExecutionException, MojoFailureException {
if (!crowdInArchive.exists() || !isDryRun()) {
try {
getHelper().setApprovedOnlyOption();
getLog().info("Downloading Crowdin translation zip...");
getHelper().downloadTranslations(crowdInArchive);
... | public void crowdInMojoExecute() throws MojoExecutionException, MojoFailureException {
if (!crowdInArchive.exists() || !isDryRun()) {
try {
getHelper().setApprovedOnlyOption();
getLog().info("Downloading Crowdin translation zip...");
getHelper().downloadTranslations(crowdInArchive);
... |
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAnnotation.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAnnotation.java
index 6b945f8e1..1280bc7a1 100644
--- a/eclipse/plugins/com.android.ide... | true | true | public static void createFixes(IMarker marker, String id,
List<IMarkerResolution> resolutions) {
ITextEditor textEditor = AdtUtils.getActiveTextEditor();
IDocumentProvider provider = textEditor.getDocumentProvider();
IEditorInput editorInput = textEditor.getEditorInput();
... | public static void createFixes(IMarker marker, String id,
List<IMarkerResolution> resolutions) {
ITextEditor textEditor = AdtUtils.getActiveTextEditor();
IDocumentProvider provider = textEditor.getDocumentProvider();
IEditorInput editorInput = textEditor.getEditorInput();
... |
diff --git a/game/src/test/java/org/sankozi/rogueland/data/DataLoaderTest.java b/game/src/test/java/org/sankozi/rogueland/data/DataLoaderTest.java
index 0accd28..1bb32a8 100644
--- a/game/src/test/java/org/sankozi/rogueland/data/DataLoaderTest.java
+++ b/game/src/test/java/org/sankozi/rogueland/data/DataLoaderTest.java... | true | true | public void testGetScriptNames() {
Collection<String> scriptNames = new DataLoader().getScriptNames();
assert !scriptNames.isEmpty() : "no script names";
assert scriptNames.contains("items.cl");
assertThat(scriptNames, empty());
}
| public void testGetScriptNames() {
Collection<String> scriptNames = new DataLoader().getScriptNames();
assertThat(scriptNames, contains("items.cl"));
}
|
diff --git a/flyway-core/src/test/java/com/googlecode/flyway/core/dbsupport/oracle/OracleDbSupportMediumTest.java b/flyway-core/src/test/java/com/googlecode/flyway/core/dbsupport/oracle/OracleDbSupportMediumTest.java
index bbc06865c..480302250 100644
--- a/flyway-core/src/test/java/com/googlecode/flyway/core/dbsupport/... | false | true | private Properties getConnectionProperties() throws IOException {
File customPropertiesFile = new File(System.getProperty("user.home") + "/flyway-mediumtests.properties");
Properties connectionProperties = new Properties();
if (customPropertiesFile.canRead()) {
connectionProperti... | private Properties getConnectionProperties() throws IOException {
File customPropertiesFile = new File(System.getProperty("user.home") + "/flyway-mediumtests.properties");
Properties connectionProperties = new Properties();
if (customPropertiesFile.canRead()) {
connectionProperti... |
diff --git a/src/com/philiptorchinsky/TimeAppe/MainActivity.java b/src/com/philiptorchinsky/TimeAppe/MainActivity.java
index 27d83af..3372192 100644
--- a/src/com/philiptorchinsky/TimeAppe/MainActivity.java
+++ b/src/com/philiptorchinsky/TimeAppe/MainActivity.java
@@ -1,93 +1,93 @@
package com.philiptorchinsky.TimeApp... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
dh = new DBAdapter (this);
dh.open();
// dh.destroy();
// dh.close();
//
// dh = new DBAdapter (this);
dh.insert("TeamCity training", "inactive", 0,0);
dh.insert("Androi... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
dh = new DBAdapter (this);
dh.open();
// dh.destroy();
// dh.close();
//
// dh = new DBAdapter (this);
dh.insert("TeamCity training", "inactive", 0,0);
dh.insert("Androi... |
diff --git a/solver/src/main/java/solver/search/loop/BinarySearchLoop.java b/solver/src/main/java/solver/search/loop/BinarySearchLoop.java
index 394db8f72..a5f8c55c1 100755
--- a/solver/src/main/java/solver/search/loop/BinarySearchLoop.java
+++ b/solver/src/main/java/solver/search/loop/BinarySearchLoop.java
@@ -1,237 +... | true | true | protected void initialPropagation() {
this.env.worldPush();
try {
PropagationUtils.primeEngine(solver);
} catch (ContradictionException e) {
this.env.worldPop();
solver.setFeasible(Boolean.FALSE);
solver.getEngine().flush();
interru... | protected void initialPropagation() {
this.env.worldPush();
try {
PropagationUtils.primeEngine(solver);
} catch (ContradictionException e) {
this.env.worldPop();
solver.setFeasible(Boolean.FALSE);
solver.getEngine().flush();
interru... |
diff --git a/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/p2/core/Locker_JavaNio.java b/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/p2/core/Locker_JavaNio.java
index 330db1cdf..12b761ef3 100644
--- a/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/p2... | true | true | public synchronized boolean lock() throws IOException {
raFile = new RandomAccessFile(lockFile, "rw"); //$NON-NLS-1$
try {
fileLock = raFile.getChannel().tryLock();
} catch (IOException ioe) {
// print exception if debugging
if (BasicLocation.DEBUG)
System.out.println(NLS.bind(Messages.location_cann... | public synchronized boolean lock() throws IOException {
raFile = new RandomAccessFile(lockFile, "rw"); //$NON-NLS-1$
try {
// Fix for bug http://bugs.sun.com/view_bug.do?bug_id=6628575 and
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=44735
fileLock = raFile.getChannel().tryLock(0, 1, false);
} catch... |
diff --git a/addon-security/src/main/java/org/springframework/roo/addon/security/SecurityOperations.java b/addon-security/src/main/java/org/springframework/roo/addon/security/SecurityOperations.java
index e64a79b44..a58a92b6e 100644
--- a/addon-security/src/main/java/org/springframework/roo/addon/security/SecurityOpera... | true | true | public void installSecurity() {
// add to POM
projectOperations.dependencyUpdate(DEPENDENCY);
// copy the template across
String destination = pathResolver.getIdentifier(Path.SRC_MAIN_RESOURCES, "applicationContext-security.xml");
if (!fileManager.exists(destination)) {
try {
FileCopyUtils.copy(Tem... | public void installSecurity() {
// add to POM
projectOperations.dependencyUpdate(DEPENDENCY);
// copy the template across
String destination = pathResolver.getIdentifier(Path.SRC_MAIN_RESOURCES, "applicationContext-security.xml");
if (!fileManager.exists(destination)) {
try {
FileCopyUtils.copy(Tem... |
diff --git a/src/main/com/mongodb/DBTCPConnector.java b/src/main/com/mongodb/DBTCPConnector.java
index c464049cd..a2652926a 100644
--- a/src/main/com/mongodb/DBTCPConnector.java
+++ b/src/main/com/mongodb/DBTCPConnector.java
@@ -1,663 +1,664 @@
// DBTCPConnector.java
/**
* Copyright (C) 2008 10gen Inc.
*
... | true | true | private Response innerCall(final DB db, final DBCollection coll, final OutMessage m, final ServerAddress hostNeeded,
final int retries, ReadPreference readPref, final DBDecoder decoder) {
if (readPref == null)
readPref = ReadPreference.primary();
if (readP... | private Response innerCall(final DB db, final DBCollection coll, final OutMessage m, final ServerAddress hostNeeded,
final int retries, ReadPreference readPref, final DBDecoder decoder) {
if (readPref == null)
readPref = ReadPreference.primary();
if (readP... |
diff --git a/aura/src/test/java/org/auraframework/throwable/quickfix/QuickFixUITestUtil.java b/aura/src/test/java/org/auraframework/throwable/quickfix/QuickFixUITestUtil.java
index 4ffa8917c2..29d6789c5e 100644
--- a/aura/src/test/java/org/auraframework/throwable/quickfix/QuickFixUITestUtil.java
+++ b/aura/src/test/jav... | true | true | public void deleteFiles(DefDescriptor<?> defDescriptor) {
Source<?> source = Aura.getContextService().getCurrentContext().getDefRegistry().getSource(defDescriptor);
if (source != null) {
File f = new File(source.getSystemId());
if (f.exists()) {
File dir = f.g... | public void deleteFiles(DefDescriptor<?> defDescriptor) {
Source<?> source = Aura.getContextService().getCurrentContext().getDefRegistry().getSource(defDescriptor);
if (source != null) {
File f = new File(source.getSystemId());
if (f.exists()) {
File dir = f.g... |
diff --git a/servers/jain-slee/core/jar/src/main/java/org/mobicents/slee/container/profile/AbstractProfileMBeanImpl.java b/servers/jain-slee/core/jar/src/main/java/org/mobicents/slee/container/profile/AbstractProfileMBeanImpl.java
index a75c6dc1b..041347a96 100644
--- a/servers/jain-slee/core/jar/src/main/java/org/mobi... | true | true | public void commitProfile() throws InvalidStateException, ProfileVerificationException, ManagementException {
if (logger.isDebugEnabled()) {
logger.debug("commitProfile() on: "+ profileName + ", from table:" +profileTable.getProfileTableName());
}
if (!this.isProfileWriteable())
throw new InvalidSta... | public void commitProfile() throws InvalidStateException, ProfileVerificationException, ManagementException {
if (logger.isDebugEnabled()) {
logger.debug("commitProfile() on: "+ profileName + ", from table:" +profileTable.getProfileTableName());
}
if (!this.isProfileWriteable())
throw new InvalidSta... |
diff --git a/src/to/joe/j2mc/core/permissions/Permissions.java b/src/to/joe/j2mc/core/permissions/Permissions.java
index 9215e99..8eadd7d 100644
--- a/src/to/joe/j2mc/core/permissions/Permissions.java
+++ b/src/to/joe/j2mc/core/permissions/Permissions.java
@@ -1,261 +1,264 @@
package to.joe.j2mc.core.permissions;
i... | false | true | public void playerPreLogin(PlayerPreLoginEvent event){
final String player = event.getName();
final HashSet<Character> flags = new HashSet<Character>();
String group;
try {
final PreparedStatement userInfo = J2MC_Manager.getMySQL().getFreshPreparedStatementHotFromTheOven(... | public void playerPreLogin(PlayerPreLoginEvent event){
final String player = event.getName();
final HashSet<Character> flags = new HashSet<Character>();
String group;
try {
final PreparedStatement userInfo = J2MC_Manager.getMySQL().getFreshPreparedStatementHotFromTheOven(... |
diff --git a/ide-test/org.codehaus.groovy.eclipse.dsl.tests/src/org/codehaus/groovy/eclipse/dsl/tests/DSLContentAssistTests.java b/ide-test/org.codehaus.groovy.eclipse.dsl.tests/src/org/codehaus/groovy/eclipse/dsl/tests/DSLContentAssistTests.java
index 001fbc7d9..004509cfa 100644
--- a/ide-test/org.codehaus.groovy.ecli... | true | true | public void testEmptyClosure1() throws Exception {
createDsls(
SET_DELEGATE_ON_INT);
String contents = "1.foo {\n" +
" // here\n" +
"}";
ICompletionProposal[] proposals = createProposalsAtOffset(contents, getIndexOf(contents, "\n "));
// s... | public void testEmptyClosure1() throws Exception {
createDsls(
SET_DELEGATE_ON_INT);
String contents = "1.foo {\n" +
" // here\n" +
"}";
ICompletionProposal[] proposals = createProposalsAtOffset(contents, getIndexOf(contents, "\n "));
// s... |
diff --git a/src/main/java/org/basex/examples/server/ServerQueryExample.java b/src/main/java/org/basex/examples/server/ServerQueryExample.java
index 02ff240ef..c260339eb 100644
--- a/src/main/java/org/basex/examples/server/ServerQueryExample.java
+++ b/src/main/java/org/basex/examples/server/ServerQueryExample.java
@@ ... | false | true | public static void main(final String[] args) throws Exception {
System.out.println("=== ServerQueryExample ===");
// ------------------------------------------------------------------------
// Start server on default port 1984.
BaseXServer server = new BaseXServer();
// ------------------------... | public static void main(final String[] args) throws Exception {
System.out.println("=== ServerQueryExample ===");
// ------------------------------------------------------------------------
// Start server on default port 1984.
BaseXServer server = new BaseXServer();
// ------------------------... |
diff --git a/morphia/src/main/java/com/google/code/morphia/converters/IterableConverter.java b/morphia/src/main/java/com/google/code/morphia/converters/IterableConverter.java
index 69d9fa1..4b50930 100644
--- a/morphia/src/main/java/com/google/code/morphia/converters/IterableConverter.java
+++ b/morphia/src/main/java/c... | true | true | Object encode(Object value, MappedField mf) {
if (value == null)
return null;
Iterable<?> iterableValues = null;
if (value.getClass().isArray()) {
if (Array.getLength(value) == 0) {
return value;
}
if (value.getClass().getComponentType().isPrimitive())
return value;
itera... | Object encode(Object value, MappedField mf) {
if (value == null)
return null;
Iterable<?> iterableValues = null;
if (value.getClass().isArray()) {
if (Array.getLength(value) == 0) {
return value;
}
if (value.getClass().getComponentType().isPrimitive())
return value;
itera... |
diff --git a/src/net/sf/freecol/client/gui/option/IntegerOptionUI.java b/src/net/sf/freecol/client/gui/option/IntegerOptionUI.java
index e1832c594..5d8bac124 100644
--- a/src/net/sf/freecol/client/gui/option/IntegerOptionUI.java
+++ b/src/net/sf/freecol/client/gui/option/IntegerOptionUI.java
@@ -1,78 +1,79 @@
packag... | true | true | public IntegerOptionUI(IntegerOption option) {
super(new FlowLayout(FlowLayout.LEFT));
this.option = option;
String name = option.getName();
String description = option.getShortDescription();
JLabel label = new JLabel(name, JLabel.LEFT);
label.setToolTipText((descri... | public IntegerOptionUI(IntegerOption option) {
super(new FlowLayout(FlowLayout.LEFT));
this.option = option;
String name = option.getName();
String description = option.getShortDescription();
JLabel label = new JLabel(name, JLabel.LEFT);
label.setToolTipText((descri... |
diff --git a/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/views/OptionDateHelper.java b/source/trunk/plugins/org.marketcetera.photon/src/main/java/org/marketcetera/photon/views/OptionDateHelper.java
index 7824c86e9..dc0e7393e 100644
--- a/source/trunk/plugins/org.marketcetera.photo... | true | true | public List<String> createDefaultYears() {
List<String> yearList = new ArrayList<String>();
final int maxYear = 12;
for (int currentYear = 7; currentYear <= maxYear; ++currentYear) {
StringBuilder year = new StringBuilder();
if (currentYear < 10) {
year.append("0");
}
year.append(currentYear);
... | public List<String> createDefaultYears() {
List<String> yearList = new ArrayList<String>();
final int maxYear = 12;
for (int currentYear = 8; currentYear <= maxYear; ++currentYear) {
StringBuilder year = new StringBuilder();
if (currentYear < 10) {
year.append("0");
}
year.append(currentYear);
... |
diff --git a/src/com/intalker/borrow/ui/control/sliding/SlidingView.java b/src/com/intalker/borrow/ui/control/sliding/SlidingView.java
index 70fc30c..e9ba4c2 100644
--- a/src/com/intalker/borrow/ui/control/sliding/SlidingView.java
+++ b/src/com/intalker/borrow/ui/control/sliding/SlidingView.java
@@ -1,365 +1,366 @@
pa... | false | true | public boolean onTouchEvent(MotionEvent ev) {
if (mVelocityTracker == null) {
mVelocityTracker = VelocityTracker.obtain();
}
mVelocityTracker.addMovement(ev);
final int action = ev.getAction();
final float x = ev.getX();
final float y = ev.getY();
switch (action) {
case MotionEvent.ACTION_DOWN:
... | public boolean onTouchEvent(MotionEvent ev) {
if (mVelocityTracker == null) {
mVelocityTracker = VelocityTracker.obtain();
}
mVelocityTracker.addMovement(ev);
final int action = ev.getAction();
final float x = ev.getX();
final float y = ev.getY();
switch (action) {
case MotionEvent.ACTION_DOWN:
... |
diff --git a/java/src/binarytrees/TreeHasPathSum.java b/java/src/binarytrees/TreeHasPathSum.java
index 3ab88cb..1f932f3 100644
--- a/java/src/binarytrees/TreeHasPathSum.java
+++ b/java/src/binarytrees/TreeHasPathSum.java
@@ -1,22 +1,22 @@
package binarytrees;
/**
* Given a binary tree and a sum, return true if th... | true | true | public static boolean hasPathSum(TreeNode<Integer> root, int sum) {
if (root == null) {
return false;
}
Integer value = root.getValue();
if (value == null) {
throw new NullPointerException("You are an insane programmer.");
}
return hasPathSum(root.getLeft(), sum - value)
|| hasPathSum(root.getRi... | public static boolean hasPathSum(TreeNode<Integer> root, int sum) {
if (root == null) {
return false;
}
Integer value = root.getValue();
if (value == null) {
throw new NullPointerException("You are an insane programmer.");
}
return hasPathSum(root.getLeft(), sum - value)
|| hasPathSum(root.getRi... |
diff --git a/src/test/java/com/pillar/driver/ModernWebDriverFactory.java b/src/test/java/com/pillar/driver/ModernWebDriverFactory.java
index 01c4cda..df058c2 100644
--- a/src/test/java/com/pillar/driver/ModernWebDriverFactory.java
+++ b/src/test/java/com/pillar/driver/ModernWebDriverFactory.java
@@ -1,53 +1,53 @@
pack... | false | true | public ModernWebDriver webDriver(Properties bundle) {
final String applicationUrl = bundle.getProperty(APPLICATION_URL);
final String driverType = bundle.getProperty(DRIVER_TYPE);
switch(driverType) {
case HTMLUNIT_DRIVER :
return htmlUnitDriver(applicationUrl);
case FIREFOX_DRIVER :
... | public ModernWebDriver webDriver(Properties bundle) {
final String applicationUrl = bundle.getProperty(APPLICATION_URL);
final String driverType = bundle.getProperty(DRIVER_TYPE);
switch(driverType) {
case HTMLUNIT_DRIVER :
return htmlUnitDriver(applicationUrl);
case FIREFOX_DRIVER :
... |
diff --git a/src/main/java/org/basex/query/up/expr/Transform.java b/src/main/java/org/basex/query/up/expr/Transform.java
index 0f438de3e..d4fbe9525 100644
--- a/src/main/java/org/basex/query/up/expr/Transform.java
+++ b/src/main/java/org/basex/query/up/expr/Transform.java
@@ -1,141 +1,142 @@
package org.basex.query.up... | true | true | public Value value(final QueryContext ctx) throws QueryException {
final int o = (int) ctx.output.size();
final ContextModifier tmp = ctx.updates.mod;
final TransformModifier pu = new TransformModifier();
ctx.updates.mod = pu;
try {
for(final Let fo : copies) {
final Iter ir = ctx.i... | public Value value(final QueryContext ctx) throws QueryException {
final int o = (int) ctx.output.size();
if(ctx.updates == null) ctx.updates = new Updates();
final ContextModifier tmp = ctx.updates.mod;
final TransformModifier pu = new TransformModifier();
ctx.updates.mod = pu;
try {
f... |
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/git/ReceiveCommits.java b/gerrit-server/src/main/java/com/google/gerrit/server/git/ReceiveCommits.java
index 7e130a5ac..4f2a4abb2 100644
--- a/gerrit-server/src/main/java/com/google/gerrit/server/git/ReceiveCommits.java
+++ b/gerrit-server/src/main/java/... | false | true | private PatchSet.Id doReplace(final ReplaceRequest request)
throws IOException, OrmException {
final RevCommit c = request.newCommit;
rp.getRevWalk().parseBody(c);
warnMalformedMessage(c);
final Account.Id me = currentUser.getAccountId();
final Set<Account.Id> reviewers = new HashSet<Accoun... | private PatchSet.Id doReplace(final ReplaceRequest request)
throws IOException, OrmException {
final RevCommit c = request.newCommit;
rp.getRevWalk().parseBody(c);
warnMalformedMessage(c);
final Account.Id me = currentUser.getAccountId();
final Set<Account.Id> reviewers = new HashSet<Accoun... |
diff --git a/core/src/main/java/dk/frv/enav/shore/core/services/ais/OverviewResponse.java b/core/src/main/java/dk/frv/enav/shore/core/services/ais/OverviewResponse.java
index c19236b..88f158d 100644
--- a/core/src/main/java/dk/frv/enav/shore/core/services/ais/OverviewResponse.java
+++ b/core/src/main/java/dk/frv/enav/s... | true | true | public void addShip(int id, String vesselClass, Double cog, Double sog, Double lat, Double lon, Byte shipType, Integer navStatus) {
if (cog == null) {
cog = 0d;
}
if (shipType == null) {
shipType = 0;
}
if (sog == null) {
sog = 0d;
}
ArrayList<String> list = new ArrayList<String>();
list.ad... | public void addShip(int id, String vesselClass, Double cog, Double sog, Double lat, Double lon, Byte shipType, Integer navStatus) {
if (cog == null) {
cog = 0d;
}
if (shipType == null) {
shipType = 0;
}
if (sog == null) {
sog = 0d;
}
ArrayList<String> list = new ArrayList<String>();
list.ad... |
diff --git a/src/com/android/mms/model/SlideModel.java b/src/com/android/mms/model/SlideModel.java
index ea8964fc..01a69bbd 100644
--- a/src/com/android/mms/model/SlideModel.java
+++ b/src/com/android/mms/model/SlideModel.java
@@ -1,541 +1,544 @@
/*
* Copyright (C) 2008 Esmertec AG.
* Copyright (C) 2008 The Androi... | false | true | private void internalAdd(MediaModel media) throws IllegalStateException {
if (media == null) {
// Don't add null value into the list.
return;
}
if (media.isText()) {
String contentType = media.getContentType();
if (TextUtils.isEmpty(contentTyp... | private void internalAdd(MediaModel media) throws IllegalStateException {
if (media == null) {
// Don't add null value into the list.
return;
}
if (media.isText()) {
String contentType = media.getContentType();
if (TextUtils.isEmpty(contentTyp... |
diff --git a/engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java b/engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java
index 92fb39db7..0e630203c 100644
--- a/engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java
+++ b/engine/src/ogre/com/jme3/scene/plugins/ogre/MeshLoader.java
@@ -1,826 +1,826 @@... | true | true | private Node compileModel() {
String nodeName;
if (meshName == null) {
nodeName = "OgreMesh" + (++nodeIdx);
} else {
nodeName = meshName + "-ogremesh";
}
Node model = new Node(nodeName);
if (animData != null) {
ArrayList<Mesh> newM... | private Node compileModel() {
String nodeName;
if (meshName == null) {
nodeName = "OgreMesh" + (++nodeIdx);
} else {
nodeName = meshName + "-ogremesh";
}
Node model = new Node(nodeName);
if (animData != null) {
ArrayList<Mesh> newM... |
diff --git a/platform-infrastructure/comms-frwk/PubsubClientBundle/src/main/java/org/societies/comm/xmpp/pubsub/impl/PubsubClientImpl.java b/platform-infrastructure/comms-frwk/PubsubClientBundle/src/main/java/org/societies/comm/xmpp/pubsub/impl/PubsubClientImpl.java
index 0e10283b9..024a86a4e 100644
--- a/platform-infr... | false | true | public synchronized void addJaxbPackages(List<String> packageList) { //throws JAXBException {
if (packagesContextPath.length()==0) {
// TODO first run!
}
StringBuilder contextPath = new StringBuilder(packagesContextPath);
for (String pack : packageList)
contextPath.append(":" + pack);
/*
JAXBCont... | public synchronized void addJaxbPackages(List<String> packageList) { //throws JAXBException {
if (packagesContextPath.length()==0) {
// TODO first run!
}
StringBuilder contextPath = new StringBuilder(packagesContextPath);
for (String pack : packageList)
contextPath.append(":" + pack);
/*
JAXBCont... |
diff --git a/test/net/meisen/general/genmisc/exceptions/registry/TestDefaultExceptionRegistry.java b/test/net/meisen/general/genmisc/exceptions/registry/TestDefaultExceptionRegistry.java
index b9ea2f0..d9bf4c0 100644
--- a/test/net/meisen/general/genmisc/exceptions/registry/TestDefaultExceptionRegistry.java
+++ b/test/... | false | true | public void testDifferentConstructors() throws InvalidCatalogEntryException {
final DefaultExceptionRegistry registry = new DefaultExceptionRegistry();
final DefaultLocalizedExceptionCatalog catalog = new DefaultLocalizedExceptionCatalog(
"net/meisen/general/genmisc/exceptions/catalog/localizedCatalog/testExce... | public void testDifferentConstructors() throws InvalidCatalogEntryException {
final DefaultExceptionRegistry registry = new DefaultExceptionRegistry();
final DefaultLocalizedExceptionCatalog catalog = new DefaultLocalizedExceptionCatalog(
"net/meisen/general/genmisc/exceptions/catalog/localizedCatalog/testExce... |
diff --git a/src/main/java/net/pterodactylus/sone/template/AlbumAccessor.java b/src/main/java/net/pterodactylus/sone/template/AlbumAccessor.java
index 510056da..2c0a00e3 100644
--- a/src/main/java/net/pterodactylus/sone/template/AlbumAccessor.java
+++ b/src/main/java/net/pterodactylus/sone/template/AlbumAccessor.java
@... | true | true | public Object get(TemplateContext templateContext, Object object, String member) {
Album album = (Album) object;
if ("backlinks".equals(member)) {
List<Map<String, String>> backlinks = new ArrayList<Map<String, String>>();
Album currentAlbum = album;
while (currentAlbum != null) {
backlinks.add(0, cre... | public Object get(TemplateContext templateContext, Object object, String member) {
Album album = (Album) object;
if ("backlinks".equals(member)) {
List<Map<String, String>> backlinks = new ArrayList<Map<String, String>>();
Album currentAlbum = album;
while (currentAlbum != null) {
backlinks.add(0, cre... |
diff --git a/tool/src/java/org/sakaiproject/evaluation/tool/inferrers/EvaluationVPInferrer.java b/tool/src/java/org/sakaiproject/evaluation/tool/inferrers/EvaluationVPInferrer.java
index 97063279..424bfe5d 100644
--- a/tool/src/java/org/sakaiproject/evaluation/tool/inferrers/EvaluationVPInferrer.java
+++ b/tool/src/jav... | true | true | private ViewParameters inferDefaultViewParametersImpl(String reference) {
IdEntityReference ep = new IdEntityReference(reference);
EvalEvaluation evaluation = null;
Long evaluationId = null;
String evalGroupId = null;
if (EvaluationEntityProvider.ENTITY_PREFIX.equals(ep.pref... | private ViewParameters inferDefaultViewParametersImpl(String reference) {
IdEntityReference ep = new IdEntityReference(reference);
EvalEvaluation evaluation = null;
Long evaluationId = null;
String evalGroupId = null;
if (EvaluationEntityProvider.ENTITY_PREFIX.equals(ep.pref... |
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/builders/PreCompilerBuilder.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/builders/PreCompilerBuilder.java
index d5fdea8a6..3f4d0de95 100644
--- a/eclipse/plugins/c... | false | true | protected IProject[] build(int kind, Map args, IProgressMonitor monitor)
throws CoreException {
// get a project object
IProject project = getProject();
// list of referenced projects.
IProject[] libProjects = null;
try {
mDerivedProgressMonitor.rese... | protected IProject[] build(int kind, Map args, IProgressMonitor monitor)
throws CoreException {
// get a project object
IProject project = getProject();
// list of referenced projects.
IProject[] libProjects = null;
try {
mDerivedProgressMonitor.rese... |
diff --git a/src/org/scilab/forge/jlatexmath/AccentedAtom.java b/src/org/scilab/forge/jlatexmath/AccentedAtom.java
index 1c4ca87..4cabfab 100644
--- a/src/org/scilab/forge/jlatexmath/AccentedAtom.java
+++ b/src/org/scilab/forge/jlatexmath/AccentedAtom.java
@@ -1,193 +1,193 @@
/* AccentedAtom.java
* =================... | true | true | public Box createBox(TeXEnvironment env) {
TeXFont tf = env.getTeXFont();
int style = env.getStyle();
// set base in cramped style
Box b = (base == null ? new StrutBox(0, 0, 0, 0) : base.createBox(env
.crampStyle()));
float u = b.getWidth();
... | public Box createBox(TeXEnvironment env) {
TeXFont tf = env.getTeXFont();
int style = env.getStyle();
// set base in cramped style
Box b = (base == null ? new StrutBox(0, 0, 0, 0) : base.createBox(env
.crampStyle()));
float u = b.getWidth();
... |
diff --git a/viewer3d/src/org/jcae/viewer3d/ViewPyramid.java b/viewer3d/src/org/jcae/viewer3d/ViewPyramid.java
index 73d714f9..f98a4752 100644
--- a/viewer3d/src/org/jcae/viewer3d/ViewPyramid.java
+++ b/viewer3d/src/org/jcae/viewer3d/ViewPyramid.java
@@ -1,268 +1,268 @@
/*
* Project Info: http://jcae.sourceforge.ne... | true | true | private Point3d[] getPyramVertex(Rectangle rectangle){
if(rectangle==null) return null;
Point3d[] pyramVertex = new Point3d[6];
Point2d[] rectPoint = new Point2d[5];
for (int ii = 0; ii < pyramVertex.length; ii++)
pyramVertex[ii] = new Point3d();
rectPoint[0] = new Point2d(rectangle.getMinX(), rectangle.g... | private Point3d[] getPyramVertex(Rectangle rectangle){
if(rectangle==null) return null;
Point3d[] pyramVertex = new Point3d[6];
Point2d[] rectPoint = new Point2d[5];
for (int ii = 0; ii < pyramVertex.length; ii++)
pyramVertex[ii] = new Point3d();
rectPoint[0] = new Point2d(rectangle.getMinX(), rectangle.g... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.