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/gui/NuevaPersonaController.java b/src/gui/NuevaPersonaController.java
index eeb29cf..7651642 100644
--- a/src/gui/NuevaPersonaController.java
+++ b/src/gui/NuevaPersonaController.java
@@ -1,34 +1,34 @@
package gui;
import core.Persona;
import persistence.Persistence;
public class NuevaPersonaCo... | true | true | public void guardarPersona() {
Persistence guardado = new Persistence();
_persona = new Persona(1, _screen.getCedula(), _screen.getNombre(),
_screen.getTelefono(), _screen.getDireccion(),
_screen.getCorreo(), _screen.getNotas());
try {
guardado.guardarPersona(_persona);
} catch (Exception e) {
//... | public void guardarPersona() {
Persistence guardado = new Persistence();
_persona = new Persona(_screen.getTipo(), _screen.getCedula(), _screen.getNombre(),
_screen.getTelefono(), _screen.getDireccion(),
_screen.getCorreo(), _screen.getNotas());
try {
guardado.guardarPersona(_persona);
} catch (Exce... |
diff --git a/dereplicate/src/main/java/gov/jgi/meta/Dereplicate.java b/dereplicate/src/main/java/gov/jgi/meta/Dereplicate.java
index 9c83f84..2392152 100644
--- a/dereplicate/src/main/java/gov/jgi/meta/Dereplicate.java
+++ b/dereplicate/src/main/java/gov/jgi/meta/Dereplicate.java
@@ -1,525 +1,525 @@
/*
* Copyright (... | true | true | public static void main(String[] args) throws Exception {
Logger log = Logger.getLogger(Dereplicate.class);
/*
load the application configuration parameters (from deployment directory)
*/
Configuration conf = new Configuration();
String[] otherArgs = MetaUtils.lo... | public static void main(String[] args) throws Exception {
Logger log = Logger.getLogger(Dereplicate.class);
/*
load the application configuration parameters (from deployment directory)
*/
Configuration conf = new Configuration();
String[] otherArgs = MetaUtils.lo... |
diff --git a/java/src/org/broadinstitute/sting/utils/exceptions/DynamicClassResolutionException.java b/java/src/org/broadinstitute/sting/utils/exceptions/DynamicClassResolutionException.java
index f31cf689b..ee521269f 100755
--- a/java/src/org/broadinstitute/sting/utils/exceptions/DynamicClassResolutionException.java
+... | true | true | private static String moreInfo(Exception ex) {
try {
throw ex;
} catch (InstantiationException e) {
return "BUG: cannot instantiate class: must be concrete class";
} catch (NoSuchMethodException e) {
return "BUG: Cannot find expected constructor for class"... | private static String moreInfo(Exception ex) {
try {
throw ex;
} catch (InstantiationException e) {
return "BUG: cannot instantiate class: must be concrete class";
} catch (NoSuchMethodException e) {
return "BUG: Cannot find expected constructor for class"... |
diff --git a/src/ru/spbau/bioinf/tagfinder/ui/TagFinder.java b/src/ru/spbau/bioinf/tagfinder/ui/TagFinder.java
index 06f9e94..28bf1fb 100644
--- a/src/ru/spbau/bioinf/tagfinder/ui/TagFinder.java
+++ b/src/ru/spbau/bioinf/tagfinder/ui/TagFinder.java
@@ -1,187 +1,188 @@
package ru.spbau.bioinf.tagfinder.ui;
import ed... | true | true | public TagFinder(String[] args) throws Exception {
super("TagFinder");
conf = new Configuration(args);
proteins = conf.getProteins();
msAlignResults = conf.getMSAlignResults();
updateStatus("Initializing E-value calculator...");
final SwingWorker sw = new SwingWorker(... | public TagFinder(String[] args) throws Exception {
super("TagFinder");
conf = new Configuration(args);
proteins = conf.getProteins();
msAlignResults = conf.getMSAlignResults();
updateStatus("Initializing E-value calculator...");
final SwingWorker sw = new SwingWorker(... |
diff --git a/src/edu/umn/genomics/table/TableViewPreferenceEditor.java b/src/edu/umn/genomics/table/TableViewPreferenceEditor.java
index 1776d86..b73cfcc 100644
--- a/src/edu/umn/genomics/table/TableViewPreferenceEditor.java
+++ b/src/edu/umn/genomics/table/TableViewPreferenceEditor.java
@@ -1,185 +1,192 @@
/*
* @(#... | true | true | public TableViewPreferenceEditor() throws BackingStoreException {
super("Preference Editor");
ptm = new PreferenceTableModel();
JComboBox drawableChoices = new JComboBox();
drawableChoices.addItem(new DrawableT(1));
drawableChoices.addItem(new DrawableT(2));
drawableChoices.addItem(new Drawabl... | public TableViewPreferenceEditor() throws BackingStoreException {
super("Preference Editor");
ptm = new PreferenceTableModel();
JComboBox drawableChoices = new JComboBox();
drawableChoices.addItem(new DrawableT(1));
drawableChoices.addItem(new DrawableT(2));
drawableChoices.addItem(new Drawabl... |
diff --git a/src/thesaurus/gui/canvas/ViewGraph.java b/src/thesaurus/gui/canvas/ViewGraph.java
index 2f3ec61..034e725 100644
--- a/src/thesaurus/gui/canvas/ViewGraph.java
+++ b/src/thesaurus/gui/canvas/ViewGraph.java
@@ -1,125 +1,125 @@
/**
* @author Team O
* @title Graphical Thesaurus
* @date 3/12/12
*/
pa... | true | true | public void start() {
graph = new Canvas(windowWidth,windowHeight);
final GraphicsContext gc = graph.getGraphicsContext2D();
drawNodes(gc);
final Queue<Integer> curX = new LinkedList<Integer>();
final Queue<Integer> curY = new LinkedList<Integer>();
graph.addEventHandler(MouseEvent.MOUSE_DRAGGED,
... | public void start() {
graph = new Canvas(windowWidth,windowHeight);
final GraphicsContext gc = graph.getGraphicsContext2D();
drawNodes(gc);
final Queue<Integer> curX = new LinkedList<Integer>();
final Queue<Integer> curY = new LinkedList<Integer>();
graph.addEventHandler(MouseEvent.MOUSE_DRAGGED,
... |
diff --git a/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/PDEClassContributionProvider.java b/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/PDEClassContributionProvider.java
index b137eb5b..cf55a477 100644
--- a/bundles/org.eclipse.e4.tools.emf.editor... | true | true | public void findContribution(final Filter filter, final ContributionResultHandler handler) {
System.err.println("Searching for: " + filter.namePattern);
IJavaSearchScope scope = PDEJavaHelper.getSearchScope(filter.project);
char[] packageName = null;
char[] typeName = null;
String currentContent = fil... | public void findContribution(final Filter filter, final ContributionResultHandler handler) {
System.err.println("Searching for: " + filter.namePattern);
IJavaSearchScope scope = PDEJavaHelper.getSearchScope(filter.project);
char[] packageName = null;
char[] typeName = null;
String currentContent = fil... |
diff --git a/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/PtuTabSelector.java b/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/PtuTabSelector.java
index e6ef71e2..91dab187 100644
--- a/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/PtuTabSelector.java
+++ b/apvs/src/main/java/ch/cern/atlas/apvs/client/ui/PtuTabSel... | true | true | public boolean configure(Element element, ClientFactory clientFactory,
Arguments args) {
// add(new Brand("AWSS"));
remoteEventBus = clientFactory.getRemoteEventBus();
String[] busNames = args.getArg(0).split(",");
for (int i = 0; i < busNames.length; i++) {
eventBusses.add(clientFactory.getEventBus(b... | public boolean configure(Element element, ClientFactory clientFactory,
Arguments args) {
// add(new Brand("ATWSS"));
remoteEventBus = clientFactory.getRemoteEventBus();
String[] busNames = args.getArg(0).split(",");
for (int i = 0; i < busNames.length; i++) {
eventBusses.add(clientFactory.getEventBus(... |
diff --git a/src/main/java/net/aufdemrand/denizen/scripts/commands/player/ListenCommand.java b/src/main/java/net/aufdemrand/denizen/scripts/commands/player/ListenCommand.java
index e71a1b162..b67ad9ff1 100644
--- a/src/main/java/net/aufdemrand/denizen/scripts/commands/player/ListenCommand.java
+++ b/src/main/java/net/a... | true | true | public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
Element action = scriptEntry.getElement("action");
Element type = scriptEntry.getElement("type");
Element id = scriptEntry.getElement("id");
dScript finish_script = (dScript) scriptEntry.getObject("finish... | public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
Element action = scriptEntry.getElement("action");
Element type = scriptEntry.getElement("type");
Element id = scriptEntry.getElement("id");
dScript finish_script = (dScript) scriptEntry.getObject("finish... |
diff --git a/GAE/src/com/gallatinsystems/instancecreator/app/InstanceConfigurator.java b/GAE/src/com/gallatinsystems/instancecreator/app/InstanceConfigurator.java
index 43c12069c..1b832ed0f 100644
--- a/GAE/src/com/gallatinsystems/instancecreator/app/InstanceConfigurator.java
+++ b/GAE/src/com/gallatinsystems/instancec... | true | true | public static void main(String[] args) {
InstanceConfigurator ic = new InstanceConfigurator();
String[] directories;
String s3policyFileTemplateName;
aws_secret_key = args[0];
ic.addAttribute("awsSecretKey", args[0]);
ic.addAttribute("awsIdentifier", args[1]);
ic.addAttribute("instanceName", args[2]);
... | public static void main(String[] args) {
InstanceConfigurator ic = new InstanceConfigurator();
String[] directories;
String s3policyFileTemplateName;
aws_secret_key = args[0];
ic.addAttribute("awsSecretKey", args[0]);
ic.addAttribute("awsIdentifier", args[1]);
ic.addAttribute("instanceName", args[2]);
... |
diff --git a/spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/stream/ModuleTypeConversionPlugin.java b/spring-xd-dirt/src/main/java/org/springframework/xd/dirt/plugins/stream/ModuleTypeConversionPlugin.java
index 7ce16e383..dcc84f9ed 100644
--- a/spring-xd-dirt/src/main/java/org/springframework/xd/dirt/... | true | true | private void configureModuleConverters(String contentTypeString, Module module,
ConfigurableConversionService conversionService, boolean isInput) {
if (logger.isDebugEnabled()) {
logger.debug("module " + (isInput ? "input" : "output") + "Type is " + contentTypeString);
}
SimpleModule sm = (SimpleModule) mo... | private void configureModuleConverters(String contentTypeString, Module module,
ConfigurableConversionService conversionService, boolean isInput) {
if (logger.isDebugEnabled()) {
logger.debug("module " + (isInput ? "input" : "output") + "Type is " + contentTypeString);
}
SimpleModule sm = (SimpleModule) mo... |
diff --git a/solr/src/java/org/apache/solr/handler/AnalysisRequestHandlerBase.java b/solr/src/java/org/apache/solr/handler/AnalysisRequestHandlerBase.java
index e4ab4601..fcd2dd1f 100644
--- a/solr/src/java/org/apache/solr/handler/AnalysisRequestHandlerBase.java
+++ b/solr/src/java/org/apache/solr/handler/AnalysisReque... | true | true | private List<NamedList> convertTokensToNamedLists(final List<AttributeSource> tokens, AnalysisContext context) {
final List<NamedList> tokensNamedLists = new ArrayList<NamedList>();
final int[] positions = new int[tokens.size()];
int position = 0;
for (int i = 0, c = tokens.size(); i < c; i++) {
... | private List<NamedList> convertTokensToNamedLists(final List<AttributeSource> tokens, AnalysisContext context) {
final List<NamedList> tokensNamedLists = new ArrayList<NamedList>();
final int[] positions = new int[tokens.size()];
int position = 0;
for (int i = 0, c = tokens.size(); i < c; i++) {
... |
diff --git a/src/exesoft/JSerializeWriterImpl.java b/src/exesoft/JSerializeWriterImpl.java
index b31dcb4..7246fa3 100644
--- a/src/exesoft/JSerializeWriterImpl.java
+++ b/src/exesoft/JSerializeWriterImpl.java
@@ -1,359 +1,359 @@
package exesoft;
import java.io.BufferedWriter;
import java.io.IOException;
import ja... | true | true | Map<String, Object> toMap(final Object ob) {
Map<String, Object> map = new HashMap<String, Object>();
if (ob != null) {
@SuppressWarnings("rawtypes")
Class c = ob.getClass();
for (Field field : getFields(c)) {
setPublic(field);
Object value;
if (ob instanceof List
|| ob instanceof Map
... | Map<String, Object> toMap(final Object ob) {
Map<String, Object> map = new HashMap<String, Object>();
if (ob != null) {
@SuppressWarnings("rawtypes")
Class c = ob.getClass();
for (Field field : getFields(c)) {
setPublic(field);
Object value;
if (ob instanceof List
|| ob instanceof Map
... |
diff --git a/src/core/java/org/wyona/yanel/core/ResourceTypeRegistry.java b/src/core/java/org/wyona/yanel/core/ResourceTypeRegistry.java
index aee22357e..decf6ec71 100644
--- a/src/core/java/org/wyona/yanel/core/ResourceTypeRegistry.java
+++ b/src/core/java/org/wyona/yanel/core/ResourceTypeRegistry.java
@@ -1,285 +1,28... | false | true | public void readResourceTypes() throws ConfigurationException {
try {
DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(true);
Configuration config;
config = builder.buildFromFile(resourceTypeConfigFile);
if (log.isDebugEnabled()) log.debug... | public void readResourceTypes() throws ConfigurationException {
try {
DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder(true);
Configuration config;
config = builder.buildFromFile(resourceTypeConfigFile);
if (log.isDebugEnabled()) log.debug... |
diff --git a/modules/weblounge-contentrepository/src/main/java/ch/entwine/weblounge/contentrepository/impl/index/SearchIndex.java b/modules/weblounge-contentrepository/src/main/java/ch/entwine/weblounge/contentrepository/impl/index/SearchIndex.java
index f0f7b7f6b..8abbfc5a2 100644
--- a/modules/weblounge-contentreposi... | false | true | public SearchResult getByQuery(SearchQuery query)
throws ContentRepositoryException {
logger.debug("Searching index using query '{}'", query);
// See if the index version exists and check if it matches.
String indexName = query.getSite().getIdentifier();
SearchRequestBuilder requestBuilder = n... | public SearchResult getByQuery(SearchQuery query)
throws ContentRepositoryException {
logger.debug("Searching index using query '{}'", query);
// See if the index version exists and check if it matches.
String indexName = query.getSite().getIdentifier();
SearchRequestBuilder requestBuilder = n... |
diff --git a/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JSFTemplateTest.java b/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JSFTemplateTest.java
index b28a3a5c9..cb096bd5e 100644
--- a/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JSFTemplateTest.java
+++ b/jsf/... | true | true | public void testJSFTemplate() throws Exception {
JSFTemplate template = JSFTemplate.getInstance();
ProjectVersions vs = template.getProjectVersions();
String[] versionList = vs.getVersionList();
Set<String> versionSet = toSet(versionList);
assertTrue(versionSet.contains("JSF 1.1.02 - Reference Implementatio... | public void testJSFTemplate() throws Exception {
JSFTemplate template = JSFTemplate.getInstance();
ProjectVersions vs = template.getProjectVersions();
String[] versionList = vs.getVersionList();
Set<String> versionSet = toSet(versionList);
assertTrue(versionSet.contains("JSF 1.1.02 - Reference Implementatio... |
diff --git a/src/minecraftSeed/MinecraftSeed.java b/src/minecraftSeed/MinecraftSeed.java
index 98c6066..328190a 100644
--- a/src/minecraftSeed/MinecraftSeed.java
+++ b/src/minecraftSeed/MinecraftSeed.java
@@ -1,491 +1,491 @@
/*
This software and it's source are distributed under the terms of the Modified BSD License,... | false | true | public void actionPerformed(ActionEvent arg0) {
//If a combobox item was selected
if(arg0.getSource() == combo)
{
int val = combo.getSelectedIndex();
//Make sure something was actually chosen
if(val > -1)
{
//Disable the save button
btnSave.setEnabled(false);
try {
selectedF... | public void actionPerformed(ActionEvent arg0) {
//If a combobox item was selected
if(arg0.getSource() == combo)
{
int val = combo.getSelectedIndex();
//Make sure something was actually chosen
if(val > -1)
{
//Disable the save button
btnSave.setEnabled(false);
try {
selectedF... |
diff --git a/transfuse-core/src/main/java/org/androidtransfuse/util/AnnotationUtil.java b/transfuse-core/src/main/java/org/androidtransfuse/util/AnnotationUtil.java
index edd7fa59..591e7a83 100644
--- a/transfuse-core/src/main/java/org/androidtransfuse/util/AnnotationUtil.java
+++ b/transfuse-core/src/main/java/org/and... | true | true | public static <T> T checkDefault(T input, T defaultValue) {
if (input.equals(defaultValue)) {
return null;
}
return input;
}
| public static <T> T checkDefault(T input, T defaultValue) {
if (input != null && input.equals(defaultValue)) {
return null;
}
return input;
}
|
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/factory/GTFSPatternHopFactory.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/factory/GTFSPatternHopFactory.java
index 840f6fa..4ea860e 100644
--- a/opentripplanner-routing/src/main/java/org/opentri... | false | true | public void run(Graph graph) {
clearCachedData();
/*
* For each trip, create either pattern edges, the entries in a trip pattern's list of
* departures, or simple hops
*/
// Load hops
Collection<Trip> trips = _dao.getAllTrips();
HashMap<StopPatt... | public void run(Graph graph) {
clearCachedData();
/*
* For each trip, create either pattern edges, the entries in a trip pattern's list of
* departures, or simple hops
*/
// Load hops
Collection<Trip> trips = _dao.getAllTrips();
HashMap<StopPatt... |
diff --git a/src/org/apache/xerces/dom/DOMNormalizer.java b/src/org/apache/xerces/dom/DOMNormalizer.java
index 44e20cfd8..4a7c4e1a4 100644
--- a/src/org/apache/xerces/dom/DOMNormalizer.java
+++ b/src/org/apache/xerces/dom/DOMNormalizer.java
@@ -1,2088 +1,2096 @@
/*
* Licensed to the Apache Software Foundation (ASF) ... | true | true | protected Node normalizeNode (Node node){
int type = node.getNodeType();
boolean wellformed;
fLocator.fRelatedNode=node;
switch (type) {
case Node.DOCUMENT_TYPE_NODE: {
if (DEBUG_ND) {
System.out.println("==>normalizeNode:{doctype... | protected Node normalizeNode (Node node){
int type = node.getNodeType();
boolean wellformed;
fLocator.fRelatedNode=node;
switch (type) {
case Node.DOCUMENT_TYPE_NODE: {
if (DEBUG_ND) {
System.out.println("==>normalizeNode:{doctype... |
diff --git a/src/kaygan/Interpreter.java b/src/kaygan/Interpreter.java
index d6ba599..53c4348 100644
--- a/src/kaygan/Interpreter.java
+++ b/src/kaygan/Interpreter.java
@@ -1,257 +1,257 @@
package kaygan;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.List;
import kaygan.ast.*;
pu... | true | true | protected static Object intrCallsite(Callsite c, Scope parentScope)
{
Exp first = c.contents.get(0);
Object o = interpret( first, parentScope );
// TODO how a call site is interpreted by its receiver
// really depends on the receiver...
//
// receiver: a: { b c | b + c }
// callsite: (... | protected static Object intrCallsite(Callsite c, Scope parentScope)
{
Exp first = c.contents.get(0);
Object o = interpret( first, parentScope );
// TODO how a call site is interpreted by its receiver
// really depends on the receiver...
//
// receiver: a: { b c | b + c }
// callsite: (... |
diff --git a/GUI/CardOrganizer.java b/GUI/CardOrganizer.java
index 32331ab..be660a5 100644
--- a/GUI/CardOrganizer.java
+++ b/GUI/CardOrganizer.java
@@ -1,724 +1,723 @@
package GUI;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import... | false | true | public CardOrganizer() throws InvalidKeyException, IOException {
String home = System.getProperty("user.home");
try{
System.setProperty("apple.laf.useScreenMenuBar", "true");
} catch (Exception ex) {
System.out.print("Not available in your OS");
}
//Create the menu bar.
menuBar = new JMenuBar();
... | public CardOrganizer() throws InvalidKeyException, IOException {
String home = System.getProperty("user.home");
try{
System.setProperty("apple.laf.useScreenMenuBar", "true");
} catch (Exception ex) {
System.out.print("Not available in your OS");
}
//Create the menu bar.
menuBar = new JMenuBar();
... |
diff --git a/src/map/MapSheeps.java b/src/map/MapSheeps.java
index f03751e..720e587 100644
--- a/src/map/MapSheeps.java
+++ b/src/map/MapSheeps.java
@@ -1,168 +1,168 @@
package map;
import main.Register;
import model.Sheep;
import model.SheepHistory;
import org.openstreetmap.gui.jmapviewer.MapMarkerDot;
import ... | false | true | public void setHistoricSheepPosition(int sheepid){
map.removeMarkers();
double lat, lon;
Color color = null;
SheepHistory history = register.getSheepHistory(sheepid);
if(history != null){
TreeMap<Long, Vec2> sheepHistory = history.getHistory();
Colle... | public void setHistoricSheepPosition(int sheepid){
map.removeMarkers();
double lat, lon;
Color color = null;
SheepHistory history = register.getSheepHistory(sheepid);
if(history != null){
TreeMap<Long, Vec2> sheepHistory = history.getHistory();
Colle... |
diff --git a/src/java-common/org/xins/util/text/DateConverter.java b/src/java-common/org/xins/util/text/DateConverter.java
index d4a1b18b6..fb7652fe5 100644
--- a/src/java-common/org/xins/util/text/DateConverter.java
+++ b/src/java-common/org/xins/util/text/DateConverter.java
@@ -1,136 +1,136 @@
/*
* $Id$
*/
pack... | true | true | public static String toDateString(TimeZone timeZone, long n) {
// Check preconditions
MandatoryArgumentChecker.check("timeZone", timeZone);
FastStringBuffer buffer = new FastStringBuffer(23);
Calendar calendar = Calendar.getInstance();
calendar.setTimeZone(timeZone);
calendar.s... | public static String toDateString(TimeZone timeZone, long n) {
// Check preconditions
MandatoryArgumentChecker.check("timeZone", timeZone);
FastStringBuffer buffer = new FastStringBuffer(23);
Calendar calendar = Calendar.getInstance();
calendar.setTimeZone(timeZone);
calendar.s... |
diff --git a/src/com/android/bluetooth/btservice/AdapterState.java b/src/com/android/bluetooth/btservice/AdapterState.java
old mode 100755
new mode 100644
index 2165da85..699676df
--- a/src/com/android/bluetooth/btservice/AdapterState.java
+++ b/src/com/android/bluetooth/btservice/AdapterState.java
@@ -1,394 +1,396 @@
... | true | true | public boolean processMessage(Message msg) {
boolean isTurningOn= isTurningOn();
boolean isTurningOff = isTurningOff();
AdapterService adapterService = mAdapterService;
AdapterProperties adapterProperties = mAdapterProperties;
if ((adapterService == ... | public boolean processMessage(Message msg) {
boolean isTurningOn= isTurningOn();
boolean isTurningOff = isTurningOff();
AdapterService adapterService = mAdapterService;
AdapterProperties adapterProperties = mAdapterProperties;
if ((adapterService == ... |
diff --git a/org.emftext.sdk/src/org/emftext/sdk/finders/ConcreteSyntaxByHintFinder.java b/org.emftext.sdk/src/org/emftext/sdk/finders/ConcreteSyntaxByHintFinder.java
index b4c2cf237..9b22839b5 100644
--- a/org.emftext.sdk/src/org/emftext/sdk/finders/ConcreteSyntaxByHintFinder.java
+++ b/org.emftext.sdk/src/org/emftext... | false | true | public IConcreteSyntaxFinderResult findConcreteSyntax(String csURI, String locationHint, Import container, ITextResource resource) {
final ResourceSet rs = new ResourceSetImpl();
if (locationHint == null) {
return null;
}
URI hintURI = null;
if(locationHint.contains(":")) {
//absolute path
hintUR... | public IConcreteSyntaxFinderResult findConcreteSyntax(String csURI, String locationHint, Import container, ITextResource resource) {
final ResourceSet rs = new ResourceSetImpl();
if (locationHint == null) {
return null;
}
URI hintURI = null;
if(locationHint.contains(":")) {
// locationHint is an abs... |
diff --git a/src/de/azapps/mirakel/main_activity/tasks_fragment/TasksFragment.java b/src/de/azapps/mirakel/main_activity/tasks_fragment/TasksFragment.java
index ba744f64..55746001 100644
--- a/src/de/azapps/mirakel/main_activity/tasks_fragment/TasksFragment.java
+++ b/src/de/azapps/mirakel/main_activity/tasks_fragment/... | true | true | protected void update(final boolean reset) {
if (!this.created) {
return;
}
this.listView = (ListView) this.view.findViewById(R.id.tasks_list);
this.adapter = new TaskAdapter(getActivity(),
new OnTaskChangedListner() {
@Override
public void onTaskChanged(final Task newTask) {
if (Mirak... | protected void update(final boolean reset) {
if (!this.created) {
return;
}
this.listView = (ListView) this.view.findViewById(R.id.tasks_list);
this.adapter = new TaskAdapter(getActivity(),
new OnTaskChangedListner() {
@Override
public void onTaskChanged(final Task newTask) {
if (Mirak... |
diff --git a/services/src/test/java/eu/delving/services/util/ZipUploader.java b/services/src/test/java/eu/delving/services/util/ZipUploader.java
index e7ea336f..22c1a176 100644
--- a/services/src/test/java/eu/delving/services/util/ZipUploader.java
+++ b/services/src/test/java/eu/delving/services/util/ZipUploader.java
@... | true | true | private void uploadFile(File file) throws IOException {
HttpClient httpClient = new DefaultHttpClient();
String postUrl = "http://localhost:8888/services/meta/submit/" + file.getName();
log.info("Posting to: "+postUrl);
HttpPost httpPost = new HttpPost(postUrl);
FileEntity fi... | private void uploadFile(File file) throws IOException {
HttpClient httpClient = new DefaultHttpClient();
String postUrl = "http://localhost:8983/services/meta/submit/" + file.getName();
log.info("Posting to: "+postUrl);
HttpPost httpPost = new HttpPost(postUrl);
FileEntity fi... |
diff --git a/swing-application-impl/src/main/java/org/cytoscape/internal/actions/welcomescreen/HelpPanel.java b/swing-application-impl/src/main/java/org/cytoscape/internal/actions/welcomescreen/HelpPanel.java
index 183d879ae..04c953872 100644
--- a/swing-application-impl/src/main/java/org/cytoscape/internal/actions/wel... | false | true | private void initComponents() {
this.setLayout(new GridLayout(4, 1));
about = new JLabel(" About Cytoscape >>");
manual = new JLabel(" User Manual >>");
tutorial = new JLabel(" Tutorials >>");
bugReport = new JLabel(" Report a bug >>");
// get Cytoscape version
String cyversion = this.... | private void initComponents() {
this.setLayout(new GridLayout(4, 1));
about = new JLabel(" About Cytoscape >>");
manual = new JLabel(" User Documentation >>");
tutorial = new JLabel(" Tutorials >>");
bugReport = new JLabel(" Report a bug >>");
// get Cytoscape version
String cyversion ... |
diff --git a/src/main/java/mobisocial/cocoon/server/AMQPush.java b/src/main/java/mobisocial/cocoon/server/AMQPush.java
index b5ff1ce..bf0d65e 100644
--- a/src/main/java/mobisocial/cocoon/server/AMQPush.java
+++ b/src/main/java/mobisocial/cocoon/server/AMQPush.java
@@ -1,482 +1,482 @@
package mobisocial.cocoon.server;
... | true | true | void amqp() throws Throwable {
final PushQueue dev_queue = Push.queue("push.p12", "pusubi", false, 1);
dev_queue.start();
final PushQueue prod_queue = Push.queue("pushprod.p12", "pusubi", true, 1);
prod_queue.start();
for(;;) {
ConnectionFactory connectionFactory = new ConnectionFa... | void amqp() throws Throwable {
final PushQueue dev_queue = Push.queue("push.p12", "pusubi", false, 1);
dev_queue.start();
final PushQueue prod_queue = Push.queue("pushprod.p12", "pusubi", true, 1);
prod_queue.start();
for(;;) {
ConnectionFactory connectionFactory = new ConnectionFa... |
diff --git a/src/org/varoa/soundcloud/handlers/ProgressHandler.java b/src/org/varoa/soundcloud/handlers/ProgressHandler.java
index 7ce3ac4..8810760 100644
--- a/src/org/varoa/soundcloud/handlers/ProgressHandler.java
+++ b/src/org/varoa/soundcloud/handlers/ProgressHandler.java
@@ -1,41 +1,41 @@
package org.varoa.soundc... | true | true | final public void handle(final HttpRequest request, final HttpAsyncExchange httpexchange, final HttpContext context) throws HttpException, IOException {
String sessionId = SessionExtractor.extractSession(context);
Float progress = UploadRequestTracker.getInstance().getUploadProgressPercent(sessionId);
log.info("... | final public void handle(final HttpRequest request, final HttpAsyncExchange httpexchange, final HttpContext context) throws HttpException, IOException {
String sessionId = SessionExtractor.extractSession(context);
Float progress = UploadRequestTracker.getInstance().getUploadProgressPercent(sessionId);
log.debug(... |
diff --git a/src/com/ePark/http_json/HttpPoster.java b/src/com/ePark/http_json/HttpPoster.java
index 41bf021..c595f8a 100644
--- a/src/com/ePark/http_json/HttpPoster.java
+++ b/src/com/ePark/http_json/HttpPoster.java
@@ -1,192 +1,192 @@
/*
* To change this template, choose Tools | Templates
* and open the template... | true | true | private JSONObject postEvent(String request_type, JSONObject jsonIn) throws java.net.SocketTimeoutException, MessageTypeException,
java.net.MalformedURLException, IOException, ParkingException {
formatUrl(request_type, jsonIn);
url = Config.url;
if (request_type.equals("event"))... | private JSONObject postEvent(String request_type, JSONObject jsonIn) throws java.net.SocketTimeoutException, MessageTypeException,
java.net.MalformedURLException, IOException, ParkingException {
formatUrl(request_type, jsonIn);
url = Config.url;
if (request_type.equals("event"))... |
diff --git a/src/main/java/org/spout/api/command/CommandContext.java b/src/main/java/org/spout/api/command/CommandContext.java
index a083cf73d..9916b5152 100644
--- a/src/main/java/org/spout/api/command/CommandContext.java
+++ b/src/main/java/org/spout/api/command/CommandContext.java
@@ -1,379 +1,385 @@
/*
* This fi... | false | true | public CommandContext(String command, List<ChatSection> args, TCharSet valueFlags) throws CommandException {
if (valueFlags == null) {
valueFlags = new TCharHashSet();
}
originalArgs = args;
this.command = command;
// Eliminate empty args and combine multiword args first
TIntList argIndexList = new TIn... | public CommandContext(String command, List<ChatSection> args, TCharSet valueFlags) throws CommandException {
if (valueFlags == null) {
valueFlags = new TCharHashSet();
}
originalArgs = args;
this.command = command;
// Eliminate empty args and combine multiword args first
TIntList argIndexList = new TIn... |
diff --git a/src/com/feup/sfs/facility/Roller.java b/src/com/feup/sfs/facility/Roller.java
index c1ad328..3f2eb15 100644
--- a/src/com/feup/sfs/facility/Roller.java
+++ b/src/com/feup/sfs/facility/Roller.java
@@ -1,170 +1,170 @@
/*
* This file is part of ShopFloorSimulator.
*
* ShopFloorSimulator is free softwa... | true | true | public Roller(Properties properties, int id) throws FactoryInitializationException {
super(id);
this.name = "Roller";
setCenterX(new Double(properties.getProperty("facility."+id+".center.x")).doubleValue());
setCenterY(new Double(properties.getProperty("facility."+id+".center.y")).doubleValue());
length = n... | public Roller(Properties properties, int id) throws FactoryInitializationException {
super(id);
this.name = "Roller";
setCenterX(new Double(properties.getProperty("facility."+id+".center.x")).doubleValue());
setCenterY(new Double(properties.getProperty("facility."+id+".center.y")).doubleValue());
length = n... |
diff --git a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/launch/setup/SSHClient.java b/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/internal/tcf/debug/ui/launch/setup/SSHClient.java
index c56bb4ad7..1cbc31059 100644
--- a/plugins/org.eclipse.tm.tcf.debug.ui/src/org/eclipse/tm/... | true | true | SSHClient(final Shell parent, String host, String user, final String password) throws Exception {
BundleContext ctx = Activator.getDefault().getBundle().getBundleContext();
ServiceReference ref = ctx.getServiceReference(IJSchService.class.getName());
IJSchService s = (IJSchService)ctx.getSer... | SSHClient(final Shell parent, String host, String user, final String password) throws Exception {
BundleContext ctx = Activator.getDefault().getBundle().getBundleContext();
ServiceReference ref = ctx.getServiceReference(IJSchService.class.getName());
IJSchService s = (IJSchService)ctx.getSer... |
diff --git a/src/uk/org/ownage/dmdirc/parser/ProcessListModes.java b/src/uk/org/ownage/dmdirc/parser/ProcessListModes.java
index 4208677bd..98ffb99d4 100644
--- a/src/uk/org/ownage/dmdirc/parser/ProcessListModes.java
+++ b/src/uk/org/ownage/dmdirc/parser/ProcessListModes.java
@@ -1,167 +1,167 @@
/*
* Copyright (c) 2... | false | true | public void process(String sParam, String[] token) {
ChannelInfo channel = getChannelInfo(token[3]);
String thisIRCD = myParser.getIRCD(true).toLowerCase();
String item = "";
String owner = "";
byte tokenStart = 4; // Where do the relevent tokens start?
boolean isCleverMode = false;
long time = 0;
char... | public void process(String sParam, String[] token) {
ChannelInfo channel = getChannelInfo(token[3]);
String thisIRCD = myParser.getIRCD(true).toLowerCase();
String item = "";
String owner = "";
byte tokenStart = 4; // Where do the relevent tokens start?
boolean isCleverMode = false;
long time = 0;
char... |
diff --git a/achartengine/src/org/achartengine/chart/LineChart.java b/achartengine/src/org/achartengine/chart/LineChart.java
index 96c981e..2c45898 100644
--- a/achartengine/src/org/achartengine/chart/LineChart.java
+++ b/achartengine/src/org/achartengine/chart/LineChart.java
@@ -1,170 +1,175 @@
/**
* Copyright (C) ... | true | true | public void drawSeries(Canvas canvas, Paint paint, float[] points,
SimpleSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, int startIndex) {
int length = points.length;
XYSeriesRenderer renderer = (XYSeriesRenderer) seriesRenderer;
float lineWidth = paint.getStrokeWidth();
paint.... | public void drawSeries(Canvas canvas, Paint paint, float[] points,
SimpleSeriesRenderer seriesRenderer, float yAxisValue, int seriesIndex, int startIndex) {
int length = points.length;
XYSeriesRenderer renderer = (XYSeriesRenderer) seriesRenderer;
float lineWidth = paint.getStrokeWidth();
paint.... |
diff --git a/ActiveObjects/src/net/java/ao/schema/ddl/DDLAction.java b/ActiveObjects/src/net/java/ao/schema/ddl/DDLAction.java
index ce99721..654affd 100644
--- a/ActiveObjects/src/net/java/ao/schema/ddl/DDLAction.java
+++ b/ActiveObjects/src/net/java/ao/schema/ddl/DDLAction.java
@@ -1,127 +1,127 @@
/*
* Copyright 2... | true | true | public int hashCode() {
int back = 0;
if (actionType != null) {
back += actionType.hashCode();
}
if (table != null) {
back += table.hashCode();
}
if (oldField != null) {
back += oldField.hashCode();
}
if (field != null) {
back += field.hashCode();
}
if (key != null) {
back += key.... | public int hashCode() {
int back = 0;
if (actionType != null) {
back += actionType.hashCode();
}
if (table != null) {
back += table.hashCode();
}
if (oldField != null) {
back += oldField.hashCode();
}
if (field != null) {
back += field.hashCode();
}
if (key != null) {
back += key.... |
diff --git a/src/main/java/vazkii/tinkerer/common/research/ModResearch.java b/src/main/java/vazkii/tinkerer/common/research/ModResearch.java
index b85a392b..e50c84b1 100644
--- a/src/main/java/vazkii/tinkerer/common/research/ModResearch.java
+++ b/src/main/java/vazkii/tinkerer/common/research/ModResearch.java
@@ -1,281... | true | true | public static void initResearch() {
registerResearchPages();
ResearchItem research;
research = new TTResearchItem(LibResearch.KEY_DARK_QUARTZ, LibResearch.CATEGORY_THAUMICTINKERER, new AspectList(), 2, 4, 0, new ItemStack(ModItems.darkQuartz)).setStub().setAutoUnlock().setRound().registerResearchItem();
rese... | public static void initResearch() {
registerResearchPages();
ResearchItem research;
research = new TTResearchItem(LibResearch.KEY_DARK_QUARTZ, LibResearch.CATEGORY_THAUMICTINKERER, new AspectList(), 2, 4, 0, new ItemStack(ModItems.darkQuartz)).setStub().setAutoUnlock().setRound().registerResearchItem();
rese... |
diff --git a/src/java/org/codehaus/groovy/grails/commons/ConfigurationHolder.java b/src/java/org/codehaus/groovy/grails/commons/ConfigurationHolder.java
index e6d979e7b..570177347 100644
--- a/src/java/org/codehaus/groovy/grails/commons/ConfigurationHolder.java
+++ b/src/java/org/codehaus/groovy/grails/commons/Configur... | true | true | public static synchronized void setConfig(ConfigObject newConfig) {
config = newConfig;
// reset flat config
if (newConfig != null) {
flatConfig = newConfig.flatten();
}
}
| public static synchronized void setConfig(ConfigObject newConfig) {
config = newConfig;
// reset flat config
if (newConfig != null) {
flatConfig = newConfig.flatten();
} else {
flatConfig = null;
}
}
|
diff --git a/dc_common/mods/minecraft/darth/dc/block/ModBlocks.java b/dc_common/mods/minecraft/darth/dc/block/ModBlocks.java
index d93c105..af783be 100644
--- a/dc_common/mods/minecraft/darth/dc/block/ModBlocks.java
+++ b/dc_common/mods/minecraft/darth/dc/block/ModBlocks.java
@@ -1,40 +1,40 @@
package mods.minecraft.d... | true | true | public static void init()
{
//Initialize each block
unknownOre = new BlockUnknownOre(BlockIDs.UNKNOWN_ORE);
//GameRegistry Initialization
GameRegistry.registerBlock(unknownOre, Strings.UNKNOWN_ORE_NAME);
MinecraftForge.setBlockHarvestLe... | public static void init()
{
//Initialize each block
unknownOre = new BlockUnknownOre(BlockIDs.UNKNOWN_ORE);
//GameRegistry Initialization
GameRegistry.registerBlock(unknownOre, Strings.UNKNOWN_ORE_NAME);
MinecraftForge.setBlockHarvestLe... |
diff --git a/src/tice/twitterwalk/List/ItemAdapter.java b/src/tice/twitterwalk/List/ItemAdapter.java
index 3f1501d..d7e6c77 100644
--- a/src/tice/twitterwalk/List/ItemAdapter.java
+++ b/src/tice/twitterwalk/List/ItemAdapter.java
@@ -1,472 +1,473 @@
package tice.twitterwalk.List;
import java.util.ArrayList;
import ... | true | true | synchronized public View getView(int position, View convertView, ViewGroup parent) {
if(position >= mItem.size()) return convertView;
ViewHolder holder;
TwitterItem item = mItem.get(position);
if (convertView == null) {
convertView = mInflater.inflate(R.layout.list_item, ... | synchronized public View getView(int position, View convertView, ViewGroup parent) {
if(position >= mItem.size()) return convertView;
ViewHolder holder;
TwitterItem item = mItem.get(position);
if (convertView == null) {
convertView = mInflater.inflate(R.layout.list_item, ... |
diff --git a/webapp/WEB-INF/classes/org/makumba/parade/auth/LDAPAuthorizer.java b/webapp/WEB-INF/classes/org/makumba/parade/auth/LDAPAuthorizer.java
index c1880d1..5603765 100644
--- a/webapp/WEB-INF/classes/org/makumba/parade/auth/LDAPAuthorizer.java
+++ b/webapp/WEB-INF/classes/org/makumba/parade/auth/LDAPAuthorizer.... | true | true | public boolean auth(String username, String password) throws Exception {
if (username.equals(""))
return false;
int ldapPort = LDAPConnection.DEFAULT_PORT;
int ldapVersion = LDAPConnection.LDAP_V3;
LDAPConnection lc = new LDAPConnection();
String loginDN = "ui... | public boolean auth(String username, String password) throws Exception {
if (username.equals(""))
return false;
int ldapPort = LDAPConnection.DEFAULT_PORT;
int ldapVersion = LDAPConnection.LDAP_V3;
LDAPConnection lc = new LDAPConnection();
String loginDN = "ui... |
diff --git a/javasrc/src/org/ccnx/ccn/test/profiles/security/TestUserData.java b/javasrc/src/org/ccnx/ccn/test/profiles/security/TestUserData.java
index 9c32cc002..2202d57d5 100644
--- a/javasrc/src/org/ccnx/ccn/test/profiles/security/TestUserData.java
+++ b/javasrc/src/org/ccnx/ccn/test/profiles/security/TestUserData.... | true | true | public static void main(String [] args) {
boolean useRepo = false;
File directory = null;
ContentName userNamespace = null;
boolean publishKeysToRepo = true;
Flosser flosser = null;
String [] userNames = null;
TestUserData td = null;
int arg = 0;
if (args.length < 2) {
usage();
return;
... | public static void main(String [] args) {
boolean useRepo = false;
File directory = null;
ContentName userNamespace = null;
boolean publishKeysToRepo = true;
Flosser flosser = null;
String [] userNames = null;
TestUserData td = null;
int arg = 0;
if (args.length < 2) {
usage();
return;
... |
diff --git a/modules/activiti-engine/src/main/java/org/activiti/engine/ProcessEngines.java b/modules/activiti-engine/src/main/java/org/activiti/engine/ProcessEngines.java
index 39171b7f6..0cc058e73 100644
--- a/modules/activiti-engine/src/main/java/org/activiti/engine/ProcessEngines.java
+++ b/modules/activiti-engine/s... | false | true | public synchronized static void init() {
if (!isInitialized) {
if(processEngines == null) {
// Create new map to store process-engines if current map is null
processEngines = new HashMap<String, ProcessEngine>();
}
ClassLoader classLoader = ReflectUtil.getClassLoader();
... | public synchronized static void init() {
if (!isInitialized) {
if(processEngines == null) {
// Create new map to store process-engines if current map is null
processEngines = new HashMap<String, ProcessEngine>();
}
ClassLoader classLoader = ReflectUtil.getClassLoader();
... |
diff --git a/forge/mcp/src/minecraft/epic/zirc/EntityZirc.java b/forge/mcp/src/minecraft/epic/zirc/EntityZirc.java
index f674473..99e2736 100644
--- a/forge/mcp/src/minecraft/epic/zirc/EntityZirc.java
+++ b/forge/mcp/src/minecraft/epic/zirc/EntityZirc.java
@@ -1,81 +1,85 @@
package epic.zirc;
import net.minecraft.c... | false | true | protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
{
if (par1MovingObjectPosition.entityHit != null)
{
byte b0 = 3; //damage
//damage set death message � LATER!
par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)b0);
... | protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
{
if (par1MovingObjectPosition.entityHit != null)
{
byte b0 = 3; //damage
//damage set death message � LATER!
par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), (float)b0);
... |
diff --git a/src/main/java/br/com/caelum/seleniumdsl/htmlunit/HtmlUnitForm.java b/src/main/java/br/com/caelum/seleniumdsl/htmlunit/HtmlUnitForm.java
index b9fc1dc..dd24835 100644
--- a/src/main/java/br/com/caelum/seleniumdsl/htmlunit/HtmlUnitForm.java
+++ b/src/main/java/br/com/caelum/seleniumdsl/htmlunit/HtmlUnitForm.... | true | true | public void submit() {
try {
HtmlSubmitInput submit = form.getFirstByXPath("//input[@type='submit']");
parent.setPage((HtmlPage) submit.click());
} catch (IOException e) {
new IllegalStateException("Error while clicking", e);
}
}
| public void submit() {
try {
HtmlSubmitInput submit = (HtmlSubmitInput) form.getElementsByAttribute("input", "type", "submit").get(0);
parent.setPage((HtmlPage) submit.click());
} catch (IOException e) {
new IllegalStateException("Error while clicking", e);
}
}
|
diff --git a/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmith/xtext/dommodel/formatter/css/StyleSetWithTracking.java b/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmith/xtext/dommodel/formatter/css/StyleSetWithTracking.java
index 91004f39..8059143f 100644
--- a/org.cloudsmith.geppetto.pp.dsl/src/org/cloudsmith/xtext/d... | true | true | public StyleSet add(StyleSet map) {
StyleSet result = super.add(map);
if(sourceMap == null)
sourceMap = new HashMap<Class<?>, Rule>();
for(Class<?> clazz : map.styleMap.keySet())
sourceMap.put(clazz, source);
return result;
}
| public StyleSet add(StyleSet map) {
StyleSet result = super.add(map);
if(sourceMap == null)
sourceMap = new HashMap<Class<?>, Rule>();
if(map.styleMap != null)
for(Class<?> clazz : map.styleMap.keySet())
sourceMap.put(clazz, source);
return result;
}
|
diff --git a/src/com/danga/MemCached/MemCachedClient.java b/src/com/danga/MemCached/MemCachedClient.java
index 36b51c7..ff6a107 100644
--- a/src/com/danga/MemCached/MemCachedClient.java
+++ b/src/com/danga/MemCached/MemCachedClient.java
@@ -1,2128 +1,2129 @@
/**
* MemCached Java client
* Copyright (c) 2007 Greg Wh... | true | true | private void loadItemsNIO( Map<String,StringBuilder> cmdMap, Map<String,Object> ret, boolean asString, String[] keys ) {
// selector for our channels
Selector selector = null;
try {
selector = SelectorProvider.provider().openSelector();
}
catch ( IOException e ) {
// if we have an errorHandler, use it... | private void loadItemsNIO( Map<String,StringBuilder> cmdMap, Map<String,Object> ret, boolean asString, String[] keys ) {
// selector for our channels
Selector selector = null;
try {
selector = SelectorProvider.provider().openSelector();
}
catch ( IOException e ) {
// if we have an errorHandler, use it... |
diff --git a/Poker/src/poker/GUI/Login.java b/Poker/src/poker/GUI/Login.java
index 3d42e32..4ca6a8b 100644
--- a/Poker/src/poker/GUI/Login.java
+++ b/Poker/src/poker/GUI/Login.java
@@ -1,228 +1,229 @@
package poker.GUI;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.e... | false | true | public void actionPerformed(ActionEvent e) {
System.out.println(e.getActionCommand());
if("connect".equals(e.getActionCommand())){
if(buttonConnect.getText().equals("Connect")){
if(textName.getText().length() >= 3 && textName.getText().length() <= 15){
PlayerNa... | public void actionPerformed(ActionEvent e) {
System.out.println(e.getActionCommand());
if("connect".equals(e.getActionCommand())){
if(buttonConnect.getText().equals("Connect")){
if(textName.getText().length() >= 3 && textName.getText().length() <= 15){
PlayerNa... |
diff --git a/org.eclipse.virgo.web.enterprise.security/src/main/java/org/eclipse/virgo/web/enterprise/security/StandardSecurityService.java b/org.eclipse.virgo.web.enterprise.security/src/main/java/org/eclipse/virgo/web/enterprise/security/StandardSecurityService.java
index 79adcce..a7dd445 100755
--- a/org.eclipse.vir... | true | true | public boolean isCallerInRole(String role) {
if (role == null)
throw new IllegalArgumentException("Role must not be null");
ThreadContext threadContext = ThreadContext.getThreadContext();
SecurityContext securityContext = threadContext
.get(SecurityContext.class);
Field field;
try {
field = secur... | public boolean isCallerInRole(String role) {
if (role == null)
throw new IllegalArgumentException("Role must not be null");
ThreadContext threadContext = ThreadContext.getThreadContext();
SecurityContext securityContext = threadContext
.get(SecurityContext.class);
Field field;
try {
field = secur... |
diff --git a/src/main/java/org/dynmap/DynmapWebChatEvent.java b/src/main/java/org/dynmap/DynmapWebChatEvent.java
index 0a55a92..dfc1db0 100644
--- a/src/main/java/org/dynmap/DynmapWebChatEvent.java
+++ b/src/main/java/org/dynmap/DynmapWebChatEvent.java
@@ -1,51 +1,50 @@
package org.dynmap;
import org.bukkit.event.Can... | true | true | public DynmapWebChatEvent(String source, String name, String message) {
super(CUSTOM_TYPE);
this.source = source;
this.name = name;
this.message = message;
this.cancelled = false;
this.isprocessed = false;
}
| public DynmapWebChatEvent(String source, String name, String message) {
this.source = source;
this.name = name;
this.message = message;
this.cancelled = false;
this.isprocessed = false;
}
|
diff --git a/src/main/java/modules/ReloadingJSConfModule.java b/src/main/java/modules/ReloadingJSConfModule.java
index 53188c8..ca60d92 100644
--- a/src/main/java/modules/ReloadingJSConfModule.java
+++ b/src/main/java/modules/ReloadingJSConfModule.java
@@ -1,116 +1,116 @@
package modules;
import com.google.inject.*... | true | true | public ReloadingJSConfModule(final String scriptFolder) throws IOException
{
final Provider<Configuration> confLoader = new Provider<Configuration>() {
@Override public Configuration get() {
try
{
return new JavascriptConfiguration(new File... | public ReloadingJSConfModule(final String scriptFolder) throws IOException
{
final Provider<Configuration> confLoader = new Provider<Configuration>() {
@Override public Configuration get() {
try
{
return new JavascriptConfiguration(new File... |
diff --git a/src/main/hivemall/classifier/AROWClassifierUDTF.java b/src/main/hivemall/classifier/AROWClassifierUDTF.java
index b4b16720..88ba79e1 100644
--- a/src/main/hivemall/classifier/AROWClassifierUDTF.java
+++ b/src/main/hivemall/classifier/AROWClassifierUDTF.java
@@ -1,148 +1,148 @@
/*
* Hivemall: Hive scalab... | true | true | protected void update(final List<?> features, final float y, final float alpha, final float beta) {
final ObjectInspector featureInspector = featureListOI.getListElementObjectInspector();
for(Object f : features) {
final Object k;
final float v;
if(parseX) {
... | protected void update(final List<?> features, final int y, final float alpha, final float beta) {
final ObjectInspector featureInspector = featureListOI.getListElementObjectInspector();
for(Object f : features) {
final Object k;
final float v;
if(parseX) {
... |
diff --git a/src/org/hackystat/projectbrowser/ProjectBrowserProperties.java b/src/org/hackystat/projectbrowser/ProjectBrowserProperties.java
index 7a9a5ff..cd5c3c4 100644
--- a/src/org/hackystat/projectbrowser/ProjectBrowserProperties.java
+++ b/src/org/hackystat/projectbrowser/ProjectBrowserProperties.java
@@ -1,303 +... | true | true | private void initializeProperties (Properties testProperties) throws Exception {
String userHome = System.getProperty("user.home");
String propFile = userHome + "/.hackystat/projectbrowser/projectbrowser.properties";
this.properties = new Properties();
// Set defaults.
properties.setProperty(SENSO... | private void initializeProperties (Properties testProperties) throws Exception {
String userHome = System.getProperty("user.home");
String propFile = userHome + "/.hackystat/projectbrowser/projectbrowser.properties";
this.properties = new Properties();
// Set defaults.
properties.setProperty(SENSO... |
diff --git a/jmock2/src/org/jmock/internal/InvocationExpectation.java b/jmock2/src/org/jmock/internal/InvocationExpectation.java
index 3841bfd7..8c0bdc54 100644
--- a/jmock2/src/org/jmock/internal/InvocationExpectation.java
+++ b/jmock2/src/org/jmock/internal/InvocationExpectation.java
@@ -1,133 +1,133 @@
package org.... | true | true | public void describeTo(Description description) {
if (name != null) {
description.appendText(name);
description.appendText(" = ");
}
cardinality.describeTo(description);
description.appendText(", invoked ");
description.appendText(Integer.toSt... | public void describeTo(Description description) {
if (name != null) {
description.appendText(name);
description.appendText(" = ");
}
cardinality.describeTo(description);
description.appendText(", already invoked ");
description.appendText(Inte... |
diff --git a/c05_web_services_restful/bookmark-app/src/main/java/fr/epsi/i4/bookmark/web/BookmarksResponse.java b/c05_web_services_restful/bookmark-app/src/main/java/fr/epsi/i4/bookmark/web/BookmarksResponse.java
index da0e267..abf1357 100644
--- a/c05_web_services_restful/bookmark-app/src/main/java/fr/epsi/i4/bookmark... | false | true | public void addNavigationLinks(UriBuilder uriBuilder) {
UriBuilder navUriBuilder = uriBuilder.replaceQueryParam("startIndex", "{startIndex}");
if (this.startIndex > 0) {
int previousIndex = Math.max(0, this.startIndex - this.itemCount);
this.navigationLinks.add(new Link(navUriBuilder.build(previousIndex),"pr... | public void addNavigationLinks(UriBuilder uriBuilder) {
UriBuilder navUriBuilder = uriBuilder.clone().replaceQueryParam("startIndex", "{startIndex}");
if (this.startIndex > 0) {
int previousIndex = Math.max(0, this.startIndex - this.itemCount);
this.navigationLinks.add(new Link(navUriBuilder.build(previousIn... |
diff --git a/src/main/java/amu/licence/edt/view/ScheduleStatusPanel.java b/src/main/java/amu/licence/edt/view/ScheduleStatusPanel.java
index a273e52..a2e5c77 100644
--- a/src/main/java/amu/licence/edt/view/ScheduleStatusPanel.java
+++ b/src/main/java/amu/licence/edt/view/ScheduleStatusPanel.java
@@ -1,63 +1,63 @@
pack... | true | true | protected JComponent createComponent() {
JPanel panel = new JPanel(new FlowLayout());
btnLeft = new JButton("left");
btnLeft.addActionListener(null);
btnRight = new JButton("right");
btnRight.addActionListener(null);
label = new JLabel(DFLT_LBL_TXT);
dateF... | protected JComponent createComponent() {
JPanel panel = new JPanel(new FlowLayout());
btnLeft = new JButton("left");
btnLeft.addActionListener(null);
btnRight = new JButton("right");
btnRight.addActionListener(null);
label = new JLabel(DFLT_LBL_TXT);
dateF... |
diff --git a/sm/src/main/java/com/semaphore/sm/TabCPUFragment.java b/sm/src/main/java/com/semaphore/sm/TabCPUFragment.java
index fb33858..dfb10c1 100644
--- a/sm/src/main/java/com/semaphore/sm/TabCPUFragment.java
+++ b/sm/src/main/java/com/semaphore/sm/TabCPUFragment.java
@@ -1,866 +1,866 @@
/* Semaphore Manager
* ... | true | true | private void writeI9000(SharedPreferences sharedPreferences, String key) {
SemaI9000Properties sp = (SemaI9000Properties) scp;
Preference pref = findPreference(key);
if (pref instanceof ListPreference) {
ListPreference listPref = (ListPreference) pref;
if (listPref.getEntry() != null)
pref.setSummary... | private void writeI9000(SharedPreferences sharedPreferences, String key) {
SemaI9000Properties sp = (SemaI9000Properties) scp;
Preference pref = findPreference(key);
if (pref instanceof ListPreference) {
ListPreference listPref = (ListPreference) pref;
if (listPref.getEntry() != null)
pref.setSummary... |
diff --git a/src/com/herocraftonline/dev/heroes/spout/SpoutInventoryListener.java b/src/com/herocraftonline/dev/heroes/spout/SpoutInventoryListener.java
index 69b93598..99f7f211 100644
--- a/src/com/herocraftonline/dev/heroes/spout/SpoutInventoryListener.java
+++ b/src/com/herocraftonline/dev/heroes/spout/SpoutInventor... | false | true | public void onInventoryCraft(InventoryCraftEvent event) {
if (event.getResult() == null)
return;
if (event.isShiftClick() && event.getPlayer().getInventory().firstEmpty() == -1)
return;
if (!event.isShiftClick() && event.getCursor() != null && event.... | public void onInventoryCraft(InventoryCraftEvent event) {
if (event.getResult() == null)
return;
if (event.isShiftClick() && event.getPlayer().getInventory().firstEmpty() == -1)
return;
if (!event.isShiftClick() && event.getCursor() != null && event.... |
diff --git a/proj/TXNPacket.java b/proj/TXNPacket.java
index 7af0e1f..a1b1bc0 100644
--- a/proj/TXNPacket.java
+++ b/proj/TXNPacket.java
@@ -1,103 +1,103 @@
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOE... | false | true | public static TXNPacket unpack(byte[] packet) {
try {
DataInputStream in = new DataInputStream(new ByteArrayInputStream(packet));
Integer protocol = new Integer( in.readByte() );
byte[] payload = new byte[packet.length - HEADER_SIZE];
int bytesRead = in.read(payload, 0, payload.length);
if ( protoc... | public static TXNPacket unpack(byte[] packet) {
try {
DataInputStream in = new DataInputStream(new ByteArrayInputStream(packet));
int protocol = in.readByte();
byte[] payload = new byte[packet.length - HEADER_SIZE];
int bytesRead = in.read(payload, 0, payload.length);
if ( bytesRead != payload.leng... |
diff --git a/src/org/rascalmpl/library/lang/java/m3/internal/JavaToRascalConverter.java b/src/org/rascalmpl/library/lang/java/m3/internal/JavaToRascalConverter.java
index b8f74a8c58..b6f78323ad 100644
--- a/src/org/rascalmpl/library/lang/java/m3/internal/JavaToRascalConverter.java
+++ b/src/org/rascalmpl/library/lang/j... | true | true | protected ISourceLocation getSourceLocation(ASTNode node) {
try {
int nodeLength = compilUnit.getExtendedLength(node);
if (nodeLength > 0) {
int start = compilUnit.getExtendedStartPosition(node);
int end = start + nodeLength -1;
if (end < start && ((node.getFlags() & 9) > 0)) {
System... | protected ISourceLocation getSourceLocation(ASTNode node) {
try {
int nodeLength = compilUnit.getExtendedLength(node);
if (nodeLength > 0) {
int start = compilUnit.getExtendedStartPosition(node);
int end = start + nodeLength -1;
if (end < start && ((node.getFlags() & 9) > 0)) {
System... |
diff --git a/framework/src/main/java/org/richfaces/ui/output/chart/NumberChartDataModel.java b/framework/src/main/java/org/richfaces/ui/output/chart/NumberChartDataModel.java
index 9025fd1bc..204a9f786 100644
--- a/framework/src/main/java/org/richfaces/ui/output/chart/NumberChartDataModel.java
+++ b/framework/src/main/... | true | true | public NumberChartDataModel(ChartType type) {
super(type);
switch (type) {
case line:
strategy = new LineStrategy();
break;
case bar:
strategy = new BarStrategy();
break;
default:
throw new IllegalArgumentException(t... | public NumberChartDataModel(ChartType type) {
super(type);
switch (type) {
case line:
strategy = new LineStrategy();
break;
case bar:
strategy = new BarStrategy();
break;
default:
throw new IllegalArgumentException(t... |
diff --git a/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/FindAllPersistentMethod.java b/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/FindAllPersistentMethod.java
index 8a43ae744..ba909c7b1 100644
--- a/grails/src/persistence/org/codehaus/groovy/grails/orm/hiber... | true | true | protected Object doInvokeInternal(final Class clazz, String methodName, final Object[] arguments) {
if (arguments.length == 0)
return getHibernateTemplate().loadAll(clazz);
final Object arg = arguments[0] instanceof GString ? arguments[0].toString() : arguments[0];
// if the arg is an instance of th... | protected Object doInvokeInternal(final Class clazz, String methodName, final Object[] arguments) {
if (arguments.length == 0)
return getHibernateTemplate().loadAll(clazz);
final Object arg = arguments[0] instanceof GString ? arguments[0].toString() : arguments[0];
// if the arg is an instance of th... |
diff --git a/management/src/main/java/org/apache/karaf/cellar/management/internal/CellarBundleMBeanImpl.java b/management/src/main/java/org/apache/karaf/cellar/management/internal/CellarBundleMBeanImpl.java
index fdcb46b7..f6cb41f2 100644
--- a/management/src/main/java/org/apache/karaf/cellar/management/internal/Cellar... | true | true | public TabularData getBundles(String groupName) throws Exception {
CompositeType compositeType = new CompositeType("Bundle", "Karaf Cellar bundle",
new String[]{"id", "name", "version", "status", "location"},
new String[]{"ID of the bundle", "Name of the bundle", "Version of ... | public TabularData getBundles(String groupName) throws Exception {
CompositeType compositeType = new CompositeType("Bundle", "Karaf Cellar bundle",
new String[]{"id", "name", "version", "status", "location"},
new String[]{"ID of the bundle", "Name of the bundle", "Version of ... |
diff --git a/src/org/python/core/PyJavaType.java b/src/org/python/core/PyJavaType.java
index ae5d5a73..f5f31250 100644
--- a/src/org/python/core/PyJavaType.java
+++ b/src/org/python/core/PyJavaType.java
@@ -1,918 +1,918 @@
package org.python.core;
import java.lang.reflect.Constructor;
import java.lang.reflect.Fiel... | false | true | protected void init(Class<?> forClass, Set<PyJavaType> needsInners) {
name = forClass.getName();
// Strip the java fully qualified class name from Py classes in core
if (name.startsWith("org.python.core.Py")) {
name = name.substring("org.python.core.Py".length()).toLowerCase();
... | protected void init(Class<?> forClass, Set<PyJavaType> needsInners) {
name = forClass.getName();
// Strip the java fully qualified class name from Py classes in core
if (name.startsWith("org.python.core.Py")) {
name = name.substring("org.python.core.Py".length()).toLowerCase();
... |
diff --git a/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/JSchSession.java b/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/JSchSession.java
index 9a48347e6..13215e091 100644
--- a/bundles/org.eclipse.team.cvs.ssh2/src/org/eclipse/team/internal/ccvs/ssh2/JSchSessi... | true | true | static Session getSession(ICVSRepositoryLocation location, String username, String password, String hostname, int port, final IProgressMonitor monitor) throws JSchException {
if (port == 0)
port = SSH_DEFAULT_PORT;
IPreferenceStore store = CVSSSH2Plugin.getDefault().getPreferenceStore();
String ssh_home = st... | static Session getSession(ICVSRepositoryLocation location, String username, String password, String hostname, int port, final IProgressMonitor monitor) throws JSchException {
if (port == 0)
port = SSH_DEFAULT_PORT;
IPreferenceStore store = CVSSSH2Plugin.getDefault().getPreferenceStore();
String ssh_home = st... |
diff --git a/src/main/java/org/tedxuba/social/events/twitter/TwitterTermsListener.java b/src/main/java/org/tedxuba/social/events/twitter/TwitterTermsListener.java
index 0bbf417..f879327 100644
--- a/src/main/java/org/tedxuba/social/events/twitter/TwitterTermsListener.java
+++ b/src/main/java/org/tedxuba/social/events/t... | true | true | public void start() {
BlockingQueue<String> msgQueue = new LinkedBlockingQueue<String>(100000);
StatusesFilterEndpoint filterEndpoint = new StatusesFilterEndpoint();
List<String> terms = Lists.newArrayList(this.twitterTerms);
filterEndpoint.trackTerms(terms);
Authentication hosebirdAuth = new OAuth1("aeIBI... | public void start() {
BlockingQueue<String> msgQueue = new LinkedBlockingQueue<String>(100000);
StatusesFilterEndpoint filterEndpoint = new StatusesFilterEndpoint();
List<String> terms = Lists.newArrayList(this.twitterTerms);
filterEndpoint.trackTerms(terms);
Authentication hosebirdAuth = new OAuth1("aeIBI... |
diff --git a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/editor/RemoteCEditor.java b/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/editor/RemoteCEditor.java
index 7364829d2..708730720 100644
--- a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/editor/RemoteCEditor.jav... | true | true | private boolean isLocalServiceProvider() {
ICProject cproject = EditorUtility.getCProject(input);
IServiceModelManager smm = ServiceModelManager.getInstance();
if(smm.isConfigured(cproject.getProject())) {
IServiceConfiguration serviceConfig = smm.getActiveConfiguration(cproject.getProject());
IService ... | private boolean isLocalServiceProvider() {
ICProject cproject = EditorUtility.getCProject(input);
if(cproject == null) { // external translation unit
return true;
}
IServiceModelManager smm = ServiceModelManager.getInstance();
if(smm.isConfigured(cproject.getProject())) {
IServiceConfiguration servi... |
diff --git a/src/greedGame/model/DiceHandler.java b/src/greedGame/model/DiceHandler.java
index f7f66ad..4a63434 100644
--- a/src/greedGame/model/DiceHandler.java
+++ b/src/greedGame/model/DiceHandler.java
@@ -1,183 +1,183 @@
package greedGame.model;
import java.util.ArrayList;
import java.util.List;
import java.u... | true | true | public void rollDice() {
boolean isAllReserved = true;
// Check for any unreserved dice
for (Dice d : dice) {
if (d.getState() != DiceState.RESERVED) {
isAllReserved = false;
break;
}
}
for (Dice d : dice) {
if (isAllReserved || d.getState() != DiceState.FREE)
d.roll();
}
}
| public void rollDice() {
boolean isAllReserved = true;
// Check for any unreserved dice
for (Dice d : dice) {
if (d.getState() != DiceState.RESERVED) {
isAllReserved = false;
break;
}
}
for (Dice d : dice) {
if (isAllReserved || d.getState() != DiceState.RESERVED)
d.roll();
}
}
|
diff --git a/core/src/main/java/org/apache/commons/vfs2/provider/compressed/CompressedFileFileObject.java b/core/src/main/java/org/apache/commons/vfs2/provider/compressed/CompressedFileFileObject.java
index 48e7b15b..fca67362 100644
--- a/core/src/main/java/org/apache/commons/vfs2/provider/compressed/CompressedFileFile... | true | true | protected CompressedFileFileObject(AbstractFileName name, FileObject container, CompressedFileFileSystem fs)
{
super(name, fs);
this.container = container;
// todo, add getBaseName(String) to FileName
String basename = container.getName().getBaseName();
int pos = basenam... | protected CompressedFileFileObject(AbstractFileName name, FileObject container, CompressedFileFileSystem fs)
{
super(name, fs);
this.container = container;
// todo, add getBaseName(String) to FileName
String basename = container.getName().getBaseName();
int pos = basenam... |
diff --git a/ini/trakem2/display/Display.java b/ini/trakem2/display/Display.java
index 66f5dab7..da61eae9 100644
--- a/ini/trakem2/display/Display.java
+++ b/ini/trakem2/display/Display.java
@@ -1,6173 +1,6174 @@
/**
TrakEM2 plugin for ImageJ(C).
Copyright (C) 2005-2009 Albert Cardona and Rodney Douglas.
This p... | true | true | public void actionPerformed(final ActionEvent ae) {
dispatcher.exec(new Runnable() { public void run() {
String command = ae.getActionCommand();
if (command.startsWith("Job")) {
if (Utils.checkYN("Really cancel job?")) {
project.getLoader().quitJob(command);
repairGUI();
}
return;
} else if (... | public void actionPerformed(final ActionEvent ae) {
dispatcher.exec(new Runnable() { public void run() {
String command = ae.getActionCommand();
if (command.startsWith("Job")) {
if (Utils.checkYN("Really cancel job?")) {
project.getLoader().quitJob(command);
repairGUI();
}
return;
} else if (... |
diff --git a/test/web/org/codehaus/groovy/grails/web/pages/GroovyPageResourceLoaderTests.java b/test/web/org/codehaus/groovy/grails/web/pages/GroovyPageResourceLoaderTests.java
index acc1990d8..ffcd8fed5 100644
--- a/test/web/org/codehaus/groovy/grails/web/pages/GroovyPageResourceLoaderTests.java
+++ b/test/web/org/cod... | true | true | public void testGetRealLocationInProject() {
GroovyPageResourceLoader rl = new GroovyPageResourceLoader();
assertEquals("/grails-app/views/layouts/main.gsp", rl.getRealLocationInProject("/WEB-INF/grails-app/views/layouts/main.gsp"));
assertEquals("/grails-app/views/books/list.gsp", rl.getRe... | public void testGetRealLocationInProject() {
GroovyPageResourceLoader rl = new GroovyPageResourceLoader();
assertEquals("grails-app/views/layouts/main.gsp", rl.getRealLocationInProject("/WEB-INF/grails-app/views/layouts/main.gsp"));
assertEquals("grails-app/views/books/list.gsp", rl.getReal... |
diff --git a/com.byluroid.eclipse.maven.android/src/main/java/com/byluroid/eclipse/maven/android/AndroidMavenBuildParticipant.java b/com.byluroid.eclipse.maven.android/src/main/java/com/byluroid/eclipse/maven/android/AndroidMavenBuildParticipant.java
index cfea31b..50c4772 100644
--- a/com.byluroid.eclipse.maven.androi... | true | true | public Set<IProject> build(int kind, IProgressMonitor monitor) throws Exception {
final IProject project = getMavenProjectFacade().getProject();
if(IncrementalProjectBuilder.AUTO_BUILD == kind || IncrementalProjectBuilder.CLEAN_BUILD == kind || IncrementalProjectBuilder.FULL_BUILD == kind) {
try{
MavenPlugi... | public Set<IProject> build(int kind, IProgressMonitor monitor) throws Exception {
final IProject project = getMavenProjectFacade().getProject();
if(IncrementalProjectBuilder.AUTO_BUILD == kind || IncrementalProjectBuilder.CLEAN_BUILD == kind || IncrementalProjectBuilder.FULL_BUILD == kind) {
try{
MavenPlugi... |
diff --git a/org.eclipse.draw3d/src/java/org/eclipse/draw3d/shapes/SolidCube.java b/org.eclipse.draw3d/src/java/org/eclipse/draw3d/shapes/SolidCube.java
index fa01e76..e46f3c9 100644
--- a/org.eclipse.draw3d/src/java/org/eclipse/draw3d/shapes/SolidCube.java
+++ b/org.eclipse.draw3d/src/java/org/eclipse/draw3d/shapes/So... | true | true | private void initDisplayLists(DisplayListManager i_displayListManager,
final Graphics3D g3d) {
if (i_displayListManager.isDisplayList(DL_REST, DL_FRONT, DL_TEXTURE))
return;
Runnable front = new Runnable() {
public void run() {
g3d.glBegin(Graphics3DDraw.GL_QUADS);
g3d.glNormal3f(0, 0, -1);
... | private void initDisplayLists(DisplayListManager i_displayListManager,
final Graphics3D g3d) {
if (i_displayListManager.isDisplayList(DL_REST, DL_FRONT, DL_TEXTURE))
return;
Runnable front = new Runnable() {
public void run() {
g3d.glBegin(Graphics3DDraw.GL_QUADS);
g3d.glNormal3f(0, 0, -1);
... |
diff --git a/jbpm-form-modeler-core/jbpm-form-modeler-service/jbpm-form-modeler-form-editor/src/main/java/org/jbpm/formModeler/components/editor/AvailableTemplateElementsFormatter.java b/jbpm-form-modeler-core/jbpm-form-modeler-service/jbpm-form-modeler-form-editor/src/main/java/org/jbpm/formModeler/components/editor/A... | false | true | protected void renderItemsToAdd(List fieldsToAdd, String type) {
if (fieldsToAdd != null && !fieldsToAdd.isEmpty()) {
renderFragment("outputStartItemsToAdd");
for (int i = 0; i < fieldsToAdd.size(); i++) {
Field field = (Field) fieldsToAdd.get(i);
setA... | protected void renderItemsToAdd(List fieldsToAdd, String type) {
if (fieldsToAdd != null && !fieldsToAdd.isEmpty()) {
renderFragment("outputStartItemsToAdd");
String label="";
for (int i = 0; i < fieldsToAdd.size(); i++) {
Field field = (Field) fieldsToAdd... |
diff --git a/src/main/java/dk/teachus/frontend/pages/persons/SendNewPasswordPage.java b/src/main/java/dk/teachus/frontend/pages/persons/SendNewPasswordPage.java
index 6dee7a6..e89b832 100644
--- a/src/main/java/dk/teachus/frontend/pages/persons/SendNewPasswordPage.java
+++ b/src/main/java/dk/teachus/frontend/pages/pers... | true | true | public SendNewPasswordPage(Long pupilId) {
super(UserLevel.TEACHER, true);
if (pupilId == null) {
throw new IllegalArgumentException("Must provide a valid pupilId"); //$NON-NLS-1$
}
final PupilModel pupilModel = new PupilModel(pupilId);
// Find intro message from teachers attributes
PersonDAO p... | public SendNewPasswordPage(Long pupilId) {
super(UserLevel.TEACHER, true);
if (pupilId == null) {
throw new IllegalArgumentException("Must provide a valid pupilId"); //$NON-NLS-1$
}
final PupilModel pupilModel = new PupilModel(pupilId);
// Find intro message from teachers attributes
PersonDAO p... |
diff --git a/src/webapp/java/jamm/webapp/LoginAction.java b/src/webapp/java/jamm/webapp/LoginAction.java
index 5659809..0771667 100644
--- a/src/webapp/java/jamm/webapp/LoginAction.java
+++ b/src/webapp/java/jamm/webapp/LoginAction.java
@@ -1,134 +1,134 @@
/*
* Jamm
* Copyright (C) 2002 Dave Dribin and Keith Garne... | true | true | public ActionForward execute(ActionMapping mapping,
ActionForm actionForm,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
{
if (isCancelled(request))
{
... | public ActionForward execute(ActionMapping mapping,
ActionForm actionForm,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
{
if (isCancelled(request))
{
... |
diff --git a/ocl20/src/tudresden/ocl20/core/parser/astgen/NodeFactory.java b/ocl20/src/tudresden/ocl20/core/parser/astgen/NodeFactory.java
index 27b1c0c38..b2080608f 100644
--- a/ocl20/src/tudresden/ocl20/core/parser/astgen/NodeFactory.java
+++ b/ocl20/src/tudresden/ocl20/core/parser/astgen/NodeFactory.java
@@ -1,118 +... | true | true | private void initialize() {
Map c = creatorsByType;
c.put("Object", new Ctor() { public Object cr() { return new Object(); } } );
c.put("CollectionItem", new Ctor() { public Object cr() { return f.createCollectionItem(); } } );
c.put("IfExp", ... | private void initialize() {
Map c = creatorsByType;
c.put("Object", new Ctor() { public Object cr() { return new Object(); } } );
c.put("CollectionItem", new Ctor() { public Object cr() { return f.createCollectionItem(); } } );
c.put("IfExp", ... |
diff --git a/core/src/test/java/org/modelmapper/internal/util/PrimitivesTest.java b/core/src/test/java/org/modelmapper/internal/util/PrimitivesTest.java
index 75fb3e0..a242c80 100644
--- a/core/src/test/java/org/modelmapper/internal/util/PrimitivesTest.java
+++ b/core/src/test/java/org/modelmapper/internal/util/Primiti... | false | true | public void testDefaultValue() {
assertEquals(Primitives.defaultValue(Byte.class), (byte) 0);
assertEquals(Primitives.defaultValue(Byte.TYPE), (byte) 0);
assertEquals(Primitives.defaultValue(Short.class), (short) 0);
assertEquals(Primitives.defaultValue(Short.TYPE), (short) 0);
assertEquals(Primit... | public void testDefaultValue() {
assertEquals(Primitives.defaultValue(Byte.TYPE), (byte) 0);
assertEquals(Primitives.defaultValue(Short.TYPE), (short) 0);
assertEquals(Primitives.defaultValue(Integer.TYPE), 0);
assertEquals(Primitives.defaultValue(Long.TYPE), 0L);
assertEquals(Primitives.defaultVa... |
diff --git a/src/com/ichi2/anki/CardEditor.java b/src/com/ichi2/anki/CardEditor.java
index 21b1ee1e..8d88ae1b 100644
--- a/src/com/ichi2/anki/CardEditor.java
+++ b/src/com/ichi2/anki/CardEditor.java
@@ -1,1265 +1,1265 @@
/***************************************************************************************
* This ... | true | true | protected Dialog onCreateDialog(int id) {
StyledDialog dialog = null;
Resources res = getResources();
StyledDialog.Builder builder = new StyledDialog.Builder(this);
switch (id) {
case DIALOG_TAGS:
builder.setTitle(R.string.studyoptions_limit_select_tags);
builder.setPositiveButton(res.getString(R.stri... | protected Dialog onCreateDialog(int id) {
StyledDialog dialog = null;
Resources res = getResources();
StyledDialog.Builder builder = new StyledDialog.Builder(this);
switch (id) {
case DIALOG_TAGS:
builder.setTitle(R.string.studyoptions_limit_select_tags);
builder.setPositiveButton(res.getString(R.stri... |
diff --git a/library/src/uk/co/senab/actionbarpulltorefresh/library/PullToRefreshLayout.java b/library/src/uk/co/senab/actionbarpulltorefresh/library/PullToRefreshLayout.java
index 9985985..2a31af5 100644
--- a/library/src/uk/co/senab/actionbarpulltorefresh/library/PullToRefreshLayout.java
+++ b/library/src/uk/co/senab... | true | true | public void setPullToRefreshAttacher(PullToRefreshAttacher attacher,
PullToRefreshAttacher.OnRefreshListener refreshListener) {
View view;
for (int i = 0, z = getChildCount(); i < z; i++) {
view = getChildAt(0);
if (mPullToRefreshAttacher != null) {
... | public void setPullToRefreshAttacher(PullToRefreshAttacher attacher,
PullToRefreshAttacher.OnRefreshListener refreshListener) {
View view;
for (int i = 0, z = getChildCount(); i < z; i++) {
view = getChildAt(i);
if (mPullToRefreshAttacher != null) {
... |
diff --git a/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java b/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java
index cff735d77..2d6b9afac 100644
--- a/org.eclipse.mylyn.tests.util/src/org/eclipse/mylyn/tests/util/TestFixture.java
+++ b/org.eclipse.mylyn.test... | true | true | public TaskRepository singleRepository() {
TaskRepositoryManager manager = TasksUiPlugin.getRepositoryManager();
manager.clearRepositories();
resetRepositories();
TaskRepository repository = new TaskRepository(connectorKind, repositoryUrl);
Credentials credentials = TestUtil.readCredentials(PrivilegeLevel.U... | public TaskRepository singleRepository() {
TaskRepositoryManager manager = TasksUiPlugin.getRepositoryManager();
manager.clearRepositories();
resetRepositories();
TaskRepository repository = new TaskRepository(connectorKind, repositoryUrl);
Credentials credentials = TestUtil.readCredentials(PrivilegeLevel.U... |
diff --git a/Average-Jim-Game/src/com/aquasheep/average_jim/screens/SplashScreen.java b/Average-Jim-Game/src/com/aquasheep/average_jim/screens/SplashScreen.java
index 60c79a0..7b10c26 100644
--- a/Average-Jim-Game/src/com/aquasheep/average_jim/screens/SplashScreen.java
+++ b/Average-Jim-Game/src/com/aquasheep/average_j... | false | true | public void resize(int width, int height) {
stage.clear();
//Define texture region as a drawable
AtlasRegion splashRegion = getAtlas("splash-screen").findRegion("splash-screen/SplashScreenJim");
Drawable splashDrawable = new TextureRegionDrawable(splashRegion);
//Create the Actor for splash image and m... | public void resize(int width, int height) {
stage.clear();
//Define texture region as a drawable
AtlasRegion splashRegion = getAtlas("splash-screen").findRegion("splash-screen/SplashScreenJim");
Drawable splashDrawable = new TextureRegionDrawable(splashRegion);
//Create the Actor for splash image and m... |
diff --git a/src/main/java/Sirius/server/search/builtin/FullTextSearch.java b/src/main/java/Sirius/server/search/builtin/FullTextSearch.java
index fc336756..02d3a20e 100644
--- a/src/main/java/Sirius/server/search/builtin/FullTextSearch.java
+++ b/src/main/java/Sirius/server/search/builtin/FullTextSearch.java
@@ -1,179... | false | true | public Collection performServerSearch() {
try {
getLog().info("FullTextSearch started");
final String caseSensitiveI = (caseSensitive) ? "" : "I"; // Ein I vor LIKE macht die Suche case insensitive
final String geoPrefix = " select distinct * from ( ";
fina... | public Collection performServerSearch() {
try {
getLog().info("FullTextSearch started");
final String caseSensitiveI = (caseSensitive) ? "" : "I"; // Ein I vor LIKE macht die Suche case insensitive
final String geoPrefix = " select distinct * from ( ";
fina... |
diff --git a/UserVoiceSDK/src/com/uservoice/uservoicesdk/flow/InitManager.java b/UserVoiceSDK/src/com/uservoice/uservoicesdk/flow/InitManager.java
index ba161b5..92b4c5b 100644
--- a/UserVoiceSDK/src/com/uservoice/uservoicesdk/flow/InitManager.java
+++ b/UserVoiceSDK/src/com/uservoice/uservoicesdk/flow/InitManager.java... | true | true | public void init() {
if (Session.getInstance().getClientConfig() == null) {
ClientConfig.loadClientConfig(new DefaultCallback<ClientConfig>(context) {
@Override
public void onModel(ClientConfig model) {
Session.getInstance().setClientConfig(model);
configDone = true;
checkComplete();
}
... | public void init() {
if (Session.getInstance().getClientConfig() == null) {
ClientConfig.loadClientConfig(new DefaultCallback<ClientConfig>(context) {
@Override
public void onModel(ClientConfig model) {
Session.getInstance().setClientConfig(model);
configDone = true;
checkComplete();
}
... |
diff --git a/src/main/java/org/gwaspi/netCDF/loader/AbstractLoadGTFromFiles.java b/src/main/java/org/gwaspi/netCDF/loader/AbstractLoadGTFromFiles.java
index 4472e6d0..175957d9 100644
--- a/src/main/java/org/gwaspi/netCDF/loader/AbstractLoadGTFromFiles.java
+++ b/src/main/java/org/gwaspi/netCDF/loader/AbstractLoadGTFrom... | true | true | public int processData(GenotypesLoadDescription loadDescription, Map<String, Object> sampleInfo) throws IOException, InvalidRangeException, InterruptedException {
int result = Integer.MIN_VALUE;
String startTime = org.gwaspi.global.Utils.getMediumDateTimeAsString();
File gtFile = new File(loadDescription.getGt... | public int processData(GenotypesLoadDescription loadDescription, Map<String, Object> sampleInfo) throws IOException, InvalidRangeException, InterruptedException {
int result = Integer.MIN_VALUE;
String startTime = org.gwaspi.global.Utils.getMediumDateTimeAsString();
File gtFile = new File(loadDescription.getGt... |
diff --git a/src/main/java/org/primefaces/extensions/component/layout/LayoutPane.java b/src/main/java/org/primefaces/extensions/component/layout/LayoutPane.java
index 8d5f2505..c96a2fbd 100644
--- a/src/main/java/org/primefaces/extensions/component/layout/LayoutPane.java
+++ b/src/main/java/org/primefaces/extensions/co... | true | true | private void setOptions(UIComponent parent) {
// create layout options for this pane via attributes defined in pe:layoutPane
String position = getPosition();
LayoutOptions thisLayoutOptions = getOptions();
LayoutOptions options;
if (parent instanceof LayoutPane) {
LayoutOptions parentLayoutOptions = ((La... | private void setOptions(UIComponent parent) {
// create layout options for this pane via attributes defined in pe:layoutPane
String position = getPosition();
LayoutOptions thisLayoutOptions = getOptions();
LayoutOptions options;
if (parent instanceof LayoutPane) {
LayoutOptions parentLayoutOptions = ((La... |
diff --git a/application/test/models/user/UserRegistrationTest.java b/application/test/models/user/UserRegistrationTest.java
index 0c213be5..991dbea5 100644
--- a/application/test/models/user/UserRegistrationTest.java
+++ b/application/test/models/user/UserRegistrationTest.java
@@ -1,124 +1,124 @@
package models.user;... | true | true | public void createAccountSucces(){
Map<String, String> map = new HashMap<String,String>();
map.put("name", "Jim Jones");
map.put("email","jimjones@localhost.com");
map.put("bday","13/05/1931");
map.put("gender","Male");
map.put("prefLanguage","en");
map.put("password","kaituma");
map.put("controle_pas... | public void createAccountSucces(){
Map<String, String> map = new HashMap<String,String>();
map.put("name", "Jim Jones");
map.put("email","jimjones@localhost.com");
map.put("bday","13/05/1931");
map.put("gender","Male");
map.put("prefLanguage","en");
map.put("password","kaituma");
map.put("controle_pas... |
diff --git a/src/services/combat/CombatService.java b/src/services/combat/CombatService.java
index 53022efc..8c9fd9a3 100644
--- a/src/services/combat/CombatService.java
+++ b/src/services/combat/CombatService.java
@@ -1,1404 +1,1412 @@
/*******************************************************************************
... | true | true | public void doCombat(final CreatureObject attacker, final TangibleObject target, final WeaponObject weapon, final CombatCommand command, final int actionCounter) {
if(target instanceof CreatureObject) if(((CreatureObject) target).getPosture() == Posture.Incapacitated || ((CreatureObject) target).getPosture() == Pos... | public void doCombat(final CreatureObject attacker, final TangibleObject target, final WeaponObject weapon, final CombatCommand command, final int actionCounter) {
if(target instanceof CreatureObject) if(((CreatureObject) target).getPosture() == Posture.Incapacitated || ((CreatureObject) target).getPosture() == Pos... |
diff --git a/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/controller/FlexoController.java b/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/controller/FlexoController.java
index 3d9cf6e09..85b5dc314 100644
--- a/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/controller/FlexoController.java
+... | false | true | public static boolean confirmWithWarning(String msg) throws HeadlessException {
return showOptionDialog(FlexoFrame.getActiveFrame(), msg, FlexoLocalization.localizedForKey("information"),
JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, null, new Object[] { FlexoLocalization.localizedForKey("yes"),
... | public static boolean confirmWithWarning(String msg) throws HeadlessException {
return showOptionDialog(FlexoFrame.getActiveFrame(), msg, FlexoLocalization.localizedForKey("information"),
JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, null, new Object[] { FlexoLocalization.localizedForKey("yes"),
... |
diff --git a/StatisticsPlugin/src/org/gephi/statistics/plugin/InOutDegree.java b/StatisticsPlugin/src/org/gephi/statistics/plugin/InOutDegree.java
index 85c7a17b1..b6f9c814c 100644
--- a/StatisticsPlugin/src/org/gephi/statistics/plugin/InOutDegree.java
+++ b/StatisticsPlugin/src/org/gephi/statistics/plugin/InOutDegree.... | false | true | public void execute(GraphModel graphModel, AttributeModel attributeModel) {
mIsCanceled = false;
//Attributes cols
AttributeTable nodeTable = attributeModel.getNodeTable();
AttributeColumn inCol = nodeTable.getColumn("indegree");
AttributeColumn outCol = nodeTable.getColumn(... | public void execute(GraphModel graphModel, AttributeModel attributeModel) {
mIsCanceled = false;
mAvgInDegree = mAvgOutDegree = 0.0;
//Attributes cols
AttributeTable nodeTable = attributeModel.getNodeTable();
AttributeColumn inCol = nodeTable.getColumn("indegree");
A... |
diff --git a/simulator/code/simulator/elevatorcontrol/DoorControl.java b/simulator/code/simulator/elevatorcontrol/DoorControl.java
index e17cb3e..c99aa7f 100755
--- a/simulator/code/simulator/elevatorcontrol/DoorControl.java
+++ b/simulator/code/simulator/elevatorcontrol/DoorControl.java
@@ -1,334 +1,338 @@
/* 18649 F... | false | 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/src/main/java/net/robinjam/bukkit/eternalwolf/EntityListener.java b/src/main/java/net/robinjam/bukkit/eternalwolf/EntityListener.java
index 5d28f08..76ef415 100644
--- a/src/main/java/net/robinjam/bukkit/eternalwolf/EntityListener.java
+++ b/src/main/java/net/robinjam/bukkit/eternalwolf/EntityListener.java... | true | true | public void onEntityDamage(EntityDamageEvent event) {
// If the entity that was damaged is a wolf
if (event.getEntity() instanceof Wolf) {
Wolf wolf = (Wolf) event.getEntity();
// ...and the wolf has an owner
if (wolf.isTamed() && wolf.getOwner() instanceof Playe... | public void onEntityDamage(EntityDamageEvent event) {
// If the entity that was damaged is a wolf
if (event.getEntity() instanceof Wolf) {
Wolf wolf = (Wolf) event.getEntity();
// ...and the wolf has an owner
if (wolf.isTamed() && wolf.getOwner() instanceof Playe... |
diff --git a/serenity-app/src/main/java/us/nineworlds/serenity/ui/browser/movie/MovieMenuDrawerOnItemClickedListener.java b/serenity-app/src/main/java/us/nineworlds/serenity/ui/browser/movie/MovieMenuDrawerOnItemClickedListener.java
index 570134a6..c198d7b8 100644
--- a/serenity-app/src/main/java/us/nineworlds/serenity... | true | true | public void onItemClick(AdapterView<?> parent, View view, int position,
long id) {
SerenityMultiViewVideoActivity activity = (SerenityMultiViewVideoActivity) view.getContext();
switch (position) {
case GRID_VIEW:
menuDrawer.setContentView(R.layout.activity_movie_browser_gridview);
toggleView(activity... | public void onItemClick(AdapterView<?> parent, View view, int position,
long id) {
SerenityMultiViewVideoActivity activity = (SerenityMultiViewVideoActivity) view.getContext();
switch (position) {
case GRID_VIEW:
menuDrawer.setContentView(R.layout.activity_movie_browser_gridview);
toggleView(activity... |
diff --git a/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java b/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
index 4d0bddb..48f4028 100644
--- a/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
+++ b/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
@@ ... | true | true | public void execute()
throws MojoExecutionException
{
Set artifacts = new LinkedHashSet();
Set artifactIds = new LinkedHashSet();
Set sourceArtifacts = new LinkedHashSet();
artifacts.add( project.getArtifact().getFile() );
if ( createSourcesJar )
{
... | public void execute()
throws MojoExecutionException
{
Set artifacts = new LinkedHashSet();
Set artifactIds = new LinkedHashSet();
Set sourceArtifacts = new LinkedHashSet();
if ( project.getArtifact().getFile() == null )
{
getLog().error( "The project ... |
diff --git a/src/main/java/org/gabrielle/AsyncProcessingExample/worker/Worker.java b/src/main/java/org/gabrielle/AsyncProcessingExample/worker/Worker.java
index 9898c84..1e15f13 100644
--- a/src/main/java/org/gabrielle/AsyncProcessingExample/worker/Worker.java
+++ b/src/main/java/org/gabrielle/AsyncProcessingExample/wo... | true | true | public void run() {
UUID uuid = UUID.randomUUID();
logger.info(String.format("UUID=%s - %s initialized.", uuid,
this.name));
this.executing = true;
try {
int secondsS... | public void run() {
UUID uuid = UUID.randomUUID();
logger.info(String.format("UUID=%s - %s initialized.", uuid,
this.name));
this.executing = true;
try {
int secondsS... |
diff --git a/emailcommon/src/com/android/emailcommon/Device.java b/emailcommon/src/com/android/emailcommon/Device.java
index a93a17a2..fb9847fa 100644
--- a/emailcommon/src/com/android/emailcommon/Device.java
+++ b/emailcommon/src/com/android/emailcommon/Device.java
@@ -1,109 +1,116 @@
/*
/*
* Copyright (C) 2011 T... | true | true | static private String getDeviceIdInternal(Context context) throws IOException {
if (context == null) {
throw new IllegalStateException("getDeviceId requires a Context");
}
File f = context.getFileStreamPath("deviceName");
BufferedReader rdr = null;
String id;
... | static private String getDeviceIdInternal(Context context) throws IOException {
if (context == null) {
throw new IllegalStateException("getDeviceId requires a Context");
}
File f = context.getFileStreamPath("deviceName");
BufferedReader rdr = null;
String id;
... |
diff --git a/src/main/java/me/wizzledonker/plugins/telepads/telepadsPlayerListener.java b/src/main/java/me/wizzledonker/plugins/telepads/telepadsPlayerListener.java
index 45a4799..4683108 100644
--- a/src/main/java/me/wizzledonker/plugins/telepads/telepadsPlayerListener.java
+++ b/src/main/java/me/wizzledonker/plugins/... | true | true | public void whenPlayerMoves(PlayerMoveEvent event) {
final Player player = event.getPlayer();
if (onPad.contains(player)) return;
if (player.hasPermission("telepads.use")) {
Block block = player.getLocation().getBlock().getRelative(BlockFace.DOWN);
if (!checkPad(block... | public void whenPlayerMoves(PlayerMoveEvent event) {
final Player player = event.getPlayer();
if (onPad.contains(player)) return;
if (player.hasPermission("telepads.use")) {
Block block = player.getLocation().getBlock().getRelative(BlockFace.DOWN);
if (!checkPad(block... |
diff --git a/my-maps-webapp/src/main/java/cz/muni/fi/pv243/mymaps/jsf/LoginBean.java b/my-maps-webapp/src/main/java/cz/muni/fi/pv243/mymaps/jsf/LoginBean.java
index 4486ede..398c8af 100644
--- a/my-maps-webapp/src/main/java/cz/muni/fi/pv243/mymaps/jsf/LoginBean.java
+++ b/my-maps-webapp/src/main/java/cz/muni/fi/pv243/m... | true | true | public void authenticate() {
User user = userService.getUserByLogin(credentials.getUsername());
if (user == null) {
setStatus(AuthenticationStatus.FAILURE);
} else {
try {
PasswordCredential pc = (PasswordCredential) credentials.getCredential();
... | public void authenticate() {
User user = userService.getUserByLogin(credentials.getUsername());
if (user == null) {
setStatus(AuthenticationStatus.FAILURE);
} else {
try {
PasswordCredential pc = (PasswordCredential) credentials.getCredential();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.