diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/src/main/java/org/jenkinsci/plugins/darcs/DarcsRevisionState.java b/src/main/java/org/jenkinsci/plugins/darcs/DarcsRevisionState.java
index 96a91ed..571dc9d 100644
--- a/src/main/java/org/jenkinsci/plugins/darcs/DarcsRevisionState.java
+++ b/src/main/java/org/jenkinsci/plugins/darcs/DarcsRevisionState.java... | true | true | public boolean equals(Object other) {
boolean result = false;
if (other instanceof DarcsRevisionState) {
DarcsRevisionState that = (DarcsRevisionState) other;
return getChanges().equals(other.getClass());
}
return result;
}
| public boolean equals(Object other) {
boolean result = false;
if (other instanceof DarcsRevisionState) {
DarcsRevisionState that = (DarcsRevisionState) other;
return getChanges().equals(that.getChanges());
}
return result;
}
|
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/quickfix/AcceleoQuickFixProcessor.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/quickfix/AcceleoQuickFixProcessor.java
index 28003775..c19373c4 100644
--- a/plugi... | true | true | private List<Annotation> findAnnotationsAt(ISourceViewer sourceViewer, int offset) {
List<Annotation> annotations = new ArrayList<Annotation>();
if (sourceViewer != null && offset > -1) {
IAnnotationModel annotationModel = sourceViewer.getAnnotationModel();
if (annotationModel != null) {
for (Iterator<?>... | private List<Annotation> findAnnotationsAt(ISourceViewer sourceViewer, int offset) {
List<Annotation> annotations = new ArrayList<Annotation>();
if (sourceViewer != null && offset > -1) {
IAnnotationModel annotationModel = sourceViewer.getAnnotationModel();
if (annotationModel != null) {
for (Iterator<?>... |
diff --git a/tapestry-framework/src/java/org/apache/tapestry/dojo/form/Autocompleter.java b/tapestry-framework/src/java/org/apache/tapestry/dojo/form/Autocompleter.java
index b553c183c..e910a367e 100644
--- a/tapestry-framework/src/java/org/apache/tapestry/dojo/form/Autocompleter.java
+++ b/tapestry-framework/src/java/... | true | true | protected void renderFormWidget(IMarkupWriter writer, IRequestCycle cycle)
{
renderDelegatePrefix(writer, cycle);
writer.begin("select");
writer.attribute("name", getName());
if (isDisabled())
writer.attribute("disabled", "disabled");
... | protected void renderFormWidget(IMarkupWriter writer, IRequestCycle cycle)
{
renderDelegatePrefix(writer, cycle);
writer.begin("select");
writer.attribute("name", getName());
if (isDisabled())
writer.attribute("disabled", "disabled");
... |
diff --git a/src/main/java/org/kercheval/gradle/buildversion/BuildVersionTagTask.java b/src/main/java/org/kercheval/gradle/buildversion/BuildVersionTagTask.java
index 076cc64..6fa4cc9 100644
--- a/src/main/java/org/kercheval/gradle/buildversion/BuildVersionTagTask.java
+++ b/src/main/java/org/kercheval/gradle/buildvers... | true | true | public void doTask()
{
if (getProject().getVersion() instanceof BuildVersion)
{
final Map<String, ?> props = getProject().getProperties();
final IVCSAccess vcs = VCSAccessFactory.getCurrentVCS((File) props.get("rootDir"),
getProject().getLogger());
if (isOnlyifclean())
{
//
// Tags shoul... | public void doTask()
{
if (getProject().getVersion() instanceof BuildVersion)
{
final Map<String, ?> props = getProject().getProperties();
final IVCSAccess vcs = VCSAccessFactory.getCurrentVCS((File) props.get("rootDir"),
getProject().getLogger());
if (isOnlyifclean())
{
//
// Tags shoul... |
diff --git a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchShortcut.java b/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/internal/debug/ui/XSLLaunchShortcut.java
index 0ddb436..a852d7a 100644
--- a/bundles/org.eclipse.wst.xsl.debug.ui/src/org/eclipse/wst/xsl/inte... | true | true | private boolean fillFiles(Object[] selections) {
xmlFile = null;
xmlFilePath = null;
List<IFile> xslFileList = new ArrayList<IFile>();
xslFilePath = null;
for (Object object : selections) {
IResource resource = (IResource) object;
if (resource.getType() == IResource.FILE) {
IFile file = (IFile) res... | private boolean fillFiles(Object[] selections) {
xmlFile = null;
xmlFilePath = null;
List<IFile> xslFileList = new ArrayList<IFile>();
xslFilePath = null;
for (Object object : selections) {
IResource resource = (IResource) object;
if (resource.getType() == IResource.FILE) {
IFile file = (IFile) res... |
diff --git a/src/main/java/com/dianping/wizard/widget/interceptor/MergeInterceptor.java b/src/main/java/com/dianping/wizard/widget/interceptor/MergeInterceptor.java
index 9aa1f0b..e4f5e0e 100644
--- a/src/main/java/com/dianping/wizard/widget/interceptor/MergeInterceptor.java
+++ b/src/main/java/com/dianping/wizard/widg... | false | true | public String intercept(InvocationContext invocation) throws Exception {
String resultCode = invocation.invoke();
if (InvocationContext.NONE.equals(resultCode)) {
return resultCode;
}
Widget widget = invocation.getWidget();
Mode mode = widget.modes.get(invocation.... | public String intercept(InvocationContext invocation) throws Exception {
String resultCode = invocation.invoke();
if (InvocationContext.NONE.equals(resultCode)) {
return resultCode;
}
Widget widget = invocation.getWidget();
Mode mode = widget.modes.get(invocation.... |
diff --git a/src/com/android/apps/tag/MyTagList.java b/src/com/android/apps/tag/MyTagList.java
index e4541c5..9186389 100644
--- a/src/com/android/apps/tag/MyTagList.java
+++ b/src/com/android/apps/tag/MyTagList.java
@@ -1,661 +1,661 @@
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under t... | false | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.my_tag_activity);
if (savedInstanceState != null) {
mTagIdInEdit = savedInstanceState.getLong(BUNDLE_KEY_TAG_ID_IN_EDIT, -1);
}
// Set up the check box... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.my_tag_activity);
if (savedInstanceState != null) {
mTagIdInEdit = savedInstanceState.getLong(BUNDLE_KEY_TAG_ID_IN_EDIT, -1);
}
// Set up the check box... |
diff --git a/core/testframework/src/main/java/org/overturetool/test/framework/ResultTestCase.java b/core/testframework/src/main/java/org/overturetool/test/framework/ResultTestCase.java
index 3811a524e5..f97cc2bb40 100644
--- a/core/testframework/src/main/java/org/overturetool/test/framework/ResultTestCase.java
+++ b/co... | true | true | protected void compareResults(Result result, String filename)
{
if(Properties.recordTestResults)
{
//MessageReaderWritter mrw = new MessageReaderWritter(createResultFile(filename));
//mrw.set(result);
//mrw.save();
XmlResultReaderWritter xmlResult = new XmlResultReaderWritter(createResultFile(filename... | protected void compareResults(Result result, String filename)
{
if(Properties.recordTestResults)
{
//MessageReaderWritter mrw = new MessageReaderWritter(createResultFile(filename));
//mrw.set(result);
//mrw.save();
XmlResultReaderWritter xmlResult = new XmlResultReaderWritter(createResultFile(filename... |
diff --git a/WEB-INF/src/org/cdlib/xtf/textEngine/SnippetMaker.java b/WEB-INF/src/org/cdlib/xtf/textEngine/SnippetMaker.java
index c078a844..0b158ae3 100644
--- a/WEB-INF/src/org/cdlib/xtf/textEngine/SnippetMaker.java
+++ b/WEB-INF/src/org/cdlib/xtf/textEngine/SnippetMaker.java
@@ -1,368 +1,376 @@
package org.cdlib.xt... | true | true | public String markField( SpanDocument doc, String fieldName,
final String value )
{
try
{
// Get the text, and allocate a buffer for the marked up version.
final StringBuffer buf = new StringBuffer( value.length() * 2 );
// Now make a wo... | public String markField( SpanDocument doc, String fieldName,
final String value )
{
try
{
// Get the text, and allocate a buffer for the marked up version.
final StringBuffer buf = new StringBuffer( value.length() * 2 );
// Now make a wo... |
diff --git a/bundles/core/org.openhab.core.library/src/main/java/org/openhab/core/library/items/ColorItem.java b/bundles/core/org.openhab.core.library/src/main/java/org/openhab/core/library/items/ColorItem.java
index e8a38515..7690ec91 100644
--- a/bundles/core/org.openhab.core.library/src/main/java/org/openhab/core/li... | true | true | public void setState(State state) {
State currentState = this.state;
if(currentState instanceof HSBType) {
DecimalType hue = ((HSBType) currentState).getHue();
PercentType saturation = ((HSBType) currentState).getSaturation();
// we map ON/OFF values to dark/bright, so that the hue and saturatio... | public void setState(State state) {
State currentState = this.state;
if(currentState instanceof HSBType) {
DecimalType hue = ((HSBType) currentState).getHue();
PercentType saturation = ((HSBType) currentState).getSaturation();
// we map ON/OFF values to dark/bright, so that the hue and saturatio... |
diff --git a/collector-client-support/src/main/java/com/ning/arecibo/collector/rest/DefaultCollectorClient.java b/collector-client-support/src/main/java/com/ning/arecibo/collector/rest/DefaultCollectorClient.java
index 07e3000..9899f2f 100644
--- a/collector-client-support/src/main/java/com/ning/arecibo/collector/rest/... | true | true | public Iterable<SamplesForSampleKindAndHost> getHostSamples(final Iterable<String> hostNames, final Iterable<String> categoriesAndSampleKinds, final DateTime from, final DateTime to) throws UniformInterfaceException
{
final TypeReference<List<SamplesForSampleKindAndHost>> valueTypeRef = new TypeReferenc... | public Iterable<SamplesForSampleKindAndHost> getHostSamples(final Iterable<String> hostNames, final Iterable<String> categoriesAndSampleKinds, final DateTime from, final DateTime to) throws UniformInterfaceException
{
final TypeReference<List<SamplesForSampleKindAndHost>> valueTypeRef = new TypeReferenc... |
diff --git a/src/gui/TerminalTab.java b/src/gui/TerminalTab.java
index 6f934c0..6c93e9e 100644
--- a/src/gui/TerminalTab.java
+++ b/src/gui/TerminalTab.java
@@ -1,45 +1,45 @@
package gui;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.io.PrintStream;
import javax.swing.BoxLayout;
import ... | true | true | public TerminalTab() {
// Setup miscallenous
setLayout(new BoxLayout(this, BoxLayout.LINE_AXIS));
// Setup text area
textArea = new JTextArea(4, 20);
textArea.setEditable(true);
JScrollPane scrollPane = new JScrollPane(textArea,
ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
ScrollPaneConstants.H... | public TerminalTab() {
// Setup miscallenous
setLayout(new BoxLayout(this, BoxLayout.LINE_AXIS));
// Setup text area
textArea = new JTextArea(4, 20);
textArea.setEditable(true);
JScrollPane scrollPane = new JScrollPane(textArea,
ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED,
ScrollPaneConstant... |
diff --git a/common-composite-component/src/java/org/sakaiproject/component/common/edu/person/SakaiPersonManagerImpl.java b/common-composite-component/src/java/org/sakaiproject/component/common/edu/person/SakaiPersonManagerImpl.java
index e808633..a1dcf4a 100644
--- a/common-composite-component/src/java/org/sakaiprojec... | false | true | public Map<String, SakaiPerson> getSakaiPersons(final Set<String> userIds, final Type recordType)
{
if (LOG.isDebugEnabled())
{
LOG.debug("getSakaiPersons(Collection size " + userIds.size() + ", Type " + recordType + ")");
}
if (userIds == null || userIds.size() == 0) throw new IllegalArgumentException("Il... | public Map<String, SakaiPerson> getSakaiPersons(final Set<String> userIds, final Type recordType)
{
if (LOG.isDebugEnabled())
{
LOG.debug("getSakaiPersons(Collection size " + userIds.size() + ", Type " + recordType + ")");
}
if (userIds == null || userIds.size() == 0) throw new IllegalArgumentException("Il... |
diff --git a/OUYAControllerANEJava/src/com/gaslightgames/android/ouyacontrollerane/extensions/OUYAControllerANEMotionListener.java b/OUYAControllerANEJava/src/com/gaslightgames/android/ouyacontrollerane/extensions/OUYAControllerANEMotionListener.java
index a12315b..e321ea3 100644
--- a/OUYAControllerANEJava/src/com/gas... | false | true | public boolean onGenericMotion( View v, MotionEvent event )
{
// -1.5258789E-5
// THIS IS THE "NULL" VALUE!
// Allow the OuyaController class to handle the event - this means we can check which player
// pressed which button/axis.
OuyaController.onGenericMotionEvent( event );
controller = OuyaContro... | public boolean onGenericMotion( View v, MotionEvent event )
{
// -1.5258789E-5
// THIS IS THE "NULL" VALUE!
// Allow the OuyaController class to handle the event - this means we can check which player
// pressed which button/axis.
OuyaController.onGenericMotionEvent( event );
controller = OuyaContro... |
diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/RuntimeClasspathEntryTests.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/RuntimeClasspathEntryTests.java
index 149412133..35fffc824 100644
--- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/core/... | true | true | public void testJRELIBVariableEntry() throws Exception {
IClasspathEntry[] cp = getJavaProject().getRawClasspath();
IClasspathEntry cpe = null;
for (int i = 0; i < cp.length; i++) {
if (cp[i].getEntryKind() == IClasspathEntry.CPE_VARIABLE && cp[i].getPath().equals(new Path(JavaRuntime.JRELIB_VARIABLE))) {
... | public void testJRELIBVariableEntry() throws Exception {
IClasspathEntry[] cp = getJavaProject().getRawClasspath();
IClasspathEntry cpe = null;
for (int i = 0; i < cp.length; i++) {
if (cp[i].getEntryKind() == IClasspathEntry.CPE_VARIABLE && cp[i].getPath().equals(new Path(JavaRuntime.JRELIB_VARIABLE))) {
... |
diff --git a/games/matchingpattern/PatternMatchingGame.java b/games/matchingpattern/PatternMatchingGame.java
index 3a88ca4..0a890d1 100644
--- a/games/matchingpattern/PatternMatchingGame.java
+++ b/games/matchingpattern/PatternMatchingGame.java
@@ -1,344 +1,344 @@
package games.matchingpattern;
import java.applet.A... | true | true | public void clickTile(int face, int row, int column) {
if(this.gameOn && getOpenImages() < 2 )
{
// Spread the tile color to the touching side tiles
for(Window w:images){
if(face == w.face && row == w.row && column== w.col){
if(!w.isOpen){
((MatchingPatternCube)this.cube).showMeshOnFace(fa... | public void clickTile(int face, int row, int column) {
if(this.gameOn && getOpenImages() < 2 )
{
// Spread the tile color to the touching side tiles
for(Window w:images){
if(face == w.face && row == w.row && column== w.col){
if(!w.isOpen){
((MatchingPatternCube)this.cube).showMeshOnFace(fa... |
diff --git a/srcj/com/sun/electric/tool/logicaleffort/LENodable.java b/srcj/com/sun/electric/tool/logicaleffort/LENodable.java
index 661b60097..fd7c52b64 100644
--- a/srcj/com/sun/electric/tool/logicaleffort/LENodable.java
+++ b/srcj/com/sun/electric/tool/logicaleffort/LENodable.java
@@ -1,347 +1,349 @@
/* -*- tab-wid... | false | true | private float getLeX(VarContext context, LENetlister2.NetlisterConstants constants, boolean testCachebility) {
float leX = (float)0.0;
Variable var = null;
Object retVal = null;
if (type == LENodable.Type.WIRE) {
// Note that if inst is an LEWIRE, it will have no 'le' at... | private float getLeX(VarContext context, LENetlister2.NetlisterConstants constants, boolean testCachebility) {
float leX = (float)0.0;
Variable var = null;
Object retVal = null;
if (type == LENodable.Type.WIRE) {
// Note that if inst is an LEWIRE, it will have no 'le' at... |
diff --git a/src/com/farproc/wifi/connecter/ReenableAllApsWhenNetworkStateChanged.java b/src/com/farproc/wifi/connecter/ReenableAllApsWhenNetworkStateChanged.java
index 432f21b..5b62256 100644
--- a/src/com/farproc/wifi/connecter/ReenableAllApsWhenNetworkStateChanged.java
+++ b/src/com/farproc/wifi/connecter/ReenableAl... | true | true | public void onReceive(Context context, Intent intent) {
final String action = intent.getAction();
if(WifiManager.NETWORK_STATE_CHANGED_ACTION.equals(action)) {
final NetworkInfo networkInfo = intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO);
final NetworkInfo.DetailedState detailed = netwo... | public void onReceive(Context context, Intent intent) {
final String action = intent.getAction();
if(WifiManager.NETWORK_STATE_CHANGED_ACTION.equals(action)) {
final NetworkInfo networkInfo = intent.getParcelableExtra(WifiManager.EXTRA_NETWORK_INFO);
final NetworkInfo.DetailedState detailed = netwo... |
diff --git a/providers/netty/src/main/java/com/ning/http/client/providers/netty/NettyAsyncHttpProvider.java b/providers/netty/src/main/java/com/ning/http/client/providers/netty/NettyAsyncHttpProvider.java
index f59f0f3e7..fe3f05cc7 100644
--- a/providers/netty/src/main/java/com/ning/http/client/providers/netty/NettyAsy... | true | true | private static HttpRequest construct(AsyncHttpClientConfig config,
Request request,
HttpMethod m,
URI uri,
ChannelBuffer buffer,
... | private static HttpRequest construct(AsyncHttpClientConfig config,
Request request,
HttpMethod m,
URI uri,
ChannelBuffer buffer,
... |
diff --git a/FRPapp/src/phillykeyspots/frpapp/DashboardActivity.java b/FRPapp/src/phillykeyspots/frpapp/DashboardActivity.java
index 1f28ef4..6ed8fe4 100644
--- a/FRPapp/src/phillykeyspots/frpapp/DashboardActivity.java
+++ b/FRPapp/src/phillykeyspots/frpapp/DashboardActivity.java
@@ -1,31 +1,33 @@
package phillykeyspo... | false | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_dashboard);
Fragment fragment;
switch(Integer.parseInt(getIntent().getExtras().get("ID").toString())){
case R.id.b_finder:
fragment = new FinderFragment();
break;
/*case R.id.b_ev... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_dashboard);
Fragment fragment;
switch(Integer.parseInt(getIntent().getExtras().get("ID").toString())){
case R.id.b_finder:
fragment = new FinderFragment();
break;
case R.id.b_even... |
diff --git a/src/zapfmaster2000-service/src/main/java/de/kile/zapfmaster2000/rest/api/installation/InstallationResource.java b/src/zapfmaster2000-service/src/main/java/de/kile/zapfmaster2000/rest/api/installation/InstallationResource.java
index ca40a05a..456c5a48 100644
--- a/src/zapfmaster2000-service/src/main/java/de... | false | true | public Response createFirstAdmin(String name, String password) {
if (checkIsNewInstallation()) {
createAdmin(name, password);
String token = Zapfmaster2000Core.INSTANCE.getAuthService()
.loginAdmin(name, password);
if (token == null) {
return Response.status(Status.INTERNAL_SERVER_ERROR).build();
... | public Response createFirstAdmin(String adminName, String password) {
if (checkIsNewInstallation()) {
createAdmin(adminName, password);
String token = Zapfmaster2000Core.INSTANCE.getAuthService()
.loginAdmin(adminName, password);
if (token == null) {
return Response.status(Status.INTERNAL_SERVER_E... |
diff --git a/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/internal/core/services/osgi/OSGiContextStrategy.java b/bundles/org.eclipse.e4.core.services/src/org/eclipse/e4/internal/core/services/osgi/OSGiContextStrategy.java
index f9c98bf3b..333eeefa4 100644
--- a/bundles/org.eclipse.e4.core.services/src/org/ec... | true | true | public Object lookup(String name, IEclipseContext originatingContext) {
cleanReferences();
ServiceData data = (ServiceData) services.get(name);
if (data == null) {
// first look for a registered IContextFunction matching the name
ServiceReference ref = getContextFunction(name);
if (ref != null)
retu... | public Object lookup(String name, IEclipseContext originatingContext) {
cleanReferences();
ServiceData data = (ServiceData) services.get(name);
if (data == null) {
// first look for a registered IContextFunction matching the name
ServiceReference ref = getContextFunction(name);
if (ref != null)
retu... |
diff --git a/src/main/java/com/mojang/minecraft/model/CreeperModel.java b/src/main/java/com/mojang/minecraft/model/CreeperModel.java
index 5b6f109..81457b3 100644
--- a/src/main/java/com/mojang/minecraft/model/CreeperModel.java
+++ b/src/main/java/com/mojang/minecraft/model/CreeperModel.java
@@ -1,50 +1,52 @@
package ... | false | true | public CreeperModel() {
head.setBounds(-4.0F, -8.0F, -4.0F, 8, 8, 8, 0.0F);
unused = new ModelPart(32, 0);
unused.setBounds(-4.0F, -8.0F, -4.0F, 8, 8, 8, 0.0F + 0.5F);
body = new ModelPart(16, 16);
body.setBounds(-4.0F, 0.0F, -2.0F, 8, 12, 4, 0.0F);
leg1 = new ModelPart(0, 16);
leg1.setBounds(-2.0F, 0.0F... | public CreeperModel() {
head.setBounds(-4.0F, -8.0F, -4.0F, 8, 8, 8, 0.0F);
head.setPosition(0.0F, 4.0F, 0.0F);
unused = new ModelPart(32, 0);
unused.setBounds(-4.0F, -8.0F, -4.0F, 8, 8, 8, 0.0F + 0.5F);
body = new ModelPart(16, 16);
body.setBounds(-4.0F, 0.0F, -2.0F, 8, 12, 4, 0.0F);
body.setPosition(0.... |
diff --git a/src/webdebate-portlet/docroot/WEB-INF/src/com/arguments/Deployment.java b/src/webdebate-portlet/docroot/WEB-INF/src/com/arguments/Deployment.java
index 901cc72..45d9370 100644
--- a/src/webdebate-portlet/docroot/WEB-INF/src/com/arguments/Deployment.java
+++ b/src/webdebate-portlet/docroot/WEB-INF/src/com/a... | true | true | public Deployment()
{
final URL myClassRoot = Deployment.class.getResource("/");
final String myClassRootPath = myClassRoot.getFile();
System.out.println("Class root path: " + myClassRootPath);
// From eclipse: /mnt/bigspace/opt/linux/i386/liferay/liferay-sdk/portlets/argumentati... | public Deployment()
{
final URL myClassRoot = Deployment.class.getResource("/");
final String myClassRootPath = myClassRoot.getFile();
System.out.println("Class root path: " + myClassRootPath);
// From eclipse: /mnt/bigspace/opt/linux/i386/liferay/liferay-sdk/portlets/argumentati... |
diff --git a/collect-flex/collect-flex-server/src/main/java/org/openforis/collect/remoting/service/DataService.java b/collect-flex/collect-flex-server/src/main/java/org/openforis/collect/remoting/service/DataService.java
index 22dc96af6..2da70004e 100644
--- a/collect-flex/collect-flex-server/src/main/java/org/openfori... | false | true | public List<NodeProxy> updateActiveRecord(UpdateRequest request) {
List<Node<?>> updatedNodes = new ArrayList<Node<?>>();
List<Node<?>> removedNodes = new ArrayList<Node<?>>();
SessionState sessionState = sessionManager.getSessionState();
CollectRecord record = sessionState.getActiveRecord();
ModelVersion ve... | public List<NodeProxy> updateActiveRecord(UpdateRequest request) {
List<Node<?>> updatedNodes = new ArrayList<Node<?>>();
List<Node<?>> removedNodes = new ArrayList<Node<?>>();
SessionState sessionState = sessionManager.getSessionState();
CollectRecord record = sessionState.getActiveRecord();
ModelVersion ve... |
diff --git a/source/client/main/edu/wustl/cab2b/client/ui/mainframe/GlobalNavigationGlassPane.java b/source/client/main/edu/wustl/cab2b/client/ui/mainframe/GlobalNavigationGlassPane.java
index 1c49857e..fee5894d 100644
--- a/source/client/main/edu/wustl/cab2b/client/ui/mainframe/GlobalNavigationGlassPane.java
+++ b/sou... | false | true | private void initUI() {
middleLabel.setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
Cab2bPanel topMiddlePanel = new Cab2bPanel();
topMiddlePanel.setPreferredSize(new Dimension(300, 40));
topMiddlePanel.setMinimumSize(new Dimension(300, 40))... | private void initUI() {
middleLabel.setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
Cab2bPanel topMiddlePanel = new Cab2bPanel();
topMiddlePanel.setPreferredSize(new Dimension(300, 40));
topMiddlePanel.setMinimumSize(new Dimension(300, 40))... |
diff --git a/prov-interop/src/main/java/org/openprovenance/prov/interop/InteropFramework.java b/prov-interop/src/main/java/org/openprovenance/prov/interop/InteropFramework.java
index 419833c2..416f9949 100644
--- a/prov-interop/src/main/java/org/openprovenance/prov/interop/InteropFramework.java
+++ b/prov-interop/src/m... | true | true | public void writeDocument(String filename, Document doc) {
try {
ProvFormat format = getTypeForFile(filename);
if (format == null) {
System.err.println("Unknown output file format: " + filename);
return;
}
logger.debug("writing " + format);
logger.debug("writing " + filename);
setNamespaces... | public void writeDocument(String filename, Document doc) {
try {
ProvFormat format = getTypeForFile(filename);
if (format == null) {
System.err.println("Unknown output file format: " + filename);
return;
}
logger.debug("writing " + format);
logger.debug("writing " + filename);
setNamespaces... |
diff --git a/src/web/org/codehaus/groovy/grails/web/metaclass/ControllerDynamicMethods.java b/src/web/org/codehaus/groovy/grails/web/metaclass/ControllerDynamicMethods.java
index e6f9b1530..0f8842e9f 100644
--- a/src/web/org/codehaus/groovy/grails/web/metaclass/ControllerDynamicMethods.java
+++ b/src/web/org/codehaus/g... | true | true | public ControllerDynamicMethods( GroovyObject controller,GrailsControllerHelper helper,HttpServletRequest request, HttpServletResponse response) throws IntrospectionException {
super(controller);
this.controllerClass = helper.getControllerClassByName(controller.getClass().getName());
// ad... | public ControllerDynamicMethods( GroovyObject controller,GrailsControllerHelper helper,HttpServletRequest request, HttpServletResponse response) throws IntrospectionException {
super(controller);
this.controllerClass = helper.getControllerClassByName(controller.getClass().getName());
// ad... |
diff --git a/src/da/alg1000/oblig3/DAALG1000Oblig3.java b/src/da/alg1000/oblig3/DAALG1000Oblig3.java
index f0e3e07..08219b4 100644
--- a/src/da/alg1000/oblig3/DAALG1000Oblig3.java
+++ b/src/da/alg1000/oblig3/DAALG1000Oblig3.java
@@ -1,60 +1,64 @@
/*
* To change this template, choose Tools | Templates
* and open th... | false | true | public static void main(String[] args) {
Scanner inp = new Scanner(System.in);
System.out.print("Number-of-buckets> ");
hashTable<String, String> ht = new hashTable<>(Integer.parseInt(inp.nextLine()));
String key;
while (true) {
System.out.println();
... | public static void main(String[] args) {
Scanner inp = new Scanner(System.in);
System.out.print("Number-of-buckets> ");
hashTable<String, String> ht = new hashTable<>(Integer.parseInt(inp.nextLine()));
String key;
while (true) {
System.out.println();
... |
diff --git a/onebusaway-nyc-admin-webapp/src/main/java/org/onebusaway/nyc/admin/service/impl/FileServiceImpl.java b/onebusaway-nyc-admin-webapp/src/main/java/org/onebusaway/nyc/admin/service/impl/FileServiceImpl.java
index 7535d4572..5b6035b98 100644
--- a/onebusaway-nyc-admin-webapp/src/main/java/org/onebusaway/nyc/ad... | true | true | public boolean createBundleDirectory(String filename) {
try {
/*
* a file needs to be written for a directory to exist create README file,
* which could optionally contain meta-data such as creator, production
* mode, etc.
*/
File tmpFile = File.createTempFile("README", "tx... | public boolean createBundleDirectory(String filename) {
try {
/*
* a file needs to be written for a directory to exist create README file,
* which could optionally contain meta-data such as creator, production
* mode, etc.
*/
File tmpFile = File.createTempFile("README", "tx... |
diff --git a/src/TestPackaging/TestScript.java b/src/TestPackaging/TestScript.java
index cedb6cd..ae6f507 100644
--- a/src/TestPackaging/TestScript.java
+++ b/src/TestPackaging/TestScript.java
@@ -1,136 +1,136 @@
package TestPackaging;
import TestPackaging.Conversions.PaintUtils.PaintUtils;
import org.powerbot.eve... | false | true | public void run() {
if(ctx.game.isLoggedIn()){ //Game.isLoggedIn()){
if(!isSmeared && wUsername.isVisible()){
createBlurredImage(5);
isSmeared = true;
}
while(isSmeared){
sleep((int) 100L);
}
}
//... | public void run() {
if(ctx.game.isLoggedIn()){ //Game.isLoggedIn()){
if(!isSmeared && wUsername.isVisible()){
createBlurredImage(5);
isSmeared = true;
}
while(isSmeared){
sleep((int) 100L); //TODO Find out what replaces... |
diff --git a/tools/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java b/tools/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java
index 88f1ad1e..b60c837f 100644
--- a/tools/ddms/libs/ddmuilib/src/com/android/ddmuilib/ScreenShotDialog.java
+++ b/tools/ddms/libs/ddmuilib/src/com/android/ddmu... | false | true | private void createContents(final Shell shell) {
GridData data;
final int colCount = 4;
shell.setLayout(new GridLayout(colCount, true));
// "refresh" button
Button refresh = new Button(shell, SWT.PUSH);
refresh.setText("Refresh");
data = new GridData(GridDa... | private void createContents(final Shell shell) {
GridData data;
final int colCount = 4;
shell.setLayout(new GridLayout(colCount, true));
// "refresh" button
Button refresh = new Button(shell, SWT.PUSH);
refresh.setText("Refresh");
data = new GridData(GridDa... |
diff --git a/contentconnector-core/src/main/java/com/gentics/cr/plink/PlinkProcessor.java b/contentconnector-core/src/main/java/com/gentics/cr/plink/PlinkProcessor.java
index c652087e..1d597fbc 100644
--- a/contentconnector-core/src/main/java/com/gentics/cr/plink/PlinkProcessor.java
+++ b/contentconnector-core/src/main... | false | true | public String getLink(PLinkInformation plink, CRRequest request) {
// starttime
long start = new Date().getTime();
String link = "";
String contentid = plink.getContentId();
String cacheKey = contentid;
String type = "";
if (request.getRequest() != null && request.getRequest() instanceof HttpServle... | public String getLink(PLinkInformation plink, CRRequest request) {
// starttime
long start = new Date().getTime();
String link = "";
String contentid = plink.getContentId();
String cacheKey = contentid;
String type = "";
if (request.getRequest() != null && request.getRequest() instanceof HttpServlet... |
diff --git a/src/main/java/org/mybatis/spring/SqlSessionFactoryBean.java b/src/main/java/org/mybatis/spring/SqlSessionFactoryBean.java
index dd495c1..046a4cf 100644
--- a/src/main/java/org/mybatis/spring/SqlSessionFactoryBean.java
+++ b/src/main/java/org/mybatis/spring/SqlSessionFactoryBean.java
@@ -1,333 +1,349 @@
/*... | false | true | protected SqlSessionFactory buildSqlSessionFactory() throws IOException, IllegalAccessException,
InstantiationException {
XMLConfigBuilder xmlConfigBuilder;
Configuration configuration;
if (configLocation != null) {
try {
Reader reader = new InputStr... | protected SqlSessionFactory buildSqlSessionFactory() throws IOException, IllegalAccessException,
InstantiationException {
XMLConfigBuilder xmlConfigBuilder;
Configuration configuration;
if (configLocation != null) {
Reader reader = null;
try {
... |
diff --git a/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/api/notify/PropertiesEditingSemanticLister.java b/plugins/org.eclipse.emf.eef.runtime/src/org/eclipse/emf/eef/runtime/api/notify/PropertiesEditingSemanticLister.java
index 99346ae37..76fd3aedf 100644
--- a/plugins/org.eclipse.emf.eef.runti... | true | true | public void notifyChanged(final Notification notification) {
if (part == null)
component.dispose();
else {
Runnable updateRunnable = new Runnable() {
public void run() {
runUpdateRunnable(notification);
}
};
if (null == Display.getCurrent()) {
PlatformUI.getWorkbench().getDisplay().syn... | public void notifyChanged(final Notification notification) {
if (part == null)
component.dispose();
else {
Runnable updateRunnable = new Runnable() {
public void run() {
runUpdateRunnable(notification);
}
};
if (null == Display.getCurrent()) {
PlatformUI.getWorkbench().getDisplay().asy... |
diff --git a/org.coreasm.engine/src/org/coreasm/engine/informationHandler/AbstractDispatcher.java b/org.coreasm.engine/src/org/coreasm/engine/informationHandler/AbstractDispatcher.java
index 9efbb64..631536c 100644
--- a/org.coreasm.engine/src/org/coreasm/engine/informationHandler/AbstractDispatcher.java
+++ b/org.core... | false | true | private synchronized void notifyObservers() {
if (!this.newActions.isEmpty()) {
for (DispatcherContext dispInfo : this.newActions) {
for (IInformationDispatchObserver obs : observers.values()) {
if (dispInfo.getAction().equals(Action.CREATION)) {
obs.informationCreated(dispInfo.getInformation());
... | private synchronized void notifyObservers() {
if (!this.newActions.isEmpty()) {
for (DispatcherContext dispInfo : this.newActions) {
for (IInformationDispatchObserver obs : observers.values()) {
if (dispInfo.getAction().equals(Action.CREATION)) {
obs.informationCreated(dispInfo.getInformation());
... |
diff --git a/cat-consumer-advanced/src/test/java/com/dianping/cat/consumer/advanced/MetricAnalyzerTest.java b/cat-consumer-advanced/src/test/java/com/dianping/cat/consumer/advanced/MetricAnalyzerTest.java
index 1fd386346..a6a510047 100644
--- a/cat-consumer-advanced/src/test/java/com/dianping/cat/consumer/advanced/Metr... | false | true | public void test() {
MetricAnalyzer analyzer = new MetricAnalyzer();
String data = "aaa=1.1&a=1.1&abc=2.2&c=1.2&aaaa=11.1&abbbb=1.1&ssabc=2.2&sc=1.2";
long t = System.currentTimeMillis();
for (int i = 0; i < 10000000; i++) {
analyzer.parseValue("abc", data);
}
System.out.println(System.currentTimeMi... | public void test() {
MetricAnalyzer analyzer = new MetricAnalyzer();
String data = "aaa=1.1&a=1.1&abc=2.2&c=1.2&aaaa=11.1&abbbb=1.1&ssabc=2.2&sc=1.2";
long t = System.currentTimeMillis();
for (int i = 0; i < 1000; i++) {
analyzer.parseValue("abc", data);
}
System.out.println(System.currentTimeMillis... |
diff --git a/src/org/eclipse/jface/dialogs/InputDialog.java b/src/org/eclipse/jface/dialogs/InputDialog.java
index dabafc84..f9de32f2 100644
--- a/src/org/eclipse/jface/dialogs/InputDialog.java
+++ b/src/org/eclipse/jface/dialogs/InputDialog.java
@@ -1,229 +1,230 @@
/***************************************************... | true | true | protected Control createDialogArea(Composite parent) {
// create composite
Composite composite = (Composite)super.createDialogArea(parent);
// create message
if (message != null) {
Label label = new Label(composite, SWT.WRAP);
label.setText(message);
GridData data = new GridData(
GridData.GRAB_HORIZONTAL ... | protected Control createDialogArea(Composite parent) {
// create composite
Composite composite = (Composite)super.createDialogArea(parent);
// create message
if (message != null) {
Label label = new Label(composite, SWT.WRAP);
label.setText(message);
GridData data = new GridData(
GridData.GRAB_HORIZONTAL ... |
diff --git a/src/com/FedoraPlanet/Viewer/PlanetFedoraViewer.java b/src/com/FedoraPlanet/Viewer/PlanetFedoraViewer.java
index 6b6991f..7ec199d 100644
--- a/src/com/FedoraPlanet/Viewer/PlanetFedoraViewer.java
+++ b/src/com/FedoraPlanet/Viewer/PlanetFedoraViewer.java
@@ -1,37 +1,37 @@
/*
Licensed to the Apache So... | false | true | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
super.setIntegerProperty("splashscreen", R.drawable.splash);
super.loadUrl("file:///android_asset/www/index.html", 60000);
super.setIntegerProperty("loadUrlTimeoutValue", 60000);
}
| public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
super.setIntegerProperty("loadUrlTimeoutValue", 60000);
super.setIntegerProperty("splashscreen", R.drawable.splash);
super.loadUrl("file:///android_asset/www/index.html", 60000);
}
|
diff --git a/src/main/java/com/lyndir/lhunath/snaplog/webapp/servlet/ImageServlet.java b/src/main/java/com/lyndir/lhunath/snaplog/webapp/servlet/ImageServlet.java
index 2b685ef..728a1b1 100644
--- a/src/main/java/com/lyndir/lhunath/snaplog/webapp/servlet/ImageServlet.java
+++ b/src/main/java/com/lyndir/lhunath/snaplog/... | true | true | protected void doGet(final HttpServletRequest req, final HttpServletResponse resp)
throws ServletException, IOException {
try {
String userName = req.getParameter( PARAM_USER );
String albumName = req.getParameter( PARAM_ALBUM );
String mediaName = req.getPar... | protected void doGet(final HttpServletRequest req, final HttpServletResponse resp)
throws ServletException, IOException {
try {
String userName = req.getParameter( PARAM_USER );
String albumName = req.getParameter( PARAM_ALBUM );
String mediaName = req.getPar... |
diff --git a/trunk/kernel-private/src/main/java/org/sakaiproject/springframework/orm/hibernate/dialect/db2/DB2Dialect9.java b/trunk/kernel-private/src/main/java/org/sakaiproject/springframework/orm/hibernate/dialect/db2/DB2Dialect9.java
index f1c9e9ab..61b0309b 100644
--- a/trunk/kernel-private/src/main/java/org/sakaip... | true | true | public DB2Dialect9() {
super();
registerColumnType( Types.VARBINARY, "LONG VARCHAR FOR BIT DATA" );
registerColumnType( Types.VARCHAR, "clob(1000000000)" );
registerColumnType( Types.VARCHAR, 1000000000, "clob($l)" );
registerColumnType( Types.VARCHAR, 32704, "varchar($l)" );
... | public DB2Dialect9() {
super();
registerColumnType( Types.VARBINARY, "LONG VARCHAR FOR BIT DATA" );
registerColumnType( Types.VARCHAR, "clob(1000000000)" );
registerColumnType( Types.VARCHAR, 1000000000, "clob($l)" );
registerColumnType( Types.VARCHAR, 3999, "varchar($l)" );
... |
diff --git a/src/main/java/edu/sc/seis/TauP/TauP_Wavefront.java b/src/main/java/edu/sc/seis/TauP/TauP_Wavefront.java
index dc4a69e..df072fa 100644
--- a/src/main/java/edu/sc/seis/TauP/TauP_Wavefront.java
+++ b/src/main/java/edu/sc/seis/TauP/TauP_Wavefront.java
@@ -1,321 +1,321 @@
package edu.sc.seis.TauP;
import ja... | false | true | public void printResult(PrintWriter out) throws IOException {
String byTimePsFile = psFile;
double radiusOfEarth = tModDepth.getRadiusOfEarth();
HashSet<Float> keySet = new HashSet<Float>();
for (SeismicPhase phase : result.keySet()) {
Map<Float, List<TimeDist>> phaseResu... | public void printResult(PrintWriter out) throws IOException {
String byTimePsFile = psFile;
double radiusOfEarth = tModDepth.getRadiusOfEarth();
HashSet<Float> keySet = new HashSet<Float>();
for (SeismicPhase phase : result.keySet()) {
Map<Float, List<TimeDist>> phaseResu... |
diff --git a/src/main/java/plugins/WebOfTrust/pages/ShowIdentityController.java b/src/main/java/plugins/WebOfTrust/pages/ShowIdentityController.java
index acfcc53..b34c851 100644
--- a/src/main/java/plugins/WebOfTrust/pages/ShowIdentityController.java
+++ b/src/main/java/plugins/WebOfTrust/pages/ShowIdentityController.... | true | true | public void handleMethodGET(URI uri, HTTPRequest request, ToadletContext ctx) throws ToadletContextClosedException, IOException {
if(WebOfTrust.allowFullAccessOnly && !ctx.isAllowedFullAccess()) {
writeReply(ctx, 403, "text/plain", "forbidden", "Your host is not allowed to access this page.");
return;
}
Pa... | public void handleMethodGET(URI uri, HTTPRequest request, ToadletContext ctx) throws ToadletContextClosedException, IOException {
if(WebOfTrust.allowFullAccessOnly && !ctx.isAllowedFullAccess()) {
writeReply(ctx, 403, "text/plain", "forbidden", "Your host is not allowed to access this page.");
return;
}
Pa... |
diff --git a/openFaces/source/org/openfaces/taglib/internal/filter/ExpressionFilterTag.java b/openFaces/source/org/openfaces/taglib/internal/filter/ExpressionFilterTag.java
index 567dc6a37..309c454ac 100644
--- a/openFaces/source/org/openfaces/taglib/internal/filter/ExpressionFilterTag.java
+++ b/openFaces/source/org/o... | true | true | public void setComponentProperties(FacesContext context, UIComponent component) {
super.setComponentProperties(context, component);
ExpressionFilter filter = (ExpressionFilter) component;
String expression = getPropertyValue("expression");
if (getExpressionCreator().isValueReferenc... | public void setComponentProperties(FacesContext context, UIComponent component) {
super.setComponentProperties(context, component);
ExpressionFilter filter = (ExpressionFilter) component;
String expression = getPropertyValue("expression");
if (getExpressionCreator().isValueReferenc... |
diff --git a/workspace/enwida/src/main/java/de/enwida/web/dao/implementation/AspectDaoImpl.java b/workspace/enwida/src/main/java/de/enwida/web/dao/implementation/AspectDaoImpl.java
index 7df061a3..c5d5f0a9 100644
--- a/workspace/enwida/src/main/java/de/enwida/web/dao/implementation/AspectDaoImpl.java
+++ b/workspace/en... | true | true | public List<AspectRight> getAllAspects(long roleID) {
String sql = "select * FROM users.rights";
Connection conn = null;
ArrayList<AspectRight> rights = new ArrayList<AspectRight>();
try {
conn = datasource.getConnection();
PreparedStatement ps = conn.prepareS... | public List<AspectRight> getAllAspects(long roleID) {
String sql = "select * FROM users.rights";
Connection conn = null;
ArrayList<AspectRight> rights = new ArrayList<AspectRight>();
try {
conn = datasource.getConnection();
PreparedStatement ps = conn.prepareS... |
diff --git a/src/com/fluendo/plugin/HTTPSrc.java b/src/com/fluendo/plugin/HTTPSrc.java
index a0a8cc6..3e81e43 100644
--- a/src/com/fluendo/plugin/HTTPSrc.java
+++ b/src/com/fluendo/plugin/HTTPSrc.java
@@ -1,265 +1,265 @@
/* Copyright (C) <2004> Wim Taymans <wim@fluendo.com>
*
* This library is free software; you c... | false | true | protected void taskFunc()
{
int ret;
Buffer data = Buffer.create();
data.ensureSize (readSize);
data.offset = 0;
try {
data.length = input.read (data.data, 0, readSize);
}
catch (Exception e) {
e.printStackTrace();
data.length = 0;
}
if (da... | protected void taskFunc()
{
int ret;
Buffer data = Buffer.create();
data.ensureSize (readSize);
data.offset = 0;
try {
data.length = input.read (data.data, 0, readSize);
}
catch (Exception e) {
e.printStackTrace();
data.length = 0;
}
if (da... |
diff --git a/maven-scm-api/src/main/java/org/apache/maven/scm/util/AbstractConsumer.java b/maven-scm-api/src/main/java/org/apache/maven/scm/util/AbstractConsumer.java
index 7697f4d1..28915553 100644
--- a/maven-scm-api/src/main/java/org/apache/maven/scm/util/AbstractConsumer.java
+++ b/maven-scm-api/src/main/java/org/a... | false | true | protected Date parseDate( String date, String userPattern, String defaultPattern, Locale locale )
{
DateFormat format;
String patternUsed = null;
if ( StringUtils.isNotEmpty( userPattern ) )
{
format = new SimpleDateFormat( userPattern );
pattern... | protected Date parseDate( String date, String userPattern, String defaultPattern, Locale locale )
{
DateFormat format;
String patternUsed = null;
if ( StringUtils.isNotEmpty( userPattern ) )
{
format = new SimpleDateFormat( userPattern );
pattern... |
diff --git a/src/com/github/igotyou/FactoryMod/listeners/BlockListener.java b/src/com/github/igotyou/FactoryMod/listeners/BlockListener.java
index c47b5a7..072c6db 100644
--- a/src/com/github/igotyou/FactoryMod/listeners/BlockListener.java
+++ b/src/com/github/igotyou/FactoryMod/listeners/BlockListener.java
@@ -1,370 +... | false | true | public void playerInteractionEvent(PlayerInteractEvent e)
{
Block clicked = e.getClickedBlock();
Player player = e.getPlayer();
//if the player left clicked a block
if (e.getAction().equals(Action.LEFT_CLICK_BLOCK))
{
//If the player was holding a item matching the interaction material
if (player.g... | public void playerInteractionEvent(PlayerInteractEvent e)
{
Block clicked = e.getClickedBlock();
Player player = e.getPlayer();
//if the player left clicked a block
if (e.getAction().equals(Action.LEFT_CLICK_BLOCK))
{
//If the player was holding a item matching the interaction material
if (player.g... |
diff --git a/org/xbill/DNS/utils/hexdump.java b/org/xbill/DNS/utils/hexdump.java
index b85e732..0f5a9dc 100644
--- a/org/xbill/DNS/utils/hexdump.java
+++ b/org/xbill/DNS/utils/hexdump.java
@@ -1,54 +1,55 @@
// Copyright (c) 1999 Brian Wellington (bwelling@xbill.org)
// Portions Copyright (c) 1999 Network Associates, ... | false | true | public static String
dump(String description, byte [] b, int offset, int length) {
StringBuffer sb = new StringBuffer();
sb.append(length);
sb.append(" bytes");
if (description != null) {
sb.append(" (");
sb.append(description);
sb.append(')');
}
sb.append(':');
int prefixlen = sb.toString().length();
p... | public static String
dump(String description, byte [] b, int offset, int length) {
StringBuffer sb = new StringBuffer();
sb.append(length);
sb.append("b");
if (description != null) {
sb.append(" (");
sb.append(description);
sb.append(')');
}
sb.append(':');
int prefixlen = sb.toString().length();
prefix... |
diff --git a/core/src/main/java/org/infinispan/marshall/exts/EnumSetExternalizer.java b/core/src/main/java/org/infinispan/marshall/exts/EnumSetExternalizer.java
index 73dc648a97..4d0c571fa4 100644
--- a/core/src/main/java/org/infinispan/marshall/exts/EnumSetExternalizer.java
+++ b/core/src/main/java/org/infinispan/mars... | true | true | public Set readObject(ObjectInput input) throws IOException, ClassNotFoundException {
int magicNumber = input.readUnsignedByte();
if (magicNumber == UNKNOWN_ENUM_SET)
return (Set) input.readObject();
AbstractSet<Enum> enumSet = null;
int size = UnsignedNumeric.readUnsignedInt(input)... | public Set readObject(ObjectInput input) throws IOException, ClassNotFoundException {
int magicNumber = input.readUnsignedByte();
if (magicNumber == UNKNOWN_ENUM_SET)
return (Set) input.readObject();
AbstractSet<Enum> enumSet = null;
int size = UnsignedNumeric.readUnsignedInt(input)... |
diff --git a/ufd/GreatestCommonDivisorModular.java b/ufd/GreatestCommonDivisorModular.java
index b9c7bbc4..12147e63 100644
--- a/ufd/GreatestCommonDivisorModular.java
+++ b/ufd/GreatestCommonDivisorModular.java
@@ -1,286 +1,290 @@
/*
* $Id$
*/
package edu.jas.ufd;
import org.apache.log4j.Logger;
impor... | false | true | public GenPolynomial<BigInteger> gcd( GenPolynomial<BigInteger> P,
GenPolynomial<BigInteger> S ) {
if ( S == null || S.isZERO() ) {
return P;
}
if ( P == null || P.isZERO() ) {
return S;
}
GenPolynomialRing<Big... | public GenPolynomial<BigInteger> gcd( GenPolynomial<BigInteger> P,
GenPolynomial<BigInteger> S ) {
if ( S == null || S.isZERO() ) {
return P;
}
if ( P == null || P.isZERO() ) {
return S;
}
GenPolynomialRing<Big... |
diff --git a/htroot/Banner.java b/htroot/Banner.java
index 4576d25d4..27b95ca15 100644
--- a/htroot/Banner.java
+++ b/htroot/Banner.java
@@ -1,116 +1,116 @@
// Banner.java
// -----------------------
// part of YaCy
// (C) by Michael Peter Christen; mc@yacy.net
// first published on http://www.anomic.de
// Frankfu... | false | true | public static RasterPlotter respond(final RequestHeader header, final serverObjects post, final serverSwitch env) throws IOException {
final Switchboard sb = (Switchboard) env;
final String IMAGE = "htroot/env/grafics/yacy.gif";
int width = 468;
int height = 60;
String bgcolo... | public static RasterPlotter respond(final RequestHeader header, final serverObjects post, final serverSwitch env) throws IOException {
final Switchboard sb = (Switchboard) env;
final String IMAGE = "htroot/env/grafics/yacy.gif";
int width = 468;
int height = 60;
String bgcolo... |
diff --git a/modules/plugin/arcsde/sde-dummy/src/main/java/com/esri/sde/sdk/client/SeRasterColumn.java b/modules/plugin/arcsde/sde-dummy/src/main/java/com/esri/sde/sdk/client/SeRasterColumn.java
index 180b6c236..ec52e118c 100644
--- a/modules/plugin/arcsde/sde-dummy/src/main/java/com/esri/sde/sdk/client/SeRasterColumn.... | true | true | public Integer getID() throws SeException{
// TODO Auto-generated method stub
return null;
}
| public SeObjectId getID() throws SeException{
// TODO Auto-generated method stub
return null;
}
|
diff --git a/ini/trakem2/display/Display.java b/ini/trakem2/display/Display.java
index 133f4ba5..1bb6add8 100644
--- a/ini/trakem2/display/Display.java
+++ b/ini/trakem2/display/Display.java
@@ -1,5569 +1,5578 @@
/**
TrakEM2 plugin for ImageJ(C).
Copyright (C) 2005-2009 Albert Cardona and Rodney Douglas.
This p... | false | true | public void actionPerformed(final ActionEvent ae) {
dispatcher.exec(new Runnable() { public void run() {
String command = ae.getActionCommand();
if (command.startsWith("Job")) {
if (Utils.checkYN("Really cancel job?")) {
project.getLoader().quitJob(command);
repairGUI();
}
return;
} else if (... | public void actionPerformed(final ActionEvent ae) {
dispatcher.exec(new Runnable() { public void run() {
String command = ae.getActionCommand();
if (command.startsWith("Job")) {
if (Utils.checkYN("Really cancel job?")) {
project.getLoader().quitJob(command);
repairGUI();
}
return;
} else if (... |
diff --git a/main/src/main/java/com/chinarewards/qqgbvpn/main/protocol/socket/mina/codec/MessageEncoder.java b/main/src/main/java/com/chinarewards/qqgbvpn/main/protocol/socket/mina/codec/MessageEncoder.java
index 41297128..18d42b86 100644
--- a/main/src/main/java/com/chinarewards/qqgbvpn/main/protocol/socket/mina/codec... | true | true | public void encode(IoSession session, Object message,
ProtocolEncoderOutput out) throws Exception {
log.debug("encode message start");
if (session != null && session.isConnected()) {
log.trace("Mina session ID: {}", session.getId());
}
Message msg = (Message) message;
HeadMessage headMessage = ms... | public void encode(IoSession session, Object message,
ProtocolEncoderOutput out) throws Exception {
log.debug("encode message start");
if (session != null && session.isConnected()) {
log.trace("Mina session ID: {}", session.getId());
}
Message msg = (Message) message;
HeadMessage headMessage = ms... |
diff --git a/src/ClientHandler.java b/src/ClientHandler.java
index b0ccd28..5a467a3 100644
--- a/src/ClientHandler.java
+++ b/src/ClientHandler.java
@@ -1,154 +1,157 @@
import java.net.*;
import java.io.*;
public class ClientHandler implements Runnable
{
private Socket client;
ClientHandler(Socket client)
... | false | true | public void run()
{
BufferedReader inputReader;
PrintStream outputStream;
URL url;
HttpRequest request;
HttpResponse response;
Socket upstreamSocket;
try
{
inputReader = new BufferedReader(new InputStreamReader(this.client.getInputStream()));
outputStream = new PrintStream(this.client.getOutput... | public void run()
{
BufferedReader inputReader;
PrintStream outputStream;
URL url;
HttpRequest request;
HttpResponse response;
Socket upstreamSocket;
try
{
inputReader = new BufferedReader(new InputStreamReader(this.client.getInputStream()));
outputStream = new PrintStream(this.client.getOutput... |
diff --git a/src/hunternif/mc/dota2items/network/EntityStatsSyncPacket.java b/src/hunternif/mc/dota2items/network/EntityStatsSyncPacket.java
index 4365afd..767d264 100644
--- a/src/hunternif/mc/dota2items/network/EntityStatsSyncPacket.java
+++ b/src/hunternif/mc/dota2items/network/EntityStatsSyncPacket.java
@@ -1,86 +1... | true | true | public void execute(EntityPlayer player, Side side) throws ProtocolException {
if (side.isClient()) {
Entity entity = Minecraft.getMinecraft().theWorld.getEntityByID(entityID);
if (entity != null && entity instanceof EntityLivingBase) {
EntityStats stats = Dota2Items.mechanics.getOrCreateEntityStats((Entit... | public void execute(EntityPlayer player, Side side) throws ProtocolException {
if (side.isClient()) {
Entity entity = Minecraft.getMinecraft().theWorld.getEntityByID(entityID);
if (entity != null && entity instanceof EntityLivingBase) {
EntityStats stats = Dota2Items.mechanics.getOrCreateEntityStats((Entit... |
diff --git a/src/org/geworkbench/builtin/projects/util/CaARRAYPanel.java b/src/org/geworkbench/builtin/projects/util/CaARRAYPanel.java
index 82402024..5111573f 100755
--- a/src/org/geworkbench/builtin/projects/util/CaARRAYPanel.java
+++ b/src/org/geworkbench/builtin/projects/util/CaARRAYPanel.java
@@ -1,857 +1,855 @@
... | false | true | private void jbInit() throws Exception {
border1 = BorderFactory.createLineBorder(SystemColor.controlText, 1);
border2 = BorderFactory.createLineBorder(SystemColor.controlText, 1);
grid4.setColumns(2);
grid4.setHgap(10);
grid4.setRows(1);
grid4.setVgap(10);
jLabel4.setMaximumSize(new Dimension(200, 15));... | private void jbInit() throws Exception {
border1 = BorderFactory.createLineBorder(SystemColor.controlText, 1);
border2 = BorderFactory.createLineBorder(SystemColor.controlText, 1);
grid4.setColumns(2);
grid4.setHgap(10);
grid4.setRows(1);
grid4.setVgap(10);
jLabel4.setMaximumSize(new Dimension(200, 15));... |
diff --git a/src/ui-test/java/com/gmail/at/zhuikov/aleksandr/it/AbstractWebDriverTest.java b/src/ui-test/java/com/gmail/at/zhuikov/aleksandr/it/AbstractWebDriverTest.java
index 0c826a5..776454f 100644
--- a/src/ui-test/java/com/gmail/at/zhuikov/aleksandr/it/AbstractWebDriverTest.java
+++ b/src/ui-test/java/com/gmail/at... | true | true | protected WebDriver createDriver() {
LOG.info("Creating WebDriver");
String seleniumDriverUri = System.getenv("SELENIUM_DRIVER");
if (hasText(seleniumDriverUri)) {
seleniumDriverUri = seleniumDriverUri.replace("windows 2008", "win7");
seleniumDriverUri += "&job-name=" + getClass().getName() + "." + na... | protected WebDriver createDriver() {
LOG.info("Creating WebDriver");
String seleniumDriverUri = System.getenv("SELENIUM_DRIVER");
if (hasText(seleniumDriverUri)) {
seleniumDriverUri = seleniumDriverUri.replace("Windows 2008", "win7");
seleniumDriverUri += "&job-name=" + getClass().getName() + "." + na... |
diff --git a/src/org/telekommunisten/ListPdn.java b/src/org/telekommunisten/ListPdn.java
index f12c613..4b40e75 100644
--- a/src/org/telekommunisten/ListPdn.java
+++ b/src/org/telekommunisten/ListPdn.java
@@ -1,138 +1,138 @@
package org.telekommunisten;
import android.app.Activity;
import android.app.ListActivity;... | true | true | protected void onStart() {
// TODO Auto-generated method stub
Log.d(tag,"onstart");
super.onStart();
if (PreferenceManager.getDefaultSharedPreferences(this).getString("dialstation_user_path", null) == null)
{
startActivity(new Intent(this,SettingsActivity.class));
... | protected void onStart() {
// TODO Auto-generated method stub
Log.d(tag,"onstart");
super.onStart();
if (PreferenceManager.getDefaultSharedPreferences(this).getString("dialstation_user_path", null) == null)
{
startActivity(new Intent(this,SettingsActivity.class));
... |
diff --git a/src/main/java/nl/mineleni/cbsviewer/servlet/wms/FeatureInfoResponseConverter.java b/src/main/java/nl/mineleni/cbsviewer/servlet/wms/FeatureInfoResponseConverter.java
index 2f73d40bb..f2e247fe1 100644
--- a/src/main/java/nl/mineleni/cbsviewer/servlet/wms/FeatureInfoResponseConverter.java
+++ b/src/main/java... | false | true | private static String convertGML(final InputStream gmlStream,
final String[] attributes) throws IOException {
final StringBuilder sb = new StringBuilder();
try {
final GML gml = new GML(Version.WFS1_0);
final SimpleFeatureIterator iter = gml
.decodeFeatureIterator(gmlStream);
if (iter.hasNext()) {... | private static String convertGML(final InputStream gmlStream,
final String[] attributes) throws IOException {
final StringBuilder sb = new StringBuilder();
try {
final GML gml = new GML(Version.WFS1_0);
final SimpleFeatureIterator iter = gml
.decodeFeatureIterator(gmlStream);
if (iter.hasNext()) {... |
diff --git a/src/org/objectweb/proactive/ic2d/gui/jobmonitor/NodeExploration.java b/src/org/objectweb/proactive/ic2d/gui/jobmonitor/NodeExploration.java
index 1310a7705..f25307a01 100644
--- a/src/org/objectweb/proactive/ic2d/gui/jobmonitor/NodeExploration.java
+++ b/src/org/objectweb/proactive/ic2d/gui/jobmonitor/Node... | true | true | private void handleProActiveRuntime(ProActiveRuntime pr, int depth)
throws ProActiveException {
if (pr instanceof RemoteProActiveRuntime && !(pr instanceof RemoteProActiveRuntimeAdapter))
pr = new RemoteProActiveRuntimeAdapter((RemoteProActiveRuntime) pr);
String vmName = pr.getVMI... | private void handleProActiveRuntime(ProActiveRuntime pr, int depth)
throws ProActiveException {
if (pr instanceof RemoteProActiveRuntime && !(pr instanceof RemoteProActiveRuntimeAdapter))
pr = new RemoteProActiveRuntimeAdapter((RemoteProActiveRuntime) pr);
String vmName = pr.getVMI... |
diff --git a/src/main/java/org/oneandone/idev/johanna/protocol/impl/VarReadRequest.java b/src/main/java/org/oneandone/idev/johanna/protocol/impl/VarReadRequest.java
index e5769af..c851195 100644
--- a/src/main/java/org/oneandone/idev/johanna/protocol/impl/VarReadRequest.java
+++ b/src/main/java/org/oneandone/idev/johan... | true | true | protected Response processSessionKey(SessionStore store, AbstractSession s, String name) {
if (!s.hasValue(name)) return Response.NOKEY;
return new Response(true, name);
}
| protected Response processSessionKey(SessionStore store, AbstractSession s, String name) {
if (!s.hasValue(name)) return Response.NOKEY;
return new Response(true, s.getValue(name));
}
|
diff --git a/Curiosity/src/edu/kit/curiosity/behaviors/tape/ObstacleFound.java b/Curiosity/src/edu/kit/curiosity/behaviors/tape/ObstacleFound.java
index 5378162..87a231b 100644
--- a/Curiosity/src/edu/kit/curiosity/behaviors/tape/ObstacleFound.java
+++ b/Curiosity/src/edu/kit/curiosity/behaviors/tape/ObstacleFound.java... | true | true | public void action() {
suppressed = false;
if (!Settings.obstacle) { //If not in obstacle mode - initialize obstacle mode
Settings.obstacle = true;
Settings.motorAAngle = 0;
pilot.travel(-10, true); // TODO true?
pilot.rotate(100, true); // TODO true?
}
while (!suppressed && light.getLightValue() <... | public void action() {
suppressed = false;
if (!Settings.obstacle) { //If not in obstacle mode - initialize obstacle mode
Settings.obstacle = true;
Settings.motorAAngle = 0;
pilot.travel(-10);
pilot.rotate(100);
}
while (!suppressed && light.getLightValue() < 50) { //arcs until line found
if (!p... |
diff --git a/luaj-vm/src/core/org/luaj/lib/BaseLib.java b/luaj-vm/src/core/org/luaj/lib/BaseLib.java
index f00d69b..7dfc333 100644
--- a/luaj-vm/src/core/org/luaj/lib/BaseLib.java
+++ b/luaj-vm/src/core/org/luaj/lib/BaseLib.java
@@ -1,445 +1,448 @@
/**
*
*/
package org.luaj.lib;
import java.io.ByteArrayInputS... | true | true | public boolean luaStackCall(LuaState vm) {
switch ( id ) {
case PRINT: {
int n = vm.gettop();
for ( int i=2; i<=n; i++ ) {
if ( i > 2 )
stdout.print( "\t" );
stdout.print( vm.tostring(i) );
}
stdout.println();
vm.settop(0);
break;
}
case PAIRS:
case IPAIRS: {
LValue v = vm.t... | public boolean luaStackCall(LuaState vm) {
switch ( id ) {
case PRINT: {
int n = vm.gettop();
for ( int i=2; i<=n; i++ ) {
if ( i > 2 )
stdout.print( "\t" );
stdout.print( vm.tostring(i) );
}
stdout.println();
vm.settop(0);
break;
}
case PAIRS:
case IPAIRS: {
LValue v = vm.t... |
diff --git a/src/org/antlr/codegen/RubyTarget.java b/src/org/antlr/codegen/RubyTarget.java
index bc08e11..d40a74b 100644
--- a/src/org/antlr/codegen/RubyTarget.java
+++ b/src/org/antlr/codegen/RubyTarget.java
@@ -1,73 +1,73 @@
/*
[The "BSD licence"]
Copyright (c) 2005 Martin Traverso
All rights reserved.
Red... | true | true | public String getTargetCharLiteralFromANTLRCharLiteral(
CodeGenerator generator,
String literal)
{
literal = literal.substring(1, literal.length() - 1);
String result = "";
if (literal.equals("\\")) {
result += "\\\\";
}
else if (lite... | public String getTargetCharLiteralFromANTLRCharLiteral(
CodeGenerator generator,
String literal)
{
literal = literal.substring(1, literal.length() - 1);
String result = "?";
if (literal.equals("\\")) {
result += "\\\\";
}
else if (lit... |
diff --git a/src/org/encog/neural/networks/structure/NeuralStructure.java b/src/org/encog/neural/networks/structure/NeuralStructure.java
index f7de78b5c..d2d5538c0 100644
--- a/src/org/encog/neural/networks/structure/NeuralStructure.java
+++ b/src/org/encog/neural/networks/structure/NeuralStructure.java
@@ -1,805 +1,80... | true | true | public void flatten() {
final boolean isRBF = false;
final Map<Layer, FlatLayer> regular2flat = new HashMap<Layer, FlatLayer>();
final Map<FlatLayer, Layer> flat2regular = new HashMap<FlatLayer, Layer>();
final List<ObjectPair<Layer, Layer>> contexts = new ArrayList<ObjectPair<Layer, Layer>>();
this.flat = n... | public void flatten() {
final boolean isRBF = false;
final Map<Layer, FlatLayer> regular2flat = new HashMap<Layer, FlatLayer>();
final Map<FlatLayer, Layer> flat2regular = new HashMap<FlatLayer, Layer>();
final List<ObjectPair<Layer, Layer>> contexts = new ArrayList<ObjectPair<Layer, Layer>>();
this.flat = n... |
diff --git a/FileDuplicateFinderUI/src/main/groovy/com/sleepcamel/fileduplicatefinder/ui/components/SizeWidget.java b/FileDuplicateFinderUI/src/main/groovy/com/sleepcamel/fileduplicatefinder/ui/components/SizeWidget.java
index f5413d8..1bc72c3 100644
--- a/FileDuplicateFinderUI/src/main/groovy/com/sleepcamel/fileduplic... | true | true | public SizeWidget(Composite parent, int style) {
super(parent, SWT.NONE);
RowLayout rowLayout = new RowLayout(SWT.HORIZONTAL);
rowLayout.justify = true;
rowLayout.fill = true;
rowLayout.center = true;
setLayout(rowLayout);
spinner = new Spinner(this, SWT.BORDER);
spinner.setMaximum(Integer.MAX_VALUE -... | public SizeWidget(Composite parent, int style) {
super(parent, SWT.NONE);
RowLayout rowLayout = new RowLayout(SWT.HORIZONTAL);
rowLayout.justify = true;
rowLayout.fill = true;
rowLayout.center = true;
setLayout(rowLayout);
spinner = new Spinner(this, SWT.BORDER);
spinner.setMaximum(Integer.MAX_VALUE -... |
diff --git a/test/com/dmdirc/config/prefs/validator/URLProtocolValidatorTest.java b/test/com/dmdirc/config/prefs/validator/URLProtocolValidatorTest.java
index 29ce4fc04..b493bfdd1 100644
--- a/test/com/dmdirc/config/prefs/validator/URLProtocolValidatorTest.java
+++ b/test/com/dmdirc/config/prefs/validator/URLProtocolVa... | false | true | public void testValidate() {
IdentityManager.load();
final URLProtocolValidator validator = new URLProtocolValidator();
assertTrue(validator.validate(null).isFailure());
assertTrue(validator.validate("").isFailure());
assertTrue(validator.validate("http").isFailure());
... | public void testValidate() {
IdentityManager.load();
IdentityManager.getConfigIdentity().setOption("protocol", "http", "BROWSER");
final URLProtocolValidator validator = new URLProtocolValidator();
assertTrue(validator.validate(null).isFailure());
assertTrue(validator.validat... |
diff --git a/v9t9/v9t9-java/v9t9-engine/src/v9t9/engine/memory/MemoryEntryFactory.java b/v9t9/v9t9-java/v9t9-engine/src/v9t9/engine/memory/MemoryEntryFactory.java
index fd6ca84cd..f27b490eb 100644
--- a/v9t9/v9t9-java/v9t9-engine/src/v9t9/engine/memory/MemoryEntryFactory.java
+++ b/v9t9/v9t9-java/v9t9-engine/src/v9t9/e... | false | true | public void saveEntriesTo(Collection<MemoryEntryInfo> memoryEntries, Element root) {
Element memoryEntriesEl = root.getOwnerDocument().createElement("memoryEntries");
root.appendChild(memoryEntriesEl);
for (MemoryEntryInfo info : memoryEntries) {
Map<String, Object> properties = info.getProperties();
... | public void saveEntriesTo(Collection<MemoryEntryInfo> memoryEntries, Element root) {
Element memoryEntriesEl = root.getOwnerDocument().createElement("memoryEntries");
root.appendChild(memoryEntriesEl);
for (MemoryEntryInfo info : memoryEntries) {
Map<String, Object> properties = info.getProperties();
... |
diff --git a/javasrc/src/org/ccnx/ccn/impl/repo/PolicyXML.java b/javasrc/src/org/ccnx/ccn/impl/repo/PolicyXML.java
index 55d4cc855..88dce1b08 100644
--- a/javasrc/src/org/ccnx/ccn/impl/repo/PolicyXML.java
+++ b/javasrc/src/org/ccnx/ccn/impl/repo/PolicyXML.java
@@ -1,260 +1,259 @@
/**
* Part of the CCNx Java Library.... | true | true | public void decode(XMLDecoder decoder) throws ContentDecodingException {
decoder.readStartElement(getElementLabel());
PolicyElement foundElement;
do {
foundElement = null;
for (PolicyElement element : PolicyElement.values()) {
if (decoder.peekStartElement(element._stringValue)) {
foundElement = el... | public void decode(XMLDecoder decoder) throws ContentDecodingException {
decoder.readStartElement(getElementLabel());
PolicyElement foundElement;
do {
foundElement = null;
for (PolicyElement element : PolicyElement.values()) {
if (decoder.peekStartElement(element._stringValue)) {
foundElement = el... |
diff --git a/resources/tests/src/test/java/org/jboss/forge/addon/resource/monitor/ResourceMonitorTest.java b/resources/tests/src/test/java/org/jboss/forge/addon/resource/monitor/ResourceMonitorTest.java
index 500fc3d3e..45c84d584 100644
--- a/resources/tests/src/test/java/org/jboss/forge/addon/resource/monitor/Resource... | false | true | public void testResourceMonitorDirectoryWindows() throws Exception
{
Assume.assumeTrue("FORGE-1679", OperatingSystemUtils.isWindows());
File tempDir = OperatingSystemUtils.createTempDir();
DirectoryResource tempDirResource = resourceFactory.create(DirectoryResource.class, tempDir);
monitor... | public void testResourceMonitorDirectoryWindows() throws Exception
{
Assume.assumeTrue("FORGE-1679", OperatingSystemUtils.isWindows());
File tempDir = OperatingSystemUtils.createTempDir();
DirectoryResource tempDirResource = resourceFactory.create(DirectoryResource.class, tempDir);
monitor... |
diff --git a/jetty/src/main/java/org/mortbay/jetty/handler/DefaultHandler.java b/jetty/src/main/java/org/mortbay/jetty/handler/DefaultHandler.java
index d5608352a..1bf26e570 100644
--- a/jetty/src/main/java/org/mortbay/jetty/handler/DefaultHandler.java
+++ b/jetty/src/main/java/org/mortbay/jetty/handler/DefaultHandler.... | false | true | public void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException
{
if (response.isCommitted() || HttpConnection.getCurrentConnection().getRequest().isHandled())
return;
String method=request.getMet... | public void handle(String target, HttpServletRequest request, HttpServletResponse response, int dispatch) throws IOException, ServletException
{
if (response.isCommitted() || HttpConnection.getCurrentConnection().getRequest().isHandled())
return;
String method=request.getMet... |
diff --git a/modules/org.restlet/src/org/restlet/resource/Finder.java b/modules/org.restlet/src/org/restlet/resource/Finder.java
index af1e6aa50..5f9366972 100644
--- a/modules/org.restlet/src/org/restlet/resource/Finder.java
+++ b/modules/org.restlet/src/org/restlet/resource/Finder.java
@@ -1,511 +1,512 @@
/**
* Co... | true | true | public void handle(Request request, Response response) {
super.handle(request, response);
if (isStarted()) {
if (getTargetClass() == null) {
getLogger().warning(
"No target class was defined for this finder: "
+ toS... | public void handle(Request request, Response response) {
super.handle(request, response);
if (isStarted()) {
if (getTargetClass() == null) {
getLogger().warning(
"No target class was defined for this finder: "
+ toS... |
diff --git a/src/edu/isi/pegasus/common/util/CondorVersion.java b/src/edu/isi/pegasus/common/util/CondorVersion.java
index aec457499..fb7e95dbb 100644
--- a/src/edu/isi/pegasus/common/util/CondorVersion.java
+++ b/src/edu/isi/pegasus/common/util/CondorVersion.java
@@ -1,247 +1,246 @@
/**
* Copyright 2007-2008 Unive... | true | true | public String version(){
String version = null;
try{
//set the callback and run the grep command
CondorVersionCallback c = new CondorVersionCallback( );
Runtime r = Runtime.getRuntime();
Process p = r.exec( CONDOR_VERSION_COMMAND );
... | public String version(){
String version = null;
try{
//set the callback and run the grep command
CondorVersionCallback c = new CondorVersionCallback( );
Runtime r = Runtime.getRuntime();
Process p = r.exec( CONDOR_VERSION_COMMAND );
... |
diff --git a/source/yacy.java b/source/yacy.java
index 97c19f7bf..0cfc8e13b 100644
--- a/source/yacy.java
+++ b/source/yacy.java
@@ -1,837 +1,837 @@
//yacy.java
//-----------------------
//(C) by Michael Peter Christen; mc@anomic.de
//first published on http://www.yacy.net
//Frankfurt, Germany, 2004, 2005
//last ... | true | true | private static void startup(String homePath) {
long startup = yacyCore.universalTime();
try {
// start up
System.out.println(copyright);
System.out.println(hline);
// check java version
try {
String[] check = "a,b".split(",... | private static void startup(String homePath) {
long startup = yacyCore.universalTime();
try {
// start up
System.out.println(copyright);
System.out.println(hline);
// check java version
try {
String[] check = "a,b".split(",... |
diff --git a/PacDefence/src/towers/AbstractTower.java b/PacDefence/src/towers/AbstractTower.java
index a222daf..b63648f 100644
--- a/PacDefence/src/towers/AbstractTower.java
+++ b/PacDefence/src/towers/AbstractTower.java
@@ -1,703 +1,703 @@
/*
* This file is part of Pac Defence.
*
* Pac Defence is free softwar... | true | true | protected AbstractTower(Point p, Rectangle2D pathBounds, String name, int fireRate,
double range, double bulletSpeed, double damage, int width, int turretWidth,
boolean hasOverlay) {
// TODO make images all dependant on the name of the tower
centre = new Point(p);
this.pathBounds ... | protected AbstractTower(Point p, Rectangle2D pathBounds, String name, int fireRate,
double range, double bulletSpeed, double damage, int width, int turretWidth,
boolean hasOverlay) {
// TODO make images all dependant on the name of the tower
centre = new Point(p);
this.pathBounds ... |
diff --git a/clients/opennaas-gui-vcpe/src/main/java/org/opennaas/gui/vcpe/controllers/SingleProviderController.java b/clients/opennaas-gui-vcpe/src/main/java/org/opennaas/gui/vcpe/controllers/SingleProviderController.java
index 2be607c9b..ac66b3bd5 100644
--- a/clients/opennaas-gui-vcpe/src/main/java/org/opennaas/gui/... | true | true | public String updateVRRPIp(@ModelAttribute("logicalInfrastructure") SingleProviderLogical logical,
Model model, Locale locale) {
LOGGER.debug("update VRRP ip of VCPENetwork: " + logical);
try {
model.addAttribute("vcpeNetworkList", vcpeNetworkBO.getAllVCPENetworks());
vcpeNetworkBO.updateVRRPIp(logical);
... | public String updateVRRPIp(@ModelAttribute("logicalInfrastructure") SingleProviderLogical logical,
Model model, Locale locale) {
LOGGER.debug("update VRRP ip of VCPENetwork: " + logical);
try {
model.addAttribute("action", "update");
model.addAttribute("vcpeNetworkList", vcpeNetworkBO.getAllVCPENetworks()... |
diff --git a/frontend/grisu-client/src/main/java/org/vpac/grisu/frontend/control/login/LoginManager.java b/frontend/grisu-client/src/main/java/org/vpac/grisu/frontend/control/login/LoginManager.java
index 42498baf..f8c4ef01 100644
--- a/frontend/grisu-client/src/main/java/org/vpac/grisu/frontend/control/login/LoginMana... | true | true | public static ServiceInterface login(GlobusCredential cred, char[] password, String username,
String idp, LoginParams loginParams) throws LoginException,
IOException {
try {
addPluginsToClasspath();
} catch (IOException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
throw new Run... | public static ServiceInterface login(GlobusCredential cred, char[] password, String username,
String idp, LoginParams loginParams) throws LoginException {
try {
addPluginsToClasspath();
} catch (IOException e2) {
// TODO Auto-generated catch block
e2.printStackTrace();
throw new RuntimeException(e2... |
diff --git a/src/com/m0pt0pmatt/bettereconomy/EconomyListener.java b/src/com/m0pt0pmatt/bettereconomy/EconomyListener.java
index 9a44132..76cc5d6 100644
--- a/src/com/m0pt0pmatt/bettereconomy/EconomyListener.java
+++ b/src/com/m0pt0pmatt/bettereconomy/EconomyListener.java
@@ -1,95 +1,95 @@
package com.m0pt0pmatt.bette... | true | true | public void wildernessDeath(PlayerDeathEvent event) {
Player player = event.getEntity();
if(player.getLocation().getWorld().getName().equals("Wilderness")) {
Random random = new Random();
int percentLost = random.nextInt(30) + 40;
int inventoryAmount = 0;
int valueLost = 0;
// Iterates through arra... | public void wildernessDeath(PlayerDeathEvent event) {
Player player = event.getEntity();
if(player.getLocation().getWorld().getName().equals("Wilderness")) {
Random random = new Random();
int percentLost = random.nextInt(30) + 40;
int inventoryAmount = 0;
int valueLost = 0;
// Iterates through arra... |
diff --git a/src/plugins/KeyUtils/KeyExplorerUtils.java b/src/plugins/KeyUtils/KeyExplorerUtils.java
index c706c20..9f93447 100644
--- a/src/plugins/KeyUtils/KeyExplorerUtils.java
+++ b/src/plugins/KeyUtils/KeyExplorerUtils.java
@@ -1,488 +1,488 @@
/* This code is part of Freenet. It is distributed under the GNU Gener... | true | true | public static FetchResult splitGet(PluginRespirator pr, Metadata metadata) throws FetchException, MetadataParseException,
KeyListenerConstructionException {
if (!metadata.isSplitfile()) {
throw new MetadataParseException("uri did not point to splitfile");
}
final FetchWaiter fw = new FetchWaiter();
fi... | public static FetchResult splitGet(PluginRespirator pr, Metadata metadata) throws FetchException, MetadataParseException,
KeyListenerConstructionException {
if (!metadata.isSplitfile()) {
throw new MetadataParseException("uri did not point to splitfile");
}
final FetchWaiter fw = new FetchWaiter();
fi... |
diff --git a/scm-webapp/src/main/java/sonia/scm/security/SecurityFilter.java b/scm-webapp/src/main/java/sonia/scm/security/SecurityFilter.java
index 75b418dae..15a1341cf 100644
--- a/scm-webapp/src/main/java/sonia/scm/security/SecurityFilter.java
+++ b/scm-webapp/src/main/java/sonia/scm/security/SecurityFilter.java
@@ ... | false | true | public void doFilter(ServletRequest req, ServletResponse res,
FilterChain chain)
throws IOException, ServletException
{
if ((req instanceof HttpServletRequest)
&& (res instanceof HttpServletResponse))
{
HttpServletRequest request = (HttpServletRequest) req;
... | public void doFilter(ServletRequest req, ServletResponse res,
FilterChain chain)
throws IOException, ServletException
{
if ((req instanceof HttpServletRequest)
&& (res instanceof HttpServletResponse))
{
HttpServletRequest request = (HttpServletRequest) req;
... |
diff --git a/src/main/java/hudson/plugins/active_directory/ActiveDirectoryUserDetail.java b/src/main/java/hudson/plugins/active_directory/ActiveDirectoryUserDetail.java
index d1168ba..39cef66 100644
--- a/src/main/java/hudson/plugins/active_directory/ActiveDirectoryUserDetail.java
+++ b/src/main/java/hudson/plugins/act... | true | true | public ActiveDirectoryUserDetail(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, GrantedAuthority[] authorities) throws IllegalArgumentException {
super(username, password, enabled, accountNonExpired, credentialsNonExpire... | public ActiveDirectoryUserDetail(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, GrantedAuthority[] authorities) throws IllegalArgumentException {
// Acegi doesn't like null password, but during remember-me processing we ... |
diff --git a/src/com/android/inputmethod/latin/LatinIME.java b/src/com/android/inputmethod/latin/LatinIME.java
index 4c81b33b..18b277c5 100644
--- a/src/com/android/inputmethod/latin/LatinIME.java
+++ b/src/com/android/inputmethod/latin/LatinIME.java
@@ -1,1952 +1,1953 @@
/*
* Copyright (C) 2008-2009 Google Inc.
*... | true | true | public void onStartInputView(EditorInfo attribute, boolean restarting) {
// In landscape mode, this method gets called without the input view being created.
if (mInputView == null) {
return;
}
if (mRefreshKeyboardRequired) {
mRefreshKeyboardRequired = false;
... | public void onStartInputView(EditorInfo attribute, boolean restarting) {
// In landscape mode, this method gets called without the input view being created.
if (mInputView == null) {
return;
}
if (mRefreshKeyboardRequired) {
mRefreshKeyboardRequired = false;
... |
diff --git a/src/be/ibridge/kettle/trans/step/addsequence/AddSequence.java b/src/be/ibridge/kettle/trans/step/addsequence/AddSequence.java
index 48d1c9e8..8f4253cf 100644
--- a/src/be/ibridge/kettle/trans/step/addsequence/AddSequence.java
+++ b/src/be/ibridge/kettle/trans/step/addsequence/AddSequence.java
@@ -1,219 +1,... | true | true | public synchronized boolean addSequence(Row row)
throws KettleException
{
Value next = null;
if (meta.isDatabaseUsed())
{
try
{
next = data.getDb().getNextSequenceValue(meta.getSequenceName(), meta.getValuename());
}
catch(KettleDatabaseException dbe)
{
throw new KettleStepException(... | public boolean addSequence(Row row) throws KettleException
{
Value next = null;
if (meta.isDatabaseUsed())
{
try
{
next = data.getDb().getNextSequenceValue(meta.getSequenceName(), meta.getValuename());
}
catch(KettleDatabaseException dbe)
{
throw new KettleStepException(Messages.getStr... |
diff --git a/Swirc/src/swirc/SwircController.java b/Swirc/src/swirc/SwircController.java
index 3078fd7..5c7645a 100644
--- a/Swirc/src/swirc/SwircController.java
+++ b/Swirc/src/swirc/SwircController.java
@@ -1,132 +1,134 @@
package swirc;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
i... | true | true | public void actionPerformed(ActionEvent e) {
String code = e.getActionCommand();
if(code.equals("connectServer")) {
HashMap<String,String> con = view.connectPrompt();
if(con != null && !con.get("serverAddress").equals("") && !con.get("nick").equals("")) {
this... | public void actionPerformed(ActionEvent e) {
String code = e.getActionCommand();
if(code.equals("connectServer")) {
HashMap<String,String> con = view.connectPrompt();
if(con != null) {
if(!con.get("serverAddress").equals("") && !con.get("nick").equals("")) {
... |
diff --git a/src/com/itmill/toolkit/ui/ExpandLayout.java b/src/com/itmill/toolkit/ui/ExpandLayout.java
index 7530d7c24..439f6cbba 100644
--- a/src/com/itmill/toolkit/ui/ExpandLayout.java
+++ b/src/com/itmill/toolkit/ui/ExpandLayout.java
@@ -1,50 +1,54 @@
/*
@ITMillApache2LicenseForJavaFiles@
*/
package com.itmi... | true | true | public void expand(Component c) {
if (expanded != null) {
setExpandRatio(expanded, 0.0f);
}
expanded = c;
setExpandRatio(expanded, 1.0f);
requestRepaint();
}
| public void expand(Component c) {
if (expanded != null) {
try {
setExpandRatio(expanded, 0.0f);
} catch (IllegalArgumentException e) {
// Ignore error if component has been removed
}
}
expanded = c;
setExpandRatio(e... |
diff --git a/jgnash-core/src/main/java/jgnash/engine/jpa/JpaTrashDAO.java b/jgnash-core/src/main/java/jgnash/engine/jpa/JpaTrashDAO.java
index 3fdb87f3..5b0e6379 100644
--- a/jgnash-core/src/main/java/jgnash/engine/jpa/JpaTrashDAO.java
+++ b/jgnash-core/src/main/java/jgnash/engine/jpa/JpaTrashDAO.java
@@ -1,101 +1,101 ... | true | true | public void remove(final TrashObject trashObject) {
try {
emLock.lock();
em.getTransaction().begin();
StoredObject object = getObjectByUuid(trashObject.getUuid());
em.remove(object);
em.remove(trashObject);
em.getTransaction().commi... | public void remove(final TrashObject trashObject) {
try {
emLock.lock();
em.getTransaction().begin();
StoredObject object = trashObject.getObject();
em.remove(object);
em.remove(trashObject);
em.getTransaction().commit();
... |
diff --git a/src/frontend/org/voltdb/SnapshotSaveAPI.java b/src/frontend/org/voltdb/SnapshotSaveAPI.java
index 5fe265949..daf04ddcd 100644
--- a/src/frontend/org/voltdb/SnapshotSaveAPI.java
+++ b/src/frontend/org/voltdb/SnapshotSaveAPI.java
@@ -1,813 +1,813 @@
/* This file is part of VoltDB.
* Copyright (C) 2008-201... | true | true | private void createSetup(
String file_path, String file_nonce, SnapshotFormat format,
long txnId, List<Long> partitionTransactionIds,
String data, SystemProcedureExecutionContext context,
String hostname, final VoltTable result) {
{
SiteTracker tra... | private void createSetup(
String file_path, String file_nonce, SnapshotFormat format,
long txnId, List<Long> partitionTransactionIds,
String data, SystemProcedureExecutionContext context,
String hostname, final VoltTable result) {
{
SiteTracker tra... |
diff --git a/src/com/undi/javascheme/SchemeObject.java b/src/com/undi/javascheme/SchemeObject.java
index 5838707..a3bbdff 100644
--- a/src/com/undi/javascheme/SchemeObject.java
+++ b/src/com/undi/javascheme/SchemeObject.java
@@ -1,595 +1,602 @@
package com.undi.javascheme;
import java.util.HashMap;
import java.uti... | true | true | public String toString() {
StringBuilder tempString = new StringBuilder();
// tempString.append("Type: " + this.mType.name());
// tempString.append(" Value: ");
switch (this.mType) {
case NUMBER:
tempString.append(getNumber());
break;
case STRING:
tempString.append('"');
... | public String toString() {
StringBuilder tempString = new StringBuilder();
// tempString.append("Type: " + this.mType.name());
// tempString.append(" Value: ");
switch (this.mType) {
case NUMBER:
tempString.append(getNumber());
break;
case STRING:
tempString.append('"');
... |
diff --git a/org.nelfin.othello/test/iago/SmartPlayerTestAbstract.java b/org.nelfin.othello/test/iago/SmartPlayerTestAbstract.java
index ead7fe3..7e1690a 100644
--- a/org.nelfin.othello/test/iago/SmartPlayerTestAbstract.java
+++ b/org.nelfin.othello/test/iago/SmartPlayerTestAbstract.java
@@ -1,33 +1,39 @@
package iago... | false | true | public void testPerfectPlay() {
Board small4x4Board = new Board(DebugFunctions.make4x4OthelloString());
Boolean blacksTurn = true;
Move nextMove = new Move(0,0);
while(!nextMove.equals(new Move(-1,-1)))
{
if(blacksTurn)
{
nextMove = smartBlackPlayer.chooseMove(small4x4Board);
}else{
nextMo... | public void testPerfectPlay() {
Board small4x4Board = new Board(DebugFunctions.make4x4OthelloString());
Boolean blacksTurn = true;
Move nextMove = new Move(0,0);
int consecutivePasses = 0;
while(consecutivePasses < 2)
{
if(blacksTurn)
{
nextMove = smartBlackPlayer.chooseMove(small4x4Board);
... |
diff --git a/fog.routing.hrm/src/de/tuilmenau/ics/fog/app/routing/QoSTestApp.java b/fog.routing.hrm/src/de/tuilmenau/ics/fog/app/routing/QoSTestApp.java
index f5bacab2..3e1a0d8c 100644
--- a/fog.routing.hrm/src/de/tuilmenau/ics/fog/app/routing/QoSTestApp.java
+++ b/fog.routing.hrm/src/de/tuilmenau/ics/fog/app/routing/Q... | true | true | private void incConnections()
{
if(DEBUG){
Logging.log(this, "Increasing connections (currently: " + countConnections() + ")");
}
HRMID tDestinationHRMID = getBestDestinationHRMIDFromDNS();
if(tDestinationHRMID != null){
mDestinationHRMID = tDestinationHRMID;
/**
* Connect to the destination n... | private void incConnections()
{
if(DEBUG){
Logging.log(this, "Increasing connections (currently: " + countConnections() + ")");
}
HRMID tDestinationHRMID = getBestDestinationHRMIDFromDNS();
if(tDestinationHRMID != null){
mDestinationHRMID = tDestinationHRMID;
/**
* Connect to the destination n... |
diff --git a/src/main/java/br/org/indt/ndg/mobile/SortsKeys.java b/src/main/java/br/org/indt/ndg/mobile/SortsKeys.java
index 5a3fa07..ff9b16a 100644
--- a/src/main/java/br/org/indt/ndg/mobile/SortsKeys.java
+++ b/src/main/java/br/org/indt/ndg/mobile/SortsKeys.java
@@ -1,61 +1,61 @@
/*
* Sorts.java
*
* Created on... | false | true | private int qpartition(Vector list, int p, int r) {
String pivot = (String)list.elementAt(p);
int lo = p;
int hi = r;
while (true) {
while ( ((String)list.elementAt(hi)).compareTo(pivot) >= 0 && lo < hi) {
hi--;
}
while ( ((String)... | private int qpartition(Vector list, int p, int r) {
int pivot = Integer.parseInt((String)list.elementAt(p));
int lo = p;
int hi = r;
while (true) {
while ( Integer.parseInt((String)list.elementAt(hi)) >= pivot && lo < hi) {
hi--;
}
... |
diff --git a/src/servers/src/org/xtreemfs/common/util/Nettest.java b/src/servers/src/org/xtreemfs/common/util/Nettest.java
index 3edb2c4b..936a1605 100644
--- a/src/servers/src/org/xtreemfs/common/util/Nettest.java
+++ b/src/servers/src/org/xtreemfs/common/util/Nettest.java
@@ -1,81 +1,82 @@
/*
* To change this temp... | true | true | public static void handleNettest(ONCRPCRequestHeader header, ONCRPCRequest rq) {
try {
if (header.getMessageType() != XDRUtils.TYPE_CALL) {
rq.sendException(new ProtocolException(ONCRPCResponseHeader.ACCEPT_STAT_GARBAGE_ARGS,
ErrNo.EINVAL, "message type mu... | public static void handleNettest(ONCRPCRequestHeader header, ONCRPCRequest rq) {
try {
if (header.getMessageType() != XDRUtils.TYPE_CALL) {
rq.sendException(new ProtocolException(ONCRPCResponseHeader.ACCEPT_STAT_GARBAGE_ARGS,
ErrNo.EINVAL, "message type mu... |
diff --git a/api/src/main/java/org/openmrs/api/handler/PersonSaveHandler.java b/api/src/main/java/org/openmrs/api/handler/PersonSaveHandler.java
index e0dacb40..75a05647 100644
--- a/api/src/main/java/org/openmrs/api/handler/PersonSaveHandler.java
+++ b/api/src/main/java/org/openmrs/api/handler/PersonSaveHandler.java
@... | true | true | public void handle(Person person, User creator, Date dateCreated, String other) {
// only set the creator and date created if they weren't set by the developer already
if (person.getPersonCreator() == null) {
person.setPersonCreator(creator);
}
if (person.getPersonDateCreated() == null) {
person.se... | public void handle(Person person, User creator, Date dateCreated, String other) {
// only set the creator and date created if they weren't set by the developer already
if (person.getPersonCreator() == null) {
person.setPersonCreator(creator);
}
if (person.getPersonDateCreated() == null) {
person.se... |
diff --git a/app/models/Shopper.java b/app/models/Shopper.java
index fe05b12..fc79f6c 100644
--- a/app/models/Shopper.java
+++ b/app/models/Shopper.java
@@ -1,125 +1,125 @@
package models;
import org.codehaus.jackson.JsonNode;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.node.ArrayNod... | true | true | public static ObjectNode goShopping(ArrayNode items, double budget)
{
//Get the inventory
Map<String, InventoryItem> inventory = new Model.Finder(String.class, InventoryItem.class)
.setMapKey("name").findMap();
//Create a list ... | public static ObjectNode goShopping(ArrayNode items, double budget)
{
//Get the inventory
Map<String, InventoryItem> inventory = new Model.Finder(String.class, InventoryItem.class)
.setMapKey("name").findMap();
//Create a list ... |
diff --git a/src/xmlvm2objc/compat-lib/java/org/xmlvm/iphone/NSBundle.java b/src/xmlvm2objc/compat-lib/java/org/xmlvm/iphone/NSBundle.java
index a6017da4..b48a43d6 100644
--- a/src/xmlvm2objc/compat-lib/java/org/xmlvm/iphone/NSBundle.java
+++ b/src/xmlvm2objc/compat-lib/java/org/xmlvm/iphone/NSBundle.java
@@ -1,171 +1,... | true | true | public String pathForResource(String resource, String type, String directory) {
/* Calculate file name */
String filename = type == null ? resource : resource + "." + type;
if (directory != null && !directory.equals("")) {
filename = directory + "/" + filename;
}
... | public String pathForResource(String resource, String type, String directory) {
/* Calculate file name */
String filename = type == null ? resource : resource + "." + type;
if (directory != null && !directory.equals("")) {
filename = directory + "/" + filename;
}
... |
diff --git a/core/java/android/webkit/CallbackProxy.java b/core/java/android/webkit/CallbackProxy.java
index 312af71c..fea6be67 100644
--- a/core/java/android/webkit/CallbackProxy.java
+++ b/core/java/android/webkit/CallbackProxy.java
@@ -1,1410 +1,1415 @@
/*
* Copyright (C) 2007 The Android Open Source Project
*
... | true | true | public void handleMessage(Message msg) {
// We don't have to do synchronization because this function operates
// in the UI thread. The WebViewClient and WebChromeClient functions
// that check for a non-null callback are ok because java ensures atomic
// 32-bit reads and writes.
... | public void handleMessage(Message msg) {
// We don't have to do synchronization because this function operates
// in the UI thread. The WebViewClient and WebChromeClient functions
// that check for a non-null callback are ok because java ensures atomic
// 32-bit reads and writes.
... |
diff --git a/src/main/java/net/h31ix/anticheat/manage/Backend.java b/src/main/java/net/h31ix/anticheat/manage/Backend.java
index 0afce67..31c0ee0 100644
--- a/src/main/java/net/h31ix/anticheat/manage/Backend.java
+++ b/src/main/java/net/h31ix/anticheat/manage/Backend.java
@@ -1,1310 +1,1310 @@
/*
* AntiCheat for Buk... | true | true | public boolean checkFlight(Player player, Distance distance)
{
if (distance.getYDifference() > 400)
{
//This was a teleport, so we don't care about it.
return false;
}
String name = player.getName();
double y1 = distance.fromY();
double y2 ... | public boolean checkFlight(Player player, Distance distance)
{
if (distance.getYDifference() > 400)
{
//This was a teleport, so we don't care about it.
return false;
}
String name = player.getName();
double y1 = distance.fromY();
double y2 ... |
diff --git a/ui_swing/src/com/dmdirc/addons/ui_swing/textpane/BasicTextLineRenderer.java b/ui_swing/src/com/dmdirc/addons/ui_swing/textpane/BasicTextLineRenderer.java
index 0ceab49d..39a3c3ed 100644
--- a/ui_swing/src/com/dmdirc/addons/ui_swing/textpane/BasicTextLineRenderer.java
+++ b/ui_swing/src/com/dmdirc/addons/ui... | true | true | public RenderResult render(final Graphics2D graphics, final float canvasWidth,
final float canvasHeight, final float drawPosY, final int line,
final boolean bottomLine) {
result.drawnAreas.clear();
result.totalHeight = 0;
final AttributedCharacterIterator iterator = ... | public RenderResult render(final Graphics2D graphics, final float canvasWidth,
final float canvasHeight, final float drawPosY, final int line,
final boolean bottomLine) {
result.drawnAreas.clear();
result.textLayouts.clear();
result.totalHeight = 0;
final Att... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.