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/plugins/apple/src/com/jivesoftware/spark/plugin/apple/ApplePlugin.java b/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/ApplePlugin.java
index 94aa00ed..cfc91ac6 100644
--- a/src/plugins/apple/src/com/jivesoftware/spark/plugin/apple/ApplePlugin.java
+++ b/src/plugins/apple/src/com/jivesoftwa... | false | true | public void initialize() {
if (Spark.isMac()) {
roomListener = new DockRoomListener();
SparkManager.getChatManager().addChatRoomListener(roomListener);
// Remove the About Menu Item from the help menu
MainWindow mainWindow = SparkManager.getMainWindow();
... | public void initialize() {
if (Spark.isMac()) {
roomListener = new DockRoomListener();
SparkManager.getChatManager().addChatRoomListener(roomListener);
// Remove the About Menu Item from the help menu
MainWindow mainWindow = SparkManager.getMainWindow();
... |
diff --git a/src/gov/nih/nci/nautilus/ui/report/ClinicalSampleReport.java b/src/gov/nih/nci/nautilus/ui/report/ClinicalSampleReport.java
index 252f1e05..57943677 100755
--- a/src/gov/nih/nci/nautilus/ui/report/ClinicalSampleReport.java
+++ b/src/gov/nih/nci/nautilus/ui/report/ClinicalSampleReport.java
@@ -1,206 +1,206 ... | true | true | public Document getReportXML(Resultant resultant) {
// have setter or put in props file
String theColors[] = { "B6C5F2","F2E3B5","DAE1F9","C4F2B5","819BE9", "E9CF81" };
DecimalFormat resultFormat = new DecimalFormat("0.0000");
Document document = DocumentHelper.createDocument();
Element report = docum... | public Document getReportXML(Resultant resultant) {
// have setter or put in props file
String theColors[] = { "B6C5F2","F2E3B5","DAE1F9","C4F2B5","819BE9", "E9CF81" };
DecimalFormat resultFormat = new DecimalFormat("0.0000");
Document document = DocumentHelper.createDocument();
Element report = docum... |
diff --git a/core/src/playn/core/gl/GL20Program.java b/core/src/playn/core/gl/GL20Program.java
index 22911c44..80ea4057 100644
--- a/core/src/playn/core/gl/GL20Program.java
+++ b/core/src/playn/core/gl/GL20Program.java
@@ -1,190 +1,190 @@
/**
* Copyright 2012 The PlayN Authors
*
* Licensed under the Apache Licen... | true | true | public GL20Program(GLContext ctx, GL20 gl, String vertexSource, String fragmentSource) {
this.gl = gl;
int program = 0, vertexShader = 0, fragmentShader = 0;
try {
program = gl.glCreateProgram();
if (program == 0) {
throw new RuntimeException("Failed to create program: " + gl.glGetErr... | public GL20Program(GLContext ctx, GL20 gl, String vertexSource, String fragmentSource) {
this.gl = gl;
int program = 0, vertexShader = 0, fragmentShader = 0;
try {
program = gl.glCreateProgram();
if (program == 0) {
throw new RuntimeException("Failed to create program: " + gl.glGetErr... |
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandrealname.java b/Essentials/src/com/earth2me/essentials/commands/Commandrealname.java
index c9901821..d5e3571d 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandrealname.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Comman... | false | true | protected void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception
{
if (args.length < 1)
{
throw new NotEnoughArgumentsException();
}
final String whois = args[0].toLowerCase(Locale.ENGLISH);
for (Player onlinePlayer : server.getOnlinePla... | protected void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception
{
if (args.length < 1)
{
throw new NotEnoughArgumentsException();
}
final String whois = args[0].toLowerCase(Locale.ENGLISH);
boolean foundUser = false;
for (Player onlin... |
diff --git a/vlc-android/src/org/videolan/vlc/widget/AudioMediaSwitcher.java b/vlc-android/src/org/videolan/vlc/widget/AudioMediaSwitcher.java
index dc212102..284f0f25 100644
--- a/vlc-android/src/org/videolan/vlc/widget/AudioMediaSwitcher.java
+++ b/vlc-android/src/org/videolan/vlc/widget/AudioMediaSwitcher.java
@@ -1... | true | true | public void updateMedia() {
AudioServiceController audioController = AudioServiceController.getInstance();
if (audioController == null)
return;
removeAllViews();
hasPrevious = false;
previousPosition = 0;
LayoutInflater inflater = (LayoutInflater) getCo... | public void updateMedia() {
AudioServiceController audioController = AudioServiceController.getInstance();
if (audioController == null)
return;
removeAllViews();
hasPrevious = false;
previousPosition = 0;
LayoutInflater inflater = (LayoutInflater) getCo... |
diff --git a/testing_tool/src/main/java/edu/ch/unifr/diuf/testing_tool/Coordinator.java b/testing_tool/src/main/java/edu/ch/unifr/diuf/testing_tool/Coordinator.java
index 05930fd..f404094 100644
--- a/testing_tool/src/main/java/edu/ch/unifr/diuf/testing_tool/Coordinator.java
+++ b/testing_tool/src/main/java/edu/ch/unif... | false | true | public static void main(String... args) throws TransportException, IOException {
MachineManager mm = new MachineManager();
try {
System.out.println("Parsing properties file ...");
mm.parsePropertiesFile();
}
catch( WrongIpAddressException |
... | public static void main(String... args) throws TransportException, IOException {
MachineManager mm = new MachineManager();
try {
System.out.println("Parsing properties file ...");
mm.parsePropertiesFile();
}
catch( WrongIpAddressException |
... |
diff --git a/src/gui/inventory/InventoryController.java b/src/gui/inventory/InventoryController.java
index f30daff..b5c488d 100644
--- a/src/gui/inventory/InventoryController.java
+++ b/src/gui/inventory/InventoryController.java
@@ -1,821 +1,825 @@
package gui.inventory;
import gui.common.Controller;
import gui.co... | false | true | public void addProductToContainer(ProductData productData,
ProductContainerData containerData) {
/*
* Desired Behavior
*
* Target Product Container = the Product Container the user dropped the Product on
*
* Target StorageUnit = the StorageUnit containing the Target Product Container
*
* ... | public void addProductToContainer(ProductData productData,
ProductContainerData containerData) {
/*
* Desired Behavior
*
* Target Product Container = the Product Container the user dropped the Product on
*
* Target StorageUnit = the StorageUnit containing the Target Product Container
*
* ... |
diff --git a/src/protocol/swg/objectControllerObjects/Animation.java b/src/protocol/swg/objectControllerObjects/Animation.java
index c3475969..751b6f1a 100644
--- a/src/protocol/swg/objectControllerObjects/Animation.java
+++ b/src/protocol/swg/objectControllerObjects/Animation.java
@@ -1,75 +1,75 @@
/*****************... | true | true | public IoBuffer serialize() {
IoBuffer result = IoBuffer.allocate(36).order(ByteOrder.LITTLE_ENDIAN);
result.putInt(ObjControllerMessage.ANIMATION);
result.putLong(objectId); // person performing animation's id
result.putInt(0); // seems to be just a place holder
result.put(getAsciiString(animation)); ... | public IoBuffer serialize() {
IoBuffer result = IoBuffer.allocate(16 + animation.length()).order(ByteOrder.LITTLE_ENDIAN);
result.putInt(ObjControllerMessage.ANIMATION);
result.putLong(objectId); // person performing animation's id
result.putInt(0); // seems to be just a place holder
result.put(getAsci... |
diff --git a/Java/antisamy/src/main/java/org/owasp/validator/html/scan/AntiSamyDOMScanner.java b/Java/antisamy/src/main/java/org/owasp/validator/html/scan/AntiSamyDOMScanner.java
index fece9bd..771da1d 100644
--- a/Java/antisamy/src/main/java/org/owasp/validator/html/scan/AntiSamyDOMScanner.java
+++ b/Java/antisamy/src... | false | true | private void recursiveValidateTag(Node node) {
if (node instanceof Comment ) {
String preserveComments = policy.getDirective(Policy.PRESERVE_COMMENTS);
if (preserveComments == null || !"true".equals(preserveComments)) {
node.getParentNode().removeChild(node);
} else {
String value = ((Comment)... | private void recursiveValidateTag(Node node) {
if (node instanceof Comment ) {
String preserveComments = policy.getDirective(Policy.PRESERVE_COMMENTS);
if (preserveComments == null || !"true".equals(preserveComments)) {
node.getParentNode().removeChild(node);
} else {
String value = ((Comment)... |
diff --git a/tests/org.eclipse.rap.rwt.test/src/org/eclipse/rwt/internal/lifecycle/RenderDispose_Test.java b/tests/org.eclipse.rap.rwt.test/src/org/eclipse/rwt/internal/lifecycle/RenderDispose_Test.java
index 4f0ab6eab..03646c0cf 100644
--- a/tests/org.eclipse.rap.rwt.test/src/org/eclipse/rwt/internal/lifecycle/RenderD... | false | true | public void testDisposeNotYetInitialized() throws IOException {
// set up the test widget hierarchy
Display display = new Display();
final Composite shell = new Shell( display , SWT.NONE );
String displayId = DisplayUtil.getAdapter( display ).getId();
// first rendering: html document that contain... | public void testDisposeNotYetInitialized() throws IOException {
// set up the test widget hierarchy
Display display = new Display();
final Composite shell = new Shell( display , SWT.NONE );
String displayId = DisplayUtil.getAdapter( display ).getId();
// first rendering: html document that contain... |
diff --git a/src/fr/eurecom/messaging/Receiver.java b/src/fr/eurecom/messaging/Receiver.java
index 2709219..b38350b 100644
--- a/src/fr/eurecom/messaging/Receiver.java
+++ b/src/fr/eurecom/messaging/Receiver.java
@@ -1,78 +1,78 @@
package fr.eurecom.messaging;
import java.io.BufferedReader;
import java.io.IOExcept... | true | true | protected JSONObject doInBackground(String... params) {
try {
ServerSocket socket = new ServerSocket(Config.PORT);
Log.d(Receiver.TAG, "Client: Socket opened!!");
while (listening) {
// Wait for incoming message
Socket sender = socket.accept();
// Read incoming message
BufferedReader in = ne... | protected JSONObject doInBackground(String... params) {
try {
socket = new ServerSocket(Config.PORT);
Log.d(Receiver.TAG, "Client: Socket opened!!");
while (listening) {
// Wait for incoming message
Socket sender = socket.accept();
// Read incoming message
BufferedReader in = new BufferedRea... |
diff --git a/src/main/java/pt/ua/tm/trigner/model/ModelFeaturePipeline.java b/src/main/java/pt/ua/tm/trigner/model/ModelFeaturePipeline.java
index 5be360f..6b5e9d3 100644
--- a/src/main/java/pt/ua/tm/trigner/model/ModelFeaturePipeline.java
+++ b/src/main/java/pt/ua/tm/trigner/model/ModelFeaturePipeline.java
@@ -1,137 +... | true | true | public static Pipe get(final ModelConfiguration mc, final String dictionaryPath) {
ArrayList<Pipe> pipe = new ArrayList<>();
// Input parsing
pipe.add(new pt.ua.tm.trigner.model.pipe.Input2TokenSequence(mc));
// Capitalization
if (mc.isProperty("capitalization")) {
... | public static Pipe get(final ModelConfiguration mc, final String dictionaryPath) {
ArrayList<Pipe> pipe = new ArrayList<>();
// Input parsing
pipe.add(new pt.ua.tm.trigner.model.pipe.Input2TokenSequence(mc));
// Capitalization
if (mc.isProperty("capitalization")) {
... |
diff --git a/src/main/org/codehaus/groovy/ant/Groovyc.java b/src/main/org/codehaus/groovy/ant/Groovyc.java
index ad7d930b2..9903bf5d1 100644
--- a/src/main/org/codehaus/groovy/ant/Groovyc.java
+++ b/src/main/org/codehaus/groovy/ant/Groovyc.java
@@ -1,401 +1,401 @@
/*
$Id$
Copyright 2003 (C) James Strachan and Bo... | false | true | protected void compile() {
if (compileList.length > 0) {
log(
"Compiling "
+ compileList.length
+ " source file"
+ (compileList.length == 1 ? "" : "s")
+ (destDir != null ? " to " + destDir : ""));
... | protected void compile() {
if (compileList.length > 0) {
log(
"Compiling "
+ compileList.length
+ " source file"
+ (compileList.length == 1 ? "" : "s")
+ (destDir != null ? " to " + destDir : ""));
... |
diff --git a/drools-core/src/test/java/org/drools/reteoo/RuleFlowGroupTest.java b/drools-core/src/test/java/org/drools/reteoo/RuleFlowGroupTest.java
index bb08bb6bbf..dfe322327d 100644
--- a/drools-core/src/test/java/org/drools/reteoo/RuleFlowGroupTest.java
+++ b/drools-core/src/test/java/org/drools/reteoo/RuleFlowGrou... | false | true | public void testRuleFlowGroup() {
final RuleBase ruleBase = RuleBaseFactory.newRuleBase();
final ReteooWorkingMemory workingMemory = (ReteooWorkingMemory) ruleBase.newWorkingMemory();
final InternalAgenda agenda = (InternalAgenda) workingMemory.getAgenda();
final List list = new A... | public void testRuleFlowGroup() {
final RuleBase ruleBase = RuleBaseFactory.newRuleBase();
final ReteooWorkingMemory workingMemory = (ReteooWorkingMemory) ruleBase.newWorkingMemory();
final InternalAgenda agenda = (InternalAgenda) workingMemory.getAgenda();
final List list = new A... |
diff --git a/components/dotnet-executable/src/main/java/npanday/executable/CommandExecutor.java b/components/dotnet-executable/src/main/java/npanday/executable/CommandExecutor.java
index 9736c5bf..cde1e527 100644
--- a/components/dotnet-executable/src/main/java/npanday/executable/CommandExecutor.java
+++ b/components/d... | true | true | public static CommandExecutor createDefaultCommmandExecutor()
{
return new CommandExecutor()
{
/**
* Instance of a plugin logger.
*/
private Logger logger;
/**
* Standard Out
... | public static CommandExecutor createDefaultCommmandExecutor()
{
return new CommandExecutor()
{
/**
* Instance of a plugin logger.
*/
private Logger logger;
/**
* Standard Out
... |
diff --git a/src/test/java/org/neo4j/examples/osgi/OSGiTest.java b/src/test/java/org/neo4j/examples/osgi/OSGiTest.java
index 1e32d6c..112d705 100644
--- a/src/test/java/org/neo4j/examples/osgi/OSGiTest.java
+++ b/src/test/java/org/neo4j/examples/osgi/OSGiTest.java
@@ -1,52 +1,52 @@
package org.neo4j.examples.osgi;
/*... | true | true | public void lessonTest()
throws Exception
{
new Player().with(
options(
mavenBundle().groupId( "org.ops4j.pax.logging" ).artifactId( "pax-logging-service" ).version( "1.6.2" ),
mavenBundle().groupId( "org.apache.geronimo.specs" ).artifactId( "geronimo-... | public void lessonTest()
throws Exception
{
new Player().with(
options(
mavenBundle().groupId( "org.ops4j.pax.logging" ).artifactId( "pax-logging-service" ).version( "1.6.2" ),
mavenBundle().groupId( "org.apache.geronimo.specs" ).artifactId( "geronimo-... |
diff --git a/src/main/java/net/croxis/plugins/research/RInventoryListener.java b/src/main/java/net/croxis/plugins/research/RInventoryListener.java
index e2c0b78..651dc23 100644
--- a/src/main/java/net/croxis/plugins/research/RInventoryListener.java
+++ b/src/main/java/net/croxis/plugins/research/RInventoryListener.java... | false | true | public void onInventoryCraft(CraftItemEvent event){
if (event.getWhoClicked().hasPermission("research")){
//if(TechManager.players.get(event.getWhoClicked()).cantCraft.contains(event.getResult().getTypeId()) && event.getPlayer().hasPermission("research"))
if(TechManager.players.get(event.getWhoClicked()).cantC... | public void onInventoryCraft(CraftItemEvent event){
if (event.getWhoClicked().hasPermission("research")){
//if(TechManager.players.get(event.getWhoClicked()).cantCraft.contains(event.getResult().getTypeId()) && event.getPlayer().hasPermission("research"))
Research.logDebug("Craft Event: " + event.getWhoClicked... |
diff --git a/ZPI1/src/com/pwr/zpi/ChartActivity.java b/ZPI1/src/com/pwr/zpi/ChartActivity.java
index 74c0ba9..5f91520 100644
--- a/ZPI1/src/com/pwr/zpi/ChartActivity.java
+++ b/ZPI1/src/com/pwr/zpi/ChartActivity.java
@@ -1,84 +1,90 @@
package com.pwr.zpi;
import android.app.Activity;
import android.os.AsyncTask;
... | true | true | protected Void doInBackground(Void... params) {
seriesSpeed = new LinearSeries();
seriesSpeed.setLineColor(getResources().getColor(R.color.chart_speed));
seriesSpeed.setLineWidth(getResources().getDimension(R.dimen.chart_line_width));
seriesAltitude = new LinearSeries();
seriesAltitude.setLineColor... | protected Void doInBackground(Void... params) {
seriesSpeed = new LinearSeries();
seriesSpeed.setLineColor(getResources().getColor(R.color.chart_speed));
seriesSpeed.setLineWidth(getResources().getDimension(R.dimen.chart_line_width));
seriesAltitude = new LinearSeries();
seriesAltitude.setLineColor... |
diff --git a/app/utils/CloudifyUtils.java b/app/utils/CloudifyUtils.java
index 3e05638..5ff125c 100644
--- a/app/utils/CloudifyUtils.java
+++ b/app/utils/CloudifyUtils.java
@@ -1,219 +1,218 @@
/*******************************************************************************
* Copyright (c) 2011 GigaSpaces Technologie... | true | true | public static File createCloudFolder(String userName, String apiKey, ComputeServiceContext context) throws IOException {
CloudBootstrapConfiguration cloudConf = ApplicationContext.get().conf().server.cloudBootstrap;
String cloudifyBuildFolder = ApplicationContext.get().conf().server.environment.getEnvironment()... | public static File createCloudFolder(String userName, String apiKey, ComputeServiceContext context) throws IOException {
CloudBootstrapConfiguration cloudConf = ApplicationContext.get().conf().server.cloudBootstrap;
String cloudifyBuildFolder = ApplicationContext.get().conf().server.environment.cloudifyHome;
... |
diff --git a/src/com/vividsolutions/jump/workbench/ui/cursortool/editing/MoveVertexTool.java b/src/com/vividsolutions/jump/workbench/ui/cursortool/editing/MoveVertexTool.java
index 9fea0312..185981cf 100644
--- a/src/com/vividsolutions/jump/workbench/ui/cursortool/editing/MoveVertexTool.java
+++ b/src/com/vividsolution... | true | true | public void mousePressed(final MouseEvent e) {
try {
if (!check(checkFactory.createAtLeastNLayersMustBeEditableCheck(1))) {
return;
}
if (!check(checkFactory.createAtLeastNItemsMustBeSelectedCheck(1))) {
return;
}
//... | public void mousePressed(final MouseEvent e) {
try {
if (!check(checkFactory.createAtLeastNLayersMustBeEditableCheck(1))) {
return;
}
if (!check(checkFactory.createAtLeastNItemsMustBeSelectedCheck(1))) {
return;
}
//... |
diff --git a/src/com/csipsimple/wizards/impl/Pbxes.java b/src/com/csipsimple/wizards/impl/Pbxes.java
index d4ecaee3..8e975b67 100644
--- a/src/com/csipsimple/wizards/impl/Pbxes.java
+++ b/src/com/csipsimple/wizards/impl/Pbxes.java
@@ -1,65 +1,65 @@
/**
* Copyright (C) 2010-2012 Regis Montoya (aka r3gis - www.r3gis.f... | true | true | public SipProfile buildAccount(SipProfile account) {
SipProfile acc = super.buildAccount(account);
acc.vm_nbr = "*43";
return acc;
}
| public SipProfile buildAccount(SipProfile account) {
SipProfile acc = super.buildAccount(account);
acc.vm_nbr = "*97";
return acc;
}
|
diff --git a/code/br.ufpe.cin.reviewer.ui.rcp/src/br/ufpe/cin/reviewer/ui/rcp/literaturereview/ManualStudyView.java b/code/br.ufpe.cin.reviewer.ui.rcp/src/br/ufpe/cin/reviewer/ui/rcp/literaturereview/ManualStudyView.java
index 6e87b24..a30fe6b 100644
--- a/code/br.ufpe.cin.reviewer.ui.rcp/src/br/ufpe/cin/reviewer/ui/rc... | true | true | private void createStudyWidgets(Composite parent) {
section = toolkit.createSection(form.getBody(), Section.SHORT_TITLE_BAR);
section.setLayout(new GridLayout(1, false));
section.setText("INFO");
GridData sectionLayout = new GridData(GridData.FILL_BOTH);
sectionLayout.grabExcessVerticalSpace =... | private void createStudyWidgets(Composite parent) {
section = toolkit.createSection(form.getBody(), Section.SHORT_TITLE_BAR);
section.setLayout(new GridLayout(1, false));
section.setText("INFO");
GridData sectionLayout = new GridData(GridData.FILL_BOTH);
sectionLayout.grabExcessVerticalSpace =... |
diff --git a/src/org/newdawn/slick/tiled/TiledMap.java b/src/org/newdawn/slick/tiled/TiledMap.java
index 7a66570..187cc01 100644
--- a/src/org/newdawn/slick/tiled/TiledMap.java
+++ b/src/org/newdawn/slick/tiled/TiledMap.java
@@ -1,677 +1,678 @@
package org.newdawn.slick.tiled;
import java.io.ByteArrayInputStream;
... | true | true | public TileSet(Element element) throws SlickException {
name = element.getAttribute("name");
firstGID = Integer.parseInt(element.getAttribute("firstgid"));
String source = element.getAttribute("source");
if ((source != null) && (!source.equals(""))) {
try {
InputStream in = ResourceLoader.get... | public TileSet(Element element) throws SlickException {
name = element.getAttribute("name");
firstGID = Integer.parseInt(element.getAttribute("firstgid"));
String source = element.getAttribute("source");
if ((source != null) && (!source.equals(""))) {
try {
InputStream in = ResourceLoader.get... |
diff --git a/debug/org.eclipse.ptp.debug.sdm.core/src/org/eclipse/ptp/debug/sdm/core/SDMDebugger.java b/debug/org.eclipse.ptp.debug.sdm.core/src/org/eclipse/ptp/debug/sdm/core/SDMDebugger.java
index c7fcefa02..4a96a3c6c 100644
--- a/debug/org.eclipse.ptp.debug.sdm.core/src/org/eclipse/ptp/debug/sdm/core/SDMDebugger.jav... | true | true | public synchronized void initialize(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException {
SubMonitor progress = SubMonitor.convert(monitor, 30);
try {
if (Preferences.getBoolean(SDMDebugCorePlugin.getUniqueIdentifier(), SDMPreferenceConstants.SDM_DEBUG_CLIENT_ENABLED)) {
int l... | public synchronized void initialize(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException {
SubMonitor progress = SubMonitor.convert(monitor, 30);
try {
if (Preferences.getBoolean(SDMDebugCorePlugin.getUniqueIdentifier(), SDMPreferenceConstants.SDM_DEBUG_CLIENT_ENABLED)) {
int l... |
diff --git a/core/src/com/clarkparsia/openrdf/query/util/DescribeVisitor.java b/core/src/com/clarkparsia/openrdf/query/util/DescribeVisitor.java
index 1e085fc..6db1cc5 100644
--- a/core/src/com/clarkparsia/openrdf/query/util/DescribeVisitor.java
+++ b/core/src/com/clarkparsia/openrdf/query/util/DescribeVisitor.java
@@ ... | true | true | public void meet(final ProjectionElem theProjectionElem) throws Exception {
if (theProjectionElem.getSourceName().startsWith("descr") && (theProjectionElem.getTargetName().equals("subject")
|| theProjectionElem.getTargetName().equals("predicate")
|| theProjectionElem.getTarget... | public void meet(final ProjectionElem theProjectionElem) throws Exception {
if ((theProjectionElem.getSourceName().startsWith("-descr") || theProjectionElem.getSourceName().startsWith("descr_")) && (theProjectionElem.getTargetName().equals("subject")
|| theProjectionElem.getTargetN... |
diff --git a/sigfood-android/src/de/sigfood/MealFragment.java b/sigfood-android/src/de/sigfood/MealFragment.java
index 9bca716..1a9c7ce 100644
--- a/sigfood-android/src/de/sigfood/MealFragment.java
+++ b/sigfood-android/src/de/sigfood/MealFragment.java
@@ -1,253 +1,263 @@
package de.sigfood;
// --------------------... | false | true | public static void setMeal(final MensaEssen e) {
backMeal = null;
CommentFragment.setComments(e);
LinearLayout essen = (LinearLayout)v.findViewById(R.id.mealList);
View scroller = (View)v.findViewById(R.id.meal);
scroller.setVisibility(View.VISIBLE);
View note = (View)v.findViewById(R.id.mealNote);
n... | public static void setMeal(final MensaEssen e) {
backMeal = null;
CommentFragment.setComments(e);
LinearLayout essen = (LinearLayout)v.findViewById(R.id.mealList);
View scroller = (View)v.findViewById(R.id.meal);
scroller.setVisibility(View.VISIBLE);
View note = (View)v.findViewById(R.id.mealNote);
n... |
diff --git a/enunciate/core/src/java/net/sf/enunciate/apt/EnunciateAnnotationProcessorFactory.java b/enunciate/core/src/java/net/sf/enunciate/apt/EnunciateAnnotationProcessorFactory.java
index b45589e3..2c34b9cf 100755
--- a/enunciate/core/src/java/net/sf/enunciate/apt/EnunciateAnnotationProcessorFactory.java
+++ b/enu... | true | true | public EnunciateAnnotationProcessorFactory(Enunciate enunciate) throws EnunciateException {
this.processor = new EnunciateAnnotationProcessor(enunciate);
}
| public EnunciateAnnotationProcessorFactory(Enunciate enunciate) throws EnunciateException {
this.processor = new EnunciateAnnotationProcessor(enunciate);
this.round = 0; //todo: fix this in APT-Jelly. What it really needs to do is listen to the rounds.
}
|
diff --git a/core/src/main/java/hudson/model/Hudson.java b/core/src/main/java/hudson/model/Hudson.java
index 42031ca31..d2bfbc4b5 100644
--- a/core/src/main/java/hudson/model/Hudson.java
+++ b/core/src/main/java/hudson/model/Hudson.java
@@ -1,2545 +1,2550 @@
package hudson.model;
import com.thoughtworks.xstream.XSt... | false | true | public synchronized Item doCreateItem( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException {
checkPermission(Job.CREATE);
TopLevelItem result;
String requestContentType = req.getContentType();
if(requestContentType==null) {
rsp.sendError(HttpS... | public synchronized Item doCreateItem( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException {
checkPermission(Job.CREATE);
TopLevelItem result;
String requestContentType = req.getContentType();
if(requestContentType==null) {
rsp.sendError(HttpS... |
diff --git a/src/org/mozilla/javascript/NodeTransformer.java b/src/org/mozilla/javascript/NodeTransformer.java
index b2e38949..33317c25 100644
--- a/src/org/mozilla/javascript/NodeTransformer.java
+++ b/src/org/mozilla/javascript/NodeTransformer.java
@@ -1,539 +1,540 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mod... | false | true | private void transformCompilationUnit_r(final ScriptOrFnNode tree,
final Node parent,
Node.Scope scope,
boolean createScopeObjects)
{
Node node = null;
siblingLoop:
... | private void transformCompilationUnit_r(final ScriptOrFnNode tree,
final Node parent,
Node.Scope scope,
boolean createScopeObjects)
{
Node node = null;
siblingLoop:
... |
diff --git a/WhereAreYou/src/main/java/com/snot/whereareyou/HistoryListFragment.java b/WhereAreYou/src/main/java/com/snot/whereareyou/HistoryListFragment.java
index 4ef6316..8baa75b 100644
--- a/WhereAreYou/src/main/java/com/snot/whereareyou/HistoryListFragment.java
+++ b/WhereAreYou/src/main/java/com/snot/whereareyou/... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final Context context = getActivity();
SimpleCursorAdapter adapter = new SimpleCursorAdapter(getActivity(),
android.R.layout.simple_list_item_2,
null,
new String[] { History.CO... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final Context context = getActivity();
SimpleCursorAdapter adapter = new SimpleCursorAdapter(getActivity(),
android.R.layout.simple_list_item_2,
null,
new String[] { History.CO... |
diff --git a/cube-common/src/main/java/ch/admin/vbs/cube/common/container/impl/DmcryptContainerFactory.java b/cube-common/src/main/java/ch/admin/vbs/cube/common/container/impl/DmcryptContainerFactory.java
index 3a2f31f..0404a5a 100644
--- a/cube-common/src/main/java/ch/admin/vbs/cube/common/container/impl/DmcryptContai... | true | true | public static void cleanup() {
try {
File varDir = new File(CubeCommonProperties.getProperty("cube.scripts.dir") + "/../var/");
if (!varDir.exists()) {
LOG.debug("Cleanup skipped. Directory [{}] does not exist", varDir.getAbsolutePath());
return;
}
LOG.debug("Cleanup remaining containers.");
f... | public static void cleanup() {
try {
File varDir = new File(CubeCommonProperties.getProperty("cube.scripts.dir") + "/../var/");
if (!varDir.exists()) {
LOG.debug("Cleanup skipped. Directory [{}] does not exist", varDir.getAbsolutePath());
return;
}
LOG.debug("Cleanup remaining containers.");
f... |
diff --git a/Commander.java b/Commander.java
index 90457ca..5ba030c 100644
--- a/Commander.java
+++ b/Commander.java
@@ -1,193 +1,192 @@
/**
* Commander.java
*
* This class is designed to be to command interpreter
* and pareser. The keyword is initially parsed and
* the appropriate method is called.
*
... | false | true | public void defineTour()
{
Tour t = null;
Event e = null;
String comp = s.next();
String id = s.next();
String startLoc = s.next();
String endLoc = s.next();
int days = s.nextInt();
int fit = s.nextInt();
int cap = s.nextInt();
int sT = 0;
int eT = 0;
int hours = 0;
... | public void defineTour()
{
Tour t = null;
Event e = null;
String comp = s.next();
String id = s.next();
String startLoc = s.next();
String endLoc = s.next();
int days = s.nextInt();
int fit = s.nextInt();
int cap = s.nextInt();
int sT = 0;
int eT = 0;
int hours = 0;
... |
diff --git a/jgsf/src/main/java/com/jenjinstudios/net/Server.java b/jgsf/src/main/java/com/jenjinstudios/net/Server.java
index a34a1d3c..4b1d4cc7 100755
--- a/jgsf/src/main/java/com/jenjinstudios/net/Server.java
+++ b/jgsf/src/main/java/com/jenjinstudios/net/Server.java
@@ -1,213 +1,213 @@
package com.jenjinstudios.ne... | false | true | public final boolean blockingStart() {
long startTime = System.currentTimeMillis();
long timepast = System.currentTimeMillis() - startTime;
start();
while (!initialized && (timepast < TIMEOUT_MILLIS))
{
try // TODO make sure error is handled gracefully
{
Thread.sleep(10);
timepast = System.curr... | public final boolean blockingStart() {
long startTime = System.currentTimeMillis();
long timepast = System.currentTimeMillis() - startTime;
start();
while (!initialized && (timepast < TIMEOUT_MILLIS))
{
try
{
Thread.sleep(10);
timepast = System.currentTimeMillis() - startTime;
} catch (Inter... |
diff --git a/BetterBatteryStats/src/com/asksven/betterbatterystats/StatsActivity.java b/BetterBatteryStats/src/com/asksven/betterbatterystats/StatsActivity.java
index 726ea310..82c96362 100644
--- a/BetterBatteryStats/src/com/asksven/betterbatterystats/StatsActivity.java
+++ b/BetterBatteryStats/src/com/asksven/betterb... | false | true | protected void onCreate(Bundle savedInstanceState)
{
Log.i(TAG, "OnCreated called");
super.onCreate(savedInstanceState);
setContentView(R.layout.stats);
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);
// set debugging
if (sharedPrefs.getBoolean("debug_logging", f... | protected void onCreate(Bundle savedInstanceState)
{
Log.i(TAG, "OnCreated called");
super.onCreate(savedInstanceState);
setContentView(R.layout.stats);
SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);
// set debugging
if (sharedPrefs.getBoolean("debug_logging", f... |
diff --git a/core/src/main/java/org/apache/mina/common/support/AbstractIoFilterChain.java b/core/src/main/java/org/apache/mina/common/support/AbstractIoFilterChain.java
index df96b678..9c49b485 100644
--- a/core/src/main/java/org/apache/mina/common/support/AbstractIoFilterChain.java
+++ b/core/src/main/java/org/apache/... | true | true | private EntryImpl( EntryImpl prevEntry, EntryImpl nextEntry,
String name, IoFilter filter )
{
if( filter == null )
{
throw new NullPointerException( "filter" );
}
if( name == null )
{
throw... | private EntryImpl( EntryImpl prevEntry, EntryImpl nextEntry,
String name, IoFilter filter )
{
if( filter == null )
{
throw new NullPointerException( "filter" );
}
if( name == null )
{
throw... |
diff --git a/src/haven/Homing.java b/src/haven/Homing.java
index 23fc4886..5c66ceff 100644
--- a/src/haven/Homing.java
+++ b/src/haven/Homing.java
@@ -1,66 +1,69 @@
/*
* This file is part of the Haven & Hearth game client.
* Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and
* Bjö... | true | true | public Coord3f getc() {
Coord tc = this.tc;
Gob tgt = gob.glob.oc.getgob(this.tgt);
if(tgt != null)
tc = tgt.rc;
Coord d = tc.add(gob.rc.inv());
double e = gob.rc.dist(tc);
float rx = (float)((d.x / e) * dist) + gob.rc.x;
float ry = (float)((d.y / e) * dist) + gob.rc.y;
return(new Coord3f(rx, ry, gob.g... | public Coord3f getc() {
Coord tc = this.tc;
Gob tgt = gob.glob.oc.getgob(this.tgt);
if(tgt != null)
tc = tgt.rc;
Coord d = tc.add(gob.rc.inv());
double e = gob.rc.dist(tc);
float rx = gob.rc.x, ry = gob.rc.y;
if(e > 0.00001) {
rx += (float)((d.x / e) * dist);
ry += (float)((d.y / e) * dist);
... |
diff --git a/android/src/name/drahflow/utilator/TimeDistribution.java b/android/src/name/drahflow/utilator/TimeDistribution.java
index f081179..8c292c5 100644
--- a/android/src/name/drahflow/utilator/TimeDistribution.java
+++ b/android/src/name/drahflow/utilator/TimeDistribution.java
@@ -1,126 +1,126 @@
package name.d... | false | true | public static TimeDistribution compile(int def, List<String> distribution, Map<String, Date> cache) {
if(distribution == null || distribution.isEmpty()) {
return new TimeDistributionConstant(def);
}
Collections.sort(distribution);
List<TimeDistributionComplex.Entry> entries = new ArrayList<TimeDistributio... | public static TimeDistribution compile(int def, List<String> distribution, Map<String, Date> cache) {
if(distribution == null || distribution.isEmpty()) {
return new TimeDistributionConstant(def);
}
Collections.sort(distribution);
List<TimeDistributionComplex.Entry> entries = new ArrayList<TimeDistributio... |
diff --git a/src/main/java/org/jenkinsci/plugins/xunit/types/QTestlibType.java b/src/main/java/org/jenkinsci/plugins/xunit/types/QTestlibType.java
index e0cc386..cb7a951 100644
--- a/src/main/java/org/jenkinsci/plugins/xunit/types/QTestlibType.java
+++ b/src/main/java/org/jenkinsci/plugins/xunit/types/QTestlibType.java... | false | true | public InputMetric getInputMetric() {
try {
return InputMetricFactory.getInstance(CheckInputMetric.class);
} catch (InputMetricException e) {
throw new RuntimeException("Can't create the inputMetric object for the class " + CheckInputMetric.class);
... | public InputMetric getInputMetric() {
try {
return InputMetricFactory.getInstance(QTestLibInputMetric.class);
} catch (InputMetricException e) {
throw new RuntimeException("Can't create the inputMetric object for the class " + QTestLibInputMetric.class);
... |
diff --git a/blocksworld/Algorithm.java b/blocksworld/Algorithm.java
index 2f39d9b..9bb47a1 100644
--- a/blocksworld/Algorithm.java
+++ b/blocksworld/Algorithm.java
@@ -1,80 +1,80 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package blocksworld;
import j... | true | true | public void run(State initial, State goal){
State state = initial;
ArrayList<Operator> plan = new ArrayList<Operator>();
stack.add(goal);
stack.add(goal.getPredicates());
while(stack.size() > 0){
Object c = stack.remove(stack.size()-1);
... | public void run(State initial, State goal){
State state = initial;
ArrayList<Operator> plan = new ArrayList<Operator>();
stack.add(goal);
stack.add(goal.getPredicates());
while(stack.size() > 0){
Object c = stack.remove(stack.size()-1);
... |
diff --git a/src/com/htb/cnk/data/MyOrder.java b/src/com/htb/cnk/data/MyOrder.java
index 0929ad6..752a5eb 100644
--- a/src/com/htb/cnk/data/MyOrder.java
+++ b/src/com/htb/cnk/data/MyOrder.java
@@ -1,481 +1,481 @@
package com.htb.cnk.data;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.... | true | true | public int delDish(int dishId) {
Log.d("DID", "" + dishId);
JSONObject order = new JSONObject();
Date date = new Date();
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String time = df.format(date);
if (mOrder.size() <= 0) {
return -1;
}
try {
order.put("tableId", Info.getTabl... | public int delDish(int dishId) {
Log.d("DID", "" + dishId);
JSONObject order = new JSONObject();
Date date = new Date();
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String time = df.format(date);
if (mOrder.size() <= 0) {
return -1;
}
try {
order.put("tableId", Info.getTabl... |
diff --git a/curator-x-discovery/src/test/java/com/netflix/curator/x/discovery/TestServiceDiscovery.java b/curator-x-discovery/src/test/java/com/netflix/curator/x/discovery/TestServiceDiscovery.java
index 5dc549cb..cc61e503 100644
--- a/curator-x-discovery/src/test/java/com/netflix/curator/x/discovery/TestServiceDiscov... | false | true | public void testMultipleInstances() throws Exception
{
final String SERVICE_ONE = "one";
final String SERVICE_TWO = "two";
List<Closeable> closeables = Lists.newArrayList();
TestingServer server = new TestingServer();
closeables.add(server... | public void testMultipleInstances() throws Exception
{
final String SERVICE_ONE = "one";
final String SERVICE_TWO = "two";
List<Closeable> closeables = Lists.newArrayList();
TestingServer server = new TestingServer();
closeables.add(server... |
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/editor/sections/ServicesSection.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/editor/sections/ServicesSection.java
index 18395e78f..e19986d60 100644
--- a/target_explorer/plugins/org.ecl... | true | true | public void setupData(final IPeerModel node) {
// Store a reference to the original data
od = node;
// Clean the original data copy
odc.clearProperties();
// If no data is available, we are done
if (node == null) return;
// Trigger the query of the services provided by the node
final AtomicBoolean ne... | public void setupData(final IPeerModel node) {
// Store a reference to the original data
od = node;
// Clean the original data copy
odc.clearProperties();
// If no data is available, we are done
if (node == null) return;
// Trigger the query of the services provided by the node
final AtomicBoolean ne... |
diff --git a/src/main/java/javax/time/chrono/Chrono.java b/src/main/java/javax/time/chrono/Chrono.java
index d6382004..3ecf4660 100644
--- a/src/main/java/javax/time/chrono/Chrono.java
+++ b/src/main/java/javax/time/chrono/Chrono.java
@@ -1,729 +1,729 @@
/*
* Copyright (c) 2012, Stephen Colebourne & Michael Nascimen... | true | true | public String getText(TextStyle style, Locale locale) {
return new DateTimeFormatterBuilder().appendChronoText(style).toFormatter(locale).print(new DefaultInterfaceDateTimeAccessor() {
@Override
public boolean isSupported(DateTimeField field) {
return false;
... | public String getText(TextStyle style, Locale locale) {
return new DateTimeFormatterBuilder().appendChronoText(style).toFormatter(locale).print(new DefaultInterfaceDateTimeAccessor() {
@Override
public boolean isSupported(DateTimeField field) {
return false;
... |
diff --git a/src/com/googlecode/sardine/util/SardineException.java b/src/com/googlecode/sardine/util/SardineException.java
index 62c8f9d..3693bd9 100644
--- a/src/com/googlecode/sardine/util/SardineException.java
+++ b/src/com/googlecode/sardine/util/SardineException.java
@@ -1,83 +1,83 @@
package com.googlecode.sardi... | true | true | public SardineException(String msg, String url, int statusCode, String responsePhrase, Exception initCause)
{
super(msg + responsePhrase != null ? ", response: " + responsePhrase : "" + ", statusCode: " + statusCode);
this.url = url;
this.statusCode = statusCode;
this.responsePhrase = responsePhrase;
if (in... | public SardineException(String msg, String url, int statusCode, String responsePhrase, Exception initCause)
{
super(msg, initCause);
this.url = url;
this.statusCode = statusCode;
this.responsePhrase = responsePhrase;
if (initCause != null)
this.initCause(initCause);
}
|
diff --git a/src/main/java/com/kfuntak/gwt/json/serialization/SerializationGenerator.java b/src/main/java/com/kfuntak/gwt/json/serialization/SerializationGenerator.java
index f3b8466..0cb1b9b 100644
--- a/src/main/java/com/kfuntak/gwt/json/serialization/SerializationGenerator.java
+++ b/src/main/java/com/kfuntak/gwt/js... | false | true | private String generateTypeSerialization(String typeName) throws NotFoundException {
JClassType baseType = typeOracle.getType(typeName);
String packageName = baseType.getPackage().getName();
StringBuffer buffer = new StringBuffer();
buffer.append("public JSONValue serializeToJson(O... | private String generateTypeSerialization(String typeName) throws NotFoundException {
JClassType baseType = typeOracle.getType(typeName);
String packageName = baseType.getPackage().getName();
StringBuffer buffer = new StringBuffer();
buffer.append("public JSONValue serializeToJson(O... |
diff --git a/src/org/imaginationforpeople/android2/projectview/InfoProjectViewFragment.java b/src/org/imaginationforpeople/android2/projectview/InfoProjectViewFragment.java
index 4917154..6635425 100644
--- a/src/org/imaginationforpeople/android2/projectview/InfoProjectViewFragment.java
+++ b/src/org/imaginationforpeop... | true | true | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
project = getArguments().getParcelable(DataHelper.PROJECT_VIEW_KEY);
ScrollView layout = (ScrollView) inflater.inflate(R.layout.projectview_info, null);
LinearLayout overlay = (LinearLayout) layout.findViewById(R... | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
project = getArguments().getParcelable(DataHelper.PROJECT_VIEW_KEY);
ScrollView layout = (ScrollView) inflater.inflate(R.layout.projectview_info, null);
LinearLayout overlay = (LinearLayout) layout.findViewById(R... |
diff --git a/amibe/src/org/jcae/mesh/stitch/EdgeProjector.java b/amibe/src/org/jcae/mesh/stitch/EdgeProjector.java
index 2eb2356a..4c5987fb 100644
--- a/amibe/src/org/jcae/mesh/stitch/EdgeProjector.java
+++ b/amibe/src/org/jcae/mesh/stitch/EdgeProjector.java
@@ -1,828 +1,832 @@
/*
* Project Info: http://jcae.source... | false | true | private void dispatchCases(boolean origin, boolean destination,
AbstractHalfEdge edge, Triangle t) {
lastMergeSource = null;
lastMergeTarget = null;
lastSplitted1 = null;
lastSplitted2 = null;
if (triangleProjector1.getType() == ProjectionType.OUT && !destination) {
//Split and edge of the triangle and ... | private void dispatchCases(boolean origin, boolean destination,
AbstractHalfEdge edge, Triangle t) {
lastMergeSource = null;
lastMergeTarget = null;
lastSplitted1 = null;
lastSplitted2 = null;
if (triangleProjector1.getType() == ProjectionType.OUT && !destination) {
//Split and edge of the triangle and ... |
diff --git a/app/notifiers/Mails.java b/app/notifiers/Mails.java
index e8ed26b..ed3e14c 100644
--- a/app/notifiers/Mails.java
+++ b/app/notifiers/Mails.java
@@ -1,71 +1,71 @@
package notifiers;
import models.Invitation;
import models.Project;
import models.Role;
import models.User;
import play.Play;
import pla... | true | true | public static boolean sendInvitationEmail(String email, Project project, User fromUser, Role role) {
setSubject(Messages.get("mail_invitation_subject"));
setFrom(Play.configuration.getProperty(SECURESOCIAL_MAILER_FROM));
Date cutoffDate = new Date(System.currentTimeMillis() - 86400000L);
... | public static boolean sendInvitationEmail(String email, Project project, User fromUser, Role role) {
setSubject(Messages.get("mail_invitation_subject", fromUser.fullName, project.title));
setFrom(Play.configuration.getProperty(SECURESOCIAL_MAILER_FROM));
Date cutoffDate = new Date(System.c... |
diff --git a/net.sourceforge.vrapper.eclipse/src/net/sourceforge/vrapper/eclipse/interceptor/VimInputInterceptorFactory.java b/net.sourceforge.vrapper.eclipse/src/net/sourceforge/vrapper/eclipse/interceptor/VimInputInterceptorFactory.java
index ec590992..496a7756 100644
--- a/net.sourceforge.vrapper.eclipse/src/net/sou... | true | true | public void selectionChanged(SelectionChangedEvent event) {
if (!VrapperPlugin.isMouseDown()
|| !(event.getSelection() instanceof TextSelection)
|| !editorAdaptor.getConfiguration().get(Options.VISUAL_MOUSE))
return;
TextSelection ... | public void selectionChanged(SelectionChangedEvent event) {
if ( ! VrapperPlugin.isVrapperEnabled()
|| ! VrapperPlugin.isMouseDown()
|| ! (event.getSelection() instanceof TextSelection)
|| ! editorAdaptor.getConfiguration().get(Options.VISU... |
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/Main.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/Main.java
index 52f21ac8b..7515b03db 100644
--- a/src/checkstyle/com/puppycrawl/tools/checkstyle/Main.java
+++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/Main.java
@@ -1,316 +1,317 @@
//////////... | true | true | public static void main(String[] aArgs)
{
// parse the parameters
final CommandLineParser clp = new PosixParser();
CommandLine line = null;
try {
line = clp.parse(OPTS, aArgs);
}
catch (final ParseException e) {
e.printStackTrace();
... | public static void main(String[] aArgs)
{
// parse the parameters
final CommandLineParser clp = new PosixParser();
CommandLine line = null;
try {
line = clp.parse(OPTS, aArgs);
}
catch (final ParseException e) {
e.printStackTrace();
... |
diff --git a/src/main/java/cpw/mods/fml/installer/DownloadUtils.java b/src/main/java/cpw/mods/fml/installer/DownloadUtils.java
index 323c522..badb1a9 100644
--- a/src/main/java/cpw/mods/fml/installer/DownloadUtils.java
+++ b/src/main/java/cpw/mods/fml/installer/DownloadUtils.java
@@ -1,255 +1,254 @@
package cpw.mods.f... | false | true | public static int downloadInstalledLibraries(String jsonMarker, File librariesDir, IMonitor monitor, List<JsonNode> libraries, int progress, List<String> grabbed, List<String> bad)
{
Random r = new Random();
for (JsonNode library : libraries)
{
String libName = library.getStr... | public static int downloadInstalledLibraries(String jsonMarker, File librariesDir, IMonitor monitor, List<JsonNode> libraries, int progress, List<String> grabbed, List<String> bad)
{
for (JsonNode library : libraries)
{
String libName = library.getStringValue("name");
Lis... |
diff --git a/tool/src/java/org/sakaiproject/evaluation/tool/producers/ModifyBlockProducer.java b/tool/src/java/org/sakaiproject/evaluation/tool/producers/ModifyBlockProducer.java
index 2d5b773e..ba9ef9b8 100644
--- a/tool/src/java/org/sakaiproject/evaluation/tool/producers/ModifyBlockProducer.java
+++ b/tool/src/java/o... | true | true | public void fillComponents(UIContainer tofill, ViewParameters viewparams,
ComponentChecker checker) {
BlockIdsParameters evParameters = (BlockIdsParameters) viewparams;
Long templateId = evParameters.templateId;
System.out.println("templateId=" + evParameters.templateId);
System.out.println("block item id... | public void fillComponents(UIContainer tofill, ViewParameters viewparams,
ComponentChecker checker) {
BlockIdsParameters evParameters = (BlockIdsParameters) viewparams;
Long templateId = evParameters.templateId;
System.out.println("templateId=" + evParameters.templateId);
System.out.println("block item id... |
diff --git a/mmstudio/src/org/micromanager/MMIntroDlg.java b/mmstudio/src/org/micromanager/MMIntroDlg.java
index 0befaa3b7..283753bda 100644
--- a/mmstudio/src/org/micromanager/MMIntroDlg.java
+++ b/mmstudio/src/org/micromanager/MMIntroDlg.java
@@ -1,257 +1,258 @@
//////////////////////////////////////////////////////... | false | true | public MMIntroDlg(String ver, ArrayList<String> mruCFGFileList) {
super();
mruCFGFileList_ = mruCFGFileList;
setFont(new Font("Arial", Font.PLAIN, 10));
setTitle("Micro-Manager Startup");
getContentPane().setLayout(null);
setName("Intro");
setResizable(false);
setModal... | public MMIntroDlg(String ver, ArrayList<String> mruCFGFileList) {
super();
mruCFGFileList_ = mruCFGFileList;
setFont(new Font("Arial", Font.PLAIN, 10));
setTitle("Micro-Manager Startup");
getContentPane().setLayout(null);
setName("Intro");
setResizable(false);
setModal... |
diff --git a/solver/src/main/java/solver/constraints/ConstraintFactory.java b/solver/src/main/java/solver/constraints/ConstraintFactory.java
index 8bf651925..26a8a35d2 100644
--- a/solver/src/main/java/solver/constraints/ConstraintFactory.java
+++ b/solver/src/main/java/solver/constraints/ConstraintFactory.java
@@ -1,2... | true | true | public static Constraint scalar(IntVar[] vars, int[] coeffs, IntLinComb.Operator op,
int c, Solver solver) {
TObjectIntHashMap<IntVar> map = new TObjectIntHashMap<IntVar>();
for (int i = 0; i < vars.length; i++) {
map.adjustOrPutValue(vars[i], coeffs[i... | public static Constraint scalar(IntVar[] vars, int[] coeffs, IntLinComb.Operator op,
int c, Solver solver) {
TObjectIntHashMap<IntVar> map = new TObjectIntHashMap<IntVar>();
for (int i = 0; i < vars.length; i++) {
map.adjustOrPutValue(vars[i], coeffs[i... |
diff --git a/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java b/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJavaClassDescription.java
index 0bd8d7220..d3a301795 100644
--- a/scrplugin/src/main/java/org/apache/felix/scrplugin/tags/cl/ClassLoaderJav... | true | true | public JavaTag[] getTagsByName(String name, boolean inherited)
throws MojoExecutionException {
JavaTag[] javaTags = EMPTY_TAGS;
if ( this.component != null ) {
if ( Constants.SERVICE.equals(name) ) {
if ( this.component.getService() != null &&
thi... | public JavaTag[] getTagsByName(String name, boolean inherited)
throws MojoExecutionException {
JavaTag[] javaTags = EMPTY_TAGS;
if ( this.component != null ) {
if ( Constants.SERVICE.equals(name) ) {
if ( this.component.getService() != null &&
thi... |
diff --git a/proxy/src/main/java/org/candlepin/guice/JPAInitializer.java b/proxy/src/main/java/org/candlepin/guice/JPAInitializer.java
index d23c7343b..082c23cc9 100644
--- a/proxy/src/main/java/org/candlepin/guice/JPAInitializer.java
+++ b/proxy/src/main/java/org/candlepin/guice/JPAInitializer.java
@@ -1,32 +1,32 @@
... | true | true | protected JPAInitializer(PersistenceService service) {
//service.start();
}
| protected JPAInitializer(PersistenceService service) {
service.start();
}
|
diff --git a/src/greedGame/model/player/CowardAIPlayer.java b/src/greedGame/model/player/CowardAIPlayer.java
index 1793cc1..65db4b9 100644
--- a/src/greedGame/model/player/CowardAIPlayer.java
+++ b/src/greedGame/model/player/CowardAIPlayer.java
@@ -1,35 +1,35 @@
package greedGame.model.player;
import java.util.List... | true | true | public void Decide()
{
rollDice();
List<Dice> diceList = getUnreservedDice();
ScoringRules rules = getScoringRules();
List<ScoringCombination> combinations = rules.getScoringCombinations(diceList);
for(ScoringCombination forCombo : combinations)
{
if(forCombo.getScore() > 0)
{
for(Dice forDic... | public void decide()
{
rollDice();
List<Dice> diceList = getUnreservedDice();
ScoringRules rules = getScoringRules();
List<ScoringCombination> combinations = rules.getScoringCombinations(diceList);
for(ScoringCombination forCombo : combinations)
{
if(forCombo.getScore() > 0)
{
for(Dice forDic... |
diff --git a/src/swarm/client/view/cell/VisualCellHighlight.java b/src/swarm/client/view/cell/VisualCellHighlight.java
index 5fa4aa1..55a358a 100644
--- a/src/swarm/client/view/cell/VisualCellHighlight.java
+++ b/src/swarm/client/view/cell/VisualCellHighlight.java
@@ -1,181 +1,182 @@
package swarm.client.view.cell;
... | true | true | private void update()
{
MouseNavigator navManager = m_viewContext.mouseNavigator;
boolean isMouseTouchingSnappableCell = navManager.isMouseTouchingSnappableCell();
//--- DRK > TODO: Really minor so might never fix, but this is kinda sloppy.
//--- There should probably be a "panning" state or something t... | private void update()
{
MouseNavigator navManager = m_viewContext.mouseNavigator;
boolean isMouseTouchingSnappableCell = navManager.isMouseTouchingSnappableCell();
//--- DRK > TODO: Really minor so might never fix, but this is kinda sloppy.
//--- There should probably be a "panning" state or something t... |
diff --git a/src/main/java/org/spout/vanilla/controller/object/moving/Item.java b/src/main/java/org/spout/vanilla/controller/object/moving/Item.java
index 0311d04a..d8711076 100644
--- a/src/main/java/org/spout/vanilla/controller/object/moving/Item.java
+++ b/src/main/java/org/spout/vanilla/controller/object/moving/Ite... | true | true | public void onTick(float dt) {
if (unpickable > 0) {
unpickable--;
super.onTick(dt);
return;
}
super.onTick(dt);
Block block = getParent().getRegion().getBlock(getParent().getPosition().subtract(0, 1, 0));
if (!block.getMaterial().isPlacementObstacle()) {
Vector3 next = block.getPosition();
g... | public void onTick(float dt) {
if (unpickable > 0) {
unpickable--;
super.onTick(dt);
return;
}
super.onTick(dt);
Block block = getParent().getRegion().getBlock(getParent().getPosition().subtract(0, 1, 0));
if (!block.getMaterial().isPlacementObstacle()) {
Vector3 next = block.getPosition();
g... |
diff --git a/app/src/main/java/org/sensapp/android/sensappdroid/restservice/PutMeasuresTask.java b/app/src/main/java/org/sensapp/android/sensappdroid/restservice/PutMeasuresTask.java
index f5c4438..5d922d3 100644
--- a/app/src/main/java/org/sensapp/android/sensappdroid/restservice/PutMeasuresTask.java
+++ b/app/src/mai... | true | true | protected Integer doInBackground(Void... params) {
int rowsUploaded = 0;
ArrayList<String> sensorNames = new ArrayList<String>();
Cursor cursor = context.getContentResolver().query(uri, new String[]{"DISTINCT " + SensAppCPContract.Measure.SENSOR}, null, null, null);
if (cursor != null) {
while (cursor.mo... | protected Integer doInBackground(Void... params) {
int rowsUploaded = 0;
ArrayList<String> sensorNames = new ArrayList<String>();
Cursor cursor = context.getContentResolver().query(uri, new String[]{"DISTINCT " + SensAppCPContract.Measure.SENSOR}, null, null, null);
if (cursor != null) {
while (cursor.mo... |
diff --git a/tools/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/PreCompilerBuilder.java b/tools/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/PreCompilerBuilder.java
index 2f733fa9..ae5583d7 100644
--- a/tools/eclipse/plugins/com... | false | true | protected IProject[] build(int kind, Map args, IProgressMonitor monitor)
throws CoreException {
try {
mDerivedProgressMonitor.reset();
// First thing we do is go through the resource delta to not
// lose it if we have to abort the build for any reason.
... | protected IProject[] build(int kind, Map args, IProgressMonitor monitor)
throws CoreException {
try {
mDerivedProgressMonitor.reset();
// First thing we do is go through the resource delta to not
// lose it if we have to abort the build for any reason.
... |
diff --git a/cadpage/src/net/anei/cadpage/parsers/MDAlleganyCountyParser.java b/cadpage/src/net/anei/cadpage/parsers/MDAlleganyCountyParser.java
index 0ae80d7cd..b3ba40b2e 100644
--- a/cadpage/src/net/anei/cadpage/parsers/MDAlleganyCountyParser.java
+++ b/cadpage/src/net/anei/cadpage/parsers/MDAlleganyCountyParser.java... | true | true | protected void parse(String body, Data data) {
Log.v("DecodeAlleganyCo: Message Body of:" + body);
data.defState="MD";
data.defCity="ALLEGANY COUNTY";
Properties props = parseMessage(body, "\n");
// SUBJ: line contains the call ID as the last token
String line = props.getPropert... | protected void parse(String body, Data data) {
Log.v("DecodeAlleganyCo: Message Body of:" + body);
data.defState="MD";
data.defCity="ALLEGANY COUNTY";
Properties props = parseMessage(body, "\n");
// SUBJ: line contains the call ID as the last token
String line = props.getPropert... |
diff --git a/src/com/android/phone/NotificationMgr.java b/src/com/android/phone/NotificationMgr.java
index 56d42294..f797be3c 100644
--- a/src/com/android/phone/NotificationMgr.java
+++ b/src/com/android/phone/NotificationMgr.java
@@ -1,1243 +1,1243 @@
/*
* Copyright (C) 2006 The Android Open Source Project
*
* ... | true | true | private void updateInCallNotification(boolean allowFullScreenIntent) {
int resId;
if (DBG) log("updateInCallNotification(allowFullScreenIntent = "
+ allowFullScreenIntent + ")...");
// Never display the "ongoing call" notification on
// non-voice-capable devices... | private void updateInCallNotification(boolean allowFullScreenIntent) {
int resId;
if (DBG) log("updateInCallNotification(allowFullScreenIntent = "
+ allowFullScreenIntent + ")...");
// Never display the "ongoing call" notification on
// non-voice-capable devices... |
diff --git a/src/com/android/mms/transaction/MessagingNotification.java b/src/com/android/mms/transaction/MessagingNotification.java
index 985f7bc3..664d5f3f 100644
--- a/src/com/android/mms/transaction/MessagingNotification.java
+++ b/src/com/android/mms/transaction/MessagingNotification.java
@@ -1,1548 +1,1549 @@
/*... | false | true | private static void updateNotification(
Context context,
boolean isNew,
int uniqueThreadCount,
SortedSet<NotificationInfo> notificationSet) {
// If the user has turned off notifications in settings, don't do any notifying.
if (!MessagingPreferenceActiv... | private static void updateNotification(
Context context,
boolean isNew,
int uniqueThreadCount,
SortedSet<NotificationInfo> notificationSet) {
// If the user has turned off notifications in settings, don't do any notifying.
if (!MessagingPreferenceActiv... |
diff --git a/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/admin/LockssAuthServiceBean.java b/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/admin/LockssAuthServiceBean.java
index b5768d21..c4045feb 100644
--- a/src/DVN-EJB/src/java/edu/harvard/iq/dvn/core/admin/LockssAuthServiceBean.java
+++ b/src/DVN-EJB/src/java/edu/ha... | false | true | public Boolean isAuthorizedLockssDownload ( VDC vdc,
HttpServletRequest req,
Boolean fileIsRestricted) {
String remoteAddress = req.getRemoteHost();
if (remoteAddress == null || remoteAddress.equals("")... | public Boolean isAuthorizedLockssDownload ( VDC vdc,
HttpServletRequest req,
Boolean fileIsRestricted) {
String remoteAddress = req.getRemoteHost();
if (remoteAddress == null || remoteAddress.equals("")... |
diff --git a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/jobs/JobTest.java b/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/jobs/JobTest.java
index 26441c540..b9cc540c6 100644
--- a/tests/org.eclipse.core.tests.runtime/src/org/eclipse/core/tests/runtime/jobs/JobTest.... | true | true | public void testAsynchJobConflict() {
final int[] status = {TestBarrier.STATUS_WAIT_FOR_START, TestBarrier.STATUS_WAIT_FOR_START, TestBarrier.STATUS_WAIT_FOR_START, TestBarrier.STATUS_WAIT_FOR_START, TestBarrier.STATUS_WAIT_FOR_START};
//test the interaction of several asynchronous jobs when a conflicting rule is... | public void testAsynchJobConflict() {
final int[] status = {TestBarrier.STATUS_WAIT_FOR_START, TestBarrier.STATUS_WAIT_FOR_START, TestBarrier.STATUS_WAIT_FOR_START, TestBarrier.STATUS_WAIT_FOR_START, TestBarrier.STATUS_WAIT_FOR_START};
//test the interaction of several asynchronous jobs when a conflicting rule is... |
diff --git a/src/main/java/org/couchbase/mock/http/Authenticator.java b/src/main/java/org/couchbase/mock/http/Authenticator.java
index 0c1798e..392487f 100644
--- a/src/main/java/org/couchbase/mock/http/Authenticator.java
+++ b/src/main/java/org/couchbase/mock/http/Authenticator.java
@@ -1,114 +1,115 @@
/**
* Co... | true | true | public Result authenticate(HttpExchange exchange) {
String path = exchange.getRequestURI().normalize().getPath();
path = path.replaceAll("^/", "");
String[] components = path.split("/");
exchange.setAttribute(realm, this);
// pools, default, buckets(Streaming)/ bucket
... | public Result authenticate(HttpExchange exchange) {
String path = exchange.getRequestURI().normalize().getPath();
path = path.replaceAll("^/", "");
String[] components = path.split("/");
exchange.setAttribute(realm, this);
// pools, default, buckets(Streaming)/ bucket
... |
diff --git a/src/main/java/in/mDev/MiracleM4n/mChatSuite/commands/MECommandSender.java b/src/main/java/in/mDev/MiracleM4n/mChatSuite/commands/MECommandSender.java
index a4846ba..09b58b0 100644
--- a/src/main/java/in/mDev/MiracleM4n/mChatSuite/commands/MECommandSender.java
+++ b/src/main/java/in/mDev/MiracleM4n/mChatSui... | false | true | public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
String commandName = command.getName();
if (!plugin.mChatEB) {
sender.sendMessage(formatMessage(plugin.getAPI().addColour("mChatEssentials' functions are currently disabled.")));
r... | public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
String commandName = command.getName();
if (!plugin.mChatEB) {
sender.sendMessage(formatMessage(plugin.getAPI().addColour("mChatEssentials' functions are currently disabled.")));
r... |
diff --git a/LabBook/source/LObjMinimizedView.java b/LabBook/source/LObjMinimizedView.java
index 602b702..a416913 100644
--- a/LabBook/source/LObjMinimizedView.java
+++ b/LabBook/source/LObjMinimizedView.java
@@ -1,65 +1,65 @@
package org.concord.LabBook;
import waba.ui.*;
import waba.util.*;
import waba.fx.*;
i... | true | true | public void onPaint(Graphics g)
{
if(minObj != null && minObj.getName() != null){
g.setColor(rColor,gColor,bColor);
g.drawText(minObj.getName(), 0, 0);
FontMetrics fm = getFontMetrics(MainWindow.defaultFont);
int lineY = fm.getHeight();
g.setColor(rColor,gColor,bColor);
g.drawLine(0,lineY, width, ... | public void onPaint(Graphics g)
{
if(minObj != null && minObj.getName() != null){
g.setColor(rColor,gColor,bColor);
g.drawText(minObj.getName(), 0, 0);
FontMetrics fm = getFontMetrics(MainWindow.defaultFont);
int lineY = fm.getHeight();
g.setColor(rColor,gColor,bColor);
g.drawLine(0,lineY, fm.getT... |
diff --git a/Test.java b/Test.java
index b585fe6..2862052 100644
--- a/Test.java
+++ b/Test.java
@@ -1,12 +1,12 @@
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
- System.Out.println("hello world");
+ System.out.println("hello world");
}
}
| true | true | public static void main(String[] args) {
System.Out.println("hello world");
}
| public static void main(String[] args) {
System.out.println("hello world");
}
|
diff --git a/src/com/id/file/Graveyard.java b/src/com/id/file/Graveyard.java
index 34204d8..8aba258 100644
--- a/src/com/id/file/Graveyard.java
+++ b/src/com/id/file/Graveyard.java
@@ -1,136 +1,136 @@
package com.id.file;
import java.util.ArrayList;
import java.util.List;
import java.util.Map.Entry;
import com... | true | true | public void setDiffMarkers(FileDelta delta) {
reset();
for (Entry<Integer, String> addition : delta.getAdditions().entrySet()) {
int y = addition.getKey();
tombstones.set(y, new Tombstone(addition.getValue(), null));
}
for (Entry<Integer, List<String>> deletion : delta.getDeletions().entr... | public void setDiffMarkers(FileDelta delta) {
reset();
for (Entry<Integer, String> addition : delta.getAdditions().entrySet()) {
int y = addition.getKey();
tombstones.set(y, new Tombstone(addition.getValue(), null));
}
for (Entry<Integer, List<String>> deletion : delta.getDeletions().entr... |
diff --git a/src/uk/me/parabola/imgfmt/app/trergn/Subdivision.java b/src/uk/me/parabola/imgfmt/app/trergn/Subdivision.java
index 68824ad3..12021862 100644
--- a/src/uk/me/parabola/imgfmt/app/trergn/Subdivision.java
+++ b/src/uk/me/parabola/imgfmt/app/trergn/Subdivision.java
@@ -1,537 +1,541 @@
/*
* Copyright (C) 200... | false | true | private Subdivision(InternalFiles ifiles, Area area, Zoom z) {
this.lblFile = ifiles.getLblFile();
this.rgnFile = ifiles.getRgnFile();
this.zoomLevel = z;
int shift = getShift();
int mask = getMask();
this.latitude = (area.getMinLat() + area.getMaxLat())/2;
this.longitude = (area.getMinLong() + area.g... | private Subdivision(InternalFiles ifiles, Area area, Zoom z) {
this.lblFile = ifiles.getLblFile();
this.rgnFile = ifiles.getRgnFile();
this.zoomLevel = z;
int shift = getShift();
int mask = getMask();
this.latitude = (area.getMinLat() + area.getMaxLat())/2;
this.longitude = (area.getMinLong() + area.g... |
diff --git a/esmska/src/esmska/Main.java b/esmska/src/esmska/Main.java
index e5219c7c..a6f05e0a 100644
--- a/esmska/src/esmska/Main.java
+++ b/esmska/src/esmska/Main.java
@@ -1,114 +1,114 @@
/*
* Main.java
*
* Created on 24. srpen 2007, 22:20
*
* To change this template, choose Tools | Template Manager
* a... | false | true | public static void main(String[] args) {
//parse commandline arguments
CommandLineParser clp = new CommandLineParser();
if (! clp.parseArgs(args))
System.exit(1);
configPath = clp.getConfigPath();
//portable mode
if (clp.isPortable() && configPat... | public static void main(String[] args) {
//parse commandline arguments
CommandLineParser clp = new CommandLineParser();
if (! clp.parseArgs(args))
System.exit(1);
configPath = clp.getConfigPath();
//portable mode
if (clp.isPortable() && configPat... |
diff --git a/Extrasfeld.java b/Extrasfeld.java
index 70f5e6d..f177ce1 100644
--- a/Extrasfeld.java
+++ b/Extrasfeld.java
@@ -1,69 +1,66 @@
/**
* Klasse fuer Extrasfelder
* @author philip
*
*/
public class Extrasfeld extends Feld
{
/**
* Gibt an, welche Art von Extrafeld betreten wurde.
*/
public in... | false | true | public void draw(int x, int y){
if (covered==true){
Renderer.Tile_Break.draw(x*size, y*size);
Renderer.print(x*size, y*size, ""+art, 0.5f);
} else {
Renderer.Tile_Empty.draw(x*size, y*size);
switch(art)
{
case 1: Renderer.Tile_Health.draw(x*size, y*size); break; //Dieses Feld generiert ein zusa... | public void draw(int x, int y){
if (covered==true){
Renderer.Tile_Break.draw(x*size, y*size);
Renderer.print(x*size, y*size, ""+art, 0.5f);
} else {
Renderer.Tile_Empty.draw(x*size, y*size);
switch(art)
{
case 1: Renderer.Tile_Health.draw(x*size, y*size); break; //Dieses Feld generiert ein zusa... |
diff --git a/src/ufly/frs/CustomerFlightbookings.java b/src/ufly/frs/CustomerFlightbookings.java
index 32aa88d..9f660a4 100644
--- a/src/ufly/frs/CustomerFlightbookings.java
+++ b/src/ufly/frs/CustomerFlightbookings.java
@@ -1,127 +1,130 @@
package ufly.frs;
import java.io.IOException;
import java.util.ArrayList;
... | true | true | public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException,ServletException
{
String pageToInclude= getServletConfig().getInitParameter("action");
String confirmationNumberStr = (String) req.getParameter("confirmationNumber");
Long confirmNumber = Long.valueOf(confirmationNumbe... | public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException,ServletException
{
String pageToInclude= getServletConfig().getInitParameter("action");
String confirmationNumberStr = (String) req.getParameter("confirmationNumber");
Long confirmNumber=null;
if(confirmationNumberStr... |
diff --git a/com.heroku.eclipse.ui/src/com/heroku/eclipse/ui/wizards/HerokuAppCreate.java b/com.heroku.eclipse.ui/src/com/heroku/eclipse/ui/wizards/HerokuAppCreate.java
index d4f9bef..8de0eb4 100644
--- a/com.heroku.eclipse.ui/src/com/heroku/eclipse/ui/wizards/HerokuAppCreate.java
+++ b/com.heroku.eclipse.ui/src/com/he... | true | true | public boolean performFinish() {
final String appName = createPage.getAppName().toLowerCase();
try {
// ensure that the name is available
if (HerokuUtils.isNotEmpty(appName) && (!service.isAppNameBasicallyValid(appName) || service.appNameExists(new NullProgressMonitor(), appName))) {
createPage.displayI... | public boolean performFinish() {
final String appName = createPage.getAppName().toLowerCase();
try {
// ensure that the name is available
if (HerokuUtils.isNotEmpty(appName) && (!service.isAppNameBasicallyValid(appName) || service.appNameExists(new NullProgressMonitor(), appName))) {
createPage.displayI... |
diff --git a/src/taberystwyth/allocation/Allocator.java b/src/taberystwyth/allocation/Allocator.java
index 6f07cf9..3efb78a 100644
--- a/src/taberystwyth/allocation/Allocator.java
+++ b/src/taberystwyth/allocation/Allocator.java
@@ -1,270 +1,271 @@
package taberystwyth.allocation;
import java.sql.ResultSet;
import... | true | true | public void allocate(TeamAllocation teamAlgo, JudgeAllocation judgeAlgo,
LocationAllocation locationAlgo) throws SQLException,
SwingTeamsRequiredException, LocationsRequiredException,
JudgesRequiredException {
/*
* Figure out the current round
*/
int round = 0; // FIXME
/*
* Generate matches
... | public void allocate(TeamAllocation teamAlgo, JudgeAllocation judgeAlgo,
LocationAllocation locationAlgo) throws SQLException,
SwingTeamsRequiredException, LocationsRequiredException,
JudgesRequiredException {
/*
* Figure out the current round
*/
int round = 0; // FIXME
/*
* Generate matches
... |
diff --git a/src/com/wolvencraft/prison/mines/events/ButtonPressListener.java b/src/com/wolvencraft/prison/mines/events/ButtonPressListener.java
index 5baa978..2405097 100644
--- a/src/com/wolvencraft/prison/mines/events/ButtonPressListener.java
+++ b/src/com/wolvencraft/prison/mines/events/ButtonPressListener.java
@@ ... | false | true | public void onButtonPress(PlayerInteractEvent event) {
if(event.isCancelled()) return;
if (event.getAction().equals(Action.RIGHT_CLICK_BLOCK)) {
Block block = event.getClickedBlock();
if(block.getType() == Material.STONE_BUTTON || block.getType() == Material.WOOD_BUTTON) {
Message.debug(... | public void onButtonPress(PlayerInteractEvent event) {
if(event.isCancelled()) return;
if (event.getAction().equals(Action.RIGHT_CLICK_BLOCK)) {
Block block = event.getClickedBlock();
if(block.getType() == Material.STONE_BUTTON || block.getType() == Material.WOOD_BUTTON) {
Message.debug(... |
diff --git a/src/main/java/Command.java b/src/main/java/Command.java
index 3250151..0e071c1 100644
--- a/src/main/java/Command.java
+++ b/src/main/java/Command.java
@@ -1,68 +1,75 @@
import com.mchange.v2.c3p0.ComboPooledDataSource;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Stateme... | false | true | public void run() {
ComboPooledDataSource dataSource = DataPool.getDataSource();
try {
System.out.println("executing " + name);
Connection connection = dataSource.getConnection();
Statement statement = connection.createStatement();
statement.executeUpd... | public void run() {
ComboPooledDataSource dataSource = DataPool.getDataSource();
Connection connection = null;
try {
try{
System.out.println("executing " + name);
connection = dataSource.getConnection();
Statement statement = connec... |
diff --git a/src/main/java/com/epimorphics/registry/core/Command.java b/src/main/java/com/epimorphics/registry/core/Command.java
index dbcce42..a467613 100644
--- a/src/main/java/com/epimorphics/registry/core/Command.java
+++ b/src/main/java/com/epimorphics/registry/core/Command.java
@@ -1,428 +1,428 @@
/*************... | true | true | protected Response performExecute() {
Response response = null;
try {
response = doExecute();
} catch (WebApplicationException wae) {
response = wae.getResponse();
} catch (Exception e) {
log.error("Internal error", e);
response = Resp... | protected Response performExecute() {
Response response = null;
try {
response = doExecute();
} catch (WebApplicationException wae) {
response = wae.getResponse();
} catch (Exception e) {
log.error("Internal error", e);
response = Resp... |
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/handler/ConnectableToolbarCommandHandler.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/handler/ConnectableToolbarCommandHandler.java
index 68239a278..ce82dfe25 100644
--- a/target_explor... | true | true | public void updateElement(final UIElement element, Map parameters) {
final IPeerNode defaultContext = ServiceManager.getInstance().getService(IDefaultContextService.class).getDefaultContext(null);
if (defaultContext != null) {
PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
@Overr... | public void updateElement(final UIElement element, Map parameters) {
final IPeerNode defaultContext = ServiceManager.getInstance().getService(IDefaultContextService.class).getDefaultContext(null);
PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
@Override
public void run() {
if ... |
diff --git a/src/com/google/javascript/jscomp/ant/CompileTask.java b/src/com/google/javascript/jscomp/ant/CompileTask.java
index 4e636a39b..38741720a 100644
--- a/src/com/google/javascript/jscomp/ant/CompileTask.java
+++ b/src/com/google/javascript/jscomp/ant/CompileTask.java
@@ -1,279 +1,281 @@
/*
* Copyright 2010 ... | true | true | public void execute() {
if (this.outputFile == null) {
throw new BuildException("outputFile attribute must be set");
}
Compiler.setLoggingLevel(Level.OFF);
CompilerOptions options = createCompilerOptions();
Compiler compiler = createCompiler(options);
JSSourceFile[] externs = findExte... | public void execute() {
if (this.outputFile == null) {
throw new BuildException("outputFile attribute must be set");
}
Compiler.setLoggingLevel(Level.OFF);
CompilerOptions options = createCompilerOptions();
Compiler compiler = createCompiler(options);
JSSourceFile[] externs = findExte... |
diff --git a/org.emftext.sdk.codegen.resource.ui/src/org/emftext/sdk/codegen/resource/ui/generators/ui/CodeCompletionHelperGenerator.java b/org.emftext.sdk.codegen.resource.ui/src/org/emftext/sdk/codegen/resource/ui/generators/ui/CodeCompletionHelperGenerator.java
index c193cea82..b3bc396fe 100644
--- a/org.emftext.sdk... | false | true | private void addDeriveProposalsMethod2(JavaComposite sc) {
sc.add("private " + COLLECTION + "<" + completionProposalClassName + "> deriveProposals(" + expectedTerminalClassName + " expectedTerminal, String content, " + iTextResourceClassName + " resource, int cursorOffset) {");
sc.add(iMetaInformationClassName + "... | private void addDeriveProposalsMethod2(JavaComposite sc) {
sc.add("private " + COLLECTION + "<" + completionProposalClassName + "> deriveProposals(" + expectedTerminalClassName + " expectedTerminal, String content, " + iTextResourceClassName + " resource, int cursorOffset) {");
sc.add(iMetaInformationClassName + "... |
diff --git a/contentconnector-core/src/main/java/com/gentics/cr/util/indexing/AbstractUpdateCheckerJob.java b/contentconnector-core/src/main/java/com/gentics/cr/util/indexing/AbstractUpdateCheckerJob.java
index f0671309..740847a3 100644
--- a/contentconnector-core/src/main/java/com/gentics/cr/util/indexing/AbstractUpda... | false | true | protected Collection<CRResolvableBean> getObjectsToUpdate(
final CRRequest request, final RequestProcessor rp,
final boolean forceFullUpdate,
final IndexUpdateChecker indexUpdateChecker) {
Collection<CRResolvableBean> updateObjects =
new Vector<CRResolvableBean>();
UseCase objectsToUpdateCase = Mon... | protected Collection<CRResolvableBean> getObjectsToUpdate(
final CRRequest request, final RequestProcessor rp,
final boolean forceFullUpdate,
final IndexUpdateChecker indexUpdateChecker) {
Collection<CRResolvableBean> updateObjects =
new Vector<CRResolvableBean>();
UseCase objectsToUpdateCase = Mon... |
diff --git a/cli/src/main/java/com/meltmedia/cadmium/cli/LoggerCommand.java b/cli/src/main/java/com/meltmedia/cadmium/cli/LoggerCommand.java
index fee22ec8..bdd6d913 100644
--- a/cli/src/main/java/com/meltmedia/cadmium/cli/LoggerCommand.java
+++ b/cli/src/main/java/com/meltmedia/cadmium/cli/LoggerCommand.java
@@ -1,140... | false | true | public void execute() throws Exception {
String logger = null;
String level = null;
String site = null;
if(params != null && params.size() >= 3) {
logger = params.get(0);
level = params.get(1);
site = params.get(2);
} else if (params != null && params.size() == 2) {
String ... | public void execute() throws Exception {
String logger = null;
String level = null;
String site = null;
if(params != null && params.size() >= 3) {
logger = params.get(0);
level = params.get(1);
site = params.get(2);
} else if (params != null && params.size() == 2) {
String ... |
diff --git a/org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java b/org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java
index 201537798..9dc71a52d 100644
--- a/org.eclipse.text/src/org/eclipse/jface/text/FindReplaceDocumentAdapter.java
+++ b/org.eclipse.text/src/org/eclips... | false | true | private IRegion findReplace(FindReplaceOperationCode operationCode, int startOffset, String findString, String replaceText, boolean forwardSearch, boolean caseSensitive, boolean wholeWord, boolean regExSearch) throws BadLocationException {
// Validate option combinations
Assert.isTrue(!(regExSearch && wholeWord))... | private IRegion findReplace(final FindReplaceOperationCode operationCode, int startOffset, String findString, String replaceText, boolean forwardSearch, boolean caseSensitive, boolean wholeWord, boolean regExSearch) throws BadLocationException {
// Validate option combinations
Assert.isTrue(!(regExSearch && whole... |
diff --git a/src/main/java/com/innovatrics/iseglib/SegLibException.java b/src/main/java/com/innovatrics/iseglib/SegLibException.java
index 238b990..eed85c8 100644
--- a/src/main/java/com/innovatrics/iseglib/SegLibException.java
+++ b/src/main/java/com/innovatrics/iseglib/SegLibException.java
@@ -1,16 +1,16 @@
package ... | true | true | public SegLibException(final String msg, final int errorCode) {
super(msg);
this.errorCode = errorCode;
}
| public SegLibException(final String msg, final int errorCode) {
super("Error #" + errorCode + ": msg");
this.errorCode = errorCode;
}
|
diff --git a/src/com/redhat/ceylon/compiler/java/codegen/CallableBuilder.java b/src/com/redhat/ceylon/compiler/java/codegen/CallableBuilder.java
index 68d547438..4376361fe 100644
--- a/src/com/redhat/ceylon/compiler/java/codegen/CallableBuilder.java
+++ b/src/com/redhat/ceylon/compiler/java/codegen/CallableBuilder.java... | true | true | public static CallableBuilder unboundFunctionalMemberReference(CeylonTransformer gen,
ProducedType typeModel,
final Functional methodOrClass,
ProducedReference producedReference) {
final String instanceName = "$instance";
final ParameterList parameterList = met... | public static CallableBuilder unboundFunctionalMemberReference(CeylonTransformer gen,
ProducedType typeModel,
final Functional methodOrClass,
ProducedReference producedReference) {
final String instanceName = "$instance";
final ParameterList parameterList = met... |
diff --git a/src/de/uni_koblenz/jgralab/greql2/evaluator/GreqlEvaluator.java b/src/de/uni_koblenz/jgralab/greql2/evaluator/GreqlEvaluator.java
index bafd00119..3f9523e18 100644
--- a/src/de/uni_koblenz/jgralab/greql2/evaluator/GreqlEvaluator.java
+++ b/src/de/uni_koblenz/jgralab/greql2/evaluator/GreqlEvaluator.java
@@ ... | true | true | public boolean startEvaluation(boolean log) throws EvaluateException,
OptimizerException {
if (started) {
return (result != null);
}
started = true;
parseTime = 0;
optimizationTime = 0;
plainEvaluationTime = 0;
overallEvaluationTime = 0;
long startTime = System.currentTimeMillis();
if (datag... | public boolean startEvaluation(boolean log) throws EvaluateException,
OptimizerException {
if (started) {
return (result != null);
}
started = true;
parseTime = 0;
optimizationTime = 0;
plainEvaluationTime = 0;
overallEvaluationTime = 0;
long startTime = System.currentTimeMillis();
if (datag... |
diff --git a/src/som/primitives/ObjectPrimitives.java b/src/som/primitives/ObjectPrimitives.java
index 885d526..162e3bf 100644
--- a/src/som/primitives/ObjectPrimitives.java
+++ b/src/som/primitives/ObjectPrimitives.java
@@ -1,118 +1,118 @@
/**
* Copyright (c) 2009 Michael Haupt, michael.haupt@hpi.uni-potsdam.de
*... | true | true | public void installPrimitives() {
installInstancePrimitive(new Primitive("==", universe) {
public Object invoke(final VirtualFrame frame, final Object self, final Object[] args) {
if (self == args[0])
return universe.trueObject;
else
return universe.falseObject;
... | public void installPrimitives() {
installInstancePrimitive(new Primitive("==", universe) {
public Object invoke(final VirtualFrame frame, final Object self, final Object[] args) {
if (self == args[0])
return universe.trueObject;
else
return universe.falseObject;
... |
diff --git a/src/me/cnaude/plugin/TeleportRequest/TRCommands.java b/src/me/cnaude/plugin/TeleportRequest/TRCommands.java
index c8f1a66..f1bce5f 100644
--- a/src/me/cnaude/plugin/TeleportRequest/TRCommands.java
+++ b/src/me/cnaude/plugin/TeleportRequest/TRCommands.java
@@ -1,85 +1,74 @@
/*
* To change this template, ... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
if (sender instanceof Player) {
Player player = (Player)sender;
if (!sender.hasPermission("teleportrequest.rtp")) {
sender.sendMessage(ChatColor.RED + "You do not have pe... | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
if (sender instanceof Player) {
Player player = (Player)sender;
if (player.isDead()) {
sender.sendMessage(ChatColor.RED + "You are dead!!");
return true;
... |
diff --git a/plugins/org.eclipse.emf.compare.match/src/org/eclipse/emf/compare/match/service/MatchEngineRegistry.java b/plugins/org.eclipse.emf.compare.match/src/org/eclipse/emf/compare/match/service/MatchEngineRegistry.java
index 342fe71d4..387f88d4b 100644
--- a/plugins/org.eclipse.emf.compare.match/src/org/eclipse/e... | false | true | public IMatchEngine getHighestEngine(String fileExtension) {
final List<Object> engines = get(fileExtension);
final int highestPriority = -1;
IMatchEngine highest = null;
if (engines != null) {
for (final Object engine : engines) {
if (engine instanceof MatchEngineDescriptor) {
final MatchEngineDes... | public IMatchEngine getHighestEngine(String fileExtension) {
final List<Object> engines = get(fileExtension);
int highestPriority = -1;
IMatchEngine highest = null;
if (engines != null) {
for (final Object engine : engines) {
if (engine instanceof MatchEngineDescriptor) {
final MatchEngineDescripto... |
diff --git a/src/uk/org/ponder/rsac/BeanDefUtil.java b/src/uk/org/ponder/rsac/BeanDefUtil.java
index ee457ac..63b6b3b 100644
--- a/src/uk/org/ponder/rsac/BeanDefUtil.java
+++ b/src/uk/org/ponder/rsac/BeanDefUtil.java
@@ -1,263 +1,265 @@
/*
* Created on 04-Feb-2006
*/
// Some code in this file is subject to the ... | true | true | static RSACBeanInfo convertBeanDef(BeanDefinition origdef, String beanname,
ConfigurableListableBeanFactory factory, MethodAnalyser abdAnalyser,
BeanDefConverter converter) {
RSACBeanInfo rbi = new RSACBeanInfo();
AbstractBeanDefinition def = getMergedBeanDefinition(factory, beanname,
ori... | static RSACBeanInfo convertBeanDef(BeanDefinition origdef, String beanname,
ConfigurableListableBeanFactory factory, MethodAnalyser abdAnalyser,
BeanDefConverter converter) {
RSACBeanInfo rbi = new RSACBeanInfo();
AbstractBeanDefinition def = getMergedBeanDefinition(factory, beanname,
ori... |
diff --git a/org.eclipse.swtbot.swt.finder.test/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotToggleButtonTest.java b/org.eclipse.swtbot.swt.finder.test/src/org/eclipse/swtbot/swt/finder/widgets/SWTBotToggleButtonTest.java
index 9f35865..5a3aa03 100644
--- a/org.eclipse.swtbot.swt.finder.test/src/org/eclipse/swtbot/s... | false | true | public void clicksToggleButton() throws Exception {
try {
List<Text> findControls = new ControlFinder().findControls(widgetOfType(Text.class));
SWTBotText text = new SWTBotText(findControls.get(0));
text.setText("");
assertFalse(bot.checkBox("Listen").isChecked());
bot.checkBox("Listen").click();
... | public void clicksToggleButton() throws Exception {
try {
List<Text> findControls = new ControlFinder().findControls(widgetOfType(Text.class));
SWTBotText text = new SWTBotText(findControls.get(0));
bot.checkBox("Listen").select();
text.setText("");
assertFalse(bot.toggleButton("One").isPressed());
... |
diff --git a/src/main/java/ru/xrm/app/parsers/VacancySectionParser.java b/src/main/java/ru/xrm/app/parsers/VacancySectionParser.java
index 3824ed1..c03c32b 100644
--- a/src/main/java/ru/xrm/app/parsers/VacancySectionParser.java
+++ b/src/main/java/ru/xrm/app/parsers/VacancySectionParser.java
@@ -1,79 +1,79 @@
package ... | true | true | public List<Section> parse() {
SectionSet sections=SectionSet.getInstance();
//List<Section> sections = new ArrayList<Section>();
List<Entry> vacancySectionProperties=config.getVacancySectionProperties();
Document doc = Jsoup.parse(html);
for (Entry prop:vacancySectionProperties){
// here we got mul... | public List<Section> parse() {
SectionSet sections=SectionSet.getInstance();
//List<Section> sections = new ArrayList<Section>();
List<Entry> vacancySectionProperties=config.getVacancySectionProperties();
Document doc = Jsoup.parse(html);
for (Entry prop:vacancySectionProperties){
// here we got mul... |
diff --git a/org/python/compiler/ArgListCompiler.java b/org/python/compiler/ArgListCompiler.java
index 440aca12..c6da6e6d 100644
--- a/org/python/compiler/ArgListCompiler.java
+++ b/org/python/compiler/ArgListCompiler.java
@@ -1,107 +1,107 @@
// Copyright � Corporation for National Research Initiatives
package org.... | true | true | public Object defaultarg(SimpleNode node) throws Exception {
Object name = node.getChild(0).visit(this);
// make sure the named argument isn't already in the list of arguments
for (Enumeration e=names.elements(); e.hasMoreElements();) {
String objname = (String)e.nextElement();
... | public Object defaultarg(SimpleNode node) throws Exception {
Object name = node.getChild(0).visit(this);
// make sure the named argument isn't already in the list of arguments
for (Enumeration e=names.elements(); e.hasMoreElements();) {
String objname = (String)e.nextElement();
... |
diff --git a/SoarSuite/soar-java/soar-smljava/src/main/java/edu/umich/soar/robot/OutputLinkManager.java b/SoarSuite/soar-java/soar-smljava/src/main/java/edu/umich/soar/robot/OutputLinkManager.java
index b13311192..456cbfa40 100644
--- a/SoarSuite/soar-java/soar-smljava/src/main/java/edu/umich/soar/robot/OutputLinkManag... | true | true | public DifferentialDriveCommand update() {
// TODO: update status of running command
// process output
DifferentialDriveCommand ddc = null;
for (int i = 0; i < agent.GetNumberCommands(); ++i) {
Identifier commandWme = agent.GetCommand(i);
// is it already complete?
Integer timetag = Integer.valueO... | public DifferentialDriveCommand update() {
// TODO: update status of running command
// process output
DifferentialDriveCommand ddc = null;
for (int i = 0; i < agent.GetNumberCommands(); ++i) {
Identifier commandWme = agent.GetCommand(i);
// is it already complete?
Integer timetag = Integer.valueO... |
diff --git a/jsf-ri/src/com/sun/faces/renderkit/html_basic/RadioRenderer.java b/jsf-ri/src/com/sun/faces/renderkit/html_basic/RadioRenderer.java
index a28cda6d1..ba1ed38e1 100644
--- a/jsf-ri/src/com/sun/faces/renderkit/html_basic/RadioRenderer.java
+++ b/jsf-ri/src/com/sun/faces/renderkit/html_basic/RadioRenderer.java... | true | true | protected void renderOption(FacesContext context,
UIComponent component,
Converter converter,
SelectItem curItem,
Object currentSelections,
Object[] submitt... | protected void renderOption(FacesContext context,
UIComponent component,
Converter converter,
SelectItem curItem,
Object currentSelections,
Object[] submitt... |
diff --git a/org.iucn.sis.server.extensions.user/src/org/iucn/sis/server/extensions/user/resources/UserRestlet.java b/org.iucn.sis.server.extensions.user/src/org/iucn/sis/server/extensions/user/resources/UserRestlet.java
index 8a40b37d..7c567ade 100644
--- a/org.iucn.sis.server.extensions.user/src/org/iucn/sis/server/e... | true | true | public void handlePost(Representation entity, Request request, Response response, Session session) throws ResourceException {
String username = getUsername(request);
if (username == null)
throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, "Please provide a username");
UserIO userIO = new UserIO(s... | public void handlePost(Representation entity, Request request, Response response, Session session) throws ResourceException {
String username = getUsername(request);
if (username == null)
throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, "Please provide a username");
UserIO userIO = new UserIO(s... |
diff --git a/src/main/java/ru/javatalks/checkers/gui/Dialog.java b/src/main/java/ru/javatalks/checkers/gui/Dialog.java
index a38003a..adcc0c3 100644
--- a/src/main/java/ru/javatalks/checkers/gui/Dialog.java
+++ b/src/main/java/ru/javatalks/checkers/gui/Dialog.java
@@ -1,250 +1,250 @@
package ru.javatalks.checkers.gui;... | true | true | private void initializeComponent() {
tArea = new JTextArea(26, 12);
frame = new JFrame();
menuBar = new JMenuBar();
menuGame = new JMenu();
menuSettings = new JMenu();
menuHelp = new JMenu();
labelComp = new JLabel();
labelUser = new JLabel();
... | private void initializeComponent() {
tArea = new JTextArea(26, 12);
frame = new JFrame();
menuBar = new JMenuBar();
menuGame = new JMenu();
menuSettings = new JMenu();
menuHelp = new JMenu();
labelComp = new JLabel();
labelUser = new JLabel();
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.