diff stringlengths 262 553k | is_single_chunk bool 2
classes | is_single_function bool 1
class | buggy_function stringlengths 20 391k | fixed_function stringlengths 0 392k |
|---|---|---|---|---|
diff --git a/src/java/davmail/smtp/SmtpConnection.java b/src/java/davmail/smtp/SmtpConnection.java
index 7cd1d76..2f6e17c 100644
--- a/src/java/davmail/smtp/SmtpConnection.java
+++ b/src/java/davmail/smtp/SmtpConnection.java
@@ -1,157 +1,158 @@
package davmail.smtp;
import davmail.AbstractConnection;
import davmai... | true | true | public void run() {
String line;
StringTokenizer tokens;
try {
ExchangeSession.checkConfig();
sendClient("220 DavMail SMTP ready at " + new Date());
for (; ;) {
line = readClient();
// unable to read line, connection closed... | public void run() {
String line;
StringTokenizer tokens;
try {
ExchangeSession.checkConfig();
sendClient("220 DavMail SMTP ready at " + new Date());
for (; ;) {
line = readClient();
// unable to read line, connection closed... |
diff --git a/src/com/android/browser/PhoneUi.java b/src/com/android/browser/PhoneUi.java
index 009989bc..f5a76b92 100644
--- a/src/com/android/browser/PhoneUi.java
+++ b/src/com/android/browser/PhoneUi.java
@@ -1,478 +1,488 @@
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache ... | false | true | void hideNavScreen(boolean animate) {
if (mNavScreen == null) return;
final Tab tab = mNavScreen.getSelectedTab();
if ((tab == null) || !animate) {
mContentView.setVisibility(View.VISIBLE);
finishAnimateOut();
return;
}
NavTabView tabview =... | void hideNavScreen(boolean animate) {
if (mNavScreen == null) return;
final Tab tab = mNavScreen.getSelectedTab();
if ((tab == null) || !animate) {
if (tab != null) {
setActiveTab(tab);
} else if (mTabControl.getTabCount() > 0) {
// use... |
diff --git a/src/com/behindthemirrors/minecraft/sRPG/DamageEventListener.java b/src/com/behindthemirrors/minecraft/sRPG/DamageEventListener.java
index 60d0335..989b44a 100644
--- a/src/com/behindthemirrors/minecraft/sRPG/DamageEventListener.java
+++ b/src/com/behindthemirrors/minecraft/sRPG/DamageEventListener.java
@@ ... | false | true | public void onEntityDamage(EntityDamageEvent event) {
String sourcename = "";
Entity source = null;
Player player = null;
Entity target = event.getEntity();
if (event.getCause() == DamageCause.FALL) {
if (target instanceof Player) {
PassiveAbility.trigger((Player)target, event);
}
} else if... | public void onEntityDamage(EntityDamageEvent event) {
String sourcename = "";
Entity source = null;
Player player = null;
Entity target = event.getEntity();
if (event.getCause() == DamageCause.FALL) {
if (target instanceof Player) {
PassiveAbility.trigger((Player)target, event);
}
} else if... |
diff --git a/src/org/latte/LatteServlet.java b/src/org/latte/LatteServlet.java
index 64c0161..f29a923 100644
--- a/src/org/latte/LatteServlet.java
+++ b/src/org/latte/LatteServlet.java
@@ -1,95 +1,96 @@
package org.latte;
import org.latte.scripting.hostobjects.RequestProxy;
import java.io.IOException;
import ja... | true | true | public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
Context cx = ContextFactory.getGlobal().enterContext();
Session session;
if((session = (Session)request.getSession().getAttribute("latte.session")) == null) {
session = new Sessi... | public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
Context cx = ContextFactory.getGlobal().enterContext();
Session session;
if((session = (Session)request.getSession().getAttribute("latte.session")) == null) {
session = new Sessi... |
diff --git a/src/com/athena/asm/util/SmthSupport.java b/src/com/athena/asm/util/SmthSupport.java
index e00b4ff..e27ee7d 100644
--- a/src/com/athena/asm/util/SmthSupport.java
+++ b/src/com/athena/asm/util/SmthSupport.java
@@ -1,1568 +1,1568 @@
package com.athena.asm.util;
import java.io.File;
import java.text.Parse... | false | true | public List<Post> getPostListFromMobile(Subject subject,
ArrayList<String> blackList, int boardType) {
String url = "";
int currentPageNo = subject.getCurrentPageNo();
boolean isInSubject = false;
if (boardType == SubjectListFragment.BOARD_TYPE_SUBJECT) {
url = "http://m.newsmth.net/article/" + subject.g... | public List<Post> getPostListFromMobile(Subject subject,
ArrayList<String> blackList, int boardType) {
String url = "";
int currentPageNo = subject.getCurrentPageNo();
boolean isInSubject = false;
if (boardType == SubjectListFragment.BOARD_TYPE_SUBJECT) {
url = "http://m.newsmth.net/article/" + subject.g... |
diff --git a/editor/src/main/java/com/nebula2d/editor/ui/NewComponentPopup.java b/editor/src/main/java/com/nebula2d/editor/ui/NewComponentPopup.java
index 9f9f3ef..2da2333 100644
--- a/editor/src/main/java/com/nebula2d/editor/ui/NewComponentPopup.java
+++ b/editor/src/main/java/com/nebula2d/editor/ui/NewComponentPopup.... | true | true | private void create() {
JMenu rendererMenu = new JMenu("Renderer");
JMenuItem spriteRendererMenuItem = rendererMenu.add("SpriteAnimatedRenderer");
JMenuItem tileMapRendererMenuItem = rendererMenu.add("TileMapRenderer");
JMenu audioMenu = new JMenu("Audio");
JMenuItem musicSo... | private void create() {
JMenu rendererMenu = new JMenu("Renderer");
JMenuItem spriteRendererMenuItem = rendererMenu.add("SpriteRenderer");
JMenuItem tileMapRendererMenuItem = rendererMenu.add("TileMapRenderer");
JMenu audioMenu = new JMenu("Audio");
JMenuItem musicSourceMenu... |
diff --git a/dspace-api/src/main/java/org/dspace/authorize/ResourcePolicy.java b/dspace-api/src/main/java/org/dspace/authorize/ResourcePolicy.java
index ff5185b09..4c2751f6a 100644
--- a/dspace-api/src/main/java/org/dspace/authorize/ResourcePolicy.java
+++ b/dspace-api/src/main/java/org/dspace/authorize/ResourcePolicy.... | true | true | public boolean isDateValid()
{
Date sd = getStartDate();
Date ed = getEndDate();
// if no dates set, return true (most common case)
if ((sd == null) && (ed == null))
{
return true;
}
// one is set, now need to do some date math
Date n... | public boolean isDateValid()
{
Date sd = getStartDate();
Date ed = getEndDate();
// if no dates set, return true (most common case)
if ((sd == null) && (ed == null))
{
return true;
}
// one is set, now need to do some date math
Date n... |
diff --git a/src/gradespeed/Main.java b/src/gradespeed/Main.java
index beb4b4e..13be0e0 100644
--- a/src/gradespeed/Main.java
+++ b/src/gradespeed/Main.java
@@ -1,167 +1,168 @@
package gradespeed;
import java.io.*;
import static java.lang.System.*;
import java.util.*;
import org.jsoup.*;
import org.jsoup.Connecti... | false | true | public static String getHTML() throws Exception{
//Log in
long start = System.currentTimeMillis();
out.println("Logging in...");
String password = "Cocacola1";
Response res = J... | public static String getHTML() throws Exception{
//Log in
long start = System.currentTimeMillis();
out.println("Logging in...");
String username = "";
String password = "";
Response res = Jsoup
.connect("https://gradespeed.kleinisd.net/pc/Default.... |
diff --git a/sensor/src/main/java/dk/dtu/imm/distributedsystems/projects/sensornetwork/sensor/Sensor.java b/sensor/src/main/java/dk/dtu/imm/distributedsystems/projects/sensornetwork/sensor/Sensor.java
index 7bbc11c..fced9a4 100644
--- a/sensor/src/main/java/dk/dtu/imm/distributedsystems/projects/sensornetwork/sensor/Se... | true | true | public static void main(String[] args) {
if (args.length != 1) {
System.out
.println("Please provide only one parameter - a suitable property file");
return;
}
Sensor sensor = null;
try {
sensor = SensorUtility.getSensorInstance(args[0]);
} catch (NodeInitializationException e) {
System.o... | public static void main(String[] args) {
if (args.length != 1) {
System.out
.println("Please provide only one parameter - a suitable property file");
return;
}
Sensor sensor = null;
try {
sensor = SensorUtility.getSensorInstance(args[0]);
} catch (NodeInitializationException e) {
System.o... |
diff --git a/src/notifier/SRMNotifierServlet.java b/src/notifier/SRMNotifierServlet.java
index 75a9963..9bb2e85 100755
--- a/src/notifier/SRMNotifierServlet.java
+++ b/src/notifier/SRMNotifierServlet.java
@@ -1,132 +1,132 @@
package notifier;
import java.io.IOException;
import java.text.SimpleDateFormat;
import j... | true | true | public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
log.info("場所(Locale):" + Locale.getDefault());
GregorianCalendar cal = new GregorianCalendar();
Date now = cal.getTime();
log.info("[" + now + ":" + format.format(now) + "]");
PersistenceManager pm = PMF.get().getPer... | public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
log.info("場所(Locale):" + Locale.getDefault());
GregorianCalendar cal = new GregorianCalendar();
Date now = cal.getTime();
log.info("[" + now + ":" + format.format(now) + "]");
PersistenceManager pm = PMF.get().getPer... |
diff --git a/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/commands/RemoveElementHandler.java b/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/reviews/r4e/ui/commands/RemoveElementHandler.java
index ea8d30f..a3da15c 100644
--- a/org.eclipse.mylyn.reviews.r4e.ui/src/org/eclipse/mylyn/revi... | true | true | public Object execute(ExecutionEvent event) {
final IStructuredSelection selection = (IStructuredSelection) HandlerUtil.getCurrentSelection(event);
if (!selection.isEmpty()) {
IR4EUIModelElement element = null;
MessageDialogWithToggle dialog = null;
for (final Iterator<?> iterator = selection.iterator();... | public Object execute(ExecutionEvent event) {
final IStructuredSelection selection = (IStructuredSelection) HandlerUtil.getCurrentSelection(event);
if (!selection.isEmpty()) {
IR4EUIModelElement element = null;
MessageDialogWithToggle dialog = null;
for (final Iterator<?> iterator = selection.iterator();... |
diff --git a/src/net/sf/freecol/client/gui/panel/NegotiationDialog.java b/src/net/sf/freecol/client/gui/panel/NegotiationDialog.java
index fa0367f1e..c20ef27b4 100644
--- a/src/net/sf/freecol/client/gui/panel/NegotiationDialog.java
+++ b/src/net/sf/freecol/client/gui/panel/NegotiationDialog.java
@@ -1,730 +1,730 @@
pa... | false | true | public void initialize() {
int foreignGold = 0;
Element report = getCanvas().getClient().getInGameController().getForeignAffairsReport();
int number = report.getChildNodes().getLength();
for (int i = 0; i < number; i++) {
Element enemyElement = (Element) report.getChildN... | public void initialize() {
int foreignGold = 0;
Element report = getCanvas().getClient().getInGameController().getForeignAffairsReport();
int number = report.getChildNodes().getLength();
for (int i = 0; i < number; i++) {
Element enemyElement = (Element) report.getChildN... |
diff --git a/src/org/xbmc/jsonrpc/client/ControlClient.java b/src/org/xbmc/jsonrpc/client/ControlClient.java
index 77de163..0844675 100644
--- a/src/org/xbmc/jsonrpc/client/ControlClient.java
+++ b/src/org/xbmc/jsonrpc/client/ControlClient.java
@@ -1,490 +1,490 @@
/*
* Copyright (C) 2005-2009 Team XBMC
* ... | true | true | public ICurrentlyPlaying getCurrentlyPlaying(INotifiableManager manager) {
final IControlClient.ICurrentlyPlaying nothingPlaying = new IControlClient.ICurrentlyPlaying() {
private static final long serialVersionUID = -1554068775915058884L;
public boolean isPlaying() { return false; }
public int getMediaT... | public ICurrentlyPlaying getCurrentlyPlaying(INotifiableManager manager) {
final IControlClient.ICurrentlyPlaying nothingPlaying = new IControlClient.ICurrentlyPlaying() {
private static final long serialVersionUID = -1554068775915058884L;
public boolean isPlaying() { return false; }
public int getMediaT... |
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
index 0f236cf7..a0dfcbab 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
+++... | true | true | void loadTiles() {
// Reset reference tiles
mIMETile = null;
// Filter items not compatible with device
boolean bluetoothSupported = deviceSupportsBluetooth();
boolean telephonySupported = deviceSupportsTelephony(mContext);
if (!bluetoothSupported) {
TIL... | void loadTiles() {
// Reset reference tiles
mIMETile = null;
// Filter items not compatible with device
boolean bluetoothSupported = deviceSupportsBluetooth();
boolean telephonySupported = deviceSupportsTelephony(mContext);
if (!bluetoothSupported) {
TIL... |
diff --git a/plugins/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/SaxParserConsumer.java b/plugins/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/SaxParserConsumer.java
index a4626c1f2..231e3e536 100644
--- a/plugins/org.eclipse.birt.report.data.... | true | true | public SaxParserConsumer( ResultSet rs, RelationInformation rinfo, XMLDataInputStream is, String tName ) throws OdaException
{
super( rs, rinfo, is, tName );
}
| public SaxParserConsumer( ResultSet rs, RelationInformation rinfo, XMLDataInputStream is, String tName ) throws OdaException
{
super( rinfo, is, tName );
}
|
diff --git a/src/main/java/org/basex/gui/view/editor/EditorView.java b/src/main/java/org/basex/gui/view/editor/EditorView.java
index 299bdc7c9..37d2acb28 100644
--- a/src/main/java/org/basex/gui/view/editor/EditorView.java
+++ b/src/main/java/org/basex/gui/view/editor/EditorView.java
@@ -1,776 +1,776 @@
package org.ba... | true | true | public EditorView(final ViewNotifier man) {
super(EDITORVIEW, man);
border(5).layout(new BorderLayout());
label = new BaseXLabel(EDITOR, true, false);
label.setForeground(GUIConstants.GRAY);
final BaseXButton openB = BaseXButton.command(GUICommands.C_EDITOPEN, gui);
final BaseXButton saveB =... | public EditorView(final ViewNotifier man) {
super(EDITORVIEW, man);
border(5).layout(new BorderLayout());
label = new BaseXLabel(EDITOR, true, false);
label.setForeground(GUIConstants.GRAY);
final BaseXButton openB = BaseXButton.command(GUICommands.C_EDITOPEN, gui);
final BaseXButton saveB =... |
diff --git a/me/duper51/BattlefieldPlugin/BFMain.java b/me/duper51/BattlefieldPlugin/BFMain.java
index 3722657..a39db88 100644
--- a/me/duper51/BattlefieldPlugin/BFMain.java
+++ b/me/duper51/BattlefieldPlugin/BFMain.java
@@ -1,29 +1,28 @@
package me.duper51.BattlefieldPlugin;
import java.util.logging.Logger;
imp... | true | true | public void onEnable() {
// TODO Auto-generated method stub
PluginManager pm = getServer().getPluginManager();
pm.registerEvent(Event.Type.PLAYER_LOGIN, plistener, null, Priority.Normal, this);
pm.registerEvent(Event.Type.PLAYER_QUIT, plistener, null, Priority.Normal, this);
log.info("[BFPlugin] Battlefield ... | public void onEnable() {
// TODO Auto-generated method stub
PluginManager pm = getServer().getPluginManager();
pm.registerEvent(Event.Type.PLAYER_LOGIN, plistener, Priority.Normal, this);
pm.registerEvent(Event.Type.PLAYER_QUIT, plistener, Priority.Normal, this);
getCommand("bf").setExecutor(new BFCMDEXE());... |
diff --git a/src/main/java/org/drpowell/varitas/MendelianConstraintFilter.java b/src/main/java/org/drpowell/varitas/MendelianConstraintFilter.java
index c6524e6..ae2a97a 100644
--- a/src/main/java/org/drpowell/varitas/MendelianConstraintFilter.java
+++ b/src/main/java/org/drpowell/varitas/MendelianConstraintFilter.java... | true | true | public VCFVariant filter(VCFVariant element) {
// FIXME - have option to only return variants with at least one MV
double [][] logLikelihoods = element.getGenotypeLikelihoods();
if (null == logLikelihoods) return element; // no likelihood info, just pass on through. FIXME-- decide whether to pass or fail
TRIO:... | public VCFVariant filter(VCFVariant element) {
// FIXME - have option to only return variants with at least one MV
double [][] logLikelihoods = element.getGenotypeLikelihoods();
if (null == logLikelihoods) return element; // no likelihood info, just pass on through. FIXME-- decide whether to pass or fail
TRIO:... |
diff --git a/datastore/src/main/java/org/jboss/capedwarf/datastore/query/Projections.java b/datastore/src/main/java/org/jboss/capedwarf/datastore/query/Projections.java
index eb42fe8e..12b973f9 100644
--- a/datastore/src/main/java/org/jboss/capedwarf/datastore/query/Projections.java
+++ b/datastore/src/main/java/org/jb... | true | true | private static boolean indexMatches(IndexesXml.Index index, Query query) {
if (!index.getKind().equals(query.getKind())) {
return false;
}
Set<String> filterProperties = getFilterProperties(query);
Set<String> sortProperties = getSortProperties(query);
Set<String... | private static boolean indexMatches(IndexesXml.Index index, Query query) {
if (!index.getKind().equals(query.getKind())) {
return false;
}
Set<String> filterProperties = getFilterProperties(query);
Set<String> sortProperties = getSortProperties(query);
Set<String... |
diff --git a/generator/src/main/java/org/jsonddl/generator/idiomatic/IdiomaticDialect.java b/generator/src/main/java/org/jsonddl/generator/idiomatic/IdiomaticDialect.java
index dcb2c09..80bfb1a 100644
--- a/generator/src/main/java/org/jsonddl/generator/idiomatic/IdiomaticDialect.java
+++ b/generator/src/main/java/org/j... | true | true | public boolean visit(Type t) {
switch (t.getKind()) {
case BOOLEAN:
out.print("false");
break;
case DDL:
case ENUM:
case EXTERNAL:
out.format("\"%s\"", t.getName());
break;
case DOUBLE:
out.print("0.0");
break;... | public boolean visit(Type t) {
switch (t.getKind()) {
case BOOLEAN:
out.print("false");
break;
case DDL:
case ENUM:
case EXTERNAL:
out.format("\"%s\"", t.getName());
break;
case DOUBLE:
out.print("0.0");
break;... |
diff --git a/src/ConsensusHealthChecker.java b/src/ConsensusHealthChecker.java
index d85c5c5..b274b03 100644
--- a/src/ConsensusHealthChecker.java
+++ b/src/ConsensusHealthChecker.java
@@ -1,747 +1,747 @@
import java.io.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
impo... | true | true | public void writeStatusWebsite() {
/* If we don't have any consensus, we cannot write useful consensus
* health information to the website. Do not overwrite existing page
* with a warning, because we might just not have learned about a new
* consensus in this execution. */
if (this.mostRecentC... | public void writeStatusWebsite() {
/* If we don't have any consensus, we cannot write useful consensus
* health information to the website. Do not overwrite existing page
* with a warning, because we might just not have learned about a new
* consensus in this execution. */
if (this.mostRecentC... |
diff --git a/src/main/java/com/onarandombox/multiverseinventories/config/SimpleMVIConfig.java b/src/main/java/com/onarandombox/multiverseinventories/config/SimpleMVIConfig.java
index 933c92e..7739e6a 100644
--- a/src/main/java/com/onarandombox/multiverseinventories/config/SimpleMVIConfig.java
+++ b/src/main/java/com/on... | false | true | public List<WorldGroup> getWorldGroups() {
if (!this.getConfig().contains("groups")) {
return null;
}
ConfigurationSection groupsSection = this.getConfig().getConfigurationSection("groups");
Set<String> groupNames = groupsSection.getKeys(false);
List<WorldGroup> w... | public List<WorldGroup> getWorldGroups() {
ConfigurationSection groupsSection = this.getConfig().getConfigurationSection("groups");
if (groupsSection == null) {
return null;
}
Set<String> groupNames = groupsSection.getKeys(false);
List<WorldGroup> worldGroups = ne... |
diff --git a/src/eclipse/plugins/com.ibm.sbt.core/src/com/ibm/sbt/services/endpoints/OAuthEndpoint.java b/src/eclipse/plugins/com.ibm.sbt.core/src/com/ibm/sbt/services/endpoints/OAuthEndpoint.java
index 060b1206a..c4879cba7 100644
--- a/src/eclipse/plugins/com.ibm.sbt.core/src/com/ibm/sbt/services/endpoints/OAuthEndpoi... | true | true | public void process(HttpRequest request, HttpContext context) throws HttpException, IOException {
String authorizationheader = null;
if (oaHandler != null) {
if (oaHandler.getClass().equals(HMACOAuth1Handler.class)) {
String requestUri = request.getRequestLine().getUri().toString();
// Using UrlU... | public void process(HttpRequest request, HttpContext context) throws HttpException, IOException {
String authorizationheader = null;
if (oaHandler != null) {
if (oaHandler.getClass().equals(HMACOAuth1Handler.class)) {
String requestUri = request.getRequestLine().getUri().toString();
// Using UrlU... |
diff --git a/src/com/fede/ActiveState.java b/src/com/fede/ActiveState.java
index d3eb4ef..d197636 100644
--- a/src/com/fede/ActiveState.java
+++ b/src/com/fede/ActiveState.java
@@ -1,164 +1,165 @@
/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with t... | true | true | public void handlePhoneOffHook(HomeAloneService s) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(s);
if(!PrefUtils.getBoolPreference(prefs, R.string.skip_handled_key, s))
return;
Cursor c = DroidContentProviderClient.getAllCall(s);
if (c.moveToFirst()) {
do{ ... | public void handlePhoneOffHook(HomeAloneService s) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(s);
if(!PrefUtils.getBoolPreference(prefs, R.string.skip_handled_key, s))
return;
Cursor c = DroidContentProviderClient.getAllCall(s);
if (c.moveToFirst()) {
do{ ... |
diff --git a/PiiriAhi/src/main/java/ee/itcollege/team24/entities/BaseHistoryEntity.java b/PiiriAhi/src/main/java/ee/itcollege/team24/entities/BaseHistoryEntity.java
index a5ce235..cb58f6d 100644
--- a/PiiriAhi/src/main/java/ee/itcollege/team24/entities/BaseHistoryEntity.java
+++ b/PiiriAhi/src/main/java/ee/itcollege/te... | true | true | private void setTemporaryClosedDate() {
Calendar tempDate = Calendar.getInstance();
tempDate.clear();
tempDate.set(Calendar.YEAR, 9998);
tempDate.set(Calendar.MONTH, 12);
tempDate.set(Calendar.DAY_OF_MONTH, 31);
this.suletud = tempDate;
}
| private void setTemporaryClosedDate() {
Calendar tempDate = Calendar.getInstance();
tempDate.clear();
tempDate.set(Calendar.YEAR, 9999);
tempDate.set(Calendar.MONTH, Calendar.DECEMBER);
tempDate.set(Calendar.DAY_OF_MONTH, 31);
this.suletud = tempDate;
}
|
diff --git a/src/org/apache/xerces/util/DOMUtil.java b/src/org/apache/xerces/util/DOMUtil.java
index 9ccfa3ee7..79325fd06 100644
--- a/src/org/apache/xerces/util/DOMUtil.java
+++ b/src/org/apache/xerces/util/DOMUtil.java
@@ -1,899 +1,899 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* ... | true | true | public static void copyInto(Node src, Node dest) throws DOMException {
// get node factory
Document factory = dest.getOwnerDocument();
boolean domimpl = factory instanceof DocumentImpl;
// placement variables
Node start = src;
Node parent = src;
... | public static void copyInto(Node src, Node dest) throws DOMException {
// get node factory
Document factory = dest.getOwnerDocument();
boolean domimpl = factory instanceof DocumentImpl;
// placement variables
Node start = src;
Node parent = src;
... |
diff --git a/src/com/binoy/vibhinna/VibhinnaProvider.java b/src/com/binoy/vibhinna/VibhinnaProvider.java
index dca79b0..8800bc5 100644
--- a/src/com/binoy/vibhinna/VibhinnaProvider.java
+++ b/src/com/binoy/vibhinna/VibhinnaProvider.java
@@ -1,378 +1,378 @@
package com.binoy.vibhinna;
import java.io.File;
import ja... | false | true | public Cursor query(Uri uri, String[] projection, String selection,
String[] selectionArgs, String sortOrder) {
SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder();
queryBuilder.setTables(DatabaseHelper.VFS_DATABASE_TABLE);
int uriType = sURIMatcher.match(uri);
switch (uriType) {
case VFS_ID:
qu... | public Cursor query(Uri uri, String[] projection, String selection,
String[] selectionArgs, String sortOrder) {
SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder();
queryBuilder.setTables(DatabaseHelper.VFS_DATABASE_TABLE);
int uriType = sURIMatcher.match(uri);
switch (uriType) {
case VFS_ID:
qu... |
diff --git a/src/org/doube/bonej/MeasureSurface.java b/src/org/doube/bonej/MeasureSurface.java
index c7cb8201..9b42e8ff 100644
--- a/src/org/doube/bonej/MeasureSurface.java
+++ b/src/org/doube/bonej/MeasureSurface.java
@@ -1,162 +1,161 @@
package org.doube.bonej;
/**
* MeasureSurface plugin for ImageJ
* Copyrig... | true | true | public void run(String arg) {
if (!ImageCheck.checkEnvironment())
return;
ImagePlus imp = IJ.getImage();
if (null == imp) {
IJ.noImage();
return;
}
int threshold = 128;
ImageCheck ic = new ImageCheck();
if (ic.isBinary(imp)) {
threshold = 128;
} else if (imp.getBitDepth() == 8) {
Thresho... | public void run(String arg) {
if (!ImageCheck.checkEnvironment())
return;
ImagePlus imp = IJ.getImage();
if (null == imp) {
IJ.noImage();
return;
}
int threshold = 128;
ImageCheck ic = new ImageCheck();
if (ic.isBinary(imp)) {
threshold = 128;
} else if (imp.getBitDepth() == 8) {
Thresho... |
diff --git a/samples/src/main/java/Main.java b/samples/src/main/java/Main.java
index 4087124..4647e53 100644
--- a/samples/src/main/java/Main.java
+++ b/samples/src/main/java/Main.java
@@ -1,19 +1,19 @@
import pojos.Contact;
import pojos.ContactBuilder;
public class Main {
public static void main(String[] args... | true | true | public static void main(String[] args) {
// Build a single contact
Contact james = new ContactBuilder()
.withName("James Bond")
.withEmail("007@secretservice.org")
.build();
// Build 100 contacts with one of the given names and no email
Contact[] someContacts = new ContactBuilder()
.withNameFrom... | public static void main(String[] args) {
// Build a single contact
Contact james = new ContactBuilder()
.withName("James Bond")
.withEmail("007@secretservice.org")
.build();
// Build 100 contacts each with one of the given names and no email
Contact[] someContacts = new ContactBuilder()
.withNam... |
diff --git a/DataExtractionOSM/src/net/osmand/data/index/WikiIndexer.java b/DataExtractionOSM/src/net/osmand/data/index/WikiIndexer.java
index 9b17e2d9..9c0fee52 100644
--- a/DataExtractionOSM/src/net/osmand/data/index/WikiIndexer.java
+++ b/DataExtractionOSM/src/net/osmand/data/index/WikiIndexer.java
@@ -1,518 +1,518 ... | true | true | private void analyzeTextForGeoInfo() throws XMLStreamException {
// fast precheck
if(title.toString().endsWith("/doc") || title.toString().startsWith("Шаблон:")) {
// Looks as template article no information in it
return;
}
int ls = text.indexOf("lat_dir");
if(ls != -1 && text.charAt(ls + 1 + "... | private void analyzeTextForGeoInfo() throws XMLStreamException {
// fast precheck
if(title.toString().endsWith("/doc") || title.toString().startsWith("Шаблон:")) {
// Looks as template article no information in it
return;
}
int ls = text.indexOf("lat_dir");
if(ls != -1 && text.charAt(ls + 1 + "... |
diff --git a/src/pl/edu/pw/gis/Cli.java b/src/pl/edu/pw/gis/Cli.java
index 3bd9de7..b45d7fc 100644
--- a/src/pl/edu/pw/gis/Cli.java
+++ b/src/pl/edu/pw/gis/Cli.java
@@ -1,155 +1,164 @@
package pl.edu.pw.gis;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.c... | false | true | public static void main(String[] args) {
Settings settings = parseCliArgs(args);
if (settings == null) {
// cannot go on like that. no settings!
HelpFormatter formatter = new HelpFormatter();
formatter.setWidth(160);
// aaargh, cannot print on stderr...
formatter.printHelp("gis.jar", buildCliOption... | public static void main(String[] args) {
Settings settings = parseCliArgs(args);
if (settings == null) {
// cannot go on like that. no settings!
HelpFormatter formatter = new HelpFormatter();
formatter.setWidth(160);
// aaargh, cannot print on stderr...
formatter.printHelp("gis.jar", buildCliOption... |
diff --git a/src/test/java/com/mathieubolla/processing/S3ProcessorTest.java b/src/test/java/com/mathieubolla/processing/S3ProcessorTest.java
index fe0b821..c5992fa 100644
--- a/src/test/java/com/mathieubolla/processing/S3ProcessorTest.java
+++ b/src/test/java/com/mathieubolla/processing/S3ProcessorTest.java
@@ -1,122 +... | true | true | private WorkUnit lockNThreadsTask(final AtomicInteger lock, final int n) {
return new WorkUnit() {
@Override
public void doJob(AmazonS3 s3) {
synchronized (lock) {
System.out.println(lock);
if(lock.incrementAndGet() < n) {
try {
lock.wait();
} catch (InterruptedException e) {
... | private WorkUnit lockNThreadsTask(final AtomicInteger lock, final int n) {
return new WorkUnit() {
@Override
public void doJob(AmazonS3 s3) {
synchronized (lock) {
if(lock.incrementAndGet() < n) {
try {
lock.wait();
} catch (InterruptedException e) {
Fail.fail("Should not get... |
diff --git a/src/com/redhat/ceylon/compiler/loader/AbstractModelLoader.java b/src/com/redhat/ceylon/compiler/loader/AbstractModelLoader.java
index 8289c9f46..b1f02e810 100644
--- a/src/com/redhat/ceylon/compiler/loader/AbstractModelLoader.java
+++ b/src/com/redhat/ceylon/compiler/loader/AbstractModelLoader.java
@@ -1,1... | true | true | private void complete(ClassOrInterface klass, ClassMirror classMirror) {
Map<MethodMirror, List<MethodMirror>> variables = new HashMap<MethodMirror, List<MethodMirror>>();
String qualifiedName = classMirror.getQualifiedName();
boolean isJava = qualifiedName.startsWith("java.");
boole... | private void complete(ClassOrInterface klass, ClassMirror classMirror) {
Map<MethodMirror, List<MethodMirror>> variables = new HashMap<MethodMirror, List<MethodMirror>>();
String qualifiedName = classMirror.getQualifiedName();
boolean isJava = qualifiedName.startsWith("java.");
boole... |
diff --git a/Android/src/org/libsdl/app/SDLActivity.java b/Android/src/org/libsdl/app/SDLActivity.java
index 2c2f109a..61e3b2bc 100644
--- a/Android/src/org/libsdl/app/SDLActivity.java
+++ b/Android/src/org/libsdl/app/SDLActivity.java
@@ -1,607 +1,606 @@
// Modified by Lasse Oorni for Urho3D
package org.libsdl.app;... | true | true | public static boolean initEGL(int majorVersion, int minorVersion) {
if (SDLActivity.mSingleton.mEGLDisplay == null) {
//Log.v("SDL", "Starting up OpenGL ES " + majorVersion + "." + minorVersion);
try {
EGL10 egl = (EGL10)EGLContext.getEGL();
EGLDisp... | public static boolean initEGL(int majorVersion, int minorVersion) {
if (SDLActivity.mSingleton.mEGLDisplay == null) {
//Log.v("SDL", "Starting up OpenGL ES " + majorVersion + "." + minorVersion);
try {
EGL10 egl = (EGL10)EGLContext.getEGL();
EGLDisp... |
diff --git a/lucene/src/java/org/apache/lucene/search/BooleanQuery.java b/lucene/src/java/org/apache/lucene/search/BooleanQuery.java
index b1c643f47..d1f3ebcae 100644
--- a/lucene/src/java/org/apache/lucene/search/BooleanQuery.java
+++ b/lucene/src/java/org/apache/lucene/search/BooleanQuery.java
@@ -1,484 +1,489 @@
pa... | true | true | public Explanation explain(IndexReader reader, int doc)
throws IOException {
final int minShouldMatch =
BooleanQuery.this.getMinimumNumberShouldMatch();
ComplexExplanation sumExpl = new ComplexExplanation();
sumExpl.setDescription("sum of:");
int coord = 0;
float sum = 0.... | public Explanation explain(IndexReader reader, int doc)
throws IOException {
final int minShouldMatch =
BooleanQuery.this.getMinimumNumberShouldMatch();
ComplexExplanation sumExpl = new ComplexExplanation();
sumExpl.setDescription("sum of:");
int coord = 0;
float sum = 0.... |
diff --git a/src/org/opensolaris/opengrok/analysis/AnalyzerGuru.java b/src/org/opensolaris/opengrok/analysis/AnalyzerGuru.java
index e97b12c..9068f82 100644
--- a/src/org/opensolaris/opengrok/analysis/AnalyzerGuru.java
+++ b/src/org/opensolaris/opengrok/analysis/AnalyzerGuru.java
@@ -1,562 +1,564 @@
/*
* CDDL HEADER... | 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/com/android/email/mail/transport/SmtpSender.java b/src/com/android/email/mail/transport/SmtpSender.java
index 71a86306..a9b13a66 100644
--- a/src/com/android/email/mail/transport/SmtpSender.java
+++ b/src/com/android/email/mail/transport/SmtpSender.java
@@ -1,334 +1,334 @@
/*
* Copyright (C) 2008 Th... | true | true | public void open() throws MessagingException {
try {
mTransport.open();
// Eat the banner
executeSimpleCommand(null);
String localHost = "localhost";
// Try to get local address in the proper format.
InetAddress localAddress = mTransp... | public void open() throws MessagingException {
try {
mTransport.open();
// Eat the banner
executeSimpleCommand(null);
String localHost = "localhost";
// Try to get local address in the proper format.
InetAddress localAddress = mTransp... |
diff --git a/java/com/vexsoftware/votifier/Votifier.java b/java/com/vexsoftware/votifier/Votifier.java
index 3381d1c..b447555 100644
--- a/java/com/vexsoftware/votifier/Votifier.java
+++ b/java/com/vexsoftware/votifier/Votifier.java
@@ -1,230 +1,231 @@
/*
* Copyright (C) 2012 Vex Software LLC
* This file is part o... | true | true | public void onEnable() {
Votifier.instance = this;
// Handle configuration.
if (!getDataFolder().exists()) {
getDataFolder().mkdir();
}
File config = new File(getDataFolder() + "/config.yml");
YamlConfiguration cfg = YamlConfiguration.loadConfiguration(config);
File rsaDirectory = new File(getDataFolde... | public void onEnable() {
Votifier.instance = this;
// Handle configuration.
if (!getDataFolder().exists()) {
getDataFolder().mkdir();
}
File config = new File(getDataFolder() + "/config.yml");
YamlConfiguration cfg = YamlConfiguration.loadConfiguration(config);
File rsaDirectory = new File(getDataFolde... |
diff --git a/src/org/apache/pig/tools/pigstats/PigStats.java b/src/org/apache/pig/tools/pigstats/PigStats.java
index 4807d85d..f0b87c70 100644
--- a/src/org/apache/pig/tools/pigstats/PigStats.java
+++ b/src/org/apache/pig/tools/pigstats/PigStats.java
@@ -1,262 +1,262 @@
/*
* Licensed to the Apache Software Foundatio... | true | true | private Map<String, Map<String, String>> accumulateMRStats() throws ExecException {
Job lastJob = getLastJob(jc.getSuccessfulJobs());
for(Job job : jc.getSuccessfulJobs()) {
JobConf jobConf = job.getJobConf();
... | private Map<String, Map<String, String>> accumulateMRStats() throws ExecException {
Job lastJob = getLastJob(jc.getSuccessfulJobs());
for(Job job : jc.getSuccessfulJobs()) {
JobConf jobConf = job.getJobConf();
... |
diff --git a/addon-maven/src/main/java/org/springframework/roo/addon/maven/MavenCommands.java b/addon-maven/src/main/java/org/springframework/roo/addon/maven/MavenCommands.java
index 037da4c7b..54872acb3 100644
--- a/addon-maven/src/main/java/org/springframework/roo/addon/maven/MavenCommands.java
+++ b/addon-maven/src/... | true | true | public void createProject(
@CliOption(key = { "", "topLevelPackage" }, mandatory = true, optionContext = "update", help = "The uppermost package name (this becomes the <groupId> in Maven and also the '~' value when using Roo's shell)") JavaPackage topLevelPackage,
@CliOption(key = "projectName", mandatory = false... | public void createProject(
@CliOption(key = { "", "topLevelPackage" }, mandatory = true, optionContext = "update", help = "The uppermost package name (this becomes the <groupId> in Maven and also the '~' value when using Roo's shell)") JavaPackage topLevelPackage,
@CliOption(key = "projectName", mandatory = false... |
diff --git a/esupecm-orioai/src/main/java/org/orioai/esupecm/workflow/service/OriOaiWorkflowServiceImpl.java b/esupecm-orioai/src/main/java/org/orioai/esupecm/workflow/service/OriOaiWorkflowServiceImpl.java
index 15164f8..6198350 100644
--- a/esupecm-orioai/src/main/java/org/orioai/esupecm/workflow/service/OriOaiWorkfl... | true | true | private IOriWorkflowService getRemoteOriWorkflowService(String username) {
if (_oriWorkflowServices == null) {
_oriWorkflowServices = new HashMap<String, IOriWorkflowService>();
}
IOriWorkflowService oriWorkflowService = _oriWorkflowServices.get(username);
if( oriWorkflowService == null ) {
String ws... | private IOriWorkflowService getRemoteOriWorkflowService(String username) {
if (_oriWorkflowServices == null) {
_oriWorkflowServices = new HashMap<String, IOriWorkflowService>();
}
IOriWorkflowService oriWorkflowService = _oriWorkflowServices.get(username);
if( oriWorkflowService == null ) {
String ws... |
diff --git a/com.ibm.wala.core/src/com/ibm/wala/analysis/pointers/BasicHeapGraph.java b/com.ibm.wala.core/src/com/ibm/wala/analysis/pointers/BasicHeapGraph.java
index bcb915c9d..e528fd13c 100644
--- a/com.ibm.wala.core/src/com/ibm/wala/analysis/pointers/BasicHeapGraph.java
+++ b/com.ibm.wala.core/src/com/ibm/wala/analy... | true | true | public BasicHeapGraph(final PointerAnalysis P, final CallGraph callGraph) throws NullPointerException {
super(P.getHeapModel());
this.pointerAnalysis = P;
this.callGraph = callGraph;
final OrdinalSetMapping<PointerKey> pointerKeys = getPointerKeys();
final NumberedNodeManager<Object> nodeMgr = ne... | public BasicHeapGraph(final PointerAnalysis P, final CallGraph callGraph) throws NullPointerException {
super(P.getHeapModel());
this.pointerAnalysis = P;
this.callGraph = callGraph;
final OrdinalSetMapping<PointerKey> pointerKeys = getPointerKeys();
final NumberedNodeManager<Object> nodeMgr = ne... |
diff --git a/extrabiomes/src/bukkit/extrabiomes/terrain/WorldGenRedwood.java b/extrabiomes/src/bukkit/extrabiomes/terrain/WorldGenRedwood.java
index 6181f25f..476d8d4d 100644
--- a/extrabiomes/src/bukkit/extrabiomes/terrain/WorldGenRedwood.java
+++ b/extrabiomes/src/bukkit/extrabiomes/terrain/WorldGenRedwood.java
@@ -1... | true | true | public boolean generate(BlockChangeDelegate arg0, Random random, int i, int j, int k) {
final int l = random.nextInt(8) + 24;
final int i1 = 1 + random.nextInt(12);
final int j1 = l - i1;
final int k1 = 2 + random.nextInt(6);
if (j < 1 || j + l + 1 > 256) return false;
final int l1 = arg0.getTypeId(i, j ... | public boolean generate(BlockChangeDelegate arg0, Random random, int i, int j, int k) {
final int l = random.nextInt(30) + 32;
final int i1 = 1 + random.nextInt(12);
final int j1 = l - i1;
final int k1 = 2 + random.nextInt(6);
if (j < 1 || j + l + 1 > 256) return false;
final int l1 = arg0.getTypeId(i, j... |
diff --git a/SpagoBIQbeEngine/src/it/eng/spagobi/engines/qbe/services/core/ValidateExpressionAction.java b/SpagoBIQbeEngine/src/it/eng/spagobi/engines/qbe/services/core/ValidateExpressionAction.java
index 566228d47..a2fc3076e 100644
--- a/SpagoBIQbeEngine/src/it/eng/spagobi/engines/qbe/services/core/ValidateExpressionA... | false | true | public void service(SourceBean request, SourceBean response) {
String expression;
JSONArray fieldsJSON;
// filed in context (mapped by unique name and by alias)
Set availableDMFields;
Set availableQFields;
// unresolved field reference errors stack
List uresolvedReferenceErrors;
List items;
... | public void service(SourceBean request, SourceBean response) {
String expression;
JSONArray fieldsJSON;
// filed in context (mapped by unique name and by alias)
Set availableDMFields;
Set availableQFields;
// unresolved field reference errors stack
List uresolvedReferenceErrors;
List items;
... |
diff --git a/src/animata/LayerView.java b/src/animata/LayerView.java
index b527912..0bd3508 100644
--- a/src/animata/LayerView.java
+++ b/src/animata/LayerView.java
@@ -1,90 +1,90 @@
package animata;
import java.util.ArrayList;
import processing.core.PApplet;
import animata.model.Layer;
public class LayerVie... | true | true | public void draw(float x, float y) {
// System.err.println("LayerView#draw using: " + x + ", " + y + ". "); // DEBUG
// System.err.println("LayerView#draw This layer has x, y " + layer.x() + ", " + layer.y() ); // DEBUG
// This will propagate layer locatins down to child layers. Is this correct?
// I... | public void draw(float x, float y) {
// System.err.println("LayerView#draw using: " + x + ", " + y + ". "); // DEBUG
// System.err.println("LayerView#draw This layer has x, y " + layer.x() + ", " + layer.y() ); // DEBUG
// This will propagate layer locatins down to child layers. Is this correct?
// I... |
diff --git a/grisu-client/src/main/java/grisu/frontend/control/JaxWsServiceInterfaceCreator.java b/grisu-client/src/main/java/grisu/frontend/control/JaxWsServiceInterfaceCreator.java
index b7ee402c..57c228b5 100644
--- a/grisu-client/src/main/java/grisu/frontend/control/JaxWsServiceInterfaceCreator.java
+++ b/grisu-cli... | true | true | public ServiceInterface create(String interfaceUrl, String username,
char[] password, String myProxyServer, String myProxyPort,
Object[] otherOptions) throws ServiceInterfaceException {
try {
final QName serviceName = new QName(
"http://api.grisu.arcs.org.au/", "GrisuService");
final QName portNam... | public ServiceInterface create(String interfaceUrl, String username,
char[] password, String myProxyServer, String myProxyPort,
Object[] otherOptions) throws ServiceInterfaceException {
try {
final QName serviceName = new QName(
"http://api.grisu.arcs.org.au/", "GrisuService");
final QName portNam... |
diff --git a/scm-core/src/main/java/sonia/scm/config/ScmConfiguration.java b/scm-core/src/main/java/sonia/scm/config/ScmConfiguration.java
index fe593e11c..7c49da3c9 100644
--- a/scm-core/src/main/java/sonia/scm/config/ScmConfiguration.java
+++ b/scm-core/src/main/java/sonia/scm/config/ScmConfiguration.java
@@ -1,760 +... | true | true | public void load(ScmConfiguration other)
{
this.servername = other.servername;
this.dateFormat = other.dateFormat;
this.pluginUrl = other.pluginUrl;
this.anonymousAccessEnabled = other.anonymousAccessEnabled;
this.adminUsers = other.adminUsers;
this.adminGroups = other.adminGroups;
this.... | public void load(ScmConfiguration other)
{
this.servername = other.servername;
this.dateFormat = other.dateFormat;
this.pluginUrl = other.pluginUrl;
this.anonymousAccessEnabled = other.anonymousAccessEnabled;
this.adminUsers = other.adminUsers;
this.adminGroups = other.adminGroups;
this.... |
diff --git a/src/com/qozix/mapview/viewmanagers/DownsampleManager.java b/src/com/qozix/mapview/viewmanagers/DownsampleManager.java
index fe54f58..d42e6a9 100644
--- a/src/com/qozix/mapview/viewmanagers/DownsampleManager.java
+++ b/src/com/qozix/mapview/viewmanagers/DownsampleManager.java
@@ -1,50 +1,50 @@
package com.... | true | true | public void setDownsample( View view, String fileName ) {
if ( fileName.equals( lastFileName )) {
return;
}
lastFileName = fileName;
if ( fileName == null ) {
view.setBackgroundDrawable( null );
return;
}
Context context = view.getContext();
AssetManager assets = context.getAssets();
try {... | public void setDownsample( View view, String fileName ) {
if ( fileName != null && fileName.equals( lastFileName )) {
return;
}
lastFileName = fileName;
if ( fileName == null ) {
view.setBackgroundDrawable( null );
return;
}
Context context = view.getContext();
AssetManager assets = context.... |
diff --git a/luntbuild/src/com/luntsys/luntbuild/notifiers/TemplatedNotifier.java b/luntbuild/src/com/luntsys/luntbuild/notifiers/TemplatedNotifier.java
index 47e210f..46bd4b0 100644
--- a/luntbuild/src/com/luntsys/luntbuild/notifiers/TemplatedNotifier.java
+++ b/luntbuild/src/com/luntsys/luntbuild/notifiers/TemplatedN... | true | true | private VelocityContext createContext(Build build, VelocityContext ctx) throws Exception {
VelocityContext context = new VelocityContext(ctx);
// System info
context.put("luntbuild_webroot", extractRootUrl(build.getUrl()));
context.put("luntbuild_servlet_url", Luntbuild.getServletUr... | private VelocityContext createContext(Build build, VelocityContext ctx) throws Exception {
VelocityContext context = new VelocityContext(ctx);
// System info
context.put("luntbuild_webroot", extractRootUrl(build.getUrl()));
context.put("luntbuild_servlet_url", Luntbuild.getServletUr... |
diff --git a/src/net/enkun/mods/CompactLaser/CompactLaser.java b/src/net/enkun/mods/CompactLaser/CompactLaser.java
index fa73729..c2e55de 100644
--- a/src/net/enkun/mods/CompactLaser/CompactLaser.java
+++ b/src/net/enkun/mods/CompactLaser/CompactLaser.java
@@ -1,74 +1,74 @@
/**
* BuildCraft is open-source. It is dis... | true | true | public void initialize(FMLPreInitializationEvent evt) {
Configuration cfg = new Configuration(evt.getSuggestedConfigurationFile());
cfg.load();
Property PropCompactLaserBlock = cfg.get("", "CompactLaser", 1300);
CompactLaserBlockId = PropCompactLaserBlock.getInt();
CompactLaserBlock = new BlockCompactLaser... | public void initialize(FMLPreInitializationEvent evt) {
Configuration cfg = new Configuration(evt.getSuggestedConfigurationFile());
cfg.load();
Property PropCompactLaserBlock = cfg.get(Configuration.CATEGORY_BLOCK, "CompactLaser", 1300);
CompactLaserBlockId = PropCompactLaserBlock.getInt();
CompactLaserBlo... |
diff --git a/src/raven/math/RandUtils.java b/src/raven/math/RandUtils.java
index da9a0a6..0700f03 100644
--- a/src/raven/math/RandUtils.java
+++ b/src/raven/math/RandUtils.java
@@ -1,25 +1,24 @@
/**
*
*/
package raven.math;
import java.util.Random;
/**
* @author chester
*
*/
public class RandUtils {... | true | true | public static double RandInRange(double start, double end)
{
Random rand = new Random(System.nanoTime());
return rand.nextDouble() * end;
}
| public static double RandInRange(double start, double end)
{
return Math.random() * (end - start) + start;
}
|
diff --git a/EscapeIR-Android/src/fr/umlv/escape/world/CollisionMonitor.java b/EscapeIR-Android/src/fr/umlv/escape/world/CollisionMonitor.java
index 21119de..34ab650 100644
--- a/EscapeIR-Android/src/fr/umlv/escape/world/CollisionMonitor.java
+++ b/EscapeIR-Android/src/fr/umlv/escape/world/CollisionMonitor.java
@@ -1,1... | false | true | public void beginContact(Contact arg0) {
Player player=Game.getTheGame().getPlayer1();
Ship shipPlayer=player.getShip();
Body body;
Body body2;
Ship enemy;
Bullet bullet;
Bonus bonus;
//if one of the two body that collided is the body of the player's ship
if((arg0.getFixtureA().getBody()==shipPlay... | public void beginContact(Contact arg0) {
Player player=Game.getTheGame().getPlayer1();
Ship shipPlayer=player.getShip();
Body body;
Body body2;
Ship enemy;
Bullet bullet;
Bonus bonus;
//if one of the two body that collided is the body of the player's ship
if((arg0.getFixtureA().getBody()==shipPlay... |
diff --git a/src/org/sakaiproject/tool/assessment/ui/bean/delivery/DeliveryBean.java b/src/org/sakaiproject/tool/assessment/ui/bean/delivery/DeliveryBean.java
index 3c194f512..421e796bc 100755
--- a/src/org/sakaiproject/tool/assessment/ui/bean/delivery/DeliveryBean.java
+++ b/src/org/sakaiproject/tool/assessment/ui/bea... | true | true | public String addMediaToItemGrading(javax.faces.event.ValueChangeEvent e)
{
GradingService gradingService = new GradingService();
PublishedAssessmentService publishedService = new PublishedAssessmentService();
PublishedAssessmentFacade publishedAssessment = publishedService.getPublishedAssessment(assess... | public String addMediaToItemGrading(javax.faces.event.ValueChangeEvent e)
{
GradingService gradingService = new GradingService();
PublishedAssessmentService publishedService = new PublishedAssessmentService();
PublishedAssessmentFacade publishedAssessment = publishedService.getPublishedAssessment(assess... |
diff --git a/app/src/processing/app/Editor.java b/app/src/processing/app/Editor.java
index b62fb96c..405b16b3 100644
--- a/app/src/processing/app/Editor.java
+++ b/app/src/processing/app/Editor.java
@@ -1,2783 +1,2785 @@
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
Part of the Processing... | false | true | public Editor(Base ibase, String path, int[] location) {
super("Arduino");
this.base = ibase;
Base.setIcon(this);
// Install default actions for Run, Present, etc.
resetHandlers();
// add listener to handle window close box hit event
addWindowListener(new WindowAdapter() {
publi... | public Editor(Base ibase, String path, int[] location) {
super("Arduino");
this.base = ibase;
Base.setIcon(this);
// Install default actions for Run, Present, etc.
resetHandlers();
// add listener to handle window close box hit event
addWindowListener(new WindowAdapter() {
publi... |
diff --git a/core/src/main/java/hudson/tasks/junit/SuiteResult.java b/core/src/main/java/hudson/tasks/junit/SuiteResult.java
index ccc7f57ca..a4d251a8d 100644
--- a/core/src/main/java/hudson/tasks/junit/SuiteResult.java
+++ b/core/src/main/java/hudson/tasks/junit/SuiteResult.java
@@ -1,198 +1,198 @@
package hudson.tas... | true | true | private SuiteResult(File xmlReport, Element suite) throws DocumentException {
String name = suite.attributeValue("name");
if(name==null)
// some user reported that name is null in their environment.
// see http://www.nabble.com/Unexpected-Null-Pointer-Exception-in-Hudson-1.13... | private SuiteResult(File xmlReport, Element suite) throws DocumentException {
String name = suite.attributeValue("name");
if(name==null)
// some user reported that name is null in their environment.
// see http://www.nabble.com/Unexpected-Null-Pointer-Exception-in-Hudson-1.13... |
diff --git a/com/narrowtux/DropChest/DropChestPlayerListener.java b/com/narrowtux/DropChest/DropChestPlayerListener.java
index fc6005f..ce45740 100644
--- a/com/narrowtux/DropChest/DropChestPlayerListener.java
+++ b/com/narrowtux/DropChest/DropChestPlayerListener.java
@@ -1,173 +1,173 @@
package com.narrowtux.DropChes... | false | true | public void onPlayerInteract(PlayerInteractEvent event){
if(event.getAction().equals(Action.RIGHT_CLICK_BLOCK)){
if(event.isCancelled()){
return;
}
DropChestPlayer dplayer = DropChestPlayer.getPlayerByName(event.getPlayer().getName());
Block b = event.getClickedBlock();
if(DropChestItem.acceptsBlo... | public void onPlayerInteract(PlayerInteractEvent event){
if(event.getAction().equals(Action.RIGHT_CLICK_BLOCK)){
if(event.isCancelled()){
return;
}
DropChestPlayer dplayer = DropChestPlayer.getPlayerByName(event.getPlayer().getName());
Block b = event.getClickedBlock();
if(DropChestItem.acceptsBlo... |
diff --git a/modules/quality-immutable-object/src/test/java/net/sf/qualitycheck/immutableobject/ImmutableObjectGeneratorTest.java b/modules/quality-immutable-object/src/test/java/net/sf/qualitycheck/immutableobject/ImmutableObjectGeneratorTest.java
index 86886b5..9eb5789 100644
--- a/modules/quality-immutable-object/sr... | true | true | public void testSettingsInterface() throws IOException {
final ImmutableSettings.Builder settings = new ImmutableSettings.Builder();
// global settings
settings.fieldPrefix("_");
settings.jsr305Annotations(true);
settings.guava(true);
settings.qualityCheck(true);
// immutable settings
settings.copyMe... | public void testSettingsInterface() throws IOException {
final ImmutableSettings.Builder settings = new ImmutableSettings.Builder();
// global settings
settings.fieldPrefix("_");
settings.jsr305Annotations(true);
settings.guava(true);
settings.qualityCheck(true);
// immutable settings
settings.copyMe... |
diff --git a/src/main/java/com/prealpha/dcputil/compiler/lexer/Lexer.java b/src/main/java/com/prealpha/dcputil/compiler/lexer/Lexer.java
index c7805ef..5de90a1 100755
--- a/src/main/java/com/prealpha/dcputil/compiler/lexer/Lexer.java
+++ b/src/main/java/com/prealpha/dcputil/compiler/lexer/Lexer.java
@@ -1,60 +1,64 @@
... | true | true | public List<Expression> lexLine(String line, int linNum){
line = line.trim();
line = line.replace(","," ");
line = line.split(";")[0];
String[] segments = line.split("\\|");
List<Expression> expressions = new ArrayList<Expression>();
for(String s:segments){
... | public List<Expression> lexLine(String line, int linNum){
line = line.trim();
line = line.replace(","," ");
if (line.equals(";")) {
line = "";
} else {
line = line.split(";")[0];
}
String[] segments = line.split("\\|");
List<Expression... |
diff --git a/loci/visbio/data/DatasetPane.java b/loci/visbio/data/DatasetPane.java
index 4149ea4..d56ad68 100644
--- a/loci/visbio/data/DatasetPane.java
+++ b/loci/visbio/data/DatasetPane.java
@@ -1,639 +1,644 @@
//
// DatasetPane.java
//
/*
VisBio application for visualization of multidimensional
biological im... | false | true | protected void buildPage() {
// lay out page 2
String pattern = groupField.getText();
// parse file pattern
fp = new FilePattern(pattern);
if (!fp.isValid()) {
SwingUtil.setWaitCursor(dialog, false);
JOptionPane.showMessageDialog(dialog, fp.getErrorMessage(),
"VisBio", JOption... | protected void buildPage() {
// lay out page 2
String pattern = groupField.getText();
// parse file pattern
fp = new FilePattern(pattern);
if (!fp.isValid()) {
SwingUtil.setWaitCursor(dialog, false);
enableButtons();
JOptionPane.showMessageDialog(dialog, fp.getErrorMessage(),
... |
diff --git a/src/main/java/ru/urbancamper/audiobookmarker/text/BookText.java b/src/main/java/ru/urbancamper/audiobookmarker/text/BookText.java
index 0cc67f4..44f3a8f 100644
--- a/src/main/java/ru/urbancamper/audiobookmarker/text/BookText.java
+++ b/src/main/java/ru/urbancamper/audiobookmarker/text/BookText.java
@@ -1,1... | false | true | private ArrayList<TreeMap<Integer, Integer>> getLongestSubsequenceMappingFromRecognizedTexts(){
ArrayList<TreeMap<Integer, Integer>> recognizedTextLongestSubsequences = new ArrayList<TreeMap<Integer, Integer>>();
for (Iterator<RecognizedTextOfSingleAudiofile> it = this.recognizedAudioFiles.iterator(... | private ArrayList<TreeMap<Integer, Integer>> getLongestSubsequenceMappingFromRecognizedTexts(){
ArrayList<TreeMap<Integer, Integer>> recognizedTextLongestSubsequences = new ArrayList<TreeMap<Integer, Integer>>();
for (Iterator<RecognizedTextOfSingleAudiofile> it = this.recognizedAudioFiles.iterator(... |
diff --git a/src/models/Method.java b/src/models/Method.java
index 84cb5af..69da1db 100644
--- a/src/models/Method.java
+++ b/src/models/Method.java
@@ -1,191 +1,193 @@
package models;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
imp... | true | true | public void print() {
System.out.println(" METHOD: " + name);
System.out.println(" Return Type: " + returnType);
System.out.println(" Calls: ");
for(Method m: methodCalls)
System.out.println(" " + m.getName());
System.out.println(" Called By: ");
for(Method m: calledBy)
Syste... | public void print() {
System.out.println(" METHOD: " + name);
System.out.println(" Return Type: " + returnType);
System.out.println(" Start Character: " + this.startChar);
System.out.println(" End Character: " + this.endChar);
System.out.println(" Calls: ");
for(Method m: methodCalls... |
diff --git a/src/mulan/transformations/multiclass/MultiClassTransformationBase.java b/src/mulan/transformations/multiclass/MultiClassTransformationBase.java
index f9a52a1..e8d88ed 100644
--- a/src/mulan/transformations/multiclass/MultiClassTransformationBase.java
+++ b/src/mulan/transformations/multiclass/MultiClassTra... | true | true | public Instances transformInstances(Instances data) throws Exception {
numPredictors = data.numAttributes()-numOfLabels;
Instances transformed = new Instances(data, 0);
// delete all labels
RemoveAllLabels ral = new RemoveAllLabels();
transformed = ral.trans... | public Instances transformInstances(Instances data) throws Exception {
numPredictors = data.numAttributes()-numOfLabels;
Instances transformed = new Instances(data, 0);
// delete all labels
RemoveAllLabels ral = new RemoveAllLabels();
transformed = ral.trans... |
diff --git a/src/main/java/water/Model.java b/src/main/java/water/Model.java
index eb16ab129..c52e186f4 100644
--- a/src/main/java/water/Model.java
+++ b/src/main/java/water/Model.java
@@ -1,433 +1,433 @@
package water;
import hex.ConfusionMatrix;
import hex.VariableImportance;
import java.util.*;
import jav... | true | true | public Frame score( Frame fr) {
int ridx = fr.find(_names[_names.length-1]);
if(ridx != -1){ // drop the response for scoring!
fr = new Frame(fr._names,fr.vecs());
fr.remove(ridx);
}
// Adapt the Frame layout - returns adapted frame and frame containing only
// newly created vectors
... | public Frame score( Frame fr) {
int ridx = fr.find(_names[_names.length-1]);
if(ridx != -1){ // drop the response for scoring!
fr = new Frame(fr._names,fr.vecs().clone());
fr.remove(ridx);
}
// Adapt the Frame layout - returns adapted frame and frame containing only
// newly created ve... |
diff --git a/src/java/org/rapidcontext/core/type/Role.java b/src/java/org/rapidcontext/core/type/Role.java
index d48b5ad..8e84c4b 100644
--- a/src/java/org/rapidcontext/core/type/Role.java
+++ b/src/java/org/rapidcontext/core/type/Role.java
@@ -1,278 +1,279 @@
/*
* RapidContext <http://www.rapidcontext.com/>
* Cop... | false | true | private boolean matchPath(Dict dict, String path) {
String glob = dict.getString(ACCESS_PATH, null);
String regex = dict.getString(ACCESS_REGEX, null);
Pattern m = (Pattern) dict.get("_" + ACCESS_REGEX);
if (m == null && glob != null) {
glob = glob.replace(".", "\\.").rep... | private boolean matchPath(Dict dict, String path) {
String glob = dict.getString(ACCESS_PATH, null);
String regex = dict.getString(ACCESS_REGEX, null);
Pattern m = (Pattern) dict.get("_" + ACCESS_REGEX);
if (m == null && glob != null) {
glob = glob.replace("\\", "\\\\").r... |
diff --git a/src/org/opensolaris/opengrok/configuration/Configuration.java b/src/org/opensolaris/opengrok/configuration/Configuration.java
index bda5ea3..68a7224 100644
--- a/src/org/opensolaris/opengrok/configuration/Configuration.java
+++ b/src/org/opensolaris/opengrok/configuration/Configuration.java
@@ -1,662 +1,66... | true | true | public Configuration() {
//defaults for an opengrok instance configuration
setHistoryCache(true);
setHistoryCacheTime(30);
setHistoryCacheInDB(false);
setProjects(new ArrayList<Project>());
setRepositories(new ArrayList<RepositoryInfo>());
setUrlPrefix("/sourc... | public Configuration() {
//defaults for an opengrok instance configuration
setHistoryCache(true);
setHistoryCacheTime(30);
setHistoryCacheInDB(false);
setProjects(new ArrayList<Project>());
setRepositories(new ArrayList<RepositoryInfo>());
setUrlPrefix("/sourc... |
diff --git a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/PaymentProcess.java b/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquisitions/PaymentProcess.java
index 5e63b464..d2a7e551 100644
--- a/expenditure-tracking/src/pt/ist/expenditureTrackingSystem/domain/acquis... | true | true | public boolean isResponsibleForUnit(final Person person, final Money amount) {
Set<Authorization> validAuthorizations = person.getValidAuthorizations();
for (Unit unit : getPayingUnits()) {
for (Authorization authorization : validAuthorizations) {
if (authorization.getMaxAmount().isGreaterThanOrEqual(amoun... | public boolean isResponsibleForUnit(final Person person, final Money amount) {
Set<Authorization> validAuthorizations = person.getValidAuthorizations();
for (Unit unit : getPayingUnits()) {
for (Authorization authorization : validAuthorizations) {
if (authorization.getMaxAmount().isGreaterThanOrEqual(amoun... |
diff --git a/bobblehead/src/com/bn/bobblehead/FaceSelectActivity.java b/bobblehead/src/com/bn/bobblehead/FaceSelectActivity.java
index f3acadd..6afdf24 100644
--- a/bobblehead/src/com/bn/bobblehead/FaceSelectActivity.java
+++ b/bobblehead/src/com/bn/bobblehead/FaceSelectActivity.java
@@ -1,299 +1,300 @@
package com.bn... | true | true | public boolean onTouchEvent(MotionEvent e) {
// TODO Auto-generated method stub
int x = (int) e.getX();
int y = (int) e.getY();
//Check for button press
if (buttonR.contains(x, y)){
if (selection.width()>0 && selection.height() >0){
Intent i = new Intent(FaceSelectActivity.this,BobActivity.... | public boolean onTouchEvent(MotionEvent e) {
// TODO Auto-generated method stub
int x = (int) e.getX();
int y = (int) e.getY();
//Check for button press
if (buttonR.contains(x, y)){
if (selection.width()>0 && selection.height() >0){
Intent i = new Intent(FaceSelectActivity.this,BobActivity.... |
diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java b/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/TaskletStep.java
index 15752c377..6a7c42117 100644
--- a/spring-batch-core/src/main/java/org/springframework/batch/core/step/tasklet/Tas... | false | true | public Object doInTransaction(TransactionStatus status) {
TransactionSynchronizationManager.registerSynchronization(this);
RepeatStatus result = RepeatStatus.CONTINUABLE;
StepContribution contribution = stepExecution.createStepContribution();
chunkListener.beforeChunk(chunkContext);
// In case we n... | public Object doInTransaction(TransactionStatus status) {
TransactionSynchronizationManager.registerSynchronization(this);
RepeatStatus result = RepeatStatus.CONTINUABLE;
StepContribution contribution = stepExecution.createStepContribution();
chunkListener.beforeChunk(chunkContext);
// In case we n... |
diff --git a/server/src/org/oryxeditor/server/MultiDownloader.java b/server/src/org/oryxeditor/server/MultiDownloader.java
index 63e83fff..cfabed5b 100644
--- a/server/src/org/oryxeditor/server/MultiDownloader.java
+++ b/server/src/org/oryxeditor/server/MultiDownloader.java
@@ -1,202 +1,202 @@
package org.oryxeditor.s... | true | true | private void performDownload(HttpServletRequest req, HttpServletResponse res)
throws IOException {
// if there is a parameter named "download_0", then, by convention,
// there are more than one files to be downloaded in a zip file.
if (req.getParameter("download_0") != null) {
// traverse all files ... | private void performDownload(HttpServletRequest req, HttpServletResponse res)
throws IOException {
// if there is a parameter named "download_0", then, by convention,
// there are more than one files to be downloaded in a zip file.
if (req.getParameter("download_0") != null) {
// traverse all files ... |
diff --git a/src/rajawali/renderer/RajawaliRenderer.java b/src/rajawali/renderer/RajawaliRenderer.java
index e441fd53..8abfbfdf 100644
--- a/src/rajawali/renderer/RajawaliRenderer.java
+++ b/src/rajawali/renderer/RajawaliRenderer.java
@@ -1,1324 +1,1324 @@
package rajawali.renderer;
import java.util.ArrayList;
imp... | true | true | public void onSurfaceCreated(GL10 gl, EGLConfig config) {
RajLog.setGL10(gl);
Capabilities.getInstance();
String[] versionString = (gl.glGetString(GL10.GL_VERSION)).split(" ");
if (versionString.length >= 3) {
String[] versionParts = versionString[2].split(".");
if (versionParts.length == 2) {
mGL... | public void onSurfaceCreated(GL10 gl, EGLConfig config) {
RajLog.setGL10(gl);
Capabilities.getInstance();
String[] versionString = (gl.glGetString(GL10.GL_VERSION)).split(" ");
if (versionString.length >= 3) {
String[] versionParts = versionString[2].split("\\.");
if (versionParts.length >= 2) {
m... |
diff --git a/src/android/org/pgsqlite/SQLitePlugin.java b/src/android/org/pgsqlite/SQLitePlugin.java
index ce3db48..ea7da32 100755
--- a/src/android/org/pgsqlite/SQLitePlugin.java
+++ b/src/android/org/pgsqlite/SQLitePlugin.java
@@ -1,547 +1,543 @@
/*
* PhoneGap is available under *either* the terms of the modified ... | false | true | private void executeSqlBatch(String dbname, String[] queryarr, JSONArray[] jsonparams, String[] queryIDs, CallbackContext cbc)
{
Long db = this.getDatabase(dbname);
if (db == null) return;
long mydb = db.longValue();
String query = "";
String query_id = "";
int len = queryarr.length;
JSONArray batch... | private void executeSqlBatch(String dbname, String[] queryarr, JSONArray[] jsonparams, String[] queryIDs, CallbackContext cbc)
{
Long db = this.getDatabase(dbname);
if (db == null) return;
long mydb = db.longValue();
String query = "";
String query_id = "";
int len = queryarr.length;
JSONArray batch... |
diff --git a/proxy/src/main/java/org/candlepin/controller/Entitler.java b/proxy/src/main/java/org/candlepin/controller/Entitler.java
index f4b07f16c..98a6690fd 100644
--- a/proxy/src/main/java/org/candlepin/controller/Entitler.java
+++ b/proxy/src/main/java/org/candlepin/controller/Entitler.java
@@ -1,241 +1,241 @@
/*... | true | true | private Entitlement createEntitlementByPool(Consumer consumer, Pool pool,
Integer quantity) {
// Attempt to create an entitlement:
try {
Entitlement e = poolManager.entitleByPool(consumer, pool, quantity);
log.debug("Created entitlement: " + e);
return e;
... | private Entitlement createEntitlementByPool(Consumer consumer, Pool pool,
Integer quantity) {
// Attempt to create an entitlement:
try {
Entitlement e = poolManager.entitleByPool(consumer, pool, quantity);
log.debug("Created entitlement: " + e);
return e;
... |
diff --git a/teeda/teeda-core/src/main/java/org/seasar/teeda/core/render/TeedaObjectInputStream.java b/teeda/teeda-core/src/main/java/org/seasar/teeda/core/render/TeedaObjectInputStream.java
index 125d2016c..b23350891 100644
--- a/teeda/teeda-core/src/main/java/org/seasar/teeda/core/render/TeedaObjectInputStream.java
+... | true | true | protected Class resolveClass(final ObjectStreamClass clazz)
throws IOException, ClassNotFoundException {
String clazzName = clazz.getName();
if (clazzName.indexOf("$$") > 0) {
clazzName = clazzName.substring(0, clazzName.indexOf("$$"));
}
try {
ret... | protected Class resolveClass(final ObjectStreamClass clazz)
throws IOException, ClassNotFoundException {
String clazzName = clazz.getName();
if (clazzName.indexOf("$$") > 0) {
clazzName = clazzName.substring(0, clazzName.indexOf("$$"));
}
try {
ret... |
diff --git a/org.sonar.ide.eclipse.core/src/org/sonar/ide/eclipse/internal/core/resources/SonarProjectManager.java b/org.sonar.ide.eclipse.core/src/org/sonar/ide/eclipse/internal/core/resources/SonarProjectManager.java
index 0d732202..296df676 100644
--- a/org.sonar.ide.eclipse.core/src/org/sonar/ide/eclipse/internal/c... | true | true | public ProjectProperties readSonarConfiguration(IProject project) {
LOG.debug("Rading configuration for project " + project.getName());
IScopeContext projectScope = new ProjectScope(project);
IEclipsePreferences projectNode = projectScope.getNode(SonarCorePlugin.PLUGIN_ID);
if (projectNode == null) {
... | public ProjectProperties readSonarConfiguration(IProject project) {
LOG.debug("Reading configuration for project " + project.getName());
IScopeContext projectScope = new ProjectScope(project);
IEclipsePreferences projectNode = projectScope.getNode(SonarCorePlugin.PLUGIN_ID);
if (projectNode == null) {... |
diff --git a/net.sourceforge.eclipseccase/src/net/sourceforge/eclipseccase/ClearCaseProvider.java b/net.sourceforge.eclipseccase/src/net/sourceforge/eclipseccase/ClearCaseProvider.java
index bada242..479aae6 100644
--- a/net.sourceforge.eclipseccase/src/net/sourceforge/eclipseccase/ClearCaseProvider.java
+++ b/net.sour... | true | true | public IStatus visit(IResource resource, IProgressMonitor monitor) {
try {
int returnCode = 1;// Used in messge dialog.
monitor.beginTask("Checkin in " + resource.getFullPath(), 100);
StateCache cache = getCache(resource);
final StateCache targetElement = getFinalTargetElement(cache);
IStatus r... | public IStatus visit(IResource resource, IProgressMonitor monitor) {
try {
int returnCode = 1;// Used in messge dialog.
monitor.beginTask("Checkin in " + resource.getFullPath(), 100);
StateCache cache = getCache(resource);
final StateCache targetElement = getFinalTargetElement(cache);
IStatus r... |
diff --git a/src/mitzi/MitziBrain.java b/src/mitzi/MitziBrain.java
index ad40947..097ce1a 100644
--- a/src/mitzi/MitziBrain.java
+++ b/src/mitzi/MitziBrain.java
@@ -1,282 +1,287 @@
package mitzi;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Set;
import java.util.Timer;
import java.... | false | true | private Variation evalBoard(IBoard board, int total_depth, int depth,
int alpha, int beta, Variation old_tree) {
// whose move is it?
Side side = board.getActiveColor();
int side_sign = Side.getSideSign(side);
// generate moves
Set<IMove> moves = board.getPossibleMoves();
// check for mate and stalem... | private Variation evalBoard(IBoard board, int total_depth, int depth,
int alpha, int beta, Variation old_tree) {
// whose move is it?
Side side = board.getActiveColor();
int side_sign = Side.getSideSign(side);
// generate moves
Set<IMove> moves = board.getPossibleMoves();
// check for mate and stalem... |
diff --git a/src/org/openstreetmap/josm/actions/mapmode/AddNodeAction.java b/src/org/openstreetmap/josm/actions/mapmode/AddNodeAction.java
index 2274d59c..1cf90f7e 100644
--- a/src/org/openstreetmap/josm/actions/mapmode/AddNodeAction.java
+++ b/src/org/openstreetmap/josm/actions/mapmode/AddNodeAction.java
@@ -1,243 +1,... | false | true | @Override public void mouseClicked(MouseEvent e) {
if (e.getButton() != MouseEvent.BUTTON1)
return;
Node n = new Node(Main.map.mapView.getLatLon(e.getX(), e.getY()));
if (n.coor.isOutSideWorld()) {
JOptionPane.showMessageDialog(Main.parent,tr("Cannot add a node outside of the world."));
return;
}
... | @Override public void mouseClicked(MouseEvent e) {
if (e.getButton() != MouseEvent.BUTTON1)
return;
Node n = new Node(Main.map.mapView.getLatLon(e.getX(), e.getY()));
if (n.coor.isOutSideWorld()) {
JOptionPane.showMessageDialog(Main.parent,tr("Cannot add a node outside of the world."));
return;
}
... |
diff --git a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/SubstitutionOperation.java b/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/SubstitutionOperation.java
index 524c3314..0878b8b2 100644
--- a/net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/Sub... | true | true | public void execute(EditorAdaptor editorAdaptor, TextRange region, ContentType contentType) {
int startLine;
int endLine;
if(region == null) {
//special case, recalculate 'current line' every time
//(this is to ensure '.' always works on current line)
int offset = editorAdaptor.getP... | public void execute(EditorAdaptor editorAdaptor, TextRange region, ContentType contentType) {
int startLine;
int endLine;
if(region == null) {
//special case, recalculate 'current line' every time
//(this is to ensure '.' always works on current line)
int offset = editorAdaptor.getP... |
diff --git a/Chat/src/States/ConnectedServer.java b/Chat/src/States/ConnectedServer.java
index 45ef96e..c1a53ee 100644
--- a/Chat/src/States/ConnectedServer.java
+++ b/Chat/src/States/ConnectedServer.java
@@ -1,32 +1,33 @@
package States;
import Communications.*;
import Messages.*;
import Utilities.User;
publi... | true | true | public State process(String input, TCP tcp, UDPSender us, Message udpMessage, Message tcpMessage, long timeEnteredState,boolean firstCall) {
if(firstCall){
System.out.println("You are connected to a server.\nType :update to try to bind your name to your ip.\nType :query <username> to ask the server for the ip of ... | public State process(String input, TCP tcp, UDPSender us, Message udpMessage, Message tcpMessage, long timeEnteredState,boolean firstCall) {
if(firstCall){
System.out.println("You are connected to a server.\nType :update to try to bind your name to your ip.\nType :query <username> to ask the server for the ip of ... |
diff --git a/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/Axis2HttpRequest.java b/java/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/nhttp/Axis2HttpRequest.java
index ace323291..96561c15f 100644
--- a/java/modules/transports/core/nhttp/src/main/java/org/... | false | true | public HttpRequest getRequest() throws IOException {
String httpMethod = (String) msgContext.getProperty(Constants.Configuration.HTTP_METHOD);
if (httpMethod == null) {
httpMethod = "POST";
}
endpointURLPrefix = (String) msgContext.getProperty(NhttpConstants.ENDPOINT_PRE... | public HttpRequest getRequest() throws IOException {
String httpMethod = (String) msgContext.getProperty(Constants.Configuration.HTTP_METHOD);
if (httpMethod == null) {
httpMethod = "POST";
}
endpointURLPrefix = (String) msgContext.getProperty(NhttpConstants.ENDPOINT_PRE... |
diff --git a/c/JavaExpr.java b/c/JavaExpr.java
index aa527a4..0a62fc4 100644
--- a/c/JavaExpr.java
+++ b/c/JavaExpr.java
@@ -1,444 +1,450 @@
// ex: se sts=4 sw=4 expandtab:
/*
* Yeti language compiler java bytecode generator for java foreign interface.
*
* Copyright (c) 2007-2012 Madis Janson
* All rights r... | false | true | private static void convert(Ctx ctx, YType given, YType argType) {
given = given.deref();
argType = argType.deref();
String descr = argType.javaType == null
? "" : argType.javaType.description;
if (argType.type == YetiType.JAVA_ARRAY &&
given.type ... | private static void convert(Ctx ctx, YType given, YType argType) {
given = given.deref();
argType = argType.deref();
String descr = argType.javaType == null
? "" : argType.javaType.description;
if (argType.type == YetiType.JAVA_ARRAY &&
given.type ... |
diff --git a/Todo.Apps/Android/src/net/christianweyer/tudus/MainActivity.java b/Todo.Apps/Android/src/net/christianweyer/tudus/MainActivity.java
index 96dea58..b0d06d7 100644
--- a/Todo.Apps/Android/src/net/christianweyer/tudus/MainActivity.java
+++ b/Todo.Apps/Android/src/net/christianweyer/tudus/MainActivity.java
@@ ... | true | true | public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.setIntegerProperty("splashscreen", R.drawable.splash);
super.loadUrl("file:///android_asset/www/views/index.html", 3000);
}
| public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.setIntegerProperty("splashscreen", R.drawable.splash);
super.setIntegerProperty("loadUrlTimeoutValue", 10000);
super.loadUrl("file:///android_asset/www/views/index.html", 5000);
}
|
diff --git a/src/main/java/com/ning/metrics/collector/binder/FileSystemProvider.java b/src/main/java/com/ning/metrics/collector/binder/FileSystemProvider.java
index 4343d12..1b7f19f 100644
--- a/src/main/java/com/ning/metrics/collector/binder/FileSystemProvider.java
+++ b/src/main/java/com/ning/metrics/collector/binder... | true | true | public FileSystemProvider(CollectorConfig collectorConfig) throws IOException
{
String hfsHost = collectorConfig.getHfsHost();
Configuration hadoopConfig = new Configuration();
if (hfsHost.isEmpty()) {
// Local filesystem, for testing
hadoopConfig.set("fs.default... | public FileSystemProvider(CollectorConfig collectorConfig) throws IOException
{
String hfsHost = collectorConfig.getHfsHost();
Configuration hadoopConfig = new Configuration();
if (hfsHost.isEmpty()) {
// Local filesystem, for testing
hadoopConfig.set("fs.default... |
diff --git a/Coupling/src/coupling/app/BL/BLShopListOverview.java b/Coupling/src/coupling/app/BL/BLShopListOverview.java
index 2eca43a..ab0a701 100644
--- a/Coupling/src/coupling/app/BL/BLShopListOverview.java
+++ b/Coupling/src/coupling/app/BL/BLShopListOverview.java
@@ -1,93 +1,93 @@
package coupling.app.BL;
impo... | true | true | public void recieveData(JSONObject data, ActionType actionType) {
try{
Ids ids = new Ids();
if(data.has(UID) && data.get(UID).equals("null"))
ids.setGlobalId(data.getLong(UID));
String title = null;
if(data.has(TITLE)) title = data.getString(TITLE);
switch (actionType) {
case CREATE:... | public void recieveData(JSONObject data, ActionType actionType) {
try{
Ids ids = new Ids();
if(data.has(UID) && !data.get(UID).equals(null))
ids.setGlobalId(data.getLong(UID));
String title = null;
if(data.has(TITLE)) title = data.getString(TITLE);
switch (actionType) {
case CREATE:
... |
diff --git a/org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/MarkerTest.java b/org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/MarkerTest.java
index 04a714e9..c1857378 100644
--- a/org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/MarkerTest.java
+++ b/org.eclipse.m2e.tests/src/org/eclipse/m2e/tests/MarkerTest.java
@@ -1... | true | true | public void test() throws Exception {
// Import a project with bad pom.xml
IProject project = createExisting("markerTest", "projects/markers");
waitForJobsToComplete();
assertNotNull("Expected not null project", project);
IMavenProjectFacade facade = MavenPlugin.getDefault().getMavenProjectManager... | public void test() throws Exception {
// Import a project with bad pom.xml
IProject project = createExisting("markerTest", "projects/markers");
waitForJobsToComplete();
assertNotNull("Expected not null project", project);
IMavenProjectFacade facade = MavenPlugin.getDefault().getMavenProjectManager... |
diff --git a/enough-polish-j2me/source/src/de/enough/polish/ui/UniformContainer.java b/enough-polish-j2me/source/src/de/enough/polish/ui/UniformContainer.java
index f336edb..f9e4bdd 100644
--- a/enough-polish-j2me/source/src/de/enough/polish/ui/UniformContainer.java
+++ b/enough-polish-j2me/source/src/de/enough/polish/... | false | true | protected void onScrollYOffsetChanged(int offset)
{
if (this.isIgnoreYOffsetChange)
{
return;
}
int startIndex = Math.max( 0, (-offset)/this.childRowHeight - 5);
int count = this.itemSource.countItems();
int itemsListSize = this.itemsList.size();
if (count > itemsListSize)
{
startIndex = Math.... | protected void onScrollYOffsetChanged(int offset)
{
if (this.isIgnoreYOffsetChange)
{
return;
}
int count = this.itemSource.countItems();
int itemsListSize = this.itemsList.size();
if (count <= itemsListSize)
{
return;
}
int startIndex = Math.max( 0, (-offset)/this.childRowHeight - 5);
if (... |
diff --git a/src/com/csipsimple/wizards/impl/Sipgate.java b/src/com/csipsimple/wizards/impl/Sipgate.java
index f2c7a541..afd475aa 100644
--- a/src/com/csipsimple/wizards/impl/Sipgate.java
+++ b/src/com/csipsimple/wizards/impl/Sipgate.java
@@ -1,247 +1,247 @@
/**
* Copyright (C) 2010-2012 Regis Montoya (aka r3gis - w... | true | true | public void fillLayout(final SipProfile account) {
super.fillLayout(account);
//Override titles
accountDisplayName.setTitle(R.string.w_sipgate_display_name);
accountDisplayName.setDialogTitle(R.string.w_sipgate_display_name);
accountServer.setTitle(R.string.w_common_server);
accountServer.setDialogTitle(R.... | public void fillLayout(final SipProfile account) {
super.fillLayout(account);
//Override titles
accountDisplayName.setTitle(R.string.w_sipgate_display_name);
accountDisplayName.setDialogTitle(R.string.w_sipgate_display_name);
accountServer.setTitle(R.string.w_common_server);
accountServer.setDialogTitle(R.... |
diff --git a/src/com/globalmesh/action/sale/SalesServlet.java b/src/com/globalmesh/action/sale/SalesServlet.java
index ef4000a..5d5cef3 100644
--- a/src/com/globalmesh/action/sale/SalesServlet.java
+++ b/src/com/globalmesh/action/sale/SalesServlet.java
@@ -1,185 +1,186 @@
package com.globalmesh.action.sale;
import ... | false | true | protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String userEmail = (String) req.getSession().getAttribute("email");
if(userEmail == null) {
req.setAttribute("msgClass", Constants.MSG_CSS_ERROR);
req.setAttribute("message", Utility.getCON... | protected void doPost(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
String userEmail = (String) req.getSession().getAttribute("email");
if(userEmail == null) {
req.setAttribute("msgClass", Constants.MSG_CSS_ERROR);
req.setAttribute("message", Utility.getCON... |
diff --git a/src/uk/me/parabola/imgfmt/app/labelenc/Format6Encoder.java b/src/uk/me/parabola/imgfmt/app/labelenc/Format6Encoder.java
index 48347c74..77050d91 100644
--- a/src/uk/me/parabola/imgfmt/app/labelenc/Format6Encoder.java
+++ b/src/uk/me/parabola/imgfmt/app/labelenc/Format6Encoder.java
@@ -1,143 +1,143 @@
/*
... | true | true | public EncodedText encodeText(String text) {
if (text == null || text.length() == 0)
return NO_TEXT;
String s = text.toUpperCase(Locale.ENGLISH);
byte[] buf = new byte[2 * s.length() + 1];
int off = 0;
for (char c : transliterate(s)) {
if (c == ' ') {
buf = put6(buf, off++, 0);
} else if (c >... | public EncodedText encodeText(String text) {
if (text == null || text.length() == 0)
return NO_TEXT;
String s = text.toUpperCase(Locale.ENGLISH);
byte[] buf = new byte[2 * s.length() + 1];
int off = 0;
for (char c : transliterate(s)) {
if (c == ' ') {
buf = put6(buf, off++, 0);
} else if (c >... |
diff --git a/src/main/java/com/edinarobotics/scouting/definitions/event/Event.java b/src/main/java/com/edinarobotics/scouting/definitions/event/Event.java
index a59afdf..3d0ff0a 100644
--- a/src/main/java/com/edinarobotics/scouting/definitions/event/Event.java
+++ b/src/main/java/com/edinarobotics/scouting/definitions/... | true | true | public Event(){
this.id = UUID.randomUUID().toString().toLowerCase();
}
| public Event(){
this.id = UUID.randomUUID().toString();
}
|
diff --git a/src/com/jidesoft/plaf/office2003/Office2003WindowsUtils.java b/src/com/jidesoft/plaf/office2003/Office2003WindowsUtils.java
index bc1cf49c..84868868 100644
--- a/src/com/jidesoft/plaf/office2003/Office2003WindowsUtils.java
+++ b/src/com/jidesoft/plaf/office2003/Office2003WindowsUtils.java
@@ -1,305 +1,306 ... | true | true | public static void initComponentDefaults(UIDefaults table) {
Toolkit toolkit = Toolkit.getDefaultToolkit();
WindowsDesktopProperty defaultTextColor = new WindowsDesktopProperty("win.button.textColor", UIDefaultsLookup.get("controlText"), toolkit);
WindowsDesktopProperty defaultBackgroundCol... | public static void initComponentDefaults(UIDefaults table) {
Toolkit toolkit = Toolkit.getDefaultToolkit();
WindowsDesktopProperty defaultTextColor = new WindowsDesktopProperty("win.button.textColor", UIDefaultsLookup.get("controlText"), toolkit);
WindowsDesktopProperty defaultBackgroundCol... |
diff --git a/bobo-contrib/src/main/java/com/browseengine/bobo/geosearch/query/GeoQuery.java b/bobo-contrib/src/main/java/com/browseengine/bobo/geosearch/query/GeoQuery.java
index 1b97d50..7af82f3 100644
--- a/bobo-contrib/src/main/java/com/browseengine/bobo/geosearch/query/GeoQuery.java
+++ b/bobo-contrib/src/main/java... | false | true | public GeoQuery(double centroidLatitude, double centroidLongitude, Float rangeInKm) {
latRadians = Conversions.d2r(centroidLatitude);
longRadians = Conversions.d2r(centroidLongitude);
if (!( null == rangeInKm)) {
throw new RuntimeException("please specify rangeInKilomete... | public GeoQuery(double centroidLatitude, double centroidLongitude, Float rangeInKm) {
latRadians = Conversions.d2r(centroidLatitude);
longRadians = Conversions.d2r(centroidLongitude);
this.rangeInKm = rangeInKm;
if (null == rangeInKm) {
throw new RuntimeException... |
diff --git a/freeplane/src/org/freeplane/view/swing/addins/BlinkingNodeHook.java b/freeplane/src/org/freeplane/view/swing/addins/BlinkingNodeHook.java
index 2e2af3f6f..fc4100085 100644
--- a/freeplane/src/org/freeplane/view/swing/addins/BlinkingNodeHook.java
+++ b/freeplane/src/org/freeplane/view/swing/addins/BlinkingN... | true | true | public void run() {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
if (getNode() == null || Controller.getCurrentModeController().isBlocked()) {
return;
}
getNode().acceptViewVisitor(new INodeViewVisitor() {
public void visit(final INodeView nodeView) {
if(! (... | public void run() {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
if (getNode() == null || Controller.getCurrentModeController().isBlocked()) {
return;
}
getNode().acceptViewVisitor(new INodeViewVisitor() {
public void visit(final INodeView nodeView) {
if(! (... |
diff --git a/src/net/sf/freecol/common/model/Building.java b/src/net/sf/freecol/common/model/Building.java
index c1555fa4c..7ba549d7a 100644
--- a/src/net/sf/freecol/common/model/Building.java
+++ b/src/net/sf/freecol/common/model/Building.java
@@ -1,982 +1,983 @@
package net.sf.freecol.common.model;
import jav... | true | true | public void newTurn() {
if ((level == NOT_BUILT) && (type != CHURCH)) return; // Don't do anything if the building does not exist.
if (type == SCHOOLHOUSE) {
Iterator i = getUnitIterator();
while (i.hasNext()) {
Unit teacher = (Unit) i.next();
... | public void newTurn() {
if ((level == NOT_BUILT) && (type != CHURCH)) return; // Don't do anything if the building does not exist.
if (type == SCHOOLHOUSE) {
Iterator i = getUnitIterator();
while (i.hasNext()) {
Unit teacher = (Unit) i.next();
... |
diff --git a/com/core/util/TimerThread.java b/com/core/util/TimerThread.java
index 6d5c989..ff22da1 100644
--- a/com/core/util/TimerThread.java
+++ b/com/core/util/TimerThread.java
@@ -1,102 +1,105 @@
package com.core.util;
/**
* TimerThread.java
* Copyright (c) 2002 by Dr. Herong Yang
*/
import java.util.*;
... | true | true | public void run() {
while (!isInterrupted()) {
try {
sleep(clock_interval);
} catch (InterruptedException e) {
break; // the main thread wants this thread to end
}
if (type==NORMAL_CLOCK || type==STOP_WATCH)
c_millisecond +=clock_interval;... | public void run() {
while (!isInterrupted()) {
try {
sleep(clock_interval);
} catch (InterruptedException e) {
break; // the main thread wants this thread to end
}
if (type==NORMAL_CLOCK || type==STOP_WATCH)
c_millisecond +=clock_interval;... |
diff --git a/src/com/android/browser/provider/BrowserProvider2.java b/src/com/android/browser/provider/BrowserProvider2.java
index 1b90cb3d..358ee2d9 100644
--- a/src/com/android/browser/provider/BrowserProvider2.java
+++ b/src/com/android/browser/provider/BrowserProvider2.java
@@ -1,1599 +1,1604 @@
/*
* Copyright (... | true | true | public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
String sortOrder) {
SQLiteDatabase db = mOpenHelper.getReadableDatabase();
final int match = URI_MATCHER.match(uri);
SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
String limit ... | public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
String sortOrder) {
SQLiteDatabase db = mOpenHelper.getReadableDatabase();
final int match = URI_MATCHER.match(uri);
SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
String limit ... |
diff --git a/src/main/java/org/apache/commons/digester3/CallMethodRule.java b/src/main/java/org/apache/commons/digester3/CallMethodRule.java
index 66fec2cc..c656bf2d 100644
--- a/src/main/java/org/apache/commons/digester3/CallMethodRule.java
+++ b/src/main/java/org/apache/commons/digester3/CallMethodRule.java
@@ -1,565... | false | true | public void end( String namespace, String name )
throws Exception
{
// Retrieve or construct the parameter values array
Object parameters[] = null;
if ( paramCount > 0 )
{
parameters = getDigester().popParams();
if ( getDigester().getLogger().isTr... | public void end( String namespace, String name )
throws Exception
{
// Retrieve or construct the parameter values array
Object[] parameters;
if ( paramCount > 0 )
{
parameters = getDigester().popParams();
if ( getDigester().getLogger().isTraceEnab... |
diff --git a/src/main/java/uk/co/CyniCode/CyniChat/Command/AdminCommand.java b/src/main/java/uk/co/CyniCode/CyniChat/Command/AdminCommand.java
index 2b4ca93..90e4c85 100644
--- a/src/main/java/uk/co/CyniCode/CyniChat/Command/AdminCommand.java
+++ b/src/main/java/uk/co/CyniCode/CyniChat/Command/AdminCommand.java
@@ -1,5... | true | true | public static boolean create( CommandSender player, String name, String nick, Boolean protect ) {
if ( player instanceof Player )
if ( !PermissionManager.checkPerm( (Player) player, "cynichat.admin.create") )
return false;
if ( DataManager.getChannel(name) != null ) {
player.sendMessage("This channel ... | public static boolean create( CommandSender player, String name, String nick, Boolean protect ) {
if ( player instanceof Player )
if ( !PermissionManager.checkPerm( (Player) player, "cynichat.admin.create") )
return false;
if ( DataManager.getChannel(name) != null ) {
player.sendMessage("This channel ... |
diff --git a/src/main/java/net/krinsoft/jobsuite/commands/JobListCommand.java b/src/main/java/net/krinsoft/jobsuite/commands/JobListCommand.java
index 2f0d884..d7743bf 100644
--- a/src/main/java/net/krinsoft/jobsuite/commands/JobListCommand.java
+++ b/src/main/java/net/krinsoft/jobsuite/commands/JobListCommand.java
@@ ... | false | true | public void runCommand(CommandSender sender, List<String> args) {
int page = 1;
if (args.size() > 0) {
try {
page = Integer.parseInt(args.get(0));
} catch (NumberFormatException e) {
page = 1;
}
}
List<Job> jobs = ma... | public void runCommand(CommandSender sender, List<String> args) {
int page = 1;
if (args.size() > 0) {
try {
page = Integer.parseInt(args.get(0));
} catch (NumberFormatException e) {
page = 1;
}
}
List<Job> jobs = ma... |
diff --git a/tika-thrift/src/main/java/it/tika/TikaServiceImpl.java b/tika-thrift/src/main/java/it/tika/TikaServiceImpl.java
index 5d2bead..509f405 100644
--- a/tika-thrift/src/main/java/it/tika/TikaServiceImpl.java
+++ b/tika-thrift/src/main/java/it/tika/TikaServiceImpl.java
@@ -1,49 +1,49 @@
package it.tika;
impo... | true | true | public TikaResponse fire(TikaRequest request) throws TikaException, TException {
String url = request.getUrl();
String urlDecoded = null;
try {
urlDecoded = java.net.URLDecoder.decode(url, "UTF-8");
} catch (UnsupportedEncodingException e) {
return null;
... | public TikaResponse fire(TikaRequest request) throws TikaException, TException {
String url = request.getUrl();
String urlDecoded = null;
try {
urlDecoded = java.net.URLDecoder.decode(url, "UTF-8");
} catch (UnsupportedEncodingException e) {
return null;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.