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/common/crazypants/enderio/machine/recipe/Recipe.java b/common/crazypants/enderio/machine/recipe/Recipe.java
index f0de92878..ba1a55e74 100644
--- a/common/crazypants/enderio/machine/recipe/Recipe.java
+++ b/common/crazypants/enderio/machine/recipe/Recipe.java
@@ -1,99 +1,102 @@
package crazypants.enderio.... | true | true | public boolean isInputForRecipe(ItemStack[] test) {
if(test == null) {
return false;
}
if(test.length != inputs.length) {
return false;
}
List<RecipeInput> recIns = new ArrayList<RecipeInput>(Arrays.asList(inputs));
for (ItemStack input : test) {
if(input != null) {
R... | public boolean isInputForRecipe(ItemStack[] test) {
if(test == null) {
return false;
}
if(test.length != inputs.length) {
return false;
}
List<RecipeInput> recIns = new ArrayList<RecipeInput>(Arrays.asList(inputs));
for (ItemStack input : test) {
if(input != null) {
R... |
diff --git a/src/main/java/com/relayrides/pushy/ApnsClientThread.java b/src/main/java/com/relayrides/pushy/ApnsClientThread.java
index 39f73808..b1d53947 100644
--- a/src/main/java/com/relayrides/pushy/ApnsClientThread.java
+++ b/src/main/java/com/relayrides/pushy/ApnsClientThread.java
@@ -1,203 +1,203 @@
package com.... | true | true | public void run() {
while (this.getClientState() != ClientState.EXIT) {
switch (this.getClientState()) {
case CONNECT: {
try {
final ChannelFuture connectFuture = this.bootstrap.connect(this.pushManager.getEnvironment().getApnsHost(), this.pushManager.getEnvironment().getApnsPort()).sync();
... | public void run() {
while (this.getClientState() != ClientState.EXIT) {
switch (this.getClientState()) {
case CONNECT: {
try {
final ChannelFuture connectFuture = this.bootstrap.connect(this.pushManager.getEnvironment().getApnsHost(), this.pushManager.getEnvironment().getApnsPort()).sync();
... |
diff --git a/src/com/fusionx/lightirc/irc/Message.java b/src/com/fusionx/lightirc/irc/Message.java
index ab783225..94315bec 100644
--- a/src/com/fusionx/lightirc/irc/Message.java
+++ b/src/com/fusionx/lightirc/irc/Message.java
@@ -1,23 +1,23 @@
package com.fusionx.lightirc.irc;
import android.text.Spanned;
import ... | true | true | public Message(String message) {
if(AppPreferences.timestamp) {
final Time now = new Time();
now.setToNow();
this.timestamp = now.format("%H:%M: ");
} else {
this.timestamp = "";
}
this.message = ColourParserUtils.parseMarkup(message);
... | public Message(String message) {
if(AppPreferences.timestamp) {
final Time now = new Time();
now.setToNow();
this.timestamp = now.format("%H:%M");
} else {
this.timestamp = "";
}
this.message = ColourParserUtils.parseMarkup(message);
... |
diff --git a/continuum-release/src/test/java/org/apache/maven/continuum/release/executors/ReleaseTaskExecutorTest.java b/continuum-release/src/test/java/org/apache/maven/continuum/release/executors/ReleaseTaskExecutorTest.java
index d59f35a4c..b921b319e 100644
--- a/continuum-release/src/test/java/org/apache/maven/cont... | true | true | public void releasePerformWithExecutableInDescriptor()
throws Exception
{
String scmPath = new File( getBasedir(), "target/scm-test" ).getAbsolutePath().replace( '\\', '/' );
File workDir = new File( getBasedir(), "target/test-classes/work-dir" );
FileUtils.deleteDirectory( workD... | public void releasePerformWithExecutableInDescriptor()
throws Exception
{
String scmPath = new File( getBasedir(), "target/scm-test" ).getAbsolutePath().replace( '\\', '/' );
File workDir = new File( getBasedir(), "target/test-classes/work-dir" );
FileUtils.deleteDirectory( workD... |
diff --git a/src/main/java/tconstruct/client/tabs/AbstractTab.java b/src/main/java/tconstruct/client/tabs/AbstractTab.java
index 97da51632..3fa1604d1 100644
--- a/src/main/java/tconstruct/client/tabs/AbstractTab.java
+++ b/src/main/java/tconstruct/client/tabs/AbstractTab.java
@@ -1,67 +1,68 @@
package tconstruct.clien... | true | true | public void drawButton (Minecraft mc, int mouseX, int mouseY)
{
if (this.visible)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
int yTexPos = this.enabled ? 3 : 32;
int ySize = this.enabled ? 28 : 32;
int xOffset = this.id == 2 ? 0 : 1;
m... | public void drawButton (Minecraft mc, int mouseX, int mouseY)
{
if (this.visible)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
int yTexPos = this.enabled ? 3 : 32;
int ySize = this.enabled ? 28 : 32;
int xOffset = this.id == 2 ? 0 : 1;
m... |
diff --git a/src/frontend/org/voltdb/jni/ExecutionEngineJNI.java b/src/frontend/org/voltdb/jni/ExecutionEngineJNI.java
index e3ef4a63b..63cc85e22 100644
--- a/src/frontend/org/voltdb/jni/ExecutionEngineJNI.java
+++ b/src/frontend/org/voltdb/jni/ExecutionEngineJNI.java
@@ -1,528 +1,528 @@
/* This file is part of VoltDB... | true | true | public VoltTable[] executePlanFragments(
final int numFragmentIds,
final long[] planFragmentIds,
final long[] inputDepIds,
final ParameterSet[] parameterSets,
final long txnId, final long lastCommittedTxnId, final long undoToken) throws EEException
{
... | public VoltTable[] executePlanFragments(
final int numFragmentIds,
final long[] planFragmentIds,
final long[] inputDepIds,
final ParameterSet[] parameterSets,
final long txnId, final long lastCommittedTxnId, final long undoToken) throws EEException
{
... |
diff --git a/src/main/java/org/helix/mobile/component/formfield/FormFieldRenderer.java b/src/main/java/org/helix/mobile/component/formfield/FormFieldRenderer.java
index 118d14c1..a6e125c6 100644
--- a/src/main/java/org/helix/mobile/component/formfield/FormFieldRenderer.java
+++ b/src/main/java/org/helix/mobile/componen... | true | true | public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
ResponseWriter writer = context.getResponseWriter();
FormField ffield = (FormField) component;
writer.write("{");
writer.write("'id' : '" + ffield.getName() + "',");
writer.write("'name' :... | public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
ResponseWriter writer = context.getResponseWriter();
FormField ffield = (FormField) component;
writer.write("{");
writer.write("'id' : '" + ffield.getName() + "',");
writer.write("'name' :... |
diff --git a/src/com/vulcastudios/states/CreditsState.java b/src/com/vulcastudios/states/CreditsState.java
index c13431d..555482f 100644
--- a/src/com/vulcastudios/states/CreditsState.java
+++ b/src/com/vulcastudios/states/CreditsState.java
@@ -1,51 +1,51 @@
package com.vulcastudios.states;
import org.newdawn.slick... | true | true | public void render(GameContainer container, StateBasedGame game, Graphics g)
throws SlickException {
Color previousColor = g.getColor();
g.drawString("Alex Meade", 50, 100);
g.drawString("Forrest Meade", 50, 125);
g.drawString("Andrew Melton", 50, 150);
g.drawString("Taylor Paschal", 50, 175);
g.draw... | public void render(GameContainer container, StateBasedGame game, Graphics g)
throws SlickException {
Color previousColor = g.getColor();
g.drawString("Alex Meade", 50, 100);
g.drawString("Forrest Meade", 50, 125);
g.drawString("Andrew Melton", 50, 150);
g.drawString("Taylor Paschal", 50, 175);
g.draw... |
diff --git a/omod/src/main/java/org/openmrs/module/patientregistration/controller/workflow/PrimaryCareReceptionEncounterController.java b/omod/src/main/java/org/openmrs/module/patientregistration/controller/workflow/PrimaryCareReceptionEncounterController.java
index 11bd3b1..74e3b9c 100644
--- a/omod/src/main/java/org/... | true | true | public ModelAndView showSelectPatient(
@ModelAttribute("patient") Patient patient
, @RequestParam(value= "encounterId", required = false) String encounterId
, @RequestParam(value= "createNew", required = false) String createNew
, @RequestParam(value= "nextTask", required = false) String nextTask
, Htt... | public ModelAndView showSelectPatient(
@ModelAttribute("patient") Patient patient
, @RequestParam(value= "encounterId", required = false) String encounterId
, @RequestParam(value= "createNew", required = false) String createNew
, @RequestParam(value= "nextTask", required = false) String nextTask
, Htt... |
diff --git a/libraries/BridJ/src/test/java/org/bridj/MemoryTest.java b/libraries/BridJ/src/test/java/org/bridj/MemoryTest.java
index fd0646d4..877be284 100644
--- a/libraries/BridJ/src/test/java/org/bridj/MemoryTest.java
+++ b/libraries/BridJ/src/test/java/org/bridj/MemoryTest.java
@@ -1,100 +1,100 @@
/*
* BridJ - D... | true | true | public void testCallbacks() {
final Pointer<Byte> v = pointerToByte((byte)1);
CallbackType cb = new CallbackType() {
public void apply(Pointer<Byte> v1, Pointer<Byte> v2) {
assertEquals(v, v1);
assertNotNull(v2);
}
};
defineCallback(getPointer(cb));
callCallback(1000000, v);
}
| public void testCallbacks() {
final Pointer<Byte> v = pointerToByte((byte)1);
CallbackType cb = new CallbackType() {
public void apply(Pointer<Byte> v1, Pointer<Byte> v2) {
assertEquals(v, v1);
assertNotNull(v2);
}
};
defineCallback(getPointer(cb));
callCallback(1000000L, v);
}
|
diff --git a/src/frontend/edu/brown/hstore/handlers/TransactionMapHandler.java b/src/frontend/edu/brown/hstore/handlers/TransactionMapHandler.java
index cf3fc6ac4..cb8fa1f7b 100644
--- a/src/frontend/edu/brown/hstore/handlers/TransactionMapHandler.java
+++ b/src/frontend/edu/brown/hstore/handlers/TransactionMapHandler.... | true | true | public void remoteHandler(RpcController controller, TransactionMapRequest request,
RpcCallback<TransactionMapResponse> callback) {
assert(request.hasTransactionId()) : "Got Hstore." + request.getClass().getSimpleName() + " without a txn id!";
long txn_id = request.getTransactionId();
... | public void remoteHandler(RpcController controller, TransactionMapRequest request,
RpcCallback<TransactionMapResponse> callback) {
assert(request.hasTransactionId()) : "Got Hstore." + request.getClass().getSimpleName() + " without a txn id!";
long txn_id = request.getTransactionId();
... |
diff --git a/src/main/sandbox/instrumentation/ClassAdapter.java b/src/main/sandbox/instrumentation/ClassAdapter.java
index fd16869..1f67a6c 100644
--- a/src/main/sandbox/instrumentation/ClassAdapter.java
+++ b/src/main/sandbox/instrumentation/ClassAdapter.java
@@ -1,90 +1,93 @@
// Copyright 2009 Google Inc. All Rights... | true | true | public MethodVisitor visitMethod(int access,
String base,
String desc,
String signature,
String[] exceptions) {
MethodVisitor mv = cv.visitMethod(
... | public MethodVisitor visitMethod(int access,
String base,
String desc,
String signature,
String[] exceptions) {
MethodVisitor mv = cv.visitMethod(
... |
diff --git a/android-app/RPInfo/src/org/rpi/rpinfo/QueryResultArrayAdapter.java b/android-app/RPInfo/src/org/rpi/rpinfo/QueryResultArrayAdapter.java
index 3f60818..e6ddb94 100644
--- a/android-app/RPInfo/src/org/rpi/rpinfo/QueryResultArrayAdapter.java
+++ b/android-app/RPInfo/src/org/rpi/rpinfo/QueryResultArrayAdapter.... | false | true | public View getView(int position, View oldView, ViewGroup parent) {
View newView = oldView;
/*
* OldView is the previously displayed view - if possible, re-use it for efficiency.
* If it doesn't exist, make a new one.
*/
if(newView == null){
LayoutInflater inflater = (LayoutInflater)context.getSys... | public View getView(int position, View oldView, ViewGroup parent) {
View newView = oldView;
/*
* OldView is the previously displayed view - if possible, re-use it for efficiency.
* If it doesn't exist, make a new one.
*/
if(newView == null){
LayoutInflater inflater = (LayoutInflater)context.getSys... |
diff --git a/src/com/irccloud/android/ImageViewerActivity.java b/src/com/irccloud/android/ImageViewerActivity.java
index 31a86bfd..6b00501b 100644
--- a/src/com/irccloud/android/ImageViewerActivity.java
+++ b/src/com/irccloud/android/ImageViewerActivity.java
@@ -1,112 +1,114 @@
/*
* Copyright (c) 2013 IRCCloud, Ltd.... | false | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_imageviewer);
if(Integer.parseInt(Build.VERSION.SDK) >= 11)
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
getSupp... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_imageviewer);
if(Integer.parseInt(Build.VERSION.SDK) >= 11)
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
getSupp... |
diff --git a/main-src/net/minecraft/src/MAtProcessorEnchantments.java b/main-src/net/minecraft/src/MAtProcessorEnchantments.java
index d2296c9..0a05eae 100644
--- a/main-src/net/minecraft/src/MAtProcessorEnchantments.java
+++ b/main-src/net/minecraft/src/MAtProcessorEnchantments.java
@@ -1,73 +1,73 @@
package net.mine... | false | true | protected void doProcess()
{
// Sets everything to 0 if no such armor
Set<Integer> required = getRequired();
for (Integer i : required)
{
setValue(i, 0);
}
EntityPlayer player = mod().manager().getMinecraft().thePlayer;
ItemStack item = getItem(player);
if (item != null && item.getEncha... | protected void doProcess()
{
// Sets everything to 0 if no such armor
Set<Integer> required = getRequired();
for (Integer i : required)
{
setValue(i, 0);
}
EntityPlayer player = mod().manager().getMinecraft().thePlayer;
ItemStack item = getItem(player);
if (item != null && item.getEncha... |
diff --git a/src/main/java/jstreamserver/http/LiveStreamHandler.java b/src/main/java/jstreamserver/http/LiveStreamHandler.java
index 3ac167c..bde513d 100755
--- a/src/main/java/jstreamserver/http/LiveStreamHandler.java
+++ b/src/main/java/jstreamserver/http/LiveStreamHandler.java
@@ -1,277 +1,276 @@
/*
* Copyright (... | true | true | private InputStream getLiveStream(File file, HttpRequestContext httpRequestContext) throws IOException {
cleanResources();
try {
Thread.sleep(getConfig().getDestroySegmenterDelay());
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
... | private InputStream getLiveStream(File file, HttpRequestContext httpRequestContext) throws IOException {
cleanResources();
try {
Thread.sleep(getConfig().getDestroySegmenterDelay());
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
... |
diff --git a/src/de/bwv_aachen/dijkstra/gui/ConnectionTableWindow.java b/src/de/bwv_aachen/dijkstra/gui/ConnectionTableWindow.java
index e6fd2b3..edf1bd7 100644
--- a/src/de/bwv_aachen/dijkstra/gui/ConnectionTableWindow.java
+++ b/src/de/bwv_aachen/dijkstra/gui/ConnectionTableWindow.java
@@ -1,68 +1,68 @@
/**
* Conn... | true | true | public void draw() {
((JComponent) getContentPane()).setBorder(BorderFactory.createMatteBorder(4, 4, 4, 4, Color.LIGHT_GRAY));
Vector<String> columnNames = new Vector<String>(Arrays.asList(
"Abflughafen", "Zielflughafen", "Flugzeit"));
super.setTitle("Ihre Verbindungen");
... | public void draw() {
((JComponent) getContentPane()).setBorder(BorderFactory.createMatteBorder(4, 4, 4, 4, Color.LIGHT_GRAY));
Vector<String> columnNames = new Vector<String>(Arrays.asList(
"Abflughafen", "Zielflughafen", "Flugzeit"));
super.setTitle("Ihre Verbindungen");
... |
diff --git a/grisu-core/src/main/java/grisu/backend/model/job/gt5/Gram5JobListener.java b/grisu-core/src/main/java/grisu/backend/model/job/gt5/Gram5JobListener.java
index 45d6d8a7..d0f5c38b 100644
--- a/grisu-core/src/main/java/grisu/backend/model/job/gt5/Gram5JobListener.java
+++ b/grisu-core/src/main/java/grisu/backe... | false | true | public void statusChanged(GramJob job) {
int jobStatus = job.getStatus();
String jobId = job.getIDAsString();
myLogger.debug("job status changed to " + jobStatus);
statuses.put(jobId, jobStatus);
errors.put(jobId, job.getError());
... | public void statusChanged(GramJob job) {
int jobStatus = job.getStatus();
String jobId = job.getIDAsString();
myLogger.debug("job status changed to " + jobStatus);
try {
if ((jobStatus == GramJob.STATUS_DONE) || (jobStatus == GramJob.S... |
diff --git a/src/main/java/com/lorepo/icplayer/client/model/AddonDescriptorFactory.java b/src/main/java/com/lorepo/icplayer/client/model/AddonDescriptorFactory.java
index 926012e5..8cbfe56e 100644
--- a/src/main/java/com/lorepo/icplayer/client/model/AddonDescriptorFactory.java
+++ b/src/main/java/com/lorepo/icplayer/cl... | true | true | private void registerLocalDescriptors() {
addonList = new HashMap<String, AddonEntry>();
addDescriptor("Viewer_3D", "3D Viewer", "Media");
addDescriptor("Advanced_Connector", "Advanced Connector", "Scripting");
addDescriptor("Animation", "Animation", "Media");
addDescriptor("Audio", "Audio", "Media");
a... | private void registerLocalDescriptors() {
addonList = new HashMap<String, AddonEntry>();
addDescriptor("Viewer_3D", "3D Viewer", "Media");
addDescriptor("Advanced_Connector", "Advanced Connector", "Scripting");
addDescriptor("Animation", "Animation", "Media");
addDescriptor("Audio", "Audio", "Media");
a... |
diff --git a/src/main/java/org/spigotmc/interglot/Gui.java b/src/main/java/org/spigotmc/interglot/Gui.java
index 54498a0..575bd50 100644
--- a/src/main/java/org/spigotmc/interglot/Gui.java
+++ b/src/main/java/org/spigotmc/interglot/Gui.java
@@ -1,234 +1,234 @@
package org.spigotmc.interglot;
import java.awt.Color;
... | true | true | private void initComponents() {//GEN-BEGIN:initComponents
inputFile = new JTextField();
outputFile = new JTextField();
inputLabel = new JLabel();
outputLabel = new JLabel();
scrollPanel = new JScrollPane();
logText = new JTextArea();
transformButton = new JBu... | private void initComponents() {//GEN-BEGIN:initComponents
inputFile = new JTextField();
outputFile = new JTextField();
inputLabel = new JLabel();
outputLabel = new JLabel();
scrollPanel = new JScrollPane();
logText = new JTextArea();
transformButton = new JBu... |
diff --git a/src/main/java/org/primefaces/extensions/showcase/model/system/AvailableThemes.java b/src/main/java/org/primefaces/extensions/showcase/model/system/AvailableThemes.java
index 7dbf4e2..7cf5243 100644
--- a/src/main/java/org/primefaces/extensions/showcase/model/system/AvailableThemes.java
+++ b/src/main/java/... | true | true | private AvailableThemes() {
themeNames = new ArrayList<String>();
themeNames.add("aristo");
themeNames.add("black-tie");
themeNames.add("blitzer");
themeNames.add("bluesky");
themeNames.add("casablanca");
themeNames.add("cupertino");
themeNames.add("dark-hive");
themeNames.add("dot-luv");
themeName... | private AvailableThemes() {
themeNames = new ArrayList<String>();
themeNames.add("aristo");
themeNames.add("black-tie");
themeNames.add("blitzer");
themeNames.add("bluesky");
themeNames.add("casablanca");
themeNames.add("cupertino");
themeNames.add("dark-hive");
themeNames.add("dot-luv");
themeName... |
diff --git a/java/src/json/ext/Generator.java b/java/src/json/ext/Generator.java
index 230d68f..92fd90e 100644
--- a/java/src/json/ext/Generator.java
+++ b/java/src/json/ext/Generator.java
@@ -1,441 +1,437 @@
/*
* This code is copyrighted work by Daniel Luz <dev at mernen dot com>.
*
* Distributed under the Rub... | true | true | void generate(final Session session, RubyHash object,
final ByteList buffer) {
ThreadContext context = session.getContext();
final Ruby runtime = context.getRuntime();
final GeneratorState state = session.getState();
f... | void generate(final Session session, RubyHash object,
final ByteList buffer) {
ThreadContext context = session.getContext();
final Ruby runtime = context.getRuntime();
final GeneratorState state = session.getState();
f... |
diff --git a/Robocup/Utils/trunk/Sensors/src/java/util/RectGroup.java b/Robocup/Utils/trunk/Sensors/src/java/util/RectGroup.java
index 758e897..aa0fe09 100644
--- a/Robocup/Utils/trunk/Sensors/src/java/util/RectGroup.java
+++ b/Robocup/Utils/trunk/Sensors/src/java/util/RectGroup.java
@@ -1,129 +1,125 @@
package java.u... | false | true | public List<RectGroup> getDistinctGroups()
{
List<RectGroup> groups = new ArrayList<RectGroup>();
// Create a list of groups to hold grouped rectangles.
for(Rectangle newRect : this)
{
List<RectGroup> newGroupings = new ArrayList<RectGroup>();
for(RectGroup group : groups)
{
if(group.intersects... | public List<RectGroup> getDistinctGroups()
{
List<RectGroup> groups = new ArrayList<RectGroup>();
// Create a list of groups to hold grouped rectangles.
for(Rectangle newRect : this)
{
List<RectGroup> newGroupings = new ArrayList<RectGroup>();
// Create a list of all the groups the current rectangle ov... |
diff --git a/java/gadgets/src/main/java/org/apache/shindig/gadgets/oauth/OAuthCommandLine.java b/java/gadgets/src/main/java/org/apache/shindig/gadgets/oauth/OAuthCommandLine.java
index fe19749b..bffacb4a 100644
--- a/java/gadgets/src/main/java/org/apache/shindig/gadgets/oauth/OAuthCommandLine.java
+++ b/java/gadgets/sr... | true | true | public static void main(String[] argv) throws Exception {
Map<String, String> params = Maps.newHashMap();
for (int i = 0; i < argv.length; i+=2) {
params.put(argv[i], argv[i+1]);
}
final String consumerKey = params.get("--consumerKey");
final String consumerSecret = params.get("--consumerSec... | public static void main(String[] argv) throws Exception {
Map<String, String> params = Maps.newHashMap();
for (int i = 0; i < argv.length; i+=2) {
params.put(argv[i], argv[i+1]);
}
final String consumerKey = params.get("--consumerKey");
final String consumerSecret = params.get("--consumerSec... |
diff --git a/eapli.ExpenseManager/src/Controllers/DisplayExpensesController.java b/eapli.ExpenseManager/src/Controllers/DisplayExpensesController.java
index 1b7d6e2..d994921 100644
--- a/eapli.ExpenseManager/src/Controllers/DisplayExpensesController.java
+++ b/eapli.ExpenseManager/src/Controllers/DisplayExpensesControl... | true | true | public List<Expense> showMonthlyExpenses(int year, int month){
List<Expense> repo = ExpenseRepository.getInstance().getAllExpenses();
List<ExpenseType> typerepo=ExpenseTypeRepository.getInstance().getTypeRep();
List<Expense> display=new ArrayList<Expense>();
for (int i =... | public List<Expense> showMonthlyExpenses(int year, int month){
List<Expense> repo = ExpenseRepository.getInstance().getAllExpenses();
List<ExpenseType> typerepo=ExpenseTypeRepository.getInstance().getTypeRep();
List<Expense> display=new ArrayList<Expense>();
for (int i =... |
diff --git a/src/main/java/be/Balor/Manager/Commands/Home/Home.java b/src/main/java/be/Balor/Manager/Commands/Home/Home.java
index 0350d2f9..a3c10a11 100644
--- a/src/main/java/be/Balor/Manager/Commands/Home/Home.java
+++ b/src/main/java/be/Balor/Manager/Commands/Home/Home.java
@@ -1,131 +1,136 @@
/*******************... | true | true | public void execute(final CommandSender sender, final CommandArgs args)
throws ActionNotPermitedException, PlayerNotFound {
if (Utils.isPlayer(sender)) {
final Player player = (Player) sender;
be.Balor.Tools.Home home = null;
home = Utils.getHome(sender, args.getString(0));
if (home == null) {
ret... | public void execute(final CommandSender sender, final CommandArgs args)
throws ActionNotPermitedException, PlayerNotFound {
if (Utils.isPlayer(sender)) {
final Player player = (Player) sender;
be.Balor.Tools.Home home = null;
home = Utils.getHome(sender, args.getString(0));
if (home == null) {
ret... |
diff --git a/api/src/main/java/org/openmrs/PersonAddress.java b/api/src/main/java/org/openmrs/PersonAddress.java
index 1e6af405..c126c87e 100644
--- a/api/src/main/java/org/openmrs/PersonAddress.java
+++ b/api/src/main/java/org/openmrs/PersonAddress.java
@@ -1,575 +1,575 @@
/**
* The contents of this file are subjec... | true | true | public boolean equalsContent(PersonAddress otherAddress) {
boolean returnValue = true;
// these are the methods to compare. All are expected to be Strings
String[] methods = { "getAddress1", "getAddress2", "getCityVillage", "getNeighborhoodCell", "getCountyDistrict",
"getTownshipDivision", "getRegio... | public boolean equalsContent(PersonAddress otherAddress) {
boolean returnValue = true;
// these are the methods to compare. All are expected to be Strings
String[] methods = { "getAddress1", "getAddress2", "getAddress3", "getAddress4", "getAddress5", "getCityVillage",
"getNeighborhoodCell", "getCoun... |
diff --git a/closure/closure-compiler/src/com/google/javascript/jscomp/ant/CompileTask.java b/closure/closure-compiler/src/com/google/javascript/jscomp/ant/CompileTask.java
index 4e636a39b..38741720a 100644
--- a/closure/closure-compiler/src/com/google/javascript/jscomp/ant/CompileTask.java
+++ b/closure/closure-compil... | true | true | public void execute() {
if (this.outputFile == null) {
throw new BuildException("outputFile attribute must be set");
}
Compiler.setLoggingLevel(Level.OFF);
CompilerOptions options = createCompilerOptions();
Compiler compiler = createCompiler(options);
JSSourceFile[] externs = findExte... | public void execute() {
if (this.outputFile == null) {
throw new BuildException("outputFile attribute must be set");
}
Compiler.setLoggingLevel(Level.OFF);
CompilerOptions options = createCompilerOptions();
Compiler compiler = createCompiler(options);
JSSourceFile[] externs = findExte... |
diff --git a/library/src/com/github/espiandev/showcaseview/ShowcaseView.java b/library/src/com/github/espiandev/showcaseview/ShowcaseView.java
index 39c4fea..1969376 100644
--- a/library/src/com/github/espiandev/showcaseview/ShowcaseView.java
+++ b/library/src/com/github/espiandev/showcaseview/ShowcaseView.java
@@ -1,8... | true | true | protected void dispatchDraw(Canvas canvas) {
if (showcaseX < 0 || showcaseY < 0 || isRedundant) {
super.dispatchDraw(canvas);
return;
}
//Draw the semi-transparent background
canvas.drawColor(backColor);
//Draw to the scale specified
Matrix m... | protected void dispatchDraw(Canvas canvas) {
if (showcaseX < 0 || showcaseY < 0 || isRedundant) {
super.dispatchDraw(canvas);
return;
}
//Draw the semi-transparent background
canvas.drawColor(backColor);
//Draw to the scale specified
Matrix m... |
diff --git a/libraries/BridJ/src/main/java/org/bridj/BridJ.java b/libraries/BridJ/src/main/java/org/bridj/BridJ.java
index 52da2c29..9868dc9d 100644
--- a/libraries/BridJ/src/main/java/org/bridj/BridJ.java
+++ b/libraries/BridJ/src/main/java/org/bridj/BridJ.java
@@ -1,1013 +1,1013 @@
package org.bridj;
import org.b... | false | true | static File findNativeLibraryFile(String libraryName) {
//out.println("Getting file of '" + name + "'");
String actualName = libraryActualNames.get(libraryName);
List<String> aliases = libraryAliases.get(libraryName);
List<String> possibleNames = new ArrayList<String>();
if (... | static File findNativeLibraryFile(String libraryName) {
//out.println("Getting file of '" + name + "'");
String actualName = libraryActualNames.get(libraryName);
List<String> aliases = libraryAliases.get(libraryName);
List<String> possibleNames = new ArrayList<String>();
if (... |
diff --git a/src/com/android/calendar/event/EditEventFragment.java b/src/com/android/calendar/event/EditEventFragment.java
index 0c9424a9..ff35e5a1 100644
--- a/src/com/android/calendar/event/EditEventFragment.java
+++ b/src/com/android/calendar/event/EditEventFragment.java
@@ -1,953 +1,958 @@
/*
* Copyright (C) 201... | true | true | protected void onQueryComplete(int token, Object cookie, Cursor cursor) {
// If the query didn't return a cursor for some reason return
if (cursor == null) {
return;
}
// If the Activity is finishing, then close the cursor.
// Otherwis... | protected void onQueryComplete(int token, Object cookie, Cursor cursor) {
// If the query didn't return a cursor for some reason return
if (cursor == null) {
return;
}
// If the Activity is finishing, then close the cursor.
// Otherwis... |
diff --git a/src/localsolr/com/pjaol/search/solr/update/LocalUpdateProcessorFactory.java b/src/localsolr/com/pjaol/search/solr/update/LocalUpdateProcessorFactory.java
index 761ef49..354567a 100644
--- a/src/localsolr/com/pjaol/search/solr/update/LocalUpdateProcessorFactory.java
+++ b/src/localsolr/com/pjaol/search/solr... | true | true | public void processAdd(AddUpdateCommand cmd) throws IOException {
SolrInputDocument doc = cmd.getSolrInputDocument();
String lat = (String) doc.getFieldValue(latField);
String lng = (String) doc.getFieldValue(lngField);
log.fine("Adding lat/lngs: "+ lat +", "+lng);
if (lat != null && lng != null) {
fo... | public void processAdd(AddUpdateCommand cmd) throws IOException {
SolrInputDocument doc = cmd.getSolrInputDocument();
String lat = (String) doc.getFieldValue(latField);
String lng = (String) doc.getFieldValue(lngField);
if (lat != null && lng != null) {
for (CartesianTierPlotter ctp : plotters) {
d... |
diff --git a/src/com/jonathanaquino/svntimelapseview/SvnLoader.java b/src/com/jonathanaquino/svntimelapseview/SvnLoader.java
index 019d841..694570e 100644
--- a/src/com/jonathanaquino/svntimelapseview/SvnLoader.java
+++ b/src/com/jonathanaquino/svntimelapseview/SvnLoader.java
@@ -1,213 +1,215 @@
package com.jonathanaq... | true | true | private void loadRevisionsProper(String filePathOrUrl, String username, String password, int limit, Closure afterLoad) throws SVNException, Exception {
try {
loadedCount = totalCount = 0;
SVNURL fullUrl = svnUrl(filePathOrUrl, username, password);
String url = fullUrl.removePathTail().toString();
String ... | private void loadRevisionsProper(String filePathOrUrl, String username, String password, int limit, Closure afterLoad) throws SVNException, Exception {
try {
loadedCount = totalCount = 0;
SVNURL fullUrl = svnUrl(filePathOrUrl, username, password);
String url = fullUrl.removePathTail().toString();
String ... |
diff --git a/seqware-queryengine-backend/src/main/java/com/github/seqware/queryengine/kernel/RPNStack.java b/seqware-queryengine-backend/src/main/java/com/github/seqware/queryengine/kernel/RPNStack.java
index bbc4b08c..d37003ff 100644
--- a/seqware-queryengine-backend/src/main/java/com/github/seqware/queryengine/kernel... | true | true | private static void abstractSyntaxTreeTraversal(Tree node, List<Object> arguments) {
for (int i = 0; i < node.getChildCount(); i++) {
abstractSyntaxTreeTraversal(node.getChild(i), arguments);
}
Logger.getLogger(RPNStack.class).info("____TYPE: " + node.getType());
Logger.g... | private static void abstractSyntaxTreeTraversal(Tree node, List<Object> arguments) {
for (int i = 0; i < node.getChildCount(); i++) {
abstractSyntaxTreeTraversal(node.getChild(i), arguments);
}
Logger.getLogger(RPNStack.class).info("____TYPE: " + node.getType());
Logger.g... |
diff --git a/com.puppetlabs.geppetto.forge.api/src/main/java/com/puppetlabs/geppetto/forge/v3/model/PaginatedResult.java b/com.puppetlabs.geppetto.forge.api/src/main/java/com/puppetlabs/geppetto/forge/v3/model/PaginatedResult.java
index 57d97e7b..7f038d42 100644
--- a/com.puppetlabs.geppetto.forge.api/src/main/java/com... | true | true | public PaginationInfo getNext() {
int limit = pagination.getLimit();
int last = pagination.getOffset() + limit;
int left = pagination.getTotal() - last;
if(left < 0)
return null;
if(limit > left)
limit = left;
return new PaginationInfo(last, limit);
}
| public PaginationInfo getNext() {
int limit = pagination.getLimit();
int last = pagination.getOffset() + limit;
int left = pagination.getTotal() - last;
if(left <= 0)
return null;
if(limit > left)
limit = left;
return new PaginationInfo(last, limit);
}
|
diff --git a/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsDomainBinder.java b/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsDomainBinder.java
index 621f47051..1a2212472 100644
--- a/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsDomainB... | true | true | private static void bindCollectionSecondPass(GrailsDomainClassProperty property, Mappings mappings, Map persistentClasses, Collection collection, Map inheritedMetas) {
PersistentClass associatedClass = null;
// Configure one-to-many
if(collection.isOneToMany()) {
OneToMany oneToMany = (OneToMany)collection.g... | private static void bindCollectionSecondPass(GrailsDomainClassProperty property, Mappings mappings, Map persistentClasses, Collection collection, Map inheritedMetas) {
PersistentClass associatedClass = null;
// Configure one-to-many
if(collection.isOneToMany()) {
OneToMany oneToMany = (OneToMany)collection.g... |
diff --git a/src/org/yaxim/androidclient/service/YaximBroadcastReceiver.java b/src/org/yaxim/androidclient/service/YaximBroadcastReceiver.java
index 4eb9697..ba10790 100644
--- a/src/org/yaxim/androidclient/service/YaximBroadcastReceiver.java
+++ b/src/org/yaxim/androidclient/service/YaximBroadcastReceiver.java
@@ -1,6... | true | true | public void onReceive(Context context, Intent intent) {
Log.d(TAG, "onReceive "+intent.getAction());
if (intent.getAction().equals(Intent.ACTION_SHUTDOWN)) {
Log.d(TAG, "stop service");
Intent xmppServiceIntent = new Intent(context, XMPPService.class);
xmppServiceIntent.setAction("de.hdmstuttgart.yaxim.X... | public void onReceive(Context context, Intent intent) {
Log.d(TAG, "onReceive "+intent.getAction());
if (intent.getAction().equals(Intent.ACTION_SHUTDOWN)) {
Log.d(TAG, "stop service");
Intent xmppServiceIntent = new Intent(context, XMPPService.class);
xmppServiceIntent.setAction("de.hdmstuttgart.yaxim.X... |
diff --git a/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/eclipse/jst/j2ee/internal/validation/UIEarValidator.java b/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/eclipse/jst/j2ee/internal/validation/UIEarValidator.java
index a936fc301..7cca166e9 100644
--- a/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/eclipse/jst/j2ee/in... | true | true | public IStatus validateInJob(IValidationContext inHelper, IReporter inReporter) throws org.eclipse.wst.validation.internal.core.ValidationException {
IStatus status = IValidatorJob.OK_STATUS;
IProject earProj = ((IWorkbenchContext) inHelper).getProject();
IVirtualComponent earModule = ComponentCore.createCompone... | public IStatus validateInJob(IValidationContext inHelper, IReporter inReporter) throws org.eclipse.wst.validation.internal.core.ValidationException {
IStatus status = IValidatorJob.OK_STATUS;
IProject earProj = ((IWorkbenchContext) inHelper).getProject();
IVirtualComponent earModule = ComponentCore.createCompone... |
diff --git a/src/main/java/com/hdkmraf/jsontoneo4j/App.java b/src/main/java/com/hdkmraf/jsontoneo4j/App.java
index c3a21fd..efcc710 100644
--- a/src/main/java/com/hdkmraf/jsontoneo4j/App.java
+++ b/src/main/java/com/hdkmraf/jsontoneo4j/App.java
@@ -1,47 +1,47 @@
package com.hdkmraf.jsontoneo4j;
import java.io.File;... | true | true | public static void main( String[] args )
{
if(args.length != 3){
System.out.println("Usage: JSONtoNeo4j path database index");
System.out.println("path - Where the .json or .js files are located");
System.out.println("database - Neo4j database, it will be created ins... | public static void main( String[] args )
{
if(args.length != 3){
System.out.println("Usage: JSONtoNeo4j path database index");
System.out.println("path - Where the .json or .js files are located");
System.out.println("database - Neo4j database, it will be created ins... |
diff --git a/src/main/java/tconstruct/armor/modelblock/DryingRackSpecialRender.java b/src/main/java/tconstruct/armor/modelblock/DryingRackSpecialRender.java
index 23f46f3de..ee94797ba 100644
--- a/src/main/java/tconstruct/armor/modelblock/DryingRackSpecialRender.java
+++ b/src/main/java/tconstruct/armor/modelblock/Dryi... | false | true | void renderItem (DryingRackLogic logic, ItemStack stack)
{
FancyEntityItem entityitem = new FancyEntityItem(logic.getWorldObj(), 0.0D, 0.0D, 0.0D, stack);
entityitem.getEntityItem().stackSize = 1;
entityitem.hoverStart = 0.0F;
GL11.glPushMatrix();
int meta = logic.getWorl... | void renderItem (DryingRackLogic logic, ItemStack stack)
{
FancyEntityItem entityitem = new FancyEntityItem(logic.getWorldObj(), 0.0D, 0.0D, 0.0D, stack);
entityitem.getEntityItem().stackSize = 1;
entityitem.hoverStart = 0.0F;
GL11.glPushMatrix();
int meta = logic.getWorl... |
diff --git a/src/main/java/tools/kok.java b/src/main/java/tools/kok.java
index 8d0c15a..93f8d9d 100644
--- a/src/main/java/tools/kok.java
+++ b/src/main/java/tools/kok.java
@@ -1,142 +1,142 @@
package tools;
import net.zemberek.erisim.Zemberek;
import net.zemberek.tr.yapi.TurkiyeTurkcesi;
import net.zemberek.yapi... | true | true | public static void kelimeAyristir(String dizi[], Zemberek z) {
int h = 0;
while (h < dizi.length) {
List<String[]> ayrisimlar = z.kelimeAyristir(dizi[h]);
if(!ayrisimlar.isEmpty()){
//System.out.println(">>>" + dizi[h] + " için ayristirma sonuclari:");
... | public static void kelimeAyristir(String dizi[], Zemberek z) {
int h = 0;
while (h < dizi.length) {
List<String[]> ayrisimlar = z.kelimeAyristir(dizi[h]);
if(!ayrisimlar.isEmpty()){
//System.out.println(">>>" + dizi[h] + " için ayristirma sonuclari:");
... |
diff --git a/core/src/visad/trunk/data/qt/QTForm.java b/core/src/visad/trunk/data/qt/QTForm.java
index 870bdd81c..1372a2af2 100644
--- a/core/src/visad/trunk/data/qt/QTForm.java
+++ b/core/src/visad/trunk/data/qt/QTForm.java
@@ -1,543 +1,543 @@
//
// QTForm.java
//
/*
VisAD system for interactive analysis and vi... | true | true | public void save(String id, Data data, boolean replace)
throws BadFormException, IOException, RemoteException, VisADException
{
if (noQT) throw new BadFormException(noQTmsg);
try {
// extract image frames from data
FlatField[] fields = DataUtility.getImageFields(data);
int numFrames = ... | public void save(String id, Data data, boolean replace)
throws BadFormException, IOException, RemoteException, VisADException
{
if (noQT) throw new BadFormException(noQTmsg);
try {
// extract image frames from data
FlatField[] fields = DataUtility.getImageFields(data);
int numFrames = ... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlinePage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskEditorOutlinePage.java
index 085c09915..fd6c3f12a 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tas... | true | true | public void setInput(TaskRepository taskRepository, TaskEditorOutlineNode rootNode) {
this.taskRepository = taskRepository;
if (rootNode != null) {
this.model = new TaskEditorOutlineModel(rootNode);
} else {
this.model = null;
}
if (viewer != null) {
viewer.setInput(this.model);
viewer.refresh(tr... | public void setInput(TaskRepository taskRepository, TaskEditorOutlineNode rootNode) {
this.taskRepository = taskRepository;
if (rootNode != null) {
this.model = new TaskEditorOutlineModel(rootNode);
} else {
this.model = null;
}
if (viewer != null) {
viewer.setInput(this.model);
viewer.expandAll(... |
diff --git a/core/src/visad/trunk/util/ResSwitcher.java b/core/src/visad/trunk/util/ResSwitcher.java
index e09659679..cf32dda21 100644
--- a/core/src/visad/trunk/util/ResSwitcher.java
+++ b/core/src/visad/trunk/util/ResSwitcher.java
@@ -1,260 +1,260 @@
//
// ResSwitcher.java
//
/*
VisAD system for interactive an... | true | true | public ResSwitcher(LocalDisplay d, DataReferenceImpl ref)
throws VisADException, RemoteException
{
display = d;
hi_ref = ref;
lo_ref = new DataReferenceImpl("ResSwitcher_ref");
display.addReference(lo_ref);
cell = new CellImpl() {
public void doAction() {
try {
// co... | public ResSwitcher(LocalDisplay d, DataReferenceImpl ref)
throws VisADException, RemoteException
{
display = d;
hi_ref = ref;
lo_ref = new DataReferenceImpl("ResSwitcher_ref");
display.addReference(lo_ref);
cell = new CellImpl() {
public void doAction() {
try {
// co... |
diff --git a/src/main/java/com/soebes/multithreading/cp/supose/scan/ScanVersionRange.java b/src/main/java/com/soebes/multithreading/cp/supose/scan/ScanVersionRange.java
index 24e7908..8196641 100644
--- a/src/main/java/com/soebes/multithreading/cp/supose/scan/ScanVersionRange.java
+++ b/src/main/java/com/soebes/multith... | true | true | public Index call() throws Exception {
LOGGER.info("ScanVersionRange reading log entries.");
ReadLogEntries readLogs = new ReadLogEntries(getRepository());
readLogs.readRevisions();
LOGGER.info("ScanVersionRange reading log entries done.");
VersionRange versionRa... | public Index call() throws Exception {
LOGGER.info("ScanVersionRange reading log entries.");
ReadLogEntries readLogs = new ReadLogEntries(getRepository(), getRevisionRange().getFrom(), getRevisionRange().getTo());
readLogs.readRevisions();
LOGGER.info("ScanVersionRange re... |
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/OpenWithActionGroup.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/actions/OpenWithActionGroup.java
index f2157f877..a8e653aba 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/inte... | false | true | private void fillOpenWithMenu(IMenuManager menu, String groupId, IStructuredSelection selection) {
// Only supported if at least one file is selected.
if (selection == null || selection.size() < 1)
return;
Object[] elements = selection.toArray();
IResource resources[] = Uti... | private void fillOpenWithMenu(IMenuManager menu, String groupId, IStructuredSelection selection) {
// Only supported if at least one file is selected.
if (selection == null || selection.size() < 1)
return;
Object[] elements = selection.toArray();
IResource resources[] = Uti... |
diff --git a/source/java/ru/itdsystems/alfresco/persistence/CrudPost.java b/source/java/ru/itdsystems/alfresco/persistence/CrudPost.java
index 6dd3358..ba8899b 100644
--- a/source/java/ru/itdsystems/alfresco/persistence/CrudPost.java
+++ b/source/java/ru/itdsystems/alfresco/persistence/CrudPost.java
@@ -1,257 +1,258 @@... | true | true | public void execute(WebScriptRequest req, WebScriptResponse res)
throws WebScriptException {
// construct path elements array from request parameters
List<String> pathElements = new ArrayList<String>();
Map<String, String> templateVars = req.getServiceMatch()
.getTemplateVars();
pathElements.add(templat... | public void execute(WebScriptRequest req, WebScriptResponse res)
throws WebScriptException {
// construct path elements array from request parameters
List<String> pathElements = new ArrayList<String>();
Map<String, String> templateVars = req.getServiceMatch()
.getTemplateVars();
pathElements.add(templat... |
diff --git a/440-HW1/src/Main.java b/440-HW1/src/Main.java
index 0220bed..b1a01f7 100644
--- a/440-HW1/src/Main.java
+++ b/440-HW1/src/Main.java
@@ -1,19 +1,19 @@
public class Main {
/**
* @param args
* @throws Exception
*/
public static void main(String[] args) throws Exception {
- /*ProcessManager... | false | true | public static void main(String[] args) throws Exception {
/*ProcessManager pm = new ProcessManager();
pm.receiveCommands();*/
String[] args2 = new String[2];
args2[0] = "http://www.justingreet.com";
args2[1] = "silly.txt";
WebCrawler heyThere = new WebCrawler(args2);
heyThere.run();
}
| public static void main(String[] args) throws Exception {
ProcessManager pm = new ProcessManager();
pm.receiveCommands();
/*String[] args2 = new String[2];
args2[0] = "http://www.justingreet.com";
args2[1] = "silly.txt";
WebCrawler heyThere = new WebCrawler(args2);
heyThere.run();*/
}
|
diff --git a/src/gov/nih/nci/eagle/service/handlers/EpidemiologicalQueryHandler.java b/src/gov/nih/nci/eagle/service/handlers/EpidemiologicalQueryHandler.java
index c1b61ac..c7b549a 100755
--- a/src/gov/nih/nci/eagle/service/handlers/EpidemiologicalQueryHandler.java
+++ b/src/gov/nih/nci/eagle/service/handlers/Epidemio... | true | true | public List getResults(QueryDTO queryDTO) {
EPIQueryDTO epiQueryDTO = (EPIQueryDTO) queryDTO;
Session session = sessionFactory.getCurrentSession();
Criteria targetCrit = session.createCriteria(StudyParticipant.class);
targetCrit.createCriteria("epidemiologicalFinding", "finding").se... | public List getResults(QueryDTO queryDTO) {
EPIQueryDTO epiQueryDTO = (EPIQueryDTO) queryDTO;
Session session = sessionFactory.getCurrentSession();
Criteria targetCrit = session.createCriteria(StudyParticipant.class);
targetCrit.createCriteria("epidemiologicalFinding", "finding").se... |
diff --git a/kundera-core/src/main/java/com/impetus/kundera/proxy/cglib/CglibLazyInitializerFactory.java b/kundera-core/src/main/java/com/impetus/kundera/proxy/cglib/CglibLazyInitializerFactory.java
index 285f9d56e..9baccabac 100644
--- a/kundera-core/src/main/java/com/impetus/kundera/proxy/cglib/CglibLazyInitializerFa... | false | true | public <E> void setProxyOwners(EntityMetadata entityMetadata, E e)
{
if (e != null && e.getClass().getAnnotation(Entity.class) != null && entityMetadata != null)
{
Object entityId = PropertyAccessorHelper.getId(e, entityMetadata);
for (Relation r : entityMetadata.getRelat... | public <E> void setProxyOwners(EntityMetadata entityMetadata, E e)
{
if (e != null && e.getClass().getAnnotation(Entity.class) != null && entityMetadata != null)
{
for (Relation r : entityMetadata.getRelations())
{
Object entityId = PropertyAccessorHelper.... |
diff --git a/src/me/Sk8r2K10/sGift/sGiftCommandExecutor.java b/src/me/Sk8r2K10/sGift/sGiftCommandExecutor.java
index ffafb09..f1f4f7d 100644
--- a/src/me/Sk8r2K10/sGift/sGiftCommandExecutor.java
+++ b/src/me/Sk8r2K10/sGift/sGiftCommandExecutor.java
@@ -1,570 +1,570 @@
package me.Sk8r2K10.sGift;
import java.util.Arr... | true | true | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
Player player = null;
String prefix = ChatColor.WHITE + "[" + ChatColor.GREEN + "sGift" + ChatColor.WHITE + "] ";
String prefix2 = ChatColor.WHITE + "[" + ChatColor.GOLD + "sGift" + ChatColor.W... | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
Player player = null;
String prefix = ChatColor.WHITE + "[" + ChatColor.GREEN + "sGift" + ChatColor.WHITE + "] ";
String prefix2 = ChatColor.WHITE + "[" + ChatColor.GOLD + "sGift" + ChatColor.W... |
diff --git a/java/engine/org/apache/derby/iapi/sql/dictionary/TriggerDescriptor.java b/java/engine/org/apache/derby/iapi/sql/dictionary/TriggerDescriptor.java
index 1c88d715e..eba2d4ec4 100644
--- a/java/engine/org/apache/derby/iapi/sql/dictionary/TriggerDescriptor.java
+++ b/java/engine/org/apache/derby/iapi/sql/dicti... | false | true | public SPSDescriptor getActionSPS(LanguageConnectionContext lcc)
throws StandardException
{
if (actionSPS == null)
{
//bug 4821 - do the sysstatement look up in a nested readonly
//transaction rather than in the user transaction. Because of
//this, the nested compile transaction which is attempting to
... | public SPSDescriptor getActionSPS(LanguageConnectionContext lcc)
throws StandardException
{
if (actionSPS == null)
{
//bug 4821 - do the sysstatement look up in a nested readonly
//transaction rather than in the user transaction. Because of
//this, the nested compile transaction which is attempting to
... |
diff --git a/luni/src/test/java/libcore/java/util/FormatterTest.java b/luni/src/test/java/libcore/java/util/FormatterTest.java
index ce33c271a..00d0ab74c 100644
--- a/luni/src/test/java/libcore/java/util/FormatterTest.java
+++ b/luni/src/test/java/libcore/java/util/FormatterTest.java
@@ -1,129 +1,129 @@
/*
* Copyrig... | true | true | public void test_numberLocalization() throws Exception {
Locale arabic = new Locale("ar");
// Check the fast path for %d:
assertEquals("12 \u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660 34",
String.format(arabic, "12 %d 34", 1234567890));
// And the slow... | public void test_numberLocalization() throws Exception {
Locale arabic = new Locale("ar");
// Check the fast path for %d:
assertEquals("12 \u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660 34",
String.format(arabic, "12 %d 34", 1234567890));
// And the slow... |
diff --git a/generators/src/main/java/com/datastax/video/GenerateUserVideoIndex.java b/generators/src/main/java/com/datastax/video/GenerateUserVideoIndex.java
index 6826439..c0628ff 100644
--- a/generators/src/main/java/com/datastax/video/GenerateUserVideoIndex.java
+++ b/generators/src/main/java/com/datastax/video/Gen... | false | true | private void generate(int nUsers, int nAverageVideos) throws IOException {
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
long DAY_MILS = 1000L * 60 * 60 * 24;
new File(Util.ROOT_DIR).mkdirs();
Charset charset = Charset.forName("US-ASCII");
if (nAv... | private void generate(int nUsers, int nAverageVideos) throws IOException {
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
long DAY_MILS = 1000L * 60 * 60 * 24;
new File(Util.ROOT_DIR).mkdirs();
Charset charset = Charset.forName("US-ASCII");
if (nAv... |
diff --git a/Ingest/src/org/sleuthkit/autopsy/ingest/GetAllFilesContentVisitor.java b/Ingest/src/org/sleuthkit/autopsy/ingest/GetAllFilesContentVisitor.java
index cce5c8667..dd3f4687e 100644
--- a/Ingest/src/org/sleuthkit/autopsy/ingest/GetAllFilesContentVisitor.java
+++ b/Ingest/src/org/sleuthkit/autopsy/ingest/GetAll... | true | true | public Collection<AbstractFile> visit(FileSystem fs) {
// Files in the database have a filesystem field, so it's quick to
// get all the matching files for an entire filesystem with a query
SleuthkitCase sc = Case.getCurrentCase().getSleuthkitCase();
StringBuilder queryB = new Stri... | public Collection<AbstractFile> visit(FileSystem fs) {
// Files in the database have a filesystem field, so it's quick to
// get all the matching files for an entire filesystem with a query
SleuthkitCase sc = Case.getCurrentCase().getSleuthkitCase();
StringBuilder queryB = new Stri... |
diff --git a/src/com/soueidan/extensions/zone/events/UserLoginEventHandler.java b/src/com/soueidan/extensions/zone/events/UserLoginEventHandler.java
index a11b36c..7c3aceb 100644
--- a/src/com/soueidan/extensions/zone/events/UserLoginEventHandler.java
+++ b/src/com/soueidan/extensions/zone/events/UserLoginEventHandler.... | true | true | public void handleServerEvent(ISFSEvent event) throws SFSException {
_session = (ISession) event.getParameter(SFSEventParam.SESSION);
_data = (SFSObject) event.getParameter(SFSEventParam.LOGIN_IN_DATA);
String session = _data.getUtfString(ZoneExtension.USER_SESSION);
if ( session.isEmpty() ) {
throw n... | public void handleServerEvent(ISFSEvent event) throws SFSException {
_session = (ISession) event.getParameter(SFSEventParam.SESSION);
_data = (SFSObject) event.getParameter(SFSEventParam.LOGIN_IN_DATA);
String session = _data.getUtfString(ZoneExtension.USER_SESSION);
if ( session.isEmpty() ) {
throw n... |
diff --git a/Radio-T-Test/src/org/dandelion/radiot/accepttest/DisplayingPodcastList.java b/Radio-T-Test/src/org/dandelion/radiot/accepttest/DisplayingPodcastList.java
index df2a4860..ea098376 100644
--- a/Radio-T-Test/src/org/dandelion/radiot/accepttest/DisplayingPodcastList.java
+++ b/Radio-T-Test/src/org/dandelion/ra... | true | true | public void testDisplayPodcastItemInfo() throws Exception {
View itemView = getItemView(0);
assertTextFieldHasText(itemView, "podcast_item_view_number", "#5192");
assertTextFieldHasText(itemView, "podcast_item_view_date", "11.02.2012");
}
| public void testDisplayPodcastItemInfo() throws Exception {
View itemView = getItemView(0);
assertTextFieldHasText(itemView, "podcast_item_view_number", "#5192");
assertTextFieldHasText(itemView, "podcast_item_view_date", "12.02.2012");
}
|
diff --git a/src/com/ferg/awful/thread/AwfulPost.java b/src/com/ferg/awful/thread/AwfulPost.java
index 7d3a5661..65561adc 100644
--- a/src/com/ferg/awful/thread/AwfulPost.java
+++ b/src/com/ferg/awful/thread/AwfulPost.java
@@ -1,338 +1,341 @@
/***************************************************************************... | true | true | public static ArrayList<AwfulPost> parsePosts(TagNode aThread) {
ArrayList<AwfulPost> result = new ArrayList<AwfulPost>();
HtmlCleaner cleaner = new HtmlCleaner();
CleanerProperties properties = cleaner.getProperties();
properties.setOmitComments(true);
SimpleHtmlSerializer seriali... | public static ArrayList<AwfulPost> parsePosts(TagNode aThread) {
ArrayList<AwfulPost> result = new ArrayList<AwfulPost>();
HtmlCleaner cleaner = new HtmlCleaner();
CleanerProperties properties = cleaner.getProperties();
properties.setOmitComments(true);
SimpleHtmlSerializer seriali... |
diff --git a/Orego/src/orego/mcts/McRunnable.java b/Orego/src/orego/mcts/McRunnable.java
index bd4db1d8..58b08ae6 100644
--- a/Orego/src/orego/mcts/McRunnable.java
+++ b/Orego/src/orego/mcts/McRunnable.java
@@ -1,243 +1,243 @@
package orego.mcts;
import static orego.core.Colors.VACANT;
import static orego.core.Coo... | true | true | public int selectAndPlayOneMove(MersenneTwisterFast random, Board board) {
// Compute best heuristic value
int lastMove = board.getMove(board.getTurn() - 1);
if (lastMove != NO_POINT) {
int bestMove = NO_POINT;
int bestValue = 0;
for (int p : LARGE_KNIGHT_NEIGHBORHOOD[lastMove]) {
if ((board.getColo... | public int selectAndPlayOneMove(MersenneTwisterFast random, Board board) {
// Compute best heuristic value
int lastMove = board.getMove(board.getTurn() - 1);
if (ON_BOARD[lastMove]) {
int bestMove = NO_POINT;
int bestValue = 0;
for (int p : LARGE_KNIGHT_NEIGHBORHOOD[lastMove]) {
if ((board.getColor(... |
diff --git a/src/carnero/cgeo/cgBase.java b/src/carnero/cgeo/cgBase.java
index 856f91c..2c49784 100644
--- a/src/carnero/cgeo/cgBase.java
+++ b/src/carnero/cgeo/cgBase.java
@@ -1,4414 +1,4414 @@
package carnero.cgeo;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context... | true | true | public cgCacheWrap parseCache(String page, int reason) {
if (page == null || page.length() == 0) {
Log.e(cgSettings.tag, "cgeoBase.parseCache: No page given");
return null;
}
final Pattern patternGeocode = Pattern.compile("<span id=\"ctl00_uxWaypointName\" class=\"GCCode\">[^G]*(GC[a-z0-9]+)</span>", Patt... | public cgCacheWrap parseCache(String page, int reason) {
if (page == null || page.length() == 0) {
Log.e(cgSettings.tag, "cgeoBase.parseCache: No page given");
return null;
}
final Pattern patternGeocode = Pattern.compile("<span id=\"ctl00_uxWaypointName\" class=\"GCCode\">[^G]*(GC[a-z0-9]+)</span>", Patt... |
diff --git a/broker/src/main/java/aic/monitor/ui/StartUpMonitor.java b/broker/src/main/java/aic/monitor/ui/StartUpMonitor.java
index e5879c8..9adffde 100644
--- a/broker/src/main/java/aic/monitor/ui/StartUpMonitor.java
+++ b/broker/src/main/java/aic/monitor/ui/StartUpMonitor.java
@@ -1,242 +1,242 @@
package aic.monito... | false | true | public void start() throws IOException{
//keep a list of all managed instances
for(Server server : monitor.getServers()) {
if(server!=null && server.getInstanceName()!=null && server.getInstanceName().matches("m\\d")){
//primary server is never shut down
boolean primary = false;
if(server.getInstanc... | public void start() throws IOException{
//keep a list of all managed instances
for(Server server : monitor.getServers()) {
if(server!=null && server.getName()!=null && server.getName().matches("m\\d")){
//primary server is never shut down
boolean primary = false;
if(server.getName().equals("m1")){
... |
diff --git a/org.dawb.passerelle.actors/src/org/dawb/passerelle/editors/UserModifyComposite.java b/org.dawb.passerelle.actors/src/org/dawb/passerelle/editors/UserModifyComposite.java
index 1c9c4f2..d411bec 100644
--- a/org.dawb.passerelle.actors/src/org/dawb/passerelle/editors/UserModifyComposite.java
+++ b/org.dawb.pa... | true | true | private void createColumns(final TableViewer viewer) {
ColumnViewerToolTipSupport.enableFor(viewer,ToolTip.NO_RECREATE);
TableViewerColumn name = new TableViewerColumn(viewer, SWT.LEFT, 0);
name.getColumn().setText("Scalar Name");
name.getColumn().setWidth(200);
name.setLabelProvider(new ColumnLabelP... | private void createColumns(final TableViewer viewer) {
ColumnViewerToolTipSupport.enableFor(viewer,ToolTip.NO_RECREATE);
TableViewerColumn name = new TableViewerColumn(viewer, SWT.LEFT, 0);
name.getColumn().setText("");
name.getColumn().setWidth(200);
name.setLabelProvider(new ColumnLabelProvider() {... |
diff --git a/server/plugin/src/pt/webdetails/cdf/dd/packager/Concatenate.java b/server/plugin/src/pt/webdetails/cdf/dd/packager/Concatenate.java
index 0d9b8115..2bd8ace0 100644
--- a/server/plugin/src/pt/webdetails/cdf/dd/packager/Concatenate.java
+++ b/server/plugin/src/pt/webdetails/cdf/dd/packager/Concatenate.java
@... | true | true | public static InputStream concat(File[] files, String rootpath)
{
if (rootpath == null || StringUtils.isEmpty(rootpath))
{
return concat(files);
}
try
{
StringBuffer buffer = new StringBuffer();
for (File file : files)
{
StringBuffer tmp = new StringBuffer();
... | public static InputStream concat(File[] files, String rootpath)
{
if (rootpath == null || StringUtils.isEmpty(rootpath))
{
return concat(files);
}
try
{
StringBuffer buffer = new StringBuffer();
for (File file : files)
{
StringBuffer tmp = new StringBuffer();
... |
diff --git a/app/controllers/Admin.java b/app/controllers/Admin.java
index b301c2f..6390795 100644
--- a/app/controllers/Admin.java
+++ b/app/controllers/Admin.java
@@ -1,137 +1,137 @@
package controllers;
import play.Play;
import play.data.validation.Required;
import play.i18n.Messages;
import play.mvc.*;
im... | false | true | public static void addService(@Required String name, @Required String url, @Required Long typeId, @Required Long sourceId)
{
MapSource source = MapSource.findById(sourceId);
if (source == null)
error(418, "Source not found");
MapServiceType type = MapServiceType.findById(type... | public static void addService(@Required String name, @Required String url, @Required String type, @Required Long sourceId)
{
MapSource source = MapSource.findById(sourceId);
if (source == null)
error(418, "Source not found");
MapServiceType serviceType = MapServiceType.find("... |
diff --git a/mokai-core/src/main/java/org/mokai/persist/jdbc/sms/MySqlEngine.java b/mokai-core/src/main/java/org/mokai/persist/jdbc/sms/MySqlEngine.java
index 83ad179..541e894 100644
--- a/mokai-core/src/main/java/org/mokai/persist/jdbc/sms/MySqlEngine.java
+++ b/mokai-core/src/main/java/org/mokai/persist/jdbc/sms/MySq... | true | true | protected String getConnectionsCreateScript() {
return "CREATE TABLE " + ConnectionsSmsHandler.DEFAULT_TABLENAME + " (" +
"id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, " +
"account VARCHAR(30), " +
"reference VARCHAR(100), " +
"source VARCHAR(30) NOT NULL, " +
"sourcetype TINYINT NOT NULL,... | protected String getConnectionsCreateScript() {
return "CREATE TABLE " + ConnectionsSmsHandler.DEFAULT_TABLENAME + " (" +
"id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, " +
"account VARCHAR(30), " +
"reference VARCHAR(100), " +
"source VARCHAR(30) NOT NULL, " +
"sourcetype TINYINT NOT NULL,... |
diff --git a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/parse/ListNetworksResponseTest.java b/apis/cloudstack/src/test/java/org/jclouds/cloudstack/parse/ListNetworksResponseTest.java
index 42be2d16f5..8176c0fca6 100644
--- a/apis/cloudstack/src/test/java/org/jclouds/cloudstack/parse/ListNetworksResponseTest.j... | true | true | public Set<Network> expected() {
return ImmutableSet
.<Network> of(Network
.builder()
.id(204)
.name("Virtual Network")
.displayText(
"A dedicated virtualized network for your account. The broadcast dom... | public Set<Network> expected() {
return ImmutableSet
.<Network> of(Network
.builder()
.id(204)
.name("Virtual Network")
.displayText(
"A dedicated virtualized network for your account. The broadcast dom... |
diff --git a/src/main/java/cc/kune/gspace/client/options/general/GroupOptGeneralPanel.java b/src/main/java/cc/kune/gspace/client/options/general/GroupOptGeneralPanel.java
index 54e3aec4c..2a2be32e1 100644
--- a/src/main/java/cc/kune/gspace/client/options/general/GroupOptGeneralPanel.java
+++ b/src/main/java/cc/kune/gsp... | true | true | public GroupOptGeneralPanel(final I18nTranslationService i18n, final CoreResources res,
final MaskWidget maskWidget, final GroupFieldFactory groupFieldFactory) {
super(maskWidget, res.emblemSystem(), i18n.t("General"), i18n.t("Change this values:"));
shortName = groupFieldFactory.createGroupShortName(SH... | public GroupOptGeneralPanel(final I18nTranslationService i18n, final CoreResources res,
final MaskWidget maskWidget, final GroupFieldFactory groupFieldFactory) {
super(maskWidget, res.emblemSystem(), i18n.t("General"), i18n.t("You can change these values:"));
shortName = groupFieldFactory.createGroupSho... |
diff --git a/impl/src/main/java/net/camelpe/extension/cdi/spi/CamelInjectionTargetWrapper.java b/impl/src/main/java/net/camelpe/extension/cdi/spi/CamelInjectionTargetWrapper.java
index 486e393..933f985 100644
--- a/impl/src/main/java/net/camelpe/extension/cdi/spi/CamelInjectionTargetWrapper.java
+++ b/impl/src/main/jav... | false | true | private void injectEndpointInto(final T instance,
final Field camelInjectAnnotatedField) throws ResolutionException {
final Object valueToInject;
if (camelInjectAnnotatedField
.isAnnotationPresent(org.apache.camel.EndpointInject.class)) {
final org.apache.camel.EndpointInject endpointInjectAn... | private void injectEndpointInto(final T instance,
final Field camelInjectAnnotatedField) throws ResolutionException {
final Object valueToInject;
if (camelInjectAnnotatedField
.isAnnotationPresent(org.apache.camel.EndpointInject.class)) {
final org.apache.camel.EndpointInject endpointInjectAn... |
diff --git a/src/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java b/src/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java
index 28650fc..7e1db0d 100644
--- a/src/java/com/android/internal/telephony/cdma/CdmaLteServiceStateTracker.java
+++ b/src/java/com/android/internal/te... | true | true | protected void pollStateDone() {
// Some older CDMA/LTE RILs only report VoiceRadioTechnology which results in network
// Unknown. In these cases return RilVoiceRadioTechnology for RilDataRadioTechnology.
boolean oldRil = mCi.needsOldRilFeature("usevoicetechfordata");
if (mNewSS.getD... | protected void pollStateDone() {
// Some older CDMA/LTE RILs only report VoiceRadioTechnology which results in network
// Unknown. In these cases return RilVoiceRadioTechnology for RilDataRadioTechnology.
boolean oldRil = mCi.needsOldRilFeature("usevoicetechfordata");
if (mNewSS.getD... |
diff --git a/src/main/java/com/rhymestore/proc/TwitterListener.java b/src/main/java/com/rhymestore/proc/TwitterListener.java
index 1f529ec..c345205 100644
--- a/src/main/java/com/rhymestore/proc/TwitterListener.java
+++ b/src/main/java/com/rhymestore/proc/TwitterListener.java
@@ -1,115 +1,115 @@
/**
* Copyright (c) ... | true | true | public void start() throws IllegalStateException, TwitterException
{
twitter = new TwitterFactory().getInstance();
stream = new TwitterStreamFactory().getInstance();
LOGGER.info("Connected to Twitter as: {}", twitter.getScreenName());
LOGGER.info("Starting the Twitter API sched... | public void start() throws IllegalStateException, TwitterException
{
twitter = new TwitterFactory().getInstance();
stream = new TwitterStreamFactory().getInstance();
LOGGER.info("Connected to Twitter as: {}", twitter.getScreenName());
LOGGER.info("Starting the Twitter API sched... |
diff --git a/svnkit/src/org/tmatesoft/svn/core/wc/SVNCopyClient.java b/svnkit/src/org/tmatesoft/svn/core/wc/SVNCopyClient.java
index 9a86a7a1e..a00b6cd1b 100644
--- a/svnkit/src/org/tmatesoft/svn/core/wc/SVNCopyClient.java
+++ b/svnkit/src/org/tmatesoft/svn/core/wc/SVNCopyClient.java
@@ -1,2061 +1,2073 @@
/*
* =====... | false | true | private SVNCommitInfo copyWCToRepos(List copyPairs, boolean makeParents, String message,
SVNProperties revprops) throws SVNException {
String topSrc = ((CopyPair) copyPairs.get(0)).mySource;
for (int i = 1; i < copyPairs.size(); i++) {
CopyPair pair = (CopyPair) copyPairs.ge... | private SVNCommitInfo copyWCToRepos(List copyPairs, boolean makeParents, String message,
SVNProperties revprops) throws SVNException {
String topSrc = ((CopyPair) copyPairs.get(0)).mySource;
for (int i = 1; i < copyPairs.size(); i++) {
CopyPair pair = (CopyPair) copyPairs.ge... |
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tests/src/org/eclipse/tcf/te/tests/utils/UtilityTestCase.java b/target_explorer/plugins/org.eclipse.tcf.te.tests/src/org/eclipse/tcf/te/tests/utils/UtilityTestCase.java
index d5eb70b1d..df4dd89f4 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tests/src/or... | true | true | public void testElfUtils() {
// Test case works on Linux only
if (!Host.isLinuxHost()) return;
// Use the Linux agent to test the ELF utilities
IPath path = getDataLocation("agent", true, true); //$NON-NLS-1$
assertNotNull("Unexpected null value from getDataLocation()", path); //$NON-NLS-1$
assertTrue... | public void testElfUtils() {
// Test case works on Linux only
if (!Host.isLinuxHost()) return;
// Use the Linux agent to test the ELF utilities
IPath path = getDataLocation("agent", true, true); //$NON-NLS-1$
assertNotNull("Unexpected null value from getDataLocation()", path); //$NON-NLS-1$
path = pat... |
diff --git a/plugins/org.eclipse.acceleo.parser/src/org/eclipse/acceleo/internal/parser/compiler/AcceleoProject.java b/plugins/org.eclipse.acceleo.parser/src/org/eclipse/acceleo/internal/parser/compiler/AcceleoProject.java
index 3e67e89a..68c6de9f 100644
--- a/plugins/org.eclipse.acceleo.parser/src/org/eclipse/acceleo/... | false | true | public URI getURIDependency(String dependency) {
URI result = null;
Iterator<URI> iterator = this.dependencies.iterator();
while (iterator.hasNext()) {
URI uri = iterator.next();
if (uri.isPlatformPlugin()) {
String uriStr = uri.toString();
String[] segments = uri.segments();
if (uriStr.starts... | public URI getURIDependency(String dependency) {
URI result = null;
Iterator<URI> iterator = this.dependencies.iterator();
while (iterator.hasNext()) {
URI uri = iterator.next();
if (uri.isPlatformPlugin()) {
String uriStr = uri.toString();
String[] segments = uri.segments();
if (uriStr.starts... |
diff --git a/wings/src/org/wings/plaf/xhtml/GridLayoutCG.java b/wings/src/org/wings/plaf/xhtml/GridLayoutCG.java
index 74df8e9a..77c02edd 100644
--- a/wings/src/org/wings/plaf/xhtml/GridLayoutCG.java
+++ b/wings/src/org/wings/plaf/xhtml/GridLayoutCG.java
@@ -1,144 +1,148 @@
/*
* $Id$
* (c) Copyright 2000 wingS dev... | true | true | public void write(Device d, SLayoutManager l)
throws IOException
{
SGridLayout layout = (SGridLayout)l;
SContainer container = layout.getContainer();
List components = layout.getComponents();
boolean header = layout.getHeader();
boolean relative = layout.isRelati... | public void write(Device d, SLayoutManager l)
throws IOException
{
SGridLayout layout = (SGridLayout)l;
SContainer container = layout.getContainer();
List components = layout.getComponents();
boolean header = layout.getHeader();
boolean relative = layout.isRelati... |
diff --git a/src/java/org/apache/log4j/RollingFileAppenderBeanInfo.java b/src/java/org/apache/log4j/RollingFileAppenderBeanInfo.java
index a8c0a821..7e55ca73 100644
--- a/src/java/org/apache/log4j/RollingFileAppenderBeanInfo.java
+++ b/src/java/org/apache/log4j/RollingFileAppenderBeanInfo.java
@@ -1,52 +1,52 @@
/*
*... | true | true | RollingFileAppenderBeanInfo() {
Class clazz = RollingFileAppender.class;
try {
// the magic is here
BeanInfo bi = Introspector.getBeanInfo(clazz,
Introspector.IGNORE_ALL_BEANINFO);
props = bi.getPropertyDescriptors();
if(props != null) {
for(int i = 0; i < props.length; i++... | RollingFileAppenderBeanInfo() {
Class clazz = RollingFileAppender.class;
try {
// the magic is here
BeanInfo bi = Introspector.getBeanInfo(clazz,
Introspector.IGNORE_ALL_BEANINFO);
props = bi.getPropertyDescriptors();
if(props != null) {
for(int i = 0; i < props.length; i++... |
diff --git a/client/src/main/java/org/apache/abdera/protocol/client/CommonsClient.java b/client/src/main/java/org/apache/abdera/protocol/client/CommonsClient.java
index a9776185..370d7d29 100644
--- a/client/src/main/java/org/apache/abdera/protocol/client/CommonsClient.java
+++ b/client/src/main/java/org/apache/abdera/... | true | true | public ClientResponse execute(
String method,
String uri,
RequestEntity entity,
RequestOptions options) {
try {
if (options == null) options = getDefaultRequestOptions();
Cache cache = getCache();
CacheDisposition disp =
(useCache(method,options)) ?
... | public ClientResponse execute(
String method,
String uri,
RequestEntity entity,
RequestOptions options) {
try {
if (options == null) options = getDefaultRequestOptions();
Cache cache = getCache();
CacheDisposition disp =
(useCache(method,options)) ?
... |
diff --git a/CodeGenerator/src/codeGenerator/GameSQLGenerator.java b/CodeGenerator/src/codeGenerator/GameSQLGenerator.java
index a8b1e0b..9d6b821 100644
--- a/CodeGenerator/src/codeGenerator/GameSQLGenerator.java
+++ b/CodeGenerator/src/codeGenerator/GameSQLGenerator.java
@@ -1,176 +1,176 @@
package codeGenerator;
... | true | true | public void compile(String path,
String userName, String password)
{
Connection conn;
PreparedStatement stmt;
ResultSet rs;
Date convertedDate = new Date();
try
{
convertedDate = new SimpleDateFormat("yyyyMMdd").parse(gameDate.substring(0, 11));
}
catch (ParseException e)
{
e.printSta... | public void compile(String path,
String userName, String password)
{
Connection conn;
PreparedStatement stmt;
ResultSet rs;
Date convertedDate = new Date();
try
{
convertedDate = new SimpleDateFormat("yyyyMMdd").parse(gameDate.substring(0, 11));
}
catch (ParseException e)
{
e.printSta... |
diff --git a/eclipse/net.sf.orc2hdl/src/net/sf/orc2hdl/backend/TopNetworkTemplateData.java b/eclipse/net.sf.orc2hdl/src/net/sf/orc2hdl/backend/TopNetworkTemplateData.java
index 2a59cc4..95e8187 100644
--- a/eclipse/net.sf.orc2hdl/src/net/sf/orc2hdl/backend/TopNetworkTemplateData.java
+++ b/eclipse/net.sf.orc2hdl/src/ne... | true | true | private void computeNetworkClockDomains(Network network,
Map<String, String> clockDomains) {
// Fill the the portClockDomain with "CLK" for the I/O of the network
for (Port port : network.getInputs()) {
portClockDomain.put(port, DEFAULT_CLOCK_DOMAIN);
}
for (Port port : network.getOutputs()) {
portC... | private void computeNetworkClockDomains(Network network,
Map<String, String> clockDomains) {
// Fill the the portClockDomain with "CLK" for the I/O of the network
for (Port port : network.getInputs()) {
portClockDomain.put(port, DEFAULT_CLOCK_DOMAIN);
}
for (Port port : network.getOutputs()) {
portC... |
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPlanningEditorPart.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/BugzillaPlanningEditorPart.java
index 5dde706bf..327bf3941 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/ecl... | true | true | public void createControl(Composite parent, FormToolkit toolkit) {
initialize();
Section timeSection = createSection(parent, toolkit, hasIncoming);
GridLayout gl = new GridLayout();
GridData gd = new GridData(SWT.FILL, SWT.NONE, false, false);
gd.horizontalSpan = 4;
timeSection.setLayout(gl);
timeSectio... | public void createControl(Composite parent, FormToolkit toolkit) {
initialize();
Section timeSection = createSection(parent, toolkit, hasIncoming);
GridLayout gl = new GridLayout();
GridData gd = new GridData(SWT.FILL, SWT.NONE, false, false);
gd.horizontalSpan = 4;
timeSection.setLayout(gl);
timeSectio... |
diff --git a/workflow-backend/src/main/java/org/nekorp/workflow/backend/service/imp/ServicioMetadataFactoryImp.java b/workflow-backend/src/main/java/org/nekorp/workflow/backend/service/imp/ServicioMetadataFactoryImp.java
index cda3e35..7199002 100644
--- a/workflow-backend/src/main/java/org/nekorp/workflow/backend/serv... | true | true | public ServicioMetadata calcularMetadata(Servicio servicio, List<Evento> eventos) {
ServicioMetadata respuesta = new ServicioMetadata();
if (eventos == null) {
eventos = new LinkedList<Evento>();
}
Evento eventoInicio = null;
Evento eventoEntradaAuto = null;
... | public ServicioMetadata calcularMetadata(Servicio servicio, List<Evento> eventos) {
ServicioMetadata respuesta = new ServicioMetadata();
respuesta.setCostoTotal(servicio.getMetadata().getCostoTotal());
if (eventos == null) {
eventos = new LinkedList<Evento>();
}
E... |
diff --git a/java/de/dfki/lt/signalproc/demo/ChangeMyVoiceUI.java b/java/de/dfki/lt/signalproc/demo/ChangeMyVoiceUI.java
index 555ee7b3a..8b134ee22 100644
--- a/java/de/dfki/lt/signalproc/demo/ChangeMyVoiceUI.java
+++ b/java/de/dfki/lt/signalproc/demo/ChangeMyVoiceUI.java
@@ -1,1229 +1,1235 @@
/*
* ChangeMyVoiceUI.j... | false | true | private void changeVoice() {
int channels = 1;
AudioFormat audioFormat = null;
if (inputIndex == 0) //Online processing using microphone
{
audioFormat = new AudioFormat(
AudioFormat.Encoding.PCM_SIGNED, modParams.fs, 16, channels, 2*channels, modPara... | private void changeVoice() {
int channels = 1;
AudioFormat audioFormat = null;
if (inputIndex == 0) //Online processing using microphone
{
audioFormat = new AudioFormat(
AudioFormat.Encoding.PCM_SIGNED, modParams.fs, 16, channels, 2*channels, modPara... |
diff --git a/sventon/dev/java/src/de/berlios/sventon/web/command/ConfigCommandValidator.java b/sventon/dev/java/src/de/berlios/sventon/web/command/ConfigCommandValidator.java
index 97b98223..b2e24d58 100644
--- a/sventon/dev/java/src/de/berlios/sventon/web/command/ConfigCommandValidator.java
+++ b/sventon/dev/java/src/... | true | true | public void validate(Object obj, Errors errors) {
final ConfigCommand command = (ConfigCommand) obj;
// Validate 'repository instance name'
final String instanceName = command.getName();
if (instanceName != null) {
try {
new InstanceConfiguration().setInstanceName(instanceName);
}... | public void validate(Object obj, Errors errors) {
final ConfigCommand command = (ConfigCommand) obj;
// Validate 'repository instance name'
final String instanceName = command.getName();
if (instanceName != null) {
try {
new InstanceConfiguration().setInstanceName(instanceName);
}... |
diff --git a/src/com/cole2sworld/ColeBans/GlobalConf.java b/src/com/cole2sworld/ColeBans/GlobalConf.java
index 037ec77..3d7fa59 100644
--- a/src/com/cole2sworld/ColeBans/GlobalConf.java
+++ b/src/com/cole2sworld/ColeBans/GlobalConf.java
@@ -1,272 +1,276 @@
package com.cole2sworld.ColeBans;
import java.io.File;
imp... | true | true | public static void loadConfig() throws RuntimeException {
File confFile = new File("./plugins/ColeBans/config.yml");
try {
if (confFile.exists()) {
conf.load(confFile);
try {
settings = conf.getConfigurationSection("settings");
allowTempBans = settings.getBoolean("allowTempBans");
banMess... | public static void loadConfig() throws RuntimeException {
File confFile = new File("./plugins/ColeBans/config.yml");
try {
if (confFile.exists()) {
conf.load(confFile);
try {
settings = conf.getConfigurationSection("settings");
allowTempBans = settings.getBoolean("allowTempBans");
banMess... |
diff --git a/legacy/anttasks/src/main/java/com/android/ant/SingleDependencyTask.java b/legacy/anttasks/src/main/java/com/android/ant/SingleDependencyTask.java
index 4cc8f3e..36b8d12 100644
--- a/legacy/anttasks/src/main/java/com/android/ant/SingleDependencyTask.java
+++ b/legacy/anttasks/src/main/java/com/android/ant/S... | true | true | protected void generateDependencyFile(String depFilePath,
List<InputPath> inputs, String outputFile) {
File depFile = new File(depFilePath);
try {
PrintStream ps = new PrintStream(depFile);
// write the output file.
ps.print(outputFile);
... | protected void generateDependencyFile(String depFilePath,
List<InputPath> inputs, String outputFile) {
File depFile = new File(depFilePath);
try {
PrintStream ps = new PrintStream(depFile);
// write the output file.
ps.print(outputFile);
... |
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/ProvisioningOperationRunner.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/ProvisioningOperationRunner.java
index ffe807f44..40cb574ed 100644
--- a/bundles/org.eclipse.equinox.p... | true | true | public static Job schedule(final ProvisioningOperation op, final int errorStyle) {
Job job;
final boolean noPrompt = (errorStyle & (StatusManager.BLOCK | StatusManager.SHOW)) == 0;
if (op.runInBackground()) {
job = new Job(op.getLabel()) {
protected IStatus run(IProgressMonitor monitor) {
final Job ... | public static Job schedule(final ProvisioningOperation op, final int errorStyle) {
Job job;
final boolean noPrompt = (errorStyle & (StatusManager.BLOCK | StatusManager.SHOW)) == 0;
if (op.runInBackground()) {
job = new Job(op.getLabel()) {
protected IStatus run(IProgressMonitor monitor) {
final Job ... |
diff --git a/hale/Client/src/eu/esdihumboldt/hale/rcp/views/map/style/RuleStylePage.java b/hale/Client/src/eu/esdihumboldt/hale/rcp/views/map/style/RuleStylePage.java
index 2b17a4e9b..1d61cbe6c 100644
--- a/hale/Client/src/eu/esdihumboldt/hale/rcp/views/map/style/RuleStylePage.java
+++ b/hale/Client/src/eu/esdihumboldt... | true | true | public void createControl(Composite parent) {
changed = false;
Composite page = new Composite(parent, SWT.NONE);
page.setLayout(new GridLayout(2, false));
// DISABLED - this method seems to change the rule order - Rule[] ruleArray = SLD.rules(getParent().getStyle());
// use list instead:
List<Rule> r... | public void createControl(Composite parent) {
changed = false;
Composite page = new Composite(parent, SWT.NONE);
page.setLayout(new GridLayout(2, false));
// DISABLED - this method seems to change the rule order - Rule[] ruleArray = SLD.rules(getParent().getStyle());
// use list instead:
List<Rule> r... |
diff --git a/src/java/lib/latex/wasysym/WasysymSty.java b/src/java/lib/latex/wasysym/WasysymSty.java
index ced2f70..4351b91 100644
--- a/src/java/lib/latex/wasysym/WasysymSty.java
+++ b/src/java/lib/latex/wasysym/WasysymSty.java
@@ -1,63 +1,63 @@
/*
Copyright (C) 2013 Nicola L.C. Talbot
www.dickimaw-books.co... | true | true | public void addDefinitions()
{
LaTeXParserListener listener = getListener();
registerControlSequence(listener.createMathSymbol("Join", 0x2A1D));
registerControlSequence(listener.createMathSymbol("Box", 0x25A1));
registerControlSequence(listener.createMathSymbol("Diamond", 0x25C7));
... | public void addDefinitions()
{
LaTeXParserListener listener = getListener();
registerControlSequence(listener.createMathSymbol("Join", 0x2A1D));
registerControlSequence(listener.createMathSymbol("Box", 0x25A1));
registerControlSequence(listener.createMathSymbol("Diamond", 0x25C7));
... |
diff --git a/android/src/dk/napp/drawer/Drawer.java b/android/src/dk/napp/drawer/Drawer.java
index db16a16..4ffa52b 100644
--- a/android/src/dk/napp/drawer/Drawer.java
+++ b/android/src/dk/napp/drawer/Drawer.java
@@ -1,440 +1,440 @@
/**
* Copyright (c) 2010-2013 by Napp ApS
* www.napp.dk
* Author Mads Møller
*... | true | true | public void processProperties(KrollDict d)
{
if (d.containsKey(TiC.PROPERTY_ACTIVITY)) {
Object activityObject = d.get(TiC.PROPERTY_ACTIVITY);
ActivityProxy activityProxy = getProxy().getActivityProxy();
if (activityObject instanceof HashMap<?, ?> && activityProxy != null) {
@SuppressWarnings("unchecke... | public void processProperties(KrollDict d)
{
if (d.containsKey(TiC.PROPERTY_ACTIVITY)) {
Object activityObject = d.get(TiC.PROPERTY_ACTIVITY);
ActivityProxy activityProxy = getProxy().getActivityProxy();
if (activityObject instanceof HashMap<?, ?> && activityProxy != null) {
@SuppressWarnings("unchecke... |
diff --git a/src/org/pentaho/pms/ui/concept/editor/SecurityPropertyEditorWidget.java b/src/org/pentaho/pms/ui/concept/editor/SecurityPropertyEditorWidget.java
index e353f27..a4d4cc2 100755
--- a/src/org/pentaho/pms/ui/concept/editor/SecurityPropertyEditorWidget.java
+++ b/src/org/pentaho/pms/ui/concept/editor/SecurityP... | true | true | protected void createContents(final Composite parent) {
addDisposeListener(new DisposeListener() {
public void widgetDisposed(DisposeEvent e) {
SecurityPropertyEditorWidget.this.widgetDisposed(e);
}
});
securityOK = true;
try {
securityReference.getAcls();
} catch (E... | protected void createContents(final Composite parent) {
addDisposeListener(new DisposeListener() {
public void widgetDisposed(DisposeEvent e) {
SecurityPropertyEditorWidget.this.widgetDisposed(e);
}
});
securityOK = true;
try {
securityReference.getAcls();
} catch (E... |
diff --git a/calculator/src/main/java/no/ntnu/Division.java b/calculator/src/main/java/no/ntnu/Division.java
index c069495..2990fac 100644
--- a/calculator/src/main/java/no/ntnu/Division.java
+++ b/calculator/src/main/java/no/ntnu/Division.java
@@ -1,12 +1,12 @@
package no.ntnu;
public class Division {
public sta... | true | true | public static int divide(int numberA, int numberB) {
int counter = 0;
while(numberA >= numberB) {
counter++;
numberA = Subtraction.subtract(numberA, numberB);
}
return counter;
}
| public static int divide(int numberA, int numberB) {
int counter = 0;
while(numberA > numberB) {
counter++;
numberA = Subtraction.subtract(numberA, numberB);
}
return counter;
}
|
diff --git a/SocialCee/SocialCee/src/com/example/socialcee/Posts.java b/SocialCee/SocialCee/src/com/example/socialcee/Posts.java
index fda99d3..3dbbe08 100644
--- a/SocialCee/SocialCee/src/com/example/socialcee/Posts.java
+++ b/SocialCee/SocialCee/src/com/example/socialcee/Posts.java
@@ -1,147 +1,147 @@
package com.ex... | true | true | public LinearLayout CreateBlock(int id)
{
LinearLayout ll = new LinearLayout(this);
ll.setOrientation(LinearLayout.VERTICAL);
LayoutParams layoutParams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);
layoutParams.setMargi... | public LinearLayout CreateBlock(int id)
{
LinearLayout ll = new LinearLayout(this);
ll.setOrientation(LinearLayout.VERTICAL);
LayoutParams layoutParams = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);
layoutParams.setMargi... |
diff --git a/bundles/plugins/org.bonitasoft.studio.common.repository/src/org/bonitasoft/studio/common/repository/operation/ImportBosArchiveOperation.java b/bundles/plugins/org.bonitasoft.studio.common.repository/src/org/bonitasoft/studio/common/repository/operation/ImportBosArchiveOperation.java
index 49e13fe698..439b0... | false | true | public IStatus run(IProgressMonitor monitor) {
status = Status.OK_STATUS;
Assert.isNotNull(archiveFile);
final File archive = new File(archiveFile);
Assert.isTrue(archive.exists());
try {
IContainer container = createTempProject(archive, monitor);
final Map<String, IRepositoryStore<? extends IReposi... | public IStatus run(IProgressMonitor monitor) {
status = Status.OK_STATUS;
Assert.isNotNull(archiveFile);
final File archive = new File(archiveFile);
Assert.isTrue(archive.exists());
try {
IContainer container = createTempProject(archive, monitor);
final Map<String, IRepositoryStore<? extends IReposi... |
diff --git a/javasrc/src/org/ccnx/ccn/test/protocol/LatestVersionTest.java b/javasrc/src/org/ccnx/ccn/test/protocol/LatestVersionTest.java
index db4a0e049..47e18c14f 100644
--- a/javasrc/src/org/ccnx/ccn/test/protocol/LatestVersionTest.java
+++ b/javasrc/src/org/ccnx/ccn/test/protocol/LatestVersionTest.java
@@ -1,608 +... | true | true | public void getLatestVersion() {
ContentName one = null;
ContentName two = null;
ContentName three = null;
ContentName four = null;
ContentName skipSegment = null;
ContentName skipSegment0 = null;
ContentName skipSegment2 = null;
ContentObject obj1 = null;
ContentObject obj2 = null;
ContentObject ... | public void getLatestVersion() {
ContentName one = null;
ContentName two = null;
ContentName three = null;
ContentName four = null;
ContentName skipSegment = null;
ContentName skipSegment0 = null;
ContentName skipSegment2 = null;
ContentObject obj1 = null;
ContentObject obj2 = null;
ContentObject ... |
diff --git a/src/main/java/hudson/plugins/emailext/EmailExtHelp.java b/src/main/java/hudson/plugins/emailext/EmailExtHelp.java
index eb5d313..707931b 100644
--- a/src/main/java/hudson/plugins/emailext/EmailExtHelp.java
+++ b/src/main/java/hudson/plugins/emailext/EmailExtHelp.java
@@ -1,75 +1,76 @@
package hudson.plugi... | true | true | private static String getTokenHelpText(boolean displayDefaultTokens) {
StringBuffer sb = new StringBuffer();
// This is the help for the content tokens
sb.append("\n" +
"<p>Arguments may be given for each token in the form name=<i>value</i>, " +
"and all arguments are optional. The {'s and }'s may be... | private static String getTokenHelpText(boolean displayDefaultTokens) {
StringBuffer sb = new StringBuffer();
// This is the help for the content tokens
sb.append("\n" +
"<p>All arguments are optional. Arguments may be given for each token in the " +
"form <i>name=\"value\"</i> for strings ... |
diff --git a/GAE/src/org/waterforpeople/mapping/app/gwt/server/spreadsheetmapper/SpreadsheetMappingAttributeServiceImpl.java b/GAE/src/org/waterforpeople/mapping/app/gwt/server/spreadsheetmapper/SpreadsheetMappingAttributeServiceImpl.java
index 9f20c2c15..4f4745594 100644
--- a/GAE/src/org/waterforpeople/mapping/app/gw... | false | true | public void processSurveySpreadsheet(String spreadsheetName) {
setCreds();
try {
GoogleSpreadsheetAdapter gsa = new GoogleSpreadsheetAdapter(
sessionToken, privateKey);
SpreadsheetContainer sc = gsa
.getSpreadsheetContents(spreadsheetName);
SurveyGroup sg = new SurveyGroup();
sg.setCode("Ho... | public void processSurveySpreadsheet(String spreadsheetName) {
setCreds();
try {
GoogleSpreadsheetAdapter gsa = new GoogleSpreadsheetAdapter(
sessionToken, privateKey);
SpreadsheetContainer sc = gsa
.getSpreadsheetContents(spreadsheetName);
SurveyGroup sg = new SurveyGroup();
sg.setCode("Ho... |
diff --git a/dev/core/src/com/google/gwt/core/linker/XSLinker.java b/dev/core/src/com/google/gwt/core/linker/XSLinker.java
index 185c29d0c..bdff4f774 100644
--- a/dev/core/src/com/google/gwt/core/linker/XSLinker.java
+++ b/dev/core/src/com/google/gwt/core/linker/XSLinker.java
@@ -1,118 +1,120 @@
/*
* Copyright 2008 ... | true | true | protected String getModulePrefix(TreeLogger logger, LinkerContext context,
String strongName) throws UnableToCompleteException {
DefaultTextOutput out = new DefaultTextOutput(context.isOutputCompact());
out.print("(function(){");
out.newlineOpt();
// Setup the well-known variables.
//
... | protected String getModulePrefix(TreeLogger logger, LinkerContext context,
String strongName) throws UnableToCompleteException {
DefaultTextOutput out = new DefaultTextOutput(context.isOutputCompact());
out.print("(function(){");
out.newlineOpt();
// Setup the well-known variables.
//
... |
diff --git a/src/com/mwr/droidhg/reflection/ReflectedType.java b/src/com/mwr/droidhg/reflection/ReflectedType.java
index f0ca5a8..7d68145 100644
--- a/src/com/mwr/droidhg/reflection/ReflectedType.java
+++ b/src/com/mwr/droidhg/reflection/ReflectedType.java
@@ -1,50 +1,50 @@
package com.mwr.droidhg.reflection;
impor... | true | true | public static ReflectedType fromNative(Object object) {
if(object == null)
return new ReflectedNull();
else if(object instanceof Boolean)
return new ReflectedPrimitive((Boolean)object);
else if(object instanceof Byte)
return new ReflectedPrimitive((Byte)object);
else if(object instanceof Character)
... | public static ReflectedType fromNative(Object object) {
if(object == null)
return new ReflectedNull();
else if(object instanceof Boolean)
return new ReflectedPrimitive((Boolean)object);
else if(object instanceof Byte)
return new ReflectedPrimitive((Byte)object);
else if(object instanceof Character)
... |
diff --git a/process/src/main/java/org/apache/falcon/workflow/OozieProcessWorkflowBuilder.java b/process/src/main/java/org/apache/falcon/workflow/OozieProcessWorkflowBuilder.java
index 76b5cb45..e422ec42 100644
--- a/process/src/main/java/org/apache/falcon/workflow/OozieProcessWorkflowBuilder.java
+++ b/process/src/mai... | true | true | public Properties newWorkflowSchedule(Process process, Date startDate, String clusterName, String user)
throws FalconException {
org.apache.falcon.entity.v0.process.Cluster processCluster = ProcessHelper.getCluster(process, clusterName);
if (!startDate.before(processCluster.getValidity()... | public Properties newWorkflowSchedule(Process process, Date startDate, String clusterName, String user)
throws FalconException {
org.apache.falcon.entity.v0.process.Cluster processCluster = ProcessHelper.getCluster(process, clusterName);
if (!startDate.before(processCluster.getValidity()... |
diff --git a/applications/carrot2-dcs/src/org/carrot2/dcs/DcsApp.java b/applications/carrot2-dcs/src/org/carrot2/dcs/DcsApp.java
index 53d2e6690..0482519b5 100644
--- a/applications/carrot2-dcs/src/org/carrot2/dcs/DcsApp.java
+++ b/applications/carrot2-dcs/src/org/carrot2/dcs/DcsApp.java
@@ -1,236 +1,236 @@
/*
* C... | true | true | void start(String webPathPrefix) throws Exception
{
configureLogging();
log.info("Starting DCS...");
// http://issues.carrot2.org/browse/CARROT-581
if (maxThreads < MIN_THREADS)
{
throw new IllegalArgumentException("Max number of threads must be greater than ... | void start(String webPathPrefix) throws Exception
{
configureLogging();
log.info("Starting DCS...");
// http://issues.carrot2.org/browse/CARROT-581
if (maxThreads < MIN_THREADS)
{
throw new IllegalArgumentException("Max number of threads must be greater than ... |
diff --git a/plugin-commons/src/main/java/com/photon/phresco/plugins/PhrescoBasePlugin.java b/plugin-commons/src/main/java/com/photon/phresco/plugins/PhrescoBasePlugin.java
index 754888a3..5451b34c 100644
--- a/plugin-commons/src/main/java/com/photon/phresco/plugins/PhrescoBasePlugin.java
+++ b/plugin-commons/src/main/... | true | true | public ExecutionStatus runPerformanceTest(Configuration configuration, MavenProjectInfo mavenProjectInfo) throws PhrescoException {
try {
PluginUtils pluginUtils = new PluginUtils();
MavenProject project = mavenProjectInfo.getProject();
String basedir = project.getBasedir().getPath();
Map<String, String>... | public ExecutionStatus runPerformanceTest(Configuration configuration, MavenProjectInfo mavenProjectInfo) throws PhrescoException {
try {
PluginUtils pluginUtils = new PluginUtils();
MavenProject project = mavenProjectInfo.getProject();
String basedir = project.getBasedir().getPath();
Map<String, String>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.