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/edu/washington/cs/games/ktuite/pointcraft/PrimitiveVertex.java b/src/edu/washington/cs/games/ktuite/pointcraft/PrimitiveVertex.java
index 29c588c..c61a104 100644
--- a/src/edu/washington/cs/games/ktuite/pointcraft/PrimitiveVertex.java
+++ b/src/edu/washington/cs/games/ktuite/pointcraft/PrimitiveVertex.... | true | true | public float distanceToPoint(Vector3f pos) {
float dist = Float.MAX_VALUE;
if (isLine()){
// OH GOD THIS LOOKS SO SLOW
// TODO: make faster
Vector3f temp = new Vector3f();
Vector3f sub1 = new Vector3f();
Vector3f sub2 = new Vector3f();
Vector3f sub3 = new Vector3f();
Vector3f.sub(pos,pt_1,sub1... | public float distanceToPoint(Vector3f pos) {
float dist = Float.MAX_VALUE;
if (isLine()){
// OH GOD THIS LOOKS SO SLOW
// TODO: make faster
Vector3f temp = new Vector3f();
Vector3f sub1 = new Vector3f();
Vector3f sub2 = new Vector3f();
Vector3f sub3 = new Vector3f();
Vector3f.sub(pos,pt_1,sub1... |
diff --git a/threads/LotteryScheduler.java b/threads/LotteryScheduler.java
index c9a4bf5..4b8c3cc 100755
--- a/threads/LotteryScheduler.java
+++ b/threads/LotteryScheduler.java
@@ -1,193 +1,193 @@
package nachos.threads;
import nachos.machine.*;
import java.util.Random;
import java.util.TreeSet;
import java.ut... | false | true | public static void selfTest() {
LotteryScheduler ls = new LotteryScheduler();
LotteryQueue[] pq = new LotteryQueue[5];
KThread[] t = new KThread[5];
ThreadState lts[] = new LotteryThreadState[5];
for (int i=0; i < 5; i++)
pq[i] = ls.new LotteryQueue(true)... | public static void selfTest() {
LotteryScheduler ls = new LotteryScheduler();
LotteryQueue[] pq = new LotteryQueue[5];
KThread[] t = new KThread[5];
ThreadState lts[] = new LotteryThreadState[5];
for (int i=0; i < 5; i++)
pq[i] = ls.new LotteryQueue(true)... |
diff --git a/api/src/main/java/org/openmrs/util/OpenmrsConstants.java b/api/src/main/java/org/openmrs/util/OpenmrsConstants.java
index 635f70aa..69f62474 100644
--- a/api/src/main/java/org/openmrs/util/OpenmrsConstants.java
+++ b/api/src/main/java/org/openmrs/util/OpenmrsConstants.java
@@ -1,1607 +1,1607 @@
/**
* Th... | true | true | public static final List<GlobalProperty> CORE_GLOBAL_PROPERTIES() {
List<GlobalProperty> props = new Vector<GlobalProperty>();
props.add(new GlobalProperty("use_patient_attribute.healthCenter", "false",
"Indicates whether or not the 'health center' attribute is shown when viewing/searching for patient... | public static final List<GlobalProperty> CORE_GLOBAL_PROPERTIES() {
List<GlobalProperty> props = new Vector<GlobalProperty>();
props.add(new GlobalProperty("use_patient_attribute.healthCenter", "false",
"Indicates whether or not the 'health center' attribute is shown when viewing/searching for patient... |
diff --git a/src/main/java/org/jboss/logging/LoggerProviders.java b/src/main/java/org/jboss/logging/LoggerProviders.java
index 7240187..e4e695f 100644
--- a/src/main/java/org/jboss/logging/LoggerProviders.java
+++ b/src/main/java/org/jboss/logging/LoggerProviders.java
@@ -1,67 +1,68 @@
/*
* JBoss, Home of Profession... | true | true | private static LoggerProvider findProvider() {
try {
final LogManager jdkLogManager = LogManager.getLogManager();
if (jdkLogManager.getClass().getName().equals("org.jboss.logmanager.LogManager")) {
return new JBossLogManagerProvider();
}
} catch (T... | private static LoggerProvider findProvider() {
try {
final LogManager jdkLogManager = LogManager.getLogManager();
if (jdkLogManager.getClass().getName().equals("org.jboss.logmanager.LogManager")) {
Class.forName("org.jboss.logmanager.Logger$AttachmentKey", false, Logg... |
diff --git a/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/project/ProjectCreator.java b/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/project/ProjectCreator.java
index feff5af96..52c60088a 100644
--- a/sdkmanager/libs/sdklib/src/com/android/sdklib/internal/project/ProjectCreator.java
+++ b/sdkmanager... | true | true | public boolean updateProject(String folderPath, IAndroidTarget target, String projectName,
String libraryPath) {
// since this is an update, check the folder does point to a project
FileWrapper androidManifest = checkProjectFolder(folderPath,
SdkConstants.FN_ANDROID_MANIF... | public boolean updateProject(String folderPath, IAndroidTarget target, String projectName,
String libraryPath) {
// since this is an update, check the folder does point to a project
FileWrapper androidManifest = checkProjectFolder(folderPath,
SdkConstants.FN_ANDROID_MANIF... |
diff --git a/core/Parser.java b/core/Parser.java
index 08104f9..540b5c2 100755
--- a/core/Parser.java
+++ b/core/Parser.java
@@ -1,1557 +1,1557 @@
/*
* Parser.java
*
* Parses a MIPS64 source code and fills the symbol table and the memory.
*
* (c) 2006 mancausoft, Vanni
*
* This file is part of the EduMIP... | true | true | private void doParsing () throws IOException,ParserMultiException
{
boolean isFirstOutOfInstructionMemory = false;
isFirstOutOfMemory = true;
boolean halt = false;
int row = 0;
int nline=0;
numError = 0;
numWarning =0;
int instrCount = -4; // Hack fituso by Andrea
String line;
error = new Parser... | private void doParsing () throws IOException,ParserMultiException
{
boolean isFirstOutOfInstructionMemory = false;
isFirstOutOfMemory = true;
boolean halt = false;
int row = 0;
int nline=0;
numError = 0;
numWarning =0;
int instrCount = -4; // Hack fituso by Andrea
String line;
error = new Parser... |
diff --git a/src/de/hsanhalt/inf/studiappkoethen/activities/classes/MergedMarkers.java b/src/de/hsanhalt/inf/studiappkoethen/activities/classes/MergedMarkers.java
index b071a87..a773b7c 100644
--- a/src/de/hsanhalt/inf/studiappkoethen/activities/classes/MergedMarkers.java
+++ b/src/de/hsanhalt/inf/studiappkoethen/activ... | true | true | private void mergeMarkers() {
Marker merged = mergedMarker;
merged.setTitle("Sammelmarker");
merged.setSnippet("Bitte reinzoomen f�r detailierte Ansicht.");
double addedLat = 0.0;
double addedLng = 0.0;
for(int i = 0; i < MarkerList.size(); i++) {
addedLat += MarkerList.get(i).getPosition().latitude;... | private void mergeMarkers() {
Marker merged = mergedMarker;
merged.setTitle("Sammelmarker");
merged.setSnippet("Bitte reinzoomen fuer detailierte Ansicht.");
double addedLat = 0.0;
double addedLng = 0.0;
for(int i = 0; i < MarkerList.size(); i++) {
addedLat += MarkerList.get(i).getPosition().latitude... |
diff --git a/ini/trakem2/display/Polyline.java b/ini/trakem2/display/Polyline.java
index 0de4a3c7..51af9f62 100644
--- a/ini/trakem2/display/Polyline.java
+++ b/ini/trakem2/display/Polyline.java
@@ -1,1427 +1,1428 @@
/**
TrakEM2 plugin for ImageJ(C).
Copyright (C) 2008-2009 Albert Cardona and Rodney Douglas.
Th... | false | true | public void mousePressed(MouseEvent me, int x_p, int y_p, double mag) {
// transform the x_p, y_p to the local coordinates
int x_pd = x_p;
int y_pd = y_p;
if (!this.at.isIdentity()) {
final Point2D.Double po = inverseTransformPoint(x_p, y_p);
x_p = (int)po.x;
y_p = (int)po.y;
}
final int tool = P... | public void mousePressed(MouseEvent me, int x_p, int y_p, double mag) {
// transform the x_p, y_p to the local coordinates
int x_pd = x_p;
int y_pd = y_p;
if (!this.at.isIdentity()) {
final Point2D.Double po = inverseTransformPoint(x_p, y_p);
x_p = (int)po.x;
y_p = (int)po.y;
}
final int tool = P... |
diff --git a/jamwiki-web/src/main/java/org/jamwiki/authentication/JAMWikiAuthenticationProcessingFilterEntryPoint.java b/jamwiki-web/src/main/java/org/jamwiki/authentication/JAMWikiAuthenticationProcessingFilterEntryPoint.java
index bf77ba12..dc5730ab 100644
--- a/jamwiki-web/src/main/java/org/jamwiki/authentication/JA... | true | true | protected String determineUrlToUseForThisRequest(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) {
String uri = request.getRequestURI();
// FIXME - move the "strip after semicolon" code to WikiUtil
int pathParamIndex = uri.indexOf(';');
if (pathParamIndex > 0) {
... | protected String determineUrlToUseForThisRequest(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) {
String virtualWiki = WikiUtil.getVirtualWikiFromURI(request);
return "/" + virtualWiki + this.getLoginFormUrl();
}
|
diff --git a/src-tools/org/seasr/meandre/components/tools/webservice/GetResponseContentType.java b/src-tools/org/seasr/meandre/components/tools/webservice/GetResponseContentType.java
index da08b91c..2aee8b65 100644
--- a/src-tools/org/seasr/meandre/components/tools/webservice/GetResponseContentType.java
+++ b/src-tools... | true | true | public void executeCallBack(ComponentContext cc) throws Exception {
HttpServletRequest request = (HttpServletRequest) cc.getDataComponentFromInput(IN_REQUEST);
String accept = request.getHeader("Accept");
ContentType bestType = accept.length() > 0 ? ContentType.getBestContentType(accept, _supportedT... | public void executeCallBack(ComponentContext cc) throws Exception {
HttpServletRequest request = (HttpServletRequest) cc.getDataComponentFromInput(IN_REQUEST);
String accept = request.getHeader("Accept");
ContentType bestType = accept.length() > 0 ? ContentType.getBestContentType(accept, _supportedT... |
diff --git a/trunk/src/om/devservlet/DevServlet.java b/trunk/src/om/devservlet/DevServlet.java
index df23281..384a270 100644
--- a/trunk/src/om/devservlet/DevServlet.java
+++ b/trunk/src/om/devservlet/DevServlet.java
@@ -1,759 +1,759 @@
/* OpenMark online assessment system
Copyright (C) 2007 The Open University
... | true | true | private void sendError(HttpServletRequest request,HttpServletResponse response,
int iCode,
String sTitle,
String sMessage, Throwable tException)
{
try
{
response.setStatus(iCode);
response.setContentType("text/html");
response.setCharacterEncoding("UTF-8");
PrintWriter pw=response.getWriter();
... | private void sendError(HttpServletRequest request,HttpServletResponse response,
int iCode,
String sTitle,
String sMessage, Throwable tException)
{
try
{
response.setStatus(iCode);
response.setContentType("text/html");
response.setCharacterEncoding("UTF-8");
PrintWriter pw=response.getWriter();
... |
diff --git a/webapp/WEB-INF/classes/org/makumba/parade/controller/FileAction.java b/webapp/WEB-INF/classes/org/makumba/parade/controller/FileAction.java
index fb33db7..1b4b043 100644
--- a/webapp/WEB-INF/classes/org/makumba/parade/controller/FileAction.java
+++ b/webapp/WEB-INF/classes/org/makumba/parade/controller/Fil... | true | true | public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
String context = request.getParameter("context");
String path = request.getParameter("path");
String file = request.getParameter("fil... | public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
String context = request.getParameter("context");
String path = request.getParameter("path");
String file = request.getParameter("fil... |
diff --git a/src/com/android/settings/wifi/WifiDialog.java b/src/com/android/settings/wifi/WifiDialog.java
index 9250ee08b..a4538a4c1 100644
--- a/src/com/android/settings/wifi/WifiDialog.java
+++ b/src/com/android/settings/wifi/WifiDialog.java
@@ -1,362 +1,363 @@
/*
* Copyright (C) 2010 The Android Open Source Proj... | true | true | WifiConfiguration getConfig() {
if (mAccessPoint != null && mAccessPoint.networkId != -1 && !edit) {
return null;
}
WifiConfiguration config = new WifiConfiguration();
if (mAccessPoint == null) {
config.SSID = mSsid.getText().toString();
// If th... | WifiConfiguration getConfig() {
if (mAccessPoint != null && mAccessPoint.networkId != -1 && !edit) {
return null;
}
WifiConfiguration config = new WifiConfiguration();
if (mAccessPoint == null) {
config.SSID = mSsid.getText().toString();
// If th... |
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/standalone/InstallCommand.java b/update/org.eclipse.update.core/src/org/eclipse/update/standalone/InstallCommand.java
index 1f6d82856..d3c1b6a17 100644
--- a/update/org.eclipse.update.core/src/org/eclipse/update/standalone/InstallCommand.java
+++ b/upda... | true | true | public InstallCommand(
String featureId,
String version,
String fromSite,
String toSite,
String verifyOnly)
throws Exception {
super(verifyOnly);
try {
this.featureId = featureId;
this.version = version;
//PAL foundation
this.remoteSiteURL = new URL(UpdateURLDecoder.decode(fromSite, "UTF... | public InstallCommand(
String featureId,
String version,
String fromSite,
String toSite,
String verifyOnly)
throws Exception {
super(verifyOnly);
try {
this.featureId = featureId;
this.version = version;
//PAL foundation
this.remoteSiteURL = new URL(UpdateURLDecoder.decode(fromSite, "UTF... |
diff --git a/idm/impl/src/test/java/org/picketlink/test/idm/query/AgentQueryTestCase.java b/idm/impl/src/test/java/org/picketlink/test/idm/query/AgentQueryTestCase.java
index bc5aed926..dd852d824 100644
--- a/idm/impl/src/test/java/org/picketlink/test/idm/query/AgentQueryTestCase.java
+++ b/idm/impl/src/test/java/org/p... | true | true | public void testFindBetweenExpirationDate() throws Exception {
Agent someAgent = createAgent("someAgent");
Date currentDate = new Date();
someAgent.setExpirationDate(currentDate);
IdentityManager identityManager = getIdentityManager();
identityManager.update(someA... | public void testFindBetweenExpirationDate() throws Exception {
Agent someAgent = createAgent("someAgent");
Date currentDate = new Date();
someAgent.setExpirationDate(currentDate);
IdentityManager identityManager = getIdentityManager();
identityManager.update(someA... |
diff --git a/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java b/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java
index ee4f3ff5e..a9ed4f515 100644
--- a/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java
+++ b/src/org/apache/xerces/jaxp/validation/ValidatorHandlerImpl.java
@@ ... | true | true | public void validate(Source source, Result result)
throws SAXException, IOException {
if (result instanceof SAXResult || result == null) {
final SAXSource saxSource = (SAXSource) source;
final SAXResult saxResult = (SAXResult) result;
LexicalHandler ... | public void validate(Source source, Result result)
throws SAXException, IOException {
if (result instanceof SAXResult || result == null) {
final SAXSource saxSource = (SAXSource) source;
final SAXResult saxResult = (SAXResult) result;
LexicalHandler ... |
diff --git a/src/sai_cas/servlet/CrossMatchServlet.java b/src/sai_cas/servlet/CrossMatchServlet.java
index 75fcbc8..cb6da75 100644
--- a/src/sai_cas/servlet/CrossMatchServlet.java
+++ b/src/sai_cas/servlet/CrossMatchServlet.java
@@ -1,317 +1,318 @@
/*
Copyright (C) 2005-2006 Sergey Koposov
Author: Serge... | true | true | public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, java.io.IOException
{
PrintWriter out = response.getWriter();
String cat = null, tab = null, radString = null, raColumn = null,
decColumn = null, formatString = null;
formats format;
List<FileItem... | public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, java.io.IOException
{
PrintWriter out = response.getWriter();
String cat = null, tab = null, radString = null, raColumn = null,
decColumn = null, formatString = null;
formats format;
List<FileItem... |
diff --git a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/MetricsTool.java b/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/MetricsTool.java
index 9bf3f30d..7b3653f1 100644
--- a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/MetricsTool.java
+++ b/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/MetricsTool.java
@... | false | true | private static void registMethodInfos() {
// Unresolved �N���X���}�l�[�W���C �N���X���}�l�[�W���C���\�b�h���}�l�[�W�����擾
final UnresolvedClassInfoManager unresolvedClassInfoManager = UnresolvedClassInfoManager
.getInstance();
final ClassInfoManager classInfoManager = ClassI... | private static void registMethodInfos() {
// Unresolved �N���X���}�l�[�W���C �N���X���}�l�[�W���C���\�b�h���}�l�[�W�����擾
final UnresolvedClassInfoManager unresolvedClassInfoManager = UnresolvedClassInfoManager
.getInstance();
final ClassInfoManager classInfoManager = ClassI... |
diff --git a/core/src/visad/trunk/examples/Test05.java b/core/src/visad/trunk/examples/Test05.java
index 6288c0471..546a4192c 100644
--- a/core/src/visad/trunk/examples/Test05.java
+++ b/core/src/visad/trunk/examples/Test05.java
@@ -1,147 +1,148 @@
/*
VisAD system for interactive analysis and visualization of numeric... | true | true | void setupServerData(LocalDisplay[] dpys)
throws RemoteException, VisADException
{
RealType[] types = {RealType.Latitude, RealType.Longitude};
RealTupleType earth_location = new RealTupleType(types);
RealType vis_radiance = RealType.getRealType("vis_radiance");
RealType ir_radiance = RealType.ge... | void setupServerData(LocalDisplay[] dpys)
throws RemoteException, VisADException
{
RealType[] types = {RealType.Latitude, RealType.Longitude};
RealTupleType earth_location = new RealTupleType(types);
RealType vis_radiance = RealType.getRealType("vis_radiance");
RealType ir_radiance = RealType.ge... |
diff --git a/src/edu/first/team2903/robot/commands/TeleopMode.java b/src/edu/first/team2903/robot/commands/TeleopMode.java
index 357d3ec..c18e9bd 100644
--- a/src/edu/first/team2903/robot/commands/TeleopMode.java
+++ b/src/edu/first/team2903/robot/commands/TeleopMode.java
@@ -1,37 +1,38 @@
package edu.first.team2903.r... | false | true | protected void execute() {
if (OI.rightStick.getZ() > 0) {
shooter.Shoot(OI.rightStick.getZ());
}
drivetrain.drive(OI.leftStick.getY(), OI.rightStick.getY());
}
| protected void execute() {
//DEBUG REMOVE LATER
if (OI.rightStick.getZ() > 0) {
shooter.setSpeed(OI.rightStick.getZ());
}
drivetrain.drive(OI.leftStick.getY(), OI.rightStick.getY());
}
|
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/Lint.java b/org.aspectj.matcher/src/org/aspectj/weaver/Lint.java
index 4c4f5f7dd..bc2b44ba4 100644
--- a/org.aspectj.matcher/src/org/aspectj/weaver/Lint.java
+++ b/org.aspectj.matcher/src/org/aspectj/weaver/Lint.java
@@ -1,319 +1,325 @@
/* ***********************... | true | true | public void loadDefaultProperties() {
InputStream s = getClass().getResourceAsStream("XlintDefault.properties");
if (s == null) {
MessageUtil.warn(world.getMessageHandler(), WeaverMessages.format(WeaverMessages.XLINTDEFAULT_LOAD_ERROR));
return;
}
try {
setFromProperties(s);
} catch (IOException ioe... | public void loadDefaultProperties() {
InputStream s = getClass().getResourceAsStream("XlintDefault.properties");
if (s == null) {
MessageUtil.warn(world.getMessageHandler(), WeaverMessages.format(WeaverMessages.XLINTDEFAULT_LOAD_ERROR));
return;
}
try {
setFromProperties(s);
} catch (IOException ioe... |
diff --git a/src/com/android/alarmclock/AnalogAppWidgetProvider.java b/src/com/android/alarmclock/AnalogAppWidgetProvider.java
index 711179a9..b5181ada 100644
--- a/src/com/android/alarmclock/AnalogAppWidgetProvider.java
+++ b/src/com/android/alarmclock/AnalogAppWidgetProvider.java
@@ -1,55 +1,54 @@
/*
* Copyright (... | true | true | public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if (AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action)) {
RemoteViews views = new RemoteViews(context.getPackageName(),
R.layout.analog_appwidget);
views.set... | public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if (AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action)) {
RemoteViews views = new RemoteViews(context.getPackageName(),
R.layout.analog_appwidget);
views.set... |
diff --git a/test/src/org/omegat/gui/glossary/GlossaryTextAreaTest.java b/test/src/org/omegat/gui/glossary/GlossaryTextAreaTest.java
index 17ce03a3..b353bb97 100644
--- a/test/src/org/omegat/gui/glossary/GlossaryTextAreaTest.java
+++ b/test/src/org/omegat/gui/glossary/GlossaryTextAreaTest.java
@@ -1,175 +1,176 @@
/***... | true | true | protected void setUp() throws Exception {
TestCoreInitializer.initEditor(new IEditor() {
public void activateEntry() {
}
public void changeCase(CHANGE_CASE_TO newCase) {
}
public void commitAndDeactivate() {
}
public void... | protected void setUp() throws Exception {
super.setUp();
TestCoreInitializer.initEditor(new IEditor() {
public void activateEntry() {
}
public void changeCase(CHANGE_CASE_TO newCase) {
}
public void commitAndDeactivate() {
}
... |
diff --git a/plugins/SPIMAcquisition/spim/progacq/OMETIFFHandler.java b/plugins/SPIMAcquisition/spim/progacq/OMETIFFHandler.java
index a1d104726..cd421c38d 100644
--- a/plugins/SPIMAcquisition/spim/progacq/OMETIFFHandler.java
+++ b/plugins/SPIMAcquisition/spim/progacq/OMETIFFHandler.java
@@ -1,198 +1,198 @@
package sp... | true | true | public OMETIFFHandler(CMMCore iCore, File outDir, String xyDev,
String cDev, String zDev, String tDev, AcqRow[] acqRows,
int iTimeSteps, double iDeltaT) {
if(outDir == null || !outDir.exists() || !outDir.isDirectory())
throw new IllegalArgumentException("Null path specified: " + outDir.toString());
imag... | public OMETIFFHandler(CMMCore iCore, File outDir, String xyDev,
String cDev, String zDev, String tDev, AcqRow[] acqRows,
int iTimeSteps, double iDeltaT) {
if(outDir == null || !outDir.exists() || !outDir.isDirectory())
throw new IllegalArgumentException("Null path specified: " + outDir.toString());
imag... |
diff --git a/src/com/bukkit/cian1500ww/giveit/Giveme.java b/src/com/bukkit/cian1500ww/giveit/Giveme.java
index 98dd926..ae20efb 100644
--- a/src/com/bukkit/cian1500ww/giveit/Giveme.java
+++ b/src/com/bukkit/cian1500ww/giveit/Giveme.java
@@ -1,112 +1,114 @@
package com.bukkit.cian1500ww.giveit;
import org.bukkit.com... | false | true | public boolean giveme(CommandSender sender, String[] trimmedArgs){
System.out.println("Value after entering idChange:" +idchange.idChange(trimmedArgs[0]));
if ((trimmedArgs[0] == null) || (trimmedArgs[1]== null)) {
return false;
}
Player player = (Player)sender;
PlayerInventory in... | public boolean giveme(CommandSender sender, String[] trimmedArgs){
System.out.println("Value after entering idChange:" +idchange.idChange(trimmedArgs[0]));
if ((trimmedArgs[0] == null) || (trimmedArgs[1]== null)) {
return false;
}
Player player = (Player)sender;
PlayerInventory in... |
diff --git a/src/org/melonbrew/fe/database/databases/SQLDB.java b/src/org/melonbrew/fe/database/databases/SQLDB.java
index 6c0cd7c..0974de5 100755
--- a/src/org/melonbrew/fe/database/databases/SQLDB.java
+++ b/src/org/melonbrew/fe/database/databases/SQLDB.java
@@ -1,215 +1,215 @@
package org.melonbrew.fe.database.data... | true | true | public void clean(){
checkConnection();
try {
SelectQuery query = accounts.select().where("money", plugin.getAPI().getDefaultHoldings());
ResultSet set = query.execute();
boolean executeQuery = false;
StringBuilder builder = new StringBuilder("DELETE FROM " + accounts + " WHERE name IN (... | public void clean(){
checkConnection();
try {
SelectQuery query = accounts.select().where("money", plugin.getAPI().getDefaultHoldings());
ResultSet set = query.execute();
boolean executeQuery = false;
StringBuilder builder = new StringBuilder("DELETE FROM " + accountsName + " WHERE name ... |
diff --git a/modules/dcache/src/main/java/diskCacheV111/vehicles/IoJobInfo.java b/modules/dcache/src/main/java/diskCacheV111/vehicles/IoJobInfo.java
index 93b90321d7..e9af44c28e 100755
--- a/modules/dcache/src/main/java/diskCacheV111/vehicles/IoJobInfo.java
+++ b/modules/dcache/src/main/java/diskCacheV111/vehicles/IoJo... | true | true | public IoJobInfo(final PoolIORequest request, int id){
super( request.getCreationTime(),
request.getTransferTime(),
request.getState().toString(),
id, request.getClient(),
request.getClientId()) ;
_pnfsId = request.getPnfsId();
_byt... | public IoJobInfo(final PoolIORequest request, int id){
super( request.getCreationTime(),
request.getStartTime(),
request.getState().toString(),
id, request.getClient(),
request.getClientId()) ;
_pnfsId = request.getPnfsId();
_bytesT... |
diff --git a/sonar-core/src/main/java/org/sonar/core/measure/MeasureFilterSql.java b/sonar-core/src/main/java/org/sonar/core/measure/MeasureFilterSql.java
index 0da49a1f0f..3708bccae4 100644
--- a/sonar-core/src/main/java/org/sonar/core/measure/MeasureFilterSql.java
+++ b/sonar-core/src/main/java/org/sonar/core/measure... | false | true | private void init() {
sql.append("SELECT block.id, max(block.rid) AS rid, max(block.rootid) AS rootid, max(sortval) AS sortval1, CASE WHEN sortval IS NULL THEN 1 ELSE 0 END AS sortval2 ");
for (int index = 0; index < filter.getMeasureConditions().size(); index++) {
sql.append(", max(crit_").append(index... | private void init() {
sql.append("SELECT block.id, max(block.rid) AS rid, max(block.rootid) AS rootid, max(sortval) AS sortvalmax, CASE WHEN sortval IS NULL THEN 1 ELSE 0 END AS sortflag ");
for (int index = 0; index < filter.getMeasureConditions().size(); index++) {
sql.append(", max(crit_").append(ind... |
diff --git a/x10.compiler/src/polyglot/visit/InnerClassRemover.java b/x10.compiler/src/polyglot/visit/InnerClassRemover.java
index 6d054654c..7502acbc7 100644
--- a/x10.compiler/src/polyglot/visit/InnerClassRemover.java
+++ b/x10.compiler/src/polyglot/visit/InnerClassRemover.java
@@ -1,519 +1,519 @@
/*
* This file ... | true | true | public ClassDecl addFieldsToClass(ClassDecl cd, List<FieldDef> newFields, TypeSystem ts, NodeFactory nf, boolean rewriteMembers) {
if (newFields.isEmpty()) {
return cd;
}
ClassBody b = cd.body();
// Add the new fields to the class.
List<ClassMember> newM... | public ClassDecl addFieldsToClass(ClassDecl cd, List<FieldDef> newFields, TypeSystem ts, NodeFactory nf, boolean rewriteMembers) {
if (newFields.isEmpty()) {
return cd;
}
ClassBody b = cd.body();
// Add the new fields to the class.
List<ClassMember> newM... |
diff --git a/source/de/anomic/document/parser/docParser.java b/source/de/anomic/document/parser/docParser.java
index a91a541b0..d50ff7641 100644
--- a/source/de/anomic/document/parser/docParser.java
+++ b/source/de/anomic/document/parser/docParser.java
@@ -1,134 +1,134 @@
//docParser.java
//------------------------
... | true | true | public Document parse(final yacyURL location, final String mimeType, final String charset, final InputStream source) throws ParserException, InterruptedException {
final WordExtractor extractor;
try {
extractor = new WordExtractor(source);
} catch (IOException e) {
thr... | public Document parse(final yacyURL location, final String mimeType, final String charset, final InputStream source) throws ParserException, InterruptedException {
final WordExtractor extractor;
try {
extractor = new WordExtractor(source);
} catch (Exception e) {
throw... |
diff --git a/src/nl/b3p/viewer/util/LayerListHelper.java b/src/nl/b3p/viewer/util/LayerListHelper.java
index e6cd4b504..d9ebd7d52 100644
--- a/src/nl/b3p/viewer/util/LayerListHelper.java
+++ b/src/nl/b3p/viewer/util/LayerListHelper.java
@@ -1,102 +1,105 @@
/*
* Copyright (C) 2012 B3Partners B.V.
*
* This program... | true | true | public static List<ApplicationLayer> getLayers(Level level,Boolean filterable, Boolean bufferable, Boolean editable ,Boolean influence ,Boolean arc ,Boolean wfs ,Boolean attribute,
Boolean hasConfiguredLayers, List<Long> possibleLayers) {
List<ApplicationLayer> layers = new ArrayList<Application... | public static List<ApplicationLayer> getLayers(Level level,Boolean filterable, Boolean bufferable, Boolean editable ,Boolean influence ,Boolean arc ,Boolean wfs ,Boolean attribute,
Boolean hasConfiguredLayers, List<Long> possibleLayers) {
List<ApplicationLayer> layers = new ArrayList<Application... |
diff --git a/topcat/src/main/uk/ac/starlink/topcat/plot2/BlobPanel2.java b/topcat/src/main/uk/ac/starlink/topcat/plot2/BlobPanel2.java
index a4bcc28ec..49811c5fe 100644
--- a/topcat/src/main/uk/ac/starlink/topcat/plot2/BlobPanel2.java
+++ b/topcat/src/main/uk/ac/starlink/topcat/plot2/BlobPanel2.java
@@ -1,283 +1,286 @@... | true | true | public BlobPanel2() {
blobListener_ = new BlobListener();
addComponentListener( new ComponentAdapter() {
public void componentResized( ComponentEvent evt ) {
clear();
}
} );
setOpaque( false );
/* Constructs an associated action which ... | public BlobPanel2() {
blobListener_ = new BlobListener();
addComponentListener( new ComponentAdapter() {
public void componentResized( ComponentEvent evt ) {
clear();
}
} );
setOpaque( false );
/* Constructs an associated action which ... |
diff --git a/src/logging/Logger.java b/src/logging/Logger.java
index e9cc91f..b312d49 100644
--- a/src/logging/Logger.java
+++ b/src/logging/Logger.java
@@ -1,38 +1,38 @@
package logging;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.util.ArrayList;
public class Lo... | true | true | public void writeMessages(){
try{
BufferedWriter bw = new BufferedWriter(new FileWriter(getLatestFileName(0)));
for(Message m : messages)
bw.write(m.getMessage()+"\n");
bw.flush();
bw.close();
}
catch(Exception ex){
ex.printStackTrace();
log(new Message("Fai... | public void writeMessages(){
try{
BufferedWriter bw = new BufferedWriter(new FileWriter(getLatestFileName(0)));
for(Message m : messages)
bw.write(m.getMessage()+"\r\n");
bw.flush();
bw.close();
}
catch(Exception ex){
ex.printStackTrace();
log(new Message("F... |
diff --git a/src/fr/frozentux/craftguard2/config/ListLoader.java b/src/fr/frozentux/craftguard2/config/ListLoader.java
index d0c097b..7260b43 100644
--- a/src/fr/frozentux/craftguard2/config/ListLoader.java
+++ b/src/fr/frozentux/craftguard2/config/ListLoader.java
@@ -1,134 +1,135 @@
package fr.frozentux.craftguard2.c... | true | true | public HashMap<String, List> load(){
//Initializing the groups list or clearing it
HashMap<String, List> groupsLists = new HashMap<String, List>();
//If the file doesn't exist, write defaults
if(!configurationFile.exists()){
plugin.getCraftGuardLogger().debug("ListFile not existing");
HashMap<Integ... | public HashMap<String, List> load(){
//Initializing the groups list or clearing it
HashMap<String, List> groupsLists = new HashMap<String, List>();
//If the file doesn't exist, write defaults
if(!configurationFile.exists()){
plugin.getCraftGuardLogger().debug("ListFile not existing");
HashMap<Integ... |
diff --git a/nakp/src/main/de/nordakademie/nakp/persistence/MongoProductDAO.java b/nakp/src/main/de/nordakademie/nakp/persistence/MongoProductDAO.java
index 8a74fc6..3063c3b 100644
--- a/nakp/src/main/de/nordakademie/nakp/persistence/MongoProductDAO.java
+++ b/nakp/src/main/de/nordakademie/nakp/persistence/MongoProduct... | true | true | public List<Product> findAll() {
final List<Product> products = new ArrayList<>();
final DBCursor cursor = mongodb.getObject().getCollection("product")
.find();
while (cursor.hasNext()) {
final DBObject document = cursor.next();
products.add(new Product((String) document.get("id")));
}
return produ... | public List<Product> findAll() {
final List<Product> products = new ArrayList<>();
final DBCursor cursor = mongodb.getObject().getCollection("product")
.find();
while (cursor.hasNext()) {
final DBObject document = cursor.next();
products.add(new Product((String) document.get("_id")));
}
return prod... |
diff --git a/src/java/org/apache/hadoop/security/UnixUserGroupInformation.java b/src/java/org/apache/hadoop/security/UnixUserGroupInformation.java
index 62cbb65986..dcb13b90ef 100644
--- a/src/java/org/apache/hadoop/security/UnixUserGroupInformation.java
+++ b/src/java/org/apache/hadoop/security/UnixUserGroupInformatio... | false | true | public static UnixUserGroupInformation login() throws LoginException {
try {
String userName;
// if an exception occurs, then uses the
// default user
try {
userName = getUnixUserName();
} catch (Exception e) {
userName = DEFAULT_USERNAME;
}
// check if... | public static UnixUserGroupInformation login() throws LoginException {
try {
String userName;
// if an exception occurs, then uses the
// default user
try {
userName = getUnixUserName();
} catch (Exception e) {
LOG.warn("Couldn't get unix username, using " + DEFAULT... |
diff --git a/vlc-android/src/org/videolan/vlc/Util.java b/vlc-android/src/org/videolan/vlc/Util.java
index 429d39bc..465d178d 100644
--- a/vlc-android/src/org/videolan/vlc/Util.java
+++ b/vlc-android/src/org/videolan/vlc/Util.java
@@ -1,354 +1,354 @@
/*******************************************************************... | false | true | public static boolean hasCompatibleCPU()
{
// If already checked return cached result
if(errorMsg != null) return isCompatible;
Properties properties = new Properties();
try {
properties.load(new ByteArrayInputStream(Util.readAsset("env.txt", "").getBytes("UTF-8")));... | public static boolean hasCompatibleCPU()
{
// If already checked return cached result
if(errorMsg != null) return isCompatible;
Properties properties = new Properties();
try {
properties.load(new ByteArrayInputStream(Util.readAsset("env.txt", "").getBytes("UTF-8")));... |
diff --git a/JKeyedBits/src/com/aqnichol/keyedbits/decode/FileDecodeStream.java b/JKeyedBits/src/com/aqnichol/keyedbits/decode/FileDecodeStream.java
index 715ba9c..b8cf9db 100644
--- a/JKeyedBits/src/com/aqnichol/keyedbits/decode/FileDecodeStream.java
+++ b/JKeyedBits/src/com/aqnichol/keyedbits/decode/FileDecodeStream.... | true | true | public byte[] readBytes (int length) {
byte[] bytes = new byte[length];
int hasBytes = 0;
while (hasBytes < length) {
int read = 0;
try {
read = stream.read(bytes, hasBytes, length - hasBytes);
} catch (IOException e) {
throw new DecodeStreamReadError("Failed to read from input stream.", e);
... | public byte[] readBytes (int length) {
byte[] bytes = new byte[length];
int hasBytes = 0;
while (hasBytes < length) {
int read = 0;
try {
read = stream.read(bytes, hasBytes, length - hasBytes);
} catch (IOException e) {
throw new DecodeStreamReadError("Failed to read from input stream.", e);
... |
diff --git a/java/src/org/broadinstitute/sting/playground/fourbasecaller/FourBaseRecaller.java b/java/src/org/broadinstitute/sting/playground/fourbasecaller/FourBaseRecaller.java
index b554da162..897eb5728 100644
--- a/java/src/org/broadinstitute/sting/playground/fourbasecaller/FourBaseRecaller.java
+++ b/java/src/org/... | false | true | public static void main(String[] argv) {
// Parse args
File FIRECREST_DIR = new File(argv[0]);
int LANE = Integer.valueOf(argv[1]);
File SAM_OUT = new File(argv[2]);
int CYCLE_START = Integer.valueOf(argv[3]);
int CYCLE_STOP = Integer.valueOf(argv[4]);
boolean... | public static void main(String[] argv) {
// Parse args
File FIRECREST_DIR = new File(argv[0]);
int LANE = Integer.valueOf(argv[1]);
File SAM_OUT = new File(argv[2]);
int CYCLE_START = Integer.valueOf(argv[3]);
int CYCLE_STOP = Integer.valueOf(argv[4]);
boolean... |
diff --git a/src/org/tint/ui/preferences/SeekBarPreference.java b/src/org/tint/ui/preferences/SeekBarPreference.java
index e642c69..67e8952 100644
--- a/src/org/tint/ui/preferences/SeekBarPreference.java
+++ b/src/org/tint/ui/preferences/SeekBarPreference.java
@@ -1,147 +1,147 @@
/*
* Tint Browser for Android
*
... | true | true | public SeekBarPreference(Context context, AttributeSet attrs) {
super(context, attrs);
if (attrs != null) {
TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.SeekBarPreference);
mMinValue = a.getInt(R.styleable.SeekBarPreference_minValue, 0);
mMaxValue = a.getInt(R.styleable.See... | public SeekBarPreference(Context context, AttributeSet attrs) {
super(context, attrs);
if (attrs != null) {
TypedArray a = getContext().obtainStyledAttributes(attrs, R.styleable.SeekBarPreference);
mMinValue = a.getInt(R.styleable.SeekBarPreference_minValue, 0);
mMaxValue = a.getInt(R.styleable.See... |
diff --git a/src/com/squareup/timessquare/sample/SupportTab.java b/src/com/squareup/timessquare/sample/SupportTab.java
index a8415ec..2bc522b 100644
--- a/src/com/squareup/timessquare/sample/SupportTab.java
+++ b/src/com/squareup/timessquare/sample/SupportTab.java
@@ -1,61 +1,61 @@
package com.squareup.timessquare.sam... | true | true | protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.support_tab_layout);
lv = (ListView) findViewById(R.id.list);
supportItems = getResources().getStringArray(R.array.supportItems);
lv.setAdapter(new Array... | protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.support_tab_layout);
lv = (ListView) findViewById(R.id.list);
supportItems = getResources().getStringArray(R.array.supportItems);
lv.setAdapter(new Array... |
diff --git a/FetchingObjects/Aggregates/src/main/java/cbe/fetching/Aggregates.java b/FetchingObjects/Aggregates/src/main/java/cbe/fetching/Aggregates.java
index 3eaeef2..a20cf53 100644
--- a/FetchingObjects/Aggregates/src/main/java/cbe/fetching/Aggregates.java
+++ b/FetchingObjects/Aggregates/src/main/java/cbe/fetching... | true | true | public static void main(String[] arguments)
{
// Populate the database.
Populator.populateDatabase();
// Create a new DataContext for the queries.
DataContext dataContext = DataContext.createDataContext();
// Create a Query for Book records.
SelectQuery query = ... | public static void main(String[] arguments)
{
// Populate the database.
Populator.populateDatabase();
// Create a new DataContext for the queries.
DataContext dataContext = DataContext.createDataContext();
// Create a Query for Book records.
SelectQuery query = ... |
diff --git a/TestApp/src/com/artsoft/wifilapper/BluetoothGPS.java b/TestApp/src/com/artsoft/wifilapper/BluetoothGPS.java
index 9adf842..66e23cd 100644
--- a/TestApp/src/com/artsoft/wifilapper/BluetoothGPS.java
+++ b/TestApp/src/com/artsoft/wifilapper/BluetoothGPS.java
@@ -1,435 +1,441 @@
// Copyright 2011-2012, Art Ha... | false | true | private String ParseAndSendNMEA(String strNMEA)
{
String strLastLeftover = "";
int ixCur = strNMEA.indexOf("$GPGGA");
while(ixCur != -1)
{
int ixNext = strNMEA.indexOf("$", ixCur+1);
int ixVTG = strNMEA.indexOf("$GPVTG",ixCur+1); // finds the next command
int ixNextAfterVTG = strNMEA.indexOf... | private String ParseAndSendNMEA(String strNMEA)
{
String strLastLeftover = "";
int ixCur = strNMEA.indexOf("$GPGGA");
while(ixCur != -1)
{
int ixNext = strNMEA.indexOf("$", ixCur+1);
int ixVTG = strNMEA.indexOf("$GPVTG",ixCur+1); // finds the next command
//int ixVTG = -1;
int ixNextAfte... |
diff --git a/src/commons/org/codehaus/groovy/grails/commons/GrailsResourceLoader.java b/src/commons/org/codehaus/groovy/grails/commons/GrailsResourceLoader.java
index 47fdb6428..169b4b65b 100644
--- a/src/commons/org/codehaus/groovy/grails/commons/GrailsResourceLoader.java
+++ b/src/commons/org/codehaus/groovy/grails/c... | true | true | public URL loadGroovySource(String className) throws MalformedURLException {
if(className == null) return null;
String groovyFile = className.replace('.', '/') + ".groovy";
Resource foundResource = null;
for (int i = 0; resources != null && i < resources.length; i++) {
if (r... | public URL loadGroovySource(String className) throws MalformedURLException {
if(className == null) return null;
String groovyFile = className.replace('.', '/') + ".groovy";
Resource foundResource = null;
for (int i = 0; resources != null && i < resources.length; i++) {
if (r... |
diff --git a/src/main/java/me/smecsia/smartfox/tools/service/AuthService.java b/src/main/java/me/smecsia/smartfox/tools/service/AuthService.java
index 2478ef4..2ca4441 100644
--- a/src/main/java/me/smecsia/smartfox/tools/service/AuthService.java
+++ b/src/main/java/me/smecsia/smartfox/tools/service/AuthService.java
@@ ... | true | true | public static void checkAuthIfRequired(BasicHandler handler, User user) {
if (!authCache.containsKey(handler.getClass())) {
Security security = handler.getClass().getAnnotation(Security.class);
AuthStrategy authStrategy = new AuthStrategy();
try {
authStra... | public static void checkAuthIfRequired(BasicHandler handler, User user) {
if (!authCache.containsKey(handler.getClass())) {
Security security = handler.getClass().getAnnotation(Security.class);
AuthStrategy authStrategy = new AuthStrategy();
try {
authStra... |
diff --git a/src/main/java/ee/ignorance/transformiceapi/protocol/server/TribePlayerResponse.java b/src/main/java/ee/ignorance/transformiceapi/protocol/server/TribePlayerResponse.java
index c81f124..ef48704 100644
--- a/src/main/java/ee/ignorance/transformiceapi/protocol/server/TribePlayerResponse.java
+++ b/src/main/ja... | true | true | public TribePlayerResponse(List<String> rawMessage) {
if (rawMessage.size() > 1) {
type = Integer.parseInt(rawMessage.get(1));
}
if (rawMessage.size() > 2) {
playerName = rawMessage.get(2);
}
if (rawMessage.size() > 3) {
rank = TribeRank.getRank(Integer.parseInt(rawMessage.... | public TribePlayerResponse(List<String> rawMessage) {
if (rawMessage.size() > 1) {
type = Integer.parseInt(rawMessage.get(1));
}
if (rawMessage.size() > 2) {
playerName = rawMessage.get(2);
}
if (getType() == 12) { // Not sure if it's good to place it here
rank = TribeRank.... |
diff --git a/src/dk/itu/big_red/model/import_export/ReactionRuleXMLExport.java b/src/dk/itu/big_red/model/import_export/ReactionRuleXMLExport.java
index 8ba35f45..54207070 100644
--- a/src/dk/itu/big_red/model/import_export/ReactionRuleXMLExport.java
+++ b/src/dk/itu/big_red/model/import_export/ReactionRuleXMLExport.ja... | false | true | private Element _processChanges(Element e, ChangeGroup changes) throws ExportFailedException {
for (Change i_ : changes) {
Element f = null;
if (i_ instanceof Colourable.ChangeFillColour ||
i_ instanceof Colourable.ChangeOutlineColour ||
i_ instanceof Layoutable.ChangeLayout) {
/* do nothing ... | private Element _processChanges(Element e, ChangeGroup changes) throws ExportFailedException {
for (Change i_ : changes) {
Element f = null;
if (i_ instanceof Colourable.ChangeFillColour ||
i_ instanceof Colourable.ChangeOutlineColour ||
i_ instanceof Layoutable.ChangeLayout) {
/* do nothing ... |
diff --git a/projects/samskivert/src/java/com/samskivert/xml/SetNextFieldRule.java b/projects/samskivert/src/java/com/samskivert/xml/SetNextFieldRule.java
index f013e64a..37560a35 100644
--- a/projects/samskivert/src/java/com/samskivert/xml/SetNextFieldRule.java
+++ b/projects/samskivert/src/java/com/samskivert/xml/Set... | true | true | public void end (String namespace, String name)
throws Exception
{
// identify the objects to be used
Object child = digester.peek(0);
Object parent = digester.peek(1);
Class pclass = parent.getClass();
if (digester.getLogger().isDebugEnabled()) {
digester.getLogger().debug("Set " +... | public void end (String namespace, String name)
throws Exception
{
// identify the objects to be used
Object child = digester.peek(0);
Object parent = digester.peek(1);
Class pclass = parent.getClass();
if (digester.getLogger().isDebugEnabled()) {
digester.getLogger().debug("Set... |
diff --git a/src/core/src/main/java/org/geogit/repository/RepositoryConnectionException.java b/src/core/src/main/java/org/geogit/repository/RepositoryConnectionException.java
index 720c12bf..534bf3ad 100644
--- a/src/core/src/main/java/org/geogit/repository/RepositoryConnectionException.java
+++ b/src/core/src/main/jav... | false | true | public void verify(ConfigDatabase configDB, String formatName, String version) {
Optional<String> storageName = configDB.get("storage." + key);
Optional<String> storageVersion = configDB.get(formatName + ".version");
boolean unset = !(storageName... | public void verify(ConfigDatabase configDB, String formatName, String version) {
Optional<String> storageName = configDB.get("storage." + key);
Optional<String> storageVersion = configDB.get(formatName + ".version");
boolean unset = !(storageName... |
diff --git a/com/ggvaidya/TaxonDNA/DNA/formats/TNTFile.java b/com/ggvaidya/TaxonDNA/DNA/formats/TNTFile.java
index 0e47fc8..18b6c21 100644
--- a/com/ggvaidya/TaxonDNA/DNA/formats/TNTFile.java
+++ b/com/ggvaidya/TaxonDNA/DNA/formats/TNTFile.java
@@ -1,1220 +1,1220 @@
/**
* TNTFile allows you to read and write TNT fil... | false | true | public void groupCommand(int which_group, SequenceList appendTo, StreamTokenizer tok, FormatHandlerEvent evt, DelayCallback delay, int count_lines)
throws FormatException, DelayAbortedException, IOException
{
int begin_at = tok.lineno(); // which line did this group start at
String current_command_name =... | public void groupCommand(int which_group, SequenceList appendTo, StreamTokenizer tok, FormatHandlerEvent evt, DelayCallback delay, int count_lines)
throws FormatException, DelayAbortedException, IOException
{
int begin_at = tok.lineno(); // which line did this group start at
String current_command_name =... |
diff --git a/demos/seq/db/CreateIndex.java b/demos/seq/db/CreateIndex.java
index 66ec29c85..b3d891308 100755
--- a/demos/seq/db/CreateIndex.java
+++ b/demos/seq/db/CreateIndex.java
@@ -1,94 +1,94 @@
/*
* BioJava development code
*
* This code may be freely distributed and modified under the
... | true | true | public static void main(String[] args) {
try {
if(args.length != 3) {
throw new Exception("Use: indexName format alphabet");
}
String indexName = args[0];
File indexFile = new File(indexName);
File indexList = new File(indexName + ".list");
String formatName = args[1];
... | public static void main(String[] args) {
try {
if(args.length != 3) {
throw new Exception("Use: indexName format alphabet");
}
String indexName = args[0];
File indexFile = new File(indexName);
File indexList = new File(indexName + ".list");
String formatName = args[1];
... |
diff --git a/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQEndpointWorker.java b/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQEndpointWorker.java
index 416033258..69a7b04dd 100755
--- a/activemq-ra/src/main/java/org/apache/activemq/ra/ActiveMQEndpointWorker.java
+++ b/activemq-ra/src/main/java/or... | true | true | protected ActiveMQEndpointWorker(final MessageResourceAdapter adapter, ActiveMQEndpointActivationKey key) throws ResourceException {
this.endpointActivationKey = key;
this.endpointFactory = endpointActivationKey.getMessageEndpointFactory();
this.workManager = adapter.getBootstrapContext().ge... | protected ActiveMQEndpointWorker(final MessageResourceAdapter adapter, ActiveMQEndpointActivationKey key) throws ResourceException {
this.endpointActivationKey = key;
this.endpointFactory = endpointActivationKey.getMessageEndpointFactory();
this.workManager = adapter.getBootstrapContext().ge... |
diff --git a/src/bode/moritz/footfinger/MainMenuLayer.java b/src/bode/moritz/footfinger/MainMenuLayer.java
index a591d18..5d9dcfa 100644
--- a/src/bode/moritz/footfinger/MainMenuLayer.java
+++ b/src/bode/moritz/footfinger/MainMenuLayer.java
@@ -1,63 +1,66 @@
package bode.moritz.footfinger;
import org.cocos2d.layers... | false | true | protected MainMenuLayer(ccColor4B color) {
super(color);
this.setIsTouchEnabled(true);
CCSprite background = CCSprite.sprite("intro/intro_bg.png");
float winSize = (float) (CCDirector.sharedDirector().displaySize().getWidth()/960.0);
background.setScale(winSize);
background.setAnchorPoint(CGPoint.ccp(0f... | protected MainMenuLayer(ccColor4B color) {
super(color);
this.setIsTouchEnabled(true);
CCSprite background = CCSprite.sprite("intro/intro_bg.png");
float winSize = (float) (CCDirector.sharedDirector().displaySize().getWidth()/960.0);
background.setScale(winSize);
background.setAnchorPoint(CGPoint.ccp(0f... |
diff --git a/cadpage/src/net/anei/cadpage/parsers/dispatch/DispatchOSSIParser.java b/cadpage/src/net/anei/cadpage/parsers/dispatch/DispatchOSSIParser.java
index 1a5e9b4ef..8761d4ab2 100644
--- a/cadpage/src/net/anei/cadpage/parsers/dispatch/DispatchOSSIParser.java
+++ b/cadpage/src/net/anei/cadpage/parsers/dispatch/Dis... | true | true | protected boolean parseMsg(String body, Data data) {
// Strip off leading /
if (body.startsWith("/")) body = body.substring(2).trim();
// If format has a leading ID, strip that off
if (leadID) {
int pt = body.indexOf(':');
if (pt < 0) return false;
data.strCallId = body.sub... | protected boolean parseMsg(String body, Data data) {
// Strip off leading /
if (body.startsWith("/")) body = body.substring(1).trim();
// If format has a leading ID, strip that off
if (leadID) {
int pt = body.indexOf(':');
if (pt < 0) return false;
data.strCallId = body.sub... |
diff --git a/sphinx4/src/sphinx4/edu/cmu/sphinx/util/props/PropertySheet.java b/sphinx4/src/sphinx4/edu/cmu/sphinx/util/props/PropertySheet.java
index 3114c72a7..b55b757f4 100644
--- a/sphinx4/src/sphinx4/edu/cmu/sphinx/util/props/PropertySheet.java
+++ b/sphinx4/src/sphinx4/edu/cmu/sphinx/util/props/PropertySheet.java... | false | true | public Configurable getComponent(String name) throws PropertyException {
S4PropWrapper s4PropWrapper = getProperty(name, S4Component.class);
S4Component s4Component = (S4Component) s4PropWrapper.getAnnotation();
Class expectedType = s4Component.type();
if (propValues.get(name) == n... | public Configurable getComponent(String name) throws PropertyException {
S4PropWrapper s4PropWrapper = getProperty(name, S4Component.class);
S4Component s4Component = (S4Component) s4PropWrapper.getAnnotation();
Class expectedType = s4Component.type();
if (propValues.get(name) == n... |
diff --git a/src/radlab/rain/workload/httptest/BurstUrlOperation.java b/src/radlab/rain/workload/httptest/BurstUrlOperation.java
index 81ebe4b..e01c0a7 100644
--- a/src/radlab/rain/workload/httptest/BurstUrlOperation.java
+++ b/src/radlab/rain/workload/httptest/BurstUrlOperation.java
@@ -1,95 +1,95 @@
package radlab.r... | true | true | public void execute() throws Throwable
{
// Fetch the base url
StringBuilder response = this._http.fetchUrl( this.getGenerator()._baseUrl );
this.trace( this.getGenerator()._baseUrl );
if( response.length() == 0 || this._http.getStatusCode() != HttpStatus.SC_OK )
{
String errorMessage = "Url GET ERRO... | public void execute() throws Throwable
{
// Fetch the base url
StringBuilder response = this._http.fetchUrl( this.getGenerator()._baseUrl );
this.trace( this.getGenerator()._baseUrl );
if( response.length() == 0 || this._http.getStatusCode() != HttpStatus.SC_OK )
{
String errorMessage = "Url GET ERRO... |
diff --git a/jetty-jboss/src/main/java/org/jboss/jetty/security/JBossIdentityService.java b/jetty-jboss/src/main/java/org/jboss/jetty/security/JBossIdentityService.java
index 576193c9b..0d0960abc 100644
--- a/jetty-jboss/src/main/java/org/jboss/jetty/security/JBossIdentityService.java
+++ b/jetty-jboss/src/main/java/or... | true | true | public boolean isUserInRole(String role)
{
if (_log.isDebugEnabled()) _log.debug("Checking role "+role+" for user "+_principal.getName());
boolean isUserInRole = false;
Set requiredRoles = Collections.singleton(new SimplePrincipal(role));
if (_realmMapping... | public boolean isUserInRole(String role, UserIdentity.Scope scope)
{
if (_log.isDebugEnabled()) _log.debug("Checking role "+role+" for user "+_principal.getName());
boolean isUserInRole = false;
Set requiredRoles = Collections.singleton(new SimplePrincipal(role));
... |
diff --git a/modules/org.restlet/src/org/restlet/resource/ServerResource.java b/modules/org.restlet/src/org/restlet/resource/ServerResource.java
index c415e53cf..fee435c76 100644
--- a/modules/org.restlet/src/org/restlet/resource/ServerResource.java
+++ b/modules/org.restlet/src/org/restlet/resource/ServerResource.java... | true | true | protected Representation doConditionalHandle() throws ResourceException {
Representation result = null;
if (getConditions().hasSome()) {
RepresentationInfo resultInfo = null;
if (existing) {
if (isNegotiated()) {
resultInfo = doGetInfo(ge... | protected Representation doConditionalHandle() throws ResourceException {
Representation result = null;
if (getConditions().hasSome()) {
RepresentationInfo resultInfo = null;
if (existing) {
if (isNegotiated()) {
Variant preferredVariant ... |
diff --git a/src/com/android/settings/DeviceInfoSettings.java b/src/com/android/settings/DeviceInfoSettings.java
index be01f7dc5..7768b7dc7 100644
--- a/src/com/android/settings/DeviceInfoSettings.java
+++ b/src/com/android/settings/DeviceInfoSettings.java
@@ -1,153 +1,153 @@
/*
* Copyright (C) 2008 The Android Open... | true | true | private String getFormattedKernelVersion() {
String procVersionStr;
try {
BufferedReader reader = new BufferedReader(new FileReader("/proc/version"), 256);
try {
procVersionStr = reader.readLine();
} finally {
reader.close();
... | private String getFormattedKernelVersion() {
String procVersionStr;
try {
BufferedReader reader = new BufferedReader(new FileReader("/proc/version"), 256);
try {
procVersionStr = reader.readLine();
} finally {
reader.close();
... |
diff --git a/core/src/main/java/org/jvnet/sorcerer/ParsedSourceSet.java b/core/src/main/java/org/jvnet/sorcerer/ParsedSourceSet.java
index 9fcde5b..f832bbb 100644
--- a/core/src/main/java/org/jvnet/sorcerer/ParsedSourceSet.java
+++ b/core/src/main/java/org/jvnet/sorcerer/ParsedSourceSet.java
@@ -1,669 +1,672 @@
packag... | false | true | protected void configure(final CompilationUnitTree cu, final AstGenerator gen) throws IOException {
final LineMap lineMap = cu.getLineMap();
// add lexical markers
JavaLexer lexer = new JavaLexer(new CharSequenceReader(gen.sourceFile));
lexer.setTabSize(tabWidth);
try {
... | protected void configure(final CompilationUnitTree cu, final AstGenerator gen) throws IOException {
final LineMap lineMap = cu.getLineMap();
// add lexical markers
JavaLexer lexer = new JavaLexer(new CharSequenceReader(gen.sourceFile));
lexer.setTabSize(tabWidth);
try {
... |
diff --git a/AndroidMovingMap/AndroidMovingMap/src/edu/rosehulman/androidmovingmap/MainActivity.java b/AndroidMovingMap/AndroidMovingMap/src/edu/rosehulman/androidmovingmap/MainActivity.java
index 72cb131..d6e2937 100644
--- a/AndroidMovingMap/AndroidMovingMap/src/edu/rosehulman/androidmovingmap/MainActivity.java
+++ b... | false | true | public boolean onOptionsItemSelected(MenuItem item) {
int itemId = item.getItemId();
if (itemId == R.id.add_poi_type) {
Toast.makeText(this, "I can totally add POI types",
Toast.LENGTH_SHORT).show();
AddPOITypeDialogFragment.newInstance(
mMapView.getAMMOverlayManager(), this).show(
getFragment... | public boolean onOptionsItemSelected(MenuItem item) {
int itemId = item.getItemId();
if (itemId == R.id.add_poi_type) {
Toast.makeText(this, "I can totally add POI types",
Toast.LENGTH_SHORT).show();
AddPOITypeDialogFragment.newInstance(
mMapView.getAMMOverlayManager(), this).show(
getFragment... |
diff --git a/Superuser/src/com/koushikdutta/superuser/PolicyFragmentInternal.java b/Superuser/src/com/koushikdutta/superuser/PolicyFragmentInternal.java
index 83fb41b..dd241ff 100644
--- a/Superuser/src/com/koushikdutta/superuser/PolicyFragmentInternal.java
+++ b/Superuser/src/com/koushikdutta/superuser/PolicyFragmentI... | false | true | public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
super.onCreateOptionsMenu(menu, inflater);
MenuInflater mi = new MenuInflater(getActivity());
mi.inflate(R.menu.main, menu);
MenuItem log = menu.findItem(R.id.logs);
log.setOnMenuItemClickListener(new OnMenuI... | public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
super.onCreateOptionsMenu(menu, inflater);
MenuInflater mi = new MenuInflater(getActivity());
mi.inflate(R.menu.main, menu);
MenuItem log = menu.findItem(R.id.logs);
log.setOnMenuItemClickListener(new OnMenuI... |
diff --git a/src/com/android/email/MessagingController.java b/src/com/android/email/MessagingController.java
index c04280f2..3ac6f7c9 100644
--- a/src/com/android/email/MessagingController.java
+++ b/src/com/android/email/MessagingController.java
@@ -1,2073 +1,2078 @@
/*
* Copyright (C) 2008 The Android Open Source ... | true | true | private StoreSynchronizer.SyncResults synchronizeMailboxGeneric(
final EmailContent.Account account, final EmailContent.Mailbox folder)
throws MessagingException {
Log.d(Email.LOG_TAG, "*** synchronizeMailboxGeneric ***");
ContentResolver resolver = mContext.getContentResolv... | private StoreSynchronizer.SyncResults synchronizeMailboxGeneric(
final EmailContent.Account account, final EmailContent.Mailbox folder)
throws MessagingException {
Log.d(Email.LOG_TAG, "*** synchronizeMailboxGeneric ***");
ContentResolver resolver = mContext.getContentResolv... |
diff --git a/modules/compute4/org/molgenis/compute/commandline/ArgumentParser.java b/modules/compute4/org/molgenis/compute/commandline/ArgumentParser.java
index 12d70879c..4f9d2e539 100644
--- a/modules/compute4/org/molgenis/compute/commandline/ArgumentParser.java
+++ b/modules/compute4/org/molgenis/compute/commandline... | true | true | public static LinkedHashMap<String, String> parseParameters(String[] args, Exiter exiter)
{
defineSets(args);
if (!matchParameters())
{
System.err.println("#");
System.err.println("##");
System.err.println("### Begin of error message.");
System.err.println("##");
System.err.println("#\n");
/... | public static LinkedHashMap<String, String> parseParameters(String[] args, Exiter exiter)
{
defineSets(args);
if (!matchParameters())
{
System.err.println("#");
System.err.println("##");
System.err.println("### Begin of error message.");
System.err.println("##");
System.err.println("#\n");
/... |
diff --git a/src/com/codefuss/entities/Ammo.java b/src/com/codefuss/entities/Ammo.java
index eb5c217..54c0bcf 100644
--- a/src/com/codefuss/entities/Ammo.java
+++ b/src/com/codefuss/entities/Ammo.java
@@ -1,44 +1,44 @@
package com.codefuss.entities;
import com.codefuss.physics.Body;
import org.newdawn.slick.geom.V... | true | true | private void applyCollisionDamage(Body collided) {
if(collided.getEntity() instanceof Sprite && removed == false) {
remove();
Sprite sprite = (Sprite)collided.getEntity();
sprite.applyHealth(-(int) (minDamage + Math.random() * (maxDamage - minDamage)));
}
}
| private void applyCollisionDamage(Body collided) {
if(collided.getEntity() instanceof Sprite && ! isRemoved()) {
remove();
Sprite sprite = (Sprite)collided.getEntity();
sprite.applyHealth(-(int) (minDamage + Math.random() * (maxDamage - minDamage)));
}
}
|
diff --git a/src/GUI/MainWindow.java b/src/GUI/MainWindow.java
index 51d94db..c899c94 100644
--- a/src/GUI/MainWindow.java
+++ b/src/GUI/MainWindow.java
@@ -1,720 +1,721 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package GUI;
import business.Output;
i... | true | true | private void initComponents() {
jFileChooser1 = new javax.swing.JFileChooser();
jFrame1 = new javax.swing.JFrame();
jLabel1 = new javax.swing.JLabel();
jSplitPane1 = new javax.swing.JSplitPane();
jScrollPane2 = new javax.swing.JScrollPane();
syntaxArea = new javax.sw... | private void initComponents() {
jFileChooser1 = new javax.swing.JFileChooser();
jFrame1 = new javax.swing.JFrame();
jLabel1 = new javax.swing.JLabel();
jSplitPane1 = new javax.swing.JSplitPane();
jScrollPane2 = new javax.swing.JScrollPane();
syntaxArea = new javax.sw... |
diff --git a/src/main/org/testng/xml/XmlTest.java b/src/main/org/testng/xml/XmlTest.java
index 53e1d516..b2c6b983 100644
--- a/src/main/org/testng/xml/XmlTest.java
+++ b/src/main/org/testng/xml/XmlTest.java
@@ -1,472 +1,473 @@
package org.testng.xml;
import java.io.Serializable;
import java.util.ArrayList;
import... | true | true | public String toXml(String indent) {
XMLStringBuffer xsb = new XMLStringBuffer(indent);
Properties p = new Properties();
p.setProperty("name", getName());
p.setProperty("junit", m_isJUnit != null ? m_isJUnit.toString() : "false");
if (null != m_parallel && !"".equals(m_parallel)) {
p.setProp... | public String toXml(String indent) {
XMLStringBuffer xsb = new XMLStringBuffer(indent);
Properties p = new Properties();
p.setProperty("name", getName());
p.setProperty("junit", m_isJUnit != null ? m_isJUnit.toString() : "false");
if (null != m_parallel && !"".equals(m_parallel)) {
p.setProp... |
diff --git a/tests/org.eclipse.dltk.ruby.core.tests/src/org/eclipse/dltk/ruby/tests/search/mixin/MixinTestsSuite.java b/tests/org.eclipse.dltk.ruby.core.tests/src/org/eclipse/dltk/ruby/tests/search/mixin/MixinTestsSuite.java
index 6e5965db..0c0c8d55 100644
--- a/tests/org.eclipse.dltk.ruby.core.tests/src/org/eclipse/dl... | true | true | public MixinTestsSuite(String testsDirectory) {
super(testsDirectory);
model = new MixinModel(RubyLanguageToolkit.getDefault());
final MixinTest tests = new MixinTest("Ruby Mixin Tests");
try {
tests.setUpSuite();
} catch (Exception e1) {
e1.printStackTrace();
}
Enumeration entryPaths = Activ... | public MixinTestsSuite(String testsDirectory) {
super(testsDirectory);
model = new MixinModel(RubyLanguageToolkit.getDefault());
final MixinTest tests = new MixinTest("Ruby Mixin Tests");
try {
tests.setUpSuite();
} catch (Exception e1) {
e1.printStackTrace();
}
Enumeration entryPaths = Activ... |
diff --git a/juddiv3-war/src/main/java/org/apache/juddi/webconsole/hub/UddiAdminHub.java b/juddiv3-war/src/main/java/org/apache/juddi/webconsole/hub/UddiAdminHub.java
index 9c2ef1ecf..bf1f941b5 100644
--- a/juddiv3-war/src/main/java/org/apache/juddi/webconsole/hub/UddiAdminHub.java
+++ b/juddiv3-war/src/main/java/org/a... | true | true | private void EnsureConfig() {
if (clientConfig == null) {
try {
UDDIClient client = new UDDIClient();
clientConfig = client.getClientConfig();
try {
style = AuthStyle.valueOf(clientConfig.getConfiguration().getString(PROP_AUTH_T... | private void EnsureConfig() {
if (clientConfig == null) {
try {
UDDIClient client = new UDDIClient();
clientConfig = client.getClientConfig();
try {
style = AuthStyle.valueOf(clientConfig.getConfiguration().getString(PROP_AUTH_T... |
diff --git a/test/unit/org/apache/cassandra/hadoop/fs/CassandraFileSystemTest.java b/test/unit/org/apache/cassandra/hadoop/fs/CassandraFileSystemTest.java
index ea4125b..a503a75 100644
--- a/test/unit/org/apache/cassandra/hadoop/fs/CassandraFileSystemTest.java
+++ b/test/unit/org/apache/cassandra/hadoop/fs/CassandraFil... | false | true | private void testFileSystem(boolean flush) throws Exception
{
CassandraFileSystem fs = new CassandraFileSystem();
fs.initialize(URI.create("cassandra://localhost:"+DatabaseDescriptor.getRpcPort()+"/"), new Configuration());
fs.mkdirs(new Path("/mytestdir"));
fs.mkdirs(new Path(... | private void testFileSystem(boolean flush) throws Exception
{
CassandraFileSystem fs = new CassandraFileSystem();
fs.initialize(URI.create("cassandra://localhost:"+DatabaseDescriptor.getRpcPort()+"/"), new Configuration());
fs.mkdirs(new Path("/mytestdir"));
fs.mkdirs(new Path(... |
diff --git a/MonTransit/src/org/montrealtransit/android/activity/FavListTab.java b/MonTransit/src/org/montrealtransit/android/activity/FavListTab.java
index 035593ae..fc9829c9 100644
--- a/MonTransit/src/org/montrealtransit/android/activity/FavListTab.java
+++ b/MonTransit/src/org/montrealtransit/android/activity/FavLi... | true | true | private void refreshBusStopsUI(List<DataStore.Fav> newBusStopFavList, List<BusStop> busStopsExtendedList) {
// MyLog.v(TAG, "refreshBusStopsUI(%s,%s)", Utils.getCollectionSize(newBusStopFavList), Utils.getCollectionSize(busStopsExtendedList));
if (this.currentBusStopFavList == null || this.currentBusStopFavList.si... | private void refreshBusStopsUI(List<DataStore.Fav> newBusStopFavList, List<BusStop> busStopsExtendedList) {
// MyLog.v(TAG, "refreshBusStopsUI(%s,%s)", Utils.getCollectionSize(newBusStopFavList), Utils.getCollectionSize(busStopsExtendedList));
if (this.currentBusStopFavList == null || this.currentBusStopFavList.si... |
diff --git a/src/mods/themike/modjam/items/ItemStaff.java b/src/mods/themike/modjam/items/ItemStaff.java
index 56c1301..f01d973 100644
--- a/src/mods/themike/modjam/items/ItemStaff.java
+++ b/src/mods/themike/modjam/items/ItemStaff.java
@@ -1,129 +1,129 @@
package mods.themike.modjam.items;
import java.util.List;
... | false | true | public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
super.onItemRightClick(stack, world, player);
ItemStack newStack = stack.copy();
if(!world.isRemote && !player.isSneaking() && stack.getTagCompound() != null) {
ItemStack runeStack = ItemStack.loadItemStackFromNBT((NBTTa... | public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) {
super.onItemRightClick(stack, world, player);
ItemStack newStack = stack.copy();
if(!world.isRemote && !player.isSneaking() && stack.getTagCompound().getTag("item") != null) {
ItemStack runeStack = ItemStack.loadItemStac... |
diff --git a/plugins/org.chromium.sdk.tests/src/org/chromium/sdk/internal/protocol/TestProtocolParser.java b/plugins/org.chromium.sdk.tests/src/org/chromium/sdk/internal/protocol/TestProtocolParser.java
index 490f7864..4b741a24 100644
--- a/plugins/org.chromium.sdk.tests/src/org/chromium/sdk/internal/protocol/TestProto... | true | true | public void test1() throws JsonProtocolParseException, ParseException {
// JsonProtocolParser parser = new JsonProtocolParser(Arrays.asList(CommandResponse.class));
String sample = "{'seq':0,'request_seq':1,'type':'response','command':'version'," +
"'success':true,'body':{'V8Version':'1.3.19 (candidat... | public void test1() throws JsonProtocolParseException, ParseException {
// JsonProtocolParser parser = new JsonProtocolParser(Arrays.asList(CommandResponse.class));
String sample = ("{'seq':0,'request_seq':1,'type':'response','command':'version'," +
"'success':true,'body':{'V8Version':'1.3.19 (candida... |
diff --git a/Essentials/src/com/earth2me/essentials/Essentials.java b/Essentials/src/com/earth2me/essentials/Essentials.java
index 3c0a35bb..10cdbb51 100644
--- a/Essentials/src/com/earth2me/essentials/Essentials.java
+++ b/Essentials/src/com/earth2me/essentials/Essentials.java
@@ -1,675 +1,675 @@
/*
* Essentials - ... | true | true | public boolean onCommandEssentials(CommandSender sender, Command command, String commandLabel, String[] args, ClassLoader classLoader, String commandPath)
{
if ("msg".equals(commandLabel.toLowerCase()) || "r".equals(commandLabel.toLowerCase()) || "mail".equals(commandLabel.toLowerCase()) & sender instanceof CraftPl... | public boolean onCommandEssentials(CommandSender sender, Command command, String commandLabel, String[] args, ClassLoader classLoader, String commandPath)
{
if ("msg".equals(commandLabel.toLowerCase()) || "r".equals(commandLabel.toLowerCase()) || "mail".equals(commandLabel.toLowerCase()) & sender instanceof CraftPl... |
diff --git a/src/dvrlib/localsearch/GeneticLS.java b/src/dvrlib/localsearch/GeneticLS.java
index f93be89..fc0fc03 100644
--- a/src/dvrlib/localsearch/GeneticLS.java
+++ b/src/dvrlib/localsearch/GeneticLS.java
@@ -1,122 +1,124 @@
/*
* DvRLib - Local search
* Duncan van Roermund, 2010-2012
* GeneticLS.java
*/
... | false | true | public SearchState iterate(SearchState state, E bound, long n) {
long i = state.iterationCount();
for(long iMax = i + n; i < iMax && !state.problem.betterEq(state.solution(), bound); i++) {
// Generate new solution by combining two random solutions from the population
state.solution = c... | public SearchState iterate(SearchState state, E bound, long n) {
long i = state.iterationCount();
for(long iMax = i + n; i < iMax && !state.problem.betterEq(state.solution(), bound); i++) {
// Generate new solution by combining two random solutions from the population
state.solution = c... |
diff --git a/ui/simpleTogglePanel/src/main/java/org/richfaces/component/UISimpleTogglePanel.java b/ui/simpleTogglePanel/src/main/java/org/richfaces/component/UISimpleTogglePanel.java
index 1417904f..e6cf6da6 100644
--- a/ui/simpleTogglePanel/src/main/java/org/richfaces/component/UISimpleTogglePanel.java
+++ b/ui/simple... | true | true | protected void updateModel() {
Object value = getLocalValue();
if (value != null) {
ValueExpression ve = getValueExpression("value");
if (ve != null) {
FacesContext context = getFacesContext();
try {
ve.setValue(context.getELContext(), value);
se... | protected void updateModel() {
Object value = getLocalValue();
if (value != null) {
ValueExpression ve = getValueExpression("value");
FacesContext context = getFacesContext();
if (ve != null && !ve.isReadOnly(context.getELContext())) {
try {
ve.setValue(context... |
diff --git a/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/AppleUtils.java b/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/AppleUtils.java
index c6d114b4..0376a42f 100644
--- a/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/AppleUtils.java
+++ b/src/plugins/apple/src/com/jivesoftware/... | true | true | public AppleUtils() {
final Thread iconThread = new Thread(new Runnable() {
public void run() {
while (true) {
if (!flash) {
if (!usingDefaultIcon) {
// Set default icon
NSImage d... | public AppleUtils() {
final Thread iconThread = new Thread(new Runnable() {
public void run() {
while (true) {
if (!flash) {
if (!usingDefaultIcon) {
// Set default icon
NSImage d... |
diff --git a/btm/src/main/java/bitronix/tm/BitronixTransactionManager.java b/btm/src/main/java/bitronix/tm/BitronixTransactionManager.java
index 78ac865..6b10dd6 100644
--- a/btm/src/main/java/bitronix/tm/BitronixTransactionManager.java
+++ b/btm/src/main/java/bitronix/tm/BitronixTransactionManager.java
@@ -1,429 +1,43... | true | true | public BitronixTransactionManager() {
try {
shuttingDown = false;
logVersion();
Configuration configuration = TransactionManagerServices.getConfiguration();
configuration.buildServerIdArray(); // first call will initialize the ServerId
if (log.isD... | public BitronixTransactionManager() {
try {
shuttingDown = false;
logVersion();
Configuration configuration = TransactionManagerServices.getConfiguration();
configuration.buildServerIdArray(); // first call will initialize the ServerId
if (log.isD... |
diff --git a/src/test/java/fr/csvbang/test/writer/WriterTest.java b/src/test/java/fr/csvbang/test/writer/WriterTest.java
index 1a0d523..b18f9f7 100644
--- a/src/test/java/fr/csvbang/test/writer/WriterTest.java
+++ b/src/test/java/fr/csvbang/test/writer/WriterTest.java
@@ -1,84 +1,85 @@
package fr.csvbang.test.writer;
... | false | true | public void simple2Test() throws CsvBangException{
SimpleWriterTest<SimpleWriterBean> writer = getSimpleWriter();
SimpleDateFormat format = new SimpleDateFormat(SimpleWriterBean.DATE_PATTERN);
SimpleWriterBean bean = new SimpleWriterBean();
Calendar c = Calendar.getInstance();
bean.setBirthday(c);
bean.... | public void simple2Test() throws CsvBangException{
SimpleWriterTest<SimpleWriterBean> writer = getSimpleWriter();
SimpleDateFormat format = new SimpleDateFormat(SimpleWriterBean.DATE_PATTERN);
SimpleWriterBean bean = new SimpleWriterBean();
Calendar c = Calendar.getInstance();
bean.setBirthday(c);
bean.... |
diff --git a/src/brutes/Brutes.java b/src/brutes/Brutes.java
index 5e5d9cb..753247c 100644
--- a/src/brutes/Brutes.java
+++ b/src/brutes/Brutes.java
@@ -1,71 +1,71 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package brutes;
import brutes.db.DatasManager... | true | true | public void start(Stage stage) throws Exception {
// DEBUG
//(new File("bdd.db")).delete();
Connection instance = DatasManager.getInstance("sqlite", "bdd.db");
System.out.println(instance);
new Thread(){
@Override
public void... | public void start(Stage stage) throws Exception {
// DEBUG
//(new File("bdd.db")).delete();
Connection instance = DatasManager.getInstance("sqlite", "~$bdd.db");
System.out.println(instance);
new Thread(){
@Override
public vo... |
diff --git a/src/org/timadorus/webapp/client/register/RegisterPanel.java b/src/org/timadorus/webapp/client/register/RegisterPanel.java
index d365d18..42ce583 100644
--- a/src/org/timadorus/webapp/client/register/RegisterPanel.java
+++ b/src/org/timadorus/webapp/client/register/RegisterPanel.java
@@ -1,355 +1,356 @@
pa... | true | true | public RegisterPanel(TimadorusWebApp timadorusWebApp) {
super();
this.entry = timadorusWebApp;
setupHistory();
grid.setWidget(0, 0, new Label("Vorname"));
grid.setWidget(1, 0, new Label("Nachname"));
grid.setWidget(2, 0, new Label("Geburtstag (dd.mm.jjjj)"));
grid.setWidget(3, 0, new Labe... | public RegisterPanel(TimadorusWebApp timadorusWebApp) {
super();
this.entry = timadorusWebApp;
setupHistory();
grid.setWidget(0, 0, new Label("Vorname"));
grid.setWidget(1, 0, new Label("Nachname"));
grid.setWidget(2, 0, new Label("Geburtstag (dd.mm.jjjj)"));
grid.setWidget(3, 0, new Labe... |
diff --git a/RequirementsDiscussionAnalyzer/src/main/java/org/computer/knauss/reqtDiscussion/ui/ctrl/AbstractDiscussionIterationCommand.java b/RequirementsDiscussionAnalyzer/src/main/java/org/computer/knauss/reqtDiscussion/ui/ctrl/AbstractDiscussionIterationCommand.java
index e41ad47..063eaaa 100644
--- a/RequirementsD... | true | true | public Void doInBackground() {
preProcessingHook();
Discussion[] discussions = getDiscussionTableModel()
.getDiscussions();
// Deal with complex discussions
List<Discussion[]> aggregatedDiscussions;
if (getVisualizationConfiguration().isAggregateDiscussions())
aggregatedDiscussions = getHRD(... | public Void doInBackground() {
preProcessingHook();
Discussion[] discussions = getDiscussionTableModel()
.getDiscussions();
// Deal with complex discussions
List<Discussion[]> aggregatedDiscussions;
if (getVisualizationConfiguration().isAggregateDiscussions())
aggregatedDiscussions = getHRD(... |
diff --git a/library/src/com/cyrilmottier/polaris2/maps/model/Marker.java b/library/src/com/cyrilmottier/polaris2/maps/model/Marker.java
index 1b56164..cc0d250 100644
--- a/library/src/com/cyrilmottier/polaris2/maps/model/Marker.java
+++ b/library/src/com/cyrilmottier/polaris2/maps/model/Marker.java
@@ -1,117 +1,117 @@... | true | true | public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof Marker)) {
return false;
}
return !mOriginal.equals(((Marker) other).mOriginal);
}
| public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof Marker)) {
return false;
}
return mOriginal.equals(((Marker) other).mOriginal);
}
|
diff --git a/common/src/main/java/cz/incad/kramerius/virtualcollections/VirtualCollectionsManager.java b/common/src/main/java/cz/incad/kramerius/virtualcollections/VirtualCollectionsManager.java
index f56324ff5..6f1fd296f 100644
--- a/common/src/main/java/cz/incad/kramerius/virtualcollections/VirtualCollectionsManager.... | true | true | public static List<VirtualCollection> getVirtualCollections(FedoraAccess fedoraAccess, String[] langs) {
try {
IResourceIndex g = ResourceIndexService.getResourceIndexImpl();
Document doc = g.getFedoraObjectsFromModelExt("collection", 1000, 0, "", "");
NodeList nodes = d... | public static List<VirtualCollection> getVirtualCollections(FedoraAccess fedoraAccess, String[] langs) {
try {
IResourceIndex g = ResourceIndexService.getResourceIndexImpl();
Document doc = g.getFedoraObjectsFromModelExt("collection", 1000, 0, "title", "");
NodeList node... |
diff --git a/app/repo/Repository.java b/app/repo/Repository.java
index 61f325c..ecdbc93 100644
--- a/app/repo/Repository.java
+++ b/app/repo/Repository.java
@@ -1,101 +1,101 @@
package repo;
import java.util.*;
import models.*;
/**
* Class that contains many general functions for the system.
*/
public cl... | true | true | public static List<Exam> searchByDate(Date first, Date last){
//Check for null
if( first == null || last == null){
return new ArrayList<Exam>(0);
}
List<Exam> exams = Exam.findAll();
List<Exam> toRet = new ArrayList<Exam>(exams.size());
//Manually compare them all
for(Exam cur: exams){
if( (c... | public static List<Exam> searchByDate(Date first, Date last){
//Check for null
if( first == null || last == null){
return new ArrayList<Exam>(0);
}
List<Exam> exams = Exam.findAll();
List<Exam> toRet = new ArrayList<Exam>(exams.size());
//Manually compare them all
for(Exam cur: exams){
if( cu... |
diff --git a/edu/wisc/ssec/mcidasv/data/hydra/Statistics.java b/edu/wisc/ssec/mcidasv/data/hydra/Statistics.java
index 3179aabfc..7ab306b47 100644
--- a/edu/wisc/ssec/mcidasv/data/hydra/Statistics.java
+++ b/edu/wisc/ssec/mcidasv/data/hydra/Statistics.java
@@ -1,209 +1,209 @@
package edu.wisc.ssec.mcidasv.data.hydra;
... | true | true | public Statistics(FlatField fltFld) throws VisADException, RemoteException {
double[][] rngVals = fltFld.getValues(false);
values_x = rngVals;
rngTupLen = rngVals.length;
numPoints = fltFld.getDomainSet().getLength();
numGoodPoints = new int[rngTupLen];
for (int k=0; k<rngTupLen;... | public Statistics(FlatField fltFld) throws VisADException, RemoteException {
double[][] rngVals = fltFld.getValues(false);
values_x = rngVals;
rngTupLen = rngVals.length;
numPoints = fltFld.getDomainSet().getLength();
numGoodPoints = new int[rngTupLen];
for (int k=0; k<rngTupLen;... |
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaThreadActionFilter.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaThreadActionFilter.java
index b3dcaa007..8bcd5424b 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JavaThreadActionFilter.... | true | true | public boolean testAttribute(Object target, String name, String value) {
if (target instanceof IJavaThread) {
if (name.equals("TerminateEvaluationActionFilter") //$NON-NLS-1$
&& value.equals("supportsTerminateEvaluation")) { //$NON-NLS-1$
IJavaThread thread = (IJavaThread) target;
return thread.isPerf... | public boolean testAttribute(Object target, String name, String value) {
if (target instanceof IJavaThread) {
if (name.equals("TerminateEvaluationActionFilter") //$NON-NLS-1$
&& value.equals("supportsTerminateEvaluation")) { //$NON-NLS-1$
IJavaThread thread = (IJavaThread) target;
return thread.isPerf... |
diff --git a/android/PasswordGenerator/src/info/ilyaraz/passwordgenerator/ClueEditor.java b/android/PasswordGenerator/src/info/ilyaraz/passwordgenerator/ClueEditor.java
index 4f32582..494f506 100644
--- a/android/PasswordGenerator/src/info/ilyaraz/passwordgenerator/ClueEditor.java
+++ b/android/PasswordGenerator/src/in... | true | true | public static void editClue(String clueId, final Activity context, final Callback1<ClueData> onSuccess, final Closure onFailure) {
final SharedPreferences settings = context.getSharedPreferences(Constants.STORAGE_NAMESPACE, 0);
LayoutInflater inflater = context.getLayoutInflater();
View dialogLayout = i... | public static void editClue(String clueId, final Activity context, final Callback1<ClueData> onSuccess, final Closure onFailure) {
final SharedPreferences settings = context.getSharedPreferences(Constants.STORAGE_NAMESPACE, 0);
LayoutInflater inflater = context.getLayoutInflater();
View dialogLayout = i... |
diff --git a/webmacro/src/org/webmacro/engine/ListBuilder.java b/webmacro/src/org/webmacro/engine/ListBuilder.java
index 3f9db360..a81964df 100755
--- a/webmacro/src/org/webmacro/engine/ListBuilder.java
+++ b/webmacro/src/org/webmacro/engine/ListBuilder.java
@@ -1,113 +1,113 @@
/*
* Copyright (C) 1998-2000 Semiotek ... | true | true | public String toString() {
StringBuffer sb = new StringBuffer();
sb.append("(");
for (int i = 0; i < _content.length; i++) {
if (i != 0) {
sb.append(", ");
}
sb.append(_content[i].toString());
}
sb.append(")");
return sb.toString();
}
| public String toString() {
StringBuffer sb = new StringBuffer();
sb.append("(");
for (int i = 0; i < _content.length; i++) {
if (i != 0) {
sb.append(", ");
}
sb.append(_content[i] == null ? "null" : _content[i].toString());
}
sb.append(")");
... |
diff --git a/src/test/pleocmd/pipe/PipeTest.java b/src/test/pleocmd/pipe/PipeTest.java
index de93aaf..94844fe 100644
--- a/src/test/pleocmd/pipe/PipeTest.java
+++ b/src/test/pleocmd/pipe/PipeTest.java
@@ -1,254 +1,254 @@
package test.pleocmd.pipe;
import static org.junit.Assert.assertEquals;
import static org.juni... | true | true | public final void testPipeAllData() throws Exception {
PipeFeedback fb;
final Pipe p = new Pipe(new Configuration());
Log.consoleOut("Test empty pipe");
p.reset();
fb = testSimplePipe(null, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0);
Log.consoleOut("Test simple pipe");
fb = testSimplePipe("SC|SLEEP|100\nSC|ECHO|E... | public final void testPipeAllData() throws Exception {
PipeFeedback fb;
final Pipe p = new Pipe(new Configuration());
Log.consoleOut("Test empty pipe");
p.reset();
fb = testSimplePipe(null, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0);
Log.consoleOut("Test simple pipe");
fb = testSimplePipe("SC|SLEEP|100\nSC|ECHO|E... |
diff --git a/src/com/morphoss/acal/database/cachemanager/requests/CRObjectsInMonthByDay.java b/src/com/morphoss/acal/database/cachemanager/requests/CRObjectsInMonthByDay.java
index 1d14236..df1a82f 100644
--- a/src/com/morphoss/acal/database/cachemanager/requests/CRObjectsInMonthByDay.java
+++ b/src/com/morphoss/acal/d... | true | true | public void process(CacheTableManager processor) throws CacheProcessingException {
pstart = System.currentTimeMillis();
final HashMap<Short,ArrayList<CacheObject>> result = new HashMap<Short,ArrayList<CacheObject>>();
AcalDateTime start = new AcalDateTime( year, month, 1, 0, 0, 0, TimeZone.getDefault().getID());... | public void process(CacheTableManager processor) throws CacheProcessingException {
pstart = System.currentTimeMillis();
final HashMap<Short,ArrayList<CacheObject>> result = new HashMap<Short,ArrayList<CacheObject>>();
AcalDateTime start = new AcalDateTime( year, month, 1, 0, 0, 0, TimeZone.getDefault().getID());... |
diff --git a/src/com/ronx/coupon/server/Starter.java b/src/com/ronx/coupon/server/Starter.java
index 54a0844..3691c07 100644
--- a/src/com/ronx/coupon/server/Starter.java
+++ b/src/com/ronx/coupon/server/Starter.java
@@ -1,50 +1,52 @@
package com.ronx.coupon.server;
import com.ronx.coupon.entity.CouponSite;
import... | true | true | public static void main(String[] args) {
CouponSite pokupon = null;
try {
pokupon = new CouponSite(new PropertiesConfiguration("properties/pokupon.properties"));
} catch (ConfigurationException e) {
e.printStackTrace();
}
int numConnections = 1000;
... | public static void main(String[] args) {
CouponSite pokupon = null;
try {
pokupon = new CouponSite(new PropertiesConfiguration("properties/pokupon.properties"));
} catch (ConfigurationException e) {
e.printStackTrace();
}
int numConnections = 1000;
... |
diff --git a/org.eclipse.gemini.jpa/src/org/eclipse/gemini/jpa/PersistenceBundleExtender.java b/org.eclipse.gemini.jpa/src/org/eclipse/gemini/jpa/PersistenceBundleExtender.java
index 10fbb96..7aaa6c9 100644
--- a/org.eclipse.gemini.jpa/src/org/eclipse/gemini/jpa/PersistenceBundleExtender.java
+++ b/org.eclipse.gemini.j... | true | true | public void bundleChanged(BundleEvent event) {
// Only continue if it is a persistence unit bundle
Bundle b = event.getBundle();
debug("Extender - bundle event, ", event);
if (!isPersistenceUnitBundle(b)) return;
// Process each event
int eventType = event.getType()... | public void bundleChanged(BundleEvent event) {
// Only continue if it is a persistence unit bundle
Bundle b = event.getBundle();
debug("Extender - bundle event, ", event);
if (!isPersistenceUnitBundle(b)) return;
// Process each event
int eventType = event.getType()... |
diff --git a/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1479Test.java b/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1479Test.java
index a631694b6..5498b4fed 100644
--- a/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jbos... | true | true | public void testJBIDE1479() throws Throwable {
// wait
setException(null);
// get test page path
final IFile file = (IFile) TestUtil.getComponentPath(
TEST_PAGE_NAME, JsfAllTests.IMPORT_PROJECT_NAME);
assertNotNull("Could not open specified file " + TEST_PAGE_NAME, //$NON-NLS-1$
file);
IEdit... | public void testJBIDE1479() throws Throwable {
// wait
setException(null);
// get test page path
final IFile file = (IFile) TestUtil.getComponentPath(
TEST_PAGE_NAME, JsfAllTests.IMPORT_PROJECT_NAME);
assertNotNull("Could not open specified file " + TEST_PAGE_NAME, //$NON-NLS-1$
file);
IEdit... |
diff --git a/src/savant/util/swing/ProgressPanel.java b/src/savant/util/swing/ProgressPanel.java
index a38382cb..5898d170 100644
--- a/src/savant/util/swing/ProgressPanel.java
+++ b/src/savant/util/swing/ProgressPanel.java
@@ -1,83 +1,84 @@
/*
* Copyright 2010-2011 University of Toronto
*
* Licensed under ... | true | true | public ProgressPanel(ActionListener cancellationListener) {
super(new GridBagLayout());
setOpaque(false);
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(12, 0, 3, 0);
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.weightx = 1.0;
gbc.... | public ProgressPanel(ActionListener cancellationListener) {
super(new GridBagLayout());
setOpaque(false);
GridBagConstraints gbc = new GridBagConstraints();
gbc.insets = new Insets(12, 0, 3, 0);
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.weightx = 1.0;
gbc.... |
diff --git a/MCS_TicTacToe/src/UI/GameBoardDisplay.java b/MCS_TicTacToe/src/UI/GameBoardDisplay.java
index f0870f2..8e1769f 100644
--- a/MCS_TicTacToe/src/UI/GameBoardDisplay.java
+++ b/MCS_TicTacToe/src/UI/GameBoardDisplay.java
@@ -1,395 +1,395 @@
//BEGIN FILE GameBoardDisplay.java
package UI;
import java.awt.*;
... | true | true | public GameBoardDisplay(String user1, String user2, String modeName)
{
// keep track of the initial usernames and game mode in case if we to restart the game
initialUser1 = user1;
initialUser2 = user2;
initialModeName = modeName;
boardModel = new GameboardImp();
setLayout(new... | public GameBoardDisplay(String user1, String user2, String modeName)
{
// keep track of the initial usernames and game mode in case if we to restart the game
initialUser1 = user1;
initialUser2 = user2;
initialModeName = modeName;
boardModel = new GameboardImp();
setLayout(new... |
diff --git a/src/com/redhat/qe/sm/cli/tests/RegisterTests.java b/src/com/redhat/qe/sm/cli/tests/RegisterTests.java
index 9875064e..2a478d5e 100644
--- a/src/com/redhat/qe/sm/cli/tests/RegisterTests.java
+++ b/src/com/redhat/qe/sm/cli/tests/RegisterTests.java
@@ -1,1080 +1,1080 @@
package com.redhat.qe.sm.cli.tests;
... | true | true | protected List<List<Object>> getInvalidRegistrationWithLocalizedStringsAsListOfLists(){
List<List<Object>> ll = new ArrayList<List<Object>>(); if (!isSetupBeforeSuiteComplete) return ll;
if (servertasks==null) return ll;
if (clienttasks==null) return ll;
String uErrMsg = servertasks.invalidCredentialsRegexM... | protected List<List<Object>> getInvalidRegistrationWithLocalizedStringsAsListOfLists(){
List<List<Object>> ll = new ArrayList<List<Object>>(); if (!isSetupBeforeSuiteComplete) return ll;
if (servertasks==null) return ll;
if (clienttasks==null) return ll;
String uErrMsg = servertasks.invalidCredentialsRegexM... |
diff --git a/funwithmusic/src/com/smp/funwithmusic/activities/FlowActivity.java b/funwithmusic/src/com/smp/funwithmusic/activities/FlowActivity.java
index 39289f5..16ee27a 100644
--- a/funwithmusic/src/com/smp/funwithmusic/activities/FlowActivity.java
+++ b/funwithmusic/src/com/smp/funwithmusic/activities/FlowActivity.... | true | true | protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_flow);
queue = Volley.newRequestQueue(this);
cardsAdapter = new SongCardAdapter<SongCard>(getApplicationContext(), queue, TAG_VOLLEY);
cardsAdapter.setAccentColorRes(android.R.color.holo... | protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_flow);
queue = Volley.newRequestQueue(this);
cardsAdapter = new SongCardAdapter<SongCard>(this, queue, TAG_VOLLEY);
cardsAdapter.setAccentColorRes(android.R.color.holo_blue_dark);
card... |
diff --git a/org.eclipse.emf.ecore.xcore/src/org/eclipse/emf/ecore/xcore/scoping/XcoreResourceDescriptionStrategy.java b/org.eclipse.emf.ecore.xcore/src/org/eclipse/emf/ecore/xcore/scoping/XcoreResourceDescriptionStrategy.java
index 9d45692..d5034ff 100644
--- a/org.eclipse.emf.ecore.xcore/src/org/eclipse/emf/ecore/xco... | true | true | public boolean createEObjectDescriptions(EObject eObject, IAcceptor<IEObjectDescription> acceptor) {
if (eObject instanceof XPackage) {
QualifiedName qn = nameProvider.getFullyQualifiedName(eObject);
qn = QualifiedName.create(qn.toString());
URI uri = eObject.eResource().getURI();
createEPackageDescripti... | public boolean createEObjectDescriptions(EObject eObject, IAcceptor<IEObjectDescription> acceptor) {
if (eObject instanceof XPackage) {
QualifiedName qn = nameProvider.getFullyQualifiedName(eObject);
if (qn != null)
{
URI uri = eObject.eResource().getURI();
createEPackageDescription(uri, acc... |
diff --git a/jipdbs-admin/src/main/java/jipdbs/admin/commands/UpdateAliasIp.java b/jipdbs-admin/src/main/java/jipdbs/admin/commands/UpdateAliasIp.java
index 9b323d9..69b3f4f 100644
--- a/jipdbs-admin/src/main/java/jipdbs/admin/commands/UpdateAliasIp.java
+++ b/jipdbs-admin/src/main/java/jipdbs/admin/commands/UpdateAlia... | true | true | protected void execute(String[] args) throws Exception {
final long maxEntities = 10000000000L;
final AliasDAO aliasDAO = new AliasDAOImpl();
DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
Query playerQuery = new Query("Player");
//playerQuery.addFilter("nickname", FilterOperator.EQU... | protected void execute(String[] args) throws Exception {
final long maxEntities = 10000000000L;
final AliasDAO aliasDAO = new AliasDAOImpl();
DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
Query playerQuery = new Query("Player");
//playerQuery.addFilter("nickname", FilterOperator.EQU... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.