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/be/ibridge/kettle/chef/ChefLog.java b/src/be/ibridge/kettle/chef/ChefLog.java
index 68ea04db..f7e78326 100644
--- a/src/be/ibridge/kettle/chef/ChefLog.java
+++ b/src/be/ibridge/kettle/chef/ChefLog.java
@@ -1,576 +1,583 @@
/**********************************************************************
** ... | true | true | public ChefLog(Composite parent, int style, Chef chef)
{
super(parent, style);
shell=parent.getShell();
this.log=LogWriter.getInstance();
display=shell.getDisplay();
this.chef=chef;
FormLayout formLayout = new FormLayout ();
formLayout.marginWidth = Const.FORM_MARGIN;
formLayout.marginHeight = ... | public ChefLog(Composite parent, int style, Chef chef)
{
super(parent, style);
shell=parent.getShell();
this.log=LogWriter.getInstance();
display=shell.getDisplay();
this.chef=chef;
FormLayout formLayout = new FormLayout ();
formLayout.marginWidth = Const.FORM_MARGIN;
formLayout.marginHeight = ... |
diff --git a/src/com/gitblit/GitblitUserService.java b/src/com/gitblit/GitblitUserService.java
index 97e1a40..f675510 100644
--- a/src/com/gitblit/GitblitUserService.java
+++ b/src/com/gitblit/GitblitUserService.java
@@ -1,217 +1,217 @@
/*
* Copyright 2011 gitblit.com.
*
* Licensed under the Apache License, Vers... | true | true | protected IUserService createUserService(File realmFile) {
IUserService service = null;
if (realmFile.getName().toLowerCase().endsWith(".properties")) {
// v0.5.0 - v0.7.0 properties-based realm file
service = new FileUserService(realmFile);
} else if (realmFile.getName().toLowerCase().endsWith(".conf")) {... | protected IUserService createUserService(File realmFile) {
IUserService service = null;
if (realmFile.getName().toLowerCase().endsWith(".properties")) {
// v0.5.0 - v0.7.0 properties-based realm file
service = new FileUserService(realmFile);
} else if (realmFile.getName().toLowerCase().endsWith(".conf")) {... |
diff --git a/jbehave-maven-plugin/src/main/java/org/jbehave/mojo/RunStoriesAsEmbeddables.java b/jbehave-maven-plugin/src/main/java/org/jbehave/mojo/RunStoriesAsEmbeddables.java
index 8a27fa8b0..0f27a562a 100755
--- a/jbehave-maven-plugin/src/main/java/org/jbehave/mojo/RunStoriesAsEmbeddables.java
+++ b/jbehave-maven-pl... | true | true | public void execute() throws MojoExecutionException, MojoFailureException {
Embedder embedder = newEmbedder();
getLog().info("Running stories using embedder "+embedder);
embedder.runAsEmbeddables(classNames());
}
| public void execute() throws MojoExecutionException, MojoFailureException {
Embedder embedder = newEmbedder();
getLog().info("Running stories using embedder "+embedder);
try {
embedder.runAsEmbeddables(classNames());
} catch( Embedder.RunningEmbeddablesFailed e) {
... |
diff --git a/src/com/alecgorge/minecraft/jsonapi/stringifier/BukkitStringifier.java b/src/com/alecgorge/minecraft/jsonapi/stringifier/BukkitStringifier.java
index d502b06..1e7bedd 100644
--- a/src/com/alecgorge/minecraft/jsonapi/stringifier/BukkitStringifier.java
+++ b/src/com/alecgorge/minecraft/jsonapi/stringifier/Bu... | true | true | public static Object handle(Object obj) {
if (obj instanceof World.Environment) {
World.Environment e = (World.Environment) obj;
if (e == World.Environment.NETHER) {
return "nether";
} else {
return "normal";
}
} else if (obj instanceof File) {
return ((File) obj).toString();
} else if (ob... | public static Object handle(Object obj) {
if (obj instanceof World.Environment) {
World.Environment e = (World.Environment) obj;
if (e == World.Environment.NETHER) {
return "nether";
} else {
return "normal";
}
} else if (obj instanceof File) {
return ((File) obj).toString();
} else if (ob... |
diff --git a/src/main/java/org/nuxeo/common/xmap/XAnnotatedContent.java b/src/main/java/org/nuxeo/common/xmap/XAnnotatedContent.java
index 715c6af..78c8065 100644
--- a/src/main/java/org/nuxeo/common/xmap/XAnnotatedContent.java
+++ b/src/main/java/org/nuxeo/common/xmap/XAnnotatedContent.java
@@ -1,77 +1,78 @@
/*
* (... | true | true | protected Object getValue(Context ctx, Element base) throws IOException {
Element el = (Element) DOMHelper.getElementNode(base, path);
if (el == null) {
return null;
}
el.normalize();
Node node = el.getFirstChild();
if (node == null) {
return "... | protected Object getValue(Context ctx, Element base) throws IOException {
Element el = (Element) DOMHelper.getElementNode(base, path);
if (el == null) {
return null;
}
el.normalize();
Node node = el.getFirstChild();
if (node == null) {
boolean ... |
diff --git a/src/org/opensolaris/opengrok/analysis/sql/SQLAnalyzer.java b/src/org/opensolaris/opengrok/analysis/sql/SQLAnalyzer.java
index 44bdb074..94b95a65 100644
--- a/src/org/opensolaris/opengrok/analysis/sql/SQLAnalyzer.java
+++ b/src/org/opensolaris/opengrok/analysis/sql/SQLAnalyzer.java
@@ -1,69 +1,69 @@
/*
*... | true | true | public void writeXref(Writer out) throws IOException {
xref.reInit(content, len);
xref.project = project;
// @TODO xref.setDefs(defs);
xref.write(out);
}
| public void writeXref(Writer out) throws IOException {
xref.reInit(content, len);
xref.project = project;
xref.setDefs(defs);
xref.write(out);
}
|
diff --git a/activemq-transport/src/main/java/org/apache/activemq/wireformat/MultiWireFormatFactory.java b/activemq-transport/src/main/java/org/apache/activemq/wireformat/MultiWireFormatFactory.java
index 6ecb85b9..3f327096 100644
--- a/activemq-transport/src/main/java/org/apache/activemq/wireformat/MultiWireFormatFact... | false | true | public UnmarshalSession createUnmarshalSession() {
return new UnmarshalSession() {
int start=0;
int end=0;
UnmarshalSession session;
public int getStartPos() {
return start;
}
public... | public UnmarshalSession createUnmarshalSession() {
return new UnmarshalSession() {
int start=0;
int end=0;
UnmarshalSession session;
public int getStartPos() {
if( session!=null ) {
return se... |
diff --git a/src/interpreter/Lexer.java b/src/interpreter/Lexer.java
index c9810b4..0917679 100644
--- a/src/interpreter/Lexer.java
+++ b/src/interpreter/Lexer.java
@@ -1,510 +1,522 @@
package interpreter;
import java.io.InputStream;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Le... | false | true | public int yylex() {
for (;;) {
// Skip whitespace
while (c==' ' || c=='\n' || c=='\t' || c=='\r' || c == '\f') {
if (c == '\n')
line++;
nextChar();
}
if (c<0) {
return (token=Tokens.ENDINPUT);
}
switch (c) {
case '$'... | public int yylex() {
for (;;) {
// Skip whitespace
while (c==' ' || c=='\n' || c=='\t' || c=='\r' || c == '\f') {
if (c == '\n')
line++;
nextChar();
}
if (c<0) {
return (token=Tokens.ENDINPUT);
}
switch (c) {
case '$'... |
diff --git a/test/functional/test/java/lang/DoubleTest.java b/test/functional/test/java/lang/DoubleTest.java
index 6406d96a..a899b330 100644
--- a/test/functional/test/java/lang/DoubleTest.java
+++ b/test/functional/test/java/lang/DoubleTest.java
@@ -1,14 +1,16 @@
package test.java.lang;
import jvm.TestCase;
pub... | true | true | public static void testToString() {
assertEquals("1.0", Double.toString(1.0));
assertEquals("1.1", Double.toString(1.1));
}
| public static void testToString() {
assertEquals("1.0", Double.toString(1.0));
assertEquals("1.1", Double.toString(1.1));
float f1 = (float) 1e50;
assertEquals("Infinity", Double.toString((double) f1));
}
|
diff --git a/src/com/android/calendar/AlertService.java b/src/com/android/calendar/AlertService.java
index f2859507..3719f6b3 100644
--- a/src/com/android/calendar/AlertService.java
+++ b/src/com/android/calendar/AlertService.java
@@ -1,454 +1,454 @@
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Li... | true | true | void processMessage(Message msg) {
Bundle bundle = (Bundle) msg.obj;
// On reboot, update the notification bar with the contents of the
// CalendarAlerts table.
String action = bundle.getString("action");
if (action.equals(Intent.ACTION_BOOT_COMPLETED)
... | void processMessage(Message msg) {
Bundle bundle = (Bundle) msg.obj;
// On reboot, update the notification bar with the contents of the
// CalendarAlerts table.
String action = bundle.getString("action");
if (action.equals(Intent.ACTION_BOOT_COMPLETED)
... |
diff --git a/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationsCursorAdapter.java b/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationsCursorAdapter.java
index 44b6170f..5a0f40b3 100644
--- a/SWADroid/src/es/ugr/swad/swadroid/modules/notifications/NotificationsCursorAdapter.java
+++... | false | true | public void bindView(View view, Context context, Cursor cursor) {
final Context ctx = context;
final Long notificationCode = cursor.getLong(cursor.getColumnIndex("id"));
long unixTime;
String type = "";
String sender, senderFirstname, senderSurname1, senderSurname2, summaryText;
String contentText, content... | public void bindView(View view, Context context, Cursor cursor) {
final Context ctx = context;
final Long notificationCode = cursor.getLong(cursor.getColumnIndex("id"));
long unixTime;
String type = "";
String sender, senderFirstname, senderSurname1, senderSurname2, summaryText;
String contentText, content... |
diff --git a/src/test/java/de/dmc/loggi/processors/AbstractColumnProcessorTest.java b/src/test/java/de/dmc/loggi/processors/AbstractColumnProcessorTest.java
index 59f7a79..e14bf1a 100644
--- a/src/test/java/de/dmc/loggi/processors/AbstractColumnProcessorTest.java
+++ b/src/test/java/de/dmc/loggi/processors/AbstractColu... | true | true | public void testInitializeProcessorNull() throws Exception{
AbstractColumnProcessor abstractColumnProcessor = new AbstractColumnProcessor(null) {
@Override
public Object getColumnValue(String record) {
return null;
}
};
}
| public void testInitializeProcessorNull() throws Exception{
AbstractColumnProcessor abstractColumnProcessor = new AbstractColumnProcessor(null) {
@Override
public String getColumnValue(String record) {
return null;
}
};
}
|
diff --git a/src/main/java/com/lmiky/jdp/user/controller/OperatorController.java b/src/main/java/com/lmiky/jdp/user/controller/OperatorController.java
index d7f3e74..d06ccb6 100644
--- a/src/main/java/com/lmiky/jdp/user/controller/OperatorController.java
+++ b/src/main/java/com/lmiky/jdp/user/controller/OperatorControl... | true | true | public String modifyPassword(ModelMap modelMap, HttpServletRequest request, HttpServletResponse resopnse,
@RequestParam(value = "id", required = false) Long id) throws Exception {
try {
//判断是否有登陆
SessionInfo sessionInfo = getSessionInfo(modelMap, request);
//检查单点登陆
checkSso(sessionInfo, modelMap, requ... | public String modifyPassword(ModelMap modelMap, HttpServletRequest request, HttpServletResponse resopnse,
@RequestParam(value = "id", required = false) Long id) throws Exception {
try {
//判断是否有登陆
SessionInfo sessionInfo = getSessionInfo(modelMap, request);
//检查单点登陆
checkSso(sessionInfo, modelMap, requ... |
diff --git a/src/com/dmdirc/addons/ui_swing/components/addonbrowser/InstallListener.java b/src/com/dmdirc/addons/ui_swing/components/addonbrowser/InstallListener.java
index f0ec15db..0eb5c818 100644
--- a/src/com/dmdirc/addons/ui_swing/components/addonbrowser/InstallListener.java
+++ b/src/com/dmdirc/addons/ui_swing/co... | true | true | public void actionPerformed(final ActionEvent e) {
final InstallerWindow installer = new InstallerWindow(parentWindow,
info);
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
installer.display(parentWindow);
... | public void actionPerformed(final ActionEvent e) {
final InstallerWindow installer = new InstallerWindow(parentWindow,
info);
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
installer.display(parentWindow);
... |
diff --git a/src/frontend/MainFrame.java b/src/frontend/MainFrame.java
index 93344f1..0b5bfc1 100644
--- a/src/frontend/MainFrame.java
+++ b/src/frontend/MainFrame.java
@@ -1,1499 +1,1500 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package frontend;
imp... | true | true | private void initComponents() {
jMenuItem2 = new javax.swing.JMenuItem();
jMenu6 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
_edgeTypeGrp = new javax.swing.ButtonGroup();
jSplitPane2 = new javax.swing.JSplitPane();
jTabbedPane1 = new javax.swing.JTabbedPane();
jScrollPane1 = new... | private void initComponents() {
jMenuItem2 = new javax.swing.JMenuItem();
jMenu6 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
_edgeTypeGrp = new javax.swing.ButtonGroup();
jSplitPane2 = new javax.swing.JSplitPane();
jTabbedPane1 = new javax.swing.JTabbedPane();
jScrollPane1 = new... |
diff --git a/src/main/java/plugins/N2NChat/N2NChatPlugin.java b/src/main/java/plugins/N2NChat/N2NChatPlugin.java
index eebebab..fad75be 100644
--- a/src/main/java/plugins/N2NChat/N2NChatPlugin.java
+++ b/src/main/java/plugins/N2NChat/N2NChatPlugin.java
@@ -1,431 +1,431 @@
/*
* This program is free software: you can ... | true | true | public void handleMessage(byte[] data, boolean fromDarknet, PeerNode source, int type) {
if (!fromDarknet) {
freenet.support.Logger.error(this, "Received N2N chat message from non-darknet peer " + source);
return;
}
DarknetPeerNode darkSource = (DarknetPeerNode) source;
freenet.support.Logger.norm... | public void handleMessage(byte[] data, boolean fromDarknet, PeerNode source, int type) {
if (!fromDarknet) {
freenet.support.Logger.error(this, "Received N2N chat message from non-darknet peer " + source);
return;
}
DarknetPeerNode darkSource = (DarknetPeerNode) source;
freenet.support.Logger.norm... |
diff --git a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/data/document/DocumentObjectUtil.java b/plugins/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/data/document/DocumentObjectUtil.java
index c92464390..c2386572a 100644
--- a/plugins/org.eclipse.birt.data/src/org/eclipse/birt/da... | false | true | public static void writeValue( IDocumentObject documentObject, int dataType, Object value ) throws IOException, DataException
{
try{
if (value == null)
{
documentObject.writeByte(0);
return;
}
else
{
documentObject.writeByte(1);
}
switch ( dataType )
{
case DataType.BOOLEAN_TYPE :
... | public static void writeValue( IDocumentObject documentObject, int dataType, Object value ) throws IOException, DataException
{
try{
if (value == null)
{
documentObject.writeByte(0);
return;
}
else
{
documentObject.writeByte(1);
}
switch ( dataType )
{
case DataType.BOOLEAN_TYPE :
... |
diff --git a/CleverMaze/src/ch/gibb/project/activity/Level.java b/CleverMaze/src/ch/gibb/project/activity/Level.java
index 2adf697..5ce651a 100644
--- a/CleverMaze/src/ch/gibb/project/activity/Level.java
+++ b/CleverMaze/src/ch/gibb/project/activity/Level.java
@@ -1,300 +1,300 @@
package ch.gibb.project.activity;
i... | false | true | private void updateBall(float accelX, float accelY) {
// TODO: Acceleration
if (!actionHandler.checkIfFinished()) {
actionHandler.moveAndCheckX(accelX);
actionHandler.moveAndCheckY(accelY);
actionHandler.checkStarTouch();
} else {
if (stageNumber == StageEnum.values().length) {
sensorManager.unre... | private void updateBall(float accelX, float accelY) {
// TODO: Acceleration
if (!actionHandler.checkIfFinished()) {
actionHandler.moveAndCheckX(accelX);
actionHandler.moveAndCheckY(accelY);
actionHandler.checkStarTouch();
} else {
// if (stageNumber == StageEnum.values().length) {
// sensorManager... |
diff --git a/HBaseAdapter/src/test/java/com/nearinfinity/mysqlengine/Driver.java b/HBaseAdapter/src/test/java/com/nearinfinity/mysqlengine/Driver.java
index ffec5bc2..4e2cf627 100644
--- a/HBaseAdapter/src/test/java/com/nearinfinity/mysqlengine/Driver.java
+++ b/HBaseAdapter/src/test/java/com/nearinfinity/mysqlengine/D... | true | true | public void go(String[] args) throws IOException {
HBaseClient client = new HBaseClient("sql", "localhost");
if (args[0].equals("create")) {
//create table_name column*
String tableName = args[1];
Map<String, List<ColumnMetadata>> columns = new HashMap<String, Li... | public void go(String[] args) throws IOException {
HBaseClient client = new HBaseClient("sql", "localhost");
if (args[0].equals("create")) {
//create table_name column*
String tableName = args[1];
Map<String, List<ColumnMetadata>> columns = new HashMap<String, Li... |
diff --git a/server/mmud/commands/AwakenCommand.java b/server/mmud/commands/AwakenCommand.java
index 597eec42..e76b92ef 100644
--- a/server/mmud/commands/AwakenCommand.java
+++ b/server/mmud/commands/AwakenCommand.java
@@ -1,68 +1,68 @@
/*-------------------------------------------------------------------------
cvsin... | true | true | public boolean run(User aUser)
throws MudException
{
Logger.getLogger("mmud").finer("");
if (!super.run(aUser))
{
return false;
}
if (!aUser.isaSleep())
{
aUser.writeMessage("You already are awake.<BR>\r\n");
}
else
{
aUser.setSleep(false);
aUser.writeMessage("%SNAME awaken%VERB2.<BR>\r... | public boolean run(User aUser)
throws MudException
{
Logger.getLogger("mmud").finer("");
if (!super.run(aUser))
{
return false;
}
if (!aUser.isaSleep())
{
aUser.writeMessage("You already are awake.<BR>\r\n");
}
else
{
aUser.setSleep(false);
Persons.sendMessage(aUser, "%SNAME awaken%VERB... |
diff --git a/plugins/org.eclipse.emf.mwe2.launch/src/org/eclipse/emf/mwe2/launch/runtime/Mwe2Runner.java b/plugins/org.eclipse.emf.mwe2.launch/src/org/eclipse/emf/mwe2/launch/runtime/Mwe2Runner.java
index edc16257..68dfc1cb 100644
--- a/plugins/org.eclipse.emf.mwe2.launch/src/org/eclipse/emf/mwe2/launch/runtime/Mwe2Run... | true | true | public void run(String moduleName, Map<String, String> params, IWorkflowContext ctx) {
Module module = findModule(moduleName);
EcoreUtil.resolveAll(module);
if (!module.eResource().getErrors().isEmpty()) {
throw new IllegalStateException(module.eResource().getErrors().toString());
}
Map<QualifiedName, Obj... | public void run(String moduleName, Map<String, String> params, IWorkflowContext ctx) {
Module module = findModule(moduleName);
if (module == null) {
throw new IllegalStateException("Couldn't find module "+moduleName);
}
EcoreUtil.resolveAll(module);
if (!module.eResource().getErrors().isEmpty()) {
thro... |
diff --git a/plugins/org.eclipse.birt.data.aggregation/src/org/eclipse/birt/data/aggregation/calculator/CalculatorFactory.java b/plugins/org.eclipse.birt.data.aggregation/src/org/eclipse/birt/data/aggregation/calculator/CalculatorFactory.java
index fed81edcb..21a698f9c 100644
--- a/plugins/org.eclipse.birt.data.aggrega... | true | true | public static ICalculator getCalculator( Class<?> clz )
{
if ( clz.equals( Boolean.class ) )
{
return new BooleanCalculator( );
}
else if ( clz.equals( Date.class ) )
{
return new DateCalculator( );
}
else if ( clz.equals( String.class ) )
{
return new StringCalculator( );
}
else if ( clz... | public static ICalculator getCalculator( Class<?> clz )
{
if ( clz.equals( Boolean.class ) )
{
return new BooleanCalculator( );
}
else if ( Date.class.isAssignableFrom( clz ) )
{
return new DateCalculator( );
}
else if ( clz.equals( String.class ) )
{
return new StringCalculator( );
}
els... |
diff --git a/src/main/java/net/pms/dlna/MapFile.java b/src/main/java/net/pms/dlna/MapFile.java
index 71a014c6e..f8996af74 100644
--- a/src/main/java/net/pms/dlna/MapFile.java
+++ b/src/main/java/net/pms/dlna/MapFile.java
@@ -1,518 +1,524 @@
/*
* PS3 Media Server, for streaming any medias to your PS3.
* Copyright (... | false | true | public void discoverChildren(String str) {
//super.discoverChildren(str);
if (str != null) {
str = str.toLowerCase();
}
if (discoverable == null) {
discoverable = new ArrayList<File>();
} else {
return;
}
List<File> files = getFileList();
// ATZ handling
if (files.size() > PMS.getConfig... | public void discoverChildren(String str) {
//super.discoverChildren(str);
if (str != null) {
str = str.toLowerCase();
}
if (discoverable == null) {
discoverable = new ArrayList<File>();
} else {
return;
}
List<File> files = getFileList();
// ATZ handling
if (files.size() > PMS.getConfig... |
diff --git a/src/groovy/org/pillarone/riskanalytics/core/dataaccess/ExportResultAccessor.java b/src/groovy/org/pillarone/riskanalytics/core/dataaccess/ExportResultAccessor.java
index d368ac2d..4859374d 100644
--- a/src/groovy/org/pillarone/riskanalytics/core/dataaccess/ExportResultAccessor.java
+++ b/src/groovy/org/pil... | true | true | public static List<SingleValueResultPOJO> getSingleValueResultsForExport(String collector, String path, String field, SimulationRun run ) {
List<SingleValueResultPOJO> result = new ArrayList<SingleValueResultPOJO>();
long pathId = ResultAccessor.getPathId(path);
long fieldId = ResultAccessor... | public static List<SingleValueResultPOJO> getSingleValueResultsForExport(String collector, String path, String field, SimulationRun run ) {
List<SingleValueResultPOJO> result = new ArrayList<SingleValueResultPOJO>();
long pathId = ResultAccessor.getPathId(path);
long fieldId = ResultAccessor... |
diff --git a/src/main/java/uk/co/epii/conservatives/henryaddington/voa/VOADownloader.java b/src/main/java/uk/co/epii/conservatives/henryaddington/voa/VOADownloader.java
index 83f2d18..ea4bdc1 100644
--- a/src/main/java/uk/co/epii/conservatives/henryaddington/voa/VOADownloader.java
+++ b/src/main/java/uk/co/epii/conserv... | true | true | public void save(HtmlTable table) {
LOG.info("Table: {}-{}-{}", new Object[]{council, band, seen});
int saved = 0;
for (HtmlTableBody tableBody : table.getBodies()) {
for (HtmlTableRow row : tableBody.getRows()) {
List<HtmlTableCell> cells = row.getCells();
... | public void save(HtmlTable table) {
LOG.info("Table: {}-{}-{}", new Object[]{council, band, seen});
int saved = 0;
for (HtmlTableBody tableBody : table.getBodies()) {
for (HtmlTableRow row : tableBody.getRows()) {
List<HtmlTableCell> cells = row.getCells();
... |
diff --git a/src/butterseal/src/edu/smcm/gamedev/butterseal/BSInterface.java b/src/butterseal/src/edu/smcm/gamedev/butterseal/BSInterface.java
index 4e6ef93..0b1f7c8 100644
--- a/src/butterseal/src/edu/smcm/gamedev/butterseal/BSInterface.java
+++ b/src/butterseal/src/edu/smcm/gamedev/butterseal/BSInterface.java
@@ -1,6... | true | true | private void LoadActiveRegions() {
final int VOFFSET = ANDROID_MODE ? 50 : 0;
Rectangle r_menu_button = vFlipRectangle(menubutton.getBoundingRectangle());
r_menu_button.height -= 23;
r_menu_button.width -= 8;
r_menu_button.x += 8;
Rectangle r_entire_screen = new R... | private void LoadActiveRegions() {
final int VOFFSET = ANDROID_MODE ? -50 : 0;
Rectangle r_menu_button = vFlipRectangle(menubutton.getBoundingRectangle());
r_menu_button.height -= 23;
r_menu_button.width -= 8;
r_menu_button.x += 8;
Rectangle r_entire_screen = new ... |
diff --git a/src/net/volus/ronwalf/phs2010/games/core/impl/AlphaBetaPlayer.java b/src/net/volus/ronwalf/phs2010/games/core/impl/AlphaBetaPlayer.java
index fcc4ab2..c6d0622 100644
--- a/src/net/volus/ronwalf/phs2010/games/core/impl/AlphaBetaPlayer.java
+++ b/src/net/volus/ronwalf/phs2010/games/core/impl/AlphaBetaPlayer.... | true | true | private List<Action> sortActions(final State s, final List<Action> actions) {
List<Pair<Double, Action>> paired = new ArrayList<Pair<Double,Action>>();
for (Action a : actions) {
State sa = transition.apply(s, a);
double[] score = transition.score(sa);
if (score == null)
score = function.score(sa);
... | private List<Action> sortActions(final State s, final List<Action> actions) {
List<Pair<Double, Action>> paired = new ArrayList<Pair<Double,Action>>();
for (Action a : actions) {
State sa = transition.apply(s, a);
double[] score = transition.score(sa);
if (score == null)
score = function.score(sa);
... |
diff --git a/src/main/java/org/owasp/httpclient/Client.java b/src/main/java/org/owasp/httpclient/Client.java
index ff19819..61fa01a 100644
--- a/src/main/java/org/owasp/httpclient/Client.java
+++ b/src/main/java/org/owasp/httpclient/Client.java
@@ -1,423 +1,423 @@
package org.owasp.httpclient;
import java.io.Buffer... | false | true | public void connect(String host, int port, boolean ssl) throws IOException {
if (state != State.DISCONNECTED)
disconnect();
if (host == null)
throw new IllegalArgumentException(
"Host is not set, don't know where to connect to!");
if (port == -1)
port = (ssl ? 443 : 80);
InetSocketAddress targe... | public void connect(String host, int port, boolean ssl) throws IOException {
if (host == null)
throw new IllegalArgumentException(
"Host is not set, don't know where to connect to!");
if (port == -1)
port = (ssl ? 443 : 80);
InetSocketAddress target = null;
if (resolver != null) {
target = new ... |
diff --git a/src/kundera-cassandra/src/test/java/com/impetus/client/schemamanager/CassanrdaGeneratedIdSchemaTest.java b/src/kundera-cassandra/src/test/java/com/impetus/client/schemamanager/CassanrdaGeneratedIdSchemaTest.java
index 626a58dcf..ecd6f4c35 100644
--- a/src/kundera-cassandra/src/test/java/com/impetus/client/... | false | true | public void test()
{
try
{
KsDef ksDef = CassandraCli.client.describe_keyspace("kunderaGeneratedId");
Assert.assertNotNull(ksDef);
Assert.assertEquals(15, ksDef.getCf_defsSize());
int count = 0;
for (CfDef cfDef : ksDef.cf_defs)
... | public void test()
{
try
{
KsDef ksDef = CassandraCli.client.describe_keyspace("kunderaGeneratedId");
Assert.assertNotNull(ksDef);
Assert.assertEquals(15, ksDef.getCf_defsSize());
int count = 0;
for (CfDef cfDef : ksDef.cf_defs)
... |
diff --git a/src/main/java/com/megalogika/sv/model/Product.java b/src/main/java/com/megalogika/sv/model/Product.java
index 9e8c12b..42828dd 100644
--- a/src/main/java/com/megalogika/sv/model/Product.java
+++ b/src/main/java/com/megalogika/sv/model/Product.java
@@ -1,630 +1,622 @@
package com.megalogika.sv.model;
im... | false | true | public void calculateHazard() {
System.out.println("--- 111 tikrinam conservantFree: " + conservantFree);
if (null == getConservants() || getConservants().size() == 0 || conservantFree) {
setHazard(E.NO_HAZARD);
// logger.debug("111");
} else {
setHazard(E.MIN_HAZARD);
// logger.debug("222");
for (E... | public void calculateHazard() {
if (null == getConservants() || getConservants().size() == 0) {
setHazard(E.NO_HAZARD);
} else {
setHazard(E.MIN_HAZARD);
for (E e : getConservants()) {
if (Integer.parseInt(e.getCategory()) > Integer.parseInt(hazard)) {
setHazard(e.getCategory());
}
}
}
... |
diff --git a/infrastructure/tools/java/database-importer/src/edu/uci/ics/sourcerer/tools/java/db/importer/resolver/ModeledEntity.java b/infrastructure/tools/java/database-importer/src/edu/uci/ics/sourcerer/tools/java/db/importer/resolver/ModeledEntity.java
index 70e7ebce..7c438ace 100755
--- a/infrastructure/tools/java... | true | true | public Integer getEntityID(QueryExecutor exec, Integer projectID) {
if (entityID == null) {
if (duplicates != null) {
entityID = exec.insertWithKey(EntitiesTable.makeInsert(Entity.DUPLICATE, fqn, projectID));
for (Integer dupID : duplicates) {
exec.insert(RelationsTable.makeInsert(... | public Integer getEntityID(QueryExecutor exec, Integer projectID) {
if (entityID == null) {
if (duplicates != null) {
entityID = exec.insertWithKey(EntitiesTable.makeInsert(Entity.DUPLICATE, fqn, projectID));
for (Integer dupID : duplicates) {
exec.insert(RelationsTable.makeInsert(... |
diff --git a/lib/jdomodels/src/main/java/org/sagebionetworks/repo/model/dbo/DDLUtilsImpl.java b/lib/jdomodels/src/main/java/org/sagebionetworks/repo/model/dbo/DDLUtilsImpl.java
index 2d14c4f0..32810a9d 100644
--- a/lib/jdomodels/src/main/java/org/sagebionetworks/repo/model/dbo/DDLUtilsImpl.java
+++ b/lib/jdomodels/src/... | true | true | public boolean validateTableExists(TableMapping mapping) throws IOException{
String url = stackConfiguration.getRepositoryDatabaseConnectionUrl();
String schema = getSchemaFromConnectionString(url);
String sql = String.format(TABLE_EXISTS_SQL_FORMAT, mapping.getTableName(), schema);
log.info("About to execute:... | public boolean validateTableExists(TableMapping mapping) throws IOException{
String url = stackConfiguration.getRepositoryDatabaseConnectionUrl();
String schema = getSchemaFromConnectionString(url);
String sql = String.format(TABLE_EXISTS_SQL_FORMAT, mapping.getTableName(), schema.toLowerCase());
log.info("Abo... |
diff --git a/src/org/apache/xerces/impl/dv/xs/TimeDV.java b/src/org/apache/xerces/impl/dv/xs/TimeDV.java
index 20fecbe3..db0329a8 100644
--- a/src/org/apache/xerces/impl/dv/xs/TimeDV.java
+++ b/src/org/apache/xerces/impl/dv/xs/TimeDV.java
@@ -1,110 +1,111 @@
/*
* Licensed to the Apache Software Foundation (ASF) unde... | true | true | protected DateTimeData parse(String str) throws SchemaDateTimeException{
DateTimeData date = new DateTimeData(str, this);
int len = str.length();
// time
// initialize to default values
date.year=YEAR;
date.month=MONTH;
date.day=15;
getTime(str, 0, le... | protected DateTimeData parse(String str) throws SchemaDateTimeException{
DateTimeData date = new DateTimeData(str, this);
int len = str.length();
// time
// initialize to default values
date.year=YEAR;
date.month=MONTH;
date.day=15;
getTime(str, 0, le... |
diff --git a/rapid-generator/rapid-generator/src/test/java/cn/org/rapid_framework/generator/GeneratorPropertiesTest.java b/rapid-generator/rapid-generator/src/test/java/cn/org/rapid_framework/generator/GeneratorPropertiesTest.java
index aec5619..048b30c 100644
--- a/rapid-generator/rapid-generator/src/test/java/cn/org/... | true | true | public void test() {
// GeneratorProperties.setProperty(GeneratorConstants.GENERATOR_TOOLS_CLASS, "StringDiy");
GeneratorProperties.setProperties(new Properties());
for(GeneratorConstants key : GeneratorConstants.values()) {
GeneratorProperties.getBoolean(key);
GeneratorProperties.ge... | public void test() {
// GeneratorProperties.setProperty(GeneratorConstants.GENERATOR_TOOLS_CLASS, "StringDiy");
GeneratorProperties.setProperties(new Properties());
for(GeneratorConstants key : GeneratorConstants.values()) {
GeneratorProperties.getBoolean(key);
GeneratorProperties.ge... |
diff --git a/src/main/java/org/testtoolinterfaces/testresultinterface/TestStepResultXmlWriter.java b/src/main/java/org/testtoolinterfaces/testresultinterface/TestStepResultXmlWriter.java
index 5f26521..87dc76b 100644
--- a/src/main/java/org/testtoolinterfaces/testresultinterface/TestStepResultXmlWriter.java
+++ b/src/m... | true | true | public void printXml( TestStepResult aResult,
OutputStreamWriter aStream,
File aLogDir) throws IOException
{
Trace.println(Trace.UTIL);
String indent = repeat( ' ', myIndentLevel );
aStream.write( indent + "<teststep" );
aStream.write(" sequence='" + aResult.getSe... | public void printXml( TestStepResult aResult,
OutputStreamWriter aStream,
File aLogDir) throws IOException
{
Trace.println(Trace.UTIL);
String indent = repeat( ' ', myIndentLevel );
aStream.write( indent + "<teststep" );
aStream.write(" sequence='" + aResult.getSe... |
diff --git a/src/com/gmail/contexmoh/authdb/AuthDB.java b/src/com/gmail/contexmoh/authdb/AuthDB.java
index 10ed646..611c930 100644
--- a/src/com/gmail/contexmoh/authdb/AuthDB.java
+++ b/src/com/gmail/contexmoh/authdb/AuthDB.java
@@ -1,278 +1,278 @@
package com.gmail.contexmoh.authdb;
import java.io.BufferedWriter;
... | true | true | public void onEnable()
{
Config Messages = new Config("messages","plugins/"+pluginname+"/", "messages.yml");
Config Config = new Config("config","plugins/"+pluginname+"/", "config.yml");
//Utils.Log("info", Config.GetConfigString("commands.help.face"));
//Config.DeleteConfigValue("commands.help.face");
if... | public void onEnable()
{
Config Messages = new Config("messages","plugins/"+pluginname+"/", "messages.yml");
Config Config = new Config("config","plugins/"+pluginname+"/", "config.yml");
//Utils.Log("info", Config.GetConfigString("commands.help.face"));
//Config.DeleteConfigValue("commands.help.face");
if... |
diff --git a/src/org/rascalmpl/interpreter/result/RascalFunction.java b/src/org/rascalmpl/interpreter/result/RascalFunction.java
index c14e1b0c69..234498a263 100644
--- a/src/org/rascalmpl/interpreter/result/RascalFunction.java
+++ b/src/org/rascalmpl/interpreter/result/RascalFunction.java
@@ -1,474 +1,475 @@
/*******... | false | true | public Result<IValue> call(Type[] actualTypes, IValue[] actuals, Map<String, IValue> keyArgValues) {
Result<IValue> result = getMemoizedResult(actuals, keyArgValues);
if (result != null)
return result;
Environment old = ctx.getCurrentEnvt();
AbstractAST oldAST = ctx.getCurrentAST();
Stack<Accumulato... | public Result<IValue> call(Type[] actualTypes, IValue[] actuals, Map<String, IValue> keyArgValues) {
Result<IValue> result = getMemoizedResult(actuals, keyArgValues);
if (result != null)
return result;
Environment old = ctx.getCurrentEnvt();
AbstractAST currentAST = ctx.getCurrentAST();
AbstractAST ... |
diff --git a/modules/org.restlet/src/org/restlet/engine/http/header/HeaderUtils.java b/modules/org.restlet/src/org/restlet/engine/http/header/HeaderUtils.java
index 014886926..0c1543435 100644
--- a/modules/org.restlet/src/org/restlet/engine/http/header/HeaderUtils.java
+++ b/modules/org.restlet/src/org/restlet/engine/... | false | true | public static void addRequestHeaders(Request request,
Series<Parameter> headers) throws IllegalArgumentException {
// --------------------------
// 1) Add the general headers
// --------------------------
addGeneralHeaders(request, headers);
// -----------------... | public static void addRequestHeaders(Request request,
Series<Parameter> headers) throws IllegalArgumentException {
// --------------------------
// 1) Add the general headers
// --------------------------
addGeneralHeaders(request, headers);
// -----------------... |
diff --git a/src/edu/jas/ring/RReductionSeq.java b/src/edu/jas/ring/RReductionSeq.java
index abda976b..103b4c0f 100644
--- a/src/edu/jas/ring/RReductionSeq.java
+++ b/src/edu/jas/ring/RReductionSeq.java
@@ -1,744 +1,741 @@
/*
* $Id$
*/
package edu.jas.ring;
import java.util.ArrayList;
import java.util.Itera... | false | true | public GenPolynomial<C> normalform( List<GenPolynomial<C>> Pp,
GenPolynomial<C> Ap) {
if ( Pp == null || Pp.isEmpty() ) {
return Ap;
}
if ( Ap == null || Ap.isZERO() ) {
return Ap;
}
int l;
GenPolynomial... | public GenPolynomial<C> normalform( List<GenPolynomial<C>> Pp,
GenPolynomial<C> Ap) {
if ( Pp == null || Pp.isEmpty() ) {
return Ap;
}
if ( Ap == null || Ap.isZERO() ) {
return Ap;
}
int l;
GenPolynomial... |
diff --git a/java/org/directwebremoting/util/ContainerMap.java b/java/org/directwebremoting/util/ContainerMap.java
index 1da23df1..75b3e4b8 100644
--- a/java/org/directwebremoting/util/ContainerMap.java
+++ b/java/org/directwebremoting/util/ContainerMap.java
@@ -1,214 +1,210 @@
/*
* Copyright 2005 Joe Walker
*
*... | true | true | private void init()
{
if (proxy == null)
{
return;
}
else
{
proxy = new HashMap();
for (Iterator it = container.getBeanNames().iterator(); it.hasNext();)
{
String name = (String) it.next();
Ob... | private void init()
{
if (proxy == null)
{
proxy = new HashMap();
for (Iterator it = container.getBeanNames().iterator(); it.hasNext();)
{
String name = (String) it.next();
Object value = container.getBean(name);
... |
diff --git a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/MetricsTool.java b/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/MetricsTool.java
index 70fb94a5..65d9f36d 100644
--- a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/MetricsTool.java
+++ b/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/MetricsTool.java
@... | true | true | public static void main(String[] args) {
// ���\���p�̃��X�i���쐬
final MessageListener outListener = new MessageListener() {
public void messageReceived(MessageEvent event) {
System.out.print(event.getSource().getMessageSourceName() + " > "
+ event... | public static void main(String[] args) {
// ���\���p�̃��X�i���쐬
final MessageListener outListener = new MessageListener() {
public void messageReceived(MessageEvent event) {
System.out.print(event.getSource().getMessageSourceName() + " > "
+ event... |
diff --git a/src/net/jimmc/mimprint/PlayListManager.java b/src/net/jimmc/mimprint/PlayListManager.java
index 2215281..09f1daa 100644
--- a/src/net/jimmc/mimprint/PlayListManager.java
+++ b/src/net/jimmc/mimprint/PlayListManager.java
@@ -1,345 +1,345 @@
package net.jimmc.mimprint;
import net.jimmc.swing.ButtonAction... | true | true | private void save(int playListIndex, String fileName) {
if (fileName==null || fileName.equals(""))
throw new IllegalArgumentException("No filename specified");
if (playListIndex<0 || playListIndex>2)
throw new IllegalArgumentException(
"Bad PlayList index ... | private void save(int playListIndex, String fileName) {
if (fileName==null || fileName.equals(""))
throw new IllegalArgumentException("No filename specified");
if (playListIndex<0 || playListIndex>=(customListNames.size()+2))
throw new IllegalArgumentException(
... |
diff --git a/illaclient/src/illarion/client/graphics/AvatarClothRenderer.java b/illaclient/src/illarion/client/graphics/AvatarClothRenderer.java
index 5e5e0c56..b1d6e571 100644
--- a/illaclient/src/illarion/client/graphics/AvatarClothRenderer.java
+++ b/illaclient/src/illarion/client/graphics/AvatarClothRenderer.java
@... | true | true | protected void setCloth(final int group, final AvatarCloth item) {
clothLock.writeLock().lock();
try {
if (currentClothes[group] != null) {
if (currentClothes[group].getId() == item.getId()) {
return;
}
currentClothes[gr... | protected void setCloth(final int group, final AvatarCloth item) {
clothLock.writeLock().lock();
try {
if (currentClothes[group] != null) {
if ((item != null) && (currentClothes[group].getId() == item.getId())) {
return;
}
... |
diff --git a/bpel-el-xpath20/src/main/java/org/apache/ode/bpel/elang/xpath20/runtime/JaxpFunctionResolver.java b/bpel-el-xpath20/src/main/java/org/apache/ode/bpel/elang/xpath20/runtime/JaxpFunctionResolver.java
index 9cd3d0e06..07e258d8a 100644
--- a/bpel-el-xpath20/src/main/java/org/apache/ode/bpel/elang/xpath20/runti... | false | true | public Object evaluate(List args) throws XPathFunctionException {
assert args.size() >= 2;
assert args.size() % 2 == 0;
if (__log.isDebugEnabled()) {
__log.debug("call(context=" + _ectx + " args=" + args + ")");
}
if(!(_oxpath instanceo... | public Object evaluate(List args) throws XPathFunctionException {
assert args.size() >= 2;
assert args.size() % 2 == 0;
if (__log.isDebugEnabled()) {
__log.debug("call(context=" + _ectx + " args=" + args + ")");
}
if(!(_oxpath instanceo... |
diff --git a/webapp/src/main/java/org/vaadin/tori/dashboard/DashboardViewImpl.java b/webapp/src/main/java/org/vaadin/tori/dashboard/DashboardViewImpl.java
index e0e0ac53..daf6727d 100644
--- a/webapp/src/main/java/org/vaadin/tori/dashboard/DashboardViewImpl.java
+++ b/webapp/src/main/java/org/vaadin/tori/dashboard/Dash... | true | true | public void initView() {
layout.addComponent(new HeadingLabel("Pick a Category", HeadingLevel.H2));
categoryListing = new CategoryListing(Mode.NORMAL);
layout.addComponent(categoryListing);
// this is a hack for Vaadin theme bug.
setWidth("966px");
}
| public void initView() {
layout.addComponent(new HeadingLabel("Pick a Category", HeadingLevel.H2));
categoryListing = new CategoryListing(Mode.NORMAL);
layout.addComponent(categoryListing);
// this is a hack for Vaadin theme bug.
setWidth("100%");
}
|
diff --git a/src/org/mapsforge/android/utils/GlConfigChooser.java b/src/org/mapsforge/android/utils/GlConfigChooser.java
index 16e015ea..621af76d 100644
--- a/src/org/mapsforge/android/utils/GlConfigChooser.java
+++ b/src/org/mapsforge/android/utils/GlConfigChooser.java
@@ -1,159 +1,158 @@
package org.mapsforge.androi... | false | true | public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) {
mValue = new int[1];
// Try to find a normal multisample configuration first.
int[] configSpec = {
EGL10.EGL_RED_SIZE, 5,
EGL10.EGL_GREEN_SIZE, 6,
EGL10.EGL_BLUE_SIZE, 5,
EGL10.EGL_ALPHA_SIZE, 0,
EGL10.EGL_DEPTH_SIZE, 24,
// ... | public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) {
mValue = new int[1];
// Try to find a normal multisample configuration first.
int[] configSpec = {
EGL10.EGL_RED_SIZE, 5,
EGL10.EGL_GREEN_SIZE, 6,
EGL10.EGL_BLUE_SIZE, 5,
EGL10.EGL_ALPHA_SIZE, 8,
EGL10.EGL_DEPTH_SIZE, 16,
// ... |
diff --git a/nuxeo-platform-webapp-base/src/main/java/org/nuxeo/ecm/webapp/seam/NuxeoSeamFlusher.java b/nuxeo-platform-webapp-base/src/main/java/org/nuxeo/ecm/webapp/seam/NuxeoSeamFlusher.java
index 31695da2..af0dc6eb 100644
--- a/nuxeo-platform-webapp-base/src/main/java/org/nuxeo/ecm/webapp/seam/NuxeoSeamFlusher.java
... | false | true | public void handleEvent(Event event) {
if (NuxeoSeamWebGate.isInitialized() == false) {
return;
}
String id = event.getId();
if ("flush".equals(id) || "flushSeamComponents".equals(id)) {
SeamHotReloadHelper.flush();
try {
invalidate... | public void handleEvent(Event event) {
if (NuxeoSeamWebGate.isInitialized() == false) {
return;
}
String id = event.getId();
if ("flushSeamComponents".equals(id)) {
SeamHotReloadHelper.flush();
try {
invalidateWebSessions();
... |
diff --git a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java
index b4e0b00f0..708f6421e 100644
--- a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java
+++ b/src/com/android/settings/inputmethod/Inp... | false | true | public void onCreate(Bundle icicle) {
super.onCreate(icicle);
addPreferencesFromResource(R.xml.language_settings);
try {
mDefaultInputMethodSelectorVisibility = Integer.valueOf(
getString(R.string.input_method_selector_visibility_default_value));
} c... | public void onCreate(Bundle icicle) {
super.onCreate(icicle);
addPreferencesFromResource(R.xml.language_settings);
try {
mDefaultInputMethodSelectorVisibility = Integer.valueOf(
getString(R.string.input_method_selector_visibility_default_value));
} c... |
diff --git a/src/main/java/infowall/domain/persistence/sql/ItemValueDao.java b/src/main/java/infowall/domain/persistence/sql/ItemValueDao.java
index e66834f..2e9bd2e 100644
--- a/src/main/java/infowall/domain/persistence/sql/ItemValueDao.java
+++ b/src/main/java/infowall/domain/persistence/sql/ItemValueDao.java
@@ -1,1... | true | true | public ItemValue findMostRecent(ItemRef itemRef) {
return singleResult(jdbcTemplate.query(
"select t.id,t.creation,t.dashboard_id,t.item_name,t.data,t.last_update,t.update_count from " +
"item_value t," +
"(select dashboard_id,item_name, max(la... | public ItemValue findMostRecent(ItemRef itemRef) {
return singleResult(jdbcTemplate.query(
"select t.id,t.creation,t.dashboard_id,t.item_name,t.data,t.last_update,t.update_count from " +
"item_value t," +
"(select dashboard_id,item_name, max(la... |
diff --git a/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java b/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
index 9678852..fe38bec 100644
--- a/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
+++ b/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
@@ -1,3667 +1,3667 @@
package org.post... | true | true | protected java.sql.ResultSet getImportedExportedKeys(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException
{
Field f[] = new Field[14];
f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, getMaxNameLength());
... | protected java.sql.ResultSet getImportedExportedKeys(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException
{
Field f[] = new Field[14];
f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, getMaxNameLength());
... |
diff --git a/src/org/bouncycastle/cms/CMSEnvelopedDataStreamGenerator.java b/src/org/bouncycastle/cms/CMSEnvelopedDataStreamGenerator.java
index 21fc5c38..4aadc7f3 100644
--- a/src/org/bouncycastle/cms/CMSEnvelopedDataStreamGenerator.java
+++ b/src/org/bouncycastle/cms/CMSEnvelopedDataStreamGenerator.java
@@ -1,328 +1,... | true | true | protected OutputStream open(
OutputStream out,
String encryptionOID,
SecretKey encKey,
AlgorithmParameters params,
ASN1EncodableVector recipientInfos,
String provider)
throws NoSuchAlgorithmException, NoSuchProviderEx... | protected OutputStream open(
OutputStream out,
String encryptionOID,
SecretKey encKey,
AlgorithmParameters params,
ASN1EncodableVector recipientInfos,
String provider)
throws NoSuchAlgorithmException, NoSuchProviderEx... |
diff --git a/brewtab-ircbot/src/main/java/com/brewtab/ircbot/BotChannelListener.java b/brewtab-ircbot/src/main/java/com/brewtab/ircbot/BotChannelListener.java
index adffef7..48d2e81 100644
--- a/brewtab-ircbot/src/main/java/com/brewtab/ircbot/BotChannelListener.java
+++ b/brewtab-ircbot/src/main/java/com/brewtab/ircbot... | true | true | private String[] parseArgs(String argString) {
ArrayList<String> args = new ArrayList<String>();
StringBuilder sb = new StringBuilder();
char c;
int state = 0;
for (int i = 0; i < argString.length(); i++) {
c = argString.charAt(i);
switch (state) {
... | private String[] parseArgs(String argString) {
ArrayList<String> args = new ArrayList<String>();
StringBuilder sb = new StringBuilder();
char c;
int state = 0;
for (int i = 0; i < argString.length(); i++) {
c = argString.charAt(i);
switch (state) {
... |
diff --git a/src/nerd/tuxmobil/fahrplan/congress/MetaDBOpenHelper.java b/src/nerd/tuxmobil/fahrplan/congress/MetaDBOpenHelper.java
index 35f01e0..e0edf2a 100644
--- a/src/nerd/tuxmobil/fahrplan/congress/MetaDBOpenHelper.java
+++ b/src/nerd/tuxmobil/fahrplan/congress/MetaDBOpenHelper.java
@@ -1,44 +1,44 @@
package nerd... | true | true | public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
if ((oldVersion < 2) && (newVersion >= 2)) {
db.execSQL("ALTER TABLE meta ADD COLUMN day_change_hour INTEGER DEFAULT 4");
db.execSQL("ALTER TABLE meta ADD COLUMN day_change_minute INTEGER DEFAULT 0");
}
if ((oldVersion < 3) && (new... | public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
if ((oldVersion < 2) && (newVersion >= 2)) {
db.execSQL("ALTER TABLE meta ADD COLUMN day_change_hour INTEGER DEFAULT 4");
db.execSQL("ALTER TABLE meta ADD COLUMN day_change_minute INTEGER DEFAULT 0");
}
if ((oldVersion < 3) && (new... |
diff --git a/src/main/java/org/vamdc/validator/cli/CLIProcess.java b/src/main/java/org/vamdc/validator/cli/CLIProcess.java
index 8e6578d..903a20c 100644
--- a/src/main/java/org/vamdc/validator/cli/CLIProcess.java
+++ b/src/main/java/org/vamdc/validator/cli/CLIProcess.java
@@ -1,127 +1,130 @@
package org.vamdc.validato... | true | true | public CLIProcess(OptionsParser parser){
//Check if we are asked to print usage?
if ( Boolean.TRUE.equals(parser.getOptionValue(parser.printUsage))) {
parser.printUsage();
System.exit(status);
}
//If we have output path defined, work in CLI mode
String outputPath = (String)parser.getOptionValue(parser... | public CLIProcess(OptionsParser parser){
//Check if we are asked to print usage?
if ( Boolean.TRUE.equals(parser.getOptionValue(parser.printUsage))) {
parser.printUsage();
System.exit(status);
}
//If we have output path defined, work in CLI mode
String outputPath = (String)parser.getOptionValue(parser... |
diff --git a/js/src/main/java/org/obiba/magma/js/methods/UnitMethods.java b/js/src/main/java/org/obiba/magma/js/methods/UnitMethods.java
index 5224f046..75770b84 100644
--- a/js/src/main/java/org/obiba/magma/js/methods/UnitMethods.java
+++ b/js/src/main/java/org/obiba/magma/js/methods/UnitMethods.java
@@ -1,123 +1,123 ... | true | true | public static ScriptableValue toUnit(Context ctx, Scriptable thisObj, Object[] args, Function funObj) throws MagmaJsEvaluationRuntimeException {
ScriptableValue value = (ScriptableValue) thisObj;
@SuppressWarnings("rawtypes")
Unit target = extractUnit(args[0]);
Unit<?> source = extractUnit(value);
... | public static ScriptableValue toUnit(Context ctx, Scriptable thisObj, Object[] args, Function funObj) throws MagmaJsEvaluationRuntimeException {
ScriptableValue value = (ScriptableValue) thisObj;
@SuppressWarnings("rawtypes")
Unit target = extractUnit(args[0]);
Unit<?> source = extractUnit(value);
... |
diff --git a/atlas-web/src/main/java/ae3/anatomogram/Anatomogram.java b/atlas-web/src/main/java/ae3/anatomogram/Anatomogram.java
index 483aa3bc1..9f83d7a01 100644
--- a/atlas-web/src/main/java/ae3/anatomogram/Anatomogram.java
+++ b/atlas-web/src/main/java/ae3/anatomogram/Anatomogram.java
@@ -1,299 +1,300 @@
/*
* Cop... | true | true | private void applyChanges() {
map.clear();
Collections.sort(annotations, new Comparator<Annotation>() {
public int compare(Annotation a1, Annotation a2) {
return Float.compare(a1.y, a2.y);
}
});
Editor editor = new Editor(svgDocument);
... | private void applyChanges() {
map.clear();
Collections.sort(annotations, new Comparator<Annotation>() {
public int compare(Annotation a1, Annotation a2) {
return Float.compare(a1.y, a2.y);
}
});
Editor editor = new Editor(svgDocument);
... |
diff --git a/src/org/blinz/world/Camera.java b/src/org/blinz/world/Camera.java
index 50a6edf..43b5b59 100644
--- a/src/org/blinz/world/Camera.java
+++ b/src/org/blinz/world/Camera.java
@@ -1,955 +1,961 @@
/*
* BlinzEngine - A library for large 2D world simultions and games.
* Copyright (C) 2009-2010 Blinz <gtal... | false | true | protected final void updatePosition(final int x, final int y) {
if (getData() == null) {
return;
}
if (sector1.contains(x, y) && sector2.contains(x + getWidth(), y + getHeight())) {
return;
}
sector1 = getData().getSectorOfSafe(x, y);
sector2 ... | protected final void updatePosition(final int x, final int y) {
if (getData() == null) {
return;
}
if (sector1.contains(x, y) && sector2.contains(x + getWidth(), y + getHeight())) {
return;
}
sector1 = getData().getSectorOfSafe(x, y);
sector2 ... |
diff --git a/src/main/java/org/graylog2/messagehandlers/syslog/SyslogEventHandler.java b/src/main/java/org/graylog2/messagehandlers/syslog/SyslogEventHandler.java
index 47fa35b41..f5045d3cf 100644
--- a/src/main/java/org/graylog2/messagehandlers/syslog/SyslogEventHandler.java
+++ b/src/main/java/org/graylog2/messagehan... | true | true | public void event(SyslogServerIF syslogServer, SocketAddress socketAddress, SyslogServerEventIF event) {
GELFMessage gelf = new GELFMessage();
// Print out debug information.
if (event instanceof GraylogSyslogServerEvent) {
GraylogSyslogServerEvent glEvent = (GraylogSyslogServe... | public void event(SyslogServerIF syslogServer, SocketAddress socketAddress, SyslogServerEventIF event) {
GELFMessage gelf = new GELFMessage();
// Print out debug information.
if (event instanceof GraylogSyslogServerEvent) {
GraylogSyslogServerEvent glEvent = (GraylogSyslogServe... |
diff --git a/servlet/src/main/java/io/undertow/servlet/spec/RequestDispatcherImpl.java b/servlet/src/main/java/io/undertow/servlet/spec/RequestDispatcherImpl.java
index 8e9848595..9d981e32e 100644
--- a/servlet/src/main/java/io/undertow/servlet/spec/RequestDispatcherImpl.java
+++ b/servlet/src/main/java/io/undertow/ser... | true | true | public void include(final ServletRequest request, final ServletResponse response) throws ServletException, IOException {
HttpServletRequestImpl requestImpl = HttpServletRequestImpl.getRequestImpl(request);
final HttpServletResponseImpl responseImpl = HttpServletResponseImpl.getResponseImpl(response... | public void include(final ServletRequest request, final ServletResponse response) throws ServletException, IOException {
HttpServletRequestImpl requestImpl = HttpServletRequestImpl.getRequestImpl(request);
final HttpServletResponseImpl responseImpl = HttpServletResponseImpl.getResponseImpl(response... |
diff --git a/src/com/orangeleap/tangerine/web/customization/tag/fields/SectionFieldTag.java b/src/com/orangeleap/tangerine/web/customization/tag/fields/SectionFieldTag.java
index f128a3e0..ea71b41b 100644
--- a/src/com/orangeleap/tangerine/web/customization/tag/fields/SectionFieldTag.java
+++ b/src/com/orangeleap/tange... | false | true | protected void writeSections(List<SectionDefinition> sectionDefinitions) throws Exception {
if (sectionDefinitions != null) {
int oneColumnCount = 0;
for (int x = 0; x < sectionDefinitions.size(); x++) {
SectionDefinition sectionDef = sectionDefinitions.get(x);
List<SectionField> sectionFields = page... | protected void writeSections(List<SectionDefinition> sectionDefinitions) throws Exception {
if (sectionDefinitions != null) {
int oneColumnCount = 0;
for (int x = 0; x < sectionDefinitions.size(); x++) {
SectionDefinition sectionDef = sectionDefinitions.get(x);
List<SectionField> sectionFields = page... |
diff --git a/src/main/java/com/secondstack/swing/Main.java b/src/main/java/com/secondstack/swing/Main.java
index e4b30eb..a3a8fd7 100644
--- a/src/main/java/com/secondstack/swing/Main.java
+++ b/src/main/java/com/secondstack/swing/Main.java
@@ -1,13 +1,14 @@
package com.secondstack.swing;
/**
* Hello world!
*
... | true | true | public static void main( String[] args )
{
System.out.println( false ? "benar":"salah" );
}
| public static void main( String[] args )
{
String s = "cobalah";
System.out.println(s.substring(0, s.length()-3));
}
|
diff --git a/org.rapidbeans.rapidenv/src/org/rapidbeans/rapidenv/config/file/ConfigFileXmlTaskDeletenode.java b/org.rapidbeans.rapidenv/src/org/rapidbeans/rapidenv/config/file/ConfigFileXmlTaskDeletenode.java
index ad9ff3b..ab4c516 100644
--- a/org.rapidbeans.rapidenv/src/org/rapidbeans/rapidenv/config/file/ConfigFileX... | false | true | public boolean check(final boolean execute, final boolean silent) {
boolean ok = true;
if (execute) {
ok = false;
}
final RapidEnvInterpreter interpreter = RapidEnvInterpreter.getInstance();
final ConfigFileXml fileCfg = (ConfigFileXml) getParentBean();
final ConfigFileEditorXml editor = (ConfigFileEdit... | public boolean check(final boolean execute, final boolean silent) {
boolean ok = true;
if (execute) {
ok = false;
}
final RapidEnvInterpreter interpreter = RapidEnvInterpreter.getInstance();
final ConfigFileXml fileCfg = (ConfigFileXml) getParentBean();
final ConfigFileEditorXml editor = (ConfigFileEdit... |
diff --git a/src/main/java/jp/xet/baseunits/intervals/IntervalComparatorLowerUpper.java b/src/main/java/jp/xet/baseunits/intervals/IntervalComparatorLowerUpper.java
index a660d7e..edc6f94 100644
--- a/src/main/java/jp/xet/baseunits/intervals/IntervalComparatorLowerUpper.java
+++ b/src/main/java/jp/xet/baseunits/interva... | true | true | public int compare(Interval<T> e1, Interval<T> e2) {
if (e1 == null || e2 == null) {
throw new NullPointerException();
}
// 下限限界優先ロジック
if (e1.isEmpty() && e2.isEmpty()) {
return 0;
} else if (e1.isEmpty()) {
return 1;
} else if (e2.isEmpty()) {
return -1;
}
int upperComparance = e1.up... | public int compare(Interval<T> e1, Interval<T> e2) {
if (e1 == null || e2 == null) {
throw new NullPointerException();
}
// 下限限界優先ロジック
if (e1.isEmpty() && e2.isEmpty()) {
return 0;
} else if (e1.isEmpty()) {
return 1;
} else if (e2.isEmpty()) {
return -1;
}
int upperComparance = e1.up... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/AbstractEditQueryWizard.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/AbstractEditQueryWizard.java
index 7b55f9696..c35a78bca 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal... | false | true | public boolean performFinish() {
AbstractRepositoryQuery queryToRun = null;
if (page != null) {
// TODO: get rid of this?
queryToRun = page.getQuery();
} else {
queryToRun = this.query;
}
if (queryToRun != null) {
TasksUiPlugin.getTaskListManager().getTaskList().deleteQuery(queryToRun);
TasksU... | public boolean performFinish() {
if (query != null) {
TasksUiPlugin.getTaskListManager().getTaskList().deleteQuery(query);
}
AbstractRepositoryQuery queryToRun = page != null ? page.getQuery() : this.query;
if (queryToRun != null) {
TasksUiPlugin.getTaskListManager().getTaskList().addQuery(queryToRun);
... |
diff --git a/src/org/basex/api/xqj/BXQDynamicContext.java b/src/org/basex/api/xqj/BXQDynamicContext.java
index 2431dcd90..b4c8a131a 100644
--- a/src/org/basex/api/xqj/BXQDynamicContext.java
+++ b/src/org/basex/api/xqj/BXQDynamicContext.java
@@ -1,240 +1,241 @@
package org.basex.api.xqj;
import static org.basex.api.... | true | true | protected XQResultSequence execute() throws XQException {
opened();
final XQContext ctx = query.ctx;
ctx.ns = sc.ctx.ns;
try {
if(sc.timeout != 0) {
new Action() {
public void run() {
ctx.stop();
}
}.delay(sc.timeout * 1000);
}
que... | protected XQResultSequence execute() throws XQException {
opened();
final XQContext ctx = query.ctx;
ctx.ns = sc.ctx.ns;
try {
if(sc.timeout != 0) {
new Action() {
public void run() {
ctx.stop();
}
}.delay(sc.timeout * 1000);
}
que... |
diff --git a/src/Afck.java b/src/Afck.java
index 056b36d..2e7c291 100644
--- a/src/Afck.java
+++ b/src/Afck.java
@@ -1,215 +1,215 @@
/* (C) Copyright 2013 Stephen Chandler Paul (thatslyude@gmail.com)
*
* This program and accompanying materials are made available under the terms of
* the GNU Lesser General Public... | true | true | public static void main(String[] args) {
// LGPL stuff
System.out.print("afck Copyright (C) 2013 Chandler Paul\n" +
"This program comes with ABSOLUTELY NO WARRANTY and is distributed under the terms" +
"of the LGPL license. For more information, please see the file LICENSE at th... | public static void main(String[] args) {
// LGPL stuff
System.out.print("afck Copyright (C) 2013 Chandler Paul\n" +
"This program comes with ABSOLUTELY NO WARRANTY and is distributed under the terms" +
"of the LGPL license. For more information, please see the fi... |
diff --git a/src/edu/common/dynamicextensions/processor/ApplyDataEntryFormProcessor.java b/src/edu/common/dynamicextensions/processor/ApplyDataEntryFormProcessor.java
index 70ca72827..d7520915a 100644
--- a/src/edu/common/dynamicextensions/processor/ApplyDataEntryFormProcessor.java
+++ b/src/edu/common/dynamicextension... | true | true | public Boolean editDataEntryForm(ContainerInterface container,
Map<BaseAbstractAttributeInterface, Object> attributeValueMap, Long recordIdentifier)
throws DynamicExtensionsApplicationException, DynamicExtensionsSystemException,
SQLException
{
//Quick fix:
if (container.getAbstractEntity() instanceof Ent... | public Boolean editDataEntryForm(ContainerInterface container,
Map<BaseAbstractAttributeInterface, Object> attributeValueMap, Long recordIdentifier)
throws DynamicExtensionsApplicationException, DynamicExtensionsSystemException,
SQLException
{
//Quick fix:
if (container.getAbstractEntity() instanceof Ent... |
diff --git a/BuyIt/src/main/java/com/epam/lab/buyit/controller/service/auction/AuctionServiceImp.java b/BuyIt/src/main/java/com/epam/lab/buyit/controller/service/auction/AuctionServiceImp.java
index 3924fc8..6123935 100644
--- a/BuyIt/src/main/java/com/epam/lab/buyit/controller/service/auction/AuctionServiceImp.java
++... | true | true | public boolean buyItServe(int id, int count)
throws AuctionAllreadyClosedException, WrongProductCountException {
Auction auction = getByProductId(id);
String oldStatus = auction.getStatus();
if (oldStatus.equals("closed"))
throw new AuctionAllreadyClosedException(
"Try to bought allready closed auc... | public boolean buyItServe(int id, int count)
throws AuctionAllreadyClosedException, WrongProductCountException {
Auction auction = getByProductId(id);
String oldStatus = auction.getStatus();
if (oldStatus.equals("closed"))
throw new AuctionAllreadyClosedException(
"Try to bought allready closed auc... |
diff --git a/Model/src/java/fr/cg95/cvq/dao/request/external/hibernate/RequestExternalActionDAO.java b/Model/src/java/fr/cg95/cvq/dao/request/external/hibernate/RequestExternalActionDAO.java
index bbdb8099a..0c88c11fa 100644
--- a/Model/src/java/fr/cg95/cvq/dao/request/external/hibernate/RequestExternalActionDAO.java
+... | true | true | public Long getCount(Set<Critere> criteriaSet, boolean lastOnly) {
StringBuffer sb = new StringBuffer();
sb.append("select count(*) from request_external_action");
if (lastOnly) {
List<BigInteger> ids = HibernateUtil.getSession()
.createSQLQuery("select max(id) fr... | public Long getCount(Set<Critere> criteriaSet, boolean lastOnly) {
StringBuffer sb = new StringBuffer();
sb.append("select count(*) from request_external_action");
if (lastOnly) {
List<BigInteger> ids = HibernateUtil.getSession()
.createSQLQuery("select max(id) fr... |
diff --git a/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityPlanter.java b/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityPlanter.java
index 3e64540f..4a4b1e2a 100644
--- a/src/powercrystals/minefactoryreloaded/tile/machine/TileEntityPlanter.java
+++ b/src/powercrystals/minefactoryreloaded/t... | true | true | public boolean activateMachine()
{
BlockPosition bp = _areaManager.getNextBlock().copy();
bp.y += 1;
ItemStack match = _inventory[getPlanterSlotIdFromBp(bp)];
for(int stackIndex = 10; stackIndex < 25; stackIndex++)
{
ItemStack availableStack = getStackInSlot(stackIndex);
//skip planting at... | public boolean activateMachine()
{
BlockPosition bp = _areaManager.getNextBlock().copy();
bp.y += 1;
ItemStack match = _inventory[getPlanterSlotIdFromBp(bp)];
for(int stackIndex = 10; stackIndex <= 25; stackIndex++)
{
ItemStack availableStack = getStackInSlot(stackIndex);
//skip planting a... |
diff --git a/ShootPlane/src/com/beancore/ui/HelpDialog.java b/ShootPlane/src/com/beancore/ui/HelpDialog.java
index c9b1328..aa6236e 100644
--- a/ShootPlane/src/com/beancore/ui/HelpDialog.java
+++ b/ShootPlane/src/com/beancore/ui/HelpDialog.java
@@ -1,47 +1,47 @@
package com.beancore.ui;
import java.awt.BorderLayout... | true | true | private void initComponent() {
this.helpContentTextPane = new JTextPane();
this.helpContentTextPane.setEditable(false);
this.helpContentTextPane.setContentType("text/html");
try {
this.helpContentTextPane.setText(FileUtil.readFileToString(Config.HELP_FILE_PATH));
} catch (IOException e) {
e.printStac... | private void initComponent() {
this.helpContentTextPane = new JTextPane();
this.helpContentTextPane.setEditable(false);
this.helpContentTextPane.setContentType("text/html;charset=utf-8");
try {
this.helpContentTextPane.setText(FileUtil.readFileToString(Config.HELP_FILE_PATH));
} catch (IOException e) {
... |
diff --git a/src/gov/nih/nci/caintegrator/application/analysis/gp/GenePatternIntegrationHelper.java b/src/gov/nih/nci/caintegrator/application/analysis/gp/GenePatternIntegrationHelper.java
index 35c2d39..445a3f1 100644
--- a/src/gov/nih/nci/caintegrator/application/analysis/gp/GenePatternIntegrationHelper.java
+++ b/sr... | true | true | public static String gpHomeURL(HttpServletRequest request,String userName, String publicUserName, String encryptKey)
throws Exception {
HttpSession session = request.getSession();
String ticketString = null;
String gpserverURL = System.getProperty("gov.nih.nci.caintegrator.gp.server")!=null ?
(Stri... | public static String gpHomeURL(HttpServletRequest request,String userName, String publicUserName, String encryptKey)
throws Exception {
HttpSession session = request.getSession();
String ticketString = null;
String gpserverURL = System.getProperty("gov.nih.nci.caintegrator.gp.server")!=null ?
(Stri... |
diff --git a/src/main/java/org/basex/gui/dialog/DialogResources.java b/src/main/java/org/basex/gui/dialog/DialogResources.java
index fd87387f7..490722fe1 100644
--- a/src/main/java/org/basex/gui/dialog/DialogResources.java
+++ b/src/main/java/org/basex/gui/dialog/DialogResources.java
@@ -1,315 +1,315 @@
package org.ba... | true | true | public DialogResources(final DialogProps d) {
setLayout(new BorderLayout(0, 5));
dialog = d;
// init tree - additional root node necessary to bypass
// the egg/chicken dilemma
final DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode();
tree = new BaseXTree(rootNode, d);
tree.set... | public DialogResources(final DialogProps d) {
setLayout(new BorderLayout(0, 5));
dialog = d;
// init tree - additional root node necessary to bypass
// the egg/chicken dilemma
final DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode();
tree = new BaseXTree(rootNode, d);
tree.set... |
diff --git a/funcTests/source/org/openfaces/component/datechooser/DateChooserTest.java b/funcTests/source/org/openfaces/component/datechooser/DateChooserTest.java
index 11c0c5fbe..0b6c1de4b 100644
--- a/funcTests/source/org/openfaces/component/datechooser/DateChooserTest.java
+++ b/funcTests/source/org/openfaces/compon... | true | true | private void checkEnabledStyles(DateChooserInspector dateChooser, ElementInspector button, CalendarInspector calendarInspector, ElementInspector calendarBody, InputInspector field) {
/*check field and button style*/
// style="width: 230px;"
dateChooser.assertWidth(230);
// buttonSt... | private void checkEnabledStyles(DateChooserInspector dateChooser, ElementInspector button, CalendarInspector calendarInspector, ElementInspector calendarBody, InputInspector field) {
/*check field and button style*/
// style="width: 230px;"
dateChooser.assertWidth(230);
// buttonSt... |
diff --git a/src/main/java/com/crumbdev/chris/Danroth/Danroth.java b/src/main/java/com/crumbdev/chris/Danroth/Danroth.java
index 9ef6141..f61095b 100644
--- a/src/main/java/com/crumbdev/chris/Danroth/Danroth.java
+++ b/src/main/java/com/crumbdev/chris/Danroth/Danroth.java
@@ -1,126 +1,126 @@
package com.crumbdev.chris... | false | true | public static void main(String[] args)
{
//Define variables
Boolean usenickserv = false;
String nickserv = "";
String server = "irc.esper.net";
int port = 6667;
List channels = new ArrayList();
String nick = "Danroth";
String ident = "Danroth";
... | public static void main(String[] args)
{
//Define variables
Boolean usenickserv = false;
String nickserv = "";
String server = "irc.esper.net";
int port = 6667;
List channels = new ArrayList();
String nick = "Danroth";
String ident = "Danroth";
... |
diff --git a/src/main/java/com/mpatric/mp3agic/ID3v2ObseletePictureFrameData.java b/src/main/java/com/mpatric/mp3agic/ID3v2ObseletePictureFrameData.java
index 00006ba..dcb3764 100644
--- a/src/main/java/com/mpatric/mp3agic/ID3v2ObseletePictureFrameData.java
+++ b/src/main/java/com/mpatric/mp3agic/ID3v2ObseletePictureFr... | true | true | protected void unpackFrameData(byte[] bytes) throws InvalidDataException {
String filetype;
try {
filetype = BufferTools.byteBufferToString(bytes, 1, 3);
} catch (UnsupportedEncodingException e) {
filetype = "unknown";
}
mimeType = "image/" + filetype.toLowerCase();
pictureType = bytes[4];
int mar... | protected void unpackFrameData(byte[] bytes) throws InvalidDataException {
String filetype;
try {
filetype = BufferTools.byteBufferToString(bytes, 1, 3);
} catch (UnsupportedEncodingException e) {
filetype = "unknown";
}
mimeType = "image/" + filetype.toLowerCase();
pictureType = bytes[4];
int mar... |
diff --git a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/javascript/typeinfo/JSTypeSet.java b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/javascript/typeinfo/JSTypeSet.java
index e2f82384..b4f7d8bc 100644
--- a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/javascript/... | true | true | public static IRType normalize(ITypeSystem context, JSType type) {
if (type instanceof ParameterizedType) {
final ParameterizedType parameterized = (ParameterizedType) type;
Type target = parameterized.getTarget();
if (target == null) {
return any();
}
if (context != null) {
final EList<JSType... | public static IRType normalize(ITypeSystem context, JSType type) {
if (type instanceof ParameterizedType) {
final ParameterizedType parameterized = (ParameterizedType) type;
Type target = parameterized.getTarget();
if (target == null) {
return any();
}
if (context != null) {
final EList<JSType... |
diff --git a/src/music/midi/SequencePlayer.java b/src/music/midi/SequencePlayer.java
index 76afff5..31f4461 100644
--- a/src/music/midi/SequencePlayer.java
+++ b/src/music/midi/SequencePlayer.java
@@ -1,245 +1,245 @@
package music.midi;
import java.io.IOException;
import java.text.MessageFormat;
import java.util.... | true | true | public static void main(String[] args) {
SequencePlayer player;
// create a new player, with 120 beats (i.e. quarter note) per
// minute, with 2 tick per quarter note
player = new SequencePlayer(120, 2);
final Pitch C = new Pitch('C');
int start = 1;
for (Pi... | public static void main(String[] args) {
SequencePlayer player;
// create a new player, with 120 beats (i.e. quarter note) per
// minute, with 2 tick per quarter note
player = new SequencePlayer(120, 2);
final Pitch C = new Pitch('C');
int start = 1;
for (Pi... |
diff --git a/ChronoMaticFrontEnd/src/be/artesis/timelog/gui/GUIForm.java b/ChronoMaticFrontEnd/src/be/artesis/timelog/gui/GUIForm.java
index 5d85805..abf1bf0 100644
--- a/ChronoMaticFrontEnd/src/be/artesis/timelog/gui/GUIForm.java
+++ b/ChronoMaticFrontEnd/src/be/artesis/timelog/gui/GUIForm.java
@@ -1,2066 +1,2067 @@
... | true | true | private void initComponents() {
creatingProject = false;
contentJTabbedPane = new javax.swing.JTabbedPane();
contentJTabbedPane.setForeground(Color.WHITE);
homeJPanel = new javax.swing.JPanel();
homeJLabel = new javax.swing.JLabel();
homeJLabel.setBounds(10, 11, 62, 16);
workJButton = new javax.swing.JBu... | private void initComponents() {
creatingProject = false;
contentJTabbedPane = new javax.swing.JTabbedPane();
contentJTabbedPane.setForeground(Color.WHITE);
homeJPanel = new javax.swing.JPanel();
homeJLabel = new javax.swing.JLabel();
homeJLabel.setBounds(10, 11, 62, 16);
workJButton = new javax.swing.JBu... |
diff --git a/nsu-connect/src/main/java/ru/tulupov/nsuconnect/NsuConnectApplication.java b/nsu-connect/src/main/java/ru/tulupov/nsuconnect/NsuConnectApplication.java
index 91df825..e73d581 100644
--- a/nsu-connect/src/main/java/ru/tulupov/nsuconnect/NsuConnectApplication.java
+++ b/nsu-connect/src/main/java/ru/tulupov/n... | true | true | public void onCreate() {
super.onCreate();
System.setProperty("http.keepAlive", "false");
Thread.UncaughtExceptionHandler handler = new ExceptionReporter(
EasyTracker.getInstance(this),
GAServiceManager.getInstance(),
Thread.getDefaultUncaugh... | public void onCreate() {
super.onCreate();
System.setProperty("http.keepAlive", "false");
Thread.UncaughtExceptionHandler handler = new ExceptionReporter(
EasyTracker.getInstance(this),
GAServiceManager.getInstance(),
Thread.getDefaultUncaugh... |
diff --git a/taedium/src/me/taedium/android/Register.java b/taedium/src/me/taedium/android/Register.java
index 3366cb6..0d50abc 100644
--- a/taedium/src/me/taedium/android/Register.java
+++ b/taedium/src/me/taedium/android/Register.java
@@ -1,122 +1,122 @@
package me.taedium.android;
import android.app.DatePickerDi... | true | true | protected void onCreate(Bundle savedState) {
super.onCreate(savedState);
setContentView(R.layout.register);
setTitle(R.string.register_title);
initializeHeader();
// Set header buttons to no longer be visable since we are on Register page
Button btAd... | protected void onCreate(Bundle savedState) {
super.onCreate(savedState);
setContentView(R.layout.register);
setTitle(R.string.register_title);
initializeHeader();
// Set header buttons to no longer be visable since we are on Register page
Button btAd... |
diff --git a/closure/closure-compiler/src/com/google/javascript/jscomp/JSModuleGraph.java b/closure/closure-compiler/src/com/google/javascript/jscomp/JSModuleGraph.java
index 1ab58011e..bac1570cd 100644
--- a/closure/closure-compiler/src/com/google/javascript/jscomp/JSModuleGraph.java
+++ b/closure/closure-compiler/src... | true | true | List<CompilerInput> manageDependencies(
List<String> entryPoints,
List<CompilerInput> inputs)
throws CircularDependencyException, MissingProvideException {
SortedDependencies<CompilerInput> sorter =
new SortedDependencies<CompilerInput>(inputs);
Set<CompilerInput> entryPointInputs =
... | public List<CompilerInput> manageDependencies(
List<String> entryPoints,
List<CompilerInput> inputs)
throws CircularDependencyException, MissingProvideException {
SortedDependencies<CompilerInput> sorter =
new SortedDependencies<CompilerInput>(inputs);
Set<CompilerInput> entryPointIn... |
diff --git a/core/plugins/org.eclipse.dltk.validators.ui/src/org/eclipse/dltk/validators/internal/ui/popup/actions/ValidateSelectionWithConsoleAction.java b/core/plugins/org.eclipse.dltk.validators.ui/src/org/eclipse/dltk/validators/internal/ui/popup/actions/ValidateSelectionWithConsoleAction.java
index 2b05027f1..4063... | true | true | protected void invoceValidationFor(final OutputStream out,
final List elements, final List resources,
IProgressMonitor monitor) {
ValidatorRuntime.executeAllValidatorsWithConsole(out,
elements, resources, monitor);
}
| protected void invoceValidationFor(final OutputStream out,
final List elements, final List resources,
IProgressMonitor monitor) {
ValidatorRuntime.executeAllValidators(out,
elements, resources, monitor);
}
|
diff --git a/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/management/ComChannel.java b/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/management/ComChannel.java
index 7543a7e2..2f6350bb 100644
--- a/fog.routing.hrm/src/de/tuilmenau/ics/fog/routing/hierarchical/management/ComChannel.java
... | true | true | public boolean receiveData(Serializable pData) throws NetworkException
{
if (HRMConfig.DebugOutput.SHOW_RECEIVED_CHANNEL_PACKETS){
Logging.log(this, "RECEIVED DATA from \"" + getPeerL2Address() + "/" + getPeerHRMID() + "\": " + pData);
}
/*
* Invalid data
*/
if(pData == null) {
throw new Netwo... | public boolean receiveData(Serializable pData) throws NetworkException
{
if (HRMConfig.DebugOutput.SHOW_RECEIVED_CHANNEL_PACKETS){
Logging.log(this, "RECEIVED DATA from \"" + getPeerL2Address() + "/" + getPeerHRMID() + "\": " + pData);
}
/*
* Invalid data
*/
if(pData == null) {
throw new Netwo... |
diff --git a/src/haven/error/HtmlReporter.java b/src/haven/error/HtmlReporter.java
index b0bf391..dc9d26c 100644
--- a/src/haven/error/HtmlReporter.java
+++ b/src/haven/error/HtmlReporter.java
@@ -1,208 +1,209 @@
package haven.error;
import java.io.*;
import java.util.*;
import java.text.*;
public class HtmlRe... | true | true | public static void makeindex(OutputStream outs, Map<File, Report> reports, Map<File, Exception> failed) throws IOException {
PrintWriter out = new PrintWriter(new OutputStreamWriter(outs, "UTF-8"));
out.print(htmlhead("Error Index"));
out.println("<h1>Error Index</h1>");
Set<String> props = new TreeSet<String... | public static void makeindex(OutputStream outs, Map<File, Report> reports, Map<File, Exception> failed) throws IOException {
PrintWriter out = new PrintWriter(new OutputStreamWriter(outs, "UTF-8"));
out.print(htmlhead("Error Index"));
out.println("<h1>Error Index</h1>");
Set<String> props = new TreeSet<String... |
diff --git a/src/main/java/org/springframework/social/tumblr/api/impl/json/PostMixin.java b/src/main/java/org/springframework/social/tumblr/api/impl/json/PostMixin.java
index 9b4f284..a10a94f 100644
--- a/src/main/java/org/springframework/social/tumblr/api/impl/json/PostMixin.java
+++ b/src/main/java/org/springframewor... | true | true | public Post deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
JsonNode root = jp.readValueAsTree();
Post post = new Post();
post.setId(root.get("id").getLongValue());
post.setBlogName(root.get("blog_name").getT... | public Post deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
JsonNode root = jp.readValueAsTree();
Post post = new Post();
post.setId(root.get("id").getLongValue());
post.setBlogName(root.get("blog_name").getT... |
diff --git a/core/src/main/java/org/dynjs/runtime/linker/PrimitivesLinker.java b/core/src/main/java/org/dynjs/runtime/linker/PrimitivesLinker.java
index bc4e985c..20add5af 100644
--- a/core/src/main/java/org/dynjs/runtime/linker/PrimitivesLinker.java
+++ b/core/src/main/java/org/dynjs/runtime/linker/PrimitivesLinker.ja... | true | true | public GuardedInvocation getGuardedInvocation(LinkRequest linkRequest, LinkerServices linkerServices) throws Exception {
Object[] arguments = linkRequest.getArguments();
Object receiver = arguments[0];
Class<? extends Object> receiverClass = receiver.getClass();
Map<String, MethodHan... | public GuardedInvocation getGuardedInvocation(LinkRequest linkRequest, LinkerServices linkerServices) throws Exception {
Object[] arguments = linkRequest.getArguments();
Object receiver = arguments[0];
Class<? extends Object> receiverClass = receiver.getClass();
Map<String, MethodHan... |
diff --git a/generator/src/main/java/org/richfaces/cdk/templatecompiler/JavaClassModelWrapper.java b/generator/src/main/java/org/richfaces/cdk/templatecompiler/JavaClassModelWrapper.java
index 3b7be02..9ff7842 100644
--- a/generator/src/main/java/org/richfaces/cdk/templatecompiler/JavaClassModelWrapper.java
+++ b/gener... | true | true | public TemplateModel wrap(Object obj) throws TemplateModelException {
// TODO wrap specified model classes.
TemplateModel templateModel;
if (obj instanceof JavaStatement) {
templateModel = new MethodBodyTemplateModel((JavaStatement) obj, this);
} else if (obj instanceof... | public TemplateModel wrap(Object obj) throws TemplateModelException {
TemplateModel templateModel;
if (obj instanceof JavaStatement) {
templateModel = new MethodBodyTemplateModel((JavaStatement) obj, this);
} else if (obj instanceof ELType){
templateModel = new ELTy... |
diff --git a/src/main/java/me/eccentric_nz/plugins/TARDIS/TARDISPlayerListener.java b/src/main/java/me/eccentric_nz/plugins/TARDIS/TARDISPlayerListener.java
index 5e0dfcec3..5f2941c5e 100644
--- a/src/main/java/me/eccentric_nz/plugins/TARDIS/TARDISPlayerListener.java
+++ b/src/main/java/me/eccentric_nz/plugins/TARDIS/T... | false | true | public void onPlayerInteract(PlayerInteractEvent event) {
final Player player = event.getPlayer();
String playerNameStr = player.getName();
int savedx = 0, savedy = 0, savedz = 0, cx = 0, cz = 0;
Block block = event.getClickedBlock();
if (block != null) {
Materi... | public void onPlayerInteract(PlayerInteractEvent event) {
final Player player = event.getPlayer();
String playerNameStr = player.getName();
int savedx = 0, savedy = 0, savedz = 0, cx = 0, cz = 0;
Block block = event.getClickedBlock();
if (block != null) {
Materi... |
diff --git a/chips/src/com/android/ex/chips/RecipientAlternatesAdapter.java b/chips/src/com/android/ex/chips/RecipientAlternatesAdapter.java
index 465c90e..0693df2 100644
--- a/chips/src/com/android/ex/chips/RecipientAlternatesAdapter.java
+++ b/chips/src/com/android/ex/chips/RecipientAlternatesAdapter.java
@@ -1,468 +... | true | true | public static void getMatchingRecipients(Context context, ArrayList<String> inAddresses,
int addressType, Account account, RecipientMatchCallback callback) {
Queries.Query query;
if (addressType == QUERY_TYPE_EMAIL) {
query = Queries.EMAIL;
} else {
query ... | public static void getMatchingRecipients(Context context, ArrayList<String> inAddresses,
int addressType, Account account, RecipientMatchCallback callback) {
Queries.Query query;
if (addressType == QUERY_TYPE_EMAIL) {
query = Queries.EMAIL;
} else {
query ... |
diff --git a/sigil/common/obr/src/org/apache/felix/sigil/obr/OBRRepositoryProvider.java b/sigil/common/obr/src/org/apache/felix/sigil/obr/OBRRepositoryProvider.java
index e2fab6a97..e9de83b41 100644
--- a/sigil/common/obr/src/org/apache/felix/sigil/obr/OBRRepositoryProvider.java
+++ b/sigil/common/obr/src/org/apache/fe... | false | true | public IBundleRepository createRepository(String id, Properties preferences)
throws RepositoryException
{
String urlStr = preferences.getProperty("url");
if (urlStr == null)
throw new RepositoryException("url is not specified.");
try
{
File urlFil... | public IBundleRepository createRepository(String id, Properties preferences)
throws RepositoryException
{
String urlStr = preferences.getProperty("url");
if (urlStr == null)
throw new RepositoryException("url is not specified.");
try
{
File urlFil... |
diff --git a/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getDefaults.java b/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getDefaults.java
index afd4dafe..6dce3010 100644
--- a/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/getDefaults.java
+++ b/gnu/testlet/javax/swing/plaf/metal/MetalLookAndFeel/ge... | true | true | public void test(TestHarness harness)
{
MyMetalLookAndFeel.setCurrentTheme(new TestTheme());
MyMetalLookAndFeel laf = new MyMetalLookAndFeel();
// The following does not work, at least not with JDK1.5. Maybe
// don't use the 'defaults' parameter anymore...
// UIDefaults defaults = new UIDefaul... | public void test(TestHarness harness)
{
MyMetalLookAndFeel.setCurrentTheme(new TestTheme());
MyMetalLookAndFeel laf = new MyMetalLookAndFeel();
// The following does not work, at least not with JDK1.5. Maybe
// don't use the 'defaults' parameter anymore...
// UIDefaults defaults = new UIDefaul... |
diff --git a/com/core/util/RecordPlay.java b/com/core/util/RecordPlay.java
index ac7a30c..8f06bac 100644
--- a/com/core/util/RecordPlay.java
+++ b/com/core/util/RecordPlay.java
@@ -1,212 +1,213 @@
package com.core.util;
import java.io.*;
import java.awt.event.*;
import javax.sound.sampled.*;
public class Recor... | true | true | public void capture(){
class CaptureThread extends Thread {
byte []tempBuffer = new byte[10000] ;
public void run(){
byteArrayOutputStream = new ByteArrayOutputStream() ;
totaldatasize = 0 ;
stopCapture = false ;
rec... | public void capture(){
class CaptureThread extends Thread {
byte []tempBuffer = new byte[10000] ;
public void run(){
byteArrayOutputStream = new ByteArrayOutputStream() ;
totaldatasize = 0 ;
stopCapture = false ;
rec... |
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandr.java b/Essentials/src/com/earth2me/essentials/commands/Commandr.java
index 0d68fda..d899475 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandr.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandr.java
@@ -1,62 +1,63 ... | true | true | public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception
{
if (args.length < 1)
{
throw new NotEnoughArgumentsException();
}
String message = getFinalArg(args, 0);
IReplyTo replyTo = sender instanceof Player ? ess.getUser((Player)sender) : Console.getCons... | public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception
{
if (args.length < 1)
{
throw new NotEnoughArgumentsException();
}
String message = getFinalArg(args, 0);
IReplyTo replyTo = sender instanceof Player ? ess.getUser((Player)sender) : Console.getCons... |
diff --git a/math/src/test/java/org/apache/mahout/math/MahoutTestCase.java b/math/src/test/java/org/apache/mahout/math/MahoutTestCase.java
index ab15f1e8c..c6fda876d 100644
--- a/math/src/test/java/org/apache/mahout/math/MahoutTestCase.java
+++ b/math/src/test/java/org/apache/mahout/math/MahoutTestCase.java
@@ -1,96 +1... | true | true | protected final File getTestTempDir() throws IOException {
if (testTempDir == null) {
String systemTmpDir = System.getProperty("mahout.test.directory");
if (systemTmpDir == null)
systemTmpDir = "target/";
systemTmpDir += "test-data";
long simpleRandomLong = (long) (Long.MAX_VALUE * Ma... | protected final File getTestTempDir() throws IOException {
if (testTempDir == null) {
String systemTmpDir = System.getProperty("mahout.test.directory");
if (systemTmpDir == null){
systemTmpDir = "target/";
systemTmpDir += "test-data";
}
long simpleRandomLong = (long) (Long.... |
diff --git a/AsteroidMiner/src/ch/kanti_wohlen/asteroidminer/entities/Asteroid.java b/AsteroidMiner/src/ch/kanti_wohlen/asteroidminer/entities/Asteroid.java
index b58727c..6559dd0 100644
--- a/AsteroidMiner/src/ch/kanti_wohlen/asteroidminer/entities/Asteroid.java
+++ b/AsteroidMiner/src/ch/kanti_wohlen/asteroidminer/en... | true | true | private static BodyDef createBodyDef(Vector2 position, Vector2 velocity) {
final BodyDef bodyDef = new BodyDef();
bodyDef.type = BodyType.DynamicBody;
bodyDef.position.set(position);
bodyDef.angle = MathUtils.random(2 * MathUtils.PI);
bodyDef.linearVelocity.set(velocity);
bodyDef.gravityScale = 0.1f;
re... | private static BodyDef createBodyDef(Vector2 position, Vector2 velocity) {
final BodyDef bodyDef = new BodyDef();
bodyDef.type = BodyType.DynamicBody;
bodyDef.position.set(position);
bodyDef.angle = MathUtils.random(2 * MathUtils.PI);
if (velocity != null) {
bodyDef.linearVelocity.set(velocity);
}
bod... |
diff --git a/src/org/inceptus/Mecanum.java b/src/org/inceptus/Mecanum.java
index 2da8ac6..a409d77 100644
--- a/src/org/inceptus/Mecanum.java
+++ b/src/org/inceptus/Mecanum.java
@@ -1,95 +1,95 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Re... | true | true | public void teleopPeriodic() {
//Initiate the X,Y,Z vars to be set later
double X, Y, Z;
//Check if using iOS interface or not
if(iOS){
//Axis id's from http://comets.firstobjective.org/DSHelp.html
X = joy1.getRawAxis(2);
Y = joy1.getRawAxis(1);
... | public void teleopPeriodic() {
//Initiate the X,Y,Z vars to be set later
double X, Y, Z;
//Check if using iOS interface or not
if(iOS){
//Axis id's from http://comets.firstobjective.org/DSHelp.html
X = joy1.getRawAxis(1);
Y = joy1.getRawAxis(2);
... |
diff --git a/src/uk/me/parabola/mkgmap/osmstyle/housenumber/HousenumberMatch.java b/src/uk/me/parabola/mkgmap/osmstyle/housenumber/HousenumberMatch.java
index e4757486..418fc0a3 100644
--- a/src/uk/me/parabola/mkgmap/osmstyle/housenumber/HousenumberMatch.java
+++ b/src/uk/me/parabola/mkgmap/osmstyle/housenumber/Housenu... | false | true | private void parseHousenumber() {
String housenumberString = element.getTag("mkgmap:housenumber");
// the housenumber must match against the pattern <anything>number<notnumber><anything>
Pattern p = Pattern.compile("\\D*(\\d+)\\D?.*");
Matcher m = p.matcher(housenumberString);
if (m.matches() == false) {
... | private void parseHousenumber() {
String housenumberString = element.getTag("mkgmap:housenumber");
// the housenumber must match against the pattern <anything>number<notnumber><anything>
Pattern p = Pattern.compile("\\D*(\\d+)\\D?.*");
Matcher m = p.matcher(housenumberString);
if (m.matches() == false) {
... |
diff --git a/library/src/main/java/com/datatorrent/lib/multiwindow/SortedMovingWindow.java b/library/src/main/java/com/datatorrent/lib/multiwindow/SortedMovingWindow.java
index d8128c2e9..e66cdcc9b 100644
--- a/library/src/main/java/com/datatorrent/lib/multiwindow/SortedMovingWindow.java
+++ b/library/src/main/java/com... | false | true | public void endWindow()
{
super.endWindow();
tuplesInCurrentStreamWindow = new LinkedList<T>();
if(lastExpiredWindowState == null){
// not ready to emit value or empty in a certain window
return;
}
// Assumption: the expiring tuple and any tuple before are already sorted. So it's saf... | public void endWindow()
{
super.endWindow();
tuplesInCurrentStreamWindow = new LinkedList<T>();
if(lastExpiredWindowState == null){
// not ready to emit value or empty in a certain window
return;
}
// Assumption: the expiring tuple and any tuple before are already sorted. So it's saf... |
diff --git a/src/java/org/xhtmlrenderer/layout/LayoutContext.java b/src/java/org/xhtmlrenderer/layout/LayoutContext.java
index 7bfb0aa1..f2f31ffd 100644
--- a/src/java/org/xhtmlrenderer/layout/LayoutContext.java
+++ b/src/java/org/xhtmlrenderer/layout/LayoutContext.java
@@ -1,305 +1,305 @@
/*
* {{{ header & license
... | true | true | public void pushLayer(Box master) {
Layer layer = null;
if (rootLayer == null) {
layer = new Layer(master);
rootLayer = layer;
} else {
Layer parent = getLayer();
if (master.getStyle().isFixed() || master.getStyle().isAlte... | public void pushLayer(Box master) {
Layer layer = null;
if (rootLayer == null) {
layer = new Layer(master);
rootLayer = layer;
} else {
Layer parent = getLayer();
if (master.getStyle().isAlternateFlow()) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.