diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/org.springframework.integration/src/main/java/org/springframework/integration/config/xml/HeaderEnricherParserSupport.java b/org.springframework.integration/src/main/java/org/springframework/integration/config/xml/HeaderEnricherParserSupport.java
index 5e6205f9e3..683a7ab239 100644
--- a/org.springframework... | true | true | protected void processHeaders(Element element, ManagedMap<String, Object> headers, ParserContext parserContext) {
NodeList childNodes = element.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node node = childNodes.item(i);
if (node.getNodeType() == Node.ELEMENT_NODE) {
String headerN... | protected void processHeaders(Element element, ManagedMap<String, Object> headers, ParserContext parserContext) {
NodeList childNodes = element.getChildNodes();
for (int i = 0; i < childNodes.getLength(); i++) {
Node node = childNodes.item(i);
if (node.getNodeType() == Node.ELEMENT_NODE) {
String headerN... |
diff --git a/src/ca/cumulonimbus/pressurenetsdk/CbService.java b/src/ca/cumulonimbus/pressurenetsdk/CbService.java
index c65cc6e..0f6b8f4 100644
--- a/src/ca/cumulonimbus/pressurenetsdk/CbService.java
+++ b/src/ca/cumulonimbus/pressurenetsdk/CbService.java
@@ -1,795 +1,795 @@
package ca.cumulonimbus.pressurenetsdk;
... | true | true | public void handleMessage(Message msg) {
switch (msg.what) {
case MSG_STOP:
log("message. bound service says stop");
stopAutoSubmit();
break;
case MSG_GET_BEST_LOCATION:
log("message. bound service requesting location");
if (locationManager != null) {
Location best = locationManager.... | public void handleMessage(Message msg) {
switch (msg.what) {
case MSG_STOP:
log("message. bound service says stop");
stopAutoSubmit();
break;
case MSG_GET_BEST_LOCATION:
log("message. bound service requesting location");
if (locationManager != null) {
Location best = locationManager.... |
diff --git a/db/src/main/java/com/psddev/dari/db/SqlDatabase.java b/db/src/main/java/com/psddev/dari/db/SqlDatabase.java
index 745dce31..a7e6c23b 100644
--- a/db/src/main/java/com/psddev/dari/db/SqlDatabase.java
+++ b/db/src/main/java/com/psddev/dari/db/SqlDatabase.java
@@ -1,2356 +1,2355 @@
package com.psddev.dari.db... | true | true | protected void doSaves(Connection connection, boolean isImmediate, List<State> states) throws SQLException {
List<State> indexStates = null;
for (State state1 : states) {
if (Boolean.TRUE.equals(state1.getExtra(SKIP_INDEX_STATE_EXTRA))) {
indexStates = new ArrayList<State... | protected void doSaves(Connection connection, boolean isImmediate, List<State> states) throws SQLException {
List<State> indexStates = null;
for (State state1 : states) {
if (Boolean.TRUE.equals(state1.getExtra(SKIP_INDEX_STATE_EXTRA))) {
indexStates = new ArrayList<State... |
diff --git a/src/main/java/com/ethlo/web/webclient/plugins/FilterPluginCsrf.java b/src/main/java/com/ethlo/web/webclient/plugins/FilterPluginCsrf.java
index 490c7bc..f4dedb8 100644
--- a/src/main/java/com/ethlo/web/webclient/plugins/FilterPluginCsrf.java
+++ b/src/main/java/com/ethlo/web/webclient/plugins/FilterPluginC... | false | true | public boolean doFilterBefore(HttpServletRequest request, HttpServletResponse response) throws IOException
{
final HttpSession session = request.getSession(true);
final boolean hasActivatorReqParam = request.getParameter(CSRF_ACTIVE_ATTR_NAME) != null;
String sessionToken = (String) session.getAttribute(CSRF_PR... | public boolean doFilterBefore(HttpServletRequest request, HttpServletResponse response) throws IOException
{
final HttpSession session = request.getSession(true);
final boolean hasActivatorReqParam = request.getParameter(CSRF_ACTIVE_ATTR_NAME) != null;
String sessionToken = (String) session.getAttribute(CSRF_PR... |
diff --git a/nuget-server/src/jetbrains/buildServer/nuget/server/runner/pack/PackRunType.java b/nuget-server/src/jetbrains/buildServer/nuget/server/runner/pack/PackRunType.java
index 1c61c9e7..12bcffb9 100644
--- a/nuget-server/src/jetbrains/buildServer/nuget/server/runner/pack/PackRunType.java
+++ b/nuget-server/src/j... | true | true | public PropertiesProcessor getRunnerPropertiesProcessor() {
return new BasePropertiesProcessor() {
@Override
protected void checkProperties(@NotNull Map<String, String> map, @NotNull Collection<InvalidProperty> result) {
notEmpty(NUGET_PATH, "Path to nuget.exe must be specified", map, result);... | public PropertiesProcessor getRunnerPropertiesProcessor() {
return new BasePropertiesProcessor() {
@Override
protected void checkProperties(@NotNull Map<String, String> map, @NotNull Collection<InvalidProperty> result) {
notEmpty(NUGET_PATH, "Path to nuget.exe must be specified", map, result);... |
diff --git a/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/helpers/EventManager.java b/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/helpers/EventManager.java
index a01538058..30d2763b8 100644
--- a/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/helpers/EventManager.java
+... | false | true | public static List<String> raiseEventsOnDocumentSelected(DocumentModel document) {
List<String> eventsFired = new ArrayList<String>();
if (document == null) {
// XXX AT: kind of BBB, not sure why this was used like this
eventsFired = raiseEventsOnLocationSelectionChanged();
... | public static List<String> raiseEventsOnDocumentSelected(DocumentModel document) {
List<String> eventsFired = new ArrayList<String>();
if (document == null) {
// XXX AT: kind of BBB, not sure why this was used like this
eventsFired = raiseEventsOnLocationSelectionChanged();
... |
diff --git a/de.hswt.hrm.common/src/de/hswt/hrm/common/database/DatabaseFactory.java b/de.hswt.hrm.common/src/de/hswt/hrm/common/database/DatabaseFactory.java
index 37622aab..34686e1f 100644
--- a/de.hswt.hrm.common/src/de/hswt/hrm/common/database/DatabaseFactory.java
+++ b/de.hswt.hrm.common/src/de/hswt/hrm/common/dat... | false | true | public static Connection getConnection() throws DatabaseException {
// load mariadb driver
try {
Class.forName("org.mariadb.jdbc.Driver");
}
catch (ClassNotFoundException e) {
throw new DatabaseException("Database driver not found.", e);
}
// ... | public static Connection getConnection() throws DatabaseException {
// load mariadb driver
try {
Class.forName("org.mariadb.jdbc.Driver");
}
catch (ClassNotFoundException e) {
throw new DatabaseException("Database driver not found.", e);
}
Con... |
diff --git a/java/com/couchbase/lite/RevTreeTest.java b/java/com/couchbase/lite/RevTreeTest.java
index 4c9c564a..b58c998d 100644
--- a/java/com/couchbase/lite/RevTreeTest.java
+++ b/java/com/couchbase/lite/RevTreeTest.java
@@ -1,257 +1,257 @@
/**
* Original iOS version by Jens Alfke
* Ported to Android by Marty S... | true | true | public void testRevTreeChangeNotifications() throws CouchbaseLiteException {
final String DOCUMENT_ID = "MyDocId";
// add a document with a single (first) revision
final RevisionInternal rev = new RevisionInternal(DOCUMENT_ID, "1-one", false, database);
Map<String, Object> revProper... | public void testRevTreeChangeNotifications() throws CouchbaseLiteException {
final String DOCUMENT_ID = "MyDocId";
// add a document with a single (first) revision
final RevisionInternal rev = new RevisionInternal(DOCUMENT_ID, "1-one", false, database);
Map<String, Object> revProper... |
diff --git a/org/nyet/ecuxplot/ECUxPlot.java b/org/nyet/ecuxplot/ECUxPlot.java
index 12f4cb4..9019239 100644
--- a/org/nyet/ecuxplot/ECUxPlot.java
+++ b/org/nyet/ecuxplot/ECUxPlot.java
@@ -1,667 +1,680 @@
package org.nyet.ecuxplot;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
... | false | true | public void actionPerformed(ActionEvent event) {
AbstractButton source = (AbstractButton) (event.getSource());
if(source.getText().equals("Quit")) {
exitApp();
} else if(source.getText().equals("Export Chart")) {
if(this.chartPanel == null) {
JOptionPane.showMessageDialog(this, "Open a CSV first");
... | public void actionPerformed(ActionEvent event) {
AbstractButton source = (AbstractButton) (event.getSource());
if(source.getText().equals("Quit")) {
exitApp();
} else if(source.getText().equals("Export Chart")) {
if(this.chartPanel == null) {
JOptionPane.showMessageDialog(this, "Open a CSV first");
... |
diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/accounts/manageproxies/ProxyRelationshipSelectionCriteria.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/accounts/manageproxies/ProxyRelationshipSelectionCriteria.java
index d0d4f7d06..4f7389944 100644
--- a/webapp/src/edu/cornell/mannli... | true | true | public ProxyRelationshipSelectionCriteria(int relationshipsPerPage,
int pageIndex, ProxyRelationshipView viewBy, String searchTerm) {
if (relationshipsPerPage <= 0) {
throw new IllegalArgumentException("relationshipsPerPage "
+ "must be a positive integer, not " + relationshipsPerPage);
}
this.relatio... | public ProxyRelationshipSelectionCriteria(int relationshipsPerPage,
int pageIndex, ProxyRelationshipView viewBy, String searchTerm) {
if (relationshipsPerPage <= 0) {
throw new IllegalArgumentException("relationshipsPerPage "
+ "must be a positive integer, not " + relationshipsPerPage);
}
this.relatio... |
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index c5c77e11b..b1736203c 100644
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -1,1192 +1,1195 @@
/*
* Copyright (C) 2010 The Android Open Source Projec... | false | true | public void onCreate(Bundle data, Bundle restoreState) {
super.onCreate(data, restoreState);
mActionBar = mActivity.getGalleryActionBar();
mSelectionManager = new SelectionManager(mActivity, false);
mMenuExecutor = new MenuExecutor(mActivity, mSelectionManager);
mPhotoView =... | public void onCreate(Bundle data, Bundle restoreState) {
super.onCreate(data, restoreState);
mActionBar = mActivity.getGalleryActionBar();
mSelectionManager = new SelectionManager(mActivity, false);
mMenuExecutor = new MenuExecutor(mActivity, mSelectionManager);
mPhotoView =... |
diff --git a/runtime/ceylon/language/$array.java b/runtime/ceylon/language/$array.java
index 803a1fd0..f17c9e69 100644
--- a/runtime/ceylon/language/$array.java
+++ b/runtime/ceylon/language/$array.java
@@ -1,37 +1,37 @@
package ceylon.language;
import java.util.ArrayList;
import java.util.List;
import com.redh... | true | true | public static <Element> Array<? extends Element> $array(
@Name("elements")
@TypeInfo("ceylon.language.Iterable<ceylon.language.Nothing|Element>")
final ceylon.language.Iterable<? extends Element> elements) {
List<Element> list = new ArrayList<Element>();
java.lang.Object $tmp;
for (Iterator<? exte... | public static <Element> Array<? extends Element> $array(
@Name("elements")
@TypeInfo("ceylon.language.Iterable<ceylon.language.Nothing|Element>")
final ceylon.language.Iterable<? extends Element> elements) {
List<Element> list = new ArrayList<Element>();
java.lang.Object $tmp;
for (Iterator<? exte... |
diff --git a/src/uk/me/parabola/imgfmt/sys/Directory.java b/src/uk/me/parabola/imgfmt/sys/Directory.java
index 1342cd60..61f0b4e8 100644
--- a/src/uk/me/parabola/imgfmt/sys/Directory.java
+++ b/src/uk/me/parabola/imgfmt/sys/Directory.java
@@ -1,220 +1,220 @@
/*
* Copyright (C) 2006 Steve Ratcliffe
*
* This pro... | false | true | public void sync() throws IOException {
// The first entry can't really be written until the rest of the directory is
// so we have to step through once to calculate the size and then again
// to write it out.
int blocks = 0;
for (DirectoryEntry dir : entries.values()) {
Dirent ent = (Dirent) dir;
log... | public void sync() throws IOException {
// The first entry can't really be written until the rest of the directory is
// so we have to step through once to calculate the size and then again
// to write it out.
int blocks = 0;
for (DirectoryEntry dir : entries.values()) {
Dirent ent = (Dirent) dir;
log... |
diff --git a/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/MoveOperation.java b/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/MoveOperation.java
index a657da74ee..c390c49311 100644
--- a/bundles/servlets/post/src/main/java/org/apache/sling/servle... | true | true | protected void execute(List<Modification> changes, Item source,
String destParent, String destName) throws RepositoryException {
if (destName == null) {
destName = source.getName();
}
String sourcePath = source.getPath();
String destPath = destParent + "/" +... | protected void execute(List<Modification> changes, Item source,
String destParent, String destName) throws RepositoryException {
if (destName == null) {
destName = source.getName();
}
String sourcePath = source.getPath();
if (destParent.equals("/")) {
... |
diff --git a/src/com/adencraft2000/bouncysponge/BouncySpongePlayerListener.java b/src/com/adencraft2000/bouncysponge/BouncySpongePlayerListener.java
index 8c230df..9d6aa77 100644
--- a/src/com/adencraft2000/bouncysponge/BouncySpongePlayerListener.java
+++ b/src/com/adencraft2000/bouncysponge/BouncySpongePlayerListener.... | true | true | public void onPlayerMove(PlayerMoveEvent ev){
if (!ev.getFrom().getBlock().getLocation().equals(ev.getTo().getBlock().getLocation())) {
Player player = ev.getPlayer();
if (player.isOp() || player.hasPermission("bouncysponge.jump")) {
Block block = player.getLocation().getBlock().getRelative(BlockFace.DOWN)... | public void onPlayerMove(PlayerMoveEvent ev){
if (!ev.getFrom().getBlock().getLocation().equals(ev.getTo().getBlock().getLocation())) {
Player player = ev.getPlayer();
if (player.hasPermission("bouncysponge.jump")) {
Block block = player.getLocation().getBlock().getRelative(BlockFace.DOWN);
if (block.g... |
diff --git a/src/infinity/resource/are/AreResource.java b/src/infinity/resource/are/AreResource.java
index 779c604..ab7c09a 100644
--- a/src/infinity/resource/are/AreResource.java
+++ b/src/infinity/resource/are/AreResource.java
@@ -1,572 +1,573 @@
// Near Infinity - An Infinity Engine Browser and Editor
// Copyright... | true | true | protected int read(byte buffer[], int offset) throws Exception
{
list.add(new TextString(buffer, offset, 4, "Signature"));
TextString version = new TextString(buffer, offset + 4, 4, "Version");
list.add(version);
list.add(new ResourceRef(buffer, offset + 8, "WED resource", "WED"));
list.add(new ... | protected int read(byte buffer[], int offset) throws Exception
{
list.add(new TextString(buffer, offset, 4, "Signature"));
TextString version = new TextString(buffer, offset + 4, 4, "Version");
list.add(version);
list.add(new ResourceRef(buffer, offset + 8, "WED resource", "WED"));
list.add(new ... |
diff --git a/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/webservice/eap/EAPFromJavaTest.java b/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/webservice/eap/EAPFromJavaTest.java
index 18113d36f..1eaa9b45b 100644
--- a/tests/org.jboss.tools.ws.ui.bot.test/src/org/jbos... | true | true | public void testClient() {
Assert.assertTrue("service must exist", servicePassed);
clientHelper.createClient(deploymentHelper.getWSDLUrl(getWsProjectName(), getWsName()),
getWsClientProjectName(), getLevel(), "");
IProject p = ResourcesPlugin.getWorkspace().getRoot().getProject(g... | public void testClient() {
Assert.assertTrue("service must exist", servicePassed);
clientHelper.createClient(deploymentHelper.getWSDLUrl(getWsProjectName(), getWsName()),
getWsClientProjectName(), getLevel(), "");
IProject p = ResourcesPlugin.getWorkspace().getRoot().getProject(g... |
diff --git a/src/test/java/org/surfnet/cruncher/resource/CruncherResourceTest.java b/src/test/java/org/surfnet/cruncher/resource/CruncherResourceTest.java
index ace2c81..15bedbe 100644
--- a/src/test/java/org/surfnet/cruncher/resource/CruncherResourceTest.java
+++ b/src/test/java/org/surfnet/cruncher/resource/CruncherR... | true | true | public void getUniqueLogins() {
LocalDate start = new LocalDate(0L);
LocalDate end = new LocalDate(System.currentTimeMillis());
Response response = cruncherResource.getUniqueLogins(request, start.toDate().getTime(), end.toDate().getTime(), "idp1", "sp1");
List<LoginData> result = (List<LoginData>... | public void getUniqueLogins() {
LocalDate start = new LocalDate(0L);
LocalDate end = new LocalDate(System.currentTimeMillis());
Response response = cruncherResource.getUniqueLogins(request, start.toDate().getTime(), end.toDate().getTime(), "idp1", "sp1");
List<LoginData> result = (List<LoginData>... |
diff --git a/lib/src/main/java/com/github/fhirschmann/clozegen/lib/register/RegisterFactory.java b/lib/src/main/java/com/github/fhirschmann/clozegen/lib/register/RegisterFactory.java
index 7fe1073..f4cc029 100644
--- a/lib/src/main/java/com/github/fhirschmann/clozegen/lib/register/RegisterFactory.java
+++ b/lib/src/mai... | true | true | public static DescriptionRegister createDefaultDescriptionRegister()
throws ResourceInitializationException {
DescriptionRegister register = new DescriptionRegister();
DescriptionRegisterEntry entry = new DescriptionRegisterEntry("prepositions",
GapAnnotator.class,
... | public static DescriptionRegister createDefaultDescriptionRegister()
throws ResourceInitializationException {
DescriptionRegister register = new DescriptionRegister();
DescriptionRegisterEntry entry = new DescriptionRegisterEntry("prepositions",
GapAnnotator.class,
... |
diff --git a/src/me/neatmonster/spacemodule/management/VersionsManager.java b/src/me/neatmonster/spacemodule/management/VersionsManager.java
index 19e8f11..3e08647 100644
--- a/src/me/neatmonster/spacemodule/management/VersionsManager.java
+++ b/src/me/neatmonster/spacemodule/management/VersionsManager.java
@@ -1,89 +1... | true | true | public void setup() {
Console.progress("Checking for updates", 0);
final Configuration database = new Configuration(SpaceModule.DATABASE);
database.load();
final int lastChecked = database.getInt(PROJECT_NAME + ".LastChecked", 0);
final String developmentPage = Utilities.getC... | public void setup() {
Console.progress("Checking for updates", 0);
final Configuration database = new Configuration(SpaceModule.DATABASE);
database.load();
final int lastChecked = database.getInt(PROJECT_NAME + ".LastChecked", 0);
final String developmentPage = Utilities.getC... |
diff --git a/src/plugins/Freetalk/WoT/WoTMessageManager.java b/src/plugins/Freetalk/WoT/WoTMessageManager.java
index 57b62ca0..e209994b 100644
--- a/src/plugins/Freetalk/WoT/WoTMessageManager.java
+++ b/src/plugins/Freetalk/WoT/WoTMessageManager.java
@@ -1,357 +1,357 @@
/* This code is part of Freenet. It is distribut... | true | true | public synchronized void onMessageListFetchFailed(FTIdentity author, FreenetURI uri, FetchFailedMarker.Reason reason) {
WoTMessageList ghostList = new WoTMessageList(author, uri);
ghostList.initializeTransient(mFreetalk);
MessageList.MessageListFetchFailedMarker marker;
try {
getMessageList(ghostList.g... | public synchronized void onMessageListFetchFailed(FTIdentity author, FreenetURI uri, FetchFailedMarker.Reason reason) {
WoTMessageList ghostList = new WoTMessageList(author, uri);
ghostList.initializeTransient(mFreetalk);
MessageList.MessageListFetchFailedMarker marker;
try {
getMessageList(ghostList.g... |
diff --git a/org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/MarkerTest.java b/org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/MarkerTest.java
index 7b9e4e1c..62ca3727 100644
--- a/org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/MarkerTest.java
+++ b/org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/MarkerTest.java
@@ -1... | false | true | public void test() throws Exception {
// Import a project with bad pom.xml
IProject project = createExisting("markerTest", "projects/markers/testWorkflow");
waitForJobsToComplete();
assertNotNull("Expected not null project", project);
IMavenProjectFacade facade = MavenPlugin.getDefault().getMavenP... | public void test() throws Exception {
// Import a project with bad pom.xml
IProject project = createExisting("markerTest", "projects/markers/testWorkflow");
waitForJobsToComplete();
assertNotNull("Expected not null project", project);
IMavenProjectFacade facade = MavenPlugin.getDefault().getMavenP... |
diff --git a/src/com/wolvencraft/prison/mines/cmd/WarningCommand.java b/src/com/wolvencraft/prison/mines/cmd/WarningCommand.java
index 7bd30f8..2b042ee 100644
--- a/src/com/wolvencraft/prison/mines/cmd/WarningCommand.java
+++ b/src/com/wolvencraft/prison/mines/cmd/WarningCommand.java
@@ -1,100 +1,100 @@
package com.wo... | true | true | public boolean run(String[] args) {
if(args.length == 1) {
getHelp();
return true;
}
Mine curMine = PrisonMine.getCurMine();
if(curMine == null) {
Message.sendFormattedError(PrisonMine.getLanguage().ERROR_MINENOTSELECTED);
return false;
}
if(args[1].equalsIgnoreCase("toggle")) {
if(ar... | public boolean run(String[] args) {
if(args.length == 1) {
getHelp();
return true;
}
Mine curMine = PrisonMine.getCurMine();
if(curMine == null) {
Message.sendFormattedError(PrisonMine.getLanguage().ERROR_MINENOTSELECTED);
return false;
}
if(args[1].equalsIgnoreCase("toggle")) {
if(ar... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskActivityMonitor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskActivityMonitor.java
index 0df135fb6..7bc409f59 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskActivityMo... | true | true | public boolean parseInteractionEvent(InteractionEvent event, boolean isReloading) {
try {
if (event.getKind().equals(InteractionEvent.Kind.COMMAND)) {
if ((event.getDelta().equals(InteractionContextManager.ACTIVITY_DELTA_ACTIVATED))) {
AbstractTask activatedTask = taskList.getTask(event.getStructureHandl... | public boolean parseInteractionEvent(InteractionEvent event, boolean isReloading) {
try {
if (event.getKind().equals(InteractionEvent.Kind.COMMAND)) {
if ((event.getDelta().equals(InteractionContextManager.ACTIVITY_DELTA_ACTIVATED))) {
AbstractTask activatedTask = taskList.getTask(event.getStructureHandl... |
diff --git a/src/main/us/exultant/ahs/test/TestCase.java b/src/main/us/exultant/ahs/test/TestCase.java
index e164a98..8d72a41 100644
--- a/src/main/us/exultant/ahs/test/TestCase.java
+++ b/src/main/us/exultant/ahs/test/TestCase.java
@@ -1,450 +1,452 @@
/*
* Copyright 2010, 2011 Eric Myhre <http://exultant.us>
*
... | false | true | public synchronized void run() {
List<Unit> $units = getUnits(); // list is assumed immutable on pain of death or idiocy
$numUnits = $units.size();
$numUnitsRun = 0;
$numUnitsPassed = 0;
$numUnitsFailed = 0;
for (int $i = 0; $i < $units.size(); $i++) {
Unit $unit = $units.get($i);
if ($unit == ... | public synchronized void run() {
List<Unit> $units = getUnits(); // list is assumed immutable on pain of death or idiocy
$numUnits = $units.size();
$numUnitsRun = 0;
$numUnitsPassed = 0;
$numUnitsFailed = 0;
for (int $i = 0; $i < $units.size(); $i++) {
Unit $unit = $units.get($i);
if ($unit == ... |
diff --git a/src/com/programmingteam/qsync/QSync.java b/src/com/programmingteam/qsync/QSync.java
index 30a0157..c6ddce2 100644
--- a/src/com/programmingteam/qsync/QSync.java
+++ b/src/com/programmingteam/qsync/QSync.java
@@ -1,216 +1,216 @@
package com.programmingteam.qsync;
import java.io.File;
import java.io.IOE... | false | true | public QSync(File qsyncfile)
{
Document qsyncDoc =null;
try
{
qsyncDoc = DocumentBuilderFactory.newInstance()
.newDocumentBuilder()
.parse(qsyncfile);
}
catch(ParserConfigurationException ex) { System.err.println("QSync: error creating XML configuration"); }
catch(SAXException ex) { System.er... | public QSync(File qsyncfile)
{
Document qsyncDoc =null;
try
{
qsyncDoc = DocumentBuilderFactory.newInstance()
.newDocumentBuilder()
.parse(qsyncfile);
}
catch(ParserConfigurationException ex) { System.err.println("QSync: error creating XML configuration"); }
catch(SAXException ex) { System.er... |
diff --git a/src/org/geworkbench/parsers/GeoSeriesMatrixParser.java b/src/org/geworkbench/parsers/GeoSeriesMatrixParser.java
index b31595c7..14b98ae3 100644
--- a/src/org/geworkbench/parsers/GeoSeriesMatrixParser.java
+++ b/src/org/geworkbench/parsers/GeoSeriesMatrixParser.java
@@ -1,407 +1,403 @@
package org.geworkbe... | true | true | public DSMicroarraySet getMArraySet(File file)
throws InputFileFormatException, InterruptedIOException {
final int extSeperater = '.';
if (!checkFormat(file)) {
log
.info("SOFTFileFormat::getMArraySet - "
+ "Attempting to open a file that does not comply with the "
+ "GEO SOFT file forma... | public DSMicroarraySet getMArraySet(File file)
throws InputFileFormatException, InterruptedIOException {
final int extSeperater = '.';
if (!checkFormat(file)) {
log
.info("SOFTFileFormat::getMArraySet - "
+ "Attempting to open a file that does not comply with the "
+ "GEO SOFT file forma... |
diff --git a/src/com/android/settings/CryptKeeper.java b/src/com/android/settings/CryptKeeper.java
index 55435a031..3f35fa80e 100644
--- a/src/com/android/settings/CryptKeeper.java
+++ b/src/com/android/settings/CryptKeeper.java
@@ -1,595 +1,595 @@
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Lice... | false | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// If we are not encrypted or encrypting, get out quickly.
String state = SystemProperties.get("vold.decrypt");
if (!isDebugView() && ("".equals(state) || DECRYPT_STATE.equals(state))) {
... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// If we are not encrypted or encrypting, get out quickly.
String state = SystemProperties.get("vold.decrypt");
if (!isDebugView() && ("".equals(state) || DECRYPT_STATE.equals(state))) {
... |
diff --git a/JavaSource/org/unitime/timetable/dataexchange/StudentEnrollmentImport.java b/JavaSource/org/unitime/timetable/dataexchange/StudentEnrollmentImport.java
index a7be6a1c..f51e7882 100644
--- a/JavaSource/org/unitime/timetable/dataexchange/StudentEnrollmentImport.java
+++ b/JavaSource/org/unitime/timetable/dat... | true | true | public void loadXml(Element rootElement) throws Exception {
boolean trimLeadingZerosFromExternalId = "true".equals(ApplicationProperties.getProperty("tmtbl.data.exchange.trim.externalId","false"));
if (!rootElement.getName().equalsIgnoreCase("studentEnrollments"))
throw new Exception("Given XML fil... | public void loadXml(Element rootElement) throws Exception {
boolean trimLeadingZerosFromExternalId = "true".equals(ApplicationProperties.getProperty("tmtbl.data.exchange.trim.externalId","false"));
if (!rootElement.getName().equalsIgnoreCase("studentEnrollments"))
throw new Exception("Given XML fil... |
diff --git a/modules/org.pathvisio.desktop/src/org/pathvisio/desktop/GuiMain.java b/modules/org.pathvisio.desktop/src/org/pathvisio/desktop/GuiMain.java
index 846addaa..eb34a3da 100644
--- a/modules/org.pathvisio.desktop/src/org/pathvisio/desktop/GuiMain.java
+++ b/modules/org.pathvisio.desktop/src/org/pathvisio/deskto... | true | true | protected JFrame createAndShowGUI(final MainPanelStandalone mainPanel, final SwingEngine swingEngine)
{
//Create and set up the window.
final JFrame frame = new JFrame(Globals.APPLICATION_NAME);
// dispose on close, otherwise windowClosed event is not called.
frame.setDefaultCloseOperation(JFrame.DO_NOTHING_O... | protected JFrame createAndShowGUI(final MainPanelStandalone mainPanel, final SwingEngine swingEngine)
{
//Create and set up the window.
final JFrame frame = new JFrame(Globals.APPLICATION_NAME);
// dispose on close, otherwise windowClosed event is not called.
frame.setDefaultCloseOperation(JFrame.DO_NOTHING_O... |
diff --git a/src/streamfish/MainMenu.java b/src/streamfish/MainMenu.java
index 60e50c5..10dd381 100644
--- a/src/streamfish/MainMenu.java
+++ b/src/streamfish/MainMenu.java
@@ -1,597 +1,600 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package streamfish;
... | false | true | private void initComponents() {
jTextField1 = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
jCheckBox1 = new javax.swing.JCheckBox();
jButton5 = new javax.swing.JButton();
jTabbedPane1 = new javax.swing.JTabbedPane();
jPanel1 = new javax.swing.JPa... | private void initComponents() {
jTextField1 = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
jCheckBox1 = new javax.swing.JCheckBox();
jButton5 = new javax.swing.JButton();
jTabbedPane1 = new javax.swing.JTabbedPane();
jPanel1 = new javax.swing.JPa... |
diff --git a/src/ox/stackgame/ui/ProgramTextUI.java b/src/ox/stackgame/ui/ProgramTextUI.java
index afe7bfb..2bced12 100644
--- a/src/ox/stackgame/ui/ProgramTextUI.java
+++ b/src/ox/stackgame/ui/ProgramTextUI.java
@@ -1,231 +1,231 @@
/**
*
*/
package ox.stackgame.ui;
import java.util.ArrayList;
import java.ut... | false | true | private JScrollPane createScrollPane() {
// create a scroll pane
JScrollPane jsp = new JScrollPane();
jsp.setBounds(0, 0, ApplicationFrame.CENTER_PANEL_WIDTH, ApplicationFrame.PROGRAMTEXTUI_HEIGHT);
jsp.setBorder(new EmptyBorder(5, 0, 5, 0));
jsp.setBackground(ApplicationFram... | private JScrollPane createScrollPane() {
// create a scroll pane
JScrollPane jsp = new JScrollPane();
jsp.setBounds(0, 0, ApplicationFrame.CENTER_PANEL_WIDTH, ApplicationFrame.PROGRAMTEXTUI_HEIGHT);
jsp.setBorder(new EmptyBorder(5, 0, 5, 0));
jsp.setBackground(ApplicationFram... |
diff --git a/src/au/gov/naa/digipres/xena/plugin/html/HtmlView.java b/src/au/gov/naa/digipres/xena/plugin/html/HtmlView.java
index 90b91e0f..888647bd 100644
--- a/src/au/gov/naa/digipres/xena/plugin/html/HtmlView.java
+++ b/src/au/gov/naa/digipres/xena/plugin/html/HtmlView.java
@@ -1,136 +1,136 @@
package au.gov.naa.d... | true | true | void externalButton_actionPerformed(ActionEvent e) {
File output = null;
try {
output = File.createTempFile("output", ".html");
output.deleteOnExit();
String ENCODING = "UTF-8";
OutputStream os = new FileOutputStream(output);
XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat());
Ou... | void externalButton_actionPerformed(ActionEvent e) {
File output = null;
try {
output = File.createTempFile("output", ".html");
output.deleteOnExit();
String ENCODING = "UTF-8";
OutputStream os = new FileOutputStream(output);
XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat());
Ou... |
diff --git a/h2/src/test/org/h2/test/TestBase.java b/h2/src/test/org/h2/test/TestBase.java
index e6fb0f57f..43d763a92 100644
--- a/h2/src/test/org/h2/test/TestBase.java
+++ b/h2/src/test/org/h2/test/TestBase.java
@@ -1,1485 +1,1485 @@
/*
* Copyright 2004-2013 H2 Group. Multiple-Licensed under the H2 License,
* Ver... | true | true | protected String getURL(String name, boolean admin) {
String url;
if (name.startsWith("jdbc:")) {
if (config.mvStore) {
name = addOption(name, "MV_STORE", "true");
}
return name;
}
if (config.memory) {
name = "mem:" + na... | protected String getURL(String name, boolean admin) {
String url;
if (name.startsWith("jdbc:")) {
if (config.mvStore) {
name = addOption(name, "MV_STORE", "true");
}
return name;
}
if (config.memory) {
name = "mem:" + na... |
diff --git a/main/java/org/archive/crawler/hadoop/CollectionIndexItemSearcher.java b/main/java/org/archive/crawler/hadoop/CollectionIndexItemSearcher.java
index d05082a..8cba88c 100644
--- a/main/java/org/archive/crawler/hadoop/CollectionIndexItemSearcher.java
+++ b/main/java/org/archive/crawler/hadoop/CollectionIndexI... | false | true | public FileStatus[] searchItems(String itemid) throws IOException {
List<FileStatus> result = null;
URI uri;
try {
uri = buildSearchURI(itemid);
LOG.debug("search uri=" + uri);
} catch (URISyntaxException ex) {
throw new IOException("failed to build URI for itemid=" + itemid, ex);
... | public FileStatus[] searchItems(String itemid) throws IOException {
List<FileStatus> result = null;
URI uri;
try {
uri = buildSearchURI(itemid);
LOG.debug("search uri=" + uri);
} catch (URISyntaxException ex) {
throw new IOException("failed to build URI for itemid=" + itemid, ex);
... |
diff --git a/domino/src/edu/rpi/cct/bedework/caldav/DominoSysIntfImpl.java b/domino/src/edu/rpi/cct/bedework/caldav/DominoSysIntfImpl.java
index 9e8c11d..1375bf5 100644
--- a/domino/src/edu/rpi/cct/bedework/caldav/DominoSysIntfImpl.java
+++ b/domino/src/edu/rpi/cct/bedework/caldav/DominoSysIntfImpl.java
@@ -1,807 +1,80... | true | true | public BwFreeBusy getFreeBusy(BwCalendar cal,
String account,
BwDateTime start,
BwDateTime end) throws WebdavException {
/* Create a url something like:
* http://t1.egenconsulting.com:80/servlet/Freetime/John?sta... | public BwFreeBusy getFreeBusy(BwCalendar cal,
String account,
BwDateTime start,
BwDateTime end) throws WebdavException {
/* Create a url something like:
* http://t1.egenconsulting.com:80/servlet/Freetime/John?sta... |
diff --git a/services/GORFX/src/de/zib/gndms/GORFX/action/StagedTransferORQCalculator.java b/services/GORFX/src/de/zib/gndms/GORFX/action/StagedTransferORQCalculator.java
index 24e9f4ae..3a8357fd 100644
--- a/services/GORFX/src/de/zib/gndms/GORFX/action/StagedTransferORQCalculator.java
+++ b/services/GORFX/src/de/zib/g... | true | true | public TransientContract createOffer() throws Exception {
// create provider staging orq using this this offer type
AbstractProviderStageInORQCalculator psi_calc = ( AbstractProviderStageInORQCalculator )
getSystem().getInstanceDir().newORQCalculator( getSystem().getEntityManagerFactory... | public TransientContract createOffer() throws Exception {
// create provider staging orq using this this offer type
AbstractProviderStageInORQCalculator psi_calc = AbstractProviderStageInORQCalculator.class.cast(
getSystem().getInstanceDir().newORQCalculator( getSystem().getEntityManage... |
diff --git a/herald-sso/herald-sso-api/src/main/java/cn/edu/seu/herald/sso/domain/ConcreteSsoContext.java b/herald-sso/herald-sso-api/src/main/java/cn/edu/seu/herald/sso/domain/ConcreteSsoContext.java
index beeb0da..9b5bd10 100644
--- a/herald-sso/herald-sso-api/src/main/java/cn/edu/seu/herald/sso/domain/ConcreteSsoCon... | true | true | public Enumeration<String> getAttributeNames() {
Stack<String> stack = new Stack<String>();
Enumeration<String> sessioEnum = session.getAttributeNames();
while (sessioEnum.hasMoreElements()) {
String name = sessioEnum.nextElement();
boolean isSsoPropertyNode = (name !... | public Enumeration<String> getAttributeNames() {
Stack<String> stack = new Stack<String>();
Enumeration<String> sessioEnum = session.getAttributeNames();
while (sessioEnum.hasMoreElements()) {
String name = sessioEnum.nextElement();
boolean isSsoPropertyNode = (name !... |
diff --git a/src/edu/pitt/isp/sverchkov/math/DoubleIterable.java b/src/edu/pitt/isp/sverchkov/math/DoubleIterable.java
index 80a65e4..a78cc4c 100644
--- a/src/edu/pitt/isp/sverchkov/math/DoubleIterable.java
+++ b/src/edu/pitt/isp/sverchkov/math/DoubleIterable.java
@@ -1,58 +1,58 @@
/*
* To change this template, choo... | true | true | public Double next() {
T next = iterator.next();
try {
return (Double) next.getClass().getMethod( "doubleValue" ).invoke(next );
} catch ( IllegalAccessException | IllegalArgumentException | InvocationTargetException | NoSuchMethodException | SecurityException... | public Double next() {
T next = iterator.next();
try {
return (Double) ( next.getClass().getMethod( "doubleValue" ).invoke( next ) );
} catch ( IllegalAccessException | IllegalArgumentException | InvocationTargetException | NoSuchMethodException | SecurityExce... |
diff --git a/src/main/java/org/thymeleaf/processor/attr/AbstractMarkupRemovalAttrProcessor.java b/src/main/java/org/thymeleaf/processor/attr/AbstractMarkupRemovalAttrProcessor.java
index 0ecf9b22..3d49bf93 100755
--- a/src/main/java/org/thymeleaf/processor/attr/AbstractMarkupRemovalAttrProcessor.java
+++ b/src/main/jav... | true | true | public final ProcessorResult processAttribute(final Arguments arguments, final Element element, final String attributeName) {
final RemovalType removalType = getRemovalType(arguments, element, attributeName);
if (removalType == null) {
return ProcessorResult.OK;
}
swit... | public final ProcessorResult processAttribute(final Arguments arguments, final Element element, final String attributeName) {
final RemovalType removalType = getRemovalType(arguments, element, attributeName);
if (removalType == null) {
return ProcessorResult.OK;
}
swit... |
diff --git a/xbean-reflect/src/main/java/org/apache/xbean/recipe/MapRecipe.java b/xbean-reflect/src/main/java/org/apache/xbean/recipe/MapRecipe.java
index 88b09409..9c88c466 100644
--- a/xbean-reflect/src/main/java/org/apache/xbean/recipe/MapRecipe.java
+++ b/xbean-reflect/src/main/java/org/apache/xbean/recipe/MapRecip... | true | true | protected Object internalCreate(Type expectedType, boolean lazyRefAllowed) throws ConstructionException {
Class mapType = getType(expectedType);
if (!RecipeHelper.hasDefaultConstructor(mapType)) {
throw new ConstructionException("Type does not have a default constructor " + mapType.getN... | protected Object internalCreate(Type expectedType, boolean lazyRefAllowed) throws ConstructionException {
Class mapType = getType(expectedType);
if (!RecipeHelper.hasDefaultConstructor(mapType)) {
throw new ConstructionException("Type does not have a default constructor " + mapType.getN... |
diff --git a/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobArmory/EMAListener.java b/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobArmory/EMAListener.java
index c95ef2e..99f7d54 100644
--- a/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobArmory/EMAListener.java
+++ b/EasyMobA... | false | true | public void OnInventoryCloseEvent(InventoryCloseEvent event) {
if(Armoryenabled.get(event.getPlayer()) != null){ if(Armoryenabled.get(event.getPlayer())) {
if(event.getInventory().getName().equals("zombieinv")) {
Inventory i = event.getInventory();
Zombie z = (Zombie) PlayerMobDataMap.get(event.getPlayer());... | public void OnInventoryCloseEvent(InventoryCloseEvent event) {
if(Armoryenabled.get(event.getPlayer()) != null){ if(Armoryenabled.get(event.getPlayer())) {
if(event.getInventory().getName().equals("zombieinv")) {
Inventory i = event.getInventory();
Zombie z = (Zombie) PlayerMobDataMap.get(event.getPlayer());... |
diff --git a/servers/sip-servlets/sip-servlets-jboss5/src/main/java/org/jboss/web/tomcat/service/deployers/TomcatConvergedDeployment.java b/servers/sip-servlets/sip-servlets-jboss5/src/main/java/org/jboss/web/tomcat/service/deployers/TomcatConvergedDeployment.java
index 2fe6038e7..3dc704241 100644
--- a/servers/sip-ser... | true | true | protected void performDeployInternal(String hostName,
WebApplication webApp, String warUrl) throws Exception {
JBossWebMetaData metaData = webApp.getMetaData();
String ctxPath = metaData.getContextRoot();
if (ctxPath.equals("/") || ctxPath.equals("/ROOT")
|| ctxPath.equals("")) {
log.debug("deploy roo... | protected void performDeployInternal(String hostName,
WebApplication webApp, String warUrl) throws Exception {
JBossWebMetaData metaData = webApp.getMetaData();
String ctxPath = metaData.getContextRoot();
if (ctxPath.equals("/") || ctxPath.equals("/ROOT")
|| ctxPath.equals("")) {
log.debug("deploy roo... |
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/change/PostReview.java b/gerrit-server/src/main/java/com/google/gerrit/server/change/PostReview.java
index bc3c1614c..5011f31bf 100644
--- a/gerrit-server/src/main/java/com/google/gerrit/server/change/PostReview.java
+++ b/gerrit-server/src/main/java/com... | true | true | private void checkLabels(RevisionResource revision, boolean strict,
Map<String, Short> labels) throws BadRequestException, AuthException {
ChangeControl ctl = revision.getControl();
Iterator<Map.Entry<String, Short>> itr = labels.entrySet().iterator();
while (itr.hasNext()) {
Map.Entry<String,... | private void checkLabels(RevisionResource revision, boolean strict,
Map<String, Short> labels) throws BadRequestException, AuthException {
ChangeControl ctl = revision.getControl();
Iterator<Map.Entry<String, Short>> itr = labels.entrySet().iterator();
while (itr.hasNext()) {
Map.Entry<String,... |
diff --git a/src/DistGrep/ConnectionHandler.java b/src/DistGrep/ConnectionHandler.java
index f8fb630..88de458 100644
--- a/src/DistGrep/ConnectionHandler.java
+++ b/src/DistGrep/ConnectionHandler.java
@@ -1,219 +1,225 @@
package DistGrep;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.I... | true | true | public void run() {
System.out.println("[" + this.getClass().toString() + "]: Waiting to handle accepted connections: Started");
while(shouldRun) {
// Poll the connection queue for an accepted connection.
Socket clientSocket = null;
InetAddress clientAddress = ... | public void run() {
System.out.println("[" + this.getClass().toString() + "]: Waiting to handle accepted connections: Started");
while(shouldRun) {
// Poll the connection queue for an accepted connection.
Socket clientSocket = null;
InetAddress clientAddress = ... |
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.java b/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.java
index aa6705418..1670b474d 100644
--- a/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerFactory.java
+++ b/src/main/java/com/f... | true | true | protected void addBeanProps(DeserializationContext ctxt,
BeanDescription beanDesc, BeanDeserializerBuilder builder)
throws JsonMappingException
{
final SettableBeanProperty[] creatorProps =
builder.getValueInstantiator().getFromObjectArguments(ctxt.getConfig());
... | protected void addBeanProps(DeserializationContext ctxt,
BeanDescription beanDesc, BeanDeserializerBuilder builder)
throws JsonMappingException
{
final SettableBeanProperty[] creatorProps =
builder.getValueInstantiator().getFromObjectArguments(ctxt.getConfig());
... |
diff --git a/webapp/src/test/java/test/unit/org/testinfected/petstore/dispatch/RoutingTableTest.java b/webapp/src/test/java/test/unit/org/testinfected/petstore/dispatch/RoutingTableTest.java
index 3d3d17f5..4fd0247e 100644
--- a/webapp/src/test/java/test/unit/org/testinfected/petstore/dispatch/RoutingTableTest.java
+++... | true | true | @Test public void
dispatchesToFirstRouteAppropriateRoute() throws Exception {
context.checking(new Expectations() {{
allowing(preferredRoute).matches(with(same(request))); will(returnValue(true));
allowing(alternateRoute).matches(with(same(request))); will(returnValue(true));
... | @Test public void
dispatchesToFirstAppropriateRoute() throws Exception {
context.checking(new Expectations() {{
allowing(preferredRoute).matches(with(same(request))); will(returnValue(true));
allowing(alternateRoute).matches(with(same(request))); will(returnValue(true));
... |
diff --git a/src/main/java/org/basex/tests/w3c/W3CTS.java b/src/main/java/org/basex/tests/w3c/W3CTS.java
index 5680cb4e8..3ab2254c8 100644
--- a/src/main/java/org/basex/tests/w3c/W3CTS.java
+++ b/src/main/java/org/basex/tests/w3c/W3CTS.java
@@ -1,804 +1,804 @@
package org.basex.tests.w3c;
import static org.basex.co... | true | true | private boolean parse(final Nodes root) throws QueryException, IOException {
final String pth = text("@FilePath", root);
final String outname = text("@name", root);
if(single != null && !outname.startsWith(single)) return true;
final Performance perf = new Performance();
if(verbose) Util.out("- "... | private boolean parse(final Nodes root) throws QueryException, IOException {
final String pth = text("@FilePath", root);
final String outname = text("@name", root);
if(single != null && !outname.startsWith(single)) return true;
final Performance perf = new Performance();
if(verbose) Util.out("- "... |
diff --git a/src/main/java/net/aufdemrand/denizen/utilities/GetRequirements.java b/src/main/java/net/aufdemrand/denizen/utilities/GetRequirements.java
index da4825646..f37ba8b0c 100644
--- a/src/main/java/net/aufdemrand/denizen/utilities/GetRequirements.java
+++ b/src/main/java/net/aufdemrand/denizen/utilities/GetRequi... | true | true | public boolean check(String theScript, LivingEntity theEntity, boolean isPlayer) throws RequirementMissingException {
String requirementMode = plugin.getScripts().getString(theScript + ".Requirements.Mode");
List<String> requirementList = plugin.getScripts().getStringList(theScript + ".Requirements.List");
/* ... | public boolean check(String theScript, LivingEntity theEntity, boolean isPlayer) throws RequirementMissingException {
String requirementMode = plugin.getScripts().getString(theScript + ".Requirements.Mode");
List<String> requirementList = plugin.getScripts().getStringList(theScript + ".Requirements.List");
/* ... |
diff --git a/src/dgu/bufsizing/control/EventProcessor.java b/src/dgu/bufsizing/control/EventProcessor.java
index 17e1569..4bda173 100644
--- a/src/dgu/bufsizing/control/EventProcessor.java
+++ b/src/dgu/bufsizing/control/EventProcessor.java
@@ -1,199 +1,202 @@
package dgu.bufsizing.control;
import dgu.bufsizing.Bot... | false | true | public static void handleEventCapPacket( int routerIndex, byte[] buf ) {
// always assume first bottleneck for now
BottleneckLink b = DemoGUI.me.demo.getRouters().get(routerIndex).getBottleneckLinkAt(0);
// start processing at byte 1 (byte 0 isn't too interesting)
int index ... | public static void handleEventCapPacket( int routerIndex, byte[] buf ) {
// always assume first bottleneck for now
BottleneckLink b = DemoGUI.me.demo.getRouters().get(routerIndex).getBottleneckLinkAt(0);
// start processing at byte 1 (byte 0 isn't too interesting)
int index ... |
diff --git a/P2aktuell/src/ro/inf/p2/uebung03/Pali.java b/P2aktuell/src/ro/inf/p2/uebung03/Pali.java
index d89c892..1022af1 100644
--- a/P2aktuell/src/ro/inf/p2/uebung03/Pali.java
+++ b/P2aktuell/src/ro/inf/p2/uebung03/Pali.java
@@ -1,23 +1,22 @@
package ro.inf.p2.uebung03;
/**
* Created with IntelliJ IDEA.
* U... | true | true | public static String filter(String s) {
s = s.toLowerCase();
s = s.replaceAll("[^a-z]+", "");
return s;
}
| public static String filter(String s) {
s = s.toLowerCase().replaceAll("[^a-z]+", "");
return s;
}
|
diff --git a/library/src/main/java/org/deri/any23/extractor/rdfa/RDFaExtractor.java b/library/src/main/java/org/deri/any23/extractor/rdfa/RDFaExtractor.java
index 09b1126e..374c1047 100644
--- a/library/src/main/java/org/deri/any23/extractor/rdfa/RDFaExtractor.java
+++ b/library/src/main/java/org/deri/any23/extractor/r... | true | true | public void run(Document in, URI documentURI, ExtractionResult out)
throws IOException, ExtractionException {
StringWriter buffer = new StringWriter();
getXSLT().applyTo(in, buffer);
// System.out.println(buffer);
try {
RDFParser parser = new RDFXMLParser();
parser.setRDFHandler(new RDFHandlerAdapter(ou... | public void run(Document in, URI documentURI, ExtractionResult out)
throws IOException, ExtractionException {
StringWriter buffer = new StringWriter();
getXSLT().applyTo(in, buffer);
// System.out.println(buffer);
try {
RDFParser parser = new RDFXMLParser();
parser.setRDFHandler(new RDFHandlerAdapter(ou... |
diff --git a/src/org/opensolaris/opengrok/index/IndexDatabase.java b/src/org/opensolaris/opengrok/index/IndexDatabase.java
index 181017c..95c8255 100644
--- a/src/org/opensolaris/opengrok/index/IndexDatabase.java
+++ b/src/org/opensolaris/opengrok/index/IndexDatabase.java
@@ -1,614 +1,615 @@
/*
* CDDL HEADER START
... | true | true | public synchronized void update() throws Exception {
interrupted = false;
try {
writer = new IndexWriter(indexDirectory, AnalyzerGuru.getAnalyzer());
String root;
File sourceRoot;
if (project != null) {
root = project.getPath();
... | public synchronized void update() throws Exception {
interrupted = false;
try {
writer = new IndexWriter(indexDirectory, AnalyzerGuru.getAnalyzer());
writer.setMaxFieldLength(RuntimeEnvironment.getInstance().getIndexWordLimit());
String root;
File sour... |
diff --git a/src/java/org/apache/commons/codec/language/bm/PhoneticEngine.java b/src/java/org/apache/commons/codec/language/bm/PhoneticEngine.java
index b3681c2e..89960592 100644
--- a/src/java/org/apache/commons/codec/language/bm/PhoneticEngine.java
+++ b/src/java/org/apache/commons/codec/language/bm/PhoneticEngine.ja... | false | true | public String encode(String input, final Languages.LanguageSet languageSet) {
final List<Rule> rules = Rule.getInstance(this.nameType, RuleType.RULES, languageSet);
final List<Rule> finalRules1 = Rule.getInstance(this.nameType, this.ruleType, "common");
final List<Rule> finalRules2 = Rule.ge... | public String encode(String input, final Languages.LanguageSet languageSet) {
final List<Rule> rules = Rule.getInstance(this.nameType, RuleType.RULES, languageSet);
final List<Rule> finalRules1 = Rule.getInstance(this.nameType, this.ruleType, "common");
final List<Rule> finalRules2 = Rule.ge... |
diff --git a/cdm/src/main/java/ucar/nc2/geotiff/GeotiffWriter.java b/cdm/src/main/java/ucar/nc2/geotiff/GeotiffWriter.java
index 30db83c33..43c8b8626 100644
--- a/cdm/src/main/java/ucar/nc2/geotiff/GeotiffWriter.java
+++ b/cdm/src/main/java/ucar/nc2/geotiff/GeotiffWriter.java
@@ -1,643 +1,643 @@
// $Id:GeotiffWriter.j... | true | true | public void writeGrid(GridDatatype grid, Array data, boolean greyScale, double xStart, double yStart, double xInc, double yInc, int imageNumber) throws IOException {
int nextStart = 0;
GridCoordSystem gcs = grid.getCoordinateSystem();
// get rid of this when all projections are implemented
if (!gcs.i... | public void writeGrid(GridDatatype grid, Array data, boolean greyScale, double xStart, double yStart, double xInc, double yInc, int imageNumber) throws IOException {
int nextStart = 0;
GridCoordSystem gcs = grid.getCoordinateSystem();
// get rid of this when all projections are implemented
if (!gcs.i... |
diff --git a/src/test/java/org/got5/tapestry5/jquery/test/CarouselTest.java b/src/test/java/org/got5/tapestry5/jquery/test/CarouselTest.java
index 6a848f05..c48c6de8 100644
--- a/src/test/java/org/got5/tapestry5/jquery/test/CarouselTest.java
+++ b/src/test/java/org/got5/tapestry5/jquery/test/CarouselTest.java
@@ -1,57 ... | false | true | public void testCarousel() {
open("/test/carouselpage");
waitForPageToLoad();
//Content test
assertEquals(getText("css=#zoneContainer span"), "Click on the big white flower of the complex carousel:", "The page does not seem to be fully loaded");
//Carousel control test
final int initPosition = (Integer) ge... | public void testCarousel() {
open("/test/carouselpage");
waitForPageToLoad();
//Content test
assertEquals(getText("css=#zoneContainer span"), "Click on the big white flower of the complex carousel:", "The page does not seem to be fully loaded");
//Carousel control test
final int initPosition = (Integer) ge... |
diff --git a/recipes/src/main/java/ru/taskurotta/recipes/wait/decider/WaitDeciderImpl.java b/recipes/src/main/java/ru/taskurotta/recipes/wait/decider/WaitDeciderImpl.java
index 21090f55..f9149ea0 100644
--- a/recipes/src/main/java/ru/taskurotta/recipes/wait/decider/WaitDeciderImpl.java
+++ b/recipes/src/main/java/ru/ta... | true | true | public void start() {
arbiter.notify("start");
Collection<Promise<Integer>> data = new ArrayList<>();
//data[0] = worker.prepare();
for (int i = 0; i < 3; i++) {
data.add(worker.generate());
}
async.waitForStart(data);
}
| public void start() {
arbiter.notify("start");
Collection<Promise<Integer>> data = new ArrayList<Promise<Integer>>();
//data[0] = worker.prepare();
for (int i = 0; i < 3; i++) {
data.add(worker.generate());
}
async.waitForStart(data);
}
|
diff --git a/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobManager.java b/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobManager.java
index 5ed20d27f..a30192bdd 100644
--- a/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobManager.java
+++ b/f... | true | true | public DocumentSetAndFlags getNextCleanableDocuments(int maxCount, long currentTime)
throws ManifoldCFException
{
// The query will be built here, because it joins the jobs table against the jobqueue
// table.
//
// This query must only pick up documents that are not active in any job and
//... | public DocumentSetAndFlags getNextCleanableDocuments(int maxCount, long currentTime)
throws ManifoldCFException
{
// The query will be built here, because it joins the jobs table against the jobqueue
// table.
//
// This query must only pick up documents that are not active in any job and
//... |
diff --git a/api/src/main/java/com/cloudbees/sdk/UserConfiguration.java b/api/src/main/java/com/cloudbees/sdk/UserConfiguration.java
index f72c276..14e55d0 100644
--- a/api/src/main/java/com/cloudbees/sdk/UserConfiguration.java
+++ b/api/src/main/java/com/cloudbees/sdk/UserConfiguration.java
@@ -1,189 +1,191 @@
packag... | true | true | public Properties create(int credentialType, Map<String, String> paramaters) {
Properties properties = new Properties();
System.out.println();
System.out.println("You have not created a CloudBees configuration profile, let's create one now...");
try {
String endPoint = p... | public Properties create(int credentialType, Map<String, String> paramaters) {
Properties properties = new Properties();
properties.setProperty("bees.api.url.us", "https://api.cloudbees.com/api");
properties.setProperty("bees.api.url.eu", "https://api-eu.cloudbees.com/api");
System.o... |
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/index/SerializableDataSetNumberIndex.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/index/SerializableDataSetNumberIndex.java
index bf2b2113d..aad143959 100644
--- a/plugins/org.eclipse.birt.data/src/org/eclipse... | true | true | public void close( ) throws DataException
{
try
{
List<T> keyList = new LinkedList<T>( );
keyList.addAll( this.numberAndIndex.keySet( ) );
if ( keyList.size( ) == 0 )
{
output.close( );
return;
}
Collections.sort( keyList, new NumberComparator<T>( ) );
int segs = ( keyList.size( ) - ... | public void close( ) throws DataException
{
try
{
List<T> keyList = new LinkedList<T>( );
keyList.addAll( this.numberAndIndex.keySet( ) );
if ( keyList.size( ) == 0 )
{
IOUtil.writeInt( output, 0 );
output.close( );
return;
}
Collections.sort( keyList, new NumberComparator<T>( ) );
... |
diff --git a/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/parts/SendMediatorEditPart.java b/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/parts/SendMediatorEditPart.... | true | true | protected boolean addFixedChild(EditPart childEditPart) {
if (childEditPart instanceof SendMediatorDescriptionEditPart) {
((SendMediatorDescriptionEditPart) childEditPart).setLabel(getPrimaryShape()
.getFigureSendMediatorPropertyValue());
return true;
}
if (childEditPart instanceof SendMediatorInputC... | protected boolean addFixedChild(EditPart childEditPart) {
if (childEditPart instanceof SendMediatorDescriptionEditPart) {
((SendMediatorDescriptionEditPart) childEditPart).setLabel(getPrimaryShape()
.getFigureSendMediatorPropertyValue());
return true;
}
if (childEditPart instanceof SendMediatorInputC... |
diff --git a/src/java/TestFilter.java b/src/java/TestFilter.java
index 936ced5..2584926 100644
--- a/src/java/TestFilter.java
+++ b/src/java/TestFilter.java
@@ -1,116 +1,116 @@
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.sq... | true | true | public static void main(String[] args) throws Exception {
FilterApplier command = new FilterWriteApplier("2013-04-10_13:54", "", "FilterTest.txt" );
System.out.println( command.execute() );
fileCompare("FilterTest.txt", "FilterPass.txt");
Connection conn = null;
Statement stmt = null;
try {
Cla... | public static void main(String[] args) throws Exception {
FilterApplier command = new FilterWriteApplier("2013-04-10_13:54", "", "FilterTest.txt" );
System.out.println( command.execute() );
fileCompare("FilterTest.txt", "FilterPass.txt");
Connection conn = null;
Statement stmt = null;
try {
Cla... |
diff --git a/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/services/AWSSecurityGroupClientLiveTest.java b/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/services/AWSSecurityGroupClientLiveTest.java
index d043a20df..57dc880e9 100644
--- a/providers/aws-ec2/src/test/java/org/jclouds/aws/ec2/services/AWSSecurit... | true | true | void testAuthorizeSecurityGroupIngressIpPermission() throws InterruptedException {
final String group1Name = PREFIX + "ingress11";
String group2Name = PREFIX + "ingress12";
cleanupAndSleep(group2Name);
cleanupAndSleep(group1Name);
try {
String group1Id = AWSSecurityGroupClient.... | void testAuthorizeSecurityGroupIngressIpPermission() throws InterruptedException {
final String group1Name = PREFIX + "ingress11";
String group2Name = PREFIX + "ingress12";
cleanupAndSleep(group2Name);
cleanupAndSleep(group1Name);
try {
String group1Id = AWSSecurityGroupClient.... |
diff --git a/project-tests/src/com.phdroid/smsb/activity/BlockedSmsListActivityTest.java b/project-tests/src/com.phdroid/smsb/activity/BlockedSmsListActivityTest.java
index 8b8d48a..d5e7b57 100644
--- a/project-tests/src/com.phdroid/smsb/activity/BlockedSmsListActivityTest.java
+++ b/project-tests/src/com.phdroid/smsb/... | true | true | private void deleteFirstMessage() {
final IMessageProvider provider = MessageProviderHelper.getMessageProvider(this.getActivity().getContentResolver());
mActivity.runOnUiThread(new Runnable() {
public void run() {
provider.delete(0);
mAdapter.notifyDataSetChanged();
}
});
getInstrumentation().wai... | private void deleteFirstMessage() {
final IMessageProvider provider = MessageProviderHelper.getMessageProvider(this.getActivity(), this.getActivity(), this.getActivity().getContentResolver());
mActivity.runOnUiThread(new Runnable() {
public void run() {
provider.delete(0);
mAdapter.notifyDataSetChanged(... |
diff --git a/org.dawb.common.python/src/org/dawb/common/python/rpc/PythonService.java b/org.dawb.common.python/src/org/dawb/common/python/rpc/PythonService.java
index 4a99a0c8..c7cf6b10 100644
--- a/org.dawb.common.python/src/org/dawb/common/python/rpc/PythonService.java
+++ b/org.dawb.common.python/src/org/dawb/common... | true | true | public static synchronized PythonService openConnection(final String pythonInterpreter) throws Exception {
final PythonService service = new PythonService();
final String scisoftRpcPort = VariablesPlugin.getDefault().getStringVariableManager().performStringSubstitution("${scisoft_rpc_port}");
final ... | public static synchronized PythonService openConnection(final String pythonInterpreter) throws Exception {
final PythonService service = new PythonService();
String scisoftRpcPort;
try {
// TODO Ensure plotting is started programatically in the GUI.
scisoftRpcPort = VariablesPlugin.getDe... |
diff --git a/3rdPartyServices/StudentServices/RFID/RFIDClient3pApp/src/main/java/ac/hw/rfid/client/RfidClient.java b/3rdPartyServices/StudentServices/RFID/RFIDClient3pApp/src/main/java/ac/hw/rfid/client/RfidClient.java
index 95548314..1194032e 100644
--- a/3rdPartyServices/StudentServices/RFID/RFIDClient3pApp/src/main/... | true | true | public void handleInternalEvent(InternalEvent event) {
ServiceMgmtEvent slmEvent = (ServiceMgmtEvent) event.geteventInfo();
if (slmEvent.getBundleSymbolName().equalsIgnoreCase("ac.hw.display.DisplayPortalClientApp")){
this.logging.debug("Received SLM event for my bundle");
if (slmEvent.getEventType().equal... | public void handleInternalEvent(InternalEvent event) {
ServiceMgmtEvent slmEvent = (ServiceMgmtEvent) event.geteventInfo();
if (slmEvent.getBundleSymbolName().equalsIgnoreCase("ac.hw.rfid.RFIDClientApp")){
this.logging.debug("Received SLM event for my bundle");
if (slmEvent.getEventType().equals(ServiceMgm... |
diff --git a/src/lab3/Main.java b/src/lab3/Main.java
index 902f8e9..53ad9f1 100644
--- a/src/lab3/Main.java
+++ b/src/lab3/Main.java
@@ -1,49 +1,56 @@
package lab3;
import static fj.data.List.list;
/**
* Main class with demo {@link Plane} and {@link AirlineCompany} usage
*/
public class Main {
public s... | false | true | public static void main(String[] args) {
// 1. Create planes using builders
// name, capacity, load, flightDistance, fuelPerHour, units
Plane heinkel = new BomberBuilder().setName("Heinkel").setCapacity(100).setLoad(1000)
.setFlightDistance(10).setFuelPerHour(15).setBombs(14)... | public static void main(String[] args) {
// 1. Create planes using builders
// name, capacity, load, flightDistance, fuelPerHour, units
Plane heinkel = new BomberBuilder().setName("Heinkel").setCapacity(100)
.setLoad(1000).setFlightDistance(10).setFuelPerHour(15)
... |
diff --git a/mmstudio/src/org/micromanager/acquisition/engine/ImageTask.java b/mmstudio/src/org/micromanager/acquisition/engine/ImageTask.java
index b41601c49..f5e4f75f2 100644
--- a/mmstudio/src/org/micromanager/acquisition/engine/ImageTask.java
+++ b/mmstudio/src/org/micromanager/acquisition/engine/ImageTask.java
@@ ... | true | true | void acquireImage() {
//Gson gson = new Gson();
//String jsonMetadata = gson.toJson(imageRequest_);
waitDuringPause();
MDUtils.put(md_, "Slice", imageRequest_.SliceIndex);
if (imageRequest_.UseChannel) {
MDUtils.put(md_, "Channel", imageRequest_.Channel.config_);
}
... | void acquireImage() {
//Gson gson = new Gson();
//String jsonMetadata = gson.toJson(imageRequest_);
waitDuringPause();
MDUtils.put(md_, "Slice", imageRequest_.SliceIndex);
if (imageRequest_.UseChannel) {
MDUtils.put(md_, "Channel", imageRequest_.Channel.config_);
}
... |
diff --git a/src/callgraphanalyzer/NetworkBuilder.java b/src/callgraphanalyzer/NetworkBuilder.java
index e8ec24a..a028098 100644
--- a/src/callgraphanalyzer/NetworkBuilder.java
+++ b/src/callgraphanalyzer/NetworkBuilder.java
@@ -1,97 +1,101 @@
package callgraphanalyzer;
import java.util.List;
import models.Commi... | true | true | private void traverseCommitTree(Node parent) {
while(parent != null) {
List<Node> children = parent.getChildren();
if(children.size() == 1) {
if(!isMergeCommit(children.get(0).getCommitID())) {
compare.newCallGraph = compare.forwardUpdateCallGraph(compare.newCallGraph, children.get(0).getCommitID(... | private void traverseCommitTree(Node parent) {
while(parent != null) {
List<Node> children = parent.getChildren();
if(children.size() == 1) {
if(!isMergeCommit(children.get(0).getCommitID())) {
compare.newCallGraph = compare.forwardUpdateCallGraph(compare.newCallGraph, children.get(0).getCommitID(... |
diff --git a/asakusa-test-driver/src/main/java/com/asakusafw/testdriver/TestDriverTestToolsBase.java b/asakusa-test-driver/src/main/java/com/asakusafw/testdriver/TestDriverTestToolsBase.java
index d4e0a2f5d..36ccf9f1f 100644
--- a/asakusa-test-driver/src/main/java/com/asakusafw/testdriver/TestDriverTestToolsBase.java
+... | true | true | protected void initialize() {
super.initialize();
try {
System.setProperty("ASAKUSA_TESTTOOLS_CONF", buildProperties.getProperty("asakusa.testtools.conf"));
System.setProperty("ASAKUSA_TEMPLATEGEN_OUTPUT_DIR", buildProperties.getProperty("asakusa.testdatasheet.output"));
... | protected void initialize() {
super.initialize();
try {
System.setProperty("ASAKUSA_TESTTOOLS_CONF", buildProperties.getProperty("asakusa.jdbc.conf"));
System.setProperty("ASAKUSA_TEMPLATEGEN_OUTPUT_DIR", buildProperties.getProperty("asakusa.testdatasheet.output"));
... |
diff --git a/nuxeo-core-storage-sql/nuxeo-core-storage-sql/src/main/java/org/nuxeo/ecm/core/storage/sql/jdbc/dialect/DialectMySQL.java b/nuxeo-core-storage-sql/nuxeo-core-storage-sql/src/main/java/org/nuxeo/ecm/core/storage/sql/jdbc/dialect/DialectMySQL.java
index 7c98cf221..87ea3721d 100644
--- a/nuxeo-core-storage-sq... | false | true | public JDBCInfo getJDBCTypeAndString(ColumnType type) {
switch (type) {
case VARCHAR:
// don't use the max 65535 because this max is actually for the
// total size of all columns of a given table, so allow several
// varchar columns in the same table
r... | public JDBCInfo getJDBCTypeAndString(ColumnType type) {
switch (type) {
case VARCHAR:
// don't use the max 65535 because this max is actually for the
// total size of all columns of a given table, so allow several
// varchar columns in the same table
r... |
diff --git a/src/me/ellbristow/greylistVote/greylistVote.java b/src/me/ellbristow/greylistVote/greylistVote.java
index 84d79b9..704ff53 100644
--- a/src/me/ellbristow/greylistVote/greylistVote.java
+++ b/src/me/ellbristow/greylistVote/greylistVote.java
@@ -1,683 +1,691 @@
package me.ellbristow.greylistVote;
import ... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
if (commandLabel.equalsIgnoreCase("glv")) {
if (args.length == 0) {
PluginDescriptionFile pdfFile = this.getDescription();
sender.sendMessage(ChatColor.GOLD + pdfFile.getName() + " version " + pdfFile.getVers... | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
if (commandLabel.equalsIgnoreCase("glv")) {
if (args.length == 0) {
PluginDescriptionFile pdfFile = this.getDescription();
sender.sendMessage(ChatColor.GOLD + pdfFile.getName() + " version " + pdfFile.getVers... |
diff --git a/src/main/java/org/spout/vanilla/inventory/util/GridInventoryConverter.java b/src/main/java/org/spout/vanilla/inventory/util/GridInventoryConverter.java
index 25cc2cfa..75a8cdd2 100644
--- a/src/main/java/org/spout/vanilla/inventory/util/GridInventoryConverter.java
+++ b/src/main/java/org/spout/vanilla/inve... | false | true | public GridInventoryConverter(Inventory inventory, int length, int offset) {
super(inventory, new int[inventory.getGrid(length).getSize()]);
grid = inventory.getGrid(length);
this.offset = offset;
GridIterator i = grid.iterator();
int mod = offset * grid.getWidth();
while (i.hasNext()) {
slots[i.next()]... | public GridInventoryConverter(Inventory inventory, int length, int offset) {
super(inventory, new int[inventory.getGrid(length).getSize()]);
grid = inventory.getGrid(length);
this.offset = offset;
GridIterator i = grid.iterator();
while (i.hasNext()) {
slots[i.next()] = ((offset + grid.getSize()) - (lengt... |
diff --git a/blocks/sublima-app/src/main/java/com/computas/sublima/app/controller/admin/AdminController.java b/blocks/sublima-app/src/main/java/com/computas/sublima/app/controller/admin/AdminController.java
index 11299413..8975ccee 100644
--- a/blocks/sublima-app/src/main/java/com/computas/sublima/app/controller/admin/... | true | true | public void process(AppleRequest req, AppleResponse res) throws Exception {
String mode = req.getSitemapParameter("mode");
String submode = req.getSitemapParameter("submode");
if (appUtil.getUser() != null) {
user = appUtil.getUser();
userPrivileges = adminService.getRolePrivilegesAsXML(user... | public void process(AppleRequest req, AppleResponse res) throws Exception {
String mode = req.getSitemapParameter("mode");
String submode = req.getSitemapParameter("submode");
if (appUtil.getUser() != null) {
user = appUtil.getUser();
userPrivileges = adminService.getRolePrivilegesAsXML(user... |
diff --git a/src/com/android/settings/wifi/WifiConfigController.java b/src/com/android/settings/wifi/WifiConfigController.java
index 3efedf604..0d2429886 100644
--- a/src/com/android/settings/wifi/WifiConfigController.java
+++ b/src/com/android/settings/wifi/WifiConfigController.java
@@ -1,733 +1,732 @@
/*
* Copyrig... | false | true | public WifiConfigController(
WifiConfigUiBase parent, View view, AccessPoint accessPoint, boolean edit) {
mConfigUi = parent;
mInXlSetupWizard = (parent instanceof WifiConfigUiForSetupWizardXL);
mView = view;
mAccessPoint = accessPoint;
mAccessPointSecurity = (ac... | public WifiConfigController(
WifiConfigUiBase parent, View view, AccessPoint accessPoint, boolean edit) {
mConfigUi = parent;
mInXlSetupWizard = (parent instanceof WifiConfigUiForSetupWizardXL);
mView = view;
mAccessPoint = accessPoint;
mAccessPointSecurity = (ac... |
diff --git a/src/java/no/schibstedsok/front/searchportal/configuration/SearchModeFactory.java b/src/java/no/schibstedsok/front/searchportal/configuration/SearchModeFactory.java
index fb51cf3a3..8866e8dd3 100644
--- a/src/java/no/schibstedsok/front/searchportal/configuration/SearchModeFactory.java
+++ b/src/java/no/schi... | false | true | public SearchConfiguration parseSearchConfiguration(
final Element commandE,
final SearchMode mode){
final SearchConfiguration inherit = findParent(commandE.getAttribute("inherit"), mode);
final String id = commandE.getAttribute("id");
LOG.inf... | public SearchConfiguration parseSearchConfiguration(
final Element commandE,
final SearchMode mode){
final SearchConfiguration inherit = findParent(commandE.getAttribute("inherit"), mode);
final String id = commandE.getAttribute("id");
LOG.inf... |
diff --git a/HandsOnCentralOhio/src/com/example/handsoncentralohio/LoginActivity.java b/HandsOnCentralOhio/src/com/example/handsoncentralohio/LoginActivity.java
index f2dba54..17fea71 100644
--- a/HandsOnCentralOhio/src/com/example/handsoncentralohio/LoginActivity.java
+++ b/HandsOnCentralOhio/src/com/example/handsonce... | true | true | public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.login, menu);
return true;
}
| public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
//getMenuInflater().inflate(R.menu.login, menu);
return true;
}
|
diff --git a/src/main/java/org/sikuli/slides/parsing/SlideParser.java b/src/main/java/org/sikuli/slides/parsing/SlideParser.java
index 84fa31b..113c00e 100644
--- a/src/main/java/org/sikuli/slides/parsing/SlideParser.java
+++ b/src/main/java/org/sikuli/slides/parsing/SlideParser.java
@@ -1,314 +1,314 @@
/**
Khalid
*... | true | true | public void startElement(String uri, String localName, String qName, Attributes attributes)
throws SAXException{
// Part 1: Parsing the original screen shoot info
// if current element is picture element
if (qName.equalsIgnoreCase("p:pic")) {
inPictureElement=true;
}
/*
* if the current child elemen... | public void startElement(String uri, String localName, String qName, Attributes attributes)
throws SAXException{
// Part 1: Parsing the original screen shoot info
// if current element is picture element
if (qName.equalsIgnoreCase("p:pic")) {
inPictureElement=true;
}
/*
* if the current child elemen... |
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 f7dc29535..a1bb9a44a 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;
w.write("\n" +
" public Integer get" + suffix + "... | 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;
w.write("\n" +
" public Integer get" + suffix + "... |
diff --git a/cspi-schema/src/main/java/org/collectionspace/chain/csp/schema/EmailData.java b/cspi-schema/src/main/java/org/collectionspace/chain/csp/schema/EmailData.java
index 29ea6ddb..9160ef6a 100644
--- a/cspi-schema/src/main/java/org/collectionspace/chain/csp/schema/EmailData.java
+++ b/cspi-schema/src/main/java/o... | true | true | public EmailData(Spec spec, ReadOnlySection section) {
baseurl=(String)section.getValue("/baseurl");
fromaddress=(String)section.getValue("/from");
toaddress=(String)section.getValue("/to");
smtphost = (String)section.getValue("/smtp/host");
smtpport = (String)section.getValue("/smtp/port");
smtpdebug = Ut... | public EmailData(Spec spec, ReadOnlySection section) {
baseurl=(String)section.getValue("/baseurl");
fromaddress=(String)section.getValue("/from");
toaddress=(String)section.getValue("/to");
smtphost = (String)section.getValue("/smtp/host");
smtpport = (String)section.getValue("/smtp/port");
smtpdebug = Ut... |
diff --git a/core/src/com/google/zxing/common/GridSampler.java b/core/src/com/google/zxing/common/GridSampler.java
index 93a39005..b847a31e 100644
--- a/core/src/com/google/zxing/common/GridSampler.java
+++ b/core/src/com/google/zxing/common/GridSampler.java
@@ -1,169 +1,169 @@
/*
* Copyright 2007 ZXing authors
*
... | true | true | static void checkAndNudgePoints(MonochromeBitmapSource image, float[] points) throws ReaderException {
int width = image.getWidth();
int height = image.getHeight();
// Check and nudge points from start until we see some that are OK:
boolean nudged = true;
for (int offset = 0; offset < points.lengt... | protected static void checkAndNudgePoints(MonochromeBitmapSource image, float[] points) throws ReaderException {
int width = image.getWidth();
int height = image.getHeight();
// Check and nudge points from start until we see some that are OK:
boolean nudged = true;
for (int offset = 0; offset < po... |
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsEcoBlockListener.java b/Essentials/src/com/earth2me/essentials/EssentialsEcoBlockListener.java
index aac9feff..39552925 100644
--- a/Essentials/src/com/earth2me/essentials/EssentialsEcoBlockListener.java
+++ b/Essentials/src/com/earth2me/essentials/Essential... | true | true | public void onSignChange(SignChangeEvent event)
{
if (ess.getSettings().areSignsDisabled())
{
return;
}
User user = ess.getUser(event.getPlayer());
String username = user.getName().substring(0, user.getName().length() > 13 ? 13 : user.getName().length());
if ((event.getLine(0).equalsIgnoreCase("[Buy]"... | public void onSignChange(SignChangeEvent event)
{
if (ess.getSettings().areSignsDisabled())
{
return;
}
User user = ess.getUser(event.getPlayer());
String username = user.getName().substring(0, user.getName().length() > 13 ? 13 : user.getName().length());
if ((event.getLine(0).equalsIgnoreCase("[Buy]"... |
diff --git a/src/java/net/sf/jabref/oo/AlphanumericComparator.java b/src/java/net/sf/jabref/oo/AlphanumericComparator.java
index aabbca29c..93c5d69d0 100755
--- a/src/java/net/sf/jabref/oo/AlphanumericComparator.java
+++ b/src/java/net/sf/jabref/oo/AlphanumericComparator.java
@@ -1,51 +1,64 @@
/* Copyright (C) 2003-2... | false | true | public int compare(BibtexEntry o1, BibtexEntry o2) {
// Author as first criterion:
int comp = authComp.compare(o1, o2);
if (comp != 0)
return comp;
// TODO: Is it a good idea to try editor if author fields are equal?
comp = editorComp.compare(o1, o2);
if (... | public int compare(BibtexEntry o1, BibtexEntry o2) {
// Author as first criterion:
int comp = authComp.compare(o1, o2);
if (comp != 0)
return comp;
// Editor as second criterion:
comp = editorComp.compare(o1, o2);
if (comp != 0)
return comp;
... |
diff --git a/src/com/martinbrook/tesseractuhc/UhcParticipant.java b/src/com/martinbrook/tesseractuhc/UhcParticipant.java
index fbac535..0cab0de 100644
--- a/src/com/martinbrook/tesseractuhc/UhcParticipant.java
+++ b/src/com/martinbrook/tesseractuhc/UhcParticipant.java
@@ -1,185 +1,185 @@
package com.martinbrook.tesser... | true | true | public void doHardStone(int blockY, ItemStack tool) {
// Calculate applicable durability penalty
short penalty;
if (tool.getType() == Material.GOLD_PICKAXE) {
penalty = UhcMatch.DURABILITY_PENALTY_GOLD;
} else if (tool.getType() == Material.WOOD_PICKAXE) {
penalty = UhcMatch.DURABILITY_PENALTY_W... | public void doHardStone(int blockY, ItemStack tool) {
// Calculate applicable durability penalty
short penalty;
if (tool.getType() == Material.GOLD_PICKAXE) {
penalty = UhcMatch.DURABILITY_PENALTY_GOLD;
} else if (tool.getType() == Material.WOOD_PICKAXE) {
penalty = UhcMatch.DURABILITY_PENALTY_W... |
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java
index bc88a987..fc1a26d4 100644
--- a/src/com/android/launcher2/LauncherModel.java
+++ b/src/com/android/launcher2/LauncherModel.java
@@ -1,2174 +1,2176 @@
/*
* Copyright (C) 2008 The Android Open Source Project
... | true | true | static boolean shortcutExists(Context context, String title, Intent intent) {
final ContentResolver cr = context.getContentResolver();
Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI,
new String[] { "title", "intent" }, "title=? and intent=?",
new String[] { title,... | static boolean shortcutExists(Context context, String title, Intent intent) {
final ContentResolver cr = context.getContentResolver();
Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI,
new String[] { "title", "intent" }, "title=? and intent=?",
new String[] { title,... |
diff --git a/demoiselle-ldap/src/main/java/br/gov/frameworkdemoiselle/ldap/template/LDAPCrud.java b/demoiselle-ldap/src/main/java/br/gov/frameworkdemoiselle/ldap/template/LDAPCrud.java
index a670882..906d8db 100644
--- a/demoiselle-ldap/src/main/java/br/gov/frameworkdemoiselle/ldap/template/LDAPCrud.java
+++ b/demoisel... | false | true | public List<T> findAll() {
String filter = "objectClass=" + getBeanClass().getSimpleName();
final QueryConfig<T> queryConfig = this.getQueryConfig();
if (queryConfig != null)
if (queryConfig.getFilter() != null && !queryConfig.getFilter().isEmpty())
filter = getFilter(getBeanClass(), queryConfig.getFilte... | public List<T> findAll() {
String filter = "objectClass=" + getBeanClass().getSimpleName();
final QueryConfig<T> queryConfig = this.getQueryConfig();
if (queryConfig != null)
if (queryConfig.getFilter() != null && !queryConfig.getFilter().isEmpty())
filter = getFilter(getBeanClass(), queryConfig.getFilte... |
diff --git a/src/jramos/Main.java b/src/jramos/Main.java
index f5ecc87..a035d67 100644
--- a/src/jramos/Main.java
+++ b/src/jramos/Main.java
@@ -1,137 +1,137 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package jramos;
import java.io.*;
import jramos.... | true | true | public static void main(String args[])
{
//VentanaPrincipal window = new VentanaPrincipal();
//window.setVisible(true);
CapaIOCursos gestorIOCursos;
CapaIOProfes gestorIOProfes;
ArrayList<Curso> listaCursos;
ArrayL... | public static void main(String args[])
{
//VentanaPrincipal window = new VentanaPrincipal();
//window.setVisible(true);
CapaIOCursos gestorIOCursos;
CapaIOProfes gestorIOProfes;
ArrayList<Curso> listaCursos;
ArrayL... |
diff --git a/src/edu/usf/cutr/siri/android/util/SiriJacksonConfig.java b/src/edu/usf/cutr/siri/android/util/SiriJacksonConfig.java
index 1ef091d..7c226f1 100644
--- a/src/edu/usf/cutr/siri/android/util/SiriJacksonConfig.java
+++ b/src/edu/usf/cutr/siri/android/util/SiriJacksonConfig.java
@@ -1,161 +1,161 @@
package ed... | false | true | private static XmlMapper initXmlMapper(){
if(xmlMapper == null){
// Use Aalto StAX implementation explicitly
XmlFactory f = new XmlFactory(new InputFactoryImpl(),
new OutputFactoryImpl());
JacksonXmlModule module = new JacksonXmlModule();
/*
* Tell Jackson that Lists are using "unwrapped" ... | private static XmlMapper initXmlMapper(){
if(xmlMapper == null){
// Use Aalto StAX implementation explicitly
XmlFactory f = new XmlFactory(new InputFactoryImpl(),
new OutputFactoryImpl());
JacksonXmlModule module = new JacksonXmlModule();
/*
* Tell Jackson that Lists are using "unwrapped" ... |
diff --git a/src/main/java/be/Balor/Player/sql/SQLPlayer.java b/src/main/java/be/Balor/Player/sql/SQLPlayer.java
index 41d805e7..0016f96c 100644
--- a/src/main/java/be/Balor/Player/sql/SQLPlayer.java
+++ b/src/main/java/be/Balor/Player/sql/SQLPlayer.java
@@ -1,763 +1,763 @@
/*This file is part of AdminCmd.
Admi... | true | true | private void init() {
synchronized (GET_LASTLOC) {
try {
GET_LASTLOC.clearParameters();
GET_LASTLOC.setLong(1, id);
ResultSet rs;
synchronized (GET_LASTLOC.getConnection()) {
rs = GET_LASTLOC.executeQuery();
}
if (rs.next()) {
final String worldName = rs.getString("world");
... | private void init() {
synchronized (GET_LASTLOC) {
try {
GET_LASTLOC.clearParameters();
GET_LASTLOC.setLong(1, id);
ResultSet rs;
synchronized (GET_LASTLOC.getConnection()) {
rs = GET_LASTLOC.executeQuery();
}
if (rs.next()) {
final String worldName = rs.getString("world");
... |
diff --git a/src/main/org/testng/internal/BaseTestMethod.java b/src/main/org/testng/internal/BaseTestMethod.java
index 9c171f57..3ba14f08 100644
--- a/src/main/org/testng/internal/BaseTestMethod.java
+++ b/src/main/org/testng/internal/BaseTestMethod.java
@@ -1,599 +1,599 @@
package org.testng.internal;
import java.... | true | true | protected void initGroups(Class<?> annotationClass) {
//
// Init groups
//
{
ITestOrConfiguration annotation =
(ITestOrConfiguration) getAnnotationFinder().findAnnotation(getMethod(),
annotationClass);
ITestOrConfiguration classAnnotation =
(ITestOrConfiguration... | protected void initGroups(Class<?> annotationClass) {
//
// Init groups
//
{
ITestOrConfiguration annotation =
(ITestOrConfiguration) getAnnotationFinder().findAnnotation(getMethod(),
annotationClass);
ITestOrConfiguration classAnnotation =
(ITestOrConfiguration... |
diff --git a/software/camod/src/gov/nih/nci/camod/webapp/action/ViewTOCSearchResultsAction.java b/software/camod/src/gov/nih/nci/camod/webapp/action/ViewTOCSearchResultsAction.java
index ea1a5a7a..620ef852 100755
--- a/software/camod/src/gov/nih/nci/camod/webapp/action/ViewTOCSearchResultsAction.java
+++ b/software/cam... | true | true | public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
log.info("In ViewTOCSearchResultsAction.execute");
// get and clean header to prevent SQL injection
String sID = null;
if (req... | public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
log.info("In ViewTOCSearchResultsAction.execute");
// get and clean header to prevent SQL injection
String sID = null;
if (req... |
diff --git a/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotExt.java b/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotExt.java
index a746ee36a..46c2d5558 100644
--- a/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotExt.java
+++ b/tests/org.jboss.tools.... | true | true | public SWTBotShell waitForShell(final String shellTitle, final int maxTimeout) {
if (shellTitle == null) {
throw new IllegalArgumentException("shellTitle cannot be null");
}
final int SLEEP_TIME = Timing.time2S();
final int ATTEMPTS_TIMEOUT = getAttemptsTimeout((maxTimeout ... | public SWTBotShell waitForShell(final String shellTitle, final int maxTimeout) {
if (shellTitle == null) {
throw new IllegalArgumentException("shellTitle cannot be null");
}
final int SLEEP_TIME = Timing.time2S();
final int ATTEMPTS_TIMEOUT = getAttemptsTimeout((maxTimeout ... |
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/EmptyStatementCheck.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/EmptyStatementCheck.java
index ffb0448a6..240b828b4 100644
--- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/EmptyStatementCheck.java
+++ b/src/checkstyle/com/pup... | true | true | public int[] getDefaultTokens()
{
return new int[] { TokenTypes.EMPTY_STAT };
}
| public int[] getDefaultTokens()
{
return new int[] {TokenTypes.EMPTY_STAT};
}
|
diff --git a/tests/src/org/fourdnest/androidclient/test/mapview/MapTest.java b/tests/src/org/fourdnest/androidclient/test/mapview/MapTest.java
index 573ed4e..b85e506 100644
--- a/tests/src/org/fourdnest/androidclient/test/mapview/MapTest.java
+++ b/tests/src/org/fourdnest/androidclient/test/mapview/MapTest.java
@@ -1,3... | true | true | public void testGetMediaFile() throws Exception {
boolean val = (new OsmStaticMapGetter().getStaticMap(Uri.parse("/sdcard/test2.png"), null));
assertTrue(val);
}
| public void testGetMediaFile() throws Exception {
boolean val = (new OsmStaticMapGetter().getStaticMap(null));
assertTrue(val);
}
|
diff --git a/src/main/java/de/beimax/spacealert/mission/MissionImpl.java b/src/main/java/de/beimax/spacealert/mission/MissionImpl.java
index 83f77bc..7f57986 100644
--- a/src/main/java/de/beimax/spacealert/mission/MissionImpl.java
+++ b/src/main/java/de/beimax/spacealert/mission/MissionImpl.java
@@ -1,788 +1,790 @@
/*... | false | true | protected boolean generateThreats() {
// number of internal threats
int internalThreats = generator.nextInt(maxInternalThreats - minInternalThreats + 1) + minInternalThreats;
int externalThreats = threatLevel - internalThreats;
logger.fine("Threat Level: " + threatLevel + "; interal = " + internalThreats + ... | protected boolean generateThreats() {
// number of internal threats
int internalThreats = generator.nextInt(maxInternalThreats - minInternalThreats + 1) + minInternalThreats;
int externalThreats = threatLevel - internalThreats;
logger.fine("Threat Level: " + threatLevel + "; interal = " + internalThreats + ... |
diff --git a/src/main/java/org/jboss/as/jpa/processor/JPAAnnotationParseProcessor.java b/src/main/java/org/jboss/as/jpa/processor/JPAAnnotationParseProcessor.java
index cb84354..96d64f2 100644
--- a/src/main/java/org/jboss/as/jpa/processor/JPAAnnotationParseProcessor.java
+++ b/src/main/java/org/jboss/as/jpa/processor/... | true | true | private void processMethod(final DeploymentUnit deploymentUnit, final AnnotationInstance annotation, final MethodInfo methodInfo,
final EEModuleClassDescription eeModuleClassDescription) throws DeploymentUnitProcessingException {
final String methodName = methodInfo.name();
... | private void processMethod(final DeploymentUnit deploymentUnit, final AnnotationInstance annotation, final MethodInfo methodInfo,
final EEModuleClassDescription eeModuleClassDescription) throws DeploymentUnitProcessingException {
final String methodName = methodInfo.name();
... |
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/SubscriberActionContribution.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/SubscriberActionContribution.java
index a2effa3d5..8a99c0ee7 100644
--- a/bundles/org.eclipse.team.ui/src/org... | true | true | public void initialize(final ISynchronizePageConfiguration configuration) {
super.initialize(configuration);
final SubscriberParticipant participant = (SubscriberParticipant)configuration.getParticipant();
final ISynchronizePageSite site = configuration.getSite();
// toolbar
if(participant.doesSupportSynchro... | public void initialize(final ISynchronizePageConfiguration configuration) {
super.initialize(configuration);
final SubscriberParticipant participant = (SubscriberParticipant)configuration.getParticipant();
final ISynchronizePageSite site = configuration.getSite();
// toolbar
if(participant.doesSupportSynchro... |
diff --git a/backend/src/main/java/com/gooddata/connector/backend/AbstractSqlConnectorBackend.java b/backend/src/main/java/com/gooddata/connector/backend/AbstractSqlConnectorBackend.java
index 0230dd80..e732eea4 100644
--- a/backend/src/main/java/com/gooddata/connector/backend/AbstractSqlConnectorBackend.java
+++ b/bac... | true | true | public void executeExtract(PdmSchema schema, String file, boolean hasHeader) {
Connection c = null;
PreparedStatement s = null;
try {
c = getConnection();
l.debug("Extracting data.");
PdmTable sourceTable = schema.getSourceTable();
String source = sourceTab... | public void executeExtract(PdmSchema schema, String file, boolean hasHeader) {
Connection c = null;
PreparedStatement s = null;
try {
c = getConnection();
l.debug("Extracting data.");
PdmTable sourceTable = schema.getSourceTable();
String source = sourceTab... |
diff --git a/crono/src/crono/Interpreter.java b/crono/src/crono/Interpreter.java
index 64f0d32..a3f798d 100644
--- a/crono/src/crono/Interpreter.java
+++ b/crono/src/crono/Interpreter.java
@@ -1,238 +1,238 @@
package crono;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import ja... | true | true | public CronoType visit(Cons c) {
if(eval == Function.EvalType.NONE) {
return c;
}
Iterator<CronoType> iter = c.iterator();
if(!(iter.hasNext())) {
return c; /*< C is an empty list (may be Nil or T) */
}
CronoType value = iter.next().accept(this);
if(value instanceof Function) {
Function fu... | public CronoType visit(Cons c) {
if(eval == Function.EvalType.NONE) {
return c;
}
Iterator<CronoType> iter = c.iterator();
if(!(iter.hasNext())) {
return c; /*< C is an empty list (may be Nil or T) */
}
CronoType value = iter.next().accept(this);
if(value instanceof Function) {
Function fu... |
diff --git a/jaxrs-doclet/src/main/java/com/hypnoticocelot/jaxrs/doclet/parser/ApiClassParser.java b/jaxrs-doclet/src/main/java/com/hypnoticocelot/jaxrs/doclet/parser/ApiClassParser.java
index 1f464b2..60d4ba3 100644
--- a/jaxrs-doclet/src/main/java/com/hypnoticocelot/jaxrs/doclet/parser/ApiClassParser.java
+++ b/jaxrs... | false | true | public Collection<Api> parse() {
List<Api> apis = new ArrayList<Api>();
Map<String, Collection<Method>> apiMethods = new HashMap<String, Collection<Method>>();
for (MethodDoc method : classDoc.methods()) {
ApiMethodParser methodParser = parentMethod == null ?
... | public Collection<Api> parse() {
List<Api> apis = new ArrayList<Api>();
Map<String, Collection<Method>> apiMethods = new HashMap<String, Collection<Method>>();
for (MethodDoc method : classDoc.methods()) {
ApiMethodParser methodParser = parentMethod == null ?
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.