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/Spike1/src/modelo/VentanaRegiones.java b/Spike1/src/modelo/VentanaRegiones.java
index 15277a3..b3dc9a5 100644
--- a/Spike1/src/modelo/VentanaRegiones.java
+++ b/Spike1/src/modelo/VentanaRegiones.java
@@ -1,171 +1,172 @@
package modelo;
import java.awt.Rectangle;
import java.util.Hashtable;
import jav... | true | true | public void run() {
ImageProcessor ip = getImage().getProcessor();
Hashtable <Integer, Integer> tablaPixelsPorRoi = new Hashtable<Integer, Integer>();
Hashtable <Integer, Integer> tablaPixelsConsideradosRoi = new Hashtable<Integer, Integer>();
Random rand = new Random();
for (int i = 0; i < arrayRois.leng... | public void run() {
ImageProcessor ip = getImage().getProcessor();
Hashtable <Integer, Integer> tablaPixelsPorRoi = new Hashtable<Integer, Integer>();
Hashtable <Integer, Integer> tablaPixelsConsideradosRoi = new Hashtable<Integer, Integer>();
Random rand = new Random();
for (int i = 0; i < arrayRois.leng... |
diff --git a/src/com/cole2sworld/ColeBans/GlobalConf.java b/src/com/cole2sworld/ColeBans/GlobalConf.java
index 9dfbde8..037ec77 100644
--- a/src/com/cole2sworld/ColeBans/GlobalConf.java
+++ b/src/com/cole2sworld/ColeBans/GlobalConf.java
@@ -1,271 +1,272 @@
package com.cole2sworld.ColeBans;
import java.io.File;
imp... | true | true | public static void loadConfig() throws RuntimeException {
File confFile = new File("./plugins/ColeBans/config.yml");
try {
if (confFile.exists()) {
conf.load(confFile);
try {
settings = conf.getConfigurationSection("settings");
allowTempBans = settings.getBoolean("allowTempBans");
banMess... | public static void loadConfig() throws RuntimeException {
File confFile = new File("./plugins/ColeBans/config.yml");
try {
if (confFile.exists()) {
conf.load(confFile);
try {
settings = conf.getConfigurationSection("settings");
allowTempBans = settings.getBoolean("allowTempBans");
banMess... |
diff --git a/source/com/mucommander/ui/theme/ThemeWriter.java b/source/com/mucommander/ui/theme/ThemeWriter.java
index 283eec96..196b53b7 100644
--- a/source/com/mucommander/ui/theme/ThemeWriter.java
+++ b/source/com/mucommander/ui/theme/ThemeWriter.java
@@ -1,448 +1,448 @@
/*
* This file is part of muCommander, htt... | false | true | public static void write(ThemeData theme, OutputStream stream) throws IOException {
XmlWriter out;
out = new XmlWriter(stream);
out.startElement(ELEMENT_ROOT);
out.println();
// - File table description ------------------------------------------------------
// -----... | public static void write(ThemeData theme, OutputStream stream) throws IOException {
XmlWriter out;
out = new XmlWriter(stream);
out.startElement(ELEMENT_ROOT);
out.println();
// - File table description ------------------------------------------------------
// -----... |
diff --git a/src/org/cyanogenmod/focal/picsphere/PicSphereManager.java b/src/org/cyanogenmod/focal/picsphere/PicSphereManager.java
index 0bf3517..ab1adae 100644
--- a/src/org/cyanogenmod/focal/picsphere/PicSphereManager.java
+++ b/src/org/cyanogenmod/focal/picsphere/PicSphereManager.java
@@ -1,279 +1,279 @@
/*
* Cop... | true | true | private boolean copyBinaries() {
boolean result = true;
try {
String files[] = {
"autooptimiser", "pto_gen", "cpfind", "multiblend", "enfuse", "nona", "pano_modify",
"ptclean", "tiffinfo", "align_image_stack", "pto_var",
"libexi... | private boolean copyBinaries() {
boolean result = true;
try {
String files[] = {
"autooptimiser", "pto_gen", "cpfind", "multiblend", "enfuse", "nona", "pano_modify",
"ptclean", "tiffinfo", "align_image_stack", "pto_var",
"libexi... |
diff --git a/core/src/java/liquibase/commandline/CommandLineMigrator.java b/core/src/java/liquibase/commandline/CommandLineMigrator.java
index edf5a61b..d224a1da 100644
--- a/core/src/java/liquibase/commandline/CommandLineMigrator.java
+++ b/core/src/java/liquibase/commandline/CommandLineMigrator.java
@@ -1,787 +1,790 ... | true | true | protected void doMigration() throws Exception {
if ("help".equalsIgnoreCase(command)) {
printHelp(System.out);
return;
}
if ("finest".equalsIgnoreCase(logLevel)) {
Logger.getLogger(Migrator.DEFAULT_LOG_NAME).setLevel(Level.FINEST);
} else if ("fin... | protected void doMigration() throws Exception {
if ("help".equalsIgnoreCase(command)) {
printHelp(System.out);
return;
}
if ("finest".equalsIgnoreCase(logLevel)) {
Logger.getLogger(Migrator.DEFAULT_LOG_NAME).setLevel(Level.FINEST);
} else if ("fin... |
diff --git a/src/com/android/mms/data/RecipientsListLoader.java b/src/com/android/mms/data/RecipientsListLoader.java
index 5ea44b0e..e56ad8a2 100644
--- a/src/com/android/mms/data/RecipientsListLoader.java
+++ b/src/com/android/mms/data/RecipientsListLoader.java
@@ -1,159 +1,159 @@
/*
* Copyright (C) 2013 The Cyanog... | true | true | public ArrayList<Result> loadInBackground() {
final Context context = getContext();
ArrayList<PhoneNumber> phoneNumbers = PhoneNumber.getPhoneNumbers(context);
if (phoneNumbers == null) {
return null;
}
// Get things ready
ArrayList<Result> results = new ... | public ArrayList<Result> loadInBackground() {
final Context context = getContext();
ArrayList<PhoneNumber> phoneNumbers = PhoneNumber.getPhoneNumbers(context);
if (phoneNumbers == null) {
return new ArrayList<Result>();
}
// Get things ready
ArrayList<Res... |
diff --git a/src/com/android/phone/msim/MSimDialerActivity.java b/src/com/android/phone/msim/MSimDialerActivity.java
index 0e59f1f8..4871dbb6 100644
--- a/src/com/android/phone/msim/MSimDialerActivity.java
+++ b/src/com/android/phone/msim/MSimDialerActivity.java
@@ -1,269 +1,270 @@
/*
* Copyright (c) 2012-2013, The ... | true | true | private void launchMSDialer() {
boolean isEmergency = PhoneNumberUtils.isEmergencyNumber(mNumber);
if (isEmergency) {
Log.d(TAG,"emergency call");
startOutgoingCall(getSubscriptionForEmergencyCall());
return;
}
LayoutInflater inflater = (LayoutInf... | private void launchMSDialer() {
boolean isEmergency = PhoneNumberUtils.isEmergencyNumber(mNumber);
if (isEmergency) {
Log.d(TAG,"emergency call");
startOutgoingCall(getSubscriptionForEmergencyCall());
return;
}
LayoutInflater inflater = (LayoutInf... |
diff --git a/src/classes/com/sun/opengl/impl/GLDrawableHelper.java b/src/classes/com/sun/opengl/impl/GLDrawableHelper.java
index 014e35f7e..614b26096 100644
--- a/src/classes/com/sun/opengl/impl/GLDrawableHelper.java
+++ b/src/classes/com/sun/opengl/impl/GLDrawableHelper.java
@@ -1,150 +1,151 @@
/*
* Copyright (c) 2... | true | true | public void invokeGL(GLDrawable drawable,
GLContext context,
Runnable runnable,
Runnable initAction) {
// Support for recursive makeCurrent() calls as well as calling
// other drawables' display() methods from within another one's
GLCo... | public void invokeGL(GLDrawable drawable,
GLContext context,
Runnable runnable,
Runnable initAction) {
// Support for recursive makeCurrent() calls as well as calling
// other drawables' display() methods from within another one's
GLCo... |
diff --git a/bundles/binding/bluetooth/src/main/java/org/openhab/binding/bluetooth/internal/BluetoothBinding.java b/bundles/binding/bluetooth/src/main/java/org/openhab/binding/bluetooth/internal/BluetoothBinding.java
index ec0ed85b..ebfa04af 100644
--- a/bundles/binding/bluetooth/src/main/java/org/openhab/binding/bluet... | true | true | public void handleAllDevicesInRange(Iterable<BluetoothDevice> devices) {
if(eventPublisher!=null) {
// build a comma separated list of all devices in range
StringBuilder sb = new StringBuilder();
int noOfDevices = 0;
for(BluetoothDevice device : devices) {
noOfDevices++;
if(!device.getFriendlyNam... | public void handleAllDevicesInRange(Iterable<BluetoothDevice> devices) {
if(eventPublisher!=null) {
// build a comma separated list of all devices in range
StringBuilder sb = new StringBuilder();
int noOfDevices = 0;
for(BluetoothDevice device : devices) {
noOfDevices++;
handleDeviceInRange(devic... |
diff --git a/src/com/github/dreamrec/Model.java b/src/com/github/dreamrec/Model.java
index 8387817..0bfcebe 100644
--- a/src/com/github/dreamrec/Model.java
+++ b/src/com/github/dreamrec/Model.java
@@ -1,136 +1,136 @@
package com.github.dreamrec;
/**
*
*/
public class Model {
private int xSize = 200; //dat... | true | true | private void checkCursorScreenBounds() {
//adjust slowGraphIndex to place cursor at the beginning of the screen
if (getCursorPosition() < 0) {
slowGraphIndex -= getCursorPosition();
} else
//adjust slowGraphIndex to place cursor at the end of the screen
if... | private void checkCursorScreenBounds() {
//adjust slowGraphIndex to place cursor at the beginning of the screen
if (getCursorPosition() < 0) {
slowGraphIndex += getCursorPosition();
} else
//adjust slowGraphIndex to place cursor at the end of the screen
if... |
diff --git a/src/events/TransportUpdateEvent.java b/src/events/TransportUpdateEvent.java
index 4af24b1..4afbbf9 100644
--- a/src/events/TransportUpdateEvent.java
+++ b/src/events/TransportUpdateEvent.java
@@ -1,107 +1,107 @@
package events;
import java.util.Date;
import routes.DistributionCentre;
import routes.... | true | true | public String displayString() {
String str = "Discontinue Transport Event: \n" +
"\tVehicle: "+super.getVehicle()+"\n"+
"\tCost per CC: "+costPerCC+"\n"+
"\tCost per g: "+costPerG+"\n"+
"\tFrequency: "+frequency+"\n"+
"\tDuration: "+durationInMinutes+"min \n"+
"\tOrigin: "+origin.displayStrin... | public String displayString() {
String str = "Update Transport Event: \n" +
"\tVehicle: "+super.getVehicle()+"\n"+
"\tCost per CC: "+costPerCC+"\n"+
"\tCost per g: "+costPerG+"\n"+
"\tFrequency: "+frequency+"\n"+
"\tDuration: "+durationInMinutes+"min \n"+
"\tOrigin: "+origin.displayString()+"... |
diff --git a/core/src/main/java/brooklyn/location/basic/jclouds/JcloudsLocation.java b/core/src/main/java/brooklyn/location/basic/jclouds/JcloudsLocation.java
index c7b97fea2..42c0a4fb4 100644
--- a/core/src/main/java/brooklyn/location/basic/jclouds/JcloudsLocation.java
+++ b/core/src/main/java/brooklyn/location/basic/... | false | true | private Template buildTemplate(ComputeService computeService, BrooklynJcloudsSetupHolder setup) {
TemplateBuilder templateBuilder = (TemplateBuilder) setup.get("templateBuilder");
if (templateBuilder==null)
templateBuilder = new PortableTemplateBuilder();
else
LOG.deb... | private Template buildTemplate(ComputeService computeService, BrooklynJcloudsSetupHolder setup) {
TemplateBuilder templateBuilder = (TemplateBuilder) setup.get("templateBuilder");
if (templateBuilder==null)
templateBuilder = new PortableTemplateBuilder();
else
LOG.deb... |
diff --git a/htroot/Settings_p.java b/htroot/Settings_p.java
index 6dc76bbfd..f25516118 100644
--- a/htroot/Settings_p.java
+++ b/htroot/Settings_p.java
@@ -1,243 +1,243 @@
// Settings.p.java
// -----------------------
// part of the AnomicHTTPD caching proxy
// (C) by Michael Peter Christen; mc@anomic.de
// firs... | true | true | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
// return variable that accumulates replacements
serverObjects prop = new serverObjects();
//if (post == null) System.out.println("POST: NULL"); else System.out.println("POST: " + post.toS... | public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
// return variable that accumulates replacements
serverObjects prop = new serverObjects();
//if (post == null) System.out.println("POST: NULL"); else System.out.println("POST: " + post.toS... |
diff --git a/src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java b/src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java
index 8bdf2c4..9a33898 100644
--- a/src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProv... | true | true | protected UserDetails retrieveUser(String username, UsernamePasswordAuthenticationToken authentication) throws AuthenticationException {
String password = null;
if(authentication!=null)
password = (String) authentication.getCredentials();
// bind by using the specified username/... | protected UserDetails retrieveUser(String username, UsernamePasswordAuthenticationToken authentication) throws AuthenticationException {
String password = null;
if(authentication!=null)
password = (String) authentication.getCredentials();
// bind by using the specified username/... |
diff --git a/src/com/web/server/WebServer.java b/src/com/web/server/WebServer.java
index 9cdfd13..b17a2c4 100644
--- a/src/com/web/server/WebServer.java
+++ b/src/com/web/server/WebServer.java
@@ -1,600 +1,602 @@
package com.web.server;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoun... | false | true | public void run(){
byte[] response;
byte[] content;
byte[] uploadData = null;
HttpHeaderClient httpHeaderClient;
InputStream istream = null;
OutputStream ostream = null;
HttpHeaderServer serverParam=new HttpHeaderServer();
byte[] bt=new byte[9999999];
String value;
char c;
String endvalue="\r\n\r... | public void run(){
byte[] response;
byte[] content;
byte[] uploadData = null;
HttpHeaderClient httpHeaderClient;
InputStream istream = null;
OutputStream ostream = null;
HttpHeaderServer serverParam=new HttpHeaderServer();
byte[] bt=new byte[9999999];
String value;
char c;
String endvalue="\r\n\r... |
diff --git a/src/main/java/cz/startnet/utils/pgdiff/parsers/CreateTriggerParser.java b/src/main/java/cz/startnet/utils/pgdiff/parsers/CreateTriggerParser.java
index 8759062..341628e 100644
--- a/src/main/java/cz/startnet/utils/pgdiff/parsers/CreateTriggerParser.java
+++ b/src/main/java/cz/startnet/utils/pgdiff/parsers/... | true | true | public static void parse(final PgDatabase database, final String command) {
final Parser parser = new Parser(command);
parser.expect("CREATE", "TRIGGER");
final PgTrigger trigger = new PgTrigger();
trigger.setName(parser.parseIdentifier());
if (parser.expectOptional("BEFORE... | public static void parse(final PgDatabase database, final String command) {
final Parser parser = new Parser(command);
parser.expect("CREATE", "TRIGGER");
final PgTrigger trigger = new PgTrigger();
trigger.setName(parser.parseIdentifier());
if (parser.expectOptional("BEFORE... |
diff --git a/bundles/plugins/org.bonitasoft.studio.common.diagram/src/org/bonitasoft/studio/common/diagram/palette/CustomMainPaletteViewer.java b/bundles/plugins/org.bonitasoft.studio.common.diagram/src/org/bonitasoft/studio/common/diagram/palette/CustomMainPaletteViewer.java
index 934b6a80a6..ed366d1ade 100644
--- a/b... | true | true | public void setActiveTool(ToolEntry newMode) {
if (newMode == null)
newMode = getPaletteRoot().getDefaultEntry();
if(newMode.equals(activeEntry) ){
fireModeChanged();
return;
}
if (activeEntry != null){
final ToolEntryEditPart toolEntryEditPart = getToolEntryEditPart(activeEntry);
if(toolEntryE... | public void setActiveTool(ToolEntry newMode) {
if (newMode == null)
newMode = getPaletteRoot().getDefaultEntry();
if(newMode.equals(activeEntry) ){
fireModeChanged();
return;
}
if (activeEntry != null){
final ToolEntryEditPart toolEntryEditPart = getToolEntryEditPart(activeEntry);
if(toolEntryE... |
diff --git a/src/main/java/com/alecgorge/minecraft/jsonapi/packets/PacketRegistrar.java b/src/main/java/com/alecgorge/minecraft/jsonapi/packets/PacketRegistrar.java
index e3f00bb..194f5bf 100644
--- a/src/main/java/com/alecgorge/minecraft/jsonapi/packets/PacketRegistrar.java
+++ b/src/main/java/com/alecgorge/minecraft/... | true | true | public static void register(int packetID, boolean isClientPacket, boolean isServerPacket, Class<? extends Packet> packetClass) {
if(registrationMethod == null) {
registrationMethod = findRegistrationMethod();
}
// is it still null?
if(registrationMethod == null) {
Logger.getLogger("Minecraft").warn... | public static void register(int packetID, boolean isClientPacket, boolean isServerPacket, Class<? extends Packet> packetClass) {
if(registrationMethod == null) {
registrationMethod = findRegistrationMethod();
}
// is it still null?
if(registrationMethod == null) {
Logger.getLogger("Minecraft").warn... |
diff --git a/uk.ac.diamond.scisoft.analysis.plotserver/src/uk/ac/diamond/scisoft/analysis/plotserver/AbstractPlotServer.java b/uk.ac.diamond.scisoft.analysis.plotserver/src/uk/ac/diamond/scisoft/analysis/plotserver/AbstractPlotServer.java
index a9c38464e..f6231450b 100644
--- a/uk.ac.diamond.scisoft.analysis.plotserver... | true | true | public void setData(String guiName, DataBean data) throws Exception {
Serializable value = null;
if (data.getGuiParameters() != null) value = data.getGuiParameters().get(GuiParameters.PLOTOPERATION);
//if its a duplicate key and an PLOTOP_ADD we need to add the datasets to the old bean
if (value != nu... | public void setData(String guiName, DataBean data) throws Exception {
Serializable value = null;
if (data.getGuiParameters() != null) value = data.getGuiParameters().get(GuiParameters.PLOTOPERATION);
//if its a duplicate key and an PLOTOP_ADD we need to add the datasets to the old bean
if (value != nu... |
diff --git a/src/main/java/org/mgenterprises/java/bukkit/gmcfps/Core/BasicCommands/GameManagementCommands.java b/src/main/java/org/mgenterprises/java/bukkit/gmcfps/Core/BasicCommands/GameManagementCommands.java
index 1702374..bc61934 100644
--- a/src/main/java/org/mgenterprises/java/bukkit/gmcfps/Core/BasicCommands/Gam... | true | true | private boolean processWizard(CommandSender cs, String[] args) {
Player p = (Player) cs;
if (!p.hasPermission("gfps.create") && !p.isOp()) {
p.sendRawMessage(ChatColor.RED+"You do not have permission");
return true;
}
if (args.length > 2 && args[0].equals("cre... | private boolean processWizard(CommandSender cs, String[] args) {
Player p = (Player) cs;
if (!p.hasPermission("gfps.create") && !p.isOp()) {
p.sendRawMessage(ChatColor.RED+"You do not have permission");
return true;
}
if (args.length >= 2 && args[0].equals("cr... |
diff --git a/server/src/de/hpi/epc/validation/EPCSyntaxChecker.java b/server/src/de/hpi/epc/validation/EPCSyntaxChecker.java
index e6182db8..85bfe845 100644
--- a/server/src/de/hpi/epc/validation/EPCSyntaxChecker.java
+++ b/server/src/de/hpi/epc/validation/EPCSyntaxChecker.java
@@ -1,161 +1,161 @@
package de.hpi.epc.v... | false | true | protected void checkNodes() {
List<DiagramNode> startEvents = new ArrayList<DiagramNode>();
List<DiagramNode> endEvents = new ArrayList<DiagramNode>();
for (DiagramNode node: diagram.getNodes()) {
int in = node.getIncomingEdges().size();
int out = node.getOutgoingEdges().size();
if (in == 0 && out == 0)... | protected void checkNodes() {
List<DiagramNode> startEvents = new ArrayList<DiagramNode>();
List<DiagramNode> endEvents = new ArrayList<DiagramNode>();
for (DiagramNode node: diagram.getNodes()) {
int in = node.getIncomingEdges().size();
int out = node.getOutgoingEdges().size();
if (in == 0 && out == 0)... |
diff --git a/src/org/jacorb/orb/giop/MessageReceptorPool.java b/src/org/jacorb/orb/giop/MessageReceptorPool.java
index 5585f55f1..ee8640d17 100644
--- a/src/org/jacorb/orb/giop/MessageReceptorPool.java
+++ b/src/org/jacorb/orb/giop/MessageReceptorPool.java
@@ -1,87 +1,87 @@
/*
* JacORB - a free Java ORB
*
... | true | true | public MessageReceptorPool(String config, String threadNamePrefix, Configuration myConfiguration)
{
if (!config.equals("server") || !config.equals("client"))
{
throw new IllegalArgumentException("must be client or server");
}
org.jacorb.config.Configuration configura... | public MessageReceptorPool(String config, String threadNamePrefix, Configuration myConfiguration)
{
if (!config.equals("server") && !config.equals("client"))
{
throw new IllegalArgumentException("must be client or server");
}
org.jacorb.config.Configuration configura... |
diff --git a/grails/src/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsControllerHelper.java b/grails/src/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsControllerHelper.java
index 60d618205..97ca98d0c 100644
--- a/grails/src/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsControllerH... | true | true | public ModelAndView handleURI(String uri, GrailsWebRequest webRequest, Map params) {
if(uri == null)
throw new IllegalArgumentException("Controller URI [" + uri + "] cannot be null!");
this.webRequest = webRequest;
uri = configureStateForUri(uri);
Grail... | public ModelAndView handleURI(String uri, GrailsWebRequest webRequest, Map params) {
if(uri == null)
throw new IllegalArgumentException("Controller URI [" + uri + "] cannot be null!");
this.webRequest = webRequest;
uri = configureStateForUri(uri);
Grail... |
diff --git a/src/main/java/eu/serscis/sam/gui/DebugViewer.java b/src/main/java/eu/serscis/sam/gui/DebugViewer.java
index db230df..49b02f8 100644
--- a/src/main/java/eu/serscis/sam/gui/DebugViewer.java
+++ b/src/main/java/eu/serscis/sam/gui/DebugViewer.java
@@ -1,368 +1,368 @@
//////////////////////////////////////////... | true | true | private String getPrettyText(ILiteral literal) {
if (!literal.isPositive()) {
return null;
}
IAtom atom = literal.getAtom();
ITuple tuple = atom.getTuple();
IPredicate p = atom.getPredicate();
if (p.getPredicateSymbol().equals("maySend")) {
String target = tuple.get(0).getValue().toString();
Str... | private String getPrettyText(ILiteral literal) {
if (!literal.isPositive()) {
return null;
}
IAtom atom = literal.getAtom();
ITuple tuple = atom.getTuple();
IPredicate p = atom.getPredicate();
if (p.getPredicateSymbol().equals("maySend")) {
String target = tuple.get(0).getValue().toString();
Str... |
diff --git a/src/manager/impl/RessourceManagerImpl.java b/src/manager/impl/RessourceManagerImpl.java
index 36e59fc..2265d48 100644
--- a/src/manager/impl/RessourceManagerImpl.java
+++ b/src/manager/impl/RessourceManagerImpl.java
@@ -1,126 +1,127 @@
package manager.impl;
import java.util.Date;
import java.util.List... | true | true | public Object get(Ressources r,String... params) {
String param = params[0];
if(r.equals(Ressources.artiste)){
Artiste a = unDaoArtiste.getUnArtiste(param);
if(a !=null ){
a.incrementPopularity();
unDaoArtiste.update(a);
return a;
}
else{
a = api.getDetailArtistInfo(param);
a ... | public Object get(Ressources r,String... params) {
String param = params[0];
if(r.equals(Ressources.artiste)){
Artiste a = unDaoArtiste.getUnArtiste(param);
if(a !=null ){
if(params.length==2 && params[1]=="view")
a.incrementPopularity();
unDaoArtiste.update(a);
return a;
}
else{... |
diff --git a/src/RelationalOperatorNode.java b/src/RelationalOperatorNode.java
index 3997556..262c1d2 100644
--- a/src/RelationalOperatorNode.java
+++ b/src/RelationalOperatorNode.java
@@ -1,52 +1,52 @@
/*
* Implements Semantic checking and code output generation for
* EqualityOperands
*
* Example - a LT 3
... | true | true | public void checkSemantics() throws Exception{
//symantic check for children
this.getChildAt(0).checkSemantics();
this.getChildAt(1).checkSemantics();
//type check
if (!this.getChildAt(0).getType().equals(this.getChildAt(1).getType())) {
throw new Exception("Type Mismatch : Cannot Add" + ... | public void checkSemantics() throws Exception{
//symantic check for children
this.getChildAt(0).checkSemantics();
this.getChildAt(1).checkSemantics();
//type check
if (!this.getChildAt(0).getType().equals(this.getChildAt(1).getType())) {
throw new Exception("Type Mismatch : Cannot Add" + ... |
diff --git a/src/uk/me/parabola/imgfmt/app/mdr/MDRFile.java b/src/uk/me/parabola/imgfmt/app/mdr/MDRFile.java
index 6447729b..fa622f3c 100644
--- a/src/uk/me/parabola/imgfmt/app/mdr/MDRFile.java
+++ b/src/uk/me/parabola/imgfmt/app/mdr/MDRFile.java
@@ -1,346 +1,346 @@
/*
* Copyright (C) 2009.
*
* This program is f... | true | true | private void writeSections(ImgFileWriter writer) {
sizes = new MdrMapSection.PointerSizes(sections);
// Deal with the dependencies between the sections. The order of the following
// statements is sometimes important.
mdr10.setNumberOfPois(mdr11.getNumberOfPois());
mdr28.buildFromRegions(mdr13.getRegions()... | private void writeSections(ImgFileWriter writer) {
sizes = new MdrMapSection.PointerSizes(sections);
// Deal with the dependencies between the sections. The order of the following
// statements is sometimes important.
mdr10.setNumberOfPois(mdr11.getNumberOfPois());
mdr28.buildFromRegions(mdr13.getRegions()... |
diff --git a/src/com/jidesoft/swing/MultilineLabel.java b/src/com/jidesoft/swing/MultilineLabel.java
index cbaa08ab..2924678a 100644
--- a/src/com/jidesoft/swing/MultilineLabel.java
+++ b/src/com/jidesoft/swing/MultilineLabel.java
@@ -1,69 +1,70 @@
/*
* @(#)MultilineLabel.java
*
* Copyright 2002 JIDE Software. A... | true | true | protected void adjustUI() {
setLineWrap(true);
setWrapStyleWord(true);
setEditable(false);
setRequestFocusEnabled(false);
setFocusable(false);
setOpaque(false);
setCaret(new DefaultCaret() {
@Override
protected void adjustVisibility(Rec... | protected void adjustUI() {
setLineWrap(true);
setWrapStyleWord(true);
setEditable(false);
setRequestFocusEnabled(false);
setFocusable(false);
setOpaque(false);
putClientProperty("Synthetica.opaque", false);
setCaret(new DefaultCaret() {
@O... |
diff --git a/src/main/java/com/ardublock/translator/block/EqualPolyBlock.java b/src/main/java/com/ardublock/translator/block/EqualPolyBlock.java
index 5add869..5009694 100644
--- a/src/main/java/com/ardublock/translator/block/EqualPolyBlock.java
+++ b/src/main/java/com/ardublock/translator/block/EqualPolyBlock.java
@@ ... | false | true | public String toCode() throws SocketNullException, SubroutineNotDeclaredException
{
String ret = "( ( ";
TranslatorBlock tb = this.getRequiredTranslatorBlockAtSocket(0);
ret = ret + tb.toCode();
ret = ret + " ) == ( ";
tb = this.getRequiredTranslatorBlockAtSocket(1);
ret = ret + tb.toCode();
ret = ret +... | public String toCode() throws SocketNullException, SubroutineNotDeclaredException
{
String ret = "( ( ";
TranslatorBlock tb = this.getRequiredTranslatorBlockAtSocket(0);
ret = ret + tb.toCode();
ret = ret + " ) == (\'";
tb = this.getRequiredTranslatorBlockAtSocket(1);
ret = ret + tb.toCode().replace("\"",... |
diff --git a/src/web/org/appfuse/webapp/action/UploadAction.java b/src/web/org/appfuse/webapp/action/UploadAction.java
index 01055026..b721bbd8 100644
--- a/src/web/org/appfuse/webapp/action/UploadAction.java
+++ b/src/web/org/appfuse/webapp/action/UploadAction.java
@@ -1,123 +1,122 @@
package org.appfuse.webapp.actio... | true | true | public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
// Did the user click the cancel button?
if (isCancelled(request)) {
... | public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
// Did the user click the cancel button?
if (isCancelled(request)) {
... |
diff --git a/core/src/main/java/juzu/impl/bridge/spi/portlet/PortletRenderBridge.java b/core/src/main/java/juzu/impl/bridge/spi/portlet/PortletRenderBridge.java
index 8b92d75b..1f4acab3 100644
--- a/core/src/main/java/juzu/impl/bridge/spi/portlet/PortletRenderBridge.java
+++ b/core/src/main/java/juzu/impl/bridge/spi/po... | true | true | public void setResponse(Response response) throws IllegalStateException, IOException {
super.setResponse(response);
if (response instanceof Response.Content) {
Response.Content content = (Response.Content)response;
//
if (content instanceof Response.Render) {
Response.Render render ... | public void setResponse(Response response) throws IllegalStateException, IOException {
super.setResponse(response);
if (response instanceof Response.Content) {
Response.Content content = (Response.Content)response;
//
if (content instanceof Response.Render) {
Response.Render render ... |
diff --git a/src/main/java/com/google/gwt/sample/stockwatcher/modules/stockreader/client/handlers/SubmitButtonClickHandler.java b/src/main/java/com/google/gwt/sample/stockwatcher/modules/stockreader/client/handlers/SubmitButtonClickHandler.java
index 177356d..62d8292 100644
--- a/src/main/java/com/google/gwt/sample/sto... | true | true | public void onClick(ClickEvent event) {
StringBuilder urlBuilder = new StringBuilder(JSON_URL);
if (!currenciesTextField.getValue().isEmpty()) {
urlBuilder.append("?q=")
.append(currenciesTextField.getValue().replace(' ', '+'));
}
String url = URL.enc... | public void onClick(ClickEvent event) {
StringBuilder urlBuilder = new StringBuilder(JSON_URL);
urlBuilder.append("?q=")
.append(currenciesTextField.getValue().replace(' ', '+'));
String url = URL.encode(urlBuilder.toString());
// Send request to server and catch an... |
diff --git a/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/runtimeinfo.java b/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/runtimeinfo.java
index d4e25a4de..202532f79 100644
--- a/java/testing/org/apache/derbyTesting/functionTests/tests/derbynet/runtimeinfo.java
+++ b/java/testi... | true | true | public static void main (String args[]) throws Exception
{
if ((System.getProperty("java.vm.name") != null) && System.getProperty("java.vm.name").equals("J9"))
jvm = jvm.getJvm("j9_13");
else
jvm = jvm.getJvm("currentjvm"); // ensure compatibility
vCmd = jvm.getCommandLine();
try
{
ij.getPropertyA... | public static void main (String args[]) throws Exception
{
if ((System.getProperty("java.vm.name") != null) && System.getProperty("java.vm.name").equals("J9"))
jvm = jvm.getJvm("j9_13");
else
jvm = jvm.getJvm("currentjvm"); // ensure compatibility
vCmd = jvm.getCommandLine();
try
{
ij.getPropertyA... |
diff --git a/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetPreferenceInitializer.java b/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetPreferenceInitializer.java
index 9493a4770..717dfbb52 100644
--- a/seam/plug... | true | true | public void initializeDefaultPreferences() {
IEclipsePreferences node = (IEclipsePreferences)
Platform.getPreferencesService()
.getRootNode()
.node(DefaultScope.SCOPE)
.node(SeamCorePlugin.PLUGIN_ID);
node.put(SeamProjectPreferences.RUNTIME_CONFIG_FORMAT_VERSION, RUNTIME_CONFIG_FORMAT_VERSION);
n... | public void initializeDefaultPreferences() {
IEclipsePreferences node = (IEclipsePreferences)
Platform.getPreferencesService()
.getRootNode()
.node(DefaultScope.SCOPE)
.node(SeamCorePlugin.PLUGIN_ID);
node.put(SeamProjectPreferences.RUNTIME_CONFIG_FORMAT_VERSION, RUNTIME_CONFIG_FORMAT_VERSION);
n... |
diff --git a/project/gncandroid/src/rednus/gncandroid/MainView.java b/project/gncandroid/src/rednus/gncandroid/MainView.java
index b94b8bc..f357d1f 100644
--- a/project/gncandroid/src/rednus/gncandroid/MainView.java
+++ b/project/gncandroid/src/rednus/gncandroid/MainView.java
@@ -1,230 +1,232 @@
/**
* Copyright (C) ... | true | true | private void showScreen() {
if (app.localLOGV)
Log.i(TAG, "Showing main screen...");
if (!app.gncDataHandler.dataValid) {
if (app.localLOGV)
Log.i(TAG, "GNCDataHandler failed to initialise.. Forcing preferences...");
forcePreferences(app.res
.getString(R.string.message_failed_to_read_data_file));... | private void showScreen() {
if (app.localLOGV)
Log.i(TAG, "Showing main screen...");
if (!app.gncDataHandler.dataValid) {
if (app.localLOGV)
Log.i(TAG, "GNCDataHandler failed to initialise.. Forcing preferences...");
forcePreferences(app.res
.getString(R.string.message_failed_to_read_data_file));... |
diff --git a/src/plugin/feed/src/test/org/apache/nutch/parse/feed/TestFeedParser.java b/src/plugin/feed/src/test/org/apache/nutch/parse/feed/TestFeedParser.java
index 16d64013..08e96d11 100644
--- a/src/plugin/feed/src/test/org/apache/nutch/parse/feed/TestFeedParser.java
+++ b/src/plugin/feed/src/test/org/apache/nutch/... | true | true | public void testParseFetchChannel() throws ProtocolNotFound, ParseException {
String urlString;
Protocol protocol;
Content content;
ParseResult parseResult;
Configuration conf = NutchConfiguration.create();
for (int i = 0; i < sampleFiles.length; i++) {
urlString = "file:" + sampleDir +... | public void testParseFetchChannel() throws ProtocolNotFound, ParseException {
String urlString;
Protocol protocol;
Content content;
ParseResult parseResult;
Configuration conf = NutchConfiguration.create();
for (int i = 0; i < sampleFiles.length; i++) {
urlString = "file:" + sampleDir +... |
diff --git a/src/main/java/com/anjuke/romar/http/jetty/RomarRESTMain.java b/src/main/java/com/anjuke/romar/http/jetty/RomarRESTMain.java
index 3147636..5e68370 100644
--- a/src/main/java/com/anjuke/romar/http/jetty/RomarRESTMain.java
+++ b/src/main/java/com/anjuke/romar/http/jetty/RomarRESTMain.java
@@ -1,38 +1,38 @@
... | true | true | public static void main(String[] args) throws Exception {
java.util.logging.Logger rootLogger = java.util.logging.LogManager
.getLogManager().getLogger("");
java.util.logging.Handler[] handlers = rootLogger.getHandlers();
for (int i = 0; i < handlers.length; i++) {
... | public static void main(String[] args) throws Exception {
java.util.logging.Logger rootLogger = java.util.logging.LogManager
.getLogManager().getLogger("");
java.util.logging.Handler[] handlers = rootLogger.getHandlers();
for (int i = 0; i < handlers.length; i++) {
... |
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/quicksettings/quicktile/UserTile.java b/packages/SystemUI/src/com/android/systemui/statusbar/quicksettings/quicktile/UserTile.java
index d82fdcdf..9bef7f25 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/quicksettings/quicktile/UserTile... | false | true | private void queryForUserInformation() {
ContentResolver resolver = mContext.getContentResolver();
String numbers = Settings.System.getString(resolver, Settings.System.USER_MY_NUMBERS);
String numberes;
Drawable avatar = null;
if (numbers.equals("000000000") || numbers.equals... | private void queryForUserInformation() {
ContentResolver resolver = mContext.getContentResolver();
String numbers = Settings.System.getString(resolver, Settings.System.USER_MY_NUMBERS);
String numberes = null;
Drawable avatar = null;
if (numbers != null) {
if (num... |
diff --git a/src/jp/shuri/android/SDCardSender/SDCardSender.java b/src/jp/shuri/android/SDCardSender/SDCardSender.java
index a74ae50..b443ece 100644
--- a/src/jp/shuri/android/SDCardSender/SDCardSender.java
+++ b/src/jp/shuri/android/SDCardSender/SDCardSender.java
@@ -1,37 +1,36 @@
package jp.shuri.android.SDCardSende... | true | true | public void send(CrashReportData report) throws ReportSenderException {
String sdcard = Environment.getExternalStorageDirectory().getPath();
String path = sdcard + File.separator + "bug.txt";
File file = new File(path);
PrintWriter pw = null;
try {
pw = new PrintWriter(new FileOutputS... | public void send(CrashReportData report) throws ReportSenderException {
String sdcard = Environment.getExternalStorageDirectory().getPath();
String path = sdcard + File.separator + "bug.txt";
File file = new File(path);
PrintWriter pw = null;
try {
pw = new PrintWriter(new FileOutputS... |
diff --git a/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestHiveColumnarLoader.java b/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestHiveColumnarLoader.java
index b00cf245..c7a66827 100644
--- a/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank... | true | true | private static void produceYearMonthDayHourPartitionedData()
throws IOException {
yearMonthDayHourPartitionedDir = new File(
"testhiveColumnarLoader-yearMonthDayHourDir-"
+ System.currentTimeMillis());
yearMonthDayHourPartitionedDir.mkdir();
yearMonthDayHourPartitionedDir.deleteOnExit();
int years =... | private static void produceYearMonthDayHourPartitionedData()
throws IOException {
yearMonthDayHourPartitionedDir = new File(
"testhiveColumnarLoader-yearMonthDayHourDir-"
+ System.currentTimeMillis());
yearMonthDayHourPartitionedDir.mkdir();
yearMonthDayHourPartitionedDir.deleteOnExit();
int years =... |
diff --git a/DND/src/edu/teco/dnd/module/Application.java b/DND/src/edu/teco/dnd/module/Application.java
index 96d9efe..c7b3b0b 100644
--- a/DND/src/edu/teco/dnd/module/Application.java
+++ b/DND/src/edu/teco/dnd/module/Application.java
@@ -1,635 +1,635 @@
package edu.teco.dnd.module;
import java.io.Serializable;
... | true | true | private void startBlock(final FunctionBlockSecurityDecorator block, final Map<String, String> options) {
currentStateLock.readLock().lock();
try {
if (hasShutDown()) {
throw LOGGER.throwing(new IllegalStateException(this + " has already been shut down"));
}
final Runnable initRunnable = new Runnable(... | private void startBlock(final FunctionBlockSecurityDecorator block, final Map<String, String> options) {
currentStateLock.readLock().lock();
try {
if (hasShutDown()) {
throw LOGGER.throwing(new IllegalStateException(this + " has already been shut down"));
}
final Runnable initRunnable = new Runnable(... |
diff --git a/src/fortran/ofp/parser/java/FortranStream.java b/src/fortran/ofp/parser/java/FortranStream.java
index d8b2a3e..d243f09 100644
--- a/src/fortran/ofp/parser/java/FortranStream.java
+++ b/src/fortran/ofp/parser/java/FortranStream.java
@@ -1,97 +1,97 @@
/*******************************************************... | true | true | public int LA(int i) {
int letter_value = super.LA(i);
int char_pos = super.getCharPositionInLine();
// the letter is lower-case
if (Character.isLowerCase((char)letter_value)) {
// convert to upper-case
letter_value = (int) Character.toUpperCase((char)(letter_value));
... | public int LA(int i) {
int letter_value = super.LA(i);
int char_pos = super.getCharPositionInLine();
// the letter is lower-case
if (Character.isLowerCase((char)letter_value)) {
// convert to upper-case
letter_value = (int) Character.toUpperCase((char)(letter_value));
... |
diff --git a/src-tools/org/seasr/meandre/components/tools/webservice/ExtractRequestContent.java b/src-tools/org/seasr/meandre/components/tools/webservice/ExtractRequestContent.java
index 6b5131af..ec731d7c 100644
--- a/src-tools/org/seasr/meandre/components/tools/webservice/ExtractRequestContent.java
+++ b/src-tools/or... | false | true | public void executeCallBack(ComponentContext cc) throws Exception {
HttpServletRequest request = (HttpServletRequest) cc.getDataComponentFromInput(IN_REQUEST);
if (console.isLoggable(Level.FINE)) {
console.fine("Content-Type: " + request.getContentType());
console.fine("Content-Length: ... | public void executeCallBack(ComponentContext cc) throws Exception {
HttpServletRequest request = (HttpServletRequest) cc.getDataComponentFromInput(IN_REQUEST);
String characterEncoding = request.getCharacterEncoding();
if (console.isLoggable(Level.FINE)) {
console.fine("Content-Type: " +... |
diff --git a/src/ExtraInfoParser.java b/src/ExtraInfoParser.java
index 1daf632..7cd4ba2 100644
--- a/src/ExtraInfoParser.java
+++ b/src/ExtraInfoParser.java
@@ -1,46 +1,45 @@
import java.io.*;
import java.util.*;
public class ExtraInfoParser {
private DirreqStatsFileHandler dsfh;
private SortedSet<String> co... | false | true | public void parse(String dir, BufferedReader br) throws IOException {
String line = null, date = null, v3ips = null;
while ((line = br.readLine()) != null) {
if (line.startsWith("dirreq-stats-end ")) {
date = line.split(" ")[1];
if (dir.equals("8522EB98C91496E80EC238E732594D1509158E77")
... | public void parse(String dir, BufferedReader br) throws IOException {
String line = null, date = null, v3ips = null;
boolean skip = false;
while ((line = br.readLine()) != null) {
if (line.startsWith("dirreq-stats-end ")) {
date = line.split(" ")[1];
// trusted had very strange dirre... |
diff --git a/src/java/org/jamwiki/utils/LinkUtil.java b/src/java/org/jamwiki/utils/LinkUtil.java
index d3665351..5c255dac 100644
--- a/src/java/org/jamwiki/utils/LinkUtil.java
+++ b/src/java/org/jamwiki/utils/LinkUtil.java
@@ -1,246 +1,246 @@
/**
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2.1, d... | false | true | public static String buildImageLinkHtml(String context, String virtualWiki, String topicName, boolean frame, boolean thumb, String align, String caption, boolean suppressLink) throws Exception {
WikiFile wikiFile = WikiBase.getHandler().lookupWikiFile(virtualWiki, topicName);
if (wikiFile == null) {
// doesn't ... | public static String buildImageLinkHtml(String context, String virtualWiki, String topicName, boolean frame, boolean thumb, String align, String caption, boolean suppressLink) throws Exception {
WikiFile wikiFile = WikiBase.getHandler().lookupWikiFile(virtualWiki, topicName);
if (wikiFile == null) {
// doesn't ... |
diff --git a/src/com/whicken/werecat/paw/PawParser.java b/src/com/whicken/werecat/paw/PawParser.java
index c0a8225..5692583 100644
--- a/src/com/whicken/werecat/paw/PawParser.java
+++ b/src/com/whicken/werecat/paw/PawParser.java
@@ -1,24 +1,24 @@
package com.whicken.werecat.paw;
import com.whicken.werecat.expr.Expr... | true | true | PawExpression<T> parse(String expr) {
try {
Expression e = ExpressionParser.parse(expr, factory);
if (e != null)
return new PawExpression(e);
} catch (Throwable t) {
}
return null;
}
| public PawExpression<T> parse(String expr) {
try {
Expression e = ExpressionParser.parse(expr, factory);
if (e != null)
return new PawExpression(e);
} catch (Throwable t) {
}
return null;
}
|
diff --git a/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/tags/form/FormTag.java b/org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/tags/form/FormTag.java
index 9c1dd599d..464d7086d 100644
--- a/org.springframework.web.servlet/src/main/java/org/springframewo... | true | true | protected int writeTagContent(TagWriter tagWriter) throws JspException {
this.tagWriter = tagWriter;
tagWriter.startTag(FORM_TAG);
writeDefaultAttributes(tagWriter);
tagWriter.writeAttribute(ACTION_ATTRIBUTE, resolveAction());
writeOptionalAttribute(tagWriter, METHOD_ATTRIBUTE,
isMethodBrowserSupported(... | protected int writeTagContent(TagWriter tagWriter) throws JspException {
this.tagWriter = tagWriter;
tagWriter.startTag(FORM_TAG);
writeDefaultAttributes(tagWriter);
tagWriter.writeAttribute(ACTION_ATTRIBUTE, resolveAction());
writeOptionalAttribute(tagWriter, METHOD_ATTRIBUTE,
isMethodBrowserSupported(... |
diff --git a/services/src/main/java/org/fao/geonet/services/metadata/GetCategories.java b/services/src/main/java/org/fao/geonet/services/metadata/GetCategories.java
index 018abaaa2b..69878620ce 100644
--- a/services/src/main/java/org/fao/geonet/services/metadata/GetCategories.java
+++ b/services/src/main/java/org/fao/g... | true | true | public Element exec(Element params, ServiceContext context) throws Exception
{
AccessManager am = context.getBean(AccessManager.class);
String id = Utils.getIdentifierFromParameters(params, context);
//-----------------------------------------------------------------------
//--- check access
int iLocalId ... | public Element exec(Element params, ServiceContext context) throws Exception
{
AccessManager am = context.getBean(AccessManager.class);
String id = Utils.getIdentifierFromParameters(params, context);
//-----------------------------------------------------------------------
//--- check access
int iLocalId ... |
diff --git a/src/risk/game/Game.java b/src/risk/game/Game.java
index 32be728..5cabe35 100644
--- a/src/risk/game/Game.java
+++ b/src/risk/game/Game.java
@@ -1,417 +1,418 @@
package risk.game;
import java.awt.Color;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.u... | true | true | private void accountAttackLosses() {
if (attack == null) {
Logger.logerror("Accounting attack losses when no attack is in progress");
return;
}
Country from = attack.getCountryPair().From;
Country to = attack.getCountryPair().To;
int[] losses = attack... | private void accountAttackLosses() {
if (attack == null) {
Logger.logerror("Accounting attack losses when no attack is in progress");
return;
}
Country from = attack.getCountryPair().From;
Country to = attack.getCountryPair().To;
int[] losses = attack... |
diff --git a/src/org/eclipse/core/internal/localstore/UnifiedTree.java b/src/org/eclipse/core/internal/localstore/UnifiedTree.java
index 0c4fbb69..d36f9ef6 100644
--- a/src/org/eclipse/core/internal/localstore/UnifiedTree.java
+++ b/src/org/eclipse/core/internal/localstore/UnifiedTree.java
@@ -1,404 +1,404 @@
/*******... | true | true | protected void addChildren(UnifiedTreeNode node) {
Resource parent = (Resource) node.getResource();
// is there a possibility to have children?
int parentType = parent.getType();
if (parentType == IResource.FILE && !node.isFolder())
return;
//don't refresh resources in closed or non-existent projects
... | protected void addChildren(UnifiedTreeNode node) {
Resource parent = (Resource) node.getResource();
// is there a possibility to have children?
int parentType = parent.getType();
if (parentType == IResource.FILE && !node.isFolder())
return;
//don't refresh resources in closed or non-existent projects
... |
diff --git a/src/mapred/org/apache/hadoop/mapred/jobcontrol/Job.java b/src/mapred/org/apache/hadoop/mapred/jobcontrol/Job.java
index 9801d2cf3..fd0957db9 100644
--- a/src/mapred/org/apache/hadoop/mapred/jobcontrol/Job.java
+++ b/src/mapred/org/apache/hadoop/mapred/jobcontrol/Job.java
@@ -1,387 +1,387 @@
/**
* Licens... | true | true | private void checkRunningState() {
RunningJob running = null;
try {
running = jc.getJob(this.mapredJobID);
if (running.isComplete()) {
if (running.isSuccessful()) {
this.state = Job.SUCCESS;
} else {
this.state = Job.FAILED;
this.message = "Job failed!... | private void checkRunningState() {
RunningJob running = null;
try {
running = jc.getJob(this.mapredJobID);
if (running.isComplete()) {
if (running.isSuccessful()) {
this.state = Job.SUCCESS;
} else {
this.state = Job.FAILED;
this.message = "Job failed!... |
diff --git a/src/lmp/Simulator.java b/src/lmp/Simulator.java
index ad29d28..76b7e87 100644
--- a/src/lmp/Simulator.java
+++ b/src/lmp/Simulator.java
@@ -1,50 +1,49 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package lmp;
import java.util.ArrayList;
imp... | false | true | public Double send()
{
ArrayList<Integer> trans = new ArrayList();
for(int i=0;i<fred.size();i++)
{
ArrayList<Node2> collision = new ArrayList();
fred.get(i).send(lambda); // Send!
for(int j= i+1;j<fred.size();j++)
{
fred.ge... | public Double send()
{
ArrayList<Node2> collision = new ArrayList();
for(int i=0;i<fred.size();i++)
{
fred.get(i).send(lambda); // Send!
for(int j= i+1;j<fred.size();j++)
{
fred.get(j).send(lambda); // Send!
if(Math.abs(... |
diff --git a/openstack-api/src/test/java/org/openstack/client/image/GlanceIntegrationTest.java b/openstack-api/src/test/java/org/openstack/client/image/GlanceIntegrationTest.java
index c3a357a..946eee4 100644
--- a/openstack-api/src/test/java/org/openstack/client/image/GlanceIntegrationTest.java
+++ b/openstack-api/src... | true | true | protected void skipIfNoGlance() {
if (!context.haveGlance()) {
throw new SkipException("Skipping because glance not present / accessible");
}
}
| protected void skipIfNoGlance() {
if (!context.isGlanceEnabled()) {
throw new SkipException("Skipping because glance not present / accessible");
}
}
|
diff --git a/miwotreff/src/main/java/de/micmun/android/miwotreff/utils/ProgramLoader.java b/miwotreff/src/main/java/de/micmun/android/miwotreff/utils/ProgramLoader.java
index 7c786be..4d9c703 100644
--- a/miwotreff/src/main/java/de/micmun/android/miwotreff/utils/ProgramLoader.java
+++ b/miwotreff/src/main/java/de/micmu... | true | true | protected Integer doInBackground(Void... params) {
publishProgress();
if (!isOnline()) {
Log.e(TAG, "No Internet connection!");
AppMsg.makeText((MainActivity) mCtx, R.string.error_pl_noconnect, AppMsg.STYLE_ALERT).show();
return 1;
} else {
HtmlParser parser = n... | protected Integer doInBackground(Void... params) {
publishProgress();
if (!isOnline()) {
Log.e(TAG, "No Internet connection!");
AppMsg.makeText((MainActivity) mCtx, R.string.error_pl_noconnect, AppMsg.STYLE_ALERT).show();
return 1;
} else {
HtmlParser parser = n... |
diff --git a/HeroesSkillTree/src/me/Whatshiywl/heroesskilltree/commands/SkillAdminCommand.java b/HeroesSkillTree/src/me/Whatshiywl/heroesskilltree/commands/SkillAdminCommand.java
index fbc6599..9dd63b4 100644
--- a/HeroesSkillTree/src/me/Whatshiywl/heroesskilltree/commands/SkillAdminCommand.java
+++ b/HeroesSkillTree/s... | true | true | public static void skillAdmin(HeroesSkillTree hst, CommandSender sender, String[] args) {
if(args.length < 1) {
sender.sendMessage(ChatColor.RED + "Not enough arguments: /skilladmin <command> (amount) [sender]");
return;
}
if(args[0].equalsIgnoreCase("clear")) {
... | public static void skillAdmin(HeroesSkillTree hst, CommandSender sender, String[] args) {
if(args.length < 1) {
sender.sendMessage(ChatColor.RED + "Not enough arguments: /skilladmin <command> (amount) [sender]");
return;
}
if(args[0].equalsIgnoreCase("clear")) {
... |
diff --git a/src/edu/umn/cs/spatialHadoop/mapred/SpatialInputFormat.java b/src/edu/umn/cs/spatialHadoop/mapred/SpatialInputFormat.java
index 95c69d87..fac87390 100644
--- a/src/edu/umn/cs/spatialHadoop/mapred/SpatialInputFormat.java
+++ b/src/edu/umn/cs/spatialHadoop/mapred/SpatialInputFormat.java
@@ -1,266 +1,268 @@
... | false | true | protected void listStatus(final FileSystem fs, final Path dir,
final List<FileStatus> result, BlockFilter filter) throws IOException {
GlobalIndex<Partition> gindex = SpatialSite.getGlobalIndex(fs, dir);
if (gindex == null) {
FileStatus[] listStatus;
if (dir.toString().matches("\\*|\\?")) {
... | protected void listStatus(final FileSystem fs, final Path dir,
final List<FileStatus> result, BlockFilter filter) throws IOException {
GlobalIndex<Partition> gindex = SpatialSite.getGlobalIndex(fs, dir);
if (gindex == null) {
FileStatus[] listStatus;
if (dir.toString().matches("\\*|\\?")) {
... |
diff --git a/src/main/java/de/minestar/core/MinestarCore.java b/src/main/java/de/minestar/core/MinestarCore.java
index 9f22924..831c5f2 100644
--- a/src/main/java/de/minestar/core/MinestarCore.java
+++ b/src/main/java/de/minestar/core/MinestarCore.java
@@ -1,108 +1,108 @@
/*
* Copyright (C) 2012 MineStar.de
*
... | true | true | public void onEnable() {
dataFolder = this.getDataFolder();
dataFolder.mkdirs();
// GET GROUPMANAGER
this.getGroupManager();
File playerFolder = new File(dataFolder, "\\playerdata");
playerFolder.mkdir();
// CREATE MANAGER, LISTENER, COMMANDS
this.c... | public void onEnable() {
dataFolder = this.getDataFolder();
dataFolder.mkdirs();
// GET GROUPMANAGER
this.getGroupManager();
File playerFolder = new File(dataFolder, "playerdata");
playerFolder.mkdir();
// CREATE MANAGER, LISTENER, COMMANDS
this.cre... |
diff --git a/src/spatialcubeservice/src/main/java/org/vpac/web/controller/DatasetController.java b/src/spatialcubeservice/src/main/java/org/vpac/web/controller/DatasetController.java
index 5107ac0..e239731 100644
--- a/src/spatialcubeservice/src/main/java/org/vpac/web/controller/DatasetController.java
+++ b/src/spatial... | true | true | public String createOrUpdateDataset(@Valid DatasetRequest dr, ModelMap model ) throws ResourceNotFoundException, IOException {
log.info("Create / Update Dataset");
log.debug("Id: {}", dr.getId());
log.debug("Name: {}", dr.getName());
log.debug("Resolution: {}", dr.getResolution());
log.debug("Precision: {}"... | public String createOrUpdateDataset(@Valid DatasetRequest dr, ModelMap model ) throws ResourceNotFoundException, IOException {
log.info("Create / Update Dataset");
log.debug("Id: {}", dr.getId());
log.debug("Name: {}", dr.getName());
log.debug("Resolution: {}", dr.getResolution());
log.debug("Precision: {}"... |
diff --git a/nuxeo-platform-webapp-base/src/main/java/org/nuxeo/ecm/webapp/clipboard/DocumentListZipExporter.java b/nuxeo-platform-webapp-base/src/main/java/org/nuxeo/ecm/webapp/clipboard/DocumentListZipExporter.java
index 277937ab..be69bede 100644
--- a/nuxeo-platform-webapp-base/src/main/java/org/nuxeo/ecm/webapp/cli... | true | true | private void addBlobHolderToZip(String path, ZipOutputStream out,
DocumentModel doc, byte[] data, StringBuilder blobList,
BlobHolder bh, boolean exportAllBlobs) throws IOException,
ClientException {
List<Blob> blobs = new ArrayList<Blob>();
if (exportAllBlobs) {
... | private void addBlobHolderToZip(String path, ZipOutputStream out,
DocumentModel doc, byte[] data, StringBuilder blobList,
BlobHolder bh, boolean exportAllBlobs) throws IOException,
ClientException {
List<Blob> blobs = new ArrayList<Blob>();
if (exportAllBlobs) {
... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/WorkspaceAwareContextStore.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/WorkspaceAwareContextStore.java
index b244677db..d72033f15 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/... | true | true | public void init() {
// Migrate .mylar data folder to .metadata/.mylyn
String oldDefaultDataPath = ResourcesPlugin.getWorkspace().getRoot().getLocation().toString() + '/'
+ OLD_DATA_DIR;
File newDefaultDataDir = new File(TasksUiPlugin.getDefault().getDefaultDataDirectory());
File oldDefaultDataDir = new Fi... | public void init() {
// Migrate .mylar data folder to .metadata/.mylyn
String oldDefaultDataPath = ResourcesPlugin.getWorkspace().getRoot().getLocation().toString() + '/'
+ OLD_DATA_DIR;
File newDefaultDataDir = new File(TasksUiPlugin.getDefault().getDefaultDataDirectory());
File oldDefaultDataDir = new Fi... |
diff --git a/Player.java b/Player.java
index 115ad17..9b8f25b 100644
--- a/Player.java
+++ b/Player.java
@@ -1,41 +1,35 @@
import greenfoot.*;
public abstract class Player extends Actor {
private int speed;
private int initialSpeed;
private Bag.BagType bagType;
protected Player(int speed) {
... | true | true | public void act() {
if (Greenfoot.isKeyDown("w")) move(0, -speed);
if (Greenfoot.isKeyDown("s")) move(0, +speed);
if (Greenfoot.isKeyDown("a")) move(-speed, 0);
if (Greenfoot.isKeyDown("d")) move(+speed, 0);
if(Greenfoot.mouseClicked(null)) {
int x = -getImage().... | public void act() {
if (Greenfoot.isKeyDown("w")) move(0, -speed);
if (Greenfoot.isKeyDown("s")) move(0, +speed);
if (Greenfoot.isKeyDown("a")) move(-speed, 0);
if (Greenfoot.isKeyDown("d")) move(+speed, 0);
if(Greenfoot.mouseClicked(null)) {
getWorld().addObject... |
diff --git a/src/main/java/hudson/plugins/warnings/WarningsPublisher.java b/src/main/java/hudson/plugins/warnings/WarningsPublisher.java
index 78c0c4a0..43c1dcf9 100644
--- a/src/main/java/hudson/plugins/warnings/WarningsPublisher.java
+++ b/src/main/java/hudson/plugins/warnings/WarningsPublisher.java
@@ -1,290 +1,290 ... | true | true | public BuildResult perform(final AbstractBuild<?, ?> build, final PluginLogger logger) throws InterruptedException, IOException {
File logFile = build.getLogFile();
Set<String> validParsers = Sets.newHashSet(getParserNames());
ParserResult project;
if (StringUtils.isNotBlank(getPatt... | public BuildResult perform(final AbstractBuild<?, ?> build, final PluginLogger logger) throws InterruptedException, IOException {
File logFile = build.getLogFile();
Set<String> validParsers = Sets.newHashSet(getParserNames());
ParserResult project;
if (StringUtils.isNotBlank(getPatt... |
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/raptor/TargetBound.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/raptor/TargetBound.java
index 1b0603a93..992b31e99 100644
--- a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/rapt... | false | true | public boolean shouldSkipTraversalResult(Vertex origin, Vertex target, State parent,
State current, ShortestPathTree spt, RoutingRequest traverseOptions) {
if (realTarget == null)
return false;
final Vertex vertex = current.getVertex();
int vertexIndex = vertex.getIn... | public boolean shouldSkipTraversalResult(Vertex origin, Vertex target, State parent,
State current, ShortestPathTree spt, RoutingRequest traverseOptions) {
if (realTarget == null)
return false;
final Vertex vertex = current.getVertex();
int vertexIndex = vertex.getIn... |
diff --git a/src/main/java/edu/isi/bmkeg/vpdmf/bin/BuildVpdmfModelMavenProject.java b/src/main/java/edu/isi/bmkeg/vpdmf/bin/BuildVpdmfModelMavenProject.java
index e71c4c3..ba4c7da 100644
--- a/src/main/java/edu/isi/bmkeg/vpdmf/bin/BuildVpdmfModelMavenProject.java
+++ b/src/main/java/edu/isi/bmkeg/vpdmf/bin/BuildVpdmfMo... | false | true | public static void main(String[] args) throws Exception {
if( args.length < 3 ) {
System.err.println(USAGE);
System.exit(-1);
}
List<File> viewFiles = new ArrayList<File>();
List<File> dataFiles = new ArrayList<File>();
List<String> solrViews = new ArrayList<String>();
UMLmodel model = null;
F... | public static void main(String[] args) throws Exception {
if( args.length < 3 ) {
System.err.println(USAGE);
System.exit(-1);
}
List<File> viewFiles = new ArrayList<File>();
List<File> dataFiles = new ArrayList<File>();
List<String> solrViews = new ArrayList<String>();
UMLmodel model = null;
F... |
diff --git a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/ContextHelpPart.java b/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/ContextHelpPart.java
index b28e0a9fe..31569207f 100644
--- a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/views/ContextHelpPart.java
+++ b/org.eclipse.help.ui... | true | true | private String formatHelpContext(IContext context) {
String locale = Platform.getNL();
StringBuffer sbuf = new StringBuffer();
sbuf.append("<form>"); //$NON-NLS-1$
sbuf.append("<p>"); //$NON-NLS-1$
sbuf.append(decodeContextBoldTags(context));
sbuf.append("</p>"); //$NON-NLS-1$
ICommandLink[] commands ... | private String formatHelpContext(IContext context) {
String locale = Platform.getNL();
StringBuffer sbuf = new StringBuffer();
sbuf.append("<form>"); //$NON-NLS-1$
sbuf.append("<p>"); //$NON-NLS-1$
sbuf.append(decodeContextBoldTags(context));
sbuf.append("</p>"); //$NON-NLS-1$
ICommandLink[] commands ... |
diff --git a/conpaas-services/src/conpaas/services/taskfarm/src/org/koala/runnersFramework/runners/bot/OpenNebulaOcaCluster.java b/conpaas-services/src/conpaas/services/taskfarm/src/org/koala/runnersFramework/runners/bot/OpenNebulaOcaCluster.java
index 8923a7c..e21614d 100644
--- a/conpaas-services/src/conpaas/services... | false | true | public Process startNodes(String time, int noWorkers,
String electionName, String poolName, String serverAddress) {
System.out.println("Starting " + noWorkers + " workers with ONE...");
// XXX: in ConPaaS, IP_PUBLIC is passed as an environment variable
// This needs to go upper ... | public Process startNodes(String time, int noWorkers,
String electionName, String poolName, String serverAddress) {
System.out.println("Starting " + noWorkers + " workers with ONE...");
// XXX: in ConPaaS, IP_PUBLIC is passed as an environment variable
// This needs to go upper ... |
diff --git a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/ast/check/UndocumentedApiCheck.java b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/ast/check/UndocumentedApiCheck.java
index a14d42a382..221725b478 100644
--- a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/java/ast/chec... | true | true | public void visitToken(DetailAST ast) {
SourceCode currentResource = peekSourceCode();
SourceClass sourceClass = peekParentClass();
if (WildcardPattern.match(getPatterns(), sourceClass.getKey())) {
if (PublicApiVisitor.isPublicApi(ast) && !PublicApiVisitor.isDocumentedApi(ast, getFileContents())) {
... | public void visitToken(DetailAST ast) {
SourceCode currentResource = peekSourceCode();
SourceClass sourceClass = peekParentClass();
if (WildcardPattern.match(getPatterns(), sourceClass.getKey())) {
if (PublicApiVisitor.isPublicApi(ast) && !PublicApiVisitor.isDocumentedApi(ast, getFileContents())) {
... |
diff --git a/src/main/java/org/urish/gwtit/titanium/ui/events/RowClickEvent.java b/src/main/java/org/urish/gwtit/titanium/ui/events/RowClickEvent.java
index 3feeb69..6138da3 100644
--- a/src/main/java/org/urish/gwtit/titanium/ui/events/RowClickEvent.java
+++ b/src/main/java/org/urish/gwtit/titanium/ui/events/RowClickEv... | true | true | public final native float getIndex()
/*-{
return this.index;
| public final native int getIndex()
/*-{
return this.index;
|
diff --git a/Dashboard/src/dashboard/servlet/LoginServlet.java b/Dashboard/src/dashboard/servlet/LoginServlet.java
index 68f6b02..101c83d 100644
--- a/Dashboard/src/dashboard/servlet/LoginServlet.java
+++ b/Dashboard/src/dashboard/servlet/LoginServlet.java
@@ -1,55 +1,55 @@
package dashboard.servlet;
import java.io... | true | true | public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
String username = req.getParameter("username");
String password = req.getParameter("password");
HttpSession session = req.getSession();
//TODO
//DIT MOET ER LATER UIT
//ZEER BELANGERIJK
if(username.equals("delete") ... | public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
String username = req.getParameter("username");
String password = req.getParameter("password");
HttpSession session = req.getSession();
//TODO
//DIT MOET ER LATER UIT
//ZEER BELANGERIJK
if(username.equals("delete") ... |
diff --git a/KitsuneChat/src/com/cyberkitsune/prefixchat/ChatListener.java b/KitsuneChat/src/com/cyberkitsune/prefixchat/ChatListener.java
index 500db76..1e8cfd0 100644
--- a/KitsuneChat/src/com/cyberkitsune/prefixchat/ChatListener.java
+++ b/KitsuneChat/src/com/cyberkitsune/prefixchat/ChatListener.java
@@ -1,89 +1,88 ... | true | true | public void playerChat(PlayerChatEvent evt) {
evt.setCancelled(true);
String message = KitsuneChatUtils.colorizeString(evt.getMessage());
String prefix = "<" + evt.getPlayer().getDisplayName() + ">";
/*
* So, first split the first char to see what channel it goes to. Then,
* colorize, Finally, send to ju... | public void playerChat(PlayerChatEvent evt) {
evt.setCancelled(true);
String message = KitsuneChatUtils.colorizeString(evt.getMessage());
/*
* So, first split the first char to see what channel it goes to. Then,
* colorize, Finally, send to just the group
*/
if (evt.getMessage().startsWith(plugin.getC... |
diff --git a/src/session/Controller.java b/src/session/Controller.java
index 6e2f030..a861718 100644
--- a/src/session/Controller.java
+++ b/src/session/Controller.java
@@ -1,90 +1,90 @@
package session;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.http.Cookie;
import javax.serv... | true | true | protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
PrintWriter out = response.getWriter();
// Get Client IP & Message From The Text Box & Create a sesison object
try{
out.println(request.getAttribute("m... | protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
PrintWriter out = response.getWriter();
// Get Client IP & Message From The Text Box & Create a sesison object
try{
out.println(request.getParameter("m... |
diff --git a/mydlp-ui-service/src/main/java/com/mydlp/ui/service/EncryptionServiceImpl.java b/mydlp-ui-service/src/main/java/com/mydlp/ui/service/EncryptionServiceImpl.java
index 3219e1f1..77c9182a 100644
--- a/mydlp-ui-service/src/main/java/com/mydlp/ui/service/EncryptionServiceImpl.java
+++ b/mydlp-ui-service/src/mai... | true | true | public ByteBuffer decrypt(String secret, ByteBuffer data)
throws NoSuchPaddingException, InvalidKeyException, NoSuchAlgorithmException,
NoSuchProviderException, IllegalBlockSizeException, BadPaddingException, ShortBufferException {
Cipher cipher = Cipher.getInstance(ALGORITHM + MODE, PROVIDER);
... | public ByteBuffer decrypt(String secret, ByteBuffer data)
throws NoSuchPaddingException, InvalidKeyException, NoSuchAlgorithmException,
NoSuchProviderException, IllegalBlockSizeException, BadPaddingException, ShortBufferException {
Cipher cipher = Cipher.getInstance(ALGORITHM + MODE, PROVIDER);
... |
diff --git a/src/net/rptools/maptool/model/Token.java b/src/net/rptools/maptool/model/Token.java
index bfbaf337..42591f50 100644
--- a/src/net/rptools/maptool/model/Token.java
+++ b/src/net/rptools/maptool/model/Token.java
@@ -1,876 +1,877 @@
/* The MIT License
*
* Copyright (c) 2005 David Rice, Trevor Croft
* ... | true | true | public Token(Token token) {
id = new GUID();
assetID = token.assetID;
x = token.x;
y = token.y;
// These properties shouldn't be transferred, they are more transient and relate to token history, not to new tokens
// lastX = token.lastX;
// lastY = token.lastY;
// lastPath = token.lastPath;
sn... | public Token(Token token) {
id = new GUID();
assetID = token.assetID;
x = token.x;
y = token.y;
// These properties shouldn't be transferred, they are more transient and relate to token history, not to new tokens
// lastX = token.lastX;
// lastY = token.lastY;
// lastPath = token.lastPath;
sn... |
diff --git a/opentripplanner-graph-builder/src/test/java/org/opentripplanner/graph_builder/impl/shapefile/TestShapefileStreetGraphBuilderImpl.java b/opentripplanner-graph-builder/src/test/java/org/opentripplanner/graph_builder/impl/shapefile/TestShapefileStreetGraphBuilderImpl.java
index 6d0dceb75..3553725e5 100644
---... | true | true | public void testBasic() throws Exception {
Graph gg = new Graph();
File file = new File("src/test/resources/nyc_streets/streets.shp");
file = new File("/Users/bdferris/oba/data/opentripplanner-data/nyc/streets/nyc_streets/streets.shp");
if (!file.exists()) {
System.out.... | public void testBasic() throws Exception {
Graph gg = new Graph();
File file = new File("src/test/resources/nyc_streets/streets.shp");
if (!file.exists()) {
System.out.println("No New York City basemap; skipping; see comment here for details");
/*
* Thi... |
diff --git a/hw2/wci/frontend/java/tokens/JavaWordToken.java b/hw2/wci/frontend/java/tokens/JavaWordToken.java
index d70cbd5..d9312b7 100644
--- a/hw2/wci/frontend/java/tokens/JavaWordToken.java
+++ b/hw2/wci/frontend/java/tokens/JavaWordToken.java
@@ -1,53 +1,53 @@
package wci.frontend.java.tokens;
import wci.fron... | true | true | protected void extract()
throws Exception
{
StringBuilder textBuffer = new StringBuilder();
char currentChar = currentChar();
// Get the word characters (letter or digit). The scanner has
// already determined that the first character is a letter.
while (Charact... | protected void extract()
throws Exception
{
StringBuilder textBuffer = new StringBuilder();
char currentChar = currentChar();
// Get the word characters (letter or digit). The scanner has
// already determined that the first character is a letter.
while (Charact... |
diff --git a/src/fr/iutvalence/java/projet/test/TestBoundingBox.java b/src/fr/iutvalence/java/projet/test/TestBoundingBox.java
index 2e4a0c6..a5e01c8 100644
--- a/src/fr/iutvalence/java/projet/test/TestBoundingBox.java
+++ b/src/fr/iutvalence/java/projet/test/TestBoundingBox.java
@@ -1,46 +1,46 @@
/**
*
*/
packa... | false | true | public static void main(String[] args)
{
try
{
BoundingBox b1 = new BoundingBox(new Coordinates(0,0),
new Coordinates(10,10));
BoundingBox b2 = new BoundingBox(new Coordinates(5,5),
new Coordinates(5,5));
System.out.println(b1 + "\n" + b2);
b1.moveTo(new Coordinates(10,10))... | public static void main(String[] args)
{
try
{
BoundingBox b1 = new BoundingBox(new Coordinates(0,0),
new Coordinates(10,10));
BoundingBox b2 = new BoundingBox(new Coordinates(5,5),
new Coordinates(5,5));
System.out.println("Avant : " + b1 + "\n\t" + b2);
b1.moveTo(new Coor... |
diff --git a/grails/src/web/org/codehaus/groovy/grails/web/pages/GroovyPagesTemplateEngine.java b/grails/src/web/org/codehaus/groovy/grails/web/pages/GroovyPagesTemplateEngine.java
index c4ad8dd5b..8333009a6 100644
--- a/grails/src/web/org/codehaus/groovy/grails/web/pages/GroovyPagesTemplateEngine.java
+++ b/grails/src... | false | true | protected Binding getBinding(HttpServletRequest request, HttpServletResponse response, Writer out)
throws IOException {
// Set up the script context
Binding binding = new Binding();
GroovyObject controller = (GroovyObject)request.getAttribute(GrailsApplicatio... | protected Binding getBinding(HttpServletRequest request, HttpServletResponse response, Writer out)
throws IOException {
// Set up the script context
Binding binding = new Binding();
GroovyObject controller = (GroovyObject)request.getAttribute(GrailsApplicatio... |
diff --git a/src/main/java/gov/usgs/cida/geoutils/geoserver/servlet/ShapefileUploadServlet.java b/src/main/java/gov/usgs/cida/geoutils/geoserver/servlet/ShapefileUploadServlet.java
index d48cac9..9c80fb3 100644
--- a/src/main/java/gov/usgs/cida/geoutils/geoserver/servlet/ShapefileUploadServlet.java
+++ b/src/main/java/... | true | true | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, FileNotFoundException {
String filenameParam;
boolean useBaseCRSFailover;
boolean overwriteExistingLayer;
// "reproject" (default), "force", "none"
ProjectionPolicy projec... | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, FileNotFoundException {
String filenameParam;
boolean useBaseCRSFailover;
boolean overwriteExistingLayer;
// "reproject" (default), "force", "none"
ProjectionPolicy projec... |
diff --git a/martus-android/src/org/martus/android/dialog/CreateAccountDialog.java b/martus-android/src/org/martus/android/dialog/CreateAccountDialog.java
index b4bc72e..4d2dd5e 100644
--- a/martus-android/src/org/martus/android/dialog/CreateAccountDialog.java
+++ b/martus-android/src/org/martus/android/dialog/CreateAc... | true | true | public Dialog onCreateDialog(Bundle savedInstanceState) {
LayoutInflater factory = LayoutInflater.from(getActivity());
final View createAccountDialog = factory.inflate(R.layout.create_account, null);
newPasswordText = (EditText) createAccountDialog.findViewById(R.id.new_password_field);
... | public Dialog onCreateDialog(Bundle savedInstanceState) {
LayoutInflater factory = LayoutInflater.from(getActivity());
final View createAccountDialog = factory.inflate(R.layout.create_account, null);
newPasswordText = (EditText) createAccountDialog.findViewById(R.id.new_password_field);
... |
diff --git a/src/test/java/mock/VoteActionHandlerMockTest.java b/src/test/java/mock/VoteActionHandlerMockTest.java
index edafb74..5c8e7d7 100644
--- a/src/test/java/mock/VoteActionHandlerMockTest.java
+++ b/src/test/java/mock/VoteActionHandlerMockTest.java
@@ -1,107 +1,108 @@
package mock;
import junit.framework.Te... | true | true | public void handleTest() throws UnavailableServiceException {
context.setImposteriser(ClassImposteriser.INSTANCE);
final NomicAgent mockAgent = context.mock(NomicAgent.class);
final NomicService service = context.mock(NomicService.class);
final Vote yes = new Vote(mockAgent, VoteType.YES);
final Vote n... | public void handleTest() throws UnavailableServiceException {
context.setImposteriser(ClassImposteriser.INSTANCE);
final NomicAgent mockAgent = context.mock(NomicAgent.class);
final NomicService service = context.mock(NomicService.class);
final Vote yes = new Vote(mockAgent, VoteType.YES);
final Vote n... |
diff --git a/src/skittles/g6/CompulsiveEater.java b/src/skittles/g6/CompulsiveEater.java
index 4dd6c31..7596cfb 100644
--- a/src/skittles/g6/CompulsiveEater.java
+++ b/src/skittles/g6/CompulsiveEater.java
@@ -1,419 +1,419 @@
package skittles.g6;
import java.util.ArrayList;
import java.util.Collections;
import s... | true | true | public void eat( int[] aintTempEat )
{
//printInHand();
turnCounter++;
int eatIndex = scanForLeastValuable();
//self-destruct if nothing remaining under secondary threshold
//TODO: set threshold for turnsSinceLastTrade or for only positives left
if(!negativesRemain && turnsSinceLastTrade > pilesBelowS... | public void eat( int[] aintTempEat )
{
//printInHand();
turnCounter++;
int eatIndex = scanForLeastValuable();
//self-destruct if nothing remaining under secondary threshold
//TODO: set threshold for turnsSinceLastTrade or for only positives left
if((eatIndex == -1 || !negativesRemain) && turnsSinceLas... |
diff --git a/src/test/java/tool/email/sender/SendJobTest.java b/src/test/java/tool/email/sender/SendJobTest.java
index fd30884..d89fecb 100644
--- a/src/test/java/tool/email/sender/SendJobTest.java
+++ b/src/test/java/tool/email/sender/SendJobTest.java
@@ -1,60 +1,60 @@
package tool.email.sender;
import static org.... | true | true | public void testSend() throws AddressException {
SendJob job = new SendJob();
Connection conn = new Connection();
ConnectionParams params = new ConnectionParams();
params.setConnectTimeout(15000).setDebug(true).setDebugOut(System.out)
.setEnvelopeFrom(username).setHe... | public void testSend() throws AddressException {
SendJob job = new SendJob();
Connection conn = new Connection();
ConnectionParams params = new ConnectionParams();
params.setConnectTimeout(15000).setDebug(true).setDebugOut(System.out)
.setEnvelopeFrom(username).setHe... |
diff --git a/core/queryalgebra/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/iterator/ExtensionIterator.java b/core/queryalgebra/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/iterator/ExtensionIterator.java
index 8d860a7a4..5f2730752 100644
--- a/core/queryalgebra/evaluation/src/main/jav... | true | true | public BindingSet convert(BindingSet sourceBindings)
throws QueryEvaluationException
{
QueryBindingSet targetBindings = new QueryBindingSet(sourceBindings);
for (ExtensionElem extElem : extension.getElements()) {
ValueExpr expr = extElem.getExpr();
if (!(expr instanceof AggregateOperator)) {
try {
... | public BindingSet convert(BindingSet sourceBindings)
throws QueryEvaluationException
{
QueryBindingSet targetBindings = new QueryBindingSet(sourceBindings);
for (ExtensionElem extElem : extension.getElements()) {
ValueExpr expr = extElem.getExpr();
if (!(expr instanceof AggregateOperator)) {
try {
... |
diff --git a/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationDetailsPage.java b/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationDetailsPage.java
index 930e671fb..7acb726f8 1006... | false | true | public void refresh()
{
removeListeners();
if ( input != null )
{
// Enabled
enabledCheckbox.setSelection( input.isEnabled() );
// ID
idText.setText( checkNull( input.getReplConsumerId() ) );
// Description
descri... | public void refresh()
{
removeListeners();
if ( input != null )
{
// Enabled
enabledCheckbox.setSelection( input.isEnabled() );
// ID
idText.setText( checkNull( input.getReplConsumerId() ) );
// Description
descri... |
diff --git a/src/com/example/myfirstapp/MainActivity.java b/src/com/example/myfirstapp/MainActivity.java
index f0489a3..b0d4bd2 100644
--- a/src/com/example/myfirstapp/MainActivity.java
+++ b/src/com/example/myfirstapp/MainActivity.java
@@ -1,37 +1,37 @@
package com.example.myfirstapp;
import android.app.Activity;
... | true | true | public void sendMessage(View view) {
Intent intent = new Intent (this, DisplayMessageActibity.class);
EditText editText = (EditText) findViewById(R.id.edit_message);
String message = editText.getText().toString();
intent.putExtra(EXTRA_MESSAGE, message);
startActivity(intent);
}
| public void sendMessage(View view) {
Intent intent = new Intent (this, DisplayMessageActivity.class);
EditText editText = (EditText) findViewById(R.id.edit_message);
String message = editText.getText().toString();
intent.putExtra(EXTRA_MESSAGE, message);
startActivity(intent);
}
|
diff --git a/geotools2/geotools-src/defaultcore/src/org/geotools/styling/DefaultStroke.java b/geotools2/geotools-src/defaultcore/src/org/geotools/styling/DefaultStroke.java
index e26299109..cd7b1496f 100644
--- a/geotools2/geotools-src/defaultcore/src/org/geotools/styling/DefaultStroke.java
+++ b/geotools2/geotools-src... | true | true | public float[] getDashArray() {
float[] newArray = new float[dashArray.length];
System.arraycopy(dashArray,0,newArray,0,dashArray.length);
return newArray;
}
| public float[] getDashArray() {
if(dashArray == null) return new float[0];
float[] newArray = new float[dashArray.length];
System.arraycopy(dashArray,0,newArray,0,dashArray.length);
return newArray;
}
|
diff --git a/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/src/net/sourceforge/pmd/eclipse/ui/preferences/br/TextColumnDescriptor.java b/pmd-eclipse-plugin/plugins/net.sourceforge.pmd.eclipse.plugin/src/net/sourceforge/pmd/eclipse/ui/preferences/br/TextColumnDescriptor.java
index f85c92805..e285fb016 10... | true | true | public void addPainterFor(final Tree tree, final int columnIndex, final RuleFieldAccessor getter, Map<Integer, List<Listener>> thePaintListeners) {
CellPainterBuilder cpl = new AbstractCellPainterBuilder() {
public void addPainterFor(final Tree tree, final int columnIndex, final RuleFieldAccessor... | public void addPainterFor(final Tree tree, final int columnIndex, final RuleFieldAccessor getter, Map<Integer, List<Listener>> thePaintListeners) {
CellPainterBuilder cpl = new AbstractCellPainterBuilder() {
public void addPainterFor(final Tree tree, final int columnIndex, final RuleFieldAccessor... |
diff --git a/core/src/net/sf/openrocket/gui/plot/SimulationPlotDialog.java b/core/src/net/sf/openrocket/gui/plot/SimulationPlotDialog.java
index ca4b104a..a849dcce 100644
--- a/core/src/net/sf/openrocket/gui/plot/SimulationPlotDialog.java
+++ b/core/src/net/sf/openrocket/gui/plot/SimulationPlotDialog.java
@@ -1,200 +1,... | true | true | private SimulationPlotDialog(Window parent, Simulation simulation, PlotConfiguration config) {
//// Flight data plot
super(parent, simulation.getName());
this.setModalityType(ModalityType.DOCUMENT_MODAL);
final boolean initialShowPoints = Application.getPreferences().getBoolean(Preferences.PLOT_SHOW_POINTS, f... | private SimulationPlotDialog(Window parent, Simulation simulation, PlotConfiguration config) {
//// Flight data plot
super(parent, simulation.getName());
this.setModalityType(ModalityType.DOCUMENT_MODAL);
final boolean initialShowPoints = Application.getPreferences().getBoolean(Preferences.PLOT_SHOW_POINTS, f... |
diff --git a/EclipseWurstPlugin/src/de/peeeq/eclipsewurstplugin/editor/WurstTextHover.java b/EclipseWurstPlugin/src/de/peeeq/eclipsewurstplugin/editor/WurstTextHover.java
index 0b5c9408..2c9f27c3 100644
--- a/EclipseWurstPlugin/src/de/peeeq/eclipsewurstplugin/editor/WurstTextHover.java
+++ b/EclipseWurstPlugin/src/de/p... | true | true | public String getAnnotationHover(IRegion hoverRegion) {
IAnnotationModel model= getAnnotationModel(sourceViewer);
if (model == null)
return null;
Iterator<?> e= model.getAnnotationIterator();
while (e.hasNext()) {
Annotation a= (Annotation) e.next();
if (isIncluded(a)) {
Position p= model.getPosi... | public String getAnnotationHover(IRegion hoverRegion) {
IAnnotationModel model= getAnnotationModel(sourceViewer);
if (model == null)
return null;
Iterator<?> e= model.getAnnotationIterator();
while (e.hasNext()) {
Annotation a= (Annotation) e.next();
if (isIncluded(a)) {
Position p= model.getPosi... |
diff --git a/src/com/android/browser/AddBookmarkPage.java b/src/com/android/browser/AddBookmarkPage.java
index 10c91f8d..f287e8e1 100644
--- a/src/com/android/browser/AddBookmarkPage.java
+++ b/src/com/android/browser/AddBookmarkPage.java
@@ -1,284 +1,284 @@
/*
* Copyright (C) 2006 The Android Open Source Project
... | false | true | boolean save() {
createHandler();
String title = mTitle.getText().toString().trim();
String unfilteredUrl;
if (mIsUrlEditable) {
unfilteredUrl =
BrowserActivity.fixUrl(mAddress.getText().toString());
} else {
unfilteredUrl = mOrigi... | boolean save() {
createHandler();
String title = mTitle.getText().toString().trim();
String unfilteredUrl;
if (mIsUrlEditable) {
unfilteredUrl =
BrowserActivity.fixUrl(mAddress.getText().toString());
} else {
unfilteredUrl = mOrigi... |
diff --git a/srcj/com/sun/electric/tool/user/ui/SizeListener.java b/srcj/com/sun/electric/tool/user/ui/SizeListener.java
index 29270008d..0e7253f22 100755
--- a/srcj/com/sun/electric/tool/user/ui/SizeListener.java
+++ b/srcj/com/sun/electric/tool/user/ui/SizeListener.java
@@ -1,725 +1,727 @@
/* -*- tab-width: 4 -*-
... | false | true | private Point2D getNewNodeSize(MouseEvent evt, Point2D newCenter)
{
// get the coordinates of the cursor in database coordinates
EditWindow wnd = (EditWindow)evt.getSource();
int oldx = evt.getX();
int oldy = evt.getY();
Point2D pt = wnd.screenToDatabase(oldx, oldy);
// get information about the node bei... | private Point2D getNewNodeSize(MouseEvent evt, Point2D newCenter)
{
// get the coordinates of the cursor in database coordinates
EditWindow wnd = (EditWindow)evt.getSource();
int oldx = evt.getX();
int oldy = evt.getY();
Point2D pt = wnd.screenToDatabase(oldx, oldy);
// get information about the node bei... |
diff --git a/lilith/src/main/java/de/huxhorn/lilith/swing/TextPreprocessor.java b/lilith/src/main/java/de/huxhorn/lilith/swing/TextPreprocessor.java
index 1342bab2..91f3ce0c 100644
--- a/lilith/src/main/java/de/huxhorn/lilith/swing/TextPreprocessor.java
+++ b/lilith/src/main/java/de/huxhorn/lilith/swing/TextPreprocesso... | true | true | private static void formatCondition(Condition condition, StringBuilder result, int indent) {
if(condition == null)
{
appendIndent(result, indent);
result.append("null");
}
else if(condition instanceof ConditionWrapper)
{
ConditionWrapper wrapper = (ConditionWrapper)condition;
String operator;
... | private static void formatCondition(Condition condition, StringBuilder result, int indent) {
if(condition == null)
{
appendIndent(result, indent);
result.append("null");
}
else if(condition instanceof ConditionWrapper)
{
ConditionWrapper wrapper = (ConditionWrapper)condition;
String operator;
... |
diff --git a/src/tesla/app/command/Command.java b/src/tesla/app/command/Command.java
index 59ded9b..f523652 100644
--- a/src/tesla/app/command/Command.java
+++ b/src/tesla/app/command/Command.java
@@ -1,207 +1,208 @@
/* Copyright 2009 Sean Hodges <seanhodges@bluebottle.com>
*
* This program is free software: you ... | false | true | private String parseArguments(String out)
throws IllegalArgumentException {
// Add the arguments to the command
boolean success = true;
while (success && stillHasArgs(out)) {
for (Object arg : args) {
// !!! Remember to add new data types to stillHasArgs()
if (arg instanceof String) {
if (out... | private String parseArguments(String out)
throws IllegalArgumentException {
// Add the arguments to the command
boolean success = false;
do {
for (Object arg : args) {
success = false;
// !!! Remember to add new data types to stillHasArgs()
if (arg instanceof String) {
if (out.contains("%... |
diff --git a/riot-hibernate/src/org/riotfamily/riot/hibernate/support/LongConversationTemplate.java b/riot-hibernate/src/org/riotfamily/riot/hibernate/support/LongConversationTemplate.java
index ab585694d..a43118fbf 100644
--- a/riot-hibernate/src/org/riotfamily/riot/hibernate/support/LongConversationTemplate.java
+++ ... | true | true | public final void execute(LongConversationCallback callback) throws Exception {
Session session = SessionFactoryUtils.getSession(getSessionFactory(),
getEntityInterceptor(), getJdbcExceptionTranslator());
SessionHolder sessionHolder = (SessionHolder)
TransactionSynchronizationManager.getResource(getSe... | public final void execute(LongConversationCallback callback) throws Exception {
Session session = SessionFactoryUtils.getSession(getSessionFactory(),
getEntityInterceptor(), getJdbcExceptionTranslator());
SessionHolder sessionHolder = (SessionHolder)
TransactionSynchronizationManager.getResource(getSe... |
diff --git a/org.eclipse.help.base/src/org/eclipse/help/internal/search/WordTokenStream.java b/org.eclipse.help.base/src/org/eclipse/help/internal/search/WordTokenStream.java
index 28b431b65..136059964 100644
--- a/org.eclipse.help.base/src/org/eclipse/help/internal/search/WordTokenStream.java
+++ b/org.eclipse.help.ba... | true | true | public boolean incrementToken() throws IOException {
clearAttributes();
int length = 0;
char[] buffer = termAtt.buffer();
int end;
if(strbuf == null) {
int available;
char[] cbuf = new char[BUF_LEN];
while ((available = reader.read(cbuf)) <= 0) {
if (available < 0) {
reader.... | public boolean incrementToken() throws IOException {
clearAttributes();
int length = 0;
char[] buffer = termAtt.buffer();
int end;
if(strbuf == null) {
int available;
char[] cbuf = new char[BUF_LEN];
while ((available = reader.read(cbuf)) <= 0) {
if (available < 0) {
reader.... |
diff --git a/cobertura/src/net/sourceforge/cobertura/ant/InstrumentTask.java b/cobertura/src/net/sourceforge/cobertura/ant/InstrumentTask.java
index 9a1c02b..f307269 100644
--- a/cobertura/src/net/sourceforge/cobertura/ant/InstrumentTask.java
+++ b/cobertura/src/net/sourceforge/cobertura/ant/InstrumentTask.java
@@ -1,1... | true | true | public void execute() throws BuildException
{
initArgs();
if (dataFile != null)
{
addArg("--datafile");
addArg(dataFile);
}
if (toDir != null)
{
addArg("--destination");
addArg(toDir.toString());
}
// ignoreRegex.setRegex() is never called, but that's ok
// because ant sets it somehow... | public void execute() throws BuildException
{
initArgs();
if (dataFile != null)
{
addArg("--datafile");
addArg(dataFile);
}
if (toDir != null)
{
addArg("--destination");
addArg(toDir.toString());
}
// ignoreRegex.setRegex() is never called, but that's ok
// because ant sets it somehow... |
diff --git a/src/java-common/org/xins/common/servlet/container/ServletClassLoader.java b/src/java-common/org/xins/common/servlet/container/ServletClassLoader.java
index bbc6d683b..976ab1c29 100644
--- a/src/java-common/org/xins/common/servlet/container/ServletClassLoader.java
+++ b/src/java-common/org/xins/common/servl... | false | true | public static ClassLoader getServletClassLoader(File warFile, int mode) throws IOException {
if (mode == USE_CURRENT_CLASSPATH) {
return ServletClassLoader.class.getClassLoader();
}
List urlList = new ArrayList();
if (mode != USE_WAR_EXTERNAL_LIB) {
URL classesURL = new URL(... | public static ClassLoader getServletClassLoader(File warFile, int mode) throws IOException {
if (mode == USE_CURRENT_CLASSPATH) {
return ServletClassLoader.class.getClassLoader();
}
List urlList = new ArrayList();
if (mode != USE_WAR_EXTERNAL_LIB) {
URL classesURL = new URL(... |
diff --git a/atlas-analytics/src/main/java/uk/ac/ebi/gxa/analytics/generator/service/ExperimentAnalyticsGeneratorService.java b/atlas-analytics/src/main/java/uk/ac/ebi/gxa/analytics/generator/service/ExperimentAnalyticsGeneratorService.java
index d0b1683c8..58971a446 100644
--- a/atlas-analytics/src/main/java/uk/ac/ebi... | false | true | private void generateExperimentAnalytics(String experimentAccession, AnalyticsGeneratorListener listener)
throws AnalyticsGeneratorException {
getLog().info("Generating analytics for experiment " + experimentAccession);
// update loadmonitor - experiment is indexing
getAtlasDAO(... | private void generateExperimentAnalytics(String experimentAccession, AnalyticsGeneratorListener listener)
throws AnalyticsGeneratorException {
getLog().info("Generating analytics for experiment " + experimentAccession);
// update loadmonitor - experiment is indexing
getAtlasDAO(... |
diff --git a/src/com/mpower/domain/model/paymentInfo/AbstractPaymentInfoEntity.java b/src/com/mpower/domain/model/paymentInfo/AbstractPaymentInfoEntity.java
index 4c44c24c..1ee64510 100644
--- a/src/com/mpower/domain/model/paymentInfo/AbstractPaymentInfoEntity.java
+++ b/src/com/mpower/domain/model/paymentInfo/Abstract... | false | true | public void removeEmptyMutableDistributionLines() {
Iterator<DistributionLine> mutableLinesIter = mutableDistributionLines.iterator();
distributionLines = new ArrayList<DistributionLine>();
while (mutableLinesIter.hasNext()) {
DistributionLine line = mutableLinesIter.next();
... | public void removeEmptyMutableDistributionLines() {
Iterator<DistributionLine> mutableLinesIter = mutableDistributionLines.iterator();
distributionLines = new ArrayList<DistributionLine>();
while (mutableLinesIter.hasNext()) {
DistributionLine line = mutableLinesIter.next();
... |
diff --git a/src/com/android/settings/Settings.java b/src/com/android/settings/Settings.java
index 02769e1..4763a2e 100644
--- a/src/com/android/settings/Settings.java
+++ b/src/com/android/settings/Settings.java
@@ -1,844 +1,844 @@
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the A... | true | true | public View getView(int position, View convertView, ViewGroup parent) {
HeaderViewHolder holder;
Header header = getItem(position);
int headerType = getHeaderType(header);
View view = null;
if (convertView == null) {
holder = new Heade... | public View getView(int position, View convertView, ViewGroup parent) {
HeaderViewHolder holder;
Header header = getItem(position);
int headerType = getHeaderType(header);
View view = null;
if (convertView == null || headerType == HEADER_TYPE_SWITCH) ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.