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/dsd-maven-plugin/src/main/java/org/melati/poem/prepro/ReferenceFieldDef.java b/dsd-maven-plugin/src/main/java/org/melati/poem/prepro/ReferenceFieldDef.java
index cbd0663b5..c37b28a30 100644
--- a/dsd-maven-plugin/src/main/java/org/melati/poem/prepro/ReferenceFieldDef.java
+++ b/dsd-maven-plugin/src/main/ja... | true | true | public void generateBaseMethods(Writer w) throws IOException {
super.generateBaseMethods(w);
// FIXME the definition of these is duplicated from TableDef
String targetTableAccessorMethod = "get" + type + "Table";
String targetSuffix = type;
String db = "get" + table.dsd.databaseClass + "()";
... | public void generateBaseMethods(Writer w) throws IOException {
super.generateBaseMethods(w);
// FIXME the definition of these is duplicated from TableDef
String targetTableAccessorMethod = "get" + type + "Table";
String targetSuffix = type;
String db = "get" + table.dsd.databaseClass + "()";
... |
diff --git a/src/java/net/percederberg/mibble/value/NumberValue.java b/src/java/net/percederberg/mibble/value/NumberValue.java
index 0942497..171e5b0 100644
--- a/src/java/net/percederberg/mibble/value/NumberValue.java
+++ b/src/java/net/percederberg/mibble/value/NumberValue.java
@@ -1,179 +1,179 @@
/*
* NumberValue... | false | true | private int compareToNumber(Number num) {
BigDecimal num1;
BigDecimal num2;
if (value instanceof Integer && num instanceof Integer) {
return ((Integer) value).compareTo(num);
} else if (value instanceof Long && num instanceof Long) {
return ((Long) value).c... | private int compareToNumber(Number num) {
BigDecimal num1;
BigDecimal num2;
if (value instanceof Integer && num instanceof Integer) {
return ((Integer) value).compareTo((Integer) num);
} else if (value instanceof Long && num instanceof Long) {
return ((Long... |
diff --git a/sensappdroid/src/main/java/org/sensapp/android/sensappdroid/restrequests/PutMeasuresTask.java b/sensappdroid/src/main/java/org/sensapp/android/sensappdroid/restrequests/PutMeasuresTask.java
index c8b1c07..b3ab985 100644
--- a/sensappdroid/src/main/java/org/sensapp/android/sensappdroid/restrequests/PutMeasu... | false | true | protected Integer doInBackground(Integer... params) {
int rowTotal = 0;
Cursor cursor = context.getContentResolver().query(uri, new String[]{SensAppCPContract.Measure.ID}, SensAppCPContract.Measure.UPLOADED + " = 0", null, null);
if (cursor != null) {
rowTotal = cursor.getCount();
cursor.close();
}... | protected Integer doInBackground(Integer... params) {
int rowTotal = 0;
Cursor cursor = context.getContentResolver().query(uri, new String[]{SensAppCPContract.Measure.ID}, SensAppCPContract.Measure.UPLOADED + " = 0", null, null);
if (cursor != null) {
rowTotal = cursor.getCount();
cursor.close();
}... |
diff --git a/src/main/java/com/widen/examples/ValetExample.java b/src/main/java/com/widen/examples/ValetExample.java
index 569af38..dad6c9b 100644
--- a/src/main/java/com/widen/examples/ValetExample.java
+++ b/src/main/java/com/widen/examples/ValetExample.java
@@ -1,93 +1,93 @@
package com.widen.examples;
import ja... | false | true | private void run()
{
String domain = "foodomain.com.";
String resource = "www";
String resourceValue = "127.0.0.2";
//Route53Driver is the API abstraction for accessing Route53
Route53Driver driver = new Route53Driver(AWS_ACCESS_KEY, AWS_SECRET_KEY);
Zone zone = driver.zoneDetailsForDomain(domain);
... | private void run()
{
String domain = "foodomain.com.";
String resource = "www";
String resourceValue = "127.0.0.2";
//Route53Driver is the API abstraction for accessing Route53
Route53Driver driver = new Route53Driver(AWS_ACCESS_KEY, AWS_SECRET_KEY);
Zone zone = driver.zoneDetailsForDomain(domain);
... |
diff --git a/src/main/java/org/powertac/factoredcustomer/DefaultUtilityOptimizer.java b/src/main/java/org/powertac/factoredcustomer/DefaultUtilityOptimizer.java
index 149e8e4..f0fabc0 100644
--- a/src/main/java/org/powertac/factoredcustomer/DefaultUtilityOptimizer.java
+++ b/src/main/java/org/powertac/factoredcustomer/... | false | true | private List<Integer> determineLogitChoiceAllocations(CapacityBundle bundle, List<Tariff> evalTariffs,
List<Double> estimatedPayments)
{
// logit choice model: p_i = e^(lambda * utility_i) / sum_i(e^(lambda * utility_i))
int n... | private List<Integer> determineLogitChoiceAllocations(CapacityBundle bundle, List<Tariff> evalTariffs,
List<Double> estimatedPayments)
{
// logit choice model: p_i = e^(lambda * utility_i) / sum_i(e^(lambda * utility_i))
int n... |
diff --git a/src/main/java/org/fusesource/camel/component/salesforce/internal/BulkApiProcessor.java b/src/main/java/org/fusesource/camel/component/salesforce/internal/BulkApiProcessor.java
index 1b3bc4b..144fd31 100644
--- a/src/main/java/org/fusesource/camel/component/salesforce/internal/BulkApiProcessor.java
+++ b/sr... | true | true | public boolean process(final Exchange exchange, final AsyncCallback callback) {
executor.execute(new Runnable() {
@Override
public void run() {
try {
switch (apiName) {
case CREATE_JOB:
Operatio... | public boolean process(final Exchange exchange, final AsyncCallback callback) {
executor.execute(new Runnable() {
@Override
public void run() {
try {
switch (apiName) {
case CREATE_JOB:
Operatio... |
diff --git a/xjc/src/com/sun/tools/xjc/generator/bean/BeanGenerator.java b/xjc/src/com/sun/tools/xjc/generator/bean/BeanGenerator.java
index 6a13920a..40197142 100644
--- a/xjc/src/com/sun/tools/xjc/generator/bean/BeanGenerator.java
+++ b/xjc/src/com/sun/tools/xjc/generator/bean/BeanGenerator.java
@@ -1,748 +1,748 @@
... | true | true | private EnumOutline generateEnum(CEnumLeafInfo e) {
JDefinedClass type;
// since constant values are never null, no point in using the boxed types.
JType baseExposedType = e.base.toType(this,Aspect.EXPOSED).unboxify();
JType baseImplType = e.base.toType(this,Aspect.IMPLEMENTATION).u... | private EnumOutline generateEnum(CEnumLeafInfo e) {
JDefinedClass type;
// since constant values are never null, no point in using the boxed types.
JType baseExposedType = e.base.toType(this,Aspect.EXPOSED).unboxify();
JType baseImplType = e.base.toType(this,Aspect.IMPLEMENTATION).u... |
diff --git a/src/minecraft/ljdp/minechem/common/recipe/MinechemRecipes.java b/src/minecraft/ljdp/minechem/common/recipe/MinechemRecipes.java
index 7e9b23d..db88d01 100644
--- a/src/minecraft/ljdp/minechem/common/recipe/MinechemRecipes.java
+++ b/src/minecraft/ljdp/minechem/common/recipe/MinechemRecipes.java
@@ -1,777 +... | true | true | public void RegisterRecipes() {
ItemStack var1 = new ItemStack(Block.stone);
new ItemStack(Block.cobblestone);
ItemStack var3 = new ItemStack(Block.dirt);
ItemStack var4 = new ItemStack(Block.sand);
ItemStack var5 = new ItemStack(Block.gravel);
ItemStack var6 = new It... | public void RegisterRecipes() {
ItemStack var1 = new ItemStack(Block.stone);
new ItemStack(Block.cobblestone);
ItemStack var3 = new ItemStack(Block.dirt);
ItemStack var4 = new ItemStack(Block.sand);
ItemStack var5 = new ItemStack(Block.gravel);
ItemStack var6 = new It... |
diff --git a/src/test/java/com/ning/http/client/async/RemoteSiteTest.java b/src/test/java/com/ning/http/client/async/RemoteSiteTest.java
index 148f839cb..ebf49b6ee 100644
--- a/src/test/java/com/ning/http/client/async/RemoteSiteTest.java
+++ b/src/test/java/com/ning/http/client/async/RemoteSiteTest.java
@@ -1,261 +1,26... | true | true | public void testAHC62Com() throws Throwable {
AsyncHttpClient c = getAsyncHttpClient(new AsyncHttpClientConfig.Builder().setFollowRedirects(true).build());
// Works
Response response = c.prepareGet("http://api.crunchbase.com/v/1/financial-organization/kinsey-hills-group.js").execute(new Asyn... | public void testAHC62Com() throws Throwable {
AsyncHttpClient c = getAsyncHttpClient(new AsyncHttpClientConfig.Builder().setFollowRedirects(true).build());
// Works
Response response = c.prepareGet("http://api.crunchbase.com/v/1/financial-organization/kinsey-hills-group.js").execute(new Asyn... |
diff --git a/org.iucn.sis.client/src/org/iucn/sis/client/panels/dem/DEMToolbar.java b/org.iucn.sis.client/src/org/iucn/sis/client/panels/dem/DEMToolbar.java
index 981d429a..a6b7c1f8 100644
--- a/org.iucn.sis.client/src/org/iucn/sis/client/panels/dem/DEMToolbar.java
+++ b/org.iucn.sis.client/src/org/iucn/sis/client/pane... | true | true | public void build() {
editViewButton = new Button();
editViewButton.setText("Read Only Mode");
editViewButton.setIconStyle("icon-read-only");
editViewButton.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
Assessment cur = AssessmentCache.impl.g... | public void build() {
editViewButton = new Button();
editViewButton.setText("Read Only Mode");
editViewButton.setIconStyle("icon-read-only");
editViewButton.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
Assessment cur = AssessmentCache.impl.g... |
diff --git a/oxalis/oxalis-start-outbound/src/test/java/eu/peppol/outbound/smp/SmpTest.java b/oxalis/oxalis-start-outbound/src/test/java/eu/peppol/outbound/smp/SmpTest.java
index 928214e1..f906d78b 100644
--- a/oxalis/oxalis-start-outbound/src/test/java/eu/peppol/outbound/smp/SmpTest.java
+++ b/oxalis/oxalis-start-outb... | true | true | public void test01() throws Throwable {
try {
URL endpointAddress;
endpointAddress = new SmpLookupManager().getEndpointAddress(alfa1lab, invoice);
assertEquals(endpointAddress.toExternalForm(), "https://start-ap.alfa1lab.com:443/accesspointService");
endpoin... | public void test01() throws Throwable {
try {
URL endpointAddress;
endpointAddress = new SmpLookupManager().getEndpointAddress(alfa1lab, invoice);
assertEquals(endpointAddress.toExternalForm(), "https://start-ap.alfa1lab.com:443/accesspointService");
endpoin... |
diff --git a/src/nu/staldal/lsp/struts/LSPRequestProcessor.java b/src/nu/staldal/lsp/struts/LSPRequestProcessor.java
index a7c3763..f59e274 100644
--- a/src/nu/staldal/lsp/struts/LSPRequestProcessor.java
+++ b/src/nu/staldal/lsp/struts/LSPRequestProcessor.java
@@ -1,90 +1,88 @@
package nu.staldal.lsp.struts;
import... | true | true | protected void processForwardConfig(HttpServletRequest request,
HttpServletResponse response,
ForwardConfig forward)
throws java.io.IOException, ServletException
{
if (forward == null)
{
return;
... | protected void processForwardConfig(HttpServletRequest request,
HttpServletResponse response,
ForwardConfig forward)
throws java.io.IOException, ServletException
{
if (forward == null)
{
return;
... |
diff --git a/src/org/apache/xerces/impl/XMLEntityManager.java b/src/org/apache/xerces/impl/XMLEntityManager.java
index aabd4666..5430e461 100644
--- a/src/org/apache/xerces/impl/XMLEntityManager.java
+++ b/src/org/apache/xerces/impl/XMLEntityManager.java
@@ -1,3564 +1,3564 @@
/*
* The Apache Software License, Versio... | true | true | public boolean scanData(String delimiter, XMLStringBuffer buffer)
throws IOException {
boolean done = false;
int delimLen = delimiter.length();
char charAt0 = delimiter.charAt(0);
int offset = fCurrentEntity.position;
int c = fCurrentEntity... | public boolean scanData(String delimiter, XMLStringBuffer buffer)
throws IOException {
boolean done = false;
int delimLen = delimiter.length();
char charAt0 = delimiter.charAt(0);
int offset = 0;
int c = -1;
int newlines = 0;
... |
diff --git a/works.editor.antlr4/src/org/antlr/works/editor/antlr4/navigation/ParseTreeNode.java b/works.editor.antlr4/src/org/antlr/works/editor/antlr4/navigation/ParseTreeNode.java
index 521f99c..b6f88ab 100644
--- a/works.editor.antlr4/src/org/antlr/works/editor/antlr4/navigation/ParseTreeNode.java
+++ b/works.edito... | true | true | public ParseTreeNode(@NonNull ParseTree tree, @NullAllowed List<String> ruleNames) {
super(Children.LEAF);
_tree = tree;
_ruleNames = ruleNames;
if (tree.getChildCount() > 0) {
setChildren(Children.createLazy(new ChildrenOfParseTreeNodeCreator()));
}
if ... | public ParseTreeNode(@NonNull ParseTree tree, @NullAllowed List<String> ruleNames) {
super(Children.LEAF);
_tree = tree;
_ruleNames = ruleNames;
if (tree.getChildCount() > 0) {
setChildren(Children.createLazy(new ChildrenOfParseTreeNodeCreator()));
}
if ... |
diff --git a/api/src/test/java/org/openmrs/OpenmrsTestsTest.java b/api/src/test/java/org/openmrs/OpenmrsTestsTest.java
index e6b272e9..3960806a 100644
--- a/api/src/test/java/org/openmrs/OpenmrsTestsTest.java
+++ b/api/src/test/java/org/openmrs/OpenmrsTestsTest.java
@@ -1,219 +1,219 @@
/**
* The contents of this fil... | true | true | private List<Class> getClassesInDirectory(File directory, Pattern pattern) {
List<Class> currentDirTestClasses = new ArrayList<Class>();
for (File currentFile : directory.listFiles()) {
// if looking at a folder, recurse into it
if (currentFile.isDirectory()) {
currentDirTestClasses.addAll(getC... | private List<Class> getClassesInDirectory(File directory, Pattern pattern) {
List<Class> currentDirTestClasses = new ArrayList<Class>();
for (File currentFile : directory.listFiles()) {
// if looking at a folder, recurse into it
if (currentFile.isDirectory()) {
currentDirTestClasses.addAll(getC... |
diff --git a/CubicTestPlugin/src/main/java/org/cubictest/ui/gef/wizards/UserInteractionsComponent.java b/CubicTestPlugin/src/main/java/org/cubictest/ui/gef/wizards/UserInteractionsComponent.java
index 4f8f7b61..b13aebcc 100644
--- a/CubicTestPlugin/src/main/java/org/cubictest/ui/gef/wizards/UserInteractionsComponent.ja... | true | true | public void modify(Object element, String property, Object value) {
int columnIndex = java.util.Arrays.asList(columnNames).indexOf(property);
if (element instanceof TableItem) {
UserInteraction rowItem = (UserInteraction) ((TableItem) element).getData();
switch (columnIndex) {
case 0:
St... | public void modify(Object element, String property, Object value) {
int columnIndex = java.util.Arrays.asList(columnNames).indexOf(property);
if (element instanceof TableItem) {
UserInteraction rowItem = (UserInteraction) ((TableItem) element).getData();
switch (columnIndex) {
case 0:
St... |
diff --git a/src/test/java/org/elasticsearch/river/rabbitmq/RabbitMQTestRunner.java b/src/test/java/org/elasticsearch/river/rabbitmq/RabbitMQTestRunner.java
index 2e8bcd2..9e71271 100644
--- a/src/test/java/org/elasticsearch/river/rabbitmq/RabbitMQTestRunner.java
+++ b/src/test/java/org/elasticsearch/river/rabbitmq/Rab... | true | true | public void test_all_messages_are_consumed() throws Exception {
// We try to connect to RabbitMQ.
// If it's not launched, we don't fail the test but only log it
try {
ConnectionFactory cfconn = new ConnectionFactory();
cfconn.setHost("localhost");
cfconn... | public void test_all_messages_are_consumed() throws Exception {
// We try to connect to RabbitMQ.
// If it's not launched, we don't fail the test but only log it
try {
ConnectionFactory cfconn = new ConnectionFactory();
cfconn.setHost("localhost");
cfconn... |
diff --git a/src/tsa/actors/BagScan.java b/src/tsa/actors/BagScan.java
index 7cb3633..983358e 100644
--- a/src/tsa/actors/BagScan.java
+++ b/src/tsa/actors/BagScan.java
@@ -1,84 +1,85 @@
// BagScan
package tsa.actors;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Random;
import tsa.mes... | true | true | public void onReceive(Object message) {
if (message instanceof ScanBag) {
// Baggage randomly fails inspection with a probability of 20%.
ActorRef passenger = ((ScanBag) message).passenger;
passengerBags.add(passenger);
// Bag processing takes a random amount of time, between 200 and 300 millis.
R... | public void onReceive(Object message) {
if (message instanceof ScanBag) {
// Baggage randomly fails inspection with a probability of 20%.
ActorRef passenger = ((ScanBag) message).passenger;
passengerBags.add(passenger);
// Bag processing takes a random amount of time, between 200 and 300 millis.
R... |
diff --git a/javamelody-core/src/main/java/net/bull/javamelody/JobInformations.java b/javamelody-core/src/main/java/net/bull/javamelody/JobInformations.java
index cb75a18e..b6da3f2e 100644
--- a/javamelody-core/src/main/java/net/bull/javamelody/JobInformations.java
+++ b/javamelody-core/src/main/java/net/bull/javamelod... | true | true | JobInformations(JobDetail jobDetail, JobExecutionContext jobExecutionContext,
Scheduler scheduler) throws SchedulerException {
// pas throws SchedulerException ici sinon NoClassDefFoundError
super();
assert jobDetail != null;
assert scheduler != null;
// rq: jobExecutionContext est non null si le job est ... | JobInformations(JobDetail jobDetail, JobExecutionContext jobExecutionContext,
Scheduler scheduler) throws SchedulerException {
// pas throws SchedulerException ici sinon NoClassDefFoundError
super();
assert jobDetail != null;
assert scheduler != null;
// rq: jobExecutionContext est non null si le job est ... |
diff --git a/core-integ/src/test/java/org/apache/directory/server/core/operations/lookup/LookupIT.java b/core-integ/src/test/java/org/apache/directory/server/core/operations/lookup/LookupIT.java
index d627ea4696..ce09c76fc7 100644
--- a/core-integ/src/test/java/org/apache/directory/server/core/operations/lookup/LookupI... | true | true | public void testLookupPlus() throws Exception
{
service.setDenormalizeOpAttrsEnabled( true );
LdapDN dn = new LdapDN( "cn=test,ou=system" );
Entry entry = service.getAdminSession().lookup( dn, new String[]{ "+" } );
assertNotNull( entry );
// We should h... | public void testLookupPlus() throws Exception
{
service.setDenormalizeOpAttrsEnabled( true );
LdapDN dn = new LdapDN( "cn=test,ou=system" );
Entry entry = service.getAdminSession().lookup( dn, new String[]{ "+" } );
assertNotNull( entry );
// We should h... |
diff --git a/src/com/nullprogram/chess/Chess.java b/src/com/nullprogram/chess/Chess.java
index 986edc4..21ff5cd 100644
--- a/src/com/nullprogram/chess/Chess.java
+++ b/src/com/nullprogram/chess/Chess.java
@@ -1,60 +1,61 @@
package com.nullprogram.chess;
import com.nullprogram.chess.gui.ChessFrame;
import java.io.B... | true | true | public static String getTitle() {
String version = "";
try {
InputStream s = Chess.class.getResourceAsStream("/version.txt");
BufferedReader in = new BufferedReader(new InputStreamReader(s));
version = in.readLine();
} catch (java.io.IOException e) {
... | public static String getTitle() {
String version = "";
try {
InputStream s = Chess.class.getResourceAsStream("/version.txt");
BufferedReader in = new BufferedReader(new InputStreamReader(s));
version = in.readLine();
in.close();
} catch (java.i... |
diff --git a/nuget-tests/src/jetbrains/buildServer/nuget/tests/integration/PackagesPublishIntegrationTest.java b/nuget-tests/src/jetbrains/buildServer/nuget/tests/integration/PackagesPublishIntegrationTest.java
index 9809b0ff..14f3ca7b 100644
--- a/nuget-tests/src/jetbrains/buildServer/nuget/tests/integration/PackagesP... | true | true | private File preparePackage(@NotNull final NuGet nuget) throws IOException {
@NotNull final File root = createTempDir();
final File spec = new File(root, "SamplePackage.nuspec");
FileUtil.copy(getTestDataPath("SamplePackage.nuspec"), spec);
GeneralCommandLine cmd = new GeneralCommandLine();
cmd.s... | private File preparePackage(@NotNull final NuGet nuget) throws IOException {
@NotNull final File root = createTempDir();
final File spec = new File(root, "SamplePackage.nuspec");
FileUtil.copy(getTestDataPath("SamplePackage.nuspec"), spec);
GeneralCommandLine cmd = new GeneralCommandLine();
cmd.s... |
diff --git a/test/test/ApplicationTest.java b/test/test/ApplicationTest.java
index 1e981d2..49dc2d5 100644
--- a/test/test/ApplicationTest.java
+++ b/test/test/ApplicationTest.java
@@ -1,36 +1,36 @@
package test;
import models.ContactDB;
import org.junit.Test;
import static org.fest.assertions.Assertions.assertTh... | true | true | public void renderTemplate() {
Content html = views.html.Index.render("test", null, null, ContactDB.getContacts());
assertThat(contentType(html)).isEqualTo("text/html");
assertThat(contentAsString(html)).contains("home page");
}
| public void renderTemplate() {
Content html = views.html.Index.render("test", null, null, ContactDB.getContacts(null));
assertThat(contentType(html)).isEqualTo("text/html");
assertThat(contentAsString(html)).contains("home page");
}
|
diff --git a/src/minecraft/org/spoutcraft/client/chunkcache/HeightMap.java b/src/minecraft/org/spoutcraft/client/chunkcache/HeightMap.java
index 6fb1d987..7835dc53 100644
--- a/src/minecraft/org/spoutcraft/client/chunkcache/HeightMap.java
+++ b/src/minecraft/org/spoutcraft/client/chunkcache/HeightMap.java
@@ -1,349 +1,... | true | true | public void load() {
synchronized (cache) {
clear();
try {
DataInputStream in = new DataInputStream(new FileInputStream(file));
String name = PacketUtil.readString(in);
if(!name.equals(getWorldName())) {
System.out.println("World names do not match: "+name+" [file] != "+getWorldName()+" [game]... | public void load() {
synchronized (cache) {
clear();
try {
DataInputStream in = new DataInputStream(new FileInputStream(file));
String name = PacketUtil.readString(in);
if(!name.equals(getWorldName())) {
System.out.println("World names do not match: "+name+" [file] != "+getWorldName()+" [game]... |
diff --git a/CPP/src/ic/doc/cpp/server/handler/student/LoginActionHandler.java b/CPP/src/ic/doc/cpp/server/handler/student/LoginActionHandler.java
index 5fb0e69..25231f3 100644
--- a/CPP/src/ic/doc/cpp/server/handler/student/LoginActionHandler.java
+++ b/CPP/src/ic/doc/cpp/server/handler/student/LoginActionHandler.java... | true | true | public LoginResult execute(Login action, ExecutionContext context)
throws ActionException {
LoginResult result = null;
if (action.getType().equals("student")) {
StudentUserDao userDao = new StudentUserDao();
try {
StudentUser user = userDao.retrieveUser(action.getLogin());
if (user != null... | public LoginResult execute(Login action, ExecutionContext context)
throws ActionException {
LoginResult result = null;
if (action.getType().equals("student")) {
StudentUserDao userDao = new StudentUserDao();
try {
StudentUser user = userDao.retrieveUser(action.getLogin());
if (user != null... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorNotesPart.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorNotesPart.java
index 368a43542..7aee8b6e3 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/u... | true | true | public void createControl(Composite parent, FormToolkit toolkit) {
this.value = task.getNotes();
if (this.value == null) {
this.value = ""; //$NON-NLS-1$
}
Section section = createSection(parent, toolkit, this.value != null && this.value.length() > 0);
Composite composite = toolkit.createComposite(secti... | public void createControl(Composite parent, FormToolkit toolkit) {
this.value = task.getNotes();
if (this.value == null) {
this.value = ""; //$NON-NLS-1$
}
Section section = createSection(parent, toolkit, this.value != null && this.value.length() > 0);
Composite composite = toolkit.createComposite(secti... |
diff --git a/signserver/modules/SignServer-ejb/src/java/org/signserver/web/SignServerHealthCheck.java b/signserver/modules/SignServer-ejb/src/java/org/signserver/web/SignServerHealthCheck.java
index da8a24e14..e1b75fc90 100644
--- a/signserver/modules/SignServer-ejb/src/java/org/signserver/web/SignServerHealthCheck.jav... | true | true | private void checkMaintenance(final StringBuilder sb) {
if (StringUtils.isEmpty(maintenanceFile)) {
if (LOG.isDebugEnabled()) {
LOG.debug("Maintenance file not specified, node will be monitored");
}
return;
}
File maintFile = new File(maintenanceFile);
InputStream... | private void checkMaintenance(final StringBuilder sb) {
if (StringUtils.isEmpty(maintenanceFile)) {
if (LOG.isDebugEnabled()) {
LOG.debug("Maintenance file not specified, node will be monitored");
}
return;
}
File maintFile = new File(maintenanceFile);
InputStream... |
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepositoryManager.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepositoryManager.java
index e5175e047..dc6f99466 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/TaskRepositoryManager.jav... | true | true | public boolean saveRepositories(String destinationPath) {
if (!Platform.isRunning()) {// || TasksUiPlugin.getDefault() == null) {
return false;
}
Set<TaskRepository> repositoriesToWrite = new HashSet<TaskRepository>(getAllRepositories());
// if for some reason a repository is added/changed to equal one in t... | public synchronized boolean saveRepositories(String destinationPath) {
if (!Platform.isRunning()) {// || TasksUiPlugin.getDefault() == null) {
return false;
}
Set<TaskRepository> repositoriesToWrite = new HashSet<TaskRepository>(getAllRepositories());
// if for some reason a repository is added/changed to e... |
diff --git a/omod/src/main/java/org/openmrs/module/iqchartimport/web/controller/PatientController.java b/omod/src/main/java/org/openmrs/module/iqchartimport/web/controller/PatientController.java
index 40f756a..d17404d 100644
--- a/omod/src/main/java/org/openmrs/module/iqchartimport/web/controller/PatientController.java... | true | true | public String showPage(HttpServletRequest request, @RequestParam("tracnetID") Integer tracnetID, ModelMap model) throws IOException {
Utils.checkSuperUser();
IQChartDatabase database = IQChartDatabase.load(request.getSession(), Constants.SESSION_ATTR_DATABASE);
if (database == null)
return "redirect:upload... | public String showPage(HttpServletRequest request, @RequestParam("tracnetID") Integer tracnetID, ModelMap model) throws IOException {
Utils.checkSuperUser();
IQChartDatabase database = IQChartDatabase.load(request.getSession(), Constants.SESSION_ATTR_DATABASE);
if (database == null)
return "redirect:upload... |
diff --git a/src/main/java/edu/msergey/jalg/exercises/ch3/ex40/DoubleLinkedList.java b/src/main/java/edu/msergey/jalg/exercises/ch3/ex40/DoubleLinkedList.java
index ce6204a..6b1975c 100644
--- a/src/main/java/edu/msergey/jalg/exercises/ch3/ex40/DoubleLinkedList.java
+++ b/src/main/java/edu/msergey/jalg/exercises/ch3/ex... | true | true | public void remove(IRemoveChecker removeChecker) {
if (head != tail) {
for (Node<E> current = head.next; current != tail; current = current.next) {
if (removeChecker.needToRemove(current)) {
current.prev.next = current.next;
current.next.pr... | public void remove(IRemoveChecker<E> removeChecker) {
if (head != tail) {
for (Node<E> current = head.next; current != tail; current = current.next) {
if (removeChecker.needToRemove(current)) {
current.prev.next = current.next;
current.next... |
diff --git a/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorAction.java b/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorAction.java
index 70fc96ea..061729df 100644
--- a/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorAction.java
+++ b/CubicRecorder/src/main/java... | true | true | public void run(IAction action) {
AutoLayout autoLayout = new AutoLayout(testEditor);
Test test = testEditor.getTest();
if (!ExportUtils.testIsOkForRecord(test)) {
return;
}
test.resetStatus();
if(!running) {
setRunning(true);
if (test.getStartPoint().getOutTransitions().size() >= 1 && ... | public void run(IAction action) {
AutoLayout autoLayout = new AutoLayout(testEditor);
Test test = testEditor.getTest();
if (!ExportUtils.testIsOkForRecord(test)) {
return;
}
test.resetStatus();
if(!running) {
setRunning(true);
if (test.getStartPoint().getOutTransitions().size() >= 1 && ... |
diff --git a/core/src/visad/trunk/util/SelectRangeWidget.java b/core/src/visad/trunk/util/SelectRangeWidget.java
index 66759d413..2f3d3b89c 100644
--- a/core/src/visad/trunk/util/SelectRangeWidget.java
+++ b/core/src/visad/trunk/util/SelectRangeWidget.java
@@ -1,337 +1,342 @@
/*
VisAD Utility Library: Widgets for u... | false | true | private void drawLabels(Graphics g) {
int w = getSize().width;
FontMetrics fm = g.getFontMetrics();
if (lastMin != minVal || lastW != w) {
// minimum bound text string
g.setColor(Color.black);
int sw = fm.stringWidth(""+lastMin);
g.fillRect(1, 27, sw, 15);
lastMin = minVal;
... | private void drawLabels(Graphics g) {
int w = getSize().width;
FontMetrics fm = g.getFontMetrics();
if (lastMin != minVal || lastW != w) {
// minimum bound text string
g.setColor(Color.black);
int sw = fm.stringWidth(""+lastMin);
g.fillRect(1, 27, sw, 15);
lastMin = minVal;
... |
diff --git a/hidapi/src/com/codeminders/hidapi/HIDAPITest.java b/hidapi/src/com/codeminders/hidapi/HIDAPITest.java
index b9c21a8..20a1853 100644
--- a/hidapi/src/com/codeminders/hidapi/HIDAPITest.java
+++ b/hidapi/src/com/codeminders/hidapi/HIDAPITest.java
@@ -1,93 +1,94 @@
package com.codeminders.hidapi;
import ja... | true | true | private static void readDevice()
{
HIDDevice dev;
try
{
dev = HIDManager.openById(VENDOR_ID, PRODUCT_ID, null);
try
{
byte[] buf = new byte[BUFSIZE];
dev.enableBlocking();
while(true)
{
... | private static void readDevice()
{
HIDDevice dev;
try
{
dev = HIDManager.openById(VENDOR_ID, PRODUCT_ID, null);
//dev.close();
try
{
byte[] buf = new byte[BUFSIZE];
dev.enableBlocking();
while... |
diff --git a/src/me/libraryaddict/disguise/disguisetypes/watchers/HorseWatcher.java b/src/me/libraryaddict/disguise/disguisetypes/watchers/HorseWatcher.java
index 49e57cc..e4a5fb9 100644
--- a/src/me/libraryaddict/disguise/disguisetypes/watchers/HorseWatcher.java
+++ b/src/me/libraryaddict/disguise/disguisetypes/watche... | true | true | private void setFlag(int i, boolean flag) {
int j = (Integer) getValue(16, (byte) 0);
if (flag) {
setValue(16, j | i);
} else {
setValue(16, j & ~i);
}
sendData(16);
}
| private void setFlag(int i, boolean flag) {
int j = (Byte) getValue(16, (byte) 0);
if (flag) {
setValue(16, j | i);
} else {
setValue(16, j & ~i);
}
sendData(16);
}
|
diff --git a/jython/org/python/core/Options.java b/jython/org/python/core/Options.java
index b6f0b1d3..02bfef63 100644
--- a/jython/org/python/core/Options.java
+++ b/jython/org/python/core/Options.java
@@ -1,162 +1,162 @@
// Copyright (c) Corporation for National Research Initiatives
package org.python.core;
/**
... | true | true | */
public static void setFromRegistry() {
// Set the more unusual options
Options.showJavaExceptions =
getBooleanOption("options.showJavaExceptions",
Options.showJavaExceptions);
Options.showPythonProxyExceptions =
getBooleanOption("... | */
public static void setFromRegistry() {
// Set the more unusual options
Options.showJavaExceptions =
getBooleanOption("options.showJavaExceptions",
Options.showJavaExceptions);
Options.showPythonProxyExceptions =
getBooleanOption("... |
diff --git a/farrago/src/net/sf/farrago/namespace/jdbc/ResultSetToFarragoIteratorConverter.java b/farrago/src/net/sf/farrago/namespace/jdbc/ResultSetToFarragoIteratorConverter.java
index cb4a15fd1..2a5d597d7 100644
--- a/farrago/src/net/sf/farrago/namespace/jdbc/ResultSetToFarragoIteratorConverter.java
+++ b/farrago/sr... | false | true | public ParseTree implement(JavaRelImplementor implementor)
{
FarragoRelImplementor farragoImplementor =
(FarragoRelImplementor) implementor;
Expression childObj =
implementor.visitJavaChild(this, 0, (ResultSetRel) getChild());
StatementList methodBody = new Stat... | public ParseTree implement(JavaRelImplementor implementor)
{
FarragoRelImplementor farragoImplementor =
(FarragoRelImplementor) implementor;
Expression childObj =
implementor.visitJavaChild(this, 0, (ResultSetRel) getChild());
StatementList methodBody = new Stat... |
diff --git a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/servlets/GitRemoteHandlerV1.java b/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/servlets/GitRemoteHandlerV1.java
index a1e73902..2e398cf6 100644
--- a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/se... | false | true | private boolean handleGet(HttpServletRequest request, HttpServletResponse response, String path) throws IOException, JSONException, ServletException, URISyntaxException, CoreException {
Path p = new Path(path);
// FIXME: what if a remote or branch is named "file"?
if (p.segment(0).equals("file")) { //$NON-NLS-1$... | private boolean handleGet(HttpServletRequest request, HttpServletResponse response, String path) throws IOException, JSONException, ServletException, URISyntaxException, CoreException {
Path p = new Path(path);
// FIXME: what if a remote or branch is named "file"?
if (p.segment(0).equals("file")) { //$NON-NLS-1$... |
diff --git a/src/main/java/org/apache/log4j/chainsaw/TableColorizingRenderer.java b/src/main/java/org/apache/log4j/chainsaw/TableColorizingRenderer.java
index 1cef2ed..eb6d656 100644
--- a/src/main/java/org/apache/log4j/chainsaw/TableColorizingRenderer.java
+++ b/src/main/java/org/apache/log4j/chainsaw/TableColorizingR... | true | true | public Component getTableCellRendererComponent(
final JTable table, Object value, boolean isSelected, boolean hasFocus,
int row, int col) {
value = formatField(value);
JLabel label = (JLabel)super.getTableCellRendererComponent(table, value,
isSelected, hasFocus, row, col);
TableColumn tab... | public Component getTableCellRendererComponent(
final JTable table, Object value, boolean isSelected, boolean hasFocus,
int row, int col) {
value = formatField(value);
JLabel label = (JLabel)super.getTableCellRendererComponent(table, value,
isSelected, hasFocus, row, col);
TableColumn tab... |
diff --git a/src/com/android/camera/IconListPreference.java b/src/com/android/camera/IconListPreference.java
index fc23f6c3..de9cba1e 100644
--- a/src/com/android/camera/IconListPreference.java
+++ b/src/com/android/camera/IconListPreference.java
@@ -1,91 +1,94 @@
/*
* Copyright (C) 2009 The Android Open Source Proj... | false | true | public void filterUnsupported(List<String> supported) {
CharSequence entryValues[] = getEntryValues();
IntArray iconIds = new IntArray();
IntArray largeIconIds = new IntArray();
for (int i = 0, len = entryValues.length; i < len; i++) {
if (supported.indexOf(entryValues[i... | public void filterUnsupported(List<String> supported) {
CharSequence entryValues[] = getEntryValues();
IntArray iconIds = new IntArray();
IntArray largeIconIds = new IntArray();
// We allow mIconsIds to be null, but not mLargeIconIds. The reason is that if large icons
// are... |
diff --git a/src/com/madhackerdesigns/neverbelate/ui/WarningDialog.java b/src/com/madhackerdesigns/neverbelate/ui/WarningDialog.java
index 0b53645..dc6d0d6 100644
--- a/src/com/madhackerdesigns/neverbelate/ui/WarningDialog.java
+++ b/src/com/madhackerdesigns/neverbelate/ui/WarningDialog.java
@@ -1,733 +1,733 @@
/**
... | false | true | protected void onQueryComplete(int token, Object context, Cursor cursor) {
// Let the activity manage the cursor life-cycle
startManagingCursor(cursor);
mEventCursor = cursor;
Logger.d(LOG_TAG, "Query returned...");
// Now fill in the content of the WarningDialog
switch (token) {
case ALERT_T... | protected void onQueryComplete(int token, Object context, Cursor cursor) {
// Let the activity manage the cursor life-cycle
startManagingCursor(cursor);
mEventCursor = cursor;
Logger.d(LOG_TAG, "Query returned...");
// Now fill in the content of the WarningDialog
switch (token) {
case ALERT_T... |
diff --git a/src/com/fsck/k9/activity/setup/AccountSettings.java b/src/com/fsck/k9/activity/setup/AccountSettings.java
index 7ea0df06..44e36cf4 100644
--- a/src/com/fsck/k9/activity/setup/AccountSettings.java
+++ b/src/com/fsck/k9/activity/setup/AccountSettings.java
@@ -1,954 +1,954 @@
package com.fsck.k9.activity.s... | true | true | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
mAccount = Preferences.getPreferences(this).getAccount(accountUuid);
try
{
final Store store = mAccount.getR... | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
mAccount = Preferences.getPreferences(this).getAccount(accountUuid);
try
{
final Store store = mAccount.getR... |
diff --git a/src/uk/me/parabola/imgfmt/app/net/RouteArc.java b/src/uk/me/parabola/imgfmt/app/net/RouteArc.java
index 271b9462..dca1f850 100644
--- a/src/uk/me/parabola/imgfmt/app/net/RouteArc.java
+++ b/src/uk/me/parabola/imgfmt/app/net/RouteArc.java
@@ -1,368 +1,364 @@
/*
* Copyright (C) 2008
*
* This program... | false | true | private int[] encodeLength() {
// update haveCurve
haveCurve = (curveEnabled && finalHeading != initialHeading);
if (length >= (1 << 14)) {
log.error("warning: Way " + roadDef.getName() + " (id " + roadDef.getId() + ") contains an arc whose length (" + length + " units) is too big to be encoded so the way w... | private int[] encodeLength() {
// update haveCurve
haveCurve = (curveEnabled && finalHeading != initialHeading);
if (length >= (1 << 22)) {
log.error("Way " + roadDef.getName() + " (id " + roadDef.getId() + ") contains an arc whose length (" + length + " units) is too big to be encoded so the way might not ... |
diff --git a/engine/src/bullet/com/jme3/bullet/control/KinematicRagdollControl.java b/engine/src/bullet/com/jme3/bullet/control/KinematicRagdollControl.java
index 08809f3a2..a7dd9dd19 100644
--- a/engine/src/bullet/com/jme3/bullet/control/KinematicRagdollControl.java
+++ b/engine/src/bullet/com/jme3/bullet/control/Kine... | false | true | public void update(float tpf) {
if (!enabled) {
return;
}
TempVars vars = TempVars.get();
assert vars.lock();
Quaternion tmpRot1 = vars.quat1;
Quaternion tmpRot2 = vars.quat2;
//if the ragdoll has the control of the skeleton, we update each bone w... | public void update(float tpf) {
if (!enabled) {
return;
}
TempVars vars = TempVars.get();
assert vars.lock();
Quaternion tmpRot1 = vars.quat1;
Quaternion tmpRot2 = vars.quat2;
//if the ragdoll has the control of the skeleton, we update each bone w... |
diff --git a/src/net/milkbowl/vault/economy/plugins/Economy_iConomy6.java b/src/net/milkbowl/vault/economy/plugins/Economy_iConomy6.java
index c6e8757..f17db6e 100644
--- a/src/net/milkbowl/vault/economy/plugins/Economy_iConomy6.java
+++ b/src/net/milkbowl/vault/economy/plugins/Economy_iConomy6.java
@@ -1,236 +1,239 @@... | true | true | public Economy_iConomy6(JavaPlugin plugin) {
this.plugin = plugin;
Bukkit.getServer().getPluginManager().registerEvents(new EconomyServerListener(this), plugin);
// Load Plugin in case it was loaded before
if (economy == null) {
Plugin ec = plugin.getServer().getPluginMan... | public Economy_iConomy6(JavaPlugin plugin) {
this.plugin = plugin;
Bukkit.getServer().getPluginManager().registerEvents(new EconomyServerListener(this), plugin);
log.severe("iConomy6 - If you are using Flatfile storage be aware that iCo6 has a CRITICAL bug which can wipe ALL iconomy data.");... |
diff --git a/src/net/reichholf/dreamdroid/activities/ServiceListActivity.java b/src/net/reichholf/dreamdroid/activities/ServiceListActivity.java
index f19b0b11..3b3d5224 100644
--- a/src/net/reichholf/dreamdroid/activities/ServiceListActivity.java
+++ b/src/net/reichholf/dreamdroid/activities/ServiceListActivity.java
@... | true | true | private void onListItemClick(View v, int position, long id, boolean isLong) {
mCurrentItem = mMapList.get(position);
final String ref = mCurrentItem.getString(Event.SERVICE_REFERENCE);
final String nam = mCurrentItem.getString(Event.SERVICE_NAME);
if (isBouquetReference(ref)) {
if (!isListTaskRunning()) {
... | private void onListItemClick(View v, int position, long id, boolean isLong) {
mCurrentItem = mMapList.get(position);
final String ref = mCurrentItem.getString(Event.SERVICE_REFERENCE);
final String nam = mCurrentItem.getString(Event.SERVICE_NAME);
if (isBouquetReference(ref)) {
if (!isListTaskRunning()) {
... |
diff --git a/xjc/src/com/sun/tools/jxc/apt/SchemaGenerator.java b/xjc/src/com/sun/tools/jxc/apt/SchemaGenerator.java
index 90031ed5..d8ab202b 100644
--- a/xjc/src/com/sun/tools/jxc/apt/SchemaGenerator.java
+++ b/xjc/src/com/sun/tools/jxc/apt/SchemaGenerator.java
@@ -1,98 +1,100 @@
package com.sun.tools.jxc.apt;
imp... | true | true | public AnnotationProcessor getProcessorFor(Set<AnnotationTypeDeclaration> atds, final AnnotationProcessorEnvironment env) {
return new AnnotationProcessor() {
final ErrorReceiverImpl errorListener = new ErrorReceiverImpl(env);
public void process() {
List<Reference> ... | public AnnotationProcessor getProcessorFor(Set<AnnotationTypeDeclaration> atds, final AnnotationProcessorEnvironment env) {
return new AnnotationProcessor() {
final ErrorReceiverImpl errorListener = new ErrorReceiverImpl(env);
public void process() {
List<Reference> ... |
diff --git a/spring-context-support/src/test/java/org/springframework/cache/ehcache/EhCacheSupportTests.java b/spring-context-support/src/test/java/org/springframework/cache/ehcache/EhCacheSupportTests.java
index fcfe22164..6e8efcd81 100644
--- a/spring-context-support/src/test/java/org/springframework/cache/ehcache/Eh... | false | true | private void doTestEhCacheFactoryBean(boolean useCacheManagerFb) throws Exception {
Cache cache = null;
EhCacheManagerFactoryBean cacheManagerFb = null;
try {
EhCacheFactoryBean cacheFb = new EhCacheFactoryBean();
Class<? extends Ehcache> objectType = cacheFb.getObjectType();
assertTrue(Ehcache.class.is... | private void doTestEhCacheFactoryBean(boolean useCacheManagerFb) throws Exception {
Cache cache = null;
EhCacheManagerFactoryBean cacheManagerFb = null;
try {
EhCacheFactoryBean cacheFb = new EhCacheFactoryBean();
Class<? extends Ehcache> objectType = cacheFb.getObjectType();
assertTrue(Ehcache.class.is... |
diff --git a/src/states/ForestState.java b/src/states/ForestState.java
index 4b76664..e8b7f0b 100644
--- a/src/states/ForestState.java
+++ b/src/states/ForestState.java
@@ -1,110 +1,110 @@
package states;
import java.util.ArrayList;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Music;
import... | true | true | public void init(GameContainer container, StateBasedGame game)
throws SlickException {
super.init(container, game);
loop = new Music("Assets/Sound/Loops/ForestState.wav");
bgImage = new TiledMap("Assets/World/woodsmap1.tmx");
areaLength = 200;
// SpiderWeb sw1 = new SpiderWeb(new float[] {container.getWid... | public void init(GameContainer container, StateBasedGame game)
throws SlickException {
super.init(container, game);
loop = new Music("Assets/Sound/Loops/ForestState.wav");
bgImage = new TiledMap("Assets/World/woodsmap1.tmx");
areaLength = 200;
// SpiderWeb sw1 = new SpiderWeb(new float[] {container.getWid... |
diff --git a/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingResult.java b/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingResult.java
index f2df5638d..ddcd91920 100644
--- a/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuildingResult.java
+++ b/maven-c... | true | true | public DefaultProjectBuildingResult( MavenProject project, List<ModelProblem> problems,
ArtifactResolutionResult dependencyResolutionResult )
{
this.projectId = ( project != null ) ? project.getId() : "";
this.pomFile = ( project != null ) ? project.getFi... | public DefaultProjectBuildingResult( MavenProject project, List<ModelProblem> problems,
ArtifactResolutionResult dependencyResolutionResult )
{
this.projectId =
( project != null ) ? project.getGroupId() + ':' + project.getArtifactId() + ':' + project... |
diff --git a/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/ui/widgets/LinkEObjectFlatComboViewer.java b/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/ui/widgets/LinkEObjectFlatComboViewer.java
index 8146636f9..6acdbea61 100644
--- a/plugins/org.eclipse.emf.eef.runtime/src/org... | true | true | protected void createLabels(Composite parent) {
String value = UNDEFINED_VALUE;
if (selection != null) {
value = labelProvider.getText(selection);
}
this.valueLink = createLink(parent, value, SWT.NONE);
FormData data = new FormData();
data.left = new FormAttachment(0, 0);
data.right = new FormAttachme... | protected void createLabels(Composite parent) {
String value = UNDEFINED_VALUE;
if (selection != null) {
value = labelProvider.getText(selection);
}
this.valueLink = createLink(parent, value, SWT.NONE);
FormData data = new FormData();
data.left = new FormAttachment(0, 0);
data.right = new FormAttachme... |
diff --git a/src/haven/Listbox.java b/src/haven/Listbox.java
index b6516fd6..0999ece7 100644
--- a/src/haven/Listbox.java
+++ b/src/haven/Listbox.java
@@ -1,94 +1,94 @@
/*
* This file is part of the Haven & Hearth game client.
* Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and
* ... | true | true | public void draw(GOut g) {
sb.max = listitems() - h;
g.chcolor(Color.BLACK);
g.frect(Coord.z, sz);
g.chcolor();
int n = listitems();
for(int i = 0; i < h; i++) {
int idx = i + sb.val;
if(idx >= n)
break;
T item = listitem(idx);
int w = sz.x - (sb.vis()?sb.sz.x:0);
GOut ig = g.reclip... | public void draw(GOut g) {
sb.max = listitems() - h;
g.chcolor(Color.BLACK);
g.frect(Coord.z, sz);
g.chcolor();
int n = listitems();
for(int i = 0; i < h; i++) {
int idx = i + sb.val;
if(idx >= n)
break;
T item = listitem(idx);
int w = sz.x - (sb.vis()?sb.sz.x:0);
GOut ig = g.reclip... |
diff --git a/rest/src/main/java/org/dbpedia/spotlight/web/rest/Server.java b/rest/src/main/java/org/dbpedia/spotlight/web/rest/Server.java
index 8c125c2f..c4285ae2 100644
--- a/rest/src/main/java/org/dbpedia/spotlight/web/rest/Server.java
+++ b/rest/src/main/java/org/dbpedia/spotlight/web/rest/Server.java
@@ -1,272 +1,... | true | true | public static void main(String[] args) throws IOException, InterruptedException, URISyntaxException, ClassNotFoundException, InitializationException {
URI serverURI = null;
if(args[0].endsWith(".properties")) {
//We are using the old-style configuration file:
//Initializat... | public static void main(String[] args) throws IOException, InterruptedException, URISyntaxException, ClassNotFoundException, InitializationException {
URI serverURI = null;
if(args[0].endsWith(".properties")) {
//We are using the old-style configuration file:
//Initializat... |
diff --git a/spi/src/main/java/org/qi4j/spi/service/importer/ServiceSelectorImporter.java b/spi/src/main/java/org/qi4j/spi/service/importer/ServiceSelectorImporter.java
index 48c075384..80c9d9ee4 100644
--- a/spi/src/main/java/org/qi4j/spi/service/importer/ServiceSelectorImporter.java
+++ b/spi/src/main/java/org/qi4j/s... | true | true | public T importService( ImportedServiceDescriptor serviceDescriptor )
throws ServiceImporterException
{
Specification<ServiceReference<?>> selector = serviceDescriptor.metaInfo( Specification.class );
Class serviceType = serviceDescriptor.type();
Iterable<ServiceReference<T>> ser... | public T importService( ImportedServiceDescriptor serviceDescriptor )
throws ServiceImporterException
{
Specification<ServiceReference<?>> selector = serviceDescriptor.metaInfo( Specification.class );
Class serviceType = serviceDescriptor.type();
Iterable<ServiceReference<T>> ser... |
diff --git a/CometDServer/src/org/BB/interactive/SimpleUserStatistics.java b/CometDServer/src/org/BB/interactive/SimpleUserStatistics.java
index 6ec7d12..f10105f 100644
--- a/CometDServer/src/org/BB/interactive/SimpleUserStatistics.java
+++ b/CometDServer/src/org/BB/interactive/SimpleUserStatistics.java
@@ -1,170 +1,17... | true | true | public synchronized void all(ServerSession remote, Message message) {
if (message != null) {
if (messages.containsKey(message.getChannel())) {
messages.put(message.getChannel(), messages.get(message.getChannel())+1);
} else {
messages.put(message.getChannel(),... | public synchronized void all(ServerSession remote, Message message) {
if (message != null) {
if (messages.containsKey(message.getChannel())) {
messages.put(message.getChannel(), messages.get(message.getChannel())+1);
} else {
messages.put(message.getChannel(),... |
diff --git a/app/controllers/SImages.java b/app/controllers/SImages.java
index 0d1acb1..d79ce8c 100644
--- a/app/controllers/SImages.java
+++ b/app/controllers/SImages.java
@@ -1,359 +1,358 @@
package controllers;
import static play.libs.Json.toJson;
import java.io.IOException;
import java.util.ArrayList;
im... | true | true | public static Result teacherAddImage() {
FilePart filePart = ctx().request().body().asMultipartFormData()
.getFile("picture");
List<SImage> images = new ArrayList<SImage>();
if (filePart.getFile() == null)
return ok(toJson("{status: No Image found}"));
Set<String> taskIds = new HashSet<String>();
... | public static Result teacherAddImage() {
FilePart filePart = ctx().request().body().asMultipartFormData()
.getFile("picture");
List<SImage> images = new ArrayList<SImage>();
if (filePart.getFile() == null)
return ok(toJson("{status: No Image found}"));
Set<String> taskIds = new HashSet<String>();
... |
diff --git a/dcm4chee-arc-service/src/main/java/org/dcm4chee/archive/retrieve/CMoveSCP.java b/dcm4chee-arc-service/src/main/java/org/dcm4chee/archive/retrieve/CMoveSCP.java
index 671c98f..b40720d 100644
--- a/dcm4chee-arc-service/src/main/java/org/dcm4chee/archive/retrieve/CMoveSCP.java
+++ b/dcm4chee-arc-service/src/m... | true | true | protected RetrieveTask calculateMatches(Association as, PresentationContext pc,
final Attributes rq, Attributes keys) throws DicomServiceException {
AttributesValidator validator = new AttributesValidator(keys);
QueryRetrieveLevel level = QueryRetrieveLevel.valueOf(validator, qrLevels);
... | protected RetrieveTask calculateMatches(Association as, PresentationContext pc,
final Attributes rq, Attributes keys) throws DicomServiceException {
AttributesValidator validator = new AttributesValidator(keys);
QueryRetrieveLevel level = QueryRetrieveLevel.valueOf(validator, qrLevels);
... |
diff --git a/core/src/ditl/cli/App.java b/core/src/ditl/cli/App.java
index 6c45f41..d46889f 100644
--- a/core/src/ditl/cli/App.java
+++ b/core/src/ditl/cli/App.java
@@ -1,127 +1,127 @@
/*******************************************************************************
* This file is part of DITL. ... | true | true | public boolean ready(String name, String[] args){
_name = name;
options.addOption(new Option("h","help",false,"Print help"));
initOptions();
usageString = "Usage: "+_name+" "+getUsageString();
try {
CommandLine cli = new PosixParser().parse(options, args);
if ( cli.hasOption("help") )
throw new Hel... | public boolean ready(String name, String[] args){
_name = name;
options.addOption(new Option("h","help",false,"Print help"));
initOptions();
usageString = _name+" "+getUsageString();
try {
CommandLine cli = new PosixParser().parse(options, args);
if ( cli.hasOption("help") )
throw new HelpException... |
diff --git a/src/bottomUpTree/rdp/MakeSHFileRDP.java b/src/bottomUpTree/rdp/MakeSHFileRDP.java
index 8997c097..8f813cd8 100644
--- a/src/bottomUpTree/rdp/MakeSHFileRDP.java
+++ b/src/bottomUpTree/rdp/MakeSHFileRDP.java
@@ -1,58 +1,58 @@
/**
* Author: anthony.fodor@gmail.com
* This code is free software; you ... | true | true | public static void main(String[] args) throws Exception
{
File dir = new File(ConfigReader.getNinaWithDuplicatesDir() + File.separator + "rdp");
List<String> fileNames = new ArrayList<String>();
for( String s : dir.list())
fileNames.add(s);
BufferedWriter mainBatFile = new BufferedWriter(new FileWrit... | public static void main(String[] args) throws Exception
{
File dir = new File(ConfigReader.getNinaWithDuplicatesDir() + File.separator + "rdp");
List<String> fileNames = new ArrayList<String>();
for( String s : dir.list())
fileNames.add(s);
BufferedWriter mainBatFile = new BufferedWriter(new FileWrit... |
diff --git a/plugins/org.eclipse.jst.j2ee.web/webproject/org/eclipse/jst/j2ee/internal/web/classpath/WebAppLibrariesContainer.java b/plugins/org.eclipse.jst.j2ee.web/webproject/org/eclipse/jst/j2ee/internal/web/classpath/WebAppLibrariesContainer.java
index 9c8ed29bc..4c45cd70d 100644
--- a/plugins/org.eclipse.jst.j2ee.... | true | true | protected List computeClasspathEntries() {
List <IPath>entries = super.computeClasspathEntries();
if(consumedReferences != null){
for(IVirtualReference ref:consumedReferences){
if(ref.getReferencedComponent() instanceof ClasspathContainerVirtualComponent){
ClasspathContainerVirtualCom... | protected List computeClasspathEntries() {
List <IPath>entries = super.computeClasspathEntries();
if(consumedReferences != null){
for(IVirtualReference ref:consumedReferences){
if(ref.getReferencedComponent() instanceof ClasspathContainerVirtualComponent){
ClasspathContainerVirtualCom... |
diff --git a/src/main/java/org/basex/io/serial/JSONSerializer.java b/src/main/java/org/basex/io/serial/JSONSerializer.java
index 68d76b96e..7174c322d 100644
--- a/src/main/java/org/basex/io/serial/JSONSerializer.java
+++ b/src/main/java/org/basex/io/serial/JSONSerializer.java
@@ -1,260 +1,261 @@
package org.basex.io.s... | true | true | private static byte[] name(final byte[] name) {
// convert name to valid XML representation
final TokenBuilder tb = new TokenBuilder();
int uc = 0;
// mode: 0=normal, 1=unicode, 2=underscore, 3=building unicode
int mode = 0;
for(int n = 0; n < name.length;) {
final int cp = cp(name, n);
... | private static byte[] name(final byte[] name) {
// convert name to valid XML representation
final TokenBuilder tb = new TokenBuilder();
int uc = 0;
// mode: 0=normal, 1=unicode, 2=underscore, 3=building unicode
int mode = 0;
for(int n = 0; n < name.length;) {
final int cp = cp(name, n);
... |
diff --git a/src/org/rascalmpl/interpreter/env/Environment.java b/src/org/rascalmpl/interpreter/env/Environment.java
index f32f5243b7..ec55b3e16e 100644
--- a/src/org/rascalmpl/interpreter/env/Environment.java
+++ b/src/org/rascalmpl/interpreter/env/Environment.java
@@ -1,769 +1,769 @@
/*******************************... | false | true | public void extend(Environment other) {
if (other.variableEnvironment != null) {
if (this.variableEnvironment == null) {
this.variableEnvironment = new HashMap<String, Result<IValue>>();
}
this.variableEnvironment.putAll(other.variableEnvironment);
}
if (other.functionEnvironment != ... | public void extend(Environment other) {
if (other.variableEnvironment != null) {
if (this.variableEnvironment == null) {
this.variableEnvironment = new HashMap<String, Result<IValue>>();
}
this.variableEnvironment.putAll(other.variableEnvironment);
}
if (other.functionEnvironment != ... |
diff --git a/src/main/java/org/got5/tapestry5/jquery/internal/DefaultDataTableModel.java b/src/main/java/org/got5/tapestry5/jquery/internal/DefaultDataTableModel.java
index e9d6088a..ba6fa246 100644
--- a/src/main/java/org/got5/tapestry5/jquery/internal/DefaultDataTableModel.java
+++ b/src/main/java/org/got5/tapestry5/... | true | true | public JSONObject getResponse(GridDataSource source){
response.put("sEcho", request.getParameter(DataTableConstants.ECHO));
int records = source.getAvailableRows();
response.put("iTotalDisplayRecords", records);
response.put("iTotalRecords", records);
String displayStart = reques... | public JSONObject getResponse(GridDataSource source){
response.put("sEcho", request.getParameter(DataTableConstants.ECHO));
int records = source.getAvailableRows();
response.put("iTotalDisplayRecords", records);
response.put("iTotalRecords", records);
String displayStart = reques... |
diff --git a/application/src/main/java/org/richfaces/tests/metamer/bean/RichCollapsiblePanelBean.java b/application/src/main/java/org/richfaces/tests/metamer/bean/RichCollapsiblePanelBean.java
index 4845b465..f84339bf 100644
--- a/application/src/main/java/org/richfaces/tests/metamer/bean/RichCollapsiblePanelBean.java
... | true | true | public void init() {
logger = LoggerFactory.getLogger(getClass());
logger.debug("initializing bean " + getClass().getName());
attributes = Attributes.getUIComponentAttributes(UICollapsiblePanel.class, getClass());
attributes.setAttribute("rendered", true);
attributes.setAtt... | public void init() {
logger = LoggerFactory.getLogger(getClass());
logger.debug("initializing bean " + getClass().getName());
attributes = Attributes.getUIComponentAttributes(UICollapsiblePanel.class, getClass());
attributes.setAttribute("rendered", true);
attributes.setAtt... |
diff --git a/simulator-ui/src/java/main/ca/nengo/ui/actions/PlotTimeSeries.java b/simulator-ui/src/java/main/ca/nengo/ui/actions/PlotTimeSeries.java
index 87796dfd..0f6bc2b4 100644
--- a/simulator-ui/src/java/main/ca/nengo/ui/actions/PlotTimeSeries.java
+++ b/simulator-ui/src/java/main/ca/nengo/ui/actions/PlotTimeSerie... | true | true | protected void action() throws ActionException {
try {
PFloat pTauFilter = new PFloat("Time constant of display filter [0 = off]", tauFilter);
PInt pSubSampling = new PInt("Subsampling [0 = off]", subSampling);
if (showUserConfigDialog) {
ConfigResult result;
try {
result = UserConfigurer.conf... | protected void action() throws ActionException {
try {
PFloat pTauFilter = new PFloat("Time constant of display filter [0 = off]", tauFilter);
PInt pSubSampling = new PInt("Subsampling [0 = off]", subSampling);
if (showUserConfigDialog) {
ConfigResult result;
try {
result = UserConfigurer.conf... |
diff --git a/src/main/org/codehaus/groovy/classgen/CompileStack.java b/src/main/org/codehaus/groovy/classgen/CompileStack.java
index cd995c3e5..8ccdb708b 100644
--- a/src/main/org/codehaus/groovy/classgen/CompileStack.java
+++ b/src/main/org/codehaus/groovy/classgen/CompileStack.java
@@ -1,626 +1,626 @@
/*
* Copyrig... | true | true | public void clear() {
if (stateStack.size()>1) {
int size = stateStack.size()-1;
throw new GroovyBugError("the compile stack contains "+size+" more push instruction"+(size==1?"":"s")+" than pops.");
}
clear = true;
// br experiment with local var table so debu... | public void clear() {
if (stateStack.size()>1) {
int size = stateStack.size()-1;
throw new GroovyBugError("the compile stack contains "+size+" more push instruction"+(size==1?"":"s")+" than pops.");
}
clear = true;
// br experiment with local var table so debu... |
diff --git a/src/main/java/org/elasticsearch/shell/client/DefaultClientFactory.java b/src/main/java/org/elasticsearch/shell/client/DefaultClientFactory.java
index e2e78a5..004503e 100644
--- a/src/main/java/org/elasticsearch/shell/client/DefaultClientFactory.java
+++ b/src/main/java/org/elasticsearch/shell/client/Defau... | true | true | public ShellNativeClient newNodeClient(String clusterName) {
Settings settings = ImmutableSettings.settingsBuilder()
.put("node.name", DEFAULT_NODE_NAME)
.put("http.enabled", false)
.build();
Node node = NodeBuilder.nodeBuilder().clusterName(clusterNa... | public ShellNativeClient newNodeClient(String clusterName) {
Settings settings = ImmutableSettings.settingsBuilder()
.put("node.name", DEFAULT_NODE_NAME)
.put("http.enabled", false)
.build();
Node node = NodeBuilder.nodeBuilder().clusterName(clusterNa... |
diff --git a/src/MPIODA.java b/src/MPIODA.java
index 330b8dd..6894014 100644
--- a/src/MPIODA.java
+++ b/src/MPIODA.java
@@ -1,338 +1,338 @@
import java.io.File;
import java.util.Vector;
import mpi.Datatype;
import util.KullBackLeibler;
import mpi.MPI;
import mpi.MPIException;
import incrementallda.IncrEstim... | true | true | public static void main(String[] args) {
MPI.Init(args);
rank = MPI.COMM_WORLD.Rank();
size = MPI.COMM_WORLD.Size();
int last_process = size-1; // process taking care of the last new batch of data
int next_process = 0; // process that are going to taking care of the new batch of data
/**
* Declare data... | public static void main(String[] args) {
MPI.Init(args);
rank = MPI.COMM_WORLD.Rank();
size = MPI.COMM_WORLD.Size();
int last_process = size-1; // process taking care of the last new batch of data
int next_process = 0; // process that are going to taking care of the new batch of data
/**
* Declare data... |
diff --git a/deegree-tests/deegree-wms-similarity-tests/src/test/java/org/deegree/services/wms/WMSSimilarityIntegrationTest.java b/deegree-tests/deegree-wms-similarity-tests/src/test/java/org/deegree/services/wms/WMSSimilarityIntegrationTest.java
index 872ca50c9a..149dfa8f5f 100644
--- a/deegree-tests/deegree-wms-simil... | true | true | public void testSimilarity()
throws IOException {
String base = "http://localhost:" + System.getProperty( "portnumber" );
base += "/deegree-wms-similarity-tests/services" + request;
InputStream in = retrieve( STREAM, base );
try {
BufferedImag... | public void testSimilarity()
throws IOException {
String base = "http://localhost:" + System.getProperty( "portnumber" );
base += "/deegree-wms-similarity-tests/services" + request;
InputStream in = retrieve( STREAM, base );
try {
BufferedImag... |
diff --git a/wayback-core/src/main/java/org/archive/wayback/archivalurl/requestparser/ReplayRequestParser.java b/wayback-core/src/main/java/org/archive/wayback/archivalurl/requestparser/ReplayRequestParser.java
index 6a730ecde..784fc4379 100644
--- a/wayback-core/src/main/java/org/archive/wayback/archivalurl/requestpar... | true | true | public WaybackRequest parse(String requestPath) {
WaybackRequest wbRequest = null;
Matcher matcher = WB_REQUEST_REGEX.matcher(requestPath);
String urlStr = null;
if (matcher != null && matcher.matches()) {
wbRequest = new WaybackRequest();
String dateStr = matcher.group(1);
urlStr = matcher.group(2);
... | public WaybackRequest parse(String requestPath) {
WaybackRequest wbRequest = null;
Matcher matcher = WB_REQUEST_REGEX.matcher(requestPath);
String urlStr = null;
if (matcher != null && matcher.matches()) {
wbRequest = new WaybackRequest();
String dateStr = matcher.group(1);
urlStr = matcher.group(2);
... |
diff --git a/BinaryTreeMaximPathSum/Solution.java b/BinaryTreeMaximPathSum/Solution.java
index 9d52b91..afef0a8 100644
--- a/BinaryTreeMaximPathSum/Solution.java
+++ b/BinaryTreeMaximPathSum/Solution.java
@@ -1,45 +1,45 @@
/**
* Definition for binary tree
* public class TreeNode {
* int val;
* TreeNode... | false | true | public MetaData maxPathSumWithMeta(TreeNode root) {
// Start typing your Java solution below
// DO NOT write main() function
if(root==null){
return new MetaData(Integer.MIN_VALUE,0);
}
MetaData leftData = maxPathSum(root.left);
MetaData rightData = maxPat... | public MetaData maxPathSumWithMeta(TreeNode root) {
// Start typing your Java solution below
// DO NOT write main() function
if(root==null){
return new MetaData(Integer.MIN_VALUE,0);
}
MetaData leftData = maxPathSumWithMeta(root.left);
MetaData rightData ... |
diff --git a/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java
index 9bb900c..c41f3a3 100644
--- a/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java
+++ b/src/me/libraryaddict/disguise/utilities/DisguiseUtilities.java
@@ -1,535 +... | true | true | public static void sendSelfDisguise(final Player player) {
try {
if (!player.isValid()) {
return;
}
Object world = ReflectionManager.getWorld(player.getWorld());
Object tracker = world.getClass().getField("tracker").get(world);
Obje... | public static void sendSelfDisguise(final Player player) {
try {
if (!player.isValid()) {
return;
}
Object world = ReflectionManager.getWorld(player.getWorld());
Object tracker = world.getClass().getField("tracker").get(world);
Obje... |
diff --git a/forms/src/org/riotfamily/forms/element/ColorPicker.java b/forms/src/org/riotfamily/forms/element/ColorPicker.java
index e38a51409..74c60011a 100644
--- a/forms/src/org/riotfamily/forms/element/ColorPicker.java
+++ b/forms/src/org/riotfamily/forms/element/ColorPicker.java
@@ -1,76 +1,76 @@
/* ***** BEGIN L... | true | true | public String getInitScript() {
StringBuffer sb = new StringBuffer("new Control.ColorPicker('")
.append(getId()).append("', {IMAGE_BASE: '")
.append(getFormContext().getContextPath())
.append(getFormContext().getResourcePath())
.append("form/colorPicker/").append("', swatch: '")
.append(getId() +... | public String getInitScript() {
StringBuffer sb = new StringBuffer("new Control.ColorPicker('")
.append(getEventTriggerId()).append("', {IMAGE_BASE: '")
.append(getFormContext().getContextPath())
.append(getFormContext().getResourcePath())
.append("form/colorPicker/").append("', swatch: '")
.appe... |
diff --git a/Group4Shop_App/src/main/java/dit126/group4/group4shop_app/controller/RenderPDFController.java b/Group4Shop_App/src/main/java/dit126/group4/group4shop_app/controller/RenderPDFController.java
index a9df2e0..c2afd60 100644
--- a/Group4Shop_App/src/main/java/dit126/group4/group4shop_app/controller/RenderPDFCon... | true | true | public void createPDF(){
FacesContext facesContext = FacesContext.getCurrentInstance();
ExternalContext externalContext = facesContext.getExternalContext();
HttpSession session = (HttpSession) externalContext.getSession(true);
String url = "http://localhost:8080/Group4Shop_A... | public void createPDF(){
FacesContext facesContext = FacesContext.getCurrentInstance();
ExternalContext externalContext = facesContext.getExternalContext();
HttpSession session = (HttpSession) externalContext.getSession(true);
String url = "http://localhost:8080/Group4Shop_A... |
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/StepIntoSelectionActionDelegate.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/StepIntoSelectionActionDelegate.java
index be554c394..ce8c06c1f 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/interna... | true | true | private void runToLineBeforeStepIn(ITextSelection textSelection, final IJavaStackFrame startFrame, final IMethod method) throws DebugException {
IRunToLineTarget runToLineAction = new RunToLineAdapter();
runToLineType= startFrame.getReceivingTypeName();
runToLineLine= textSelection.getStartLine() + 1;
if (runT... | private void runToLineBeforeStepIn(ITextSelection textSelection, final IJavaStackFrame startFrame, final IMethod method) throws DebugException {
IRunToLineTarget runToLineAction = new RunToLineAdapter();
runToLineType= startFrame.getReceivingTypeName();
runToLineLine= textSelection.getStartLine() + 1;
if (runT... |
diff --git a/source/de/anomic/server/logging/LogalizerHandler.java b/source/de/anomic/server/logging/LogalizerHandler.java
index ea54f55dd..daf09c159 100644
--- a/source/de/anomic/server/logging/LogalizerHandler.java
+++ b/source/de/anomic/server/logging/LogalizerHandler.java
@@ -1,171 +1,171 @@
//LogalizerHandler.jav... | true | true | private HashMap<String, Object> loadParsers() {
final HashMap<String, Object> logParsers = new HashMap<String, Object>();
try {
if (debug) System.out.println("Searching for additional content parsers in package " + logParserPackage);
// getting an uri to the parser subpackage... | private HashMap<String, Object> loadParsers() {
final HashMap<String, Object> logParsers = new HashMap<String, Object>();
try {
if (debug) System.out.println("Searching for additional content parsers in package " + logParserPackage);
// getting an uri to the parser subpackage... |
diff --git a/src/main/java/com/laytonsmith/abstraction/bukkit/events/drivers/BukkitPlayerListener.java b/src/main/java/com/laytonsmith/abstraction/bukkit/events/drivers/BukkitPlayerListener.java
index b12c417b..0d196b33 100644
--- a/src/main/java/com/laytonsmith/abstraction/bukkit/events/drivers/BukkitPlayerListener.ja... | false | true | public void onPlayerChat(final AsyncPlayerChatEvent event) {
if (EventUtils.GetEvents(Driver.PLAYER_CHAT) != null
&& !EventUtils.GetEvents(Driver.PLAYER_CHAT).isEmpty()) {
if (event.isAsynchronous()) {
//We have to do the full processing on the main server thread, and
//block on it as well, so if we ca... | public void onPlayerChat(final AsyncPlayerChatEvent event) {
if (EventUtils.GetEvents(Driver.PLAYER_CHAT) != null
&& !EventUtils.GetEvents(Driver.PLAYER_CHAT).isEmpty()) {
if (event.isAsynchronous()) {
//We have to do the full processing on the main server thread, and
//block on it as well, so if we ca... |
diff --git a/seqware-queryengine-backend/src/main/java/com/github/seqware/queryengine/system/exporters/ArbitraryPluginRunner.java b/seqware-queryengine-backend/src/main/java/com/github/seqware/queryengine/system/exporters/ArbitraryPluginRunner.java
index ae9f7fc0..92435f0a 100644
--- a/seqware-queryengine-backend/src/m... | false | true | public static int runArbitraryPluginRunner(String[] args){
Options options = new Options();
Option option1 = OptionBuilder.withArgName("outputFile").withDescription("(required) output file").hasArgs(1).isRequired().create(OUTPUT_FILE_PARAM);
options.addOption(option1);
Option option2 = OptionBuilder.withArgNa... | public static int runArbitraryPluginRunner(String[] args){
Options options = new Options();
Option option1 = OptionBuilder.withArgName("outputFile").withDescription("(required) output file").hasArgs(1).isRequired().create(OUTPUT_FILE_PARAM);
options.addOption(option1);
Option option2 = OptionBuilder.withArgNa... |
diff --git a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/simplified/activities/SubmitForApproval.java b/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/simplified/activities/SubmitForApproval.java
index 0a31c4e6..ca818808 100644
--- a/expenditure-tracking/... | true | true | protected void process(ActivityInformation<RegularAcquisitionProcess> activityInformation) {
final RegularAcquisitionProcess process = activityInformation.getProcess();
if (process.isSimplifiedProcedureProcess()
&& ((SimplifiedProcedureProcess) process).getProcessClassification() != ProcessClassification.CT7500... | protected void process(ActivityInformation<RegularAcquisitionProcess> activityInformation) {
final RegularAcquisitionProcess process = activityInformation.getProcess();
if (process.isSimplifiedProcedureProcess()
//&& ((SimplifiedProcedureProcess) process).getProcessClassification() != ProcessClassification.CT75... |
diff --git a/src/main/java/ljdp/minechem/common/recipe/MinechemRecipes.java b/src/main/java/ljdp/minechem/common/recipe/MinechemRecipes.java
index 5db8f4c..039d2d4 100644
--- a/src/main/java/ljdp/minechem/common/recipe/MinechemRecipes.java
+++ b/src/main/java/ljdp/minechem/common/recipe/MinechemRecipes.java
@@ -1,1715 ... | true | true | public void registerVanillaChemicalRecipes() {
// Molecules
Molecule moleculeSiliconDioxide = this.molecule(
EnumMolecule.siliconDioxide, 4);
Molecule moleculeCellulose = this.molecule(EnumMolecule.cellulose, 1);
Molecule moleculePolyvinylChloride = this
.molecule(EnumMolecule.polyvinylChloride);
... | public void registerVanillaChemicalRecipes() {
// Molecules
Molecule moleculeSiliconDioxide = this.molecule(
EnumMolecule.siliconDioxide, 4);
Molecule moleculeCellulose = this.molecule(EnumMolecule.cellulose, 1);
Molecule moleculePolyvinylChloride = this
.molecule(EnumMolecule.polyvinylChloride);
... |
diff --git a/web/src/main/java/org/openmrs/module/web/taglib/ExtensionPointTag.java b/web/src/main/java/org/openmrs/module/web/taglib/ExtensionPointTag.java
index 328a74ec..2b891623 100644
--- a/web/src/main/java/org/openmrs/module/web/taglib/ExtensionPointTag.java
+++ b/web/src/main/java/org/openmrs/module/web/taglib/... | true | true | public int doStartTag() {
log.debug("Starting tag for extension point: " + pointId);
// "zero out" the extension list and other variables
extensions = null;
parameterMap = OpenmrsUtil.parseParameterList(parameters);
status = new HashMap<String, Object>();
List<Extension> extensionList = null;
List<... | public int doStartTag() {
log.debug("Starting tag for extension point: " + pointId);
// "zero out" the extension list and other variables
extensions = null;
parameterMap = OpenmrsUtil.parseParameterList(parameters);
status = new HashMap<String, Object>();
List<Extension> extensionList = null;
List<... |
diff --git a/src/main/java/at/r7r/schemaInject/SchemaInject.java b/src/main/java/at/r7r/schemaInject/SchemaInject.java
index 282f958..7d30c67 100644
--- a/src/main/java/at/r7r/schemaInject/SchemaInject.java
+++ b/src/main/java/at/r7r/schemaInject/SchemaInject.java
@@ -1,75 +1,76 @@
package at.r7r.schemaInject;
impo... | true | true | public void inject(Connection conn, Schema schema) throws SQLException {
DatabaseHelper dh = new DatabaseHelper(conn);
// inject each table
for (Table table: schema.getTables()) {
dh.createTable(table);
}
Table metaTable = createMetaTable(schema.getMetaTable());
dh.createTable(metaTable);
SqlBuil... | public void inject(Connection conn, Schema schema) throws SQLException {
DatabaseHelper dh = new DatabaseHelper(conn);
// inject each table
for (Table table: schema.getTables()) {
dh.createTable(table);
}
Table metaTable = createMetaTable(schema.getMetaTable());
dh.createTable(metaTable);
SqlBuil... |
diff --git a/src/com/js/interpreter/pascaltypes/JavaClassBasedType.java b/src/com/js/interpreter/pascaltypes/JavaClassBasedType.java
index 11cd0f2..d1c783a 100644
--- a/src/com/js/interpreter/pascaltypes/JavaClassBasedType.java
+++ b/src/com/js/interpreter/pascaltypes/JavaClassBasedType.java
@@ -1,171 +1,175 @@
packag... | true | true | public ReturnsValue convert(ReturnsValue value, ExpressionContext f)
throws ParsingException {
RuntimeType other_type = value.get_type(f);
if (other_type.declType instanceof JavaClassBasedType) {
if (this.equals(other_type.declType)) {
return value;
}
if (this == StringBuilder
&& other_type... | public ReturnsValue convert(ReturnsValue value, ExpressionContext f)
throws ParsingException {
RuntimeType other_type = value.get_type(f);
if (other_type.declType instanceof JavaClassBasedType) {
if (this.equals(other_type.declType)) {
return value;
}
if (this == StringBuilder
&& other_type... |
diff --git a/SoarSuite/soar-java/soar-soar2d/src/main/java/edu/umich/soar/gridmap2d/visuals/RoomVisualWorld.java b/SoarSuite/soar-java/soar-soar2d/src/main/java/edu/umich/soar/gridmap2d/visuals/RoomVisualWorld.java
index 553f163ec..435682f18 100644
--- a/SoarSuite/soar-java/soar-soar2d/src/main/java/edu/umich/soar/grid... | true | true | public void paintControl(PaintEvent e) {
GC gc = e.gc;
gc.setFont(font);
gc.setForeground(WindowManager.black);
gc.setLineWidth(1);
if (!Gridmap2D.control.isRunning()) {
if (lastX != e.x || lastY != e.y || internalRepaint) {
lastX = e.x;
lastY = e.y;
painted = false;
}
if (disa... | public void paintControl(PaintEvent e) {
GC gc = e.gc;
gc.setFont(font);
gc.setForeground(WindowManager.black);
gc.setLineWidth(1);
if (!Gridmap2D.control.isRunning()) {
if (lastX != e.x || lastY != e.y || internalRepaint) {
lastX = e.x;
lastY = e.y;
painted = false;
}
if (disa... |
diff --git a/extension/app-schema/app-schema-test/src/test/java/org/geoserver/test/ValidationTest.java b/extension/app-schema/app-schema-test/src/test/java/org/geoserver/test/ValidationTest.java
index e6de547ed..5f7126fba 100644
--- a/extension/app-schema/app-schema-test/src/test/java/org/geoserver/test/ValidationTest.... | false | true | public void testAttributeMinOccur0() {
Document doc = null;
doc = getAsDOM("wfs?request=GetFeature&typename=gsml:GeologicUnit");
LOGGER.info("WFS GetFeature&typename=gsml:GeologicUnit response:\n" + prettyString(doc));
assertXpathCount(1, "//gsml:GeologicUnit[@gml:id='gsml.geologicun... | public void testAttributeMinOccur0() {
Document doc = null;
doc = getAsDOM("wfs?request=GetFeature&typename=gsml:GeologicUnit");
LOGGER.info("WFS GetFeature&typename=gsml:GeologicUnit response:\n" + prettyString(doc));
assertXpathCount(1, "//gsml:GeologicUnit[@gml:id='gsml.geologicun... |
diff --git a/nuxeo-platform-forms-layout-client/src/main/java/org/nuxeo/ecm/platform/forms/layout/facelets/WidgetTypeTagHandler.java b/nuxeo-platform-forms-layout-client/src/main/java/org/nuxeo/ecm/platform/forms/layout/facelets/WidgetTypeTagHandler.java
index 9c2e3946..84c96a72 100644
--- a/nuxeo-platform-forms-layout... | false | true | public final void apply(FaceletContext ctx, UIComponent parent)
throws IOException, FacesException, ELException {
WebLayoutManager layoutService;
try {
layoutService = Framework.getService(WebLayoutManager.class);
} catch (Exception e) {
throw new FacesExc... | public final void apply(FaceletContext ctx, UIComponent parent)
throws IOException, FacesException, ELException {
WebLayoutManager layoutService;
try {
layoutService = Framework.getService(WebLayoutManager.class);
} catch (Exception e) {
throw new FacesExc... |
diff --git a/pmd-eclipse/src/net/sourceforge/pmd/eclipse/views/PriorityFilter.java b/pmd-eclipse/src/net/sourceforge/pmd/eclipse/views/PriorityFilter.java
index abe1dd64c..75ffd08ef 100644
--- a/pmd-eclipse/src/net/sourceforge/pmd/eclipse/views/PriorityFilter.java
+++ b/pmd-eclipse/src/net/sourceforge/pmd/eclipse/views... | true | true | public boolean select(Viewer viewer, Object parentElement, Object element) {
// the Element can be ...
if (element instanceof PackageRecord) {
// a Package (Overview)
PackageRecord packageRec = (PackageRecord) element;
// go through the List and search for Markers with the
// given Priorities, if ... | public boolean select(Viewer viewer, Object parentElement, Object element) {
// the Element can be ...
if (element instanceof PackageRecord) {
// a Package (Overview)
PackageRecord packageRec = (PackageRecord) element;
// go through the List and search for Markers with the
// given Priorities, if ... |
diff --git a/src/server/src/main/java/org/apache/accumulo/server/test/TestIngest.java b/src/server/src/main/java/org/apache/accumulo/server/test/TestIngest.java
index 42be2a947..48e6bc082 100644
--- a/src/server/src/main/java/org/apache/accumulo/server/test/TestIngest.java
+++ b/src/server/src/main/java/org/apache/accu... | true | true | public static void main(String[] args) {
// log.error("usage : test_ingest [-delete] [-size <value size>] [-random <seed>] [-timestamp <ts>] [-stride <size>] <rows> <start row> <# cols> ");
IngestArgs ingestArgs = parseArgs(args);
Instance instance = HdfsZooInstance.getInstance();
try {
... | public static void main(String[] args) {
// log.error("usage : test_ingest [-delete] [-size <value size>] [-random <seed>] [-timestamp <ts>] [-stride <size>] <rows> <start row> <# cols> ");
IngestArgs ingestArgs = parseArgs(args);
Instance instance = HdfsZooInstance.getInstance();
try {
... |
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/ProjectResources.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/ProjectResources.java
index 9052672d3..dce262288 100644
--- a/eclipse/plugins... | true | true | private Resource findMatchingConfiguredResource(List<? extends Resource> resources,
FolderConfiguration referenceConfig) {
//
// 1: eliminate resources that contradict the reference configuration
// 2: pick next qualifier type
// 3: check if any resources use this qualifi... | private Resource findMatchingConfiguredResource(List<? extends Resource> resources,
FolderConfiguration referenceConfig) {
//
// 1: eliminate resources that contradict the reference configuration
// 2: pick next qualifier type
// 3: check if any resources use this qualifi... |
diff --git a/zendserver-sdk-java/org.zend.sdk/sdklib/org/zend/sdklib/manager/TargetsManager.java b/zendserver-sdk-java/org.zend.sdk/sdklib/org/zend/sdklib/manager/TargetsManager.java
index 4121e0c5..42cfd5f8 100644
--- a/zendserver-sdk-java/org.zend.sdk/sdklib/org/zend/sdklib/manager/TargetsManager.java
+++ b/zendserve... | true | true | public synchronized IZendTarget detectLocalhostTarget(String targetId,
String key) throws IOException {
final IZendTarget[] list = getTargets();
targetId = targetId != null ? targetId : Integer
.toString(getTargets().length);
key = key != null ? key : DEFAULT_KEY;
for (IZendTarget t : list) {
if (Zen... | public synchronized IZendTarget detectLocalhostTarget(String targetId,
String key) throws IOException {
final IZendTarget[] list = getTargets();
targetId = targetId != null ? targetId : Integer
.toString(getTargets().length);
key = key != null ? key : DEFAULT_KEY;
for (IZendTarget t : list) {
if (Zen... |
diff --git a/src/edu/harvard/cs262/grading/StudentGetGradesServlet.java b/src/edu/harvard/cs262/grading/StudentGetGradesServlet.java
index b99493e..83d455a 100644
--- a/src/edu/harvard/cs262/grading/StudentGetGradesServlet.java
+++ b/src/edu/harvard/cs262/grading/StudentGetGradesServlet.java
@@ -1,126 +1,126 @@
packag... | true | true | public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// get posted parameters
String rawStudent = request.getParameter("student");
// attempt to get corresponding grade
if(rawStudent == null) {
respons... | public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// get posted parameters
String rawStudent = request.getParameter("student");
// attempt to get corresponding grade
if(rawStudent == null) {
respons... |
diff --git a/smtp/src/org/subethamail/smtp/command/QuitCommand.java b/smtp/src/org/subethamail/smtp/command/QuitCommand.java
index 0dd5f95..61bdb59 100644
--- a/smtp/src/org/subethamail/smtp/command/QuitCommand.java
+++ b/smtp/src/org/subethamail/smtp/command/QuitCommand.java
@@ -1,25 +1,25 @@
package org.subethamail.... | false | true | public void execute(String commandString, ConnectionContext context) throws IOException
{
context.sendResponse("221 Bye");
context.getSession().quit();
}
| public void execute(String commandString, ConnectionContext context) throws IOException
{
context.getSession().quit();
context.sendResponse("221 Bye");
}
|
diff --git a/src/no/uninett/agora/AgoraMobile/ExternalFileUtil.java b/src/no/uninett/agora/AgoraMobile/ExternalFileUtil.java
index c3fdd57..b9505df 100644
--- a/src/no/uninett/agora/AgoraMobile/ExternalFileUtil.java
+++ b/src/no/uninett/agora/AgoraMobile/ExternalFileUtil.java
@@ -1,162 +1,166 @@
package no.uninett.ago... | true | true | private void openWith(final String path, final CallbackContext callbackContext){
try{
cordova.getActivity().runOnUiThread(new Runnable() {
public void run() {
// Create URI
Uri uri = Uri.parse(path);
Intent intent = nul... | private void openWith(final String path, final CallbackContext callbackContext){
try{
cordova.getActivity().runOnUiThread(new Runnable() {
public void run() {
// Create URI
Uri uri = Uri.parse(path);
Intent intent = nul... |
diff --git a/library/src/com/handmark/pulltorefresh/library/OverscrollHelper.java b/library/src/com/handmark/pulltorefresh/library/OverscrollHelper.java
index ef9602d..9818921 100644
--- a/library/src/com/handmark/pulltorefresh/library/OverscrollHelper.java
+++ b/library/src/com/handmark/pulltorefresh/library/Overscrol... | true | true | static void overScrollBy(PullToRefreshBase<?> view, int deltaY, int scrollY, boolean isTouchEvent) {
final Mode mode = view.getCurrentMode();
if (mode != Mode.DISABLED && !isTouchEvent) {
final int newY = (deltaY + scrollY);
if (newY != 0) {
// Check the mode supports the overscroll direction, and
... | static void overScrollBy(PullToRefreshBase<?> view, int deltaY, int scrollY, boolean isTouchEvent) {
final Mode mode = view.getMode();
if (mode != Mode.DISABLED && !isTouchEvent) {
final int newY = (deltaY + scrollY);
if (newY != 0) {
// Check the mode supports the overscroll direction, and
// then... |
diff --git a/netbout/netbout-rest/src/main/java/com/netbout/rest/BoutRs.java b/netbout/netbout-rest/src/main/java/com/netbout/rest/BoutRs.java
index 447e1ae53..269c4a928 100644
--- a/netbout/netbout-rest/src/main/java/com/netbout/rest/BoutRs.java
+++ b/netbout/netbout-rest/src/main/java/com/netbout/rest/BoutRs.java
@@ ... | true | true | private NbPage page() {
final Identity myself = this.identity();
this.coords.normalize(this.hub(), this.bout());
final NbPage page = new PageBuilder()
.schema("")
.stylesheet(
this.base().path("/{bout}/xsl/{stage}/wrapper.xsl")
.bui... | private NbPage page() {
final Identity myself = this.identity();
this.coords.normalize(this.hub(), this.bout());
final NbPage page = new PageBuilder()
.schema("")
.stylesheet(
UriBuilder.fromPath("/{bout}/xsl/{stage}/wrapper.xsl")
.... |
diff --git a/src/com/tomclaw/mandarin/core/QueryHelper.java b/src/com/tomclaw/mandarin/core/QueryHelper.java
index afe8cf9f..f18a6302 100644
--- a/src/com/tomclaw/mandarin/core/QueryHelper.java
+++ b/src/com/tomclaw/mandarin/core/QueryHelper.java
@@ -1,420 +1,421 @@
package com.tomclaw.mandarin.core;
import android... | true | true | public static void insertMessage(ContentResolver contentResolver, String appSession, int accountDbId,
int buddyDbId, int messageType, String cookie, long messageTime,
String messageText, boolean activateDialog) {
Log.d(Settings.LOG_TA... | public static void insertMessage(ContentResolver contentResolver, String appSession, int accountDbId,
int buddyDbId, int messageType, String cookie, long messageTime,
String messageText, boolean activateDialog) {
Log.d(Settings.LOG_TA... |
diff --git a/src/qs/swornshop/Main.java b/src/qs/swornshop/Main.java
index b0ed691..b860cfd 100644
--- a/src/qs/swornshop/Main.java
+++ b/src/qs/swornshop/Main.java
@@ -1,280 +1,281 @@
package qs.swornshop;
import java.util.HashMap;
import java.util.logging.Logger;
import org.bukkit.Location;
import org.bukkit... | true | true | public boolean onCommand(CommandSender sender, Command command,
String label, String[] args) {
if (command.getName().equalsIgnoreCase("shop")) {
if (!(sender instanceof Player)) {
sendError(sender, "/shop can only be used by a player");
}
Player pl = (Player) sender;
ShopSelection selection = sele... | public boolean onCommand(CommandSender sender, Command command,
String label, String[] args) {
if (command.getName().equalsIgnoreCase("shop")) {
if (!(sender instanceof Player)) {
sendError(sender, "/shop can only be used by a player");
}
Player pl = (Player) sender;
ShopSelection selection = sele... |
diff --git a/openFaces/source/org/openfaces/component/table/impl/InGroupHeaderOrFooterCell.java b/openFaces/source/org/openfaces/component/table/impl/InGroupHeaderOrFooterCell.java
index b06c83b12..bb7c4556a 100644
--- a/openFaces/source/org/openfaces/component/table/impl/InGroupHeaderOrFooterCell.java
+++ b/openFaces/... | true | true | public List<UIComponent> getChildren() {
BaseColumn actualCol = getCurrentlyRenderedColumn();
if (actualCol instanceof ContextDependentComponent) {
if (!((ContextDependentComponent) actualCol).isComponentInContext()) {
// This method is expected to be called only from wit... | public List<UIComponent> getChildren() {
BaseColumn actualCol = getCurrentlyRenderedColumn();
if (actualCol instanceof ContextDependentComponent) {
if (!((ContextDependentComponent) actualCol).isComponentInContext()) {
// This method is expected to be called only from wit... |
diff --git a/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/part/EsbCreationWizard.java b/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/part/EsbCreationWizard.java
index e944645... | false | true | public boolean performFinish() {
try {
IRunnableWithProgress op = null;
IPath containerFullPath = diagramModelFilePage
.getContainerFullPath();
esbProject = ResourcesPlugin.getWorkspace().getRoot()
.getProject(containerFullPath.segment(0));
esbProjectArtifact = new ESBProjectArtifact();
... | public boolean performFinish() {
try {
IRunnableWithProgress op = null;
IPath containerFullPath = diagramModelFilePage
.getContainerFullPath();
esbProject = ResourcesPlugin.getWorkspace().getRoot()
.getProject(containerFullPath.segment(0));
esbProjectArtifact = new ESBProjectArtifact();
... |
diff --git a/MSC/src/AudioToFreq.java b/MSC/src/AudioToFreq.java
index fad013f..958a12f 100644
--- a/MSC/src/AudioToFreq.java
+++ b/MSC/src/AudioToFreq.java
@@ -1,172 +1,173 @@
import java.io.*;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.Arrays;
import javax.sound.sampled.*;
impor... | true | true | private static void rawplay(AudioFormat targetFormat, AudioInputStream din) throws IOException, LineUnavailableException
{
byte[] data = new byte[4096]; //Holds the current frame's data.
SourceDataLine line = getLine(targetFormat);
FastFourierTransformer fft = new FastFourierT... | private static void rawplay(AudioFormat targetFormat, AudioInputStream din) throws IOException, LineUnavailableException
{
byte[] data = new byte[4096]; //Holds the current frame's data.
SourceDataLine line = getLine(targetFormat);
FastFourierTransformer fft = new FastFourierT... |
diff --git a/src/org/rsbot/gui/BotGUI.java b/src/org/rsbot/gui/BotGUI.java
index df3abcc9..883d9daa 100644
--- a/src/org/rsbot/gui/BotGUI.java
+++ b/src/org/rsbot/gui/BotGUI.java
@@ -1,656 +1,656 @@
package org.rsbot.gui;
import org.rsbot.Configuration;
import org.rsbot.Configuration.OperatingSystem;
import org.r... | true | true | public void actionPerformed(final ActionEvent evt) {
final String action = evt.getActionCommand();
final String menu, option;
final int z = action.indexOf('.');
if (z == -1) {
menu = action;
option = "";
} else {
menu = action.substring(0, z);
option = action.substring(z + 1);
}
if (menu.equa... | public void actionPerformed(final ActionEvent evt) {
final String action = evt.getActionCommand();
final String menu, option;
final int z = action.indexOf('.');
if (z == -1) {
menu = action;
option = "";
} else {
menu = action.substring(0, z);
option = action.substring(z + 1);
}
if (menu.equa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.