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/be/ibridge/kettle/trans/step/mergerows/MergeRows.java b/src/be/ibridge/kettle/trans/step/mergerows/MergeRows.java
index 4a1bc4f0..82c38c12 100644
--- a/src/be/ibridge/kettle/trans/step/mergerows/MergeRows.java
+++ b/src/be/ibridge/kettle/trans/step/mergerows/MergeRows.java
@@ -1,206 +1,206 @@
/******... | true | true | public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException
{
meta=(MergeRowsMeta)smi;
data=(MergeRowsData)sdi;
if (first)
{
first = false;
data.one=getRowFrom(meta.getReferenceStepName());
data.two=getRowFrom(meta.getCompareStepNam... | public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException
{
meta=(MergeRowsMeta)smi;
data=(MergeRowsData)sdi;
if (first)
{
first = false;
data.one=getRowFrom(meta.getReferenceStepName());
data.two=getRowFrom(meta.getCompareStepNam... |
diff --git a/src/com/android/exchange/adapter/FolderSyncParser.java b/src/com/android/exchange/adapter/FolderSyncParser.java
index f2e5d61..2f7cdd0 100644
--- a/src/com/android/exchange/adapter/FolderSyncParser.java
+++ b/src/com/android/exchange/adapter/FolderSyncParser.java
@@ -1,428 +1,428 @@
/*
* Copyright (C) 2... | true | true | public void addParser(ArrayList<ContentProviderOperation> ops) throws IOException {
String name = null;
String serverId = null;
String parentId = null;
int type = 0;
while (nextTag(Tags.FOLDER_ADD) != END) {
switch (tag) {
case Tags.FOLDER_DISPLAY... | public void addParser(ArrayList<ContentProviderOperation> ops) throws IOException {
String name = null;
String serverId = null;
String parentId = null;
int type = 0;
while (nextTag(Tags.FOLDER_ADD) != END) {
switch (tag) {
case Tags.FOLDER_DISPLAY... |
diff --git a/geotools2/geotools-src/defaultcore/tests/unit/org/geotools/data/VeryBasicDataSource.java b/geotools2/geotools-src/defaultcore/tests/unit/org/geotools/data/VeryBasicDataSource.java
index 391fc2125..4708aed42 100644
--- a/geotools2/geotools-src/defaultcore/tests/unit/org/geotools/data/VeryBasicDataSource.jav... | true | true | public void getFeatures(FeatureCollection ft, Query query) throws DataSourceException {
Filter filter = null;
if (query != null) {
filter = query.getFilter();
}
//FeatureCollectionDefault ft = (FeatureCollectionDefault)collection;
Vector Features = new Vector();
... | public void getFeatures(FeatureCollection ft, Query query) throws DataSourceException {
Filter filter = null;
if (query != null) {
filter = query.getFilter();
}
//FeatureCollectionDefault ft = (FeatureCollectionDefault)collection;
Vector Features = new Vector();
... |
diff --git a/same/src/main/java/com/orbekk/same/SameController.java b/same/src/main/java/com/orbekk/same/SameController.java
index 9b8abde..b75de96 100644
--- a/same/src/main/java/com/orbekk/same/SameController.java
+++ b/same/src/main/java/com/orbekk/same/SameController.java
@@ -1,134 +1,135 @@
package com.orbekk.sam... | true | true | public static SameController create(int port) {
ConnectionManagerImpl connections = new ConnectionManagerImpl(
timeout, timeout);
State state = new State("Default");
Broadcaster broadcaster = BroadcasterImpl.getDefaultBroadcastRunner();
MasterServiceImpl mast... | public static SameController create(int port) {
ConnectionManagerImpl connections = new ConnectionManagerImpl(
timeout, timeout);
State state = new State("Default");
Broadcaster broadcaster = BroadcasterImpl.getDefaultBroadcastRunner();
MasterServiceImpl mast... |
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/TestFocus02SwingAWTRobot.java b/src/test/com/jogamp/opengl/test/junit/newt/TestFocus02SwingAWTRobot.java
index a1f4221db..646dc711b 100644
--- a/src/test/com/jogamp/opengl/test/junit/newt/TestFocus02SwingAWTRobot.java
+++ b/src/test/com/jogamp/opengl/test/junit/ne... | true | true | private void testFocus01ProgrFocusImpl(Robot robot)
throws AWTException, InterruptedException, InvocationTargetException {
ArrayList<EventCountAdapter> eventCountAdapters = new ArrayList<EventCountAdapter>();
GLWindow glWindow1 = GLWindow.create(glCaps);
glWindow1.setTitle("testWi... | private void testFocus01ProgrFocusImpl(Robot robot)
throws AWTException, InterruptedException, InvocationTargetException {
ArrayList<EventCountAdapter> eventCountAdapters = new ArrayList<EventCountAdapter>();
GLWindow glWindow1 = GLWindow.create(glCaps);
glWindow1.setTitle("testWi... |
diff --git a/core/src/test/java/org/apache/mahout/cf/taste/hadoop/similarity/item/ItemSimilarityTest.java b/core/src/test/java/org/apache/mahout/cf/taste/hadoop/similarity/item/ItemSimilarityTest.java
index 4ef979ecb..1205b4272 100644
--- a/core/src/test/java/org/apache/mahout/cf/taste/hadoop/similarity/item/ItemSimila... | false | true | public void testCompleteJob() throws Exception {
String tmpDirProp = System.getProperty("java.io.tmpdir");
if (!tmpDirProp.endsWith("/")) {
tmpDirProp += "/";
}
String tmpDirPath = tmpDirProp + ItemSimilarityTest.class.getCanonicalName();
File tmpDir = new File(tmpDirPath);
try {
... | public void testCompleteJob() throws Exception {
String tmpDirProp = System.getProperty("java.io.tmpdir");
if (!tmpDirProp.endsWith("/")) {
tmpDirProp += "/";
}
String tmpDirPath = tmpDirProp + ItemSimilarityTest.class.getCanonicalName();
File tmpDir = new File(tmpDirPath);
try {
... |
diff --git a/src/org/siraya/rent/user/service/UserService.java b/src/org/siraya/rent/user/service/UserService.java
index 71747c6..61be808 100755
--- a/src/org/siraya/rent/user/service/UserService.java
+++ b/src/org/siraya/rent/user/service/UserService.java
@@ -1,507 +1,507 @@
package org.siraya.rent.user.service;
i... | true | true | public MobileAuthResponse mobileAuthRequest( MobileAuthRequest request){
Device currentDevice = request.getDevice();
String userId = request.getRequestFrom();
Map<String,Object> generalSetting = applicationConfig.get("general");
Device requestFrom = this.deviceDao.getDeviceByDeviceIdAndUserId(
SSO_DEVICE... | public MobileAuthResponse mobileAuthRequest( MobileAuthRequest request){
Device currentDevice = request.getDevice();
String userId = request.getRequestFrom();
Map<String,Object> generalSetting = applicationConfig.get("general");
Device requestFrom = this.deviceDao.getDeviceByDeviceIdAndUserId(
SSO_DEVICE... |
diff --git a/src/servlets/Manager.java b/src/servlets/Manager.java
index 760b361..749f065 100644
--- a/src/servlets/Manager.java
+++ b/src/servlets/Manager.java
@@ -1,639 +1,647 @@
package servlets;
/*
* Shop.java
*
*/
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import beans.*... | false | true | protected void processRequest(HttpServletRequest request,
HttpServletResponse response) throws ServletException,
java.io.IOException {
HttpSession sess = request.getSession();
RequestDispatcher rd = null;
sess.setAttribute("currentUser", request.getRemoteUser());
sess.setAttribute("jdbcURL", jdbcURL);
... | protected void processRequest(HttpServletRequest request,
HttpServletResponse response) throws ServletException,
java.io.IOException {
HttpSession sess = request.getSession();
RequestDispatcher rd = null;
sess.setAttribute("currentUser", request.getRemoteUser());
sess.setAttribute("jdbcURL", jdbcURL);
... |
diff --git a/bundles/org.eclipse.osgi/security/src/org/eclipse/osgi/internal/service/security/KeyStoreTrustEngine.java b/bundles/org.eclipse.osgi/security/src/org/eclipse/osgi/internal/service/security/KeyStoreTrustEngine.java
index 643d7ca9..cd3ca9ec 100644
--- a/bundles/org.eclipse.osgi/security/src/org/eclipse/osgi/... | true | true | public Certificate findTrustAnchor(Certificate[] certChain) throws IOException {
if (certChain == null || certChain.length == 0)
throw new IllegalArgumentException("Certificate chain is required"); //$NON-NLS-1$
try {
Certificate rootCert = null;
KeyStore store = getKeyStore();
for (int i = 0; i < c... | public Certificate findTrustAnchor(Certificate[] certChain) throws IOException {
if (certChain == null || certChain.length == 0)
throw new IllegalArgumentException("Certificate chain is required"); //$NON-NLS-1$
try {
Certificate rootCert = null;
KeyStore store = getKeyStore();
for (int i = 0; i < c... |
diff --git a/src/main/java/biomesoplenty/world/WorldTypeSize.java b/src/main/java/biomesoplenty/world/WorldTypeSize.java
index 09d72b305..a17529b1b 100644
--- a/src/main/java/biomesoplenty/world/WorldTypeSize.java
+++ b/src/main/java/biomesoplenty/world/WorldTypeSize.java
@@ -1,35 +1,36 @@
package biomesoplenty.world;... | true | true | public void BiomeSize(WorldTypeEvent.BiomeSize event)
{
if (event.worldType.getWorldTypeName() == "BIOMESOP") {
event.newSize = (byte)BOPConfigurationTerrainGen.biomeSize;
if (BOPConfigurationTerrainGen.netherOverride)
{
DimensionManager.unregisterProviderType(-1);
DimensionManager.... | public void BiomeSize(WorldTypeEvent.BiomeSize event)
{
if (event.worldType.getWorldTypeName() == "BIOMESOP" || event.worldType.getWorldTypeName() == "ATG")
{
event.newSize = (byte)BOPConfigurationTerrainGen.biomeSize;
if (BOPConfigurationTerrainGen.netherOverride)
{
DimensionManager.unreg... |
diff --git a/mes-plugins/mes-plugins-technologies/src/test/java/com/qcadoo/mes/technologies/TechnologyServiceTest.java b/mes-plugins/mes-plugins-technologies/src/test/java/com/qcadoo/mes/technologies/TechnologyServiceTest.java
index f994409984..6c52a595bc 100644
--- a/mes-plugins/mes-plugins-technologies/src/test/java/... | true | true | public void init() {
technologyService = new TechnologyService();
MockitoAnnotations.initMocks(this);
when(product1.getId()).thenReturn(1l);
when(product2.getId()).thenReturn(2l);
when(opComp1.getBelongsToField("parent")).thenReturn(null);
when(opComp2.getBelongsTo... | public void init() {
technologyService = new TechnologyService();
MockitoAnnotations.initMocks(this);
when(product1.getId()).thenReturn(1L);
when(product2.getId()).thenReturn(2L);
when(opComp1.getBelongsToField("parent")).thenReturn(null);
when(opComp2.getBelongsTo... |
diff --git a/deegree-misc/deegree-maven-plugin/src/main/java/org/deegree/maven/WorkspaceMojo.java b/deegree-misc/deegree-maven-plugin/src/main/java/org/deegree/maven/WorkspaceMojo.java
index 8efa8ed013..e7e52f19b6 100644
--- a/deegree-misc/deegree-maven-plugin/src/main/java/org/deegree/maven/WorkspaceMojo.java
+++ b/de... | true | true | public void execute()
throws MojoExecutionException, MojoFailureException {
Log log = getLog();
File dir = new File( project.getBasedir(), "src/main/webapp/WEB-INF/workspace" );
if ( !dir.isDirectory() ) {
dir = new File( project.getBasedir(), "src/mai... | public void execute()
throws MojoExecutionException, MojoFailureException {
Log log = getLog();
File dir = new File( project.getBasedir(), "src/main/webapp/WEB-INF/workspace" );
if ( !dir.isDirectory() ) {
dir = new File( project.getBasedir(), "src/mai... |
diff --git a/src/main/java/me/botsko/dhmcdeath/DeathConfig.java b/src/main/java/me/botsko/dhmcdeath/DeathConfig.java
index 7a21f16..1b3c1fc 100644
--- a/src/main/java/me/botsko/dhmcdeath/DeathConfig.java
+++ b/src/main/java/me/botsko/dhmcdeath/DeathConfig.java
@@ -1,192 +1,192 @@
package me.botsko.dhmcdeath;
import... | true | true | public static FileConfiguration init( DhmcDeath plugin ){
FileConfiguration config = plugin.getConfig();
// other configs
config.addDefault("debug", false );
// Base config
config.addDefault("messages.allow_cross_world", false );
config.addDefault("messages.hear_distance", 50 );
config.addDefaul... | public static FileConfiguration init( DhmcDeath plugin ){
FileConfiguration config = plugin.getConfig();
// other configs
config.addDefault("debug", false );
// Base config
config.addDefault("messages.allow_cross_world", false );
config.addDefault("messages.hear_distance", 50 );
config.addDefaul... |
diff --git a/fabric/fabric-zookeeper-commands/src/main/java/org/fusesource/fabric/zookeeper/commands/List.java b/fabric/fabric-zookeeper-commands/src/main/java/org/fusesource/fabric/zookeeper/commands/List.java
index 0491a842e..1dc6ab6ab 100644
--- a/fabric/fabric-zookeeper-commands/src/main/java/org/fusesource/fabric/... | true | true | protected void display(CuratorFramework curator, String path) throws Exception {
if (!path.endsWith("/")) {
path = path + "/";
}
if (!path.startsWith("/")) {
path = "/" + path;
}
java.util.List<String> paths = getPaths(curator);
for(String p :... | protected void display(CuratorFramework curator, String path) throws Exception {
if (!path.endsWith("/")) {
path = path + "/";
}
if (!path.startsWith("/")) {
path = "/" + path;
}
java.util.List<String> paths = getPaths(curator);
for(String p :... |
diff --git a/src/com/github/zachuorice/brainfuh/Brainfuh.java b/src/com/github/zachuorice/brainfuh/Brainfuh.java
index 2c2d172..daed490 100644
--- a/src/com/github/zachuorice/brainfuh/Brainfuh.java
+++ b/src/com/github/zachuorice/brainfuh/Brainfuh.java
@@ -1,45 +1,48 @@
/*
* Copyright 2012 Zachary Richey <zr.publi... | false | true | static void executeFile(File code) throws IOException
{
if(!code.canRead() || !code.isFile())
throw new IOException();
FileReader code_reader = new FileReader(code);
int data = code_reader.read();
Interpreter interpreter = new Interpreter();
while(data != -1)
... | static void executeFile(File code) throws IOException
{
if(!code.canRead() || !code.isFile())
throw new IOException();
FileReader code_reader = new FileReader(code);
int data = code_reader.read();
Interpreter interpreter = new Interpreter();
while(data != -1)
... |
diff --git a/dev/core/test/com/google/gwt/dev/shell/remoteui/MessageTransportTest.java b/dev/core/test/com/google/gwt/dev/shell/remoteui/MessageTransportTest.java
index 18647bde6..e5400c44e 100644
--- a/dev/core/test/com/google/gwt/dev/shell/remoteui/MessageTransportTest.java
+++ b/dev/core/test/com/google/gwt/dev/shel... | true | true | public void testExecuteRequestAsyncServerThrowsException()
throws InterruptedException, ExecutionException, IOException,
TimeoutException {
MockNetwork network = createMockNetwork();
/*
* Define a dummy request processor. The message transport is being set up
* on the client side, which... | public void testExecuteRequestAsyncServerThrowsException()
throws InterruptedException, ExecutionException, IOException,
TimeoutException {
MockNetwork network = createMockNetwork();
/*
* Define a dummy request processor. The message transport is being set up
* on the client side, which... |
diff --git a/maven-scm-test/src/main/java/org/apache/maven/scm/tck/command/update/UpdateCommandTckTest.java b/maven-scm-test/src/main/java/org/apache/maven/scm/tck/command/update/UpdateCommandTckTest.java
index eaaa8e35..31ad4bbd 100644
--- a/maven-scm-test/src/main/java/org/apache/maven/scm/tck/command/update/UpdateCo... | true | true | public void testUpdateCommand()
throws Exception
{
FileUtils.deleteDirectory( getUpdatingCopy() );
assertFalse( getUpdatingCopy().exists() );
//FileUtils.deleteDirectory( getWorkingCopy() );
//assertFalse( getUpdatingCopy().exists()... | public void testUpdateCommand()
throws Exception
{
FileUtils.deleteDirectory( getUpdatingCopy() );
assertFalse( getUpdatingCopy().exists() );
//FileUtils.deleteDirectory( getWorkingCopy() );
//assertFalse( getUpdatingCopy().exists()... |
diff --git a/raisavis/src/main/java/raisa/vis/VisualizerPanel.java b/raisavis/src/main/java/raisa/vis/VisualizerPanel.java
index 5df1cbf..df561e6 100644
--- a/raisavis/src/main/java/raisa/vis/VisualizerPanel.java
+++ b/raisavis/src/main/java/raisa/vis/VisualizerPanel.java
@@ -1,256 +1,256 @@
package raisa.vis;
impo... | true | true | public void paintComponent(Graphics g) {
Graphics2D g2 = (Graphics2D) g;
int screenWidth = getBounds().width;
int screenHeight = getBounds().height;
g.clearRect(0, 0, screenWidth, screenHeight);
Float tl = new Float(camera.x - screenWidth * 0.5f / scale, camera.y
- screenHeight * 0.5f / scale);
grid.d... | public void paintComponent(Graphics g) {
Graphics2D g2 = (Graphics2D) g;
int screenWidth = getBounds().width;
int screenHeight = getBounds().height;
g.clearRect(0, 0, screenWidth, screenHeight);
Float tl = new Float(camera.x - screenWidth * 0.5f / scale, camera.y
- screenHeight * 0.5f / scale);
grid.d... |
diff --git a/araqne-logapi-nio/src/main/java/org/araqne/log/api/nio/RecursiveDirectoryWatchLoggerFactory.java b/araqne-logapi-nio/src/main/java/org/araqne/log/api/nio/RecursiveDirectoryWatchLoggerFactory.java
index 70e04da6..7be297bb 100644
--- a/araqne-logapi-nio/src/main/java/org/araqne/log/api/nio/RecursiveDirectory... | false | true | public Collection<LoggerConfigOption> getConfigOptions() {
LoggerConfigOption basePath = new MutableStringConfigType("base_path", t("Directory path", "디렉터리 경로", "ディレクトリ経路", "目录"),
t(
"Base log file directory path", "로그 파일을 수집할 대상 디렉터리 경로", "ログファイルを収集する対象ディレクトリ経路", "要采集的日志文件所在目录"), true);
LoggerConfigOpt... | public Collection<LoggerConfigOption> getConfigOptions() {
LoggerConfigOption basePath = new MutableStringConfigType("base_path", t("Directory path", "디렉터리 경로", "ディレクトリ経路", "目录"),
t(
"Base log file directory path", "로그 파일을 수집할 대상 디렉터리 경로", "ログファイルを収集する対象ディレクトリ経路", "要采集的日志文件所在目录"), true);
LoggerConfigOpt... |
diff --git a/src/main/de/fzi/cjunit/jpf/exceptioninfo/ExceptionWrapper.java b/src/main/de/fzi/cjunit/jpf/exceptioninfo/ExceptionWrapper.java
index 08a8ed9..9b12bd6 100644
--- a/src/main/de/fzi/cjunit/jpf/exceptioninfo/ExceptionWrapper.java
+++ b/src/main/de/fzi/cjunit/jpf/exceptioninfo/ExceptionWrapper.java
@@ -1,81 +1... | true | true | public StackTraceElementInfo[] getStackTrace() {
if (stackTrace != null) {
return stackTrace;
}
ElementInfo[] array = getReferenceArray("stackTrace");
StackTraceElementWrapper[] stackTrace
= new StackTraceElementWrapper[array.length];
int i = 0;
for (ElementInfo ei : array) {
stackTrace[i] = ne... | public StackTraceElementInfo[] getStackTrace() {
if (stackTrace != null) {
return stackTrace;
}
ElementInfo[] array = getReferenceArray("stackTrace");
stackTrace = new StackTraceElementWrapper[array.length];
int i = 0;
for (ElementInfo ei : array) {
stackTrace[i] = new StackTraceElementWrapper(ei);... |
diff --git a/src/main/java/io/ReadStdinInt15.java b/src/main/java/io/ReadStdinInt15.java
index bd336390..e503b929 100644
--- a/src/main/java/io/ReadStdinInt15.java
+++ b/src/main/java/io/ReadStdinInt15.java
@@ -1,21 +1,16 @@
package io;
import java.util.Scanner;
/**
* Read an int from Standard Input, using 1.5
... | true | true | public static void main(String[] ap) {
int val;
try {
Scanner sc = new Scanner(System.in); // Requires Java 5
val = sc.nextInt();
} catch (NumberFormatException ex) {
System.err.println("Not a valid number: " + ex);
return;
}
System.out.println("I read this number: " + val);
}
| public static void main(String[] ap) {
int val;
Scanner sc = new Scanner(System.in); // Requires Java 5
val = sc.nextInt();
System.out.println("I read this number: " + val);
}
|
diff --git a/jvstm/src/jvstm/Transaction.java b/jvstm/src/jvstm/Transaction.java
index 4b8bb34..8e62a64 100644
--- a/jvstm/src/jvstm/Transaction.java
+++ b/jvstm/src/jvstm/Transaction.java
@@ -1,241 +1,241 @@
/*
* JVSTM: a Java library for Software Transactional Memory
* Copyright (C) 2005 INESC-ID Software Engine... | true | true | public static Transaction begin(boolean readOnly) {
Transaction parent = current.get();
Transaction tx = null;
// we need to synchronize on the queue LOCK to inhibit the queue clean-up because we
// don't want that a transaction that commits between we get the last committed number
// and we a... | public static Transaction begin(boolean readOnly) {
Transaction parent = current.get();
Transaction tx = null;
// we need to synchronize on the queue LOCK to inhibit the queue clean-up because we
// don't want that a transaction that commits between we get the last committed number
// and we a... |
diff --git a/core/src/test/java/org/infinispan/distribution/SingleOwnerTest.java b/core/src/test/java/org/infinispan/distribution/SingleOwnerTest.java
index 5f0a1279b2..771ad7de1d 100644
--- a/core/src/test/java/org/infinispan/distribution/SingleOwnerTest.java
+++ b/core/src/test/java/org/infinispan/distribution/Single... | true | true | public void testErrorWhenRetrievingKeyFromNonOwner() {
log.trace("Before test");
Cache[] owners = getOwners("diffkey", 1);
Cache[] nonOwners = getNonOwners("diffkey", 1);
assert owners.length == 1;
assert nonOwners.length == 1;
Cache ownerCache = owners[0];
Cache nonOwnerCac... | public void testErrorWhenRetrievingKeyFromNonOwner() {
log.trace("Before test");
Cache[] owners = getOwners("diffkey", 1);
Cache[] nonOwners = getNonOwners("diffkey", 1);
assert owners.length == 1;
assert nonOwners.length == 1;
Cache ownerCache = owners[0];
Cache nonOwnerCac... |
diff --git a/AngryUTBM/src/model/GameModel.java b/AngryUTBM/src/model/GameModel.java
index c8d61e1..344352e 100644
--- a/AngryUTBM/src/model/GameModel.java
+++ b/AngryUTBM/src/model/GameModel.java
@@ -1,324 +1,324 @@
package model;
import view.GameView;
import model.entities.Bird;
import model.entities.Egg;
impo... | true | true | public void checkCollision() {
ArrayList<Entity> toRemove = new ArrayList<Entity>(); //On ne retire les entit�s de la liste qu'apr�s �tre sorti de la boucle
for(Entity entity : entities) {
int tabMap[][] = level.getTabMap();
if(entity instanceof Egg) {
Egg egg = (Egg) entity;
Rectangle hitBoxEgg ... | public void checkCollision() {
ArrayList<Entity> toRemove = new ArrayList<Entity>(); //On ne retire les entit�s de la liste qu'apr�s �tre sorti de la boucle
for(Entity entity : entities) {
int tabMap[][] = level.getTabMap();
if(entity instanceof Egg) {
Egg egg = (Egg) entity;
Rectangle hitBoxEgg ... |
diff --git a/gis-metadata/gis-metadata/collection/src/main/java/org/fao/fi/gis/metadata/MetadataGenerator.java b/gis-metadata/gis-metadata/collection/src/main/java/org/fao/fi/gis/metadata/MetadataGenerator.java
index bc56c5d..f6a4aad 100644
--- a/gis-metadata/gis-metadata/collection/src/main/java/org/fao/fi/gis/metadat... | true | true | public static void main(String[] args) throws Exception {
//Read the configuration
LOGGER.info("(1) Loading the configuration file");
MetadataConfig config = MetadataConfig.fromXML(new File("c:/gis/metadata/config/species.xml"));
//read the codelists
LOGGER.info("(2) Loading the reference list");
Strin... | public static void main(String[] args) throws Exception {
//Read the configuration
LOGGER.info("(1) Loading the configuration file");
MetadataConfig config = MetadataConfig.fromXML(new File(args[0]));
//read the codelists
LOGGER.info("(2) Loading the reference list");
String collectionType = config.get... |
diff --git a/src/main/java/com/redhat/ceylon/compiler/js/CeylonCompileJsTool.java b/src/main/java/com/redhat/ceylon/compiler/js/CeylonCompileJsTool.java
index 58283f60..f94b681d 100644
--- a/src/main/java/com/redhat/ceylon/compiler/js/CeylonCompileJsTool.java
+++ b/src/main/java/com/redhat/ceylon/compiler/js/CeylonComp... | true | true | public static void run(Options opts, List<String> files) throws IOException {
final TypeChecker typeChecker;
if (opts.isVerbose()) {
System.out.printf("Using repositories: %s%n", opts.getRepos());
}
final RepositoryManager repoman = CeylonUtils.repoManager()
... | public static void run(Options opts, List<String> files) throws IOException {
final TypeChecker typeChecker;
if (opts.isVerbose()) {
System.out.printf("Using repositories: %s%n", opts.getRepos());
}
final RepositoryManager repoman = CeylonUtils.repoManager()
... |
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/trace/TraceView.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/trace/TraceView.java
index e1dea389b..1b987a3f2 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/trace/Trac... | true | true | public void onChannelOpen(final IChannel channel) {
if (!(channel instanceof AbstractChannel)) return;
AbstractChannel c = (AbstractChannel)channel;
IPeer rp = c.getRemotePeer();
final String name = rp.getName();
final String host = rp.getAttributes().get(IPeer.ATTR_IP_HOST);... | public void onChannelOpen(final IChannel channel) {
if (!(channel instanceof AbstractChannel)) return;
AbstractChannel c = (AbstractChannel)channel;
IPeer rp = c.getRemotePeer();
final String name = rp.getName();
final String host = rp.getAttributes().get(IPeer.ATTR_IP_HOST);... |
diff --git a/src/main/java/pl/psnc/dl/wf4ever/myexpimport/pages/HomePage.java b/src/main/java/pl/psnc/dl/wf4ever/myexpimport/pages/HomePage.java
index 4694931..3deebae 100755
--- a/src/main/java/pl/psnc/dl/wf4ever/myexpimport/pages/HomePage.java
+++ b/src/main/java/pl/psnc/dl/wf4ever/myexpimport/pages/HomePage.java
@@ ... | false | true | public HomePage(PageParameters pageParameters)
{
super(pageParameters);
processOAuth(pageParameters);
Form< ? > form = new Form<Void>("form");
content.add(form);
final Button authMyExpButton = new Button("authMyExp") {
@Override
public void onSubmit()
{
Token at = tryLoadDlibraTestToken();
... | public HomePage(PageParameters pageParameters)
{
super(pageParameters);
processOAuth(pageParameters);
Form< ? > form = new Form<Void>("form");
content.add(form);
final Button authMyExpButton = new Button("authMyExp") {
@Override
public void onSubmit()
{
Token at = tryLoadDlibraTestToken();
... |
diff --git a/core/testframework/src/main/java/org/overturetool/test/framework/ResultTestCase.java b/core/testframework/src/main/java/org/overturetool/test/framework/ResultTestCase.java
index 623aa173e9..3811a524e5 100644
--- a/core/testframework/src/main/java/org/overturetool/test/framework/ResultTestCase.java
+++ b/co... | true | true | protected void compareResults(Result result, String filename)
{
if(Properties.recordTestResults)
{
//MessageReaderWritter mrw = new MessageReaderWritter(createResultFile(filename));
//mrw.set(result);
//mrw.save();
XmlResultReaderWritter xmlResult = new XmlResultReaderWritter(createResultFile(filename... | protected void compareResults(Result result, String filename)
{
if(Properties.recordTestResults)
{
//MessageReaderWritter mrw = new MessageReaderWritter(createResultFile(filename));
//mrw.set(result);
//mrw.save();
XmlResultReaderWritter xmlResult = new XmlResultReaderWritter(createResultFile(filename... |
diff --git a/M4/src/edu/gatech/oad/antlab/person/Person5.java b/M4/src/edu/gatech/oad/antlab/person/Person5.java
index 4a08e36..bd23ec7 100755
--- a/M4/src/edu/gatech/oad/antlab/person/Person5.java
+++ b/M4/src/edu/gatech/oad/antlab/person/Person5.java
@@ -1,60 +1,60 @@
package edu.gatech.oad.antlab.person;
/**
*... | false | true | private String calc(String input) {
String output;
if(!input.equals(null)) {
if(input.length() < 3){
if(input.length() == 2){
output = input.charAt(1) + input.charAt(0);
} else {
output = input;
}
} else {
output = input.substring(3) + input.substring(0, 3);
}
}
... | private String calc(String input) {
String output = "";
if(!input.equals(null)) {
if(input.length() < 3){
if(input.length() == 2){
output = input.charAt(1) + "" + input.charAt(0);
} else {
output = input;
}
} else {
output = input.substring(3) + input.substring(0, 3);
... |
diff --git a/src/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java b/src/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java
index 56cf53a..808ec2b 100644
--- a/src/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java
+++ b/src/java/com/android/internal/telephony/gsm/Gsm... | false | true | private void pollStateDone() {
if (DBG) {
log("Poll ServiceState done: " +
" oldSS=[" + ss + "] newSS=[" + newSS +
"] oldGprs=" + gprsState + " newData=" + newGPRSState +
" oldMaxDataCalls=" + mMaxDataCalls +
" mNewMaxDataCalls=" + ... | private void pollStateDone() {
if (DBG) {
log("Poll ServiceState done: " +
" oldSS=[" + ss + "] newSS=[" + newSS +
"] oldGprs=" + gprsState + " newData=" + newGPRSState +
" oldMaxDataCalls=" + mMaxDataCalls +
" mNewMaxDataCalls=" + ... |
diff --git a/org.maven.ide.eclipse.editor.xml/src/main/java/org/maven/ide/eclipse/editor/xml/PomTemplateContext.java b/org.maven.ide.eclipse.editor.xml/src/main/java/org/maven/ide/eclipse/editor/xml/PomTemplateContext.java
index 9947349f..b09fec98 100644
--- a/org.maven.ide.eclipse.editor.xml/src/main/java/org/maven/id... | true | true | private PluginDescriptor getPluginDescriptor(String groupId, String artifactId, String version) {
String name = groupId + ":" + artifactId + ":" + version;
PluginDescriptor descriptor = descriptors.get(name);
if(descriptor!=null) {
return descriptor;
}
MavenPlugin plugin... | private PluginDescriptor getPluginDescriptor(String groupId, String artifactId, String version) {
String name = groupId + ":" + artifactId + ":" + version;
PluginDescriptor descriptor = descriptors.get(name);
if(descriptor!=null) {
return descriptor;
}
MavenPlugin plugin... |
diff --git a/core/src/visad/trunk/DataRenderer.java b/core/src/visad/trunk/DataRenderer.java
index c2207534a..b22b3f63a 100644
--- a/core/src/visad/trunk/DataRenderer.java
+++ b/core/src/visad/trunk/DataRenderer.java
@@ -1,2187 +1,2189 @@
//
// DataRenderer.java
//
/*
VisAD system for interactive analysis and vi... | false | true | public boolean isTransformControl(Control control, DataDisplayLink link) {
if (control instanceof ProjectionControl ||
control instanceof ToggleControl) {
return false;
}
/* WLH 1 Nov 97 - temporary hack -
RangeControl changes always require Transform
ValueControl and AnimationControl neve... | public boolean isTransformControl(Control control, DataDisplayLink link) {
if (control instanceof ProjectionControl ||
control instanceof ToggleControl) {
return false;
}
/* WLH 1 Nov 97 - temporary hack -
RangeControl changes always require Transform
ValueControl and AnimationControl neve... |
diff --git a/gdx/src/com/badlogic/gdx/graphics/glutils/ETC1TextureData.java b/gdx/src/com/badlogic/gdx/graphics/glutils/ETC1TextureData.java
index cf4b59af6..231898398 100644
--- a/gdx/src/com/badlogic/gdx/graphics/glutils/ETC1TextureData.java
+++ b/gdx/src/com/badlogic/gdx/graphics/glutils/ETC1TextureData.java
@@ -1,1... | true | true | public void consumeCompressedData () {
if (!isPrepared) throw new GdxRuntimeException("Call prepare() before calling consumeCompressedData()");
if (Gdx.app.getType() == ApplicationType.Desktop || Gdx.graphics.isGL20Available() == false) {
Pixmap pixmap = ETC1.decodeImage(data, Format.RGB565);
Gdx.gl.glTexIm... | public void consumeCompressedData () {
if (!isPrepared) throw new GdxRuntimeException("Call prepare() before calling consumeCompressedData()");
if (!Gdx.graphics.supportsExtension("GL_OES_compressed_ETC1_RGB8_texture") || Gdx.graphics.isGL20Available() == false) {
Pixmap pixmap = ETC1.decodeImage(data, Format.... |
diff --git a/src/com/phodev/andtools/widget/ListViewFixIndicators.java b/src/com/phodev/andtools/widget/ListViewFixIndicators.java
index b0cf12c..e7aab55 100644
--- a/src/com/phodev/andtools/widget/ListViewFixIndicators.java
+++ b/src/com/phodev/andtools/widget/ListViewFixIndicators.java
@@ -1,142 +1,142 @@
package co... | true | true | private void syncScrollableTag(int firstVisibleItem, int visibleItemCount,
int totalItemCount) {
if (upScrollHintView == null || upScrollHintView == null) {
return;
}
if (totalItemCount <= visibleItemCount) {
checkVisibility(upScrollHintView, View.INVISIBLE);
checkVisibility(downScrollHintView, View.... | private void syncScrollableTag(int firstVisibleItem, int visibleItemCount,
int totalItemCount) {
if (upScrollHintView == null || upScrollHintView == null) {
return;
}
if (totalItemCount <= visibleItemCount || totalItemCount <= 0) {
checkVisibility(upScrollHintView, View.INVISIBLE);
checkVisibility(do... |
diff --git a/src/com/jetbrains/crucible/actions/AddCommentAction.java b/src/com/jetbrains/crucible/actions/AddCommentAction.java
index 5e98b3d..4b2b820 100644
--- a/src/com/jetbrains/crucible/actions/AddCommentAction.java
+++ b/src/com/jetbrains/crucible/actions/AddCommentAction.java
@@ -1,154 +1,153 @@
package com.je... | false | true | private void addVersionedComment(@NotNull final Project project) {
if (myEditor == null || myVirtualFile == null) return;
final CommentBalloonBuilder builder = new CommentBalloonBuilder();
final CommentForm commentForm = new CommentForm(project, myName, false, myIsReply);
commentForm.setReview(myRevie... | private void addVersionedComment(@NotNull final Project project) {
if (myEditor == null || myVirtualFile == null) return;
final CommentBalloonBuilder builder = new CommentBalloonBuilder();
final CommentForm commentForm = new CommentForm(project, myName, false, myIsReply);
commentForm.setReview(myRevie... |
diff --git a/activemq-core/src/test/java/org/apache/activemq/transport/tcp/SslTransportFactoryTest.java b/activemq-core/src/test/java/org/apache/activemq/transport/tcp/SslTransportFactoryTest.java
index 793b81bff..eec7b0b01 100644
--- a/activemq-core/src/test/java/org/apache/activemq/transport/tcp/SslTransportFactoryTe... | true | true | public void testCompositeConfigure() throws IOException {
// The 5 options being tested.
int optionSettings[] = new int[5];
String optionNames[] = {
"wantClientAuth",
"needClientAuth",
"socket.wantClientAuth",
"socket.needClien... | public void testCompositeConfigure() throws IOException {
// The 5 options being tested.
int optionSettings[] = new int[5];
String optionNames[] = {
"wantClientAuth",
"needClientAuth",
"socket.wantClientAuth",
"socket.needClien... |
diff --git a/src/com/atlauncher/data/Downloadable.java b/src/com/atlauncher/data/Downloadable.java
index 09ff7e14..a9970f5c 100644
--- a/src/com/atlauncher/data/Downloadable.java
+++ b/src/com/atlauncher/data/Downloadable.java
@@ -1,449 +1,449 @@
/**
* Copyright 2013 by ATLauncher and Contributors
*
* This work ... | false | true | public void download(boolean downloadAsLibrary, boolean force) {
this.attempts = 0;
if (this.connection != null) {
this.connection.disconnect();
this.connection = null;
}
if (this.file == null) {
App.settings.log("Cannot download " + this.url + " t... | public void download(boolean downloadAsLibrary, boolean force) {
this.attempts = 0;
if (this.connection != null) {
this.connection.disconnect();
this.connection = null;
}
if (this.file == null) {
App.settings.log("Cannot download " + this.url + " t... |
diff --git a/ini/trakem2/imaging/StitchingTEM.java b/ini/trakem2/imaging/StitchingTEM.java
index 2c21f285..732d3a29 100644
--- a/ini/trakem2/imaging/StitchingTEM.java
+++ b/ini/trakem2/imaging/StitchingTEM.java
@@ -1,969 +1,976 @@
/**
TrakEM2 plugin for ImageJ(C).
Copyright (C) 2005-2009 Albert Cardona and Rodney ... | true | true | static private Runnable stitchTopLeft(
final Patch[] patch,
final int grid_width,
final double default_bottom_top_overlap,
final double default_left_right_overlap,
final boolean optimize)
{
return new Runnable()
{
public void run() {
// Launch phase correlation dialog
PhaseCor... | static private Runnable stitchTopLeft(
final Patch[] patch,
final int grid_width,
final double default_bottom_top_overlap,
final double default_left_right_overlap,
final boolean optimize)
{
return new Runnable()
{
public void run() {
// Launch phase correlation dialog
PhaseCor... |
diff --git a/android/MapTime/src/com/maptime/maptime/Timelinechoice.java b/android/MapTime/src/com/maptime/maptime/Timelinechoice.java
index 4c9ebb6..0ff9cf2 100644
--- a/android/MapTime/src/com/maptime/maptime/Timelinechoice.java
+++ b/android/MapTime/src/com/maptime/maptime/Timelinechoice.java
@@ -1,215 +1,209 @@
pa... | false | true | private void readXML() throws ParserConfigurationException, SAXException, IOException {
SAXParserFactory factory = SAXParserFactory.newInstance();
SAXParser saxParser = factory.newSAXParser();
System.out.println("Starting Read...");
DefaultHandler handler = new DefaultHandler() {
int noOfTimelines = 0;
... | private void readXML() throws ParserConfigurationException, SAXException, IOException {
SAXParserFactory factory = SAXParserFactory.newInstance();
SAXParser saxParser = factory.newSAXParser();
DefaultHandler handler = new DefaultHandler() {
int noOfTimelines = 0;
boolean btime = false;
boolean bname ... |
diff --git a/src/main/java/org/apache/log4j/helpers/QuietWriter.java b/src/main/java/org/apache/log4j/helpers/QuietWriter.java
index 68a96da8..c244f80f 100644
--- a/src/main/java/org/apache/log4j/helpers/QuietWriter.java
+++ b/src/main/java/org/apache/log4j/helpers/QuietWriter.java
@@ -1,75 +1,77 @@
/*
* Licensed to... | true | true | void write(String string) {
try {
out.write(string);
} catch(IOException e) {
errorHandler.error("Failed to write ["+string+"].", e,
ErrorCode.WRITE_FAILURE);
}
}
| void write(String string) {
if (string != null) {
try {
out.write(string);
} catch(IOException e) {
errorHandler.error("Failed to write ["+string+"].", e,
ErrorCode.WRITE_FAILURE);
}
}
}
|
diff --git a/common/net/minecraft/src/buildcraft/logisticspipes/items/CraftingSignCreator.java b/common/net/minecraft/src/buildcraft/logisticspipes/items/CraftingSignCreator.java
index 79975573..89397cbb 100644
--- a/common/net/minecraft/src/buildcraft/logisticspipes/items/CraftingSignCreator.java
+++ b/common/net/mine... | true | true | public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int sideinput)
{
if(itemStack.getItemDamage() > this.getMaxDamage()) {
return false;
}
int side = sideinput % 10;
boolean selfcalled = sideinput > 10;
TileEntity tile = world.getBlockTileEntity(x, y, ... | public boolean onItemUse(ItemStack itemStack, EntityPlayer player, World world, int x, int y, int z, int sideinput)
{
if(itemStack.getItemDamage() > this.getMaxDamage() || itemStack.stackSize == 0) {
return false;
}
int side = sideinput % 10;
boolean selfcalled = sideinput > 10;
TileEntity tile = wor... |
diff --git a/src/java/com/google/caja/parser/html/HtmlDomParser.java b/src/java/com/google/caja/parser/html/HtmlDomParser.java
index 5488fe13..cc94d124 100644
--- a/src/java/com/google/caja/parser/html/HtmlDomParser.java
+++ b/src/java/com/google/caja/parser/html/HtmlDomParser.java
@@ -1,296 +1,298 @@
// Copyright (C)... | false | true | private static Token<HtmlTokenType> extractTagContents(
String tagName, Token<HtmlTokenType> last,
TokenQueue<HtmlTokenType> tokens, HtmlPluginCompiler c)
throws ParseException {
FilePosition posBegin = last.pos;
FilePosition posEnd = last.pos;
Mark start = tokens.mark();
while (true... | private static Token<HtmlTokenType> extractTagContents(
String tagName, Token<HtmlTokenType> last,
TokenQueue<HtmlTokenType> tokens, HtmlPluginCompiler c)
throws ParseException {
FilePosition posBegin = last.pos;
FilePosition posEnd = last.pos;
Mark start = tokens.mark();
Mark end = ... |
diff --git a/src/vddlogger/VddSummaryReporter.java b/src/vddlogger/VddSummaryReporter.java
index 583ee7b..df748f5 100644
--- a/src/vddlogger/VddSummaryReporter.java
+++ b/src/vddlogger/VddSummaryReporter.java
@@ -1,827 +1,833 @@
/*
Copyright 2011 SugarCRM Inc.
Licensed under the Apache License, Version 2.0 (the "L... | false | true | private void writeIssues() {
String[] errors_keys = null;
String[] warnings_keys = null;
String[] except_keys = null;
String line = "";
InputStream stream = null;
HashMap<String, Integer> tmpMap = null;
System.out.printf("(*)Writting issues file...\n");
errors_keys = sortIssue(this.issues.getData... | private void writeIssues() {
String[] errors_keys = null;
String[] warnings_keys = null;
String[] except_keys = null;
String line = "";
InputStream stream = null;
HashMap<String, Integer> tmpMap = null;
System.out.printf("(*)Writting issues file...\n");
errors_keys = sortIssue(this.issues.getData... |
diff --git a/NacaTrans/generate/java/verbs/CJavaCallProgram.java b/NacaTrans/generate/java/verbs/CJavaCallProgram.java
index 1acf0d0..7e80572 100644
--- a/NacaTrans/generate/java/verbs/CJavaCallProgram.java
+++ b/NacaTrans/generate/java/verbs/CJavaCallProgram.java
@@ -1,101 +1,103 @@
/*
* NacaRTTests - Naca Tests fo... | true | true | protected void DoExport()
{
String name = m_Reference.ExportReference(getLine());
if (name.startsWith("\""))
{
name = name.subSequence(1, name.length()-1) + ".class";
}
if (m_bChecked)
{
WriteWord("call(" + name + ")") ;
}
else
{
WriteWord("call(\"" + name + "\")") ;
}
if (m_arrParam... | protected void DoExport()
{
String name = m_Reference.ExportReference(getLine());
if (name.startsWith("\""))
{
name = name.substring(1, name.length()-1);
if (m_bChecked)
name += ".class";
}
if (m_bChecked)
{
WriteWord("call(" + name + ")") ;
}
else
{
WriteWord("call(\"" + name + "\... |
diff --git a/src/com/bretth/osmosis/core/xml/common/BaseXmlWriter.java b/src/com/bretth/osmosis/core/xml/common/BaseXmlWriter.java
index 73d326b9..beb9dea7 100644
--- a/src/com/bretth/osmosis/core/xml/common/BaseXmlWriter.java
+++ b/src/com/bretth/osmosis/core/xml/common/BaseXmlWriter.java
@@ -1,177 +1,177 @@
package ... | true | true | protected void initialize() {
if (!initialized) {
OutputStream outStream = null;
try {
outStream = new FileOutputStream(file);
outStream =
new CompressionActivator(compressionMethod).createCompressionOutputStream(outStream);
writer = new BufferedWriter(new OutputStreamWriter(outS... | protected void initialize() {
if (!initialized) {
OutputStream outStream = null;
try {
outStream = new FileOutputStream(file);
outStream =
new CompressionActivator(compressionMethod).createCompressionOutputStream(outStream);
writer = new BufferedWriter(new OutputStreamWriter(outS... |
diff --git a/src/gdi/CargoWindow.java b/src/gdi/CargoWindow.java
index 9c1b99c..720b596 100644
--- a/src/gdi/CargoWindow.java
+++ b/src/gdi/CargoWindow.java
@@ -1,370 +1,370 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publis... | true | true | private void parseCommand(String command) {
if (command != null) {
if (command.matches(CMD_TRASH)) {
/*
* This command simply destroys an item.
*/
Item selected = (Item) cargoList.getItemAtIndex(cargoList.getIndex());
... | private void parseCommand(String command) {
if (command != null) {
if (command.matches(CMD_TRASH)) {
/*
* This command simply destroys an item.
*/
Item selected = (Item) cargoList.getItemAtIndex(cargoList.getIndex());
... |
diff --git a/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java b/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java
index 8a7bd642..f6d8631b 100644
--- a/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java
+++ b/axis2/src/main/java/org/apache/ode/axis2/ExternalService.java
@@ -1,182 +1,... | true | true | public void invoke(final PartnerRoleMessageExchange odeMex) {
boolean isTwoWay = odeMex.getMessageExchangePattern() ==
org.apache.ode.bpel.iapi.MessageExchange.MessageExchangePattern.REQUEST_RESPONSE;
try {
Element msgContent = SOAPUtils.wrap(odeMex.getRequest().getMessag... | public void invoke(final PartnerRoleMessageExchange odeMex) {
boolean isTwoWay = odeMex.getMessageExchangePattern() ==
org.apache.ode.bpel.iapi.MessageExchange.MessageExchangePattern.REQUEST_RESPONSE;
try {
Element msgContent = SOAPUtils.wrap(odeMex.getRequest().getMessag... |
diff --git a/util/src/main/java/com/psddev/dari/util/HtmlApiFilter.java b/util/src/main/java/com/psddev/dari/util/HtmlApiFilter.java
index 392b0b6e..e34d8d13 100644
--- a/util/src/main/java/com/psddev/dari/util/HtmlApiFilter.java
+++ b/util/src/main/java/com/psddev/dari/util/HtmlApiFilter.java
@@ -1,218 +1,218 @@
pack... | true | true | protected void doRequest(
HttpServletRequest request,
HttpServletResponse response,
FilterChain chain)
throws IOException, ServletException {
String format = request.getParameter("_format");
if (ObjectUtils.isBlank(format)) {
chain.doFilt... | protected void doRequest(
HttpServletRequest request,
HttpServletResponse response,
FilterChain chain)
throws IOException, ServletException {
String format = request.getParameter("_format");
if (ObjectUtils.isBlank(format)) {
chain.doFilt... |
diff --git a/drools-planner-core/src/main/java/org/drools/planner/core/constructionheuristic/placer/value/ValuePlacer.java b/drools-planner-core/src/main/java/org/drools/planner/core/constructionheuristic/placer/value/ValuePlacer.java
index a6198172..364767ae 100644
--- a/drools-planner-core/src/main/java/org/drools/pl... | false | true | public void doPlacement(ConstructionHeuristicStepScope stepScope) {
// TODO extract to PlacerForager
Score maxScore = stepScope.getPhaseScope().getScoreDefinition().getPerfectMinimumScore();
ConstructionHeuristicMoveScope maxMoveScope = null;
Object entity = stepScope.getEntity();
... | public void doPlacement(ConstructionHeuristicStepScope stepScope) {
// TODO extract to PlacerForager
Score maxScore = stepScope.getPhaseScope().getScoreDefinition().getPerfectMinimumScore();
ConstructionHeuristicMoveScope maxMoveScope = null;
Object entity = stepScope.getEntity();
... |
diff --git a/loci/formats/in/LIFReader.java b/loci/formats/in/LIFReader.java
index 71132dc7c..6468cee8f 100644
--- a/loci/formats/in/LIFReader.java
+++ b/loci/formats/in/LIFReader.java
@@ -1,478 +1,479 @@
//
// LIFReader.java
//
/*
LOCI Bio-Formats package for reading and converting biological file formats.
Cop... | true | true | private void initMetadata(String xml) {
Vector elements = new Vector();
seriesNames = new Vector();
// first parse each element in the XML string
while (xml.length() > 2) {
String el = xml.substring(1, xml.indexOf(">"));
xml = xml.substring(xml.indexOf(">") + 1);
elements.add(el);
... | private void initMetadata(String xml) {
Vector elements = new Vector();
seriesNames = new Vector();
// first parse each element in the XML string
while (xml.length() > 2) {
String el = xml.substring(1, xml.indexOf(">"));
xml = xml.substring(xml.indexOf(">") + 1);
elements.add(el);
... |
diff --git a/acteur-folder-auth/src/test/java/com/mastfrog/acteur/MD.java b/acteur-folder-auth/src/test/java/com/mastfrog/acteur/MD.java
index 4945d8f..b9c6dfb 100644
--- a/acteur-folder-auth/src/test/java/com/mastfrog/acteur/MD.java
+++ b/acteur-folder-auth/src/test/java/com/mastfrog/acteur/MD.java
@@ -1,472 +1,473 @@... | false | true | public Channel getChannel() {
return new Channel() {
public Integer id() {
return 1;
}
@Override
public EventLoop eventLoop() {
return null;
}
@Override
public Channel parent() {
... | public Channel getChannel() {
return new Channel() {
public Integer id() {
return 1;
}
@Override
public EventLoop eventLoop() {
return null;
}
@Override
public Channel parent() {
... |
diff --git a/src/BookCopier/Commands.java b/src/BookCopier/Commands.java
index 4eb672c..ebbf597 100644
--- a/src/BookCopier/Commands.java
+++ b/src/BookCopier/Commands.java
@@ -1,196 +1,199 @@
package BookCopier;
import java.io.File;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukk... | false | true | public static void commandCopy(Player commandSender, String args[])
{
if(plugin.config.getOPsOnly())
{
if(!commandSender.isOp())
return;
}
if(args.length == 0)
{
commandSender.sendMessage(ChatColor.RED + "Type: \"/bc help\" for more informations.");
}
if(args[0].toLowerCase().matches("help"... | public static void commandCopy(Player commandSender, String args[])
{
if(plugin.config.getOPsOnly())
{
if(!commandSender.isOp())
return;
}
if(args.length == 0)
{
commandSender.sendMessage(ChatColor.RED + "Type: \"/bc help\" for more informations.");
return;
}
if(args[0].toLowerCase().mat... |
diff --git a/src/Issue.java b/src/Issue.java
index 8166adb..508f905 100644
--- a/src/Issue.java
+++ b/src/Issue.java
@@ -1,184 +1,184 @@
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.io.IOException... | false | true | private void createIssue(Message message) throws IssueException {
String issueTitle = message.getMessage().substring(5);
String issueBody = "This message was generated automatically by " +
message.getUser() + " in " + message.getChannel() +
". Once confirmed, please remove `unconfirmed` tag... | private void createIssue(Message message) throws IssueException {
String issueTitle = message.getMessage().substring(5);
String issueBody = ":octocat: This message was generated automatically by " +
message.getUser() + " in " + message.getChannel() +
". Once confirmed, please remove `unconf... |
diff --git a/src/com/dmdirc/ui/textpane/TextPaneCanvas.java b/src/com/dmdirc/ui/textpane/TextPaneCanvas.java
index 7bade8e5a..1e997133d 100644
--- a/src/com/dmdirc/ui/textpane/TextPaneCanvas.java
+++ b/src/com/dmdirc/ui/textpane/TextPaneCanvas.java
@@ -1,513 +1,513 @@
/*
* Copyright (c) 2006-2007 Chris Smith, Shane ... | false | true | public void paintComponent(final Graphics g) {
final Graphics2D graphics2D = (Graphics2D) g;
final float formatWidth = getWidth();
final float formatHeight = getHeight();
g.setColor(textPane.getBackground());
g.fillRect(0, 0, (int) formatWidth, (int) formatH... | public void paintComponent(final Graphics g) {
final Graphics2D graphics2D = (Graphics2D) g;
final float formatWidth = getWidth();
final float formatHeight = getHeight();
g.setColor(textPane.getBackground());
g.fillRect(0, 0, (int) formatWidth, (int) formatH... |
diff --git a/src/org/bh/validation/VRIsDouble.java b/src/org/bh/validation/VRIsDouble.java
index a647c496..521c7152 100644
--- a/src/org/bh/validation/VRIsDouble.java
+++ b/src/org/bh/validation/VRIsDouble.java
@@ -1,65 +1,65 @@
/*******************************************************************************
* Copyr... | false | true | public ValidationResult validate(IBHModelComponent comp) {
ValidationResult validationResult = new ValidationResult();
if (comp instanceof JTextField || comp instanceof BHTextField) {
BHTextField tf_toValidate = (BHTextField) comp;
double value = Services.stringToDouble(tf_toValidate.getText());
if (tf_to... | public ValidationResult validate(IBHModelComponent comp) {
ValidationResult validationResult = new ValidationResult();
if (comp instanceof JTextField || comp instanceof BHTextField) {
BHTextField tf_toValidate = (BHTextField) comp;
double value = Services.stringToDouble(tf_toValidate.getText());
if (tf_to... |
diff --git a/src/edu/fit/cs/sno/snes/Core.java b/src/edu/fit/cs/sno/snes/Core.java
index 6f9b3b1..57604b3 100644
--- a/src/edu/fit/cs/sno/snes/Core.java
+++ b/src/edu/fit/cs/sno/snes/Core.java
@@ -1,171 +1,173 @@
package edu.fit.cs.sno.snes;
import java.io.File;
import java.io.File;
import java.io.FileInputStream... | true | true | public static void run(InputStream is, boolean isZip) throws Exception {
init(is, isZip);
instCount = 0;
maxInstructions = Long.parseLong(Settings.get(Settings.CORE_MAX_INSTRUCTIONS));
// Load save file if found
if (Settings.isSet(Settings.SAVE_PATH)) {
InputStream saveStream = Util.getStreamFromUrl(Se... | public static void run(InputStream is, boolean isZip) throws Exception {
init(is, isZip);
instCount = 0;
maxInstructions = Long.parseLong(Settings.get(Settings.CORE_MAX_INSTRUCTIONS));
// Load save file if found
if (Settings.isSet(Settings.SAVE_PATH)) {
InputStream saveStream = Util.getStreamFromUrl(Se... |
diff --git a/patientview-parent/patientview/src/main/java/org/patientview/repository/impl/PatientDaoImpl.java b/patientview-parent/patientview/src/main/java/org/patientview/repository/impl/PatientDaoImpl.java
index 71729016..be03bf6b 100644
--- a/patientview-parent/patientview/src/main/java/org/patientview/repository/i... | true | true | public List getUnitPatientsWithTreatmentDao(String unitcode, String nhsno, String name, boolean showgps,
Specialty specialty) {
StringBuilder query = new StringBuilder();
query.append("SELECT usr.username ");
query.append(", usr.pass... | public List getUnitPatientsWithTreatmentDao(String unitcode, String nhsno, String name, boolean showgps,
Specialty specialty) {
StringBuilder query = new StringBuilder();
query.append("SELECT usr.username ");
query.append(", usr.pass... |
diff --git a/src/main/java/com/googlecode/mgwt/examples/showcase/client/activities/test/TestActivity.java b/src/main/java/com/googlecode/mgwt/examples/showcase/client/activities/test/TestActivity.java
index e6e474b..f88f285 100644
--- a/src/main/java/com/googlecode/mgwt/examples/showcase/client/activities/test/TestActi... | true | true | public void start(AcceptsOneWidget panel, final EventBus eventBus) {
super.start(panel, eventBus);
TestView view = clientFactory.getTestView();
view.setTitle("Test");
view.renderItems(clientFactory.getStationUtil().getAllStation());
addHandlerRegistration(view.getBackButton... | public void start(AcceptsOneWidget panel, final EventBus eventBus) {
super.start(panel, eventBus);
TestView view = clientFactory.getTestView();
view.setTitle("Test");
view.renderItems(clientFactory.getStationUtil().getAllStation());
addHandlerRegistration(view.getBackButton... |
diff --git a/TwirlTestTest/src/com/secondhand/model/EnemyTest.java b/TwirlTestTest/src/com/secondhand/model/EnemyTest.java
index 91cd1a1f..017b41ec 100644
--- a/TwirlTestTest/src/com/secondhand/model/EnemyTest.java
+++ b/TwirlTestTest/src/com/secondhand/model/EnemyTest.java
@@ -1,53 +1,54 @@
package com.secondhand.mod... | false | true | public void testIsBiggerThan() {
final PhysicsWorld pw =new PhysicsWorld(new Vector2(), true);
Vector2 pos = new Vector2(2f, 4f);
float rad = 3.2f;
Enemy enemy = new Enemy(pos, rad, pw);
Player other = new Player(pos, rad-1, pw);
assertTrue(enemy.canEat(other));
other = new Player(pos, ... | public void testIsBiggerThan() {
final PhysicsWorld pw =new PhysicsWorld(new Vector2(), true);
Vector2 pos = new Vector2(2f, 4f);
float rad = 3.2f;
float maxSpeed = 10f;
Enemy enemy = new Enemy(pos, rad, pw, maxSpeed);
Player other = new Player(pos, rad-1, pw, maxSpeed);
assertTrue(enem... |
diff --git a/src/main/java/lcmc/data/CRMXML.java b/src/main/java/lcmc/data/CRMXML.java
index f5bc272e..1f30f377 100644
--- a/src/main/java/lcmc/data/CRMXML.java
+++ b/src/main/java/lcmc/data/CRMXML.java
@@ -1,4359 +1,4360 @@
/*
* This file is part of DRBD Management Console by LINBIT HA-Solutions GmbH
* written by... | false | true | CibQuery parseCibQuery(final String query) {
final Document document = getXMLDocument(query);
final CibQuery cibQueryData = new CibQuery();
if (document == null) {
LOG.appWarning("parseCibQuery: cib error: " + query);
return cibQueryData;
}
/* get root... | CibQuery parseCibQuery(final String query) {
final Document document = getXMLDocument(query);
final CibQuery cibQueryData = new CibQuery();
if (document == null) {
LOG.appWarning("parseCibQuery: cib error: " + query);
return cibQueryData;
}
/* get root... |
diff --git a/guice-bootstrap/src/test/java/com/maxifier/guice/bootstrap/groovy/GroovyModuleTest.java b/guice-bootstrap/src/test/java/com/maxifier/guice/bootstrap/groovy/GroovyModuleTest.java
index 43fdb37..5d472cb 100644
--- a/guice-bootstrap/src/test/java/com/maxifier/guice/bootstrap/groovy/GroovyModuleTest.java
+++ b... | false | true | public void testGroovyModule(String fileName) {
InputStream resourceAsStream = GroovyModuleTest.class.getClassLoader().getResourceAsStream(fileName);
Binding binding = new Binding();
binding.setVariable("client", "forbes");
binding.setVariable("binder", binder);
GroovyShell s... | public void testGroovyModule(String fileName) {
InputStream resourceAsStream = GroovyModuleTest.class.getClassLoader().getResourceAsStream(fileName);
GroovyShell shell = new GroovyShell();
shell.setProperty("client", "forbes");
GroovyModule gModule = new GroovyModule(resourceAsStream... |
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/TreeWalker.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/TreeWalker.java
index ffb8a5547..d6162a2dc 100644
--- a/src/checkstyle/com/puppycrawl/tools/checkstyle/TreeWalker.java
+++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/TreeWalker.java
@@ -1,5... | true | true | private void process(File aFile)
{
// check if already checked and passed the file
final String fileName = aFile.getPath();
final long timestamp = aFile.lastModified();
if (mCache.alreadyChecked(fileName, timestamp)) {
return;
}
try {
getM... | private void process(File aFile)
{
// check if already checked and passed the file
final String fileName = aFile.getPath();
final long timestamp = aFile.lastModified();
if (mCache.alreadyChecked(fileName, timestamp)) {
return;
}
try {
getM... |
diff --git a/src/net/sf/freecol/common/model/Tile.java b/src/net/sf/freecol/common/model/Tile.java
index c79c24949..692b69ef5 100644
--- a/src/net/sf/freecol/common/model/Tile.java
+++ b/src/net/sf/freecol/common/model/Tile.java
@@ -1,2293 +1,2298 @@
/**
* Copyright (C) 2002-2007 The FreeCol Team
*
* This fil... | true | true | protected void toXMLImpl(XMLStreamWriter out, Player player, boolean showAll, boolean toSavedGame)
throws XMLStreamException {
// Start element:
out.writeStartElement(getXMLElementTagName());
if (toSavedGame && !showAll) {
logger.warning("toSavedGame is true, but showAll... | protected void toXMLImpl(XMLStreamWriter out, Player player, boolean showAll, boolean toSavedGame)
throws XMLStreamException {
// Start element:
out.writeStartElement(getXMLElementTagName());
if (toSavedGame && !showAll) {
logger.warning("toSavedGame is true, but showAll... |
diff --git a/Proj1.java b/Proj1.java
index 68964bc..5512f2b 100644
--- a/Proj1.java
+++ b/Proj1.java
@@ -1,298 +1,298 @@
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.lang.Math;
i... | true | true | public static void main(String[] rawArgs) throws Exception {
GenericOptionsParser parser = new GenericOptionsParser(rawArgs);
Configuration conf = parser.getConfiguration();
String[] args = parser.getRemainingArgs();
boolean runJob2 = conf.getBoolean("runJob2", true);
boolea... | public static void main(String[] rawArgs) throws Exception {
GenericOptionsParser parser = new GenericOptionsParser(rawArgs);
Configuration conf = parser.getConfiguration();
String[] args = parser.getRemainingArgs();
boolean runJob2 = conf.getBoolean("runJob2", true);
boolea... |
diff --git a/source/net/sourceforge/texlipse/model/TexStyleCompletionManager.java b/source/net/sourceforge/texlipse/model/TexStyleCompletionManager.java
index caf059f..d652aac 100644
--- a/source/net/sourceforge/texlipse/model/TexStyleCompletionManager.java
+++ b/source/net/sourceforge/texlipse/model/TexStyleCompletion... | true | true | public ICompletionProposal[] getStyleCompletions(String selectedText, Point selectedRange) {
/*
ICompletionProposal[] result = new ICompletionProposal[keyValue.size()];
int i=0;
for (Iterator iter = keyValue.keySet().iterator(); iter.hasNext();) {
String key = (String) i... | public ICompletionProposal[] getStyleCompletions(String selectedText, Point selectedRange) {
/*
ICompletionProposal[] result = new ICompletionProposal[keyValue.size()];
int i=0;
for (Iterator iter = keyValue.keySet().iterator(); iter.hasNext();) {
String key = (String) i... |
diff --git a/src/com/tomclaw/mandarin/core/QueryHelper.java b/src/com/tomclaw/mandarin/core/QueryHelper.java
index 5ecb2009..7c1faafa 100644
--- a/src/com/tomclaw/mandarin/core/QueryHelper.java
+++ b/src/com/tomclaw/mandarin/core/QueryHelper.java
@@ -1,503 +1,504 @@
package com.tomclaw.mandarin.core;
import android... | true | true | public static void insertMessage(ContentResolver contentResolver, String appSession, int accountDbId,
int buddyDbId, int messageType, String cookie, long messageTime,
String messageText, boolean activateDialog) {
Log.d(Settings.LOG_TA... | public static void insertMessage(ContentResolver contentResolver, String appSession, int accountDbId,
int buddyDbId, int messageType, String cookie, long messageTime,
String messageText, boolean activateDialog) {
Log.d(Settings.LOG_TA... |
diff --git a/loci/formats/TiffTools.java b/loci/formats/TiffTools.java
index 5c6576f6a..1ef06b90b 100644
--- a/loci/formats/TiffTools.java
+++ b/loci/formats/TiffTools.java
@@ -1,2520 +1,2521 @@
//
// TiffTools.java
//
/*
LOCI Bio-Formats package for reading and converting biological file formats.
Copyright (C)... | true | true | public static byte[] getSamples(Hashtable ifd, RandomAccessStream in,
byte[] buf) throws FormatException, IOException
{
if (DEBUG) debug("parsing IFD entries");
// get internal non-IFD entries
boolean littleEndian = isLittleEndian(ifd);
in.order(littleEndian);
// get relevant IFD entries
... | public static byte[] getSamples(Hashtable ifd, RandomAccessStream in,
byte[] buf) throws FormatException, IOException
{
if (DEBUG) debug("parsing IFD entries");
// get internal non-IFD entries
boolean littleEndian = isLittleEndian(ifd);
in.order(littleEndian);
// get relevant IFD entries
... |
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/GitDocument.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/GitDocument.java
index d5651c9b..cdbda0fb 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/GitDocument.java
+++ b/org.eclipse.egit.u... | true | true | void populate() throws IOException {
if (GitTraceLocation.QUICKDIFF.isActive())
GitTraceLocation.getTrace().traceEntry(
GitTraceLocation.QUICKDIFF.getLocation(), resource);
TreeWalk tw = null;
RevWalk rw = null;
try {
RepositoryMapping mapping = RepositoryMapping.getMapping(resource);
if (mapping... | void populate() throws IOException {
if (GitTraceLocation.QUICKDIFF.isActive())
GitTraceLocation.getTrace().traceEntry(
GitTraceLocation.QUICKDIFF.getLocation(), resource);
TreeWalk tw = null;
RevWalk rw = null;
try {
RepositoryMapping mapping = RepositoryMapping.getMapping(resource);
if (mapping... |
diff --git a/src/main/java/org/pircbotx/hooks/events/SetTopicProtectionEvent.java b/src/main/java/org/pircbotx/hooks/events/SetTopicProtectionEvent.java
index c78608c..1659b99 100644
--- a/src/main/java/org/pircbotx/hooks/events/SetTopicProtectionEvent.java
+++ b/src/main/java/org/pircbotx/hooks/events/SetTopicProtecti... | false | true | public <T extends PircBotX> SetTopicProtectionEvent(T bot, Channel channel, User user) {
super(bot);
this.user = user;
this.source = source;
}
| public <T extends PircBotX> SetTopicProtectionEvent(T bot, Channel channel, User user) {
super(bot);
this.channel = channel;
this.user = user;
}
|
diff --git a/src/test/java/org/jproggy/snippetory/test/Page.java b/src/test/java/org/jproggy/snippetory/test/Page.java
index a003ebc..d0641bf 100644
--- a/src/test/java/org/jproggy/snippetory/test/Page.java
+++ b/src/test/java/org/jproggy/snippetory/test/Page.java
@@ -1,114 +1,115 @@
package org.jproggy.snippetory.tes... | false | true | public Section addSelectionAttrib(String name, Collection<?> values, Object selected) {
Template attrib = getAttrib(name);
Template control = section.get("controls", "select");
for (Object value : values) {
String type = value.equals(selected) ? "selected_option" : "option";
Template option = control... | public Section addSelectionAttrib(String name, Collection<?> values, Object selected) {
Template attrib = getAttrib(name);
Template control = section.get("controls", "select");
control.set("name", name);
for (Object value : values) {
String type = value.equals(selected) ? "selected_option" : "option";... |
diff --git a/src/eu/bryants/anthony/plinth/compiler/passes/Resolver.java b/src/eu/bryants/anthony/plinth/compiler/passes/Resolver.java
index db1d5c3..2f7d8b2 100644
--- a/src/eu/bryants/anthony/plinth/compiler/passes/Resolver.java
+++ b/src/eu/bryants/anthony/plinth/compiler/passes/Resolver.java
@@ -1,2989 +1,2989 @@
... | false | true | private void resolve(Expression expression, Block block, TypeDefinition enclosingDefinition, CompilationUnit compilationUnit, boolean inStaticContext, boolean inImmutableContext, Property enclosingProperty) throws ConceptualException
{
if (expression instanceof ArithmeticExpression)
{
CoalescedConcept... | private void resolve(Expression expression, Block block, TypeDefinition enclosingDefinition, CompilationUnit compilationUnit, boolean inStaticContext, boolean inImmutableContext, Property enclosingProperty) throws ConceptualException
{
if (expression instanceof ArithmeticExpression)
{
CoalescedConcept... |
diff --git a/src/main/java/com/oschrenk/humangeo/cs/Vectors.java b/src/main/java/com/oschrenk/humangeo/cs/Vectors.java
index d848a72..12159c0 100644
--- a/src/main/java/com/oschrenk/humangeo/cs/Vectors.java
+++ b/src/main/java/com/oschrenk/humangeo/cs/Vectors.java
@@ -1,116 +1,116 @@
package com.oschrenk.humangeo.cs;
... | true | true | public static final double length(
final Cartesian3dCoordinate cartesianCoordinate) {
return Math.sqrt(cartesianCoordinate.getX()
* cartesianCoordinate.getX() + cartesianCoordinate.getY()
* cartesianCoordinate.getY() + cartesianCoordinate.getZ()
+ cartesianCoordinate.getZ());
}
| public static final double length(
final Cartesian3dCoordinate cartesianCoordinate) {
return Math.sqrt(cartesianCoordinate.getX()
* cartesianCoordinate.getX() + cartesianCoordinate.getY()
* cartesianCoordinate.getY() + cartesianCoordinate.getZ()
* cartesianCoordinate.getZ());
}
|
diff --git a/workspace/enwida/src/main/java/de/enwida/web/service/implementation/UserServiceImpl.java b/workspace/enwida/src/main/java/de/enwida/web/service/implementation/UserServiceImpl.java
index b7b27bc4..21c7fa26 100644
--- a/workspace/enwida/src/main/java/de/enwida/web/service/implementation/UserServiceImpl.java
... | true | true | public boolean saveUser(User user, String activationHost, Locale locale,boolean sendEmail) throws Exception
{
// FIXME: what is the return value?
Date date = new Date(Calendar.getInstance().getTimeInMillis());
user.setJoiningDate(date);
user.setEnabled(false);
// G... | public boolean saveUser(User user, String activationHost, Locale locale,boolean sendEmail) throws Exception
{
// FIXME: what is the return value?
Date date = new Date(Calendar.getInstance().getTimeInMillis());
user.setJoiningDate(date);
user.setEnabled(false);
// G... |
diff --git a/ass1/src/com/kkirch/symbols/SymbolContext.java b/ass1/src/com/kkirch/symbols/SymbolContext.java
index 313fb1d..64bdfcc 100644
--- a/ass1/src/com/kkirch/symbols/SymbolContext.java
+++ b/ass1/src/com/kkirch/symbols/SymbolContext.java
@@ -1,42 +1,42 @@
/*
* To change this template, choose Tools | Templates... | true | true | public Id get(Token t) {
Id foundId = null;
SymbolContext currentContext = this;
while (currentContext != null) {
foundId = symbolTable.get(t);
if (foundId == null) {
currentContext = currentContext.parentContext;
} else {
b... | public Id get(Token t) {
Id foundId = null;
SymbolContext currentContext = this;
while (currentContext != null) {
foundId = currentContext.symbolTable.get(t);
if (foundId == null) {
currentContext = currentContext.parentContext;
} else {
... |
diff --git a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/deployer/BpmnDeployer.java b/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/deployer/BpmnDeployer.java
index 657504e..2ef617a 100644
--- a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/deployer/Bp... | true | true | public void deploy(DeploymentEntity deployment) {
List<ProcessDefinitionEntity> processDefinitions = new ArrayList<ProcessDefinitionEntity>();
Map<String, ResourceEntity> resources = deployment.getResources();
for (String resourceName : resources.keySet()) {
LOG.info("Processing resource " + resou... | public void deploy(DeploymentEntity deployment) {
List<ProcessDefinitionEntity> processDefinitions = new ArrayList<ProcessDefinitionEntity>();
Map<String, ResourceEntity> resources = deployment.getResources();
for (String resourceName : resources.keySet()) {
LOG.info("Processing resource " + resou... |
diff --git a/at.owlsoft.owl/src/at/owlsoft/owl/usecases/ExtensionController.java b/at.owlsoft.owl/src/at/owlsoft/owl/usecases/ExtensionController.java
index 7639bd3..d3f552f 100644
--- a/at.owlsoft.owl/src/at/owlsoft/owl/usecases/ExtensionController.java
+++ b/at.owlsoft.owl/src/at/owlsoft/owl/usecases/ExtensionControl... | true | true | private boolean validate(Rental rental)
{
boolean hasNoError = true;
_messages = new ArrayList<ValidationMessage>();
// TODO Read from config maximum FilingExtension number
Class<?> c = rental.getMediumExemplar().getClass();
String name = c.getName().concat("maxExtensio... | private boolean validate(Rental rental)
{
boolean hasNoError = true;
_messages = new ArrayList<ValidationMessage>();
// TODO Read from config maximum FilingExtension number
Class<?> c = rental.getMediumExemplar().getClass();
String name = c.getName().concat("maxExtensio... |
diff --git a/loci/visbio/ClassManager.java b/loci/visbio/ClassManager.java
index 4edb4035a..84dfbb990 100644
--- a/loci/visbio/ClassManager.java
+++ b/loci/visbio/ClassManager.java
@@ -1,101 +1,101 @@
//
// ClassManager.java
//
/*
VisBio application for visualization of multidimensional
biological image data. C... | true | true | private void doGUI() {
// preload a bunch of classes
int size = preloadClasses.size();
String pkg = "";
for (int i=0; i<size; i++) {
String className = (String) preloadClasses.elementAt(i);
int dot = className.lastIndexOf(".");
String prefix = className.substring(0, dot);
if (!... | private void doGUI() {
// preload a bunch of classes
int size = preloadClasses.size();
String pkg = "";
for (int i=0; i<size; i++) {
String className = (String) preloadClasses.elementAt(i);
int dot = className.lastIndexOf(".");
String prefix = className.substring(0, dot);
if (!... |
diff --git a/cyklotron-core/src/main/java/net/cyklotron/cms/accesslimits/ProtectedItem.java b/cyklotron-core/src/main/java/net/cyklotron/cms/accesslimits/ProtectedItem.java
index 7e9e642e1..22ced4fc0 100644
--- a/cyklotron-core/src/main/java/net/cyklotron/cms/accesslimits/ProtectedItem.java
+++ b/cyklotron-core/src/mai... | true | true | private void initialize(ProtectedItemResource res)
{
try
{
urlPattern = Pattern.compile(res.getUrlPattern());
Resource[] children = res.getChildren();
List<RuleResource> ruleDefs = new ArrayList<>();
for(Resource child : children)
{
... | private void initialize(ProtectedItemResource res)
{
try
{
urlPattern = Pattern.compile(res.getUrlPattern());
Resource[] children = res.getChildren();
List<RuleResource> ruleDefs = new ArrayList<>();
for(Resource child : children)
{
... |
diff --git a/src/org/odk/collect/android/tasks/FormLoaderTask.java b/src/org/odk/collect/android/tasks/FormLoaderTask.java
index b4ff37f..9b900be 100644
--- a/src/org/odk/collect/android/tasks/FormLoaderTask.java
+++ b/src/org/odk/collect/android/tasks/FormLoaderTask.java
@@ -1,393 +1,399 @@
/*
* Copyright (C) 2009 ... | true | true | protected FECWrapper doInBackground(String... path) {
FormEntryController fec = null;
FormDef fd = null;
FileInputStream fis = null;
String formPath = path[0];
String instancePath = path[1];
File formXml = new File(formPath);
String formHash = FileUtils.getM... | protected FECWrapper doInBackground(String... path) {
FormEntryController fec = null;
FormDef fd = null;
FileInputStream fis = null;
String formPath = path[0];
String instancePath = path[1];
if ( formPath == null && instancePath != null ) {
String instanceNa... |
diff --git a/core/src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java b/core/src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java
index 455a38dd1..9e34fa160 100644
--- a/core/src/main/java/hudson/maven/reporters/MavenArtifactArchiver.java
+++ b/core/src/main/java/hudson/maven/reporters/MavenArtif... | true | true | public boolean postBuild(MavenBuildProxy build, MavenProject pom, final BuildListener listener) throws InterruptedException, IOException {
// artifacts that are known to Maven.
Set<File> mavenArtifacts = new HashSet<File>();
if(pom.getFile()!=null) {// goals like 'clean' runs without loadin... | public boolean postBuild(MavenBuildProxy build, MavenProject pom, final BuildListener listener) throws InterruptedException, IOException {
// artifacts that are known to Maven.
Set<File> mavenArtifacts = new HashSet<File>();
if(pom.getFile()!=null) {// goals like 'clean' runs without loadin... |
diff --git a/src/test/java/sstTest/ShipTests.java b/src/test/java/sstTest/ShipTests.java
index afa17be..e529060 100644
--- a/src/test/java/sstTest/ShipTests.java
+++ b/src/test/java/sstTest/ShipTests.java
@@ -1,172 +1,172 @@
package sstTest;
import java.util.HashMap;
import org.junit.Assert;
import org.junit.Be... | false | true | public void RepairWhileDocked() {
mapOfSubSystems = new HashMap<String, SubSystem>();
mapOfSubSystems.put("Weapons", new SubSystem(1000, 200));
Ship ship = new Ship("NCC-1701", 2000, mapOfSubSystems);
ship.takeDamage(2000);
ship.dock(true);
ship.rest(10);
Assert.assertEquals(false, ship.isSubSystemDamag... | public void RepairWhileDocked() {
mapOfSubSystems = new HashMap<String, SubSystem>();
mapOfSubSystems.put("ShieldControl", new ShieldControl(0));
Ship ship = new Ship("NCC-1701", 2000, mapOfSubSystems);
ship.takeDamage(1000);
ship.dock(true);
ship.rest(20);
Assert.assertEquals(false, ship.isSubSystemDam... |
diff --git a/src/main/java/org/apache/maven/archiva/meeper/Synchronizer.java b/src/main/java/org/apache/maven/archiva/meeper/Synchronizer.java
index 860f28f..c439924 100644
--- a/src/main/java/org/apache/maven/archiva/meeper/Synchronizer.java
+++ b/src/main/java/org/apache/maven/archiva/meeper/Synchronizer.java
@@ -1,2... | true | true | public static void main( String[] args )
{
if ( ( args.length != 2 ) && ( args.length != 3 ) )
{
System.out.println( "Arguments required: CONFIG_PROPERTIES_FILE REPOSITORIES_FILE [go]" );
return;
}
int i = 0;
SynchronizerOptions options = Synchron... | public static void main( String[] args )
{
if ( ( args.length != 2 ) && ( args.length != 3 ) )
{
System.out.println( "Arguments required: CONFIG_PROPERTIES_FILE REPOSITORIES_FILE [go]" );
return;
}
int i = 0;
SynchronizerOptions options = Synchron... |
diff --git a/src/me/libraryaddict/Hungergames/Commands/Me.java b/src/me/libraryaddict/Hungergames/Commands/Me.java
index bc8422e..fcbb345 100644
--- a/src/me/libraryaddict/Hungergames/Commands/Me.java
+++ b/src/me/libraryaddict/Hungergames/Commands/Me.java
@@ -1,31 +1,35 @@
package me.libraryaddict.Hungergames.Command... | true | true | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
if (config.getMainConfig().isSpectatorsChatHidden() && pm.getGamer((Player) sender).isSpectator()) {
sender.sendMessage(tm.getCommandMeSpectating());
return true;
}
Bukki... | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
if (config.getMainConfig().isSpectatorsChatHidden() && pm.getGamer((Player) sender).isSpectator()) {
sender.sendMessage(tm.getCommandMeSpectating());
return true;
}
if (a... |
diff --git a/Aufgabe02/src/main_Aufgabe02.java b/Aufgabe02/src/main_Aufgabe02.java
index dd88226..a671db6 100644
--- a/Aufgabe02/src/main_Aufgabe02.java
+++ b/Aufgabe02/src/main_Aufgabe02.java
@@ -1,101 +1,100 @@
import java.io.*;
import java.util.regex.*;
public class main_Aufgabe02 {
/**
* Wiederholen bis... | true | true | public static void main(String[] args) {
System.out.println("Aufgabe 02");
double dblIncome = -1;
double dblResult = 0;
String strInput = "";
boolean quit = false;
do {
System.out.println("\nBitte Einkommen eingeben: ");
strInput = readInput();
if (Pattern.matches("[0-9]+[.]{0,1}[0-9]*", strIn... | public static void main(String[] args) {
System.out.println("Aufgabe 02");
double dblIncome = -1;
double dblResult = 0;
String strInput = "";
boolean quit = false;
do {
System.out.println("\nBitte Einkommen eingeben: ");
strInput = readInput();
if (Pattern.matches("[0-9]+[.]{0,1}[0-9]*", strIn... |
diff --git a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/TypeImpl.java b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/TypeImpl.java
index 1f6f7c137..fb71fd08f 100644
--- a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/TypeImpl.java
+++ b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/TypeImpl.java... | false | true | public static String classNameToSignature(String qualifiedName) {
// L<classname>; : fully-qualified-class
/* JNI signature examples:
* int[][] -> [[I
* long[] -> [J
* java.lang.String -> Ljava/lang/String;
* java.lang.String[] -> [Ljava/lang/String;
*/
StringBuffer s... | public static String classNameToSignature(String qualifiedName) {
// L<classname>; : fully-qualified-class
/* JNI signature examples:
* int[][] -> [[I
* long[] -> [J
* java.lang.String -> Ljava/lang/String;
* java.lang.String[] -> [Ljava/lang/String;
*/
StringBuffer s... |
diff --git a/impl/src/main/java/org/richfaces/application/push/impl/SessionManagerImpl.java b/impl/src/main/java/org/richfaces/application/push/impl/SessionManagerImpl.java
index d67bc6001..f53357303 100644
--- a/impl/src/main/java/org/richfaces/application/push/impl/SessionManagerImpl.java
+++ b/impl/src/main/java/org... | true | true | public void destroy() {
//TODO notify all session
// TODO - synchronize clear/remove/clear. Other thread can insert new value during destroy.
sessionQueue.clear();
while (!sessionMap.isEmpty()) {
for (Iterator<Session> sessionsItr = sessionMap.values().iterator()... | public void destroy() {
//TODO notify all session
sessionQueue.clear();
while (!sessionMap.isEmpty()) {
for (Iterator<Session> sessionsItr = sessionMap.values().iterator(); sessionsItr.hasNext(); ) {
Session session = sessionsItr.next();
s... |
diff --git a/src/main/java/iTests/framework/testng/report/mail/HtmlMailReporter.java b/src/main/java/iTests/framework/testng/report/mail/HtmlMailReporter.java
index 2c1d237..a7d6ec9 100644
--- a/src/main/java/iTests/framework/testng/report/mail/HtmlMailReporter.java
+++ b/src/main/java/iTests/framework/testng/report/ma... | true | true | public void sendHtmlMailReport(SummaryReport summaryReport, String wikiPageUrl, Properties extProperties) {
String buildNumber = extProperties.getProperty("buildVersion");
String majorVersion = extProperties.getProperty("majorVersion");
String minorVersion = extProperties.getProperty("minorV... | public void sendHtmlMailReport(SummaryReport summaryReport, String wikiPageUrl, Properties extProperties) {
String buildNumber = extProperties.getProperty("buildVersion");
String majorVersion = extProperties.getProperty("majorVersion");
String minorVersion = extProperties.getProperty("minorV... |
diff --git a/src/jpcsp/graphics/VertexInfo.java b/src/jpcsp/graphics/VertexInfo.java
index 2b462958..9b501606 100644
--- a/src/jpcsp/graphics/VertexInfo.java
+++ b/src/jpcsp/graphics/VertexInfo.java
@@ -1,374 +1,381 @@
/*
This file is part of jpcsp.
Jpcsp is free software: you can redistribute it and/or modify
it... | false | true | public VertexState readVertex(Memory mem, int addr) {
VertexState v = new VertexState();
// testing
if (false) {
int u0 = mem.read8(addr);
int u1 = mem.read8(addr + 1);
int u2 = mem.read8(addr + 2);
int u3 = mem.read8(addr + 3);
in... | public VertexState readVertex(Memory mem, int addr) {
VertexState v = new VertexState();
// testing
if (false) {
int u0 = mem.read8(addr);
int u1 = mem.read8(addr + 1);
int u2 = mem.read8(addr + 2);
int u3 = mem.read8(addr + 3);
in... |
diff --git a/blueprint-sdk/src/blueprint/sdk/util/jdbc/H2Queue.java b/blueprint-sdk/src/blueprint/sdk/util/jdbc/H2Queue.java
index 477dce6..c4531bf 100644
--- a/blueprint-sdk/src/blueprint/sdk/util/jdbc/H2Queue.java
+++ b/blueprint-sdk/src/blueprint/sdk/util/jdbc/H2Queue.java
@@ -1,162 +1,163 @@
/*
License:
blue... | true | true | protected void createTable() throws SQLException {
checkConnection();
Statement stmt = con.createStatement();
try {
stmt.executeUpdate("CREATE SCHEMA " + schema);
} catch (SQLException e) {
if (e.getErrorCode() != 90078) {
throw e;
}
}
try {
stmt.executeUpdate("CREATE TABLE " + schema + "... | protected void createTable() throws SQLException {
checkConnection();
Statement stmt = con.createStatement();
try {
stmt.executeUpdate("CREATE SCHEMA " + schema);
} catch (SQLException e) {
if (e.getErrorCode() != 90078) {
throw e;
}
}
try {
stmt.executeUpdate("CREATE TABLE " + schema + "... |
diff --git a/dvn-app/trunk/src/DVN-web/src/edu/harvard/iq/dvn/core/web/servlet/TermsOfUseFilter.java b/dvn-app/trunk/src/DVN-web/src/edu/harvard/iq/dvn/core/web/servlet/TermsOfUseFilter.java
index 88d1a07e1..076ffff0b 100644
--- a/dvn-app/trunk/src/DVN-web/src/edu/harvard/iq/dvn/core/web/servlet/TermsOfUseFilter.java
+... | true | true | private boolean checkDownloadTermsOfUse(HttpServletRequest req, HttpServletResponse res) throws java.io.IOException {
String fileId = req.getParameter("fileId");
String catId = req.getParameter("catId");
String studyId = req.getParameter("studyId");
String versionNumber = req.getPara... | private boolean checkDownloadTermsOfUse(HttpServletRequest req, HttpServletResponse res) throws java.io.IOException {
String fileId = req.getParameter("fileId");
String catId = req.getParameter("catId");
String studyId = req.getParameter("studyId");
String versionNumber = req.getPara... |
diff --git a/src/play/modules/log4play/Log4PlayEvent.java b/src/play/modules/log4play/Log4PlayEvent.java
index 9d88af4..64c02a1 100644
--- a/src/play/modules/log4play/Log4PlayEvent.java
+++ b/src/play/modules/log4play/Log4PlayEvent.java
@@ -1,81 +1,82 @@
/**
* Copyright 2011 The Apache Software Foundation
*
* L... | true | true | public Log4PlayEvent(LoggingEvent event) {
// Define Date Format
DateFormat dateFormat = SimpleDateFormat.getDateTimeInstance();
// Set Data Fields
this.category = event.categoryName;
this.thread = event.getThreadName();
this.date = dateFormat.format(new Date(event.getTimeStamp()));
this.message = event... | public Log4PlayEvent(LoggingEvent event) {
// Define Date Format
DateFormat dateFormat = SimpleDateFormat.getDateTimeInstance();
// Set Data Fields
this.category = event.categoryName;
this.thread = event.getThreadName();
this.date = dateFormat.format(new Date(event.getTimeStamp()));
this.message = event... |
diff --git a/htroot/WatchCrawler_p.java b/htroot/WatchCrawler_p.java
index 1d4582ec3..55420564f 100644
--- a/htroot/WatchCrawler_p.java
+++ b/htroot/WatchCrawler_p.java
@@ -1,392 +1,392 @@
// WatchCrawler_p.java
// (C) 2006 by Michael Peter Christen; mc@anomic.de, Frankfurt a. M., Germany
// first published 18.12.20... | true | true | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
// return variable that accumulates replacements
plasmaSwitchboard switchboard = (plasmaSwitchboard) env;
serverObjects prop = new serverObjects();
if (post == null) {
... | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
// return variable that accumulates replacements
plasmaSwitchboard switchboard = (plasmaSwitchboard) env;
serverObjects prop = new serverObjects();
if (post == null) {
... |
diff --git a/nephele/nephele-common/src/test/java/eu/stratosphere/nephele/io/library/FileLineReadWriteTest.java b/nephele/nephele-common/src/test/java/eu/stratosphere/nephele/io/library/FileLineReadWriteTest.java
index 0086389a7..02eb8aba6 100644
--- a/nephele/nephele-common/src/test/java/eu/stratosphere/nephele/io/lib... | true | true | public void testReadWrite() throws Exception {
this.file.createNewFile();
FileLineWriter writer = new FileLineWriter();
Whitebox.setInternalState(writer, "environment", this.environment);
Whitebox.setInternalState(writer, "input", this.recordReader);
when(this.environment.getTaskConfiguration()).thenReturn(... | public void testReadWrite() throws Exception {
this.file.createNewFile();
FileLineWriter writer = new FileLineWriter();
Whitebox.setInternalState(writer, "environment", this.environment);
Whitebox.setInternalState(writer, "input", this.recordReader);
when(this.environment.getTaskConfiguration()).thenReturn(... |
diff --git a/simulator/code/simulator/elevatorcontrol/DoorControl.java b/simulator/code/simulator/elevatorcontrol/DoorControl.java
index 224b0dd..d603884 100755
--- a/simulator/code/simulator/elevatorcontrol/DoorControl.java
+++ b/simulator/code/simulator/elevatorcontrol/DoorControl.java
@@ -1,347 +1,347 @@
/* 18649 F... | true | true | public void timerExpired(Object callbackData) {
State newState = state;
switch (state) {
case STATE_DOOR_CLOSING:
//state actions
localDoorMotor.set(DoorCommand.NUDGE);
mDoorMotorCommand.set(DoorCommand.NUDGE);
dwell = mDes... | public void timerExpired(Object callbackData) {
State newState = state;
switch (state) {
case STATE_DOOR_CLOSING:
//state actions
localDoorMotor.set(DoorCommand.NUDGE);
mDoorMotorCommand.set(DoorCommand.NUDGE);
dwell = mDes... |
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/UnpackedObjectLoader.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/UnpackedObjectLoader.java
index 968dada0..005df4b9 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/UnpackedObjectLoader.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/UnpackedObjectL... | true | true | private UnpackedObjectLoader(final byte[] compressed, final AnyObjectId id)
throws CorruptObjectException {
// Try to determine if this is a legacy format loose object or
// a new style loose object. The legacy format was completely
// compressed with zlib so the first byte must be 0x78 (15-bit
// window si... | private UnpackedObjectLoader(final byte[] compressed, final AnyObjectId id)
throws CorruptObjectException {
// Try to determine if this is a legacy format loose object or
// a new style loose object. The legacy format was completely
// compressed with zlib so the first byte must be 0x78 (15-bit
// window si... |
diff --git a/src/gui/graphical/Panel.java b/src/gui/graphical/Panel.java
index 4238688..e06db37 100644
--- a/src/gui/graphical/Panel.java
+++ b/src/gui/graphical/Panel.java
@@ -1,116 +1,116 @@
package gui.graphical;
// Default Libraries
import java.io.IOException;
import java.lang.reflect.Field;
// Graphical L... | true | true | Panel(int R, int width, int height, Map map)
{
this.map = map;
// Dimensions
this.width = width;
this.height = height;
// Preferences
this.setBackground(Color.black);
this.setPreferredSize(new Dimension(width, height));
int... | Panel(int R, int width, int height, Map map)
{
this.map = map;
// Dimensions
this.width = width;
this.height = height;
// Preferences
this.setBackground(Color.black);
this.setPreferredSize(new Dimension(width, height));
int... |
diff --git a/integration-tests/src/test/java/de/escidoc/core/test/om/container/rest/ContainerRetrieveRestTest.java b/integration-tests/src/test/java/de/escidoc/core/test/om/container/rest/ContainerRetrieveRestTest.java
index 794355776..82e520762 100644
--- a/integration-tests/src/test/java/de/escidoc/core/test/om/conta... | true | true | public void testRetrieveResources() throws Exception {
String xmlData =
EscidocRestSoapTestBase.getTemplateAsString(TEMPLATE_ITEM_PATH
+ "/" + getTransport(false), "escidoc_item_198_for_create.xml");
String theItemXml = handleXmlResult(getItemClient().create(xmlData));
... | public void testRetrieveResources() throws Exception {
String xmlData =
EscidocRestSoapTestBase.getTemplateAsString(TEMPLATE_ITEM_PATH
+ "/" + getTransport(false), "escidoc_item_198_for_create.xml");
String theItemXml = handleXmlResult(getItemClient().create(xmlData));
... |
diff --git a/lilith/src/main/java/de/huxhorn/lilith/swing/table/tooltips/MessageTooltipGenerator.java b/lilith/src/main/java/de/huxhorn/lilith/swing/table/tooltips/MessageTooltipGenerator.java
index 4becbbf0..e9e0d97b 100644
--- a/lilith/src/main/java/de/huxhorn/lilith/swing/table/tooltips/MessageTooltipGenerator.java
... | true | true | public String createTooltipText(JTable table, int row)
{
final int MAX_LINE_LENGTH=80;
final int MAX_LINES=20;
String tooltip=null;
Object value=table.getValueAt(row,0);
if(value instanceof EventWrapper)
{
EventWrapper wrapper=(EventWrapper)value;
Object eventObj = wrapper.getEvent();
if(eventObj... | public String createTooltipText(JTable table, int row)
{
final int MAX_LINE_LENGTH=80;
final int MAX_LINES=20;
String tooltip=null;
Object value=table.getValueAt(row,0);
if(value instanceof EventWrapper)
{
EventWrapper wrapper=(EventWrapper)value;
Object eventObj = wrapper.getEvent();
if(eventObj... |
diff --git a/src/main/java/ar/edu/itba/pdc/proxy/HttpSelectorProtocolClient.java b/src/main/java/ar/edu/itba/pdc/proxy/HttpSelectorProtocolClient.java
index c4030af..0d0ff39 100644
--- a/src/main/java/ar/edu/itba/pdc/proxy/HttpSelectorProtocolClient.java
+++ b/src/main/java/ar/edu/itba/pdc/proxy/HttpSelectorProtocolCli... | true | true | public SocketChannel handleRead(SelectionKey key) throws IOException {
// Client socket channel has pending data
SocketChannel channel = (SocketChannel) key.channel();
ProxyConnection conn = proxyconnections.get(channel);
ByteBuffer buf = conn.getBuffer(channel);
long bytesRead = 0;
try {
bytesRead =... | public SocketChannel handleRead(SelectionKey key) throws IOException {
// Client socket channel has pending data
SocketChannel channel = (SocketChannel) key.channel();
ProxyConnection conn = proxyconnections.get(channel);
ByteBuffer buf = conn.getBuffer(channel);
long bytesRead = 0;
try {
bytesRead =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.