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/android/AWoUSO/src/cdl/android/ui/Bazaar.java b/android/AWoUSO/src/cdl/android/ui/Bazaar.java
index acd10bc..79497b2 100644
--- a/android/AWoUSO/src/cdl/android/ui/Bazaar.java
+++ b/android/AWoUSO/src/cdl/android/ui/Bazaar.java
@@ -1,59 +1,59 @@
package cdl.android.ui;
import java.util.ArrayList;
im... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.bazaar);
ListView mListView = (ListView) findViewById(android.R.id.list);
mListView.setEmptyView(findViewById(android.R.id.empty));
//final String[] list = getResources().getStringArray(R.array.l... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.bazaar);
ListView mListView = (ListView) findViewById(android.R.id.list);
mListView.setEmptyView(findViewById(android.R.id.empty));
//final String[] list = getResources().getStringArray(R.array.l... |
diff --git a/server/src/main/java/com/metamx/druid/master/DruidMasterRuleRunner.java b/server/src/main/java/com/metamx/druid/master/DruidMasterRuleRunner.java
index 87f16a76f8..6f7d182f3c 100644
--- a/server/src/main/java/com/metamx/druid/master/DruidMasterRuleRunner.java
+++ b/server/src/main/java/com/metamx/druid/mas... | true | true | public DruidMasterRuntimeParams run(DruidMasterRuntimeParams params)
{
MasterStats stats = new MasterStats();
DruidCluster cluster = params.getDruidCluster();
if (cluster.isEmpty()) {
log.warn("Uh... I have no servers. Not assigning anything...");
return params;
}
// Run through al... | public DruidMasterRuntimeParams run(DruidMasterRuntimeParams params)
{
MasterStats stats = new MasterStats();
DruidCluster cluster = params.getDruidCluster();
if (cluster.isEmpty()) {
log.warn("Uh... I have no servers. Not assigning anything...");
return params;
}
// Run through al... |
diff --git a/frontend/grisu-client-swing/src/main/java/org/vpac/grisu/client/view/swing/template/panels/MultipleInputFiles.java b/frontend/grisu-client-swing/src/main/java/org/vpac/grisu/client/view/swing/template/panels/MultipleInputFiles.java
index 76057ee0..05f50820 100644
--- a/frontend/grisu-client-swing/src/main/... | true | true | public void setTemplateNode(TemplateNode node)
throws TemplateNodePanelException {
this.em = node.getTemplate().getEnvironmentManager();
fileChooserPanel.add(getSiteFileChooserPanel(),
new CellConstraints(2, 2, CellConstraints.FILL,
CellConstraints.FILL));
this.templateNode = node;
this.templateN... | public void setTemplateNode(TemplateNode node)
throws TemplateNodePanelException {
this.em = node.getTemplate().getEnvironmentManager();
fileChooserPanel.add(getSiteFileChooserPanel(),
new CellConstraints(2, 2, CellConstraints.FILL,
CellConstraints.FILL));
this.templateNode = node;
this.templateN... |
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeMethodDeclaration.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterTypeMethodDeclaration.java
index d0dffa682..f6c89b127 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/InterT... | false | true | public void generateDispatchMethod(ClassScope classScope, ClassFile classFile) {
EclipseFactory world = EclipseFactory.fromScopeLookupEnvironment(classScope);
UnresolvedType aspectType = world.fromBinding(classScope.referenceContext.binding);
ResolvedMember signature = munger.getSignature();
ResolvedMember d... | public void generateDispatchMethod(ClassScope classScope, ClassFile classFile) {
EclipseFactory world = EclipseFactory.fromScopeLookupEnvironment(classScope);
UnresolvedType aspectType = world.fromBinding(classScope.referenceContext.binding);
ResolvedMember signature = munger.getSignature();
ResolvedMember d... |
diff --git a/license/src/main/java/org/smallmind/license/SourceLicenseMojo.java b/license/src/main/java/org/smallmind/license/SourceLicenseMojo.java
index f5fd7a93f..f4c011169 100644
--- a/license/src/main/java/org/smallmind/license/SourceLicenseMojo.java
+++ b/license/src/main/java/org/smallmind/license/SourceLicenseM... | false | true | private void processFiles (Stencil stencil, String[] licenseArray, long licenseModTime, char[] buffer, String directoryPath, FileFilter... fileFilters)
throws MojoExecutionException {
File tempFile;
BufferedReader fileReader;
FileWriter fileWriter;
LicenseState licenseState;
Patt... | private void processFiles (Stencil stencil, String[] licenseArray, long licenseModTime, char[] buffer, String directoryPath, FileFilter... fileFilters)
throws MojoExecutionException {
File tempFile;
BufferedReader fileReader;
FileWriter fileWriter;
LicenseState licenseState;
Patt... |
diff --git a/src/com/megadevs/socialwrapper/thefoursquare/TheFoursquare.java b/src/com/megadevs/socialwrapper/thefoursquare/TheFoursquare.java
index 040930a..d0c581b 100644
--- a/src/com/megadevs/socialwrapper/thefoursquare/TheFoursquare.java
+++ b/src/com/megadevs/socialwrapper/thefoursquare/TheFoursquare.java
@@ -1,3... | true | true | public ArrayList<TheFoursquareVenue> searchVenues(GeoPoint position) throws InvalidSocialRequestException {
int longitude = position.getLongitudeE6();
int latitude = position.getLatitudeE6();
String ll = String.valueOf(longitude) + "," + String.valueOf(latitude);
Bundle b = new Bundle();
b.putString("ll",... | public ArrayList<TheFoursquareVenue> searchVenues(GeoPoint position) throws InvalidSocialRequestException {
int longitude = position.getLongitudeE6();
int latitude = position.getLatitudeE6();
String ll = String.valueOf(longitude) + "," + String.valueOf(latitude);
Bundle b = new Bundle();
b.putString("ll",... |
diff --git a/src/com/contoso/services/TodoServices.java b/src/com/contoso/services/TodoServices.java
index 2aad17a..8638dc7 100644
--- a/src/com/contoso/services/TodoServices.java
+++ b/src/com/contoso/services/TodoServices.java
@@ -1,80 +1,80 @@
/* Todo service */
package com.contoso.services;
import java.io.IOEx... | true | true | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
Gson gson = new Gson();
TodoList todoList = new TodoList();
todoList.name = "Personal";
todoList.color = "blue";
todoList.items = getTe... | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
Gson gson = new Gson();
TodoList todoList = new TodoList();
todoList.name = "Personal";
todoList.color = "red";
todoList.items = getTes... |
diff --git a/src/main/java/beamscheduling/Rcs.java b/src/main/java/beamscheduling/Rcs.java
index 2479523..45bc64d 100644
--- a/src/main/java/beamscheduling/Rcs.java
+++ b/src/main/java/beamscheduling/Rcs.java
@@ -1,218 +1,224 @@
package beamscheduling;
import java.util.*;
import java.io.IOException;
import org.... | true | true | public static void main(String[] args) {
HashMap subscribers;
NetworkGenerator networkGenerator;
Network network;
RcsOptions options = new RcsOptions();
CmdLineParser parser = new CmdLineParser(options);
parser.setUsageWidth(80);
BasicConfigurator.configure()... | public static void main(String[] args) {
HashMap subscribers;
NetworkGenerator networkGenerator;
Network network;
RcsOptions options = new RcsOptions();
CmdLineParser parser = new CmdLineParser(options);
parser.setUsageWidth(80);
BasicConfigurator.configure()... |
diff --git a/Server/src/SimpleServer.java b/Server/src/SimpleServer.java
index 24adaed..bf4180e 100644
--- a/Server/src/SimpleServer.java
+++ b/Server/src/SimpleServer.java
@@ -1,30 +1,30 @@
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.sql.Connection;
import java.sql.DriverMa... | true | true | public static void main(String[] args) throws IOException, ClassNotFoundException, IllegalAccessException, InstantiationException, SQLException {
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection connect = DriverManager.getConnection("jdbc:mysql://localhost/geofriend?user=root&passwor... | public static void main(String[] args) throws IOException, ClassNotFoundException, IllegalAccessException, InstantiationException, SQLException {
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection connect = DriverManager.getConnection("jdbc:mysql://localhost/geofriend?user=root&passwor... |
diff --git a/profiling/org.eclipse.linuxtools.profiling.provider.tests/src/org/eclipse/linuxtools/profiling/provider/tests/ExtensionPointTest.java b/profiling/org.eclipse.linuxtools.profiling.provider.tests/src/org/eclipse/linuxtools/profiling/provider/tests/ExtensionPointTest.java
index e838e5c21..0efb5bcae 100644
---... | true | true | public void testId() {
String defaultId = ProviderLaunchShortcut.getDefaultLaunchShortcutProviderId(PROFILING_TYPE);
assertEquals(PLUGIN_ID + "2", defaultId);
String highestProviderId = ProviderLaunchConfigurationTabGroup.getHighestProviderId(PROFILING_TYPE);
assertEquals(PLUGIN_ID + "1", highestProviderId);
... | public void testId() {
String defaultId = ProviderLaunchShortcut.getDefaultLaunchShortcutProviderId(PROFILING_TYPE);
assertEquals(PLUGIN_ID + "1", defaultId);
String highestProviderId = ProviderLaunchConfigurationTabGroup.getHighestProviderId(PROFILING_TYPE);
assertEquals(PLUGIN_ID + "1", highestProviderId);
... |
diff --git a/src/main/java/org/mashupmedia/dao/VoteDaoImpl.java b/src/main/java/org/mashupmedia/dao/VoteDaoImpl.java
index c9f0b72..547b9b9 100644
--- a/src/main/java/org/mashupmedia/dao/VoteDaoImpl.java
+++ b/src/main/java/org/mashupmedia/dao/VoteDaoImpl.java
@@ -1,53 +1,53 @@
package org.mashupmedia.dao;
import j... | true | true | public Vote getLatestVote(long userId, long mediaItemId) {
Query query = sessionFactory.getCurrentSession().createQuery(
"from Vote where user.id = :userId and mediaItem.id = :mediaItemId "
+ "and createdOn = (select max(tv.createdOn) from Vote tv where tv.user.id = :userId and tv.mediaItem.id = :mediaItem... | public Vote getLatestVote(long userId, long mediaItemId) {
Query query = sessionFactory.getCurrentSession().createQuery(
"from Vote where user.id = :userId and mediaItem.id = :mediaItemId "
+ "and createdOn = (select max(tv.createdOn) from Vote tv where tv.user.id = :userId and tv.mediaItem.id = mediaItem.... |
diff --git a/android/BeyondAR_Framework/src/com/beyondar/android/view/BeyondarViewAdapter.java b/android/BeyondAR_Framework/src/com/beyondar/android/view/BeyondarViewAdapter.java
index b4b872e..39fc635 100644
--- a/android/BeyondAR_Framework/src/com/beyondar/android/view/BeyondarViewAdapter.java
+++ b/android/BeyondAR_... | false | true | void processList(final List<BeyondarObject> list, ViewGroup parent, final BeyondarGLSurfaceView glSurface) {
mParentView = parent;
mParentView.post(new Runnable() {
@Override
public void run() {
for (BeyondarObject beyondarObject : list) {
if (beyondarObject.getScreenPositionCenter().z > 1) {
... | void processList(final List<BeyondarObject> list, ViewGroup parent, final BeyondarGLSurfaceView glSurface) {
mParentView = parent;
mParentView.post(new Runnable() {
@Override
public void run() {
for (BeyondarObject beyondarObject : list) {
if (beyondarObject.getScreenPositionCenter().z > 1) {
... |
diff --git a/src/net/timstans/hidemyplugins/PlayerListener.java b/src/net/timstans/hidemyplugins/PlayerListener.java
index 5836d70..553b51b 100644
--- a/src/net/timstans/hidemyplugins/PlayerListener.java
+++ b/src/net/timstans/hidemyplugins/PlayerListener.java
@@ -1,20 +1,20 @@
package net.timstans.hidemyplugins;
i... | true | true | public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {
Player p = event.getPlayer();
if(event.getMessage().toLowerCase().startsWith("/pl")) {
p.sendMessage(ChatColor.DARK_RED + "Acces denied! ^w^");
event.setCancelled(true);
}
}
| public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {
Player p = event.getPlayer();
if(event.getMessage().toLowerCase().startsWith("/pl")) {
p.sendMessage(ChatColor.DARK_RED + "Access Denied");
event.setCancelled(true);
}
}
|
diff --git a/src/main/java/org/nuessler/maven/plugin/cakupan/CakupanReportMojo.java b/src/main/java/org/nuessler/maven/plugin/cakupan/CakupanReportMojo.java
index 382ad73..fca46e0 100644
--- a/src/main/java/org/nuessler/maven/plugin/cakupan/CakupanReportMojo.java
+++ b/src/main/java/org/nuessler/maven/plugin/cakupan/Ca... | true | true | protected void executeReport(final Locale locale)
throws MavenReportException {
if (!canGenerateReport()) {
return;
}
if (!outputDirectory.exists()) {
outputDirectory.mkdirs();
}
getLog().info("Start Cakupan report mojo");
getLog().... | protected void executeReport(final Locale locale)
throws MavenReportException {
if (!canGenerateReport()) {
return;
}
if (!outputDirectory.exists()) {
outputDirectory.mkdirs();
}
getLog().info("Start Cakupan report mojo");
getLog().... |
diff --git a/tests/src/test/java/com/dhemery/victor/examples/tests/RotationTest.java b/tests/src/test/java/com/dhemery/victor/examples/tests/RotationTest.java
index 5c4322e..0643853 100644
--- a/tests/src/test/java/com/dhemery/victor/examples/tests/RotationTest.java
+++ b/tests/src/test/java/com/dhemery/victor/examples... | true | true | public void orientationTests() {
assertThat(application(), orientation(), is(LANDSCAPE));
device().rotateLeft();
assertThat(application(), orientation(), eventually(), is(LANDSCAPE));
device().rotateRight();
assertThat(application(), orientation(), eventually(), is(PORTRAIT... | public void orientationTests() {
assertThat(application(), orientation(), is(PORTRAIT));
device().rotateLeft();
assertThat(application(), orientation(), eventually(), is(LANDSCAPE));
device().rotateRight();
assertThat(application(), orientation(), eventually(), is(PORTRAIT)... |
diff --git a/JavaCplex/src/pvm/PvmClusterSolver.java b/JavaCplex/src/pvm/PvmClusterSolver.java
index 51f32ac..4208fe0 100644
--- a/JavaCplex/src/pvm/PvmClusterSolver.java
+++ b/JavaCplex/src/pvm/PvmClusterSolver.java
@@ -1,126 +1,127 @@
package pvm;
import dsolve.LocalSolver;
import dsolve.SolverHelper;
import il... | false | true | public boolean TrainSingleLPWithBias(double positiveBias) throws IloException {
double splitAberrationThresh = relativeAberrationInitialThresh;
double relativeObjective;
double clusterObjective, nonClusteredObjective;
double [] resT = new double[1];
int iterCount = 0, maxIter... | public boolean TrainSingleLPWithBias(double positiveBias) throws IloException {
double splitAberrationThresh = relativeAberrationInitialThresh;
double relativeObjective;
double clusterObjective, nonClusteredObjective;
double [] resT = new double[1];
int iterCount = 0, maxIter... |
diff --git a/src/main/src/org/compass/core/lucene/engine/manager/DefaultLuceneSearchEngineIndexManager.java b/src/main/src/org/compass/core/lucene/engine/manager/DefaultLuceneSearchEngineIndexManager.java
index 4673c014..4ac7de5e 100644
--- a/src/main/src/org/compass/core/lucene/engine/manager/DefaultLuceneSearchEngine... | true | true | public void operate(final IndexOperationCallback callback) throws SearchEngineException {
// first aquire write lock for all the sub-indexes
final String[] subIndexes = searchEngineStore.getSubIndexes();
final Lock[] writerLocks = new Lock[subIndexes.length];
try {
try {... | public void operate(final IndexOperationCallback callback) throws SearchEngineException {
// first aquire write lock for all the sub-indexes
final String[] subIndexes = searchEngineStore.getSubIndexes();
final Lock[] writerLocks = new Lock[subIndexes.length];
try {
try {... |
diff --git a/component/application-registry/src/main/java/org/exoplatform/application/gadget/GadgetDeployer.java b/component/application-registry/src/main/java/org/exoplatform/application/gadget/GadgetDeployer.java
index 1aa9b94c6..6c9801ca1 100644
--- a/component/application-registry/src/main/java/org/exoplatform/appl... | true | true | private void handle(ServletContext scontext, URL gadgetsURL)
{
ChromatticLifeCycle lifeCycle = gadgetRegistryService.getChromatticLifeCycle();
SessionContext context = lifeCycle.openContext();
InputStream in;
try
{
in = gadgetsURL.openStream();
DocumentBuilder db = ... | private void handle(ServletContext scontext, URL gadgetsURL)
{
ChromatticLifeCycle lifeCycle = gadgetRegistryService.getChromatticLifeCycle();
SessionContext context = lifeCycle.openContext();
InputStream in;
try
{
in = gadgetsURL.openStream();
DocumentBuilder db = ... |
diff --git a/PortalKit/src/main/java/org/etp/portalKit/powerbuild/service/PortalTeamStructure.java b/PortalKit/src/main/java/org/etp/portalKit/powerbuild/service/PortalTeamStructure.java
index 2ae8209..712b706 100644
--- a/PortalKit/src/main/java/org/etp/portalKit/powerbuild/service/PortalTeamStructure.java
+++ b/Porta... | true | true | private void iteratorPortalTeamWorkspace(String basePath2, List<DirTree> retrieveTree2, DirTree parentTree) {
if (StringUtils.isBlank(basePath2))
return;
File path = new File(basePath2);
File[] listFiles = path.listFiles();
for (int i = 0; i < listFiles.length; i++) {
... | private void iteratorPortalTeamWorkspace(String basePath2, List<DirTree> retrieveTree2, DirTree parentTree) {
if (StringUtils.isBlank(basePath2))
return;
File path = new File(basePath2);
File[] listFiles = path.listFiles();
if (listFiles == null) {
return;
... |
diff --git a/src/main/java/de/fuberlin/wiwiss/pubby/servlets/RootServlet.java b/src/main/java/de/fuberlin/wiwiss/pubby/servlets/RootServlet.java
index df71e0e..1c9e3aa 100644
--- a/src/main/java/de/fuberlin/wiwiss/pubby/servlets/RootServlet.java
+++ b/src/main/java/de/fuberlin/wiwiss/pubby/servlets/RootServlet.java
@@ ... | true | true | protected boolean doGet(String relativeURI,
HttpServletRequest request, HttpServletResponse response,
Configuration config)
throws IOException, ServletException {
// static/ directory handled by default servlet
if (relativeURI.startsWith("static/")) {
getServletContext().getNamedDispatcher("default"... | protected boolean doGet(String relativeURI,
HttpServletRequest request, HttpServletResponse response,
Configuration config)
throws IOException, ServletException {
// static/ directory handled by default servlet
if (relativeURI.startsWith("static/")) {
getServletContext().getNamedDispatcher("default"... |
diff --git a/ngrinder-controller/src/main/java/org/ngrinder/perftest/controller/PerfTestController.java b/ngrinder-controller/src/main/java/org/ngrinder/perftest/controller/PerfTestController.java
index c8c2568c..948493b3 100644
--- a/ngrinder-controller/src/main/java/org/ngrinder/perftest/controller/PerfTestController... | true | true | public String savePerfTest(User user, ModelMap model, PerfTest test,
@RequestParam(value = "isClone", required = false, defaultValue = "false") boolean isClone) {
test.setTestName(StringUtils.trimToEmpty(test.getTestName()));
checkNotEmpty(test.getTestName(), "test name should be provided");
checkArgument(t... | public String savePerfTest(User user, ModelMap model, PerfTest test,
@RequestParam(value = "isClone", required = false, defaultValue = "false") boolean isClone) {
test.setTestName(StringUtils.trimToEmpty(test.getTestName()));
checkNotEmpty(test.getTestName(), "test name should be provided");
checkArgument(t... |
diff --git a/MODSRC/vazkii/tinkerer/inventory/slot/SlotTransmutatorOutput.java b/MODSRC/vazkii/tinkerer/inventory/slot/SlotTransmutatorOutput.java
index f9a4da8f..11e0025b 100644
--- a/MODSRC/vazkii/tinkerer/inventory/slot/SlotTransmutatorOutput.java
+++ b/MODSRC/vazkii/tinkerer/inventory/slot/SlotTransmutatorOutput.ja... | true | true | public void onPickupFromSlot(EntityPlayer par1EntityPlayer, ItemStack par2ItemStack) {
ObjectTags tags = ThaumcraftCraftingManager.getObjectTags(transmutator.getStackInSlot(0));
int value = SlotTransmutator.getTotalAspectValue(tags);
int cost = value == 1 ? 0 : value / 2;
AuraManager.decreaseClosestAura(trans... | public void onPickupFromSlot(EntityPlayer par1EntityPlayer, ItemStack par2ItemStack) {
ObjectTags tags = ThaumcraftCraftingManager.getObjectTags(transmutator.getStackInSlot(0));
int value = SlotTransmutator.getTotalAspectValue(tags);
int cost = value == 1 ? 0 : value / 2;
AuraManager.decreaseClosestAura(trans... |
diff --git a/jsf-api/src/javax/faces/component/ComponentStateHelper.java b/jsf-api/src/javax/faces/component/ComponentStateHelper.java
index 82badc10c..aa30fdb7f 100644
--- a/jsf-api/src/javax/faces/component/ComponentStateHelper.java
+++ b/jsf-api/src/javax/faces/component/ComponentStateHelper.java
@@ -1,394 +1,397 @@... | false | true | public void restoreState(FacesContext context, Object state) {
if (state == null) {
return;
}
Object[] savedState = (Object[]) state;
if (savedState[savedState.length - 1] != null) {
component.initialState = (Boolean) savedState[savedState.length - 1];
... | public void restoreState(FacesContext context, Object state) {
if (state == null) {
return;
}
Object[] savedState = (Object[]) state;
if (savedState[savedState.length - 1] != null) {
component.initialState = (Boolean) savedState[savedState.length - 1];
... |
diff --git a/src/frontend/org/voltdb/sysprocs/SnapshotRestore.java b/src/frontend/org/voltdb/sysprocs/SnapshotRestore.java
index a3a639d0f..5117e1cdc 100644
--- a/src/frontend/org/voltdb/sysprocs/SnapshotRestore.java
+++ b/src/frontend/org/voltdb/sysprocs/SnapshotRestore.java
@@ -1,1569 +1,1569 @@
/* This file is part... | false | true | public DependencyPair
executePlanFragment(HashMap<Integer, List<VoltTable>> dependencies, long fragmentId, ParameterSet params,
SystemProcedureExecutionContext context)
{
if (fragmentId == SysProcFragmentId.PF_restoreDistributeExportSequenceNumbers)
{
assert(params.to... | public DependencyPair
executePlanFragment(HashMap<Integer, List<VoltTable>> dependencies, long fragmentId, ParameterSet params,
SystemProcedureExecutionContext context)
{
if (fragmentId == SysProcFragmentId.PF_restoreDistributeExportSequenceNumbers)
{
assert(params.to... |
diff --git a/src/main/java/net/pms/encoders/FFmpegWebVideo.java b/src/main/java/net/pms/encoders/FFmpegWebVideo.java
index 8b7ba2f53..5478e9f7f 100644
--- a/src/main/java/net/pms/encoders/FFmpegWebVideo.java
+++ b/src/main/java/net/pms/encoders/FFmpegWebVideo.java
@@ -1,415 +1,415 @@
/*
* PS3 Media Server, for strea... | true | true | public ProcessWrapper launchTranscode(
String fileName,
DLNAResource dlna,
DLNAMediaInfo media,
OutputParams params
) throws IOException {
params.minBufferSize = params.minFileSize;
params.secondread_minsize = 100000;
RendererConfiguration renderer = params.mediaRenderer;
// XXX work around an ffmpeg... | public ProcessWrapper launchTranscode(
String fileName,
DLNAResource dlna,
DLNAMediaInfo media,
OutputParams params
) throws IOException {
params.minBufferSize = params.minFileSize;
params.secondread_minsize = 100000;
RendererConfiguration renderer = params.mediaRenderer;
// XXX work around an ffmpeg... |
diff --git a/antipasto/GUI/ImageListView/ScriptCellRenderer.java b/antipasto/GUI/ImageListView/ScriptCellRenderer.java
index 7eda555..87c31de 100644
--- a/antipasto/GUI/ImageListView/ScriptCellRenderer.java
+++ b/antipasto/GUI/ImageListView/ScriptCellRenderer.java
@@ -1,57 +1,57 @@
package antipasto.GUI.ImageListView;... | true | true | public Component getListCellRendererComponent(
JList list,
Object value, // value to display
int index, // cell index
boolean isSelected, // is the cell selected
boolean chf) // the list and the cell have the focus
{
/* The DefaultListCellRenderer class will take care of
... | public Component getListCellRendererComponent(
JList list,
Object value, // value to display
int index, // cell index
boolean isSelected, // is the cell selected
boolean chf) // the list and the cell have the focus
{
/* The DefaultListCellRenderer class will take care of
... |
diff --git a/src/main/java/cc/kune/events/server/EventsServlet.java b/src/main/java/cc/kune/events/server/EventsServlet.java
index d2793ded2..c1d288683 100644
--- a/src/main/java/cc/kune/events/server/EventsServlet.java
+++ b/src/main/java/cc/kune/events/server/EventsServlet.java
@@ -1,132 +1,132 @@
/*
*
* Copyrig... | true | true | protected void doGet(final HttpServletRequest req, final HttpServletResponse resp)
throws ServletException, IOException {
final String userHash = req.getParameter(FileConstants.HASH);
final StateToken token = new StateToken(req.getParameter(FileConstants.TOKEN));
final Calendar calendar = new Cale... | protected void doGet(final HttpServletRequest req, final HttpServletResponse resp)
throws ServletException, IOException {
final String userHash = req.getParameter(FileConstants.HASH);
final StateToken token = new StateToken(req.getParameter(FileConstants.TOKEN));
final Calendar calendar = new Cale... |
diff --git a/src/main/java/com/p000ison/dev/simpleclans2/language/LanguageMap.java b/src/main/java/com/p000ison/dev/simpleclans2/language/LanguageMap.java
index ab4dc45..afbb78c 100644
--- a/src/main/java/com/p000ison/dev/simpleclans2/language/LanguageMap.java
+++ b/src/main/java/com/p000ison/dev/simpleclans2/language/... | false | true | public static boolean copy(InputStream input, File target) throws IOException
{
if (target.exists()) {
throw new IllegalArgumentException("[Copy] File exists already!");
}
File parentDir = target.getParentFile();
if (!parentDir.isDirectory()) {
throw new... | public static boolean copy(InputStream input, File target) throws IOException
{
if (target.exists()) {
throw new IllegalArgumentException("File exists already!");
}
File parentDir = target.getParentFile();
if (!parentDir.isDirectory()) {
throw new Illega... |
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestCodecs.java b/lucene/core/src/test/org/apache/lucene/index/TestCodecs.java
index 5c83c6e60c..646fa4a497 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestCodecs.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestCodecs.java
@@ -1,634 +1,... | false | true | public void _run() throws Throwable {
for(int iter=0;iter<NUM_TEST_ITER;iter++) {
final FieldData field = fields[random().nextInt(fields.length)];
final TermsEnum termsEnum = termsDict.terms(field.fieldInfo.name).iterator(null);
if (si.getCodec() instanceof Lucene3xCodec) {
... | public void _run() throws Throwable {
for(int iter=0;iter<NUM_TEST_ITER;iter++) {
final FieldData field = fields[random().nextInt(fields.length)];
final TermsEnum termsEnum = termsDict.terms(field.fieldInfo.name).iterator(null);
if (si.getCodec() instanceof Lucene3xCodec) {
... |
diff --git a/src/biz/bokhorst/xprivacy/XPackageChange.java b/src/biz/bokhorst/xprivacy/XPackageChange.java
index 497106f9..dc859917 100644
--- a/src/biz/bokhorst/xprivacy/XPackageChange.java
+++ b/src/biz/bokhorst/xprivacy/XPackageChange.java
@@ -1,48 +1,48 @@
package biz.bokhorst.xprivacy;
import android.content.B... | true | true | public void onReceive(Context context, Intent intent) {
// Check uri
Uri inputUri = Uri.parse(intent.getDataString());
if (inputUri.getScheme().equals("package")) {
// Get data
String packageName = inputUri.getSchemeSpecificPart();
int uid = intent.getIntExtra(Intent.EXTRA_UID, 0);
boolean replacing ... | public void onReceive(Context context, Intent intent) {
// Check uri
Uri inputUri = Uri.parse(intent.getDataString());
if (inputUri.getScheme().equals("package")) {
// Get data
String packageName = inputUri.getSchemeSpecificPart();
int uid = intent.getIntExtra(Intent.EXTRA_UID, 0);
boolean replacing ... |
diff --git a/shop/src/main/java/org/shop/ProposalInitializer.java b/shop/src/main/java/org/shop/ProposalInitializer.java
index 1847a21..de89514 100644
--- a/shop/src/main/java/org/shop/ProposalInitializer.java
+++ b/shop/src/main/java/org/shop/ProposalInitializer.java
@@ -1,71 +1,71 @@
package org.shop;
import org.... | true | true | public void initProposals() {
Seller amazon = sellerService.getSellerById((long) 0);
Seller samsung = sellerService.getSellerById((long) 1);
Product galaxyTab = productService.getProductsByName(Products.SAMSUNG_GALAXY_TAB).get(0);
Product kindleFire = productService.getProdu... | public void initProposals() {
Seller amazon = sellerService.getSellerById((long) 1);
Seller samsung = sellerService.getSellerById((long) 2);
Product galaxyTab = productService.getProductsByName(Products.SAMSUNG_GALAXY_TAB).get(0);
Product kindleFire = productService.getProdu... |
diff --git a/trunk/xmlvm/src/xmlvm2objc/compat-lib/java/org/xmlvm/iphone/NSObject.java b/trunk/xmlvm/src/xmlvm2objc/compat-lib/java/org/xmlvm/iphone/NSObject.java
index aa3b3a0d..16840449 100644
--- a/trunk/xmlvm/src/xmlvm2objc/compat-lib/java/org/xmlvm/iphone/NSObject.java
+++ b/trunk/xmlvm/src/xmlvm2objc/compat-lib/j... | false | true | public static void performSelectorOnMainThread(final Object target, final String method,
final Object arg, boolean waitUntilDone) {
Runnable runnable = new Runnable() {
@Override
public void run() {
Class<?>[] paramTypes = { Object.class };
... | public static void performSelectorOnMainThread(final Object target, final String method,
final Object arg, boolean waitUntilDone) {
Runnable runnable = new Runnable() {
@Override
public void run() {
Class<?>[] paramTypes = { Object.class };
... |
diff --git a/serializers/commons/src/test/java/com/cedarsoft/serialization/ApplicationSerializerTest.java b/serializers/commons/src/test/java/com/cedarsoft/serialization/ApplicationSerializerTest.java
index cc1e1f51..0e35c508 100644
--- a/serializers/commons/src/test/java/com/cedarsoft/serialization/ApplicationSerializ... | true | true | protected String getExpectedSerialized() {
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
"<application>\n" +
" <name>gimp</name>\n" +
" <version>1.2.3</version>\n" +
"</application>";
}
| protected String getExpectedSerialized() {
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
"<application xmlns=\"http://application/1.0.0\">\n" +
" <name>gimp</name>\n" +
" <version>1.2.3</version>\n" +
"</application>";
}
|
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VDateFieldCalendar.java b/src/com/vaadin/terminal/gwt/client/ui/VDateFieldCalendar.java
index 7507e9f9f..63a677639 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VDateFieldCalendar.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VDateFieldCalendar.java
@@ -1,140 +... | true | true | public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
super.updateFromUIDL(uidl, client);
calendarPanel.setShowISOWeekNumbers(isShowISOWeekNumbers());
calendarPanel.setDateTimeService(getDateTimeService());
calendarPanel.setResolution(getCurrentResolution());
... | public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
super.updateFromUIDL(uidl, client);
calendarPanel.setShowISOWeekNumbers(isShowISOWeekNumbers());
calendarPanel.setDateTimeService(getDateTimeService());
calendarPanel.setResolution(getCurrentResolution());
... |
diff --git a/src/com/example/tuts_plus_ascii_art_editor_android/MainActivity.java b/src/com/example/tuts_plus_ascii_art_editor_android/MainActivity.java
index 1d1be3a..197ced9 100644
--- a/src/com/example/tuts_plus_ascii_art_editor_android/MainActivity.java
+++ b/src/com/example/tuts_plus_ascii_art_editor_android/MainA... | false | true | private void saveImg() {
// check if smartphone even have an external storage
String state = Environment.getExternalStorageState();
if (Environment.MEDIA_MOUNTED.equals(state)) {
File picDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
/*
The image is going to con... | private void saveImg() {
// check if smartphone even have an external storage
String state = Environment.getExternalStorageState();
if (Environment.MEDIA_MOUNTED.equals(state)) {
File picDir = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
// Make sure the Pictures direct... |
diff --git a/modules/org.restlet/src/org/restlet/security/Role.java b/modules/org.restlet/src/org/restlet/security/Role.java
index bd5c8b92c..e14aeeb32 100644
--- a/modules/org.restlet/src/org/restlet/security/Role.java
+++ b/modules/org.restlet/src/org/restlet/security/Role.java
@@ -1,207 +1,206 @@
/**
* Copyright ... | true | true | public boolean equals(Object arg0) {
boolean result = false;
if (this.name == null) {
return arg0 == null;
}
if (arg0 instanceof Role) {
Role r = (Role) arg0;
// Test equality of names,
result = this.name.equals(r.getName());
... | public boolean equals(Object arg0) {
boolean result = false;
if (this.name == null) {
return arg0 == null;
}
if (arg0 instanceof Role) {
Role r = (Role) arg0;
// Test equality of names and child roles.
result = this.name.equals(r.getNam... |
diff --git a/src/com/gradugation/BalancingMiniGame.java b/src/com/gradugation/BalancingMiniGame.java
index db9c6e8..8967a0f 100644
--- a/src/com/gradugation/BalancingMiniGame.java
+++ b/src/com/gradugation/BalancingMiniGame.java
@@ -1,286 +1,287 @@
package com.gradugation;
import java.io.IOException;
import org.... | false | true | private void guessSeven() {
AlertDialog.Builder alert = new AlertDialog.Builder(this);
if (numGuesses == 1)
alert.setTitle("Guess " + numGuesses
+ ": What is your first guess?");
else if (more == true) {
alert.setTitle("Guess " + numGuesses + ": You need more weight!");
} else {
alert.setTitle(... | private void guessSeven() {
AlertDialog.Builder alert = new AlertDialog.Builder(this);
if (numGuesses == 1)
alert.setTitle("Guess " + numGuesses
+ ": What is your first guess?");
else if (more == true) {
alert.setTitle("Guess " + numGuesses + ": You need more weight!");
} else {
alert.setTitle(... |
diff --git a/src/java/com/idega/block/user/presentation/GroupInfo.java b/src/java/com/idega/block/user/presentation/GroupInfo.java
index 69b280a..4b4ec2d 100644
--- a/src/java/com/idega/block/user/presentation/GroupInfo.java
+++ b/src/java/com/idega/block/user/presentation/GroupInfo.java
@@ -1,284 +1,284 @@
/*
* Cre... | true | true | private PresentationObject getGroupInfo(IWContext iwc, Group group) {
String phone = null;
String fax = null;
if(_showPhone || _showFax) {
Collection phones = group.getPhones();
if(phones!=null) {
Iterator phoneIter = phones.iterator();
while(phoneIter.hasNext()) {
Phone phoneObj = (Phone) pho... | private PresentationObject getGroupInfo(IWContext iwc, Group group) {
String phone = "";
String fax = "";
if(_showPhone || _showFax) {
Collection phones = group.getPhones();
if(phones!=null) {
Iterator phoneIter = phones.iterator();
while(phoneIter.hasNext()) {
Phone phoneObj = (Phone) phoneIt... |
diff --git a/web/src/main/java/org/mule/galaxy/web/GwtRpcServiceExporter.java b/web/src/main/java/org/mule/galaxy/web/GwtRpcServiceExporter.java
index 7e91ab50..10cf9207 100755
--- a/web/src/main/java/org/mule/galaxy/web/GwtRpcServiceExporter.java
+++ b/web/src/main/java/org/mule/galaxy/web/GwtRpcServiceExporter.java
@... | true | true | protected SerializationPolicy doGetSerializationPolicy(HttpServletRequest request, String moduleBaseURL,
String strongName) {
// The request can tell you the path of the web app relative to the
// container root.
String contextPath =... | protected SerializationPolicy doGetSerializationPolicy(HttpServletRequest request, String moduleBaseURL,
String strongName) {
// The request can tell you the path of the web app relative to the
// container root.
String contextPath =... |
diff --git a/common/rebelkeithy/mods/atum/Atum.java b/common/rebelkeithy/mods/atum/Atum.java
index df83b55..90c4952 100644
--- a/common/rebelkeithy/mods/atum/Atum.java
+++ b/common/rebelkeithy/mods/atum/Atum.java
@@ -1,523 +1,522 @@
package rebelkeithy.mods.atum;
import java.util.ArrayList;
import net.minecraft.... | false | true | public void preInit(FMLPreInitializationEvent event)
{
ConfigAtum.initConfig();
portal = new BlockAtumPortal(ConfigAtum.portalBlockID);
cursedChest = new BlockChestSpawner(ConfigAtum.cursedChestID).setUnlocalizedName("AtumCursedChest").setHardness(4.0F).setCreativeTab(tabs);
atumPharaohChest = new PharaohC... | public void preInit(FMLPreInitializationEvent event)
{
ConfigAtum.initConfig();
portal = new BlockAtumPortal(ConfigAtum.portalBlockID);
cursedChest = new BlockChestSpawner(ConfigAtum.cursedChestID).setUnlocalizedName("AtumCursedChest").setHardness(4.0F).setCreativeTab(tabs);
atumPharaohChest = new PharaohC... |
diff --git a/src/rajawali/parser/ObjParser.java b/src/rajawali/parser/ObjParser.java
index 2f371d68..114d035d 100644
--- a/src/rajawali/parser/ObjParser.java
+++ b/src/rajawali/parser/ObjParser.java
@@ -1,469 +1,471 @@
package rajawali.parser;
import java.io.BufferedReader;
import java.io.File;
import java.io.Fil... | true | true | public void parse() {
super.parse();
BufferedReader buffer = null;
if(mFile == null) {
InputStream fileIn = mResources.openRawResource(mResourceId);
buffer = new BufferedReader(new InputStreamReader(fileIn));
} else {
try {
buffer = new BufferedReader(new FileReader(mFile));
} catch (FileNotFou... | public void parse() {
super.parse();
BufferedReader buffer = null;
if(mFile == null) {
InputStream fileIn = mResources.openRawResource(mResourceId);
buffer = new BufferedReader(new InputStreamReader(fileIn));
} else {
try {
buffer = new BufferedReader(new FileReader(mFile));
} catch (FileNotFou... |
diff --git a/src/test/java/org/kt3k/straw/plugin/BasicPluginsTest.java b/src/test/java/org/kt3k/straw/plugin/BasicPluginsTest.java
index d212b8f..ca762c4 100644
--- a/src/test/java/org/kt3k/straw/plugin/BasicPluginsTest.java
+++ b/src/test/java/org/kt3k/straw/plugin/BasicPluginsTest.java
@@ -1,29 +1,29 @@
package org.... | true | true | public void testNames() {
assertArrayEquals(new String[]{
"org.kt3k.straw.plugin.ActivityPlugin",
"org.kt3k.straw.plugin.HttpPlugin",
"org.kt3k.straw.plugin.LogPlugin",
"org.kt3k.straw.plugin.OptionsMenuPlugin",
"org.kt3k.straw.plugin.SharedPreferencePlugin",
"org.kt3k.straw.plugin.UIPlugin",
}, ... | public void testNames() {
assertArrayEquals(new String[]{
"org.kt3k.straw.plugin.ActivityPlugin",
"org.kt3k.straw.plugin.HttpPlugin",
"org.kt3k.straw.plugin.LogPlugin",
"org.kt3k.straw.plugin.OptionsMenuPlugin",
"org.kt3k.straw.plugin.SharedPreferencesPlugin",
"org.kt3k.straw.plugin.UIPlugin",
},... |
diff --git a/grisu-client/src/main/java/grisu/frontend/control/JaxWsServiceInterfaceCreator.java b/grisu-client/src/main/java/grisu/frontend/control/JaxWsServiceInterfaceCreator.java
index cf55a85b..b7ee402c 100644
--- a/grisu-client/src/main/java/grisu/frontend/control/JaxWsServiceInterfaceCreator.java
+++ b/grisu-cli... | false | true | public ServiceInterface create(String interfaceUrl, String username,
char[] password, String myProxyServer, String myProxyPort,
Object[] otherOptions) throws ServiceInterfaceException {
try {
final QName serviceName = new QName(
"http://api.grisu.arcs.org.au/", "GrisuService");
final QName portNam... | public ServiceInterface create(String interfaceUrl, String username,
char[] password, String myProxyServer, String myProxyPort,
Object[] otherOptions) throws ServiceInterfaceException {
try {
final QName serviceName = new QName(
"http://api.grisu.arcs.org.au/", "GrisuService");
final QName portNam... |
diff --git a/src/main/org/codehaus/groovy/runtime/MethodClosure.java b/src/main/org/codehaus/groovy/runtime/MethodClosure.java
index 4bffd5efa..8233d42d6 100644
--- a/src/main/org/codehaus/groovy/runtime/MethodClosure.java
+++ b/src/main/org/codehaus/groovy/runtime/MethodClosure.java
@@ -1,68 +1,68 @@
/*
* Copyright... | true | true | public MethodClosure(Object owner, String method) {
super(owner);
this.method = method;
final Class clazz = owner.getClass()==Class.class?(Class) owner:owner.getClass();
maximumNumberOfParameters = 0;
parameterTypes = new Class [0];
List<MetaMethod> methods... | public MethodClosure(Object owner, String method) {
super(owner);
this.method = method;
final Class clazz = owner.getClass()==Class.class?(Class) owner:owner.getClass();
maximumNumberOfParameters = 0;
parameterTypes = new Class [0];
List<MetaMethod> methods... |
diff --git a/zssapp/test/SS_208_Test.java b/zssapp/test/SS_208_Test.java
index 2183c38..98bc63d 100644
--- a/zssapp/test/SS_208_Test.java
+++ b/zssapp/test/SS_208_Test.java
@@ -1,46 +1,46 @@
/* order_test_1Test.java
Purpose:
Description:
History:
Sep, 7, 2010 17:30:59 PM
Copyright (C) 2010 Potix ... | true | true | protected void executeTest() {
rightClickCell(10,0);
click(jq("$formula a.z-menu-item-cnt"));
waitResponse();
type(jq("$searchTextbox"), "sum");
waitResponse();
click(jq("$searchBtn img"));
waitResponse();
click(jq("@listcell[label=\"SUM\"] div.z-overflow-hidden"));
waitResponse();
click(jq("$... | protected void executeTest() {
rightClickCell(10,0);
click(jq("$formula a.z-menu-item-cnt"));
waitResponse();
type(jq("$searchTextbox"), "sum");
waitResponse();
click(jq("$searchBtn img"));
waitResponse();
click(jq("@listcell[label=\"SUM\"] div.z-overflow-hidden"));
waitResponse();
click(jq("$... |
diff --git a/bm25f-ranking/src/main/java/eu/europeana/ranking/bm25f/similarity/BM25FSimilarity.java b/bm25f-ranking/src/main/java/eu/europeana/ranking/bm25f/similarity/BM25FSimilarity.java
index 776f846..1ecc4c9 100644
--- a/bm25f-ranking/src/main/java/eu/europeana/ranking/bm25f/similarity/BM25FSimilarity.java
+++ b/bm... | true | true | private Explanation explainScore(int doc, Explanation freq,
BM25FSimWeight stats, byte[] norms, float finalScore) {
boosts = params.getBoosts();
lengthBoosts = params.getbParams();
k1 = params.getK1();
Explanation result = new Explanation();
result.setDescription("score(doc=" + doc + ",field=" + stats.fie... | private Explanation explainScore(int doc, Explanation freq,
BM25FSimWeight stats, byte[] norms, float finalScore) {
boosts = params.getBoosts();
lengthBoosts = params.getbParams();
k1 = params.getK1();
Explanation result = new Explanation();
result.setDescription("score(doc=" + doc + ",field=" + stats.fie... |
diff --git a/src/com/jidesoft/swing/CheckBoxListCellRenderer.java b/src/com/jidesoft/swing/CheckBoxListCellRenderer.java
index d100dfea..0903710f 100644
--- a/src/com/jidesoft/swing/CheckBoxListCellRenderer.java
+++ b/src/com/jidesoft/swing/CheckBoxListCellRenderer.java
@@ -1,205 +1,205 @@
/*
* @(#)CheckBoxtListCell... | true | true | public Component getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellH... | public Component getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellH... |
diff --git a/gadlets-core/src/test/java/org/gadlets/scanner/GadletsScannerTest.java b/gadlets-core/src/test/java/org/gadlets/scanner/GadletsScannerTest.java
index 6e596e6..0865919 100644
--- a/gadlets-core/src/test/java/org/gadlets/scanner/GadletsScannerTest.java
+++ b/gadlets-core/src/test/java/org/gadlets/scanner/Gad... | true | true | public void detectResource() throws Exception {
JavaArchive scannerJar = ShrinkWrap.create(JavaArchive.class, "scanner.jar")
.addClass(GadletScanner.class)
.addAsResource(EmptyAsset.INSTANCE, "beans.xml");
System.out.println(scannerJar.toString(true));
JavaA... | public void detectResource() throws Exception {
JavaArchive scannerJar = ShrinkWrap.create(JavaArchive.class, "scanner.jar")
.addClass(GadletScanner.class)
.addAsResource(EmptyAsset.INSTANCE, "beans.xml");
System.out.println(scannerJar.toString(true));
JavaA... |
diff --git a/src/com/pie/jotta/event/PrivMessageListener.java b/src/com/pie/jotta/event/PrivMessageListener.java
index d9b7cce..f41c672 100755
--- a/src/com/pie/jotta/event/PrivMessageListener.java
+++ b/src/com/pie/jotta/event/PrivMessageListener.java
@@ -1,78 +1,83 @@
package com.pie.jotta.event;
/*
* This fil... | false | true | public void recieve(IRCMessage message) {
if(message.getCommand().equals("PRIVMSG")) {
if(message.getMessage().startsWith("ACTION")) { }
else {
Logger.getInstance().log("<"+message.getSender()+"> ("+message.getSource()+") "+message.getMessage());
}
if(message.getCmd().equals(Constants.CMD_PREFIX... | public void recieve(IRCMessage message) {
if(message.getCommand().equals("PRIVMSG")) {
if(message.getMessage().startsWith("ACTION")) { }
else {
Logger.getInstance().log("<"+message.getSender()+"> ("+message.getSource()+") "+message.getMessage());
}
if(message.getCmd().equals(Constants.CMD_PREFIX... |
diff --git a/libraries/emulatorview/src/jackpal/androidterm/emulatorview/TranscriptScreen.java b/libraries/emulatorview/src/jackpal/androidterm/emulatorview/TranscriptScreen.java
index 5fde372..2acd67f 100644
--- a/libraries/emulatorview/src/jackpal/androidterm/emulatorview/TranscriptScreen.java
+++ b/libraries/emulato... | false | true | public final void drawText(int row, Canvas canvas, float x, float y,
TextRenderer renderer, int cx, int selx1, int selx2, String imeText) {
char[] line;
StyleRow color;
try {
line = mData.getLine(row);
color = mData.getLineColor(row);
} catch (Ille... | public final void drawText(int row, Canvas canvas, float x, float y,
TextRenderer renderer, int cx, int selx1, int selx2, String imeText) {
char[] line;
StyleRow color;
try {
line = mData.getLine(row);
color = mData.getLineColor(row);
} catch (Ille... |
diff --git a/src/org/broad/igv/ui/event/GlobalKeyDispatcher.java b/src/org/broad/igv/ui/event/GlobalKeyDispatcher.java
index 687afa4f..baa2bf9c 100644
--- a/src/org/broad/igv/ui/event/GlobalKeyDispatcher.java
+++ b/src/org/broad/igv/ui/event/GlobalKeyDispatcher.java
@@ -1,373 +1,373 @@
/*
* Copyright (c) 2007-2011 b... | true | true | public void init() {
final KeyStroke nextKey = KeyStroke.getKeyStroke(KeyEvent.VK_F, KeyEvent.CTRL_MASK - KeyEvent.SHIFT_MASK, false);
final KeyStroke prevKey = KeyStroke.getKeyStroke(KeyEvent.VK_B, KeyEvent.CTRL_MASK - KeyEvent.SHIFT_MASK, false);
final KeyStroke toolsKey = KeyStroke.getKe... | public void init() {
final KeyStroke nextKey = KeyStroke.getKeyStroke(KeyEvent.VK_F, KeyEvent.CTRL_MASK, false);
final KeyStroke prevKey = KeyStroke.getKeyStroke(KeyEvent.VK_B, KeyEvent.CTRL_MASK, false);
final KeyStroke toolsKey = KeyStroke.getKeyStroke(KeyEvent.VK_T, KeyEvent.ALT_MASK, fa... |
diff --git a/ffxieq/src/com/github/kanata3249/ffxieq/EquipmentSet.java b/ffxieq/src/com/github/kanata3249/ffxieq/EquipmentSet.java
index b5c7ad0..982e4ee 100644
--- a/ffxieq/src/com/github/kanata3249/ffxieq/EquipmentSet.java
+++ b/ffxieq/src/com/github/kanata3249/ffxieq/EquipmentSet.java
@@ -1,361 +1,363 @@
/*
Cop... | true | true | private void parseDescriptions() {
boolean updated;
updated = false;
for (int i = 0; i < mEquipments.length; i++) {
if (mEquipments[i] != null) {
updated = mEquipments[i].parseDescription() || updated;
mEquipments[i].removeCombinationToken();
mEquipments[i].removeAugmentCommentFromUnknownToken();... | private void parseDescriptions() {
boolean updated;
updated = false;
for (int i = 0; i < mEquipments.length; i++) {
if (mEquipments[i] != null) {
updated = mEquipments[i].parseDescription() || updated;
mEquipments[i].removeCombinationToken();
mEquipments[i].removeAugmentCommentFromUnknownToken();... |
diff --git a/src/icloude/frontend_backend/request_handlers/BaseRequestHandler.java b/src/icloude/frontend_backend/request_handlers/BaseRequestHandler.java
index 0fc2a6c..03f6225 100644
--- a/src/icloude/frontend_backend/request_handlers/BaseRequestHandler.java
+++ b/src/icloude/frontend_backend/request_handlers/BaseReq... | true | true | protected final String getResponce(String json) {
BaseResponse response;
Logger.toLog("From:" + json);
if (null == json) {
response = new StandartResponse("Error", false,
"No 'json' parameter in http request.");
} else
try {
BaseRequest fromJSON = jsonToRequest(json);
if (! requestNullCheck(... | protected final String getResponce(String json) {
BaseResponse response;
Logger.toLog("From:" + json);
if (null == json) {
response = new StandartResponse("Error", false,
"No 'json' parameter in http request.");
} else
try {
BaseRequest fromJSON = jsonToRequest(json);
if (! requestNullCheck(... |
diff --git a/src/jvm/final_project/control/SMSReceiver.java b/src/jvm/final_project/control/SMSReceiver.java
index 7dc4e6d..1f5ebfb 100644
--- a/src/jvm/final_project/control/SMSReceiver.java
+++ b/src/jvm/final_project/control/SMSReceiver.java
@@ -1,234 +1,234 @@
package final_project.control;
import java.io.*;
imp... | true | true | public boolean getInbox() {
if(!_flushed) {
this.flushInbox();
return false;
}
OutputStreamWriter wr = null;
BufferedReader rd = null;
boolean toReturn = false;
try {
//Constructing data
String data = "";
data += "username=" + URLEncoder.encode(_username, "ISO-8859-1");
data += "&passwor... | public boolean getInbox() {
if(!_flushed) {
this.flushInbox();
return false;
}
OutputStreamWriter wr = null;
BufferedReader rd = null;
boolean toReturn = false;
try {
//Constructing data
String data = "";
data += "username=" + URLEncoder.encode(_username, "ISO-8859-1");
data += "&passwor... |
diff --git a/src/main/java/org/jboss/msc/_private/TransactionalObject.java b/src/main/java/org/jboss/msc/_private/TransactionalObject.java
index c518f0f..919bca6 100644
--- a/src/main/java/org/jboss/msc/_private/TransactionalObject.java
+++ b/src/main/java/org/jboss/msc/_private/TransactionalObject.java
@@ -1,219 +1,22... | false | true | final void lockWrite(Transaction transaction, ServiceContext context) {
assert !Thread.holdsLock(this);
while (true) {
Transaction currentLock;
synchronized (this) {
currentLock = lock;
}
if (currentLock != null) {
if (c... | final void lockWrite(Transaction transaction, ServiceContext context) {
assert !Thread.holdsLock(this);
final Object snapshot;
while (true) {
Transaction currentLock;
synchronized (this) {
currentLock = lock;
}
if (currentLock !... |
diff --git a/docear_plugin_core/src/org/docear/plugin/core/features/DocearMapModelExtension.java b/docear_plugin_core/src/org/docear/plugin/core/features/DocearMapModelExtension.java
index 3457d79e5..4a6fec2de 100644
--- a/docear_plugin_core/src/org/docear/plugin/core/features/DocearMapModelExtension.java
+++ b/docear_... | false | true | public void setType(String type) {
if(type == "incoming"){
this.type = DocearMapType.incoming;
}
else if(type == "my_publications"){
this.type = DocearMapType.my_publications;
}
else if(type == "literature_annotations"){
this.type = DocearMapType.literature_annotations;
}
}
| public void setType(String type) {
if(type.equalsIgnoreCase("incoming")){
this.type = DocearMapType.incoming;
}
else if(type.equalsIgnoreCase("my_publications")){
this.type = DocearMapType.my_publications;
}
else if(type.equalsIgnoreCase("literature_annotations")){
this.type = DocearMapType.literatu... |
diff --git a/src/minecraft/electricexpansion/common/items/ItemMultimeter.java b/src/minecraft/electricexpansion/common/items/ItemMultimeter.java
index fca5345..31ee4ed 100644
--- a/src/minecraft/electricexpansion/common/items/ItemMultimeter.java
+++ b/src/minecraft/electricexpansion/common/items/ItemMultimeter.java
@@ ... | true | true | public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World worldObj, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
{
if (!worldObj.isRemote)
{
TileEntity tileEntity = worldObj.getBlockTileEntity(x, y, z);
if (tileEntity instanceof IConductor)
{
IConductor wireTile... | public boolean onItemUseFirst(ItemStack stack, EntityPlayer player, World worldObj, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
{
if (!worldObj.isRemote)
{
TileEntity tileEntity = worldObj.getBlockTileEntity(x, y, z);
if (tileEntity instanceof IConductor)
{
IConductor wireTile... |
diff --git a/core/org.eclipse.ptp.proxy.protocol/util/org/eclipse/ptp/proxy/util/VarInt.java b/core/org.eclipse.ptp.proxy.protocol/util/org/eclipse/ptp/proxy/util/VarInt.java
index d0abe218e..f107283d5 100644
--- a/core/org.eclipse.ptp.proxy.protocol/util/org/eclipse/ptp/proxy/util/VarInt.java
+++ b/core/org.eclipse.pt... | true | true | public ByteBuffer getBytes() {
if (fBytes == null && fValid) {
fBytes = ByteBuffer.allocate(4); // maximum size of
// varint enconding
int val = fValue;
while (val > 0) {
byte b = (byte) (val & 0x7f);
val >>= 7;
if (val > 0) {
b &= 0x80;
}
fBytes.put(b);
}
fBytes.r... | public ByteBuffer getBytes() {
if (fBytes == null && fValid) {
fBytes = ByteBuffer.allocate(5); // maximum size of varint enconding
int val = fValue;
while (val > 0) {
byte b = (byte) (val & 0x7f);
val >>= 7;
if (val > 0) {
b &= 0x80;
}
fBytes.put(b);
}
fBytes.rewind();
}
... |
diff --git a/test-modules/functional-tests/src/main/java/org/openlmis/pageobjects/DistributionTab.java b/test-modules/functional-tests/src/main/java/org/openlmis/pageobjects/DistributionTab.java
index bb6c818cc8..002f88aad9 100644
--- a/test-modules/functional-tests/src/main/java/org/openlmis/pageobjects/DistributionTa... | true | true | public void verifyOverallIndicator(WebElement element, String color) {
if (color.toLowerCase().equals("RED".toLowerCase()))
color = "rgba(203, 64, 64, 1)";
else if (color.toLowerCase().equals("GREEN".toLowerCase()))
color = "rgba(82, 168, 30, 1)";
else if (color.toLowerCase().equals("AMBER".to... | public void verifyOverallIndicator(WebElement element, String color) {
testWebDriver.sleep(500);
if (color.toLowerCase().equals("RED".toLowerCase()))
color = "rgba(203, 64, 64, 1)";
else if (color.toLowerCase().equals("GREEN".toLowerCase()))
color = "rgba(82, 168, 30, 1)";
else if (color.t... |
diff --git a/proj.android/src/com/easyndk/classes/AndroidNDKHelper.java b/proj.android/src/com/easyndk/classes/AndroidNDKHelper.java
index e6fbc27..b2c5727 100755
--- a/proj.android/src/com/easyndk/classes/AndroidNDKHelper.java
+++ b/proj.android/src/com/easyndk/classes/AndroidNDKHelper.java
@@ -1,127 +1,126 @@
packag... | false | true | public static String receiveCppMessage(String json, boolean async)
{
if (json != null)
{
try
{
JSONObject obj = new JSONObject(json);
if (obj.has(__CALLED_METHOD__))
{
String methodName = obj.getString(__CALLED_METHOD__);
JSONObject methodParams = null;
try
{
meth... | public static String receiveCppMessage(String json, boolean async)
{
if (json != null)
{
try
{
JSONObject obj = new JSONObject(json);
if (obj.has(__CALLED_METHOD__))
{
String methodName = obj.getString(__CALLED_METHOD__);
JSONObject methodParams = null;
try
{
meth... |
diff --git a/src/com/minecarts/verrier/tikitoolkit/listener/PlayerListener.java b/src/com/minecarts/verrier/tikitoolkit/listener/PlayerListener.java
index 1bec53a..88adcb8 100644
--- a/src/com/minecarts/verrier/tikitoolkit/listener/PlayerListener.java
+++ b/src/com/minecarts/verrier/tikitoolkit/listener/PlayerListener.... | true | true | private boolean doToolCmd(Player player, String clickType){
int slot = player.getInventory().getHeldItemSlot();
String type = getToolTypeAtSlot(player, slot);
if(type != null){
//Check to see if the item in the hand is their configured wand
if (player.getInventory().getItemInHand().getType() == Material... | private boolean doToolCmd(Player player, String clickType){
int slot = player.getInventory().getHeldItemSlot();
String type = getToolTypeAtSlot(player, slot);
if(type != null){
//Check to see if the item in the hand is their configured wand
if (player.getInventory().getItemInHand().getType() == Material... |
diff --git a/apps/xgap/org/molgenis/sandbox/ui/MatrixTests.java b/apps/xgap/org/molgenis/sandbox/ui/MatrixTests.java
index 225bd981c..68b58e599 100644
--- a/apps/xgap/org/molgenis/sandbox/ui/MatrixTests.java
+++ b/apps/xgap/org/molgenis/sandbox/ui/MatrixTests.java
@@ -1,192 +1,192 @@
package org.molgenis.sandbox.ui;
... | true | true | public void reload(Database db) throws Exception
{
ScreenController<?> parentController = (ScreenController<?>) this.getParent().getParent();
FormModel<Data> parentForm = (FormModel<Data>) ((FormController) parentController).getModel();
Data data = parentForm.getRecords().get(0);
if (matrixViewer == null |... | public void reload(Database db) throws Exception
{
ScreenController<?> parentController = (ScreenController<?>) this.getParent().getParent();
FormModel<Data> parentForm = (FormModel<Data>) ((FormController) parentController).getModel();
Data data = parentForm.getRecords().get(0);
if (matrixViewer == null |... |
diff --git a/app/util/Dicom.java b/app/util/Dicom.java
index 7b52f9d..4a5eda5 100644
--- a/app/util/Dicom.java
+++ b/app/util/Dicom.java
@@ -1,232 +1,233 @@
package util;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
i... | false | true | public static Collection<Files> getFiles(Series series) {
Collection<Instance> instances = Dicom.singleFrames(series);
if (instances.isEmpty()) {
instances = Collections.singleton(Dicom.multiFrame(series));
if (instances.isEmpty()) {
instances = Collections.singleton(Dicom.spectrogram(series));
}
}
... | public static Collection<Files> getFiles(Series series) {
Collection<Instance> instances = Dicom.singleFrames(series);
if (instances.isEmpty()) {
Instance instance = Dicom.multiFrame(series);
if (instance == null) {
instance = Dicom.spectrogram(series);
}
instances = Collections.singleton(instance)... |
diff --git a/configuration/impl/src/main/java/org/jboss/forge/addon/configuration/ConfigurationFactoryImpl.java b/configuration/impl/src/main/java/org/jboss/forge/addon/configuration/ConfigurationFactoryImpl.java
index 3aa56da47..268ccd03b 100644
--- a/configuration/impl/src/main/java/org/jboss/forge/addon/configuratio... | true | true | public Configuration getUserConfiguration() throws ConfigurationException
{
if (userConfiguration == null)
{
String property = System.getProperty(USER_CONFIG_PATH);
File userConfigurationFile;
if (property == null || property.isEmpty())
{
userConfigurati... | public Configuration getUserConfiguration() throws ConfigurationException
{
if (userConfiguration == null)
{
String property = System.getProperty(USER_CONFIG_PATH);
File userConfigurationFile;
if (property == null || property.isEmpty())
{
userConfigurati... |
diff --git a/cdm/src/main/java/ucar/nc2/ft/point/remote/RemoteStationCollection.java b/cdm/src/main/java/ucar/nc2/ft/point/remote/RemoteStationCollection.java
index f064b15a9..e5d15de82 100644
--- a/cdm/src/main/java/ucar/nc2/ft/point/remote/RemoteStationCollection.java
+++ b/cdm/src/main/java/ucar/nc2/ft/point/remote/... | true | true | public PointFeatureIterator getPointFeatureIterator(int bufferSize) throws IOException {
HttpMethod method = null;
try {
method = ncremote.sendQuery("stn=" + s.getName());
InputStream in = method.getResponseBodyAsStream();
int len = NcStream.readVInt(in);
byte[] b = ne... | public PointFeatureIterator getPointFeatureIterator(int bufferSize) throws IOException {
HttpMethod method = null;
try {
method = ncremote.sendQuery("stn=" + s.getName());
InputStream in = method.getResponseBodyAsStream();
int len = NcStream.readVInt(in);
byte[] b = ne... |
diff --git a/test/IterativeFib.java b/test/IterativeFib.java
index af61e8a1..08b807fb 100644
--- a/test/IterativeFib.java
+++ b/test/IterativeFib.java
@@ -1,14 +1,19 @@
// compute fibonacci sequence
package test;
public class IterativeFib {
public static void main(String[] args) {
+ int n;
+ if (args.length... | false | true | public static void main(String[] args) {
int a = 1;
int b = 1;
for (int i = 0; i < 5; i++) {
int tmp = b;
b += a;
a = tmp;
}
System.out.println("fib(7) = " + b);
}
| public static void main(String[] args) {
int n;
if (args.length > 0)
n = Integer.parseInt(args[0]);
else
n = 20;
int a = 1;
int b = 1;
for (int i = 0; i < n - 2; i++) {
int tmp = b;
b += a;
a = tmp;
}
System.out.println("fib(" + n + ") = " + b);
}
|
diff --git a/BlueHotel/src/blue/hotel/gui/ValidationHandler.java b/BlueHotel/src/blue/hotel/gui/ValidationHandler.java
index 4d7e495..6d12dab 100644
--- a/BlueHotel/src/blue/hotel/gui/ValidationHandler.java
+++ b/BlueHotel/src/blue/hotel/gui/ValidationHandler.java
@@ -1,19 +1,18 @@
package blue.hotel.gui;
import ja... | false | true | public static boolean validate(Editor<?> editor) {
if (!editor.validateInput()) {
JOptionPane.showConfirmDialog(null,
"Cannot save because of the following errors:\n\n" +
editor.inputErrors(),
"Error",
JOptionPane.OK_OPTION,
JOptionPane.ERROR_MESSAGE);
return ... | public static boolean validate(Editor<?> editor) {
if (!editor.validateInput()) {
JOptionPane.showMessageDialog(null,
"Cannot save because of the following errors:\n\n" +
editor.inputErrors(),
"Error",
JOptionPane.ERROR_MESSAGE);
return false;
}
return true;
}
|
diff --git a/src/com/mpower/domain/Gift.java b/src/com/mpower/domain/Gift.java
index 85fff006..41dd19cd 100644
--- a/src/com/mpower/domain/Gift.java
+++ b/src/com/mpower/domain/Gift.java
@@ -1,442 +1,443 @@
package com.mpower.domain;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Array... | true | true | private void setExpirationDate(Integer month, Integer year) {
Calendar calendar = Calendar.getInstance();
if (creditCardExpiration != null) {
calendar.setTime(creditCardExpiration);
}
if (month != null) {
calendar.set(Calendar.MONTH, month - 1);
}
... | private void setExpirationDate(Integer month, Integer year) {
Calendar calendar = Calendar.getInstance();
if (creditCardExpiration != null) {
calendar.setTime(creditCardExpiration);
}
if (month != null) {
calendar.set(Calendar.MONTH, month - 1);
}
... |
diff --git a/src/org/jaggy/bukkit/ample/cmds/CmdQList.java b/src/org/jaggy/bukkit/ample/cmds/CmdQList.java
index 25b7058..247019a 100644
--- a/src/org/jaggy/bukkit/ample/cmds/CmdQList.java
+++ b/src/org/jaggy/bukkit/ample/cmds/CmdQList.java
@@ -1,97 +1,95 @@
/**
* Ample Chat Bot is a chat bot plugin for Craft Bukkit... | true | true | private void listQuestions(CommandSender sender, String[] args) {
ResultSet result = null;
try {
Integer.parseInt(args[0]);
result = db.query("SELECT * FROM "+config.getDbPrefix()+"Responses WHERE id = '"+args[0]+"';");
} catch (Exception e) {
if(args.length == 0) {
result = db.query("SELECT * FRO... | private void listQuestions(CommandSender sender, String[] args) {
ResultSet result = null;
try {
Integer.parseInt(args[0]);
result = db.query("SELECT * FROM "+config.getDbPrefix()+"Responses WHERE id = '"+args[0]+"';");
} catch (Exception e) {
if(args.length == 0) {
result = db.query("SELECT * FRO... |
diff --git a/flexmojos-maven-plugin/src/main/java/org/sonatype/flexmojos/compatibilitykit/VersionUtils.java b/flexmojos-maven-plugin/src/main/java/org/sonatype/flexmojos/compatibilitykit/VersionUtils.java
index f042e1e9..aabb2b67 100644
--- a/flexmojos-maven-plugin/src/main/java/org/sonatype/flexmojos/compatibilitykit/... | true | true | public static int[] splitVersion( String version )
{
if ( version == null || version.trim().equals( "" ) )
{
return new int[0];
}
int endIndex = version.indexOf( '-' );
if ( endIndex != -1 )
{
version = version.substring( 0, endIndex );
... | public static int[] splitVersion( String version )
{
if ( version == null || version.trim().equals( "" ) )
{
return new int[0];
}
int endIndex = version.indexOf( '-' );
if ( endIndex != -1 )
{
version = version.substring( 0, endIndex );
... |
diff --git a/src/edu/chalmers/dat255/group09/Alarmed/model/Alarm.java b/src/edu/chalmers/dat255/group09/Alarmed/model/Alarm.java
index 35d612d..a8fe496 100644
--- a/src/edu/chalmers/dat255/group09/Alarmed/model/Alarm.java
+++ b/src/edu/chalmers/dat255/group09/Alarmed/model/Alarm.java
@@ -1,252 +1,252 @@
/*
* Copyrig... | true | true | public String toString() {
// Format
int daysLeft = getDaysToNextAlarm(Calendar.getInstance().get(
Calendar.DAY_OF_WEEK));
boolean day = daysLeft > 0;
boolean days = daysLeft > 1;
boolean hour = getHoursToAlarm() > 0;
boolean hours = getHoursToAlarm() > 1;
boolean minute = getMinutesToAlarm() > 0;
... | public String toString() {
// Format
int daysLeft = getDaysToNextAlarm(Calendar.getInstance().get(
Calendar.DAY_OF_WEEK));
boolean day = daysLeft > 0;
boolean days = daysLeft > 1;
boolean hour = getHoursToAlarm() > 0;
boolean hours = getHoursToAlarm() > 1;
boolean minute = getMinutesToAlarm() > 0;
... |
diff --git a/policy/src/com/android/internal/policy/impl/KeyguardViewManager.java b/policy/src/com/android/internal/policy/impl/KeyguardViewManager.java
index 708e89d2..a0d8366b 100644
--- a/policy/src/com/android/internal/policy/impl/KeyguardViewManager.java
+++ b/policy/src/com/android/internal/policy/impl/KeyguardVi... | true | true | public synchronized void show() {
if (DEBUG) Log.d(TAG, "show(); mKeyguardView==" + mKeyguardView);
if (mKeyguardHost == null) {
if (DEBUG) Log.d(TAG, "keyguard host is null, creating it...");
mKeyguardHost = new KeyguardViewHost(mContext, mCallback);
final int... | public synchronized void show() {
if (DEBUG) Log.d(TAG, "show(); mKeyguardView==" + mKeyguardView);
if (mKeyguardHost == null) {
if (DEBUG) Log.d(TAG, "keyguard host is null, creating it...");
mKeyguardHost = new KeyguardViewHost(mContext, mCallback);
final int... |
diff --git a/optaplanner-examples/src/main/java/org/optaplanner/examples/vehiclerouting/domain/timewindowed/solver/ArrivalTimeUpdatingVariableListener.java b/optaplanner-examples/src/main/java/org/optaplanner/examples/vehiclerouting/domain/timewindowed/solver/ArrivalTimeUpdatingVariableListener.java
index 98f4a882d..30... | false | true | protected void updateVehicle(ScoreDirector scoreDirector, VrpTimeWindowedCustomer sourceCustomer) {
VrpStandstill previousStandstill = sourceCustomer.getPreviousStandstill();
int departureTime = (previousStandstill instanceof VrpTimeWindowedCustomer)
? ((VrpTimeWindowedCustomer) prev... | protected void updateVehicle(ScoreDirector scoreDirector, VrpTimeWindowedCustomer sourceCustomer) {
VrpStandstill previousStandstill = sourceCustomer.getPreviousStandstill();
Integer departureTime = (previousStandstill instanceof VrpTimeWindowedCustomer)
? ((VrpTimeWindowedCustomer) ... |
diff --git a/src/main/java/org/mapdb/DBMaker.java b/src/main/java/org/mapdb/DBMaker.java
index 9dc3297d..7a470bbc 100644
--- a/src/main/java/org/mapdb/DBMaker.java
+++ b/src/main/java/org/mapdb/DBMaker.java
@@ -1,898 +1,899 @@
/*
* Copyright (c) 2012 Jan Kotek
*
* Licensed under the Apache License, Version 2.0... | true | true | public Engine makeEngine(){
final boolean readOnly = propsGetBool(Keys.readOnly);
final File file = props.containsKey(Keys.file)? new File(props.getProperty(Keys.file)):null;
final String volume = props.getProperty(Keys.volume);
final String store = props.getProperty(Keys.store);
... | public Engine makeEngine(){
final boolean readOnly = propsGetBool(Keys.readOnly);
final File file = props.containsKey(Keys.file)? new File(props.getProperty(Keys.file)):null;
final String volume = props.getProperty(Keys.volume);
final String store = props.getProperty(Keys.store);
... |
diff --git a/src/indaprojekt/Game.java b/src/indaprojekt/Game.java
index 8a52ee3..e0a9c9b 100644
--- a/src/indaprojekt/Game.java
+++ b/src/indaprojekt/Game.java
@@ -1,241 +1,241 @@
package indaprojekt;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterat... | false | true | private void setupEntities(GameContainer container) throws SlickException
{
PlayerControls player1Controls = new PlayerControls(
Input.KEY_W,
Input.KEY_A,
Input.KEY_S,
Input.KEY_D,
Input.KEY_LCONTROL,
Input.KEY_LSHIFT);
Color transp = Color.whi... | private void setupEntities(GameContainer container) throws SlickException
{
PlayerControls player1Controls = new PlayerControls(
Input.KEY_W,
Input.KEY_A,
Input.KEY_S,
Input.KEY_D,
Input.KEY_LCONTROL,
Input.KEY_LSHIFT);
Color transp = Color.whi... |
diff --git a/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/controller/FlexoController.java b/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/controller/FlexoController.java
index d3ead8a63..be61131bd 100644
--- a/flexodesktop/GUI/flexo/src/main/java/org/openflexo/view/controller/FlexoController.java
+... | false | true | public static boolean confirmWithWarning(String msg) throws HeadlessException {
return showOptionDialog(FlexoFrame.getActiveFrame(), msg, FlexoLocalization.localizedForKey("information"),
JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, null, new Object[] { FlexoLocalization.localizedForKey("yes"),
... | public static boolean confirmWithWarning(String msg) throws HeadlessException {
return showOptionDialog(FlexoFrame.getActiveFrame(), msg, FlexoLocalization.localizedForKey("information"),
JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, null, new Object[] { FlexoLocalization.localizedForKey("yes"),
... |
diff --git a/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorActionTarget.java b/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorActionTarget.java
index 7fc0d3d3..80baf63c 100644
--- a/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorActionTarget.java
+++ b/CubicReco... | true | true | public void run(IAction action) {
AutoLayout autoLayout = new AutoLayout(testEditor);
if (!ExportUtils.testIsOkForRecord(test)) {
return;
}
test.resetStatus();
//action is toggle action:
if(isRecording()) {
//recorder running. stop it
UserInfo.setStatusLine(null);
stopSelenium(autoLay... | public void run(IAction action) {
AutoLayout autoLayout = new AutoLayout(testEditor);
if (!ExportUtils.testIsOkForRecord(test)) {
return;
}
test.resetStatus();
//action is toggle action:
if(isRecording()) {
//recorder running. stop it
UserInfo.setStatusLine(null);
stopSelenium(autoLay... |
diff --git a/src/java-common/org/xins/util/text/DateConverter.java b/src/java-common/org/xins/util/text/DateConverter.java
index e59f7db81..27c4c5cd8 100644
--- a/src/java-common/org/xins/util/text/DateConverter.java
+++ b/src/java-common/org/xins/util/text/DateConverter.java
@@ -1,147 +1,148 @@
/*
* $Id$
*/
pack... | true | true | public static String toDateString(TimeZone timeZone, long n) {
// Check preconditions
MandatoryArgumentChecker.check("timeZone", timeZone);
if (n == Long.MIN_VALUE) {
throw new IllegalArgumentException("n == Long.MIN_VALUE");
} else if (n == Long.MAX_VALUE) {
throw new Ille... | public static String toDateString(TimeZone timeZone, long n)
throws IllegalArgumentException {
// Check preconditions
MandatoryArgumentChecker.check("timeZone", timeZone);
if (n == Long.MIN_VALUE) {
throw new IllegalArgumentException("n == Long.MIN_VALUE");
} else if (n == Long.M... |
diff --git a/src/com/android/deskclock/AlarmReceiver.java b/src/com/android/deskclock/AlarmReceiver.java
index 23e5e23c6..d3664fc8c 100644
--- a/src/com/android/deskclock/AlarmReceiver.java
+++ b/src/com/android/deskclock/AlarmReceiver.java
@@ -1,246 +1,250 @@
/*
* Copyright (C) 2007 The Android Open Source Project
... | false | true | private void handleIntent(Context context, Intent intent) {
if (Alarms.ALARM_KILLED.equals(intent.getAction())) {
// The alarm has been killed, update the notification
updateNotification(context, (Alarm)
intent.getParcelableExtra(Alarms.ALARM_INTENT_EXTRA),
... | private void handleIntent(Context context, Intent intent) {
if (Alarms.ALARM_KILLED.equals(intent.getAction())) {
// The alarm has been killed, update the notification
updateNotification(context, (Alarm)
intent.getParcelableExtra(Alarms.ALARM_INTENT_EXTRA),
... |
diff --git a/ass2/src/main/java/com/dsp/ass2/Count.java b/ass2/src/main/java/com/dsp/ass2/Count.java
index a10b756..b98706d 100644
--- a/ass2/src/main/java/com/dsp/ass2/Count.java
+++ b/ass2/src/main/java/com/dsp/ass2/Count.java
@@ -1,332 +1,332 @@
package com.dsp.ass2;
import java.io.IOException;
import java.io.S... | true | true | public static void main(String[] args) throws Exception {
Configuration conf = new Configuration();
conf.set("mapred.reduce.slowstart.completed.maps", "1");
// conf.set("mapred.map.tasks", Utils.mapTasks);
// conf.set("mapred.reduce.tasks", Utils.reduceTasks);
Job job = ne... | public static void main(String[] args) throws Exception {
Configuration conf = new Configuration();
conf.set("mapred.reduce.slowstart.completed.maps", "1");
// conf.set("mapred.map.tasks", Utils.mapTasks);
// conf.set("mapred.reduce.tasks", Utils.reduceTasks);
Job job = ne... |
diff --git a/src/com/android/quicksearchbox/SuggestionsProviderImpl.java b/src/com/android/quicksearchbox/SuggestionsProviderImpl.java
index 181d80a..8847f46 100644
--- a/src/com/android/quicksearchbox/SuggestionsProviderImpl.java
+++ b/src/com/android/quicksearchbox/SuggestionsProviderImpl.java
@@ -1,222 +1,221 @@
/*... | true | true | public Suggestions getSuggestions(String query, Corpus singleCorpus, int maxSuggestions) {
if (DBG) Log.d(TAG, "getSuggestions(" + query + ")");
cancelPendingTasks();
List<Corpus> corporaToQuery = getCorporaToQuery(query, singleCorpus);
final Suggestions suggestions = new Suggestions... | public Suggestions getSuggestions(String query, Corpus singleCorpus, int maxSuggestions) {
if (DBG) Log.d(TAG, "getSuggestions(" + query + ")");
cancelPendingTasks();
List<Corpus> corporaToQuery = getCorporaToQuery(query, singleCorpus);
final Suggestions suggestions = new Suggestions... |
diff --git a/src/org/servalproject/servald/ServalD.java b/src/org/servalproject/servald/ServalD.java
index 026bd736..54ceba1a 100644
--- a/src/org/servalproject/servald/ServalD.java
+++ b/src/org/servalproject/servald/ServalD.java
@@ -1,431 +1,431 @@
/**
* Copyright (C) 2011 The Serval Project
*
* This file is p... | true | true | public static synchronized void dnaLookup(final LookupResults results, String did) {
if (log)
Log.i(ServalD.TAG, "args = [dna, lookup, " + did + "]");
rawCommand(new AbstractList<String>() {
Peer nextResult;
int resultNumber = 0;
@Override
public boolean add(String value) {
try {
if (log)
... | public static synchronized void dnaLookup(final LookupResults results, String did) {
if (log)
Log.i(ServalD.TAG, "args = [dna, lookup, " + did + "]");
rawCommand(new AbstractList<String>() {
Peer nextResult;
int resultNumber = 0;
@Override
public boolean add(String value) {
try {
if (log)
... |
diff --git a/src/test/java/eu/wisebed/wiseml/test/LoadWriteWiseML.java b/src/test/java/eu/wisebed/wiseml/test/LoadWriteWiseML.java
index 0fc7c7e..a81a77c 100644
--- a/src/test/java/eu/wisebed/wiseml/test/LoadWriteWiseML.java
+++ b/src/test/java/eu/wisebed/wiseml/test/LoadWriteWiseML.java
@@ -1,125 +1,126 @@
package eu... | true | true | public void doAnotherTest() throws FileNotFoundException {
FileInputStream fileML = null;
try {
fileML = new FileInputStream("C:\\wiseml\\telosB_short.wiseml");
} catch(Exception e){
System.err.println(e);
}
WiseMLController wmlcontr... | public void doAnotherTest() throws FileNotFoundException {
FileInputStream fileML = null;
try {
fileML = new FileInputStream("C:\\wiseml\\telosB_short.wiseml");
} catch(Exception e){
System.err.println(e);
}
WiseMLController wmlcontr... |
diff --git a/src/main/java/com/metaweb/gridworks/operations/ReconMatchBestCandidatesOperation.java b/src/main/java/com/metaweb/gridworks/operations/ReconMatchBestCandidatesOperation.java
index 34f88636..a5760449 100644
--- a/src/main/java/com/metaweb/gridworks/operations/ReconMatchBestCandidatesOperation.java
+++ b/src... | true | true | protected RowVisitor createRowVisitor(Project project, List<CellChange> cellChanges) throws Exception {
Column column = project.columnModel.getColumnByName(_columnName);
return new RowVisitor() {
int cellIndex;
List<CellChange> cellChanges;
p... | protected RowVisitor createRowVisitor(Project project, List<CellChange> cellChanges) throws Exception {
Column column = project.columnModel.getColumnByName(_columnName);
return new RowVisitor() {
int cellIndex;
List<CellChange> cellChanges;
p... |
diff --git a/src/dao/PessoaFisicaDao.java b/src/dao/PessoaFisicaDao.java
index 1a7f2f1..7a86eaf 100644
--- a/src/dao/PessoaFisicaDao.java
+++ b/src/dao/PessoaFisicaDao.java
@@ -1,393 +1,393 @@
package dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.S... | true | true | public List<PessoaFisica> obterClientesFisicos(String nome, String cpf) {
ArrayList<PessoaFisica> resultado = new ArrayList<PessoaFisica>();
java.sql.Connection conn = null;
String sqlSelect;
PreparedStatement stm = null;
ResultSet rs = null;
sqlSelect = "SELECT * FROM tb_clientepf"
+ " WHERE nome ... | public List<PessoaFisica> obterClientesFisicos(String nome, String cpf) {
ArrayList<PessoaFisica> resultado = new ArrayList<PessoaFisica>();
java.sql.Connection conn = null;
String sqlSelect;
PreparedStatement stm = null;
ResultSet rs = null;
sqlSelect = "SELECT * FROM tb_clientepf"
+ " WHERE nome ... |
diff --git a/src/java/org/codehaus/groovy/grails/web/converters/marshaller/json/MapMarshaller.java b/src/java/org/codehaus/groovy/grails/web/converters/marshaller/json/MapMarshaller.java
index 52a4be017..266baab50 100644
--- a/src/java/org/codehaus/groovy/grails/web/converters/marshaller/json/MapMarshaller.java
+++ b/s... | true | true | public void marshalObject(Object o, JSON converter) throws ConverterException {
JSONWriter writer = converter.getWriter();
writer.object();
Map<Object,Object> map = (Map<Object,Object>) o;
for (Map.Entry<Object,Object> entry : map.entrySet()) {
writer.key(entry.getKey().t... | public void marshalObject(Object o, JSON converter) throws ConverterException {
JSONWriter writer = converter.getWriter();
writer.object();
Map<Object,Object> map = (Map<Object,Object>) o;
for (Map.Entry<Object,Object> entry : map.entrySet()) {
Object key = entry.getKey()... |
diff --git a/tests/frontend/org/voltdb/dtxn/TestReplayTxnState.java b/tests/frontend/org/voltdb/dtxn/TestReplayTxnState.java
index 4c7326306..657357a2d 100644
--- a/tests/frontend/org/voltdb/dtxn/TestReplayTxnState.java
+++ b/tests/frontend/org/voltdb/dtxn/TestReplayTxnState.java
@@ -1,284 +1,285 @@
/* This file is pa... | true | true | public void testCoordinator() {
final ExecutionSite site = mock(ExecutionSite.class);
when(site.getSiteId()).thenReturn(1L);
doNothing().when(site).beginNewTxn(Mockito.any(TransactionState.class));
when(site.getSiteTracker()).thenReturn(tracker);
// READ-WRITE MP COORDINA... | public void testCoordinator() {
final ExecutionSite site = mock(ExecutionSite.class);
when(site.getSiteId()).thenReturn(1L);
doNothing().when(site).beginNewTxn(Mockito.any(TransactionState.class));
when(site.getSiteTracker()).thenReturn(tracker);
// READ-WRITE MP COORDINA... |
diff --git a/src/com/android/phone/TimeConsumingPreferenceActivity.java b/src/com/android/phone/TimeConsumingPreferenceActivity.java
index 19c4dda2..67cbe903 100644
--- a/src/com/android/phone/TimeConsumingPreferenceActivity.java
+++ b/src/com/android/phone/TimeConsumingPreferenceActivity.java
@@ -1,211 +1,214 @@
pack... | true | true | protected Dialog onCreateDialog(int id) {
if (id == BUSY_READING_DIALOG || id == BUSY_SAVING_DIALOG) {
ProgressDialog dialog = new ProgressDialog(this);
dialog.setTitle(getText(R.string.updating_title));
dialog.setIndeterminate(true);
switch(id) {
... | protected Dialog onCreateDialog(int id) {
if (id == BUSY_READING_DIALOG || id == BUSY_SAVING_DIALOG) {
ProgressDialog dialog = new ProgressDialog(this);
dialog.setTitle(getText(R.string.updating_title));
dialog.setIndeterminate(true);
switch(id) {
... |
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java
index 6b4d3f4a..d9017dab 100644
--- a/src/com/android/launcher2/LauncherModel.java
+++ b/src/com/android/launcher2/LauncherModel.java
@@ -1,1244 +1,1239 @@
/*
* Copyright (C) 2008 The Android Open Source Project
... | false | true | static boolean shortcutExists(Context context, String title, Intent intent) {
final ContentResolver cr = context.getContentResolver();
Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI,
new String[] { "title", "intent" }, "title=? and intent=?",
new String[] { title,... | static boolean shortcutExists(Context context, String title, Intent intent) {
final ContentResolver cr = context.getContentResolver();
Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI,
new String[] { "title", "intent" }, "title=? and intent=?",
new String[] { title,... |
diff --git a/impl/src/main/java/org/jboss/weld/bean/proxy/AbstractBeanInstance.java b/impl/src/main/java/org/jboss/weld/bean/proxy/AbstractBeanInstance.java
index 3416895a0..f12b81f88 100644
--- a/impl/src/main/java/org/jboss/weld/bean/proxy/AbstractBeanInstance.java
+++ b/impl/src/main/java/org/jboss/weld/bean/proxy/A... | true | true | public Object invoke(Object instance, Method method, Object... arguments) throws Throwable {
Object result = null;
try {
AccessController.doPrivileged(SetAccessibleAction.of(method));
result = method.invoke(instance, arguments);
} catch (InvocationTargetException e) {... | public Object invoke(Object instance, Method method, Object... arguments) throws Throwable {
Object result = null;
try {
if(!method.isAccessible()) {
if(System.getSecurityManager() != null) {
AccessController.doPrivileged(SetAccessibleAction.of(method)... |
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/PreferenceConstants.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/PreferenceConstants.java
index 2214a50b2..aa1aee232 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart... | true | true | public static void initializeDefaultValues(IPreferenceStore store) {
ColorRegistry registry = getColorRegistry();
store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS, false);
// JavaBasePreferencePage
store.setDefault(PreferenceConstants.DOUBLE_CLICK, PreferenceConstants.DOUBLE_CLICK_EXPANDS);
... | public static void initializeDefaultValues(IPreferenceStore store) {
ColorRegistry registry = getColorRegistry();
store.setDefault(PreferenceConstants.EDITOR_SHOW_SEGMENTS, false);
// JavaBasePreferencePage
store.setDefault(PreferenceConstants.DOUBLE_CLICK, PreferenceConstants.DOUBLE_CLICK_EXPANDS);
... |
diff --git a/src/uk/me/parabola/mkgmap/main/Main.java b/src/uk/me/parabola/mkgmap/main/Main.java
index bfaf53ed..cba28192 100644
--- a/src/uk/me/parabola/mkgmap/main/Main.java
+++ b/src/uk/me/parabola/mkgmap/main/Main.java
@@ -1,370 +1,371 @@
/*
* Copyright (C) 2007 Steve Ratcliffe
*
* This program is free sof... | false | true | public void endOptions(CommandArgs args) {
List<String> filenames = new ArrayList<String>();
if(threadPool != null) {
threadPool.shutdown();
while(!futures.isEmpty()) {
try {
try {
// don't call get() until a job has finished
if(futures.get(0).isDone())
filenames.add(futures.rem... | public void endOptions(CommandArgs args) {
List<String> filenames = new ArrayList<String>();
if(threadPool != null) {
threadPool.shutdown();
while(!futures.isEmpty()) {
try {
try {
// don't call get() until a job has finished
if(futures.get(0).isDone())
filenames.add(futures.rem... |
diff --git a/src/main/java/net/pleiades/ResultsListener.java b/src/main/java/net/pleiades/ResultsListener.java
index 7b47da8..18a5aae 100644
--- a/src/main/java/net/pleiades/ResultsListener.java
+++ b/src/main/java/net/pleiades/ResultsListener.java
@@ -1,204 +1,205 @@
/**
* Pleiades
* Copyright (C) 2011 - 2012
*... | true | true | public synchronized void onMessage(Message<Task> message) {
if (message.getMessageObject().getId().equals("")) { //this attempts to gather jobs from the completed map after the gatherer crashed unexpectedly
System.out.println("Checking all results"); //see line 45 in net.pleiades.Gatherer.j... | public synchronized void onMessage(Message<Task> message) {
if (message.getMessageObject().getId().equals("")) { //this attempts to gather jobs from the completed map after the gatherer crashed unexpectedly
System.out.println("Checking all results"); //see line 45 in net.pleiades.Gatherer.j... |
diff --git a/eol-globi-data-tool/src/test/java/org/eol/globi/data/NodeFactoryTest.java b/eol-globi-data-tool/src/test/java/org/eol/globi/data/NodeFactoryTest.java
index 9a543796..e76cde16 100644
--- a/eol-globi-data-tool/src/test/java/org/eol/globi/data/NodeFactoryTest.java
+++ b/eol-globi-data-tool/src/test/java/org/e... | true | true | public void createAndFindEnvironment() throws NodeFactoryException {
nodeFactory.setEnvoLookupService(new TermLookupService() {
@Override
public List<Term> lookupTermByName(String name) throws TermLookupServiceException {
ArrayList<Term> terms = new ArrayList<Term>();... | public void createAndFindEnvironment() throws NodeFactoryException {
nodeFactory.setEnvoLookupService(new TermLookupService() {
@Override
public List<Term> lookupTermByName(String name) throws TermLookupServiceException {
ArrayList<Term> terms = new ArrayList<Term>();... |
diff --git a/core/java/android/content/res/CompatibilityInfo.java b/core/java/android/content/res/CompatibilityInfo.java
index 8a6a6f03..19379fbd 100644
--- a/core/java/android/content/res/CompatibilityInfo.java
+++ b/core/java/android/content/res/CompatibilityInfo.java
@@ -1,102 +1,104 @@
/*
* Copyright (C) 2006 Th... | true | true | public CompatibilityInfo(ApplicationInfo appInfo) {
mExpandable = appInfo.expandable;
float packageDensityScale = -1.0f;
if (appInfo.supportsDensities != null) {
int minDiff = Integer.MAX_VALUE;
for (int density : appInfo.supportsDensities) {
int tmpDi... | public CompatibilityInfo(ApplicationInfo appInfo) {
// A temp workaround to fix rotation issue.
// mExpandable = appInfo.expandable;
mExpandable = true;
float packageDensityScale = -1.0f;
if (appInfo.supportsDensities != null) {
int minDiff = Integer.MAX_VALUE;
... |
diff --git a/src/java/net/bbm485/main/UserManager.java b/src/java/net/bbm485/main/UserManager.java
index 9c52f0e..fe811f2 100644
--- a/src/java/net/bbm485/main/UserManager.java
+++ b/src/java/net/bbm485/main/UserManager.java
@@ -1,90 +1,90 @@
package net.bbm485.main;
import javax.ws.rs.core.Context;
import javax.w... | true | true | public String showUser(@PathParam("userId") String userId) {
JSONObject result = new JSONObject();
try {
User user = db.getUser(userId);
// TODO : make 200 final static
result.put("meta", (new JSONObject()).put("code", 200));
result.put("data", user.t... | public String showUser(@PathParam("userId") String userId) {
JSONObject result = new JSONObject();
try {
User user = db.getUser(userId);
// TODO : make 200 final static
result.put("meta", (new JSONObject()).put("code", 200));
result.put("data", user.t... |
diff --git a/portal/src/main/java/eu/europeana/web/controller/RegisterPageController.java b/portal/src/main/java/eu/europeana/web/controller/RegisterPageController.java
index 071200a3..f8d47262 100644
--- a/portal/src/main/java/eu/europeana/web/controller/RegisterPageController.java
+++ b/portal/src/main/java/eu/europe... | true | true | public void validate(Object o, Errors errors) {
RegistrationForm form = (RegistrationForm) o;
ValidationUtils.rejectIfEmptyOrWhitespace(errors, "userName", "username.required", "Username is required");
ValidationUtils.rejectIfEmptyOrWhitespace(errors, "password", "password.re... | public void validate(Object o, Errors errors) {
RegistrationForm form = (RegistrationForm) o;
ValidationUtils.rejectIfEmptyOrWhitespace(errors, "userName", "_mine.user.register.requiredfield", "Username is required");
ValidationUtils.rejectIfEmptyOrWhitespace(errors, "passwor... |
diff --git a/src/org/napile/idea/plugin/completion/DescriptorLookupConverter.java b/src/org/napile/idea/plugin/completion/DescriptorLookupConverter.java
index f4680cf..d69aaa7 100644
--- a/src/org/napile/idea/plugin/completion/DescriptorLookupConverter.java
+++ b/src/org/napile/idea/plugin/completion/DescriptorLookupCo... | true | true | public static LookupElement createLookupElement(@NotNull BindingContext bindingContext, @NotNull DeclarationDescriptor descriptor, @Nullable PsiElement declaration)
{
LookupElementBuilder element = LookupElementBuilder.create(new JetLookupObject(descriptor, bindingContext, declaration), descriptor.getName().getNam... | public static LookupElement createLookupElement(@NotNull BindingContext bindingContext, @NotNull DeclarationDescriptor descriptor, @Nullable PsiElement declaration)
{
LookupElementBuilder element = LookupElementBuilder.create(new JetLookupObject(descriptor, bindingContext, declaration), descriptor.getName().getNam... |
diff --git a/src/sabazios/HeapGraphNodeDecorator.java b/src/sabazios/HeapGraphNodeDecorator.java
index d47441a..1216aa9 100644
--- a/src/sabazios/HeapGraphNodeDecorator.java
+++ b/src/sabazios/HeapGraphNodeDecorator.java
@@ -1,58 +1,58 @@
package sabazios;
import sabazios.util.wala.viz.NodeDecorator;
import com.... | true | true | public String getLabel(Object obj) throws WalaException {
if(obj instanceof AllocationSiteInNode) {
AllocationSiteInNode o = (AllocationSiteInNode) obj;
return o.getSite().getDeclaredType().getName().getClassName() + " [ "+o.getNode().getMethod().getName().toString() + "@" + o.getSite().getProgramCounter()+" ... | public String getLabel(Object obj) throws WalaException {
if(obj instanceof AllocationSiteInNode) {
AllocationSiteInNode o = (AllocationSiteInNode) obj;
return o.getSite().getDeclaredType().getName().getClassName() + " [ "+o.getNode().getMethod().getName().toString() + "@" + o.getSite().getProgramCounter()+" ... |
diff --git a/modules/unsupported/jdbc-ng/jdbc-core/src/main/java/org/geotools/jdbc/JDBCDataStoreFactory.java b/modules/unsupported/jdbc-ng/jdbc-core/src/main/java/org/geotools/jdbc/JDBCDataStoreFactory.java
index d9dbd9525..45240a199 100644
--- a/modules/unsupported/jdbc-ng/jdbc-core/src/main/java/org/geotools/jdbc/JDB... | true | true | public final DataStore createDataStore(Map params)
throws IOException {
JDBCDataStore dataStore = new JDBCDataStore();
//datasource + dialect
dataStore.setDataSource(createDataSource(params));
dataStore.setSQLDialect(createSQLDialect(dataStore));
//namespace
... | public final DataStore createDataStore(Map params)
throws IOException {
JDBCDataStore dataStore = new JDBCDataStore();
//datasource + dialect
dataStore.setDataSource(createDataSource(params));
dataStore.setSQLDialect(createSQLDialect(dataStore));
//namespace
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.