diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/src/main/java/de/switajski/priebes/flexibleorders/domain/OrderItem.java b/src/main/java/de/switajski/priebes/flexibleorders/domain/OrderItem.java
index c6470383..f62736f7 100644
--- a/src/main/java/de/switajski/priebes/flexibleorders/domain/OrderItem.java
+++ b/src/main/java/de/switajski/priebes/flexibleor... | false | true | public int calculateQuantityLeft(HandlingEventType type) {
int quantityLeft = 0;
switch (type) {
case CONFIRM:
quantityLeft = getOrderedQuantity() - getHandledQuantity(HandlingEventType.SHIP);
break;
case SHIP:
quantityLeft = getHandledQuantity(HandlingEventType.CONFIRM)
- getHandledQuantity(Han... | public int calculateQuantityLeft(HandlingEventType type) {
int quantityLeft = 0;
switch (type) {
case CONFIRM:
quantityLeft = getOrderedQuantity() - getHandledQuantity(HandlingEventType.SHIP);
break;
case SHIP:
quantityLeft = getHandledQuantity(HandlingEventType.CONFIRM)
- getHandledQuantity(Han... |
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java
index a521d67a..d5b58590 100644
--- a/src/com/android/launcher2/LauncherModel.java
+++ b/src/com/android/launcher2/LauncherModel.java
@@ -1,1484 +1,1484 @@
/*
* Copyright (C) 2008 The Android Open Source Project
... | false | 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/src/web/org/openmrs/web/controller/user/UserFormController.java b/src/web/org/openmrs/web/controller/user/UserFormController.java
index 3da286b4..8f8ab63a 100644
--- a/src/web/org/openmrs/web/controller/user/UserFormController.java
+++ b/src/web/org/openmrs/web/controller/user/UserFormController.java
@@ -1... | true | true | protected ModelAndView processFormSubmission(HttpServletRequest request, HttpServletResponse response, Object obj,
BindException errors) throws Exception {
HttpSession httpSession = request.getSession();
User user = (User) obj;
UserService us = Context.getUserServ... | protected ModelAndView processFormSubmission(HttpServletRequest request, HttpServletResponse response, Object obj,
BindException errors) throws Exception {
HttpSession httpSession = request.getSession();
User user = (User) obj;
UserService us = Context.getUserServ... |
diff --git a/adl-frontend/src/main/java/org/ow2/mind/adl/idl/BasicInterfaceSignatureResolver.java b/adl-frontend/src/main/java/org/ow2/mind/adl/idl/BasicInterfaceSignatureResolver.java
index 4276602..6264927 100644
--- a/adl-frontend/src/main/java/org/ow2/mind/adl/idl/BasicInterfaceSignatureResolver.java
+++ b/adl-fron... | true | true | public InterfaceDefinition resolve(final TypeInterface itf,
final Definition encapsulatingDefinition,
final Map<Object, Object> context) throws ADLException {
IDL itfDefinition;
try {
itfDefinition = idlLoaderItf.load(itf.getSignature(), context);
} catch (final ADLException e) {
... | public InterfaceDefinition resolve(final TypeInterface itf,
final Definition encapsulatingDefinition,
final Map<Object, Object> context) throws ADLException {
IDL itfDefinition;
try {
itfDefinition = idlLoaderItf.load(itf.getSignature(), context);
} catch (final ADLException e) {
... |
diff --git a/lint/cli/src/com/android/tools/lint/Main.java b/lint/cli/src/com/android/tools/lint/Main.java
index c57ec366c..1484a1dd5 100644
--- a/lint/cli/src/com/android/tools/lint/Main.java
+++ b/lint/cli/src/com/android/tools/lint/Main.java
@@ -1,1105 +1,1108 @@
/*
* Copyright (C) 2011 The Android Open Source Pr... | false | true | private void run(String[] args) {
if (args.length < 1) {
printUsage(System.err);
System.exit(ERRNO_USAGE);
}
IssueRegistry registry = mRegistry = new BuiltinIssueRegistry();
// Mapping from file path prefix to URL. Applies only to HTML reports
String... | private void run(String[] args) {
if (args.length < 1) {
printUsage(System.err);
System.exit(ERRNO_USAGE);
}
IssueRegistry registry = mRegistry = new BuiltinIssueRegistry();
// Mapping from file path prefix to URL. Applies only to HTML reports
String... |
diff --git a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/MessageImpl.java b/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/MessageImpl.java
index 13f2b6c7d2..7cb0d635c7 100644
--- a/drools-compiler/src/main/java/org/drools/compiler/kie/builder/impl/MessageImpl.java
+++ b/drool... | true | true | public MessageImpl(long id, KnowledgeBuilderResult result) {
this.id = id;
switch (result.getSeverity()) {
case ERROR:
level = Level.ERROR;
break;
case WARNING:
level = Level.WARNING;
break;
default:
... | public MessageImpl(long id, KnowledgeBuilderResult result) {
this.id = id;
switch (result.getSeverity()) {
case ERROR:
level = Level.ERROR;
break;
case WARNING:
level = Level.WARNING;
break;
default:
... |
diff --git a/svnkit/src/org/tmatesoft/svn/core/internal/wc/admin/SVNWCAccess.java b/svnkit/src/org/tmatesoft/svn/core/internal/wc/admin/SVNWCAccess.java
index ef9f1c91f..283981fbc 100644
--- a/svnkit/src/org/tmatesoft/svn/core/internal/wc/admin/SVNWCAccess.java
+++ b/svnkit/src/org/tmatesoft/svn/core/internal/wc/admin/... | false | true | public SVNAdminAreaInfo openAnchor(File path, boolean writeLock, int depth) throws SVNException {
File parent = path.getParentFile();
if (parent == null) {
SVNAdminArea anchor = open(path, writeLock, depth);
return new SVNAdminAreaInfo(this, anchor, anchor, "");
}
... | public SVNAdminAreaInfo openAnchor(File path, boolean writeLock, int depth) throws SVNException {
File parent = path.getParentFile();
if (parent == null) {
SVNAdminArea anchor = open(path, writeLock, depth);
return new SVNAdminAreaInfo(this, anchor, anchor, "");
}
... |
diff --git a/com.ibm.wala.cast.java/src/com/ibm/wala/cast/java/translator/polyglot/ASTTraverser.java b/com.ibm.wala.cast.java/src/com/ibm/wala/cast/java/translator/polyglot/ASTTraverser.java
index 2c0af0ae6..4c2327d40 100644
--- a/com.ibm.wala.cast.java/src/com/ibm/wala/cast/java/translator/polyglot/ASTTraverser.java
+... | true | true | public static CAstNode visit(Node n, TranslatingVisitor tv, WalkContext wc) {
if (n instanceof MethodDecl) {
return tv.visit((MethodDecl) n, (MethodContext) wc);
} else if (n instanceof ConstructorDecl) {
return tv.visit((ConstructorDecl) n, (MethodContext) wc);
} else if (n instanceof FieldDecl) {
... | public static CAstNode visit(Node n, TranslatingVisitor tv, WalkContext wc) {
if (n instanceof MethodDecl) {
return tv.visit((MethodDecl) n, (MethodContext) wc);
} else if (n instanceof ConstructorDecl) {
return tv.visit((ConstructorDecl) n, (MethodContext) wc);
} else if (n instanceof FieldDecl) {
... |
diff --git a/src/portablejim/veinminer/core/MinerInstance.java b/src/portablejim/veinminer/core/MinerInstance.java
index 19a4327..f46988a 100644
--- a/src/portablejim/veinminer/core/MinerInstance.java
+++ b/src/portablejim/veinminer/core/MinerInstance.java
@@ -1,284 +1,288 @@
/* This file is part of VeinMiner.
*
*... | true | true | private boolean shouldContinue() {
// Item equipped
if(!serverInstance.getConfigurationSettings().getEnableAllTools() && player.getCurrentEquippedItem() == null) {
VeinminerToolCheck toolCheck = new VeinminerToolCheck(player);
MinecraftForge.EVENT_BUS.post(toolCheck);
... | private boolean shouldContinue() {
// Item equipped
if(!serverInstance.getConfigurationSettings().getEnableAllTools() && player.getCurrentEquippedItem() == null) {
VeinminerToolCheck toolCheck = new VeinminerToolCheck(player);
MinecraftForge.EVENT_BUS.post(toolCheck);
... |
diff --git a/src/cn/seu/cose/dao/CommentDAOImpl.java b/src/cn/seu/cose/dao/CommentDAOImpl.java
index 100ca7a..03cbd17 100644
--- a/src/cn/seu/cose/dao/CommentDAOImpl.java
+++ b/src/cn/seu/cose/dao/CommentDAOImpl.java
@@ -1,56 +1,56 @@
package cn.seu.cose.dao;
import java.util.HashMap;
import java.util.List;
impor... | true | true | public List<Comment> getCommentViaRefAndType(int refId, int type) {
Map<String, Object> map = new HashMap<String, Object>();
map.put("referenceId", refId);
map.put("type", type);
return (List<Comment>) getSqlMapClientTemplate().queryForList(
"COMMENT.selectCommentByRef", map);
}
| public List<Comment> getCommentViaRefAndType(int refId, int type) {
Map<String, Object> map = new HashMap<String, Object>();
map.put("referenceId", refId);
map.put("type", type);
return (List<Comment>) getSqlMapClientTemplate().queryForList(
"COMMENT.selectCommentByRefAndType", map);
}
|
diff --git a/MetroIRC/src/moe/lolis/metroirc/backend/IRCListener.java b/MetroIRC/src/moe/lolis/metroirc/backend/IRCListener.java
index 09ea9c4..2249012 100644
--- a/MetroIRC/src/moe/lolis/metroirc/backend/IRCListener.java
+++ b/MetroIRC/src/moe/lolis/metroirc/backend/IRCListener.java
@@ -1,68 +1,68 @@
package moe.loli... | true | true | public void onMessage(MessageEvent<Client> event) throws Exception {
Server server = this.service.getServer(event.getBot().getServerPreferences().getName());
Channel channel = server.getChannel(event.getChannel().getName());
ChannelMessage message = new ChannelMessage();
message.setNickname(event.getUser().ge... | public void onMessage(MessageEvent<Client> event) throws Exception {
Server server = this.service.getServer(event.getBot().getServerPreferences().getName());
Channel channel = server.getChannel(event.getChannel().getName());
ChannelMessage message = new ChannelMessage();
message.setNickname(event.getUser().ge... |
diff --git a/Interpreter/src/edu/tum/lua/exceptions/PrettyPrinter.java b/Interpreter/src/edu/tum/lua/exceptions/PrettyPrinter.java
index 4ec3bab..6e49b85 100644
--- a/Interpreter/src/edu/tum/lua/exceptions/PrettyPrinter.java
+++ b/Interpreter/src/edu/tum/lua/exceptions/PrettyPrinter.java
@@ -1,103 +1,103 @@
package ed... | true | true | public void print(LuaRuntimeException e) {
SyntaxNode errorNode = e.getSyntaxNode();
// Print Exception Location
File file = getFile(errorNode);
final int column = e.getLocation().getColumn();
final int row = e.getLocation().getRow();
if (file != null) {
try (BufferedReader reader = new BufferedReade... | public void print(LuaRuntimeException e) {
SyntaxNode errorNode = e.getSyntaxNode();
// Print Exception Location
File file = getFile(errorNode);
final int column = e.getLocation().getColumn();
final int row = e.getLocation().getRow();
if (file != null) {
try (BufferedReader reader = new BufferedReade... |
diff --git a/harness/java/src/net/lshift/feedshub/harness/Plugin.java b/harness/java/src/net/lshift/feedshub/harness/Plugin.java
index 52d3ed3..67ef8a4 100644
--- a/harness/java/src/net/lshift/feedshub/harness/Plugin.java
+++ b/harness/java/src/net/lshift/feedshub/harness/Plugin.java
@@ -1,239 +1,243 @@
package net.ls... | false | true | public Plugin(final JSONObject config) throws IOException {
this.config = config;
pluginType = config.getJSONObject("plugin_type");
JSONArray globalConfig = pluginType
.getJSONArray("global_configuration_specification");
JSONObject mergedConfig = new JSONObject();
... | public Plugin(final JSONObject config) throws IOException {
this.config = config;
pluginType = config.getJSONObject("plugin_type");
JSONArray globalConfig = pluginType
.getJSONArray("global_configuration_specification");
JSONObject mergedConfig = new JSONObject();
... |
diff --git a/nexus/nexus-plugins/nexus-bundle-maven-plugin/src/main/java/org/sonatype/maven/plugin/nx/bundle/CreateBundleMojo.java b/nexus/nexus-plugins/nexus-bundle-maven-plugin/src/main/java/org/sonatype/maven/plugin/nx/bundle/CreateBundleMojo.java
index 33d9b7130..d29a537ab 100644
--- a/nexus/nexus-plugins/nexus-bun... | true | true | public void execute()
throws MojoExecutionException
{
Assembly assembly = new Assembly();
assembly.addFormat( "zip" );
assembly.setId( "bundle" );
assembly.setIncludeBaseDirectory( false );
DependencySet ds = new DependencySet();
ds.setScope( Artifact.SC... | public void execute()
throws MojoExecutionException
{
Assembly assembly = new Assembly();
assembly.addFormat( "zip" );
assembly.setId( "bundle" );
assembly.setIncludeBaseDirectory( false );
DependencySet ds = new DependencySet();
ds.setScope( Artifact.SC... |
diff --git a/resume/src/java/net/sourceforge/xmlresume/filter/Filter.java b/resume/src/java/net/sourceforge/xmlresume/filter/Filter.java
index 2fcae5b..3ffcb91 100644
--- a/resume/src/java/net/sourceforge/xmlresume/filter/Filter.java
+++ b/resume/src/java/net/sourceforge/xmlresume/filter/Filter.java
@@ -1,106 +1,105 @@... | true | true | public static void main(String[] argv) throws Throwable
{
int debugLevel=9;
int i=0;
int nCats;
Vector categoryList = new Vector();
File in = null;
File outfile = null;
PrintStream out = System.out;
CategoryFilter filter;
FileWriterHandler writer;
SAXParser parser;
//process the commandline
while ... | public static void main(String[] argv) throws Throwable
{
int debugLevel=9;
int i=0;
int nCats;
Vector categoryList = new Vector();
File in = null;
File outfile = null;
PrintStream out = System.out;
CategoryFilter filter;
FileWriterHandler writer;
SAXParser parser;
//process the commandline
while ... |
diff --git a/Solution4/SSPTrain/src/main/java/de/bioinformatikmuenchen/pg4/ssp/ssptrain/Train.java b/Solution4/SSPTrain/src/main/java/de/bioinformatikmuenchen/pg4/ssp/ssptrain/Train.java
index 380eb3a..507ca2d 100644
--- a/Solution4/SSPTrain/src/main/java/de/bioinformatikmuenchen/pg4/ssp/ssptrain/Train.java
+++ b/Solut... | true | true | public static void main(String[] args) {
//
// get params from args to start a new training campain
//
// get command options
final Options opts = new Options();
opts.addOption("d", "db", true, "dssp path to train method (database)")
.addOption("m", ... | public static void main(String[] args) {
//
// get params from args to start a new training campain
//
// get command options
final Options opts = new Options();
opts.addOption("d", "db", true, "dssp path to train method (database)")
.addOption("m", ... |
diff --git a/src/test/java/org/codehaus/mojo/jflex/ClassInfoTest.java b/src/test/java/org/codehaus/mojo/jflex/ClassInfoTest.java
index ff8faaf..9341262 100644
--- a/src/test/java/org/codehaus/mojo/jflex/ClassInfoTest.java
+++ b/src/test/java/org/codehaus/mojo/jflex/ClassInfoTest.java
@@ -1,18 +1,18 @@
package org.code... | true | true | public void testGetOutputFilename() {
ClassInfo classe=new ClassInfo();
classe.className="Bar";
classe.packageName="org.foo";
assertEquals(new File("/org/foo/Bar.java"), new File(classe.getOutputFilename()));
}
| public void testGetOutputFilename() {
ClassInfo classe=new ClassInfo();
classe.className="Bar";
classe.packageName="org.foo";
assertEquals(new File("org/foo/Bar.java"), new File(classe.getOutputFilename()));
}
|
diff --git a/jing/chem/FrequencyGroups.java b/jing/chem/FrequencyGroups.java
index 45bf1656..6e6c1cb0 100644
--- a/jing/chem/FrequencyGroups.java
+++ b/jing/chem/FrequencyGroups.java
@@ -1,340 +1,341 @@
/*
* FrequencyGroups.java
* created by Greg Magoon 11/17/08 using GATP.java as a starting point
* This class ... | true | true | public SpectroscopicData generateFreqData(Species species) {
ChemGraph p_chemGraph = species.getChemGraph();
ThermoData p_thermoData = species.getThermoData();
// Skip if species is monatomic
if (p_chemGraph.getAtomNumber() < 2)
return new SpectroscopicData();
LinkedList groupCount=getFr... | public SpectroscopicData generateFreqData(Species species) {
ChemGraph p_chemGraph = species.getChemGraph();
ThermoData p_thermoData = species.getThermoData();
// Skip if species is monatomic
if (p_chemGraph.getAtomNumber() < 2)
return new SpectroscopicData();
LinkedList groupCount=getFr... |
diff --git a/src/main/java/org/objectquery/generic/QueryConditionImpl.java b/src/main/java/org/objectquery/generic/QueryConditionImpl.java
index 7c7be41..29b84bd 100644
--- a/src/main/java/org/objectquery/generic/QueryConditionImpl.java
+++ b/src/main/java/org/objectquery/generic/QueryConditionImpl.java
@@ -1,129 +1,12... | true | true | public void condition(Object base, ConditionType type, Object value) {
if (base == null)
throw new ObjectQueryException("The given object as condition is null", null);
PathItem item = null;
Class<?> baseType = base.getClass();
if (!(base instanceof ProxyObject)) {
if ((item = objectQuery.unproxable.get(b... | public void condition(Object base, ConditionType type, Object value) {
if (base == null)
throw new ObjectQueryException("The given object as condition is null", null);
PathItem item = null;
Class<?> baseType = base.getClass();
if (!(base instanceof ProxyObject)) {
if ((item = objectQuery.unproxable.get(b... |
diff --git a/src/net/kervala/comicsreader/FullImageView.java b/src/net/kervala/comicsreader/FullImageView.java
index 0bd9076..cdd2439 100644
--- a/src/net/kervala/comicsreader/FullImageView.java
+++ b/src/net/kervala/comicsreader/FullImageView.java
@@ -1,323 +1,333 @@
/*
* ComicsReader is an Android application to r... | false | true | protected synchronized void onDraw(Canvas canvas) {
super.onDraw(canvas);
if (mCurrentBitmap == null || mBitmapWidth == 0 || mBitmapHeight == 0) {
return;
}
canvas.getClipBounds(mRect);
// the right limit of current bitmap
final int currRight = Math.min(mRect.right, mBitmapWidth);
int bottom = M... | protected synchronized void onDraw(Canvas canvas) {
super.onDraw(canvas);
if (mCurrentBitmap == null || mBitmapWidth == 0 || mBitmapHeight == 0) {
return;
}
canvas.getClipBounds(mRect);
// the right limit of current bitmap
final int currRight = Math.min(mRect.right, mBitmapWidth);
int bottom = M... |
diff --git a/src/main/java/org/klco/email2html/OutputWriter.java b/src/main/java/org/klco/email2html/OutputWriter.java
index 9a15590..967e93a 100644
--- a/src/main/java/org/klco/email2html/OutputWriter.java
+++ b/src/main/java/org/klco/email2html/OutputWriter.java
@@ -1,321 +1,322 @@
/*
* Copyright (C) 2012 Dan Klco... | false | true | public void writeAttachment(EmailMessage containingMessage, Part part)
throws IOException, MessagingException {
log.trace("writeAttachment");
File attachmentFolder = new File(outputDir.getAbsolutePath()
+ File.separator
+ FILE_DATE_FORMAT.format(containingMessage.getSentDate()));
if (!attachmentFold... | public void writeAttachment(EmailMessage containingMessage, Part part)
throws IOException, MessagingException {
log.trace("writeAttachment");
File attachmentFolder = new File(outputDir.getAbsolutePath()
+ File.separator
+ FILE_DATE_FORMAT.format(containingMessage.getSentDate()));
if (!attachmentFold... |
diff --git a/MonitoringGae/src/main/java/cmg/org/monitor/ext/util/URLMonitor.java b/MonitoringGae/src/main/java/cmg/org/monitor/ext/util/URLMonitor.java
index 4b6e253..97603d1 100644
--- a/MonitoringGae/src/main/java/cmg/org/monitor/ext/util/URLMonitor.java
+++ b/MonitoringGae/src/main/java/cmg/org/monitor/ext/util/URL... | false | true | public URLPageObject generateInfo(SystemMonitorDto systemDto)
//public URLPageObject generateInfo(SystemDto systemDto)
throws MonitorException, Exception {
Date now = new Date();
URLPageObject obj = null;
Component fullComponent = null;
try {
SimpleDateFormat dateFormat = new SimpleDateFormat(TIME_F... | public URLPageObject generateInfo(SystemMonitorDto systemDto)
//public URLPageObject generateInfo(SystemDto systemDto)
throws MonitorException, Exception {
Date now = new Date();
URLPageObject obj = null;
Component fullComponent = null;
try {
SimpleDateFormat dateFormat = new SimpleDateFormat(TIME_F... |
diff --git a/modules/org.restlet.ext.fileupload/src/org/restlet/ext/fileupload/RepresentationContext.java b/modules/org.restlet.ext.fileupload/src/org/restlet/ext/fileupload/RepresentationContext.java
index ed01a776a..f62cb111c 100644
--- a/modules/org.restlet.ext.fileupload/src/org/restlet/ext/fileupload/Representatio... | true | true | public String getCharacterEncoding() {
if (!this.multipartForm.getEncodings().isEmpty()) {
return this.multipartForm.getEncodings().get(0).getName();
}
return null;
}
| public String getCharacterEncoding() {
if (this.multipartForm.getCharacterSet() != null) {
return this.multipartForm.getCharacterSet().getName();
}
return null;
}
|
diff --git a/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java b/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java
index 1772fbf19..074ab9321 100644
--- a/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java
+++ b/asm/src/org/aspectj/asm/internal/JDTLikeHandleProvider.java
@@ -1,387 +1,413 @@... | true | true | private char[] getCount(IProgramElement ipe) {
// TODO could optimize this code
char[] byteCodeName = ipe.getBytecodeName().toCharArray();
if (ipe.getKind().isDeclareAnnotation()) {
// look at peer declares
int count = 1;
List kids = ipe.getParent().getChildren();
int idx = 0;
for (Iterator itera... | private char[] getCount(IProgramElement ipe) {
// TODO could optimize this code
char[] byteCodeName = ipe.getBytecodeName().toCharArray();
if (ipe.getKind().isInterTypeMember()) {
int count = 1;
List kids = ipe.getParent().getChildren();
int idx = 0;
for (Iterator iterator = kids.iterator(); iterato... |
diff --git a/compute/src/test/java/org/jclouds/compute/domain/internal/TemplateBuilderImplTest.java b/compute/src/test/java/org/jclouds/compute/domain/internal/TemplateBuilderImplTest.java
index 20eb3528b6..1537916bcc 100644
--- a/compute/src/test/java/org/jclouds/compute/domain/internal/TemplateBuilderImplTest.java
++... | false | true | public void testMatchesHardwareWithIdPredicate() {
final Location defaultLocation = createMock(Location.class);
final Supplier<Set<? extends Location>> locations = Suppliers.<Set<? extends Location>> ofInstance(ImmutableSet
.<Location> of(defaultLocation));
final Supplier<Set<? extends... | public void testMatchesHardwareWithIdPredicate() {
final Location defaultLocation = createMock(Location.class);
final Supplier<Set<? extends Location>> locations = Suppliers.<Set<? extends Location>> ofInstance(ImmutableSet
.<Location> of(defaultLocation));
final Supplier<Set<? extends... |
diff --git a/loci/visbio/overlays/OverlayArrow.java b/loci/visbio/overlays/OverlayArrow.java
index 1b52d6e77..fae6a195c 100644
--- a/loci/visbio/overlays/OverlayArrow.java
+++ b/loci/visbio/overlays/OverlayArrow.java
@@ -1,166 +1,163 @@
//
// OverlayArrow.java
//
/*
VisBio application for visualization of multid... | false | true | public DataImpl getData() {
float padding = 0.02f * overlay.getScalingValue();
double xx = x2 - x1;
double yy = y2 - y1;
double dist = Math.sqrt(xx * xx + yy * yy);
double mult = padding / dist;
float qx = (float) (mult * xx);
float qy = (float) (mult * yy);
RealTupleType domain = ove... | public DataImpl getData() {
float padding = 0.02f * overlay.getScalingValue();
double xx = x2 - x1;
double yy = y2 - y1;
double dist = Math.sqrt(xx * xx + yy * yy);
double mult = padding / dist;
float qx = (float) (mult * xx);
float qy = (float) (mult * yy);
RealTupleType domain = ove... |
diff --git a/sandbox/rest/src/main/java/brooklyn/rest/core/LocationStore.java b/sandbox/rest/src/main/java/brooklyn/rest/core/LocationStore.java
index 561f5f549..0d1eeca62 100644
--- a/sandbox/rest/src/main/java/brooklyn/rest/core/LocationStore.java
+++ b/sandbox/rest/src/main/java/brooklyn/rest/core/LocationStore.java... | true | true | public Location getByRef(String ref) {
Matcher matcher = refPattern.matcher(ref);
checkArgument(matcher.matches(), "URI '%s' does not match pattern '%'", ref, refPattern);
return get(Integer.parseInt(matcher.group(1)));
}
| public Location getByRef(String ref) {
Matcher matcher = refPattern.matcher(ref);
checkArgument(matcher.matches(), "URI '%s' does not match pattern '%s'", ref, refPattern);
return get(Integer.parseInt(matcher.group(1)));
}
|
diff --git a/src/fy.java b/src/fy.java
index c6ec945..c3ca340 100644
--- a/src/fy.java
+++ b/src/fy.java
@@ -1,284 +1,285 @@
import java.util.List;
public class fy extends jz {
public hj am = new hj(this);
public byte an = 0;
public int ao = 0;
public float ap;
public float aq;
public ... | true | true | public void E() {
// hMod: prevent 'healing over time' when monster-spawn=true (nice notchup!)
if (etc.getInstance().autoHeal() != PluginLoader.HookResult.PREVENT_ACTION) {
if ((this.l.k == 0) && (this.aR < 20) && (this.X % 20 * 4 == 0)) {
a(1);
}
}
... | public void E() {
// hMod: adjust 'healing over time' independent of monster-spawn=true/false (nice notchup!)
PluginLoader.HookResult autoHeal = etc.getInstance().autoHeal();
if ((this.l.k == 0 && autoHeal == PluginLoader.HookResult.DEFAULT_ACTION) || autoHeal == PluginLoader.HookResult.ALLO... |
diff --git a/CyberPrime2/src/cyberprime/servlets/Login.java b/CyberPrime2/src/cyberprime/servlets/Login.java
index 20ca73e..6c7c013 100644
--- a/CyberPrime2/src/cyberprime/servlets/Login.java
+++ b/CyberPrime2/src/cyberprime/servlets/Login.java
@@ -1,166 +1,166 @@
package cyberprime.servlets;
import java.io.IOExcep... | true | true | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
HttpSession session = request.getSession();
Clients client = (Clients) session.getAttribute("client");
if(client==null){
Object obj = new Object();
obj = "<p style='color:red'>*Your... | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
HttpSession session = request.getSession();
Clients client = (Clients) session.getAttribute("client");
if(client==null){
Object obj = new Object();
obj = "<p style='color:red'>*Your... |
diff --git a/client/src/org/compiere/pos/PosSubPanel.java b/client/src/org/compiere/pos/PosSubPanel.java
index 6757347..dfeb56c 100644
--- a/client/src/org/compiere/pos/PosSubPanel.java
+++ b/client/src/org/compiere/pos/PosSubPanel.java
@@ -1,168 +1,169 @@
/*************************************************************... | true | true | public void printTicket()
{
if ( p_posPanel.m_order == null )
return;
final MOrder order = p_posPanel.m_order;
if (order != null)
{
final MInvoice invoice = p_posPanel.m_order.getInvoices()[0];
int C_DocType_ID = invoice.getC_DocType_ID();
if (LAR_Utils.isFiscalDocType... | public void printTicket()
{
if ( p_posPanel.m_order == null )
return;
final MOrder order = p_posPanel.m_order;
if (order != null)
{
final MInvoice invoice = p_posPanel.m_order.getInvoices()[0];
int C_DocType_ID = invoice.getC_DocType_ID();
if (LAR_Utils.isFiscalDocType... |
diff --git a/Sources/net/rujel/reusables/DataBaseConnector.java b/Sources/net/rujel/reusables/DataBaseConnector.java
index ff70e5d..f4d9cb8 100644
--- a/Sources/net/rujel/reusables/DataBaseConnector.java
+++ b/Sources/net/rujel/reusables/DataBaseConnector.java
@@ -1,279 +1,279 @@
// DataBaseConnector.java
/*
* Co... | false | true | public static boolean makeConnections(EOObjectStore os, String tag) {
Logger logger = Logger.getLogger("rujel.dbConnection");
SettingsReader dbSettings = SettingsReader.settingsForPath("dbConnection", false);
if(dbSettings == null) {
logger.log(WOLogLevel.CONFIG,
"No database connection settings found. U... | public static boolean makeConnections(EOObjectStore os, String tag) {
Logger logger = Logger.getLogger("rujel.dbConnection");
SettingsReader dbSettings = SettingsReader.settingsForPath("dbConnection", false);
if(dbSettings == null) {
logger.log(WOLogLevel.CONFIG,
"No database connection settings found. U... |
diff --git a/main/src/main/java/com/chinarewards/qqgbvpn/main/session/SessionKeyCodec.java b/main/src/main/java/com/chinarewards/qqgbvpn/main/session/SessionKeyCodec.java
index da234e84..7cdc44a7 100644
--- a/main/src/main/java/com/chinarewards/qqgbvpn/main/session/SessionKeyCodec.java
+++ b/main/src/main/java/com/chin... | true | true | public byte[] encode(Object key) throws CodecException {
V1SessionKeyCodec skCodec = new V1SessionKeyCodec();
byte[] encoded = skCodec.encode(key);
IoBuffer buf = IoBuffer.allocate(encoded.length + 3);
// first byte is the version
buf.putUnsigned((byte) 0x01);
// another byte resireved
buf.putUnsigne... | public byte[] encode(Object key) throws CodecException {
V1SessionKeyCodec skCodec = new V1SessionKeyCodec();
byte[] encoded = skCodec.encode(key);
IoBuffer buf = IoBuffer.allocate(encoded.length + 4);
// first byte is the version
buf.putUnsigned((byte) 0x01);
// another byte resireved
buf.putUnsigne... |
diff --git a/test/edu/ucla/sspace/wordsi/psd/PseudoWordReporterTest.java b/test/edu/ucla/sspace/wordsi/psd/PseudoWordReporterTest.java
index bfc05da8..355c9fff 100644
--- a/test/edu/ucla/sspace/wordsi/psd/PseudoWordReporterTest.java
+++ b/test/edu/ucla/sspace/wordsi/psd/PseudoWordReporterTest.java
@@ -1,74 +1,77 @@
/*... | false | true | @Test public void testUpdateAssignment() {
OutputStream stream = new ByteArrayOutputStream();
AssignmentReporter reporter = new PseudoWordReporter(stream);
reporter.updateAssignment("catdog", "dog", 5);
reporter.updateAssignment("catdog", "dog", 2);
reporter.updateAssignment(... | @Test public void testUpdateAssignment() {
OutputStream stream = new ByteArrayOutputStream();
AssignmentReporter reporter = new PseudoWordReporter(stream);
reporter.updateAssignment("catdog", "dog", 5);
reporter.updateAssignment("catdog", "dog", 2);
reporter.updateAssignment(... |
diff --git a/java/com/rn/codec/Nysiis.java b/java/com/rn/codec/Nysiis.java
index 4af1b44..e6f0520 100644
--- a/java/com/rn/codec/Nysiis.java
+++ b/java/com/rn/codec/Nysiis.java
@@ -1,292 +1,292 @@
package com.rn.codec;
import org.apache.commons.codec.Encoder;
/**
* A class to generate phonetic codings based on... | false | true | public String encode( String originalWord ) {
if( originalWord != null &&
originalWord.length() > 0 ) {
word = new StringBuffer( originalWord.toUpperCase() );
} else {
return "";
}
char first;
// strip any trailing S or Zs
while(word.toString().endsWith("S") || word.toStr... | public String encode( String originalWord ) {
if( originalWord != null &&
originalWord.length() > 0 ) {
word = new StringBuffer( originalWord.toUpperCase() );
} else {
return "";
}
char first;
// strip any trailing S or Zs
while(word.toString().endsWith("S") || word.toStr... |
diff --git a/sensappdroid-clientsamples/sensorlog/src/main/java/org/sensapp/android/sensappdroid/clientsamples/sensorlogger/SensorLoggerService.java b/sensappdroid-clientsamples/sensorlog/src/main/java/org/sensapp/android/sensappdroid/clientsamples/sensorlogger/SensorLoggerService.java
index ed19821..e4e8ff6 100644
---... | true | true | public void onSensorChanged(SensorEvent sensorEvent) {
AbstractSensor s = getSensorByType(sensorEvent.sensor.getType());
if(s != null){
if(s.isThreeDataSensor())
s.setData(this, sensorEvent.values[0], sensorEvent.values[1], sensorEvent.values[2]);
else
... | public void onSensorChanged(SensorEvent sensorEvent) {
AbstractSensor s = getSensorByType(sensorEvent.sensor.getType());
if(s != null){
if(s.isThreeDataSensor())
s.setData(this, sensorEvent.values[0], sensorEvent.values[1], sensorEvent.values[2]);
else
... |
diff --git a/hot-deploy/opentaps-common/src/common/org/opentaps/common/reporting/jasper/JasperReportsViewHandler.java b/hot-deploy/opentaps-common/src/common/org/opentaps/common/reporting/jasper/JasperReportsViewHandler.java
index e16cbefb1..13fed97b2 100644
--- a/hot-deploy/opentaps-common/src/common/org/opentaps/comm... | true | true | public void render(String name, String page, String info, String contentType, String encoding, HttpServletRequest request, HttpServletResponse response) throws ViewHandlerException {
Connection conn = null;
Session session = null;
// some containers call filters on EVERY request, even forwa... | public void render(String name, String page, String info, String contentType, String encoding, HttpServletRequest request, HttpServletResponse response) throws ViewHandlerException {
Connection conn = null;
Session session = null;
// some containers call filters on EVERY request, even forwa... |
diff --git a/issues/jira/src/main/java/uk/org/sappho/code/heatmap/issues/jira/JiraService.java b/issues/jira/src/main/java/uk/org/sappho/code/heatmap/issues/jira/JiraService.java
index 9aade46..be10325 100644
--- a/issues/jira/src/main/java/uk/org/sappho/code/heatmap/issues/jira/JiraService.java
+++ b/issues/jira/src/m... | true | true | protected void getAllowedIssues() throws IssueManagementException {
LOG.info("Getting list of allowed issues");
RemoteIssue[] issues;
try {
issues = jiraSoapService.getIssuesFromFilter(JiraSoapServiceToken, config
.getProperty("jira.filter.issues.allowed"));
... | protected void getAllowedIssues() throws IssueManagementException {
LOG.info("Getting list of allowed issues");
RemoteIssue[] issues;
try {
issues = jiraSoapService.getIssuesFromJqlSearch(JiraSoapServiceToken, config
.getProperty("jira.filter.issues.allowed")... |
diff --git a/geoserver/src/org/vfny/geoserver/action/SaveXMLAction.java b/geoserver/src/org/vfny/geoserver/action/SaveXMLAction.java
index 1886cdbbb7..215175d43f 100644
--- a/geoserver/src/org/vfny/geoserver/action/SaveXMLAction.java
+++ b/geoserver/src/org/vfny/geoserver/action/SaveXMLAction.java
@@ -1,139 +1,157 @@
... | false | true | private ActionForward saveValidation(ActionMapping mapping,
ActionForm form,
//UserContainer user,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
ServletContext sc = request.getSession().getServletContext();
File rootDir = new File(sc.getRe... | private ActionForward saveValidation(ActionMapping mapping,
ActionForm form,
//UserContainer user,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
ServletContext sc = request.getSession().getServletContext();
File rootDir = new File(sc.getRe... |
diff --git a/src/com/isitgeo/randomgift/CommandListener.java b/src/com/isitgeo/randomgift/CommandListener.java
index aaa0cf9..2a29adb 100644
--- a/src/com/isitgeo/randomgift/CommandListener.java
+++ b/src/com/isitgeo/randomgift/CommandListener.java
@@ -1,96 +1,96 @@
package com.isitgeo.randomgift;
import org.bukkit... | true | true | public boolean onCommand(CommandSender sentby, Command command, String label, String[] args) {
if (command.getName().equalsIgnoreCase("randomgift")) {
if (args.length == 0) {
sentby.sendMessage("RandomGift " + this.plugin.getDescription().getVersion());
sentby.sendMessage("Usage: /randomgift <command>");... | public boolean onCommand(CommandSender sentby, Command command, String label, String[] args) {
if (command.getName().equalsIgnoreCase("randomgift")) {
if (args.length == 0) {
sentby.sendMessage("RandomGift " + this.plugin.getDescription().getVersion());
sentby.sendMessage("Usage: /randomgift <command>");... |
diff --git a/us8294/client/src/main/java/com/funambol/client/controller/NetworkUsageWarningController.java b/us8294/client/src/main/java/com/funambol/client/controller/NetworkUsageWarningController.java
index 7ba940a2..50d58546 100644
--- a/us8294/client/src/main/java/com/funambol/client/controller/NetworkUsageWarningC... | true | true | public void askUserNetworkUsageConfirmation() {
// If the server is not cared or the network warning is disabled, we
// just continue
if (configuration.getServerType() != Configuration.SERVER_TYPE_FUNAMBOL_CARED ||
!customization.getShowNetworkUsageWarningForProfiles())
... | public void askUserNetworkUsageConfirmation() {
// If the server is not cared or the network warning is disabled, we
// just continue
if (!customization.getShowNetworkUsageWarningForProfiles()) {
useAction.run();
return;
}
// Check if the configurati... |
diff --git a/src/main/java/ru/histone/resourceloaders/DefaultResourceLoader.java b/src/main/java/ru/histone/resourceloaders/DefaultResourceLoader.java
index f317ed8..b40feb5 100644
--- a/src/main/java/ru/histone/resourceloaders/DefaultResourceLoader.java
+++ b/src/main/java/ru/histone/resourceloaders/DefaultResourceLoa... | false | true | private Resource loadHttpResource(URI location, Node[] args) {
URI newLocation = URI.create(location.toString().replace("#fragment", ""));
final Map<Object, Node> requestMap = args != null && args.length != 0 && args[0] instanceof ObjectHistoneNode ? ((ObjectHistoneNode) args[0])
.getElements() : new Has... | private Resource loadHttpResource(URI location, Node[] args) {
URI newLocation = URI.create(location.toString().replace("#fragment", ""));
final Map<Object, Node> requestMap = args != null && args.length != 0 && args[0] instanceof ObjectHistoneNode ? ((ObjectHistoneNode) args[0])
.getElements() : new Has... |
diff --git a/activemq-web-demo/src/test/java/org/apache/activemq/web/JettyTestSupport.java b/activemq-web-demo/src/test/java/org/apache/activemq/web/JettyTestSupport.java
index 6073ad0c5..92fa70ca2 100644
--- a/activemq-web-demo/src/test/java/org/apache/activemq/web/JettyTestSupport.java
+++ b/activemq-web-demo/src/tes... | true | true | protected void setUp() throws Exception {
broker = new BrokerService();
broker.setPersistent(false);
broker.setUseJmx(true);
tcpUri = new URI(broker.addConnector("tcp://localhost:0").getPublishableConnectString());
stompUri = new URI(broker.addConnector("stomp://localhost:0")... | protected void setUp() throws Exception {
broker = new BrokerService();
broker.setBrokerName("amq-broker");
broker.setPersistent(false);
broker.setUseJmx(true);
tcpUri = new URI(broker.addConnector("tcp://localhost:0").getPublishableConnectString());
stompUri = new UR... |
diff --git a/source/RMG/jing/rxnSys/JDAS.java b/source/RMG/jing/rxnSys/JDAS.java
index cfb3734d..de4da08d 100644
--- a/source/RMG/jing/rxnSys/JDAS.java
+++ b/source/RMG/jing/rxnSys/JDAS.java
@@ -1,1262 +1,1262 @@
////////////////////////////////////////////////////////////////////////////////
//
// RMG - Reaction Me... | false | true | public void getAutoEdgeReactionInfo(CoreEdgeReactionModel model, Temperature p_temperature,
Pressure p_pressure) {
//updated 10/22/09 by gmagoon to use BufferedReader; this isn't exactly the most elegant solution (as I have effectively copied code and made this loop through twice in order to cor... | public void getAutoEdgeReactionInfo(CoreEdgeReactionModel model, Temperature p_temperature,
Pressure p_pressure) {
//updated 10/22/09 by gmagoon to use BufferedReader; this isn't exactly the most elegant solution (as I have effectively copied code and made this loop through twice in order to cor... |
diff --git a/src/java/JDBC/JDBC.java b/src/java/JDBC/JDBC.java
index ea2b2ac..0a8f568 100644
--- a/src/java/JDBC/JDBC.java
+++ b/src/java/JDBC/JDBC.java
@@ -1,30 +1,30 @@
package JDBC;
import java.io.*;
import java.sql.*;
public class JDBC{
public static String setString(String a){
return "\'"+a+"\',";
}
p... | true | true | public static Connection connect() throws SQLException,ClassNotFoundException{
Class.forName("org.postgresql.Driver");
//Enter the connection details
String hostname = "localhost:5432"; // If PostgreSQL is running on some other machine enter the IP address of the machine here
String username = "postgres"; // E... | public static Connection connect() throws SQLException,ClassNotFoundException{
Class.forName("org.postgresql.Driver");
//Enter the connection details
String hostname = "localhost:5432"; // If PostgreSQL is running on some other machine enter the IP address of the machine here
String username = "postgres"; // E... |
diff --git a/src/main/java/ua/krem/agent/dao/ProductDAO.java b/src/main/java/ua/krem/agent/dao/ProductDAO.java
index 39ec157..bd24a4f 100644
--- a/src/main/java/ua/krem/agent/dao/ProductDAO.java
+++ b/src/main/java/ua/krem/agent/dao/ProductDAO.java
@@ -1,179 +1,180 @@
package ua.krem.agent.dao;
import java.util.Arr... | false | true | public List<Product> getProducts(Filter filter, List<Item> itemListOriginal){
List<Item> itemList = null;
if(itemListOriginal != null){
System.out.println("all ids");
itemList = new ArrayList<Item>();
for(Item i : itemListOriginal){
System.out.println(i.id + ":" + i.amount);
itemList.add(i);
}
... | public List<Product> getProducts(Filter filter, List<Item> itemListOriginal){
List<Item> itemList = null;
if(itemListOriginal != null){
System.out.println("all ids");
itemList = new ArrayList<Item>();
for(Item i : itemListOriginal){
System.out.println(i.id + ":" + i.amount);
itemList.add(i);
}
... |
diff --git a/java/AP2DX/src/AP2DX/planner/Program.java b/java/AP2DX/src/AP2DX/planner/Program.java
index c570171..08b51fa 100644
--- a/java/AP2DX/src/AP2DX/planner/Program.java
+++ b/java/AP2DX/src/AP2DX/planner/Program.java
@@ -1,279 +1,279 @@
package AP2DX.planner;
import java.util.ArrayList;
import AP2DX.AP2D... | true | true | public ArrayList<AP2DXMessage> componentLogic(Message message) {
ArrayList<AP2DXMessage> messageList = new ArrayList<AP2DXMessage>();
// System.out.println("Received message " + message.getMessageString());
// System.out.println(String.format("In Queue: %s",
// this.getReceiveQueue().size()));
switch (messa... | public ArrayList<AP2DXMessage> componentLogic(Message message) {
ArrayList<AP2DXMessage> messageList = new ArrayList<AP2DXMessage>();
// System.out.println("Received message " + message.getMessageString());
// System.out.println(String.format("In Queue: %s",
// this.getReceiveQueue().size()));
switch (messa... |
diff --git a/src/vooga/rts/map/TileMap.java b/src/vooga/rts/map/TileMap.java
index bc8836be..284f045b 100644
--- a/src/vooga/rts/map/TileMap.java
+++ b/src/vooga/rts/map/TileMap.java
@@ -1,189 +1,189 @@
package vooga.rts.map;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.Rectangle;
impor... | false | true | public void paint (Graphics2D pen) {
Rectangle view = Camera.instance().getWorldVision().getBounds();
// Get the start index of what is visible by the cameras.
int startX = (int) (view.getMinX() > 0 ? view.getMinX() : 0);
startX /= myTileSize.getWidth();
startX /= Camera.ISO... | public void paint (Graphics2D pen) {
Rectangle view = Camera.instance().getWorldVision().getBounds();
// Get the start index of what is visible by the cameras.
int startX = (int) (view.getMinX() > 0 ? view.getMinX() : 0);
startX /= myTileSize.getWidth();
startX /= Camera.ISO... |
diff --git a/magma-datasource-hibernate/src/main/java/org/obiba/magma/datasource/hibernate/HibernateDatasource.java b/magma-datasource-hibernate/src/main/java/org/obiba/magma/datasource/hibernate/HibernateDatasource.java
index 797f2686..71e8ae85 100644
--- a/magma-datasource-hibernate/src/main/java/org/obiba/magma/data... | false | true | public void dropTable(@Nonnull String tableName) {
Stopwatch stopwatch = Stopwatch.createStarted();
String tableFullName = getName() + "." + tableName;
log.info("Dropping table {}", tableFullName);
HibernateValueTable valueTable = (HibernateValueTable) getValueTable(tableName);
ValueTableState t... | public void dropTable(@Nonnull String tableName) {
String tableFullName = getName() + "." + tableName;
log.info("Dropping table {}", tableFullName);
HibernateValueTable valueTable = (HibernateValueTable) getValueTable(tableName);
ValueTableState tableState = valueTable.getValueTableState();
remo... |
diff --git a/src/java/org/jivesoftware/sparkimpl/plugin/chat/PresenceChangePlugin.java b/src/java/org/jivesoftware/sparkimpl/plugin/chat/PresenceChangePlugin.java
index 21be2061..09124855 100644
--- a/src/java/org/jivesoftware/sparkimpl/plugin/chat/PresenceChangePlugin.java
+++ b/src/java/org/jivesoftware/sparkimpl/plu... | true | true | public void initialize() {
// Listen for right-clicks on ContactItem
final ContactList contactList = SparkManager.getWorkspace().getContactList();
final Action listenAction = new AbstractAction() {
public void actionPerformed(ActionEvent e) {
ContactItem item = (... | public void initialize() {
// Listen for right-clicks on ContactItem
final ContactList contactList = SparkManager.getWorkspace().getContactList();
final Action listenAction = new AbstractAction() {
public void actionPerformed(ActionEvent e) {
ContactItem item = (... |
diff --git a/revolt/src/org/riotfamily/revolt/ChangeSet.java b/revolt/src/org/riotfamily/revolt/ChangeSet.java
index 41bd460c8..19cdb738e 100644
--- a/revolt/src/org/riotfamily/revolt/ChangeSet.java
+++ b/revolt/src/org/riotfamily/revolt/ChangeSet.java
@@ -1,89 +1,92 @@
/* ***** BEGIN LICENSE BLOCK *****
* Version: ... | true | true | public Script getScript(Dialect dialect) {
Script script = new Script();
Iterator it = refactorings.iterator();
while (it.hasNext()) {
Refactoring refactoring = (Refactoring) it.next();
script.append(refactoring.getScript(dialect));
}
return script;
}
| public Script getScript(Dialect dialect) {
Script script = new Script();
Iterator it = refactorings.iterator();
while (it.hasNext()) {
Refactoring refactoring = (Refactoring) it.next();
Script s = refactoring.getScript(dialect);
if (s != null) {
script.append(s);
}
}
return script;
}
|
diff --git a/cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/misc/WebReset.java b/cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/misc/WebReset.java
index a02379c3..e72313f0 100644
--- a/cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/misc/WebReset.java
+++ b/cspi-webui/src/main/j... | true | true | private void reset(Storage storage,UIRequest request,String path) throws UIException {
//remember to log into the fornt end before trying to run this
JSONObject data = new JSONObject();
// Temporary hack to reset db
try {
TTYOutputter tty=request.getTTYOutputter();
if(!path.equals("nodelete")){
// D... | private void reset(Storage storage,UIRequest request,String path) throws UIException {
//remember to log into the fornt end before trying to run this
JSONObject data = new JSONObject();
// Temporary hack to reset db
try {
TTYOutputter tty=request.getTTYOutputter();
if(!path.equals("nodelete")){
// D... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java
index 42e673fe9..d47b735e0 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTas... | true | true | public boolean selectReveal(Object object) {
if (object instanceof TaskEditorOutlineNode) {
TaskEditorOutlineNode node = (TaskEditorOutlineNode) object;
TaskAttribute attribute = node.getData();
if (attribute != null) {
if (TaskAttribute.TYPE_COMMENT.equals(attribute.getMetaData().getType())) {
Abs... | public boolean selectReveal(Object object) {
if (object instanceof TaskEditorOutlineNode) {
TaskEditorOutlineNode node = (TaskEditorOutlineNode) object;
TaskAttribute attribute = node.getData();
if (attribute != null) {
if (TaskAttribute.TYPE_COMMENT.equals(attribute.getMetaData().getType())) {
Abs... |
diff --git a/src/main/java/ee/ignorance/transformiceapi/ServerMessagesParser.java b/src/main/java/ee/ignorance/transformiceapi/ServerMessagesParser.java
index ff58722..8d1de5e 100644
--- a/src/main/java/ee/ignorance/transformiceapi/ServerMessagesParser.java
+++ b/src/main/java/ee/ignorance/transformiceapi/ServerMessage... | true | true | public static Processable parse(byte[] message) throws IOException {
DataInputStream stream = new DataInputStream(new ByteArrayInputStream(message));
byte b1 = stream.readByte();
byte b2 = stream.readByte();
if (b1 == 1) {
... | public static Processable parse(byte[] message) throws IOException {
DataInputStream stream = new DataInputStream(new ByteArrayInputStream(message));
byte b1 = stream.readByte();
byte b2 = stream.readByte();
if (b1 == 1) {
... |
diff --git a/bennu-core/src/myorg/presentationTier/actions/AuthenticationAction.java b/bennu-core/src/myorg/presentationTier/actions/AuthenticationAction.java
index 972fc40b..c292b783 100644
--- a/bennu-core/src/myorg/presentationTier/actions/AuthenticationAction.java
+++ b/bennu-core/src/myorg/presentationTier/actions... | false | true | private static void callLoginListner(final UserView userView, final AuthenticationListner authenticationListner) {
final TransactionalThread thread = new TransactionalThread() {
final VirtualHost virtualHost = VirtualHost.getVirtualHostForThread();
@Override
public void transactionalRun() {
auth... | private static void callLoginListner(final UserView userView, final AuthenticationListner authenticationListner) {
final TransactionalThread thread = new TransactionalThread() {
final VirtualHost virtualHost = VirtualHost.getVirtualHostForThread();
@Override
public void transactionalRun() {
try ... |
diff --git a/src/com/example/skidrow/MainActivity.java b/src/com/example/skidrow/MainActivity.java
index 5b3f148..8465db6 100644
--- a/src/com/example/skidrow/MainActivity.java
+++ b/src/com/example/skidrow/MainActivity.java
@@ -1,20 +1,21 @@
package com.example.skidrow;
import android.os.Bundle;
import android.ap... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
| public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.setContentView(R.layout.homescreen);
}
|
diff --git a/java/client/test/org/openqa/selenium/firefox/NativeEventsTest.java b/java/client/test/org/openqa/selenium/firefox/NativeEventsTest.java
index c5ddd5249..87d1fc573 100644
--- a/java/client/test/org/openqa/selenium/firefox/NativeEventsTest.java
+++ b/java/client/test/org/openqa/selenium/firefox/NativeEventsT... | true | true | public void testSwitchingElementsUsingKeyboardWorks() {
if (driver2 == null) {
return;
}
assertTrue("Native events were explicitly enabeld and should be on.",
(Boolean) driver2.getCapabilities().getCapability("nativeEvents"));
if (Platform.getCurrent().is(Platform.LINUX)) {
asser... | public void testSwitchingElementsUsingKeyboardWorks() {
if (driver2 == null) {
return;
}
assertTrue("Native events were explicitly enabled and should be on.",
(Boolean) driver2.getCapabilities().getCapability("nativeEvents"));
if (Platform.getCurrent().is(Platform.LINUX)) {
asser... |
diff --git a/src/main/java/com/raccoonfink/cruisemonkey/server/OfficialScheduleInitializer.java b/src/main/java/com/raccoonfink/cruisemonkey/server/OfficialScheduleInitializer.java
index 2c50185..880bfd9 100644
--- a/src/main/java/com/raccoonfink/cruisemonkey/server/OfficialScheduleInitializer.java
+++ b/src/main/java/... | true | true | public void afterPropertiesSet() throws Exception {
if (m_eventDao.findAll().size() == 0) {
m_eventDao.save(new Event(UUID.randomUUID().toString(), "CocoCay - Bahamas", "Surrounded by the gentle, translucent waters of the Bahamas chain lies the secluded island of Coco Cay®. With its white-sand beaches and spectac... | public void afterPropertiesSet() throws Exception {
if (m_eventDao.findAll().size() == 0) {
m_eventDao.save(new Event(UUID.randomUUID().toString(), "CocoCay - Bahamas", "Surrounded by the gentle, translucent waters of the Bahamas chain lies the secluded island of Coco Cay®. With its white-sand beaches and spectac... |
diff --git a/src/net/stormdev/mario/mariokart/URaceCommandExecutor.java b/src/net/stormdev/mario/mariokart/URaceCommandExecutor.java
index 8240d9b..637e850 100644
--- a/src/net/stormdev/mario/mariokart/URaceCommandExecutor.java
+++ b/src/net/stormdev/mario/mariokart/URaceCommandExecutor.java
@@ -1,531 +1,538 @@
packag... | true | true | public Boolean urace(CommandSender sender, String[] args, Player player) {
if (args.length < 1) {
return false;
}
String command = args[0];
if (command.equalsIgnoreCase("list")) {
int page = 1;
if (args.length > 1) {
try {
page = Integer.parseInt(args[1]);
} catch (NumberFormatException e... | public Boolean urace(CommandSender sender, String[] args, Player player) {
if (args.length < 1) {
return false;
}
String command = args[0];
if (command.equalsIgnoreCase("list")) {
int page = 1;
if (args.length > 1) {
try {
page = Integer.parseInt(args[1]);
} catch (NumberFormatException e... |
diff --git a/json/app/com/ssachtleben/play/plugin/json/MixinProvider.java b/json/app/com/ssachtleben/play/plugin/json/MixinProvider.java
index cc9482f..2ca70e0 100644
--- a/json/app/com/ssachtleben/play/plugin/json/MixinProvider.java
+++ b/json/app/com/ssachtleben/play/plugin/json/MixinProvider.java
@@ -1,12 +1,12 @@
... | true | true | Class<?> mixins();
| Class<?>[] mixins();
|
diff --git a/src/fastaIO/FastaWriter.java b/src/fastaIO/FastaWriter.java
index 99dda86..b551963 100644
--- a/src/fastaIO/FastaWriter.java
+++ b/src/fastaIO/FastaWriter.java
@@ -1,22 +1,22 @@
package fastaIO;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Prin... | true | true | public void writeFile(String output, String sequence, String description) {
PrintWriter pw = null;
try {
pw = new PrintWriter(output);
} catch (IOException e) {
System.out.println("An error ocurred while writing the file");
}
pw.write(">" + description);
pw.write(sequence);
pw.close();
}
| public void writeFile(String output, String sequence, String description) {
PrintWriter pw = null;
try {
pw = new PrintWriter(output);
} catch (IOException e) {
System.out.println("An error ocurred while writing the file");
}
pw.print(">" + description);
pw.print(sequence);
pw.close();
}
|
diff --git a/src/java/com/eviware/soapui/impl/wsdl/teststeps/WsdlGroovyScriptTestStep.java b/src/java/com/eviware/soapui/impl/wsdl/teststeps/WsdlGroovyScriptTestStep.java
index a01b11b35..bb8d18ab8 100644
--- a/src/java/com/eviware/soapui/impl/wsdl/teststeps/WsdlGroovyScriptTestStep.java
+++ b/src/java/com/eviware/soap... | true | true | public TestStepResult run( TestCaseRunner testRunner, TestCaseRunContext context )
{
SoapUI.ensureGroovyLog();
WsdlTestStepResult result = new WsdlTestStepResult( this );
Logger log = ( Logger )context.getProperty( "log" );
if( log == null )
log = logger;
try
{
if( scriptText.trim().length() > 0 )... | public TestStepResult run( TestCaseRunner testRunner, TestCaseRunContext context )
{
SoapUI.ensureGroovyLog();
WsdlTestStepResult result = new WsdlTestStepResult( this );
Logger log = ( Logger )context.getProperty( "log" );
if( log == null )
log = logger;
try
{
if( scriptText.trim().length() > 0 )... |
diff --git a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/callhierarchy/RemoteCHViewPart.java b/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/callhierarchy/RemoteCHViewPart.java
index 7f43ff2bc..ba7644edc 100755
--- a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/call... | true | true | private void createActions() {
// action groups
fOpenViewActionGroup= new OpenViewActionGroup(this);
fOpenViewActionGroup.setSuppressCallHierarchy(true);
fOpenViewActionGroup.setSuppressProperties(true);
fOpenViewActionGroup.setEnableIncludeBrowser(true);
fSelectionSearchGroup= new Sel... | private void createActions() {
// action groups
fOpenViewActionGroup= new OpenViewActionGroup(this);
fOpenViewActionGroup.setSuppressCallHierarchy(true);
fOpenViewActionGroup.setSuppressProperties(true);
fOpenViewActionGroup.setSuppressTypeHierarchy(true); // TEMPORARY this should work
... |
diff --git a/crypto/test/src/org/bouncycastle/jce/provider/test/AlgorithmParametersTest.java b/crypto/test/src/org/bouncycastle/jce/provider/test/AlgorithmParametersTest.java
index c616c3e8..72f38854 100644
--- a/crypto/test/src/org/bouncycastle/jce/provider/test/AlgorithmParametersTest.java
+++ b/crypto/test/src/org/b... | true | true | private void basicTest(String algorithm, Class algorithmParameterSpec, byte[] asn1Encoded)
throws Exception
{
AlgorithmParameters alg = AlgorithmParameters.getInstance(algorithm, "BC");
alg.init(asn1Encoded);
try
{
alg.init(asn1Encoded);
fail("en... | private void basicTest(String algorithm, Class algorithmParameterSpec, byte[] asn1Encoded)
throws Exception
{
AlgorithmParameters alg = AlgorithmParameters.getInstance(algorithm, "BC");
alg.init(asn1Encoded);
try
{
alg.init(asn1Encoded);
fail("en... |
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/VMInstallTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/VMInstallTests.java
index 43266e15e..a9658472f 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/VMInstallTests.java
+++ ... | false | true | public void testSystemProperties() throws CoreException {
IVMInstall def = JavaRuntime.getDefaultVMInstall();
assertTrue("should be an IVMInstall3", def instanceof IVMInstall3);
IVMInstall3 vm3 = (IVMInstall3)def;
Map<String, Object> map = vm3.evaluateSystemProperties(new String[]{"user.home"}, new NullProgres... | public void testSystemProperties() throws CoreException {
IVMInstall def = JavaRuntime.getDefaultVMInstall();
assertTrue("should be an IVMInstall3", def instanceof IVMInstall3);
IVMInstall3 vm3 = (IVMInstall3)def;
Map<String, String> map = vm3.evaluateSystemProperties(new String[]{"user.home"}, new NullProgres... |
diff --git a/src/com/plingnote/ListDateHandler.java b/src/com/plingnote/ListDateHandler.java
index e69b5e8..7747807 100644
--- a/src/com/plingnote/ListDateHandler.java
+++ b/src/com/plingnote/ListDateHandler.java
@@ -1,154 +1,152 @@
/**
* This file is part of Plingnote.
* Copyright (C) 2012 Linus Karlsson
*
*... | false | true | public static String customDateFormat(String date) {
SimpleDateFormat dateFormat = new SimpleDateFormat(
"yyyy-MM-dd HH:mm:ss");
Date noteDate = new Date();
Date currentDate = new Date();
// Initiate the string with "null" if the try-catch statement fails
String dateText = null;
Calendar calendar =... | public static String customDateFormat(String date) {
// The supposed format of the incoming string
SimpleDateFormat dateFormat = new SimpleDateFormat(
"yyyy-MM-dd HH:mm:ss");
Date noteDate = new Date();
Date currentDate = new Date();
// Initiate the string with "null" if the try-catch statement fails
... |
diff --git a/org.caleydo.core/src/org/caleydo/core/view/opengl/layout2/util/GLElementViewSwitchingBar.java b/org.caleydo.core/src/org/caleydo/core/view/opengl/layout2/util/GLElementViewSwitchingBar.java
index 45695b341..86f79a74d 100644
--- a/org.caleydo.core/src/org/caleydo/core/view/opengl/layout2/util/GLElementViewS... | true | true | public void addButton(final int rendererID, final MultiFormRenderer multiFormRenderer) {
// Button button = new Button(buttonPickingType, rendererID, multiFormRenderer.getIconPath(rendererID));
// ElementLayout buttonLayout = ElementLayouts.createButton(view, button, DEFAULT_HEIGHT_PIXELS,
// DEFAULT_HEIGHT_PIX... | public void addButton(final int rendererID, final MultiFormRenderer multiFormRenderer) {
// Button button = new Button(buttonPickingType, rendererID, multiFormRenderer.getIconPath(rendererID));
// ElementLayout buttonLayout = ElementLayouts.createButton(view, button, DEFAULT_HEIGHT_PIXELS,
// DEFAULT_HEIGHT_PIX... |
diff --git a/src/edgruberman/bukkit/simplelocks/PlayerListener.java b/src/edgruberman/bukkit/simplelocks/PlayerListener.java
index c05e7d6..4925274 100644
--- a/src/edgruberman/bukkit/simplelocks/PlayerListener.java
+++ b/src/edgruberman/bukkit/simplelocks/PlayerListener.java
@@ -1,86 +1,83 @@
package edgruberman.bukk... | false | true | public void onPlayerInteract(final PlayerInteractEvent event) {
if (event.isCancelled()) return;
if (!event.getAction().equals(Action.RIGHT_CLICK_BLOCK)) return;
final Lock lock = Lock.getLock(event.getClickedBlock());
if (lock != null) {
// Existing lock in place.
... | public void onPlayerInteract(final PlayerInteractEvent event) {
if (event.isCancelled()) return;
if (!event.getAction().equals(Action.RIGHT_CLICK_BLOCK)) return;
final Lock lock = Lock.getLock(event.getClickedBlock());
if (lock != null) {
// Existing lock in place.
... |
diff --git a/src/com/android/camera/CameraScreenNail.java b/src/com/android/camera/CameraScreenNail.java
index ed97e50d..ed7c8477 100644
--- a/src/com/android/camera/CameraScreenNail.java
+++ b/src/com/android/camera/CameraScreenNail.java
@@ -1,221 +1,220 @@
/*
* Copyright (C) 2012 The Android Open Source Project
... | false | true | public void draw(GLCanvas canvas, int x, int y, int width, int height) {
if (getSurfaceTexture() == null) return;
synchronized (mLock) {
if (!mFirstFrameArrived) return;
if (!mVisible) mVisible = true;
if (mAnimState == ANIM_NONE) {
super.draw(can... | public void draw(GLCanvas canvas, int x, int y, int width, int height) {
synchronized (mLock) {
if (!mVisible) mVisible = true;
if (getSurfaceTexture() == null || !mFirstFrameArrived) return;
if (mAnimState == ANIM_NONE) {
super.draw(canvas, x, y, width, ... |
diff --git a/src/com/redhat/qe/auto/testng/BzBugDependency.java b/src/com/redhat/qe/auto/testng/BzBugDependency.java
index 4d89769..4bc0588 100644
--- a/src/com/redhat/qe/auto/testng/BzBugDependency.java
+++ b/src/com/redhat/qe/auto/testng/BzBugDependency.java
@@ -1,40 +1,41 @@
package com.redhat.qe.auto.testng;
pu... | true | true | public String toString(){
StringBuffer sb = new StringBuffer();
for (Object param: params){
sb.append(param.toString() + "," );
}
sb.append(" **" + type.getDescription() + " " + bugId);
return sb.toString();
}
| public String toString(){
StringBuffer sb = new StringBuffer();
for (Object param: params){
if (param==null) param = "null";
sb.append(param.toString() + "," );
}
sb.append(" **" + type.getDescription() + " " + bugId);
return sb.toString();
}
|
diff --git a/src/uk/ac/susx/mlcl/byblo/Byblo.java b/src/uk/ac/susx/mlcl/byblo/Byblo.java
index 59f7b37..dbd3e38 100644
--- a/src/uk/ac/susx/mlcl/byblo/Byblo.java
+++ b/src/uk/ac/susx/mlcl/byblo/Byblo.java
@@ -1,188 +1,188 @@
/*
* Copyright (c) 2010-2011, University of Sussex
* All rights reserved.
*
* Redistr... | true | true | public static void main(String[] args) throws InstantiationException, IllegalAccessException, Exception {
////
// args = new String[]{"count"
//// "allpairs",
//// "--input", "sampledata/bnc-gramrels-fruit.features",
//// "--input-contexts", "sampledat... | public static void main(String[] args) throws InstantiationException, IllegalAccessException, Exception {
////
// args = new String[]{"count"
//// "allpairs",
//// "--input", "sampledata/bnc-gramrels-fruit.features",
//// "--input-contexts", "sampledat... |
diff --git a/sipXconfig/web/src/org/sipfoundry/sipxconfig/site/admin/ExtensionPoolsPage.java b/sipXconfig/web/src/org/sipfoundry/sipxconfig/site/admin/ExtensionPoolsPage.java
index 2ce8ca766..1cd6d1fe6 100644
--- a/sipXconfig/web/src/org/sipfoundry/sipxconfig/site/admin/ExtensionPoolsPage.java
+++ b/sipXconfig/web/src/... | true | true | public void commit(IRequestCycle cycle_) {
// Proceed only if Tapestry validation succeeded
if (!TapestryUtils.isValid(this)) {
return;
}
// Complain if the extension pool upper limit is lower than the lower limit
ExtensionPool pool = getUserExtensionPool... | public void commit(IRequestCycle cycle_) {
// Proceed only if Tapestry validation succeeded
if (!TapestryUtils.isValid(this)) {
return;
}
// Complain if the extension pool upper limit is lower than the lower limit
ExtensionPool pool = getUserExtensionPool... |
diff --git a/nest-writer-netcdf/src/main/java/org/esa/nest/dataio/cosmo/CosmoSkymedReader.java b/nest-writer-netcdf/src/main/java/org/esa/nest/dataio/cosmo/CosmoSkymedReader.java
index 55e4439f7..308c8b9a6 100644
--- a/nest-writer-netcdf/src/main/java/org/esa/nest/dataio/cosmo/CosmoSkymedReader.java
+++ b/nest-writer-n... | true | true | private void addAbstractedMetadataHeader(Product product, MetadataElement root) throws IOException {
final MetadataElement absRoot = AbstractMetadata.addAbstractedMetadataHeader(root);
final String defStr = AbstractMetadata.NO_METADATA_STRING;
final int defInt = AbstractMetadata.NO_METADAT... | private void addAbstractedMetadataHeader(Product product, MetadataElement root) throws IOException {
final MetadataElement absRoot = AbstractMetadata.addAbstractedMetadataHeader(root);
final String defStr = AbstractMetadata.NO_METADATA_STRING;
final int defInt = AbstractMetadata.NO_METADAT... |
diff --git a/src/test/java/com/ning/billing/recurly/model/TestAccounts.java b/src/test/java/com/ning/billing/recurly/model/TestAccounts.java
index 8307e32..bde438f 100644
--- a/src/test/java/com/ning/billing/recurly/model/TestAccounts.java
+++ b/src/test/java/com/ning/billing/recurly/model/TestAccounts.java
@@ -1,64 +1... | true | true | public void testDeserialization() throws Exception {
// See http://docs.recurly.com/api/accounts
final String accountsData = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
"<accounts type=\"array\">\n" +
" <account href=\"htt... | public void testDeserialization() throws Exception {
// See http://docs.recurly.com/api/accounts
final String accountsData = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
"<accounts type=\"array\">\n" +
" <account href=\"htt... |
diff --git a/src/de/raptor2101/GalDroid/Activities/EditGalleryActivity.java b/src/de/raptor2101/GalDroid/Activities/EditGalleryActivity.java
index d27bc53..966355c 100644
--- a/src/de/raptor2101/GalDroid/Activities/EditGalleryActivity.java
+++ b/src/de/raptor2101/GalDroid/Activities/EditGalleryActivity.java
@@ -1,118 +... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.create_gallery_activity);
Spinner spinner = (Spinner) findViewById(R.id.spinnerGalleryType);
mAdapter = ArrayAdapter.createFromResource(
this, R.array.gallery_types, android.R... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.create_gallery_activity);
Spinner spinner = (Spinner) findViewById(R.id.spinnerGalleryType);
mAdapter = ArrayAdapter.createFromResource(
this, R.array.gallery_types, android.R... |
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/main/java/br/ufpe/cin/dsoa/platform/event/impl/EsperAgentBuilder.java b/src/main/java/br/ufpe/cin/dsoa/platform/event/impl/EsperAgentBuilder.java
index 13826e6..cf47ae6 100644
--- a/src/main/java/br/ufpe/cin/dsoa/platform/event/impl/EsperAgentBuilder.java
+++ b/src/main/java/br/ufpe/cin/dsoa/platform/e... | true | true | private String extractSelect(List<Property> properties, String prefix) {
String alias = in.getAlias();
StringBuilder result = new StringBuilder();
Iterator<Property> iterator = properties.iterator();
boolean first = true;
while (iterator.hasNext()) {
if (!first) {
result.append(", ");
}
first = ... | private String extractSelect(List<Property> properties, String prefix) {
String alias = in.getAlias();
StringBuilder result = new StringBuilder();
Iterator<Property> iterator = properties.iterator();
boolean first = true;
while (iterator.hasNext()) {
if (!first) {
result.append(", ");
}
first = ... |
diff --git a/GAE/src/com/gallatinsystems/common/util/ZipUtil.java b/GAE/src/com/gallatinsystems/common/util/ZipUtil.java
index 1cccd4ad1..fb178eb35 100644
--- a/GAE/src/com/gallatinsystems/common/util/ZipUtil.java
+++ b/GAE/src/com/gallatinsystems/common/util/ZipUtil.java
@@ -1,64 +1,64 @@
package com.gallatinsystems.... | true | true | public static ByteArrayOutputStream generateZip(String content,
String filename) {
ZipOutputStream zipOut = null;
ByteArrayOutputStream bos = null;
try {
bos = new ByteArrayOutputStream();
zipOut = new ZipOutputStream(bos);
zipOut.setLevel(ZipOutputStream.DEFLATED);
ZipEntry entry = new ZipEntry(f... | public static ByteArrayOutputStream generateZip(String content,
String filename) {
ZipOutputStream zipOut = null;
ByteArrayOutputStream bos = null;
try {
bos = new ByteArrayOutputStream();
zipOut = new ZipOutputStream(bos);
zipOut.setLevel(ZipOutputStream.DEFLATED);
ZipEntry entry = new ZipEntry(f... |
diff --git a/src/java/org/apache/cassandra/db/marshal/DateType.java b/src/java/org/apache/cassandra/db/marshal/DateType.java
index 56d00a659..4270511a1 100644
--- a/src/java/org/apache/cassandra/db/marshal/DateType.java
+++ b/src/java/org/apache/cassandra/db/marshal/DateType.java
@@ -1,127 +1,127 @@
/*
* Licensed to... | true | true | public static long dateStringToTimestamp(String source) throws MarshalException
{
long millis;
if (source.toLowerCase().equals("now"))
{
millis = System.currentTimeMillis();
}
// Milliseconds since epoch?
else if (source.matches("^\\d+$"))
{
try
... | public static long dateStringToTimestamp(String source) throws MarshalException
{
long millis;
if (source.toLowerCase().equals("now"))
{
millis = System.currentTimeMillis();
}
// Milliseconds since epoch?
else if (source.matches("^\\d+$"))
{
try
... |
diff --git a/src/com/nidefawl/Achievements/AchievementPlayerListener.java b/src/com/nidefawl/Achievements/AchievementPlayerListener.java
index 1bac77f..09d9905 100644
--- a/src/com/nidefawl/Achievements/AchievementPlayerListener.java
+++ b/src/com/nidefawl/Achievements/AchievementPlayerListener.java
@@ -1,239 +1,239 @@... | false | true | public void onPlayerMove(PlayerMoveEvent event) {
if (event.isCancelled())
return;
if (plugin.permission.has(event.getPlayer(), "achievements.check") && plugin.permission.has(event.getPlayer(), "achievements.discover")){
plugin.playerWorldNew = event.getPlayer().getWorld();
plugin.playerDistNew = ev... | public void onPlayerMove(PlayerMoveEvent event) {
if (event.isCancelled())
return;
if (plugin.permission.has(event.getPlayer(), "achievements.check") && plugin.permission.has(event.getPlayer(), "achievements.discover")){
plugin.playerWorldNew = event.getPlayer().getWorld();
plugin.playerDistNew = ev... |
diff --git a/src/main/java/casmi/graphics/shader/GlowExample.java b/src/main/java/casmi/graphics/shader/GlowExample.java
index 611029e..5f243ec 100644
--- a/src/main/java/casmi/graphics/shader/GlowExample.java
+++ b/src/main/java/casmi/graphics/shader/GlowExample.java
@@ -1,154 +1,154 @@
/*
* casmi examples
* ... | false | true | public void setup() {
setSize(800, 600);
r1 = new Rect(100, 100);
r1.setPosition(100, 100);
r1.setFillColor(ColorSet.DARK_GREEN);
r2 = new Rect(100, 100);
r2.setPosition(150, 150);
r2.setFillColor(ColorSet.ORANGE);
r2.setStroke(false);
r2.ena... | public void setup() {
setSize(800, 600);
r1 = new Rect(100, 100);
r1.setPosition(100, 100);
r1.setFillColor(ColorSet.DARK_GREEN);
r2 = new Rect(100, 100);
r2.setPosition(150, 150);
r2.setFillColor(ColorSet.ORANGE);
r2.setStroke(false);
r2.ena... |
diff --git a/compiler/src/test/java/dagger/tests/integration/codegen/InjectAdapterGenerationTest.java b/compiler/src/test/java/dagger/tests/integration/codegen/InjectAdapterGenerationTest.java
index 9030479c..b11c5e39 100644
--- a/compiler/src/test/java/dagger/tests/integration/codegen/InjectAdapterGenerationTest.java
... | false | true | @Test public void basicInjectAdapter() {
JavaFileObject sourceFile = JavaFileObjects.forSourceString("Basic", Joiner.on("\n").join(
"import dagger.Module;",
"import javax.inject.Inject;",
"class Basic {",
" static class A { @Inject A() { } }",
" @Module(injects = A.class)... | @Test public void basicInjectAdapter() {
JavaFileObject sourceFile = JavaFileObjects.forSourceString("Basic", Joiner.on("\n").join(
"import dagger.Module;",
"import javax.inject.Inject;",
"class Basic {",
" static class A { @Inject A() { } }",
" @Module(injects = A.class)... |
diff --git a/src/arcane_arcade_menus/MainMenuMenuCreator.java b/src/arcane_arcade_menus/MainMenuMenuCreator.java
index 46040e1..3188830 100644
--- a/src/arcane_arcade_menus/MainMenuMenuCreator.java
+++ b/src/arcane_arcade_menus/MainMenuMenuCreator.java
@@ -1,310 +1,311 @@
package arcane_arcade_menus;
import java.aw... | true | true | public MainMenuElement(int direction, DrawableHandler drawer,
MouseListenerHandler mousehandler, Room room, Navigator navigator) {
super(0, 0, DepthConstants.NORMAL, drawer);
//We need a couple of new variables for construction
String spriteName = new String();
int x=GameSettings.SCREENWIDTH/2;
in... | public MainMenuElement(int direction, DrawableHandler drawer,
MouseListenerHandler mousehandler, Room room, Navigator navigator) {
super(0, 0, DepthConstants.NORMAL, drawer);
//We need a couple of new variables for construction
String spriteName = new String();
int x=GameSettings.SCREENWIDTH/2;
th... |
diff --git a/src/main/java/clisk/generator/Voronoi2D.java b/src/main/java/clisk/generator/Voronoi2D.java
index ce640d3..5d46388 100644
--- a/src/main/java/clisk/generator/Voronoi2D.java
+++ b/src/main/java/clisk/generator/Voronoi2D.java
@@ -1,101 +1,101 @@
package clisk.generator;
import java.util.Random;
import... | false | true | private int seek(double x, double y) {
// indexes of best and next best
int i0=0;
int i1=1;
// distances of best and next best
double dd0=dist2(x,y,xs[0],ys[0]);
double dd1=dist2(x,y,xs[0],ys[0]);
if (dd1<dd0) {
i0=1; i1=0;
double t=dd0; dd0=dd1; dd1=dd0;
}
for (int i=2; i<count; i++) ... | private int seek(double x, double y) {
// indexes of best and next best
int i0=0;
int i1=1;
// distances of best and next best
double dd0=dist2(x,y,xs[0],ys[0]);
double dd1=dist2(x,y,xs[1],ys[1]);
if (dd1<dd0) {
i0=1; i1=0;
double t=dd0; dd0=dd1; dd1=t;
}
for (int i=2; i<count; i++) {
... |
diff --git a/src/edu/wheaton/simulator/gui/EditEntityScreen.java b/src/edu/wheaton/simulator/gui/EditEntityScreen.java
index 18988f12..ee9c0f0e 100644
--- a/src/edu/wheaton/simulator/gui/EditEntityScreen.java
+++ b/src/edu/wheaton/simulator/gui/EditEntityScreen.java
@@ -1,524 +1,526 @@
/**
* EditEntityScreen
*
... | true | true | public EditEntityScreen(final ScreenManager sm) {
super(sm);
this.setLayout(new BorderLayout());
JLabel label = new JLabel("Edit Entities");
label.setHorizontalAlignment(SwingConstants.CENTER);
label.setHorizontalTextPosition(SwingConstants.CENTER);
JTabbedPane tabs = new JTabbedPane();
JPanel lowerPanel... | public EditEntityScreen(final ScreenManager sm) {
super(sm);
this.setLayout(new BorderLayout());
JLabel label = new JLabel("Edit Entities");
label.setHorizontalAlignment(SwingConstants.CENTER);
label.setHorizontalTextPosition(SwingConstants.CENTER);
JTabbedPane tabs = new JTabbedPane();
JPanel lowerPanel... |
diff --git a/orbisgis-core/src/main/java/org/orbisgis/javaManager/autocompletion/CompletionUtils.java b/orbisgis-core/src/main/java/org/orbisgis/javaManager/autocompletion/CompletionUtils.java
index 6b873e4a5..2d37809d9 100644
--- a/orbisgis-core/src/main/java/org/orbisgis/javaManager/autocompletion/CompletionUtils.jav... | false | true | public static Class<? extends Object> getType(
ASTPrimaryPrefix primaryPrefix, ASTPrimarySuffix[] suffixes)
throws SecurityException, ClassNotFoundException,
CannotAutocompleteException, NoSuchFieldException,
NoSuchMethodException {
// Get the type of the primaryPrefix
String[] parts = CompletionUtils.... | public static Class<? extends Object> getType(
ASTPrimaryPrefix primaryPrefix, ASTPrimarySuffix[] suffixes)
throws SecurityException, ClassNotFoundException,
CannotAutocompleteException, NoSuchFieldException,
NoSuchMethodException {
// Get the type of the primaryPrefix
String[] parts = CompletionUtils.... |
diff --git a/spring/samples/spring-websocket/src/main/java/org/atmosphere/samples/pubsub/utils/AtmosphereUtils.java b/spring/samples/spring-websocket/src/main/java/org/atmosphere/samples/pubsub/utils/AtmosphereUtils.java
index a749a29e..526f99ef 100644
--- a/spring/samples/spring-websocket/src/main/java/org/atmosphere/... | true | true | public static void suspend(final AtmosphereResource resource) {
final CountDownLatch countDownLatch = new CountDownLatch(1);
resource.addEventListener(new AtmosphereResourceEventListenerAdapter() {
@Override
public void onSuspend(AtmosphereResourceEvent event) {
... | public static void suspend(final AtmosphereResource resource) {
final CountDownLatch countDownLatch = new CountDownLatch(1);
resource.addEventListener(new AtmosphereResourceEventListenerAdapter() {
@Override
public void onSuspend(AtmosphereResourceEvent event) {
... |
diff --git a/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/widget/DifferencesWidget.java b/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/widget/DifferencesWidget.java
index 84ddb7322..79f05f81c 100644
--- a/studio-ap... | false | true | public void createWidget(Composite parent) {
// Composite
Composite composite = new Composite(parent, SWT.NONE);
GridLayout gridLayout = new GridLayout(2, true);
gridLayout.marginBottom = 0;
gridLayout.marginHeight = 0;
gridLayout.marginLeft = 0;
gridLayout.marginRight = 0;
gridLayout.marginTop = 0;
... | public void createWidget(Composite parent) {
// Composite
Composite composite = new Composite(parent, SWT.NONE);
GridLayout gridLayout = new GridLayout(2, true);
gridLayout.marginBottom = 0;
gridLayout.marginHeight = 0;
gridLayout.marginLeft = 0;
gridLayout.marginRight = 0;
gridLayout.marginTop = 0;
... |
diff --git a/simulator/src/test/java/org/processmonitor/simulator/GenerateProcessEngineState.java b/simulator/src/test/java/org/processmonitor/simulator/GenerateProcessEngineState.java
index 749464c..c1d3eab 100644
--- a/simulator/src/test/java/org/processmonitor/simulator/GenerateProcessEngineState.java
+++ b/simulato... | true | true | private static void generateBasicEngine()
throws InterruptedException {
String PROCESS_KEY = "threetasksprocess";
RepositoryService repositoryService;
RuntimeService runtimeService;
TaskService taskService;
IdentityService identityService;
ProcessEngine processEngine;
String liveDB = TEMP_DIR + "/Basi... | private static void generateBasicEngine()
throws InterruptedException {
String PROCESS_KEY = "threetasksprocess";
RepositoryService repositoryService;
RuntimeService runtimeService;
TaskService taskService;
IdentityService identityService;
ProcessEngine processEngine;
String liveDB = TEMP_DIR + "/Basi... |
diff --git a/src/org/openstatic/http/HttpRequestThread.java b/src/org/openstatic/http/HttpRequestThread.java
index 3f1d33a..d6685d0 100755
--- a/src/org/openstatic/http/HttpRequestThread.java
+++ b/src/org/openstatic/http/HttpRequestThread.java
@@ -1,203 +1,206 @@
/*
Copyright (C) 2010 Brian Dunigan
This p... | true | true | public void run()
{
try
{
// here we process input from the Browser
BufferedReader br = new BufferedReader(new InputStreamReader(this.is));
String cmd_line = null;
String request_type = null;
String... | public void run()
{
try
{
// here we process input from the Browser
BufferedReader br = new BufferedReader(new InputStreamReader(this.is));
String cmd_line = null;
String request_type = null;
String... |
diff --git a/src/tconstruct/common/TContent.java b/src/tconstruct/common/TContent.java
index 0ea4e6115..be71bc8c5 100644
--- a/src/tconstruct/common/TContent.java
+++ b/src/tconstruct/common/TContent.java
@@ -1,2585 +1,2588 @@
package tconstruct.common;
import net.minecraft.item.Item;
import net.minecraft.item.Ite... | true | true | void registerBlocks ()
{
//Tool Station
toolStationWood = new ToolStationBlock(PHConstruct.woodStation, Material.wood).setUnlocalizedName("ToolStation");
GameRegistry.registerBlock(toolStationWood, ToolStationItemBlock.class, "ToolStationBlock");
GameRegistry.registerTileEntity(T... | void registerBlocks ()
{
//Tool Station
toolStationWood = new ToolStationBlock(PHConstruct.woodStation, Material.wood).setUnlocalizedName("ToolStation");
GameRegistry.registerBlock(toolStationWood, ToolStationItemBlock.class, "ToolStationBlock");
GameRegistry.registerTileEntity(T... |
diff --git a/server/openejb-server/src/main/java/org/apache/openejb/server/ServiceDaemon.java b/server/openejb-server/src/main/java/org/apache/openejb/server/ServiceDaemon.java
index d3251bb756..da8efd5f6f 100644
--- a/server/openejb-server/src/main/java/org/apache/openejb/server/ServiceDaemon.java
+++ b/server/openejb... | true | true | public void start() throws ServiceException {
synchronized (this) {
if (!stop)
return;
stop = false;
try {
// serverSocket = new ServerSocket(port, 20, InetAddress.getByName(ip));
serverSocket = new ServerSocket(port, 20);... | public void start() throws ServiceException {
synchronized (this) {
if (!stop)
return;
stop = false;
try {
InetAddress address = InetAddress.getByName(ip);
serverSocket = new ServerSocket(port, 20, address);
// ... |
diff --git a/core/src/test/java/org/zenoss/zep/dao/impl/ConfigDaoImplIT.java b/core/src/test/java/org/zenoss/zep/dao/impl/ConfigDaoImplIT.java
index 479ed47..b2c175f 100644
--- a/core/src/test/java/org/zenoss/zep/dao/impl/ConfigDaoImplIT.java
+++ b/core/src/test/java/org/zenoss/zep/dao/impl/ConfigDaoImplIT.java
@@ -1,4... | false | true | public void testConfig() throws ZepException {
ZepConfig.Builder builder = ZepConfig.newBuilder();
builder.setEventAgeDisableSeverity(EventSeverity.SEVERITY_CRITICAL);
builder.setEventAgeSeverityInclusive(false);
builder.setEventAgeIntervalMinutes(60);
builder.setEventArchive... | public void testConfig() throws ZepException {
ZepConfig.Builder builder = ZepConfig.newBuilder();
builder.setEventAgeDisableSeverity(EventSeverity.SEVERITY_CRITICAL);
builder.setEventAgeSeverityInclusive(true);
builder.setEventAgeIntervalMinutes(60);
builder.setEventArchiveI... |
diff --git a/errai-codegen/src/main/java/org/jboss/errai/codegen/builder/callstack/LoadField.java b/errai-codegen/src/main/java/org/jboss/errai/codegen/builder/callstack/LoadField.java
index b5cfc2f65..477066f41 100644
--- a/errai-codegen/src/main/java/org/jboss/errai/codegen/builder/callstack/LoadField.java
+++ b/erra... | false | true | public void handleCall(final CallWriter writer, final Context context, Statement statement) {
final MetaField field;
if (fieldName.equals("this")) {
// TODO this is a workaround to access the enclosing instance of a type
field = new BuildMetaField(null, null, Scope.Private, statement.getType(), "t... | public void handleCall(final CallWriter writer, final Context context, Statement statement) {
final MetaField field;
if (fieldName.equals("this")) {
// TODO this is a workaround to access the enclosing instance of a type
field = new BuildMetaField(null, null, Scope.Private, statement.getType(), "t... |
diff --git a/tr.wsn-device-tcp-server/src/main/java/de/uniluebeck/itm/tcp/server/utils/ServerDevice.java b/tr.wsn-device-tcp-server/src/main/java/de/uniluebeck/itm/tcp/server/utils/ServerDevice.java
index 748ccd94..4b1d3842 100644
--- a/tr.wsn-device-tcp-server/src/main/java/de/uniluebeck/itm/tcp/server/utils/ServerDev... | false | true | public void createServerDevices() {
final List<IMetaDataCollector> collectorList = new ArrayList<IMetaDataCollector>();
try {
/* erzeugen der JAXB-Device-Objekte zu den Eintraegen in der devices.xml */
final JaxbDeviceList list = readDevices(devicesPath);
for(JaxbDevice jaxDevice : list.getJaxbD... | public void createServerDevices() {
final List<IMetaDataCollector> collectorList = new ArrayList<IMetaDataCollector>();
try {
/* erzeugen der JAXB-Device-Objekte zu den Eintraegen in der devices.xml */
final JaxbDeviceList list = readDevices(devicesPath);
for(JaxbDevice jaxDevice : list.getJaxbD... |
diff --git a/src/main/java/net/pms/encoders/FFmpegVideo.java b/src/main/java/net/pms/encoders/FFmpegVideo.java
index 17e3e1566..a7d3b423c 100644
--- a/src/main/java/net/pms/encoders/FFmpegVideo.java
+++ b/src/main/java/net/pms/encoders/FFmpegVideo.java
@@ -1,808 +1,811 @@
/*
* PS3 Media Server, for streaming any med... | true | true | public ProcessWrapper launchTranscode(
String fileName,
DLNAResource dlna,
DLNAMediaInfo media,
OutputParams params
) throws IOException {
int nThreads = configuration.getNumberOfCpuCores();
List<String> cmdList = new ArrayList<String>();
RendererConfiguration renderer = params.mediaRenderer;
setAudio... | public ProcessWrapper launchTranscode(
String fileName,
DLNAResource dlna,
DLNAMediaInfo media,
OutputParams params
) throws IOException {
int nThreads = configuration.getNumberOfCpuCores();
List<String> cmdList = new ArrayList<String>();
RendererConfiguration renderer = params.mediaRenderer;
setAudio... |
diff --git a/pa1/java/src/cs224n/langmodel/BigramLanguageModel.java b/pa1/java/src/cs224n/langmodel/BigramLanguageModel.java
index 29c19a5..9a27cd5 100644
--- a/pa1/java/src/cs224n/langmodel/BigramLanguageModel.java
+++ b/pa1/java/src/cs224n/langmodel/BigramLanguageModel.java
@@ -1,168 +1,168 @@
package cs224n.langmod... | true | true | public double checkModel() {
// since this is a unigram model,
// the event space is everything in the vocabulary (including STOP)
// and a UNK token
int checked = 0;
double sum = 0.0;
for (String word : startWordCounter.keySet()) {
double sample = Math.random();
// We expect to check ... | public double checkModel() {
// since this is a unigram model,
// the event space is everything in the vocabulary (including STOP)
// and a UNK token
int checked = 0;
double sum = 0.0;
for (String word : startWordCounter.keySet()) {
double sample = Math.random();
// We expect to check ... |
diff --git a/geoserver/wms/src/main/java/org/geoserver/wms/WmsExceptionHandler.java b/geoserver/wms/src/main/java/org/geoserver/wms/WmsExceptionHandler.java
index 94a3dced97..10919b062c 100644
--- a/geoserver/wms/src/main/java/org/geoserver/wms/WmsExceptionHandler.java
+++ b/geoserver/wms/src/main/java/org/geoserver/wm... | false | true | public void handleServiceException(ServiceException exception, Request request) {
// first of all check what kind of exception handling we must perform
String exceptions;
int width;
int height;
String format;
try {
exceptions = (String) request.getKvp().ge... | public void handleServiceException(ServiceException exception, Request request) {
// first of all check what kind of exception handling we must perform
String exceptions;
int width;
int height;
String format;
try {
exceptions = (String) request.getKvp().ge... |
diff --git a/ui/isometric/builder/things/ThingCreatorDnD.java b/ui/isometric/builder/things/ThingCreatorDnD.java
index 7646e1a..b1ed6c0 100644
--- a/ui/isometric/builder/things/ThingCreatorDnD.java
+++ b/ui/isometric/builder/things/ThingCreatorDnD.java
@@ -1,196 +1,197 @@
package ui.isometric.builder.things;
import... | true | true | public void drop(DropTargetDropEvent drag) {
DataFlavor dragAndDropFlavor = null;
Object transferableObj = null;
Transferable transferable = null;
try {
dragAndDropFlavor = ThingCreatorTransfer.getDragAndDropDataFlavor();
... | public void drop(DropTargetDropEvent drag) {
DataFlavor dragAndDropFlavor = null;
Object transferableObj = null;
Transferable transferable = null;
try {
dragAndDropFlavor = ThingCreatorTransfer.getDragAndDropDataFlavor();
... |
diff --git a/src/com/preppa/web/pages/Index.java b/src/com/preppa/web/pages/Index.java
index f2a1de6..49ce79a 100644
--- a/src/com/preppa/web/pages/Index.java
+++ b/src/com/preppa/web/pages/Index.java
@@ -1,16 +1,18 @@
package com.preppa.web.pages;
import java.util.Date;
/**
* Index page.
*
*
* @author ... | true | true | public Date getCurrentTime() {
return new Date();
}
| public String getCurrentTime() {
Date today = new Date();
String message = ". Tapestry is too cool!";
return today + message;
}
|
diff --git a/ide/eclipse/app-server/org.wso2.developerstudio.eclipse.axis2.rpcmessagereceiver/src/org/wso2/developerstudio/eclipse/axis2/rpcmessagereceiver/utils/Axis2Utils.java b/ide/eclipse/app-server/org.wso2.developerstudio.eclipse.axis2.rpcmessagereceiver/src/org/wso2/developerstudio/eclipse/axis2/rpcmessagereceiv... | true | true | public static File getAxis2LibraryPath(){
URL resource = Platform.getBundle(Axis2Constants.CS_LIBRARY_BUNDLE).getResource("lib/axis2-1.6.0.wso2v1.jar");
IPath path = Activator.getDefault().getStateLocation();
IPath libFolder = path.append("lib");
String[] paths = resource.getFile().split("/");
IPath library ... | public static File getAxis2LibraryPath(){
URL resource = Platform.getBundle(Axis2Constants.CS_LIBRARY_BUNDLE).getResource("lib/axis2_1.6.1.wso2v6.jar");
IPath path = Activator.getDefault().getStateLocation();
IPath libFolder = path.append("lib");
String[] paths = resource.getFile().split("/");
IPath library ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.