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/plugins/org.eclipse.vjet.eclipse.core/codeassist/org/eclipse/vjet/eclipse/internal/codeassist/select/translator/JstFunctionRefTypeTranslator.java b/plugins/org.eclipse.vjet.eclipse.core/codeassist/org/eclipse/vjet/eclipse/internal/codeassist/select/translator/JstFunctionRefTypeTranslator.java
index 715e374... | true | true | public IModelElement[] convert(IVjoSourceModule module, IJstNode jstNode) {
if(!(jstNode instanceof JstFunctionRefType)){
return null;
}
IJstType jstType = (IJstType)jstNode.getParentNode();
IScriptProject sProject = null;
if (module != null) {
sProject = module.getScriptProject();
}
IModelEleme... | public IModelElement[] convert(IVjoSourceModule module, IJstNode jstNode) {
if(!(jstNode instanceof JstFunctionRefType)){
return null;
}
IJstType jstType = (IJstType)jstNode.getParentNode();
IScriptProject sProject = null;
if (module != null) {
sProject = module.getScriptProject();
}
IModelEleme... |
diff --git a/src/main/java/de/fiz/akubra/hdfs/HDFSIdIterator.java b/src/main/java/de/fiz/akubra/hdfs/HDFSIdIterator.java
index f53e6d5..cf82dee 100644
--- a/src/main/java/de/fiz/akubra/hdfs/HDFSIdIterator.java
+++ b/src/main/java/de/fiz/akubra/hdfs/HDFSIdIterator.java
@@ -1,104 +1,104 @@
/*
Copyright 2011 FIZ Karl... | true | true | private boolean updateQueues() {
if (fileQueue.isEmpty()) {
if (dirQueue.isEmpty()) {
return false; // all queues are empty
}
Path dir = dirQueue.poll();
try {
for (FileStatus stat : hdfs.listStatus(dir)) {
i... | private boolean updateQueues() {
if (fileQueue.isEmpty()) {
if (dirQueue.isEmpty()) {
return false; // all queues are empty
}
Path dir = dirQueue.poll();
try {
for (FileStatus stat : hdfs.listStatus(dir)) {
i... |
diff --git a/Plugins/ExternalServices/Edemande/src/java/fr/capwebct/capdemat/plugins/externalservices/edemande/service/EdemandeService.java b/Plugins/ExternalServices/Edemande/src/java/fr/capwebct/capdemat/plugins/externalservices/edemande/service/EdemandeService.java
index e69450136..88b265601 100644
--- a/Plugins/Ext... | false | true | private void submitRequest(StudyGrantRequest sgr, String psCodeTiers, boolean firstSending) {
Map<String, Object> model = new HashMap<String, Object>();
String requestData = null;
if (!firstSending) {
try {
requestData = edemandeClient.chargerDemande(psCodeTiers, ... | private void submitRequest(StudyGrantRequest sgr, String psCodeTiers, boolean firstSending) {
Map<String, Object> model = new HashMap<String, Object>();
String requestData = null;
if (!firstSending) {
try {
requestData = edemandeClient.chargerDemande(psCodeTiers, ... |
diff --git a/UUID.java b/UUID.java
index a2cf795..e063cf6 100644
--- a/UUID.java
+++ b/UUID.java
@@ -1,51 +1,51 @@
import java.security.SecureRandom;
public final class UUID {
private static long lastTime = Long.MIN_VALUE;
// use a short instead of a byte to work around Java's lack of unsigned types.
... | true | true | public static synchronized java.util.UUID next() {
// just pad out to microseconds for now.
long time = System.currentTimeMillis() * 1000;
// handle the clock moving backwards.
if (time < lastTime) time = lastTime;
// handle multiple ids generated "simultane... | public static synchronized java.util.UUID next() {
// just pad out to microseconds for now.
long time = System.currentTimeMillis() * 1000;
// handle the clock moving backwards.
if (time < lastTime) time = lastTime;
// handle multiple ids generated "simultane... |
diff --git a/statcvs-xml2/src/de/berlios/statcvs/xml/chart/AbstractTimeSeriesChart.java b/statcvs-xml2/src/de/berlios/statcvs/xml/chart/AbstractTimeSeriesChart.java
index df0af32..ef9dfbf 100644
--- a/statcvs-xml2/src/de/berlios/statcvs/xml/chart/AbstractTimeSeriesChart.java
+++ b/statcvs-xml2/src/de/berlios/statcvs/xm... | false | true | protected Map createTimeSerieses(Grouper grouper, Iterator it, RevisionVisitorFactory factory)
{
Hashtable timeSeriesByGroup = new Hashtable();
Hashtable visitorByGroup = new Hashtable();
ReportSettings.Predicate predicate = getSettings().getOutputPredicate();
while (it.hasNext()) {
CvsRevision rev = (Cv... | protected Map createTimeSerieses(Grouper grouper, Iterator it, RevisionVisitorFactory factory)
{
Hashtable timeSeriesByGroup = new Hashtable();
Hashtable visitorByGroup = new Hashtable();
ReportSettings.Predicate predicate = getSettings().getOutputPredicate();
while (it.hasNext()) {
CvsRevision rev = (Cv... |
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/action/PushAction.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/action/PushAction.java
index 7192cae0..02e24e77 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/synchronize/action/PushAction.java
+++... | false | true | protected SynchronizeModelOperation getSubscriberOperation(
ISynchronizePageConfiguration configuration, IDiffElement[] elements) {
final int timeout = Activator.getDefault().getPreferenceStore()
.getInt(UIPreferences.REMOTE_CONNECTION_TIMEOUT);
return new SynchronizeModelOperation(configuration, elements)... | protected SynchronizeModelOperation getSubscriberOperation(
ISynchronizePageConfiguration configuration, IDiffElement[] elements) {
final int timeout = Activator.getDefault().getPreferenceStore()
.getInt(UIPreferences.REMOTE_CONNECTION_TIMEOUT);
return new SynchronizeModelOperation(configuration, elements)... |
diff --git a/src/jar/resolver/java/org/mulgara/resolver/StringPoolSession.java b/src/jar/resolver/java/org/mulgara/resolver/StringPoolSession.java
index fd08d9bd..b6e9f86f 100644
--- a/src/jar/resolver/java/org/mulgara/resolver/StringPoolSession.java
+++ b/src/jar/resolver/java/org/mulgara/resolver/StringPoolSession.ja... | false | true | private SPObject mapRelative(SPObject spObject) {
if (
spObject != null &&
spObject.getTypeCategory() == SPObject.TypeCategory.URI
) {
URI uri = ((SPURI)spObject).getURI();
// Check if the URI is relative to the database URI.
// The user info of the uri is ignored and is str... | private SPObject mapRelative(SPObject spObject) {
if (
spObject != null &&
spObject.getTypeCategory() == SPObject.TypeCategory.URI
) {
URI uri = ((SPURI)spObject).getURI();
// Check if the URI is relative to the database URI.
// The user info of the uri is ignored and is str... |
diff --git a/hopper/src/main/java/org/atomhopper/abdera/WorkspaceHandler.java b/hopper/src/main/java/org/atomhopper/abdera/WorkspaceHandler.java
index be4622c4..a42437e5 100644
--- a/hopper/src/main/java/org/atomhopper/abdera/WorkspaceHandler.java
+++ b/hopper/src/main/java/org/atomhopper/abdera/WorkspaceHandler.java
@... | true | true | public TargetAwareAbstractCollectionAdapter getAnsweringAdapter(RequestContext rc) {
final String feedSpec = rc.getTarget().getParameter(TargetResolverField.FEED.toString());
TargetAwareAbstractCollectionAdapter collectionAdapter = null;
if(!StringUtils.isBlank(feedSpec)) {
... | public TargetAwareAbstractCollectionAdapter getAnsweringAdapter(RequestContext rc) {
final String feedSpec = rc.getTarget().getParameter(TargetResolverField.FEED.toString());
TargetAwareAbstractCollectionAdapter collectionAdapter = null;
if(!StringUtils.isBlank(feedSpec)) {
... |
diff --git a/amibe/src/org/jcae/mesh/amibe/algos3d/AbstractAlgoHalfEdge.java b/amibe/src/org/jcae/mesh/amibe/algos3d/AbstractAlgoHalfEdge.java
index d0960935..e4bc4457 100644
--- a/amibe/src/org/jcae/mesh/amibe/algos3d/AbstractAlgoHalfEdge.java
+++ b/amibe/src/org/jcae/mesh/amibe/algos3d/AbstractAlgoHalfEdge.java
@@ -1... | true | true | private boolean processAllHalfEdges()
{
boolean noSwap = false;
Stack stackNotProcessed = new Stack();
double cost = -1.0;
while (!tree.isEmpty() && nrTriangles > nrFinal)
{
preProcessEdge();
HalfEdge current = null;
Iterator itt = tree.iterator();
if ((processed % 10000) == 0)
thisLogger().... | private boolean processAllHalfEdges()
{
boolean noSwap = false;
Stack stackNotProcessed = new Stack();
double cost = -1.0;
while (!tree.isEmpty() && nrTriangles > nrFinal)
{
preProcessEdge();
HalfEdge current = null;
Iterator itt = tree.iterator();
if ((processed % 10000) == 0)
thisLogger().... |
diff --git a/giraph-core/src/main/java/org/apache/giraph/utils/InternalVertexRunner.java b/giraph-core/src/main/java/org/apache/giraph/utils/InternalVertexRunner.java
index 7989483..7e0b955 100644
--- a/giraph-core/src/main/java/org/apache/giraph/utils/InternalVertexRunner.java
+++ b/giraph-core/src/main/java/org/apach... | true | true | public static Iterable<String> run(
GiraphClasses classes,
Map<String, String> params,
String[] vertexInputData,
String[] edgeInputData) throws Exception {
File tmpDir = null;
try {
// Prepare input file, output folder and temporary folders
tmpDir = FileUtils.createTestDir(... | public static Iterable<String> run(
GiraphClasses classes,
Map<String, String> params,
String[] vertexInputData,
String[] edgeInputData) throws Exception {
File tmpDir = null;
try {
// Prepare input file, output folder and temporary folders
tmpDir = FileUtils.createTestDir(... |
diff --git a/src/web/org/openmrs/web/dwr/RelationshipListItem.java b/src/web/org/openmrs/web/dwr/RelationshipListItem.java
index c8c88c1d..4d3be02b 100644
--- a/src/web/org/openmrs/web/dwr/RelationshipListItem.java
+++ b/src/web/org/openmrs/web/dwr/RelationshipListItem.java
@@ -1,137 +1,135 @@
/**
* The contents of ... | false | true | public RelationshipListItem(Relationship r) {
relationshipId = r.getRelationshipId();
aIsToB = r.getRelationshipType().getaIsToB();
bIsToA = r.getRelationshipType().getbIsToA();
Person p = r.getPersonA();
personA = p.getPersonName().toString();
personAId = p.getPersonId();
try {
Patient pat = Conte... | public RelationshipListItem(Relationship r) {
relationshipId = r.getRelationshipId();
aIsToB = r.getRelationshipType().getaIsToB();
bIsToA = r.getRelationshipType().getbIsToA();
Person p = r.getPersonA();
personA = p.getPersonName().toString();
personAId = p.getPersonId();
try {
personAType = p.isP... |
diff --git a/flexoserver/flexoexternalbuilders/src/main/java/org/openflexo/builders/utils/FlexoBuilderProjectReferenceLoader.java b/flexoserver/flexoexternalbuilders/src/main/java/org/openflexo/builders/utils/FlexoBuilderProjectReferenceLoader.java
index c2077e0f6..f70624919 100644
--- a/flexoserver/flexoexternalbuilde... | true | true | public FlexoProject loadProject(FlexoProjectReference reference, boolean silentlyOnly) {
FlexoEditor editor = projectLoader.editorForProjectURIAndRevision(reference.getURI(), reference.getRevision());
if (editor != null) {
return editor.getProject();
}
if (serverURL != null && login != null && password != n... | public FlexoProject loadProject(FlexoProjectReference reference, boolean silentlyOnly) {
FlexoEditor editor = projectLoader.editorForProjectURIAndRevision(reference.getURI(), reference.getRevision());
if (editor != null) {
return editor.getProject();
}
if (serverURL != null && login != null && password != n... |
diff --git a/src/soot/javaToJimple/PolyglotMethodSource.java b/src/soot/javaToJimple/PolyglotMethodSource.java
index 3b566ea9..46f7d29e 100644
--- a/src/soot/javaToJimple/PolyglotMethodSource.java
+++ b/src/soot/javaToJimple/PolyglotMethodSource.java
@@ -1,240 +1,240 @@
/* Soot - a J*va Optimization Framework
* Copy... | true | true | public void addAssertInits(soot.Body body){
// if class is inner get desired assertion status from outer most class
soot.SootClass assertStatusClass = body.getMethod().getDeclaringClass();
HashMap innerMap = soot.javaToJimple.InitialResolver.v().getInnerClassInfoMap();
while ((innerM... | public void addAssertInits(soot.Body body){
// if class is inner get desired assertion status from outer most class
soot.SootClass assertStatusClass = body.getMethod().getDeclaringClass();
HashMap innerMap = soot.javaToJimple.InitialResolver.v().getInnerClassInfoMap();
while ((innerM... |
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/ScheduledTaskContainer.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/ScheduledTaskContainer.java
index af7a2126a..f1db7796d 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/c... | true | true | public Collection<ITask> getChildren() {
// TODO: Cache this information until the next modification to pertinent data
Set<ITask> children = new HashSet<ITask>();
Calendar cal = TaskActivityUtil.getCalendar();
// All tasks scheduled for this date range
for (ITask task : activityManager.getScheduledTasks(... | public Collection<ITask> getChildren() {
// TODO: Cache this information until the next modification to pertinent data
Set<ITask> children = new HashSet<ITask>();
Calendar cal = TaskActivityUtil.getCalendar();
// All tasks scheduled for this date range
for (ITask task : activityManager.getScheduledTasks(... |
diff --git a/ngrinder-controller/src/main/java/org/ngrinder/chart/controller/MonitorController.java b/ngrinder-controller/src/main/java/org/ngrinder/chart/controller/MonitorController.java
index 4582d604..b9ce0f32 100644
--- a/ngrinder-controller/src/main/java/org/ngrinder/chart/controller/MonitorController.java
+++ b/... | false | true | private void getMonitorDataJava(Map<String, Object> rtnMap, String ip, long startTime, long finishTime, int imgWidth) {
List<JavaDataModel> javaMonitorData = monitorService.getJavaMonitorData(ip, startTime, finishTime);
int pointCount = imgWidth / 10;
int lineObject, current, interval = 0;
List<Object> heap... | private void getMonitorDataJava(Map<String, Object> rtnMap, String ip, long startTime, long finishTime, int imgWidth) {
List<JavaDataModel> javaMonitorData = monitorService.getJavaMonitorData(ip, startTime, finishTime);
int pointCount = imgWidth / 10; // TODO: The imgWidth should be checked if it is less then 0,... |
diff --git a/src/main/java/edu/rit/asksg/web/ConversationController.java b/src/main/java/edu/rit/asksg/web/ConversationController.java
index 837b369..9f7092e 100755
--- a/src/main/java/edu/rit/asksg/web/ConversationController.java
+++ b/src/main/java/edu/rit/asksg/web/ConversationController.java
@@ -1,179 +1,179 @@
pa... | false | true | private void bootstrapProviders() {
final Service twiloprovider = providerService.findServiceByTypeAndIdentifierEquals(Twilio.class, "5852865275");
if (twiloprovider == null) {
Service twilio = new Twilio();
TwilioConfig twilioconfig = new TwilioConfig();
twilioconfig.setIdentifier("5852865275");
twil... | private void bootstrapProviders() {
final Service twiloprovider = providerService.findServiceByTypeAndIdentifierEquals(Twilio.class, "+15852865275");
if (twiloprovider == null) {
Service twilio = new Twilio();
TwilioConfig twilioconfig = new TwilioConfig();
twilioconfig.setIdentifier("+15852865275");
... |
diff --git a/src/org/opensolaris/opengrok/analysis/AnalyzerGuru.java b/src/org/opensolaris/opengrok/analysis/AnalyzerGuru.java
index e97b12cf..9068f82c 100644
--- a/src/org/opensolaris/opengrok/analysis/AnalyzerGuru.java
+++ b/src/org/opensolaris/opengrok/analysis/AnalyzerGuru.java
@@ -1,562 +1,564 @@
/*
* CDDL HEAD... | false | true | public static void main(String[] args) throws Exception {
AnalyzerGuru af = new AnalyzerGuru();
System.out.println("<pre wrap=true>");
for (String arg : args) {
try {
FileAnalyzerFactory an = AnalyzerGuru.find(arg);
File f = new File(arg);
... | public static void main(String[] args) {
AnalyzerGuru af = new AnalyzerGuru();
System.out.println("<pre wrap=true>");
for (String arg : args) {
try {
File f = new File(arg);
BufferedInputStream in = new BufferedInputStream(new FileInputStream(f));
... |
diff --git a/src/main/java/sfs/async/handler/http/reader/HTTPMessageReader.java b/src/main/java/sfs/async/handler/http/reader/HTTPMessageReader.java
index 57a463e..1bd8d55 100644
--- a/src/main/java/sfs/async/handler/http/reader/HTTPMessageReader.java
+++ b/src/main/java/sfs/async/handler/http/reader/HTTPMessageReader.... | true | true | public boolean findEndOfMessage(String message, MessageStat messageStat) {
if ( messageStat.isHeaderHasBeenSet() ) {
// sets request header to messageStat.
messageStat.checkAndSetHeaderAndBoundary( BOUNDARY_KEY, requestMessage );
if ( messageStat.getMessageBodyType().equals( HeaderEntry.CONTENT_LENGTH.to... | public boolean findEndOfMessage(String message, MessageStat messageStat) {
if ( messageStat.isHeaderHasBeenSet() ) {
// sets request header to messageStat.
messageStat.checkAndSetHeaderAndBoundary( BOUNDARY_KEY, requestMessage );
if ( messageStat.getMessageBodyType().equals( HeaderEntry.CONTENT_LENGTH.to... |
diff --git a/src/java/fedora/server/security/ResourceAttributeFinderModule.java b/src/java/fedora/server/security/ResourceAttributeFinderModule.java
index 9c9f23771..fc960f68e 100755
--- a/src/java/fedora/server/security/ResourceAttributeFinderModule.java
+++ b/src/java/fedora/server/security/ResourceAttributeFinderMod... | true | true | protected final Object getAttributeLocally(int designatorType, String attributeId, URI resourceCategory, EvaluationCtx context) {
long getAttributeStartTime = System.currentTimeMillis();
try {
String pid = getPid(context);
if ("".equals(pid)) {
LOG.debug("no pid");
return null;
}
LOG.... | protected final Object getAttributeLocally(int designatorType, String attributeId, URI resourceCategory, EvaluationCtx context) {
long getAttributeStartTime = System.currentTimeMillis();
try {
String pid = getPid(context);
if ("".equals(pid)) {
LOG.debug("no pid");
return null;
}
LOG.... |
diff --git a/plexus-compiler/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java b/plexus-compiler/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java
index a16e3289..c8ec155e 100644
--- a/plexus-compiler/plexu... | true | true | public List compile( CompilerConfiguration config )
throws Exception
{
File destinationDir = new File( config.getOutputLocation() );
if ( !destinationDir.exists() )
{
destinationDir.mkdirs();
}
String[] sources = getSourceFiles( config );
if... | public List compile( CompilerConfiguration config )
throws Exception
{
File destinationDir = new File( config.getOutputLocation() );
if ( !destinationDir.exists() )
{
destinationDir.mkdirs();
}
String[] sources = getSourceFiles( config );
if... |
diff --git a/sdkmanager/libs/sdklib/src/com/android/sdklib/AddOnTarget.java b/sdkmanager/libs/sdklib/src/com/android/sdklib/AddOnTarget.java
index d72cd9430..f5fcf9024 100644
--- a/sdkmanager/libs/sdklib/src/com/android/sdklib/AddOnTarget.java
+++ b/sdkmanager/libs/sdklib/src/com/android/sdklib/AddOnTarget.java
@@ -1,3... | true | true | public boolean isCompatibleBaseFor(IAndroidTarget target) {
// basic test
if (target == this) {
return true;
}
/*
* The method javadoc indicates:
* Returns whether the given target is compatible with the receiver.
* <p/>A target is considered c... | public boolean isCompatibleBaseFor(IAndroidTarget target) {
// basic test
if (target == this) {
return true;
}
/*
* The method javadoc indicates:
* Returns whether the given target is compatible with the receiver.
* <p/>A target is considered c... |
diff --git a/src/jvm/clojure/lang/Script.java b/src/jvm/clojure/lang/Script.java
index df1390c2..08f8bbe6 100644
--- a/src/jvm/clojure/lang/Script.java
+++ b/src/jvm/clojure/lang/Script.java
@@ -1,43 +1,43 @@
/**
* Copyright (c) Rich Hickey. All rights reserved.
* The use and distribution terms for this softwa... | false | true | public static void main(String[] args) throws Exception{
for(String file : RT.processCommandLine(args))
try
{
Compiler.loadFile(file);
}
finally
{
OutputStreamWriter w = (OutputStreamWriter) RT.OUT.get();
try
{
w.flush();
w.close();
}
catch(IOException e)
{
e.printStac... | public static void main(String[] args) throws Exception{
try
{
for(String file : RT.processCommandLine(args))
Compiler.loadFile(file);
}
finally
{
OutputStreamWriter w = (OutputStreamWriter) RT.OUT.get();
try
{
w.flush();
w.close();
}
catch(IOException e)
{
e.printStackTrace();
... |
diff --git a/src/de/uni_koblenz/jgralab/codegenerator/AttributedElementCodeGenerator.java b/src/de/uni_koblenz/jgralab/codegenerator/AttributedElementCodeGenerator.java
index fc68924d7..891395a46 100755
--- a/src/de/uni_koblenz/jgralab/codegenerator/AttributedElementCodeGenerator.java
+++ b/src/de/uni_koblenz/jgralab/c... | true | true | protected CodeBlock createGenericSetter(Set<Attribute> attrSet) {
CodeList code = new CodeList();
CodeSnippet snip = new CodeSnippet(true);
boolean suppressWarningsNeeded = false;
for (Attribute attr : attrSet) {
if (attr.getDomain().isComposite()) {
suppressWarningsNeeded = true;
break;
}
}
... | protected CodeBlock createGenericSetter(Set<Attribute> attrSet) {
CodeList code = new CodeList();
CodeSnippet snip = new CodeSnippet(true);
boolean suppressWarningsNeeded = false;
for (Attribute attr : attrSet) {
if (attr.getDomain().isComposite()) {
suppressWarningsNeeded = true;
break;
}
}
... |
diff --git a/src/soardb/DelServlet.java b/src/soardb/DelServlet.java
index 7ca52f0..830b6d0 100644
--- a/src/soardb/DelServlet.java
+++ b/src/soardb/DelServlet.java
@@ -1,62 +1,64 @@
package soardb;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Date;
import java.util.logging.Logger;
... | false | true | public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
log.info("in del servlet");
UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
... | public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
log.info("in del servlet");
UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
... |
diff --git a/gwiki/src/main/java/de/micromata/genome/gwiki/controls/GWikiTreeChildrenActionBean.java b/gwiki/src/main/java/de/micromata/genome/gwiki/controls/GWikiTreeChildrenActionBean.java
index 204743c7..db9723c0 100644
--- a/gwiki/src/main/java/de/micromata/genome/gwiki/controls/GWikiTreeChildrenActionBean.java
+++... | true | true | public Object onLoadAsync()
{
GWikiElement el = null;
List<GWikiElementInfo> childs = null;
final String superCategory = wikiContext.getRequest().getParameter("id");
final String urlField = wikiContext.getRequest().getParameter("urlField");
final String titleField = wikiContext.getRequest().get... | public Object onLoadAsync()
{
GWikiElement el = null;
List<GWikiElementInfo> childs = null;
final String superCategory = wikiContext.getRequest().getParameter("id");
final String urlField = wikiContext.getRequest().getParameter("urlField");
final String titleField = wikiContext.getRequest().get... |
diff --git a/facebook/src/com/facebook/WebDialog.java b/facebook/src/com/facebook/WebDialog.java
index 3ca2be8..e41486a 100644
--- a/facebook/src/com/facebook/WebDialog.java
+++ b/facebook/src/com/facebook/WebDialog.java
@@ -1,536 +1,536 @@
package com.facebook;
import android.annotation.SuppressLint;
import andro... | true | true | public boolean shouldOverrideUrlLoading(WebView view, String url) {
Util.logd(LOG_TAG, "Redirect URL: " + url);
if (url.startsWith(WebDialog.REDIRECT_URI)) {
Bundle values = Util.parseUrl(url);
String error = values.getString("error");
if ... | public boolean shouldOverrideUrlLoading(WebView view, String url) {
Util.logd(LOG_TAG, "Redirect URL: " + url);
if (url.startsWith(WebDialog.REDIRECT_URI)) {
Bundle values = Util.parseUrl(url);
String error = values.getString("error");
if ... |
diff --git a/src/org/python/core/PyString.java b/src/org/python/core/PyString.java
index 091a5af6..3b4f3206 100644
--- a/src/org/python/core/PyString.java
+++ b/src/org/python/core/PyString.java
@@ -1,3329 +1,3335 @@
/// Copyright (c) Corporation for National Research Initiatives
package org.python.core;
import or... | false | true | public PyString format(PyObject args) {
PyObject dict = null;
this.args = args;
boolean needUnicode = unicodeCoercion;
if (args instanceof PyTuple) {
argIndex = 0;
} else {
// special index indicating a single item rather than a tuple
argIn... | public PyString format(PyObject args) {
PyObject dict = null;
this.args = args;
boolean needUnicode = unicodeCoercion;
if (args instanceof PyTuple) {
argIndex = 0;
} else {
// special index indicating a single item rather than a tuple
argIn... |
diff --git a/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java b/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java
index 11eab1833..b4eab4c49 100644
--- a/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java
+++ b/p... | false | true | protected ExpressionResult getExpressionResultType(
IASTScope scope,
Kind kind, IASTExpression lhs,
IASTExpression rhs,
IASTExpression thirdExpression,
IASTTypeId typeId,
String literal,
ISymbol symbol) throws ASTSemanticException{
TypeInfo info = new TypeInfo();
if( extension.canHan... | protected ExpressionResult getExpressionResultType(
IASTScope scope,
Kind kind, IASTExpression lhs,
IASTExpression rhs,
IASTExpression thirdExpression,
IASTTypeId typeId,
String literal,
ISymbol symbol) throws ASTSemanticException{
TypeInfo info = new TypeInfo();
if( extension.canHan... |
diff --git a/atlas-web/src/test/java/uk/ac/ebi/gxa/requesthandlers/experimentpage/SimilarGeneListTest.java b/atlas-web/src/test/java/uk/ac/ebi/gxa/requesthandlers/experimentpage/SimilarGeneListTest.java
index 9140227db..3bd3a325f 100644
--- a/atlas-web/src/test/java/uk/ac/ebi/gxa/requesthandlers/experimentpage/SimilarG... | true | true | public void testComputeSimilarityTask() {
// do a similarity over E-AFMX-5 for an arbitrary design element/array design
// TODO: fix similarity result test!
final SimilarityResultSet simRS = new SimilarityResultSet("226010852", "153094131", "153069949", "");
final String callSim = "s... | public void testComputeSimilarityTask() {
// do a similarity over E-AFMX-5 for an arbitrary design element/array design
// TODO: fix similarity result test!
final SimilarityResultSet simRS = new SimilarityResultSet("226010852", "153094131", "153069949", "/ebi/ArrayExpress-files/NetCDFs.ATLAS... |
diff --git a/Model/src/java/fr/cg95/cvq/util/admin/UserReferentialMigration.java b/Model/src/java/fr/cg95/cvq/util/admin/UserReferentialMigration.java
index 22fb7a681..bc719aea1 100644
--- a/Model/src/java/fr/cg95/cvq/util/admin/UserReferentialMigration.java
+++ b/Model/src/java/fr/cg95/cvq/util/admin/UserReferentialMi... | true | true | public void migrate()
throws CvqException {
for (DTO dto : (List<DTO>)HibernateUtil.getSession().createSQLQuery(
"select r.requester_id as requesterId, r.home_folder_id as homeFolderId, r.creation_date as date, i.id as individualId from individual i, request r, history_entry he where r.i... | public void migrate()
throws CvqException {
for (DTO dto : (List<DTO>)HibernateUtil.getSession().createSQLQuery(
"select r.requester_id as requesterId, r.home_folder_id as homeFolderId, r.creation_date as date, i.id as individualId from individual i, request r, history_entry he where r.i... |
diff --git a/src/main/java/pl/psnc/dl/wf4ever/evo/CopyOperation.java b/src/main/java/pl/psnc/dl/wf4ever/evo/CopyOperation.java
index 9f02217b..0f77552c 100644
--- a/src/main/java/pl/psnc/dl/wf4ever/evo/CopyOperation.java
+++ b/src/main/java/pl/psnc/dl/wf4ever/evo/CopyOperation.java
@@ -1,209 +1,209 @@
package pl.psnc.... | true | true | public void execute(JobStatus status)
throws OperationFailedException {
HibernateUtil.getSessionFactory().getCurrentSession().beginTransaction();
try {
URI target = status.getCopyfrom().resolve("../" + id + "/");
int i = 1;
String sufix = "";
... | public void execute(JobStatus status)
throws OperationFailedException {
HibernateUtil.getSessionFactory().getCurrentSession().beginTransaction();
try {
URI target = status.getCopyfrom().resolve("../" + id + "/");
int i = 1;
String sufix = "";
... |
diff --git a/org.eclipse.mylyn.monitor.ui/src/org/eclipse/mylyn/monitor/ui/preferences/MylarMonitorPreferencePage.java b/org.eclipse.mylyn.monitor.ui/src/org/eclipse/mylyn/monitor/ui/preferences/MylarMonitorPreferencePage.java
index bb89a624..42939c50 100644
--- a/org.eclipse.mylyn.monitor.ui/src/org/eclipse/mylyn/moni... | true | true | public boolean performOk() {
int uidNum = -1;
try{
if(userStudyId.getStringValue() == ""){
uidNum = -1;
userStudyId.setStringValue(uidNum + "");
}
else{
uidNum = userStudyId.getIntValue();
}
if(uidNum <= 0 &&... | public boolean performOk() {
int uidNum = -1;
try{
if(userStudyId.getStringValue() == null || userStudyId.getStringValue().equals("")){
uidNum = -1;
userStudyId.setStringValue(uidNum + "");
}
else{
uidNum = userStudyId.getIntValue();
... |
diff --git a/src/com/vaadin/demo/sampler/SamplerApplication.java b/src/com/vaadin/demo/sampler/SamplerApplication.java
index cf06d929e..ea35d986a 100644
--- a/src/com/vaadin/demo/sampler/SamplerApplication.java
+++ b/src/com/vaadin/demo/sampler/SamplerApplication.java
@@ -1,777 +1,778 @@
package com.vaadin.demo.sample... | true | true | SamplerWindow() {
// Main top/expanded-bottom layout
VerticalLayout mainExpand = new VerticalLayout();
setLayout(mainExpand);
setSizeFull();
mainExpand.setSizeFull();
// topbar (navigation)
HorizontalLayout nav = new Horizontal... | SamplerWindow() {
// Main top/expanded-bottom layout
VerticalLayout mainExpand = new VerticalLayout();
setLayout(mainExpand);
setSizeFull();
mainExpand.setSizeFull();
setCaption("Vaadin Sampler");
// topbar (navigation)
... |
diff --git a/core/carrot2-source-boss/src/org/carrot2/source/boss/YSearchResponse.java b/core/carrot2-source-boss/src/org/carrot2/source/boss/YSearchResponse.java
index bcc4b1b37..700594709 100644
--- a/core/carrot2-source-boss/src/org/carrot2/source/boss/YSearchResponse.java
+++ b/core/carrot2-source-boss/src/org/carr... | true | true | public void populate(SearchEngineResponse response, LanguageCode requestedLanguage)
{
if (webResultSet != null)
{
response.metadata.put(SearchEngineResponse.RESULTS_TOTAL_KEY,
webResultSet.deephits);
if (webResultSet.results != null)
{
... | public void populate(SearchEngineResponse response, LanguageCode requestedLanguage)
{
if (webResultSet != null)
{
response.metadata.put(SearchEngineResponse.RESULTS_TOTAL_KEY,
webResultSet.deephits);
if (webResultSet.results != null)
{
... |
diff --git a/panc/src/main/java/org/quattor/pan/utils/XmlUtils.java b/panc/src/main/java/org/quattor/pan/utils/XmlUtils.java
index 8d1d76a..02f04fa 100644
--- a/panc/src/main/java/org/quattor/pan/utils/XmlUtils.java
+++ b/panc/src/main/java/org/quattor/pan/utils/XmlUtils.java
@@ -1,64 +1,67 @@
package org.quattor.pan.... | true | true | public static TransformerHandler getSaxTransformerHandler() {
try {
// Generate the transformer factory. Need to guarantee that we get a
// SAXTransformerFactory.
TransformerFactory factory = TransformerFactory.newInstance();
if (!factory.getFeature(SAXTrans... | public static TransformerHandler getSaxTransformerHandler() {
try {
// Generate the transformer factory. Need to guarantee that we get a
// SAXTransformerFactory.
TransformerFactory factory = TransformerFactory.newInstance();
if (!factory.getFeature(SAXTrans... |
diff --git a/src/com/android/settings/deviceinfo/Status.java b/src/com/android/settings/deviceinfo/Status.java
index e443c1d29..f171c81d9 100644
--- a/src/com/android/settings/deviceinfo/Status.java
+++ b/src/com/android/settings/deviceinfo/Status.java
@@ -1,442 +1,437 @@
/*
* Copyright (C) 2008 The Android Open Sou... | false | true | protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
Preference removablePref;
mHandler = new MyHandler(this);
mTelephonyManager = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);
addPreferencesFromResource(R.xml.device_info_status);
mBatteryLevel... | protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
Preference removablePref;
mHandler = new MyHandler(this);
mTelephonyManager = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);
addPreferencesFromResource(R.xml.device_info_status);
mBatteryLevel... |
diff --git a/drools-core/src/main/java/org/drools/io/impl/ResourceChangeScannerImpl.java b/drools-core/src/main/java/org/drools/io/impl/ResourceChangeScannerImpl.java
index d738de399b..3fcc46e0fa 100644
--- a/drools-core/src/main/java/org/drools/io/impl/ResourceChangeScannerImpl.java
+++ b/drools-core/src/main/java/org... | true | true | public void scan() {
logger.debug( "ResourceChangeScanner attempt to scan " + this.resources.size() + " resources" );
synchronized ( this.resources ) {
Map<ResourceChangeNotifier, ChangeSet> notifications = new HashMap<ResourceChangeNotifier, ChangeSet>();
List<Resource> re... | public void scan() {
logger.debug( "ResourceChangeScanner attempt to scan " + this.resources.size() + " resources" );
synchronized ( this.resources ) {
Map<ResourceChangeNotifier, ChangeSet> notifications = new HashMap<ResourceChangeNotifier, ChangeSet>();
List<Resource> re... |
diff --git a/Client/Core/src/main/java/me/footlights/core/data/File.java b/Client/Core/src/main/java/me/footlights/core/data/File.java
index 281cf6af..bdc28cd4 100644
--- a/Client/Core/src/main/java/me/footlights/core/data/File.java
+++ b/Client/Core/src/main/java/me/footlights/core/data/File.java
@@ -1,268 +1,273 @@
... | false | true | public InputStream getInputStream()
{
final ByteBuffer[] buffers = new ByteBuffer[plaintext.size()];
for (int i = 0; i < buffers.length; i++)
buffers[i] = plaintext.get(i).content();
return new InputStream()
{
@Override public int read(byte[] buffer, int offset, int len)
{
if (len == 0) return 0... | public InputStream getInputStream()
{
final ByteBuffer[] buffers = new ByteBuffer[plaintext.size()];
for (int i = 0; i < buffers.length; i++)
buffers[i] = plaintext.get(i).content();
return new InputStream()
{
@Override public int read(byte[] buffer, int offset, int len)
{
if (len == 0) return 0... |
diff --git a/module-nio/src/main/java/org/apache/http/impl/nio/reactor/AbstractMultiworkerIOReactor.java b/module-nio/src/main/java/org/apache/http/impl/nio/reactor/AbstractMultiworkerIOReactor.java
index fd8a27a2e..8b0148539 100644
--- a/module-nio/src/main/java/org/apache/http/impl/nio/reactor/AbstractMultiworkerIORe... | false | true | public void execute(
final IOEventDispatch eventDispatch) throws InterruptedIOException, IOReactorException {
if (eventDispatch == null) {
throw new IllegalArgumentException("Event dispatcher may not be null");
}
this.status = IOReactorStatus.ACTIVE;
... | public void execute(
final IOEventDispatch eventDispatch) throws InterruptedIOException, IOReactorException {
if (eventDispatch == null) {
throw new IllegalArgumentException("Event dispatcher may not be null");
}
this.status = IOReactorStatus.ACTIVE;
... |
diff --git a/src/org/rascalmpl/unicode/UnicodeDetector.java b/src/org/rascalmpl/unicode/UnicodeDetector.java
index a04bb4cc59..edee4ec482 100644
--- a/src/org/rascalmpl/unicode/UnicodeDetector.java
+++ b/src/org/rascalmpl/unicode/UnicodeDetector.java
@@ -1,159 +1,164 @@
/***********************************************... | true | true | public static Charset detectByContent(byte[] buffer, int bufferSize) {
// first, lets see if it might be a valid UTF8 (biggest chance)
// http://www.w3.org/International/questions/qa-forms-utf-8
// we translate this Regular Expression to a while loop
// using the help of
// http://stackoverflow.com/questions... | public static Charset detectByContent(byte[] buffer, int bufferSize) {
// first, lets see if it might be a valid UTF8 (biggest chance)
// http://www.w3.org/International/questions/qa-forms-utf-8
// we translate this Regular Expression to a while loop
// using the help of
// http://stackoverflow.com/questions... |
diff --git a/docdoku-server/docdoku-server-web/src/main/java/com/docdoku/server/rest/util/InstanceAttributeDozerConverter.java b/docdoku-server/docdoku-server-web/src/main/java/com/docdoku/server/rest/util/InstanceAttributeDozerConverter.java
index f9dd342f0..52e07795a 100644
--- a/docdoku-server/docdoku-server-web/src... | false | true | public InstanceAttributeDTO convertTo(InstanceAttribute source, InstanceAttributeDTO bdestination) {
InstanceAttributeDTO.Type type;
String value;
if (source instanceof InstanceBooleanAttribute) {
type = InstanceAttributeDTO.Type.BOOLEAN;
value=source.getValue()+"";
... | public InstanceAttributeDTO convertTo(InstanceAttribute source, InstanceAttributeDTO bdestination) {
InstanceAttributeDTO.Type type;
String value = "";
if (source instanceof InstanceBooleanAttribute) {
type = InstanceAttributeDTO.Type.BOOLEAN;
value=source.getValue()+... |
diff --git a/src/main/java/com/concursive/connect/web/modules/blog/actions/BlogActions.java b/src/main/java/com/concursive/connect/web/modules/blog/actions/BlogActions.java
index 441ebf1..72df5d3 100644
--- a/src/main/java/com/concursive/connect/web/modules/blog/actions/BlogActions.java
+++ b/src/main/java/com/concursi... | false | true | public String executeCommandUploadImage(ActionContext context) {
Connection db = null;
boolean recordInserted = false;
try {
String filePath = this.getPath(context, "projects");
//Process the form data
HttpMultiPartParser multiPart = new HttpMultiPartParser();
multiPart.setUsePathP... | public String executeCommandUploadImage(ActionContext context) {
Connection db = null;
boolean recordInserted = false;
try {
String filePath = this.getPath(context, "projects");
//Process the form data
HttpMultiPartParser multiPart = new HttpMultiPartParser();
multiPart.setUsePathP... |
diff --git a/common/mods/cc/rock/event/CookingCraftLivingDropsEvent.java b/common/mods/cc/rock/event/CookingCraftLivingDropsEvent.java
index dca381e..41dd138 100644
--- a/common/mods/cc/rock/event/CookingCraftLivingDropsEvent.java
+++ b/common/mods/cc/rock/event/CookingCraftLivingDropsEvent.java
@@ -1,22 +1,22 @@
pack... | false | true | public void onEntityDrop(LivingDropsEvent event)
{
if(event.entityLiving instanceof EntityZombie)
{
ItemHelper.dropItem(event.entityLiving, ItemIDs.ID_HAMMER, 40);
}
}
| public void onEntityDrop(LivingDropsEvent event)
{
if(event.entityLiving instanceof EntityZombie && event.source.getDamageType().equals("player"))
{
ItemHelper.dropItem(event.entityLiving, ItemIDs.ID_HAMMER, 50);
}
}
|
diff --git a/src/net/sf/freecol/server/model/ServerPlayer.java b/src/net/sf/freecol/server/model/ServerPlayer.java
index 26ee2fb2a..170985f67 100644
--- a/src/net/sf/freecol/server/model/ServerPlayer.java
+++ b/src/net/sf/freecol/server/model/ServerPlayer.java
@@ -1,3028 +1,3029 @@
/**
* Copyright (C) 2002-2011 Th... | true | true | public void csCombat(FreeColGameObject attacker,
FreeColGameObject defender,
List<CombatResult> crs,
Random random,
ChangeSet cs) throws IllegalStateException {
CombatModel combatModel = getGame().getCombatMo... | public void csCombat(FreeColGameObject attacker,
FreeColGameObject defender,
List<CombatResult> crs,
Random random,
ChangeSet cs) throws IllegalStateException {
CombatModel combatModel = getGame().getCombatMo... |
diff --git a/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1494Test.java b/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE1494Test.java
index 502e2741a..1c7c73acf 100644
--- a/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jbos... | false | true | public void testJBIDE1494() throws Throwable {
// wait
TestUtil.waitForJobs();
// set exception
setException(null);
// Tests CA
// get test page path
IFile file = (IFile) TestUtil.getComponentPath(TEST_PAGE_NAME,
JsfAllTests.IMPORT_PROJECT_NAME);
assertNotNull("Could not open specified file " + TES... | public void testJBIDE1494() throws Throwable {
// wait
TestUtil.waitForJobs();
// set exception
setException(null);
// Tests CA
// get test page path
IFile file = (IFile) TestUtil.getComponentPath(TEST_PAGE_NAME,
JsfAllTests.IMPORT_PROJECT_NAME);
assertNotNull("Could not open specified file " + TES... |
diff --git a/src/com/android/phone/DataUsageListener.java b/src/com/android/phone/DataUsageListener.java
index 6122a8ec..a72c088a 100644
--- a/src/com/android/phone/DataUsageListener.java
+++ b/src/com/android/phone/DataUsageListener.java
@@ -1,231 +1,233 @@
/*
* Copyright (C) 2010 The Android Open Source Project
... | true | true | private void updateUI() {
if (mPolicyThreshold == 0)
return;
int dataUsedPercent = (int) ((mDataUsed * 100) / mPolicyThreshold);
long cycleTime = mEnd.getTimeInMillis() - mStart.getTimeInMillis();
long currentTime = GregorianCalendar.getInstance().getTimeInMillis()
... | private void updateUI() {
if (mPolicyThreshold == 0)
return;
int dataUsedPercent = (int) ((mDataUsed * 100) / mPolicyThreshold);
long cycleTime = mEnd.getTimeInMillis() - mStart.getTimeInMillis();
long currentTime = GregorianCalendar.getInstance().getTimeInMillis()
... |
diff --git a/org.eclipse.scout.rt.client.mobile/src/org/eclipse/scout/rt/client/mobile/navigation/BreadCrumb.java b/org.eclipse.scout.rt.client.mobile/src/org/eclipse/scout/rt/client/mobile/navigation/BreadCrumb.java
index 57e8cf5038..20f7c2d6e8 100644
--- a/org.eclipse.scout.rt.client.mobile/src/org/eclipse/scout/rt/c... | true | true | public void activate() throws ProcessingException {
List<IForm> currentNavigationForms = getBreadCrumbsNavigation().getCurrentNavigationForms();
for (IForm form : currentNavigationForms) {
if (form != getForm() && !getBreadCrumbsNavigation().containsFormInHistory(form)) {
MobileDesktopUtility.cl... | public void activate() throws ProcessingException {
List<IForm> currentNavigationForms = getBreadCrumbsNavigation().getCurrentNavigationForms();
for (IForm form : currentNavigationForms) {
if (form != getForm() && !getBreadCrumbsNavigation().containsFormInHistory(form)) {
MobileDesktopUtility.cl... |
diff --git a/PlayersInCubes/src/me/asofold/bukkit/pic/core/Cube.java b/PlayersInCubes/src/me/asofold/bukkit/pic/core/Cube.java
index fd8ef63..bce08f2 100644
--- a/PlayersInCubes/src/me/asofold/bukkit/pic/core/Cube.java
+++ b/PlayersInCubes/src/me/asofold/bukkit/pic/core/Cube.java
@@ -1,49 +1,49 @@
package me.asofold.b... | true | true | public Cube(final int x, final int y, final int z, final int size){
super(x / size, y / size, z / size);
this.size = size;
// Real coordinates for the middle of the cube:
final int sz2 = size / 2;
this.mX = x + sz2;
this.mY = y + sz2;
this.mZ = z + sz2;
}
| public Cube(final int x, final int y, final int z, final int size){
super(x / size, y / size, z / size);
this.size = size;
// Real coordinates for the middle of the cube:
final int sz2 = size / 2;
this.mX = this.x * size + sz2;
this.mY = this.y * size + sz2;
this.mZ = this.z * size + sz2;
}
|
diff --git a/TheAdventure/src/se/chalmers/kangaroo/view/GameView.java b/TheAdventure/src/se/chalmers/kangaroo/view/GameView.java
index f82af9f..193b37f 100644
--- a/TheAdventure/src/se/chalmers/kangaroo/view/GameView.java
+++ b/TheAdventure/src/se/chalmers/kangaroo/view/GameView.java
@@ -1,136 +1,137 @@
package se.cha... | true | true | public void paintComponent(java.awt.Graphics g) {
super.paintComponent(g);
Position p = gm.getKangaroo().getPosition();
int drawFrom = getLeftX();
int fixPosition = p.getX() / Constants.TILE_SIZE < 16
|| drawFrom == gm.getGameMap().getTileWidth() - 33 ? 0 : p
.getX() % 32;
g.drawString("" + gm.getT... | public void paintComponent(java.awt.Graphics g) {
super.paintComponent(g);
Position p = gm.getKangaroo().getPosition();
int drawFrom = getLeftX();
int fixPosition = p.getX() / Constants.TILE_SIZE < 16
|| drawFrom == gm.getGameMap().getTileWidth() - 33 ? 0 : p
.getX() % 32;
g.drawString("" + gm.getT... |
diff --git a/lib/java/src/protocol/TProtocolUtil.java b/lib/java/src/protocol/TProtocolUtil.java
index 0b85d38..5c665ab 100644
--- a/lib/java/src/protocol/TProtocolUtil.java
+++ b/lib/java/src/protocol/TProtocolUtil.java
@@ -1,104 +1,104 @@
// Copyright (c) 2006- Facebook
// Distributed under the Thrift Software Lice... | true | true | public static void skip(TProtocol prot, byte type)
throws TException {
switch (type) {
case TType.BOOL:
{
prot.readBool();
break;
}
case TType.BYTE:
{
prot.readByte();
break;
}
case TType.I16:
{
prot.readI16();
break;
... | public static void skip(TProtocol prot, byte type)
throws TException {
switch (type) {
case TType.BOOL:
{
prot.readBool();
break;
}
case TType.BYTE:
{
prot.readByte();
break;
}
case TType.I16:
{
prot.readI16();
break;
... |
diff --git a/edu/mit/wi/haploview/HaploText.java b/edu/mit/wi/haploview/HaploText.java
index 2d383e2..cc475df 100644
--- a/edu/mit/wi/haploview/HaploText.java
+++ b/edu/mit/wi/haploview/HaploText.java
@@ -1,1264 +1,1264 @@
package edu.mit.wi.haploview;
import edu.mit.wi.pedfile.MarkerResult;
import edu.mit.wi.pedf... | false | true | private void argHandler(String[] args){
argHandlerMessages = new Vector();
int maxDistance = -1;
//this means that user didn't specify any output type if it doesn't get changed below
blockOutputType = -1;
double hapThresh = -1;
double minimumMAF=-1;
double sp... | private void argHandler(String[] args){
argHandlerMessages = new Vector();
int maxDistance = -1;
//this means that user didn't specify any output type if it doesn't get changed below
blockOutputType = -1;
double hapThresh = -1;
double minimumMAF=-1;
double sp... |
diff --git a/CMPUT301Project/src/com/cmput301w13t09/cmput301project/activities/QueryRecipeOfflineView.java b/CMPUT301Project/src/com/cmput301w13t09/cmput301project/activities/QueryRecipeOfflineView.java
index fa2b4bb..1ba3815 100644
--- a/CMPUT301Project/src/com/cmput301w13t09/cmput301project/activities/QueryRecipeOffl... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_query_recipe_offline_view);
recipeController = new RecipeController(this);
ingredController = new IngredientController(this);
QuertRecipeList = recipeController.getQueryRecipeList(ingredC... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_query_recipe_offline_view);
recipeController = new RecipeController(this);
ingredController = new IngredientController(this);
QuertRecipeList = recipeController.getQueryRecipeList(ingredC... |
diff --git a/src/com/android/shakemusic/Guitar.java b/src/com/android/shakemusic/Guitar.java
index d49210f..f1c6d1b 100644
--- a/src/com/android/shakemusic/Guitar.java
+++ b/src/com/android/shakemusic/Guitar.java
@@ -1,39 +1,46 @@
package com.android.shakemusic;
public class Guitar implements Instrument{
privat... | false | true | public short[] Note(int freq) {
int Nt, jh, jhsqr;
double T, An, dfn;
T = duration / bpm;
Nt = (int) (fs * T);
short sj[] = new short[Nt];
// Make Note
int i, j;
for (i = 0; i < Nt; i++) {
sj[i] = 0;
for (j = 0; j < nHarm; j++) {
jh = j + 1;
jhsqr = jh * jh;
An = 2 / ((pisqr) * jhsqr ... | public byte[] Note(int freq) {
int Nt, jh, jhsqr;
double T, An, dfn;
T = duration / bpm;
Nt = (int) (fs * T);
double sj[] = new double[Nt];
byte generatedSnd[];
// Make Note
int i, j;
for (i = 0; i < Nt; i++) {
sj[i] = 0;
for (j = 0; j < nHarm; j++) {
jh = j + 1;
jhsqr = jh * jh;
An... |
diff --git a/IndaProject/src/components/PlayerMovementComponent.java b/IndaProject/src/components/PlayerMovementComponent.java
index 776a926..4e62da6 100644
--- a/IndaProject/src/components/PlayerMovementComponent.java
+++ b/IndaProject/src/components/PlayerMovementComponent.java
@@ -1,75 +1,73 @@
package components;
... | false | true | public void update(GameContainer gc, StateBasedGame sb, int delta) {
float rotation = owner.getRotation();
float scale = owner.getScale();
Vector2f position = owner.getPosition();
Input input = gc.getInput();
if (Controller.isP1ButtonPressed("Left", input)
|| Controller.isP1ButtonPressed("LeftAlt", inp... | public void update(GameContainer gc, StateBasedGame sb, int delta) {
float rotation = owner.getRotation();
float scale = owner.getScale();
Vector2f position = owner.getPosition();
Input input = gc.getInput();
if (Controller.isP1ButtonPressed("Left", input)
|| Controller.isP1ButtonPressed("LeftAlt", inp... |
diff --git a/src/main/java/org/dynmap/servlet/SendMessageServlet.java b/src/main/java/org/dynmap/servlet/SendMessageServlet.java
index b5a7a04c..ade31d71 100644
--- a/src/main/java/org/dynmap/servlet/SendMessageServlet.java
+++ b/src/main/java/org/dynmap/servlet/SendMessageServlet.java
@@ -1,197 +1,200 @@
package org.... | false | true | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
byte[] bytes;
String error = "none";
HttpSession sess = request.getSession(true);
String userID = (String) sess.getAttribute(LoginServlet.USERID_ATTRIB);
if(... | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
byte[] bytes;
String error = "none";
HttpSession sess = request.getSession(true);
String userID = (String) sess.getAttribute(LoginServlet.USERID_ATTRIB);
if(... |
diff --git a/bundles/org.eclipse.equinox.http.jetty6/src/org/eclipse/equinox/http/jetty/internal/HttpServerManager.java b/bundles/org.eclipse.equinox.http.jetty6/src/org/eclipse/equinox/http/jetty/internal/HttpServerManager.java
index 0e43af06..a1fa6aed 100644
--- a/bundles/org.eclipse.equinox.http.jetty6/src/org/eclip... | true | true | private Connector createHttpsConnector(Dictionary dictionary) {
Boolean httpsEnabled = (Boolean) dictionary.get(JettyConstants.HTTPS_ENABLED);
if (httpsEnabled == null || !httpsEnabled.booleanValue())
return null;
Integer httpsPort = (Integer) dictionary.get(JettyConstants.HTTPS_PORT);
if (httpsPort == nul... | private Connector createHttpsConnector(Dictionary dictionary) {
Boolean httpsEnabled = (Boolean) dictionary.get(JettyConstants.HTTPS_ENABLED);
if (httpsEnabled == null || !httpsEnabled.booleanValue())
return null;
Integer httpsPort = (Integer) dictionary.get(JettyConstants.HTTPS_PORT);
if (httpsPort == nul... |
diff --git a/src/de/uni_koblenz/jgralab/greql2/evaluator/vertexeval/TypeIdEvaluator.java b/src/de/uni_koblenz/jgralab/greql2/evaluator/vertexeval/TypeIdEvaluator.java
index f653c801d..23ebd5ddd 100644
--- a/src/de/uni_koblenz/jgralab/greql2/evaluator/vertexeval/TypeIdEvaluator.java
+++ b/src/de/uni_koblenz/jgralab/greq... | true | true | protected List<AttributedElementClass> createTypeList(Schema schema)
throws EvaluateException {
ArrayList<AttributedElementClass> returnTypes = new ArrayList<AttributedElementClass>();
AttributedElementClass elemClass = (AttributedElementClass) schema
.getAttributedElementClass(new QualifiedName(vertex.getNam... | protected List<AttributedElementClass> createTypeList(Schema schema)
throws EvaluateException {
ArrayList<AttributedElementClass> returnTypes = new ArrayList<AttributedElementClass>();
AttributedElementClass elemClass = (AttributedElementClass) schema
.getAttributedElementClass(new QualifiedName(vertex.getNam... |
diff --git a/mpayments-help/mpayments-help-repo-rest/src/main/java/org/infobip/mpayments/help/repo/rest/RestAPIService.java b/mpayments-help/mpayments-help-repo-rest/src/main/java/org/infobip/mpayments/help/repo/rest/RestAPIService.java
index 38c53ba..a47a3a3 100644
--- a/mpayments-help/mpayments-help-repo-rest/src/mai... | true | true | public Response getParagraph(@PathParam("app") String app, @PathParam("topic") String topic,
@PathParam("parID") String parID, @PathParam("fieldPars") String fieldPars) {
Session session = null;
Repository repository = null;
boolean error = false;
InputStream input = null;
OutputStream output = null;
S... | public Response getParagraph(@PathParam("app") String app, @PathParam("topic") String topic,
@PathParam("parID") String parID, @PathParam("fieldPars") String fieldPars) {
Session session = null;
Repository repository = null;
boolean error = false;
InputStream input = null;
OutputStream output = null;
S... |
diff --git a/src/main/java/core/util/StringUtil.java b/src/main/java/core/util/StringUtil.java
index 5b39459..907fb92 100644
--- a/src/main/java/core/util/StringUtil.java
+++ b/src/main/java/core/util/StringUtil.java
@@ -1,41 +1,41 @@
package core.util;
import java.io.UnsupportedEncodingException;
import java.math... | true | true | public static String sha256(String input) {
MessageDigest digest;
try {
digest = MessageDigest.getInstance("SHA-256");
digest.reset();
byte[] bytes = digest.digest(input.getBytes("UTF-8"));
BigInteger bigInt = new BigInteger(1, bytes);
return bigInt.toString(16);
} catch (NoSuchAlgorithmExcepti... | public static String sha256(String input) {
MessageDigest digest;
try {
digest = MessageDigest.getInstance("SHA-256");
digest.reset();
byte[] bytes = digest.digest(input.getBytes("UTF-8"));
BigInteger bigInt = new BigInteger(1, bytes);
return String.format("%064x", bigInt);
} catch (NoSuchAlgor... |
diff --git a/luni/src/main/java/java/util/zip/ZipFile.java b/luni/src/main/java/java/util/zip/ZipFile.java
index 5d16f33c7..172141c01 100644
--- a/luni/src/main/java/java/util/zip/ZipFile.java
+++ b/luni/src/main/java/java/util/zip/ZipFile.java
@@ -1,450 +1,450 @@
/*
* Licensed to the Apache Software Foundation (ASF... | true | true | private void readCentralDir() throws IOException {
// Scan back, looking for the End Of Central Directory field. If the zip file doesn't
// have an overall comment (unrelated to any per-entry comments), we'll hit the EOCD
// on the first try.
// No need to synchronize raf here -- we ... | private void readCentralDir() throws IOException {
// Scan back, looking for the End Of Central Directory field. If the zip file doesn't
// have an overall comment (unrelated to any per-entry comments), we'll hit the EOCD
// on the first try.
// No need to synchronize raf here -- we ... |
diff --git a/crypto/src/org/bouncycastle/crypto/tls/NamedCurve.java b/crypto/src/org/bouncycastle/crypto/tls/NamedCurve.java
index fe18cee4..5f407a09 100644
--- a/crypto/src/org/bouncycastle/crypto/tls/NamedCurve.java
+++ b/crypto/src/org/bouncycastle/crypto/tls/NamedCurve.java
@@ -1,93 +1,93 @@
package org.bouncycast... | true | true | static ECDomainParameters getECParameters(int namedCurve)
{
int index = namedCurve - 1;
if (index < 0 || index >= curveNames.length)
{
return null;
}
// Lazily created the first time a particular curve is accessed
X9ECParameters ecP = SECNamedCurves.g... | static ECDomainParameters getECParameters(int namedCurve)
{
int index = namedCurve - 1;
if (index < 0 || index >= curveNames.length)
{
return null;
}
// Lazily created the first time a particular curve is accessed
X9ECParameters ecP = SECNamedCurves.g... |
diff --git a/lenskit-core/src/main/java/org/grouplens/lenskit/baseline/ItemMeanPredictor.java b/lenskit-core/src/main/java/org/grouplens/lenskit/baseline/ItemMeanPredictor.java
index 86a46a083..19aac74af 100644
--- a/lenskit-core/src/main/java/org/grouplens/lenskit/baseline/ItemMeanPredictor.java
+++ b/lenskit-core/src... | true | true | public static double computeItemAverages(Iterator<? extends Rating> ratings, double damping,
Long2DoubleMap itemMeansResult) {
// We iterate the loop to compute the global and per-item mean
// ratings. Subtracting the global mean from each per-item mean
... | public static double computeItemAverages(Iterator<? extends Rating> ratings, double damping,
Long2DoubleMap itemMeansResult) {
// We iterate the loop to compute the global and per-item mean
// ratings. Subtracting the global mean from each per-item mean
... |
diff --git a/branches/DBCP_1_5_x_BRANCH/src/main/java/org/apache/commons/dbcp/managed/LocalXAConnectionFactory.java b/branches/DBCP_1_5_x_BRANCH/src/main/java/org/apache/commons/dbcp/managed/LocalXAConnectionFactory.java
index b8ed0e8..a68996a 100644
--- a/branches/DBCP_1_5_x_BRANCH/src/main/java/org/apache/commons/dbc... | true | true | public synchronized void start(Xid xid, int flag) throws XAException {
if (flag == XAResource.TMNOFLAGS) {
// first time in this transaction
// make sure we aren't already in another tx
if (this.currentXid != null) {
throw new XAEx... | public synchronized void start(Xid xid, int flag) throws XAException {
if (flag == XAResource.TMNOFLAGS) {
// first time in this transaction
// make sure we aren't already in another tx
if (this.currentXid != null) {
throw new XAEx... |
diff --git a/plugins/org.eclipse.birt.report.engine.emitter.config.postscript/src/org/eclipse/birt/report/engine/emitter/config/postscript/PostscriptEmitterDescriptor.java b/plugins/org.eclipse.birt.report.engine.emitter.config.postscript/src/org/eclipse/birt/report/engine/emitter/config/postscript/PostscriptEmitterDes... | true | true | private void initOptions( )
{
// Initializes the option for BIDIProcessing.
ConfigurableOption bidiProcessing = new ConfigurableOption(
BIDI_PROCESSING );
bidiProcessing
.setDisplayName( getMessage( "OptionDisplayValue.BidiProcessing" ) ); //$NON-NLS-1$
bidiProcessing.setDataType( IConfigurableOption.... | private void initOptions( )
{
// Initializes the option for BIDIProcessing.
ConfigurableOption bidiProcessing = new ConfigurableOption(
BIDI_PROCESSING );
bidiProcessing
.setDisplayName( getMessage( "OptionDisplayValue.BidiProcessing" ) ); //$NON-NLS-1$
bidiProcessing.setDataType( IConfigurableOption.... |
diff --git a/src/main/java/me/limebyte/battlenight/core/commands/ArenasCommand.java b/src/main/java/me/limebyte/battlenight/core/commands/ArenasCommand.java
index e541ff5..096a701 100644
--- a/src/main/java/me/limebyte/battlenight/core/commands/ArenasCommand.java
+++ b/src/main/java/me/limebyte/battlenight/core/command... | true | true | protected boolean onPerformed(CommandSender sender, String[] args) {
ArenaManager manager = api.getArenaManager();
List<Arena> arenas = manager.getArenas();
if (args.length < 1) {
sendArenasList(sender, arenas);
return true;
}
if (args[0].equalsIgnor... | protected boolean onPerformed(CommandSender sender, String[] args) {
ArenaManager manager = api.getArenaManager();
List<Arena> arenas = manager.getArenas();
if (args.length < 1) {
sendArenasList(sender, arenas);
return true;
}
if (args[0].equalsIgnor... |
diff --git a/ChoreographyDeployer/src/main/java/org/ow2/choreos/chors/context/SoapContextSender.java b/ChoreographyDeployer/src/main/java/org/ow2/choreos/chors/context/SoapContextSender.java
index 49b11a70..46dbee9d 100644
--- a/ChoreographyDeployer/src/main/java/org/ow2/choreos/chors/context/SoapContextSender.java
+++... | true | true | public void sendContext(String serviceEndpoint, String partnerRole, String partnerName,
List<String> partnerEndpoints) throws ContextNotSentException {
try {
SOAPConnectionFactory sfc = SOAPConnectionFactory.newInstance();
SOAPConnection connection = sfc.createConnection();
MessageFactory mf = Message... | public void sendContext(String serviceEndpoint, String partnerRole, String partnerName,
List<String> partnerEndpoints) throws ContextNotSentException {
try {
SOAPConnectionFactory sfc = SOAPConnectionFactory.newInstance();
SOAPConnection connection = sfc.createConnection();
MessageFactory mf = Message... |
diff --git a/src/edu/uwm/ai/search/World.java b/src/edu/uwm/ai/search/World.java
index f94e5df..6875606 100644
--- a/src/edu/uwm/ai/search/World.java
+++ b/src/edu/uwm/ai/search/World.java
@@ -1,172 +1,172 @@
/*
* This file is part of the search package.
*
* Copyright (C) 2012, Eric Fritz
* Copyright (C) 2012,... | true | true | public boolean isAccessableThrough(Point dest, Point origin)
{
if (!isValidPosition(dest) || !isValidPosition(origin)) {
throw new IllegalArgumentException("Points are not valid.");
}
int xDist = Math.abs(dest.getX() - origin.getX());
int yDist = Math.abs(dest.getY() - origin.getY());
if (xDist > 1 || ... | public boolean isAccessableThrough(Point dest, Point origin)
{
if (!isValidPosition(dest) || !isValidPosition(origin)) {
throw new IllegalArgumentException("Points are not valid.");
}
int xDist = Math.abs(dest.getX() - origin.getX());
int yDist = Math.abs(dest.getY() - origin.getY());
if (xDist > 1 || ... |
diff --git a/src/com/pepsdev/timedlight/TimedLightView.java b/src/com/pepsdev/timedlight/TimedLightView.java
index 66b63db..df0dd37 100644
--- a/src/com/pepsdev/timedlight/TimedLightView.java
+++ b/src/com/pepsdev/timedlight/TimedLightView.java
@@ -1,326 +1,326 @@
package com.pepsdev.timedlight;
import android.cont... | true | true | public TimedLightView(Context context, final float density) {
super(context);
mSurfaceHolder = getHolder();
mSurfaceHolder.addCallback(this);
lamp_off = BitmapFactory.decodeResource(getContext().getResources(),
R.drawable.lamp);
lamp_on = BitmapFactory.decode... | public TimedLightView(Context context, final float density) {
super(context);
mSurfaceHolder = getHolder();
mSurfaceHolder.addCallback(this);
lamp_off = BitmapFactory.decodeResource(getContext().getResources(),
R.drawable.lamp);
lamp_on = BitmapFactory.decode... |
diff --git a/src/com/java/phondeux/team/Team.java b/src/com/java/phondeux/team/Team.java
index 93adc68..241ecbb 100644
--- a/src/com/java/phondeux/team/Team.java
+++ b/src/com/java/phondeux/team/Team.java
@@ -1,128 +1,128 @@
package com.java.phondeux.team;
import java.sql.SQLException;
import java.util.logging.Log... | true | true | private void initializeEvents() {
eh.RegisterCallback(new EventHandler.EventCallback() {
public void run(int parent, int child, String data) {
getServer().broadcastMessage(ChatColor.GOLD + th.playerGetName(parent) + " created a new team, " + ChatColor.WHITE + th.teamGetName(child) + ChatColor.GOLD + "!");
... | private void initializeEvents() {
eh.RegisterCallback(new EventHandler.EventCallback() {
public void run(int parent, int child, String data) {
getServer().broadcastMessage(ChatColor.GOLD + th.playerGetName(parent) + " created a new team, " + ChatColor.WHITE + th.teamGetName(child) + ChatColor.GOLD + "!");
... |
diff --git a/workflow_plugins/europeana-uim-plugin-enrichment/src/main/java/eu/europeana/uim/enrichment/EnrichmentPlugin.java b/workflow_plugins/europeana-uim-plugin-enrichment/src/main/java/eu/europeana/uim/enrichment/EnrichmentPlugin.java
index 06969093..b3f86e84 100644
--- a/workflow_plugins/europeana-uim-plugin-enr... | false | true | private void mergeEntities(RDF rdf, List<Entity> entities)
throws SecurityException, IllegalArgumentException,
NoSuchMethodException, IllegalAccessException,
InvocationTargetException {
ProxyType europeanaProxy = null;
ProvidedCHOType cho = null;
List<ProvidedCHOType> providedChoList = rdf.getProvidedC... | private void mergeEntities(RDF rdf, List<Entity> entities)
throws SecurityException, IllegalArgumentException,
NoSuchMethodException, IllegalAccessException,
InvocationTargetException {
ProxyType europeanaProxy = null;
ProvidedCHOType cho = null;
List<ProvidedCHOType> providedChoList = rdf.getProvidedC... |
diff --git a/ui/webui/src/eu/sqooss/webui/Functions.java b/ui/webui/src/eu/sqooss/webui/Functions.java
index 24a8ef39..aed7637b 100644
--- a/ui/webui/src/eu/sqooss/webui/Functions.java
+++ b/ui/webui/src/eu/sqooss/webui/Functions.java
@@ -1,20 +1,20 @@
package eu.sqooss.webui;
public class Functions {
pu... | true | true | public static String dude() {
return "<h1>Duuuuuuude!</h1>";
}
| public static String dude() {
return "<h1>Boogers!</h1>";
}
|
diff --git a/any23-core/src/main/java/org/deri/any23/servlet/Any23Server.java b/any23-core/src/main/java/org/deri/any23/servlet/Any23Server.java
index e7a721df..97804daf 100644
--- a/any23-core/src/main/java/org/deri/any23/servlet/Any23Server.java
+++ b/any23-core/src/main/java/org/deri/any23/servlet/Any23Server.java
@... | true | true | public static void main(String[] args) throws Exception {
final String webapp = args.length > 0 ? args[0] : "./webapp";
if (!new File(webapp).isDirectory()) {
System.err.println("webapp directory not found. Server must be launched from the any23 directory.");
System.exit(1);
... | public static void main(String[] args) throws Exception {
final String webapp = args.length > 0 ? args[0] : "./webapp";
if (!new File(webapp).isDirectory()) {
System.err.println("webapp directory not found. Server must be launched from any23's /bin directory.");
System.exit(1... |
diff --git a/src/com/turbonips/troglodytes/states/OptionState.java b/src/com/turbonips/troglodytes/states/OptionState.java
index 4dcafc8..50fb7c9 100644
--- a/src/com/turbonips/troglodytes/states/OptionState.java
+++ b/src/com/turbonips/troglodytes/states/OptionState.java
@@ -1,257 +1,257 @@
package com.turbonips.trog... | false | true | public void render(GameContainer container, StateBasedGame game, Graphics g)
throws SlickException {
super.render(container, game, g);
Color WHITE = new Color(255,255,255);
Color ORANGE = new Color(255,127,0);
titleFont.drawString(titleX, titleY, titleSt, WHITE);
// Draw the windowed button
if ... | public void render(GameContainer container, StateBasedGame game, Graphics g)
throws SlickException {
super.render(container, game, g);
Color WHITE = new Color(255,255,255);
Color ORANGE = new Color(255,127,0);
titleFont.drawString(titleX, titleY, titleSt, WHITE);
// Draw the windowed button
if ... |
diff --git a/Tupl/src/main/java/org/cojen/tupl/TreeCursor.java b/Tupl/src/main/java/org/cojen/tupl/TreeCursor.java
index f789186e..236e960c 100644
--- a/Tupl/src/main/java/org/cojen/tupl/TreeCursor.java
+++ b/Tupl/src/main/java/org/cojen/tupl/TreeCursor.java
@@ -1,3468 +1,3473 @@
/*
* Copyright 2011-2012 Brian S O'... | true | true | private LockResult find(Transaction txn, byte[] key, int hash, int variant)
throws IOException
{
if (key == null) {
throw new NullPointerException("Key is null");
}
mKey = key;
mKeyHash = hash;
Node node;
TreeCursorFrame frame;
nearb... | private LockResult find(Transaction txn, byte[] key, int hash, int variant)
throws IOException
{
if (key == null) {
throw new NullPointerException("Key is null");
}
mKey = key;
mKeyHash = hash;
Node node;
TreeCursorFrame frame;
nearb... |
diff --git a/javasvn/src/org/tmatesoft/svn/core/internal/util/SVNTimeUtil.java b/javasvn/src/org/tmatesoft/svn/core/internal/util/SVNTimeUtil.java
index 05ec135f0..83fb51c50 100644
--- a/javasvn/src/org/tmatesoft/svn/core/internal/util/SVNTimeUtil.java
+++ b/javasvn/src/org/tmatesoft/svn/core/internal/util/SVNTimeUtil.... | true | true | public static Date parseDate(String str) {
if (str == null) {
return NULL;
}
try {
int year = Integer.parseInt(str.substring(0, 4));
int month = Integer.parseInt(str.substring(5, 7));
int date = Integer.parseInt(str.substring(8, 10));
... | public static Date parseDate(String str) {
if (str == null) {
return NULL;
}
try {
int year = Integer.parseInt(str.substring(0, 4));
int month = Integer.parseInt(str.substring(5, 7));
int date = Integer.parseInt(str.substring(8, 10));
... |
diff --git a/YuiLibrary/src/main/java/ru/sviridov/yuilibrary/MainLibActivity.java b/YuiLibrary/src/main/java/ru/sviridov/yuilibrary/MainLibActivity.java
index 628d409..0d241ae 100644
--- a/YuiLibrary/src/main/java/ru/sviridov/yuilibrary/MainLibActivity.java
+++ b/YuiLibrary/src/main/java/ru/sviridov/yuilibrary/MainLibA... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.lib_main);
setTitle(R.string.lib_title);
TextView viewById = (TextView) findViewById(R.id.tvInfo);
viewById.setText(R.string.info_text);
viewById.setTextC... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.lib_main);
setTitle(R.string.lib_title);
TextView viewById = (TextView) findViewById(R.id.tvInfo);
viewById.setText(R.string.info_text);
viewById.setTextC... |
diff --git a/src/java/org/jruby/ext/openssl/x509store/Lookup.java b/src/java/org/jruby/ext/openssl/x509store/Lookup.java
index 4f1a305..e9dbe36 100644
--- a/src/java/org/jruby/ext/openssl/x509store/Lookup.java
+++ b/src/java/org/jruby/ext/openssl/x509store/Lookup.java
@@ -1,551 +1,551 @@
/***** BEGIN LICENSE BLOCK ***... | true | true | public int call(Object _xl, Object _type, Object _name, Object _ret) throws Exception {
Lookup x1 = (Lookup)_xl;
int type = ((Integer)_type).intValue();
Name name = (Name)_name;
X509Object[] ret = (X509Object[])_ret;
X509Object tmp = null;
... | public int call(Object _xl, Object _type, Object _name, Object _ret) throws Exception {
Lookup x1 = (Lookup)_xl;
int type = ((Integer)_type).intValue();
Name name = (Name)_name;
X509Object[] ret = (X509Object[])_ret;
X509Object tmp = null;
... |
diff --git a/spring-integration-core/src/test/java/org/springframework/integration/adapter/AdapterBusTests.java b/spring-integration-core/src/test/java/org/springframework/integration/adapter/AdapterBusTests.java
index 895859a0c3..be60e7954e 100644
--- a/spring-integration-core/src/test/java/org/springframework/integra... | false | true | public void testAdapters() throws IOException, InterruptedException {
AbstractApplicationContext context = new ClassPathXmlApplicationContext("adapterBusTests.xml", this.getClass());
TestSink sink = (TestSink) context.getBean("sink");
assertNull(sink.get());
context.start();
String result = null;
int attem... | public void testAdapters() throws IOException, InterruptedException {
AbstractApplicationContext context = new ClassPathXmlApplicationContext("adapterBusTests.xml", this.getClass());
TestSink sink = (TestSink) context.getBean("sink");
assertNull(sink.get());
context.start();
String result = null;
int attem... |
diff --git a/src/main/java/org/mozilla/gecko/tokenserver/TokenServerClient.java b/src/main/java/org/mozilla/gecko/tokenserver/TokenServerClient.java
index d366c8e6e..e13d0fe3c 100644
--- a/src/main/java/org/mozilla/gecko/tokenserver/TokenServerClient.java
+++ b/src/main/java/org/mozilla/gecko/tokenserver/TokenServerCli... | true | true | public TokenServerToken processResponse(HttpResponse response)
throws TokenServerException {
SyncResponse res = new SyncResponse(response);
int statusCode = res.getStatusCode();
Logger.debug(LOG_TAG, "Got token response with status code " + statusCode + ".");
// Responses should *always* be JS... | public TokenServerToken processResponse(HttpResponse response)
throws TokenServerException {
SyncResponse res = new SyncResponse(response);
int statusCode = res.getStatusCode();
Logger.debug(LOG_TAG, "Got token response with status code " + statusCode + ".");
// Responses should *always* be JS... |
diff --git a/src/gwt/src/org/rstudio/studio/client/workbench/views/source/model/SourcePosition.java b/src/gwt/src/org/rstudio/studio/client/workbench/views/source/model/SourcePosition.java
index 44ac90fdfe..9d01d4869c 100644
--- a/src/gwt/src/org/rstudio/studio/client/workbench/views/source/model/SourcePosition.java
++... | true | true | public final boolean isSameRowAs(SourcePosition other)
{
if (getContext() == null && other.getContext() == null)
return true;
else if (getContext() == null && other.getContext() != null)
return false;
else if (other.getContext() == null && getContext() != null)
return... | public final boolean isSameRowAs(SourcePosition other)
{
if (getContext() == null && other.getContext() == null)
return other.getRow() == getRow();
else if (getContext() == null && other.getContext() != null)
return false;
else if (other.getContext() == null && getContext() !=... |
diff --git a/izpack-src/trunk/src/lib/com/izforge/izpack/installer/GUIInstaller.java b/izpack-src/trunk/src/lib/com/izforge/izpack/installer/GUIInstaller.java
index 41cff72c..6765f568 100644
--- a/izpack-src/trunk/src/lib/com/izforge/izpack/installer/GUIInstaller.java
+++ b/izpack-src/trunk/src/lib/com/izforge/izpack/i... | true | true | protected void loadLookAndFeel() throws Exception
{
// Do we have any preference for this OS ?
String syskey = "unix";
if (OsVersion.IS_WINDOWS)
{
syskey = "windows";
}
else if (OsVersion.IS_OSX)
{
syskey = "mac";
}
... | protected void loadLookAndFeel() throws Exception
{
// Do we have any preference for this OS ?
String syskey = "unix";
if (OsVersion.IS_WINDOWS)
{
syskey = "windows";
}
else if (OsVersion.IS_OSX)
{
syskey = "mac";
}
... |
diff --git a/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/EndpointDeliveryChannel.java b/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/EndpointDeliveryChannel.java
index c00141369..c20afcdb4 100644
--- a/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/EndpointDeliveryChannel.... | true | true | public void send(MessageExchange exchange) throws MessagingException {
if (exchange instanceof InOut || exchange instanceof InOptionalOut) {
// Done status can only be send asynchronously
if (exchange.getStatus() != ExchangeStatus.DONE) {
throw new UnsupportedOperatio... | public void send(MessageExchange exchange) throws MessagingException {
if (exchange.getStatus() == ExchangeStatus.ACTIVE) {
throw new UnsupportedOperationException("Asynchonous send of active exchanges are not supported");
}
BaseLifeCycle lf = (BaseLifeCycle) endpoint.getServiceU... |
diff --git a/src/main/java/com/pardot/rhombus/util/JsonUtil.java b/src/main/java/com/pardot/rhombus/util/JsonUtil.java
index 9f2856b..e9d6817 100644
--- a/src/main/java/com/pardot/rhombus/util/JsonUtil.java
+++ b/src/main/java/com/pardot/rhombus/util/JsonUtil.java
@@ -1,206 +1,206 @@
package com.pardot.rhombus.util;
... | true | true | public static Object typedObjectFromValueAndField(Object jsonValue, CField field) throws IllegalArgumentException {
if(jsonValue == null) {
return null;
}
try {
switch(field.getType()) {
case ASCII:
case VARCHAR:
case TEXT:
... | public static Object typedObjectFromValueAndField(Object jsonValue, CField field) throws IllegalArgumentException {
if(jsonValue == null) {
return null;
}
try {
switch(field.getType()) {
case ASCII:
case VARCHAR:
case TEXT:
... |
diff --git a/src/org/pentaho/agilebi/pdi/wizard/EmbeddedWizard.java b/src/org/pentaho/agilebi/pdi/wizard/EmbeddedWizard.java
index 9f54bca..7797d98 100644
--- a/src/org/pentaho/agilebi/pdi/wizard/EmbeddedWizard.java
+++ b/src/org/pentaho/agilebi/pdi/wizard/EmbeddedWizard.java
@@ -1,198 +1,201 @@
/*
* This program is... | true | true | public AbstractReportDefinition run(final AbstractReportDefinition original) throws ReportProcessingException
{
if(Display.getDefault().getThread().equals(Thread.currentThread()) == false){
Display.getDefault().syncExec(new Runnable(){
public void run() {
try {
EmbeddedWizar... | public AbstractReportDefinition run(final AbstractReportDefinition original) throws ReportProcessingException
{
if(Display.getDefault().getThread().equals(Thread.currentThread()) == false){
Display.getDefault().syncExec(new Runnable(){
public void run() {
try {
EmbeddedWizar... |
diff --git a/src/ui/MultiplayerGamePanel.java b/src/ui/MultiplayerGamePanel.java
index a8d11d5..9a650ac 100644
--- a/src/ui/MultiplayerGamePanel.java
+++ b/src/ui/MultiplayerGamePanel.java
@@ -1,65 +1,65 @@
package src.ui;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import src.net.NetworkGame;
i... | true | true | public MultiplayerGamePanel(GameController localController,
NetworkGameController networkController,
NetworkGame game,
MultiplayerController multiController) {
super(new BorderLayout());
gamePanel = new JPanel();
opponentMap = new MapComponent(true);
opponentMap.setGridOn(true);
o... | public MultiplayerGamePanel(GameController localController,
NetworkGameController networkController,
NetworkGame game,
MultiplayerController multiController) {
super(new BorderLayout());
gamePanel = new JPanel();
opponentMap = new MapComponent(true);
opponentMap.setGridOn(true);
o... |
diff --git a/src/main/java/com/fasterxml/jackson/databind/node/BigIntegerNode.java b/src/main/java/com/fasterxml/jackson/databind/node/BigIntegerNode.java
index 044314d84..c29f7998e 100644
--- a/src/main/java/com/fasterxml/jackson/databind/node/BigIntegerNode.java
+++ b/src/main/java/com/fasterxml/jackson/databind/node... | true | true | public boolean equals(Object o)
{
if (o == this) return true;
if (o == null) return false;
if (o.getClass() != getClass()) { // final class, can do this
return false;
}
return ((BigIntegerNode) o)._value == _value;
}
| public boolean equals(Object o)
{
if (o == this) return true;
if (o == null) return false;
if (o.getClass() != getClass()) { // final class, can do this
return false;
}
return ((BigIntegerNode) o)._value.equals(_value);
}
|
diff --git a/samples/src/test/java/org/springframework/batch/sample/AbstractBatchLauncherTests.java b/samples/src/test/java/org/springframework/batch/sample/AbstractBatchLauncherTests.java
index 1a3957545..2ed136e3f 100644
--- a/samples/src/test/java/org/springframework/batch/sample/AbstractBatchLauncherTests.java
+++ ... | true | true | protected ConfigurableApplicationContext createApplicationContext(
String[] locations) {
String[] allLocations = new String[locations.length+1];
System.arraycopy(locations, 0, allLocations, 0, locations.length);
allLocations[locations.length] = "simple-container-definition.xml";
return super.createApplicati... | protected ConfigurableApplicationContext createApplicationContext(
String[] locations) {
String[] allLocations = new String[locations.length+1];
System.arraycopy(locations, 0, allLocations, 1, locations.length);
allLocations[0] = "simple-container-definition.xml";
return super.createApplicationContext(allLo... |
diff --git a/GraphicsSample.java b/GraphicsSample.java
index 2726170..fcbf474 100644
--- a/GraphicsSample.java
+++ b/GraphicsSample.java
@@ -1,66 +1,66 @@
import java.awt.*;
import java.awt.image.*;
class GraphicsSample
{
public static void main(String args[]) {
GraphicsDraw paper = new GraphicsDraw... | true | true | private void drawTree(BufferedImage buf, int n, int x, int y, double angle, int sign) {
if (n > 31) return;
int r = radius(n);
int c = (n % 15) * 16;
Graphics g = buf.getGraphics();
if (canDraw(buf, x, y, r / 2)) {
g.setColor(new Color(255, 255 - c, c));
... | private void drawTree(BufferedImage buf, int n, int x, int y, double angle, int sign) {
if (n > 31) return;
int r = radius(n);
int c = (n % 15) * 16;
Graphics g = buf.getGraphics();
if (canDraw(buf, x, y, r / 2)) {
g.setColor(new Color(255, 255 - c, c));
... |
diff --git a/video/src/processing/video/Movie.java b/video/src/processing/video/Movie.java
index 67071b9c7..b1ee78aa2 100644
--- a/video/src/processing/video/Movie.java
+++ b/video/src/processing/video/Movie.java
@@ -1,712 +1,713 @@
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
Part of th... | true | true | public Movie(PApplet parent, String filename, int ifps) {
// this creates a fake image so that the first time this
// attempts to draw, something happens that's not an exception
super(1, 1, RGB);
this.parent = parent;
try {
QTSession.open();
} catch (QTException e) {
e.printStack... | public Movie(PApplet parent, String filename, int ifps) {
// this creates a fake image so that the first time this
// attempts to draw, something happens that's not an exception
super(1, 1, RGB);
this.parent = parent;
try {
QTSession.open();
} catch (QTException e) {
e.printStack... |
diff --git a/src/main/java/water/fvec/Frame.java b/src/main/java/water/fvec/Frame.java
index e9cbf1595..992d3df55 100644
--- a/src/main/java/water/fvec/Frame.java
+++ b/src/main/java/water/fvec/Frame.java
@@ -1,779 +1,779 @@
package water.fvec;
import java.io.IOException;
import java.io.InputStream;
import java.u... | true | true | public Frame deepSlice( Object orows, Object ocols ) {
// ocols is either a long[] or a Frame-of-1-Vec
long[] cols;
if( ocols == null ) {
cols = (long[])ocols;
assert cols == null;
}
else {
if (ocols instanceof long[]) {
cols = (long[])ocols;
}
else if (ocols ... | public Frame deepSlice( Object orows, Object ocols ) {
// ocols is either a long[] or a Frame-of-1-Vec
long[] cols;
if( ocols == null ) {
cols = (long[])ocols;
assert cols == null;
}
else {
if (ocols instanceof long[]) {
cols = (long[])ocols;
}
else if (ocols ... |
diff --git a/core/src/main/java/org/mule/galaxy/impl/link/LinkDaoImpl.java b/core/src/main/java/org/mule/galaxy/impl/link/LinkDaoImpl.java
index e939cf10..28274bd2 100644
--- a/core/src/main/java/org/mule/galaxy/impl/link/LinkDaoImpl.java
+++ b/core/src/main/java/org/mule/galaxy/impl/link/LinkDaoImpl.java
@@ -1,461 +1,... | true | true | protected void addLinks(String id, Session session) throws IOException, RepositoryException {
try {
// First, see if this item which was moved matches any outstanding unmatched links
Item item = getRegistry().getItemById(id);
List<String> versionIds = getVersionIds(id);
... | protected void addLinks(String id, Session session) throws IOException, RepositoryException {
try {
// First, see if this item which was moved matches any outstanding unmatched links
Item item = getRegistry().getItemById(id);
List<String> versionIds = getVersionIds(id);
... |
diff --git a/lib/com/coldsteelstudios/irc/client/Channel.java b/lib/com/coldsteelstudios/irc/client/Channel.java
index 2bbd9b8..ef8ffd5 100644
--- a/lib/com/coldsteelstudios/irc/client/Channel.java
+++ b/lib/com/coldsteelstudios/irc/client/Channel.java
@@ -1,281 +1,281 @@
package com.coldsteelstudios.irc.client;
im... | true | true | private void notifyListeners(String event, Object ... params) {
if ( subs == null ) return;
Class[] paramtypes = {this.getClass()};
// Object[] params = {this};
for (ChannelListener l : subs) {
try {
//FIND the method (or exception if not defined)
Method command = Class.forName("client.ChannelLi... | private void notifyListeners(String event, Object ... params) {
if ( subs == null ) return;
Class[] paramtypes = {this.getClass()};
// Object[] params = {this};
for (ChannelListener l : subs) {
try {
//FIND the method (or exception if not defined)
Method command = Class.forName("ChannelListener"... |
diff --git a/farrago/src/org/eigenbase/oj/rel/IterCalcRel.java b/farrago/src/org/eigenbase/oj/rel/IterCalcRel.java
index 960568745..a92d28bf0 100644
--- a/farrago/src/org/eigenbase/oj/rel/IterCalcRel.java
+++ b/farrago/src/org/eigenbase/oj/rel/IterCalcRel.java
@@ -1,590 +1,590 @@
/*
// $Id$
// Package org.eigenbase ... | true | true | public static Expression implementAbstractTupleIter(
JavaRelImplementor implementor,
JavaRel rel,
Expression childExp,
Variable varInputRow,
final RelDataType inputRowType,
final RelDataType outputRowType,
RexProgram program,
String tag)
{
... | public static Expression implementAbstractTupleIter(
JavaRelImplementor implementor,
JavaRel rel,
Expression childExp,
Variable varInputRow,
final RelDataType inputRowType,
final RelDataType outputRowType,
RexProgram program,
String tag)
{
... |
diff --git a/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/annotations/JavaAnnotationsMojoDescriptorExtractor.java b/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/annotations/JavaAnnotationsMojoDescriptorExtractor.java
index d75bda0..b81c8fb 100644
--- a/maven-p... | true | true | private List<MojoDescriptor> toMojoDescriptors( Map<String, MojoAnnotatedClass> mojoAnnotatedClasses,
PluginToolsRequest request, Map<String, JavaClass> javaClassesMap )
throws DuplicateParameterException
{
List<MojoDescriptor> mojoDescriptors ... | private List<MojoDescriptor> toMojoDescriptors( Map<String, MojoAnnotatedClass> mojoAnnotatedClasses,
PluginToolsRequest request, Map<String, JavaClass> javaClassesMap )
throws DuplicateParameterException
{
List<MojoDescriptor> mojoDescriptors ... |
diff --git a/src/jpcsp/Loader.java b/src/jpcsp/Loader.java
index db735761..c2580493 100644
--- a/src/jpcsp/Loader.java
+++ b/src/jpcsp/Loader.java
@@ -1,1149 +1,1149 @@
/*
This file is part of jpcsp.
Jpcsp is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License... | true | true | private void relocateFromBuffer(ByteBuffer f, SceModule module, int baseAddress,
Elf32 elf, int RelCount, Elf32SectionHeader relocatedSection) throws IOException {
// Display a message about untested R_MIPS_NONE only once per section
boolean displayedUntestedR_MIPS_NONE = false;
Elf32Reloca... | private void relocateFromBuffer(ByteBuffer f, SceModule module, int baseAddress,
Elf32 elf, int RelCount, Elf32SectionHeader relocatedSection) throws IOException {
// Display a message about untested R_MIPS_NONE only once per section
boolean displayedUntestedR_MIPS_NONE = false;
Elf32Reloca... |
diff --git a/activemq-core/src/main/java/org/apache/activemq/security/AuthorizationBroker.java b/activemq-core/src/main/java/org/apache/activemq/security/AuthorizationBroker.java
index 9fd954a6b..77135f1ec 100644
--- a/activemq-core/src/main/java/org/apache/activemq/security/AuthorizationBroker.java
+++ b/activemq-core... | true | true | public Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception {
final SecurityContext subject = (SecurityContext) context.getSecurityContext();
if( subject == null )
throw new SecurityException("User is not authenticated.");
Set ... | public Subscription addConsumer(ConnectionContext context, ConsumerInfo info) throws Exception {
final SecurityContext subject = (SecurityContext) context.getSecurityContext();
if( subject == null )
throw new SecurityException("User is not authenticated.");
Set ... |
diff --git a/src/r/builtins/Builtin.java b/src/r/builtins/Builtin.java
index ca4ab58..f725acc 100644
--- a/src/r/builtins/Builtin.java
+++ b/src/r/builtins/Builtin.java
@@ -1,109 +1,109 @@
package r.builtins;
import r.data.*;
import r.errors.*;
import r.nodes.*;
import r.nodes.truffle.*;
import com.oracle.tru... | true | true | public static boolean isNumericConstant(RNode node, double cvalue) {
RAny value = getConstantValue(node);
if (value != null) { return false; }
boolean ok = value instanceof RDouble || value instanceof RInt || value instanceof RLogical;
if (!ok) { return false; }
RDouble dv = ... | public static boolean isNumericConstant(RNode node, double cvalue) {
RAny value = getConstantValue(node);
if (value == null) { return false; }
boolean ok = value instanceof RDouble || value instanceof RInt || value instanceof RLogical;
if (!ok) { return false; }
RDouble dv = ... |
diff --git a/src/floobits/FlooHandler.java b/src/floobits/FlooHandler.java
index 02f3555..a1dc830 100644
--- a/src/floobits/FlooHandler.java
+++ b/src/floobits/FlooHandler.java
@@ -1,1117 +1,1117 @@
package floobits;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
import com.google.gson.JsonObjec... | true | true | protected void _on_room_info (JsonObject obj) {
RoomInfoResponse ri = new Gson().fromJson(obj, (Type) RoomInfoResponse.class);
is_joined = true;
this.tree = new Tree(obj.getAsJsonObject("tree"));
this.users = ri.users;
this.perms = ri.perms;
LocalFileSystem localFileS... | protected void _on_room_info (JsonObject obj) {
RoomInfoResponse ri = new Gson().fromJson(obj, (Type) RoomInfoResponse.class);
is_joined = true;
this.tree = new Tree(obj.getAsJsonObject("tree"));
this.users = ri.users;
this.perms = ri.perms;
LocalFileSystem localFileS... |
diff --git a/src/org/subethamail/smtp/client/SMTPClient.java b/src/org/subethamail/smtp/client/SMTPClient.java
index 536fbea..a8a3da5 100644
--- a/src/org/subethamail/smtp/client/SMTPClient.java
+++ b/src/org/subethamail/smtp/client/SMTPClient.java
@@ -1,235 +1,246 @@
package org.subethamail.smtp.client;
import jav... | false | true | protected Response receive() throws IOException
{
StringBuilder builder = new StringBuilder();
String line = null;
boolean done = false;
while (!done)
{
line = this.reader.readLine();
if (log.isDebugEnabled())
log.debug("Server: " + line);
builder.append(line.substring(4));
if (line.char... | protected Response receive() throws IOException
{
StringBuilder builder = new StringBuilder();
String line = null;
boolean done = false;
while (!done)
{
line = this.reader.readLine();
if (log.isDebugEnabled())
log.debug("Server: " + line);
if (line.length() < 4)
throw new IOException("Ma... |
diff --git a/samples/demos/src/com/actionbarsherlock/sample/demos/app/ActionBarSimple.java b/samples/demos/src/com/actionbarsherlock/sample/demos/app/ActionBarSimple.java
index eca265b2..7baafe13 100644
--- a/samples/demos/src/com/actionbarsherlock/sample/demos/app/ActionBarSimple.java
+++ b/samples/demos/src/com/actio... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.actionbar_text);
((TextView)findViewById(R.id.text)).setText(R.string.actionbar_simple);
}
| protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.actionbar_text);
((TextView)findViewById(R.id.text)).setText(R.string.actionbar_simple_content);
}
|
Subsets and Splits
Megadiff Train Samples Analysis
Counts the number of changed lines in a patch file, distinguishing additions and deletions but ignoring those marked with more than two '+' or '-', providing insights into significant modifications in patches.