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/main/java/net/floodlightcontroller/topology/TopologyManager.java b/src/main/java/net/floodlightcontroller/topology/TopologyManager.java
index 0a73fc1f..961d6259 100644
--- a/src/main/java/net/floodlightcontroller/topology/TopologyManager.java
+++ b/src/main/java/net/floodlightcontroller/topology/Topolo... | true | true | protected boolean createNewInstance(String reason) {
Set<NodePortTuple> blockedPorts = new HashSet<NodePortTuple>();
if (!linksUpdated) return false;
Map<NodePortTuple, Set<Link>> openflowLinks;
openflowLinks =
new HashMap<NodePortTuple, Set<Link>>();
Set<No... | protected boolean createNewInstance(String reason) {
Set<NodePortTuple> blockedPorts = new HashSet<NodePortTuple>();
if (!linksUpdated) return false;
Map<NodePortTuple, Set<Link>> openflowLinks;
openflowLinks =
new HashMap<NodePortTuple, Set<Link>>();
Set<No... |
diff --git a/src/com/fourisland/frigidearth/MapViewGameState.java b/src/com/fourisland/frigidearth/MapViewGameState.java
index 07df1d6..bd3471f 100644
--- a/src/com/fourisland/frigidearth/MapViewGameState.java
+++ b/src/com/fourisland/frigidearth/MapViewGameState.java
@@ -1,1403 +1,1403 @@
/*
* To change this templa... | true | true | public MapViewGameState(int floor)
{
this.floor = floor;
mapWidth += (50 * (floor-1));
mapHeight += (50 * (floor-1));
grid = new Tile[mapWidth][mapHeight];
gridLighting = new boolean[mapWidth][mapHeight];
for (int x=0; x<mapWidth; x++)
... | public MapViewGameState(int floor)
{
this.floor = floor;
mapWidth += (50 * (floor-1));
mapHeight += (50 * (floor-1));
grid = new Tile[mapWidth][mapHeight];
gridLighting = new boolean[mapWidth][mapHeight];
for (int x=0; x<mapWidth; x++)
... |
diff --git a/src/cx/fbn/nevernote/sql/REnSearch.java b/src/cx/fbn/nevernote/sql/REnSearch.java
index abb6c85..3fbbaa8 100644
--- a/src/cx/fbn/nevernote/sql/REnSearch.java
+++ b/src/cx/fbn/nevernote/sql/REnSearch.java
@@ -1,948 +1,948 @@
/*
* This file is part of NixNote
* Copyright 2009 Randy Baumgarte
*
* T... | true | true | public List<Note> matchWords() {
logger.log(logger.EXTREME, "Inside EnSearch.matchWords()");
boolean subSelect = false;
NoteTable noteTable = new NoteTable(logger, conn);
List<String> validGuids = new ArrayList<String>();
if (searchWords.size() > 0)
subSelect = true;
NSqlQuery query = new NSql... | public List<Note> matchWords() {
logger.log(logger.EXTREME, "Inside EnSearch.matchWords()");
boolean subSelect = false;
NoteTable noteTable = new NoteTable(logger, conn);
List<String> validGuids = new ArrayList<String>();
if (searchWords.size() > 0)
subSelect = true;
NSqlQuery query = new NSql... |
diff --git a/plugins/hdfsviewer/src/azkaban/viewer/hdfs/HdfsBrowserServlet.java b/plugins/hdfsviewer/src/azkaban/viewer/hdfs/HdfsBrowserServlet.java
index c46b8be..7eff61a 100644
--- a/plugins/hdfsviewer/src/azkaban/viewer/hdfs/HdfsBrowserServlet.java
+++ b/plugins/hdfsviewer/src/azkaban/viewer/hdfs/HdfsBrowserServlet.... | true | true | private void displayFilePage(
FileSystem fs,
String user,
HttpServletRequest req,
HttpServletResponse resp,
Session session,
Path path)
throws IOException {
Page page = newPage(req, resp, session, "azkaban/viewer/hdfs/velocity/hdfs-file.vm");
page.add("allowproxy", allowGroupProxy);
pag... | private void displayFilePage(
FileSystem fs,
String user,
HttpServletRequest req,
HttpServletResponse resp,
Session session,
Path path)
throws IOException {
Page page = newPage(req, resp, session, "azkaban/viewer/hdfs/velocity/hdfs-file.vm");
page.add("allowproxy", allowGroupProxy);
pag... |
diff --git a/handin2/Assignment1/src/letter/LetterCountMapper.java b/handin2/Assignment1/src/letter/LetterCountMapper.java
index 00413bf..46c000f 100644
--- a/handin2/Assignment1/src/letter/LetterCountMapper.java
+++ b/handin2/Assignment1/src/letter/LetterCountMapper.java
@@ -1,31 +1,31 @@
package letter;
import ja... | true | true | public void map(LongWritable key, Text value, OutputCollector<Text, Text> output,
Reporter reporter) throws IOException {
//Split string into array of chars. Remove all characters that are not in [a-z^A-Z]
char[] letterArray = value.toString().replaceAll("[^a-z^A-Z]","").toCharArray();
... | public void map(LongWritable key, Text value, OutputCollector<Text, Text> output,
Reporter reporter) throws IOException {
//Split string into array of chars. Remove all characters that are not in [a-z^A-Z]
char[] letterArray = value.toString().toLowerCase().replaceAll("[^a-z]","").toCharArray(... |
diff --git a/src/com/twobuntu/service/UpdateService.java b/src/com/twobuntu/service/UpdateService.java
index 3e61678..4845dbf 100644
--- a/src/com/twobuntu/service/UpdateService.java
+++ b/src/com/twobuntu/service/UpdateService.java
@@ -1,124 +1,124 @@
package com.twobuntu.service;
import java.net.URL;
import java... | true | true | private void processArticles(long max, JSONObject response) throws JSONException {
JSONArray articles = response.getJSONArray("articles");
ArrayList<ContentValues> articlesForInsertion = new ArrayList<ContentValues>();
for(int i=0; i<articles.length(); ++i) {
// Determine if the article exists in the database... | private void processArticles(long max, JSONObject response) throws JSONException {
JSONArray articles = response.getJSONArray("articles");
ArrayList<ContentValues> articlesForInsertion = new ArrayList<ContentValues>();
for(int i=0; i<articles.length(); ++i) {
// Determine if the article exists in the database... |
diff --git a/src/main/java/skype/SkypeBridge.java b/src/main/java/skype/SkypeBridge.java
index 1407efa..7c25b70 100644
--- a/src/main/java/skype/SkypeBridge.java
+++ b/src/main/java/skype/SkypeBridge.java
@@ -1,96 +1,98 @@
package skype;
import java.util.Calendar;
import java.util.List;
import java.util.Random;
... | false | true | public void connected(Stream stream) throws SkypeException {
localGame.addRemotePlayer(new SkypePlayer(stream));
if(isClient()){
SkypeServerGame game = new SkypeServerGame(stream);
localGame.setServerGame(game);
}
if(isServer()){
String idStartingOnOne = stream.getId()+1;
St... | public void connected(Stream stream) throws SkypeException {
System.out.println("Connected to "+stream.getId());
localGame.addRemotePlayer(new SkypePlayer(stream));
if(isClient()){
SkypeServerGame game = new SkypeServerGame(stream);
localGame.setServerGame(game);
}
if(isServer()... |
diff --git a/src/at/epu/DataAccessLayer/DataModels/MockModels/MockBankAccountDataModel.java b/src/at/epu/DataAccessLayer/DataModels/MockModels/MockBankAccountDataModel.java
index a0bc665..2c74661 100644
--- a/src/at/epu/DataAccessLayer/DataModels/MockModels/MockBankAccountDataModel.java
+++ b/src/at/epu/DataAccessLayer... | false | true | public MockBankAccountDataModel() {
Object [][] data_ = {
{new Integer(1), "Ausgangsrechnung ID 1", new Double(34000.00+100050.00),new Double(26810.00),
new SimpleDateFormat("dd.MM.yyyy").format(new Date()), "Einnahme"},
{new Integer(2), "Ausgangsrechnung ID 2", new Double(1252.00+1003.00),new Double(4510... | public MockBankAccountDataModel() {
Object [][] data_ = {
{new Integer(1), "Eingangsrechnung ID null", "Ausgangsrechnung ID 1", new Double(34000.00+100050.00),new Double(26810.00),
new SimpleDateFormat("dd.MM.yyyy").format(new Date()), "Einnahme"},
{new Integer(2), "Eingangsrechnung ID null", "Ausgangsre... |
diff --git a/src/org/omegat/gui/editor/EditorTextArea3.java b/src/org/omegat/gui/editor/EditorTextArea3.java
index 861cce3b..63a0a28a 100644
--- a/src/org/omegat/gui/editor/EditorTextArea3.java
+++ b/src/org/omegat/gui/editor/EditorTextArea3.java
@@ -1,520 +1,522 @@
/***************************************************... | true | true | protected void processKeyEvent(KeyEvent e) {
if (e.getID() != KeyEvent.KEY_PRESSED) {
// key released
super.processKeyEvent(e);
return;
}
boolean processed = false;
boolean mac = StaticUtils.onMacOSX();
Document3 doc = getOmDocument();
... | protected void processKeyEvent(KeyEvent e) {
if (e.getID() != KeyEvent.KEY_PRESSED) {
// key released
super.processKeyEvent(e);
return;
}
boolean processed = false;
boolean mac = StaticUtils.onMacOSX();
Document3 doc = getOmDocument();
... |
diff --git a/src/com/ihunda/android/binauralbeat/VizualizationView.java b/src/com/ihunda/android/binauralbeat/VizualizationView.java
index 9c491f6..f2da156 100644
--- a/src/com/ihunda/android/binauralbeat/VizualizationView.java
+++ b/src/com/ihunda/android/binauralbeat/VizualizationView.java
@@ -1,171 +1,171 @@
packag... | true | true | void drawMain(float now, float length) {
Canvas c = null;
try {
c = mSurfaceHolder.lockCanvas(null);
synchronized (mSurfaceHolder) {
if (c != null) {
v.redraw(c, width, height, now, length);
}
}
}
finally {
// do this in a finally so that if an exception is thrown
// during the abo... | void drawMain(float now, float length) {
Canvas c = null;
try {
c = mSurfaceHolder.lockCanvas(null);
synchronized (mSurfaceHolder) {
if (c != null && v != null ) {
v.redraw(c, width, height, now, length);
}
}
}
finally {
// do this in a finally so that if an exception is thrown
// ... |
diff --git a/sonar/sonar-plugin-gendarme/src/main/java/org/sonar/plugin/dotnet/gendarme/GendarmeResultParser.java b/sonar/sonar-plugin-gendarme/src/main/java/org/sonar/plugin/dotnet/gendarme/GendarmeResultParser.java
index 612ab35fd..f77e241d7 100644
--- a/sonar/sonar-plugin-gendarme/src/main/java/org/sonar/plugin/dotn... | true | true | public void parse(URL url) {
List<Element> issues = extractElements(url, "//issue");
// We add each issue
for (Element issueElement : issues) {
String key = getNodeContent(issueElement, "key");
String source = getNodeContent(issueElement, "source");
String message = getNodeContent(issueElement, "messag... | public void parse(URL url) {
List<Element> issues = extractElements(url, "//issue");
// We add each issue
for (Element issueElement : issues) {
String key = getNodeContent(issueElement, "key");
String source = getNodeContent(issueElement, "source");
String message = getNodeContent(issueElement, "messag... |
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java
index 6212b231..bfc0c10a 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java
@@ -1,632 +1,634 @@
/**
... | false | true | public int execute() {
try {
setNumberOfReducers();
} catch(IOException e) {
String statusMesg = "IOException while accessing HDFS to estimate the number of reducers: "
+ e.getMessage();
console.printError(statusMesg, "\n"
+ org.apache.hadoop.util.StringUtil... | public int execute() {
try {
setNumberOfReducers();
} catch(IOException e) {
String statusMesg = "IOException while accessing HDFS to estimate the number of reducers: "
+ e.getMessage();
console.printError(statusMesg, "\n"
+ org.apache.hadoop.util.StringUtil... |
diff --git a/src/main/java/org/geonode/security/GeoNodeSecurityProvider.java b/src/main/java/org/geonode/security/GeoNodeSecurityProvider.java
index e433313..b5eb419 100644
--- a/src/main/java/org/geonode/security/GeoNodeSecurityProvider.java
+++ b/src/main/java/org/geonode/security/GeoNodeSecurityProvider.java
@@ -1,1... | false | true | private static void configureChains(GeoServerSecurityManager manager) throws Exception {
SecurityManagerConfig config = manager.getSecurityConfig();
config.getAuthProviderNames().add(0, "geonodeAuthProvider");
GeoServerSecurityFilterChain filterChain = config.getFilterChain();
... | private static void configureChains(GeoServerSecurityManager manager) throws Exception {
SecurityManagerConfig config = manager.getSecurityConfig();
config.getAuthProviderNames().add(0, "geonodeAuthProvider");
GeoServerSecurityFilterChain filterChain = config.getFilterChain();
... |
diff --git a/ttools/src/main/uk/ac/starlink/ttools/build/JyStilts.java b/ttools/src/main/uk/ac/starlink/ttools/build/JyStilts.java
index 99484a48d..9b3aafa47 100644
--- a/ttools/src/main/uk/ac/starlink/ttools/build/JyStilts.java
+++ b/ttools/src/main/uk/ac/starlink/ttools/build/JyStilts.java
@@ -1,1481 +1,1484 @@
pack... | true | true | private String[] defUtils() {
List lineList = new ArrayList( Arrays.asList( new String[] {
/* WrapperStarTable implementation which is a python container. */
"class RandomJyStarTable(JyStarTable):",
" '''Extends the JyStarTable wrapper class for random access.",
... | private String[] defUtils() {
List lineList = new ArrayList( Arrays.asList( new String[] {
/* WrapperStarTable implementation which is a python container. */
"class RandomJyStarTable(JyStarTable):",
" '''Extends the JyStarTable wrapper class for random access.",
... |
diff --git a/src/main/java/com/feedme/activity/EditChildActivity.java b/src/main/java/com/feedme/activity/EditChildActivity.java
index d22e2d2..556863e 100644
--- a/src/main/java/com/feedme/activity/EditChildActivity.java
+++ b/src/main/java/com/feedme/activity/EditChildActivity.java
@@ -1,217 +1,217 @@
package com.fe... | false | true | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.add_child);
final BabyDao babyDao = new BabyDao(getApplicationContext());
final Baby editBaby = (Baby) getIntent().getSerializableExtra("baby");
styleActivity(... | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.add_child);
final BabyDao babyDao = new BabyDao(getApplicationContext());
final Baby editBaby = (Baby) getIntent().getSerializableExtra("baby");
styleActivity(... |
diff --git a/src/benchmarks/edu/brown/api/BenchmarkComponent.java b/src/benchmarks/edu/brown/api/BenchmarkComponent.java
index 1f299d701..ce5818e96 100644
--- a/src/benchmarks/edu/brown/api/BenchmarkComponent.java
+++ b/src/benchmarks/edu/brown/api/BenchmarkComponent.java
@@ -1,1839 +1,1842 @@
/***********************... | true | true | protected void initializeConnection() {
StatsUploaderSettings statsSettings = null;
if (m_statsDatabaseURL != null && m_statsDatabaseURL.isEmpty() == false) {
try {
statsSettings = StatsUploaderSettings.singleton(
m_statsDatabaseURL,
... | protected void initializeConnection() {
StatsUploaderSettings statsSettings = null;
if (m_statsDatabaseURL != null && m_statsDatabaseURL.isEmpty() == false) {
try {
statsSettings = StatsUploaderSettings.singleton(
m_statsDatabaseURL,
... |
diff --git a/src/ru/spbau/bioinf/tagfinder/TexTableGenerator.java b/src/ru/spbau/bioinf/tagfinder/TexTableGenerator.java
index 69ed1dd..2820c64 100644
--- a/src/ru/spbau/bioinf/tagfinder/TexTableGenerator.java
+++ b/src/ru/spbau/bioinf/tagfinder/TexTableGenerator.java
@@ -1,253 +1,253 @@
package ru.spbau.bioinf.tagfin... | false | true | public static void createSixRowsTable(double[][] data, String caption, String header, int columnHeaderDelta) throws Exception {
int maxLen = 0;
for (int i = 0; i < data.length; i++) {
maxLen = Math.max(maxLen, data[i].length);
}
prepareEps(data, header + " (%)", 6, colum... | public static void createSixRowsTable(double[][] data, String caption, String header, int columnHeaderDelta) throws Exception {
int maxLen = 0;
for (int i = 0; i < data.length; i++) {
maxLen = Math.max(maxLen, data[i].length);
}
prepareEps(data, header + " (%)", 6, colum... |
diff --git a/src/jp/gr/java_conf/neko_daisuki/httpsync/MainActivity.java b/src/jp/gr/java_conf/neko_daisuki/httpsync/MainActivity.java
index 4f4201c..941ef83 100644
--- a/src/jp/gr/java_conf/neko_daisuki/httpsync/MainActivity.java
+++ b/src/jp/gr/java_conf/neko_daisuki/httpsync/MainActivity.java
@@ -1,574 +1,574 @@
pa... | true | true | private String readHtml(String url) {
HttpURLConnection conn = connect(url);
if (conn == null) {
return null;
}
InputStream in;
try {
in = conn.getInputStream();
}
catch (IOException e) {
... | private String readHtml(String url) {
HttpURLConnection conn = connect(url);
if (conn == null) {
return null;
}
InputStream in;
try {
in = conn.getInputStream();
}
catch (IOException e) {
... |
diff --git a/tools/etfw/org.eclipse.ptp.etfw.launch/src/org/eclipse/ptp/etfw/launch/ETFWParentLaunchConfigurationTab.java b/tools/etfw/org.eclipse.ptp.etfw.launch/src/org/eclipse/ptp/etfw/launch/ETFWParentLaunchConfigurationTab.java
index 63c42d6c2..9f47fcfc3 100644
--- a/tools/etfw/org.eclipse.ptp.etfw.launch/src/org/... | true | true | public RMLaunchValidation performApply(ILaunchConfigurationWorkingCopy configuration) {
RMLaunchValidation validation = super.performApply(configuration);
// TODO the above performApply should update the attribute map, but it doesn't right now so it is handled below
Iterator<String> iterator = getVariableMap().... | public RMLaunchValidation performApply(ILaunchConfigurationWorkingCopy configuration) {
RMLaunchValidation validation = super.performApply(configuration);
// TODO the above performApply should update the attribute map, but it doesn't right now so it is handled below
Iterator<String> iterator = getVariableMap().... |
diff --git a/src/org/supercsv/cellprocessor/constraint/DMinMax.java b/src/org/supercsv/cellprocessor/constraint/DMinMax.java
index a321428..6cf2555 100644
--- a/src/org/supercsv/cellprocessor/constraint/DMinMax.java
+++ b/src/org/supercsv/cellprocessor/constraint/DMinMax.java
@@ -1,65 +1,65 @@
package org.supercsv.cel... | true | true | public Object execute(final Object value, final CSVContext context) throws NumberFormatException {
final Double result;
if(value instanceof Double) {
result = (Double) value;
}
else {
result = Double.parseDouble(value.toString());
}
if(!(result >= min && result <= max)) {
throw new SuperCSVExcept... | public Object execute(final Object value, final CSVContext context) throws SuperCSVException {
final Double result;
if(value instanceof Double) {
result = (Double) value;
}
else {
result = Double.parseDouble(value.toString());
}
if(!(result >= min && result <= max)) {
throw new SuperCSVException(... |
diff --git a/src/plugins/org.drftpd.commands.zipscript.zip.links/src/org/drftpd/commands/zipscript/zip/links/hooks/LinksZipPostHook.java b/src/plugins/org.drftpd.commands.zipscript.zip.links/src/org/drftpd/commands/zipscript/zip/links/hooks/LinksZipPostHook.java
index 7e65eba6..77cd79e4 100644
--- a/src/plugins/org.drf... | true | true | public void doLinksZipWIPECleanupHook(CommandRequest request, CommandResponse response) {
if (response.getCode() != 200) {
// WIPE failed, abort cleanup
return;
}
String arg = request.getArgument();
if (arg.startsWith("-r ")) {
arg = arg.substring(3);
}
if (arg.endsWith(VirtualFileSystem.separator... | public void doLinksZipWIPECleanupHook(CommandRequest request, CommandResponse response) {
if (response.getCode() != 200) {
// WIPE failed, abort cleanup
return;
}
String arg = request.getArgument();
if (arg.startsWith("-r ")) {
arg = arg.substring(3);
}
if (arg.endsWith(VirtualFileSystem.separator... |
diff --git a/src/main/java/edu/mayo/cts2/framework/plugin/service/bioportal/transform/ResolvedValueSetTransform.java b/src/main/java/edu/mayo/cts2/framework/plugin/service/bioportal/transform/ResolvedValueSetTransform.java
index 7f40013..a186683 100644
--- a/src/main/java/edu/mayo/cts2/framework/plugin/service/bioporta... | true | true | public List<ResolvedValueSetDirectoryEntry> transfrom(String xml) {
Document doc = BioportalRestUtils.getDocument(xml);
List<Node> nodeList = TransformUtils.getNodeListWithPath(doc, "success.data.list.ontologyBean");
List<ResolvedValueSetDirectoryEntry> returnList = new ArrayList<ResolvedValueSetDirectoryEntr... | public List<ResolvedValueSetDirectoryEntry> transfrom(String xml) {
Document doc = BioportalRestUtils.getDocument(xml);
List<Node> nodeList = TransformUtils.getNodeListWithPath(doc, "success.data.list.ontologyBean");
List<ResolvedValueSetDirectoryEntry> returnList = new ArrayList<ResolvedValueSetDirectoryEntr... |
diff --git a/src/main/java/test/cli/cloudify/cloud/byon/RepetativeInstallAndUninstallOnByonTest.java b/src/main/java/test/cli/cloudify/cloud/byon/RepetativeInstallAndUninstallOnByonTest.java
index a54330a4..1ad7fe93 100644
--- a/src/main/java/test/cli/cloudify/cloud/byon/RepetativeInstallAndUninstallOnByonTest.java
+++... | false | true | public void testPetclinicSimple() throws Exception {
for (int i = 0; i < REPETITIONS; i++) {
LogUtils.log("petclinic install number " + (i + 1));
installApplicationAndWait(ScriptUtils.getBuildPath() + "/recipes/apps/petclinic-simple", "petclinic");
ProcessingUnit mongod = admin.getProcessingUnits().waitFo... | public void testPetclinicSimple() throws Exception {
for (int i = 0; i < REPETITIONS; i++) {
LogUtils.log("petclinic install number " + (i + 1));
installApplicationAndWait(ScriptUtils.getBuildPath() + "/recipes/apps/petclinic-simple", "petclinic");
ProcessingUnit mongod = admin.getProcessingUnits().waitFo... |
diff --git a/src/libbluray/bdj/java/java/awt/BDFontMetrics.java b/src/libbluray/bdj/java/java/awt/BDFontMetrics.java
index 0c6afb1..aa597f9 100644
--- a/src/libbluray/bdj/java/java/awt/BDFontMetrics.java
+++ b/src/libbluray/bdj/java/java/awt/BDFontMetrics.java
@@ -1,251 +1,253 @@
/*
* This file is part of libbluray
... | false | true | public static void init() {
//System.loadLibrary("bluray");
if (ftLib != 0)
return;
ftLib = initN();
if (ftLib == 0)
throw new AWTError("freetype lib not loaded");
Runtime.getRuntime().addShutdownHook(
new Thread() {
pub... | public static void init() {
//System.loadLibrary("bluray");
if (ftLib != 0)
return;
ftLib = initN();
if (ftLib == 0) {
System.err.println("freetype library not loaded");
throw new AWTError("freetype lib not loaded");
}
Runtime.g... |
diff --git a/plugins/org.eclipse.mylyn.docs.intent.client.ui/src/org/eclipse/mylyn/docs/intent/client/ui/utils/IntentEditorOpener.java b/plugins/org.eclipse.mylyn.docs.intent.client.ui/src/org/eclipse/mylyn/docs/intent/client/ui/utils/IntentEditorOpener.java
index 556400be..66976d30 100644
--- a/plugins/org.eclipse.myl... | true | true | private static IntentEditor openIntentEditor(RepositoryAdapter repositoryAdapter, EObject elementToOpen,
boolean readOnlyMode, EObject elementToSelectRangeWith, boolean forceNewEditor)
throws PartInitException {
IntentEditor openedEditor = null;
IStatus status = null;
// We get the element on which open th... | private static IntentEditor openIntentEditor(RepositoryAdapter repositoryAdapter, EObject elementToOpen,
boolean readOnlyMode, EObject elementToSelectRangeWith, boolean forceNewEditor)
throws PartInitException {
IntentEditor openedEditor = null;
IStatus status = null;
// We get the element on which open th... |
diff --git a/test-modules/webservice-test/src/test/java/org/openlmis/functional/FacilityFeed.java b/test-modules/webservice-test/src/test/java/org/openlmis/functional/FacilityFeed.java
index 3396fc5f4a..48b013bd34 100644
--- a/test-modules/webservice-test/src/test/java/org/openlmis/functional/FacilityFeed.java
+++ b/te... | true | true | public void testFacilityFeedUsingUI(String user, String program, String[] credentials) throws Exception {
HttpClient client = new HttpClient();
client.createContext();
LoginPage loginPage = new LoginPage(testWebDriver, baseUrlGlobal);
dbWrapper.insertUser("200", user, "Ag/myf1Whs0fxr1FFfK8cs3q/VJ1qM... | public void testFacilityFeedUsingUI(String user, String program, String[] credentials) throws Exception {
HttpClient client = new HttpClient();
client.createContext();
LoginPage loginPage = new LoginPage(testWebDriver, baseUrlGlobal);
dbWrapper.insertUser("200", user, "Ag/myf1Whs0fxr1FFfK8cs3q/VJ1qM... |
diff --git a/server/mmud/commands/BowCommand.java b/server/mmud/commands/BowCommand.java
index 39f6bc60..10026e74 100644
--- a/server/mmud/commands/BowCommand.java
+++ b/server/mmud/commands/BowCommand.java
@@ -1,78 +1,78 @@
/*-------------------------------------------------------------------------
cvsinfo: $Header$... | true | true | public boolean run(User aUser)
throws MudException
{
Logger.getLogger("mmud").finer("");
if (!super.run(aUser))
{
return false;
}
String command = getCommand();
String[] myParsed = getParsedCommand();
if (myParsed.length > 2 && myParsed[1].equalsIgnoreCase("to"))
{
Person toChar = Persons.retri... | public boolean run(User aUser)
throws MudException
{
Logger.getLogger("mmud").finer("");
if (!super.run(aUser))
{
return false;
}
String command = getCommand();
String[] myParsed = getParsedCommand();
if (myParsed.length > 2 && myParsed[1].equalsIgnoreCase("to"))
{
Person toChar = Persons.retri... |
diff --git a/service/src/main/java/com/pms/service/annotation/InitBean.java b/service/src/main/java/com/pms/service/annotation/InitBean.java
index 7104c88f..51f10c71 100644
--- a/service/src/main/java/com/pms/service/annotation/InitBean.java
+++ b/service/src/main/java/com/pms/service/annotation/InitBean.java
@@ -1,277... | true | true | private static void createSystemDefaultGroups(ICommonDao dao) {
String[] groupNames = new String[] { GroupBean.PROJECT_MANAGER_VALUE, GroupBean.PROJECT_ASSISTANT_VALUE, GroupBean.SALES_ASSISTANT_VALUE, GroupBean.PM, GroupBean.FINANCE,
GroupBean.SALES_MANAGER_VALUE, GroupBean.COO_VALUE, Group... | private static void createSystemDefaultGroups(ICommonDao dao) {
String[] groupNames = new String[] { GroupBean.PROJECT_MANAGER_VALUE, GroupBean.PROJECT_ASSISTANT_VALUE, GroupBean.SALES_ASSISTANT_VALUE, GroupBean.PM, GroupBean.FINANCE,
GroupBean.SALES_MANAGER_VALUE, GroupBean.COO_VALUE, Group... |
diff --git a/src/de/caluga/morphium/Morphium.java b/src/de/caluga/morphium/Morphium.java
index 6197034b..63d8357a 100644
--- a/src/de/caluga/morphium/Morphium.java
+++ b/src/de/caluga/morphium/Morphium.java
@@ -1,2000 +1,2000 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the ... | true | true | public void callLifecycleMethod(Class<? extends Annotation> type, Object on) {
if (on == null) return;
//No synchronized block - might cause the methods to be put twice into the
//hashtabel - but for performance reasons, it's ok...
Class<?> cls = on.getClass();
//No Lifecycle... | public void callLifecycleMethod(Class<? extends Annotation> type, Object on) {
if (on == null) return;
//No synchronized block - might cause the methods to be put twice into the
//hashtabel - but for performance reasons, it's ok...
Class<?> cls = on.getClass();
//No Lifecycle... |
diff --git a/esmska/src/esmska/gui/ConfigFrame.java b/esmska/src/esmska/gui/ConfigFrame.java
index 71936d43..578915d4 100644
--- a/esmska/src/esmska/gui/ConfigFrame.java
+++ b/esmska/src/esmska/gui/ConfigFrame.java
@@ -1,1079 +1,1079 @@
/*
* ConfigFrame.java
*
* Created on 20. červenec 2007, 18:59
*/
packag... | false | true | private void initComponents() {
bindingGroup = new org.jdesktop.beansbinding.BindingGroup();
config = PersistenceManager.getConfig();
develPanel = new javax.swing.JPanel();
rememberLayoutCheckBox = new javax.swing.JCheckBox();
tabbedPane = new javax.swing.JTabbedPane();
... | private void initComponents() {
bindingGroup = new org.jdesktop.beansbinding.BindingGroup();
config = PersistenceManager.getConfig();
develPanel = new javax.swing.JPanel();
rememberLayoutCheckBox = new javax.swing.JCheckBox();
tabbedPane = new javax.swing.JTabbedPane();
... |
diff --git a/src/com/klinker/android/send_message/Transaction.java b/src/com/klinker/android/send_message/Transaction.java
index f4c2799..60fcc79 100644
--- a/src/com/klinker/android/send_message/Transaction.java
+++ b/src/com/klinker/android/send_message/Transaction.java
@@ -1,852 +1,852 @@
/*
* Copyright 2013 Jaco... | false | true | private void sendSmsMessage(String text, String[] addresses, String threadId) {
String SENT = "com.klinker.android.send_message.SMS_SENT";
String DELIVERED = "com.klinker.android.send_message.SMS_DELIVERED";
PendingIntent sentPI = PendingIntent.getBroadcast(context, 0, new Intent(SENT), 0);... | private void sendSmsMessage(String text, String[] addresses, String threadId) {
String SENT = "com.klinker.android.send_message.SMS_SENT";
String DELIVERED = "com.klinker.android.send_message.SMS_DELIVERED";
PendingIntent sentPI = PendingIntent.getBroadcast(context, 0, new Intent(SENT), 0);... |
diff --git a/src/main/java/kr/co/vcnc/haeinsa/HaeinsaTransactionManager.java b/src/main/java/kr/co/vcnc/haeinsa/HaeinsaTransactionManager.java
index 13fc6f8..f8982a8 100644
--- a/src/main/java/kr/co/vcnc/haeinsa/HaeinsaTransactionManager.java
+++ b/src/main/java/kr/co/vcnc/haeinsa/HaeinsaTransactionManager.java
@@ -1,2... | true | true | protected HaeinsaTransaction getTransaction(byte[] tableName, byte[] row) throws IOException {
TRowLock unstableRowLock = getUnstableRowLock(tableName, row);
if (unstableRowLock == null) {
// There is no on-going transaction on the row.
return null;
}
TRowLock primaryRowLock = null;
TRowKey primaryRo... | protected HaeinsaTransaction getTransaction(byte[] tableName, byte[] row) throws IOException {
TRowLock unstableRowLock = getUnstableRowLock(tableName, row);
if (unstableRowLock == null) {
// There is no on-going transaction on the row.
return null;
}
TRowLock primaryRowLock = null;
TRowKey primaryRo... |
diff --git a/src/org/sump/analyzer/Label.java b/src/org/sump/analyzer/Label.java
index 9458c34..192f6ce 100644
--- a/src/org/sump/analyzer/Label.java
+++ b/src/org/sump/analyzer/Label.java
@@ -1,91 +1,91 @@
/*
* Copyright (C) 2012 John Pritchard
*
* This program is free software; you can redistribute it and/o... | true | true | public final static String For(ActionEvent evt){
String label = evt.getActionCommand();
if (null == Label.For(label)){
Object source = evt.getSource();
if (source instanceof AbstractButton){
return ((ImageIcon)((AbstractButton)source).getIcon()).getDescription... | public final static String For(ActionEvent evt){
String label = evt.getActionCommand();
if (Label.UNKNOWN == Label.For(label)){
Object source = evt.getSource();
if (source instanceof AbstractButton){
return ((ImageIcon)((AbstractButton)source).getIcon()).getDe... |
diff --git a/Courseworks/201011/Two/Game.java b/Courseworks/201011/Two/Game.java
index be293a2..b8e7907 100644
--- a/Courseworks/201011/Two/Game.java
+++ b/Courseworks/201011/Two/Game.java
@@ -1,254 +1,257 @@
// Oliver Kullmann, 6.12.2010 (Swansea)
/*
After construction, an object G of type Game offers G.get_mov... | true | true | public static void main(final String[] args) {
// construction
{
final String
ev1 = "F/S Return Match", si1 = "Belgrade, Serbia Yugoslavia|JUG",
da1 = "1992.11.04", nw1 = "Fischer, Robert J.",
nb1 = "Spassky, Boris V.", re1 = "1/2-1/2",
mo1_0 = "1. e4 e5 2. Nf3 Nc6 3. Bb5... | public static void main(final String[] args) {
// construction
{
final String
ev1 = "F/S Return Match", si1 = "Belgrade, Serbia Yugoslavia|JUG",
da1 = "1992.11.04", nw1 = "Fischer, Robert J.",
nb1 = "Spassky, Boris V.", re1 = "1/2-1/2",
mo1_0 = "1. e4 e5 2. Nf3 Nc6 3. Bb5... |
diff --git a/integrar-t-android/src/main/java/org/utn/proyecto/helpful/integrart/integrar_t_android/services/FileSystemServiceImpl.java b/integrar-t-android/src/main/java/org/utn/proyecto/helpful/integrart/integrar_t_android/services/FileSystemServiceImpl.java
index 00729d5..ef13f9c 100644
--- a/integrar-t-android/src/... | false | true | public void addResource(String activityName,
String packageName, Resource<InputStream> resource) {
db.addResource(userName, activityName, packageName, resource);
String fullPath = getFullPath(activityName, packageName);
try {
FileOutputStream output = context.openFileOutput(fullPath + "." + resource.getN... | public void addResource(String activityName,
String packageName, Resource<InputStream> resource) {
db.addResource(userName, activityName, packageName, resource);
String fullPath = getFullPath(activityName, packageName);
try {
FileOutputStream output = context.openFileOutput(fullPath + "." + resource.getN... |
diff --git a/src/com/studentersamfundet/app/ui/JoinUsActivity.java b/src/com/studentersamfundet/app/ui/JoinUsActivity.java
index cc0703e..fb2c944 100644
--- a/src/com/studentersamfundet/app/ui/JoinUsActivity.java
+++ b/src/com/studentersamfundet/app/ui/JoinUsActivity.java
@@ -1,17 +1,17 @@
package com.studentersamfund... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.join_us);
TextView tv = (TextView)findViewById(R.id.join_us_textview);
Linkify.addLinks(tv, Linkify.EMAIL_ADDRESSES);
}
| public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.join_us);
TextView tv = (TextView)findViewById(R.id.join_us_textview);
Linkify.addLinks(tv, Linkify.ALL);
}
|
diff --git a/src/java/jp/gihyo/jenkinsbook/action/SampleAction.java b/src/java/jp/gihyo/jenkinsbook/action/SampleAction.java
index 835e33e..cd2ef79 100755
--- a/src/java/jp/gihyo/jenkinsbook/action/SampleAction.java
+++ b/src/java/jp/gihyo/jenkinsbook/action/SampleAction.java
@@ -1,71 +1,71 @@
package jp.gihyo.jenkins... | true | true | public final boolean checkParameter(final HttpServletRequest request) {
firstName = request.getParameter("FirstName");
if ((firstName == null) || ("".equals(firstName))) {
return false;
}
lastName = request.getParameter("LastName");
if ((lastName == null) || (""... | public final boolean checkParameter(final HttpServletRequest request) {
firstName = request.getParameter("FirstName");
if ((firstName == null) || ("".equals(firstName))) {
return false;
}
lastName = request.getParameter("LastName");
if ((lastName == null) || (""... |
diff --git a/src/be/ibridge/kettle/trans/step/sql/ExecSQL.java b/src/be/ibridge/kettle/trans/step/sql/ExecSQL.java
index 93964d75..980b0ffe 100644
--- a/src/be/ibridge/kettle/trans/step/sql/ExecSQL.java
+++ b/src/be/ibridge/kettle/trans/step/sql/ExecSQL.java
@@ -1,257 +1,257 @@
/**************************************... | true | true | public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException
{
meta=(ExecSQLMeta)smi;
data=(ExecSQLData)sdi;
debug = "execute SQ start";
Row row = null;
if (!meta.isExecutedEachInputRow())
{
debug = "exec ... | public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException
{
meta=(ExecSQLMeta)smi;
data=(ExecSQLData)sdi;
debug = "execute SQ start";
Row row = null;
if (!meta.isExecutedEachInputRow())
{
debug = "exec ... |
diff --git a/src/BinaryTreeMaxPath.java b/src/BinaryTreeMaxPath.java
index 3275f92..c7b22a7 100644
--- a/src/BinaryTreeMaxPath.java
+++ b/src/BinaryTreeMaxPath.java
@@ -1,70 +1,72 @@
/*
* Given a binary tree, find the maximum path sum.
The path may start and end at any node in the tree.
For example:
Given the... | true | true | public TreeVal getTreeVal(TreeNode node) {
TreeVal out = new TreeVal();
if (node == null)
return out;
TreeVal left = getTreeVal(node.left);
TreeVal right = getTreeVal(node.right);
int childExport = Math.max(left.export, right.export);
... | public TreeVal getTreeVal(TreeNode node) {
TreeVal out = new TreeVal();
if (node == null)
return out;
TreeVal left = getTreeVal(node.left);
TreeVal right = getTreeVal(node.right);
int childExport = Math.max(left.export, right.export);
... |
diff --git a/src/BotClientSender.java b/src/BotClientSender.java
index fe14314..e37be3f 100644
--- a/src/BotClientSender.java
+++ b/src/BotClientSender.java
@@ -1,40 +1,40 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author geza
*/
impor... | true | true | public void start() {
while (running) {
try {
java.lang.Thread.sleep(1000);
origim.publish(origI);
origim.publish(procI);
} catch (Exception e) {
e.printStackTrace();
}
}
}
| public void start() {
while (running) {
try {
java.lang.Thread.sleep(1000);
origim.publish(origI);
procim.publish(procI);
} catch (Exception e) {
e.printStackTrace();
}
}
}
|
diff --git a/server/src/org/bedework/caldav/server/CaldavComponentNode.java b/server/src/org/bedework/caldav/server/CaldavComponentNode.java
index 81ea0cf..28d033e 100644
--- a/server/src/org/bedework/caldav/server/CaldavComponentNode.java
+++ b/server/src/org/bedework/caldav/server/CaldavComponentNode.java
@@ -1,518 +... | false | true | public PropVal generatePropertyValue(WebdavProperty pr) throws WebdavIntfException {
PropVal pv = new PropVal();
QName tag = pr.getTag();
String ns = tag.getNamespaceURI();
BwCalendar cal = getCDURI().getCal();
/* Deal with webdav properties */
if ((!ns.equals(CaldavDefs.caldavNamespace) &&
... | public PropVal generatePropertyValue(WebdavProperty pr) throws WebdavIntfException {
PropVal pv = new PropVal();
QName tag = pr.getTag();
String ns = tag.getNamespaceURI();
BwCalendar cal = getCDURI().getCal();
/* Deal with webdav properties */
if ((!ns.equals(CaldavDefs.caldavNamespace) &&
... |
diff --git a/integration/src/main/java/org/obiba/magma/integration/IntegrationApp.java b/integration/src/main/java/org/obiba/magma/integration/IntegrationApp.java
index a374630f..4a794a3b 100644
--- a/integration/src/main/java/org/obiba/magma/integration/IntegrationApp.java
+++ b/integration/src/main/java/org/obiba/mag... | true | true | public static void main(String[] args) throws IOException, NoSuchAlgorithmException {
new MagmaEngine().extend(new MagmaJsExtension()).extend(new MagmaXStreamExtension());
XStreamIntegrationServiceFactory factory = new XStreamIntegrationServiceFactory();
IntegrationDatasource integrationDatasource = new ... | public static void main(String[] args) throws IOException, NoSuchAlgorithmException {
new MagmaEngine().extend(new MagmaJsExtension()).extend(new MagmaXStreamExtension());
XStreamIntegrationServiceFactory factory = new XStreamIntegrationServiceFactory();
IntegrationDatasource integrationDatasource = new ... |
diff --git a/src/com/google/caliper/Parameter.java b/src/com/google/caliper/Parameter.java
index 72ff080..7258955 100644
--- a/src/com/google/caliper/Parameter.java
+++ b/src/com/google/caliper/Parameter.java
@@ -1,171 +1,171 @@
/*
* Copyright (C) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2... | true | true | public static Parameter forField(
Class<? extends Benchmark> suiteClass, final Field field) {
// First check for String values on the annotation itself
final String[] defaults = field.getAnnotation(Param.class).value();
if (defaults.length > 0) {
return new Parameter<Object>(field) {
p... | public static Parameter forField(
Class<? extends Benchmark> suiteClass, final Field field) {
// First check for String values on the annotation itself
final Object[] defaults = field.getAnnotation(Param.class).value();
if (defaults.length > 0) {
return new Parameter<Object>(field) {
p... |
diff --git a/shindig/src/main/java/org/jahia/services/shindig/JahiaOAuthDataStore.java b/shindig/src/main/java/org/jahia/services/shindig/JahiaOAuthDataStore.java
index 75d01828..601a537b 100644
--- a/shindig/src/main/java/org/jahia/services/shindig/JahiaOAuthDataStore.java
+++ b/shindig/src/main/java/org/jahia/service... | true | true | public OAuthConsumer getConsumer(String consumerKey) {
//try {
// TODO we should lookup deployed mashups here for consumerSecret info.
/*
JSONObject app = service.getDb().getJSONObject("apps").getJSONObject(Preconditions.checkNotNull(consumerKey));
String consumerSecret = app.g... | public OAuthConsumer getConsumer(String consumerKey) {
//try {
// TODO we should lookup deployed portlets here for consumerSecret info.
/*
JSONObject app = service.getDb().getJSONObject("apps").getJSONObject(Preconditions.checkNotNull(consumerKey));
String consumerSecret = app.... |
diff --git a/platform/src/pl/net/bluesoft/rnd/processtool/editor/AperteWorkflowDefinitionGenerator.java b/platform/src/pl/net/bluesoft/rnd/processtool/editor/AperteWorkflowDefinitionGenerator.java
index 7a831c6..a9e175b 100644
--- a/platform/src/pl/net/bluesoft/rnd/processtool/editor/AperteWorkflowDefinitionGenerator.j... | true | true | public void init(String json) {
try {
this.json = json;
JSONObject jsonObj = enrichModelerDataForBpmn20();
// JSONObject jsonObj = new JSONObject(json);
processName = jsonObj.getJSONObject("properties").getString("name");
processFileName = jsonObj.g... | public void init(String json) {
try {
this.json = json;
JSONObject jsonObj = enrichModelerDataForBpmn20();
// JSONObject jsonObj = new JSONObject(json);
processName = jsonObj.getJSONObject("properties").getString("name");
processFileName = jsonObj.g... |
diff --git a/src/main/java/eionet/webq/dao/ProjectFileStorageImpl.java b/src/main/java/eionet/webq/dao/ProjectFileStorageImpl.java
index 78e6ae6..8897762 100644
--- a/src/main/java/eionet/webq/dao/ProjectFileStorageImpl.java
+++ b/src/main/java/eionet/webq/dao/ProjectFileStorageImpl.java
@@ -1,149 +1,149 @@
/*
* The... | true | true | private Conjunction activeWebFormCriterionForType(WebFormType type) {
Conjunction criterion = Restrictions.and(eq("fileType", ProjectFileType.WEBFORM), eq("active", true), isNotNull("xmlSchema"));
if (type == WebFormType.LOCAL) {
criterion.add(eq("localForm", true));
}
if... | private Conjunction activeWebFormCriterionForType(WebFormType type) {
Conjunction criterion = and(eq("fileType", ProjectFileType.WEBFORM), eq("active", true), isNotNull("xmlSchema"));
if (type == WebFormType.LOCAL) {
criterion.add(eq("localForm", true));
}
if (type == Web... |
diff --git a/cleia/cleia-rest/src/main/java/com/abada/cleia/rest/form/FormProcessController.java b/cleia/cleia-rest/src/main/java/com/abada/cleia/rest/form/FormProcessController.java
index bbd246d..ab884a0 100644
--- a/cleia/cleia-rest/src/main/java/com/abada/cleia/rest/form/FormProcessController.java
+++ b/cleia/cleia... | true | true | private String completeProcessPriv(String definitionid, Long patientId,HttpServletRequest request, Model model) {
try {
Map<String, Object> params = URL.parseRequest(request);
Patient patient = this.patientDao.getPatientById(patientId);
//params.put("patient_patientids",... | private String completeProcessPriv(String definitionid, Long patientId,HttpServletRequest request, Model model) {
try {
Map<String, Object> params = URL.parseRequest(request);
Patient patient = this.patientDao.getPatientById(patientId);
//params.put("patient_patientids",... |
diff --git a/src/main/java/tconstruct/client/tabs/AbstractTab.java b/src/main/java/tconstruct/client/tabs/AbstractTab.java
index 4e14da422..97da51632 100644
--- a/src/main/java/tconstruct/client/tabs/AbstractTab.java
+++ b/src/main/java/tconstruct/client/tabs/AbstractTab.java
@@ -1,67 +1,67 @@
package tconstruct.clien... | true | true | public void drawButton (Minecraft mc, int mouseX, int mouseY)
{
if (this.visible)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
int yTexPos = this.enabled ? 0 : 32;
int ySize = this.enabled ? 28 : 32;
int xOffset = this.id == 2 ? 0 : 1;
m... | public void drawButton (Minecraft mc, int mouseX, int mouseY)
{
if (this.visible)
{
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
int yTexPos = this.enabled ? 3 : 32;
int ySize = this.enabled ? 28 : 32;
int xOffset = this.id == 2 ? 0 : 1;
m... |
diff --git a/src/plugin/bleachisback/LogiBlocks/LogiBlocksMain.java b/src/plugin/bleachisback/LogiBlocks/LogiBlocksMain.java
index 3605284..de383d6 100644
--- a/src/plugin/bleachisback/LogiBlocks/LogiBlocksMain.java
+++ b/src/plugin/bleachisback/LogiBlocks/LogiBlocksMain.java
@@ -1,900 +1,900 @@
package plugin.bleachi... | false | true | public boolean onFlag(String flag, String[] args, BlockCommandSender sender) throws FlagFailureException
{
switch(flag)
{
case "getflag":
if(!(args.length<1))
{
throw new FlagFailureException();
}
if(flagConfig.contains("local."+sender.getName()+"."+args[0]))
{
return flagConfig.g... | public boolean onFlag(String flag, String[] args, BlockCommandSender sender) throws FlagFailureException
{
switch(flag)
{
case "getflag":
if(args.length<1)
{
throw new FlagFailureException();
}
if(flagConfig.contains("local."+sender.getName()+"."+args[0]))
{
return flagConfig.getB... |
diff --git a/src/main/java/net/h31ix/anticheat/util/Utilities.java b/src/main/java/net/h31ix/anticheat/util/Utilities.java
index 0d63eea..a0510c7 100644
--- a/src/main/java/net/h31ix/anticheat/util/Utilities.java
+++ b/src/main/java/net/h31ix/anticheat/util/Utilities.java
@@ -1,231 +1,231 @@
/*
* AntiCheat for Bukki... | false | true | public static void alert(String[] message)
{
for(Player player : Bukkit.getOnlinePlayers())
{
if(player.hasPermission("anticheat.alert"));
for (String msg : message)
{
player.sendMessage(msg);
}
}
if (Anticheat.getMa... | public static void alert(String[] message)
{
for(Player player : Bukkit.getOnlinePlayers())
{
for (String msg : message)
{
if(player.hasPermission("anticheat.alert"))
player.sendMessage(msg);
}
}
if (Antichea... |
diff --git a/src/com/sonyericsson/chkbugreport/plugins/stacktrace/Generator.java b/src/com/sonyericsson/chkbugreport/plugins/stacktrace/Generator.java
index 713c28c..db7796d 100644
--- a/src/com/sonyericsson/chkbugreport/plugins/stacktrace/Generator.java
+++ b/src/com/sonyericsson/chkbugreport/plugins/stacktrace/Genera... | false | true | private void genChapter(BugReportModule br, int id, Processes processes, String chapterName) {
Chapter main = processes.getChapter();
Calendar tsBr = br.getTimestamp();
Calendar tsSec = Util.parseTimestamp(br, processes.getSectionName());
String diff = Util.formatTimeDiff(tsBr, tsSec... | private void genChapter(BugReportModule br, int id, Processes processes, String chapterName) {
Chapter main = processes.getChapter();
Calendar tsBr = br.getTimestamp();
Calendar tsSec = Util.parseTimestamp(br, processes.getSectionName());
String diff = Util.formatTimeDiff(tsBr, tsSec... |
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/src/Extra/org/objectweb/proactive/extra/gcmdeployment/GCMDeployment/GroupParsers/GroupRSHParser.java b/src/Extra/org/objectweb/proactive/extra/gcmdeployment/GCMDeployment/GroupParsers/GroupRSHParser.java
index b93f97242..1b0a109c9 100644
--- a/src/Extra/org/objectweb/proactive/extra/gcmdeployment/GCMDeploy... | false | true | public AbstractGroup parseGroupNode(Node groupNode, XPath xpath) {
GroupSSH groupSSH = (GroupSSH) super.parseGroupNode(groupNode, xpath);
// Mandatory attributes
String hostList = GCMParserHelper.getAttributeValue(groupNode, ATTR_HOST_LIST);
groupSSH.setHostList(hostList);
... | public AbstractGroup parseGroupNode(Node groupNode, XPath xpath) {
GroupRSH groupRSH = (GroupRSH) super.parseGroupNode(groupNode, xpath);
// Mandatory attributes
String hostList = GCMParserHelper.getAttributeValue(groupNode, ATTR_HOST_LIST);
groupRSH.setHostList(hostList);
... |
diff --git a/src/net/wcjj/scharing/DailyScheduleListActivity.java b/src/net/wcjj/scharing/DailyScheduleListActivity.java
index de06f08..c241cbd 100755
--- a/src/net/wcjj/scharing/DailyScheduleListActivity.java
+++ b/src/net/wcjj/scharing/DailyScheduleListActivity.java
@@ -1,133 +1,134 @@
/**
* Scharing - Allows yo... | true | true | public void mBtnDelete_Click() {
Schedule ringSchedule = Service.getRingSchedule();
final int CHECKBOX_INDEX = 3;
final int TIME_TEXTBOX_INDEX = 1;
final int NBR_VIEWS_IN_ROW = 4;
LinearLayout row = null;
Time time = null;
CheckBox cb = null;
ListView lv = getListView();
int rowCount = lv.getCount(... | public void mBtnDelete_Click() {
Schedule ringSchedule = Service.getRingSchedule();
final int CHECKBOX_INDEX = 3;
final int TIME_TEXTBOX_INDEX = 1;
final int NBR_VIEWS_IN_ROW = 4;
LinearLayout row = null;
Time time = null;
CheckBox cb = null;
ListView lv = getListView();
int rowCount = lv.getCount(... |
diff --git a/src/com/group7/project/Building.java b/src/com/group7/project/Building.java
index 17cb05d..5acf31b 100644
--- a/src/com/group7/project/Building.java
+++ b/src/com/group7/project/Building.java
@@ -1,43 +1,43 @@
package com.group7.project;
import com.google.android.gms.maps.model.LatLng;
import com.goog... | false | true | public LatLng getCenter()
{
double n = bounds.northeast.latitude;
double e = bounds.northeast.longitude;
double s = bounds.southwest.latitude;
double w = bounds.southwest.longitude;
double lat = ((n + s) / 2.0);
double lon = ((e + w) / 2.0);
return n... | public LatLng getCenter()
{
double n = bounds.northeast.latitude;
double e = bounds.northeast.longitude;
double s = bounds.southwest.latitude;
double w = bounds.southwest.longitude;
double lat = ((n + s) / 2.0);
double lon = ((e + w) / 2.0);
return new LatLng(lat, lon);
}
|
diff --git a/geoserver/community/web2/core/src/main/java/org/geoserver/web/GeoServerBasePage.java b/geoserver/community/web2/core/src/main/java/org/geoserver/web/GeoServerBasePage.java
index 31eb33c62f..6496a07ca7 100644
--- a/geoserver/community/web2/core/src/main/java/org/geoserver/web/GeoServerBasePage.java
+++ b/ge... | true | true | public GeoServerBasePage() {
// login form
Form loginForm = new SignInForm("loginform");
add(loginForm);
loginForm.setVisible(GeoServerSession.get().getAuthentication() == null);
Form logoutForm = new StatelessForm("logoutform"){
@Override
public voi... | public GeoServerBasePage() {
// login form
Form loginForm = new SignInForm("loginform");
add(loginForm);
loginForm.setVisible(GeoServerSession.get().getAuthentication() == null);
Form logoutForm = new StatelessForm("logoutform"){
@Override
public voi... |
diff --git a/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationItem.java b/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationItem.java
index 7c005694..e0431f05 100644
--- a/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationItem.java
+++ b/SWADroid/src/es/ugr/swad/sw... | true | true | protected void onCreate(Bundle savedInstanceState) {
TextView senderTextView, courseTextView, summaryTextView, dateTextView, timeTextView;
ImageView userPhotoView;
WebView webview;
Intent activity;
String type = this.getIntent().getStringExtra("notificationType");
su... | protected void onCreate(Bundle savedInstanceState) {
TextView senderTextView, courseTextView, summaryTextView, dateTextView, timeTextView;
ImageView userPhotoView;
WebView webview;
Intent activity;
String type = this.getIntent().getStringExtra("notificationType");
su... |
diff --git a/hedwig-server/src/main/java/org/apache/hedwig/server/handlers/SubscribeHandler.java b/hedwig-server/src/main/java/org/apache/hedwig/server/handlers/SubscribeHandler.java
index 0622f2b8..64478a9b 100644
--- a/hedwig-server/src/main/java/org/apache/hedwig/server/handlers/SubscribeHandler.java
+++ b/hedwig-se... | false | true | public void handleRequestAtOwner(final PubSubRequest request, final Channel channel) {
final long requestTimeMillis = MathUtils.now();
if (!request.hasSubscribeRequest()) {
logger.error("Received a request: {} on channel: {} without a Subscribe request.",
request, cha... | public void handleRequestAtOwner(final PubSubRequest request, final Channel channel) {
final long requestTimeMillis = MathUtils.now();
if (!request.hasSubscribeRequest()) {
logger.error("Received a request: {} on channel: {} without a Subscribe request.",
request, cha... |
diff --git a/Addons/Camouflage/CF-common/wirelessredstone/addon/camouflager/inventory/ContainerCamouflagedRedstoneWireless.java b/Addons/Camouflage/CF-common/wirelessredstone/addon/camouflager/inventory/ContainerCamouflagedRedstoneWireless.java
index fb006c8..68509d2 100644
--- a/Addons/Camouflage/CF-common/wirelessred... | false | true | private ItemStack transferBlockToSlot(EntityPlayer player, int slotShiftClicked) {
ItemStack stackCopy = null;
Slot slot = this.getSlot(slotShiftClicked);
if (slot != null && slot.getHasStack()) {
ItemStack stackInSlot = slot.getStack();
stackCopy = stackInSlot.copy();
if (slotShiftClicked < 1) {
i... | private ItemStack transferBlockToSlot(EntityPlayer player, int slotShiftClicked) {
ItemStack stackCopy = null;
Slot slot = this.getSlot(slotShiftClicked);
if (slot != null && slot.getHasStack()) {
ItemStack stackInSlot = slot.getStack();
stackCopy = stackInSlot.copy();
if (slotShiftClicked < 1) {
i... |
diff --git a/src/com/jidesoft/swing/PartialLineBorder.java b/src/com/jidesoft/swing/PartialLineBorder.java
index 44bdcef1..36738571 100644
--- a/src/com/jidesoft/swing/PartialLineBorder.java
+++ b/src/com/jidesoft/swing/PartialLineBorder.java
@@ -1,70 +1,70 @@
package com.jidesoft.swing;
import javax.swing.border.L... | true | true | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
Color oldColor = g.getColor();
int i;
g.setColor(lineColor);
for (i = 0; i < thickness; i++) {
if (_sides == ALL) {
if (!roundedCorners)
g.drawRect... | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
Color oldColor = g.getColor();
int i;
g.setColor(lineColor);
for (i = 0; i < thickness; i++) {
if (_sides == ALL) {
if (!roundedCorners)
g.drawRect... |
diff --git a/src/com/android/contacts/list/DefaultContactListAdapter.java b/src/com/android/contacts/list/DefaultContactListAdapter.java
index 2a8d66581..3409f5652 100644
--- a/src/com/android/contacts/list/DefaultContactListAdapter.java
+++ b/src/com/android/contacts/list/DefaultContactListAdapter.java
@@ -1,254 +1,25... | true | true | private void configureSelection(
CursorLoader loader, long directoryId, ContactListFilter filter) {
if (filter == null) {
return;
}
if (directoryId != Directory.DEFAULT) {
return;
}
StringBuilder selection = new StringBuilder();
L... | private void configureSelection(
CursorLoader loader, long directoryId, ContactListFilter filter) {
if (filter == null) {
return;
}
if (directoryId != Directory.DEFAULT) {
return;
}
StringBuilder selection = new StringBuilder();
L... |
diff --git a/loci/visbio/util/MatlabUtil.java b/loci/visbio/util/MatlabUtil.java
index 44c2a2027..0dd5d04da 100644
--- a/loci/visbio/util/MatlabUtil.java
+++ b/loci/visbio/util/MatlabUtil.java
@@ -1,244 +1,244 @@
//
// MatlabUtil.java
//
/*
VisBio application for visualization of multidimensional
biological ima... | false | true | public static FlatField exec(String function, FlatField ff) {
Set set = ff.getDomainSet();
if (!(set instanceof GriddedSet)) return null;
GriddedSet gset = (GriddedSet) set;
int[] len = gset.getLengths();
double[][] samples = null;
try { samples = ff.getValues(false); }
catch (VisADExcepti... | public static FlatField exec(String function, FlatField ff) {
Set set = ff.getDomainSet();
if (!(set instanceof GriddedSet)) return null;
GriddedSet gset = (GriddedSet) set;
int[] len = gset.getLengths();
double[][] samples = null;
try { samples = ff.getValues(false); }
catch (VisADExcepti... |
diff --git a/hot-deploy/opentaps-common/src/common/org/opentaps/common/domain/product/ProductRepository.java b/hot-deploy/opentaps-common/src/common/org/opentaps/common/domain/product/ProductRepository.java
index 48cb685f2..7a02a69d2 100644
--- a/hot-deploy/opentaps-common/src/common/org/opentaps/common/domain/product/... | true | true | public Product getProductByComprehensiveSearch(String id) throws RepositoryException {
try {
Product product = null;
// use Pojo service wrappers to call GetProductByComprehensiveSearch service
GetProductByComprehensiveSearch service = new GetProductByComprehensiveSearch(... | public Product getProductByComprehensiveSearch(String id) throws RepositoryException {
try {
Product product = null;
// use Pojo service wrappers to call GetProductByComprehensiveSearch service
GetProductByComprehensiveSearch service = new GetProductByComprehensiveSearch(... |
diff --git a/src/java/com/idega/block/news/presentation/NewsEditorWindow.java b/src/java/com/idega/block/news/presentation/NewsEditorWindow.java
index 1944198..8d32a55 100644
--- a/src/java/com/idega/block/news/presentation/NewsEditorWindow.java
+++ b/src/java/com/idega/block/news/presentation/NewsEditorWindow.java
@@ ... | true | true | private void addNewsFields(NwNews nwNews ,ContentHelper contentHelper, int iLocaleId,int iObjInsId,int iCategoryId){
LocalizedText locText = null;
boolean hasContent = ( contentHelper != null) ? true:false;
if(hasContent)
locText = contentHelper.getLocalizedText(TextFinder.getLocale(iLocaleId));
... | private void addNewsFields(NwNews nwNews ,ContentHelper contentHelper, int iLocaleId,int iObjInsId,int iCategoryId){
LocalizedText locText = null;
boolean hasContent = ( contentHelper != null) ? true:false;
if(hasContent)
locText = contentHelper.getLocalizedText(TextFinder.getLocale(iLocaleId));
... |
diff --git a/src/main/java/com/novemberain/quartz/mongodb/MongoDBJobStore.java b/src/main/java/com/novemberain/quartz/mongodb/MongoDBJobStore.java
index 0cc2e18..e7d7224 100755
--- a/src/main/java/com/novemberain/quartz/mongodb/MongoDBJobStore.java
+++ b/src/main/java/com/novemberain/quartz/mongodb/MongoDBJobStore.java... | true | true | public List<OperableTrigger> acquireNextTriggers(long noLaterThan, int maxCount, long timeWindow)
throws JobPersistenceException {
BasicDBObject query = new BasicDBObject();
query.put(TRIGGER_NEXT_FIRE_TIME, new BasicDBObject("$lte", new Date(noLaterThan)));
if (log.isDebugEnabled()) {
log.de... | public List<OperableTrigger> acquireNextTriggers(long noLaterThan, int maxCount, long timeWindow)
throws JobPersistenceException {
BasicDBObject query = new BasicDBObject();
query.put(TRIGGER_NEXT_FIRE_TIME, new BasicDBObject("$lte", new Date(noLaterThan)));
if (log.isDebugEnabled()) {
log.de... |
diff --git a/src/uk/org/ponder/rsf/renderer/html/BasicHTMLRenderSystem.java b/src/uk/org/ponder/rsf/renderer/html/BasicHTMLRenderSystem.java
index 01d8403..1c388b1 100644
--- a/src/uk/org/ponder/rsf/renderer/html/BasicHTMLRenderSystem.java
+++ b/src/uk/org/ponder/rsf/renderer/html/BasicHTMLRenderSystem.java
@@ -1,436 +... | true | true | public int renderComponent(UIComponent torendero, View view, XMLLump[] lumps,
int lumpindex, PrintOutputStream pos) {
XMLWriter xmlw = new XMLWriter(pos);
XMLLump lump = lumps[lumpindex];
int nextpos = -1;
XMLLump outerendopen = lump.open_end;
XMLLump outerclose = lump.close_tag;
nextpo... | public int renderComponent(UIComponent torendero, View view, XMLLump[] lumps,
int lumpindex, PrintOutputStream pos) {
XMLWriter xmlw = new XMLWriter(pos);
XMLLump lump = lumps[lumpindex];
int nextpos = -1;
XMLLump outerendopen = lump.open_end;
XMLLump outerclose = lump.close_tag;
nextpo... |
diff --git a/geoportal_1/src/main/java/org/OpenGeoPortal/Ogc/Wfs/WfsGetFeature.java b/geoportal_1/src/main/java/org/OpenGeoPortal/Ogc/Wfs/WfsGetFeature.java
index 85e6dc7..71b7b63 100644
--- a/geoportal_1/src/main/java/org/OpenGeoPortal/Ogc/Wfs/WfsGetFeature.java
+++ b/geoportal_1/src/main/java/org/OpenGeoPortal/Ogc/Wf... | true | true | public static String createWfsGetFeatureRequest(String layerName, String workSpace, String nameSpace, int maxFeatures, String epsgCode, String outputFormat, String filter) throws Exception {
//--generate POST message
//info needed: geometry column, bbox coords, epsg code, workspace & layername
String layerNa... | public static String createWfsGetFeatureRequest(String layerName, String workSpace, String nameSpace, int maxFeatures, String epsgCode, String outputFormat, String filter) throws Exception {
//--generate POST message
//info needed: geometry column, bbox coords, epsg code, workspace & layername
String layerNa... |
diff --git a/src/rentalcar/MemberHomePanel.java b/src/rentalcar/MemberHomePanel.java
index 9c78ebd..56fdf2b 100644
--- a/src/rentalcar/MemberHomePanel.java
+++ b/src/rentalcar/MemberHomePanel.java
@@ -1,83 +1,84 @@
package rentalcar;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.Acti... | false | true | public MemberHomePanel(MemberUser member) {
this.mainFrame = MainFrame.getMain();
this.member = member;
this.setBackground(Color.green);
this.setLayout(new FlowLayout());
setBounds(screenSize.width/2-200, screenSize.height/2-100,
300, 200);
heading ... | public MemberHomePanel(MemberUser member) {
this.mainFrame = MainFrame.getMain();
this.member = member;
this.setBackground(Color.green);
this.setLayout(new FlowLayout());
setBounds(screenSize.width/2-200, screenSize.height/2-100,
250, 225);
heading ... |
diff --git a/grails/src/java/org/codehaus/groovy/grails/web/pages/SitemeshPreprocessor.java b/grails/src/java/org/codehaus/groovy/grails/web/pages/SitemeshPreprocessor.java
index 77ec8cfb5..2846f1e6b 100644
--- a/grails/src/java/org/codehaus/groovy/grails/web/pages/SitemeshPreprocessor.java
+++ b/grails/src/java/org/co... | true | true | StringBuffer addHeadCapturing(String gspSource) {
StringBuffer sb=new StringBuffer((int)(gspSource.length() * 1.2));
Matcher m=headPattern.matcher(gspSource);
if(m.find()) {
m.appendReplacement(sb, "");
sb.append("<sitemesh:captureHead");
if(m.group(1) != null)
sb.append(m.group(1));
sb.append(">... | StringBuffer addHeadCapturing(String gspSource) {
StringBuffer sb=new StringBuffer((int)(gspSource.length() * 1.2));
Matcher m=headPattern.matcher(gspSource);
if(m.find()) {
m.appendReplacement(sb, "");
sb.append("<sitemesh:captureHead");
if(m.group(1) != null)
sb.append(m.group(1));
sb.append(">... |
diff --git a/javamelody-core/src/main/java/net/bull/javamelody/HtmlJavaInformationsReport.java b/javamelody-core/src/main/java/net/bull/javamelody/HtmlJavaInformationsReport.java
index 709f80e3..ae6d91c7 100644
--- a/javamelody-core/src/main/java/net/bull/javamelody/HtmlJavaInformationsReport.java
+++ b/javamelody-core... | true | true | private void writeDetails(JavaInformations javaInformations, boolean repeatHost)
throws IOException {
final String columnEnd = "</td></tr>";
writeln("<table align='left' border='0' cellspacing='0' cellpadding='2' summary='#Details_systeme#'>");
if (repeatHost) {
writeln("<tr><td>#Host#: </td><td><b>" + jav... | private void writeDetails(JavaInformations javaInformations, boolean repeatHost)
throws IOException {
final String columnEnd = "</td></tr>";
writeln("<table align='left' border='0' cellspacing='0' cellpadding='2' summary='#Details_systeme#'>");
if (repeatHost) {
writeln("<tr><td>#Host#: </td><td><b>" + jav... |
diff --git a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JRERuntimeClasspathEntryResolver.java b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JRERuntimeClasspathEntryResolver.java
index d1b57b273..f6b1b1a7e 100644
--- a/org.eclipse.jdt.launching/launching/org/eclipse... | false | true | protected IRuntimeClasspathEntry[] resolveLibraryLocations(IVMInstall vm, int kind) {
IRuntimeClasspathEntry[] resolved = null;
if (kind == IRuntimeClasspathEntry.BOOTSTRAP_CLASSES) {
File vmInstallLocation= vm.getInstallLocation();
if (vmInstallLocation != null) {
LibraryInfo libraryInfo= LaunchingPlugi... | protected IRuntimeClasspathEntry[] resolveLibraryLocations(IVMInstall vm, int kind) {
IRuntimeClasspathEntry[] resolved = null;
if (kind == IRuntimeClasspathEntry.BOOTSTRAP_CLASSES) {
File vmInstallLocation= vm.getInstallLocation();
if (vmInstallLocation != null) {
LibraryInfo libraryInfo= LaunchingPlugi... |
diff --git a/src/com/google/caja/demos/playground/client/ui/PlaygroundView.java b/src/com/google/caja/demos/playground/client/ui/PlaygroundView.java
index fd259233..9e002dc8 100644
--- a/src/com/google/caja/demos/playground/client/ui/PlaygroundView.java
+++ b/src/com/google/caja/demos/playground/client/ui/PlaygroundVie... | true | true | public void setRenderedResult(
final String policy, final String html, final String js,
final String idClass)
{
if (html == null && js == null) {
playgroundUI.renderResult.setText("There were cajoling errors");
return;
}
// Make the cajoled content visible so that the DOM will b... | public void setRenderedResult(
final String policy, final String html, final String js,
final String idClass)
{
if (html == null && js == null) {
playgroundUI.renderResult.setText("There were cajoling errors");
return;
}
// Make the cajoled content visible so that the DOM will b... |
diff --git a/src/gui/GameInfo.java b/src/gui/GameInfo.java
index 610b253a..30542647 100644
--- a/src/gui/GameInfo.java
+++ b/src/gui/GameInfo.java
@@ -1,130 +1,130 @@
//-----------------------------------------------------------------------------
// $Id$
// $Source$
//-----------------------------------------------... | true | true | public void update(Node node, go.Board board)
{
if (board.getToMove() == go.Color.BLACK)
m_move.setText("Black");
else
m_move.setText("White");
String capturedB = Integer.toString(board.getCapturedB());
m_captB.setText(capturedB);
String capturedW ... | public void update(Node node, go.Board board)
{
if (board.getToMove() == go.Color.BLACK)
m_move.setText("Black");
else
m_move.setText("White");
String capturedB = Integer.toString(board.getCapturedB());
m_captB.setText(capturedB);
String capturedW ... |
diff --git a/src/java/net/sf/jabref/imports/ImportCustomizationDialog.java b/src/java/net/sf/jabref/imports/ImportCustomizationDialog.java
index 908005916..b4f4f7962 100644
--- a/src/java/net/sf/jabref/imports/ImportCustomizationDialog.java
+++ b/src/java/net/sf/jabref/imports/ImportCustomizationDialog.java
@@ -1,291 +... | false | true | public ImportCustomizationDialog(JabRefFrame frame_) throws HeadlessException {
super(frame_, Globals.lang("Manage custom imports"), false);
this.importCustomizationDialog = this;
frame = frame_;
addFromFolderButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionE... | public ImportCustomizationDialog(JabRefFrame frame_) throws HeadlessException {
super(frame_, Globals.lang("Manage custom imports"), false);
this.importCustomizationDialog = this;
frame = frame_;
addFromFolderButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionE... |
diff --git a/src/com/github/pmcompany/pustomario/core/ConcreteGame.java b/src/com/github/pmcompany/pustomario/core/ConcreteGame.java
index 0c0fa2f..28e9790 100644
--- a/src/com/github/pmcompany/pustomario/core/ConcreteGame.java
+++ b/src/com/github/pmcompany/pustomario/core/ConcreteGame.java
@@ -1,649 +1,655 @@
packag... | false | true | public void handleEvent(Event e) {
Player p;
if (e.getStringValue().equals(getPlayerName())) {
p = currentPlayer;
} else {
p = players.get(e.getSender());
}
if (p != null) {
System.out.printf("Handling event from %s %n", p.getName());
... | public void handleEvent(Event e) {
Player p;
if (e.getStringValue().equals(getPlayerName())) {
p = currentPlayer;
} else {
p = players.get(e.getSender());
}
if (p != null) {
System.out.printf("Handling event from %s %n", p.getName());
... |
diff --git a/src/main/java/syndeticlogic/catena/store/PageFactory.java b/src/main/java/syndeticlogic/catena/store/PageFactory.java
index 96b96ac..46c7538 100644
--- a/src/main/java/syndeticlogic/catena/store/PageFactory.java
+++ b/src/main/java/syndeticlogic/catena/store/PageFactory.java
@@ -1,157 +1,154 @@
package sy... | false | true | public PageManager createPageManager(List<String> files, int pageSize,
int numPages) {
ConcurrentLinkedQueue<ByteBuffer> freelist = new ConcurrentLinkedQueue<ByteBuffer>();
HashMap<String, List<Page>> pageSequences = new HashMap<String, List<Page>>();
for (int i = 0; i < numPag... | public PageManager createPageManager(List<String> files, int pageSize,
int numPages) {
ConcurrentLinkedQueue<ByteBuffer> freelist = new ConcurrentLinkedQueue<ByteBuffer>();
HashMap<String, List<Page>> pageSequences = new HashMap<String, List<Page>>();
for (int i = 0; i < numPag... |
diff --git a/src/net/milkbowl/vault/chat/plugins/Chat_iChat.java b/src/net/milkbowl/vault/chat/plugins/Chat_iChat.java
index cd01a2f..ea917c4 100644
--- a/src/net/milkbowl/vault/chat/plugins/Chat_iChat.java
+++ b/src/net/milkbowl/vault/chat/plugins/Chat_iChat.java
@@ -1,253 +1,253 @@
package net.milkbowl.vault.chat.pl... | false | true | public Chat_iChat(Plugin plugin, Permission perms) {
super(perms);
this.plugin = plugin;
pluginManager = this.plugin.getServer().getPluginManager();
permissionServerListener = new PermissionServerListener(this);
this.pluginManager.registerEvent(Type.PLUGIN_ENABLE, permissionServerListener, Priority.Monit... | public Chat_iChat(Plugin plugin, Permission perms) {
super(perms);
this.plugin = plugin;
pluginManager = this.plugin.getServer().getPluginManager();
permissionServerListener = new PermissionServerListener(this);
this.pluginManager.registerEvent(Type.PLUGIN_ENABLE, permissionServerListener, Priority.Monit... |
diff --git a/everest-ipojo/src/main/java/org/apache/felix/ipojo/everest/ipojo/ServiceDependencyResource.java b/everest-ipojo/src/main/java/org/apache/felix/ipojo/everest/ipojo/ServiceDependencyResource.java
index 14a1c88..a157413 100644
--- a/everest-ipojo/src/main/java/org/apache/felix/ipojo/everest/ipojo/ServiceDepen... | true | true | public List<Relation> getRelations() {
List<Relation> r = super.getRelations();
DependencyDescription d = m_description.get();
if (d == null) {
return r;
} else {
r = new ArrayList<Relation>(r);
@SuppressWarnings("unchecked")
List<Servi... | public List<Relation> getRelations() {
List<Relation> r = super.getRelations();
DependencyDescription d = m_description.get();
if (d == null) {
return r;
} else {
r = new ArrayList<Relation>(r);
@SuppressWarnings("unchecked")
List<Servi... |
diff --git a/modules/rampart-policy/src/main/java/org/apache/ws/secpolicy/model/SecureConversationToken.java b/modules/rampart-policy/src/main/java/org/apache/ws/secpolicy/model/SecureConversationToken.java
index c0d58f503..54f1b24c7 100644
--- a/modules/rampart-policy/src/main/java/org/apache/ws/secpolicy/model/Secure... | true | true | public void serialize(XMLStreamWriter writer) throws XMLStreamException {
String localname = getName().getLocalPart();
String namespaceURI = getName().getNamespaceURI();
String prefix;
String writerPrefix = writer.getPrefix(namespaceURI);
if (writerPrefix == null) {
... | public void serialize(XMLStreamWriter writer) throws XMLStreamException {
String localname = getName().getLocalPart();
String namespaceURI = getName().getNamespaceURI();
String prefix;
String writerPrefix = writer.getPrefix(namespaceURI);
if (writerPrefix == null) {
... |
diff --git a/modules/resin/src/com/caucho/admin/action/PdfReportAction.java b/modules/resin/src/com/caucho/admin/action/PdfReportAction.java
index bb666d220..b000a25dc 100644
--- a/modules/resin/src/com/caucho/admin/action/PdfReportAction.java
+++ b/modules/resin/src/com/caucho/admin/action/PdfReportAction.java
@@ -1,3... | true | true | public void init()
{
Resin resin = Resin.getCurrent();
if (resin != null) {
_serverId = resin.getServerId();
if (_logDirectory == null)
_logPath = resin.getLogDirectory();
} else {
_serverId = "unknown";
if (_logDirectory == null)
_logPath = Vfs.getP... | public void init()
{
Resin resin = Resin.getCurrent();
if (resin != null) {
_serverId = resin.getServerId();
if (_logDirectory == null)
_logPath = resin.getLogDirectory();
} else {
_serverId = "unknown";
if (_logDirectory == null)
_logPath = Vfs.getP... |
diff --git a/src/com/activehabits/android/mark.java b/src/com/activehabits/android/mark.java
index 01826d7..d661433 100644
--- a/src/com/activehabits/android/mark.java
+++ b/src/com/activehabits/android/mark.java
@@ -1,658 +1,658 @@
package com.activehabits.android;
import java.io.File;
import java.io.FileWriter;
... | true | true | public void onResume() {
super.onResume();
// load default preferences
SharedPreferences myMgrPrefs = PreferenceManager
.getDefaultSharedPreferences(this);
setContentView(R.layout.main);
// prepare to add more buttons from myMgrPrefs if they exist
Map<Str... | public void onResume() {
super.onResume();
// load default preferences
SharedPreferences myMgrPrefs = PreferenceManager
.getDefaultSharedPreferences(this);
setContentView(R.layout.main);
// prepare to add more buttons from myMgrPrefs if they exist
Map<Str... |
diff --git a/src/frontend/org/voltdb/RestoreAgent.java b/src/frontend/org/voltdb/RestoreAgent.java
index fea62edc8..1c28b07dc 100644
--- a/src/frontend/org/voltdb/RestoreAgent.java
+++ b/src/frontend/org/voltdb/RestoreAgent.java
@@ -1,1166 +1,1165 @@
/* This file is part of VoltDB.
* Copyright (C) 2008-2011 VoltDB I... | true | true | public void run() {
createZKDirectory(RESTORE);
createZKDirectory(RESTORE_BARRIER);
enterRestore();
// Transaction ID of the restore sysproc
final long txnId = 1l;
TreeMap<Long, Snapshot> snapshots = getSnapshots();
Set<Snapsh... | public void run() {
createZKDirectory(RESTORE);
createZKDirectory(RESTORE_BARRIER);
enterRestore();
// Transaction ID of the restore sysproc
final long txnId = 1l;
TreeMap<Long, Snapshot> snapshots = getSnapshots();
Set<Snapsh... |
diff --git a/stripes/src/net/sourceforge/stripes/tag/LinkTag.java b/stripes/src/net/sourceforge/stripes/tag/LinkTag.java
index 11cb483..9d57ba5 100644
--- a/stripes/src/net/sourceforge/stripes/tag/LinkTag.java
+++ b/stripes/src/net/sourceforge/stripes/tag/LinkTag.java
@@ -1,118 +1,121 @@
/* Copyright 2005-2006 Tim Fen... | true | true | public int doEndTag() throws JspException {
try {
set("href", buildUrl());
writeOpenTag(getPageContext().getOut(), "a");
String body = getBodyContentAsString();
if (body != null) {
getPageContext().getOut().write(body.trim());
}
... | public int doEndTag() throws JspException {
try {
set("href", buildUrl());
writeOpenTag(getPageContext().getOut(), "a");
String body = getBodyContentAsString();
if (body == null) {
body = get("href");
}
if (body != null)... |
diff --git a/caintegrator2-war/test/src/gov/nih/nci/caintegrator2/application/study/FileColumnTest.java b/caintegrator2-war/test/src/gov/nih/nci/caintegrator2/application/study/FileColumnTest.java
index e944baa3f..8620077fa 100644
--- a/caintegrator2-war/test/src/gov/nih/nci/caintegrator2/application/study/FileColumnTe... | true | true | public void testGetUniqueDataValues() throws ValidationException {
AnnotationFile annotationFile = AnnotationFile.load(TestDataFiles.VALID_FILE, new CaIntegrator2DaoStub());
Set<String> stringDataValues = annotationFile.getColumns().get(0).getUniqueDataValues(String.class);
assertTrue(string... | public void testGetUniqueDataValues() throws ValidationException {
AnnotationFile annotationFile = AnnotationFile.load(TestDataFiles.VALID_FILE, new CaIntegrator2DaoStub());
Set<String> stringDataValues = annotationFile.getColumns().get(0).getUniqueDataValues(String.class);
assertTrue(string... |
diff --git a/src/com/tortel/deploytrack/CreateActivity.java b/src/com/tortel/deploytrack/CreateActivity.java
index ba9545c..741d194 100644
--- a/src/com/tortel/deploytrack/CreateActivity.java
+++ b/src/com/tortel/deploytrack/CreateActivity.java
@@ -1,297 +1,299 @@
/*
* Copyright (C) 2013 Scott Warner
*
* License... | false | true | public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_create);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
format = new SimpleDateFormat("MMM dd, yyyy");
nameEdit = (EditText) findViewById(R.id.name);
startButton = (Button) fi... | public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_create);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
format = new SimpleDateFormat("MMM dd, yyyy");
nameEdit = (EditText) findViewById(R.id.name);
startButton = (Button) fi... |
diff --git a/spring-batch-infrastructure/src/test/java/org/springframework/batch/support/DatabaseTypeIntegrationTests.java b/spring-batch-infrastructure/src/test/java/org/springframework/batch/support/DatabaseTypeIntegrationTests.java
index ebdacbc7e..eca7e389f 100644
--- a/spring-batch-infrastructure/src/test/java/org... | true | true | public void testH2() throws Exception {
DataSource dataSource = DatabaseTypeTestUtils.getDataSource(org.h2.jdbc.JdbcConnection.class, "jdbc:h2:file:target/data/sample");
assertEquals(DatabaseType.H2, DatabaseType.fromMetaData(dataSource));
dataSource.getConnection();
}
| public void testH2() throws Exception {
DataSource dataSource = DatabaseTypeTestUtils.getDataSource(org.h2.Driver.class, "jdbc:h2:file:target/data/sample");
assertEquals(DatabaseType.H2, DatabaseType.fromMetaData(dataSource));
dataSource.getConnection();
}
|
diff --git a/java/src/org/broadinstitute/sting/gatk/traversals/TraversalEngine.java b/java/src/org/broadinstitute/sting/gatk/traversals/TraversalEngine.java
index e3b51a344..76f147b58 100755
--- a/java/src/org/broadinstitute/sting/gatk/traversals/TraversalEngine.java
+++ b/java/src/org/broadinstitute/sting/gatk/travers... | true | true | private void printProgress(GenomeLoc loc, ReadMetrics metrics, boolean mustPrint) {
final long nRecords = metrics.getNumIterations();
if ( nRecords == 1 ) {
logger.info("[INITIALIZATION COMPLETE; TRAVERSAL STARTING]");
logger.info(String.format("%15s processed.%s runtime pe... | private void printProgress(GenomeLoc loc, ReadMetrics metrics, boolean mustPrint) {
final long nRecords = metrics.getNumIterations();
if ( nRecords == 1 && mustPrint == false ) {
logger.info("[INITIALIZATION COMPLETE; TRAVERSAL STARTING]");
logger.info(String.format("%15s pr... |
diff --git a/src/com/vanomaly/superd/view/BaselineLeftStringCenterOverrunTableCell.java b/src/com/vanomaly/superd/view/BaselineLeftStringCenterOverrunTableCell.java
index a0322cc..5b92250 100644
--- a/src/com/vanomaly/superd/view/BaselineLeftStringCenterOverrunTableCell.java
+++ b/src/com/vanomaly/superd/view/BaselineL... | true | true | public BaselineLeftStringCenterOverrunTableCell(String ellipsisString) {
super();
setTextOverrun(OverrunStyle.CENTER_WORD_ELLIPSIS);
if (ellipsisString != null && !"".equals(ellipsisString)) {
setEllipsisString(ellipsisString);
}
}
| public BaselineLeftStringCenterOverrunTableCell(String ellipsisString) {
super();
setTextOverrun(OverrunStyle.CENTER_ELLIPSIS);
if (ellipsisString != null && !"".equals(ellipsisString)) {
setEllipsisString(ellipsisString);
}
}
|
diff --git a/src/main/java/com/hmsonline/storm/cassandra/trident/DefaultCassandraState.java b/src/main/java/com/hmsonline/storm/cassandra/trident/DefaultCassandraState.java
index f08487d..c331c0b 100644
--- a/src/main/java/com/hmsonline/storm/cassandra/trident/DefaultCassandraState.java
+++ b/src/main/java/com/hmsonlin... | true | true | public List<T> multiGet(List<List<Object>> keys) {
Collection<Composite> columnNames = toColumnNames(keys);
ColumnFamily<String, Composite> cf = new ColumnFamily<String, Composite>(this.options.columnFamily,
StringSerializer.get(), CompositeSerializer.get());
RowQuery<String,... | public List<T> multiGet(List<List<Object>> keys) {
Collection<Composite> columnNames = toColumnNames(keys);
ColumnFamily<String, Composite> cf = new ColumnFamily<String, Composite>(this.options.columnFamily,
StringSerializer.get(), CompositeSerializer.get());
RowQuery<String,... |
diff --git a/Chat/src/Server/ServerReady.java b/Chat/src/Server/ServerReady.java
index 1509f96..6b209d7 100644
--- a/Chat/src/Server/ServerReady.java
+++ b/Chat/src/Server/ServerReady.java
@@ -1,61 +1,65 @@
package Server;
import java.io.IOException;
import Communications.TCP;
import Messages.ClientRequestInfoM... | false | true | public ServerState process(TCP tcp, Message tcpMessage, long timeEnteredState) {
if(tcpMessage instanceof ClientRequestInfoMessage && tcpMessage.getCorrect()){
System.out.println("info message");
Message message = null;
String user=((ClientRequestInfoMessage)tcpMessage).targetUsername;
String ip=LookupTa... | public ServerState process(TCP tcp, Message tcpMessage, long timeEnteredState) {
if(tcpMessage instanceof ClientRequestInfoMessage && tcpMessage.getCorrect()){
System.out.println("info message");
Message message = null;
String user=((ClientRequestInfoMessage)tcpMessage).targetUsername;
String ip=LookupTa... |
diff --git a/TicTacToeTieAI/src2/tttai/Board.java b/TicTacToeTieAI/src2/tttai/Board.java
index 0e4b192..6c7af3f 100644
--- a/TicTacToeTieAI/src2/tttai/Board.java
+++ b/TicTacToeTieAI/src2/tttai/Board.java
@@ -1,106 +1,106 @@
package tttai;
import java.util.Arrays;
import tictactoeai.Place;
public class Board ... | false | true | public boolean testWon(String s){
if(board[1]==s&&board[2]==s&&board[3]==s)
return true;
if(board[4]==s&&board[5]==s&&board[6]==s)
return true;
if(board[7]==s&&board[8]==s&&board[9]==s)
return true;
if(board[1]==s&&board[4]==s&&board[7]==s)
return true;
if(board[2]==s&&board[5]==s&&board[8]==s)
... | public boolean testWon(String s){
if(board[1].equals(s)&&board[2].equals(s)&&board[3].equals(s))
return true;
if(board[4].equals(s)&&board[5].equals(s)&&board[6].equals(s))
return true;
if(board[7].equals(s)&&board[8].equals(s)&&board[9].equals(s))
return true;
if(board[1].equals(s)&&board[4].equals(s... |
diff --git a/src/main/java/axirassa/util/MessagingTools.java b/src/main/java/axirassa/util/MessagingTools.java
index 762b4cc6..3c72c787 100644
--- a/src/main/java/axirassa/util/MessagingTools.java
+++ b/src/main/java/axirassa/util/MessagingTools.java
@@ -1,19 +1,19 @@
package axirassa.util;
import org.hornetq.api... | true | true | public static ClientSession getEmbeddedSession() throws Exception {
TransportConfiguration configuration = new TransportConfiguration(NettyConnectorFactory.class.getName());
ServerLocator locator = HornetQClient.createServerLocatorWithHA(configuration);
ClientSessionFactory factory = locator.createSessionFactory... | public static ClientSession getEmbeddedSession() throws Exception {
TransportConfiguration configuration = new TransportConfiguration(NettyConnectorFactory.class.getName());
ServerLocator locator = HornetQClient.createServerLocatorWithoutHA(configuration);
ClientSessionFactory factory = locator.createSessionFact... |
diff --git a/src/topiaryexplorer/ColorByPopupMenu.java b/src/topiaryexplorer/ColorByPopupMenu.java
index 6b43408..9a610c6 100644
--- a/src/topiaryexplorer/ColorByPopupMenu.java
+++ b/src/topiaryexplorer/ColorByPopupMenu.java
@@ -1,124 +1,123 @@
package topiaryexplorer;
import java.awt.*;
import java.awt.event.*;
... | false | true | void resetColorBySampleMenu() {
/* noColoringMenuItem.setSelected(true);*/
colorBySampleMetadataMenu.removeAll();
// colorBySampleMetadataMenu.add(new JRadioButtonMenuItem("hurf"));
ArrayList<String> data = frame.sampleMetadata.getColumnNames();
//start at 1 to skip ID c... | void resetColorBySampleMenu() {
/* noColoringMenuItem.setSelected(true);*/
colorBySampleMetadataMenu.removeAll();
// colorBySampleMetadataMenu.add(new JRadioButtonMenuItem("hurf"));
ArrayList<String> data = frame.sampleMetadata.getColumnNames();
// System.out.println(fra... |
diff --git a/android/src/edu/ucla/cens/wetap/survey.java b/android/src/edu/ucla/cens/wetap/survey.java
index 2037f86..c6b71b3 100644
--- a/android/src/edu/ucla/cens/wetap/survey.java
+++ b/android/src/edu/ucla/cens/wetap/survey.java
@@ -1,547 +1,547 @@
package edu.ucla.cens.wetap;
import android.app.Activity;
impo... | true | true | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.survey);
preferences = getSharedPreferences(getString(R.string.preferences), Activity.MODE_PRIVATE);
// allow users to collect data even if they are not yet authenticate... | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.survey);
preferences = getSharedPreferences(getString(R.string.preferences), Activity.MODE_PRIVATE);
// allow users to collect data even if they are not yet authenticate... |
diff --git a/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/editor/XtextResourceChecker.java b/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/editor/XtextResourceChecker.java
index 8031415b7..1ebb62311 100644
--- a/plugins/org.eclipse.xtext.ui.core/src/org/eclipse/xtext/ui/core/editor/... | false | true | public static List<Map<String, Object>> check(final Resource resource, Map<?, ?> context, IProgressMonitor monitor) {
List<Map<String, Object>> markers = new ArrayList<Map<String, Object>>();
try {
// Syntactical errors
// Collect EMF Resource Diagnostics
for (org.eclipse.emf.ecore.resource.Resource.Diagn... | public static List<Map<String, Object>> check(final Resource resource, Map<?, ?> context, IProgressMonitor monitor) {
List<Map<String, Object>> markers = new ArrayList<Map<String, Object>>();
try {
// Syntactical errors
// Collect EMF Resource Diagnostics
for(int i = 0 ; i < resource.getErrors().size(); i... |
diff --git a/src/org/omegat/filters2/master/FiltersTableModel.java b/src/org/omegat/filters2/master/FiltersTableModel.java
index efc03d9d..4f0de8a9 100644
--- a/src/org/omegat/filters2/master/FiltersTableModel.java
+++ b/src/org/omegat/filters2/master/FiltersTableModel.java
@@ -1,128 +1,128 @@
/***********************... | false | true | public FiltersTableModel(final Filters config) {
filters = new ArrayList<Filter>();
// add only exist filters
for (Filter f : config.getFilter()) {
IFilter fi = FilterMaster.getInstance().getFilterInstance(f.getClassName());
filterNames.put(f.getClassName(), fi.getFil... | public FiltersTableModel(final Filters config) {
filters = new ArrayList<Filter>();
// add only exist filters
for (Filter f : config.getFilter()) {
IFilter fi = FilterMaster.getInstance().getFilterInstance(f.getClassName());
if (fi != null) {
// filter... |
diff --git a/src/org/torproject/android/SettingsPreferences.java b/src/org/torproject/android/SettingsPreferences.java
index 8137548..a61c5d9 100644
--- a/src/org/torproject/android/SettingsPreferences.java
+++ b/src/org/torproject/android/SettingsPreferences.java
@@ -1,33 +1,33 @@
/* Copyright (c) 2009, Nathan Freita... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.preferences);
if (!TorServiceUtils.hasRoot())
getPreferenceScreen().getPreference(3).setEnabled(false);
}
| protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.preferences);
if (!TorServiceUtils.hasRoot())
getPreferenceScreen().getPreference(0).setEnabled(false);
}
|
diff --git a/modules/world/avatarbase/src/classes/org/jdesktop/wonderland/modules/avatarbase/client/jme/cellrenderer/NameTagNode.java b/modules/world/avatarbase/src/classes/org/jdesktop/wonderland/modules/avatarbase/client/jme/cellrenderer/NameTagNode.java
index f70f2e65e..93117f13e 100644
--- a/modules/world/avatarbas... | false | true | public synchronized void setNameTag(EventType eventType, String username, String alias,
Color foregroundColor, Font font) {
logger.fine("set name tag: " + eventType + ", username: " + username + ", alias: " + alias + ", color: " + foregroundColor + ", font: " + font);
switch (eventType... | public synchronized void setNameTag(EventType eventType, String username, String alias,
Color foregroundColor, Font font) {
logger.fine("set name tag: " + eventType + ", username: " + username + ", alias: " + alias + ", color: " + foregroundColor + ", font: " + font);
switch (eventType... |
diff --git a/TPE3/src/hopfield/AsynchronichHopfieldNet.java b/TPE3/src/hopfield/AsynchronichHopfieldNet.java
index 5edc01d..4792e75 100644
--- a/TPE3/src/hopfield/AsynchronichHopfieldNet.java
+++ b/TPE3/src/hopfield/AsynchronichHopfieldNet.java
@@ -1,36 +1,36 @@
package hopfield;
import java.util.Arrays;
public ... | true | true | public int[] iterateUntilConvergence() {
int[] prevStates = states.clone();
do {
int index = (int) (Math.random() * getNumNeurons());
int state = states[index];
float h = 0;
for (int i = 0; i < getNumNeurons(); i++) {
h += weights[index][i] * states[i];
}
states[index] = sgn(h, state);
} wh... | public int[] iterateUntilConvergence() {
int[] prevStates = states.clone();
do {
int index = (int) (Math.random() * getNumNeurons());
int state = states[index];
float h = 0;
for (int i = 0; i < getNumNeurons(); i++) {
h += weights[index][i] * states[i];
}
states[index] = sgn(h, state);
} wh... |
diff --git a/src/main/java/de/codeinfection/quickwango/AntiGuest/Prevention.java b/src/main/java/de/codeinfection/quickwango/AntiGuest/Prevention.java
index 235e8b7..4a03e98 100644
--- a/src/main/java/de/codeinfection/quickwango/AntiGuest/Prevention.java
+++ b/src/main/java/de/codeinfection/quickwango/AntiGuest/Prevent... | true | true | public void initialize(final Server server, final ConfigurationSection config)
{
this.messageDelay = config.getInt("messageDelay") * 1000;
this.message = config.getString("message");
if (this.message != null)
{
if (this.message.length() == 0)
{
... | public void initialize(final Server server, final ConfigurationSection config)
{
this.messageDelay = config.getInt("messageDelay") * 1000;
this.message = config.getString("message");
if (this.message != null)
{
if (this.message.length() == 0)
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.