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/deegree-tools/src/main/java/org/deegree/tools/crs/XMLCoordinateTransform.java b/deegree-tools/src/main/java/org/deegree/tools/crs/XMLCoordinateTransform.java
index bdc253db49..b12ae972e3 100644
--- a/deegree-tools/src/main/java/org/deegree/tools/crs/XMLCoordinateTransform.java
+++ b/deegree-tools/src/main/... | true | true | private static void doTransform( CommandLine line )
throws IllegalArgumentException, TransformationException, UnknownCRSException, IOException,
XMLStreamException, FactoryConfigurationError {
// TODO source srs should actually override all srsName att... | private static void doTransform( CommandLine line )
throws IllegalArgumentException, TransformationException, UnknownCRSException, IOException,
XMLStreamException, FactoryConfigurationError {
// TODO source srs should actually override all srsName att... |
diff --git a/src/driver/GUIDriver.java b/src/driver/GUIDriver.java
index 67f4da5..e975559 100644
--- a/src/driver/GUIDriver.java
+++ b/src/driver/GUIDriver.java
@@ -1,309 +1,309 @@
package driver;
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Grap... | true | true | public static void main(String[] args) {
// Create game window...
JFrame app = new JFrame();
app.setIgnoreRepaint(true);
app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Create canvas for painting...
Canvas canvas = new Canvas();
canvas.setIgnoreRepaint(true);
canvas.setSize(1200, 480);
//... | public static void main(String[] args) {
// Create game window...
JFrame app = new JFrame();
app.setIgnoreRepaint(true);
app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// Create canvas for painting...
Canvas canvas = new Canvas();
canvas.setIgnoreRepaint(true);
canvas.setSize(1200, 480);
//... |
diff --git a/src/main/java/com/gitblit/wicket/WicketUtils.java b/src/main/java/com/gitblit/wicket/WicketUtils.java
index e4eb29fb..6e03032e 100644
--- a/src/main/java/com/gitblit/wicket/WicketUtils.java
+++ b/src/main/java/com/gitblit/wicket/WicketUtils.java
@@ -1,601 +1,601 @@
/*
* Copyright 2011 gitblit.com.
*
... | true | true | public static ContextImage getFileImage(String wicketId, String filename) {
filename = filename.toLowerCase();
if (filename.endsWith(".java")) {
return newImage(wicketId, "file_java_16x16.png");
} else if (filename.endsWith(".rb")) {
return newImage(wicketId, "file_ruby_16x16.png");
} else if (filename.e... | public static ContextImage getFileImage(String wicketId, String filename) {
filename = filename.toLowerCase();
if (filename.endsWith(".java")) {
return newImage(wicketId, "file_java_16x16.png");
} else if (filename.endsWith(".rb")) {
return newImage(wicketId, "file_ruby_16x16.png");
} else if (filename.e... |
diff --git a/Android/SQLitePlugin/src/com/phonegap/plugins/sqlitePlugin/SQLitePlugin.java b/Android/SQLitePlugin/src/com/phonegap/plugins/sqlitePlugin/SQLitePlugin.java
index 927ef2d..76d3d53 100755
--- a/Android/SQLitePlugin/src/com/phonegap/plugins/sqlitePlugin/SQLitePlugin.java
+++ b/Android/SQLitePlugin/src/com/pho... | false | true | public PluginResult execute(String action, JSONArray args, String callbackId) {
PluginResult.Status status = PluginResult.Status.OK;
String result = "";
try {
// TODO: Do we want to allow a user to do this, since they could get
// to other app databases?
if (action.equals("setStorage")) {
this.setS... | public PluginResult execute(String action, JSONArray args, String callbackId) {
PluginResult.Status status = PluginResult.Status.OK;
String result = "";
try {
// TODO: Do we want to allow a user to do this, since they could get
// to other app databases?
if (action.equals("setStorage")) {
this.setS... |
diff --git a/src/minecraft/org/getspout/spout/gui/GenericLabel.java b/src/minecraft/org/getspout/spout/gui/GenericLabel.java
index 6b664979..da8404fa 100644
--- a/src/minecraft/org/getspout/spout/gui/GenericLabel.java
+++ b/src/minecraft/org/getspout/spout/gui/GenericLabel.java
@@ -1,158 +1,158 @@
package org.getspout... | true | true | public void render() {
FontRenderer font = SpoutClient.getHandle().fontRenderer;
String lines[] = getText().split("\\n");
double swidth = 0;
for (int i = 0; i < lines.length; i++) {
swidth = font.getStringWidth(lines[i]) > swidth ? font.getStringWidth(lines[i]) : swidth;
}
double sheight = lines.leng... | public void render() {
FontRenderer font = SpoutClient.getHandle().fontRenderer;
String lines[] = getText().split("\\n");
double swidth = 0;
for (int i = 0; i < lines.length; i++) {
swidth = font.getStringWidth(lines[i]) > swidth ? font.getStringWidth(lines[i]) : swidth;
}
double sheight = lines.leng... |
diff --git a/nexus/nexus-utils/src/main/java/org/sonatype/nexus/util/ClasspathUtils.java b/nexus/nexus-utils/src/main/java/org/sonatype/nexus/util/ClasspathUtils.java
index c803224ed..3d7afb280 100644
--- a/nexus/nexus-utils/src/main/java/org/sonatype/nexus/util/ClasspathUtils.java
+++ b/nexus/nexus-utils/src/main/java... | true | true | public static String convertClassBinaryNameToCanonicalName( String binaryName )
{
// sanity check
if ( binaryName == null || binaryName.trim().length() == 0 )
{
return null;
}
if ( binaryName.endsWith( ".class" ) )
{
int startIdx = 0;
... | public static String convertClassBinaryNameToCanonicalName( String binaryName )
{
// sanity check
if ( binaryName == null || binaryName.trim().length() == 0 )
{
return null;
}
if ( binaryName.endsWith( ".class" ) )
{
int startIdx = 0;
... |
diff --git a/test/models/ModelTest.java b/test/models/ModelTest.java
index acdf99c..748b304 100644
--- a/test/models/ModelTest.java
+++ b/test/models/ModelTest.java
@@ -1,47 +1,47 @@
package models;
import java.util.Date;
import models.Detail.COLOR;
import models.Detail.SIZE;
import org.junit.Test;
import... | true | true | public void testOrderwithclient(){
Client cl = Client.find("firstname", "Diego").first();
assertNotNull(cl);
Order order = new Order( new Date(System.currentTimeMillis()) , cl);
assertNotNull(order);
order.save();
Detail det = new Detail(COLOR.BLACK,SIZE.MEDIUM,2);
Detail det2 = new Detail(COLOR.BL... | public void testOrderwithclient(){
Client cl = Client.find("firstname", "Diego").first();
assertNotNull(cl);
Order order = new Order( new Date(System.currentTimeMillis()) , cl);
assertNotNull(order);
order.save();
Detail det = new Detail(1,2,2);
Detail det2 = new Detail(1,2,3);
order.addDetail(d... |
diff --git a/app/in/partake/model/daofacade/EventDAOFacade.java b/app/in/partake/model/daofacade/EventDAOFacade.java
index 0b7f0d2..9941a34 100644
--- a/app/in/partake/model/daofacade/EventDAOFacade.java
+++ b/app/in/partake/model/daofacade/EventDAOFacade.java
@@ -1,229 +1,229 @@
package in.partake.model.daofacade;
... | false | true | public static void tweetNewEventArrival(PartakeConnection con, IPartakeDAOs daos, Event event) throws DAOException {
String hashTag = event.getHashTag() != null ? event.getHashTag() : "";
String messagePrefix = "[PARTAKE] 新しいイベントが追加されました :";
String eventURL = event.getUrl(); // always 20
... | public static void tweetNewEventArrival(PartakeConnection con, IPartakeDAOs daos, Event event) throws DAOException {
String hashTag = event.getHashTag() != null ? event.getHashTag() : "";
String messagePrefix = "[PARTAKE] 新しいイベントが追加されました :";
String eventURL = event.getEventURL(); // Always 2... |
diff --git a/proxy/src/main/java/org/fedoraproject/candlepin/servlet/filter/auth/BasicAuthViaUserServiceFilter.java b/proxy/src/main/java/org/fedoraproject/candlepin/servlet/filter/auth/BasicAuthViaUserServiceFilter.java
index c9ce14b2f..c6961f1a7 100644
--- a/proxy/src/main/java/org/fedoraproject/candlepin/servlet/fil... | false | true | private void processPost(ServletRequest request, ServletResponse response,
FilterChain chain, HttpServletRequest httpRequest,
HttpServletResponse httpResponse) {
String auth = httpRequest.getHeader("Authorization");
if (auth != null && auth.toUpperCase().startsWith("BASIC "))... | private void processPost(ServletRequest request, ServletResponse response,
FilterChain chain, HttpServletRequest httpRequest,
HttpServletResponse httpResponse) {
String auth = httpRequest.getHeader("Authorization");
if (auth != null && auth.toUpperCase().startsWith("BASIC "))... |
diff --git a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc17/SVNCommitter17.java b/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc17/SVNCommitter17.java
index 6df75eb75..6abcc2b0f 100644
--- a/svnkit/src/main/java/org/tmatesoft/svn/core/internal/wc17/SVNCommitter17.java
+++ b/svnkit/src/main/java/org/... | true | true | public boolean handleCommitPath(String commitPath, ISVNEditor commitEditor) throws SVNException {
SvnCommitItem item = myCommittables.get(commitPath);
myContext.checkCancelled();
if (item.hasFlag(SvnCommitItem.COPY)) {
if (item.getCopyFromUrl() == null) {
SVNError... | public boolean handleCommitPath(String commitPath, ISVNEditor commitEditor) throws SVNException {
SvnCommitItem item = myCommittables.get(commitPath);
myContext.checkCancelled();
if (item.hasFlag(SvnCommitItem.COPY)) {
if (item.getCopyFromUrl() == null) {
SVNError... |
diff --git a/src/com/group7/project/MainActivity.java b/src/com/group7/project/MainActivity.java
index 24da757..2955e53 100644
--- a/src/com/group7/project/MainActivity.java
+++ b/src/com/group7/project/MainActivity.java
@@ -1,484 +1,484 @@
package com.group7.project;
import java.lang.reflect.Field;
import java.ut... | false | true | public void onLocationChanged(Location location) {
// Run the very first time the GPS gets a signal and is able to fix the user's location
if (location != null && GPSEvent == GpsStatus.GPS_EVENT_FIRST_FIX) {
userPoint = new GeoPoint(
(int) (location.getLatitude() * 1E6),
(int) (location.getLongit... | public void onLocationChanged(Location location) {
// Run the very first time the GPS gets a signal and is able to fix the user's location
if (location != null && GPSEvent == GpsStatus.GPS_EVENT_FIRST_FIX) {
userPoint = new GeoPoint(
(int) (location.getLatitude() * 1E6),
(int) (location.getLongit... |
diff --git a/src/de/typology/trainers/LuceneNGramIndexer.java b/src/de/typology/trainers/LuceneNGramIndexer.java
index 4007d875..5e3f1463 100644
--- a/src/de/typology/trainers/LuceneNGramIndexer.java
+++ b/src/de/typology/trainers/LuceneNGramIndexer.java
@@ -1,133 +1,132 @@
package de.typology.trainers;
import java... | true | true | private int indexFile(File file) throws NumberFormatException, IOException {
this.reader = IOHelper.openReadFile(file.getAbsolutePath());
int docCount = 0;
while ((this.line = this.reader.readLine()) != null) {
this.lineSplit = this.line.split("\t#");
if (this.lineSplit.length != 2) {
IOHelper.strongLo... | private int indexFile(File file) throws NumberFormatException, IOException {
this.reader = IOHelper.openReadFile(file.getAbsolutePath());
int docCount = 0;
while ((this.line = this.reader.readLine()) != null) {
this.lineSplit = this.line.split("\t#");
if (this.lineSplit.length != 2) {
IOHelper.strongLo... |
diff --git a/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java b/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java
index 39c81e4..b4ad10b 100644
--- a/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java
+++ b/src/de/_13ducks/cor/game/server/movement/ServerBehaviourMove.java... | true | true | private FloatingPointPosition checkAndMaxMove(FloatingPointPosition from, FloatingPointPosition to) {
// Zuallererst: Wir dürfen nicht über das Ziel hinaus laufen:
if (!arc) {
Vector oldtargetVec = new Vector(target.x() - from.x(), target.y() - from.y());
Vector newtargetVec ... | private FloatingPointPosition checkAndMaxMove(FloatingPointPosition from, FloatingPointPosition to) {
// Zuallererst: Wir dürfen nicht über das Ziel hinaus laufen:
if (!arc) {
Vector oldtargetVec = new Vector(target.x() - from.x(), target.y() - from.y());
Vector newtargetVec ... |
diff --git a/web/src/main/java/org/openmrs/web/filter/initialization/InitializationFilter.java b/web/src/main/java/org/openmrs/web/filter/initialization/InitializationFilter.java
index 952a6f2f..f6d6013e 100644
--- a/web/src/main/java/org/openmrs/web/filter/initialization/InitializationFilter.java
+++ b/web/src/main/ja... | false | true | protected void doPost(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException,
ServletException {
String page = httpRequest.getParameter("page");
Map<String, Object> referenceMap = new HashMap<String, Object>();
// we need to save current user language in references map since... | protected void doPost(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException,
ServletException {
String page = httpRequest.getParameter("page");
Map<String, Object> referenceMap = new HashMap<String, Object>();
// we need to save current user language in references map since... |
diff --git a/jamwiki-core/src/main/java/org/jamwiki/utils/LinkUtil.java b/jamwiki-core/src/main/java/org/jamwiki/utils/LinkUtil.java
index d28691d2..dc9e80ed 100644
--- a/jamwiki-core/src/main/java/org/jamwiki/utils/LinkUtil.java
+++ b/jamwiki-core/src/main/java/org/jamwiki/utils/LinkUtil.java
@@ -1,440 +1,447 @@
/**
... | false | true | public static String buildImageLinkHtml(String context, String virtualWiki, String topicName, boolean frame, boolean thumb, String align, String caption, int maxDimension, boolean suppressLink, String style, boolean escapeHtml) throws Exception {
Topic topic = WikiBase.getDataHandler().lookupTopic(virtualWiki, topic... | public static String buildImageLinkHtml(String context, String virtualWiki, String topicName, boolean frame, boolean thumb, String align, String caption, int maxDimension, boolean suppressLink, String style, boolean escapeHtml) throws Exception {
Topic topic = WikiBase.getDataHandler().lookupTopic(virtualWiki, topic... |
diff --git a/db-util/storage/src/java/org/sakaiproject/util/BaseDbSingleStorage.java b/db-util/storage/src/java/org/sakaiproject/util/BaseDbSingleStorage.java
index 0cfbcf1..0feaa90 100644
--- a/db-util/storage/src/java/org/sakaiproject/util/BaseDbSingleStorage.java
+++ b/db-util/storage/src/java/org/sakaiproject/util/... | true | true | public Edit editResource(String id)
{
Edit edit = null;
if (m_locksAreInDb)
{
if ("oracle".equals(m_sql.getVendor()))
{
// read the record and get a lock on it (non blocking)
String statement = "select XML from " + m_resourceTableName + " where ( " + m_resourceTableIdField + " = '"
+ Valida... | public Edit editResource(String id)
{
Edit edit = null;
if (m_locksAreInDb)
{
if ("oracle".equals(m_sql.getVendor()))
{
// read the record and get a lock on it (non blocking)
String statement = "select XML from " + m_resourceTableName + " where ( " + m_resourceTableIdField + " = '"
+ Valida... |
diff --git a/src/gui/ImportSessionsForm.java b/src/gui/ImportSessionsForm.java
index 936d6ea..b7aae60 100644
--- a/src/gui/ImportSessionsForm.java
+++ b/src/gui/ImportSessionsForm.java
@@ -1,244 +1,244 @@
/* This file is part of "MidpSSH".
* Copyright (c) 2005 Karl von Randow.
*
* --LICENSE NOTICE--
* This pr... | true | true | public void run() {
HttpConnection c = null;
LineInputStream in = null;
try {
int imported = 0;
String url = tfUrl.getString();
//#ifdef blackberryconntypes
if (cgBlackberryConnType.getSelectedIndex() == 1) {
url += ";... | public void run() {
HttpConnection c = null;
LineInputStream in = null;
try {
int imported = 0;
String url = tfUrl.getString();
//#ifdef blackberryconntypes
if (cgBlackberryConnType.getSelectedIndex() == 1) {
url += ";... |
diff --git a/src/org/ohmage/feedback/FeedbackService.java b/src/org/ohmage/feedback/FeedbackService.java
index 91bf2e6..9ae019c 100644
--- a/src/org/ohmage/feedback/FeedbackService.java
+++ b/src/org/ohmage/feedback/FeedbackService.java
@@ -1,335 +1,338 @@
package org.ohmage.feedback;
import java.io.File;
import j... | true | true | protected void doWakefulWork(Intent intent) {
// for the time being, we just pull all the surveys and update our feedback cache with them
// FIXME: in the future, we should only download what we need...two strategies for that:
// 1) maintain a timestamp of the most recent refresh and request only things after it... | protected void doWakefulWork(Intent intent) {
// for the time being, we just pull all the surveys and update our feedback cache with them
// FIXME: in the future, we should only download what we need...two strategies for that:
// 1) maintain a timestamp of the most recent refresh and request only things after it... |
diff --git a/src/main/java/com/google/gerrit/client/patches/UnifiedDiffTable.java b/src/main/java/com/google/gerrit/client/patches/UnifiedDiffTable.java
index 667d86bc2..7da35ce27 100644
--- a/src/main/java/com/google/gerrit/client/patches/UnifiedDiffTable.java
+++ b/src/main/java/com/google/gerrit/client/patches/Unifi... | false | true | protected void render(final PatchScript script) {
final SparseFileContent a = script.getA();
final SparseFileContent b = script.getB();
final SafeHtmlBuilder nc = new SafeHtmlBuilder();
final PrettyFormatter fmtA = PrettyFormatter.newFormatter(formatLanguage);
final PrettyFormatter fmtB = PrettyFo... | protected void render(final PatchScript script) {
final SparseFileContent a = script.getA();
final SparseFileContent b = script.getB();
final SafeHtmlBuilder nc = new SafeHtmlBuilder();
final PrettyFormatter fmtA = PrettyFormatter.newFormatter(formatLanguage);
final PrettyFormatter fmtB = PrettyFo... |
diff --git a/src/main/java/com/theminequest/api/quest/event/TargetedQuestEvent.java b/src/main/java/com/theminequest/api/quest/event/TargetedQuestEvent.java
index 136a4bb..a17e9d5 100644
--- a/src/main/java/com/theminequest/api/quest/event/TargetedQuestEvent.java
+++ b/src/main/java/com/theminequest/api/quest/event/Tar... | true | true | public final CompleteStatus action() {
Map<Integer, QuestTarget> targetMap = getQuest().getDetails().getProperty(QuestDetails.QUEST_TARGET);
if (!targetMap.containsKey(targetID))
throw new RuntimeException("No such target ID!");
QuestTarget t = targetMap.get(targetID);
return targetAction(t.getPlayers(getQu... | public final CompleteStatus action() {
Map<Integer, QuestTarget> targetMap = getQuest().getDetails().getProperty(QuestDetails.QUEST_TARGET);
if (!targetMap.containsKey(targetID))
throw new RuntimeException("No such target ID " + targetID + "...");
QuestTarget t = targetMap.get(targetID);
return targetAction... |
diff --git a/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/ReindexResource.java b/src/contributions/resources/search/src/java/org/wyona/yanel/impl/resources/search/ReindexResource.java
index 38b91415d..7bc576fe5 100644
--- a/src/contributions/resources/search/src/java/org/wyona/yanel... | true | true | protected InputStream getContentXML(String viewId) throws Exception {
// Build output document
StringBuilder sb = new StringBuilder("<?xml version=\"1.0\"?>");
sb.append("<r:reindex xmlns:r=\"");
sb.append(REINDEX_XMLNS);
sb.append("\">");
// Which repo needs to be r... | protected InputStream getContentXML(String viewId) throws Exception {
// Build output document
StringBuilder sb = new StringBuilder("<?xml version=\"1.0\"?>");
sb.append("<r:reindex xmlns:r=\"");
sb.append(REINDEX_XMLNS);
sb.append("\">");
// Which repo needs to be r... |
diff --git a/src/web/org/openmrs/web/controller/user/UserListController.java b/src/web/org/openmrs/web/controller/user/UserListController.java
index 0c1529da..4c77ee60 100644
--- a/src/web/org/openmrs/web/controller/user/UserListController.java
+++ b/src/web/org/openmrs/web/controller/user/UserListController.java
@@ -1... | true | true | protected Object formBackingObject(HttpServletRequest request) throws ServletException {
//default empty Object
List<User> userList = new Vector<User>();
//only fill the Object is the user has authenticated properly
if (Context.isAuthenticated()) {
UserService us = Context.getUserService();
userLis... | protected Object formBackingObject(HttpServletRequest request) throws ServletException {
//default empty Object
List<User> userList = new Vector<User>();
//only fill the Object is the user has authenticated properly
if (Context.isAuthenticated()) {
//UserService us = Context.getUserService();
//use... |
diff --git a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/validation/JSFValidator.java b/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/internal/validation/JSFValidator.java
index 2c5947379..53583df44 100644
--- a/jsf/plugins/org.eclipse.jst.jsf.ui/src/org/eclipse/jst/jsf/ui/int... | true | true | public void validate(final IRegion dirtyRegion,
final IValidationContext helper, final IReporter reporter)
{
if (DEBUG)
{
System.out.println("exec JSPSemanticsValidator.validateRegion"); //$NON-NLS-1$
}
final IFile file = getFile(helper);
if (fDo... | public void validate(final IRegion dirtyRegion,
final IValidationContext helper, final IReporter reporter)
{
if (DEBUG)
{
System.out.println("exec JSPSemanticsValidator.validateRegion"); //$NON-NLS-1$
}
final IFile file = getFile(helper);
if (fDo... |
diff --git a/src/main/java/fi/vincit/jmobster/processor/languages/javascript/writer/JavaScriptWriter.java b/src/main/java/fi/vincit/jmobster/processor/languages/javascript/writer/JavaScriptWriter.java
index a8580de..14ad946 100644
--- a/src/main/java/fi/vincit/jmobster/processor/languages/javascript/writer/JavaScriptWr... | false | true | public void close() {
super.close();
if( !lenientModeOn ) {
if( functionsOpen > 0 ) {
throw new IllegalStateException("There are still " + functionsOpen + "unclosed functions");
} else if( functionsOpen < 0 ) {
throw new IllegalStateException("... | public void close() {
super.close();
if( !lenientModeOn ) {
if( functionsOpen > 0 ) {
throw new IllegalStateException("There are still " + functionsOpen + " unclosed functions");
} else if( functionsOpen < 0 ) {
throw new IllegalStateException(... |
diff --git a/application/src/fi/local/social/network/activities/PeopleActivity.java b/application/src/fi/local/social/network/activities/PeopleActivity.java
index 7a3a115..902b115 100644
--- a/application/src/fi/local/social/network/activities/PeopleActivity.java
+++ b/application/src/fi/local/social/network/activities... | true | true | public boolean onOptionsItemSelected(MenuItem item) {
super.onOptionsItemSelected(item);
// Handle item selection
switch (item.getItemId()) {
case R.id.friends:
Toast.makeText(getApplicationContext(),"You choose option menu item: "+item.getTitle(), Toast.LENGTH_SHORT).show();
... | public boolean onOptionsItemSelected(MenuItem item) {
super.onOptionsItemSelected(item);
// Handle item selection
switch (item.getItemId()) {
case R.id.friends:
Toast.makeText(getApplicationContext(),"You choose option menu item: "+item.getTitle(), Toast.LENGTH_SHORT).show();
... |
diff --git a/src/main/src/org/compass/core/lucene/engine/LuceneSearchEngineInternalSearch.java b/src/main/src/org/compass/core/lucene/engine/LuceneSearchEngineInternalSearch.java
index fc1e3675..be28e8d0 100644
--- a/src/main/src/org/compass/core/lucene/engine/LuceneSearchEngineInternalSearch.java
+++ b/src/main/src/or... | true | true | public IndexReader getReader() throws SearchEngineException {
if (reader != null) {
return this.reader;
}
Searchable[] searchables = searcher.getSearchables();
IndexReader[] readers = new IndexReader[searchables.length];
for (int i = 0; i < searchables.length; i+... | public IndexReader getReader() throws SearchEngineException {
if (reader != null) {
return this.reader;
}
Searchable[] searchables = searcher.getSearchables();
IndexReader[] readers = new IndexReader[searchables.length];
for (int i = 0; i < searchables.length; i+... |
diff --git a/forms/forms-server/src/main/java/org/bonitasoft/forms/server/accessor/api/ExpressionEvaluatorEngineClient.java b/forms/forms-server/src/main/java/org/bonitasoft/forms/server/accessor/api/ExpressionEvaluatorEngineClient.java
index 163097070..93616534e 100644
--- a/forms/forms-server/src/main/java/org/bonita... | false | true | private String buildEvaluationMessageLogDetail(final ExpressionEvaluationException e) {
String[] splitExpressionName = null;
String expressionParentName = "unknown";
String expressionParentAttribute = "unknown";
if(e.getExpressionName()!=null){
splitExpressionName = e.getExpressionNa... | private String buildEvaluationMessageLogDetail(final ExpressionEvaluationException e) {
String[] splitExpressionName = null;
String expressionParentName = "unknown";
String expressionParentAttribute = "unknown";
if(e.getExpressionName()!=null){
splitExpressionName = e.getExpressionNa... |
diff --git a/src/com/android/calendar/EventInfoFragment.java b/src/com/android/calendar/EventInfoFragment.java
index c96789b7..25288951 100644
--- a/src/com/android/calendar/EventInfoFragment.java
+++ b/src/com/android/calendar/EventInfoFragment.java
@@ -1,1254 +1,1256 @@
/*
* Copyright (C) 2010 The Android Open Sou... | false | true | private void updateEvent(View view) {
if (mEventCursor == null) {
return;
}
String eventName = mEventCursor.getString(EVENT_INDEX_TITLE);
if (eventName == null || eventName.length() == 0) {
eventName = getActivity().getString(R.string.no_title_label);
... | private void updateEvent(View view) {
if (mEventCursor == null) {
return;
}
String eventName = mEventCursor.getString(EVENT_INDEX_TITLE);
if (eventName == null || eventName.length() == 0) {
eventName = getActivity().getString(R.string.no_title_label);
... |
diff --git a/src/com/android/alarmclock/AnalogDefaultAppWidgetProvider.java b/src/com/android/alarmclock/AnalogDefaultAppWidgetProvider.java
index 6796d41..a13f2fb 100644
--- a/src/com/android/alarmclock/AnalogDefaultAppWidgetProvider.java
+++ b/src/com/android/alarmclock/AnalogDefaultAppWidgetProvider.java
@@ -1,55 +1... | false | true | public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if (AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action)) {
RemoteViews views = new RemoteViews(context.getPackageName(),
R.layout.analogdefault_appwidget);
vi... | public void onReceive(Context context, Intent intent) {
String action = intent.getAction();
if (AppWidgetManager.ACTION_APPWIDGET_UPDATE.equals(action)) {
RemoteViews views = new RemoteViews(context.getPackageName(),
R.layout.analogsecond_appwidget);
vie... |
diff --git a/site/src/main/java/org/onehippo/forge/weblogdemo/components/Search.java b/site/src/main/java/org/onehippo/forge/weblogdemo/components/Search.java
index 4c2abff..fc5937b 100644
--- a/site/src/main/java/org/onehippo/forge/weblogdemo/components/Search.java
+++ b/site/src/main/java/org/onehippo/forge/weblogdem... | true | true | public void doBeforeRender(HstRequest request, HstResponse response) throws HstComponentException {
super.doBeforeRender(request, response);
List<BaseDocument> documents = new ArrayList<BaseDocument>();
String pageStr = request.getParameter(PAGEPARAM);
String query = getPublicReques... | public void doBeforeRender(HstRequest request, HstResponse response) throws HstComponentException {
super.doBeforeRender(request, response);
List<BaseDocument> documents = new ArrayList<BaseDocument>();
String pageStr = request.getParameter(PAGEPARAM);
String query = getPublicReques... |
diff --git a/n3phele/src/n3phele/service/actions/StackServiceAction.java b/n3phele/src/n3phele/service/actions/StackServiceAction.java
index b586445..8c03d2a 100644
--- a/n3phele/src/n3phele/service/actions/StackServiceAction.java
+++ b/n3phele/src/n3phele/service/actions/StackServiceAction.java
@@ -1,266 +1,266 @@
pa... | true | true | public void signal(SignalKind kind, String assertion) throws NotFoundException {
boolean isStacked = false;
Stack stacked = null;
for (Stack s : stacks) {
if (s.getDeployProcess() == null)
continue;
if (s.getDeployProcess().equals(assertion)) {
isStacked = true;
stacked = s;
break;
}
}... | public void signal(SignalKind kind, String assertion) throws NotFoundException {
boolean isStacked = false;
Stack stacked = null;
for (Stack s : stacks) {
if (s.getDeployProcess() == null)
continue;
if (s.getDeployProcess().equals(assertion)) {
isStacked = true;
stacked = s;
break;
}
}... |
diff --git a/org/xbill/DNS/Address.java b/org/xbill/DNS/Address.java
index de7e4b3..3e0a74f 100644
--- a/org/xbill/DNS/Address.java
+++ b/org/xbill/DNS/Address.java
@@ -1,153 +1,156 @@
// Copyright (c) 1999 Brian Wellington (bwelling@xbill.org)
// Portions Copyright (c) 1999 Network Associates, Inc.
package org.xb... | true | true | public static int []
toArray(String s) {
int numDigits;
int currentOctet;
int [] values = new int[4];
int length = s.length();
currentOctet = 0;
numDigits = 0;
for (int i = 0; i < length; i++) {
char c = s.charAt(i);
if (c >= '0' && c <= '9') {
/* Can't have more than 3 digits per octet. */
if (numDig... | public static int []
toArray(String s) {
int numDigits;
int currentOctet;
int [] values = new int[4];
int length = s.length();
currentOctet = 0;
numDigits = 0;
for (int i = 0; i < length; i++) {
char c = s.charAt(i);
if (c >= '0' && c <= '9') {
/* Can't have more than 3 digits per octet. */
if (numDig... |
diff --git a/tests/gdx-tests/src/com/badlogic/gdx/tests/EdgeDetectionTest.java b/tests/gdx-tests/src/com/badlogic/gdx/tests/EdgeDetectionTest.java
index e3933e38f..54cf6dc7b 100644
--- a/tests/gdx-tests/src/com/badlogic/gdx/tests/EdgeDetectionTest.java
+++ b/tests/gdx-tests/src/com/badlogic/gdx/tests/EdgeDetectionTest.... | true | true | public void render() {
angle += 45 * Gdx.graphics.getDeltaTime();
Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
cam.update();
matrix.setToRotation(0, 1, 0, angle);
cam.combined.mul(matrix);
fbo.begin();
Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
... | public void render() {
angle += 45 * Gdx.graphics.getDeltaTime();
Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
cam.update();
matrix.setToRotation(0, 1, 0, angle);
cam.combined.mul(matrix);
fbo.begin();
Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
... |
diff --git a/easyb/src/java/org/disco/easyb/SpecificationRunner.java b/easyb/src/java/org/disco/easyb/SpecificationRunner.java
index c67d64b..603419f 100644
--- a/easyb/src/java/org/disco/easyb/SpecificationRunner.java
+++ b/easyb/src/java/org/disco/easyb/SpecificationRunner.java
@@ -1,267 +1,267 @@
package org.disco.... | true | true | public void runSpecification(Collection<File> specs) throws Exception {
SpecificationListener listener = new DefaultListener();
for (File file : specs) {
long startTime = System.currentTimeMillis();
System.out.println("Running " + file.getCanonicalPath());
Spec... | public void runSpecification(Collection<File> specs) throws Exception {
SpecificationListener listener = new DefaultListener();
for (File file : specs) {
long startTime = System.currentTimeMillis();
System.out.println("Running " + file.getCanonicalPath());
Spec... |
diff --git a/common/num/numirp/core/handlers/TickHandler.java b/common/num/numirp/core/handlers/TickHandler.java
index ec16efe..784d302 100644
--- a/common/num/numirp/core/handlers/TickHandler.java
+++ b/common/num/numirp/core/handlers/TickHandler.java
@@ -1,48 +1,48 @@
package num.numirp.core.handlers;
import java... | true | true | public void tickStart(EnumSet<TickType> type, Object... tickData) {
if ((mc.theWorld != null) && (mc.theWorld.playerEntities.size() > 0)) {
@SuppressWarnings("unchecked")
List<EntityPlayer> players = mc.theWorld.playerEntities;
for (Iterator<EntityPlayer> entity = players... | public void tickStart(EnumSet<TickType> type, Object... tickData) {
if ((mc.theWorld != null) && (mc.theWorld.playerEntities.size() > 0)) {
@SuppressWarnings("unchecked")
List<EntityPlayer> players = mc.theWorld.playerEntities;
for (Iterator<EntityPlayer> entity = players... |
diff --git a/test/policy/WSSPolicyTesterAsymm.java b/test/policy/WSSPolicyTesterAsymm.java
index 988dd2e8a..c2ee748ad 100644
--- a/test/policy/WSSPolicyTesterAsymm.java
+++ b/test/policy/WSSPolicyTesterAsymm.java
@@ -1,425 +1,425 @@
/*
* Copyright 2004,2005 The Apache Software Foundation.
*
* Licensed under the ... | false | true | private void createMessageAsymm(WSS4JPolicyData wpd) throws Exception {
log.info("Before create Message assym....");
SOAPEnvelope unsignedEnvelope = message.getSOAPEnvelope();
/*
* First get the SOAP envelope as document, then create a security
* header and insert into the document (Envelope)
*/
Doc... | private void createMessageAsymm(WSS4JPolicyData wpd) throws Exception {
log.info("Before create Message assym....");
SOAPEnvelope unsignedEnvelope = message.getSOAPEnvelope();
/*
* First get the SOAP envelope as document, then create a security
* header and insert into the document (Envelope)
*/
Doc... |
diff --git a/src/de/aidger/model/AbstractModel.java b/src/de/aidger/model/AbstractModel.java
index 9b364815..06982cb6 100644
--- a/src/de/aidger/model/AbstractModel.java
+++ b/src/de/aidger/model/AbstractModel.java
@@ -1,434 +1,435 @@
package de.aidger.model;
import static de.aidger.utils.Translation._;
import j... | true | true | public boolean save() throws AdoHiveException {
if (!doValidate()) {
return false;
} else if (!errors.isEmpty()) {
Logger.debug(_("The model was not saved because the error list is not empty."));
return false;
}
/* Add or update model */
I... | public boolean save() throws AdoHiveException {
if (!doValidate()) {
return false;
} else if (!errors.isEmpty()) {
Logger.debug(_("The model was not saved because the error list is not empty."));
return false;
}
/* Add or update model */
I... |
diff --git a/src/editor/inspections/bugs/GlobalCreationOutsideOfMainChunk.java b/src/editor/inspections/bugs/GlobalCreationOutsideOfMainChunk.java
index 06b425c4..2a976f23 100644
--- a/src/editor/inspections/bugs/GlobalCreationOutsideOfMainChunk.java
+++ b/src/editor/inspections/bugs/GlobalCreationOutsideOfMainChunk.ja... | false | true | public PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, boolean isOnTheFly) {
return new LuaElementVisitor() {
public void visitDeclarationExpression(LuaDeclarationExpression var) {
super.visitDeclarationExpression(var);
if (var instanceof Lua... | public PsiElementVisitor buildVisitor(@NotNull final ProblemsHolder holder, boolean isOnTheFly) {
return new LuaElementVisitor() {
public void visitDeclarationExpression(LuaDeclarationExpression var) {
super.visitDeclarationExpression(var);
if (var instanceof Lua... |
diff --git a/gpswinggui/src/main/java/org/geopublishing/geopublisher/swing/GpSwingUtil.java b/gpswinggui/src/main/java/org/geopublishing/geopublisher/swing/GpSwingUtil.java
index dc5626fe..be890862 100644
--- a/gpswinggui/src/main/java/org/geopublishing/geopublisher/swing/GpSwingUtil.java
+++ b/gpswinggui/src/main/java... | true | true | public static DpEntry<?> deleteDpEntry(Component owner,
AtlasConfigEditable ace, DpEntry<?> dpe, boolean askUserToVerify) {
LinkedList<AtlasRefInterface<?>> references = new LinkedList<AtlasRefInterface<?>>();
// ****************************************************************************
// Go through all m... | public static DpEntry<?> deleteDpEntry(Component owner,
AtlasConfigEditable ace, DpEntry<?> dpe, boolean askUserToVerify) {
LinkedList<AtlasRefInterface<?>> references = new LinkedList<AtlasRefInterface<?>>();
// ****************************************************************************
// Go through all m... |
diff --git a/TekkitRestrict/src/com/github/dreadslicer/tekkitrestrict/TRNoDupe.java b/TekkitRestrict/src/com/github/dreadslicer/tekkitrestrict/TRNoDupe.java
index 0f55423..d49efdc 100644
--- a/TekkitRestrict/src/com/github/dreadslicer/tekkitrestrict/TRNoDupe.java
+++ b/TekkitRestrict/src/com/github/dreadslicer/tekkitre... | true | true | public static void handleDupes(InventoryClickEvent event) {
// event.getInventory();
Player player = tekkitrestrict.getInstance().getServer()
.getPlayer(event.getWhoClicked().getName());
int slot = event.getSlot();
String title = event.getView().getTopInventory().getTitle()
.toLowerCase();
tek... | public static void handleDupes(InventoryClickEvent event) {
// event.getInventory();
Player player = tekkitrestrict.getInstance().getServer()
.getPlayer(event.getWhoClicked().getName());
int slot = event.getSlot();
String title = event.getView().getTopInventory().getTitle()
.toLowerCase();
//t... |
diff --git a/treeview/src/main/uk/ac/starlink/treeview/ImageHDUDataNode.java b/treeview/src/main/uk/ac/starlink/treeview/ImageHDUDataNode.java
index ea8f910b3..75c5698a0 100644
--- a/treeview/src/main/uk/ac/starlink/treeview/ImageHDUDataNode.java
+++ b/treeview/src/main/uk/ac/starlink/treeview/ImageHDUDataNode.java
@@ ... | true | true | public ImageHDUDataNode( Header hdr, BufferMaker bufmaker )
throws NoSuchDataException {
super( hdr );
this.header = hdr;
this.bufmaker = bufmaker;
hduType = getHduType();
if ( hduType != "Image" ) {
throw new NoSuchDataException( "Not an Image HDU" )... | public ImageHDUDataNode( Header hdr, BufferMaker bufmaker )
throws NoSuchDataException {
super( hdr );
this.header = hdr;
this.bufmaker = bufmaker;
hduType = getHduType();
if ( hduType != "Image" ) {
throw new NoSuchDataException( "Not an Image HDU" )... |
diff --git a/src/main/java/net/minecraft/src/RenderItem.java b/src/main/java/net/minecraft/src/RenderItem.java
index 0ec477d5..e98523c2 100644
--- a/src/main/java/net/minecraft/src/RenderItem.java
+++ b/src/main/java/net/minecraft/src/RenderItem.java
@@ -1,547 +1,549 @@
package net.minecraft.src;
import java.util.R... | true | true | public void doRenderItem(EntityItem par1EntityItem, double par2, double par4, double par6, float par8, float par9) {
// Spout Start
// Sanity Checks
if (par1EntityItem == null || par1EntityItem.item == null) {
return;
}
// Spout End
this.random.setSeed(187L);
ItemStack var10 = par1EntityItem.item;
... | public void doRenderItem(EntityItem par1EntityItem, double par2, double par4, double par6, float par8, float par9) {
// Spout Start
// Sanity Checks
if (par1EntityItem == null || par1EntityItem.item == null) {
return;
}
// Spout End
this.random.setSeed(187L);
ItemStack var10 = par1EntityItem.item;
... |
diff --git a/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileRandomAccessContent.java b/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileRandomAccessContent.java
index 78461e4..2d51be4 100644
--- a/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileRandomAccess... | true | true | public RamFileRandomAccessContent(RamFileObject file, RandomAccessMode mode)
{
super();
this.buf = file.getData().getBuffer();
this.file = file;
this.mode = mode;
rafis = new InputStream()
{
@Override
public int read() throws IOException
... | public RamFileRandomAccessContent(RamFileObject file, RandomAccessMode mode)
{
super();
this.buf = file.getData().getBuffer();
this.file = file;
this.mode = mode;
rafis = new InputStream()
{
@Override
public int read() throws IOException
... |
diff --git a/src/org/meta_environment/rascal/interpreter/strategy/All.java b/src/org/meta_environment/rascal/interpreter/strategy/All.java
index 954781fedc..9e19614a1f 100644
--- a/src/org/meta_environment/rascal/interpreter/strategy/All.java
+++ b/src/org/meta_environment/rascal/interpreter/strategy/All.java
@@ -1,45 ... | true | true | public static IValue makeAll(IValue arg) {
if (arg instanceof AbstractFunction) {
AbstractFunction function = (AbstractFunction) arg;
if (function.isStrategy()) {
return new All(new StrategyFunction(function));
}
} else if (arg instanceof OverloadedFunctionResult) {
OverloadedFunctionResult res = ... | public static IValue makeAll(IValue arg) {
if (arg instanceof AbstractFunction) {
AbstractFunction function = (AbstractFunction) arg;
if (function.isStrategy()) {
return new All(new StrategyFunction(function));
}
} else if (arg instanceof OverloadedFunctionResult) {
OverloadedFunctionResult res = ... |
diff --git a/src/StudentAssignment.java b/src/StudentAssignment.java
index 48cd643..2e7a8fb 100644
--- a/src/StudentAssignment.java
+++ b/src/StudentAssignment.java
@@ -1,46 +1,46 @@
// Author(s): Richard Ceus
// Date Modified: 4/10/12
// Filename: StudentAssignment.java
import java.util.*;
public class S... | true | true | public void calculateGrade()
{
int correct;
int total;
for(int count = 0; count > questionList.size(); count++)
{
if (questionList.get(count).compareAnswers())
{
correct++;
}
total++;
}
grade = correct/total;
}
| public void calculateGrade()
{
int correct = 0;
int total = 0;
for(int count = 0; count > questionList.size(); count++)
{
if (questionList.get(count).compareAnswers())
{
correct++;
}
total++;
}
grade = correct/total;
}
|
diff --git a/src/lang/LuaFoldingBuilder.java b/src/lang/LuaFoldingBuilder.java
index d70d5b1d..708d1b24 100644
--- a/src/lang/LuaFoldingBuilder.java
+++ b/src/lang/LuaFoldingBuilder.java
@@ -1,105 +1,106 @@
/*
* Copyright 2010 Jon S Akhtar (Sylvanaar)
*
* Licensed under the Apache License, Version 2.0 (the "Li... | false | true | private void appendDescriptors(final ASTNode node, final Document document, final List<FoldingDescriptor> descriptors) {
try {
if (isFoldableNode(node)) {
final PsiElement psiElement = node.getPsi();
if (psiElement instanceof LuaFunctionDefinitionStatement) {
... | private void appendDescriptors(final ASTNode node, final Document document, final List<FoldingDescriptor> descriptors) {
try {
if (isFoldableNode(node)) {
final PsiElement psiElement = node.getPsi();
if (psiElement instanceof LuaFunctionDefinitionStatement) {
... |
diff --git a/ttools/src/main/uk/ac/starlink/ttools/taplint/JobStage.java b/ttools/src/main/uk/ac/starlink/ttools/taplint/JobStage.java
index 1843862e9..514e77c5f 100644
--- a/ttools/src/main/uk/ac/starlink/ttools/taplint/JobStage.java
+++ b/ttools/src/main/uk/ac/starlink/ttools/taplint/JobStage.java
@@ -1,898 +1,898 @@... | true | true | private byte[] readContent( URL url, String mimeType,
boolean mustExist ) {
if ( url == null ) {
return null;
}
HttpURLConnection hconn;
int responseCode;
String responseMsg;
try {
... | private byte[] readContent( URL url, String mimeType,
boolean mustExist ) {
if ( url == null ) {
return null;
}
HttpURLConnection hconn;
int responseCode;
String responseMsg;
try {
... |
diff --git a/src/java/net/percederberg/mibble/MibLoaderLog.java b/src/java/net/percederberg/mibble/MibLoaderLog.java
index 53e3089..94acc28 100644
--- a/src/java/net/percederberg/mibble/MibLoaderLog.java
+++ b/src/java/net/percederberg/mibble/MibLoaderLog.java
@@ -1,491 +1,491 @@
/*
* MibLoaderLog.java
*
* This ... | true | true | public void printTo(PrintWriter output, int margin) {
StringBuffer buffer = new StringBuffer();
LogEntry entry;
String str;
for (int i = 0; i < entries.size(); i++) {
entry = (LogEntry) entries.get(i);
buffer.setLength(0);
switch (ent... | public void printTo(PrintWriter output, int margin) {
StringBuffer buffer = new StringBuffer();
LogEntry entry;
String str;
for (int i = 0; i < entries.size(); i++) {
entry = (LogEntry) entries.get(i);
buffer.setLength(0);
switch (ent... |
diff --git a/bundles/ParserZip/src/main/java/org/paxle/parser/zip/impl/ZipParser.java b/bundles/ParserZip/src/main/java/org/paxle/parser/zip/impl/ZipParser.java
index 111cc429..3f96467b 100644
--- a/bundles/ParserZip/src/main/java/org/paxle/parser/zip/impl/ZipParser.java
+++ b/bundles/ParserZip/src/main/java/org/paxle/... | false | true | public IParserDocument parse(URI location, String charset, InputStream is)
throws ParserException, UnsupportedEncodingException, IOException
{
final ParserContext context = ParserContext.getCurrentContext();
final IParserDocument pdoc = new ParserDocument();
final ZipInputStream zis = new ZipInputStream(is)... | public IParserDocument parse(URI location, String charset, InputStream is)
throws ParserException, UnsupportedEncodingException, IOException
{
final ParserContext context = ParserContext.getCurrentContext();
final IParserDocument pdoc = new ParserDocument();
final ZipInputStream zis = new ZipInputStream(is)... |
diff --git a/components/bio-formats/src/loci/formats/in/LeicaReader.java b/components/bio-formats/src/loci/formats/in/LeicaReader.java
index 423921ef9..02ab41237 100644
--- a/components/bio-formats/src/loci/formats/in/LeicaReader.java
+++ b/components/bio-formats/src/loci/formats/in/LeicaReader.java
@@ -1,1135 +1,1135 ... | true | true | protected void initFile(String id) throws FormatException, IOException {
if (debug) debug("LeicaReader.initFile(" + id + ")");
close();
if (checkSuffix(id, TiffReader.TIFF_SUFFIXES)) {
// need to find the associated .lei file
if (ifds == null) super.initFile(id);
in = new RandomAccessS... | protected void initFile(String id) throws FormatException, IOException {
if (debug) debug("LeicaReader.initFile(" + id + ")");
close();
if (checkSuffix(id, TiffReader.TIFF_SUFFIXES)) {
// need to find the associated .lei file
if (ifds == null) super.initFile(id);
in = new RandomAccessS... |
diff --git a/src/java/org/jivesoftware/spark/component/tabbedPane/TabPanelUI.java b/src/java/org/jivesoftware/spark/component/tabbedPane/TabPanelUI.java
index 59a6eaa2..4a484f13 100644
--- a/src/java/org/jivesoftware/spark/component/tabbedPane/TabPanelUI.java
+++ b/src/java/org/jivesoftware/spark/component/tabbedPane/T... | true | true | public void paint(Graphics g, JComponent c) {
Graphics2D g2d = (Graphics2D)g;
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
Insets vInsets = c.getInsets();
int w = c.getWidth() - (vInsets.left + vInsets.right);
int h = c.getHeight... | public void paint(Graphics g, JComponent c) {
Graphics2D g2d = (Graphics2D)g;
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
Insets vInsets = c.getInsets();
int w = c.getWidth() - (vInsets.left + vInsets.right);
int h = c.getHeight... |
diff --git a/src/main/java/libshapedraw/internal/Controller.java b/src/main/java/libshapedraw/internal/Controller.java
index 2873127..693c62f 100644
--- a/src/main/java/libshapedraw/internal/Controller.java
+++ b/src/main/java/libshapedraw/internal/Controller.java
@@ -1,226 +1,225 @@
package libshapedraw.internal;
... | true | true | public void render(ReadonlyVector3 playerCoords, boolean isGuiHidden) {
log.finer("render");
int origDepthFunc = GL11.glGetInteger(GL11.GL_DEPTH_FUNC);
GL11.glPushMatrix();
GL11.glTranslated(-playerCoords.getX(), -playerCoords.getY(), -playerCoords.getZ());
for (LibShapeDra... | public void render(ReadonlyVector3 playerCoords, boolean isGuiHidden) {
log.finer("render");
int origDepthFunc = GL11.glGetInteger(GL11.GL_DEPTH_FUNC);
GL11.glPushMatrix();
GL11.glTranslated(-playerCoords.getX(), -playerCoords.getY(), -playerCoords.getZ());
for (LibShapeDra... |
diff --git a/src/com/delin/speedlogger/Activities/DevPrefsActivity.java b/src/com/delin/speedlogger/Activities/DevPrefsActivity.java
index 68093fa..f743f03 100644
--- a/src/com/delin/speedlogger/Activities/DevPrefsActivity.java
+++ b/src/com/delin/speedlogger/Activities/DevPrefsActivity.java
@@ -1,43 +1,47 @@
package ... | false | true | private void FindGPX() {
File dir = new File(GPS_DIR_PATH);
try{ if(!dir.exists()) dir.mkdirs();} catch(Exception e){return;}
String[] filenames = dir.list();
if (filenames.length > 0) {
gpxFiles.setEntries(filenames);
for(int i=0; i<filenames.length; ++i) {
filenames[i] = GPS_DIR_NAME + "/" + filena... | private void FindGPX() {
File dir = new File(GPS_DIR_PATH);
try{ if(!dir.exists()) dir.mkdirs();} catch(Exception e){return;}
String[] filenameEntries = dir.list();
String[] filenameValues;
if (filenameEntries.length > 0) {
// list entries
gpxFiles.setEntries(filenameEntries);
// list values
file... |
diff --git a/src/fr/iutvalence/java/mp/thelasttyper/client/data/Word.java b/src/fr/iutvalence/java/mp/thelasttyper/client/data/Word.java
index 8c417bb..e5b5b90 100644
--- a/src/fr/iutvalence/java/mp/thelasttyper/client/data/Word.java
+++ b/src/fr/iutvalence/java/mp/thelasttyper/client/data/Word.java
@@ -1,113 +1,112 @@... | true | true | public static int getDifficulty(String s)
{
int i = s.length();
if (i ==0)
//TODO throw exception EmptyStringException
if (i < 4)
return 1;
else if (i< 5)
return 2;
else if (i< 6)
return 3;
else if ... | public static int getDifficulty(String s)
{
int i = s.length();
if (i ==0) return 0;
if (i < 4)
return 1;
else if (i< 5)
return 2;
else if (i< 6)
return 3;
else if (i <8)
return 4;
//else
... |
diff --git a/src/jp/ac/osaka_u/ist/sdl/ectec/ast/ASTCreator.java b/src/jp/ac/osaka_u/ist/sdl/ectec/ast/ASTCreator.java
index afc67bd..cb2ca50 100644
--- a/src/jp/ac/osaka_u/ist/sdl/ectec/ast/ASTCreator.java
+++ b/src/jp/ac/osaka_u/ist/sdl/ectec/ast/ASTCreator.java
@@ -1,58 +1,58 @@
package jp.ac.osaka_u.ist.sdl.ectec.... | true | true | public static CompilationUnit creatAST(final File file) {
BufferedReader reader = null;
try {
reader = new BufferedReader(new FileReader(file));
final StringBuilder builder = new StringBuilder();
String line;
while ((line = reader.readLine()) != null) {
builder.append(line + "\n");
}
... | public static CompilationUnit createAST(final File file) {
BufferedReader reader = null;
try {
reader = new BufferedReader(new FileReader(file));
final StringBuilder builder = new StringBuilder();
String line;
while ((line = reader.readLine()) != null) {
builder.append(line + "\n");
}... |
diff --git a/src/java/com/sapienter/jbilling/server/pluggableTask/BasicLineTotalTask.java b/src/java/com/sapienter/jbilling/server/pluggableTask/BasicLineTotalTask.java
index 6ca2b614..c56648a5 100644
--- a/src/java/com/sapienter/jbilling/server/pluggableTask/BasicLineTotalTask.java
+++ b/src/java/com/sapienter/jbillin... | false | true | public void doProcessing(OrderDTO order) throws TaskException {
validateLinesQuantity(order.getLines());
clearLineTotals(order.getLines());
ItemDAS itemDas = new ItemDAS();
/*
Calculate non-percentage items, calculating price as $/unit
*/
for (OrderLine... | public void doProcessing(OrderDTO order) throws TaskException {
validateLinesQuantity(order.getLines());
clearLineTotals(order.getLines());
ItemDAS itemDas = new ItemDAS();
/*
Calculate non-percentage items, calculating price as $/unit
*/
for (OrderLine... |
diff --git a/spring-orm/src/main/java/org/springframework/orm/hibernate3/support/OpenSessionInViewFilter.java b/spring-orm/src/main/java/org/springframework/orm/hibernate3/support/OpenSessionInViewFilter.java
index 6c43e78f9..f55ae4e43 100644
--- a/spring-orm/src/main/java/org/springframework/orm/hibernate3/support/Ope... | true | true | protected void doFilterInternal(
HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
throws ServletException, IOException {
AsyncExecutionChain chain = AsyncExecutionChain.getForCurrentRequest(request);
SessionFactory sessionFactory = lookupSessionFactory(request);
boolean ... | protected void doFilterInternal(
HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
throws ServletException, IOException {
AsyncExecutionChain chain = AsyncExecutionChain.getForCurrentRequest(request);
SessionFactory sessionFactory = lookupSessionFactory(request);
boolean ... |
diff --git a/signserver/src/java/org/signserver/module/mrtdsodsigner/MRTDSODSigner.java b/signserver/src/java/org/signserver/module/mrtdsodsigner/MRTDSODSigner.java
index abdfbb0ec..1969aa4c7 100644
--- a/signserver/src/java/org/signserver/module/mrtdsodsigner/MRTDSODSigner.java
+++ b/signserver/src/java/org/signserver... | true | true | public ProcessResponse processData(ProcessRequest signRequest, RequestContext requestContext) throws IllegalRequestException, CryptoTokenOfflineException, SignServerException {
if (log.isTraceEnabled()) {
log.trace(">processData");
}
ProcessResponse ret = null;
ISignReque... | public ProcessResponse processData(ProcessRequest signRequest, RequestContext requestContext) throws IllegalRequestException, CryptoTokenOfflineException, SignServerException {
if (log.isTraceEnabled()) {
log.trace(">processData");
}
ProcessResponse ret = null;
ISignReque... |
diff --git a/q-web/src/main/java/q/web/login/AddLogin.java b/q-web/src/main/java/q/web/login/AddLogin.java
index d503ec5f..68ba905e 100644
--- a/q-web/src/main/java/q/web/login/AddLogin.java
+++ b/q-web/src/main/java/q/web/login/AddLogin.java
@@ -1,64 +1,64 @@
/**
*
*/
package q.web.login;
import q.dao.People... | true | true | public void execute(ResourceContext context) throws Exception {
String email = context.getString("email");
String password = context.getString("password");
People people = this.peopleDao.getPeopleByEmail(email);
if (null == people) {
throw new PeopleNotExistException("email:邮箱不存在");
}
if (!people.getPas... | public void execute(ResourceContext context) throws Exception {
String email = context.getString("email");
String password = context.getString("password");
People people = this.peopleDao.getPeopleByEmail(email);
if (null == people) {
throw new PeopleNotExistException("email:邮箱不存在");
}
if (!people.getPas... |
diff --git a/src/java/com/idega/presentation/remotescripting/RemoteScriptHandler.java b/src/java/com/idega/presentation/remotescripting/RemoteScriptHandler.java
index 206f803f2..6968a59e7 100644
--- a/src/java/com/idega/presentation/remotescripting/RemoteScriptHandler.java
+++ b/src/java/com/idega/presentation/remotesc... | true | true | private void addCallToServer(IWContext iwc) {
StringBuffer buff = new StringBuffer();
buff.append("var IFrameObj; // our IFrame object").append("\n")
.append("function callToServer_"+iframeName+"(theFormName) {").append("\n")
.append(" if (!document.createElement) {return true};").append("\n")
.append(" ... | private void addCallToServer(IWContext iwc) {
StringBuffer buff = new StringBuffer();
buff.append("var IFrameObj; // our IFrame object").append("\n")
.append("function callToServer_"+iframeName+"(theFormName) {").append("\n")
.append(" if (!document.createElement) {return true};").append("\n")
.append(" ... |
diff --git a/src/modelo/DescuentoServicios.java b/src/modelo/DescuentoServicios.java
index 7133447..2fea307 100644
--- a/src/modelo/DescuentoServicios.java
+++ b/src/modelo/DescuentoServicios.java
@@ -1,36 +1,36 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
... | true | true | public double calcularDescuentoPorServicios()
{
double descuento = 0.0;
for (int i = 0; i < servicios.size(); i++) {
descuento += servicios.get(i).getMonto();
}
return 0.0;
}
| public double calcularDescuentoPorServicios()
{
double descuento = 0.0;
for (int i = 0; i < servicios.size(); i++) {
descuento += servicios.get(i).getMonto();
}
return descuento;
}
|
diff --git a/src/com/themagpi/activities/MagpiMainActivity.java b/src/com/themagpi/activities/MagpiMainActivity.java
index 5b589f3..4a4f155 100644
--- a/src/com/themagpi/activities/MagpiMainActivity.java
+++ b/src/com/themagpi/activities/MagpiMainActivity.java
@@ -1,170 +1,174 @@
package com.themagpi.activities;
im... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_magpi_main);
GCMRegistrar.checkDevice(this);
GCMRegistrar.checkManifest(this);
final String idGcm = GCMRegistrar.getRegistrationId(this);
... | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_magpi_main);
try {
GCMRegistrar.checkDevice(this);
GCMRegistrar.checkManifest(this);
final String idGcm = GCMRegistrar.getRegist... |
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/Scope.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/Scope.java
index 867b820d8..cf0625e9a 100644
--- a/src/checkstyle/com/puppycrawl/tools/checkstyle/Scope.java
+++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/Scope.java
@@ -1,183 +1,183 @@
//////... | true | true | static Scope getInstance(String aScopeName)
{
// canonicalize argument
String scopeName = aScopeName.toLowerCase();
final Scope retVal = (Scope) NAME_TO_SCOPE.get(scopeName);
if (retVal == null) {
throw new IllegalArgumentException(scopeName);
}
retur... | static Scope getInstance(String aScopeName)
{
// canonicalize argument
final String scopeName = aScopeName.trim().toLowerCase();
final Scope retVal = (Scope) NAME_TO_SCOPE.get(scopeName);
if (retVal == null) {
throw new IllegalArgumentException(scopeName);
}
... |
diff --git a/src/InventoryFrame.java b/src/InventoryFrame.java
index 88a256c..ba9816d 100644
--- a/src/InventoryFrame.java
+++ b/src/InventoryFrame.java
@@ -1,152 +1,153 @@
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.... | true | true | public InventoryFrame(Player player)
{
super("Inventory");
thePlayer = player;
use = new JButton("Use");
drop = new JButton("Drop");
back = new JButton("Back");
buttons = new JPanel();
ButtonListener handler = new ButtonListener();
use.addActionListener(handler);
drop.addAction... | public InventoryFrame(Player player)
{
super("Inventory");
thePlayer = player;
use = new JButton("Use");
drop = new JButton("Drop");
back = new JButton("Back");
buttons = new JPanel();
ButtonListener handler = new ButtonListener();
use.addActionListener(handler);
drop.addAction... |
diff --git a/server/src/de/hpi/bpmn2execpn/converter/ExecConverter.java b/server/src/de/hpi/bpmn2execpn/converter/ExecConverter.java
index d51c9025..81dd8274 100644
--- a/server/src/de/hpi/bpmn2execpn/converter/ExecConverter.java
+++ b/server/src/de/hpi/bpmn2execpn/converter/ExecConverter.java
@@ -1,499 +1,497 @@
pack... | false | true | protected void handleTask(PetriNet net, Task task, ConversionContext c) {
ExecTask exTask = new ExecTask();
exTask.setId(task.getId());
exTask.setLabel(task.getLabel());
// create proper model, form and bindings
String model = null;
String form = null;
String bindings = null;
DocumentBuilderFactory ... | protected void handleTask(PetriNet net, Task task, ConversionContext c) {
ExecTask exTask = new ExecTask();
exTask.setId(task.getId());
exTask.setLabel(task.getLabel());
// create proper model, form and bindings
String model = null;
String form = null;
String bindings = null;
DocumentBuilderFactory ... |
diff --git a/RapidFTR-Blackberry/src/com/rapidftr/utilities/ImageUtility.java b/RapidFTR-Blackberry/src/com/rapidftr/utilities/ImageUtility.java
index 870fa7a..2b473a4 100755
--- a/RapidFTR-Blackberry/src/com/rapidftr/utilities/ImageUtility.java
+++ b/RapidFTR-Blackberry/src/com/rapidftr/utilities/ImageUtility.java
@@ ... | false | true | public static EncodedImage getBitmapImageForPath(String Path)
{
// String ImagePath = "file://"+ Path;
String ImagePath = Path;
FileConnection fconn;
try {
fconn = (FileConnection) Connector.open(ImagePath,
Connector.READ);
if (fconn.exists()) {
byte[] imageBytes = new byte[(int) fconn.fileSize... | public static EncodedImage getBitmapImageForPath(String Path)
{
// String ImagePath = "file://"+ Path;
String ImagePath = Path;
FileConnection fconn;
try {
fconn = (FileConnection) Connector.open(ImagePath,
Connector.READ);
if (fconn.exists()) {
byte[] imageBytes = new byte[(int) fconn.fileSize... |
diff --git a/Neljansuora/src/datas/GUI.java b/Neljansuora/src/datas/GUI.java
index 21668f1..4c49a5e 100644
--- a/Neljansuora/src/datas/GUI.java
+++ b/Neljansuora/src/datas/GUI.java
@@ -1,112 +1,112 @@
package datas;
import javax.swing.*;
import java.awt.*;
import java.util.LinkedHashMap;
import java.util.Iterato... | true | true | public void setUp() {
setTitle("Ristinolla");
panel = new JPanel(new GridLayout(10, 10));
try {
empty = ImageIO.read(new File("Blank.gif"));
cross = ImageIO.read(new File("Cross.gif"));
circle = ImageIO.read(new File("Circle.gif"));
} catch (IOExce... | public void setUp() {
setTitle("Ristinolla");
panel = new JPanel(new GridLayout(10, 10));
try {
empty = ImageIO.read(new File("Blank.gif"));
cross = ImageIO.read(new File("Cross.gif"));
circle = ImageIO.read(new File("Circle.gif"));
} catch (IOExce... |
diff --git a/java/target/src/test/testrt/PeriodicUnrel.java b/java/target/src/test/testrt/PeriodicUnrel.java
index 89001151..ea4bb3bb 100644
--- a/java/target/src/test/testrt/PeriodicUnrel.java
+++ b/java/target/src/test/testrt/PeriodicUnrel.java
@@ -1,63 +1,61 @@
package testrt;
import util.*;
import joprt.*;
impo... | false | true | public static void main(String[] args) {
Dbg.initSer(); // use serial line for debug output
RtThread rt = new RtThread(10, 100000) {
public void run() {
waitForNextPeriod();
int ts_old = Native.rd(Const.IO_US_CNT);
for (;;) {
waitForNextPeriod();
int ts = Native.rd(Const.IO_US_CNT);... | public static void main(String[] args) {
Dbg.initSer(); // use serial line for debug output
RtThread rt = new RtThread(10, 100000) {
public void run() {
waitForNextPeriod();
int ts_old = Native.rd(Const.IO_US_CNT);
for (;;) {
waitForNextPeriod();
int ts = Native.rd(Const.IO_US_CNT);... |
diff --git a/src/main/java/com/thoughtworks/twu/service/OfferService.java b/src/main/java/com/thoughtworks/twu/service/OfferService.java
index 3809a31..1a2ee00 100644
--- a/src/main/java/com/thoughtworks/twu/service/OfferService.java
+++ b/src/main/java/com/thoughtworks/twu/service/OfferService.java
@@ -1,39 +1,39 @@
... | true | true | public List<Offer> getAll() {
List<Offer> tempOrderedList = offerDao.getAll();
List<Offer> reverseList = new ArrayList<>();
for (int index = tempOrderedList.size()-1; index >= 0; index--) {
reverseList.add(tempOrderedList.get(index));
}
return reverseList;
... | public List<Offer> getAll() {
List<Offer> tempOrderedList = offerDao.getAll();
List<Offer> reverseList = new ArrayList<Offer>();
for (int index = tempOrderedList.size()-1; index >= 0; index--) {
reverseList.add(tempOrderedList.get(index));
}
return reverseList;... |
diff --git a/src/simpleserver/util/UnicodeReader.java b/src/simpleserver/util/UnicodeReader.java
index 4635709..79505ac 100644
--- a/src/simpleserver/util/UnicodeReader.java
+++ b/src/simpleserver/util/UnicodeReader.java
@@ -1,129 +1,131 @@
/*
* Copyright (c) 2010 SimpleServer authors (see CONTRIBUTORS)
*
* Perm... | false | true | protected void processBOM() throws IOException {
byte[] bom = new byte[BOM_SIZE];
int read = pushbackReader.read(bom, 0, BOM_SIZE);
int unread = 0;
Set<String> encodings = BOMS.keySet();
Iterator<String> itr = encodings.iterator();
while (itr.hasNext()) {
String currentEncoding = itr.n... | protected void processBOM() throws IOException {
byte[] bom = new byte[BOM_SIZE];
int read = pushbackReader.read(bom, 0, BOM_SIZE);
int unread = 0;
if (read > 0) {
Set<String> encodings = BOMS.keySet();
Iterator<String> itr = encodings.iterator();
while (itr.hasNext()) {
St... |
diff --git a/jsyslogd/src/com/github/picologger/syslog/Parser.java b/jsyslogd/src/com/github/picologger/syslog/Parser.java
index 8ffb1cf..0ee18a8 100644
--- a/jsyslogd/src/com/github/picologger/syslog/Parser.java
+++ b/jsyslogd/src/com/github/picologger/syslog/Parser.java
@@ -1,116 +1,116 @@
/*
* Copyright (C) 2011 ... | true | true | public static Syslog parse(String record) throws IllegalArgumentException
{
if (null == record)
{
throw new IllegalArgumentException("no record.");
}
Syslog log = new Syslog();
int pos0 = 0;
int pos = 0;
// Validate format.
... | public static Syslog parse(String record) throws IllegalArgumentException
{
if (null == record || "".equals(record))
{
throw new IllegalArgumentException("no record.");
}
Syslog log = new Syslog();
int pos0 = 0;
int pos = 0;
/... |
diff --git a/src/main/java/servlet/TestLampServlet.java b/src/main/java/servlet/TestLampServlet.java
index c66296c..a86f3f9 100644
--- a/src/main/java/servlet/TestLampServlet.java
+++ b/src/main/java/servlet/TestLampServlet.java
@@ -1,99 +1,99 @@
package main.java.servlet;
import java.io.IOException;
import java... | true | true | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String data_value_str = (String)request.getParameter("data_value");
data_value_str = data_value_str.toLowerCase();
// Convert string to corresponding int 0-off 1-on
... | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String data_value_str = (String)request.getParameter("data_value");
data_value_str = data_value_str.toLowerCase();
// Convert string to corresponding int 0-off 1-on
... |
diff --git a/ScoreDeviationGroupingToCSV.java b/ScoreDeviationGroupingToCSV.java
index 2bf181d..30f50a4 100755
--- a/ScoreDeviationGroupingToCSV.java
+++ b/ScoreDeviationGroupingToCSV.java
@@ -1,755 +1,755 @@
/*
* Parsing .dev (performance features), .xml (score features) and .apex.xml (structural info)
* and mak... | true | true | private void scoreDevToPlaceholder() {
String timeSig = "NA";
String exDyn = "NA";
String exDyn_sf = "NA"; // for sf-family. sf is just for one note!
String exTmp = "NA";
String exWedge = "NA";
String key = "NA";
String clef_sign = "NA";
double avg_tempo = -1.0; // -1 means there is no avg_tempo
... | private void scoreDevToPlaceholder() {
String timeSig = "NA";
String exDyn = "NA";
String exDyn_sf = "NA"; // for sf-family. sf is just for one note!
String exTmp = "NA";
String exWedge = "NA";
String key = "NA";
String clef_sign = "NA";
double avg_tempo = -1.0; // -1 means there is no avg_tempo
... |
diff --git a/src/main/java/com/alexrnl/subtitlecorrector/io/SubtitleReader.java b/src/main/java/com/alexrnl/subtitlecorrector/io/SubtitleReader.java
index cbf1859..9afb057 100644
--- a/src/main/java/com/alexrnl/subtitlecorrector/io/SubtitleReader.java
+++ b/src/main/java/com/alexrnl/subtitlecorrector/io/SubtitleReader.... | false | true | public SubtitleFile readFile (final Path file) throws IOException {
if (Files.exists(file) || Files.isReadable(file)) {
lg.warning("File " + file + " does not exists or cannot be read");
}
if (lg.isLoggable(Level.INFO)) {
lg.fine("Loading file " + file);
}
SubtitleFile subtitleFile = null;
// T... | public SubtitleFile readFile (final Path file) throws IOException {
if (!Files.exists(file) || !Files.isReadable(file)) {
lg.warning("File " + file + " does not exists or cannot be read");
throw new IllegalArgumentException("The file does not exist or cannot be read");
}
if (lg.isLoggable(Level.INFO)) {
... |
diff --git a/test/sun/misc/Version/Version.java b/test/sun/misc/Version/Version.java
index 6e7d3626d..16ecd1ea9 100644
--- a/test/sun/misc/Version/Version.java
+++ b/test/sun/misc/Version/Version.java
@@ -1,156 +1,162 @@
/*
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR ... | false | true | private static VersionInfo newVersionInfo(String version) throws Exception {
// valid format of the version string is:
// n.n.n[_uu[c]][-<identifer>]-bxx
int major = 0;
int minor = 0;
int micro = 0;
int update = 0;
String special = "";
int build = 0;
... | private static VersionInfo newVersionInfo(String version) throws Exception {
// valid format of the version string is:
// n.n.n[_uu[c]][-<identifer>]-bxx
int major = 0;
int minor = 0;
int micro = 0;
int update = 0;
String special = "";
int build = 0;
... |
diff --git a/src/edu/cmu/cs/diamond/wholeslide/gui/Demo.java b/src/edu/cmu/cs/diamond/wholeslide/gui/Demo.java
index e3c6387..00cf0a1 100644
--- a/src/edu/cmu/cs/diamond/wholeslide/gui/Demo.java
+++ b/src/edu/cmu/cs/diamond/wholeslide/gui/Demo.java
@@ -1,67 +1,67 @@
package edu.cmu.cs.diamond.wholeslide.gui;
import... | false | true | public static void main(String[] args) {
JFrame jf = new JFrame("zzz");
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
switch (args.length) {
case 0:
System.out.println("oops");
return;
case 1:
WholeslideView wv = new WholeslideView(n... | public static void main(String[] args) {
JFrame jf = new JFrame("Wholeslide");
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
switch (args.length) {
case 0:
System.out.println("Give 1 or 2 files");
return;
case 1:
WholeslideView wv = ... |
diff --git a/MasterMindSolver/src/org/hitzemann/mms/solver/DefaultErgebnisBerechner.java b/MasterMindSolver/src/org/hitzemann/mms/solver/DefaultErgebnisBerechner.java
index d3a77b8..613b318 100644
--- a/MasterMindSolver/src/org/hitzemann/mms/solver/DefaultErgebnisBerechner.java
+++ b/MasterMindSolver/src/org/hitzemann/... | true | true | public ErgebnisKombination berechneErgebnis(SpielKombination geheim,
SpielKombination geraten) {
// Fallback, nix richtig
int korrekt = 0;
int position = 0;
// Trivial: beide gleich
if (geheim.getSpielSteineCount() != geraten.getSpielSteineCount()) {
throw new IllegalArgumentException("Spielsteine habe... | public ErgebnisKombination berechneErgebnis(SpielKombination geheim,
SpielKombination geraten) {
// Fallback, nix richtig
int korrekt = 0;
int position = 0;
// Trivial: beide gleich
if (geheim == null || geraten == null || geheim.getSpielSteineCount() != geraten.getSpielSteineCount() ) {
throw new Ille... |
diff --git a/javafx.platform/src/org/netbeans/modules/javafx/platform/wizard/DetectPanel.java b/javafx.platform/src/org/netbeans/modules/javafx/platform/wizard/DetectPanel.java
index 3f4a0f4e..d0df8912 100644
--- a/javafx.platform/src/org/netbeans/modules/javafx/platform/wizard/DetectPanel.java
+++ b/javafx.platform/sr... | true | true | private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
buttonGroup1 = new javax.swing.ButtonGroup();
jLabel3 = new javax.swing.JLabel();
jdkName = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
fxFolder = new javax.swing.JT... | private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
buttonGroup1 = new javax.swing.ButtonGroup();
jLabel3 = new javax.swing.JLabel();
jdkName = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
fxFolder = new javax.swing.JT... |
diff --git a/src/com/zarcode/data/maint/CleanerTask.java b/src/com/zarcode/data/maint/CleanerTask.java
index ec8e6bf..c5c2b9a 100644
--- a/src/com/zarcode/data/maint/CleanerTask.java
+++ b/src/com/zarcode/data/maint/CleanerTask.java
@@ -1,309 +1,309 @@
package com.zarcode.data.maint;
import java.io.IOException;
im... | true | true | public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
int i = 0;
BuzzDao eventDao = null;
UserDao userDao = null;
List<BuzzMsgDO> list = null;
List<ReadOnlyUserDO> tempUsers = null;
BuzzMsgDO msg = null;
ReadOnlyUserDO tempUser = null;
Calendar now... | public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
int i = 0;
BuzzDao eventDao = null;
UserDao userDao = null;
List<BuzzMsgDO> list = null;
List<ReadOnlyUserDO> tempUsers = null;
BuzzMsgDO msg = null;
ReadOnlyUserDO tempUser = null;
Calendar no... |
diff --git a/drools-camel-server/src/main/java/org/drools/server/Test.java b/drools-camel-server/src/main/java/org/drools/server/Test.java
index d4986496c..982ebd997 100644
--- a/drools-camel-server/src/main/java/org/drools/server/Test.java
+++ b/drools-camel-server/src/main/java/org/drools/server/Test.java
@@ -1,78 +1... | true | true | public String send(String msg) {
ClassPathXmlApplicationContext springContext = new ClassPathXmlApplicationContext("classpath:camel-client.xml");
String batch = "";
batch += "<batch-execution lookup=\"ksession1\">\n";
batch += " <insert out-identifier=\"message\">\n";
batch ... | public String send(String msg) {
ClassPathXmlApplicationContext springContext = new ClassPathXmlApplicationContext("classpath:/camel-client.xml");
String batch = "";
batch += "<batch-execution lookup=\"ksession1\">\n";
batch += " <insert out-identifier=\"message\">\n";
batch... |
diff --git a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Folder.java b/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Folder.java
index 8784402a8..5d9328e4e 100644
--- a/bundles/org.eclipse.core.resources/src/org/eclipse/core/internal/resources/Folder.java
+++ ... | true | true | public void create(boolean force, boolean local, IProgressMonitor monitor) throws CoreException {
monitor = Policy.monitorFor(monitor);
try {
monitor.beginTask(Policy.bind("creating", new String[] { getFullPath().toString()}), Policy.totalWork);
checkValidPath(path, FOLDER);
try {
workspace.prepareOperation(... | public void create(boolean force, boolean local, IProgressMonitor monitor) throws CoreException {
monitor = Policy.monitorFor(monitor);
try {
monitor.beginTask(Policy.bind("creating", new String[] { getFullPath().toString()}), Policy.totalWork);
checkValidPath(path, FOLDER);
try {
workspace.prepareOperation(... |
diff --git a/java/osgi/database/src/main/java/com/tintin/devcloud/database/manager/DatabaseManager.java b/java/osgi/database/src/main/java/com/tintin/devcloud/database/manager/DatabaseManager.java
index a44f4af..1edfe6b 100644
--- a/java/osgi/database/src/main/java/com/tintin/devcloud/database/manager/DatabaseManager.j... | true | true | public DatabaseManager(Activator activator) {
this.activator = activator;
modelEMF = Persistence.createEntityManagerFactory("datamodel");
}
| public DatabaseManager(Activator activator) {
this.activator = activator;
modelEMF = Persistence.createEntityManagerFactory("model");
}
|
diff --git a/src/de/cloudarts/aibattleai/AIContainer.java b/src/de/cloudarts/aibattleai/AIContainer.java
index 8982b3b..7e4d04a 100644
--- a/src/de/cloudarts/aibattleai/AIContainer.java
+++ b/src/de/cloudarts/aibattleai/AIContainer.java
@@ -1,203 +1,203 @@
package de.cloudarts.aibattleai;
import java.io.IOException... | true | true | public void start()
{
if( !requestNewMatch() )
{
return;
}
// actual game loop
while(true)
{
//get game status
String lastGameStatusAnswerString = requestMatchStatus();
if( isErrorAnswer(lastGameStatusAnswerString) )
{
return;
}
if( isDrawGame(lastGameStatusAnswerStri... | public void start()
{
if( !requestNewMatch() )
{
return;
}
// actual game loop
while(true)
{
//get game status
String lastGameStatusAnswerString = requestMatchStatus();
if( isErrorAnswer(lastGameStatusAnswerString) )
{
return;
}
if( isDrawGame(lastGameStatusAnswerStri... |
diff --git a/de.hswt.hrm.scheme.ui/src/de/hswt/hrm/scheme/ui/TreeManager.java b/de.hswt.hrm.scheme.ui/src/de/hswt/hrm/scheme/ui/TreeManager.java
index dd90a9c9..b04636e9 100644
--- a/de.hswt.hrm.scheme.ui/src/de/hswt/hrm/scheme/ui/TreeManager.java
+++ b/de.hswt.hrm.scheme.ui/src/de/hswt/hrm/scheme/ui/TreeManager.java
@... | false | true | private void generateTreeItems(){
tree.clearAll(true);
HashMap<Category, TreeItem> categoryItems = new HashMap<>();
for(RenderedComponent comp : model.getImages()){
Category c = comp.getComponent().getCategory();
TreeItem categoryItem = categoryItems.get(c);
if(categoryItem == null){
categoryI... | private void generateTreeItems(){
tree.clearAll(true);
HashMap<Category, TreeItem> categoryItems = new HashMap<>();
for(RenderedComponent comp : model.getImages()){
Category c = comp.getComponent().getCategory();
TreeItem categoryItem = categoryItems.get(c);
if(categoryItem == null){
categoryI... |
diff --git a/src/nu/validator/htmlparser/impl/TreeBuilder.java b/src/nu/validator/htmlparser/impl/TreeBuilder.java
index f9988d0..5ca303b 100644
--- a/src/nu/validator/htmlparser/impl/TreeBuilder.java
+++ b/src/nu/validator/htmlparser/impl/TreeBuilder.java
@@ -1,5617 +1,5624 @@
/*
* Copyright (c) 2007 Henri Sivonen
... | true | true | public final void startTag(ElementName elementName,
HtmlAttributes attributes, boolean selfClosing) throws SAXException {
flushCharacters();
// [NOCPP[
if (errorHandler != null) {
// ID uniqueness
@IdType String id = attributes.getId();
if (id ... | public final void startTag(ElementName elementName,
HtmlAttributes attributes, boolean selfClosing) throws SAXException {
flushCharacters();
// [NOCPP[
if (errorHandler != null) {
// ID uniqueness
@IdType String id = attributes.getId();
if (id ... |
diff --git a/src/main/java/com/feedme/activity/AddChildActivity.java b/src/main/java/com/feedme/activity/AddChildActivity.java
index 6f95dc4..cb6ee1b 100644
--- a/src/main/java/com/feedme/activity/AddChildActivity.java
+++ b/src/main/java/com/feedme/activity/AddChildActivity.java
@@ -1,256 +1,256 @@
package com.feedme... | false | true | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.add_child);
googleAnalyticsTracker.startNewSession(TRACKING_ID, this);
googleAnalyticsTracker.trackPageView("/Add-Child");
final BabyDao babyDao = new BabyDao(g... | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.add_child);
googleAnalyticsTracker.startNewSession(TRACKING_ID, this);
googleAnalyticsTracker.trackPageView("/Add-Child");
final BabyDao babyDao = new BabyDao(g... |
diff --git a/restconfig/src/main/java/org/geoserver/catalog/rest/FeatureTypeListResource.java b/restconfig/src/main/java/org/geoserver/catalog/rest/FeatureTypeListResource.java
index 798db4d11..f69f6791d 100644
--- a/restconfig/src/main/java/org/geoserver/catalog/rest/FeatureTypeListResource.java
+++ b/restconfig/src/m... | true | true | protected List handleListGet() throws Exception {
String ws = getAttribute( "workspace" );
String ds = getAttribute("datastore");
if ( ds != null ) {
DataStoreInfo dataStore = catalog.getDataStoreByName( ds );
return catalog.getFeatureTypesByDataStore(dataSt... | protected List handleListGet() throws Exception {
String ws = getAttribute( "workspace" );
String ds = getAttribute("datastore");
if ( ds != null ) {
DataStoreInfo dataStore = catalog.getDataStoreByName(ws, ds);
return catalog.getFeatureTypesByDataStore(data... |
diff --git a/dbflute/src/main/java/org/seasar/dbflute/logic/dumpdata/DfDumpDataExtractor.java b/dbflute/src/main/java/org/seasar/dbflute/logic/dumpdata/DfDumpDataExtractor.java
index 25e9d5068..6b83e821f 100644
--- a/dbflute/src/main/java/org/seasar/dbflute/logic/dumpdata/DfDumpDataExtractor.java
+++ b/dbflute/src/main... | false | true | public Map<String, List<Map<String, String>>> extractData(Map<String, List<String>> tableColumnMap, int limit) {
final Map<String, List<Map<String, String>>> dumpDataMap = new LinkedHashMap<String, List<Map<String, String>>>();
try {
final Set<String> tableNameSet = tableColumnMap.keySet... | public Map<String, List<Map<String, String>>> extractData(Map<String, List<String>> tableColumnMap, int limit) {
final Map<String, List<Map<String, String>>> dumpDataMap = new LinkedHashMap<String, List<Map<String, String>>>();
Connection conn = null;
try {
conn = _dataSource.get... |
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/LocalHistoryPage.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/LocalHistoryPage.java
index eb999da99..d5c1a44d0 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/LocalHistoryPa... | true | true | private void contributeActions() {
final IPreferenceStore store = TeamUIPlugin.getPlugin().getPreferenceStore();
//Group by Date
groupByDateMode = new Action(TeamUIMessages.LocalHistoryPage_GroupRevisionsByDateAction, TeamUIPlugin.getImageDescriptor(ITeamUIImages.IMG_DATES_CATEGORY)){
public void run() {
... | private void contributeActions() {
final IPreferenceStore store = TeamUIPlugin.getPlugin().getPreferenceStore();
//Group by Date
groupByDateMode = new Action(TeamUIMessages.LocalHistoryPage_GroupRevisionsByDateAction, TeamUIPlugin.getImageDescriptor(ITeamUIImages.IMG_DATES_CATEGORY)){
public void run() {
... |
diff --git a/src/com/reelfx/Applet.java b/src/com/reelfx/Applet.java
index 79b5318..79f76bc 100644
--- a/src/com/reelfx/Applet.java
+++ b/src/com/reelfx/Applet.java
@@ -1,661 +1,661 @@
package com.reelfx;
import java.awt.Dimension;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import jav... | true | true | public void init() {
try {
if(getParameter("dev_mode") != null)
DEV_MODE = true;
// setup properties configuration (should before base folder)
if(Applet.DEV_MODE) {
PROPERTIES.load(new FileInputStream("../config.properties"));
} else {
PROPERTIES.load(this.getClass().getClassLoader().g... | public void init() {
try {
if(getParameter("dev_mode") != null)
DEV_MODE = getParameter("dev_mode").equals("true");
// setup properties configuration (should before base folder)
if(Applet.DEV_MODE) {
PROPERTIES.load(new FileInputStream("../config.properties"));
} else {
PROPERTIES.load... |
diff --git a/app/controllers/DataHub.java b/app/controllers/DataHub.java
index 61f165b..0db5023 100644
--- a/app/controllers/DataHub.java
+++ b/app/controllers/DataHub.java
@@ -1,315 +1,315 @@
package controllers;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Array... | true | true | public static Result track() {
response().setContentType( "image/png" );
InputStream outGifStream = Play.application().resourceAsStream("/public/images/site/blank.png");
Form<TrackRequest> req = form( TrackRequest.class ).bindFromRequest();
if( req.hasErrors() ) return badRequest( outGifStream );
Trac... | public static Result track() {
response().setContentType( "image/png" );
InputStream outGifStream = Play.application().resourceAsStream("/public/images/site/blank.png");
Form<TrackRequest> req = form( TrackRequest.class ).bindFromRequest();
if( req.hasErrors() ) return badRequest( outGifStream );
Trac... |
diff --git a/src/ru/spbau/bioinf/evalue/SquareSearch.java b/src/ru/spbau/bioinf/evalue/SquareSearch.java
index 909f91a..2bc18a2 100644
--- a/src/ru/spbau/bioinf/evalue/SquareSearch.java
+++ b/src/ru/spbau/bioinf/evalue/SquareSearch.java
@@ -1,47 +1,47 @@
package ru.spbau.bioinf.evalue;
import java.sql.Connection;
... | true | true | public static void main(String[] args) throws Exception {
Configuration conf = new Configuration(args);
EValueServer.init(args);
Map<Integer,Scan> scans = conf.getScans();
DbUtil.initDatabase();
Connection con = DbUtil.getConnection();
PreparedStatement ps = null;
... | public static void main(String[] args) throws Exception {
Configuration conf = new Configuration(args);
EValueServer.init(args);
Map<Integer,Scan> scans = conf.getScans();
DbUtil.initDatabase();
Connection con = DbUtil.getConnection();
PreparedStatement ps = null;
... |
diff --git a/EclipseProject/src/weatherOracle/activity/NotificationActivity.java b/EclipseProject/src/weatherOracle/activity/NotificationActivity.java
index 3689dca..a7fb90a 100644
--- a/EclipseProject/src/weatherOracle/activity/NotificationActivity.java
+++ b/EclipseProject/src/weatherOracle/activity/NotificationActiv... | false | true | private void displayNotifications() {
try {
if(notificationList.size()==1)
statusBarNotification(R.drawable.clouds,
notificationList.get(0).getName(),
"WeatherOracle",
notificationList.get(0).getName() + ". Location:" + notificationList.get(0).getFilter().getLocationName()
+ ". First O... | private void displayNotifications() {
try {
if(notificationList.size()==1)
statusBarNotification(R.drawable.icon,
notificationList.get(0).getName(),
"WeatherOracle",
notificationList.get(0).getName() + ". Location:" + notificationList.get(0).getFilter().getLocationName()
+ ". First Occ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.