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/di/kdd/smartmonitor/protocol/DistributedSystemNode.java b/src/di/kdd/smartmonitor/protocol/DistributedSystemNode.java
index dca8b90..b4c43e1 100644
--- a/src/di/kdd/smartmonitor/protocol/DistributedSystemNode.java
+++ b/src/di/kdd/smartmonitor/protocol/DistributedSystemNode.java
@@ -1,78 +1,78 @@
pack... | true | true | protected static Message receive(Socket socket, Tag tag) throws IOException, TagException {
Message message;
Log.i(TAG, "Receiving from " + socket.getInetAddress() + "with desired Tag: " + tag.toString());
message = new Message(new BufferedReader(new InputStreamReader(socket.getInputStream())));
if(... | protected static Message receive(Socket socket, Tag tag) throws IOException, TagException {
Message message;
Log.i(TAG, "Receiving from " + socket.getInetAddress() + " with desired Tag: " + tag.toString());
message = new Message(new BufferedReader(new InputStreamReader(socket.getInputStream())));
if... |
diff --git a/src/com/android/providers/contacts/ContactsProvider2.java b/src/com/android/providers/contacts/ContactsProvider2.java
index 1cba4214..021202fc 100644
--- a/src/com/android/providers/contacts/ContactsProvider2.java
+++ b/src/com/android/providers/contacts/ContactsProvider2.java
@@ -1,8178 +1,8183 @@
/*
*... | false | true | protected Cursor queryLocal(final Uri uri, final String[] projection, String selection,
String[] selectionArgs, String sortOrder, final long directoryId,
final CancellationSignal cancellationSignal) {
// Default active DB to the contacts DB if none has been set.
if (mActiveD... | protected Cursor queryLocal(final Uri uri, final String[] projection, String selection,
String[] selectionArgs, String sortOrder, final long directoryId,
final CancellationSignal cancellationSignal) {
// Default active DB to the contacts DB if none has been set.
if (mActiveD... |
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/internal/preferences/PreferencesInitializer.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/internal/preferences/PreferencesInitializer.java
index a182388ed..f69899d5b 100644
--- a/target_... | true | true | public void initializeDefaultPreferences() {
IPreferenceStore store = UIPlugin.getDefault().getPreferenceStore();
// [Hidden] Hide dynamic target discovery navigator content extension: default on
store.setDefault(PREF_HIDE_DYNAMIC_TARGET_DISCOVERY_EXTENSION, true);
// [Hidden] Favorites category copy mode: def... | public void initializeDefaultPreferences() {
IPreferenceStore store = UIPlugin.getDefault().getPreferenceStore();
// [Hidden] Hide dynamic target discovery navigator content extension: default on
store.setDefault(PREF_HIDE_DYNAMIC_TARGET_DISCOVERY_EXTENSION, true);
// [Hidden] Favorites category link mode: def... |
diff --git a/src/main/java/no/niths/domain/Student.java b/src/main/java/no/niths/domain/Student.java
index 9a0b1469..77f7e263 100644
--- a/src/main/java/no/niths/domain/Student.java
+++ b/src/main/java/no/niths/domain/Student.java
@@ -1,460 +1,462 @@
package no.niths.domain;
import java.util.ArrayList;
import java... | true | true | public Student() {
this(null, null, null, null, null, null, null);
setCommittees(null);
setCommitteesLeader(null);
setCourses(null);
setFadderGroup(null);
setGroupLeaders(null);
setFeeds(null);
setRoles(null);
setTutorInSubjects(null);
}
| public Student() {
this(null, null, null, null, null, null, null);
setCommittees(null);
setCommitteesLeader(null);
setCourses(null);
setFadderGroup(null);
setGroupLeaders(null);
setFeeds(null);
setRoles(null);
setTutorInSubjects(null);
setLoanedGames(null);
setLoanedConsole(null);
}
|
diff --git a/src/GUI/TooterProjectGUI.java b/src/GUI/TooterProjectGUI.java
index f444250..0d84496 100644
--- a/src/GUI/TooterProjectGUI.java
+++ b/src/GUI/TooterProjectGUI.java
@@ -1,67 +1,67 @@
package GUI;
import javax.swing.*;
import java.awt.*;
public class TooterProjectGUI {
private JFrame mainFrame;
... | true | true | public TooterProjectGUI(){
// Initialize main frames & panels
cl = new CardLayout();
mainFrame = new JFrame();
mainPanel = new JPanel();
// Set card layout (enables switching through panels)
mainPanel.setLayout(cl);
// Set size and color of window frame
... | public TooterProjectGUI(){
// Initialize main frames & panels
cl = new CardLayout();
mainFrame = new JFrame();
mainPanel = new JPanel();
// Set card layout (enables switching through panels)
mainPanel.setLayout(cl);
// Set size and color of window frame
... |
diff --git a/src/org/openstreetmap/josm/data/osm/Way.java b/src/org/openstreetmap/josm/data/osm/Way.java
index 011a0d5b..c8135de9 100644
--- a/src/org/openstreetmap/josm/data/osm/Way.java
+++ b/src/org/openstreetmap/josm/data/osm/Way.java
@@ -1,125 +1,127 @@
// License: GPL. Copyright 2007 by Immanuel Scholz and other... | true | true | public String getName() {
String name;
if (incomplete) {
name = tr("incomplete");
} else {
name = get("name");
if (name == null) name = get("ref");
if (name == null) {
name =
(get("highway") != null) ? tr("hi... | public String getName() {
String name;
if (incomplete) {
name = tr("incomplete");
} else {
name = get("name");
if (name == null) name = get("ref");
if (name == null) {
name =
(get("highway") != null) ? tr("hi... |
diff --git a/src/mobile/team4/game/TShape.java b/src/mobile/team4/game/TShape.java
index 6798133..71d64af 100644
--- a/src/mobile/team4/game/TShape.java
+++ b/src/mobile/team4/game/TShape.java
@@ -1,36 +1,36 @@
package mobile.team4.game;
import java.util.ArrayList;
import java.util.Arrays;
public class TShape... | true | true | public TShape() {
// this should be static but I'm not sure how to do it without using add
states = new ArrayList<ArrayList<Point>>();
states.add( new ArrayList<Point>( Arrays.asList(new Point(0,0), new Point(1,0),
new Point(2,0), new Point(1,1))));
states.add( new ArrayList<Point>( Arrays.as... | public TShape() {
// this should be static but I'm not sure how to do it without using add
states = new ArrayList<ArrayList<Point>>();
states.add( new ArrayList<Point>( Arrays.asList(new Point(0,0), new Point(1,0),
new Point(2,0), new Point(1,1))));
states.add( new ArrayList<Point>( Arrays.as... |
diff --git a/src/Client.java b/src/Client.java
index cee888d..9c216d7 100644
--- a/src/Client.java
+++ b/src/Client.java
@@ -1,104 +1,105 @@
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.Scanner;
public class Client extends T... | false | true | public void optionMenu(){
System.out.println(outputFromServer());
System.out.println(outputFromServer());
System.out.println(outputFromServer());
System.out.println(outputFromServer());
System.out.println(outputFromServer());
String command = localInput.nextLine();
inputToServer(command);
if(outputFrom... | public void optionMenu(){
System.out.println(outputFromServer());
System.out.println(outputFromServer());
System.out.println(outputFromServer());
System.out.println(outputFromServer());
System.out.println(outputFromServer());
String command = localInput.nextLine();
inputToServer(command);
String server... |
diff --git a/src/Vehicles/AGV.java b/src/Vehicles/AGV.java
index dad5c78..1d2613e 100644
--- a/src/Vehicles/AGV.java
+++ b/src/Vehicles/AGV.java
@@ -1,240 +1,240 @@
package Vehicles;
import Crane.Crane;
import Crane.StorageCrane;
import Helpers.*;
import Network.objPublisher;
import Parkinglot.Parkinglot;
impo... | true | true | public void update(float gameTime) throws Exception {
// When the destination position is reached
if (position == destination.node.getPosition()){
if (!parked) {
// Park on the parkinglot
destination.park(this);
parked = true;
}... | public void update(float gameTime) throws Exception {
// When the destination position is reached
if (position == destination.node.getPosition()){
if (!parked) {
// Park on the parkinglot
destination.park(this);
parked = true;
}... |
diff --git a/src/com/maveric/WorkoutTrackerSaveActivity.java b/src/com/maveric/WorkoutTrackerSaveActivity.java
index f2b1b88..85a4d60 100644
--- a/src/com/maveric/WorkoutTrackerSaveActivity.java
+++ b/src/com/maveric/WorkoutTrackerSaveActivity.java
@@ -1,221 +1,221 @@
package com.maveric;
import java.text.SimpleDat... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ctx = getApplicationContext();
Bundle extras = getIntent().getExtras();
calories = extras.getInt("calories");
exceriseType = extras.getString("type");
countType = extras.getString("count");
exceriseTypeText = (TextV... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ctx = getApplicationContext();
Bundle extras = getIntent().getExtras();
calories = extras.getInt("calories");
exceriseType = extras.getString("type");
countType = extras.getString("count");
exceriseTypeText = (TextV... |
diff --git a/hazelcast/src/main/java/com/hazelcast/map/MapStoreWriteProcessor.java b/hazelcast/src/main/java/com/hazelcast/map/MapStoreWriteProcessor.java
index ed1d676da1..a321e82fbb 100644
--- a/hazelcast/src/main/java/com/hazelcast/map/MapStoreWriteProcessor.java
+++ b/hazelcast/src/main/java/com/hazelcast/map/MapSt... | true | true | public void process(EntryTaskScheduler<Data, Object> scheduler, Collection<ScheduledEntry<Data, Object>> entries) {
if (entries.isEmpty())
return;
final ILogger logger = mapService.getNodeEngine().getLogger(getClass());
if (entries.size() == 1) {
ScheduledEntry<Data,... | public void process(EntryTaskScheduler<Data, Object> scheduler, Collection<ScheduledEntry<Data, Object>> entries) {
if (entries.isEmpty())
return;
final ILogger logger = mapService.getNodeEngine().getLogger(getClass());
if (entries.size() == 1) {
ScheduledEntry<Data,... |
diff --git a/x10.compiler/src/x10/ast/X10Special_c.java b/x10.compiler/src/x10/ast/X10Special_c.java
index b53b05109..e9e5956dd 100644
--- a/x10.compiler/src/x10/ast/X10Special_c.java
+++ b/x10.compiler/src/x10/ast/X10Special_c.java
@@ -1,227 +1,229 @@
/*
* This file is part of the X10 project (http://x10-lang.org)... | true | true | public Node typeCheck(ContextVisitor tc) {
TypeSystem ts = (TypeSystem) tc.typeSystem();
Context c = (Context) tc.context();
if (isSelf()) {
Type tt = c.currentDepType();
if (tt == null) {
Errors.issue(tc.job(),
new Errors.Sel... | public Node typeCheck(ContextVisitor tc) {
TypeSystem ts = (TypeSystem) tc.typeSystem();
Context c = (Context) tc.context();
if (isSelf()) {
Type tt = c.currentDepType();
if (tt == null) {
Errors.issue(tc.job(),
new Errors.Sel... |
diff --git a/src/com/ichi2/libanki/sync/Syncer.java b/src/com/ichi2/libanki/sync/Syncer.java
index 27c5574c..deab0fd3 100644
--- a/src/com/ichi2/libanki/sync/Syncer.java
+++ b/src/com/ichi2/libanki/sync/Syncer.java
@@ -1,761 +1,761 @@
/***********************************************************************************... | true | true | public Object[] sync(Connection con) {
// if the deck has any pending changes, flush them first and bump mod time
mCol.save();
// step 1: login & metadata
HttpResponse ret = mServer.meta();
if (ret == null) {
return null;
}
int returntype = ret.getStatusLine().getStatusCode(... | public Object[] sync(Connection con) {
// if the deck has any pending changes, flush them first and bump mod time
mCol.save();
// step 1: login & metadata
HttpResponse ret = mServer.meta();
if (ret == null) {
return null;
}
int returntype = ret.getStatusLine().getStatusCode(... |
diff --git a/jsp-template-tags/src/main/java/co/cdev/agave/template/SupplyFragmentTag.java b/jsp-template-tags/src/main/java/co/cdev/agave/template/SupplyFragmentTag.java
index d0f29f6..c271a21 100644
--- a/jsp-template-tags/src/main/java/co/cdev/agave/template/SupplyFragmentTag.java
+++ b/jsp-template-tags/src/main/ja... | false | true | public int doEndTag() throws JspException {
super.doEndTag();
if (additive) {
Map<String, List<String>> globalFragments = getGlobalFragmentMap();
if (globalFragments.get(name) == null) {
globalFragments.put(name, new ArrayList<String>());
}
... | public int doEndTag() throws JspException {
super.doEndTag();
if (bodyContent != null) {
if (additive) {
Map<String, List<String>> globalFragments = getGlobalFragmentMap();
if (globalFragments.get(name) == null) {
globalFragments.put(n... |
diff --git a/proxy/src/main/java/org/fedoraproject/candlepin/service/impl/DefaultEntitlementCertServiceAdapter.java b/proxy/src/main/java/org/fedoraproject/candlepin/service/impl/DefaultEntitlementCertServiceAdapter.java
index c924feca5..17b47c6bc 100644
--- a/proxy/src/main/java/org/fedoraproject/candlepin/service/imp... | true | true | public EntitlementCertificate generateEntitlementCert(Entitlement entitlement,
Subscription sub, Product product)
throws GeneralSecurityException, IOException {
log.debug("Generating entitlement cert for:");
log.debug(" consumer: {}", entitlement.getConsumer().getUuid());... | public EntitlementCertificate generateEntitlementCert(Entitlement entitlement,
Subscription sub, Product product)
throws GeneralSecurityException, IOException {
log.debug("Generating entitlement cert for:");
log.debug(" consumer: {}", entitlement.getConsumer().getUuid());... |
diff --git a/component/src/main/java/com/celements/photo/service/ImageService.java b/component/src/main/java/com/celements/photo/service/ImageService.java
index 9e6da83..32e4eef 100644
--- a/component/src/main/java/com/celements/photo/service/ImageService.java
+++ b/component/src/main/java/com/celements/photo/service/I... | true | true | public boolean addSlideFromTemplate(DocumentReference galleryDocRef,
String slideBaseName, String attFullName) {
try {
DocumentReference slideTemplateRef = getImageSlideTemplateRef();
String gallerySpaceName = getPhotoAlbumSpaceRef(galleryDocRef).getName();
String filename = attFullName.re... | public boolean addSlideFromTemplate(DocumentReference galleryDocRef,
String slideBaseName, String attFullName) {
try {
DocumentReference slideTemplateRef = getImageSlideTemplateRef();
String gallerySpaceName = getPhotoAlbumSpaceRef(galleryDocRef).getName();
String filename = attFullName.re... |
diff --git a/modules/core/src/main/java/org/apache/sandesha2/RMMsgContext.java b/modules/core/src/main/java/org/apache/sandesha2/RMMsgContext.java
index 17ffd145..4e78e731 100644
--- a/modules/core/src/main/java/org/apache/sandesha2/RMMsgContext.java
+++ b/modules/core/src/main/java/org/apache/sandesha2/RMMsgContext.ja... | true | true | public void addSOAPEnvelope() throws AxisFault {
int SOAPVersion = Sandesha2Constants.SOAPVersion.v1_1;
if (!msgContext.isSOAP11())
SOAPVersion = Sandesha2Constants.SOAPVersion.v1_2;
if (msgContext.getEnvelope() == null) {
try {
msgContext.setEnvelope(SOAPAbstractFactory.getSOAPFactory(
SOAPVer... | public void addSOAPEnvelope() throws AxisFault {
int SOAPVersion = Sandesha2Constants.SOAPVersion.v1_1;
if (!msgContext.isSOAP11())
SOAPVersion = Sandesha2Constants.SOAPVersion.v1_2;
if (msgContext.getEnvelope() == null) {
try {
msgContext.setEnvelope(SOAPAbstractFactory.getSOAPFactory(
SOAPVer... |
diff --git a/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java b/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
index 19b1a508c..7cfc44bd7 100644
--- a/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
+++ b/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
@@ -1,4603 +1,4604 @@
/*
* Licensed to t... | false | true | Augmentations handleStartElement(QName element, XMLAttributes attributes, Augmentations augs) {
if (DEBUG) {
System.out.println("==>handleStartElement: " + element);
}
// root element
if (fElementDepth == -1 && fValidationManager.isGrammarFound()) {
if (fSch... | Augmentations handleStartElement(QName element, XMLAttributes attributes, Augmentations augs) {
if (DEBUG) {
System.out.println("==>handleStartElement: " + element);
}
// root element
if (fElementDepth == -1 && fValidationManager.isGrammarFound()) {
if (fSch... |
diff --git a/src/rules/Promote.java b/src/rules/Promote.java
index 484c32a..b4b3682 100644
--- a/src/rules/Promote.java
+++ b/src/rules/Promote.java
@@ -1,234 +1,234 @@
package rules;
import java.io.Serializable;
import java.lang.reflect.Method;
import java.util.HashMap;
import javax.swing.JOptionPane;
impo... | true | true | public Piece classicPromotion(Piece p, boolean verified, String promo) {
lastPromoted = p.getName();
klazz = p.getName();
if(p.getPromotesTo()==null) return p;
if (!verified && promo == null&&g.isBlackMove()==p.isBlack()) {
klazz = "";
if(p.getPromotesTo().size()==1)
klazz = p.getPromotesTo().get(0);... | public Piece classicPromotion(Piece p, boolean verified, String promo) {
lastPromoted = p.getName();
klazz = p.getName();
if(p.getPromotesTo()==null||p.getPromotesTo().size()==0) return p;
if (!verified && promo == null&&g.isBlackMove()==p.isBlack()) {
klazz = "";
if(p.getPromotesTo().size()==1)
klaz... |
diff --git a/src/java/nz/co/searchwellington/controllers/models/GeotaggedModelBuilder.java b/src/java/nz/co/searchwellington/controllers/models/GeotaggedModelBuilder.java
index 48383f50..120907a8 100644
--- a/src/java/nz/co/searchwellington/controllers/models/GeotaggedModelBuilder.java
+++ b/src/java/nz/co/searchwellin... | true | true | public ModelAndView populateContentModel(HttpServletRequest request, boolean showBroken) {
if (isValid(request)) {
log.info("Building geotagged page model");
ModelAndView mv = new ModelAndView();
mv.addObject("heading", "Geotagged newsitems");
mv.addObject("description", "Geotagged n... | public ModelAndView populateContentModel(HttpServletRequest request, boolean showBroken) {
if (isValid(request)) {
log.info("Building geotagged page model");
ModelAndView mv = new ModelAndView();
mv.addObject("heading", "Geotagged newsitems");
mv.addObject("description", "Geotagged n... |
diff --git a/core/src/net/sf/openrocket/gui/simulation/SimulationEditDialog.java b/core/src/net/sf/openrocket/gui/simulation/SimulationEditDialog.java
index a4a461db..ae0784c3 100644
--- a/core/src/net/sf/openrocket/gui/simulation/SimulationEditDialog.java
+++ b/core/src/net/sf/openrocket/gui/simulation/SimulationEditD... | false | true | private void buildEditCard() {
JPanel simEditPanel = new JPanel(new MigLayout("fill"));
if (isSingleEdit()) {
JPanel panel = new JPanel(new MigLayout("fill, ins 0"));
//// Simulation name:
panel.add(new JLabel(trans.get("simedtdlg.lbl.Simname") + " "), "growx 0, gapright para");
final JTextField... | private void buildEditCard() {
JPanel simEditPanel = new JPanel(new MigLayout("fill"));
if (isSingleEdit()) {
JPanel panel = new JPanel(new MigLayout("fill, ins 0"));
//// Simulation name:
panel.add(new JLabel(trans.get("simedtdlg.lbl.Simname") + " "), "growx 0, gapright para");
final JTextField... |
diff --git a/src/main/java/de/minestar/castaway/listener/RegisterListener.java b/src/main/java/de/minestar/castaway/listener/RegisterListener.java
index 631c877..1098855 100644
--- a/src/main/java/de/minestar/castaway/listener/RegisterListener.java
+++ b/src/main/java/de/minestar/castaway/listener/RegisterListener.java... | false | true | public void onPlayerInteract(PlayerInteractEvent event) {
// only some actions are handled
if (event.getAction() != Action.LEFT_CLICK_BLOCK && event.getAction() != Action.RIGHT_CLICK_BLOCK) {
return;
}
// is the itemInHand correct?
if (event.getPlayer().getItemIn... | public void onPlayerInteract(PlayerInteractEvent event) {
// only some actions are handled
if (event.getAction() != Action.LEFT_CLICK_BLOCK && event.getAction() != Action.RIGHT_CLICK_BLOCK) {
return;
}
// is the itemInHand correct?
if (event.getPlayer().getItemIn... |
diff --git a/src/org/openmrs/module/reporting/dataset/definition/evaluator/SqlDataSetEvaluator.java b/src/org/openmrs/module/reporting/dataset/definition/evaluator/SqlDataSetEvaluator.java
index bca801c0..49a7a7a7 100644
--- a/src/org/openmrs/module/reporting/dataset/definition/evaluator/SqlDataSetEvaluator.java
+++ b/... | true | true | public DataSet evaluate(DataSetDefinition dataSetDefinition, EvaluationContext context) {
context = ObjectUtil.nvl(context, new EvaluationContext());
SqlDataSetDefinition sqlDsd = (SqlDataSetDefinition) dataSetDefinition;
SimpleDataSet dataSet = new SimpleDataSet(dataSetDefinition, context);
// By def... | public DataSet evaluate(DataSetDefinition dataSetDefinition, EvaluationContext context) {
context = ObjectUtil.nvl(context, new EvaluationContext());
SqlDataSetDefinition sqlDsd = (SqlDataSetDefinition) dataSetDefinition;
SimpleDataSet dataSet = new SimpleDataSet(dataSetDefinition, context);
// By def... |
diff --git a/openjdk/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java b/openjdk/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java
index a5891a7c..0c7516f7 100644
--- a/openjdk/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java
+++ b/openjdk/com/sun/imageio/plugins/jpeg/JPEGImageWriter.java
@@ -1,178 +1,180 @@
/*
Co... | false | true | public void write(IIOMetadata streamMetadata, IIOImage image, ImageWriteParam param) throws IOException{
ImageCodecInfo codec = null;
for (ImageCodecInfo ici : ImageCodecInfo.GetImageEncoders()) {
if (ici.get_FormatID().equals(ImageFormat.get_Jpeg().get_Guid())
&& (i... | public void write(IIOMetadata streamMetadata, IIOImage image, ImageWriteParam param) throws IOException{
ImageCodecInfo codec = null;
for (ImageCodecInfo ici : ImageCodecInfo.GetImageEncoders()) {
if (ici.get_FormatID().equals(ImageFormat.get_Jpeg().get_Guid())
&& (i... |
diff --git a/org.eclipse.jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/cm/strategy/MDExternalMetadataStrategy.java b/org.eclipse.jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/cm/strategy/MDExternalMetadataStrategy.java
index 57464... | true | true | public CMNamedNodeMap getAttributes(final String tagName)
{
final InternalNamedNodeMap nodeMap = _attributes.get(tagName);
final InternalNamedNodeMap[] innerClassNodeMap = new InternalNamedNodeMap[1];
innerClassNodeMap[0] = nodeMap;
if (nodeMap == null)
... | public CMNamedNodeMap getAttributes(final String tagName)
{
final InternalNamedNodeMap nodeMap = _attributes.get(tagName);
final InternalNamedNodeMap[] innerClassNodeMap = new InternalNamedNodeMap[1];
innerClassNodeMap[0] = nodeMap;
if (nodeMap == null)
... |
diff --git a/src/main/java/org/urbancode/terraform/tasks/aws/InstanceTask.java b/src/main/java/org/urbancode/terraform/tasks/aws/InstanceTask.java
index 9676bfd..4dcf25e 100644
--- a/src/main/java/org/urbancode/terraform/tasks/aws/InstanceTask.java
+++ b/src/main/java/org/urbancode/terraform/tasks/aws/InstanceTask.java... | true | true | public void create()
throws Exception {
log.debug("InstanceAWS: create()");
boolean verified = false;
context.setProperty("server.name", name); // update server.name prop
if (ec2Client == null) {
ec2Client = context.getEC2Client();
}
if (elb... | public void create()
throws Exception {
log.debug("InstanceAWS: create()");
boolean verified = false;
context.setProperty("server.name", name); // update server.name prop
if (ec2Client == null) {
ec2Client = context.getEC2Client();
}
if (elb... |
diff --git a/km/com/hifiremote/jp1/Rc5Translator.java b/km/com/hifiremote/jp1/Rc5Translator.java
index 619f5cf..2e0fed0 100644
--- a/km/com/hifiremote/jp1/Rc5Translator.java
+++ b/km/com/hifiremote/jp1/Rc5Translator.java
@@ -1,101 +1,107 @@
package com.hifiremote.jp1;
public class Rc5Translator
extends Translate... | false | true | public void in( Value[] parms, Hex hexData, DeviceParameter[] devParms, int onlyIndex )
{
int select = 0;
int obc = 0;
if ( onlyIndex == 0 )
{
// User has specified which device to use.
select = (( Integer )parms[ 0 ].getValue()).intValue();
insert( hexData, 6, 2, select );
}
... | public void in( Value[] parms, Hex hexData, DeviceParameter[] devParms, int onlyIndex )
{
int select = 0;
int obc = 0;
if ( onlyIndex == 0 )
{
// User has specified which device to use.
select = (( Integer )parms[ 0 ].getValue()).intValue();
insert( hexData, 6, 2, select );
}
... |
diff --git a/h2/src/main/org/h2/store/fs/FileObjectDiskMapped.java b/h2/src/main/org/h2/store/fs/FileObjectDiskMapped.java
index 2061ba982..d4c834db4 100644
--- a/h2/src/main/org/h2/store/fs/FileObjectDiskMapped.java
+++ b/h2/src/main/org/h2/store/fs/FileObjectDiskMapped.java
@@ -1,220 +1,222 @@
/*
* Copyright 2004-... | true | true | private void unMap() throws IOException {
if (mapped == null) {
return;
}
// first write all data
mapped.force();
// need to dispose old direct buffer, see bug
// http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4724038
boolean useSystemGc = tr... | private void unMap() throws IOException {
if (mapped == null) {
return;
}
// first write all data
mapped.force();
// need to dispose old direct buffer, see bug
// http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4724038
boolean useSystemGc = tr... |
diff --git a/src/bindings/org/gnome/gtk/RadioButton.java b/src/bindings/org/gnome/gtk/RadioButton.java
index 2a9d5957..5ad2a0e3 100644
--- a/src/bindings/org/gnome/gtk/RadioButton.java
+++ b/src/bindings/org/gnome/gtk/RadioButton.java
@@ -1,152 +1,151 @@
/*
* java-gnome, a UI library for writing GTK and GNOME progra... | true | true | public RadioButton(RadioGroup group, String label) {
super(
GtkRadioButton.createRadioButtonWithLabelFromWidget((RadioButton) group.getMember(),
label));
group.setMember(this);
enclosingGroup = group;
}
| public RadioButton(RadioGroup group, String label) {
super(GtkRadioButton.createRadioButtonWithMnemonicFromWidget((RadioButton) group.getMember(),
label));
group.setMember(this);
enclosingGroup = group;
}
|
diff --git a/A5/src/ui/command/ExitCommand.java b/A5/src/ui/command/ExitCommand.java
index 9d01879..5b1f66d 100644
--- a/A5/src/ui/command/ExitCommand.java
+++ b/A5/src/ui/command/ExitCommand.java
@@ -1,12 +1,12 @@
package ui.command;
import spreadsheet.Application;
public final class ExitCommand
extends Co... | true | true | public void execute() {
Application.instance.exit();
}
| public void execute() {
Application.exit();
}
|
diff --git a/src/main/java/cc/kune/core/server/rpc/SiteRPC.java b/src/main/java/cc/kune/core/server/rpc/SiteRPC.java
index 26075e1b6..224575849 100644
--- a/src/main/java/cc/kune/core/server/rpc/SiteRPC.java
+++ b/src/main/java/cc/kune/core/server/rpc/SiteRPC.java
@@ -1,155 +1,156 @@
/*
*
* Copyright (C) 2007-2011... | true | true | private InitData loadInitData() {
data = new InitData();
data.setSiteUrl(kuneProperties.get(KuneProperties.SITE_URL));
data.setLicenses(licenseManager.getAll());
data.setLanguages(languageManager.getAll());
data.setCountries(countryManager.getAll());
data.setTimezones(TimeZone.getAvailableIDs(... | private InitData loadInitData() {
data = new InitData();
data.setSiteUrl(kuneProperties.get(KuneProperties.SITE_URL));
data.setLicenses(licenseManager.getAll());
data.setLanguages(languageManager.getAll());
data.setCountries(countryManager.getAll());
data.setTimezones(TimeZone.getAvailableIDs(... |
diff --git a/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java b/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataModel.java
index b8662d90..615f0afc 100644
--- a/examples/src/main/java/org/apache/mahout/cf/taste/example/grouplens/GroupLensDataMo... | true | true | private static File convertGLFile(File originalFile, boolean ratings) throws IOException {
// Now translate the file; remove commas, then convert "::" delimiter to comma
File resultFile = new File(new File(System.getProperty("java.io.tmpdir")),
"taste." + (ratings ? "ratin... | private static File convertGLFile(File originalFile, boolean ratings) throws IOException {
// Now translate the file; remove commas, then convert "::" delimiter to comma
File resultFile = new File(new File(System.getProperty("java.io.tmpdir")),
(ratings ? "ratings" : "m... |
diff --git a/app/models/Url.java b/app/models/Url.java
index 39bc591..f20af89 100644
--- a/app/models/Url.java
+++ b/app/models/Url.java
@@ -1,30 +1,30 @@
package models;
import java.util.*;
import play.db.ebean.*;
import play.data.validation.Constraints.*;
import java.util.ArrayList;
public class Url {... | false | true | public static String randomUrl(String[] urlArray){
int size = urlList.length;
Random rn = new Random();
int randomInt = rn.nextInt(size-1);
return urlList.get(randomInt);
}
| public static String randomUrl(String[] urlArray){
int size = urlArray.length;
Random rn = new Random();
int randomInt = rn.nextInt(size-1);
return urlArray[randomInt];
}
|
diff --git a/engine/core/source/org/pentaho/reporting/engine/classic/core/function/sys/CellFormatFunction.java b/engine/core/source/org/pentaho/reporting/engine/classic/core/function/sys/CellFormatFunction.java
index 842f81776..dbfd09386 100644
--- a/engine/core/source/org/pentaho/reporting/engine/classic/core/function... | true | true | protected boolean evaluateElement(final ReportElement e)
{
final DataSource source = e.getElementType();
if (source instanceof RawDataSource)
{
final ElementStyleSheet style = e.getStyle();
final String oldFormat = (String)
style.getStyleProperty(ElementStyleKeys.EXCEL_DATA_FORMAT_... | protected boolean evaluateElement(final ReportElement e)
{
final DataSource source = e.getElementType();
if (source instanceof RawDataSource)
{
final ElementStyleSheet style = e.getStyle();
final String oldFormat = (String)
style.getStyleProperty(ElementStyleKeys.EXCEL_DATA_FORMAT_... |
diff --git a/src/com/android/mms/data/RecipientIdCache.java b/src/com/android/mms/data/RecipientIdCache.java
index 4547a5d..f3ed4ab 100644
--- a/src/com/android/mms/data/RecipientIdCache.java
+++ b/src/com/android/mms/data/RecipientIdCache.java
@@ -1,170 +1,170 @@
package com.android.mms.data;
import java.util.Arra... | false | true | public static List<Entry> getAddresses(String spaceSepIds) {
synchronized (sInstance) {
List<Entry> numbers = new ArrayList<Entry>();
String[] ids = spaceSepIds.split(" ");
for (String id : ids) {
long longId;
try {
lon... | public static List<Entry> getAddresses(String spaceSepIds) {
synchronized (sInstance) {
List<Entry> numbers = new ArrayList<Entry>();
String[] ids = spaceSepIds.split(" ");
for (String id : ids) {
long longId;
try {
lon... |
diff --git a/dataset-io/src/main/java/org/clueminer/io/CsvLoader.java b/dataset-io/src/main/java/org/clueminer/io/CsvLoader.java
index 36f27090f..c9158b25a 100644
--- a/dataset-io/src/main/java/org/clueminer/io/CsvLoader.java
+++ b/dataset-io/src/main/java/org/clueminer/io/CsvLoader.java
@@ -1,267 +1,268 @@
package or... | true | true | public boolean load(File file) {
LineIterator it = new LineIterator(file);
Instance inst;
it.setSkipBlanks(true);
it.setCommentIdentifier("#");
it.setSkipComments(true);
checkDataset();
InstanceBuilder builder = dataset.builder();
if (hasHeader && !sk... | public boolean load(File file) {
LineIterator it = new LineIterator(file);
Instance inst;
it.setSkipBlanks(true);
it.setCommentIdentifier("#");
it.setSkipComments(true);
checkDataset();
InstanceBuilder builder = dataset.builder();
if (hasHeader && !sk... |
diff --git a/Poker/src/poker/arturka/Game.java b/Poker/src/poker/arturka/Game.java
index 109ae8a..99583d0 100644
--- a/Poker/src/poker/arturka/Game.java
+++ b/Poker/src/poker/arturka/Game.java
@@ -1,311 +1,312 @@
package poker.arturka;
import commands.*;
import message.data.*;
import poker.server.Room;
import po... | true | true | public void run() {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("Game thread started");
// for(int id: Room.getUsers()){
// players.addPlayer(id);
// }
players.getDeale... | public void run() {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
System.out.println("Game thread started");
// for(int id: Room.getUsers()){
// players.addPlayer(id);
// }
players.getDeale... |
diff --git a/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/jsfappconfig/JARFileJSFAppConfigProvider.java b/jsf/plugins/org.eclipse.jst.jsf.core/src/org/eclipse/jst/jsf/core/jsfappconfig/JARFileJSFAppConfigProvider.java
index b4883366e..30c96a0d4 100644
--- a/jsf/plugins/org.eclipse.jst.jsf.core/src/... | true | true | private FacesConfigType getFacesConfig()
{
JarFile jarFile = null;
File tempFile = null;
OutputStream tempFileStream = null;
try
{
jarFile = new JarFile(filename);
ZipEntry entry = jarFile.getEntry("META-INF/faces-config.xml");
if (entry != null)
{
InputStream stream = jarFile.getIn... | private FacesConfigType getFacesConfig()
{
JarFile jarFile = null;
File tempFile = null;
OutputStream tempFileStream = null;
try
{
jarFile = new JarFile(filename);
ZipEntry entry = jarFile.getEntry("META-INF/faces-config.xml");
if (entry != null)
{
InputStream stream = jarFile.getIn... |
diff --git a/source/src/net/grinder/engine/process/instrumenter/dcr/RecorderLocator.java b/source/src/net/grinder/engine/process/instrumenter/dcr/RecorderLocator.java
index 86e76e1f..f1669fa4 100644
--- a/source/src/net/grinder/engine/process/instrumenter/dcr/RecorderLocator.java
+++ b/source/src/net/grinder/engine/pro... | true | true | public static void exit(Object target, String location, boolean success) {
if (target == null) {
// We don't allow recorders to register for a null target,
// but weaved code can be called with null.
return;
}
// Beware when enabling the following logging - calls on the object itself
... | public static void exit(Object target, String location, boolean success) {
if (target == null) {
// We don't allow recorders to register for a null target,
// but weaved code can be called with null.
return;
}
// Beware when enabling the following logging - calls on the object itself
... |
diff --git a/components/bio-formats/src/loci/formats/in/MetamorphReader.java b/components/bio-formats/src/loci/formats/in/MetamorphReader.java
index 2e52043ee..26e763a64 100644
--- a/components/bio-formats/src/loci/formats/in/MetamorphReader.java
+++ b/components/bio-formats/src/loci/formats/in/MetamorphReader.java
@@ ... | false | true | protected void initFile(String id) throws FormatException, IOException {
if (checkSuffix(id, ND_SUFFIX)) {
// find an associated STK file
String stkFile = id.substring(0, id.lastIndexOf("."));
if (stkFile.indexOf(File.separator) != -1) {
stkFile = stkFile.substring(stkFile.lastIndexOf(Fi... | protected void initFile(String id) throws FormatException, IOException {
if (checkSuffix(id, ND_SUFFIX)) {
// find an associated STK file
String stkFile = id.substring(0, id.lastIndexOf("."));
if (stkFile.indexOf(File.separator) != -1) {
stkFile = stkFile.substring(stkFile.lastIndexOf(Fi... |
diff --git a/waterken/network/src/org/waterken/net/http/Session.java b/waterken/network/src/org/waterken/net/http/Session.java
index e333c458..135224dd 100644
--- a/waterken/network/src/org/waterken/net/http/Session.java
+++ b/waterken/network/src/org/waterken/net/http/Session.java
@@ -1,177 +1,177 @@
// Copyright 200... | true | true | public void
run() throws Exception {
socket.setTcpNoDelay(true);
socket.setSoTimeout(config.soTimeout);
final InputStream cin = socket.getInputStream();
Responder current=new Responder(config.server,socket.getOutputStream());
while (true) {
// read the Reques... | public void
run() throws Exception {
socket.setTcpNoDelay(true);
socket.setSoTimeout(config.soTimeout);
final InputStream cin = socket.getInputStream();
Responder current=new Responder(config.server,socket.getOutputStream());
while (true) {
// read the Reques... |
diff --git a/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISDoorListener.java b/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISDoorListener.java
index 654f60859..47020f77d 100644
--- a/src/main/java/me/eccentric_nz/TARDIS/listeners/TARDISDoorListener.java
+++ b/src/main/java/me/eccentric_nz/TARDIS/listeners... | false | true | public void onDoorInteract(PlayerInteractEvent event) {
QueryFactory qf = new QueryFactory(plugin);
final Player player = event.getPlayer();
final String playerNameStr = player.getName();
Block block = event.getClickedBlock();
if (block != null) {
Material blockTy... | public void onDoorInteract(PlayerInteractEvent event) {
QueryFactory qf = new QueryFactory(plugin);
final Player player = event.getPlayer();
final String playerNameStr = player.getName();
Block block = event.getClickedBlock();
if (block != null) {
Material blockTy... |
diff --git a/web-runner/src/test/java/org/jbehave/web/runner/wicket/pages/FindStepsTest.java b/web-runner/src/test/java/org/jbehave/web/runner/wicket/pages/FindStepsTest.java
index 0f84674..bcd2b27 100644
--- a/web-runner/src/test/java/org/jbehave/web/runner/wicket/pages/FindStepsTest.java
+++ b/web-runner/src/test/jav... | true | true | public void shouldFindAndSortSteps() {
// Given
tester.startPage(pageClass);
FormTester formTester = tester.newFormTester("stepsForm");
// When
formTester.submit("findButton");
// Then
List<SerializableStepdoc> stepdocs = modelObject(formTester, "stepdocs");
... | public void shouldFindAndSortSteps() {
// Given
tester.startPage(pageClass);
FormTester formTester = tester.newFormTester("stepsForm");
// When
formTester.submit("findButton");
// Then
List<SerializableStepdoc> stepdocs = modelObject(formTester, "stepdocs");
... |
diff --git a/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/glib/views/pst/PSTPictureView.java b/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/glib/views/pst/PSTPictureView.java
index eb8aa168..b92f3e66 100644
--- a/latexdraw-core/net.sf.latexdraw/src/main/net/sf/latexdraw/glib/views/pst/PSTPictu... | true | true | public void updateCache(final IPoint origin, final float ppc) {
if(!GLibUtilities.INSTANCE.isValidPoint(origin) || ppc<1)
return ;
emptyCache();
String path = shape.getPathTarget();
StringBuilder start = new StringBuilder();
StringBuilder rot = getRotationHeaderCode(ppc, origin);
path = path.repla... | public void updateCache(final IPoint origin, final float ppc) {
if(!GLibUtilities.INSTANCE.isValidPoint(origin) || ppc<1)
return ;
emptyCache();
String path = shape.getPathTarget();
StringBuilder start = new StringBuilder();
StringBuilder rot = getRotationHeaderCode(ppc, origin);
path = path.repla... |
diff --git a/grails/src/java/org/codehaus/groovy/grails/orm/hibernate/metaclass/FindByPersistentMethod.java b/grails/src/java/org/codehaus/groovy/grails/orm/hibernate/metaclass/FindByPersistentMethod.java
index 2bb1969b4..e44a0d122 100644
--- a/grails/src/java/org/codehaus/groovy/grails/orm/hibernate/metaclass/FindByPe... | true | true | protected Object doInvokeInternalWithExpressions(final Class clazz, String methodName, final Object[] arguments, final List expressions, String operatorInUse) {
final String operator = OPERATOR_OR.equals(operatorInUse) ? OPERATOR_OR : OPERATOR_AND;
return super.getHibernateTemplate().execute( new Hibe... | protected Object doInvokeInternalWithExpressions(final Class clazz, String methodName, final Object[] arguments, final List expressions, String operatorInUse) {
final String operator = OPERATOR_OR.equals(operatorInUse) ? OPERATOR_OR : OPERATOR_AND;
return super.getHibernateTemplate().execute( new Hibe... |
diff --git a/plugins/org.bonitasoft.studio.diagram.form.properties/src/org/bonitasoft/studio/properties/form/sections/actions/contributions/ImageWidgetInitialValueContribution.java b/plugins/org.bonitasoft.studio.diagram.form.properties/src/org/bonitasoft/studio/properties/form/sections/actions/contributions/ImageWidge... | false | true | protected void doCreateControl(
TabbedPropertySheetWidgetFactory widgetFactory) {
super.doCreateControl(widgetFactory);
browse = widgetFactory.createButton(composite, Messages.Browse, SWT.FLAT);
browse.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {... | protected void doCreateControl(
TabbedPropertySheetWidgetFactory widgetFactory) {
super.doCreateControl(widgetFactory);
browse = widgetFactory.createButton(composite, Messages.Browse, SWT.FLAT);
browse.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {... |
diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitBlameViewer.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitBlameViewer.java
index 51bb31204..2a9f2edb4 100644
--- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitBlameViewer.java
+++ b/scm-plugins/s... | true | true | public BlamePagingResult getBlame(String revision, String path)
{
BlameResult blameResult = null;
BlamePagingResult blamePagingResult = null;
org.eclipse.jgit.lib.Repository gr = null;
File directory = handler.getDirectory(repository);
Git git = null;
try
{
gr = GitUtil.open(direc... | public BlamePagingResult getBlame(String revision, String path)
{
BlameResult blameResult = null;
BlamePagingResult blamePagingResult = null;
org.eclipse.jgit.lib.Repository gr = null;
File directory = handler.getDirectory(repository);
Git git = null;
try
{
gr = GitUtil.open(direc... |
diff --git a/app/models/Project.java b/app/models/Project.java
index cda9a060..3ad0072e 100644
--- a/app/models/Project.java
+++ b/app/models/Project.java
@@ -1,156 +1,154 @@
package models;
import java.util.Iterator;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;... | false | true | public static List<Project> isOnlyManager(Long userId) {
List<Project> projects = find
.select("id")
.select("name")
.where()
.eq("projectUser.user.id", userId)... | public static List<Project> isOnlyManager(Long userId) {
List<Project> projects = find
.select("id")
.select("name")
.where()
.eq("projectUser.user.id", userId)... |
diff --git a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/objects/Log.java b/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/objects/Log.java
index 26dd1b02..10e30d9b 100644
--- a/bundles/org.eclipse.orion.server.git/src/org/eclipse/orion/server/git/objects/Log.java
+++ b/... | true | true | public JSONObject toJSON(int page, int pageSize) throws JSONException, URISyntaxException, IOException, CoreException {
if (commits == null)
throw new IllegalStateException("'commits' is null");
Map<ObjectId, JSONArray> commitToBranchMap = getCommitToBranchMap(db);
JSONObject result = new JSONObject();
JSO... | public JSONObject toJSON(int page, int pageSize) throws JSONException, URISyntaxException, IOException, CoreException {
if (commits == null)
throw new IllegalStateException("'commits' is null");
Map<ObjectId, JSONArray> commitToBranchMap = getCommitToBranchMap(db);
JSONObject result = super.toJSON();
JSONA... |
diff --git a/src/JOFrame.java b/src/JOFrame.java
index 0d97260..e8a6edf 100644
--- a/src/JOFrame.java
+++ b/src/JOFrame.java
@@ -1,165 +1,165 @@
import javax.swing.*;
import javax.swing.border.TitledBorder;
import com.sun.tools.javac.util.List;
import model.*;
import java.awt.FlowLayout;
import java.awt.eve... | true | true | public void joFieldtoMethod(String title) {
ArrayList<String> methodList = new ArrayList();
for(Field theField: graphicalPanel.getMouseSelectedClass().getFields())
{
if(theField instanceof Method)
{
methodList.add(theField.getLabel());
}
}
if(!methodList.isEmpty())
{
JPanel panel = new JPan... | public void joFieldtoMethod(String title) {
ArrayList<String> methodList = new ArrayList<String>();
for(Field theField: graphicalPanel.getMouseSelectedClass().getFields())
{
if(theField instanceof Method)
{
methodList.add(theField.getLabel());
}
}
if(!methodList.isEmpty())
{
JPanel panel = ... |
diff --git a/src/devedroid/opensurveyor/ButtonUIFragment.java b/src/devedroid/opensurveyor/ButtonUIFragment.java
index 63a0c07..1d2a618 100644
--- a/src/devedroid/opensurveyor/ButtonUIFragment.java
+++ b/src/devedroid/opensurveyor/ButtonUIFragment.java
@@ -1,180 +1,180 @@
package devedroid.opensurveyor;
import java... | true | true | private void addButtons() {
Display display = getSherlockActivity().getWindowManager()
.getDefaultDisplay();
// int width = display.getWidth() - flow.getPaddingLeft() - flow.getPaddingRight();
// int height = display.getHeight()- lvHist.getHeight()
// - flow.getPaddingTop() - flow.getPaddingBottom();
/... | private void addButtons() {
Display display = getSherlockActivity().getWindowManager()
.getDefaultDisplay();
// int width = display.getWidth() - flow.getPaddingLeft() - flow.getPaddingRight();
// int height = display.getHeight()- lvHist.getHeight()
// - flow.getPaddingTop() - flow.getPaddingBottom();
/... |
diff --git a/plugins/org.eclipse.birt.report.data.oda.sampledb/src/org/eclipse/birt/report/data/oda/sampledb/SampleDBJDBCConnectionFactory.java b/plugins/org.eclipse.birt.report.data.oda.sampledb/src/org/eclipse/birt/report/data/oda/sampledb/SampleDBJDBCConnectionFactory.java
index 1b3c00025..bfebe9ab9 100644
--- a/plu... | true | true | public Connection getConnection(String driverClass, String url, Properties connectionProperties)
throws SQLException
{
if ( ! driverClass.equals( Constants.DRIVER_CLASS) )
{
// This is unexpected; we shouldn't be getting this call
logger.log( Level.SEVERE, "Unexpected driverClass: " + driverClass );
t... | public Connection getConnection(String driverClass, String url, Properties connectionProperties)
throws SQLException
{
if ( ! driverClass.equals( Constants.DRIVER_CLASS) )
{
// This is unexpected; we shouldn't be getting this call
logger.log( Level.SEVERE, "Unexpected driverClass: " + driverClass );
t... |
diff --git a/plugins/sru/sruclient/src/main/java/com/googlecode/fascinator/redbox/sru/SRUClient.java b/plugins/sru/sruclient/src/main/java/com/googlecode/fascinator/redbox/sru/SRUClient.java
index be662f5..1974a8e 100644
--- a/plugins/sru/sruclient/src/main/java/com/googlecode/fascinator/redbox/sru/SRUClient.java
+++ b... | false | true | public String getSearchResponse(String query, String operation,
String sortKeys, String startRecord, String maxRecords) {
// Get a search URL to execute first
String searchUrl = generateSearchUrl(query, operation,
sortKeys, startRecord, maxRecords);
if (searchUrl ... | public String getSearchResponse(String query, String operation,
String sortKeys, String startRecord, String maxRecords) {
// Get a search URL to execute first
String searchUrl = generateSearchUrl(query, operation,
sortKeys, startRecord, maxRecords);
if (searchUrl ... |
diff --git a/src/cn/kuehne/kinaseblender/gui/SourcesModel.java b/src/cn/kuehne/kinaseblender/gui/SourcesModel.java
index be163dc..3459ddf 100755
--- a/src/cn/kuehne/kinaseblender/gui/SourcesModel.java
+++ b/src/cn/kuehne/kinaseblender/gui/SourcesModel.java
@@ -1,90 +1,90 @@
/*
* Copyright (c) 2010, 2011, 2012 Thomas... | true | true | public SourcesModel(final CompiledCloud compiled) {
super(" Source");
final int sources = compiled.getSourceCount();
int maxProducts = 0;
final ArrayList<List<Product>> products = new ArrayList<List<Product>>();
for (int i = 0; i < sources; i++) {
final Source source = compiled.getSource(i);
final L... | public SourcesModel(final CompiledCloud compiled) {
super(" Source");
final int sources = compiled.getSourceCount();
int maxProducts = 0;
final ArrayList<List<Product>> products = new ArrayList<List<Product>>();
for (int i = 0; i < sources; i++) {
final Source source = compiled.getSource(i);
final L... |
diff --git a/src/main/xgen/irc/RoomLogging.java b/src/main/xgen/irc/RoomLogging.java
index a3b6c0c..8a43c1f 100644
--- a/src/main/xgen/irc/RoomLogging.java
+++ b/src/main/xgen/irc/RoomLogging.java
@@ -1,240 +1,244 @@
// RoomLogging.java
package xgen.irc;
import xgen.util.*;
import com.mongodb.*;
import jav... | true | true | public List<LogMessage> search( String query ) {
String[] pcs = query.split( " +" );
List<LogMessage> lst = new ArrayList<LogMessage>();
try {
DBObject cmd = new BasicDBObject();
cmd.put( "fts" , _logs.getName() );
cmd.put( "search" , query );
... | public List<LogMessage> search( String query ) {
String[] pcs = query.split( " +" );
List<LogMessage> lst = new ArrayList<LogMessage>();
try {
DBObject cmd = new BasicDBObject();
cmd.put( "fts" , _logs.getName() );
cmd.put( "search" , query );
... |
diff --git a/src/main/java/FindBugsManager/Core/XMLReader.java b/src/main/java/FindBugsManager/Core/XMLReader.java
index a32e3bf..9710298 100644
--- a/src/main/java/FindBugsManager/Core/XMLReader.java
+++ b/src/main/java/FindBugsManager/Core/XMLReader.java
@@ -1,190 +1,188 @@
package FindBugsManager.Core;
import ja... | true | true | public ArrayList<BugInstanceSet> parseFindBugsXML(ArrayList<BugInstanceSet> bugInfoList,
File file) {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = null;
int startLine = 0, endLine = 0;
try {
builder = factory.newDocumentBuilder();
Document doc = bu... | public ArrayList<BugInstanceSet> parseFindBugsXML(ArrayList<BugInstanceSet> bugInfoList,
File file) {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = null;
int startLine = 0, endLine = 0;
try {
builder = factory.newDocumentBuilder();
Document doc = bu... |
diff --git a/cotrix/cotrix-web-codelistmanager/src/main/java/org/cotrix/web/codelistmanager/client/codelist/CodelistAttributesPanel.java b/cotrix/cotrix-web-codelistmanager/src/main/java/org/cotrix/web/codelistmanager/client/codelist/CodelistAttributesPanel.java
index e022f7d0..7b5affce 100644
--- a/cotrix/cotrix-web-c... | true | true | protected void bind()
{
editorBus.addHandler(CodeSelectedEvent.TYPE, new CodeSelectedEvent.CodeSelectedHandler() {
@Override
public void onCodeSelected(CodeSelectedEvent event) {
updateVisualizedCode(event.getCode());
}
});
editorBus.addHandler(GroupSwitchedEvent.TYPE, new GroupSwitchedEvent.Grou... | protected void bind()
{
editorBus.addHandler(CodeSelectedEvent.TYPE, new CodeSelectedEvent.CodeSelectedHandler() {
@Override
public void onCodeSelected(CodeSelectedEvent event) {
updateVisualizedCode(event.getCode());
}
});
editorBus.addHandler(GroupSwitchedEvent.TYPE, new GroupSwitchedEvent.Grou... |
diff --git a/tools/gem/org.eclipse.ptp.gem/src/org/eclipse/ptp/gem/views/GemAnalyzer.java b/tools/gem/org.eclipse.ptp.gem/src/org/eclipse/ptp/gem/views/GemAnalyzer.java
index 276f3ad86..5ae9e69b6 100644
--- a/tools/gem/org.eclipse.ptp.gem/src/org/eclipse/ptp/gem/views/GemAnalyzer.java
+++ b/tools/gem/org.eclipse.ptp.ge... | false | true | private void createSelectionListeners() {
// SelectionListeners for transitions group buttons
this.firstTransitionButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
updateFirstTransition(true);
}
});
this.previousTransitionButton
.add... | private void createSelectionListeners() {
// SelectionListeners for transitions group buttons
this.firstTransitionButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
updateFirstTransition(true);
}
});
this.previousTransitionButton
.add... |
diff --git a/src/org/game/runner/game/element/level/BonusSpeed.java b/src/org/game/runner/game/element/level/BonusSpeed.java
index c3c035e..eabfcfb 100644
--- a/src/org/game/runner/game/element/level/BonusSpeed.java
+++ b/src/org/game/runner/game/element/level/BonusSpeed.java
@@ -1,39 +1,39 @@
/*
* To change this te... | true | true | public IEntity createEntity(float pX, float pY, float pWidth, float pHeight, VertexBufferObjectManager pVertexBufferObjectManager, final Player player) {
IEntity entity = new Rectangle(pX, pY, pWidth, pHeight, pVertexBufferObjectManager){
@Override
protected void onManagedUpdate(floa... | public IEntity createEntity(float pX, float pY, float pWidth, float pHeight, VertexBufferObjectManager pVertexBufferObjectManager, final Player player) {
IEntity entity = new Rectangle(pX, pY, pWidth, pHeight, pVertexBufferObjectManager){
@Override
protected void onManagedUpdate(floa... |
diff --git a/software/camod/src/gov/nih/nci/camod/service/impl/EngineeredTransgeneManagerImpl.java b/software/camod/src/gov/nih/nci/camod/service/impl/EngineeredTransgeneManagerImpl.java
index 3fb1bacc..5d595a13 100755
--- a/software/camod/src/gov/nih/nci/camod/service/impl/EngineeredTransgeneManagerImpl.java
+++ b/sof... | false | true | private void populateEngineeredTransgene(
EngineeredTransgeneData inEngineeredTransgeneData,
Transgene inEngineeredTransgene, HttpServletRequest request)
throws Exception {
log.debug("Entering populateEngineeredTransgene");
// Grab the current modelID from the session
String theModelId = (String) reque... | private void populateEngineeredTransgene(
EngineeredTransgeneData inEngineeredTransgeneData,
Transgene inEngineeredTransgene, HttpServletRequest request)
throws Exception {
log.debug("Entering populateEngineeredTransgene");
// Grab the current modelID from the session
String theModelId = (String) reque... |
diff --git a/src/BorrowerTable.java b/src/BorrowerTable.java
index 36d15ec..573b871 100644
--- a/src/BorrowerTable.java
+++ b/src/BorrowerTable.java
@@ -1,171 +1,169 @@
import java.io.IOException;
import java.sql.*;
import java.util.ArrayList;
public class BorrowerTable {
private static Connection con;
... | false | true | public static void insertBorrower(String bid, String password, String name, String address,
String phone, String email, String sinOrStNo, String expiryDate,
String type) throws IllegalArgumentException
{
try {
con = db_helper.connect("ora_i7f7", "a71163091");
} catch (SQLException ... | public static void insertBorrower(String bid, String password, String name, String address,
String phone, String email, String sinOrStNo, String expiryDate,
String type) throws IllegalArgumentException
{
try {
con = db_helper.connect("ora_i7f7", "a71163091");
} catch (SQLException ... |
diff --git a/src/java/test/evaluation/BSuggPathBasedtxtFn.java b/src/java/test/evaluation/BSuggPathBasedtxtFn.java
index 0d90512..f89308d 100644
--- a/src/java/test/evaluation/BSuggPathBasedtxtFn.java
+++ b/src/java/test/evaluation/BSuggPathBasedtxtFn.java
@@ -1,266 +1,266 @@
package test.evaluation;
import test.... | false | true | public static void main (String[] args) {
String desiredOps = "";
List<WebServiceOpr> candidateOpsOBI = new ArrayList<WebServiceOpr>();
candidateOpsOBI.add(new WebServiceOpr("filterByEvalScore", filerSeq));
candidateOpsOBI.add(new WebServiceOpr("filterByEvalScoreCSV"... | public static void main (String[] args) {
String desiredOps = "";
List<WebServiceOpr> candidateOpsOBI = new ArrayList<WebServiceOpr>();
candidateOpsOBI.add(new WebServiceOpr("filterByEvalScore", filerSeq));
candidateOpsOBI.add(new WebServiceOpr("filterByEvalScoreCSV"... |
diff --git a/web/src/main/java/org/mule/galaxy/web/server/GalaxyServiceImpl.java b/web/src/main/java/org/mule/galaxy/web/server/GalaxyServiceImpl.java
index 96644fbd..275a4572 100755
--- a/web/src/main/java/org/mule/galaxy/web/server/GalaxyServiceImpl.java
+++ b/web/src/main/java/org/mule/galaxy/web/server/GalaxyServic... | true | true | public WUser getUserInfo() throws RPCException {
User user = SecurityUtils.getCurrentUser();
WUser w = SecurityServiceImpl.createWUser(user);
List<String> perms = new ArrayList<String>();
for (Permission p : accessControlManager.getGrantedPermissions(user)) {
perms.add(... | public WUser getUserInfo() throws RPCException {
User user = SecurityUtils.getCurrentUser();
WUser w = SecurityServiceImpl.createWUser(user);
List<String> perms = new ArrayList<String>();
for (Permission p : accessControlManager.getGrantedPermissions(user)) {
perms.add(... |
diff --git a/src/core/cascading/pipe/cogroup/CoGroupClosure.java b/src/core/cascading/pipe/cogroup/CoGroupClosure.java
index e144e84a..42ca1847 100644
--- a/src/core/cascading/pipe/cogroup/CoGroupClosure.java
+++ b/src/core/cascading/pipe/cogroup/CoGroupClosure.java
@@ -1,204 +1,204 @@
/*
* Copyright (c) 2007-2010 C... | true | true | public CompressionCodec getCompressionCodec( FlowProcess flowProcess )
{
String compress = (String) flowProcess.getProperty( SPILL_COMPRESS );
if( compress != null && !Boolean.parseBoolean( compress ) )
return null;
String codecs = (String) flowProcess.getProperty( SPILL_CODECS );
if( cod... | public CompressionCodec getCompressionCodec( FlowProcess flowProcess )
{
String compress = (String) flowProcess.getProperty( SPILL_COMPRESS );
if( compress != null && !Boolean.parseBoolean( compress ) )
return null;
String codecs = (String) flowProcess.getProperty( SPILL_CODECS );
if( cod... |
diff --git a/Jump/src/com/janrain/android/TradSignInUi.java b/Jump/src/com/janrain/android/TradSignInUi.java
index ef64684b..af8d9ddf 100644
--- a/Jump/src/com/janrain/android/TradSignInUi.java
+++ b/Jump/src/com/janrain/android/TradSignInUi.java
@@ -1,328 +1,329 @@
/*
* * * * * * * * * * * * * * * * * * * * * * * ... | false | true | public void onClick(View v) {
final Capture.SignInResultHandler handler = new Capture.SignInResultHandler() {
public void onSuccess(CaptureRecord record, JSONObject response) {
Jump.state.signedInUser = record;
Jump.fireHandlerOnSuccess(respons... | public void onClick(View v) {
final Capture.SignInResultHandler handler = new Capture.SignInResultHandler() {
public void onSuccess(CaptureRecord record, JSONObject response) {
Jump.state.signedInUser = record;
Jump.fireHandlerOnSuccess(respons... |
diff --git a/src/com/evervoid/client/graphics/GridNode.java b/src/com/evervoid/client/graphics/GridNode.java
index 409ace4..73b069f 100644
--- a/src/com/evervoid/client/graphics/GridNode.java
+++ b/src/com/evervoid/client/graphics/GridNode.java
@@ -1,107 +1,107 @@
package com.evervoid.client.graphics;
import com.ev... | false | true | public void smoothMoveTo(final GridLocation destination)
{
unregisterFromGrid();
aGridLocation = constrainToGrid(destination);
registerToGrid();
aGridTranslation.smoothMoveTo(aGrid.getCellCenter(destination)).start(new Runnable()
{
@Override
public void run()
{
if (!aGridTranslation.isInProgres... | public void smoothMoveTo(final GridLocation destination)
{
// unregisterFromGrid();
aGridLocation = constrainToGrid(destination);
// registerToGrid();
aGridTranslation.smoothMoveTo(aGrid.getCellCenter(destination)).start(new Runnable()
{
@Override
public void run()
{
if (!aGridTranslation.isInP... |
diff --git a/src/main/java/com/p000ison/dev/simpleclans2/commands/admin/ConvertCommand.java b/src/main/java/com/p000ison/dev/simpleclans2/commands/admin/ConvertCommand.java
index 3128cfb..8c5ba64 100644
--- a/src/main/java/com/p000ison/dev/simpleclans2/commands/admin/ConvertCommand.java
+++ b/src/main/java/com/p000ison... | false | true | public void execute(CommandSender sender, String[] args)
{
String action = args[0];
JBDCDatabase database = null;
DatabaseConfiguration config = null;
try {
if (action.equalsIgnoreCase("mysql")) {
String[] address = args[1].split(":");
... | public void execute(CommandSender sender, String[] args)
{
String action = args[0];
JBDCDatabase database = null;
DatabaseConfiguration config = null;
try {
if (action.equalsIgnoreCase("mysql")) {
String[] address = args[1].split(":");
... |
diff --git a/framework/trunk/api/src/main/java/eu/europeana/uim/plugin/source/Task.java b/framework/trunk/api/src/main/java/eu/europeana/uim/plugin/source/Task.java
index 8d1c4664..ba319269 100644
--- a/framework/trunk/api/src/main/java/eu/europeana/uim/plugin/source/Task.java
+++ b/framework/trunk/api/src/main/java/eu... | true | true | public void run() {
U localDataset = dataset;
if (adapter != null) {
localDataset = adapter.adapt(localDataset);
}
successfulProcessing = step.process(dataset, context);
if (adapter != null) {
dataset = adapter.unadapt(localDataset);
}
}
| public void run() {
U localDataset = dataset;
if (adapter != null) {
localDataset = adapter.adapt(localDataset);
}
successfulProcessing = step.process(localDataset, context);
if (adapter != null) {
dataset = adapter.unadapt(localDataset);
}
... |
diff --git a/src/com/android/gallery3d/ui/MenuExecutor.java b/src/com/android/gallery3d/ui/MenuExecutor.java
index 710ddc4..637c01e 100644
--- a/src/com/android/gallery3d/ui/MenuExecutor.java
+++ b/src/com/android/gallery3d/ui/MenuExecutor.java
@@ -1,398 +1,398 @@
/*
* Copyright (C) 2010 The Android Open Source Proj... | true | true | private boolean execute(
DataManager manager, JobContext jc, int cmd, Path path) {
boolean result = true;
switch (cmd) {
case R.id.action_confirm_delete:
manager.delete(path);
break;
case R.id.action_rotate_cw:
manag... | private boolean execute(
DataManager manager, JobContext jc, int cmd, Path path) {
boolean result = true;
switch (cmd) {
case R.id.action_confirm_delete:
manager.delete(path);
break;
case R.id.action_rotate_cw:
manag... |
diff --git a/swing/envisage/src/test/java/org/qi4j/library/swing/envisage/school/SchoolAssembler.java b/swing/envisage/src/test/java/org/qi4j/library/swing/envisage/school/SchoolAssembler.java
index b6cd5f5db..d1686f4b2 100644
--- a/swing/envisage/src/test/java/org/qi4j/library/swing/envisage/school/SchoolAssembler.jav... | false | true | public ApplicationAssembly assemble( ApplicationAssemblyFactory applicationFactory ) throws AssemblyException
{
final ApplicationAssembly appAssembly = applicationFactory.newApplicationAssembly();
appAssembly.setName( "School" );
// Create layers
LayerAssembly layerInfra = creat... | public ApplicationAssembly assemble( ApplicationAssemblyFactory applicationFactory ) throws AssemblyException
{
final ApplicationAssembly appAssembly = applicationFactory.newApplicationAssembly();
appAssembly.setName( "School" );
// Create layers
LayerAssembly layerUI = createUI... |
diff --git a/src/org/hackystat/projectbrowser/page/telemetry/TestTelemetryPage.java b/src/org/hackystat/projectbrowser/page/telemetry/TestTelemetryPage.java
index 9054fcc..3eb9098 100644
--- a/src/org/hackystat/projectbrowser/page/telemetry/TestTelemetryPage.java
+++ b/src/org/hackystat/projectbrowser/page/telemetry/Te... | false | true | public void testTelemetryPageNormalNavigation() {
this.generateSimData(testUser, testProject, Tstamp.makeTimestamp(), 3);
Properties testProperties = getTestProperties();
testProperties.put(ProjectBrowserProperties.AVAILABLEPAGE_KEY + telemetry, trueString);
testProperties.put(ProjectBrowserPropertie... | public void testTelemetryPageNormalNavigation() {
this.generateSimData(testUser, testProject, Tstamp.makeTimestamp(), 3);
Properties testProperties = getTestProperties();
testProperties.put(ProjectBrowserProperties.AVAILABLEPAGE_KEY + telemetry, trueString);
testProperties.put(ProjectBrowserPropertie... |
diff --git a/mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/internal/BasicProductionRecordChangeListener.java b/mes-plugins/mes-plugins-production-counting/src/main/java/com/qcadoo/mes/productionCounting/internal/BasicProductionRecordChangeListener.java
index a6df71d2f6..eb3... | false | true | private void updateBasicProductionCounting(final Entity productionRecord, final Operation operation) {
final Entity order = productionRecord.getBelongsToField(ORDER_FIELD);
final List<Entity> productionCountings = dataDefinitionService
.get(BasicProductionCountingConstants.PLUGIN_ID... | private void updateBasicProductionCounting(final Entity productionRecord, final Operation operation) {
final Entity order = productionRecord.getBelongsToField(ORDER_FIELD);
final List<Entity> productionCountings = dataDefinitionService
.get(BasicProductionCountingConstants.PLUGIN_ID... |
diff --git a/apps/xgap/plugins/system/appcustomizer/AppCustomizer.java b/apps/xgap/plugins/system/appcustomizer/AppCustomizer.java
index a37564ab5..37b05e29b 100644
--- a/apps/xgap/plugins/system/appcustomizer/AppCustomizer.java
+++ b/apps/xgap/plugins/system/appcustomizer/AppCustomizer.java
@@ -1,109 +1,109 @@
/*
*... | false | true | public void handleRequest(Database db, Tuple request)
{
try
{
if ("uploadBanner".equals(request.getAction()))
{
File newBanner = request.getFile("uploadBannerFile");
if(newBanner == null)
{
throw new Exception("Please provide an image file.");
}
File oldBanner = new Fil... | public void handleRequest(Database db, Tuple request)
{
try
{
if ("uploadBanner".equals(request.getAction()))
{
File newBanner = request.getFile("uploadBannerFile");
if(newBanner == null)
{
throw new Exception("Please provide an image file.");
}
File oldBanner = new Fil... |
diff --git a/ide/eclipse/registry/org.wso2.developerstudio.eclipse.greg.base/src/org/wso2/developerstudio/eclipse/greg/base/model/RegistryResourceNode.java b/ide/eclipse/registry/org.wso2.developerstudio.eclipse.greg.base/src/org/wso2/developerstudio/eclipse/greg/base/model/RegistryResourceNode.java
index 8eb4599f6..ba... | true | true | public ArrayList<RegistryResourceNode> getResourceNodeList()
throws InvalidRegistryURLException, UnknownRegistryException {
/**
* initially setError should be set false. Content provider and label
* provider is called only when setError is set to false
*/
setError(false);
if (resourceNodeList == null... | public ArrayList<RegistryResourceNode> getResourceNodeList()
throws InvalidRegistryURLException, UnknownRegistryException {
/**
* initially setError should be set false. Content provider and label
* provider is called only when setError is set to false
*/
setError(false);
if (resourceNodeList == null... |
diff --git a/IBMS/src/ibms/Interface.java b/IBMS/src/ibms/Interface.java
index 49047be..4e18f77 100644
--- a/IBMS/src/ibms/Interface.java
+++ b/IBMS/src/ibms/Interface.java
@@ -1,180 +1,180 @@
package ibms;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.util.logging.Level;
import java... | false | true | private void initComponents() {
jFrame1 = new javax.swing.JFrame();
generate = new javax.swing.JButton();
requestholiday = new javax.swing.JButton();
view = new javax.swing.JButton();
edit = new javax.swing.JButton();
greeting = new javax.swing.JLabel();
driv... | private void initComponents() {
jFrame1 = new javax.swing.JFrame();
generate = new javax.swing.JButton();
requestholiday = new javax.swing.JButton();
view = new javax.swing.JButton();
edit = new javax.swing.JButton();
greeting = new javax.swing.JLabel();
driv... |
diff --git a/src/com/gitblit/wicket/pages/EmptyRepositoryPage.java b/src/com/gitblit/wicket/pages/EmptyRepositoryPage.java
index ad74af8c..be0dad9e 100644
--- a/src/com/gitblit/wicket/pages/EmptyRepositoryPage.java
+++ b/src/com/gitblit/wicket/pages/EmptyRepositoryPage.java
@@ -1,64 +1,67 @@
/*
* Copyright 2011 gitb... | true | true | public EmptyRepositoryPage(PageParameters params) {
super(params);
setVersioned(false);
String repositoryName = WicketUtils.getRepositoryName(params);
RepositoryModel repository = GitBlit.self().getRepositoryModel(repositoryName);
if (repository.hasCommits) {
// redirect to the summary page if this r... | public EmptyRepositoryPage(PageParameters params) {
super(params);
setVersioned(false);
String repositoryName = WicketUtils.getRepositoryName(params);
RepositoryModel repository = GitBlit.self().getRepositoryModel(repositoryName);
if (repository == null) {
error(getString("gb.canNotLoadRepository") + " ... |
diff --git a/courses/app/controllers/Authentication.java b/courses/app/controllers/Authentication.java
index 0207593..d07b9b4 100644
--- a/courses/app/controllers/Authentication.java
+++ b/courses/app/controllers/Authentication.java
@@ -1,71 +1,72 @@
package controllers;
import play.*;
import play.mvc.*;
import p... | true | true | public static Result authenticate() {
Form<Login> loginForm = form(Login.class);
loginForm = loginForm.bindFromRequest();
if (loginForm.hasErrors())
{
return badRequest(login.render(loginForm));
}
else
{
sess... | public static Result authenticate() {
Form<Login> loginForm = form(Login.class);
loginForm = loginForm.bindFromRequest();
if (loginForm.hasErrors())
{
return badRequest(login.render(loginForm));
}
else
{
sess... |
diff --git a/seqware-queryengine-backend/src/main/java/com/github/seqware/queryengine/plugins/runners/hbasemr/MRHBasePluginRunner.java b/seqware-queryengine-backend/src/main/java/com/github/seqware/queryengine/plugins/runners/hbasemr/MRHBasePluginRunner.java
index 83f3beac..04365a64 100644
--- a/seqware-queryengine-bac... | true | true | public MRHBasePluginRunner(MapReducePlugin mapReducePlugin, Reference reference, List<FeatureSet> inputSet, Object... parameters) {
// handle null inputSet
if (inputSet == null){
inputSet = new ArrayList<FeatureSet>();
}
// we should either have a reference or more than o... | public MRHBasePluginRunner(MapReducePlugin mapReducePlugin, Reference reference, List<FeatureSet> inputSet, Object... parameters) {
// handle null inputSet
if (inputSet == null){
inputSet = new ArrayList<FeatureSet>();
}
// we should either have a reference or more than o... |
diff --git a/src/main/java/com/p6spy/engine/leak/P6LeakConnectionInvocationHandler.java b/src/main/java/com/p6spy/engine/leak/P6LeakConnectionInvocationHandler.java
index 291957d5e..be86ae6d2 100644
--- a/src/main/java/com/p6spy/engine/leak/P6LeakConnectionInvocationHandler.java
+++ b/src/main/java/com/p6spy/engine/lea... | true | true | public P6LeakConnectionInvocationHandler(Connection underlying) {
super(underlying);
ConnectionInformation connectionInformation = new ConnectionInformation();
P6Objects.open(connectionInformation);
P6LeakConnectionCloseDelegate closeDelegate = new P6LeakConnectionCloseDelegate(connectionInformation)... | public P6LeakConnectionInvocationHandler(Connection underlying) {
super(underlying);
ConnectionInformation connectionInformation = new ConnectionInformation();
P6Objects.open(connectionInformation);
P6LeakConnectionCloseDelegate closeDelegate = new P6LeakConnectionCloseDelegate(connectionInformation)... |
diff --git a/java/src/phoenix/compile/ScanKey.java b/java/src/phoenix/compile/ScanKey.java
index e3cb5f7a..07b1eade 100644
--- a/java/src/phoenix/compile/ScanKey.java
+++ b/java/src/phoenix/compile/ScanKey.java
@@ -1,131 +1,129 @@
/*******************************************************************************
* Cop... | true | true | public void setScanStartStopKey(Scan scan) {
if (lowerRange.length > 0) {
byte[] startKey = lowerRange;
if (!lowerInclusive) {
// Adjust start key since hbase is always inclusive for start key
startKey = ByteUtil.nextKey(startKey);
}
... | public void setScanStartStopKey(Scan scan) {
if (lowerRange.length > 0) {
byte[] startKey = lowerRange;
if (!lowerInclusive) {
// Adjust start key since hbase is always inclusive for start key
startKey = ByteUtil.nextKey(startKey);
}
... |
diff --git a/src/main/java/de/philworld/bukkit/magicsigns/signs/HealSign.java b/src/main/java/de/philworld/bukkit/magicsigns/signs/HealSign.java
index a3ee0ff..bda1313 100755
--- a/src/main/java/de/philworld/bukkit/magicsigns/signs/HealSign.java
+++ b/src/main/java/de/philworld/bukkit/magicsigns/signs/HealSign.java
@@ ... | true | true | public void onRightClick(PlayerInteractEvent event) {
Player p = event.getPlayer();
int newHealth = p.getHealth() + healAmount;
if (newHealth > p.getMaxHealth()) {
event.getPlayer().setHealth(p.getMaxHealth());
} else {
p.setHealth(newHealth);
}
MSMsg.HEAL_SUCCESS.send(p);
}
| public void onRightClick(PlayerInteractEvent event) {
Player p = event.getPlayer();
double newHealth = p.getHealth() + healAmount;
if (newHealth > p.getMaxHealth()) {
event.getPlayer().setHealth(p.getMaxHealth());
} else {
p.setHealth(newHealth);
}
MSMsg.HEAL_SUCCESS.send(p);
}
|
diff --git a/common/src/main/java/org/jboss/capedwarf/common/threads/DirectFuture.java b/common/src/main/java/org/jboss/capedwarf/common/threads/DirectFuture.java
index 6c754290..a6b65f4b 100644
--- a/common/src/main/java/org/jboss/capedwarf/common/threads/DirectFuture.java
+++ b/common/src/main/java/org/jboss/capedwar... | false | true | public T get() throws InterruptedException, ExecutionException {
lock.readLock().lock();
try {
if (canceled)
throw new CancellationException("Already canceled: " + callable);
} finally {
lock.readLock().unlock();
}
lock.writeLock().loc... | public T get() throws InterruptedException, ExecutionException {
lock.writeLock().lock();
try {
if (canceled)
throw new CancellationException("Already canceled: " + callable);
if (result == null) {
result = callable.call();
}
... |
diff --git a/src/eu/alefzero/owncloud/ui/fragment/ConfirmationDialogFragment.java b/src/eu/alefzero/owncloud/ui/fragment/ConfirmationDialogFragment.java
index d977474..e2769b1 100644
--- a/src/eu/alefzero/owncloud/ui/fragment/ConfirmationDialogFragment.java
+++ b/src/eu/alefzero/owncloud/ui/fragment/ConfirmationDialogF... | true | true | public Dialog onCreateDialog(Bundle savedInstanceState) {
String confirmationTarget = getArguments().getString(ARG_CONF_TARGET);
if (confirmationTarget == null)
confirmationTarget = "";
return new AlertDialog.Builder(getActivity())
.setIcon(android.R.drawable.ic_... | public Dialog onCreateDialog(Bundle savedInstanceState) {
String confirmationTarget = getArguments().getString(ARG_CONF_TARGET);
if (confirmationTarget == null)
confirmationTarget = "";
return new AlertDialog.Builder(getActivity())
.setIcon(android.R.drawable.ic_... |
diff --git a/src/com/jmeyer/bukkit/jlevel/DatabaseManager.java b/src/com/jmeyer/bukkit/jlevel/DatabaseManager.java
index 5b18dc2..0866d4c 100644
--- a/src/com/jmeyer/bukkit/jlevel/DatabaseManager.java
+++ b/src/com/jmeyer/bukkit/jlevel/DatabaseManager.java
@@ -1,622 +1,622 @@
package com.jmeyer.bukkit.jlevel;
impor... | true | true | public static void createSkillDatabaseIfNotExists(String skill) { // , String[] itemRules, String[] expRules, String[] expTable) {
Connection conn = null;
Statement st = null;
try {
Class.forName("org.sqlite.JDBC");
conn = DriverManager.getConnection(skillDatabasePath(skill));
st = conn.createStatement(... | public static void createSkillDatabaseIfNotExists(String skill) { // , String[] itemRules, String[] expRules, String[] expTable) {
Connection conn = null;
Statement st = null;
try {
Class.forName("org.sqlite.JDBC");
conn = DriverManager.getConnection(skillDatabasePath(skill));
st = conn.createStatement(... |
diff --git a/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.persistence/src/org/wso2/developerstudio/eclipse/gmf/esb/internal/persistence/FaultMediatorTransformer.java b/ide/eclipse/esb/org.wso2.developerstudio.eclipse.gmf.esb.persistence/src/org/wso2/developerstudio/eclipse/gmf/esb/internal/persistence/Fault... | false | true | private org.apache.synapse.mediators.transform.FaultMediator createFaultMediator(EsbNode subject) throws Exception{
// Check subject.
Assert.isTrue(subject instanceof FaultMediator, "Invalid subject.");
FaultMediator visualFault = (FaultMediator) subject;
// Configure fault mediator.
org.apache.synapse.medi... | private org.apache.synapse.mediators.transform.FaultMediator createFaultMediator(EsbNode subject) throws Exception{
// Check subject.
Assert.isTrue(subject instanceof FaultMediator, "Invalid subject.");
FaultMediator visualFault = (FaultMediator) subject;
// Configure fault mediator.
org.apache.synapse.medi... |
diff --git a/src/main/java/org/elasticsearch/bootstrap/Bootstrap.java b/src/main/java/org/elasticsearch/bootstrap/Bootstrap.java
index 8d8a7d7f21d..28aa9383a07 100644
--- a/src/main/java/org/elasticsearch/bootstrap/Bootstrap.java
+++ b/src/main/java/org/elasticsearch/bootstrap/Bootstrap.java
@@ -1,279 +1,279 @@
/*
*... | false | true | public static void main(String[] args) {
System.setProperty("es.logger.prefix", "");
bootstrap = new Bootstrap();
final String pidFile = System.getProperty("es.pidfile", System.getProperty("es-pidfile"));
if (pidFile != null) {
try {
File fPidFile = new F... | public static void main(String[] args) {
System.setProperty("es.logger.prefix", "");
bootstrap = new Bootstrap();
final String pidFile = System.getProperty("es.pidfile", System.getProperty("es-pidfile"));
if (pidFile != null) {
try {
File fPidFile = new F... |
diff --git a/src/main/java/com/macrohuang/fileq/impl/AbstractFileQueueImpl.java b/src/main/java/com/macrohuang/fileq/impl/AbstractFileQueueImpl.java
index 77aafbe..69857dd 100755
--- a/src/main/java/com/macrohuang/fileq/impl/AbstractFileQueueImpl.java
+++ b/src/main/java/com/macrohuang/fileq/impl/AbstractFileQueueImpl.... | true | true | private void init() {
try {
if (config.isInit()) {
File basePath = new File(config.getBasePath());
delete(basePath);
}
boolean isNew = FileUtil.isMetaExists(config);
metaAccessFile = new RandomAccessFile(FileUtil.getMetaFile(config), "rw");
metaChannel = metaAccessFile.getChannel();
queueMe... | private void init() {
try {
if (config.isInit()) {
File basePath = new File(config.getBasePath());
delete(basePath);
}
boolean isNew = FileUtil.isMetaExists(config);
metaAccessFile = new RandomAccessFile(FileUtil.getMetaFile(config), "rw");
metaChannel = metaAccessFile.getChannel();
queueMe... |
diff --git a/src/prettify/lang/LangVb.java b/src/prettify/lang/LangVb.java
index 99c96ed..4e42df5 100644
--- a/src/prettify/lang/LangVb.java
+++ b/src/prettify/lang/LangVb.java
@@ -1,76 +1,76 @@
// Copyright (C) 2009 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not us... | true | true | public LangVb() {
List<List<Object>> _shortcutStylePatterns = new ArrayList<List<Object>>();
List<List<Object>> _fallthroughStylePatterns = new ArrayList<List<Object>>();
// Whitespace
_shortcutStylePatterns.add(Arrays.asList(new Object[]{Prettify.PR_PLAIN, Pattern.compile("^[\\t\\n\\r \\xA0\\u2028\\... | public LangVb() {
List<List<Object>> _shortcutStylePatterns = new ArrayList<List<Object>>();
List<List<Object>> _fallthroughStylePatterns = new ArrayList<List<Object>>();
// Whitespace
_shortcutStylePatterns.add(Arrays.asList(new Object[]{Prettify.PR_PLAIN, Pattern.compile("^[\\t\\n\\r \\xA0\\u2028\\... |
diff --git a/src/main/java/com/salesforce/phoenix/compile/QueryCompiler.java b/src/main/java/com/salesforce/phoenix/compile/QueryCompiler.java
index 341b195b..de187a8c 100644
--- a/src/main/java/com/salesforce/phoenix/compile/QueryCompiler.java
+++ b/src/main/java/com/salesforce/phoenix/compile/QueryCompiler.java
@@ -1... | true | true | protected QueryPlan compileJoinQuery(StatementContext context, SelectStatement statement, List<Object> binds, JoinSpec join, boolean asSubquery) throws SQLException {
byte[] emptyByteArray = new byte[0];
List<JoinTable> joinTables = join.getJoinTables();
if (joinTables.isEmpty()) {
... | protected QueryPlan compileJoinQuery(StatementContext context, SelectStatement statement, List<Object> binds, JoinSpec join, boolean asSubquery) throws SQLException {
byte[] emptyByteArray = new byte[0];
List<JoinTable> joinTables = join.getJoinTables();
if (joinTables.isEmpty()) {
... |
diff --git a/phase6/Sim.java b/phase6/Sim.java
index 6000cfa..5ff04ed 100644
--- a/phase6/Sim.java
+++ b/phase6/Sim.java
@@ -1,37 +1,35 @@
// Interesting parameters to play with: txSpeed and rxSpeed, retransmission
// timeout, window sizes, AIMD increase and decrease (Peer.java), queue sizes
// (NetworkInterface.jav... | true | true | public static void main (String[] args)
{
double txSpeed = 20000, rxSpeed = 20000; // Bytes per second
// rxSpeed = Math.exp (rand.nextGaussian() + 11.74);
// txSpeed = rxSpeed / 5.0;
Network.reorder = true;
Network.lossRate = 0.001;
Node n0 = new Node (txSpeed, rxSpeed);
Node n1 = new Node (txS... | public static void main (String[] args)
{
double txSpeed = 20000, rxSpeed = 20000; // Bytes per second
// rxSpeed = Math.exp (rand.nextGaussian() + 11.74);
// txSpeed = rxSpeed / 5.0;
Network.reorder = true;
Network.lossRate = 0.001;
Node n0 = new Node (txSpeed, rxSpeed);
Node n1 = new Node (txS... |
diff --git a/src/com/amd/myhomework/MainActivity.java b/src/com/amd/myhomework/MainActivity.java
index 0c9ca31..325d43c 100644
--- a/src/com/amd/myhomework/MainActivity.java
+++ b/src/com/amd/myhomework/MainActivity.java
@@ -1,55 +1,55 @@
package com.amd.myhomework;
import android.app.Activity;
import android.cont... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.six_icon_screen);
calendarButton = (ImageButton) findViewById(R.id.calendarButton);
calendarButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
sw... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.six_icon_screen);
calendarButton = (ImageButton) findViewById(R.id.calendarButton);
calendarButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
switc... |
diff --git a/src/main/java/me/botsko/dhmcdeath/DeathConfig.java b/src/main/java/me/botsko/dhmcdeath/DeathConfig.java
index 7a21f16..1b3c1fc 100644
--- a/src/main/java/me/botsko/dhmcdeath/DeathConfig.java
+++ b/src/main/java/me/botsko/dhmcdeath/DeathConfig.java
@@ -1,192 +1,192 @@
package me.botsko.dhmcdeath;
import... | true | true | public static FileConfiguration init( DhmcDeath plugin ){
FileConfiguration config = plugin.getConfig();
// other configs
config.addDefault("debug", false );
// Base config
config.addDefault("messages.allow_cross_world", false );
config.addDefault("messages.hear_distance", 50 );
config.addDefaul... | public static FileConfiguration init( DhmcDeath plugin ){
FileConfiguration config = plugin.getConfig();
// other configs
config.addDefault("debug", false );
// Base config
config.addDefault("messages.allow_cross_world", false );
config.addDefault("messages.hear_distance", 50 );
config.addDefaul... |
diff --git a/luaj-vm/src/core/org/luaj/vm/LuaState.java b/luaj-vm/src/core/org/luaj/vm/LuaState.java
index ada47d6..0e517c0 100644
--- a/luaj-vm/src/core/org/luaj/vm/LuaState.java
+++ b/luaj-vm/src/core/org/luaj/vm/LuaState.java
@@ -1,2640 +1,2640 @@
/*******************************************************************... | false | true | public void exec() {
if ( cc < 0 )
return;
int i, a, b, c, o, n, cb;
LValue rkb, rkc, nvarargs, key, val;
LValue i0, step, idx, limit, init, table;
boolean back, body;
LPrototype proto;
LClosure newClosure;
// reload values from the curre... | public void exec() {
if ( cc < 0 )
return;
int i, a, b, c, o, n, cb;
LValue rkb, rkc, nvarargs, key, val;
LValue i0, step, idx, limit, init, table;
boolean back, body;
LPrototype proto;
LClosure newClosure;
// reload values from the curre... |
diff --git a/src/main/java/com/admob/rocksteady/reactor/Mongodb.java b/src/main/java/com/admob/rocksteady/reactor/Mongodb.java
index 7380f2c..45cd3c7 100644
--- a/src/main/java/com/admob/rocksteady/reactor/Mongodb.java
+++ b/src/main/java/com/admob/rocksteady/reactor/Mongodb.java
@@ -1,136 +1,136 @@
/**
**/
package... | true | true | public void update(EventBean[] newEvents, EventBean[] oldEvents) {
if (newEvents == null) {
return;
}
for (EventBean newEvent : newEvents) {
try {
String retention;
String app;
String name;
String colo;
String value;
String hostname;
String cluster;
String timestamp;
retention = newE... | public void update(EventBean[] newEvents, EventBean[] oldEvents) {
if (newEvents == null) {
return;
}
for (EventBean newEvent : newEvents) {
try {
String retention;
String app;
String name;
String colo;
String value;
String hostname;
String cluster;
String timestamp;
retention = newE... |
diff --git a/Prog-Aufgabe1/src/de/proglabor/aufgabe2/Helper.java b/Prog-Aufgabe1/src/de/proglabor/aufgabe2/Helper.java
index 7288838..dc4d981 100644
--- a/Prog-Aufgabe1/src/de/proglabor/aufgabe2/Helper.java
+++ b/Prog-Aufgabe1/src/de/proglabor/aufgabe2/Helper.java
@@ -1,68 +1,68 @@
package de.proglabor.aufgabe2;
im... | true | true | public static int mirror(int position, int length) {
if (position < 0) {
// Wenn links der Rand erreicht ist, springe nach ganz rechts
int tmp = length + position;
return tmp;
} else if (position >= length) {
// Wenn rechts der Rand erreicht ist, springe nach ganz links
int tmp = position - length... | public static int mirror(int position, int length) {
if (position < 0) {
// Wenn links der Rand erreicht ist, springe nach ganz rechts
int tmp = length + position;
return tmp;
} else if (position > length) {
// Wenn rechts der Rand erreicht ist, springe nach ganz links
int tmp = position - length;... |
diff --git a/src/main/java/ch/ralscha/extdirectspring/bean/ExtDirectStoreReadRequest.java b/src/main/java/ch/ralscha/extdirectspring/bean/ExtDirectStoreReadRequest.java
index 64665e16..9159089a 100644
--- a/src/main/java/ch/ralscha/extdirectspring/bean/ExtDirectStoreReadRequest.java
+++ b/src/main/java/ch/ralscha/extdi... | true | true | public List<Filter> getAllFiltersForField(String field) {
List<Filter> foundFilters = new ArrayList<Filter>();
for (Filter filter : foundFilters) {
if (filter.getField().equals(field)) {
foundFilters.add(filter);
}
}
return Collections.unmodifiableList(foundFilters);
}
| public List<Filter> getAllFiltersForField(String field) {
List<Filter> foundFilters = new ArrayList<Filter>();
for (Filter filter : filters) {
if (filter.getField().equals(field)) {
foundFilters.add(filter);
}
}
return Collections.unmodifiableList(foundFilters);
}
|
diff --git a/src/org/biojavax/bio/seq/io/EMBLFormat.java b/src/org/biojavax/bio/seq/io/EMBLFormat.java
index 7b050d3f4..86a18fb34 100644
--- a/src/org/biojavax/bio/seq/io/EMBLFormat.java
+++ b/src/org/biojavax/bio/seq/io/EMBLFormat.java
@@ -1,1130 +1,1130 @@
/*
* BioJava development code
*
* T... | true | true | public boolean readRichSequence(BufferedReader reader,
SymbolTokenization symParser,
RichSeqIOListener rlistener,
Namespace ns)
throws IllegalSymbolException, IOException, ParseException {
tax = null;
organism = null;
accession = null;
... | public boolean readRichSequence(BufferedReader reader,
SymbolTokenization symParser,
RichSeqIOListener rlistener,
Namespace ns)
throws IllegalSymbolException, IOException, ParseException {
tax = null;
organism = null;
accession = null;
... |
diff --git a/src/de/uni_koblenz/jgralab/utilities/tg2dot/greql2/funlib/OmegaIncidenceNumber.java b/src/de/uni_koblenz/jgralab/utilities/tg2dot/greql2/funlib/OmegaIncidenceNumber.java
index 0a1908058..7ad3d02f6 100644
--- a/src/de/uni_koblenz/jgralab/utilities/tg2dot/greql2/funlib/OmegaIncidenceNumber.java
+++ b/src/de/... | true | true | public Integer evaluate(Edge edge) {
int num = 1;
for (Edge incidence : edge.getOmega().incidences()) {
if (incidence.getNormalEdge() == edge) {
return num;
}
num++;
}
return null;
}
| public Integer evaluate(Edge edge) {
int num = 1;
for (Edge incidence : edge.getOmega().incidences()) {
if (incidence.getReversedEdge() == edge) {
return num;
}
num++;
}
return null;
}
|
diff --git a/framework/src/org/apache/cordova/FileUtils.java b/framework/src/org/apache/cordova/FileUtils.java
index 47bafee3..b397f046 100755
--- a/framework/src/org/apache/cordova/FileUtils.java
+++ b/framework/src/org/apache/cordova/FileUtils.java
@@ -1,1024 +1,1015 @@
/*
Licensed to the Apache Software Fou... | false | true | public PluginResult execute(String action, JSONArray args, String callbackId) {
PluginResult.Status status = PluginResult.Status.OK;
String result = "";
//System.out.println("FileUtils.execute("+action+")");
try {
try {
if (action.equals("testSaveLocation... | public PluginResult execute(String action, JSONArray args, String callbackId) {
PluginResult.Status status = PluginResult.Status.OK;
String result = "";
//System.out.println("FileUtils.execute("+action+")");
try {
try {
if (action.equals("testSaveLocation... |
diff --git a/Base/src/cat/atridas/antagonista/Conventions.java b/Base/src/cat/atridas/antagonista/Conventions.java
index c6abc44..90d72b7 100644
--- a/Base/src/cat/atridas/antagonista/Conventions.java
+++ b/Base/src/cat/atridas/antagonista/Conventions.java
@@ -1,215 +1,216 @@
package cat.atridas.antagonista;
import... | true | true | public static void quaternionToEulerAngles(Quat4f _quaternion, Tuple3f euler_) {
double q0 = _quaternion.w;
double q1 = _quaternion.x;
double q2 = _quaternion.y;
double q3 = _quaternion.z;
double q03 = q0 * q3;
double q12 = q1 * q2;
double q33 = q3 * q3;
double q22 = q2 * q2;
... | public static void quaternionToEulerAngles(Quat4f _quaternion, Tuple3f euler_) {
double q0 = _quaternion.w;
double q1 = _quaternion.x;
double q2 = _quaternion.y;
double q3 = _quaternion.z;
double q03 = q0 * q3;
double q12 = q1 * q2;
double q33 = q3 * q3;
double q22 = q2 * q2;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.