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/test/java/org/nohope/akka/spring/Bean.java b/src/test/java/org/nohope/akka/spring/Bean.java
index c66c61c..1f5c4f9 100644
--- a/src/test/java/org/nohope/akka/spring/Bean.java
+++ b/src/test/java/org/nohope/akka/spring/Bean.java
@@ -1,58 +1,58 @@
package org.nohope.akka.spring;
import akka.actor.Unt... | false | true | public void onReceive(final Object message) {
if (message instanceof Props) {
switch ((Props) message) {
case PARAM1:
getSender().tell(param1);
break;
case PARAM2:
getSender().tell(param2);
... | public void onReceive(final Object message) {
if (message instanceof Props) {
switch ((Props) message) {
case PARAM1:
getSender().tell(param1, getSelf());
break;
case PARAM2:
getSender().tell(param2, getS... |
diff --git a/kernel/src/main/java/com/qspin/qtaste/testsuite/TestSuite.java b/kernel/src/main/java/com/qspin/qtaste/testsuite/TestSuite.java
index fc506f64..c47a958f 100644
--- a/kernel/src/main/java/com/qspin/qtaste/testsuite/TestSuite.java
+++ b/kernel/src/main/java/com/qspin/qtaste/testsuite/TestSuite.java
@@ -1,241... | true | true | public boolean execute(boolean debug, boolean initializeTestEngine) {
boolean executionSuccess = true;
nbTestsToExecute = computeNumberTestsToExecute();
startExecutionDate = new Date();
reportTestSuiteStarted();
if (nbTestsToExecute != 0) {
if (!initializeTestEngi... | public boolean execute(boolean debug, boolean initializeTestEngine) {
boolean executionSuccess = true;
nbTestsToExecute = computeNumberTestsToExecute();
startExecutionDate = new Date();
reportTestSuiteStarted();
if (nbTestsToExecute != 0) {
if (!initializeTestEngi... |
diff --git a/src/main/java/com/forgenz/mobmanager/commands/MMCommandVersion.java b/src/main/java/com/forgenz/mobmanager/commands/MMCommandVersion.java
index b1e4331..5248be4 100644
--- a/src/main/java/com/forgenz/mobmanager/commands/MMCommandVersion.java
+++ b/src/main/java/com/forgenz/mobmanager/commands/MMCommandVers... | false | true | public void run(final CommandSender sender, String maincmd, String[] args)
{
if (sender instanceof Player && !sender.hasPermission("mobmanager.version"))
{
sender.sendMessage(ChatColor.DARK_RED + "You do not have permission to use /mm version");
return;
}
if (!super.validArgs(sender, maincmd, args))
... | public void run(final CommandSender sender, String maincmd, String[] args)
{
if (sender instanceof Player && !sender.hasPermission("mobmanager.version"))
{
sender.sendMessage(ChatColor.DARK_RED + "You do not have permission to use /mm version");
return;
}
if (!super.validArgs(sender, maincmd, args))
... |
diff --git a/src/main/java/vazkii/tinkerer/common/research/ModResearch.java b/src/main/java/vazkii/tinkerer/common/research/ModResearch.java
index 7e47ac06..f38e6d33 100644
--- a/src/main/java/vazkii/tinkerer/common/research/ModResearch.java
+++ b/src/main/java/vazkii/tinkerer/common/research/ModResearch.java
@@ -1,281... | true | true | public static void initResearch() {
registerResearchPages();
ResearchItem research;
research = new TTResearchItem(LibResearch.KEY_DARK_QUARTZ, LibResearch.CATEGORY_THAUMICTINKERER, new AspectList(), -2, 2, 0, new ItemStack(ModItems.darkQuartz)).setStub().setAutoUnlock().setRound().registerResearchItem();
res... | public static void initResearch() {
registerResearchPages();
ResearchItem research;
research = new TTResearchItem(LibResearch.KEY_DARK_QUARTZ, LibResearch.CATEGORY_THAUMICTINKERER, new AspectList(), -2, 2, 0, new ItemStack(ModItems.darkQuartz)).setStub().setAutoUnlock().setRound().registerResearchItem();
res... |
diff --git a/src/main/java/pl/agh/enrollme/service/TermManagementService.java b/src/main/java/pl/agh/enrollme/service/TermManagementService.java
index e7775c9..5efd5d0 100644
--- a/src/main/java/pl/agh/enrollme/service/TermManagementService.java
+++ b/src/main/java/pl/agh/enrollme/service/TermManagementService.java
@@ ... | false | true | public void saveScheduleState(AdminScheduleController scheduleController) {
final List<Subject> subjects = scheduleController.getSubjects();
clearSubjectTerms(subjects); //delete all terms belonging to subjects from current enrollment
LOGGER.debug("Terms cleared");
final List<Ter... | public void saveScheduleState(AdminScheduleController scheduleController) {
final List<Subject> subjects = scheduleController.getSubjects();
clearSubjectTerms(subjects); //delete all terms belonging to subjects from current enrollment
LOGGER.debug("Terms cleared");
final List<Ter... |
diff --git a/src/de/ueller/gpsmid/ui/GuiSendMessage.java b/src/de/ueller/gpsmid/ui/GuiSendMessage.java
index b9961ce9..0f7cb660 100644
--- a/src/de/ueller/gpsmid/ui/GuiSendMessage.java
+++ b/src/de/ueller/gpsmid/ui/GuiSendMessage.java
@@ -1,118 +1,119 @@
package de.ueller.gpsmid.ui;
/*
* GpsMid - Copyright (c) 2008... | true | true | public GuiSendMessage(Trace tr) {
super(Locale.get("guisendmessage.SendSMS")/*Send SMS (map pos)*/);
this.parent = tr;
try {
tfMessage = new TextField(Locale.get("guisendmessage.MessageText")/*Message text*/,
"Lat: " + tr.center.radlat * MoreMath.FAC_RADTODEC +
"Lon: " + tr.center.radlon * Mor... | public GuiSendMessage(Trace tr) {
super(Locale.get("guisendmessage.SendSMS")/*Send SMS (map pos)*/);
this.parent = tr;
try {
tfMessage = new TextField(Locale.get("guisendmessage.MessageText")/*Message text*/,
"Lat: " + tr.center.radlat * MoreMath.FAC_RADTODEC +
" " +
"Lon: " + tr.cente... |
diff --git a/servo-core/src/main/java/com/netflix/servo/publish/FileMetricObserver.java b/servo-core/src/main/java/com/netflix/servo/publish/FileMetricObserver.java
index 36cbff5..ab631e8 100644
--- a/servo-core/src/main/java/com/netflix/servo/publish/FileMetricObserver.java
+++ b/servo-core/src/main/java/com/netflix/s... | true | true | public void updateImpl(List<Metric> metrics) {
Preconditions.checkNotNull(metrics);
File file = new File(dir, fileFormat.format(new Date()));
Writer out = null;
try {
LOGGER.debug("writing %d metrics to file %s", metrics.size(), file);
OutputStream fileOut = n... | public void updateImpl(List<Metric> metrics) {
Preconditions.checkNotNull(metrics);
File file = new File(dir, fileFormat.format(new Date()));
Writer out = null;
try {
LOGGER.debug("writing {} metrics to file {}", metrics.size(), file);
OutputStream fileOut = n... |
diff --git a/sip-servlets-examples/shopping-demo/business/src/main/java/org/jboss/mobicents/seam/listeners/DTMFListener.java b/sip-servlets-examples/shopping-demo/business/src/main/java/org/jboss/mobicents/seam/listeners/DTMFListener.java
index b44d3d6f4..84cabf67d 100644
--- a/sip-servlets-examples/shopping-demo/busin... | false | true | public void update(MsNotifyEvent event) {
dtmfDetector.receive(EventID.DTMF, connection, new String[] {});
logger.info("DTMF: " + event.getMessage());
String signal = event.getMessage();
/**
* Concurency issue:
* 20:56:33,012 ERROR [STDERR] Exception in thread "Thread-104"
20:56:33,020 ERROR [STDERR] ... | public void update(MsNotifyEvent event) {
logger.info("DTMF: " + event.getMessage());
String signal = event.getMessage();
/**
* Concurency issue:
* 20:56:33,012 ERROR [STDERR] Exception in thread "Thread-104"
20:56:33,020 ERROR [STDERR] java.util.ConcurrentModificationException
20:56:33,020 ERROR [STD... |
diff --git a/src/cz/muni/stanse/statistics/StringToFileWriter.java b/src/cz/muni/stanse/statistics/StringToFileWriter.java
index c533d09..0e16519 100644
--- a/src/cz/muni/stanse/statistics/StringToFileWriter.java
+++ b/src/cz/muni/stanse/statistics/StringToFileWriter.java
@@ -1,35 +1,36 @@
package cz.muni.stanse.stati... | true | true | public static boolean write(final String data, final String fileName) {
final File pathName = new File(fileName);
if (pathName.getParentFile() != null)
if (!pathName.getParentFile().mkdirs()) {
System.err.println("Can't create directory structure");
return false;
}
try {... | public static boolean write(final String data, final String fileName) {
final File pathName = new File(fileName);
if (pathName.getParentFile() != null)
if (!pathName.getParentFile().exists() &&
!pathName.getParentFile().mkdirs()) {
System.err.println("Can't create directory struc... |
diff --git a/src/edu/grinnell/sandb/ArticleDetailActivity.java b/src/edu/grinnell/sandb/ArticleDetailActivity.java
index b365ed9..e682a6a 100644
--- a/src/edu/grinnell/sandb/ArticleDetailActivity.java
+++ b/src/edu/grinnell/sandb/ArticleDetailActivity.java
@@ -1,56 +1,56 @@
package edu.grinnell.sandb;
import androi... | true | true | public void onCreate(Bundle ofJoy) {
super.onCreate(ofJoy);
setContentView(R.layout.activity_article_detail);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
Intent i = getIntent();
Fragment fragment = new ArticleDetailFragment();;
if (i != null) {
Bundle... | public void onCreate(Bundle ofJoy) {
super.onCreate(ofJoy);
setContentView(R.layout.activity_article_detail);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
Intent i = getIntent();
Fragment fragment = new ArticleDetailFragment();;
if (i != null) {
Bundle... |
diff --git a/src/com/herocraftonline/dev/heroes/skill/skills/SkillMining.java b/src/com/herocraftonline/dev/heroes/skill/skills/SkillMining.java
index cb826302..a0156794 100644
--- a/src/com/herocraftonline/dev/heroes/skill/skills/SkillMining.java
+++ b/src/com/herocraftonline/dev/heroes/skill/skills/SkillMining.java
@... | true | true | public void onBlockBreak(BlockBreakEvent event) {
Heroes.debug.startTask("HeroesSkillListener");
if (event.isCancelled()) {
Heroes.debug.stopTask("HeroesSkillListener");
return;
}
Hero hero = plugin.getHeroManager().get... | public void onBlockBreak(BlockBreakEvent event) {
Heroes.debug.startTask("HeroesSkillListener");
if (event.isCancelled()) {
Heroes.debug.stopTask("HeroesSkillListener");
return;
}
Hero hero = plugin.getHeroManager().get... |
diff --git a/src/main/java/org/jboss/pressgang/ccms/utils/common/XMLUtilities.java b/src/main/java/org/jboss/pressgang/ccms/utils/common/XMLUtilities.java
index 084fe4f..f5f78c9 100644
--- a/src/main/java/org/jboss/pressgang/ccms/utils/common/XMLUtilities.java
+++ b/src/main/java/org/jboss/pressgang/ccms/utils/common/X... | true | true | public static String convertNodeToString(final Node startNode, final boolean includeElementName, final boolean verbatim,
final boolean inline, final List<String> verbatimElements, final List<String> inlineElements,
final List<String> contentsInlineElements, final boolean tabIndent, final int... | public static String convertNodeToString(final Node startNode, final boolean includeElementName, final boolean verbatim,
final boolean inline, final List<String> verbatimElements, final List<String> inlineElements,
final List<String> contentsInlineElements, final boolean tabIndent, final int... |
diff --git a/src/com/dmdirc/ui/swing/dialogs/prefs/UpdateConfigPanel.java b/src/com/dmdirc/ui/swing/dialogs/prefs/UpdateConfigPanel.java
index 3bd25a89e..75cb4daaf 100644
--- a/src/com/dmdirc/ui/swing/dialogs/prefs/UpdateConfigPanel.java
+++ b/src/com/dmdirc/ui/swing/dialogs/prefs/UpdateConfigPanel.java
@@ -1,135 +1,13... | true | true | public void save() {
final Identity identity = IdentityManager.getConfigIdentity();
if (enable.isSelected()) {
identity.unsetOption("updater", "enable");
} else {
identity.setOption("updater", "enable", false);
}
for (int i = 0; i < tableModel.getRowC... | public void save() {
final Identity identity = IdentityManager.getConfigIdentity();
if (enable.isSelected()) {
identity.setOption("updater", "enable", true);
} else {
identity.setOption("updater", "enable", false);
}
for (int i = 0; i < tableModel.get... |
diff --git a/src/main/java/org/apache/ibatis/mapping/CacheBuilder.java b/src/main/java/org/apache/ibatis/mapping/CacheBuilder.java
index a29ddc382f..02dde97fe8 100644
--- a/src/main/java/org/apache/ibatis/mapping/CacheBuilder.java
+++ b/src/main/java/org/apache/ibatis/mapping/CacheBuilder.java
@@ -1,197 +1,200 @@
/*
... | true | true | private void setCacheProperties(Cache cache) {
if (properties != null) {
MetaObject metaCache = SystemMetaObject.forObject(cache);
for (Map.Entry<Object, Object> entry : properties.entrySet()) {
String name = (String) entry.getKey();
String value = (String) entry.getValue();
if... | private void setCacheProperties(Cache cache) {
if (properties != null) {
MetaObject metaCache = SystemMetaObject.forObject(cache);
for (Map.Entry<Object, Object> entry : properties.entrySet()) {
String name = (String) entry.getKey();
String value = (String) entry.getValue();
if... |
diff --git a/vtk-util/src/org/jcae/vtk/Scene.java b/vtk-util/src/org/jcae/vtk/Scene.java
index 90753e0a..f192b29e 100644
--- a/vtk-util/src/org/jcae/vtk/Scene.java
+++ b/vtk-util/src/org/jcae/vtk/Scene.java
@@ -1,262 +1,263 @@
/*
* Project Info: http://jcae.sourceforge.net
*
* This program is free software; yo... | false | true | public void pick(vtkCanvas canvas, int[] firstPoint, int[] secondPoint)
{
vtkVisibleCellSelector selector = new vtkVisibleCellSelector();
selector.SetRenderer(canvas.GetRenderer());
selector.SetArea(firstPoint[0], firstPoint[1], secondPoint[0],
secondPoint[1]);
selector.SetRenderPasses(0, 1, 0, 0, 1, 0);
... | public void pick(vtkCanvas canvas, int[] firstPoint, int[] secondPoint)
{
vtkVisibleCellSelector selector = new vtkVisibleCellSelector();
selector.SetRenderer(canvas.GetRenderer());
selector.SetArea(firstPoint[0], firstPoint[1], secondPoint[0],
secondPoint[1]);
selector.SetRenderPasses(0, 1, 0, 0, 1, 0);
... |
diff --git a/01_src/org/capcaval/c3/componentmanager/_impl/tools/ComponentDescriptionImpl.java b/01_src/org/capcaval/c3/componentmanager/_impl/tools/ComponentDescriptionImpl.java
index 8652793..016cc69 100755
--- a/01_src/org/capcaval/c3/componentmanager/_impl/tools/ComponentDescriptionImpl.java
+++ b/01_src/org/capcav... | true | true | public String toString(){
StringBuffer str = new StringBuffer();
str.append("===================================================================================================\n");
str.append("COMPONENT NAME : " + this.componentName + "\t\t level : " + this.componentLevel + "\n");
str.append("---------------... | public String toString(){
StringBuffer str = new StringBuffer();
str.append("===================================================================================================\n");
str.append("COMPONENT NAME : " + this.componentName + "\t\t level : " + this.componentLevel + "\n");
str.append("---------------... |
diff --git a/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableAlgorithmFactory.java b/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableAlgorithmFactory.java
index 22465b08..0037c865 100644
--- a/templates/org.cishell.templates/src/org/c... | true | true | private void copyFiles(File dir) throws IOException {
Enumeration e = bContext.getBundle().getEntryPaths("/"+algName);
Set entries = new HashSet();
while(e != null && e.hasMoreElements()) {
String entryPath = (String) e.nextElement();
System.err.print... | private void copyFiles(File dir) throws IOException {
Enumeration e = bContext.getBundle().getEntryPaths("/"+algName);
Set entries = new HashSet();
while(e != null && e.hasMoreElements()) {
String entryPath = (String) e.nextElement();
System.err.print... |
diff --git a/EclipseProject/src/weatherOracle/activity/FilterOptionsActivity.java b/EclipseProject/src/weatherOracle/activity/FilterOptionsActivity.java
index 4d20a4d..9476468 100644
--- a/EclipseProject/src/weatherOracle/activity/FilterOptionsActivity.java
+++ b/EclipseProject/src/weatherOracle/activity/FilterOptionsA... | true | true | private void initializeSaveButtonListener(Button saveButton){
saveButton.setOnClickListener(new View.OnClickListener()
{
public void onClick(View v)
{
String currentName = FilterMenuActivity.currentFilterName;
boolean filterNameValid = true;
boolea... | private void initializeSaveButtonListener(Button saveButton){
saveButton.setOnClickListener(new View.OnClickListener()
{
public void onClick(View v)
{
String currentName = FilterMenuActivity.currentFilterName;
boolean filterNameValid = true;
boolea... |
diff --git a/rest/src/main/java/org/usergrid/rest/management/organizations/OrganizationsResource.java b/rest/src/main/java/org/usergrid/rest/management/organizations/OrganizationsResource.java
index 3bd8ba48..ce623013 100644
--- a/rest/src/main/java/org/usergrid/rest/management/organizations/OrganizationsResource.java
... | true | true | public JSONWithPadding newOrganizationFromForm(@Context UriInfo ui,
@FormParam("organization") String organizationName,
@FormParam("username") String username,
@FormParam("name") String name, @FormParam("email") String email,
@FormParam("password") String password,
@QueryParam("callback") @DefaultValue(... | public JSONWithPadding newOrganizationFromForm(@Context UriInfo ui,
@FormParam("organization") String organizationName,
@FormParam("username") String username,
@FormParam("name") String name, @FormParam("email") String email,
@FormParam("password") String password,
@QueryParam("callback") @DefaultValue(... |
diff --git a/src/android/privacy/PrivacyPersistenceAdapter.java b/src/android/privacy/PrivacyPersistenceAdapter.java
index 04a8a75..5065774 100644
--- a/src/android/privacy/PrivacyPersistenceAdapter.java
+++ b/src/android/privacy/PrivacyPersistenceAdapter.java
@@ -1,1061 +1,1062 @@
package android.privacy;
import a... | true | true | public String getValue(String name) {
readingThreads++;
SQLiteDatabase db = getReadableDatabase();
Cursor c;
String output = null;
try {
c = query(db, TABLE_MAP, new String[] { "value" }, "name=?",
new String[] { name }, null, null, n... | public String getValue(String name) {
readingThreads++;
SQLiteDatabase db = getReadableDatabase();
Cursor c;
String output = null;
try {
c = query(db, TABLE_MAP, new String[] { "value" }, "name=?",
new String[] { name }, null, null, n... |
diff --git a/plugins/org.eclipse.m2m.atl.core.emf/src/org/eclipse/m2m/atl/core/emf/EMFInjector.java b/plugins/org.eclipse.m2m.atl.core.emf/src/org/eclipse/m2m/atl/core/emf/EMFInjector.java
index f3828e59..e04bd201 100644
--- a/plugins/org.eclipse.m2m.atl.core.emf/src/org/eclipse/m2m/atl/core/emf/EMFInjector.java
+++ b/... | true | true | public void inject(IModel targetModel, String source, Map<String, Object> options)
throws ATLCoreException {
boolean loadOnDemand = true;
if (options.containsKey(OPTION_LOAD_ON_DEMAND)) {
loadOnDemand = options.get(OPTION_LOAD_ON_DEMAND).toString().equals("true"); //$NON-NLS-1$
}
ResourceSet resourceSet ... | public void inject(IModel targetModel, String source, Map<String, Object> options)
throws ATLCoreException {
boolean loadOnDemand = true;
if (options.containsKey(OPTION_LOAD_ON_DEMAND)) {
loadOnDemand = options.get(OPTION_LOAD_ON_DEMAND).toString().equals("true"); //$NON-NLS-1$
}
ResourceSet resourceSet ... |
diff --git a/org.maven.ide.eclipse.gdt/org.maven.ide.eclipse.gdt.core/src/main/java/org/maven/ide/eclipse/gdt/gwt/build/GWTGenerateAsyncParticipant.java b/org.maven.ide.eclipse.gdt/org.maven.ide.eclipse.gdt.core/src/main/java/org/maven/ide/eclipse/gdt/gwt/build/GWTGenerateAsyncParticipant.java
index 1799952..fbb48c9 10... | false | true | protected boolean fileConcerned(File statedFolder, String file) {
if (file.endsWith(".java")) {
String qualifiedName = file.substring(0, file.lastIndexOf(".")).replaceAll("/", ".");
try {
ITypeBinding binding = JavaASTUtils.resolveType(JavaCore.create(getMavenProjectF... | protected boolean fileConcerned(File statedFolder, String file) {
if (file.endsWith(".java")) {
String qualifiedName = file.substring(0, file.lastIndexOf(".")).replaceAll("/|\\\\", ".");
try {
ITypeBinding binding = JavaASTUtils.resolveType(JavaCore.create(getMavenPro... |
diff --git a/AE-go_GameServer/data/scripts/system/handlers/quest/eltnen/_1033SatalocasHeart.java b/AE-go_GameServer/data/scripts/system/handlers/quest/eltnen/_1033SatalocasHeart.java
index e5120807..97f4b950 100644
--- a/AE-go_GameServer/data/scripts/system/handlers/quest/eltnen/_1033SatalocasHeart.java
+++ b/AE-go_Gam... | true | true | public boolean onDialogEvent(QuestEnv env)
{
final Player player = env.getPlayer();
int targetId = 0;
if(env.getVisibleObject() instanceof Npc)
targetId = ((Npc) env.getVisibleObject()).getNpcId();
QuestState qs = player.getQuestStateList().getQuestState(questId);
if(qs == null)
return false;
if(targ... | public boolean onDialogEvent(QuestEnv env)
{
final Player player = env.getPlayer();
int targetId = 0;
if(env.getVisibleObject() instanceof Npc)
targetId = ((Npc) env.getVisibleObject()).getNpcId();
QuestState qs = player.getQuestStateList().getQuestState(questId);
if(qs == null)
return false;
if(targ... |
diff --git a/src/extension/app-schema/app-schema-test/src/test/java/org/geoserver/test/DataAccessIntegrationMockData.java b/src/extension/app-schema/app-schema-test/src/test/java/org/geoserver/test/DataAccessIntegrationMockData.java
index d067626c06..ec44a155ce 100644
--- a/src/extension/app-schema/app-schema-test/src/... | true | true | protected void addContent() {
putNamespace(MO_PREFIX, MO_URI);
addFeatureType(GSML_PREFIX, "MappedFeature", "MappedFeatureAsOccurrence.xml",
"MappedFeaturePropertyfile.properties");
// GeologicUnit is the output type with a mock MO:EarthResource data access as an
// i... | protected void addContent() {
putNamespace(MO_PREFIX, MO_URI);
addFeatureType(GSML_PREFIX, "MappedFeature", "MappedFeatureAsOccurrence.xml",
"MappedFeaturePropertyfile.properties");
// GeologicUnit is the output type with a mock MO:EarthResource data access as an
// i... |
diff --git a/src/translate/TCPNetToSMVTranslator.java b/src/translate/TCPNetToSMVTranslator.java
index d4f5d1f..3954ba2 100644
--- a/src/translate/TCPNetToSMVTranslator.java
+++ b/src/translate/TCPNetToSMVTranslator.java
@@ -1,683 +1,695 @@
package translate;
import generate.SpecGenerator;
import java.io.Buffere... | true | true | public String convertToSMV(String xmlFile, int sampleSize) throws ParserConfigurationException, SAXException, IOException, XPathExpressionException {
String smvFile = xmlFile.substring(0, xmlFile.length()-4).concat(".smv");
Document doc = XPathUtil.makeDocument(xmlFile);
// Create/open the smv file where w... | public String convertToSMV(String xmlFile, int sampleSize) throws ParserConfigurationException, SAXException, IOException, XPathExpressionException {
String smvFile = xmlFile.substring(0, xmlFile.length()-4).concat(".smv");
Document doc = XPathUtil.makeDocument(xmlFile);
// Create/open the smv file where w... |
diff --git a/src/uk/ac/aber/dcs/cs12420/aberpizza/data/DrinkItem.java b/src/uk/ac/aber/dcs/cs12420/aberpizza/data/DrinkItem.java
index 6378780..adab7f2 100644
--- a/src/uk/ac/aber/dcs/cs12420/aberpizza/data/DrinkItem.java
+++ b/src/uk/ac/aber/dcs/cs12420/aberpizza/data/DrinkItem.java
@@ -1,17 +1,17 @@
package uk.ac.ab... | true | true | public String toString() {
String s = "Side order, " + getDescription() + ", " + getSize() + "L , �" +
getPrice();
return s;
}
| public String toString() {
String s = "Drink, " + getDescription() + ", " + getSize() + "L , �" +
getPrice();
return s;
}
|
diff --git a/hazelcast/src/main/java/com/hazelcast/executor/ExecutorServiceProxy.java b/hazelcast/src/main/java/com/hazelcast/executor/ExecutorServiceProxy.java
index cab72a591c..d8f4340307 100644
--- a/hazelcast/src/main/java/com/hazelcast/executor/ExecutorServiceProxy.java
+++ b/hazelcast/src/main/java/com/hazelcast/... | true | true | public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException {
if (unit == null) {
throw new NullPointerException("unit must not be null");
}
if (tasks == null) {
throw new NullPointerException(... | public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException {
if (unit == null) {
throw new NullPointerException("unit must not be null");
}
if (tasks == null) {
throw new NullPointerException(... |
diff --git a/main/src/com/google/refine/importers/TsvCsvImporter.java b/main/src/com/google/refine/importers/TsvCsvImporter.java
index 0568ab4a..7d959df0 100644
--- a/main/src/com/google/refine/importers/TsvCsvImporter.java
+++ b/main/src/com/google/refine/importers/TsvCsvImporter.java
@@ -1,206 +1,205 @@
package com.... | false | true | public void read(LineNumberReader lnReader, Project project, String sep, int limit, int skip, int ignoreLines, int headerLines, boolean guessValueType, boolean splitIntoColumns, boolean ignoreQuotes ) throws IOException{
CSVParser parser = (sep != null && sep.length() > 0 && splitIntoColumns) ?
... | public void read(LineNumberReader lnReader, Project project, String sep, int limit, int skip, int ignoreLines, int headerLines, boolean guessValueType, boolean splitIntoColumns, boolean ignoreQuotes ) throws IOException{
CSVParser parser = (sep != null && sep.length() > 0 && splitIntoColumns) ?
... |
diff --git a/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/FlexibleProjectCreationDataModelProvider.java b/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/FlexibleProjectCreationDataModelProvider.java
index d692f773a..685b911e3 ... | true | true | public boolean propertySet(String propertyName, Object propertyValue) {
boolean status = super.propertySet(propertyName, propertyValue);
if (PROJECT_NAME.equals(propertyName)) {
IDataModel projModel = model.getNestedModel(NESTED_MODEL_PROJECT_CREATION);
projModel.setProperty(... | public boolean propertySet(String propertyName, Object propertyValue) {
boolean status = super.propertySet(propertyName, propertyValue);
if (PROJECT_NAME.equals(propertyName)) {
IDataModel projModel = model.getNestedModel(NESTED_MODEL_PROJECT_CREATION);
projModel.setProperty(... |
diff --git a/src/org/mythtv/service/guide/ProgramGuideDownloadService.java b/src/org/mythtv/service/guide/ProgramGuideDownloadService.java
index 6ac193bb..e5049c5a 100644
--- a/src/org/mythtv/service/guide/ProgramGuideDownloadService.java
+++ b/src/org/mythtv/service/guide/ProgramGuideDownloadService.java
@@ -1,147 +1,... | true | true | private void download() {
// Log.v( TAG, "download : enter" );
boolean newDataDownloaded = false;
DateTime start = new DateTime();
start = start.withTime( 0, 0, 0, 0 );
File programGuideCache = mFileHelper.getProgramGuideDataDirectory();
if( programGuideCache.exists() ) {
for( int currentHour =... | private void download() {
// Log.v( TAG, "download : enter" );
boolean newDataDownloaded = false;
DateTime start = new DateTime();
start = start.withTime( 0, 0, 0, 0 );
File programGuideCache = mFileHelper.getProgramGuideDataDirectory();
if( programGuideCache.exists() ) {
for( int currentHour =... |
diff --git a/core/org.eclipse.ptp.remote.core/src/org/eclipse/ptp/remote/core/server/AbstractRemoteServerRunner.java b/core/org.eclipse.ptp.remote.core/src/org/eclipse/ptp/remote/core/server/AbstractRemoteServerRunner.java
index f1a3db63a..32a90f48e 100644
--- a/core/org.eclipse.ptp.remote.core/src/org/eclipse/ptp/remo... | true | true | protected IStatus run(IProgressMonitor monitor) {
assert getLaunchCommand() != null;
final SubMonitor subMon = SubMonitor.convert(monitor, 100);
try {
if (subMon.isCanceled()) {
return Status.CANCEL_STATUS;
}
fRemoteProcess = launchServer(fRemoteConnection, subMon.newChild(50));
if (subMon.is... | protected IStatus run(IProgressMonitor monitor) {
assert getLaunchCommand() != null;
final SubMonitor subMon = SubMonitor.convert(monitor, 100);
try {
if (subMon.isCanceled()) {
return Status.CANCEL_STATUS;
}
fRemoteProcess = launchServer(fRemoteConnection, subMon.newChild(50));
if (subMon.is... |
diff --git a/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/SavePersistentMethod.java b/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/SavePersistentMethod.java
index 331aef7f3..e08808657 100644
--- a/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/m... | true | true | protected Object doInvokeInternal(Object target, Object[] arguments) {
Errors errors = new BindException(target, target.getClass().getName());
GrailsDomainClass domainClass = application.getGrailsDomainClass( target.getClass().getName() );
Validator validator = null;
boolean doValidation = true;
Boolean s... | protected Object doInvokeInternal(Object target, Object[] arguments) {
Errors errors = new BindException(target, target.getClass().getName());
GrailsDomainClass domainClass = application.getGrailsDomainClass( target.getClass().getName() );
Validator validator = null;
boolean doValidation = true;
Boolean s... |
diff --git a/mgmt-console/src/main/java/org/ebayopensource/turmeric/monitoring/client/model/DummyMetricsQueryServiceImpl.java b/mgmt-console/src/main/java/org/ebayopensource/turmeric/monitoring/client/model/DummyMetricsQueryServiceImpl.java
index f05e45a..6059a26 100644
--- a/mgmt-console/src/main/java/org/ebayopensour... | true | true | public void getMetricData(MetricCriteria criteria, MetricResourceCriteria resourceCriteria,
AsyncCallback<MetricData> callback) {
MetricData result = new MetricData();
// result.setRestUrl(URL.encode(MetricsDataRequest.getRestURL(criteria, resourceCriteria)));
result.set... | public void getMetricData(MetricCriteria criteria, MetricResourceCriteria resourceCriteria,
AsyncCallback<MetricData> callback) {
MetricData result = new MetricData();
// result.setRestUrl(URL.encode(MetricsDataRequest.getRestURL(criteria, resourceCriteria)));
result.set... |
diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManager.java b/src/main/java/net/minecraft/server/ServerConfigurationManager.java
index 933e9b4..695fb5a 100755
--- a/src/main/java/net/minecraft/server/ServerConfigurationManager.java
+++ b/src/main/java/net/minecraft/server/ServerConfigurationManager.... | true | true | public EntityPlayerMP a(EntityPlayerMP entityplayermp, int i0, boolean flag0, Location loc) {
entityplayermp.o().p().a(entityplayermp);
entityplayermp.o().p().b(entityplayermp);
entityplayermp.o().r().c(entityplayermp);
this.a.remove(entityplayermp);
entityplayermp.getCanaryW... | public EntityPlayerMP a(EntityPlayerMP entityplayermp, int i0, boolean flag0, Location loc) {
entityplayermp.o().p().a(entityplayermp);
entityplayermp.o().p().b(entityplayermp);
entityplayermp.o().r().c(entityplayermp);
this.a.remove(entityplayermp);
entityplayermp.getCanaryW... |
diff --git a/configuration-api/src/main/java/org/commonjava/web/config/ConfigurationException.java b/configuration-api/src/main/java/org/commonjava/web/config/ConfigurationException.java
index 0133429..009f892 100644
--- a/configuration-api/src/main/java/org/commonjava/web/config/ConfigurationException.java
+++ b/confi... | true | true | public synchronized String getMessage()
{
if ( formattedMessage == null )
{
final String format = super.getMessage();
if ( params == null || params.length < 1 )
{
formattedMessage = format;
}
else
{
... | public synchronized String getMessage()
{
if ( formattedMessage == null )
{
final String format = super.getMessage();
if ( params == null || params.length < 1 )
{
formattedMessage = format;
}
else
{
... |
diff --git a/fog.eclipse.launcher/src/de/tuilmenau/ics/fog/eclipse/launcher/FoGLaunchConfigurationDelegate.java b/fog.eclipse.launcher/src/de/tuilmenau/ics/fog/eclipse/launcher/FoGLaunchConfigurationDelegate.java
index 91275f0c..1c1aef7c 100644
--- a/fog.eclipse.launcher/src/de/tuilmenau/ics/fog/eclipse/launcher/FoGLau... | true | true | public void launch(ILaunchConfiguration configuration,
String mode,
ILaunch launch,
IProgressMonitor monitor) throws CoreException
{
EclipseLaunchConfiguration config = new EclipseLaunchConfiguration(configuration);
boolean terminate = config.get(FoGLaunchConfiguration... | public void launch(ILaunchConfiguration configuration,
String mode,
ILaunch launch,
IProgressMonitor monitor) throws CoreException
{
EclipseLaunchConfiguration config = new EclipseLaunchConfiguration(configuration);
boolean terminate = config.get(FoGLaunchConfiguration... |
diff --git a/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/request/BatchRequestDsml.java b/ldapstudio-dsml-parser/src/main/java/org/apache/directory/ldapstudio/dsmlv2/request/BatchRequestDsml.java
index 3061d5e32..320bddf04 100644
--- a/ldapstudio-dsml-parser/src/main/java/org/apache/direc... | true | true | public String toDsml()
{
Document document = DocumentHelper.createDocument();
Element element = document.addElement( "batchResponse" );
// RequestID
if ( requestID != 0 )
{
element.addAttribute( "requestID", "" + requestID );
}
// ResponseOrd... | public String toDsml()
{
Document document = DocumentHelper.createDocument();
Element element = document.addElement( "batchRequest" );
// RequestID
if ( requestID != 0 )
{
element.addAttribute( "requestID", "" + requestID );
}
// ResponseOrde... |
diff --git a/src/frege/imp/builders/FregeBuilder.java b/src/frege/imp/builders/FregeBuilder.java
index d997016..0c3fe57 100644
--- a/src/frege/imp/builders/FregeBuilder.java
+++ b/src/frege/imp/builders/FregeBuilder.java
@@ -1,321 +1,322 @@
package frege.imp.builders;
import java.io.PrintWriter;
import java.io.Str... | false | true | protected boolean runParserForCompiler(final IFile file,
final IProgressMonitor monitor) {
// a class we can give the compiler as progress monitor
class CompProgress extends org.eclipse.jdt.core.compiler.CompilationProgress implements IProgressMonitor {
@Override
public void begin(int arg0) { }
@Ove... | protected boolean runParserForCompiler(final IFile file,
final IProgressMonitor monitor) {
// a class we can give the compiler as progress monitor
class CompProgress extends org.eclipse.jdt.core.compiler.CompilationProgress implements IProgressMonitor {
@Override
public void begin(int arg0) { }
@Ove... |
diff --git a/E-Adventure/src/es/eucm/eadventure/editor/gui/editdialogs/effectdialogs/PlaySoundEffectDialog.java b/E-Adventure/src/es/eucm/eadventure/editor/gui/editdialogs/effectdialogs/PlaySoundEffectDialog.java
index 22f28da3..86da302f 100644
--- a/E-Adventure/src/es/eucm/eadventure/editor/gui/editdialogs/effectdialo... | true | true | public PlaySoundEffectDialog( EffectsController effectsController, HashMap<Integer, Object> currentProperties ) {
// Call the super method
super( TC.get( "PlaySoundEffect.Title" ), false );
this.effectsController = effectsController;
// Load the image for the delete content button
... | public PlaySoundEffectDialog( EffectsController effectsController, HashMap<Integer, Object> currentProperties ) {
// Call the super method
super( TC.get( "PlaySoundEffect.Title" ), false );
this.effectsController = effectsController;
// Load the image for the delete content button
... |
diff --git a/src/java/main/org/jaxen/function/PositionFunction.java b/src/java/main/org/jaxen/function/PositionFunction.java
index c1dd2bd..9ea045f 100644
--- a/src/java/main/org/jaxen/function/PositionFunction.java
+++ b/src/java/main/org/jaxen/function/PositionFunction.java
@@ -1,129 +1,129 @@
/*
* $Header$
* $R... | true | true | public Object call(Context context, List args) throws FunctionCallException
{
if ( args.size() == 0 )
{
return evaluate( context );
}
throw new FunctionCallException( "position() requires no arguments." );
}
| public Object call(Context context, List args) throws FunctionCallException
{
if ( args.size() == 0 )
{
return evaluate( context );
}
throw new FunctionCallException( "position() does not take any arguments." );
}
|
diff --git a/jstest-maven-plugin/src/main/java/net/awired/jstest/executor/PhantomJsExecutor.java b/jstest-maven-plugin/src/main/java/net/awired/jstest/executor/PhantomJsExecutor.java
index b9e62c4b..9c0905e9 100644
--- a/jstest-maven-plugin/src/main/java/net/awired/jstest/executor/PhantomJsExecutor.java
+++ b/jstest-ma... | true | true | public void execute(String runnerUrl) throws Exception {
copyTestRunner(runnerUrl);
CMD.append(targetSrcDir.getCanonicalPath()+RUN_QUNIT_JS+" ");
CMD.append(runnerUrl+"?emulator=true");
log.info("command " + CMD);
Commandline cl = new Commandline(CMD.toStrin... | public void execute(String runnerUrl) throws Exception {
copyTestRunner(runnerUrl);
CMD.append("\""+targetSrcDir.getCanonicalPath() + RUN_QUNIT_JS+"\" ");
CMD.append(runnerUrl+"?emulator=true");
log.info("command " + CMD);
Commandline cl = new Commandline(CM... |
diff --git a/src/main/java/com/atreceno/it/javanese/attic/Defragmenter.java b/src/main/java/com/atreceno/it/javanese/attic/Defragmenter.java
index 54f534d..586bd75 100644
--- a/src/main/java/com/atreceno/it/javanese/attic/Defragmenter.java
+++ b/src/main/java/com/atreceno/it/javanese/attic/Defragmenter.java
@@ -1,112 +... | true | true | private static String reassemble(String line) {
// Each line contains text fragments separated by a semicolon.
String[] fragments = line.split(";");
List<String> list = new ArrayList<String>(Arrays.asList(fragments));
// Sort the fragments by size
Collections.sort(list, new Comparator<String>() {
@Overr... | private static String reassemble(String line) {
// Each line contains text fragments separated by a semicolon.
String[] fragments = line.split(";");
List<String> list = new ArrayList<String>(Arrays.asList(fragments));
// Sort the fragments by size
Collections.sort(list, new Comparator<String>() {
@Overr... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/notifications/TaskListServiceMessageControl.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/notifications/TaskListServiceMessageControl.java
index 80b308958..fa207e3bb 100644
--- a/org.eclipse.mylyn.tasks.ui/src/or... | true | true | public Control createControl(Composite parent) {
FormColors colors = TasksUiPlugin.getDefault().getFormColors(parent.getDisplay());
head = new GradientCanvas(parent, SWT.NONE);
GridLayout headLayout = new GridLayout();
headLayout.marginHeight = 0;
headLayout.marginWidth = 0;
headLayout.horizontalSpacing = ... | public Control createControl(Composite parent) {
FormColors colors = TasksUiPlugin.getDefault().getFormColors(parent.getDisplay());
head = new GradientCanvas(parent, SWT.NONE);
GridLayout headLayout = new GridLayout();
headLayout.marginHeight = 0;
headLayout.marginWidth = 0;
headLayout.horizontalSpacing = ... |
diff --git a/src/com/johndaniel/glosar/TranslateHolder.java b/src/com/johndaniel/glosar/TranslateHolder.java
index a029b54..4f55929 100644
--- a/src/com/johndaniel/glosar/TranslateHolder.java
+++ b/src/com/johndaniel/glosar/TranslateHolder.java
@@ -1,79 +1,79 @@
package com.johndaniel.glosar;
import com.actionbarsh... | true | true | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
thisView = inflater.inflate(R.layout.activity_translate, container, false);
//N�sta steg: Skapa TranslateActivity igen och l�t den inneh�lla en viewpager
if (savedIns... | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
thisView = inflater.inflate(R.layout.activity_translate, container, false);
//N�sta steg: Skapa TranslateActivity igen och l�t den inneh�lla en viewpager
if (savedIns... |
diff --git a/src/main/java/pl/agh/enrollme/service/PreferencesManagementService.java b/src/main/java/pl/agh/enrollme/service/PreferencesManagementService.java
index 1edb406..683faf6 100644
--- a/src/main/java/pl/agh/enrollme/service/PreferencesManagementService.java
+++ b/src/main/java/pl/agh/enrollme/service/Preferenc... | true | true | public void saveScheduleController(Enroll currentEnroll, ScheduleController scheduleController) {
currentEnroll = enrollDAO.getByPK(currentEnroll.getEnrollID());
//Importing enroll configuration
final EnrollConfiguration enrollConfiguration = currentEnroll.getEnrollConfiguration();
... | public void saveScheduleController(Enroll currentEnroll, ScheduleController scheduleController) {
currentEnroll = enrollDAO.getByPK(currentEnroll.getEnrollID());
//Importing enroll configuration
final EnrollConfiguration enrollConfiguration = currentEnroll.getEnrollConfiguration();
... |
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
index c89967b6..2f90c2f6 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
+++ b/pac... | true | true | public boolean onTouchEvent(MotionEvent event) {
boolean shouldRecycleEvent = false;
if (PhoneStatusBar.SETTINGS_DRAG_SHORTCUT && mStatusBar.mHasFlipSettings) {
boolean flip = false;
boolean swipeFlipJustFinished = false;
boolean swipeFlipJustStarted = false;
... | public boolean onTouchEvent(MotionEvent event) {
boolean shouldRecycleEvent = false;
if (PhoneStatusBar.SETTINGS_DRAG_SHORTCUT && mStatusBar.mHasFlipSettings) {
boolean flip = false;
boolean swipeFlipJustFinished = false;
boolean swipeFlipJustStarted = false;
... |
diff --git a/src/com/iteye/weimingtom/tween/SimpleTweener.java b/src/com/iteye/weimingtom/tween/SimpleTweener.java
index 3c0388a..6c913cb 100644
--- a/src/com/iteye/weimingtom/tween/SimpleTweener.java
+++ b/src/com/iteye/weimingtom/tween/SimpleTweener.java
@@ -1,615 +1,620 @@
package com.iteye.weimingtom.tween;
/**... | false | true | public boolean update() {
if (isStarted) {
if (enableTimeCheck) {
if (this.currentTime >= this.totoalTime) {
this.isStarted = false;
this.cx = this.cy = 0;
return false;
} else {
this.cx = interpolator(currentTime, x, dx, totoalTime);
this.cy = interpolator(currentTime, y, dy, tot... | public boolean update() {
if (isStarted) {
if (enableTimeCheck) {
if (this.currentTime > this.totoalTime) {
this.isStarted = false;
this.cx = this.cy = 0;
return false;
} else if (this.currentTime == this.totoalTime) {
this.cx = this.x + this.dx;
this.cy = this.y + this.dy;
+... |
diff --git a/src/org/broad/igv/track/TrackLoader.java b/src/org/broad/igv/track/TrackLoader.java
index cd071d8c..cb140a0f 100644
--- a/src/org/broad/igv/track/TrackLoader.java
+++ b/src/org/broad/igv/track/TrackLoader.java
@@ -1,1048 +1,1048 @@
/*
* Copyright (c) 2007-2011 by The Broad Institute, Inc. and the Massac... | true | true | public List<Track> load(ResourceLocator locator, IGV igv) {
this.igv = igv;
Genome genome = igv.getGenomeManager().getCurrentGenome();
try {
String typeString = locator.getType();
if (typeString == null) {
typeString = locator.getPath().toLowerCase()... | public List<Track> load(ResourceLocator locator, IGV igv) {
this.igv = igv;
Genome genome = igv.getGenomeManager().getCurrentGenome();
try {
String typeString = locator.getType();
if (typeString == null) {
typeString = locator.getPath().toLowerCase()... |
diff --git a/aura/src/main/java/org/auraframework/http/AuraFrameworkServlet.java b/aura/src/main/java/org/auraframework/http/AuraFrameworkServlet.java
index fc13901121..214b2fe252 100644
--- a/aura/src/main/java/org/auraframework/http/AuraFrameworkServlet.java
+++ b/aura/src/main/java/org/auraframework/http/AuraFramewo... | false | true | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// defend against directory traversal attack
// getPathInfo() has already resolved all ".." * "%2E%2E" relative
// references in the path
// and ensured that no direc... | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// defend against directory traversal attack
// getPathInfo() has already resolved all ".." * "%2E%2E" relative
// references in the path
// and ensured that no direc... |
diff --git a/javalib/src/heatmap/src/SetEntityGrid.java b/javalib/src/heatmap/src/SetEntityGrid.java
index 7a4f4e4..e909cf8 100644
--- a/javalib/src/heatmap/src/SetEntityGrid.java
+++ b/javalib/src/heatmap/src/SetEntityGrid.java
@@ -1,331 +1,331 @@
import java.awt.*;
import org.apache.commons.codec.binary.Base64;
... | true | true | public static void main(String[] args) throws Exception{
// TODO Auto-generated method stub
/*
Set newset1 = new Set((new JSONArray("[{'_metadata':{'name':'viral reproduction','id':123012,'type':'set'},'_name':'mod6','_delim':'^','_active':1,'_elements':{'mod8':'','Oas1a':'','Banf1'... | public static void main(String[] args) throws Exception{
// TODO Auto-generated method stub
/*
Set newset1 = new Set((new JSONArray("[{'_metadata':{'name':'viral reproduction','id':123012,'type':'set'},'_name':'mod6','_delim':'^','_active':1,'_elements':{'mod8':'','Oas1a':'','Banf1'... |
diff --git a/server/src/org/bedework/caldav/server/CaldavBWIntf.java b/server/src/org/bedework/caldav/server/CaldavBWIntf.java
index ac4399c..0c2d145 100644
--- a/server/src/org/bedework/caldav/server/CaldavBWIntf.java
+++ b/server/src/org/bedework/caldav/server/CaldavBWIntf.java
@@ -1,1759 +1,1761 @@
/* *************... | true | true | private CaldavURI findURI(String uri,
int existance,
int nodeType,
final CalDAVCollection collection,
CalDAVEvent ev,
CalDAVResource rsrc) throws WebdavException {
try {
... | private CaldavURI findURI(String uri,
int existance,
int nodeType,
final CalDAVCollection collection,
CalDAVEvent ev,
CalDAVResource rsrc) throws WebdavException {
try {
... |
diff --git a/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java b/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java
index aa8029e..1ba81a8 100644
--- a/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java
+++ b/photoviewer/src/com/android/ex/photo/PhotoViewActivity.java
@@ -1,543 +1,541 @@
/*... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final ActivityManager mgr = (ActivityManager) getApplicationContext().
getSystemService(Activity.ACTIVITY_SERVICE);
sMemoryClass = mgr.getMemoryClass();
Intent mIntent = getInte... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final ActivityManager mgr = (ActivityManager) getApplicationContext().
getSystemService(Activity.ACTIVITY_SERVICE);
sMemoryClass = mgr.getMemoryClass();
Intent mIntent = getInte... |
diff --git a/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/internal/graphics/InternalImageFactory.java b/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/internal/graphics/InternalImageFactory.java
index 550c8fc4c..452ecd5f2 100644
--- a/bundles/org.eclipse.rap.rwt/src/org/eclipse/swt/internal/graphics/InternalImageFa... | true | true | private static int getHashCode( final ImageData imageData ) {
int result;
if( imageData.data == null ) {
result = 0;
} else {
result = 1;
for( int i = 0; i < imageData.data.length; i++ ) {
result = 31 * result + imageData.data[ i ];
}
}
if( imageData.palette != nul... | private static int getHashCode( final ImageData imageData ) {
int result;
if( imageData.data == null ) {
result = 0;
} else {
result = 1;
for( int i = 0; i < imageData.data.length; i++ ) {
result = 31 * result + imageData.data[ i ];
}
}
if( imageData.palette != nul... |
diff --git a/activemq-console/src/main/java/org/apache/activemq/console/command/AbstractCommand.java b/activemq-console/src/main/java/org/apache/activemq/console/command/AbstractCommand.java
index 0670325df..2b858d78f 100644
--- a/activemq-console/src/main/java/org/apache/activemq/console/command/AbstractCommand.java
+... | true | true | protected void handleOption(String token, List tokens) throws Exception {
// If token is a help option
if (token.equals("-h") || token.equals("-?") || token.equals("--help")) {
isPrintHelp = true;
tokens.clear();
// If token is a version option
} else if (tok... | protected void handleOption(String token, List tokens) throws Exception {
// If token is a help option
if (token.equals("-h") || token.equals("-?") || token.equals("--help")) {
isPrintHelp = true;
tokens.clear();
// If token is a version option
} else if (tok... |
diff --git a/src/blur-mapred/src/test/java/com/nearinfinity/blur/mapreduce/lib/BlurRecordWriterTest.java b/src/blur-mapred/src/test/java/com/nearinfinity/blur/mapreduce/lib/BlurRecordWriterTest.java
index a2dc40bc..2040bb35 100644
--- a/src/blur-mapred/src/test/java/com/nearinfinity/blur/mapreduce/lib/BlurRecordWriterT... | false | true | public void testBlurRecordWriter() throws IOException, InterruptedException {
JobID jobId = new JobID();
TaskID tId = new TaskID(jobId, false, 13);
TaskAttemptID taskId = new TaskAttemptID(tId, 0);
Configuration conf = new Configuration();
String string = "./tmp/output-record-writer-test-newapi";
... | public void testBlurRecordWriter() throws IOException, InterruptedException {
JobID jobId = new JobID();
TaskID tId = new TaskID(jobId, false, 13);
TaskAttemptID taskId = new TaskAttemptID(tId, 0);
Configuration conf = new Configuration();
String pathStr = "./tmp/output-record-writer-test-newapi";... |
diff --git a/xwiki-batchimport-api/src/main/java/org/xwiki/batchimport/BatchImportService.java b/xwiki-batchimport-api/src/main/java/org/xwiki/batchimport/BatchImportService.java
index 1be7c6a..6ee90bf 100644
--- a/xwiki-batchimport-api/src/main/java/org/xwiki/batchimport/BatchImportService.java
+++ b/xwiki-batchimport... | true | true | public BatchImportConfiguration readConfigurationFromRequest(BatchImportConfiguration config)
{
XWikiRequest request = getRequest();
String separatorValue = request.getParameter("batchimportseparator");
// only take into account if it's not empty and it's exactly one
if (!String... | public BatchImportConfiguration readConfigurationFromRequest(BatchImportConfiguration config)
{
XWikiRequest request = getRequest();
String separatorValue = request.getParameter("batchimportseparator");
// only take into account if it's not empty and it's exactly one
if (!String... |
diff --git a/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/server/servlet/HttpServletDispatcher.java b/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/plugins/server/servlet/HttpServletDispatcher.java
index e15ad3238..356ca2fe2 100644
--- a/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/plu... | true | true | public void service(String httpMethod, HttpServletRequest request, HttpServletResponse response) throws IOException
{
try
{
//logger.info("***PATH: " + request.getRequestURL());
// classloader/deployment aware RestasyProviderFactory. Used to have request specific
// Resteas... | public void service(String httpMethod, HttpServletRequest request, HttpServletResponse response) throws IOException
{
try
{
//logger.info("***PATH: " + request.getRequestURL());
// classloader/deployment aware RestasyProviderFactory. Used to have request specific
// Resteas... |
diff --git a/src/com/android/mms/util/Recycler.java b/src/com/android/mms/util/Recycler.java
index 9bee38c..1180c26 100644
--- a/src/com/android/mms/util/Recycler.java
+++ b/src/com/android/mms/util/Recycler.java
@@ -1,443 +1,446 @@
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the A... | true | true | public void deleteOldMessagesInSameThreadAsMessage(Context context, Uri uri) {
if (LOCAL_DEBUG) {
Log.v(TAG, "MMS: deleteOldMessagesByUri");
}
Cursor cursor = null;
long latestDate = 0;
long threadId = 0;
try {
... | public void deleteOldMessagesInSameThreadAsMessage(Context context, Uri uri) {
if (LOCAL_DEBUG) {
Log.v(TAG, "MMS: deleteOldMessagesByUri");
}
if (!isAutoDeleteEnabled(context)) {
return;
}
Cursor cursor = null;
... |
diff --git a/core/src/org/icepdf/core/pobjects/fonts/ofont/Font.java b/core/src/org/icepdf/core/pobjects/fonts/ofont/Font.java
index be3ecbd9..c676b15b 100644
--- a/core/src/org/icepdf/core/pobjects/fonts/ofont/Font.java
+++ b/core/src/org/icepdf/core/pobjects/fonts/ofont/Font.java
@@ -1,735 +1,735 @@
/*
* Copyright... | true | true | public synchronized void init() {
// flag for initiated fonts
if (inited) {
return;
}
// re-initialize the char mapping array based on the encoding of the font
if (encoding != null) {
for (char i = 0; i < 256; i++) {
cMap[i] = encoding... | public synchronized void init() {
// flag for initiated fonts
if (inited) {
return;
}
// re-initialize the char mapping array based on the encoding of the font
if (encoding != null) {
for (char i = 0; i < 256; i++) {
cMap[i] = encoding... |
diff --git a/carrot2/components/carrot2-input-yahooapi/src/com/dawidweiss/carrot/input/yahoo/YahooSearchService.java b/carrot2/components/carrot2-input-yahooapi/src/com/dawidweiss/carrot/input/yahoo/YahooSearchService.java
index 52b7914bd..a7542e022 100644
--- a/carrot2/components/carrot2-input-yahooapi/src/com/dawidwe... | false | true | public void query(final String query, final int requestedResults,
YahooSearchResultConsumer consumer)
throws IOException
{
final MultiThreadedHttpConnectionManager connectionManager = new MultiThreadedHttpConnectionManager();
final HttpClient client = new HttpClient(connect... | public void query(final String query, final int requestedResults,
YahooSearchResultConsumer consumer)
throws IOException
{
final MultiThreadedHttpConnectionManager connectionManager = new MultiThreadedHttpConnectionManager();
final HttpClient client = new HttpClient(connect... |
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaStatus.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaStatus.java
index 240d80fc3..c211d87d2 100644
--- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla... | true | true | public String getMessage() {
switch (getCode()) {
case RepositoryStatus.ERROR_REPOSITORY_LOGIN:
return NLS.bind(Messages.BugzillaStatus_repositoryLoginFailure, this.getRepositoryUrl(), this.errorMessage);
case RepositoryStatus.ERROR_REPOSITORY_NOT_FOUND:
return NLS.bind(Messages.BugzillaStatus_repositoryN... | public String getMessage() {
switch (getCode()) {
case RepositoryStatus.ERROR_REPOSITORY_LOGIN:
return NLS.bind(Messages.BugzillaStatus_repositoryLoginFailure, this.getRepositoryUrl(), this.errorMessage);
case RepositoryStatus.ERROR_REPOSITORY_NOT_FOUND:
return NLS.bind(Messages.BugzillaStatus_repositoryN... |
diff --git a/src/org/jmist/framework/services/WorkerClient.java b/src/org/jmist/framework/services/WorkerClient.java
index ced296b7..27f315fa 100644
--- a/src/org/jmist/framework/services/WorkerClient.java
+++ b/src/org/jmist/framework/services/WorkerClient.java
@@ -1,44 +1,44 @@
/**
*
*/
package org.jmist.framew... | true | true | public static void main(String[] args) {
if (System.getSecurityManager() == null) {
System.setSecurityManager(new RMISecurityManager());
}
String host = args[0].trim().length() > 0 ? args[0] : "localhost";
JDialog dialog = new JDialog();
ProgressTreePanel monitor = new ProgressTreeP... | public static void main(String[] args) {
if (System.getSecurityManager() == null) {
System.setSecurityManager(new RMISecurityManager());
}
String host = args.length > 0 ? args[0] : "localhost";
JDialog dialog = new JDialog();
ProgressTreePanel monitor = new ProgressTreePanel();
Ex... |
diff --git a/integration/src/main/java/org/obiba/magma/integration/IntegrationApp.java b/integration/src/main/java/org/obiba/magma/integration/IntegrationApp.java
index abdb3774..075b4a0a 100644
--- a/integration/src/main/java/org/obiba/magma/integration/IntegrationApp.java
+++ b/integration/src/main/java/org/obiba/mag... | true | true | public static void main(String[] args) throws IOException, NoSuchAlgorithmException {
new MagmaEngine().extend(new MagmaJsExtension()).extend(new MagmaXStreamExtension());
XStreamIntegrationServiceFactory factory = new XStreamIntegrationServiceFactory();
IntegrationDatasource integrationDatasource = new ... | public static void main(String[] args) throws IOException, NoSuchAlgorithmException {
new MagmaEngine().extend(new MagmaJsExtension()).extend(new MagmaXStreamExtension());
XStreamIntegrationServiceFactory factory = new XStreamIntegrationServiceFactory();
IntegrationDatasource integrationDatasource = new ... |
diff --git a/server/mmud/commands/guilds/SetUrlCommand.java b/server/mmud/commands/guilds/SetUrlCommand.java
index ce324ce8..cad5d793 100644
--- a/server/mmud/commands/guilds/SetUrlCommand.java
+++ b/server/mmud/commands/guilds/SetUrlCommand.java
@@ -1,77 +1,77 @@
/*----------------------------------------------------... | true | true | public boolean run(User aUser)
throws MudException
{
Logger.getLogger("mmud").finer("");
if (!super.run(aUser))
{
return false;
}
String[] myParsed = getParsedCommand();
aUser.getGuild().setGuildUrl(
getCommand().substring(myParsed[0].length() + 1)
);
Database.writeLog(aUser.getName(), " set g... | public boolean run(User aUser)
throws MudException
{
Logger.getLogger("mmud").finer("");
if (!super.run(aUser))
{
return false;
}
String[] myParsed = getParsedCommand();
aUser.getGuild().setGuildUrl(
getCommand().substring(myParsed[0].length() + 1)
);
Database.writeLog(aUser.getName(), " set g... |
diff --git a/net.sf.eclipsefp.haskell.scion.client/src/net/sf/eclipsefp/haskell/scion/internal/servers/ScionServer.java b/net.sf.eclipsefp.haskell.scion.client/src/net/sf/eclipsefp/haskell/scion/internal/servers/ScionServer.java
index 5f38adb8..5ad69d26 100644
--- a/net.sf.eclipsefp.haskell.scion.client/src/net/sf/ecli... | true | true | public final void stopServer(boolean cleanly) {
Trace.trace(serverName, "Stopping server");
try {
// Clear out any pending commands
commandQueue.clear();
if (cleanly) {
// Send the quit command, but don't bother waiting for the result to arrive. If we do wait for the
... | public final void stopServer(boolean cleanly) {
Trace.trace(serverName, "Stopping server");
try {
// Clear out any pending commands
commandQueue.clear();
if (cleanly) {
// Send the quit command, but don't bother waiting for the result to arrive. If we do wait for the
... |
diff --git a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/designtime/internal/view/model/jsp/analyzer/TagAnalyzer.java b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/designtime/internal/view/model/jsp/analyzer/TagAnalyzer.java
index cd721d591..150d160e7 100644
--- a/jsf/plugins/org.eclip... | true | true | public static TLDTagElement createTLDTagElement(
final TLDElementDeclaration tldDecl, final IProject project)
{
if (JSFCoreTraceOptions.TRACE_JSPTAGINTROSPECTOR)
{
JSFCoreTraceOptions
.log(String
.format(
... | public static TLDTagElement createTLDTagElement(
final TLDElementDeclaration tldDecl, final IProject project)
{
if (JSFCoreTraceOptions.TRACE_JSPTAGINTROSPECTOR)
{
JSFCoreTraceOptions
.log(String
.format(
... |
diff --git a/onebusaway-transit-data-federation/src/main/java/org/onebusaway/transit_data_federation/impl/otp/ContractionHierarchySetWrapper.java b/onebusaway-transit-data-federation/src/main/java/org/onebusaway/transit_data_federation/impl/otp/ContractionHierarchySetWrapper.java
index 09742e8c..ffdd4254 100644
--- a/o... | true | true | public void setup() throws IOException, ClassNotFoundException {
File path = _bundle.getGraphPath();
Graph graph = new Graph();
if (path.exists()) {
_source = ObjectSerializationLibrary.readObject(path);
graph = _source.getGraph();
} else {
_source = null;
}
_streetToStop... | public void setup() throws IOException, ClassNotFoundException {
File path = _bundle.getGraphPath();
Graph graph = new Graph();
if (path.exists()) {
_source = ObjectSerializationLibrary.readObject(path);
graph = _source.getGraph();
} else {
_source = null;
}
_streetToStop... |
diff --git a/main/src/com/google/android/apps/dashclock/weather/WeatherData.java b/main/src/com/google/android/apps/dashclock/weather/WeatherData.java
index 3500a43..7d2afaa 100644
--- a/main/src/com/google/android/apps/dashclock/weather/WeatherData.java
+++ b/main/src/com/google/android/apps/dashclock/weather/WeatherD... | false | true | public static int getConditionIconId(int conditionCode) {
// http://developer.yahoo.com/weather/
switch (conditionCode) {
case 20: // foggy
case 21: // haze
case 22: // smoky
return R.drawable.ic_weather_foggy;
case 23: // blustery
... | public static int getConditionIconId(int conditionCode) {
// http://developer.yahoo.com/weather/
switch (conditionCode) {
case 19: // dust or sand
case 20: // foggy
case 21: // haze
case 22: // smoky
return R.drawable.ic_weather_foggy;
... |
diff --git a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java
index 0b7531f..1faf7b0 100644
--- a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java
+++ b/src/com/android/settings/inputmethod/InputMe... | false | true | public void onCreate(Bundle icicle) {
super.onCreate(icicle);
addPreferencesFromResource(R.xml.language_settings);
try {
mDefaultInputMethodSelectorVisibility = Integer.valueOf(
getString(R.string.input_method_selector_visibility_default_value));
} c... | public void onCreate(Bundle icicle) {
super.onCreate(icicle);
addPreferencesFromResource(R.xml.language_settings);
try {
mDefaultInputMethodSelectorVisibility = Integer.valueOf(
getString(R.string.input_method_selector_visibility_default_value));
} c... |
diff --git a/src/main/java/org/jboss/ejb/client/TransactionInterceptor.java b/src/main/java/org/jboss/ejb/client/TransactionInterceptor.java
index 69df88f..6ee9285 100644
--- a/src/main/java/org/jboss/ejb/client/TransactionInterceptor.java
+++ b/src/main/java/org/jboss/ejb/client/TransactionInterceptor.java
@@ -1,47 +1... | true | true | public void handleInvocation(final EJBClientInvocationContext<?> context) throws Exception {
final EJBClientTransactionContext current = EJBClientTransactionContext.getCurrent();
final TransactionID transactionID = current.getAssociatedTransactionID(context);
if (transactionID instanceof Use... | public void handleInvocation(final EJBClientInvocationContext<?> context) throws Exception {
final EJBClientTransactionContext current = EJBClientTransactionContext.getCurrent();
// A EJB client tx context allows to set selectors and there's no guarantee that the
// selector returns a non-nu... |
diff --git a/GetName/GetName.java b/GetName/GetName.java
index c01ba26..414c8e8 100644
--- a/GetName/GetName.java
+++ b/GetName/GetName.java
@@ -1,40 +1,40 @@
//Copyright @fredghostkyle
//2013 allrights myne!
import java.io.*;
class GetName {
public static void main(String args[]) throws IOException
{
//... | true | true | public static void main(String args[]) throws IOException
{
//start
System.out.println("© fredghostkyle 2013. ALL RIGHTS RESERVED\nDo not copy or remake. Made in Java.");
System.out.println("http://Fredghostkyle.com/CR \n"); //for CopyRight
System.out.println("Enter your name: "); //Asks for name
InputSt... | public static void main(String args[]) throws IOException
{
//start
System.out.println("© fredghostkyle 2013. ALL RIGHTS RESERVED\nDo not copy or remake. Made in Java.");
System.out.println("http://Fredghostkyle.com/CR \n"); //for CopyRight
System.out.println("Enter your name: "); //Asks for name
InputSt... |
diff --git a/src/main/java/de/thm/arsnova/controller/QuestionByLecturerController.java b/src/main/java/de/thm/arsnova/controller/QuestionByLecturerController.java
index 2537a8ea..007ff95a 100644
--- a/src/main/java/de/thm/arsnova/controller/QuestionByLecturerController.java
+++ b/src/main/java/de/thm/arsnova/controller... | true | true | public final void updateQuestion(
@PathVariable final String sessionkey,
@PathVariable final String questionId,
@RequestBody final Question question,
final HttpServletResponse response
) {
response.setStatus(HttpStatus.NO_CONTENT.value());
/* TODO: Not yet implemented! The following code ist copy a... | public final void updateQuestion(
@PathVariable final String sessionkey,
@PathVariable final String questionId,
@RequestBody final Question question,
final HttpServletResponse response
) {
response.setStatus(HttpStatus.NO_CONTENT.value());
/* TODO: Not yet implemented! The following code has been c... |
diff --git a/GetName/GetName.java b/GetName/GetName.java
index 1b79b1e..d54ea38 100644
--- a/GetName/GetName.java
+++ b/GetName/GetName.java
@@ -1,40 +1,40 @@
//Copyright @fredghostkyle
//2013 allrights myne!
import java.io.*;
class GetName {
public static void main(String args[]) throws IOException
{
//... | true | true | public static void main(String args[]) throws IOException
{
//start
System.out.println("© fredghostkyle 2013. ALL RIGHTS RESERVED\nDo not copy or remake. Made in Java.");
System.out.println("http://Fredghostkyle.com/CR \n"); //for CopyRight
System.out.println("Enter your name: "); //Asks for name
InputSt... | public static void main(String args[]) throws IOException
{
//start
System.out.println("© fredghostkyle 2013. ALL RIGHTS RESERVED\nDo not copy or remake. Made in Java.");
System.out.println("http://Fredghostkyle.com/CR \n"); //for CopyRight
System.out.println("Enter your name: "); //Asks for name
InputSt... |
diff --git a/atlas-web/src/main/java/ae3/service/AtlasBitIndexQueryService.java b/atlas-web/src/main/java/ae3/service/AtlasBitIndexQueryService.java
index 855b5ea2d..9178e31e9 100644
--- a/atlas-web/src/main/java/ae3/service/AtlasBitIndexQueryService.java
+++ b/atlas-web/src/main/java/ae3/service/AtlasBitIndexQueryServ... | true | true | public List<Experiment> getExperimentsSortedByPvalueTRank(
final Long geneId,
final Attribute attribute,
int fromRow,
int toRow) {
List<Attribute> attrs;
if (attribute.getValue() == null) { // Empty attribute
List<String> efs = getScoringE... | public List<Experiment> getExperimentsSortedByPvalueTRank(
final Long geneId,
final Attribute attribute,
int fromRow,
int toRow) {
List<Attribute> attrs;
if (attribute.getValue() == null) { // Empty attribute
List<String> efs = getScoringE... |
diff --git a/src/com/jidesoft/plaf/aqua/AquaJideUtils.java b/src/com/jidesoft/plaf/aqua/AquaJideUtils.java
index a4c12035..2538ce80 100644
--- a/src/com/jidesoft/plaf/aqua/AquaJideUtils.java
+++ b/src/com/jidesoft/plaf/aqua/AquaJideUtils.java
@@ -1,618 +1,620 @@
/*
* @(#)AquaJideUtils.java
*
* Copyright 2002 JID... | true | true | public static void initComponentDefaults(UIDefaults table) {
Toolkit toolkit = Toolkit.getDefaultToolkit();
Object defaultTextColor = UIDefaultsLookup.get("controlText");
Object defaultBackgroundColor = UIDefaultsLookup.get("Panel.background"); // AquaImageFactory.getWindowBackgroundColorU... | public static void initComponentDefaults(UIDefaults table) {
Toolkit toolkit = Toolkit.getDefaultToolkit();
Object defaultTextColor = UIDefaultsLookup.get("controlText");
Object defaultBackgroundColor = UIDefaultsLookup.get("Panel.background"); // AquaImageFactory.getWindowBackgroundColorU... |
diff --git a/com.ibm.wala.core/src/com/ibm/wala/util/io/CommandLine.java b/com.ibm.wala.core/src/com/ibm/wala/util/io/CommandLine.java
index c0cb400a2..d7f65537e 100644
--- a/com.ibm.wala.core/src/com/ibm/wala/util/io/CommandLine.java
+++ b/com.ibm.wala.core/src/com/ibm/wala/util/io/CommandLine.java
@@ -1,65 +1,65 @@
... | false | true | public static Properties parse(String[] args) throws WalaException {
Properties result = new Properties();
for (int i = 0; i < args.length - 1; i++) {
String key = parseForKey(args[i]);
if (key != null) {
if (args[i].contains("=")) {
result.put(key, args[i].substring(args[i].inde... | public static Properties parse(String[] args) throws WalaException {
Properties result = new Properties();
for (int i = 0; i < args.length; i++) {
String key = parseForKey(args[i]);
if (key != null) {
if (args[i].contains("=")) {
result.put(key, args[i].substring(args[i].indexOf(... |
diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/CommsTransport.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/CommsTransport.java
index ceaaca5e0..f96365d34 100644
--- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/CommsTransport.java
+++ b/xwords4/android/XWords4/src/org/eehouse/and... | false | true | private boolean loop()
{
boolean failed = false;
outer_loop:
while ( !m_done ) {
try {
synchronized( this ) {
// if we have data and no socket, try to connect.
if ( null == m_socketCh... | private boolean loop()
{
boolean failed = false;
outer_loop:
while ( !m_done ) {
try {
synchronized( this ) {
// if we have data and no socket, try to connect.
if ( null == m_socketCh... |
diff --git a/jelly-tags/jetty/src/java/org/apache/commons/jelly/tags/jetty/NotFoundHandlerTag.java b/jelly-tags/jetty/src/java/org/apache/commons/jelly/tags/jetty/NotFoundHandlerTag.java
index 408b090e..c547937e 100644
--- a/jelly-tags/jetty/src/java/org/apache/commons/jelly/tags/jetty/NotFoundHandlerTag.java
+++ b/jel... | true | true | public void doTag(XMLOutput xmlOutput) throws Exception {
HttpContextTag httpContext = (HttpContextTag) findAncestorWithClass(
HttpContextTag.class);
if ( httpContext == null ) {
throw new JellyTagException( "<notFoundHandler> tag must be enclosed inside a <httpContext> tag" ... | public void doTag(XMLOutput xmlOutput) throws JellyTagException {
HttpContextTag httpContext = (HttpContextTag) findAncestorWithClass(
HttpContextTag.class);
if ( httpContext == null ) {
throw new JellyTagException( "<notFoundHandler> tag must be enclosed inside a <httpContex... |
diff --git a/src/choy/yoon/chul/MainActivity.java b/src/choy/yoon/chul/MainActivity.java
index 8860b0b..135a04c 100644
--- a/src/choy/yoon/chul/MainActivity.java
+++ b/src/choy/yoon/chul/MainActivity.java
@@ -1,190 +1,188 @@
package choy.yoon.chul;
import android.app.Activity;
import android.app.AlertDialog;
impo... | false | true | public void onEdit(MenuItem item) {
switch (item.getItemId()) {
case R.id.action_edit_stroke:
AlertDialog.Builder builder = new AlertDialog.Builder(this);
LayoutInflater inflator = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
final View v = inflator.inflate(R.layout.dialog_stroke, n... | public void onEdit(MenuItem item) {
switch (item.getItemId()) {
case R.id.action_edit_stroke:
AlertDialog.Builder builder = new AlertDialog.Builder(this);
LayoutInflater inflator = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
final View v = inflator.inflate(R.layout.dialog_stroke, n... |
diff --git a/src/test/java/no/steria/quizzical/MongoDemo.java b/src/test/java/no/steria/quizzical/MongoDemo.java
index b9f4518..adb4dea 100644
--- a/src/test/java/no/steria/quizzical/MongoDemo.java
+++ b/src/test/java/no/steria/quizzical/MongoDemo.java
@@ -1,118 +1,118 @@
package no.steria.quizzical;
import java.ne... | true | true | public static void insertDataIntoDB(Quiz[] quiz) {
MongoClient client = null;
try {
client = new MongoClient();
} catch (UnknownHostException e) {
e.printStackTrace();
}
DB db = client.getDB("quizzical");
quizzesInDB = db.getCollection("quizzes");
quizzesInDB.drop();
// Quiz number one
if... | public static void insertDataIntoDB(Quiz[] quiz) {
MongoClient client = null;
try {
client = new MongoClient();
} catch (UnknownHostException e) {
e.printStackTrace();
}
DB db = client.getDB("quizzical");
quizzesInDB = db.getCollection("quizzes");
quizzesInDB.drop();
// Quiz number one
if... |
diff --git a/src/test/java/it/ivncr/erp/service/AddettoServiceTest.java b/src/test/java/it/ivncr/erp/service/AddettoServiceTest.java
index 11a013c..aa6b58a 100644
--- a/src/test/java/it/ivncr/erp/service/AddettoServiceTest.java
+++ b/src/test/java/it/ivncr/erp/service/AddettoServiceTest.java
@@ -1,39 +1,40 @@
package ... | false | true | public void testListAddettiAndServizi() {
LUTService ls = ServiceFactory.createService("LUT");
Reparto reparto = ls.retrieveItemByDescrizione("Reparto", "Sede Centrale");
GregorianCalendar gc = new GregorianCalendar(2012, 10, 2); // 2012-11-02
Date dataMattinale = gc.getTime();
AddettoService as = Service... | public void testListAddettiAndServizi() {
LUTService ls = ServiceFactory.createService("LUT");
Reparto reparto = ls.retrieveItemByDescrizione("Reparto", "Sede Centrale");
GregorianCalendar gc = new GregorianCalendar(2012, 10, 2); // 2012-11-02
Date dataMattinale = gc.getTime();
AddettoService as = Service... |
diff --git a/src/sketch/ui/sourcecode/ScSourceApplyHole.java b/src/sketch/ui/sourcecode/ScSourceApplyHole.java
index a5b50a5..dafac70 100644
--- a/src/sketch/ui/sourcecode/ScSourceApplyHole.java
+++ b/src/sketch/ui/sourcecode/ScSourceApplyHole.java
@@ -1,31 +1,31 @@
package sketch.ui.sourcecode;
import sketch.dyn.S... | true | true | public String valueString(String src_args) {
try {
return "(" + src_args + ")(" + sketch.ctrl_conf.getValueString(uid)
+ ")";
} catch (ScNoValueStringException e) {
return "/* not reached */ ??(" + src_args + ")";
}
}
| public String valueString(String src_args) {
try {
return "(" + src_args + ")("
+ sketch.ctrl_conf.getValueString(uid).formatString() + ")";
} catch (ScNoValueStringException e) {
return "/* not reached */ ??(" + src_args + ")";
}
}
|
diff --git a/src/com/percussion/pso/jexl/PSOTransform.java b/src/com/percussion/pso/jexl/PSOTransform.java
index fafd476..d069cdc 100644
--- a/src/com/percussion/pso/jexl/PSOTransform.java
+++ b/src/com/percussion/pso/jexl/PSOTransform.java
@@ -1,107 +1,107 @@
/*
* com.percussion.pso.transform PSOTransform.java
* ... | false | true | public String transform(String source, String stylesheetName)
{
URL styleFile;
try
{
IPSRhythmyxInfo info = PSRhythmyxInfoLocator.getRhythmyxInfo();
String rxRoot = info.getProperty(IPSRhythmyxInfo.Key.ROOT_DIRECTORY).toString();
log.debug("Rx Root is " + rxRoo... | public String transform(String source, String stylesheetName)
{
URL styleFile;
try
{
IPSRhythmyxInfo info = PSRhythmyxInfoLocator.getRhythmyxInfo();
String rxRoot = info.getProperty(IPSRhythmyxInfo.Key.ROOT_DIRECTORY).toString();
log.debug("Rx Root is " + rxRoo... |
diff --git a/proxy/src/main/java/org/fedoraproject/candlepin/guice/CandlepinProductionConfiguration.java b/proxy/src/main/java/org/fedoraproject/candlepin/guice/CandlepinProductionConfiguration.java
index 6bc090afd..e071ba78c 100644
--- a/proxy/src/main/java/org/fedoraproject/candlepin/guice/CandlepinProductionConfigur... | true | true | public void configure() {
bind(JPAInitializer.class).asEagerSingleton();
bind(Properties.class)
.annotatedWith(JpaUnit.class)
.toInstance(new Config().jpaConfiguration());
// We default to test persistence unit (HSQL), /etc/candlepin/candlepin.conf
... | public void configure() {
bind(JPAInitializer.class).asEagerSingleton();
bind(Properties.class)
.annotatedWith(JpaUnit.class)
.toInstance(new Config().jpaConfiguration());
// We default to test persistence unit (HSQL), /etc/candlepin/candlepin.conf
... |
diff --git a/exchange2/src/com/android/exchange/provider/ExchangeDirectoryProvider.java b/exchange2/src/com/android/exchange/provider/ExchangeDirectoryProvider.java
index 6d725ff4..5843c463 100644
--- a/exchange2/src/com/android/exchange/provider/ExchangeDirectoryProvider.java
+++ b/exchange2/src/com/android/exchange/p... | true | true | public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
String sortOrder) {
int match = sURIMatcher.match(uri);
MatrixCursor cursor;
Object[] row;
PackedString ps;
String lookupKey;
switch (match) {
case GAL... | public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
String sortOrder) {
int match = sURIMatcher.match(uri);
MatrixCursor cursor;
Object[] row;
PackedString ps;
String lookupKey;
switch (match) {
case GAL... |
diff --git a/srcj/com/sun/electric/tool/user/User.java b/srcj/com/sun/electric/tool/user/User.java
index 968079ecd..e708897d4 100755
--- a/srcj/com/sun/electric/tool/user/User.java
+++ b/srcj/com/sun/electric/tool/user/User.java
@@ -1,2826 +1,2827 @@
/* -*- tab-width: 4 -*-
*
* Electric(tm) VLSI Design System
*
... | true | true | public void endBatch(Snapshot oldSnapshot, Snapshot newSnapshot, boolean undoRedo) {
// Mark cells for redraw
HashSet<Cell> marked = new HashSet<Cell>();
for (CellId cellId: newSnapshot.getChangedCells(oldSnapshot)) {
CellBackup newBackup = newSnapshot.getCell(cellId);
... | public void endBatch(Snapshot oldSnapshot, Snapshot newSnapshot, boolean undoRedo) {
// Mark cells for redraw
HashSet<Cell> marked = new HashSet<Cell>();
for (CellId cellId: newSnapshot.getChangedCells(oldSnapshot)) {
CellBackup newBackup = newSnapshot.getCell(cellId);
... |
diff --git a/src/java/org/jivesoftware/spark/ui/conferences/DataFormDialog.java b/src/java/org/jivesoftware/spark/ui/conferences/DataFormDialog.java
index 040bcc8d..35333f3f 100644
--- a/src/java/org/jivesoftware/spark/ui/conferences/DataFormDialog.java
+++ b/src/java/org/jivesoftware/spark/ui/conferences/DataFormDialo... | true | true | public DataFormDialog(JFrame parent, final MultiUserChat chat, final Form submitForm) {
dialog = new JDialog(parent, true);
dialog.setTitle(Res.getString("title.configure.chat.room"));
this.setLayout(new GridBagLayout());
Form form = null;
// Create the room
try {
... | public DataFormDialog(JFrame parent, final MultiUserChat chat, final Form submitForm) {
dialog = new JDialog(parent, true);
dialog.setTitle(Res.getString("title.configure.chat.room"));
this.setLayout(new GridBagLayout());
Form form = null;
// Create the room
try {
... |
diff --git a/src/main/us/exultant/ahs/thread/WorkTarget.java b/src/main/us/exultant/ahs/thread/WorkTarget.java
index 894e6d0..14b88ee 100644
--- a/src/main/us/exultant/ahs/thread/WorkTarget.java
+++ b/src/main/us/exultant/ahs/thread/WorkTarget.java
@@ -1,459 +1,459 @@
/*
* Copyright 2010, 2011 Eric Myhre <http://exu... | true | true | public final Void call() throws Exception {
if (isDone()) throw new IllegalStateException("This task is already done!");
$IN $a = $src.readNow();
if ($a == null) return null;
$OUT $b = run($a);
if ($b == null) return null;
$sink.write($b);
return null;
}
| public final Void call() throws Exception {
if (isDone()) return null;
$IN $a = $src.readNow();
if ($a == null) return null;
$OUT $b = run($a);
if ($b == null) return null;
$sink.write($b);
return null;
}
|
diff --git a/frontend/client/src/autotest/afe/JobOwnerFilter.java b/frontend/client/src/autotest/afe/JobOwnerFilter.java
index 05f57027..ce4acdbb 100644
--- a/frontend/client/src/autotest/afe/JobOwnerFilter.java
+++ b/frontend/client/src/autotest/afe/JobOwnerFilter.java
@@ -1,94 +1,94 @@
package autotest.afe;
impor... | true | true | public JobOwnerFilter(String field) {
super(field);
String radioGroupName = getFreshName();
allUsersRadio = new RadioButton(radioGroupName, "All users");
selectUserRadio = new RadioButton(radioGroupName);
allUsersRadio.addValueChangeHandler(this);
selectUserRadio.addV... | public JobOwnerFilter(String field) {
super(field);
String radioGroupName = getFreshName();
allUsersRadio = new RadioButton(radioGroupName, "All users");
selectUserRadio = new RadioButton(radioGroupName);
allUsersRadio.addValueChangeHandler(this);
selectUserRadio.addV... |
diff --git a/src/main/java/com/appdynamics/monitors/hadoop/Parser.java b/src/main/java/com/appdynamics/monitors/hadoop/Parser.java
index 14f8902..77aa5e5 100755
--- a/src/main/java/com/appdynamics/monitors/hadoop/Parser.java
+++ b/src/main/java/com/appdynamics/monitors/hadoop/Parser.java
@@ -1,201 +1,201 @@
package co... | false | true | public void parseXML(String xml) throws DocumentException{
SAXReader reader = new SAXReader();
Document doc = reader.read(xml);
Element root = doc.getRootElement();
String text;
Iterator<Element> hrmIter = root.element("hadoop-resource-manager").elementIterator();
It... | public void parseXML(String xml) throws DocumentException{
SAXReader reader = new SAXReader();
Document doc = reader.read(xml);
Element root = doc.getRootElement();
String text;
Iterator<Element> hrmIter = root.element("hadoop-resource-manager").elementIterator();
It... |
diff --git a/src/main/java/com/github/easydoc/CommandLineMojoUtils.java b/src/main/java/com/github/easydoc/CommandLineMojoUtils.java
index 3895723..1205e3b 100644
--- a/src/main/java/com/github/easydoc/CommandLineMojoUtils.java
+++ b/src/main/java/com/github/easydoc/CommandLineMojoUtils.java
@@ -1,102 +1,102 @@
packag... | true | true | public static void injectMojoProperties(EasydocMojo mojo, String[] args) throws ArgException {
try {
Set<Field> injectedFields = new HashSet<Field>();
for(String arg : args) {
try {
String[] nameAndValue = arg.split("=");
if(nameAndValue.length != 2) throw new InvalidArgException(arg);
... | public static void injectMojoProperties(EasydocMojo mojo, String[] args) throws ArgException {
try {
Set<Field> injectedFields = new HashSet<Field>();
for(String arg : args) {
try {
String[] nameAndValue = arg.split("=");
if(nameAndValue.length != 2) throw new InvalidArgException(arg);
... |
diff --git a/src/geotools/src/main/java/org/geogit/geotools/porcelain/AbstractPGCommand.java b/src/geotools/src/main/java/org/geogit/geotools/porcelain/AbstractPGCommand.java
index ed332a39..7319d643 100644
--- a/src/geotools/src/main/java/org/geogit/geotools/porcelain/AbstractPGCommand.java
+++ b/src/geotools/src/main... | true | true | protected DataStore getDataStore() throws Exception {
Map<String, Serializable> params = Maps.newHashMap();
params.put(PostgisNGDataStoreFactory.DBTYPE.key, "postgis");
params.put(PostgisNGDataStoreFactory.HOST.key, commonArgs.host);
params.put(PostgisNGDataStoreFactory.PORT.key, com... | protected DataStore getDataStore() throws Exception {
Map<String, Serializable> params = Maps.newHashMap();
params.put(PostgisNGDataStoreFactory.DBTYPE.key, "postgis");
params.put(PostgisNGDataStoreFactory.HOST.key, commonArgs.host);
params.put(PostgisNGDataStoreFactory.PORT.key, com... |
diff --git a/src/de/ueller/midlet/gps/GuiSearch.java b/src/de/ueller/midlet/gps/GuiSearch.java
index 0c2c5c57..f72285a6 100644
--- a/src/de/ueller/midlet/gps/GuiSearch.java
+++ b/src/de/ueller/midlet/gps/GuiSearch.java
@@ -1,803 +1,803 @@
package de.ueller.midlet.gps;
/*
* GpsMid - Copyright (c) 2007 Harald Mueller... | true | true | public void commandAction(Command c, Displayable d) {
// System.out.println("got Command " + c);
if (state == STATE_MAIN || state == STATE_FAVORITES) {
if (c == OK_CMD) {
if (cursor >= result.size()) return;
SearchResult sr = (SearchResult) result.elementAt(cursor);
// System.out.println("select... | public void commandAction(Command c, Displayable d) {
// System.out.println("got Command " + c);
if (state == STATE_MAIN || state == STATE_FAVORITES) {
if (c == OK_CMD) {
if (cursor >= result.size()) return;
SearchResult sr = (SearchResult) result.elementAt(cursor);
// System.out.println("select... |
diff --git a/qualitas-internal-dao/src/test/java/com/googlecode/qualitas/internal/dao/RepositoryTest.java b/qualitas-internal-dao/src/test/java/com/googlecode/qualitas/internal/dao/RepositoryTest.java
index 6d86df3..e2df182 100644
--- a/qualitas-internal-dao/src/test/java/com/googlecode/qualitas/internal/dao/Repository... | true | true | public void testGetResultListBySingularAttributeFK() {
Process process = new Process();
process.setInstallationDate(new Date());
ProcessBundle originalProcessBundle = new ProcessBundle();
originalProcessBundle.setContents("cpntents".getBytes());
process.setOriginalProcessBund... | public void testGetResultListBySingularAttributeFK() {
Process process = new Process();
process.setUploadedTimestamp(new Date());
ProcessBundle originalProcessBundle = new ProcessBundle();
originalProcessBundle.setContents("cpntents".getBytes());
process.setOriginalProcessBun... |
diff --git a/sip-creator/src/main/java/eu/delving/sip/base/DownloadAction.java b/sip-creator/src/main/java/eu/delving/sip/base/DownloadAction.java
index 2405a85d..60ba115e 100644
--- a/sip-creator/src/main/java/eu/delving/sip/base/DownloadAction.java
+++ b/sip-creator/src/main/java/eu/delving/sip/base/DownloadAction.ja... | false | true | public void actionPerformed(ActionEvent actionEvent) {
listModel.setMessage("Loading list of data sets... just a moment");
cultureHubClient.fetchDataSetList(new CultureHubClient.ListReceiveListener() {
@Override
public void listReceived(final List<CultureHubClient.DataSetEntr... | public void actionPerformed(ActionEvent actionEvent) {
listModel.setMessage("Loading list of data sets... just a moment");
cultureHubClient.fetchDataSetList(new CultureHubClient.ListReceiveListener() {
@Override
public void listReceived(final List<CultureHubClient.DataSetEntr... |
diff --git a/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/views/documents/Calendar.java b/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/views/documents/Calendar.java
index 57bcdbc45..3f2e09419 100644
--- a/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/views/documents/Calendar.java
+++ b/cyklotron-... | true | true | public void prepareDefault(Context context)
throws ProcessingException
{
CmsData cmsData = cmsDataFactory.getCmsData(context);
Parameters parameters = RequestParameters.getRequestParameters(context);
CoralSession coralSession = (CoralSession)context.getAttribute(CoralSession.clas... | public void prepareDefault(Context context)
throws ProcessingException
{
CmsData cmsData = cmsDataFactory.getCmsData(context);
Parameters parameters = RequestParameters.getRequestParameters(context);
CoralSession coralSession = (CoralSession)context.getAttribute(CoralSession.clas... |
diff --git a/src/game/PublicPlayerInfo.java b/src/game/PublicPlayerInfo.java
index b506e4f..cf523f4 100644
--- a/src/game/PublicPlayerInfo.java
+++ b/src/game/PublicPlayerInfo.java
@@ -1,257 +1,257 @@
/*
Open Meerkat Testbed. An open source implementation of the Meerkat API for running poker games
Copyright (C) 2010... | true | true | public void update(Action act, double param) {
if(getGameInfo().getNumToAct() != getSeat())
throw new IllegalArgumentException("Is not player's turn to act");
if(act.isAllInPass()) {
putMoney(getBankRoll());
this.action = Action.ALLIN_PASS;
} else if (act.isAnte()) {
putMoney(getGameInfo().getAnte())... | public void update(Action act, double param) {
if (getGameInfo().getCurrentPlayerSeat() != getSeat())
throw new IllegalArgumentException("Is not player's turn to act");
if(act.isAllInPass()) {
putMoney(getBankRoll());
this.action = Action.ALLIN_PASS;
} else if (act.isAnte()) {
putMoney(getGameInfo().... |
diff --git a/src/cs447/PuzzleFighter/PlayField.java b/src/cs447/PuzzleFighter/PlayField.java
index d6a6a6f..cf41e90 100644
--- a/src/cs447/PuzzleFighter/PlayField.java
+++ b/src/cs447/PuzzleFighter/PlayField.java
@@ -1,398 +1,400 @@
package cs447.PuzzleFighter;
import java.io.IOException;
import java.io.InputStrea... | true | true | public int update(long deltaMs, boolean down, boolean left, boolean right, boolean ccw, boolean cw) {
updateCount++;
fighter.update(deltaMs);
if(socket == null || (socket != null && !secondary)){
renderTimer += deltaMs;
inputTimer += deltaMs;
if (inputTimer > 100) {
inputTimer = 0;
if (cursor !... | public int update(long deltaMs, boolean down, boolean left, boolean right, boolean ccw, boolean cw) {
updateCount++;
fighter.update(deltaMs);
if(socket == null || (socket != null && !secondary)){
renderTimer += deltaMs;
inputTimer += deltaMs;
if (inputTimer > 100) {
inputTimer = 0;
if (cursor !... |
diff --git a/src/com/android/calendar/DayFragment.java b/src/com/android/calendar/DayFragment.java
index e3ef6946..2ba8dbfe 100644
--- a/src/com/android/calendar/DayFragment.java
+++ b/src/com/android/calendar/DayFragment.java
@@ -1,271 +1,272 @@
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licens... | true | true | private void goTo(Time goToTime, boolean ignoreTime, boolean animateToday) {
if (mViewSwitcher == null) {
// The view hasn't been set yet. Just save the time and use it later.
mSelectedDay.set(goToTime);
return;
}
DayView currentView = (DayView) mViewSwit... | private void goTo(Time goToTime, boolean ignoreTime, boolean animateToday) {
if (mViewSwitcher == null) {
// The view hasn't been set yet. Just save the time and use it later.
mSelectedDay.set(goToTime);
return;
}
DayView currentView = (DayView) mViewSwit... |
diff --git a/libs/lint_checks/src/main/java/com/android/tools/lint/checks/FragmentDetector.java b/libs/lint_checks/src/main/java/com/android/tools/lint/checks/FragmentDetector.java
index 43d7e80..04e04c5 100644
--- a/libs/lint_checks/src/main/java/com/android/tools/lint/checks/FragmentDetector.java
+++ b/libs/lint_chec... | true | true | public void checkClass(@NonNull ClassContext context, @NonNull ClassNode classNode) {
if ((classNode.access & Opcodes.ACC_ABSTRACT) != 0) {
// Ignore abstract classes since they are clearly (and by definition) not intended to
// be instantiated. We're looking for accidental non-stati... | public void checkClass(@NonNull ClassContext context, @NonNull ClassNode classNode) {
if ((classNode.access & Opcodes.ACC_ABSTRACT) != 0) {
// Ignore abstract classes since they are clearly (and by definition) not intended to
// be instantiated. We're looking for accidental non-stati... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.