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/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/editor/model/XtextDocumentProvider.java b/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/editor/model/XtextDocumentProvider.java
index c36d49e4b..1f9d2297b 100644
--- a/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/u... | true | true | public void resourceChanged(final IResourceChangeEvent event) {
final ResourceDeltaVisitor visitor = new ResourceDeltaVisitor(document);
try {
event.getDelta().accept(visitor);
} catch (CoreException e) {
log.error(e.getMessage(), e);
}
if (!visitor.deltas.isEmpty()) {
new Job("updating res... | public void resourceChanged(final IResourceChangeEvent event) {
final ResourceDeltaVisitor visitor = new ResourceDeltaVisitor(document);
try {
event.getDelta().accept(visitor);
} catch (CoreException e) {
log.error(e.getMessage(), e);
}
if (!visitor.deltas.isEmpty()) {
new Job("updating res... |
diff --git a/iva.java b/iva.java
index 44c49b9..e562357 100644
--- a/iva.java
+++ b/iva.java
@@ -1,718 +1,720 @@
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.io.*;
import javax.imageio.*;
import java.math.*;
/**
* This class demonstrates how to load an Image from an extern... | false | true | public void lineDrawComplete(){
int color;
for (int i = 0; i < height; i++){
for (int j = 0; j < width; j++){
color = getRGB(j, i);
if (color == GREEN){
// the pixel's color is green
int topx = j, topy = i, bottomx = j, bottomy = i;
int k = i,l = j, m, n;
for(n = 0... | public void lineDrawComplete(){
int color;
for (int i = 0; i < height; i++){
for (int j = 0; j < width; j++){
color = getRGB(j, i);
if (color == GREEN){
// the pixel's color is green
int topx = j, topy = i, bottomx = j, bottomy = i;
int k = i,l = j, m, n;
for(n = 0... |
diff --git a/Plugins/org.opendarts.core.stats/src/main/java/org/opendarts/core/stats/model/impl/AverageStatsEntry.java b/Plugins/org.opendarts.core.stats/src/main/java/org/opendarts/core/stats/model/impl/AverageStatsEntry.java
index df61ad4..a05ac22 100644
--- a/Plugins/org.opendarts.core.stats/src/main/java/org/openda... | true | true | public Comparator<AvgEntry> getComparator() {
return new Comparator<AvgEntry>() {
@Override
public int compare(AvgEntry o1, AvgEntry o2) {
int result;
if (o1==null && o2!=null) {
result = -1;
} else if (o2!=null && o1==null) {
result = 1;
} else if (o1==null && o2==null) {
result... | public Comparator<AvgEntry> getComparator() {
return new Comparator<AvgEntry>() {
@Override
public int compare(AvgEntry o1, AvgEntry o2) {
int result;
if (o1==null && o2!=null) {
result = -1;
} else if (o2!=null && o1==null) {
result = 1;
} else if (o1==null && o2==null) {
result... |
diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java b/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java
index b27c23df..730a2672 100644
--- a/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java
+++ b/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java
@@ -1,1153 +1,1153 @@
/*
*... | true | true | public ObjectId resolve(final String revstr) throws IOException {
char[] rev = revstr.toCharArray();
Object ref = null;
ObjectId refId = null;
for (int i = 0; i < rev.length; ++i) {
switch (rev[i]) {
case '^':
if (refId == null) {
String refstr = new String(rev,0,i);
refId = resolveSimple(r... | public ObjectId resolve(final String revstr) throws IOException {
char[] rev = revstr.toCharArray();
Object ref = null;
ObjectId refId = null;
for (int i = 0; i < rev.length; ++i) {
switch (rev[i]) {
case '^':
if (refId == null) {
String refstr = new String(rev,0,i);
refId = resolveSimple(r... |
diff --git a/src/com/dozersoftware/snap/PositionReporter.java b/src/com/dozersoftware/snap/PositionReporter.java
index 775301d..e386cea 100644
--- a/src/com/dozersoftware/snap/PositionReporter.java
+++ b/src/com/dozersoftware/snap/PositionReporter.java
@@ -1,41 +1,41 @@
/*
* Copyright 2010 Dozer Software, LLC
* Th... | true | true | public Message process(Message message) {
try {
new ServiceInvoker("Norm", "NormProcessor").deliverAsync(message);
} catch (MessageDeliverException e) {
e.printStackTrace();
}
//System.out.println("Kicking a PositionReport!");
return message;
}
| public Message process(Message message) {
try {
new ServiceInvoker("NormOut", "NormProcessor").deliverAsync(message);
} catch (MessageDeliverException e) {
e.printStackTrace();
}
//System.out.println("Kicking a PositionReport!");
return message;
}
|
diff --git a/plugin/src/main/java/org/exoplatform/crowdin/mojo/UpdateSourcesMojo.java b/plugin/src/main/java/org/exoplatform/crowdin/mojo/UpdateSourcesMojo.java
index b96693b..e486541 100644
--- a/plugin/src/main/java/org/exoplatform/crowdin/mojo/UpdateSourcesMojo.java
+++ b/plugin/src/main/java/org/exoplatform/crowdin... | true | true | private void applyTranslations(File _destFolder, String _zipFile, String locale) {
try {
byte[] buf = new byte[1024];
ZipInputStream zipinputstream = null;
ZipEntry zipentry;
zipinputstream = new ZipInputStream(new FileInputStream(_zipFile));
zipentry = zipinputstream.getNextEntry()... | private void applyTranslations(File _destFolder, String _zipFile, String locale) {
try {
byte[] buf = new byte[1024];
ZipInputStream zipinputstream = null;
ZipEntry zipentry;
zipinputstream = new ZipInputStream(new FileInputStream(_zipFile));
zipentry = zipinputstream.getNextEntry()... |
diff --git a/ui/plugins/eu.esdihumboldt.hale.ui/src/eu/esdihumboldt/hale/ui/io/IOWizard.java b/ui/plugins/eu.esdihumboldt.hale.ui/src/eu/esdihumboldt/hale/ui/io/IOWizard.java
index 8f36c3fb0..63b270729 100644
--- a/ui/plugins/eu.esdihumboldt.hale.ui/src/eu/esdihumboldt/hale/ui/io/IOWizard.java
+++ b/ui/plugins/eu.esdih... | true | true | public boolean performFinish() {
if (getProvider() == null) {
return false;
}
// process main pages
for (int i = 0; i < mainPages.size(); i++) {
// validating is still necessary as it is not guaranteed to be up to
// date by handlePageChanging
boolean valid = validatePage(mainPages.get(i));
if ... | public boolean performFinish() {
if (getProvider() == null) {
return false;
}
// process main pages
for (int i = 0; i < mainPages.size(); i++) {
// validating is still necessary as it is not guaranteed to be up to
// date by handlePageChanging
boolean valid = validatePage(mainPages.get(i));
if ... |
diff --git a/sip-core/src/main/java/eu/delving/metadata/NodeMapping.java b/sip-core/src/main/java/eu/delving/metadata/NodeMapping.java
index a2620cde..908be069 100644
--- a/sip-core/src/main/java/eu/delving/metadata/NodeMapping.java
+++ b/sip-core/src/main/java/eu/delving/metadata/NodeMapping.java
@@ -1,391 +1,387 @@
... | false | true | private void toInnerLoop(Path path, Stack<String> groovyParams) {
if (path.isEmpty()) throw new RuntimeException();
if (path.size() == 1) {
if (dictionary != null) {
codeOut.line("from%s(%s)", toDictionaryName(this), toLeafGroovyParam(path));
}
els... | private void toInnerLoop(Path path, Stack<String> groovyParams) {
if (path.isEmpty()) throw new RuntimeException();
if (path.size() == 1) {
if (dictionary != null) {
codeOut.line("from%s(%s)", toDictionaryName(this), toLeafGroovyParam(path));
}
els... |
diff --git a/src/State.java b/src/State.java
index f835f55..1521d43 100644
--- a/src/State.java
+++ b/src/State.java
@@ -1,125 +1,130 @@
import java.util.*;
public class State {
public State(boolean ON, Point2D location, int direction, List<Point2D> dirts)
{
this.ON = ON;
this.location =... | false | true | public List<String> get_legal_moves(Environment env)
{
List<String> moves = new ArrayList<String>();
if(!ON)
{
moves.add("TURN_ON");
return moves;
}
// Suck, turning is always legal.
moves.add("SUCK");
moves.add("T... | public List<String> get_legal_moves(Environment env)
{
List<String> moves = new ArrayList<String>();
if(!ON)
{
moves.add("TURN_ON");
return moves;
}
// Suck, turning is always legal.
moves.add("SUCK");
moves.add("T... |
diff --git a/org.maven.ide.eclipse/src/org/maven/ide/eclipse/internal/project/CustomizableLifecycleMapping.java b/org.maven.ide.eclipse/src/org/maven/ide/eclipse/internal/project/CustomizableLifecycleMapping.java
index 5fcdb85a..18196961 100644
--- a/org.maven.ide.eclipse/src/org/maven/ide/eclipse/internal/project/Cust... | true | true | public List<AbstractProjectConfigurator> getProjectConfigurators(IMavenProjectFacade facade, IProgressMonitor monitor)
throws CoreException {
MavenProject mavenProject = facade.getMavenProject(monitor);
Plugin plugin = mavenProject.getPlugin("org.maven.ide.eclipse:lifecycle-mapping");
if(plugin == ... | public List<AbstractProjectConfigurator> getProjectConfigurators(IMavenProjectFacade facade, IProgressMonitor monitor)
throws CoreException {
MavenProject mavenProject = facade.getMavenProject(monitor);
Plugin plugin = mavenProject.getPlugin("org.maven.ide.eclipse:lifecycle-mapping");
if(plugin == ... |
diff --git a/staging/testsuite/src/test/java/org/sonatype/nexus/maven/staging/it/nxcm5194/Nxcm5194GLevelRepositoryMetadataSupport.java b/staging/testsuite/src/test/java/org/sonatype/nexus/maven/staging/it/nxcm5194/Nxcm5194GLevelRepositoryMetadataSupport.java
index 3c09eb3..78b54dc 100644
--- a/staging/testsuite/src/tes... | true | true | protected void checkGLevelMD( final PreparedVerifier verifier )
{
final Content content = getNexusClient().getSubsystem( Content.class );
final File target = util.createTempFile();
FileInputStream fis = null;
try
{
content.download(
Location.re... | protected void checkGLevelMD( final PreparedVerifier verifier )
{
final Content content = getNexusClient().getSubsystem( Content.class );
final File target = util.createTempFile();
FileInputStream fis = null;
try
{
content.download(
Location.re... |
diff --git a/common/items/recipe/RecipePocketLinkUpgrade.java b/common/items/recipe/RecipePocketLinkUpgrade.java
index 9360560..017227a 100644
--- a/common/items/recipe/RecipePocketLinkUpgrade.java
+++ b/common/items/recipe/RecipePocketLinkUpgrade.java
@@ -1,99 +1,99 @@
package fuj1n.globalLinkMod.common.items.recipe;... | true | true | public boolean matches(InventoryCrafting inventorycrafting, World world) {
ItemStack[] stacks = new ItemStack[inventorycrafting.getSizeInventory()];
for(int i = 0; i < stacks.length; i++){
stacks[i] = inventorycrafting.getStackInSlot(i);
}
for(int i = 0; i < stacks.length || stacks.length == 0; i++){
if(... | public boolean matches(InventoryCrafting inventorycrafting, World world) {
ItemStack[] stacks = new ItemStack[inventorycrafting.getSizeInventory()];
for(int i = 0; i < stacks.length; i++){
stacks[i] = inventorycrafting.getStackInSlot(i);
}
for(int i = 0; i < stacks.length || stacks.length == 0; i++){
if(... |
diff --git a/javasvn/src/org/tmatesoft/svn/core/internal/io/svn/SVNRepositoryImpl.java b/javasvn/src/org/tmatesoft/svn/core/internal/io/svn/SVNRepositoryImpl.java
index e5bfd034f..f78dea24f 100644
--- a/javasvn/src/org/tmatesoft/svn/core/internal/io/svn/SVNRepositoryImpl.java
+++ b/javasvn/src/org/tmatesoft/svn/core/in... | false | true | public int getFileRevisions(String path, long sRevision, long eRevision, ISVNFileRevisionHandler handler) throws SVNException {
Long srev = getRevisionObject(sRevision);
Long erev = getRevisionObject(eRevision);
int count = 0;
try {
openConnection();
Object[] ... | public int getFileRevisions(String path, long sRevision, long eRevision, ISVNFileRevisionHandler handler) throws SVNException {
Long srev = getRevisionObject(sRevision);
Long erev = getRevisionObject(eRevision);
int count = 0;
try {
openConnection();
Object[] ... |
diff --git a/src/main/java/edu/msergey/jalg/exercises/ch3/ex41/DoubleLinkedList.java b/src/main/java/edu/msergey/jalg/exercises/ch3/ex41/DoubleLinkedList.java
index 28b85d2..64361cc 100644
--- a/src/main/java/edu/msergey/jalg/exercises/ch3/ex41/DoubleLinkedList.java
+++ b/src/main/java/edu/msergey/jalg/exercises/ch3/ex... | true | true | public DoubleLinkedList<E> removeAndCopy(IRemoveChecker removeChecker) {
DoubleLinkedList<E> newList = new DoubleLinkedList<E>();
if (head != tail) {
for (Node<E> current = head.next; current != tail; current = current.next) {
if (removeChecker.needToRemove(current)) {
... | public DoubleLinkedList<E> removeAndCopy(IRemoveChecker<E> removeChecker) {
DoubleLinkedList<E> newList = new DoubleLinkedList<E>();
if (head != tail) {
for (Node<E> current = head.next; current != tail; current = current.next) {
if (removeChecker.needToRemove(current)) ... |
diff --git a/src/main/java/com/xebialabs/overthere/cifs/winrm/connector/Kb5HttpConnector.java b/src/main/java/com/xebialabs/overthere/cifs/winrm/connector/Kb5HttpConnector.java
index eaaafa7..67d596c 100644
--- a/src/main/java/com/xebialabs/overthere/cifs/winrm/connector/Kb5HttpConnector.java
+++ b/src/main/java/com/xe... | true | true | private Document int_sendMessage(final Document requestDocument, final SoapAction soapAction) {
final DefaultHttpClient client = new DefaultHttpClient();
try {
configureHttpClient(client);
final HttpContext context = new BasicHttpContext();
final HttpPost request = new HttpPost(getTargetURL().toURI());
... | private Document int_sendMessage(final Document requestDocument, final SoapAction soapAction) {
final DefaultHttpClient client = new DefaultHttpClient();
try {
configureHttpClient(client);
final HttpContext context = new BasicHttpContext();
final HttpPost request = new HttpPost(getTargetURL().toURI());
... |
diff --git a/StoreIntegrationTests/src/main/java/com/nearinfinity/honeycomb/mysql/HandleProxyIntegrationTest.java b/StoreIntegrationTests/src/main/java/com/nearinfinity/honeycomb/mysql/HandleProxyIntegrationTest.java
index f3a33199..818fa4bd 100644
--- a/StoreIntegrationTests/src/main/java/com/nearinfinity/honeycomb/my... | true | true | public static void testSuccessfulRename() throws Exception {
final String newTableName = "test2";
HandlerProxy proxy = factory.createHandlerProxy();
TableSchema schema = getTableSchema();
proxy.createTable("hbase", "test", Util.serializeTableSchema(schema));
proxy.renameTabl... | public static void testSuccessfulRename() throws Exception {
final String newTableName = "test2";
HandlerProxy proxy = factory.createHandlerProxy();
TableSchema schema = getTableSchema();
proxy.createTable("hbase", "test", "hbase", Util.serializeTableSchema(schema), 0);
prox... |
diff --git a/Evil.java b/Evil.java
index c4a0555..fb33c63 100644
--- a/Evil.java
+++ b/Evil.java
@@ -1,226 +1,228 @@
import org.antlr.runtime.*;
import org.antlr.runtime.tree.*;
import org.antlr.stringtemplate.*;
import java.io.*;
import java.util.*;
public class Evil
{
public static void main(String[] a... | false | true | public static void main(String[] args)
{
parseParameters(args);
CommonTokenStream tokens = new CommonTokenStream(createLexer());
EvilParser parser = new EvilParser(tokens);
EvilParser.program_return ret = null;
try
{
ret = parser.program();
}
catch ... | public static void main(String[] args)
{
parseParameters(args);
CommonTokenStream tokens = new CommonTokenStream(createLexer());
EvilParser parser = new EvilParser(tokens);
EvilParser.program_return ret = null;
try
{
ret = parser.program();
}
catch ... |
diff --git a/src/com/dmdirc/updater/Update.java b/src/com/dmdirc/updater/Update.java
index 2eb217fa2..219d444b0 100644
--- a/src/com/dmdirc/updater/Update.java
+++ b/src/com/dmdirc/updater/Update.java
@@ -1,221 +1,221 @@
/*
* Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
*
* Permission is... | true | true | public void doUpdate() {
new Thread(new Runnable() {
/** {@inheritDoc} */
@Override
public void run() {
final String path = Main.getConfigDir() + "update.tmp."
+ Math.round(Math.random() * 1000);
setStatus(UpdateSt... | public void doUpdate() {
new Thread(new Runnable() {
/** {@inheritDoc} */
@Override
public void run() {
final String path = Main.getConfigDir() + "update.tmp."
+ Math.round(Math.random() * 1000);
setStatus(UpdateSt... |
diff --git a/src/main/java/fi/csc/microarray/client/visualisation/methods/HierarchicalClustering.java b/src/main/java/fi/csc/microarray/client/visualisation/methods/HierarchicalClustering.java
index 70d27e905..7a3e512e2 100644
--- a/src/main/java/fi/csc/microarray/client/visualisation/methods/HierarchicalClustering.jav... | false | true | public JComponent getVisualisation(DataBean data) throws MicroarrayException {
try {
// First find a dataset to which user's selections are connected to.
// There is no point to connect selections to cluster tree data because it's not possible to visualise it
// with other visualisation methods. The paren... | public JComponent getVisualisation(DataBean data) throws MicroarrayException {
try {
// First find a dataset to which user's selections are connected to.
// There is no point to connect selections to cluster tree data because it's not possible to visualise it
// with other visualisation methods. The paren... |
diff --git a/src/main/java/org/tongji/mahoutplatform/recommender/evaluation/AbstractKFoldCrossRecommenderEvaluator.java b/src/main/java/org/tongji/mahoutplatform/recommender/evaluation/AbstractKFoldCrossRecommenderEvaluator.java
index ae1d5a1..7771236 100644
--- a/src/main/java/org/tongji/mahoutplatform/recommender/eva... | true | true | public double evaluate(RecommenderBuilder recommenderBuilder,
DataModelBuilder dataModelBuilder, DataModel dataModel, int kFold,
double evaluationPercentage) throws TasteException {
Preconditions.checkNotNull(recommenderBuilder);
Preconditions.checkNotNull(dataModel);
Preconditions.checkArgument(kFol... | public double evaluate(RecommenderBuilder recommenderBuilder,
DataModelBuilder dataModelBuilder, DataModel dataModel, int kFold,
double evaluationPercentage) throws TasteException {
Preconditions.checkNotNull(recommenderBuilder);
Preconditions.checkNotNull(dataModel);
Preconditions.checkArgument(kFol... |
diff --git a/src/org/protege/editor/owl/ui/metrics/DLNameKeyPanel.java b/src/org/protege/editor/owl/ui/metrics/DLNameKeyPanel.java
index febab9f0..c0743faa 100644
--- a/src/org/protege/editor/owl/ui/metrics/DLNameKeyPanel.java
+++ b/src/org/protege/editor/owl/ui/metrics/DLNameKeyPanel.java
@@ -1,155 +1,155 @@
package ... | true | true | public DLNameKeyPanel() {
List<NameObject> box = new ArrayList<NameObject>();
addExplanation(OWLIcons.getIcon("AL.png"),
"Attributive language. This is the base langauge which allows:" + "<ul><li>Atomic negation (negation of concepts that do not appear on the left hand side o... | public DLNameKeyPanel() {
List<NameObject> box = new ArrayList<NameObject>();
addExplanation(OWLIcons.getIcon("AL.png"),
"Attributive language. This is the base language which allows:" + "<ul><li>Atomic negation (negation of concepts that do not appear on the left hand side o... |
diff --git a/core/src/net/sf/openrocket/unit/Unit.java b/core/src/net/sf/openrocket/unit/Unit.java
index a0522c2b..75931d05 100644
--- a/core/src/net/sf/openrocket/unit/Unit.java
+++ b/core/src/net/sf/openrocket/unit/Unit.java
@@ -1,209 +1,209 @@
package net.sf.openrocket.unit;
import java.text.DecimalFormat;
im... | true | true | public String toString(double value) {
double val = toUnit(value);
if (Math.abs(val) > 1E6) {
return expFormat.format(val);
}
if (Math.abs(val) >= 100) {
return intFormat.format(val);
}
if (Math.abs(val) <= 0.0005) {
return "0";
}
val = roundForDecimalFormat(val);
// Check for approxim... | public String toString(double value) {
double val = toUnit(value);
if (Math.abs(val) > 1E6) {
return expFormat.format(val);
}
if (Math.abs(val) >= 100) {
return intFormat.format(val);
}
if (Math.abs(val) <= 0.0005) {
return "0";
}
val = roundForDecimalFormat(val);
// Check for approxim... |
diff --git a/SARA/src/sara/GetHighlightServlet.java b/SARA/src/sara/GetHighlightServlet.java
index 301c2a0..eaaf494 100644
--- a/SARA/src/sara/GetHighlightServlet.java
+++ b/SARA/src/sara/GetHighlightServlet.java
@@ -1,22 +1,22 @@
package sara;
import sara.SARADocument;
import sara.Highlight;
import sara.Selection;... | true | true | public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
if(req.getParameter("document") != null) {
HighlightService hs = new HighlightService();
Iterator<Highlight> highlights = hs.listHighlights();
while(highlights.hasNext()) {
out.print(highligh... | public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
if(req.getParameter("document") != null) {
HighlightService hs = new HighlightService();
Iterator<Highlight> highlights = hs.listHighlights();
while(highlights.hasNext()) {
out.print(highligh... |
diff --git a/src/brutes/server/db/DatasManager.java b/src/brutes/server/db/DatasManager.java
index 47b84bb..789ec5c 100644
--- a/src/brutes/server/db/DatasManager.java
+++ b/src/brutes/server/db/DatasManager.java
@@ -1,187 +1,187 @@
package brutes.server.db;
import brutes.server.ui;
import java.io.IOException;
im... | true | true | public static void populate() throws IOException {
try {
Connection c = DatasManager.getInstance();
c.createStatement().executeUpdate("CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY AUTOINCREMENT, pseudo TEXT, password TEXT, token TEXT, date_created DATETIME DEFAULT current... | public static void populate() throws IOException {
try {
Connection c = DatasManager.getInstance();
c.createStatement().executeUpdate("CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY AUTOINCREMENT, pseudo TEXT, password TEXT, token TEXT, date_created DATETIME DEFAULT current... |
diff --git a/src/com/kkbox/toolkit/api/KKAPIRequest.java b/src/com/kkbox/toolkit/api/KKAPIRequest.java
index fa3cc94..51ad8e2 100644
--- a/src/com/kkbox/toolkit/api/KKAPIRequest.java
+++ b/src/com/kkbox/toolkit/api/KKAPIRequest.java
@@ -1,345 +1,346 @@
/* Copyright (C) 2013 KKBOX Inc.
*
* Licensed under the Apache... | true | true | public Void doInBackground(Object... params) {
int readLength;
final ByteArrayOutputStream data = new ByteArrayOutputStream();
final byte[] buffer = new byte[128];
listener = (KKAPIRequestListener) params[0];
int retryTimes = 0;
File cacheFile = null;
ConnectivityManager connectivityManager = null;
if ... | public Void doInBackground(Object... params) {
int readLength;
final ByteArrayOutputStream data = new ByteArrayOutputStream();
final byte[] buffer = new byte[128];
listener = (KKAPIRequestListener) params[0];
int retryTimes = 0;
File cacheFile = null;
ConnectivityManager connectivityManager = null;
if ... |
diff --git a/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/FeedServlet.java b/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/FeedServlet.java
index dc22d6211..c8e0b6c95 100644
--- a/dspace-jspui/src/main/java/org/dspace/app/webui/servlet/FeedServlet.java
+++ b/dspace-jspui/src/main/java/org/dspace/ap... | true | true | private Channel generateFeed(Context context, DSpaceObject dso)
throws IOException, SQLException
{
try
{
// container-level elements
String dspaceUrl = ConfigurationManager.getProperty("dspace.url");
String type = null;
String description = null;
String title = n... | private Channel generateFeed(Context context, DSpaceObject dso)
throws IOException, SQLException
{
try
{
// container-level elements
String dspaceUrl = ConfigurationManager.getProperty("dspace.url");
String type = null;
String description = null;
String title = n... |
diff --git a/harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/geoPREST/Aligner.java b/harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/geoPREST/Aligner.java
index 55083a67a0..b821ab1b83 100644
--- a/harvesters/src/main/java/org/fao/geonet/kernel/harvest/harvester/geoPREST/Aligner.java
++... | true | true | private Element retrieveMetadata(String uuid)
{
request.clearParams();
//request.addParam("id","{"+uuid+"}");
request.addParam("id",uuid);
try
{
if (log.isDebugEnabled())
log.debug("Getting record from : "+ request.getHost() +" (uuid:"+ uuid +")");
Element response = null;
try {
... | private Element retrieveMetadata(String uuid)
{
request.clearParams();
//request.addParam("id","{"+uuid+"}");
request.addParam("id",uuid);
try
{
if (log.isDebugEnabled())
log.debug("Getting record from : "+ request.getHost() +" (uuid:"+ uuid +")");
Element response = null;
try {
... |
diff --git a/src/main/java/de/minestar/FifthElement/commands/warp/cmdWarpList.java b/src/main/java/de/minestar/FifthElement/commands/warp/cmdWarpList.java
index fc87e17..d51664e 100644
--- a/src/main/java/de/minestar/FifthElement/commands/warp/cmdWarpList.java
+++ b/src/main/java/de/minestar/FifthElement/commands/warp/... | true | true | public void execute(String[] args, Player player) {
List<WarpFilter> filterList = new ArrayList<WarpFilter>();
int pageNumber = 1;
filterList.add(new UseFilter(player));
// APPLY FILTER
if (args.length > 0) {
for (int i = 0; i < args.length; ++i) {
... | public void execute(String[] args, Player player) {
List<WarpFilter> filterList = new ArrayList<WarpFilter>();
int pageNumber = 1;
filterList.add(new UseFilter(player));
// APPLY FILTER
if (args.length > 0) {
for (int i = 0; i < args.length; ++i) {
... |
diff --git a/fontes/GACWeb/src/br/com/sw2/gac/bean/ParametrosBean.java b/fontes/GACWeb/src/br/com/sw2/gac/bean/ParametrosBean.java
index 2b9cfdc..4183333 100644
--- a/fontes/GACWeb/src/br/com/sw2/gac/bean/ParametrosBean.java
+++ b/fontes/GACWeb/src/br/com/sw2/gac/bean/ParametrosBean.java
@@ -1,78 +1,80 @@
package br.c... | true | true | public void salvar(ActionEvent event) {
this.getLogger().debug("***** Iniciando método salvar *****");
this.getLogger().debug("Dias bem estar: " + this.parametro.getDiasBemEstar());
this.getLogger().debug("Dias dados: " + this.parametro.getDiasDados());
this.getLogger().debug("Total ... | public void salvar(ActionEvent event) {
this.getLogger().debug("***** Iniciando método salvar *****");
this.getLogger().debug("Dias bem estar: " + this.parametro.getDiasBemEstar());
this.getLogger().debug("Dias dados: " + this.parametro.getDiasDados());
this.getLogger().debug("Total ... |
diff --git a/core/src/test/java/quickfix/util/ExpectedTestFailure.java b/core/src/test/java/quickfix/util/ExpectedTestFailure.java
index 985d605..f6dbbaf 100644
--- a/core/src/test/java/quickfix/util/ExpectedTestFailure.java
+++ b/core/src/test/java/quickfix/util/ExpectedTestFailure.java
@@ -1,79 +1,79 @@
package quic... | true | true | protected void validateError(Throwable inError)
{
if ((mThrowable!=null) &&
(!mThrowable.isAssignableFrom(inError.getClass()))) {
Assert.fail("Thrown throwable was of the wrong class: "+
inError.getClass()+": "+inError);
}
if ((mContains!=n... | protected void validateError(Throwable inError)
{
if ((mThrowable!=null) &&
(!mThrowable.isAssignableFrom(inError.getClass()))) {
Assert.fail("Thrown throwable was of the wrong class: "+
inError.getClass()+": "+inError);
}
if ((mContains!=n... |
diff --git a/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/ir/util/EcoreHelper.java b/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/ir/util/EcoreHelper.java
index 43fb24a36..7b5822b8f 100644
--- a/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/ir/util/EcoreHelper.java
+++ b/eclipse/plugins/net.sf.orcc.core/src/... | false | true | public static boolean addInstBeforeExpr(Expression expression,
Instruction instruction, boolean usePreviousJoinNode) {
Instruction instContainer = EcoreHelper.getContainerOfType(expression,
Instruction.class);
Node nodeContainer = EcoreHelper.getContainerOfType(expression,
Node.class);
if (instContain... | public static boolean addInstBeforeExpr(Expression expression,
Instruction instruction, boolean usePreviousJoinNode) {
Instruction instContainer = EcoreHelper.getContainerOfType(expression,
Instruction.class);
Node nodeContainer = EcoreHelper.getContainerOfType(expression,
Node.class);
if (instContain... |
diff --git a/mes-plugins/mes-plugins-material-flow/src/main/java/com/qcadoo/mes/materialFlow/MaterialFlowService.java b/mes-plugins/mes-plugins-material-flow/src/main/java/com/qcadoo/mes/materialFlow/MaterialFlowService.java
index 64fc5f652a..e03dc8ad16 100644
--- a/mes-plugins/mes-plugins-material-flow/src/main/java/c... | false | true | public BigDecimal calculateShouldBeInStockArea(final String stockAreas, final String product, final String forDate) {
BigDecimal countProductIn = BigDecimal.ZERO;
BigDecimal countProductOut = BigDecimal.ZERO;
BigDecimal quantity = BigDecimal.ZERO;
BigDecimal countProduct = BigDecima... | public BigDecimal calculateShouldBeInStockArea(final String stockAreas, final String product, final String forDate) {
BigDecimal countProductIn = BigDecimal.ZERO;
BigDecimal countProductOut = BigDecimal.ZERO;
BigDecimal countProduct = BigDecimal.ZERO;
Date lastCorrectionDate = null;... |
diff --git a/fog.routing.hrm/src/de/tuilmenau/ics/fog/ui/eclipse/commands/hierarchical/LinkToNode.java b/fog.routing.hrm/src/de/tuilmenau/ics/fog/ui/eclipse/commands/hierarchical/LinkToNode.java
index f618325c..05cc64ce 100644
--- a/fog.routing.hrm/src/de/tuilmenau/ics/fog/ui/eclipse/commands/hierarchical/LinkToNode.ja... | true | true | private void showNodeDialog()
{
// determine how many nodes exist in the network
int tAsNodeCount = mSourceNode.getAS().getNodelist().keySet().size();
// allocate structure for storing names of possible destination nodes
LinkedList<String> tPossibleNodeNames = new LinkedList<String>();
// determine name... | private void showNodeDialog()
{
// determine how many nodes exist in the network
int tAsNodeCount = mSourceNode.getAS().getNodelist().keySet().size();
// allocate structure for storing names of possible destination nodes
LinkedList<String> tPossibleNodeNames = new LinkedList<String>();
// determine name... |
diff --git a/src/core/TsdbQuery.java b/src/core/TsdbQuery.java
index d8a79d5..07f4c83 100644
--- a/src/core/TsdbQuery.java
+++ b/src/core/TsdbQuery.java
@@ -1,585 +1,587 @@
// This file is part of OpenTSDB.
// Copyright (C) 2010 StumbleUpon, Inc.
//
// This program is free software: you can redistribute it and/or ... | true | true | private DataPoints[] groupByAndAggregate(final TreeMap<byte[], Span> spans) {
if (spans == null || spans.size() <= 0) {
return NO_RESULT;
}
if (group_bys == null) {
// We haven't been asked to find groups, so let's put all the spans
// together in the same group.
final SpanGroup gr... | private DataPoints[] groupByAndAggregate(final TreeMap<byte[], Span> spans) {
if (spans == null || spans.size() <= 0) {
return NO_RESULT;
}
if (group_bys == null) {
// We haven't been asked to find groups, so let's put all the spans
// together in the same group.
final SpanGroup gr... |
diff --git a/tests/org.eclipse.m2m.atl.tests/src/org/eclipse/m2m/atl/tests/util/WikiOutputter.java b/tests/org.eclipse.m2m.atl.tests/src/org/eclipse/m2m/atl/tests/util/WikiOutputter.java
index 8f494469..3dd4efcf 100644
--- a/tests/org.eclipse.m2m.atl.tests/src/org/eclipse/m2m/atl/tests/util/WikiOutputter.java
+++ b/tes... | true | true | public static void main(String[] args) {
try {
Map vmResults = initResults(vmDataPath);
Map emfVMResults = initResults(emfvmDataPath);
FileWriter fw = new FileWriter(wikiPath);
fw.write(getFragment(headerPath));
Properties tests = new Properties();
FileInputStream fis = new FileInputStream(new Fi... | public static void main(String[] args) {
try {
Map vmResults = initResults(vmDataPath);
Map emfVMResults = initResults(emfvmDataPath);
FileWriter fw = new FileWriter(wikiPath);
fw.write(getFragment(headerPath));
Properties tests = new Properties();
FileInputStream fis = new FileInputStream(new Fi... |
diff --git a/src/game/Outcome.java b/src/game/Outcome.java
index b4ce457..29768b9 100644
--- a/src/game/Outcome.java
+++ b/src/game/Outcome.java
@@ -1,93 +1,92 @@
package game;
/**
*
* @author wdencker
*
*/
// Outcome modifies the person after receiving a choice.
public class Outcome {
private boole... | true | true | public void updateAttributes(Person p) {
p.setAlive(alive);
int newStat = p.getCharisma() + charisma;
if (newStat <= 0) {
p.setCharisma(0);
} else {
p.setCharisma(newStat);
}
newStat = p.getIntelligence() + intelligence;
if (newStat <= 0) {
p.setIntelligence(0);
System.err.println("here");
... | public void updateAttributes(Person p) {
p.setAlive(alive);
int newStat = p.getCharisma() + charisma;
if (newStat <= 0) {
p.setCharisma(0);
} else {
p.setCharisma(newStat);
}
newStat = p.getIntelligence() + intelligence;
if (newStat <= 0) {
p.setIntelligence(0);
} else {
p.setIntelligence(n... |
diff --git a/src/keepcalm/mods/bukkit/asm/BukkitASMLoader.java b/src/keepcalm/mods/bukkit/asm/BukkitASMLoader.java
index e35d723..79c1408 100644
--- a/src/keepcalm/mods/bukkit/asm/BukkitASMLoader.java
+++ b/src/keepcalm/mods/bukkit/asm/BukkitASMLoader.java
@@ -1,29 +1,29 @@
package keepcalm.mods.bukkit.asm;
import ... | true | true | public String[] getLibraryRequestClass() {
return new String[] {"keepcalm.mods.bukkit.asm.libraryHandlers.BukkitCommonsLangDownload", "keepcalm.mods.bukkit.asm.libraryHandlers.BukkitEbeanDownload", "keepcalm.mods.bukkit.asm.libraryHandlers.BukkitGSonDownload", "keepcalm.mods.bukkit.asm.libraryHandlers.BukkitSQLiteDo... | public String[] getLibraryRequestClass() {
return new String[] {"keepcalm.mods.bukkit.asm.libraryHandlers.BukkitCommonsLangDownload", "keepcalm.mods.bukkit.asm.libraryHandlers.BukkitEbeanDownload", "keepcalm.mods.bukkit.asm.libraryHandlers.BukkitGSonDownload", "keepcalm.mods.bukkit.asm.libraryHandlers.BukkitSQLiteDo... |
diff --git a/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeRootDSERunnable.java b/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/InitializeRootDSERunnable.java
index b4051fc3a..633ac3605 100644
--- a/ldapbrowser-core/src/main/java/org/apache... | true | true | public static synchronized void loadRootDSE( IBrowserConnection browserConnection, StudioProgressMonitor monitor )
{
// clear old children
InitializeChildrenRunnable.clearCaches( browserConnection.getRootDSE(), true );
// delete old attributes
IAttribute[] oldAttributes = browse... | public static synchronized void loadRootDSE( IBrowserConnection browserConnection, StudioProgressMonitor monitor )
{
// clear old children
InitializeChildrenRunnable.clearCaches( browserConnection.getRootDSE(), true );
// delete old attributes
IAttribute[] oldAttributes = browse... |
diff --git a/src/me/ellbristow/ChestBank/ChestBank.java b/src/me/ellbristow/ChestBank/ChestBank.java
index 8b5c142..f04986a 100644
--- a/src/me/ellbristow/ChestBank/ChestBank.java
+++ b/src/me/ellbristow/ChestBank/ChestBank.java
@@ -1,668 +1,675 @@
package me.ellbristow.ChestBank;
import java.io.File;
import java.... | false | true | public boolean onCommand (CommandSender sender, Command cmd, String commandLabel, String[] args) {
if (!(sender instanceof Player)) {
sender.sendMessage("Sorry! The console can't use this command!");
return true;
}
Player player = (Player) sender;
if (... | public boolean onCommand (CommandSender sender, Command cmd, String commandLabel, String[] args) {
if (!(sender instanceof Player)) {
sender.sendMessage("Sorry! The console can't use this command!");
return true;
}
Player player = (Player) sender;
if (... |
diff --git a/src/com/kurento/kas/mscontrol/join/VideoJoinableStreamImpl.java b/src/com/kurento/kas/mscontrol/join/VideoJoinableStreamImpl.java
index 4506885..5ba875f 100644
--- a/src/com/kurento/kas/mscontrol/join/VideoJoinableStreamImpl.java
+++ b/src/com/kurento/kas/mscontrol/join/VideoJoinableStreamImpl.java
@@ -1,1... | false | true | public VideoJoinableStreamImpl(JoinableContainer container,
StreamType type, SessionSpec remoteSessionSpec,
SessionSpec localSessionSpec, Integer framesQueueSize) {
super(container, type);
this.localSessionSpec = localSessionSpec;
if (framesQueueSize != null && framesQueueSize > QUEUE_SIZE)
QUEUE_SIZE =... | public VideoJoinableStreamImpl(JoinableContainer container,
StreamType type, SessionSpec remoteSessionSpec,
SessionSpec localSessionSpec, Integer framesQueueSize) {
super(container, type);
this.localSessionSpec = localSessionSpec;
if (framesQueueSize != null && framesQueueSize > QUEUE_SIZE)
QUEUE_SIZE =... |
diff --git a/proxy/src/main/java/org/fedoraproject/candlepin/policy/js/entitlement/EntitlementRules.java b/proxy/src/main/java/org/fedoraproject/candlepin/policy/js/entitlement/EntitlementRules.java
index 25c77d8f4..3a43ec132 100644
--- a/proxy/src/main/java/org/fedoraproject/candlepin/policy/js/entitlement/Entitlement... | false | true | public List<Pool> selectBestPools(Consumer consumer, String[] productIds,
List<Pool> pools) {
Invocable inv = (Invocable) jsEngine;
ReadOnlyProductCache productCache = new ReadOnlyProductCache(prodAdapter);
log.info("Selecting best entitlement pool for product: " + Arrays.t... | public List<Pool> selectBestPools(Consumer consumer, String[] productIds,
List<Pool> pools) {
Invocable inv = (Invocable) jsEngine;
ReadOnlyProductCache productCache = new ReadOnlyProductCache(prodAdapter);
log.info("Selecting best entitlement pool for product: " +
... |
diff --git a/src/main/java/de/cosmocode/palava/ipc/session/infinispan/SessionProvider.java b/src/main/java/de/cosmocode/palava/ipc/session/infinispan/SessionProvider.java
index 1fe6d18..bb79263 100644
--- a/src/main/java/de/cosmocode/palava/ipc/session/infinispan/SessionProvider.java
+++ b/src/main/java/de/cosmocode/pa... | true | true | public SessionProvider(
Registry registry,
MBeanService mBeanService,
@SessionCache Cache<?, ?> cache,
@BackgroundScheduler ScheduledExecutorService scheduler,
@Named(IpcSessionConfig.EXPIRATION_TIME) long time,
@Named(IpcSessionConfig.EXPIRATION_TIME_UNIT) TimeUnit t... | public SessionProvider(
Registry registry,
MBeanService mBeanService,
// don't use generics here, will break injection
@SuppressWarnings("rawtypes") @SessionCache Cache cache,
@BackgroundScheduler ScheduledExecutorService scheduler,
@Named(IpcSessionConfig.EXPIRATION_... |
diff --git a/src/java/org/infoglue/cms/applications/managementtool/actions/DeleteRepositoryAction.java b/src/java/org/infoglue/cms/applications/managementtool/actions/DeleteRepositoryAction.java
index 8fb9deb2c..2d164847d 100755
--- a/src/java/org/infoglue/cms/applications/managementtool/actions/DeleteRepositoryAction.... | true | true | protected String doExecute() throws Exception
{
this.repositoryVO.setRepositoryId(this.getRepositoryId());
RepositoryController.getController().delete(this.repositoryVO, this.getInfoGluePrincipal().getName());
return "success";
}
| protected String doExecute() throws ConstraintException, Exception
{
this.repositoryVO.setRepositoryId(this.getRepositoryId());
RepositoryController.getController().delete(this.repositoryVO, this.getInfoGluePrincipal().getName());
return "success";
}
|
diff --git a/WEB-INF/src/edu/wustl/query/action/WorkflowAjaxHandlerAction.java b/WEB-INF/src/edu/wustl/query/action/WorkflowAjaxHandlerAction.java
index 4f6fe8b3..1aff450c 100644
--- a/WEB-INF/src/edu/wustl/query/action/WorkflowAjaxHandlerAction.java
+++ b/WEB-INF/src/edu/wustl/query/action/WorkflowAjaxHandlerAction.ja... | false | true | public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception
{
WorkflowBizLogic workflowBizLogic=new WorkflowBizLogic();
//for saving workflow when click execute
// Get the Query information
Long queryId=(long)-1;
Stri... | public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception
{
WorkflowBizLogic workflowBizLogic=new WorkflowBizLogic();
//for saving workflow when click execute
// Get the Query information
Long queryId=(long)-1;
Stri... |
diff --git a/xutils/src/main/java/zcu/xutil/misc/ShiroFilterFactory.java b/xutils/src/main/java/zcu/xutil/misc/ShiroFilterFactory.java
index 021495d..eddf3d2 100644
--- a/xutils/src/main/java/zcu/xutil/misc/ShiroFilterFactory.java
+++ b/xutils/src/main/java/zcu/xutil/misc/ShiroFilterFactory.java
@@ -1,140 +1,140 @@
/*... | true | true | private void applyGlobalPropertiesIfNecessary(Filter filter) {
if (StringUtils.hasText(logoutUrl) && filter instanceof LogoutFilter) {
LogoutFilter logout = (LogoutFilter) filter;
if (LogoutFilter.DEFAULT_REDIRECT_URL.equals(logout.getRedirectUrl()))
logout.setRedirectUrl(logoutUrl);
}
if (StringUtils.... | private void applyGlobalPropertiesIfNecessary(Filter filter) {
if (StringUtils.hasText(logoutUrl) && filter instanceof LogoutFilter) {
LogoutFilter logout = (LogoutFilter) filter;
if (LogoutFilter.DEFAULT_REDIRECT_URL.equals(logout.getRedirectUrl()))
logout.setRedirectUrl(logoutUrl);
}
if (StringUtils.... |
diff --git a/tests/src/java/org/apache/log4j/util/EnhancedJunitTestRunnerFilter.java b/tests/src/java/org/apache/log4j/util/EnhancedJunitTestRunnerFilter.java
index d3c9cb0f..af85c3f5 100644
--- a/tests/src/java/org/apache/log4j/util/EnhancedJunitTestRunnerFilter.java
+++ b/tests/src/java/org/apache/log4j/util/Enhanced... | true | true | public String filter(String in) {
if (in == null) {
return null;
}
//
// restore the one instance of Method.invoke that we actually want
//
if (in.indexOf("at junit.framework.TestCase.runTest") != -1) {
return "\tat java.lang.reflect.Method.invoke(X)\n" + in;
}
f... | public String filter(String in) {
if (in == null) {
return null;
}
//
// restore the one instance of Method.invoke that we actually want
//
if (in.indexOf("at junit.framework.TestCase.runTest") != -1) {
return "\tat java.lang.reflect.Method.invoke(X)\n\t" + in.trim();
... |
diff --git a/src/FE_SRC_COMMON/com/ForgeEssentials/core/misc/UnfriendlyItemList.java b/src/FE_SRC_COMMON/com/ForgeEssentials/core/misc/UnfriendlyItemList.java
index fd2467b12..9c30182e4 100644
--- a/src/FE_SRC_COMMON/com/ForgeEssentials/core/misc/UnfriendlyItemList.java
+++ b/src/FE_SRC_COMMON/com/ForgeEssentials/core/... | true | true | public static void modStep()
{
HashMap<Integer, String> gameMap = new HashMap<Integer, String>();
map.clear();
// populate from GameData
{
NBTTagList list = new NBTTagList();
GameData.writeItemData(list);
ItemData data;
String modid;
for (int i = 0; i < list.tagCount(); i++)
{
data = n... | public static void modStep()
{
HashMap<Integer, String> gameMap = new HashMap<Integer, String>();
map.clear();
// populate from GameData
{
NBTTagList list = new NBTTagList();
GameData.writeItemData(list);
ItemData data;
String modid;
for (int i = 0; i < list.tagCount(); i++)
{
data = n... |
diff --git a/bundles/DataLayer/src/test/java/org/paxle/data/db/impl/CommandDBTest.java b/bundles/DataLayer/src/test/java/org/paxle/data/db/impl/CommandDBTest.java
index 19173089..cb9df59a 100644
--- a/bundles/DataLayer/src/test/java/org/paxle/data/db/impl/CommandDBTest.java
+++ b/bundles/DataLayer/src/test/java/org/pax... | true | true | public void _testVeryLargeURLSet() throws MalformedURLException, InterruptedException {
final int MAX = 1000000;
final int chunkSize = 1000;
System.setProperty("derby.storage.pageCacheSize", "2000"); // default 1000
//System.setProperty("derby.storage.pageSize", "32768"); // default 4096 bytes
... | public void _testVeryLargeURLSet() throws MalformedURLException, InterruptedException {
final int MAX = 1000000;
final int chunkSize = 1000;
System.setProperty("derby.storage.pageCacheSize", "2000"); // default 1000
//System.setProperty("derby.storage.pageSize", "32768"); // default 4096 bytes
... |
diff --git a/src/main/java/org/atlasapi/query/v2/PeopleController.java b/src/main/java/org/atlasapi/query/v2/PeopleController.java
index e592566bc..c1323c733 100644
--- a/src/main/java/org/atlasapi/query/v2/PeopleController.java
+++ b/src/main/java/org/atlasapi/query/v2/PeopleController.java
@@ -1,108 +1,108 @@
packag... | true | true | public void content(HttpServletRequest request, HttpServletResponse response) throws IOException {
try {
ApplicationConfiguration config = possibleAppConfig(request)
.valueOrDefault(ApplicationConfiguration.defaultConfiguration());
String uri = request.getParamet... | public void content(HttpServletRequest request, HttpServletResponse response) throws IOException {
try {
ApplicationConfiguration config = possibleAppConfig(request)
.valueOrDefault(ApplicationConfiguration.defaultConfiguration());
String uri = request.getParamet... |
diff --git a/src/de/bsd/zwitscher/TweetDB.java b/src/de/bsd/zwitscher/TweetDB.java
index ab156ff..a1b67d4 100644
--- a/src/de/bsd/zwitscher/TweetDB.java
+++ b/src/de/bsd/zwitscher/TweetDB.java
@@ -1,450 +1,450 @@
package de.bsd.zwitscher;
import java.lang.String;
import java.util.ArrayList;
import java.util.HashM... | true | true | long getLastRead(int list_id) {
SQLiteDatabase db = tdHelper.getReadableDatabase();
Cursor c = db.query(TABLE_LAST_READ, new String[] {"last_read_id"}, "list_id = ? AND " + ACCOUNT_ID_IS, new String[] {String.valueOf(list_id),account}, null, null, null);
Long ret;
if (c.getCount()==0)
ret = -1L;
else {
... | long getLastRead(int list_id) {
SQLiteDatabase db = tdHelper.getReadableDatabase();
Cursor c = db.query(TABLE_LAST_READ, new String[] {"last_read_id"}, "list_id = ? AND " + ACCOUNT_ID_IS, new String[] {String.valueOf(list_id),account}, null, null, null);
Long ret;
if (c.getCount()==0)
ret = -1L;
else {
... |
diff --git a/src/com/android/deskclock/Alarms.java b/src/com/android/deskclock/Alarms.java
index 1c44bdadd..7bb1ec9e9 100644
--- a/src/com/android/deskclock/Alarms.java
+++ b/src/com/android/deskclock/Alarms.java
@@ -1,630 +1,630 @@
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the A... | true | true | private static Pair<Alarm, Long> calculateNextAlert(final Context context) {
long minTime = Long.MAX_VALUE;
long now = System.currentTimeMillis();
final SharedPreferences prefs = context.getSharedPreferences(PREFERENCES, 0);
Set<Alarm> alarms = new HashSet<Alarm>();
// We n... | private static Pair<Alarm, Long> calculateNextAlert(final Context context) {
long minTime = Long.MAX_VALUE;
long now = System.currentTimeMillis();
final SharedPreferences prefs = context.getSharedPreferences(PREFERENCES, 0);
Set<Alarm> alarms = new HashSet<Alarm>();
// We n... |
diff --git a/lib/stackConfiguration/src/main/java/org/sagebionetworks/TemplatedConfiguration.java b/lib/stackConfiguration/src/main/java/org/sagebionetworks/TemplatedConfiguration.java
index 295764bd..deb5cff1 100644
--- a/lib/stackConfiguration/src/main/java/org/sagebionetworks/TemplatedConfiguration.java
+++ b/lib/st... | true | true | public void reloadStackConfiguration() {
defaultStackProperties = new Properties();
stackPropertyOverrides = new Properties();
requiredProperties = new Properties();
// Load the default properties from the classpath.
loadPropertiesFromClasspath(defaultPropertiesFilename,
defaultStackProperties);
// Lo... | public void reloadStackConfiguration() {
defaultStackProperties = new Properties();
stackPropertyOverrides = new Properties();
requiredProperties = new Properties();
// Load the default properties from the classpath.
loadPropertiesFromClasspath(defaultPropertiesFilename,
defaultStackProperties);
// Lo... |
diff --git a/src/littlegruz/autoruncommands/CommandMain.java b/src/littlegruz/autoruncommands/CommandMain.java
index cd4e544..ccb2f2a 100644
--- a/src/littlegruz/autoruncommands/CommandMain.java
+++ b/src/littlegruz/autoruncommands/CommandMain.java
@@ -1,604 +1,604 @@
package littlegruz.autoruncommands;
import java... | true | true | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
if(commandLabel.compareToIgnoreCase("setclickcommand") == 0){
if(sender.hasPermission("autoruncommands.setclick")){
if(args.length != 0){
String command = args[0];
... | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
if(commandLabel.compareToIgnoreCase("setclickcommand") == 0){
if(sender.hasPermission("autoruncommands.setclick")){
if(args.length != 0){
String command = args[0];
... |
diff --git a/cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/record/RecordSearchList.java b/cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/record/RecordSearchList.java
index 9bf0b54a..6f9483da 100644
--- a/cspi-webui/src/main/java/org/collectionspace/chain/csp/webui/record/RecordSearchList.ja... | false | true | private JSONObject generateMiniRecord(Storage storage,String type,String csid) throws JSONException {
String postfix = "list";
if(this.mode==MODE_SEARCH){
postfix = "search";
}
JSONObject restrictions = new JSONObject();
JSONObject out = new JSONObject();
try {
if(csid == null || csid.equals("")){
... | private JSONObject generateMiniRecord(Storage storage,String type,String csid) throws JSONException {
String postfix = "list";
if(this.mode==MODE_SEARCH){
postfix = "search";
}
JSONObject restrictions = new JSONObject();
JSONObject out = new JSONObject();
try {
if(csid == null || csid.equals("")){
... |
diff --git a/classes/test/SynchronizedStart.java b/classes/test/SynchronizedStart.java
index f1b85488..db1dcd62 100644
--- a/classes/test/SynchronizedStart.java
+++ b/classes/test/SynchronizedStart.java
@@ -1,25 +1,25 @@
package classes.test;
/*
This test replicates a bug encountered when running the
Eclipse Ja... | true | true | public SynchronizedStart() {
synchronized (this) {
System.out.println("1: inside ctor synchronized block");
new Thread(this, "thread").start();
}
System.out.println("2: outside ctor synchronized block");
}
| public SynchronizedStart() {
synchronized (this) {
System.out.println("1: inside ctor synchronized block");
new Thread(this, "runner").start();
}
System.out.println("2: outside ctor synchronized block");
}
|
diff --git a/src/java/org/wings/DefaultReloadManager.java b/src/java/org/wings/DefaultReloadManager.java
index fadfb4c4..e966a804 100644
--- a/src/java/org/wings/DefaultReloadManager.java
+++ b/src/java/org/wings/DefaultReloadManager.java
@@ -1,385 +1,385 @@
package org.wings;
import java.util.ArrayList;
import ja... | true | true | protected void filterUpdates() {
if (log.isDebugEnabled())
printAllUpdates("Potential updates:");
fineGrainedUpdates.keySet().removeAll(fullReplaceUpdates.keySet());
SortedMap componentHierarchy = new TreeMap(new PathComparator());
for (Iterator i = getDirtyComponents(... | protected void filterUpdates() {
if (log.isDebugEnabled())
printAllUpdates("Potential updates:");
fineGrainedUpdates.keySet().removeAll(fullReplaceUpdates.keySet());
SortedMap componentHierarchy = new TreeMap(new PathComparator());
for (Iterator i = getDirtyComponents(... |
diff --git a/src/me/sd5/pvplogger/PLConfig.java b/src/me/sd5/pvplogger/PLConfig.java
index 0c8f19c..ebbf4b4 100644
--- a/src/me/sd5/pvplogger/PLConfig.java
+++ b/src/me/sd5/pvplogger/PLConfig.java
@@ -1,26 +1,26 @@
package me.sd5.pvplogger;
import org.bukkit.configuration.file.FileConfiguration;
public class PLC... | true | true | public static void load(FileConfiguration c) {
config = c;
config.options().copyDefaults(true);
config.options().header("PVPLogger config file.");
dbUrl = "jdbc:mysql://" + config.getString("mysql-connection.host") + ":" + config.getString("mysql-connection.port") + "/" + config.getString("mysql-connection.... | public static void load(FileConfiguration c) {
config = c;
config.options().copyDefaults(true);
config.options().header("PVPLogger config file.");
dbUrl = "jdbc:mysql://" + config.getString("mysql-connection.host") + ":" + config.getString("mysql-connection.port") + "/" + config.getString("mysql-connection.... |
diff --git a/src/com/redhat/qe/tools/RemoteFileTasks.java b/src/com/redhat/qe/tools/RemoteFileTasks.java
index a7f3214..2e7c087 100644
--- a/src/com/redhat/qe/tools/RemoteFileTasks.java
+++ b/src/com/redhat/qe/tools/RemoteFileTasks.java
@@ -1,171 +1,171 @@
package com.redhat.qe.tools;
import java.io.File;
import j... | true | true | public static void runCommandAndAssert(SSHCommandRunner sshCommandRunner, String command, String stdoutGrepExpression, String stderrGrepExpression, int expectedExitCode) {
//String runCommand = String.format("(%s | tee %s) 3>&1 1>&2 2>&3 | tee %s", command, stdoutFile, stderrFile); // the problem with this is that ... | public static void runCommandAndAssert(SSHCommandRunner sshCommandRunner, String command, String stdoutGrepExpression, String stderrGrepExpression, int expectedExitCode) {
//String runCommand = String.format("(%s | tee %s) 3>&1 1>&2 2>&3 | tee %s", command, stdoutFile, stderrFile); // the problem with this is that ... |
diff --git a/src/main/java/com/mike724/email/EmailManager.java b/src/main/java/com/mike724/email/EmailManager.java
index 70cf5c1..a75b9b7 100644
--- a/src/main/java/com/mike724/email/EmailManager.java
+++ b/src/main/java/com/mike724/email/EmailManager.java
@@ -1,63 +1,64 @@
package com.mike724.email;
import java.io... | true | true | public void export(int type) {
if(type != 1 || type !=2) {
return;
}
File file = new File(plugin.getDataFolder(), "export-type1.txt");
try {
PrintWriter pw = new PrintWriter(new FileWriter(file));
Set<String> keys = config.getConfigurationSection("emails").getKeys(false);
for(String key : keys) {
... | public void export(int type) {
if(!(type == 1 || type == 2)) {
plugin.getLogger().info("Incorrect export type");
return;
}
File file = new File(plugin.getDataFolder(), "export-type1.txt");
try {
PrintWriter pw = new PrintWriter(new FileWriter(file));
Set<String> keys = config.getConfigurationSectio... |
diff --git a/okapi/core/src/main/java/net/sf/okapi/common/skeleton/ResourceConverter.java b/okapi/core/src/main/java/net/sf/okapi/common/skeleton/ResourceConverter.java
index dca00dcc3..9e70c988a 100644
--- a/okapi/core/src/main/java/net/sf/okapi/common/skeleton/ResourceConverter.java
+++ b/okapi/core/src/main/java/net... | true | true | public Event convert(Event event) {
if (event == null)
throw new InvalidParameterException("Event cannot be null");
IResource res = event.getResource();
if (res == null)
return event;
ISkeleton skel = res.getSkeleton();
if (!(skel == null)) {
return event;
}
if (!(skel instanceof Generic... | public Event convert(Event event) {
if (event == null)
throw new InvalidParameterException("Event cannot be null");
IResource res = event.getResource();
if (res == null)
return event;
ISkeleton skel = res.getSkeleton();
if (skel == null) {
return event;
}
if (!(skel instanceof GenericSke... |
diff --git a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/PasteAfterCommand.java b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/PasteAfterCommand.java
index 7c9a98e6..1f65d91b 100644
--- a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/PasteAfterC... | true | true | public void execute(EditorAdaptor editorAdaptor, int count) {
if (count == NO_COUNT_GIVEN) {
count = 1;
}
final CursorService cursorService = editorAdaptor.getCursorService();
RegisterContent registerContent = editorAdaptor.getRegisterManager().getActiveRegister().getCont... | public void execute(EditorAdaptor editorAdaptor, int count) {
if (count == NO_COUNT_GIVEN) {
count = 1;
}
final CursorService cursorService = editorAdaptor.getCursorService();
RegisterContent registerContent = editorAdaptor.getRegisterManager().getActiveRegister().getCont... |
diff --git a/src/com/db/ncsu/user/User.java b/src/com/db/ncsu/user/User.java
index 96ad7c3..0ff83f4 100644
--- a/src/com/db/ncsu/user/User.java
+++ b/src/com/db/ncsu/user/User.java
@@ -1,43 +1,43 @@
package com.db.ncsu.user;
import com.db.ncsu.command.Command;
import com.db.ncsu.command.CreateAccount;
import com.... | true | true | public User()
{
salesCommands = new Command[]{ new InsertSpecialOrder(), new UpdateMerchandise(), new UpdateAccount(), new CreateAccount(), new CreateEmployee(), new ShowEmployees(), new CreateVendor(), new CreateStore(), new CreateMerchandise(), new AddVendorPayment(), new AddStoreItem(), new ReviewStoreInventory(... | public User()
{
salesCommands = new Command[]{ new InsertSpecialOrder(), new UpdateMerchandise(), new UpdateAccount(), new CreateAccount(), new CreateEmployee(), new ShowEmployees(), new CreateVendor(), new CreateStore(), new CreateMerchandise(), new AddVendorPayment(), new AddStoreItem(), new ReviewStoreInventory(... |
diff --git a/core/src/main/java/uk/ac/imperial/presage2/core/cli/run/SubProcessExecutor.java b/core/src/main/java/uk/ac/imperial/presage2/core/cli/run/SubProcessExecutor.java
index 24dd782..69896c3 100644
--- a/core/src/main/java/uk/ac/imperial/presage2/core/cli/run/SubProcessExecutor.java
+++ b/core/src/main/java/uk/a... | true | true | public synchronized void run(long simId)
throws InsufficientResourcesException {
// don't launch more than maxConcurrent processes.
if (this.running() >= maxConcurrent())
throw new InsufficientResourcesException(
"Max number of concurrent processes, " + maxConcurrent()
+ " has been reached");
... | public synchronized void run(long simId)
throws InsufficientResourcesException {
// don't launch more than maxConcurrent processes.
if (this.running() >= maxConcurrent())
throw new InsufficientResourcesException(
"Max number of concurrent processes, " + maxConcurrent()
+ " has been reached");
... |
diff --git a/task1/test/ee/ut/math/tvt/BSS/StockItemTest.java b/task1/test/ee/ut/math/tvt/BSS/StockItemTest.java
index f530cdb..0d89371 100644
--- a/task1/test/ee/ut/math/tvt/BSS/StockItemTest.java
+++ b/task1/test/ee/ut/math/tvt/BSS/StockItemTest.java
@@ -1,44 +1,44 @@
package ee.ut.math.tvt.BSS;
import static org... | true | true | public void testGetColumn() {
long id = ((Long) item1.getColumn(0)).longValue();
assertEquals(id, 10, 0.0001);
String name = (String) item1.getColumn(1);
assertEquals(name, "testItem");
double price = (double) item1.getColumn(2);
assertEquals(price, 12.0, 0.001);
int quantity = (int) it... | public void testGetColumn() {
long id = ((Long) item1.getColumn(0)).longValue();
assertEquals(id, 10, 0.0001);
String name = (String) item1.getColumn(1);
assertEquals(name, "testItem");
double price = ((Double) item1.getColumn(2)).doubleValue();
assertEquals(price, 12.0, 0.0001);
int quantity = ... |
diff --git a/examples/org.eclipse.ocl.examples.pivot/src/org/eclipse/ocl/examples/pivot/attributes/DataTypeAttribution.java b/examples/org.eclipse.ocl.examples.pivot/src/org/eclipse/ocl/examples/pivot/attributes/DataTypeAttribution.java
index 9805a3de13..a0874fb6ca 100644
--- a/examples/org.eclipse.ocl.examples.pivot/s... | true | true | public ScopeView computeLookup(EObject target, EnvironmentView environmentView, ScopeView scopeView) {
DataType targetElement = (DataType) target;
Type behavioralType = targetElement.getBehavioralType();
Attribution attribution;
if (behavioralType != null) {
attribution = PivotUtil.getAttribution(behavioral... | public ScopeView computeLookup(EObject target, EnvironmentView environmentView, ScopeView scopeView) {
DataType targetElement = (DataType) target;
Type behavioralType = targetElement.getBehavioralType();
Attribution attribution;
if (behavioralType != null) {
attribution = PivotUtil.getAttribution(behavioral... |
diff --git a/flexmojos-maven-plugin/src/main/java/org/sonatype/flexmojos/compiler/TestCompilerMojo.java b/flexmojos-maven-plugin/src/main/java/org/sonatype/flexmojos/compiler/TestCompilerMojo.java
index ee0fc28a9..2282668b6 100644
--- a/flexmojos-maven-plugin/src/main/java/org/sonatype/flexmojos/compiler/TestCompilerMo... | false | true | public void setUp()
throws MojoExecutionException, MojoFailureException
{
isSetProjectFile = false;
linkReport = false;
loadExterns = null;
if ( includeTestFiles == null || includeTestFiles.length == 0 )
{
includeTestFiles = new String[] { "**/Test*.a... | public void setUp()
throws MojoExecutionException, MojoFailureException
{
isSetProjectFile = false;
linkReport = false;
loadExterns = null;
if ( includeTestFiles == null || includeTestFiles.length == 0 )
{
includeTestFiles = new String[] { "**/Test*.a... |
diff --git a/src/gtna/networks/util/ReadableFolder.java b/src/gtna/networks/util/ReadableFolder.java
index fef2d21e..e757c965 100644
--- a/src/gtna/networks/util/ReadableFolder.java
+++ b/src/gtna/networks/util/ReadableFolder.java
@@ -1,96 +1,100 @@
/* ===========================================================
* GT... | true | true | public ReadableFolder(String name, String folder, String src, int type,
RoutingAlgorithm ra, Transformation[] t) {
super(key(name, folder), Integer.MIN_VALUE, new String[] {},
new String[] {}, ra, t);
this.type = type;
File d = new File(src);
if (!d.exists()) {
this.files = new String[0];
} else {
... | public ReadableFolder(String name, String folder, String src, int type,
RoutingAlgorithm ra, Transformation[] t) {
super(key(name, folder), Integer.MIN_VALUE, new String[] {},
new String[] {}, ra, t);
this.type = type;
File d = new File(src);
if (!d.exists()) {
this.files = new String[0];
} else {
... |
diff --git a/library/src/com/inqbarna/tablefixheaders/TableFixHeaders.java b/library/src/com/inqbarna/tablefixheaders/TableFixHeaders.java
index c994b72..f8b68d8 100644
--- a/library/src/com/inqbarna/tablefixheaders/TableFixHeaders.java
+++ b/library/src/com/inqbarna/tablefixheaders/TableFixHeaders.java
@@ -1,524 +1,52... | false | true | public boolean onTouchEvent(MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN: {
currentX = (int) event.getRawX();
currentY = (int) event.getRawY();
break;
}
case MotionEvent.ACTION_MOVE: {
final int x2 = (int) event.getRawX();
final int y2 = (int) event.getR... | public boolean onTouchEvent(MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN: {
currentX = (int) event.getRawX();
currentY = (int) event.getRawY();
break;
}
case MotionEvent.ACTION_MOVE: {
final int x2 = (int) event.getRawX();
final int y2 = (int) event.getR... |
diff --git a/grails/src/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsControllerHelper.java b/grails/src/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsControllerHelper.java
index 5e6940c05..3ec0294c3 100644
--- a/grails/src/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsControllerH... | true | true | public ModelAndView handleURI(String uri, GrailsWebRequest webRequest, Map params) {
if(uri == null) {
throw new IllegalArgumentException("Controller URI [" + uri + "] cannot be null!");
}
HttpServletRequest request = webRequest.getCurrentRequest();
HttpServletResponse re... | public ModelAndView handleURI(String uri, GrailsWebRequest webRequest, Map params) {
if(uri == null) {
throw new IllegalArgumentException("Controller URI [" + uri + "] cannot be null!");
}
HttpServletRequest request = webRequest.getCurrentRequest();
HttpServletResponse re... |
diff --git a/WoT/FMSMessageManagerWoT.java b/WoT/FMSMessageManagerWoT.java
index eed54157..4f84b58b 100644
--- a/WoT/FMSMessageManagerWoT.java
+++ b/WoT/FMSMessageManagerWoT.java
@@ -1,69 +1,69 @@
/* This code is part of Freenet. It is distributed under the GNU General
* Public License, version 2 (or at your option ... | true | true | private synchronized void onMessageReceived(String newMessageData) throws UpdatableSortedLinkedListKilledException {
FMSMessageWoT newMessage = new FMSMessageWoT(null, null, null, null, null, null, null, null);
String boardName = "";
String boardDescription = "";
FMSBoard board = getBoardByName(boardName);
... | private synchronized void onMessageReceived(String newMessageData) throws UpdatableSortedLinkedListKilledException {
FMSMessageWoT newMessage = new FMSMessageWoT(null, null, null, null, null, null, null, null, null);
String boardName = "";
String boardDescription = "";
FMSBoard board = getBoardByName(boardNam... |
diff --git a/src/main/java/com/daveoxley/cnery/scenes/SceneActionSchedule.java b/src/main/java/com/daveoxley/cnery/scenes/SceneActionSchedule.java
index 7e72b95..55edebd 100644
--- a/src/main/java/com/daveoxley/cnery/scenes/SceneActionSchedule.java
+++ b/src/main/java/com/daveoxley/cnery/scenes/SceneActionSchedule.java... | false | true | protected GregorianCalendar getNextRunTime(GregorianCalendar startTime) {
SceneActionHome sah = (SceneActionHome)Component.getInstance(SceneActionHome.class, true);
sah.clearInstance();
sah.setId(sceneAction.getId());
sceneAction = sah.getInstance();
boolean firstRun = sceneA... | protected GregorianCalendar getNextRunTime(GregorianCalendar startTime) {
SceneActionHome sah = (SceneActionHome)Component.getInstance(SceneActionHome.class, true);
sah.clearInstance();
sah.setId(sceneAction.getId());
sceneAction = sah.getInstance();
boolean firstRun = sceneA... |
diff --git a/android/src/com/google/zxing/client/android/CaptureActivity.java b/android/src/com/google/zxing/client/android/CaptureActivity.java
index 8b9c9259..f02f740f 100755
--- a/android/src/com/google/zxing/client/android/CaptureActivity.java
+++ b/android/src/com/google/zxing/client/android/CaptureActivity.java
@... | true | true | private void handleDecodeInternally(Result rawResult, Bitmap barcode) {
statusView.setVisibility(View.GONE);
viewfinderView.setVisibility(View.GONE);
resultView.setVisibility(View.VISIBLE);
ImageView barcodeImageView = (ImageView) findViewById(R.id.barcode_image_view);
if (barcode == null) {
... | private void handleDecodeInternally(Result rawResult, Bitmap barcode) {
statusView.setVisibility(View.GONE);
viewfinderView.setVisibility(View.GONE);
resultView.setVisibility(View.VISIBLE);
ImageView barcodeImageView = (ImageView) findViewById(R.id.barcode_image_view);
if (barcode == null) {
... |
diff --git a/src/org/mozilla/javascript/Interpreter.java b/src/org/mozilla/javascript/Interpreter.java
index 3f0db7a6..5ef61c42 100644
--- a/src/org/mozilla/javascript/Interpreter.java
+++ b/src/org/mozilla/javascript/Interpreter.java
@@ -1,4117 +1,4120 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basi... | false | true | private static Object interpretLoop(Context cx, CallFrame frame,
Object throwable)
{
// throwable holds exception object to rethrow or catch
// It is also used for continuation restart in which case
// it holds ContinuationJump
final Objec... | private static Object interpretLoop(Context cx, CallFrame frame,
Object throwable)
{
// throwable holds exception object to rethrow or catch
// It is also used for continuation restart in which case
// it holds ContinuationJump
final Objec... |
diff --git a/src/edu/cmu/cs211/pg/algorithms/MstTspApproximation.java b/src/edu/cmu/cs211/pg/algorithms/MstTspApproximation.java
index 90c2954..f8ccace 100644
--- a/src/edu/cmu/cs211/pg/algorithms/MstTspApproximation.java
+++ b/src/edu/cmu/cs211/pg/algorithms/MstTspApproximation.java
@@ -1,195 +1,195 @@
package edu.cm... | true | true | public List<V> approximateTour(Graph<V,WeightedEdge<V>> g, Set<V> verts, V start)
{
if (g == null || verts == null || start == null)
throw new NullPointerException("Null parameter to approximateTour()");
// Do we need to come back to the start node (true cycle)?
boolean backToStart = false;
if (!verts.c... | public List<V> approximateTour(Graph<V,WeightedEdge<V>> g, Set<V> verts, V start)
{
if (g == null || verts == null || start == null)
throw new NullPointerException("Null parameter to approximateTour()");
// Do we need to come back to the start node (true cycle)?
boolean backToStart = false;
if (verts.co... |
diff --git a/APITestingCG/src/cz/cvut/fit/hybljan2/apitestingcg/generator/ExtenderGenerator.java b/APITestingCG/src/cz/cvut/fit/hybljan2/apitestingcg/generator/ExtenderGenerator.java
index b82f92f..7f4f34d 100644
--- a/APITestingCG/src/cz/cvut/fit/hybljan2/apitestingcg/generator/ExtenderGenerator.java
+++ b/APITestingC... | true | true | public void generate(API api, GeneratorJobConfiguration jobConfiguration) {
for(APIPackage pkg : api.getPackages()) {
for(APIClass cls : pkg.getClasses()) {
// filter out final classes and annotations
if(!cls.getModifiers().contains(Modifier.FINAL) && !cls.getType... | public void generate(API api, GeneratorJobConfiguration jobConfiguration) {
for(APIPackage pkg : api.getPackages()) {
for(APIClass cls : pkg.getClasses()) {
// filter out final classes and annotations
if(!cls.getModifiers().contains(Modifier.FINAL) && !cls.getType... |
diff --git a/src/com/vmware/vim25/mo/ServiceInstance.java b/src/com/vmware/vim25/mo/ServiceInstance.java
index af7ea3f..e4e40b0 100644
--- a/src/com/vmware/vim25/mo/ServiceInstance.java
+++ b/src/com/vmware/vim25/mo/ServiceInstance.java
@@ -1,363 +1,363 @@
/*============================================================... | true | true | public ServiceInstance(URL url, String username, String password, boolean ignoreCert, String namespace)
throws RemoteException, MalformedURLException
{
if(url == null || username==null)
{
throw new NullPointerException("None of url, username can be null.");
}
setMOR(SERVICE_INSTANCE_MOR);
VimPortT... | public ServiceInstance(URL url, String username, String password, boolean ignoreCert, String namespace)
throws RemoteException, MalformedURLException
{
if(url == null || username==null)
{
throw new NullPointerException("None of url, username can be null.");
}
setMOR(SERVICE_INSTANCE_MOR);
VimPortT... |
diff --git a/core/src/main/java/com/google/bitcoin/core/Block.java b/core/src/main/java/com/google/bitcoin/core/Block.java
index e273ae1..78b2439 100644
--- a/core/src/main/java/com/google/bitcoin/core/Block.java
+++ b/core/src/main/java/com/google/bitcoin/core/Block.java
@@ -1,941 +1,941 @@
/**
* Copyright 2011 Goo... | true | true | private List<byte[]> buildMerkleTree() {
// The Merkle root is based on a tree of hashes calculated from the transactions:
//
// root
// / \
// A B
// / \ / \
// t1 t2 t3 t4
//
// The tree is represented as a list: t1,t2,t3,... | private List<byte[]> buildMerkleTree() {
// The Merkle root is based on a tree of hashes calculated from the transactions:
//
// root
// / \
// A B
// / \ / \
// t1 t2 t3 t4
//
// The tree is represented as a list: t1,t2,t3,... |
diff --git a/src/com/RoboMobo/Map.java b/src/com/RoboMobo/Map.java
index c45bf8b..28e2a0f 100644
--- a/src/com/RoboMobo/Map.java
+++ b/src/com/RoboMobo/Map.java
@@ -1,506 +1,506 @@
package com.RoboMobo;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Point;
import android.gr... | true | true | public void Draw()
{
Paint pa = new Paint();
RMR.c.save();
{
int mapW = this.width * 32;
int mapH = this.height * 32;
Player p = this.p0;
//double mapRotation = Math.toDegrees(Math.asin(Math.abs(this.basexlong - this.baseylong) / Math.sqr... | public void Draw()
{
Paint pa = new Paint();
RMR.c.save();
{
int mapW = this.width * 32;
int mapH = this.height * 32;
Player p = this.p0;
//double mapRotation = Math.toDegrees(Math.asin(Math.abs(this.basexlong - this.baseylong) / Math.sqr... |
diff --git a/src/main/java/com/ochafik/math/bayes/JunctionTreeAlgorithmUtils.java b/src/main/java/com/ochafik/math/bayes/JunctionTreeAlgorithmUtils.java
index dbd45d0..eb6462e 100644
--- a/src/main/java/com/ochafik/math/bayes/JunctionTreeAlgorithmUtils.java
+++ b/src/main/java/com/ochafik/math/bayes/JunctionTreeAlgorit... | true | true | public static final Map<Variable, List<Function<Variable>>> junctionTreeInference(Graph<Variable> graph, Map<Variable, ? extends Function<Variable>> fusionedDefinitions) throws FunctionException {
Graph<NodeSet<Variable>> junctionTree = GraphUtils.createJunctionTree(graph);
Map<Integer, Function<Variable>> cliq... | public static final Map<Variable, List<Function<Variable>>> junctionTreeInference(Graph<Variable> graph, Map<Variable, ? extends Function<Variable>> fusionedDefinitions) throws FunctionException {
Graph<NodeSet<Variable>> junctionTree = GraphUtils.createJunctionTree(graph);
Map<Integer, Function<Variable>> cliq... |
diff --git a/src/main/java/com/neodem/componentConnector/io/DefaultFileConnector.java b/src/main/java/com/neodem/componentConnector/io/DefaultFileConnector.java
index 2716df8..d0b178d 100644
--- a/src/main/java/com/neodem/componentConnector/io/DefaultFileConnector.java
+++ b/src/main/java/com/neodem/componentConnector/... | false | true | protected ComponentSet loadSet(File componentsDef, File connectionsDef) {
ComponentSet set = null;
try {
// for collecting all connectables
Map<String, Connectable> components = new HashMap<String, Connectable>();
// open the components.xml file
Builder builder = new Builder();
Document doc ... | protected ComponentSet loadSet(File componentsDef, File connectionsDef) {
ComponentSet set = null;
try {
// for collecting all connectables
Map<String, Connectable> components = new HashMap<String, Connectable>();
// open the components.xml file
Builder builder = new Builder();
Document doc ... |
diff --git a/samples/demos/src/com/actionbarsherlock/sample/demos/ListNavigation.java b/samples/demos/src/com/actionbarsherlock/sample/demos/ListNavigation.java
index d0befa0d..493b0c8e 100644
--- a/samples/demos/src/com/actionbarsherlock/sample/demos/ListNavigation.java
+++ b/samples/demos/src/com/actionbarsherlock/sa... | true | true | public void onCreate(Bundle savedInstanceState) {
setTheme(SampleList.THEME); //Used for theme switching in samples
super.onCreate(savedInstanceState);
setContentView(R.layout.text);
getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
ArrayAdapter<CharS... | public void onCreate(Bundle savedInstanceState) {
setTheme(SampleList.THEME); //Used for theme switching in samples
super.onCreate(savedInstanceState);
setContentView(R.layout.text);
getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
//NOTE: It is very... |
diff --git a/java/marytts/tools/voiceimport/HMMVoiceDataPreparation.java b/java/marytts/tools/voiceimport/HMMVoiceDataPreparation.java
index f16662dd7..93d52682f 100644
--- a/java/marytts/tools/voiceimport/HMMVoiceDataPreparation.java
+++ b/java/marytts/tools/voiceimport/HMMVoiceDataPreparation.java
@@ -1,407 +1,413 @@... | false | true | public boolean compute() throws Exception{
boolean raw = false;
boolean text = false;
boolean wav = false;
marybase = db.getProp(db.MARYBASE);
voiceDir = db.getProp(db.ROOTDIR);
soxPath = db.getExternal(db.SOXPATH);
sep = System.getProperty("file.separ... | public boolean compute() throws Exception{
boolean raw = false;
boolean text = false;
boolean wav = false;
marybase = db.getProp(db.MARYBASE);
voiceDir = db.getProp(db.ROOTDIR);
soxPath = db.getExternal(db.SOXPATH);
sep = System.getProperty("file.separ... |
diff --git a/parser/src/main/java/parser/flatzinc/FZNLayout.java b/parser/src/main/java/parser/flatzinc/FZNLayout.java
index fa130fa6a..56ee6f207 100644
--- a/parser/src/main/java/parser/flatzinc/FZNLayout.java
+++ b/parser/src/main/java/parser/flatzinc/FZNLayout.java
@@ -1,175 +1,175 @@
/**
* Copyright (c) 1999-20... | true | true | public void beforeClose () {
if (LOGGER.isInfoEnabled()) {
if (searchLoop.getMeasures().getSolutionCount() == 0) {
if (searchLoop.getLimitsBox().isReached()) {
LOGGER.info("=====UNKNOWN=====");
} else {
LOGGER.info("=====UNS... | public void beforeClose () {
if (LOGGER.isInfoEnabled()) {
if (searchLoop.getMeasures().getSolutionCount() == 0) {
if (searchLoop.getLimitsBox().isReached()) {
LOGGER.info("=====UNKNOWN=====");
} else {
LOGGER.info("=====UNS... |
diff --git a/app/src/com/halcyonwaves/apps/meinemediathek/fragments/MovieSearchFragment.java b/app/src/com/halcyonwaves/apps/meinemediathek/fragments/MovieSearchFragment.java
index 2b2eaba..e072497 100644
--- a/app/src/com/halcyonwaves/apps/meinemediathek/fragments/MovieSearchFragment.java
+++ b/app/src/com/halcyonwave... | false | true | public View onCreateView( final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState ) {
// get the basic view layout from the application resources
final View v = inflater.inflate( R.layout.fragment_moviesearch, container );
// get the handles to the controls we have to access
... | public View onCreateView( final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState ) {
// get the basic view layout from the application resources
final View v = inflater.inflate( R.layout.fragment_moviesearch, container );
// get the handles to the controls we have to access
... |
diff --git a/src/navigation/Navigator.java b/src/navigation/Navigator.java
index fa5429a..f867606 100644
--- a/src/navigation/Navigator.java
+++ b/src/navigation/Navigator.java
@@ -1,291 +1,291 @@
package navigation;
/**
* Sets a path on the wavefront grid and navigates tile per tile to destination
*
* @auth... | false | true | public void navigatePath(int [][] grid){
int robot_I = 0;
int robot_J = 0;
// First - find robot location by grid
for(int i=0; i < grid.length; i++){
for(int j=0; j < grid[i].length; j++){
if(grid[i][j] == 99){
robot_I = i;
robot_J = j;
}
}
}
// Second - Found robot location, ... | public void navigatePath(int [][] grid){
int robot_I = 0;
int robot_J = 0;
// First - find robot location by grid
for(int i=0; i < grid.length; i++){
for(int j=0; j < grid[i].length; j++){
if(grid[i][j] == 99){
robot_I = i;
robot_J = j;
}
}
}
// Second - Found robot location, ... |
diff --git a/Statics/src/edu/gatech/statics/modes/fbd/FBDChecker.java b/Statics/src/edu/gatech/statics/modes/fbd/FBDChecker.java
index c6f34865..346ec9bf 100644
--- a/Statics/src/edu/gatech/statics/modes/fbd/FBDChecker.java
+++ b/Statics/src/edu/gatech/statics/modes/fbd/FBDChecker.java
@@ -1,943 +1,943 @@
/*
* To ch... | true | true | public boolean checkDiagram() {
//done = false;
// step 1: assemble a list of all the forces the user has added.
List<AnchoredVector> addedLoads = new ArrayList<AnchoredVector>(diagram.getCurrentState().getAddedLoads());
logInfo("check: user added AnchoredVectors: " + addedLoads);... | public boolean checkDiagram() {
//done = false;
// step 1: assemble a list of all the forces the user has added.
List<AnchoredVector> addedLoads = new ArrayList<AnchoredVector>(diagram.getCurrentState().getAddedLoads());
logInfo("check: user added AnchoredVectors: " + addedLoads);... |
diff --git a/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java b/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java
index 519051df..a22396b2 100644
--- a/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommands.java
+++ b/cli/src/main/java/com/vmware/bdd/cli/commands/ClusterCommand... | true | true | public void createCluster(
@CliOption(key = { "name" }, mandatory = true, help = "The cluster name") final String name,
@CliOption(key = { "distro" }, mandatory = false, help = "Hadoop Distro") final String distro,
@CliOption(key = { "specFile" }, mandatory = false, help = "The spec file n... | public void createCluster(
@CliOption(key = { "name" }, mandatory = true, help = "The cluster name") final String name,
@CliOption(key = { "distro" }, mandatory = false, help = "Hadoop Distro") final String distro,
@CliOption(key = { "specFile" }, mandatory = false, help = "The spec file n... |
diff --git a/debug/src/com/dmdirc/addons/debug/commands/FakeError.java b/debug/src/com/dmdirc/addons/debug/commands/FakeError.java
index 5b568b10..278cf883 100644
--- a/debug/src/com/dmdirc/addons/debug/commands/FakeError.java
+++ b/debug/src/com/dmdirc/addons/debug/commands/FakeError.java
@@ -1,139 +1,140 @@
/*
* C... | false | true | private void raiseError(final String level, final boolean appError) {
final Marker marker = appError ? APP_ERROR : USER_ERROR;
switch (level.toUpperCase()) {
case "FATAL":
LOG.error(appError ? FATAL_APP_ERROR : FATAL_USER_ERROR, "Debug error message");
bre... | private void raiseError(final String level, final boolean appError) {
final Marker marker = appError ? APP_ERROR : USER_ERROR;
switch (level.toUpperCase()) {
case "FATAL":
LOG.error(appError ? FATAL_APP_ERROR : FATAL_USER_ERROR, "Debug error message",
... |
diff --git a/src/main/java/com/janrain/oauth2/AnonymousTokenRequest.java b/src/main/java/com/janrain/oauth2/AnonymousTokenRequest.java
index e11aa26..df224d9 100644
--- a/src/main/java/com/janrain/oauth2/AnonymousTokenRequest.java
+++ b/src/main/java/com/janrain/oauth2/AnonymousTokenRequest.java
@@ -1,138 +1,140 @@
pa... | true | true | public AnonymousTokenRequest( String callback, String bus, String scope, String refreshToken,
DAOFactory daoFactory, HttpServletRequest request, String authHeader) throws TokenException {
this.daoFactory = daoFactory;
this.grantType = StringUtils.isEmpty(refreshTo... | public AnonymousTokenRequest( String callback, String bus, String scope, String refreshToken,
DAOFactory daoFactory, HttpServletRequest request, String authHeader) throws TokenException {
this.daoFactory = daoFactory;
this.grantType = StringUtils.isEmpty(refreshTo... |
diff --git a/src/java/org/jivesoftware/sparkimpl/plugin/alerts/BroadcastDialog.java b/src/java/org/jivesoftware/sparkimpl/plugin/alerts/BroadcastDialog.java
index d203da77..cb85a6a8 100644
--- a/src/java/org/jivesoftware/sparkimpl/plugin/alerts/BroadcastDialog.java
+++ b/src/java/org/jivesoftware/sparkimpl/plugin/alert... | false | true | public BroadcastDialog() {
setLayout(new GridBagLayout());
rosterNode = new CheckNode("Roster");
checkTree = new CheckTree(rosterNode);
// Build out from Roster
final ContactList contactList = SparkManager.getWorkspace().getContactList();
for (ContactGroup group : c... | public BroadcastDialog() {
setLayout(new GridBagLayout());
rosterNode = new CheckNode("Roster");
checkTree = new CheckTree(rosterNode);
// Build out from Roster
final ContactList contactList = SparkManager.getWorkspace().getContactList();
for (ContactGroup group : c... |
diff --git a/src/org/evswork/whatsdonetoday/DatePickerPreference.java b/src/org/evswork/whatsdonetoday/DatePickerPreference.java
index b1b7c5c..b3a631c 100644
--- a/src/org/evswork/whatsdonetoday/DatePickerPreference.java
+++ b/src/org/evswork/whatsdonetoday/DatePickerPreference.java
@@ -1,76 +1,76 @@
/*
Copyright 2... | false | true | private void initPreference() {
setPersistent(false);
setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick(Preference preference) {
DatePickerDialog dialog = new DatePickerDialog(getContext(), new OnDateSetListener() {
@Override
pub... | private void initPreference() {
setPersistent(false);
setOnPreferenceClickListener(new OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick(Preference preference) {
DatePickerDialog dialog = new DatePickerDialog(getContext(), new OnDateSetListener() {
@Override
pub... |
diff --git a/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/generators/LocationMapGenerator.java b/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/generators/LocationMapGenerator.java
index 11d3e10e3..1665a27bf 100644
--- a/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/generators/LocationMapGenerator.jav... | false | true | public boolean generate(PrintWriter out) {
org.emftext.sdk.codegen.composites.StringComposite sc = new org.emftext.sdk.codegen.composites.JavaComposite();
sc.add("package " + getResourcePackageName() + ";");
sc.addLineBreak();
sc.add("// A basic implementation of the ILocationMap interface. Instances");
sc.a... | public boolean generate(PrintWriter out) {
org.emftext.sdk.codegen.composites.StringComposite sc = new org.emftext.sdk.codegen.composites.JavaComposite();
sc.add("package " + getResourcePackageName() + ";");
sc.addLineBreak();
sc.add("// A basic implementation of the ILocationMap interface. Instances");
sc.a... |
diff --git a/obdalib/obdalib-core/src/main/java/it/unibz/krdb/obda/io/R2RMLParser.java b/obdalib/obdalib-core/src/main/java/it/unibz/krdb/obda/io/R2RMLParser.java
index 457069c14..08b45d5c2 100644
--- a/obdalib/obdalib-core/src/main/java/it/unibz/krdb/obda/io/R2RMLParser.java
+++ b/obdalib/obdalib-core/src/main/java/it... | true | true | public NewLiteral getObjectAtom(Graph myGraph, Resource objectt, String joinCond)
throws Exception {
NewLiteral objectAtom = null;
// process OBJECT
// look for the object
iterator = myGraph.match(objectt, this.object, null);
if (iterator.hasNext()) {
parsedString = iterator.next().getObject().toStrin... | public NewLiteral getObjectAtom(Graph myGraph, Resource objectt, String joinCond)
throws Exception {
NewLiteral objectAtom = null;
// process OBJECT
// look for the object
iterator = myGraph.match(objectt, this.object, null);
if (iterator.hasNext()) {
parsedString = iterator.next().getObject().toStrin... |
diff --git a/src/main/java/org/springframework/shell/JLineLogHandler.java b/src/main/java/org/springframework/shell/JLineLogHandler.java
index d1286ae..ebb5187 100644
--- a/src/main/java/org/springframework/shell/JLineLogHandler.java
+++ b/src/main/java/org/springframework/shell/JLineLogHandler.java
@@ -1,212 +1,211 @@... | true | true | public void publish(final LogRecord record) {
try {
// Avoid repeating the same message that displayed immediately before the current message (ROO-30, ROO-1873)
String toDisplay = toDisplay(record);
if (toDisplay.equals(lastMessage) && suppressDuplicateMessages) {
return;
}
lastMessage = toDisplay... | public void publish(final LogRecord record) {
try {
// Avoid repeating the same message that displayed immediately before the current message (ROO-30, ROO-1873)
String toDisplay = toDisplay(record);
if (toDisplay.equals(lastMessage) && suppressDuplicateMessages) {
return;
}
lastMessage = toDisplay... |
diff --git a/core/src/main/java/hudson/tasks/Ant.java b/core/src/main/java/hudson/tasks/Ant.java
index c667cba..f69bee5 100644
--- a/core/src/main/java/hudson/tasks/Ant.java
+++ b/core/src/main/java/hudson/tasks/Ant.java
@@ -1,251 +1,251 @@
package hudson.tasks;
import hudson.CopyOnWrite;
import hudson.Launcher;
... | true | true | public boolean perform(Build build, Launcher launcher, BuildListener listener) {
Project proj = build.getProject();
ArgumentListBuilder args = new ArgumentListBuilder();
String execName;
if(launcher.isUnix())
execName = "ant";
else
execName = "ant.ba... | public boolean perform(Build build, Launcher launcher, BuildListener listener) throws InterruptedException {
Project proj = build.getProject();
ArgumentListBuilder args = new ArgumentListBuilder();
String execName;
if(launcher.isUnix())
execName = "ant";
else
... |
diff --git a/core/components/components/src/main/java/org/mobicents/slee/container/component/deployment/DeployableUnitJarComponentBuilder.java b/core/components/components/src/main/java/org/mobicents/slee/container/component/deployment/DeployableUnitJarComponentBuilder.java
index 57f1a35d5..81595c73f 100644
--- a/core/... | true | true | public List<AbstractSleeComponent> buildComponents(
String componentJarFileName, JarFile deployableUnitJar,
File deploymentDir)
throws DeploymentException {
final boolean loadClassesFirstFromAS = componentManagement.getClassLoaderFactory().getConfiguration().isLoadClassesFirstFromAS();
// extract the ... | public List<AbstractSleeComponent> buildComponents(
String componentJarFileName, JarFile deployableUnitJar,
File deploymentDir)
throws DeploymentException {
final boolean loadClassesFirstFromAS = componentManagement.getClassLoaderFactory().getConfiguration().isLoadClassesFirstFromAS();
// extract the ... |
diff --git a/src/main/java/it/sevenbits/conferences/web/controller/ApplyForReportController.java b/src/main/java/it/sevenbits/conferences/web/controller/ApplyForReportController.java
index b4c7620..bb467d0 100644
--- a/src/main/java/it/sevenbits/conferences/web/controller/ApplyForReportController.java
+++ b/src/main/ja... | true | true | public JsonResponse submitForm(@ModelAttribute(value = "applyForReportForm") ApplyForReportForm applyForReportForm, BindingResult bindingResult) {
JsonResponse response = new JsonResponse();
validator.validate(applyForReportForm, bindingResult);
if (bindingResult.hasErrors()) {
... | public JsonResponse submitForm(@ModelAttribute(value = "applyForReportForm") ApplyForReportForm applyForReportForm, BindingResult bindingResult) {
JsonResponse response = new JsonResponse();
validator.validate(applyForReportForm, bindingResult);
if (bindingResult.hasErrors()) {
... |
diff --git a/src/java-common/org/xins/common/collections/expiry/ExpiryFolder.java b/src/java-common/org/xins/common/collections/expiry/ExpiryFolder.java
index fc4b1a041..91527d8ae 100644
--- a/src/java-common/org/xins/common/collections/expiry/ExpiryFolder.java
+++ b/src/java-common/org/xins/common/collections/expiry/E... | true | true | void tick() {
// Allocate memory _before_ entering any doorman, so if this fails, then
// we don't hold any locks
Map newRecentlyAccessed = new HashMap();
// First enter the protected area for '_recentlyAccessed', because that
// is the most difficult to enter
_recentlyAccessedD... | void tick() {
// Allocate memory _before_ entering any doorman, so if this fails, then
// we don't hold any locks
Map newRecentlyAccessed = new HashMap();
// First enter the protected area for '_recentlyAccessed', because that
// is the most difficult to enter
_recentlyAccessedD... |
diff --git a/src/swsec/Query.java b/src/swsec/Query.java
index bd486fc..9cbf121 100644
--- a/src/swsec/Query.java
+++ b/src/swsec/Query.java
@@ -1,41 +1,41 @@
package swsec;
import java.sql.*;
public class Query {
public static ResultSet SelectCountry() throws Exception
{
ResultSet rs = null;
Conn... | false | true | public static void insertReview(String school_id, String name, String review) throws Exception
{
Connection con = ConnectionDB.getConnection();
PreparedStatement stat = con.prepareStatement("INSERT INTO user_reviews VALUES (?,?,?)");
stat.setString(1, school_id);
stat.setString(2, name);
stat.setString(3, r... | public static void insertReview(String school_id, String name, String review) throws Exception
{
Connection con = ConnectionDB.getConnection();
PreparedStatement stat = con.prepareStatement("INSERT INTO user_reviews VALUES (?,?,?)");
stat.setInt(1,Integer.parseInt(school_id));
stat.setString(2, name);
stat.... |
diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostModel.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/hosts/HostModel.java
index 82b432a7..2574f603 100644
--- a/frontend/webadmin/modules/uicommonweb/src/m... | true | true | public void Test()
{
// Validate user input.
if ((Boolean) getIsPm().getEntity())
{
getCluster().setIsValid(true);
getCluster().ValidateSelectedItem(new IValidation[] { new NotEmptyValidation() });
ValidatePmModels();
}
if (!getManagem... | public void Test()
{
// Validate user input.
if ((Boolean) getIsPm().getEntity())
{
getCluster().setIsValid(true);
getCluster().ValidateSelectedItem(new IValidation[] { new NotEmptyValidation() });
ValidatePmModels();
}
if (!getManagem... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.