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/grisu-core/src/main/java/grisu/backend/model/job/gt5/Gram5Client.java b/grisu-core/src/main/java/grisu/backend/model/job/gt5/Gram5Client.java
index bc2f2645..876b71d3 100644
--- a/grisu-core/src/main/java/grisu/backend/model/job/gt5/Gram5Client.java
+++ b/grisu-core/src/main/java/grisu/backend/model/job/gt... | true | true | public int[] getJobStatus(String handle, GSSCredential cred) {
final int[] results = new int[2];
final Gram5JobListener l = Gram5JobListener.getJobListener();
// we need this to catch quick failure
//Integer status = l.getStatus(handle);
Integer status = null;
myLogger.debug("job status is " + status)... | public int[] getJobStatus(String handle, GSSCredential cred) {
final int[] results = new int[2];
final Gram5JobListener l = Gram5JobListener.getJobListener();
// we need this to catch quick failure
//Integer status = l.getStatus(handle);
Integer status = null;
myLogger.debug("job status is " + status)... |
diff --git a/src/ca/mcgill/hs/serv/HSServAutoStart.java b/src/ca/mcgill/hs/serv/HSServAutoStart.java
index 7bceb74..43e9130 100644
--- a/src/ca/mcgill/hs/serv/HSServAutoStart.java
+++ b/src/ca/mcgill/hs/serv/HSServAutoStart.java
@@ -1,40 +1,40 @@
package ca.mcgill.hs.serv;
import android.app.Activity;
import andro... | true | true | public void onReceive(Context context, Intent intent){
//check if the received intent is BOOT_COMPLETED
if( "android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
//get the saved settings
settings = context.getSharedPreferences(HSANDROID_PREFS_NAME, Activity.MODE_WORLD_READABLE);
//read the ... | public void onReceive(Context context, Intent intent){
//check if the received intent is BOOT_COMPLETED
if( "android.intent.action.BOOT_COMPLETED".equals(intent.getAction())) {
//get the saved settings
settings = context.getSharedPreferences(HSANDROID_PREFS_NAME, Activity.MODE_WORLD_READABLE);
//read the ... |
diff --git a/src/org/servalproject/dna/DataFile.java b/src/org/servalproject/dna/DataFile.java
index 074bd02f..3c4420dc 100644
--- a/src/org/servalproject/dna/DataFile.java
+++ b/src/org/servalproject/dna/DataFile.java
@@ -1,97 +1,99 @@
package org.servalproject.dna;
import java.io.File;
import java.io.FileInputSt... | false | true | public static String getDid(int record_offset) {
String did = "";
if (!getFileHandle())
return null;
byte[] bytes = new byte[64];
try {
hlrFile.skip(record_offset + 4 + 32);
int b = hlrFile.read(bytes, 0, 64);
if (b<5) return null;
if (bytes[0] == 0x80) {
int len = (bytes[1] << 8) + bytes... | public static String getDid(int record_offset) {
String did = "";
if (!getFileHandle())
return null;
byte[] bytes = new byte[64];
try {
hlrFile.skip(record_offset + 4 + 32);
int b = hlrFile.read(bytes, 0, 64);
if (b<5) return null;
if (bytes[0] == -128 /* 0x80 */) {
int len = (bytes[1] <<... |
diff --git a/src/org/apache/xalan/xsltc/trax/DOM2SAX.java b/src/org/apache/xalan/xsltc/trax/DOM2SAX.java
index e25361ff..48ee6096 100644
--- a/src/org/apache/xalan/xsltc/trax/DOM2SAX.java
+++ b/src/org/apache/xalan/xsltc/trax/DOM2SAX.java
@@ -1,485 +1,490 @@
/*
* @(#)$Id$
*
* The Apache Software License, Version... | false | true | private void parse(Node node) throws IOException, SAXException {
Node first = null;
if (node == null) return;
switch (node.getNodeType()) {
case Node.ATTRIBUTE_NODE: // handled by ELEMENT_NODE
case Node.DOCUMENT_FRAGMENT_NODE:
case Node.DOCUMENT_TYPE_NODE :
case Node.ENTITY_NODE :
ca... | private void parse(Node node) throws IOException, SAXException {
Node first = null;
if (node == null) return;
switch (node.getNodeType()) {
case Node.ATTRIBUTE_NODE: // handled by ELEMENT_NODE
case Node.DOCUMENT_FRAGMENT_NODE:
case Node.DOCUMENT_TYPE_NODE :
case Node.ENTITY_NODE :
ca... |
diff --git a/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/MogTest.java b/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/MogTest.java
index 36054db66..05b08fb92 100644
--- a/java/testing/org/apache/derbyTesting/functionTests/tests/memorydb/MogTest.java
+++ b/java/testing/org/apach... | true | true | public void doTestClusMog(Connection conn)
throws SQLException {
// Initialize test objects.
final long _seed = System.currentTimeMillis();
java.util.Random rng = new java.util.Random(_seed);
/** MOG generator being tested */
GenMog genMog = new GenMog(rng);
/** MOG sampler being te... | public void doTestClusMog(Connection conn)
throws SQLException {
// Initialize test objects.
// NOTE: Due to instability in the test, the seed has been fixed.
// See DERBY-4209 (and DERBY-4085).
//final long _seed = System.currentTimeMillis();
final long _seed = 1241411544935L;
... |
diff --git a/src/com/ichi2/anki/DeckPicker.java b/src/com/ichi2/anki/DeckPicker.java
index 7091fb5b..82440030 100644
--- a/src/com/ichi2/anki/DeckPicker.java
+++ b/src/com/ichi2/anki/DeckPicker.java
@@ -1,2069 +1,2069 @@
/****************************************************************************************
* Copy... | true | true | protected Dialog onCreateDialog(int id) {
StyledDialog dialog;
Resources res = getResources();
StyledDialog.Builder builder = new StyledDialog.Builder(this);
switch (id) {
case DIALOG_NO_SDCARD:
builder.setMessage("The SD card could not be read. Please, turn off USB storage.");
builder.setPositiveButt... | protected Dialog onCreateDialog(int id) {
StyledDialog dialog;
Resources res = getResources();
StyledDialog.Builder builder = new StyledDialog.Builder(this);
switch (id) {
case DIALOG_NO_SDCARD:
builder.setMessage("The SD card could not be read. Please, turn off USB storage.");
builder.setPositiveButt... |
diff --git a/src/com/winthier/tradecontrol/Configuration.java b/src/com/winthier/tradecontrol/Configuration.java
index d0aaf26..d195034 100644
--- a/src/com/winthier/tradecontrol/Configuration.java
+++ b/src/com/winthier/tradecontrol/Configuration.java
@@ -1,138 +1,134 @@
/* * * * * * * * * * * * * * * * * * * * * * *... | false | true | public Configuration(TradeControlPlugin plugin) {
this.plugin = plugin;
try {
for (Map.Entry<String, Object> entry : plugin.getConfig().getConfigurationSection("trades").getValues(false).entrySet()) {
Map<String, Object> map... | public Configuration(TradeControlPlugin plugin) {
this.plugin = plugin;
try {
// write default config to disk once
File file = plugin.getDataFolder();
if (!file.exists()) file.mkdir();
... |
diff --git a/enduro-project/src/enduro/gui/RegistrationTextField.java b/enduro-project/src/enduro/gui/RegistrationTextField.java
index f10ae58..46730a4 100644
--- a/enduro-project/src/enduro/gui/RegistrationTextField.java
+++ b/enduro-project/src/enduro/gui/RegistrationTextField.java
@@ -1,110 +1,110 @@
package enduro... | false | true | public void actionPerformed(ActionEvent ae) {
String[] text = getText().split("-");
if (text.length > 1) {
String time = getTime();
StringBuilder sb = new StringBuilder();
for (int i = Integer.parseInt(text[0]); i < Integer
.parseInt(text[1]) + 1; i++) {
sb.append(i);
sb.append(';');
sb.a... | public void actionPerformed(ActionEvent ae) {
String[] text = getText().split("-");
if (text.length > 1) {
String time = getTime();
StringBuilder sb = new StringBuilder();
for (int i = Integer.parseInt(text[0]); i < Integer
.parseInt(text[1]) + 1; i++) {
sb.append(i);
sb.append(';');
sb.a... |
diff --git a/gdms/src/test/java/org/gdms/sql/function/IOSpatialFunctionTest.java b/gdms/src/test/java/org/gdms/sql/function/IOSpatialFunctionTest.java
index a8725d526..f2b217176 100644
--- a/gdms/src/test/java/org/gdms/sql/function/IOSpatialFunctionTest.java
+++ b/gdms/src/test/java/org/gdms/sql/function/IOSpatialFunct... | false | true | public void testGeomFromTextWithCRS() throws Exception {
String wkt = new WKTWriter().write(JTSMultiPolygon2D);
ST_GeomFromText st = new ST_GeomFromText();
Value ret = st.evaluate(dsf, new Value[] { ValueFactory.createValue(wkt),
V... | public void testGeomFromTextWithCRS() throws Exception {
String wkt = new WKTWriter().write(JTSMultiPolygon2D);
ST_GeomFromText st = new ST_GeomFromText();
Value ret = st.evaluate(dsf, new Value[] { ValueFactory.createValue(wkt),
V... |
diff --git a/x10.runtime/src-java/x10/rtt/Types.java b/x10.runtime/src-java/x10/rtt/Types.java
index d527aa27c..74d4f73d2 100644
--- a/x10.runtime/src-java/x10/rtt/Types.java
+++ b/x10.runtime/src-java/x10/rtt/Types.java
@@ -1,696 +1,696 @@
/*
* This file is part of the X10 project (http://x10-lang.org).
*
* T... | true | true | public static Object zeroValue(Type<?> rtt) {
Type<?>[] typeParams = null;
if (rtt instanceof ParameterizedType) {
ParameterizedType<?> pt = (ParameterizedType<?>) rtt;
rtt = pt.getRuntimeType();
typeParams = pt.getParams();
}
if (isStructType(rtt... | public static Object zeroValue(Type<?> rtt) {
Type<?>[] typeParams = null;
if (rtt instanceof ParameterizedType) {
ParameterizedType<?> pt = (ParameterizedType<?>) rtt;
rtt = pt.getRuntimeType();
typeParams = pt.getParams();
}
if (isStructType(rtt... |
diff --git a/src/org/mozilla/javascript/ast/ArrayComprehensionLoop.java b/src/org/mozilla/javascript/ast/ArrayComprehensionLoop.java
index f12cc235..11b929c4 100644
--- a/src/org/mozilla/javascript/ast/ArrayComprehensionLoop.java
+++ b/src/org/mozilla/javascript/ast/ArrayComprehensionLoop.java
@@ -1,103 +1,102 @@
/* -... | true | true | public String toSource(int depth) {
return makeIndent(depth)
+ " for "
+ " for "
+ (isForEach()?"each ":"")
+ "("
+ iterator.toSource(0)
+ " in "
+ iteratedObject.toSource(0)
+ ")... | public String toSource(int depth) {
return makeIndent(depth)
+ " for "
+ (isForEach()?"each ":"")
+ "("
+ iterator.toSource(0)
+ " in "
+ iteratedObject.toSource(0)
+ ")";
}
|
diff --git a/src/main/java/com/xtremelabs/robolectric/shadows/ShadowResources.java b/src/main/java/com/xtremelabs/robolectric/shadows/ShadowResources.java
index d62b2a04..54c524d2 100644
--- a/src/main/java/com/xtremelabs/robolectric/shadows/ShadowResources.java
+++ b/src/main/java/com/xtremelabs/robolectric/shadows/Sh... | true | true | public Drawable getDrawable(int drawableResourceId) throws Resources.NotFoundException {
ShadowContextWrapper shadowApp = Robolectric.shadowOf( Robolectric.application );
Class rClass = shadowApp.getResourceLoader().getLocalRClass();
// Check to make sure there is actually an R Class, if ... | public Drawable getDrawable(int drawableResourceId) throws Resources.NotFoundException {
ShadowContextWrapper shadowApp = Robolectric.shadowOf( Robolectric.application );
Class rClass = shadowApp.getResourceLoader().getLocalRClass();
// Check to make sure there is actually an R Class, if ... |
diff --git a/core/src/processing/core/Table.java b/core/src/processing/core/Table.java
index e04a679b9..2c2702e82 100644
--- a/core/src/processing/core/Table.java
+++ b/core/src/processing/core/Table.java
@@ -1,2620 +1,2631 @@
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
Part of the Proc... | false | true | protected void writeEntryHTML(PrintWriter writer, String entry) {
//char[] chars = entry.toCharArray();
for (char c : entry.toCharArray()) { //chars) {
if (c < 32 || c > 127) {
writer.print("&#");
writer.print((int) c);
writer.print(';');
} else {
writer.print(c);
... | protected void writeEntryHTML(PrintWriter writer, String entry) {
//char[] chars = entry.toCharArray();
for (char c : entry.toCharArray()) { //chars) {
if (c < 32 || c > 127) {
writer.print("&#");
writer.print((int) c);
writer.print(';');
} else {
writer.print(c);
... |
diff --git a/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/management/ControlEntity.java b/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/management/ControlEntity.java
index 34ed91af..67caaf5a 100644
--- a/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/management/ControlEnt... | false | true | public void handleAssignHRMID(AssignHRMID pAssignHRMIDPacket)
{
// extract the HRMID from the packet
HRMID tHRMID = pAssignHRMIDPacket.getHRMID();
if (HRMConfig.DebugOutput.GUI_SHOW_SIGNALING_ADDRESSING)
Logging.log(this, "Handling AssignHRMID with assigned HRMID " + tHRMID.toString());
/**
* Store... | public void handleAssignHRMID(AssignHRMID pAssignHRMIDPacket)
{
// extract the HRMID from the packet
HRMID tHRMID = pAssignHRMIDPacket.getHRMID();
if (HRMConfig.DebugOutput.GUI_SHOW_SIGNALING_ADDRESSING)
Logging.log(this, "Handling AssignHRMID with assigned HRMID " + tHRMID.toString());
/**
* Store... |
diff --git a/src/no/runsafe/warpdrive/summoningstone/EventHandler.java b/src/no/runsafe/warpdrive/summoningstone/EventHandler.java
index 16bc9ad..3502696 100644
--- a/src/no/runsafe/warpdrive/summoningstone/EventHandler.java
+++ b/src/no/runsafe/warpdrive/summoningstone/EventHandler.java
@@ -1,132 +1,132 @@
package no... | true | true | public boolean OnPlayerRightClick(IPlayer runsafePlayer, RunsafeMeta itemStack, IBlock runsafeBlock)
{
if (itemStack == null)
return true;
WarpDrive.debug.debugFine("Detected right click event from player: " + runsafePlayer.getName());
if (itemStack.is(Item.Tool.FlintAndSteel) && runsafeBlock.is(Item.Build... | public boolean OnPlayerRightClick(IPlayer runsafePlayer, RunsafeMeta itemStack, IBlock runsafeBlock)
{
if (itemStack == null)
return true;
WarpDrive.debug.debugFine("Detected right click event from player: " + runsafePlayer.getName());
if ((itemStack.is(Item.Tool.FlintAndSteel) || itemStack.is(Item.Miscell... |
diff --git a/mini2Dx-tiled/src/main/java/org/mini2Dx/tiled/TiledMap.java b/mini2Dx-tiled/src/main/java/org/mini2Dx/tiled/TiledMap.java
index d856f12b4..6acdbb15e 100644
--- a/mini2Dx-tiled/src/main/java/org/mini2Dx/tiled/TiledMap.java
+++ b/mini2Dx-tiled/src/main/java/org/mini2Dx/tiled/TiledMap.java
@@ -1,461 +1,461 @@... | true | true | public TiledMap(FileHandle fileHandle, boolean loadTilesets) throws IOException {
this();
this.loadTilesets = loadTilesets;
this.fileHandle = fileHandle;
TiledParser parser = new TiledParser();
parser.addListener(this);
parser.parse(fileHandle);
if (loadTilesets) {
layerCache = new SpriteCache(getWi... | public TiledMap(FileHandle fileHandle, boolean loadTilesets) throws IOException {
this();
this.loadTilesets = loadTilesets;
this.fileHandle = fileHandle;
TiledParser parser = new TiledParser();
parser.addListener(this);
parser.parse(fileHandle);
if (loadTilesets) {
layerCache = new SpriteCache(getWi... |
diff --git a/test/controllers/ApplicationTest.java b/test/controllers/ApplicationTest.java
index bc4d318d..59e25a46 100644
--- a/test/controllers/ApplicationTest.java
+++ b/test/controllers/ApplicationTest.java
@@ -1,28 +1,28 @@
package controllers;
import org.junit.Test;
import play.mvc.Result;
import static o... | true | true | public void callIndex() {
running(fakeApplication(), new Runnable() {
@Override
public void run() {
Result result = callAction(controllers.routes.ref.Application.index());
assertThat(status(result)).isEqualTo(OK);
assertThat(contentType(result)).isEqualTo("text/html... | public void callIndex() {
running(fakeApplication(), new Runnable() {
@Override
public void run() {
Result result = callAction(controllers.routes.ref.Application.index());
assertThat(status(result)).isEqualTo(OK);
assertThat(contentType(result)).isEqualTo("text/html... |
diff --git a/src/org/mess110/jrattrack/Main.java b/src/org/mess110/jrattrack/Main.java
index 1b5485b..89c7665 100644
--- a/src/org/mess110/jrattrack/Main.java
+++ b/src/org/mess110/jrattrack/Main.java
@@ -1,427 +1,427 @@
package org.mess110.jrattrack;
import java.awt.EventQueue;
import java.awt.Graphics2D;
import... | true | true | private void initialize() {
frame = new JFrame();
frame.setBounds(100, 100, 600, 530);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);
fileChooser = new JFileChooser(".");
fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
saveResults = ne... | private void initialize() {
frame = new JFrame();
frame.setBounds(100, 100, 600, 530);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);
fileChooser = new JFileChooser(".");
fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
saveResults = ne... |
diff --git a/src/blur-thrift/src/main/java/com/nearinfinity/blur/thrift/BlurClientManager.java b/src/blur-thrift/src/main/java/com/nearinfinity/blur/thrift/BlurClientManager.java
index 6e3cb5d4..002e7003 100644
--- a/src/blur-thrift/src/main/java/com/nearinfinity/blur/thrift/BlurClientManager.java
+++ b/src/blur-thrift... | false | true | public static <CLIENT, T> T execute(List<Connection> connections, AbstractCommand<CLIENT, T> command, int maxRetries, long backOffTime, long maxBackOffTime) throws BlurException, TException, IOException {
// LocalResources localResources = resources.get();
LocalResources localResources = null;
try {
... | public static <CLIENT, T> T execute(List<Connection> connections, AbstractCommand<CLIENT, T> command, int maxRetries, long backOffTime, long maxBackOffTime) throws BlurException, TException, IOException {
// LocalResources localResources = resources.get();
LocalResources localResources = null;
try {
... |
diff --git a/src/test/java/ByteSizeDemo.java b/src/test/java/ByteSizeDemo.java
index ae60d36..458b058 100644
--- a/src/test/java/ByteSizeDemo.java
+++ b/src/test/java/ByteSizeDemo.java
@@ -1,40 +1,40 @@
import org.codeswarm.bytesize.*;
/**
* Example code for documentation.
*/
public class ByteSizeDemo {
p... | true | true | public static void main(String[] args) throws java.text.ParseException {
// Create a new byte size format using the default locale and settings.
ByteSizeFormat format = new ByteSizeFormatBuilder().build();
// Parse a byte size string.
ByteSize a = format.parse(".85 gigabytes");
// Convert 0.85 ... | public static void main(String[] args) throws java.text.ParseException {
// Create a new byte size format using the default locale and settings.
ByteSizeFormat format = new ByteSizeFormatBuilder().build();
// Parse a byte size string.
ByteSize a = format.parse(".85 gigabytes");
// Convert 0.85 ... |
diff --git a/core/rio/api/src/main/java/org/openrdf/rio/ParserConfig.java b/core/rio/api/src/main/java/org/openrdf/rio/ParserConfig.java
index 2fbaa9ca4..7e2b27f51 100644
--- a/core/rio/api/src/main/java/org/openrdf/rio/ParserConfig.java
+++ b/core/rio/api/src/main/java/org/openrdf/rio/ParserConfig.java
@@ -1,141 +1,14... | true | true | public final <T extends Object> void set(ParserSetting<T> setting, T value) {
if (value == null) {
settings.remove(setting);
}
else {
Object putIfAbsent = settings.putIfAbsent((ParserSetting<Object>)setting, value);
if (putIfAbsent != null) {
settings.put((ParserSetting<Object>)setting, value);
... | public final <T extends Object> void set(ParserSetting<T> setting, T value) {
if (value == null) {
settings.remove(setting);
}
else {
Object putIfAbsent = settings.putIfAbsent((ParserSetting<Object>)setting, value);
if (putIfAbsent != null) {
settings.put((ParserSetting<Object>)setting, value);
... |
diff --git a/examples/Java/pathopub.java b/examples/Java/pathopub.java
index 0c545e0a..6727bd15 100644
--- a/examples/Java/pathopub.java
+++ b/examples/Java/pathopub.java
@@ -1,38 +1,38 @@
import org.zeromq.ZContext;
import org.zeromq.ZMQ;
import org.zeromq.ZMQ.Socket;
import java.util.Random;
// Pathological... | true | true | public static void main(String[] args) throws Exception
{
ZContext context = new ZContext();
Socket publisher = context.createSocket(ZMQ.PUB);
if (args.length == 1)
publisher.connect(args[0]);
else
publisher.bind("tcp://*:5556");
// Ensure subscr... | public static void main(String[] args) throws Exception
{
ZContext context = new ZContext();
Socket publisher = context.createSocket(ZMQ.PUB);
if (args.length == 1)
publisher.bind(args[0]);
else
publisher.bind("tcp://*:5556");
// Ensure subscribe... |
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java b/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java
index 57f346f9..e4a151f3 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandtempban.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandte... | true | true | public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception
{
if (args.length < 2)
{
throw new NotEnoughArgumentsException();
}
User p = null;
try
{
p = getPlayer(server, args, 0);
}
catch (NoSuchFieldException ex)
{
p = ess.getOfflineUser(args... | public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception
{
if (args.length < 2)
{
throw new NotEnoughArgumentsException();
}
User p = null;
try
{
p = getPlayer(server, args, 0);
}
catch (NoSuchFieldException ex)
{
p = ess.getOfflineUser(args... |
diff --git a/com/pff/PSTAppointmentRecurrence.java b/com/pff/PSTAppointmentRecurrence.java
index e95fa60..1463b58 100755
--- a/com/pff/PSTAppointmentRecurrence.java
+++ b/com/pff/PSTAppointmentRecurrence.java
@@ -1,275 +1,277 @@
package com.pff;
/*
import java.text.SimpleDateFormat;
/**/
import java.util.Calen... | true | true | public PSTAppointmentRecurrence(byte[] recurrencePattern, PSTAppointment appt, PSTTimeZone tz) {
RecurrenceTimeZone = tz;
SimpleTimeZone stz = RecurrenceTimeZone.getSimpleTimeZone();
// Read the structure
RecurFrequency = (short)PSTObject.convertLittleEndianBytesToLong(recurrencePattern, 4, 6);
PatternType ... | public PSTAppointmentRecurrence(byte[] recurrencePattern, PSTAppointment appt, PSTTimeZone tz) {
RecurrenceTimeZone = tz;
SimpleTimeZone stz = RecurrenceTimeZone.getSimpleTimeZone();
// Read the structure
RecurFrequency = (short)PSTObject.convertLittleEndianBytesToLong(recurrencePattern, 4, 6);
PatternType ... |
diff --git a/GAE/src/org/waterforpeople/mapping/app/web/RawDataRestServlet.java b/GAE/src/org/waterforpeople/mapping/app/web/RawDataRestServlet.java
index 9a1ff2911..eef9c052c 100644
--- a/GAE/src/org/waterforpeople/mapping/app/web/RawDataRestServlet.java
+++ b/GAE/src/org/waterforpeople/mapping/app/web/RawDataRestServ... | false | true | protected RestResponse handleRequest(RestRequest req) throws Exception {
RawDataImportRequest importReq = (RawDataImportRequest) req;
if (RawDataImportRequest.SAVE_SURVEY_INSTANCE_ACTION.equals(importReq
.getAction())) {
SurveyInstanceServiceImpl sisi = new SurveyInstanceServiceImpl();
List<QuestionAnswe... | protected RestResponse handleRequest(RestRequest req) throws Exception {
RawDataImportRequest importReq = (RawDataImportRequest) req;
if (RawDataImportRequest.SAVE_SURVEY_INSTANCE_ACTION.equals(importReq
.getAction())) {
SurveyInstanceServiceImpl sisi = new SurveyInstanceServiceImpl();
List<QuestionAnswe... |
diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java
index 18fab54ef..3a8080236 100644
--- a/htroot/yacysearch.java
+++ b/htroot/yacysearch.java
@@ -1,465 +1,466 @@
// yacysearch.java
// -----------------------
// part of the AnomicHTTPD caching proxy
// (C) by Michael Peter Christen; mc@yacy.net
// first ... | true | true | public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) {
final plasmaSwitchboard sb = (plasmaSwitchboard) env;
sb.localSearchLastAccess = System.currentTimeMillis();
final boolean searchAllowed = sb.getConfigBool("pub... | public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) {
final plasmaSwitchboard sb = (plasmaSwitchboard) env;
sb.localSearchLastAccess = System.currentTimeMillis();
final boolean searchAllowed = sb.getConfigBool("pub... |
diff --git a/web/src/main/java/org/openmrs/web/controller/provider/ProviderFormController.java b/web/src/main/java/org/openmrs/web/controller/provider/ProviderFormController.java
index b34747de..763f921b 100644
--- a/web/src/main/java/org/openmrs/web/controller/provider/ProviderFormController.java
+++ b/web/src/main/ja... | true | true | public String onSubmit(WebRequest request, @RequestParam(required = false) String saveProviderButton,
@RequestParam(required = false) String retireProviderButton,
@RequestParam(required = false) String unretireProviderButton,
@RequestParam(required = false) boolean linkToPerson, @ModelAttrib... | public String onSubmit(WebRequest request, @RequestParam(required = false) String saveProviderButton,
@RequestParam(required = false) String retireProviderButton,
@RequestParam(required = false) String unretireProviderButton,
@RequestParam(required = false) boolean linkToPerson, @ModelAttrib... |
diff --git a/desktop/src/net/mms_projects/copy_it/app/CopyItDesktop.java b/desktop/src/net/mms_projects/copy_it/app/CopyItDesktop.java
index ba9f06e..06b32d3 100644
--- a/desktop/src/net/mms_projects/copy_it/app/CopyItDesktop.java
+++ b/desktop/src/net/mms_projects/copy_it/app/CopyItDesktop.java
@@ -1,314 +1,314 @@
pa... | true | true | public void run(String[] args) {
log.info("The application is launched");
this.settings = new Settings();
try {
this.settings.setFileStreamBuilder(new StreamBuilder());
} catch (IOException e) {
e.printStackTrace();
System.exit(1);
}
... | public void run(String[] args) {
log.info("The application is launched");
this.settings = new Settings();
try {
this.settings.setFileStreamBuilder(new StreamBuilder());
} catch (IOException e) {
e.printStackTrace();
System.exit(1);
}
... |
diff --git a/src/quill/ui/SpellChecker.java b/src/quill/ui/SpellChecker.java
index 6ae03fc..c9b73a8 100644
--- a/src/quill/ui/SpellChecker.java
+++ b/src/quill/ui/SpellChecker.java
@@ -1,312 +1,312 @@
/*
* Quill and Parchment, a WYSIWYN document editor and rendering engine.
*
* Copyright © 2010 Operational Dyna... | false | true | private void createTemporaryList() {
final int pid;
FileReader reader;
FileWriter writer;
BufferedReader in;
BufferedWriter out;
String line;
boolean first;
pid = Environment.getProcessID();
counter++;
tmp = new File("/tmp/quill-" + p... | private void createTemporaryList() {
final int pid;
FileReader reader;
FileWriter writer;
BufferedReader in;
BufferedWriter out;
String line;
boolean first; // one already written?
pid = Environment.getProcessID();
counter++;
tmp = ne... |
diff --git a/server/src/edu/rpi/cct/webdav/servlet/common/CopyMethod.java b/server/src/edu/rpi/cct/webdav/servlet/common/CopyMethod.java
index 62cbd7d..61c0731 100644
--- a/server/src/edu/rpi/cct/webdav/servlet/common/CopyMethod.java
+++ b/server/src/edu/rpi/cct/webdav/servlet/common/CopyMethod.java
@@ -1,145 +1,145 @@... | true | true | protected void process(HttpServletRequest req,
HttpServletResponse resp,
boolean copy) throws WebdavException {
if (debug) {
if (copy) {
trace("CopyMethod: doMethod");
} else {
trace("MoveMethod: doMethod");
}
}
try {
... | protected void process(HttpServletRequest req,
HttpServletResponse resp,
boolean copy) throws WebdavException {
if (debug) {
if (copy) {
trace("CopyMethod: doMethod");
} else {
trace("MoveMethod: doMethod");
}
}
try {
... |
diff --git a/src/main/java/cz/muni/fi/jboss/migration/MigratorApp.java b/src/main/java/cz/muni/fi/jboss/migration/MigratorApp.java
index ac1f1da..756fb12 100644
--- a/src/main/java/cz/muni/fi/jboss/migration/MigratorApp.java
+++ b/src/main/java/cz/muni/fi/jboss/migration/MigratorApp.java
@@ -1,205 +1,205 @@
package cz... | false | true | private static Configuration parseArguments(String[] args) {
// Global config
GlobalConfiguration globalConf = new GlobalConfiguration();
// Module-specific options.
List<ModuleSpecificProperty> moduleOptions = new LinkedList<>();
// For each a... | private static Configuration parseArguments(String[] args) {
// Global config
GlobalConfiguration globalConfig = new GlobalConfiguration();
// Module-specific options.
List<ModuleSpecificProperty> moduleConfigs = new LinkedList<>();
// For each... |
diff --git a/src/mapred/org/apache/hadoop/mapred/DefaultTaskController.java b/src/mapred/org/apache/hadoop/mapred/DefaultTaskController.java
index 68ce7c21..232d2078 100644
--- a/src/mapred/org/apache/hadoop/mapred/DefaultTaskController.java
+++ b/src/mapred/org/apache/hadoop/mapred/DefaultTaskController.java
@@ -1,298... | false | true | public int launchTask(String user,
String jobId,
String attemptId,
List<String> setup,
List<String> jvmArguments,
File currentWorkDirectory,
... | public int launchTask(String user,
String jobId,
String attemptId,
List<String> setup,
List<String> jvmArguments,
File currentWorkDirectory,
... |
diff --git a/dspace/src/org/dspace/content/WorkspaceItem.java b/dspace/src/org/dspace/content/WorkspaceItem.java
index ce353af26..3a005898d 100644
--- a/dspace/src/org/dspace/content/WorkspaceItem.java
+++ b/dspace/src/org/dspace/content/WorkspaceItem.java
@@ -1,600 +1,600 @@
/*
* WorkspaceItem.java
*
* Version:... | false | true | public static WorkspaceItem create(Context c, Collection coll,
boolean template) throws AuthorizeException, SQLException,
IOException
{
// Check the user has permission to ADD to the collection
AuthorizeManager.authorizeAction(c, coll, Constants.ADD);
// Create a... | public static WorkspaceItem create(Context c, Collection coll,
boolean template) throws AuthorizeException, SQLException,
IOException
{
// Check the user has permission to ADD to the collection
AuthorizeManager.authorizeAction(c, coll, Constants.ADD);
// Create a... |
diff --git a/src/cytoscape/graph/util/GraphTopologyRepresentation.java b/src/cytoscape/graph/util/GraphTopologyRepresentation.java
index ae1235ef6..ef9d23ce2 100755
--- a/src/cytoscape/graph/util/GraphTopologyRepresentation.java
+++ b/src/cytoscape/graph/util/GraphTopologyRepresentation.java
@@ -1,174 +1,174 @@
packag... | false | true | public GraphTopologyRepresentation(int numNodes,
int[] directedEdgeSourceNodeIndices,
int[] directedEdgeTargetNodeIndices,
int[] undirectedEdgeNode0Indices,
int[] undirec... | public GraphTopologyRepresentation(int numNodes,
int[] directedEdgeSourceNodeIndices,
int[] directedEdgeTargetNodeIndices,
int[] undirectedEdgeNode0Indices,
int[] undirec... |
diff --git a/src/main/java/edu/wctc/java/demo/tictactoe/domain/Rail.java b/src/main/java/edu/wctc/java/demo/tictactoe/domain/Rail.java
index a372d96..95f97df 100644
--- a/src/main/java/edu/wctc/java/demo/tictactoe/domain/Rail.java
+++ b/src/main/java/edu/wctc/java/demo/tictactoe/domain/Rail.java
@@ -1,49 +1,49 @@
pack... | true | true | public final boolean isWinner() {
int xCount = 0;
int oCount = 0;
boolean result = false;
for(Tile tile : tiles) {
if(tile.getText().equals("X")) {
xCount++;
} else if(tile.getText().equals("0")) {
oCount++;
... | public final boolean isWinner() {
int xCount = 0;
int oCount = 0;
boolean result = false;
for(Tile tile : tiles) {
if(tile.getText().equals("X")) {
xCount++;
} else if(tile.getText().equals("0")) {
oCount++;
... |
diff --git a/src/com/rushdevo/twittaddict/ui/fragments/GameOverBffFragment.java b/src/com/rushdevo/twittaddict/ui/fragments/GameOverBffFragment.java
index 2426c20..f859e87 100644
--- a/src/com/rushdevo/twittaddict/ui/fragments/GameOverBffFragment.java
+++ b/src/com/rushdevo/twittaddict/ui/fragments/GameOverBffFragment.... | true | true | private void setupBff(View view) {
TextView bffScreenNameView = (TextView)view.findViewById(R.id.bff_screen_name);
ImageView bffAvatarView = (ImageView)view.findViewById(R.id.bff_avatar);
Bundle bundle = getActivity().getIntent().getExtras();
String bffScreenName = bundle.getString("bffScreenName");
String b... | private void setupBff(View view) {
TextView bffScreenNameView = (TextView)view.findViewById(R.id.bff_screen_name);
ImageView bffAvatarView = (ImageView)view.findViewById(R.id.bff_avatar);
Bundle bundle = getActivity().getIntent().getExtras();
String bffScreenName = bundle.getString("bffScreenName");
String b... |
diff --git a/main/src/java/chord/analyses/snapshot/MayAliasAnalysis.java b/main/src/java/chord/analyses/snapshot/MayAliasAnalysis.java
index 795543fa..606230ac 100644
--- a/main/src/java/chord/analyses/snapshot/MayAliasAnalysis.java
+++ b/main/src/java/chord/analyses/snapshot/MayAliasAnalysis.java
@@ -1,184 +1,184 @@
... | false | true | public void donePass() {
final ProgramDom<Object> domS = new ProgramDom<Object>();
domS.setName("S");
loc2abstractions.forEachValue(new TObjectProcedure<Set<Object>>() {
@Override
public boolean execute(Set<Object> arg0) {
domS.addAll(arg0);
return false;
}
});
domS.save();
final Program... | public void donePass() {
final ProgramDom<Object> domS = new ProgramDom<Object>();
domS.setName("S");
loc2abstractions.forEachValue(new TObjectProcedure<Set<Object>>() {
@Override
public boolean execute(Set<Object> arg0) {
domS.addAll(arg0);
return true;
}
});
domS.save();
final ProgramR... |
diff --git a/src/net/vincentpetry/nodereviver/view/TitleScreenView.java b/src/net/vincentpetry/nodereviver/view/TitleScreenView.java
index e755312..5f02b59 100644
--- a/src/net/vincentpetry/nodereviver/view/TitleScreenView.java
+++ b/src/net/vincentpetry/nodereviver/view/TitleScreenView.java
@@ -1,40 +1,40 @@
package ... | true | true | public TitleScreenView(ViewContext viewContext){
this.viewContext = viewContext;
TextPaint paint = new TextPaint();
paint.setARGB(255, 0, 192, 0);
paint.setTypeface(viewContext.getTypeface());
paint.setTextSize(viewContext.getFontHeightBig());
paint.setTextAlign(Align... | public TitleScreenView(ViewContext viewContext){
this.viewContext = viewContext;
TextPaint paint = new TextPaint();
paint.setARGB(255, 0, 192, 0);
paint.setTypeface(viewContext.getTypeface());
paint.setTextSize(viewContext.getFontHeightBig());
paint.setTextAlign(Align... |
diff --git a/plugins/org.eclipse.gmf.common/src/org/eclipse/gmf/internal/common/migrate/ModelLoadHelper.java b/plugins/org.eclipse.gmf.common/src/org/eclipse/gmf/internal/common/migrate/ModelLoadHelper.java
index 19f1b1eca..fcc1106b9 100644
--- a/plugins/org.eclipse.gmf.common/src/org/eclipse/gmf/internal/common/migrat... | true | true | private static Diagnostic internalLoad(ResourceSet resourceSet, URI uri) {
Diagnostic diagnostic = Diagnostic.OK_INSTANCE;
Resource resource = resourceSet.createResource(uri);
assert resource != null;
Exception rootException = null;
try {
resource.load(resourceSet.getLoadOptions());
} catch(IOException ... | private static Diagnostic internalLoad(ResourceSet resourceSet, URI uri) {
Diagnostic diagnostic = Diagnostic.OK_INSTANCE;
Resource resource = resourceSet.createResource(uri);
assert resource != null;
Exception rootException = null;
try {
resource.load(resourceSet.getLoadOptions());
} catch(IOException ... |
diff --git a/src/main/java/de/neuland/jade4j/lexer/AttributeLexer.java b/src/main/java/de/neuland/jade4j/lexer/AttributeLexer.java
index 550d412..794cd91 100644
--- a/src/main/java/de/neuland/jade4j/lexer/AttributeLexer.java
+++ b/src/main/java/de/neuland/jade4j/lexer/AttributeLexer.java
@@ -1,201 +1,201 @@
package de... | true | true | private void parse(char c) {
char real = c;
switch (c) {
case ',':
case '\n':
switch (state()) {
case EXPRESSION:
case ARRAY:
case STRING:
case OBJECT:
value += c;
break;
default:
states.push(State.KEY);
value = value.trim();
key = key.trim();
if ("".equals(key)) {
... | private void parse(char c) {
char real = c;
switch (c) {
case ',':
case '\n':
switch (state()) {
case EXPRESSION:
case ARRAY:
case STRING:
case OBJECT:
value += c;
break;
default:
states.push(State.KEY);
value = value.trim();
key = key.trim();
if ("".equals(key)) {
... |
diff --git a/library/src/com/emilsjolander/components/stickylistheaders/StickyListHeadersListView.java b/library/src/com/emilsjolander/components/stickylistheaders/StickyListHeadersListView.java
index 188053e..d16ed58 100644
--- a/library/src/com/emilsjolander/components/stickylistheaders/StickyListHeadersListView.java... | true | true | private void scrollChanged(int firstVisibleItem) {
if (adapter == null) {
return;
}
int adapterCount = adapter.getCount();
if (adapterCount == 0 || !areHeadersSticky) {
return;
}
final int listViewHeaderCount = getHeaderViewsCount();
firstVisibleItem = getFixedFirstVisibleItem(firstVisibleItem)
... | private void scrollChanged(int firstVisibleItem) {
if (adapter == null) {
return;
}
int adapterCount = adapter.getCount();
if (adapterCount == 0 || !areHeadersSticky) {
frame.removeHeader();
return;
}
final int listViewHeaderCount = getHeaderViewsCount();
firstVisibleItem = getFixedFirstVisibl... |
diff --git a/src/minecraft/net/minecraft/src/GuiIngame.java b/src/minecraft/net/minecraft/src/GuiIngame.java
index b4ca70ff..4027d11a 100644
--- a/src/minecraft/net/minecraft/src/GuiIngame.java
+++ b/src/minecraft/net/minecraft/src/GuiIngame.java
@@ -1,616 +1,617 @@
package net.minecraft.src;
import java.util.Array... | true | true | public void renderGameOverlay(float f, boolean flag, int i, int j)
{
SpoutClient.getInstance().onTick();
InGameHUD mainScreen = SpoutClient.getInstance().getActivePlayer().getMainScreen();
ScaledResolution scaledRes = new ScaledResolution(this.mc.gameSettings, this.mc.displayWidth, this.mc.displayHeight);
in... | public void renderGameOverlay(float f, boolean flag, int i, int j)
{
SpoutClient.getInstance().onTick();
InGameHUD mainScreen = SpoutClient.getInstance().getActivePlayer().getMainScreen();
ScaledResolution scaledRes = new ScaledResolution(this.mc.gameSettings, this.mc.displayWidth, this.mc.displayHeight);
in... |
diff --git a/bconfig-utils/src/main/java/org/collectionspace/bconfigutils/bootstrap/PropertyConfigLoadMethod.java b/bconfig-utils/src/main/java/org/collectionspace/bconfigutils/bootstrap/PropertyConfigLoadMethod.java
index 92de1b90..bb836106 100644
--- a/bconfig-utils/src/main/java/org/collectionspace/bconfigutils/boot... | false | true | private Properties loadProperties(String name) throws BootstrapConfigLoadFailedException {
try {
Properties out=new Properties();
String path=substitute_system_props(name);
InputStream is=Thread.currentThread().getContextClassLoader().getResourceAsStream(path);
if(is!=null) {
log.info("Using bootstra... | private Properties loadProperties(String name) throws BootstrapConfigLoadFailedException {
String path=substitute_system_props(name);
try {
Properties out=new Properties();
InputStream is=Thread.currentThread().getContextClassLoader().getResourceAsStream(path);
if(is!=null) {
log.info("Using bootstrap... |
diff --git a/core/org.eclipse.ptp.ui/src/org/eclipse/ptp/ui/preferences/SimulationPreferencesPage.java b/core/org.eclipse.ptp.ui/src/org/eclipse/ptp/ui/preferences/SimulationPreferencesPage.java
index 7b35abbf6..e0e47a481 100644
--- a/core/org.eclipse.ptp.ui/src/org/eclipse/ptp/ui/preferences/SimulationPreferencesPage.... | false | true | private void createMyContents(Composite parent)
{
Group aGroup = new Group(parent, SWT.SHADOW_ETCHED_IN);
aGroup.setLayout(createGridLayout(1, true, 10, 10));
aGroup.setLayoutData(spanGridData(GridData.FILL_HORIZONTAL, 2));
aGroup.setText(CoreMessages.getResourceString("SimulationPreferencesPage.group_main"))... | private void createMyContents(Composite parent)
{
Group aGroup = new Group(parent, SWT.SHADOW_ETCHED_IN);
aGroup.setLayout(createGridLayout(1, true, 10, 10));
aGroup.setLayoutData(spanGridData(GridData.FILL_HORIZONTAL, 2));
aGroup.setText(CoreMessages.getResourceString("SimulationPreferencesPage.group_main"))... |
diff --git a/appshare/src/main/java/net/shuttleplay/shuttle/appshare/ModuleListServlet.java b/appshare/src/main/java/net/shuttleplay/shuttle/appshare/ModuleListServlet.java
index 68d7f9a..79045cc 100644
--- a/appshare/src/main/java/net/shuttleplay/shuttle/appshare/ModuleListServlet.java
+++ b/appshare/src/main/java/net... | false | true | protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
if (!mInited)
{
mNonTrend = "1".equals(getServletConfig().getInitParameter("Non-Trend"));
mPath = mNonTrend ? "/loader/modlist2/" : "/loader/modlist/";
mInited = true;
}
String pathInfo = r... | protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
if (!mInited)
{
mNonTrend = "1".equals(getServletConfig().getInitParameter("Non-Trend"));
mPath = mNonTrend ? "/appshare/modlist2/" : "/appshare/modlist/";
mInited = true;
}
String pathInfo... |
diff --git a/org.eclipse.riena.demo.client/src/org/eclipse/riena/demo/client/controllers/AbstractEmailController.java b/org.eclipse.riena.demo.client/src/org/eclipse/riena/demo/client/controllers/AbstractEmailController.java
index d2b2173b3..89d4c670a 100644
--- a/org.eclipse.riena.demo.client/src/org/eclipse/riena/dem... | true | true | public void configureRidgets() {
final ITableRidget emails = (ITableRidget) getRidget("emailsTable"); //$NON-NLS-1$
final ILabelRidget emailSubject = (ILabelRidget) getRidget("emailSubject"); //$NON-NLS-1$
final ILabelRidget emailFrom = (ILabelRidget) getRidget("emailFrom"); //$NON-NLS-1$
final ILabelRidget em... | public void configureRidgets() {
final ITableRidget emails = (ITableRidget) getRidget("emailsTable"); //$NON-NLS-1$
final ILabelRidget emailSubject = (ILabelRidget) getRidget("emailSubject"); //$NON-NLS-1$
final ILabelRidget emailFrom = (ILabelRidget) getRidget("emailFrom"); //$NON-NLS-1$
final ILabelRidget em... |
diff --git a/src/main/java/gov/usgs/ContactService.java b/src/main/java/gov/usgs/ContactService.java
index 5987e2c..a49dde7 100644
--- a/src/main/java/gov/usgs/ContactService.java
+++ b/src/main/java/gov/usgs/ContactService.java
@@ -1,198 +1,201 @@
package gov.usgs;
import java.io.IOException;
import java.io.Print... | true | true | public static void emailPubs(FeedbackRequest cue) {
boolean hasEmail = cue.getEmail() != null && !"".equals(cue.getEmail());
String userEmail = (hasEmail)? cue.getEmail() : "" ;
String auto = "This is an auto-generated email from the USGS NGWMN. " +
"Below is a copy of the message you (" + userEmail + ") sub... | public static void emailPubs(FeedbackRequest cue) {
boolean hasEmail = cue.getEmail() != null && !"".equals(cue.getEmail());
String userEmail = (hasEmail)? cue.getEmail() : "" ;
String auto = "This is an auto-generated email from the USGS NGWMN. " +
"Below is a copy of the message you (" + userEmail + ") sub... |
diff --git a/src/MainClass.java b/src/MainClass.java
index ea4e987..b7c2dc4 100644
--- a/src/MainClass.java
+++ b/src/MainClass.java
@@ -1,129 +1,134 @@
import java.util.ArrayDeque;
import java.util.Collections;
import java.util.Deque;
import java.util.LinkedList;
import java.util.List;
import java.util.concurren... | false | true | public static void main(String[] args) throws InterruptedException {
final int plotsProfitability [] = new int[args.length-1];
for(int i = 1; i < args.length; i++){
plotsProfitability[i-1]= Integer.valueOf(args[i]);
}
for(Integer i : plotsProfitability)
System.out.println(i);
int nrOfThreads =... | public static void main(String[] args) throws InterruptedException {
final int plotsProfitability [] = new int[args.length-1];
for(int i = 1; i < args.length; i++){
plotsProfitability[i-1]= Integer.valueOf(args[i]);
}
for(Integer i : plotsProfitability)
System.out.println(i);
int nrOfThreads =... |
diff --git a/src/main/java/net/sf/testium/executor/TestStepMetaExecutor.java b/src/main/java/net/sf/testium/executor/TestStepMetaExecutor.java
index e0bfbc5..64f4e73 100644
--- a/src/main/java/net/sf/testium/executor/TestStepMetaExecutor.java
+++ b/src/main/java/net/sf/testium/executor/TestStepMetaExecutor.java
@@ -1,2... | true | true | private TestStepIterationResult executeIteration(TestStepIteration aStep,
File aScriptDir, File aLogDir, RunTimeData aRTData) {
String listName = aStep.getListName();
String listElement = aStep.getItemName();
@SuppressWarnings("unchecked")
ArrayList<Object> list = aRTData.getValueAs(ArrayList.class, listNam... | private TestStepIterationResult executeIteration(TestStepIteration aStep,
File aScriptDir, File aLogDir, RunTimeData aRTData) {
String listName = aStep.getListName();
String listElement = aStep.getItemName();
@SuppressWarnings("unchecked")
ArrayList<Object> list = aRTData.getValueAs(ArrayList.class, listNam... |
diff --git a/src/openccsensors/common/sensors/targets/industrialcraft/ReactorTarget.java b/src/openccsensors/common/sensors/targets/industrialcraft/ReactorTarget.java
index d791911..8653c97 100644
--- a/src/openccsensors/common/sensors/targets/industrialcraft/ReactorTarget.java
+++ b/src/openccsensors/common/sensors/ta... | true | true | public HashMap getExtendedDetails(World world) {
HashMap retMap = getBasicDetails(world);
IReactor reactor = (IReactor) world.getBlockTileEntity(xCoord, yCoord,
zCoord);
int maxHeat = reactor.getMaxHeat();
int heat = reactor.getHeat();
retMap.put("Heat", heat);
retMap.put("MaxHeat", maxHeat);
... | public HashMap getExtendedDetails(World world) {
HashMap retMap = getBasicDetails(world);
IReactor reactor = (IReactor) world.getBlockTileEntity(xCoord, yCoord,
zCoord);
int maxHeat = reactor.getMaxHeat();
int heat = reactor.getHeat();
retMap.put("Heat", heat);
retMap.put("MaxHeat", maxHeat);
... |
diff --git a/se/sics/mspsim/core/Multiplier.java b/se/sics/mspsim/core/Multiplier.java
index 7aed126..387105c 100644
--- a/se/sics/mspsim/core/Multiplier.java
+++ b/se/sics/mspsim/core/Multiplier.java
@@ -1,191 +1,191 @@
/**
* Copyright (c) 2007, Swedish Institute of Computer Science.
* All rights reserved.
*
... | false | true | public void write(int address, int data, boolean word, long cycles) {
if (DEBUG) {
System.out.println("Multiplier: write to: " + Utils.hex16(address) +
" data = " + data + " word = " + word);
}
if (MSP430Constants.DEBUGGING_LEVEL > 0) {
System.out.println("Write to HW Multiplier: " +
I... | public void write(int address, int data, boolean word, long cycles) {
if (DEBUG) {
System.out.println("Multiplier: write to: " + Utils.hex16(address) +
" data = " + data + " word = " + word);
}
if (MSP430Constants.DEBUGGING_LEVEL > 0) {
System.out.println("Write to HW Multiplier: " +
I... |
diff --git a/src/java/org/apache/log4j/varia/FallbackErrorHandler.java b/src/java/org/apache/log4j/varia/FallbackErrorHandler.java
index e6a79c6f..24853112 100644
--- a/src/java/org/apache/log4j/varia/FallbackErrorHandler.java
+++ b/src/java/org/apache/log4j/varia/FallbackErrorHandler.java
@@ -1,132 +1,133 @@
/*
* C... | true | true | void error(String message, Exception e, int errorCode, LoggingEvent event) {
LogLog.debug("FB: The following error reported: " + message, e);
LogLog.debug("FB: INITIATING FALLBACK PROCEDURE.");
for(int i = 0; i < loggers.size(); i++) {
Logger l = (Logger) loggers.elementAt(i);
LogLog.debug("FB... | void error(String message, Exception e, int errorCode, LoggingEvent event) {
LogLog.debug("FB: The following error reported: " + message, e);
LogLog.debug("FB: INITIATING FALLBACK PROCEDURE.");
if (loggers != null) {
for(int i = 0; i < loggers.size(); i++) {
Logger l = (Logger) loggers.elemen... |
diff --git a/src/main/java/com/bergerkiller/bukkit/nolagg/NoLaggComponents.java b/src/main/java/com/bergerkiller/bukkit/nolagg/NoLaggComponents.java
index aa40df5..a599424 100644
--- a/src/main/java/com/bergerkiller/bukkit/nolagg/NoLaggComponents.java
+++ b/src/main/java/com/bergerkiller/bukkit/nolagg/NoLaggComponents.... | true | true | protected void load(FileConfiguration config) {
for (NoLaggComponent comp : NoLagg.plugin.getComponents()) {
if (comp.getName().equals(this.name)) {
return; // already loaded
}
}
ConfigurationNode node = config.getNode(this.name.toLowerCase());
node.setHeader("\n" + description);
node.setHeader("en... | protected void load(FileConfiguration config) {
for (NoLaggComponent comp : NoLagg.plugin.getComponents()) {
if (comp.getName().equals(this.name)) {
return; // already loaded
}
}
ConfigurationNode node = config.getNode(this.name.toLowerCase());
node.setHeader("\n" + description);
node.setHeader("en... |
diff --git a/activemq-core/src/main/java/org/apache/activemq/plugin/DiscardingDLQBrokerPlugin.java b/activemq-core/src/main/java/org/apache/activemq/plugin/DiscardingDLQBrokerPlugin.java
index 05c97c466..e67a07725 100644
--- a/activemq-core/src/main/java/org/apache/activemq/plugin/DiscardingDLQBrokerPlugin.java
+++ b/a... | true | true | public Broker installPlugin(Broker broker) throws Exception {
log.info("Installing Discarding Dead Letter Queue broker plugin[dropAll="+isDropAll()+
"; dropTemporaryTopics="+isDropTemporaryTopics()+"; dropTemporaryQueues="+
isDropTemporaryQueues()+"; dropOnly="+getDropOnly(... | public Broker installPlugin(Broker broker) throws Exception {
log.info("Installing Discarding Dead Letter Queue broker plugin[dropAll="+isDropAll()+
"; dropTemporaryTopics="+isDropTemporaryTopics()+"; dropTemporaryQueues="+
isDropTemporaryQueues()+"; dropOnly="+getDropOnly(... |
diff --git a/src/net/hlw5a/VidPicLib/Ui/VPLStarter.java b/src/net/hlw5a/VidPicLib/Ui/VPLStarter.java
index 628d716..63c8498 100644
--- a/src/net/hlw5a/VidPicLib/Ui/VPLStarter.java
+++ b/src/net/hlw5a/VidPicLib/Ui/VPLStarter.java
@@ -1,12 +1,11 @@
package net.hlw5a.VidPicLib.Ui;
import javax.swing.SwingUtilities;
... | true | true | public static void main(String[] args) {
int i = 0;
System.setProperty("apple.laf.useScreenMenuBar", "true");
System.setProperty("com.apple.mrj.application.apple.menu.about.name", "VidPicLib");
SwingUtilities.invokeLater(new VPLMainProgram());
}
| public static void main(String[] args) {
System.setProperty("apple.laf.useScreenMenuBar", "true");
System.setProperty("com.apple.mrj.application.apple.menu.about.name", "VidPicLib");
SwingUtilities.invokeLater(new VPLMainProgram());
}
|
diff --git a/collect-flex/collect-flex-server/src/main/java/org/openforis/collect/web/controller/ValidationController.java b/collect-flex/collect-flex-server/src/main/java/org/openforis/collect/web/controller/ValidationController.java
index 48d015652..9d5962ecc 100644
--- a/collect-flex/collect-flex-server/src/main/jav... | false | true | public void validateAllRecords(HttpServletRequest request, HttpServletResponse response, @RequestParam String s, @RequestParam String r) {
try {
ServletOutputStream outputStream = response.getOutputStream();
if ( s == null || r == null) {
outputStream.println("Wrong parameters: please specify 's' (survey) ... | public void validateAllRecords(HttpServletRequest request, HttpServletResponse response, @RequestParam String s, @RequestParam String r) {
ServletOutputStream outputStream = response.getOutputStream();
try {
if ( s == null || r == null) {
outputStream.println("Wrong parameters: please specify 's' (survey) a... |
diff --git a/src/main/java/in/nikitapek/alchemicalcauldron/events/AlchemicalCauldronListener.java b/src/main/java/in/nikitapek/alchemicalcauldron/events/AlchemicalCauldronListener.java
index 2160bf2..6967165 100644
--- a/src/main/java/in/nikitapek/alchemicalcauldron/events/AlchemicalCauldronListener.java
+++ b/src/main... | true | true | public void onItemDrop(final PlayerDropItemEvent event) {
// Get the Item being thrown, as well as the relevant ItemStack.
final Item item = event.getItemDrop();
final Player player = event.getPlayer();
new BukkitRunnable() {
// Because the Y value and location only get ... | public void onItemDrop(final PlayerDropItemEvent event) {
// Get the Item being thrown, as well as the relevant ItemStack.
final Item item = event.getItemDrop();
final Player player = event.getPlayer();
new BukkitRunnable() {
// Because the Y value and location only get ... |
diff --git a/java/src/eu/semaine/components/dialogue/test/TestGui.java b/java/src/eu/semaine/components/dialogue/test/TestGui.java
index b21bb631..bc8eede3 100644
--- a/java/src/eu/semaine/components/dialogue/test/TestGui.java
+++ b/java/src/eu/semaine/components/dialogue/test/TestGui.java
@@ -1,657 +1,657 @@
/**
* ... | false | true | public void react(SEMAINEMessage m) throws JMSException
{
if( m.getTopicName().equals("semaine.data.synthesis.lowlevel.command") ) {
if( m.getDatatype().equals("playCommand") ) {
String id = m.getContentID();
if( preparedResponses.get(id) != null ) {
printLine("* " + preparedResponses.get(id) );
... | public void react(SEMAINEMessage m) throws JMSException
{
if( m.getTopicName().equals("semaine.data.synthesis.lowlevel.command") ) {
if( m.getDatatype().equals("playCommand") ) {
String id = m.getContentID();
if( preparedResponses.get(id) != null ) {
printLine("* " + preparedResponses.get(id) );
... |
diff --git a/src/com/aokp/romcontrol/fragments/UserInterface.java b/src/com/aokp/romcontrol/fragments/UserInterface.java
index b458c38..9c1c3bc 100644
--- a/src/com/aokp/romcontrol/fragments/UserInterface.java
+++ b/src/com/aokp/romcontrol/fragments/UserInterface.java
@@ -1,347 +1,348 @@
package com.aokp.romcontrol.... | true | true | public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen,
Preference preference) {
if (preference == mCrtOffAnimation) {
boolean checked = ((CheckBoxPreference) preference).isChecked();
Settings.System.putInt(getActivity().getContentResolver(),
... | public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen,
Preference preference) {
if (preference == mCrtOffAnimation) {
boolean checked = ((CheckBoxPreference) preference).isChecked();
Settings.System.putInt(getActivity().getContentResolver(),
... |
diff --git a/source/project/efg/client/impl/gui/ImportBehaviorImplReplace.java b/source/project/efg/client/impl/gui/ImportBehaviorImplReplace.java
index 12149d9..c4c90de 100644
--- a/source/project/efg/client/impl/gui/ImportBehaviorImplReplace.java
+++ b/source/project/efg/client/impl/gui/ImportBehaviorImplReplace.java... | true | true | public EFGDatasourceObjectStateInterface importIntoDatabase() {
String message = null;
EFGDatasourceObjectStateInterface state =
SpringGUIFactory.getFailureObject();//use a fctory
if (this.lists.getCount() > 0) {
String [] possibleValues = this.getAlphabeticallySortedList();
Object selectedValue = J... | public EFGDatasourceObjectStateInterface importIntoDatabase() {
String message = null;
EFGDatasourceObjectStateInterface state =
SpringGUIFactory.getFailureObject();//use a fctory
if (this.lists.getCount() > 0) {
String [] possibleValues = this.getAlphabeticallySortedList();
Object selectedValue = J... |
diff --git a/src/SpacePanel.java b/src/SpacePanel.java
index 1c2ede2..954e87b 100644
--- a/src/SpacePanel.java
+++ b/src/SpacePanel.java
@@ -1,405 +1,405 @@
import java.awt.Color;
import java.awt.Font;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.F... | true | true | public void populateSpace() {
this.removeAll();
this.setLayout(null);
this.setBounds(0, 0, DEFAULT_WINDOW_SIZE, DEFAULT_WINDOW_SIZE);
currentLocation = player.getLoc();
Location[] locations = currentLocation.getChild();
locationName.setBounds(200, 0, 200, 30);
fuelLabel.setBounds(0, 50, 200, 30);
fuelL... | public void populateSpace() {
this.removeAll();
this.setLayout(null);
this.setBounds(0, 0, DEFAULT_WINDOW_SIZE, DEFAULT_WINDOW_SIZE);
currentLocation = player.getLoc();
Location[] locations = currentLocation.getChild();
locationName.setBounds(200, 0, 200, 30);
fuelLabel.setBounds(0, 50, 200, 30);
fuelL... |
diff --git a/src/main/java/net/syamn/dejiplus/listener/PlayerListener.java b/src/main/java/net/syamn/dejiplus/listener/PlayerListener.java
index a968444..b540ec6 100644
--- a/src/main/java/net/syamn/dejiplus/listener/PlayerListener.java
+++ b/src/main/java/net/syamn/dejiplus/listener/PlayerListener.java
@@ -1,53 +1,53 ... | true | true | public void onPlayerJoin(final PlayerJoinEvent event){
final Player player = event.getPlayer();
if (config.getUseGeoIP() && !Perms.GEOIP_HIDE.has(player)){
final String geoMsg = GeoIP.getInstance().getGeoIpString(player, config.getUseSimpleFormatOnJoin());
final Stri... | public void onPlayerJoin(final PlayerJoinEvent event){
final Player player = event.getPlayer();
if (config.getUseGeoIP() && !Perms.GEOIP_HIDE.has(player)){
final String geoMsg = GeoIP.getInstance().getGeoIpString(player, config.getUseSimpleFormatOnJoin());
final Stri... |
diff --git a/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/FailoverEndpointFactory.java b/java/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/FailoverEndpointFactory.java
index b4785b7c2..f64312f74 100644
--- a/java/modules/core/src/main/java/org/apache/synapse/config/xml/e... | true | true | public Endpoint createEndpoint(OMElement epConfig, boolean anonymousEndpoint) {
OMElement failoverElement = epConfig.getFirstChildWithName
(new QName(Constants.SYNAPSE_NAMESPACE, "failover"));
if (failoverElement != null) {
FailoverEndpoint failoverEndpoint = new Failov... | public Endpoint createEndpoint(OMElement epConfig, boolean anonymousEndpoint) {
OMElement failoverElement = epConfig.getFirstChildWithName
(new QName(Constants.SYNAPSE_NAMESPACE, "failover"));
if (failoverElement != null) {
FailoverEndpoint failoverEndpoint = new Failov... |
diff --git a/loci/visbio/ClassManager.java b/loci/visbio/ClassManager.java
index 84dfbb990..1ea826258 100644
--- a/loci/visbio/ClassManager.java
+++ b/loci/visbio/ClassManager.java
@@ -1,101 +1,101 @@
//
// ClassManager.java
//
/*
VisBio application for visualization of multidimensional
biological image data. C... | true | true | private void doGUI() {
// preload a bunch of classes
int size = preloadClasses.size();
String pkg = "";
for (int i=0; i<size; i++) {
String className = (String) preloadClasses.elementAt(i);
int dot = className.lastIndexOf(".");
String prefix = className.substring(0, dot);
if (!... | private void doGUI() {
// preload a bunch of classes
int size = preloadClasses.size();
String pkg = "";
for (int i=0; i<size; i++) {
String className = (String) preloadClasses.elementAt(i);
int dot = className.lastIndexOf(".");
String prefix = className.substring(0, dot);
if (!... |
diff --git a/RankingUI/src/org/gephi/ui/ranking/ResultListPanel.java b/RankingUI/src/org/gephi/ui/ranking/ResultListPanel.java
index afd57ff31..b1682027b 100644
--- a/RankingUI/src/org/gephi/ui/ranking/ResultListPanel.java
+++ b/RankingUI/src/org/gephi/ui/ranking/ResultListPanel.java
@@ -1,335 +1,334 @@
/*
Copyright ... | true | true | private void initTablePopup() {
popupMenu = new JPopupMenu();
JMenuItem screenshotItem = new JMenuItem(NbBundle.getMessage(ResultListPanel.class, "ResultListPanel.action.tablescreenshot"));
screenshotItem.addActionListener(new ActionListener() {
public void actionPerformed(Actio... | private void initTablePopup() {
popupMenu = new JPopupMenu();
JMenuItem screenshotItem = new JMenuItem(NbBundle.getMessage(ResultListPanel.class, "ResultListPanel.action.tablescreenshot"));
screenshotItem.addActionListener(new ActionListener() {
public void actionPerformed(Actio... |
diff --git a/ps3mediaserver/net/pms/logging/DebugLogPathDefiner.java b/ps3mediaserver/net/pms/logging/DebugLogPathDefiner.java
index 98d93d64..e010b463 100644
--- a/ps3mediaserver/net/pms/logging/DebugLogPathDefiner.java
+++ b/ps3mediaserver/net/pms/logging/DebugLogPathDefiner.java
@@ -1,65 +1,65 @@
/*
* PS3 Media S... | true | true | public String getPropertyValue() {
// Check if current directory is writable
File file = new File("write_test_file");
try {
file.createNewFile();
if (file.canWrite()) {
file.delete();
return "";
}
} catch (Exception e) {
// Could not create / write the file
}
// Return path to temp fo... | public String getPropertyValue() {
// Check if current directory is writable
File file = new File("write_test_file");
try {
file.createNewFile();
if (file.canWrite()) {
file.delete();
return new File("").getAbsolutePath();
}
} catch (Exception e) {
// Could not create / write the file
}
... |
diff --git a/src/org/yuttadhammo/buddydroid/Buddypress.java b/src/org/yuttadhammo/buddydroid/Buddypress.java
index 91622a6..c6e35b3 100644
--- a/src/org/yuttadhammo/buddydroid/Buddypress.java
+++ b/src/org/yuttadhammo/buddydroid/Buddypress.java
@@ -1,803 +1,805 @@
package org.yuttadhammo.buddydroid;
import java.u... | false | true | protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
int api = Build.VERSION.SDK_INT;
if (api >= 14) {
getActionBar().setHomeButtonEnabled(true);
}
prefs = PreferenceManager.getDefaultSharedPreferences(this);
submitDrawer = (S... | protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
int api = Build.VERSION.SDK_INT;
if (api >= 14) {
getActionBar().setHomeButtonEnabled(true);
}
prefs = PreferenceManager.getDefaultSharedPreferences(this);
submitDrawer = (S... |
diff --git a/forscene-core/src/forscene/core/util/Storage.java b/forscene-core/src/forscene/core/util/Storage.java
index b83bf45..cced116 100644
--- a/forscene-core/src/forscene/core/util/Storage.java
+++ b/forscene-core/src/forscene/core/util/Storage.java
@@ -1,92 +1,92 @@
/**
*
*/
package forscene.core.util;
... | true | true | public Storage() {
PlayN.assets().getText(ForSceneConfigurator.STORAGE_FILENAME,
new ResourceCallback<String>() {
public void done(String resource) {
setJson(PlayN.json().parse(resource));
}
public void error(Throwable err) {
PlayN.log().error("Faile... | public Storage() {
PlayN.assets().getText(ForSceneConfigurator.STORAGE_FILENAME,
new ResourceCallback<String>() {
public void done(String resource) {
setJson(PlayN.json().parse(resource));
}
public void error(Throwable err) {
PlayN.log().error("Stora... |
diff --git a/editor-creation/src/main/java/cz/mzk/editor/client/presenter/CreateStructurePresenter.java b/editor-creation/src/main/java/cz/mzk/editor/client/presenter/CreateStructurePresenter.java
index b6a202e3..6a0537c8 100644
--- a/editor-creation/src/main/java/cz/mzk/editor/client/presenter/CreateStructurePresenter... | true | true | private void processImages() {
String title = null;
if (bundle != null && bundle.getDc() != null && bundle.getDc().getTitle() != null
&& bundle.getDc().getTitle().size() > 0) {
title = bundle.getDc().getTitle().get(0);
}
final ScanFolderAction action = ne... | private void processImages() {
String title = null;
if (bundle != null && bundle.getDc() != null && bundle.getDc().getTitle() != null
&& bundle.getDc().getTitle().size() > 0) {
title = bundle.getDc().getTitle().get(0);
}
final ScanFolderAction action = ne... |
diff --git a/src/web/api/src/main/java/org/geogit/web/api/commands/UpdateRefWeb.java b/src/web/api/src/main/java/org/geogit/web/api/commands/UpdateRefWeb.java
index 160dbc0d..caf6194e 100644
--- a/src/web/api/src/main/java/org/geogit/web/api/commands/UpdateRefWeb.java
+++ b/src/web/api/src/main/java/org/geogit/web/api/... | true | true | public void run(CommandContext context) {
if (name == null) {
throw new CommandSpecException("No name was given.");
} else if (!(delete) && newValue.equals(ObjectId.NULL)) {
throw new CommandSpecException(
"Nothing specified to update with, must specify ei... | public void run(CommandContext context) {
if (name == null) {
throw new CommandSpecException("No name was given.");
} else if (!(delete) && newValue == null) {
throw new CommandSpecException(
"Nothing specified to update with, must specify either deletion ... |
diff --git a/Lab1/broker/broker3/BrokerExchange.java b/Lab1/broker/broker3/BrokerExchange.java
index 5b52871..016b670 100644
--- a/Lab1/broker/broker3/BrokerExchange.java
+++ b/Lab1/broker/broker3/BrokerExchange.java
@@ -1,179 +1,184 @@
import java.io.*;
import java.net.*;
/**
* User: robert
* Date: 11/01/13
... | true | true | public static void main(String[] args) throws IOException, ClassNotFoundException {
Socket brokerSocket = null;
Socket lookupSocket = null;
ObjectOutputStream out = null;
ObjectInputStream in = null;
/* variables for hostname/port */
String hostname_lookup = "localh... | public static void main(String[] args) throws IOException, ClassNotFoundException {
Socket brokerSocket = null;
Socket lookupSocket = null;
ObjectOutputStream out = null;
ObjectInputStream in = null;
/* variables for hostname/port */
String hostname_lookup = "localh... |
diff --git a/Android/AppPreferences/2.0.0/src/com/simonmacdonald/prefs/AppPreferences.java b/Android/AppPreferences/2.0.0/src/com/simonmacdonald/prefs/AppPreferences.java
index 152f55d..e7e2146 100644
--- a/Android/AppPreferences/2.0.0/src/com/simonmacdonald/prefs/AppPreferences.java
+++ b/Android/AppPreferences/2.0.0/... | false | true | public PluginResult execute(String action, JSONArray args, String callbackId) {
PluginResult.Status status = PluginResult.Status.OK;
String result = "";
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this.cordova.getActivity());
try {
if (... | public PluginResult execute(String action, JSONArray args, String callbackId) {
PluginResult.Status status = PluginResult.Status.OK;
String result = "";
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this.cordova.getActivity());
try {
if (... |
diff --git a/web/src/test/java/org/mule/galaxy/atom/ArtifactCollectionTest.java b/web/src/test/java/org/mule/galaxy/atom/ArtifactCollectionTest.java
index 8cc20bc2..19b236e9 100755
--- a/web/src/test/java/org/mule/galaxy/atom/ArtifactCollectionTest.java
+++ b/web/src/test/java/org/mule/galaxy/atom/ArtifactCollectionTes... | true | true | public void testAddWsdl() throws Exception {
AbderaClient client = new AbderaClient(abdera);
RequestOptions defaultOpts = client.getDefaultRequestOptions();
defaultOpts.setAuthorization("Basic " + Base64.encode("admin:admin".getBytes()));
String base = "http://localhost:9002... | public void testAddWsdl() throws Exception {
AbderaClient client = new AbderaClient(abdera);
RequestOptions defaultOpts = client.getDefaultRequestOptions();
defaultOpts.setAuthorization("Basic " + Base64.encode("admin:admin".getBytes()));
String base = "http://localhost:9002... |
diff --git a/src/org/red5/server/BaseConnection.java b/src/org/red5/server/BaseConnection.java
index 06bc4a79..c57a2889 100644
--- a/src/org/red5/server/BaseConnection.java
+++ b/src/org/red5/server/BaseConnection.java
@@ -1,395 +1,395 @@
package org.red5.server;
/*
* RED5 Open Source Flash Server - http://www.os... | true | true | public void close() {
if (scope != null) {
log.debug("Close, disconnect from scope, and children");
try {
// Unregister all child scopes first
Set<IBasicScope> tmpScopes = new HashSet<IBasicScope>(
basicScopes);
for (IBasicScope basicScope : tmpScopes) {
unregis... | public synchronized void close() {
if (scope != null) {
log.debug("Close, disconnect from scope, and children");
try {
// Unregister all child scopes first
Set<IBasicScope> tmpScopes = new HashSet<IBasicScope>(
basicScopes);
for (IBasicScope basicScope : tmpScopes) {... |
diff --git a/src/de/ueller/midlet/gps/GuiWaypoint.java b/src/de/ueller/midlet/gps/GuiWaypoint.java
index 6a3bc4f..6617308 100644
--- a/src/de/ueller/midlet/gps/GuiWaypoint.java
+++ b/src/de/ueller/midlet/gps/GuiWaypoint.java
@@ -1,158 +1,161 @@
package de.ueller.midlet.gps;
/*
* GpsMid - Copyright (c) 2008 Kai Krue... | true | true | public void commandAction(Command c, Displayable d) {
logger.debug("got Command " + c);
if (c == SEND_CMD) {
/* TODO */
return;
}
if (c == DEL_CMD) {
boolean[] sel = new boolean[waypoints.length];
this.getSelectedFlags(sel);
for (int i = 0; i < sel.length; i++) {
if (sel[i]) {
... | public void commandAction(Command c, Displayable d) {
logger.debug("got Command " + c);
if (c == SEND_CMD) {
/* TODO */
return;
}
if (c == DEL_CMD) {
boolean[] sel = new boolean[waypoints.length];
this.getSelectedFlags(sel);
for (int i = 0; i < sel.length; i++) {
if (sel[i]) {
... |
diff --git a/src/org/openid4java/message/ax/AxMessage.java b/src/org/openid4java/message/ax/AxMessage.java
index 6b872d8..6e88508 100644
--- a/src/org/openid4java/message/ax/AxMessage.java
+++ b/src/org/openid4java/message/ax/AxMessage.java
@@ -1,166 +1,166 @@
/*
* Copyright 2006-2007 Sxip Identity Corporation
*/
... | true | true | public MessageExtension getExtension(
ParameterList parameterList, boolean isRequest)
throws MessageException
{
String axMode = null;
if (parameterList.hasParameter("mode"))
{
axMode = parameterList.getParameterValue("mode");
if ("fetch_re... | public MessageExtension getExtension(
ParameterList parameterList, boolean isRequest)
throws MessageException
{
String axMode = null;
if (parameterList.hasParameter("mode"))
{
axMode = parameterList.getParameterValue("mode");
if ("fetch_re... |
diff --git a/src/org/jruby/RubyGlobal.java b/src/org/jruby/RubyGlobal.java
index bba9cbec6..ceff2015e 100644
--- a/src/org/jruby/RubyGlobal.java
+++ b/src/org/jruby/RubyGlobal.java
@@ -1,474 +1,475 @@
/***** BEGIN LICENSE BLOCK *****
* Version: CPL 1.0/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject t... | true | true | public static void createGlobals(Ruby runtime) {
// Version information:
IRubyObject version = runtime.newString(Constants.RUBY_VERSION).freeze();
IRubyObject release = runtime.newString(Constants.COMPILE_DATE).freeze();
IRubyObject platform = runtime.newString(Constants.PLATFORM).f... | public static void createGlobals(Ruby runtime) {
// Version information:
IRubyObject version = runtime.newString(Constants.RUBY_VERSION).freeze();
IRubyObject release = runtime.newString(Constants.COMPILE_DATE).freeze();
IRubyObject platform = runtime.newString(Constants.PLATFORM).f... |
diff --git a/src/net/sf/freecol/common/model/Player.java b/src/net/sf/freecol/common/model/Player.java
index 8b66c11ef..820c35b1b 100644
--- a/src/net/sf/freecol/common/model/Player.java
+++ b/src/net/sf/freecol/common/model/Player.java
@@ -1,3194 +1,3194 @@
package net.sf.freecol.common.model;
import java.awt.Colo... | true | true | public void newTurn() {
int newSoL = 0;
// settlements
ArrayList<Settlement> settlements = new ArrayList(getSettlements());
for (Settlement settlement : settlements) {
logger.finest("Calling newTurn for settlement " + settlement.toString());
settlement.newTu... | public void newTurn() {
int newSoL = 0;
// settlements
ArrayList<Settlement> settlements = new ArrayList<Settlement>(getSettlements());
for (Settlement settlement : settlements) {
logger.finest("Calling newTurn for settlement " + settlement.toString());
sett... |
diff --git a/src/com/android/phone/OtaUtils.java b/src/com/android/phone/OtaUtils.java
index 1a43dbdc..22c7398d 100644
--- a/src/com/android/phone/OtaUtils.java
+++ b/src/com/android/phone/OtaUtils.java
@@ -1,1641 +1,1641 @@
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache Li... | true | true | public static boolean maybeDoOtaCall(Context context, Handler handler, int request) {
PhoneApp app = PhoneApp.getInstance();
Phone phone = app.phone;
if (ActivityManager.isRunningInTestHarness()) {
Log.i(LOG_TAG, "Don't run provisioning when in test harness");
return... | public static boolean maybeDoOtaCall(Context context, Handler handler, int request) {
PhoneApp app = PhoneApp.getInstance();
Phone phone = app.phone;
if (ActivityManager.isRunningInTestHarness()) {
Log.i(LOG_TAG, "Don't run provisioning when in test harness");
return... |
diff --git a/src/com/intellij/plugins/haxe/compilation/HaxeCompilerBase.java b/src/com/intellij/plugins/haxe/compilation/HaxeCompilerBase.java
index 3b2760f..d75c850 100644
--- a/src/com/intellij/plugins/haxe/compilation/HaxeCompilerBase.java
+++ b/src/com/intellij/plugins/haxe/compilation/HaxeCompilerBase.java
@@ -1,6... | true | true | public void compile(CompileContext context, Chunk<Module> moduleChunk, VirtualFile[] files, OutputSink sink) {
final Sdk sdk = getSdk(moduleChunk);
final HaxeSdkData sdkData = HaxeSdkUtil.testHaxeSdk(sdk.getHomePath());
HaxeApplicationConfiguration applicationConfiguration = getApplicationConfiguration(c... | public void compile(CompileContext context, Chunk<Module> moduleChunk, VirtualFile[] files, OutputSink sink) {
final Sdk sdk = getSdk(moduleChunk);
final HaxeSdkData sdkData = HaxeSdkUtil.testHaxeSdk(sdk.getHomePath());
HaxeApplicationConfiguration applicationConfiguration = getApplicationConfiguration(c... |
diff --git a/src/com/tulskiy/musique/audio/formats/mp4/MP4FileReader.java b/src/com/tulskiy/musique/audio/formats/mp4/MP4FileReader.java
index d3bb729..effca2e 100755
--- a/src/com/tulskiy/musique/audio/formats/mp4/MP4FileReader.java
+++ b/src/com/tulskiy/musique/audio/formats/mp4/MP4FileReader.java
@@ -1,91 +1,95 @@
... | false | true | protected void copySpecificTagFields(Tag tag, Track track) {
Mp4Tag mp4Tag = (Mp4Tag) tag;
TrackData trackData = track.getTrackData();
Mp4TrackField trackField = (Mp4TrackField) mp4Tag.getFirstField(Mp4FieldKey.TRACK);
if (trackField.getTrackNo() != null) {
trackData.addTrack(trackFi... | protected void copySpecificTagFields(Tag tag, Track track) {
Mp4Tag mp4Tag = (Mp4Tag) tag;
TrackData trackData = track.getTrackData();
Mp4TrackField trackField = (Mp4TrackField) mp4Tag.getFirstField(Mp4FieldKey.TRACK);
if (trackField != null) {
if (trackField.getTrackNo() != null) {
... |
diff --git a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/JavaRuntime.java b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/JavaRuntime.java
index 6e05f2bd6..dcf6894c0 100644
--- a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/JavaRuntime.java
+++ b/org.eclipse.jdt.launch... | false | true | private static void loadVMInstalls() {
IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(LaunchingPlugin.ID_PLUGIN, JavaRuntime.EXTENSION_POINT_VM_INSTALLS);
IConfigurationElement[] configs= extensionPoint.getConfigurationElements();
for (int i = 0; i < configs.length; i++) {
... | private static void loadVMInstalls() {
IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(LaunchingPlugin.ID_PLUGIN, JavaRuntime.EXTENSION_POINT_VM_INSTALLS);
IConfigurationElement[] configs= extensionPoint.getConfigurationElements();
for (int i = 0; i < configs.length; i++) {
... |
diff --git a/src/controller/Console.java b/src/controller/Console.java
index cc8c952..bb764ec 100644
--- a/src/controller/Console.java
+++ b/src/controller/Console.java
@@ -1,139 +1,140 @@
/*
* Copyright (C) 2012 Andreas Halle
*
* This file is part of pplex.
*
* pplex is free software; you can redistribute i... | true | true | public void keyPressed(KeyEvent e) {
switch(e.getKeyCode()) {
case KeyEvent.VK_ENTER:
String text = jtfInput.getText();
if (!text.equals("")) {
jtaConsole.append("> " + text + "\n");
jtaConsole.append(cli.parseCmd(te... | public void keyPressed(KeyEvent e) {
switch(e.getKeyCode()) {
case KeyEvent.VK_ENTER:
String text = jtfInput.getText();
if (!text.equals("")) {
jtaConsole.append("> " + text + "\n");
jtaConsole.append(cli.parseCmd(te... |
diff --git a/src/setServer/SetServer.java b/src/setServer/SetServer.java
index 86cf021..0b7a9b8 100644
--- a/src/setServer/SetServer.java
+++ b/src/setServer/SetServer.java
@@ -1,284 +1,284 @@
package setServer;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry... | false | true | public static void main(String[] args) {
// BlockingQueue receives all client messages, allows reads only when non-empty, and supports threads
BlockingQueue<Message> inMessages = new LinkedBlockingQueue<Message>();
BlockingQueue<Message> outMessages = new LinkedBlockingQueue<Message>();
// Map from user ... | public static void main(String[] args) {
// BlockingQueue receives all client messages, allows reads only when non-empty, and supports threads
BlockingQueue<Message> inMessages = new LinkedBlockingQueue<Message>();
BlockingQueue<Message> outMessages = new LinkedBlockingQueue<Message>();
// Map from user ... |
diff --git a/common/logisticspipes/items/RemoteOrderer.java b/common/logisticspipes/items/RemoteOrderer.java
index dd29b1f5..015b0a0f 100644
--- a/common/logisticspipes/items/RemoteOrderer.java
+++ b/common/logisticspipes/items/RemoteOrderer.java
@@ -1,162 +1,162 @@
package logisticspipes.items;
import java.util.Li... | true | true | public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
{
if(par1ItemStack == null) {
return null;
}
if(!par1ItemStack.hasTagCompound()) {
return par1ItemStack;
}
PipeItemsRemoteOrdererLogistics pipe = getPipe(par1ItemStack);
if(pipe != nu... | public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
{
if(par1ItemStack == null) {
return null;
}
if(!par1ItemStack.hasTagCompound()) {
return par1ItemStack;
}
PipeItemsRemoteOrdererLogistics pipe = getPipe(par1ItemStack);
if(pipe != nu... |
diff --git a/src/main/java/org/elasticsearch/cluster/settings/ClusterDynamicSettingsModule.java b/src/main/java/org/elasticsearch/cluster/settings/ClusterDynamicSettingsModule.java
index 0f9d1060e54..e46fbf3fb32 100644
--- a/src/main/java/org/elasticsearch/cluster/settings/ClusterDynamicSettingsModule.java
+++ b/src/ma... | true | true | public ClusterDynamicSettingsModule() {
clusterDynamicSettings = new DynamicSettings();
clusterDynamicSettings.addDynamicSetting(AwarenessAllocationDecider.CLUSTER_ROUTING_ALLOCATION_AWARENESS_ATTRIBUTES);
clusterDynamicSettings.addDynamicSetting(AwarenessAllocationDecider.CLUSTER_ROUTING_AL... | public ClusterDynamicSettingsModule() {
clusterDynamicSettings = new DynamicSettings();
clusterDynamicSettings.addDynamicSetting(AwarenessAllocationDecider.CLUSTER_ROUTING_ALLOCATION_AWARENESS_ATTRIBUTES);
clusterDynamicSettings.addDynamicSetting(AwarenessAllocationDecider.CLUSTER_ROUTING_AL... |
diff --git a/GpsMidGraph/de/ueller/gps/tools/BufferedReader.java b/GpsMidGraph/de/ueller/gps/tools/BufferedReader.java
index 2220f45..92f318b 100644
--- a/GpsMidGraph/de/ueller/gps/tools/BufferedReader.java
+++ b/GpsMidGraph/de/ueller/gps/tools/BufferedReader.java
@@ -1,99 +1,99 @@
package de.ueller.gps.tools;
/*
*... | true | true | public String readLine() throws IOException{
sb.setLength(0);
while (bufferlen >= 0) {
if (idx >= bufferlen) {
idx = 0;
bufferlen = r.read(buffer);
}
for (int i = idx; i < bufferlen; i++) {
char c = buffer[idx++];
if (c == '\r') {
if (idx < bufferlen) {
if (buffer[idx + 1] == '\... | public String readLine() throws IOException{
sb.setLength(0);
while (bufferlen >= 0) {
if (idx >= bufferlen) {
idx = 0;
bufferlen = r.read(buffer);
}
for (int i = idx; i < bufferlen; i++) {
char c = buffer[idx++];
if (c == '\r') {
if (idx < bufferlen) {
if (buffer[idx] == '\n') ... |
diff --git a/src/java/eu/ist/fears/server/domain/Comment.java b/src/java/eu/ist/fears/server/domain/Comment.java
index 354a69d..b0121eb 100644
--- a/src/java/eu/ist/fears/server/domain/Comment.java
+++ b/src/java/eu/ist/fears/server/domain/Comment.java
@@ -1,24 +1,25 @@
package eu.ist.fears.server.domain;
import or... | true | true | public Comment(String c, Voter v, State newState, State oldState) {
super();
setComment(c);
setAuthor(v);
setNewState(newState);
setOldState(oldState);
setCreatedTime(new DateTime());
}
| public Comment(String c, Voter v, State newState, State oldState) {
super();
//Remove all \r inserted by IE browser.
setComment(c.replaceAll("\r",""));
setAuthor(v);
setNewState(newState);
setOldState(oldState);
setCreatedTime(new DateTime());
}
|
diff --git a/src/org/mozilla/javascript/Interpreter.java b/src/org/mozilla/javascript/Interpreter.java
index ffeb89c2..54c3cd9a 100644
--- a/src/org/mozilla/javascript/Interpreter.java
+++ b/src/org/mozilla/javascript/Interpreter.java
@@ -1,4736 +1,4736 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basi... | true | true | private static Object interpretLoop(Context cx, CallFrame frame,
Object throwable)
{
// throwable holds exception object to rethrow or catch
// It is also used for continuation restart in which case
// it holds ContinuationJump
final Objec... | private static Object interpretLoop(Context cx, CallFrame frame,
Object throwable)
{
// throwable holds exception object to rethrow or catch
// It is also used for continuation restart in which case
// it holds ContinuationJump
final Objec... |
diff --git a/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java b/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java
index d7df3b28..2f2cc9bb 100644
--- a/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java
+++ b/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java
@@ -1,713 +1,713 @@
... | true | true | private InputSource getInputSource(XSLTC xsltc, Source source)
throws TransformerConfigurationException {
InputSource input = null;
String systemId = source.getSystemId();
if (systemId == null) ystemId = "";
try {
// Try to get InputSource from SAXSource input
if (source instanceof SAXSource) {
... | private InputSource getInputSource(XSLTC xsltc, Source source)
throws TransformerConfigurationException {
InputSource input = null;
String systemId = source.getSystemId();
if (systemId == null) systemId = "";
try {
// Try to get InputSource from SAXSource input
if (source instanceof SAXSource) {
... |
diff --git a/OscController/src/de/fhpotsdam/util/Reflection.java b/OscController/src/de/fhpotsdam/util/Reflection.java
index f2a4020..2bf0bb6 100644
--- a/OscController/src/de/fhpotsdam/util/Reflection.java
+++ b/OscController/src/de/fhpotsdam/util/Reflection.java
@@ -1,61 +1,62 @@
package de.fhpotsdam.util;
import... | true | true | public void invokeMethodWithParams(Object o, String m,
Object[] params, Class[] parTypes) {
if (o == null || m == "" || m == null) {
System.err.println("invokeMethodWithParams(): There was an error with your arguments");
return;
}
Class c = o.getClass();
Method method = null;
try {
method = c... | public void invokeMethodWithParams(Object o, String m,
Object[] params, Class[] parTypes) {
if (o == null || m == "" || m == null) {
System.err.println("invokeMethodWithParams(): There was an error with your arguments");
return;
}
Class c = o.getClass();
Method method = null;
try {
method = c... |
diff --git a/src/java/luajava/Console.java b/src/java/luajava/Console.java
index 3bf14cc..198a0af 100755
--- a/src/java/luajava/Console.java
+++ b/src/java/luajava/Console.java
@@ -1,105 +1,124 @@
/*
* Copyright (C) 2004 Kepler Project.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a ... | true | true | public static void main(String[] args)
{
try
{
LuaState L = LuaStateFactory.newLuaState();
L.openBasicLibraries();
L.openDebug();
L.openLoadLib();
if (args.length > 0)
{
for (int i = 0; i < args.length; i++)
{
int res = L.doFile(args[i]);
if (res != 0)
{
String str... | public static void main(String[] args)
{
try
{
LuaState L = LuaStateFactory.newLuaState();
L.openBasicLibraries();
L.openDebug();
L.openLoadLib();
if (args.length > 0)
{
for (int i = 0; i < args.length; i++)
{
int res = L.doFile(args[i]);
if (res != 0)
{
String str... |
diff --git a/src/main/java/com/netflix/simianarmy/resources/chaos/ChaosMonkeyResource.java b/src/main/java/com/netflix/simianarmy/resources/chaos/ChaosMonkeyResource.java
index dcc0cc5..4b9c0aa 100644
--- a/src/main/java/com/netflix/simianarmy/resources/chaos/ChaosMonkeyResource.java
+++ b/src/main/java/com/netflix/sim... | true | true | public Response getChaosEvents(@javax.ws.rs.core.Context UriInfo uriInfo) throws IOException {
Map<String, String> query = new HashMap<String, String>();
Date date = new Date(0);
for (Map.Entry<String, List<String>> pair : uriInfo.getQueryParameters().entrySet()) {
if (pair.getVa... | public Response getChaosEvents(@javax.ws.rs.core.Context UriInfo uriInfo) throws IOException {
Map<String, String> query = new HashMap<String, String>();
Date date = new Date(0);
for (Map.Entry<String, List<String>> pair : uriInfo.getQueryParameters().entrySet()) {
if (pair.getVa... |
diff --git a/ManalithBot/src/main/java/org/manalith/ircbot/plugin/DistroPkgFinder/UbuntuPkgFinderJsoupRunner.java b/ManalithBot/src/main/java/org/manalith/ircbot/plugin/DistroPkgFinder/UbuntuPkgFinderJsoupRunner.java
index ed2b28c..d5d87dd 100644
--- a/ManalithBot/src/main/java/org/manalith/ircbot/plugin/DistroPkgFinde... | true | true | public String run() {
// TODO Auto-generated method stub
String result = "";
String latestPkgName = this.getLatestPkgName();
String url = "http://packages.ubuntu.com/search?keywords=" + this.getKeyword() + "&searchon=names&suite=" + latestPkgName + "§ion=all";
boolean hasExacthits = false;
Strin... | public String run() {
// TODO Auto-generated method stub
String result = "";
String latestPkgName = this.getLatestPkgName();
String url = "http://packages.ubuntu.com/search?keywords=" + this.getKeyword() + "&searchon=names&suite=" + latestPkgName + "§ion=all";
boolean hasExacthits = false;
Strin... |
diff --git a/ide-test/org.codehaus.groovy.eclipse.tests/src/org/codehaus/groovy/eclipse/test/ui/ErrorLogTest.java b/ide-test/org.codehaus.groovy.eclipse.tests/src/org/codehaus/groovy/eclipse/test/ui/ErrorLogTest.java
index c5b2df3c7..0fdffc6af 100644
--- a/ide-test/org.codehaus.groovy.eclipse.tests/src/org/codehaus/gro... | true | true | public void testNoWarningsOnStartup() throws Exception {
IViewPart view = Workbench.getInstance().getActiveWorkbenchWindow()
.getActivePage().getActivePart().getSite().getPage().showView(
"org.eclipse.pde.runtime.LogView"); //$NON-NLS-1$
if (view instanceof Lo... | public void testNoWarningsOnStartup() throws Exception {
IViewPart view = Workbench.getInstance().getActiveWorkbenchWindow()
.getActivePage().getActivePart().getSite().getPage().showView(
"org.eclipse.pde.runtime.LogView"); //$NON-NLS-1$
if (view instanceof Lo... |
diff --git a/src/com/android/contacts/editor/EventFieldEditorView.java b/src/com/android/contacts/editor/EventFieldEditorView.java
index 9c91ff815..94846a0f0 100644
--- a/src/com/android/contacts/editor/EventFieldEditorView.java
+++ b/src/com/android/contacts/editor/EventFieldEditorView.java
@@ -1,292 +1,292 @@
/*
*... | false | true | private Dialog createDatePickerDialog() {
final String column = getKind().fieldList.get(0).column;
final String oldValue = getEntry().getAsString(column);
final DataKind kind = getKind();
final Calendar calendar = Calendar.getInstance(DateUtils.UTC_TIMEZONE, Locale.US);
fina... | private Dialog createDatePickerDialog() {
final String column = getKind().fieldList.get(0).column;
final String oldValue = getEntry().getAsString(column);
final DataKind kind = getKind();
final Calendar calendar = Calendar.getInstance(DateUtils.UTC_TIMEZONE, Locale.US);
fina... |
diff --git a/Client/Bootstrap/src/main/java/me/footlights/boot/FootlightsClassLoader.java b/Client/Bootstrap/src/main/java/me/footlights/boot/FootlightsClassLoader.java
index bb6bc9cd..c1626ead 100644
--- a/Client/Bootstrap/src/main/java/me/footlights/boot/FootlightsClassLoader.java
+++ b/Client/Bootstrap/src/main/java... | true | true | @Override protected synchronized Class<?> findClass(String name)
throws ClassNotFoundException
{
// If the "class name" is very specially encoded, we actually want to load a plugin.
if (name.contains("!/"))
{
String[] tokens = name.split("!/");
if (tokens.length != 2)
throw new ClassNotFoundExceptio... | @Override protected synchronized Class<?> findClass(String name)
throws ClassNotFoundException
{
// If the "class name" is very specially encoded, we actually want to load a plugin.
if (name.contains("!/"))
{
String[] tokens = name.split("!/");
if (tokens.length != 2)
throw new ClassNotFoundExceptio... |
diff --git a/com.mobilesorcery.sdk.html5/src/com/mobilesorcery/sdk/html5/debug/JSODDSupport.java b/com.mobilesorcery.sdk.html5/src/com/mobilesorcery/sdk/html5/debug/JSODDSupport.java
index 2a726471..5e0e2afc 100644
--- a/com.mobilesorcery.sdk.html5/src/com/mobilesorcery/sdk/html5/debug/JSODDSupport.java
+++ b/com.mobil... | false | true | public void preVisit(ASTNode node) {
currentPosition = getPosition(node, true);
int start = getStartPosition(node);
int startLine = unit == null ? -1 : unit.getLineNumber(start);
LocalVariableScope startScope = currentScope;
Integer scopeResetPoint = scopeResetPoints.floor(start);
if (scopeRes... | public void preVisit(ASTNode node) {
currentPosition = getPosition(node, true);
int start = getStartPosition(node);
int scopeStart = start;
int startLine = unit == null ? -1 : unit.getLineNumber(start);
LocalVariableScope startScope = currentScope;
Integer scopeResetPoint = scopeResetPoints.fl... |
diff --git a/src/main/java/org/iplantc/core/uicommons/client/widgets/IPlantSideErrorHandler.java b/src/main/java/org/iplantc/core/uicommons/client/widgets/IPlantSideErrorHandler.java
index 758367e..16eaf78 100644
--- a/src/main/java/org/iplantc/core/uicommons/client/widgets/IPlantSideErrorHandler.java
+++ b/src/main/ja... | true | true | public IPlantSideErrorHandler(Widget target) {
super(target);
if (target instanceof HasResizeHandlers) {
((HasResizeHandlers)target).addResizeHandler(this);
}
}
| public IPlantSideErrorHandler(Widget target) {
super(target);
setAdjustTargetWidth(false);
if (target instanceof HasResizeHandlers) {
((HasResizeHandlers)target).addResizeHandler(this);
}
}
|
diff --git a/src/biz/bokhorst/xprivacy/PrivacyService.java b/src/biz/bokhorst/xprivacy/PrivacyService.java
index 05c760f9..cd6bfa28 100644
--- a/src/biz/bokhorst/xprivacy/PrivacyService.java
+++ b/src/biz/bokhorst/xprivacy/PrivacyService.java
@@ -1,1502 +1,1502 @@
package biz.bokhorst.xprivacy;
import java.io.File;... | false | true | public List<PRestriction> getUsageList(int uid) throws RemoteException {
List<PRestriction> result = new ArrayList<PRestriction>();
try {
enforcePermission();
SQLiteDatabase db = getDatabase();
db.beginTransaction();
try {
Cursor cursor;
if (uid == 0)
cursor = db.query(cTableUsa... | public List<PRestriction> getUsageList(int uid) throws RemoteException {
List<PRestriction> result = new ArrayList<PRestriction>();
try {
enforcePermission();
SQLiteDatabase db = getDatabase();
db.beginTransaction();
try {
Cursor cursor;
if (uid == 0)
cursor = db.query(cTableUsa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.