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/spring-datastore-mongodb/src/main/java/org/springframework/datastore/document/mongodb/MongoDbUtils.java b/spring-datastore-mongodb/src/main/java/org/springframework/datastore/document/mongodb/MongoDbUtils.java
index 5d32f70a4..1d47cec20 100644
--- a/spring-datastore-mongodb/src/main/java/org/springframewor... | true | true | public static DB doGetDB(Mongo mongo, String databaseName, boolean allowCreate) {
Assert.notNull(mongo, "No Mongo instance specified");
DBHolder dbHolder = (DBHolder) TransactionSynchronizationManager.getResource(mongo);
if (dbHolder != null && !dbHolder.isEmpty()) {
// pre-bound Mongo DB
DB db = null;
... | public static DB doGetDB(Mongo mongo, String databaseName, boolean allowCreate) {
Assert.notNull(mongo, "No Mongo instance specified");
DBHolder dbHolder = (DBHolder) TransactionSynchronizationManager.getResource(mongo);
if (dbHolder != null && !dbHolder.isEmpty()) {
// pre-bound Mongo DB
DB db = null;
... |
diff --git a/core/src/org/icepdf/core/pobjects/Stream.java b/core/src/org/icepdf/core/pobjects/Stream.java
index b9fa67a8..c0c9fa97 100644
--- a/core/src/org/icepdf/core/pobjects/Stream.java
+++ b/core/src/org/icepdf/core/pobjects/Stream.java
@@ -1,3136 +1,3137 @@
/*
* Copyright 2006-2012 ICEsoft Technologies Inc.
... | false | true | private BufferedImage dctDecode(
int width, int height, PColorSpace colourSpace, int bitspercomponent,
BufferedImage smaskImage, BufferedImage maskImage,
int[] maskMinRGB, int[] maskMaxRGB, Vector<Integer> decode) {
// BIS's buffer size should be equal to mark() size, an... | private BufferedImage dctDecode(
int width, int height, PColorSpace colourSpace, int bitspercomponent,
BufferedImage smaskImage, BufferedImage maskImage,
int[] maskMinRGB, int[] maskMaxRGB, Vector<Integer> decode) {
// BIS's buffer size should be equal to mark() size, an... |
diff --git a/kornell-gwt/src/main/java/kornell/gui/client/presentation/vitrine/generic/GenericVitrineView.java b/kornell-gwt/src/main/java/kornell/gui/client/presentation/vitrine/generic/GenericVitrineView.java
index 757af6c2..d88087fa 100644
--- a/kornell-gwt/src/main/java/kornell/gui/client/presentation/vitrine/gener... | true | true | private void doLogin() {
altUnauthorized.setVisible(false);
Callback<UserInfoTO> callback = new Callback<UserInfoTO>() {
@Override
protected void ok(UserInfoTO user) {
if("".equals(user.getPerson().getConfirmation())){
if(user.isSigningNeeded()){
placeCtrl.goTo(new TermsPlace());
} else {... | private void doLogin() {
altUnauthorized.setVisible(false);
Callback<UserInfoTO> callback = new Callback<UserInfoTO>() {
@Override
protected void ok(UserInfoTO user) {
if("".equals(user.getPerson().getConfirmation())){
if(user.isSigningNeeded()){
placeCtrl.goTo(new TermsPlace());
} else {... |
diff --git a/VisualizationModule/src/org/gephi/visualization/opengl/text/TextManager.java b/VisualizationModule/src/org/gephi/visualization/opengl/text/TextManager.java
index 3361f6025..52f985666 100644
--- a/VisualizationModule/src/org/gephi/visualization/opengl/text/TextManager.java
+++ b/VisualizationModule/src/org/... | true | true | public void initArchitecture() {
model = VizController.getInstance().getVizModel().getTextModel();
vizConfig = VizController.getInstance().getVizConfig();
drawable = VizController.getInstance().getDrawable();
initRenderer();
//Init sizemodes
for (SizeMode s : sizeMod... | public void initArchitecture() {
model = VizController.getInstance().getVizModel().getTextModel();
vizConfig = VizController.getInstance().getVizConfig();
drawable = VizController.getInstance().getDrawable();
initRenderer();
//Init sizemodes
for (SizeMode s : sizeMod... |
diff --git a/src/DVN-web/src/edu/harvard/iq/dvn/core/web/site/AddSitePage.java b/src/DVN-web/src/edu/harvard/iq/dvn/core/web/site/AddSitePage.java
index a63ec4bb..db384bae 100644
--- a/src/DVN-web/src/edu/harvard/iq/dvn/core/web/site/AddSitePage.java
+++ b/src/DVN-web/src/edu/harvard/iq/dvn/core/web/site/AddSitePage.ja... | false | true | public String create() {
// Long selectedgroup = this.getSelectedGroup();
String dtype = dataverseType;
String name = (String) dataverseName.getValue();
String alias = (String) dataverseAlias.getValue();
String strAffiliation = (String) affiliation.getV... | public String create() {
// Long selectedgroup = this.getSelectedGroup();
String dtype = dataverseType;
String name = (String) dataverseName.getValue();
String alias = (String) dataverseAlias.getValue();
String strAffiliation = (String) affiliation.getV... |
diff --git a/microemulator/src/com/barteo/emulator/device/applet/AppletDevice.java b/microemulator/src/com/barteo/emulator/device/applet/AppletDevice.java
index b2227508..b50a0e2d 100644
--- a/microemulator/src/com/barteo/emulator/device/applet/AppletDevice.java
+++ b/microemulator/src/com/barteo/emulator/device/applet... | true | true | public void loadConfig(String config)
{
String xml = "";
InputStream dis = new BufferedInputStream(getClass().getResourceAsStream(config));
try {
while (dis.available() > 0) {
byte[] b = new byte[dis.available()];
dis.read(b);
xml += new String(b);
}
} catch (Exce... | public void loadConfig(String config)
{
String xml = "";
InputStream dis = new BufferedInputStream(getClass().getResourceAsStream(config));
try {
while (dis.available() > 0) {
byte[] b = new byte[dis.available()];
dis.read(b);
xml += new String(b);
}
} catch (Exce... |
diff --git a/src/org/mozilla/javascript/Interpreter.java b/src/org/mozilla/javascript/Interpreter.java
index 0673433c..189d6193 100644
--- a/src/org/mozilla/javascript/Interpreter.java
+++ b/src/org/mozilla/javascript/Interpreter.java
@@ -1,3042 +1,3041 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basi... | true | true | static Object interpret(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args, double[] argsDbl,
int argShift, int argCount,
NativeFunction fnOrScript,
InterpreterData idata)
throws Java... | static Object interpret(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args, double[] argsDbl,
int argShift, int argCount,
NativeFunction fnOrScript,
InterpreterData idata)
throws Java... |
diff --git a/wicket-contrib-tinymce/src/test/wicket/contrib/tinymce/TinyMCEPanelTest.java b/wicket-contrib-tinymce/src/test/wicket/contrib/tinymce/TinyMCEPanelTest.java
index e199b1fe2..aa9ea75e5 100644
--- a/wicket-contrib-tinymce/src/test/wicket/contrib/tinymce/TinyMCEPanelTest.java
+++ b/wicket-contrib-tinymce/src/t... | true | true | public void testAdditionalPluginJavaScript()
{
// Define a mock plugin
final Plugin mockPlugin = new Plugin("mockplugin")
{
private static final long serialVersionUID = 1L;
protected void additionalJavaScript(StringBuffer buffer)
{
buffer.append("alert('Hello Mock World');");
}
};
// Ad... | public void testAdditionalPluginJavaScript()
{
// Define a mock plugin
final Plugin mockPlugin = new Plugin("mockplugin")
{
private static final long serialVersionUID = 1L;
protected void definePluginExtensions(StringBuffer buffer)
{
buffer.append("alert('Hello Mock World');");
}
};
// ... |
diff --git a/resources/diameter-cx-dx/ra/src/main/java/org/mobicents/slee/resource/diameter/cxdx/CxDxMessageFactoryImpl.java b/resources/diameter-cx-dx/ra/src/main/java/org/mobicents/slee/resource/diameter/cxdx/CxDxMessageFactoryImpl.java
index 4ec3ec91f..db0ad105a 100644
--- a/resources/diameter-cx-dx/ra/src/main/java... | true | true | DiameterMessage createCxDxMessage(DiameterHeader diameterHeader, DiameterAvp[] avps, int _commandCode, ApplicationId appId) throws InternalException {
boolean creatingRequest = diameterHeader == null;
Message msg = null;
if (!creatingRequest) {
Message raw = createMessage(diameterHeader, avps, 0,... | DiameterMessage createCxDxMessage(DiameterHeader diameterHeader, DiameterAvp[] avps, int _commandCode, ApplicationId appId) throws InternalException {
boolean creatingRequest = diameterHeader == null;
Message msg = null;
if (!creatingRequest) {
Message raw = createMessage(diameterHeader, avps, 0,... |
diff --git a/nuxeo-social-workspace/nuxeo-social-workspace-gadgets/src/test/java/org/nuxeo/ecm/social/workspace/gadgets/TestSocialWorkspaceMembersOperation.java b/nuxeo-social-workspace/nuxeo-social-workspace-gadgets/src/test/java/org/nuxeo/ecm/social/workspace/gadgets/TestSocialWorkspaceMembersOperation.java
index fdd... | true | true | public void testOperation() throws Exception {
List<String> list = socialWorkspace.searchMembers("t%");
assertEquals(1, list.size());
OperationContext ctx = new OperationContext(session);
assertNotNull(ctx);
OperationChain chain = new OperationChain("fakeChain");
Op... | public void testOperation() throws Exception {
List<String> list = socialWorkspace.searchMembers("t%");
assertEquals(1, list.size());
OperationContext ctx = new OperationContext(session);
assertNotNull(ctx);
OperationChain chain = new OperationChain("fakeChain");
Op... |
diff --git a/src/org/zwobble/shed/parser/parsing/Parser.java b/src/org/zwobble/shed/parser/parsing/Parser.java
index e772adb..bc33ef6 100644
--- a/src/org/zwobble/shed/parser/parsing/Parser.java
+++ b/src/org/zwobble/shed/parser/parsing/Parser.java
@@ -1,131 +1,131 @@
package org.zwobble.shed.parser.parsing;
import... | false | true | private <T> Rule<T> variable(Keyword keyword, final VariableNodeConstructor<T> constructor) {
final Rule<String> identifier = tokenOfType(IDENTIFIER);
final Rule<? extends ExpressionNode> expression = expression();
return then(
sequence(OnError.CONTINUE,
guard(ke... | private <T> Rule<T> variable(Keyword keyword, final VariableNodeConstructor<T> constructor) {
final Rule<String> identifier = tokenOfType(IDENTIFIER);
final Rule<? extends ExpressionNode> expression = expression();
return then(
sequence(OnError.FINISH,
guard(keyw... |
diff --git a/CornerstoneCommon/src/main/java/com/paxxis/cornerstone/common/CornerstoneConfigurable.java b/CornerstoneCommon/src/main/java/com/paxxis/cornerstone/common/CornerstoneConfigurable.java
index 094cc14..efec9fa 100644
--- a/CornerstoneCommon/src/main/java/com/paxxis/cornerstone/common/CornerstoneConfigurable.j... | true | true | protected void reflectConfigurationPropertyValues() {
CornerstoneConfiguration config = getCornerstoneConfiguration();
Collection<String> prefixes = getConfigPropertyPrefixes();
if (config == null || prefixes == null || prefixes.isEmpty()) {
return;
}
... | protected void reflectConfigurationPropertyValues() {
CornerstoneConfiguration config = getCornerstoneConfiguration();
Collection<String> prefixes = getConfigPropertyPrefixes();
if (config == null || prefixes == null || prefixes.isEmpty()) {
return;
}
... |
diff --git a/src/music/midi/SequencePlayer.java b/src/music/midi/SequencePlayer.java
index 76afff5..31f4461 100644
--- a/src/music/midi/SequencePlayer.java
+++ b/src/music/midi/SequencePlayer.java
@@ -1,245 +1,245 @@
package music.midi;
import java.io.IOException;
import java.text.MessageFormat;
import java.util.... | true | true | public static void main(String[] args) {
SequencePlayer player;
// create a new player, with 120 beats (i.e. quarter note) per
// minute, with 2 tick per quarter note
player = new SequencePlayer(120, 2);
final Pitch C = new Pitch('C');
int start = 1;
for (Pi... | public static void main(String[] args) {
SequencePlayer player;
// create a new player, with 120 beats (i.e. quarter note) per
// minute, with 2 tick per quarter note
player = new SequencePlayer(120, 2);
final Pitch C = new Pitch('C');
int start = 1;
for (Pi... |
diff --git a/alpha-conferences/src/uk/co/brightec/alphaconferences/more/DonateActivity.java b/alpha-conferences/src/uk/co/brightec/alphaconferences/more/DonateActivity.java
index b74463b..8abe84d 100644
--- a/alpha-conferences/src/uk/co/brightec/alphaconferences/more/DonateActivity.java
+++ b/alpha-conferences/src/uk/c... | true | true | private void populate() {
final Conference conference = DataStore.conference(this);
List<Row> rows = new ArrayList<Row>();
rows.add(new HTMLRow(conference.donationDescription, this));
View.OnClickListener donateBySmsHandler = null;
if (StringUtils.isNotBlank(conference.dona... | private void populate() {
final Conference conference = DataStore.conference(this, Constants.CONFERENCE_ID);
List<Row> rows = new ArrayList<Row>();
rows.add(new HTMLRow(conference.donationDescription, this));
View.OnClickListener donateBySmsHandler = null;
if (StringUtils.i... |
diff --git a/netlogo/RunHeadless.java b/netlogo/RunHeadless.java
index 01b017b..531eaaa 100644
--- a/netlogo/RunHeadless.java
+++ b/netlogo/RunHeadless.java
@@ -1,92 +1,92 @@
import java.io.*;
import org.nlogo.headless.HeadlessWorkspace;
public class RunHeadless {
private static String usage = "Usage: java ... | true | true | public static void main(String[] args) {
if (args.length != 1)
error(ErrorCode.Usage, usage);
String filename = args[0];
try {
HeadlessWorkspace workspace = HeadlessWorkspace.newInstance();
workspace.open(filename);
workspace.command("startup");
// The HubNet web... | public static void main(String[] args) {
if (args.length != 1)
error(ErrorCode.Usage, usage);
String filename = args[0];
try {
HeadlessWorkspace workspace = HeadlessWorkspace.newInstance();
workspace.open(filename);
workspace.command("startup");
// The HubNet web... |
diff --git a/esup-opi-web-jsf-servlet/src/main/java/org/esupportail/opi/web/controllers/formation/ParamClefFormationController.java b/esup-opi-web-jsf-servlet/src/main/java/org/esupportail/opi/web/controllers/formation/ParamClefFormationController.java
index c40fadfe..805d34e9 100644
--- a/esup-opi-web-jsf-servlet/src/... | true | true | public void update() {
if (testErreurUpdate()) {
return;
}
if (log.isDebugEnabled()) {
log.debug("enterind update with domain = " + getCles().getClesAnnuForm().getCodCles());
}
for (Cles2AnnuForm langLib : getCles().getCles2AnnuForm()) {
... | public void update() {
if (testErreurUpdate()) {
return;
}
if (log.isDebugEnabled()) {
log.debug("enterind update with domain = " + getCles().getClesAnnuForm().getCodCles());
}
for (Cles2AnnuForm langLib : getCles().getCles2AnnuForm()) {
... |
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/subscriber/CVSMergeSubscriberTest.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/subscriber/CVSMergeSubscriberTest.java
index d6e2c19f9..850ee7e2b 100644
--- a/tests/org.eclipse.team.tests.cvs.core... | false | true | public void testFileAddedToBranch() throws InvocationTargetException, InterruptedException, CoreException, IOException {
// Create a project
IProject project = createProject(new String[] { "delete.txt", "file1.txt", "file2.txt", "folder1/", "folder1/a.txt", "folder1/b.txt"});
// Checkout and branch a copy
C... | public void testFileAddedToBranch() throws InvocationTargetException, InterruptedException, CoreException, IOException {
// Create a project
IProject project = createProject(new String[] { "delete.txt", "file1.txt", "file2.txt", "folder1/", "folder1/a.txt", "folder1/b.txt"});
// Checkout and branch a copy
C... |
diff --git a/libraries/lib-segmentation-ui/src/main/java/net/sf/okapi/lib/ui/segmentation/SRXEditor.java b/libraries/lib-segmentation-ui/src/main/java/net/sf/okapi/lib/ui/segmentation/SRXEditor.java
index 6cb177185..b76ab028f 100644
--- a/libraries/lib-segmentation-ui/src/main/java/net/sf/okapi/lib/ui/segmentation/SRXE... | true | true | public SRXEditor (Shell parent,
boolean asDialog,
IHelp helpParam)
{
config = new UserConfiguration();
config.load(APPNAME);
testInputPath = config.getProperty("testInputPath"); //$NON-NLS-1$
testOutputPath = config.getProperty("testOutputPath"); //$NON-NLS-1$
htmlOutput = config.getBoolean("htmlOutput"... | public SRXEditor (Shell parent,
boolean asDialog,
IHelp helpParam)
{
config = new UserConfiguration();
config.load(APPNAME);
testInputPath = config.getProperty("testInputPath"); //$NON-NLS-1$
testOutputPath = config.getProperty("testOutputPath"); //$NON-NLS-1$
htmlOutput = config.getBoolean("htmlOutput"... |
diff --git a/eclipse_project/src/com/ptzlabs/wc/servlet/ReadingServlet.java b/eclipse_project/src/com/ptzlabs/wc/servlet/ReadingServlet.java
index 7d12d81..174e87f 100644
--- a/eclipse_project/src/com/ptzlabs/wc/servlet/ReadingServlet.java
+++ b/eclipse_project/src/com/ptzlabs/wc/servlet/ReadingServlet.java
@@ -1,188 +... | false | true | public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
if (req.getParameter("mode").equals("new")
&& req.getParameter("name") != null
&& req.getParameter("location") != null
&& req.getParameter("fbid") != null
&& req.getParameter("type") != null) {
Reading r... | public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
if (req.getParameter("mode").equals("new")
&& req.getParameter("name") != null
&& req.getParameter("location") != null
&& req.getParameter("fbid") != null
&& req.getParameter("type") != null) {
Reading r... |
diff --git a/codemonkey-core/src/main/java/com/codemonkey/service/GenericServiceImpl.java b/codemonkey-core/src/main/java/com/codemonkey/service/GenericServiceImpl.java
index bd93ec4..6750032 100644
--- a/codemonkey-core/src/main/java/com/codemonkey/service/GenericServiceImpl.java
+++ b/codemonkey-core/src/main/java/co... | true | true | public void save(T entity) {
StopWatch stopWatch = new StopWatch();
stopWatch.start();
if(entity.isOptimisticLockingFailure()){
throw new BadObjVersionError(get(entity.getId()).detailJson());
}
entity.setOriginVersion(null);
Set<FieldValidation> set = validate(entity);
if(Collecti... | public void save(T entity) {
StopWatch stopWatch = new StopWatch();
stopWatch.start();
if(entity.isOptimisticLockingFailure()){
T t = get(entity.getId());
t.setOriginVersion(null);
throw new BadObjVersionError(t.detailJson());
}
entity.setOriginVersion(null);
Set<FieldValidati... |
diff --git a/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReader.java b/bundles/jcr/contentloader/src/main/java/org/apache/sling/jcr/contentloader/internal/readers/XmlReader.java
index 3c28ef38bf..7047685043 100644
--- a/bundles/jcr/contentloader/src/main/java/org/apach... | true | true | private void parseInternal(InputStream bufferedInput, ContentCreator creator, java.net.URL xmlLocation) throws XmlPullParserException, IOException, RepositoryException {
final StringBuffer contentBuffer = new StringBuffer();
// Mark the beginning of the stream. We assume that if there's an XSL proce... | private void parseInternal(InputStream bufferedInput, ContentCreator creator, java.net.URL xmlLocation) throws XmlPullParserException, IOException, RepositoryException {
final StringBuffer contentBuffer = new StringBuffer();
// Mark the beginning of the stream. We assume that if there's an XSL proce... |
diff --git a/systemtap/org.eclipse.linuxtools.callgraph.launch/src/org/eclipse/linuxtools/callgraph/launch/SystemTapLaunchConfigurationDelegate.java b/systemtap/org.eclipse.linuxtools.callgraph.launch/src/org/eclipse/linuxtools/callgraph/launch/SystemTapLaunchConfigurationDelegate.java
index 565da0d1a..664caf210 100644... | false | true | private void finishLaunch(ILaunch launch, ILaunchConfiguration config, String command,
IProgressMonitor monitor, boolean retry) {
String errorMessage = ""; //$NON-NLS-1$
try {
File workDir = getWorkingDirectory(config);
if (workDir == null) {
workDir = new File(System.getProperty("user.home", ".")); ... | private void finishLaunch(ILaunch launch, ILaunchConfiguration config, String command,
IProgressMonitor monitor, boolean retry) {
String errorMessage = ""; //$NON-NLS-1$
try {
File workDir = getWorkingDirectory(config);
if (workDir == null) {
workDir = new File(System.getProperty("user.home", ".")); ... |
diff --git a/src/com/matejdro/bukkit/monsterhunt/InputOutput.java b/src/com/matejdro/bukkit/monsterhunt/InputOutput.java
index 3f1cf43..620ecd4 100644
--- a/src/com/matejdro/bukkit/monsterhunt/InputOutput.java
+++ b/src/com/matejdro/bukkit/monsterhunt/InputOutput.java
@@ -1,346 +1,346 @@
package com.matejdro.bukkit.mo... | true | true | public static void LoadDefaults()
{
Settings.defaults.put("StartTime", 13000);
Settings.defaults.put("EndTime", 23600);
Settings.defaults.put("DeathPenalty", 30);
Settings.defaults.put("TellTime", true);
Settings.defaults.put("CountBows", true);
Settings.defaults.put("EnableSignup", true);
Settings.defa... | public static void LoadDefaults()
{
Settings.defaults.put("StartTime", 13000);
Settings.defaults.put("EndTime", 23600);
Settings.defaults.put("DeathPenalty", 30);
Settings.defaults.put("TellTime", true);
Settings.defaults.put("CountBows", true);
Settings.defaults.put("EnableSignup", true);
Settings.defa... |
diff --git a/src/main/java/org/apache/ibatis/executor/CachingExecutor.java b/src/main/java/org/apache/ibatis/executor/CachingExecutor.java
index 9c01562338..76df861387 100644
--- a/src/main/java/org/apache/ibatis/executor/CachingExecutor.java
+++ b/src/main/java/org/apache/ibatis/executor/CachingExecutor.java
@@ -1,166... | false | true | public <E> List<E> query(MappedStatement ms, Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler, CacheKey key, BoundSql boundSql) throws SQLException {
Cache cache = ms.getCache();
if (cache != null) {
flushCacheIfRequired(ms);
if (ms.isUseCache() && resultHandler == null) { ... | public <E> List<E> query(MappedStatement ms, Object parameterObject, RowBounds rowBounds, ResultHandler resultHandler, CacheKey key, BoundSql boundSql) throws SQLException {
Cache cache = ms.getCache();
if (cache != null) {
flushCacheIfRequired(ms);
if (ms.isUseCache() && resultHandler == null) { ... |
diff --git a/java/tools/parser/src/tools/parser/Var.java b/java/tools/parser/src/tools/parser/Var.java
index 6118165e..91f1ce10 100644
--- a/java/tools/parser/src/tools/parser/Var.java
+++ b/java/tools/parser/src/tools/parser/Var.java
@@ -1,92 +1,92 @@
package tools.parser;
/*
* This source code is freely distrib... | true | true | public Match match(SomeString s) {
int most = s.length();
if (accept != null) {
for (int i=0;i<s.length();i++) {
int found = accept.indexOf(s.charAt(i));
if (found == -1) {
most = i;
break;
}
}
}
else if (deny != null) {
for (int i = 0; i < deny.length(); i++) {
int j = s.ind... | public Match match(SomeString s) {
int most = s.length();
if (accept != null) {
for (int i=0;i<s.length();i++) {
int found = accept.indexOf(s.charAt(i));
if (found == -1) {
most = i;
break;
}
}
}
else if (deny != null) {
for (int i = 0; i < deny.length(); i++) {
int j = s.ind... |
diff --git a/java/JavaExample.java b/java/JavaExample.java
index 2b377f6..5bd3b66 100644
--- a/java/JavaExample.java
+++ b/java/JavaExample.java
@@ -1,39 +1,40 @@
import java.io.*;
import java.net.*;
public class JavaExample {
public static void main(String[] args) throws Exception{
String document =... | true | true | public static void main(String[] args) throws Exception{
String document = "<html><body>This is a DocRaptor Example</body></html>";
String apikey = "YOUR_API_KEY_HERE";
String data = "doc[document_content]=" + document;
data += "&doc[name]=java_sample.pdf";
data += "&doc[docu... | public static void main(String[] args) throws Exception{
String document = "<html><body>This is a DocRaptor Example</body></html>";
String apikey = "YOUR_API_KEY_HERE";
String encoded_document = URLEncoder.encode(document, "UTF8");
String data = "doc[document_content]=" +encoded_docu... |
diff --git a/PVUgame/src/no/hist/gruppe5/pvu/book/BookScreen.java b/PVUgame/src/no/hist/gruppe5/pvu/book/BookScreen.java
index b74dd4b..15ff77a 100644
--- a/PVUgame/src/no/hist/gruppe5/pvu/book/BookScreen.java
+++ b/PVUgame/src/no/hist/gruppe5/pvu/book/BookScreen.java
@@ -1,98 +1,96 @@
/*
* To change this template, ... | false | true | private void initScreen() {
testTexture = new Texture(Gdx.files.internal("data/book.png"));
testTexture.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);
stage = new Stage(PVU.GAME_WIDTH, PVU.GAME_HEIGHT, true, batch);
Label.LabelStyle labelStyle = new Label.La... | private void initScreen() {
testTexture = new Texture(Gdx.files.internal("data/book.png"));
testTexture.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);
stage = new Stage(PVU.GAME_WIDTH*2.5f, PVU.GAME_HEIGHT*2.5f, true);
Label.LabelStyle labelStyle = new Label... |
diff --git a/api/src/main/java/org/openmrs/module/mirebalaisreports/cohort/definition/evaluator/LastDispositionBeforeExitCohortDefinitionEvaluator.java b/api/src/main/java/org/openmrs/module/mirebalaisreports/cohort/definition/evaluator/LastDispositionBeforeExitCohortDefinitionEvaluator.java
index a6b28f9..d2cbf51 1006... | true | true | public EvaluatedCohort evaluate(CohortDefinition cohortDefinition, EvaluationContext context) throws EvaluationException {
LastDispositionBeforeExitCohortDefinition cd = (LastDispositionBeforeExitCohortDefinition) cohortDefinition;
Location exitFromWard = cd.getExitFromWard();
List<Concept>... | public EvaluatedCohort evaluate(CohortDefinition cohortDefinition, EvaluationContext context) throws EvaluationException {
LastDispositionBeforeExitCohortDefinition cd = (LastDispositionBeforeExitCohortDefinition) cohortDefinition;
Location exitFromWard = cd.getExitFromWard();
List<Concept>... |
diff --git a/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/local/LocalFileSystem.java b/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/local/LocalFileSystem.java
index 18573207a..64f4468a5 100644
--- a/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/... | false | true | public int attributes() {
if (attributes != -1)
return attributes;
attributes = 0;
if (!LocalFileNatives.usingNatives())
return attributes;
//try to query supported attributes from native lib impl
int nativeAttributes = LocalFileNatives.attributes();
if (nativeAttributes >= 0) {
attributes = nati... | public int attributes() {
if (attributes != -1)
return attributes;
attributes = 0;
if (!LocalFileNatives.usingNatives())
return attributes;
//try to query supported attributes from native lib impl
int nativeAttributes = LocalFileNatives.attributes();
if (nativeAttributes >= 0) {
attributes = nati... |
diff --git a/src/com/VolunteerCoordinatorApp/VolunteerCoordinatorServlet.java b/src/com/VolunteerCoordinatorApp/VolunteerCoordinatorServlet.java
index fdebb4a..4f6a19f 100644
--- a/src/com/VolunteerCoordinatorApp/VolunteerCoordinatorServlet.java
+++ b/src/com/VolunteerCoordinatorApp/VolunteerCoordinatorServlet.java
@@ ... | true | true | public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
Object taskObj = req.getAttribute("task");
Object nameObj = req.getAttribute("name");
String task;
String name;
if (taskObj == null) {
name = req.getParameter("name");
task = req.getParameter("task");
}
... | public void doPost(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
Object taskObj = req.getAttribute("task");
Object nameObj = req.getAttribute("name");
String task;
String name;
if (taskObj == null) {
name = req.getParameter("name");
task = req.getParameter("task");
}
... |
diff --git a/src/com/dmdirc/config/prefs/PreferencesManager.java b/src/com/dmdirc/config/prefs/PreferencesManager.java
index 1936a257b..6c0cb3c42 100644
--- a/src/com/dmdirc/config/prefs/PreferencesManager.java
+++ b/src/com/dmdirc/config/prefs/PreferencesManager.java
@@ -1,606 +1,604 @@
/*
* Copyright (c) 2006-2009... | true | true | private void addGuiCategory() {
final Map<String, String> lafs = new HashMap<String, String>();
final Map<String, String> framemanagers = new HashMap<String, String>();
final Map<String, String> fmpositions = new HashMap<String, String>();
final PreferencesCategory category = new Pre... | private void addGuiCategory() {
final Map<String, String> lafs = new HashMap<String, String>();
final Map<String, String> framemanagers = new HashMap<String, String>();
final Map<String, String> fmpositions = new HashMap<String, String>();
final PreferencesCategory category = new Pre... |
diff --git a/src/main/com/deftlabs/lock/mongo/impl/LockState.java b/src/main/com/deftlabs/lock/mongo/impl/LockState.java
index 423d148..7d29047 100644
--- a/src/main/com/deftlabs/lock/mongo/impl/LockState.java
+++ b/src/main/com/deftlabs/lock/mongo/impl/LockState.java
@@ -1,41 +1,41 @@
/**
* Copyright 2011, Deft Lab... | true | true | public static LockState findByCode(final String pCode) {
if (pCode == null) throw new IllegalArgumentException("Invalid lock state code: " + pCode);
for (final LockState s : values()) if (s.equals(pCode)) return s;
throw new IllegalArgumentException("Invalid lock state code: " + pCode);
... | public static LockState findByCode(final String pCode) {
if (pCode == null) throw new IllegalArgumentException("Invalid lock state code: " + pCode);
for (final LockState s : values()) if (s._code.equals(pCode)) return s;
throw new IllegalArgumentException("Invalid lock state code: " + pCode)... |
diff --git a/test/com/pacman/entity/maze/BlockFactoryTest.java b/test/com/pacman/entity/maze/BlockFactoryTest.java
index 443e2f1..1011a65 100644
--- a/test/com/pacman/entity/maze/BlockFactoryTest.java
+++ b/test/com/pacman/entity/maze/BlockFactoryTest.java
@@ -1,33 +1,38 @@
package com.pacman.entity.maze;
import st... | false | true | public void shouldCreateBlocksFromTiledMap() throws Exception {
BlockFactory factory = new BlockFactory();
TiledMap map = mock(TiledMap.class);
when(map.getTileWidth()).thenReturn(10);
when(map.getWidth()).thenReturn(1);
when(map.getHeight()).thenReturn(1);
when(map.getTileId(0, 0, 0)).thenReturn(1);
L... | public void shouldCreateBlocksFromTiledMap() throws Exception {
BlockFactory factory = new BlockFactory();
TiledMap map = mock(TiledMap.class);
Integer firstTileId = 1;
Integer secondTileId = 2;
when(map.getTileWidth()).thenReturn(10);
when(map.getWidth()).thenReturn(1);
when(map.getHeight()).thenReturn... |
diff --git a/shoppinglist/ShoppingList/src/org/openintents/shopping/ui/ShoppingActivity.java b/shoppinglist/ShoppingList/src/org/openintents/shopping/ui/ShoppingActivity.java
index 30ab8a33..5886f19a 100644
--- a/shoppinglist/ShoppingList/src/org/openintents/shopping/ui/ShoppingActivity.java
+++ b/shoppinglist/Shopping... | false | true | private void createView() {
//Temp-create either Spinner or List based upon the Display
createList();
mEditText = (AutoCompleteTextView) findViewById(R.id.autocomplete_add_item);
if (mItemsCursor != null) {
if (debug)
Log.d(TAG, "mItemsCursor managedQuery 1");
stopManagingCursor(mItemsCursor);
m... | private void createView() {
//Temp-create either Spinner or List based upon the Display
createList();
mEditText = (AutoCompleteTextView) findViewById(R.id.autocomplete_add_item);
if (mItemsCursor != null) {
if (debug)
Log.d(TAG, "mItemsCursor managedQuery 1");
stopManagingCursor(mItemsCursor);
m... |
diff --git a/src/main/java/config/PlanningServerModule.java b/src/main/java/config/PlanningServerModule.java
index 659dfe4..dc13f51 100644
--- a/src/main/java/config/PlanningServerModule.java
+++ b/src/main/java/config/PlanningServerModule.java
@@ -1,38 +1,38 @@
package config;
import auth.Authenticator;
import au... | true | true | protected void configure() {
bindConstant().annotatedWith(named("oAuth.callback")).to(env("OAUTH_CALLBACK"));
bindConstant().annotatedWith(named("oAuth.key")).to(env("OAUTH_CONSUMER-KEY"));
bindConstant().annotatedWith(named("oAuth.secret")).to(env("OAUTH_CONSUMER-SECRET"));
bind(Authenticator.class)... | protected void configure() {
bindConstant().annotatedWith(named("oAuth.callback")).to(env("OAUTH_CALLBACK"));
bindConstant().annotatedWith(named("oAuth.key")).to(env("OAUTH_CONSUMER_KEY"));
bindConstant().annotatedWith(named("oAuth.secret")).to(env("OAUTH_CONSUMER_SECRET"));
bind(Authenticator.class)... |
diff --git a/src/org/Barteks2x/b173gen/generator/ChunkProviderGenerate.java b/src/org/Barteks2x/b173gen/generator/ChunkProviderGenerate.java
index 0a36e85..22f6804 100644
--- a/src/org/Barteks2x/b173gen/generator/ChunkProviderGenerate.java
+++ b/src/org/Barteks2x/b173gen/generator/ChunkProviderGenerate.java
@@ -1,806 +... | true | true | public void getChunkAt(IChunkProvider ichunkprovider, int i, int j) {
BlockSand.instaFall = true;
int k = i * 16;
int l = j * 16;
BiomeGenBase biomegenbase = this.wcm.getBiome(k + 16, l + 16);
rand.setSeed(worldObj.getSeed());
long l1 = (rand.nextLong() / 2L) * 2L + 1L;
long l2 = (rand.nextLong() / 2L) ... | public void getChunkAt(IChunkProvider ichunkprovider, int i, int j) {
BlockSand.instaFall = true;
int k = i * 16;
int l = j * 16;
BiomeGenBase biomegenbase = this.wcm.getBiome(k + 16, l + 16);
rand.setSeed(worldObj.getSeed());
long l1 = (rand.nextLong() / 2L) * 2L + 1L;
long l2 = (rand.nextLong() / 2L) ... |
diff --git a/httpcore-ab/src/main/java/org/apache/http/benchmark/BenchmarkWorker.java b/httpcore-ab/src/main/java/org/apache/http/benchmark/BenchmarkWorker.java
index 0105efe9a..45f4ac600 100644
--- a/httpcore-ab/src/main/java/org/apache/http/benchmark/BenchmarkWorker.java
+++ b/httpcore-ab/src/main/java/org/apache/htt... | true | true | public void run() {
HttpResponse response = null;
BenchmarkConnection conn = new BenchmarkConnection(stats, request.getParams());
String scheme = targetHost.getSchemeName();
String hostname = targetHost.getHostName();
int port = targetHost.getPort();
if (port == -1)... | public void run() {
HttpResponse response = null;
BenchmarkConnection conn = new BenchmarkConnection(stats, request.getParams());
String scheme = targetHost.getSchemeName();
String hostname = targetHost.getHostName();
int port = targetHost.getPort();
if (port == -1)... |
diff --git a/src/main/ed/net/lb/LB.java b/src/main/ed/net/lb/LB.java
index bec7488f8..8f6104253 100644
--- a/src/main/ed/net/lb/LB.java
+++ b/src/main/ed/net/lb/LB.java
@@ -1,503 +1,503 @@
// LB.java
/**
* Copyright (C) 2008 10gen Inc.
*
* This program is free software: you can redistribute it and/or mo... | true | true | protected WhatToDo handleRead( ByteBuffer buf , Connection conn ){
if ( _state == State.WAITING || _state == State.IN_HEADER ){
// TODO: should i read this all in at once
if ( _line == null )
_line = new StringBuilder(... | protected WhatToDo handleRead( ByteBuffer buf , Connection conn ){
if ( _state == State.WAITING || _state == State.IN_HEADER ){
// TODO: should i read this all in at once
if ( _line == null )
_line = new StringBuilder(... |
diff --git a/src/ca/cumulonimbus/barometer/DatabaseHelper.java b/src/ca/cumulonimbus/barometer/DatabaseHelper.java
index a1b2196..ffe1c37 100644
--- a/src/ca/cumulonimbus/barometer/DatabaseHelper.java
+++ b/src/ca/cumulonimbus/barometer/DatabaseHelper.java
@@ -1,855 +1,855 @@
package ca.cumulonimbus.barometer;
impo... | false | true | public boolean addCurrentConditionToDatabase(CurrentCondition condition) {
if(!connected) {
connectToDatabase();
}
try {
// Check for existing ID in database
ArrayList<CurrentCondition> conditions = new ArrayList<CurrentCondition>();
pstmt = db.prepareStatement("SELECT * FROM CurrentCondition WHERE ... | public boolean addCurrentConditionToDatabase(CurrentCondition condition) {
if(!connected) {
connectToDatabase();
}
try {
// Check for existing ID in database
ArrayList<CurrentCondition> conditions = new ArrayList<CurrentCondition>();
pstmt = db.prepareStatement("SELECT * FROM CurrentCondition WHERE ... |
diff --git a/SpeechVersion/src/com/luugiathuy/apps/remotebluetooth/InputAndOutput.java b/SpeechVersion/src/com/luugiathuy/apps/remotebluetooth/InputAndOutput.java
index 1cc5f86..ba88022 100644
--- a/SpeechVersion/src/com/luugiathuy/apps/remotebluetooth/InputAndOutput.java
+++ b/SpeechVersion/src/com/luugiathuy/apps/rem... | true | true | public boolean Compare( double [] newinput ){
//time
if( newinput[3]>2*_Refer[3] || newinput[3]<_Refer[3]/1.5){
System.out.println("Time erro...newinput: "+newinput[3]+"\nTime erro...refer: "+_Refer[3]);
return false;
}
System.out.println("Time newinput:... | public boolean Compare( double [] newinput ){
//time
if( newinput[3]>2*_Refer[3] || newinput[3]<_Refer[3]/1.5){
System.out.println("Time erro...newinput: "+newinput[3]+"\nTime erro...refer: "+_Refer[3]);
return false;
}
System.out.println("Time newinput:... |
diff --git a/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/shield/SeamExceptionHandlingListener.java b/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/shield/SeamExceptionHandlingListener.java
index 319a96eb..b2ff6c94 100644
--- a/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/weba... | true | true | public void beforeSetErrorPageAttribute(Throwable t,
HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
// cut/paste from seam Exception filter.
// we recreate the seam context to be able to use the messages.
// patch fol... | public void beforeSetErrorPageAttribute(Throwable t,
HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
// cut/paste from seam Exception filter.
// we recreate the seam context to be able to use the messages.
// patch fol... |
diff --git a/src/keepcalm/mods/bukkit/ForgeEventHelper.java b/src/keepcalm/mods/bukkit/ForgeEventHelper.java
index 1bd0b58..b9149b2 100644
--- a/src/keepcalm/mods/bukkit/ForgeEventHelper.java
+++ b/src/keepcalm/mods/bukkit/ForgeEventHelper.java
@@ -1,134 +1,134 @@
package keepcalm.mods.bukkit;
import keepcalm.mods.... | false | true | public static void onBlockBreak(final World world, final int x, final int y, final int z, final int id, final int data) {
if (!ForgeEventHandler.ready)
return;
try {
throw new RuntimeException("nobody saw this");
}
catch (RuntimeException ex) {
boolean foundIIWM = false;
int a = 0;
//System.out.... | public static void onBlockBreak(final World world, final int x, final int y, final int z, final int id, final int data) {
if (!ForgeEventHandler.ready)
return;
try {
throw new RuntimeException("nobody saw this");
}
catch (RuntimeException ex) {
boolean foundIIWM = false;
int a = 0;
//System.out.... |
diff --git a/src/main/java/com/forum/web/controller/QuestionController.java b/src/main/java/com/forum/web/controller/QuestionController.java
index 1bd9f24..c5f7cf0 100644
--- a/src/main/java/com/forum/web/controller/QuestionController.java
+++ b/src/main/java/com/forum/web/controller/QuestionController.java
@@ -1,58 +1... | true | true | public ModelAndView viewQuestionDetail(@PathVariable Integer questionId) {
Question question = questionService.getById(questionId);
ModelAndView modelAndView = new ModelAndView("questiondetail");
modelAndView.addObject("questionTitle", question.getTitle());
modelAndView.addObject("qu... | public ModelAndView viewQuestionDetail(@PathVariable Integer questionId) {
Question question = questionService.getById(questionId);
ModelAndView modelAndView = new ModelAndView("questionDetail");
modelAndView.addObject("questionTitle", question.getTitle());
modelAndView.addObject("qu... |
diff --git a/pentaho-aggdesigner-ui/test-src/org/pentaho/aggdes/ui/MainControllerTest.java b/pentaho-aggdesigner-ui/test-src/org/pentaho/aggdes/ui/MainControllerTest.java
index cdb4de6..4746e02 100644
--- a/pentaho-aggdesigner-ui/test-src/org/pentaho/aggdes/ui/MainControllerTest.java
+++ b/pentaho-aggdesigner-ui/test-s... | true | true | public void testSaveWorkspace() throws Exception {
// INITIAL STUB WIRING
Workspace workspace = new Workspace();
SchemaStub schemaStub = new SchemaStub();
ConnectionModelImpl connectionModel = new ConnectionModelImpl();
connectionModel.setDatabaseMeta(new DatabaseMeta());
MondrianFileS... | public void testSaveWorkspace() throws Exception {
// INITIAL STUB WIRING
Workspace workspace = new Workspace();
SchemaStub schemaStub = new SchemaStub();
ConnectionModelImpl connectionModel = new ConnectionModelImpl();
connectionModel.setDatabaseMeta(new DatabaseMeta());
MondrianFileS... |
diff --git a/src/main/java/org/osiam/resources/helper/ExtensionSerializer.java b/src/main/java/org/osiam/resources/helper/ExtensionSerializer.java
index e1d582c..3297f91 100644
--- a/src/main/java/org/osiam/resources/helper/ExtensionSerializer.java
+++ b/src/main/java/org/osiam/resources/helper/ExtensionSerializer.java... | true | true | public void serialize(Extension value, JsonGenerator jgen, SerializerProvider provider) throws IOException,
JsonProcessingException {
jgen.writeStartObject();
Map<String, Field> fields = value.getAllFields();
for (Entry<String, Field> entry : fields.entrySet()) {
St... | public void serialize(Extension value, JsonGenerator jgen, SerializerProvider provider) throws IOException {
jgen.writeStartObject();
Map<String, Field> fields = value.getAllFields();
for (Entry<String, Field> entry : fields.entrySet()) {
String fieldName = entry.getKey();
... |
diff --git a/odata4j-fit/src/test/java/org/odata4j/test/core/OEntityKeyTest.java b/odata4j-fit/src/test/java/org/odata4j/test/core/OEntityKeyTest.java
index 2b396d18..7416933a 100644
--- a/odata4j-fit/src/test/java/org/odata4j/test/core/OEntityKeyTest.java
+++ b/odata4j-fit/src/test/java/org/odata4j/test/core/OEntityKe... | true | true | public void createTests() {
sk("1", 1);
sk("1L", 1L);
sk("1", (short) 1);
sk("01", (byte) 1);
sk("true", true);
sk("'1'", "1");
sk("'1'", '1');
sk("'quo''te'", "quo'te");
sk("1", OProperties.int32("n", 1), 1);
Assert.assertEquals(k(1).hashCode(), k(1).hashCode());
Assert.a... | public void createTests() {
sk("1", 1);
sk("1L", 1L);
sk("1", (short) 1);
sk("-5", (byte) -5);
sk("true", true);
sk("'1'", "1");
sk("'1'", '1');
sk("'quo''te'", "quo'te");
sk("1", OProperties.int32("n", 1), 1);
Assert.assertEquals(k(1).hashCode(), k(1).hashCode());
Assert.... |
diff --git a/plugins/org.eclipse.m2m.atl.engine.vm/src/org/eclipse/m2m/atl/engine/vm/nativelib/ASMTransientLinkSet.java b/plugins/org.eclipse.m2m.atl.engine.vm/src/org/eclipse/m2m/atl/engine/vm/nativelib/ASMTransientLinkSet.java
index ba9fc728..8d65e979 100644
--- a/plugins/org.eclipse.m2m.atl.engine.vm/src/org/eclipse... | true | true | public static void addLink2(StackFrame frame, ASMTransientLinkSet self, ASMTransientLink link,
ASMBoolean isDefault) {
ASMOclAny rule = ASMTransientLink.getRule(frame, link);
ASMSequence s = (ASMSequence)self.linksByRule.get(rule);
if (s == null) {
s = new ASMSequence();
self.linksByRule.put(rule, s);
... | public static void addLink2(StackFrame frame, ASMTransientLinkSet self, ASMTransientLink link,
ASMBoolean isDefault) {
ASMOclAny rule = ASMTransientLink.getRule(frame, link);
ASMSequence s = (ASMSequence)self.linksByRule.get(rule);
if (s == null) {
s = new ASMSequence();
self.linksByRule.put(rule, s);
... |
diff --git a/src/main/java/com/norcode/bukkit/livestocklock/EntityListener.java b/src/main/java/com/norcode/bukkit/livestocklock/EntityListener.java
index ac8c2bb..36599d3 100644
--- a/src/main/java/com/norcode/bukkit/livestocklock/EntityListener.java
+++ b/src/main/java/com/norcode/bukkit/livestocklock/EntityListener.... | false | true | public void onPlayerInteractEntity(PlayerInteractEntityEvent event) {
checkExpiry(event.getRightClicked());
Player player = event.getPlayer();
Entity animal = event.getRightClicked();
if (plugin.getOwnedAnimals().containsKey(animal.getUniqueId())) {
// This animal is owne... | public void onPlayerInteractEntity(PlayerInteractEntityEvent event) {
plugin.debug("Interact Event!");
checkExpiry(event.getRightClicked());
Player player = event.getPlayer();
Entity animal = event.getRightClicked();
if (plugin.getOwnedAnimals().containsKey(animal.getUniqueId... |
diff --git a/src/Lihad/Conflict/Util/BeyondUtil.java b/src/Lihad/Conflict/Util/BeyondUtil.java
index 237ee18..461da35 100644
--- a/src/Lihad/Conflict/Util/BeyondUtil.java
+++ b/src/Lihad/Conflict/Util/BeyondUtil.java
@@ -1,427 +1,430 @@
package Lihad.Conflict.Util;
import java.util.ArrayList;
import java.util.Hash... | false | true | public static Enchantment enchantRandomizer(ItemStack item){
final Enchantment[] weaponEnchants = new Enchantment[] {
Enchantment.LOOT_BONUS_MOBS,
Enchantment.KNOCKBACK,
Enchantment.FIRE_ASPECT,
Enchantment.DAMAGE_UNDEAD,
Enchantment.DAMAGE_ARTHRO... | public static Enchantment enchantRandomizer(ItemStack item){
final Enchantment[] weaponEnchants = new Enchantment[] {
Enchantment.LOOT_BONUS_MOBS,
Enchantment.KNOCKBACK,
Enchantment.FIRE_ASPECT,
Enchantment.DAMAGE_UNDEAD,
Enchantment.DAMAGE_ARTHRO... |
diff --git a/sonar-batch/src/main/java/org/sonar/batch/local/DryRunDatabase.java b/sonar-batch/src/main/java/org/sonar/batch/local/DryRunDatabase.java
index 8a5bf92857..c2f69706d5 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/local/DryRunDatabase.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/local/DryRu... | false | true | private void downloadDatabase(String projectKey, File toFile) {
LOG.info("Downloading DryRun database for project [{}]", projectKey);
try {
server.download(API_SYNCHRO + "?resource=" + projectKey, toFile);
} catch (SonarException e) {
Throwable rootCause = Throwables.getRootCause(e);
if... | private void downloadDatabase(String projectKey, File toFile) {
LOG.info("Downloading DryRun database for project [{}]", projectKey);
try {
server.download(API_SYNCHRO + "?resource=" + projectKey, toFile);
} catch (SonarException e) {
Throwable rootCause = Throwables.getRootCause(e);
if... |
diff --git a/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationWizardPage.java b/as/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/ApplicationWizardPage.java
index a9f4214e0..f30950a51 100644
--- a/a... | false | true | protected void doCreateControls(Composite container, DataBindingContext dbc) {
GridLayoutFactory.fillDefaults().numColumns(3).applyTo(container);
Group group = new Group(container, SWT.BORDER);
group.setText("Available Applications");
GridDataFactory.fillDefaults().grab(true, true).align(SWT.FILL, SWT.FILL).h... | protected void doCreateControls(Composite container, DataBindingContext dbc) {
GridLayoutFactory.fillDefaults().numColumns(3).applyTo(container);
Group group = new Group(container, SWT.BORDER);
group.setText("Available Applications");
GridDataFactory.fillDefaults().grab(true, true).align(SWT.FILL, SWT.FILL).h... |
diff --git a/src/test/java/org/diveintojee/poc/stories/ContinuityStory.java b/src/test/java/org/diveintojee/poc/stories/ContinuityStory.java
index c033b0c..aa726b5 100644
--- a/src/test/java/org/diveintojee/poc/stories/ContinuityStory.java
+++ b/src/test/java/org/diveintojee/poc/stories/ContinuityStory.java
@@ -1,35 +1... | true | true | protected List<String> storyPaths() {
List<String> paths = new StoryFinder().findPaths(CodeLocations.codeLocationFromClass(
SearchClassifiedsResource.class).getFile(),
Arrays.asList("**/continuity.story"), null);
//System.out.println("paths = " + paths);
return pa... | protected List<String> storyPaths() {
List<String> paths = new StoryFinder().findPaths(CodeLocations.codeLocationFromClass(getClass()).getFile(),
Arrays.asList("**/continuity.story"), null);
//System.out.println("paths = " + paths);
return paths;
}
|
diff --git a/aws/core/src/main/java/org/jclouds/aws/s3/binders/BindS3ObjectToPayload.java b/aws/core/src/main/java/org/jclouds/aws/s3/binders/BindS3ObjectToPayload.java
index a1d17f281..851c103ef 100755
--- a/aws/core/src/main/java/org/jclouds/aws/s3/binders/BindS3ObjectToPayload.java
+++ b/aws/core/src/main/java/org/j... | true | true | public void bindToRequest(HttpRequest request, Object payload) {
S3Object s3Object = (S3Object) payload;
checkNotNull(s3Object.getContentLength(), "contentLength");
checkArgument(s3Object.getContentLength() <= 5 * 1024 * 1024 * 1024,
"maximum size for put object is 5GB");
blobB... | public void bindToRequest(HttpRequest request, Object payload) {
S3Object s3Object = (S3Object) payload;
checkNotNull(s3Object.getContentLength(), "contentLength");
checkArgument(s3Object.getContentLength() <= 5l * 1024 * 1024 * 1024,
"maximum size for put object is 5GB");
blob... |
diff --git a/acs/tabbychat/TabbyChat.java b/acs/tabbychat/TabbyChat.java
index 2df4ec5..785043c 100644
--- a/acs/tabbychat/TabbyChat.java
+++ b/acs/tabbychat/TabbyChat.java
@@ -1,721 +1,721 @@
package acs.tabbychat;
/****************************************************
* This document is Copyright ©(2012) and is ... | true | true | public int processChat(List<TCChatLine> theChat) {
if(this.serverDataLock.availablePermits() == 0) {
this.serverDataLock.acquireUninterruptibly();
this.serverDataLock.release();
}
ArrayList<TCChatLine> filteredChatLine = new ArrayList<TCChatLine>(theChat.size());
List<String> toTabs = new ArrayList<St... | public int processChat(List<TCChatLine> theChat) {
if(this.serverDataLock.availablePermits() == 0) {
this.serverDataLock.acquireUninterruptibly();
this.serverDataLock.release();
}
ArrayList<TCChatLine> filteredChatLine = new ArrayList<TCChatLine>(theChat.size());
List<String> toTabs = new ArrayList<St... |
diff --git a/src/depositfiles/cz/vity/freerapid/plugins/services/depositfiles/DepositFilesRunner.java b/src/depositfiles/cz/vity/freerapid/plugins/services/depositfiles/DepositFilesRunner.java
index ec3d7574..369e4f29 100644
--- a/src/depositfiles/cz/vity/freerapid/plugins/services/depositfiles/DepositFilesRunner.java
... | false | true | public void run() throws Exception {
super.run();
setLanguageEN();
if (checkIsFolder()) {
runFolder();
return;
}
HttpMethod method = getGetMethod(fileURL);
if (makeRedirectedRequest(method)) {
checkNameAndSize(getContentAsString()... | public void run() throws Exception {
super.run();
setLanguageEN();
if (checkIsFolder()) {
runFolder();
return;
}
HttpMethod method = getGetMethod(fileURL);
if (makeRedirectedRequest(method)) {
checkNameAndSize(getContentAsString()... |
diff --git a/src/main/java/org/riderzen/flume/sink/MongoSink.java b/src/main/java/org/riderzen/flume/sink/MongoSink.java
index 8b822f6..76f2c5e 100644
--- a/src/main/java/org/riderzen/flume/sink/MongoSink.java
+++ b/src/main/java/org/riderzen/flume/sink/MongoSink.java
@@ -1,219 +1,219 @@
package org.riderzen.flume.sin... | false | true | private Status parseEvents() throws EventDeliveryException {
Status status = Status.READY;
Channel channel = getChannel();
Transaction tx = null;
Map<String, List<DBObject>> eventMap = new HashMap<String, List<DBObject>>();
try {
tx = channel.getTransaction();
... | private Status parseEvents() throws EventDeliveryException {
Status status = Status.READY;
Channel channel = getChannel();
Transaction tx = null;
Map<String, List<DBObject>> eventMap = new HashMap<String, List<DBObject>>();
try {
tx = channel.getTransaction();
... |
diff --git a/src/groupone/SelectCoupon.java b/src/groupone/SelectCoupon.java
index 4bfee55..ac8770b 100644
--- a/src/groupone/SelectCoupon.java
+++ b/src/groupone/SelectCoupon.java
@@ -1,60 +1,63 @@
package groupone;
import java.io.IOException;
import java.util.ArrayList;
import java.util.UUID;
import javax.se... | true | true | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
String[] couponIds = request.getParameterValues("checkBox");
String gift = request.getParameter("gift");
if(couponIds != null) {
ArrayList<Coupon> coup... | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
String[] couponIds = request.getParameterValues("checkBox");
String gift = request.getParameter("gift");
if(couponIds != null) {
ArrayList<Coupon> coup... |
diff --git a/ngrinder-controller/src/main/java/org/ngrinder/security/NgrinderUsernamePasswordAuthenticationFilter.java b/ngrinder-controller/src/main/java/org/ngrinder/security/NgrinderUsernamePasswordAuthenticationFilter.java
index 2f62277c..c06b402f 100644
--- a/ngrinder-controller/src/main/java/org/ngrinder/security... | true | true | public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)
throws AuthenticationException {
Authentication auth = super.attemptAuthentication(request, response);
String timezone = (String) request.getParameter("user_locale");
String language = (String) request.getPar... | public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)
throws AuthenticationException {
Authentication auth = super.attemptAuthentication(request, response);
String timezone = (String) request.getParameter("user_locale");
String language = (String) request.getPar... |
diff --git a/Harvester/branches/Development/src/main/java/org/vivoweb/harvester/update/ChangeNamespace.java b/Harvester/branches/Development/src/main/java/org/vivoweb/harvester/update/ChangeNamespace.java
index 3fc72542..83a969ea 100644
--- a/Harvester/branches/Development/src/main/java/org/vivoweb/harvester/update/Cha... | false | true | public static List<String> getMatchingURIs(Resource current, String namespace, List<Property> properties, JenaConnect vivo) {
StringBuilder sbQuery = new StringBuilder();
ArrayList<String> filters = new ArrayList<String>();
int valueCount = 0;
sbQuery.append("SELECT ?uri\nWHERE\n{");
for(Property p : propert... | public static List<String> getMatchingURIs(Resource current, String namespace, List<Property> properties, JenaConnect vivo) {
StringBuilder sbQuery = new StringBuilder();
ArrayList<String> filters = new ArrayList<String>();
int valueCount = 0;
sbQuery.append("SELECT ?uri\nWHERE\n{");
for(Property p : propert... |
diff --git a/workspace/Angr/src/fi/hbp/angr/screens/GameScreen.java b/workspace/Angr/src/fi/hbp/angr/screens/GameScreen.java
index 82df2e6..e23a760 100644
--- a/workspace/Angr/src/fi/hbp/angr/screens/GameScreen.java
+++ b/workspace/Angr/src/fi/hbp/angr/screens/GameScreen.java
@@ -1,107 +1,109 @@
package fi.hbp.angr.sc... | true | true | public void show() {
world = new World(new Vector2(0, -8), true);
stage = new GameStage(2500, 2500, false, world);
Gdx.input.setInputProcessor(stage);
// Add map/level actor
Level level = new Level(levelName, world);
stage.addActor(level);
// Add player
... | public void show() {
world = new World(new Vector2(0, -8), true);
int xsize = Gdx.graphics.getWidth() * 4;
int ysize = Gdx.graphics.getHeight() * 4;
stage = new GameStage(xsize, ysize, false, world);
Gdx.input.setInputProcessor(stage);
// Add map/level actor
... |
diff --git a/enunciate/amf/src/main/java/org/codehaus/enunciate/modules/amf/AccessorOverridesAnotherMethod.java b/enunciate/amf/src/main/java/org/codehaus/enunciate/modules/amf/AccessorOverridesAnotherMethod.java
index dc20f003..a50af989 100644
--- a/enunciate/amf/src/main/java/org/codehaus/enunciate/modules/amf/Access... | true | true | public Object exec(List list) throws TemplateModelException {
if (list.size() < 1) {
throw new TemplateModelException("The accessorOverridesAnother method must have the accessor as a parameter.");
}
TemplateModel from = (TemplateModel) list.get(0);
Object unwrapped = BeansWrapper.getDefaultInst... | public Object exec(List list) throws TemplateModelException {
if (list.size() < 1) {
throw new TemplateModelException("The accessorOverridesAnother method must have the accessor as a parameter.");
}
TemplateModel from = (TemplateModel) list.get(0);
Object unwrapped = BeansWrapper.getDefaultInst... |
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ConfigureProjectWizard.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ConfigureProjectWizard.java
index 6a7e7e521..b1414ebe8 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/Co... | true | true | public void addPages() {
AdaptableList disabledWizards = new AdaptableList();
AdaptableList wizards = getAvailableWizards(disabledWizards);
if (wizards.size() == 1) {
// If there is only one wizard, skip the first page.
// Only skip the first page if the one wizard has at least one page.
ConfigurationW... | public void addPages() {
AdaptableList disabledWizards = new AdaptableList();
AdaptableList wizards = getAvailableWizards(disabledWizards);
if (wizards.size() == 1 && disabledWizards.size() == 0) {
// If there is only one wizard, skip the first page.
// Only skip the first page if the one wizard has at le... |
diff --git a/spring-integration-groovy/src/test/java/org/springframework/integration/groovy/GroovyControlBusIntegrationTests.java b/spring-integration-groovy/src/test/java/org/springframework/integration/groovy/GroovyControlBusIntegrationTests.java
index cb1b6b466a..4363f349a4 100644
--- a/spring-integration-groovy/src... | false | true | public void testDelayerManagement() throws IOException {
Message<String> testMessage = MessageBuilder.withPayload("test").build();
this.delayerInput.send(testMessage);
this.delayerInput.send(testMessage);
this.scheduler.destroy();
assertNull(this.output.receive(100));
this.scheduler.afterPropertiesSet();
... | public void testDelayerManagement() throws IOException {
Message<String> testMessage = MessageBuilder.withPayload("test").build();
this.delayerInput.send(testMessage);
this.delayerInput.send(testMessage);
this.scheduler.destroy();
// ensure the delayer did not release any messages
assertNull(this.output.r... |
diff --git a/modules/server/jetty-util/src/test/java/org/mortbay/thread/TimeoutTest.java b/modules/server/jetty-util/src/test/java/org/mortbay/thread/TimeoutTest.java
index bae09149e..ab7d1c4fd 100644
--- a/modules/server/jetty-util/src/test/java/org/mortbay/thread/TimeoutTest.java
+++ b/modules/server/jetty-util/src/t... | false | true | public void testStress() throws Exception
{
final int LOOP=500;
final boolean[] running = {true};
final int[] count = {0,0,0};
timeout.setDuration(100);
// Start a ticker thread that will tick over the timer frequently.
Thread ticker = new Thread()
... | public void testStress() throws Exception
{
final int LOOP=500;
final boolean[] running = {true};
final int[] count = {0,0,0};
timeout.setNow(System.currentTimeMillis());
timeout.setDuration(100);
// Start a ticker thread that will tick over the timer fr... |
diff --git a/src/java/org/apache/log4j/chainsaw/ApplicationPreferenceModelPanel.java b/src/java/org/apache/log4j/chainsaw/ApplicationPreferenceModelPanel.java
index 5521f75..a58f2ab 100644
--- a/src/java/org/apache/log4j/chainsaw/ApplicationPreferenceModelPanel.java
+++ b/src/java/org/apache/log4j/chainsaw/ApplicationP... | true | true | private void setupListeners() {
topPlacement.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent e) {
uncommittedPreferenceModel.setTabPlacement(SwingConstants.TOP);
}
});
bottomPlacement.addActionListener(
new ActionL... | private void setupListeners() {
topPlacement.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent e) {
uncommittedPreferenceModel.setTabPlacement(SwingConstants.TOP);
}
});
bottomPlacement.addActionListener(
new ActionL... |
diff --git a/src/edu/stanford/mobisocial/dungbeetle/DungBeetleContentProvider.java b/src/edu/stanford/mobisocial/dungbeetle/DungBeetleContentProvider.java
index d6e210c..e1c1a80 100644
--- a/src/edu/stanford/mobisocial/dungbeetle/DungBeetleContentProvider.java
+++ b/src/edu/stanford/mobisocial/dungbeetle/DungBeetleCont... | true | true | public Uri insert(Uri uri, ContentValues values) {
ContentResolver resolver = getContext().getContentResolver();
Log.i(TAG, "Inserting at uri: " + uri + ", " + values);
final String appId = getCallingActivityId();
if (appId == null) {
Log.d(TAG, "No AppId for calling activity.... | public Uri insert(Uri uri, ContentValues values) {
ContentResolver resolver = getContext().getContentResolver();
Log.i(TAG, "Inserting at uri: " + uri + ", " + values);
final String appId = getCallingActivityId();
if (appId == null) {
Log.d(TAG, "No AppId for calling activity.... |
diff --git a/modules/amazon-ec2-provisioner/src/main/java/com/elasticgrid/platforms/ec2/EC2CloudPlatformManagerFactory.java b/modules/amazon-ec2-provisioner/src/main/java/com/elasticgrid/platforms/ec2/EC2CloudPlatformManagerFactory.java
index cec75f04..ff1e4024 100644
--- a/modules/amazon-ec2-provisioner/src/main/java/... | true | true | public EC2CloudPlatformManager getInstance() throws IOException {
if (instance == null) {
Properties config = AWSUtils.loadEC2Configuration();
String awsAccessId = config.getProperty(EC2Configuration.AWS_ACCESS_ID);
String awsSecretKey = config.getProperty(EC2Configurati... | public EC2CloudPlatformManager getInstance() throws IOException {
if (instance == null) {
Properties config = AWSUtils.loadEC2Configuration();
String awsAccessId = config.getProperty(EC2Configuration.AWS_ACCESS_ID);
String awsSecretKey = config.getProperty(EC2Configurati... |
diff --git a/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/PartEditor.java b/bundles/org.eclipse.e4.tools.emf.ui/src/org/eclipse/e4/tools/emf/ui/internal/common/component/PartEditor.java
index 340fa11e..929f17a9 100644
--- a/bundles/org.eclipse.e4.tools.emf.ui/src/org/ecl... | true | true | protected Composite createForm(Composite parent, EMFDataBindingContext context, IObservableValue master) {
parent = new Composite(parent,SWT.NONE);
parent.setLayout(new GridLayout(3, false));
IWidgetValueProperty textProp = WidgetProperties.text(SWT.Modify);
// -----------------------------------------------... | protected Composite createForm(Composite parent, EMFDataBindingContext context, IObservableValue master) {
parent = new Composite(parent,SWT.NONE);
parent.setLayout(new GridLayout(3, false));
IWidgetValueProperty textProp = WidgetProperties.text(SWT.Modify);
// -----------------------------------------------... |
diff --git a/orcid-web/src/main/java/org/orcid/pojo/ajaxForm/Contributor.java b/orcid-web/src/main/java/org/orcid/pojo/ajaxForm/Contributor.java
index 097c071ae0..2a00f17388 100644
--- a/orcid-web/src/main/java/org/orcid/pojo/ajaxForm/Contributor.java
+++ b/orcid-web/src/main/java/org/orcid/pojo/ajaxForm/Contributor.ja... | true | true | public static Contributor valueOf(org.orcid.jaxb.model.message.Contributor contributor) {
Contributor c = new Contributor();
if (contributor != null) {
if (contributor.getContributorAttributes() != null) {
contributor.getContributorAttributes();
if (contri... | public static Contributor valueOf(org.orcid.jaxb.model.message.Contributor contributor) {
Contributor c = new Contributor();
if (contributor != null) {
if (contributor.getContributorAttributes() != null) {
contributor.getContributorAttributes();
if (contri... |
diff --git a/ocl20/eclipse/tudresden.ocl20.pivot.ocl2parser/src/tudresden/ocl20/pivot/ocl2parser/internal/exception/BuildingASMException.java b/ocl20/eclipse/tudresden.ocl20.pivot.ocl2parser/src/tudresden/ocl20/pivot/ocl2parser/internal/exception/BuildingASMException.java
index d9dd4930e..be7da122a 100644
--- a/ocl20/e... | true | true | public String getMessage() {
String message = super.getMessage();
if (token == null) return message;
message = message + " Error occrued at line " + token.getLine() +
" and column " + token.getColumn() + ". The error occured at the token " + token.getValue() + ".";
return message;
}
| public String getMessage() {
String message = super.getMessage();
if (token == null) return message;
message = message + " Error occured at line " + token.getLine() +
" and column " + token.getColumn() + ". The error occured at the token " + token.getValue() + ".";
return message;
}
|
diff --git a/src/jvm/clojure/lang/DynamicClassLoader.java b/src/jvm/clojure/lang/DynamicClassLoader.java
index 7c58244e..3f3ab35e 100644
--- a/src/jvm/clojure/lang/DynamicClassLoader.java
+++ b/src/jvm/clojure/lang/DynamicClassLoader.java
@@ -1,80 +1,80 @@
/**
* Copyright (c) Rich Hickey. All rights reserved.
* ... | false | true | public Class defineClass(String name, byte[] bytes, Object srcForm){
Map.Entry<WeakReference<Class>,Object> ce = classCache.get(name);
if(ce != null)
{
WeakReference<Class> cr = ce.getKey();
Class c = cr.get();
if((c != null) && srcForm.equals(ce.getValue()))
return c... | public Class defineClass(String name, byte[] bytes, Object srcForm){
// Map.Entry<WeakReference<Class>,Object> ce = classCache.get(name);
// if(ce != null)
// {
// WeakReference<Class> cr = ce.getKey();
// Class c = cr.get();
// if((c != null) && srcForm.equals(ce.getValue()))
// ... |
diff --git a/launcher/src/se/llbit/chunky/launcher/ChunkyDeployer.java b/launcher/src/se/llbit/chunky/launcher/ChunkyDeployer.java
index e69bc8a5..d130978a 100644
--- a/launcher/src/se/llbit/chunky/launcher/ChunkyDeployer.java
+++ b/launcher/src/se/llbit/chunky/launcher/ChunkyDeployer.java
@@ -1,432 +1,431 @@
/* Copyr... | false | true | public boolean launchChunky(Component parentComponent, LauncherSettings settings, VersionInfo version) {
List<String> command = buildCommandLine(version, settings);
if (System.getProperty("log4j.logLevel", "WARN").equals("INFO")) {
System.out.println(commandString(command));
}
ProcessBuilder procBuilder = n... | public boolean launchChunky(Component parentComponent, LauncherSettings settings, VersionInfo version) {
List<String> command = buildCommandLine(version, settings);
if (System.getProperty("log4j.logLevel", "WARN").equals("INFO")) {
System.out.println(commandString(command));
}
ProcessBuilder procBuilder = n... |
diff --git a/server/cluster-mgmt/src/main/java/com/vmware/bdd/command/CommandUtil.java b/server/cluster-mgmt/src/main/java/com/vmware/bdd/command/CommandUtil.java
index 1c1d3cf8..66eb5428 100644
--- a/server/cluster-mgmt/src/main/java/com/vmware/bdd/command/CommandUtil.java
+++ b/server/cluster-mgmt/src/main/java/com/v... | true | true | public static File createWorkDir(long executionId) {
File path = new File(taskRootDir, Long.toString(executionId));
if (!path.exists()) {
path.mkdirs();
}
String dirs[] = path.list();
long lastCmdId = 0;
for (String dir : dirs) {
long cmdId = Long.parseLong(dir)... | public static File createWorkDir(long executionId) {
File path = new File(taskRootDir, Long.toString(executionId));
if (!path.exists()) {
path.mkdirs();
}
String dirs[] = path.list();
long lastCmdId = 0;
if (dirs != null) {
for (String dir : dirs) {
... |
diff --git a/src/ru/spbau/bioinf/tagfinder/IntencityTableGenerator.java b/src/ru/spbau/bioinf/tagfinder/IntencityTableGenerator.java
index 531f52d..a57f20b 100644
--- a/src/ru/spbau/bioinf/tagfinder/IntencityTableGenerator.java
+++ b/src/ru/spbau/bioinf/tagfinder/IntencityTableGenerator.java
@@ -1,164 +1,164 @@
packag... | true | true | private static void printTable(double[][] res, String file, int gap, String caption) throws Exception {
BufferedReader in = ReaderUtil.createInputReader(new File("res", "share_" + file + "_" + gap + ".txt"));
double[] good = new double[100];
double[] bad = new double[100];
double[] b... | private static void printTable(double[][] res, String file, int gap, String caption) throws Exception {
BufferedReader in = ReaderUtil.createInputReader(new File("res", "share_" + file + "_" + gap + ".txt"));
double[] good = new double[100];
double[] bad = new double[100];
double[] b... |
diff --git a/src/test/java/spark/BooksIntegrationTest.java b/src/test/java/spark/BooksIntegrationTest.java
index bb1b7b5..959f100 100644
--- a/src/test/java/spark/BooksIntegrationTest.java
+++ b/src/test/java/spark/BooksIntegrationTest.java
@@ -1,196 +1,197 @@
package spark;
import java.io.FileNotFoundException;
i... | true | true | public void testGetBook() {
try {
// ensure there is a book
testCreateBook();
UrlResponse response = doMethod("GET", "/books/" + id, null);
String result = response.body;
Assert.assertNotNull(response);
Assert.assertNotNull(response.body);
Assert.assertEqu... | public void testGetBook() {
try {
// ensure there is a book
testCreateBook();
UrlResponse response = doMethod("GET", "/books/" + id, null);
String result = response.body;
Assert.assertNotNull(response);
Assert.assertNotNull(response.body);
Assert.assertEqu... |
diff --git a/Maze.java b/Maze.java
index a0f2196..6f56017 100644
--- a/Maze.java
+++ b/Maze.java
@@ -1,281 +1,281 @@
// name: Torin Rudeen
// dependencies: StdDraw, StdIn, StdOut
public class Maze
{
//input maze from file; 0 = passageway, 1 = wall, 2 = entrance, 3 = exit
// file begins with height follo... | true | true | public static void main(String[] args)
{
while (true)
{
// generate a maze of the size user requests.
StdOut.println("What size of maze do you want?");
StdOut.println(" Values from 10 to 100 recommended.");
StdOut.println(" (type 0 to quit)");
... | public static void main(String[] args)
{
while (true)
{
// generate a maze of the size user requests.
StdOut.println("What size of maze do you want?");
StdOut.println(" Values from 10 to 100 recommended.");
StdOut.println(" (type 0 to quit)");
... |
diff --git a/src/java/com/eviware/soapui/impl/wsdl/testcase/WsdlTestCase.java b/src/java/com/eviware/soapui/impl/wsdl/testcase/WsdlTestCase.java
index 1c3f80077..71f96fa05 100644
--- a/src/java/com/eviware/soapui/impl/wsdl/testcase/WsdlTestCase.java
+++ b/src/java/com/eviware/soapui/impl/wsdl/testcase/WsdlTestCase.java... | false | true | public WsdlTestCase( WsdlTestSuite testSuite, TestCaseConfig config, boolean forLoadTest )
{
super( config, testSuite, "/testCase.gif" );
this.testSuite = testSuite;
this.forLoadTest = forLoadTest;
List<TestStepConfig> testStepConfigs = config.getTestStepList();
List<TestStepConfig> removed = new ArrayLis... | public WsdlTestCase( WsdlTestSuite testSuite, TestCaseConfig config, boolean forLoadTest )
{
super( config, testSuite, "/testCase.gif" );
this.testSuite = testSuite;
this.forLoadTest = forLoadTest;
List<TestStepConfig> testStepConfigs = config.getTestStepList();
List<TestStepConfig> removed = new ArrayLis... |
diff --git a/src/au/org/intersect/samifier/runner/ResultAnalyserRunner.java b/src/au/org/intersect/samifier/runner/ResultAnalyserRunner.java
index 38d8f5a..58686c4 100644
--- a/src/au/org/intersect/samifier/runner/ResultAnalyserRunner.java
+++ b/src/au/org/intersect/samifier/runner/ResultAnalyserRunner.java
@@ -1,97 +1... | true | true | public void runWithQuery() throws Exception
{
GenomeParserImpl genomeParser = new GenomeParserImpl();
Genome genome = genomeParser.parseGenomeFile(genomeFile);
ProteinToOLNParser proteinToOLNParser = new ProteinToOLNParserImpl();
Map<String, String> proteinToOLNMap = protei... | public void runWithQuery() throws Exception
{
GenomeParserImpl genomeParser = new GenomeParserImpl();
Genome genome = genomeParser.parseGenomeFile(genomeFile);
ProteinToOLNParser proteinToOLNParser = new ProteinToOLNParserImpl();
ProteinToOLNMap proteinToOLNMap = proteinToO... |
diff --git a/Sendgrid.java b/Sendgrid.java
index 8ea36a8..1a1d600 100755
--- a/Sendgrid.java
+++ b/Sendgrid.java
@@ -1,737 +1,741 @@
package googleSendgridJava;
import java.net.HttpURLConnection;
import java.util.*;
import java.io.IOException;
import java.util.Iterator;
import java.net.MalformedURLException;
i... | true | true | public void send(WarningListener w) throws JSONException {
Map<String,String> data = new HashMap<String, String>();
data = this._prepMessageData();
StringBuffer requestParams = new StringBuffer();
Iterator<String> paramIterator = data.keySet().iterator();
while (paramIterato... | public void send(WarningListener w) throws JSONException {
Map<String,String> data = new HashMap<String, String>();
data = this._prepMessageData();
StringBuffer requestParams = new StringBuffer();
Iterator<String> paramIterator = data.keySet().iterator();
while (paramIterato... |
diff --git a/ghana-national-test/src/main/java/org/motechproject/ghana/national/web/service/GNScheduleService.java b/ghana-national-test/src/main/java/org/motechproject/ghana/national/web/service/GNScheduleService.java
index fb1e3ef9..015f0179 100644
--- a/ghana-national-test/src/main/java/org/motechproject/ghana/natio... | true | true | private List<Alert> createActualTestAlertTimes(List<org.motechproject.ghana.national.web.domain.JobDetail> alertsJobDetails) {
sortBasedOnIndexInAlertName(alertsJobDetails);
List<Alert> actualAlertTimes = new CopyOnWriteArrayList<Alert>();
for (org.motechproject.ghana.national.web.domain.Jo... | private List<Alert> createActualTestAlertTimes(List<org.motechproject.ghana.national.web.domain.JobDetail> alertsJobDetails) {
sortBasedOnIndexInAlertName(alertsJobDetails);
List<Alert> actualAlertTimes = new CopyOnWriteArrayList<Alert>();
for (org.motechproject.ghana.national.web.domain.Jo... |
diff --git a/src/main/java/org/helix/mobile/component/tab/TabRenderer.java b/src/main/java/org/helix/mobile/component/tab/TabRenderer.java
index 8d1eb6da..ddaac849 100644
--- a/src/main/java/org/helix/mobile/component/tab/TabRenderer.java
+++ b/src/main/java/org/helix/mobile/component/tab/TabRenderer.java
@@ -1,52 +1,5... | false | true | public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
Tab tab = (Tab)component;
Boolean isActive = (Boolean)tab.getAttributes().get("active");
ResponseWriter writer = context.getResponseWriter();
writer.startElement("li", component);
... | public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
Tab tab = (Tab)component;
Boolean isActive = (Boolean)tab.getAttributes().get("active");
ResponseWriter writer = context.getResponseWriter();
writer.startElement("li", component);
... |
diff --git a/src/plugins/Library/Main.java b/src/plugins/Library/Main.java
index 6876017..3fccc97 100644
--- a/src/plugins/Library/Main.java
+++ b/src/plugins/Library/Main.java
@@ -1,1057 +1,1057 @@
/* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your optio... | true | true | private void mergeToDisk(Bucket data) {
boolean newIndex = false;
if(idxDiskDir == null) {
newIndex = true;
dirNumber++;
idxDiskDir = new File(DISK_DIR_PREFIX + Integer.toString(dirNumber));
System.out.println("Created new disk dir for merging: "+idxDiskDir);
if(!(idxDiskDir.mkdir() || idxDisk... | private void mergeToDisk(Bucket data) {
boolean newIndex = false;
if(idxDiskDir == null) {
newIndex = true;
dirNumber++;
idxDiskDir = new File(DISK_DIR_PREFIX + Integer.toString(dirNumber));
System.out.println("Created new disk dir for merging: "+idxDiskDir);
if(!(idxDiskDir.mkdir() || idxDisk... |
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/editor/Editor.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/editor/Editor.java
index e1ad21640..533ea7789 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org... | false | true | protected void processPageBinding(EditorPageBinding binding) {
Assert.isNotNull(binding);
String pageId = binding.getPageId();
if (pageId != null) {
// Get the corresponding editor page instance
IEditorPage page = EditorPageExtensionPointManager.getInstance().getEditorPage(pageId, true);
if (page != nu... | protected void processPageBinding(EditorPageBinding binding) {
Assert.isNotNull(binding);
String pageId = binding.getPageId();
if (pageId != null) {
// Get the corresponding editor page instance
IEditorPage page = EditorPageExtensionPointManager.getInstance().getEditorPage(pageId, true);
if (page != nu... |
diff --git a/src/web/app/src/main/java/org/geoserver/filters/SessionDebugFilter.java b/src/web/app/src/main/java/org/geoserver/filters/SessionDebugFilter.java
index 2dae9ed44c..22e9eb7fb1 100644
--- a/src/web/app/src/main/java/org/geoserver/filters/SessionDebugFilter.java
+++ b/src/web/app/src/main/java/org/geoserver/f... | false | true | public HttpSession getSession(boolean create) {
// first off, try to grab an existing session
HttpSession session = super.getSession(false);
if (session != null || !create) {
return session;
}
// ok, no session but the caller really w... | public HttpSession getSession(boolean create) {
// first off, try to grab an existing session
HttpSession session = super.getSession(false);
if (session != null || !create) {
return session;
}
// ok, no session but the caller really w... |
diff --git a/Android/RazorAHRS/src/de/tuberlin/qu/razorahrs/RazorAHRS.java b/Android/RazorAHRS/src/de/tuberlin/qu/razorahrs/RazorAHRS.java
index e68b736..39c8291 100644
--- a/Android/RazorAHRS/src/de/tuberlin/qu/razorahrs/RazorAHRS.java
+++ b/Android/RazorAHRS/src/de/tuberlin/qu/razorahrs/RazorAHRS.java
@@ -1,510 +1,51... | true | true | public void run() {
if (DEBUG) Log.d(TAG, "Bluetooth I/O thread started");
try {
// Check if btDevice is set
if (btDevice == null) {
if (DEBUG) Log.d(TAG, "btDevice is null in run()");
throw new IOException("Bluetooth device is null");
}
// Make several attempts to connect
int... | public void run() {
if (DEBUG) Log.d(TAG, "Bluetooth I/O thread started");
try {
// Check if btDevice is set
if (btDevice == null) {
if (DEBUG) Log.d(TAG, "btDevice is null in run()");
throw new IOException("Bluetooth device is null");
}
// Make several attempts to connect
int... |
diff --git a/java/v9t9-java/src/v9t9/emulator/hardware/memory/F99bMemoryModel.java b/java/v9t9-java/src/v9t9/emulator/hardware/memory/F99bMemoryModel.java
index c53ac9f73..0efd8e616 100644
--- a/java/v9t9-java/src/v9t9/emulator/hardware/memory/F99bMemoryModel.java
+++ b/java/v9t9-java/src/v9t9/emulator/hardware/memory/... | true | true | public void loadMemory(IEventNotifier eventNotifier) {
DiskMemoryEntry cpuRomEntry;
String filename = "f99brom.bin";
try {
cpuRomEntry = DiskMemoryEntry.newByteMemoryFromFile(
0x400, 0x4000 - 0x400, "CPU ROM",
CPU,
filename, 0x400, false);
cpuRomEntry.load();
//for... | public void loadMemory(IEventNotifier eventNotifier) {
DiskMemoryEntry cpuRomEntry;
String filename = "f99brom.bin";
try {
cpuRomEntry = DiskMemoryEntry.newByteMemoryFromFile(
0x400, 0x4000 - 0x400, "CPU ROM",
CPU,
filename, 0x400, false);
cpuRomEntry.load();
//for... |
diff --git a/asm/test/conform/org/objectweb/asm/util/CheckClassAdapterUnitTest.java b/asm/test/conform/org/objectweb/asm/util/CheckClassAdapterUnitTest.java
index 786ff3b8..d6e4089f 100644
--- a/asm/test/conform/org/objectweb/asm/util/CheckClassAdapterUnitTest.java
+++ b/asm/test/conform/org/objectweb/asm/util/CheckCla... | false | true | public void testIllegalDebugLabelUse() throws IOException {
ClassReader cr = new ClassReader("java.lang.Object");
ClassWriter cw = new ClassWriter(cr, ClassWriter.COMPUTE_MAXS);
cr.accept(new ClassAdapter(cw) {
public MethodVisitor visitMethod(
int access,
... | public void testIllegalDebugLabelUse() throws IOException {
ClassReader cr = new ClassReader("java.lang.Object");
ClassWriter cw = new ClassWriter(cr, ClassWriter.COMPUTE_MAXS);
ClassVisitor cv = new ClassAdapter(cw) {
public MethodVisitor visitMethod(
int access,... |
diff --git a/flexoserver/flexoexternalbuilders/src/main/java/org/openflexo/builders/utils/FlexoBuilderProjectReferenceLoader.java b/flexoserver/flexoexternalbuilders/src/main/java/org/openflexo/builders/utils/FlexoBuilderProjectReferenceLoader.java
index 2c65e5bb1..c2077e0f6 100644
--- a/flexoserver/flexoexternalbuilde... | true | true | public FlexoProject loadProject(FlexoProjectReference reference, boolean silentlyOnly) {
FlexoEditor editor = projectLoader.editorForProjectURIAndRevision(reference.getURI(), reference.getRevision());
if (editor != null) {
return editor.getProject();
}
if (serverURL != null && login != null && password != n... | public FlexoProject loadProject(FlexoProjectReference reference, boolean silentlyOnly) {
FlexoEditor editor = projectLoader.editorForProjectURIAndRevision(reference.getURI(), reference.getRevision());
if (editor != null) {
return editor.getProject();
}
if (serverURL != null && login != null && password != n... |
diff --git a/test-modules/webservice-test/src/test/java/org/openlmis/functional/FacilityFeed.java b/test-modules/webservice-test/src/test/java/org/openlmis/functional/FacilityFeed.java
index e7e11a7d43..5c4e5404e4 100644
--- a/test-modules/webservice-test/src/test/java/org/openlmis/functional/FacilityFeed.java
+++ b/te... | true | true | public void testFacilityFeedUsingUI(String user, String program, String[] credentials) throws Exception {
HttpClient client = new HttpClient();
client.createContext();
LoginPage loginPage = new LoginPage(testWebDriver, baseUrlGlobal);
dbWrapper.insertUser("200", user, "Ag/myf1Whs0fxr1FFfK8cs3q/VJ1qM... | public void testFacilityFeedUsingUI(String user, String program, String[] credentials) throws Exception {
HttpClient client = new HttpClient();
client.createContext();
LoginPage loginPage = new LoginPage(testWebDriver, baseUrlGlobal);
dbWrapper.insertUser("200", user, "Ag/myf1Whs0fxr1FFfK8cs3q/VJ1qM... |
diff --git a/src/main/java/nuroko/testing/DerivativeTest.java b/src/main/java/nuroko/testing/DerivativeTest.java
index 54dcba7..1d7a5b3 100644
--- a/src/main/java/nuroko/testing/DerivativeTest.java
+++ b/src/main/java/nuroko/testing/DerivativeTest.java
@@ -1,48 +1,48 @@
package nuroko.testing;
import mikera.vectorz... | false | true | public static void testDerivative(AComponent c) {
c=c.clone();
c.getGradient().fill(0.0);
AVector t=Vector.createLength(c.getOutputLength());
Vectorz.fillGaussian(t);
AVector x=Vector.createLength(c.getInputLength());
Vectorz.fillGaussian(x);
c.train(x,t,SquaredErrorLoss.INSTANCE,1.0);
AVec... | public static void testDerivative(AComponent c) {
c=c.clone();
c.getGradient().fill(0.0);
AVector t=Vector.createLength(c.getOutputLength());
Vectorz.fillGaussian(t);
AVector x=Vector.createLength(c.getInputLength());
Vectorz.fillGaussian(x);
c.train(x,t,SquaredErrorLoss.INSTANCE,1.0);
AVec... |
diff --git a/src/main/java/de/paralleluniverse/Faithcaio/AuctionHouse/Auction.java b/src/main/java/de/paralleluniverse/Faithcaio/AuctionHouse/Auction.java
index 112d58e..4568e5b 100644
--- a/src/main/java/de/paralleluniverse/Faithcaio/AuctionHouse/Auction.java
+++ b/src/main/java/de/paralleluniverse/Faithcaio/AuctionHo... | false | true | public boolean bid(Player bidder,double amount)
{
if (amount<this.bids.peek().amount)
{
return false;
}
this.bids.push(new Bid(bidder, amount));
return true;
}
| public boolean bid(final Player bidder, final double amount)
{
if (amount < this.bids.peek().getAmount())
{
return false;
}
this.bids.push(new Bid(bidder, amount));
return true;
}
|
diff --git a/app/beans/Recipe.java b/app/beans/Recipe.java
index 4436928..63fbd20 100644
--- a/app/beans/Recipe.java
+++ b/app/beans/Recipe.java
@@ -1,82 +1,82 @@
package beans;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.filefilter.WildcardFileFilter;
import play.i18n.Messages;
import s... | true | true | public Type getRecipeType() {
Collection<File> files = FileUtils.listFiles(recipeRootDirectory, fileFilter, null);
if (CollectionUtils.isEmpty( files ) ) {
throw new ServerException(Messages.get("recipe.not.valid.1",
Type.APPLICATION.fileIdentifier, Type.SERVICE.fil... | public Type getRecipeType() {
Collection<File> files = FileUtils.listFiles(recipeRootDirectory, fileFilter, null);
if (CollectionUtils.isEmpty( files ) ) {
throw new ServerException(Messages.get("recipe.not.valid.1",
Type.APPLICATION.fileIdentifier, Type.SERVICE.fil... |
diff --git a/jbriegel/cmd/build.java b/jbriegel/cmd/build.java
index 819e48b..54232f1 100644
--- a/jbriegel/cmd/build.java
+++ b/jbriegel/cmd/build.java
@@ -1,31 +1,31 @@
package org.de.metux.briegel.cmd;
import org.de.metux.briegel.base.EBriegelError;
import org.de.metux.briegel.robots.RecursiveBuild;
/* thi... | true | true | public void cmd_main(String argv[]) throws EBriegelError
{
if ((argv == null) || (argv.length == 0))
{
System.err.println(myname+": missing port name");
System.exit(exitcode_err_missing_port);
}
RecursiveBuild bot = new RecursiveBuild(argv[0],getPortConfig(argv[0]));
bot.run();
}
| public void cmd_main(String argv[]) throws EBriegelError
{
if ((argv == null) || (argv.length == 0) || (argv[0] == null) || (argv[0].isEmpty()))
{
System.err.println(myname+": missing port name");
System.exit(exitcode_err_missing_port);
}
RecursiveBuild bot = new RecursiveBuild(argv[0],getPortConf... |
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/filebuffers/FileBuffers.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/filebuffers/FileBuffers.java
index 447f95e5d..7a2656424 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/filebuffers/FileBuffers.java
+++ b/org.eclipse.core.fileb... | true | true | public static IPath normalizeLocation(IPath location) {
IWorkspaceRoot workspaceRoot= ResourcesPlugin.getWorkspace().getRoot();
IProject[] projects= workspaceRoot.getProjects();
for (int i= 0, length= projects.length; i < length; i++) {
IPath path= projects[i].getLocation();
if (path.isPrefixOf(location... | public static IPath normalizeLocation(IPath location) {
IWorkspaceRoot workspaceRoot= ResourcesPlugin.getWorkspace().getRoot();
IProject[] projects= workspaceRoot.getProjects();
for (int i= 0, length= projects.length; i < length; i++) {
IPath path= projects[i].getLocation();
if (path != null && path.isP... |
diff --git a/activemq-cpp/openwire-scripts/AmqCppClassesGenerator.java b/activemq-cpp/openwire-scripts/AmqCppClassesGenerator.java
index 8b11eb9b..490158d9 100644
--- a/activemq-cpp/openwire-scripts/AmqCppClassesGenerator.java
+++ b/activemq-cpp/openwire-scripts/AmqCppClassesGenerator.java
@@ -1,506 +1,504 @@
/*
*
... | false | true | protected void generateFile(PrintWriter out) throws Exception {
generateLicence(out);
out.println("#include <activemq/connector/openwire/commands/"+className+".h>");
out.println("#include <activemq/exceptions/NullPointerException.h>");
out.println("");
out.println("using namespace std;");
out.println("using... | protected void generateFile(PrintWriter out) throws Exception {
generateLicence(out);
out.println("#include <activemq/connector/openwire/commands/"+className+".h>");
out.println("#include <activemq/exceptions/NullPointerException.h>");
out.println("");
out.println("using namespace std;");
out.println("using... |
diff --git a/modules/tools/audio-manager/src/classes/org/jdesktop/wonderland/modules/audiomanager/client/AudioTreatmentComponentProperties.java b/modules/tools/audio-manager/src/classes/org/jdesktop/wonderland/modules/audiomanager/client/AudioTreatmentComponentProperties.java
index c4a204d6d..c4ee1203f 100644
--- a/mod... | false | true | private void initComponents() {
buttonGroup1 = new javax.swing.ButtonGroup();
buttonGroup3 = new javax.swing.ButtonGroup();
buttonGroup2 = new javax.swing.ButtonGroup();
jLabel5 = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing... | private void initComponents() {
buttonGroup1 = new javax.swing.ButtonGroup();
buttonGroup3 = new javax.swing.ButtonGroup();
buttonGroup2 = new javax.swing.ButtonGroup();
jLabel5 = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing... |
diff --git a/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/lucene/NodeIndexer.java b/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/query/lucene/NodeIndexer.java
index 86eff3391..620432c75 100644
--- a/exo.jcr.component.core/src/main/java/org/exoplatform/... | true | true | private void addValues(final Document doc, final PropertyData prop) throws RepositoryException
{
int propType = prop.getType();
String fieldName = resolver.createJCRName(prop.getQPath().getName()).getAsString();
if (propType == PropertyType.BINARY)
{
List<ValueData> data = null;
... | private void addValues(final Document doc, final PropertyData prop) throws RepositoryException
{
int propType = prop.getType();
String fieldName = resolver.createJCRName(prop.getQPath().getName()).getAsString();
if (propType == PropertyType.BINARY)
{
List<ValueData> data = null;
... |
diff --git a/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/UrlGenerator.java b/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/UrlGenerator.java
index 0addd435..b566e809 100644
--- a/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/UrlGenerator.java
+++ b/java/gadgets/src/main/java/org... | true | true | public String getIframeUrl(Gadget gadget) {
StringBuilder buf = new StringBuilder();
GadgetContext context = gadget.getContext();
GadgetSpec spec = gadget.getSpec();
try {
String url = context.getUrl().toString();
View view = HttpUtil.getView(gadget, syndicatorConfig);
View.ContentTy... | public String getIframeUrl(Gadget gadget) {
StringBuilder buf = new StringBuilder();
GadgetContext context = gadget.getContext();
GadgetSpec spec = gadget.getSpec();
try {
String url = context.getUrl().toString();
View view = HttpUtil.getView(gadget, syndicatorConfig);
View.ContentTy... |
diff --git a/spring/src/main/java/org/brekka/stillingar/spring/resource/BaseDirResolver.java b/spring/src/main/java/org/brekka/stillingar/spring/resource/BaseDirResolver.java
index 0202fc6..9b340d8 100644
--- a/spring/src/main/java/org/brekka/stillingar/spring/resource/BaseDirResolver.java
+++ b/spring/src/main/java/or... | false | true | protected Resource resolve(String location) {
Resource resource = null;
Matcher matcher = VAR_REPLACE_REGEX.matcher(location);
boolean allValuesReplaced = true;
StringBuffer sb = new StringBuffer();
while (matcher.find()) {
boolean env = matcher.group(1) != null;
... | protected Resource resolve(String location) {
Resource resource = null;
Matcher matcher = VAR_REPLACE_REGEX.matcher(location);
boolean allValuesReplaced = true;
StringBuffer sb = new StringBuffer();
while (matcher.find()) {
boolean env = matcher.group(1) != null;
... |
diff --git a/lib/src/org/transdroid/daemon/util/FakeTrustManager.java b/lib/src/org/transdroid/daemon/util/FakeTrustManager.java
index 160f703..bbb7bff 100644
--- a/lib/src/org/transdroid/daemon/util/FakeTrustManager.java
+++ b/lib/src/org/transdroid/daemon/util/FakeTrustManager.java
@@ -1,89 +1,89 @@
package org.tran... | true | true | public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
if( this.certKey == null ){
// This is the Accept All certificates case.
return;
}
// Otherwise, we have a certKey defined. We should now examine the on... | public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
if( this.certKey == null ){
// This is the Accept All certificates case.
return;
}
// Otherwise, we have a certKey defined. We should now examine the on... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.