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/java/nz/co/searchwellington/repositories/HibernateResourceDAO.java b/src/java/nz/co/searchwellington/repositories/HibernateResourceDAO.java
index eb344d23..32fbb057 100644
--- a/src/java/nz/co/searchwellington/repositories/HibernateResourceDAO.java
+++ b/src/java/nz/co/searchwellington/repositories/Hib... | false | true | public void saveResource(Resource resource) {
if (resource.getType().equals("N")) {
if (((Newsitem) resource).getImage() != null) {
sessionFactory.getCurrentSession().saveOrUpdate(((Newsitem) resource).getImage());
}
}
sessionFactory.getCurrentSession().saveOrUpdate(resource);
sessionFa... | public void saveResource(Resource resource) {
if (resource.getType().equals("N")) {
if (((Newsitem) resource).getImage() != null) {
sessionFactory.getCurrentSession().saveOrUpdate(((Newsitem) resource).getImage());
}
}
sessionFactory.getCurrentSession().saveOrUpdate(resource);
sessionFa... |
diff --git a/Java_CCN/com/parc/ccn/library/io/CCNInputStream.java b/Java_CCN/com/parc/ccn/library/io/CCNInputStream.java
index 5c513488b..783755328 100644
--- a/Java_CCN/com/parc/ccn/library/io/CCNInputStream.java
+++ b/Java_CCN/com/parc/ccn/library/io/CCNInputStream.java
@@ -1,230 +1,235 @@
package com.parc.ccn.libra... | true | true | protected int readInternal(byte [] buf, int offset, int len) throws IOException {
if (_atEOF) {
return -1;
}
Library.logger().info(baseName() + ": reading " + len + " bytes into buffer of length " +
((null != buf) ? buf.length : "null") + " at offset " + offset);
// is this the first block?
if ... | protected int readInternal(byte [] buf, int offset, int len) throws IOException {
if (_atEOF) {
return -1;
}
Library.logger().info(baseName() + ": reading " + len + " bytes into buffer of length " +
((null != buf) ? buf.length : "null") + " at offset " + offset);
// is this the first block?
if ... |
diff --git a/src/com/mistphizzle/donationpoints/plugin/Commands.java b/src/com/mistphizzle/donationpoints/plugin/Commands.java
index fed1f0a..8781c44 100644
--- a/src/com/mistphizzle/donationpoints/plugin/Commands.java
+++ b/src/com/mistphizzle/donationpoints/plugin/Commands.java
@@ -1,265 +1,268 @@
package com.mistph... | false | true | private void init() {
PluginCommand donationpoints = plugin.getCommand("donationpoints");
CommandExecutor exe;
exe = new CommandExecutor() {
@Override
public boolean onCommand(CommandSender s, Command c, String label, String[] args) {
if (args.length < 1) {
// Base Command
s.sendMessage("---... | private void init() {
PluginCommand donationpoints = plugin.getCommand("donationpoints");
CommandExecutor exe;
exe = new CommandExecutor() {
@Override
public boolean onCommand(CommandSender s, Command c, String label, String[] args) {
if (args.length < 1) {
// Base Command
s.sendMessage("---... |
diff --git a/deegree-core/deegree-core-base/src/main/java/org/deegree/gml/feature/GMLFeatureWriter.java b/deegree-core/deegree-core-base/src/main/java/org/deegree/gml/feature/GMLFeatureWriter.java
index 3ab51fb48f..429a4a1153 100644
--- a/deegree-core/deegree-core-base/src/main/java/org/deegree/gml/feature/GMLFeatureWr... | true | true | private void export( Property property, GmlXlinkOptions resolveState )
throws XMLStreamException, UnknownCRSException, TransformationException {
QName propName = property.getName();
PropertyType pt = property.getType();
if ( pt.getMinOccurs() == 0 ) {
... | private void export( Property property, GmlXlinkOptions resolveState )
throws XMLStreamException, UnknownCRSException, TransformationException {
QName propName = property.getName();
PropertyType pt = property.getType();
if ( pt.getMinOccurs() == 0 ) {
... |
diff --git a/src/org/saga/messages/StatsMessages.java b/src/org/saga/messages/StatsMessages.java
index cb48aad..e61607e 100644
--- a/src/org/saga/messages/StatsMessages.java
+++ b/src/org/saga/messages/StatsMessages.java
@@ -1,369 +1,369 @@
package org.saga.messages;
import java.text.DecimalFormat;
import java.uti... | true | true | private static StringTable attributesLevels(SagaPlayer sagaPlayer) {
StringTable table = new StringTable(new ColourLoop().addColor(normal1).addColor(normal2));
DecimalFormat format = new DecimalFormat("00");
// Attributes:
ArrayList<String> attrNames = AttributeConfiguration.config().getAttributeNames()... | private static StringTable attributesLevels(SagaPlayer sagaPlayer) {
StringTable table = new StringTable(new ColourLoop().addColor(normal1).addColor(normal2));
DecimalFormat format = new DecimalFormat("00");
// Attributes:
ArrayList<String> attrNames = AttributeConfiguration.config().getAttributeNames()... |
diff --git a/src/com/fsck/k9/view/SingleMessageView.java b/src/com/fsck/k9/view/SingleMessageView.java
index 5b84fc57..29e0d912 100644
--- a/src/com/fsck/k9/view/SingleMessageView.java
+++ b/src/com/fsck/k9/view/SingleMessageView.java
@@ -1,313 +1,316 @@
package com.fsck.k9.view;
import android.app.Activity;
impor... | false | true | public void displayMessageBody(Account account, String folder, String uid, Message message, PgpData pgpData) throws MessagingException {
// TODO - really this code path? this is an odd place to put it
removeAllAttachments();
String type;
String text = pgpData.getDecryptedData();
... | public void displayMessageBody(Account account, String folder, String uid, Message message, PgpData pgpData) throws MessagingException {
// TODO - really this code path? this is an odd place to put it
removeAllAttachments();
String type;
String text = pgpData.getDecryptedData();
... |
diff --git a/src/realms/welcome-admin/yanel/resources/show-realms/src/java/org/wyona/yanel/impl/resources/ShowRealms.java b/src/realms/welcome-admin/yanel/resources/show-realms/src/java/org/wyona/yanel/impl/resources/ShowRealms.java
index eae7eb94b..0bb671c82 100644
--- a/src/realms/welcome-admin/yanel/resources/show-r... | true | true | public View getView(String viewId) throws Exception {
View defaultView = new View();
defaultView.setMimeType("application/xml");
StringBuffer sb = new StringBuffer("<?xml version=\"1.0\"?>");
defaultView.setInputStream(new java.io.StringBufferInputStream(sb
.toString(... | public View getView(String viewId) throws Exception {
View defaultView = new View();
defaultView.setMimeType("application/xml");
StringBuffer sb = new StringBuffer("<?xml version=\"1.0\"?>");
defaultView.setInputStream(new java.io.StringBufferInputStream(sb
.toString(... |
diff --git a/jython/src/org/python/core/PyModule.java b/jython/src/org/python/core/PyModule.java
index 5ccef86c..643f3087 100644
--- a/jython/src/org/python/core/PyModule.java
+++ b/jython/src/org/python/core/PyModule.java
@@ -1,182 +1,185 @@
// Copyright (c) Corporation for National Research Initiatives
package org.... | true | true | protected PyObject impAttr(String name) {
PyObject path = __dict__.__finditem__("__path__");
PyObject pyName = __dict__.__finditem__("__name__");
if (path == null || pyName == null) {
return null;
}
PyObject attr = null;
String fullName = (pyName.__str__(... | protected PyObject impAttr(String name) {
if (__dict__ == null) {
return null;
}
PyObject path = __dict__.__finditem__("__path__");
PyObject pyName = __dict__.__finditem__("__name__");
if (path == null || pyName == null) {
return null;
}
... |
diff --git a/lucene/src/java/org/apache/lucene/search/FieldDoc.java b/lucene/src/java/org/apache/lucene/search/FieldDoc.java
index d45ff268..faf54a07 100644
--- a/lucene/src/java/org/apache/lucene/search/FieldDoc.java
+++ b/lucene/src/java/org/apache/lucene/search/FieldDoc.java
@@ -1,75 +1,75 @@
package org.apache.luc... | true | true | public String toString() {
// super.toString returns the doc and score information, so just add the
// fields information
StringBuilder sb = new StringBuilder(super.toString());
sb.append("[");
for (int i = 0; i < fields.length; i++) {
sb.append(fields[i]).append(", ");
... | public String toString() {
// super.toString returns the doc and score information, so just add the
// fields information
StringBuilder sb = new StringBuilder(super.toString());
sb.append("[");
for (int i = 0; i < fields.length; i++) {
sb.append(fields[i]).append(", ");
... |
diff --git a/flexodesktop/modules/flexoviewpointmodeler/src/main/java/org/openflexo/vpm/drawingshema/DrawEdgeControl.java b/flexodesktop/modules/flexoviewpointmodeler/src/main/java/org/openflexo/vpm/drawingshema/DrawEdgeControl.java
index e972af83a..8f985e856 100644
--- a/flexodesktop/modules/flexoviewpointmodeler/src/... | true | true | public boolean handleMouseReleased(GraphicalRepresentation<?> graphicalRepresentation, final DrawingController<?> controller,
MouseEvent event, boolean isSignificativeDrag) {
if (drawEdge && toShape != null) {
if (fromShape.getDrawable().getViewPoint() != null) {
Vector<LinkScheme> availableConnector... | public boolean handleMouseReleased(GraphicalRepresentation<?> graphicalRepresentation, final DrawingController<?> controller,
MouseEvent event, boolean isSignificativeDrag) {
if (drawEdge && toShape != null) {
if (fromShape.getDrawable().getViewPoint() != null) {
Vector<LinkScheme> availableConnector... |
diff --git a/Labor2/Principal.java b/Labor2/Principal.java
index 6e29f8f..b8c766a 100644
--- a/Labor2/Principal.java
+++ b/Labor2/Principal.java
@@ -1,25 +1,25 @@
public class Principal {
/**
* @param args
*/
public static void main(String arg[])
{
- int result=0;
+ int r=0;
int a1=10... | false | true | public static void main(String arg[])
{
int result=0;
int a1=10;
int a2=21;
result= a1 + a2;
System.out.println("La suma de 10 + 20 es: " + result );
}
| public static void main(String arg[])
{
int r=0;
int a1=10;
int a2=21;
result= a1 + a2;
System.out.println("La suma de 10 + 20 es: " + r );
}
|
diff --git a/src/edu/purdue/cs252/lab6/userapp/ActivityDirectory.java b/src/edu/purdue/cs252/lab6/userapp/ActivityDirectory.java
index ccd3038..08898b0 100644
--- a/src/edu/purdue/cs252/lab6/userapp/ActivityDirectory.java
+++ b/src/edu/purdue/cs252/lab6/userapp/ActivityDirectory.java
@@ -1,245 +1,246 @@
package edu.pu... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.directory);
final VoipApp appState = (VoipApp) getApplicationContext();
final User user = appState.getUser();
Log.d("Login", user.getUserName());
f... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.directory);
final VoipApp appState = (VoipApp) getApplicationContext();
final User user = appState.getUser();
Log.d("Login", user.getUserName());
f... |
diff --git a/src/instructions/USI_END.java b/src/instructions/USI_END.java
index 0a3834d..0706a3a 100644
--- a/src/instructions/USI_END.java
+++ b/src/instructions/USI_END.java
@@ -1,121 +1,121 @@
package instructions;
import static assemblernator.ErrorReporting.makeError;
import assemblernator.AbstractDirective;
... | true | true | @Override public boolean immediateCheck(ErrorHandler hErr, Module module) {
boolean isValid = true;
//less than 1 operand error
if(this.operands.size() < 1){
isValid=false;
hErr.reportError(makeError("directiveMissingOp", this.getOpId(), "LR"), this.lineNum, -1);
//checks for LR
}else if (this.operand... | @Override public boolean immediateCheck(ErrorHandler hErr, Module module) {
boolean isValid = true;
//less than 1 operand error
if(this.operands.size() < 1){
isValid=false;
hErr.reportError(makeError("directiveMissingOp", this.getOpId(), "LR"), this.lineNum, -1);
//checks for LR
}else if (this.operand... |
diff --git a/core/src/visad/trunk/ss/SpreadSheet.java b/core/src/visad/trunk/ss/SpreadSheet.java
index 900d8a44a..5e7260565 100644
--- a/core/src/visad/trunk/ss/SpreadSheet.java
+++ b/core/src/visad/trunk/ss/SpreadSheet.java
@@ -1,1156 +1,1156 @@
//
// SpreadSheet.java
//
/*
VisAD system for interactive analys... | true | true | public SpreadSheet(int sWidth, int sHeight,
int cols, int rows, String sTitle) {
NumVisX = cols;
NumVisY = rows;
NumVisDisplays = NumVisX*NumVisY;
MappingDialog.initDialog();
addKeyListener(this);
addWindowListener(new WindowAdapter() {
public void windowClosing(Wind... | public SpreadSheet(int sWidth, int sHeight,
int cols, int rows, String sTitle) {
NumVisX = cols;
NumVisY = rows;
NumVisDisplays = NumVisX*NumVisY;
MappingDialog.initDialog();
addKeyListener(this);
addWindowListener(new WindowAdapter() {
public void windowClosing(Wind... |
diff --git a/src/Conference/MucContact.java b/src/Conference/MucContact.java
index e7bc0d38..cce23251 100644
--- a/src/Conference/MucContact.java
+++ b/src/Conference/MucContact.java
@@ -1,271 +1,272 @@
/*
* MucContact.java
*
* Created on 2.05.2006, 14:05
* Copyright (c) 2005-2008, Eugene Stahov (evgs), http:/... | true | true | public String processPresence(JabberDataBlock xmuc, Presence presence) {
String from=jid.toString();
int presenceType=presence.getTypeIndex();
if (presenceType==Presence.PRESENCE_ERROR) {
StaticData.getInstance().roster.roomOffline(group);
return Str... | public String processPresence(JabberDataBlock xmuc, Presence presence) {
String from=jid.toString();
int presenceType=presence.getTypeIndex();
if (presenceType==Presence.PRESENCE_ERROR) {
StaticData.getInstance().roster.roomOffline(group);
return Str... |
diff --git a/atlas-dao/src/main/java/uk/ac/ebi/gxa/dao/AbstractDAO.java b/atlas-dao/src/main/java/uk/ac/ebi/gxa/dao/AbstractDAO.java
index f3ef5c3de..e08f21948 100644
--- a/atlas-dao/src/main/java/uk/ac/ebi/gxa/dao/AbstractDAO.java
+++ b/atlas-dao/src/main/java/uk/ac/ebi/gxa/dao/AbstractDAO.java
@@ -1,78 +1,78 @@
pack... | true | true | protected T getOnly(List<T> objects) throws RecordNotFoundException {
if (objects.size() == 1)
return objects.get(0);
else
throw new RecordNotFoundException(clazz.getName() + ": " + objects.size() + "objects returned; expected 1)");
}
| protected T getOnly(List<T> objects) throws RecordNotFoundException {
if (objects.size() == 1)
return objects.get(0);
else
throw new RecordNotFoundException(clazz.getName() + ": " + objects.size() + " objects returned; expected 1)");
}
|
diff --git a/cotrix/cotrix-io/src/main/java/org/cotrix/io/sdmx/map/Codelist2Sdmx.java b/cotrix/cotrix-io/src/main/java/org/cotrix/io/sdmx/map/Codelist2Sdmx.java
index 0849f51c..455d9deb 100644
--- a/cotrix/cotrix-io/src/main/java/org/cotrix/io/sdmx/map/Codelist2Sdmx.java
+++ b/cotrix/cotrix-io/src/main/java/org/cotrix/... | true | true | public CodelistBean map(Codelist codelist, Codelist2SdmxDirectives directives) throws Exception {
double time = System.currentTimeMillis();
report().log(item("transforming codelist "+codelist.qname()+"("+codelist.id()+") to SDMX")).as(INFO)
.log(item(Calendar.getInstance().getTime().toString())).as(INFO);
... | public CodelistBean map(Codelist codelist, Codelist2SdmxDirectives directives) throws Exception {
double time = System.currentTimeMillis();
report().log(item("transforming codelist "+codelist.qname()+"("+codelist.id()+") to SDMX")).as(INFO)
.log(item(Calendar.getInstance().getTime().toString())).as(INFO);
... |
diff --git a/src/jmxsh/SetCmd.java b/src/jmxsh/SetCmd.java
index 3a5f5a1..a1fffea 100755
--- a/src/jmxsh/SetCmd.java
+++ b/src/jmxsh/SetCmd.java
@@ -1,163 +1,163 @@
/*
* $URL$
*
* $Revision$
*
* $LastChangedDate$
*
* $LastChangedBy$
*
* Licensed under the Apache License, Version 2.0 (the "License"... | false | true | public void cmdProc(Interp interp, TclObject argv[])
throws TclException {
try {
CommandLine cl = parseCommandLine(argv);
String args[] = cl.getArgs();
String attribute = null;
TclObject newvalue = null;
if (cl.hasOption("help")) {
new HelpFormatter().printHelp (
"... | public void cmdProc(Interp interp, TclObject argv[])
throws TclException {
try {
CommandLine cl = parseCommandLine(argv);
String args[] = cl.getArgs();
String attribute = null;
TclObject newvalue = null;
if (cl.hasOption("help")) {
new HelpFormatter().printHelp (
"... |
diff --git a/integrar-t-android/src/main/java/org/utn/proyecto/helpful/integrart/integrar_t_android/menu/ItemDetailActivity.java b/integrar-t-android/src/main/java/org/utn/proyecto/helpful/integrart/integrar_t_android/menu/ItemDetailActivity.java
index f200178..cadf6cd 100644
--- a/integrar-t-android/src/main/java/org/... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.mam_activity_item_list);
getActionBar().setDisplayHomeAsUpEnabled(true);
if (savedInstanceState == null) {
Bundle arguments = new Bundle();
argum... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.mam_activity_item_list);
setContentView(R.layout.mam_activity_item_detail);
getActionBar().setDisplayHomeAsUpEnabled(true);
if (savedInstanceState == null) {
... |
diff --git a/src/main/java/org/mgenterprises/java/bukkit/gmcfps/Core/Weapons/ProjectileWeapon.java b/src/main/java/org/mgenterprises/java/bukkit/gmcfps/Core/Weapons/ProjectileWeapon.java
index e4ed090..f532156 100644
--- a/src/main/java/org/mgenterprises/java/bukkit/gmcfps/Core/Weapons/ProjectileWeapon.java
+++ b/src/m... | false | true | public void onWeaponRightClick(WeaponFiredEvent event) {
//System.out.println(event);
if(super.getWeaponManager().waiting.contains(event.getPlayer().getName())){
return;
}
boolean hasAmmoLeft = event.getPlayer().getInventory().contains(ammoMaterial);
if (hasAmmoLe... | public void onWeaponRightClick(WeaponFiredEvent event) {
//System.out.println(event);
if(super.getWeaponManager().waiting.contains(event.getPlayer().getName())){
return;
}
boolean hasAmmoLeft = event.getPlayer().getInventory().contains(ammoMaterial);
if (hasAmmoLe... |
diff --git a/javasrc/src/org/ccnx/ccn/impl/support/DaemonOutput.java b/javasrc/src/org/ccnx/ccn/impl/support/DaemonOutput.java
index ec446f91d..2db637067 100644
--- a/javasrc/src/org/ccnx/ccn/impl/support/DaemonOutput.java
+++ b/javasrc/src/org/ccnx/ccn/impl/support/DaemonOutput.java
@@ -1,51 +1,63 @@
/*
* Part of t... | true | true | public void run() {
byte [] buffer = new byte[8196];
while (true) {
try {
// this will block until somethings ready.
int size = _is.read(buffer);
_os.write(buffer, 0, size);
_os.flush();
} catch (IOException e) {
return;
}
}
}
| public void run() {
byte [] buffer = new byte[8196];
while (true) {
try {
if( _is.available() > 0 ) {
// this will block until somethings ready.
int size = _is.read(buffer);
// System.out.println("read bytes: " + size);
if( size > 0 ) {
// String x = new String(buffer);
// Syste... |
diff --git a/src/fr/crafter/tickleman/realplugin/RealConfig.java b/src/fr/crafter/tickleman/realplugin/RealConfig.java
index d961987..464bf74 100644
--- a/src/fr/crafter/tickleman/realplugin/RealConfig.java
+++ b/src/fr/crafter/tickleman/realplugin/RealConfig.java
@@ -1,149 +1,150 @@
package fr.crafter.tickleman.realp... | true | true | public RealConfig load()
{
try {
BufferedReader reader = new BufferedReader(new FileReader(fileName));
String buffer;
while ((buffer = reader.readLine()) != null) {
if (buffer.charAt(0) != '#') {
String[] line = buffer.split("=");
if (line.length >= 2) {
String key = line[0].trim();
... | public RealConfig load()
{
try {
BufferedReader reader = new BufferedReader(new FileReader(fileName));
String buffer;
while ((buffer = reader.readLine()) != null) {
buffer = buffer.replace("\r", "");
if (buffer.charAt(0) != '#') {
String[] line = buffer.split("=");
if (line.length >= 2) {... |
diff --git a/srcj/com/sun/electric/tool/routing/Router.java b/srcj/com/sun/electric/tool/routing/Router.java
index 2febfde88..49ad1060c 100644
--- a/srcj/com/sun/electric/tool/routing/Router.java
+++ b/srcj/com/sun/electric/tool/routing/Router.java
@@ -1,540 +1,541 @@
/* -*- tab-width: 4 -*-
*
* Electric(tm) VLSI ... | false | true | public static PortInst createRouteNoJob(Route route, Cell cell,
boolean highlightRouteEnd, Map<ArcProto,Integer> arcsCreatedMap, Map<NodeProto,Integer> nodesCreatedMap)
{
EDatabase.serverDatabase().checkChanging();
// check if we can edit this cell
if (CircuitChangeJobs.cantEdit(ce... | public static PortInst createRouteNoJob(Route route, Cell cell,
boolean highlightRouteEnd, Map<ArcProto,Integer> arcsCreatedMap, Map<NodeProto,Integer> nodesCreatedMap)
{
EDatabase.serverDatabase().checkChanging();
// check if we can edit this cell
if (CircuitChangeJobs.cantEdit(ce... |
diff --git a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/SimpleScriptableTest.java b/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/SimpleScriptableTest.java
index 2e3b6bf51..bed70e99b 100644
--- a/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/SimpleScriptableTest.... | true | true | public void htmlJavaScriptMapping_AllJavaScriptClassesArePresent() {
final Map<Class < ? extends HtmlElement>, Class < ? extends SimpleScriptable>> map =
JavaScriptConfiguration.getHtmlJavaScriptMapping();
final String directoryName = "../../../src/main/java/com/gargoylesoftware/htmlunit... | public void htmlJavaScriptMapping_AllJavaScriptClassesArePresent() {
final Map<Class < ? extends HtmlElement>, Class < ? extends SimpleScriptable>> map =
JavaScriptConfiguration.getHtmlJavaScriptMapping();
final String directoryName = "../../../src/main/java/com/gargoylesoftware/htmlunit... |
diff --git a/plugins/org.eclipse.birt.report.engine.emitter.wpml/src/org/eclipse/birt/report/engine/emitter/wpml/AbstractEmitterImpl.java b/plugins/org.eclipse.birt.report.engine.emitter.wpml/src/org/eclipse/birt/report/engine/emitter/wpml/AbstractEmitterImpl.java
index e2fcd3044..e3ed1c02e 100644
--- a/plugins/org.ecl... | false | true | public void startImage( IImageContent image )
{
IStyle style = image.getComputedStyle( );
InlineFlag inlineFlag = getInlineFlag( style );
String uri = image.getURI( );
String mimeType = image.getMIMEType( );
String extension = image.getExtension( );
String altText = image.getAltText( );
context.addCont... | public void startImage( IImageContent image )
{
IStyle style = image.getComputedStyle( );
InlineFlag inlineFlag = getInlineFlag( style );
String uri = image.getURI( );
String mimeType = image.getMIMEType( );
String extension = image.getExtension( );
String altText = image.getAltText( );
double height = ... |
diff --git a/src/com/android/email/activity/setup/AccountSetupExchange.java b/src/com/android/email/activity/setup/AccountSetupExchange.java
index fcfbc8ff..bafca357 100644
--- a/src/com/android/email/activity/setup/AccountSetupExchange.java
+++ b/src/com/android/email/activity/setup/AccountSetupExchange.java
@@ -1,355... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.account_setup_exchange);
mUsernameView = (EditText) findViewById(R.id.account_username);
mPasswordView = (EditText) findViewById(R.id.account_password);
mServerView ... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.account_setup_exchange);
mUsernameView = (EditText) findViewById(R.id.account_username);
mPasswordView = (EditText) findViewById(R.id.account_password);
mServerView ... |
diff --git a/src/net/grinder/plugin/http/tcpproxyfilter/RegularExpressionsImplementation.java b/src/net/grinder/plugin/http/tcpproxyfilter/RegularExpressionsImplementation.java
index 0026ce11..29b03439 100755
--- a/src/net/grinder/plugin/http/tcpproxyfilter/RegularExpressionsImplementation.java
+++ b/src/net/grinder/pl... | true | true | public RegularExpressionsImplementation() {
// We're generally flexible about SP and CRLF, see RFC 2616, 19.3.
// From RFC 2616:
//
// Request-Line = Method SP Request-URI SP HTTP-Version CRLF
// HTTP-Version = "HTTP" "/" 1*DIGIT "." 1*DIGIT
// http_URL = "http:" "//" host [ ":" port ] [ abs... | public RegularExpressionsImplementation() {
// We're generally flexible about SP and CRLF, see RFC 2616, 19.3.
// From RFC 2616:
//
// Request-Line = Method SP Request-URI SP HTTP-Version CRLF
// HTTP-Version = "HTTP" "/" 1*DIGIT "." 1*DIGIT
// http_URL = "http:" "//" host [ ":" port ] [ abs... |
diff --git a/trunk/src/java/org/apache/commons/dbcp2/managed/PoolableManagedConnectionFactory.java b/trunk/src/java/org/apache/commons/dbcp2/managed/PoolableManagedConnectionFactory.java
index c847630..dc70821 100644
--- a/trunk/src/java/org/apache/commons/dbcp2/managed/PoolableManagedConnectionFactory.java
+++ b/trunk... | true | true | synchronized public Object makeObject() throws Exception {
Connection conn = _connFactory.createConnection();
if (conn == null) {
throw new IllegalStateException("Connection factory returned null from createConnection");
}
initializeConnection(conn);
if(poolStatem... | synchronized public Connection makeObject() throws Exception {
Connection conn = _connFactory.createConnection();
if (conn == null) {
throw new IllegalStateException("Connection factory returned null from createConnection");
}
initializeConnection(conn);
if(poolSt... |
diff --git a/tools/remotetools/org.eclipse.ptp.remotetools.core/src/org/eclipse/ptp/remotetools/internal/ssh/UploadExecution.java b/tools/remotetools/org.eclipse.ptp.remotetools.core/src/org/eclipse/ptp/remotetools/internal/ssh/UploadExecution.java
index 7cab51cf7..3f4c16032 100755
--- a/tools/remotetools/org.eclipse.p... | true | true | public void startExecution() throws RemoteConnectionException {
ChannelExec channel = createChannel(false);
IRemotePathTools pathTool = getExecutionManager().getRemotePathTools();
setCommandLine("cat >" + pathTool.quote(remoteFile, true)); //$NON-NLS-1$
if (sourceStream != null) {
channel.setInputStre... | public void startExecution() throws RemoteConnectionException {
ChannelExec channel = createChannel(false);
IRemotePathTools pathTool = getExecutionManager().getRemotePathTools();
setCommandLine("cat >" + pathTool.quote(remoteFile, true)); //$NON-NLS-1$
if (sourceStream != null) {
channel.setInputStre... |
diff --git a/src/main/java/net/pterodactylus/sone/web/OptionsPage.java b/src/main/java/net/pterodactylus/sone/web/OptionsPage.java
index 39cacc6e..bbc10848 100644
--- a/src/main/java/net/pterodactylus/sone/web/OptionsPage.java
+++ b/src/main/java/net/pterodactylus/sone/web/OptionsPage.java
@@ -1,99 +1,102 @@
/*
* So... | false | true | protected void processTemplate(Request request, TemplateContext templateContext) throws RedirectException {
super.processTemplate(request, templateContext);
Preferences preferences = webInterface.getCore().getPreferences();
Sone currentSone = webInterface.getCurrentSone(request.getToadletContext(), false);
if ... | protected void processTemplate(Request request, TemplateContext templateContext) throws RedirectException {
super.processTemplate(request, templateContext);
Preferences preferences = webInterface.getCore().getPreferences();
Sone currentSone = webInterface.getCurrentSone(request.getToadletContext(), false);
if ... |
diff --git a/servicemix-http/src/main/java/org/apache/servicemix/http/processors/ProviderProcessor.java b/servicemix-http/src/main/java/org/apache/servicemix/http/processors/ProviderProcessor.java
index bce0072a6..d98a124c4 100644
--- a/servicemix-http/src/main/java/org/apache/servicemix/http/processors/ProviderProcess... | false | true | public void process(MessageExchange exchange) throws Exception {
if (exchange.getStatus() == ExchangeStatus.DONE ||
exchange.getStatus() == ExchangeStatus.ERROR) {
PostMethod method = (PostMethod) methods.remove(exchange.getExchangeId());
if (method != null) {
... | public void process(MessageExchange exchange) throws Exception {
if (exchange.getStatus() == ExchangeStatus.DONE ||
exchange.getStatus() == ExchangeStatus.ERROR) {
PostMethod method = (PostMethod) methods.remove(exchange.getExchangeId());
if (method != null) {
... |
diff --git a/uk.ac.gda.dls.client/src/uk/ac/gda/dls/client/views/EnumPositionerCompositeFactory.java b/uk.ac.gda.dls.client/src/uk/ac/gda/dls/client/views/EnumPositionerCompositeFactory.java
index 787e09e79..389044576 100644
--- a/uk.ac.gda.dls.client/src/uk/ac/gda/dls/client/views/EnumPositionerCompositeFactory.java
+... | true | true | EnumPositionerComposite(Composite parent, int style, final Display display, EnumPositioner positioner, String label, Integer labelWidth, Integer contentWidth ) {
super(parent, style);
this.display = display;
this.positioner = positioner;
this.labelWidth=labelWidth;
this.contentWidth=contentWidth;
format... | EnumPositionerComposite(Composite parent, int style, final Display display, EnumPositioner positioner, String label, Integer labelWidth, Integer contentWidth ) {
super(parent, style);
this.display = display;
this.positioner = positioner;
this.labelWidth=labelWidth;
this.contentWidth=contentWidth;
format... |
diff --git a/src/edu/berkeley/cs160/smartnature/EditView.java b/src/edu/berkeley/cs160/smartnature/EditView.java
index b9049ab..ab98494 100644
--- a/src/edu/berkeley/cs160/smartnature/EditView.java
+++ b/src/edu/berkeley/cs160/smartnature/EditView.java
@@ -1,250 +1,254 @@
package edu.berkeley.cs160.smartnature;
imp... | true | true | public boolean onTouch(View view, MotionEvent event) {
context.handleZoom();
x = event.getX(); y = event.getY();
if (context.getDragPlot()) {
switch(event.getAction()) {
case(MotionEvent.ACTION_DOWN):
focusedPlot = garden.plotAt(x, y, m);
if (focusedPlot == context.newPlot) {
// set focused pl... | public boolean onTouch(View view, MotionEvent event) {
context.handleZoom();
x = event.getX(); y = event.getY();
if (context.getDragPlot()) {
switch(event.getAction()) {
case(MotionEvent.ACTION_DOWN):
Matrix inv = new Matrix();
m.invert(inv);
float[] xy = { x, y };
inv.mapPoints(xy);
if... |
diff --git a/SWADroid/src/es/ugr/swad/swadroid/modules/downloads/DownloadNotification.java b/SWADroid/src/es/ugr/swad/swadroid/modules/downloads/DownloadNotification.java
index 600c6261..aa44e221 100644
--- a/SWADroid/src/es/ugr/swad/swadroid/modules/downloads/DownloadNotification.java
+++ b/SWADroid/src/es/ugr/swad/sw... | true | true | public void completedDownload(String directoryPath,String fileName) {
mNotificationManager.cancel(NOTIFICATION_ID);
//create the notification
int icon = android.R.drawable.stat_sys_download_done;
CharSequence tickerText =mContext.getString(R.string.app_name)+" " + mContext... | public void completedDownload(String directoryPath,String fileName) {
mNotificationManager.cancel(NOTIFICATION_ID);
//create the notification
int icon = android.R.drawable.stat_sys_download_done;
CharSequence tickerText =mContext.getString(R.string.app_name)+" " + mContext... |
diff --git a/OpERP/src/main/java/devopsdistilled/operp/client/stock/panes/ListWarehousePane.java b/OpERP/src/main/java/devopsdistilled/operp/client/stock/panes/ListWarehousePane.java
index 75a61be7..872f53d1 100644
--- a/OpERP/src/main/java/devopsdistilled/operp/client/stock/panes/ListWarehousePane.java
+++ b/OpERP/src... | true | true | public ListWarehousePane() {
pane = new JPanel();
pane.setLayout(new MigLayout("debug,fill"));
table = new JTable(tableModel);
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
table.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
if (SwingUtiliti... | public ListWarehousePane() {
pane = new JPanel();
pane.setLayout(new MigLayout("fill"));
table = new JTable(tableModel);
table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
table.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
if (SwingUtilities.isL... |
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index 59ec3a145..6e55cd977 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -1,2612 +1,2612 @@
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed u... | true | true | private void setCameraParameters() {
mParameters.setPreviewSize(mDesiredPreviewWidth, mDesiredPreviewHeight);
mParameters.setPreviewFrameRate(mProfile.videoFrameRate);
// Set video size before recording starts
CameraSettings.setEarlyVideoSize(mParameters, mProfile);
// Set v... | private void setCameraParameters() {
mParameters.setPreviewSize(mDesiredPreviewWidth, mDesiredPreviewHeight);
mParameters.setPreviewFrameRate(mProfile.videoFrameRate);
// Set video size before recording starts
CameraSettings.setEarlyVideoSize(mParameters, mProfile);
// Set v... |
diff --git a/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/generators/ui/BackgroundParsingStrategyGenerator.java b/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/generators/ui/BackgroundParsingStrategyGenerator.java
index db5f17815..45adbdaab 100644
--- a/org.emftext.sdk.codegen/src/org/emftext/sdk/codegen/g... | false | true | private void addParseMethod(
org.emftext.sdk.codegen.composites.StringComposite sc) {
sc.add("// Schedules a task for background parsing that will be started after");
sc.add("// a delay.");
sc.add("public void parse(" + DOCUMENT_EVENT + " event, final " + getClassNameHelper().getI_TEXT_RESOURCE() + " resource... | private void addParseMethod(
org.emftext.sdk.codegen.composites.StringComposite sc) {
sc.add("// Schedules a task for background parsing that will be started after");
sc.add("// a delay.");
sc.add("public void parse(" + DOCUMENT_EVENT + " event, final " + getClassNameHelper().getI_TEXT_RESOURCE() + " resource... |
diff --git a/src/haven/Equipory.java b/src/haven/Equipory.java
index 29caadd..9951c85 100644
--- a/src/haven/Equipory.java
+++ b/src/haven/Equipory.java
@@ -1,127 +1,127 @@
package haven;
import java.util.*;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.Reader;
public class Equ... | true | true | public void uimsg(String msg, Object... args) {
if(msg == "set") {
synchronized(ui) {
int i = 0, o = 0;
while(i < equed.size()) {
if(equed.get(i) != null)
equed.get(i).unlink();
int res = (Integer)args[o++];
if(res >= 0) {
Item ni = new Item(Coord.z, res, epoints.get(i), null);
... | public void uimsg(String msg, Object... args) {
if(msg == "set") {
synchronized(ui) {
int i = 0, o = 0;
while(i < equed.size()) {
if(equed.get(i) != null)
equed.get(i).unlink();
int res = (Integer)args[o++];
if(res >= 0) {
Item ni = new Item(Coord.z, res, epoints.get(i), null);
... |
diff --git a/src/com/btmura/android/reddit/app/ThingTableMenuController.java b/src/com/btmura/android/reddit/app/ThingTableMenuController.java
index a6eb3a69..47875055 100644
--- a/src/com/btmura/android/reddit/app/ThingTableMenuController.java
+++ b/src/com/btmura/android/reddit/app/ThingTableMenuController.java
@@ -1... | false | true | public void onPrepareOptionsMenu(Menu menu) {
boolean isQuery = !TextUtils.isEmpty(query);
boolean hasAccount = AccountUtils.isAccount(accountName);
boolean hasSubreddit = subreddit != null;
boolean hasThing = thingBundleHolder != null && thingBundleHolder.getThingBundle() != null;
... | public void onPrepareOptionsMenu(Menu menu) {
boolean isQuery = !TextUtils.isEmpty(query);
boolean hasAccount = AccountUtils.isAccount(accountName);
boolean hasSubreddit = subreddit != null;
boolean hasThing = thingBundleHolder != null && thingBundleHolder.getThingBundle() != null;
... |
diff --git a/ide/eclipse/appfactory/org.wso2.developerstudio.appfactory.core/src/org/wso2/developerstudio/appfactory/core/client/HttpsJaggeryClient.java b/ide/eclipse/appfactory/org.wso2.developerstudio.appfactory.core/src/org/wso2/developerstudio/appfactory/core/client/HttpsJaggeryClient.java
index 9b952f731..8b7e1bde... | true | true | public static String httpPost(String urlStr, Map<String,String> params){
HttpPost post = new HttpPost(urlStr);
String respond = "";
HttpResponse response=null;
try{
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1);
Set<String> keySet = params.keySet();... | public static String httpPost(String urlStr, Map<String,String> params){
if(client ==null){
httpPostLogin(urlStr,params);
}
HttpPost post = new HttpPost(urlStr);
String respond = "";
HttpResponse response=null;
try{
List<NameValuePair> nameValuePairs = new Arra... |
diff --git a/src/com/klaxnek/justifyx/Justifyx.java b/src/com/klaxnek/justifyx/Justifyx.java
index 4be4e0b..750d6b5 100644
--- a/src/com/klaxnek/justifyx/Justifyx.java
+++ b/src/com/klaxnek/justifyx/Justifyx.java
@@ -1,485 +1,489 @@
/*
This file is part of justifyx.
justifyx is free software: you can redis... | false | true | private void downloadTrack(Justifyx justifyx, Track track, String parent, String bitrate, String option, Integer index) throws JustifyxException, TimeoutException{
// Downloading an album, if the new track number is lower than the previous downloaded song, it means we are in a new disc
if(option.equals("album"))... | private void downloadTrack(Justifyx justifyx, Track track, String parent, String bitrate, String option, Integer index) throws JustifyxException, TimeoutException{
// Downloading an album, if the new track number is lower than the previous downloaded song, it means we are in a new disc
if(option.equals("album"))... |
diff --git a/Tendu/src/it/chalmers/tendu/screens/LobbyScreen.java b/Tendu/src/it/chalmers/tendu/screens/LobbyScreen.java
index f036669..5bd9fcd 100644
--- a/Tendu/src/it/chalmers/tendu/screens/LobbyScreen.java
+++ b/Tendu/src/it/chalmers/tendu/screens/LobbyScreen.java
@@ -1,147 +1,147 @@
package it.chalmers.tendu.scre... | true | true | public void tick(InputController input) {
playersConnected = getModel().getLobbyMembers().entrySet().size();
if (!Player.getInstance().isHost() && playersConnected > 0) {
statusText.setText(TextLabels.CONNECTED_TO_SESSION);
} else if (Player.getInstance().isHost() && playersConnected == maximumPlayers) {
... | public void tick(InputController input) {
playersConnected = getModel().getLobbyMembers().entrySet().size();
if (!Player.getInstance().isHost() && playersConnected > 0) {
statusText.setText(TextLabels.CONNECTED_TO_SESSION);
} else if (Player.getInstance().isHost() && playersConnected == maximumPlayers) {
... |
diff --git a/src/org/servalproject/batphone/BatPhone.java b/src/org/servalproject/batphone/BatPhone.java
index 792ea7f9..cdc1fb4d 100644
--- a/src/org/servalproject/batphone/BatPhone.java
+++ b/src/org/servalproject/batphone/BatPhone.java
@@ -1,158 +1,160 @@
package org.servalproject.batphone;
import org.servalproj... | true | true | public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
ServalBatPhoneApplication app = ServalBatPhoneApplication.context;
try {
// Log.d("BatPhoneReceiver", "Got an intent: " + intent.toString());
if (action.equals(Intent.ACTION_NEW_OUTGOING_CALL)) {
onOutgoingCal... | public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
ServalBatPhoneApplication app = ServalBatPhoneApplication.context;
try {
// Log.d("BatPhoneReceiver", "Got an intent: " + intent.toString());
if (action.equals(Intent.ACTION_NEW_OUTGOING_CALL)) {
onOutgoingCal... |
diff --git a/WFPMapping/device/survey/src/com/gallatinsystems/survey/device/view/adapter/FileTransmissionArrayAdapter.java b/WFPMapping/device/survey/src/com/gallatinsystems/survey/device/view/adapter/FileTransmissionArrayAdapter.java
index 93b32ffd7..7afe65c85 100644
--- a/WFPMapping/device/survey/src/com/gallatinsyst... | true | true | private void bindView(View view, FileTransmission trans) {
ImageView imageView = (ImageView) view.findViewById(R.id.statusicon);
if (ConstantUtil.IN_PROGRESS_STATUS.equals(trans.getStatus())) {
imageView.setImageResource(R.drawable.blueuparrow);
} else if (ConstantUtil.QUEUED_STATUS.equals(trans.getStatus()))... | private void bindView(View view, FileTransmission trans) {
ImageView imageView = (ImageView) view.findViewById(R.id.statusicon);
if (ConstantUtil.IN_PROGRESS_STATUS.equals(trans.getStatus())) {
imageView.setImageResource(R.drawable.blueuparrow);
} else if (ConstantUtil.QUEUED_STATUS.equals(trans.getStatus()))... |
diff --git a/invoice/src/test/java/com/ning/billing/invoice/dao/TestInvoiceDaoForItemAdjustment.java b/invoice/src/test/java/com/ning/billing/invoice/dao/TestInvoiceDaoForItemAdjustment.java
index 1fac6f713..5fc759db6 100644
--- a/invoice/src/test/java/com/ning/billing/invoice/dao/TestInvoiceDaoForItemAdjustment.java
+... | true | true | private InvoiceItem createAndCheckAdjustment(final Invoice invoice, final InvoiceItem invoiceItem, final BigDecimal amount) throws InvoiceApiException {
final LocalDate effectiveDate = new LocalDate(2010, 1, 1);
final InvoiceItem adjustedInvoiceItem = invoiceDao.insertInvoiceItemAdjustment(invoice.g... | private InvoiceItem createAndCheckAdjustment(final Invoice invoice, final InvoiceItem invoiceItem, final BigDecimal amount) throws InvoiceApiException {
final LocalDate effectiveDate = new LocalDate(2010, 1, 1);
final InvoiceItem adjustedInvoiceItem = invoiceDao.insertInvoiceItemAdjustment(invoice.g... |
diff --git a/src/com/itmill/toolkit/demo/featurebrowser/ComboBoxExample.java b/src/com/itmill/toolkit/demo/featurebrowser/ComboBoxExample.java
index df8fa688d..810b5728f 100644
--- a/src/com/itmill/toolkit/demo/featurebrowser/ComboBoxExample.java
+++ b/src/com/itmill/toolkit/demo/featurebrowser/ComboBoxExample.java
@@ ... | true | true | public ComboBoxExample() {
final OrderedLayout main = new OrderedLayout();
main.setMargin(true);
setCompositionRoot(main);
// starts-with filter
final ComboBox s1 = new ComboBox("Select with starts-with filter");
s1.setFilteringMode(Filtering.FILTERINGMODE_STARTSWITH... | public ComboBoxExample() {
final OrderedLayout main = new OrderedLayout();
main.setMargin(true);
setCompositionRoot(main);
// starts-with filter
final ComboBox s1 = new ComboBox("Select with starts-with filter");
s1.setFilteringMode(Filtering.FILTERINGMODE_STARTSWITH... |
diff --git a/src/main/java/net/floodlightcontroller/hand/HANDRulesResource.java b/src/main/java/net/floodlightcontroller/hand/HANDRulesResource.java
index b76ffe51..ef4dffeb 100644
--- a/src/main/java/net/floodlightcontroller/hand/HANDRulesResource.java
+++ b/src/main/java/net/floodlightcontroller/hand/HANDRulesResourc... | true | true | private static HANDRule jsonToGangliaRule(String ruleJson) throws IOException{
HANDRule rule = new HANDRule();
MappingJsonFactory jsonFactory = new MappingJsonFactory();
JsonParser parser;
try{
parser = jsonFactory.createJsonParser(ruleJson);
}catch(JsonParseException e){
throw new IOException... | private static HANDRule jsonToGangliaRule(String ruleJson) throws IOException{
HANDRule rule = new HANDRule();
MappingJsonFactory jsonFactory = new MappingJsonFactory();
JsonParser parser;
try{
parser = jsonFactory.createJsonParser(ruleJson);
}catch(JsonParseException e){
throw new IOException... |
diff --git a/web/src/main/java/de/betterform/agent/web/resources/ResourceServlet.java b/web/src/main/java/de/betterform/agent/web/resources/ResourceServlet.java
index 97d5bc95..0915fbe4 100644
--- a/web/src/main/java/de/betterform/agent/web/resources/ResourceServlet.java
+++ b/web/src/main/java/de/betterform/agent/web/... | false | true | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
String requestUri = req.getRequestURI();
String resourcePath = RESOURCE_FOLDER + getResourcePath(requestUri);
URL url = ResourceServlet.class.getResource(resourcePath);
if (l... | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
String requestUri = req.getRequestURI();
String resourcePath = RESOURCE_FOLDER + getResourcePath(requestUri);
URL url = ResourceServlet.class.getResource(resourcePath);
if (l... |
diff --git a/test/unit/DisplayControllerTest.java b/test/unit/DisplayControllerTest.java
index 47b3430..17f04b4 100644
--- a/test/unit/DisplayControllerTest.java
+++ b/test/unit/DisplayControllerTest.java
@@ -1,47 +1,47 @@
package unit;
import static org.junit.Assert.*;
import glare.ClassFactory;
import java.... | true | true | public void setUp() throws IOException{
dbHandler = new DatabaseHandler();
dbManagerDummy = new DatabaseManagerDummy(dbHandler);
pc = new PictureController(dbManagerDummy);
dc = new DisplayController(pc);
dc.getCurrentPicture(false);
}
| public void setUp() throws IOException{
dbHandler = new DatabaseHandler();
dbManagerDummy = new DatabaseManagerDummy(dbHandler);
pc = new PictureController(dbManagerDummy);
dc = new DisplayController(pc);
dc.getCurrentPicture();
}
|
diff --git a/java/client/src/org/openqa/selenium/internal/seleniumemulation/ElementFinder.java b/java/client/src/org/openqa/selenium/internal/seleniumemulation/ElementFinder.java
index 18be2c908..28c12886e 100644
--- a/java/client/src/org/openqa/selenium/internal/seleniumemulation/ElementFinder.java
+++ b/java/client/s... | true | true | public WebElement findElement(WebDriver driver, String locator) {
WebElement toReturn = null;
String strategy = searchAdditionalStrategies(locator);
if (strategy != null) {
String actualLocator = locator.substring(locator.indexOf('=') + 1);
// TODO(simon): Recurse into child documents
... | public WebElement findElement(WebDriver driver, String locator) {
WebElement toReturn = null;
String strategy = searchAdditionalStrategies(locator);
if (strategy != null) {
String actualLocator = locator.substring(locator.indexOf('=') + 1);
// TODO(simon): Recurse into child documents
... |
diff --git a/AndroidApp/src/net/hackergarten/android/app/client/HackergartenClient.java b/AndroidApp/src/net/hackergarten/android/app/client/HackergartenClient.java
index 81a2b43..fa023dc 100644
--- a/AndroidApp/src/net/hackergarten/android/app/client/HackergartenClient.java
+++ b/AndroidApp/src/net/hackergarten/androi... | true | true | private <V> void requestAsynchronously(final AsyncCallback<V> callback,
final HttpUriRequest request,
final ResponseProcessor<V> responseProcessor) {
Thread thread = new Thread() {
public void run() {
try {
Log.d(TAG, "requesting asynchronously " + request.getURI());
HttpResponse response = ht... | private <V> void requestAsynchronously(final AsyncCallback<V> callback,
final HttpUriRequest request,
final ResponseProcessor<V> responseProcessor) {
Thread thread = new Thread() {
public void run() {
try {
Log.d(TAG, "requesting asynchronously " + request.getURI());
HttpResponse response = ht... |
diff --git a/src/nz/gen/wellington/penguin/about.java b/src/nz/gen/wellington/penguin/about.java
index 899385d..cea6849 100644
--- a/src/nz/gen/wellington/penguin/about.java
+++ b/src/nz/gen/wellington/penguin/about.java
@@ -1,40 +1,40 @@
package nz.gen.wellington.penguin;
import android.app.Activity;
import andro... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.about);
StringBuilder text = new StringBuilder();
text.append("<p>The <a href=\"http://blog.tepapa.govt.nz/2... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.about);
StringBuilder text = new StringBuilder();
text.append("<p>The <a href=\"http://tinyurl.com/3osqgtl/\... |
diff --git a/src/powercrystals/minefactoryreloaded/block/BlockVineScaffold.java b/src/powercrystals/minefactoryreloaded/block/BlockVineScaffold.java
index 867b8331..6b27107b 100644
--- a/src/powercrystals/minefactoryreloaded/block/BlockVineScaffold.java
+++ b/src/powercrystals/minefactoryreloaded/block/BlockVineScaffol... | false | true | public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float xOffset, float yOffset, float zOffset)
{
if(!world.isRemote && player.inventory.mainInventory[player.inventory.currentItem] != null && player.inventory.mainInventory[player.inventory.currentItem].itemID == blockID... | public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float xOffset, float yOffset, float zOffset)
{
if(!world.isRemote && player.inventory.mainInventory[player.inventory.currentItem] != null && player.inventory.mainInventory[player.inventory.currentItem].itemID == blockID... |
diff --git a/src/se/otaino2/breakoutgame/BreakoutBoardView.java b/src/se/otaino2/breakoutgame/BreakoutBoardView.java
index 72195f8..c6be8e9 100644
--- a/src/se/otaino2/breakoutgame/BreakoutBoardView.java
+++ b/src/se/otaino2/breakoutgame/BreakoutBoardView.java
@@ -1,276 +1,277 @@
package se.otaino2.breakoutgame;
im... | false | true | private void updatePhysics() {
long now = System.currentTimeMillis();
// Make sure we don't update physics unnecessary often
if (lastTime > now)
return;
double elapsed = (now - lastTime) / 1000.0;
// Update paddle positio... | private void updatePhysics() {
long now = System.currentTimeMillis();
// Make sure we don't update physics unnecessary often
if (lastTime > now)
return;
double elapsed = (now - lastTime) / 1000.0;
// Update paddle positio... |
diff --git a/src/org/nutz/dao/pager/ResultSetLooping.java b/src/org/nutz/dao/pager/ResultSetLooping.java
index f295139cc..b0c76eb30 100644
--- a/src/org/nutz/dao/pager/ResultSetLooping.java
+++ b/src/org/nutz/dao/pager/ResultSetLooping.java
@@ -1,111 +1,112 @@
package org.nutz.dao.pager;
import java.sql.ResultSet;
... | true | true | public void doLoop(ResultSet rs, SqlContext context) throws SQLException {
Pager pager = context.getPager();
if (null == rs)
return;
/**
* 如果没有设置 Pager 或者 rs 的类型是 ResultSet.TYPE_FORWARD_ONLY,那么<br>
* 无法利用 游标的滚动 来计算结果集合大小。这比较高效,但是如果使用者希望得到页数量,<br>
* 需要为 Pager 另行计算 总体的结果集大小。
* <p>
* 一般的,为特殊数据建立的 ... | public void doLoop(ResultSet rs, SqlContext context) throws SQLException {
Pager pager = context.getPager();
if (null == rs)
return;
/**
* 如果没有设置 Pager 或者 rs 的类型是 ResultSet.TYPE_FORWARD_ONLY,那么<br>
* 无法利用 游标的滚动 来计算结果集合大小。这比较高效,但是如果使用者希望得到页数量,<br>
* 需要为 Pager 另行计算 总体的结果集大小。
* <p>
* 一般的,为特殊数据建立的 ... |
diff --git a/TSPi/src/mode0.java b/TSPi/src/mode0.java
index 2362470..9a368f8 100644
--- a/TSPi/src/mode0.java
+++ b/TSPi/src/mode0.java
@@ -1,154 +1,154 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Random;
public class mode0 {
public ArrayList<Character> generateSet(){
Arr... | false | true | public ArrayList<ArrayList<Object>> generateFPO(int lengthX, int lengthY){
ArrayList<ArrayList<Object>> result = new ArrayList<ArrayList<Object>>();
ArrayList<Character> availableChar = this.generateSet();
ArrayList<Character> excludeParent = new ArrayList<Character>();
for(int i = 0; i<lengthY; i++){
Ar... | public ArrayList<ArrayList<Object>> generateFPO(int lengthX, int lengthY){
ArrayList<ArrayList<Object>> result = new ArrayList<ArrayList<Object>>();
ArrayList<Character> availableChar = this.generateSet();
ArrayList<Character> excludeParent = new ArrayList<Character>();
for(int i = 0; i<lengthY; i++){
Ar... |
diff --git a/src/share/classes/com/sun/tools/javafx/code/FunctionType.java b/src/share/classes/com/sun/tools/javafx/code/FunctionType.java
index 1b056221e..5cae10945 100644
--- a/src/share/classes/com/sun/tools/javafx/code/FunctionType.java
+++ b/src/share/classes/com/sun/tools/javafx/code/FunctionType.java
@@ -1,75 +1... | true | true | public String toString() {
StringBuilder s = new StringBuilder();
s.append("function(");
if (mtype == null)
s.append("???");
else {
List<Type> args = mtype.argtypes;
for (List<Type> l = args; l.nonEmpty(); l = l.tail) {
if (l != arg... | public String toString() {
StringBuilder s = new StringBuilder();
s.append("function(");
if (mtype == null)
s.append("???");
else {
List<Type> args = mtype.argtypes;
for (List<Type> l = args; l.nonEmpty(); l = l.tail) {
if (l != arg... |
diff --git a/src/java/com/atlassian/plugin/loaders/classloading/Scanner.java b/src/java/com/atlassian/plugin/loaders/classloading/Scanner.java
index f6bb1093..9c234c1a 100644
--- a/src/java/com/atlassian/plugin/loaders/classloading/Scanner.java
+++ b/src/java/com/atlassian/plugin/loaders/classloading/Scanner.java
@@ -1... | false | true | public void scan()
{
// Checks to see if we have deleted one of the deployment units.
Collection dUnits = deployedLoaders.keySet();
List toUndeploy = new ArrayList();
for (Iterator iterator = dUnits.iterator(); iterator.hasNext();)
{
DeploymentUnit unit = (Dep... | public void scan()
{
// Checks to see if we have deleted one of the deployment units.
Collection dUnits = deployedLoaders.keySet();
List toUndeploy = new ArrayList();
for (Iterator iterator = dUnits.iterator(); iterator.hasNext();)
{
DeploymentUnit unit = (Dep... |
diff --git a/plexus-container-default/src/main/java/org/codehaus/plexus/component/composition/FieldComponentComposer.java b/plexus-container-default/src/main/java/org/codehaus/plexus/component/composition/FieldComponentComposer.java
index 4a365e71..8237b6f1 100644
--- a/plexus-container-default/src/main/java/org/codeha... | false | true | private List assignRequirementToField( Object component, Field field, PlexusContainer container,
ComponentRequirement requirement )
throws CompositionException
{
try
{
List retValue;
String role = requirement.getRole();
... | private List assignRequirementToField( Object component, Field field, PlexusContainer container,
ComponentRequirement requirement )
throws CompositionException
{
try
{
List retValue;
String role = requirement.getRole();
... |
diff --git a/sopremo/sopremo-query/src/main/java/eu/stratosphere/sopremo/query/PackageInfo.java b/sopremo/sopremo-query/src/main/java/eu/stratosphere/sopremo/query/PackageInfo.java
index 06a30ae79..6a83925ab 100644
--- a/sopremo/sopremo-query/src/main/java/eu/stratosphere/sopremo/query/PackageInfo.java
+++ b/sopremo/so... | false | true | private void importClass(String className) {
Class<?> clazz;
try {
clazz = this.classLoader.loadClass(className);
if(clazz.getAnnotation(Internal.class) != null)
return;
if (Operator.class.isAssignableFrom(clazz) && (clazz.getModifiers() & Modifier.ABSTRACT) == 0) {
clazz = Class.forName(className... | private void importClass(String className) {
Class<?> clazz;
try {
clazz = this.classLoader.loadClass(className);
if(clazz.getAnnotation(Internal.class) != null)
return;
if (Operator.class.isAssignableFrom(clazz) && (clazz.getModifiers() & Modifier.ABSTRACT) == 0) {
clazz = Class.forName(className... |
diff --git a/src/com/jidesoft/swing/CheckBoxListSelectionModel.java b/src/com/jidesoft/swing/CheckBoxListSelectionModel.java
index 96e8b5fd..2f3ad80e 100644
--- a/src/com/jidesoft/swing/CheckBoxListSelectionModel.java
+++ b/src/com/jidesoft/swing/CheckBoxListSelectionModel.java
@@ -1,59 +1,65 @@
package com.jidesoft.s... | false | true | public void insertIndexInterval(int index, int length, boolean before) {
if (before) {
boolean old = isSelectedIndex(index);
if (old) {
removeSelectionInterval(index, index);
}
super.insertIndexInterval(index, length, before);
if (o... | public void insertIndexInterval(int index, int length, boolean before) {
if (before) {
boolean old = isSelectedIndex(index);
super.setValueIsAdjusting(true);
try {
if (old) {
removeSelectionInterval(index, index);
}
... |
diff --git a/org.codemap/src/org/codemap/mapview/MenuAction.java b/org.codemap/src/org/codemap/mapview/MenuAction.java
index 06776eaa..302b8538 100644
--- a/org.codemap/src/org/codemap/mapview/MenuAction.java
+++ b/org.codemap/src/org/codemap/mapview/MenuAction.java
@@ -1,29 +1,31 @@
package org.codemap.mapview;
im... | true | true | public void configureAction(MapPerProject map) {
setChecked(map.getPropertyOrDefault(getKey(), isDefaultChecked()));
run();
}
| public void configureAction(MapPerProject map) {
setChecked(map.getPropertyOrDefault(getKey(), isDefaultChecked()));
// TODO: find a way to re-run the action-enabling on startup
// do *not* use run() as it causes the program to loop infinitely
// run();
}
|
diff --git a/src/main/java/de/minestar/AdminStuff/commands/cmdGive.java b/src/main/java/de/minestar/AdminStuff/commands/cmdGive.java
index 29147fa..97b9d7c 100644
--- a/src/main/java/de/minestar/AdminStuff/commands/cmdGive.java
+++ b/src/main/java/de/minestar/AdminStuff/commands/cmdGive.java
@@ -1,89 +1,89 @@
/*
b * ... | true | true | public void execute(String[] args, Player player) {
Player target = PlayerUtils.getOnlinePlayer(args[0]);
if (target == null) {
PlayerUtils.sendError(player, pluginName, "Spieler '" + args[0] + "' nicht gefunden!");
return;
}
String ID = ASItem.getIDPart(args[... | public void execute(String[] args, Player player) {
Player target = PlayerUtils.getOnlinePlayer(args[0]);
if (target == null) {
PlayerUtils.sendError(player, pluginName, "Spieler '" + args[0] + "' nicht gefunden!");
return;
}
String ID = ASItem.getIDPart(args[... |
diff --git a/ServerThread.java b/ServerThread.java
index f14ee05..f83346f 100644
--- a/ServerThread.java
+++ b/ServerThread.java
@@ -1,21 +1,23 @@
import java.net.*;
import java.io.*;
public class ServerThread extends Thread {
Socket s = null;
public ServerThread(Socket socket) {
super("ServerThread");
s... | true | true | public void run() {
try {
BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream()));
while (s.isConnected() && !s.isClosed()) {
System.out.println(in.readLine());
}
} catch (Exception e) {
e.printStackTrace();
}
System.out.println("Done!");
}
| public void run() {
try {
BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream()));
while (s.isConnected() && !s.isClosed()) {
String line = in.readLine();
if (line.equals("exit")) break;
System.out.println(line);
}
} catch (Exception e) {
e.printStackTrace();
}
... |
diff --git a/rwiki-impl/impl/src/java/uk/ac/cam/caret/sakai/rwiki/component/macros/BlockMacro.java b/rwiki-impl/impl/src/java/uk/ac/cam/caret/sakai/rwiki/component/macros/BlockMacro.java
index de557afb..81bd382f 100755
--- a/rwiki-impl/impl/src/java/uk/ac/cam/caret/sakai/rwiki/component/macros/BlockMacro.java
+++ b/rwi... | true | true | public void execute(Writer writer, MacroParameter params)
throws IllegalArgumentException, IOException
{
String cssClass = params.get("class"); //$NON-NLS-1$
if (cssClass == null)
{
cssClass = params.get(0);
if (cssClass == null) {
// do nothing
} else if (cssClass.startsWith("id=")) //$NON-NLS... | public void execute(Writer writer, MacroParameter params)
throws IllegalArgumentException, IOException
{
String cssClass = params.get("class"); //$NON-NLS-1$
if (cssClass == null)
{
cssClass = params.get(0);
if (cssClass == null) {
// do nothing
} else if (cssClass.startsWith("id=")) //$NON-NLS... |
diff --git a/src/com/android/bluetooth/btservice/AdapterProperties.java b/src/com/android/bluetooth/btservice/AdapterProperties.java
index 73e795e..0c00ffd 100755
--- a/src/com/android/bluetooth/btservice/AdapterProperties.java
+++ b/src/com/android/bluetooth/btservice/AdapterProperties.java
@@ -1,559 +1,560 @@
/*
*... | true | true | void adapterPropertyChangedCallback(int[] types, byte[][] values) {
Intent intent;
int type;
byte[] val;
for (int i = 0; i < types.length; i++) {
val = values[i];
type = types[i];
infoLog("adapterPropertyChangedCallback with type:" + type + " len:"... | void adapterPropertyChangedCallback(int[] types, byte[][] values) {
Intent intent;
int type;
byte[] val;
for (int i = 0; i < types.length; i++) {
val = values[i];
type = types[i];
infoLog("adapterPropertyChangedCallback with type:" + type + " len:"... |
diff --git a/src/gui/CalendarGui.java b/src/gui/CalendarGui.java
index ea52ef2..7d69188 100644
--- a/src/gui/CalendarGui.java
+++ b/src/gui/CalendarGui.java
@@ -1,420 +1,421 @@
package gui;
import static gui.GuiConstants.DEFAULT_END_HOUR;
import static gui.GuiConstants.DEFAULT_START_HOUR;
import static gui.GuiCon... | false | true | public void buildFrame(){
_frame = new JFrame("Kairos");
_frame.addWindowListener(new InnerWindowListener());
JPanel calPanel = new JPanel();
GroupLayout calLayout = new GroupLayout(calPanel);
calPanel.setLayout(calLayout);
// TODO change to false
_frame.setResizable(true);
calLayout.setHorizontalGr... | public void buildFrame(){
_frame = new JFrame("Kairos");
_frame.addWindowListener(new InnerWindowListener());
JPanel calPanel = new JPanel();
GroupLayout calLayout = new GroupLayout(calPanel);
calPanel.setLayout(calLayout);
// TODO change to false
_frame.setResizable(true);
calLayout.setHorizontalGr... |
diff --git a/msv/src/com/sun/msv/driver/textui/Driver.java b/msv/src/com/sun/msv/driver/textui/Driver.java
index bdc2a249..d487a2bd 100644
--- a/msv/src/com/sun/msv/driver/textui/Driver.java
+++ b/msv/src/com/sun/msv/driver/textui/Driver.java
@@ -1,402 +1,403 @@
/*
* @(#)$Id$
*
* Copyright 2001 Sun Microsystems,... | true | true | public static void main( String[] args ) throws Exception {
final Vector fileNames = new Vector();
String grammarName = null;
boolean dump=false;
boolean verbose = false;
boolean warning = false;
boolean standalone=false;
boolean strict=false;
EntityResolver entityResolver=null;
if( args.length... | public static void main( String[] args ) throws Exception {
final Vector fileNames = new Vector();
String grammarName = null;
boolean dump=false;
boolean verbose = false;
boolean warning = false;
boolean standalone=false;
boolean strict=false;
EntityResolver entityResolver=null;
if( args.length... |
diff --git a/ant-tasks/src/net/java/jsip/ant/tasks/VersionerTask.java b/ant-tasks/src/net/java/jsip/ant/tasks/VersionerTask.java
index 28b5e854..c5704c9d 100644
--- a/ant-tasks/src/net/java/jsip/ant/tasks/VersionerTask.java
+++ b/ant-tasks/src/net/java/jsip/ant/tasks/VersionerTask.java
@@ -1,271 +1,271 @@
package net.... | false | true | public void execute() throws BuildException {
if (this.cvsVersionFile == null && this.version < 0) {
throw new BuildException(
"Version file property file is not set and version property is not set - one of them must be used!!!");
}
if (toVersion == null) {
... | public void execute() throws BuildException {
if (this.cvsVersionFile == null && this.version < 0) {
throw new BuildException(
"Version file property file is not set and version property is not set - one of them must be used!!!");
}
if (toVersion == null) {
... |
diff --git a/src/main/java/com/datascience/gal/dawidSkeneProcessors/DawidSkeneProcessorManager.java b/src/main/java/com/datascience/gal/dawidSkeneProcessors/DawidSkeneProcessorManager.java
index cfaa3cf4..035c18f9 100644
--- a/src/main/java/com/datascience/gal/dawidSkeneProcessors/DawidSkeneProcessorManager.java
+++ b/... | true | true | private void executeProcessors() {
synchronized(this.processorQueue) {
Collection<String> projects = this.processorQueue.keySet();
for (String project : projects) {
Queue<DawidSkeneProcessor> queue = this.processorQueue.get(project);
if(queue.peek()!=null&&queue.peek().getState().equals(DawidSkeneProce... | private void executeProcessors() {
synchronized(this.processorQueue) {
Collection<String> projects = this.processorQueue.keySet();
for (String project : projects) {
Queue<DawidSkeneProcessor> queue = this.processorQueue.get(project);
if(queue.peek()!=null&&!queue.peek().getState().equals(DawidSkeneProc... |
diff --git a/src/com/android/mms/data/RecipientIdCache.java b/src/com/android/mms/data/RecipientIdCache.java
index 4547a5d..f3ed4ab 100644
--- a/src/com/android/mms/data/RecipientIdCache.java
+++ b/src/com/android/mms/data/RecipientIdCache.java
@@ -1,170 +1,170 @@
package com.android.mms.data;
import java.util.Arra... | false | true | public static List<Entry> getAddresses(String spaceSepIds) {
synchronized (sInstance) {
List<Entry> numbers = new ArrayList<Entry>();
String[] ids = spaceSepIds.split(" ");
for (String id : ids) {
long longId;
try {
lon... | public static List<Entry> getAddresses(String spaceSepIds) {
synchronized (sInstance) {
List<Entry> numbers = new ArrayList<Entry>();
String[] ids = spaceSepIds.split(" ");
for (String id : ids) {
long longId;
try {
lon... |
diff --git a/kdcloud-webservice/src/main/java/com/kdcloud/server/rest/application/MainApplication.java b/kdcloud-webservice/src/main/java/com/kdcloud/server/rest/application/MainApplication.java
index dfb4040..b9cc59c 100644
--- a/kdcloud-webservice/src/main/java/com/kdcloud/server/rest/application/MainApplication.java... | true | true | public Restlet createInboundRoot() {
getLogger().setLevel(Level.FINEST);
Context applicationContext = new GAEContext(getLogger());
Router router = new Router(getContext());
router.attach("/xml", new Directory(getContext(), "war:///"));
router.attach(TaskQueue.WORKER_URI + ServerParameter.TASK_ID, Q... | public Restlet createInboundRoot() {
getLogger().setLevel(Level.FINEST);
Context applicationContext = new GAEContext(getLogger());
Router router = new Router(getContext());
router.attach("/XML", new Directory(getContext(), "war:///"));
router.attach(TaskQueue.WORKER_URI + ServerParameter.TASK_ID, Q... |
diff --git a/src/prettify/lang/LangSql.java b/src/prettify/lang/LangSql.java
index 83def8c..89bc582 100644
--- a/src/prettify/lang/LangSql.java
+++ b/src/prettify/lang/LangSql.java
@@ -1,72 +1,72 @@
// Copyright (C) 2008 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may no... | true | true | public LangSql() {
List<List<Object>> _shortcutStylePatterns = new ArrayList<List<Object>>();
List<List<Object>> _fallthroughStylePatterns = new ArrayList<List<Object>>();
// Whitespace
_shortcutStylePatterns.add(Arrays.asList(new Object[]{Prettify.PR_PLAIN, Pattern.compile("^[\\t\\n\\r \\xA0]+"), nu... | public LangSql() {
List<List<Object>> _shortcutStylePatterns = new ArrayList<List<Object>>();
List<List<Object>> _fallthroughStylePatterns = new ArrayList<List<Object>>();
// Whitespace
_shortcutStylePatterns.add(Arrays.asList(new Object[]{Prettify.PR_PLAIN, Pattern.compile("^[\\t\\n\\r \\xA0]+"), nu... |
diff --git a/GIL/src/gil/web/html/page/AboutPage.java b/GIL/src/gil/web/html/page/AboutPage.java
index 559a340..8ecb14e 100644
--- a/GIL/src/gil/web/html/page/AboutPage.java
+++ b/GIL/src/gil/web/html/page/AboutPage.java
@@ -1,70 +1,70 @@
/*
Copyright (C) 2010 LearningWell AB (www.learningwell.com), Kärnkraftsäke... | true | true | public AboutPage() {
GIL.VersionInfo info = GIL.instance().getVersionInfo();
Div div = new Div("about");
div.addContent(new Heading("About", Heading.H2));
div.addContent(new Heading("Current CIR", Heading.H3));
addVersionInfo(div, info.gilInfo);
div.addCont... | public AboutPage() {
GIL.VersionInfo info = GIL.instance().getVersionInfo();
Div div = new Div("about");
div.addContent(new Heading("About", Heading.H2));
div.addContent(new Heading("Current GIL", Heading.H3));
addVersionInfo(div, info.gilInfo);
div.addCont... |
diff --git a/src/ua/com/vassiliev/androidfilebrowser/FileBrowserActivity.java b/src/ua/com/vassiliev/androidfilebrowser/FileBrowserActivity.java
index 4082f0b..835de65 100644
--- a/src/ua/com/vassiliev/androidfilebrowser/FileBrowserActivity.java
+++ b/src/ua/com/vassiliev/androidfilebrowser/FileBrowserActivity.java
@@ ... | false | true | private void setInitialDirectory() {
Intent thisInt = this.getIntent();
String requestedStartDir = thisInt
.getStringExtra(startDirectoryParameter);
if (requestedStartDir != null && requestedStartDir.length() > 0) {// if(requestedStartDir!=null
File tempFile = new File(requestedStartDir);
if (tempFile... | private void setInitialDirectory() {
Intent thisInt = this.getIntent();
String requestedStartDir = thisInt
.getStringExtra(startDirectoryParameter);
if (requestedStartDir != null && requestedStartDir.length() > 0) {// if(requestedStartDir!=null
File tempFile = new File(requestedStartDir);
if (tempFile... |
diff --git a/savant.snp/src/savant/snp/SNPFinderPlugin.java b/savant.snp/src/savant/snp/SNPFinderPlugin.java
index 76adeea7..25349b32 100644
--- a/savant.snp/src/savant/snp/SNPFinderPlugin.java
+++ b/savant.snp/src/savant/snp/SNPFinderPlugin.java
@@ -1,643 +1,643 @@
/*
* Copyright 2010 University of Toronto
*
... | false | true | private void updatePileupsFromSAMRecord(List<Pileup> pileups, GenomeAdapter genome, SAMRecord samRecord, int startPosition) throws IOException {
// the start and end of the alignment
int alignmentStart = samRecord.getAlignmentStart();
int alignmentEnd = samRecord.getAlignmentEnd();
... | private void updatePileupsFromSAMRecord(List<Pileup> pileups, GenomeAdapter genome, SAMRecord samRecord, int startPosition) throws IOException {
// the start and end of the alignment
int alignmentStart = samRecord.getAlignmentStart();
int alignmentEnd = samRecord.getAlignmentEnd();
... |
diff --git a/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/actions/AbstractReadHostAddress.java b/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/actions/AbstractReadHostAddress.java
index bdcaefd745..1fffb5c62f 100644
--- a/kerberos-codec/src/main/java/org/apache/direc... | false | true | public void action( Asn1Container container ) throws DecoderException
{
TLV tlv = container.getCurrentTLV();
// The Length should not be null
if ( tlv.getLength() == 0 )
{
LOG.error( I18n.err( I18n.ERR_04066 ) );
// This will generate a PROTOCOL_ERROR
... | public void action( Asn1Container container ) throws DecoderException
{
TLV tlv = container.getCurrentTLV();
// The Length should not be null
if ( tlv.getLength() == 0 )
{
LOG.error( I18n.err( I18n.ERR_04066 ) );
// This will generate a PROTOCOL_ERROR
... |
diff --git a/izpack-src/branches/branch-3-8/src/lib/com/izforge/izpack/installer/Unpacker.java b/izpack-src/branches/branch-3-8/src/lib/com/izforge/izpack/installer/Unpacker.java
index 674a1290..ef53674d 100644
--- a/izpack-src/branches/branch-3-8/src/lib/com/izforge/izpack/installer/Unpacker.java
+++ b/izpack-src/bran... | true | true | public void run()
{
addToInstances();
try
{
//
// Initialisations
FileOutputStream out = null;
ArrayList parsables = new ArrayList();
ArrayList executables = new ArrayList();
ArrayList updatechecks = new ArrayList();... | public void run()
{
addToInstances();
try
{
//
// Initialisations
FileOutputStream out = null;
ArrayList parsables = new ArrayList();
ArrayList executables = new ArrayList();
ArrayList updatechecks = new ArrayList();... |
diff --git a/src/org/drftpd/slave/PassiveConnection.java b/src/org/drftpd/slave/PassiveConnection.java
index ee868c69..ac7d8e2f 100644
--- a/src/org/drftpd/slave/PassiveConnection.java
+++ b/src/org/drftpd/slave/PassiveConnection.java
@@ -1,85 +1,89 @@
/*
* This file is part of DrFTPD, Distributed FTP Daemon.
*
... | true | true | public Socket connect() throws IOException {
Socket sock = _serverSocket.accept();
_serverSocket.close();
_serverSocket = null;
setSockOpts(sock);
if (sock instanceof SSLSocket) {
SSLSocket sslsock = (SSLSocket) sock;
sslsock.setUseClientMode(false);
... | public Socket connect() throws IOException {
Socket sock = null;
try {
sock = _serverSocket.accept();
} finally {
_serverSocket.close();
_serverSocket = null;
}
setSockOpts(sock);
if (sock instanceof SSLSocket) {
SSLSocket sslsock = (SSLSocket) sock;
sslsock.s... |
diff --git a/src/org/yaaic/activity/AddServerActivity.java b/src/org/yaaic/activity/AddServerActivity.java
index 0975ca0..00997fb 100644
--- a/src/org/yaaic/activity/AddServerActivity.java
+++ b/src/org/yaaic/activity/AddServerActivity.java
@@ -1,417 +1,417 @@
/*
Yaaic - Yet Another Android IRC Client
Copyright 20... | true | true | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.serveradd);
aliases = new ArrayList<String>();
channels = new ArrayList<String>();
commands = new ArrayList<String>();
((Button) findVie... | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.serveradd);
aliases = new ArrayList<String>();
channels = new ArrayList<String>();
commands = new ArrayList<String>();
((Button) findVie... |
diff --git a/sources/android/src/org/ewol/EwolActivity.java b/sources/android/src/org/ewol/EwolActivity.java
index 50643628..8e710628 100644
--- a/sources/android/src/org/ewol/EwolActivity.java
+++ b/sources/android/src/org/ewol/EwolActivity.java
@@ -1,238 +1,238 @@
/**
***********************************************... | true | true | @Override protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
// set the java evironement in the C sources :
Ewol.setJavaVirtualMachineStart(this);
// Load the application directory
Ewol.paramSetArchiveDir(1, getFilesDir().toString());
Ewol.paramSetArchiveDir(2,... | @Override protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
// set the java evironement in the C sources :
Ewol.setJavaVirtualMachineStart(this);
// Load the application directory
Ewol.paramSetArchiveDir(1, getFilesDir().toString());
Ewol.paramSetArchiveDir(2,... |
diff --git a/cdm/src/test/java/ucar/nc2/iosp/hdf5/TestN4.java b/cdm/src/test/java/ucar/nc2/iosp/hdf5/TestN4.java
index b330e5b7c..e58fe16f7 100644
--- a/cdm/src/test/java/ucar/nc2/iosp/hdf5/TestN4.java
+++ b/cdm/src/test/java/ucar/nc2/iosp/hdf5/TestN4.java
@@ -1,214 +1,214 @@
/*
* Copyright 1998-2009 University Corp... | true | true | public void testVlen() throws IOException, InvalidRangeException {
//H5header.setDebugFlags(new ucar.nc2.util.DebugFlagsImpl("H5header/header"));
String filename = "C:/data/work/bruno/fpsc_d1wave_24-11.nc";
//String filename = testDir+"vlen/fpcs_1dwave_2.nc";
NetcdfFile ncfile = TestNC2.open(filename)... | public void testVlen() throws IOException, InvalidRangeException {
//H5header.setDebugFlags(new ucar.nc2.util.DebugFlagsImpl("H5header/header"));
//String filename = "C:/data/work/bruno/fpsc_d1wave_24-11.nc";
String filename = testDir+"vlen/fpcs_1dwave_2.nc";
NetcdfFile ncfile = TestNC2.open(filename)... |
diff --git a/behaviors/behavior-tutorial-repo/src/main/java/com/someco/behavior/Rating.java b/behaviors/behavior-tutorial-repo/src/main/java/com/someco/behavior/Rating.java
index fff52de..e65bc31 100644
--- a/behaviors/behavior-tutorial-repo/src/main/java/com/someco/behavior/Rating.java
+++ b/behaviors/behavior-tutoria... | true | true | public void computeAverage(ChildAssociationRef childAssocRef) {
if (logger.isDebugEnabled()) logger.debug("Inside computeAverage");
// get the parent node
NodeRef parentRef = childAssocRef.getParentRef();
// check the parent to make sure it has the right aspect
if (nodeService.hasAspect(parentRef, QName.c... | public void computeAverage(ChildAssociationRef childAssocRef) {
if (logger.isDebugEnabled()) logger.debug("Inside computeAverage");
// get the parent node
NodeRef parentRef = childAssocRef.getParentRef();
// check the parent to make sure it has the right aspect
if (nodeService.exists(parentRef) && nodeSer... |
diff --git a/src/org/protege/editor/owl/ui/view/SelectedEntityCardView.java b/src/org/protege/editor/owl/ui/view/SelectedEntityCardView.java
index 1748be80..87c65207 100644
--- a/src/org/protege/editor/owl/ui/view/SelectedEntityCardView.java
+++ b/src/org/protege/editor/owl/ui/view/SelectedEntityCardView.java
@@ -1,155... | true | true | protected void initialiseOWLView() throws Exception {
setLayout(new BorderLayout());
cardPanel = new JPanel();
add(cardPanel);
cardPanel.setLayout(cardLayout);
cardPanel.add(new JPanel(), BLANK_PANEL);
URL clsURL = getClass().getResource("/selected-entity-view-class-p... | protected void initialiseOWLView() throws Exception {
setLayout(new BorderLayout());
cardPanel = new JPanel();
add(cardPanel);
cardPanel.setLayout(cardLayout);
cardPanel.add(new JPanel(), BLANK_PANEL);
URL clsURL = getClass().getResource("/selected-entity-view-class-p... |
diff --git a/src/com/aokp/romcontrol/fragments/UserInterface.java b/src/com/aokp/romcontrol/fragments/UserInterface.java
index 5ad3f79..0b181bb 100644
--- a/src/com/aokp/romcontrol/fragments/UserInterface.java
+++ b/src/com/aokp/romcontrol/fragments/UserInterface.java
@@ -1,740 +1,734 @@
package com.aokp.romcontrol.... | false | true | public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen,
Preference preference) {
if (preference == mAllow180Rotation) {
boolean checked = ((CheckBoxPreference) preference).isChecked();
Settings.System.putInt(mContext.getContentResolver(),
... | public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen,
Preference preference) {
if (preference == mAllow180Rotation) {
boolean checked = ((CheckBoxPreference) preference).isChecked();
Settings.System.putInt(mContext.getContentResolver(),
... |
diff --git a/Code/Part1/src/core/ParseCallgraph.java b/Code/Part1/src/core/ParseCallgraph.java
index bd2d175..fe699a3 100644
--- a/Code/Part1/src/core/ParseCallgraph.java
+++ b/Code/Part1/src/core/ParseCallgraph.java
@@ -1,193 +1,193 @@
package core;
import java.io.BufferedReader;
import java.io.IOException;
impo... | true | true | public void intra(String filePart, int thresholdSupport,
double thresholdConfidence) {
String currentLine = null;
String caller = null;
// used in inter-processing
HashMap<String, TreeSet<String>> functionMapIntra = new HashMap<String, TreeSet<String>>();
try {
// multi-threads resolve process deadlo... | public void intra(String filePart, int thresholdSupport,
double thresholdConfidence) {
String currentLine = null;
String caller = null;
// used in inter-processing
HashMap<String, TreeSet<String>> functionMapIntra = new HashMap<String, TreeSet<String>>();
try {
// multi-threads resolve process deadlo... |
diff --git a/org.jcryptool.visual.sig/src/org/jcryptool/visual/sig/ui/wizards/ShowSig.java b/org.jcryptool.visual.sig/src/org/jcryptool/visual/sig/ui/wizards/ShowSig.java
index 9ee9180..d994d55 100644
--- a/org.jcryptool.visual.sig/src/org/jcryptool/visual/sig/ui/wizards/ShowSig.java
+++ b/org.jcryptool.visual.sig/src/... | true | true | public ShowSig(Display display, String sig) {
super(display, SWT.CLOSE | SWT.MIN | SWT.MAX | SWT.TITLE | SWT.APPLICATION_MODAL);
Composite composite = new Composite(this, SWT.NONE);
composite.setBounds(10, 10, 485, 661);
txtT = new Label(composite, SWT.READ_ONLY | SWT.WRAP);
txtT.setText(Messages.ShowS... | public ShowSig(Display display, String sig) {
super(display, SWT.CLOSE | SWT.MIN | SWT.MAX | SWT.TITLE | SWT.APPLICATION_MODAL);
Composite composite = new Composite(this, SWT.NONE);
composite.setBounds(10, 10, 485, 661);
txtT = new Label(composite, SWT.READ_ONLY | SWT.WRAP);
txtT.setText(Messages.ShowS... |
diff --git a/source/src/net/grinder/engine/process/instrumenter/dcr/Jython22Instrumenter.java b/source/src/net/grinder/engine/process/instrumenter/dcr/Jython22Instrumenter.java
index fef51118..be7edce9 100644
--- a/source/src/net/grinder/engine/process/instrumenter/dcr/Jython22Instrumenter.java
+++ b/source/src/net/gri... | true | true | protected Object instrument(Object target, Recorder recorder)
throws NotWrappableTypeException {
if (target instanceof PyObject) {
// Jython object.
if (target instanceof PyInstance) {
instrumentPublicMethodsByName(target,
"invoke",
... | protected Object instrument(Object target, Recorder recorder)
throws NotWrappableTypeException {
if (target instanceof PyObject) {
// Jython object.
if (target instanceof PyInstance) {
instrumentPublicMethodsByName(target,
"invoke",
... |
diff --git a/src/org/basex/core/proc/Set.java b/src/org/basex/core/proc/Set.java
index 135926484..f947528c8 100644
--- a/src/org/basex/core/proc/Set.java
+++ b/src/org/basex/core/proc/Set.java
@@ -1,123 +1,125 @@
package org.basex.core.proc;
import static org.basex.Text.*;
import org.basex.core.Prop;
import org.b... | true | true | protected boolean exec() {
final String option = cmd.arg(0).toLowerCase();
final String ext = cmd.arg(1);
if(option.equals(CHOP)) {
Prop.chop = toggle(Prop.chop, INFOCHOP, ext);
} else if(option.equals(DEBUG)) {
Prop.debug = toggle(Prop.debug, INFODEBUG, ext);
} else if(option.equals(... | protected boolean exec() {
final String option = cmd.arg(0).toLowerCase();
final String ext = cmd.arg(1);
if(option.equals(CHOP)) {
Prop.chop = toggle(Prop.chop, INFOCHOP, ext);
} else if(option.equals(DEBUG)) {
Prop.debug = toggle(Prop.debug, INFODEBUG, ext);
} else if(option.equals(... |
diff --git a/src/main/java/org/testng/reporters/JUnitReportReporter.java b/src/main/java/org/testng/reporters/JUnitReportReporter.java
index 518393e3..6e7691af 100644
--- a/src/main/java/org/testng/reporters/JUnitReportReporter.java
+++ b/src/main/java/org/testng/reporters/JUnitReportReporter.java
@@ -1,188 +1,188 @@
... | true | true | public void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites,
String defaultOutputDirectory) {
String outputDirectory = defaultOutputDirectory + File.separator + "junitreports";
Map<Class<?>, Set<ITestResult>> results = Maps.newHashMap();
Map<Class<?>, Set<ITestResult>> failedConfigurat... | public void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites,
String defaultOutputDirectory) {
String outputDirectory = defaultOutputDirectory + File.separator + "junitreports";
Map<Class<?>, Set<ITestResult>> results = Maps.newHashMap();
Map<Class<?>, Set<ITestResult>> failedConfigurat... |
diff --git a/src/test/java/edu/ucla/sspace/matrix/factorization/SingularValueDecompositionTestUtil.java b/src/test/java/edu/ucla/sspace/matrix/factorization/SingularValueDecompositionTestUtil.java
index 7b844106..e001907b 100644
--- a/src/test/java/edu/ucla/sspace/matrix/factorization/SingularValueDecompositionTestUtil... | false | true | public static void validateResults(MatrixFactorization reducer) {
Matrix U = reducer.dataClasses();
assertEquals(matrix.rows(), U.rows());
assertEquals(2, U.columns());
for (int r = 0; r < matrix.rows(); ++r)
for (int c = 0; c < 2; ++c)
assertEquals(EXPEC... | public static void validateResults(MatrixFactorization reducer) {
Matrix U = reducer.dataClasses();
assertEquals(matrix.rows(), U.rows());
assertEquals(2, U.columns());
for (int r = 0; r < matrix.rows(); ++r)
for (int c = 0; c < 2; ++c)
assertEquals(Math.... |
diff --git a/source/src/main/java/com/redcats/tst/serviceEngine/impl/ControlService.java b/source/src/main/java/com/redcats/tst/serviceEngine/impl/ControlService.java
index 5fd092245..d7ce79b76 100644
--- a/source/src/main/java/com/redcats/tst/serviceEngine/impl/ControlService.java
+++ b/source/src/main/java/com/redcat... | false | true | public TestCaseStepActionControlExecution doControl(TestCaseStepActionControlExecution testCaseStepActionControlExecution) {
/**
* Decode the 2 fields property and values before doing the control.
*/
if (testCaseStepActionControlExecution.getControlProperty().contains("%")) {
... | public TestCaseStepActionControlExecution doControl(TestCaseStepActionControlExecution testCaseStepActionControlExecution) {
/**
* Decode the 2 fields property and values before doing the control.
*/
if (testCaseStepActionControlExecution.getControlProperty().contains("%")) {
... |
diff --git a/src/com/zgy/ringforu/util/ContactsUtil.java b/src/com/zgy/ringforu/util/ContactsUtil.java
index bcb974c..9cb0dbd 100644
--- a/src/com/zgy/ringforu/util/ContactsUtil.java
+++ b/src/com/zgy/ringforu/util/ContactsUtil.java
@@ -1,170 +1,172 @@
package com.zgy.ringforu.util;
import java.util.ArrayList;
i... | false | true | public static String getNameFromContactsByNumber(Context con, String number) {
String name = null;
// ���ֻ�ͨѶ¼����
String[] projection = { ContactsContract.PhoneLookup.DISPLAY_NAME, ContactsContract.CommonDataKinds.Phone.NUMBER };
Cursor cursor = null;
try {
cursor = con.getContentResolver().query(Contac... | public static String getNameFromContactsByNumber(Context con, String number) {
String name = null;
// ���ֻ�ͨѶ¼����
String[] projection = { ContactsContract.PhoneLookup.DISPLAY_NAME, ContactsContract.CommonDataKinds.Phone.NUMBER };
Cursor cursor = null;
try {
cursor = con.getContentResolver().query(Contac... |
diff --git a/projects/cahoots-eclipse/src/main/java/com/cahoots/eclipse/optransformation/OpMemento.java b/projects/cahoots-eclipse/src/main/java/com/cahoots/eclipse/optransformation/OpMemento.java
index 55166ea..474250f 100644
--- a/projects/cahoots-eclipse/src/main/java/com/cahoots/eclipse/optransformation/OpMemento.j... | true | true | public synchronized ITextSelection addTransformation(
final OpTransformation transformation) {
final ISelectionProvider selectionProvider = document.getTextEditor()
.getSelectionProvider();
final ITextSelection selection = (ITextSelection)selectionProvider.getSelection();
int curPosition = selection.ge... | public synchronized ITextSelection addTransformation(
final OpTransformation transformation) {
final ISelectionProvider selectionProvider = document.getTextEditor()
.getSelectionProvider();
final ITextSelection selection = (ITextSelection)selectionProvider.getSelection();
int curPosition = selection.ge... |
diff --git a/source/tests-src/net/grinder/engine/agent/TestFileStore.java b/source/tests-src/net/grinder/engine/agent/TestFileStore.java
index fa587f73..9e8347ac 100755
--- a/source/tests-src/net/grinder/engine/agent/TestFileStore.java
+++ b/source/tests-src/net/grinder/engine/agent/TestFileStore.java
@@ -1,256 +1,259 ... | false | true | public void testSender() throws Exception {
final LoggerStubFactory loggerStubFactory = new LoggerStubFactory();
final Logger logger = loggerStubFactory.getLogger();
final FileStore fileStore = new FileStore(getDirectory(), logger);
final MessageDispatchSender messageDispatcher = new MessageDispatc... | public void testSender() throws Exception {
final LoggerStubFactory loggerStubFactory = new LoggerStubFactory();
final Logger logger = loggerStubFactory.getLogger();
final FileStore fileStore = new FileStore(getDirectory(), logger);
final MessageDispatchSender messageDispatcher = new MessageDispatc... |
diff --git a/java/tools/src/com/jopdesign/build/BuildVT.java b/java/tools/src/com/jopdesign/build/BuildVT.java
index bf5b9875..302d1456 100644
--- a/java/tools/src/com/jopdesign/build/BuildVT.java
+++ b/java/tools/src/com/jopdesign/build/BuildVT.java
@@ -1,256 +1,256 @@
/*
* Created on 04.06.2005
*
* TODO To cha... | false | true | private void buildVT(JavaClass clazz) {
int i, j;
// System.err.println("invoke buildVT on class: "+clazz);
ClassInfo cli;
cli = (ClassInfo) ClassInfo.mapClassNames.get(clazz.getClassName());
// System.err.println("build VT on class: "+cli.clazz);
/*
* TODO: we have TWO mappings of clazzes: in JOPWriter AND ... | private void buildVT(JavaClass clazz) {
int i, j;
// System.err.println("invoke buildVT on class: "+clazz);
ClassInfo cli;
cli = (ClassInfo) ClassInfo.mapClassNames.get(clazz.getClassName());
// System.err.println("build VT on class: "+cli.clazz);
/*
* TODO: we have TWO mappings of clazzes: in JOPWriter AND ... |
diff --git a/EnappShop-war/src/java/ch/hslu/enappwebshop/web/ProductBean.java b/EnappShop-war/src/java/ch/hslu/enappwebshop/web/ProductBean.java
index fae7440..b4e6684 100644
--- a/EnappShop-war/src/java/ch/hslu/enappwebshop/web/ProductBean.java
+++ b/EnappShop-war/src/java/ch/hslu/enappwebshop/web/ProductBean.java
@@ ... | true | true | public Product newProduct() {
Product p = new Product();
this.product = p;
return p;
}
| public Product getNewProduct() {
Product p = new Product();
this.product = p;
return p;
}
|
diff --git a/src/main/java/me/ase34/citylanterns/listener/LanternSelectListener.java b/src/main/java/me/ase34/citylanterns/listener/LanternSelectListener.java
index 8b7bc3e..12f1973 100644
--- a/src/main/java/me/ase34/citylanterns/listener/LanternSelectListener.java
+++ b/src/main/java/me/ase34/citylanterns/listener/La... | true | true | public void onPlayerInteractBlock(PlayerInteractEvent ev) {
if (ev.isBlockInHand()) {
return;
}
if (plugin.getSelectingPlayers().contains(ev.getPlayer().getName())) {
if (ev.getClickedBlock() == null) {
return;
}
if (ev.getClick... | public void onPlayerInteractBlock(PlayerInteractEvent ev) {
if (ev.isBlockInHand()) {
return;
}
if (plugin.getSelectingPlayers().contains(ev.getPlayer().getName())) {
if (ev.getClickedBlock() == null) {
return;
}
if (ev.getClick... |
diff --git a/backend/transparent/core/Module.java b/backend/transparent/core/Module.java
index aa8568f..dbfd9c9 100644
--- a/backend/transparent/core/Module.java
+++ b/backend/transparent/core/Module.java
@@ -1,224 +1,225 @@
package transparent.core;
import java.io.FileOutputStream;
import java.io.IOException;
im... | true | true | public static Module load(Database database, int index)
{
long id = -1;
String name = "<unknown>";
try {
id = Long.parseLong(database.getMetadata("module." + index + ".id"));
String path = database.getMetadata("module." + index + ".path");
name = database.getMetadata("module." + index + ".name");
S... | public static Module load(Database database, int index)
{
long id = -1;
String name = "<unknown>";
try {
id = Long.parseLong(database.getMetadata("module." + index + ".id"));
String path = database.getMetadata("module." + index + ".path");
name = database.getMetadata("module." + index + ".name");
S... |
diff --git a/CustomMusicDiscs/src/org/vanillaworld/CustomMusicDiscs/Main.java b/CustomMusicDiscs/src/org/vanillaworld/CustomMusicDiscs/Main.java
index f591c93..40ee89a 100644
--- a/CustomMusicDiscs/src/org/vanillaworld/CustomMusicDiscs/Main.java
+++ b/CustomMusicDiscs/src/org/vanillaworld/CustomMusicDiscs/Main.java
@@ ... | true | true | private void PlayerInteract(PlayerInteractEvent event)
{
if(event.getClickedBlock() != null)
{
if(event.getClickedBlock().getType().equals(Material.JUKEBOX) && event.getAction().equals(Action.RIGHT_CLICK_BLOCK))
{
final Jukebox jukebox = (Jukebox) event.getClickedBlock().getState();
if(playing.conta... | private void PlayerInteract(PlayerInteractEvent event)
{
if(event.getClickedBlock() != null)
{
if(event.getClickedBlock().getType().equals(Material.JUKEBOX) && event.getAction().equals(Action.RIGHT_CLICK_BLOCK))
{
final Jukebox jukebox = (Jukebox) event.getClickedBlock().getState();
if(playing.conta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.