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/native/android/src/com/phonegap/facebook/ConnectPlugin.java b/native/android/src/com/phonegap/facebook/ConnectPlugin.java
index 5509a17..cf15527 100644
--- a/native/android/src/com/phonegap/facebook/ConnectPlugin.java
+++ b/native/android/src/com/phonegap/facebook/ConnectPlugin.java
@@ -1,233 +1,237 @@
pa... | false | true | public PluginResult execute(String action, JSONArray args, final String callbackId) {
PluginResult pr = new PluginResult(PluginResult.Status.NO_RESULT);
pr.setKeepCallback(true);
if (action.equals("init")) {
try {
String appId = args.getString(0);
... | public PluginResult execute(String action, JSONArray args, final String callbackId) {
PluginResult pr = new PluginResult(PluginResult.Status.NO_RESULT);
pr.setKeepCallback(true);
if (action.equals("init")) {
try {
String appId = args.getString(0);
... |
diff --git a/src/edu/itba/skbsolver/StateSpawner.java b/src/edu/itba/skbsolver/StateSpawner.java
index b29705d..257e263 100644
--- a/src/edu/itba/skbsolver/StateSpawner.java
+++ b/src/edu/itba/skbsolver/StateSpawner.java
@@ -1,176 +1,175 @@
package edu.itba.skbsolver;
import java.util.ArrayList;
import java.util.D... | true | true | public List<State> childs(State s, boolean review) {
level.logger.info("Listing childs for state: \n"+s.toString());
List<State> newStates = new ArrayList<State>();
Deque<Integer> queue = new LinkedList<Integer>();
Deque<Integer> how = new LinkedList<Integer>();
int[][][] distance = new int[level.xsize][l... | public List<State> childs(State s, boolean review) {
level.logger.info("Listing childs for state: \n"+s.toString());
List<State> newStates = new ArrayList<State>();
Deque<Integer> queue = new LinkedList<Integer>();
Deque<Integer> how = new LinkedList<Integer>();
int[][][] distance = new int[level.xsize][l... |
diff --git a/examples/src/test/java/org/neo4j/examples/osgi/SDNSetup.java b/examples/src/test/java/org/neo4j/examples/osgi/SDNSetup.java
index 7123d92..5b0c45e 100644
--- a/examples/src/test/java/org/neo4j/examples/osgi/SDNSetup.java
+++ b/examples/src/test/java/org/neo4j/examples/osgi/SDNSetup.java
@@ -1,76 +1,76 @@
... | true | true | public static Option[] sdnOptions()
{
return options(
autoWrap(),
equinox(),
// vmOptions("-Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:8000"),
repository("https://oss.sonaty... | public static Option[] sdnOptions()
{
return options(
autoWrap(),
equinox(),
// vmOptions("-Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:8000"),
repository("https://oss.sonaty... |
diff --git a/src/cn/ingenic/updater/UpdateInfo.java b/src/cn/ingenic/updater/UpdateInfo.java
index bb63ad0..ef477da 100644
--- a/src/cn/ingenic/updater/UpdateInfo.java
+++ b/src/cn/ingenic/updater/UpdateInfo.java
@@ -1,101 +1,106 @@
package cn.ingenic.updater;
import java.util.ArrayList;
import java.util.Arrays;
... | false | true | public static UpdateInfo createFromString(String s){
UpdateInfo info = new UpdateInfo();
String [] values = s.split(";");
int i = 0;
info.index = values[i++];
info.version_from = values[i++];
info.version_to = values[i++];
info.description = values[i++];
info.url = values[i++];
info.size = valu... | public static UpdateInfo createFromString(String s) {
UpdateInfo info = new UpdateInfo();
String[] values = s.split(";");
int i = 0;
try {
info.index = values[i++];
info.version_from = values[i++];
info.version_to = values[i++];
info.description = values[i++];
info.url = values[i++];
info.siz... |
diff --git a/src/main/java/net/retakethe/policyauction/data/impl/manager/UserVoteAllocationManagerImpl.java b/src/main/java/net/retakethe/policyauction/data/impl/manager/UserVoteAllocationManagerImpl.java
index 7197db4..0d34d0e 100644
--- a/src/main/java/net/retakethe/policyauction/data/impl/manager/UserVoteAllocationM... | false | true | private List<VoteRecord> resolveCollisions(UserID userID, List<VoteRecord> voteRecords) {
final long expirableAgeMillis = votingConfigManager.getVoteFinalizeDelaySeconds() * MILLIS_PER_SECOND;
Map<VoteRecordID, VoteRecord> allRecords = new LinkedHashMap<VoteRecordID, VoteRecord>(voteRecords.size())... | private List<VoteRecord> resolveCollisions(UserID userID, List<VoteRecord> voteRecords) {
final long expirableAgeMillis = votingConfigManager.getVoteFinalizeDelaySeconds() * MILLIS_PER_SECOND;
Map<VoteRecordID, VoteRecord> allRecords = new LinkedHashMap<VoteRecordID, VoteRecord>(voteRecords.size())... |
diff --git a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/StructuredTextViewer.java b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/StructuredTextViewer.java
index e110f504b..812e827ba 100644
--- a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/StructuredTe... | true | true | public void configure(SourceViewerConfiguration configuration) {
if (getTextWidget() == null)
return;
setDocumentPartitioning(configuration.getConfiguredDocumentPartitioning(this));
// always uninstall highlighter and null it out on new configuration
if (fHighlighter != null) {
fHighlighter.uninstall(... | public void configure(SourceViewerConfiguration configuration) {
if (getTextWidget() == null)
return;
setDocumentPartitioning(configuration.getConfiguredDocumentPartitioning(this));
// always uninstall highlighter and null it out on new configuration
if (fHighlighter != null) {
fHighlighter.uninstall(... |
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandkickall.java b/Essentials/src/com/earth2me/essentials/commands/Commandkickall.java
index e78c77e4..c52dc8d1 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandkickall.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandki... | true | true | public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception
{
charge(sender);
for (Player p : server.getOnlinePlayers())
{
if (sender instanceof Player && p.getName().equalsIgnoreCase(((Player)sender).getName()))
{
continue;
}
else
{
p.kickPl... | public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception
{
charge(sender);
for (Player p : server.getOnlinePlayers())
{
if (sender instanceof Player && p.getName().equalsIgnoreCase(((Player)sender).getName()))
{
continue;
}
else
{
p.kickPl... |
diff --git a/SMSWakeUp/src/main/java/com/snot/smswakeup/ContactUtil.java b/SMSWakeUp/src/main/java/com/snot/smswakeup/ContactUtil.java
index aee0aed..7d9016d 100644
--- a/SMSWakeUp/src/main/java/com/snot/smswakeup/ContactUtil.java
+++ b/SMSWakeUp/src/main/java/com/snot/smswakeup/ContactUtil.java
@@ -1,132 +1,133 @@
pa... | false | true | public static long[] getContactIdsByPhoneNumber(Context context, String phoneNumber) {
ContentResolver contentResolver = context.getContentResolver();
Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(phoneNumber));
String[] projection = new String[] { PhoneLookup._ID };
Cursor cursor =... | public static long[] getContactIdsByPhoneNumber(Context context, String phoneNumber) {
ContentResolver contentResolver = context.getContentResolver();
Uri uri = Uri.withAppendedPath(PhoneLookup.CONTENT_FILTER_URI, Uri.encode(phoneNumber));
String[] projection = new String[] { PhoneLookup._ID };
Cursor cursor =... |
diff --git a/org/jruby/runtime/RubyRuntime.java b/org/jruby/runtime/RubyRuntime.java
index 40bd6198e..c920f3018 100644
--- a/org/jruby/runtime/RubyRuntime.java
+++ b/org/jruby/runtime/RubyRuntime.java
@@ -1,419 +1,419 @@
/*
* RubyRuntime.java - No description
* Created on 09. November 2001, 15:47
*
* Copyrigh... | true | true | public void printError(RubyException excp) {
if (excp == null || excp.isNil()) {
return;
}
RubyArray backtrace = (RubyArray) excp.funcall("backtrace");
if (backtrace.isNil()) {
if (ruby.getSourceFile() != null) {
getErrorStream().print(ruby.getSourceFile() + ':' + ruby.getSourceLine());
} else {... | public void printError(RubyException excp) {
if (excp == null || excp.isNil()) {
return;
}
RubyArray backtrace = (RubyArray) excp.funcall("backtrace");
if (backtrace.isNil()) {
if (ruby.getSourceFile() != null) {
getErrorStream().print(ruby.getSourceFile() + ':' + ruby.getSourceLine());
} else {... |
diff --git a/src/com/vaadin/addon/sqlcontainer/RowId.java b/src/com/vaadin/addon/sqlcontainer/RowId.java
index 2beb026..3486233 100644
--- a/src/com/vaadin/addon/sqlcontainer/RowId.java
+++ b/src/com/vaadin/addon/sqlcontainer/RowId.java
@@ -1,74 +1,78 @@
package com.vaadin.addon.sqlcontainer;
import java.io.Seriali... | false | true | public boolean equals(Object obj) {
if (obj == null || !(obj instanceof RowId)) {
return false;
}
Object[] compId = ((RowId) obj).getId();
if (id.length != compId.length) {
return false;
}
for (int i = 0; i < id.length; i++) {
if (!... | public boolean equals(Object obj) {
if (obj == null || !(obj instanceof RowId)) {
return false;
}
Object[] compId = ((RowId) obj).getId();
if (id == null && compId == null) {
return true;
}
if (id.length != compId.length) {
return f... |
diff --git a/framework/src/org/apache/cordova/FileTransfer.java b/framework/src/org/apache/cordova/FileTransfer.java
index 61fa2843..b64bc501 100644
--- a/framework/src/org/apache/cordova/FileTransfer.java
+++ b/framework/src/org/apache/cordova/FileTransfer.java
@@ -1,577 +1,583 @@
/*
Licensed to the Apache So... | false | true | private PluginResult upload(String source, String target, JSONArray args) {
Log.d(LOG_TAG, "upload " + source + " to " + target);
HttpURLConnection conn = null;
try {
// Setup the options
String fileKey = getArgument(args, 2, "file");
String fileName = g... | private PluginResult upload(String source, String target, JSONArray args) {
Log.d(LOG_TAG, "upload " + source + " to " + target);
HttpURLConnection conn = null;
try {
// Setup the options
String fileKey = getArgument(args, 2, "file");
String fileName = g... |
diff --git a/src/main/java/org/basex/tests/w3c/QT3TS.java b/src/main/java/org/basex/tests/w3c/QT3TS.java
index 8e84f88a3..044d8a154 100644
--- a/src/main/java/org/basex/tests/w3c/QT3TS.java
+++ b/src/main/java/org/basex/tests/w3c/QT3TS.java
@@ -1,823 +1,823 @@
package org.basex.tests.w3c;
import static org.basex.co... | true | true | private void testCase(final XdmItem test, final ArrayList<QT3Env> envs)
throws Exception {
if(total++ % 500 == 0) Util.out(".");
if(!supported(test)) {
if(ignoring) ignore.add(asString("@name", test)).add(NL);
ignored++;
return;
}
// skip queries that do not match filter
... | private void testCase(final XdmItem test, final ArrayList<QT3Env> envs)
throws Exception {
if(total++ % 500 == 0) Util.out(".");
if(!supported(test)) {
if(ignoring) ignore.add(asString("@name", test)).add(NL);
ignored++;
return;
}
// skip queries that do not match filter
... |
diff --git a/melati/src/main/java/org/melati/MelatiServlet.java b/melati/src/main/java/org/melati/MelatiServlet.java
index f671ba7e0..455ee0f4a 100644
--- a/melati/src/main/java/org/melati/MelatiServlet.java
+++ b/melati/src/main/java/org/melati/MelatiServlet.java
@@ -1,506 +1,506 @@
/*
* $Source$
* $Revision$
*... | false | true | protected void doRequest(final WebContext contextIn)
throws ServletException, IOException {
try {
// Set up a POEM session and call the application code
final MelatiContext melatiContext = melatiContext(contextIn);
// dearie me, what a lot of hoops to jump through
// at the end of... | protected void doRequest(final WebContext contextIn)
throws ServletException, IOException {
try {
// Set up a POEM session and call the application code
final MelatiContext melatiContext = melatiContext(contextIn);
// dearie me, what a lot of hoops to jump through
// at the end of... |
diff --git a/src/life/display/DisplayCurse.java b/src/life/display/DisplayCurse.java
index 9b0f48c..533bc25 100644
--- a/src/life/display/DisplayCurse.java
+++ b/src/life/display/DisplayCurse.java
@@ -1,76 +1,82 @@
package life.display;
import java.util.Iterator;
import life.LIFE;
import life.cell.Cellule;
imp... | false | true | public void refresh() {
Iterator<Cellule> raw = data.raw();
Coord next = (raw.hasNext()) ? raw.next() : null;
// continuer tant que l'on est pas dans origin <> span
csi.cls();
boolean todo = true;
for (int y = 0, oy = origin.y(), yp = oy+span.y(); y < yp; ++y) {
for (int x = 0, ox = origin.x(), xp =ox+s... | public void refresh() {
System.out.println("data: "+data);
Iterator<Cellule> raw = data.raw();
int oy = origin.y(), sy = oy+span.y();
int ox = origin.x(), sx = ox+span.x();
Coord next;
do{
next = (raw.hasNext()) ? raw.next() : null;
}while(next != null && !next.isIn(ox, oy, sx, sy));
// continuer ta... |
diff --git a/src/ch/sbs/utils/preptools/vform/MarkupUtil.java b/src/ch/sbs/utils/preptools/vform/MarkupUtil.java
index a77a18f..3e80f0b 100644
--- a/src/ch/sbs/utils/preptools/vform/MarkupUtil.java
+++ b/src/ch/sbs/utils/preptools/vform/MarkupUtil.java
@@ -1,109 +1,109 @@
package ch.sbs.utils.preptools.vform;
impor... | true | true | public Match find(final String text, int start, final Pattern pattern) {
final Matcher m = pattern.matcher(text);
boolean inSkipRegion = true;
skipAlreadyMarkedUp.findRegionsToSkip(text);
literalSkipper.findRegionsToSkip(text);
while (inSkipRegion && m.find(start)) {
start++;
inSkipRegion = skipAlready... | public Match find(final String text, int start, final Pattern pattern) {
final Matcher m = pattern.matcher(text);
boolean inSkipRegion = true;
skipAlreadyMarkedUp.findRegionsToSkip(text);
literalSkipper.findRegionsToSkip(text);
while (inSkipRegion && m.find(start)) {
start = m.start() + 1;
inSkipRegion... |
diff --git a/src/MainFrame.java b/src/MainFrame.java
index 21cc972..4ae5eb4 100644
--- a/src/MainFrame.java
+++ b/src/MainFrame.java
@@ -1,390 +1,392 @@
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Frame;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionL... | false | true | public void actionPerformed(ActionEvent e) {
Object obj = e.getSource();
JFileChooser chooser = new JFileChooser();
if (obj.equals(Menu.sOpen)) {
// use chooser.getSelectedFile() to get file
// Some code here to parse or call a parser
if (chooser.showOpenDialog(frame) == JFileChooser.APPROVE_OPTION)
... | public void actionPerformed(ActionEvent e) {
Object obj = e.getSource();
JFileChooser chooser = new JFileChooser();
if (obj.equals(Menu.sOpen)) {
// use chooser.getSelectedFile() to get file
// Some code here to parse or call a parser
if (chooser.showOpenDialog(frame) == JFileChooser.APPROVE_OPTION)
... |
diff --git a/src/Main.java b/src/Main.java
index 067f3f4..9c2d1e1 100644
--- a/src/Main.java
+++ b/src/Main.java
@@ -1,362 +1,362 @@
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import j... | true | true | public static void main(String[] args) throws IOException {
Scanner in = new Scanner(System.in);
BufferedReader br = null;
String filepath;
int count = 0; //counter
int option; //Specifies the option that the user selects from the menu
String x; //general purpose variable for user input/loading
String c... | public static void main(String[] args) throws IOException {
Scanner in = new Scanner(System.in);
BufferedReader br = null;
String filepath;
int count = 0; //counter
int option; //Specifies the option that the user selects from the menu
String x; //general purpose variable for user input/loading
String c... |
diff --git a/x10.runtime/src-java/x10/core/ThrowableUtilities.java b/x10.runtime/src-java/x10/core/ThrowableUtilities.java
index a8c8e613e..f68f03745 100644
--- a/x10.runtime/src-java/x10/core/ThrowableUtilities.java
+++ b/x10.runtime/src-java/x10/core/ThrowableUtilities.java
@@ -1,146 +1,148 @@
/*
* This file is p... | true | true | static public x10.core.Throwable getCorrespondingX10Exception(java.lang.RuntimeException e) {
String newExcName = "x10.lang.RuntimeException";
if (e instanceof java.lang.ArithmeticException) {
newExcName = "x10.lang.ArithmeticException";
} else if (e instanceof java.lang.ArrayInd... | static public x10.core.Throwable getCorrespondingX10Exception(java.lang.RuntimeException e) {
String newExcName = "x10.lang.RuntimeException";
if (e instanceof java.lang.ArithmeticException) {
newExcName = "x10.lang.ArithmeticException";
} else if (e instanceof java.lang.ArrayInd... |
diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java
index 5deb3353..568a7e97 100644
--- a/src/com/android/browser/BaseUi.java
+++ b/src/com/android/browser/BaseUi.java
@@ -1,682 +1,682 @@
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache Lice... | true | true | private void attachTabToContentView(Tab tab) {
if (tab.getWebView() == null) {
return;
}
View container = tab.getViewContainer();
WebView mainView = tab.getWebView();
// Attach the WebView to the container and then attach the
// container to the content v... | private void attachTabToContentView(Tab tab) {
if ((tab == null) || (tab.getWebView() == null)) {
return;
}
View container = tab.getViewContainer();
WebView mainView = tab.getWebView();
// Attach the WebView to the container and then attach the
// contain... |
diff --git a/src/java/org/infoglue/cms/controllers/kernel/impl/simple/SiteNodeController.java b/src/java/org/infoglue/cms/controllers/kernel/impl/simple/SiteNodeController.java
index 82024b2a1..485abf23d 100755
--- a/src/java/org/infoglue/cms/controllers/kernel/impl/simple/SiteNodeController.java
+++ b/src/java/org/inf... | true | true | public List<SiteNodeVersionVO> getSiteNodeVersionVOList(int numberOfVersionsToKeep, boolean keepOnlyOldPublishedVersions, long minimumTimeBetweenVersionsDuringClean) throws SystemException
{
logger.info("numberOfVersionsToKeep:" + numberOfVersionsToKeep);
Database db = CastorDatabaseService.getDatabase();
... | public List<SiteNodeVersionVO> getSiteNodeVersionVOList(int numberOfVersionsToKeep, boolean keepOnlyOldPublishedVersions, long minimumTimeBetweenVersionsDuringClean) throws SystemException
{
logger.info("numberOfVersionsToKeep:" + numberOfVersionsToKeep);
Database db = CastorDatabaseService.getDatabase();
... |
diff --git a/src/main/java/actionHandlers/RuleChangeActionHandler.java b/src/main/java/actionHandlers/RuleChangeActionHandler.java
index 42e4781..e92184a 100644
--- a/src/main/java/actionHandlers/RuleChangeActionHandler.java
+++ b/src/main/java/actionHandlers/RuleChangeActionHandler.java
@@ -1,87 +1,87 @@
package acti... | true | true | public Input handle(Action action, UUID actor)
throws ActionHandlingException {
NomicService service = getNomicService();
RuleChangeType change = ((ProposeRuleChange)action).getRuleChangeType();
if (change == RuleChangeType.MODIFICATION) {
ProposeRuleModification ruleMod = (ProposeRuleModification... | public Input handle(Action action, UUID actor)
throws ActionHandlingException {
NomicService service = getNomicService();
RuleChangeType change = ((ProposeRuleChange)action).getRuleChangeType();
if (change == RuleChangeType.MODIFICATION) {
ProposeRuleModification ruleMod = (ProposeRuleModification... |
diff --git a/src/main/java/org/dynjs/runtime/builtins/URLCodec.java b/src/main/java/org/dynjs/runtime/builtins/URLCodec.java
index 9a848510..d0194d46 100644
--- a/src/main/java/org/dynjs/runtime/builtins/URLCodec.java
+++ b/src/main/java/org/dynjs/runtime/builtins/URLCodec.java
@@ -1,207 +1,207 @@
package org.dynjs.ru... | true | true | public static String decode(ExecutionContext context, String str, String reservedSet) {
int len = str.length();
StringBuilder r = new StringBuilder();
int k = 0;
while (true) {
String s = null;
if (k == len) {
return r.toString();
... | public static String decode(ExecutionContext context, String str, String reservedSet) {
int len = str.length();
StringBuilder r = new StringBuilder();
int k = 0;
while (true) {
String s = null;
if (k == len) {
return r.toString();
... |
diff --git a/src/main/java/tconstruct/weaponry/weapons/Crossbow.java b/src/main/java/tconstruct/weaponry/weapons/Crossbow.java
index 9588b8248..a9fdba4e0 100644
--- a/src/main/java/tconstruct/weaponry/weapons/Crossbow.java
+++ b/src/main/java/tconstruct/weaponry/weapons/Crossbow.java
@@ -1,461 +1,461 @@
package tconst... | true | true | public IIcon getIcon(ItemStack stack, int renderPass) {
if(!animateLayer(renderPass) && renderPass < getPartAmount())
return super.getIcon(stack, renderPass);
if(!stack.hasTagCompound())
return super.getIcon(stack, renderPass);
NBTTagCompound tags = stack.getTagComp... | public IIcon getIcon(ItemStack stack, int renderPass) {
if(!animateLayer(renderPass) && renderPass < getPartAmount())
return super.getIcon(stack, renderPass);
if(!stack.hasTagCompound())
return super.getIcon(stack, renderPass);
NBTTagCompound tags = stack.getTagComp... |
diff --git a/src-pos/com/openbravo/pos/printer/javapos/DevicePrinterJavaPOS.java b/src-pos/com/openbravo/pos/printer/javapos/DevicePrinterJavaPOS.java
index 9f09698..da77c9d 100644
--- a/src-pos/com/openbravo/pos/printer/javapos/DevicePrinterJavaPOS.java
+++ b/src-pos/com/openbravo/pos/printer/javapos/DevicePrinterJava... | true | true | public DevicePrinterJavaPOS(String sDevicePrinterName, String sDeviceDrawerName) throws TicketPrinterException {
m_sName = sDevicePrinterName;
m_printer = new POSPrinter();
m_drawer = new CashDrawer();
try {
m_printer.open(sDevicePrinterName);
... | public DevicePrinterJavaPOS(String sDevicePrinterName, String sDeviceDrawerName) throws TicketPrinterException {
m_sName = sDevicePrinterName;
m_printer = new POSPrinter();
m_drawer = new CashDrawer();
try {
m_printer.open(sDevicePrinterName);
... |
diff --git a/core/src/main/java/org/jclouds/concurrent/FutureFunctionCallable.java b/core/src/main/java/org/jclouds/concurrent/FutureFunctionCallable.java
index 0a306bbe7..1441e923b 100755
--- a/core/src/main/java/org/jclouds/concurrent/FutureFunctionCallable.java
+++ b/core/src/main/java/org/jclouds/concurrent/FutureF... | true | true | public T call() throws Exception {
try {
F input = future.get();
logger.debug("Processing intermediate result for: %s", input);
T result = function.apply(input);
logger.debug("Processed intermediate result for: %s", input);
return result;
} catch (ExecutionExc... | public T call() throws Exception {
try {
F input = future.get();
logger.debug("Processing intermediate result for: %s", input);
T result = function.apply(input);
logger.debug("Processed intermediate result for: %s", input);
return result;
} catch (ExecutionExc... |
diff --git a/gwtpplugin/src/com/gwtplatform/plugin/wizard/NewPresenterWizardPage.java b/gwtpplugin/src/com/gwtplatform/plugin/wizard/NewPresenterWizardPage.java
index b706181..3fc3cac 100644
--- a/gwtpplugin/src/com/gwtplatform/plugin/wizard/NewPresenterWizardPage.java
+++ b/gwtpplugin/src/com/gwtplatform/plugin/wizard... | false | true | private void createPlaceControls(Composite composite, int nColumns) {
Label label = new Label(composite, SWT.NULL);
label.setText("Place:");
GridData gd = new GridData(GridData.FILL);
gd.horizontalSpan = nColumns - 1;
GridLayout layout = new GridLayout();
layout.numColumns = 1;
layout.ve... | private void createPlaceControls(Composite composite, int nColumns) {
Label label = new Label(composite, SWT.NULL);
label.setText("Place:");
GridData gd = new GridData(GridData.FILL);
gd.horizontalSpan = nColumns - 1;
GridLayout layout = new GridLayout();
layout.numColumns = 1;
layout.ve... |
diff --git a/src/com/stretchcom/rskybox/ClientTest.java b/src/com/stretchcom/rskybox/ClientTest.java
index 869e758..8572cd6 100644
--- a/src/com/stretchcom/rskybox/ClientTest.java
+++ b/src/com/stretchcom/rskybox/ClientTest.java
@@ -1,2550 +1,2550 @@
package com.stretchcom.rskybox;
import java.io.BufferedReader;
i... | false | true | public static void main(String[] args) throws Exception {
totalAssertCount = 0;
passingAssertCount = 0;
failingAssertCount = 0;
isLoggingEnabled = true;
// =================================
// = Create a new set of test data =
// =============================... | public static void main(String[] args) throws Exception {
totalAssertCount = 0;
passingAssertCount = 0;
failingAssertCount = 0;
isLoggingEnabled = true;
// =================================
// = Create a new set of test data =
// =============================... |
diff --git a/server/Server.java b/server/Server.java
index edc5355..cab8f52 100644
--- a/server/Server.java
+++ b/server/Server.java
@@ -1,356 +1,356 @@
package server;
import game.Container;
import game.GameWorld;
import game.GameWorld.DeltaWatcher;
import game.things.EquipmentGameThing.Slot;
import game.Wor... | true | true | public void run() throws IOException {
//Main Class for server
GameWorld model = null;
int port = DEFAULT_PORT;
if(!CLI){
String choice;
Object[] possibilities = {"NewGame","BuiltinLoader","LoadGame"};
choice = (String)JOptionPane.showInputDialog(
null,
"... | public void run() throws IOException {
//Main Class for server
GameWorld model = null;
int port = DEFAULT_PORT;
if(!CLI){
String choice;
Object[] possibilities = {"NewGame","BuiltinLoader","LoadGame"};
choice = (String)JOptionPane.showInputDialog(
null,
"... |
diff --git a/HeightAndWidthInputPane.java b/HeightAndWidthInputPane.java
index 475f305..ba471fd 100644
--- a/HeightAndWidthInputPane.java
+++ b/HeightAndWidthInputPane.java
@@ -1,154 +1,154 @@
import javax.swing.*;
import java.awt.*;
/**
* This class will create a JOptionPane to prompt a user for a width and hei... | false | true | private void validateInput()
{
//Validate the width field
try
{
//Parse the width given by the user
int widthFieldVal = Integer.parseInt(widthField.getText());
//If the given value is valid, set it as the width
if (widthFieldVal < maxWidth && widthFieldVal > 0)
width = widthFieldVal;
//Ot... | private void validateInput()
{
//Validate the width field
try
{
//Parse the width given by the user
int widthFieldVal = Integer.parseInt(widthField.getText());
//If the given value is valid, set it as the width
if (widthFieldVal < maxWidth && widthFieldVal > 0)
width = widthFieldVal;
//Ot... |
diff --git a/app/Global.java b/app/Global.java
index 9d6eae7..b7c085b 100644
--- a/app/Global.java
+++ b/app/Global.java
@@ -1,168 +1,168 @@
/*
* Copyright (c) 2013 GigaSpaces Technologies Ltd. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file e... | true | true | public Result onError( Http.RequestHeader requestHeader, Throwable throwable )
{
logger.error( String.format( "experienced error {}", Utils.requestToString( requestHeader ) ), throwable );
// todo : maybe this should be a method implemented in the exception.
// I assume there is an eas... | public Result onError( Http.RequestHeader requestHeader, Throwable throwable )
{
logger.error( String.format( "experienced error {}", Utils.requestToString( requestHeader ) ), throwable );
// todo : maybe this should be a method implemented in the exception.
// I assume there is an eas... |
diff --git a/src/org/apache/xerces/dom/DOMNormalizer.java b/src/org/apache/xerces/dom/DOMNormalizer.java
index 5c9bd177..f6c68aef 100644
--- a/src/org/apache/xerces/dom/DOMNormalizer.java
+++ b/src/org/apache/xerces/dom/DOMNormalizer.java
@@ -1,1752 +1,1753 @@
/*
* The Apache Software License, Version 1.1
*
*
... | true | true | protected Node normalizeNode (Node node){
// REVISIT: should we support other DOM implementations?
// if so we should not depend on Xerces specific classes
int type = node.getNodeType();
switch (type) {
case Node.DOCUMENT_TYPE_NODE: {
if (DEBUG_ND) ... | protected Node normalizeNode (Node node){
// REVISIT: should we support other DOM implementations?
// if so we should not depend on Xerces specific classes
int type = node.getNodeType();
switch (type) {
case Node.DOCUMENT_TYPE_NODE: {
if (DEBUG_ND) ... |
diff --git a/clients/maven/src/main/java/de/matrixweb/smaller/clients/maven/SmallerMojo.java b/clients/maven/src/main/java/de/matrixweb/smaller/clients/maven/SmallerMojo.java
index 94ecec5..ed68d12 100644
--- a/clients/maven/src/main/java/de/matrixweb/smaller/clients/maven/SmallerMojo.java
+++ b/clients/maven/src/main/... | false | true | public void execute() throws MojoExecutionException, MojoFailureException {
try {
final Util util = new Util(new MavenLogger());
final File base = new File(this.files.getDirectory());
final FileSetManager fileSetManager = new FileSetManager();
final String[] includedFiles = fileSetManager... | public void execute() throws MojoExecutionException, MojoFailureException {
try {
final Util util = new Util(new MavenLogger());
final File base = new File(this.files.getDirectory());
final FileSetManager fileSetManager = new FileSetManager();
final String[] includedFiles = fileSetManager... |
diff --git a/src/edu/brown/cs32/atian/crassus/gui/tickerdialog/TickerDialog.java b/src/edu/brown/cs32/atian/crassus/gui/tickerdialog/TickerDialog.java
index 8ca146d..5e31652 100644
--- a/src/edu/brown/cs32/atian/crassus/gui/tickerdialog/TickerDialog.java
+++ b/src/edu/brown/cs32/atian/crassus/gui/tickerdialog/TickerDia... | true | true | public TickerDialog(JFrame frame, StockList stockList) {
super(frame, "Add Ticker");
this.setLayout(new BorderLayout());
text = new JTextField();
text.setMinimumSize(new Dimension(50, 15));
text.setBorder(BorderFactory.createCompoundBorder(
BorderFactory.cr... | public TickerDialog(JFrame frame, StockList stockList) {
super(frame, "Add Ticker");
this.setLayout(new BorderLayout());
text = new JTextField();
text.setMinimumSize(new Dimension(50, 15));
text.setBorder(BorderFactory.createCompoundBorder(
BorderFactory.cr... |
diff --git a/hazelcast/src/test/java/com/hazelcast/map/NearCacheTest.java b/hazelcast/src/test/java/com/hazelcast/map/NearCacheTest.java
index eeb01b61da..ab1f0c9e43 100644
--- a/hazelcast/src/test/java/com/hazelcast/map/NearCacheTest.java
+++ b/hazelcast/src/test/java/com/hazelcast/map/NearCacheTest.java
@@ -1,467 +1,... | true | true | public void testNearCacheEvictionByUsingMapTTLEviction() throws InterruptedException {
final int maxSizePerNode = 50;
final int instanceCount = 3;
final Config cfg = new Config();
final String mapName = "testNearCacheEvictionByUsingMapTTLEviction_" + randomString();
final Nea... | public void testNearCacheEvictionByUsingMapTTLEviction() throws InterruptedException {
final int maxSizePerNode = 50;
final int instanceCount = 3;
final Config cfg = new Config();
final String mapName = "_testNearCacheEvictionByUsingMapTTLEviction_";
final NearCacheConfig nea... |
diff --git a/src/main/java/hudson/remoting/ProxyInputStream.java b/src/main/java/hudson/remoting/ProxyInputStream.java
index 82071a35..c47861c7 100644
--- a/src/main/java/hudson/remoting/ProxyInputStream.java
+++ b/src/main/java/hudson/remoting/ProxyInputStream.java
@@ -1,158 +1,160 @@
/*
* The MIT License
*
* ... | true | true | public int read() throws IOException {
try {
Buffer buf = new Chunk(oid, 1).call(channel);
if(buf.len==1)
return buf.buf[0];
else
return -1;
} catch (InterruptedException e) {
// pretend EOF
Thread.currentThr... | public int read() throws IOException {
try {
Buffer buf = new Chunk(oid, 1).call(channel);
if(buf.len==1)
// byte->int expansion needs to be done carefully becaue byte in Java is signed
// whose idea was it to make byte signed, anyway!?
... |
diff --git a/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java b/src/contributions/resources/resource-creator/src/java/org/wyona/yanel/impl/resources/ResourceCreatorResource.java
index f0d1481f0..6d1f922fd 100644
--- a/src/contributions/resources/resource-... | true | true | private void getResourceScreen(StringBuffer sb) {
String rtps = getRequest().getParameter("resource-type");
String resNamespace = rtps.substring(0, rtps.indexOf("::"));
String resName = rtps.substring(rtps.indexOf("::") + 2);
ResourceTypeRegistry rtr = new ResourceTypeRegistry();
... | private void getResourceScreen(StringBuffer sb) {
String rtps = getRequest().getParameter("resource-type");
String resNamespace = rtps.substring(0, rtps.indexOf("::"));
String resName = rtps.substring(rtps.indexOf("::") + 2);
ResourceTypeRegistry rtr = new ResourceTypeRegistry();
... |
diff --git a/test/org/red5/io/mp4/MP4FrameTest.java b/test/org/red5/io/mp4/MP4FrameTest.java
index 34ee3e50..a9e449e9 100644
--- a/test/org/red5/io/mp4/MP4FrameTest.java
+++ b/test/org/red5/io/mp4/MP4FrameTest.java
@@ -1,81 +1,81 @@
package org.red5.io.mp4;
import java.util.ArrayList;
import java.util.Collections;... | false | true | public void testSort() {
log.debug("Test sort");
List<MP4Frame> frames = new ArrayList<MP4Frame>(6);
//create some frames
MP4Frame frame1 = new MP4Frame();
frame1.setTime(1);
frame1.setOffset(1);
frames.add(frame1);
MP4Frame frame2 = new MP4Frame();
frame2.setTime(6);
frame2.setOffset(6);
... | public void testSort() {
log.debug("Test sort");
List<MP4Frame> frames = new ArrayList<MP4Frame>(6);
//create some frames
MP4Frame frame1 = new MP4Frame();
frame1.setTime(1);
frame1.setOffset(1);
frames.add(frame1);
MP4Frame frame2 = new MP4Frame();
frame2.setTime(6);
frame2.setOffset(6);
... |
diff --git a/src/com/gildorymrp/gildorym/MetaEditorCommands.java b/src/com/gildorymrp/gildorym/MetaEditorCommands.java
index 759ba87..b42ebae 100644
--- a/src/com/gildorymrp/gildorym/MetaEditorCommands.java
+++ b/src/com/gildorymrp/gildorym/MetaEditorCommands.java
@@ -1,181 +1,190 @@
package com.gildorymrp.gildorym;
... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String label,
String[] args) {
// This plugin handles several commands
// renameitem: Changes the display name of an item
// setlore: Sets the lore text on an item, overwriting current lore
// addlore: Adds additional lore text to an item after cur... | public boolean onCommand(CommandSender sender, Command cmd, String label,
String[] args) {
// This plugin handles several commands
// renameitem: Changes the display name of an item
// setlore: Sets the lore text on an item, overwriting current lore
// addlore: Adds additional lore text to an item after cur... |
diff --git a/driver-core/src/main/java/com/datastax/driver/core/utils/querybuilder/Delete.java b/driver-core/src/main/java/com/datastax/driver/core/utils/querybuilder/Delete.java
index 6d492351b..35c023e09 100644
--- a/driver-core/src/main/java/com/datastax/driver/core/utils/querybuilder/Delete.java
+++ b/driver-core/s... | true | true | protected String buildQueryString() {
StringBuilder builder = new StringBuilder();
builder.append("DELETE ");
Utils.joinAndAppendNames(builder, ",", columnNames);
builder.append(" FROM ");
if (keyspace != null)
Utils.appendName(keyspace, builder).append(".");
... | protected String buildQueryString() {
StringBuilder builder = new StringBuilder();
builder.append("DELETE ");
Utils.joinAndAppendNames(builder, ",", columnNames);
builder.append(" FROM ");
if (keyspace != null)
Utils.appendName(keyspace, builder).append(".");
... |
diff --git a/spring-integration-jmx/src/test/java/org/springframework/integration/monitor/MessageSourceMonitoringIntegrationTests.java b/spring-integration-jmx/src/test/java/org/springframework/integration/monitor/MessageSourceMonitoringIntegrationTests.java
index 446caf2e85..d0d780bb16 100644
--- a/spring-integration-... | true | true | private void doTest(String config, String channelName, String monitor) throws Exception {
ClassPathXmlApplicationContext context = createContext(config, channelName);
try {
int before = service.getCounter();
channel.receive(1000L);
assertTrue(before < service.getCounter());
int count = exporter.get... | private void doTest(String config, String channelName, String monitor) throws Exception {
ClassPathXmlApplicationContext context = createContext(config, channelName);
try {
int before = service.getCounter();
channel.receive(1000L);
channel.receive(1000L);
assertTrue(before < service.getCounter());
... |
diff --git a/meldfs/src/warrenfalk/meldfs/MeldFs.java b/meldfs/src/warrenfalk/meldfs/MeldFs.java
index aea3c9c..0f0e733 100644
--- a/meldfs/src/warrenfalk/meldfs/MeldFs.java
+++ b/meldfs/src/warrenfalk/meldfs/MeldFs.java
@@ -1,214 +1,214 @@
package warrenfalk.meldfs;
import java.io.IOException;
import java.nio.fil... | true | true | protected void readdir(String path, DirBuffer dirBuffer, FileInfo fileInfo) throws FilesystemException {
FileHandle fh = FileHandle.get(fileInfo.getFileHandle());
String[] names;
if (fh.data instanceof String) {
final String dirpath = (String)fh.data;
final HashSet<String> items = new HashSet<String>();
... | protected void readdir(String path, DirBuffer dirBuffer, FileInfo fileInfo) throws FilesystemException {
FileHandle fh = FileHandle.get(fileInfo.getFileHandle());
String[] names;
if (fh.data instanceof String) {
final String dirpath = ((String)fh.data).substring(1);
final HashSet<String> items = new HashSe... |
diff --git a/openejb/container/openejb-core/src/test/java/org/apache/openejb/assembler/classic/DataSourceDefinitionPlaceHolderTest.java b/openejb/container/openejb-core/src/test/java/org/apache/openejb/assembler/classic/DataSourceDefinitionPlaceHolderTest.java
index 05ec85d48..324ee131e 100644
--- a/openejb/container/o... | true | true | private void check(final DataSource ds) throws NoSuchFieldException, IllegalAccessException {
assertNotNull(ds);
assertThat(ds, instanceOf(BasicDataSource.class));
final BasicDataSource bds = (BasicDataSource) ds;
assertEquals("sa", bds.getUsername());
assertEquals("", bds.g... | private void check(final DataSource ds) throws NoSuchFieldException, IllegalAccessException {
assertNotNull(ds);
assertThat(ds, instanceOf(BasicDataSource.class));
final BasicDataSource bds = (BasicDataSource) ds;
assertEquals("sa", bds.getUsername());
assertEquals("", bds.g... |
diff --git a/src/view/LoginGUI.java b/src/view/LoginGUI.java
index 02fe522..725572d 100644
--- a/src/view/LoginGUI.java
+++ b/src/view/LoginGUI.java
@@ -1,73 +1,73 @@
package view;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.A... | true | true | public LoginGUI()
{
setTitle("UA Student Jukebox Login");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setSize(300, 125);
this.setLocationRelativeTo(null);
nameField.setPreferredSize(new Dimension(150, 20));
passwordField.setPreferredSize(new Dimension(150, 20));
loginButton.setActionCommand(... | public LoginGUI()
{
setTitle("UA Student Jukebox Login");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setSize(300, 140);
this.setLocationRelativeTo(null);
nameField.setPreferredSize(new Dimension(150, 20));
passwordField.setPreferredSize(new Dimension(150, 20));
loginButton.setActionCommand(... |
diff --git a/xjc/facade/com/sun/tools/xjc/XJCTask.java b/xjc/facade/com/sun/tools/xjc/XJCTask.java
index c59e2e99..ca56f36b 100644
--- a/xjc/facade/com/sun/tools/xjc/XJCTask.java
+++ b/xjc/facade/com/sun/tools/xjc/XJCTask.java
@@ -1,124 +1,124 @@
package com.sun.tools.xjc;
import java.util.ArrayList;
import java.u... | true | true | public void execute() throws BuildException {
//Leave XJC2 in the publicly visible place
// and then isolate XJC1 in a child class loader,
// then use a MaskingClassLoader
// so that the XJC2 classes in the parent class loader
// won't interfere with loading XJC1 classes in ... | public void execute() throws BuildException {
//Leave XJC2 in the publicly visible place
// and then isolate XJC1 in a child class loader,
// then use a MaskingClassLoader
// so that the XJC2 classes in the parent class loader
// won't interfere with loading XJC1 classes in ... |
diff --git a/src/com/brif/nix/oauth2/OAuth2Authenticator.java b/src/com/brif/nix/oauth2/OAuth2Authenticator.java
index d626152..5b9035a 100644
--- a/src/com/brif/nix/oauth2/OAuth2Authenticator.java
+++ b/src/com/brif/nix/oauth2/OAuth2Authenticator.java
@@ -1,360 +1,360 @@
/**
* Brif
*/
package com.brif.nix.oau... | true | true | public static void main(String args[]) throws Exception {
// command-line handling
if (args.length == 0 || !isValidEmailAddress(args[0])) {
System.out.println("Usage: java -jar nix.jar <user's email>");
System.out.println("\t\tError loading user's email");
return;
}
String email = args[0];
// ini... | public static void main(String args[]) throws Exception {
// command-line handling
if (args.length == 0 || !isValidEmailAddress(args[0])) {
System.out.println("Usage: java -jar nix.jar <user's email>");
System.out.println("\t\tError loading user's email");
return;
}
String email = args[0];
// ini... |
diff --git a/src/game/TopDownDemo.java b/src/game/TopDownDemo.java
index ab0cc8b..5521301 100644
--- a/src/game/TopDownDemo.java
+++ b/src/game/TopDownDemo.java
@@ -1,293 +1,293 @@
package game;
import gameObjects.Enemy;
import gameObjects.Player;
import gameObjects.boss.Boss;
import gameObjects.boss.FireBossCol... | true | true | public void initResources() {
initialScreen = true;
bossLoaded = false;
myBarrierGroup = new SpriteGroup("barrier");
myPlayerGroup = new SpriteGroup("player");
myEnemyGroup = new SpriteGroup("enemy");
myProjectileGroup = new SpriteGroup("projectile");
myEnemyProjectileGroup = new SpriteGroup("enemy proj... | public void initResources() {
initialScreen = true;
bossLoaded = false;
myBarrierGroup = new SpriteGroup("barrier");
myPlayerGroup = new SpriteGroup("player");
myEnemyGroup = new SpriteGroup("enemy");
myProjectileGroup = new SpriteGroup("projectile");
myEnemyProjectileGroup = new SpriteGroup("enemy proj... |
diff --git a/src/de/ueller/gps/nmea/NmeaMessage.java b/src/de/ueller/gps/nmea/NmeaMessage.java
index 992117c..232620d 100644
--- a/src/de/ueller/gps/nmea/NmeaMessage.java
+++ b/src/de/ueller/gps/nmea/NmeaMessage.java
@@ -1,296 +1,296 @@
package de.ueller.gps.nmea;
/**
* Geographic Location in Lat/Lon
* field #: ... | true | true | public void decodeMessage(String nmea_sentence) {
Vector param = StringTokenizer.getVector(nmea_sentence, spChar);
String sentence=(String)param.elementAt(0);
try {
// receiver.receiveMessage("got "+buffer.toString() );
if (lastMsgGSV && ! "GSV".equals(sentence)){
receiver.receiveState... | public void decodeMessage(String nmea_sentence) {
Vector param = StringTokenizer.getVector(nmea_sentence, spChar);
String sentence=(String)param.elementAt(0);
try {
// receiver.receiveMessage("got "+buffer.toString() );
if (lastMsgGSV && ! "GSV".equals(sentence)){
receiver.receiveState... |
diff --git a/src/main/Tool.java b/src/main/Tool.java
index 1d7e22f..ea5127c 100644
--- a/src/main/Tool.java
+++ b/src/main/Tool.java
@@ -1,46 +1,46 @@
package main;
public class Tool {
private boolean isCheckedOut;
private String name;
private String UPC;
public Tool(String name, String UPC) {
isCheck... | true | true | public boolean equals(Object o) {
if (!(o instanceof Tool))
return false;
Tool obj = (Tool) o;
return (this.UPC == obj.getUPC());
}
| public boolean equals(Object o) {
if (!(o instanceof Tool))
return false;
Tool obj = (Tool) o;
return (this.UPC.equals(obj.getUPC()));
}
|
diff --git a/Project/src/projectrts/model/entities/abilities/AttackAbility.java b/Project/src/projectrts/model/entities/abilities/AttackAbility.java
index 4e2ceef..2d17cad 100644
--- a/Project/src/projectrts/model/entities/abilities/AttackAbility.java
+++ b/Project/src/projectrts/model/entities/abilities/AttackAbility.... | true | true | public void update(float tpf) {
updateCooldown(tpf);
if(isActive() && !isFinished()){
//attacker.getRange();
if(Position.getDistance(entity.getPosition(), target.getPosition())>1){
//Out of range
if(!moveAbility.isActive()){
moveAbility.useAbility(target.getPosition());
}
el... | public void update(float tpf) {
updateCooldown(tpf);
if(isActive() && !isFinished()){
//attacker.getRange();
// TODO Plankton: !!!Fix this...
if(Position.getDistance(entity.getPosition(), target.getPosition())>1.5){
//Out of range
if(!moveAbility.isActive()){
moveAbility.useAbili... |
diff --git a/src/edu/jhu/thrax/util/TestSetFilter.java b/src/edu/jhu/thrax/util/TestSetFilter.java
index d398896..ad7f61c 100644
--- a/src/edu/jhu/thrax/util/TestSetFilter.java
+++ b/src/edu/jhu/thrax/util/TestSetFilter.java
@@ -1,165 +1,165 @@
package edu.jhu.thrax.util;
import java.util.Scanner;
import java.util... | true | true | public static void main(String [] argv)
{
// do some setup
if (argv.length < 1) {
System.err.println("usage: TestSetFilter [-v] <test set1> [test set2 ...]");
return;
}
testSentences = new ArrayList<String>();
sentencesByWord = new HashMap<String,S... | public static void main(String [] argv)
{
// do some setup
if (argv.length < 1) {
System.err.println("usage: TestSetFilter [-v] <test set1> [test set2 ...]");
return;
}
testSentences = new ArrayList<String>();
sentencesByWord = new HashMap<String,S... |
diff --git a/src/main/src/org/compass/core/config/binding/scanner/ScannerFactoy.java b/src/main/src/org/compass/core/config/binding/scanner/ScannerFactoy.java
index 59ede18f..2d74aca7 100644
--- a/src/main/src/org/compass/core/config/binding/scanner/ScannerFactoy.java
+++ b/src/main/src/org/compass/core/config/binding/... | true | true | public static Scanner create(String basePackage, URL url, Filter filter) throws IOException {
String urlString = url.toString();
urlString = urlString.substring(0, urlString.lastIndexOf(basePackage));
if (urlString.endsWith("!/")) {
urlString = urlString.substring(4);
... | public static Scanner create(String basePackage, URL url, Filter filter) throws IOException {
String urlString = url.toString();
urlString = urlString.substring(0, urlString.lastIndexOf(basePackage));
if (urlString.endsWith("!/")) {
urlString = urlString.substring(4);
... |
diff --git a/test/java/src/TestClient.java b/test/java/src/TestClient.java
index bc76e83..b092197 100644
--- a/test/java/src/TestClient.java
+++ b/test/java/src/TestClient.java
@@ -1,412 +1,405 @@
package com.facebook.thrift.test;
// Generated code
import thrift.test.*;
import com.facebook.thrift.TApplicationEx... | false | true | public static void main(String [] args) {
try {
String host = "localhost";
int port = 9090;
String url = null;
int numTests = 1;
boolean framed = false;
boolean framedInput = true;
boolean framedOutput = true;
int socketTimeout = 1000;
try {
for (int... | public static void main(String [] args) {
try {
String host = "localhost";
int port = 9090;
String url = null;
int numTests = 1;
boolean framed = false;
int socketTimeout = 1000;
try {
for (int i = 0; i < args.length; ++i) {
if (args[i].equals("-h")) {... |
diff --git a/test/com/meterware/httpunit/cookies/CookieTest.java b/test/com/meterware/httpunit/cookies/CookieTest.java
index 2676a94..d581ee0 100644
--- a/test/com/meterware/httpunit/cookies/CookieTest.java
+++ b/test/com/meterware/httpunit/cookies/CookieTest.java
@@ -1,464 +1,465 @@
package com.meterware.httpunit.coo... | false | true | public void testCookieAge() throws Exception {
String ages[] = {"max-age=5000",
"Max-Age=3000",
"expires=Tue, 29-Mar-2005 19:30:42 GMT; Max-Age=2592000",
"Max-Age=2592000;expires=Tue, 29-Mar-2005 19:30:42 GMT",
... | public void testCookieAge() throws Exception {
String ages[] = {"max-age=5000",
"Max-Age=3000",
"expires=Tue, 29-Mar-2005 19:30:42 GMT; Max-Age=2592000",
"Max-Age=2592000;expires=Tue, 29-Mar-2005 19:30:42 GMT",
... |
diff --git a/src/com/aes/AESRandomKey.java b/src/com/aes/AESRandomKey.java
index d4db77a..e07ea59 100644
--- a/src/com/aes/AESRandomKey.java
+++ b/src/com/aes/AESRandomKey.java
@@ -1,136 +1,136 @@
package com.aes;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.i... | true | true | public void exportKey(String inputFilename) throws IOException{
FileInputStream in;
if (inputFilename == null) {
in = context.openFileInput(FILENAME);
}
else {
in = new FileInputStream(new File(inputFilename));
}
File QRDirectory = new File(Environment.getExternalStoragePublicDirectory(nul... | public void exportKey(String inputFilename) throws IOException{
FileInputStream in;
if (inputFilename == null) {
in = context.openFileInput(FILENAME);
}
else {
in = new FileInputStream(new File(inputFilename));
}
File QRDirectory = new File(Environment.getExternalStorageDirectory(), FILENA... |
diff --git a/src/Test/TestParserFile.java b/src/Test/TestParserFile.java
index fff23cb..aadb3e3 100644
--- a/src/Test/TestParserFile.java
+++ b/src/Test/TestParserFile.java
@@ -1,59 +1,59 @@
// Copyright (C) Billy Melicher 2012 wrm2ja@virginia.edu
package Test;
import java.io.File;
import java.io.FileOutputStream;
... | true | true | public static void main( String[] args ){
String[] files = parse_args(args);
for( String s : files ){
try {
File f = new File(s);
OptimizingParser v = OptimizingParser.fromFile( f );
v.parse();
/*if( DEBUG_LOCAL ){
v.context().collapseLocalVars( new TreeMap<String,BigInteger>(), 1 );
}
if( DE... | public static void main( String[] args ){
String[] files = parse_args(args);
for( String s : files ){
try {
File f = new File(s);
OptimizingParser v = OptimizingParser.fromFile( f );
v.parse();
/*if( DEBUG_LOCAL ){
v.context().collapseLocalVars( new TreeMap<String,BigInteger>(), 1 );
}
if( DE... |
diff --git a/DataExtractionOSM/src/net/osmand/data/index/ExtractGooglecodeAuthorization.java b/DataExtractionOSM/src/net/osmand/data/index/ExtractGooglecodeAuthorization.java
index cf614644..09299347 100644
--- a/DataExtractionOSM/src/net/osmand/data/index/ExtractGooglecodeAuthorization.java
+++ b/DataExtractionOSM/src... | true | true | public GooglecodeUploadTokens getGooglecodeTokensForUpload(String user, String password) throws IOException {
final MyCookieStore cookies = new MyCookieStore(
new java.net.CookieManager().getCookieStore());
CookieHandler.setDefault(new java.net.CookieManager(cookies, null));
//first try to delete file
Http... | public GooglecodeUploadTokens getGooglecodeTokensForUpload(String user, String password) throws IOException {
final MyCookieStore cookies = new MyCookieStore(
new java.net.CookieManager().getCookieStore());
CookieHandler.setDefault(new java.net.CookieManager(cookies, null));
//first try to delete file
Http... |
diff --git a/fe/src/main/java/com/cloudera/impala/analysis/FunctionCallExpr.java b/fe/src/main/java/com/cloudera/impala/analysis/FunctionCallExpr.java
index eb221268..ce1d40be 100644
--- a/fe/src/main/java/com/cloudera/impala/analysis/FunctionCallExpr.java
+++ b/fe/src/main/java/com/cloudera/impala/analysis/FunctionCal... | true | true | public void analyze(Analyzer analyzer) throws AnalysisException {
FunctionOperator op = OpcodeRegistry.instance().getFunctionOperator(functionName);
if (op == FunctionOperator.INVALID_OPERATOR) {
throw new AnalysisException(functionName + " unknown");
}
PrimitiveType[] argTypes = new PrimitiveT... | public void analyze(Analyzer analyzer) throws AnalysisException {
FunctionOperator op = OpcodeRegistry.instance().getFunctionOperator(functionName);
if (op == FunctionOperator.INVALID_OPERATOR) {
throw new AnalysisException(functionName + " unknown");
}
PrimitiveType[] argTypes = new PrimitiveT... |
diff --git a/src/com/joeykrim/pbekeytester/MainActivity.java b/src/com/joeykrim/pbekeytester/MainActivity.java
index 076cce8..dc822a8 100644
--- a/src/com/joeykrim/pbekeytester/MainActivity.java
+++ b/src/com/joeykrim/pbekeytester/MainActivity.java
@@ -1,91 +1,91 @@
package com.joeykrim.pbekeytester;
import android... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
String LOG_TAG = "TestIterations";
long targetIterationCount = 0L, targetIterationTime = 0L, previousIterationCount = 0L, previousIterationTime = 0L;
//set ... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
String LOG_TAG = "TestIterations";
long targetIterationCount = 0L, targetIterationTime = 0L, previousIterationCount = 0L, previousIterationTime = 0L;
//set ... |
diff --git a/src/main/java/com/in6k/mypal/dao/UserDao.java b/src/main/java/com/in6k/mypal/dao/UserDao.java
index b24ad10..da95728 100644
--- a/src/main/java/com/in6k/mypal/dao/UserDao.java
+++ b/src/main/java/com/in6k/mypal/dao/UserDao.java
@@ -1,102 +1,102 @@
package com.in6k.mypal.dao;
import com.in6k.mypal.domai... | true | true | public static double getBalance(User user) {
double result = 0;
Session session = HibernateUtil.getSessionFactory().openSession();
session.beginTransaction();
Query query = session.createSQLQuery("SELECT sum(sum), (SELECT sum(sum) FROM transactions WHERE debit_id=?) FROM transaction... | public static double getBalance(User user) {
double result;
Session session = HibernateUtil.getSessionFactory().openSession();
session.beginTransaction();
Query query = session.createSQLQuery("SELECT sum(sum), (SELECT sum(sum) FROM transactions WHERE debit_id=?) FROM transactions WH... |
diff --git a/srcj/com/sun/electric/tool/routing/InteractiveRouter.java b/srcj/com/sun/electric/tool/routing/InteractiveRouter.java
index 7d3cac524..71c50dfbf 100644
--- a/srcj/com/sun/electric/tool/routing/InteractiveRouter.java
+++ b/srcj/com/sun/electric/tool/routing/InteractiveRouter.java
@@ -1,881 +1,882 @@
/* -*-... | true | true | protected Route planRoute(Cell cell, ElectricObject startObj, ElectricObject endObj, Point2D clicked, PolyMerge stayInside) {
Route route = new Route(); // hold the route
if (cell == null) return route;
RouteElementPort startRE = null; // denote start of route
... | protected Route planRoute(Cell cell, ElectricObject startObj, ElectricObject endObj, Point2D clicked, PolyMerge stayInside) {
Route route = new Route(); // hold the route
if (cell == null) return route;
RouteElementPort startRE = null; // denote start of route
... |
diff --git a/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java b/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java
index 0b87ec3f7..489034759 100644
--- a/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java
+++ b/drools-analytics/src/test/java/org/drools/analyti... | true | true | public void testAnalyzer() throws Exception {
Analyzer anal = new Analyzer();
DrlParser p = new DrlParser();
InputStreamReader reader = new InputStreamReader(this.getClass().getResourceAsStream("Misc3.drl"));
PackageDescr pkg = p.parse(reader);
assertFalse(p.hasErrors());
anal.addPackageDescr(pkg);
ana... | public void fixmetestAnalyzer() throws Exception {
Analyzer anal = new Analyzer();
DrlParser p = new DrlParser();
InputStreamReader reader = new InputStreamReader(this.getClass().getResourceAsStream("Misc3.drl"));
PackageDescr pkg = p.parse(reader);
assertFalse(p.hasErrors());
anal.addPackageDescr(pkg);
... |
diff --git a/src/org/apache/xerces/impl/xs/XSModelGroupImpl.java b/src/org/apache/xerces/impl/xs/XSModelGroupImpl.java
index a86c4fdba..4c4709c0c 100644
--- a/src/org/apache/xerces/impl/xs/XSModelGroupImpl.java
+++ b/src/org/apache/xerces/impl/xs/XSModelGroupImpl.java
@@ -1,265 +1,265 @@
/*
* The Apache Software Lic... | true | true | public String toString() {
if (fDescription == null) {
StringBuffer buffer = new StringBuffer();
if (fCompositor == MODELGROUP_ALL)
buffer.append("all(");
else
buffer.append('(');
if (fParticles.length > 0)
buffe... | public String toString() {
if (fDescription == null) {
StringBuffer buffer = new StringBuffer();
if (fCompositor == MODELGROUP_ALL)
buffer.append("all(");
else
buffer.append('(');
if (fParticleCount > 0)
buffer.a... |
diff --git a/tiling/src/com/razh/tiling/json/MeshActorDeserializer.java b/tiling/src/com/razh/tiling/json/MeshActorDeserializer.java
index 5637274..d993b50 100644
--- a/tiling/src/com/razh/tiling/json/MeshActorDeserializer.java
+++ b/tiling/src/com/razh/tiling/json/MeshActorDeserializer.java
@@ -1,53 +1,53 @@
package ... | true | true | public MeshActor deserialize(JsonElement json, Type typeOfT,
JsonDeserializationContext context) throws JsonParseException {
JsonObject object = json.getAsJsonObject();
float x = object.get("x").getAsFloat();
float y = object.get("y").getAsFloat();
float width = object.get("width").getAsFloat();
float ... | public MeshActor deserialize(JsonElement json, Type typeOfT,
JsonDeserializationContext context) throws JsonParseException {
JsonObject object = json.getAsJsonObject();
float x = object.get("x").getAsFloat();
float y = object.get("y").getAsFloat();
float width = object.get("width").getAsFloat();
float ... |
diff --git a/bundles/org.eclipse.rap.design.example/src/org/eclipse/rap/internal/design/example/managers/ViewToolBarManager.java b/bundles/org.eclipse.rap.design.example/src/org/eclipse/rap/internal/design/example/managers/ViewToolBarManager.java
index 3318e2540..162bc017d 100644
--- a/bundles/org.eclipse.rap.design.ex... | true | true | public void update( boolean force ) {
if( isDirty() || force ) {
if( toolBarExist() ) {
// clean contains all active items without separators
IContributionItem[] items = getItems();
ArrayList clean = new ArrayList( items.length );
for( int i = 0; i < items.length; ++i ) {
... | public void update( boolean force ) {
if( isDirty() || force ) {
if( toolBarExist() ) {
// clean contains all active items without separators
IContributionItem[] items = getItems();
ArrayList clean = new ArrayList( items.length );
for( int i = 0; i < items.length; ++i ) {
... |
diff --git a/jgcf/src/main/java/com/jenjinstudios/message/ClientExecutableMessage.java b/jgcf/src/main/java/com/jenjinstudios/message/ClientExecutableMessage.java
index 1846d39e..69d11ac7 100644
--- a/jgcf/src/main/java/com/jenjinstudios/message/ClientExecutableMessage.java
+++ b/jgcf/src/main/java/com/jenjinstudios/me... | true | true | public static ExecutableMessage getClientExecutableMessageFor(Client client, Message message) {
ExecutableMessage r = null;
MessageType messageType = MessageRegistry.getMessageType(message.getID());
Class<? extends ExecutableMessage> execClass = messageType.clientExecutableMessageClass;
try // TODO Make sure... | public static ExecutableMessage getClientExecutableMessageFor(Client client, Message message) {
ExecutableMessage r = null;
MessageType messageType = MessageRegistry.getMessageType(message.getID());
Class<? extends ExecutableMessage> execClass = messageType.clientExecutableMessageClass;
try
{
Constructo... |
diff --git a/src/org/rascalmpl/interpreter/TypeReifier.java b/src/org/rascalmpl/interpreter/TypeReifier.java
index 06265e6e53..edec556635 100644
--- a/src/org/rascalmpl/interpreter/TypeReifier.java
+++ b/src/org/rascalmpl/interpreter/TypeReifier.java
@@ -1,382 +1,384 @@
package org.rascalmpl.interpreter;
import sta... | true | true | public Result<IValue> visitAbstractData(Type type) {
String name = type.getName();
Type adtDefinition = store.lookupAbstractDataType(name);
Map<Type,Type> bindings = bind(type);
Type staticType;
IValue result;
IValue stub;
staticType = tf.constructor(store, typeOfTypes.instantiate(bindings), "adt", tf... | public Result<IValue> visitAbstractData(Type type) {
String name = type.getName();
Type adtDefinition = store.lookupAbstractDataType(name);
Map<Type,Type> bindings = bind(type);
Type staticType;
IValue result;
IValue stub;
staticType = tf.constructor(store, typeOfTypes.instantiate(bindings), "adt", tf... |
diff --git a/valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/birt/HeapChart.java b/valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/birt/HeapChart.java
index 7ff769077..86d136fce 100644
--- a/valgrind/org.eclipse.linu... | true | true | public HeapChart(MassifSnapshot[] snapshots) {
TimeUnit timeUnit = snapshots[0].getUnit();
long xScaling = getXScaling(snapshots, timeUnit);
long yScaling = getYScaling(snapshots);
double[] time = new double[snapshots.length];
double[] dataUseful = new double[snapshots.length];
double[] dataExtra = new do... | public HeapChart(MassifSnapshot[] snapshots) {
TimeUnit timeUnit = snapshots[0].getUnit();
long xScaling = getXScaling(snapshots, timeUnit);
long yScaling = getYScaling(snapshots);
double[] time = new double[snapshots.length];
double[] dataUseful = new double[snapshots.length];
double[] dataExtra = new do... |
diff --git a/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/debug/AuditView.java b/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/debug/AuditView.java
index 0374ee46..65957eb1 100644
--- a/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/debug/AuditView... | false | true | protected List createEventList(List logEvents) {
Iterator iterator = logEvents.iterator();
List events = new ArrayList();
Event currentBeforeActivationEvent = null;
Event currentBeforePackageEvent = null;
List newActivations = new ArrayList();
Map activationMap = new HashMap();
Map objectMap = new Has... | protected List createEventList(List logEvents) {
Iterator iterator = logEvents.iterator();
List events = new ArrayList();
Event currentBeforeActivationEvent = null;
Event currentBeforePackageEvent = null;
List newActivations = new ArrayList();
Map activationMap = new HashMap();
Map objectMap = new Has... |
diff --git a/src/util/KawaWrap.java b/src/util/KawaWrap.java
index 66f35a8..2b7dd03 100644
--- a/src/util/KawaWrap.java
+++ b/src/util/KawaWrap.java
@@ -1,83 +1,84 @@
package util;
import globals.*;
import gnu.mapping.Environment;
import gnu.mapping.Named;
import gui.ErrorFrame;
import kawa.standard.Scheme;
... | true | true | public Object eval(String cmd) {
try {
cmd = cmd.replace('[', '(').replace(']', ')');
Object result = Scheme.eval(cmd, env);
// Return the final result.
if (result == null || result.toString().length() == 0)
return null;
else
return result;
} catch (StackOverflowError ex) {
return "Poss... | public Object eval(String cmd) {
try {
cmd = cmd.replace('[', '(').replace(']', ')');
Object result = Scheme.eval(cmd, env);
// Return the final result.
if (result == null || result.toString().length() == 0)
return null;
else
return result;
} catch (StackOverflowError ex) {
return "Poss... |
diff --git a/src/ru/spbau/bioinf/tagfinder/Configuration.java b/src/ru/spbau/bioinf/tagfinder/Configuration.java
index 536284f..0fc06f3 100644
--- a/src/ru/spbau/bioinf/tagfinder/Configuration.java
+++ b/src/ru/spbau/bioinf/tagfinder/Configuration.java
@@ -1,384 +1,386 @@
package ru.spbau.bioinf.tagfinder;
import r... | false | true | public Map<Integer, Scan> getScans() throws IOException {
Map<Integer, Scan> scans = new HashMap<Integer, Scan>();
File[] msalignFiles = inputDir.listFiles(new FilenameFilter() {
public boolean accept(File dir, String name) {
return name.endsWith(".msalign");
... | public Map<Integer, Scan> getScans() throws IOException {
Map<Integer, Scan> scans = new HashMap<Integer, Scan>();
if (mod == null) {
File[] msalignFiles = inputDir.listFiles(new FilenameFilter() {
public boolean accept(File dir, String name) {
retur... |
diff --git a/atlassian-plugins-test-resources/atlassian-plugins-test/src/test/java/com/atlassian/plugin/test/PluginBuilderTest.java b/atlassian-plugins-test-resources/atlassian-plugins-test/src/test/java/com/atlassian/plugin/test/PluginBuilderTest.java
index a68eb728..10564047 100644
--- a/atlassian-plugins-test-resour... | true | true | public void testBuild() throws Exception {
File jar = new PluginBuilder("foo")
.addJava("my.Foo", "package my; public class Foo { public String hi() {return \"hi\";}}")
.addResource("foo.txt", "Some text")
.addPluginInformation("someKey", "someName", "1.33")
... | public void testBuild() throws Exception {
File jar = new PluginBuilder("foo")
.addJava("my.Foo", "package my; public class Foo { public String hi() {return \"hi\";}}")
.addResource("foo.txt", "Some text")
.addPluginInformation("someKey", "someName", "1.33")
... |
diff --git a/test-modules/functional-tests/src/test/java/org/openlmis/functional/InitiateRnR.java b/test-modules/functional-tests/src/test/java/org/openlmis/functional/InitiateRnR.java
index 4a5b18508e..4aa5c1634b 100644
--- a/test-modules/functional-tests/src/test/java/org/openlmis/functional/InitiateRnR.java
+++ b/te... | true | true | public void testRnRWithActiveAndInactiveRegimen(String program, String userSIC, String categoryCode, String password, String regimenCode, String regimenName, String regimenCode2, String regimenName2) throws Exception {
dbWrapper.setupMultipleProducts(program, "Lvl3 Hospital", 2, false);
dbWrapper.insertFacili... | public void testRnRWithActiveAndInactiveRegimen(String program, String userSIC, String categoryCode, String password, String regimenCode, String regimenName, String regimenCode2, String regimenName2) throws Exception {
dbWrapper.setupMultipleProducts(program, "Lvl3 Hospital", 2, false);
dbWrapper.insertFacili... |
diff --git a/src/com/compoundtheory/intellij/tmux/actions/SendCurrentLineAction.java b/src/com/compoundtheory/intellij/tmux/actions/SendCurrentLineAction.java
index 03b4224..addaa06 100644
--- a/src/com/compoundtheory/intellij/tmux/actions/SendCurrentLineAction.java
+++ b/src/com/compoundtheory/intellij/tmux/actions/Se... | true | true | public void actionPerformed(AnActionEvent e)
{
//thanks La Clojure - https://github.com/JetBrains/la-clojure/blob/clojure-idea-11/src/org/jetbrains/plugins/clojure/repl/actions/RunSelectedTextAction.java
Editor editor = e.getData(DataKeys.EDITOR);
if(editor == null)
{
return;
}
CaretModel caretModel ... | public void actionPerformed(AnActionEvent e)
{
//thanks La Clojure - https://github.com/JetBrains/la-clojure/blob/clojure-idea-11/src/org/jetbrains/plugins/clojure/repl/actions/RunSelectedTextAction.java
Editor editor = e.getData(DataKeys.EDITOR);
if(editor == null)
{
return;
}
CaretModel caretModel ... |
diff --git a/dspace-api/src/main/java/org/dspace/content/crosswalk/XHTMLHeadDisseminationCrosswalk.java b/dspace-api/src/main/java/org/dspace/content/crosswalk/XHTMLHeadDisseminationCrosswalk.java
index 94817c35d..624f27d98 100644
--- a/dspace-api/src/main/java/org/dspace/content/crosswalk/XHTMLHeadDisseminationCrosswa... | true | true | public List disseminateList(DSpaceObject dso) throws CrosswalkException,
IOException, SQLException, AuthorizeException
{
if (dso.getType() != Constants.ITEM)
{
throw new CrosswalkObjectNotSupported(
"Can only support items; object passed in with DB ID ... | public List disseminateList(DSpaceObject dso) throws CrosswalkException,
IOException, SQLException, AuthorizeException
{
if (dso.getType() != Constants.ITEM)
{
throw new CrosswalkObjectNotSupported(
"Can only support items; object passed in with DB ID ... |
diff --git a/core/src/visad/trunk/java3d/UniverseBuilderJ3D.java b/core/src/visad/trunk/java3d/UniverseBuilderJ3D.java
index 6eade9f99..f776bf856 100644
--- a/core/src/visad/trunk/java3d/UniverseBuilderJ3D.java
+++ b/core/src/visad/trunk/java3d/UniverseBuilderJ3D.java
@@ -1,77 +1,77 @@
//
// UniverseBuilderJ3D.java... | true | true | public UniverseBuilderJ3D(Canvas3D c) {
this.canvas = c;
// Establish a virtual universe, with a single hi-res Locale
universe = new VirtualUniverse();
locale = new Locale(universe);
// Create a PhysicalBody and Physical Environment object
PhysicalBody body = new Ph... | public UniverseBuilderJ3D(Canvas3D c) {
this.canvas = c;
// Establish a virtual universe, with a single hi-res Locale
universe = new VirtualUniverse();
locale = new Locale(universe);
// Create a PhysicalBody and Physical Environment object
PhysicalBody body = new Ph... |
diff --git a/tools/cooja/java/se/sics/cooja/GUI.java b/tools/cooja/java/se/sics/cooja/GUI.java
index a0e7a7826..12c0d4bab 100644
--- a/tools/cooja/java/se/sics/cooja/GUI.java
+++ b/tools/cooja/java/se/sics/cooja/GUI.java
@@ -1,4691 +1,4687 @@
/*
* Copyright (c) 2006, Swedish Institute of Computer Science. All rights... | true | true | private boolean warnMemory() {
long max = Runtime.getRuntime().maxMemory();
long used = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();
double memRatio = (double) used / (double) max;
if (memRatio < 0.8) {
return false;
}
DecimalFormat format = new DecimalFormat... | private boolean warnMemory() {
long max = Runtime.getRuntime().maxMemory();
long used = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();
double memRatio = (double) used / (double) max;
if (memRatio < 0.8) {
return false;
}
DecimalFormat format = new DecimalFormat... |
diff --git a/src/main/java/com/lenis0012/bukkit/ls/commands/LoginCommand.java b/src/main/java/com/lenis0012/bukkit/ls/commands/LoginCommand.java
index ae077e6..7932a0b 100644
--- a/src/main/java/com/lenis0012/bukkit/ls/commands/LoginCommand.java
+++ b/src/main/java/com/lenis0012/bukkit/ls/commands/LoginCommand.java
@@ ... | true | true | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
LoginSecurity plugin = LoginSecurity.instance;
if(!(sender instanceof Player)) {
sender.sendMessage("You must be a player");
return true;
}
Player player = (Player)sender;
String name = player.getName().toLowe... | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
LoginSecurity plugin = LoginSecurity.instance;
if(!(sender instanceof Player)) {
sender.sendMessage("You must be a player");
return true;
}
Player player = (Player)sender;
String name = player.getName().toLowe... |
diff --git a/bundles/org.eclipse.core.runtime.compatibility.auth/src/org/eclipse/core/internal/runtime/auth/AuthorizationHandler.java b/bundles/org.eclipse.core.runtime.compatibility.auth/src/org/eclipse/core/internal/runtime/auth/AuthorizationHandler.java
index 557ddb847..a49a32581 100644
--- a/bundles/org.eclipse.cor... | false | true | private static void loadKeyring() throws CoreException {
if (keyring != null && new File(keyringFile).lastModified() == keyringTimeStamp)
return;
if (keyringFile == null) {
ServiceReference[] refs = null;
try {
refs = Activator.getContext().getServiceReferences(Location.class.getName(), Location.CONFI... | private static void loadKeyring() throws CoreException {
if (keyring != null && new File(keyringFile).lastModified() == keyringTimeStamp)
return;
if (keyringFile == null) {
ServiceReference[] refs = null;
try {
refs = Activator.getContext().getServiceReferences(Location.class.getName(), Location.CONFI... |
diff --git a/RobotSkinExact/src/rs/NodeILPSolver.java b/RobotSkinExact/src/rs/NodeILPSolver.java
index c76507a..d3c095c 100644
--- a/RobotSkinExact/src/rs/NodeILPSolver.java
+++ b/RobotSkinExact/src/rs/NodeILPSolver.java
@@ -1,232 +1,236 @@
package rs;
import java.util.ArrayList;
import java.util.LinkedList;
impo... | false | true | public double solve(Instance ins,Solution sol, int timeout) throws IloException{
IloCplex solver=new IloCplex();
BiIndexedIntVarMap x=new BiIndexedIntVarMap(solver, 0, 1, "x"); //(l,v) (cluster,node)
IndexedNumVarMap dp=new IndexedNumVarMap(solver, 0, Double.MAX_VALUE, "dp"); //(l) (cluster)
IndexedN... | public double solve(Instance ins,Solution sol, int timeout) throws IloException{
IloCplex solver=new IloCplex();
BiIndexedIntVarMap x=new BiIndexedIntVarMap(solver, 0, 1, "x"); //(l,v) (cluster,node)
IndexedNumVarMap dp=new IndexedNumVarMap(solver, 0, Double.MAX_VALUE, "dp"); //(l) (cluster)
IndexedN... |
diff --git a/jboss-seam/src/main/java/org/jboss/seam/transaction/Transaction.java b/jboss-seam/src/main/java/org/jboss/seam/transaction/Transaction.java
index 1ea947f..4eb233e 100644
--- a/jboss-seam/src/main/java/org/jboss/seam/transaction/Transaction.java
+++ b/jboss-seam/src/main/java/org/jboss/seam/transaction/Tran... | true | true | protected javax.transaction.UserTransaction getUserTransaction() throws NamingException
{
InitialContext context = Naming.getInitialContext();
try
{
return (javax.transaction.UserTransaction) context.lookup("java:comp/UserTransaction");
}
catch (NameNotFoundException nnfe)
... | protected javax.transaction.UserTransaction getUserTransaction() throws NamingException
{
InitialContext context = Naming.getInitialContext();
try
{
return (javax.transaction.UserTransaction) context.lookup("java:comp/UserTransaction");
}
catch (NameNotFoundException nnfe)
... |
diff --git a/src/main/java/org/dynmap/flat/FlatMap.java b/src/main/java/org/dynmap/flat/FlatMap.java
index 8dfb777a..e6092538 100644
--- a/src/main/java/org/dynmap/flat/FlatMap.java
+++ b/src/main/java/org/dynmap/flat/FlatMap.java
@@ -1,298 +1,303 @@
package org.dynmap.flat;
import static org.dynmap.JSONUtils.a;
i... | false | true | public boolean render(MapChunkCache cache, MapTile tile, File outputFile) {
FlatMapTile t = (FlatMapTile) tile;
World w = t.getWorld();
boolean isnether = (w.getEnvironment() == Environment.NETHER) && (maximumHeight == 127);
boolean rendered = false;
Color rslt = new Color()... | public boolean render(MapChunkCache cache, MapTile tile, File outputFile) {
FlatMapTile t = (FlatMapTile) tile;
World w = t.getWorld();
boolean isnether = (w.getEnvironment() == Environment.NETHER) && (maximumHeight == 127);
boolean rendered = false;
Color rslt = new Color()... |
diff --git a/src/main/java/agaricus/plugins/IncompatiblePlugin/SamplePlugin.java b/src/main/java/agaricus/plugins/IncompatiblePlugin/SamplePlugin.java
index 5d4c0d9..05524e9 100644
--- a/src/main/java/agaricus/plugins/IncompatiblePlugin/SamplePlugin.java
+++ b/src/main/java/agaricus/plugins/IncompatiblePlugin/SamplePlu... | true | true | public void onEnable() {
// TODO: Place any custom enable code here including the registration of any events
System.out.println("IncompatiblePlugin");
// from sqlite NestedDB.java:63 _open https://github.com/MinecraftPortCentral/MCPC-Plus/issues/218
System.out.println("forName SQLi... | public void onEnable() {
// TODO: Place any custom enable code here including the registration of any events
System.out.println("IncompatiblePlugin");
// from sqlite NestedDB.java:63 _open https://github.com/MinecraftPortCentral/MCPC-Plus/issues/218
System.out.println("forName SQLi... |
diff --git a/src/com/jidesoft/swing/StyledLabelBuilder.java b/src/com/jidesoft/swing/StyledLabelBuilder.java
index 0b7df2c0..b58733f8 100644
--- a/src/com/jidesoft/swing/StyledLabelBuilder.java
+++ b/src/com/jidesoft/swing/StyledLabelBuilder.java
@@ -1,726 +1,726 @@
/*
* @(#)StyledLabelBuilder.java 9/7/2011
*
* ... | true | true | private static ParsedStyleResult parseStyleAnnotation(char[] text, int findIndex, StyledLabelBuilder builder, ParsedStyleResult result) {
int i = findIndex;
char[] importantChars = {',', '}'};
boolean endOfTag = false;
while (i < text.length && !endOfTag) {
findIndex = fi... | private static ParsedStyleResult parseStyleAnnotation(char[] text, int findIndex, StyledLabelBuilder builder, ParsedStyleResult result) {
int i = findIndex;
char[] importantChars = {',', '}'};
boolean endOfTag = false;
while (i < text.length && !endOfTag) {
findIndex = fi... |
diff --git a/modules/activiti-rest/src/main/java/org/activiti/rest/service/api/runtime/process/BaseProcessInstanceResource.java b/modules/activiti-rest/src/main/java/org/activiti/rest/service/api/runtime/process/BaseProcessInstanceResource.java
index c25765a72..5c897ad93 100644
--- a/modules/activiti-rest/src/main/java... | false | true | protected void addVariables(ProcessInstanceQuery processInstanceQuery, List<QueryVariable> variables) {
RestResponseFactory responseFactory = getApplication(ActivitiRestServicesApplication.class).getRestResponseFactory();
for (QueryVariable variable : variables) {
if (variable.getVariableOperation(... | protected void addVariables(ProcessInstanceQuery processInstanceQuery, List<QueryVariable> variables) {
RestResponseFactory responseFactory = getApplication(ActivitiRestServicesApplication.class).getRestResponseFactory();
for (QueryVariable variable : variables) {
if (variable.getVariableOperation(... |
diff --git a/src/com/skplanet/rakeflurry/collector/Alerter.java b/src/com/skplanet/rakeflurry/collector/Alerter.java
index 0d3b179..ee64b69 100644
--- a/src/com/skplanet/rakeflurry/collector/Alerter.java
+++ b/src/com/skplanet/rakeflurry/collector/Alerter.java
@@ -1,146 +1,146 @@
package com.skplanet.rakeflurry.collec... | true | true | public void finishCollectApiService(DashBoard dashboard) throws Exception {
try {
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
Date start = dateFormat.parse(dashboard.getStartTime());
Date end = dateFormat.parse(dashbo... | public void finishCollectApiService(DashBoard dashboard) throws Exception {
try {
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
Date start = dateFormat.parse(dashboard.getStartTime());
Date end = dateFormat.parse(dashbo... |
diff --git a/src/simulanator/Simulator.java b/src/simulanator/Simulator.java
index e2188d1..d1fe232 100644
--- a/src/simulanator/Simulator.java
+++ b/src/simulanator/Simulator.java
@@ -1,237 +1,237 @@
package simulanator;
import static assemblernator.ErrorReporting.makeError;
import guinator.GUIUtil;
import jav... | true | true | public static void load(InputStream loaderFile, ErrorHandler hErr,
HTMLOutputStream os, Machine machine) {
int loadAddr;
int execStart;
int progLen;
int asmVer;
try {
Scanner s = new Scanner(loaderFile);
String crcStr;
String progName;
String userReportLine = "";
String element;
ScanWra... | public static void load(InputStream loaderFile, ErrorHandler hErr,
HTMLOutputStream os, Machine machine) {
int loadAddr;
int execStart;
int progLen;
int asmVer;
try {
Scanner s = new Scanner(loaderFile);
String crcStr;
String progName;
String userReportLine = "";
String element;
ScanWra... |
diff --git a/02_RunningKey/src/task2/RunningKey.java b/02_RunningKey/src/task2/RunningKey.java
index 268b05e..c6ed0ae 100644
--- a/02_RunningKey/src/task2/RunningKey.java
+++ b/02_RunningKey/src/task2/RunningKey.java
@@ -1,452 +1,452 @@
/*
* jCrypt - Programmierumgebung für das Kryptologie-Praktikum
* Studienarbei... | false | true | public void breakCipher(BufferedReader inbuf, BufferedWriter outbuf) {
try {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String ciphertext;
{ // read ciphertext into a string
String tmp;
StringBuilder tmp2 = new StringBuilder();
while ((tmp = inbuf.readLin... | public void breakCipher(BufferedReader inbuf, BufferedWriter outbuf) {
try {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String ciphertext;
{ // read ciphertext into a string
String tmp;
StringBuilder tmp2 = new StringBuilder();
while ((tmp = inbuf.readLin... |
diff --git a/src/main/java/com/github/kpacha/jkata/fizzBuzz/FizzBuzz.java b/src/main/java/com/github/kpacha/jkata/fizzBuzz/FizzBuzz.java
index 405a5a2..15fc3a2 100644
--- a/src/main/java/com/github/kpacha/jkata/fizzBuzz/FizzBuzz.java
+++ b/src/main/java/com/github/kpacha/jkata/fizzBuzz/FizzBuzz.java
@@ -1,16 +1,16 @@
... | true | true | public static Object generate(int total) {
Object answer = null;
if (total == 3) {
answer = "Fizz";
} else if (total == 5) {
answer = "Buzz";
} else {
answer = total;
}
return answer;
}
| public static Object generate(int total) {
Object answer = null;
if (total % 3 == 0) {
answer = "Fizz";
} else if (total == 5) {
answer = "Buzz";
} else {
answer = total;
}
return answer;
}
|
diff --git a/src/main/java/edu/rit/asksg/service/ConversationServiceImpl.java b/src/main/java/edu/rit/asksg/service/ConversationServiceImpl.java
index b82fe56..db42966 100755
--- a/src/main/java/edu/rit/asksg/service/ConversationServiceImpl.java
+++ b/src/main/java/edu/rit/asksg/service/ConversationServiceImpl.java
@@ ... | true | true | public List<Conversation> findAllConversations(
final Optional<Integer> since,
final Optional<Integer> until,
final Long[] excludeServices,
final String[] includeTags,
final Optional<Boolean> showRead,
final int count) {
Specification<Conversation> specification = new Specification<Conversation>(... | public List<Conversation> findAllConversations(
final Optional<Integer> since,
final Optional<Integer> until,
final Long[] excludeServices,
final String[] includeTags,
final Optional<Boolean> showRead,
final int count) {
Specification<Conversation> specification = new Specification<Conversation>(... |
diff --git a/ant/org.eclipse.ant.core/src_ant/org/eclipse/ant/internal/core/ant/InternalProject.java b/ant/org.eclipse.ant.core/src_ant/org/eclipse/ant/internal/core/ant/InternalProject.java
index 4018aa296..9fb0ac80f 100644
--- a/ant/org.eclipse.ant.core/src_ant/org/eclipse/ant/internal/core/ant/InternalProject.java
+... | false | true | public Object createDataType(String typeName) throws BuildException {
if (typeNameToClass == null) {
initializeTypes();
}
Class typeClass = (Class) typeNameToClass.get(typeName);
if (typeClass == null) {
return null;
}
try {
Constructor ctor = null;
boolean noArg = false;
// DataType can h... | public Object createDataType(String typeName) throws BuildException {
if (typeNameToClass == null) {
initializeTypes();
}
Class typeClass = (Class) typeNameToClass.get(typeName);
if (typeClass == null) {
return null;
}
Throwable thrown = null;
try {
Constructor ctor = null;
boolean noArg = ... |
diff --git a/modules/dCache/diskCacheV111/doors/GssFtpDoorV1.java b/modules/dCache/diskCacheV111/doors/GssFtpDoorV1.java
index e5e3b282b8..8d6d42faeb 100755
--- a/modules/dCache/diskCacheV111/doors/GssFtpDoorV1.java
+++ b/modules/dCache/diskCacheV111/doors/GssFtpDoorV1.java
@@ -1,381 +1,383 @@
/*
* GssFtpDoorV1.java... | false | true | public void ac_user(String arg) {
KAuthFile authf;
_pwdRecord = null;
authRecord = null;
_user = null;
info("GssFtpDoorV1::ac_user <" + arg + ">");
if (arg.equals("")) {
reply(err("USER",arg));
return;
}
if (_serviceContext =... | public void ac_user(String arg) {
KAuthFile authf;
_pwdRecord = null;
authRecord = null;
_user = null;
info("GssFtpDoorV1::ac_user <" + arg + ">");
if (arg.equals("")) {
reply(err("USER",arg));
return;
}
if (_serviceContext =... |
diff --git a/src/com/fsck/k9/activity/MessageCompose.java b/src/com/fsck/k9/activity/MessageCompose.java
index c85f98a1..19f94e0c 100644
--- a/src/com/fsck/k9/activity/MessageCompose.java
+++ b/src/com/fsck/k9/activity/MessageCompose.java
@@ -1,3312 +1,3313 @@
package com.fsck.k9.activity;
import java.io.File;
i... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.message_compose);
final Intent intent = getIntent();
mMessageReference = intent.getParcelableExtra(EXTR... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTheme(K9.getK9ThemeResourceId(K9.THEME_LIGHT));
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.message_compose);
final Intent intent = getIntent();
... |
diff --git a/src/org/antlr/works/editor/EditorMenu.java b/src/org/antlr/works/editor/EditorMenu.java
index 933a1e3..fdff92a 100644
--- a/src/org/antlr/works/editor/EditorMenu.java
+++ b/src/org/antlr/works/editor/EditorMenu.java
@@ -1,804 +1,811 @@
/*
[The "BSD licence"]
Copyright (c) 2005 Jean Bovet
All rights r... | false | true | public void menuItemState(XJMenuItem item) {
EditorTab tab = editor.getSelectedTab();
switch(item.getTag()) {
case XJMainMenuBar.MI_UNDO:
case XJMainMenuBar.MI_REDO:
if(isDebuggerRunning())
item.setEnabled(false);
break;
... | public void menuItemState(final XJMenuItem item) {
EditorTab tab = editor.getSelectedTab();
switch(item.getTag()) {
case XJMainMenuBar.MI_UNDO:
case XJMainMenuBar.MI_REDO:
if(isDebuggerRunning()) {
// FIX AW-79
// Note:... |
diff --git a/src/com/mcnsa/instanceportals/containers/Instance.java b/src/com/mcnsa/instanceportals/containers/Instance.java
index f3e3d05..788610d 100644
--- a/src/com/mcnsa/instanceportals/containers/Instance.java
+++ b/src/com/mcnsa/instanceportals/containers/Instance.java
@@ -1,178 +1,178 @@
package com.mcnsa.inst... | false | true | private void resetRegion() {
// reset levers
//parent.plugin.debug("resetting instance..");
boolean resetPulse = false;
for(int x = container.min.getBlockX(); x <= container.max.getBlockX(); x++) {
for(int y = container.min.getBlockY(); y <= container.max.getBlockY(); y++) {
for(int z = container.min.ge... | private void resetRegion() {
// reset levers
//parent.plugin.debug("resetting instance..");
boolean resetPulse = false;
for(int x = container.min.getBlockX(); x <= container.max.getBlockX(); x++) {
for(int y = container.min.getBlockY(); y <= container.max.getBlockY(); y++) {
for(int z = container.min.ge... |
diff --git a/src/com/android/packageinstaller/PackageInstallerActivity.java b/src/com/android/packageinstaller/PackageInstallerActivity.java
index d3b2a947..8771a3ec 100644
--- a/src/com/android/packageinstaller/PackageInstallerActivity.java
+++ b/src/com/android/packageinstaller/PackageInstallerActivity.java
@@ -1,608... | false | true | private void startInstallConfirm() {
TabHost tabHost = (TabHost)findViewById(android.R.id.tabhost);
tabHost.setup();
ViewPager viewPager = (ViewPager)findViewById(R.id.pager);
TabsAdapter adapter = new TabsAdapter(this, tabHost, viewPager);
boolean permVisible = false;
... | private void startInstallConfirm() {
TabHost tabHost = (TabHost)findViewById(android.R.id.tabhost);
tabHost.setup();
ViewPager viewPager = (ViewPager)findViewById(R.id.pager);
TabsAdapter adapter = new TabsAdapter(this, tabHost, viewPager);
boolean permVisible = false;
... |
diff --git a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/BpmnActivityBehavior.java b/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/BpmnActivityBehavior.java
index 3d9d156d..81f4a111 100644
--- a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/BpmnActivit... | false | true | protected void performOutgoingBehavior(ActivityExecution execution, boolean checkConditions) {
if (log.isLoggable(Level.FINE)) {
log.fine("Leaving activity '" + execution.getActivity().getId() + "'");
}
List<PvmTransition> transitionsToTake = new ArrayList<PvmTransition>();
List... | protected void performOutgoingBehavior(ActivityExecution execution, boolean checkConditions) {
if (log.isLoggable(Level.FINE)) {
log.fine("Leaving activity '" + execution.getActivity().getId() + "'");
}
List<PvmTransition> transitionsToTake = new ArrayList<PvmTransition>();
List... |
diff --git a/uk.ac.diamond.scisoft.analysis.rcp/src/uk/ac/diamond/scisoft/analysis/rcp/plotting/Plotting1DUI.java b/uk.ac.diamond.scisoft.analysis.rcp/src/uk/ac/diamond/scisoft/analysis/rcp/plotting/Plotting1DUI.java
index 17b73f0..d1cb551 100644
--- a/uk.ac.diamond.scisoft.analysis.rcp/src/uk/ac/diamond/scisoft/analys... | false | true | public void processPlotUpdate(DataBean dbPlot, boolean isUpdate) {
Collection<DataSetWithAxisInformation> plotData = dbPlot.getData();
if (plotData != null) {
Iterator<DataSetWithAxisInformation> iter = plotData.iterator();
final List<AbstractDataset> yDatasets = Collections.synchronizedList(new LinkedLis... | public void processPlotUpdate(DataBean dbPlot, boolean isUpdate) {
Collection<DataSetWithAxisInformation> plotData = dbPlot.getData();
if (plotData != null) {
Iterator<DataSetWithAxisInformation> iter = plotData.iterator();
final List<AbstractDataset> yDatasets = Collections.synchronizedList(new LinkedLis... |
diff --git a/rdt/org.eclipse.ptp.rdt.managedbuilder.gnu.ui/src/org/eclipse/ptp/rdt/managedbuilder/gnu/ui/scannerdiscovery/RemoteGCCSpecsRunSIProvider.java b/rdt/org.eclipse.ptp.rdt.managedbuilder.gnu.ui/src/org/eclipse/ptp/rdt/managedbuilder/gnu/ui/scannerdiscovery/RemoteGCCSpecsRunSIProvider.java
index 10a63fe82..5e47... | true | true | protected List<String> getCommand(IProject project, String providerId, IScannerConfigBuilderInfo2 buildInfo) {
// get the command that is provided in the extension point
String gcc = buildInfo.getProviderRunCommand(providerId);
// The CDT build macro system is busted in CDT 5.0.x, so resolve the
// compiler c... | protected List<String> getCommand(IProject project, String providerId, IScannerConfigBuilderInfo2 buildInfo) {
// get the command that is provided in the extension point
String gcc = buildInfo.getProviderRunCommand(providerId);
// The CDT build macro system is busted in CDT 5.0.x, so resolve the
// compiler c... |
diff --git a/identity_provisioning/src/main/java/edu/psu/iam/cpr/ip/ui/soap/SoapClientIP.java b/identity_provisioning/src/main/java/edu/psu/iam/cpr/ip/ui/soap/SoapClientIP.java
index 149e6e1..062dd18 100644
--- a/identity_provisioning/src/main/java/edu/psu/iam/cpr/ip/ui/soap/SoapClientIP.java
+++ b/identity_provisionin... | false | true | public static Map<String, String> findPerson(Map<String, Object> sessionData, String uniqueId) {
// create the hashMap to send to find person using the current name and address
HashMap<String, String> findPerson = new HashMap<String, String>();
findPerson.put(UIConstants.PRINCIPAL_ID, (String)sessionData.get(U... | public static Map<String, String> findPerson(Map<String, Object> sessionData, String uniqueId) {
// create the hashMap to send to find person using the current name and address
HashMap<String, String> findPerson = new HashMap<String, String>();
findPerson.put(UIConstants.PRINCIPAL_ID, (String)sessionData.get(U... |
diff --git a/src/scriptFolder.java b/src/scriptFolder.java
index 2f73239..671ebb9 100644
--- a/src/scriptFolder.java
+++ b/src/scriptFolder.java
@@ -1,384 +1,388 @@
package net.pms.external.infidel.jumpy;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
impor... | true | true | public Object addItem(int type, String filename, String uri, String thumbnail, String data) {
if (filename == null || uri == null) {
return null;
}
filename = StringEscapeUtils.unescapeXml(StringEscapeUtils.unescapeHtml(filename));
String label = utils.unesc(FilenameUtils.getName(filename));
String path... | public Object addItem(int type, String filename, String uri, String thumbnail, String data) {
if (filename == null || uri == null) {
return null;
}
filename = StringEscapeUtils.unescapeXml(StringEscapeUtils.unescapeHtml(filename));
String label = utils.unesc(FilenameUtils.getName(filename));
String path... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.