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/srcj/com/sun/electric/tool/routing/InteractiveRouter.java b/srcj/com/sun/electric/tool/routing/InteractiveRouter.java
index f8f4c4be8..1a4eb5160 100644
--- a/srcj/com/sun/electric/tool/routing/InteractiveRouter.java
+++ b/srcj/com/sun/electric/tool/routing/InteractiveRouter.java
@@ -1,790 +1,791 @@
/* -*-... | true | true | protected Route planRoute(Cell cell, ElectricObject startObj, ElectricObject endObj, Point2D clicked) {
Route route = new Route(); // hold the route
if (cell == null) return route;
RouteElementPort startRE = null; // denote start of route
RouteElementPo... | protected Route planRoute(Cell cell, ElectricObject startObj, ElectricObject endObj, Point2D clicked) {
Route route = new Route(); // hold the route
if (cell == null) return route;
RouteElementPort startRE = null; // denote start of route
RouteElementPo... |
diff --git a/core/src/main/java/hudson/model/AbstractProject.java b/core/src/main/java/hudson/model/AbstractProject.java
index 8d4ec59c8..d2bc5bdea 100644
--- a/core/src/main/java/hudson/model/AbstractProject.java
+++ b/core/src/main/java/hudson/model/AbstractProject.java
@@ -1,1594 +1,1596 @@
/*
* The MIT License
... | true | true | public void doConfigSubmit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, FormException {
super.doConfigSubmit(req,rsp);
Set<AbstractProject> upstream = Collections.emptySet();
if(req.getParameter("pseudoUpstreamTrigger")!=null) {
upstream = new... | public void doConfigSubmit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException, FormException {
super.doConfigSubmit(req,rsp);
Set<AbstractProject> upstream = Collections.emptySet();
if(req.getParameter("pseudoUpstreamTrigger")!=null) {
upstream = new... |
diff --git a/graph/src/main/java/edu/jhuapl/graphs/controller/GraphController.java b/graph/src/main/java/edu/jhuapl/graphs/controller/GraphController.java
old mode 100644
new mode 100755
index 4f5a012..c93905e
--- a/graph/src/main/java/edu/jhuapl/graphs/controller/GraphController.java
+++ b/graph/src/main/java/edu/jhua... | true | true | private double setDataSeries(GraphDataInterface graphData, String displayKey, boolean useNoDataColor,
List<DataSeries> dataSeries, LegendItemCollection legendItems, boolean useItemColor,
boolean graphExpected) {
double[][] counts = graphData.... | private double setDataSeries(GraphDataInterface graphData, String displayKey, boolean useNoDataColor,
List<DataSeries> dataSeries, LegendItemCollection legendItems, boolean useItemColor,
boolean graphExpected) {
double[][] counts = graphData.... |
diff --git a/tests/tests/widget/src/android/widget/cts/ListViewTest.java b/tests/tests/widget/src/android/widget/cts/ListViewTest.java
index f21b721a..f283681e 100644
--- a/tests/tests/widget/src/android/widget/cts/ListViewTest.java
+++ b/tests/tests/widget/src/android/widget/cts/ListViewTest.java
@@ -1,1071 +1,1070 @@... | false | true | public void testAccessItemChecked() {
// NONE mode
mListView.setChoiceMode(ListView.CHOICE_MODE_NONE);
assertEquals(ListView.CHOICE_MODE_NONE, mListView.getChoiceMode());
mListView.setItemChecked(1, true);
assertEquals(ListView.INVALID_POSITION, mListView.getCheckedItemPosit... | public void testAccessItemChecked() {
// NONE mode
mListView.setChoiceMode(ListView.CHOICE_MODE_NONE);
assertEquals(ListView.CHOICE_MODE_NONE, mListView.getChoiceMode());
mListView.setItemChecked(1, true);
assertEquals(ListView.INVALID_POSITION, mListView.getCheckedItemPosit... |
diff --git a/luni/src/main/java/java/lang/ref/FinalizerReference.java b/luni/src/main/java/java/lang/ref/FinalizerReference.java
index a3f90248d..2d5cef20b 100644
--- a/luni/src/main/java/java/lang/ref/FinalizerReference.java
+++ b/luni/src/main/java/java/lang/ref/FinalizerReference.java
@@ -1,76 +1,76 @@
/*
* Copyr... | true | true | public static void remove(FinalizerReference reference) {
synchronized (FinalizerReference.class) {
FinalizerReference next = reference.next;
FinalizerReference prev = reference.prev;
reference.next = null;
reference.prev = null;
if (prev != null) ... | public static void remove(FinalizerReference reference) {
synchronized (FinalizerReference.class) {
FinalizerReference next = reference.next;
FinalizerReference prev = reference.prev;
reference.next = null;
reference.prev = null;
if (prev != null) ... |
diff --git a/src/com/android/mms/ui/MessageListItem.java b/src/com/android/mms/ui/MessageListItem.java
index 6dd56cd8..9b99735d 100644
--- a/src/com/android/mms/ui/MessageListItem.java
+++ b/src/com/android/mms/ui/MessageListItem.java
@@ -1,1052 +1,1055 @@
/*
* Copyright (C) 2008 Esmertec AG.
* Copyright (C) 2008 ... | false | true | private void bindCommonMessage(final boolean sameItem) {
if (mDownloadButton != null) {
mDownloadButton.setVisibility(View.GONE);
mDownloadingLabel.setVisibility(View.GONE);
}
// Since the message text should be concatenated with the sender's
// address(or nam... | private void bindCommonMessage(final boolean sameItem) {
if (mDownloadButton != null) {
mDownloadButton.setVisibility(View.GONE);
mDownloadingLabel.setVisibility(View.GONE);
}
// Since the message text should be concatenated with the sender's
// address(or nam... |
diff --git a/Donor-Connect-App/src/test/java/controller/ProjectControllerTest.java b/Donor-Connect-App/src/test/java/controller/ProjectControllerTest.java
index 7707ff7..a734e47 100644
--- a/Donor-Connect-App/src/test/java/controller/ProjectControllerTest.java
+++ b/Donor-Connect-App/src/test/java/controller/ProjectCon... | true | true | public void setUp() {
request = new MockHttpServletRequest();
response = new MockHttpServletResponse();
adapter = new AnnotationMethodHandlerAdapter();
dummyProject = new Project("name", "description", "image/path");
request.setRequestURI("/project_detail");
request.... | public void setUp() {
request = new MockHttpServletRequest();
response = new MockHttpServletResponse();
adapter = new AnnotationMethodHandlerAdapter();
dummyProject = new Project("name", "description", "image/path");
request.setRequestURI("/project_detail.ftl");
requ... |
diff --git a/src/com/isaacjg/darklight/issues/PathIssue.java b/src/com/isaacjg/darklight/issues/PathIssue.java
index 5279e58..88333a1 100644
--- a/src/com/isaacjg/darklight/issues/PathIssue.java
+++ b/src/com/isaacjg/darklight/issues/PathIssue.java
@@ -1,69 +1,69 @@
package com.isaacjg.darklight.issues;
import java... | true | true | public boolean isFixed() {
try {
Process p = Runtime.getRuntime().exec("cmd.exe \\c echo %PATH%");
BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
String path = "";
String line = "";
while ((line = br.readLine()) != null) {
path += line;
}
br.close();
fo... | public boolean isFixed() {
try {
Process p = Runtime.getRuntime().exec("cmd.exe /c echo %PATH%");
BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
String path = "";
String line = "";
while ((line = br.readLine()) != null) {
path += line;
}
br.close();
for... |
diff --git a/src/main/java/ch/uzh/ddis/katts/bolts/aggregate/PartitionerBolt.java b/src/main/java/ch/uzh/ddis/katts/bolts/aggregate/PartitionerBolt.java
index 23761aa..1db23c4 100644
--- a/src/main/java/ch/uzh/ddis/katts/bolts/aggregate/PartitionerBolt.java
+++ b/src/main/java/ch/uzh/ddis/katts/bolts/aggregate/Partitio... | true | true | protected void emitAggregates(Event event, Object partitionFieldValue, List<Map<String, Object>> buckets) {
// When no data is aggregate, then do not emit anything
if (buckets == null) {
return;
}
long bucketNumber = this.getBucketGlobalIndex(event);
// Try to get the last event:
Event eventToJoinWit... | protected void emitAggregates(Event event, Object partitionFieldValue, List<Map<String, Object>> buckets) {
// When no data is aggregate, then do not emit anything
if (buckets == null) {
return;
}
long bucketNumber = this.getBucketGlobalIndex(event);
// Try to get the last event:
Event eventToJoinWit... |
diff --git a/src/edu/jas/ring/PseudoReductionSeq.java b/src/edu/jas/ring/PseudoReductionSeq.java
index 12c51a32..c2314cb1 100644
--- a/src/edu/jas/ring/PseudoReductionSeq.java
+++ b/src/edu/jas/ring/PseudoReductionSeq.java
@@ -1,243 +1,247 @@
/*
* $Id$
*/
package edu.jas.ring;
import java.util.List;
import ... | false | true | public GenPolynomial<C> normalform(List<GenPolynomial<C>> Pp,
GenPolynomial<C> Ap) {
if ( Pp == null || Pp.isEmpty() ) {
return Ap;
}
if ( Ap == null || Ap.isZERO() ) {
return Ap;
}
Map.Entry<ExpVector,C> m;
... | public GenPolynomial<C> normalform(List<GenPolynomial<C>> Pp,
GenPolynomial<C> Ap) {
if ( Pp == null || Pp.isEmpty() ) {
return Ap;
}
if ( Ap == null || Ap.isZERO() ) {
return Ap;
}
Map.Entry<ExpVector,C> m;
... |
diff --git a/srcj/com/sun/electric/tool/user/ui/SizeListener.java b/srcj/com/sun/electric/tool/user/ui/SizeListener.java
index da3887e23..e1218501b 100755
--- a/srcj/com/sun/electric/tool/user/ui/SizeListener.java
+++ b/srcj/com/sun/electric/tool/user/ui/SizeListener.java
@@ -1,704 +1,697 @@
/* -*- tab-width: 4 -*-
... | false | true | private Point2D getNewNodeSize(MouseEvent evt, Point2D newCenter)
{
// get the coordinates of the cursor in database coordinates
EditWindow wnd = (EditWindow)evt.getSource();
int oldx = evt.getX();
int oldy = evt.getY();
Point2D pt = wnd.screenToDatabase(oldx, oldy);
// get information about the node bei... | private Point2D getNewNodeSize(MouseEvent evt, Point2D newCenter)
{
// get the coordinates of the cursor in database coordinates
EditWindow wnd = (EditWindow)evt.getSource();
int oldx = evt.getX();
int oldy = evt.getY();
Point2D pt = wnd.screenToDatabase(oldx, oldy);
// get information about the node bei... |
diff --git a/src/test/java/net/chat/util/HttpClientTest.java b/src/test/java/net/chat/util/HttpClientTest.java
index 3164450..d4a2183 100644
--- a/src/test/java/net/chat/util/HttpClientTest.java
+++ b/src/test/java/net/chat/util/HttpClientTest.java
@@ -1,91 +1,91 @@
package net.chat.util;
import java.io.IOException... | false | true | public static void main(String[] args) throws IOException, ParseException {
// yyyy_mm_dd
String s = "2013_09_20";
SimpleDateFormat sf = new SimpleDateFormat("yyyy_MM_dd");
Date d = sf.parse(s);
System.out.println(d);
// String content = "<xml>";
// content = content + " <ToUserName><![CDATA[toUser]]></T... | public static void main(String[] args) throws IOException, ParseException {
// yyyy_mm_dd
String s = "2013_09_20";
SimpleDateFormat sf = new SimpleDateFormat("yyyy_MM_dd");
Date d = sf.parse(s);
System.out.println(d);
// String content = "<xml>";
// content = content + " <ToUserName><![CDATA[toUser]]></T... |
diff --git a/java/src/org/vinodkd/jnv/JNVBase.java b/java/src/org/vinodkd/jnv/JNVBase.java
index 882f781..3d023b2 100644
--- a/java/src/org/vinodkd/jnv/JNVBase.java
+++ b/java/src/org/vinodkd/jnv/JNVBase.java
@@ -1,219 +1,221 @@
package org.vinodkd.jnv;
import javax.swing.*;
import javax.swing.event.*;
import jav... | false | true | public void addBehaviors(HashMap<String,Component> ui, final Models models){
final JTextField noteName = (JTextField)ui.get("noteName");
final JTable foundNotes = (JTable)ui.get("foundNotes");
final JTextArea noteContent = (JTextArea)ui.get("noteContent");
final JFrame window = (JFrame)ui.get("window");
fin... | public void addBehaviors(HashMap<String,Component> ui, final Models models){
final JTextField noteName = (JTextField)ui.get("noteName");
final JTable foundNotes = (JTable)ui.get("foundNotes");
final JTextArea noteContent = (JTextArea)ui.get("noteContent");
final JFrame window = (JFrame)ui.get("window");
fin... |
diff --git a/src/org/exist/backup/Restore.java b/src/org/exist/backup/Restore.java
index 56c8af7..d146cdf 100644
--- a/src/org/exist/backup/Restore.java
+++ b/src/org/exist/backup/Restore.java
@@ -1,471 +1,471 @@
package org.exist.backup;
import org.exist.Namespaces;
import org.exist.dom.DocumentTypeImpl;
import ... | true | true | public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
throws SAXException {
if (namespaceURI.equals(Namespaces.EXIST_NS)) {
if (localName.equals("collection")) {
final String name = atts.getValue("name");
final String owner = atts.getValue("owner");
final Str... | public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
throws SAXException {
if (namespaceURI.equals(Namespaces.EXIST_NS)) {
if (localName.equals("collection")) {
final String name = atts.getValue("name");
final String owner = atts.getValue("owner");
final Str... |
diff --git a/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/util/ResourceUtilGenerator.java b/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/util/ResourceUtilGenerator.java
index 2affe554d..bd5b18ea8 100644
--- a/org.emftext.sdk.codegen.resource/src/or... | false | true | private void addFindUnresolvedProxiesMethod(JavaComposite sc) {
sc.addJavadoc(
"Searches for all unresolved proxy object in the given resource.",
"@param resource",
"@return all proxy object that are not resolvable"
);
sc.add("public static " + LIST + "<" + E_OBJECT + "> findUnresolvedProxies(" + RESOUR... | private void addFindUnresolvedProxiesMethod(JavaComposite sc) {
sc.addJavadoc(
"Searches for all unresolved proxy object in the given resource.",
"@param resource",
"@return all proxy object that are not resolvable"
);
sc.add("public static " + LIST + "<" + E_OBJECT + "> findUnresolvedProxies(" + RESOUR... |
diff --git a/src/main/java/uk/ac/ebi/fgpt/sampletab/utils/SampleTabUtils.java b/src/main/java/uk/ac/ebi/fgpt/sampletab/utils/SampleTabUtils.java
index fb1364a3..3b4fcca6 100644
--- a/src/main/java/uk/ac/ebi/fgpt/sampletab/utils/SampleTabUtils.java
+++ b/src/main/java/uk/ac/ebi/fgpt/sampletab/utils/SampleTabUtils.java
@... | true | true | public static String getPathPrefix(String submissionId){
if (submissionId.startsWith("GMS-")) return "imsr";
else if (submissionId.startsWith("GAE-")) return "ae";
else if (submissionId.startsWith("GRP-")) return "pride";
else if (submissionId.startsWith("GVA-")) return "dgva";
... | public static String getPathPrefix(String submissionId){
if (submissionId.startsWith("GMS-")) return "imsr";
else if (submissionId.startsWith("GAE-")) return "ae";
else if (submissionId.startsWith("GPR-")) return "pride";
else if (submissionId.startsWith("GVA-")) return "dgva";
... |
diff --git a/src/main/java/br/com/caelum/tubaina/parser/latex/ImageTag.java b/src/main/java/br/com/caelum/tubaina/parser/latex/ImageTag.java
index bd1b116..7df9faf 100644
--- a/src/main/java/br/com/caelum/tubaina/parser/latex/ImageTag.java
+++ b/src/main/java/br/com/caelum/tubaina/parser/latex/ImageTag.java
@@ -1,77 +1... | true | true | public String parse(final String path, final String options) {
String output = "\\begin{figure}[H]\n\\begin{center}\n";
output = output + "\\includegraphics";
Pattern label = Pattern.compile("(?s)(?i)label=(\\S+)?");
Matcher labelMatcher = label.matcher(options);
Pattern description = Pattern.compile("(?s... | public String parse(final String path, final String options) {
String output = "\n\n\\begin{figure}[H]\n\\begin{center}\n";
output = output + "\\includegraphics";
Pattern label = Pattern.compile("(?s)(?i)label=(\\S+)?");
Matcher labelMatcher = label.matcher(options);
Pattern description = Pattern.compile(... |
diff --git a/purge-service-impl/src/main/java/de/escidoc/core/purge/internal/PurgeServiceImpl.java b/purge-service-impl/src/main/java/de/escidoc/core/purge/internal/PurgeServiceImpl.java
index 84b32e4a8..ec2cc0b68 100644
--- a/purge-service-impl/src/main/java/de/escidoc/core/purge/internal/PurgeServiceImpl.java
+++ b/p... | false | true | public void purge(final PurgeRequest purgeRequest) {
// TODO: Refector this old code.
try {
try {
boolean isInternalUser = UserContext.isInternalUser();
if (!isInternalUser) {
UserContext.setUserContext("");
... | public void purge(final PurgeRequest purgeRequest) {
// TODO: Refector this old code.
try {
try {
boolean isInternalUser = UserContext.isInternalUser();
if (!isInternalUser) {
UserContext.setUserContext("");
... |
diff --git a/uk.ac.gda.epics/src/gda/device/detector/addetector/triggering/SingleExposurePco.java b/uk.ac.gda.epics/src/gda/device/detector/addetector/triggering/SingleExposurePco.java
index b3eb4be8..20c078e7 100644
--- a/uk.ac.gda.epics/src/gda/device/detector/addetector/triggering/SingleExposurePco.java
+++ b/uk.ac.... | true | true | public void prepareForCollection(double collectionTime, int numImages, ScanInformation scanInfo) throws Exception {
super.prepareForCollection(collectionTime, numImages, scanInfo);
getAdBase().setAcquirePeriod(0.); // for pco always set acq period to 0 to force delay to 0.
if (LiveModeUtil.isLiveMode()) {
adD... | public void prepareForCollection(double collectionTime, int numImages, ScanInformation scanInfo) throws Exception {
super.prepareForCollection(collectionTime, numImages, scanInfo);
getAdBase().setAcquirePeriod(0.); // for pco always set acq period to 0 to force delay to 0.
if (LiveModeUtil.isLiveMode()) {
adD... |
diff --git a/gae/stockyou/StockService/src/com/stockyou/data/QuotesConverter.java b/gae/stockyou/StockService/src/com/stockyou/data/QuotesConverter.java
index 13cd75d..48c1d10 100644
--- a/gae/stockyou/StockService/src/com/stockyou/data/QuotesConverter.java
+++ b/gae/stockyou/StockService/src/com/stockyou/data/QuotesCo... | true | true | public Portfolio convert(YahooPortfolio yPortfolio){
Portfolio portfolio = new Portfolio();
if(yPortfolio != null && yPortfolio.getQuery().getResults().getQuote() != null){
List<Quote> quotes = new ArrayList<Quote>();
for (YahooQuote yQuote : yPortfolio.getQuery().getResults().getQuote()) {
Quote q... | public Portfolio convert(YahooPortfolio yPortfolio){
Portfolio portfolio = new Portfolio();
if(yPortfolio != null && yPortfolio.getQuery().getResults() != null && yPortfolio.getQuery().getResults().getQuote() != null){
List<Quote> quotes = new ArrayList<Quote>();
for (YahooQuote yQuote : yPortfolio.... |
diff --git a/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/JDBCWorkspaceDataContainer.java b/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/jdbc/JDBCWorkspaceDataContainer.java
index 9913355c1..187b942ac 100644
--- a/exo.jcr.component.core/src/main/j... | true | true | public JDBCWorkspaceDataContainer(WorkspaceEntry wsConfig, RepositoryEntry repConfig,
InitialContextInitializer contextInit, ValueStoragePluginProvider valueStorageProvider)
throws RepositoryConfigurationException, NamingException, RepositoryException, IOException
{
checkIntegrity(wsConfig, rep... | public JDBCWorkspaceDataContainer(WorkspaceEntry wsConfig, RepositoryEntry repConfig,
InitialContextInitializer contextInit, ValueStoragePluginProvider valueStorageProvider)
throws RepositoryConfigurationException, NamingException, RepositoryException, IOException
{
checkIntegrity(wsConfig, rep... |
diff --git a/Selenium/com/jyou/selenium/util/SeleniumHelper.java b/Selenium/com/jyou/selenium/util/SeleniumHelper.java
index 86e9774..1a71422 100644
--- a/Selenium/com/jyou/selenium/util/SeleniumHelper.java
+++ b/Selenium/com/jyou/selenium/util/SeleniumHelper.java
@@ -1,49 +1,56 @@
package com.jyou.selenium.util;
i... | true | true | public static WebDriver createDriver(String browse){
WebDriver driver = null;
if(browse.equals("ie") || browse.equals("chrome")){
StringBuffer filePath = new StringBuffer();
filePath.append(System.getProperty("user.dir"));
filePath.append(File.separator);
filePath.append("SeleniumDriver");
filePath.... | public static WebDriver createDriver(String browse){
WebDriver driver = null;
if(browse.equals("ie") || browse.equals("chrome")){
StringBuffer filePath = new StringBuffer();
filePath.append(System.getProperty("user.dir"));
filePath.append(File.separator);
filePath.append("SeleniumDriver");
filePath.... |
diff --git a/src/main/java/com/eyeq/pivot4j/primefaces/ui/PivotGridHandler.java b/src/main/java/com/eyeq/pivot4j/primefaces/ui/PivotGridHandler.java
index c53d616..4c9b9cb 100644
--- a/src/main/java/com/eyeq/pivot4j/primefaces/ui/PivotGridHandler.java
+++ b/src/main/java/com/eyeq/pivot4j/primefaces/ui/PivotGridHandler.... | false | true | protected void initialize() {
this.model = stateManager.getModel();
if (model != null) {
model.addQueryListener(this);
model.addModelChangeListener(this);
ConnectionMetadata connectionInfo = stateManager
.getConnectionInfo();
if (!model.isInitialized() && connectionInfo != null) {
this.cube... | protected void initialize() {
this.model = stateManager.getModel();
if (model != null) {
model.addQueryListener(this);
model.addModelChangeListener(this);
ConnectionMetadata connectionInfo = stateManager
.getConnectionInfo();
if (connectionInfo != null) {
if (!model.isInitialized() || cubeN... |
diff --git a/orbisgis-core/src/main/java/org/orbisgis/core/layerModel/BeanMapContext.java b/orbisgis-core/src/main/java/org/orbisgis/core/layerModel/BeanMapContext.java
index 047d6a74c..a454ba698 100644
--- a/orbisgis-core/src/main/java/org/orbisgis/core/layerModel/BeanMapContext.java
+++ b/orbisgis-core/src/main/java/... | true | true | public void setBoundingBox(Envelope boundingBox) {
if (!boundingBox.equals(this.boundingBox)) {
Envelope oldBoundingBox = this.boundingBox;
this.boundingBox = boundingBox;
propertyChangeSupport.firePropertyChange(PROP_BOUNDI... | public void setBoundingBox(Envelope boundingBox) {
if (boundingBox != null && !boundingBox.equals(this.boundingBox)) {
Envelope oldBoundingBox = this.boundingBox;
this.boundingBox = boundingBox;
propertyChangeSupport.firePro... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskDataManager.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskDataManager.java
index e4c4673dd..7bf1c8a31 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskDataManager.java
+... | true | true | private void readOldOfflineFile() throws IOException {
ObjectInputStream in = null;
try {
in = new ObjectInputStream(new FileInputStream(file));
// read in each of the offline reports in the file
dataStore = new OfflineDataStore();
// get the number of offline reports in the file
int size = in.rea... | private void readOldOfflineFile() throws IOException {
ObjectInputStream in = null;
try {
in = new ObjectInputStream(new FileInputStream(file));
// read in each of the offline reports in the file
dataStore = new OfflineDataStore();
// get the number of offline reports in the file
int size = in.rea... |
diff --git a/src/org/mozilla/javascript/NativeJavaMethod.java b/src/org/mozilla/javascript/NativeJavaMethod.java
index 857feaa9..4dd542ab 100644
--- a/src/org/mozilla/javascript/NativeJavaMethod.java
+++ b/src/org/mozilla/javascript/NativeJavaMethod.java
@@ -1,588 +1,603 @@
/* -*- Mode: java; tab-width: 8; indent-tabs... | true | true | static Member findFunction(Member[] methodsOrCtors, Object[] args) {
if (methodsOrCtors.length == 0)
return null;
boolean hasMethods = methodsOrCtors[0] instanceof Method;
if (Context.useJSObject &&
NativeJavaObject.jsObjectClass != null)
{
try {
... | static Member findFunction(Member[] methodsOrCtors, Object[] args) {
if (methodsOrCtors.length == 0)
return null;
boolean hasMethods = methodsOrCtors[0] instanceof Method;
if (Context.useJSObject &&
NativeJavaObject.jsObjectClass != null)
{
try {
... |
diff --git a/jung-visualization/src/main/java/edu/uci/ics/jung/visualization/renderers/BasicEdgeRenderer.java b/jung-visualization/src/main/java/edu/uci/ics/jung/visualization/renderers/BasicEdgeRenderer.java
index f3efed59..ceeb44bb 100644
--- a/jung-visualization/src/main/java/edu/uci/ics/jung/visualization/renderers... | false | true | protected void drawSimpleEdge(RenderContext<V,E> rc, Layout<V,E> layout, E e) {
GraphicsDecorator g = rc.getGraphicsContext();
Graph<V,E> graph = layout.getGraph();
Pair<V> endpoints = graph.getEndpoints(e);
V v1 = endpoints.getFirst();
V v2 = endpoints.getSecond();
... | protected void drawSimpleEdge(RenderContext<V,E> rc, Layout<V,E> layout, E e) {
GraphicsDecorator g = rc.getGraphicsContext();
Graph<V,E> graph = layout.getGraph();
Pair<V> endpoints = graph.getEndpoints(e);
V v1 = endpoints.getFirst();
V v2 = endpoints.getSecond();
... |
diff --git a/src/com/slidellrobotics/reboundrumble/commands/FindDistance.java b/src/com/slidellrobotics/reboundrumble/commands/FindDistance.java
index bc994cd..6faef4a 100644
--- a/src/com/slidellrobotics/reboundrumble/commands/FindDistance.java
+++ b/src/com/slidellrobotics/reboundrumble/commands/FindDistance.java
@@ ... | true | true | protected void execute() {
if (TrackingCamera.targetGoal == null){ // If no target is found
leftShootingMotors.setSetpoint(1000); // Set Left shooting Motors to Full Speed
rightShootingMotors.setSetpoint(1000); // Set Right Shooting Motors to Full Speed
System.out.p... | protected void execute() {
if (TrackingCamera.targetGoal == null){ // If no target is found
leftShootingMotors.setSetpoint(1000); // Set Left shooting Motors to Full Speed
rightShootingMotors.setSetpoint(1000); // Set Right Shooting Motors to Full Speed
System.out.p... |
diff --git a/hygienic_common/us/joaogldarkdeagle/hygienic/Hygienic.java b/hygienic_common/us/joaogldarkdeagle/hygienic/Hygienic.java
index 15507e9..7ed4204 100644
--- a/hygienic_common/us/joaogldarkdeagle/hygienic/Hygienic.java
+++ b/hygienic_common/us/joaogldarkdeagle/hygienic/Hygienic.java
@@ -1,75 +1,76 @@
package ... | true | true | public void init(FMLInitializationEvent event) {
mopBukket = new BlockMopBukket(900, Material.grass, mopBukket_Tex).setUnlocalizedName("mopBukket_UN");
mopBukket.setStepSound(Block.soundMetalFootstep);
mop = (new ItemMop(901, mop_Tex)).setUnlocalizedName("Mop").setCreativeTab(hygien... | public void init(FMLInitializationEvent event) {
mopBukket = new BlockMopBukket(900, Material.grass, mopBukket_Tex).setUnlocalizedName("mopBukket_UN");
mopBukket.setStepSound(Block.soundMetalFootstep);
mop = (new ItemMop(901, mop_Tex)).setUnlocalizedName("Mop").setCreativeTab(hygien... |
diff --git a/src/org/jacorb/imr/ServerStartupDaemonImpl.java b/src/org/jacorb/imr/ServerStartupDaemonImpl.java
index e9cb6ab23..8c36a817d 100644
--- a/src/org/jacorb/imr/ServerStartupDaemonImpl.java
+++ b/src/org/jacorb/imr/ServerStartupDaemonImpl.java
@@ -1,225 +1,225 @@
/*
* JacORB - a free Java ORB
*
*... | true | true | public ServerStartupDaemonImpl()
throws Exception
{
Registration _registration = null;
_registration =
RegistrationHelper.narrow( orb.resolve_initial_references("ImplementationRepository"));
if( _registration == null )
throw new java.lang.Error("ImR not found... | public ServerStartupDaemonImpl()
throws Exception
{
Registration _registration = null;
_registration =
RegistrationHelper.narrow( orb.resolve_initial_references("ImplementationRepository"));
if( _registration == null )
throw new RuntimeException("ImR not foun... |
diff --git a/src/minecraft/net/Harmonion/block/ModBlocks.java b/src/minecraft/net/Harmonion/block/ModBlocks.java
index 54eee00..f8dbd44 100644
--- a/src/minecraft/net/Harmonion/block/ModBlocks.java
+++ b/src/minecraft/net/Harmonion/block/ModBlocks.java
@@ -1,141 +1,141 @@
package net.Harmonion.block;
import net.Har... | false | true | public static void init() {
/* Initialize each mod block individually */
HarmonionOre = new BlockHarmonionOre(BlockIds.Harmonion, 0);
HarmonionBlock = new BlockHarmonionBlock(BlockIds.Harmonion_Block, 3);
HarmonionLog = new BlockHarmonionLog(BlockIds.Harmonion_Log);
HarmonionLeaves = new BlockHarmonionLea... | public static void init() {
/* Initialize each mod block individually */
HarmonionOre = new BlockHarmonionOre(BlockIds.Harmonion, 0);
HarmonionBlock = new BlockHarmonionBlock(BlockIds.Harmonion_Block, 3);
HarmonionLog = new BlockHarmonionLog(BlockIds.Harmonion_Log);
HarmonionLeaves = new BlockHarmonionLea... |
diff --git a/src/gossipLearning/models/regression/NormaSVM.java b/src/gossipLearning/models/regression/NormaSVM.java
index 3cf0f6d..d991c63 100644
--- a/src/gossipLearning/models/regression/NormaSVM.java
+++ b/src/gossipLearning/models/regression/NormaSVM.java
@@ -1,374 +1,374 @@
package gossipLearning.models.regressi... | true | true | public static void main(String[] args) throws Exception {
if (args.length == 5 || args.length == 6 || args.length == 7) {
NormaSVM svm = new NormaSVM();
svm.setLambda(Double.parseDouble(args[2]));
Kernel kernel = (Kernel) Class.forName(args[3]).newInstance();
svm.setKernel(kernel);
... | public static void main(String[] args) throws Exception {
if (args.length == 5 || args.length == 6 || args.length == 7) {
NormaSVM svm = new NormaSVM();
svm.setLambda(Double.parseDouble(args[2]));
Kernel kernel = (Kernel) Class.forName(args[3]).newInstance();
svm.setKernel(kernel);
... |
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/full/From36to37.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/full/From36to37.java
index 30093f327..782c9265e 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/full/From36to... | true | true | public void from36To37() {
assertInitialized();
String currentBuildRepo = System.getProperty("org.eclipse.equinox.p2.tests.current.build.repo");
if (currentBuildRepo == null)
currentBuildRepo = "http://download.eclipse.org/eclipse/updates/3.7-I-builds";
runInitialize("Initializing 3.6 to get the profile pat... | public void from36To37() {
assertInitialized();
String currentBuildRepo = System.getProperty("org.eclipse.equinox.p2.tests.current.build.repo");
if (currentBuildRepo == null)
currentBuildRepo = "http://download.eclipse.org/eclipse/updates/3.7-I-builds";
runInitialize("Initializing 3.6 to get the profile pat... |
diff --git a/src/main/java/net/aufdemrand/denizen/scripts/commands/core/AnimateChestCommand.java b/src/main/java/net/aufdemrand/denizen/scripts/commands/core/AnimateChestCommand.java
index 454479d2d..e061b6e2e 100644
--- a/src/main/java/net/aufdemrand/denizen/scripts/commands/core/AnimateChestCommand.java
+++ b/src/mai... | true | true | public void parseArgs(ScriptEntry scriptEntry)
throws InvalidArgumentsException {
String chestAction = "OPEN";
Location location = null;
Boolean sound = true;
for (String arg : scriptEntry.getArguments()) {
if (aH.matchesArg("OPEN, CLOSE", arg)) {
chestAction = aH.getStringFrom(arg);
dB.echoDe... | public void parseArgs(ScriptEntry scriptEntry)
throws InvalidArgumentsException {
String chestAction = "OPEN";
Location location = null;
Boolean sound = true;
for (String arg : scriptEntry.getArguments()) {
if (aH.matchesArg("OPEN, CLOSE", arg)) {
chestAction = aH.getStringFrom(arg);
dB.echoDe... |
diff --git a/src/main/java/org/mgenterprises/java/bukkit/gmcfps/Core/Weapons/ProjectileWeapon.java b/src/main/java/org/mgenterprises/java/bukkit/gmcfps/Core/Weapons/ProjectileWeapon.java
index f532156..f2d9a94 100644
--- a/src/main/java/org/mgenterprises/java/bukkit/gmcfps/Core/Weapons/ProjectileWeapon.java
+++ b/src/m... | true | true | public void onWeaponRightClick(WeaponFiredEvent event) {
//System.out.println(event);
if(super.getWeaponManager().waiting.contains(event.getPlayer().getName())){
return;
}
boolean hasAmmoLeft = event.getPlayer().getInventory().contains(ammoMaterial);
if (hasAmmoLe... | public void onWeaponRightClick(WeaponFiredEvent event) {
//System.out.println(event);
if(super.getWeaponManager().waiting.contains(event.getPlayer().getName())){
return;
}
boolean hasAmmoLeft = event.getPlayer().getInventory().contains(ammoMaterial);
if (hasAmmoLe... |
diff --git a/AMBroSIA/src/game/Logic.java b/AMBroSIA/src/game/Logic.java
index 79a5fbc..257b87d 100644
--- a/AMBroSIA/src/game/Logic.java
+++ b/AMBroSIA/src/game/Logic.java
@@ -1,305 +1,306 @@
package game;
import gui.MenuGUI;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.a... | true | true | public void keyPressed(KeyEvent e) {
int keyCode = e.getKeyCode();
PlayerShip player = gameState.getPlayerShip();
//handles most basic key commands. Should activate a boolean stating that the key has been pressed
if (keyCode == KeyEvent.VK_UP) {
//accelerate
... | public void keyPressed(KeyEvent e) {
int keyCode = e.getKeyCode();
PlayerShip player = gameState.getPlayerShip();
//handles most basic key commands. Should activate a boolean stating that the key has been pressed
if (keyCode == KeyEvent.VK_UP) {
//accelerate
... |
diff --git a/src/main/java/recs/EntityWorld.java b/src/main/java/recs/EntityWorld.java
index 07cafaf..eedddec 100644
--- a/src/main/java/recs/EntityWorld.java
+++ b/src/main/java/recs/EntityWorld.java
@@ -1,406 +1,407 @@
package recs;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Co... | true | true | public void addEntity(Entity entity) {
int id = getNewEntityId();
entity.id = id;
addedEntities.put(id, entity);
Class<? extends Entity> entityClass = entity.getClass();
// Read reflection data and use it to add all the components that were
// declared as fields.
EntityReflection reflection = entitydata... | public void addEntity(Entity entity) {
int id = getNewEntityId();
entity.id = id;
addedEntities.put(id, entity);
entityIds.set(id);
Class<? extends Entity> entityClass = entity.getClass();
// Read reflection data and use it to add all the components that were
// declared as fields.
EntityReflection re... |
diff --git a/edu/wisc/ssec/mcidasv/control/ScatterDisplay.java b/edu/wisc/ssec/mcidasv/control/ScatterDisplay.java
index f0d01238a..64d68b4a6 100644
--- a/edu/wisc/ssec/mcidasv/control/ScatterDisplay.java
+++ b/edu/wisc/ssec/mcidasv/control/ScatterDisplay.java
@@ -1,1004 +1,1005 @@
package edu.wisc.ssec.mcidasv.contro... | true | true | public void displayChanged(DisplayEvent de)
throws VisADException, RemoteException {
if (de.getId() == DisplayEvent.MOUSE_RELEASED) {
UnionSet uSet = curveDraw.getCurves();
if (uSet == last_uSet) return;
SampledSet[] sets = uSet.getSets();
int s_id... | public void displayChanged(DisplayEvent de)
throws VisADException, RemoteException {
if (de.getId() == DisplayEvent.MOUSE_RELEASED) {
UnionSet uSet = curveDraw.getCurves();
if (uSet == last_uSet) return;
SampledSet[] sets = uSet.getSets();
int s_id... |
diff --git a/src/core/de/jroene/vrapper/vim/token/BeginOfLineMove.java b/src/core/de/jroene/vrapper/vim/token/BeginOfLineMove.java
index 21589df4..c829de86 100644
--- a/src/core/de/jroene/vrapper/vim/token/BeginOfLineMove.java
+++ b/src/core/de/jroene/vrapper/vim/token/BeginOfLineMove.java
@@ -1,90 +1,93 @@
package de... | true | true | public boolean evaluate(VimEmulator vim, Token next)
throws TokenException {
target = vim.getPlatform().getLineInformation().getBeginOffset();
return true;
}
| public boolean evaluate(VimEmulator vim, Token next)
throws TokenException {
if (next != null) {
return super.evaluate(vim, next);
}
target = vim.getPlatform().getLineInformation().getBeginOffset();
return true;
}
|
diff --git a/Core/src/org/sleuthkit/autopsy/ingest/GeneralIngestConfigurator.java b/Core/src/org/sleuthkit/autopsy/ingest/GeneralIngestConfigurator.java
index a183a4ac1..dde703f93 100644
--- a/Core/src/org/sleuthkit/autopsy/ingest/GeneralIngestConfigurator.java
+++ b/Core/src/org/sleuthkit/autopsy/ingest/GeneralIngestC... | true | true | private List<String> loadSettingsForContext() {
List<String> messages = new ArrayList<>();
// If there is no enabled ingest modules setting for this user, default to enabling all
// of the ingest modules the IngestManager has loaded.
if (ModuleSettings.settingExist... | private List<String> loadSettingsForContext() {
List<String> messages = new ArrayList<>();
// If there is no enabled ingest modules setting for this user, default to enabling all
// of the ingest modules the IngestManager has loaded.
if (ModuleSettings.settingExist... |
diff --git a/src/gov/nih/nci/cadsr/cdecurate/tool/InsACService.java b/src/gov/nih/nci/cadsr/cdecurate/tool/InsACService.java
index e25c8917..d3c2ccd6 100755
--- a/src/gov/nih/nci/cadsr/cdecurate/tool/InsACService.java
+++ b/src/gov/nih/nci/cadsr/cdecurate/tool/InsACService.java
@@ -1,6576 +1,6577 @@
// $Header: /cvssh... | true | true | public String setVD(String sAction, VD_Bean vd, String sInsertFor,
VD_Bean oldVD) {
ResultSet rs = null;
CallableStatement cstmt = null;
HttpSession session = m_classReq.getSession();
String sReturnCode = ""; // ou
String sVDParent = "";
try {
String sOriginAction = (String) session
.getAttribu... | public String setVD(String sAction, VD_Bean vd, String sInsertFor,
VD_Bean oldVD) {
ResultSet rs = null;
CallableStatement cstmt = null;
HttpSession session = m_classReq.getSession();
String sReturnCode = ""; // ou
String sVDParent = "";
try {
String sOriginAction = (String) session
.getAttribu... |
diff --git a/src/main/java/rinde/evo4mas/gendreau06/HeuristicTruck.java b/src/main/java/rinde/evo4mas/gendreau06/HeuristicTruck.java
index 106fe82..a2570d1 100644
--- a/src/main/java/rinde/evo4mas/gendreau06/HeuristicTruck.java
+++ b/src/main/java/rinde/evo4mas/gendreau06/HeuristicTruck.java
@@ -1,308 +1,309 @@
packag... | false | true | protected static Parcel next(Heuristic<TruckContext> program, VehicleDTO dto, Collection<Parcel> todo,
Collection<Parcel> contents, Set<Parcel> alreadyClaimed, Point truckPos, long time) {
Parcel best = null;
double bestValue = Double.POSITIVE_INFINITY;
boolean isPickup = true;
final Collection<ParcelDTO>... | protected static Parcel next(Heuristic<TruckContext> program, VehicleDTO dto, Collection<Parcel> todo,
Collection<Parcel> contents, Set<Parcel> alreadyClaimed, Point truckPos, long time) {
Parcel best = null;
double bestValue = Double.POSITIVE_INFINITY;
boolean isPickup = true;
final StringBuilder sb = ne... |
diff --git a/src/guitarra/Guitarra.java b/src/guitarra/Guitarra.java
old mode 100644
new mode 100755
index 4dc7b40..09043cd
--- a/src/guitarra/Guitarra.java
+++ b/src/guitarra/Guitarra.java
@@ -1,82 +1,83 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package... | true | true | private Esfera[] getNotas(){
for(int[] nota: notas){
if(nota.length<this.level){
continue;//Ignora notas com menos de 1 elemento
}
if(this.getSecondsElapsed() == nota[0]){//Verifica se é a nota à ser considerada
Esfera[] esferasNotas = new ... | private Esfera[] getNotas(){
for(int[] nota: notas){
if(nota.length<this.level){
continue;//Ignora notas com menos de 1 elemento
}
if(this.getSecondsElapsed() == nota[0]){//Verifica se é a nota à ser considerada
Esfera[] esferasNotas = new ... |
diff --git a/src/org/openjump/core/ui/plugin/layer/SortCategoryByNamePlugIn.java b/src/org/openjump/core/ui/plugin/layer/SortCategoryByNamePlugIn.java
index 3e8c1285..c069b161 100644
--- a/src/org/openjump/core/ui/plugin/layer/SortCategoryByNamePlugIn.java
+++ b/src/org/openjump/core/ui/plugin/layer/SortCategoryByNameP... | false | true | protected void addMenuOptions(PlugInContext context) {
this.submenuLabel = I18N
.get("org.openjump.core.ui.plugin.layer.SortCategoryByNamePlugIn.By-Name");
this.descending = I18N
.get("org.openjump.core.ui.plugin.layer.SortCategoryByNamePlugIn.Descending");
this.ascending = I18N
.get("org.openjump.c... | protected void addMenuOptions(PlugInContext context) {
this.submenuLabel = I18N
.get("org.openjump.core.ui.plugin.layer.SortCategoryByNamePlugIn.By-Name");
this.descending = I18N
.get("org.openjump.core.ui.plugin.layer.SortCategoryByNamePlugIn.Descending");
this.ascending = I18N
.get("org.openjump.c... |
diff --git a/java/examples/CreateDisk.java b/java/examples/CreateDisk.java
index 381fae1f2..83e0ff621 100644
--- a/java/examples/CreateDisk.java
+++ b/java/examples/CreateDisk.java
@@ -1,84 +1,84 @@
// Example showing how to create a disk image.
import java.io.*;
import java.util.Map;
import java.util.HashMap;
i... | true | true | public static void main (String[] argv)
{
try {
GuestFS g = new GuestFS ();
// Create a raw-format sparse disk image, 512 MB in size.
RandomAccessFile f = new RandomAccessFile (output, "rw");
f.setLength (512 * 1024 * 1024);
f.close ();
... | public static void main (String[] argv)
{
try {
GuestFS g = new GuestFS ();
// Create a raw-format sparse disk image, 512 MB in size.
RandomAccessFile f = new RandomAccessFile (output, "rw");
f.setLength (512 * 1024 * 1024);
f.close ();
... |
diff --git a/src/main/java/org/apache/hadoop/hbase/master/handler/ServerShutdownHandler.java b/src/main/java/org/apache/hadoop/hbase/master/handler/ServerShutdownHandler.java
index 34067afee..4754ff081 100644
--- a/src/main/java/org/apache/hadoop/hbase/master/handler/ServerShutdownHandler.java
+++ b/src/main/java/org/a... | false | true | public void process() throws IOException {
final ServerName serverName = this.serverName;
LOG.info("Splitting logs for " + serverName);
this.services.getMasterFileSystem().splitLog(serverName);
// Clean out anything in regions in transition. Being conservative and
// doing after log splitting. ... | public void process() throws IOException {
final ServerName serverName = this.serverName;
LOG.info("Splitting logs for " + serverName);
this.services.getMasterFileSystem().splitLog(serverName);
// Clean out anything in regions in transition. Being conservative and
// doing after log splitting. ... |
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/AddExternalFolderAction.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/AddExternalFolderAction.java
index f07e0dcad..736f3867e 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actio... | true | true | public void run() {
String lastUsedPath= getDialogSetting(LAST_PATH_SETTING);
if (lastUsedPath == null) {
lastUsedPath= ""; //$NON-NLS-1$
}
DirectoryDialog dialog= new DirectoryDialog(getShell(), SWT.MULTI);
dialog.setText(ActionMessages.getString("AddExternalFolderAction.Folder_Selection_3")); //... | public void run() {
String lastUsedPath= getDialogSetting(LAST_PATH_SETTING);
if (lastUsedPath == null) {
lastUsedPath= ""; //$NON-NLS-1$
}
DirectoryDialog dialog= new DirectoryDialog(getShell(), SWT.MULTI);
dialog.setText(ActionMessages.getString("AddExternalFolderAction.Folder_Selection_3")); //... |
diff --git a/src/main/java/com/tinkerpop/blueprints/pgm/impls/sail/impls/LinkedDataSailGraph.java b/src/main/java/com/tinkerpop/blueprints/pgm/impls/sail/impls/LinkedDataSailGraph.java
index 667ceeb9..e2d76fb3 100644
--- a/src/main/java/com/tinkerpop/blueprints/pgm/impls/sail/impls/LinkedDataSailGraph.java
+++ b/src/ma... | true | true | public LinkedDataSailGraph(SailGraph storageGraph) {
try {
Ripple.initialize();
final Sail sail = new LinkedDataSail(storageGraph.getRawGraph(), new URIMap());
this.startSail(sail);
} catch (Exception e) {
throw new RuntimeException(e.getMessage(), e);... | public LinkedDataSailGraph(SailGraph storageGraph) {
try {
Ripple.initialize();
final Sail sail = new LinkedDataSail(storageGraph.getRawGraph(), new URIMap());
sail.initialize();
this.startSail(sail);
} catch (Exception e) {
throw new Runti... |
diff --git a/src/net/clonecomputers/lab/todo/ScheduledAlarm.java b/src/net/clonecomputers/lab/todo/ScheduledAlarm.java
index e5d41a3..75ae176 100644
--- a/src/net/clonecomputers/lab/todo/ScheduledAlarm.java
+++ b/src/net/clonecomputers/lab/todo/ScheduledAlarm.java
@@ -1,42 +1,42 @@
package net.clonecomputers.lab.todo;... | true | true | Date getSoonestDate() {
Calendar alarmTime = new GregorianCalendar(1,1,1,0,0,0);
NOW.setTime(new Date());
alarmTime.set(ye,mo,da,ho,mi);
if(ye != 60) {
return NOW.getTime().before(alarmTime.getTime()) ? alarmTime.getTime() : null;
} else {
alarmTime.set(Calendar.YEAR, NOW.get(Calendar.YEAR));
while(... | Date getSoonestDate() {
Calendar alarmTime = new GregorianCalendar(1,1,1,0,0,0);
NOW.setTime(new Date());
alarmTime.set(ye,mo,da,ho,mi);
if(ye != 60) {
return NOW.getTime().before(alarmTime.getTime()) ? alarmTime.getTime() : null;
} else {
alarmTime.set(Calendar.YEAR, NOW.get(Calendar.YEAR));
while(... |
diff --git a/alitheia/logger/src/eu/sqooss/impl/service/LoggingActivator.java b/alitheia/logger/src/eu/sqooss/impl/service/LoggingActivator.java
index 048b6dee..312734e4 100644
--- a/alitheia/logger/src/eu/sqooss/impl/service/LoggingActivator.java
+++ b/alitheia/logger/src/eu/sqooss/impl/service/LoggingActivator.java
@... | true | true | public void start(BundleContext bc) throws Exception {
//registers a log manager service
LogManagerImpl.logManager.setBundleContext(bc);
sReg = bc.registerService(LogManager.class.getName(), LogManagerImpl.logManager, null);
Logger l = LogManagerImpl.logManager.createLogger("sqooss");
l.setConfigu... | public void start(BundleContext bc) throws Exception {
//registers a log manager service
LogManagerImpl.logManager.setBundleContext(bc);
sReg = bc.registerService(LogManager.class.getName(), LogManagerImpl.logManager, null);
Logger l = LogManagerImpl.logManager.createLogger("sqooss");
l.setConfigu... |
diff --git a/src/main/java/de/cismet/cids/custom/butler/Butler1ProductPanel.java b/src/main/java/de/cismet/cids/custom/butler/Butler1ProductPanel.java
index f6c008fc..048e2299 100644
--- a/src/main/java/de/cismet/cids/custom/butler/Butler1ProductPanel.java
+++ b/src/main/java/de/cismet/cids/custom/butler/Butler1Product... | true | true | private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
bindingGroup = new org.jdesktop.beansbinding.BindingGroup();
btGroupFormat = new javax.swing.ButtonGroup();
lblProduktGruppe = new javax.swing.JLabel();
cbProduktGruppe = new javax.swing.JComboBo... | private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
bindingGroup = new org.jdesktop.beansbinding.BindingGroup();
btGroupFormat = new javax.swing.ButtonGroup();
lblProduktGruppe = new javax.swing.JLabel();
cbProduktGruppe = new javax.swing.JComboBo... |
diff --git a/de.gebit.integrity.eclipse/src/de/gebit/integrity/eclipse/classpath/IntegrityClasspathContainer.java b/de.gebit.integrity.eclipse/src/de/gebit/integrity/eclipse/classpath/IntegrityClasspathContainer.java
index f02fcd37..c0e784d1 100644
--- a/de.gebit.integrity.eclipse/src/de/gebit/integrity/eclipse/classpa... | false | true | private IPath getInstallationDirectoryFor(Bundle aBundle) {
String tempBundleLocation = aBundle.getLocation();
if (tempBundleLocation == null || tempBundleLocation.length() == 0) {
return null;
}
IPath tempBundlePath = new Path(tempBundleLocation);
if (tempBundlePath.isAbsolute()) {
return tempBundlePa... | private IPath getInstallationDirectoryFor(Bundle aBundle) {
String tempBundleLocation = aBundle.getLocation();
if (tempBundleLocation == null || tempBundleLocation.length() == 0) {
return null;
}
IPath tempBundlePath;
if (tempBundleLocation.startsWith("reference:file:")) {
String tempPathString = tempB... |
diff --git a/modules/pm_struts/src/org/jpos/ee/pm/struts/converter/EditCollectionConverter.java b/modules/pm_struts/src/org/jpos/ee/pm/struts/converter/EditCollectionConverter.java
index de13763..a209b43 100644
--- a/modules/pm_struts/src/org/jpos/ee/pm/struts/converter/EditCollectionConverter.java
+++ b/modules/pm_str... | true | true | public Object build(Entity entity, Field field, Operation operation,
EntityInstanceWrapper einstance, Object value) throws ConverterException {
try{
String collection_class = getConfig("collection-class");
if(collection_class == null) throw new ConverterException("collection-class must be defined");
... | public Object build(Entity entity, Field field, Operation operation,
EntityInstanceWrapper einstance, Object value) throws ConverterException {
try{
String collection_class = getConfig("collection-class");
if(collection_class == null) throw new ConverterException("collection-class must be defined");
... |
diff --git a/src/main/java/pl/agh/enrollme/repository/SubjectDAO.java b/src/main/java/pl/agh/enrollme/repository/SubjectDAO.java
index 9cc75b8..5815e00 100644
--- a/src/main/java/pl/agh/enrollme/repository/SubjectDAO.java
+++ b/src/main/java/pl/agh/enrollme/repository/SubjectDAO.java
@@ -1,149 +1,150 @@
package pl.agh... | true | true | public void fillCurrentUserSubjectList(Subject[] subjects) {
UserDetails userDetails = (UserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
Person person = personDAO.findByUsername(userDetails.getUsername());
LOGGER.debug("User: " + person.getUsername() + " [... | public void fillCurrentUserSubjectList(Subject[] subjects) {
UserDetails userDetails = (UserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
Person person = personDAO.findByUsername(userDetails.getUsername());
LOGGER.debug("User: " + person.getUsername() + " [... |
diff --git a/source/nl.esciencecenter.vlet.vrs.core/src/nl/esciencecenter/vlet/vrs/vrl/VRLStreamHandlerFactory.java b/source/nl.esciencecenter.vlet.vrs.core/src/nl/esciencecenter/vlet/vrs/vrl/VRLStreamHandlerFactory.java
index 7e113fc0..445e472c 100644
--- a/source/nl.esciencecenter.vlet.vrs.core/src/nl/esciencecenter/... | true | true | public URLStreamHandler createURLStreamHandler(String protocol)
{
ClassLogger.getLogger(URLStreamHandler.class).debugPrintf("createURLStreamHandler() for:%s\n",protocol);
if (protocol.compareToIgnoreCase("jar") == 0)
{
// return sun's default HTTP handler !
retur... | public URLStreamHandler createURLStreamHandler(String protocol)
{
ClassLogger.getLogger(URLStreamHandler.class).debugPrintf("createURLStreamHandler() for:%s\n",protocol);
if (protocol.compareToIgnoreCase("jar") == 0)
{
// return sun's default HTTP handler !
retur... |
diff --git a/examples/src/main/java/org/apache/mahout/ga/watchmaker/cd/CDFitness.java b/examples/src/main/java/org/apache/mahout/ga/watchmaker/cd/CDFitness.java
index 5071d9503..426813f79 100644
--- a/examples/src/main/java/org/apache/mahout/ga/watchmaker/cd/CDFitness.java
+++ b/examples/src/main/java/org/apache/mahout... | true | true | public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null || !(obj instanceof CDFitness))
return false;
CDFitness f = (CDFitness) obj;
return tp == f.getFp() && fp == f.getFp() && tn == f.getTn() && fn == f.getTn();
}
| public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null || !(obj instanceof CDFitness))
return false;
CDFitness f = (CDFitness) obj;
return tp == f.getTp() && fp == f.getFp() && tn == f.getTn() && fn == f.getFn();
}
|
diff --git a/code/src/commands/ExportCommand.java b/code/src/commands/ExportCommand.java
index 340a2e9..2342549 100644
--- a/code/src/commands/ExportCommand.java
+++ b/code/src/commands/ExportCommand.java
@@ -1,48 +1,48 @@
package commands;
import java.io.IOException;
import java.util.ArrayList;
import UI.UI;
... | false | true | public void execute() {
// TODO Auto-generated method stub
ExportParameters param = ui.getExportParameters();
switch(param.type){
case Email:
System.err.println("not implemented");
return;
case File:
FileExporter exp = new FileExporter(param.startDate, param.endDate);
try {
exp.ex... | public void execute() {
// TODO Auto-generated method stub
ExportParameters param = ui.getExportParameters();
switch(param.type){
case Email:
System.err.println("not implemented");
break;
case File:
FileExporter exp = new FileExporter(param.startDate, param.endDate);
try {
exp.exp... |
diff --git a/src/Board.java b/src/Board.java
index f992200..ff339d6 100644
--- a/src/Board.java
+++ b/src/Board.java
@@ -1,282 +1,283 @@
/**
* This class represents a 9x9 sudoku Board.
* Each cell contains either the numeric value of the cell, or all the values
* that could potentially be placed within the cell.... | false | true | public void clearCell (int row, int col) {
if (board[row][col].length() != 1) {
return;
}
String removed = board[row][col];
for (int i = 0; i < 9; i++) {
if (board[row][i].length() != 1) {
if (!board[row][i].contains(removed)) {
board[row][i] = board[row][i].concat(removed);
}
}
if (b... | public void clearCell (int row, int col) {
if (board[row][col].length() != 1) {
return;
}
String removed = board[row][col];
for (int i = 0; i < 9; i++) {
if (board[row][i].length() != 1 || board[row][i].equals("0")) {
if (!board[row][i].contains(removed)) {
board[row][i] = board[row][i].concat(r... |
diff --git a/clustering/src/org/clustering/model/Item.java b/clustering/src/org/clustering/model/Item.java
index 50ad41b..5f915d1 100644
--- a/clustering/src/org/clustering/model/Item.java
+++ b/clustering/src/org/clustering/model/Item.java
@@ -1,51 +1,51 @@
package org.clustering.model;
import java.util.HashMap;
... | true | true | public void calcDistance(Item item, int numKeywords) {
int mutualKeywords = 0;
for(String keyword : getKeywords()) {
if(item.getKeywords().contains(keyword)) mutualKeywords++;
}
double distance = mutualKeywords/numKeywords;
setDistance(item, distance);
item.setDistance(this, distance);
}
| public void calcDistance(Item item, int numKeywords) {
double mutualKeywords = 0;
for(String keyword : getKeywords()) {
if(item.getKeywords().contains(keyword)) mutualKeywords++;
}
double distance = mutualKeywords/numKeywords;
setDistance(item, distance);
item.setDistance(this, distance);
}
|
diff --git a/android/phoenix/src/org/retroarch/browser/CoreSelection.java b/android/phoenix/src/org/retroarch/browser/CoreSelection.java
index 70675051f3..44f59f267e 100644
--- a/android/phoenix/src/org/retroarch/browser/CoreSelection.java
+++ b/android/phoenix/src/org/retroarch/browser/CoreSelection.java
@@ -1,384 +1,... | true | true | private void updateConfigFile() {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext());
config.setBoolean("audio_rate_control", prefs.getBoolean("audio_rate_control", true));
config.setInt("audio_out_rate", getOptimalSamplingRate());
config.setBoolean("audio_enable", prefs.... | private void updateConfigFile() {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext());
config.setBoolean("audio_rate_control", prefs.getBoolean("audio_rate_control", true));
config.setInt("audio_out_rate", getOptimalSamplingRate());
config.setInt("audio_latency", prefs.get... |
diff --git a/src/java/drbd/utilities/Tools.java b/src/java/drbd/utilities/Tools.java
index 574f1cc0..01855e7e 100644
--- a/src/java/drbd/utilities/Tools.java
+++ b/src/java/drbd/utilities/Tools.java
@@ -1,2732 +1,2734 @@
/*
* This file is part of DRBD Management Console by LINBIT HA-Solutions GmbH
* written by Ras... | false | true | public static boolean getScrollingMenu(
final String name,
final MyMenu menu,
final MyListModel dlm,
final MyList list,
final Info infoObject,
final List<JDialog> popups,
... | public static boolean getScrollingMenu(
final String name,
final MyMenu menu,
final MyListModel dlm,
final MyList list,
final Info infoObject,
final List<JDialog> popups,
... |
diff --git a/src/main/java/casino/InDoor.java b/src/main/java/casino/InDoor.java
index 8b97c72..bb0bc40 100644
--- a/src/main/java/casino/InDoor.java
+++ b/src/main/java/casino/InDoor.java
@@ -1,207 +1,207 @@
package casino;
import java.util.UUID;
import org.nr.roulette.exceptions.ValidationException;
import ... | true | true | public static Response processBetRequest (BetRequest request) throws ValidationException {
String command = BET_COMMAND;
String answer = "";
String reason = "";
String userid = request.getUserid();
BetResponse response = null;
OperationResult regBetResult = null;
// - create object Bet
// - send ... | public static Response processBetRequest (BetRequest request) throws ValidationException {
String command = BET_COMMAND;
String answer = "";
String reason = "";
String userid = request.getUserid();
BetResponse response = null;
OperationResult regBetResult = null;
// - create object Bet
// - send ... |
diff --git a/astCreator/src/main/java/com/lausdahl/ast/creator/methods/ConstructorTreeFieldsOnlyMethod.java b/astCreator/src/main/java/com/lausdahl/ast/creator/methods/ConstructorTreeFieldsOnlyMethod.java
index 63f8dd4..0a2def6 100644
--- a/astCreator/src/main/java/com/lausdahl/ast/creator/methods/ConstructorTreeFields... | true | true | protected void prepare()
{
skip = true;
// skip = classDefinition.getFields().isEmpty();
// if(!skip)
{
List<Field> allFields = new Vector<Field>();
if (env.isTreeNode(classDefinition ))
{
allFields.addAll(classDefinition.getInheritedFields());
}
allFields.addAll(classDefinition.getFields()... | protected void prepare()
{
skip = true;
// skip = classDefinition.getFields().isEmpty();
// if(!skip)
{
List<Field> allFields = new Vector<Field>();
if (env.isTreeNode(classDefinition ))
{
allFields.addAll(classDefinition.getInheritedFields());
}
allFields.addAll(classDefinition.getFields()... |
diff --git a/src/butchery/common/blocks/TileEntityTub.java b/src/butchery/common/blocks/TileEntityTub.java
index afea463..60e2153 100644
--- a/src/butchery/common/blocks/TileEntityTub.java
+++ b/src/butchery/common/blocks/TileEntityTub.java
@@ -1,350 +1,351 @@
/**
* Copyright (c) Beliar, 2012
* https://github.com/... | true | true | public void updateEntity() {
boolean inventoryChanged = false;
if (!canSoak()) {
this.currentSoakTime = 0;
this.soakProgress = 0;
}
if (this.currentSoakTime > 0) {
--this.currentSoakTime;
ITubWaterModifier modifier;
modifier = (ITubWaterModifier) this.tubItemStacks[0].getItem();
int ticksNe... | public void updateEntity() {
boolean inventoryChanged = false;
if (!canSoak()) {
this.currentSoakTime = 0;
this.soakProgress = 0;
}
if (this.currentSoakTime > 0) {
--this.currentSoakTime;
ITubWaterModifier modifier;
modifier = (ITubWaterModifier) this.tubItemStacks[0].getItem();
int ticksNe... |
diff --git a/sirocco-cimi-command-line-tools/src/main/java/org/ow2/sirocco/apis/rest/cimi/tools/MachineImageShowCommand.java b/sirocco-cimi-command-line-tools/src/main/java/org/ow2/sirocco/apis/rest/cimi/tools/MachineImageShowCommand.java
index 82a66f1..9414f1e 100644
--- a/sirocco-cimi-command-line-tools/src/main/java... | false | true | public static void printMachineImage(final MachineImage machineImage, final ResourceSelectExpandParams showParams) {
Table table = CommandHelper.createResourceShowTable(machineImage, showParams);
if (showParams.isSelected("state")) {
table.addCell("state");
table.addCell(mac... | public static void printMachineImage(final MachineImage machineImage, final ResourceSelectExpandParams showParams) {
Table table = CommandHelper.createResourceShowTable(machineImage, showParams);
if (showParams.isSelected("state") && machineImage.getState() != null) {
table.addCell("sta... |
diff --git a/test-integration/db/src/main/java/org/teiid/test/client/TestClientTransaction.java b/test-integration/db/src/main/java/org/teiid/test/client/TestClientTransaction.java
index d5e0346bbb..f6d38b0511 100644
--- a/test-integration/db/src/main/java/org/teiid/test/client/TestClientTransaction.java
+++ b/test-int... | true | true | public void testCase() throws Exception {
TestLogger.logDebug("expected error: " + this.errorExpected);
TestLogger.logDebug("ID: " + query.geQuerySetID() + "-" + query.getQueryID());
QuerySQL[] queries = query.getQueries();
int l = queries.length;
try {
// need to set this so the underlying quer... | public void testCase() throws Exception {
TestLogger.logDebug("expected error: " + this.errorExpected);
TestLogger.logDebug("ID: " + query.geQuerySetID() + "-" + query.getQueryID());
QuerySQL[] queries = query.getQueries();
int l = queries.length;
try {
// need to set this so the underlying quer... |
diff --git a/src/mmb/foss/aueb/icong/DrawableAreaView.java b/src/mmb/foss/aueb/icong/DrawableAreaView.java
index fddb5c7..2e75b22 100644
--- a/src/mmb/foss/aueb/icong/DrawableAreaView.java
+++ b/src/mmb/foss/aueb/icong/DrawableAreaView.java
@@ -1,307 +1,306 @@
package mmb.foss.aueb.icong;
import java.io.InputStream... | true | true | public boolean onTouchEvent(MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
if (showTrash && onTrash(event.getX(), event.getY())) {
// if trash icon is visible and clicked delete the possibleTrash
// box
deleteBox(possibleTrash);
possibleTrash = null;
}
box ... | public boolean onTouchEvent(MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
if (showTrash && onTrash(event.getX(), event.getY())) {
// if trash icon is visible and clicked delete the possibleTrash
// box
deleteBox(possibleTrash);
possibleTrash = null;
}
box ... |
diff --git a/buildSrc/src/main/java/com/pieceof8/gradle/snapshot/SnapshotPlugin.java b/buildSrc/src/main/java/com/pieceof8/gradle/snapshot/SnapshotPlugin.java
index 32dfb75..6fa8355 100644
--- a/buildSrc/src/main/java/com/pieceof8/gradle/snapshot/SnapshotPlugin.java
+++ b/buildSrc/src/main/java/com/pieceof8/gradle/snap... | true | true | private void configureSnapshot(final @NonNull Project project) {
final TaskContainer tasks = project.getTasks();
final PluginContainer plugins = project.getPlugins();
val task = tasks.add(SNAPSHOT_TASK_NAME, SnapshotTask.class);
task.setDescription("Generates build information from ... | private void configureSnapshot(final @NonNull Project project) {
final TaskContainer tasks = project.getTasks();
final PluginContainer plugins = project.getPlugins();
val task = tasks.create(SNAPSHOT_TASK_NAME, SnapshotTask.class);
task.setDescription("Generates build information fr... |
diff --git a/project/src/main/java/org/springframework/roo/project/PomManagementServiceImpl.java b/project/src/main/java/org/springframework/roo/project/PomManagementServiceImpl.java
index bf67e1769..dcb9d0ae1 100644
--- a/project/src/main/java/org/springframework/roo/project/PomManagementServiceImpl.java
+++ b/project... | true | true | private String resolveRelativePath(String relativeTo, final String relativePath) {
if (relativeTo.endsWith(File.separator)) {
relativeTo = relativeTo.substring(0, relativeTo.length() - 1);
}
while (new File(relativeTo).isFile()) {
relativeTo = relativeTo.substring(0, relativeTo.lastIndexOf(File.separator))... | private String resolveRelativePath(String relativeTo, final String relativePath) {
if (relativeTo.endsWith(File.separator)) {
relativeTo = relativeTo.substring(0, relativeTo.length() - 1);
}
while (new File(relativeTo).isFile()) {
relativeTo = relativeTo.substring(0, relativeTo.lastIndexOf(File.separator))... |
diff --git a/kafka-eight/src/main/java/io/druid/firehose/kafka/KafkaEightDruidModule.java b/kafka-eight/src/main/java/io/druid/firehose/kafka/KafkaEightDruidModule.java
index b8ccc93365..658b64bf82 100644
--- a/kafka-eight/src/main/java/io/druid/firehose/kafka/KafkaEightDruidModule.java
+++ b/kafka-eight/src/main/java/... | true | true | public List<? extends Module> getJacksonModules()
{
return Arrays.<Module>asList(
new SimpleModule("KafkaEightFirehoseModule")
.registerSubtypes(
new NamedType(KafkaEightDruidModule.class, "kafka-0.8")
)
);
}
| public List<? extends Module> getJacksonModules()
{
return Arrays.<Module>asList(
new SimpleModule("KafkaEightFirehoseModule")
.registerSubtypes(
new NamedType(KafkaEightFirehoseFactory.class, "kafka-0.8")
)
);
}
|
diff --git a/tests/frontend/org/voltdb/regressionsuites/MultiConfigSuiteBuilder.java b/tests/frontend/org/voltdb/regressionsuites/MultiConfigSuiteBuilder.java
index b30d18c6e..cc3414143 100644
--- a/tests/frontend/org/voltdb/regressionsuites/MultiConfigSuiteBuilder.java
+++ b/tests/frontend/org/voltdb/regressionsuites/... | false | true | public boolean addServerConfig(VoltServerConfig config) {
final String enabled_configs = System.getenv().get("VOLT_REGRESSIONS");
System.out.println("VOLT REGRESSIONS ENABLED: " + enabled_configs);
if (!(enabled_configs == null || enabled_configs.contentEquals("all")))
{
... | public boolean addServerConfig(VoltServerConfig config) {
final String enabled_configs = System.getenv().get("VOLT_REGRESSIONS");
System.out.println("VOLT REGRESSIONS ENABLED: " + enabled_configs);
if (!(enabled_configs == null || enabled_configs.contentEquals("all")))
{
... |
diff --git a/src/main/java/org/apache/giraph/graph/Vertex.java b/src/main/java/org/apache/giraph/graph/Vertex.java
index 2c9fc88..8f9d056 100644
--- a/src/main/java/org/apache/giraph/graph/Vertex.java
+++ b/src/main/java/org/apache/giraph/graph/Vertex.java
@@ -1,199 +1,199 @@
/*
* Licensed to the Apache Software Fou... | false | true | final public void readFields(DataInput in) throws IOException {
vertexId =
BspUtils.createVertexIndex(getContext().getConfiguration());
vertexId.readFields(in);
boolean hasVertexValue = in.readBoolean();
if (hasVertexValue) {
vertexValue =
BspU... | final public void readFields(DataInput in) throws IOException {
vertexId =
BspUtils.<I>createVertexIndex(getContext().getConfiguration());
vertexId.readFields(in);
boolean hasVertexValue = in.readBoolean();
if (hasVertexValue) {
vertexValue =
B... |
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestBackupNode.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestBackupNode.java
index fc56eb48c2..f01be4b99f 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apa... | true | true | void testCheckpoint(StartupOption op) throws Exception {
Path file1 = new Path("/checkpoint.dat");
Path file2 = new Path("/checkpoint2.dat");
Path file3 = new Path("/backup.dat");
Configuration conf = new HdfsConfiguration();
HAUtil.setAllowStandbyReads(conf, true);
short replication = (short... | void testCheckpoint(StartupOption op) throws Exception {
Path file1 = new Path("/checkpoint.dat");
Path file2 = new Path("/checkpoint2.dat");
Path file3 = new Path("/backup.dat");
Configuration conf = new HdfsConfiguration();
HAUtil.setAllowStandbyReads(conf, true);
short replication = (short... |
diff --git a/gui/src/main/java/org/jboss/as/console/client/shared/subsys/jca/JcaPresenter.java b/gui/src/main/java/org/jboss/as/console/client/shared/subsys/jca/JcaPresenter.java
index b0660f63..c17cb6f8 100644
--- a/gui/src/main/java/org/jboss/as/console/client/shared/subsys/jca/JcaPresenter.java
+++ b/gui/src/main/ja... | true | true | public void createNewManager(final JcaWorkmanager entity) {
closeDialoge();
if(null==entity.getShortRunning() || entity.getShortRunning().isEmpty())
{
// provide a default short running thread pool config (mandatory)
WorkmanagerPool pool = factory.WorkmanagerPool().a... | public void createNewManager(final JcaWorkmanager entity) {
closeDialoge();
if(null==entity.getShortRunning() || entity.getShortRunning().isEmpty())
{
// provide a default short running thread pool config (mandatory)
WorkmanagerPool pool = factory.WorkmanagerPool().a... |
diff --git a/src/com/fsck/k9/activity/setup/AccountSettings.java b/src/com/fsck/k9/activity/setup/AccountSettings.java
index 7ea0df0..44e36cf 100644
--- a/src/com/fsck/k9/activity/setup/AccountSettings.java
+++ b/src/com/fsck/k9/activity/setup/AccountSettings.java
@@ -1,954 +1,954 @@
package com.fsck.k9.activity.set... | true | true | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
mAccount = Preferences.getPreferences(this).getAccount(accountUuid);
try
{
final Store store = mAccount.getR... | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
String accountUuid = getIntent().getStringExtra(EXTRA_ACCOUNT);
mAccount = Preferences.getPreferences(this).getAccount(accountUuid);
try
{
final Store store = mAccount.getR... |
diff --git a/nuget-tests/src/jetbrains/buildServer/nuget/tests/server/feed/server/NuGetServerStatusHolderTest.java b/nuget-tests/src/jetbrains/buildServer/nuget/tests/server/feed/server/NuGetServerStatusHolderTest.java
index a1ab08ac..72820008 100644
--- a/nuget-tests/src/jetbrains/buildServer/nuget/tests/server/feed/s... | true | true | protected void setUp() throws Exception {
m = new Mockery();
myIsEnabled = false;
mySettings = m.mock(NuGetServerRunnerSettings.class);
m.checking(new Expectations(){{
allowing(mySettings).isNuGetFeedEnabled(); will(new CustomAction("return myIsEnabled") {
public Object invoke(Invocation... | protected void setUp() throws Exception {
m = new Mockery();
myIsEnabled = false;
mySettings = m.mock(NuGetServerRunnerSettings.class);
m.checking(new Expectations(){{
allowing(mySettings).isNuGetFeedEnabled(); will(new CustomAction("return myIsEnabled") {
public Object invoke(Invocation... |
diff --git a/src/main/java/edu/wm/werewolf/service/GameService.java b/src/main/java/edu/wm/werewolf/service/GameService.java
index 287e0f3..9cf6ce7 100644
--- a/src/main/java/edu/wm/werewolf/service/GameService.java
+++ b/src/main/java/edu/wm/werewolf/service/GameService.java
@@ -1,159 +1,158 @@
package edu.wm.werewol... | false | true | public void newGame(int dayNightFreq)
{
killsDAO.reset();
playerDAO.reset();
gameDAO.reset();
Game game = new Game(dayNightFreq);
gameDAO.createGame(game);
List <Player> players = new ArrayList<>();
//List <MyUser> users = userDAO.getAllUsers();
List <User> users = userDAO.getAllUsers();
//f... | public void newGame(int dayNightFreq)
{
killsDAO.reset();
playerDAO.reset();
gameDAO.reset();
Game game = new Game(dayNightFreq);
gameDAO.createGame(game);
//List <MyUser> users = userDAO.getAllUsers();
List <User> users = userDAO.getAllUsers();
//for(MyUser u: users)
for (User u: users)
{... |
diff --git a/framework/src/java/org/apache/tapestry/components/IfBean.java b/framework/src/java/org/apache/tapestry/components/IfBean.java
index 691f79931..eb46c6913 100644
--- a/framework/src/java/org/apache/tapestry/components/IfBean.java
+++ b/framework/src/java/org/apache/tapestry/components/IfBean.java
@@ -1,202 +... | true | true | protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
{
boolean cycleRewinding = cycle.isRewinding();
// form may be null if component is not located in a form
IForm form = (IForm) cycle.getAttribute(TapestryUtils.FORM_ATTRIBUTE);
// If the cycle is rewindin... | protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
{
boolean cycleRewinding = cycle.isRewinding();
// form may be null if component is not located in a form
IForm form = (IForm) cycle.getAttribute(TapestryUtils.FORM_ATTRIBUTE);
// If the cycle is rewindin... |
diff --git a/src/main/java/hudson/plugins/perforce/PerforceSCM.java b/src/main/java/hudson/plugins/perforce/PerforceSCM.java
index ad77344..c6aa147 100644
--- a/src/main/java/hudson/plugins/perforce/PerforceSCM.java
+++ b/src/main/java/hudson/plugins/perforce/PerforceSCM.java
@@ -1,639 +1,639 @@
package hudson.plugins... | false | true | public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException {
try {
listener.getLogger().println("Performing sync with Perforce for: " + projectPath);
// Check to make sure our client is mapped t... | public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException {
try {
listener.getLogger().println("Performing sync with Perforce for: " + projectPath);
// Check to make sure our client is mapped t... |
diff --git a/src/core/model/src/main/java/it/geosolutions/geobatch/configuration/event/action/ActionConfiguration.java b/src/core/model/src/main/java/it/geosolutions/geobatch/configuration/event/action/ActionConfiguration.java
index 3c96c339..70f82dd9 100644
--- a/src/core/model/src/main/java/it/geosolutions/geobatch/c... | false | true | public ActionConfiguration clone() {
ActionConfiguration bc = (ActionConfiguration) super.clone();
bc.listenerIds = new ArrayList<String>(listenerIds);
for (String lid : listenerIds) {
bc.listenerIds.add(lid);
}
bc.listenerConfigurations = new ArrayList<Progress... | public ActionConfiguration clone() {
ActionConfiguration bc = (ActionConfiguration) super.clone();
bc.listenerIds = listenerIds == null ?
new ArrayList<String>() :
new ArrayList<String>(listenerIds);
bc.listenerConfigurations = new ArrayList<ProgressListenerConfigur... |
diff --git a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/editor/GFMarqueeToolEntry.java b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/editor/GFMarqueeToolEntry.java
index 7ed8946a..dd1dc1e1 100644
--- a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/interna... | true | true | public String getDescription() {
String description = super.getDescription();
if (description != null)
return description;
Object value = getToolProperty(MarqueeSelectionTool.PROPERTY_MARQUEE_BEHAVIOR);
if (value instanceof Integer) {
int selectionType = ((Integer) value).intValue();
if (selectionTyp... | public String getDescription() {
String description = super.getDescription();
if (description != null)
return description;
Object value = getToolProperty(MarqueeSelectionTool.PROPERTY_MARQUEE_BEHAVIOR);
if (value instanceof Integer) {
int selectionType = ((Integer) value).intValue();
// TODO Replace ... |
diff --git a/hokan_ng-core-engine/src/main/java/com/freakz/hokan_ng/core_engine/command/handlers/HoroCmd.java b/hokan_ng-core-engine/src/main/java/com/freakz/hokan_ng/core_engine/command/handlers/HoroCmd.java
index ba87ab4..6909aa9 100644
--- a/hokan_ng-core-engine/src/main/java/com/freakz/hokan_ng/core_engine/command/... | true | true | public void handleRequest(EngineRequest request, EngineResponse response, JSAPResult results) throws HokanException {
String horo = results.getString(ARG_HORO);
HoroUpdater horoUpdater = (HoroUpdater) updaterManagerService.getUpdater("horoUpdater");
UpdaterData updaterData = new UpdaterData();
horoUp... | public void handleRequest(EngineRequest request, EngineResponse response, JSAPResult results) throws HokanException {
String horo = results.getString(ARG_HORO);
HoroUpdater horoUpdater = (HoroUpdater) updaterManagerService.getUpdater("horoUpdater");
UpdaterData updaterData = new UpdaterData();
horoUp... |
diff --git a/src/main/java/se/nctrl/jenkins/plugin/CTSuiteLogParser.java b/src/main/java/se/nctrl/jenkins/plugin/CTSuiteLogParser.java
index 27f9119..68de2c7 100644
--- a/src/main/java/se/nctrl/jenkins/plugin/CTSuiteLogParser.java
+++ b/src/main/java/se/nctrl/jenkins/plugin/CTSuiteLogParser.java
@@ -1,351 +1,351 @@
... | true | true | private void parseField(String fieldname, String value) throws IOException
{
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
logger.log(Level.FINE, "parsed : field = {0}, value = {1}", new Object[]{fieldname, value});
Fields f = Fields.valueOf(fieldname.toUpperCase()... | private void parseField(String fieldname, String value) throws IOException
{
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
logger.log(Level.FINE, "parsed : field = {0}, value = {1}", new Object[]{fieldname, value});
Fields f = Fields.valueOf(fieldname.toUpperCase()... |
diff --git a/Character_Equipment_Impl/src/net/sf/anathema/character/equipment/impl/character/view/EquipmentObjectView.java b/Character_Equipment_Impl/src/net/sf/anathema/character/equipment/impl/character/view/EquipmentObjectView.java
index 01270a5ff7..965e466e56 100644
--- a/Character_Equipment_Impl/src/net/sf/anathem... | true | true | public BooleanModel addStats(String description) {
BooleanModel isSelectedModel = new BooleanModel();
JCheckBox box = ActionWidgetFactory.createCheckBox(new SmartToggleAction(isSelectedModel, description));
boxes.put(isSelectedModel, box);
GridDialogLayout layout = new GridDialogLayout(1, false);... | public BooleanModel addStats(String description) {
BooleanModel isSelectedModel = new BooleanModel();
JCheckBox box = ActionWidgetFactory.createCheckBox(new SmartToggleAction(isSelectedModel, description));
boxes.put(isSelectedModel, box);
GridDialogLayout layout = new GridDialogLayout(1, false);... |
diff --git a/src/org/plantuml/idea/plantuml/PlantUml.java b/src/org/plantuml/idea/plantuml/PlantUml.java
index 0271f9e..7d43c8a 100644
--- a/src/org/plantuml/idea/plantuml/PlantUml.java
+++ b/src/org/plantuml/idea/plantuml/PlantUml.java
@@ -1,122 +1,122 @@
package org.plantuml.idea.plantuml;
import net.sourceforge.... | true | true | public static PlantUmlResult render(String source, ImageFormat format) {
ByteArrayOutputStream os = new ByteArrayOutputStream();
String desc = null;
String error = null;
try {
// image generation.
SourceStringReader reader = new SourceStringReader(source);
... | public static PlantUmlResult render(String source, ImageFormat format) {
ByteArrayOutputStream os = new ByteArrayOutputStream();
String desc = null;
String error = null;
try {
// image generation.
SourceStringReader reader = new SourceStringReader(source);
... |
diff --git a/src/AdditionalBuildcraftObjects/ItemABOPipe.java b/src/AdditionalBuildcraftObjects/ItemABOPipe.java
index 24ca7f6..f8ab719 100644
--- a/src/AdditionalBuildcraftObjects/ItemABOPipe.java
+++ b/src/AdditionalBuildcraftObjects/ItemABOPipe.java
@@ -1,94 +1,94 @@
/**
* Copyright (C) 2011 Flow86
*
* Addi... | true | true | public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int i, int j, int k, int l) {
int blockID = mod_AdditionalBuildcraftObjects.blockABOPipe.blockID;
if (world.getBlockId(i, j, k) == Block.snow.blockID) {
l = 0;
} else {
if (l == 0) {
j--;
}
if (l == 1) {
j+... | public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int i, int j, int k, int l) {
int blockID = mod_AdditionalBuildcraftObjects.blockABOPipe.blockID;
if (world.getBlockId(i, j, k) == Block.snow.blockID) {
l = 0;
} else {
if (l == 0) {
j--;
}
if (l == 1) {
j+... |
diff --git a/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/Activator.java b/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/Activator.java
index 21efc8b53..391d10b19 100644
--- a/org.eclipse.jubula.client.core/src/org/eclipse/jubula/client/core/Activator.java
+++ b/org.eclipse.jubu... | true | true | public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
// initialize tie logging facility
LoggerContext lc = (LoggerContext)LoggerFactory.getILoggerFactory();
try {
JoranConfigurator configurator = new JoranConfigurator();... | public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
// initialize the logging facility
LoggerContext lc = (LoggerContext)LoggerFactory.getILoggerFactory();
try {
JoranConfigurator configurator = new JoranConfigurator();... |
diff --git a/src/java/org/joshy/html/swing/DOMInspector.java b/src/java/org/joshy/html/swing/DOMInspector.java
index 150cb427..91bbf9f9 100755
--- a/src/java/org/joshy/html/swing/DOMInspector.java
+++ b/src/java/org/joshy/html/swing/DOMInspector.java
@@ -1,509 +1,509 @@
package org.joshy.html.swing;
import java... | true | true | public Object getValueAt( int row, int col ) {
XRProperty prop = (XRProperty)_properties.get(row);
XRValue actual = prop.actualValue();
Object val = null;
switch( col ) {
case 0:
val = prop.propertyName();
... | public Object getValueAt( int row, int col ) {
XRProperty prop = (XRProperty)_properties.get(row);
XRValue actual = prop.actualValue();
Object val = null;
switch( col ) {
case 0:
val = prop.propertyName();
... |
diff --git a/activemq-core/src/test/java/org/apache/activemq/transport/discovery/DiscoveryUriTest.java b/activemq-core/src/test/java/org/apache/activemq/transport/discovery/DiscoveryUriTest.java
index 9f65e08c4..fe1f9522d 100644
--- a/activemq-core/src/test/java/org/apache/activemq/transport/discovery/DiscoveryUriTest.... | true | true | public void testConnect() throws Exception {
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("discovery:(multicast://default?group=test)?reconnectDelay=1000&maxReconnectAttempts=30&useExponentialBackOff=false");
Connection conn = factory.createConnection();
conn.start();
... | public void testConnect() throws Exception {
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("discovery:(multicast://default?group=test&reconnectDelay=1000&maxReconnectAttempts=30&useExponentialBackOff=false)");
Connection conn = factory.createConnection();
conn.start();
... |
diff --git a/src/main/java/org/basex/query/func/FNQName.java b/src/main/java/org/basex/query/func/FNQName.java
index fa99e28d7..a0ba23865 100644
--- a/src/main/java/org/basex/query/func/FNQName.java
+++ b/src/main/java/org/basex/query/func/FNQName.java
@@ -1,164 +1,161 @@
package org.basex.query.func;
import static... | false | true | public Item item(final QueryContext ctx, final InputInfo ii)
throws QueryException {
// functions have 1 or 2 arguments...
final Item it = expr[0].item(ctx, input);
final Item it2 = expr.length == 2 ? expr[1].item(ctx, input) : null;
switch(def) {
case RESQNAME:
return it == null ... | public Item item(final QueryContext ctx, final InputInfo ii)
throws QueryException {
// functions have 1 or 2 arguments...
final Item it = expr[0].item(ctx, input);
final Item it2 = expr.length == 2 ? expr[1].item(ctx, input) : null;
switch(def) {
case RESQNAME:
return it == null ... |
diff --git a/src/gui/REPLTextArea.java b/src/gui/REPLTextArea.java
index 289efc5..6dbef5c 100644
--- a/src/gui/REPLTextArea.java
+++ b/src/gui/REPLTextArea.java
@@ -1,152 +1,154 @@
package gui;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
... | false | true | public REPLTextArea(final MainFrame main) {
Main = main;
commandHistory = new ArrayList<String>();
setPreferredSize(new Dimension(100, 100));
// When the user hits the 'ENTER' key, check for a complete command.
code.getInputMap().put(
KeyStroke.getKeyStroke("ENTER"),
... | public REPLTextArea(final MainFrame main) {
Main = main;
commandHistory = new ArrayList<String>();
setPreferredSize(new Dimension(100, 100));
// When the user hits the 'ENTER' key, check for a complete command.
code.getInputMap().put(
KeyStroke.getKeyStroke("ENTER"),
... |
diff --git a/src/core/java/org/wyona/yanel/core/source/SourceResolver.java b/src/core/java/org/wyona/yanel/core/source/SourceResolver.java
index 3e3aa7c4e..562a551ba 100644
--- a/src/core/java/org/wyona/yanel/core/source/SourceResolver.java
+++ b/src/core/java/org/wyona/yanel/core/source/SourceResolver.java
@@ -1,106 +... | false | true | public Source resolve(String uri, String base) throws SourceException {
if (log.isDebugEnabled()) {
log.debug("URI to be resolved: " + uri);
log.debug("Base: "+ base);
}
int colonIndex = uri.indexOf(":/");
String uriScheme = "";
if (colonIndex <= 0) {... | public Source resolve(String uri, String base) throws SourceException {
if (log.isDebugEnabled()) {
log.debug("URI to be resolved: " + uri);
log.debug("Base: "+ base);
}
// NOTE: One cannot use ":/" in order to find the protocol/scheme, because one can also specifiy ... |
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/ContainerTreeIterator.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/ContainerTreeIterator.java
index b7ded696..abb3f04a 100644
--- a/org.eclipse.egit.core/src/org/eclipse/egit/core/ContainerTreeIterator.java
+++ b/org.eclipse.egit.core/src/org/eclips... | true | true | ResourceEntry(final IResource f) {
rsrc = f;
switch (f.getType()) {
case IResource.FILE:
if (FS.DETECTED.canExecute(asFile()))
mode = FileMode.EXECUTABLE_FILE;
else
mode = FileMode.REGULAR_FILE;
break;
case IResource.PROJECT:
case IResource.FOLDER: {
final IContainer c = (ICo... | ResourceEntry(final IResource f) {
rsrc = f;
switch (f.getType()) {
case IResource.FILE:
if (FS.DETECTED.supportsExecute()
&& FS.DETECTED.canExecute(asFile()))
mode = FileMode.EXECUTABLE_FILE;
else
mode = FileMode.REGULAR_FILE;
break;
case IResource.PROJECT:
case IResource.... |
diff --git a/flexodesktop/model/flexopamela/src/main/java/org/openflexo/model/factory/XMLDeserializer.java b/flexodesktop/model/flexopamela/src/main/java/org/openflexo/model/factory/XMLDeserializer.java
index 6537b633a..7bb5e650a 100644
--- a/flexodesktop/model/flexopamela/src/main/java/org/openflexo/model/factory/XMLD... | true | true | private <I> Object buildObjectFromNodeAndModelEntity(Element node, ModelEntity<I> modelEntity) throws InvalidDataException,
ModelDefinitionException {
Object currentDeserializedReference = null;
Attribute idAttribute = node.getAttribute(ID);
Attribute idrefAttribute = node.getAttribute(ID_REF);
if (idrefAtt... | private <I> Object buildObjectFromNodeAndModelEntity(Element node, ModelEntity<I> modelEntity) throws InvalidDataException,
ModelDefinitionException {
Object currentDeserializedReference = null;
Attribute idAttribute = node.getAttribute(ID);
Attribute idrefAttribute = node.getAttribute(ID_REF);
if (idrefAtt... |
diff --git a/src/main/java/com/eyeq/pivot4j/primefaces/ui/PrimeFacesPivotRenderer.java b/src/main/java/com/eyeq/pivot4j/primefaces/ui/PrimeFacesPivotRenderer.java
index f7cfe54..36f2854 100644
--- a/src/main/java/com/eyeq/pivot4j/primefaces/ui/PrimeFacesPivotRenderer.java
+++ b/src/main/java/com/eyeq/pivot4j/primefaces... | true | true | public void startCell(RenderContext context, List<CellCommand<?>> commands) {
this.column = new Column();
String id = "col-" + column.hashCode();
column.setId(id);
column.setColspan(context.getColSpan());
column.setRowspan(context.getRowSpan());
String styleClass;
switch (context.getCellType()) {
c... | public void startCell(RenderContext context, List<CellCommand<?>> commands) {
this.column = new Column();
String id = "col-" + column.hashCode();
column.setId(id);
column.setColspan(context.getColSpan());
column.setRowspan(context.getRowSpan());
String styleClass;
switch (context.getCellType()) {
c... |
diff --git a/core/src/org/tangram/view/velocity/IncludeDirective.java b/core/src/org/tangram/view/velocity/IncludeDirective.java
index c5ca115b..da064085 100644
--- a/core/src/org/tangram/view/velocity/IncludeDirective.java
+++ b/core/src/org/tangram/view/velocity/IncludeDirective.java
@@ -1,89 +1,86 @@
/**
*
* C... | false | true | public boolean render(InternalContextAdapter context, Writer writer, Node node) throws IOException {
HttpServletRequest request = (HttpServletRequest)context.get("request");
HttpServletResponse response = (HttpServletResponse)context.get("response");
/* getting direct parameters */
... | public boolean render(InternalContextAdapter context, Writer writer, Node node) throws IOException {
HttpServletRequest request = (HttpServletRequest)context.get("request");
HttpServletResponse response = (HttpServletResponse)context.get("response");
/* getting direct parameters */
... |
diff --git a/src/minecraft/com/github/AbrarSyed/SecretRooms/SecretKey.java b/src/minecraft/com/github/AbrarSyed/SecretRooms/SecretKey.java
index d170c71..a8b99bf 100644
--- a/src/minecraft/com/github/AbrarSyed/SecretRooms/SecretKey.java
+++ b/src/minecraft/com/github/AbrarSyed/SecretRooms/SecretKey.java
@@ -1,83 +1,83 ... | true | true | public void keyUp(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd)
{
/*
// check if its in SMP
if (ModLoader.getMinecraftInstance().theWorld != null && ModLoader.getMinecraftInstance().theWorld.isRemote)
{
// create packet AND set channel
Packet250CustomPayload packet = new Packet... | public void keyUp(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd)
{
/*
// check if its in SMP
if (ModLoader.getMinecraftInstance().theWorld != null && ModLoader.getMinecraftInstance().theWorld.isRemote)
{
// create packet AND set channel
Packet250CustomPayload packet = new Packet... |
diff --git a/modules/org.restlet.ext.odata/src/org/restlet/ext/odata/internal/edm/MetadataReader.java b/modules/org.restlet.ext.odata/src/org/restlet/ext/odata/internal/edm/MetadataReader.java
index 783d8c8dd..e65c47de9 100644
--- a/modules/org.restlet.ext.odata/src/org/restlet/ext/odata/internal/edm/MetadataReader.jav... | true | true | public void startElement(String uri, String localName, String name,
Attributes attrs) throws SAXException {
if ("schema".equalsIgnoreCase(localName)) {
pushState(State.SCHEMA);
currentSchema = new Schema();
this.currentMetadata.getSchemas().add(currentSchema)... | public void startElement(String uri, String localName, String name,
Attributes attrs) throws SAXException {
if ("schema".equalsIgnoreCase(localName)) {
pushState(State.SCHEMA);
currentSchema = new Schema();
this.currentMetadata.getSchemas().add(currentSchema)... |
diff --git a/src/jp/tnasu/f1tvnews/controller/RssController.java b/src/jp/tnasu/f1tvnews/controller/RssController.java
index 5284bef..68bdb8e 100644
--- a/src/jp/tnasu/f1tvnews/controller/RssController.java
+++ b/src/jp/tnasu/f1tvnews/controller/RssController.java
@@ -1,259 +1,262 @@
package jp.tnasu.f1tvnews.controll... | true | true | private void registGoogleCalendar(HtmlDocument htmlDocument) {
if (googleClinet.isInitialize()) {
return;
}
try {
HtmlContent htmlContent = htmlDocument.getHtmlContentList().get(0);
Key key = googleCalendarDtoMapDao.getKey();
GoogleCalendarDtoMap googleCalendarDtoMap = googleCalendarDtoMapDao.get(key... | private void registGoogleCalendar(HtmlDocument htmlDocument) {
if (googleClinet.isInitialize()) {
return;
}
try {
HtmlContent htmlContent = htmlDocument.getHtmlContentList().get(0);
Key key = googleCalendarDtoMapDao.getKey();
GoogleCalendarDtoMap googleCalendarDtoMap = googleCalendarDtoMapDao.get(key... |
diff --git a/src/org/usfirst/frc1923/AscentRobot.java b/src/org/usfirst/frc1923/AscentRobot.java
index cde7b36..e32e7c7 100644
--- a/src/org/usfirst/frc1923/AscentRobot.java
+++ b/src/org/usfirst/frc1923/AscentRobot.java
@@ -1,183 +1,187 @@
package org.usfirst.frc1923;
import org.usfirst.frc1923.event.DriveGearDown... | false | true | public void teleopPeriodic() {
{ // Driving Scope
if (Components.preferences.getBoolean("experimental_drive", DefaultConfiguration.EXPERIMENTAL_DRIVE)) {
double forwardMagnitude = -Components.leftDriveStick.getCoalescedY();
double curvature = Components.rightDriveStick.getCoalescedX();
double attachme... | public void teleopPeriodic() {
{ // Driving Scope
if (Components.preferences.getBoolean("experimental_drive", DefaultConfiguration.EXPERIMENTAL_DRIVE)) {
double forwardMagnitude = -Components.leftDriveStick.getCoalescedY();
double curvature = Components.rightDriveStick.getCoalescedX();
double attachme... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.