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/net/java/sip/communicator/impl/protocol/jabber/ProtocolProviderServiceJabberImpl.java b/src/net/java/sip/communicator/impl/protocol/jabber/ProtocolProviderServiceJabberImpl.java
index 2b4092ba1..a606c6a92 100644
--- a/src/net/java/sip/communicator/impl/protocol/jabber/ProtocolProviderServiceJabberImpl.... | true | true | private synchronized void connectAndLogin(SecurityAuthority authority,
int reasonCode)
throws XMPPException, OperationFailedException
{
synchronized(connectAndLoginLock)
{
inConnectAndLogin = true;
}
synchronized(... | private synchronized void connectAndLogin(SecurityAuthority authority,
int reasonCode)
throws XMPPException, OperationFailedException
{
synchronized(connectAndLoginLock)
{
inConnectAndLogin = true;
}
synchronized(... |
diff --git a/SchedulerFLM2/src/main/java/main/app/FLMPlannerHelloWorld.java b/SchedulerFLM2/src/main/java/main/app/FLMPlannerHelloWorld.java
index e498a15..7459dfe 100644
--- a/SchedulerFLM2/src/main/java/main/app/FLMPlannerHelloWorld.java
+++ b/SchedulerFLM2/src/main/java/main/app/FLMPlannerHelloWorld.java
@@ -1,74 +1... | true | true | public static void runData(String inFile, String outFile) {
ImportData importer = new ImportData();
//importer.initialtest();
importer.importFromXLS(inFile);
DataStorage storage = importer.getStorage();
long startTimeCounter = System.currentTimeMillis();
XmlSolverFactory solverFactory = new XmlSolver... | public static void runData(String inFile, String outFile) {
ImportData importer = new ImportData();
//importer.initialtest();
importer.importFromXLS(inFile);
DataStorage storage = importer.getStorage();
long startTimeCounter = System.currentTimeMillis();
XmlSolverFactory solverFactory = new XmlSolver... |
diff --git a/src/uk/org/whoami/authme/commands/AdminCommand.java b/src/uk/org/whoami/authme/commands/AdminCommand.java
index fde30fb..5788bf2 100644
--- a/src/uk/org/whoami/authme/commands/AdminCommand.java
+++ b/src/uk/org/whoami/authme/commands/AdminCommand.java
@@ -1,157 +1,157 @@
/*
* Copyright 2011 Sebastian Kö... | true | true | public boolean onCommand(CommandSender sender, Command cmnd, String label, String[] args) {
if (args.length == 0) {
sender.sendMessage("Usage: /authme reload|register playername password|changepassword playername password|unregister playername");
return true;
}
if (!... | public boolean onCommand(CommandSender sender, Command cmnd, String label, String[] args) {
if (args.length == 0) {
sender.sendMessage("Usage: /authme reload|register playername password|changepassword playername password|unregister playername|purge");
return true;
}
... |
diff --git a/grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/model/AbstractPersistentEntity.java b/grails-datastore-core/src/main/groovy/org/grails/datastore/mapping/model/AbstractPersistentEntity.java
index e4700aea..648ef991 100644
--- a/grails-datastore-core/src/main/groovy/org/grails/datastore/ma... | true | true | public void initialize() {
if(!initialized) {
initialized = true;
initializeMappingProperties();
owners = context.getMappingSyntaxStrategy().getOwningEntities(javaClass, context);
persistentProperties = context.getMappingSyntaxStrategy().getPersistentPropert... | public void initialize() {
if(!initialized) {
initialized = true;
initializeMappingProperties();
owners = context.getMappingSyntaxStrategy().getOwningEntities(javaClass, context);
persistentProperties = context.getMappingSyntaxStrategy().getPersistentPropert... |
diff --git a/test-helper/src/main/java/org/stjs/testing/driver/DriverConfiguration.java b/test-helper/src/main/java/org/stjs/testing/driver/DriverConfiguration.java
index 4764455a..3d6b2c7d 100644
--- a/test-helper/src/main/java/org/stjs/testing/driver/DriverConfiguration.java
+++ b/test-helper/src/main/java/org/stjs/t... | false | true | public DriverConfiguration(Class<?> klass) {
InputStream in = null;
try {
in = klass.getResourceAsStream(FILE_NAME);
if (in != null) {
props = new Properties();
props.load(in);
}
}
catch (IOException e) {
// silent
}
finally {
Closeables.closeQuietly(in);
}
// system properties... | public DriverConfiguration(Class<?> klass) {
InputStream in = null;
props = new Properties();
try {
in = klass.getResourceAsStream(FILE_NAME);
if (in != null) {
props.load(in);
}
}
catch (IOException e) {
// silent
}
finally {
Closeables.closeQuietly(in);
}
// system properties t... |
diff --git a/src/lib/com/izforge/izpack/panels/PacksModel.java b/src/lib/com/izforge/izpack/panels/PacksModel.java
index 505ea7a6..ba993c30 100644
--- a/src/lib/com/izforge/izpack/panels/PacksModel.java
+++ b/src/lib/com/izforge/izpack/panels/PacksModel.java
@@ -1,371 +1,371 @@
/*
* $Id$
* IzPack
* Copyright... | true | true | private void initvalues()
{
//name to pack position map
namesPos = new HashMap();
for (int i = 0; i < packs.size(); i++)
{
Pack pack = (Pack) packs.get(i);
namesPos.put(pack.name,new Integer(i));
}
//Init to the first values
for (int i = 0; i < packs.size(); i++)
{
... | private void initvalues()
{
//name to pack position map
namesPos = new HashMap();
for (int i = 0; i < packs.size(); i++)
{
Pack pack = (Pack) packs.get(i);
namesPos.put(pack.name,new Integer(i));
}
//Init to the first values
for (int i = 0; i < packs.size(); i++)
{
... |
diff --git a/solr/src/common/org/apache/solr/common/util/SystemIdResolver.java b/solr/src/common/org/apache/solr/common/util/SystemIdResolver.java
index ab76b2202..b396735df 100644
--- a/solr/src/common/org/apache/solr/common/util/SystemIdResolver.java
+++ b/solr/src/common/org/apache/solr/common/util/SystemIdResolver.... | true | true | public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws IOException {
if (systemId == null)
return null;
try {
final URI uri = resolveRelativeURI(baseURI, systemId);
// check schema and resolve with ResourceLoader
if (RESOURCE_LOADE... | public InputSource resolveEntity(String name, String publicId, String baseURI, String systemId) throws IOException {
if (systemId == null)
return null;
try {
final URI uri = resolveRelativeURI(baseURI, systemId);
// check schema and resolve with ResourceLoader
if (RESOURCE_LOADE... |
diff --git a/src/com/mojang/mojam/entity/animation/ItemFallAnimation.java b/src/com/mojang/mojam/entity/animation/ItemFallAnimation.java
index 3b2fc7d9..72dfd86b 100644
--- a/src/com/mojang/mojam/entity/animation/ItemFallAnimation.java
+++ b/src/com/mojang/mojam/entity/animation/ItemFallAnimation.java
@@ -1,32 +1,35 @@... | true | true | public void render(Screen screen) {
int anim;
anim = life * 12 / duration;
double posY = pos.y;
if (!isHarvester) posY += Tile.HEIGHT;
screen.blit(fallingImage, pos.x, posY - anim*3);
Tile tileBelow = level.getTile((int)pos.x/Tile.WIDTH, (int)pos.y/Tile.W... | public void render(Screen screen) {
int anim;
anim = life * 12 / duration;
double posY = pos.y;
if (!isHarvester) posY += Tile.HEIGHT;
screen.blit(fallingImage, pos.x, posY - anim*3);
Tile tileBelow;
for(int i = 1; i <= 2; i++) {
tileBelo... |
diff --git a/src/dbit/belegii/cacheActivity.java b/src/dbit/belegii/cacheActivity.java
index 7a53599..4125727 100644
--- a/src/dbit/belegii/cacheActivity.java
+++ b/src/dbit/belegii/cacheActivity.java
@@ -1,229 +1,229 @@
package dbit.belegii;
import java.sql.Connection;
import java.sql.DriverManager;
import java.... | false | true | public void startQuery(View view) {
// final EditText query = (EditText)findViewById(R.id.edit);
// final TextView output = (TextView) findViewById(R.id.output);
// final TextView time_output = (TextView) findViewById(R.id.time_output_0);
// final TextView time_description = (TextView) fi... | public void startQuery(View view) {
// final EditText query = (EditText)findViewById(R.id.edit);
// final TextView output = (TextView) findViewById(R.id.output);
// final TextView time_output = (TextView) findViewById(R.id.time_output_0);
// final TextView time_description = (TextView) fi... |
diff --git a/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_time.java b/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_time.java
index 0a6e83a..931d28e 100644
--- a/CommandsEX/src/com/github/zathrus_writer/commandsex/commands/Command_cex_time.java
+++ b/CommandsEX/src... | false | true | public static Boolean run(CommandSender sender, String alias, String[] args) {
if (sender instanceof Player && Utils.checkCommandSpam((Player) sender, "cex_time")){
return true;
}
String function = "";
World cWorld = (sender instanceof Player ? ((Player) sender).getWorld() : Bukkit.getWorlds().get(0));
... | public static Boolean run(CommandSender sender, String alias, String[] args) {
if (sender instanceof Player && Utils.checkCommandSpam((Player) sender, "cex_time")){
return true;
}
String function = "";
World cWorld = (sender instanceof Player ? ((Player) sender).getWorld() : Bukkit.getWorlds().get(0));
... |
diff --git a/src/main/java/org/thymeleaf/processor/attr/AbstractRemovalAttrProcessor.java b/src/main/java/org/thymeleaf/processor/attr/AbstractRemovalAttrProcessor.java
index 26eab3bc..eaab8e2b 100644
--- a/src/main/java/org/thymeleaf/processor/attr/AbstractRemovalAttrProcessor.java
+++ b/src/main/java/org/thymeleaf/pr... | false | true | public final ProcessorResult processAttribute(final Arguments arguments, final Element element, final String attributeName) {
final String attributeValue = element.getAttributeValue(attributeName);
if (attributeValue != null) {
final String value = attributeValue.trim();
if ... | public final ProcessorResult processAttribute(final Arguments arguments, final Element element, final String attributeName) {
final String attributeValue = element.getAttributeValue(attributeName);
if (attributeValue != null) {
final String value = attributeValue.trim();
if ... |
diff --git a/web/src/org/openmrs/module/simplelabentry/web/dwr/DWRSimpleLabEntryService.java b/web/src/org/openmrs/module/simplelabentry/web/dwr/DWRSimpleLabEntryService.java
index 2b4ab47..938b113 100644
--- a/web/src/org/openmrs/module/simplelabentry/web/dwr/DWRSimpleLabEntryService.java
+++ b/web/src/org/openmrs/mod... | true | true | public LabOrderListItem saveLabOrder(Integer orderId, Integer patientId, String orderConceptStr, String orderLocationStr, String orderDateStr, String accessionNumber, String discontinuedDateStr, Map<String, LabResultListItem> labResults) {
log.debug("Saving LabOrder with params: " + orderId + ", " + patientId + "... | public LabOrderListItem saveLabOrder(Integer orderId, Integer patientId, String orderConceptStr, String orderLocationStr, String orderDateStr, String accessionNumber, String discontinuedDateStr, Map<String, LabResultListItem> labResults) {
log.debug("Saving LabOrder with params: " + orderId + ", " + patientId + "... |
diff --git a/src/gov/nih/nci/ncicb/cadsr/loader/event/UMLDefaultHandler.java b/src/gov/nih/nci/ncicb/cadsr/loader/event/UMLDefaultHandler.java
index 654716c1..7f42724b 100755
--- a/src/gov/nih/nci/ncicb/cadsr/loader/event/UMLDefaultHandler.java
+++ b/src/gov/nih/nci/ncicb/cadsr/loader/event/UMLDefaultHandler.java
@@ -1... | true | true | public void newGeneralization(NewGeneralizationEvent event) {
ObjectClassRelationship ocr = DomainObjectFactory.newObjectClassRelationship();
ObjectClass oc = DomainObjectFactory.newObjectClass();
List ocs = elements.getElements(oc.getClass());
for(Iterator it = ocs.iterator(); it.hasNext(); ) {
... | public void newGeneralization(NewGeneralizationEvent event) {
ObjectClassRelationship ocr = DomainObjectFactory.newObjectClassRelationship();
ObjectClass oc = DomainObjectFactory.newObjectClass();
List ocs = elements.getElements(oc.getClass());
for(Iterator it = ocs.iterator(); it.hasNext(); ) {
... |
diff --git a/src/jboxGlue/MovableMass.java b/src/jboxGlue/MovableMass.java
index 7318a25..d0378df 100644
--- a/src/jboxGlue/MovableMass.java
+++ b/src/jboxGlue/MovableMass.java
@@ -1,73 +1,75 @@
package jboxGlue;
import jgame.JGObject;
import org.jbox2d.common.Vec2;
import walls.HorizontalWall;
import walls.... | false | true | public void hit(JGObject other) {
// if hits top or bottom
if (other instanceof HorizontalWall) {
if (myBody.m_linearVelocity.length() <= 1) {
if (other.x < pfheight / 2) {
myBody.m_linearVelocity = new Vec2(0, -1f);
} else
myBody.m_linearVelocity = new Vec2(0, 1f);
}
myBody.m_linearVelo... | public void hit(JGObject other) {
// if hits top or bottom
if (other instanceof HorizontalWall) {
if(myBody.m_linearVelocity.length() <= 1) {
if(other.x < pfheight/2){
myBody.m_linearVelocity = new Vec2(0, -1f);
}
else
myBody.m_linearVelocity = new Vec2(0, 1f);
}
myBody.m_linearVeloc... |
diff --git a/src/test/java/net/madz/download/engine/StateMachineTest.java b/src/test/java/net/madz/download/engine/StateMachineTest.java
index ae0e059..7c365fc 100644
--- a/src/test/java/net/madz/download/engine/StateMachineTest.java
+++ b/src/test/java/net/madz/download/engine/StateMachineTest.java
@@ -1,131 +1,131 @@... | true | true | private void testTransition(Dumper dumper, final DownloadProcess process,
final StateMachineMetaData<IDownloadProcess, StateEnum, TransitionEnum> machineMetaData) {
dumper.println("");
dumper.println("Test Transition");
dumper.println("");
@SuppressWarnings({ "rawtypes", ... | private void testTransition(Dumper dumper, final DownloadProcess process,
final StateMachineMetaData<IDownloadProcess, StateEnum, TransitionEnum> machineMetaData) {
dumper.println("");
dumper.println("Test Transition");
dumper.println("");
@SuppressWarnings({ "rawtypes", ... |
diff --git a/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/JsServlet.java b/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/JsServlet.java
index 0a8ef94f8..e5b59a31a 100644
--- a/java/gadgets/src/main/java/org/apache/shindig/gadgets/servlet/JsServlet.java
+++ b/java/gadgets/src/main/java/o... | true | true | protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
// If an If-Modified-Since header is ever provided, we always say
// not modified. This is because when there actually is a change,
// cache busting should occur.
if (req.getHeader("If-Modified-Since") !=... | protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
// If an If-Modified-Since header is ever provided, we always say
// not modified. This is because when there actually is a change,
// cache busting should occur.
if (req.getHeader("If-Modified-Since") !=... |
diff --git a/src/net/intensicode/me/MicroCanvasGraphics.java b/src/net/intensicode/me/MicroCanvasGraphics.java
index a7a7979..0704fb1 100644
--- a/src/net/intensicode/me/MicroCanvasGraphics.java
+++ b/src/net/intensicode/me/MicroCanvasGraphics.java
@@ -1,195 +1,195 @@
package net.intensicode.me;
import net.intensic... | true | true | public final void blendImage( final ImageResource aImage, final int aX, final int aY, final int aAlpha256 )
{
//#if DEBUG
Assert.isTrue( "only MicroImageResource supported for now", aImage instanceof MicroImageResource );
Assert.between( "alpha value 256", 0, 255, aAlpha256 );
... | public final void blendImage( final ImageResource aImage, final int aX, final int aY, final int aAlpha256 )
{
//#if DEBUG
Assert.isTrue( "only MicroImageResource supported for now", aImage instanceof MicroImageResource );
Assert.between( "alpha value 256", 0, 255, aAlpha256 );
... |
diff --git a/src/main/java/com/onarandombox/MultiversePortals/MultiversePortals.java b/src/main/java/com/onarandombox/MultiversePortals/MultiversePortals.java
index 1ede58c..80227e8 100644
--- a/src/main/java/com/onarandombox/MultiversePortals/MultiversePortals.java
+++ b/src/main/java/com/onarandombox/MultiversePortal... | false | true | public void loadConfig() {
this.MVPConfig = YamlConfiguration.loadConfiguration(new File(getDataFolder(), "config.yml"));
Configuration portalsDefaults = YamlConfiguration.loadConfiguration(this.getClass().getResourceAsStream("/defaults/config.yml"));
this.MVPConfig.setDefaults(portalsDefau... | public void loadConfig() {
this.MVPConfig = YamlConfiguration.loadConfiguration(new File(getDataFolder(), "config.yml"));
Configuration portalsDefaults = YamlConfiguration.loadConfiguration(this.getClass().getResourceAsStream("/defaults/config.yml"));
this.MVPConfig.setDefaults(portalsDefau... |
diff --git a/src/main/java/com/laytonsmith/core/Prefs.java b/src/main/java/com/laytonsmith/core/Prefs.java
index 8a343d54..e71124a4 100644
--- a/src/main/java/com/laytonsmith/core/Prefs.java
+++ b/src/main/java/com/laytonsmith/core/Prefs.java
@@ -1,203 +1,203 @@
package com.laytonsmith.core;
import com.laytonsmith.... | true | true | public static void init(File f) throws IOException {
ArrayList<Preferences.Preference> a = new ArrayList<Preferences.Preference>();
//a.add(new Preference("check-for-updates", "false", Type.BOOLEAN, "Whether or not to check to see if there's an update for CommandHelper"));
a.add(new Preferen... | public static void init(File f) throws IOException {
ArrayList<Preferences.Preference> a = new ArrayList<Preferences.Preference>();
//a.add(new Preference("check-for-updates", "false", Type.BOOLEAN, "Whether or not to check to see if there's an update for CommandHelper"));
a.add(new Preferen... |
diff --git a/two-different-activities/src/com/github/offby1/twodifferentactivities/MainActivity.java b/two-different-activities/src/com/github/offby1/twodifferentactivities/MainActivity.java
index 32d4662..82a04cd 100644
--- a/two-different-activities/src/com/github/offby1/twodifferentactivities/MainActivity.java
+++ b... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
this_activity = this;
lv = (ListView)this.findViewById (R.id.list);
Toast.makeText(this_activity, String.format("lv ID is %d",
... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
this_activity = this;
lv = (ListView)this.findViewById (R.id.list);
Toast.makeText(this_activity, String.format("lv ID is %d",
... |
diff --git a/mes-plugins/mes-plugins-samples/src/main/java/com/qcadoo/mes/samples/SamplesLoaderModule.java b/mes-plugins/mes-plugins-samples/src/main/java/com/qcadoo/mes/samples/SamplesLoaderModule.java
index a43e4cd89d..717eee1998 100644
--- a/mes-plugins/mes-plugins-samples/src/main/java/com/qcadoo/mes/samples/Sample... | true | true | private void addOrder(final Map<String, String> values) {
long startDate = System.currentTimeMillis() + MILLIS_IN_DAY * (RANDOM.nextInt(50) - 25);
if (!values.get("scheduled_start_date").isEmpty()) {
try {
startDate = FORMATTER.parse(values.get("scheduled_start_date")).g... | private void addOrder(final Map<String, String> values) {
long startDate = System.currentTimeMillis() + MILLIS_IN_DAY * (RANDOM.nextInt(50) - 25);
if (!values.get("scheduled_start_date").isEmpty()) {
try {
startDate = FORMATTER.parse(values.get("scheduled_start_date")).g... |
diff --git a/src/net/rptools/maptool/client/ZoneRenderer.java b/src/net/rptools/maptool/client/ZoneRenderer.java
index b3cb04df..97e7d2d2 100644
--- a/src/net/rptools/maptool/client/ZoneRenderer.java
+++ b/src/net/rptools/maptool/client/ZoneRenderer.java
@@ -1,616 +1,616 @@
/* The MIT License
*
* Copyright (c) 20... | false | true | private void renderBackBuffer(Graphics g) {
Dimension size = getSize();
// Scale
float scale = scaleArray[scaleIndex];
int w = (int)(width * scale);
int h = (int)(height * scale);
float gridSize = zone.getGridSize() * scale;
if (size.width > w) {
... | private void renderBackBuffer(Graphics g) {
Dimension size = getSize();
// Scale
float scale = scaleArray[scaleIndex];
int w = (int)(width * scale);
int h = (int)(height * scale);
float gridSize = zone.getGridSize() * scale;
if (size.width > w) {
... |
diff --git a/main/src/org/objenesis/SerializingInstantiatorStrategy.java b/main/src/org/objenesis/SerializingInstantiatorStrategy.java
index 8ed5b04..7f0d4d2 100644
--- a/main/src/org/objenesis/SerializingInstantiatorStrategy.java
+++ b/main/src/org/objenesis/SerializingInstantiatorStrategy.java
@@ -1,37 +1,40 @@
pack... | true | true | public ObjectInstantiator newInstantiatorOf(Class type) {
if(!Serializable.class.isAssignableFrom(type)) {
return new NullInstantiator();
}
if(JVM_NAME.startsWith(SUN)) {
if(VM_VERSION.startsWith("1.3")) {
return new Sun13SerializationInstantiator(type);
}
}
re... | public ObjectInstantiator newInstantiatorOf(Class type) {
if(!Serializable.class.isAssignableFrom(type)) {
return new NullInstantiator();
}
if(JVM_NAME.startsWith(SUN)) {
if(VM_VERSION.startsWith("1.3")) {
return new Sun13SerializationInstantiator(type);
}
}
else... |
diff --git a/tests/org.teiid.designer.query.ui.test/src/org/teiid/query/ui/sqleditor/component/TestDisplayNodeFactory.java b/tests/org.teiid.designer.query.ui.test/src/org/teiid/query/ui/sqleditor/component/TestDisplayNodeFactory.java
index 97e6fefe5..330308195 100644
--- a/tests/org.teiid.designer.query.ui.test/src/or... | false | true | private void initExpectedResults() {
addExpectedResult("testAggregateSymbol1", VERSION_7_7_2, "COUNT('abc')"); //$NON-NLS-1$//$NON-NLS-2$
for (ITeiidServerVersion version83 : VERSIONS_8_3) {
addExpectedResult("testAggregateSymbol1", version83, "abc('abc')"); //$NON-NLS-1$//$NON-NLS-2$... | private void initExpectedResults() {
addExpectedResult("testAggregateSymbol1", VERSION_7_7_2, "COUNT('abc')"); //$NON-NLS-1$//$NON-NLS-2$
for (ITeiidServerVersion version83 : VERSIONS_8_3) {
addExpectedResult("testAggregateSymbol1", version83, "abc('abc')"); //$NON-NLS-1$//$NON-NLS-2$... |
diff --git a/src/main/java/com/jayway/maven/plugins/android/phase08preparepackage/DexMojo.java b/src/main/java/com/jayway/maven/plugins/android/phase08preparepackage/DexMojo.java
index 241ac51e..ad47d8f9 100644
--- a/src/main/java/com/jayway/maven/plugins/android/phase08preparepackage/DexMojo.java
+++ b/src/main/java/c... | true | true | private void runDex(CommandExecutor executor, File outputFile,
File inputFile) throws MojoExecutionException {
File classesOutputDirectory = new File(project.getBuild().getDirectory(), "android-classes");
List<String> commands = new ArrayList<String>();
if (jvmArgumen... | private void runDex(CommandExecutor executor, File outputFile,
File inputFile) throws MojoExecutionException {
File classesOutputDirectory = new File(project.getBuild().getDirectory(), "android-classes");
List<String> commands = new ArrayList<String>();
if (jvmArgumen... |
diff --git a/src/main/java/de/anycook/api/UploadGraph.java b/src/main/java/de/anycook/api/UploadGraph.java
index f503bba..241a5bb 100644
--- a/src/main/java/de/anycook/api/UploadGraph.java
+++ b/src/main/java/de/anycook/api/UploadGraph.java
@@ -1,84 +1,84 @@
package de.anycook.api;
import java.io.File;
import java... | true | true | public Response uploadRecipeImage(@Context HttpServletRequest request,
@Context HttpHeaders hh,
@PathParam("type") String type){
UploadHandler upload;
Session session = Session.init(request.getSession());
switch (type) {
case "recipe":
upload = new RecipeUploader();
break;
case "user":
... | public Response uploadRecipeImage(@Context HttpServletRequest request,
@Context HttpHeaders hh,
@PathParam("type") String type){
UploadHandler upload;
Session session = Session.init(request.getSession());
switch (type) {
case "recipe":
upload = new RecipeUploader();
break;
case "user":
... |
diff --git a/db-migration/src/main/java/com/carbonfive/db/migration/ResourceMigrationResolver.java b/db-migration/src/main/java/com/carbonfive/db/migration/ResourceMigrationResolver.java
index b96d93d..cac4e25 100644
--- a/db-migration/src/main/java/com/carbonfive/db/migration/ResourceMigrationResolver.java
+++ b/db-mi... | false | true | public Set<Migration> resolve(DatabaseType dbType)
{
Set<Migration> migrations = new HashSet<Migration>();
// Find all resources in the migrations location.
String convertedMigrationsLocation = convertMigrationsLocation(migrationsLocation);
PathMatchingResourcePatternResolver p... | public Set<Migration> resolve(DatabaseType dbType)
{
Set<Migration> migrations = new HashSet<Migration>();
// Find all resources in the migrations location.
String convertedMigrationsLocation = convertMigrationsLocation(migrationsLocation);
PathMatchingResourcePatternResolver p... |
diff --git a/lib/jdomodels/src/main/java/org/sagebionetworks/repo/model/dbo/DDLUtilsImpl.java b/lib/jdomodels/src/main/java/org/sagebionetworks/repo/model/dbo/DDLUtilsImpl.java
index ebc7ded7..ff565b40 100644
--- a/lib/jdomodels/src/main/java/org/sagebionetworks/repo/model/dbo/DDLUtilsImpl.java
+++ b/lib/jdomodels/src/... | true | true | public boolean validateTableExists(TableMapping mapping) throws IOException{
String url = stackConfiguration.getRepositoryDatabaseConnectionUrl();
String schema = getSchemaFromConnectionString(url);
String sql = String.format(TABLE_EXISTS_SQL_FORMAT, mapping.getTableName(), schema);
List<Map<String, Object>> l... | public boolean validateTableExists(TableMapping mapping) throws IOException{
String url = stackConfiguration.getRepositoryDatabaseConnectionUrl();
String schema = getSchemaFromConnectionString(url);
String sql = String.format(TABLE_EXISTS_SQL_FORMAT, mapping.getTableName().toLowerCase(), schema);
List<Map<Stri... |
diff --git a/src/net/sf/mendelscan/SharedIBD.java b/src/net/sf/mendelscan/SharedIBD.java
index dd7b2f6..579d25e 100644
--- a/src/net/sf/mendelscan/SharedIBD.java
+++ b/src/net/sf/mendelscan/SharedIBD.java
@@ -1,507 +1,507 @@
/**
* @(#)SharedIBD.java
*
* Copyright (c) 2013 Daniel C. Koboldt and Washington Univers... | false | true | public SharedIBD(String[] args, HashMap<String, String> params)
{
String usage = "USAGE: java -jar MendelScan.jar sibd [FIBD] OPTIONS\n" +
"\tFIBD: The uncompressed FastIBD output file from BEAGLE\n" +
"\tOPTIONS:\n" +
"\t--ped-file\tPedigree file in 6-column tab-delimited format\n" +
"\t--markers-file\tMar... | public SharedIBD(String[] args, HashMap<String, String> params)
{
String usage = "USAGE: java -jar MendelScan.jar sibd [FIBD] OPTIONS\n" +
"\tFIBD: The uncompressed FastIBD output file from BEAGLE\n" +
"\tOPTIONS:\n" +
"\t--ped-file\tPedigree file in 6-column tab-delimited format\n" +
"\t--markers-file\tMar... |
diff --git a/src/main/com/xuechong/utils/json/JsonInterceptor.java b/src/main/com/xuechong/utils/json/JsonInterceptor.java
index 02e018d..ac66f7d 100644
--- a/src/main/com/xuechong/utils/json/JsonInterceptor.java
+++ b/src/main/com/xuechong/utils/json/JsonInterceptor.java
@@ -1,76 +1,79 @@
package com.xuechong.utils.j... | true | true | private String formatJson(ActionInvocation invocation) throws Exception {
Object action = invocation.getAction();
Map<String,String> results = new HashMap<String, String>();
for (Field field : action.getClass().getDeclaredFields()) {
JSON anno = field.getAnnotation(JSON.class);
if (anno !=null){
result... | private String formatJson(ActionInvocation invocation) throws Exception {
Object action = invocation.getAction();
Map<String,String> results = new HashMap<String, String>();
for (Field field : action.getClass().getDeclaredFields()) {
JSON anno = field.getAnnotation(JSON.class);
if (anno !=null){
result... |
diff --git a/api/src/main/java/org/openmrs/util/OpenmrsConstants.java b/api/src/main/java/org/openmrs/util/OpenmrsConstants.java
index 7daa0b31..e230fee4 100644
--- a/api/src/main/java/org/openmrs/util/OpenmrsConstants.java
+++ b/api/src/main/java/org/openmrs/util/OpenmrsConstants.java
@@ -1,1578 +1,1581 @@
/**
* Th... | false | true | public static final List<GlobalProperty> CORE_GLOBAL_PROPERTIES() {
List<GlobalProperty> props = new Vector<GlobalProperty>();
props.add(new GlobalProperty("use_patient_attribute.healthCenter", "false",
"Indicates whether or not the 'health center' attribute is shown when viewing/searching for patient... | public static final List<GlobalProperty> CORE_GLOBAL_PROPERTIES() {
List<GlobalProperty> props = new Vector<GlobalProperty>();
props.add(new GlobalProperty("use_patient_attribute.healthCenter", "false",
"Indicates whether or not the 'health center' attribute is shown when viewing/searching for patient... |
diff --git a/gist-cli/src/main/java/com/oshmidt/GistManager.java b/gist-cli/src/main/java/com/oshmidt/GistManager.java
index f723139..fa2c686 100644
--- a/gist-cli/src/main/java/com/oshmidt/GistManager.java
+++ b/gist-cli/src/main/java/com/oshmidt/GistManager.java
@@ -1,287 +1,289 @@
package com.oshmidt;
import jav... | false | true | public GistManager(String[] args) {
Options options = new Options();
options.addOption("l", true, "login");
options.addOption("p", true, "password");
options.addOption("d", false, "download gists from github");
options.addOption("show", true, "show loaded gist list");
options.addOption("download", true,
... | public GistManager(String[] args) {
Options options = new Options();
options.addOption("l", true, "login");
options.addOption("p", true, "password");
options.addOption("d", false, "download gists from github");
options.addOption("show", true, "show loaded gist list");
options.addOption("download", true,
... |
diff --git a/src/main/java/com/jayway/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java b/src/main/java/com/jayway/maven/plugins/android/phase01generatesources/GenerateSourcesMojo.java
index fdbbf3ca..af2a7c7b 100644
--- a/src/main/java/com/jayway/maven/plugins/android/phase01generatesources/Generat... | true | true | private void generateR() throws MojoExecutionException
{
getLog().debug( "Generating R file for " + project.getPackaging() );
genDirectory.mkdirs();
File[] overlayDirectories = getResourceOverlayDirectories();
if ( extractedDependenciesRes.exists() )
{
try
... | private void generateR() throws MojoExecutionException
{
getLog().debug( "Generating R file for " + project.getPackaging() );
genDirectory.mkdirs();
File[] overlayDirectories = getResourceOverlayDirectories();
if ( extractedDependenciesRes.exists() )
{
try
... |
diff --git a/src/com/mawape/aimant/utilities/AndroidServicesUtil.java b/src/com/mawape/aimant/utilities/AndroidServicesUtil.java
index 2c9980b..fbe6d33 100644
--- a/src/com/mawape/aimant/utilities/AndroidServicesUtil.java
+++ b/src/com/mawape/aimant/utilities/AndroidServicesUtil.java
@@ -1,26 +1,26 @@
package com.mawa... | true | true | public static void makePhoneCall(Context context, String phoneNumber) {
String defaultPhonePrefix = context.getResources().getString(
R.string.default_prefijo_telefono);
if (phoneNumber.startsWith(defaultPhonePrefix)) {
defaultPhonePrefix = "";
}
makePhoneCall(context, defaultPhonePrefix, phoneNumber);
... | public static void makePhoneCall(Context context, String phoneNumber) {
String defaultPhonePrefix = context.getResources().getString(
R.string.default_prefijo_telefono);
if (phoneNumber.startsWith("4") || phoneNumber.startsWith("5") || phoneNumber.startsWith("6")) {
defaultPhonePrefix = "";
}
makePhoneC... |
diff --git a/drools-compiler/src/main/java/org/drools/rule/builder/RuleBuilder.java b/drools-compiler/src/main/java/org/drools/rule/builder/RuleBuilder.java
index 8e89900e62..01f3b2a732 100644
--- a/drools-compiler/src/main/java/org/drools/rule/builder/RuleBuilder.java
+++ b/drools-compiler/src/main/java/org/drools/rul... | true | true | private void buildTimer(Rule rule, String timerString, RuleBuildContext context) {
if( timerString.indexOf( '(' ) >=0 ) {
timerString = timerString.substring( timerString.indexOf( '(' )+1, timerString.lastIndexOf( ')' ) ).trim();
}
int colonPos = timerString.indexOf( ":"... | private void buildTimer(Rule rule, String timerString, RuleBuildContext context) {
if( timerString.indexOf( '(' ) >=0 ) {
timerString = timerString.substring( timerString.indexOf( '(' )+1, timerString.lastIndexOf( ')' ) ).trim();
}
int colonPos = timerString.indexOf( ":"... |
diff --git a/src/main/java/org/cloudifysource/quality/iTests/framework/utils/RecipeInstaller.java b/src/main/java/org/cloudifysource/quality/iTests/framework/utils/RecipeInstaller.java
index 006ab38e..e7849cff 100644
--- a/src/main/java/org/cloudifysource/quality/iTests/framework/utils/RecipeInstaller.java
+++ b/src/ma... | false | true | public String install() throws IOException, InterruptedException {
String installCommand = null;
String excpectedResult = null;
String recipeName = null;
if (this instanceof ServiceInstaller) {
installCommand = "install-service";
recipeName = null; // TODO change to ((ServiceInstaller)this).getService... | public String install() throws IOException, InterruptedException {
String installCommand = null;
String excpectedResult = null;
String recipeName = null;
if (this instanceof ServiceInstaller) {
installCommand = "install-service";
recipeName = ((ServiceInstaller)this).getServiceName();
excpectedResu... |
diff --git a/src/plugins/WebOfTrust/XMLTransformer.java b/src/plugins/WebOfTrust/XMLTransformer.java
index 3ede3873..56161d2b 100644
--- a/src/plugins/WebOfTrust/XMLTransformer.java
+++ b/src/plugins/WebOfTrust/XMLTransformer.java
@@ -1,591 +1,593 @@
/* This code is part of WoT, a plugin for Freenet. It is distributed... | false | true | public void importIdentity(FreenetURI identityURI, InputStream xmlInputStream) throws Exception {
final class TrustListEntry {
final FreenetURI mTrusteeURI;
final byte mTrustValue;
final String mTrustComment;
public TrustListEntry(FreenetURI myTrusteeURI, byte myTrustValue, String myTrustComment) {
... | public void importIdentity(FreenetURI identityURI, InputStream xmlInputStream) throws Exception {
final class TrustListEntry {
final FreenetURI mTrusteeURI;
final byte mTrustValue;
final String mTrustComment;
public TrustListEntry(FreenetURI myTrusteeURI, byte myTrustValue, String myTrustComment) {
... |
diff --git a/core/src/java/liquibase/change/CreateTableChange.java b/core/src/java/liquibase/change/CreateTableChange.java
index 4fac3a9b..772812e3 100644
--- a/core/src/java/liquibase/change/CreateTableChange.java
+++ b/core/src/java/liquibase/change/CreateTableChange.java
@@ -1,178 +1,182 @@
package liquibase.change... | false | true | public SqlStatement[] generateStatements(Database database) throws UnsupportedChangeException {
CreateTableStatement statement = new CreateTableStatement(getSchemaName() == null?database.getDefaultSchemaName():getSchemaName(), getTableName());
for (ColumnConfig column : getColumns()) {
... | public SqlStatement[] generateStatements(Database database) throws UnsupportedChangeException {
String schemaName = getSchemaName() == null ? database.getDefaultSchemaName() : getSchemaName();
CreateTableStatement statement = new CreateTableStatement(schemaName, getTableName());
for (Column... |
diff --git a/ImportPlugin/src/org/gephi/io/importer/plugin/file/ImporterGEXF2.java b/ImportPlugin/src/org/gephi/io/importer/plugin/file/ImporterGEXF2.java
index 19e87819e..a41402553 100644
--- a/ImportPlugin/src/org/gephi/io/importer/plugin/file/ImporterGEXF2.java
+++ b/ImportPlugin/src/org/gephi/io/importer/plugin/fil... | false | true | private void readAttribute(XMLStreamReader reader, String classAtt, String typeAtt) throws Exception {
String id = "";
String type = "";
String title = "";
String defaultStr = "";
for (int i = 0; i < reader.getAttributeCount(); i++) {
String attName = reader.getAt... | private void readAttribute(XMLStreamReader reader, String classAtt, String typeAtt) throws Exception {
String id = "";
String type = "";
String title = "";
String defaultStr = "";
for (int i = 0; i < reader.getAttributeCount(); i++) {
String attName = reader.getAt... |
diff --git a/src/org/eclipse/cdt/internal/core/CBuilder.java b/src/org/eclipse/cdt/internal/core/CBuilder.java
index 6f167ea20..a9cdc501b 100644
--- a/src/org/eclipse/cdt/internal/core/CBuilder.java
+++ b/src/org/eclipse/cdt/internal/core/CBuilder.java
@@ -1,275 +1,273 @@
package org.eclipse.cdt.internal.core;
/*
... | false | true | private boolean invokeMake(boolean fullBuild, IProgressMonitor monitor) {
boolean isClean = false;
boolean fatalBuild = false;
boolean isCanceled = false;
IProject currProject = getProject();
SubProgressMonitor subMonitor = null;
if (monitor == null) {
monitor = new NullProgressMonitor();
}
monitor... | private boolean invokeMake(boolean fullBuild, IProgressMonitor monitor) {
boolean isClean = false;
boolean isCanceled = false;
IProject currProject = getProject();
SubProgressMonitor subMonitor = null;
if (monitor == null) {
monitor = new NullProgressMonitor();
}
monitor.beginTask("Invoking the C Bui... |
diff --git a/optaplanner-benchmark/src/main/java/org/optaplanner/benchmark/impl/aggregator/BenchmarkAggregator.java b/optaplanner-benchmark/src/main/java/org/optaplanner/benchmark/impl/aggregator/BenchmarkAggregator.java
index 54e15703d..536f8c731 100644
--- a/optaplanner-benchmark/src/main/java/org/optaplanner/benchma... | true | true | public void aggregate(List<SingleBenchmarkResult> singleBenchmarkResultList) {
if (benchmarkDirectory == null) {
throw new IllegalArgumentException("The benchmarkDirectory (" + benchmarkDirectory + ") must not be null.");
}
if (!benchmarkDirectory.exists()) {
throw ne... | public void aggregate(List<SingleBenchmarkResult> singleBenchmarkResultList) {
if (benchmarkDirectory == null) {
throw new IllegalArgumentException("The benchmarkDirectory (" + benchmarkDirectory + ") must not be null.");
}
if (!benchmarkDirectory.exists()) {
throw ne... |
diff --git a/src/com/csipsimple/wizards/WizardUtils.java b/src/com/csipsimple/wizards/WizardUtils.java
index c528ff28..d166d4cb 100644
--- a/src/com/csipsimple/wizards/WizardUtils.java
+++ b/src/com/csipsimple/wizards/WizardUtils.java
@@ -1,498 +1,498 @@
/**
* Copyright (C) 2010 Regis Montoya (aka r3gis - www.r3gis.... | false | true | private static void initWizards() {
WIZARDS_DICT = new HashMap<String, WizardInfo>();
//Generic
WIZARDS_DICT.put("BASIC", new WizardInfo("BASIC", "Basic",
R.drawable.ic_wizard_basic, 50,
new Locale[] {}, true, false,
Basic.class));
WIZARDS_DICT.put("ADVANCED", new WizardInfo("ADVANCED", "Adva... | private static void initWizards() {
WIZARDS_DICT = new HashMap<String, WizardInfo>();
//Generic
WIZARDS_DICT.put("BASIC", new WizardInfo("BASIC", "Basic",
R.drawable.ic_wizard_basic, 50,
new Locale[] {}, true, false,
Basic.class));
WIZARDS_DICT.put("ADVANCED", new WizardInfo("ADVANCED", "Adva... |
diff --git a/src/org/python/core/PyUnicode.java b/src/org/python/core/PyUnicode.java
index bece37bd..fea17978 100644
--- a/src/org/python/core/PyUnicode.java
+++ b/src/org/python/core/PyUnicode.java
@@ -1,1280 +1,1283 @@
package org.python.core;
import java.util.ArrayList;
import java.util.Collection;
import java... | true | true | final static PyObject unicode_new(PyNewWrapper new_, boolean init, PyType subtype,
PyObject[] args, String[] keywords) {
ArgParser ap = new ArgParser("unicode",
args,
keywords,
new String[]{"string",
"encoding",
"errors"
... | final static PyObject unicode_new(PyNewWrapper new_, boolean init, PyType subtype,
PyObject[] args, String[] keywords) {
ArgParser ap = new ArgParser("unicode",
args,
keywords,
new String[]{"string",
"encoding",
"errors"
... |
diff --git a/ccw.core/src/java/ccw/editors/clojure/EvaluateTopLevelSExpressionAction.java b/ccw.core/src/java/ccw/editors/clojure/EvaluateTopLevelSExpressionAction.java
index f2ed121c..9d4fc109 100644
--- a/ccw.core/src/java/ccw/editors/clojure/EvaluateTopLevelSExpressionAction.java
+++ b/ccw.core/src/java/ccw/editors/... | true | true | public void run() {
String selectedText = editor.getSelectedText();
if (selectedText==null || selectedText.trim().equals("")) {
selectedText = editor.getCurrentOrNextTopLevelSExpression();
}
REPLView repl = REPLView.activeREPL.get();
if (repl != null && !repl.isDisposed()) {
String textToEvaluate =... | public void run() {
String selectedText = editor.getSelectedText();
if (selectedText==null || selectedText.trim().equals("")) {
selectedText = editor.getCurrentOrNextTopLevelSExpression();
}
REPLView repl = REPLView.activeREPL.get();
if (repl != null && !repl.isDisposed()) {
String textToEvaluate =... |
diff --git a/java/code/applications/src/org/bodytrack/applications/airbot/CommandLineAirBot.java b/java/code/applications/src/org/bodytrack/applications/airbot/CommandLineAirBot.java
index d34dcc7..81800f9 100644
--- a/java/code/applications/src/org/bodytrack/applications/airbot/CommandLineAirBot.java
+++ b/java/code/a... | false | true | public void run()
{
if (isConnected())
{
final Integer millisToWait = readInteger("Milliseconds to wait between data sample fetches: ");
if (millisToWait == null || millisToWait < 0)
{
println("Invalid dura... | public void run()
{
if (isConnected())
{
final Integer millisToWait = readInteger("Milliseconds to wait between data sample fetches: ");
if (millisToWait == null || millisToWait < 0)
{
println("Invalid dura... |
diff --git a/containers/sip-servlets-as7/src/main/java/org/mobicents/servlet/sip/catalina/SipStandardService.java b/containers/sip-servlets-as7/src/main/java/org/mobicents/servlet/sip/catalina/SipStandardService.java
index 89b31df7f..f67063e6b 100644
--- a/containers/sip-servlets-as7/src/main/java/org/mobicents/servlet... | true | true | protected void initSipStack() throws LifecycleException {
try {
if(logger.isDebugEnabled()) {
logger.debug("Initializing SIP stack");
}
// This simply puts HTTP and SSL port numbers in JVM properties menat to be read by jsip ha when sending heart beats with Node description.
initializeSyst... | protected void initSipStack() throws LifecycleException {
try {
if(logger.isDebugEnabled()) {
logger.debug("Initializing SIP stack");
}
// This simply puts HTTP and SSL port numbers in JVM properties menat to be read by jsip ha when sending heart beats with Node description.
initializeSyst... |
diff --git a/src/commandproxy/launcher/LauncherWindows.java b/src/commandproxy/launcher/LauncherWindows.java
index c9be8ed..6747b0d 100644
--- a/src/commandproxy/launcher/LauncherWindows.java
+++ b/src/commandproxy/launcher/LauncherWindows.java
@@ -1,44 +1,50 @@
package commandproxy.launcher;
import java.io.File;
... | true | true | public static Process exec( Vector<String> args ) throws IOException{
if( !AIR.exists() ){
Main.fail( "Air-Directory doesn't exist", E_AIR_APP_NOT_FOUND );
}
// We really need this publisher-id file
// to be able to run this!
if( !PUBLISHER_ID.exists() ){
Main.generatePubID( PUBLISHER_ID );
}
... | public static Process exec( Vector<String> args ) throws IOException{
if( !AIR.exists() ){
Main.fail( "Air-Directory doesn't exist", E_AIR_APP_NOT_FOUND );
}
// We really need this publisher-id file
// to be able to run this!
// if( !PUBLISHER_ID.exists() ){
// Main.generatePubID( PUBLISHER_ID );
/... |
diff --git a/components/bio-formats/src/loci/formats/out/TiffWriter.java b/components/bio-formats/src/loci/formats/out/TiffWriter.java
index 1cffce7f9..c7dfce2f9 100644
--- a/components/bio-formats/src/loci/formats/out/TiffWriter.java
+++ b/components/bio-formats/src/loci/formats/out/TiffWriter.java
@@ -1,414 +1,414 @@... | true | true | private int prepareToWriteImage(
int no, byte[] buf, IFD ifd, int x, int y, int w, int h)
throws IOException, FormatException {
MetadataRetrieve retrieve = getMetadataRetrieve();
Boolean bigEndian = retrieve.getPixelsBinDataBigEndian(series, 0);
boolean littleEndian = bigEndian == null ?
fal... | private int prepareToWriteImage(
int no, byte[] buf, IFD ifd, int x, int y, int w, int h)
throws IOException, FormatException {
MetadataRetrieve retrieve = getMetadataRetrieve();
Boolean bigEndian = retrieve.getPixelsBinDataBigEndian(series, 0);
boolean littleEndian = bigEndian == null ?
fal... |
diff --git a/util/src/main/uk/ac/starlink/util/DataSource.java b/util/src/main/uk/ac/starlink/util/DataSource.java
index 9de5bc1b4..82fdec514 100644
--- a/util/src/main/uk/ac/starlink/util/DataSource.java
+++ b/util/src/main/uk/ac/starlink/util/DataSource.java
@@ -1,490 +1,490 @@
package uk.ac.starlink.util;
import... | false | true | public synchronized int getMagic( byte[] buffer ) throws IOException {
/* See how many bytes have been requested. */
int nReq = buffer.length;
int nGot;
/* Handle the case in which we need to read from the stream. */
if ( nReq > magic.length ) {
/* Get a new st... | public synchronized int getMagic( byte[] buffer ) throws IOException {
/* See how many bytes have been requested. */
int nReq = Math.min( buffer.length, eofPos );
int nGot;
/* Handle the case in which we need to read from the stream. */
if ( nReq > magic.length ) {
... |
diff --git a/src/main/java/org/grouplens/ratingvalue/RescaledRatingDao.java b/src/main/java/org/grouplens/ratingvalue/RescaledRatingDao.java
index b488008..cfc3620 100644
--- a/src/main/java/org/grouplens/ratingvalue/RescaledRatingDao.java
+++ b/src/main/java/org/grouplens/ratingvalue/RescaledRatingDao.java
@@ -1,183 +... | false | true | public Rating rescale(Rating rating) {
if (rating.getPreference() == null) {
return rating;
}
double r1 = rating.getPreference().getValue();
double r2 = newDomain.getMaximum();
for (int i = 0; i < thresholds.length; i++) {
if (r1 < thresholds[i]) {
... | public Rating rescale(Rating rating) {
if (rating.getPreference() == null) {
return rating;
}
double r1 = rating.getPreference().getValue();
double r2 = newDomain.getMaximum();
for (int i = 0; i < thresholds.length; i++) {
if (r1 < thresholds[i] - 0.00... |
diff --git a/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/kmelia/servlets/KmeliaRequestRouter.java b/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/kmelia/servlets/KmeliaRequestRouter.java
index 6ddc053ee..1530ea86d 100644
--- a/kmelia/kmelia-war/src/main/java/com/stratelia/webactiv/kmelia/servlets/Km... | false | true | public String getDestination(String function, KmeliaSessionController kmelia,
HttpServletRequest request) {
SilverTrace.info("kmelia", "KmeliaRequestRouter.getDestination()", "root.MSG_GEN_PARAM_VALUE",
"function = " + function);
String destination = "";
String rootDestination = "/kmelia... | public String getDestination(String function, KmeliaSessionController kmelia,
HttpServletRequest request) {
SilverTrace.info("kmelia", "KmeliaRequestRouter.getDestination()", "root.MSG_GEN_PARAM_VALUE",
"function = " + function);
String destination = "";
String rootDestination = "/kmelia... |
diff --git a/hk2/class-model/src/test/java/org/glassfish/hk2/classmodel/reflect/test/ClassModelTestsUtils.java b/hk2/class-model/src/test/java/org/glassfish/hk2/classmodel/reflect/test/ClassModelTestsUtils.java
index 204480aaa..3b3d3c9d2 100644
--- a/hk2/class-model/src/test/java/org/glassfish/hk2/classmodel/reflect/te... | true | true | public static Types getTypes() throws IOException, InterruptedException {
synchronized(instance) {
if (types == null) {
File userDir = new File(System.getProperty("user.dir"));
File modelDir = new File(userDir, "target" + File.separator + "test-classes");
... | public static Types getTypes() throws IOException, InterruptedException {
synchronized(instance) {
if (types == null) {
File userDir = new File(System.getProperty("user.dir"));
File modelDir = new File(userDir, "target" + File.separator + "test-classes");
... |
diff --git a/modules/org.pathvisio.gui/src/com/jroller/completer/CompleterFilterWithWindow.java b/modules/org.pathvisio.gui/src/com/jroller/completer/CompleterFilterWithWindow.java
index 18407547..90355a07 100644
--- a/modules/org.pathvisio.gui/src/com/jroller/completer/CompleterFilterWithWindow.java
+++ b/modules/org.... | true | true | public void keyPressed(KeyEvent e)
{
if (!((e.getKeyCode() == KeyEvent.VK_DOWN) ||
(e.getKeyCode() == KeyEvent.VK_UP) ||
((e.getKeyCode() == KeyEvent.VK_PAGE_DOWN) && (isFilterWindowVisible())) ||
((e.getKeyCode() == KeyEvent.VK_PAGE_UP) && (isFilterWindowVisible())) ||
(e.getKeyCode() == Key... | public void keyPressed(KeyEvent e)
{
if (!((e.getKeyCode() == KeyEvent.VK_DOWN) ||
(e.getKeyCode() == KeyEvent.VK_UP) ||
((e.getKeyCode() == KeyEvent.VK_PAGE_DOWN) && (isFilterWindowVisible())) ||
((e.getKeyCode() == KeyEvent.VK_PAGE_UP) && (isFilterWindowVisible())) ))
return;
if ((e.getK... |
diff --git a/backend/src/com/mymed/model/data/user/MUserBean.java b/backend/src/com/mymed/model/data/user/MUserBean.java
index 5f541715f..da4e80dfe 100644
--- a/backend/src/com/mymed/model/data/user/MUserBean.java
+++ b/backend/src/com/mymed/model/data/user/MUserBean.java
@@ -1,491 +1,491 @@
package com.mymed.model.da... | false | true | public boolean equals(final Object object) {
boolean equal = false;
if (this == object) {
equal = true;
} else if (object instanceof MUserBean) {
final MUserBean comparable = (MUserBean) object;
/*
* We compare only a subsets of the field to check that two MUserBean
* ob... | public boolean equals(final Object object) {
boolean equal = false;
if (this == object) {
equal = true;
} else if (object instanceof MUserBean) {
final MUserBean comparable = (MUserBean) object;
/*
* We compare only a subsets of the field to check that two MUserBean
* ob... |
diff --git a/src/main/java/org/logblock/Commands.java b/src/main/java/org/logblock/Commands.java
index 6a2161d..0383183 100644
--- a/src/main/java/org/logblock/Commands.java
+++ b/src/main/java/org/logblock/Commands.java
@@ -1,100 +1,100 @@
package org.logblock;
import java.lang.annotation.ElementType;
import java... | true | true | public boolean onCommand(CommandSender sender, Command command, String label, String[] args)
{
Method method = commandMap.get(label);
if (method == null)
{
AnnotatedCommand annotation = method.getAnnotation(AnnotatedCommand.class);
if (!sender.hasPermission("logbl... | public boolean onCommand(CommandSender sender, Command command, String label, String[] args)
{
Method method = commandMap.get(label);
if (method != null)
{
AnnotatedCommand annotation = method.getAnnotation(AnnotatedCommand.class);
if (!sender.hasPermission("logbl... |
diff --git a/src/org/nutz/mvc/view/ServerRedirectView.java b/src/org/nutz/mvc/view/ServerRedirectView.java
index 97ffba045..0c5520010 100644
--- a/src/org/nutz/mvc/view/ServerRedirectView.java
+++ b/src/org/nutz/mvc/view/ServerRedirectView.java
@@ -1,50 +1,41 @@
package org.nutz.mvc.view;
import javax.servlet.http.... | true | true | public void render(HttpServletRequest req, HttpServletResponse resp, Object obj)
throws Exception {
String path = evalPath(req, obj);
// Another site
if (path.startsWith("http://") || path.startsWith("https://")) {}
// Absolute path, add the context path for it
else if (path.length() > 0 && path.charAt(... | public void render(HttpServletRequest req, HttpServletResponse resp, Object obj)
throws Exception {
String path = evalPath(req, obj);
// Another site
if (path.startsWith("http://") || path.startsWith("https://")) {}
// Absolute path, add the context path for it
else if (path.length() > 0 && path.charAt(... |
diff --git a/source/com/mucommander/auth/Credentials.java b/source/com/mucommander/auth/Credentials.java
index 535faf7f..e9e2947e 100644
--- a/source/com/mucommander/auth/Credentials.java
+++ b/source/com/mucommander/auth/Credentials.java
@@ -1,117 +1,119 @@
package com.mucommander.auth;
import com.mucommander.bo... | true | true | public boolean equals(Object o) {
// Empty Credentials and null are equivalent
if(o==null)
return isEmpty();
if(!(o instanceof Credentials))
return false;
Credentials credentials = (Credentials)o;
return credentials.login.equals(this.login) && crede... | public boolean equals(Object o) {
// Empty Credentials and null are equivalent
if(o==null)
return isEmpty();
if(!(o instanceof Credentials))
return false;
Credentials credentials = (Credentials)o;
// Do not test password, only login so that if passw... |
diff --git a/src/aether/cluster/ClusterTableRecord.java b/src/aether/cluster/ClusterTableRecord.java
index b016de4..9ea14ce 100644
--- a/src/aether/cluster/ClusterTableRecord.java
+++ b/src/aether/cluster/ClusterTableRecord.java
@@ -1,76 +1,77 @@
/*
* To change this template, choose Tools | Templates
* and open th... | true | true | public String toDelimitedString () {
Integer id = nodeIdentifier;
String deRec = id.toString() + "%" + nodeIp.toString();
return deRec;
}
| public String toDelimitedString () {
Integer id = nodeIdentifier;
String deRec = id.toString() + "%" +
nodeIp.toString().replaceFirst(".*/", "");
return deRec;
}
|
diff --git a/src/MetaEdit.java b/src/MetaEdit.java
index 2a46e2e..abcdbf1 100644
--- a/src/MetaEdit.java
+++ b/src/MetaEdit.java
@@ -1,185 +1,186 @@
import javax.imageio.ImageIO;
import javax.swing.*;
import com.beaglebuddy.mp3.MP3;
import com.beaglebuddy.mp3.enums.PictureType;
import java.awt.*;
import java.awt.... | true | true | public static void main (String args[]) {
try {UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());}
catch (ClassNotFoundException e) {}
catch (InstantiationException e) {}
catch (IllegalAccessException e) {}
catch (UnsupportedLookAndFeelException e) {}
frame1 = new JFrame("Meta Edit");
... | public static void main (String args[]) {
try {UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());}
catch (ClassNotFoundException e) {}
catch (InstantiationException e) {}
catch (IllegalAccessException e) {}
catch (UnsupportedLookAndFeelException e) {}
frame1 = new JFrame("Meta Edit");
... |
diff --git a/org.nelfin.othello/src/iago/players/NegamaxPlayer.java b/org.nelfin.othello/src/iago/players/NegamaxPlayer.java
index b702673..f6125eb 100644
--- a/org.nelfin.othello/src/iago/players/NegamaxPlayer.java
+++ b/org.nelfin.othello/src/iago/players/NegamaxPlayer.java
@@ -1,135 +1,135 @@
package iago.players;
... | false | true | private double negamax(Board board, PlayerType player,
int colour, double alpha, double beta, int depth, int plies) {
if ((depth <= 0) || board.isVictory()) {
return colour * features.score(board, player);
}
PlayerType nextPlayer = player.getOpponent();
... | private double negamax(Board board, PlayerType player,
int colour, double alpha, double beta, int depth, int plies) {
if ((depth <= 0) || board.isVictory()) {
return colour * features.score(board, player);
}
PlayerType nextPlayer = player.getOpponent();
... |
diff --git a/enough-polish-j2me/source/src/de/enough/polish/ui/Container.java b/enough-polish-j2me/source/src/de/enough/polish/ui/Container.java
index 8cc4151..3a2dbb4 100644
--- a/enough-polish-j2me/source/src/de/enough/polish/ui/Container.java
+++ b/enough-polish-j2me/source/src/de/enough/polish/ui/Container.java
@@ ... | true | true | public void focusChild( int index, Item item, int direction, boolean force ) {
//#debug
System.out.println("Container (" + this + "): Focusing child item " + index + " (" + item + "), isInitialized=" + this.isInitialized + ", autoFocusEnabled=" + this.autoFocusEnabled );
//System.out.println("focus: yOffset=" + ... | public void focusChild( int index, Item item, int direction, boolean force ) {
//#debug
System.out.println("Container (" + this + "): Focusing child item " + index + " (" + item + "), isInitialized=" + this.isInitialized + ", autoFocusEnabled=" + this.autoFocusEnabled );
//System.out.println("focus: yOffset=" + ... |
diff --git a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/SarosUI.java b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/SarosUI.java
index 4de7deea1..2dbf77753 100644
--- a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/SarosUI.java
+++ b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/SarosUI.java
@@ -1,350 +... | true | true | public void performPermissionChange(final User user,
final Permission newPermission) {
ProgressMonitorDialog dialog = new ProgressMonitorDialog(EditorAPI
.getAWorkbenchWindow().getShell());
try {
dialog.run(true, true, new IRunnableWithProgress() {
p... | public void performPermissionChange(final User user,
final Permission newPermission) {
ProgressMonitorDialog dialog = new ProgressMonitorDialog(EditorAPI
.getAWorkbenchWindow().getShell());
try {
dialog.run(true, true, new IRunnableWithProgress() {
p... |
diff --git a/src/org/jaudiotagger/tag/TagOptionSingleton.java b/src/org/jaudiotagger/tag/TagOptionSingleton.java
index 9f58ddb3..7d50ac76 100644
--- a/src/org/jaudiotagger/tag/TagOptionSingleton.java
+++ b/src/org/jaudiotagger/tag/TagOptionSingleton.java
@@ -1,1375 +1,1376 @@
/**
* @author : Paul Taylor
* @autho... | true | true | public void setToDefault()
{
keywordMap = new HashMap();
compositeMatchOverwrite = false;
endWordDelimiterList = new LinkedList();
filenameDelimiterList = new LinkedList();
filenameTagSave = false;
id3v1Save = true;
id3v1SaveAlbum = true;
id3v1Sav... | public void setToDefault()
{
keywordMap = new HashMap();
compositeMatchOverwrite = false;
endWordDelimiterList = new LinkedList();
filenameDelimiterList = new LinkedList();
filenameTagSave = false;
id3v1Save = true;
id3v1SaveAlbum = true;
id3v1Sav... |
diff --git a/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java b/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java
index 2eb197c1ac..05dbc38d63 100644
--- a/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java
+++ b/drools-analytics/src/test/java/org/drools/analy... | true | true | public void testAnalyzer() throws Exception {
Analyzer anal = new Analyzer();
DrlParser p = new DrlParser();
InputStreamReader reader = new InputStreamReader(this.getClass().getResourceAsStream("Misc3.drl"));
PackageDescr pkg = p.parse(reader);
assertFalse(p.hasErrors());
anal.addPackageDescr(pkg);
ana... | public void testAnalyzer() throws Exception {
Analyzer anal = new Analyzer();
DrlParser p = new DrlParser();
InputStreamReader reader = new InputStreamReader(this.getClass().getResourceAsStream("Misc3.drl"));
PackageDescr pkg = p.parse(reader);
assertFalse(p.hasErrors());
anal.addPackageDescr(pkg);
ana... |
diff --git a/src/crawl/M1905Crawler.java b/src/crawl/M1905Crawler.java
index a46d0f5..538a35f 100644
--- a/src/crawl/M1905Crawler.java
+++ b/src/crawl/M1905Crawler.java
@@ -1,160 +1,160 @@
package crawl;
import java.io.IOException;
import java.util.ArrayList;
import model.Movie_Info;
import org.jsoup.Jsoup... | false | true | protected int crawlMovies(int id, String sUrl){
Document doc = null;
try {
doc = Jsoup.connect(sUrl)
.userAgent(AGENT).timeout(TIME_OUT).post();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if(doc == null){
return 0;
}
//finding movies
try {
... | protected int crawlMovies(int id, String sUrl){
Document doc = null;
try {
doc = Jsoup.connect(sUrl)
.userAgent(AGENT).timeout(TIME_OUT).post();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if(doc == null){
return 0;
}
//finding movies
try {
... |
diff --git a/h2/src/main/org/h2/command/ddl/AlterTableAddConstraint.java b/h2/src/main/org/h2/command/ddl/AlterTableAddConstraint.java
index 5c8f4d242..455a785cf 100644
--- a/h2/src/main/org/h2/command/ddl/AlterTableAddConstraint.java
+++ b/h2/src/main/org/h2/command/ddl/AlterTableAddConstraint.java
@@ -1,399 +1,400 @@... | true | true | private int tryUpdate() {
if (!transactional) {
session.commit(true);
}
Database db = session.getDatabase();
Table table = getSchema().getTableOrView(session, tableName);
if (getSchema().findConstraint(session, constraintName) != null) {
if (ifNotExist... | private int tryUpdate() {
if (!transactional) {
session.commit(true);
}
Database db = session.getDatabase();
Table table = getSchema().getTableOrView(session, tableName);
if (getSchema().findConstraint(session, constraintName) != null) {
if (ifNotExist... |
diff --git a/src/Pathfinding/Pathfinder.java b/src/Pathfinding/Pathfinder.java
index 0449b72..fc8050d 100644
--- a/src/Pathfinding/Pathfinder.java
+++ b/src/Pathfinding/Pathfinder.java
@@ -1,542 +1,542 @@
package Pathfinding;
import Crane.Crane;
import Helpers.Vector3f;
import Parkinglot.Parkinglot;
import java.... | false | true | public static void generateArea() throws Exception{
Nodes = new Node[300];
parkinglots = new Parkinglot[200];
List<Path> pathList = new ArrayList<>();
// helpers
final float halfPathWidth = pathWidth/2;
final float mainRoadWidth = 4*pathWidth;
final f... | public static void generateArea() throws Exception{
Nodes = new Node[300];
parkinglots = new Parkinglot[200];
List<Path> pathList = new ArrayList<>();
// helpers
final float halfPathWidth = pathWidth/2;
final float mainRoadWidth = 4*pathWidth;
final f... |
diff --git a/src/main/java/de/cosmocode/palava/jobs/session/dump.java b/src/main/java/de/cosmocode/palava/jobs/session/dump.java
index 86dc506..c950247 100644
--- a/src/main/java/de/cosmocode/palava/jobs/session/dump.java
+++ b/src/main/java/de/cosmocode/palava/jobs/session/dump.java
@@ -1,56 +1,56 @@
/**
* Copyrigh... | true | true | public void execute(IpcCall call, Map<String, Object> result) throws IpcCommandExecutionException {
final MapRenderer renderer = provider.get();
final IpcSession session = call.getConnection().getSession();
renderer.value(session, Rendering.maxLevel());
final Map<String, Object> map ... | public void execute(IpcCall call, Map<String, Object> result) throws IpcCommandExecutionException {
final MapRenderer renderer = provider.get();
final IpcSession session = call.getConnection().getSession();
renderer.value((Object) session);
final Map<String, Object> map = renderer.bu... |
diff --git a/prov/src/test/java/org/bouncycastle/jce/provider/test/ImplicitlyCaTest.java b/prov/src/test/java/org/bouncycastle/jce/provider/test/ImplicitlyCaTest.java
index 153a78aaf..fa90108e5 100644
--- a/prov/src/test/java/org/bouncycastle/jce/provider/test/ImplicitlyCaTest.java
+++ b/prov/src/test/java/org/bouncyca... | true | true | private void testKeyFactory()
throws Exception
{
KeyPairGenerator g = KeyPairGenerator.getInstance("ECDSA", "BC");
ECCurve curve = new ECCurve.Fp(
new BigInteger("883423532389192164791648750360308885314476597252960362792450860609699839"), // q
new BigInteger("7ff... | private void testKeyFactory()
throws Exception
{
KeyPairGenerator g = KeyPairGenerator.getInstance("ECDSA", "BC");
ECCurve curve = new ECCurve.Fp(
new BigInteger("883423532389192164791648750360308885314476597252960362792450860609699839"), // q
new BigInteger("7ff... |
diff --git a/src/main/java/org/dynjs/runtime/interp/BasicInterpretingVisitor.java b/src/main/java/org/dynjs/runtime/interp/BasicInterpretingVisitor.java
index abf15e7e..b7ca4c9c 100644
--- a/src/main/java/org/dynjs/runtime/interp/BasicInterpretingVisitor.java
+++ b/src/main/java/org/dynjs/runtime/interp/BasicInterpreti... | false | true | public void visit(ExecutionContext context, MultiplicativeExpression expr, boolean strict) {
expr.getLhs().accept(context, this, strict);
Number lval = Types.toNumber(context, getValue(context, pop()));
expr.getRhs().accept(context, this, strict);
Number rval = Types.toNumber(contex... | public void visit(ExecutionContext context, MultiplicativeExpression expr, boolean strict) {
expr.getLhs().accept(context, this, strict);
Number lval = Types.toNumber(context, getValue(context, pop()));
expr.getRhs().accept(context, this, strict);
Number rval = Types.toNumber(contex... |
diff --git a/src/main/java/org/broadleafcommerce/vendor/paypal/web/controller/BroadleafPayPalController.java b/src/main/java/org/broadleafcommerce/vendor/paypal/web/controller/BroadleafPayPalController.java
index f9b08b6..d59ab62 100644
--- a/src/main/java/org/broadleafcommerce/vendor/paypal/web/controller/BroadleafPay... | true | true | public String paypalProcess(HttpServletRequest request, HttpServletResponse response, Model model,
@RequestParam String token,
@RequestParam("PayerID") String payerID) throws CheckoutException, PricingException {
Order cart = CartSt... | public String paypalProcess(HttpServletRequest request, HttpServletResponse response, Model model,
@RequestParam String token,
@RequestParam("PayerID") String payerID) throws CheckoutException, PricingException {
Order cart = CartSt... |
diff --git a/src/main/java/com/hyphenated/card/controller/PlayerController.java b/src/main/java/com/hyphenated/card/controller/PlayerController.java
index 7eac140..24a60ba 100644
--- a/src/main/java/com/hyphenated/card/controller/PlayerController.java
+++ b/src/main/java/com/hyphenated/card/controller/PlayerController.... | true | true | public @ResponseBody Map<String,? extends Object> getPlayerStatus(@RequestParam long gameId, @RequestParam String playerId){
Game game = gameService.getGameById(gameId, false);
Player player = playerActionService.getPlayerById(playerId);
Map<String,Object> results = new HashMap<String, Object>();
//Get the ... | public @ResponseBody Map<String,? extends Object> getPlayerStatus(@RequestParam long gameId, @RequestParam String playerId){
Game game = gameService.getGameById(gameId, false);
Player player = playerActionService.getPlayerById(playerId);
Map<String,Object> results = new HashMap<String, Object>();
//Get the ... |
diff --git a/src/nl/giantit/minecraft/GiantShop/GiantShop.java b/src/nl/giantit/minecraft/GiantShop/GiantShop.java
index 5cd9b73..5f08c37 100644
--- a/src/nl/giantit/minecraft/GiantShop/GiantShop.java
+++ b/src/nl/giantit/minecraft/GiantShop/GiantShop.java
@@ -1,330 +1,331 @@
package nl.giantit.minecraft.GiantShop;
... | true | true | public void onEnable() {
Server = this.getServer();
this.name = getDescription().getName();
this.dir = getDataFolder().toString();
File configFile = new File(getDataFolder(), "conf.yml");
if(!configFile.exists()) {
getDataFolder().mkdir();
getDataFolder().setWritable(true);
getDataFolder().set... | public void onEnable() {
Server = this.getServer();
this.name = getDescription().getName();
this.dir = getDataFolder().toString();
File configFile = new File(getDataFolder(), "conf.yml");
if(!configFile.exists()) {
getDataFolder().mkdir();
getDataFolder().setWritable(true);
getDataFolder().set... |
diff --git a/org.eclipse.b3.aggregator.engine/src/org/eclipse/b3/aggregator/engine/CategoriesGenerator.java b/org.eclipse.b3.aggregator.engine/src/org/eclipse/b3/aggregator/engine/CategoriesGenerator.java
index 8a2b97ab..7ba85770 100644
--- a/org.eclipse.b3.aggregator.engine/src/org/eclipse/b3/aggregator/engine/Categor... | true | true | private List<InstallableUnit> normalizeCategories(List<InstallableUnit> categoryIUs) {
Map<IRequiredCapability, IRequiredCapability> replacementMap = getBuilder().getReplacementMap();
Map<String, List<RequiredCapability>> map = new HashMap<String, List<RequiredCapability>>();
Map<String, InstallableUnit> catMap ... | private List<InstallableUnit> normalizeCategories(List<InstallableUnit> categoryIUs) {
Map<IRequiredCapability, IRequiredCapability> replacementMap = getBuilder().getReplacementMap();
Map<String, List<RequiredCapability>> map = new HashMap<String, List<RequiredCapability>>();
Map<String, InstallableUnit> catMap ... |
diff --git a/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test/CAForJSF2BeansInJavaTest.java b/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools/jsf/jsp/ca/test/CAForJSF2BeansInJavaTest.java
index f3545b235..550b0f770 100644
--- a/jsf/tests/org.jboss.tools.jsf.ui.test/src/org/jboss/tools... | true | true | public void testCAForJSF2Beans(){
String[] proposals = {
"mybean1", "mybean2"
};
checkProposals(PAGE_NAME, "#{}", 2, proposals, false);
}
| public void testCAForJSF2Beans(){
String[] proposals = {
"mybean1 : Bean1", "mybean2 : Bean2"
};
checkProposals(PAGE_NAME, "#{}", 2, proposals, false);
}
|
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/CVSChangeSetCollector.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/CVSChangeSetCollector.java
index fe529d66d..97ff9f9e2 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/t... | true | true | private void addRemoteChange(SyncInfo info, ICVSRemoteResource remoteResource, ILogEntry logEntry) {
if (disposed) return;
LogEntryCacheUpdateHandler handler = getLogEntryHandler();
if(handler != null && remoteResource != null && logEntry != null && handler.isRemoteChange(info)) {
i... | private void addRemoteChange(SyncInfo info, ICVSRemoteResource remoteResource, ILogEntry logEntry) {
if (disposed) return;
LogEntryCacheUpdateHandler handler = getLogEntryHandler();
if(handler != null && remoteResource != null && logEntry != null && handler.isRemoteChange(info)) {
i... |
diff --git a/src/java/upao/paw/compumundo/control/servlet/RealizarPedido.java b/src/java/upao/paw/compumundo/control/servlet/RealizarPedido.java
index f90c947..f8aca56 100644
--- a/src/java/upao/paw/compumundo/control/servlet/RealizarPedido.java
+++ b/src/java/upao/paw/compumundo/control/servlet/RealizarPedido.java
@@ ... | true | true | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
BD bd;
try {
bd = BD.getInstance();
} catch (SQLException ex) {
response.sendRedirect(REDIRECCION
+ "?mensaje... | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
BD bd;
try {
bd = BD.getInstance();
} catch (SQLException ex) {
response.sendRedirect(REDIRECCION
+ "?mensaje... |
diff --git a/src/java/org/jivesoftware/sparkimpl/plugin/alerts/BroadcastDialog.java b/src/java/org/jivesoftware/sparkimpl/plugin/alerts/BroadcastDialog.java
index ee78e9fe..39f40a10 100644
--- a/src/java/org/jivesoftware/sparkimpl/plugin/alerts/BroadcastDialog.java
+++ b/src/java/org/jivesoftware/sparkimpl/plugin/alert... | true | true | public BroadcastDialog() {
setLayout(new GridBagLayout());
rosterNode = new CheckNode(Res.getString("title.roster"));
checkTree = new CheckTree(rosterNode);
final ContactList contactList = SparkManager.getWorkspace().getContactList();
// creates the List for the Onli... | public BroadcastDialog() {
setLayout(new GridBagLayout());
rosterNode = new CheckNode(Res.getString("title.roster"));
checkTree = new CheckTree(rosterNode);
final ContactList contactList = SparkManager.getWorkspace().getContactList();
// creates the List for the Onli... |
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsFileStatusHdfs.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/fs/viewfs/TestViewFsFileStatusHdfs.java
index 87c4966093..12a9ff378b 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apach... | true | true | public void testFileStatusSerialziation()
throws IOException, URISyntaxException {
long len = FileSystemTestHelper.createFile(fHdfs, testfilename);
Configuration conf = ViewFileSystemTestSetup.configWithViewfsScheme();
ConfigUtil.addLink(conf, "/tmp", new URI(fHdfs.getUri().toString() + "/tmp"));
... | public void testFileStatusSerialziation()
throws IOException, URISyntaxException {
long len = FileSystemTestHelper.createFile(fHdfs, testfilename);
Configuration conf = ViewFileSystemTestSetup.createConfig();
ConfigUtil.addLink(conf, "/tmp", new URI(fHdfs.getUri().toString() + "/tmp"));
FileSys... |
diff --git a/src/main/java/com/cloudbees/service/GameServlet.java b/src/main/java/com/cloudbees/service/GameServlet.java
index 09aac5e..3bb4ae9 100644
--- a/src/main/java/com/cloudbees/service/GameServlet.java
+++ b/src/main/java/com/cloudbees/service/GameServlet.java
@@ -1,111 +1,110 @@
package com.cloudbees.service;... | true | true | public Response newGame(Game game) {
StatusType statusCode = null;
String msg = null;
StringWriter sw = new StringWriter();
JsonWriter writer = new JsonWriter(sw);
try {
dao.connect();
// Create a new game (key = game id)
String id = dao.newGame( game );
if (id == null) {
// ... | public Response newGame(Game game) {
StatusType statusCode = null;
String msg = null;
StringWriter sw = new StringWriter();
JsonWriter writer = new JsonWriter(sw);
try {
dao.connect();
// Create a new game (key = game id)
String id = dao.newGame( game );
if (id == null) {
// ... |
diff --git a/plugins/org.eclipse.m2m.atl.engine/src/org/eclipse/m2m/atl/engine/parser/AtlSourceManager.java b/plugins/org.eclipse.m2m.atl.engine/src/org/eclipse/m2m/atl/engine/parser/AtlSourceManager.java
index 19569924..29cc4726 100644
--- a/plugins/org.eclipse.m2m.atl.engine/src/org/eclipse/m2m/atl/engine/parser/AtlS... | false | true | private void parseMetamodels(String text) {
metamodelsPackages = new HashMap();
metamodelLocations = new HashMap();
inputModels = new LinkedHashMap();
outputModels = new LinkedHashMap();
librariesImports = new ArrayList();
List compilers = getTaggedInformations(text.getBytes(), COMPILER_TAG);
atlCompile... | private void parseMetamodels(String text) {
metamodelsPackages = new HashMap();
metamodelLocations = new HashMap();
inputModels = new LinkedHashMap();
outputModels = new LinkedHashMap();
librariesImports = new ArrayList();
List compilers = getTaggedInformations(text.getBytes(), COMPILER_TAG);
atlCompile... |
diff --git a/java/TJExample.java b/java/TJExample.java
index b9ea34a..a326c71 100644
--- a/java/TJExample.java
+++ b/java/TJExample.java
@@ -1,308 +1,307 @@
/*
* Copyright (C)2011 D. R. Commander. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are p... | true | true | public static void main(String argv[]) {
BufferedImage img = null; byte[] bmpBuf = null;
TJTransform xform = new TJTransform();
try {
sf = TJ.getScalingFactors();
if(argv.length < 2) {
usage();
}
TJScalingFactor scaleFactor = new TJScalingFactor(1, 1);
String in... | public static void main(String argv[]) {
BufferedImage img = null; byte[] bmpBuf = null;
TJTransform xform = new TJTransform();
try {
sf = TJ.getScalingFactors();
if(argv.length < 2) {
usage();
}
TJScalingFactor scaleFactor = new TJScalingFactor(1, 1);
String in... |
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteStatusAnalyzer.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteStatusAnalyzer.java
index 0b0214dfb..156c089f8 100644
--- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/SiteStatusAna... | true | true | public IStatus getFeatureStatus(IFeature feature) throws CoreException {
IFeature childFeature = null;
IStatus childStatus;
IFeatureReference[] children = feature.getIncludedFeatureReferences();
// consider disable
// check the current feature
String msg = Policy.bind("SiteLocal.FeatureDisable"); //$NON... | public IStatus getFeatureStatus(IFeature feature) throws CoreException {
IFeature childFeature = null;
IStatus childStatus;
IFeatureReference[] children = feature.getIncludedFeatureReferences();
// consider disable
// check the current feature
String msg = Policy.bind("SiteLocal.FeatureDisable"); //$NON... |
diff --git a/src/JoyPad.java b/src/JoyPad.java
index 3724014..7bdd0eb 100644
--- a/src/JoyPad.java
+++ b/src/JoyPad.java
@@ -1,76 +1,76 @@
import net.java.games.input.Component;
import net.java.games.input.Controller;
import net.java.games.input.ControllerEnvironment;
import java.util.Timer;
import java.util.Tim... | true | true | private boolean getController()
{
ControllerEnvironment controllerEnvironment = ControllerEnvironment.getDefaultEnvironment();
boolean controllerFound = false;
for (net.java.games.input.Controller c : controllerEnvironment.getControllers())
{
System.out.println(c.ge... | private boolean getController()
{
ControllerEnvironment controllerEnvironment = ControllerEnvironment.getDefaultEnvironment();
boolean controllerFound = false;
for (net.java.games.input.Controller c : controllerEnvironment.getControllers())
{
System.out.println(c.ge... |
diff --git a/h2/src/test/org/h2/test/unit/TestDataPage.java b/h2/src/test/org/h2/test/unit/TestDataPage.java
index 00af2844c..b30665a34 100644
--- a/h2/src/test/org/h2/test/unit/TestDataPage.java
+++ b/h2/src/test/org/h2/test/unit/TestDataPage.java
@@ -1,329 +1,330 @@
/*
* Copyright 2004-2011 H2 Group. Multiple-Lice... | true | true | private void testValues() {
testValue(ValueNull.INSTANCE);
testValue(ValueBoolean.get(false));
testValue(ValueBoolean.get(true));
for (int i = 0; i < 256; i++) {
testValue(ValueByte.get((byte) i));
}
for (int i = 0; i < 256 * 256; i += 10) {
te... | private void testValues() {
testValue(ValueNull.INSTANCE);
testValue(ValueBoolean.get(false));
testValue(ValueBoolean.get(true));
for (int i = 0; i < 256; i++) {
testValue(ValueByte.get((byte) i));
}
for (int i = 0; i < 256 * 256; i += 10) {
te... |
diff --git a/jamwiki-core/src/main/java/org/jamwiki/parser/jflex/ImageLinkTag.java b/jamwiki-core/src/main/java/org/jamwiki/parser/jflex/ImageLinkTag.java
index b6762de5..e280a1f0 100644
--- a/jamwiki-core/src/main/java/org/jamwiki/parser/jflex/ImageLinkTag.java
+++ b/jamwiki-core/src/main/java/org/jamwiki/parser/jflex... | false | true | private ImageMetadata parseImageParams(String paramText) {
ImageMetadata imageMetadata = new ImageMetadata();
if (StringUtils.isBlank(paramText)) {
return imageMetadata;
}
String[] tokens = paramText.split("\\|");
Matcher matcher;
tokenLoop: for (int i = 0; i < tokens.length; i++) {
String token = to... | private ImageMetadata parseImageParams(String paramText) {
ImageMetadata imageMetadata = new ImageMetadata();
if (StringUtils.isBlank(paramText)) {
return imageMetadata;
}
String[] tokens = paramText.split("\\|");
Matcher matcher;
tokenLoop: for (int i = 0; i < tokens.length; i++) {
String token = to... |
diff --git a/src/main/com/mongodb/DBCollection.java b/src/main/com/mongodb/DBCollection.java
index df279ecbb..bd1381c7e 100644
--- a/src/main/com/mongodb/DBCollection.java
+++ b/src/main/com/mongodb/DBCollection.java
@@ -1,1287 +1,1289 @@
// DBCollection.java
/**
* Copyright (C) 2008 10gen Inc.
*
* Lic... | false | true | public DBObject findAndModify(DBObject query, DBObject fields, DBObject sort, boolean remove, DBObject update, boolean returnNew, boolean upsert) {
BasicDBObject cmd = new BasicDBObject( "findandmodify", _name);
if (query != null && !query.keySet().isEmpty())
cmd.append( "query", query ... | public DBObject findAndModify(DBObject query, DBObject fields, DBObject sort, boolean remove, DBObject update, boolean returnNew, boolean upsert) {
BasicDBObject cmd = new BasicDBObject( "findandmodify", _name);
if (query != null && !query.keySet().isEmpty())
cmd.append( "query", query ... |
diff --git a/crono/src/crono/Interpreter.java b/crono/src/crono/Interpreter.java
index d69d442..178bfe1 100644
--- a/crono/src/crono/Interpreter.java
+++ b/crono/src/crono/Interpreter.java
@@ -1,221 +1,221 @@
package crono;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
impor... | true | true | public CronoType visit(Cons c) {
if(c.isQuoted()) {
c.quote(false);
return c;
}
if(eval == Function.EvalType.NONE) {
return c;
}
Iterator<CronoType> iter = c.iterator();
if(!(iter.hasNext())) {
return c; /*< C is an empty list (may be Nil or T) */
}
CronoType value = iter.next().acce... | public CronoType visit(Cons c) {
if(c.isQuoted()) {
c.quote(false);
return c;
}
if(eval == Function.EvalType.NONE) {
return c;
}
Iterator<CronoType> iter = c.iterator();
if(!(iter.hasNext())) {
return c; /*< C is an empty list (may be Nil or T) */
}
CronoType value = iter.next().acce... |
diff --git a/src/org/eclipse/imp/prefspecs/hoverHelper/PrefspecsHoverHelper.java b/src/org/eclipse/imp/prefspecs/hoverHelper/PrefspecsHoverHelper.java
index 7358fbf..cd0d3b4 100644
--- a/src/org/eclipse/imp/prefspecs/hoverHelper/PrefspecsHoverHelper.java
+++ b/src/org/eclipse/imp/prefspecs/hoverHelper/PrefspecsHoverHel... | false | true | public String getHoverHelpAt(IParseController parseController, ISourceViewer srcViewer, int offset)
{
IPrsStream ps= parseController.getParser().getParseStream();
// SMS 16 Mar 2007: index out of bounds occurs here sometimes,
// probably when ast has errors (around point of error)
... | public String getHoverHelpAt(IParseController parseController, ISourceViewer srcViewer, int offset)
{
IPrsStream ps= parseController.getParser().getParseStream();
// SMS 16 Mar 2007: index out of bounds occurs here sometimes,
// probably when ast has errors (around point of error)
... |
diff --git a/common/abo/pipes/PipeLiquidsBalance.java b/common/abo/pipes/PipeLiquidsBalance.java
index f7c9ff1..ba9482d 100644
--- a/common/abo/pipes/PipeLiquidsBalance.java
+++ b/common/abo/pipes/PipeLiquidsBalance.java
@@ -1,207 +1,207 @@
/**
* Copyright (C) 2011-2012 Flow86
*
* AdditionalBuildcraftObjects i... | true | true | public void doWork() {
LinkedList<Neighbor> neighbors = new LinkedList<Neighbor>();
for (Orientations o : Orientations.dirs()) {
TileEntity tile = container.tileBuffer[o.ordinal()].getTile();
if (tile == null || !(tile instanceof ITankContainer))
continue;
Neighbor neighbor = new Neighbor((ITankCon... | public void doWork() {
LinkedList<Neighbor> neighbors = new LinkedList<Neighbor>();
for (Orientations o : Orientations.dirs()) {
TileEntity tile = container.tileBuffer[o.ordinal()].getTile();
if (tile == null || tile instanceof TileGenericPipe || !(tile instanceof ITankContainer))
continue;
Neighbo... |
diff --git a/plugins/org.eclipse.mylyn.docs.intent.client.ui/src/org/eclipse/mylyn/docs/intent/client/ui/utils/IntentEditorOpener.java b/plugins/org.eclipse.mylyn.docs.intent.client.ui/src/org/eclipse/mylyn/docs/intent/client/ui/utils/IntentEditorOpener.java
index e6a19568..c4c365ce 100644
--- a/plugins/org.eclipse.myl... | true | true | private static IntentEditor openIntentEditor(RepositoryAdapter repositoryAdapter, EObject elementToOpen,
boolean readOnlyMode, EObject elementToSelectRangeWith, boolean forceNewEditor)
throws PartInitException {
IntentEditor openedEditor = null;
IStatus status = null;
// We get the element on which open th... | private static IntentEditor openIntentEditor(RepositoryAdapter repositoryAdapter, EObject elementToOpen,
boolean readOnlyMode, EObject elementToSelectRangeWith, boolean forceNewEditor)
throws PartInitException {
IntentEditor openedEditor = null;
IStatus status = null;
// We get the element on which open th... |
diff --git a/tool/src/java/org/sakaiproject/profile2/tool/pages/MySearch.java b/tool/src/java/org/sakaiproject/profile2/tool/pages/MySearch.java
index 6c6ea43e..54da4478 100644
--- a/tool/src/java/org/sakaiproject/profile2/tool/pages/MySearch.java
+++ b/tool/src/java/org/sakaiproject/profile2/tool/pages/MySearch.java
@... | false | true | public MySearch() {
log.debug("MySearch()");
//setup model to store the actions in the modal windows
final FriendAction friendActionModel = new FriendAction();
//get current user
final String currentUserUuid = sakaiProxy.getCurrentUserId();
// FeedbackPanel - so we activate feedback
fin... | public MySearch() {
log.debug("MySearch()");
//setup model to store the actions in the modal windows
final FriendAction friendActionModel = new FriendAction();
//get current user
final String currentUserUuid = sakaiProxy.getCurrentUserId();
// FeedbackPanel - so we activate feedback
fin... |
diff --git a/src/org/adblockplus/brazil/RequestHandler.java b/src/org/adblockplus/brazil/RequestHandler.java
index 1c07441..d2a14a4 100644
--- a/src/org/adblockplus/brazil/RequestHandler.java
+++ b/src/org/adblockplus/brazil/RequestHandler.java
@@ -1,372 +1,374 @@
/*
* This file is part of the Adblock Plus,
* Copy... | true | true | public boolean respond(Request request) throws IOException
{
boolean block = false;
String reqHost = null;
String refHost = null;
String referrer = request.getRequestHeader("referer");
try
{
reqHost = (new URL(request.url)).getHost();
if (referrer != null)
refHost = (ne... | public boolean respond(Request request) throws IOException
{
boolean block = false;
String reqHost = null;
String refHost = null;
String referrer = request.getRequestHeader("referer");
try
{
reqHost = (new URL(request.url)).getHost();
if (referrer != null)
refHost = (ne... |
diff --git a/srcj/com/sun/electric/tool/user/menus/FileMenu.java b/srcj/com/sun/electric/tool/user/menus/FileMenu.java
index 864f5f526..5aa50cb41 100644
--- a/srcj/com/sun/electric/tool/user/menus/FileMenu.java
+++ b/srcj/com/sun/electric/tool/user/menus/FileMenu.java
@@ -1,1642 +1,1642 @@
/* -*- tab-width: 4 -*-
*
... | true | true | static EMenu makeMenu() {
/****************************** THE FILE MENU ******************************/
// mnemonic keys available: D T WXYZ
return new EMenu("_File",
new EMenuItem("_New Library...") { public void run() {
newLibraryCommand(); }},
ToolBa... | static EMenu makeMenu() {
/****************************** THE FILE MENU ******************************/
// mnemonic keys available: D T WXYZ
return new EMenu("_File",
new EMenuItem("_New Library...") { public void run() {
newLibraryCommand(); }},
ToolBa... |
diff --git a/src/org/digitalcampus/mobile/learning/task/LoginTask.java b/src/org/digitalcampus/mobile/learning/task/LoginTask.java
index a4adfc58..b40b3e76 100644
--- a/src/org/digitalcampus/mobile/learning/task/LoginTask.java
+++ b/src/org/digitalcampus/mobile/learning/task/LoginTask.java
@@ -1,160 +1,161 @@
/*
* ... | true | true | protected Payload doInBackground(Payload... params) {
Payload payload = params[0];
User u = (User) payload.getData().get(0);
HTTPConnectionUtils client = new HTTPConnectionUtils(ctx);
String url = prefs.getString("prefServer", ctx.getString(R.string.prefServerDefault)) + MobileLearning.LOGIN_PATH;
JSONObje... | protected Payload doInBackground(Payload... params) {
Payload payload = params[0];
User u = (User) payload.getData().get(0);
HTTPConnectionUtils client = new HTTPConnectionUtils(ctx);
String url = prefs.getString("prefServer", ctx.getString(R.string.prefServerDefault)) + MobileLearning.LOGIN_PATH;
JSONObje... |
diff --git a/src/org/openstreetmap/josm/plugins/PluginHandler.java b/src/org/openstreetmap/josm/plugins/PluginHandler.java
index 0232d0b1..17176819 100644
--- a/src/org/openstreetmap/josm/plugins/PluginHandler.java
+++ b/src/org/openstreetmap/josm/plugins/PluginHandler.java
@@ -1,384 +1,384 @@
//License: GPL. Copyrigh... | true | true | public static void loadPlugins(boolean early) {
List<String> plugins = new LinkedList<String>();
Collection<String> cp = Main.pref.getCollection("plugins", null);
if (cp != null) {
plugins.addAll(cp);
}
if (System.getProperty("josm.plugins") != null) {
... | public static void loadPlugins(boolean early) {
List<String> plugins = new LinkedList<String>();
Collection<String> cp = Main.pref.getCollection("plugins", null);
if (cp != null) {
plugins.addAll(cp);
}
if (System.getProperty("josm.plugins") != null) {
... |
diff --git a/openejb0/src/facilities/org/openejb/alt/config/ConfigUtils.java b/openejb0/src/facilities/org/openejb/alt/config/ConfigUtils.java
index c1cd5e718..8b8b6df81 100644
--- a/openejb0/src/facilities/org/openejb/alt/config/ConfigUtils.java
+++ b/openejb0/src/facilities/org/openejb/alt/config/ConfigUtils.java
@@ ... | true | true | public static String searchForConfiguration(String path) throws OpenEJBException{
File file = null;
try{
/* [1] Try finding the file relative to the
* current working directory
*/
try{
file = new File(path);
if (... | public static String searchForConfiguration(String path) throws OpenEJBException{
File file = null;
try{
/* [1] Try finding the file relative to the
* current working directory
*/
try{
file = new File(path);
if (... |
diff --git a/discoveries/fuchsia-upnp-discovery-it/src/test/java/org/ow2/chameleon/fuchsia/upnp/test/UPnPFunctionnalitiesTest.java b/discoveries/fuchsia-upnp-discovery-it/src/test/java/org/ow2/chameleon/fuchsia/upnp/test/UPnPFunctionnalitiesTest.java
index 45f47379..c540ab49 100644
--- a/discoveries/fuchsia-upnp-discov... | true | true | protected Option[] getCustomOptions() {
return options(
// fuchsia bundles to test
wrappedBundle(mavenBundle("org.apache.felix", "org.apache.felix.upnp.basedriver").versionAsInProject()),
wrappedBundle(mavenBundle("org.apache.felix", "org.apache.felix.upnp.ex... | protected Option[] getCustomOptions() {
return options(
// fuchsia bundles to test
wrappedBundle(mavenBundle("org.apache.felix", "org.apache.felix.upnp.basedriver").versionAsInProject()),
wrappedBundle(mavenBundle("org.apache.felix", "org.apache.felix.upnp.ex... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskFormPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskFormPage.java
index 9d91fbdb8..85cf20902 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/TaskFormPage.java
+++ b/org.ecl... | true | true | protected TextViewer addTextEditor(TaskRepository repository, Composite composite, String text, boolean spellCheck,
int style) {
if (actionContributor == null) {
actionContributor = ((TaskEditor) getEditor()).getContributor();
}
AnnotationModel annotationModel = new AnnotationModel();
final RepositoryT... | protected TextViewer addTextEditor(TaskRepository repository, Composite composite, String text, boolean spellCheck,
int style) {
if (actionContributor == null) {
actionContributor = ((TaskEditor) getEditor()).getContributor();
}
AnnotationModel annotationModel = new AnnotationModel();
final RepositoryT... |
diff --git a/src/com/android/contacts/ViewContactActivity.java b/src/com/android/contacts/ViewContactActivity.java
index bd193a0..acb8bde 100644
--- a/src/com/android/contacts/ViewContactActivity.java
+++ b/src/com/android/contacts/ViewContactActivity.java
@@ -1,1458 +1,1463 @@
/*
* Copyright (C) 2007 The Android Op... | true | true | private final void buildEntries() {
// Clear out the old entries
final int numSections = mSections.size();
for (int i = 0; i < numSections; i++) {
mSections.get(i).clear();
}
mRawContactIds.clear();
mReadOnlySourcesCnt = 0;
mWritableSourcesCnt = ... | private final void buildEntries() {
// Clear out the old entries
final int numSections = mSections.size();
for (int i = 0; i < numSections; i++) {
mSections.get(i).clear();
}
mRawContactIds.clear();
mReadOnlySourcesCnt = 0;
mWritableSourcesCnt = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.