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/core/src/main/java/org/freud/core/iterator/OneShotNonThreadSafeIterable.java b/core/src/main/java/org/freud/core/iterator/OneShotNonThreadSafeIterable.java
index 09d1f54..0f6ed9e 100644
--- a/core/src/main/java/org/freud/core/iterator/OneShotNonThreadSafeIterable.java
+++ b/core/src/main/java/org/freud/cor... | true | true | public final boolean hasNext() {
if (!hasNext) {
throw new IllegalStateException("This iterator can only be iterated through once");
}
hasNext = calculateHasNext();
return hasNext;
}
| public final boolean hasNext() {
if (!hasNext) {
throw new IllegalStateException("This iterable can only be iterated through once");
}
hasNext = calculateHasNext();
return hasNext;
}
|
diff --git a/src/main/ed/appserver/templates/djang10/tagHandlers/CallTagHandler.java b/src/main/ed/appserver/templates/djang10/tagHandlers/CallTagHandler.java
index ff9de474a..6880c285f 100644
--- a/src/main/ed/appserver/templates/djang10/tagHandlers/CallTagHandler.java
+++ b/src/main/ed/appserver/templates/djang10/tag... | true | true | public Node compile(Parser parser, String command, Token token) throws TemplateException {
Pattern pattern = Pattern.compile("^\\s*\\S+\\s+(\\S+)(?:\\s+(allowGlobal))?\\s*$");
Matcher matcher = pattern.matcher(token.contents);
if(!matcher.find())
throw new TemplateException("Invlaid syntax");
String meth... | public Node compile(Parser parser, String command, Token token) throws TemplateException {
Pattern pattern = Pattern.compile("^\\s*\\S+\\s+(.+?)(?:\\s+(allowGlobal))?\\s*$");
Matcher matcher = pattern.matcher(token.contents);
if(!matcher.find())
throw new TemplateException("Invlaid syntax");
String metho... |
diff --git a/src/java/org/apache/hadoop/hbase/zookeeper/HQuorumPeer.java b/src/java/org/apache/hadoop/hbase/zookeeper/HQuorumPeer.java
index 226e20f66..c7cc69b15 100644
--- a/src/java/org/apache/hadoop/hbase/zookeeper/HQuorumPeer.java
+++ b/src/java/org/apache/hadoop/hbase/zookeeper/HQuorumPeer.java
@@ -1,265 +1,265 @@... | true | true | public static Properties parseZooCfg(HBaseConfiguration conf,
InputStream inputStream) throws IOException {
Properties properties = new Properties();
try {
properties.load(inputStream);
} catch (IOException e) {
String msg = "fail to read properties from " + ZOOKEEPER_CONFIG_NAME;
... | public static Properties parseZooCfg(HBaseConfiguration conf,
InputStream inputStream) throws IOException {
Properties properties = new Properties();
try {
properties.load(inputStream);
} catch (IOException e) {
String msg = "fail to read properties from " + ZOOKEEPER_CONFIG_NAME;
... |
diff --git a/client/src/remuco/util/Tools.java b/client/src/remuco/util/Tools.java
index 4e1ba7b..c096f9d 100644
--- a/client/src/remuco/util/Tools.java
+++ b/client/src/remuco/util/Tools.java
@@ -1,223 +1,223 @@
/*
* Remuco - A remote control system for media players.
* Copyright (C) 2006-2009 Oben Sonne <... | true | true | public static String[] splitString(String s, char splitter, boolean trim) {
int first, last, sal;
first = s.indexOf(splitter);
sal = 1;
while (first >= 0) {
sal++;
first = s.indexOf(splitter, first + 1);
}
final String ret[] = new String[sal];
first = 0;
last = s.indexOf(splitter);
for (int ... | public static String[] splitString(String s, char splitter, boolean trim) {
int first, last, sal;
first = s.indexOf(splitter);
sal = 1;
while (first >= 0) {
sal++;
first = s.indexOf(splitter, first + 1);
}
final String ret[] = new String[sal];
first = 0;
last = s.indexOf(splitter);
for (int ... |
diff --git a/patientview-parent/patientview/src/main/java/org/patientview/service/impl/PatientManagerImpl.java b/patientview-parent/patientview/src/main/java/org/patientview/service/impl/PatientManagerImpl.java
index d761ccbe..65b9da33 100644
--- a/patientview-parent/patientview/src/main/java/org/patientview/service/im... | true | true | public List<PatientDetails> getPatientDetails(String username) {
List<UserMapping> userMappings = userManager.getUserMappings(username);
List<PatientDetails> patientDetails = new ArrayList<PatientDetails>();
for (UserMapping userMapping : userMappings) {
String unitcode = userM... | public List<PatientDetails> getPatientDetails(String username) {
List<UserMapping> userMappings = userManager.getUserMappings(username);
List<PatientDetails> patientDetails = new ArrayList<PatientDetails>();
for (UserMapping userMapping : userMappings) {
String unitcode = userM... |
diff --git a/jelly-tags/jsl/src/java/org/apache/commons/jelly/tags/jsl/ApplyTemplatesTag.java b/jelly-tags/jsl/src/java/org/apache/commons/jelly/tags/jsl/ApplyTemplatesTag.java
index f52a446c..7c56cda4 100644
--- a/jelly-tags/jsl/src/java/org/apache/commons/jelly/tags/jsl/ApplyTemplatesTag.java
+++ b/jelly-tags/jsl/src... | false | true | public void doTag(XMLOutput output) throws JellyTagException {
StylesheetTag tag = (StylesheetTag) findAncestorWithClass( StylesheetTag.class );
if (tag == null) {
throw new JellyTagException(
"<applyTemplates> tag must be inside a <stylesheet> tag"
);
... | public void doTag(XMLOutput output) throws JellyTagException {
StylesheetTag tag = (StylesheetTag) findAncestorWithClass( StylesheetTag.class );
if (tag == null) {
throw new JellyTagException(
"<applyTemplates> tag must be inside a <stylesheet> tag"
);
... |
diff --git a/src/org/smerty/cache/ImageCache.java b/src/org/smerty/cache/ImageCache.java
index 5ac4e8c..571f1bf 100644
--- a/src/org/smerty/cache/ImageCache.java
+++ b/src/org/smerty/cache/ImageCache.java
@@ -1,139 +1,121 @@
package org.smerty.cache;
import java.io.File;
import java.util.ArrayList;
import org.s... | true | true | protected ImageCache doInBackground(ImageCache... imageCaches) {
ImageCache imgCache = imageCaches[0];
if (that == null) {
this.that = imgCache.mContext;
}
int doneCount = 0;
for (int n = 0; n < imgCache.images.size(); n++) {
if (imgCache.images.get(n).imageFileExists()) {
Log.d("Do... | protected ImageCache doInBackground(ImageCache... imageCaches) {
ImageCache imgCache = imageCaches[0];
if (that == null) {
this.that = imgCache.mContext;
}
int doneCount = 0;
for (int n = 0; n < imgCache.images.size(); n++) {
if (imgCache.images.get(n).imageFileExists()) {
Log.d("Do... |
diff --git a/BetterBatteryStats/src/com/asksven/betterbatterystats/services/BbsDashClockExtension.java b/BetterBatteryStats/src/com/asksven/betterbatterystats/services/BbsDashClockExtension.java
index 3891bb90..0e455a4e 100644
--- a/BetterBatteryStats/src/com/asksven/betterbatterystats/services/BbsDashClockExtension.ja... | true | true | protected void onUpdateData(int reason)
{
// Get preference value.
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);
// we want to refresh out stats each time the screen goes on
setUpdateWhenScreenOn(true);
// collect some data
String refFrom = sharedPrefs.getString(... | protected void onUpdateData(int reason)
{
// Get preference value.
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);
// we want to refresh out stats each time the screen goes on
setUpdateWhenScreenOn(true);
// collect some data
String refFrom = sharedPrefs.getString(... |
diff --git a/crypto/src/org/bouncycastle/cms/CMSUtils.java b/crypto/src/org/bouncycastle/cms/CMSUtils.java
index 1dd9c221..811db5ec 100644
--- a/crypto/src/org/bouncycastle/cms/CMSUtils.java
+++ b/crypto/src/org/bouncycastle/cms/CMSUtils.java
@@ -1,167 +1,167 @@
package org.bouncycastle.cms;
import org.bouncycastle... | true | true | static List getCertificatesFromStore(CertStore certStore)
throws CertStoreException, CMSException
{
List certs = new ArrayList();
try
{
for (Iterator it = certStore.getCertificates(null).iterator(); it.hasNext();)
{
X509Certificate c = (X5... | static List getCertificatesFromStore(CertStore certStore)
throws CertStoreException, CMSException
{
List certs = new ArrayList();
try
{
for (Iterator it = certStore.getCertificates(null).iterator(); it.hasNext();)
{
X509Certificate c = (X5... |
diff --git a/src/main/java/nz/org/nesi/goldwrap/impl/GoldWrapServiceImpl.java b/src/main/java/nz/org/nesi/goldwrap/impl/GoldWrapServiceImpl.java
index 220391a..206f9f8 100644
--- a/src/main/java/nz/org/nesi/goldwrap/impl/GoldWrapServiceImpl.java
+++ b/src/main/java/nz/org/nesi/goldwrap/impl/GoldWrapServiceImpl.java
@@ ... | true | true | public void createProject(Project proj) {
String projName = proj.getProjectId();
proj.validate(true);
if (GoldHelper.projectExists(projName)) {
throw new ProjectFault(proj, "Can't create project " + projName,
"Project name '" + projName + "' already exists in Gold.");
}
String principal = proj.ge... | public void createProject(Project proj) {
String projName = proj.getProjectId();
proj.validate(true);
if (GoldHelper.projectExists(projName)) {
throw new ProjectFault(proj, "Can't create project " + projName,
"Project name '" + projName + "' already exists in Gold.");
}
String principal = proj.ge... |
diff --git a/app/models/Code.java b/app/models/Code.java
index e682d9a..e442ebe 100755
--- a/app/models/Code.java
+++ b/app/models/Code.java
@@ -1,112 +1,114 @@
package models;
import com.google.gson.Gson;
import com.greenlaw110.rythm.Rythm;
import com.greenlaw110.rythm.RythmEngine;
import com.greenlaw110.rythm.... | true | true | private RythmEngine engine() {
String sessId = Scope.Session.current().getId();
synchronized (lock) {
RythmEngine e = engines.get(sessId);
if (null == e) {
Map<String, Object> conf = new HashMap<String, Object>();
conf.put("resource.loader", ne... | private RythmEngine engine() {
String sessId = Scope.Session.current().getId();
synchronized (lock) {
RythmEngine e = engines.get(sessId);
if (null == e) {
Map<String, Object> conf = new HashMap<String, Object>();
conf.put("resource.loader", ne... |
diff --git a/src/org/biojava/bio/molbio/RestrictionSiteFinder.java b/src/org/biojava/bio/molbio/RestrictionSiteFinder.java
index f08a2e60a..6bf375715 100644
--- a/src/org/biojava/bio/molbio/RestrictionSiteFinder.java
+++ b/src/org/biojava/bio/molbio/RestrictionSiteFinder.java
@@ -1,140 +1,144 @@
/*
* ... | false | true | public void run()
{
SymbolListCharSequence charSeq = new SymbolListCharSequence(target);
try
{
Pattern [] patterns = RestrictionEnzymeManager.getPatterns(enzyme);
int siteLen = enzyme.getRecognitionSite().length();
int seqLen = target.length();
... | public void run()
{
SymbolListCharSequence charSeq = new SymbolListCharSequence(target);
try
{
Pattern [] patterns = RestrictionEnzymeManager.getPatterns(enzyme);
int siteLen = enzyme.getRecognitionSite().length();
int seqLen = target.length();
... |
diff --git a/src/game/Game.java b/src/game/Game.java
index 09c0edd..bd411bb 100644
--- a/src/game/Game.java
+++ b/src/game/Game.java
@@ -1,128 +1,129 @@
package game;
import input.KeyboardListener;
import java.io.IOException;
import settings.Settings;
import actor.ActorSet;
import actor.Asteroid;
public cl... | true | true | public static void init() {
System.out.println(Runtime.getRuntime().availableProcessors() + " available cores detected");
try {
Settings.init();
} catch (IOException e) {
e.printStackTrace();
}
map = Map.load("example_1");
player = new Player()... | public static void init() {
System.out.println(Runtime.getRuntime().availableProcessors() + " available cores detected");
try {
Settings.init();
} catch (IOException e) {
e.printStackTrace();
}
map = Map.load("example_1");
player = new Player()... |
diff --git a/environments/servlet/core/src/main/java/org/jboss/weld/environment/servlet/Listener.java b/environments/servlet/core/src/main/java/org/jboss/weld/environment/servlet/Listener.java
index 4b2378f57..ac9c35488 100644
--- a/environments/servlet/core/src/main/java/org/jboss/weld/environment/servlet/Listener.jav... | false | true | public void contextInitialized(ServletContextEvent sce)
{
// Make Javassist always use the TCCL to load classes
ProxyFactory.classLoaderProvider = new ClassLoaderProvider()
{
public ClassLoader get(ProxyFactory pf)
{
return Thread.currentThread().getContex... | public void contextInitialized(ServletContextEvent sce)
{
// Make Javassist always use the TCCL to load classes
ProxyFactory.classLoaderProvider = new ClassLoaderProvider()
{
public ClassLoader get(ProxyFactory pf)
{
return Thread.currentThread().getContex... |
diff --git a/db/src/main/java/com/psddev/dari/db/StateValueUtils.java b/db/src/main/java/com/psddev/dari/db/StateValueUtils.java
index 4730c65d..27ff5ed8 100644
--- a/db/src/main/java/com/psddev/dari/db/StateValueUtils.java
+++ b/db/src/main/java/com/psddev/dari/db/StateValueUtils.java
@@ -1,613 +1,613 @@
package com.... | true | true | public static Map<UUID, Object> resolveReferences(Database database, Object parent, Iterable<?> items, String field) {
State parentState = State.getInstance(parent);
if (parentState != null && parentState.isResolveToReferenceOnly()) {
Map<UUID, Object> references = new HashMap<UUID, Obj... | public static Map<UUID, Object> resolveReferences(Database database, Object parent, Iterable<?> items, String field) {
State parentState = State.getInstance(parent);
if (parentState != null && parentState.isResolveToReferenceOnly()) {
Map<UUID, Object> references = new HashMap<UUID, Obj... |
diff --git a/src/libbitster/Manager.java b/src/libbitster/Manager.java
index af6c93a..c4925b0 100644
--- a/src/libbitster/Manager.java
+++ b/src/libbitster/Manager.java
@@ -1,609 +1,609 @@
package libbitster;
import java.io.File;
import java.io.IOException;
import java.nio.channels.*;
import java.nio.ByteBuffer;... | true | true | protected void receive (Memo memo) {
/*
* Messages received from our Deputy.
*/
if(memo.getSender() == deputy) {
// Peer list received from Deputy.
if(memo.getType().equals("peers"))
{
Log.info("Received peer list");
peers = (ArrayList<Map<String, Object>>) memo.g... | protected void receive (Memo memo) {
/*
* Messages received from our Deputy.
*/
if(memo.getSender() == deputy) {
// Peer list received from Deputy.
if(memo.getType().equals("peers"))
{
Log.info("Received peer list");
peers = (ArrayList<Map<String, Object>>) memo.g... |
diff --git a/plugins/org.eclipse.m2m.atl.engine.vm/src/org/eclipse/m2m/atl/engine/vm/nativelib/SOTSExpression2.java b/plugins/org.eclipse.m2m.atl.engine.vm/src/org/eclipse/m2m/atl/engine/vm/nativelib/SOTSExpression2.java
index 9196ccda..fa0bc8dc 100644
--- a/plugins/org.eclipse.m2m.atl.engine.vm/src/org/eclipse/m2m/atl... | true | true | private ASMOclAny simpleExp(StackFrame frame, ASMTuple args) throws IOException {
Token t = null;
ASMOclAny ret = null;
t = match(Token.IDENT);
ret = args.get(frame, t.value);
boolean done = false;
do {
if(debug)
System.out.println("\tcontext = " + ret + ((ret != null) ? " : " + ASMOclAny.oclType(frame,... | private ASMOclAny simpleExp(StackFrame frame, ASMTuple args) throws IOException {
Token t = null;
ASMOclAny ret = null;
t = match(Token.IDENT);
ret = args.get(frame, t.value);
boolean done = false;
do {
if(debug)
System.out.println("\tcontext = " + ret + ((ret != null) ? " : " + ASMOclAny.oclType(frame,... |
diff --git a/src/org/concord/datagraph/state/OTDataGraphableController.java b/src/org/concord/datagraph/state/OTDataGraphableController.java
index b7891cc..9ef52e2 100644
--- a/src/org/concord/datagraph/state/OTDataGraphableController.java
+++ b/src/org/concord/datagraph/state/OTDataGraphableController.java
@@ -1,310 +... | true | true | public void loadRealObject(Object realObject)
{
OTDataGraphable model = (OTDataGraphable)otObject;
DataGraphable dg = (DataGraphable)realObject;
dg.setColor(new Color(model.getColor()));
dg.setShowCrossPoint(model.getDrawMarks());
dg.setLabel(model.getName());
dg.se... | public void loadRealObject(Object realObject)
{
OTDataGraphable model = (OTDataGraphable)otObject;
DataGraphable dg = (DataGraphable)realObject;
dg.setColor(new Color(model.getColor()));
dg.setShowCrossPoint(model.getDrawMarks());
dg.setLabel(model.getName());
dg.se... |
diff --git a/unittests/com/jgaap/distances/MeanDistanceTest.java b/unittests/com/jgaap/distances/MeanDistanceTest.java
index 0a3fe67..c3e7254 100644
--- a/unittests/com/jgaap/distances/MeanDistanceTest.java
+++ b/unittests/com/jgaap/distances/MeanDistanceTest.java
@@ -1,68 +1,68 @@
/*
* JGAAP -- a graphical program ... | true | true | public void testDistance() {
EventSet es1 = new NumericEventSet();
EventSet es2 = new NumericEventSet();
Vector<Event> test1 = new Vector<Event>();
test1.add(new Event("1.0"));
test1.add(new Event("2.0"));
test1.add(new Event("3.0"));
test1.add(new Event("4.0"));
test1.add(new Event("5.0"));
es1.add... | public void testDistance() {
EventSet es1 = new NumericEventSet();
EventSet es2 = new NumericEventSet();
Vector<Event> test1 = new Vector<Event>();
test1.add(new Event("1.0"));
test1.add(new Event("2.0"));
test1.add(new Event("3.0"));
test1.add(new Event("4.0"));
test1.add(new Event("5.0"));
es1.add... |
diff --git a/src/plugins/KeyUtils/KeyExplorerUtils.java b/src/plugins/KeyUtils/KeyExplorerUtils.java
index b9b45e2..287e3cf 100644
--- a/src/plugins/KeyUtils/KeyExplorerUtils.java
+++ b/src/plugins/KeyUtils/KeyExplorerUtils.java
@@ -1,498 +1,498 @@
/* This code is part of Freenet. It is distributed under the GNU Gener... | true | true | public static FetchResult splitGet(PluginRespirator pr, Metadata metadata) throws FetchException, MetadataParseException,
KeyListenerConstructionException {
if (!metadata.isSplitfile()) {
throw new MetadataParseException("uri did not point to splitfile");
}
final FetchWaiter fw = new FetchWaiter();
fi... | public static FetchResult splitGet(PluginRespirator pr, Metadata metadata) throws FetchException, MetadataParseException,
KeyListenerConstructionException {
if (!metadata.isSplitfile()) {
throw new MetadataParseException("uri did not point to splitfile");
}
final FetchWaiter fw = new FetchWaiter();
fi... |
diff --git a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/EmptyPropertyState.java b/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/EmptyPropertyState.java
index 43cc84ae9d..1360200c1a 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/memory/EmptyPropertyState.java... | true | true | public boolean equals(Object other) {
if (this == other) {
return true;
}
else if (other instanceof PropertyState) {
PropertyState that = (PropertyState) other;
if (!getName().equals(that.getName())) {
return false;
}
... | public boolean equals(Object other) {
if (this == other) {
return true;
}
else if (other instanceof PropertyState) {
PropertyState that = (PropertyState) other;
if (!getName().equals(that.getName())) {
return false;
}
... |
diff --git a/trunk/src/main/java/net/wimpi/modbus/net/TCPMasterConnection.java b/trunk/src/main/java/net/wimpi/modbus/net/TCPMasterConnection.java
index 0199731..9459821 100755
--- a/trunk/src/main/java/net/wimpi/modbus/net/TCPMasterConnection.java
+++ b/trunk/src/main/java/net/wimpi/modbus/net/TCPMasterConnection.java... | true | true | public synchronized void connect()
throws Exception {
if(!m_Connected) {
if(Modbus.debug) System.out.println("connect()");
m_Socket = new Socket(m_Address, m_Port);
m_Socket = new Socket();
java.net.InetSocketAddress sockaddr = new java.net.InetSocketAddress( m_Address, m_Port );
m_Sock... | public synchronized void connect()
throws Exception {
if(!m_Connected) {
if(Modbus.debug) System.out.println("connect()");
m_Socket = new Socket();
java.net.InetSocketAddress sockaddr = new java.net.InetSocketAddress( m_Address, m_Port );
m_Socket.connect( sockaddr, m_Timeout );
... |
diff --git a/src/java/com/android/internal/telephony/PhoneProxy.java b/src/java/com/android/internal/telephony/PhoneProxy.java
index e972bb2..cb9629f 100644
--- a/src/java/com/android/internal/telephony/PhoneProxy.java
+++ b/src/java/com/android/internal/telephony/PhoneProxy.java
@@ -1,1189 +1,1198 @@
/*
* Copyright... | false | true | private void updatePhoneObject(int newVoiceRadioTech) {
if (mActivePhone != null) {
if((mRilVersion == 6 && getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE) ||
mRilV7NeedsCDMALTEPhone) {
/*
* On v6 RIL, when LTE_ON_CDMA is TRUE, always crea... | private void updatePhoneObject(int newVoiceRadioTech) {
if (mActivePhone != null) {
if((mRilVersion == 6 && getLteOnCdmaMode() == PhoneConstants.LTE_ON_CDMA_TRUE) ||
mRilV7NeedsCDMALTEPhone) {
/*
* On v6 RIL, when LTE_ON_CDMA is TRUE, always crea... |
diff --git a/src/org/jruby/RubyString.java b/src/org/jruby/RubyString.java
index af05bdfb1..7f06712e8 100644
--- a/src/org/jruby/RubyString.java
+++ b/src/org/jruby/RubyString.java
@@ -1,3369 +1,3369 @@
/*
**** BEGIN LICENSE BLOCK *****
* Version: CPL 1.0/GPL 2.0/LGPL 2.1
*
* The contents of this file are subj... | true | true | public RubyArray split(IRubyObject[] args) {
int beg, end, i = 0;
int lim = 0;
boolean limit = false;
IRubyObject tmp;
Ruby runtime = getRuntime();
if (Arity.checkArgumentCount(runtime, args, 0, 2) == 2) {
lim = RubyNumeric.fix2int(arg... | public RubyArray split(IRubyObject[] args) {
int beg, end, i = 0;
int lim = 0;
boolean limit = false;
IRubyObject tmp;
Ruby runtime = getRuntime();
if (Arity.checkArgumentCount(runtime, args, 0, 2) == 2) {
lim = RubyNumeric.fix2int(arg... |
diff --git a/forum/webapp/src/main/java/org/exoplatform/forum/webui/UIForumPortlet.java b/forum/webapp/src/main/java/org/exoplatform/forum/webui/UIForumPortlet.java
index 4f7f437f..58beae40 100644
--- a/forum/webapp/src/main/java/org/exoplatform/forum/webui/UIForumPortlet.java
+++ b/forum/webapp/src/main/java/org/exopl... | false | true | public void calculateRenderComponent(String path, WebuiRequestContext context) throws Exception {
ResourceBundle res = context.getApplicationResourceBundle();
if (path.equals(Utils.FORUM_SERVICE)) {
renderForumHome();
} else if (path.indexOf(ForumUtils.FIELD_SEARCHFORUM_LABEL) >= 0) {
updateIs... | public void calculateRenderComponent(String path, WebuiRequestContext context) throws Exception {
ResourceBundle res = context.getApplicationResourceBundle();
if (path.equals(Utils.FORUM_SERVICE)) {
renderForumHome();
} else if (path.equals(ForumUtils.FIELD_SEARCHFORUM_LABEL)) {
updateIsRender... |
diff --git a/core/src/main/java/brooklyn/util/task/BasicTask.java b/core/src/main/java/brooklyn/util/task/BasicTask.java
index d3779822e..806efb15f 100644
--- a/core/src/main/java/brooklyn/util/task/BasicTask.java
+++ b/core/src/main/java/brooklyn/util/task/BasicTask.java
@@ -1,444 +1,443 @@
package brooklyn.util.task... | true | true | protected String getStatusString(int verbosity) {
// Thread t = getThread();
String rv;
if (submitTimeUtc <= 0) rv = "Not submitted";
else if (!isCancelled() && startTimeUtc <= 0) {
rv = "Submitted for execution";
if (verbosity>0) {
long elapsed... | protected String getStatusString(int verbosity) {
// Thread t = getThread();
String rv;
if (submitTimeUtc <= 0) rv = "Not submitted";
else if (!isCancelled() && startTimeUtc <= 0) {
rv = "Submitted for execution";
if (verbosity>0) {
long elapsed... |
diff --git a/src/org/yi/acru/bukkit/Lockette/LockettePlayerListener.java b/src/org/yi/acru/bukkit/Lockette/LockettePlayerListener.java
index c324c34..0363919 100644
--- a/src/org/yi/acru/bukkit/Lockette/LockettePlayerListener.java
+++ b/src/org/yi/acru/bukkit/Lockette/LockettePlayerListener.java
@@ -1,630 +1,634 @@
//... | false | true | private static void interactSign(Block block, Player player){
Sign sign = (Sign) block.getState();
String text = sign.getLine(0).replaceAll("(?i)\u00A7[0-F]", "").toLowerCase();
Block signBlock = block;
// Check if it is our sign that was clicked.
if(text.equals("[private]") || text.equalsIgnoreC... | private static void interactSign(Block block, Player player){
Sign sign = (Sign) block.getState();
String text = sign.getLine(0).replaceAll("(?i)\u00A7[0-F]", "").toLowerCase();
Block signBlock = block;
// Check if it is our sign that was clicked.
if(text.equals("[private]") || text.equalsIgnoreC... |
diff --git a/spring-batch-samples/src/test/java/org/springframework/batch/sample/tasklet/ExceptionRestartableTaskletTests.java b/spring-batch-samples/src/test/java/org/springframework/batch/sample/tasklet/ExceptionRestartableTaskletTests.java
index 5279dc52a..f70c9fe77 100644
--- a/spring-batch-samples/src/test/java/or... | true | true | public void testProcess() throws Exception {
//create mock item processor wich will be called by module.process() method
MockControl processorControl = MockControl.createControl(ItemProcessor.class);
ItemProcessor itemProcessor = (ItemProcessor)processorControl.getMock();
//set expected call count and ar... | public void testProcess() throws Exception {
//create mock item processor which will be called by module.process() method
MockControl processorControl = MockControl.createControl(ItemProcessor.class);
ItemProcessor itemProcessor = (ItemProcessor)processorControl.getMock();
//set expected call count and a... |
diff --git a/org/xbill/DNS/Name.java b/org/xbill/DNS/Name.java
index 9dd76ad..4a998d8 100644
--- a/org/xbill/DNS/Name.java
+++ b/org/xbill/DNS/Name.java
@@ -1,736 +1,739 @@
// Copyright (c) 1999 Brian Wellington (bwelling@xbill.org)
package org.xbill.DNS;
import java.io.*;
import java.text.*;
import java.util.... | false | true | public static Name
fromString(String s, Name origin) throws TextParseException {
Name name = new Name();
if (s.equals(""))
throw new TextParseException("empty name");
else if (s.equals("@")) {
if (origin == null)
return name;
return origin;
} else if (s.equals("."))
return (root);
int labelstart = -1;
... | public static Name
fromString(String s, Name origin) throws TextParseException {
Name name = new Name();
if (s.equals(""))
throw new TextParseException("empty name");
else if (s.equals("@")) {
if (origin == null)
return name;
return origin;
} else if (s.equals("."))
return (root);
int labelstart = -1;
... |
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/breakpoints/StandardJavaBreakpointEditor.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/breakpoints/StandardJavaBreakpointEditor.java
index 4327702c9..1e06a99d3 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/inter... | true | true | protected Control createStandardControls(Composite parent) {
Composite composite = SWTFactory.createComposite(parent, parent.getFont(), 2, 1, GridData.FILL_VERTICAL, 5, 5);
SWTFactory.createLabel(composite, PropertyPageMessages.JavaBreakpointPage_6, 1);
fSuspendPolicy = new Combo(composite, SWT.BORDER | SWT.READ... | protected Control createStandardControls(Composite parent) {
Composite composite = SWTFactory.createComposite(parent, parent.getFont(), 2, 1, GridData.FILL_VERTICAL, 5, 5);
SWTFactory.createLabel(composite, PropertyPageMessages.JavaBreakpointPage_6, 1);
fSuspendPolicy = new Combo(composite, SWT.BORDER | SWT.READ... |
diff --git a/src/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java b/src/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java
index 668fc95..9531e0b 100644
--- a/src/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java
+++ b/src/org/bukkit/craftbukkit/generator/CustomChunkGenerator.java
@@ -1,309 +... | false | true | public Chunk getOrCreateChunk(int x, int z) {
random.setSeed((long) x * 341873128712L + (long) z * 132897987541L);
Chunk chunk;
// Get default biome data for chunk
CustomBiomeGrid biomegrid = new CustomBiomeGrid();
biomegrid.biome = new BiomeGenBase[256];
world.getW... | public Chunk getOrCreateChunk(int x, int z) {
random.setSeed((long) x * 341873128712L + (long) z * 132897987541L);
Chunk chunk;
// Get default biome data for chunk
CustomBiomeGrid biomegrid = new CustomBiomeGrid();
biomegrid.biome = new BiomeGenBase[256];
world.getW... |
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/RepositoryConfiguration.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/RepositoryConfiguration.java
index bd95a5b74..56268097a 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn... | false | true | public void addValidOperations(TaskData bugReport) {
TaskAttribute attributeStatus = bugReport.getRoot().getMappedAttribute(TaskAttribute.STATUS);
BUGZILLA_REPORT_STATUS status = BUGZILLA_REPORT_STATUS.NEW;
if (attributeStatus != null) {
try {
status = BUGZILLA_REPORT_STATUS.valueOf(attributeStatus.getVal... | public void addValidOperations(TaskData bugReport) {
TaskAttribute attributeStatus = bugReport.getRoot().getMappedAttribute(TaskAttribute.STATUS);
BUGZILLA_REPORT_STATUS status = BUGZILLA_REPORT_STATUS.NEW;
if (attributeStatus != null) {
try {
status = BUGZILLA_REPORT_STATUS.valueOf(attributeStatus.getVal... |
diff --git a/webapp/WEB-INF/classes/org/makumba/parade/model/managers/WebappManager.java b/webapp/WEB-INF/classes/org/makumba/parade/model/managers/WebappManager.java
index 198d4a2..359e247 100644
--- a/webapp/WEB-INF/classes/org/makumba/parade/model/managers/WebappManager.java
+++ b/webapp/WEB-INF/classes/org/makumba/... | false | true | public String servletContextReloadRow(Row row) {
String result = "";
// must check if it's not this one
if (!isParade(row)) {
result = getServletContainer().reloadContext(row.getRowname());
} else {
try {
String antCommand = "ant";
... | public String servletContextReloadRow(Row row) {
RowWebapp data = (RowWebapp) row.getRowdata().get("webapp");
String result = "";
// must check if it's not this one
if (!isParade(row)) {
result = getServletContainer().reloadContext(data.getContextname());
} else... |
diff --git a/src/cytoscape/dialogs/plugins/PluginManageDialog.java b/src/cytoscape/dialogs/plugins/PluginManageDialog.java
index 2489f758b..43d8c3d0b 100644
--- a/src/cytoscape/dialogs/plugins/PluginManageDialog.java
+++ b/src/cytoscape/dialogs/plugins/PluginManageDialog.java
@@ -1,826 +1,826 @@
/*
File: PluginManag... | true | true | private void initComponents() {
jSplitPane1 = new javax.swing.JSplitPane();
infoScrollPane = new javax.swing.JScrollPane();
infoTextPane = new javax.swing.JEditorPane();
treeScrollPane = new javax.swing.JScrollPane();
pluginTree = new javax.swing.JTree();
availablePlu... | private void initComponents() {
jSplitPane1 = new javax.swing.JSplitPane();
infoScrollPane = new javax.swing.JScrollPane();
infoTextPane = new javax.swing.JEditorPane();
treeScrollPane = new javax.swing.JScrollPane();
pluginTree = new javax.swing.JTree();
availablePlu... |
diff --git a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/proxy/ProxyBranchImpl.java b/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/proxy/ProxyBranchImpl.java
index 9948360c1..bb62ad7e7 100644
--- a/sip-servlets-impl/src/main/java/org/mobicents/servlet/sip/proxy/ProxyBranchImpl.java
+++ b/sip-... | true | true | public void proxySubsequentRequest(SipServletRequestImpl request) {
// A re-INVITE needs special handling without goind through the dialog-stateful methods
if(request.getMethod().equalsIgnoreCase("INVITE")) {
if(logger.isDebugEnabled()) {
logger.debug("Proxying reinvite request " + request);
}
//... | public void proxySubsequentRequest(SipServletRequestImpl request) {
// A re-INVITE needs special handling without goind through the dialog-stateful methods
if(request.getMethod().equalsIgnoreCase("INVITE")) {
if(logger.isDebugEnabled()) {
logger.debug("Proxying reinvite request " + request);
}
//... |
diff --git a/src/main/java/org/gatein/rhq/plugins/jmx/MBeanAttributeDiscoveryComponent.java b/src/main/java/org/gatein/rhq/plugins/jmx/MBeanAttributeDiscoveryComponent.java
index f0d7c58..a3e3c8e 100644
--- a/src/main/java/org/gatein/rhq/plugins/jmx/MBeanAttributeDiscoveryComponent.java
+++ b/src/main/java/org/gatein/r... | true | true | public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<MBeanResourceComponent<?>> context) throws InvalidPluginConfigurationException, Exception
{
boolean trace = log.isTraceEnabled();
// Make sure listAttributeName is present in configuration.
Configuration config = c... | public Set<DiscoveredResourceDetails> discoverResources(ResourceDiscoveryContext<MBeanResourceComponent<?>> context) throws InvalidPluginConfigurationException, Exception
{
boolean trace = log.isTraceEnabled();
// Make sure listAttributeName is present in configuration.
Configuration config = c... |
diff --git a/services/authority/src/main/java/org/collectionspace/services/common/vocabulary/Hierarchy.java b/services/authority/src/main/java/org/collectionspace/services/common/vocabulary/Hierarchy.java
index 641e02fb5..8da764722 100644
--- a/services/authority/src/main/java/org/collectionspace/services/common/vocabu... | false | true | private static SurfaceResultStruct surface(ServiceContext ctx, String itemcsid, String uri, boolean first) {
MultivaluedMap queryParams = ctx.getUriInfo().getQueryParameters();
//Run getList() once as sent to get parentListOuter:
queryParams.putSingle(IRelationsManager.PREDICATE_QP, Relation... | private static SurfaceResultStruct surface(ServiceContext ctx, String itemcsid, String uri, boolean first) {
MultivaluedMap queryParams = ctx.getUriInfo().getQueryParameters();
//Run getList() once as sent to get parentListOuter:
queryParams.putSingle(IRelationsManager.PREDICATE_QP, Relation... |
diff --git a/src/main/java/suite/rt/Plane.java b/src/main/java/suite/rt/Plane.java
index 934941842..ca4019366 100644
--- a/src/main/java/suite/rt/Plane.java
+++ b/src/main/java/suite/rt/Plane.java
@@ -1,68 +1,67 @@
package suite.rt;
import suite.math.MathUtil;
import suite.math.Vector;
import suite.rt.RayTracer.R... | false | true | public RayHit hit(final Vector startPoint, final Vector direction) {
float norm = (float) Math.sqrt(Vector.normsq(direction));
float denum = Vector.dot(normal, direction);
float adv;
if (Math.abs(denum) > MathUtil.epsilon)
adv = -(Vector.dot(normal, startPoint) + originIndex) * norm / denum;
else
adv ... | public RayHit hit(final Vector startPoint, final Vector direction) {
float denum = Vector.dot(normal, direction);
float adv;
if (Math.abs(denum) > MathUtil.epsilon)
adv = -(Vector.dot(normal, startPoint) + originIndex) / denum;
else
adv = -1f; // Treats as not-hit
final float advance = adv;
if (ad... |
diff --git a/src/net/sourceforge/servestream/activity/MediaPlaybackActivity.java b/src/net/sourceforge/servestream/activity/MediaPlaybackActivity.java
index 2f6ec10..3fcb8ba 100644
--- a/src/net/sourceforge/servestream/activity/MediaPlaybackActivity.java
+++ b/src/net/sourceforge/servestream/activity/MediaPlaybackActiv... | true | true | protected Dialog onCreateDialog(int id) {
Dialog dialog;
ProgressDialog progressDialog = null;
switch(id) {
case PREPARING_MEDIA:
progressDialog = new ProgressDialog(MediaPlaybackActivity.this);
progressDialog.setMessage(getString(R.string.opening_url_message));
progressDia... | protected Dialog onCreateDialog(int id) {
Dialog dialog;
ProgressDialog progressDialog = null;
switch(id) {
case PREPARING_MEDIA:
progressDialog = new ProgressDialog(MediaPlaybackActivity.this);
progressDialog.setMessage(getString(R.string.opening_url_message));
progressDia... |
diff --git a/src/minecraft/ljdp/minechem/common/recipe/MinechemRecipes.java b/src/minecraft/ljdp/minechem/common/recipe/MinechemRecipes.java
index 6d74c9f..02ecbeb 100644
--- a/src/minecraft/ljdp/minechem/common/recipe/MinechemRecipes.java
+++ b/src/minecraft/ljdp/minechem/common/recipe/MinechemRecipes.java
@@ -1,764 +... | true | true | public void RegisterRecipes() {
boolean isbop = Loader.isModLoaded("BiomesOPlenty");
ItemStack var1 = new ItemStack(Block.stone);
new ItemStack(Block.cobblestone);
ItemStack var3 = new ItemStack(Block.dirt);
ItemStack var4 = new ItemStack(Block.sand);
ItemStack var5 = ne... | public void RegisterRecipes() {
boolean isbop = Loader.isModLoaded("BiomesOPlenty");
ItemStack var1 = new ItemStack(Block.stone);
new ItemStack(Block.cobblestone);
ItemStack var3 = new ItemStack(Block.dirt);
ItemStack var4 = new ItemStack(Block.sand);
ItemStack var5 = ne... |
diff --git a/core/src/main/java/org/springframework/batch/core/domain/Entity.java b/core/src/main/java/org/springframework/batch/core/domain/Entity.java
index d6c539912..8a4d34aad 100644
--- a/core/src/main/java/org/springframework/batch/core/domain/Entity.java
+++ b/core/src/main/java/org/springframework/batch/core/do... | true | true | public boolean equals(Object other) {
if (other == null) {
return false;
}
if (!(other instanceof Entity)) {
return false;
}
Entity step = (Entity) other;
if (id == null || step.getId() == null) {
return step == this;
}
return id.equals(step.getId());
}
| public boolean equals(Object other) {
if (other == this) {
return true;
}
if (other == null) {
return false;
}
if (!(other instanceof Entity)) {
return false;
}
Entity step = (Entity) other;
if (id == null || step.getId() == null) {
return step == this;
}
return id.equals(step.getId());... |
diff --git a/src/main/java/ssh/TunnelPoller.java b/src/main/java/ssh/TunnelPoller.java
index 9953482..02a8f82 100644
--- a/src/main/java/ssh/TunnelPoller.java
+++ b/src/main/java/ssh/TunnelPoller.java
@@ -1,46 +1,46 @@
package ssh;
import com.testingbot.tunnel.Api;
import com.testingbot.tunnel.App;
import java.ut... | true | true | public void run() {
Api api = app.getApi();
JSONObject response;
try {
response = api.pollTunnel(tunnelID);
if (response.getString("state").equals("READY")) {
timer.cancel();
app.tunnelReady(re... | public void run() {
Api api = app.getApi();
JSONObject response;
try {
response = api.pollTunnel(tunnelID);
if (response.getString("state").equals("READY")) {
timer.cancel();
app.tunnelReady(re... |
diff --git a/common/net/minecraftforge/liquids/LiquidStack.java b/common/net/minecraftforge/liquids/LiquidStack.java
index 27504b518..30f93f679 100644
--- a/common/net/minecraftforge/liquids/LiquidStack.java
+++ b/common/net/minecraftforge/liquids/LiquidStack.java
@@ -1,165 +1,164 @@
package net.minecraftforge.liquids... | false | true | public void readFromNBT(NBTTagCompound nbt)
{
String liquidName = nbt.getString("LiquidName");
if (liquidName != null)
{
LiquidStack liquid = LiquidDictionary.getCanonicalLiquid(liquidName);
itemID = liquid.itemID;
itemMeta = liquid.itemMeta;
}... | public void readFromNBT(NBTTagCompound nbt)
{
String liquidName = nbt.getString("LiquidName");
itemID = nbt.getShort("Id");
itemMeta = nbt.getShort("Meta");
if (liquidName != null)
{
LiquidStack liquid = LiquidDictionary.getCanonicalLiquid(liquidName);
... |
diff --git a/chouette-validation/src/main/java/fr/certu/chouette/validation/test/ValidationConnectionLink.java b/chouette-validation/src/main/java/fr/certu/chouette/validation/test/ValidationConnectionLink.java
index 9d3952bc..de3eefc0 100644
--- a/chouette-validation/src/main/java/fr/certu/chouette/validation/test/Val... | true | true | private List<ValidationClassReportItem> validate(List<ConnectionLink> connectionLinks, ValidationParameters parameters){
List<ValidationClassReportItem> res = new ArrayList<ValidationClassReportItem>();
ValidationClassReportItem category2 = new ValidationClassReportItem(ValidationClassReportItem.CLASS.TWO);
Vali... | private List<ValidationClassReportItem> validate(List<ConnectionLink> connectionLinks, ValidationParameters parameters){
List<ValidationClassReportItem> res = new ArrayList<ValidationClassReportItem>();
ValidationClassReportItem category2 = new ValidationClassReportItem(ValidationClassReportItem.CLASS.TWO);
Vali... |
diff --git a/src/JPlotGraph.java b/src/JPlotGraph.java
index a4ca610..7b65860 100644
--- a/src/JPlotGraph.java
+++ b/src/JPlotGraph.java
@@ -1,133 +1,134 @@
import org.jfree.data.xy.XYSeries;
import org.jfree.data.xy.XYSeriesCollection;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.plot.PlotOrientatio... | false | true | public static void main(String[] args) {
ArrayList<String> filePath = new ArrayList<String>();
BufferedReader br = null;
// read in the list of files for generating graphs
try {
String sCurrentLine;
br = new BufferedReader(new FileReader(args[0]));
while ((sCurrentLine = br.readLine()) != null) {
... | public static void main(String[] args) {
ArrayList<String> filePath = new ArrayList<String>();
BufferedReader br = null;
// read in the list of files for generating graphs
try {
String sCurrentLine;
br = new BufferedReader(new FileReader(args[0]));
while ((sCurrentLine = br.readLine()) != null) {
... |
diff --git a/src/main/java/net/minecraft/src/GameWindowListener.java b/src/main/java/net/minecraft/src/GameWindowListener.java
index 8107552d..ffaf5c0d 100644
--- a/src/main/java/net/minecraft/src/GameWindowListener.java
+++ b/src/main/java/net/minecraft/src/GameWindowListener.java
@@ -1,19 +1,19 @@
package net.minecr... | true | true | public void windowClosing(WindowEvent par1WindowEvent) {
SpoutClient.getHandle().shutdownMinecraftApplet();
try {
SpoutClient.getHandle().mainThread.join(10000L);
} catch (InterruptedException var4) {
}
System.exit(0);
}
| public void windowClosing(WindowEvent par1WindowEvent) {
SpoutClient.getHandle().shutdown();
try {
SpoutClient.getHandle().mainThread.join(10000L);
} catch (InterruptedException var4) {
}
System.exit(0);
}
|
diff --git a/img2unisay.java b/img2unisay.java
index e6502ea..3929c6f 100755
--- a/img2unisay.java
+++ b/img2unisay.java
@@ -1,639 +1,639 @@
/**
* image2unisay — ponysay to unisay pony convertion tool
*
* Copyright © 2012 Mattias Andrée (maandree@kth.se)
*
* This library is free software: you can redistribu... | true | true | public static void main(final String... args) throws IOException
{
if (args.length == 0)
{
System.out.println("Image to unisay convertion tool");
System.out.println();
System.out.println("USAGE: img2unisay [-2] [--] SOURCE > TARGET");
System.out.println();
System.out.println("Source:... | public static void main(final String... args) throws IOException
{
if (args.length == 0)
{
System.out.println("Image to unisay convertion tool");
System.out.println();
System.out.println("USAGE: img2unisay [-2] [--] SOURCE > TARGET");
System.out.println();
System.out.println("Source:... |
diff --git a/pmd/regress/test/net/sourceforge/pmd/rules/strictexception/ExceptionAsFlowControlTest.java b/pmd/regress/test/net/sourceforge/pmd/rules/strictexception/ExceptionAsFlowControlTest.java
index 03f76c976..c80fe006d 100644
--- a/pmd/regress/test/net/sourceforge/pmd/rules/strictexception/ExceptionAsFlowControlTe... | true | true | public void testAll() {
runTests(new TestDescriptor[] {
new TestDescriptor(TEST1, "failure case", 1, rule),
new TestDescriptor(TEST2, "normal throw catch", 0, rule),
//new TestDescriptor(TEST3, "BUG 996007", 0, rule)
});
}
| public void testAll() {
runTests(new TestDescriptor[] {
new TestDescriptor(TEST1, "failure case", 1, rule),
new TestDescriptor(TEST2, "normal throw catch", 0, rule),
new TestDescriptor(TEST3, "BUG 996007", 0, rule)
});
}
|
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/ChangeEncodingAction.java b/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/ChangeEncodingAction.java
index 3a2e33aa4..c61fd20d2 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/texteditor/ChangeEncodingAction.java
+++ b/org.eclipse.ui.editors... | false | true | public void run() {
final IResource resource= getResource();
final Shell parentShell= getTextEditor().getSite().getShell();
final IEncodingSupport encodingSupport= getEncodingSupport();
if (resource == null && encodingSupport == null) {
MessageDialog.openInformation(parentShell, fDialogTitle, TextEditorMess... | public void run() {
final IResource resource= getResource();
final Shell parentShell= getTextEditor().getSite().getShell();
final IEncodingSupport encodingSupport= getEncodingSupport();
if (resource == null && encodingSupport == null) {
MessageDialog.openInformation(parentShell, fDialogTitle, TextEditorMess... |
diff --git a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/cmd/DeleteTaskCmd.java b/modules/activiti-engine/src/main/java/org/activiti/engine/impl/cmd/DeleteTaskCmd.java
index 1c5c91b40..37fd2ea14 100644
--- a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/cmd/DeleteTaskCmd.java
+++ b/m... | true | true | protected void deleteTask(CommandContext commandContext, String taskId) {
TaskEntity task = commandContext
.getTaskSession()
.findTaskById(taskId);
if (task!=null) {
task.delete(TaskEntity.DELETE_REASON_DELETED);
}
if (cascade) {
int historyLevel = Context.getProcessEngineConte... | protected void deleteTask(CommandContext commandContext, String taskId) {
TaskEntity task = commandContext
.getTaskSession()
.findTaskById(taskId);
if (task!=null) {
task.delete(TaskEntity.DELETE_REASON_DELETED);
}
if (cascade) {
int historyLevel = Context.getProcessEngineConte... |
diff --git a/src/com/yahoo/platform/yui/compressor/CssCompressor.java b/src/com/yahoo/platform/yui/compressor/CssCompressor.java
index c8c560f..be387a2 100644
--- a/src/com/yahoo/platform/yui/compressor/CssCompressor.java
+++ b/src/com/yahoo/platform/yui/compressor/CssCompressor.java
@@ -1,382 +1,384 @@
/*
* YUI Com... | true | true | public void compress(Writer out, int linebreakpos)
throws IOException {
Pattern p;
Matcher m;
String css = srcsb.toString();
int startIndex = 0;
int endIndex = 0;
int i = 0;
int max = 0;
ArrayList preservedTokens = new ArrayList(0);
... | public void compress(Writer out, int linebreakpos)
throws IOException {
Pattern p;
Matcher m;
String css = srcsb.toString();
int startIndex = 0;
int endIndex = 0;
int i = 0;
int max = 0;
ArrayList preservedTokens = new ArrayList(0);
... |
diff --git a/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java b/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
index 8963069..eec243d 100644
--- a/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
+++ b/src/main/java/org/apache/mave... | true | true | protected ArtifactResolutionResult collect( Set artifacts,
ArtifactRepository localRepository,
Set remoteRepositories,
ArtifactMetadataSource source,
... | protected ArtifactResolutionResult collect( Set artifacts,
ArtifactRepository localRepository,
Set remoteRepositories,
ArtifactMetadataSource source,
... |
diff --git a/kovu/teamstats/api/TeamStatsAPI.java b/kovu/teamstats/api/TeamStatsAPI.java
index 7d3d4ba..7e5f110 100644
--- a/kovu/teamstats/api/TeamStatsAPI.java
+++ b/kovu/teamstats/api/TeamStatsAPI.java
@@ -1,621 +1,621 @@
package kovu.teamstats.api;
import java.io.IOException;
import java.io.ObjectInputStream;
... | false | true | public void run() {
if (online) {
try {
Packet packet = new Packet(ClientRequest.GETFRIENDS);
packet.addData("session", Minecraft.getMinecraft().session.sessionId);
packetSender.sendPacket(packet);
String... | public void run() {
if (online) {
try {
Packet packet = new Packet(ClientRequest.GETFRIENDS);
packet.addData("session", Minecraft.getMinecraft().session.sessionId);
packetSender.sendPacket(packet);
String... |
diff --git a/cobertura/src/main/java/net/sourceforge/cobertura/instrument/CoberturaClassWriter.java b/cobertura/src/main/java/net/sourceforge/cobertura/instrument/CoberturaClassWriter.java
index 8b77d4e..2e20bde 100644
--- a/cobertura/src/main/java/net/sourceforge/cobertura/instrument/CoberturaClassWriter.java
+++ b/co... | true | true | protected String getCommonSuperClass(final String type1, final String type2) {
try {
return super.getCommonSuperClass(type1, type2);
} catch (RuntimeException e) {
// Since the default super construction failed we need to dig further.
}
Class<?> c, d;
// If system class fails to load, then let's use t... | protected String getCommonSuperClass(final String type1, final String type2) {
try {
return super.getCommonSuperClass(type1, type2);
} catch (RuntimeException e) {
// Since the default super construction failed we need to dig further.
}
Class<?> c, d;
// If system class fails to load, then let's use t... |
diff --git a/core/src/visad/trunk/Gridded3DSet.java b/core/src/visad/trunk/Gridded3DSet.java
index 500b3485b..9d78d15fd 100644
--- a/core/src/visad/trunk/Gridded3DSet.java
+++ b/core/src/visad/trunk/Gridded3DSet.java
@@ -1,4782 +1,4787 @@
//
// Gridded3DSet.java
//
/*
VisAD system for interactive analysis and vi... | true | true | private int isosurf( float isovalue, int[] ptFLAG, int nvertex_estimate,
int npolygons, float[] ptGRID, int xdim, int ydim,
int zdim, float[][] VX, float[][] VY, float[][] VZ,
byte[][] auxValues, byte[][] auxLevels,
int[][] Po... | private int isosurf( float isovalue, int[] ptFLAG, int nvertex_estimate,
int npolygons, float[] ptGRID, int xdim, int ydim,
int zdim, float[][] VX, float[][] VY, float[][] VZ,
byte[][] auxValues, byte[][] auxLevels,
int[][] Po... |
diff --git a/src/java/org/apache/nutch/parse/ParserChecker.java b/src/java/org/apache/nutch/parse/ParserChecker.java
index fce48cfc..aa2674bd 100644
--- a/src/java/org/apache/nutch/parse/ParserChecker.java
+++ b/src/java/org/apache/nutch/parse/ParserChecker.java
@@ -1,143 +1,143 @@
/**
* Licensed to the Apache Softw... | true | true | public int run(String[] args) throws Exception {
boolean dumpText = false;
boolean force = false;
String contentType = null;
String url = null;
String usage = "Usage: ParserChecker [-dumpText] [-forceAs mimeType] url";
if (args.length == 0) {
System.err.println(usage);
System.exi... | public int run(String[] args) throws Exception {
boolean dumpText = false;
boolean force = false;
String contentType = null;
String url = null;
String usage = "Usage: ParserChecker [-dumpText] [-forceAs mimeType] url";
if (args.length == 0) {
System.err.println(usage);
System.exi... |
diff --git a/src/main/java/com/mavenlab/caspian/controller/SMRTBookingController.java b/src/main/java/com/mavenlab/caspian/controller/SMRTBookingController.java
index f914832..bfc70f7 100644
--- a/src/main/java/com/mavenlab/caspian/controller/SMRTBookingController.java
+++ b/src/main/java/com/mavenlab/caspian/controlle... | true | true | public String proceed() {
Map<String, String> props = new HashMap<String, String>();
if(advanceBooking) {
try {
if(pickupDateTimeString != null)
setPickupDateTime(DateUtil.formatToDate("dd/MM/yyyy HH:mm", pickupDateTimeString));
log.info("PICKUP DATE TIME : " + DateUtil.formatToString("dd/MM/yyy... | public String proceed() {
Map<String, String> props = new HashMap<String, String>();
if(advanceBooking) {
try {
if(pickupDateTimeString != null)
setPickupDateTime(DateUtil.formatToDate("dd/MM/yyyy HH:mm", pickupDateTimeString));
log.info("PICKUP DATE TIME : " + DateUtil.formatToString("dd/MM/yyy... |
diff --git a/src/com/jme/animation/Bone.java b/src/com/jme/animation/Bone.java
index f955359d3..85a7b907b 100755
--- a/src/com/jme/animation/Bone.java
+++ b/src/com/jme/animation/Bone.java
@@ -1,341 +1,341 @@
/*
* Copyright (c) 2003-2006 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source... | true | true | public void applyBone(BoneInfluence inf, Vector3f vstore, Vector3f nstore) {
transform.loadIdentity();
transform.setRotationQuaternion(worldRotation);
transform.setTranslation(worldTranslation);
if(inf.vOffset != null) {
workVectA.set(inf.vOffset);
bindMatrix.in... | public void applyBone(BoneInfluence inf, Vector3f vstore, Vector3f nstore) {
transform.loadIdentity();
transform.setRotationQuaternion(worldRotation);
transform.setTranslation(worldTranslation);
if(inf.vOffset != null) {
workVectA.set(inf.vOffset);
bindMatrix.in... |
diff --git a/src/main/java/edu/cshl/schatz/jnomics/tools/GridJobMain.java b/src/main/java/edu/cshl/schatz/jnomics/tools/GridJobMain.java
index f28efac..f50f66c 100644
--- a/src/main/java/edu/cshl/schatz/jnomics/tools/GridJobMain.java
+++ b/src/main/java/edu/cshl/schatz/jnomics/tools/GridJobMain.java
@@ -1,181 +1,176 @@... | false | true | public static void main(String[] args) throws Exception{
String jobname = args[0].substring(args[0].lastIndexOf(":") + 1);
final String jobid = System.getenv("JOB_ID");
String userhome = System.getProperty("user.home");
Configuration conf = new Configuration();
File conffile = new File(System.getProperty("... | public static void main(String[] args) throws Exception{
String jobname = args[0].substring(args[0].lastIndexOf(":") + 1);
final String jobid = System.getenv("JOB_ID");
String userhome = System.getProperty("user.home");
Configuration conf = new Configuration();
File conffile = new File(System.getProperty("... |
diff --git a/patientview-parent/radar/src/main/java/org/patientview/radar/web/pages/patient/AddPatientPage.java b/patientview-parent/radar/src/main/java/org/patientview/radar/web/pages/patient/AddPatientPage.java
index 3d6a408a..7fb9e23a 100644
--- a/patientview-parent/radar/src/main/java/org/patientview/radar/web/page... | false | true | public AddPatientPage() {
ProfessionalUser user = (ProfessionalUser) RadarSecuredSession.get().getUser();
// list of items to update in ajax submits
final List<Component> componentsToUpdateList = new ArrayList<Component>();
CompoundPropertyModel<AddPatientModel> addPatientModel =... | public AddPatientPage() {
ProfessionalUser user = (ProfessionalUser) RadarSecuredSession.get().getUser();
// list of items to update in ajax submits
final List<Component> componentsToUpdateList = new ArrayList<Component>();
CompoundPropertyModel<AddPatientModel> addPatientModel =... |
diff --git a/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/tools/merger/actor/ActorMergerSDF.java b/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/tools/merger/actor/ActorMergerSDF.java
index e4c2dd413..c3c596a4c 100644
--- a/eclipse/plugins/net.sf.orcc.core/src/net/sf/orcc/tools/merger/actor/ActorMergerSDF.java
+... | false | true | public Actor caseNetwork(Network network) {
superActor = dfFactory.createActor();
buffersMap = new HashMap<Port, Var>();
portsMap = new HashMap<Port, Port>();
superActor.setName(network.getName());
SDFMoC sdfMoC = MocFactory.eINSTANCE.createSDFMoC();
superActor.setMoC(sdfMoC);
// Create input/output p... | public Actor caseNetwork(Network network) {
superActor = dfFactory.createActor();
buffersMap = new HashMap<Port, Var>();
portsMap = new HashMap<Port, Port>();
superActor.setName(network.getName());
SDFMoC sdfMoC = MocFactory.eINSTANCE.createSDFMoC();
superActor.setMoC(sdfMoC);
// Create input/output p... |
diff --git a/org/jruby/core/RbModule.java b/org/jruby/core/RbModule.java
index daf9e2b2e..d0909a44e 100644
--- a/org/jruby/core/RbModule.java
+++ b/org/jruby/core/RbModule.java
@@ -1,139 +1,139 @@
/*
* RbModule.java - No description
* Created on 04. Juli 2001, 22:53
*
* Copyright (C) 2001 Jan Arne Petersen, S... | true | true | public static void initModuleClass(RubyClass moduleClass) {
moduleClass.defineMethod("===", getMethod("op_eqq", RubyObject.class, false));
moduleClass.defineMethod("<=>", getMethod("op_cmp", RubyObject.class, false));
moduleClass.defineMethod("<", getMethod("op_lt", RubyObject.class, false))... | public static void initModuleClass(RubyClass moduleClass) {
moduleClass.defineMethod("===", getMethod("op_eqq", RubyObject.class, false));
moduleClass.defineMethod("<=>", getMethod("op_cmp", RubyObject.class, false));
moduleClass.defineMethod("<", getMethod("op_lt", RubyObject.class, false))... |
diff --git a/src/java/me/pavlina/alco/llvm/RET.java b/src/java/me/pavlina/alco/llvm/RET.java
index 847cdb9..faaa8e7 100644
--- a/src/java/me/pavlina/alco/llvm/RET.java
+++ b/src/java/me/pavlina/alco/llvm/RET.java
@@ -1,42 +1,42 @@
// Copyright (c) 2011, Christopher Pavlina. All rights reserved.
package me.pavlina.a... | true | true | public String toString () {
if (iValue != null) {
type = iValue.getType ();
value = iValue.getId ();
}
if (iValue == null)
return "ret void\n";
else
return "ret " + type + " " + value + "\n";
}
| public String toString () {
if (iValue != null) {
type = iValue.getType ();
value = iValue.getId ();
}
if (value == null)
return "ret void\n";
else
return "ret " + type + " " + value + "\n";
}
|
diff --git a/src/org/red5/server/api/service/ServiceUtils.java b/src/org/red5/server/api/service/ServiceUtils.java
index cbce99d6..9428edbf 100644
--- a/src/org/red5/server/api/service/ServiceUtils.java
+++ b/src/org/red5/server/api/service/ServiceUtils.java
@@ -1,331 +1,334 @@
package org.red5.server.api.service;
... | true | true | public static void invokeOnClient(IClient client, IScope scope,
String method, Object[] params, IPendingServiceCallback callback) {
Set<IConnection> connections;
if (client == null) {
connections = new HashSet<IConnection>();
Iterator<IConnection> iter = scope.getConnections();
while (iter.hasNext()) {... | public static void invokeOnClient(IClient client, IScope scope,
String method, Object[] params, IPendingServiceCallback callback) {
Set<IConnection> connections;
if (client == null) {
connections = new HashSet<IConnection>();
Iterator<IConnection> iter = scope.getConnections();
while (iter.hasNext()) {... |
diff --git a/sims/app/controllers/SecureController.java b/sims/app/controllers/SecureController.java
index 4a2dcf6..95c7523 100644
--- a/sims/app/controllers/SecureController.java
+++ b/sims/app/controllers/SecureController.java
@@ -1,30 +1,30 @@
package controllers;
import models.User;
import play.mvc.Before;
im... | true | true | static void setConnectedUser() {
if (Security.isConnected()) {
User user = connectedUser();
renderArgs.put("user", user);
}
}
| static void setConnectedUser() {
if (Security.isConnected()) {
User user = connectedUser();
renderArgs.put("loggedUser", user);
}
}
|
diff --git a/omod/src/main/java/org/openmrs/module/emr/fragment/controller/paperrecord/ArchivesRoomFragmentController.java b/omod/src/main/java/org/openmrs/module/emr/fragment/controller/paperrecord/ArchivesRoomFragmentController.java
index 258b4b92..b2f538a6 100644
--- a/omod/src/main/java/org/openmrs/module/emr/fragm... | true | true | public FragmentActionResult markPaperRecordRequestAsSent(@RequestParam(value = "identifier", required = true) String identifier,
@SpringBean("paperRecordService") PaperRecordService paperRecordService,
... | public FragmentActionResult markPaperRecordRequestAsSent(@RequestParam(value = "identifier", required = true) String identifier,
@SpringBean("paperRecordService") PaperRecordService paperRecordService,
... |
diff --git a/araqne-logdb/src/test/java/org/araqne/logdb/query/parser/ParseKvParserTest.java b/araqne-logdb/src/test/java/org/araqne/logdb/query/parser/ParseKvParserTest.java
index 5e2958b5..9d0129dc 100644
--- a/araqne-logdb/src/test/java/org/araqne/logdb/query/parser/ParseKvParserTest.java
+++ b/araqne-logdb/src/test... | true | true | public void testQuery() {
ParseKvParser parser = new ParseKvParser();
parser.setQueryParserService(queryParserService);
ParseKv kv = (ParseKv) parser.parse(null, "parsekv");
DummyOutput out = new DummyOutput();
kv.setOutput(new QueryCommandPipe(out));
assertEquals("line", kv.getField());
assertFalse(... | public void testQuery() {
ParseKvParser parser = new ParseKvParser();
parser.setQueryParserService(queryParserService);
ParseKv kv = (ParseKv) parser.parse(null, "parsekv");
DummyOutput out = new DummyOutput();
kv.setOutput(new QueryCommandPipe(out));
assertEquals("line", kv.getField());
assertFalse(... |
diff --git a/srcj/com/sun/electric/tool/user/KeyBindingManager.java b/srcj/com/sun/electric/tool/user/KeyBindingManager.java
index 474e73864..294d82a7b 100644
--- a/srcj/com/sun/electric/tool/user/KeyBindingManager.java
+++ b/srcj/com/sun/electric/tool/user/KeyBindingManager.java
@@ -1,1097 +1,1098 @@
/* -*- tab-width... | false | true | public synchronized boolean processKeyEvent(KeyEvent e) {
if (DEBUG) System.out.println("got event (consumed="+e.isConsumed()+") "+e);
// see if this is a valid key event
if (!validKeyEvent(e)) return false;
// ignore events that come from dialogs, or non-Control events that are n... | public synchronized boolean processKeyEvent(KeyEvent e) {
if (DEBUG) System.out.println("got event (consumed="+e.isConsumed()+") "+e);
// see if this is a valid key event
if (!validKeyEvent(e)) return false;
// ignore events that come from dialogs, or non-Control events that are n... |
diff --git a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/actions/StoppedAction.java b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/actions/StoppedAction.java
index c9b8ec482..0b6d690d9 100644
--- a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/actions/StoppedAction.java
+++ b/de.fu_berlin.inf.dpp/src/de/fu_... | true | true | public StoppedAction() {
setText(Messages.StoppedAction_title);
setImageDescriptor(new ImageDescriptor() {
@Override
public ImageData getImageData() {
return ImageManager.ELCL_SAROS_SESSION_STOP_PROCESS
.getImageData();
}
... | public StoppedAction() {
setEnabled(false);
setText(Messages.StoppedAction_title);
setImageDescriptor(new ImageDescriptor() {
@Override
public ImageData getImageData() {
return ImageManager.ELCL_SAROS_SESSION_STOP_PROCESS
.getImageD... |
diff --git a/src/com/jidesoft/swing/ScrollPaneOverview.java b/src/com/jidesoft/swing/ScrollPaneOverview.java
index 0463d17b..9530f030 100644
--- a/src/com/jidesoft/swing/ScrollPaneOverview.java
+++ b/src/com/jidesoft/swing/ScrollPaneOverview.java
@@ -1,224 +1,224 @@
package com.jidesoft.swing;
import javax.swing.*;... | false | true | public void display() {
_viewComponent = _scrollPane.getViewport().getView();
if (_viewComponent == null) {
return;
}
int maxSize = Math.max(MAX_SIZE, Math.max(_scrollPane.getWidth(), _scrollPane.getHeight()) / 2);
int width = Math.min(_viewComponent.getWidth(),... | public void display() {
_viewComponent = _scrollPane.getViewport().getView();
if (_viewComponent == null) {
return;
}
int maxSize = Math.max(MAX_SIZE, Math.max(_scrollPane.getWidth(), _scrollPane.getHeight()) / 2);
int width = Math.min(_viewComponent.getWidth(),... |
diff --git a/Admin/Matrix.java b/Admin/Matrix.java
index 5e6f6768..5f2cde85 100644
--- a/Admin/Matrix.java
+++ b/Admin/Matrix.java
@@ -1,277 +1,279 @@
import java.util.Vector;
import java.util.List;
import java.util.Iterator;
import java.util.Arrays;
import java.io.File;
import java.io.FileWriter;
import java.io... | true | true | public static void main (String[] args) {
Data data = new Data();
SAXBuilder builder = new SAXBuilder(/*true*/); // "true" turns on validation
Document doc;
try {
doc = builder.build(new File("matrix.xml"));
} catch (JDOMException e) {
e.printStackTrace();
doc = null;
Syst... | public static void main (String[] args) {
Data data = new Data();
SAXBuilder builder = new SAXBuilder(/*true*/); // "true" turns on validation
Document doc;
try {
doc = builder.build(new File("matrix.xml"));
} catch (JDOMException e) {
e.printStackTrace();
doc = null;
Syst... |
diff --git a/src/org/game/runner/manager/ResourcesManager.java b/src/org/game/runner/manager/ResourcesManager.java
index 66ec43b..39e47e0 100644
--- a/src/org/game/runner/manager/ResourcesManager.java
+++ b/src/org/game/runner/manager/ResourcesManager.java
@@ -1,214 +1,214 @@
/*
* To change this template, choose Too... | true | true | public void loadGameResources(LevelDescriptor level) {
BitmapTextureAtlasTextureRegionFactory.setAssetBasePath("gfx/game/");
this.playerTextureAtlas = new BitmapTextureAtlas(this.activity.getTextureManager(), 224, 256);
this.player = BitmapTextureAtlasTextureRegionFactory.createTiledFromAsset(this.... | public void loadGameResources(LevelDescriptor level) {
BitmapTextureAtlasTextureRegionFactory.setAssetBasePath("gfx/game/");
this.playerTextureAtlas = new BitmapTextureAtlas(this.activity.getTextureManager(), 224, 256);
this.player = BitmapTextureAtlasTextureRegionFactory.createTiledFromAsset(this.... |
diff --git a/src/main/java/net/pterodactylus/sone/web/page/PageToadlet.java b/src/main/java/net/pterodactylus/sone/web/page/PageToadlet.java
index ed012946..2d1f35aa 100644
--- a/src/main/java/net/pterodactylus/sone/web/page/PageToadlet.java
+++ b/src/main/java/net/pterodactylus/sone/web/page/PageToadlet.java
@@ -1,177... | true | true | private void handleRequest(FreenetRequest pageRequest) throws IOException, ToadletContextClosedException {
Bucket pageBucket = null;
try {
pageBucket = pageRequest.getToadletContext().getBucketFactory().makeBucket(-1);
Response pageResponse = new Response(pageBucket.getOutputStream());
page.handleRequest(... | private void handleRequest(FreenetRequest pageRequest) throws IOException, ToadletContextClosedException {
Bucket pageBucket = null;
try {
pageBucket = pageRequest.getToadletContext().getBucketFactory().makeBucket(-1);
Response pageResponse = new Response(pageBucket.getOutputStream());
pageResponse = page... |
diff --git a/modules/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java b/modules/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
index 8dde92187..fdbb27ba8 100644
--- a/modules/connect... | false | true | public void outputSpecificationBody(IHTTPOutput out, DocumentSpecification ds, String tabName)
throws ManifoldCFException, IOException
{
int i;
int k;
// Paths tab
if (tabName.equals("Paths"))
{
out.print(
"<table class=\"displaytable\">\n"+
" <tr><td class=\"separator\" colspan=\"3\... | public void outputSpecificationBody(IHTTPOutput out, DocumentSpecification ds, String tabName)
throws ManifoldCFException, IOException
{
int i;
int k;
// Paths tab
if (tabName.equals("Paths"))
{
out.print(
"<table class=\"displaytable\">\n"+
" <tr><td class=\"separator\" colspan=\"3\... |
diff --git a/src/game/Paint.java b/src/game/Paint.java
index 471b8ae..da5ac11 100644
--- a/src/game/Paint.java
+++ b/src/game/Paint.java
@@ -1,153 +1,155 @@
package game;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java... | true | true | public void paintComponent(Graphics g) {
lastTime2 = currentTime;
currentTime = (int) System.currentTimeMillis();
if (currentTime - lastTime > 500) {
lastTime = currentTime;
fps = 1000 / (currentTime - lastTime2);
}
super.paintComponent(g);
// DRAW MENU BUTTONS
for (int x = 0; x < 840; x += 120... | public void paintComponent(Graphics g) {
lastTime2 = currentTime;
currentTime = (int) System.currentTimeMillis();
if (currentTime - lastTime > 500) {
lastTime = currentTime;
fps = 1000 / (currentTime - lastTime2);
}
super.paintComponent(g);
// DRAW MENU BUTTONS
for (int x = 0; x < 840; x += 120... |
diff --git a/server/src/org/bedework/caldav/server/CaldavCalNode.java b/server/src/org/bedework/caldav/server/CaldavCalNode.java
index 1096209..50c1c1f 100644
--- a/server/src/org/bedework/caldav/server/CaldavCalNode.java
+++ b/server/src/org/bedework/caldav/server/CaldavCalNode.java
@@ -1,730 +1,732 @@
/*
Copyright... | true | true | public boolean generatePropertyValue(QName tag,
WebdavNsIntf intf,
boolean allProp) throws WebdavException {
XmlEmit xml = intf.getXmlEmit();
try {
BwCalendar c = getCalendar(); // Unalias
if (tag.equals(WebdavTags.res... | public boolean generatePropertyValue(QName tag,
WebdavNsIntf intf,
boolean allProp) throws WebdavException {
XmlEmit xml = intf.getXmlEmit();
try {
BwCalendar c = getCalendar(); // Unalias
if (tag.equals(WebdavTags.res... |
diff --git a/src/master/src/org/drftpd/master/BaseFtpConnection.java b/src/master/src/org/drftpd/master/BaseFtpConnection.java
index 018ac5e7..8ebce6dc 100644
--- a/src/master/src/org/drftpd/master/BaseFtpConnection.java
+++ b/src/master/src/org/drftpd/master/BaseFtpConnection.java
@@ -1,640 +1,641 @@
/*
* This file... | true | true | public void run() {
_commandManager = GlobalContext.getConnectionManager().getCommandManager();
setCommands(GlobalContext.getConnectionManager().getCommands());
_lastActive = System.currentTimeMillis();
setCurrentDirectory(getGlobalContext().getRoot());
_thread = Thread.currentThread();
GlobalContext.getCo... | public void run() {
_commandManager = GlobalContext.getConnectionManager().getCommandManager();
setCommands(GlobalContext.getConnectionManager().getCommands());
_lastActive = System.currentTimeMillis();
setCurrentDirectory(getGlobalContext().getRoot());
_thread = Thread.currentThread();
GlobalContext.getCo... |
diff --git a/activemq-tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/JmsConsumerClient.java b/activemq-tooling/maven-activemq-perf-plugin/src/main/java/org/apache/activemq/tool/JmsConsumerClient.java
index 0f6c475ce..ff887fe4b 100644
--- a/activemq-tooling/maven-activemq-perf-plugin/src/main/... | false | true | public void receiveAsyncCountBasedMessages(long count) throws JMSException {
if (getJmsConsumer() == null) {
createJmsConsumer();
}
final AtomicInteger recvCount = new AtomicInteger(0);
getJmsConsumer().setMessageListener(new MessageListener() {
public void o... | public void receiveAsyncCountBasedMessages(long count) throws JMSException {
if (getJmsConsumer() == null) {
createJmsConsumer();
}
final AtomicInteger recvCount = new AtomicInteger(0);
getJmsConsumer().setMessageListener(new MessageListener() {
public void o... |
diff --git a/src/main/java/net/pms/encoders/MEncoderVideo.java b/src/main/java/net/pms/encoders/MEncoderVideo.java
index bd36fe2c..09d9910c 100644
--- a/src/main/java/net/pms/encoders/MEncoderVideo.java
+++ b/src/main/java/net/pms/encoders/MEncoderVideo.java
@@ -1,2578 +1,2578 @@
/*
* PS3 Media Server, for streaming... | true | true | public ProcessWrapper launchTranscode(
String fileName,
DLNAResource dlna,
DLNAMediaInfo media,
OutputParams params
) throws IOException {
params.manageFastStart();
boolean avisynth = avisynth();
setAudioAndSubs(fileName, media, params, configuration);
String subString = null;
if (params.sid != n... | public ProcessWrapper launchTranscode(
String fileName,
DLNAResource dlna,
DLNAMediaInfo media,
OutputParams params
) throws IOException {
params.manageFastStart();
boolean avisynth = avisynth();
setAudioAndSubs(fileName, media, params, configuration);
String subString = null;
if (params.sid != n... |
diff --git a/src/main/java/com/tinkerpop/furnace/generators/CommunityGenerator.java b/src/main/java/com/tinkerpop/furnace/generators/CommunityGenerator.java
index a71bf82..6edf33b 100644
--- a/src/main/java/com/tinkerpop/furnace/generators/CommunityGenerator.java
+++ b/src/main/java/com/tinkerpop/furnace/generators/Com... | false | true | public int generate(Graph graph, Iterable<Vertex> vertices, int expectedNumCommunities, int expectedNumEdges) {
if (communitySize==null) throw new IllegalStateException("Need to initialize community size distribution");
if (edgeDegree==null) throw new IllegalStateException("Need to initialize degree... | public int generate(Graph graph, Iterable<Vertex> vertices, int expectedNumCommunities, int expectedNumEdges) {
if (communitySize==null) throw new IllegalStateException("Need to initialize community size distribution");
if (edgeDegree==null) throw new IllegalStateException("Need to initialize degree... |
diff --git a/src/com/flaptor/util/sort/MergeSort.java b/src/com/flaptor/util/sort/MergeSort.java
index 27de6a6..49cbd71 100644
--- a/src/com/flaptor/util/sort/MergeSort.java
+++ b/src/com/flaptor/util/sort/MergeSort.java
@@ -1,213 +1,218 @@
/*
Copyright 2008 Flaptor (flaptor.com)
Licensed under the Apache License... | true | true | private static Vector<File> distributeSortedBlocks (File from, File tmpDir, RecordInformation rInfo) throws FileNotFoundException, IOException {
RecordReader reader = rInfo.newRecordReader(from);
Vector<File> files = new Vector<File>();
Runtime.getRuntime().gc(); // free memory
long ... | private static Vector<File> distributeSortedBlocks (File from, File tmpDir, RecordInformation rInfo) throws FileNotFoundException, IOException {
RecordReader reader = rInfo.newRecordReader(from);
Vector<File> files = new Vector<File>();
Runtime.getRuntime().gc(); // free memory
long ... |
diff --git a/src/org/xbmc/api/object/TvShow.java b/src/org/xbmc/api/object/TvShow.java
index 39450c6..1533f75 100644
--- a/src/org/xbmc/api/object/TvShow.java
+++ b/src/org/xbmc/api/object/TvShow.java
@@ -1,122 +1,122 @@
package org.xbmc.api.object;
import java.net.URLDecoder;
import java.util.List;
import org.... | true | true | public TvShow(int id, String title, String summary, double rating, String firstAired,
String genre, String contentRating, String network, String path, int numEpisodes, int watchedEpisodes, boolean watched, String artUrl) {
this.id = id;
this.title = title;
this.summary = summary;
this.rating = rating;
th... | public TvShow(int id, String title, String summary, double rating, String firstAired,
String genre, String contentRating, String network, String path, int numEpisodes, int watchedEpisodes, boolean watched, String artUrl) {
this.id = id;
this.title = title;
this.summary = summary;
this.rating = rating;
th... |
diff --git a/plugins/email_sender/src/test/java/com/rabbitmq/streams/plugins/email/EmailSenderTest.java b/plugins/email_sender/src/test/java/com/rabbitmq/streams/plugins/email/EmailSenderTest.java
index 304ea27..a823a78 100644
--- a/plugins/email_sender/src/test/java/com/rabbitmq/streams/plugins/email/EmailSenderTest.j... | true | true | public void testNotification() throws IOException {
InputMessage message = mock(InputMessage.class);
when(message.routingKey()).thenReturn("bang");
when(message.body()).thenReturn("bang".getBytes());
MockMessageChannel messageChannel = new MockMessageChannel();
EmailSender emailSender = new Emai... | public void testNotification() throws IOException {
InputMessage message = mock(InputMessage.class);
when(message.routingKey()).thenReturn("bang");
when(message.body()).thenReturn("bang".getBytes());
MockMessageChannel messageChannel = new MockMessageChannel();
EmailSender emailSender = new Emai... |
diff --git a/Madz.DatabaseMetaData/src/main/java/net/madz/db/core/meta/mutable/mysql/impl/MySQLForeignKeyMetaDataBuilderImpl.java b/Madz.DatabaseMetaData/src/main/java/net/madz/db/core/meta/mutable/mysql/impl/MySQLForeignKeyMetaDataBuilderImpl.java
index 03420b5..b516ecd 100644
--- a/Madz.DatabaseMetaData/src/main/java... | true | true | public MySQLForeignKeyMetaDataBuilder build(Connection conn) throws SQLException {
Statement stmt = conn.createStatement();
ResultSet rs = null;
try {
rs = stmt.executeQuery("SELECT * FROM referential_constraints WHERE constraint_schema='" + this.fkTable.getTablePath().getParent(... | public MySQLForeignKeyMetaDataBuilder build(Connection conn) throws SQLException {
Statement stmt = conn.createStatement();
ResultSet rs = null;
try {
rs = stmt.executeQuery("SELECT * FROM referential_constraints WHERE constraint_schema='" + this.fkTable.getTablePath().getParent(... |
diff --git a/GpsMidGraph/de/ueller/midlet/gps/data/Way.java b/GpsMidGraph/de/ueller/midlet/gps/data/Way.java
index dd5bc95d..7abf4ef2 100644
--- a/GpsMidGraph/de/ueller/midlet/gps/data/Way.java
+++ b/GpsMidGraph/de/ueller/midlet/gps/data/Way.java
@@ -1,2325 +1,2334 @@
/*
* GpsMid - Copyright (c) 2007 Harald Mueller ... | false | true | private void draw(PaintContext pc, SingleTile t, int w, int xPoints[], int yPoints[],
int hl[], int count, byte highlight,boolean ortho /*, byte mode*/) {
IntPoint closestP = new IntPoint();
int wClosest = 0;
boolean dividedSeg = false;
boolean dividedHighlight = true;
boolean dividedFinalRouteSeg = f... | private void draw(PaintContext pc, SingleTile t, int w, int xPoints[], int yPoints[],
int hl[], int count, byte highlight,boolean ortho /*, byte mode*/) {
IntPoint closestP = new IntPoint();
int wClosest = 0;
boolean dividedSeg = false;
boolean dividedHighlight = true;
IntPoint closestDestP = new IntP... |
diff --git a/src/com/aragaer/jtt/core/Calculator.java b/src/com/aragaer/jtt/core/Calculator.java
index 3786c7c..c63354e 100644
--- a/src/com/aragaer/jtt/core/Calculator.java
+++ b/src/com/aragaer/jtt/core/Calculator.java
@@ -1,163 +1,163 @@
package com.aragaer.jtt.core;
import java.util.Calendar;
import java.util.... | false | true | public Cursor query(Uri uri, String[] projection, String selection,
String[] selectionArgs, String sortOrder) {
final int action = matcher.match(uri);
if (action != TR)
throw new IllegalArgumentException("Unsupported uri for query: " + uri);
if (calculator == null)
throw new IllegalStateException("Locat... | public Cursor query(Uri uri, String[] projection, String selection,
String[] selectionArgs, String sortOrder) {
final int action = matcher.match(uri);
if (action != TR)
throw new IllegalArgumentException("Unsupported uri for query: " + uri);
if (calculator == null)
throw new IllegalStateException("Locat... |
diff --git a/GhostBuster/src/org/bonsaimind/bukkitplugins/ghostbuster/Plugin.java b/GhostBuster/src/org/bonsaimind/bukkitplugins/ghostbuster/Plugin.java
index 7d095bd..ce5e5ab 100644
--- a/GhostBuster/src/org/bonsaimind/bukkitplugins/ghostbuster/Plugin.java
+++ b/GhostBuster/src/org/bonsaimind/bukkitplugins/ghostbuster... | false | true | private void setCommand() {
getCommand("ghostbuster").setExecutor(new CommandExecutor() {
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (!sender.isOp()) {
sender.sendMessage("I'm sorry, Dave. I'm afraid I can't do that.");
return true;
}
... | private void setCommand() {
getCommand("ghostbuster").setExecutor(new CommandExecutor() {
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (!sender.isOp()) {
sender.sendMessage("I'm sorry, Dave. I'm afraid I can't do that.");
return true;
}
... |
diff --git a/drools-planner-examples/src/main/java/org/drools/planner/examples/tsp/solver/solution/initializer/TspStartingSolutionInitializer.java b/drools-planner-examples/src/main/java/org/drools/planner/examples/tsp/solver/solution/initializer/TspStartingSolutionInitializer.java
index 641d2bde..596b8e61 100644
--- a... | true | true | private void initializeCityAssignmentList(AbstractSolverScope abstractSolverScope,
TravelingSalesmanTour travelingSalesmanTour) {
City startCity = travelingSalesmanTour.getStartCity();
WorkingMemory workingMemory = abstractSolverScope.getWorkingMemory();
List<CityAssignment> cit... | private void initializeCityAssignmentList(AbstractSolverScope abstractSolverScope,
TravelingSalesmanTour travelingSalesmanTour) {
City startCity = travelingSalesmanTour.getStartCity();
WorkingMemory workingMemory = abstractSolverScope.getWorkingMemory();
List<CityAssignment> cit... |
diff --git a/src/peergroup/ThriftServerWorker.java b/src/peergroup/ThriftServerWorker.java
index 711e0f0..9cbc25f 100644
--- a/src/peergroup/ThriftServerWorker.java
+++ b/src/peergroup/ThriftServerWorker.java
@@ -1,58 +1,58 @@
/*
* Peergroup - ThriftServerWorker.java
*
* Peergroup is a P2P Shared Storage System us... | true | true | public void run(){
this.setName("THRIFT-Server Thread");
try{
this.serverTransport = new TServerSocket(port);
this.processor = new DataTransfer.Processor(new ThriftDataHandler());
this.server = new TThreadPoolServer(new TThreadPoolServer.Args(serverTransport).processor(processor));
Constants.log.ad... | public void run(){
this.setName("THRIFT-Server Thread");
try{
this.serverTransport = new TServerSocket(Constants.p2pPort);
this.processor = new DataTransfer.Processor(new ThriftDataHandler());
this.server = new TThreadPoolServer(new TThreadPoolServer.Args(serverTransport).processor(processor));
Con... |
diff --git a/Madz.DatabaseMetaData/src/main/java/net/madz/db/core/meta/mutable/mysql/impl/MySQLForeignKeyMetaDataBuilderImpl.java b/Madz.DatabaseMetaData/src/main/java/net/madz/db/core/meta/mutable/mysql/impl/MySQLForeignKeyMetaDataBuilderImpl.java
index 833c704..4552820 100644
--- a/Madz.DatabaseMetaData/src/main/java... | false | true | public MySQLForeignKeyMetaDataBuilder build(Connection conn) throws SQLException {
Statement stmt = conn.createStatement();
ResultSet rs = null;
try {
rs = stmt.executeQuery("SELECT * FROM referential_constraints WHERE constraint_schema='" + this.fkTable.getTablePath().getParent(... | public MySQLForeignKeyMetaDataBuilder build(Connection conn) throws SQLException {
Statement stmt = conn.createStatement();
ResultSet rs = null;
try {
rs = stmt.executeQuery("SELECT * FROM referential_constraints WHERE constraint_schema='" + this.fkTable.getTablePath().getParent(... |
diff --git a/client/ChatClient.java b/client/ChatClient.java
index 7bbefe0..360ea2b 100644
--- a/client/ChatClient.java
+++ b/client/ChatClient.java
@@ -1,175 +1,175 @@
package client;
import shared.*;
import java.util.*;
import java.io.*;
import java.net.*;
public class ChatClient {
/** client socket ... | true | true | public void run() {
while (true) {
try {
String rawMessage = client.receive();
if (rawMessage == null) break;
ClientMessage message = ClientMessage.fromString(rawMessage);
if (message.action == ServerAction.list) {
System.out.println("Users: ");
String names = message.text.split(".");
... | public void run() {
while (true) {
try {
String rawMessage = client.receive();
if (rawMessage == null) break;
ClientMessage message = ClientMessage.fromString(rawMessage);
if (message.action == ServerAction.list) {
System.out.println("Users: ");
String[] names = message.text.split(".");
... |
diff --git a/common/java/swing/org/crosswire/common/swing/plaf/WindowsLFCustoms.java b/common/java/swing/org/crosswire/common/swing/plaf/WindowsLFCustoms.java
index ac519a97..26ed0f7e 100644
--- a/common/java/swing/org/crosswire/common/swing/plaf/WindowsLFCustoms.java
+++ b/common/java/swing/org/crosswire/common/swing/... | true | true | protected void initPlatformUIDefaults()
{
Border tabbedPanePanelBorder = null;
Color standardBorderColor = null;
Object windowsScrollPaneborder = UIManager.get("ScrollPane.border"); //$NON-NLS-1$
if (windowsScrollPaneborder != null)
{
standardBorderColor = ((L... | protected void initPlatformUIDefaults()
{
Border tabbedPanePanelBorder = null;
Color standardBorderColor = null;
Object windowsScrollPaneborder = UIManager.get("ScrollPane.border"); //$NON-NLS-1$
if (windowsScrollPaneborder != null)
{
if (windowsScrollPanebord... |
diff --git a/src/main/org/codehaus/groovy/reflection/stdclasses/ArrayCachedClass.java b/src/main/org/codehaus/groovy/reflection/stdclasses/ArrayCachedClass.java
index f083bda46..46cb98463 100644
--- a/src/main/org/codehaus/groovy/reflection/stdclasses/ArrayCachedClass.java
+++ b/src/main/org/codehaus/groovy/reflection/... | true | true | public Object coerceArgument(Object argument) {
Class argumentClass = argument.getClass();
if (argumentClass.getName().charAt(0) != '[') return argument;
Class argumentComponent = argumentClass.getComponentType();
Class paramComponent = getTheClass().getComponentType();
if (... | public Object coerceArgument(Object argument) {
Class argumentClass = argument.getClass();
if (argumentClass.getName().charAt(0) != '[') return argument;
Class argumentComponent = argumentClass.getComponentType();
Class paramComponent = getTheClass().getComponentType();
if (... |
diff --git a/command/src/main/java/fr/aumgn/bukkitutils/command/args/CommandArgsParser.java b/command/src/main/java/fr/aumgn/bukkitutils/command/args/CommandArgsParser.java
index 00a2bfe..ec53bf8 100644
--- a/command/src/main/java/fr/aumgn/bukkitutils/command/args/CommandArgsParser.java
+++ b/command/src/main/java/fr/a... | true | true | private void parse(String[] tokens) {
flags = new HashSet<Character>();
argsFlags = new HashMap<Character, String>();
ArrayList<String> argsList = new ArrayList<String>();
boolean quoted = false;
StringBuilder current = null;
for (String token : tokens) {
... | private void parse(String[] tokens) {
flags = new HashSet<Character>();
argsFlags = new HashMap<Character, String>();
ArrayList<String> argsList = new ArrayList<String>();
boolean quoted = false;
StringBuilder current = null;
for (String token : tokens) {
... |
diff --git a/org.eclipse.mylyn.commons.net/src/org/eclipse/mylyn/commons/net/WebUtil.java b/org.eclipse.mylyn.commons.net/src/org/eclipse/mylyn/commons/net/WebUtil.java
index ffaf6ec5..1749350e 100644
--- a/org.eclipse.mylyn.commons.net/src/org/eclipse/mylyn/commons/net/WebUtil.java
+++ b/org.eclipse.mylyn.commons.net/... | true | true | public static String getTitleFromUrl(AbstractWebLocation location, IProgressMonitor monitor) throws IOException {
monitor = Policy.monitorFor(monitor);
try {
monitor.beginTask("Retrieving " + location.getUrl(), IProgressMonitor.UNKNOWN);
HttpClient client = new HttpClient();
WebUtil.configureHttpClient(c... | public static String getTitleFromUrl(AbstractWebLocation location, IProgressMonitor monitor) throws IOException {
monitor = Policy.monitorFor(monitor);
try {
monitor.beginTask("Retrieving " + location.getUrl(), IProgressMonitor.UNKNOWN);
HttpClient client = new HttpClient();
WebUtil.configureHttpClient(c... |
diff --git a/src/programming/calculator/MainActivity.java b/src/programming/calculator/MainActivity.java
index 303f4b0..7f0ece6 100644
--- a/src/programming/calculator/MainActivity.java
+++ b/src/programming/calculator/MainActivity.java
@@ -1,1498 +1,1498 @@
/***********************************************************... | true | true | public void send_equal(View view) {
TextView display_main = (TextView) findViewById(R.id.display_main);
TextView display_secondary = (TextView) findViewById(R.id.display_secondary);
TextView display_operation = (TextView) findViewById(R.id.display_operation);
//button locking
Button d_button = (Button) findV... | public void send_equal(View view) {
TextView display_main = (TextView) findViewById(R.id.display_main);
TextView display_secondary = (TextView) findViewById(R.id.display_secondary);
TextView display_operation = (TextView) findViewById(R.id.display_operation);
//button locking
Button d_button = (Button) findV... |
diff --git a/A1P3/src/com/group2/finger_occ_demo/Points.java b/A1P3/src/com/group2/finger_occ_demo/Points.java
index 6ac7650..2a7d228 100644
--- a/A1P3/src/com/group2/finger_occ_demo/Points.java
+++ b/A1P3/src/com/group2/finger_occ_demo/Points.java
@@ -1,386 +1,386 @@
package com.group2.finger_occ_demo;
import java... | true | true | public void filter_points(String text, String genre, String rating)
{
text = text.trim();
if(text.length() > 0)
{
squares.clear();
List<Movie> movies;
movies = new ArrayList<Movie>();
for(Movie movie : canvasApp.data.getMovie()){
String g = movie.getGenre().get(0);
int r = mo... | public void filter_points(String text, String genre, String rating)
{
text = text.trim();
if(text.length() > 1)
{
squares.clear();
List<Movie> movies;
movies = new ArrayList<Movie>();
for(Movie movie : canvasApp.data.getMovie()){
String g = movie.getGenre().get(0);
int r = mo... |
diff --git a/sahi/src/com/redhat/qe/jon/sahi/tests/AlertTest.java b/sahi/src/com/redhat/qe/jon/sahi/tests/AlertTest.java
index bb7b51c7..8fba3f3e 100644
--- a/sahi/src/com/redhat/qe/jon/sahi/tests/AlertTest.java
+++ b/sahi/src/com/redhat/qe/jon/sahi/tests/AlertTest.java
@@ -1,304 +1,304 @@
package com.redhat.qe.jon.sa... | false | true | public Object[][] getAlertCreationData(){
ArrayList<HashMap<String, String>> data = new ArrayList<HashMap<String, String>>();
HashMap<String, String> map = new HashMap<String, String>();
map.put(RESOURCE_NAME, "Servers=RHQ Agent");
map.put(ALERT_NAME, "RHQ Agent-Server Clock Difference");
map.put(ALERT_DE... | public Object[][] getAlertCreationData(){
ArrayList<HashMap<String, String>> data = new ArrayList<HashMap<String, String>>();
HashMap<String, String> map = new HashMap<String, String>();
map.put(RESOURCE_NAME, "Servers=RHQ Agent");
map.put(ALERT_NAME, "RHQ Agent-Server Clock Difference");
map.put(ALERT_DE... |
diff --git a/dspace/src/org/dspace/workflow/WorkflowManager.java b/dspace/src/org/dspace/workflow/WorkflowManager.java
index b67a7721a..a78ad12c9 100644
--- a/dspace/src/org/dspace/workflow/WorkflowManager.java
+++ b/dspace/src/org/dspace/workflow/WorkflowManager.java
@@ -1,935 +1,935 @@
/*
* WorkflowManager
*
*... | true | true | private static void doState(Context c,WorkflowItem wi, int newstate, EPerson newowner)
throws SQLException, IOException, AuthorizeException
{
Collection mycollection = wi.getCollection();
Group mygroup = null;
wi.setState(newstate);
// wi.update();
swit... | private static void doState(Context c,WorkflowItem wi, int newstate, EPerson newowner)
throws SQLException, IOException, AuthorizeException
{
Collection mycollection = wi.getCollection();
Group mygroup = null;
wi.setState(newstate);
// wi.update();
swit... |
diff --git a/src/cytoscape/actions/ZoomSelectedAction.java b/src/cytoscape/actions/ZoomSelectedAction.java
index 7d0860401..d36bc9c38 100644
--- a/src/cytoscape/actions/ZoomSelectedAction.java
+++ b/src/cytoscape/actions/ZoomSelectedAction.java
@@ -1,77 +1,82 @@
//------------------------------------------------------... | true | true | public static void zoomSelected () {
CyNetworkView view = Cytoscape.getCurrentNetworkView();
List selected_nodes = view.getSelectedNodes();
if ( selected_nodes.size() == 0 ) {return;}
Iterator selected_nodes_iterator = selected_nodes.iterator();
double bigX;
double bigY... | public static void zoomSelected () {
CyNetworkView view = Cytoscape.getCurrentNetworkView();
List selected_nodes = view.getSelectedNodes();
if ( selected_nodes.size() == 0 ) {return;}
Iterator selected_nodes_iterator = selected_nodes.iterator();
double bigX;
double bigY... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.