diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/org.eclipse.virgo.web.enterprise.appdeployer/src/main/java/org/eclipse/virgo/web/enterprise/openejb/deployer/VirgoDeployerEjb.java b/org.eclipse.virgo.web.enterprise.appdeployer/src/main/java/org/eclipse/virgo/web/enterprise/openejb/deployer/VirgoDeployerEjb.java
index 5e5b31a..dc454e6 100755
--- a/org.ecl... | true | true | public AppInfo deploy(String loc, StandardContext standardContext) throws OpenEJBException {
if (loc == null) {
throw new NullPointerException("location is null");
}
if (dynamicDeployer != null) {
if (dynamicDeployer instanceof DynamicDeployerWithStandardContext) {
((DynamicDeployerWithStandardContext... | public AppInfo deploy(String loc, StandardContext standardContext) throws OpenEJBException {
if (loc == null) {
throw new NullPointerException("location is null");
}
if (dynamicDeployer != null) {
if (dynamicDeployer instanceof DynamicDeployerWithStandardContext) {
((DynamicDeployerWithStandardContext... |
diff --git a/freeplane/src/org/freeplane/view/swing/map/NodeView.java b/freeplane/src/org/freeplane/view/swing/map/NodeView.java
index b2bd21c5d..5c4e23b55 100644
--- a/freeplane/src/org/freeplane/view/swing/map/NodeView.java
+++ b/freeplane/src/org/freeplane/view/swing/map/NodeView.java
@@ -1,1553 +1,1553 @@
/*
* ... | true | true | private boolean paintSummaryEdge(Graphics2D g, NodeView source, NodeView nodeView, int pos) {
if(! nodeView.isSummary())
return false;
final boolean isLeft = nodeView.isLeft();
final int spaceAround = getSpaceAround();
int level = 0;
int anotherLevel = 0;
int i;
NodeView lastView = null;
boolean ... | private boolean paintSummaryEdge(Graphics2D g, NodeView source, NodeView nodeView, int pos) {
if(! nodeView.isSummary())
return false;
final boolean isLeft = nodeView.isLeft();
final int spaceAround = getSpaceAround();
int level = 0;
int anotherLevel = 0;
int i;
NodeView lastView = null;
boolean ... |
diff --git a/src/com/cyanogenmod/filemanager/ui/dialogs/AssociationsDialog.java b/src/com/cyanogenmod/filemanager/ui/dialogs/AssociationsDialog.java
index 6143143..cb82de3 100644
--- a/src/com/cyanogenmod/filemanager/ui/dialogs/AssociationsDialog.java
+++ b/src/com/cyanogenmod/filemanager/ui/dialogs/AssociationsDialog.... | false | true | void onIntentSelected(ResolveInfo ri, Intent intent, boolean remember) {
if (remember) {
// Build a reasonable intent filter, based on what matched.
IntentFilter filter = new IntentFilter();
if (intent.getAction() != null) {
filter.addAction(intent.getAct... | void onIntentSelected(ResolveInfo ri, Intent intent, boolean remember) {
if (remember && !isInternalEditor(ri) && ri.filter != null) {
// Build a reasonable intent filter, based on what matched.
IntentFilter filter = new IntentFilter();
if (intent.getAction() != null) {
... |
diff --git a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/dynamicHelpers/ExtensionTracker.java b/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/dynamicHelpers/ExtensionTracker.java
index c2021d73b..629ef9d75 100644
--- a/bundles/org.eclipse.core.runtime/src/org/eclipse/core/runtime/dynam... | true | true | private void doRemove(IExtensionDelta delta) {
IExtension removedExtension = delta.getExtension();
Object[] removedObjects = null;
synchronized (extensionToObjects) {
ReferenceHashSet associatedObjects = (ReferenceHashSet) extensionToObjects.remove(removedExtension);
if (associatedObjects == null)
retu... | private void doRemove(IExtensionDelta delta) {
IExtension removedExtension = delta.getExtension();
Object[] removedObjects = null;
synchronized (extensionToObjects) {
ReferenceHashSet associatedObjects = (ReferenceHashSet) extensionToObjects.remove(removedExtension);
if (associatedObjects == null)
retu... |
diff --git a/src/org/fao/geonet/kernel/mef/Importer.java b/src/org/fao/geonet/kernel/mef/Importer.java
index 7beeb25c7a..618fc7212f 100644
--- a/src/org/fao/geonet/kernel/mef/Importer.java
+++ b/src/org/fao/geonet/kernel/mef/Importer.java
@@ -1,369 +1,369 @@
//==========================================================... | true | true | public static int doImport(final Element params, final ServiceContext context, File mefFile, final String stylePath) throws Exception
{
final GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME);
final DataManager dm = gc.getDataManager();
final Dbms dbms = (Dbms) context.g... | public static int doImport(final Element params, final ServiceContext context, File mefFile, final String stylePath) throws Exception
{
final GeonetContext gc = (GeonetContext) context.getHandlerContext(Geonet.CONTEXT_NAME);
final DataManager dm = gc.getDataManager();
final Dbms dbms = (Dbms) context.g... |
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.core/src/org/eclipse/tcf/te/tcf/filesystem/core/internal/operations/OpCacheCommit.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.core/src/org/eclipse/tcf/te/tcf/filesystem/core/internal/operations/OpCacheCommit.java
index 3e5f0284c... | false | true | public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
try {
super.run(monitor);
}
finally {
// Once upload is successful, synchronize the modified time.
for (int i = 0; i < nodes.length; i++) {
final FSTreeNode node = nodes[i];
SafeRunner.run(new I... | public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
try {
super.run(monitor);
}
finally {
// Once upload is successful, synchronize the modified time.
for (int i = 0; i < nodes.length; i++) {
final FSTreeNode node = nodes[i];
SafeRunner.run(new I... |
diff --git a/S2S3H3/test/com/net355/test/DAOTest.java b/S2S3H3/test/com/net355/test/DAOTest.java
index eb310d9..b2a2dbf 100644
--- a/S2S3H3/test/com/net355/test/DAOTest.java
+++ b/S2S3H3/test/com/net355/test/DAOTest.java
@@ -1,26 +1,26 @@
package com.net355.test;
import java.io.IOException;
import java.util.List;
... | true | true | public static void main(String[] args) throws ParseException, IOException{
BaseService baseService = (BaseService)BeansFactory.get("baseService");
// Admin admin = new Admin();
// admin.setAdminAcc("net355admin");
// admin.setAdminName("This is my 中文!");
// admin.setAdminEmail("test@china.com");
// baseServi... | public static void main(String[] args) throws ParseException, IOException{
BaseService baseService = (BaseService)BeansFactory.get("baseService");
// Admin admin = new Admin();
// admin.setAdminAcc("net355admin");
// admin.setAdminName("This is my 中文!");
// admin.setAdminEmail("test@china.com");
// baseServi... |
diff --git a/plugins/org.python.pydev/src/org/python/pydev/editor/actions/PyConvertSpaceToTab.java b/plugins/org.python.pydev/src/org/python/pydev/editor/actions/PyConvertSpaceToTab.java
index 9aee8f008..701ab9dda 100644
--- a/plugins/org.python.pydev/src/org/python/pydev/editor/actions/PyConvertSpaceToTab.java
+++ b/p... | true | true | protected static String getTabSpace() {
class NumberValidator implements IInputValidator {
/*
* @see IInputValidator#isValid(String)
*/
public String isValid(String input) {
if (input == null || input.length() == 0)
retu... | protected static String getTabSpace() {
class NumberValidator implements IInputValidator {
/*
* @see IInputValidator#isValid(String)
*/
public String isValid(String input) {
if (input == null || input.length() == 0)
retu... |
diff --git a/circularlist/src/list/tests/ListTest.java b/circularlist/src/list/tests/ListTest.java
index fcf04e7..beec696 100644
--- a/circularlist/src/list/tests/ListTest.java
+++ b/circularlist/src/list/tests/ListTest.java
@@ -1,46 +1,46 @@
package list.tests;
import de.codecentric.jbehave.junit.monitoring.JUnitR... | true | true | public Configuration configuration() {
return new MostUsefulConfiguration()
.useStoryReporterBuilder(
new StoryReporterBuilder()
.withDefaultFormats()
.withFailureTrace(true)
... | public Configuration configuration() {
return new MostUsefulConfiguration()
.useStoryReporterBuilder(
new StoryReporterBuilder()
.withDefaultFormats()
.withFailureTrace(true)
... |
diff --git a/crypto/test/src/org/bouncycastle/asn1/test/StringTest.java b/crypto/test/src/org/bouncycastle/asn1/test/StringTest.java
index e0c8d3aa..426c06ac 100644
--- a/crypto/test/src/org/bouncycastle/asn1/test/StringTest.java
+++ b/crypto/test/src/org/bouncycastle/asn1/test/StringTest.java
@@ -1,161 +1,161 @@
pack... | true | true | public void performTest()
throws IOException
{
DERBitString bs = new DERBitString(
new byte[] { (byte)0x01,(byte)0x23,(byte)0x45,(byte)0x67,(byte)0x89,(byte)0xab,(byte)0xcd,(byte)0xef });
if (!bs.getString().equals("#0309000123456789ABCDEF"))
{
fail("DERB... | public void performTest()
throws IOException
{
DERBitString bs = new DERBitString(
new byte[] { (byte)0x01,(byte)0x23,(byte)0x45,(byte)0x67,(byte)0x89,(byte)0xab,(byte)0xcd,(byte)0xef });
if (!bs.getString().equals("#0309000123456789ABCDEF"))
{
fail("DERB... |
diff --git a/mud/server/src/test/java/pl/edu/agh/two/mud/server/command/executor/HitUICommandExecutorTest.java b/mud/server/src/test/java/pl/edu/agh/two/mud/server/command/executor/HitUICommandExecutorTest.java
index a5d5b62..957354f 100644
--- a/mud/server/src/test/java/pl/edu/agh/two/mud/server/command/executor/HitUI... | true | true | public void shouldExecuteHitCommand() throws Exception {
// GIVEN
Service service = new Service();
Player player = new Player();
when(registry.getCurrentService()).thenReturn(service);
when(registry.getPlayer(service)).thenReturn(player);
// WHEN
executor.execute(null);
// THEN
verify(fight, timeou... | public void shouldExecuteHitCommand() throws Exception {
// GIVEN
Service service = new Service();
Player player = new Player();
when(registry.getCurrentService()).thenReturn(service);
when(registry.getPlayer(service)).thenReturn(player);
// WHEN
executor.execute(null);
// THEN
verify(fight, times(... |
diff --git a/src/contributions/resources/calendar/src/java/org/wyona/yanel/impl/resources/CalendarResource.java b/src/contributions/resources/calendar/src/java/org/wyona/yanel/impl/resources/CalendarResource.java
index 38ad20280..0f17e4f2b 100644
--- a/src/contributions/resources/calendar/src/java/org/wyona/yanel/impl/... | true | true | public View getView(String viewId) throws Exception {
String categories = getRTI().getProperty("categories");
String classes = getRTI().getProperty("classes");
String userIds = getRTI().getProperty("user-ids");
log.error("DEBUG: " + categories + " " + classes + " " + userIds);
... | public View getView(String viewId) throws Exception {
String categories = getRTI().getProperty("categories");
String classes = getRTI().getProperty("classes");
String userIds = getRTI().getProperty("user-ids");
log.error("DEBUG: " + categories + " " + classes + " " + userIds);
... |
diff --git a/src/org/netbeans/gradle/project/tasks/GradleTasks.java b/src/org/netbeans/gradle/project/tasks/GradleTasks.java
index e6d21d8a..9cf2b9e4 100644
--- a/src/org/netbeans/gradle/project/tasks/GradleTasks.java
+++ b/src/org/netbeans/gradle/project/tasks/GradleTasks.java
@@ -1,481 +1,481 @@
package org.netbeans... | true | true | private static void doGradleTasksWithProgress(
final ProgressHandle progress,
NbGradleProject project,
GradleTaskDef taskDef) {
String printableName = taskDef.getTaskNames().size() == 1
? taskDef.getTaskNames().get(0)
: taskDef.getTaskNames... | private static void doGradleTasksWithProgress(
final ProgressHandle progress,
NbGradleProject project,
GradleTaskDef taskDef) {
String printableName = taskDef.getTaskNames().size() == 1
? taskDef.getTaskNames().get(0)
: taskDef.getTaskNames... |
diff --git a/src/org/andengine/extension/rubeloader/factory/PhysicsWorldFactory.java b/src/org/andengine/extension/rubeloader/factory/PhysicsWorldFactory.java
index c10f25d..7c22eee 100644
--- a/src/org/andengine/extension/rubeloader/factory/PhysicsWorldFactory.java
+++ b/src/org/andengine/extension/rubeloader/factory/... | true | true | public PhysicsWorld populate(WorldDef pWorldDef) {
PhysicsWorld ret = new PhysicsWorld(pWorldDef.gravity, pWorldDef.allowSleep, pWorldDef.positionIterations, pWorldDef.velocityIterations);
tuneParams(pWorldDef, ret);
return ret;
}
| public PhysicsWorld populate(WorldDef pWorldDef) {
PhysicsWorld ret = new PhysicsWorld(pWorldDef.gravity, pWorldDef.allowSleep, pWorldDef.velocityIterations, pWorldDef.positionIterations);
tuneParams(pWorldDef, ret);
return ret;
}
|
diff --git a/achartengine/src/org/achartengine/chart/PieSegment.java b/achartengine/src/org/achartengine/chart/PieSegment.java
index 75d4506..fa736f2 100644
--- a/achartengine/src/org/achartengine/chart/PieSegment.java
+++ b/achartengine/src/org/achartengine/chart/PieSegment.java
@@ -1,80 +1,80 @@
/**
* Copyright (C... | true | true | public boolean isInSegment(double angle) {
if (angle >= mStartAngle && angle <= mEndAngle) {
return true;
}
double cAngle = angle % 360;
double startAngle = mStartAngle;
double stopAngle = mEndAngle;
while (startAngle > 360) {
startAngle -= 360;
stopAngle -= 360;
}
re... | public boolean isInSegment(double angle) {
if (angle >= mStartAngle && angle <= mEndAngle) {
return true;
}
double cAngle = angle % 360;
double startAngle = mStartAngle;
double stopAngle = mEndAngle;
while (stopAngle > 360) {
startAngle -= 360;
stopAngle -= 360;
}
ret... |
diff --git a/src/com/yahoo/platform/yui/compressor/ScriptOrFnScope.java b/src/com/yahoo/platform/yui/compressor/ScriptOrFnScope.java
index 1315fc0..c338e21 100644
--- a/src/com/yahoo/platform/yui/compressor/ScriptOrFnScope.java
+++ b/src/com/yahoo/platform/yui/compressor/ScriptOrFnScope.java
@@ -1,156 +1,154 @@
/*
*... | false | true | void munge() {
if (!markedForMunging) {
// Stop right here if this scope was flagged as unsafe for munging.
return;
}
int pickFromSet = 1;
// Do not munge symbols in the global scope!
if (parentScope != null) {
ArrayList freeSymbols = n... | void munge() {
if (!markedForMunging) {
// Stop right here if this scope was flagged as unsafe for munging.
return;
}
int pickFromSet = 1;
// Do not munge symbols in the global scope!
if (parentScope != null) {
ArrayList freeSymbols = n... |
diff --git a/src/main/java/net/aufdemrand/denizen/npc/traits/FishingTrait.java b/src/main/java/net/aufdemrand/denizen/npc/traits/FishingTrait.java
index 01f031f83..55c67f4f9 100644
--- a/src/main/java/net/aufdemrand/denizen/npc/traits/FishingTrait.java
+++ b/src/main/java/net/aufdemrand/denizen/npc/traits/FishingTrait.... | true | true | private void cast() {
DenizenAPI.getDenizenNPC(npc).action("cast fishing rod", null);
if(fishingLocation == null) {
dB.echoError("Fishing location not found!");
return;
}
double v = 34;
double g = 20;
Location from = null;
Location to = null;
fishHook = ne... | private void cast() {
DenizenAPI.getDenizenNPC(npc).action("cast fishing rod", null);
if(fishingLocation == null) {
dB.echoError("Fishing location not found!");
return;
}
double v = 34;
double g = 20;
Location from = null;
Location to = null;
fishHook = ne... |
diff --git a/src/pcc/test/vercon/Driver.java b/src/pcc/test/vercon/Driver.java
index c9169a3..43432ee 100644
--- a/src/pcc/test/vercon/Driver.java
+++ b/src/pcc/test/vercon/Driver.java
@@ -1,58 +1,58 @@
package pcc.test.vercon;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
i... | false | true | public static void main(String[] args) throws IOException{
ArrayList<String> filenames = new ArrayList<String> ();
HashMap<String, String[]> filesAndLines = new HashMap<String, String[]> ();
filenames.add("a.txt");
filenames.add("b.txt");
String [] alines = new String[]{"a-begin", "blah", "blah2", "a-e... | public static void main(String[] args) throws IOException{
ArrayList<String> filenames = new ArrayList<String> ();
HashMap<String, String[]> filesAndLines = new HashMap<String, String[]> ();
filenames.add("a.txt");
filenames.add("b.txt");
String [] alines = new String[]{"a-begin", "blah", "blah2", "a-e... |
diff --git a/atlas-web/src/main/java/uk/ac/ebi/gxa/web/controller/AtlasViewController.java b/atlas-web/src/main/java/uk/ac/ebi/gxa/web/controller/AtlasViewController.java
index d1c8bd033..4b28969e7 100644
--- a/atlas-web/src/main/java/uk/ac/ebi/gxa/web/controller/AtlasViewController.java
+++ b/atlas-web/src/main/java/u... | true | true | public static void send(HttpServletResponse response, File file, ResourceType contentType) throws ResourceNotFoundException, IOException {
if (!file.exists()) {
log.warn("send() - unknown file requested: {} as {}", file, contentType);
throw new ResourceNotFoundException("Resource doe... | public static void send(HttpServletResponse response, File file, ResourceType contentType) throws ResourceNotFoundException, IOException {
if (!file.exists()) {
log.warn("send() - unknown file requested: {} as {}", file, contentType);
throw new ResourceNotFoundException("Resource doe... |
diff --git a/ISM/IoValidation.java b/ISM/IoValidation.java
index cb6127b..3eb420b 100644
--- a/ISM/IoValidation.java
+++ b/ISM/IoValidation.java
@@ -1,361 +1,361 @@
/*This file is part of GOssTo.
GOssTo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as ... | false | true | public void printResultsToFile(int ontology, RealMatrix matrix, GOTerm[][] axis, String outputName, ArrayList<String> notes, ArrayList<GOTerm> targetGoIDs, String[] geneIDs) throws IOException {
//re-validate file path:
validateOutputLocation(outputName);
//Creates output file(s) where speci... | public void printResultsToFile(int ontology, RealMatrix matrix, GOTerm[][] axis, String outputName, ArrayList<String> notes, ArrayList<GOTerm> targetGoIDs, String[] geneIDs) throws IOException {
//re-validate file path:
validateOutputLocation(outputName);
//Creates output file(s) where speci... |
diff --git a/src/com/android/camera/ui/CameraRootView.java b/src/com/android/camera/ui/CameraRootView.java
index 76fea2cfa..aee5c2fa4 100644
--- a/src/com/android/camera/ui/CameraRootView.java
+++ b/src/com/android/camera/ui/CameraRootView.java
@@ -1,132 +1,138 @@
/*
* Copyright (C) 2013 The Android Open Source Proj... | false | true | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int rotation = Util.getDisplayRotation((Activity) getContext());
// all the layout code assumes camera device orientation to be portrait
// adjust rotation for landscape
int orientation = getResources().getConfig... | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int rotation = Util.getDisplayRotation((Activity) getContext());
// all the layout code assumes camera device orientation to be portrait
// adjust rotation for landscape
int orientation = getResources().getConfig... |
diff --git a/src/test/java/org/apache/hadoop/hbase/regionserver/TestFSErrorsExposed.java b/src/test/java/org/apache/hadoop/hbase/regionserver/TestFSErrorsExposed.java
index e6785d293..9bbd4281d 100644
--- a/src/test/java/org/apache/hadoop/hbase/regionserver/TestFSErrorsExposed.java
+++ b/src/test/java/org/apache/hadoop... | true | true | public void testFullSystemBubblesFSErrors() throws Exception {
try {
util.startMiniCluster(1);
byte[] tableName = Bytes.toBytes("table");
byte[] fam = Bytes.toBytes("fam");
HBaseAdmin admin = new HBaseAdmin(util.getConfiguration());
HTableDescriptor desc = new HTableDescriptor(table... | public void testFullSystemBubblesFSErrors() throws Exception {
try {
// We set it not to run or it will trigger server shutdown while sync'ing
// because all the datanodes are bad
util.getConfiguration().setInt(
"hbase.regionserver.optionallogflushinterval", Integer.MAX_VALUE);
u... |
diff --git a/bundles/plugins/org.bonitasoft.studio.diagram.custom/src/org/bonitasoft/studio/diagram/custom/repository/DiagramRepositoryStore.java b/bundles/plugins/org.bonitasoft.studio.diagram.custom/src/org/bonitasoft/studio/diagram/custom/repository/DiagramRepositoryStore.java
index 37800da852..262f77fed7 100644
---... | true | true | protected InputStream handlePreImport(final String fileName,
InputStream inputStream) throws MigrationException {
CopyInputStream copyIs = null;
try{
final InputStream is = super.handlePreImport(fileName, inputStream);
copyIs = new CopyInputStream(is);
Resource r = getTmpEMFResource("beforeImport", cop... | protected InputStream handlePreImport(final String fileName,
InputStream inputStream) throws MigrationException {
CopyInputStream copyIs = null;
try{
final InputStream is = super.handlePreImport(fileName, inputStream);
copyIs = new CopyInputStream(is);
Resource r = getTmpEMFResource("beforeImport", cop... |
diff --git a/src/main/java/com/xpn/xwiki/plugin/lucene/searcherProvider/SearcherProviderManager.java b/src/main/java/com/xpn/xwiki/plugin/lucene/searcherProvider/SearcherProviderManager.java
index 0805196..2607510 100644
--- a/src/main/java/com/xpn/xwiki/plugin/lucene/searcherProvider/SearcherProviderManager.java
+++ b... | false | true | public void closeAllForCurrentThread() {
LOGGER.debug("onEvent start in manager [" + System.identityHashCode(this)
+ "]: remaining [" + getAllSearcherProvider().size()
+ "] searchProviders.");
Vector<SearcherProvider> searcherProviderToRemove = new Vector<SearcherProvider>();
for (Searcher... | public void closeAllForCurrentThread() {
LOGGER.debug("closeAllForCurrentThread start in manager [" + System.identityHashCode(this)
+ "]: remaining [" + getAllSearcherProvider().size()
+ "] searchProviders.");
Vector<SearcherProvider> searcherProviderToRemove = new Vector<SearcherProvider>();
... |
diff --git a/orbisgis-core/src/main/java/org/orbisgis/core/renderer/symbol/LineSymbol.java b/orbisgis-core/src/main/java/org/orbisgis/core/renderer/symbol/LineSymbol.java
index b0d5e2c80..0f4384b26 100644
--- a/orbisgis-core/src/main/java/org/orbisgis/core/renderer/symbol/LineSymbol.java
+++ b/orbisgis-core/src/main/ja... | true | true | public Envelope draw(Graphics2D g, Geometry geom, AffineTransform at,
RenderPermission permission) throws DriverException {
LiteShape ls = new LiteShape(geom, at, true, 0.5);
drawingSize = lineWidth;
if (mapUnits) {
try {
drawingSize = (int) toPixelUnits(lineWidth, at);
} catch (NoninvertibleTrans... | public Envelope draw(Graphics2D g, Geometry geom, AffineTransform at,
RenderPermission permission) throws DriverException {
LiteShape ls = new LiteShape(geom, at, true, 0.5);
drawingSize = lineWidth;
if (mapUnits) {
try {
drawingSize = (int) toPixelUnits(lineWidth, at);
} catch (NoninvertibleTransf... |
diff --git a/swing_ui/src/org/hanuna/gitalk/swing_ui/ErrorFrame.java b/swing_ui/src/org/hanuna/gitalk/swing_ui/ErrorFrame.java
index 9db88ec..ae70790 100644
--- a/swing_ui/src/org/hanuna/gitalk/swing_ui/ErrorFrame.java
+++ b/swing_ui/src/org/hanuna/gitalk/swing_ui/ErrorFrame.java
@@ -1,31 +1,31 @@
package org.hanuna.g... | true | true | private void prepare(@NotNull String message) {
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
JLabel label = new JLabel(message);
setContentPane(label);
pack();
setModalExclusionType(Dialog.ModalExclusionType.NO_EXCLUDE);
setMinimumSize(new Dimension(200, 5... | private void prepare(@NotNull String message) {
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
JTextArea textArea = new JTextArea(message);
setContentPane(textArea);
pack();
setModalExclusionType(Dialog.ModalExclusionType.NO_EXCLUDE);
setMinimumSize(new Dime... |
diff --git a/com.pactera.eclipse.efficient/src/com/pactera/eclipse/efficient/poi/DesignParser.java b/com.pactera.eclipse.efficient/src/com/pactera/eclipse/efficient/poi/DesignParser.java
index 6c8ac53..dedeecc 100644
--- a/com.pactera.eclipse.efficient/src/com/pactera/eclipse/efficient/poi/DesignParser.java
+++ b/com.p... | true | true | public static DesignDefination parseDesignFile(File file) throws IOException {
FileInputStream input = null;
try {
DesignDefination designDefine = new DesignDefination();
input = new FileInputStream(file);
HSSFSheet sheet = new HSSFWorkbook(new POIFSFileSystem(input)).getSheetAt(0);
HSSFRow row = sheet... | public static DesignDefination parseDesignFile(File file) throws IOException {
FileInputStream input = null;
try {
DesignDefination designDefine = new DesignDefination();
input = new FileInputStream(file);
HSSFSheet sheet = new HSSFWorkbook(new POIFSFileSystem(input)).getSheetAt(0);
HSSFRow row = sheet... |
diff --git a/src/impl/java/org/wyona/security/impl/yarep/YarepUser.java b/src/impl/java/org/wyona/security/impl/yarep/YarepUser.java
index 674352c..90f67d3 100644
--- a/src/impl/java/org/wyona/security/impl/yarep/YarepUser.java
+++ b/src/impl/java/org/wyona/security/impl/yarep/YarepUser.java
@@ -1,707 +1,707 @@
packag... | false | true | protected void configure(Configuration config) throws ConfigurationException, AccessManagementException {
// Compulsory fields
setID(config.getAttribute(ID));
//log.debug("Read user profile: " + getID());
setName(config.getChild(NAME, false).getValue(null));
// Opti... | protected void configure(Configuration config) throws ConfigurationException, AccessManagementException {
// Compulsory fields
setID(config.getAttribute(ID));
//log.debug("Read user profile: " + getID());
setName(config.getChild(NAME, false).getValue(null));
// Opti... |
diff --git a/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/ImportSchemasFromXmlWizard.java b/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wizards/ImportSchemasFromXmlWizard.java
index 56252b2a3..e613be406 100644
--- a/schemaeditor/src/main/java/org/apache/d... | false | true | public boolean performFinish()
{
// Saving the dialog settings
page.saveDialogSettings();
// Getting the schemas to be imported
final File[] selectedSchemasFiles = page.getSelectedSchemaFiles();
schemaChecker.disableModificationsListening();
try
{
... | public boolean performFinish()
{
// Saving the dialog settings
page.saveDialogSettings();
// Getting the schemas to be imported
final File[] selectedSchemasFiles = page.getSelectedSchemaFiles();
schemaChecker.disableModificationsListening();
try
{
... |
diff --git a/src/main/java/net/krinsoft/privileges/Privileges.java b/src/main/java/net/krinsoft/privileges/Privileges.java
index b49b0c1..9a1a058 100644
--- a/src/main/java/net/krinsoft/privileges/Privileges.java
+++ b/src/main/java/net/krinsoft/privileges/Privileges.java
@@ -1,296 +1,300 @@
package net.krinsoft.privi... | false | true | public void registerConfiguration() {
getUsers().setDefaults(YamlConfiguration.loadConfiguration(this.getClass().getResourceAsStream("/users.yml")));
getUsers().options().copyDefaults(true);
saveUsers();
getGroups().setDefaults(YamlConfiguration.loadConfiguration(this.getCla... | public void registerConfiguration() {
getUsers().setDefaults(YamlConfiguration.loadConfiguration(this.getClass().getResourceAsStream("/users.yml")));
if (!new File(getDataFolder(), "users.yml").exists()) {
getUsers().options().copyDefaults(true);
}
saveUsers();
... |
diff --git a/org.ektorp/src/main/java/org/ektorp/http/StdHttpClient.java b/org.ektorp/src/main/java/org/ektorp/http/StdHttpClient.java
index 26b4637..aef751f 100644
--- a/org.ektorp/src/main/java/org/ektorp/http/StdHttpClient.java
+++ b/org.ektorp/src/main/java/org/ektorp/http/StdHttpClient.java
@@ -1,447 +1,449 @@
pa... | true | true | private Scheme configureScheme() {
if (enableSSL) {
try {
if (sslSocketFactory == null) {
SSLContext context = SSLContext.getInstance("TLS");
if (relaxedSSLSettings) {
context.init(
null,
new TrustManager[] { new X509TrustManager() {
public java.security.cer... | private Scheme configureScheme() {
if (enableSSL) {
try {
if (sslSocketFactory == null) {
SSLContext context = SSLContext.getInstance("TLS");
if (relaxedSSLSettings) {
context.init(
null,
new TrustManager[] { new X509TrustManager() {
public java.security.cer... |
diff --git a/src/com/mpower/util/ModifyReportJRXML.java b/src/com/mpower/util/ModifyReportJRXML.java
index 304245b..a5663f2 100644
--- a/src/com/mpower/util/ModifyReportJRXML.java
+++ b/src/com/mpower/util/ModifyReportJRXML.java
@@ -1,1085 +1,1085 @@
/**
*
*/
package com.mpower.util;
import java.io.File;
impo... | true | true | private Element createGroupFooterBand(Document document,
HashMap<String, Integer> fieldProperties,
HashMap<String, Integer> fieldWidth,
String resetGroup) {
//
//Variables
Integer bandTotalHeight = 0;
Integer rowHeight = 16;
int y = 0;
int x = 0;
int width = 0;
int xCalc = 0;... | private Element createGroupFooterBand(Document document,
HashMap<String, Integer> fieldProperties,
HashMap<String, Integer> fieldWidth,
String resetGroup) {
//
//Variables
Integer bandTotalHeight = 0;
Integer rowHeight = 16;
int y = 0;
int x = 0;
int width = 0;
int xCalc = 0;... |
diff --git a/src/main/java/com/in6k/mypal/controller/TransactionController.java b/src/main/java/com/in6k/mypal/controller/TransactionController.java
index bd26c64..0476354 100644
--- a/src/main/java/com/in6k/mypal/controller/TransactionController.java
+++ b/src/main/java/com/in6k/mypal/controller/TransactionController.... | false | true | public String creationForm(@RequestParam("debit") String debit, @RequestParam("credit") String credit) {
return "create";
}
| public String creationForm() {
return "transaction/create";
}
|
diff --git a/generate-fixture/test/org/immutables/generate/silly/CriteriaBuilderTest.java b/generate-fixture/test/org/immutables/generate/silly/CriteriaBuilderTest.java
index 5038c329..2e50df53 100644
--- a/generate-fixture/test/org/immutables/generate/silly/CriteriaBuilderTest.java
+++ b/generate-fixture/test/org/immu... | true | true | public void ranges() {
check(stringify(where().attr1AtLeast("1")))
.is("{ 'attr1' : { '$gte' : '1'}}");
check(stringify(where().attr1LessThan("ZZZ")))
.is("{ 'attr1' : { '$lt' : 'ZZZ'}}");
check(stringify(where().idAtLeast("5")))
.is("{ '_id' : { '$gte' : '5'}}");
check(stri... | public void ranges() {
check(stringify(SillyStructureWithIdRepository.where().attr1AtLeast("1")))
.is("{ 'attr1' : { '$gte' : '1'}}");
check(stringify(where().attr1LessThan("ZZZ")))
.is("{ 'attr1' : { '$lt' : 'ZZZ'}}");
check(stringify(where().idAtLeast("5")))
.is("{ '_id' : { '$... |
diff --git a/src/main/java/cz/muni/fi/publishsubscribe/matchingtree/Subscription.java b/src/main/java/cz/muni/fi/publishsubscribe/matchingtree/Subscription.java
index f3a8f8c..cd7d944 100644
--- a/src/main/java/cz/muni/fi/publishsubscribe/matchingtree/Subscription.java
+++ b/src/main/java/cz/muni/fi/publishsubscribe/ma... | true | true | public void addPredicate(
Predicate<? extends Comparable<?>, ? extends Comparable<?>> predicate) {
this.predicates.add(predicate);
}
| public void addPredicate(
Predicate<? extends Comparable, ? extends Comparable> predicate) {
this.predicates.add(predicate);
}
|
diff --git a/src/com/where/hadoop/LSHinfostrip.java b/src/com/where/hadoop/LSHinfostrip.java
index c653e2d..6389bae 100644
--- a/src/com/where/hadoop/LSHinfostrip.java
+++ b/src/com/where/hadoop/LSHinfostrip.java
@@ -1,183 +1,183 @@
package com.where.hadoop;
import java.io.BufferedReader;
import java.io.BufferedWr... | true | true | public void stripAndWrite(JSONObject line, BufferedWriter writer) throws JSONException, IOException
{
JSONObject json = line.optJSONObject("location");
if(json != null)
{
if(line.optString("ypurl").contains("yellowpages"))
{
//yellowpages
json.put("source", "yp");
String phone = line.optS... | public void stripAndWrite(JSONObject line, BufferedWriter writer) throws JSONException, IOException
{
JSONObject json = line.optJSONObject("location");
if(json != null)
{
if(line.optString("ypurl").contains("yellowpages"))
{
//yellowpages
json.put("source", "yp");
String phone = line.optS... |
diff --git a/src/com/android/camera/EffectsRecorder.java b/src/com/android/camera/EffectsRecorder.java
index bb7c8136..737e828f 100644
--- a/src/com/android/camera/EffectsRecorder.java
+++ b/src/com/android/camera/EffectsRecorder.java
@@ -1,891 +1,898 @@
/*
* Copyright (C) 2011 The Android Open Source Project
*
... | true | true | private synchronized void initializeEffect(boolean forceReset) {
if (forceReset ||
mCurrentEffect != mEffect ||
mCurrentEffect == EFFECT_BACKDROPPER) {
if (mLogVerbose) {
Log.v(TAG, "Effect initializing. Preview size "
+ mPreviewWidt... | private synchronized void initializeEffect(boolean forceReset) {
if (forceReset ||
mCurrentEffect != mEffect ||
mCurrentEffect == EFFECT_BACKDROPPER) {
if (mLogVerbose) {
Log.v(TAG, "Effect initializing. Preview size "
+ mPreviewWidt... |
diff --git a/src/main/java/org/apache/commons/digester3/RulesBinderImpl.java b/src/main/java/org/apache/commons/digester3/RulesBinderImpl.java
index 14ede03d..25444e1c 100644
--- a/src/main/java/org/apache/commons/digester3/RulesBinderImpl.java
+++ b/src/main/java/org/apache/commons/digester3/RulesBinderImpl.java
@@ -1... | true | true | public LinkedRuleBuilder forPattern(String pattern) {
final String keyPattern;
if (pattern == null || pattern.length() == 0) {
this.addError(new IllegalArgumentException("Null or empty pattern is not valid"));
keyPattern = null;
} else {
if (pattern.endsW... | public LinkedRuleBuilder forPattern(String pattern) {
final String keyPattern;
if (pattern == null || pattern.length() == 0) {
this.addError(new IllegalArgumentException("Null or empty pattern is not valid"));
keyPattern = null;
} else {
if (pattern.endsW... |
diff --git a/BetterBatteryStats/src/com/asksven/betterbatterystats/data/Reading.java b/BetterBatteryStats/src/com/asksven/betterbatterystats/data/Reading.java
index c094ed17..c85820ab 100644
--- a/BetterBatteryStats/src/com/asksven/betterbatterystats/data/Reading.java
+++ b/BetterBatteryStats/src/com/asksven/betterbatt... | true | true | public Reading(Context context, Reference refFrom, Reference refTo)
{
otherStats = new ArrayList<StatElement>();
kernelWakelockStats = new ArrayList<StatElement>();
partialWakelockStats = new ArrayList<StatElement>();
alarmStats = new ArrayList<StatElement>();
networkStats = new ArrayList<StatE... | public Reading(Context context, Reference refFrom, Reference refTo)
{
otherStats = new ArrayList<StatElement>();
kernelWakelockStats = new ArrayList<StatElement>();
partialWakelockStats = new ArrayList<StatElement>();
alarmStats = new ArrayList<StatElement>();
networkStats = new ArrayList<StatE... |
diff --git a/Sources/ModelManager/Source/org/softwaresynthesis/mytalk/server/dao/HibernateUtil.java b/Sources/ModelManager/Source/org/softwaresynthesis/mytalk/server/dao/HibernateUtil.java
index d2571291..9c19db6b 100644
--- a/Sources/ModelManager/Source/org/softwaresynthesis/mytalk/server/dao/HibernateUtil.java
+++ b/... | true | true | private HibernateUtil()
{
Configuration conf = null;
String confDirectory = System.getenv("MyTalkConfiguration") + "hibernate.cfg.xml";
try
{
conf = new Configuration();
conf = conf.configure(confDirectory);
this.factory = conf.buildSessionFactory();
}
catch (Throwable ex)
{
throw new Except... | private HibernateUtil()
{
Configuration conf = null;
String confDirectory = System.getenv("MyTalkConfiguration") + "\\hibernate.cfg.xml";
try
{
conf = new Configuration();
conf = conf.configure(confDirectory);
this.factory = conf.buildSessionFactory();
}
catch (Throwable ex)
{
throw new Exce... |
diff --git a/src/main/java/net/worldoftomorrow/noitem/lists/YamlFile.java b/src/main/java/net/worldoftomorrow/noitem/lists/YamlFile.java
index 4218973..ed0416f 100644
--- a/src/main/java/net/worldoftomorrow/noitem/lists/YamlFile.java
+++ b/src/main/java/net/worldoftomorrow/noitem/lists/YamlFile.java
@@ -1,89 +1,92 @@
... | true | true | private YamlConfiguration load() {
try {
// If the file does not exist, create it. Return null if it fails
if (!file.exists() && !file.createNewFile()) {
plugin.getLogger().severe("Could not create config file: " + file.getName());
return null;
} else {
// Get the config file from the plugin fol... | private YamlConfiguration load() {
try {
// If the file does not exist, create it. Return null if it fails
if(!file.getParentFile().exists() && !file.getParentFile().mkdirs()) {
plugin.getLogger().severe("Could not create parent directory.");
}
if (!file.exists() && !file.createNewFile()) {
plugi... |
diff --git a/src/com/pepsdev/timedlight/TimedLightView.java b/src/com/pepsdev/timedlight/TimedLightView.java
index 24e7a96..5e7f7d5 100644
--- a/src/com/pepsdev/timedlight/TimedLightView.java
+++ b/src/com/pepsdev/timedlight/TimedLightView.java
@@ -1,325 +1,327 @@
package com.pepsdev.timedlight;
import android.cont... | true | true | public TimedLightView(Context context, final float density) {
super(context);
mSurfaceHolder = getHolder();
mSurfaceHolder.addCallback(this);
lamp_off = BitmapFactory.decodeResource(getContext().getResources(),
R.drawable.lamp);
lamp_on = BitmapFactory.decode... | public TimedLightView(Context context, final float density) {
super(context);
mSurfaceHolder = getHolder();
mSurfaceHolder.addCallback(this);
lamp_off = BitmapFactory.decodeResource(getContext().getResources(),
R.drawable.lamp);
lamp_on = BitmapFactory.decode... |
diff --git a/src/org/eclipse/core/internal/utils/StringPoolJob.java b/src/org/eclipse/core/internal/utils/StringPoolJob.java
index 50697683..f81975fc 100644
--- a/src/org/eclipse/core/internal/utils/StringPoolJob.java
+++ b/src/org/eclipse/core/internal/utils/StringPoolJob.java
@@ -1,128 +1,129 @@
/*******************... | false | true | protected IStatus run(IProgressMonitor monitor) {
//copy current participants to handle concurrent additions and removals to map
Map.Entry[] entries = (Map.Entry[]) participants.entrySet().toArray(new Map.Entry[0]);
ISchedulingRule[] rules = new ISchedulingRule[entries.length];
IStringPoolParticipant[] toRun =... | protected IStatus run(IProgressMonitor monitor) {
//copy current participants to handle concurrent additions and removals to map
Map.Entry[] entries = (Map.Entry[]) participants.entrySet().toArray(new Map.Entry[0]);
ISchedulingRule[] rules = new ISchedulingRule[entries.length];
IStringPoolParticipant[] toRun =... |
diff --git a/src/main/org/openscience/jchempaint/action/ExportAction.java b/src/main/org/openscience/jchempaint/action/ExportAction.java
index c271d93..1a03abd 100644
--- a/src/main/org/openscience/jchempaint/action/ExportAction.java
+++ b/src/main/org/openscience/jchempaint/action/ExportAction.java
@@ -1,166 +1,171 @@... | true | true | public void actionPerformed(ActionEvent event) {
JFileChooser chooser = new JFileChooser();
chooser.setCurrentDirectory(this.jcpPanel.getCurrentWorkDirectory());
JCPExportFileFilter.addChoosableFileFilters(chooser);
if (currentFilter != null) {
chooser.setFileFilter(curre... | public void actionPerformed(ActionEvent event) {
JFileChooser chooser = new JFileChooser();
chooser.setCurrentDirectory(this.jcpPanel.getCurrentWorkDirectory());
JCPExportFileFilter.addChoosableFileFilters(chooser);
if (currentFilter != null) {
{
for(int i... |
diff --git a/src/com/irccloud/android/LoginActivity.java b/src/com/irccloud/android/LoginActivity.java
index dbb2e7c6..81157dcb 100644
--- a/src/com/irccloud/android/LoginActivity.java
+++ b/src/com/irccloud/android/LoginActivity.java
@@ -1,146 +1,146 @@
package com.irccloud.android;
import java.io.IOException;
im... | true | true | public void onPostExecute(JSONObject result) {
email.setEnabled(true);
password.setEnabled(true);
loginBtn.setEnabled(true);
if(result != null && result.has("session")) {
SharedPreferences.Editor editor = getSharedPreferences("prefs", 0).edit();
try {
editor.putString("session_key", result.g... | public void onPostExecute(JSONObject result) {
email.setEnabled(true);
password.setEnabled(true);
loginBtn.setEnabled(true);
if(result != null && result.has("session")) {
SharedPreferences.Editor editor = getSharedPreferences("prefs", 0).edit();
try {
editor.putString("session_key", result.g... |
diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/Authenticate.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/Authenticate.java
index dace2e945..e54bd9e8e 100644
--- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/Authenticate.java
+++ b/webapp/src/edu/cornell/ma... | false | true | public void doPost( HttpServletRequest request, HttpServletResponse response ) {
try {
HttpSession session = request.getSession();
if(session.isNew()){
session.setMaxInactiveInterval(300); // seconds, not milliseconds
}
userDao = ((WebappDaoFac... | public void doPost( HttpServletRequest request, HttpServletResponse response ) {
try {
HttpSession session = request.getSession();
if(session.isNew()){
session.setMaxInactiveInterval(300); // seconds, not milliseconds
}
userDao = ((WebappDaoFac... |
diff --git a/microemulator/microemu-javase-swing/src/main/java/org/microemu/app/Main.java b/microemulator/microemu-javase-swing/src/main/java/org/microemu/app/Main.java
index d576fe9e..843fb3d0 100644
--- a/microemulator/microemu-javase-swing/src/main/java/org/microemu/app/Main.java
+++ b/microemulator/microemu-javase-... | true | true | public void actionPerformed(ActionEvent e) {
if (saveForWebChooser == null) {
ExtensionFileFilter fileFilter = new ExtensionFileFilter("HTML files");
fileFilter.addExtension("html");
saveForWebChooser = new JFileChooser();
saveForWebChooser.setFileFilter(fileFilter);
saveForWebChooser.setDialog... | public void actionPerformed(ActionEvent e) {
if (saveForWebChooser == null) {
ExtensionFileFilter fileFilter = new ExtensionFileFilter("HTML files");
fileFilter.addExtension("html");
saveForWebChooser = new JFileChooser();
saveForWebChooser.setFileFilter(fileFilter);
saveForWebChooser.setDialog... |
diff --git a/core/service/src/main/java/com/camunda/fox/platform/impl/jobexecutor/ContainerExecuteJobsRunnable.java b/core/service/src/main/java/com/camunda/fox/platform/impl/jobexecutor/ContainerExecuteJobsRunnable.java
index 305c33cb6..49ec87fcd 100644
--- a/core/service/src/main/java/com/camunda/fox/platform/impl/jo... | true | true | public void run() {
// all jobs in the list are from the same
// process instance -> same deployment
ProcessArchiveContext processArchiveContext = null;
try {
String processDefinitionKey = jobExecutor.getCommandExecutor()
.execute(new GetProcessDefintionKeyForJobId(jobIds.... | public void run() {
// all jobs in the list are from the same
// process instance -> same deployment
ProcessArchiveContext processArchiveContext = null;
try {
String processDefinitionKey = jobExecutor.getCommandExecutor()
.execute(new GetProcessDefintionKeyForJobId(jobIds.... |
diff --git a/CoreComponents/src/org/sleuthkit/autopsy/corecomponents/DataResultViewerTable.java b/CoreComponents/src/org/sleuthkit/autopsy/corecomponents/DataResultViewerTable.java
index 30c040737..f96b797f1 100644
--- a/CoreComponents/src/org/sleuthkit/autopsy/corecomponents/DataResultViewerTable.java
+++ b/CoreCompon... | true | true | public void setNode(Node selectedNode) {
// change the cursor to "waiting cursor" for this operation
this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
try {
boolean hasChildren = false;
if (selectedNode != null) {
hasChildren = selected... | public void setNode(Node selectedNode) {
// change the cursor to "waiting cursor" for this operation
this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
try {
boolean hasChildren = false;
if (selectedNode != null) {
hasChildren = selected... |
diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingInfo.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingInfo.java
index a5917a208..3642ca313 100644
--- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/MappingInfo.java
+++ b/openjpa-jdbc/src/main/java/org/apache/op... | false | true | private void mergeJoinColumn(MetaDataContext context, String prefix,
Column given, Object[][] joins, int idx, Table table, ClassMapping cls,
ClassMapping rel, ForeignKeyDefaults def, boolean inversable,
boolean adapt, boolean fill) {
// default to the primary key column name if this ... | private void mergeJoinColumn(MetaDataContext context, String prefix,
Column given, Object[][] joins, int idx, Table table, ClassMapping cls,
ClassMapping rel, ForeignKeyDefaults def, boolean inversable,
boolean adapt, boolean fill) {
// default to the primary key column name if this ... |
diff --git a/src/com/escoand/android/wceu/ArticleActivity.java b/src/com/escoand/android/wceu/ArticleActivity.java
index 889a7b5..5faf8c3 100644
--- a/src/com/escoand/android/wceu/ArticleActivity.java
+++ b/src/com/escoand/android/wceu/ArticleActivity.java
@@ -1,66 +1,67 @@
package com.escoand.android.wceu;
import ... | false | true | protected void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.article);
/* action bar */
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.HONEYCOMB)
getActionBar().setDisplayHomeAsUpEnabled(true);
Cursor cursor = null;
WebView view = (WebView) fi... | protected void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.article);
/* action bar */
// TODO make back button functional
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)
getActionBar().setDisplayHomeAsUpEnabled(true);
Cursor curso... |
diff --git a/src/main/java/me/blha303/CrossServerChat.java b/src/main/java/me/blha303/CrossServerChat.java
index c1c8dad..8292af4 100644
--- a/src/main/java/me/blha303/CrossServerChat.java
+++ b/src/main/java/me/blha303/CrossServerChat.java
@@ -1,130 +1,130 @@
package me.blha303;
import java.io.File;
import java.i... | false | true | public void loadYAML() {
try {
file.createNewFile();
} catch (IOException e) {
ProxyServer.getInstance().getLogger().log(Level.WARNING, "Could not create config file", e);
}
try {
FileReader rd = new FileReader(file);
data = yaml.loadAs(rd, Map.class);
} catch (IOException ex) {
ProxyServer... | public void loadYAML() {
try {
file.createNewFile();
} catch (IOException e) {
ProxyServer.getInstance().getLogger().log(Level.WARNING, "Could not create config file", e);
}
try {
FileReader rd = new FileReader(file);
data = yaml.loadAs(rd, Map.class);
} catch (IOException ex) {
ProxyServer... |
diff --git a/app/src/processing/app/contrib/ModeContribution.java b/app/src/processing/app/contrib/ModeContribution.java
index a7db4a2bd..26a13a2de 100644
--- a/app/src/processing/app/contrib/ModeContribution.java
+++ b/app/src/processing/app/contrib/ModeContribution.java
@@ -1,178 +1,179 @@
/* -*- mode: java; c-basic... | true | true | private ModeContribution(Base base, File folder) {
super(folder, ModeContribution.propertiesFileName);
this.base = base;
File modeDirectory = new File(folder, "mode");
// add .jar and .zip files to classpath
File[] archives = modeDirectory.listFiles(new FilenameFilter() {
publ... | private ModeContribution(Base base, File folder) {
super(folder, ModeContribution.propertiesFileName);
this.base = base;
File modeDirectory = new File(folder, "mode");
// add .jar and .zip files to classpath
File[] archives = modeDirectory.listFiles(new FilenameFilter() {
publ... |
diff --git a/src/main/java/org/uncertweb/aquacrop/remote/AquaCropServer.java b/src/main/java/org/uncertweb/aquacrop/remote/AquaCropServer.java
index 28c4271..b9f8c03 100644
--- a/src/main/java/org/uncertweb/aquacrop/remote/AquaCropServer.java
+++ b/src/main/java/org/uncertweb/aquacrop/remote/AquaCropServer.java
@@ -1,1... | true | true | public static void main(String[] args) {
if (args.length > 1) {
// parse arguments
int port = Integer.parseInt(args[0]);
String basePath = args[1];
String prefixCommand = null;
boolean keepFiles = false;
if (args.length > 2) {
String lcArgs = args[2].toLowerCase();
if (lcArgs.equals("tru... | public static void main(String[] args) {
if (args.length > 1) {
// parse arguments
int port = Integer.parseInt(args[0]);
String basePath = args[1];
String prefixCommand = null;
boolean keepFiles = false;
if (args.length > 2) {
String lcArgs = args[2].toLowerCase();
if (lcArgs.equals("tru... |
diff --git a/WiFiServer/src/org/openintents/wifiserver/requesthandler/notes/UpdateNote.java b/WiFiServer/src/org/openintents/wifiserver/requesthandler/notes/UpdateNote.java
index 8d93924..1dfaf97 100644
--- a/WiFiServer/src/org/openintents/wifiserver/requesthandler/notes/UpdateNote.java
+++ b/WiFiServer/src/org/openint... | false | true | protected void getResponse(HttpRequest request, HttpResponse response, HttpContext context) {
if (!"POST".equals(request.getRequestLine().getMethod())) {
response.setStatusCode(405);
return;
}
if (request instanceof BasicHttpEntityEnclosingRequest) {
Http... | protected void getResponse(HttpRequest request, HttpResponse response, HttpContext context) {
if (!"POST".equals(request.getRequestLine().getMethod())) {
response.setStatusCode(405);
return;
}
if (request instanceof BasicHttpEntityEnclosingRequest) {
Http... |
diff --git a/app/src/com/appchallenge/android/StartNotificationServiceAtBoot.java b/app/src/com/appchallenge/android/StartNotificationServiceAtBoot.java
index 6171f65..79ba927 100644
--- a/app/src/com/appchallenge/android/StartNotificationServiceAtBoot.java
+++ b/app/src/com/appchallenge/android/StartNotificationServic... | true | true | public void onReceive(Context context, Intent intent) {
if ("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
Intent serviceIntent = new Intent(context, NotificationService.class);
PendingIntent pintent = PendingIntent.getService(context, 0, serviceIntent, 0);
Shared... | public void onReceive(Context context, Intent intent) {
if ("android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
Intent serviceIntent = new Intent(context, NotificationService.class);
PendingIntent pintent = PendingIntent.getService(context, 0, serviceIntent, 0);
Shared... |
diff --git a/asrs/XMLLoader.java b/asrs/XMLLoader.java
index 8d1989a..4923749 100644
--- a/asrs/XMLLoader.java
+++ b/asrs/XMLLoader.java
@@ -1,74 +1,72 @@
package asrs;
import order.*;
import org.jdom2.*;
import org.jdom2.input.SAXBuilder;
import java.io.File;
import java.io.IOException;
import java.text.P... | false | true | public static Order readOrder(String path){
SAXBuilder builder = new SAXBuilder();
File xmlFile = new File(path);
Order order = null;
try {
Document document = (Document) builder.build(xmlFile);
Element rootNode = document.getRootElement();
// Get date from XML
String dateXML = rootNod... | public static Order readOrder(String path) throws ProductNotFoundException{
SAXBuilder builder = new SAXBuilder();
File xmlFile = new File(path);
Order order = null;
try {
Document document = (Document) builder.build(xmlFile);
Element rootNode = document.getRootElement();
// Get date from... |
diff --git a/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestNestedChildren.java b/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestNestedChildren.java
index 5353c924c..a413b4844 100644
--- a/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dat... | true | true | protected String generateConfig() {
StringBuilder sb = new StringBuilder();
sb.append("<dataConfig> \n");
sb.append("<dataSource name=\"derby\" driver=\"org.apache.derby.jdbc.EmbeddedDriver\" url=\"jdbc:derby:memory:derbyDB;\" /> \n");
sb.append("<document name=\"TestSimplePropertiesWriter\"> \n");
... | protected String generateConfig() {
StringBuilder sb = new StringBuilder();
sb.append("<dataConfig> \n");
sb.append("<dataSource name=\"derby\" driver=\"org.apache.derby.jdbc.EmbeddedDriver\" url=\"jdbc:derby:memory:derbyDB;\" /> \n");
sb.append("<document name=\"TestSimplePropertiesWriter\"> \n");
... |
diff --git a/src/main/java/me/desht/dhutils/commands/AbstractCommand.java b/src/main/java/me/desht/dhutils/commands/AbstractCommand.java
index d12d4fe..9ac47ea 100644
--- a/src/main/java/me/desht/dhutils/commands/AbstractCommand.java
+++ b/src/main/java/me/desht/dhutils/commands/AbstractCommand.java
@@ -1,283 +1,288 @@... | true | true | private void storeMatchedArgs(String[] args, CommandRecord rec) {
String[] tmpResult = new String[args.length - rec.subCommands.length];
for (int i = rec.subCommands.length; i < args.length; i++) {
tmpResult[i - rec.subCommands.length] = args[i];
}
String[] tmpArgs;
if (isQuotedArgs()) {
List<String... | private void storeMatchedArgs(String[] args, CommandRecord rec) {
String[] tmpResult = new String[args.length - rec.subCommands.length];
for (int i = rec.subCommands.length; i < args.length; i++) {
tmpResult[i - rec.subCommands.length] = args[i];
}
String[] tmpArgs;
if (isQuotedArgs()) {
List<String... |
diff --git a/modules/jobs/src/main/java/org/torquebox/jobs/JobSchedulizer.java b/modules/jobs/src/main/java/org/torquebox/jobs/JobSchedulizer.java
index 2991e7a26..3bdf32b19 100644
--- a/modules/jobs/src/main/java/org/torquebox/jobs/JobSchedulizer.java
+++ b/modules/jobs/src/main/java/org/torquebox/jobs/JobSchedulizer.... | true | true | private CountDownLatch installJob(
final BaseJob job,
final String rubyClassName,
final Injector<ComponentResolver> componentResolverInjector,
final Injector<RubyRuntimePool> rubyRuntimePoolInjector,
final Map<String, Object> config) {
final Servi... | private CountDownLatch installJob(
final BaseJob job,
final String rubyClassName,
final Injector<ComponentResolver> componentResolverInjector,
final Injector<RubyRuntimePool> rubyRuntimePoolInjector,
final Map<String, Object> config) {
final Servi... |
diff --git a/src/neuralNets/lib/learning/GA/AbstractChromoPool.java b/src/neuralNets/lib/learning/GA/AbstractChromoPool.java
index f53ce18..115e029 100644
--- a/src/neuralNets/lib/learning/GA/AbstractChromoPool.java
+++ b/src/neuralNets/lib/learning/GA/AbstractChromoPool.java
@@ -1,126 +1,126 @@
package neuralNets.lib... | true | true | protected static AbstractChromoPool createChromoPool(String mainPackage, String name)
{
AbstractChromoPool chromoPool = null;
try
{
chromoPool = (AbstractChromoPool) Class.forName("neuralNets.lib.learning.GA." + name).newInstance();
}
catch (InstantiationExcepti... | public static AbstractChromoPool createChromoPool(String name)
{
AbstractChromoPool chromoPool = null;
try
{
chromoPool = (AbstractChromoPool) Class.forName("neuralNets.lib.learning.GA." + name).newInstance();
}
catch (InstantiationException ex)
{
... |
diff --git a/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/tunables/TunableDialog.java b/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/tunables/TunableDialog.java
index 8e698ee96..1183749f7 100644
--- a/work-swing-impl/impl/src/main/java/org/cytoscape/work/internal/tunables/TunableDial... | true | true | private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
jScrollPane1 = new javax.swing.JScrollPane();
pnlButtons = new javax.swing.JPanel();
btnOK = new javax.swing.JButton();
btnCancel = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CL... | private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
jScrollPane1 = new javax.swing.JScrollPane();
pnlButtons = new javax.swing.JPanel();
btnOK = new javax.swing.JButton();
btnCancel = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CL... |
diff --git a/src/main/java/org/codehaus/mojo/rpm/FilteringDirectoryArchiver.java b/src/main/java/org/codehaus/mojo/rpm/FilteringDirectoryArchiver.java
index 70df191..2f803fd 100644
--- a/src/main/java/org/codehaus/mojo/rpm/FilteringDirectoryArchiver.java
+++ b/src/main/java/org/codehaus/mojo/rpm/FilteringDirectoryArchi... | true | true | protected void copyFile( ArchiveEntry entry, String vPath )
throws ArchiverException, IOException
{
if ( !filter || mavenFileFilter == null )
{
super.copyFile( entry, vPath );
}
else
{
// don't add "" to the archive
if ( vPath.l... | protected void copyFile( ArchiveEntry entry, String vPath )
throws IOException
{
if ( !filter || mavenFileFilter == null )
{
super.copyFile( entry, vPath );
}
else
{
// don't add "" to the archive
if ( vPath.length() <= 0 )
... |
diff --git a/src/com/android/phone/InCallScreen.java b/src/com/android/phone/InCallScreen.java
index 75f88c68..fc147016 100755
--- a/src/com/android/phone/InCallScreen.java
+++ b/src/com/android/phone/InCallScreen.java
@@ -1,4632 +1,4645 @@
/*
* Copyright (C) 2006 The Android Open Source Project
*
* Licensed und... | false | true | private void onDisconnect(AsyncResult r) {
Connection c = (Connection) r.result;
Connection.DisconnectCause cause = c.getDisconnectCause();
if (DBG) log("onDisconnect: connection '" + c + "', cause = " + cause
+ ", showing screen: " + mApp.isShowingCallScreen());
boo... | private void onDisconnect(AsyncResult r) {
Connection c = (Connection) r.result;
Connection.DisconnectCause cause = c.getDisconnectCause();
if (DBG) log("onDisconnect: connection '" + c + "', cause = " + cause
+ ", showing screen: " + mApp.isShowingCallScreen());
boo... |
diff --git a/src/model/Room.java b/src/model/Room.java
index 23acae6..9b8ec9f 100644
--- a/src/model/Room.java
+++ b/src/model/Room.java
@@ -1,88 +1,90 @@
package model;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeSupport;
import synclogic.SyncListener;
public class Room implements... | false | true | public boolean equals(Object obj) {
if (!(obj instanceof Room)) {
return false;
}
Room b = (Room) obj;
return (this.getId() == b.getId() && this.getCapacity() == b.getCapacity()
&& this.getName().equals(b.getName()));
}
| public boolean equals(Object obj) {
if (!(obj instanceof Room)) {
return false;
}
Room b = (Room) obj;
System.out.println("this.name = " + this.name);
System.out.println("b.name = " + b.name);
return (this.getId() == b.getId() && this.getCapacity() == b.getCapacity()
/*&& this.getName().equals(b.get... |
diff --git a/common/plugins/eu.esdihumboldt.hale.common.core/src/eu/esdihumboldt/hale/common/core/io/project/impl/DefaultProjectReader.java b/common/plugins/eu.esdihumboldt.hale.common.core/src/eu/esdihumboldt/hale/common/core/io/project/impl/DefaultProjectReader.java
index 04ffaf0e7..766912249 100644
--- a/common/plug... | false | true | protected IOReport execute(ProgressIndicator progress, IOReporter reporter)
throws IOProviderConfigurationException, IOException {
progress.begin("Load project", ProgressIndicator.UNKNOWN);
project = null;
InputStream in = getSource().getInput();
if (archive) {
// read from archive
ZipInputStrea... | protected IOReport execute(ProgressIndicator progress, IOReporter reporter)
throws IOProviderConfigurationException, IOException {
progress.begin("Load project", ProgressIndicator.UNKNOWN);
project = null;
InputStream in = getSource().getInput();
if (archive) {
// read from archive
ZipInputStrea... |
diff --git a/core-annotations/src/test/java/org/apache/directory/server/core/factory/DirectoryServiceFactoryTest.java b/core-annotations/src/test/java/org/apache/directory/server/core/factory/DirectoryServiceFactoryTest.java
index 40dede9112..636226e06c 100644
--- a/core-annotations/src/test/java/org/apache/directory/s... | true | true | public void testCreateDS() throws Exception
{
DefaultDirectoryServiceFactory factory = new DefaultDirectoryServiceFactory();
factory.build( "Test" );
DirectoryService service = factory.getDirectoryService();
assertTrue( service.isStarted() );
se... | public void testCreateDS() throws Exception
{
DefaultDirectoryServiceFactory factory = new DefaultDirectoryServiceFactory();
factory.init( "test" );
DirectoryService service = factory.getDirectoryService();
assertTrue( service.isStarted() );
ser... |
diff --git a/wint-framework/src/main/java/wint/mvc/pipeline/valves/CheckCsrfTokenValve.java b/wint-framework/src/main/java/wint/mvc/pipeline/valves/CheckCsrfTokenValve.java
index 83d6101..bc2f045 100644
--- a/wint-framework/src/main/java/wint/mvc/pipeline/valves/CheckCsrfTokenValve.java
+++ b/wint-framework/src/main/ja... | false | true | public void invoke(PipelineContext pipelineContext, InnerFlowData innerFlowData) {
Module module = innerFlowData.getModule();
if (!module.isDoAction()) {
pipelineContext.invokeNext(innerFlowData);
}
// 针对do-action做检查
if (!CsrfTokenUtil.checkCsrfByParameter(innerFl... | public void invoke(PipelineContext pipelineContext, InnerFlowData innerFlowData) {
Module module = innerFlowData.getModule();
if (!module.isDoAction()) {
pipelineContext.invokeNext(innerFlowData);
return;
}
// 针对do-action做检查
if (!CsrfTokenUtil.checkCsr... |
diff --git a/src/main/java/fjord/ast/ScriptFragment.java b/src/main/java/fjord/ast/ScriptFragment.java
index 13bd476..a8b41fa 100644
--- a/src/main/java/fjord/ast/ScriptFragment.java
+++ b/src/main/java/fjord/ast/ScriptFragment.java
@@ -1,20 +1,21 @@
package fjord.ast;
import java.util.List;
public class ScriptF... | true | true | @Override public void accept(NodeVisitor visitor) {
visitor.visit(this);
for (ModuleElem moduleElem : moduleElems) {
moduleElem.accept(visitor);
}
}
| @Override public void accept(NodeVisitor visitor) {
visitor.visit(this);
for (ModuleElem moduleElem : moduleElems) {
if (moduleElem != null)
moduleElem.accept(visitor);
}
}
|
diff --git a/src/de/aidger/view/models/UIAssistant.java b/src/de/aidger/view/models/UIAssistant.java
index 3cdd6052..c1b7fa85 100644
--- a/src/de/aidger/view/models/UIAssistant.java
+++ b/src/de/aidger/view/models/UIAssistant.java
@@ -1,108 +1,111 @@
package de.aidger.view.models;
import de.aidger.model.models.Assi... | true | true | public boolean equals(Object o) {
if (o instanceof IAssistant) {
IAssistant a = (IAssistant) o;
return (getFirstName() == null ? a.getFirstName() == null : (a
.getFirstName() == null ? false : a.getFirstName().equals(
getFirstName())))
... | public boolean equals(Object o) {
if (o instanceof IAssistant) {
IAssistant a = (IAssistant) o;
return (getFirstName() == null ? a.getFirstName() == null : (a
.getFirstName() == null ? false : a.getFirstName().equals(
getFirstName())))
... |
diff --git a/src/controller/Console.java b/src/controller/Console.java
index c516206..9defc29 100644
--- a/src/controller/Console.java
+++ b/src/controller/Console.java
@@ -1,244 +1,244 @@
/*
* Copyright (C) 2012, 2013 Andreas Halle
*
* This file is part of pplex.
*
* pplex is free software; you can redistri... | true | true | public void keyPressed(KeyEvent e) {
switch(e.getKeyCode()) {
case KeyEvent.VK_ENTER:
String text = jtfInput.getText();
if (!text.equals("")) {
jtaConsole.append("> " + text + "\n");
String res = shell.parse(text);
... | public void keyPressed(KeyEvent e) {
switch(e.getKeyCode()) {
case KeyEvent.VK_ENTER:
String text = jtfInput.getText();
if (!text.equals("")) {
jtaConsole.append("> " + text + "\n");
String res = shell.parse(text);
... |
diff --git a/src/main/java/beans/Register.java b/src/main/java/beans/Register.java
index 195d22c..729fe0b 100644
--- a/src/main/java/beans/Register.java
+++ b/src/main/java/beans/Register.java
@@ -1,133 +1,133 @@
package beans;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.faces.applicati... | true | true | public void validateBirthday(FacesContext ctx, UIComponent component,
Object value) throws ValidatorException {
SimpleDateFormat format = new SimpleDateFormat("dd.MM.yyyy");
//String birthday = format.format((Date) value);
String birthday = (String) value;
System.out.prin... | public void validateBirthday(FacesContext ctx, UIComponent component,
Object value) throws ValidatorException {
SimpleDateFormat format = new SimpleDateFormat("dd.MM.yyyy");
String birthday = format.format((Date) value);
// String birthday = (String) value;
System.out.prin... |
diff --git a/src/activities/Dialog_House.java b/src/activities/Dialog_House.java
index 388152ad..f7680503 100644
--- a/src/activities/Dialog_House.java
+++ b/src/activities/Dialog_House.java
@@ -1,231 +1,232 @@
package activities;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
imp... | true | true | public void onClick(View v) {
String tag = v.getTag().toString();
dialog_feature = new Dialog(getContext());
//1st list area where to put room
final AlertDialog.Builder listareachoice = new AlertDialog.Builder(getContext());
List<String> list_area = new ArrayList<String>();
for (Entity_Area area : listAre... | public void onClick(View v) {
String tag = v.getTag().toString();
dialog_feature = new Dialog(getContext());
//1st list area where to put room
final AlertDialog.Builder listareachoice = new AlertDialog.Builder(getContext());
List<String> list_area = new ArrayList<String>();
for (Entity_Area area : listAre... |
diff --git a/dspace-api/src/main/java/org/dspace/content/InstallItem.java b/dspace-api/src/main/java/org/dspace/content/InstallItem.java
index 72bfa083d..5a7c6d072 100644
--- a/dspace-api/src/main/java/org/dspace/content/InstallItem.java
+++ b/dspace-api/src/main/java/org/dspace/content/InstallItem.java
@@ -1,186 +1,19... | true | true | public static Item installItem(Context c, InProgressSubmission is,
String suppliedHandle) throws SQLException,
IOException, AuthorizeException
{
Item item = is.getItem();
String handle;
// create accession date
DCDate now = DCDate.getCurrent();
it... | public static Item installItem(Context c, InProgressSubmission is,
String suppliedHandle) throws SQLException,
IOException, AuthorizeException
{
Item item = is.getItem();
String handle;
// create accession date
DCDate now = DCDate.getCurrent();
it... |
diff --git a/src/main/java/uk/org/taverna/server/client/Run.java b/src/main/java/uk/org/taverna/server/client/Run.java
index 00d9da4..2527345 100644
--- a/src/main/java/uk/org/taverna/server/client/Run.java
+++ b/src/main/java/uk/org/taverna/server/client/Run.java
@@ -1,714 +1,720 @@
/*
* Copyright (c) 2010, 2011 Th... | false | true | private void ls_ports(String dir, List<String> lists, List<String> values,
boolean top) {
if (dir.endsWith("/")) {
dir = dir.substring(0, dir.length() - 1);
}
String dirList = server.getRunAttribute(this, links.get("wdir") + "/"
+ dir, "application/xml");
Document doc = ParseUtil.parse(dirList);
... | private void ls_ports(String dir, List<String> lists, List<String> values,
boolean top) {
if (dir.endsWith("/")) {
dir = dir.substring(0, dir.length() - 1);
}
String dirList = server.getRunAttribute(this, links.get("wdir") + "/"
+ dir, "application/xml");
Document doc = ParseUtil.parse(dirList);
... |
diff --git a/sql12/plugins/graph/src/test/java/net/sourceforge/squirrel_sql/plugins/graph/GraphDesktopPaneTest.java b/sql12/plugins/graph/src/test/java/net/sourceforge/squirrel_sql/plugins/graph/GraphDesktopPaneTest.java
index 76eebb7da..13293d10e 100644
--- a/sql12/plugins/graph/src/test/java/net/sourceforge/squirrel_... | true | true | public void setUp() throws Exception
{
mockApplication = mockHelper.createMock(IApplication.class);
mockHelper.replayAll();
super.serializableToTest = new GraphDesktopPane(mockApplication);
}
| public void setUp() throws Exception
{
mockApplication = mockHelper.createMock(IApplication.class);
mockHelper.replayAll();
super.serializableToTest = new GraphDesktopPane(mockApplication, null);
}
|
diff --git a/modules/org.restlet/src/org/restlet/engine/application/StatusFilter.java b/modules/org.restlet/src/org/restlet/engine/application/StatusFilter.java
index 3cfc1ad12..4ba2de98a 100644
--- a/modules/org.restlet/src/org/restlet/engine/application/StatusFilter.java
+++ b/modules/org.restlet/src/org/restlet/engi... | false | true | protected Representation getDefaultRepresentation(Status status,
Request request, Response response) {
final StringBuilder sb = new StringBuilder();
sb.append("<html>\n");
sb.append("<head>\n");
sb.append(" <title>Status page</title>\n");
sb.append("</head>\n");... | protected Representation getDefaultRepresentation(Status status,
Request request, Response response) {
final StringBuilder sb = new StringBuilder();
sb.append("<html>\n");
sb.append("<head>\n");
sb.append(" <title>Status page</title>\n");
sb.append("</head>\n");... |
diff --git a/flexodesktop/GUI/flexointerfacebuilder/src/main/java/org/openflexo/fib/view/widget/table/NumberColumn.java b/flexodesktop/GUI/flexointerfacebuilder/src/main/java/org/openflexo/fib/view/widget/table/NumberColumn.java
index 00d3cd66c..8f5f0a47d 100644
--- a/flexodesktop/GUI/flexointerfacebuilder/src/main/jav... | false | true | public TableCellEditor getCellEditor() {
if (editor == null) {
editor = new DefaultCellEditor(new JTextField()) {
@Override
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
final JTextField textfield = (JTextField) super.getTableCellE... | public TableCellEditor getCellEditor() {
if (editor == null) {
editor = new DefaultCellEditor(new JTextField()) {
@Override
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
final JTextField textfield = (JTextField) super.getTableCellE... |
diff --git a/src/main/java/edu/wisc/mum/status/dao/AbstractCachingJaxbLoader.java b/src/main/java/edu/wisc/mum/status/dao/AbstractCachingJaxbLoader.java
index 3682af1..7ef4931 100644
--- a/src/main/java/edu/wisc/mum/status/dao/AbstractCachingJaxbLoader.java
+++ b/src/main/java/edu/wisc/mum/status/dao/AbstractCachingJax... | true | true | protected final T getUnmarshalledObject() {
final WatchKey changedKey = watchService.poll();
try {
if (changedKey != null || this.unmarshalledObject == null) {
//Read all pending events
final List<WatchEvent<?>> watchEvents = changedKey.pollEvents();
... | protected final T getUnmarshalledObject() {
final WatchKey changedKey = watchService.poll();
try {
if (changedKey != null || this.unmarshalledObject == null) {
//Read all pending events
List<WatchEvent<?>> watchEvents = null;
if (changedKey... |
diff --git a/src/edu/umn/cs/spatialHadoop/nasa/RecoverHoles.java b/src/edu/umn/cs/spatialHadoop/nasa/RecoverHoles.java
index f01521b6..b63800c0 100644
--- a/src/edu/umn/cs/spatialHadoop/nasa/RecoverHoles.java
+++ b/src/edu/umn/cs/spatialHadoop/nasa/RecoverHoles.java
@@ -1,109 +1,113 @@
/*
* Licensed to the Apache So... | false | true | public static void recoverLocal(Path dir) throws IOException {
FileSystem fs = dir.getFileSystem(new Configuration());
FileStatus[] allImages = CommandLineArguments.isWildcard(dir)?
fs.globStatus(dir) : fs.listStatus(dir);
Arrays.sort(allImages, new Comparator<FileStatus>() {
@Override
... | public static void recoverLocal(Path dir) throws IOException {
FileSystem fs = dir.getFileSystem(new Configuration());
FileStatus[] allImages = CommandLineArguments.isWildcard(dir)?
fs.globStatus(dir) : fs.listStatus(dir);
Arrays.sort(allImages, new Comparator<FileStatus>() {
@Override
... |
diff --git a/src/main/java/ch/entwine/weblounge/contentrepository/impl/index/solr/SearchRequest.java b/src/main/java/ch/entwine/weblounge/contentrepository/impl/index/solr/SearchRequest.java
index 8e7cad389..69121a5ae 100644
--- a/src/main/java/ch/entwine/weblounge/contentrepository/impl/index/solr/SearchRequest.java
+... | true | true | public SearchResult getByQuery(SearchQuery query) throws SolrServerException {
Site site = query.getSite();
// Build the solr query string
StringBuilder solrQuery = new StringBuilder();
// Hide the root entry
andNot(solrQuery, ID, Long.toString(SearchIndex.ROOT_ID), true, true);
// Resource... | public SearchResult getByQuery(SearchQuery query) throws SolrServerException {
Site site = query.getSite();
// Build the solr query string
StringBuilder solrQuery = new StringBuilder();
// Hide the root entry
andNot(solrQuery, ID, Long.toString(SearchIndex.ROOT_ID), true, true);
// Resource... |
diff --git a/Hog/src/util/ast/node/ProgramNode.java b/Hog/src/util/ast/node/ProgramNode.java
index 9075855..6f3f824 100644
--- a/Hog/src/util/ast/node/ProgramNode.java
+++ b/Hog/src/util/ast/node/ProgramNode.java
@@ -1,52 +1,53 @@
package util.ast.node;
import java.util.ArrayList;
import back_end.Visitor;
pub... | true | true | public ProgramNode(SectionNode functions, SectionNode map,
SectionNode reduce, SectionNode main) {
super();
this.functions = functions;
this.map = map;
this.reduce = reduce;
this.main = main;
children.add(functions);
children.add(map);
children.add(reduce);
children.add(main);
}
| public ProgramNode(SectionNode functions, SectionNode map,
SectionNode reduce, SectionNode main) {
super();
this.functions = functions;
this.map = map;
this.reduce = reduce;
this.main = main;
// protect against adding a null child
if (this.hasFunctions()) children.add(functions);
children.add(map);
... |
diff --git a/src/share/classes/com/sun/tools/javafx/comp/JavafxClassReader.java b/src/share/classes/com/sun/tools/javafx/comp/JavafxClassReader.java
index eebe92938..7089f40a1 100644
--- a/src/share/classes/com/sun/tools/javafx/comp/JavafxClassReader.java
+++ b/src/share/classes/com/sun/tools/javafx/comp/JavafxClassRea... | true | true | protected Type classSigToType() {
if (signature[sigp] != 'L')
throw badClassFile("bad.class.signature",
Convert.utf2string(signature, sigp, 10));
sigp++;
Type outer = Type.noType;
int startSbp = sbp;
while (true) {
final... | protected Type classSigToType() {
if (signature[sigp] != 'L')
throw badClassFile("bad.class.signature",
Convert.utf2string(signature, sigp, 10));
sigp++;
Type outer = Type.noType;
int startSbp = sbp;
while (true) {
final... |
diff --git a/me/hgilman/Spells/Executors/SpellCommandExecutor.java b/me/hgilman/Spells/Executors/SpellCommandExecutor.java
index abc2482..377f7f9 100644
--- a/me/hgilman/Spells/Executors/SpellCommandExecutor.java
+++ b/me/hgilman/Spells/Executors/SpellCommandExecutor.java
@@ -1,111 +1,111 @@
package me.hgilman.Spells.... | true | true | public boolean onCommand(CommandSender sender, Command command, String label, String[] args)
{
Player player;
if(sender instanceof Player)
{
player = (Player) sender;
if(player.getItemInHand().getType() == Material.GOLD_HOE)
{
//SPELLINFO
if(command.getName().equalsIgnoreCase("spellinfo"))
... | public boolean onCommand(CommandSender sender, Command command, String label, String[] args)
{
Player player;
if(sender instanceof Player)
{
player = (Player) sender;
if(player.getItemInHand().getType() == Material.GOLD_HOE)
{
//SPELLINFO
if(command.getName().equalsIgnoreCase("spellinfo"))
... |
diff --git a/server/src/main/java/org/benjp/services/UserService.java b/server/src/main/java/org/benjp/services/UserService.java
index d2b2e991..4fe69a1b 100644
--- a/server/src/main/java/org/benjp/services/UserService.java
+++ b/server/src/main/java/org/benjp/services/UserService.java
@@ -1,161 +1,162 @@
package org.... | true | true | public void addUser(String user, String session)
{
if (!hasUserWithSession(user, session))
{
System.out.println("USER SERVICE :: ADDING :: " + user + " : " + session);
removeUser(user);
DBCollection coll = db().getCollection(M_SESSIONS_COLLECTION);
BasicDBObject doc = new BasicDBObj... | public void addUser(String user, String session)
{
if (!hasUserWithSession(user, session))
{
System.out.println("USER SERVICE :: ADDING :: " + user + " : " + session);
removeUser(user);
DBCollection coll = db().getCollection(M_SESSIONS_COLLECTION);
BasicDBObject doc = new BasicDBObj... |
diff --git a/core/src/main/java/hudson/model/Build.java b/core/src/main/java/hudson/model/Build.java
index 9b37d4e0f..e50da7865 100644
--- a/core/src/main/java/hudson/model/Build.java
+++ b/core/src/main/java/hudson/model/Build.java
@@ -1,145 +1,151 @@
package hudson.model;
import hudson.tasks.BuildStep;
import hu... | false | true | protected Result doRun(BuildListener listener) throws Exception {
if(!preBuild(listener,project.getBuilders()))
return Result.FAILURE;
if(!preBuild(listener,project.getPublishers()))
return Result.FAILURE;
buildEnvironments = new ArrayList<Env... | protected Result doRun(BuildListener listener) throws Exception {
if(!preBuild(listener,project.getBuilders()))
return Result.FAILURE;
if(!preBuild(listener,project.getPublishers()))
return Result.FAILURE;
buildEnvironments = new ArrayList<Env... |
diff --git a/BOLT/src/event/EntityEvent.java b/BOLT/src/event/EntityEvent.java
index 3196317..208ceef 100644
--- a/BOLT/src/event/EntityEvent.java
+++ b/BOLT/src/event/EntityEvent.java
@@ -1,65 +1,65 @@
package event;
import java.lang.reflect.Method;
import org.json.JSONArray;
import org.json.JSONException;
im... | true | true | public boolean trigger()
{
Entity eTarget = Game.getCurrentGame().getCurrentWorld().getEntity(target);
Method[] methods = eTarget.getClass().getMethods();
Object[] o = new Object[parameters.length()];
try
{
for(int i = 0; i < parameters.length(); i++)
{
Object obj = parameters.get(i);
if... | public boolean trigger()
{
Entity eTarget = Game.getCurrentGame().getCurrentWorld().getEntity(target);
Method[] methods = eTarget.getClass().getMethods();
Object[] o = new Object[parameters.length()];
try
{
for(int i = 0; i < parameters.length(); i++)
{
Object obj = parameters.get(i);
if... |
diff --git a/mbt/src/org/tigris/mbt/io/GraphML.java b/mbt/src/org/tigris/mbt/io/GraphML.java
index 1f2969b..c15f35f 100644
--- a/mbt/src/org/tigris/mbt/io/GraphML.java
+++ b/mbt/src/org/tigris/mbt/io/GraphML.java
@@ -1,1382 +1,1386 @@
package org.tigris.mbt.io;
import java.awt.Color;
import java.awt.geom.Point2D;
... | false | true | private Graph parseFile( String fileName )
{
Graph graph = new Graph();
graph.setFileKey( fileName );
SAXBuilder parser = new SAXBuilder( "org.apache.crimson.parser.XMLReaderImpl", false );
try
{
logger.debug( "Parsing file: " + fileName );
Document doc = parser.build( fileName );
// Parse ... | private Graph parseFile( String fileName )
{
Graph graph = new Graph();
graph.setFileKey( fileName );
SAXBuilder parser = new SAXBuilder( "org.apache.crimson.parser.XMLReaderImpl", false );
try
{
logger.debug( "Parsing file: " + fileName );
Document doc = parser.build( fileName );
// Parse ... |
diff --git a/org.amanzi.awe.render.drive/src/org/amanzi/awe/render/drive/TemsRenderer.java b/org.amanzi.awe.render.drive/src/org/amanzi/awe/render/drive/TemsRenderer.java
index 3c251f92a..627790b09 100644
--- a/org.amanzi.awe.render.drive/src/org/amanzi/awe/render/drive/TemsRenderer.java
+++ b/org.amanzi.awe.render.dri... | false | true | private void renderGeoNeo(Graphics2D g, IGeoResource neoGeoResource, IProgressMonitor monitor) throws RenderException {
if (monitor == null)
monitor = new NullProgressMonitor();
monitor.beginTask("render drive test data", IProgressMonitor.UNKNOWN);
GeoNeo geoNeo = null;
/... | private void renderGeoNeo(Graphics2D g, IGeoResource neoGeoResource, IProgressMonitor monitor) throws RenderException {
if (monitor == null)
monitor = new NullProgressMonitor();
monitor.beginTask("render drive test data", IProgressMonitor.UNKNOWN);
GeoNeo geoNeo = null;
/... |
diff --git a/source/com/mucommander/command/CommandParser.java b/source/com/mucommander/command/CommandParser.java
index b078fc2d..1e5f39d9 100644
--- a/source/com/mucommander/command/CommandParser.java
+++ b/source/com/mucommander/command/CommandParser.java
@@ -1,335 +1,334 @@
/*
* This file is part of muCommander,... | true | true | private static int parse(String command, String[] tokens, boolean[] tokenTypes) {
char[] buffer; // All the characters that compose command.
int tokenIndex; // Index of the current token in tokens[];
StringBuffer currentToken; // Buffer for the current token.
... | private static int parse(String command, String[] tokens, boolean[] tokenTypes) {
char[] buffer; // All the characters that compose command.
int tokenIndex; // Index of the current token in tokens[];
StringBuffer currentToken; // Buffer for the current token.
... |
diff --git a/plugins/org.bonitasoft.studio.connectors/src/org/bonitasoft/studio/connectors/ui/preferences/DBConnectorsPreferencePage.java b/plugins/org.bonitasoft.studio.connectors/src/org/bonitasoft/studio/connectors/ui/preferences/DBConnectorsPreferencePage.java
index 469a0525a4..64c4baf748 100644
--- a/plugins/org.b... | true | true | private void createDBConnectorsList(Composite parent){
final Composite connectorListComposite = new Composite(parent,SWT.NONE);
connectorListComposite.setLayout(GridLayoutFactory.fillDefaults().numColumns(1).create());
connectorListComposite.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).hint(80,2... | private void createDBConnectorsList(Composite parent){
final Composite connectorListComposite = new Composite(parent,SWT.NONE);
connectorListComposite.setLayout(GridLayoutFactory.fillDefaults().numColumns(1).create());
connectorListComposite.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).hint(80,2... |
diff --git a/src/main/java/eionet/meta/exports/rdf/SchemasManifestXmlWriter.java b/src/main/java/eionet/meta/exports/rdf/SchemasManifestXmlWriter.java
index a9042a8a..e6e799cd 100644
--- a/src/main/java/eionet/meta/exports/rdf/SchemasManifestXmlWriter.java
+++ b/src/main/java/eionet/meta/exports/rdf/SchemasManifestXmlW... | false | true | public void writeManifestXml() throws XMLStreamException, ServiceException {
SchemaSetFilter schemaSetFilter = new SchemaSetFilter();
SchemaSetsResult schemaSetsResult = schemaService.searchSchemaSets(schemaSetFilter);
String webAppUrl = Props.getRequiredProperty(PropsIF.DD_URL);
wr... | public void writeManifestXml() throws XMLStreamException, ServiceException {
SchemaSetFilter schemaSetFilter = new SchemaSetFilter();
SchemaSetsResult schemaSetsResult = schemaService.searchSchemaSets(schemaSetFilter);
String webAppUrl = Props.getRequiredProperty(PropsIF.DD_URL);
wr... |
diff --git a/stateless-hello-webapp/src/main/java/net/jakubholy/experiments/bluegreen/HelloServlet.java b/stateless-hello-webapp/src/main/java/net/jakubholy/experiments/bluegreen/HelloServlet.java
index a7b7df1..ca0888c 100644
--- a/stateless-hello-webapp/src/main/java/net/jakubholy/experiments/bluegreen/HelloServlet.j... | true | true | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
final HttpSession session = request.getSession(true);
Object sessionStart = session.getAttribute("sessionStart");
if (sessionStart == null) {
sessionStart = "no... | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
final HttpSession session = request.getSession(true);
Object sessionStart = session.getAttribute("sessionStart");
if (sessionStart == null) {
sessionStart = "no... |
diff --git a/src/main/java/jewas/http/impl/AbstractRequestHandlerDelegate.java b/src/main/java/jewas/http/impl/AbstractRequestHandlerDelegate.java
index 5d4eb3e..1ce95a9 100644
--- a/src/main/java/jewas/http/impl/AbstractRequestHandlerDelegate.java
+++ b/src/main/java/jewas/http/impl/AbstractRequestHandlerDelegate.java... | true | true | protected List<RequestHandler> findNonNullDelegatesFor(HttpRequest request){
List<RequestHandler> delegates = null;
if(cachedDelegates.containsKey(request)){
delegates = cachedDelegates.get(request);
} else {
delegates = findDelegatesFor(request);
cachedDe... | protected List<RequestHandler> findNonNullDelegatesFor(HttpRequest request){
List<RequestHandler> delegates = null;
if(cachedDelegates.containsKey(request)){
delegates = cachedDelegates.get(request);
} else {
delegates = findDelegatesFor(request);
cachedDe... |
diff --git a/AnimationEditor/src/main/MainFrame.java b/AnimationEditor/src/main/MainFrame.java
index 34640be..9797ebb 100644
--- a/AnimationEditor/src/main/MainFrame.java
+++ b/AnimationEditor/src/main/MainFrame.java
@@ -1,321 +1,321 @@
package main;
import static main.MatrixContainer.*;
import static math.Math.*;... | false | true | public void update(int delta) {
VertexBuffer vb = (VertexBuffer) model.getVertexBuffer();
Vector2 mouseMovement = MouseHelper.getMovement(false);
Vector2 mousePos = MouseHelper.getPosition();
boolean operation = false;
Vector3 center = Matrix.vec3();
float distance = 1f;
float rotate = 0.01f;
float shi... | public void update(int delta) {
VertexBuffer vb = (VertexBuffer) model.getVertexBuffer();
Vector2 mouseMovement = MouseHelper.getMovement(false);
Vector2 mousePos = MouseHelper.getPosition();
boolean operation = false;
Vector3 center = Matrix.vec3();
float distance = 1f;
float rotate = 0.002f;
float sh... |
diff --git a/eclipse_projects/DHT/src/manager/dht/Node.java b/eclipse_projects/DHT/src/manager/dht/Node.java
index 4263c00..cb81840 100644
--- a/eclipse_projects/DHT/src/manager/dht/Node.java
+++ b/eclipse_projects/DHT/src/manager/dht/Node.java
@@ -1,216 +1,217 @@
package manager.dht;
import java.util.Random;
impo... | true | true | public void handleMessage(Message message) {
//Don't process message if it was not for us!!
//TODO probably not necessary
if(!message.toIp.equals(identity.getNetworkAddress())) return;
//Safe performance for node
//if(finger.))
switch (message.type) {
//react on a Join message
case Message.JOIN... | public void handleMessage(Message message) {
//Don't process message if it was not for us!!
//TODO probably not necessary
if(!message.toIp.equals(identity.getNetworkAddress())) return;
//Safe performance for node
//if(finger.))
switch (message.type) {
//react on a Join message
case Message.JOIN... |
diff --git a/src/com/google/javascript/jscomp/ant/CompileTask.java b/src/com/google/javascript/jscomp/ant/CompileTask.java
index da10c004e..6417ecce7 100644
--- a/src/com/google/javascript/jscomp/ant/CompileTask.java
+++ b/src/com/google/javascript/jscomp/ant/CompileTask.java
@@ -1,627 +1,628 @@
/*
* Copyright 2010 ... | true | true | private CompilerOptions createCompilerOptions() {
CompilerOptions options = new CompilerOptions();
this.compilationLevel.setOptionsForCompilationLevel(options);
if (this.debugOptions) {
this.compilationLevel.setDebugOptionsForCompilationLevel(options);
}
options.prettyPrint = this.prettyPr... | private CompilerOptions createCompilerOptions() {
CompilerOptions options = new CompilerOptions();
this.compilationLevel.setOptionsForCompilationLevel(options);
if (this.debugOptions) {
this.compilationLevel.setDebugOptionsForCompilationLevel(options);
}
options.prettyPrint = this.prettyPr... |
diff --git a/admin/src/main/java/dk/dtu/imm/distributedsystems/projects/sensornetwork/admin/gui/AdminFrame.java b/admin/src/main/java/dk/dtu/imm/distributedsystems/projects/sensornetwork/admin/gui/AdminFrame.java
index 8b9022d..69662ea 100644
--- a/admin/src/main/java/dk/dtu/imm/distributedsystems/projects/sensornetwor... | false | true | private void initComponents() {
buttonGroup1 = new javax.swing.ButtonGroup();
jTabbedPane1 = new javax.swing.JTabbedPane();
jPanel1 = new javax.swing.JPanel();
titleLabel = new javax.swing.JLabel();
valueTextField = new javax.swing.JTextField();
jPanel3 = new javax.s... | private void initComponents() {
buttonGroup1 = new javax.swing.ButtonGroup();
jTabbedPane1 = new javax.swing.JTabbedPane();
jPanel1 = new javax.swing.JPanel();
titleLabel = new javax.swing.JLabel();
valueTextField = new javax.swing.JTextField();
jPanel3 = new javax.s... |
diff --git a/src/gov/nist/javax/sip/NistSipMessageHandlerImpl.java b/src/gov/nist/javax/sip/NistSipMessageHandlerImpl.java
index 987dfb78..5990d066 100755
--- a/src/gov/nist/javax/sip/NistSipMessageHandlerImpl.java
+++ b/src/gov/nist/javax/sip/NistSipMessageHandlerImpl.java
@@ -1,425 +1,431 @@
/***********************... | true | true | public void processRequest(SIPRequest sipRequest,
MessageChannel incomingMessageChannel)
throws SIPServerException {
// Generate the wrapper JAIN-SIP object.
if (LogWriter.needsLogging)
LogWriter.logMessage
("PROCESSING INCOMING REQUEST " + sipRequest.getFirstLine());... | public void processRequest(SIPRequest sipRequest,
MessageChannel incomingMessageChannel)
throws SIPServerException {
// Generate the wrapper JAIN-SIP object.
if (LogWriter.needsLogging)
LogWriter.logMessage
("PROCESSING INCOMING REQUEST " + sipRequest.getFirstLine());... |
diff --git a/core/src/visad/trunk/MouseHelper.java b/core/src/visad/trunk/MouseHelper.java
index 7889b4366..b056e254a 100644
--- a/core/src/visad/trunk/MouseHelper.java
+++ b/core/src/visad/trunk/MouseHelper.java
@@ -1,598 +1,596 @@
//
// MouseHelper.java
//
/*
VisAD system for interactive analysis and visualiza... | true | true | public void processEvent(AWTEvent event, int remoteId) {
if (!(event instanceof MouseEvent)) {
System.out.println("MouseHelper.processStimulus: non-" +
"MouseEvent");
}
int mouse_x = ((MouseEvent) event).getX();
int mouse_y = ((MouseEvent) event).getY();
event_switch:
... | public void processEvent(AWTEvent event, int remoteId) {
if (!(event instanceof MouseEvent)) {
System.out.println("MouseHelper.processStimulus: non-" +
"MouseEvent");
}
int mouse_x = ((MouseEvent) event).getX();
int mouse_y = ((MouseEvent) event).getY();
event_switch:
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.