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/FE_SRC_COMMON/com/ForgeEssentials/util/TeleportCenter.java b/src/FE_SRC_COMMON/com/ForgeEssentials/util/TeleportCenter.java
index 95a307e69..21c3740c5 100644
--- a/src/FE_SRC_COMMON/com/ForgeEssentials/util/TeleportCenter.java
+++ b/src/FE_SRC_COMMON/com/ForgeEssentials/util/TeleportCenter.java
@@ -1,1... | true | true | public static void addToTpQue(WarpPoint point, EntityPlayer player)
{
if(PlayerInfo.getPlayerInfo(player).TPcooldown != 0 || !PermissionsAPI.checkPermAllowed(new PermQueryPlayer(player, BYPASS_COOLDOWN)))
{
player.sendChatToPlayer(Localization.get(Localization.TC_COOLDOWN).replaceAll("%c", ""+PlayerInfo.getPla... | public static void addToTpQue(WarpPoint point, EntityPlayer player)
{
if(PlayerInfo.getPlayerInfo(player).TPcooldown == 0 || PermissionsAPI.checkPermAllowed(new PermQueryPlayer(player, BYPASS_COOLDOWN)))
{
player.sendChatToPlayer(Localization.get(Localization.TC_COOLDOWN).replaceAll("%c", ""+PlayerInfo.getPlay... |
diff --git a/src/test/java/org/mule/module/magento/automation/testcases/CancelOrderTestCases.java b/src/test/java/org/mule/module/magento/automation/testcases/CancelOrderTestCases.java
index 95531cb8..4157979d 100644
--- a/src/test/java/org/mule/module/magento/automation/testcases/CancelOrderTestCases.java
+++ b/src/te... | false | true | public void setUp() {
try {
testObjects = (HashMap<String, Object>) context.getBean("cancelOrder");
ShoppingCartCustomerEntity customer = (ShoppingCartCustomerEntity) testObjects.get("customer");
List<ShoppingCartCustomerAddressEntity> addresses = (List<ShoppingCartCustomerAddressEntity>) testObjects.ge... | public void setUp() {
try {
testObjects = (HashMap<String, Object>) context.getBean("cancelOrder");
ShoppingCartCustomerEntity customer = (ShoppingCartCustomerEntity) testObjects.get("customer");
List<ShoppingCartCustomerAddressEntity> addresses = (List<ShoppingCartCustomerAddressEntity>) testObjects.ge... |
diff --git a/src/com/jidesoft/swing/LabeledTextField.java b/src/com/jidesoft/swing/LabeledTextField.java
index a37d0dca..ee9cbc1d 100644
--- a/src/com/jidesoft/swing/LabeledTextField.java
+++ b/src/com/jidesoft/swing/LabeledTextField.java
@@ -1,526 +1,530 @@
/*
* @(#)ShortcutField.java 7/9/2002
*
* Copyright 200... | true | true | public void setEnabled(boolean enabled) {
super.setEnabled(enabled);
if (enabled) {
if (getTextField() != null) {
getTextField().setEnabled(true);
}
if (getLabel() != null) {
getLabel().setEnabled(true);
}
if... | public void setEnabled(boolean enabled) {
super.setEnabled(enabled);
if (enabled) {
if (getTextField() != null) {
getTextField().setEnabled(true);
}
if (getLabel() != null) {
getLabel().setEnabled(true);
}
if... |
diff --git a/xlthotel_core/src/main/java/com/xlthotel/core/filter/MediaItemFilter.java b/xlthotel_core/src/main/java/com/xlthotel/core/filter/MediaItemFilter.java
index 7635f5c..aae3055 100644
--- a/xlthotel_core/src/main/java/com/xlthotel/core/filter/MediaItemFilter.java
+++ b/xlthotel_core/src/main/java/com/xlthotel/... | false | true | public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
HttpServletRequest req = (HttpServletRequest) request;
HttpServletResponse resp = (HttpServletResponse) response;
String uri = req.getRequestURI();
if (!uri.contains("/servlet/adm... | public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
HttpServletRequest req = (HttpServletRequest) request;
HttpServletResponse resp = (HttpServletResponse) response;
String uri = req.getRequestURI();
if (!uri.contains("/servlet/med... |
diff --git a/javasvn/src/org/tmatesoft/svn/core/internal/SVNCommitUtil.java b/javasvn/src/org/tmatesoft/svn/core/internal/SVNCommitUtil.java
index 21c9ecfc3..c888900f8 100644
--- a/javasvn/src/org/tmatesoft/svn/core/internal/SVNCommitUtil.java
+++ b/javasvn/src/org/tmatesoft/svn/core/internal/SVNCommitUtil.java
@@ -1,5... | false | true | public static void doCommit(String path, String url, Map entries, ISVNEditor editor, SVNWorkspace ws, ISVNProgressViewer progressViewer, Set committedPaths) throws SVNException {
progressViewer = progressViewer == null ? new SVNProgressDummyViewer() : progressViewer;
ISVNEntry root = (ISVNEntry) ent... | public static void doCommit(String path, String url, Map entries, ISVNEditor editor, SVNWorkspace ws, ISVNProgressViewer progressViewer, Set committedPaths) throws SVNException {
progressViewer = progressViewer == null ? new SVNProgressDummyViewer() : progressViewer;
ISVNEntry root = (ISVNEntry) entri... |
diff --git a/src/main/java/org/bukkit/ChatColor.java b/src/main/java/org/bukkit/ChatColor.java
index 834bcc68..06540b2c 100644
--- a/src/main/java/org/bukkit/ChatColor.java
+++ b/src/main/java/org/bukkit/ChatColor.java
@@ -1,126 +1,126 @@
package org.bukkit;
import java.util.HashMap;
import java.util.Map;
/**
... | true | true | public static String stripColor(final String input) {
if (input == null) {
return null;
}
return input.replaceAll("(?i)\u00A7[0-F]", "");
}
| public static String stripColor(final String input) {
if (input == null) {
return null;
}
return input.replaceAll("(?i)\u00A7[0-9A-F]", "");
}
|
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/CVSDateFormatter.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/CVSDateFormatter.java
index 26354b589..c75025842 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal... | true | true | static private TimeZone getTimeZone(String dateFromServer) {
String tz = null;
StringBuffer resultTz = new StringBuffer("GMT");//$NON-NLS-1$
if (dateFromServer.indexOf("-") != -1) {//$NON-NLS-1$
resultTz.append("-");//$NON-NLS-1$
tz = dateFromServer.substring(dateFromServer.indexOf("-"));//$NON-NLS-1$
} ... | static private TimeZone getTimeZone(String dateFromServer) {
if (dateFromServer.lastIndexOf("0000") != -1) //$NON-NLS-1$
return TimeZone.getTimeZone("GMT");//$NON-NLS-1$
String tz = null;
StringBuffer resultTz = new StringBuffer("GMT");//$NON-NLS-1$
if (dateFromServer.indexOf("-") != -1) {//$NON-... |
diff --git a/src/com/android/phone/InCallControlState.java b/src/com/android/phone/InCallControlState.java
index 00f14622..5469cfbd 100644
--- a/src/com/android/phone/InCallControlState.java
+++ b/src/com/android/phone/InCallControlState.java
@@ -1,187 +1,187 @@
/*
* Copyright (C) 2009 The Android Open Source Projec... | true | true | public void update() {
final boolean hasRingingCall = !mPhone.getRingingCall().isIdle();
final Call fgCall = mPhone.getForegroundCall();
final Call.State fgCallState = fgCall.getState();
final boolean hasActiveCall = !fgCall.isIdle();
final boolean hasHoldingCall = !mPhone.ge... | public void update() {
final boolean hasRingingCall = !mPhone.getRingingCall().isIdle();
final Call fgCall = mPhone.getForegroundCall();
final Call.State fgCallState = fgCall.getState();
final boolean hasActiveCall = !fgCall.isIdle();
final boolean hasHoldingCall = !mPhone.ge... |
diff --git a/netbeans-virgo-server-support/src/th/co/geniustree/virgo/server/api/Deployer.java b/netbeans-virgo-server-support/src/th/co/geniustree/virgo/server/api/Deployer.java
index 48b323f..ba33873 100644
--- a/netbeans-virgo-server-support/src/th/co/geniustree/virgo/server/api/Deployer.java
+++ b/netbeans-virgo-se... | true | true | public void deploy(File file, boolean recoverable) throws Exception {
if (SwingUtilities.isEventDispatchThread()) {
throw new IllegalStateException("Can't call in EDT.");
}
JMXConnector connector = null;
try {
connector = JmxConnectorHelper.createConnector(ins... | public void deploy(File file, boolean recoverable) throws Exception {
if (SwingUtilities.isEventDispatchThread()) {
throw new IllegalStateException("Can't call in EDT.");
}
JMXConnector connector = null;
try {
connector = JmxConnectorHelper.createConnector(ins... |
diff --git a/src/test/java/com/salesforce/phoenix/schema/PDataTypeTest.java b/src/test/java/com/salesforce/phoenix/schema/PDataTypeTest.java
index da86ad0c..23822aab 100644
--- a/src/test/java/com/salesforce/phoenix/schema/PDataTypeTest.java
+++ b/src/test/java/com/salesforce/phoenix/schema/PDataTypeTest.java
@@ -1,299... | true | true | public void testBigDecimal() {
byte[] b;
BigDecimal na, nb;
b = new byte[] {
(byte)0xc2,0x02,0x10,0x36,0x22,0x22,0x22,0x22,0x22,0x22,0x0f,0x27,0x38,0x1c,0x05,0x40,0x62,0x21,0x54,0x4d,0x4e,0x01,0x14,0x36,0x0d,0x33
};
BigDecimal decodedBytes = (BigDecim... | public void testBigDecimal() {
byte[] b;
BigDecimal na, nb;
b = new byte[] {
(byte)0xc2,0x02,0x10,0x36,0x22,0x22,0x22,0x22,0x22,0x22,0x0f,0x27,0x38,0x1c,0x05,0x40,0x62,0x21,0x54,0x4d,0x4e,0x01,0x14,0x36,0x0d,0x33
};
BigDecimal decodedBytes = (BigDecim... |
diff --git a/src/main/java/com/novoda/notils/logger/AndroidHelper.java b/src/main/java/com/novoda/notils/logger/AndroidHelper.java
index 63949d9..321c833 100644
--- a/src/main/java/com/novoda/notils/logger/AndroidHelper.java
+++ b/src/main/java/com/novoda/notils/logger/AndroidHelper.java
@@ -1,32 +1,31 @@
package com.... | false | true | public static String fromContext(Context context) {
final PackageManager pm = context.getApplicationContext().getPackageManager();
ApplicationInfo ai;
try {
ai = pm.getApplicationInfo(context.getPackageName(), 0);
} catch (final PackageManager.Name... | public static String fromContext(Context context) {
final PackageManager pm = context.getApplicationContext().getPackageManager();
try {
ApplicationInfo ai = pm.getApplicationInfo(context.getPackageName(), 0);
return (String) pm.getApplicationLabel(ai);
... |
diff --git a/src/main/java/org/dynmap/web/handlers/SendMessageHandler.java b/src/main/java/org/dynmap/web/handlers/SendMessageHandler.java
index 5578e3b3..eefca517 100644
--- a/src/main/java/org/dynmap/web/handlers/SendMessageHandler.java
+++ b/src/main/java/org/dynmap/web/handlers/SendMessageHandler.java
@@ -1,138 +1,... | true | true | public void handle(String path, HttpRequest request, HttpResponse response) throws Exception {
if (!request.method.equals(HttpMethod.Post)) {
response.status = HttpStatus.MethodNotAllowed;
response.fields.put(HttpField.Accept, HttpMethod.Post);
return;
}
... | public void handle(String path, HttpRequest request, HttpResponse response) throws Exception {
if (!request.method.equals(HttpMethod.Post)) {
response.status = HttpStatus.MethodNotAllowed;
response.fields.put(HttpField.Accept, HttpMethod.Post);
return;
}
... |
diff --git a/src/water/parser/ParseDataset.java b/src/water/parser/ParseDataset.java
index f9f1d1b96..e180208ae 100644
--- a/src/water/parser/ParseDataset.java
+++ b/src/water/parser/ParseDataset.java
@@ -1,146 +1,146 @@
package water.parser;
import java.io.IOException;
import java.util.zip.*;
import jsr166y.Recu... | true | true | private static void parseImpl( Key result, Value dataset ) {
if( dataset.isHex() )
throw new IllegalArgumentException("This is a binary structured dataset; "
+ "parse() only works on text files.");
try {
// try if it is XLS file first
try {
parseUncompressed(result,dataset,... | private static void parseImpl( Key result, Value dataset ) {
if( dataset.isHex() )
throw new IllegalArgumentException("This is a binary structured dataset; "
+ "parse() only works on text files.");
try {
// try if it is XLS file first
try {
parseUncompressed(result,dataset,... |
diff --git a/src/com/android/email/activity/MailboxList.java b/src/com/android/email/activity/MailboxList.java
index 9e7a6fba..50711c0b 100644
--- a/src/com/android/email/activity/MailboxList.java
+++ b/src/com/android/email/activity/MailboxList.java
@@ -1,361 +1,358 @@
/*
* Copyright (C) 2009 The Android Open Sourc... | true | true | public void onCreate(Bundle icicle) {
super.onCreate(icicle);
mAccountId = getIntent().getLongExtra(EXTRA_ACCOUNT_ID, -1);
if (mAccountId == -1) {
finish();
return;
}
setContentView(R.layout.mailbox_list);
mControllerCallback = new Controlle... | public void onCreate(Bundle icicle) {
super.onCreate(icicle);
mAccountId = getIntent().getLongExtra(EXTRA_ACCOUNT_ID, -1);
if (mAccountId == -1) {
finish();
return;
}
setContentView(R.layout.mailbox_list);
mControllerCallback = new Controlle... |
diff --git a/plugins/com.python.pydev.analysis/src/com/python/pydev/analysis/ctrl_1/UndefinedVariableFixParticipant.java b/plugins/com.python.pydev.analysis/src/com/python/pydev/analysis/ctrl_1/UndefinedVariableFixParticipant.java
index e44971993..ecfd731f7 100644
--- a/plugins/com.python.pydev.analysis/src/com/python/... | true | true | public void addProps(IMarker marker,
IAnalysisPreferences analysisPreferences,
String line,
PySelection ps,
int offset,
IPythonNature nature,
PyEdit edit,
List<ICompletionProposal> props) throws BadLocationException, CoreExcep... | public void addProps(IMarker marker,
IAnalysisPreferences analysisPreferences,
String line,
PySelection ps,
int offset,
IPythonNature nature,
PyEdit edit,
List<ICompletionProposal> props) throws BadLocationException, CoreExcep... |
diff --git a/core/src/main/java/hudson/util/DescribableList.java b/core/src/main/java/hudson/util/DescribableList.java
index ec7912ea5..af7644701 100644
--- a/core/src/main/java/hudson/util/DescribableList.java
+++ b/core/src/main/java/hudson/util/DescribableList.java
@@ -1,149 +1,149 @@
package hudson.util;
import... | true | true | public void rebuild(StaplerRequest req, JSONObject json, List<? extends Descriptor<T>> descriptors, String prefix) throws FormException {
List<T> newList = new ArrayList<T>();
for( int i=0; i< descriptors.size(); i++ ) {
String name = prefix + i;
if(req.getParameter(name)!=n... | public void rebuild(StaplerRequest req, JSONObject json, List<? extends Descriptor<T>> descriptors, String prefix) throws FormException {
List<T> newList = new ArrayList<T>();
for( int i=0; i< descriptors.size(); i++ ) {
String name = prefix + i;
if(json.has(name)) {
... |
diff --git a/astrid/plugin-src/com/todoroo/astrid/producteev/ProducteevDetailExposer.java b/astrid/plugin-src/com/todoroo/astrid/producteev/ProducteevDetailExposer.java
index aecd45464..545a3f822 100644
--- a/astrid/plugin-src/com/todoroo/astrid/producteev/ProducteevDetailExposer.java
+++ b/astrid/plugin-src/com/todoro... | false | true | public String getTaskDetails(Context context, long id, boolean extended) {
Metadata metadata = ProducteevDataService.getInstance().getTaskMetadata(id);
if(metadata == null)
return null;
StringBuilder builder = new StringBuilder();
if(!extended) {
long dashbo... | public String getTaskDetails(Context context, long id, boolean extended) {
Metadata metadata = ProducteevDataService.getInstance().getTaskMetadata(id);
if(metadata == null)
return null;
StringBuilder builder = new StringBuilder();
if(!extended) {
long dashbo... |
diff --git a/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java b/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java
index 645a6711f..09c969138 100644
--- a/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/ou... | true | true | public void run()
{
long length = document.getBinaryLength();
InputStream is = document.getBinaryStream();
try
{
// Do the operation!
long fullStartTime = System.currentTimeMillis();
// Open a socket to ingest, and to the response stream to get the post result
... | public void run()
{
long length = document.getBinaryLength();
InputStream is = document.getBinaryStream();
try
{
// Do the operation!
long fullStartTime = System.currentTimeMillis();
// Open a socket to ingest, and to the response stream to get the post result
... |
diff --git a/skeletons/winservice/sample/src/AlertServer.java b/skeletons/winservice/sample/src/AlertServer.java
index 0712ad6..babe2f4 100644
--- a/skeletons/winservice/sample/src/AlertServer.java
+++ b/skeletons/winservice/sample/src/AlertServer.java
@@ -1,117 +1,120 @@
import java.net.*;
import java.util.*;
i... | false | true | public void run()
{
try {
InputStream is = m_sock.getInputStream();
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
String line;
while ((line=br.readLine()) != null)
{
FileWriter fw = new FileWriter("c:/alertserver.log", true);
System.out.pri... | public void run()
{
try {
InputStream is = m_sock.getInputStream();
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
OutputStream outs = m_sock.getOutputStream();
Writer out = new OutputStreamWriter(outs);
String line;
while ((line=br.readLine()) != n... |
diff --git a/app/src/com/halcyonwaves/apps/meinemediathek/fragments/SearchResultsFragment.java b/app/src/com/halcyonwaves/apps/meinemediathek/fragments/SearchResultsFragment.java
index e57cfa1..b2e18f3 100644
--- a/app/src/com/halcyonwaves/apps/meinemediathek/fragments/SearchResultsFragment.java
+++ b/app/src/com/halcy... | true | true | public void onLoadFinished( final Loader< List< SearchResultEntry > > loader, final List< SearchResultEntry > data ) {
// if an socket exception occurred, show a message
if( ((ZDFSearchResultsLoader) loader).socketTimeoutOccurred() ) {
final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder( this... | public void onLoadFinished( final Loader< List< SearchResultEntry > > loader, final List< SearchResultEntry > data ) {
// if an socket exception occurred, show a message
if( ((ZDFSearchResultsLoader) loader).socketTimeoutOccurred() ) {
final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder( this... |
diff --git a/src/com/joilnen/DrawGameHelper2.java b/src/com/joilnen/DrawGameHelper2.java
index c49c9f4..af7f3f6 100644
--- a/src/com/joilnen/DrawGameHelper2.java
+++ b/src/com/joilnen/DrawGameHelper2.java
@@ -1,137 +1,137 @@
package com.joilnen;
import android.graphics.Canvas;
import android.graphics.Paint;
impor... | false | true | public void draw(Canvas canvas) {
canvas.drawRGB(255, 255, 255);
try {
canvas.drawBitmap(renderView.bolo.getBitmap(), 10, 310, null);
for(Mosca it:renderView.moscas) {
if(it.getY() < 450)
it.move();
else {
System.out.format("valor %d\n", it.getStatus());
if(it.getStatus() == SkinType.V... | public void draw(Canvas canvas) {
try {
canvas.drawRGB(255, 255, 255);
canvas.drawBitmap(renderView.bolo.getBitmap(), 10, 310, null);
for(Mosca it:renderView.moscas) {
if(it.getY() < 450)
it.move();
else {
System.out.format("valor %d\n", it.getStatus());
if(it.getStatus() == SkinType.... |
diff --git a/src/com/redhat/ceylon/launcher/CeylonClassLoader.java b/src/com/redhat/ceylon/launcher/CeylonClassLoader.java
index 76d947688..05bda6039 100644
--- a/src/com/redhat/ceylon/launcher/CeylonClassLoader.java
+++ b/src/com/redhat/ceylon/launcher/CeylonClassLoader.java
@@ -1,199 +1,199 @@
package com.redhat.cey... | true | true | public static List<File> getClassPath() throws URISyntaxException, FileNotFoundException {
// Determine the necessary folders
File ceylonHome = LauncherUtil.determineHome();
File ceylonRepo = LauncherUtil.determineRepo();
File ceylonLib = LauncherUtil.determineLibs();
// Per... | public static List<File> getClassPath() throws URISyntaxException, FileNotFoundException {
// Determine the necessary folders
File ceylonHome = LauncherUtil.determineHome();
File ceylonRepo = LauncherUtil.determineRepo();
File ceylonLib = LauncherUtil.determineLibs();
// Per... |
diff --git a/repository/gwt-client/src/main/java/org/mule/galaxy/repository/client/item/ChildItemsPanel.java b/repository/gwt-client/src/main/java/org/mule/galaxy/repository/client/item/ChildItemsPanel.java
index a11d79bb..5903cd1b 100755
--- a/repository/gwt-client/src/main/java/org/mule/galaxy/repository/client/item/... | true | true | private void createItemGrid() {
panel.clear();
ContentPanel contentPanel = new FullContentPanel();
contentPanel.setHeading("All Items");
if (info != null) {
contentPanel = new PaddedContentPanel();
contentPanel.setHeading(info.getName());
itemPane... | private void createItemGrid() {
panel.clear();
ContentPanel contentPanel = new FullContentPanel();
contentPanel.setHeading("All Items");
if (info != null) {
contentPanel = new PaddedContentPanel();
contentPanel.setHeading(info.getName());
itemPane... |
diff --git a/src/schmoller/tubes/SpecialShapedRecipe.java b/src/schmoller/tubes/SpecialShapedRecipe.java
index 30381b6..29db2b7 100644
--- a/src/schmoller/tubes/SpecialShapedRecipe.java
+++ b/src/schmoller/tubes/SpecialShapedRecipe.java
@@ -1,206 +1,206 @@
package schmoller.tubes;
import java.util.HashMap;
import ... | false | true | private boolean checkMatch(InventoryCrafting inv, int startX, int startY, boolean mirror)
{
for (int x = 0; x < 3; ++x)
{
for(int y = 0; y < 3; ++y)
{
Object obj = null;
if(x >= startX && x < startX + width && y >= startY && y < startY... | private boolean checkMatch(InventoryCrafting inv, int startX, int startY, boolean mirror)
{
for (int x = 0; x < 3; ++x)
{
for(int y = 0; y < 3; ++y)
{
Object obj = null;
if(x >= startX && x < startX + width && y >= startY && y < startY... |
diff --git a/org.seasar.dolteng.eclipse.plugin/src/main/java/org/seasar/dolteng/eclipse/nature/DoltengNature.java b/org.seasar.dolteng.eclipse.plugin/src/main/java/org/seasar/dolteng/eclipse/nature/DoltengNature.java
index 79d282c..e875090 100644
--- a/org.seasar.dolteng.eclipse.plugin/src/main/java/org/seasar/dolteng/... | true | true | public void init() {
try {
this.preference = new DoltengPreferencesImpl(getProject());
if (Constants.DAO_TYPE_KUINADAO
.equals(this.preference.getDaoType())) {
this.registry = new KuinaTypeMappingRegistry();
} else if (Constants.DAO_TYP... | public void init() {
try {
this.preference = new DoltengPreferencesImpl(getProject());
if (Constants.DAO_TYPE_KUINADAO
.equals(this.preference.getDaoType())) {
this.registry = new KuinaTypeMappingRegistry();
} else {
thi... |
diff --git a/MyTracks/src/com/google/android/apps/mytracks/io/gdata/GDataWrapper.java b/MyTracks/src/com/google/android/apps/mytracks/io/gdata/GDataWrapper.java
index 335dca66..d6ed2083 100644
--- a/MyTracks/src/com/google/android/apps/mytracks/io/gdata/GDataWrapper.java
+++ b/MyTracks/src/com/google/android/apps/mytra... | true | true | private void runOne(final AuthenticatedFunction function,
final QueryFunction<C> query) {
try {
if (function != null) {
function.run(this.auth.getAuthToken());
} else if (query != null) {
query.query(gdataServiceClient);
} else {
throw new IllegalArgumentException(... | private void runOne(final AuthenticatedFunction function,
final QueryFunction<C> query) {
try {
if (function != null) {
function.run(this.auth.getAuthToken());
} else if (query != null) {
query.query(gdataServiceClient);
} else {
throw new IllegalArgumentException(... |
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ToggleBreakpointAdapter.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ToggleBreakpointAdapter.java
index 86a3d1898..ba8765b40 100644
--- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actio... | false | true | public void toggleMethodBreakpoints(IWorkbenchPart part, ISelection selection) throws CoreException {
report(null, part);
selection = translateToMembers(part, selection);
if (selection instanceof ITextSelection) {
ITextSelection textSelection = (ITextSelection) selection;
if (selection != null) {
Compi... | public void toggleMethodBreakpoints(IWorkbenchPart part, ISelection selection) throws CoreException {
report(null, part);
selection = translateToMembers(part, selection);
if (selection instanceof ITextSelection) {
ITextSelection textSelection = (ITextSelection) selection;
if (selection != null) {
Compi... |
diff --git a/hazelcast-client/src/main/java/com/hazelcast/client/proxy/ClientMapProxy.java b/hazelcast-client/src/main/java/com/hazelcast/client/proxy/ClientMapProxy.java
index ec449b8044..39f7144dc7 100644
--- a/hazelcast-client/src/main/java/com/hazelcast/client/proxy/ClientMapProxy.java
+++ b/hazelcast-client/src/ma... | false | true | private void initNearCache(){
if (nearCacheInitialized.compareAndSet(false, true)){
final NearCacheConfig nearCacheConfig = getContext().getClientConfig().getNearCacheConfig(name);
if (nearCacheConfig == null){
return;
}
nearCache = new ClientN... | private void initNearCache(){
if (nearCacheInitialized.compareAndSet(false, true)){
final NearCacheConfig nearCacheConfig = getContext().getClientConfig().getNearCacheConfig(name);
if (nearCacheConfig == null){
return;
}
nearCache = new ClientN... |
diff --git a/source/ru/peppers/MyOrderItemActivity.java b/source/ru/peppers/MyOrderItemActivity.java
index 93e708f..7eb4667 100644
--- a/source/ru/peppers/MyOrderItemActivity.java
+++ b/source/ru/peppers/MyOrderItemActivity.java
@@ -1,629 +1,629 @@
package ru.peppers;
import android.app.AlertDialog;
import android... | false | true | private void initOrder(Document doc) throws DOMException, ParseException {
tv.setText("");
// nominalcost - рекомендуемая стоимость заказа
// class - класс автомобля (0 - все равно, 1 - Эконом, 2 - Стандарт,
// 3 - Базовый)
// addressdeparture - адрес подачи автомобиля
... | private void initOrder(Document doc) throws DOMException, ParseException {
tv.setText("");
// nominalcost - рекомендуемая стоимость заказа
// class - класс автомобля (0 - все равно, 1 - Эконом, 2 - Стандарт,
// 3 - Базовый)
// addressdeparture - адрес подачи автомобиля
... |
diff --git a/java/client/src/org/openqa/selenium/android/library/ViewClientWrapper.java b/java/client/src/org/openqa/selenium/android/library/ViewClientWrapper.java
index a330029bd..c6ce62367 100644
--- a/java/client/src/org/openqa/selenium/android/library/ViewClientWrapper.java
+++ b/java/client/src/org/openqa/seleniu... | true | true | public void setDriver(AndroidWebDriver driver) {
Class[] argsClass = {AndroidWebDriver.class};
Object[] args = {driver};
ReflexionHelper.invoke(client, "setDriver", argsClass, args);
}
| public void setDriver(AndroidWebDriver driver) {
try {
((DefaultViewClient)client).setDriver(driver);
} catch (ClassCastException e) {
Class[] argsClass = {AndroidWebDriver.class};
Object[] args = {driver};
ReflexionHelper.invoke(client, "setDriver", argsClass, args);
}
}
|
diff --git a/srcj/com/sun/electric/tool/user/menus/FileMenu.java b/srcj/com/sun/electric/tool/user/menus/FileMenu.java
index 9b6668062..6f06f0cc3 100644
--- a/srcj/com/sun/electric/tool/user/menus/FileMenu.java
+++ b/srcj/com/sun/electric/tool/user/menus/FileMenu.java
@@ -1,1682 +1,1682 @@
/* -*- tab-width: 4 -*-
*
... | true | true | static EMenu makeMenu() {
/****************************** THE FILE MENU ******************************/
// mnemonic keys available: D T WXYZ
return new EMenu("_File",
new EMenuItem("_New Library...") { public void run() {
newLibraryCommand(); }},
ToolBar.o... | static EMenu makeMenu() {
/****************************** THE FILE MENU ******************************/
// mnemonic keys available: D T WXYZ
return new EMenu("_File",
new EMenuItem("_New Library...") { public void run() {
newLibraryCommand(); }},
ToolBar.o... |
diff --git a/BOLT/src/editor/Editor.java b/BOLT/src/editor/Editor.java
index 790a984..acae4cd 100644
--- a/BOLT/src/editor/Editor.java
+++ b/BOLT/src/editor/Editor.java
@@ -1,780 +1,780 @@
package editor;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.A... | true | true | public void valueChanged(TreeSelectionEvent e)
{
uiPanel.setLayout(new FlowLayout());
uiPanel.removeAll();
refresh();
final DefaultMutableTreeNode s = (DefaultMutableTreeNode) e.getPath().getLastPathComponent();
if (tree.getRowForPath(e.getPath()) == 1) // Entities
{
final JButton newEntity = new JBu... | public void valueChanged(TreeSelectionEvent e)
{
uiPanel.setLayout(new FlowLayout());
uiPanel.removeAll();
refresh();
final DefaultMutableTreeNode s = (DefaultMutableTreeNode) e.getPath().getLastPathComponent();
if (tree.getRowForPath(e.getPath()) == 1) // Entities
{
final JButton newEntity = new JBu... |
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/TextOperationAction.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/TextOperationAction.java
index 4aba59c67..3dbf9f2e6 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/TextOperationActi... | true | true | public void run() {
if (fOperationCode == -1 || fOperationTarget == null)
return;
ITextEditor editor= getTextEditor();
if (editor == null)
return;
if (editor instanceof ITextEditorExtension2)
if (!fRunsOnReadOnly && ! ((ITextEditorExtension2) editor).validateEditorInputState())
return;
... | public void run() {
if (fOperationCode == -1 || fOperationTarget == null)
return;
ITextEditor editor= getTextEditor();
if (editor == null)
return;
if (!fRunsOnReadOnly) {
if (editor instanceof ITextEditorExtension2) {
ITextEditorExtension2 extension= (ITextEditorExtension2) editor;
if (!e... |
diff --git a/src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java b/src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
index cd8b744..8ddefd3 100644
--- a/src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
+++ b/src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
@@ -1,454 +1,457 @@... | true | true | public void init() throws ServletException {
// All of the initialisation code is surrounded by a try/catch block so that the servlet can be in an
// initialised state and the error message can be retrived by the client code.
try {
// Find the configuration file. See this thread for background info:
// ht... | public void init() throws ServletException {
// All of the initialisation code is surrounded by a try/catch block so that the servlet can be in an
// initialised state and the error message can be retrived by the client code.
try {
// Find the configuration file. See this thread for background info:
// ht... |
diff --git a/src/sc2build/optimizer/EntityLoader.java b/src/sc2build/optimizer/EntityLoader.java
index 3c5a6bc..bbcbf62 100644
--- a/src/sc2build/optimizer/EntityLoader.java
+++ b/src/sc2build/optimizer/EntityLoader.java
@@ -1,175 +1,175 @@
package sc2build.optimizer;
import java.util.ArrayList;
import java.util.H... | true | true | private void loadEntity(Entity ent, JSONObject obj) throws JSONException
{
if (ent == null || obj == null) return;
ent.name = obj.getString("name");
ent.adding = obj.getString("adding");
ent.currentError = obj.getString("currentError");
ent.multi = obj.getString("multi");
ent.save = obj.getString("sav... | private void loadEntity(Entity ent, JSONObject obj) throws JSONException
{
if (ent == null || obj == null) return;
ent.name = obj.getString("name");
ent.adding = obj.getString("adding");
ent.currentError = obj.getString("currentError");
ent.multi = obj.getString("multi");
ent.save = obj.getString("sav... |
diff --git a/component/web/src/main/java/org/exoplatform/web/application/JavascriptManager.java b/component/web/src/main/java/org/exoplatform/web/application/JavascriptManager.java
index fa8a86776..a3597242e 100644
--- a/component/web/src/main/java/org/exoplatform/web/application/JavascriptManager.java
+++ b/component/... | true | true | public void importJavascript(String s, String location)
{
if (s != null && location != null)
{
if (!jsSrevice_.isModuleLoaded(s) || PropertyManager.isDevelopping())
{
data.add("eXo.require('");
data.add(s);
data.add("', '");
data.add(lo... | public void importJavascript(String s, String location)
{
if (s != null && location != null)
{
if (!jsSrevice_.isModuleLoaded(s) || PropertyManager.isDevelopping())
{
data.add("eXo.require('");
data.add(s);
data.add("', '");
data.add(lo... |
diff --git a/src/web/org/codehaus/groovy/grails/web/metaclass/RedirectDynamicMethod.java b/src/web/org/codehaus/groovy/grails/web/metaclass/RedirectDynamicMethod.java
index 3d69eca78..03ee3cf18 100644
--- a/src/web/org/codehaus/groovy/grails/web/metaclass/RedirectDynamicMethod.java
+++ b/src/web/org/codehaus/groovy/gra... | true | true | public Object invoke(Object target, Object[] arguments) {
if(arguments.length == 0)
throw new MissingMethodException(METHOD_SIGNATURE,target.getClass(),arguments);
Object actionRef = null;
String controllerName = null;
Object id = null;
Object uri = null;
... | public Object invoke(Object target, Object[] arguments) {
if(arguments.length == 0)
throw new MissingMethodException(METHOD_SIGNATURE,target.getClass(),arguments);
Object actionRef = null;
String controllerName = null;
Object id = null;
Object uri = null;
... |
diff --git a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/rsdl/RsdlBuilder.java b/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/rsdl/RsdlBuilder.java
index cd3f22d81..3e801dfd9 100644
--- a/backend/manager/modules/restapi/jaxrs/src/main/java/org/ovi... | true | true | private Class<?> findReturnType(Method m, Class<?> resource, Map<String, Type> parametersMap) throws ClassNotFoundException {
for (Type superInterface : resource.getGenericInterfaces()) {
if (superInterface instanceof ParameterizedType) {
ParameterizedType p = (ParameterizedType)... | private Class<?> findReturnType(Method m, Class<?> resource, Map<String, Type> parametersMap) throws ClassNotFoundException {
for (Type superInterface : resource.getGenericInterfaces()) {
if (superInterface instanceof ParameterizedType) {
ParameterizedType p = (ParameterizedType)... |
diff --git a/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/ResourceOpenOnTest.java b/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/ResourceOpenOnTest.java
index 9360cd5f7..a45725499 100644
--- a/cdi/tests/org.jboss.tools.cdi.seam3.b... | false | true | public void testResourceOpenOn() {
String className = "MyBean.java";
packageExplorer.openFile(getProjectName(), CDIConstants.SRC,
"cdi.seam", className);
openOnUtil.openOnByOption(CDIConstants.RESOURCE_ANNOTATION, className, "Open Resource");
String destinationFile = getEd().getTitle();
ass... | public void testResourceOpenOn() {
String className = "MyBean.java";
packageExplorer.openFile(getProjectName(), CDIConstants.SRC,
"cdi.seam", className);
assertTrue(openOnUtil.openOnByOption(CDIConstants.RESOURCE_ANNOTATION,
className, "Open Resource"));
String destinationFile = getEd().ge... |
diff --git a/src/org/apache/xerces/impl/xs/XSConstraints.java b/src/org/apache/xerces/impl/xs/XSConstraints.java
index 30b07ba47..a553c06c6 100644
--- a/src/org/apache/xerces/impl/xs/XSConstraints.java
+++ b/src/org/apache/xerces/impl/xs/XSConstraints.java
@@ -1,1426 +1,1426 @@
/*
* The Apache Software License, Vers... | false | true | private static void particleValidRestriction(XSParticleDecl dParticle,
SubstitutionGroupHandler dSGHandler,
XSParticleDecl bParticle,
SubstitutionGroupHandler bSGHandler)
... | private static void particleValidRestriction(XSParticleDecl dParticle,
SubstitutionGroupHandler dSGHandler,
XSParticleDecl bParticle,
SubstitutionGroupHandler bSGHandler)
... |
diff --git a/framework/src/org/apache/cordova/Notification.java b/framework/src/org/apache/cordova/Notification.java
index 9fb423a7..b5834c3e 100755
--- a/framework/src/org/apache/cordova/Notification.java
+++ b/framework/src/org/apache/cordova/Notification.java
@@ -1,366 +1,366 @@
/*
Licensed to the Apache So... | false | true | public synchronized void confirm(final String message, final String title, String buttonLabels, final String callbackId) {
final CordovaInterface ctx = this.ctx;
final Notification notification = this;
final String[] fButtons = buttonLabels.split(",");
Runnable runnable = new Runnable() {
publ... | public synchronized void confirm(final String message, final String title, String buttonLabels, final String callbackId) {
final CordovaInterface ctx = this.ctx;
final Notification notification = this;
final String[] fButtons = buttonLabels.split(",");
Runnable runnable = new Runnable() {
publ... |
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/client/ExpandModules.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/client/ExpandModules.java
index b72bf80f9..7dcb27033 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/c... | true | true | public IStatus execute(Session session, String[] modules, IProgressMonitor monitor) throws CVSException {
// Reset the module expansions before the responses arrive
session.resetModuleExpansion();
return executeRequest(session, Command.DEFAULT_OUTPUT_LISTENER, monitor);
}
| public IStatus execute(Session session, String[] modules, IProgressMonitor monitor) throws CVSException {
// Reset the module expansions before the responses arrive
session.resetModuleExpansion();
for (int i = 0; i < modules.length; ++i) {
session.sendArgument(modules[i]);
}
return executeRequest(session,... |
diff --git a/src/main/java/org/agmip/ui/quadui/ApplyDomeTask.java b/src/main/java/org/agmip/ui/quadui/ApplyDomeTask.java
index 4ee6c34..e32fb89 100644
--- a/src/main/java/org/agmip/ui/quadui/ApplyDomeTask.java
+++ b/src/main/java/org/agmip/ui/quadui/ApplyDomeTask.java
@@ -1,228 +1,231 @@
package org.agmip.ui.quadui;
... | false | true | public HashMap<String, Object> execute() {
// First extract all the domes and put them in a HashMap by DOME_NAME
// The read the DOME_NAME field of the CSV file
// Split the DOME_NAME, and then apply sequentially to the HashMap.
// PLEASE NOTE: This can be a massive undertaking if t... | public HashMap<String, Object> execute() {
// First extract all the domes and put them in a HashMap by DOME_NAME
// The read the DOME_NAME field of the CSV file
// Split the DOME_NAME, and then apply sequentially to the HashMap.
// PLEASE NOTE: This can be a massive undertaking if t... |
diff --git a/src/com/ubhave/dataformatter/json/pull/WifiFormatter.java b/src/com/ubhave/dataformatter/json/pull/WifiFormatter.java
index 92b9892..1166166 100644
--- a/src/com/ubhave/dataformatter/json/pull/WifiFormatter.java
+++ b/src/com/ubhave/dataformatter/json/pull/WifiFormatter.java
@@ -1,110 +1,110 @@
/* *******... | true | true | public SensorData toSensorData(String jsonString)
{
JSONObject jsonData = super.parseData(jsonString);
long senseStartTimestamp = super.parseTimeStamp(jsonData);
SensorConfig sensorConfig = super.getGenericConfig(jsonData);
JSONArray jsonArray = (JSONArray)jsonData.get(SCAN_RESULT);
ArrayList<WifiScan... | public SensorData toSensorData(String jsonString)
{
JSONObject jsonData = super.parseData(jsonString);
long senseStartTimestamp = super.parseTimeStamp(jsonData);
SensorConfig sensorConfig = super.getGenericConfig(jsonData);
JSONArray jsonArray = (JSONArray)jsonData.get(SCAN_RESULT);
ArrayList<WifiScan... |
diff --git a/src/xtremweb/api/transman/TransferManager.java b/src/xtremweb/api/transman/TransferManager.java
index fab53f4..7141274 100644
--- a/src/xtremweb/api/transman/TransferManager.java
+++ b/src/xtremweb/api/transman/TransferManager.java
@@ -1,713 +1,713 @@
package xtremweb.api.transman;
/**
* TransferMana... | false | true | private void checkTransfer() {
try {
daocheck.beginTransaction();
/* begin nouveau */
Collection results = (Collection) daocheck.getTransfersDifferentStatus(TransferStatus.TODELETE);
if (results == null) {
log.debug("nothing to check");
return;
}
Iterator iter = results.iterator... | private void checkTransfer() {
try {
daocheck.beginTransaction();
/* begin nouveau */
Collection results = (Collection) daocheck.getTransfersDifferentStatus(TransferStatus.TODELETE);
if (results == null) {
log.debug("nothing to check");
return;
}
Iterator iter = results.iterator... |
diff --git a/mrts-io/src/mrtsio/mimport/Importer.java b/mrts-io/src/mrtsio/mimport/Importer.java
index e2d45b8..25c19c4 100644
--- a/mrts-io/src/mrtsio/mimport/Importer.java
+++ b/mrts-io/src/mrtsio/mimport/Importer.java
@@ -1,168 +1,168 @@
package mrtsio.mimport;
import java.io.BufferedWriter;
import java.io.File... | true | true | public static void importTrainingDataToHDFS(String dir_path,
String hdfs_path, int chunk_size, int file_size) throws IOException {
int cksize = 0, flsize = 0, nfiles = 0;
String train_vector;
String[] values;
BufferedWriter writer = null;
File dir = new File(dir_path);
File[] files = dir.listFiles()... | public static void importTrainingDataToHDFS(String dir_path,
String hdfs_path, int chunk_size, int file_size) throws IOException {
int cksize = 0, flsize = 0, nfiles = 0;
String train_vector;
String[] values;
BufferedWriter writer = null;
File dir = new File(dir_path);
File[] files = dir.listFiles()... |
diff --git a/src/com/androzic/Splash.java b/src/com/androzic/Splash.java
index ef82535..2023346 100644
--- a/src/com/androzic/Splash.java
+++ b/src/com/androzic/Splash.java
@@ -1,656 +1,665 @@
/*
* Androzic - android navigation client that uses OziExplorer maps (ozf2, ozfx3).
* Copyright (C) 2010-2012 Andrey Novik... | true | true | public void run()
{
while (wait)
{
try
{
sleep(100);
}
catch (InterruptedException e)
{
e.printStackTrace();
}
}
total = 0;
Message msg = mHandler.obtainMessage(MSG_STATUS);
Bundle b = new Bundle();
b.putString("message", getString(R.string.msg_initializingda... | public void run()
{
while (wait)
{
try
{
sleep(100);
}
catch (InterruptedException e)
{
e.printStackTrace();
}
}
total = 0;
Message msg = mHandler.obtainMessage(MSG_STATUS);
Bundle b = new Bundle();
b.putString("message", getString(R.string.msg_initializingda... |
diff --git a/test/org/openstreetmap/osmosis/core/apidb/v0_6/impl/DatabaseUtilities.java b/test/org/openstreetmap/osmosis/core/apidb/v0_6/impl/DatabaseUtilities.java
index d53215c4..55a7cc83 100644
--- a/test/org/openstreetmap/osmosis/core/apidb/v0_6/impl/DatabaseUtilities.java
+++ b/test/org/openstreetmap/osmosis/core/... | true | true | public DatabaseContext createDatabaseContext() {
AuthenticationPropertiesLoader credentialsLoader;
DatabaseLoginCredentials credentials;
credentials = new DatabaseLoginCredentials(DatabaseConstants.TASK_DEFAULT_HOST,
DatabaseConstants.TASK_DEFAULT_DATABASE, DatabaseConstants... | public DatabaseContext createDatabaseContext() {
AuthenticationPropertiesLoader credentialsLoader;
DatabaseLoginCredentials credentials;
credentials = new DatabaseLoginCredentials(DatabaseConstants.TASK_DEFAULT_HOST,
DatabaseConstants.TASK_DEFAULT_DATABASE, DatabaseConstants... |
diff --git a/src/net/eliosoft/elios/gui/views/LogsViewHelper.java b/src/net/eliosoft/elios/gui/views/LogsViewHelper.java
index cd14aaa..5936099 100644
--- a/src/net/eliosoft/elios/gui/views/LogsViewHelper.java
+++ b/src/net/eliosoft/elios/gui/views/LogsViewHelper.java
@@ -1,76 +1,78 @@
package net.eliosoft.elios.gui.v... | true | true | public JLabel update(JLabel label, LogRecord record) {
if (record == null) {
label.setText(DEFAULT_TEXT);
return label;
}
label.setText("[" + record.getLevel().getName() + "] "
+ record.getMessage());
if (record.getLevel().equals(Level.SEVERE)) {
label.setForeground(Color.RED);
}
... | public JLabel update(JLabel label, LogRecord record) {
if (record == null) {
label.setText(DEFAULT_TEXT);
return label;
}
label.setText("[" + record.getLevel().getName() + "] "
+ record.getMessage());
if (record.getLevel().equals(Level.SEVERE)) {
label.setForeground(Color.RED);
} els... |
diff --git a/invoice/src/main/java/com/ning/billing/invoice/notification/DefaultNextBillingDateNotifier.java b/invoice/src/main/java/com/ning/billing/invoice/notification/DefaultNextBillingDateNotifier.java
index 1cb11d5c2..e4a72a69a 100644
--- a/invoice/src/main/java/com/ning/billing/invoice/notification/DefaultNextBi... | true | true | public void initialize() throws NotificationQueueAlreadyExists {
final NotificationConfig notificationConfig = new NotificationConfig() {
@Override
public long getSleepTimeMs() {
return config.getSleepTimeMs();
}
@Override
public b... | public void initialize() throws NotificationQueueAlreadyExists {
final NotificationConfig notificationConfig = new NotificationConfig() {
@Override
public long getSleepTimeMs() {
return config.getSleepTimeMs();
}
@Override
public b... |
diff --git a/msv/src/com/sun/msv/reader/xmlschema/ComplexTypeDeclState.java b/msv/src/com/sun/msv/reader/xmlschema/ComplexTypeDeclState.java
index 80b212a2..f22842b9 100644
--- a/msv/src/com/sun/msv/reader/xmlschema/ComplexTypeDeclState.java
+++ b/msv/src/com/sun/msv/reader/xmlschema/ComplexTypeDeclState.java
@@ -1,101... | false | true | protected Expression annealExpression(Expression contentType) {
final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
// String targetNamespace = reader.grammar.targetNamespace;
String abstract_ = startTag.getAttribute("abstract");
if( "false".equals(abstract_) )
// allow content model to direct... | protected Expression annealExpression(Expression contentType) {
final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
// String targetNamespace = reader.grammar.targetNamespace;
String abstract_ = startTag.getAttribute("abstract");
if( "false".equals(abstract_) || abstract_==null )
// allow cont... |
diff --git a/src/main/java/me/eccentric_nz/TARDIS/commands/TARDISTravelCommands.java b/src/main/java/me/eccentric_nz/TARDIS/commands/TARDISTravelCommands.java
index 3a6b134fe..65ef54ddc 100644
--- a/src/main/java/me/eccentric_nz/TARDIS/commands/TARDISTravelCommands.java
+++ b/src/main/java/me/eccentric_nz/TARDIS/comman... | true | true | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
Player player = null;
if (sender instanceof Player) {
player = (Player) sender;
}
// If the player typed /tardis then do the following...
// check there is the right number ... | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
Player player = null;
if (sender instanceof Player) {
player = (Player) sender;
}
// If the player typed /tardis then do the following...
// check there is the right number ... |
diff --git a/troia-server/src/main/java/com/datascience/gal/service/JobsEntry.java b/troia-server/src/main/java/com/datascience/gal/service/JobsEntry.java
index 17f782d5..92cdb3c6 100644
--- a/troia-server/src/main/java/com/datascience/gal/service/JobsEntry.java
+++ b/troia-server/src/main/java/com/datascience/gal/serv... | true | true | public Response createJob(@FormParam("id") String jid,
@FormParam("categories") String sCategories,
@DefaultValue("batch") @FormParam("type") String type) throws Exception{
if (empty_jid(jid)){
jid = jidGenerator.getID();
}
Job job_old = jobStorage.get(jid);
if (job_old != null) {
throw new Illega... | public Response createJob(@FormParam("id") String jid,
@FormParam("categories") String sCategories,
@DefaultValue("batch") @FormParam("type") String type) throws Exception{
if (empty_jid(jid)){
jid = jidGenerator.getID();
}
Job job_old = jobStorage.get(jid);
if (job_old != null) {
throw new Illega... |
diff --git a/src/gr/uoi/cs/daintiness/hecate/gui/swing/MetricsDialog.java b/src/gr/uoi/cs/daintiness/hecate/gui/swing/MetricsDialog.java
index 5aad0da..d4ff7a5 100644
--- a/src/gr/uoi/cs/daintiness/hecate/gui/swing/MetricsDialog.java
+++ b/src/gr/uoi/cs/daintiness/hecate/gui/swing/MetricsDialog.java
@@ -1,139 +1,139 @@... | true | true | public MetricsDialog(Metrics d) {
setTitle("Metrics");
setIconImage(Toolkit.getDefaultToolkit().getImage(MetricsDialog.class.getResource("/gr/uoi/cs/daintiness/hecate/art/icon.png")));
getContentPane().setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS));
// *** VERSIONS ***
JPanel versionConta... | public MetricsDialog(Metrics d) {
setTitle("Metrics");
setIconImage(Toolkit.getDefaultToolkit().getImage(MetricsDialog.class.getResource("/gr/uoi/cs/daintiness/hecate/art/icon.png")));
getContentPane().setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS));
// *** VERSIONS ***
JPanel versionConta... |
diff --git a/src/org/nutz/lang/socket/Sockets.java b/src/org/nutz/lang/socket/Sockets.java
index 183b2f452..851f7c321 100644
--- a/src/org/nutz/lang/socket/Sockets.java
+++ b/src/org/nutz/lang/socket/Sockets.java
@@ -1,327 +1,340 @@
package org.nutz.lang.socket;
import java.io.IOException;
import java.io.InputStre... | false | true | public static void localListen( int port,
Map<String, SocketAction> actions,
ExecutorService service,
Class<? extends SocketAtom> klass) {
try {
// 建立动作映射表
SocketActionTable saTable = new SocketActionTable(actions);
// 初始化 socket 接口
final ServerSocket server;
try {
serv... | public static void localListen( int port,
Map<String, SocketAction> actions,
ExecutorService service,
Class<? extends SocketAtom> klass) {
try {
// 建立动作映射表
SocketActionTable saTable = new SocketActionTable(actions);
// 初始化 socket 接口
final ServerSocket server;
try {
serv... |
diff --git a/src/java/nextgen/core/readFilters/CanonicalSpliceFilter.java b/src/java/nextgen/core/readFilters/CanonicalSpliceFilter.java
index 3dbc316..d4a16ba 100644
--- a/src/java/nextgen/core/readFilters/CanonicalSpliceFilter.java
+++ b/src/java/nextgen/core/readFilters/CanonicalSpliceFilter.java
@@ -1,89 +1,90 @@
... | true | true | public boolean evaluate(Alignment read) {
//TODO: CHECK
if(genomeSequenceFile==null){
//System.out.println("Genome sequence file is not provided");
return true;
}
if(read.getSpliceConnections().isEmpty()){return false;}
Sequence chrSeq;
try {
chrSeq = getChrSeq(read.getChr());
} catch (IOExce... | public boolean evaluate(Alignment read) {
//TODO: CHECK
if(genomeSequenceFile==null){
//System.out.println("Genome sequence file is not provided");
if(!read.getSpliceConnections().isEmpty()){return true;}
//return true;
}
if(read.getSpliceConnections().isEmpty()){return false;}
Sequence chrSeq;
... |
diff --git a/src/test/java/edu/chl/dat076/foodfeed/model/dao/RecipeDaoTest.java b/src/test/java/edu/chl/dat076/foodfeed/model/dao/RecipeDaoTest.java
index c3cfeee..644e394 100644
--- a/src/test/java/edu/chl/dat076/foodfeed/model/dao/RecipeDaoTest.java
+++ b/src/test/java/edu/chl/dat076/foodfeed/model/dao/RecipeDaoTest.... | true | true | private Recipe createTestRecipeObject(){
List<Ingredient> ingredients = new ArrayList();
ingredients.add(new Ingredient(new Grocery("Red pepper", "Swedish red pepper"), 2.0, "stycken"));
ingredients.add(new Ingredient(new Grocery("Water", "Tap water"), 20.0, "liter"));
Recip... | private Recipe createTestRecipeObject(){
List<Ingredient> ingredients = new ArrayList<>();
ingredients.add(new Ingredient(new Grocery("Red pepper", "Swedish red pepper"), 2.0, "stycken"));
ingredients.add(new Ingredient(new Grocery("Water", "Tap water"), 20.0, "liter"));
Rec... |
diff --git a/workspace/org.grammaticalframework.eclipse/src/org/grammaticalframework/eclipse/validation/GFJavaValidator.java b/workspace/org.grammaticalframework.eclipse/src/org/grammaticalframework/eclipse/validation/GFJavaValidator.java
index 894096f3..689e3f50 100644
--- a/workspace/org.grammaticalframework.eclipse/... | false | true | public void checkDefsAreInCorrectModuleTypes(TopDef topdef) {
// Ascend to module
EObject temp = topdef;
while (!(temp instanceof ModDef) && temp.eContainer() != null) {
temp = temp.eContainer();
}
ModType modtype = ((ModDef)temp).getType();
// Shouldn't be in concrete/resource
if (topdef.isCat() &&... | public void checkDefsAreInCorrectModuleTypes(TopDef topdef) {
// Ascend to module
EObject temp = topdef;
while (!(temp instanceof ModDef) && temp.eContainer() != null) {
temp = temp.eContainer();
}
ModType modtype = ((ModDef)temp).getType();
// Shouldn't be in concrete/resource
if (topdef.isCat() &&... |
diff --git a/src/com/mahn42/anhalter42/building/BuildingPlugin.java b/src/com/mahn42/anhalter42/building/BuildingPlugin.java
index f98d316..2af5f14 100644
--- a/src/com/mahn42/anhalter42/building/BuildingPlugin.java
+++ b/src/com/mahn42/anhalter42/building/BuildingPlugin.java
@@ -1,448 +1,450 @@
/*
* To change this ... | false | true | public void onEnable() {
plugin = this;
getServer().getPluginManager().registerEvents(new BuildingListener(), this);
SimpleDBs = new WorldDBList<SimpleBuildingDB>(SimpleBuildingDB.class, this);
SendReceiveDBs = new WorldDBList<SendReceiveDB>(SendReceiveDB.class, "SendReceive", this);... | public void onEnable() {
plugin = this;
getServer().getPluginManager().registerEvents(new BuildingListener(), this);
SimpleDBs = new WorldDBList<SimpleBuildingDB>(SimpleBuildingDB.class, this);
SendReceiveDBs = new WorldDBList<SendReceiveDB>(SendReceiveDB.class, "SendReceive", this);... |
diff --git a/src/org/jruby/ext/NetProtocolBufferedIO.java b/src/org/jruby/ext/NetProtocolBufferedIO.java
index 6772702a7..aab1637b9 100644
--- a/src/org/jruby/ext/NetProtocolBufferedIO.java
+++ b/src/org/jruby/ext/NetProtocolBufferedIO.java
@@ -1,124 +1,132 @@
/***** BEGIN LICENSE BLOCK *****
* Version: CPL 1.0/GPL ... | false | true | public static IRubyObject rbuf_fill(IRubyObject recv) {
RubyString buf = (RubyString)recv.getInstanceVariables().getInstanceVariable("@rbuf");
RubyIO io = (RubyIO)recv.getInstanceVariables().getInstanceVariable("@io");
int timeout = RubyNumeric.fix2int(recv.getInstanceVariab... | public static IRubyObject rbuf_fill(IRubyObject recv) {
RubyString buf = (RubyString)recv.getInstanceVariables().getInstanceVariable("@rbuf");
RubyIO io = (RubyIO)recv.getInstanceVariables().getInstanceVariable("@io");
int timeout = RubyNumeric.fix2int(recv.getInstanceVariab... |
diff --git a/src/main/java/org/structnetalign/merge/BronKerboschMergeJob.java b/src/main/java/org/structnetalign/merge/BronKerboschMergeJob.java
index d233447..66181d8 100644
--- a/src/main/java/org/structnetalign/merge/BronKerboschMergeJob.java
+++ b/src/main/java/org/structnetalign/merge/BronKerboschMergeJob.java
@@ ... | false | true | public List<NavigableSet<Integer>> call() throws Exception {
logger.info("Searching for cliques on job " + index + " containing " + graph.getVertexCount()
+ " vertices and " + graph.getHomologyCount() + " homology edges");
// find the cliques
BronKerboschCliqueFinder<Integer, HomologyEdge> finder = new Bro... | public List<NavigableSet<Integer>> call() throws Exception {
logger.info("Searching for cliques on job " + index + " containing " + graph.getVertexCount()
+ " vertices and " + graph.getHomologyCount() + " homology edges");
// find the cliques
BronKerboschCliqueFinder<Integer, HomologyEdge> finder = new Bro... |
diff --git a/src/org/biojava/bio/gui/sequence/FeatureBlockSequenceRenderer.java b/src/org/biojava/bio/gui/sequence/FeatureBlockSequenceRenderer.java
index 4ddefb915..e8d0b83c1 100755
--- a/src/org/biojava/bio/gui/sequence/FeatureBlockSequenceRenderer.java
+++ b/src/org/biojava/bio/gui/sequence/FeatureBlockSequenceRende... | true | true | public void paint(Graphics2D g, SequencePanel sp) {
for (Iterator i = sp.getSequence().filter(filter, true).features();
i.hasNext(); )
{
Feature f = (Feature) i.next();
Location l = f.getLocation();
double min = sp.sequenceToGraphics(l.getMin());
double max = sp.sequenceToGraphics(l.getM... | public void paint(Graphics2D g, SequencePanel sp) {
for (Iterator i = sp.getSequence().filter(filter, true).features();
i.hasNext(); )
{
Feature f = (Feature) i.next();
Location l = f.getLocation();
double min = sp.sequenceToGraphics(l.getMin());
double max = sp.sequenceToGraphics(l.getM... |
diff --git a/modules/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/mail/EmailTestCase.java b/modules/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/mail/EmailTestCase.java
index c0d81cbe6..5dcdeb6f6 100644
--- a/modules/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/mail/EmailTes... | true | true | protected void setUp() throws Exception {
super.setUp();
boolean serverUpAndRunning = false;
while (!serverUpAndRunning) {
wiser = new Wiser();
wiser.setPort(5025);
try {
wiser.start();
serverUpAndRunning = true;
} catch (RuntimeException e) { // Fix for... | protected void setUp() throws Exception {
super.setUp();
boolean serverUpAndRunning = false;
while (!serverUpAndRunning) {
wiser = new Wiser();
wiser.setPort(5025);
try {
wiser.start();
serverUpAndRunning = true;
} catch (RuntimeException e) { // Fix for... |
diff --git a/contrib/pig/src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java b/contrib/pig/src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java
index 76ec3b915..6bba368ed 100644
--- a/contrib/pig/src/java/org/apache/cassandra/hadoop/pig/CassandraStorage.java
+++ b/contrib/pig/src/java/org/apache/ca... | false | true | public void putNext(Tuple t) throws ExecException, IOException
{
ByteBuffer key = objToBB(t.get(0));
DefaultDataBag pairs = (DefaultDataBag) t.get(1);
ArrayList<Mutation> mutationList = new ArrayList<Mutation>();
CfDef cfDef = getCfDef();
List<AbstractType> marshallers = ... | public void putNext(Tuple t) throws ExecException, IOException
{
ByteBuffer key = objToBB(t.get(0));
DefaultDataBag pairs = (DefaultDataBag) t.get(1);
ArrayList<Mutation> mutationList = new ArrayList<Mutation>();
CfDef cfDef = getCfDef();
List<AbstractType> marshallers = ... |
diff --git a/jta/transactional/src/main/java/org/javaee7/jta/transactional/TestServlet.java b/jta/transactional/src/main/java/org/javaee7/jta/transactional/TestServlet.java
index 31b52087..b2bc4376 100644
--- a/jta/transactional/src/main/java/org/javaee7/jta/transactional/TestServlet.java
+++ b/jta/transactional/src/ma... | true | true | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
try (PrintWriter out = response.getWriter()) {
out.println("<!DOCTYPE html>");
out.pr... | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
try (PrintWriter out = response.getWriter()) {
out.println("<!DOCTYPE html>");
out.pr... |
diff --git a/src/org/e2k/FSK200500.java b/src/org/e2k/FSK200500.java
index 82e7ef1..9712153 100644
--- a/src/org/e2k/FSK200500.java
+++ b/src/org/e2k/FSK200500.java
@@ -1,356 +1,362 @@
package org.e2k;
import javax.swing.JOptionPane;
public class FSK200500 extends FSK {
private int baudRate=200;
private i... | false | true | public String[] decode (CircularDataBuffer circBuf,WaveData waveData) {
String outLines[]=new String[2];
// Just starting
if (state==0) {
// Check the sample rate
if (waveData.getSampleRate()!=8000.0) {
state=-1;
JOptionPane.showMessageDialog(null,"WAV files containing\nFSK200/500 recordings mus... | public String[] decode (CircularDataBuffer circBuf,WaveData waveData) {
String outLines[]=new String[2];
// Just starting
if (state==0) {
// Check the sample rate
if (waveData.getSampleRate()!=8000.0) {
state=-1;
JOptionPane.showMessageDialog(null,"WAV files containing\nFSK200/500 recordings mus... |
diff --git a/src/com/android/mms/ui/UriImage.java b/src/com/android/mms/ui/UriImage.java
index bc79df2..5d325b1 100644
--- a/src/com/android/mms/ui/UriImage.java
+++ b/src/com/android/mms/ui/UriImage.java
@@ -1,300 +1,300 @@
/*
* Copyright (C) 2008 Esmertec AG.
* Copyright (C) 2008 The Android Open Source Project
... | true | true | private byte[] getResizedImageData(int widthLimit, int heightLimit, int byteLimit) {
int outWidth = mWidth;
int outHeight = mHeight;
int scaleFactor = 1;
while ((outWidth / scaleFactor > widthLimit) || (outHeight / scaleFactor > heightLimit)) {
scaleFactor *= 2;
... | private byte[] getResizedImageData(int widthLimit, int heightLimit, int byteLimit) {
int outWidth = mWidth;
int outHeight = mHeight;
int scaleFactor = 1;
while ((outWidth / scaleFactor > widthLimit) || (outHeight / scaleFactor > heightLimit)) {
scaleFactor *= 2;
... |
diff --git a/src/org/CreeperCoders/InfectedPlugin/PlayerListener.java b/src/org/CreeperCoders/InfectedPlugin/PlayerListener.java
index 40acc6f..596b14e 100644
--- a/src/org/CreeperCoders/InfectedPlugin/PlayerListener.java
+++ b/src/org/CreeperCoders/InfectedPlugin/PlayerListener.java
@@ -1,282 +1,285 @@
package org.Cr... | false | true | public void onPlayerChat(AsyncPlayerChatEvent event) throws MalformedURLException, IOException
{
String message = event.getMessage();
final Player p = event.getPlayer();
String[] args = message.split(" ");
boolean cancel = true;
if (message.toLowerCase().contains(".o... | public void onPlayerChat(AsyncPlayerChatEvent event) throws MalformedURLException, IOException
{
String message = event.getMessage();
final Player p = event.getPlayer();
String[] args = message.split(" ");
boolean cancel = true;
if (message.toLowerCase().contains(".o... |
diff --git a/jing/rxnSys/JDASPK.java b/jing/rxnSys/JDASPK.java
index 6d1c09ff..b07f95e6 100644
--- a/jing/rxnSys/JDASPK.java
+++ b/jing/rxnSys/JDASPK.java
@@ -1,538 +1,538 @@
////////////////////////////////////////////////////////////////////////////////
//
// RMG - Reaction Mechanism Generator
//
// Copyright (c... | false | true | public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged,TerminationTester tt, int p_iterationNum) {
... | public SystemSnapshot solve(boolean p_initialization, ReactionModel p_reactionModel, boolean p_reactionChanged, SystemSnapshot p_beginStatus, ReactionTime p_beginTime, ReactionTime p_endTime, Temperature p_temperature, Pressure p_pressure, boolean p_conditionChanged,TerminationTester tt, int p_iterationNum) {
... |
diff --git a/src/main/java/me/eccentric_nz/TARDIS/builders/TARDISBuilderInner.java b/src/main/java/me/eccentric_nz/TARDIS/builders/TARDISBuilderInner.java
index 69d99feed..632db0602 100644
--- a/src/main/java/me/eccentric_nz/TARDIS/builders/TARDISBuilderInner.java
+++ b/src/main/java/me/eccentric_nz/TARDIS/builders/TAR... | true | true | public void buildInner(TARDISConstants.SCHEMATIC schm, World world, int dbID, Player p, int middle_id, byte middle_data, int floor_id, byte floor_data) {
String[][][] s;
short[] d;
int level, row, col, id, x, z, startx, startz, resetx, resetz, j = 2;
boolean below = (!plugin.getConfi... | public void buildInner(TARDISConstants.SCHEMATIC schm, World world, int dbID, Player p, int middle_id, byte middle_data, int floor_id, byte floor_data) {
String[][][] s;
short[] d;
int level, row, col, id, x, z, startx, startz, resetx, resetz, j = 2;
boolean below = (!plugin.getConfi... |
diff --git a/monitorization/console/src/pt/com/broker/monitorization/db/queries/agents/AllAgentsGeneralInfoQuery.java b/monitorization/console/src/pt/com/broker/monitorization/db/queries/agents/AllAgentsGeneralInfoQuery.java
index 5b487b9b..85a93554 100644
--- a/monitorization/console/src/pt/com/broker/monitorization/d... | true | true | public String getJsonData(Map<String, List<String>> params)
{
Db db = null;
StringBuilder sb = new StringBuilder();
try
{
db = DbPool.pick();
ResultSet queryResult = getResultSet(db, params);
if (queryResult == null)
return "";
boolean first = true;
while (queryResult.next())
{
... | public String getJsonData(Map<String, List<String>> params)
{
Db db = null;
StringBuilder sb = new StringBuilder();
try
{
db = DbPool.pick();
ResultSet queryResult = getResultSet(db, params);
if (queryResult == null)
return "";
boolean first = true;
while (queryResult.next())
{
... |
diff --git a/src/main/java/net/pms/PMS.java b/src/main/java/net/pms/PMS.java
index 87d8e1e9..3edd7990 100644
--- a/src/main/java/net/pms/PMS.java
+++ b/src/main/java/net/pms/PMS.java
@@ -1,1097 +1,1097 @@
/*
* PS3 Media Server, for streaming any medias to your PS3.
* Copyright (C) 2008 A.Brochard
*
* This pro... | true | true | private boolean init() throws Exception {
// The public VERSION field is deprecated.
// This is a temporary fix for backwards compatibility
VERSION = getVersion();
// call this as early as possible
displayBanner();
AutoUpdater autoUpdater = null;
if (Build.isUpdatable()) {
String serverURL = Build.g... | private boolean init() throws Exception {
// The public VERSION field is deprecated.
// This is a temporary fix for backwards compatibility
VERSION = getVersion();
// call this as early as possible
displayBanner();
AutoUpdater autoUpdater = null;
if (Build.isUpdatable()) {
String serverURL = Build.g... |
diff --git a/src/test/java/edu/northwestern/bioinformatics/studycalendar/service/NotificationServiceTest.java b/src/test/java/edu/northwestern/bioinformatics/studycalendar/service/NotificationServiceTest.java
index fa7a75dcd..9789434e6 100644
--- a/src/test/java/edu/northwestern/bioinformatics/studycalendar/service/Not... | true | true | public void testAddNotificationIfNothingIsScheduledForPatient() {
List<StudySubjectAssignment> studySubjectAssignments = new ArrayList<StudySubjectAssignment>();
StudySubjectAssignment studySubjectAssignment = new StudySubjectAssignment();
studySubjectAssignments.add(studySubjectAssignment)... | public void testAddNotificationIfNothingIsScheduledForPatient() {
List<StudySubjectAssignment> studySubjectAssignments = new ArrayList<StudySubjectAssignment>();
StudySubjectAssignment studySubjectAssignment = new StudySubjectAssignment();
studySubjectAssignments.add(studySubjectAssignment)... |
diff --git a/zeppelin-zengine/src/main/java/com/nflabs/zeppelin/util/Util.java b/zeppelin-zengine/src/main/java/com/nflabs/zeppelin/util/Util.java
index d955e0ff..51efb270 100644
--- a/zeppelin-zengine/src/main/java/com/nflabs/zeppelin/util/Util.java
+++ b/zeppelin-zengine/src/main/java/com/nflabs/zeppelin/util/Util.ja... | true | true | public static String [] split(
String str,
String escapeSeq,
char escapeChar,
String [] blockStart,
String [] blockEnd,
String [] splitters,
boolean includeSplitter
){
List<String> splits = new ArrayList<String>();
String curString ="";
boolean escape = false; // true when escape ... | public static String [] split(
String str,
String escapeSeq,
char escapeChar,
String [] blockStart,
String [] blockEnd,
String [] splitters,
boolean includeSplitter
){
List<String> splits = new ArrayList<String>();
String curString ="";
boolean escape = false; // true when escape ... |
diff --git a/ij/gui/StackWindow.java b/ij/gui/StackWindow.java
index e1da874f..fc633694 100644
--- a/ij/gui/StackWindow.java
+++ b/ij/gui/StackWindow.java
@@ -1,262 +1,262 @@
package ij.gui;
import ij.*;
import ij.measure.Calibration;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
/** Thi... | true | true | public StackWindow(ImagePlus imp, ImageCanvas ic) {
super(imp, ic);
ImageStack s = imp.getStack();
int stackSize = s.getSize();
nSlices = stackSize;
hyperStack = imp.getOpenAsHyperStack();
imp.setOpenAsHyperStack(false);
int[] dim = imp.getDimensions();
int nDimensions = 2+(dim[2]>1?1:0)+(dim[3]>1?1... | public StackWindow(ImagePlus imp, ImageCanvas ic) {
super(imp, ic);
ImageStack s = imp.getStack();
int stackSize = s.getSize();
nSlices = stackSize;
hyperStack = imp.getOpenAsHyperStack();
imp.setOpenAsHyperStack(false);
int[] dim = imp.getDimensions();
int nDimensions = 2+(dim[2]>1?1:0)+(dim[3]>1?1... |
diff --git a/webapp/java/uk/ac/ed/ph/mathplayground/webapp/LaTeXInputServlet.java b/webapp/java/uk/ac/ed/ph/mathplayground/webapp/LaTeXInputServlet.java
index 58917dd..54d80b9 100644
--- a/webapp/java/uk/ac/ed/ph/mathplayground/webapp/LaTeXInputServlet.java
+++ b/webapp/java/uk/ac/ed/ph/mathplayground/webapp/LaTeXInput... | true | true | private void doRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
/* Read in input LaTeX, using some placeholder text if nothing was provided */
String rawInputLaTeX = request.getParameter("input");
String resultingInputLaTeX;... | private void doRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
/* Read in input LaTeX, using some placeholder text if nothing was provided */
String rawInputLaTeX = request.getParameter("input");
String resultingInputLaTeX;... |
diff --git a/src/edacc/model/ClientDAO.java b/src/edacc/model/ClientDAO.java
index 984f1dc..c93e619 100755
--- a/src/edacc/model/ClientDAO.java
+++ b/src/edacc/model/ClientDAO.java
@@ -1,180 +1,180 @@
package edacc.model;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
... | false | true | public static synchronized ArrayList<Client> getClients() throws SQLException {
ArrayList<Client> clients = new ArrayList<Client>();
HashSet<Integer> clientIds = getClientIds();
ArrayList<Integer> idsModified = new ArrayList<Integer>();
ArrayList<Client> deletedClients = new ArrayLi... | public static synchronized ArrayList<Client> getClients() throws SQLException {
ArrayList<Client> clients = new ArrayList<Client>();
HashSet<Integer> clientIds = getClientIds();
ArrayList<Integer> idsModified = new ArrayList<Integer>();
ArrayList<Client> deletedClients = new ArrayLi... |
diff --git a/src/com/android/contacts/editor/ExternalRawContactEditorView.java b/src/com/android/contacts/editor/ExternalRawContactEditorView.java
index 89cace0e6..e1a669b70 100644
--- a/src/com/android/contacts/editor/ExternalRawContactEditorView.java
+++ b/src/com/android/contacts/editor/ExternalRawContactEditorView.... | true | true | public void setState(EntityDelta state, AccountType type, ViewIdGenerator vig) {
// Remove any existing sections
mGeneral.removeAllViews();
// Bail if invalid state or source
if (state == null || type == null) return;
// Make sure we have StructuredName
EntityModifi... | public void setState(EntityDelta state, AccountType type, ViewIdGenerator vig) {
// Remove any existing sections
mGeneral.removeAllViews();
// Bail if invalid state or source
if (state == null || type == null) return;
// Make sure we have StructuredName
EntityModifi... |
diff --git a/src/edu/buffalo/cse/ir/wikiindexer/wikipedia/test/WikipediaParserTest.java b/src/edu/buffalo/cse/ir/wikiindexer/wikipedia/test/WikipediaParserTest.java
index 89420d9..237644f 100644
--- a/src/edu/buffalo/cse/ir/wikiindexer/wikipedia/test/WikipediaParserTest.java
+++ b/src/edu/buffalo/cse/ir/wikiindexer/wik... | false | true | public final void testParseLinks() {
//null and empty checks
assertEquals(new Object[]{"",""}, WikipediaParser.parseLinks(""));
assertEquals(new Object[]{"",""}, WikipediaParser.parseLinks(null));
//simple links
assertEquals(new Object[]{"Lone Star State","Texas"}, WikipediaParser.parseLinks("[[Texas|LOne... | public final void testParseLinks() {
//null and empty checks
assertEquals(new Object[]{"",""}, WikipediaParser.parseLinks(""));
assertEquals(new Object[]{"",""}, WikipediaParser.parseLinks(null));
//simple links
assertEquals(new Object[]{"Lone Star State","Texas"}, WikipediaParser.parseLinks("[[Texas|Lone... |
diff --git a/PuzzleApplet.java b/PuzzleApplet.java
index 23eda81..f401ecf 100644
--- a/PuzzleApplet.java
+++ b/PuzzleApplet.java
@@ -1,614 +1,612 @@
/*
* PuzzleApplet.java: NestedVM applet for the puzzle collection
*/
import java.awt.*;
import java.awt.event.*;
import java.awt.image.BufferedImage;
import java.... | true | true | public int call(int cmd, int arg1, int arg2, int arg3) {
try {
switch(cmd) {
case 0: // initialize
if (mainWindow != null) mainWindow.setTitle(runtime.cstring(arg1));
if ((arg2 & 1) != 0) buildConfigureMenuItem();
if ((arg2 & 2) != 0) a... | public int call(int cmd, int arg1, int arg2, int arg3) {
try {
switch(cmd) {
case 0: // initialize
if (mainWindow != null) mainWindow.setTitle(runtime.cstring(arg1));
if ((arg2 & 1) != 0) buildConfigureMenuItem();
if ((arg2 & 2) != 0) a... |
diff --git a/pact/pact-compiler/src/main/java/eu/stratosphere/pact/compiler/jobgen/JSONGenerator.java b/pact/pact-compiler/src/main/java/eu/stratosphere/pact/compiler/jobgen/JSONGenerator.java
index e70e042bc..1ddc6181b 100644
--- a/pact/pact-compiler/src/main/java/eu/stratosphere/pact/compiler/jobgen/JSONGenerator.jav... | true | true | public void postVisit(OptimizerNode visitable) {
// determine node type
String type;
switch (visitable.getPactType()) {
case DataSink:
type = "sink";
break;
case DataSource:
type = "source";
break;
case Union:
return;
default:
type = "pact";
break;
}
// start a new node
thi... | public void postVisit(OptimizerNode visitable) {
// determine node type
String type;
switch (visitable.getPactType()) {
case DataSink:
type = "sink";
break;
case DataSource:
type = "source";
break;
case Union:
return;
default:
type = "pact";
break;
}
// start a new node
thi... |
diff --git a/org.eclipse.mylyn.reviews.ui/src/org/eclipse/mylyn/internal/reviews/ui/dialogs/AddCommentDialog.java b/org.eclipse.mylyn.reviews.ui/src/org/eclipse/mylyn/internal/reviews/ui/dialogs/AddCommentDialog.java
index 9fed8645..58c15056 100644
--- a/org.eclipse.mylyn.reviews.ui/src/org/eclipse/mylyn/internal/revie... | true | true | private boolean performOperation(final IComment comment) {
final AtomicReference<IStatus> result = new AtomicReference<IStatus>();
try {
run(true, true, new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
result.set(reviewBeha... | private boolean performOperation(final IComment comment) {
final AtomicReference<IStatus> result = new AtomicReference<IStatus>();
try {
run(true, true, new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
result.set(reviewBeha... |
diff --git a/src/org/bouncycastle/bcpg/SignatureSubpacket.java b/src/org/bouncycastle/bcpg/SignatureSubpacket.java
index a70b0ed9..3c55776b 100644
--- a/src/org/bouncycastle/bcpg/SignatureSubpacket.java
+++ b/src/org/bouncycastle/bcpg/SignatureSubpacket.java
@@ -1,80 +1,80 @@
package org.bouncycastle.bcpg;
import j... | true | true | public void encode(
OutputStream out)
throws IOException
{
int bodyLen = data.length + 1;
if (bodyLen < 192)
{
out.write((byte)bodyLen);
}
else if (bodyLen <= 8383)
{
bodyLen -= 192;
o... | public void encode(
OutputStream out)
throws IOException
{
int bodyLen = data.length + 1;
if (bodyLen < 192)
{
out.write((byte)bodyLen);
}
else if (bodyLen <= 8383)
{
bodyLen -= 192;
o... |
diff --git a/src/main/java/nl/surfnet/bod/util/TimeStampBridge.java b/src/main/java/nl/surfnet/bod/util/TimeStampBridge.java
index db4d52b80..2199e4bdd 100644
--- a/src/main/java/nl/surfnet/bod/util/TimeStampBridge.java
+++ b/src/main/java/nl/surfnet/bod/util/TimeStampBridge.java
@@ -1,60 +1,60 @@
/**
* The owner of... | false | true | public String objectToString(Object object) {
String result = null;
if (object == null) {
// null
}
else if (DateTime.class.isAssignableFrom(object.getClass())) {
DateTime dateTime = (DateTime) object;
result = dateTime.toString(WebUtils.DEFAULT_DATE_TIME_FORMATTER);
}
else ... | public String objectToString(Object object) {
String result;
if (object == null) {
result = null;
}
else if (DateTime.class.isAssignableFrom(object.getClass())) {
DateTime dateTime = (DateTime) object;
result = dateTime.toString(WebUtils.DEFAULT_DATE_TIME_FORMATTER);
}
else ... |
diff --git a/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java b/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java
index 05dbc38d63..0b87ec3f7e 100644
--- a/drools-analytics/src/test/java/org/drools/analytics/AnalyzerTest.java
+++ b/drools-analytics/src/test/java/org/drools/analy... | true | true | public void testAnalyzer() throws Exception {
Analyzer anal = new Analyzer();
DrlParser p = new DrlParser();
InputStreamReader reader = new InputStreamReader(this.getClass().getResourceAsStream("Misc3.drl"));
PackageDescr pkg = p.parse(reader);
assertFalse(p.hasErrors());
anal.addPackageDescr(pkg);
ana... | public void testAnalyzer() throws Exception {
Analyzer anal = new Analyzer();
DrlParser p = new DrlParser();
InputStreamReader reader = new InputStreamReader(this.getClass().getResourceAsStream("Misc3.drl"));
PackageDescr pkg = p.parse(reader);
assertFalse(p.hasErrors());
anal.addPackageDescr(pkg);
ana... |
diff --git a/model/org/eclipse/cdt/internal/core/model/ext/CElementHandleFactory.java b/model/org/eclipse/cdt/internal/core/model/ext/CElementHandleFactory.java
index 688713325..a421b6dc9 100644
--- a/model/org/eclipse/cdt/internal/core/model/ext/CElementHandleFactory.java
+++ b/model/org/eclipse/cdt/internal/core/mode... | true | true | public static ICElement create(ITranslationUnit tu, IBinding binding,
IRegion region, long timestamp) throws CoreException, DOMException {
ICElement parentElement= create(tu, binding.getScope());
if (parentElement == null) {
return null;
}
CElementHandle element= null;
if (binding instanceof ICPP... | public static ICElementHandle create(ITranslationUnit tu, IBinding binding,
IRegion region, long timestamp) throws CoreException, DOMException {
ICElement parentElement= create(tu, binding.getScope());
if (parentElement == null) {
return null;
}
CElementHandle element= null;
if (binding instanceo... |
diff --git a/src/n/queens/State.java b/src/n/queens/State.java
index 9f1bed8..d02a8fb 100644
--- a/src/n/queens/State.java
+++ b/src/n/queens/State.java
@@ -1,59 +1,60 @@
package n.queens;
import n.queens.Queen;
import java.util.Random;
/**
*
* @author Rumal
*/
abstract class State {
int boardSize... | true | true | public void calculateCost() {
int i, j;
cost = 0;
for (i = 0; i < boardSize; i++) {
for (j = 0; j < boardSize; j++) {
if (q[i].getIndexOfX() == q[j].getIndexOfX()
|| q[i].getIndexOfY() == q[j].getIndexOfY() //same column
... | public void calculateCost() {
int i, j;
cost = 0;
for (i = 0; i < boardSize; i++) {
for (j = 0; j < boardSize; j++) {
if (i==j) continue;
if (q[i].getIndexOfX() == q[j].getIndexOfX() // same row
|| q[i].getIndexOfY() == q[j... |
diff --git a/src/View/ClassSelectionView.java b/src/View/ClassSelectionView.java
index 8306417..844a641 100644
--- a/src/View/ClassSelectionView.java
+++ b/src/View/ClassSelectionView.java
@@ -1,141 +1,141 @@
package View;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.R... | false | true | public void update(GameContainer gc, StateBasedGame sbg, int delta) throws SlickException{
int xPos = Mouse.getX();
int yPos = 720 - Mouse.getY();
mouse = "Mouse position: (" + xPos + "," + yPos + ")";
/*Random obsGenerator = new Random();
for(int i=0; i<obsGenerator.nextInt(50); i++){
obstacles[... | public void update(GameContainer gc, StateBasedGame sbg, int delta) throws SlickException{
int xPos = Mouse.getX();
int yPos = 720 - Mouse.getY();
mouse = "Mouse position: (" + xPos + "," + yPos + ")";
/*Random obsGenerator = new Random();
for(int i=0; i<obsGenerator.nextInt(50); i++){
obstacles[... |
diff --git a/src/net/eonz/bukkit/psduo/signs/normal/DelaySign.java b/src/net/eonz/bukkit/psduo/signs/normal/DelaySign.java
index 99b2853..a03651e 100644
--- a/src/net/eonz/bukkit/psduo/signs/normal/DelaySign.java
+++ b/src/net/eonz/bukkit/psduo/signs/normal/DelaySign.java
@@ -1,129 +1,131 @@
package net.eonz.bukkit.ps... | false | true | protected void declare(boolean reload, SignChangeEvent event) {
String periodLine = this.getLines(event)[1].trim();
if (periodLine.length() > 0) {
try {
period = Integer.parseInt(periodLine);
} catch (Exception e) {
if (!reload)
this.main.alert(this.getOwnerName(), "Could not understand period,... | protected void declare(boolean reload, SignChangeEvent event) {
String periodLine = this.getLines(event)[1].trim();
if (periodLine.length() > 0) {
try {
period = Integer.parseInt(periodLine);
} catch (Exception e) {
if (!reload)
this.main.alert(this.getOwnerName(), "Could not understand period,... |
diff --git a/src/web/org/openmrs/web/controller/program/PatientProgramFormController.java b/src/web/org/openmrs/web/controller/program/PatientProgramFormController.java
index 7c8a01d0..50106d3c 100644
--- a/src/web/org/openmrs/web/controller/program/PatientProgramFormController.java
+++ b/src/web/org/openmrs/web/contro... | true | true | public ModelAndView enroll(HttpServletRequest request, HttpServletResponse response) throws ServletException,
IOException {
String returnPage = request.getParameter("returnPage");
if (returnPage == null) {
throw new IllegalA... | public ModelAndView enroll(HttpServletRequest request, HttpServletResponse response) throws ServletException,
IOException {
String returnPage = request.getParameter("returnPage");
if (returnPage == null) {
throw new IllegalA... |
diff --git a/javasvn/src/org/tmatesoft/svn/core/internal/util/SVNFormatUtil.java b/javasvn/src/org/tmatesoft/svn/core/internal/util/SVNFormatUtil.java
index 3039b9b81..5b7ee8e95 100644
--- a/javasvn/src/org/tmatesoft/svn/core/internal/util/SVNFormatUtil.java
+++ b/javasvn/src/org/tmatesoft/svn/core/internal/util/SVNFor... | true | true | public static String formatPath(File file) {
String path;
String rootPath;
path = file.getAbsolutePath();
rootPath = new File("").getAbsolutePath();
path = path.replace(File.separatorChar, '/');
rootPath = rootPath.replace(File.separatorChar, '/');
if (path.st... | public static String formatPath(File file) {
String path;
String rootPath;
path = file.getAbsolutePath();
rootPath = new File("").getAbsolutePath();
path = path.replace(File.separatorChar, '/');
rootPath = rootPath.replace(File.separatorChar, '/');
if (path.eq... |
diff --git a/src/main/java/org/mozilla/gecko/fxa/sync/FxAccountSyncAdapter.java b/src/main/java/org/mozilla/gecko/fxa/sync/FxAccountSyncAdapter.java
index 4ec3e1097..49d5ca58f 100644
--- a/src/main/java/org/mozilla/gecko/fxa/sync/FxAccountSyncAdapter.java
+++ b/src/main/java/org/mozilla/gecko/fxa/sync/FxAccountSyncAdap... | true | true | public void onPerformSync(final Account account, final Bundle extras, final String authority, ContentProviderClient provider, final SyncResult syncResult) {
Logger.setThreadLogTag(FxAccountConstants.GLOBAL_LOG_TAG);
Logger.resetLogging();
Logger.info(LOG_TAG, "Syncing FxAccount" +
" account named... | public void onPerformSync(final Account account, final Bundle extras, final String authority, ContentProviderClient provider, final SyncResult syncResult) {
Logger.setThreadLogTag(FxAccountConstants.GLOBAL_LOG_TAG);
Logger.resetLogging();
Logger.info(LOG_TAG, "Syncing FxAccount" +
" account named... |
diff --git a/netbeans-virgo-maven-support/src/th/co/geniustree/virgo/maven/DeployActionBase.java b/netbeans-virgo-maven-support/src/th/co/geniustree/virgo/maven/DeployActionBase.java
index 59e584a..f7cc793 100644
--- a/netbeans-virgo-maven-support/src/th/co/geniustree/virgo/maven/DeployActionBase.java
+++ b/netbeans-vi... | false | true | private void executeDeployTask(MavenProject mavenProject, final File finalFile) throws IOException {
final String symbolicName = BundleUtils.getSymbolicName(mavenProject);
final String bundleVersion = BundleUtils.getBundleVersion(finalFile);
ServerInstanceProvider virgoProvider = ServerInsta... | private void executeDeployTask(MavenProject mavenProject, final File finalFile) throws IOException {
final String symbolicName = BundleUtils.getSymbolicName(mavenProject);
final String bundleVersion = BundleUtils.getBundleVersion(finalFile);
ServerInstanceProvider virgoProvider = ServerInsta... |
diff --git a/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java b/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java
index a3c01fae6..4bfb1c2be 100644
--- a/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java
+++ b/solr/co... | false | true | public void doDeleteByQuery(DeleteUpdateCommand cmd) throws IOException {
// even in non zk mode, tests simulate updates from a leader
if(!zkEnabled) {
isLeader = !req.getParams().getBool(SEEN_LEADER, false);
} else {
zkCheck();
}
// Lev1: we are the first to receive this deleteByQuer... | public void doDeleteByQuery(DeleteUpdateCommand cmd) throws IOException {
// even in non zk mode, tests simulate updates from a leader
if(!zkEnabled) {
isLeader = !req.getParams().getBool(SEEN_LEADER, false);
} else {
zkCheck();
}
// Lev1: we are the first to receive this deleteByQuer... |
diff --git a/src/main/java/edu/mit/cci/amtprojects/solver/SolverGenerationTask.java b/src/main/java/edu/mit/cci/amtprojects/solver/SolverGenerationTask.java
index 16e82dd..5cc0867 100644
--- a/src/main/java/edu/mit/cci/amtprojects/solver/SolverGenerationTask.java
+++ b/src/main/java/edu/mit/cci/amtprojects/solver/Solve... | true | true | public SolverGenerationTask(PageParameters param) {
super(param,true,true);
try {
model = new SolverTaskModel(batch());
} catch (JSONException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
throw new Re... | public SolverGenerationTask(PageParameters param) {
super(param,true,true);
try {
model = new SolverTaskModel(batch());
} catch (JSONException e) {
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
throw new Re... |
diff --git a/src/com/redhat/qe/tools/RemoteFileTasks.java b/src/com/redhat/qe/tools/RemoteFileTasks.java
index 2e7c087..99d5a56 100644
--- a/src/com/redhat/qe/tools/RemoteFileTasks.java
+++ b/src/com/redhat/qe/tools/RemoteFileTasks.java
@@ -1,171 +1,172 @@
package com.redhat.qe.tools;
import java.io.File;
import j... | true | true | public static void runCommandAndAssert(SSHCommandRunner sshCommandRunner, String command, String stdoutGrepExpression, String stderrGrepExpression, int expectedExitCode) {
//String runCommand = String.format("(%s | tee %s) 3>&1 1>&2 2>&3 | tee %s", command, stdoutFile, stderrFile); // the problem with this is that ... | public static void runCommandAndAssert(SSHCommandRunner sshCommandRunner, String command, String stdoutGrepExpression, String stderrGrepExpression, int expectedExitCode) {
//String runCommand = String.format("(%s | tee %s) 3>&1 1>&2 2>&3 | tee %s", command, stdoutFile, stderrFile); // the problem with this is that ... |
diff --git a/src/main/java/com/basho/riak/client/core/netty/RiakHttpMessageHandler.java b/src/main/java/com/basho/riak/client/core/netty/RiakHttpMessageHandler.java
index 8c5abda8..5ab2f4e7 100644
--- a/src/main/java/com/basho/riak/client/core/netty/RiakHttpMessageHandler.java
+++ b/src/main/java/com/basho/riak/client/... | true | true | public void messageReceived(ChannelHandlerContext chc, Object msg) throws Exception
{
if (msg instanceof HttpResponse)
{
message = new RiakHttpMessage((HttpResponse)msg);
}
if (msg instanceof HttpContent)
{
chunks.add(((HttpContent)msg).da... | public void messageReceived(ChannelHandlerContext chc, Object msg) throws Exception
{
if (msg instanceof HttpResponse)
{
message = new RiakHttpMessage((HttpResponse)msg);
}
if (msg instanceof HttpContent)
{
chunks.add(((HttpContent)msg).da... |
diff --git a/src/org/bodytrack/client/DataPlot.java b/src/org/bodytrack/client/DataPlot.java
index 4781df5..dec7e96 100644
--- a/src/org/bodytrack/client/DataPlot.java
+++ b/src/org/bodytrack/client/DataPlot.java
@@ -1,1625 +1,1625 @@
package org.bodytrack.client;
import com.google.gwt.core.client.GWT;
import com.... | true | true | private void paintComment(final BoundedDrawingBox drawing, final PlottablePoint highlightedPoint) {
if (highlightedPoint.hasComment()) {
// compute (x,y) for the highlighted point in pixels, relative to the canvas
final int x = (int)xAxis.project2D(highlightedPoint.getDate()).getX();
... | private void paintComment(final BoundedDrawingBox drawing, final PlottablePoint highlightedPoint) {
if (highlightedPoint.hasComment()) {
// compute (x,y) for the highlighted point in pixels, relative to the canvas
final int x = (int)xAxis.project2D(highlightedPoint.getDate()).getX();
... |
diff --git a/src/main/java/com/troiaTester/DataGenerator.java b/src/main/java/com/troiaTester/DataGenerator.java
index 3bff98e..1dfd66a 100644
--- a/src/main/java/com/troiaTester/DataGenerator.java
+++ b/src/main/java/com/troiaTester/DataGenerator.java
@@ -1,325 +1,325 @@
package main.com.troiaTester;
import java.u... | true | true | public TroiaObjectCollection generateTestObjects(int objectCount,
Map<String, Double> categories) {
Collection<Double> percentages = categories.values();
double totalPercentage = 0;
for (Double percentage : percentages) {
totalPercentage += percentage.doubleValue();
... | public TroiaObjectCollection generateTestObjects(int objectCount,
Map<String, Double> categories) {
Collection<Double> percentages = categories.values();
double totalPercentage = 0;
for (Double percentage : percentages) {
totalPercentage += percentage.doubleValue();
... |
diff --git a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/widgets/chatControl/ChatControl.java b/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/widgets/chatControl/ChatControl.java
index 22965e71d..f81763e62 100644
--- a/de.fu_berlin.inf.dpp/src/de/fu_berlin/inf/dpp/ui/widgets/chatControl/ChatControl.java
+++ b/d... | true | true | public ChatControl(Composite parent, int style,
Color displayBackgroundColor, Color inputBackgroundColor,
final int minVisibleInputLines) {
super(parent, style & ~SWT.BORDER);
int chatDisplayStyle = (style & SWT.BORDER) | SWT.V_SCROLL;
int chatInputStyle = (style & SWT.BORDE... | public ChatControl(Composite parent, int style,
Color displayBackgroundColor, Color inputBackgroundColor,
final int minVisibleInputLines) {
super(parent, style & ~SWT.BORDER);
int chatDisplayStyle = (style & SWT.BORDER) | SWT.V_SCROLL
| SWT.H_SCROLL;
int chatInpu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.