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/java/nz/co/searchwellington/twitter/LiveTwitterService.java b/src/java/nz/co/searchwellington/twitter/LiveTwitterService.java
index 18a725a5..e9945808 100644
--- a/src/java/nz/co/searchwellington/twitter/LiveTwitterService.java
+++ b/src/java/nz/co/searchwellington/twitter/LiveTwitterService.java
@@ -1... | true | true | public List<Status> getReplies() {
log.info("Getting twitter replies from live api for " + username);
Api api = new Api.Builder().username(username).password(password).build();
List<Status> all = new ArrayList<Status>();
for (int i = 1; i < REPLY_PAGES_TO_FETCH; i++) {
RepliesRequest re... | public List<Status> getReplies() {
log.info("Getting twitter replies from live api for " + username);
Api api = new Api.Builder().username(username).password(password).build();
List<Status> all = new ArrayList<Status>();
for (int i = 1; i <= REPLY_PAGES_TO_FETCH; i++) {
RepliesRequest r... |
diff --git a/src/budgetapp/main/MainActivity.java b/src/budgetapp/main/MainActivity.java
index 56afc36..d7c4b1f 100644
--- a/src/budgetapp/main/MainActivity.java
+++ b/src/budgetapp/main/MainActivity.java
@@ -1,493 +1,493 @@
package budgetapp.main;
import java.io.*;
import java.text.SimpleDateFormat;
import java.... | false | true | public void addToBudget()
{
List<DayEntry> lastDay = datasource.getSomeDays(1,datasource.DESCENDING);
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm");
if(!lastDay.isEmpty())
{
SimpleDateFormat compareFormat = new SimpleDateFormat("yyyy/MM/dd"... | public void addToBudget()
{
List<DayEntry> lastDay = datasource.getSomeDays(1,datasource.DESCENDING);
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm");
if(!lastDay.isEmpty())
{
SimpleDateFormat compareFormat = new SimpleDateFormat("yyyy/MM/dd"... |
diff --git a/src/org/meta_environment/rascal/interpreter/Profiler.java b/src/org/meta_environment/rascal/interpreter/Profiler.java
index 55419cce90..2a42c1763c 100644
--- a/src/org/meta_environment/rascal/interpreter/Profiler.java
+++ b/src/org/meta_environment/rascal/interpreter/Profiler.java
@@ -1,113 +1,113 @@
pack... | true | true | public void report(){
/* Extract a list of entries from the collected data and
* sort it with descending tick values.
*/
List<Map.Entry<Statement, Count>> sortedData = new Vector<Entry<Statement, Count>>(data.entrySet());
java.util.Collections.sort(sortedData, new Comparator<Map.Entry<... | public void report(){
/* Extract a list of entries from the collected data and
* sort it with descending tick values.
*/
List<Map.Entry<Statement, Count>> sortedData = new Vector<Entry<Statement, Count>>(data.entrySet());
java.util.Collections.sort(sortedData, new Comparator<Map.Entry<... |
diff --git a/core/src/main/java/org/apache/mina/core/polling/AbstractPollingIoProcessor.java b/core/src/main/java/org/apache/mina/core/polling/AbstractPollingIoProcessor.java
index f252134d..1fd67534 100644
--- a/core/src/main/java/org/apache/mina/core/polling/AbstractPollingIoProcessor.java
+++ b/core/src/main/java/or... | false | true | private boolean flushNow(T session, long currentTime) {
if (!session.isConnected()) {
scheduleRemove(session);
return false;
}
final boolean hasFragmentation = session.getTransportMetadata()
.hasFragmentation();
final WriteRequestQueue writeR... | private boolean flushNow(T session, long currentTime) {
if (!session.isConnected()) {
scheduleRemove(session);
return false;
}
final boolean hasFragmentation = session.getTransportMetadata()
.hasFragmentation();
final WriteRequestQueue writeR... |
diff --git a/src/java/de/d2dev/heroquest/editor/EditorResources.java b/src/java/de/d2dev/heroquest/editor/EditorResources.java
index 9f5efbf..a3a4db6 100644
--- a/src/java/de/d2dev/heroquest/editor/EditorResources.java
+++ b/src/java/de/d2dev/heroquest/editor/EditorResources.java
@@ -1,76 +1,78 @@
package de.d2dev.her... | true | true | public EditorResources() throws Exception {
// get our public data storage location
this.publicDataStoragePath = Application.getPublicStoragePath("HeroQuest Editor");
// assets folder 'assets'
this.assetsFolder = new TFile( this.publicDataStoragePath + "/assets" );
this.assestManag... | public EditorResources() throws Exception {
// get our public data storage location
this.publicDataStoragePath = Application.getPublicStoragePath("HeroQuest Editor");
// assets folder 'assets'
this.assetsFolder = new TFile( this.publicDataStoragePath + "/assets" );
if ( this.assets... |
diff --git a/src/de/ueller/midlet/gps/GuiSetupGui.java b/src/de/ueller/midlet/gps/GuiSetupGui.java
index 2bc707e3..fea70724 100644
--- a/src/de/ueller/midlet/gps/GuiSetupGui.java
+++ b/src/de/ueller/midlet/gps/GuiSetupGui.java
@@ -1,145 +1,145 @@
/*
* GpsMid - Copyright (c) 2008 sk750 at users dot sourceforge dot ne... | false | true | public GuiSetupGui(GpsMidDisplayable parent, boolean initialSetup) {
super(Locale.get("guisetupgui.GUIOptions")/*GUI Options*/);
this.parent = parent;
this.initialSetup = initialSetup;
try {
String [] imenu = new String[5];
imenu[0] = Locale.get("guisetupgui.UseIconMenu")/*Use icon menu*/;
imenu[1] = ... | public GuiSetupGui(GpsMidDisplayable parent, boolean initialSetup) {
super(Locale.get("guisetupgui.GUIOptions")/*GUI Options*/);
this.parent = parent;
this.initialSetup = initialSetup;
try {
String [] imenu = new String[5];
imenu[0] = Locale.get("guisetupgui.UseIconMenu")/*Use icon menu*/;
imenu[1] = ... |
diff --git a/CodeGenerator/src/codeGenerator/PlayerSQLGenerator.java b/CodeGenerator/src/codeGenerator/PlayerSQLGenerator.java
index 1f48c0c..e2b628e 100644
--- a/CodeGenerator/src/codeGenerator/PlayerSQLGenerator.java
+++ b/CodeGenerator/src/codeGenerator/PlayerSQLGenerator.java
@@ -1,66 +1,70 @@
package codeGenerato... | true | true | public static void updatePlayers(ArrayList<PlayerJson> players, String path,
String userName, String password)
{
Connection conn;
PreparedStatement stmt;
ResultSet rs;
Collections.sort(players, PlayerJson.COMPARE_BY_ID);
ArrayList<PlayerJson> newPlayers = new ArrayList<PlayerJson>(players);
try
... | public static void updatePlayers(ArrayList<PlayerJson> players, String path,
String userName, String password)
{
Connection conn;
PreparedStatement stmt;
ResultSet rs;
Collections.sort(players, PlayerJson.COMPARE_BY_ID);
ArrayList<PlayerJson> newPlayers = new ArrayList<PlayerJson>(players);
try
... |
diff --git a/src/game/modes/Game.java b/src/game/modes/Game.java
index 5bc2e51..54d3a96 100644
--- a/src/game/modes/Game.java
+++ b/src/game/modes/Game.java
@@ -1,121 +1,121 @@
/*
* Copyright (c) 2009-2011 Daniel Oom, see license.txt for more info.
*/
package game.modes;
import game.CacheTool;
import game.G... | false | true | public void update(final float dt) {
if (!finished) {
elapsed += dt;
final GameTime time = new GameTime(dt, elapsed);
if (level.isFinished()) {
try {
nextLevel();
} catch (final DataException e) {
e.printStackTrace();
System.exit(0);
} catch... | public void update(final float dt) {
if (!finished) {
elapsed += dt;
final GameTime time = new GameTime(dt, elapsed);
if (level.isFinished()) {
try {
nextLevel();
} catch (final DataException e) {
e.printStackTrace();
System.exit(1);
} catch... |
diff --git a/src/org/apache/xerces/impl/XMLNSDocumentScannerImpl.java b/src/org/apache/xerces/impl/XMLNSDocumentScannerImpl.java
index a1a6a6bb9..cc63416fc 100644
--- a/src/org/apache/xerces/impl/XMLNSDocumentScannerImpl.java
+++ b/src/org/apache/xerces/impl/XMLNSDocumentScannerImpl.java
@@ -1,598 +1,598 @@
/*
* The... | false | true | protected boolean scanStartElement()
throws IOException, XNIException {
if (DEBUG_CONTENT_SCANNING) System.out.println(">>> scanStartElementNS()");
String rawname = null;
// Note: namespace processing is on by default
fEntityScanner.scanQName(fElementQName);
if (fBindNam... | protected boolean scanStartElement()
throws IOException, XNIException {
if (DEBUG_CONTENT_SCANNING) System.out.println(">>> scanStartElementNS()");
// Note: namespace processing is on by default
fEntityScanner.scanQName(fElementQName);
// REVISIT - [Q] Why do we need this temp v... |
diff --git a/fap/app/controllers/fap/ResolucionControllerFAP.java b/fap/app/controllers/fap/ResolucionControllerFAP.java
index 2216293d..8cb7d76c 100644
--- a/fap/app/controllers/fap/ResolucionControllerFAP.java
+++ b/fap/app/controllers/fap/ResolucionControllerFAP.java
@@ -1,151 +1,157 @@
package controllers.fap;
... | false | true | public static List<Interesado> getInteresados(Long idResolucion) {
ResolucionFAP resoluciones = ResolucionFAP.findById(idResolucion);
List<LineaResolucionFAP> lineasResolucion = resoluciones.lineasResolucion;
List<Interesado> listaInteresados = new ArrayList<Interesado>();
for (LineaResolucionFAP linea: lin... | public static List<Interesado> getInteresados(Long idResolucion) {
ResolucionFAP resoluciones = ResolucionFAP.findById(idResolucion);
List<LineaResolucionFAP> lineasResolucion = resoluciones.lineasResolucion;
List<Interesado> listaInteresados = new ArrayList<Interesado>();
for (LineaResolucionFAP linea: lin... |
diff --git a/FaceMe_Server/src/com/gatech/faceme/endpoints/NewsEndpoint.java b/FaceMe_Server/src/com/gatech/faceme/endpoints/NewsEndpoint.java
index f4b5fec..91fbd82 100644
--- a/FaceMe_Server/src/com/gatech/faceme/endpoints/NewsEndpoint.java
+++ b/FaceMe_Server/src/com/gatech/faceme/endpoints/NewsEndpoint.java
@@ -1,2... | true | true | public List<News> listNews() {
PersistenceManager mgr = PMF.get().getPersistenceManager();
List<News> result = new ArrayList<News>();
try {
Query query1 = mgr.newQuery(UserFaceEntity.class);
Query query2 = mgr.newQuery(CharacterFaceEntity.class);
Query query3 =mgr.newQuery(PairTableEntity.class);
f... | public List<News> listNews() {
PersistenceManager mgr = PMF.get().getPersistenceManager();
List<News> result = new ArrayList<News>();
try {
Query query1 = mgr.newQuery(UserFaceEntity.class);
Query query2 = mgr.newQuery(CharacterFaceEntity.class);
Query query3 =mgr.newQuery(PairTableEntity.class);
f... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/OpenRepositoryTaskJob.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/OpenRepositoryTaskJob.java
index f2418e1d2..e85deec78 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/OpenRepositoryTaskJob.java
+++ b/org.... | true | true | public IStatus run(IProgressMonitor monitor) {
monitor.beginTask("Opening Remote Task", 10);
TaskRepository repository = TasksUiPlugin.getRepositoryManager().getRepository(
repositoryKind, serverUrl);
if (repository == null) {
PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
pub... | public IStatus run(IProgressMonitor monitor) {
monitor.beginTask("Opening Remote Task", 10);
TaskRepository repository = TasksUiPlugin.getRepositoryManager().getRepository(
repositoryKind, serverUrl);
if (repository == null) {
PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
pub... |
diff --git a/ide/eclipse/registry/org.wso2.developerstudio.eclipse.artifact.registry/src/org/wso2/developerstudio/eclipse/artifact/registry/project/export/RegistryArtifactHandler.java b/ide/eclipse/registry/org.wso2.developerstudio.eclipse.artifact.registry/src/org/wso2/developerstudio/eclipse/artifact/registry/project... | false | true | public List<IResource> exportArtifact(IProject project) throws Exception {
if (project.hasNature(GENERAL_PROJECT_NATURE)) {
NullProgressMonitor nullProgressMonitor = new NullProgressMonitor();
project.build(IncrementalProjectBuilder.FULL_BUILD, nullProgressMonitor);
IFile RegistryResourceFile = project.... | public List<IResource> exportArtifact(IProject project) throws Exception {
if (project.hasNature(GENERAL_PROJECT_NATURE)) {
NullProgressMonitor nullProgressMonitor = new NullProgressMonitor();
project.build(IncrementalProjectBuilder.FULL_BUILD, nullProgressMonitor);
IFile RegistryResourceFile = project.... |
diff --git a/src/net/newfoo/logs/analytics/client/FakeAnalyticsClient.java b/src/net/newfoo/logs/analytics/client/FakeAnalyticsClient.java
index d1b8887..5649cd0 100644
--- a/src/net/newfoo/logs/analytics/client/FakeAnalyticsClient.java
+++ b/src/net/newfoo/logs/analytics/client/FakeAnalyticsClient.java
@@ -1,79 +1,79 ... | true | true | public List<TimeEntry> hits(String start, String end) {
final GregorianCalendar calendar = new GregorianCalendar();
return new ArrayList<TimeEntry>() {{
for (int i = 0; i < 7; i++) {
calendar.roll(Calendar.DAY_OF_YEAR, -7 + i);
add(new TimeEntry(calendar.g... | public List<TimeEntry> hits(String start, String end) {
final GregorianCalendar calendar = new GregorianCalendar();
return new ArrayList<TimeEntry>() {{
for (int i = 0; i < 7; i++) {
calendar.roll(Calendar.DAY_OF_YEAR, -7 + i);
add(new TimeEntry(calendar.g... |
diff --git a/org.eclipse.mylyn.context.tasks.ui/src/org/eclipse/mylyn/internal/context/tasks/ui/TaskContextStore.java b/org.eclipse.mylyn.context.tasks.ui/src/org/eclipse/mylyn/internal/context/tasks/ui/TaskContextStore.java
index fa06b1589..48e674762 100644
--- a/org.eclipse.mylyn.context.tasks.ui/src/org/eclipse/myly... | true | true | public IAdaptable moveContext(ITask sourceTask, ITask targetTask) {
final IInteractionContext result = copyContextInternal(sourceTask, targetTask);
// move task activity
ChangeActivityHandleOperation operation = new ChangeActivityHandleOperation(sourceTask.getHandleIdentifier(),
targetTask.getHandleIdentifi... | public IAdaptable moveContext(ITask sourceTask, ITask targetTask) {
final IInteractionContext result = copyContextInternal(sourceTask, targetTask);
// move task activity
ChangeActivityHandleOperation operation = new ChangeActivityHandleOperation(sourceTask.getHandleIdentifier(),
targetTask.getHandleIdentifi... |
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine/ProfileTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine/ProfileTest.java
index a48f37ae4..954a61425 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/engine/... | true | true | public void validateProfiles(IProfile[] profiles) {
IProfile parent = profiles[0];
IProfile child0 = profiles[1];
IProfile child1 = profiles[2];
IProfile grandchild00 = profiles[3];
IProfile grandchild01 = profiles[4];
IProfile grandchild02 = profiles[5];
IProfile grandchild10 = profiles[6];
IProfile g... | public void validateProfiles(IProfile[] profiles) {
IProfile parent = profiles[0];
IProfile child0 = profiles[1];
IProfile child1 = profiles[2];
IProfile grandchild00 = profiles[3];
IProfile grandchild01 = profiles[4];
IProfile grandchild02 = profiles[5];
IProfile grandchild10 = profiles[6];
IProfile g... |
diff --git a/CSipSimple/src/com/csipsimple/ui/incall/CallProximityManager.java b/CSipSimple/src/com/csipsimple/ui/incall/CallProximityManager.java
index dab0f0a3..e4bad991 100644
--- a/CSipSimple/src/com/csipsimple/ui/incall/CallProximityManager.java
+++ b/CSipSimple/src/com/csipsimple/ui/incall/CallProximityManager.ja... | false | true | CallProximityManager(Context context, ProximityDirector director, ScreenLocker screenLocker){
mContext = context;
mDirector = director;
mScreenLocker = screenLocker;
sensorManager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
powerManager = (Pow... | CallProximityManager(Context context, ProximityDirector director, ScreenLocker screenLocker){
mContext = context;
mDirector = director;
mScreenLocker = screenLocker;
sensorManager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
powerManager = (Pow... |
diff --git a/code/src/com/kpro/algorithm/Conclusion_Simple.java b/code/src/com/kpro/algorithm/Conclusion_Simple.java
index e2bd893..ca8bd2f 100644
--- a/code/src/com/kpro/algorithm/Conclusion_Simple.java
+++ b/code/src/com/kpro/algorithm/Conclusion_Simple.java
@@ -1,72 +1,72 @@
package com.kpro.algorithm;
import ja... | false | true | public Action conclude(PolicyObject np, Iterable<PolicyObject> releventSet)
{
ArrayList<String> approveList = new ArrayList<String>();
ArrayList<String> rejectList = new ArrayList<String>();
double appdistance = 0; //the sum of the inverse distance to all approved PolicyObjects
double rejdistance = 0; //the s... | public Action conclude(PolicyObject np, Iterable<PolicyObject> releventSet)
{
ArrayList<String> approveList = new ArrayList<String>();
ArrayList<String> rejectList = new ArrayList<String>();
double appdistance = 0; //the sum of the inverse distance to all approved PolicyObjects
double rejdistance = 0; //the s... |
diff --git a/src/main/java/org/andidev/webdriverextension/internal/utils/FileUtils.java b/src/main/java/org/andidev/webdriverextension/internal/utils/FileUtils.java
index 15a6bd0..505759c 100644
--- a/src/main/java/org/andidev/webdriverextension/internal/utils/FileUtils.java
+++ b/src/main/java/org/andidev/webdriverext... | true | true | public static void makeExecutable(String path) {
File file = new File(path);
if (file.exists() && !file.canExecute()) {
file.setExecutable(true);
}
}
| public static void makeExecutable(String path) {
if (path == null) {
return;
}
File file = new File(path);
if (file.exists() && !file.canExecute()) {
file.setExecutable(true);
}
}
|
diff --git a/src/edu/common/dynamicextensions/domain/DoubleAttributeTypeInformation.java b/src/edu/common/dynamicextensions/domain/DoubleAttributeTypeInformation.java
index 8523a19f8..4a0477071 100644
--- a/src/edu/common/dynamicextensions/domain/DoubleAttributeTypeInformation.java
+++ b/src/edu/common/dynamicextension... | true | true | public String getFormattedValue(Double value)
{
String formattedValue = "";
if (value != null)
{
DecimalFormat formatDecimal = (DecimalFormat) NumberFormat
.getNumberInstance();
formatDecimal.setParseBigDecimal(true);
formatDecimal.setMaximumFractionDigits(this.decimalPlaces
.intValue());
... | public String getFormattedValue(Double value)
{
String formattedValue = "";
if (value != null)
{
if (this.decimalPlaces.intValue() > 0)
{
DecimalFormat formatDecimal = (DecimalFormat) NumberFormat
.getNumberInstance();
formatDecimal.setParseBigDecimal(true);
formatDecimal.setMaximumF... |
diff --git a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java
index 304b772e..927664c4 100644
--- a/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java
+++ b/OsmAnd/src/net/osmand/plus/routing/RoutingHelper.java
@@ -1,775 +1,775 @@
package net.osmand.plus.... | true | true | public void setCurrentLocation(Location currentLocation) {
if(finalLocation == null || currentLocation == null){
makeUturnWhenPossible = false;
suppressTurnPrompt = false;
turnImminent = 0;
return;
}
boolean calculateRoute = false;
synchronized (this) {
// 0. Route empty or needs to be extend... | public void setCurrentLocation(Location currentLocation) {
if(finalLocation == null || currentLocation == null){
makeUturnWhenPossible = false;
suppressTurnPrompt = false;
turnImminent = 0;
return;
}
boolean calculateRoute = false;
synchronized (this) {
// 0. Route empty or needs to be extend... |
diff --git a/src/main/java/hs/mediasystem/screens/MediaItemFormatter.java b/src/main/java/hs/mediasystem/screens/MediaItemFormatter.java
index cdc5347b..c7a82f4e 100644
--- a/src/main/java/hs/mediasystem/screens/MediaItemFormatter.java
+++ b/src/main/java/hs/mediasystem/screens/MediaItemFormatter.java
@@ -1,61 +1,61 @@... | true | true | public static synchronized StringBinding releaseTimeBinding(final ObjectBinding<MediaItem> item) {
return new StringBinding() {
{
item.addListener(new ChangeListener<MediaItem>() {
@Override
public void changed(ObservableValue<? extends MediaItem> observable, MediaItem oldValue, ... | public static synchronized StringBinding releaseTimeBinding(final ObjectBinding<MediaItem> item) {
return new StringBinding() {
{
item.addListener(new ChangeListener<MediaItem>() {
@Override
public void changed(ObservableValue<? extends MediaItem> observable, MediaItem oldValue, ... |
diff --git a/components/base/base-core/src/main/java/org/torquebox/interp/core/RubyComponentResolver.java b/components/base/base-core/src/main/java/org/torquebox/interp/core/RubyComponentResolver.java
index 0a5e8dede..3c2b640c7 100644
--- a/components/base/base-core/src/main/java/org/torquebox/interp/core/RubyComponent... | true | true | public IRubyObject resolve(Ruby ruby) throws Exception {
log.debug( "resolve(" + ruby + ")" );
synchronized (ruby) {
log.debug( "Got exclusive access: " + ruby );
ruby.getLoadService().require( "rubygems" );
ruby.getLoadService().require( "torquebox-base" );
... | public IRubyObject resolve(Ruby ruby) throws Exception {
log.debug( "resolve(" + ruby + ")" );
synchronized (ruby) {
log.debug( "Got exclusive access: " + ruby );
ruby.getLoadService().require( "rubygems" );
ruby.getLoadService().require( "torquebox-base" );
... |
diff --git a/ide/plugins/csk/src/main/java/org/overture/ide/plugins/csk/internal/WorkbenchPreferencePageCsk.java b/ide/plugins/csk/src/main/java/org/overture/ide/plugins/csk/internal/WorkbenchPreferencePageCsk.java
index 3907066283..6f5dd58ae6 100644
--- a/ide/plugins/csk/src/main/java/org/overture/ide/plugins/csk/inte... | false | true | protected Control createContents(Composite parent) {
Composite top = new Composite(parent, SWT.LEFT);
// Sets the layout data for the top composite's
// place in its parent's layout.
top.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
// Sets the layout for the top composite's
// children to pop... | protected Control createContents(Composite parent) {
Composite top = new Composite(parent, SWT.LEFT);
// Sets the layout data for the top composite's
// place in its parent's layout.
top.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
// Sets the layout for the top composite's
// children to pop... |
diff --git a/src/main/java/net/jeremybrooks/suprsetr/SetListRenderer.java b/src/main/java/net/jeremybrooks/suprsetr/SetListRenderer.java
index e18f008..f2a0f94 100644
--- a/src/main/java/net/jeremybrooks/suprsetr/SetListRenderer.java
+++ b/src/main/java/net/jeremybrooks/suprsetr/SetListRenderer.java
@@ -1,122 +1,122 @@... | true | true | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
SSPhotoset def;
SetListCell cell;
if (!(value instanceof SSPhotoset)) {
cell = new SetListCell();
cell.setTitle(resourceBundle.getString("SetListRenderer.error.wrongclass"));
}... | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
SSPhotoset def;
SetListCell cell;
if (!(value instanceof SSPhotoset)) {
cell = new SetListCell();
cell.setTitle(resourceBundle.getString("SetListRenderer.error.wrongclass"));
}... |
diff --git a/jodd-db/src/test/java/jodd/db/oom/DbOomTest.java b/jodd-db/src/test/java/jodd/db/oom/DbOomTest.java
index da2c6a343..c89792ccc 100644
--- a/jodd-db/src/test/java/jodd/db/oom/DbOomTest.java
+++ b/jodd-db/src/test/java/jodd/db/oom/DbOomTest.java
@@ -1,796 +1,796 @@
// Copyright (c) 2003-2014, Jodd Team (jod... | false | true | public void testOrm() {
DbSession session = new DbThreadSession(cp);
// ---------------------------------------------------------------- insert
assertEquals(1, DbEntitySql.insert(new Girl(1, "Anna", "seduction")).query().executeUpdateAndClose());
assertEquals(1, DbEntitySql.insert(new Girl(2, "Sandra", "spyi... | public void testOrm() {
DbSession session = new DbThreadSession(cp);
// ---------------------------------------------------------------- insert
assertEquals(1, DbEntitySql.insert(new Girl(1, "Anna", "seduction")).query().executeUpdateAndClose());
assertEquals(1, DbEntitySql.insert(new Girl(2, "Sandra", "spyi... |
diff --git a/src/main/java/org/cloudifysource/quality/iTests/framework/utils/Bootstrapper.java b/src/main/java/org/cloudifysource/quality/iTests/framework/utils/Bootstrapper.java
index 8ed43dc7..22b6fe80 100644
--- a/src/main/java/org/cloudifysource/quality/iTests/framework/utils/Bootstrapper.java
+++ b/src/main/java/o... | true | true | public ProcessResult bootstrap() throws Exception {
String bootstrapCommand = null;
String provider = null;
if (this instanceof LocalCloudBootstrapper) {
bootstrapCommand = "bootstrap-localcloud";
provider = "";
} else if (this instanceof CloudBootstrapper) {
bootstrapCommand = "bootstrap-cloud";
... | public ProcessResult bootstrap() throws Exception {
String bootstrapCommand = null;
String provider = null;
if (this instanceof LocalCloudBootstrapper) {
bootstrapCommand = "bootstrap-localcloud";
provider = "";
} else if (this instanceof CloudBootstrapper) {
bootstrapCommand = "bootstrap-cloud";
... |
diff --git a/Twist/src/com/secondhand/model/Level.java b/Twist/src/com/secondhand/model/Level.java
index f3dbde83..9c867c23 100644
--- a/Twist/src/com/secondhand/model/Level.java
+++ b/Twist/src/com/secondhand/model/Level.java
@@ -1,190 +1,188 @@
package com.secondhand.model;
import java.util.List;
import org.an... | true | true | public void moveEntities(Vector2 v) {
// pBody.applyLinearImpulse(new Vector2(100,100),new
// Vector2(sh.getX(),sh.getY()));
// By writing the values of the body position I can see that we have
// movement, somewhere we need to set the camera to follow the player
// TODO: wait, why is this necessary?
if ... | public void moveEntities(Vector2 v) {
// pBody.applyLinearImpulse(new Vector2(100,100),new
// Vector2(sh.getX(),sh.getY()));
// TODO: wait, why is this necessary?
if (v.x + v.y != 0) {
Vector2 movementVector = new Vector2(v.x - player.getPosition().x, v.y
- player.getPosition().y);
// scale the l... |
diff --git a/tests/src/org/hornetq/tests/integration/client/SessionCreateConsumerTest.java b/tests/src/org/hornetq/tests/integration/client/SessionCreateConsumerTest.java
index f3d598d10..837f1fd2b 100644
--- a/tests/src/org/hornetq/tests/integration/client/SessionCreateConsumerTest.java
+++ b/tests/src/org/hornetq/tes... | true | true | public void testCreateConsumerWithInvalidFilter() throws Exception
{
HornetQServer service = createServer(false);
try
{
service.start();
ClientSessionFactory cf = createInVMFactory();
cf.setProducerMaxRate(99);
cf.setBlockOnNonDurableSend(true);
cf.se... | public void testCreateConsumerWithInvalidFilter() throws Exception
{
HornetQServer service = createServer(false);
try
{
service.start();
ClientSessionFactory cf = createInVMFactory();
cf.setProducerMaxRate(99);
cf.setBlockOnNonDurableSend(true);
cf.se... |
diff --git a/src/minecraft/net/minecraft/src/MapItemRenderer.java b/src/minecraft/net/minecraft/src/MapItemRenderer.java
index 4b20b967..a7a28c1f 100644
--- a/src/minecraft/net/minecraft/src/MapItemRenderer.java
+++ b/src/minecraft/net/minecraft/src/MapItemRenderer.java
@@ -1,130 +1,130 @@
package net.minecraft.src;
... | true | true | public void renderMap(EntityPlayer var1, RenderEngine var2, MapData var3) {
for(int var4 = 0; var4 < 16384 /*GL_LIGHT0*/; ++var4) {
byte var5 = var3.colors[var4];
if(var5 / 4 == 0) {
this.intArray[var4] = (var4 + var4 / 128 & 1) * 8 + 16 << 24;
} else {
int var6 = MapColor.mapColorArray[var5 / 4].co... | public void renderMap(EntityPlayer var1, RenderEngine var2, MapData var3) {
for(int var4 = 0; var4 < 16384 /*GL_LIGHT0*/; ++var4) {
byte var5 = var3.colors[var4];
if(var5 / 4 == 0) {
this.intArray[var4] = (var4 + var4 / 128 & 1) * 8 + 16 << 24;
} else {
int var6 = MapColor.mapColorArray[var5 / 4].co... |
diff --git a/src/main/java/org/testng/junit/JUnit4TestRunner.java b/src/main/java/org/testng/junit/JUnit4TestRunner.java
index 63878da6..9d7fa6db 100644
--- a/src/main/java/org/testng/junit/JUnit4TestRunner.java
+++ b/src/main/java/org/testng/junit/JUnit4TestRunner.java
@@ -1,209 +1,211 @@
package org.testng.junit;
... | true | true | public Result start(final Class testCase, final String... methods) {
try {
JUnitCore core = new JUnitCore();
core.addListener(new RL());
Request r = Request.aClass(testCase);
return core.run(r.filterWith(new Filter() {
@Override
... | public Result start(final Class testCase, final String... methods) {
try {
JUnitCore core = new JUnitCore();
core.addListener(new RL());
Request r = Request.aClass(testCase);
return core.run(r.filterWith(new Filter() {
@Override
... |
diff --git a/src/com/fsck/k9/mail/store/LocalStore.java b/src/com/fsck/k9/mail/store/LocalStore.java
index 9647e8c..f8438e7 100644
--- a/src/com/fsck/k9/mail/store/LocalStore.java
+++ b/src/com/fsck/k9/mail/store/LocalStore.java
@@ -1,6438 +1,6438 @@
package com.fsck.k9.mail.store;
import java.io.ByteArrayInputSt... | true | true | private void saveAttachment(final long messageId, final Part attachment, final boolean saveAsNew)
throws IOException, MessagingException
{
try
{
execute(true, new DbCallback<Void>()
{
@Override
public... | private void saveAttachment(final long messageId, final Part attachment, final boolean saveAsNew)
throws IOException, MessagingException
{
try
{
execute(true, new DbCallback<Void>()
{
@Override
public... |
diff --git a/src/main/java/com/github/peter200lx/toolbelt/AbstractTool.java b/src/main/java/com/github/peter200lx/toolbelt/AbstractTool.java
index e3bf7f2..57096cd 100644
--- a/src/main/java/com/github/peter200lx/toolbelt/AbstractTool.java
+++ b/src/main/java/com/github/peter200lx/toolbelt/AbstractTool.java
@@ -1,1311 ... | true | true | protected String data2Str(MaterialData b) {
byte data = b.getData();
switch (b.getItemType()) {
case LOG:
String species = "";
if (((Tree) b).getSpecies() != null) {
species = ((Tree) b).getSpecies().toString();
}
switch (data & 0x0C) {
case 0x0:
return species + " is Vertical";
case 0x... | protected String data2Str(MaterialData b) {
byte data = b.getData();
switch (b.getItemType()) {
case LOG:
String species = "";
if (((Tree) b).getSpecies() != null) {
species = ((Tree) b).getSpecies().toString();
}
switch (data & 0x0C) {
case 0x0:
return species + " is Vertical";
case 0x... |
diff --git a/src/com/tulskiy/musique/gui/ControlPanel.java b/src/com/tulskiy/musique/gui/ControlPanel.java
index 686bbe0..dc3aaa9 100755
--- a/src/com/tulskiy/musique/gui/ControlPanel.java
+++ b/src/com/tulskiy/musique/gui/ControlPanel.java
@@ -1,421 +1,421 @@
/*
* Copyright (c) 2008, 2009, 2010, 2011 Denis Tulskiy
... | false | true | private void initComponents() {
javax.swing.JToolBar jToolBar1 = new javax.swing.JToolBar();
stopButton = new javax.swing.JButton();
playButton = new javax.swing.JButton();
pauseButton = new javax.swing.JToggleButton();
prevButton = new javax.swing.JButton();
nextBut... | private void initComponents() {
javax.swing.JToolBar jToolBar1 = new javax.swing.JToolBar();
stopButton = new javax.swing.JButton();
playButton = new javax.swing.JButton();
pauseButton = new javax.swing.JToggleButton();
prevButton = new javax.swing.JButton();
nextBut... |
diff --git a/src/java/org/jivesoftware/sparkimpl/plugin/gateways/GatewayPlugin.java b/src/java/org/jivesoftware/sparkimpl/plugin/gateways/GatewayPlugin.java
index cdfeb1e5..06b050f6 100644
--- a/src/java/org/jivesoftware/sparkimpl/plugin/gateways/GatewayPlugin.java
+++ b/src/java/org/jivesoftware/sparkimpl/plugin/gatew... | true | true | private void registerPresences() {
SparkManager.getConnection().addPacketListener(new PacketListener() {
public void processPacket(Packet packet) {
Presence presence = (Presence)packet;
Transport transport = TransportManager.getTransport(packet.getFrom());
... | private void registerPresences() {
SparkManager.getConnection().addPacketListener(new PacketListener() {
public void processPacket(Packet packet) {
Presence presence = (Presence)packet;
Transport transport = TransportManager.getTransport(packet.getFrom());
... |
diff --git a/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/editors/scanners/DRLScanner.java b/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/editors/scanners/DRLScanner.java
index af15f7803..ca75600f3 100644
--- a/drools-eclipse/drools-eclipse-plugin/src/main/java/org/droo... | false | true | public DRLScanner() {
IToken keyword = new Token(new TextAttribute(KEYWORD_COLOR, null, SWT.BOLD));
IToken comment= new Token(new TextAttribute(COMMENT_COLOR));
IToken string = new Token(new TextAttribute(STRING_COLOR));
List rules = new ArrayList();
rules.add(new EndOfLineRule("//", comment));
... | public DRLScanner() {
IToken keyword = new Token(new TextAttribute(KEYWORD_COLOR, null, SWT.BOLD));
IToken comment= new Token(new TextAttribute(COMMENT_COLOR));
IToken string = new Token(new TextAttribute(STRING_COLOR));
IToken other = new Token(null);
List rules = new ArrayList();
rules.add(new E... |
diff --git a/src/org/adblockplus/android/Proxy.java b/src/org/adblockplus/android/Proxy.java
index 1e41ed8..a3c3b56 100755
--- a/src/org/adblockplus/android/Proxy.java
+++ b/src/org/adblockplus/android/Proxy.java
@@ -1,328 +1,328 @@
package org.adblockplus.android;
import java.io.BufferedInputStream;
import java.i... | true | true | private void streamHTTPData(InputStream in, OutputStream out, StringBuffer url, boolean waitForDisconnect)
{
StringBuffer header = new StringBuffer();
String data;
int pos;
int contentLength = -1;
int byteCount = 0;
boolean hostKnown = false;
boolean hostHeader = false;
// get the first line of the h... | private void streamHTTPData(InputStream in, OutputStream out, StringBuffer url, boolean waitForDisconnect)
{
StringBuffer header = new StringBuffer();
String data;
int pos;
int contentLength = -1;
int byteCount = 0;
boolean hostKnown = false;
boolean hostHeader = false;
// get the first line of the h... |
diff --git a/src/DynamicWebBrowser/protocols/ProtocolFinder.java b/src/DynamicWebBrowser/protocols/ProtocolFinder.java
index 0e609e0..0fafb42 100644
--- a/src/DynamicWebBrowser/protocols/ProtocolFinder.java
+++ b/src/DynamicWebBrowser/protocols/ProtocolFinder.java
@@ -1,63 +1,63 @@
package DynamicWebBrowser.protocols;... | false | true | public Protocol findProtocol(String protocolName) {
Protocol protocol = null;
try {
if (knownProtocols.containsKey(protocolName)) {
protocol = (Protocol) knownProtocols.get(protocolName).newInstance();
} else {
Class protocolClass = cl... | public Protocol findProtocol(String protocolName) {
Protocol protocol = null;
try {
if (knownProtocols.containsKey(protocolName)) {
protocol = (Protocol) knownProtocols.get(protocolName).newInstance();
} else {
Class protocolClass = cl... |
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ConfigureProjectWizardMainPage.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/wizards/ConfigureProjectWizardMainPage.java
index e84411b54..a7bcc7100 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/intern... | true | true | public void createControl(Composite parent) {
Composite composite = new Composite(parent, SWT.NULL);
composite.setLayout(new GridLayout());
composite.setLayoutData(new GridData(GridData.FILL_BOTH));
setControl(composite);
// set F1 help
WorkbenchHelp.setHelp(composite, IHelpContextIds.SHARE_PROJECT_PAG... | public void createControl(Composite parent) {
Composite composite = new Composite(parent, SWT.NULL);
composite.setLayout(new GridLayout());
composite.setLayoutData(new GridData(GridData.FILL_BOTH));
setControl(composite);
// set F1 help
WorkbenchHelp.setHelp(composite, IHelpContextIds.SHARE_PROJECT_PAG... |
diff --git a/formidable-client/src/com/example/formidable/FormidableActivity.java b/formidable-client/src/com/example/formidable/FormidableActivity.java
index f5ec13f..c5a36b4 100644
--- a/formidable-client/src/com/example/formidable/FormidableActivity.java
+++ b/formidable-client/src/com/example/formidable/FormidableA... | false | true | public void addEvent(String event) {
try {
JSONObject eventJson = new JSONObject(event);
String formId = eventJson.optString("formId");
String currentInstanceId = eventJson.optString("currentInstanceId");
boolean isComplete = eventJson.optBoolean("asComplete");
System.out.println(Stri... | public void addEvent(String event) {
try {
JSONObject eventJson = new JSONObject(event);
String formId = eventJson.optString("form_id");
String currentInstanceId = eventJson.optString("currentInstanceId");
boolean isComplete = eventJson.optBoolean("asComplete");
System.out.println(Str... |
diff --git a/src/to/joe/j2mc/teleport/command/SpawnCommand.java b/src/to/joe/j2mc/teleport/command/SpawnCommand.java
index e0e7c4d..1936698 100644
--- a/src/to/joe/j2mc/teleport/command/SpawnCommand.java
+++ b/src/to/joe/j2mc/teleport/command/SpawnCommand.java
@@ -1,39 +1,39 @@
package to.joe.j2mc.teleport.command;
... | true | true | public void exec(CommandSender sender, String commandName, String[] args, Player player, boolean isPlayer) {
if (isPlayer && (!player.hasPermission("j2mc.teleport.spawn.other") || (args.length < 1))) {
player.sendMessage(ChatColor.RED + "WHEEEEEEEEEEEEEEE");
((J2MC_Teleport) this.plu... | public void exec(CommandSender sender, String commandName, String[] args, Player player, boolean isPlayer) {
if (isPlayer && (!player.hasPermission("j2mc.teleport.spawn.send") || (args.length < 1))) {
player.sendMessage(ChatColor.RED + "WHEEEEEEEEEEEEEEE");
((J2MC_Teleport) this.plug... |
diff --git a/util/src/main/java/com/ning/billing/util/dao/AuditLogMapper.java b/util/src/main/java/com/ning/billing/util/dao/AuditLogMapper.java
index 89ca281aa..188ea71cb 100644
--- a/util/src/main/java/com/ning/billing/util/dao/AuditLogMapper.java
+++ b/util/src/main/java/com/ning/billing/util/dao/AuditLogMapper.java... | false | true | public AuditLog map(final int index, final ResultSet r, final StatementContext ctx) throws SQLException {
final String tableName = r.getString("table_name");
final long recordId = r.getLong("record_id");
final String changeType = r.getString("change_type");
final DateTime changeDate ... | public AuditLog map(final int index, final ResultSet r, final StatementContext ctx) throws SQLException {
final String tableName = r.getString("table_name");
final long recordId = r.getLong("record_id");
final String changeType = r.getString("change_type");
final DateTime changeDate ... |
diff --git a/src/menu/MainFrame.java b/src/menu/MainFrame.java
index 1191245..ddb5d10 100755
--- a/src/menu/MainFrame.java
+++ b/src/menu/MainFrame.java
@@ -1,169 +1,172 @@
package menu;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.event.WindowEvent;
import java.awt.even... | false | true | public MainFrame() {
// create and start audio thread
setupAudio();
// start other stuff
frameStack = new Stack<JPanel>();
frameStack.add(new MainMenuPanel(this));
this.add(frameStack.peek());
this.setResizable(false);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
GraphicsEnvironment ge = G... | public MainFrame() {
// create and start audio thread
setupAudio();
// start other stuff
frameStack = new Stack<JPanel>();
frameStack.add(new MainMenuPanel(this));
this.add(frameStack.peek());
this.setResizable(false);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
GraphicsEnvironment ge = G... |
diff --git a/src/prj/httpApplication/app/WebApp.java b/src/prj/httpApplication/app/WebApp.java
index 61d067a..f5646c9 100644
--- a/src/prj/httpApplication/app/WebApp.java
+++ b/src/prj/httpApplication/app/WebApp.java
@@ -1,86 +1,87 @@
package prj.httpApplication.app;
import org.slf4j.Logger;
import org.slf4j.Logge... | true | true | public void clientConnected(final HTTPSocket httpSocket)
{
final ScheduledFuture<?> timeoutFuture = setTimeoutForSocket(httpSocket);
httpSocket.addListener(new HTTPSocketListener()
{
@Override
public void onRequestArrived(final RawHTTPRequest request)
... | public void clientConnected(final HTTPSocket httpSocket)
{
final ScheduledFuture<?> timeoutFuture = setTimeoutForSocket(httpSocket);
httpSocket.addListener(new HTTPSocketListener()
{
@Override
public void onRequestArrived(final RawHTTPRequest request)
... |
diff --git a/jcr/jackrabbit-server/src/main/java/org/apache/sling/jcr/jackrabbit/server/Activator.java b/jcr/jackrabbit-server/src/main/java/org/apache/sling/jcr/jackrabbit/server/Activator.java
index bcd830d852..a63849d62b 100644
--- a/jcr/jackrabbit-server/src/main/java/org/apache/sling/jcr/jackrabbit/server/Activato... | true | true | public void start(BundleContext context) throws Exception {
// check the name of the default context, nothing to do if none
String slingContext = context.getProperty(SLING_CONTEXT_DEFAULT);
if (slingContext == null) {
return;
}
ServiceReference sr = context.getS... | public void start(BundleContext context) throws Exception {
// check the name of the default context, nothing to do if none
String slingContext = context.getProperty(SLING_CONTEXT_DEFAULT);
if (slingContext == null) {
return;
}
ServiceReference sr = context.getS... |
diff --git a/src/main/java/kembe/stream/EventStreamFork.java b/src/main/java/kembe/stream/EventStreamFork.java
index 23dd882..445fce7 100644
--- a/src/main/java/kembe/stream/EventStreamFork.java
+++ b/src/main/java/kembe/stream/EventStreamFork.java
@@ -1,64 +1,65 @@
package kembe.stream;
import fj.Effect;
import f... | true | true | private EventStream<A> buildStream(){
EventStream<A> es = new EventStream<A>() {
@Override public OpenEventStream<A> open(EventStreamSubscriber<A> subscriber) {
subscribers.add( subscriber );
if(opened.incrementAndGet()==count.get()){
OpenEvent... | private EventStream<A> buildStream(){
EventStream<A> es = new EventStream<A>() {
@Override public OpenEventStream<A> open(EventStreamSubscriber<A> subscriber) {
subscribers.add( subscriber );
if(opened.incrementAndGet()==count.get()){
OpenEvent... |
diff --git a/core/src/main/java/org/jledit/command/editor/GoToCommand.java b/core/src/main/java/org/jledit/command/editor/GoToCommand.java
index 64118ea..8987a5b 100644
--- a/core/src/main/java/org/jledit/command/editor/GoToCommand.java
+++ b/core/src/main/java/org/jledit/command/editor/GoToCommand.java
@@ -1,74 +1,73 ... | false | true | public void execute() {
if (line == 0 || column == 0) {
try {
int targetLine = 1;
int targetColumn = 1;
String[] coords = editor.readLine("Go to:").split(",");
if (coords.length == 1) {
targetLine = Integer.parse... | public void execute() {
if (line == 0 || column == 0) {
try {
int targetLine = 1;
int targetColumn = 1;
String[] coords = editor.readLine("Go to:").split(",");
if (coords.length == 1) {
targetLine = Integer.parse... |
diff --git a/chapter12/chapter12-samples/src/test/java/org/agoncal/book/javaee7/chapter12/ex05/JSonParsing05Test.java b/chapter12/chapter12-samples/src/test/java/org/agoncal/book/javaee7/chapter12/ex05/JSonParsing05Test.java
index cfdea1f..94e4079 100644
--- a/chapter12/chapter12-samples/src/test/java/org/agoncal/book/... | true | true | public void shouldBuildJSon() throws Exception {
JsonObject jsonObject = JSonParsing99.buildJSon();
JsonValue value = jsonObject.get("id");
assertEquals(JsonValue.ValueType.STRING, value.getValueType());
assertEquals("1234", value.toString());
StringWriter orderJSON = new S... | public void shouldBuildJSon() throws Exception {
JsonObject jsonObject = JSonParsing99.buildJSon();
JsonValue value = jsonObject.get("id");
assertEquals(JsonValue.ValueType.STRING, value.getValueType());
assertEquals("\"1234\"", value.toString());
StringWriter orderJSON = n... |
diff --git a/WheelGo-ejb/src/java/ejb/LoginBean.java b/WheelGo-ejb/src/java/ejb/LoginBean.java
index 27abf9e..369b4c2 100644
--- a/WheelGo-ejb/src/java/ejb/LoginBean.java
+++ b/WheelGo-ejb/src/java/ejb/LoginBean.java
@@ -1,49 +1,56 @@
/*
* To change this template, choose Tools | Templates
* and open the template i... | true | true | private void init() {
user = (User)em.createNamedQuery("getDefaultUser").getSingleResult();
if(user == null) {
throw new IllegalStateException("Neni udany zadny uzivatel!!!");
}
}
| private void init() {
try
{
user = (User)em.createNamedQuery("getDefaultUser").getSingleResult();
}
catch (Exception ex)
{
throw new IllegalStateException("Neni udany zadny uzivatel!!!");
}
if(user == null) {
throw new Illeg... |
diff --git a/src/pxchat/util/Config.java b/src/pxchat/util/Config.java
index 35673de..d3330c7 100644
--- a/src/pxchat/util/Config.java
+++ b/src/pxchat/util/Config.java
@@ -1,353 +1,353 @@
package pxchat.util;
import java.io.File;
import java.io.FileOutputStream;
import java.util.HashMap;
import java.util.Vector... | false | true | public static void init(String fileName) {
config.clear();
profiles.clear();
config.put("defaultProfile", "default");
config.put("masterServer","http://localhost/servers.php?&action=list");
file = new File(fileName);
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factor... | public static void init(String fileName) {
config.clear();
profiles.clear();
config.put("defaultProfile", "default");
config.put("masterServer","http://localhost/servers.php?&action=list");
file = new File(fileName);
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factor... |
diff --git a/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/diff/DefaultDiffEngine.java b/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/diff/DefaultDiffEngine.java
index de8324825..bb44bd926 100644
--- a/plugins/org.eclipse.emf.compare/src/org/eclipse/emf/compare/diff/DefaultDiffEngine.java
+... | true | true | protected void computeDifferences(Match match, EReference reference, boolean checkOrdering) {
// This will only be used for iteration, once. use the original list
final Iterable<EObject> leftValues = Iterables.filter(getValue(match.getLeft(), reference),
EObject.class);
/*
* These two will be used mainly ... | protected void computeDifferences(Match match, EReference reference, boolean checkOrdering) {
// This will only be used for iteration, once. use the original list
final Iterable<EObject> leftValues = Iterables.filter(getValue(match.getLeft(), reference),
EObject.class);
/*
* These two will be used mainly ... |
diff --git a/modules/library/coverage/src/test/java/org/geotools/image/io/GridCoverageProgressAdapterTest.java b/modules/library/coverage/src/test/java/org/geotools/image/io/GridCoverageProgressAdapterTest.java
index 84a85b849..8967a384b 100644
--- a/modules/library/coverage/src/test/java/org/geotools/image/io/GridCove... | true | true | public void testInReadingCanceled() throws Exception{
final DefaultProgressListener adaptee= new DefaultProgressListener();
final ProgressListener myListener= new ProgressListener() {
@Override
public void warningOccurred(String source, String location, String wa... | public void testInReadingCanceled() throws Exception{
final DefaultProgressListener adaptee= new DefaultProgressListener();
final ProgressListener myListener= new ProgressListener() {
@Override
public void warningOccurred(String source, String location, String wa... |
diff --git a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/javascript/typeinfo/RLocalType.java b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/javascript/typeinfo/RLocalType.java
index 6c73d841..785a72d2 100644
--- a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/javascrip... | false | true | private IValueReference getChildFromDeclaredTypes(String name,
JSTypeSet declaredTypes, HashSet<IRType> set) {
for (IRType irType : declaredTypes) {
if (irType instanceof RLocalType && set.add(irType)) {
IValueReference declaredValue = ((RLocalType) irType)
.getValue();
if (declaredValue.getDirec... | private IValueReference getChildFromDeclaredTypes(String name,
JSTypeSet declaredTypes, HashSet<IRType> set) {
for (IRType irType : declaredTypes) {
if (irType instanceof RLocalType && set.add(irType)) {
IValueReference declaredValue = ((RLocalType) irType)
.getValue();
if (declaredValue.getDirec... |
diff --git a/src/main/java/ru/urbancamper/audiobookmarker/text/LongestSubsequenceFinder.java b/src/main/java/ru/urbancamper/audiobookmarker/text/LongestSubsequenceFinder.java
index c073221..7b0cfda 100644
--- a/src/main/java/ru/urbancamper/audiobookmarker/text/LongestSubsequenceFinder.java
+++ b/src/main/java/ru/urbanc... | true | true | private Integer subproblemLongestSubsequenceWithDistanceCorrection(
Integer[] fullArray,
Integer[] subArray,
Integer fullArrayBeginIndex,
Integer subArrayBeginIndex,
Integer[][] subsequenceLengths,
Boolean[][] equalsElementsFlag,
In... | private Integer subproblemLongestSubsequenceWithDistanceCorrection(
Integer[] fullArray,
Integer[] subArray,
Integer fullArrayBeginIndex,
Integer subArrayBeginIndex,
Integer[][] subsequenceLengths,
Boolean[][] equalsElementsFlag,
In... |
diff --git a/proxy/src/main/java/org/fedoraproject/candlepin/pinsetter/tasks/RefreshPoolsJob.java b/proxy/src/main/java/org/fedoraproject/candlepin/pinsetter/tasks/RefreshPoolsJob.java
index 1584787e8..b1c34549d 100644
--- a/proxy/src/main/java/org/fedoraproject/candlepin/pinsetter/tasks/RefreshPoolsJob.java
+++ b/prox... | true | true | public void execute(JobExecutionContext context) throws JobExecutionException {
String ownerKey = context.getMergedJobDataMap().getString(JobStatus.OWNER_KEY);
Owner owner = ownerCurator.lookupByKey(ownerKey);
// Assume that we verified the request in the resource layer:
Principal s... | public void execute(JobExecutionContext context) throws JobExecutionException {
String ownerKey = context.getMergedJobDataMap().getString(JobStatus.OWNER_KEY);
Owner owner = ownerCurator.lookupByKey(ownerKey);
if (owner == null) {
context.setResult("Nothing to do. Owner no longer... |
diff --git a/plugins/basic-crawler/src/test/java/org/apache/any23/cli/CrawlerTest.java b/plugins/basic-crawler/src/test/java/org/apache/any23/cli/CrawlerTest.java
index bf66295e..24393367 100644
--- a/plugins/basic-crawler/src/test/java/org/apache/any23/cli/CrawlerTest.java
+++ b/plugins/basic-crawler/src/test/java/org... | true | true | public void testCLI() throws IOException, RDFHandlerException, RDFParseException {
assumeOnlineAllowed();
final File outFile = File.createTempFile("crawler-test", ".nq", tempDirectory);
outFile.delete();
logger.info( "Outfile: " + outFile.getAbsolutePath() );
final Future<?... | public void testCLI() throws IOException, RDFHandlerException, RDFParseException {
assumeOnlineAllowed();
final File outFile = File.createTempFile("crawler-test", ".nq", tempDirectory);
outFile.delete();
logger.info( "Outfile: " + outFile.getAbsolutePath() );
final Future<?... |
diff --git a/src/com/nadmm/airports/RunwayDetailsActivity.java b/src/com/nadmm/airports/RunwayDetailsActivity.java
index cd6def24..0b57cfd1 100644
--- a/src/com/nadmm/airports/RunwayDetailsActivity.java
+++ b/src/com/nadmm/airports/RunwayDetailsActivity.java
@@ -1,574 +1,574 @@
/*
* Airports for Android
*
* Copy... | false | true | protected void showReciprocalEndInformation( Cursor[] result ) {
Cursor apt = result[ 0 ];
Cursor rwy = result[ 1 ];
String runwayId = rwy.getString( rwy.getColumnIndex( Runways.RECIPROCAL_END_ID ) );
TextView tv = (TextView) mMainLayout.findViewById( R.id.rwy_reciprocal_end_label )... | protected void showReciprocalEndInformation( Cursor[] result ) {
Cursor apt = result[ 0 ];
Cursor rwy = result[ 1 ];
String runwayId = rwy.getString( rwy.getColumnIndex( Runways.RECIPROCAL_END_ID ) );
TextView tv = (TextView) mMainLayout.findViewById( R.id.rwy_reciprocal_end_label )... |
diff --git a/jbpm-bpmn2/src/test/java/org/jbpm/bpmn2/SimplePersistenceBPMNProcessTest.java b/jbpm-bpmn2/src/test/java/org/jbpm/bpmn2/SimplePersistenceBPMNProcessTest.java
index a054c2ecd..f11782954 100644
--- a/jbpm-bpmn2/src/test/java/org/jbpm/bpmn2/SimplePersistenceBPMNProcessTest.java
+++ b/jbpm-bpmn2/src/test/java/... | true | true | public void testSignalBoundaryEventOnTask() throws Exception {
KnowledgeBase kbase = createKnowledgeBase("BPMN2-BoundarySignalEventOnTaskbpmn2.bpmn");
StatefulKnowledgeSession ksession = createKnowledgeSession(kbase);
ksession.getWorkItemManager().registerWorkItemHandler("Human Task",
... | public void testSignalBoundaryEventOnTask() throws Exception {
KnowledgeBase kbase = createKnowledgeBase("BPMN2-BoundarySignalEventOnTaskbpmn2.bpmn");
StatefulKnowledgeSession ksession = createKnowledgeSession(kbase);
ksession.getWorkItemManager().registerWorkItemHandler("Human Task",
... |
diff --git a/code/src/gui.java b/code/src/gui.java
index bc2ab09..0227d71 100644
--- a/code/src/gui.java
+++ b/code/src/gui.java
@@ -1,227 +1,227 @@
import java.awt.Color;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.... | true | true | public void mouseClicked(MouseEvent e){
//wordt uitgevoerd als er op de login button wordt gedrukt
if(e.getSource()==login){
inlog.setVisible(false);
login.setVisible(false);
container.remove(inlog);
container.remove(login);
username = getNaamInvoer();
if(!User.userExists(username))
... | public void mouseClicked(MouseEvent e){
//wordt uitgevoerd als er op de login button wordt gedrukt
if(e.getSource()==login){
inlog.setVisible(false);
login.setVisible(false);
container.remove(inlog);
container.remove(login);
username = getNaamInvoer();
if(!User.userExists(username))
... |
diff --git a/wayback-core/src/test/java/org/archive/wayback/accesscontrol/robotstxt/RobotExclusionFilterTest.java b/wayback-core/src/test/java/org/archive/wayback/accesscontrol/robotstxt/RobotExclusionFilterTest.java
index 2ecbdcd0b..43d513b5a 100644
--- a/wayback-core/src/test/java/org/archive/wayback/accesscontrol/ro... | false | true | public void testSearchResultToRobotUrlStrings() {
RobotExclusionFilter f = new RobotExclusionFilter(null,"",100);
String test1[] = {"www.foo.com","foo.com"};
compareListTo(f.searchResultToRobotUrlStrings("www.foo.com", HTTP_PREFIX),test1);
String test2[] = {"foo.com","www.foo.com"};
compareListTo(f.searchRe... | public void testSearchResultToRobotUrlStrings() {
RobotExclusionFilter f = new RobotExclusionFilter(null,"",100);
String test1[] = {"www.foo.com","foo.com"};
compareListTo(f.searchResultToRobotUrlStrings("www.foo.com", HTTP_PREFIX),test1);
String test2[] = {"www.foo.com","foo.com"};
compareListTo(f.searchRe... |
diff --git a/core/src/visad/trunk/PlotText.java b/core/src/visad/trunk/PlotText.java
index fb1e7ef3a..aaeaeac3c 100644
--- a/core/src/visad/trunk/PlotText.java
+++ b/core/src/visad/trunk/PlotText.java
@@ -1,512 +1,514 @@
//
// PlotText.java
//
/*
VisAD system for interactive analysis and visualization of numeric... | true | true | public static VisADTriangleArray render_font(String str, Font font,
double[] start, double[] base, double[] up, boolean center) {
// float size, boolean center, float x, float y, float z) {
VisADTriangleArray array = null;
// System.out.println("x, y, z = " + x + " " + y + " " + z);
// Sy... | public static VisADTriangleArray render_font(String str, Font font,
double[] start, double[] base, double[] up, boolean center) {
// float size, boolean center, float x, float y, float z) {
VisADTriangleArray array = null;
// System.out.println("x, y, z = " + x + " " + y + " " + z);
// Sy... |
diff --git a/src/edu/sc/seis/sod/SodFlag.java b/src/edu/sc/seis/sod/SodFlag.java
index b9aaab8bc..d5b9c9eb7 100644
--- a/src/edu/sc/seis/sod/SodFlag.java
+++ b/src/edu/sc/seis/sod/SodFlag.java
@@ -1,43 +1,43 @@
package edu.sc.seis.sod;
import edu.sc.seis.fissuresUtil.display.drawable.Flag;
import edu.iris.Fissures.m... | true | true | public int getFlagLocation(Dimension size, MicroSecondTimeRange timeRange) {
int relFlagLocation = super.getFlagLocation(size,timeRange);
int ampBorderWidth = bsd.get(BasicSeismogramDisplay.CENTER_LEFT).getWidth();
flagLoc = ampBorderWidth + relFlagLocation + bsd.getInsets().left;
int timeBorderHeight = bsd.ge... | public int getFlagLocation(Dimension size, MicroSecondTimeRange timeRange) {
int relFlagLocation = super.getFlagLocation(size,timeRange);
int ampBorderWidth = bsd.get(BasicSeismogramDisplay.CENTER_LEFT).getWidth();
flagLoc = ampBorderWidth + relFlagLocation + bsd.getInsets().left;
int timeBorderHeight = bsd.ge... |
diff --git a/src/main/java/hu/ppke/itk/nlpg/purepos/common/SpecTokenMatcher.java b/src/main/java/hu/ppke/itk/nlpg/purepos/common/SpecTokenMatcher.java
index 0b42b8a..a8e9c90 100644
--- a/src/main/java/hu/ppke/itk/nlpg/purepos/common/SpecTokenMatcher.java
+++ b/src/main/java/hu/ppke/itk/nlpg/purepos/common/SpecTokenMatc... | true | true | public SpecTokenMatcher() {
addPattern("@CARD", "^[0-9]*$");
addPattern("@CARDPUNCT", "^[0-9]+\\.$");
addPattern("@CARDSEPS", "^[0-9\\.,:-]+[0-9]+$");
addPattern("@CARDSUFFIX", "^[0-9]+[a-zA-Z][a-zA-Z]?[a-zA-Z]?$");
addPattern("@HTMLENTITY", "^&[^;]+;?$");
addPattern("@PUNCT", "^\\pP+$");
addPattern("@AB... | public SpecTokenMatcher() {
addPattern("@CARD", "^[0-9]+$");
addPattern("@CARDPUNCT", "^[0-9]+\\.$");
addPattern("@CARDSEPS", "^[0-9\\.,:-]+[0-9]+$");
addPattern("@CARDSUFFIX", "^[0-9]+[a-zA-Z][a-zA-Z]?[a-zA-Z]?$");
addPattern("@HTMLENTITY", "^&[^;]+;?$");
addPattern("@PUNCT", "^\\pP+$");
addPattern("@AB... |
diff --git a/src/etc/jtlv/GROne/GROneMain.java b/src/etc/jtlv/GROne/GROneMain.java
index 5124ded..a139e37 100644
--- a/src/etc/jtlv/GROne/GROneMain.java
+++ b/src/etc/jtlv/GROne/GROneMain.java
@@ -1,183 +1,183 @@
import net.sf.javabdd.BDD;
import net.sf.javabdd.BDDVarSet;
import net.sf.javabdd.BDD.BDDIterator;
impo... | true | true | public static void main(String[] args) throws Exception {
// uncomment to use a C BDD package
//System.setProperty("bdd", "buddy");
GROneParser.just_initial = true;
// GRParser.just_safety = true;
// Check that we have enough arguments
if (args.length < 2) {
System.err.println("Us... | public static void main(String[] args) throws Exception {
// uncomment to use a C BDD package
//System.setProperty("bdd", "buddy");
GROneParser.just_initial = true;
// GRParser.just_safety = true;
// Check that we have enough arguments
if (args.length < 2) {
System.err.println("Us... |
diff --git a/src/gui/batches/AddItemBatchController.java b/src/gui/batches/AddItemBatchController.java
index 66e5577..351d4c1 100644
--- a/src/gui/batches/AddItemBatchController.java
+++ b/src/gui/batches/AddItemBatchController.java
@@ -1,342 +1,343 @@
package gui.batches;
import common.BarcodePdf;
import common.c... | true | true | public void addItem() {
int count = getCountFromView();
if (count == -1) return;
boolean createdProduct = false;
// Make sure the product exists to be added to.
String barcode = getView().getBarcode();
if (!_productVault.hasProductWithBarcode(barcode)){
g... | public void addItem() {
int count = getCountFromView();
if (count == -1) return;
boolean createdProduct = false;
// Make sure the product exists to be added to.
String barcode = getView().getBarcode();
if (!_productVault.hasProductWithBarcode(barcode)){
g... |
diff --git a/tests/org.bonitasoft.studio.tests/src/org/bonitasoft/studio/tests/TestVersion.java b/tests/org.bonitasoft.studio.tests/src/org/bonitasoft/studio/tests/TestVersion.java
index 5e23b7ad1c..94dc7fddf1 100644
--- a/tests/org.bonitasoft.studio.tests/src/org/bonitasoft/studio/tests/TestVersion.java
+++ b/tests/or... | true | true | public void testNewProcessVersionMatchesProduct() throws Exception {
String version = "6.1.0";//TO BE MODIFIED AT EACH RELEASE
NewDiagramCommandHandler command = new NewDiagramCommandHandler();
command.execute(null);
ProcessDiagramEditor editor = (ProcessDiagramEditor)PlatformUI.getWorkbench().getActiveWorkben... | public void testNewProcessVersionMatchesProduct() throws Exception {
String version = "6.2.0";//TO BE MODIFIED AT EACH RELEASE
NewDiagramCommandHandler command = new NewDiagramCommandHandler();
command.execute(null);
ProcessDiagramEditor editor = (ProcessDiagramEditor)PlatformUI.getWorkbench().getActiveWorkben... |
diff --git a/src/com/android/exchange/adapter/CalendarSyncAdapter.java b/src/com/android/exchange/adapter/CalendarSyncAdapter.java
index aa38e05..1d1059f 100644
--- a/src/com/android/exchange/adapter/CalendarSyncAdapter.java
+++ b/src/com/android/exchange/adapter/CalendarSyncAdapter.java
@@ -1,2169 +1,2172 @@
/*
* C... | false | true | public boolean sendLocalChanges(Serializer s) throws IOException {
ContentResolver cr = mService.mContentResolver;
if (getSyncKey().equals("0")) {
return false;
}
try {
// We've got to handle exceptions as part of the parent when changes occur, so we need
... | public boolean sendLocalChanges(Serializer s) throws IOException {
ContentResolver cr = mService.mContentResolver;
if (getSyncKey().equals("0")) {
return false;
}
try {
// We've got to handle exceptions as part of the parent when changes occur, so we need
... |
diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcAutoConfiguration.java
index 9a10a1e0e0..49be49de5f 100644
--- a/spring-boot-autoconfigure/src/main/java... | true | true | private void addStaticIndexHtmlViewControllers(ViewControllerRegistry registry) {
for (String resource : STATIC_INDEX_HTML_RESOURCES) {
if (this.resourceLoader.getResource(resource).exists()) {
try {
logger.info("Adding welcome page: "
+ this.resourceLoader.getResource(resource).getURL());
... | private void addStaticIndexHtmlViewControllers(ViewControllerRegistry registry) {
for (String resource : STATIC_INDEX_HTML_RESOURCES) {
if (this.resourceLoader.getResource(resource).exists()) {
try {
logger.info("Adding welcome page: "
+ this.resourceLoader.getResource(resource).getURL());
... |
diff --git a/src/org/eclipse/cdt/internal/core/CCoreInternals.java b/src/org/eclipse/cdt/internal/core/CCoreInternals.java
index d05254aaf..d73a51611 100644
--- a/src/org/eclipse/cdt/internal/core/CCoreInternals.java
+++ b/src/org/eclipse/cdt/internal/core/CCoreInternals.java
@@ -1,75 +1,77 @@
/***********************... | true | true | public static void savePreferences(final IProject project) {
Job job= new Job(CCorePlugin.getResourceString("CCoreInternals.savePreferencesJob")) { //$NON-NLS-1$
protected IStatus run(IProgressMonitor monitor) {
try {
if (project != null) {
new LocalProjectScope(project).get... | public static void savePreferences(final IProject project) {
Job job= new Job(CCorePlugin.getResourceString("CCoreInternals.savePreferencesJob")) { //$NON-NLS-1$
protected IStatus run(IProgressMonitor monitor) {
try {
if (project != null) {
new LocalProjectScope(project).get... |
diff --git a/Chat/src/Server/ServerThread.java b/Chat/src/Server/ServerThread.java
index 62eef59..ce9e812 100644
--- a/Chat/src/Server/ServerThread.java
+++ b/Chat/src/Server/ServerThread.java
@@ -1,42 +1,49 @@
package Server;
import java.io.IOException;
import Messages.ErrorMessage;
import Messages.Message;
i... | true | true | public void run() {
boolean done=false;
boolean error=false;
ServerCurrentState state=new ServerCurrentState();
state.setup();
long timeEnteredState=0;
ServerState lastState=null;
Message tcpMessage=null;
while(!done && !error){
if(lastState==null||state.getState().getClass()!=lastState.getClass(... | public void run() {
boolean done=false;
boolean error=false;
ServerCurrentState state=new ServerCurrentState();
state.setup();
long timeEnteredState=0;
ServerState lastState=null;
Message tcpMessage=null;
while(!done && !error){
if(lastState==null||state.getState().getClass()!=lastState.getClass(... |
diff --git a/src/main/java/uk/ac/ebi/ae15/jobs/ReloadExperimentsJob.java b/src/main/java/uk/ac/ebi/ae15/jobs/ReloadExperimentsJob.java
index db08f0c4..1db2d1ff 100644
--- a/src/main/java/uk/ac/ebi/ae15/jobs/ReloadExperimentsJob.java
+++ b/src/main/java/uk/ac/ebi/ae15/jobs/ReloadExperimentsJob.java
@@ -1,125 +1,125 @@
... | true | true | public void execute( Application app ) throws InterruptedException
{
if (null != app) {
Long threads = app.getPreferences().getLong("ae.experiments.reload.threads");
if (null != threads) {
int numThreadsForRetrieval = threads.intValue();
numThreads... | public void execute( Application app ) throws InterruptedException
{
if (null != app) {
Long threads = app.getPreferences().getLong("ae.experiments.reload.threads");
if (null != threads) {
int numThreadsForRetrieval = threads.intValue();
numThreads... |
diff --git a/modules/cpr/src/main/java/org/atmosphere/client/JavascriptClientFilter.java b/modules/cpr/src/main/java/org/atmosphere/client/JavascriptClientFilter.java
index af82440e2..05d0dfdb9 100644
--- a/modules/cpr/src/main/java/org/atmosphere/client/JavascriptClientFilter.java
+++ b/modules/cpr/src/main/java/org/a... | false | true | public BroadcastAction filter(HttpServletRequest request, HttpServletResponse response, Object message) {
if (request.getHeader("User-Agent") != null && request.getAttribute("X-Transport") != null && ((String)request.getAttribute("X-Transport")).equalsIgnoreCase("streaming")) {
String userAgent... | public BroadcastAction filter(HttpServletRequest request, HttpServletResponse response, Object message) {
if (request.getHeader("User-Agent") != null && request.getAttribute("X-Atmosphere-Transport") == null || ((String)request.getAttribute("X-Atmosphere-Transport")).equalsIgnoreCase("long-polling")) {
... |
diff --git a/src/com/untamedears/ItemExchange/listeners/ItemExchangeListener.java b/src/com/untamedears/ItemExchange/listeners/ItemExchangeListener.java
index 52f2a82..c8c8534 100644
--- a/src/com/untamedears/ItemExchange/listeners/ItemExchangeListener.java
+++ b/src/com/untamedears/ItemExchange/listeners/ItemExchangeL... | true | true | public void onInventoryClick(InventoryClickEvent event) {
if (event.isShiftClick()) {
try {
ItemStack currentItem = event.getCurrentItem();
int itemAmount = currentItem.getAmount();
ExchangeRule exchangeRule = ExchangeRule.parseRuleBlock(currentItem);
int amount = exchangeRule.getAmount();
i... | public void onInventoryClick(InventoryClickEvent event) {
if (event.isShiftClick()) {
try {
ItemStack currentItem = event.getCurrentItem();
int itemAmount = currentItem.getAmount();
ExchangeRule exchangeRule = ExchangeRule.parseRuleBlock(currentItem);
int amount = exchangeRule.getAmount();
i... |
diff --git a/src/csheets/ext/database/ui/ConfirmImportUI.java b/src/csheets/ext/database/ui/ConfirmImportUI.java
index 16a7b07..20bcaae 100644
--- a/src/csheets/ext/database/ui/ConfirmImportUI.java
+++ b/src/csheets/ext/database/ui/ConfirmImportUI.java
@@ -1,161 +1,161 @@
package csheets.ext.database.ui;
import csh... | true | true | public ConfirmImportUI(Spreadsheet spreadSheet, String [][] tableData)
{
setTitle("Data import preview window");
this.tableData = tableData;
this.spreadSheet = spreadSheet;
this.flag = flag;
/* setting up column names */
String []columns = new String[tabl... | public ConfirmImportUI(Spreadsheet spreadSheet, String [][] tableData)
{
setTitle("Data import preview window");
this.tableData = tableData;
this.spreadSheet = spreadSheet;
this.flag = flag;
/* setting up column names */
String []columns = new String[tabl... |
diff --git a/src/main/java/com/hydrasmp/godPowers/commands/RepairCommand.java b/src/main/java/com/hydrasmp/godPowers/commands/RepairCommand.java
index 8c041c1..b261d2e 100644
--- a/src/main/java/com/hydrasmp/godPowers/commands/RepairCommand.java
+++ b/src/main/java/com/hydrasmp/godPowers/commands/RepairCommand.java
@@ ... | false | true | public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (sender instanceof Player) {
Player player = (Player) sender;
if (player.hasPermission("godpowers.repair")) {
if (args.length == 0) {
try {
... | public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (sender instanceof Player) {
Player player = (Player) sender;
if (player.hasPermission("godpowers.repair")) {
if (args.length == 0) {
try {
... |
diff --git a/src/edu/first/team2903/robot/commands/TeleopMode.java b/src/edu/first/team2903/robot/commands/TeleopMode.java
index 51cfff2..52ed210 100644
--- a/src/edu/first/team2903/robot/commands/TeleopMode.java
+++ b/src/edu/first/team2903/robot/commands/TeleopMode.java
@@ -1,58 +1,59 @@
package edu.first.team2903.r... | true | true | protected void execute() {
boolean state = true;
//Can't figure out how to turn setPusher to true to activate the
//frisbee into the shooter area. Set to button 5 in OI.java
//OI.triggerButton.whenPressed(new ToggleShooter());
if (OI.rightStick.getZ() < 0) {
... | protected void execute() {
//boolean state = true;
//commented out in an attempt to stop the acceleration bug
//Can't figure out how to turn setPusher to true to activate the
//frisbee into the shooter area. Set to button 5 in OI.java
//OI.triggerButton.whenPressed(new Togg... |
diff --git a/maven/maven-quattor-build-plugin/src/main/java/org/quattor/maven/QuattorBuild.java b/maven/maven-quattor-build-plugin/src/main/java/org/quattor/maven/QuattorBuild.java
index ed20481..cc80b1c 100644
--- a/maven/maven-quattor-build-plugin/src/main/java/org/quattor/maven/QuattorBuild.java
+++ b/maven/maven-qu... | true | true | public void execute() throws MojoExecutionException {
Model model = mavenProject.getModel();
String licenseInfo = formatLicenseInfo(model);
setMavenProperty("license-info", licenseInfo);
String licenseUrl = formatLicenseUrl(model);
setMavenProperty("license-url", licenseUr... | public void execute() throws MojoExecutionException {
Model model = mavenProject.getModel();
String licenseInfo = formatLicenseInfo(model);
setMavenProperty("license-info", licenseInfo);
String licenseUrl = formatLicenseUrl(model);
setMavenProperty("license-url", licenseUr... |
diff --git a/src/me/makskay/bukkit/tidy/tasks/SaveChangedIssuesTask.java b/src/me/makskay/bukkit/tidy/tasks/SaveChangedIssuesTask.java
index 06d276c..70a42bc 100644
--- a/src/me/makskay/bukkit/tidy/tasks/SaveChangedIssuesTask.java
+++ b/src/me/makskay/bukkit/tidy/tasks/SaveChangedIssuesTask.java
@@ -1,58 +1,58 @@
/* S... | false | true | public void run() {
IssueReport issue = null;
boolean delete = false;
for (IssueReport iss : issueManager.getCachedIssues()) {
if (iss.hasChanged()) {
issue = iss;
break;
}
delete = iss.shouldBeDeleted();
if (delete) {
issue = iss;
break;
}
}
if (issue == null) {
retu... | public void run() {
IssueReport issue = null;
boolean delete = false;
for (IssueReport iss : issueManager.getCachedIssues()) {
if (iss.hasChanged()) {
issue = iss;
break;
}
delete = iss.shouldBeDeleted();
if (delete) {
issue = iss;
break;
}
}
if (issue == null) {
retu... |
diff --git a/src/com/redhat/ceylon/compiler/tools/JarOutputRepositoryManager.java b/src/com/redhat/ceylon/compiler/tools/JarOutputRepositoryManager.java
index f9e5e7086..60371aed7 100644
--- a/src/com/redhat/ceylon/compiler/tools/JarOutputRepositoryManager.java
+++ b/src/com/redhat/ceylon/compiler/tools/JarOutputReposi... | false | true | public void close() throws IOException {
// now copy all previous jar entries
if(originalJarFile != null){
JarFile jarFile = new JarFile(originalJarFile);
Enumeration<JarEntry> entries = jarFile.entries();
while(entries.hasMoreElements()){
... | public void close() throws IOException {
// now copy all previous jar entries
if(originalJarFile != null){
JarFile jarFile = new JarFile(originalJarFile);
Enumeration<JarEntry> entries = jarFile.entries();
while(entries.hasMoreElements()){
... |
diff --git a/src/main/java/org/dynmap/MapManager.java b/src/main/java/org/dynmap/MapManager.java
index 90cd4be7..3c7b0019 100644
--- a/src/main/java/org/dynmap/MapManager.java
+++ b/src/main/java/org/dynmap/MapManager.java
@@ -1,808 +1,810 @@
package org.dynmap;
import java.io.File;
import java.util.ArrayList;
im... | true | true | public void run() {
long tstart = System.currentTimeMillis();
if(cancelled) {
cleanup();
return;
}
if(tile0 == null) { /* Not single tile render */
/* If render queue is empty, start next map */
... | public void run() {
long tstart = System.currentTimeMillis();
if(cancelled) {
cleanup();
return;
}
if(tile0 == null) { /* Not single tile render */
/* If render queue is empty, start next map */
... |
diff --git a/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/internal/editors/EditorProxy.java b/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/internal/editors/EditorProxy.java
index f7fb5e0..da6e81d 100644
--- a/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/review... | true | true | public static void openEditor(IWorkbenchPage aPage, ISelection aSelection, boolean forceSingleEditor) {
if (aSelection.isEmpty() || !(aSelection instanceof IStructuredSelection)) {
return;
}
Object element = null;
IR4EUIPosition position = null;
R4EUIFileContext context = null;
R4EFileVersion baseFil... | public static void openEditor(IWorkbenchPage aPage, ISelection aSelection, boolean forceSingleEditor) {
if (aSelection.isEmpty() || !(aSelection instanceof IStructuredSelection)) {
return;
}
Object element = null;
IR4EUIPosition position = null;
R4EUIFileContext context = null;
R4EFileVersion baseFil... |
diff --git a/src/ox/stackgame/ui/ChallengeMode.java b/src/ox/stackgame/ui/ChallengeMode.java
index d98779a..5e2c156 100644
--- a/src/ox/stackgame/ui/ChallengeMode.java
+++ b/src/ox/stackgame/ui/ChallengeMode.java
@@ -1,229 +1,233 @@
/**
*
*/
package ox.stackgame.ui;
import java.util.*;
import ox.stackgame.... | false | true | public ChallengeMode() {
List<AbstractChallenge> cl = challengeList;
ArrayList<StackValue<?>> tape1to100 = new ArrayList<StackValue<?>>() {
{
for (int i = 1; i <= 100; i++)
add(new IntStackValue(i));
}
};
cl.add(new StackR... | public ChallengeMode() {
List<AbstractChallenge> cl = challengeList;
ArrayList<StackValue<?>> tape1to100 = new ArrayList<StackValue<?>>() {
{
for (int i = 1; i <= 100; i++)
add(new IntStackValue(i));
}
};
cl.add(new StackR... |
diff --git a/source/com/mucommander/ui/action/ActionKeymapReader.java b/source/com/mucommander/ui/action/ActionKeymapReader.java
index c3bd5bae..dc796c61 100644
--- a/source/com/mucommander/ui/action/ActionKeymapReader.java
+++ b/source/com/mucommander/ui/action/ActionKeymapReader.java
@@ -1,201 +1,198 @@
/*
* This ... | true | true | private void processKeystrokeAttribute(String actionId, Attributes attributes) {
String keyStrokeString;
KeyStroke alternateKeyStroke = null;
KeyStroke primaryKeyStroke = null;
// Parse the primary keystroke and retrieve the corresponding KeyStroke instance
keyStrokeString = attr... | private void processKeystrokeAttribute(String actionId, Attributes attributes) {
String keyStrokeString;
KeyStroke alternateKeyStroke = null;
KeyStroke primaryKeyStroke = null;
// Parse the primary keystroke and retrieve the corresponding KeyStroke instance
keyStrokeString = attr... |
diff --git a/src/no/runsafe/UserControl/command/Seen.java b/src/no/runsafe/UserControl/command/Seen.java
index 47aed19..bc48541 100644
--- a/src/no/runsafe/UserControl/command/Seen.java
+++ b/src/no/runsafe/UserControl/command/Seen.java
@@ -1,72 +1,72 @@
package no.runsafe.UserControl.command;
import no.runsafe.Use... | true | true | public String OnExecute(RunsafePlayer executor, String[] args)
{
String playerName = args[0];
RunsafePlayer player = RunsafeServer.Instance.getPlayer(playerName);
if (player == null)
return String.format("No players found matching %s", playerName);
if (player instanceof RunsafeAmbiguousPlayer)
{
retu... | public String OnExecute(RunsafePlayer executor, String[] args)
{
String playerName = args[0];
RunsafePlayer player = RunsafeServer.Instance.getPlayer(playerName);
if (player == null)
return String.format("No players found matching %s", playerName);
if (player instanceof RunsafeAmbiguousPlayer)
{
retu... |
diff --git a/AndSensor/src/com/rimproject/andsensor/BasicLogger.java b/AndSensor/src/com/rimproject/andsensor/BasicLogger.java
index 0269ecf..f33d7f0 100644
--- a/AndSensor/src/com/rimproject/andsensor/BasicLogger.java
+++ b/AndSensor/src/com/rimproject/andsensor/BasicLogger.java
@@ -1,145 +1,147 @@
package com.rimpro... | true | true | public void terminateRepeatedLogging(boolean immidiate)
{
this.delayBetweenLoggingTimer.cancel();
if (immidiate) {
this.dataLogger.run();
}
System.out.println(this+" : "+Calendar.getInstance().getTime()+" @ Logging Terminated");
}
| public void terminateRepeatedLogging(boolean immidiate)
{
this.delayBetweenLoggingTimer.cancel();
if (immidiate) {
if(this.dataLogger != null) {
this.dataLogger.run();
}
}
System.out.println(this+" : "+Calendar.getInstance().getTime()+" @ Logging Terminated");
}
|
diff --git a/org.epic.perleditor/src/org/epic/perleditor/editors/TasksReconciler.java b/org.epic.perleditor/src/org/epic/perleditor/editors/TasksReconciler.java
index 835ed41a..354d5ce0 100644
--- a/org.epic.perleditor/src/org/epic/perleditor/editors/TasksReconciler.java
+++ b/org.epic.perleditor/src/org/epic/perledito... | false | true | public void reconcile()
{
IEditorInput input = (IEditorInput) editor.getEditorInput();
if (!(input instanceof IFileEditorInput)) return;
IDocumentProvider docProvider = editor.getDocumentProvider();
if (docProvider == null) return;
IDocument doc = docPro... | public void reconcile()
{
IEditorInput input = (IEditorInput) editor.getEditorInput();
if (!(input instanceof IFileEditorInput)) return;
IDocumentProvider docProvider = editor.getDocumentProvider();
if (docProvider == null) return;
IDocument doc = docPro... |
diff --git a/modules/activiti-cycle/src/test/java/org/activiti/cycle/impl/connector/demo/DemoConnectorTest.java b/modules/activiti-cycle/src/test/java/org/activiti/cycle/impl/connector/demo/DemoConnectorTest.java
index db78a9826..fe5aa8d2b 100644
--- a/modules/activiti-cycle/src/test/java/org/activiti/cycle/impl/connec... | true | true | public void testFirstPlay() throws Exception {
// create demo connector but accessed via the customized view connector
ConfigurationContainer configurationContainer = new ConfigurationContainer("bernd");
RepositoryConnectorConfiguration configuration = new DemoConnectorConfiguration("demo");
configura... | public void testFirstPlay() throws Exception {
// create demo connector but accessed via the customized view connector
ConfigurationContainer configurationContainer = new ConfigurationContainer("bernd");
RepositoryConnectorConfiguration configuration = new DemoConnectorConfiguration("demo");
configura... |
diff --git a/src/main/java/de/blacksheepsoftware/gene/FastaReader.java b/src/main/java/de/blacksheepsoftware/gene/FastaReader.java
index fa7d5c0..2a7d01a 100644
--- a/src/main/java/de/blacksheepsoftware/gene/FastaReader.java
+++ b/src/main/java/de/blacksheepsoftware/gene/FastaReader.java
@@ -1,76 +1,76 @@
package de.b... | false | true | public Sequence readSequence() throws IOException {
if (!ready()) {
return null;
}
Matcher m = headerPattern.matcher(line);
if (!m.matches()) {
throw new FileFormatException("Invalid sequence header");
}
final String identifier = m.group(1);
... | public Sequence readSequence() throws IOException {
if (!ready()) {
return null;
}
Matcher m = headerPattern.matcher(line);
if (!m.matches()) {
throw new FileFormatException("Invalid sequence header");
}
final String identifier = m.group(1);
... |
diff --git a/src/test/webui/recipes/applications/PetClinicTest.java b/src/test/webui/recipes/applications/PetClinicTest.java
index 21c2c08a..e37c922b 100644
--- a/src/test/webui/recipes/applications/PetClinicTest.java
+++ b/src/test/webui/recipes/applications/PetClinicTest.java
@@ -1,219 +1,219 @@
package test.webui.r... | true | true | public void petClinicDemoTest() throws Exception {
// get new login page
LoginPage loginPage = getLoginPage();
MainNavigation mainNav = loginPage.login();
DashboardTab dashboardTab = mainNav.switchToDashboard();
final InfrastructureServicesGrid infrastructureServicesGrid = dashboardTab.getServicesGri... | public void petClinicDemoTest() throws Exception {
// get new login page
LoginPage loginPage = getLoginPage();
MainNavigation mainNav = loginPage.login();
DashboardTab dashboardTab = mainNav.switchToDashboard();
final InfrastructureServicesGrid infrastructureServicesGrid = dashboardTab.getServicesGri... |
diff --git a/src/nu/nerd/modreq/ModReq.java b/src/nu/nerd/modreq/ModReq.java
index 31f313b..ca39562 100755
--- a/src/nu/nerd/modreq/ModReq.java
+++ b/src/nu/nerd/modreq/ModReq.java
@@ -1,501 +1,501 @@
package nu.nerd.modreq;
import com.avaje.ebean.CallableSql;
import com.avaje.ebean.SqlQuery;
import com.avaje.ebe... | false | true | public boolean onCommand(CommandSender sender, Command command, String name, String[] args) {
boolean includeElevated = sender.hasPermission("modreq.cleardb");
String senderName = ChatColor.stripColor(sender.getName());
if (sender instanceof ConsoleCommandSender) {
senderName = "... | public boolean onCommand(CommandSender sender, Command command, String name, String[] args) {
boolean includeElevated = sender.hasPermission("modreq.cleardb");
String senderName = ChatColor.stripColor(sender.getName());
if (sender instanceof ConsoleCommandSender) {
senderName = "... |
diff --git a/PaintroidTest/src/org/catrobat/paintroid/test/integration/ActivityOpenedFromPocketCode.java b/PaintroidTest/src/org/catrobat/paintroid/test/integration/ActivityOpenedFromPocketCode.java
index 1669b632..b816a6b5 100644
--- a/PaintroidTest/src/org/catrobat/paintroid/test/integration/ActivityOpenedFromPocketC... | true | true | public void testBackToPocketCode() {
int xCoord = mScreenWidth / 2;
int yCoord = mScreenHeight / 2;
PointF pointOnBitmap = new PointF(xCoord, yCoord);
PointF pointOnScreen = new PointF(pointOnBitmap.x, pointOnBitmap.y);
PaintroidApplication.perspective.convertFromScreenToCanvas(pointOnScreen);
mSolo.cli... | public void testBackToPocketCode() {
int xCoord = mScreenWidth / 2;
int yCoord = mScreenHeight / 2;
PointF pointOnBitmap = new PointF(xCoord, yCoord);
PointF pointOnScreen = new PointF(pointOnBitmap.x, pointOnBitmap.y);
PaintroidApplication.perspective.convertFromScreenToCanvas(pointOnScreen);
mSolo.cli... |
diff --git a/src/wars/dragon/engine/Map.java b/src/wars/dragon/engine/Map.java
index e2db3bb..34b813b 100644
--- a/src/wars/dragon/engine/Map.java
+++ b/src/wars/dragon/engine/Map.java
@@ -1,35 +1,35 @@
//package wars.dragon.engine;
import java.util.*;
public class Map {
List< List<GameField> > fields;
... | true | true | public String toString() {
String m = "";
for (ArrayList<GameField> agf : this.fields) {
for (GameField gf : agf) {
m += gf.toString().charAt(0);
}
m += '\n';
}
return m;
}
| public String toString() {
String m = "";
for (List<GameField> agf : this.fields) {
for (GameField gf : agf) {
m += gf.toString().charAt(0);
}
m += '\n';
}
return m;
}
|
diff --git a/test/src/com/monstersfromtheid/imready/test/APITest.java b/test/src/com/monstersfromtheid/imready/test/APITest.java
index a68cc17..2f93a40 100644
--- a/test/src/com/monstersfromtheid/imready/test/APITest.java
+++ b/test/src/com/monstersfromtheid/imready/test/APITest.java
@@ -1,236 +1,236 @@
package com.mo... | true | true | public void testMeetingResource() {
try {
api.createUser(primaryUserId, "Mr Test A");
api.createUser(secondaryUserId, "Mr Test B");
} catch (APICallFailedException e) {
e.printStackTrace();
fail("Failed to create user: " + e);
}
// Test meeting creation
int meetingId = 0;
try {
meetingId ... | public void testMeetingResource() {
try {
api.createUser(primaryUserId, "Mr Test A");
api.createUser(secondaryUserId, "Mr Test B");
} catch (APICallFailedException e) {
e.printStackTrace();
fail("Failed to create user: " + e);
}
// Test meeting creation
int meetingId = 0;
try {
meetingId ... |
diff --git a/modules/dm4-core/src/main/java/de/deepamehta/core/impl/service/ObjectFactoryImpl.java b/modules/dm4-core/src/main/java/de/deepamehta/core/impl/service/ObjectFactoryImpl.java
index 2f15e6600..75b356631 100644
--- a/modules/dm4-core/src/main/java/de/deepamehta/core/impl/service/ObjectFactoryImpl.java
+++ b/m... | false | true | void storeType(TypeModel type) {
// Note: if no URI is set a default URI is generated ### FIXME: must be done *after* storing the topic
if (type.getUri().equals("")) {
type.setUri(DEFAULT_URI_PREFIX + type.getId());
}
//
// 1) store the base-topic parts ### FIXME:... | void storeType(TypeModel type) {
// 1) store the base-topic parts ### FIXME: call super.store() instead?
dms.storage.createTopic(type);
dms.associateWithTopicType(type);
// Note: the created AttachedTopic is just a temporary vehicle to
// let us call its setUri() and storeAnd... |
diff --git a/deeva/processor/PrimitiveValue.java b/deeva/processor/PrimitiveValue.java
index 85ad9af..5c99c9e 100644
--- a/deeva/processor/PrimitiveValue.java
+++ b/deeva/processor/PrimitiveValue.java
@@ -1,41 +1,41 @@
package deeva.processor;
//import com.google.gson.Gson;
//import com.google.gson.GsonBuilder;
i... | false | true | public PrimitiveValue(String type, Value variableValue) {
super(type);
if (variableValue instanceof IntegerType) {
this.value = ((IntegerValue) variableValue).value();
} else if (variableValue instanceof BooleanType) {
this.value = ((BooleanValue) variableValue).value... | public PrimitiveValue(String type, Value variableValue) {
super(type);
if (variableValue instanceof IntegerValue) {
this.value = ((IntegerValue) variableValue).value();
} else if (variableValue instanceof BooleanValue) {
this.value = ((BooleanValue) variableValue).val... |
diff --git a/plugins/org.eclipse.birt.core/src/org/eclipse/birt/core/exception/BirtException.java b/plugins/org.eclipse.birt.core/src/org/eclipse/birt/core/exception/BirtException.java
index 9c5024d..a2534fd 100644
--- a/plugins/org.eclipse.birt.core/src/org/eclipse/birt/core/exception/BirtException.java
+++ b/plugins/... | true | true | protected String getLocalizedMessage(String errorCode)
{
String localizedMessage;
if (rb == null)
{
return ""; // $NON-NLS-1$
}
else
{
try
{
localizedMessage = rb.getString(errorCode);
}
c... | protected String getLocalizedMessage(String errorCode)
{
String localizedMessage;
if (rb == null)
{
return "$NO-RB$ " + errorCode; // $NON-NLS-1$
}
else
{
try
{
localizedMessage = rb.getString(errorCode);
... |
diff --git a/site/src/main/java/org/soluvas/web/site/osgi/PageRulesSupplierTracker.java b/site/src/main/java/org/soluvas/web/site/osgi/PageRulesSupplierTracker.java
index 54739767..674a0678 100644
--- a/site/src/main/java/org/soluvas/web/site/osgi/PageRulesSupplierTracker.java
+++ b/site/src/main/java/org/soluvas/web/s... | true | true | public Object addingService(ServiceReference reference) {
PageRulesSupplier supplier = reference.getBundle().getBundleContext().getService(reference);
federator.add(supplier);
return supplier;
}
| public Object addingService(ServiceReference reference) {
PageRulesSupplier supplier = (PageRulesSupplier) reference.getBundle().getBundleContext().getService(reference);
federator.add(supplier);
return supplier;
}
|
diff --git a/src/org/vcs/medmanage/CronSchedule.java b/src/org/vcs/medmanage/CronSchedule.java
index a177daf..8c4b81a 100644
--- a/src/org/vcs/medmanage/CronSchedule.java
+++ b/src/org/vcs/medmanage/CronSchedule.java
@@ -1,30 +1,30 @@
package org.vcs.medmanage;
import org.quartz.CronScheduleBuilder;
import org.qua... | true | true | public List<Date> getTimings(Date startDate, Date endDate) {
OperableTrigger trigger = (OperableTrigger) TriggerBuilder
.newTrigger()
.withIdentity("trigger1", "group1")
.withSchedule(
CronScheduleBuilder.cronSchedule("0/5 * * * * ?"))
... | public List<Date> getTimings(Date startDate, Date endDate) {
OperableTrigger trigger = (OperableTrigger) TriggerBuilder
.newTrigger()
.withIdentity("trigger1", "group1")
.withSchedule(
CronScheduleBuilder.cronSchedule(this.cronExpressio... |
diff --git a/org/xbill/DNS/Zone.java b/org/xbill/DNS/Zone.java
index a4e8b69..82a3c0c 100644
--- a/org/xbill/DNS/Zone.java
+++ b/org/xbill/DNS/Zone.java
@@ -1,557 +1,554 @@
// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
package org.xbill.DNS;
import java.io.*;
import java.util.*;
/**
* A ... | true | true | private synchronized SetResponse
lookup(Name name, int type) {
int labels;
int olabels;
int tlabels;
RRset rrset;
Name tname;
Object types;
SetResponse sr;
if (!name.subdomain(origin))
return SetResponse.ofType(SetResponse.NXDOMAIN);
labels = name.labels();
olabels = origin.labels();
for (tlabels = olab... | private synchronized SetResponse
lookup(Name name, int type) {
int labels;
int olabels;
int tlabels;
RRset rrset;
Name tname;
Object types;
SetResponse sr;
if (!name.subdomain(origin))
return SetResponse.ofType(SetResponse.NXDOMAIN);
labels = name.labels();
olabels = origin.labels();
for (tlabels = olab... |
diff --git a/Fallout-Equestria-The-Game/network/serverNetworkSystems/ServerPlayerCreationNetworkSystem.java b/Fallout-Equestria-The-Game/network/serverNetworkSystems/ServerPlayerCreationNetworkSystem.java
index 08bd33e..01381f1 100644
--- a/Fallout-Equestria-The-Game/network/serverNetworkSystems/ServerPlayerCreationNet... | true | true | protected void createNewPlayer(NewPlayerMessage message) {
System.out.println("Player Created " + message.senderID);
IEntityArchetype archetype = contentManager.loadArchetype("Player.archetype");
final IEntity entity = this.getEntityManager().createEntity(archetype);
entity.addComponent(new BehaviourComp(new... | protected void createNewPlayer(NewPlayerMessage message) {
System.out.println("Player Created " + message.senderID);
IEntityArchetype archetype = contentManager.loadArchetype("Player.archetype");
final IEntity entity = this.getEntityManager().createEntity(archetype);
entity.addComponent(new BehaviourComp(new... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.