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/java/test/net/razorvine/pickle/test/ArrayConstructorTest.java b/java/test/net/razorvine/pickle/test/ArrayConstructorTest.java
index bbf2451..593dd3e 100644
--- a/java/test/net/razorvine/pickle/test/ArrayConstructorTest.java
+++ b/java/test/net/razorvine/pickle/test/ArrayConstructorTest.java
@@ -1,188 +1,18... | false | true | public void testChars()
{
ArrayConstructor ac=new ArrayConstructor();
// c/u
assertArrayEquals(new char[]{'A','�'}, (char[])ac.construct('c', 18, new byte[]{65,0,(byte)0xac,0x20}));
assertArrayEquals(new char[]{'A','�'}, (char[])ac.construct('u', 18, new byte[]{65,0,(byte)0xac,0x20}));
assertArrayEquals(... | public void testChars()
{
ArrayConstructor ac=new ArrayConstructor();
char EURO=(char)0x20ac;
// c/u
assertArrayEquals(new char[]{'A',EURO}, (char[])ac.construct('c', 18, new byte[]{65,0,(byte)0xac,0x20}));
assertArrayEquals(new char[]{'A',EURO}, (char[])ac.construct('u', 18, new byte[]{65,0,(byte)0xac,0... |
diff --git a/src/org/flowvisor/message/FVPortMod.java b/src/org/flowvisor/message/FVPortMod.java
index 95b968f..d6ff01a 100644
--- a/src/org/flowvisor/message/FVPortMod.java
+++ b/src/org/flowvisor/message/FVPortMod.java
@@ -1,50 +1,50 @@
package org.flowvisor.message;
import org.flowvisor.classifier.FVClassifier;
... | true | true | public void sliceFromController(FVClassifier fvClassifier, FVSlicer fvSlicer) {
// First, check if this port is in the slice
if (!fvSlicer.portInSlice(this.portNumber)) {
fvSlicer.sendMsg(FVMessageUtil.makeErrorMsg(
OFPortModFailedCode.OFPPMFC_BAD_PORT, this), fvClassifier);
return;
}
// Second, upd... | public void sliceFromController(FVClassifier fvClassifier, FVSlicer fvSlicer) {
// First, check if this port is in the slice
if (!fvSlicer.portInSlice(this.portNumber)) {
fvSlicer.sendMsg(FVMessageUtil.makeErrorMsg(
OFPortModFailedCode.OFPPMFC_BAD_PORT, this), fvClassifier);
return;
}
// Second, upd... |
diff --git a/examples/de/fhpotsdam/unfolding/examples/marker/connectionmarker/ConnectionMarker.java b/examples/de/fhpotsdam/unfolding/examples/marker/connectionmarker/ConnectionMarker.java
index 6c8c86e..50f911d 100644
--- a/examples/de/fhpotsdam/unfolding/examples/marker/connectionmarker/ConnectionMarker.java
+++ b/ex... | false | true | public void drawOuter(Map map) {
PGraphics pg = map.mapDisplay.getPG();
float[] xy1 = map.mapDisplay.getScreenPositionFromLocation(getLocation(0));
PVector v1 = new PVector(xy1[0], xy1[1]);
float[] xy2 = map.mapDisplay.getScreenPositionFromLocation(getLocation(1));
PVector v2 = new PVector(xy2[0], xy2[1]);
... | public void drawOuter(Map map) {
PGraphics pg = map.mapDisplay.getOuterPG();
float[] xy1 = map.mapDisplay.getObjectFromLocation(getLocation(0));
PVector v1 = new PVector(xy1[0], xy1[1]);
float[] xy2 = map.mapDisplay.getObjectFromLocation(getLocation(1));
PVector v2 = new PVector(xy2[0], xy2[1]);
pg.line(v1... |
diff --git a/programs/21_arrays/array_18_clone.java b/programs/21_arrays/array_18_clone.java
index 185dadb..65375c9 100644
--- a/programs/21_arrays/array_18_clone.java
+++ b/programs/21_arrays/array_18_clone.java
@@ -1,105 +1,105 @@
/*
array.clone
- one dim, array of ints, length = 0, full test
- two dims, arra... | false | true | main() {
int[] v1 = new int[0];
int[] v2 = v1.clone();
cloneTest(v1,v2);
int[][] m1 = new int[0][0];
int[][] m2 = m1.clone();
matrixCloneTest(m1,m2);
v1 = allocateAndInitArray(4,2);
cloneTest(v1, v1.clone());
m1 = new int[2][0];
matrixCloneTest(m1, m1.clone());
m1 = new... | main() {
int[] v1 = new int[0];
int[] v2 = (int[]) v1.clone();
cloneTest(v1,v2);
int[][] m1 = new int[0][0];
int[][] m2 = (int[][]) m1.clone();
matrixCloneTest(m1,m2);
v1 = allocateAndInitArray(4,2);
cloneTest(v1, (int[])v1.clone());
m1 = new int[2][0];
matrixCloneTest(m1, (... |
diff --git a/core/src/main/java/com/google/bitcoin/core/Transaction.java b/core/src/main/java/com/google/bitcoin/core/Transaction.java
index 40e7962..bf136a9 100644
--- a/core/src/main/java/com/google/bitcoin/core/Transaction.java
+++ b/core/src/main/java/com/google/bitcoin/core/Transaction.java
@@ -1,1081 +1,1081 @@
... | true | true | synchronized Sha256Hash hashTransactionForSignature(int inputIndex, byte[] connectedScript,
byte sigHashType) throws ScriptException {
// TODO: This whole separate method should be un-necessary if we fix how we deserialize sighash flags.
// The SIGHASH flags are used in the design of co... | synchronized Sha256Hash hashTransactionForSignature(int inputIndex, byte[] connectedScript,
byte sigHashType) throws ScriptException {
// TODO: This whole separate method should be un-necessary if we fix how we deserialize sighash flags.
// The SIGHASH flags are used in the design of co... |
diff --git a/src/test/org/apache/commons/jexl/JexlTest.java b/src/test/org/apache/commons/jexl/JexlTest.java
index 0182acaf..253c4949 100644
--- a/src/test/org/apache/commons/jexl/JexlTest.java
+++ b/src/test/org/apache/commons/jexl/JexlTest.java
@@ -1,758 +1,758 @@
/*
* Licensed to the Apache Software Foundation (A... | true | true | public void testExpression()
throws Exception
{
JexlContext jc = JexlHelper.createContext();
jc.getVars().put("foo", new Foo() );
jc.getVars().put("a", Boolean.TRUE);
jc.getVars().put("b", Boolean.FALSE);
jc.getVars().put("num", new Integer(5));
jc.getVar... | public void testExpression()
throws Exception
{
JexlContext jc = JexlHelper.createContext();
jc.getVars().put("foo", new Foo() );
jc.getVars().put("a", Boolean.TRUE);
jc.getVars().put("b", Boolean.FALSE);
jc.getVars().put("num", new Integer(5));
jc.getVar... |
diff --git a/MakeTestOmeTiff.java b/MakeTestOmeTiff.java
index fc7dcc2..f4f5c4b 100644
--- a/MakeTestOmeTiff.java
+++ b/MakeTestOmeTiff.java
@@ -1,555 +1,556 @@
//
// MakeTestOmeTiff.java
//
import java.awt.*;
import java.awt.image.BufferedImage;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
i... | true | true | public static void main(String[] args) throws FormatException, IOException {
boolean usage = false;
// parse command line arguments
String name = null;
String dist = null;
boolean scramble = false;
int numImages = 0;
int[] numPixels = null;
int[][] sizeX = null, sizeY = null;
... | public static void main(String[] args) throws FormatException, IOException {
boolean usage = false;
// parse command line arguments
String name = null;
String dist = null;
boolean scramble = false;
int numImages = 0;
int[] numPixels = null;
int[][] sizeX = null, sizeY = null;
... |
diff --git a/plugins/darep/plugins/UnchangedChecker.java b/plugins/darep/plugins/UnchangedChecker.java
index 572d77a..f317682 100644
--- a/plugins/darep/plugins/UnchangedChecker.java
+++ b/plugins/darep/plugins/UnchangedChecker.java
@@ -1,46 +1,46 @@
package darep.plugins;
import java.io.File;
import java.util.Arr... | true | true | public void setProperty(String key, String value)
throws IllegalArgumentException {
String expectedKey = "quiet-period-in-seconds";
if(key.equals(expectedKey) == false) {
throw new IllegalArgumentException("UnchangedChecker only accepts the property " + expectedKey);
}
if(value == null || value == "") {
... | public void setProperty(String key, String value)
throws IllegalArgumentException {
String expectedKey = "quiet-period-in-seconds";
if(key.equals(expectedKey) == false) {
throw new IllegalArgumentException("UnchangedChecker only accepts the property " + expectedKey);
}
if(value == null || value.trim().le... |
diff --git a/Projects/TLDR/src/com/datastore/TaskDatastore.java b/Projects/TLDR/src/com/datastore/TaskDatastore.java
index 4eb30f6..a32cfc3 100644
--- a/Projects/TLDR/src/com/datastore/TaskDatastore.java
+++ b/Projects/TLDR/src/com/datastore/TaskDatastore.java
@@ -1,262 +1,262 @@
package com.datastore;
import java.... | false | true | protected Void doInBackground(Void... v) {
try {
// GoalStructure gs_t1 = new GoalStructure();
// GoalStructure gs_t2= new GoalStructure();
// GoalStructure gs_t3= new GoalStructure();
// GoalStructure gs_t4 = new GoalStructure();
// List<GoalStructure> gs_polyline_t4;
// GoalStructure gs1_tDemo = new ... | protected Void doInBackground(Void... v) {
try {
// GoalStructure gs_t1 = new GoalStructure();
// GoalStructure gs_t2= new GoalStructure();
// GoalStructure gs_t3= new GoalStructure();
// GoalStructure gs_t4 = new GoalStructure();
// List<GoalStructure> gs_polyline_t4;
// GoalStructure gs1_tDemo = new ... |
diff --git a/src/replicatorg/drivers/gen3/Makerbot4GAlternateDriver.java b/src/replicatorg/drivers/gen3/Makerbot4GAlternateDriver.java
index 516aac0f..ac91d9be 100644
--- a/src/replicatorg/drivers/gen3/Makerbot4GAlternateDriver.java
+++ b/src/replicatorg/drivers/gen3/Makerbot4GAlternateDriver.java
@@ -1,234 +1,235 @@
... | true | true | public void queuePoint(Point5d p) throws RetryException {
// Filter away any hijacked axes from the given point.
// This is necessary to avoid taking deltas into account where we
// compare the relative p coordinate (usually 0) with the absolute
// currentPosition (which we get from the Motherboard).
Poin... | public void queuePoint(Point5d p) throws RetryException {
// Filter away any hijacked axes from the given point.
// This is necessary to avoid taking deltas into account where we
// compare the relative p coordinate (usually 0) with the absolute
// currentPosition (which we get from the Motherboard).
Poin... |
diff --git a/src/me/desht/scrollingmenusign/SMSPlayerListener.java b/src/me/desht/scrollingmenusign/SMSPlayerListener.java
index a52ef58..e0fb41f 100644
--- a/src/me/desht/scrollingmenusign/SMSPlayerListener.java
+++ b/src/me/desht/scrollingmenusign/SMSPlayerListener.java
@@ -1,142 +1,143 @@
package me.desht.scrolling... | true | true | private void tryToActivateSign(Block b, Player player) throws SMSException {
Sign sign = (Sign) b.getState();
if (!sign.getLine(0).equals("[sms]"))
return;
String name = sign.getLine(1);
String title = SMSUtils.parseColourSpec(player, sign.getLine(2));
if (name.isEmpty())
return;
if (SMSMenu.chec... | private void tryToActivateSign(Block b, Player player) throws SMSException {
Sign sign = (Sign) b.getState();
if (!sign.getLine(0).equals("[sms]"))
return;
String name = sign.getLine(1);
String title = SMSUtils.parseColourSpec(player, sign.getLine(2));
if (name.isEmpty())
return;
if (SMSMenu.chec... |
diff --git a/javafxdoc/src/com/sun/tools/xslhtml/XHTMLProcessingUtils.java b/javafxdoc/src/com/sun/tools/xslhtml/XHTMLProcessingUtils.java
index 2f331ad5d..cff1bf341 100644
--- a/javafxdoc/src/com/sun/tools/xslhtml/XHTMLProcessingUtils.java
+++ b/javafxdoc/src/com/sun/tools/xslhtml/XHTMLProcessingUtils.java
@@ -1,308 +... | true | true | public static void process(String xmlInputPath, InputStream xsltStream) throws Exception {
System.out.println(getString("transforming.to.html"));
// TODO code application logic here
//hack to get this to work on the mac
System.setProperty("javax.xml.parsers.DocumentBuilderFa... | public static void process(String xmlInputPath, InputStream xsltStream) throws Exception {
System.out.println(getString("transforming.to.html"));
// TODO code application logic here
//hack to get this to work on the mac
System.setProperty("javax.xml.parsers.DocumentBuilderFa... |
diff --git a/src/web/org/openmrs/web/controller/encounter/EncounterFormController.java b/src/web/org/openmrs/web/controller/encounter/EncounterFormController.java
index 3e49d51b..488378e8 100644
--- a/src/web/org/openmrs/web/controller/encounter/EncounterFormController.java
+++ b/src/web/org/openmrs/web/controller/enco... | false | true | protected Map<String, Object> referenceData(HttpServletRequest request, Object obj, Errors error) throws Exception {
Encounter encounter = (Encounter)obj;
// the generic returned key-value pair mapping
Map<String, Object> map = new HashMap<String, Object>();
// obsIds of obs that were edited
List<In... | protected Map<String, Object> referenceData(HttpServletRequest request, Object obj, Errors error) throws Exception {
Encounter encounter = (Encounter)obj;
// the generic returned key-value pair mapping
Map<String, Object> map = new HashMap<String, Object>();
// obsIds of obs that were edited
List<In... |
diff --git a/services/loanout/client/src/test/java/org/collectionspace/services/client/test/LoanoutAuthRefsTest.java b/services/loanout/client/src/test/java/org/collectionspace/services/client/test/LoanoutAuthRefsTest.java
index 954df1a57..ed87a83ed 100644
--- a/services/loanout/client/src/test/java/org/collectionspace... | true | true | public void readAndCheckAuthRefs(String testName) throws Exception {
if (logger.isDebugEnabled()) {
logger.debug(testBanner(testName, CLASS_NAME));
}
// Perform setup.
testSetup(STATUS_OK, ServiceRequestType.READ);
// Submit the request to the service and store ... | public void readAndCheckAuthRefs(String testName) throws Exception {
if (logger.isDebugEnabled()) {
logger.debug(testBanner(testName, CLASS_NAME));
}
// Perform setup.
testSetup(STATUS_OK, ServiceRequestType.READ);
// Submit the request to the service and store ... |
diff --git a/SeriesGuide/src/main/java/com/battlelancer/seriesguide/ui/ConnectTraktCredentialsFragment.java b/SeriesGuide/src/main/java/com/battlelancer/seriesguide/ui/ConnectTraktCredentialsFragment.java
index ab76f28a4..5cd019a37 100644
--- a/SeriesGuide/src/main/java/com/battlelancer/seriesguide/ui/ConnectTraktCrede... | true | true | public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
final Context context = getActivity().getApplicationContext();
final View layout = inflater.inflate(R.layout.trakt_credentials_dialog, container, false);
final FragmentManager fm =... | public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
final Context context = getActivity().getApplicationContext();
final View layout = inflater.inflate(R.layout.trakt_credentials_dialog, container, false);
final FragmentManager fm =... |
diff --git a/OVE/src/main/java/Mail/MailConfirmServlet.java b/OVE/src/main/java/Mail/MailConfirmServlet.java
index d6db4a4..7241e09 100644
--- a/OVE/src/main/java/Mail/MailConfirmServlet.java
+++ b/OVE/src/main/java/Mail/MailConfirmServlet.java
@@ -1,87 +1,87 @@
/*
* To change this template, choose Tools | Templates... | true | true | public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String token = request.getParameter("token");
Account a = reg.find(Long.parseLong(token));
a.setActivated(true);
reg.update(a);
response.... | public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
String token = request.getParameter("token");
Account a = reg.find(Long.parseLong(token));
a.setActivated(true);
reg.update(a);
response.... |
diff --git a/src/osm/src/main/java/org/geogit/osm/cli/commands/OSMDownload.java b/src/osm/src/main/java/org/geogit/osm/cli/commands/OSMDownload.java
index 2c778e87..d6345fe7 100644
--- a/src/osm/src/main/java/org/geogit/osm/cli/commands/OSMDownload.java
+++ b/src/osm/src/main/java/org/geogit/osm/cli/commands/OSMDownloa... | false | true | private void update() throws Exception {
GeoGIT geogit = cli.getGeogit();
final Optional<Ref> currHead = geogit.command(RefParse.class).setName(Ref.HEAD).call();
Preconditions.checkState(currHead.isPresent(), "Repository has no HEAD, can't update.");
Preconditions.checkState(currHead... | private void update() throws Exception {
GeoGIT geogit = cli.getGeogit();
final Optional<Ref> currHead = geogit.command(RefParse.class).setName(Ref.HEAD).call();
Preconditions.checkState(currHead.isPresent(), "Repository has no HEAD, can't update.");
Preconditions.checkState(currHead... |
diff --git a/ps3mediaserver/net/pms/network/HTTPServer.java b/ps3mediaserver/net/pms/network/HTTPServer.java
index 35d0abd4..846465ee 100644
--- a/ps3mediaserver/net/pms/network/HTTPServer.java
+++ b/ps3mediaserver/net/pms/network/HTTPServer.java
@@ -1,246 +1,246 @@
/*
* PS3 Media Server, for streaming any medias to... | true | true | public boolean start() throws IOException {
Enumeration<NetworkInterface> enm = NetworkInterface.getNetworkInterfaces();
InetAddress ia = null;
boolean found = false;
String fixedNetworkInterfaceName = PMS.getConfiguration().getNetworkInterface();
NetworkInterface fixedNI = NetworkInterface.getByName(fixe... | public boolean start() throws IOException {
Enumeration<NetworkInterface> enm = NetworkInterface.getNetworkInterfaces();
InetAddress ia = null;
boolean found = false;
String fixedNetworkInterfaceName = PMS.getConfiguration().getNetworkInterface();
NetworkInterface fixedNI = NetworkInterface.getByName(fixe... |
diff --git a/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java b/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java
index 4fb35cb82..b517204d0 100644
--- a/opentripplanner-api-webapp/src/main/java/org/opentripplanner/api/ws/PlanGenerator.java
+++ ... | false | true | private Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops) {
Itinerary itinerary = makeEmptyItinerary(path);
Leg leg = null;
CoordinateArrayListSequence coordinates = new CoordinateArrayListSequence();
double previousElevation = Double.MAX_VALUE;
dou... | private Itinerary generateItinerary(GraphPath path, boolean showIntermediateStops) {
Itinerary itinerary = makeEmptyItinerary(path);
Leg leg = null;
CoordinateArrayListSequence coordinates = new CoordinateArrayListSequence();
double previousElevation = Double.MAX_VALUE;
dou... |
diff --git a/SimpleWebServer/src/protocol/HttpRequest.java b/SimpleWebServer/src/protocol/HttpRequest.java
index 8f76b2c..31bf5c2 100644
--- a/SimpleWebServer/src/protocol/HttpRequest.java
+++ b/SimpleWebServer/src/protocol/HttpRequest.java
@@ -1,185 +1,185 @@
/*
* HttpRequest.java
* Oct 7, 2012
*
* Simple Web... | true | true | public static HttpRequest read(InputStream inputStream) throws Exception {
// We will fill this object with the data from input stream and return it
HttpRequest request = new HttpRequest();
InputStreamReader inStreamReader = new InputStreamReader(inputStream);
BufferedReader reader = new BufferedReader(inSt... | public static HttpRequest read(InputStream inputStream) throws Exception {
// We will fill this object with the data from input stream and return it
HttpRequest request = new HttpRequest();
InputStreamReader inStreamReader = new InputStreamReader(inputStream);
BufferedReader reader = new BufferedReader(inSt... |
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/CommitMessageBlock.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/CommitMessageBlock.java
index 6a364e043..eff3cd59d 100644
--- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/changes/CommitMessageBlock.java
+++ b/gerrit-... | true | true | public void display(Change.Id changeId, Boolean starred, String commitMessage) {
starPanel.clear();
if (changeId != null && starred != null && Gerrit.isSignedIn()) {
StarredChanges.Icon star = StarredChanges.createIcon(changeId, starred);
star.setStyleName(Gerrit.RESOURCES.css().changeScreenStarI... | public void display(Change.Id changeId, Boolean starred, String commitMessage) {
starPanel.clear();
if (changeId != null && starred != null && Gerrit.isSignedIn()) {
StarredChanges.Icon star = StarredChanges.createIcon(changeId, starred);
star.setStyleName(Gerrit.RESOURCES.css().changeScreenStarI... |
diff --git a/sdk/jme3-core/src/com/jme3/gde/core/assets/AssetDataObject.java b/sdk/jme3-core/src/com/jme3/gde/core/assets/AssetDataObject.java
index c55676a08..3ad3f3a49 100644
--- a/sdk/jme3-core/src/com/jme3/gde/core/assets/AssetDataObject.java
+++ b/sdk/jme3-core/src/com/jme3/gde/core/assets/AssetDataObject.java
@@ ... | true | true | public void saveAsset() throws IOException {
if (savable == null) {
Logger.getLogger(AssetDataObject.class.getName()).log(Level.WARNING, "Trying to save asset that has not been loaded before or does not support saving!");
return;
}
final Savable savable = this.savable... | public void saveAsset() throws IOException {
if (savable == null) {
Logger.getLogger(AssetDataObject.class.getName()).log(Level.WARNING, "Trying to save asset that has not been loaded before or does not support saving!");
return;
}
final Savable savable = this.savable... |
diff --git a/src/com/palmergames/bukkit/towny/command/TownyAdminCommand.java b/src/com/palmergames/bukkit/towny/command/TownyAdminCommand.java
index 661c46b..c23e790 100644
--- a/src/com/palmergames/bukkit/towny/command/TownyAdminCommand.java
+++ b/src/com/palmergames/bukkit/towny/command/TownyAdminCommand.java
@@ -1,6... | true | true | public boolean parseTownyAdminCommand(String[] split) throws TownyException {
if (split.length == 0) {
buildTAPanel();
for (String line : ta_panel) {
sender.sendMessage(line);
}
} else if (split[0].equalsIgnoreCase("?") || split[0].equalsIgnoreCase("help")) {
for (String line : ta_help) {
sen... | public boolean parseTownyAdminCommand(String[] split) throws TownyException {
if (split.length == 0) {
buildTAPanel();
for (String line : ta_panel) {
sender.sendMessage(line);
}
} else if (split[0].equalsIgnoreCase("?") || split[0].equalsIgnoreCase("help")) {
for (String line : ta_help) {
sen... |
diff --git a/src/java/net/spy/memcached/MemcachedClient.java b/src/java/net/spy/memcached/MemcachedClient.java
index 23e84e5..be025b4 100644
--- a/src/java/net/spy/memcached/MemcachedClient.java
+++ b/src/java/net/spy/memcached/MemcachedClient.java
@@ -1,913 +1,918 @@
// Copyright (c) 2006 Dustin Sallings <dustin@spy... | true | true | public Future<Map<String, Object>> asyncGetBulk(Collection<String> keys) {
final Map<String, Object> m=new ConcurrentHashMap<String, Object>();
// Break the gets down into groups by key
final Map<MemcachedNode, Collection<String>> chunks
=new HashMap<MemcachedNode, Collection<String>>();
final NodeLocator l... | public Future<Map<String, Object>> asyncGetBulk(Collection<String> keys) {
final Map<String, Object> m=new ConcurrentHashMap<String, Object>();
// Break the gets down into groups by key
final Map<MemcachedNode, Collection<String>> chunks
=new HashMap<MemcachedNode, Collection<String>>();
final NodeLocator l... |
diff --git a/plugins/org.eclipse.emf.eef.views/src/org/eclispe/emf/eef/views/helpers/NamingHelper.java b/plugins/org.eclipse.emf.eef.views/src/org/eclispe/emf/eef/views/helpers/NamingHelper.java
index b9b8bb67f..c4b45b0ce 100644
--- a/plugins/org.eclipse.emf.eef.views/src/org/eclispe/emf/eef/views/helpers/NamingHelper.... | false | true | public static String nameDiscriminator(ViewElement element) {
String baseName = element.getName();
StringBuffer buffer = new StringBuffer();
EObject container = element.eContainer();
while (container instanceof ViewElement) {
if (((ViewElement)container).getName().equals(baseName)) {
buffer.append('_');... | public static String nameDiscriminator(ViewElement element) {
String baseName = element.getName();
StringBuffer buffer = new StringBuffer();
EObject container = element.eContainer();
while (container instanceof ViewElement) {
if (((ViewElement)container).getName().equals(baseName)) {
buffer.append('_');... |
diff --git a/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/template/AddLabelWithRepetitionsController.java b/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/template/AddLabelWithRepetitionsController.java
index 4390371b8..32a6b22b1 100644
--- a/src/main/java/edu/northwestern/bioinforma... | true | true | protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {
String days = ServletRequestUtils.getRequiredStringParameter(request, "days");
String repetitions = ServletRequestUtils.getRequiredStringParameter(request, "repetitions");
... | protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {
String days = ServletRequestUtils.getRequiredStringParameter(request, "days");
String repetitions = ServletRequestUtils.getRequiredStringParameter(request, "repetitions");
... |
diff --git a/src/joshua/decoder/DecoderThread.java b/src/joshua/decoder/DecoderThread.java
index 3111ce98..75500b0a 100644
--- a/src/joshua/decoder/DecoderThread.java
+++ b/src/joshua/decoder/DecoderThread.java
@@ -1,389 +1,386 @@
/* This file is part of the Joshua Machine Translation System.
*
* Joshua is free so... | false | true | public HyperGraph translate(Sentence sentence, String oracleSentence)
throws IOException {
if (logger.isLoggable(Level.FINE))
logger.fine("now translating\n" + sentence.sentence());
Chart chart;
Lattice<Integer> input_lattice = sentence.lattice();
if (logger.isLoggable(Level.FINEST))
... | public HyperGraph translate(Sentence sentence, String oracleSentence)
throws IOException {
if (logger.isLoggable(Level.FINE))
logger.fine("now translating\n" + sentence.sentence());
Chart chart;
Lattice<Integer> input_lattice = sentence.lattice();
if (logger.isLoggable(Level.FINEST))
... |
diff --git a/org.openscada.ae.server.storage.jdbc/src/org/openscada/ae/server/storage/jdbc/internal/HqlConverter.java b/org.openscada.ae.server.storage.jdbc/src/org/openscada/ae/server/storage/jdbc/internal/HqlConverter.java
index 35331a5bc..c5a270569 100644
--- a/org.openscada.ae.server.storage.jdbc/src/org/openscada/... | true | true | static HqlResult toHql ( String field, String op, Object value )
{
HqlResult term = new HqlResult ();
term.hql = "(";
if ( isField ( field ) && properties.get ( field ) != Variant.class )
{
if ( "presence".equals ( op ) )
{
term.hql += "M."... | static HqlResult toHql ( String field, String op, Object value )
{
HqlResult term = new HqlResult ();
term.hql = "(";
if ( isField ( field ) && properties.get ( field ) != Variant.class )
{
if ( "presence".equals ( op ) )
{
term.hql += "M."... |
diff --git a/client/src/remuco/ui/screens/BluetoothScreen.java b/client/src/remuco/ui/screens/BluetoothScreen.java
index e9881b5..3a9b722 100644
--- a/client/src/remuco/ui/screens/BluetoothScreen.java
+++ b/client/src/remuco/ui/screens/BluetoothScreen.java
@@ -1,157 +1,157 @@
package remuco.ui.screens;
import javax... | true | true | public String validate() {
final String address = tfAddr.getString();
final String port = tfPort.getString();
final int search = cgSearch.getSelectedIndex();
if (address.length() > 0 && address.length() != 12) {
return "A Bluetooth address has exactly 12 characters!";
}
final char[] digits = address.t... | public String validate() {
final String address = tfAddr.getString();
final String port = tfPort.getString();
final int search = cgSearch.getSelectedIndex();
if (address.length() > 0 && address.length() != 12) {
return "A Bluetooth address has exactly 12 characters!";
}
final char[] digits = address.t... |
diff --git a/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java b/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java
index 2beff82b7..b9452e22b 100644
--- a/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java
+++ b/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java
@@ -1,290 +1,291 @@
/*
*... | true | true | public Point2D getDimension(final Point2D view) {
// TODO change so doesn't hold onto fo, area tree
Element svgRoot = element;
/* create an SVG area */
/* if width and height are zero, get the bounds of the content. */
try {
URL baseURL = new URL(getUserAgent().... | public Point2D getDimension(final Point2D view) {
// TODO change so doesn't hold onto fo, area tree
Element svgRoot = element;
/* create an SVG area */
/* if width and height are zero, get the bounds of the content. */
try {
URL baseURL = new URL(getUserAgent().... |
diff --git a/src/main/java/archimulator/sim/uncore/cache/replacement/helperThread/HelperThreadAwareLRUPolicy3.java b/src/main/java/archimulator/sim/uncore/cache/replacement/helperThread/HelperThreadAwareLRUPolicy3.java
index be7f9894..f95eae5c 100644
--- a/src/main/java/archimulator/sim/uncore/cache/replacement/helperT... | true | true | public CacheAccess<StateT> handleReplacement(MemoryHierarchyAccess access, int set, int tag) {
for (int stackPosition = this.getCache().getAssociativity() - 1; stackPosition >= 0; stackPosition--) {
int way = this.getWayInStackPosition(set, stackPosition);
CacheLine<StateT> line = th... | public CacheAccess<StateT> handleReplacement(MemoryHierarchyAccess access, int set, int tag) {
for (int stackPosition = this.getCache().getAssociativity() - 1; stackPosition >= 0; stackPosition--) {
int way = this.getWayInStackPosition(set, stackPosition);
CacheLine<StateT> line = th... |
diff --git a/jsf-ri/src/main/java/com/sun/faces/facelets/compiler/NamespaceManager.java b/jsf-ri/src/main/java/com/sun/faces/facelets/compiler/NamespaceManager.java
index e082f01db..df3154e3c 100644
--- a/jsf-ri/src/main/java/com/sun/faces/facelets/compiler/NamespaceManager.java
+++ b/jsf-ri/src/main/java/com/sun/faces... | true | true | public final NamespaceUnit toNamespaceUnit(TagLibrary library) {
NamespaceUnit unit = new NamespaceUnit(library);
if (this.namespaces.size() > 0) {
NS ns = null;
for (int i = this.namespaces.size() - 1; i >= 0; i--) {
ns = (NS) this.namespaces.get(i);
... | public NamespaceUnit toNamespaceUnit(TagLibrary library) {
NamespaceUnit unit = new NamespaceUnit(library);
if (this.namespaces.size() > 0) {
NS ns = null;
for (int i = this.namespaces.size() - 1; i >= 0; i--) {
ns = (NS) this.namespaces.get(i);
... |
diff --git a/src/main/java/water/api/Upload.java b/src/main/java/water/api/Upload.java
index e84830d89..021a43706 100644
--- a/src/main/java/water/api/Upload.java
+++ b/src/main/java/water/api/Upload.java
@@ -1,32 +1,32 @@
package water.api;
import com.google.gson.JsonObject;
public class Upload extends HTMLOn... | true | true | protected String build(Response response) {
return "<script type='text/javascript' src='jquery.fileupload/js/vendor/jquery.ui.widget.js'></script>"
+ "<script type='text/javascript' src='jquery.fileupload/js/jquery.iframe-transport.js'></script>"
+ "<script type='text/javascript' src='jquery.fileupload/js... | protected String build(Response response) {
return "<script type='text/javascript' src='jquery.fileupload/js/vendor/jquery.ui.widget.js'></script>"
+ "<script type='text/javascript' src='jquery.fileupload/js/jquery.iframe-transport.js'></script>"
+ "<script type='text/javascript' src='jquery.fileupload/js... |
diff --git a/tv_grab_nl_java/src/org/vanbest/xmltv/ProgrammeDetails.java b/tv_grab_nl_java/src/org/vanbest/xmltv/ProgrammeDetails.java
index 2638c5c..2d4b9f7 100644
--- a/tv_grab_nl_java/src/org/vanbest/xmltv/ProgrammeDetails.java
+++ b/tv_grab_nl_java/src/org/vanbest/xmltv/ProgrammeDetails.java
@@ -1,126 +1,127 @@
pa... | false | true | public void fixup(Programme p) {
this.titel = org.apache.commons.lang.StringEscapeUtils.unescapeHtml(titel);
this.genre = org.apache.commons.lang.StringEscapeUtils.unescapeHtml(genre);
this.synop = org.apache.commons.lang.StringEscapeUtils.unescapeHtml(synop);
if ((synop == null || synop.isEmpty()) && ( genre ... | public void fixup(Programme p) {
this.titel = org.apache.commons.lang.StringEscapeUtils.unescapeHtml(titel);
this.genre = org.apache.commons.lang.StringEscapeUtils.unescapeHtml(genre);
this.synop = org.apache.commons.lang.StringEscapeUtils.unescapeHtml(synop);
this.synop = this.synop.replaceAll("<br>", " ").
... |
diff --git a/src/main/java/de/cismet/cids/server/search/AbstractCidsServerSearch.java b/src/main/java/de/cismet/cids/server/search/AbstractCidsServerSearch.java
index de8658c5..1cc6f470 100644
--- a/src/main/java/de/cismet/cids/server/search/AbstractCidsServerSearch.java
+++ b/src/main/java/de/cismet/cids/server/search... | true | true | public void setValidClassesFromStrings(final Collection<String> classes) throws IllegalArgumentException {
for (final String classString : classes) {
final String[] sa = classString.split("@");
if ((sa == null) || (sa.length != 2)) {
throw new IllegalArgumentException... | public void setValidClassesFromStrings(final Collection<String> classes) throws IllegalArgumentException {
classesInSnippetsPerDomain.clear();
for (final String classString : classes) {
final String[] sa = classString.split("@");
if ((sa == null) || (sa.length != 2)) {
... |
diff --git a/src/com/dedaulus/cinematty/activities/Pages/WhatsNewPage.java b/src/com/dedaulus/cinematty/activities/Pages/WhatsNewPage.java
index 07170b8..b01f19d 100644
--- a/src/com/dedaulus/cinematty/activities/Pages/WhatsNewPage.java
+++ b/src/com/dedaulus/cinematty/activities/Pages/WhatsNewPage.java
@@ -1,248 +1,24... | true | true | public void onLocationChanged(Location location) {
boolean justStarted = false;
if (locationFix == null) {
justStarted = true;
locationFix = location;
timeLocationFix = location.getTime();
}
if (!justStarted) {
if (location.getTime() -... | public void onLocationChanged(Location location) {
boolean justStarted = false;
if (locationFix == null) {
justStarted = true;
locationFix = location;
timeLocationFix = location.getTime();
}
if (!justStarted) {
if (location.getTime() -... |
diff --git a/src/main/javassist/CtBehavior.java b/src/main/javassist/CtBehavior.java
index 798ecab..528e14b 100644
--- a/src/main/javassist/CtBehavior.java
+++ b/src/main/javassist/CtBehavior.java
@@ -1,1097 +1,1097 @@
/*
* Javassist, a Java-bytecode translator toolkit.
* Copyright (C) 1999-2007 Shigeru Chiba. All... | true | true | public void insertAfter(String src, boolean asFinally)
throws CannotCompileException
{
CtClass cc = declaringClass;
cc.checkModify();
ConstPool pool = methodInfo.getConstPool();
CodeAttribute ca = methodInfo.getCodeAttribute();
if (ca == null)
throw ne... | public void insertAfter(String src, boolean asFinally)
throws CannotCompileException
{
CtClass cc = declaringClass;
cc.checkModify();
ConstPool pool = methodInfo.getConstPool();
CodeAttribute ca = methodInfo.getCodeAttribute();
if (ca == null)
throw ne... |
diff --git a/hale/eu.esdihumboldt.hale.rcp.wizards.functions.core/src/eu/esdihumboldt/hale/rcp/wizards/functions/core/reference/CreateReferenceWizardFactory.java b/hale/eu.esdihumboldt.hale.rcp.wizards.functions.core/src/eu/esdihumboldt/hale/rcp/wizards/functions/core/reference/CreateReferenceWizardFactory.java
index 6... | true | true | public boolean supports(AlignmentInfo selection) {
if (selection.getSourceItemCount() != 1 || selection.getTargetItemCount() != 1) {
return false;
}
SchemaItem target = selection.getFirstTargetItem();
SchemaItem source = selection.getFirstSourceItem();
if (!target.isAttribute() && !source.isAttribute()) {... | public boolean supports(AlignmentInfo selection) {
if (selection.getSourceItemCount() != 1 || selection.getTargetItemCount() != 1) {
return false;
}
SchemaItem target = selection.getFirstTargetItem();
SchemaItem source = selection.getFirstSourceItem();
if (!target.isAttribute() || !source.isAttribute()) {... |
diff --git a/gnu/testlet/java/util/logging/LogRecord/getMillis.java b/gnu/testlet/java/util/logging/LogRecord/getMillis.java
index ba2f5e4e..dfc9e623 100644
--- a/gnu/testlet/java/util/logging/LogRecord/getMillis.java
+++ b/gnu/testlet/java/util/logging/LogRecord/getMillis.java
@@ -1,52 +1,54 @@
// Tags: JDK1.4
// ... | false | true | public void test(TestHarness th)
{
LogRecord rec1, rec2;
// Check #1.
rec1 = new LogRecord(Level.CONFIG, "foo");
try
{
Thread.sleep(4);
}
catch (InterruptedException _)
{
}
rec2 = new LogRecord(Level.INFO, "bar");
th.check(rec1.getMillis() != rec2.getMill... | public void test(TestHarness th)
{
LogRecord rec1, rec2;
// Check #1.
rec1 = new LogRecord(Level.CONFIG, "foo");
try
{
long start = System.currentTimeMillis();
while (start == System.currentTimeMillis())
Thread.sleep(1);
}
catch (InterruptedException _)
{
}
re... |
diff --git a/patches/target-build/server/pentaho/src/pt/webdetails/cdf/NavigateComponent.java b/patches/target-build/server/pentaho/src/pt/webdetails/cdf/NavigateComponent.java
index d460cc68..b3dc194e 100755
--- a/patches/target-build/server/pentaho/src/pt/webdetails/cdf/NavigateComponent.java
+++ b/patches/target-bui... | true | true | private String getContentListJSON(String _solution, String _path) throws JSONException {
Document navDoc = solutionRepository.getSolutionTree(ISolutionRepository.ACTION_EXECUTE);
// Get it and build the tree
JSONObject contentListJSON = new JSONObject();
Node tree = navDoc.getRoo... | private String getContentListJSON(String _solution, String _path) throws JSONException {
Document navDoc = solutionRepository.getSolutionTree(ISolutionRepository.ACTION_EXECUTE);
// Get it and build the tree
JSONObject contentListJSON = new JSONObject();
Node tree = navDoc.getRoo... |
diff --git a/tregmine/src/info/tregmine/commands/Tp.java b/tregmine/src/info/tregmine/commands/Tp.java
index 5d706a8..8c5725c 100644
--- a/tregmine/src/info/tregmine/commands/Tp.java
+++ b/tregmine/src/info/tregmine/commands/Tp.java
@@ -1,66 +1,66 @@
package info.tregmine.commands;
import java.util.List;
import ... | true | true | public static void run(Tregmine _plugin, TregminePlayer _player, String[] _args){
Player pto = _plugin.getServer().getPlayer(_args[0]);
if (pto == null) {
_player.sendMessage(ChatColor.RED + "Can no find a user with name" + _args[0] );
return;
}
info.tregmine.api.TregminePlayer to = _plugin.tregminePlay... | public static void run(Tregmine _plugin, TregminePlayer _player, String[] _args){
Player pto = _plugin.getServer().getPlayer(_args[0]);
if (pto == null) {
_player.sendMessage(ChatColor.RED + "Can no find a user with name" + _args[0] );
return;
}
info.tregmine.api.TregminePlayer to = _plugin.tregminePlay... |
diff --git a/modules/core/src/main/java/org/apache/sandesha2/util/RMMsgCreator.java b/modules/core/src/main/java/org/apache/sandesha2/util/RMMsgCreator.java
index 4c8601eb..50ae58fe 100644
--- a/modules/core/src/main/java/org/apache/sandesha2/util/RMMsgCreator.java
+++ b/modules/core/src/main/java/org/apache/sandesha2/... | true | true | public static RMMsgContext createCreateSeqMsg(RMSBean rmsBean, RMMsgContext applicationRMMsg) throws AxisFault {
if(log.isDebugEnabled()) log.debug("Entry: RMMsgCreator::createCreateSeqMsg " + applicationRMMsg);
MessageContext applicationMsgContext = applicationRMMsg.getMessageContext();
if (applicationMsgCon... | public static RMMsgContext createCreateSeqMsg(RMSBean rmsBean, RMMsgContext applicationRMMsg) throws AxisFault {
if(log.isDebugEnabled()) log.debug("Entry: RMMsgCreator::createCreateSeqMsg " + applicationRMMsg);
MessageContext applicationMsgContext = applicationRMMsg.getMessageContext();
if (applicationMsgCon... |
diff --git a/src/GPEBTWTweak.java b/src/GPEBTWTweak.java
index c26040e..f17eefe 100644
--- a/src/GPEBTWTweak.java
+++ b/src/GPEBTWTweak.java
@@ -1,467 +1,467 @@
package net.minecraft.src;
import java.util.*;
import java.io.*;
import java.lang.reflect.*;
public class GPEBTWTweak extends FCAddOn
{
public sta... | true | true | public void Initialize()
{
FCAddOnHandler.LogMessage("Grom PE's BTWTweak v" + tweakVersion + " is now going to tweak the hell out of this.");
try
{
Class.forName("net.minecraft.client.Minecraft");
proxy = new GPEBTWTweakProxyClient();
}
catch(ClassNotFoundException e)
{
pro... | public void Initialize()
{
FCAddOnHandler.LogMessage("Grom PE's BTWTweak v" + tweakVersion + " is now going to tweak the hell out of this.");
try
{
Class.forName("net.minecraft.client.Minecraft");
proxy = new GPEBTWTweakProxyClient();
}
catch(ClassNotFoundException e)
{
pro... |
diff --git a/org.eclipse.jubula.examples.aut.dvdtool/src/org/eclipse/jubula/examples/aut/dvdtool/control/DvdLoadAction.java b/org.eclipse.jubula.examples.aut.dvdtool/src/org/eclipse/jubula/examples/aut/dvdtool/control/DvdLoadAction.java
index d5bc30fc9..dd675512c 100644
--- a/org.eclipse.jubula.examples.aut.dvdtool/src... | false | true | public void actionPerformed(ActionEvent ev) {
try {
final InputStream is =
getClass().getClassLoader().getResourceAsStream(
"resources/default.dvd");
if (is != null) {
DvdManager.singleton().open(m_controller, is);
... | public void actionPerformed(ActionEvent ev) {
try {
final InputStream is =
getClass().getClassLoader().getResourceAsStream(
"resources/default.dvd"); //$NON-NLS-1$
if (is != null) {
DvdManager.singleton().open(m_control... |
diff --git a/lab5/src/map/SimpleHashMap.java b/lab5/src/map/SimpleHashMap.java
index 8066b92..8077bde 100644
--- a/lab5/src/map/SimpleHashMap.java
+++ b/lab5/src/map/SimpleHashMap.java
@@ -1,144 +1,144 @@
package map;
import java.util.Iterator;
public class SimpleHashMap<K,V> implements Map<K,V> {
public st... | true | true | private Entry<K,V> find(int index, K key) {
Iterator itr = new LinkIterator(index);
while(itr.hasNext()) {
Entry<K,V> e = itr.next();
if (e.key == key) {
return e;
}
}
return null;
}
| private Entry<K,V> find(int index, K key) {
LinkIterator itr = new LinkIterator(index);
while(itr.hasNext()) {
Entry<K,V> e = itr.next();
if (e.key == key) {
return e;
}
}
return null;
}
|
diff --git a/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/action/DynamicEventAction.java b/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/action/DynamicEventAction.java
index ecbe62d90..ce0082a68 100644
--- a/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore... | true | true | protected ActionForward executeAction(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception
{
if (request.getParameter(Constants.REFRESH_EVENT_GRID) != null)
{
request.setAttribute(Constants.REFRESH_EVENT_GRID, request
.getParameter(Constants... | protected ActionForward executeAction(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception
{
if (request.getParameter(Constants.REFRESH_EVENT_GRID) != null)
{
request.setAttribute(Constants.REFRESH_EVENT_GRID, request
.getParameter(Constants... |
diff --git a/src/newsrack/util/URLCanonicalizer.java b/src/newsrack/util/URLCanonicalizer.java
index 69c2328..0e7d947 100644
--- a/src/newsrack/util/URLCanonicalizer.java
+++ b/src/newsrack/util/URLCanonicalizer.java
@@ -1,42 +1,42 @@
package newsrack.util;
// This class takes urls of news stories so that we can mo... | true | true | public static String canonicalize(String url)
{
if (url.indexOf("google.com/") != -1) {
int proxyUrlStart = url.lastIndexOf("http://");
if (proxyUrlStart != -1) {
url = url.substring(proxyUrlStart);
url = url.substring(0, url.lastIndexOf("&cid="));
}
}
// Do not use 'else if'
if (!url.startsW... | public static String canonicalize(String url)
{
if (url.indexOf("news.google.com/") != -1) {
int proxyUrlStart = url.lastIndexOf("http://");
if (proxyUrlStart != -1) {
url = url.substring(proxyUrlStart);
url = url.substring(0, url.lastIndexOf("&cid="));
}
}
// Do not use 'else if'
if (!url.st... |
diff --git a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/plugin/AbstractPlugin.java b/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/plugin/AbstractPlugin.java
index ccf30348..f75ff683 100644
--- a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/plugin/AbstractPlugin.java
+++ b/main/src/jp/ac/osaka_u/ist/sel/metri... | true | true | final synchronized void executionWrapper() {
assert (null == this.reporter) : "Illegal state : previous reporter was not removed.";
try {
this.reporter = new DefaultProgressReporter(this);
} catch (final AlreadyConnectedException e1) {
assert (null == this.reporter) :... | final synchronized void executionWrapper() {
assert (null == this.reporter) : "Illegal state : previous reporter was not removed.";
try {
this.reporter = new DefaultProgressReporter(this);
} catch (final AlreadyConnectedException e1) {
assert (null == this.reporter) :... |
diff --git a/maven-amps-plugin/src/main/java/com/atlassian/maven/plugins/amps/RunMojo.java b/maven-amps-plugin/src/main/java/com/atlassian/maven/plugins/amps/RunMojo.java
index af2f6441..3a9a595f 100644
--- a/maven-amps-plugin/src/main/java/com/atlassian/maven/plugins/amps/RunMojo.java
+++ b/maven-amps-plugin/src/main/... | true | true | protected void doExecute() throws MojoExecutionException, MojoFailureException
{
final MavenGoals goals = getMavenGoals();
Product ctx;
if (isBlank(instanceId))
{
ctx = getProductContexts(goals).get(instanceId);
if (ctx == null)
{
... | protected void doExecute() throws MojoExecutionException, MojoFailureException
{
final MavenGoals goals = getMavenGoals();
Product ctx;
if (!isBlank(instanceId))
{
ctx = getProductContexts(goals).get(instanceId);
if (ctx == null)
{
... |
diff --git a/src/master/src/org/drftpd/vfs/DirectoryHandle.java b/src/master/src/org/drftpd/vfs/DirectoryHandle.java
index 7c248b23..f5234e8f 100644
--- a/src/master/src/org/drftpd/vfs/DirectoryHandle.java
+++ b/src/master/src/org/drftpd/vfs/DirectoryHandle.java
@@ -1,798 +1,809 @@
/*
* This file is part of DrFTPD, ... | false | true | public void remerge(List<LightRemoteInode> files, RemoteSlave rslave)
throws IOException, SlaveUnavailableException {
Iterator<LightRemoteInode> sourceIter = files.iterator();
// source comes pre-sorted from the slave
List<InodeHandle> destinationList = null;
try {
destinationList = new ArrayList<InodeHa... | public void remerge(List<LightRemoteInode> files, RemoteSlave rslave)
throws IOException, SlaveUnavailableException {
Iterator<LightRemoteInode> sourceIter = files.iterator();
// source comes pre-sorted from the slave
List<InodeHandle> destinationList = null;
try {
destinationList = new ArrayList<InodeHa... |
diff --git a/spring-integration-ip/src/test/java/org/springframework/integration/ip/tcp/TcpOutboundGatewayTests.java b/spring-integration-ip/src/test/java/org/springframework/integration/ip/tcp/TcpOutboundGatewayTests.java
index 0058d9dba3..cf5e64a666 100644
--- a/spring-integration-ip/src/test/java/org/springframework... | false | true | public void testGoodNetTimeout() throws Exception {
final int port = SocketUtils.findAvailableServerSocket();
final CountDownLatch latch = new CountDownLatch(1);
final AtomicBoolean done = new AtomicBoolean();
Executors.newSingleThreadExecutor().execute(new Runnable() {
public void run() {
try {
Se... | public void testGoodNetTimeout() throws Exception {
final int port = SocketUtils.findAvailableServerSocket();
final CountDownLatch latch = new CountDownLatch(1);
final AtomicBoolean done = new AtomicBoolean();
Executors.newSingleThreadExecutor().execute(new Runnable() {
public void run() {
try {
Se... |
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Errors.java b/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Errors.java
index a48c86706..71f3b4869 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/corelib/components/Errors.java
+++ b/tapestry-core/src/m... | true | true | void beginRender(MarkupWriter writer)
{
if (tracker == null)
throw new RuntimeException(InternalMessages.encloseErrorsInForm());
if (!tracker.getHasErrors())
return;
writer.element("div", "class", className);
// Inner div for the banner text
wri... | void beginRender(MarkupWriter writer)
{
if (tracker == null)
throw new RuntimeException(InternalMessages.encloseErrorsInForm());
if (!tracker.getHasErrors())
return;
writer.element("div", "class", className);
// Inner div for the banner text
wri... |
diff --git a/src/edu/ucla/cens/awserver/jee/servlet/SensorUploadServlet.java b/src/edu/ucla/cens/awserver/jee/servlet/SensorUploadServlet.java
index 7fdba75f..9f450ac5 100644
--- a/src/edu/ucla/cens/awserver/jee/servlet/SensorUploadServlet.java
+++ b/src/edu/ucla/cens/awserver/jee/servlet/SensorUploadServlet.java
@@ -1... | true | true | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// Map data from the inbound request to our internal format
AwRequest awRequest = _awRequestCreator.createFrom(request);
try {
// Execute feature-specific logic
_contro... | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// Map data from the inbound request to our internal format
AwRequest awRequest = _awRequestCreator.createFrom(request);
try {
// Execute feature-specific logic
_contro... |
diff --git a/src/test/java/org/weymouth/demo/model/DataTest.java b/src/test/java/org/weymouth/demo/model/DataTest.java
index d51d2ad..fcf9320 100755
--- a/src/test/java/org/weymouth/demo/model/DataTest.java
+++ b/src/test/java/org/weymouth/demo/model/DataTest.java
@@ -1,17 +1,18 @@
package org.weymouth.demo.model;
... | true | true | public void test(){
String probe = "probe";
Data d = new Data(probe);
String data = d.getData();
Assert.assertNotNull(data);
Assert.assertEquals(probe, data);
}
| public void test(){
String probe = "probe";
Data d = new Data(probe);
String data = d.getData();
data = null;
Assert.assertNotNull(data);
Assert.assertEquals(probe, data);
}
|
diff --git a/belajar-restful-web/src/test/java/com/artivisi/belajar/restful/ui/controller/HomepageControllerTestIT.java b/belajar-restful-web/src/test/java/com/artivisi/belajar/restful/ui/controller/HomepageControllerTestIT.java
index c78ccd0..cd8dcd1 100644
--- a/belajar-restful-web/src/test/java/com/artivisi/belajar/... | true | true | public void testGetAppinfo() {
with().header("Accept", "application/json")
.auth().form(username, password, new FormAuthConfig(login, "j_username", "j_password"))
.expect()
.statusCode(200)
.body("profileDefault", equalTo("development"),
... | public void testGetAppinfo() {
with().header("Accept", "application/json")
.auth().form(username, password, new FormAuthConfig(login, "j_username", "j_password"))
.expect()
.statusCode(200)
.body("profileDefault", equalTo("development"),
... |
diff --git a/core/vdmj/src/main/java/org/overturetool/vdmj/scheduler/CTMainThread.java b/core/vdmj/src/main/java/org/overturetool/vdmj/scheduler/CTMainThread.java
index 20fb792464..24512ad550 100644
--- a/core/vdmj/src/main/java/org/overturetool/vdmj/scheduler/CTMainThread.java
+++ b/core/vdmj/src/main/java/org/overtur... | true | true | public void body()
{
try
{
for (Statement statement: test)
{
if (statement instanceof TraceVariableStatement)
{
// Just update the context...
statement.eval(ctxt);
}
else
{
result.add(statement.eval(ctxt));
}
}
result.add(Verdict.PASSED);
}
catch (ContextEx... | public void body()
{
try
{
for (Statement statement: test)
{
if (statement instanceof TraceVariableStatement)
{
// Just update the context...
statement.eval(ctxt);
}
else
{
result.add(statement.eval(ctxt));
}
}
result.add(Verdict.PASSED);
}
catch (ContextEx... |
diff --git a/org.eclipse.mylyn.wikitext.tracwiki.ui/src/org/eclipse/mylyn/internal/wikitext/tracwiki/ui/editors/TracWikiTaskEditorExtension.java b/org.eclipse.mylyn.wikitext.tracwiki.ui/src/org/eclipse/mylyn/internal/wikitext/tracwiki/ui/editors/TracWikiTaskEditorExtension.java
index a05d013f..64952cd8 100644
--- a/org... | true | true | protected void configureDefaultInternalLinkPattern(TaskRepository taskRepository, MarkupLanguage markupLanguage) {
String url = taskRepository.getRepositoryUrl();
if (url != null && url.length() > 0) {
if (!url.endsWith("/")) {
url = url + "/";
}
markupLanguage.setInternalLinkPattern(url + "wiki/{0}")... | protected void configureDefaultInternalLinkPattern(TaskRepository taskRepository, MarkupLanguage markupLanguage) {
String url = taskRepository.getRepositoryUrl();
if (url != null && url.length() > 0) {
if (!url.endsWith("/")) {
url = url + "/";
}
// bug 247772: set the default wiki link URL for the re... |
diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/TestAll.java b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/TestAll.java
index 94d5a8f3d..2c2cfebd9 100644
--- a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dar... | true | true | public static Test suite() {
TestSuite suite = new TestSuite("Tests in " + TestAll.class.getPackage().getName());
suite.addTestSuite(DartCoreTest.class);
suite.addTestSuite(PluginXMLTest.class);
// suite.addTest(com.google.dart.tools.core.formatter.TestAll.suite());
// suite.addTest(com.google.dart... | public static Test suite() {
TestSuite suite = new TestSuite("Tests in " + TestAll.class.getPackage().getName());
suite.addTestSuite(DartCoreTest.class);
suite.addTestSuite(PluginXMLTest.class);
// suite.addTest(com.google.dart.tools.core.formatter.TestAll.suite());
// suite.addTest(com.google.dart... |
diff --git a/common/logisticspipes/routing/ServerRouter.java b/common/logisticspipes/routing/ServerRouter.java
index 743fc764..5d05b5f4 100644
--- a/common/logisticspipes/routing/ServerRouter.java
+++ b/common/logisticspipes/routing/ServerRouter.java
@@ -1,586 +1,585 @@
/**
* Copyright (c) Krapht, 2011
*
* "Lo... | true | true | private void CreateRouteTable() {
//Dijkstra!
int routingTableSize =ServerRouter.getBiggestSimpleID();
if(routingTableSize == 0) {
// routingTableSize=SimpleServiceLocator.routerManager.getRouterCount();
routingTableSize=SharedLSADatabase.size(); // deliberatly ignoring concurrent access, either the ... | private void CreateRouteTable() {
//Dijkstra!
int routingTableSize =ServerRouter.getBiggestSimpleID();
if(routingTableSize == 0) {
// routingTableSize=SimpleServiceLocator.routerManager.getRouterCount();
routingTableSize=SharedLSADatabase.size(); // deliberatly ignoring concurrent access, either the ... |
diff --git a/TFC_Shared/src/TFC/Items/ItemMeltedMetal.java b/TFC_Shared/src/TFC/Items/ItemMeltedMetal.java
index 55049657b..f166d3e41 100644
--- a/TFC_Shared/src/TFC/Items/ItemMeltedMetal.java
+++ b/TFC_Shared/src/TFC/Items/ItemMeltedMetal.java
@@ -1,136 +1,140 @@
package TFC.Items;
import java.util.List;
import... | true | true | public void onUpdate(ItemStack is, World world, Entity entity, int i, boolean isSelected)
{
super.onUpdate(is,world,entity,i,isSelected);
if (is.hasTagCompound())
{
NBTTagCompound stackTagCompound = is.getTagCompound();
//System.out.println(stackTagCompound.getFloat("temperature"));
if(stackTagCompoun... | public void onUpdate(ItemStack is, World world, Entity entity, int i, boolean isSelected)
{
super.onUpdate(is,world,entity,i,isSelected);
if (is.hasTagCompound())
{
NBTTagCompound stackTagCompound = is.getTagCompound();
//System.out.println(stackTagCompound.getFloat("temperature"));
if(stackTagCompoun... |
diff --git a/src/SQLParser.java b/src/SQLParser.java
index a6e38d2..62efb76 100644
--- a/src/SQLParser.java
+++ b/src/SQLParser.java
@@ -1,138 +1,140 @@
import java.util.Arrays;
import java.util.Scanner;
import database.Database;
import java.util.ArrayList;
public class SQLParser
{
private Database DB;
... | true | true | public String query(String query) {
// queryType is set depending on what kind of query is given (e.g. INSERT, DELETE, etc)
// INSERT = 0
// SELECT = 1
// DELETE = 2
// UPDATE = 3
int queryType = -1;
// this is just a check to see if it's the first word or not... | public String query(String query) {
// queryType is set depending on what kind of query is given (e.g. INSERT, DELETE, etc)
// INSERT = 0
// SELECT = 1
// DELETE = 2
// UPDATE = 3
int queryType = -1;
// this is just a check to see if it's the first word or not... |
diff --git a/commons/src/main/java/org/wikimedia/commons/UploadService.java b/commons/src/main/java/org/wikimedia/commons/UploadService.java
index cfa25ac3..dfc0c68b 100644
--- a/commons/src/main/java/org/wikimedia/commons/UploadService.java
+++ b/commons/src/main/java/org/wikimedia/commons/UploadService.java
@@ -1,293... | true | true | protected void onHandleIntent(Intent intent) {
MWApi api = app.getApi();
ApiResult result;
RemoteViews notificationView;
Contribution contribution;
InputStream file = null;
contribution = (Contribution) intent.getSerializableExtra("dummy-data");
String notif... | protected void onHandleIntent(Intent intent) {
MWApi api = app.getApi();
ApiResult result;
RemoteViews notificationView;
Contribution contribution;
InputStream file = null;
contribution = (Contribution) intent.getSerializableExtra("dummy-data");
String notif... |
diff --git a/src/me/ellbristow/WhooshingWell/WhooshingWell.java b/src/me/ellbristow/WhooshingWell/WhooshingWell.java
index 94b65ca..85359fa 100644
--- a/src/me/ellbristow/WhooshingWell/WhooshingWell.java
+++ b/src/me/ellbristow/WhooshingWell/WhooshingWell.java
@@ -1,1073 +1,1073 @@
package me.ellbristow.WhooshingWell;... | true | true | public boolean onCommand (CommandSender sender, Command cmd, String commandLabel, String[] args) {
if (commandLabel.equalsIgnoreCase("ww")) {
if (args.length == 0) {
String version = getDescription().getVersion();
sender.sendMessage(ChatColor.GOLD + "WhooshingWell... | public boolean onCommand (CommandSender sender, Command cmd, String commandLabel, String[] args) {
if (commandLabel.equalsIgnoreCase("ww")) {
if (args.length == 0) {
String version = getDescription().getVersion();
sender.sendMessage(ChatColor.GOLD + "WhooshingWell... |
diff --git a/drools-jsr94/src/test/java/org/jcp/jsr94/tck/AllTests.java b/drools-jsr94/src/test/java/org/jcp/jsr94/tck/AllTests.java
index 4df4b9a70..10e2fa72b 100644
--- a/drools-jsr94/src/test/java/org/jcp/jsr94/tck/AllTests.java
+++ b/drools-jsr94/src/test/java/org/jcp/jsr94/tck/AllTests.java
@@ -1,102 +1,103 @@
/*... | true | true | public static Test suite() {
// System.setProperty( "jsr94.tck.configuration",
// "src/test/resources/org/drools/jsr94/tck" );
TestSuite suite = new TestSuite( "JSR 94 Test Compatability Kit" );
suite.addTestSuite( ApiSignatureTest.class );
//suite.addTestS... | public static Test suite() {
// System.setProperty( "jsr94.tck.configuration",
// "src/test/resources/org/drools/jsr94/tck" );
TestSuite suite = new TestSuite( "JSR 94 Test Compatability Kit" );
suite.addTestSuite( ApiSignatureTest.class );
//JBRULES-139 TC... |
diff --git a/src/main/java/de/minestar/FifthElement/commands/bank/cmdBank.java b/src/main/java/de/minestar/FifthElement/commands/bank/cmdBank.java
index 97c3538..90b6482 100644
--- a/src/main/java/de/minestar/FifthElement/commands/bank/cmdBank.java
+++ b/src/main/java/de/minestar/FifthElement/commands/bank/cmdBank.java... | true | true | public void execute(String[] args, Player player) {
Bank bank = null;
// OWN HOME
if (args.length == 0) {
bank = Core.bankManager.getBank(player.getName());
if (bank == null) {
PlayerUtils.sendError(player, pluginName, "Du hast keine Bank!");
... | public void execute(String[] args, Player player) {
Bank bank = null;
// OWN HOME
if (args.length == 0) {
bank = Core.bankManager.getBank(player.getName());
if (bank == null) {
PlayerUtils.sendError(player, pluginName, "Du hast keine Bank!");
... |
diff --git a/src/gov/nist/core/NameValue.java b/src/gov/nist/core/NameValue.java
index 53c2560d..30f2a64e 100755
--- a/src/gov/nist/core/NameValue.java
+++ b/src/gov/nist/core/NameValue.java
@@ -1,222 +1,226 @@
/*
* Conditions Of Use
*
* This software was developed by employees of the National Institute of
*... | false | true | public String encode() {
if (name != null && value != null && !isFlagParameter) {
if (GenericObject.isMySubclass(value.getClass())) {
GenericObject gv = (GenericObject) value;
return name + separator + quotes + gv.encode() + quotes;
} else if (GenericObjectList.isMySubclass(value.getClass())) {
Gen... | public String encode() {
if (name != null && value != null && !isFlagParameter) {
if (GenericObject.isMySubclass(value.getClass())) {
GenericObject gv = (GenericObject) value;
return name + separator + quotes + gv.encode() + quotes;
} else if (GenericObjectList.isMySubclass(value.getClass())) {
Gen... |
diff --git a/OsmAnd/src/net/osmand/access/AccessibilityPlugin.java b/OsmAnd/src/net/osmand/access/AccessibilityPlugin.java
index 63a5fc2e..21084e37 100644
--- a/OsmAnd/src/net/osmand/access/AccessibilityPlugin.java
+++ b/OsmAnd/src/net/osmand/access/AccessibilityPlugin.java
@@ -1,115 +1,115 @@
package net.osmand.acces... | true | true | public void settingsActivityCreate(final SettingsActivity activity, final PreferenceScreen screen) {
PreferenceScreen grp = screen.getPreferenceManager().createPreferenceScreen(activity);
grp.setTitle(R.string.accessibility_preferences);
grp.setSummary(R.string.accessibility_preferences_descr);
grp.setKey("acc... | public void settingsActivityCreate(final SettingsActivity activity, final PreferenceScreen screen) {
PreferenceScreen grp = screen.getPreferenceManager().createPreferenceScreen(activity);
grp.setTitle(R.string.accessibility_preferences);
grp.setSummary(R.string.accessibility_preferences_descr);
grp.setKey("acc... |
diff --git a/utils/MakeTestOmeTiff.java b/utils/MakeTestOmeTiff.java
index 3656df494..fc7dcc2bb 100644
--- a/utils/MakeTestOmeTiff.java
+++ b/utils/MakeTestOmeTiff.java
@@ -1,555 +1,555 @@
//
// MakeTestOmeTiff.java
//
import java.awt.*;
import java.awt.image.BufferedImage;
import java.awt.geom.Rectangle2D;
im... | true | true | public static void main(String[] args) throws FormatException, IOException {
boolean usage = false;
// parse command line arguments
String name = null;
String dist = null;
boolean scramble = false;
int numImages = 0;
int[] numPixels = null;
int[][] sizeX = null, sizeY = null;
... | public static void main(String[] args) throws FormatException, IOException {
boolean usage = false;
// parse command line arguments
String name = null;
String dist = null;
boolean scramble = false;
int numImages = 0;
int[] numPixels = null;
int[][] sizeX = null, sizeY = null;
... |
diff --git a/src/com/android/calendar/AlertService.java b/src/com/android/calendar/AlertService.java
index f2859507..3719f6b3 100644
--- a/src/com/android/calendar/AlertService.java
+++ b/src/com/android/calendar/AlertService.java
@@ -1,454 +1,454 @@
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Li... | true | true | void processMessage(Message msg) {
Bundle bundle = (Bundle) msg.obj;
// On reboot, update the notification bar with the contents of the
// CalendarAlerts table.
String action = bundle.getString("action");
if (action.equals(Intent.ACTION_BOOT_COMPLETED)
... | void processMessage(Message msg) {
Bundle bundle = (Bundle) msg.obj;
// On reboot, update the notification bar with the contents of the
// CalendarAlerts table.
String action = bundle.getString("action");
if (action.equals(Intent.ACTION_BOOT_COMPLETED)
... |
diff --git a/src/main/java/org/basex/core/Proc.java b/src/main/java/org/basex/core/Proc.java
index 9753a1799..0dfa9bc7e 100644
--- a/src/main/java/org/basex/core/Proc.java
+++ b/src/main/java/org/basex/core/Proc.java
@@ -1,269 +1,269 @@
package org.basex.core;
import static org.basex.core.Text.*;
import java.io.IO... | true | true | public final boolean exec(final Context ctx, final OutputStream os) {
// check if data reference is available
final Data data = ctx.data;
if(data == null && (flags & DATAREF) != 0) return error(PROCNODB);
// check permissions
if(!ctx.perm(flags & 0xFF, data != null ? data.meta : null)) {
fi... | public final boolean exec(final Context ctx, final OutputStream os) {
// check if data reference is available
final Data data = ctx.data;
if(data == null && (flags & DATAREF) != 0) return error(PROCNODB);
// check permissions
if(!ctx.perm(flags & 0xFF, data != null ? data.meta : null)) {
fi... |
diff --git a/jarjar/src/main/com/tonicsystems/jarjar/util/ClassHeaderReader.java b/jarjar/src/main/com/tonicsystems/jarjar/util/ClassHeaderReader.java
index 8a051c8..d3de71c 100644
--- a/jarjar/src/main/com/tonicsystems/jarjar/util/ClassHeaderReader.java
+++ b/jarjar/src/main/com/tonicsystems/jarjar/util/ClassHeaderRea... | true | true | public ClassHeaderReader(InputStream in) throws IOException {
try {
DataInputStream data = new DataInputStream(in);
int magic = data.readInt();
int minorVersion = data.readUnsignedShort();
int majorVersion = data.readUnsignedShort();
if (magic != 0... | public ClassHeaderReader(InputStream in) throws IOException {
try {
DataInputStream data = new DataInputStream(in);
int magic = data.readInt();
int minorVersion = data.readUnsignedShort();
int majorVersion = data.readUnsignedShort();
if (magic != 0... |
diff --git a/src/main/java/org/waarp/openr66/protocol/utils/FileUtils.java b/src/main/java/org/waarp/openr66/protocol/utils/FileUtils.java
index 17102a78..e57fcf72 100644
--- a/src/main/java/org/waarp/openr66/protocol/utils/FileUtils.java
+++ b/src/main/java/org/waarp/openr66/protocol/utils/FileUtils.java
@@ -1,634 +1,... | true | true | public final static R66File getFile(WaarpInternalLogger logger, R66Session session, String filenameSrc,
boolean isPreStart, boolean isSender, boolean isThrough, R66File file) throws OpenR66RunnerErrorException {
String filename;
logger.debug("PreStart: "+isPreStart);
logger.debug("Dir is: "+session.getDir().... | public final static R66File getFile(WaarpInternalLogger logger, R66Session session, String filenameSrc,
boolean isPreStart, boolean isSender, boolean isThrough, R66File file) throws OpenR66RunnerErrorException {
String filename;
logger.debug("PreStart: "+isPreStart);
logger.debug("Dir is: "+session.getDir().... |
diff --git a/JMapMatchingGUI/src/org/life/sl/mapmatching/EdgeStatistics.java b/JMapMatchingGUI/src/org/life/sl/mapmatching/EdgeStatistics.java
index 3b4eef3..f2c99b8 100644
--- a/JMapMatchingGUI/src/org/life/sl/mapmatching/EdgeStatistics.java
+++ b/JMapMatchingGUI/src/org/life/sl/mapmatching/EdgeStatistics.java
@@ -1,1... | true | true | public void init(RouteFinder rf, ArrayList<Point> gpsPoints) {
pointEdgeDist = new double[gpsPoints.size()];
rf.setEdgeStatistics(this);
// first, clear the statistics:
edgePoints.clear();
// then, loop over all GPS points:
int i = 0;
for (Point p : gpsPoints) {
Edge e = rf.getNearestEdge(p);
addPo... | public void init(RouteFinder rf, ArrayList<Point> gpsPoints) {
pointEdgeDist = new double[gpsPoints.size()];
rf.setEdgeStatistics(this);
// first, clear the statistics:
edgePoints.clear();
// then, loop over all GPS points:
int i = 0;
for (Point p : gpsPoints) {
Edge e = rf.getNearestEdge(p);
addPo... |
diff --git a/taskwarrior-androidapp/src/org/svij/taskwarriorapp/db/TaskBaseAdapter.java b/taskwarrior-androidapp/src/org/svij/taskwarriorapp/db/TaskBaseAdapter.java
index bc43497..0a1630d 100644
--- a/taskwarrior-androidapp/src/org/svij/taskwarriorapp/db/TaskBaseAdapter.java
+++ b/taskwarrior-androidapp/src/org/svij/ta... | false | true | public View getView(int position, View convertView, ViewGroup parent) {
View v = convertView;
ViewHolder holder;
if (v == null) {
LayoutInflater vi = (LayoutInflater) activity
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
int type = getItemViewType(position);
switch (type) {
case TYPE_RO... | public View getView(int position, View convertView, ViewGroup parent) {
View v = convertView;
ViewHolder holder;
if (v == null) {
LayoutInflater vi = (LayoutInflater) activity
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
int type = getItemViewType(position);
switch (type) {
case TYPE_RO... |
diff --git a/src/ee/mattijagula/mikker/upload/Uploader.java b/src/ee/mattijagula/mikker/upload/Uploader.java
index 916cd41..4790a8d 100644
--- a/src/ee/mattijagula/mikker/upload/Uploader.java
+++ b/src/ee/mattijagula/mikker/upload/Uploader.java
@@ -1,79 +1,79 @@
package ee.mattijagula.mikker.upload;
import ee.matti... | true | true | private void doUpload(final byte content[], ProgressListener progressListener)
throws IOException, UploadFailedException {
HttpClient client = new HttpClient();
PostMethod post = new PostMethod(ctx.getUploadUrl());
post.addRequestHeader("User-Agent", ctx.getUserAgent());
... | private void doUpload(final byte content[], ProgressListener progressListener)
throws IOException, UploadFailedException {
HttpClient client = new HttpClient();
PostMethod post = new PostMethod(ctx.getUploadUrl());
post.addRequestHeader("User-Agent", ctx.getUserAgent());
... |
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/config/rules/CheckClasses.java b/container/openejb-core/src/main/java/org/apache/openejb/config/rules/CheckClasses.java
index 5036a0ef79..a723a94331 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/config/rules/CheckClasses.java
++... | false | true | private boolean isValidInterface(RemoteBean b, Class clazz, Class beanClass, String tag) {
if (clazz.equals(beanClass)) {
fail(b, "xml." + tag + ".beanClass", clazz.getName());
} else if (!clazz.isInterface()) {
fail(b, "xml." + tag + ".notInterface", clazz.getName());
... | private boolean isValidInterface(RemoteBean b, Class clazz, Class beanClass, String tag) {
if (clazz.equals(beanClass)) {
fail(b, "xml." + tag + ".beanClass", clazz.getName());
} else if (!clazz.isInterface()) {
fail(b, "xml." + tag + ".notInterface", clazz.getName());
... |
diff --git a/src/me/rigi/acceptrules/AcceptRulesMain.java b/src/me/rigi/acceptrules/AcceptRulesMain.java
index 96c2ba1..0468ecc 100644
--- a/src/me/rigi/acceptrules/AcceptRulesMain.java
+++ b/src/me/rigi/acceptrules/AcceptRulesMain.java
@@ -1,127 +1,126 @@
package me.rigi.acceptrules;
import java.util.ArrayList;
i... | true | true | public void onEnable() {
PluginManager pm = getServer().getPluginManager();
AcceptRulesPreferences acceptrulespreferences = new AcceptRulesPreferences();
acceptrulespreferences.createDir();
getConfig().options().copyDefaults(true);
saveConfig();
config = getConfig();
AcceptedMsg = config.getString("... | public void onEnable() {
PluginManager pm = getServer().getPluginManager();
AcceptRulesPreferences acceptrulespreferences = new AcceptRulesPreferences();
acceptrulespreferences.createDir();
getConfig().options().copyDefaults(true);
saveConfig();
config = getConfig();
AcceptedMsg = config.getString("... |
diff --git a/src/com/albaniliu/chuangxindemo/ImageShow.java b/src/com/albaniliu/chuangxindemo/ImageShow.java
index 7d58a47..4bb124a 100644
--- a/src/com/albaniliu/chuangxindemo/ImageShow.java
+++ b/src/com/albaniliu/chuangxindemo/ImageShow.java
@@ -1,114 +1,114 @@
package com.albaniliu.chuangxindemo;
import java.io... | true | true | private void toggleFlowBar() {
int delta = mFlowBar.getHeight();
mHanler.removeCallbacks(mToggleRunnable);
if (mFlowBar.getVisibility() == View.INVISIBLE
|| mFlowBar.getVisibility() == View.GONE) {
mFlowBar.setVisibility(View.VISIBLE);
mFooter.setVisibility(View.... | private void toggleFlowBar() {
int delta = mFlowBar.getHeight();
mHanler.removeCallbacks(mToggleRunnable);
if (mFlowBar.getVisibility() == View.INVISIBLE
|| mFlowBar.getVisibility() == View.GONE) {
mFlowBar.setVisibility(View.VISIBLE);
mFooter.setVisibility(View.... |
diff --git a/src/main/java/com/laytonsmith/aliasengine/functions/Meta.java b/src/main/java/com/laytonsmith/aliasengine/functions/Meta.java
index b32dd19f..c7aadd9c 100644
--- a/src/main/java/com/laytonsmith/aliasengine/functions/Meta.java
+++ b/src/main/java/com/laytonsmith/aliasengine/functions/Meta.java
@@ -1,371 +1,... | true | true | public Construct exec(int line_num, File f, final CommandSender p, Construct... args) throws CancelCommandException, ConfigRuntimeException {
if (args[1].val() == null || args[1].val().length() <= 0 || args[1].val().charAt(0) != '/') {
throw new ConfigRuntimeException("The first char... | public Construct exec(int line_num, File f, final CommandSender p, Construct... args) throws CancelCommandException, ConfigRuntimeException {
if (args[1].val() == null || args[1].val().length() <= 0 || args[1].val().charAt(0) != '/') {
throw new ConfigRuntimeException("The first char... |
diff --git a/src/gui/TerminalTab.java b/src/gui/TerminalTab.java
index d55e1a5..6f934c0 100644
--- a/src/gui/TerminalTab.java
+++ b/src/gui/TerminalTab.java
@@ -1,43 +1,45 @@
package gui;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.io.PrintStream;
import javax.swing.BoxLayout;
import ... | false | true | public TerminalTab() {
setLayout(new BoxLayout(this, BoxLayout.LINE_AXIS));
textArea = new JTextArea(4, 20);
textArea.setEditable(true);
JScrollPane scrollPane = new JScrollPane(textArea,
ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);
scrollPane.set... | public TerminalTab() {
// Setup miscallenous
setLayout(new BoxLayout(this, BoxLayout.LINE_AXIS));
// Setup text area
textArea = new JTextArea(4, 20);
textArea.setEditable(true);
JScrollPane scrollPane = new JScrollPane(textArea,
ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
ScrollPaneConstants.H... |
diff --git a/src/dna/io/filesystem/Dir.java b/src/dna/io/filesystem/Dir.java
index a18fb93c..24bb4c2d 100644
--- a/src/dna/io/filesystem/Dir.java
+++ b/src/dna/io/filesystem/Dir.java
@@ -1,99 +1,99 @@
package dna.io.filesystem;
import java.io.File;
import dna.io.filter.PrefixFilenameFilter;
/**
*
* Gives... | true | true | public static String getAggregatedMetricDataDir(String dir, long timestamp,
String name) {
return Dir.getAggregationBatchDir(dir, timestamp) + name
+ Dir.delimiter;
}
| public static String getAggregatedMetricDataDir(String dir, long timestamp,
String name) {
return Dir.getAggregationBatchDir(dir, timestamp)
+ Prefix.metricDataDir + name + Dir.delimiter;
}
|
diff --git a/ChanServ/LogCleaner.java b/ChanServ/LogCleaner.java
index ae4ef86..4998710 100644
--- a/ChanServ/LogCleaner.java
+++ b/ChanServ/LogCleaner.java
@@ -1,158 +1,159 @@
/*
* Created on 25.12.2007
*
* This class is involved in moving logs from files on disk to a database,
* where they can be more easi... | false | true | public void run() {
// create temp log folder if it doesn't already exist:
File tempFolder = new File(TEMP_LOGS_FOLDER);
if (!tempFolder.exists()) {
boolean success = (tempFolder.mkdir());
if (!success){
Log.log("Error: unable to create folder: " + TEMP_LOGS_FOLDER);
return ;
} else {
Log.lo... | public void run() {
// create temp log folder if it doesn't already exist:
File tempFolder = new File(TEMP_LOGS_FOLDER);
if (!tempFolder.exists()) {
boolean success = (tempFolder.mkdir());
if (!success){
Log.log("Error: unable to create folder: " + TEMP_LOGS_FOLDER);
return ;
} else {
Log.lo... |
diff --git a/msv/src/com/sun/msv/driver/textui/Driver.java b/msv/src/com/sun/msv/driver/textui/Driver.java
index 63d4f102..5c52f45a 100644
--- a/msv/src/com/sun/msv/driver/textui/Driver.java
+++ b/msv/src/com/sun/msv/driver/textui/Driver.java
@@ -1,336 +1,339 @@
/*
* @(#)$Id$
*
* Copyright 2001 Sun Microsystems,... | false | true | public static void main( String[] args ) throws Exception
{
final Vector fileNames = new Vector();
String grammarName = null;
boolean dump=false;
boolean verbose = false;
boolean warning = false;
boolean dtdValidation=false;
if( args.length==0 )
{
System.out.println( localize(MSG_USAGE) );
... | public static void main( String[] args ) throws Exception
{
final Vector fileNames = new Vector();
String grammarName = null;
boolean dump=false;
boolean verbose = false;
boolean warning = false;
boolean dtdValidation=false;
if( args.length==0 )
{
System.out.println( localize(MSG_USAGE) );
... |
diff --git a/src/minecraft/assemblyline/common/machine/belt/TileEntityConveyorBelt.java b/src/minecraft/assemblyline/common/machine/belt/TileEntityConveyorBelt.java
index a22a8d84..fa57016d 100644
--- a/src/minecraft/assemblyline/common/machine/belt/TileEntityConveyorBelt.java
+++ b/src/minecraft/assemblyline/common/ma... | false | true | public void updatePowerTransferRange()
{
int maximumTransferRange = 0;
for (int i = 0; i < 6; i++)
{
ForgeDirection direction = ForgeDirection.getOrientation(i);
TileEntity tileEntity = worldObj.getBlockTileEntity(this.xCoord + direction.offsetX, this.yCoord + direction.offsetY, this.zCoord + direction.o... | public void updatePowerTransferRange()
{
int maximumTransferRange = 0;
for (int i = 0; i < 6; i++)
{
ForgeDirection direction = ForgeDirection.getOrientation(i);
TileEntity tileEntity = worldObj.getBlockTileEntity(this.xCoord + direction.offsetX, this.yCoord + direction.offsetY, this.zCoord + direction.o... |
diff --git a/src/com/sun/gi/utils/nio/NIOSocketManager.java b/src/com/sun/gi/utils/nio/NIOSocketManager.java
index 1baddf159..de722675b 100644
--- a/src/com/sun/gi/utils/nio/NIOSocketManager.java
+++ b/src/com/sun/gi/utils/nio/NIOSocketManager.java
@@ -1,336 +1,338 @@
package com.sun.gi.utils.nio;
import java.io.IO... | true | true | public void run() {
log.entering("NIOSocketManager", "run");
while (true) { // until shutdown() is called
synchronized (initiatorQueue) {
for (NIOConnection conn : initiatorQueue) {
try {
conn.registerConnect(selector);
}
catch (IOException ex) {
ex.printStackTrace();
}
... | public void run() {
log.entering("NIOSocketManager", "run");
while (true) { // until shutdown() is called
synchronized (initiatorQueue) {
for (NIOConnection conn : initiatorQueue) {
try {
conn.registerConnect(selector);
}
catch (IOException ex) {
ex.printStackTrace();
}
... |
diff --git a/desktop/src/net/mms_projects/copyit/ui/swt/forms/PreferencesDialog.java b/desktop/src/net/mms_projects/copyit/ui/swt/forms/PreferencesDialog.java
index 614732f..d2bc087 100644
--- a/desktop/src/net/mms_projects/copyit/ui/swt/forms/PreferencesDialog.java
+++ b/desktop/src/net/mms_projects/copyit/ui/swt/form... | false | true | protected void createContents() {
/*
* Definitions
*/
// Shell
this.shell = new Shell(this.getParent(), SWT.DIALOG_TRIM);
shell.setLayout(new FormLayout());
// Elements
TabFolder tabFolder = new TabFolder(shell, SWT.NONE);
FormData fd_tabFolder = new FormData();
fd_tabFolder.left = new FormAttac... | protected void createContents() {
/*
* Definitions
*/
// Shell
this.shell = new Shell(this.getParent(), SWT.DIALOG_TRIM);
shell.setLayout(new FormLayout());
// Elements
TabFolder tabFolder = new TabFolder(shell, SWT.NONE);
FormData fd_tabFolder = new FormData();
fd_tabFolder.left = new FormAttac... |
diff --git a/ninja-core/src/main/java/ninja/NinjaImpl.java b/ninja-core/src/main/java/ninja/NinjaImpl.java
index 30899ae8a..45d8482c3 100644
--- a/ninja-core/src/main/java/ninja/NinjaImpl.java
+++ b/ninja-core/src/main/java/ninja/NinjaImpl.java
@@ -1,84 +1,84 @@
package ninja;
import java.lang.annotation.Annotation... | true | true | public void processAnnotations(Route route) {
Class controller = route.getController();
String controllerMethod = route.getControllerMethod();
try {
for (Annotation annotation : controller.getMethod(controllerMethod,
Context.class).getAnnotations()) {
if (annotation.annotationType().equals(FilterW... | public void processAnnotations(Route route) {
Class controller = route.getController();
String controllerMethod = route.getControllerMethod();
try {
for (Annotation annotation : controller.getMethod(controllerMethod,
Context.class).getAnnotations()) {
if (annotation.annotationType().equals(FilterW... |
diff --git a/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java b/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java
index 63717fca..32d8ef97 100644
--- a/Essentials/src/com/earth2me/essentials/commands/EssentialsCommand.java
+++ b/Essentials/src/com/earth2me/essentials/commands/... | true | true | protected User getPlayer(final Server server, final String[] args, final int pos, final boolean getOffline) throws NoSuchFieldException, NotEnoughArgumentsException
{
if (args.length <= pos)
{
throw new NotEnoughArgumentsException();
}
final User user = ess.getUser(args[pos]);
if (user != null)
{
if... | protected User getPlayer(final Server server, final String[] args, final int pos, final boolean getOffline) throws NoSuchFieldException, NotEnoughArgumentsException
{
if (args.length <= pos)
{
throw new NotEnoughArgumentsException();
}
if (args[0].isEmpty())
{
throw new NoSuchFieldException(_("playerN... |
diff --git a/app/src/com/pewpewarrows/electricsheep/net/OAuthAuthenticator.java b/app/src/com/pewpewarrows/electricsheep/net/OAuthAuthenticator.java
index 3c55542..d0472e0 100644
--- a/app/src/com/pewpewarrows/electricsheep/net/OAuthAuthenticator.java
+++ b/app/src/com/pewpewarrows/electricsheep/net/OAuthAuthenticator.... | true | true | protected void extractInfoFromActiviy() {
try {
Method m = mAccountActivityKlass.getMethod("getAccountType",
new Class[] {});
mAccountType = (String) m.invoke(null);
m = mAccountActivityKlass.getMethod("getOAuthTokenType",
new Class[] {});
mOAuthTokenType = (String) m.invoke(null);
m = mAc... | protected void extractInfoFromActivity() {
try {
Method m = mAccountActivityKlass.getMethod("getAccountType",
new Class[] {});
mAccountType = (String) m.invoke(null);
m = mAccountActivityKlass.getMethod("getOAuthTokenType",
new Class[] {});
mOAuthTokenType = (String) m.invoke(null);
m = mA... |
diff --git a/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/Repo2RunnableTask.java b/bundles/org.eclipse.equinox.p2.repository.tools/src_ant/org/eclipse/equinox/p2/internal/repository/tools/tasks/Repo2RunnableTask.java
index f8fb89e26..5c84ff036 100644
---... | true | true | public void execute() throws BuildException {
try {
prepareSourceRepos();
application.initializeRepos(null);
List ius = prepareIUs();
if (ius == null || ius.size() == 0)
throw new BuildException("Need to specify either a non-empty source metadata repository or a valid list of IUs.");
application.s... | public void execute() throws BuildException {
try {
prepareSourceRepos();
application.initializeRepos(null);
List ius = prepareIUs();
if ((ius == null || ius.size() == 0) && (sourceRepos == null || sourceRepos.isEmpty()))
throw new BuildException("Need to specify either a non-empty source metadata re... |
diff --git a/src/toritools/io/Importer.java b/src/toritools/io/Importer.java
index 27902eb..18792d6 100644
--- a/src/toritools/io/Importer.java
+++ b/src/toritools/io/Importer.java
@@ -1,218 +1,218 @@
package toritools.io;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import jav... | false | true | public static Entity importEntity(final File file, final HashMap<String, String> instanceMap)
throws FileNotFoundException {
VariableCase entityMap = ToriMapIO.readVariables(file);
if (instanceMap != null)
entityMap.getVariables().putAll(instanceMap);
Entity e = new E... | public static Entity importEntity(final File file, final HashMap<String, String> instanceMap)
throws FileNotFoundException {
VariableCase entityMap = ToriMapIO.readVariables(file);
if (instanceMap != null)
entityMap.getVariables().putAll(instanceMap);
Entity e = new E... |
diff --git a/Session/src/au/edu/uts/eng/remotelabs/schedserver/session/impl/SessionExpiryChecker.java b/Session/src/au/edu/uts/eng/remotelabs/schedserver/session/impl/SessionExpiryChecker.java
index 16af68e0..95ce49a5 100644
--- a/Session/src/au/edu/uts/eng/remotelabs/schedserver/session/impl/SessionExpiryChecker.java
... | true | true | public void run()
{
org.hibernate.Session db = null;
try
{
if ((db = DataAccessActivator.getNewSession()) == null)
{
this.logger.warn("Unable to obtain a database session, for rig session status checker. Ensure the " +
"S... | public void run()
{
org.hibernate.Session db = null;
try
{
if ((db = DataAccessActivator.getNewSession()) == null)
{
this.logger.warn("Unable to obtain a database session, for rig session status checker. Ensure the " +
"S... |
diff --git a/src/test/java/fr/jamgotchian/abcd/core/controlflow/RPSTTest.java b/src/test/java/fr/jamgotchian/abcd/core/controlflow/RPSTTest.java
index 98fbf08..79051d7 100644
--- a/src/test/java/fr/jamgotchian/abcd/core/controlflow/RPSTTest.java
+++ b/src/test/java/fr/jamgotchian/abcd/core/controlflow/RPSTTest.java
@@ ... | true | true | public void testCase1() throws IOException {
BasicBlock a = new BasicBlockTestImpl("a");
BasicBlock b = new BasicBlockTestImpl("b");
BasicBlock c = new BasicBlockTestImpl("c");
BasicBlock d = new BasicBlockTestImpl("d");
BasicBlock e = new BasicBlockTestImpl("e");
Bas... | public void testCase1() throws IOException {
BasicBlock a = new BasicBlockTestImpl("a");
BasicBlock b = new BasicBlockTestImpl("b");
BasicBlock c = new BasicBlockTestImpl("c");
BasicBlock d = new BasicBlockTestImpl("d");
BasicBlock e = new BasicBlockTestImpl("e");
Bas... |
diff --git a/android/src/com/freshplanet/flurry/functions/analytics/LogErrorFunction.java b/android/src/com/freshplanet/flurry/functions/analytics/LogErrorFunction.java
index 73c9a15..e42f5de 100644
--- a/android/src/com/freshplanet/flurry/functions/analytics/LogErrorFunction.java
+++ b/android/src/com/freshplanet/flur... | true | true | public FREObject call(FREContext arg0, FREObject[] arg1) {
String errorId = null;
try {
errorId = arg1[0].getAsString();
} catch (IllegalStateException e) {
e.printStackTrace();
} catch (FRETypeMismatchException e) {
e.printStackTrace();
} catch (FREInvalidObjectException e) {
e.printStack... | public FREObject call(FREContext arg0, FREObject[] arg1) {
String errorId = null;
try {
errorId = arg1[0].getAsString();
} catch (IllegalStateException e) {
e.printStackTrace();
} catch (FRETypeMismatchException e) {
e.printStackTrace();
} catch (FREInvalidObjectException e) {
e.printStack... |
diff --git a/src/core/org/pathvisio/view/Label.java b/src/core/org/pathvisio/view/Label.java
index 2efe1c6e..f0daf0a8 100644
--- a/src/core/org/pathvisio/view/Label.java
+++ b/src/core/org/pathvisio/view/Label.java
@@ -1,259 +1,260 @@
// PathVisio,
// a tool for data visualization and analysis using Biological Pathwa... | true | true | public void doDraw(Graphics2D g)
{
if(g2d != null) g2d.dispose();
g2d = (Graphics2D)g.create();
if(isSelected()) {
g.setColor(selectColor);
} else {
g.setColor(gdata.getColor());
}
Font f = getVFont();
g.setFont(f);
Rectangle area = getBoxBounds(true).getBounds();
Shape outline... | public void doDraw(Graphics2D g)
{
if(g2d != null) g2d.dispose();
g2d = (Graphics2D)g.create();
if(isSelected()) {
g.setColor(selectColor);
} else {
g.setColor(gdata.getColor());
}
Font f = getVFont();
g.setFont(f);
Rectangle area = getBoxBounds(true).getBounds();
Shape outline... |
diff --git a/src/play/modules/redis/RedisPlugin.java b/src/play/modules/redis/RedisPlugin.java
index f8c2569..5358915 100644
--- a/src/play/modules/redis/RedisPlugin.java
+++ b/src/play/modules/redis/RedisPlugin.java
@@ -1,142 +1,142 @@
package play.modules.redis;
import java.net.URI;
import java.net.URISyntaxExce... | true | true | RedisConnectionInfo(String redisUrl, String timeoutStr) {
URI redisUri;
try {
redisUri = new URI(redisUrl);
} catch (URISyntaxException e) {
throw new ConfigurationException("Bad configuration for redis: unable to parse redis url (" + redisUrl + ")");
}
... | RedisConnectionInfo(String redisUrl, String timeoutStr) {
URI redisUri;
try {
redisUri = new URI(redisUrl);
} catch (URISyntaxException e) {
throw new ConfigurationException("Bad configuration for redis: unable to parse redis url (" + redisUrl + ")");
}
... |
diff --git a/platform/configuration/platform/src/main/java/org/mayocat/configuration/gestalt/EntitiesGestaltConfigurationSource.java b/platform/configuration/platform/src/main/java/org/mayocat/configuration/gestalt/EntitiesGestaltConfigurationSource.java
index 444349bc..9b887f2d 100644
--- a/platform/configuration/plat... | true | true | private void addAddonGroupToEntity(Map<String, Map<String, Object>> entities, String entity, String groupKey,
AddonGroup group, AddonSource source)
{
this.transformEntitiesMap(entities, entity, new EntitiesMapTransformation()
{
@Override
public void apply(Map<... | private void addAddonGroupToEntity(Map<String, Map<String, Object>> entities, String entity, String groupKey,
AddonGroup group, AddonSource source)
{
this.transformEntitiesMap(entities, entity, new EntitiesMapTransformation()
{
@Override
public void apply(Map<... |
diff --git a/src/com/android/contacts/editor/RawContactEditorView.java b/src/com/android/contacts/editor/RawContactEditorView.java
index 118ca26a6..2d42a50cb 100644
--- a/src/com/android/contacts/editor/RawContactEditorView.java
+++ b/src/com/android/contacts/editor/RawContactEditorView.java
@@ -1,453 +1,454 @@
/*
*... | true | true | public void setState(EntityDelta state, AccountType type, ViewIdGenerator vig,
boolean isProfile) {
mState = state;
// Remove any existing sections
mFields.removeAllViews();
// Bail if invalid state or account type
if (state == null || type == null) return;
... | public void setState(EntityDelta state, AccountType type, ViewIdGenerator vig,
boolean isProfile) {
mState = state;
// Remove any existing sections
mFields.removeAllViews();
// Bail if invalid state or account type
if (state == null || type == null) return;
... |
diff --git a/org.reuseware.emftextedit/src/org/reuseware/emftextedit/resource/impl/EMFTextParserImpl.java b/org.reuseware.emftextedit/src/org/reuseware/emftextedit/resource/impl/EMFTextParserImpl.java
index 76f45d51b..46ba691ea 100755
--- a/org.reuseware.emftextedit/src/org/reuseware/emftextedit/resource/impl/EMFTextPa... | true | true | public void reportError(RecognitionException e) {
String message = "";
if( e instanceof TokenConversionException){
message = e.getMessage();
}
else if ( e instanceof MismatchedTokenException ) {
MismatchedTokenException mte = (MismatchedTokenException)e... | public void reportError(RecognitionException e) {
String message = "";
if( e instanceof TokenConversionException){
message = e.getMessage();
}
else if ( e instanceof MismatchedTokenException ) {
MismatchedTokenException mte = (MismatchedTokenException)e... |
diff --git a/src/multitallented/redcastlemedia/bukkit/herostronghold/listeners/SendMessageThread.java b/src/multitallented/redcastlemedia/bukkit/herostronghold/listeners/SendMessageThread.java
index 81846c7..4e1f3e5 100644
--- a/src/multitallented/redcastlemedia/bukkit/herostronghold/listeners/SendMessageThread.java
++... | true | true | public void run() {
int i=0;
for (Player p : channels.keySet()) {
if (channels.get(p).equals(channel)) {
p.sendMessage(ChatColor.GRAY + "[" + ChatColor.GREEN + channel + ChatColor.GRAY + "]" + p.getDisplayName()
+ ": " + message);
i... | public void run() {
int i=0;
for (Player p : channels.keySet()) {
if (channels.get(p).equals(channel)) {
p.sendMessage(ChatColor.GRAY + "[" + ChatColor.GREEN + channel + ChatColor.GRAY + "]" + player.getDisplayName()
+ ": " + message);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.