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/lib/packetpig/src/main/java/com/packetloop/packetpig/loaders/pcap/packet/DnsPacketAllRecordReader.java b/lib/packetpig/src/main/java/com/packetloop/packetpig/loaders/pcap/packet/DnsPacketAllRecordReader.java
index bfd1ad2..e3c406a 100644
--- a/lib/packetpig/src/main/java/com/packetloop/packetpig/loaders/pc... | true | true | public boolean nextKeyValue() throws IOException, InterruptedException {
if (tupleQueue.size() > 0) {
tuple = tupleQueue.remove(0);
return true;
}
try {
// keep going until the decoder says it found a good one.
PcapPacket packet = null;
... | public boolean nextKeyValue() throws IOException, InterruptedException {
if (tupleQueue.size() > 0) {
tuple = tupleQueue.remove(0);
return true;
}
try {
// keep going until the decoder says it found a good one.
PcapPacket packet = null;
... |
diff --git a/nexus-indexer/src/main/java/org/sonatype/nexus/index/DefaultArtifactContextProducer.java b/nexus-indexer/src/main/java/org/sonatype/nexus/index/DefaultArtifactContextProducer.java
index 548f470a6..5dc2114bd 100644
--- a/nexus-indexer/src/main/java/org/sonatype/nexus/index/DefaultArtifactContextProducer.jav... | true | true | public ArtifactContext getArtifactContext( IndexingContext context, File file )
{
// TODO shouldn't this use repository layout instead?
String path = null;
// protection from IndexOutOfBounds
if ( file.getAbsoluteFile().length() > context.getRepository().getAbsolutePath().length... | public ArtifactContext getArtifactContext( IndexingContext context, File file )
{
// TODO shouldn't this use repository layout instead?
String path = null;
// protection from IndexOutOfBounds
if ( file.getAbsolutePath().length() > context.getRepository().getAbsolutePath().length... |
diff --git a/springfaces-mvc/src/test/java/org/springframework/springfaces/mvc/navigation/DestinationViewResolverChainTest.java b/springfaces-mvc/src/test/java/org/springframework/springfaces/mvc/navigation/DestinationViewResolverChainTest.java
index 29a5c24..54573ca 100755
--- a/springfaces-mvc/src/test/java/org/sprin... | false | true | public void shouldReturnFirstSuitableResolver() throws Exception {
View view = mock(View.class);
List<DestinationViewResolver> resolvers = new ArrayList<DestinationViewResolver>();
DestinationViewResolver r1 = mock(DestinationViewResolver.class);
DestinationViewResolver r2 = mock(DestinationViewResolver.class)... | public void shouldReturnFirstSuitableResolver() throws Exception {
View view = mock(View.class);
List<DestinationViewResolver> resolvers = new ArrayList<DestinationViewResolver>();
DestinationViewResolver r1 = mock(DestinationViewResolver.class);
DestinationViewResolver r2 = mock(DestinationViewResolver.class)... |
diff --git a/src/com/dalthed/tucan/Connection/BrowseMethods.java b/src/com/dalthed/tucan/Connection/BrowseMethods.java
index 0ee8b22..af8e0e7 100644
--- a/src/com/dalthed/tucan/Connection/BrowseMethods.java
+++ b/src/com/dalthed/tucan/Connection/BrowseMethods.java
@@ -1,220 +1,221 @@
/**
* This file is part of TuCan... | true | true | public AnswerObject browse(RequestObject requestInfo) throws ConnectException {
String redirectURL = "";
String alllines = "";
if (Build.VERSION.SDK_INT < 9) {
// Notwendig, da sonst die Verbindung bei älteren Systemen nicht
// klappt
System.setProperty("http.keepAlive", "false");
}
try {
// Info... | public AnswerObject browse(RequestObject requestInfo) throws ConnectException {
String redirectURL = "";
String alllines = "";
if (Build.VERSION.SDK_INT < 9) {
// Notwendig, da sonst die Verbindung bei älteren Systemen nicht
// klappt
System.setProperty("http.keepAlive", "false");
}
try {
// Info... |
diff --git a/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteBrowserAction.java b/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteBrowserAction.java
index 9d0a5654..8fad2aa2 100644
--- a/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteBrowserAction.java
+++ b/site-manage-tool/t... | true | true | private String buildVisitContext(SessionState state, Context context)
{
List sites = (List) state.getAttribute(STATE_SITES);
String siteId = (String) state.getAttribute("siteId");
try
{
Site site = SiteService.getSite(siteId);
if (sites != null)
{
int pos = -1;
for (int index = 0; index < s... | private String buildVisitContext(SessionState state, Context context)
{
List sites = (List) state.getAttribute(STATE_SITES);
String siteId = (String) state.getAttribute("siteId");
try
{
Site site = SiteService.getSite(siteId);
if (sites != null)
{
int pos = -1;
for (int index = 0; index < s... |
diff --git a/android/src/com/google/zxing/client/android/wifi/WifiActivity.java b/android/src/com/google/zxing/client/android/wifi/WifiActivity.java
index 56488098..0654d868 100644
--- a/android/src/com/google/zxing/client/android/wifi/WifiActivity.java
+++ b/android/src/com/google/zxing/client/android/wifi/WifiActivit... | false | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = getIntent();
if (intent == null || !intent.getAction().equals(Intents.WifiConnect.ACTION)) {
finish();
return;
}
String ssid = intent.getStringExtra(Intents.WifiConnect.SSID);
... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = getIntent();
if (intent == null || !intent.getAction().equals(Intents.WifiConnect.ACTION)) {
finish();
return;
}
String ssid = intent.getStringExtra(Intents.WifiConnect.SSID);
... |
diff --git a/services-src/source/org/alt60m/staffSite/bean/dbio/AccountBalanceUpdater.java b/services-src/source/org/alt60m/staffSite/bean/dbio/AccountBalanceUpdater.java
index bd4fc8ce..3ef13136 100644
--- a/services-src/source/org/alt60m/staffSite/bean/dbio/AccountBalanceUpdater.java
+++ b/services-src/source/org/alt... | true | true | public void performUpdate(boolean verbose) {
try {
_preferences = new UserPreferences();
// Connect to the prod database to get the imported table... (wierd??)
m_connection = DBConnectionFactory.getOracleDatabaseConn();
if (m_connection == null) {
log.fatal("Failed to open Oracle database conn... | public void performUpdate(boolean verbose) {
try {
_preferences = new UserPreferences();
// Connect to the prod database to get the imported table... (wierd??)
m_connection = DBConnectionFactory.getOracleDatabaseConn();
if (m_connection == null) {
log.fatal("Failed to open Oracle database conn... |
diff --git a/src/org/openid4java/server/ServerManager.java b/src/org/openid4java/server/ServerManager.java
index 559ea66..e3b9f15 100644
--- a/src/org/openid4java/server/ServerManager.java
+++ b/src/org/openid4java/server/ServerManager.java
@@ -1,799 +1,799 @@
/*
* Copyright 2006-2007 Sxip Identity Corporation
*/
... | false | true | public Message authResponse(ParameterList requestParams,
String userSelId,
String userSelClaimed,
boolean authenticatedAndApproved,
String opEndpoint,
boole... | public Message authResponse(ParameterList requestParams,
String userSelId,
String userSelClaimed,
boolean authenticatedAndApproved,
String opEndpoint,
boole... |
diff --git a/j2py/test/java2python/QuickArray.java b/j2py/test/java2python/QuickArray.java
index 6325b83..448b9f1 100644
--- a/j2py/test/java2python/QuickArray.java
+++ b/j2py/test/java2python/QuickArray.java
@@ -1,8 +1,8 @@
public class QuickArray {
public static void main(String[] args) {
Integer b[] = {4, 5... | true | true | public static void main(String[] args) {
Integer b[] = {4, 5, 6};
System.out.println(b[0].toString());
System.out.println(b[1].toString());
System.out.println(b[2].toString());
}
| public static void main(String[] args) {
Integer b[] = {4, 5, 6};
System.out.println(b[0]);
System.out.println(b[1]);
System.out.println(b[2]);
}
|
diff --git a/gui/src/java/com/robonobo/gui/tasks/ImportFilesTask.java b/gui/src/java/com/robonobo/gui/tasks/ImportFilesTask.java
index 95d5f98..59c6bd2 100644
--- a/gui/src/java/com/robonobo/gui/tasks/ImportFilesTask.java
+++ b/gui/src/java/com/robonobo/gui/tasks/ImportFilesTask.java
@@ -1,63 +1,63 @@
package com.robo... | true | true | public void runTask() throws Exception {
log.info("Running import files pFetcher for "+files.size()+" files");
List<String> streamIds = new ArrayList<String>();
int totalSz = files.size();
int i = 0;
Iterator<File> it = files.iterator();
try {
while (it.hasNext()) {
if (cancelRequested) {
cance... | public void runTask() throws Exception {
log.info("Running import files task for "+files.size()+" files");
List<String> streamIds = new ArrayList<String>();
int totalSz = files.size();
int i = 0;
Iterator<File> it = files.iterator();
try {
while (it.hasNext()) {
if (cancelRequested) {
cancelCon... |
diff --git a/libraries/javalib/kaffe/jar/ExecJar.java b/libraries/javalib/kaffe/jar/ExecJar.java
index 908fde6f5..a8abb8d1b 100644
--- a/libraries/javalib/kaffe/jar/ExecJar.java
+++ b/libraries/javalib/kaffe/jar/ExecJar.java
@@ -1,67 +1,66 @@
/*
* ExecJar.java
* Execute a Jar file.
* This is a Java wrapper whic... | false | true | public static void main(String[] args)
{
// Get JAR file
JarFile jar = ExecJarName.getJar(args[0]);
// Look for manifest
Manifest manifest = null;
try {
manifest = jar.getManifest();
if (manifest == null) {
System.err.println("No manifest found in ``"
+ args[0] + "''");
System.exit(1);
}
} cat... | public static void main(String[] args)
{
// Get JAR file
JarFile jar = ExecJarName.getJar(args[0]);
// Look for manifest
Manifest manifest = null;
try {
manifest = jar.getManifest();
if (manifest == null) {
System.err.println("No manifest found in ``"
+ args[0] + "''");
System.exit(1);
}
} cat... |
diff --git a/workflow_plugins/solr-plugin/src/test/java/eu/europeana/uim/plugin/solr/test/EuropeanaDateUtilsTest.java b/workflow_plugins/solr-plugin/src/test/java/eu/europeana/uim/plugin/solr/test/EuropeanaDateUtilsTest.java
index c7caff07..855127d9 100644
--- a/workflow_plugins/solr-plugin/src/test/java/eu/europeana/u... | true | true | public void testUtils(){
ProxyType proxy = new ProxyType();
List<EuropeanaType.Choice> dates = new ArrayList<EuropeanaType.Choice>();
String dcDateString1 = "-150 / -70"; //should give -150 and -70
String dcDateString2 = "75/140 AD"; //should give 75 and 140
String dcDateString3 = "circa 1500 BC"; //should ... | public void testUtils(){
ProxyType proxy = new ProxyType();
List<EuropeanaType.Choice> dates = new ArrayList<EuropeanaType.Choice>();
String dcDateString1 = "-150 / -70"; //should give -150 and -70
String dcDateString2 = "75/140 AD"; //should give 75 and 140
String dcDateString3 = "circa 1500 BC"; //should ... |
diff --git a/src/main/java/water/ValueArray.java b/src/main/java/water/ValueArray.java
index badb89d71..50cf7fbe6 100644
--- a/src/main/java/water/ValueArray.java
+++ b/src/main/java/water/ValueArray.java
@@ -1,451 +1,451 @@
package water;
import java.io.IOException;
import java.io.InputStream;
import java.util.A... | false | true | static private Futures readPut(Key key, InputStream is, Job job, final Futures fs) throws IOException {
UKV.remove(key);
byte[] oldbuf, buf = null;
int off = 0, sz = 0;
long szl = off;
long cidx = 0;
Futures dkv_fs = new Futures();
H2OCountedCompleter f_last = null;
while( true ) {
... | static private Futures readPut(Key key, InputStream is, Job job, final Futures fs) throws IOException {
UKV.remove(key);
byte[] oldbuf, buf = null;
int off = 0, sz = 0;
long szl = off;
long cidx = 0;
Futures dkv_fs = new Futures();
H2OCountedCompleter f_last = null;
while( true ) {
... |
diff --git a/atlassian-plugins-test-resources/atlassian-plugins-test/src/main/java/com/atlassian/plugin/test/PluginJarBuilder.java b/atlassian-plugins-test-resources/atlassian-plugins-test/src/main/java/com/atlassian/plugin/test/PluginJarBuilder.java
index acc592e1..f8dc8f74 100644
--- a/atlassian-plugins-test-resource... | true | true | public PluginJarBuilder addJava(String className, String code) throws Exception
{
SimpleCompiler compiler = new SimpleCompiler();
compiler.setParentClassLoader(classLoader);
try
{
compiler.cook(new StringReader(code));
}
catch (Parser.ParseException ex... | public PluginJarBuilder addJava(String className, String code) throws Exception
{
SimpleCompiler compiler = new SimpleCompiler();
compiler.setParentClassLoader(classLoader);
try
{
compiler.cook(new StringReader(code));
}
catch (Parser.ParseException ex... |
diff --git a/src/main/java/me/limebyte/battlenight/core/listeners/HealthListener.java b/src/main/java/me/limebyte/battlenight/core/listeners/HealthListener.java
index c555d77..19929ab 100644
--- a/src/main/java/me/limebyte/battlenight/core/listeners/HealthListener.java
+++ b/src/main/java/me/limebyte/battlenight/core/l... | false | true | public void onEntityDamage(EntityDamageEvent event) {
if (!(event.getEntity() instanceof Player)) return;
Player player = (Player) event.getEntity();
BattleNightAPI api = getAPI();
Battle battle = api.getBattleManager().getBattle();
if (api.getSpectatorManager().getSpectator... | public void onEntityDamage(EntityDamageEvent event) {
if (!(event.getEntity() instanceof Player)) return;
Player player = (Player) event.getEntity();
BattleNightAPI api = getAPI();
Battle battle = api.getBattleManager().getBattle();
if (api.getSpectatorManager().getSpectator... |
diff --git a/src/main/java/com/araeosia/ArcherGames/listeners/BlockEventListener.java b/src/main/java/com/araeosia/ArcherGames/listeners/BlockEventListener.java
index 82fa685..44c5da9 100644
--- a/src/main/java/com/araeosia/ArcherGames/listeners/BlockEventListener.java
+++ b/src/main/java/com/araeosia/ArcherGames/liste... | false | true | public void onBlockInteract(final PlayerInteractEvent event) {
if (event.hasBlock()) {
if(plugin.debug){
if(event.getClickedBlock().getState() instanceof Sign){
Sign sign = (Sign) event.getClickedBlock().getState();
plugin.log.info(sign.getLine(0));
}
}
if(event.getClickedBlock() instanceo... | public void onBlockInteract(final PlayerInteractEvent event) {
if (event.hasBlock()) {
if(plugin.debug){
if(event.getClickedBlock().getState() instanceof Sign){
Sign sign = (Sign) event.getClickedBlock().getState();
plugin.log.info(sign.getLine(0));
}
}
if(event.getClickedBlock() instanceo... |
diff --git a/spring-datastore-gemfire/src/main/groovy/org/springframework/datastore/mapping/gemfire/config/GormGemfireMappingFactory.java b/spring-datastore-gemfire/src/main/groovy/org/springframework/datastore/mapping/gemfire/config/GormGemfireMappingFactory.java
index 5360e0de..a7a72880 100644
--- a/spring-datastore-... | false | true | public Family createMappedForm(PersistentEntity entity) {
ClassPropertyFetcher cpf = ClassPropertyFetcher.forClass(entity.getJavaClass());
final Closure value = cpf.getStaticPropertyValue(GormProperties.MAPPING, Closure.class);
if(value != null) {
final Region family = new Region... | public Family createMappedForm(PersistentEntity entity) {
ClassPropertyFetcher cpf = ClassPropertyFetcher.forClass(entity.getJavaClass());
final Closure value = cpf.getStaticPropertyValue(GormProperties.MAPPING, Closure.class);
if(value != null) {
final Region family = new Region... |
diff --git a/src/a3_p01_JS_MJ/Kruskal.java b/src/a3_p01_JS_MJ/Kruskal.java
index ee6085e..9d401bf 100644
--- a/src/a3_p01_JS_MJ/Kruskal.java
+++ b/src/a3_p01_JS_MJ/Kruskal.java
@@ -1,81 +1,83 @@
package a3_p01_JS_MJ;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util... | false | true | public static SearchResult searchSpanningTree(WeightedGraph<String, DefaultWeightedEdge> graph){
int accesses=0;
Set<DefaultWeightedEdge> edgeSet = graph.edgeSet();
ArrayList<DefaultWeightedEdge> edges = new ArrayList<DefaultWeightedEdge>(edgeSet.size());
ArrayList<Double> weight = new ArrayList<Double>(edgeSe... | public static SearchResult searchSpanningTree(WeightedGraph<String, DefaultWeightedEdge> graph){
int accesses=0;
Set<DefaultWeightedEdge> edgeSet = graph.edgeSet();
ArrayList<DefaultWeightedEdge> edges = new ArrayList<DefaultWeightedEdge>(edgeSet.size());
ArrayList<Double> weight = new ArrayList<Double>(edgeSe... |
diff --git a/test/BudgetTest.java b/test/BudgetTest.java
index a833359..19490a2 100644
--- a/test/BudgetTest.java
+++ b/test/BudgetTest.java
@@ -1,21 +1,22 @@
import org.junit.*;
import java.util.*;
import play.test.*;
import models.Budget;
import play.modules.morphia.Blob;
import play.modules.morphia.MorphiaPl... | true | true | public void testStoreBudget() {
Budget b = new Budget("derp", "derping around town", 0, 100, "derp");
b.save();
}
| public void testStoreBudget() {
Budget b = new Budget("derp", "derping around town", 0, 100, "derp");
b.save();
b.delete();
}
|
diff --git a/src/org/jruby/javasupport/JavaUtil.java b/src/org/jruby/javasupport/JavaUtil.java
index 6e2e8af49..2f11b2f11 100644
--- a/src/org/jruby/javasupport/JavaUtil.java
+++ b/src/org/jruby/javasupport/JavaUtil.java
@@ -1,298 +1,295 @@
/***** BEGIN LICENSE BLOCK *****
* Version: CPL 1.0/GPL 2.0/LGPL 2.1
*
*... | true | true | public static Object convertRubyToJava(IRubyObject rubyObject, Class javaClass) {
if (rubyObject == null || rubyObject.isNil()) {
return null;
}
ThreadContext context = rubyObject.getRuntime().getCurrentContext();
if (rubyObject.respondsTo("java_object")... | public static Object convertRubyToJava(IRubyObject rubyObject, Class javaClass) {
if (rubyObject == null || rubyObject.isNil()) {
return null;
}
ThreadContext context = rubyObject.getRuntime().getCurrentContext();
if (rubyObject.respondsTo("java_object")... |
diff --git a/vufind/import/src/org/vufind/UpdateResourceInformation.java b/vufind/import/src/org/vufind/UpdateResourceInformation.java
index 6aea1ca8..938c8530 100644
--- a/vufind/import/src/org/vufind/UpdateResourceInformation.java
+++ b/vufind/import/src/org/vufind/UpdateResourceInformation.java
@@ -1,634 +1,642 @@
... | false | true | public boolean processMarcRecord(MarcProcessor processor, MarcRecordDetails recordInfo, int recordStatus, Logger logger) {
Long resourceId = -1L;
boolean updateSubjectAndCallNumber = true;
results.incRecordsProcessed();
if (recordInfo.isEContent()){
results.incSkipped();
logger.debug("Skipping upda... | public boolean processMarcRecord(MarcProcessor processor, MarcRecordDetails recordInfo, int recordStatus, Logger logger) {
Long resourceId = -1L;
boolean updateSubjectAndCallNumber = true;
results.incRecordsProcessed();
if (recordInfo.isEContent()){
results.incSkipped();
logger.debug("Skipping upda... |
diff --git a/src/main/java/colt/nicity/view/core/VPan.java b/src/main/java/colt/nicity/view/core/VPan.java
index b26849a..7baccd0 100644
--- a/src/main/java/colt/nicity/view/core/VPan.java
+++ b/src/main/java/colt/nicity/view/core/VPan.java
@@ -1,977 +1,977 @@
/*
* VPan.java.java
*
* Created on 01-03-2010 01:33:... | true | true | public void paintBorder(ICanvas _g, int _x, int _y, int _w, int _h) {
super.paintBorder(_g, _x, _y, _w, _h);
if (operable) {
AColor c = barColor;
if (alignY > -1 && view.getH() > getH() && !paintYResizing) {//paintYScrollbar
_g.setColor(barColor);
... | public void paintBorder(ICanvas _g, int _x, int _y, int _w, int _h) {
super.paintBorder(_g, _x, _y, _w, _h);
if (operable) {
AColor c = barColor;
if (alignY > -1 && view.getH() > getH() && !paintYResizing) {//paintYScrollbar
_g.setColor(barColor);
... |
diff --git a/modules/core/src/main/java/org/openlmis/core/upload/AbstractModelPersistenceHandler.java b/modules/core/src/main/java/org/openlmis/core/upload/AbstractModelPersistenceHandler.java
index 7cd01e6f36..564a13decb 100644
--- a/modules/core/src/main/java/org/openlmis/core/upload/AbstractModelPersistenceHandler.j... | true | true | public void execute(Importable importable, int rowNumber, AuditFields auditFields) {
BaseModel currentRecord = (BaseModel) importable;
final String rowNumberAsString = Integer.toString(rowNumber - 1);
BaseModel existing = getExisting(currentRecord);
try {
throwExceptionIfProcessedInCurrentUploa... | public void execute(Importable importable, int rowNumber, AuditFields auditFields) {
BaseModel currentRecord = (BaseModel) importable;
final String rowNumberAsString = Integer.toString(rowNumber - 1);
BaseModel existing = getExisting(currentRecord);
try {
throwExceptionIfProcessedInCurrentUploa... |
diff --git a/gwt-client/src/main/java/org/mule/galaxy/web/client/RegistryPanel.java b/gwt-client/src/main/java/org/mule/galaxy/web/client/RegistryPanel.java
index 0aecf3ec..cbb4d400 100755
--- a/gwt-client/src/main/java/org/mule/galaxy/web/client/RegistryPanel.java
+++ b/gwt-client/src/main/java/org/mule/galaxy/web/cli... | false | true | public RegistryPanel(Galaxy galaxy) {
super(galaxy);
this.service = (RegistryServiceAsync) GWT.create(RegistryService.class);
ServiceDefTarget target = (ServiceDefTarget) service;
target.setServiceEntryPoint("/handler/registry.rpc");
workspaceBox = new Toolb... | public RegistryPanel(Galaxy galaxy) {
super(galaxy);
this.service = (RegistryServiceAsync) GWT.create(RegistryService.class);
ServiceDefTarget target = (ServiceDefTarget) service;
target.setServiceEntryPoint("/handler/registry.rpc");
workspaceBox = new Toolb... |
diff --git a/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java b/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
index cfa385685..a032e7e7d 100644
--- a/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
+++ b/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
@@ -1,2850 +1,2851 @@
/*
* L... | true | true | protected XSDocumentInfo constructTrees(Element schemaRoot, String locationHint, XSDDescription desc) {
if (schemaRoot == null) return null;
String callerTNS = desc.getTargetNamespace();
short referType = desc.getContextType();
XSDocumentInfo currSchemaInfo = null;
t... | protected XSDocumentInfo constructTrees(Element schemaRoot, String locationHint, XSDDescription desc) {
if (schemaRoot == null) return null;
String callerTNS = desc.getTargetNamespace();
short referType = desc.getContextType();
XSDocumentInfo currSchemaInfo = null;
t... |
diff --git a/src/haven/Layered.java b/src/haven/Layered.java
index 1dba89e..6e8a1b7 100644
--- a/src/haven/Layered.java
+++ b/src/haven/Layered.java
@@ -1,237 +1,238 @@
package haven;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.util.*;
public class Layered extends Drawable {
... | false | true | private Layer redraw() {
final ArrayList<Sprite.Part> parts = new ArrayList<Sprite.Part>();
Sprite.Drawer drw = new Sprite.Drawer() {
public void addpart(Sprite.Part p) {
parts.add(p);
}
};
for(Sprite spr : sprites.values()) {
if(spr != null)
spr.setup(drw, Coord.z, Coord.z);
}
Collection... | private Layer redraw() {
final ArrayList<Sprite.Part> parts = new ArrayList<Sprite.Part>();
Sprite.Drawer drw = new Sprite.Drawer() {
public void addpart(Sprite.Part p) {
parts.add(p);
}
};
for(Sprite spr : sprites.values()) {
if(spr != null)
spr.setup(drw, Coord.z, Coord.z);
}
Collection... |
diff --git a/webmacro/src/org/webmacro/servlet/VariableTool.java b/webmacro/src/org/webmacro/servlet/VariableTool.java
index a476fa78..97cb254a 100755
--- a/webmacro/src/org/webmacro/servlet/VariableTool.java
+++ b/webmacro/src/org/webmacro/servlet/VariableTool.java
@@ -1,88 +1,88 @@
/*
* Copyright (C) 1998-2000 Sem... | true | true | public boolean isInstanceOf(Object obj, String className) {
try {
return (obj != null && className != null)
&& (obj.getClass().isAssignableFrom(
context.getBroker().classForName(className)));
} catch (ClassNotFoundException cnfe) {
context.getBroker().ge... | public boolean isInstanceOf(Object obj, String className) {
try {
return (obj != null && className != null)
&& (context.getBroker().classForName(className).isAssignableFrom(
obj.getClass()));
} catch (ClassNotFoundException cnfe) {
context.getBroker().getLog(... |
diff --git a/src/org/pentaho/pms/schema/BusinessTable.java b/src/org/pentaho/pms/schema/BusinessTable.java
index f9037bc5..e2b5dbff 100644
--- a/src/org/pentaho/pms/schema/BusinessTable.java
+++ b/src/org/pentaho/pms/schema/BusinessTable.java
@@ -1,485 +1,485 @@
/*
* Copyright 2006 Pentaho Corporation. All rights r... | true | true | public BusinessCategory generateCategory(String locale, UniqueList categories) {
BusinessCategory businessCategory = new BusinessCategory();
try {
businessCategory.setId(BusinessCategory.proposeId(locale, this, businessCategory, categories));
} catch (ObjectAlreadyExistsException e) {
//shou... | public BusinessCategory generateCategory(String locale, UniqueList categories) {
BusinessCategory businessCategory = new BusinessCategory();
try {
businessCategory.setId(BusinessCategory.proposeId(locale, this, businessCategory, categories));
} catch (ObjectAlreadyExistsException e) {
//shou... |
diff --git a/src/com/display/BarreOutils.java b/src/com/display/BarreOutils.java
index cc829ca..f5355ba 100755
--- a/src/com/display/BarreOutils.java
+++ b/src/com/display/BarreOutils.java
@@ -1,506 +1,506 @@
package com.display;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.... | false | true | public BarreOutils(final Curseur curseur, final ZoneDessin zoneDessin){
this.curseur = curseur;
this.zoneDessin = zoneDessin;
boutonPoserCrayon = boutonPoserCrayon();
boutonGomme = boutonGomme();
boutonForme = boutonForme();
boutonUndo = boutonUndo();
boutonRedo = boutonRedo();
sliderEpaisseur = slider... | public BarreOutils(final Curseur curseur, final ZoneDessin zoneDessin){
this.curseur = curseur;
this.zoneDessin = zoneDessin;
boutonPoserCrayon = boutonPoserCrayon();
boutonGomme = boutonGomme();
boutonForme = boutonForme();
boutonUndo = boutonUndo();
boutonRedo = boutonRedo();
sliderEpaisseur = slider... |
diff --git a/src/com/vividsolutions/jump/workbench/ui/snap/SnapToGridPolicy.java b/src/com/vividsolutions/jump/workbench/ui/snap/SnapToGridPolicy.java
index d7c9a5cd..c7653bf4 100644
--- a/src/com/vividsolutions/jump/workbench/ui/snap/SnapToGridPolicy.java
+++ b/src/com/vividsolutions/jump/workbench/ui/snap/SnapToGridP... | false | true | public Coordinate snap(LayerViewPanel panel, Coordinate originalCoordinate) {
if (!blackboard.get(ENABLED_KEY, false)) {
return null;
}
double gridSize = blackboard.get(GRID_SIZE_KEY, 20d);
Coordinate gridCoordinate = new Coordinate(Math.round(
origi... | public Coordinate snap(LayerViewPanel panel, Coordinate originalCoordinate) {
if (!blackboard.get(ENABLED_KEY, false)) {
return null;
}
double gridSize = blackboard.get(GRID_SIZE_KEY, 20d);
// [mmichaud 2012-02-19] This tip avoid floating point problems like
// ... |
diff --git a/server/src/com/xqdev/jam/MLJAM.java b/server/src/com/xqdev/jam/MLJAM.java
index c47f27d..defe1c5 100644
--- a/server/src/com/xqdev/jam/MLJAM.java
+++ b/server/src/com/xqdev/jam/MLJAM.java
@@ -1,722 +1,722 @@
/*
* Mark Logic Interface to Java
*
* Copyright 2006 Jason Hunter
*
* Licensed under the... | false | true | private static void sendXQueryResponse(HttpServletResponse res, Object o) throws IOException {
// Make sure to leave the status code alone. It defaults to 200, but sometimes
// callers of this method will have set it to a custom code.
res.setContentType("x-marklogic/xquery; charset=UTF-8");
//res.set... | private static void sendXQueryResponse(HttpServletResponse res, Object o) throws IOException {
// Make sure to leave the status code alone. It defaults to 200, but sometimes
// callers of this method will have set it to a custom code.
res.setContentType("x-marklogic/xquery; charset=UTF-8");
//res.set... |
diff --git a/src/cytoscape/data/AttributeSaverDialog.java b/src/cytoscape/data/AttributeSaverDialog.java
index 8996a44f2..e79a1bdd2 100644
--- a/src/cytoscape/data/AttributeSaverDialog.java
+++ b/src/cytoscape/data/AttributeSaverDialog.java
@@ -1,443 +1,444 @@
package cytoscape.data;
import cytoscape.Cytoscape;
im... | false | true | public int writeState(int[] selectedRows) {
List graphObjects = null;
CyAttributes cyAttributes = null;
if (type == AttributeSaverDialog.NODES) {
cyAttributes = Cytoscape.getNodeAttributes();
graphObjects = Cytoscape.getCyNodesList();
} else {
cyAttributes = Cytoscape.getEdgeAttributes();
graphOb... | public int writeState(int[] selectedRows) {
List graphObjects = null;
CyAttributes cyAttributes = null;
if (type == AttributeSaverDialog.NODES) {
cyAttributes = Cytoscape.getNodeAttributes();
graphObjects = Cytoscape.getCyNodesList();
} else {
cyAttributes = Cytoscape.getEdgeAttributes();
graphOb... |
diff --git a/src/com/bukkit/YurijWare/RealTime/RTTimeThread.java b/src/com/bukkit/YurijWare/RealTime/RTTimeThread.java
index afab152..de80508 100644
--- a/src/com/bukkit/YurijWare/RealTime/RTTimeThread.java
+++ b/src/com/bukkit/YurijWare/RealTime/RTTimeThread.java
@@ -1,60 +1,60 @@
package com.bukkit.YurijWare.RealTim... | true | true | public void run() {
log.info("[" + RealTime.pdfFile.getName() + "] "
+ "Started realistic time");
while(active){
SetTime();
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
}
}
log.info("[" + RealTime.pdfFile.getName() + "] "
+ "Stopped realistic time");
}
| public void run() {
log.info("[" + RealTime.pdfFile.getName() + "] "
+ "Started realistic time");
while(active){
SetTime();
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
}
}
log.info("[" + RealTime.pdfFile.getName() + "] "
+ "Stopped realistic time");
}
|
diff --git a/src/test/java/org/atlasapi/persistence/media/entity/ItemTranslatorTest.java b/src/test/java/org/atlasapi/persistence/media/entity/ItemTranslatorTest.java
index 80742b5a..eeb9b55f 100644
--- a/src/test/java/org/atlasapi/persistence/media/entity/ItemTranslatorTest.java
+++ b/src/test/java/org/atlasapi/persis... | true | true | public void testConvertToItem() throws Exception {
Item item = new Item("canonicalUri", "curie", Publisher.BBC);
item.setTitle("title");
Location loc = new Location();
loc.setAvailable(true);
Encoding enc = new Encoding();
enc.setAdvertisingDuration(... | public void testConvertToItem() throws Exception {
Item item = new Item("canonicalUri", "curie", Publisher.BBC);
item.setTitle("title");
Location loc = new Location();
loc.setAvailable(true);
Encoding enc = new Encoding();
enc.setAdvertisingDuration(... |
diff --git a/src/nu/nerd/kitchensink/Configuration.java b/src/nu/nerd/kitchensink/Configuration.java
index f706ffd..d02adaa 100644
--- a/src/nu/nerd/kitchensink/Configuration.java
+++ b/src/nu/nerd/kitchensink/Configuration.java
@@ -1,79 +1,79 @@
package nu.nerd.kitchensink;
import java.util.List;
public class... | true | true | public void load()
{
plugin.reloadConfig();
ANIMAL_COUNT = plugin.getConfig().getBoolean("animal-count");
LOG_ANIMAL_DEATH = plugin.getConfig().getBoolean("log-animals");
LOG_ANIMAL_DEATH = plugin.getConfig().getBoolean("log-player-drops");
BUFF_DROPS = plugin.ge... | public void load()
{
plugin.reloadConfig();
ANIMAL_COUNT = plugin.getConfig().getBoolean("animal-count");
LOG_ANIMAL_DEATH = plugin.getConfig().getBoolean("log-animals");
LOG_PLAYER_DROPS = plugin.getConfig().getBoolean("log-player-drops");
BUFF_DROPS = plugin.ge... |
diff --git a/src/main/java/org/spout/vanilla/command/TestCommands.java b/src/main/java/org/spout/vanilla/command/TestCommands.java
index 667d84fa..aa418d62 100644
--- a/src/main/java/org/spout/vanilla/command/TestCommands.java
+++ b/src/main/java/org/spout/vanilla/command/TestCommands.java
@@ -1,263 +1,267 @@
/*
* T... | true | true | public void killall(CommandContext args, CommandSource source) throws CommandException {
World world = null;
boolean isConsole = false;
if (!(source instanceof Player)) {
if (args.length() == 0) {
throw new CommandException("Need to provide a world when executing from the console");
}
String name =... | public void killall(CommandContext args, CommandSource source) throws CommandException {
World world = null;
boolean isConsole = false;
if (!(source instanceof Player)) {
if (args.length() == 0) {
throw new CommandException("Need to provide a world when executing from the console");
}
String name =... |
diff --git a/src/main/battlecode/world/NeutralsMap.java b/src/main/battlecode/world/NeutralsMap.java
index 7191ac1f..e90cf2d7 100644
--- a/src/main/battlecode/world/NeutralsMap.java
+++ b/src/main/battlecode/world/NeutralsMap.java
@@ -1,367 +1,367 @@
package battlecode.world;
import java.util.ArrayList;
import jav... | true | true | public void next(InternalObject[] objs) {
for (InternalObject obj : objs) {
updateIds(obj);
}
// Current order:
// 1) cows are destroyed due to attack
// 2) cows move
// 3) cow growth and decay happens
for (int i = 0; i < attacks.size(); i++) {
... | public void next(InternalObject[] objs) {
for (InternalObject obj : objs) {
updateIds(obj);
}
// Current order:
// 1) cows are destroyed due to attack
// 2) cows move
// 3) cow growth and decay happens
for (int i = 0; i < attacks.size(); i++) {
... |
diff --git a/src/gwt/src/org/rstudio/studio/client/workbench/views/vcs/dialog/ReviewPanel.java b/src/gwt/src/org/rstudio/studio/client/workbench/views/vcs/dialog/ReviewPanel.java
index dc2e0f45f2..1cd4f9f406 100644
--- a/src/gwt/src/org/rstudio/studio/client/workbench/views/vcs/dialog/ReviewPanel.java
+++ b/src/gwt/src... | true | true | public ReviewPanel(ChangelistTablePresenter changelist,
LineTableView diffPane,
ConsoleBarFramePanel consoleBarFramePanel,
final Commands commands,
FileTypeRegistry fileTypeRegistry,
BranchToolbarButton bran... | public ReviewPanel(ChangelistTablePresenter changelist,
LineTableView diffPane,
ConsoleBarFramePanel consoleBarFramePanel,
final Commands commands,
FileTypeRegistry fileTypeRegistry,
BranchToolbarButton bran... |
diff --git a/src/setServer/SetServer.java b/src/setServer/SetServer.java
index c406721..281d4f7 100644
--- a/src/setServer/SetServer.java
+++ b/src/setServer/SetServer.java
@@ -1,500 +1,500 @@
package setServer;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql... | false | true | public static void main(String[] args) throws SQLException {
// BlockingQueue receives all client messages, allows reads only when non-empty, and supports threads
final BlockingQueue<Message> inMessages = new LinkedBlockingQueue<Message>();
final BlockingQueue<Message> outMessages = new LinkedBlockingQueue<Me... | public static void main(String[] args) throws SQLException {
// BlockingQueue receives all client messages, allows reads only when non-empty, and supports threads
final BlockingQueue<Message> inMessages = new LinkedBlockingQueue<Message>();
final BlockingQueue<Message> outMessages = new LinkedBlockingQueue<Me... |
diff --git a/web/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/template/DisplayTemplateController.java b/web/src/main/java/edu/northwestern/bioinformatics/studycalendar/web/template/DisplayTemplateController.java
index bf85cf5c3..4b77388fe 100644
--- a/web/src/main/java/edu/northwestern/bioinformatics... | true | true | protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {
String studyStringIdentifier = ServletRequestUtils.getRequiredStringParameter(request, "study");
Integer selectedStudySegmentId = ServletRequestUtils.getIntParameter(request, "st... | protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {
String studyStringIdentifier = ServletRequestUtils.getRequiredStringParameter(request, "study");
Integer selectedStudySegmentId = ServletRequestUtils.getIntParameter(request, "st... |
diff --git a/CreateYourOwnAdventure/src/cmput301/f13t01/createyourownadventure/StoryFragmentViewFactory.java b/CreateYourOwnAdventure/src/cmput301/f13t01/createyourownadventure/StoryFragmentViewFactory.java
index b0a0e18..138481b 100644
--- a/CreateYourOwnAdventure/src/cmput301/f13t01/createyourownadventure/StoryFragme... | true | true | public static void ConstructView(LinearLayout layout,
ArrayList<Media> content, Context context, Boolean forEdit) {
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT);
// Display the fragment
for (Media me... | public static void ConstructView(LinearLayout layout,
ArrayList<Media> content, Context context, Boolean forEdit) {
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT);
// Display the fragment
for (Media me... |
diff --git a/src/org/graphstream/stream/file/FileSinkGEXF.java b/src/org/graphstream/stream/file/FileSinkGEXF.java
index 7c4fd6b..e271043 100644
--- a/src/org/graphstream/stream/file/FileSinkGEXF.java
+++ b/src/org/graphstream/stream/file/FileSinkGEXF.java
@@ -1,367 +1,367 @@
/*
* Copyright 2006 - 2013
* Stefa... | true | true | protected void exportGraph(Graph g) {
GEXFAttributeMap nodeAttributes = new GEXFAttributeMap("node", g);
GEXFAttributeMap edgeAttributes = new GEXFAttributeMap("edge", g);
try {
startElement(stream, "graph");
stream.writeAttribute("defaultedgetype", "undirected");
nodeAttributes.export(stream);
edg... | protected void exportGraph(Graph g) {
GEXFAttributeMap nodeAttributes = new GEXFAttributeMap("node", g);
GEXFAttributeMap edgeAttributes = new GEXFAttributeMap("edge", g);
try {
startElement(stream, "graph");
stream.writeAttribute("defaultedgetype", "undirected");
nodeAttributes.export(stream);
edg... |
diff --git a/TeaLeaf/src/com/tealeaf/EventQueue.java b/TeaLeaf/src/com/tealeaf/EventQueue.java
index de6fe96..46db083 100644
--- a/TeaLeaf/src/com/tealeaf/EventQueue.java
+++ b/TeaLeaf/src/com/tealeaf/EventQueue.java
@@ -1,61 +1,61 @@
package com.tealeaf;
import java.util.Queue;
import com.tealeaf.event.Event;
... | true | true | public static void dispatchEvents() {
String[] e = getEvents();
if (e.length > 256) {
String[] batch256 = new String[256];
int ii, len = e.length;
for (ii = 0; ii < len; ii += 256) {
int batchLength = len - ii;
if (batchLength < 256) {
break;
}
System.arraycopy(e, ii, batch256, 0, ... | public static void dispatchEvents() {
String[] e = getEvents();
if (e.length > 256) {
String[] batch256 = new String[256];
int ii, len = e.length;
for (ii = 0; ii < len; ii += 256) {
int batchLength = len - ii;
if (batchLength < 256) {
break;
}
System.arraycopy(e, ii, batch256, 0, ... |
diff --git a/src/com/android/browser/PhoneUi.java b/src/com/android/browser/PhoneUi.java
index 4da0668a..1bc0f772 100644
--- a/src/com/android/browser/PhoneUi.java
+++ b/src/com/android/browser/PhoneUi.java
@@ -1,595 +1,595 @@
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache ... | true | true | void hideNavScreen(int position, boolean animate) {
if (!showingNavScreen()) return;
final Tab tab = mUiController.getTabControl().getTab(position);
if ((tab == null) || !animate) {
if (tab != null) {
setActiveTab(tab);
} else if (mTabControl.getTabCou... | void hideNavScreen(int position, boolean animate) {
if (!showingNavScreen()) return;
final Tab tab = mUiController.getTabControl().getTab(position);
if ((tab == null) || !animate) {
if (tab != null) {
setActiveTab(tab);
} else if (mTabControl.getTabCou... |
diff --git a/src/main/java/com/gitblit/auth/RedmineAuthProvider.java b/src/main/java/com/gitblit/auth/RedmineAuthProvider.java
index 04adc459..7e957ecb 100644
--- a/src/main/java/com/gitblit/auth/RedmineAuthProvider.java
+++ b/src/main/java/com/gitblit/auth/RedmineAuthProvider.java
@@ -1,185 +1,180 @@
/*
* Copyright... | true | true | public UserModel authenticate(String username, char[] password) {
String jsonString = null;
try {
// first attempt by username/password
jsonString = getCurrentUserAsJson(username, password);
} catch (Exception e1) {
logger.warn("Failed to authenticate via username/... | public UserModel authenticate(String username, char[] password) {
String jsonString = null;
try {
// first attempt by username/password
jsonString = getCurrentUserAsJson(username, password);
} catch (Exception e1) {
logger.warn("Failed to authenticate via username/... |
diff --git a/AE-go_GameServer/src/com/aionemu/gameserver/skillengine/model/Skill.java b/AE-go_GameServer/src/com/aionemu/gameserver/skillengine/model/Skill.java
index 3ce9209c..a2bcef9a 100644
--- a/AE-go_GameServer/src/com/aionemu/gameserver/skillengine/model/Skill.java
+++ b/AE-go_GameServer/src/com/aionemu/gameserve... | true | true | public void useSkill()
{
if(!skillTemplate.isActive()
&& skillTemplate.isPassive()
&& skillTemplate.isProvoked()
&& skillTemplate.isToggle())
return;
if(!setProperties(skillTemplate.getInitproperties()))
return;
if(!preCastCheck())
return;
if(!setProperties(skillTemplate.getSetprop... | public void useSkill()
{
if(!skillTemplate.isActive()
&& skillTemplate.isPassive()
&& skillTemplate.isProvoked()
&& skillTemplate.isToggle())
return;
if(!setProperties(skillTemplate.getInitproperties()))
return;
if(!preCastCheck())
return;
if(!setProperties(skillTemplate.getSetprop... |
diff --git a/interfaces/src/swp_compiler_ss13/common/test/ExampleProgs.java b/interfaces/src/swp_compiler_ss13/common/test/ExampleProgs.java
index 2a38399..6018777 100644
--- a/interfaces/src/swp_compiler_ss13/common/test/ExampleProgs.java
+++ b/interfaces/src/swp_compiler_ss13/common/test/ExampleProgs.java
@@ -1,279 +... | true | true | private static String loadExample(String progName) {
String userDir = System.getProperty("user.dir");
Path path;
/* handling different paths depending on from where the tests are called*/
if (userDir.endsWith("fuc/code") || userDir.endsWith("crosstesting"))
path = FileSystems.getDefault().getPath("common",... | private static String loadExample(String progName) {
String userDir = System.getProperty("user.dir");
Path path;
/* handling different paths depending on from where the tests are called*/
if (userDir.endsWith("fuc/code") || userDir.endsWith("crosstesting"))
path = FileSystems.getDefault().getPath("common",... |
diff --git a/tests/dom/dom3/Test.java b/tests/dom/dom3/Test.java
index 2fe5196c7..c40f24e3b 100644
--- a/tests/dom/dom3/Test.java
+++ b/tests/dom/dom3/Test.java
@@ -1,723 +1,723 @@
/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999-2002 The Apache Software Foundation. All rights
* reserv... | false | true | public static void main( String[] argv) {
try {
boolean namespaces = true;
System.out.println("Running dom.dom3.Test...");
System.setProperty(DOMImplementationRegistry.PROPERTY,"org.apache.xerces.dom.DOMImplementationSourceImpl org.apache.xerces.dom.DOMXSImplementationSou... | public static void main( String[] argv) {
try {
boolean namespaces = true;
System.out.println("Running dom.dom3.Test...");
System.setProperty(DOMImplementationRegistry.PROPERTY,"org.apache.xerces.dom.DOMImplementationSourceImpl org.apache.xerces.dom.DOMXSImplementationSou... |
diff --git a/FSLOta/src/com/fsl/android/ota/OTAServerConfig.java b/FSLOta/src/com/fsl/android/ota/OTAServerConfig.java
index e2a5eed..e579942 100644
--- a/FSLOta/src/com/fsl/android/ota/OTAServerConfig.java
+++ b/FSLOta/src/com/fsl/android/ota/OTAServerConfig.java
@@ -1,78 +1,78 @@
/*
/* Copyright 2012 Freescale Semi... | true | true | boolean loadConfigureFromFile (String configFile, String product) {
try {
BuildPropParser parser = new BuildPropParser(new File(configFile), null);
String server = parser.getProp(server_ip_config);
String port_str = parser.getProp(port_config_str);
int port = new Long(port_str).intValue();
String file... | boolean loadConfigureFromFile (String configFile, String product) {
try {
BuildPropParser parser = new BuildPropParser(new File(configFile), null);
String server = parser.getProp(server_ip_config);
String port_str = parser.getProp(port_config_str);
int port = new Long(port_str).intValue();
String file... |
diff --git a/jbpm-flow-builder/src/main/java/org/jbpm/process/builder/dialect/xpath/XPATHReturnValueEvaluatorBuilder.java b/jbpm-flow-builder/src/main/java/org/jbpm/process/builder/dialect/xpath/XPATHReturnValueEvaluatorBuilder.java
index bb54bbc72..d6a043ed8 100644
--- a/jbpm-flow-builder/src/main/java/org/jbpm/proces... | true | true | public void build(final PackageBuildContext context,
final ReturnValueConstraintEvaluator constraintNode,
final ReturnValueDescr descr,
final ContextResolver contextResolver) {
String text = descr.getText();
try {
XPATHR... | public void build(final PackageBuildContext context,
final ReturnValueConstraintEvaluator constraintNode,
final ReturnValueDescr descr,
final ContextResolver contextResolver) {
String text = descr.getText();
try {
XPATHR... |
diff --git a/software/camod/test/unit/gov/nih/nci/camod/util/UtilSuite.java b/software/camod/test/unit/gov/nih/nci/camod/util/UtilSuite.java
index 10c2136a..91c3a784 100644
--- a/software/camod/test/unit/gov/nih/nci/camod/util/UtilSuite.java
+++ b/software/camod/test/unit/gov/nih/nci/camod/util/UtilSuite.java
@@ -1,59 ... | true | true | public static Test suite() {
TestSuite suite = new TestSuite("UtilSuite");
suite.addTest(gov.nih.nci.camod.util.AuthenticationFilterTest.suite());
suite.addTest(gov.nih.nci.camod.util.ConvertUtilTest.suite());
suite.addTest(gov.nih.nci.camod.util.CurrencyConverterTest.suite());
suite.addTest(gov.n... | public static Test suite() {
TestSuite suite = new TestSuite("UtilSuite");
suite.addTest(unit.gov.nih.nci.camod.util.AuthenticationFilterTest.suite());
suite.addTest(unit.gov.nih.nci.camod.util.ConvertUtilTest.suite());
suite.addTest(unit.gov.nih.nci.camod.util.CurrencyConverterTest.suite());
suit... |
diff --git a/src/test/java/org/xembly/XemblerTest.java b/src/test/java/org/xembly/XemblerTest.java
index 7a861ca..2c2c0a6 100644
--- a/src/test/java/org/xembly/XemblerTest.java
+++ b/src/test/java/org/xembly/XemblerTest.java
@@ -1,71 +1,67 @@
/**
* Copyright (c) 2013, xembly.org
* All rights reserved.
*
* Redi... | false | true | public void makesChangesToDomDocument() throws Exception {
final Document dom = DocumentBuilderFactory.newInstance()
.newDocumentBuilder().newDocument();
final Element root = dom.createElement("root");
dom.appendChild(root);
MatcherAssert.assertThat(
dom.getDo... | public void makesChangesToDomDocument() throws Exception {
final Document dom = DocumentBuilderFactory.newInstance()
.newDocumentBuilder().newDocument();
final Element root = dom.createElement("root");
dom.appendChild(root);
new Xembler(
new Directives(
... |
diff --git a/poulpe-view/poulpe-web-controller/src/main/java/org/jtalks/poulpe/validator/EmailValidator.java b/poulpe-view/poulpe-web-controller/src/main/java/org/jtalks/poulpe/validator/EmailValidator.java
index 93629ce4..2b7fc7d7 100644
--- a/poulpe-view/poulpe-web-controller/src/main/java/org/jtalks/poulpe/validator... | false | true | public void validate(ValidationContext validationContext) {
String email = (String) validationContext.getProperty().getValue();
PoulpeUser user = (PoulpeUser) validationContext.getBindContext().getValidatorArg("user");
user.setEmail(email);
if (beanValidationFails(validationContext, ... | public void validate(ValidationContext validationContext) {
String email = (String) validationContext.getProperty().getValue();
PoulpeUser user = (PoulpeUser) validationContext.getBindContext().getValidatorArg("user");
String oldEmail = user.getEmail();
user.setEmail(email);
... |
diff --git a/src/com/android/providers/contacts/ContactsProvider2.java b/src/com/android/providers/contacts/ContactsProvider2.java
index fa9af70..ba072c3 100644
--- a/src/com/android/providers/contacts/ContactsProvider2.java
+++ b/src/com/android/providers/contacts/ContactsProvider2.java
@@ -1,7825 +1,7827 @@
/*
* C... | true | true | protected Cursor queryLocal(Uri uri, String[] projection, String selection,
String[] selectionArgs, String sortOrder, long directoryId) {
if (VERBOSE_LOGGING) {
Log.v(TAG, "query: " + uri);
}
// Default active DB to the contacts DB if none has been set.
if (m... | protected Cursor queryLocal(Uri uri, String[] projection, String selection,
String[] selectionArgs, String sortOrder, long directoryId) {
if (VERBOSE_LOGGING) {
Log.v(TAG, "query: " + uri);
}
// Default active DB to the contacts DB if none has been set.
if (m... |
diff --git a/src/assemblernator/InstructionFormatter.java b/src/assemblernator/InstructionFormatter.java
index 34c96e8..0be86ec 100644
--- a/src/assemblernator/InstructionFormatter.java
+++ b/src/assemblernator/InstructionFormatter.java
@@ -1,214 +1,218 @@
package assemblernator;
/**
*
* @author Noah
* @date... | false | true | public static int [] formatOther(Instruction instr) {
String code = IOFormat.formatBinInteger(instr.getOpcode(), 6); //011000
String fmt;
String srcReg = "1000";
String destReg = "1000";
String ixr = "0000";
String mem = "000000000000";
if(instr.hasOperand("FL") && instr.hasOperand("DM")) {
fmt = "... | public static int [] formatOther(Instruction instr) {
String code = IOFormat.formatBinInteger(instr.getOpcode(), 6); //011000
String fmt;
String srcReg = "1000"; //default values
String destReg = "1000";
String ixr = "0000";
String mem = "000000000000";
if(instr.hasOperand("FL") && instr.hasOperand("D... |
diff --git a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/utils/SubstitutionDefinition.java b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/utils/SubstitutionDefinition.java
index 47640940..00bbb007 100644
--- a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/utils/SubstitutionDefinition... | false | true | public SubstitutionDefinition(String def, RegisterManager registers) throws IllegalArgumentException {
String lastSearch = registers.getRegister("/").getContent().getText();
//whatever character is after 's' is our delimiter
String delim = "" + def.charAt( def.indexOf('s') + 1);
//split on the delimit... | public SubstitutionDefinition(String def, RegisterManager registers) throws IllegalArgumentException {
String lastSearch = registers.getRegister("/").getContent().getText();
//whatever character is after 's' is our delimiter
String delim = "" + def.charAt( def.indexOf('s') + 1);
//split on the delimit... |
diff --git a/src/de/hdodenhof/holoreader/backend/gcm/GCMService.java b/src/de/hdodenhof/holoreader/backend/gcm/GCMService.java
index 565c78b..112c974 100644
--- a/src/de/hdodenhof/holoreader/backend/gcm/GCMService.java
+++ b/src/de/hdodenhof/holoreader/backend/gcm/GCMService.java
@@ -1,55 +1,55 @@
package de.hdodenhof... | true | true | public void sendMessage(ArrayList<String> receipients, String data) throws GCMException {
if (receipients.size() > 0) {
try {
Sender sender = new Sender(APIKEY);
Message.Builder messageBuilder = new Message.Builder();
messageBuilder.addData("type"... | public void sendMessage(ArrayList<String> receipients, String data) throws GCMException {
if (receipients.size() > 0) {
try {
Sender sender = new Sender(APIKEY);
Message.Builder messageBuilder = new Message.Builder();
messageBuilder.addData("type"... |
diff --git a/handwritten/webserver/servlets/CGIServlet.java b/handwritten/webserver/servlets/CGIServlet.java
index 1ea313e7f..f5f6ec45d 100644
--- a/handwritten/webserver/servlets/CGIServlet.java
+++ b/handwritten/webserver/servlets/CGIServlet.java
@@ -1,127 +1,131 @@
package servlets;
import generic.CommandExecuto... | true | true | public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
CommandExecutor myCommandExe = new CommandExecutor();
Thread myInterpreter;
String arguments = "";
String tempstring = "";
long length = 0;
String filename = "";
String extension = "";
String com... | public void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
CommandExecutor myCommandExe = new CommandExecutor();
Thread myInterpreter;
String arguments = "";
String tempstring = "";
long length = 0;
String filename = "";
String extension = "";
String com... |
diff --git a/src/framework/java/com/flexive/shared/content/FxData.java b/src/framework/java/com/flexive/shared/content/FxData.java
index fc46ce13..44e6386e 100644
--- a/src/framework/java/com/flexive/shared/content/FxData.java
+++ b/src/framework/java/com/flexive/shared/content/FxData.java
@@ -1,475 +1,476 @@
/*******... | false | true | public synchronized FxData createNew(int insertPosition) throws FxNotFoundException, FxInvalidParameterException, FxCreateException {
if (!mayCreateMore())
throw new FxCreateException("ex.content.data.create.maxMultiplicity", this.getXPath(), this.getAssignmentMultiplicity().getMax());
F... | public synchronized FxData createNew(int insertPosition) throws FxNotFoundException, FxInvalidParameterException, FxCreateException {
if (!mayCreateMore())
throw new FxCreateException("ex.content.data.create.maxMultiplicity", this.getXPath(), this.getAssignmentMultiplicity().getMax());
F... |
diff --git a/src/java/net/sf/jabref/Util.java b/src/java/net/sf/jabref/Util.java
index 63290f14b..43d824f81 100644
--- a/src/java/net/sf/jabref/Util.java
+++ b/src/java/net/sf/jabref/Util.java
@@ -1,559 +1,559 @@
/*
Copyright (C) 2003 Morten O. Alver
All programs in this directory and
subdirectories are published... | false | true | public static void openExternalViewer(String link, String fieldName, JabRefPreferences prefs) throws IOException
{
String cmdArray[] = new String[2];
// check html first since browser can invoke viewers
if (fieldName.equals("doi"))
{
cmdArray[0] = prefs.get("htmlviewer");
cmdArray[1] = Globals.DOI_... | public static void openExternalViewer(String link, String fieldName, JabRefPreferences prefs) throws IOException
{
String cmdArray[] = new String[2];
// check html first since browser can invoke viewers
if (fieldName.equals("doi"))
{
cmdArray[0] = prefs.get("htmlviewer");
cmdArray[1] = Globals.DOI_... |
diff --git a/Benbox/src/com/xoninja/benbox/ListadoNotas.java b/Benbox/src/com/xoninja/benbox/ListadoNotas.java
index da18660..ace2c38 100644
--- a/Benbox/src/com/xoninja/benbox/ListadoNotas.java
+++ b/Benbox/src/com/xoninja/benbox/ListadoNotas.java
@@ -1,61 +1,61 @@
package com.xoninja.benbox;
import com.xoninja.... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.listadonotas);
// listaNotas = (ListView) findViewById(R.id.listView);
mDbHelper = new NotesDbAdapter(this);
mDbHelper.open();
// Get... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.listadonotas);
//listaNotas = (ListView) findViewById(R.id.listView1);
mDbHelper = new NotesDbAdapter(this);
mDbHelper.open();
// Ge... |
diff --git a/auiplugin-tests/src/main/java/com/atlassian/aui/test/FuncTestServlet.java b/auiplugin-tests/src/main/java/com/atlassian/aui/test/FuncTestServlet.java
index 4a2ba79..3b050fe 100644
--- a/auiplugin-tests/src/main/java/com/atlassian/aui/test/FuncTestServlet.java
+++ b/auiplugin-tests/src/main/java/com/atlassi... | true | true | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
{
webResourceManager.requireResource("com.atlassian.auiplugin:ajs");
webResourceManager.requireResource("auiplugin-tests:ajs-tests");
webResourceManager.requireResource("auiplugin-... | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
{
webResourceManager.requireResource("com.atlassian.auiplugin:ajs");
webResourceManager.requireResource("auiplugin-tests:qunit");
if (req.getPathInfo().endsWith("/"))
{
... |
diff --git a/src/com/android/gallery3d/ui/CustomMenu.java b/src/com/android/gallery3d/ui/CustomMenu.java
index f1a4a46..dd8e6ab 100644
--- a/src/com/android/gallery3d/ui/CustomMenu.java
+++ b/src/com/android/gallery3d/ui/CustomMenu.java
@@ -1,93 +1,91 @@
/*
* Copyright (C) 2010 The Android Open Source Project
*
... | true | true | public DropDownMenu(Context context, Button button, int menuId,
OnMenuItemClickListener listener) {
mButton = button;
mButton.setBackgroundDrawable(context.getResources().getDrawable(
R.drawable.dropdown_normal_holo_dark));
mPopupMenu = new... | public DropDownMenu(Context context, Button button, int menuId,
OnMenuItemClickListener listener) {
mButton = button;
mPopupMenu = new PopupMenu(context, mButton);
mMenu = mPopupMenu.getMenu();
mPopupMenu.getMenuInflater().inflate(menuId, mMenu);
... |
diff --git a/src/com/nloko/android/syncmypix/contactutils/ContactProxy.java b/src/com/nloko/android/syncmypix/contactutils/ContactProxy.java
index 8383a2e..8f9814d 100644
--- a/src/com/nloko/android/syncmypix/contactutils/ContactProxy.java
+++ b/src/com/nloko/android/syncmypix/contactutils/ContactProxy.java
@@ -1,67 +1... | true | true | public void updatePhoto (ContentResolver cr, byte[] image, String id, boolean markDirty) {
if (cr == null || id == null) {
return;
}
ContentValues values = new ContentValues();
// we have to include this here otherwise the provider will set it to 1
if (markDirty) {
values.put("_sync_dirty", 0)... | public void updatePhoto (ContentResolver cr, byte[] image, String id, boolean markDirty) {
if (cr == null || id == null) {
return;
}
ContentValues values = new ContentValues();
// we have to include this here otherwise the provider will set it to 1
if (!markDirty) {
values.put("_sync_dirty", 0... |
diff --git a/signserver/src/java/org/signserver/validationservice/common/ValidationStatus.java b/signserver/src/java/org/signserver/validationservice/common/ValidationStatus.java
index 10c760837..0fb5eb0dd 100644
--- a/signserver/src/java/org/signserver/validationservice/common/ValidationStatus.java
+++ b/signserver/sr... | true | true | public void displayStatus(int workerId, PrintStream out, boolean complete) {
out.println("Status of Group Key Service with Id " + workerId + " is :\n" +
" SignToken Status : "+signTokenStatuses[getTokenStatus()] + " \n\n" );
if(complete){
out.println("Active Properties are :");
if(getActiveSigne... | public void displayStatus(int workerId, PrintStream out, boolean complete) {
out.println("Status of Validation Service with Id " + workerId + " is :\n" +
" SignToken Status : "+signTokenStatuses[getTokenStatus()] + " \n\n" );
if(complete){
out.println("Active Properties are :");
if(getActiveSign... |
diff --git a/src/main/java/hudson/plugins/ec2/SlaveTemplate.java b/src/main/java/hudson/plugins/ec2/SlaveTemplate.java
index 70bbddc..e272f8e 100644
--- a/src/main/java/hudson/plugins/ec2/SlaveTemplate.java
+++ b/src/main/java/hudson/plugins/ec2/SlaveTemplate.java
@@ -1,213 +1,212 @@
package hudson.plugins.ec2;
imp... | true | true | public FormValidation doValidateAmi(
@QueryParameter String accessId, @QueryParameter String secretKey,
@QueryParameter AwsRegion region,
final @QueryParameter String ami) throws IOException, ServletException {
Jec2 jec2 = EC2Cloud.connect(accessId, se... | public FormValidation doValidateAmi(
@QueryParameter String accessId, @QueryParameter String secretKey,
@QueryParameter AwsRegion region,
final @QueryParameter String ami) throws IOException, ServletException {
Jec2 jec2 = EC2Cloud.connect(accessId, se... |
diff --git a/Simplex3dConsole/src/simplex3d/console/ConsolePanel.java b/Simplex3dConsole/src/simplex3d/console/ConsolePanel.java
index 749272a6..dea298de 100644
--- a/Simplex3dConsole/src/simplex3d/console/ConsolePanel.java
+++ b/Simplex3dConsole/src/simplex3d/console/ConsolePanel.java
@@ -1,345 +1,344 @@
/*
* Simpl... | false | true | public ConsolePanel() {
initComponents();
Preferences prefs = Preferences.userNodeForPackage(this.getClass());
textComponent = new RSyntaxTextArea();
FindReplacePanel findReplace = new FindReplacePanel(
prefs,
textComponent, new RTextScrollPane(),
... | public ConsolePanel() {
initComponents();
Preferences prefs = Preferences.userNodeForPackage(this.getClass());
textComponent = new RSyntaxTextArea();
FindReplacePanel findReplace = new FindReplacePanel(
prefs,
textComponent, new RTextScrollPane(),
... |
diff --git a/biosim/core/util/BTFLogger.java b/biosim/core/util/BTFLogger.java
index 61c7cfa..8faa5a8 100644
--- a/biosim/core/util/BTFLogger.java
+++ b/biosim/core/util/BTFLogger.java
@@ -1,94 +1,96 @@
package biosim.core.util;
import biosim.core.sim.Simulation;
import biosim.core.sim.Logger;
import sim.engine... | true | true | public void step(SimState simstate){
if(ximgout==null) return;
if(simstate instanceof Simulation){
Simulation sim = (Simulation)simstate;
for(int i=0;i<sim.bodies.size();i++){
Double2D loc = sim.field2D.getObjectLocation(sim.bodies.get(i));
MutableDouble2D dir = new MutableDouble2D(sim.bodyOrientatio... | public void step(SimState simstate){
if(ximgout==null) return;
if(simstate instanceof Simulation){
Simulation sim = (Simulation)simstate;
for(int i=0;i<sim.bodies.size();i++){
Double2D loc = sim.field2D.getObjectLocation(sim.bodies.get(i));
MutableDouble2D dir = new MutableDouble2D(sim.bodyOrientatio... |
diff --git a/scm-core/src/main/java/sonia/scm/web/filter/PermissionFilter.java b/scm-core/src/main/java/sonia/scm/web/filter/PermissionFilter.java
index c4aed91b7..dedea9d66 100644
--- a/scm-core/src/main/java/sonia/scm/web/filter/PermissionFilter.java
+++ b/scm-core/src/main/java/sonia/scm/web/filter/PermissionFilter.... | true | true | protected void doFilter(HttpServletRequest request,
HttpServletResponse response, FilterChain chain)
throws IOException, ServletException
{
WebSecurityContext securityContext = securityContextProvider.get();
AssertUtil.assertIsNotNull(securityContext);
User user = s... | protected void doFilter(HttpServletRequest request,
HttpServletResponse response, FilterChain chain)
throws IOException, ServletException
{
WebSecurityContext securityContext = securityContextProvider.get();
AssertUtil.assertIsNotNull(securityContext);
User user = s... |
diff --git a/ij/io/SaveDialog.java b/ij/io/SaveDialog.java
index 2a27bdd2..3612be78 100644
--- a/ij/io/SaveDialog.java
+++ b/ij/io/SaveDialog.java
@@ -1,237 +1,236 @@
package ij.io;
import ij.gui.GenericDialog;
import java.awt.*;
import java.io.*;
import javax.swing.*;
import javax.swing.filechooser.*;
import ij... | true | true | void save(String title, String defaultDir, String defaultName) {
ImageJ ij = IJ.getInstance();
Frame parent = ij!=null?ij:new Frame();
FileDialog fd = new FileDialog(parent, title, FileDialog.SAVE);
if (defaultName!=null)
fd.setFile(defaultName);
if (defaultDir!=null)
fd.setDirectory(defaultDir);
fd.... | void save(String title, String defaultDir, String defaultName) {
ImageJ ij = IJ.getInstance();
Frame parent = ij!=null?ij:new Frame();
FileDialog fd = new FileDialog(parent, title, FileDialog.SAVE);
if (defaultName!=null)
fd.setFile(defaultName);
if (defaultDir!=null)
fd.setDirectory(defaultDir);
fd.... |
diff --git a/opentripplanner-api-thrift/src/main/java/org/opentripplanner/api/thrift/util/EdgeMatchExtension.java b/opentripplanner-api-thrift/src/main/java/org/opentripplanner/api/thrift/util/EdgeMatchExtension.java
index fae1f4950..6ed607c53 100644
--- a/opentripplanner-api-thrift/src/main/java/org/opentripplanner/ap... | true | true | public EdgeMatchExtension(CandidateEdge candidate) {
setEdge(new GraphEdgeExtension(candidate.edge));
setClosest_point(new LatLngExtension(candidate.nearestPointOnEdge));
setScore(candidate.getScore());
}
| public EdgeMatchExtension(CandidateEdge candidate) {
setEdge(new GraphEdgeExtension(candidate.getEdge()));
setClosest_point(new LatLngExtension(candidate.getNearestPointOnEdge()));
setScore(candidate.getScore());
}
|
diff --git a/esb/deploy-src/ccts/caXchange-outbound-core/src/main/java/gov/nih/nci/caXchange/outbound/operations/RegistrationInvocationStrategy.java b/esb/deploy-src/ccts/caXchange-outbound-core/src/main/java/gov/nih/nci/caXchange/outbound/operations/RegistrationInvocationStrategy.java
index d80197d1..1270c62d 100644
-... | true | true | public GridInvocationResult invokeGridService(DeliveryChannel channel,
MessageExchange exchange, GridMessage message)
throws GridInvocationException {
try {
RegistrationConsumerClient client = new RegistrationConsumerClient(
serviceUrl);
SourceTransformer transformer = new SourceTransformer();
... | public GridInvocationResult invokeGridService(DeliveryChannel channel,
MessageExchange exchange, GridMessage message)
throws GridInvocationException {
try {
RegistrationConsumerClient client = new RegistrationConsumerClient(
serviceUrl);
SourceTransformer transformer = new SourceTransformer();
... |
diff --git a/api/src/main/java/org/jscep/content/CaCertificateContentHandler.java b/api/src/main/java/org/jscep/content/CaCertificateContentHandler.java
index d3e351fe..3e706afc 100644
--- a/api/src/main/java/org/jscep/content/CaCertificateContentHandler.java
+++ b/api/src/main/java/org/jscep/content/CaCertificateConte... | true | true | public List<X509Certificate> getContent(InputStream in, String mimeType) throws IOException {
LOGGER.entering(getClass().getName(), "getContent", new Object[] {in, mimeType});
final List<X509Certificate> certs = new ArrayList<X509Certificate>(2);
final CertificateFactory cf;
try {
cf = CertificateFactory... | public List<X509Certificate> getContent(InputStream in, String mimeType) throws IOException {
LOGGER.entering(getClass().getName(), "getContent", new Object[] {in, mimeType});
final List<X509Certificate> certs = new ArrayList<X509Certificate>(2);
final CertificateFactory cf;
try {
cf = CertificateFactory... |
diff --git a/src/com/mpower/security/ClementineAuthenticationHelper.java b/src/com/mpower/security/ClementineAuthenticationHelper.java
index 2633dbb..516fe17 100644
--- a/src/com/mpower/security/ClementineAuthenticationHelper.java
+++ b/src/com/mpower/security/ClementineAuthenticationHelper.java
@@ -1,81 +1,82 @@
pack... | true | true | public void postProcess(Authentication authentication) {
Map<String, Object> info = OrangeLeapUsernamePasswordLocal.getOrangeLeapAuthInfo();
//When coming in via the api we need to populate this however when via the UI you will get a
// npe and since this data does not need to be populated for the UI I am ju... | public void postProcess(Authentication authentication) {
Map<String, Object> info = OrangeLeapUsernamePasswordLocal.getOrangeLeapAuthInfo();
//When coming in via the api we need to populate this however when via the UI you will get a
// npe and since this data does not need to be populated for the UI I am ju... |
diff --git a/openjpa-slice/src/test/java/org/apache/openjpa/slice/policy/SampleFinderPolicy.java b/openjpa-slice/src/test/java/org/apache/openjpa/slice/policy/SampleFinderPolicy.java
index 5982f206b..c0ed7682d 100644
--- a/openjpa-slice/src/test/java/org/apache/openjpa/slice/policy/SampleFinderPolicy.java
+++ b/openjpa... | true | true | public String[] getTargets(Class<?> cls, Object oid, List<String> slices, Object context) {
if (cls == PObject.class || cls == Person.class) {
int id = ((Long)oid).intValue();
return new String[]{slices.get(id%2)};
}
if (cls == Car.class) {
String vi... | public String[] getTargets(Class<?> cls, Object oid, List<String> slices, Object context) {
if (cls == PObject.class || cls == Person.class) {
int id = ((Long)oid).intValue();
return new String[]{slices.get(id%2)};
}
if (cls == Car.class) {
String vi... |
diff --git a/org.dawnsci.conversion/src/org/dawnsci/conversion/converters/ProcessConversion.java b/org.dawnsci.conversion/src/org/dawnsci/conversion/converters/ProcessConversion.java
index 781e3c1a..d0245870 100644
--- a/org.dawnsci.conversion/src/org/dawnsci/conversion/converters/ProcessConversion.java
+++ b/org.dawns... | true | true | protected void iterate(final ILazyDataset lz,
final String nameFrag,
final IConversionContext context) throws Exception {
if (service == null) service = (IOperationService)ServiceManager.getService(IOperationService.class);
Object userObject = context.getUserO... | protected void iterate(final ILazyDataset lz,
final String nameFrag,
final IConversionContext context) throws Exception {
if (service == null) service = (IOperationService)ServiceManager.getService(IOperationService.class);
Object userObject = context.getUserO... |
diff --git a/CubicTestPlugin/src/main/java/org/cubictest/common/utils/UserInfo.java b/CubicTestPlugin/src/main/java/org/cubictest/common/utils/UserInfo.java
index 199e0cb2..a76b5ab9 100644
--- a/CubicTestPlugin/src/main/java/org/cubictest/common/utils/UserInfo.java
+++ b/CubicTestPlugin/src/main/java/org/cubictest/comm... | true | true | public static void showErrorDialog(Throwable e, String userMessage, Shell shell) {
e = ErrorHandler.getCause(e);
try {
if (e == null) {
MessageDialog.openError(shell, UiText.APP_TITLE, userMessage);
}
else {
String extendedMsg = userMessage + ((e == null) ? "" : ": \n" + e.toString());
Mess... | public static void showErrorDialog(Throwable e, String userMessage, Shell shell) {
e = ErrorHandler.getCause(e);
try {
if (e == null) {
MessageDialog.openError(shell, UiText.APP_TITLE, userMessage);
}
else {
String extendedMsg = userMessage + ((e == null) ? "" : "\n\n" + e.toString());
Mess... |
diff --git a/java/tools/src/com/jopdesign/build/ReplaceNativeAndCPIdx.java b/java/tools/src/com/jopdesign/build/ReplaceNativeAndCPIdx.java
index 8a8c0b65..23cddb30 100644
--- a/java/tools/src/com/jopdesign/build/ReplaceNativeAndCPIdx.java
+++ b/java/tools/src/com/jopdesign/build/ReplaceNativeAndCPIdx.java
@@ -1,354 +1,... | false | true | private Method replace(Method method) {
MethodGen mg = new MethodGen(method, clazz.getClassName(), cpoolgen);
InstructionList il = mg.getInstructionList();
InstructionFinder f = new InstructionFinder(il);
String methodId = method.getName() + method.getSignature();
MethodInfo mi = cli.getMethodInfo(methodI... | private Method replace(Method method) {
MethodGen mg = new MethodGen(method, clazz.getClassName(), cpoolgen);
InstructionList il = mg.getInstructionList();
InstructionFinder f = new InstructionFinder(il);
String methodId = method.getName() + method.getSignature();
MethodInfo mi = cli.getMethodInfo(methodI... |
diff --git a/gdx/src/com/badlogic/gdx/assets/loaders/TextureLoader.java b/gdx/src/com/badlogic/gdx/assets/loaders/TextureLoader.java
index 8aa78c922..b7179fd2d 100644
--- a/gdx/src/com/badlogic/gdx/assets/loaders/TextureLoader.java
+++ b/gdx/src/com/badlogic/gdx/assets/loaders/TextureLoader.java
@@ -1,96 +1,97 @@
/***... | true | true | public void loadAsync (AssetManager manager, String fileName, TextureParameter parameter) {
if (parameter == null || (parameter != null && parameter.textureData == null)) {
Pixmap pixmap = null;
Format format = null;
boolean genMipMaps = false;
texture = null;
if (parameter != null) {
format = pa... | public void loadAsync (AssetManager manager, String fileName, TextureParameter parameter) {
if (parameter == null || (parameter != null && parameter.textureData == null)) {
Pixmap pixmap = null;
Format format = null;
boolean genMipMaps = false;
texture = null;
if (parameter != null) {
format = pa... |
diff --git a/RichClient/src/main/java/com/tihiy/rclint/implement/ControlPanel.java b/RichClient/src/main/java/com/tihiy/rclint/implement/ControlPanel.java
index d6d27b1..bcbda53 100644
--- a/RichClient/src/main/java/com/tihiy/rclint/implement/ControlPanel.java
+++ b/RichClient/src/main/java/com/tihiy/rclint/implement/C... | true | true | private void initComponent(){
butChooseSignal = new JButton("Choose Signal");
butChooseFirstLayerSignal = new JButton("First Layer Signal");
butChooseBaseSignal = new JButton("Base signal");
butCalculate = new JButton("Calculate");
butDefault = new JButton("Default signal");... | private void initComponent(){
butChooseSignal = new JButton("Choose Signal");
butChooseFirstLayerSignal = new JButton("First Layer Signal");
butChooseBaseSignal = new JButton("Base signal");
butCalculate = new JButton("Calculate");
butDefault = new JButton("Default signal");... |
diff --git a/RowanSAC/src/main/java/com/rowan/ieee/sac2014/MainActivity.java b/RowanSAC/src/main/java/com/rowan/ieee/sac2014/MainActivity.java
index 380cedf..4fbd914 100644
--- a/RowanSAC/src/main/java/com/rowan/ieee/sac2014/MainActivity.java
+++ b/RowanSAC/src/main/java/com/rowan/ieee/sac2014/MainActivity.java
@@ -1,2... | true | true | private void selectItem(int position) {
// update the main content by replacing fragments
android.app.Fragment fragment = new PlanetFragment();
Bundle args = new Bundle();
args.putInt(PlanetFragment.ARG_PLANET_NUMBER, position);
fragment.setArguments(args);
FragmentM... | private void selectItem(int position) {
// update the main content by replacing fragments
android.app.Fragment fragment = new PlanetFragment();
Bundle args = new Bundle();
args.putInt(PlanetFragment.ARG_PLANET_NUMBER, position);
fragment.setArguments(args);
FragmentM... |
diff --git a/jamwiki-core/src/main/java/org/jamwiki/model/LogItem.java b/jamwiki-core/src/main/java/org/jamwiki/model/LogItem.java
index 6c2a97d9..0d68cf66 100644
--- a/jamwiki-core/src/main/java/org/jamwiki/model/LogItem.java
+++ b/jamwiki-core/src/main/java/org/jamwiki/model/LogItem.java
@@ -1,308 +1,312 @@
/**
* ... | true | true | public static LogItem initLogItem(Topic topic, TopicVersion topicVersion, String authorName) {
LogItem logItem = new LogItem();
switch (topicVersion.getEditType()) {
case TopicVersion.EDIT_DELETE:
case TopicVersion.EDIT_UNDELETE:
logItem.setLogType(LOG_TYPE_DELETE);
// format for delete log is "Topic... | public static LogItem initLogItem(Topic topic, TopicVersion topicVersion, String authorName) {
LogItem logItem = new LogItem();
switch (topicVersion.getEditType()) {
case TopicVersion.EDIT_DELETE:
case TopicVersion.EDIT_UNDELETE:
logItem.setLogType(LOG_TYPE_DELETE);
// format for delete log is "Topic... |
diff --git a/src/main/java/ch/uzh/ddis/katts/bolts/aggregate/component/AvgPartitionerComponent.java b/src/main/java/ch/uzh/ddis/katts/bolts/aggregate/component/AvgPartitionerComponent.java
index b93f83b..5160913 100644
--- a/src/main/java/ch/uzh/ddis/katts/bolts/aggregate/component/AvgPartitionerComponent.java
+++ b/sr... | false | true | public Double calculateAggregate(List<Object> componentBuckets) {
double totalSum = 0;
double totalCount = 0;
for (Object bucketValue : componentBuckets) {
if (bucketValue == null) {
continue;
}
AvgStorageItem internalBucketValue = (AvgStorageItem) bucketValue;
totalSum = internalBucketValue.getS... | public Double calculateAggregate(List<Object> componentBuckets) {
double totalSum = 0;
double totalCount = 0;
for (Object bucketValue : componentBuckets) {
if (bucketValue == null) {
continue;
}
AvgStorageItem internalBucketValue = (AvgStorageItem) bucketValue;
totalSum += internalBucketValue.get... |
diff --git a/ID3Tagger/src/com/se1by/View.java b/ID3Tagger/src/com/se1by/View.java
index 0f17373..a13bc11 100644
--- a/ID3Tagger/src/com/se1by/View.java
+++ b/ID3Tagger/src/com/se1by/View.java
@@ -1,235 +1,237 @@
package com.se1by;
import java.awt.*;
import java.awt.event.*;
import java.io.File;
import javax.s... | false | true | public View(String title) {
// Frame-Initialisierung
super(title);
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
int frameWidth = 300;
int frameHeight = 536;
setSize(frameWidth, frameHeight);
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
int x = (d.width - getSize().width) / ... | public View(String title) {
// Frame-Initialisierung
super(title);
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
int frameWidth = 300;
int frameHeight = 536;
setSize(frameWidth, frameHeight);
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
int x = (d.width - getSize().width) / ... |
diff --git a/src/ui-test/java/com/gmail/at/zhuikov/aleksandr/it/AbstractWebDriverTest.java b/src/ui-test/java/com/gmail/at/zhuikov/aleksandr/it/AbstractWebDriverTest.java
index 0602b8e..b8fa8f4 100644
--- a/src/ui-test/java/com/gmail/at/zhuikov/aleksandr/it/AbstractWebDriverTest.java
+++ b/src/ui-test/java/com/gmail/at... | true | true | protected WebDriver createDriver() {
String seleniumDriverUri = System.getenv("SELENIUM_DRIVER");
seleniumDriverUri += "&" + getClass().getName() + "." + name.getMethodName();
WebDriver driver = SeleniumFactory.createWebDriver(
System.getenv("SELENIUM_STARTING_URL"),
seleniumDriverUri);
if (dr... | protected WebDriver createDriver() {
String seleniumDriverUri = System.getenv("SELENIUM_DRIVER");
seleniumDriverUri += "&job-name=" + getClass().getName() + "." + name.getMethodName();
WebDriver driver = SeleniumFactory.createWebDriver(
System.getenv("SELENIUM_STARTING_URL"),
seleniumDriverUri);
... |
diff --git a/core/src/main/java/org/apache/mahout/clustering/fuzzykmeans/FuzzyKMeansDriver.java b/core/src/main/java/org/apache/mahout/clustering/fuzzykmeans/FuzzyKMeansDriver.java
index 78aa4c09e..f3c9d5eb1 100644
--- a/core/src/main/java/org/apache/mahout/clustering/fuzzykmeans/FuzzyKMeansDriver.java
+++ b/core/src/m... | true | true | public int run(String[] args) throws Exception {
addInputOption();
addOutputOption();
addOption(DefaultOptionCreator.distanceMeasureOption().create());
addOption(DefaultOptionCreator.clustersInOption()
.withDescription("The input centroids, as Vectors. Must be a SequenceFile of Writable, Clu... | public int run(String[] args) throws Exception {
addInputOption();
addOutputOption();
addOption(DefaultOptionCreator.distanceMeasureOption().create());
addOption(DefaultOptionCreator.clustersInOption()
.withDescription("The input centroids, as Vectors. Must be a SequenceFile of Writable, Clu... |
diff --git a/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/analyzer/DefaultAnalyzer.java b/plugins/org.eclipse.emf.mwe.ui.editor/src/org/eclipse/emf/mwe/ui/internal/editor/analyzer/DefaultAnalyzer.java
index d51359e4..1965b127 100644
--- a/plugins/org.eclipse.emf.mwe.ui.editor/src/org... | true | true | protected void checkAttribute(final IType mappedType, final AbstractWorkflowElement element,
final IWorkflowAttribute attribute) {
if (mappedType == null || element == null || attribute == null)
throw new IllegalArgumentException();
if (IWorkflowAttribute.ID_REF_ATTRIBUTE.equals(attribute.getName()))
ret... | protected void checkAttribute(final IType mappedType, final AbstractWorkflowElement element,
final IWorkflowAttribute attribute) {
if (mappedType == null || element == null || attribute == null)
throw new IllegalArgumentException();
if (IWorkflowAttribute.ID_REF_ATTRIBUTE.equals(attribute.getName()) || IWor... |
diff --git a/src/filius/gui/anwendungssicht/GUIApplicationTerminalWindow.java b/src/filius/gui/anwendungssicht/GUIApplicationTerminalWindow.java
index 7bcade8..6524900 100644
--- a/src/filius/gui/anwendungssicht/GUIApplicationTerminalWindow.java
+++ b/src/filius/gui/anwendungssicht/GUIApplicationTerminalWindow.java
@@ ... | false | true | public GUIApplicationTerminalWindow(GUIDesktopPanel desktop, String appName) {
super(desktop, appName);
this.setMaximizable(false);
this.setResizable(false);
jobRunning = false;
multipleObserverEvents = false;
terminalField = new JTextArea("");
terminalField.setEditable(false);
terminalField.setCaretC... | public GUIApplicationTerminalWindow(GUIDesktopPanel desktop, String appName){
super(desktop, appName);
this.setMaximizable(false);
this.setResizable(false);
jobRunning = false;
multipleObserverEvents = false;
terminalField = new JTextArea("");
terminalField.setEditable(false);
terminalField.setCaretCo... |
diff --git a/humboldt-commons/trunk/src/main/java/eu/esdihumboldt/tools/AttributeProperty.java b/humboldt-commons/trunk/src/main/java/eu/esdihumboldt/tools/AttributeProperty.java
index 880af855a..06ff0b70c 100644
--- a/humboldt-commons/trunk/src/main/java/eu/esdihumboldt/tools/AttributeProperty.java
+++ b/humboldt-comm... | true | true | public static Collection<? extends Property> getAttributeProperties(
Property parent) {
Collection<Property> result = new ArrayList<Property>();
Object attributes = parent.getUserData().get(XML_ATTRIBUTES);
if (attributes instanceof Map<?, ?>) {
Map<String, String> attMap = (Map<String, String>) attribu... | public static Collection<? extends Property> getAttributeProperties(
Property parent) {
Collection<Property> result = new ArrayList<Property>();
Object attributes = parent.getUserData().get(XML_ATTRIBUTES);
if (attributes instanceof Map<?, ?>) {
Map<String, String> attMap = (Map<String, String>) attribu... |
diff --git a/dvn-app/trunk/src/DVN-web/src/edu/harvard/iq/dvn/core/web/admin/GuestBookResponseDataPage.java b/dvn-app/trunk/src/DVN-web/src/edu/harvard/iq/dvn/core/web/admin/GuestBookResponseDataPage.java
index b407da58c..dd84c4710 100644
--- a/dvn-app/trunk/src/DVN-web/src/edu/harvard/iq/dvn/core/web/admin/GuestBookRe... | false | true | public void init() {
guestBookResponsesAll = guestBookResponseServiceBean.findAll();
vdc = getVDCRequestBean().getCurrentVDC();
for (GuestBookResponse gbr : guestBookResponsesAll) {
if (gbr.getStudy().getOwner().equals(vdc)) {
guestBookResponses.add(gbr);
... | public void init() {
guestBookResponsesAll = guestBookResponseServiceBean.findAll();
vdc = getVDCRequestBean().getCurrentVDC();
for (GuestBookResponse gbr : guestBookResponsesAll) {
if (gbr.getStudy().getOwner().equals(vdc)) {
guestBookResponses.add(gbr);
... |
diff --git a/src/main/java/ch/tutteli/tsphp/translators/php54/antlr/ErrorReportingPHP54TranslatorWalker.java b/src/main/java/ch/tutteli/tsphp/translators/php54/antlr/ErrorReportingPHP54TranslatorWalker.java
index 8e9017a..de847bf 100644
--- a/src/main/java/ch/tutteli/tsphp/translators/php54/antlr/ErrorReportingPHP54Tra... | true | true | public void reportError(RecognitionException exception) {
hasFoundError = true;
for (IErrorLogger logger : errorLoggers) {
logger.log(new TSPHPException(exception));
}
}
| public void reportError(RecognitionException exception) {
hasFoundError = true;
for (IErrorLogger logger : errorLoggers) {
logger.log(new TSPHPException("Line " + exception.line + "|" + exception.charPositionInLine
+ " translator php 5.4 exception occured. Unexpected ... |
diff --git a/src/org/red5/logging/LoggerContextFilter.java b/src/org/red5/logging/LoggerContextFilter.java
index 39eeb960..871e52fb 100644
--- a/src/org/red5/logging/LoggerContextFilter.java
+++ b/src/org/red5/logging/LoggerContextFilter.java
@@ -1,79 +1,79 @@
package org.red5.logging;
import java.io.IOException;
... | false | true | public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
System.out.println("Context name: " + contextName);
LoggingContextSelector selector = (LoggingContextSelector) StaticLoggerBinder.SINGLETON.getContextSelector();
System.out.pr... | public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
System.out.printf("Context name: %s\n", contextName);
LoggingContextSelector selector = (LoggingContextSelector) StaticLoggerBinder.SINGLETON.getContextSelector();
System.out.... |
diff --git a/com/zolli/rodolffoutilsreloaded/listeners/commandExecutor.java b/com/zolli/rodolffoutilsreloaded/listeners/commandExecutor.java
index bdf11a5..3b50794 100644
--- a/com/zolli/rodolffoutilsreloaded/listeners/commandExecutor.java
+++ b/com/zolli/rodolffoutilsreloaded/listeners/commandExecutor.java
@@ -1,418 +... | true | true | public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
if(command.getName().equalsIgnoreCase("achat") || command.getName().equalsIgnoreCase("ac")) {
if(args.length < 1) {
sender.sendMessage(plugin.messages.getString("common.badSyntax") + "/ac [üzenet]... | public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
if(command.getName().equalsIgnoreCase("achat") || command.getName().equalsIgnoreCase("ac")) {
if(args.length < 1) {
sender.sendMessage(plugin.messages.getString("common.badSyntax") + "/ac [üzenet]... |
diff --git a/svnkit-cli/src/org/tmatesoft/svn/cli2/svn/SVNDiffCommand.java b/svnkit-cli/src/org/tmatesoft/svn/cli2/svn/SVNDiffCommand.java
index 11851505f..89655b5ed 100644
--- a/svnkit-cli/src/org/tmatesoft/svn/cli2/svn/SVNDiffCommand.java
+++ b/svnkit-cli/src/org/tmatesoft/svn/cli2/svn/SVNDiffCommand.java
@@ -1,283 +... | true | true | public void run() throws SVNException {
if (getSVNEnvironment().isXML()) {
if (!getSVNEnvironment().isSummarize()) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CL_ARG_PARSING_ERROR,
"''--xml'' option only valid with ''--summarize'' option")... | public void run() throws SVNException {
if (getSVNEnvironment().isXML()) {
if (!getSVNEnvironment().isSummarize()) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.CL_ARG_PARSING_ERROR,
"'--xml' option only valid with '--summarize' option");
... |
diff --git a/svnkit/src/org/tmatesoft/svn/core/wc/SVNChangelistClient.java b/svnkit/src/org/tmatesoft/svn/core/wc/SVNChangelistClient.java
index c3e1e4fe9..83f25e7f1 100644
--- a/svnkit/src/org/tmatesoft/svn/core/wc/SVNChangelistClient.java
+++ b/svnkit/src/org/tmatesoft/svn/core/wc/SVNChangelistClient.java
@@ -1,202 +... | true | true | private void setChangelist(File[] paths, String changelistName, String matchingChangelistName) throws SVNException {
SVNWCAccess wcAccess = createWCAccess();
for (int i = 0; i < paths.length; i++) {
checkCancelled();
File path = paths[i].getAbsoluteFile();
try {
... | private void setChangelist(File[] paths, String changelistName, String matchingChangelistName) throws SVNException {
SVNWCAccess wcAccess = createWCAccess();
for (int i = 0; i < paths.length; i++) {
checkCancelled();
File path = paths[i].getAbsoluteFile();
try {
... |
diff --git a/src_lib/yang/graphics/font/DrawableString.java b/src_lib/yang/graphics/font/DrawableString.java
index 5f0a3896..462cda3a 100644
--- a/src_lib/yang/graphics/font/DrawableString.java
+++ b/src_lib/yang/graphics/font/DrawableString.java
@@ -1,409 +1,411 @@
package yang.graphics.font;
import yang.graphics.... | false | true | public void createStringPositions(float[] positionTarget,float[] offsetsTarget) {
int c=0;
int o=0;
float lineShift = 0;
int lstSpace = -1;
float spaceCharX = -1;
mRecentStringWidth = 0;
mRecentCharCount = 0;
mRecentLineCount = 1;
mRecentStringHeight = 0;
boolean wordSplit = false;
float spacing ... | public void createStringPositions(float[] positionTarget,float[] offsetsTarget) {
int c=0;
int o=0;
float lineShift = 0;
int lstSpace = -1;
float spaceCharX = -1;
mRecentStringWidth = 0;
mRecentCharCount = 0;
mRecentLineCount = 1;
mRecentStringHeight = 0;
boolean wordSplit = false;
float spacing ... |
diff --git a/src/java/com/idega/block/cal/business/CalServiceBean.java b/src/java/com/idega/block/cal/business/CalServiceBean.java
index 8f77ac5..53b881b 100644
--- a/src/java/com/idega/block/cal/business/CalServiceBean.java
+++ b/src/java/com/idega/block/cal/business/CalServiceBean.java
@@ -1,663 +1,663 @@
package co... | true | true | public List<CalScheduleEntry> getCalendarEntries(String login, String password, String instanceId, Integer cacheTime, boolean remoteMode) {
if (instanceId == null) {
return null;
}
if (remoteMode && (login == null || password == null)) {
return null;
}
IWContext iwc = CoreUtil.getIWContext();
i... | public List<CalScheduleEntry> getCalendarEntries(String login, String password, String instanceId, Integer cacheTime, boolean remoteMode) {
if (instanceId == null) {
return null;
}
if (remoteMode && (login == null || password == null)) {
return null;
}
IWContext iwc = CoreUtil.getIWContext();
i... |
diff --git a/sip-servlets-tomcat-jboss4/src/main/java/org/jboss/web/tomcat/service/session/JBossCacheClusteredSipSession.java b/sip-servlets-tomcat-jboss4/src/main/java/org/jboss/web/tomcat/service/session/JBossCacheClusteredSipSession.java
index a2d3c304a..580fd06f9 100644
--- a/sip-servlets-tomcat-jboss4/src/main/jav... | true | true | protected void populateMetaData() {
final String sipAppSessionId = sipApplicationSessionKey.getId();
final String sipSessionId = getHaId();
Long ct = (Long) proxy_.getSipSessionMetaData(sipAppSessionId, sipSessionId, CREATION_TIME);
if(ct != null) {
creationTime = ct;
}
Integer ip = (Integer) proxy_... | protected void populateMetaData() {
final String sipAppSessionId = sipApplicationSessionKey.getId();
final String sipSessionId = getHaId();
Long ct = (Long) proxy_.getSipSessionMetaData(sipAppSessionId, sipSessionId, CREATION_TIME);
if(ct != null) {
creationTime = ct;
}
Integer ip = (Integer) proxy_... |
diff --git a/mmstudio/src/org/micromanager/utils/ReportingUtils.java b/mmstudio/src/org/micromanager/utils/ReportingUtils.java
index 1d853e5ae..5efdefa24 100644
--- a/mmstudio/src/org/micromanager/utils/ReportingUtils.java
+++ b/mmstudio/src/org/micromanager/utils/ReportingUtils.java
@@ -1,168 +1,168 @@
//////////////... | false | true | public static void showError(Throwable e, String msg) {
logError(e, msg);
if (!show_)
return;
String fullMsg;
if (e != null && e.getMessage() != null) {
fullMsg = "Error: " + msg + "\n" + e.getMessage();
} else if (msg.length() > 0) {
fullMsg = "Error: " + ... | public static void showError(Throwable e, String msg) {
logError(e, msg);
if (!show_)
return;
String fullMsg;
if (e != null && e.getMessage() != null && msg.length() > 0) {
fullMsg = "Error: " + msg + "\n" + e.getMessage();
} else if (e != null && e.getMessage() != n... |
diff --git a/src/main/java/org/asteriskjava/manager/DefaultManagerConnection.java b/src/main/java/org/asteriskjava/manager/DefaultManagerConnection.java
index 7ae4f4a2..d6b6835a 100644
--- a/src/main/java/org/asteriskjava/manager/DefaultManagerConnection.java
+++ b/src/main/java/org/asteriskjava/manager/DefaultManagerC... | true | true | private void login(long timeout, String events) throws IOException,
AuthenticationFailedException, TimeoutException
{
long start;
long timeSpent;
ChallengeAction challengeAction;
ManagerResponse challengeResponse;
String challenge;
String key;
... | private void login(long timeout, String events) throws IOException,
AuthenticationFailedException, TimeoutException
{
long start;
long timeSpent;
ChallengeAction challengeAction;
ManagerResponse challengeResponse;
String challenge;
String key;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.