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/src/uk/co/oliwali/DataLog/util/DataLogAPI.java b/src/uk/co/oliwali/DataLog/util/DataLogAPI.java
index f277bc2..c2a3ee0 100644
--- a/src/uk/co/oliwali/DataLog/util/DataLogAPI.java
+++ b/src/uk/co/oliwali/DataLog/util/DataLogAPI.java
@@ -1,19 +1,17 @@
package uk.co.oliwali.DataLog.util;
import org.bukkit... | true | true | public static boolean addEntry(JavaPlugin plugin, String action, Player player, Location loc, String data) {
if (action.contains(" "))
return false;
DataManager.addEntry(player, plugin, DataType.OTHER, loc, action + "-" + data);
return true;
}
| public static boolean addEntry(JavaPlugin plugin, String action, Player player, Location loc, String data) {
DataManager.addEntry(player, plugin, DataType.OTHER, loc, action + "-" + data);
return true;
}
|
diff --git a/OFQAAPI/src/com/openfeint/qa/core/caze/step/definition/BasicStepDefinition.java b/OFQAAPI/src/com/openfeint/qa/core/caze/step/definition/BasicStepDefinition.java
index ae40393..b39da8d 100644
--- a/OFQAAPI/src/com/openfeint/qa/core/caze/step/definition/BasicStepDefinition.java
+++ b/OFQAAPI/src/com/openfei... | true | true | protected void waitForAsyncInStep() {
try {
inStepSync.tryAcquire(1, TIMEOUT, TimeUnit.MILLISECONDS);
} catch (Exception e) {
throw new AssertionFailedError();
}
}
| protected void waitForAsyncInStep() {
try {
boolean t = inStepSync.tryAcquire(1, TIMEOUT, TimeUnit.MILLISECONDS);
if (!t) {
throw new AssertionFailedError();
}
} catch (InterruptedException e) {
throw new AssertionFailedError();
... |
diff --git a/src/org/apache/fop/image/FopImageFactory.java b/src/org/apache/fop/image/FopImageFactory.java
index 9a2650c07..4e1ea97e6 100644
--- a/src/org/apache/fop/image/FopImageFactory.java
+++ b/src/org/apache/fop/image/FopImageFactory.java
@@ -1,190 +1,196 @@
/*
* $Id$
* Copyright (C) 2001 The Apache Software... | true | true | public static FopImage Make(String href)
throws MalformedURLException, FopImageException {
/*
* According to section 5.11 a <uri-specification> is:
* "url(" + URI + ")"
* according to 7.28.7 a <uri-specification> is:
* URI
* So handle both.
... | public static FopImage Make(String href)
throws MalformedURLException, FopImageException {
/*
* According to section 5.11 a <uri-specification> is:
* "url(" + URI + ")"
* according to 7.28.7 a <uri-specification> is:
* URI
* So handle both.
... |
diff --git a/pmd/src/net/sourceforge/pmd/lang/xml/ast/XmlParser.java b/pmd/src/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
index dae9fb462..1d5b2b1b9 100644
--- a/pmd/src/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
+++ b/pmd/src/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
@@ -1,157 +1,157 @@
/**
* BSD-st... | true | true | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
// XmlNode method?
if (method.getDeclaringClass().isAssignableFrom(XmlNode.class)
&& !"java.lang.Object".equals(method.getDeclaringClass().getName())) {
if ("jjtGetNumChildren".equals(method.getName())) {
return... | public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
// XmlNode method?
if (method.getDeclaringClass().isAssignableFrom(XmlNode.class)
&& !"java.lang.Object".equals(method.getDeclaringClass().getName())) {
if ("jjtGetNumChildren".equals(method.getName())) {
return... |
diff --git a/src/org/apache/xalan/xsltc/compiler/Predicate.java b/src/org/apache/xalan/xsltc/compiler/Predicate.java
index 9591f4c7..2b80346d 100644
--- a/src/org/apache/xalan/xsltc/compiler/Predicate.java
+++ b/src/org/apache/xalan/xsltc/compiler/Predicate.java
@@ -1,588 +1,590 @@
/*
* @(#)$Id$
*
* The Apache S... | true | true | public Type typeCheck(SymbolTable stable) throws TypeCheckError {
Type texp = _exp.typeCheck(stable);
// We need explicit type information for reference types - no good!
if (texp instanceof ReferenceType) {
_exp = new CastExpr(_exp, texp = Type.Real);
}
// A result tree fragment should not be cast dire... | public Type typeCheck(SymbolTable stable) throws TypeCheckError {
Type texp = _exp.typeCheck(stable);
// We need explicit type information for reference types - no good!
if (texp instanceof ReferenceType) {
_exp = new CastExpr(_exp, texp = Type.Real);
}
// A result tree fragment should not be cast dire... |
diff --git a/src/org/ubergibson/campfireclient/ConsoleClient.java b/src/org/ubergibson/campfireclient/ConsoleClient.java
index 7aebf66..d122bea 100644
--- a/src/org/ubergibson/campfireclient/ConsoleClient.java
+++ b/src/org/ubergibson/campfireclient/ConsoleClient.java
@@ -1,108 +1,108 @@
package org.ubergibson.campfir... | false | true | public static void main(String [] args) throws Exception {
String user;
String pass;
String subdomain;
user = pass = subdomain = "";
boolean useSSL = false;
// parse command line parameters
Getopt g = new Getopt("ConsoleClient", args, "u:p:s:hS");
int c;
while ((c = g.getopt()) !... | public static void main(String [] args) throws Exception {
String user;
String pass;
String subdomain;
user = pass = subdomain = "";
boolean useSSL = false;
// parse command line parameters
Getopt g = new Getopt("ConsoleClient", args, "u:p:s:hS");
int c;
while ((c = g.getopt()) !... |
diff --git a/src/main/java/com/jcabi/aspects/aj/MethodLogger.java b/src/main/java/com/jcabi/aspects/aj/MethodLogger.java
index 07d641b..498fe0f 100644
--- a/src/main/java/com/jcabi/aspects/aj/MethodLogger.java
+++ b/src/main/java/com/jcabi/aspects/aj/MethodLogger.java
@@ -1,440 +1,441 @@
/**
* Copyright (c) 2012-201... | true | true | private Object wrap(final ProceedingJoinPoint point, final Method method,
final Loggable annotation) throws Throwable {
if (Thread.interrupted()) {
throw new IllegalStateException("thread interrupted");
}
final long start = System.nanoTime();
final MethodLogger.Ma... | private Object wrap(final ProceedingJoinPoint point, final Method method,
final Loggable annotation) throws Throwable {
if (Thread.interrupted()) {
throw new IllegalStateException("thread interrupted");
}
final long start = System.nanoTime();
final MethodLogger.Ma... |
diff --git a/src/com/nullprogram/chess/pieces/King.java b/src/com/nullprogram/chess/pieces/King.java
index c5b0de3..9eb95ef 100644
--- a/src/com/nullprogram/chess/pieces/King.java
+++ b/src/com/nullprogram/chess/pieces/King.java
@@ -1,139 +1,139 @@
package com.nullprogram.chess.pieces;
import com.nullprogram.chess.... | true | true | private Move castle(final int dir) {
int dist = getBoard().getWidth() / 2 - 2;
Position pos = getPosition();
int max;
if (dir < 0) {
max = 0;
} else {
max = getBoard().getWidth() - 1;
}
Position rookPos = new Position(max, pos.getY())... | private Move castle(final int dir) {
int dist = getBoard().getWidth() / 2 - 2;
Position pos = getPosition();
int max;
if (dir < 0) {
max = 0;
} else {
max = getBoard().getWidth() - 1;
}
Position rookPos = new Position(max, pos.getY())... |
diff --git a/src/java/org/jivesoftware/openfire/http/HttpBindManager.java b/src/java/org/jivesoftware/openfire/http/HttpBindManager.java
index 3d17df73..2d864979 100644
--- a/src/java/org/jivesoftware/openfire/http/HttpBindManager.java
+++ b/src/java/org/jivesoftware/openfire/http/HttpBindManager.java
@@ -1,545 +1,545 ... | true | true | private void createSSLConnector(int securePort) {
httpsConnector = null;
try {
if (securePort > 0 && CertificateManager.isRSACertificate(SSLConfig.getKeyStore(), "*")) {
if (!CertificateManager.isRSACertificate(SSLConfig.getKeyStore(),
XMPPServer.g... | private void createSSLConnector(int securePort) {
httpsConnector = null;
try {
if (securePort > 0 && CertificateManager.isRSACertificate(SSLConfig.getKeyStore(), "*")) {
if (!CertificateManager.isRSACertificate(SSLConfig.getKeyStore(),
XMPPServer.g... |
diff --git a/src/main/java/net/sf/plist/defaults/OperatingSystemPath.java b/src/main/java/net/sf/plist/defaults/OperatingSystemPath.java
index 7d9c77a..3698140 100644
--- a/src/main/java/net/sf/plist/defaults/OperatingSystemPath.java
+++ b/src/main/java/net/sf/plist/defaults/OperatingSystemPath.java
@@ -1,181 +1,181 @@... | true | true | public String getMachineUUID() {
StringBuilder result = new StringBuilder();
try {
// Basic UUID determination using MAC address,
// when determining using more modern methods fail
// or are not available
for(byte b : NetworkInterface.getNetworkInterfaces().nextElement().getHardwareAddress()) {
res... | public String getMachineUUID() {
StringBuilder result = new StringBuilder();
try {
// Basic UUID determination using MAC address,
// when determining using more modern methods fail
// or are not available
for(byte b : NetworkInterface.getNetworkInterfaces().nextElement().getHardwareAddress()) {
res... |
diff --git a/flickrvote-web/src/main/java/net/chrissearle/flickrvote/web/admin/CreateChallengeAction.java b/flickrvote-web/src/main/java/net/chrissearle/flickrvote/web/admin/CreateChallengeAction.java
index a1522481..4a0004ab 100644
--- a/flickrvote-web/src/main/java/net/chrissearle/flickrvote/web/admin/CreateChallenge... | true | true | public String execute() throws Exception {
DateTime start = new DateTime(challenge.getStartDate()).plusHours(START_CHALLENGE_TIME);
DateTime vote = new DateTime(challenge.getVoteDate()).plusHours(START_VOTE_TIME);
DateTime end = new DateTime(challenge.getEndDate()).plusHours(END_CHALLENGE_TI... | public String execute() throws Exception {
DateTime start = new DateTime(challenge.getStartDate()).plusHours(START_CHALLENGE_TIME);
DateTime vote = new DateTime(challenge.getVoteDate()).plusHours(START_VOTE_TIME);
DateTime end = new DateTime(challenge.getEndDate()).plusHours(END_CHALLENGE_TI... |
diff --git a/src/test/java/eu/margiel/domain/SponsorTypeShould.java b/src/test/java/eu/margiel/domain/SponsorTypeShould.java
index 4ffd1e9..9a320a0 100644
--- a/src/test/java/eu/margiel/domain/SponsorTypeShould.java
+++ b/src/test/java/eu/margiel/domain/SponsorTypeShould.java
@@ -1,16 +1,16 @@
package eu.margiel.domai... | true | true | public void getAllShortNames() {
List<String> shortNames = SponsorType.allShortNames();
assertThat(shortNames).containsExactly("Złoty", "Srebrny", "Brązowy", "Medialny");
}
| public void getAllShortNames() {
List<String> shortNames = SponsorType.allShortNames();
assertThat(shortNames).containsExactly("Platynowy", "Złoty", "Srebrny", "Medialny");
}
|
diff --git a/src/com/turt2live/antishare/client/SimpleNotice.java b/src/com/turt2live/antishare/client/SimpleNotice.java
index f281aab7..19b70f4c 100644
--- a/src/com/turt2live/antishare/client/SimpleNotice.java
+++ b/src/com/turt2live/antishare/client/SimpleNotice.java
@@ -1,34 +1,34 @@
package com.turt2live.antishar... | true | true | public boolean sendPluginMessage(Player player, String message){
if(player == null || message == null){
return false;
}
if(!player.getListeningPluginChannels().contains("SimpleNotice")){
return false;
}
try{
player.sendPluginMessage(AntiShare.getInstance(), "SimpleNotice", message.getBytes("UTF-8"))... | public boolean sendPluginMessage(Player player, String message){
if(player == null || message == null){
return false;
}
if(!player.getListeningPluginChannels().contains("SimpleNotice")){
return false;
}
try{
player.sendPluginMessage(AntiShare.getInstance(), "SimpleNotice", message.getBytes());
re... |
diff --git a/src/edu/stuy/subsystems/Drivetrain.java b/src/edu/stuy/subsystems/Drivetrain.java
index d038f40..ee6354c 100644
--- a/src/edu/stuy/subsystems/Drivetrain.java
+++ b/src/edu/stuy/subsystems/Drivetrain.java
@@ -1,49 +1,49 @@
/*
* To change this template, choose Tools | Templates
* and open the template i... | true | true | public Drivetrain() {
drive = new RobotDrive(RobotMap.FRONT_LEFT_MOTOR, RobotMap.REAR_LEFT_MOTOR, RobotMap.FRONT_RIGHT_MOTOR, RobotMap.REAR_RIGHT_MOTOR);
if (!Devmode.DEV_MODE) {
gearShift = new Solenoid(RobotMap.GEAR_SHIFT);
}
sonar = new AnalogChannel(SONAR_CHA... | public Drivetrain() {
drive = new RobotDrive(RobotMap.FRONT_LEFT_MOTOR, RobotMap.REAR_LEFT_MOTOR, RobotMap.FRONT_RIGHT_MOTOR, RobotMap.REAR_RIGHT_MOTOR);
if (!Devmode.DEV_MODE) {
gearShift = new Solenoid(RobotMap.GEAR_SHIFT);
}
sonar = new AnalogChannel(RobotMap.... |
diff --git a/src/test/java/com/github/signed/mp3/GetStarted.java b/src/test/java/com/github/signed/mp3/GetStarted.java
index ad92554..4d69dc8 100644
--- a/src/test/java/com/github/signed/mp3/GetStarted.java
+++ b/src/test/java/com/github/signed/mp3/GetStarted.java
@@ -1,58 +1,58 @@
package com.github.signed.mp3;
im... | false | true | public void testName() throws Exception {
Path path = Paths.get("/home/signed/tmp/candidates/");
Mp3Album album = Mp3Album.For(path);
//album.forEachMp3File(new SetTitleToFileName());
//album.forEachMp3File(new PrependTrackNumberToTitle());
//album.forEachMp3File(new SetTrac... | public void testName() throws Exception {
Path path = Paths.get("/path/to/album");
Mp3Album album = Mp3Album.For(path);
album.forEachMp3File(new SetTitleToFileName());
album.forEachMp3File(new PrependTrackNumberToTitle());
album.forEachMp3File(new SetTrackNumber());
... |
diff --git a/sources/code/java/org/opensubsystems/core/util/ModifierClassFactory.java b/sources/code/java/org/opensubsystems/core/util/ModifierClassFactory.java
index eecd7e1..0be84cb 100644
--- a/sources/code/java/org/opensubsystems/core/util/ModifierClassFactory.java
+++ b/sources/code/java/org/opensubsystems/core/ut... | true | true | protected void createDefaultClassNames(
String strClassIdentifier,
String strModifier,
List<String> lstClassNames
) throws OSSException
{
int iIndex;
StringBuffer sbClassName = new StringBuffer();
// Assuming name of the interface aaa.AAA
... | protected void createDefaultClassNames(
String strClassIdentifier,
String strModifier,
List<String> lstClassNames
) throws OSSException
{
int iIndex;
StringBuilder sbClassName = new StringBuilder();
// Assuming name of the interface aaa.AAA
... |
diff --git a/src/generator/src/main/java/com/smvp4g/generator/generator/AbstractGenerator.java b/src/generator/src/main/java/com/smvp4g/generator/generator/AbstractGenerator.java
index d6c7aba..e6f8e36 100644
--- a/src/generator/src/main/java/com/smvp4g/generator/generator/AbstractGenerator.java
+++ b/src/generator/src... | false | true | public String generate(TreeLogger logger, GeneratorContext context, String typeName) throws UnableToCompleteException {
try {
this.context = context;
classType = context.getTypeOracle().getType(typeName);
PrintWriter sourceWriter = context.tryCreate(logger, getPackageName... | public String generate(TreeLogger logger, GeneratorContext context, String typeName) throws UnableToCompleteException {
try {
this.context = context;
classType = context.getTypeOracle().getType(typeName);
PrintWriter sourceWriter = context.tryCreate(logger, getPackageName... |
diff --git a/src/org/jacorb/idl/UnionType.java b/src/org/jacorb/idl/UnionType.java
index 14070453..91e08652 100644
--- a/src/org/jacorb/idl/UnionType.java
+++ b/src/org/jacorb/idl/UnionType.java
@@ -1,1179 +1,1179 @@
package org.jacorb.idl;
/*
* JacORB - a free Java ORB
*
* Copyright (C) 1997-2002 G... | false | true | private void printHelperClass( String className, PrintWriter ps )
{
if( !pack_name.equals( "" ) )
ps.println( "package " + pack_name + ";" );
printImport( ps );
printClassComment( className, ps );
ps.println( "public" + parser.getFinalString() + " class " + classNa... | private void printHelperClass( String className, PrintWriter ps )
{
if( !pack_name.equals( "" ) )
ps.println( "package " + pack_name + ";" );
printImport( ps );
printClassComment( className, ps );
ps.println( "public" + parser.getFinalString() + " class " + classNa... |
diff --git a/src/ClassAdminFrontEnd/FrmTable.java b/src/ClassAdminFrontEnd/FrmTable.java
index 1d7570c..8d47063 100644
--- a/src/ClassAdminFrontEnd/FrmTable.java
+++ b/src/ClassAdminFrontEnd/FrmTable.java
@@ -1,595 +1,595 @@
package ClassAdminFrontEnd;
import javax.swing.*;
import java.awt.BorderLayout;
import ... | false | true | private void createGUI() {
// -------------------------------------------------------------------------------------------------------
// create the filters array with everything false
for (int x = 0; x < data.size(); x++) {
LinkedList<Boolean> temp = new LinkedList<Boolean>();
for (int y = 0; y < data.get(... | private void createGUI() {
// -------------------------------------------------------------------------------------------------------
// create the filters array with everything false
for (int x = 0; x < data.size(); x++) {
LinkedList<Boolean> temp = new LinkedList<Boolean>();
for (int y = 0; y < data.get(... |
diff --git a/Tupl/src/main/java/org/cojen/tupl/Database.java b/Tupl/src/main/java/org/cojen/tupl/Database.java
index c22aba76..f6cd63c2 100644
--- a/Tupl/src/main/java/org/cojen/tupl/Database.java
+++ b/Tupl/src/main/java/org/cojen/tupl/Database.java
@@ -1,2214 +1,2214 @@
/*
* Copyright 2011-2012 Brian S O'Neill
... | true | true | private Database(DatabaseConfig config, boolean destroy) throws IOException {
mEventListener = SafeEventListener.makeSafe(config.mEventListener);
File baseFile = config.mBaseFile;
File[] dataFiles = config.dataFiles();
int pageSize = config.mPageSize;
if (pageSize <= 0) {
... | private Database(DatabaseConfig config, boolean destroy) throws IOException {
mEventListener = SafeEventListener.makeSafe(config.mEventListener);
File baseFile = config.mBaseFile;
File[] dataFiles = config.dataFiles();
int pageSize = config.mPageSize;
if (pageSize <= 0) {
... |
diff --git a/kernel/src/tests/org/jboss/test/kernel/deployment/support/container/BeanPool.java b/kernel/src/tests/org/jboss/test/kernel/deployment/support/container/BeanPool.java
index 1bca3e8f..f22c8835 100644
--- a/kernel/src/tests/org/jboss/test/kernel/deployment/support/container/BeanPool.java
+++ b/kernel/src/test... | false | true | public synchronized T createBean()
throws Throwable
{
if(pool.size() == 0)
{
// Fill the pool
for(int n = 0; n < pool.remainingCapacity(); n ++)
{
T bean = (T) factory.createBean();
pool.put(bean);
}
}
return pool.take();
... | public synchronized T createBean()
throws Throwable
{
if(pool.size() == 0)
{
int capacity = pool.remainingCapacity();
// Fill the pool
for(int n = 0; n < capacity; n ++)
{
T bean = (T) factory.createBean();
pool.put(bean);
}
... |
diff --git a/orcid-utils/src/main/java/org/orcid/utils/OrcidWebUtils.java b/orcid-utils/src/main/java/org/orcid/utils/OrcidWebUtils.java
index 9d6fceeb07..e350e99cdf 100644
--- a/orcid-utils/src/main/java/org/orcid/utils/OrcidWebUtils.java
+++ b/orcid-utils/src/main/java/org/orcid/utils/OrcidWebUtils.java
@@ -1,65 +1,6... | true | true | public static String getServerString(HttpServletRequest request) {
String scheme = request.getScheme();
int serverPort = request.getServerPort();
String serverName = request.getServerName();
StringBuilder sb = new StringBuilder();
sb.append(scheme);
sb.append("://")... | public static String getServerString(HttpServletRequest request) {
String forwardedProto = request.getHeader("X-Forwarded-Proto");
String scheme = forwardedProto != null ? forwardedProto : request.getScheme();
int serverPort = request.getServerPort();
String serverName = request.getS... |
diff --git a/portalobjects/binding/src/test/java/org/gatein/management/portalobjects/binding/impl/AbstractMarshallerTest.java b/portalobjects/binding/src/test/java/org/gatein/management/portalobjects/binding/impl/AbstractMarshallerTest.java
index 774c317..45150f5 100644
--- a/portalobjects/binding/src/test/java/org/gat... | true | true | protected void compareApplicationData(ApplicationData expected, ApplicationData actual)
{
assertNull(actual.getStorageId());
assertNull(actual.getStorageName());
assertEquals(expected.getType(), actual.getType());
if (expected.getState() == null)
{
assertNull(actual.getState... | protected void compareApplicationData(ApplicationData expected, ApplicationData actual)
{
assertNull(actual.getStorageId());
assertNull(actual.getStorageName());
assertEquals(expected.getType(), actual.getType());
if (expected.getState() == null)
{
assertNull(actual.getState... |
diff --git a/panc/src/main/java/org/quattor/pan/dml/functions/Replace.java b/panc/src/main/java/org/quattor/pan/dml/functions/Replace.java
index 8bb23c5..279fbf8 100644
--- a/panc/src/main/java/org/quattor/pan/dml/functions/Replace.java
+++ b/panc/src/main/java/org/quattor/pan/dml/functions/Replace.java
@@ -1,110 +1,11... | true | true | public Element execute(Context context) {
assert (ops.length == 3);
// Extract the first argument. This must be a string value and also a
// valid regular expression.
Pattern regex = null;
try {
String re = ((StringProperty) ops[0].execute(context)).getValue();
regex = Pattern.compile(re);
} catc... | public Element execute(Context context) {
assert (ops.length == 3);
// Extract the first argument. This must be a string value and also a
// valid regular expression.
Pattern regex = null;
try {
String re = ((StringProperty) ops[0].execute(context)).getValue();
regex = Pattern.compile(re);
} catc... |
diff --git a/nanoscrollpanel-demo/src/main/java/org/vaadin/hhe/nanoscrollpanel/demo/NanoScrollPanelDemoUI.java b/nanoscrollpanel-demo/src/main/java/org/vaadin/hhe/nanoscrollpanel/demo/NanoScrollPanelDemoUI.java
index bad5e5c..285b4e8 100644
--- a/nanoscrollpanel-demo/src/main/java/org/vaadin/hhe/nanoscrollpanel/demo/Na... | true | true | protected void init(VaadinRequest request) {
final NanoScrollPanel nPanel = new NanoScrollPanel();
nPanel.setWidth("400px");
nPanel.setHeight("400px");
// flash user there are more content
nPanel.flashScrollbar();
nPanel.setPreventPageScrolling(true);
nPanel.a... | protected void init(VaadinRequest request) {
final NanoScrollPanel nPanel = new NanoScrollPanel();
nPanel.setWidth("400px");
nPanel.setHeight("400px");
// flash user there are more content
nPanel.flashScrollbar();
nPanel.setPreventPageScrolling(true);
nPanel.a... |
diff --git a/src/SEG_Airport/src/Model/SaveToXMLFile.java b/src/SEG_Airport/src/Model/SaveToXMLFile.java
index fef31b4..0fd9dd6 100644
--- a/src/SEG_Airport/src/Model/SaveToXMLFile.java
+++ b/src/SEG_Airport/src/Model/SaveToXMLFile.java
@@ -1,305 +1,305 @@
package Model;
import java.io.*;
import java.util.ArrayLis... | false | true | public void addNodesAndElements(Airport airport) {
//int numberOfRunways = airport.runways().size(); //number of physical runways
for (PhysicalRunway runway: airport.getPhysicalRunways()) { // looping through all physical runways
Element physicalRunway = document.createElement("PhysicalRunway");
String n... | public void addNodesAndElements(Airport airport) {
//int numberOfRunways = airport.runways().size(); //number of physical runways
for (PhysicalRunway runway: airport.getPhysicalRunways()) { // looping through all physical runways
Element physicalRunway = document.createElement("PhysicalRunway");
String n... |
diff --git a/src/edu/cmu/cs/diamond/opendiamond/ConnectionSet.java b/src/edu/cmu/cs/diamond/opendiamond/ConnectionSet.java
index 4bf392b..a3e42d2 100644
--- a/src/edu/cmu/cs/diamond/opendiamond/ConnectionSet.java
+++ b/src/edu/cmu/cs/diamond/opendiamond/ConnectionSet.java
@@ -1,134 +1,140 @@
/*
* The OpenDiamond Pl... | true | true | ConnectionSet(ExecutorService executor, Set<Connection> connections) {
this.executor = executor;
this.connections = new HashSet<Connection>(connections);
// create tasks for getting blast messages
final CompletionService<Object> blastTasks = new ExecutorCompletionService<Object>(
... | ConnectionSet(ExecutorService executor, Set<Connection> connections) {
this.executor = executor;
this.connections = new HashSet<Connection>(connections);
// create tasks for getting blast messages
final CompletionService<Object> blastTasks = new ExecutorCompletionService<Object>(
... |
diff --git a/bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/internal/frameworkadmin/utils/Utils.java b/bundles/org.eclipse.equinox.frameworkadmin/src/org/eclipse/equinox/internal/frameworkadmin/utils/Utils.java
index 54bf68cec..a498dcbf5 100644
--- a/bundles/org.eclipse.equinox.frameworkadmin/src/or... | false | true | public static void checkAbsoluteFile(File file, String dirName) {//throws ManipulatorException {
if (file == null)
throw new IllegalArgumentException(dirName + " is null");
if (!file.isAbsolute())
throw new IllegalArgumentException(dirName + " is not absolute path. file=" + file.getAbsolutePath());
if (fil... | public static void checkAbsoluteFile(File file, String dirName) {//throws ManipulatorException {
if (file == null)
throw new IllegalArgumentException(dirName + " is null");
if (!file.isAbsolute())
throw new IllegalArgumentException(dirName + " is not absolute path. file=" + file.getAbsolutePath());
if (fil... |
diff --git a/editor/src/main/java/com/nebula2d/editor/ui/ComponentsDialog.java b/editor/src/main/java/com/nebula2d/editor/ui/ComponentsDialog.java
index 21ec64e..e8f9a95 100644
--- a/editor/src/main/java/com/nebula2d/editor/ui/ComponentsDialog.java
+++ b/editor/src/main/java/com/nebula2d/editor/ui/ComponentsDialog.java... | false | true | private N2DPanel forgeComponentsListPanel() {
componentList = new N2DList<Component>();
final DefaultListModel<Component> model = new DefaultListModel<Component>();
componentList.setModel(model);
populateComponentList(componentList);
JScrollPane sp = new JScrollPane(compone... | private N2DPanel forgeComponentsListPanel() {
componentList = new N2DList<Component>();
final DefaultListModel<Component> model = new DefaultListModel<Component>();
componentList.setModel(model);
populateComponentList(componentList);
JScrollPane sp = new JScrollPane(compone... |
diff --git a/sql12/app/src/net/sourceforge/squirrel_sql/client/session/CancelStatementThread.java b/sql12/app/src/net/sourceforge/squirrel_sql/client/session/CancelStatementThread.java
index 4375f8562..06154f806 100644
--- a/sql12/app/src/net/sourceforge/squirrel_sql/client/session/CancelStatementThread.java
+++ b/sql1... | false | true | public void run()
{
String msg;
boolean cancelSucceeded = false;
boolean closeSucceeded = false;
try
{
_stmt.cancel();
cancelSucceeded = true;
}
catch (Throwable t)
{
// i18n[CancelStatementThread.cancelFailed=Failed to cancel statement.... | public void run()
{
String msg;
boolean cancelSucceeded = false;
boolean closeSucceeded = false;
try
{
if (_stmt != null) {
_stmt.cancel();
}
cancelSucceeded = true;
}
catch (Throwable t)
{
// i18n[CancelStatemen... |
diff --git a/src/main/java/net/visualillusionsent/fruittrees/canary/CanaryFruitTreesListener.java b/src/main/java/net/visualillusionsent/fruittrees/canary/CanaryFruitTreesListener.java
index 220e55c..c7ac36b 100644
--- a/src/main/java/net/visualillusionsent/fruittrees/canary/CanaryFruitTreesListener.java
+++ b/src/main... | true | true | public final void plantSeeds(BlockRightClickHook hook) {
if (hook.getBlockClicked().getType() == BlockType.Soil) {
Item seeds = hook.getPlayer().getItemHeld();
Block block = hook.getBlockClicked();
if (seeds.getMetaTag().containsKey("FruitTrees")) {
String... | public final void plantSeeds(BlockRightClickHook hook) {
if (hook.getBlockClicked().getType() == BlockType.Soil) {
Item seeds = hook.getPlayer().getItemHeld();
Block block = hook.getBlockClicked();
if (seeds.hasMetaTag() && seeds.getMetaTag().containsKey("FruitTrees")) {
... |
diff --git a/src/com/vloxlands/util/RenderAssistant.java b/src/com/vloxlands/util/RenderAssistant.java
index 4f007bb..83cb5cf 100644
--- a/src/com/vloxlands/util/RenderAssistant.java
+++ b/src/com/vloxlands/util/RenderAssistant.java
@@ -1,395 +1,396 @@
package com.vloxlands.util;
import static org.lwjgl.opengl.GL11... | true | true | public static void renderLine(int x, int y, int length, boolean horizontal, boolean doubled)
{
glEnable(GL_BLEND);
bindTexture("/graphics/textures/ui/gui.png");
int height = (doubled) ? 17 : 12;
int width = length;
int lineLength = (doubled) ? 73 : 74;
// if (!horizontal)
// {
// width = height;
... | public static void renderLine(int x, int y, int length, boolean horizontal, boolean doubled)
{
glEnable(GL_BLEND);
bindTexture("/graphics/textures/ui/gui.png");
int height = (doubled) ? 17 : 12;
int width = length;
int lineLength = (doubled) ? 73 : 74;
// if (!horizontal)
// {
// width = height;
... |
diff --git a/test/siver/agents/BoatHouseTest.java b/test/siver/agents/BoatHouseTest.java
index ad5e2ec..c8c48b3 100644
--- a/test/siver/agents/BoatHouseTest.java
+++ b/test/siver/agents/BoatHouseTest.java
@@ -1,87 +1,88 @@
package siver.agents;
import static org.easymock.EasyMock.*;
import static org.junit.Assert.... | false | true | public void testLaunchBoat() {
expect(mockContext.add(anyObject(BoatAgent.class))).andReturn(true).times(1);
expect(mockContext.add(anyObject(CoxAgent.class))).andReturn(true).times(1);
expect(mockContext.add(anyObject(BoatCorner.class))).andReturn(true).times(4);
expect(mockSpace.moveTo(anyObject(BoatAgent.cl... | public void testLaunchBoat() {
expect(mockContext.add(anyObject(BoatAgent.class))).andReturn(true).times(1);
expect(mockContext.add(anyObject(CoxAgent.class))).andReturn(true).times(1);
expect(mockContext.add(anyObject(BoatCorner.class))).andReturn(true).times(4);
expect(mockSpace.moveTo(anyObject(BoatAgent.cl... |
diff --git a/core/src/main/java/org/jclouds/http/handlers/BackoffLimitedRetryHandler.java b/core/src/main/java/org/jclouds/http/handlers/BackoffLimitedRetryHandler.java
index 73fbbd2c00..5915de99b7 100644
--- a/core/src/main/java/org/jclouds/http/handlers/BackoffLimitedRetryHandler.java
+++ b/core/src/main/java/org/jcl... | false | true | private boolean ifReplayableBackoffAndReturnTrue(HttpCommand command) {
command.incrementFailureCount();
if (!command.isReplayable()) {
logger.warn("Cannot retry after server error, command is not replayable: %1$s", command);
return false;
} else if (command.getFailureCount() > r... | private boolean ifReplayableBackoffAndReturnTrue(HttpCommand command) {
command.incrementFailureCount();
if (!command.isReplayable()) {
logger.error("Cannot retry after server error, command is not replayable: %1$s", command);
return false;
} else if (command.getFailureCount() > ... |
diff --git a/Code/src/no/ntnu/fp/gui/WeekSheetAdapter.java b/Code/src/no/ntnu/fp/gui/WeekSheetAdapter.java
index 3fcb89b..9e0b8d8 100644
--- a/Code/src/no/ntnu/fp/gui/WeekSheetAdapter.java
+++ b/Code/src/no/ntnu/fp/gui/WeekSheetAdapter.java
@@ -1,157 +1,157 @@
package no.ntnu.fp.gui;
import java.awt.event.MouseAdap... | true | true | public List<CalendarEntryView> getEntryViews(){
//TODO bgcolor entryviews equal to entryviews from the same calendar
List<CalendarEntryView> entries = new ArrayList<CalendarEntryView>();
for(CalendarEntry calendarEntry: calendar){
if((calendarEntry.getYear()+1900) == dateModel.getYear() && calendarEntry.ge... | public List<CalendarEntryView> getEntryViews(){
//TODO bgcolor entryviews equal to entryviews from the same calendar
List<CalendarEntryView> entries = new ArrayList<CalendarEntryView>();
for(CalendarEntry calendarEntry: calendar){
if((calendarEntry.getYear()+1900) == dateModel.getYear() && calendarEntry.ge... |
diff --git a/weaver/src/org/aspectj/weaver/patterns/WithinCodeAnnotationPointcut.java b/weaver/src/org/aspectj/weaver/patterns/WithinCodeAnnotationPointcut.java
index 7d6ab0ebb..bb0b3bb65 100644
--- a/weaver/src/org/aspectj/weaver/patterns/WithinCodeAnnotationPointcut.java
+++ b/weaver/src/org/aspectj/weaver/patterns/W... | true | true | protected Test findResidueInternal(Shadow shadow, ExposedState state) {
if (annotationTypePattern instanceof BindingAnnotationTypePattern) {
BindingAnnotationTypePattern btp = (BindingAnnotationTypePattern)annotationTypePattern;
UnresolvedType annotationType = btp.annotationType;
Var var = shadow.getWith... | protected Test findResidueInternal(Shadow shadow, ExposedState state) {
if (annotationTypePattern instanceof BindingAnnotationTypePattern) {
BindingAnnotationTypePattern btp = (BindingAnnotationTypePattern)annotationTypePattern;
UnresolvedType annotationType = btp.annotationType;
Var var = shadow.getWith... |
diff --git a/src/se/chalmers/segway/scenes/SceneManager.java b/src/se/chalmers/segway/scenes/SceneManager.java
index f0d2747..cf47596 100644
--- a/src/se/chalmers/segway/scenes/SceneManager.java
+++ b/src/se/chalmers/segway/scenes/SceneManager.java
@@ -1,231 +1,231 @@
package se.chalmers.segway.scenes;
import org.a... | true | true | public void loadGameScene(final Engine mEngine, final int level) {
setScene(loadingScene);
ResourcesManager.getInstance().unloadSelectionTextures();
mEngine.registerUpdateHandler(new TimerHandler(0.1f,
new ITimerCallback() {
public void onTimePassed(final TimerHandler pTimerHandler) {
mEngine.unre... | public void loadGameScene(final Engine mEngine, final int level) {
setScene(loadingScene);
ResourcesManager.getInstance().unloadSelectionTextures();
mEngine.registerUpdateHandler(new TimerHandler(0.1f,
new ITimerCallback() {
public void onTimePassed(final TimerHandler pTimerHandler) {
mEngine.unre... |
diff --git a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/RTSetup.java b/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/RTSetup.java
index ed58f5fe3..1f0e92845 100644
--- a/tests/org.eclipse.gmf.tests/src/org/eclipse/gmf/tests/setup/RTSetup.java
+++ b/tests/org.eclipse.gmf.tests/src/org/ecli... | true | true | protected void initDiagramFileContents(DomainInstanceProducer instanceProducer, DiaGenSource genSource) {
myCanvas = NotationFactory.eINSTANCE.createDiagram();
myDiagramElement = instanceProducer.createInstance(genSource.getGenDiagram().getDomainDiagramElement());
myCanvas.setElement(myDiagramElement);
myCanva... | protected void initDiagramFileContents(DomainInstanceProducer instanceProducer, DiaGenSource genSource) {
myCanvas = NotationFactory.eINSTANCE.createDiagram();
myDiagramElement = instanceProducer.createInstance(genSource.getGenDiagram().getDomainDiagramElement());
myCanvas.setElement(myDiagramElement);
myCanva... |
diff --git a/v4/java/android/support/v4/view/ViewPager.java b/v4/java/android/support/v4/view/ViewPager.java
index f014b99..42304a3 100644
--- a/v4/java/android/support/v4/view/ViewPager.java
+++ b/v4/java/android/support/v4/view/ViewPager.java
@@ -1,2869 +1,2870 @@
/*
* Copyright (C) 2011 The Android Open Source Pr... | false | true | void populate(int newCurrentItem) {
ItemInfo oldCurInfo = null;
int focusDirection = View.FOCUS_FORWARD;
if (mCurItem != newCurrentItem) {
focusDirection = mCurItem < newCurrentItem ? View.FOCUS_RIGHT : View.FOCUS_LEFT;
oldCurInfo = infoForPosition(mCurItem);
... | void populate(int newCurrentItem) {
ItemInfo oldCurInfo = null;
int focusDirection = View.FOCUS_FORWARD;
if (mCurItem != newCurrentItem) {
focusDirection = mCurItem < newCurrentItem ? View.FOCUS_RIGHT : View.FOCUS_LEFT;
oldCurInfo = infoForPosition(mCurItem);
... |
diff --git a/framework/src/java/org/apache/tapestry/ajax/AjaxShellDelegate.java b/framework/src/java/org/apache/tapestry/ajax/AjaxShellDelegate.java
index 433a87ade..6cbde3612 100644
--- a/framework/src/java/org/apache/tapestry/ajax/AjaxShellDelegate.java
+++ b/framework/src/java/org/apache/tapestry/ajax/AjaxShellDeleg... | true | true | public void render(IMarkupWriter writer, IRequestCycle cycle)
{
//first configure dojo, has to happen before package include
StringBuffer str = new StringBuffer("<script type=\"text/javascript\">");
str.append("djConfig = { isDebug: false,")
.append(" baseRelativePath:\"").append... | public void render(IMarkupWriter writer, IRequestCycle cycle)
{
//first configure dojo, has to happen before package include
StringBuffer str = new StringBuffer("<script type=\"text/javascript\">");
str.append("djConfig = { isDebug: false,")
.append(" baseRelativePath:\"").append... |
diff --git a/OpTalk/OpTalk/src/be/infogroep/optalk/ItemShare.java b/OpTalk/OpTalk/src/be/infogroep/optalk/ItemShare.java
index 938df38..f402eeb 100644
--- a/OpTalk/OpTalk/src/be/infogroep/optalk/ItemShare.java
+++ b/OpTalk/OpTalk/src/be/infogroep/optalk/ItemShare.java
@@ -1,131 +1,131 @@
package be.infogroep.optalk;
... | true | true | ItemShare(CommandSender sender, String[] msg) {
Bukkit.getLogger().info("ItemShare");
if (msg.length > 0) {
String name = msg[0];
receiver_ = Bukkit.getServer().getPlayer(name);
}
sender_ = (Player) sender;
item_ = sender_.getItemInHand();
meta_ = item_.getItemMeta();
if (meta_ != null) {
if... | ItemShare(CommandSender sender, String[] msg) {
Bukkit.getLogger().info("ItemShare");
if (msg.length > 0) {
String name = msg[0];
receiver_ = Bukkit.getServer().getPlayer(name);
}
sender_ = (Player) sender;
item_ = sender_.getItemInHand();
meta_ = item_.getItemMeta();
if (meta_ != null) {
if... |
diff --git a/src/java/org/infoglue/deliver/taglib/management/PrincipalPropertyTag.java b/src/java/org/infoglue/deliver/taglib/management/PrincipalPropertyTag.java
index ed12ecdec..955fbefa8 100755
--- a/src/java/org/infoglue/deliver/taglib/management/PrincipalPropertyTag.java
+++ b/src/java/org/infoglue/deliver/taglib/... | true | true | public int doEndTag() throws JspException
{
if(languageId == null)
languageId = getController().getLanguageId();
//Here we store the defeat caches setting for later reset
boolean previousDefeatCaches = getController().getDeliveryContext().getDefeatCaches();
try
{
Map<Clas... | public int doEndTag() throws JspException
{
if(languageId == null)
languageId = getController().getLanguageId();
//Here we store the defeat caches setting for later reset
boolean previousDefeatCaches = getController().getDeliveryContext().getDefeatCaches();
try
{
getContr... |
diff --git a/deployers-core/src/main/org/jboss/deployers/plugins/structure/StructureMetaDataImpl.java b/deployers-core/src/main/org/jboss/deployers/plugins/structure/StructureMetaDataImpl.java
index 087036da..369e4b83 100644
--- a/deployers-core/src/main/org/jboss/deployers/plugins/structure/StructureMetaDataImpl.java
... | true | true | public void addContext(ContextInfo context)
{
if (context == null)
throw new IllegalArgumentException("Null context");
String path = context.getPath();
if (path == null)
throw new IllegalArgumentException("Context has no path");
for (ContextInfo other : contexts)
{... | public void addContext(ContextInfo context)
{
if (context == null)
throw new IllegalArgumentException("Null context");
String path = context.getPath();
if (path == null)
throw new IllegalArgumentException("Context has no path");
for (ContextInfo other : contexts)
{... |
diff --git a/model/org/eclipse/cdt/internal/core/settings/model/AbstractCExtensionProxy.java b/model/org/eclipse/cdt/internal/core/settings/model/AbstractCExtensionProxy.java
index 5e56471b5..61b39f3bf 100644
--- a/model/org/eclipse/cdt/internal/core/settings/model/AbstractCExtensionProxy.java
+++ b/model/org/eclipse/c... | false | true | private boolean checkUpdateProvider(ICProjectDescription des, boolean recreate, boolean rescan){
Object newProvider = null;
Object oldProvider = null;
synchronized(this){
if(recreate || rescan || !fInited){
ICExtensionReference ref = null;
boolean newStile = true;
ICConfigurationDescription cfg =... | private boolean checkUpdateProvider(ICProjectDescription des, boolean recreate, boolean rescan){
Object newProvider = null;
Object oldProvider = null;
synchronized(this){
if(recreate || rescan || !fInited){
ICExtensionReference ref = null;
boolean newStyle = true;
ICConfigurationDescription cfg =... |
diff --git a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/wizards/JoinSessionWizard.java b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/wizards/JoinSessionWizard.java
index 6c202cef5..1fd9ff884 100644
--- a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/wizards/JoinSessionWizard.java
+++ b/de.fu_berlin.inf.dp... | true | true | public boolean performFinish() {
final IProject source = namePage.getSourceProject();
final String target = namePage.getTargetProjectName();
final boolean skip = namePage.isSyncSkippingSelected();
/*
* Ask the user whether to overwrite local resources only if resources
... | public boolean performFinish() {
final IProject source = namePage.getSourceProject();
final String target = namePage.getTargetProjectName();
final boolean skip = namePage.isSyncSkippingSelected();
/*
* Ask the user whether to overwrite local resources only if resources
... |
diff --git a/java/uk/ltd/getahead/dwr/convert/EnumConverter.java b/java/uk/ltd/getahead/dwr/convert/EnumConverter.java
index 726a9a54..72d3008b 100644
--- a/java/uk/ltd/getahead/dwr/convert/EnumConverter.java
+++ b/java/uk/ltd/getahead/dwr/convert/EnumConverter.java
@@ -1,65 +1,64 @@
package uk.ltd.getahead.dwr.conver... | false | true | public Object convertInbound(Class paramType, InboundVariable iv, InboundContext inctx) throws ConversionException
{
String value = LocalUtil.decode(iv.getValue());
// Object[] values = paramType.getEnumConstants();
Object[] values = null;
try
{
Method getter... | public Object convertInbound(Class paramType, InboundVariable iv, InboundContext inctx) throws ConversionException
{
String value = LocalUtil.decode(iv.getValue());
Object[] values = null;
try
{
Method getter = paramType.getMethod("values", new Class[0]); //$NON-NLS-... |
diff --git a/src/uk/me/parabola/imgfmt/app/trergn/LinePreparer.java b/src/uk/me/parabola/imgfmt/app/trergn/LinePreparer.java
index 9356c78c..e24fb13f 100644
--- a/src/uk/me/parabola/imgfmt/app/trergn/LinePreparer.java
+++ b/src/uk/me/parabola/imgfmt/app/trergn/LinePreparer.java
@@ -1,333 +1,333 @@
/**
* Copyright (C... | true | true | private void calcDeltas() {
log.info("label offset", polyline.getLabel().getOffset());
int shift = polyline.getSubdiv().getShift();
List<Coord> points = polyline.getPoints();
// Space to hold the deltas
deltas = new int[2 * (points.size() - 1)];
if (extraBit)
nodes = new boolean[points.size()];
bool... | private void calcDeltas() {
log.info("label offset", polyline.getLabel().getOffset());
int shift = polyline.getSubdiv().getShift();
List<Coord> points = polyline.getPoints();
// Space to hold the deltas
deltas = new int[2 * (points.size() - 1)];
if (extraBit)
nodes = new boolean[points.size()];
bool... |
diff --git a/servicemix-components/src/test/java/org/apache/servicemix/components/jca/JmsOverJcaWithFullXATest.java b/servicemix-components/src/test/java/org/apache/servicemix/components/jca/JmsOverJcaWithFullXATest.java
index 8679dbdd4..6b49078c1 100644
--- a/servicemix-components/src/test/java/org/apache/servicemix/c... | true | true | public void testSendMessagesToJmsThenOutofJmsToReceiver() throws Exception {
QName service = new QName("http://servicemix.org/cheese/", "myJmsSender");
assertSendAndReceiveMessages(service);
}
| public void testSendMessagesToJmsThenOutofJmsToReceiver() throws Exception {
QName service = new QName("http://servicemix.org/cheese/", "myJmsSender");
sendMessages(service, messageCount, false);
assertMessagesReceived(messageCount);
}
|
diff --git a/spoon-maven-plugin/src/main/java/com/squareup/spoon/SpoonMojo.java b/spoon-maven-plugin/src/main/java/com/squareup/spoon/SpoonMojo.java
index 7b4c57c..042151a 100644
--- a/spoon-maven-plugin/src/main/java/com/squareup/spoon/SpoonMojo.java
+++ b/spoon-maven-plugin/src/main/java/com/squareup/spoon/SpoonMojo.... | false | true | public void execute() throws MojoExecutionException {
Log log = getLog();
if (mavenTestSkip || mavenSkipTests || skip) {
log.debug("maven.test.skip = " + mavenTestSkip);
log.debug("skipTests = " + mavenSkipTests);
log.debug("skip = " + skip);
log.info("Skipping Spoon execution.");
... | public void execute() throws MojoExecutionException {
Log log = getLog();
if (mavenTestSkip || mavenSkipTests || skip) {
log.debug("maven.test.skip = " + mavenTestSkip);
log.debug("skipTests = " + mavenSkipTests);
log.debug("skip = " + skip);
log.info("Skipping Spoon execution.");
... |
diff --git a/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java b/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
index d409077e..00ee655f 100644
--- a/ace-webui-vaadin/src/main/java/org/apache/ace/webui/vaadin/VaadinClient.java
+++ b/ace-webui-vaadin/src/main/java... | false | true | private void initGrid(User user) {
Authorization auth = m_userAdmin.getAuthorization(user);
int count = 0;
for (String role : new String[] { "viewBundle", "viewGroup", "viewLicense", "viewTarget" }) {
if (auth.hasRole(role)) {
count++;
}
}
... | private void initGrid(User user) {
Authorization auth = m_userAdmin.getAuthorization(user);
int count = 0;
for (String role : new String[] { "viewArtifact", "viewFeature", "viewDistribution", "viewTarget" }) {
if (auth.hasRole(role)) {
count++;
}
... |
diff --git a/src/main/java/de/deepamehta/plugins/workspaces/WorkspacesPlugin.java b/src/main/java/de/deepamehta/plugins/workspaces/WorkspacesPlugin.java
index 7c078ce..ff608ac 100644
--- a/src/main/java/de/deepamehta/plugins/workspaces/WorkspacesPlugin.java
+++ b/src/main/java/de/deepamehta/plugins/workspaces/Workspace... | false | true | public void postCreateHook(Topic topic, Map<String, String> clientContext) {
// Note 1: we do not relate search results to a workspace. Otherwise the search result would appear
// as relation when displaying the workspace. That's because an "Auxiliray" relation is not be
// created if there ... | public void postCreateHook(Topic topic, Map<String, String> clientContext) {
// Note 1: we do not relate search results to a workspace. Otherwise the search result would appear
// as relation when displaying the workspace. That's because a "SEARCH_RESULT" relation is not be
// created if the... |
diff --git a/src/com/android/browser/NfcHandler.java b/src/com/android/browser/NfcHandler.java
index bdfe25ef..bbac640a 100644
--- a/src/com/android/browser/NfcHandler.java
+++ b/src/com/android/browser/NfcHandler.java
@@ -1,73 +1,72 @@
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under t... | true | true | public NdefMessage createMessage() {
Tab currentTab = mController.getCurrentTab();
if (currentTab == null) {
return null;
}
String currentUrl = currentTab.getUrl();
if (currentUrl != null && currentTab.getWebView() != null &&
!currentTab.getWeb... | public NdefMessage createMessage() {
Tab currentTab = mController.getCurrentTab();
if (currentTab == null) {
return null;
}
String currentUrl = currentTab.getUrl();
if (currentUrl != null && currentTab.getWebView() != null &&
!currentTab.getWeb... |
diff --git a/extensions/gdx-tools/src/com/badlogic/gdx/tools/particleeditor/ScaledNumericPanel.java b/extensions/gdx-tools/src/com/badlogic/gdx/tools/particleeditor/ScaledNumericPanel.java
index 186f4a8b8..b96098021 100644
--- a/extensions/gdx-tools/src/com/badlogic/gdx/tools/particleeditor/ScaledNumericPanel.java
+++ ... | true | true | public ScaledNumericPanel (final ScaledNumericValue value, String chartTitle, String name, String description) {
super(value, name, description);
this.value = value;
initializeComponents(chartTitle);
lowMinSlider.setValue(value.getLowMin());
lowMaxSlider.setValue(value.getLowMax());
highMinSlider.setValu... | public ScaledNumericPanel (final ScaledNumericValue value, String chartTitle, String name, String description) {
super(value, name, description);
this.value = value;
initializeComponents(chartTitle);
lowMinSlider.setValue(value.getLowMin());
lowMaxSlider.setValue(value.getLowMax());
highMinSlider.setValu... |
diff --git a/src/test/org/apache/nutch/fetcher/TestFetcher.java b/src/test/org/apache/nutch/fetcher/TestFetcher.java
index e2ca0edb..4c1b2e4e 100644
--- a/src/test/org/apache/nutch/fetcher/TestFetcher.java
+++ b/src/test/org/apache/nutch/fetcher/TestFetcher.java
@@ -1,137 +1,138 @@
/*
* Copyright 2006 The Apache Sof... | false | true | public void testFetch() throws IOException {
//generate seedlist
ArrayList<String> urls=new ArrayList<String>();
addUrl(urls,"index.html");
addUrl(urls,"pagea.html");
addUrl(urls,"pageb.html");
addUrl(urls,"dup_of_pagea.html");
CrawlDBTestUtil.generateSeedList(fs, urlPath, u... | public void testFetch() throws IOException {
//generate seedlist
ArrayList<String> urls=new ArrayList<String>();
addUrl(urls,"index.html");
addUrl(urls,"pagea.html");
addUrl(urls,"pageb.html");
addUrl(urls,"dup_of_pagea.html");
CrawlDBTestUtil.generateSeedList(fs, urlPath, u... |
diff --git a/src/mist/src/com/trendmicro/mist/cmd/MistSource.java b/src/mist/src/com/trendmicro/mist/cmd/MistSource.java
index d48a13d..dc3cebe 100644
--- a/src/mist/src/com/trendmicro/mist/cmd/MistSource.java
+++ b/src/mist/src/com/trendmicro/mist/cmd/MistSource.java
@@ -1,379 +1,382 @@
package com.trendmicro.mist.cm... | true | true | private void processAttach() {
if(timeout != -1) {
reaper.setLive((long) timeout);
new Thread(reaper).start();
}
GateTalk.Request.Builder req_builder = GateTalk.Request.newBuilder();
req_builder.setType(GateTalk.Request.Type.CLIENT_ATTACH);
req_builde... | private void processAttach() {
if(timeout != -1) {
reaper.setLive((long) timeout);
new Thread(reaper).start();
}
GateTalk.Request.Builder req_builder = GateTalk.Request.newBuilder();
req_builder.setType(GateTalk.Request.Type.CLIENT_ATTACH);
req_builde... |
diff --git a/core/src/main/java/org/apache/mina/filter/codec/demux/DemuxingProtocolCodecFactory.java b/core/src/main/java/org/apache/mina/filter/codec/demux/DemuxingProtocolCodecFactory.java
index 60bd5f4b..e5cf6a24 100644
--- a/core/src/main/java/org/apache/mina/filter/codec/demux/DemuxingProtocolCodecFactory.java
+++... | false | true | protected boolean doDecode(IoSession session, ByteBuffer in,
ProtocolDecoderOutput out) throws Exception {
if (currentDecoder == null) {
MessageDecoder[] decoders = this.decoders;
int undecodables = 0;
for (int i = decoders.length - 1; ... | protected boolean doDecode(IoSession session, ByteBuffer in,
ProtocolDecoderOutput out) throws Exception {
if (currentDecoder == null) {
MessageDecoder[] decoders = this.decoders;
int undecodables = 0;
for (int i = decoders.length - 1; ... |
diff --git a/src/nl/giantit/minecraft/GiantShop/GiantShop.java b/src/nl/giantit/minecraft/GiantShop/GiantShop.java
index 5c1e9af..5a6be2e 100644
--- a/src/nl/giantit/minecraft/GiantShop/GiantShop.java
+++ b/src/nl/giantit/minecraft/GiantShop/GiantShop.java
@@ -1,290 +1,290 @@
package nl.giantit.minecraft.GiantShop;
... | true | true | public void onEnable() {
this.gc = GiantCore.getInstance();
if(this.gc == null) {
getLogger().severe("Failed to hook into required GiantCore!");
this.getPluginLoader().disablePlugin(this);
return;
}
if(this.gc.getProtocolVersion() >= 0.2) {
getLogger().severe("The GiantCore version you are using... | public void onEnable() {
this.gc = GiantCore.getInstance();
if(this.gc == null) {
getLogger().severe("Failed to hook into required GiantCore!");
this.getPluginLoader().disablePlugin(this);
return;
}
if(this.gc.getProtocolVersion() < 0.3) {
getLogger().severe("The GiantCore version you are using ... |
diff --git a/src/de/geotweeter/Account.java b/src/de/geotweeter/Account.java
index c445e7a..3c1885e 100644
--- a/src/de/geotweeter/Account.java
+++ b/src/de/geotweeter/Account.java
@@ -1,546 +1,546 @@
package de.geotweeter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
imp... | true | true | protected void parseData(ArrayList<ArrayList<TimelineElement>> responses, boolean do_clip) {
final long old_max_known_dm_id = max_known_dm_id;
Log.d(LOG, "parseData started.");
final ArrayList<TimelineElement> all_elements = new ArrayList<TimelineElement>();
long last_id = 0;
// remove empty arrays
for (in... | protected void parseData(ArrayList<ArrayList<TimelineElement>> responses, boolean do_clip) {
final long old_max_known_dm_id = max_known_dm_id;
Log.d(LOG, "parseData started.");
final ArrayList<TimelineElement> all_elements = new ArrayList<TimelineElement>();
long last_id = 0;
// remove empty arrays
for (in... |
diff --git a/DefectTracker/src/edu/wpi/cs/wpisuitetng/modules/defecttracker/entitymanagers/DefectManager.java b/DefectTracker/src/edu/wpi/cs/wpisuitetng/modules/defecttracker/entitymanagers/DefectManager.java
index 1d51e008..4b024543 100644
--- a/DefectTracker/src/edu/wpi/cs/wpisuitetng/modules/defecttracker/entitymana... | true | true | public Defect update(Session session, String content) throws WPISuiteException {
Defect updatedDefect = Defect.fromJSON(content);
List<ValidationIssue> issues = validator.validate(session, updatedDefect, Mode.EDIT);
if(issues.size() > 0) {
// TODO: pass errors to client through exception
throw new BadRe... | public Defect update(Session session, String content) throws WPISuiteException {
Defect updatedDefect = Defect.fromJSON(content);
List<ValidationIssue> issues = validator.validate(session, updatedDefect, Mode.EDIT);
if(issues.size() > 0) {
// TODO: pass errors to client through exception
throw new BadRe... |
diff --git a/library/src/com/inqbarna/tablefixheaders/TableFixHeaders.java b/library/src/com/inqbarna/tablefixheaders/TableFixHeaders.java
index 9cfc1fa..5c042ee 100644
--- a/library/src/com/inqbarna/tablefixheaders/TableFixHeaders.java
+++ b/library/src/com/inqbarna/tablefixheaders/TableFixHeaders.java
@@ -1,743 +1,74... | false | true | public void scrollBy(int x, int y) {
scrollX += x;
scrollY += y;
// scroll bounds
if (scrollX == 0) {
// no op
} else if (scrollX < 0) {
scrollX = Math.max(scrollX, -sumArray(widths, 1, firstColumn));
} else {
scrollX = Math.min(scrollX, sumArray(widths, firstColumn + 1, columnCount - firstColumn... | public void scrollBy(int x, int y) {
/**
* TODO Improve this function. If the table have an adapter but not
* layout I can precalculate the scroll. #10
*/
if (widths != null && heights != null) {
scrollX += x;
scrollY += y;
// scroll bounds
if (scrollX == 0) {
// no op
} else if (scrollX < 0... |
diff --git a/messageforums-component-impl/src/java/org/sakaiproject/component/app/messageforums/MembershipManagerImpl.java b/messageforums-component-impl/src/java/org/sakaiproject/component/app/messageforums/MembershipManagerImpl.java
index f8bf26a5..441345dd 100644
--- a/messageforums-component-impl/src/java/org/sakai... | false | true | public Map getAllCourseMembers(boolean filterFerpa, boolean includeRoles, boolean includeAllParticipantsMember)
{
Map returnMap = new HashMap();
String realmId = getContextSiteId();
Site currentSite = null;
/** add all participants */
if (includeAllParticipantsMember){
Memb... | public Map getAllCourseMembers(boolean filterFerpa, boolean includeRoles, boolean includeAllParticipantsMember)
{
Map returnMap = new HashMap();
String realmId = getContextSiteId();
Site currentSite = null;
/** add all participants */
if (includeAllParticipantsMember){
Memb... |
diff --git a/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java b/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
index 0f505316f..9a524234f 100644
--- a/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
+++ b/src/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java... | true | true | public void run() {
boolean quiesceRequested = false;
// A sleeper that sleeps for msgInterval.
Sleeper sleeper = new Sleeper(this.msgInterval, this.stopRequested);
try {
init(reportForDuty(sleeper));
long lastMsg = 0;
// Now ask master what it wants us to do and tell it what we have... | public void run() {
boolean quiesceRequested = false;
// A sleeper that sleeps for msgInterval.
Sleeper sleeper = new Sleeper(this.msgInterval, this.stopRequested);
try {
init(reportForDuty(sleeper));
long lastMsg = 0;
// Now ask master what it wants us to do and tell it what we have... |
diff --git a/src/main/java/se/bhg/photos/service/impl/BhgV4ImporterServiceImpl.java b/src/main/java/se/bhg/photos/service/impl/BhgV4ImporterServiceImpl.java
index eed5915..28fbeeb 100644
--- a/src/main/java/se/bhg/photos/service/impl/BhgV4ImporterServiceImpl.java
+++ b/src/main/java/se/bhg/photos/service/impl/BhgV4Impo... | true | true | private void importImages() throws PhotoAlreadyExistsException {
long start = System.currentTimeMillis();
List<Map<String, Object>> result = jdbcTemplateImages.queryForList("select * from image");
int n = 0;
for (Map<String, Object> row: result) {
LOG.info("Found images!... | private void importImages() throws PhotoAlreadyExistsException {
long start = System.currentTimeMillis();
List<Map<String, Object>> result = jdbcTemplateImages.queryForList("select * from image");
int n = 0;
for (Map<String, Object> row: result) {
LOG.info("Found images!... |
diff --git a/src/org/meta_environment/rascal/interpreter/env/JavaFunction.java b/src/org/meta_environment/rascal/interpreter/env/JavaFunction.java
index 5b4189af26..25a2636504 100644
--- a/src/org/meta_environment/rascal/interpreter/env/JavaFunction.java
+++ b/src/org/meta_environment/rascal/interpreter/env/JavaFunctio... | false | true | public IValue invoke(IValue[] actuals) {
try {
return (IValue) method.invoke(null, (Object[]) actuals);
} catch (SecurityException e) {
throw new ImplementationError("Unexpected security exception" + e);
} catch (IllegalArgumentException e) {
throw new ImplementationError("An illegal argument was genera... | public IValue invoke(IValue[] actuals) {
try {
return (IValue) method.invoke(null, (Object[]) actuals);
} catch (SecurityException e) {
throw new ImplementationError("Unexpected security exception", e);
} catch (IllegalArgumentException e) {
throw new ImplementationError("An illegal argument was generat... |
diff --git a/src/main/com/mucommander/ui/tabs/MultipleTabsDisplay.java b/src/main/com/mucommander/ui/tabs/MultipleTabsDisplay.java
index 5ff2725c..2d0474aa 100644
--- a/src/main/com/mucommander/ui/tabs/MultipleTabsDisplay.java
+++ b/src/main/com/mucommander/ui/tabs/MultipleTabsDisplay.java
@@ -1,201 +1,196 @@
/*
* T... | false | true | public void removeDuplicateTabs() {
// a Set that will contain the tabs we've seen
Set<T> visitedTabs = new HashSet<T>();
// a Set that will contain the tabs which are duplicated
Set<T> duplicatedTabs = new HashSet<T>();
// The index of the selected tab
int selectedTabIndex = getSelectedTabIndex();
/... | public void removeDuplicateTabs() {
// a Set that will contain the tabs we've seen
Set<T> visitedTabs = new HashSet<T>();
// a Set that will contain the tabs which are duplicated
Set<T> duplicatedTabs = new HashSet<T>();
// The index of the selected tab
int selectedTabIndex = getSelectedTabIndex();
/... |
diff --git a/src/gui/org/deidentifier/arx/gui/view/impl/analyze/ViewStatistics.java b/src/gui/org/deidentifier/arx/gui/view/impl/analyze/ViewStatistics.java
index 9e06de640..033d44f5b 100644
--- a/src/gui/org/deidentifier/arx/gui/view/impl/analyze/ViewStatistics.java
+++ b/src/gui/org/deidentifier/arx/gui/view/impl/ana... | false | true | protected DataHandle getHandle() {
if (model != null){
if (target == ModelPart.INPUT){
DataHandle handle = model.getInputConfig().getInput().getHandle();
if (model.getViewConfig().isSubset() &&
model.getOutputConfig() != null &&
... | protected DataHandle getHandle() {
if (model != null){
if (target == ModelPart.INPUT){
DataHandle handle = model.getInputConfig().getInput().getHandle();
if (model.getViewConfig().isSubset() &&
model.getOutputConfig() != null &&
... |
diff --git a/src/net/sf/freecol/client/gui/panel/RebelToolTip.java b/src/net/sf/freecol/client/gui/panel/RebelToolTip.java
index 62db50f2b..edd9dd354 100644
--- a/src/net/sf/freecol/client/gui/panel/RebelToolTip.java
+++ b/src/net/sf/freecol/client/gui/panel/RebelToolTip.java
@@ -1,115 +1,115 @@
/**
* Copyright (C)... | false | true | public RebelToolTip(Colony colony, Canvas parent) {
setLayout(new MigLayout("fillx, wrap 3", "[][right][right]", ""));
int members = colony.getMembers();
int rebels = colony.getSoL();
add(new JLabel(Messages.message(StringTemplate.template("colonyPanel.rebelLabel")
... | public RebelToolTip(Colony colony, Canvas parent) {
setLayout(new MigLayout("fillx, wrap 3", "[][right][right]", ""));
int members = colony.getMembers();
int rebels = colony.getSoL();
add(new JLabel(Messages.message(StringTemplate.template("colonyPanel.rebelLabel")
... |
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationPainter.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationPainter.java
index 1bb533b00..e9e290956 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/AnnotationPainter.java
+++ b/org.eclipse.jface.t... | false | true | private synchronized void catchupWithModel(AnnotationModelEvent event) {
if (fDecorationsMap != null) {
int highlightAnnotationRangeStart= Integer.MAX_VALUE;
int highlightAnnotationRangeEnd= -1;
if (fModel != null) {
boolean isWorldChange= false;
Iterator e;
if (event... | private synchronized void catchupWithModel(AnnotationModelEvent event) {
if (fDecorationsMap != null) {
int highlightAnnotationRangeStart= Integer.MAX_VALUE;
int highlightAnnotationRangeEnd= -1;
if (fModel != null) {
boolean isWorldChange= false;
Iterator e;
if (event... |
diff --git a/ScreenLayoutTool/src/Data.java b/ScreenLayoutTool/src/Data.java
index 9113a65..0d0d9bd 100644
--- a/ScreenLayoutTool/src/Data.java
+++ b/ScreenLayoutTool/src/Data.java
@@ -1,239 +1,239 @@
import java.awt.Color;
import java.awt.Graphics;
import java.io.BufferedReader;
import java.io.FileReader;
import ... | true | true | public static void loadFromFile(String filename)
{
clearAll();
try
{
BufferedReader in = new BufferedReader(new FileReader(filename));
while(true)
{
String line = in.readLine();
if(line==null)break;
StringTokenizer st = new StringTokenizer(line);
Data.Box box = new Data.Box(... | public static void loadFromFile(String filename)
{
clearAll();
try
{
BufferedReader in = new BufferedReader(new FileReader(filename));
while(true)
{
String line = in.readLine();
if(line==null)break;
StringTokenizer st = new StringTokenizer(line);
Data.Box box = new Data.Box(... |
diff --git a/src/main/java/br/ufrj/dcc/compgraf/im/ui/options/GreyScaleOptionsDialog.java b/src/main/java/br/ufrj/dcc/compgraf/im/ui/options/GreyScaleOptionsDialog.java
index 32cd9f9..126fdc9 100644
--- a/src/main/java/br/ufrj/dcc/compgraf/im/ui/options/GreyScaleOptionsDialog.java
+++ b/src/main/java/br/ufrj/dcc/compgr... | true | true | private void initLayout()
{
JPanel panel = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10));
panel.setOpaque(true);
setContentPane(panel);
final JComboBox typesCombo = new JComboBox();
for (GreyScaleType greyScaleType : GreyScaleType.values())
{
typesCombo.addItem(greyScaleTy... | private void initLayout()
{
JPanel panel = new JPanel(new FlowLayout(FlowLayout.CENTER, 10, 10));
panel.setOpaque(true);
setContentPane(panel);
final JComboBox typesCombo = new JComboBox();
for (GreyScaleType greyScaleType : GreyScaleType.values())
{
typesCombo.addItem(greyScaleTy... |
diff --git a/src/main/java/ch/ethz/nlp/headline/visualization/PeerInspector.java b/src/main/java/ch/ethz/nlp/headline/visualization/PeerInspector.java
index 86bd4ba..7ebf083 100644
--- a/src/main/java/ch/ethz/nlp/headline/visualization/PeerInspector.java
+++ b/src/main/java/ch/ethz/nlp/headline/visualization/PeerInspec... | true | true | public void inspect(Task task, Collection<Peer> peers) throws IOException {
RougeN rouge1 = new RougeN(1);
RougeN rouge2 = new RougeN(2);
NGramHitVisualizer visualizer = NGramHitVisualizer.of(
annotationProvider, task.getModels());
List<Annotation> modelAnnotations = visualizer.getModelAnnotations();
f... | public void inspect(Task task, Collection<Peer> peers) throws IOException {
RougeN rouge1 = new RougeN(1);
RougeN rouge2 = new RougeN(2);
NGramHitVisualizer visualizer = NGramHitVisualizer.of(
annotationProvider, task.getModels());
List<Annotation> modelAnnotations = visualizer.getModelAnnotations();
f... |
diff --git a/src/java/fedora/server/storage/lowlevel/PathAlgorithm.java b/src/java/fedora/server/storage/lowlevel/PathAlgorithm.java
index 4eed8f251..17df9dd34 100755
--- a/src/java/fedora/server/storage/lowlevel/PathAlgorithm.java
+++ b/src/java/fedora/server/storage/lowlevel/PathAlgorithm.java
@@ -1,84 +1,84 @@
pack... | true | true | private static final String encode(String unencoded) throws LowlevelStorageException {
try {
int i = unencoded.indexOf("+");
if (i != -1) {
return Server.getPID(unencoded.substring(0, i-1)).toFilename()
+ unencoded.substring(i);
} els... | private static final String encode(String unencoded) throws LowlevelStorageException {
try {
int i = unencoded.indexOf("+");
if (i != -1) {
return Server.getPID(unencoded.substring(0, i)).toFilename()
+ unencoded.substring(i);
} else ... |
diff --git a/src/gossipLearning/protocols/SlimBanditProtocol.java b/src/gossipLearning/protocols/SlimBanditProtocol.java
index e932b46..cd3dac7 100644
--- a/src/gossipLearning/protocols/SlimBanditProtocol.java
+++ b/src/gossipLearning/protocols/SlimBanditProtocol.java
@@ -1,53 +1,58 @@
package gossipLearning.protocols... | true | true | public void activeThread() {
// check whether the node has at least one model
if (getModelHolder(0) != null && getModelHolder(0).size() > 0){
// check the model stored in the holder
final Model latestModelG = getModelHolder(0).getModel(getModelHolder(0).size() - 1);
if (! (latestModel... | public void activeThread() {
// check whether the node has at least one model
if (getModelHolder(0) != null && getModelHolder(0).size() > 0){
// check the model stored in the holder
final Model latestModelG = getModelHolder(0).getModel(getModelHolder(0).size() - 1);
if (! (latestModel... |
diff --git a/org.openbel.framework.core/src/main/java/org/openbel/framework/core/equivalence/StatementEquivalencer.java b/org.openbel.framework.core/src/main/java/org/openbel/framework/core/equivalence/StatementEquivalencer.java
index a82b4de1..4219f74f 100644
--- a/org.openbel.framework.core/src/main/java/org/openbel/... | true | true | protected static int equivalenceInternal(List<TableProtoEdge> edges,
Map<Integer, Set<Integer>> edgeStmts, Map<Integer, Integer> eqn,
Map<Integer, Integer> eqe) {
eqe.clear();
int eqct = 0;
final Map<TableProtoEdge, Integer> edgeCache =
new HashMap<Pr... | protected static int equivalenceInternal(List<TableProtoEdge> edges,
Map<Integer, Set<Integer>> edgeStmts, Map<Integer, Integer> eqn,
Map<Integer, Integer> eqe) {
eqe.clear();
int eqct = 0;
final Map<TableProtoEdge, Integer> edgeCache =
new HashMap<Pr... |
diff --git a/SimplyVanish/src/asofold/simplyvanish/SimplyVanish.java b/SimplyVanish/src/asofold/simplyvanish/SimplyVanish.java
index 3d907bb..9626010 100644
--- a/SimplyVanish/src/asofold/simplyvanish/SimplyVanish.java
+++ b/SimplyVanish/src/asofold/simplyvanish/SimplyVanish.java
@@ -1,326 +1,326 @@
package asofold.si... | true | true | public boolean onCommand(CommandSender sender, Command command,
String label, String[] args) {
label = getMappedCommandLabel(label);
int len = args.length;
boolean hasFlags = false;
for ( int i=args.length-1; i>=0; i++){
if (args[i].startsWith("+") || args[i].startsWith("-")){
len --;
hasFlags = ... | public boolean onCommand(CommandSender sender, Command command,
String label, String[] args) {
label = getMappedCommandLabel(label);
int len = args.length;
boolean hasFlags = false;
for ( int i=args.length-1; i>=0; i--){
if (args[i].startsWith("+") || args[i].startsWith("-")){
len --;
hasFlags = ... |
diff --git a/src/org/concord/geniverse/server/OrganismServiceImpl.java b/src/org/concord/geniverse/server/OrganismServiceImpl.java
index 4e8503d..f24f71f 100644
--- a/src/org/concord/geniverse/server/OrganismServiceImpl.java
+++ b/src/org/concord/geniverse/server/OrganismServiceImpl.java
@@ -1,282 +1,282 @@
package or... | true | true | private String generateFilename(Organism org, int imageSize) {
if (getCharacteristic(org, "Liveliness").equalsIgnoreCase("Dead")){
return "dead-drake.png";
}
// [color]_[sex]_[wing]_[limbs]_[armor]_[tail]_[horn]_[rostralHorn]_[health].png
String filename = "";
// color
filename += getCharacteri... | private String generateFilename(Organism org, int imageSize) {
if (getCharacteristic(org, "Liveliness").equalsIgnoreCase("Dead")){
return "dead-drake.png";
}
// [color]_[sex]_[wing]_[limbs]_[armor]_[tail]_[horn]_[rostralHorn]_[health].png
String filename = "";
// color
filename += getCharacteri... |
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine/EngineTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine/EngineTest.java
index abe56f7af..d96fe7a4f 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine/En... | true | true | public void testIncompatibleProfile() {
IProfile profile = new IProfile() {
public IQueryResult<IInstallableUnit> available(IQuery<IInstallableUnit> query, IProgressMonitor monitor) {
return new Collector<IInstallableUnit>();
}
public Map getInstallableUnitProperties(IInstallableUnit iu) {
return ... | public void testIncompatibleProfile() {
IProfile profile = new IProfile() {
public IQueryResult<IInstallableUnit> available(IQuery<IInstallableUnit> query, IProgressMonitor monitor) {
return new Collector<IInstallableUnit>();
}
public Map getInstallableUnitProperties(IInstallableUnit iu) {
return ... |
diff --git a/src/de/fuberlin/projecta/src/main/java/analysis/SemanticAnalyzer.java b/src/de/fuberlin/projecta/src/main/java/analysis/SemanticAnalyzer.java
index 0884e4e8..8e2693a2 100644
--- a/src/de/fuberlin/projecta/src/main/java/analysis/SemanticAnalyzer.java
+++ b/src/de/fuberlin/projecta/src/main/java/analysis/Sem... | true | true | public void toAST(ISyntaxTree tree, ISyntaxTree insertNode) {
if (tree.getSymbol().isNonTerminal()) {
NonTerminal nonT = tree.getSymbol().asNonTerminal();
switch (nonT) {
case program:
AST = new Program();
toAST(tree.getChild(0), AST);
return;
case funcs:
for (int i = 0; i < tree.getChi... | public void toAST(ISyntaxTree tree, ISyntaxTree insertNode) {
if (tree.getSymbol().isNonTerminal()) {
NonTerminal nonT = tree.getSymbol().asNonTerminal();
switch (nonT) {
case program:
AST = new Program();
toAST(tree.getChild(0), AST);
return;
case funcs:
for (int i = 0; i < tree.getChi... |
diff --git a/src/org/pentaho/di/ui/job/entries/hadoopjobexecutor/JobEntryHadoopJobExecutorDialog.java b/src/org/pentaho/di/ui/job/entries/hadoopjobexecutor/JobEntryHadoopJobExecutorDialog.java
index f9c961a9..9bfc491d 100644
--- a/src/org/pentaho/di/ui/job/entries/hadoopjobexecutor/JobEntryHadoopJobExecutorDialog.java
... | true | true | public JobEntryHadoopJobExecutorDialog(Shell parent, JobEntryInterface jobEntry, Repository rep, JobMeta jobMeta) throws XulException, DocumentException {
super(parent, jobEntry, rep, jobMeta);
this.jobEntry = (JobEntryHadoopJobExecutor) jobEntry;
SwtXulLoader swtXulLoader = new SwtXulLoader();
swtX... | public JobEntryHadoopJobExecutorDialog(Shell parent, JobEntryInterface jobEntry, Repository rep, JobMeta jobMeta) throws XulException, DocumentException {
super(parent, jobEntry, rep, jobMeta);
this.jobEntry = (JobEntryHadoopJobExecutor) jobEntry;
SwtXulLoader swtXulLoader = new SwtXulLoader();
swtX... |
diff --git a/beam-visat-rcp/src/test/java/org/esa/beam/visat/toolviews/layermanager/LayerTreeModelTest.java b/beam-visat-rcp/src/test/java/org/esa/beam/visat/toolviews/layermanager/LayerTreeModelTest.java
index 013d687c9..c77c099dd 100644
--- a/beam-visat-rcp/src/test/java/org/esa/beam/visat/toolviews/layermanager/Laye... | true | true | public void testIt() {
Layer layer0 = new Layer();
Layer layer1 = new Layer();
Layer layer2 = new Layer();
Layer layer3 = new Layer();
layer0.getChildren().add(layer1);
layer0.getChildren().add(layer2);
layer0.getChildren().add(layer3);
Layer layer4 =... | public void testIt() {
Layer layer0 = new Layer();
Layer layer1 = new Layer();
Layer layer2 = new Layer();
Layer layer3 = new Layer();
layer0.getChildren().add(layer1);
layer0.getChildren().add(layer2);
layer0.getChildren().add(layer3);
Layer layer4 =... |
diff --git a/src/java/gov/health/bean/DbfController.java b/src/java/gov/health/bean/DbfController.java
index fb88fa0..192b0d1 100644
--- a/src/java/gov/health/bean/DbfController.java
+++ b/src/java/gov/health/bean/DbfController.java
@@ -1,1006 +1,1011 @@
/*
* To change this template, choose Tools | Templates
* and... | true | true | public String extractData() {
InputStream in;
String temNic;
Boolean newEntries = false;
if (sessionController.getLoggedUser().getRestrictedInstitution() != null) {
setInstitution(sessionController.getLoggedUser().getRestrictedInstitution());
}
if (getInst... | public String extractData() {
InputStream in;
String temNic;
Boolean newEntries = false;
if (sessionController.getLoggedUser().getRestrictedInstitution() != null) {
setInstitution(sessionController.getLoggedUser().getRestrictedInstitution());
}else{
if... |
diff --git a/waterken/remote/src/org/waterken/remote/http/Warning.java b/waterken/remote/src/org/waterken/remote/http/Warning.java
index 712a9b18..1b1b2697 100644
--- a/waterken/remote/src/org/waterken/remote/http/Warning.java
+++ b/waterken/remote/src/org/waterken/remote/http/Warning.java
@@ -1,22 +1,22 @@
// Copyrig... | true | true | Warning() {
super("400", "state response");
}
| Warning() {
super("400", "stale response");
}
|
diff --git a/cagwas/src/gov/nih/nci/cagwas/web/action/LoginAction.java b/cagwas/src/gov/nih/nci/cagwas/web/action/LoginAction.java
index 5840f84..6f3b5a9 100644
--- a/cagwas/src/gov/nih/nci/cagwas/web/action/LoginAction.java
+++ b/cagwas/src/gov/nih/nci/cagwas/web/action/LoginAction.java
@@ -1,144 +1,144 @@
package go... | true | true | public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
throws Exception
{
ActionMessages errors = new ActionMessages();
ActionForward forward = null;
// Figure out the state of the form
LoginForm lForm = (LoginForm)form;
String use... | public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
throws Exception
{
ActionMessages errors = new ActionMessages();
ActionForward forward = null;
// Figure out the state of the form
LoginForm lForm = (LoginForm)form;
String use... |
diff --git a/disambiguation-author/src/main/java/pl/edu/icm/coansys/disambiguation/author/benchmark/TimerSyso.java b/disambiguation-author/src/main/java/pl/edu/icm/coansys/disambiguation/author/benchmark/TimerSyso.java
index 3300783e..7d3b5829 100644
--- a/disambiguation-author/src/main/java/pl/edu/icm/coansys/disambig... | true | true | public void addCheckpoint( Object...monits ) {
long t = currentTime() - start;
Object[] nm = new Object[ monits.length + 1 ];
boolean isTimeAdded = false;
for ( int i = 0; i < monits.length; i++ ) {
if ( monits[i].equals("#time") ) {
nm[i] = t;
isTimeAdded = true;
} else {
nm[i] = monits[i];... | public void addCheckpoint( Object...monits ) {
long t = currentTime() - start;
Object[] nm = new Object[ monits.length + 1 ];
boolean isTimeAdded = false;
for ( int i = 0; i < monits.length; i++ ) {
if ( monits[i].equals("#time") ) {
nm[i] = t;
isTimeAdded = true;
} else {
nm[i] = monits[i];... |
diff --git a/courses/app/controllers/Students.java b/courses/app/controllers/Students.java
index fada721..d728a6b 100644
--- a/courses/app/controllers/Students.java
+++ b/courses/app/controllers/Students.java
@@ -1,174 +1,174 @@
package controllers;
import play.*;
import play.mvc.*;
import java.util.*;
import ... | true | true | public static Result appreq() {
String username = request().username();
UserCredentials uc = UserCredentials.find.where().eq("userName",request().username()).findUnique();
if (Secured.isStudent(uc))
{
Student student = uc.getStudent();
if (student.isStudyPlanOk())
{
st... | public static Result appreq() {
String username = request().username();
UserCredentials uc = UserCredentials.find.where().eq("userName",request().username()).findUnique();
if (Secured.isStudent(uc))
{
Student student = uc.getStudent();
if (student.isStudyPlanOk())
{
st... |
diff --git a/VCC/exportGrammar/src/de/hszg/atocc/vcc/export/grammar/internal/ExportGrammar.java b/VCC/exportGrammar/src/de/hszg/atocc/vcc/export/grammar/internal/ExportGrammar.java
index 01ead9f..8ef4c9a 100644
--- a/VCC/exportGrammar/src/de/hszg/atocc/vcc/export/grammar/internal/ExportGrammar.java
+++ b/VCC/exportGram... | true | true | protected void transform() throws XmlTransformationException {
tryToGetRequiredServices();
try {
validateInput("COMPILER");
final NodeList lhsElements = xmlUtils.extractNodes(getInput(), "//RULES/RULE");
for (int i = 0; i < lhsElements.getLength(); ++i) {
... | protected void transform() throws XmlTransformationException {
tryToGetRequiredServices();
try {
validateInput("COMPILER");
final NodeList lhsElements = xmlUtils.extractNodes(getInput(), "//RULES/RULE");
for (int i = 0; i < lhsElements.getLength(); ++i) {
... |
diff --git a/src/main/java/edu/illinois/ncsa/versus/store/DiskFileProcessor.java b/src/main/java/edu/illinois/ncsa/versus/store/DiskFileProcessor.java
index ad4c98b..90d4b3f 100644
--- a/src/main/java/edu/illinois/ncsa/versus/store/DiskFileProcessor.java
+++ b/src/main/java/edu/illinois/ncsa/versus/store/DiskFileProces... | true | true | public String addFile(InputStream inputStream, String filename) {
try {
File file;
File ff = new File(directory);
if (filename == null) {
file = File.createTempFile("versus", ".tmp", ff);
} else {
int idx = filename.lastIndexOf(".");
if (idx != -1) {
file = File.createTempFile(filena... | public String addFile(InputStream inputStream, String filename) {
try {
File file;
File ff = new File(directory);
if (filename == null) {
file = File.createTempFile("versus", ".tmp", ff);
} else {
int idx = filename.lastIndexOf(".");
if (idx != -1) {
file = File.createTempFile(filena... |
diff --git a/user/src/com/google/gwt/user/cellview/client/AbstractHasData.java b/user/src/com/google/gwt/user/cellview/client/AbstractHasData.java
index 08482a3bf..0ea1b6d84 100644
--- a/user/src/com/google/gwt/user/cellview/client/AbstractHasData.java
+++ b/user/src/com/google/gwt/user/cellview/client/AbstractHasData.... | true | true | public void onCellPreview(CellPreviewEvent<T> event) {
NativeEvent nativeEvent = event.getNativeEvent();
String eventType = event.getNativeEvent().getType();
if (BrowserEvents.KEYDOWN.equals(eventType) && !event.isCellEditing()) {
/*
* Handle keyboard navigation, unless the cell i... | public void onCellPreview(CellPreviewEvent<T> event) {
NativeEvent nativeEvent = event.getNativeEvent();
String eventType = event.getNativeEvent().getType();
if (BrowserEvents.KEYDOWN.equals(eventType) && !event.isCellEditing()) {
/*
* Handle keyboard navigation, unless the cell i... |
diff --git a/src/phm1/NewJ/DiagramPanel.java b/src/phm1/NewJ/DiagramPanel.java
index 3ecf17a..4fd3a17 100755
--- a/src/phm1/NewJ/DiagramPanel.java
+++ b/src/phm1/NewJ/DiagramPanel.java
@@ -1,62 +1,62 @@
package phm1.NewJ;
import javax.swing.*;
import java.awt.*;
public class DiagramPanel extends JPanel{
priva... | true | true | public void setSelected(NJClass selected) {
if(inheriting){
if(selected == null){
this.selected.setInherits(null);
} else if(selected != null && this.selected.getInherits() != null){
this.selected.getInherits().setTo(selected);
}
}
this.selected = selected;
}
| public void setSelected(NJClass selected) {
if(inheriting){
if(selected == null && this.selected != null){
this.selected.setInherits(null);
} else if(selected != null && this.selected.getInherits() != null){
this.selected.getInherits().setTo(selected);
}
}
this.selected = selected;
}
|
diff --git a/src/main/java/com/hawkfalcon/deathswap/Stop.java b/src/main/java/com/hawkfalcon/deathswap/Stop.java
index 48138f5..8904235 100644
--- a/src/main/java/com/hawkfalcon/deathswap/Stop.java
+++ b/src/main/java/com/hawkfalcon/deathswap/Stop.java
@@ -1,53 +1,53 @@
package com.hawkfalcon.deathswap;
import org.... | false | true | public void cleanUp(Player loser, Player winner, boolean died) {
DeathSwapWinEvent dswe = new DeathSwapWinEvent(winner.getName(), loser.getName());
Bukkit.getServer().getPluginManager().callEvent(dswe);
DeathSwapWinGameEvent dswge = new DeathSwapWinGameEvent(winner, loser);
Bukkit.ge... | public void cleanUp(Player loser, Player winner, boolean died) {
DeathSwapWinEvent dswe = new DeathSwapWinEvent(winner.getName(), loser.getName());
Bukkit.getServer().getPluginManager().callEvent(dswe);
DeathSwapWinGameEvent dswge = new DeathSwapWinGameEvent(winner, loser);
Bukkit.ge... |
diff --git a/tool/src/java/uk/ac/ox/oucs/oxam/pages/SakaiPage.java b/tool/src/java/uk/ac/ox/oucs/oxam/pages/SakaiPage.java
index be50531..7412c51 100644
--- a/tool/src/java/uk/ac/ox/oucs/oxam/pages/SakaiPage.java
+++ b/tool/src/java/uk/ac/ox/oucs/oxam/pages/SakaiPage.java
@@ -1,166 +1,166 @@
package uk.ac.ox.oucs.oxam... | true | true | public SakaiPage() {
log.debug("BasePage()");
links = new RepeatingView("link");
add(links);
// Add a FeedbackPanel for displaying our messages
feedbackPanel = new FeedbackPanel("feedback") {
private static final long serialVersionUID = 1L;
@Override
protected Component newMessageDisplayComponen... | public SakaiPage() {
log.debug("SakaiPage()");
links = new RepeatingView("link");
add(links);
// Add a FeedbackPanel for displaying our messages
feedbackPanel = new FeedbackPanel("feedback") {
private static final long serialVersionUID = 1L;
@Override
protected Component newMessageDisplayCompone... |
diff --git a/ScoreBoardMouseListener.java b/ScoreBoardMouseListener.java
index 266a00e..f07c95c 100644
--- a/ScoreBoardMouseListener.java
+++ b/ScoreBoardMouseListener.java
@@ -1,83 +1,83 @@
import javax.swing.event.MouseInputAdapter;
import java.awt.event.MouseEvent;
import java.util.List;
class ScoreBoardMouseL... | false | true | public void mouseClicked(MouseEvent me) {
synchronized(hotZones) {
resetHideCounter();
for (HotZone hz : hotZones) {
if (hz.zone.contains(me.getPoint())) {
if (hz.operation == HotZone.ops.INC) {
hz.player.updateVP(+1);
... | public void mouseClicked(MouseEvent me) {
resetHideCounter();
synchronized(hotZones) {
for (HotZone hz : hotZones) {
if (hz.zone.contains(me.getPoint())) {
if (hz.operation == HotZone.ops.INC) {
hz.player.updateVP(+1);
... |
diff --git a/FinancialRecorderServer/src/main/java/com/financial/tools/recorderserver/util/NotificationHelper.java b/FinancialRecorderServer/src/main/java/com/financial/tools/recorderserver/util/NotificationHelper.java
index a0df94f..22ad557 100644
--- a/FinancialRecorderServer/src/main/java/com/financial/tools/recorde... | true | true | public static boolean sendNotification(String deviceRegId, NotificationType notificationType,
String notificationMessage, int timeToLive) {
if (StringUtils.isEmpty(deviceRegId)) {
logger.warn("deviceRegId:{} doesn't exist.", deviceRegId);
return false;
}
logger.debug("send notification message: {} to de... | public static boolean sendNotification(String deviceRegId, NotificationType notificationType,
String notificationMessage, int timeToLive) {
if (StringUtils.isEmpty(deviceRegId)) {
logger.warn("deviceRegId:{} doesn't exist.", deviceRegId);
return false;
}
logger.debug("send notification message: {} to de... |
diff --git a/src/main/java/org/atlasapi/media/entity/simple/Location.java b/src/main/java/org/atlasapi/media/entity/simple/Location.java
index 159bf824..b7b2858e 100644
--- a/src/main/java/org/atlasapi/media/entity/simple/Location.java
+++ b/src/main/java/org/atlasapi/media/entity/simple/Location.java
@@ -1,505 +1,507 ... | true | true | public Location copy() {
Location copy = new Location();
copyTo(copy);
copy.setAdvertisingDuration(getAdvertisingDuration());
copy.setAudioBitRate(getAudioBitRate());
copy.setAudioChannels(getAudioChannels());
copy.setAudioCoding(getAudioCoding());
... | public Location copy() {
Location copy = new Location();
copyTo(copy);
copy.setAdvertisingDuration(getAdvertisingDuration());
copy.setAudioBitRate(getAudioBitRate());
copy.setAudioChannels(getAudioChannels());
copy.setAudioCoding(getAudioCoding());
... |
diff --git a/src/main/java/jline/ConsoleReader.java b/src/main/java/jline/ConsoleReader.java
index 129dfc1..e51e9e0 100644
--- a/src/main/java/jline/ConsoleReader.java
+++ b/src/main/java/jline/ConsoleReader.java
@@ -1,1626 +1,1627 @@
/*
* Copyright (c) 2002-2007, Marc Prud'hommeaux. All rights reserved.
*
* Thi... | true | true | public String readLine(final String prompt, final Character mask)
throws IOException {
this.mask = mask;
if (prompt != null)
this.prompt = prompt;
try {
terminal.beforeReadLine(this, this.prompt, mask);
if ((this.prompt != null) && (this.prom... | public String readLine(final String prompt, final Character mask)
throws IOException {
this.mask = mask;
if (prompt != null)
this.prompt = prompt;
try {
terminal.beforeReadLine(this, this.prompt, mask);
if ((this.prompt != null) && (this.prom... |
diff --git a/vaadin-touchkit-agpl/src/main/java/com/vaadin/addon/touchkit/gwt/client/VerticalComponentGroupWidget.java b/vaadin-touchkit-agpl/src/main/java/com/vaadin/addon/touchkit/gwt/client/VerticalComponentGroupWidget.java
index d012fb5..e1d3698 100644
--- a/vaadin-touchkit-agpl/src/main/java/com/vaadin/addon/touch... | true | true | public void add(final Widget widget, final String iconUrl,
final String captionText) {
if (firstElement) {
firstElement = false;
add(captionWidget);
add(content);
}
if (iconUrl != null
&& !iconUrl.isEmpty()
&& !(... | public void add(final Widget widget, final String iconUrl,
final String captionText) {
if (firstElement) {
firstElement = false;
add(captionWidget);
add(content);
}
if (iconUrl != null
&& !iconUrl.isEmpty()
&& !(... |
diff --git a/core/src/main/java/com/google/bitcoin/utils/EventListenerInvoker.java b/core/src/main/java/com/google/bitcoin/utils/EventListenerInvoker.java
index e2abfc2..f0dd964 100644
--- a/core/src/main/java/com/google/bitcoin/utils/EventListenerInvoker.java
+++ b/core/src/main/java/com/google/bitcoin/utils/EventList... | true | true | public static <E> void invoke(List<E> listeners,
EventListenerInvoker<E> invoker) {
if (listeners == null) return;
synchronized (listeners) {
for (int i = 0; i < listeners.size(); i++) {
E l = listeners.get(i);
synchronize... | public static <E> void invoke(List<E> listeners,
EventListenerInvoker<E> invoker) {
if (listeners == null) return;
synchronized (listeners) {
for (int i = 0; i < listeners.size(); i++) {
E l = listeners.get(i);
synchronize... |
diff --git a/src/uk/org/ponder/rsf/renderer/html/BasicHTMLRenderSystem.java b/src/uk/org/ponder/rsf/renderer/html/BasicHTMLRenderSystem.java
index 01d8403..1c388b1 100644
--- a/src/uk/org/ponder/rsf/renderer/html/BasicHTMLRenderSystem.java
+++ b/src/uk/org/ponder/rsf/renderer/html/BasicHTMLRenderSystem.java
@@ -1,436 +... | true | true | public int renderComponent(UIComponent torendero, View view, XMLLump[] lumps,
int lumpindex, PrintOutputStream pos) {
XMLWriter xmlw = new XMLWriter(pos);
XMLLump lump = lumps[lumpindex];
int nextpos = -1;
XMLLump outerendopen = lump.open_end;
XMLLump outerclose = lump.close_tag;
nextpo... | public int renderComponent(UIComponent torendero, View view, XMLLump[] lumps,
int lumpindex, PrintOutputStream pos) {
XMLWriter xmlw = new XMLWriter(pos);
XMLLump lump = lumps[lumpindex];
int nextpos = -1;
XMLLump outerendopen = lump.open_end;
XMLLump outerclose = lump.close_tag;
nextpo... |
diff --git a/src/mccity/plugins/pvprealm/object/PvpPlayer.java b/src/mccity/plugins/pvprealm/object/PvpPlayer.java
index 567e972..6a452a6 100644
--- a/src/mccity/plugins/pvprealm/object/PvpPlayer.java
+++ b/src/mccity/plugins/pvprealm/object/PvpPlayer.java
@@ -1,190 +1,190 @@
package mccity.plugins.pvprealm.object;
... | true | true | public void onPvpLogout(Set<Player> combatPlayers) {
if (player.isOp() && !Config.pvpLoggerOp) return;
StringBuilder playerList = new StringBuilder();
Iterator<Player> itr = combatPlayers.iterator();
while (itr.hasNext()) {
Player player = itr.next();
playerL... | public void onPvpLogout(Set<Player> combatPlayers) {
if (player.isOp() && !Config.pvpLoggerOp) return;
StringBuilder playerList = new StringBuilder();
Iterator<Player> itr = combatPlayers.iterator();
while (itr.hasNext()) {
Player player = itr.next();
playerL... |
diff --git a/easysoa-registry-v1/easysoa-registry-rest-server/src/main/java/org/easysoa/registry/integration/EndpointStateServiceImpl.java b/easysoa-registry-v1/easysoa-registry-rest-server/src/main/java/org/easysoa/registry/integration/EndpointStateServiceImpl.java
index d8d66702..64f69d93 100644
--- a/easysoa-registr... | true | true | public SlaOrOlaIndicators getSlaOrOlaIndicators(String endpointId,
String slaOrOlaName, String periodStart, String periodEnd, int pageSize, int pageStart) throws Exception {
DirectoryService directoryService = Framework.getService(DirectoryService.class);
Session sessio... | public SlaOrOlaIndicators getSlaOrOlaIndicators(String endpointId,
String slaOrOlaName, String periodStart, String periodEnd, int pageSize, int pageStart) throws Exception {
DirectoryService directoryService = Framework.getService(DirectoryService.class);
Session sessio... |
Subsets and Splits
Megadiff Train Samples Analysis
Counts the number of changed lines in a patch file, distinguishing additions and deletions but ignoring those marked with more than two '+' or '-', providing insights into significant modifications in patches.