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/Client/src/main/java/org/csgames/ai/client/AI.java b/Client/src/main/java/org/csgames/ai/client/AI.java
index 178c80d..ec342a7 100644
--- a/Client/src/main/java/org/csgames/ai/client/AI.java
+++ b/Client/src/main/java/org/csgames/ai/client/AI.java
@@ -1,333 +1,333 @@
package org.csgames.ai.client;
impo... | true | true | public double getScore() {
double score = 0.0;
Util.Point2D me = mUtil.getMyLocation();
int x = me.x;
int y = me.y;
// Update location
switch (mType) {
case Down:
y += 1;
break;
case Left:
x -= 1;
break;
case Right:
x += 1;
break;
case Up:
y -= 1;
brea... | public double getScore() {
double score = 0.0;
Util.Point2D me = mUtil.getMyLocation();
int x = me.x;
int y = me.y;
// Update location
switch (mType) {
case Down:
y += 1;
break;
case Left:
x -= 1;
break;
case Right:
x += 1;
break;
case Up:
y -= 1;
brea... |
diff --git a/src/com/android/gallery3d/ui/AbstractSlotRenderer.java b/src/com/android/gallery3d/ui/AbstractSlotRenderer.java
index 0b880b1..fecb70f 100644
--- a/src/com/android/gallery3d/ui/AbstractSlotRenderer.java
+++ b/src/com/android/gallery3d/ui/AbstractSlotRenderer.java
@@ -1,100 +1,102 @@
/*
* Copyright (C) 2... | false | true | protected void drawContent(GLCanvas canvas,
Texture content, int width, int height, int rotation) {
canvas.save(GLCanvas.SAVE_FLAG_MATRIX);
if (rotation != 0) {
canvas.rotate(rotation, 0, 0, 1);
if (((rotation % 90) & 1) != 0) {
int temp = height;... | protected void drawContent(GLCanvas canvas,
Texture content, int width, int height, int rotation) {
canvas.save(GLCanvas.SAVE_FLAG_MATRIX);
if (rotation != 0) {
canvas.translate(width / 2, height / 2);
canvas.rotate(rotation, 0, 0, 1);
canvas.translat... |
diff --git a/pcpl.core/src/pcpl/core/handlers/SampleHandler.java b/pcpl.core/src/pcpl/core/handlers/SampleHandler.java
index 3b2d049..b0fb178 100644
--- a/pcpl.core/src/pcpl/core/handlers/SampleHandler.java
+++ b/pcpl.core/src/pcpl/core/handlers/SampleHandler.java
@@ -1,68 +1,68 @@
package pcpl.core.handlers;
impor... | true | true | public Object execute(ExecutionEvent event) throws ExecutionException {
/*IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
MessageDialog.openInformation(
window.getShell(),
"Core",
"Hello, Eclipse world");*/
if(EventCenter.getInstance().getModeType() == 1){ //normal mode... | public Object execute(ExecutionEvent event) throws ExecutionException {
/*IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
MessageDialog.openInformation(
window.getShell(),
"Core",
"Hello, Eclipse world");*/
if(EventCenter.getInstance().getModeType() == 1){ //normal mode... |
diff --git a/server/src/test/java/org/cognitor/server/openid/web/security/OpenIdAuthenticationSuccessHandlerTest.java b/server/src/test/java/org/cognitor/server/openid/web/security/OpenIdAuthenticationSuccessHandlerTest.java
index b12ad39..37e9450 100644
--- a/server/src/test/java/org/cognitor/server/openid/web/securit... | true | true | public void shouldSendRedirectWhenSuccessfulLoginGiven() throws IOException, ServletException {
OpenIdAuthenticationSuccessHandler handler = new OpenIdAuthenticationSuccessHandler(openIdManagerMock);
when(openIdManagerMock.isOpenIdRequest(requestMock)).thenReturn(true);
when(authenticationMo... | public void shouldSendRedirectWhenSuccessfulLoginGiven() throws IOException, ServletException {
OpenIdAuthenticationSuccessHandler handler = new OpenIdAuthenticationSuccessHandler(openIdManagerMock);
when(openIdManagerMock.isOpenIdRequest(requestMock)).thenReturn(true);
when(authenticationMo... |
diff --git a/src/main/java/de/thatsich/bachelor/featureextraction/restricted/controller/FeatureDisplayPresenter.java b/src/main/java/de/thatsich/bachelor/featureextraction/restricted/controller/FeatureDisplayPresenter.java
index e0f72a1..0861f31 100644
--- a/src/main/java/de/thatsich/bachelor/featureextraction/restrict... | false | true | private void initLabels() {
this.nodeLabelFeatureVector.setTooltip(new Tooltip());
this.log.info("Initialized Tooltip of LabelFeatureVector.");
this.featureVectors.getSelectedFeatureVectorSetProperty().addListener(new ChangeListener<FeatureVectorSet>() {
@Override public void changed(ObservableValue<? exte... | private void initLabels() {
this.nodeLabelFeatureVector.setTooltip(new Tooltip());
this.log.info("Initialized Tooltip of LabelFeatureVector.");
this.featureVectors.getSelectedFeatureVectorSetProperty().addListener(new ChangeListener<FeatureVectorSet>() {
@Override public void changed(ObservableValue<? exte... |
diff --git a/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/DisconnectJob.java b/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/DisconnectJob.java
index 09e1ec52f..7dfcb54fe 100644
--- a/jmx/plugins/org.jboss.tools.jmx.core/src/org/jboss/tools/jmx/core/DisconnectJob.java
+++ b/jmx/... | true | true | protected IStatus run(IProgressMonitor monitor) {
try {
for( int i = 0; i < connection.length; i++ )
connection[i].disconnect();
return Status.OK_STATUS;
} catch( IOException ioe ) {
return new Status(IStatus.ERROR, JMXActivator.PLUGIN_ID, JMXCoreMessages.DisconnectJobFailed, ioe);
}
}
| protected IStatus run(IProgressMonitor monitor) {
try {
for( int i = 0; i < connection.length; i++ )
if( connection[i].isConnected() )
connection[i].disconnect();
return Status.OK_STATUS;
} catch( IOException ioe ) {
return new Status(IStatus.ERROR, JMXActivator.PLUGIN_ID, JMXCoreMessages.Disconn... |
diff --git a/src/java/com/eviware/soapui/impl/wsdl/submit/transports/jms/HermesJmsRequestPublishReceiveTransport.java b/src/java/com/eviware/soapui/impl/wsdl/submit/transports/jms/HermesJmsRequestPublishReceiveTransport.java
index 4b84d28aa..da63ba1bb 100644
--- a/src/java/com/eviware/soapui/impl/wsdl/submit/transports... | true | true | public Response execute( SubmitContext submitContext, Request request, long timeStarted ) throws Exception
{
Session topicSession = null;
Session queueSession = null;
JMSConnectionHolder jmsConnectionHolderTopic = null;
JMSConnectionHolder jmsConnectionHolderQueue = null;
try
{
init( submitContext, ... | public Response execute( SubmitContext submitContext, Request request, long timeStarted ) throws Exception
{
Session topicSession = null;
Session queueSession = null;
JMSConnectionHolder jmsConnectionHolderTopic = null;
JMSConnectionHolder jmsConnectionHolderQueue = null;
try
{
init( submitContext, ... |
diff --git a/LinkFuture/src/LinkFuture/Core/MemoryManager/MemoryHelper.java b/LinkFuture/src/LinkFuture/Core/MemoryManager/MemoryHelper.java
index 2aa2fef..6f65dd2 100644
--- a/LinkFuture/src/LinkFuture/Core/MemoryManager/MemoryHelper.java
+++ b/LinkFuture/src/LinkFuture/Core/MemoryManager/MemoryHelper.java
@@ -1,148 +... | false | true | private static void refreshMemory() {
long currentTime = new Date().getTime();
for (MemoryCacheInfo memory:cachedObject.values())
{
switch (memory.Meta.CacheType) {
case Absolute:
if(memory.NextExpiredTime.getTime() <= currentTime - 5 )
... | private static void refreshMemory() {
long currentTime = new Date().getTime();
for (MemoryCacheInfo memory:cachedObject.values())
{
switch (memory.Meta.CacheType) {
case Absolute:
if(memory.NextExpiredTime.getTime() <= currentTime)
... |
diff --git a/listey/src/com/blumenthal/listey/ListeyDataOneUser.java b/listey/src/com/blumenthal/listey/ListeyDataOneUser.java
index 7f56f4e..f01e8d8 100644
--- a/listey/src/com/blumenthal/listey/ListeyDataOneUser.java
+++ b/listey/src/com/blumenthal/listey/ListeyDataOneUser.java
@@ -1,328 +1,328 @@
/**
* Holder for... | true | true | public static ListeyDataOneUser fromDatastore(DatastoreService datastore, String userEmail, String listUniqueId, ListeyDataOneUser oneUser) {
if (oneUser == null) {
oneUser = new ListeyDataOneUser();
oneUser.userEmail = userEmail;
}
//Find all entities for the user, or the user's list if listUniqueId is p... | public static ListeyDataOneUser fromDatastore(DatastoreService datastore, String userEmail, String listUniqueId, ListeyDataOneUser oneUser) {
if (oneUser == null) {
oneUser = new ListeyDataOneUser();
oneUser.userEmail = userEmail;
}
//Find all entities for the user, or the user's list if listUniqueId is p... |
diff --git a/ui/layout/src/main/java/org/richfaces/renderkit/html/LayoutRenderer.java b/ui/layout/src/main/java/org/richfaces/renderkit/html/LayoutRenderer.java
index 1a751a12..213141a2 100644
--- a/ui/layout/src/main/java/org/richfaces/renderkit/html/LayoutRenderer.java
+++ b/ui/layout/src/main/java/org/richfaces/rend... | true | true | public void renderLayout(ResponseWriter writer,FacesContext context, UILayout layout)
throws IOException {
LayoutStructure structure = new LayoutStructure(layout);
structure.calculateWidth();
Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
Object oldLayout = requestMap.get(LAY... | public void renderLayout(ResponseWriter writer,FacesContext context, UILayout layout)
throws IOException {
LayoutStructure structure = new LayoutStructure(layout);
structure.calculateWidth();
Map<String, Object> requestMap = context.getExternalContext().getRequestMap();
Object oldLayout = requestMap.get(LAY... |
diff --git a/src/com/android/mms/ui/UriImage.java b/src/com/android/mms/ui/UriImage.java
index c74764b5..da3e8f13 100644
--- a/src/com/android/mms/ui/UriImage.java
+++ b/src/com/android/mms/ui/UriImage.java
@@ -1,405 +1,434 @@
/*
* Copyright (C) 2008 Esmertec AG.
* Copyright (C) 2008 The Android Open Source Projec... | false | true | public static byte[] getResizedImageData(int width, int height,
int widthLimit, int heightLimit, int byteLimit, Uri uri, Context context) {
int outWidth = width;
int outHeight = height;
float scaleFactor = 1.F;
while ((outWidth * scaleFactor > widthLimit) || (outHeight *... | public static byte[] getResizedImageData(int width, int height,
int widthLimit, int heightLimit, int byteLimit, Uri uri, Context context) {
int outWidth = width;
int outHeight = height;
float scaleFactor = 1.F;
while ((outWidth * scaleFactor > widthLimit) || (outHeight *... |
diff --git a/app-impl/src/main/java/org/cytoscape/app/internal/ui/InstallAppsPanel.java b/app-impl/src/main/java/org/cytoscape/app/internal/ui/InstallAppsPanel.java
index 99f3121a1..df020172a 100644
--- a/app-impl/src/main/java/org/cytoscape/app/internal/ui/InstallAppsPanel.java
+++ b/app-impl/src/main/java/org/cytosca... | false | true | private void initComponents() {
searchAppsLabel = new javax.swing.JLabel();
installFromFileButton = new javax.swing.JButton();
filterTextField = new javax.swing.JTextField();
descriptionSplitPane = new javax.swing.JSplitPane();
tagsSplitPane = new javax.swing.JSplitPane();
... | private void initComponents() {
searchAppsLabel = new javax.swing.JLabel();
installFromFileButton = new javax.swing.JButton();
filterTextField = new javax.swing.JTextField();
descriptionSplitPane = new javax.swing.JSplitPane();
tagsSplitPane = new javax.swing.JSplitPane();
... |
diff --git a/tests/org.bonitasoft.studio.diagram.test/src/org/bonitasoft/studio/diagram/test/DiagramTests.java b/tests/org.bonitasoft.studio.diagram.test/src/org/bonitasoft/studio/diagram/test/DiagramTests.java
index 8fbbbaa943..263c53f91c 100644
--- a/tests/org.bonitasoft.studio.diagram.test/src/org/bonitasoft/studio/... | true | true | public void test4TasksDiagram() throws Exception {
// create a new process
SWTBotTestUtil.createNewDiagram(bot);
//Create 3 variables
SWTBotEditor botEditor = bot.activeEditor();
SWTBotGefEditor gmfEditor = bot.gefEditor(botEditor.getTitle());
gmfEditor.click(200, 200);
bot.viewById(SWTBotTestUtil... | public void test4TasksDiagram() throws Exception {
// create a new process
SWTBotTestUtil.createNewDiagram(bot);
//Create 3 variables
SWTBotEditor botEditor = bot.activeEditor();
SWTBotGefEditor gmfEditor = bot.gefEditor(botEditor.getTitle());
gmfEditor.click(200, 200);
bot.viewById(SWTBotTestUtil... |
diff --git a/src/main/java/be/Balor/bukkit/AdminCmd/ConfigEnum.java b/src/main/java/be/Balor/bukkit/AdminCmd/ConfigEnum.java
index b8b2e4fe..be69f29e 100644
--- a/src/main/java/be/Balor/bukkit/AdminCmd/ConfigEnum.java
+++ b/src/main/java/be/Balor/bukkit/AdminCmd/ConfigEnum.java
@@ -1,570 +1,571 @@
/*******************... | true | true | private static void updateConfig() {
if (ConfigEnum.getConfig().contains("logAllCmd")) {
ConfigEnum.LOG_CMD
.setValue(ConfigEnum.getConfig().get("logAllCmd"));
ConfigEnum.getConfig().remove("logAllCmd");
}
if (ConfigEnum.getConfig().contains("logPrivateMessages")) {
ConfigEnum.LOG_PM.setValue(Conf... | private static void updateConfig() {
if (ConfigEnum.getConfig().contains("logAllCmd")) {
ConfigEnum.LOG_CMD
.setValue(ConfigEnum.getConfig().get("logAllCmd"));
ConfigEnum.getConfig().remove("logAllCmd");
}
if (ConfigEnum.getConfig().contains("logPrivateMessages")) {
ConfigEnum.LOG_PM.setValue(Conf... |
diff --git a/runtime/src/com/sun/xml/bind/DatatypeConverterImpl.java b/runtime/src/com/sun/xml/bind/DatatypeConverterImpl.java
index 9b33c6ca..1d618ed6 100644
--- a/runtime/src/com/sun/xml/bind/DatatypeConverterImpl.java
+++ b/runtime/src/com/sun/xml/bind/DatatypeConverterImpl.java
@@ -1,891 +1,891 @@
/*
* DO NOT AL... | true | true | public static Boolean _parseBoolean(CharSequence literal) {
if (literal == null) {
return null;
}
int i = 0;
int len = literal.length();
char ch;
boolean value = false;
if (literal.length() <= 0) {
return null;
}
do {... | public static Boolean _parseBoolean(CharSequence literal) {
if (literal == null) {
return null;
}
int i = 0;
int len = literal.length();
char ch;
boolean value = false;
if (literal.length() <= 0) {
return null;
}
do {... |
diff --git a/src/jmt/engine/jwat/workloadAnalysis/utils/WorkloadResultLoader.java b/src/jmt/engine/jwat/workloadAnalysis/utils/WorkloadResultLoader.java
index d03f595..da0aa90 100644
--- a/src/jmt/engine/jwat/workloadAnalysis/utils/WorkloadResultLoader.java
+++ b/src/jmt/engine/jwat/workloadAnalysis/utils/WorkloadResul... | false | true | public int loadResult(ZipFile zf,NodeList resultNodeList,JwatSession session) throws IOException {
int i,nclustLoaded=0,numSave;
Node tmpNode;
Clustering tmpClust=null;
String name,algo,numCluster,varSel;
int varSelLst[];
waSession=(WorkloadAnalysisSession)session;
ArrayList resultList=new ArrayList()... | public int loadResult(ZipFile zf,NodeList resultNodeList,JwatSession session) throws IOException {
int i,nclustLoaded=0,numSave;
Node tmpNode;
Clustering tmpClust=null;
String name,algo,numCluster,varSel;
int varSelLst[];
waSession=(WorkloadAnalysisSession)session;
ArrayList resultList=new ArrayList()... |
diff --git a/src/com/android/browser/FetchUrlMimeType.java b/src/com/android/browser/FetchUrlMimeType.java
index 33b58086..6556b380 100644
--- a/src/com/android/browser/FetchUrlMimeType.java
+++ b/src/com/android/browser/FetchUrlMimeType.java
@@ -1,139 +1,143 @@
/*
* Copyright (C) 2008 The Android Open Source Projec... | false | true | public void run() {
// User agent is likely to be null, though the AndroidHttpClient
// seems ok with that.
AndroidHttpClient client = AndroidHttpClient.newInstance(mUserAgent);
HttpHost httpHost;
try {
httpHost = Proxy.getPreferredHttpHost(mContext, mUri);
... | public void run() {
// User agent is likely to be null, though the AndroidHttpClient
// seems ok with that.
AndroidHttpClient client = AndroidHttpClient.newInstance(mUserAgent);
HttpHost httpHost;
try {
httpHost = Proxy.getPreferredHttpHost(mContext, mUri);
... |
diff --git a/src/com/tritowntim/ga/TextFileSearch.java b/src/com/tritowntim/ga/TextFileSearch.java
index f0fe92e..908fb13 100644
--- a/src/com/tritowntim/ga/TextFileSearch.java
+++ b/src/com/tritowntim/ga/TextFileSearch.java
@@ -1,33 +1,33 @@
package com.tritowntim.ga;
import java.io.IOException;
import java.math.... | true | true | public static void main(String[] args) throws IOException {
InputValidator inputValidator = new InputValidator();
inputValidator.validateInput(args);
FileReader fileReader = new FileReader();
String fileContents = fileReader.readFile(args[0]);
WordSearcher w... | public static void main(String[] args) throws IOException {
InputValidator inputValidator = new InputValidator();
inputValidator.validateInput(args);
FileReader fileReader = new FileReader();
String fileContents = fileReader.readFile(args[0]);
WordSearcher w... |
diff --git a/src/main/java/de/doridian/multibukkit/api/PlayerAPI.java b/src/main/java/de/doridian/multibukkit/api/PlayerAPI.java
index bbb2708..91f3d55 100644
--- a/src/main/java/de/doridian/multibukkit/api/PlayerAPI.java
+++ b/src/main/java/de/doridian/multibukkit/api/PlayerAPI.java
@@ -1,173 +1,173 @@
package de.dor... | false | true | public void loadConfig() {
File permsFile = new File(plugin.getDataFolder(), "permissions.yml");
if(!permsFile.exists()) {
try {
PrintStream stream = new PrintStream(new FileOutputStream(permsFile));
stream.println("permissions:");
stream.println(" 1:");
stream.println(" permissions.bu... | public void loadConfig() {
File permsFile = new File(plugin.getDataFolder(), "permissions.yml");
if(!permsFile.exists()) {
try {
PrintStream stream = new PrintStream(new FileOutputStream(permsFile));
stream.println("permissions:");
stream.println(" '1':");
stream.println(" permissions.... |
diff --git a/DVST/src/com/dhbw/dvst/activities/SpielActivity.java b/DVST/src/com/dhbw/dvst/activities/SpielActivity.java
index 20d06be..81bb9f9 100644
--- a/DVST/src/com/dhbw/dvst/activities/SpielActivity.java
+++ b/DVST/src/com/dhbw/dvst/activities/SpielActivity.java
@@ -1,103 +1,106 @@
package com.dhbw.dvst.activiti... | false | true | protected void setBildAktivePlatte(){
final ImageView platte = (ImageView)findViewById(R.id.img_aktive_platte);
int resID = getResources().getIdentifier(spiel.getSpielbrett().getAktivePlatte().getMotivURL(), "drawable", "com.dhbw.dvst");
platte.setImageResource(resID);
platte.setRotation(spiel.getSpielbrett(... | protected void setBildAktivePlatte(){
final ImageView platte = (ImageView)findViewById(R.id.img_aktive_platte);
int resID = getResources().getIdentifier(spiel.getSpielbrett().getAktivePlatte().getMotivURL(), "drawable", "com.dhbw.dvst");
platte.setImageResource(resID);
platte.setRotation(spiel.getSpielbrett(... |
diff --git a/core/src/main/java/io/undertow/server/HttpReadListener.java b/core/src/main/java/io/undertow/server/HttpReadListener.java
index 514fc0ec5..541ee2b6a 100644
--- a/core/src/main/java/io/undertow/server/HttpReadListener.java
+++ b/core/src/main/java/io/undertow/server/HttpReadListener.java
@@ -1,201 +1,201 @@... | true | true | public void handleEvent(final StreamSourceChannel channel) {
Pooled<ByteBuffer> existing = connection.getExtraBytes();
final Pooled<ByteBuffer> pooled = existing == null ? connection.getBufferPool().allocate() : existing;
final ByteBuffer buffer = pooled.getResource();
boolean free... | public void handleEvent(final StreamSourceChannel channel) {
Pooled<ByteBuffer> existing = connection.getExtraBytes();
final Pooled<ByteBuffer> pooled = existing == null ? connection.getBufferPool().allocate() : existing;
final ByteBuffer buffer = pooled.getResource();
boolean free... |
diff --git a/toolsrc/org/mozilla/javascript/tools/shell/ShellLine.java b/toolsrc/org/mozilla/javascript/tools/shell/ShellLine.java
index 61d1de0a..3cabd52b 100755
--- a/toolsrc/org/mozilla/javascript/tools/shell/ShellLine.java
+++ b/toolsrc/org/mozilla/javascript/tools/shell/ShellLine.java
@@ -1,167 +1,168 @@
/* -*- M... | false | true | public int complete(String buffer, int cursor, List<String> candidates) {
// Starting from "cursor" at the end of the buffer, look backward
// and collect a list of identifiers separated by (possibly zero)
// dots. Then look up each identifier in turn until getting to the
// last, pr... | public int complete(String buffer, int cursor, List<String> candidates) {
// Starting from "cursor" at the end of the buffer, look backward
// and collect a list of identifiers separated by (possibly zero)
// dots. Then look up each identifier in turn until getting to the
// last, pr... |
diff --git a/src/test/BusTUC/Main/WidgetClick.java b/src/test/BusTUC/Main/WidgetClick.java
index 47ad524..1966476 100644
--- a/src/test/BusTUC/Main/WidgetClick.java
+++ b/src/test/BusTUC/Main/WidgetClick.java
@@ -1,632 +1,632 @@
package test.BusTUC.Main;
import java.io.BufferedWriter;
import java.io.File;
import ... | true | true | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.dialoglayout);
LayoutParams params = getWindow().getAttributes();
params.height = 300;
params.width = 260;
getWindow().setAttributes(
(android.view.WindowManager.LayoutParams) params);
prefe... | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.dialoglayout);
LayoutParams params = getWindow().getAttributes();
params.height = 300;
params.width = 260;
getWindow().setAttributes(
(android.view.WindowManager.LayoutParams) params);
prefe... |
diff --git a/PruebasGIT/betaGITpckg/BetaGIT.java b/PruebasGIT/betaGITpckg/BetaGIT.java
index 8b23721..aabe86d 100644
--- a/PruebasGIT/betaGITpckg/BetaGIT.java
+++ b/PruebasGIT/betaGITpckg/BetaGIT.java
@@ -1,14 +1,14 @@
package betaGITpckg;
public class BetaGIT {
/**
* @param args
*/
public static void m... | true | true | public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.print("Hola Mundo");
}
| public static void main(String[] args) {
// TODO Auto-generated method stub
System.outprint("Hola Mundo");
}
|
diff --git a/org.strategoxt.imp.runtime/src/org/strategoxt/imp/runtime/services/menus/MenuEnabledTester.java b/org.strategoxt.imp.runtime/src/org/strategoxt/imp/runtime/services/menus/MenuEnabledTester.java
index 4ae83354..885e8c22 100644
--- a/org.strategoxt.imp.runtime/src/org/strategoxt/imp/runtime/services/menus/Me... | true | true | public synchronized boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
menuIndex = (menuIndex + 1) % MenusServiceConstants.NO_OF_TOOLBAR_MENUS;
// Refresh toolbar menus after switching between two Spoofax editors.
if (menuIndex == MenusServiceConstants.NO_OF_TOOLBAR_MENUS - 1)... | public synchronized boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
menuIndex = (menuIndex + 1) % MenusServiceConstants.NO_OF_TOOLBAR_MENUS;
// Refresh toolbar menus after switching between two Spoofax editors.
if (menuIndex == MenusServiceConstants.NO_OF_TOOLBAR_MENUS - 1)... |
diff --git a/branches/sng/GeoBeagle/di/com/google/code/geobeagle/activity/cachelist/CacheListDelegateDI.java b/branches/sng/GeoBeagle/di/com/google/code/geobeagle/activity/cachelist/CacheListDelegateDI.java
index a88fa7b4..0475b4a9 100644
--- a/branches/sng/GeoBeagle/di/com/google/code/geobeagle/activity/cachelist/Cach... | true | true | public static CacheListDelegate create(ListActivity listActivity, LayoutInflater layoutInflater) {
final ErrorDisplayer errorDisplayer = new ErrorDisplayer(listActivity);
final LocationManager locationManager = (LocationManager)listActivity
.getSystemService(Context.LOCATION_SERVICE)... | public static CacheListDelegate create(ListActivity listActivity, LayoutInflater layoutInflater) {
final ErrorDisplayer errorDisplayer = new ErrorDisplayer(listActivity);
final LocationManager locationManager = (LocationManager)listActivity
.getSystemService(Context.LOCATION_SERVICE)... |
diff --git a/g6/BalancedStrategy.java b/g6/BalancedStrategy.java
index dc397b0..3de79d6 100644
--- a/g6/BalancedStrategy.java
+++ b/g6/BalancedStrategy.java
@@ -1,553 +1,558 @@
package isnork.g6;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
im... | false | true | public Direction nextMove() {
if (stayAtBoat && player.currentPosition.distance(boatLocation) == 0)
{
return Direction.STAYPUT;
}
if (CoordinateCalculator.getLoadSpiralDestinations())
{
addSpiralDataToDestinations();
}
LinkedList<Node> safePath = null;
while (safePath == null)
{
if (pl... | public Direction nextMove() {
if (stayAtBoat && player.currentPosition.distance(boatLocation) == 0)
{
return Direction.STAYPUT;
}
if (CoordinateCalculator.getLoadSpiralDestinations())
{
addSpiralDataToDestinations();
}
boolean loopAgain = true;
while (loopAgain)
{
if (player.possibleDe... |
diff --git a/core/src/main/java/org/kohsuke/stapler/AnnotationHandler.java b/core/src/main/java/org/kohsuke/stapler/AnnotationHandler.java
index 46e6f970a..ac76b77ea 100644
--- a/core/src/main/java/org/kohsuke/stapler/AnnotationHandler.java
+++ b/core/src/main/java/org/kohsuke/stapler/AnnotationHandler.java
@@ -1,108 +... | false | true | static Object handle(StaplerRequest request, Annotation[] annotations, String parameterName, Class targetType) throws ServletException {
for (Annotation a : annotations) {
Class<? extends Annotation> at = a.annotationType();
AnnotationHandler h = HANDLERS.get(at);
if(h==n... | static Object handle(StaplerRequest request, Annotation[] annotations, String parameterName, Class targetType) throws ServletException {
for (Annotation a : annotations) {
Class<? extends Annotation> at = a.annotationType();
AnnotationHandler h = HANDLERS.get(at);
if (h==... |
diff --git a/src/clojuredev/outline/NamespaceBrowser.java b/src/clojuredev/outline/NamespaceBrowser.java
index 3a35997f..f6c49c4d 100644
--- a/src/clojuredev/outline/NamespaceBrowser.java
+++ b/src/clojuredev/outline/NamespaceBrowser.java
@@ -1,529 +1,530 @@
package clojuredev.outline;
import java.util.Collection;
... | true | true | public void createPartControl(Composite theParent) {
control = new Composite(theParent, SWT.NONE);
GridLayout gl = new GridLayout();
gl.numColumns = 4;
control.setLayout(gl);
Label l = new Label(control, SWT.NONE);
l.setText("Find :");
l.setToolTipText("Enter an expression on which the browser will fil... | public void createPartControl(Composite theParent) {
control = new Composite(theParent, SWT.NONE);
GridLayout gl = new GridLayout();
gl.numColumns = 4;
control.setLayout(gl);
Label l = new Label(control, SWT.NONE);
l.setText("Find :");
l.setToolTipText("Enter an expression on which the browser will fil... |
diff --git a/src/storm2013/smartdashboard/StormCV.java b/src/storm2013/smartdashboard/StormCV.java
index 12e0a60..3cc822b 100644
--- a/src/storm2013/smartdashboard/StormCV.java
+++ b/src/storm2013/smartdashboard/StormCV.java
@@ -1,877 +1,878 @@
package storm2013.smartdashboard;
import com.googlecode.javacpp.Pointer... | false | true | public WPIImage processImage(WPIColorImage rawImage) {
if(Robot.getTable().getBoolean("Running", false)) {
long currTime = System.currentTimeMillis();
if(_savePeriod >= 0 && (_prevSaveTime < 0 || _prevSaveTime + _savePeriod*1000 <= currTime)) {
_prevSaveTime = currTi... | public WPIImage processImage(WPIColorImage rawImage) {
if(Robot.getTable().getBoolean("Enabled", false)) {
long currTime = System.currentTimeMillis();
if(_savePeriod >= 0 && (_prevSaveTime < 0 || _prevSaveTime + _savePeriod*1000 <= currTime)) {
_prevSaveTime = currTi... |
diff --git a/modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java b/modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java
index 666395c95..9695e3c4b 100644
--- a/modules/cpr/src/main/java/org/atmosphere/cpr/AtmosphereFramework.java
+++ b/modules/cpr/src/main/java/org/atmosphere/cpr/Atmo... | false | true | public AtmosphereFramework init(final ServletConfig sc, boolean wrap) throws ServletException {
if (isInit) return this;
try {
ServletContextHolder.register(this);
ServletConfig scFacade;
if (wrap) {
scFacade = new ServletConfig() {
... | public AtmosphereFramework init(final ServletConfig sc, boolean wrap) throws ServletException {
if (isInit) return this;
try {
ServletContextHolder.register(this);
ServletConfig scFacade;
if (wrap) {
scFacade = new ServletConfig() {
... |
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/operations/ProvisioningUtil.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/operations/ProvisioningUtil.java
index cdc24f9ed..d86cc448c 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/operati... | true | true | public static IStatus performInstall(ProvisioningPlan plan, Profile profile, IInstallableUnit[] installRoots, IProgressMonitor monitor) throws ProvisionException {
String taskMessage;
if (installRoots.length == 1)
taskMessage = NLS.bind(ProvUIMessages.ProvisioningUtil_InstallOneTask, installRoots[0].getId(), pr... | public static IStatus performInstall(ProvisioningPlan plan, Profile profile, IInstallableUnit[] installRoots, IProgressMonitor monitor) throws ProvisionException {
String taskMessage;
if (installRoots.length == 1)
taskMessage = NLS.bind(ProvUIMessages.ProvisioningUtil_InstallOneTask, installRoots[0].getId(), pr... |
diff --git a/MythicDrops/src/main/java/net/nunnerycode/bukkit/mythicdrops/items/MythicDropBuilder.java b/MythicDrops/src/main/java/net/nunnerycode/bukkit/mythicdrops/items/MythicDropBuilder.java
index 2d22025b..c8f71e80 100644
--- a/MythicDrops/src/main/java/net/nunnerycode/bukkit/mythicdrops/items/MythicDropBuilder.ja... | true | true | private List<String> generateLore(ItemStack itemStack) {
List<String> lore = new ArrayList<String>();
if (itemStack == null || tier == null) {
return lore;
}
List<String> tooltipFormat = MythicDropsPlugin.getInstance().getConfigSettings().getTooltipFormat();
String minecraftName = getMinecraftMaterialNam... | private List<String> generateLore(ItemStack itemStack) {
List<String> lore = new ArrayList<String>();
if (itemStack == null || tier == null) {
return lore;
}
List<String> tooltipFormat = MythicDropsPlugin.getInstance().getConfigSettings().getTooltipFormat();
String minecraftName = getMinecraftMaterialNam... |
diff --git a/sitebricks-mail/src/main/java/com/google/sitebricks/mail/MailClientHandler.java b/sitebricks-mail/src/main/java/com/google/sitebricks/mail/MailClientHandler.java
index 9abe108..c6e8725 100644
--- a/sitebricks-mail/src/main/java/com/google/sitebricks/mail/MailClientHandler.java
+++ b/sitebricks-mail/src/mai... | true | true | public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
String message = e.getMessage().toString();
log.trace(message);
if (SYSTEM_ERROR_REGEX.matcher(message).matches()) {
log.warn("Disconnected by IMAP Server due to system error: {}", message);
disconnectAb... | public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
String message = e.getMessage().toString();
log.trace(message);
if (SYSTEM_ERROR_REGEX.matcher(message).matches()
|| ". NO [ALERT] Account exceeded command or bandwidth limits. (Failure)".equalsIgnoreCase(me... |
diff --git a/src/fr/frozentux/craftguard2/list/ListLoader.java b/src/fr/frozentux/craftguard2/list/ListLoader.java
index 1874177..7a31fbb 100644
--- a/src/fr/frozentux/craftguard2/list/ListLoader.java
+++ b/src/fr/frozentux/craftguard2/list/ListLoader.java
@@ -1,101 +1,104 @@
package fr.frozentux.craftguard2.list;
... | true | true | public HashMap<String, List> load(){
HashMap<String, List> lists = new HashMap<String, List>();
if(!configurationFile.exists()){
configuration.set("example.permission", "permission");
ArrayList<String> ids = new ArrayList<String>();
ids.add("24");
ids.add("32:2");
configuration.set("example.ids",... | public HashMap<String, List> load(){
HashMap<String, List> lists = new HashMap<String, List>();
if(!configurationFile.exists()){
configuration.set("example.permission", "permission");
ArrayList<String> ids = new ArrayList<String>();
ids.add("24");
ids.add("32:2");
configuration.set("example.ids",... |
diff --git a/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/rest/RESTfulTestBase.java b/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test/rest/RESTfulTestBase.java
index fc9e9465..fb87a5e9 100644
--- a/tests/org.jboss.tools.ws.ui.bot.test/src/org/jboss/tools/ws/ui/bot/test... | true | true | protected void prepareRestProject() {
if (!projectExists(getWsProjectName())) {
//importing project without targeted runtime set
importWSTestProject("resources/projects/" +
getWsProjectName(), getWsProjectName());
//set target runtime - TO DO
projectHelper.addDefaultRuntimeIntoProject(getWsP... | protected void prepareRestProject() {
if (!projectExists(getWsProjectName())) {
//importing project without targeted runtime set
importWSTestProject("resources/projects/" +
getWsProjectName(), getWsProjectName());
//set target runtime - TO DO
projectHelper.addConfiguredRuntimeIntoProject(
... |
diff --git a/pmd/src/test/java/net/sourceforge/pmd/lang/java/rule/unnecessary/UnnecessaryRulesTest.java b/pmd/src/test/java/net/sourceforge/pmd/lang/java/rule/unnecessary/UnnecessaryRulesTest.java
index 10e5707d5..8847c1476 100644
--- a/pmd/src/test/java/net/sourceforge/pmd/lang/java/rule/unnecessary/UnnecessaryRulesTe... | true | true | public void setUp() {
addRule(RULESET, "UnnecessaryConversionTemporary");
addRule(RULESET, "UnnecessaryReturn");
addRule(RULESET, "UnnecessaryFinalModifier");
addRule(RULESET, "UnusedNullCheckInEquals");
addRule(RULESET, "UselessOverridingMethod");
addRule(RULESET, "U... | public void setUp() {
addRule(RULESET, "UnnecessaryConversionTemporary");
addRule(RULESET, "UnnecessaryReturn");
addRule(RULESET, "UnnecessaryFinalModifier");
addRule(RULESET, "UnusedNullCheckInEquals");
addRule(RULESET, "UselessOverridingMethod");
addRule(RULESET, "U... |
diff --git a/src/com/android/dialer/dialpad/SmartDialController.java b/src/com/android/dialer/dialpad/SmartDialController.java
index 385cbeb31..e9d6cc8b5 100644
--- a/src/com/android/dialer/dialpad/SmartDialController.java
+++ b/src/com/android/dialer/dialpad/SmartDialController.java
@@ -1,513 +1,513 @@
/*
* Copyrig... | true | true | private void assignEntryToView(LinearLayout view, SmartDialEntry item) {
final TextView nameView = (TextView) view.findViewById(R.id.contact_name);
final TextView numberView = (TextView) view.findViewById(
R.id.contact_number);
if (item == SmartDialEntry.NULL) {
... | private void assignEntryToView(LinearLayout view, SmartDialEntry item) {
final TextView nameView = (TextView) view.findViewById(R.id.contact_name);
final TextView numberView = (TextView) view.findViewById(
R.id.contact_number);
if (item == SmartDialEntry.NULL) {
... |
diff --git a/src/je.java b/src/je.java
index 8ce039b..8abe6c0 100644
--- a/src/je.java
+++ b/src/je.java
@@ -1,54 +1,54 @@
import java.util.Random;
public class je extends fw {
public je(int paramInt) {
super(paramInt);
this.aX = 1;
this.aY = 64;
}
@Override
public b... | true | true | public boolean a(hn paramhn, fz paramfz, eq parameq, int paramInt1, int paramInt2, int paramInt3, int paramInt4) {
if (paramInt4 == 0) {
paramInt2--;
}
if (paramInt4 == 1) {
paramInt2++;
}
if (paramInt4 == 2) {
paramInt3--;
}
... | public boolean a(hn paramhn, fz paramfz, eq parameq, int paramInt1, int paramInt2, int paramInt3, int paramInt4) {
if (paramInt4 == 0) {
paramInt2--;
}
if (paramInt4 == 1) {
paramInt2++;
}
if (paramInt4 == 2) {
paramInt3--;
}
... |
diff --git a/src/main/java/org/iplantc/phyloviewer/client/tree/viewer/DetailView.java b/src/main/java/org/iplantc/phyloviewer/client/tree/viewer/DetailView.java
index 4cbf16e1..6aeaeb4c 100755
--- a/src/main/java/org/iplantc/phyloviewer/client/tree/viewer/DetailView.java
+++ b/src/main/java/org/iplantc/phyloviewer/clie... | true | true | public DetailView(int width,int height) {
this.setCamera(new CameraCladogram());
canvas = new Canvas(width,height);
graphics = new Graphics(canvas);
this.getCamera().resize(width,height);
this.add(canvas);
this.addMouseWheelHandler(new MouseWheelHandler() {
public void onMouseWheel(MouseW... | public DetailView(int width,int height) {
this.setCamera(new CameraCladogram());
canvas = new Canvas(width,height);
graphics = new Graphics(canvas);
this.getCamera().resize(width,height);
this.add(canvas);
this.addMouseWheelHandler(new MouseWheelHandler() {
public void onMouseWheel(MouseW... |
diff --git a/alfresco-mobile-android/src/org/alfresco/mobile/android/ui/filebrowser/LocalFileExplorerFragment.java b/alfresco-mobile-android/src/org/alfresco/mobile/android/ui/filebrowser/LocalFileExplorerFragment.java
index 5e79e250..0a1d01e4 100644
--- a/alfresco-mobile-android/src/org/alfresco/mobile/android/ui/file... | true | true | public Dialog onCreateDialog(Bundle savedInstanceState)
{
View toolButton = null;
LayoutInflater inflater = LayoutInflater.from(getActivity());
View v = inflater.inflate(R.layout.sdk_list, null);
View toolsGroup = v.findViewById(R.id.tools_group);
//Set to a dec... | public Dialog onCreateDialog(Bundle savedInstanceState)
{
View toolButton = null;
LayoutInflater inflater = LayoutInflater.from(getActivity());
View v = inflater.inflate(R.layout.sdk_list, null);
View toolsGroup = v.findViewById(R.id.tools_group);
//Set to a dec... |
diff --git a/src/com/legit2/Demigods/Utilities/DCharUtil.java b/src/com/legit2/Demigods/Utilities/DCharUtil.java
index 51cb64a7..e72617ae 100644
--- a/src/com/legit2/Demigods/Utilities/DCharUtil.java
+++ b/src/com/legit2/Demigods/Utilities/DCharUtil.java
@@ -1,595 +1,595 @@
package com.legit2.Demigods.Utilities;
im... | false | true | public static boolean createChar(Player player, String charName, String charDeity)
{
if(!DPlayerUtil.hasCharName(player, charName))
{
// Define variables
int playerID = DPlayerUtil.getPlayerID(player);
int charID = DObjUtil.generateInt(5);
String charAlliance = DDeityUtil.getDeityAlliance(charDeity);
... | public static boolean createChar(Player player, String charName, String charDeity)
{
if(!DPlayerUtil.hasCharName(player, charName))
{
// Define variables
int playerID = DPlayerUtil.getPlayerID(player);
int charID = DObjUtil.generateInt(5);
String charAlliance = DDeityUtil.getDeityAlliance(charDeity);
... |
diff --git a/src/main/java/net/betterverse/BanManager.java b/src/main/java/net/betterverse/BanManager.java
index ec6894f..47e137c 100644
--- a/src/main/java/net/betterverse/BanManager.java
+++ b/src/main/java/net/betterverse/BanManager.java
@@ -1,183 +1,184 @@
package net.betterverse;
import java.sql.Connection;
i... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
Player player = null;
if (sender instanceof Player) {
player = (Player) sender;
}
if(cmd.getName().equalsIgnoreCase("ban")){
if (args.length > 1){
try{
Prepare... | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
Player player = null;
if (sender instanceof Player) {
player = (Player) sender;
}
if(cmd.getName().equalsIgnoreCase("ban")){
if (args.length > 1){
try{
String ... |
diff --git a/calendar-webapp/src/main/java/org/exoplatform/calendar/webui/popup/UIEventForm.java b/calendar-webapp/src/main/java/org/exoplatform/calendar/webui/popup/UIEventForm.java
index 7fc2e860..90ba90b1 100644
--- a/calendar-webapp/src/main/java/org/exoplatform/calendar/webui/popup/UIEventForm.java
+++ b/calendar-... | false | true | public void saveAndNoAsk(Event<UIEventForm> event, boolean isSend, boolean updateSeries)throws Exception {
UIEventForm uiForm = event.getSource() ;
UICalendarPortlet calendarPortlet = uiForm.getAncestorOfType(UICalendarPortlet.class) ;
UIPopupAction uiPopupAction = uiForm.getAncestorOfType(UIPopupAction.c... | public void saveAndNoAsk(Event<UIEventForm> event, boolean isSend, boolean updateSeries)throws Exception {
UIEventForm uiForm = event.getSource() ;
UICalendarPortlet calendarPortlet = uiForm.getAncestorOfType(UICalendarPortlet.class) ;
UIPopupAction uiPopupAction = uiForm.getAncestorOfType(UIPopupAction.c... |
diff --git a/src/main/ed/appserver/templates/djang10/FilterExpression.java b/src/main/ed/appserver/templates/djang10/FilterExpression.java
index 0713b06fd..6bb7fd978 100644
--- a/src/main/ed/appserver/templates/djang10/FilterExpression.java
+++ b/src/main/ed/appserver/templates/djang10/FilterExpression.java
@@ -1,185 +... | true | true | public Object resolve(Scope scope, Context context, Boolean ignore_failures) {
Object value;
try {
value = expression.resolve(scope, context);
}
catch(VariableDoesNotExist e) {
if(ignore_failures) {
value = null;
}
... | public Object resolve(Scope scope, Context context, Boolean ignore_failures) {
Object value;
try {
value = expression.resolve(scope, context);
}
catch(VariableDoesNotExist e) {
if(ignore_failures) {
value = null;
}
... |
diff --git a/de/dfki/lt/freetts/en/us/MbrolaVoiceDirectory.java b/de/dfki/lt/freetts/en/us/MbrolaVoiceDirectory.java
index c0d7297..85e47f5 100644
--- a/de/dfki/lt/freetts/en/us/MbrolaVoiceDirectory.java
+++ b/de/dfki/lt/freetts/en/us/MbrolaVoiceDirectory.java
@@ -1,45 +1,45 @@
package de.dfki.lt.freetts.en.us;
imp... | true | true | public Voice[] getVoices() {
Voice mbrola1 = new MbrolaVoice(true, "us1", "us1", 150f, 180F, 22F,
"mbrola1", Gender.FEMALE, Age.YOUNGER_ADULT, "MBROLA Voice 1",
Locale.US, "TEST/TODO", "TEST/TODO");
Voice mbrola2 = new MbrolaVoice(true, "us2", "us2", 150f, 115F, 12F,
... | public Voice[] getVoices() {
Voice mbrola1 = new MbrolaVoice(true, "us1", "us1", 150f, 180F, 22F,
"mbrola1", Gender.FEMALE, Age.YOUNGER_ADULT, "MBROLA Voice 1",
Locale.US, "TEST/TODO", "TEST/TODO");
Voice mbrola2 = new MbrolaVoice(true, "us2", "us2", 150f, 115F, 12F,
... |
diff --git a/htroot/CacheAdmin_p.java b/htroot/CacheAdmin_p.java
index 10491a795..590df3b37 100644
--- a/htroot/CacheAdmin_p.java
+++ b/htroot/CacheAdmin_p.java
@@ -1,198 +1,200 @@
// CacheAdmin_p.java
// -----------------------
// part of the AnomicHTTPD caching proxy
// (C) by Michael Peter Christen; mc@anomic.d... | false | true | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
plasmaSwitchboard switchboard = (plasmaSwitchboard) env;
serverObjects prop = new serverObjects();
String action = ((post == null) ? "info" : post.get("action", "info"));
String pathString = ((post == n... | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
plasmaSwitchboard switchboard = (plasmaSwitchboard) env;
serverObjects prop = new serverObjects();
String action = ((post == null) ? "info" : post.get("action", "info"));
String pathString = ((post == n... |
diff --git a/ScreenManager/smanager-ui/src/main/java/com/atanor/smanager/client/ui/NavigationArea.java b/ScreenManager/smanager-ui/src/main/java/com/atanor/smanager/client/ui/NavigationArea.java
index 64d20e6..088f53d 100644
--- a/ScreenManager/smanager-ui/src/main/java/com/atanor/smanager/client/ui/NavigationArea.java... | true | true | public NavigationArea(final SimpleEventBus bus) {
super();
this.setMembersMargin(10);
this.setOverflow(Overflow.HIDDEN);
this.setShowResizeBar(true);
final SectionStack sectionStack = new SectionStack();
sectionStack.setShowExpandControls(true);
sectionStack.setAnimateSections(true);
sectionStack.se... | public NavigationArea(final SimpleEventBus bus) {
super();
this.setMembersMargin(10);
this.setOverflow(Overflow.HIDDEN);
this.setShowResizeBar(true);
final SectionStack sectionStack = new SectionStack();
sectionStack.setShowExpandControls(true);
sectionStack.setAnimateSections(true);
sectionStack.se... |
diff --git a/src/com/redhat/ceylon/compiler/codegen/AbstractTransformer.java b/src/com/redhat/ceylon/compiler/codegen/AbstractTransformer.java
index 8feb321a5..b53c6bc5d 100755
--- a/src/com/redhat/ceylon/compiler/codegen/AbstractTransformer.java
+++ b/src/com/redhat/ceylon/compiler/codegen/AbstractTransformer.java
@@ ... | true | true | protected JCExpression makeJavaType(ProducedType type, int flags) {
if(type == null)
return make().Erroneous();
// ERASURE
if (willEraseToObject(type)) {
// For an erased type:
// - Any of the Ceylon types Void, Object, Nothing, Equality,... | protected JCExpression makeJavaType(ProducedType type, int flags) {
if(type == null)
return make().Erroneous();
// ERASURE
if (willEraseToObject(type)) {
// For an erased type:
// - Any of the Ceylon types Void, Object, Nothing, Equality,... |
diff --git a/src/tesla/app/command/provider/app/RhythmboxConfig.java b/src/tesla/app/command/provider/app/RhythmboxConfig.java
index 7d385c3..c644f4a 100644
--- a/src/tesla/app/command/provider/app/RhythmboxConfig.java
+++ b/src/tesla/app/command/provider/app/RhythmboxConfig.java
@@ -1,139 +1,137 @@
/* Copyright 2009 ... | false | true | public String getCommand(String key) {
final String dest = "org.gnome.Rhythmbox";
List<String> args = new ArrayList<String>();
String out = null;
if (key.equals(Command.PLAY) || key.equals(Command.PAUSE)) {
args.add(new DBusHelper().evaluateArg("false"));
out = new DBusHelper().compileMethodCall(dest, "/... | public String getCommand(String key) {
final String dest = "org.gnome.Rhythmbox";
List<String> args = new ArrayList<String>();
String out = null;
if (key.equals(Command.PLAY) || key.equals(Command.PAUSE)) {
args.add(new DBusHelper().evaluateArg("false"));
out = new DBusHelper().compileMethodCall(dest, "/... |
diff --git a/src/cl/votainteligente/inspector/client/presenters/HomePresenter.java b/src/cl/votainteligente/inspector/client/presenters/HomePresenter.java
index 23945bf..3fa2132 100644
--- a/src/cl/votainteligente/inspector/client/presenters/HomePresenter.java
+++ b/src/cl/votainteligente/inspector/client/presenters/Ho... | false | true | public void initBillTable() {
while (getView().getBillTable().getColumnCount() > 0) {
getView().getBillTable().removeColumn(0);
}
// Creates bulletin column
TextColumn<Bill> bulletinColumn = new TextColumn<Bill>() {
@Override
public String getValue(Bill bill) {
return bill.getBulletinNumber();
... | public void initBillTable() {
while (getView().getBillTable().getColumnCount() > 0) {
getView().getBillTable().removeColumn(0);
}
// Creates bulletin column
TextColumn<Bill> bulletinColumn = new TextColumn<Bill>() {
@Override
public String getValue(Bill bill) {
return bill.getBulletinNumber();
... |
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/viewers/IUCapabilityFilter.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/viewers/IUCapabilityFilter.java
index 606f711c0..1593d823e 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/viewers/I... | false | true | public boolean select(Viewer viewer, Object parentElement, Object element) {
IInstallableUnit iu = null;
if (element instanceof InstallableUnit) {
iu = (IInstallableUnit) element;
} else if (element instanceof IAdaptable) {
iu = (IInstallableUnit) ((IAdaptable) element).getAdapter(InstallableUnit.class);
... | public boolean select(Viewer viewer, Object parentElement, Object element) {
IInstallableUnit iu = null;
if (element instanceof IInstallableUnit) {
iu = (IInstallableUnit) element;
} else if (element instanceof IAdaptable) {
iu = (IInstallableUnit) ((IAdaptable) element).getAdapter(IInstallableUnit.class);... |
diff --git a/flex4/flex4-integration/src/main/java/org/axdt/flex4/debugger/Flex4Debugger.java b/flex4/flex4-integration/src/main/java/org/axdt/flex4/debugger/Flex4Debugger.java
index 785498e..fe93fc4 100644
--- a/flex4/flex4-integration/src/main/java/org/axdt/flex4/debugger/Flex4Debugger.java
+++ b/flex4/flex4-integrat... | false | true | protected void processEvents(DebugContext ctx)
throws SuspendedException, NotConnectedException,
NoResponseException, NotSuspendedException {
while (ctx.session.getEventCount() > 0) {
DebugEvent event = ctx.session.nextEvent();
if (event instanceof SwfLoadedEvent) {
SwfLoadedEvent swfLoaded = ... | protected void processEvents(DebugContext ctx)
throws SuspendedException, NotConnectedException,
NoResponseException, NotSuspendedException {
while (ctx.session.getEventCount() > 0) {
DebugEvent event = ctx.session.nextEvent();
if (event instanceof SwfLoadedEvent) {
SwfLoadedEvent swfLoaded = ... |
diff --git a/classes/com/sapienter/jbilling/server/order/task/CancellationFeeRulesTask.java b/classes/com/sapienter/jbilling/server/order/task/CancellationFeeRulesTask.java
index acce4b95..2a1e7cee 100644
--- a/classes/com/sapienter/jbilling/server/order/task/CancellationFeeRulesTask.java
+++ b/classes/com/sapienter/jb... | true | true | public void process(Event event) throws PluggableTaskException {
EventType eventType;
OrderDTO order = null;
// validate the type of the event
if (event instanceof NewActiveUntilEvent) {
NewActiveUntilEvent myEvent = (NewActiveUntilEvent) event;
// if the ne... | public void process(Event event) throws PluggableTaskException {
EventType eventType;
OrderDTO order = null;
// validate the type of the event
if (event instanceof NewActiveUntilEvent) {
NewActiveUntilEvent myEvent = (NewActiveUntilEvent) event;
// if the ne... |
diff --git a/databus-worker/src/test/java/com/inmobi/databus/local/TestCreateListing.java b/databus-worker/src/test/java/com/inmobi/databus/local/TestCreateListing.java
index 4cf75f12..af60dfbd 100644
--- a/databus-worker/src/test/java/com/inmobi/databus/local/TestCreateListing.java
+++ b/databus-worker/src/test/java/c... | false | true | public void testCreateListing1() throws Exception{
Path collectorPath = new Path(rootDir, "data/stream1/collector1");
localFs.mkdirs(collectorPath);
Map<String, String> clusterConf = new HashMap<String, String>();
clusterConf.put("hdfsurl", localFs.getUri().toString());
clusterConf.put("jturl", ... | public void testCreateListing1() throws Exception{
Path collectorPath = new Path(rootDir, "data/stream1/collector1");
localFs.mkdirs(collectorPath);
Map<String, String> clusterConf = new HashMap<String, String>();
clusterConf.put("hdfsurl", localFs.getUri().toString());
clusterConf.put("jturl", ... |
diff --git a/ananya-reports-smoke/src/test/java/org/motechproject/ananya/reports/smoke/kilkari/repository/ReportingService.java b/ananya-reports-smoke/src/test/java/org/motechproject/ananya/reports/smoke/kilkari/repository/ReportingService.java
index 2161aeb..0e7f3af 100644
--- a/ananya-reports-smoke/src/test/java/org/... | true | true | public List<SubscriptionStatus> getSubscriptionStatusMeasureForMsisdn(final String msisdn) {
return new TimedRunner<List<SubscriptionStatus>>(10, 1000) {
@Override
protected List<SubscriptionStatus> run() {
List<SubscriptionStatus> subscriptionStatuses;
... | public List<SubscriptionStatus> getSubscriptionStatusMeasureForMsisdn(final String msisdn) {
return new TimedRunner<List<SubscriptionStatus>>(10, 1000) {
@Override
protected List<SubscriptionStatus> run() {
List<SubscriptionStatus> subscriptionStatuses;
... |
diff --git a/org.orbisgis.core-ui/src/main/java/org/orbisgis/views/sqlConsole/ui/AbstractSyntaxColoringDocument.java b/org.orbisgis.core-ui/src/main/java/org/orbisgis/views/sqlConsole/ui/AbstractSyntaxColoringDocument.java
index 5a5e3607e..61ddb5a85 100644
--- a/org.orbisgis.core-ui/src/main/java/org/orbisgis/views/sql... | false | true | public void replace(FilterBypass fb, int offset, int length,
String text, AttributeSet attrs) throws BadLocationException {
// replace tabs by spaces. Grammar needs that
text = text.replaceAll("\t", " ");
// Indent as many spaces as after the last \n
if (text.equals("\n")) {
String currentText... | public void replace(FilterBypass fb, int offset, int length,
String text, AttributeSet attrs) throws BadLocationException {
// replace tabs by spaces. Grammar needs that
text = text.replaceAll("\t", " ");
// Indent as many spaces as after the last \n
if (text.equals("\n")) {
String currentText... |
diff --git a/cruisecontrol/main/test/net/sourceforge/cruisecontrol/LogTest.java b/cruisecontrol/main/test/net/sourceforge/cruisecontrol/LogTest.java
index e0a83994..b7bf00e0 100644
--- a/cruisecontrol/main/test/net/sourceforge/cruisecontrol/LogTest.java
+++ b/cruisecontrol/main/test/net/sourceforge/cruisecontrol/LogTes... | true | true | public void testXMLEncoding()
throws CruiseControlException, IOException, JDOMException {
String[] encodings = { "UTF-8", "ISO-8859-1", null };
SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
//XMLOutputter outputter = new XMLOutputter(Format.getPrett... | public void testXMLEncoding()
throws CruiseControlException, IOException, JDOMException {
String[] encodings = { "UTF-8", "ISO-8859-1", null };
SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
//XMLOutputter outputter = new XMLOutputter(Format.getPrett... |
diff --git a/src/com/noshufou/android/su/AppDetailsFragment.java b/src/com/noshufou/android/su/AppDetailsFragment.java
index 38aea57..d756f36 100644
--- a/src/com/noshufou/android/su/AppDetailsFragment.java
+++ b/src/com/noshufou/android/su/AppDetailsFragment.java
@@ -1,444 +1,446 @@
/*********************************... | true | true | public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
switch (loader.getId()) {
case DETAILS_LOADER:
if (data.moveToFirst()) {
mDetailsContainer.setVisibility(View.VISIBLE);
mAppName.setText(data.getString(DETAILS_COLUMN_NAME));
... | public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
switch (loader.getId()) {
case DETAILS_LOADER:
if (data.moveToFirst()) {
if (mDetailsContainer != null) {
mDetailsContainer.setVisibility(View.VISIBLE);
}
... |
diff --git a/org/python/core/PyType.java b/org/python/core/PyType.java
index 07668c8f..95878480 100644
--- a/org/python/core/PyType.java
+++ b/org/python/core/PyType.java
@@ -1,1360 +1,1362 @@
package org.python.core;
import java.io.Serializable;
import java.lang.reflect.Constructor;
import java.lang.reflect.Fiel... | true | true | private static void fillFromClass(
PyType newtype,
String name,
Class c,
Class base,
boolean newstyle,
Method setup,
String[] exposed_methods) {
if (base == null) {
base = c.getSuperclass();
}
if (name == null) {
... | private static void fillFromClass(
PyType newtype,
String name,
Class c,
Class base,
boolean newstyle,
Method setup,
String[] exposed_methods) {
if (base == null) {
base = c.getSuperclass();
}
if (name == null) {
... |
diff --git a/eclipse_projects/bVNC/src/com/iiordanov/bVNC/bVNC.java b/eclipse_projects/bVNC/src/com/iiordanov/bVNC/bVNC.java
index 0435506..8935b60 100644
--- a/eclipse_projects/bVNC/src/com/iiordanov/bVNC/bVNC.java
+++ b/eclipse_projects/bVNC/src/com/iiordanov/bVNC/bVNC.java
@@ -1,483 +1,477 @@
/**
* Copyright (C)... | true | true | public void onCreate(Bundle icicle) {
layoutID = R.layout.main;
super.onCreate(icicle);
ipText = (EditText) findViewById(R.id.textIP);
sshServer = (EditText) findViewById(R.id.sshServer);
sshPort = (EditText) findViewById(R.id.sshPort);
sshUser = (EditText) f... | public void onCreate(Bundle icicle) {
layoutID = R.layout.main;
super.onCreate(icicle);
ipText = (EditText) findViewById(R.id.textIP);
sshServer = (EditText) findViewById(R.id.sshServer);
sshPort = (EditText) findViewById(R.id.sshPort);
sshUser = (EditText) f... |
diff --git a/src/voxicity/RLETree.java b/src/voxicity/RLETree.java
index 43ecf9f..2039afb 100644
--- a/src/voxicity/RLETree.java
+++ b/src/voxicity/RLETree.java
@@ -1,292 +1,292 @@
/*
* Copyright 2011, Erik Lund
*
* This file is part of Voxicity.
*
* Voxicity is free software: you can redistribute it and/or... | true | true | void set( int pos, int data )
{
if ( pos < 0 )
{
System.out.println( "Error! No runs starting at less than 0 allowed!" );
return;
}
Node node = new Node( pos, data );
// Get the node containing this position
Node start = seek_node( node.pos );
Node prev = start.prev;
Node next = start.next;
... | void set( int pos, int data )
{
if ( pos < 0 )
{
System.out.println( "Error! No runs starting at less than 0 allowed!" );
return;
}
Node node = new Node( pos, data );
// Get the node containing this position
Node start = seek_node( node.pos );
Node prev = start.prev;
Node next = start.next;
... |
diff --git a/src/recognize/im/Recognize.java b/src/recognize/im/Recognize.java
index 6de35cb..a887164 100644
--- a/src/recognize/im/Recognize.java
+++ b/src/recognize/im/Recognize.java
@@ -1,417 +1,417 @@
package recognize.im;
import java.awt.image.BufferedImage;
import java.io.BufferedReader;
import java.io.File... | true | true | public static void main(String[] args) {
Image image = readImageData("000.jpg");
if (image == null || image.getData() == null) {
System.err.println("Given image could not be read");
return;
}
try {
// initialize proxy class (this perform authorisation)
ITraffSoapProxy iTraffSoap = new ITraffSoapP... | public static void main(String[] args) {
Image image = readImageData("000.jpg");
if (image == null || image.getData() == null) {
System.err.println("Given image could not be read");
return;
}
try {
// initialize proxy class (this perform authorisation)
ITraffSoapProxy iTraffSoap = new ITraffSoapP... |
diff --git a/src/org/clapper/curn/plugins/EmailOutputPlugIn.java b/src/org/clapper/curn/plugins/EmailOutputPlugIn.java
index 9315f85..36e34b7 100644
--- a/src/org/clapper/curn/plugins/EmailOutputPlugIn.java
+++ b/src/org/clapper/curn/plugins/EmailOutputPlugIn.java
@@ -1,564 +1,564 @@
/*--------------------------------... | true | true | private void emailOutput(Collection<OutputHandler> outputHandlers,
Collection<EmailAddress> emailAddresses)
throws CurnException
{
try
{
OutputHandler firstHandlerWithOutput = null;
int totalAttachments = 0;
// ... | private void emailOutput(Collection<OutputHandler> outputHandlers,
Collection<EmailAddress> emailAddresses)
throws CurnException
{
try
{
OutputHandler firstHandlerWithOutput = null;
int totalAttachments = 0;
// ... |
diff --git a/src/frontend/org/voltdb/utils/CatalogUtil.java b/src/frontend/org/voltdb/utils/CatalogUtil.java
index 3fabfe8e2..94f9ff405 100644
--- a/src/frontend/org/voltdb/utils/CatalogUtil.java
+++ b/src/frontend/org/voltdb/utils/CatalogUtil.java
@@ -1,1215 +1,1217 @@
/* This file is part of VoltDB.
* Copyright (C... | false | true | public static String toSchema(Table catalog_tbl) {
assert(!catalog_tbl.getColumns().isEmpty());
final String spacer = " ";
Set<Index> skip_indexes = new HashSet<Index>();
Set<Constraint> skip_constraints = new HashSet<Constraint>();
String ret = "CREATE TABLE " + catalog_... | public static String toSchema(Table catalog_tbl) {
assert(!catalog_tbl.getColumns().isEmpty());
final String spacer = " ";
Set<Index> skip_indexes = new HashSet<Index>();
Set<Constraint> skip_constraints = new HashSet<Constraint>();
String ret = "CREATE TABLE " + catalog_... |
diff --git a/src/com/jidesoft/swing/PopupWindow.java b/src/com/jidesoft/swing/PopupWindow.java
index 38a5ce50..a0b6939c 100644
--- a/src/com/jidesoft/swing/PopupWindow.java
+++ b/src/com/jidesoft/swing/PopupWindow.java
@@ -1,447 +1,447 @@
/*
* @(#)PopupWindow.java
*
* Copyright 2002 - 2003 JIDE Software. All rig... | true | true | public void show(Component relative, int x, int y) {
_parent = relative;
if (_delegate == null) {
createDelegate();
if (_delegate == null) return;
add(_component);
}
Point p = new Point(x, y);
SwingUtilities.convertPointToScreen(p, relati... | public void show(Component relative, int x, int y) {
_parent = relative;
if (_delegate == null) {
createDelegate();
if (_delegate == null) return;
add(_component);
}
Point p = new Point(x, y);
SwingUtilities.convertPointToScreen(p, relati... |
diff --git a/src/main/edu/iastate/music/marching/attendance/controllers/DataController.java b/src/main/edu/iastate/music/marching/attendance/controllers/DataController.java
index a489b408..9abd7c10 100644
--- a/src/main/edu/iastate/music/marching/attendance/controllers/DataController.java
+++ b/src/main/edu/iastate/mus... | true | true | public boolean sendBugReportEmail(User user, String severity, String url,
String userAgent, boolean mobileSite, String message) {
Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);
String msgBody = "Severity: " + StringEscapeUtils.escapeHtml4(severity)
+ "<br/... | public boolean sendBugReportEmail(User user, String severity, String url,
String userAgent, boolean mobileSite, String message) {
Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);
String msgBody = "Severity: " + StringEscapeUtils.escapeHtml4(severity)
+ "<br/... |
diff --git a/android-maven-plugin/src/main/java/com/photon/maven/plugins/android/standalonemojos/UpdateBuildInfoMojo.java b/android-maven-plugin/src/main/java/com/photon/maven/plugins/android/standalonemojos/UpdateBuildInfoMojo.java
index da983103..218e3a0e 100644
--- a/android-maven-plugin/src/main/java/com/photon/mav... | true | true | public void execute() throws MojoExecutionException, MojoFailureException {
File outputFile = null, outputAlignedFile = null, destFile = null, destAlignedFile = null;
String techId;
if(baseDir.getPath().endsWith("source")||baseDir.getPath().endsWith("unit")
|| baseDir.getPath().endsWith("functional")
|| ... | public void execute() throws MojoExecutionException, MojoFailureException {
File outputFile = null, outputAlignedFile = null, destFile = null, destAlignedFile = null;
String techId;
if(baseDir.getPath().endsWith("source")||baseDir.getPath().endsWith("unit")
|| baseDir.getPath().endsWith("functional")
|| ... |
diff --git a/src/main/java/eu/isas/peptideshaker/utils/IdentificationFeaturesGenerator.java b/src/main/java/eu/isas/peptideshaker/utils/IdentificationFeaturesGenerator.java
index 1feb0c4..cd0e198 100644
--- a/src/main/java/eu/isas/peptideshaker/utils/IdentificationFeaturesGenerator.java
+++ b/src/main/java/eu/isas/pept... | false | true | public ArrayList<String> getProcessedProteinKeys(ProgressDialogX progressDialog) {
if (proteinListAfterHiding == null) {
if (progressDialog != null) {
progressDialog.setIndeterminate(false);
progressDialog.setTitle("Loading Protein Information. Please Wait...");
... | public ArrayList<String> getProcessedProteinKeys(ProgressDialogX progressDialog) {
if (proteinList == null) {
if (progressDialog != null) {
progressDialog.setIndeterminate(false);
progressDialog.setTitle("Loading Protein Information. Please Wait...");
... |
diff --git a/org.caleydo.view.enroute/src/org/caleydo/view/enroute/mappeddataview/MappedDataRenderer.java b/org.caleydo.view.enroute/src/org/caleydo/view/enroute/mappeddataview/MappedDataRenderer.java
index 7bece187c..f4df7c6da 100644
--- a/org.caleydo.view.enroute/src/org/caleydo/view/enroute/mappeddataview/MappedData... | true | true | private void createLayout(LayoutManager layoutManager, boolean isHighlightLayout) {
float rowSpacingHeight = 5;
Row baseRow = new Row("baseRow");
layoutManager.setBaseElementLayout(baseRow);
ElementLayout xSpacing = new ElementLayout();
xSpacing.setPixelSizeX(SPACING_PIXEL_WIDTH);
float[] color;
// b... | private void createLayout(LayoutManager layoutManager, boolean isHighlightLayout) {
float rowSpacingHeight = 5;
Row baseRow = new Row("baseRow");
layoutManager.setBaseElementLayout(baseRow);
ElementLayout xSpacing = new ElementLayout();
xSpacing.setPixelSizeX(SPACING_PIXEL_WIDTH);
float[] color;
// b... |
diff --git a/src/java/com/eviware/soapui/impl/wsdl/panels/assertions/AddAssertionPanel.java b/src/java/com/eviware/soapui/impl/wsdl/panels/assertions/AddAssertionPanel.java
index def43c066..7efd55db9 100644
--- a/src/java/com/eviware/soapui/impl/wsdl/panels/assertions/AddAssertionPanel.java
+++ b/src/java/com/eviware/s... | true | true | public Component getTableCellRendererComponent( JTable table, Object value, boolean isSelected, boolean hasFocus,
int row, int column )
{
boldFont = getFont().deriveFont( Font.BOLD );
AssertionListEntry entry = ( AssertionListEntry )value;
String type = TestAssertionRegistry.getInstance().getAssertio... | public Component getTableCellRendererComponent( JTable table, Object value, boolean isSelected, boolean hasFocus,
int row, int column )
{
boldFont = getFont().deriveFont( Font.BOLD );
AssertionListEntry entry = ( AssertionListEntry )value;
String type = TestAssertionRegistry.getInstance().getAssertio... |
diff --git a/src-vis/org/seasr/meandre/components/vis/d3/TagCloud.java b/src-vis/org/seasr/meandre/components/vis/d3/TagCloud.java
index ce82da4b..fb69319d 100644
--- a/src-vis/org/seasr/meandre/components/vis/d3/TagCloud.java
+++ b/src-vis/org/seasr/meandre/components/vis/d3/TagCloud.java
@@ -1,247 +1,241 @@
/**
* ... | true | true | public void executeCallBack(ComponentContext cc) throws Exception {
Map<String, Integer> tokenCounts = DataTypeParser.parseAsStringIntegerMap(cc.getDataComponentFromInput(IN_TOKEN_COUNTS));
String label = "";
//TODO: cc.getConnectedInputs() appears to contain IN_LABEL when it's not ... | public void executeCallBack(ComponentContext cc) throws Exception {
Map<String, Integer> tokenCounts = DataTypeParser.parseAsStringIntegerMap(cc.getDataComponentFromInput(IN_TOKEN_COUNTS));
String label = "";
//TODO: cc.getConnectedInputs() appears to contain IN_LABEL when it's not ... |
diff --git a/src/de/schildbach/pte/ParserUtils.java b/src/de/schildbach/pte/ParserUtils.java
index 942647bd..786dceaa 100644
--- a/src/de/schildbach/pte/ParserUtils.java
+++ b/src/de/schildbach/pte/ParserUtils.java
@@ -1,318 +1,318 @@
/*
* Copyright 2010 the original author or authors.
*
* This program is free ... | true | true | public static CharSequence scrape(final String url, final boolean isPost, final String request, String encoding, final boolean cookieHandling)
throws IOException
{
if (encoding == null)
encoding = SCRAPE_DEFAULT_ENCODING;
int tries = 3;
while (true)
{
try
{
final StringBuilder buffer = new S... | public static CharSequence scrape(final String url, final boolean isPost, final String request, String encoding, final boolean cookieHandling)
throws IOException
{
if (encoding == null)
encoding = SCRAPE_DEFAULT_ENCODING;
int tries = 3;
while (true)
{
try
{
final StringBuilder buffer = new S... |
diff --git a/spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectiveMethodResolver.java b/spring-expression/src/main/java/org/springframework/expression/spel/support/ReflectiveMethodResolver.java
index ce6ad5123..12cd86d36 100644
--- a/spring-expression/src/main/java/org/springframework/e... | true | true | public MethodExecutor resolve(EvaluationContext context, Object targetObject, String name,
List<TypeDescriptor> argumentTypes) throws AccessException {
try {
TypeConverter typeConverter = context.getTypeConverter();
Class<?> type = (targetObject instanceof Class ? (Class<?>) targetObject : targetObject.get... | public MethodExecutor resolve(EvaluationContext context, Object targetObject, String name,
List<TypeDescriptor> argumentTypes) throws AccessException {
try {
TypeConverter typeConverter = context.getTypeConverter();
Class<?> type = (targetObject instanceof Class ? (Class<?>) targetObject : targetObject.get... |
diff --git a/src/com/podts/pokemon/server/pokemon/Pokemon.java b/src/com/podts/pokemon/server/pokemon/Pokemon.java
index b2f68c9..321d463 100644
--- a/src/com/podts/pokemon/server/pokemon/Pokemon.java
+++ b/src/com/podts/pokemon/server/pokemon/Pokemon.java
@@ -1,150 +1,154 @@
package com.podts.pokemon.server.pokemon;
... | true | true | public static int GCPokemon() {
int cleared = 0;
long start = System.currentTimeMillis();
for (Pokemon p : getAllPokemon()) {
if (!p.getKeep()) {
if (p.getLastGrab()+p.getCacheTime() < start) {
p.uncache();
cleared++;
continue;
}
}
}
return cleared;
}
| public static int GCPokemon() {
int cleared = 0;
long start = System.currentTimeMillis();
synchronized (Pokemon.class) {
for (Pokemon p : getAllPokemon()) {
synchronized (p) {
if (!p.getKeep()) {
if (p.getLastGrab()+p.getCacheTime() < start) {
p.uncache();
cleared++;
contin... |
diff --git a/src/main/java/org/telscenter/sail/webapp/presentation/web/controllers/student/StudentIndexController.java b/src/main/java/org/telscenter/sail/webapp/presentation/web/controllers/student/StudentIndexController.java
index 96eab85..11bffbd 100644
--- a/src/main/java/org/telscenter/sail/webapp/presentation/web... | true | true | protected ModelAndView handleRequestInternal(HttpServletRequest request,
HttpServletResponse response) throws Exception {
ModelAndView modelAndView = new ModelAndView(VIEW_NAME);
ControllerUtil.addUserToModelAndView(request, modelAndView);
User user = ControllerUtil.getSignedInUser();
List<Run>... | protected ModelAndView handleRequestInternal(HttpServletRequest request,
HttpServletResponse response) throws Exception {
ModelAndView modelAndView = new ModelAndView(VIEW_NAME);
ControllerUtil.addUserToModelAndView(request, modelAndView);
User user = ControllerUtil.getSignedInUser();
List<Run>... |
diff --git a/Sources/ModelManager/Source/org/softwaresynthesis/mytalk/server/connection/PushInbound.java b/Sources/ModelManager/Source/org/softwaresynthesis/mytalk/server/connection/PushInbound.java
index a1aa12a3..f0af0b10 100644
--- a/Sources/ModelManager/Source/org/softwaresynthesis/mytalk/server/connection/PushInbo... | false | true | protected void onTextMessage(CharBuffer message) throws IOException {
String text=message.toString();
Gson gson= new Gson();
JsonParser parser = new JsonParser();
JsonArray array = parser.parse(text).getAsJsonArray();
String type = gson.fromJson(array.get(0), String.class);
//identificazi... | protected void onTextMessage(CharBuffer message) throws IOException {
String text=message.toString();
Gson gson= new Gson();
JsonParser parser = new JsonParser();
JsonArray array = parser.parse(text).getAsJsonArray();
String type = gson.fromJson(array.get(0), String.class);
//identificazi... |
diff --git a/sphinx4/src/sphinx4/edu/cmu/sphinx/tools/batch/SphinxShell.java b/sphinx4/src/sphinx4/edu/cmu/sphinx/tools/batch/SphinxShell.java
index 8ac2fae1d..cbc2c5af3 100644
--- a/sphinx4/src/sphinx4/edu/cmu/sphinx/tools/batch/SphinxShell.java
+++ b/sphinx4/src/sphinx4/edu/cmu/sphinx/tools/batch/SphinxShell.java
@@ ... | true | true | public static void main(String[] args) throws IOException {
if (args.length == 0 || (args.length == 1 && (args[0].startsWith("-h") || args[0].startsWith("--h")))) {
System.out.println("Usage: CMUTests <config-xml-file> *([[<component>->]<parameter>=<value>] )");
System.out.println("E... | public static void main(String[] args) throws IOException {
if (args.length == 0 || (args.length == 1 && (args[0].startsWith("-h") || args[0].startsWith("--h")))) {
System.out.println("Usage: SphinxShell <config-xml-file> *([[<component>->]<parameter>=<value>] )");
System.out.println... |
diff --git a/src/org/bouncycastle/cms/DefaultSignedAttributeTableGenerator.java b/src/org/bouncycastle/cms/DefaultSignedAttributeTableGenerator.java
index c8c72209..965d1217 100644
--- a/src/org/bouncycastle/cms/DefaultSignedAttributeTableGenerator.java
+++ b/src/org/bouncycastle/cms/DefaultSignedAttributeTableGenerato... | true | true | protected Hashtable createStandardAttributeTable(
Map parameters)
{
Hashtable std = (Hashtable)table.clone();
if (!std.containsKey(CMSAttributes.contentType))
{
DERObjectIdentifier contentType = (DERObjectIdentifier)
parameters.get(CMSAttributeTableGe... | protected Hashtable createStandardAttributeTable(
Map parameters)
{
Hashtable std = (Hashtable)table.clone();
if (!std.containsKey(CMSAttributes.contentType))
{
DERObjectIdentifier contentType = (DERObjectIdentifier)
parameters.get(CMSAttributeTableGe... |
diff --git a/src/main/java/com/github/pukkaone/jsp/EscapeXmlELResolver.java b/src/main/java/com/github/pukkaone/jsp/EscapeXmlELResolver.java
index 3e6a3dd..e5e0316 100644
--- a/src/main/java/com/github/pukkaone/jsp/EscapeXmlELResolver.java
+++ b/src/main/java/com/github/pukkaone/jsp/EscapeXmlELResolver.java
@@ -1,107 +... | true | true | public Object getValue(ELContext context, Object base, Object property) {
JspContext pageContext = (JspContext) context.getContext(JspContext.class);
Boolean escapeXml = (Boolean) pageContext.getAttribute(ESCAPE_XML_ATTRIBUTE);
if (escapeXml != null && !escapeXml) {
return null;
... | public Object getValue(ELContext context, Object base, Object property) {
JspContext pageContext = (JspContext) context.getContext(JspContext.class);
Boolean escapeXml = (Boolean) pageContext.getAttribute(ESCAPE_XML_ATTRIBUTE);
if (escapeXml != null && !escapeXml) {
return null;
... |
diff --git a/mwa-core/src/main/java/org/knowhow/mwa/WebDefaults.java b/mwa-core/src/main/java/org/knowhow/mwa/WebDefaults.java
index bb0e6f2..ca97155 100644
--- a/mwa-core/src/main/java/org/knowhow/mwa/WebDefaults.java
+++ b/mwa-core/src/main/java/org/knowhow/mwa/WebDefaults.java
@@ -1,153 +1,153 @@
package org.knowho... | true | true | public void onStartup() {
List<HandlerMethodReturnValueHandler> returnValueHandlers =
new ArrayList<HandlerMethodReturnValueHandler>(requestMappingHandler
.getReturnValueHandlers().getHandlers());
int index = -1;
for (int i = 0; i < returnValueHandlers.size(); i++) {
HandlerMetho... | public void onStartup() {
List<HandlerMethodReturnValueHandler> returnValueHandlers =
new ArrayList<HandlerMethodReturnValueHandler>(requestMappingHandler
.getReturnValueHandlers().getHandlers());
int index = -1;
for (int i = 0; i < returnValueHandlers.size(); i++) {
HandlerMetho... |
diff --git a/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java b/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java
index adc3ec98e..0c1b8f49e 100644
--- a/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java
+++ b/maven-core/sr... | true | true | private MavenProject processProjectLogic( MavenProject project, ArtifactRepository localRepository,
List remoteRepositories, boolean resolveDependencies )
throws ProjectBuildingException, ModelInterpolationException, ArtifactResolutionException
{
Mod... | private MavenProject processProjectLogic( MavenProject project, ArtifactRepository localRepository,
List remoteRepositories, boolean resolveDependencies )
throws ProjectBuildingException, ModelInterpolationException, ArtifactResolutionException
{
Mod... |
diff --git a/apvs/src/main/java/ch/cern/atlas/apvs/client/settings/ServerSettings.java b/apvs/src/main/java/ch/cern/atlas/apvs/client/settings/ServerSettings.java
index 008e3313..8f40eda6 100644
--- a/apvs/src/main/java/ch/cern/atlas/apvs/client/settings/ServerSettings.java
+++ b/apvs/src/main/java/ch/cern/atlas/apvs/c... | true | true | public ServerSettings(boolean setDefaults) {
if (!setDefaults)
return;
put(Entry.ptuUrl.toString(), "pcatlaswpss03:10123");
put(Entry.procedureUrl.toString(), "http://localhost:8890/apvs-procs/procedures");
put(Entry.databaseUrl.toString(), "wpss@//pcatlaswpss03.cern.ch:1521/XE");
put(Entry.audioUrl.toStr... | public ServerSettings(boolean setDefaults) {
if (!setDefaults)
return;
put(Entry.ptuUrl.toString(), "pcatlaswpss03:10123");
put(Entry.procedureUrl.toString(), "http://localhost:8890/apvs-procs/procedures");
put(Entry.databaseUrl.toString(), "wpss@//pcatlaswpss03.cern.ch:1521/XE");
put(Entry.audioUrl.toStr... |
diff --git a/src/dk/itu/big_red/model/import_export/SignatureXMLImport.java b/src/dk/itu/big_red/model/import_export/SignatureXMLImport.java
index a0a96896..ccbaee39 100644
--- a/src/dk/itu/big_red/model/import_export/SignatureXMLImport.java
+++ b/src/dk/itu/big_red/model/import_export/SignatureXMLImport.java
@@ -1,127... | true | true | private Control makeControl(Element e) throws ImportFailedException {
Control model = new Control();
model.setName(DOM.getAttributeNS(e, XMLNS.SIGNATURE, "name"));
String kind = DOM.getAttributeNS(e, XMLNS.SIGNATURE, "kind");
if (kind != null) {
model.setKind(
kind.equals("active") ? Kind.ACTIVE :... | private Control makeControl(Element e) throws ImportFailedException {
Control model = new Control();
model.setName(DOM.getAttributeNS(e, XMLNS.SIGNATURE, "name"));
String kind = DOM.getAttributeNS(e, XMLNS.SIGNATURE, "kind");
if (kind != null) {
model.setKind(
kind.equals("active") ? Kind.ACTIVE :... |
diff --git a/org.knime.knip.imagej2.core/src/org/knime/knip/imagej2/core/util/IJToImg.java b/org.knime.knip.imagej2.core/src/org/knime/knip/imagej2/core/util/IJToImg.java
index 1368c7b..123b4f4 100644
--- a/org.knime.knip.imagej2.core/src/org/knime/knip/imagej2/core/util/IJToImg.java
+++ b/org.knime.knip.imagej2.core/s... | true | true | public final ImgPlus<T> compute(final ImagePlus op, final ImgPlus<T> r) {
final IterableInterval<T> permuted = Views.iterable(ImgToIJ.extendAndPermute(r));
final Cursor<T> cur;
if (permuted.iterationOrder().equals(r.iterationOrder())) {
cur = r.cursor();
} else {
... | public final ImgPlus<T> compute(final ImagePlus op, final ImgPlus<T> r) {
final IterableInterval<T> permuted = Views.iterable(ImgToIJ.extendAndPermute(r));
final Cursor<T> cur;
if (permuted.iterationOrder().equals(r.iterationOrder())) {
cur = r.cursor();
} else {
... |
diff --git a/loci/visbio/util/MatlabUtil.java b/loci/visbio/util/MatlabUtil.java
index 44c2a20..0dd5d04 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 image d... | 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/bundles/binding/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/IhcActivator.java b/bundles/binding/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/IhcActivator.java
index 2fd4c51b..a6a6cc60 100644
--- a/bundles/binding/org.openhab.binding.ihc/src/main/java/org... | true | true | public void stop(BundleContext bc) throws Exception {
IhcClient ihc = IhcConnection.getCommunicator();
ihc.closeConnection();
context = null;
logger.debug("IHC / ELKO LS binding has been stopped.");
}
| public void stop(BundleContext bc) throws Exception {
IhcClient client = IhcConnection.getCommunicator();
if (client != null) {
client.closeConnection();
}
context = null;
logger.debug("IHC / ELKO LS binding has been stopped.");
}
|
diff --git a/cdm/src/main/java/ucar/nc2/iosp/grib/GribGridServiceProvider.java b/cdm/src/main/java/ucar/nc2/iosp/grib/GribGridServiceProvider.java
index 59e126451..6abf56e30 100644
--- a/cdm/src/main/java/ucar/nc2/iosp/grib/GribGridServiceProvider.java
+++ b/cdm/src/main/java/ucar/nc2/iosp/grib/GribGridServiceProvider.... | false | true | private GridIndex getIndex(String gribLocation, String indexLocation) throws IOException {
GridIndex index = null;
File indexFile = null;
//http test
//gribLocation = "http://motherlode.ucar.edu:9080/thredds/fileServer/fmrc/NCEP/NAM/Polar_90km/files/NAM_Polar_90km_20090403_1200.grib2";
// is this... | private GridIndex getIndex(String gribLocation, String indexLocation) throws IOException {
GridIndex index = null;
File indexFile = null;
//http test
//gribLocation = "http://motherlode.ucar.edu:9080/thredds/fileServer/fmrc/NCEP/NAM/Polar_90km/files/NAM_Polar_90km_20090403_1200.grib2";
// is this... |
diff --git a/src/main/java/com/hackhalo2/creative/PixlCommand.java b/src/main/java/com/hackhalo2/creative/PixlCommand.java
index cc7bb52..9b032d5 100644
--- a/src/main/java/com/hackhalo2/creative/PixlCommand.java
+++ b/src/main/java/com/hackhalo2/creative/PixlCommand.java
@@ -1,166 +1,166 @@
package com.hackhalo2.crea... | true | true | public boolean onCommand(CommandSender cs, Command c, String l, String[] args) {
if (!cs.hasPermission("pixl.command")) {
cs.sendMessage(ChatColor.RED + "You do not have permission to use "
+ "this command.");
return true;
}
Player player;
... | public boolean onCommand(CommandSender cs, Command c, String l, String[] args) {
if (!cs.hasPermission("pixl.command")) {
cs.sendMessage(ChatColor.RED + "You do not have permission to use "
+ "this command.");
return true;
}
Player player;
... |
diff --git a/src/it/crs4/seal/demux/DemuxMapper.java b/src/it/crs4/seal/demux/DemuxMapper.java
index 9c7bac3..6a35de9 100644
--- a/src/it/crs4/seal/demux/DemuxMapper.java
+++ b/src/it/crs4/seal/demux/DemuxMapper.java
@@ -1,94 +1,94 @@
// Copyright (C) 2011-2012 CRS4.
//
// This file is part of Seal.
//
// Seal is ... | true | true | private void checkFields(SequencedFragment seq)
{
try
{
if (seq.getInstrument() == null)
throw new RuntimeException("missing instrument name");
if (seq.getRunNumber() == null)
throw new RuntimeException("missing run number");
if (seq.getLane() == null)
throw new RuntimeException("missing la... | private void checkFields(SequencedFragment seq)
{
try
{
if (seq.getInstrument() == null)
throw new RuntimeException("missing instrument name");
if (seq.getRunNumber() == null)
throw new RuntimeException("missing run number");
if (seq.getLane() == null)
throw new RuntimeException("missing la... |
diff --git a/src/Image.java b/src/Image.java
index d718527..0a7398a 100644
--- a/src/Image.java
+++ b/src/Image.java
@@ -1,820 +1,820 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
import java.io.*;
import java.util.Arrays;
/**
*
* @author Paul
*/... | false | true | public static Image Smoothen(Image helper, Image im, int row_start, int row_end) {
int r_sum = 0, b_sum = 0, g_sum = 0, index;
final int col = 3;
final int row = im.width*3;
// <editor-fold defaultstate="collapsed" desc="Special case: first row of image">
if (row_start == 0) {
row_start++;
... | public static Image Smoothen(Image helper, Image im, int row_start, int row_end) {
int r_sum = 0, b_sum = 0, g_sum = 0, index;
final int col = 3;
final int row = im.width*3;
// <editor-fold defaultstate="collapsed" desc="Special case: first row of image">
if (row_start == 0) {
row_start++;
... |
diff --git a/opal-core-ws/src/main/java/org/obiba/opal/web/magma/TableResource.java b/opal-core-ws/src/main/java/org/obiba/opal/web/magma/TableResource.java
index 6a6029ea1..daffb53a0 100644
--- a/opal-core-ws/src/main/java/org/obiba/opal/web/magma/TableResource.java
+++ b/opal-core-ws/src/main/java/org/obiba/opal/web/... | true | true | private Map<String, List<Object>> readValues(List<String> variables) {
Map<String, List<Object>> response = new LinkedHashMap<String, List<Object>>();
if(variables == null || variables.size() == 0) {
variables = ImmutableList.copyOf(Iterables.transform(valueTable.getVariables(), new Function<Variable, ... | private Map<String, List<Object>> readValues(List<String> variables) {
Map<String, List<Object>> response = new LinkedHashMap<String, List<Object>>();
if(variables == null || variables.size() == 0) {
variables = ImmutableList.copyOf(Iterables.transform(valueTable.getVariables(), new Function<Variable, ... |
diff --git a/ArgumenteaServer/app/controllers/UserProfile.java b/ArgumenteaServer/app/controllers/UserProfile.java
index 0e708e3..ec9c0db 100644
--- a/ArgumenteaServer/app/controllers/UserProfile.java
+++ b/ArgumenteaServer/app/controllers/UserProfile.java
@@ -1,176 +1,177 @@
package controllers;
import java.util.H... | false | true | public static Result newAnnotationJson()
{
System.out.println("received request");
JsonNode json = request().body().asJson();
System.out.println("json :" + json);
Map<String, String> anyData = new HashMap<String, String>();
anyData.put("pointerBegin", json.get("pointerBegin").asText()) ;
anyData.put("poin... | public static Result newAnnotationJson()
{
System.out.println("received request");
JsonNode json = request().body().asJson();
System.out.println("json :" + json);
Map<String, String> anyData = new HashMap<String, String>();
anyData.put("pointerBegin", json.get("pointerBegin").asText()) ;
anyData.put("poin... |
diff --git a/nuxeo-webengine-core/src/main/java/org/nuxeo/ecm/webengine/servlet/ResourceServlet.java b/nuxeo-webengine-core/src/main/java/org/nuxeo/ecm/webengine/servlet/ResourceServlet.java
index 11c0f12e..a9b9fe88 100644
--- a/nuxeo-webengine-core/src/main/java/org/nuxeo/ecm/webengine/servlet/ResourceServlet.java
+++... | true | true | protected void service(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String path = req.getPathInfo();
if (path == null) {
resp.sendError(404);
return;
}
int p = path.indexOf('/', 1);
Strin... | protected void service(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String path = req.getPathInfo();
if (path == null) {
resp.sendError(404);
return;
}
int p = path.indexOf('/', 1);
Strin... |
diff --git a/src/com/timsu/astrid/sync/SynchronizationProvider.java b/src/com/timsu/astrid/sync/SynchronizationProvider.java
index b75f74861..6583c78fe 100644
--- a/src/com/timsu/astrid/sync/SynchronizationProvider.java
+++ b/src/com/timsu/astrid/sync/SynchronizationProvider.java
@@ -1,676 +1,676 @@
/*
* ASTRID: And... | false | true | protected synchronized void synchronizeTasks(final Context context, LinkedList<TaskProxy>
remoteTasks, SynchronizeHelper helper) throws IOException {
final SyncStats stats = new SyncStats();
final StringBuilder log = new StringBuilder();
SyncDataController syncController = synch... | protected synchronized void synchronizeTasks(final Context context, LinkedList<TaskProxy>
remoteTasks, SynchronizeHelper helper) throws IOException {
final SyncStats stats = new SyncStats();
final StringBuilder log = new StringBuilder();
SyncDataController syncController = synch... |
diff --git a/proj/DFSClient.java b/proj/DFSClient.java
index 5aea0c1..e72eec4 100644
--- a/proj/DFSClient.java
+++ b/proj/DFSClient.java
@@ -1,493 +1,493 @@
import java.lang.reflect.Method;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.HashMap;
import java.util.Iterator;
impor... | false | true | public void onReceive(Integer from, FileNameMessage msg) {
System.err.println("Client (addr " + this.addr + ") received: " +
msg.toString());
SyncRequestMessage srMsg = (SyncRequestMessage) msg;
Flags flags = srMsg.getFlags();
DFSFilename fname = srMsg.getDFSFileName();
Per... | public void onReceive(Integer from, FileNameMessage msg) {
System.err.println("Client (addr " + this.addr + ") received: " +
msg.toString());
SyncRequestMessage srMsg = (SyncRequestMessage) msg;
Flags flags = srMsg.getFlags();
DFSFilename fname = srMsg.getDFSFileName();
Per... |
diff --git a/fap/app/tags/FapTags.java b/fap/app/tags/FapTags.java
index eff722e1..2786b19c 100644
--- a/fap/app/tags/FapTags.java
+++ b/fap/app/tags/FapTags.java
@@ -1,598 +1,602 @@
package tags;
import play.templates.BaseTemplate;
import play.templates.FastTags;
import play.templates.GroovyTemplate;
import pla... | true | true | public static void _field(Map<?, ?> args, Closure body, PrintWriter out, ExecutableTemplate template, int fromLine) {
Map<String,Object> field = new HashMap<String,Object>();
String _arg = args.get("arg").toString();
Object obj = args.get("obj");
field.put("name", _arg);
... | public static void _field(Map<?, ?> args, Closure body, PrintWriter out, ExecutableTemplate template, int fromLine) {
Map<String,Object> field = new HashMap<String,Object>();
String _arg = args.get("arg").toString();
Object obj = args.get("obj");
field.put("name", _arg);
... |
diff --git a/src/component/SegmentedControl.java b/src/component/SegmentedControl.java
index 7892703..0c93d64 100644
--- a/src/component/SegmentedControl.java
+++ b/src/component/SegmentedControl.java
@@ -1,197 +1,197 @@
package component;
import org.newdawn.slick.*;
import org.newdawn.slick.geom.Vector2f;
import... | true | true | public SegmentedControl(GUIContext context, Font font, Color c, int width, int height, int rows, int cols, int maxSelected, String ... labels) {
super(context);
this.rows = rows;
this.cols = cols;
int horizPaddingAmt = (rows - 1) * PADDING;
int vertPaddingAmt = (cols - 1) * PADDING;
height -= vertPaddi... | public SegmentedControl(GUIContext context, Font font, Color c, int width, int height, int rows, int cols, int maxSelected, String ... labels) {
super(context);
this.rows = rows;
this.cols = cols;
int horizPaddingAmt = (cols - 1) * PADDING;
int vertPaddingAmt = (rows - 1) * PADDING;
height -= vertPaddi... |
diff --git a/net/sf/mpxj/mpp/GanttChartView14.java b/net/sf/mpxj/mpp/GanttChartView14.java
index a2ce9ea..f6ed713 100644
--- a/net/sf/mpxj/mpp/GanttChartView14.java
+++ b/net/sf/mpxj/mpp/GanttChartView14.java
@@ -1,424 +1,424 @@
/*
* file: GanttChartView14.java
* author: Jon Iles
* copyright: (c) Pack... | true | true | @Override protected void processViewProperties(Map<Integer, FontBase> fontBases, Props props)
{
byte[] viewPropertyData = props.getByteArray(VIEW_PROPERTIES);
if (viewPropertyData != null)
{
//MPPUtility.fileDump("c:\\temp\\props.txt", MPPUtility.hexdump(viewPropertyData, false, 16, "")... | @Override protected void processViewProperties(Map<Integer, FontBase> fontBases, Props props)
{
byte[] viewPropertyData = props.getByteArray(VIEW_PROPERTIES);
if (viewPropertyData != null)
{
//MPPUtility.fileDump("c:\\temp\\props.txt", MPPUtility.hexdump(viewPropertyData, false, 16, "")... |
diff --git a/src/main/java/com/google/gwtexpui/globalkey/client/GlobalKey.java b/src/main/java/com/google/gwtexpui/globalkey/client/GlobalKey.java
index 9386bd9c4..08d42331d 100644
--- a/src/main/java/com/google/gwtexpui/globalkey/client/GlobalKey.java
+++ b/src/main/java/com/google/gwtexpui/globalkey/client/GlobalKey.... | true | true | public static HandlerRegistration addApplication(final KeyCommand key) {
init();
keys.add(key);
keyApplication.add(key);
return new HandlerRegistration() {
@Override
public void removeHandler() {
keys.remove(key);
keyApplication.add(key);
}
};
}
| public static HandlerRegistration addApplication(final KeyCommand key) {
init();
keys.add(key);
keyApplication.add(key);
return new HandlerRegistration() {
@Override
public void removeHandler() {
keys.remove(key);
keyApplication.remove(key);
}
};
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.