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/apps/BOB/src/net/i2p/BOB/BOB.java b/apps/BOB/src/net/i2p/BOB/BOB.java
index 2c42a9834..0229932a1 100644
--- a/apps/BOB/src/net/i2p/BOB/BOB.java
+++ b/apps/BOB/src/net/i2p/BOB/BOB.java
@@ -1,238 +1,239 @@
/**
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* Version 2, Decem... | true | true | public static void main(String[] args) {
database = new NamedDB();
int i = 0;
boolean save = false;
// Set up all defaults to be passed forward to other threads.
// Re-reading the config file in each thread is pretty damn stupid.
// I2PClient client = I2PClientFactory.createClient();
String configLocatio... | public static void main(String[] args) {
database = new NamedDB();
int i = 0;
boolean save = false;
// Set up all defaults to be passed forward to other threads.
// Re-reading the config file in each thread is pretty damn stupid.
// I2PClient client = I2PClientFactory.createClient();
String configLocatio... |
diff --git a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/ChangeDataDirTest.java b/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/ChangeDataDirTest.java
index 153b31f..9602664 100644
--- a/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/integration/ChangeDataDirTest.java
+++ b/or... | true | true | public void testMonitorFileMove() {
MylarUsageMonitorPlugin.getDefault().startMonitoring();
MylarUsageMonitorPlugin.getDefault().getInteractionLogger().interactionObserved(
InteractionEvent.makeCommand("id", "delta"));
String oldPath = MylarUsageMonitorPlugin.getDefault().getInteractionLogger().getOutputFile... | public void testMonitorFileMove() {
MylarUsageMonitorPlugin.getDefault().startMonitoring();
MylarUsageMonitorPlugin.getDefault().getInteractionLogger().interactionObserved(
InteractionEvent.makeCommand("id", "delta"));
String oldPath = MylarUsageMonitorPlugin.getDefault().getInteractionLogger().getOutputFile... |
diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/rest/support/RestUtils.java b/modules/elasticsearch/src/main/java/org/elasticsearch/rest/support/RestUtils.java
index 028465eaa43..375c702900e 100644
--- a/modules/elasticsearch/src/main/java/org/elasticsearch/rest/support/RestUtils.java
+++ b/modules/e... | false | true | public static void decodeQueryString(String queryString, int fromIndex, Map<String, String> params) {
if (fromIndex < 0) {
return;
}
if (fromIndex >= queryString.length()) {
return;
}
int toIndex;
while ((toIndex = queryString.indexOf('&', from... | public static void decodeQueryString(String queryString, int fromIndex, Map<String, String> params) {
if (fromIndex < 0) {
return;
}
if (fromIndex >= queryString.length()) {
return;
}
int toIndex;
while ((toIndex = queryString.indexOf('&', from... |
diff --git a/orbisgis-core/src/main/java/org/orbisgis/core/ui/plugins/views/editor/DefaultEditorManager.java b/orbisgis-core/src/main/java/org/orbisgis/core/ui/plugins/views/editor/DefaultEditorManager.java
index 2a50599c2..1d7262077 100644
--- a/orbisgis-core/src/main/java/org/orbisgis/core/ui/plugins/views/editor/Def... | true | true | public void open(EditableElement element, IProgressMonitor pm)
throws UnsupportedOperationException {
EditorDecorator editor = EditorPanel.getFirstEditor(element);
if (editor == null) {
throw new UnsupportedOperationException(
"There is no suitable editor for this element");
} else {
if (!this.edi... | public void open(EditableElement element, IProgressMonitor pm)
throws UnsupportedOperationException {
EditorDecorator editor = EditorPanel.getFirstEditor(element);
if (editor == null) {
throw new UnsupportedOperationException(
"There is no suitable editor for this element");
} else {
if (!this.edi... |
diff --git a/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/ec2/dynamicstorage/AbstractDynamicStorageTest.java b/src/main/java/org/cloudifysource/quality/iTests/test/cli/cloudify/cloud/ec2/dynamicstorage/AbstractDynamicStorageTest.java
index 5d0d5f7f..422936a2 100644
--- a/src/main/java/org/clo... | true | true | public void scanForLeakedVolumes(final String name) throws TimeoutException {
Set<Volume> volumesByName = storageHelper.getVolumesByName(name);
Set<Volume> nonDeletingVolumes = new HashSet<Volume>();
for (Volume volumeByName : volumesByName) {
if (volumeByName != null && !volumeByName... | public void scanForLeakedVolumes(final String name) throws TimeoutException {
Set<Volume> volumesByName = storageHelper.getVolumesByName(name);
Set<Volume> nonDeletingVolumes = new HashSet<Volume>();
for (Volume volumeByName : volumesByName) {
if (volumeByName != null && !volumeByName... |
diff --git a/moria2/modules/moria-log/src/java/no/feide/moria/log/AccessLogger.java b/moria2/modules/moria-log/src/java/no/feide/moria/log/AccessLogger.java
index 348bb0a7..c9803c24 100644
--- a/moria2/modules/moria-log/src/java/no/feide/moria/log/AccessLogger.java
+++ b/moria2/modules/moria-log/src/java/no/feide/moria... | true | true | private String generateLogMessage(final AccessStatusType status, final String servicePrincipal, final String userId,
final String incomingTicketId, final String outgoingTicketId) {
StringBuffer buffer = new StringBuffer();
/* Add default value "-" if variabel is null */
buffer.... | private String generateLogMessage(final AccessStatusType status, final String servicePrincipal, final String userId,
final String incomingTicketId, final String outgoingTicketId) {
StringBuffer buffer = new StringBuffer();
/* Add default value "-" if variabel is null */
buffer.... |
diff --git a/app/controllers/BlogController.java b/app/controllers/BlogController.java
index b2c2305..24687d9 100644
--- a/app/controllers/BlogController.java
+++ b/app/controllers/BlogController.java
@@ -1,223 +1,223 @@
package controllers;
import java.util.Arrays;
import java.util.Date;
import java.util.Locale;... | true | true | public static void doNewPost(String actionz, String otherUrlId, String otherLanguage) {
String urlId = params.get("post.urlId");
String title = params.get("post.title");
String content = params.get("post.content");
Locale language = params.get("post.language", Locale.class);
Date posted... | public static void doNewPost(String actionz, String otherUrlId, String otherLanguage) {
String urlId = params.get("post.urlId");
String title = params.get("post.title");
String content = params.get("post.content");
Locale language = params.get("post.language", Locale.class);
Date posted... |
diff --git a/app/src/iic3686/rocketscience/GameThread.java b/app/src/iic3686/rocketscience/GameThread.java
index d51c530..1e44690 100644
--- a/app/src/iic3686/rocketscience/GameThread.java
+++ b/app/src/iic3686/rocketscience/GameThread.java
@@ -1,140 +1,141 @@
package iic3686.rocketscience;
import org.andengine.ent... | true | true | public void run() {
while(gameIsRunning)
{
timeCounter = 0;
errorCounter = 0;
while(!this.gm.isRoundOver())
{
//GAME LOOP EL LUP LUP
if(this.gm.currentOrder == null)
this.gm.getNewOrder();
//Create new round
/*if(this.gm.isRoundOver())
{
//Start new round
this.gm.n... | public void run() {
while(gameIsRunning)
{
timeCounter = 0;
errorCounter = 0;
while(!this.gm.isRoundOver())
{
//GAME LOOP EL LUP LUP
if(this.gm.currentOrder == null)
this.gm.getNewOrder();
//Create new round
/*if(this.gm.isRoundOver())
{
//Start new round
this.gm.n... |
diff --git a/test/net/fortuna/mstor/connector/ProtocolConnectorFactoryTest.java b/test/net/fortuna/mstor/connector/ProtocolConnectorFactoryTest.java
index 2f452ca..f39e2ed 100644
--- a/test/net/fortuna/mstor/connector/ProtocolConnectorFactoryTest.java
+++ b/test/net/fortuna/mstor/connector/ProtocolConnectorFactoryTest.... | false | true | public void testCreate() {
assertTrue(ProtocolConnectorFactory.getInstance().create(
new URLName("mstor", null, -1, "/tmp/mbox", null, null),
null, Session.getDefaultInstance(new Properties())) instanceof MboxConnector);
assertTrue(ProtocolConnectorFactory.ge... | public void testCreate() {
Properties p = new Properties();
assertTrue(ProtocolConnectorFactory.getInstance().create(
new URLName("mstor", null, -1, "/tmp/mbox", null, null),
null, Session.getDefaultInstance(p)) instanceof MboxConnector);
p.setPropert... |
diff --git a/src/com/olympuspvp/tp/olyTP.java b/src/com/olympuspvp/tp/olyTP.java
index ffea579..07b6f1b 100644
--- a/src/com/olympuspvp/tp/olyTP.java
+++ b/src/com/olympuspvp/tp/olyTP.java
@@ -1,67 +1,68 @@
package com.olympuspvp.tp;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
... | true | true | public boolean onCommand(CommandSender s, Command cmd, String c, String[] args){
if(s instanceof Player == false){
System.out.println("[olyTP] Go home console, you're drunk.");
return true;
}Player p = (Player)s;
if((p.isOp()==false)&&(p.hasPermission("olyTP.use")==false)){
p.sendMessage(tag+"You do not... | public boolean onCommand(CommandSender s, Command cmd, String c, String[] args){
if(s instanceof Player == false){
System.out.println("[olyTP] Go home console, you're drunk.");
return true;
}Player p = (Player)s;
if((p.isOp()==false)&&(p.hasPermission("olyTP.use")==false)){
p.sendMessage(tag+"You do not... |
diff --git a/52n-wps-server/src/main/java/org/n52/wps/server/RepositoryManager.java b/52n-wps-server/src/main/java/org/n52/wps/server/RepositoryManager.java
index 5e8b60c9..bc75f1c1 100644
--- a/52n-wps-server/src/main/java/org/n52/wps/server/RepositoryManager.java
+++ b/52n-wps-server/src/main/java/org/n52/wps/server/... | true | true | private void loadAllRepositories(){
repositories = new ArrayList<IAlgorithmRepository>();
Repository[] repositoryList = WPSConfig.getInstance().getRegisterdAlgorithmRepositories();
for(Repository repository : repositoryList){
String repositoryClassName = repository.getClassName();
try {
IAl... | private void loadAllRepositories(){
repositories = new ArrayList<IAlgorithmRepository>();
Repository[] repositoryList = WPSConfig.getInstance().getRegisterdAlgorithmRepositories();
for(Repository repository : repositoryList){
if(repository.getActive()==false){
continue;
}
String repositor... |
diff --git a/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/java/MylarChangeSetManager.java b/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/java/MylarChangeSetManager.java
index cda7d5afe..c8dd34119 100644
--- a/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/java/MylarChangeSetManager.java
+++ b/org.eclipse.mylyn.j... | true | true | public void interestChanged(IMylarElement element) {
IMylarStructureBridge bridge = MylarPlugin.getDefault().getStructureBridge(element.getContentType());
if (bridge.isDocument(element.getHandleIdentifier())) {
IResource resource = MylarIdePlugin.getDefault().getResourceForElement(element);
if (resource !... | public void interestChanged(IMylarElement element) {
IMylarStructureBridge bridge = MylarPlugin.getDefault().getStructureBridge(element.getContentType());
if (bridge.isDocument(element.getHandleIdentifier())) {
IResource resource = MylarIdePlugin.getDefault().getResourceForElement(element);
if (resource !... |
diff --git a/src/com/martinbrook/tesseractuhc/notification/DamageNotification.java b/src/com/martinbrook/tesseractuhc/notification/DamageNotification.java
index 94c0ff8..1fa370a 100644
--- a/src/com/martinbrook/tesseractuhc/notification/DamageNotification.java
+++ b/src/com/martinbrook/tesseractuhc/notification/DamageN... | true | true | public String formatForPlayers() {
String formattedDamage;
formattedDamage = String.format("%d", damageAmount / 2);
if (damageAmount / 2.0 != Math.floor(damageAmount / 2.0))
formattedDamage += ".5";
formattedDamage += " heart";
if (damageAmount != 2) formattedDamage += "s";
if (damager != null) {
... | public String formatForPlayers() {
String formattedDamage;
formattedDamage = String.format("%d", damageAmount / 2);
if (damageAmount / 2.0 != Math.floor(damageAmount / 2.0))
formattedDamage += ".5";
formattedDamage += " heart";
if (damageAmount != 2) formattedDamage += "s";
if (damager != null) {
... |
diff --git a/src/main/java/org/apache/camel/splunk/demo/SplunkTwitterSearchRoute.java b/src/main/java/org/apache/camel/splunk/demo/SplunkTwitterSearchRoute.java
index 42fe1ff..a57cee8 100644
--- a/src/main/java/org/apache/camel/splunk/demo/SplunkTwitterSearchRoute.java
+++ b/src/main/java/org/apache/camel/splunk/demo/S... | true | true | public void configure() throws Exception {
PropertiesComponent pc = new PropertiesComponent();
pc.setLocation("classpath:splunk-demo.properties");
getContext().addComponent("properties", pc);
from(
"splunk://normal?delay=5s&username={{splunk-username}}&password={{splunk... | public void configure() throws Exception {
PropertiesComponent pc = new PropertiesComponent();
pc.setLocation("classpath:splunk-demo.properties");
getContext().addComponent("properties", pc);
from(
"splunk://normal?delay=5s&username={{splunk-username}}&password={{splunk... |
diff --git a/src/org/mvnsearch/snippet/plugin/actions/CreateSnippetFileAction.java b/src/org/mvnsearch/snippet/plugin/actions/CreateSnippetFileAction.java
index e3aa257..e6c9dc0 100644
--- a/src/org/mvnsearch/snippet/plugin/actions/CreateSnippetFileAction.java
+++ b/src/org/mvnsearch/snippet/plugin/actions/CreateSnippe... | true | true | public String generateFile(final PsiDirectory psiDirectory, final String mnemonic, final String fileName, final Project project) {
final StringBuffer buffer = new StringBuffer();
ApplicationManager.getApplication().runWriteAction(new Runnable() {
public void run() {
try {... | public String generateFile(final PsiDirectory psiDirectory, final String mnemonic, final String fileName, final Project project) {
final StringBuffer buffer = new StringBuffer();
ApplicationManager.getApplication().runWriteAction(new Runnable() {
public void run() {
try {... |
diff --git a/freeplane/src/org/freeplane/features/url/mindmapmode/SaveAll.java b/freeplane/src/org/freeplane/features/url/mindmapmode/SaveAll.java
index 38b101dd2..a966f198d 100644
--- a/freeplane/src/org/freeplane/features/url/mindmapmode/SaveAll.java
+++ b/freeplane/src/org/freeplane/features/url/mindmapmode/SaveAll.... | true | true | public void actionPerformed(final ActionEvent e) {
final Controller controller = Controller.getCurrentController();
final Component initialMapView = controller.getViewController().getMapView();
final Map<String, MapModel> mapViews = getMapViews();
final Iterator<Entry<String, MapModel>> iterator = mapViews.ent... | public void actionPerformed(final ActionEvent e) {
final Controller controller = Controller.getCurrentController();
final Component initialMapView = controller.getViewController().getMapView();
final Map<String, MapModel> mapViews = getMapViews();
final Iterator<Entry<String, MapModel>> iterator = mapViews.ent... |
diff --git a/src/com/arm/nevada/client/parser/InstructionFormats.java b/src/com/arm/nevada/client/parser/InstructionFormats.java
index 11fe0b9..4ac3dbf 100644
--- a/src/com/arm/nevada/client/parser/InstructionFormats.java
+++ b/src/com/arm/nevada/client/parser/InstructionFormats.java
@@ -1,1436 +1,1436 @@
/*
* Copyr... | true | true | private static void fillInstructions00(){
//ARITHMETIC2
//vadd int
append(new ArithmeticInstructions(EnumInstruction.vadd, EnumRegisterType.QUAD), AllI.p(), Space.p(), Q.p(), Comma.p(), Q.p(), Comma.p(), Q.p());
append(new ArithmeticInstructions(EnumInstruction.vadd, EnumRegisterType.QUAD), AllI.p(), Spac... | private static void fillInstructions00(){
//ARITHMETIC2
//vadd int
append(new ArithmeticInstructions(EnumInstruction.vadd, EnumRegisterType.QUAD), AllI.p(), Space.p(), Q.p(), Comma.p(), Q.p(), Comma.p(), Q.p());
append(new ArithmeticInstructions(EnumInstruction.vadd, EnumRegisterType.QUAD), AllI.p(), Spac... |
diff --git a/main/src/com/google/refine/browsing/facets/RangeFacet.java b/main/src/com/google/refine/browsing/facets/RangeFacet.java
index 6b63cf11..d2c696a4 100644
--- a/main/src/com/google/refine/browsing/facets/RangeFacet.java
+++ b/main/src/com/google/refine/browsing/facets/RangeFacet.java
@@ -1,259 +1,261 @@
pack... | true | true | public void write(JSONWriter writer, Properties options)
throws JSONException {
writer.object();
writer.key("name"); writer.value(_name);
writer.key("expression"); writer.value(_expression);
writer.key("columnName"); writer.value(_columnName);
if... | public void write(JSONWriter writer, Properties options)
throws JSONException {
writer.object();
writer.key("name"); writer.value(_name);
writer.key("expression"); writer.value(_expression);
writer.key("columnName"); writer.value(_columnName);
if... |
diff --git a/clitest/src/com/redhat/qe/jon/clitest/tests/plugins/eap6/standalone/DiscoveryTest.java b/clitest/src/com/redhat/qe/jon/clitest/tests/plugins/eap6/standalone/DiscoveryTest.java
index 3b90326a..a3ab0be3 100644
--- a/clitest/src/com/redhat/qe/jon/clitest/tests/plugins/eap6/standalone/DiscoveryTest.java
+++ b/... | false | true | public Object[][] createStartupConfigurations() {
List<ServerStartConfig> configs = new ArrayList<ServerStartConfig>();
// listen on all intefraces (currently default .. it is safe to keep this test as first)
configs.add(new ServerStartConfig("standalone.sh", "hostname=0.0.0.0"));
// listen on localhost
conf... | public Object[][] createStartupConfigurations() {
List<ServerStartConfig> configs = new ArrayList<ServerStartConfig>();
// listen on all intefraces (currently default .. it is safe to keep this test as first)
configs.add(new ServerStartConfig("standalone.sh", "hostname=0.0.0.0"));
// listen on localhost
conf... |
diff --git a/src/java/org/wings/plaf/css/TextFieldCG.java b/src/java/org/wings/plaf/css/TextFieldCG.java
index e2de1034..2d58d89a 100644
--- a/src/java/org/wings/plaf/css/TextFieldCG.java
+++ b/src/java/org/wings/plaf/css/TextFieldCG.java
@@ -1,100 +1,100 @@
/*
* $Id$
* Copyright 2000,2005 wingS development team.
... | false | true | public void componentChanged(SComponent component) {
final STextField textField = (STextField) component;
if (textField instanceof SFormattedTextField) {
SFormattedTextField formattedTextField = (SFormattedTextField) textField;
SAbstractFormatter formatter = formattedTextFie... | public void componentChanged(SComponent component) {
final STextField textField = (STextField) component;
if (textField instanceof SFormattedTextField) {
SFormattedTextField formattedTextField = (SFormattedTextField) textField;
SAbstractFormatter formatter = formattedTextFie... |
diff --git a/src/org/wonderly/doclets/TableInfo.java b/src/org/wonderly/doclets/TableInfo.java
index 5bc9644..bdb8b1d 100644
--- a/src/org/wonderly/doclets/TableInfo.java
+++ b/src/org/wonderly/doclets/TableInfo.java
@@ -1,296 +1,295 @@
package org.wonderly.doclets;
import java.util.Enumeration;
import java.util.P... | false | true | public TableInfo(Properties p, StringBuffer ret, String table, int off) {
tblno = tblcnt++;
tc = "" + (char) ('a' + (tblno / (26 * 26)))
+ (char) ((tblno / 26) + 'a') + (char) ((tblno % 26) + 'a');
if (p == null)
return;
String val = hasProp("border", p);
border = false;
if (val != null) {
border... | public TableInfo(Properties p, StringBuffer ret, String table, int off) {
tblno = tblcnt++;
tc = "" + (char) ('a' + (tblno / (26 * 26)))
+ (char) ((tblno / 26) + 'a') + (char) ((tblno % 26) + 'a');
if (p == null)
return;
String val = hasProp("border", p);
border = false;
if (val != null) {
border... |
diff --git a/src/tconstruct/client/block/TankAirRender.java b/src/tconstruct/client/block/TankAirRender.java
index a4a4f36e7..4c9640e09 100644
--- a/src/tconstruct/client/block/TankAirRender.java
+++ b/src/tconstruct/client/block/TankAirRender.java
@@ -1,80 +1,82 @@
package tconstruct.client.block;
import net.minec... | false | true | public boolean renderWorldBlock (IBlockAccess world, int x, int y, int z, Block block, int modelID, RenderBlocks renderer)
{
if (modelID == model)
{
TankAirLogic logic = (TankAirLogic) world.getBlockTileEntity(x, y, z);
if (logic.hasItem())
{
I... | public boolean renderWorldBlock (IBlockAccess world, int x, int y, int z, Block block, int modelID, RenderBlocks renderer)
{
if (modelID == model)
{
TankAirLogic logic = (TankAirLogic) world.getBlockTileEntity(x, y, z);
if (logic.hasItem())
{
I... |
diff --git a/src/com/android/settings/TextToSpeechSettings.java b/src/com/android/settings/TextToSpeechSettings.java
index 94b256f62..ec0fc8cde 100644
--- a/src/com/android/settings/TextToSpeechSettings.java
+++ b/src/com/android/settings/TextToSpeechSettings.java
@@ -1,387 +1,387 @@
/*
* Copyright (C) 2009 The Andr... | false | true | private void initDefaultSettings() {
ContentResolver resolver = getContentResolver();
int intVal = 0;
// Find the default TTS values in the settings, initialize and store the
// settings if they are not found.
// "Use Defaults"
mUseDefaultPref = (CheckBoxPreference)... | private void initDefaultSettings() {
ContentResolver resolver = getContentResolver();
int intVal = 0;
// Find the default TTS values in the settings, initialize and store the
// settings if they are not found.
// "Use Defaults"
mUseDefaultPref = (CheckBoxPreference)... |
diff --git a/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java b/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java
index 3db7eda45..e47e4a3eb 100644
--- a/maven-core/src/main/java/org/apache/maven/exception/DefaultExceptionHandler.java
+++ b/maven-core/src/m... | true | true | public ExceptionSummary handleException( Exception exception )
{
String message;
String reference = "http://";
// Plugin problems
if ( exception instanceof PluginNotFoundException )
{
message = exception.getMessage();
}
else i... | public ExceptionSummary handleException( Exception exception )
{
String message;
String reference = "http://";
// Plugin problems
if ( exception instanceof PluginNotFoundException )
{
message = exception.getMessage();
}
else i... |
diff --git a/SleepClock/src/com/pps/sleepcalc/showGraphActivity.java b/SleepClock/src/com/pps/sleepcalc/showGraphActivity.java
index 5f04d6c..3bbcf0b 100644
--- a/SleepClock/src/com/pps/sleepcalc/showGraphActivity.java
+++ b/SleepClock/src/com/pps/sleepcalc/showGraphActivity.java
@@ -1,29 +1,30 @@
package com.pps.slee... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.graph);
final WebView webview = (WebView) findViewById(R.id.webview);
webview.getSettings().setJavaScriptEnabled(true);
webview.loadUrl("file:///android_asse... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.graph);
final WebView webview = (WebView) findViewById(R.id.webview);
webview.getSettings().setJavaScriptEnabled(true);
//webview.getSettings().set
webview... |
diff --git a/src/com/podevs/android/pokemononline/battle/Battle.java b/src/com/podevs/android/pokemononline/battle/Battle.java
index 27623436..1ea41fcd 100644
--- a/src/com/podevs/android/pokemononline/battle/Battle.java
+++ b/src/com/podevs/android/pokemononline/battle/Battle.java
@@ -1,305 +1,305 @@
package com.pode... | true | true | public void dealWithCommand(BattleCommand bc, byte player, Bais msg) {
switch(bc) {
case SendOut: {
if (player != me) {
super.dealWithCommand(bc, player, msg);
return;
}
boolean silent = msg.readBool();
byte fromSpot = msg.readByte();
BattlePoke temp = myTeam.pokes[0];
myTeam.pok... | public void dealWithCommand(BattleCommand bc, byte player, Bais msg) {
switch(bc) {
case SendOut: {
if (player != me) {
super.dealWithCommand(bc, player, msg);
return;
}
boolean silent = msg.readBool();
byte fromSpot = msg.readByte();
BattlePoke temp = myTeam.pokes[0];
myTeam.pok... |
diff --git a/org/postgresql/test/jdbc2/optional/OptionalTestSuite.java b/org/postgresql/test/jdbc2/optional/OptionalTestSuite.java
index 980ff68..d740a5a 100644
--- a/org/postgresql/test/jdbc2/optional/OptionalTestSuite.java
+++ b/org/postgresql/test/jdbc2/optional/OptionalTestSuite.java
@@ -1,27 +1,27 @@
package org.... | true | true | public static TestSuite suite()
{
TestSuite suite = new TestSuite();
suite.addTestSuite(SimpleDataSourceTest.class);
suite.addTestSuite(ConnectionPoolTest.class);
suite.addTestSuite(ConnectionPoolTest.class);
return suite;
}
| public static TestSuite suite()
{
TestSuite suite = new TestSuite();
suite.addTestSuite(SimpleDataSourceTest.class);
suite.addTestSuite(ConnectionPoolTest.class);
suite.addTestSuite(PoolingDataSourceTest.class);
return suite;
}
|
diff --git a/core/tests/org.eclipse.dltk.core.tests/src/org/eclipse/dltk/core/tests/FileUtil.java b/core/tests/org.eclipse.dltk.core.tests/src/org/eclipse/dltk/core/tests/FileUtil.java
index fe5c49913..0c786e79a 100644
--- a/core/tests/org.eclipse.dltk.core.tests/src/org/eclipse/dltk/core/tests/FileUtil.java
+++ b/core... | true | true | public static void copyDirectory(File source, File target,
Set<File> excludes) throws IOException {
if (!target.exists()) {
target.mkdirs();
}
final File[] files = source.listFiles();
if (files == null) {
throw new IllegalStateException("Source directory " + source
+ " doesn't exist");
}
for ... | public static void copyDirectory(File source, File target,
Set<File> excludes) throws IOException {
if (!target.exists()) {
target.mkdirs();
}
final File[] files = source.listFiles();
if (files == null) {
throw new IllegalStateException("Source directory " + source
+ " doesn't exist");
}
for ... |
diff --git a/src/test/java/org/zenoss/zep/impl/TriggerPluginImplTest.java b/src/test/java/org/zenoss/zep/impl/TriggerPluginImplTest.java
index 7bee601..8c50af6 100644
--- a/src/test/java/org/zenoss/zep/impl/TriggerPluginImplTest.java
+++ b/src/test/java/org/zenoss/zep/impl/TriggerPluginImplTest.java
@@ -1,114 +1,112 @@... | false | true | public void testTriggerRules() throws IOException {
EventActor.Builder actorBuilder = EventActor.newBuilder();
actorBuilder.setElementTypeId(ModelElementType.DEVICE);
actorBuilder.setElementIdentifier("BHM1000");
actorBuilder.setElementSubTypeId(ModelElementType.COMPONENT);
... | public void testTriggerRules() throws IOException {
EventActor.Builder actorBuilder = EventActor.newBuilder();
actorBuilder.setElementTypeId(ModelElementType.DEVICE);
actorBuilder.setElementIdentifier("BHM1000");
actorBuilder.setElementSubTypeId(ModelElementType.COMPONENT);
... |
diff --git a/votable/src/main/uk/ac/starlink/votable/FitsPlusTableBuilder.java b/votable/src/main/uk/ac/starlink/votable/FitsPlusTableBuilder.java
index 86e6c0d0b..639037c51 100644
--- a/votable/src/main/uk/ac/starlink/votable/FitsPlusTableBuilder.java
+++ b/votable/src/main/uk/ac/starlink/votable/FitsPlusTableBuilder.... | false | true | public StarTable[] makeStarTables( DataSource datsrc,
StoragePolicy storagePolicy)
throws IOException {
/* If there is a position, use makeStarTable. Otherwise, we want
* all the tables. */
String srcpos = datsrc.getPosition();
if... | public StarTable[] makeStarTables( DataSource datsrc,
StoragePolicy storagePolicy)
throws IOException {
/* If there is a position, use makeStarTable. Otherwise, we want
* all the tables. */
String srcpos = datsrc.getPosition();
if... |
diff --git a/platform/com.subgraph.vega.scanner/src/com/subgraph/vega/impl/scanner/Scanner.java b/platform/com.subgraph.vega.scanner/src/com/subgraph/vega/impl/scanner/Scanner.java
index daab28fc..43d7627a 100644
--- a/platform/com.subgraph.vega.scanner/src/com/subgraph/vega/impl/scanner/Scanner.java
+++ b/platform/com... | true | true | public synchronized void startScanner(IScannerConfig config) {
if(currentScan != null && currentScan.getScanStatus() != IScanInstance.SCAN_COMPLETED && currentScan.getScanStatus() != IScanInstance.SCAN_CANCELLED) {
throw new IllegalStateException("Scanner is already running. Verify scanner is not running with ge... | public synchronized void startScanner(IScannerConfig config) {
if(currentScan != null && currentScan.getScanStatus() != IScanInstance.SCAN_COMPLETED && currentScan.getScanStatus() != IScanInstance.SCAN_CANCELLED) {
throw new IllegalStateException("Scanner is already running. Verify scanner is not running with ge... |
diff --git a/appjar/src/main/java/com/google/gerrit/server/patch/PatchDetailServiceImpl.java b/appjar/src/main/java/com/google/gerrit/server/patch/PatchDetailServiceImpl.java
index 829335253..7a9b4a26e 100644
--- a/appjar/src/main/java/com/google/gerrit/server/patch/PatchDetailServiceImpl.java
+++ b/appjar/src/main/jav... | true | true | private PublishResult doPublishComments(final PatchSet.Id psid,
final String messageText, final Set<ApprovalCategoryValue.Id> approvals,
final ReviewDb db, final Transaction txn) throws OrmException {
final PublishResult r = new PublishResult();
final Account.Id me = Common.getAccountId();
r.c... | private PublishResult doPublishComments(final PatchSet.Id psid,
final String messageText, final Set<ApprovalCategoryValue.Id> approvals,
final ReviewDb db, final Transaction txn) throws OrmException {
final PublishResult r = new PublishResult();
final Account.Id me = Common.getAccountId();
r.c... |
diff --git a/src/com/android/exchange/SyncManager.java b/src/com/android/exchange/SyncManager.java
index 17cfdaf..9a02aeb 100644
--- a/src/com/android/exchange/SyncManager.java
+++ b/src/com/android/exchange/SyncManager.java
@@ -1,1959 +1,1960 @@
/*
* Copyright (C) 2008-2009 Marc Blank
* Licensed to The Android Op... | true | true | private long checkMailboxes () {
// First, see if any running mailboxes have been deleted
ArrayList<Long> deletedMailboxes = new ArrayList<Long>();
synchronized (sSyncToken) {
for (long mailboxId: mServiceMap.keySet()) {
Mailbox m = Mailbox.restoreMailboxWithId(th... | private long checkMailboxes () {
// First, see if any running mailboxes have been deleted
ArrayList<Long> deletedMailboxes = new ArrayList<Long>();
synchronized (sSyncToken) {
for (long mailboxId: mServiceMap.keySet()) {
Mailbox m = Mailbox.restoreMailboxWithId(th... |
diff --git a/Dreamworld/src/de/blablubbabc/dreamworld/managers/ConfigManager.java b/Dreamworld/src/de/blablubbabc/dreamworld/managers/ConfigManager.java
index 970d11d..8b89364 100644
--- a/Dreamworld/src/de/blablubbabc/dreamworld/managers/ConfigManager.java
+++ b/Dreamworld/src/de/blablubbabc/dreamworld/managers/Config... | false | true | public ConfigManager(Plugin plugin) {
this.plugin = plugin;
// default config:
FileConfiguration config = plugin.getConfig();
config.options().copyDefaults(true);
plugin.saveDefaultConfig();
// load values:
try {
ConfigurationSection dreamSection = config.getConfigurationSection("dream");
... | public ConfigManager(Plugin plugin) {
this.plugin = plugin;
// default config:
plugin.saveDefaultConfig();
FileConfiguration config = plugin.getConfig();
config.options().copyDefaults(true);
// load values:
try {
ConfigurationSection dreamSection = config.getConfigurationSection("dream");
... |
diff --git a/src/org/mozilla/javascript/v8dtoa/DiyFp.java b/src/org/mozilla/javascript/v8dtoa/DiyFp.java
index 6fde580d..1e639111 100644
--- a/src/org/mozilla/javascript/v8dtoa/DiyFp.java
+++ b/src/org/mozilla/javascript/v8dtoa/DiyFp.java
@@ -1,150 +1,150 @@
// Copyright 2010 the V8 project authors. All rights reserve... | true | true | void multiply(DiyFp other) {
// Simply "emulates" a 128 bit multiplication.
// However: the resulting number only contains 64 bits. The least
// significant 64 bits are only used for rounding the most significant 64
// bits.
final long kM32 = 0xFFFFFFFFL;
long a = f >... | void multiply(DiyFp other) {
// Simply "emulates" a 128 bit multiplication.
// However: the resulting number only contains 64 bits. The least
// significant 64 bits are only used for rounding the most significant 64
// bits.
final long kM32 = 0xFFFFFFFFL;
long a = f >... |
diff --git a/cortege/src/test/java/com/rumba/cortege/examples/ExampleCortege.java b/cortege/src/test/java/com/rumba/cortege/examples/ExampleCortege.java
index 28e3227..0c009f9 100644
--- a/cortege/src/test/java/com/rumba/cortege/examples/ExampleCortege.java
+++ b/cortege/src/test/java/com/rumba/cortege/examples/Example... | true | true | public static void main(String[] args) {
Cortege<Long, Cortege<String, Cortege.End>> cortegeLS = CortegeChain.create(2);
// заполнение элементов значениями
// 1-й вариант (заполняем первый элемент в кортеже, с контролем типа)
cortegeLS.setValue(4L);
cortegeLS.nextElement().se... | public static void main(String[] args) {
Cortege<Long, Cortege<String, Cortege.End>> cortegeLS = CortegeChain.create(2);
// заполнение элементов значениями
// 1-й вариант (заполняем первый элемент в кортеже, с контролем типа)
cortegeLS.setValue(4L);
cortegeLS.nextElement().se... |
diff --git a/filter-impl/src/main/java/org/cytoscape/filter/internal/filters/view/FilterMainPanel.java b/filter-impl/src/main/java/org/cytoscape/filter/internal/filters/view/FilterMainPanel.java
index 98f3a3abf..eb9a10f7b 100644
--- a/filter-impl/src/main/java/org/cytoscape/filter/internal/filters/view/FilterMainPanel.... | false | true | public void actionPerformed(ActionEvent e) {
Object _actionObject = e.getSource();
// handle Button events
if (_actionObject instanceof JButton) {
JButton _btn = (JButton) _actionObject;
if (_btn == btnApplyFilter) {
//System.out.println("\nApplyButton is clicked!");
//System.out.println("\tThe F... | public void actionPerformed(ActionEvent e) {
Object _actionObject = e.getSource();
// handle Button events
if (_actionObject instanceof JButton) {
JButton _btn = (JButton) _actionObject;
if (_btn == btnApplyFilter) {
CompositeFilter theFilterToApply = (CompositeFilter) cmbSelectFilter.getSelectedItem... |
diff --git a/src/org/cvstoolbox/filter/Filters.java b/src/org/cvstoolbox/filter/Filters.java
index 67dd840..260bf70 100644
--- a/src/org/cvstoolbox/filter/Filters.java
+++ b/src/org/cvstoolbox/filter/Filters.java
@@ -1,64 +1,64 @@
/*
* CVSToolBox IntelliJ IDEA Plugin
*
* Copyright (C) 2011, Łukasz Zieliński
*
... | true | true | public static VirtualFile[] pruneEmptyDirectories(Collection<VirtualFile> toPrune) {
List<VirtualFile> files = new ArrayList<VirtualFile>(toPrune);
List<VirtualFile> toRemove = new ArrayList<VirtualFile>(files.size());
for (VirtualFile file : files) {
if (file.isDirectory() && fi... | public static VirtualFile[] pruneEmptyDirectories(Collection<VirtualFile> toPrune) {
List<VirtualFile> files = new ArrayList<VirtualFile>(toPrune);
List<VirtualFile> toRemove = new ArrayList<VirtualFile>(files.size());
for (VirtualFile file : files) {
if (file.isDirectory() && fi... |
diff --git a/app/com/huydung/utils/SelectorUtil.java b/app/com/huydung/utils/SelectorUtil.java
index daa5242..8ea3466 100644
--- a/app/com/huydung/utils/SelectorUtil.java
+++ b/app/com/huydung/utils/SelectorUtil.java
@@ -1,66 +1,66 @@
package com.huydung.utils;
import java.text.SimpleDateFormat;
import java.util.D... | true | true | public static ArrayList<TimeZoneOption> getTimezones(){
Date d = new Date();
SimpleDateFormat dF = new SimpleDateFormat("HH:mm''");
String[] ids = TimeZone.getAvailableIDs();
final String TIMEZONE_ID_PREFIXES =
"^(Africa|America|Asia|Atlantic|Australia|Europe|Indian|Pacific)/.*";
ArrayList<TimeZoneOp... | public static ArrayList<TimeZoneOption> getTimezones(){
Date d = new Date();
SimpleDateFormat dF = new SimpleDateFormat("HH:mm''");
String[] ids = TimeZone.getAvailableIDs();
final String TIMEZONE_ID_PREFIXES =
"^(Africa|America|Asia|Atlantic|Australia|Europe|Indian|Pacific)/.*";
ArrayList<TimeZoneOp... |
diff --git a/PastaHouse/src/printer/printables/PrintableInvoiceNew.java b/PastaHouse/src/printer/printables/PrintableInvoiceNew.java
index 3f85cb4..e409ed1 100644
--- a/PastaHouse/src/printer/printables/PrintableInvoiceNew.java
+++ b/PastaHouse/src/printer/printables/PrintableInvoiceNew.java
@@ -1,289 +1,289 @@
/*
*... | true | true | public List<PrintableHorizontalLineObject> transformFooter(int width, int margin, FontMetrics fontMetrics) {
width-=10;
/*
* Incremental print model
*/
List<PrintableHorizontalLineObject> printModel = new ArrayList<PrintableHorizontalLineObject>();
/*
* Formatting variables
*/
// int[] tabs = new in... | public List<PrintableHorizontalLineObject> transformFooter(int width, int margin, FontMetrics fontMetrics) {
width-=10;
/*
* Incremental print model
*/
List<PrintableHorizontalLineObject> printModel = new ArrayList<PrintableHorizontalLineObject>();
/*
* Formatting variables
*/
// int[] tabs = new in... |
diff --git a/src/org/ros/android/app_chooser/AppLauncher.java b/src/org/ros/android/app_chooser/AppLauncher.java
index 5a1e6cc..5441988 100644
--- a/src/org/ros/android/app_chooser/AppLauncher.java
+++ b/src/org/ros/android/app_chooser/AppLauncher.java
@@ -1,149 +1,149 @@
/*
* Software License Agreement (BSD License... | true | true | static public void launch(final Activity parentActivity, App app) {
ArrayList<ClientAppData> android_apps = new ArrayList<ClientAppData>();
if (parentActivity instanceof AppChooser) {
((AppChooser)parentActivity).onAppClicked(app, app.client_apps.size() > 0);
} else {
Log.i("RosAndroid", "Cou... | static public void launch(final Activity parentActivity, App app) {
ArrayList<ClientAppData> android_apps = new ArrayList<ClientAppData>();
if (parentActivity instanceof AppChooser) {
((AppChooser)parentActivity).onAppClicked(app, app.client_apps.size() > 0);
} else {
Log.i("RosAndroid", "Cou... |
diff --git a/RandomForest/src/tree/Forest.java b/RandomForest/src/tree/Forest.java
index f69e2cc..28a7464 100644
--- a/RandomForest/src/tree/Forest.java
+++ b/RandomForest/src/tree/Forest.java
@@ -1,935 +1,936 @@
/**
*
*/
package tree;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import jav... | true | true | void growForest(String dataForGrowing, Map<String, Double> potentialWeights, boolean isProcessingNeeded)
{
// Seed the random generator used to control all the randomness in the algorithm,
Random randGenerator = new Random(this.seed);
if (isProcessingNeeded)
{
this.dataFileGrownFrom = dataForGrowing;
P... | void growForest(String dataForGrowing, Map<String, Double> potentialWeights, boolean isProcessingNeeded)
{
// Seed the random generator used to control all the randomness in the algorithm,
Random randGenerator = new Random(this.seed);
if (isProcessingNeeded)
{
this.dataFileGrownFrom = dataForGrowing;
P... |
diff --git a/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobArmory/SpawnerHandler/SpawnerHandler.java b/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobArmory/SpawnerHandler/SpawnerHandler.java
index 7e5d6ee..c89d8c0 100644
--- a/EasyMobArmory/src/main/java/com/runetooncraft/plugins/EasyMobAr... | true | true | public static void SetSpawnTick(Player p,String spawntick) {
if(IsInteger(spawntick)) {
Block b = p.getTargetBlock(null, 200);
if(b.getTypeId() == 52) {
if(IsEMASpawner(b.getLocation())) {
SpawnerCache sc = getSpawner(b.getLocation());
sc.TimerTick = Integer.parseInt(spawntick);
sc.TimerEnab... | public static void SetSpawnTick(Player p,String spawntick) {
if(IsInteger(spawntick)) {
Block b = p.getTargetBlock(null, 200);
if(b.getTypeId() == 52) {
if(IsEMASpawner(b.getLocation())) {
SpawnerCache sc;
if(SpawnerCache.containsKey(b.getLocation())) {
sc = SpawnerCache.get(b.getLocation()... |
diff --git a/src/main/java/org/grible/adaptor/helpers/IOHelper.java b/src/main/java/org/grible/adaptor/helpers/IOHelper.java
index 9b5d254..7159f4c 100644
--- a/src/main/java/org/grible/adaptor/helpers/IOHelper.java
+++ b/src/main/java/org/grible/adaptor/helpers/IOHelper.java
@@ -1,65 +1,65 @@
/***********************... | true | true | public static File searchFileByClassName(File dir, String className) throws Exception {
for (File temp : dir.listFiles()) {
if (temp.isDirectory()) {
File result = searchFile(temp, className);
if (result != null) {
return result;
}
} else {
try {
TableJson tableJson = parseTableJson(t... | public static File searchFileByClassName(File dir, String className) throws Exception {
for (File temp : dir.listFiles()) {
if (temp.isDirectory()) {
File result = searchFileByClassName(temp, className);
if (result != null) {
return result;
}
} else {
try {
TableJson tableJson = parse... |
diff --git a/main/src/cgeo/geocaching/Settings.java b/main/src/cgeo/geocaching/Settings.java
index a59de1de9..8ecc0e56f 100644
--- a/main/src/cgeo/geocaching/Settings.java
+++ b/main/src/cgeo/geocaching/Settings.java
@@ -1,1391 +1,1391 @@
package cgeo.geocaching;
import cgeo.geocaching.apps.cache.navi.NavigationApp... | true | true | private static void migrateSettings() {
// migrate from non standard file location and integer based boolean types
if (sharedPrefs.getInt(KEY_SETTINGS_VERSION, 0) < 1) {
final String oldPreferencesName = "cgeo.pref";
final SharedPreferences old = cgeoapplication.getInstance()... | private static void migrateSettings() {
// migrate from non standard file location and integer based boolean types
if (sharedPrefs.getInt(KEY_SETTINGS_VERSION, 0) < 1) {
final String oldPreferencesName = "cgeo.pref";
final SharedPreferences old = cgeoapplication.getInstance()... |
diff --git a/hibernate-ogm-core/src/test/java/org/hibernate/ogm/test/embeddable/EmbeddableTest.java b/hibernate-ogm-core/src/test/java/org/hibernate/ogm/test/embeddable/EmbeddableTest.java
index 8720e0986..b89f78754 100644
--- a/hibernate-ogm-core/src/test/java/org/hibernate/ogm/test/embeddable/EmbeddableTest.java
+++ ... | true | true | public void testEmbeddable() throws Exception {
final Session session = openSession();
Transaction transaction = session.beginTransaction();
Account account = new Account();
account.setLogin( "emmanuel" );
account.setPassword( "like I would tell ya" );
account.setHomeAddress( new Address() );
final Addr... | public void testEmbeddable() throws Exception {
final Session session = openSession();
Transaction transaction = session.beginTransaction();
Account account = new Account();
account.setLogin( "emmanuel" );
account.setPassword( "like I would tell ya" );
account.setHomeAddress( new Address() );
final Addr... |
diff --git a/src/main/java/net/countercraft/movecraft/async/AsyncManager.java b/src/main/java/net/countercraft/movecraft/async/AsyncManager.java
index 189092a..dafe855 100644
--- a/src/main/java/net/countercraft/movecraft/async/AsyncManager.java
+++ b/src/main/java/net/countercraft/movecraft/async/AsyncManager.java
@@ ... | true | true | public void processSinking() {
for( World w : Bukkit.getWorlds()) {
if(w!=null && CraftManager.getInstance().getCraftsInWorld(w)!=null) {
// check every 5 seconds for every craft to see if it should be sinking
for (Craft pcraft : CraftManager.getInstance().getCraftsInWorld(w)) {
if(pcraft!=null) {
... | public void processSinking() {
for( World w : Bukkit.getWorlds()) {
if(w!=null && CraftManager.getInstance().getCraftsInWorld(w)!=null) {
// check every 5 seconds for every craft to see if it should be sinking
for (Craft pcraft : CraftManager.getInstance().getCraftsInWorld(w)) {
if(pcraft!=null) {
... |
diff --git a/src/uk/org/ponder/rsf/flow/errors/ActionErrorStrategyManager.java b/src/uk/org/ponder/rsf/flow/errors/ActionErrorStrategyManager.java
index e39d274..c63f6fd 100644
--- a/src/uk/org/ponder/rsf/flow/errors/ActionErrorStrategyManager.java
+++ b/src/uk/org/ponder/rsf/flow/errors/ActionErrorStrategyManager.java... | true | true | public Object handleError(String returncode, Exception exception,
String flowstate, String viewID, TargettedMessage message) {
Object code = null;
Throwable tohandlet = exception instanceof UniversalRuntimeException ?
((UniversalRuntimeException) exception).getTargetException()
: except... | public Object handleError(String returncode, Exception exception,
String flowstate, String viewID, TargettedMessage message) {
Object code = null;
Throwable tohandlet = exception instanceof UniversalRuntimeException ?
((UniversalRuntimeException) exception).getTargetException()
: except... |
diff --git a/src/DVN-web/src/edu/harvard/iq/dvn/api/datadeposit/ServiceDocumentManagerImpl.java b/src/DVN-web/src/edu/harvard/iq/dvn/api/datadeposit/ServiceDocumentManagerImpl.java
index 0247ee599..89ed5c691 100644
--- a/src/DVN-web/src/edu/harvard/iq/dvn/api/datadeposit/ServiceDocumentManagerImpl.java
+++ b/src/DVN-we... | false | true | public ServiceDocument getServiceDocument(String sdUri, AuthCredentials authCredentials, SwordConfiguration config)
throws SwordError, SwordServerException, SwordAuthException {
SwordAuth swordAuth = new SwordAuth();
swordAuth.auth(authCredentials);
String username = authCreden... | public ServiceDocument getServiceDocument(String sdUri, AuthCredentials authCredentials, SwordConfiguration config)
throws SwordError, SwordServerException, SwordAuthException {
SwordAuth swordAuth = new SwordAuth();
swordAuth.auth(authCredentials);
String username = authCreden... |
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/intro/IntroEditor.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/intro/IntroEditor.java
index eba3a769c..2b2f27475 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/c... | true | true | private Composite createIntroContent(Composite parent) {
Composite composite = new Composite(parent, SWT.NONE);
composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
TableWrapLayout layout = new TableWrapLayout();
layout.verticalSpacing = 0;
layout.horizontalSpacing = 0;
... | private Composite createIntroContent(Composite parent) {
Composite composite = new Composite(parent, SWT.NONE);
composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
TableWrapLayout layout = new TableWrapLayout();
layout.verticalSpacing = 0;
layout.horizontalSpacing = 0;
... |
diff --git a/src/de/leonhardt/sbm/smsbr/SmsBrIO.java b/src/de/leonhardt/sbm/smsbr/SmsBrIO.java
index 5e3bce4..989ab5b 100644
--- a/src/de/leonhardt/sbm/smsbr/SmsBrIO.java
+++ b/src/de/leonhardt/sbm/smsbr/SmsBrIO.java
@@ -1,221 +1,221 @@
package de.leonhardt.sbm.smsbr;
import java.io.File;
import java.util.Collecti... | false | true | public SmsBrIO(boolean includeXSL) throws MessageIOException {
// load schema
SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
try {
this.schema = schemaFactory.newSchema(new File(XML_SCHEMA));
} catch (SAXException e) {
log.warning("Schema '" + XML_SCHEMA + "... | public SmsBrIO(boolean includeXSL) throws MessageIOException {
// load schema
SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
try {
this.schema = schemaFactory.newSchema(new File(XML_SCHEMA));
} catch (SAXException e) {
log.warning("Schema '" + XML_SCHEMA + "... |
diff --git a/src/com/chess/genesis/view/BoardButton.java b/src/com/chess/genesis/view/BoardButton.java
index 8e1b79f..103008c 100644
--- a/src/com/chess/genesis/view/BoardButton.java
+++ b/src/com/chess/genesis/view/BoardButton.java
@@ -1,110 +1,110 @@
package com.chess.genesis;
import android.content.Context;
imp... | true | true | public BoardButton(final Context context, final int index)
{
super(context);
View.inflate(context, R.layout.framelayout_boardbutton, this);
squareIndex = index;
squareColor = ((index / 16) % 2 == 1)?
((index % 2 == 1)? WHITE : BLACK) :
((index % 2 == 1)? BLACK : WHITE);
setId(squareIndex);
setSq... | public BoardButton(final Context context, final int index)
{
super(context);
View.inflate(context, R.layout.framelayout_boardbutton, this);
squareIndex = index;
squareColor = ((index / 16) % 2 == 1)?
((index % 2 == 1)? BLACK : WHITE) :
((index % 2 == 1)? WHITE : BLACK);
setId(squareIndex);
setSq... |
diff --git a/tizzit-cocoon-block/src/main/java/de/juwimm/cms/cocoon/transformation/NavigationTransformer.java b/tizzit-cocoon-block/src/main/java/de/juwimm/cms/cocoon/transformation/NavigationTransformer.java
index f9862556..c8371e5a 100644
--- a/tizzit-cocoon-block/src/main/java/de/juwimm/cms/cocoon/transformation/Nav... | true | true | public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException {
if (localName.equals("navigation")) {
AttributesImpl newAtts = new AttributesImpl();
newAtts.setAttributes(attrs);
if (this.unitValue != null) {
if (log.isDebugEnabled()) log.debug("found a unitV... | public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException {
if (localName.equals("navigation")) {
AttributesImpl newAtts = new AttributesImpl();
newAtts.setAttributes(attrs);
if (this.unitValue != null) {
if (log.isDebugEnabled()) log.debug("found a unitV... |
diff --git a/Dart/src/com/jetbrains/lang/dart/ide/formatter/DartSpacingProcessor.java b/Dart/src/com/jetbrains/lang/dart/ide/formatter/DartSpacingProcessor.java
index 54fd0f27bd..ab52c3eae9 100644
--- a/Dart/src/com/jetbrains/lang/dart/ide/formatter/DartSpacingProcessor.java
+++ b/Dart/src/com/jetbrains/lang/dart/ide/f... | false | true | public Spacing getSpacing(final Block child1, final Block child2) {
if (!(child1 instanceof AbstractBlock) || !(child2 instanceof AbstractBlock)) {
return null;
}
final IElementType elementType = myNode.getElementType();
final IElementType parentType = myNode.getTreeParent() == null ? null : my... | public Spacing getSpacing(final Block child1, final Block child2) {
if (!(child1 instanceof AbstractBlock) || !(child2 instanceof AbstractBlock)) {
return null;
}
final IElementType elementType = myNode.getElementType();
final IElementType parentType = myNode.getTreeParent() == null ? null : my... |
diff --git a/src/main/java/net/aufdemrand/denizen/objects/Element.java b/src/main/java/net/aufdemrand/denizen/objects/Element.java
index f6f7d709e..09e7b3e68 100644
--- a/src/main/java/net/aufdemrand/denizen/objects/Element.java
+++ b/src/main/java/net/aufdemrand/denizen/objects/Element.java
@@ -1,564 +1,564 @@
packag... | false | true | public String getAttribute(Attribute attribute) {
if (attribute == null) return null;
// <--[tag]
// @attribute <element.as_int>
// @returns Element(Number)
// @description
// Returns the element as a number without a decimal. Rounds up double values.
// -->... | public String getAttribute(Attribute attribute) {
if (attribute == null) return null;
// <--[tag]
// @attribute <element.as_int>
// @returns Element(Number)
// @description
// Returns the element as a number without a decimal. Rounds up double values.
// -->... |
diff --git a/CoVoiturage-Spring-WS/CoVoiturage-WS/src/test/java/iaws/covoiturage/ws/contractfirst/TestIntegrationCoVoiturageEndPoint.java b/CoVoiturage-Spring-WS/CoVoiturage-WS/src/test/java/iaws/covoiturage/ws/contractfirst/TestIntegrationCoVoiturageEndPoint.java
index 13761ff..c8f7c7a 100644
--- a/CoVoiturage-Spring-... | true | true | public void releveNotesEndpoint() throws Exception {
Source requestPayload = new StreamSource(new ClassPathResource("ReleveNotesRequest.xml").getInputStream() );
Source responsePayload = new StreamSource(new ClassPathResource("ReleveNotes.xml").getInputStream());
mockClient.sendRequest(with... | public void releveNotesEndpoint() throws Exception {
Source requestPayload = new StreamSource(new ClassPathResource("CoVoiturageRequest.xml").getInputStream() );
Source responsePayload = new StreamSource(new ClassPathResource("Covoiturage.xml").getInputStream());
mockClient.sendRequest(with... |
diff --git a/server/src/test/java/com/sinnerschrader/smaller/ServerTest.java b/server/src/test/java/com/sinnerschrader/smaller/ServerTest.java
index eff92bf..b762a9d 100644
--- a/server/src/test/java/com/sinnerschrader/smaller/ServerTest.java
+++ b/server/src/test/java/com/sinnerschrader/smaller/ServerTest.java
@@ -1,1... | true | true | public void testAny() throws Exception {
runToolChain("any", new ToolChainCallback() {
public void test(File directory) throws Exception {
String basicMin = FileUtils.readFileToString(new File(directory, "basic-min.js"));
assertThat(basicMin, is("(function(){alert(\"Test1\")})()(function(){a... | public void testAny() throws Exception {
runToolChain("any", new ToolChainCallback() {
public void test(File directory) throws Exception {
String basicMin = FileUtils.readFileToString(new File(directory, "basic-min.js"));
assertThat(basicMin, is("(function(){alert(\"Test1\")})()(function(){a... |
diff --git a/src/main/java/com/ning/http/client/providers/jdk/JDKAsyncHttpProvider.java b/src/main/java/com/ning/http/client/providers/jdk/JDKAsyncHttpProvider.java
index 5b155b2ec..928663e6c 100644
--- a/src/main/java/com/ning/http/client/providers/jdk/JDKAsyncHttpProvider.java
+++ b/src/main/java/com/ning/http/client... | false | true | private void configure(URI uri, HttpURLConnection urlConnection, Request request) throws IOException, AuthenticationException {
PerRequestConfig conf = request.getPerRequestConfig();
int requestTimeout = (conf != null && conf.getRequestTimeoutInMs() != 0) ?
conf.getR... | private void configure(URI uri, HttpURLConnection urlConnection, Request request) throws IOException, AuthenticationException {
PerRequestConfig conf = request.getPerRequestConfig();
int requestTimeout = (conf != null && conf.getRequestTimeoutInMs() != 0) ?
conf.getR... |
diff --git a/beans/src/main/java/org/sola/clients/beans/administrative/LeaseReportBean.java b/beans/src/main/java/org/sola/clients/beans/administrative/LeaseReportBean.java
index 49789807..d72d4ce7 100644
--- a/beans/src/main/java/org/sola/clients/beans/administrative/LeaseReportBean.java
+++ b/beans/src/main/java/org/... | true | true | public String getTotalLeaseFee(){
BigDecimal serviceFee = BigDecimal.ZERO;
BigDecimal regFee = BigDecimal.ZERO;
BigDecimal stampDuty = BigDecimal.ZERO;
BigDecimal remGroundRent = BigDecimal.valueOf(getLease().getGroundRentRemaining());
if(getService()!=null && getSer... | public String getTotalLeaseFee(){
BigDecimal serviceFee = BigDecimal.ZERO;
BigDecimal regFee = BigDecimal.ZERO;
BigDecimal stampDuty = BigDecimal.ZERO;
BigDecimal remGroundRent = BigDecimal.valueOf(getLease().getGroundRentRemaining());
if(getService()!=null && getLea... |
diff --git a/plugins/org.eclipse.emf.mwe2.launch/src/org/eclipse/emf/mwe2/launch/shortcut/Mwe2LaunchDelegate.java b/plugins/org.eclipse.emf.mwe2.launch/src/org/eclipse/emf/mwe2/launch/shortcut/Mwe2LaunchDelegate.java
index be35986e..4863a761 100644
--- a/plugins/org.eclipse.emf.mwe2.launch/src/org/eclipse/emf/mwe2/laun... | true | true | public void launch(final ILaunchConfiguration configuration, String mode,
ILaunch launch, IProgressMonitor monitor) throws CoreException {
if (configuration.getAttribute(ATTR_REFRESH_SCOPE, (String) null) != null) {
DebugPlugin.getDefault().addDebugEventListener(new IDebugEventSetListener() {
public void h... | public void launch(final ILaunchConfiguration configuration, String mode,
ILaunch launch, IProgressMonitor monitor) throws CoreException {
if (configuration.getAttribute(ATTR_REFRESH_SCOPE, (String) null) != null) {
DebugPlugin.getDefault().addDebugEventListener(new IDebugEventSetListener() {
public void h... |
diff --git a/src/org/odk/collect/android/activities/FormHierarchyActivity.java b/src/org/odk/collect/android/activities/FormHierarchyActivity.java
index 568917b..e4ee6d4 100644
--- a/src/org/odk/collect/android/activities/FormHierarchyActivity.java
+++ b/src/org/odk/collect/android/activities/FormHierarchyActivity.java... | true | true | public void refreshView() {
formList = new ArrayList<HierarchyElement>();
FormIndex currentIndex = mCurrentIndex;
// would like to use this, but it's broken and changes the currentIndex
// TODO: fix in javarosa.
/*
* FormIndex startTest = stepIndexOut(currentIndex); Log.e("carl",
* "starttest = " + s... | public void refreshView() {
formList = new ArrayList<HierarchyElement>();
FormIndex currentIndex = mCurrentIndex;
// would like to use this, but it's broken and changes the currentIndex
// TODO: fix in javarosa.
/*
* FormIndex startTest = stepIndexOut(currentIndex); Log.e("carl",
* "starttest = " + s... |
diff --git a/src/Level2.java b/src/Level2.java
index edd1b92..5a8cb48 100644
--- a/src/Level2.java
+++ b/src/Level2.java
@@ -1,304 +1,300 @@
import java.awt.Font;
import java.util.ArrayList;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.TrueTypeFont;
import org.newdawn.slick.gui.TextField;
... | true | true | public void run() {
boolean at_fridge = false;
boolean at_drawer = false;
boolean at_cabinet = false;
boolean open_fridge = false;
boolean open_drawer = false;
boolean open_cabinet = false;
boolean close_fridge = false;
boolean close_drawer = false;
boolean close_cabinet = false;
boolean bread = fa... | public void run() {
boolean at_fridge = false;
boolean at_drawer = false;
boolean at_cabinet = false;
boolean open_fridge = false;
boolean open_drawer = false;
boolean open_cabinet = false;
boolean close_fridge = false;
boolean close_drawer = false;
boolean close_cabinet = false;
boolean bread = fa... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java
index dfb26a62b..69a495de3 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TasksUiPlugin.java
+++ b/o... | false | true | public void start(BundleContext context) throws Exception {
super.start(context);
// NOTE: startup order is very sensitive
try {
// initialize framework and settings
WebUtil.init();
if (DEBUG_HTTPCLIENT) {
initHttpLogging();
}
initializePreferences(getPreferenceStore());
// initialize Comm... | public void start(BundleContext context) throws Exception {
super.start(context);
// NOTE: startup order is very sensitive
try {
// initialize framework and settings
if (DEBUG_HTTPCLIENT) {
// do this before anything else, once commons logging is initialized and an instance
// of Log has been crea... |
diff --git a/src/mx/ferreyra/dogapp/DogUtil.java b/src/mx/ferreyra/dogapp/DogUtil.java
index f45c9da..5316089 100644
--- a/src/mx/ferreyra/dogapp/DogUtil.java
+++ b/src/mx/ferreyra/dogapp/DogUtil.java
@@ -1,150 +1,150 @@
package mx.ferreyra.dogapp;
import android.app.Application;
import android.content.ComponentNa... | true | true | public void onCreate() {
super.onCreate();
if(app == null)
app = this;
// Loading preferences
String prefer = getString(R.string.preferences_name);
String userId = getString(R.string.preference_user_id);
SharedPreferences pref = getSharedPreferences(prefer, 0);
userId... | public void onCreate() {
super.onCreate();
if(app == null)
app = this;
// Loading preferences
String prefer = getString(R.string.preferences_name);
String userId = getString(R.string.preference_user_id);
SharedPreferences pref = getSharedPreferences(prefer, 0);
int po... |
diff --git a/contrib/stress/src/org/apache/cassandra/contrib/stress/Session.java b/contrib/stress/src/org/apache/cassandra/contrib/stress/Session.java
index 853d5987..99811408 100644
--- a/contrib/stress/src/org/apache/cassandra/contrib/stress/Session.java
+++ b/contrib/stress/src/org/apache/cassandra/contrib/stress/Se... | true | true | public Session(String[] arguments) throws IllegalArgumentException
{
float STDev = 0.1f;
CommandLineParser parser = new PosixParser();
try
{
CommandLine cmd = parser.parse(availableOptions, arguments);
if (cmd.hasOption("h"))
throw new Il... | public Session(String[] arguments) throws IllegalArgumentException
{
float STDev = 0.1f;
CommandLineParser parser = new PosixParser();
try
{
CommandLine cmd = parser.parse(availableOptions, arguments);
if (cmd.hasOption("h"))
throw new Il... |
diff --git a/crypto/src/org/bouncycastle/cms/CMSEnvelopedGenerator.java b/crypto/src/org/bouncycastle/cms/CMSEnvelopedGenerator.java
index b086f88d..23c63025 100644
--- a/crypto/src/org/bouncycastle/cms/CMSEnvelopedGenerator.java
+++ b/crypto/src/org/bouncycastle/cms/CMSEnvelopedGenerator.java
@@ -1,325 +1,325 @@
pack... | true | true | public void addKeyAgreementRecipient(
String agreementAlgorithm,
PrivateKey senderPrivateKey,
PublicKey senderPublicKey,
X509Certificate recipientCert,
String cekWrapAlgorithm,
Provider provider)
throws NoSuchAlgorithm... | public void addKeyAgreementRecipient(
String agreementAlgorithm,
PrivateKey senderPrivateKey,
PublicKey senderPublicKey,
X509Certificate recipientCert,
String cekWrapAlgorithm,
Provider provider)
throws NoSuchAlgorithm... |
diff --git a/deegree-services/src/main/java/org/deegree/services/controller/ows/OWSException100XMLAdapter.java b/deegree-services/src/main/java/org/deegree/services/controller/ows/OWSException100XMLAdapter.java
index 085ffd48e0..e658484cb2 100644
--- a/deegree-services/src/main/java/org/deegree/services/controller/ows/... | true | true | public void serializeExceptionToXML( XMLStreamWriter writer, OWSException ex )
throws XMLStreamException {
if ( ex == null || writer == null ) {
return;
}
writer.setPrefix( "ows", OWS_NS );
writer.setPrefix( "xsi", XSINS );
writer.write... | public void serializeExceptionToXML( XMLStreamWriter writer, OWSException ex )
throws XMLStreamException {
if ( ex == null || writer == null ) {
return;
}
writer.setPrefix( "ows", OWS_NS );
writer.setPrefix( "xsi", XSINS );
writer.write... |
diff --git a/src/uk/org/ponder/rsf/state/guards/BeanGuardProcessor.java b/src/uk/org/ponder/rsf/state/guards/BeanGuardProcessor.java
index 6648957..f63ff88 100644
--- a/src/uk/org/ponder/rsf/state/guards/BeanGuardProcessor.java
+++ b/src/uk/org/ponder/rsf/state/guards/BeanGuardProcessor.java
@@ -1,98 +1,98 @@
/*
* C... | true | true | public void processPostGuards(BeanInvalidationModel bim, TargettedMessageList errors,
WriteableBeanLocator rbl) {
BindException springerrors = null;
for (int i = 0; i < guards.length; ++ i) {
BeanGuard guarddef = guards[i];
String mode = guarddef.getGuardMode();
String timing = guardd... | public void processPostGuards(BeanInvalidationModel bim, TargettedMessageList errors,
WriteableBeanLocator rbl) {
BindException springerrors = null;
for (int i = 0; i < guards.length; ++ i) {
BeanGuard guarddef = guards[i];
String mode = guarddef.getGuardMode();
String timing = guardd... |
diff --git a/weasis-core/weasis-core-ui/src/main/java/org/weasis/core/ui/graphic/AbstractDragGraphicArea.java b/weasis-core/weasis-core-ui/src/main/java/org/weasis/core/ui/graphic/AbstractDragGraphicArea.java
index 8738a89b4..a4999267a 100644
--- a/weasis-core/weasis-core-ui/src/main/java/org/weasis/core/ui/graphic/Abs... | true | true | public List<MeasureItem> getImageStatistics(ImageLayer layer, boolean releaseEvent) {
if (layer != null) {
ImageElement imageElement = layer.getSourceImage();
if (imageElement != null && isShapeValid()) {
ArrayList<MeasureItem> measVal = new ArrayList<MeasureItem>();
... | public List<MeasureItem> getImageStatistics(ImageLayer layer, boolean releaseEvent) {
if (layer != null) {
ImageElement imageElement = layer.getSourceImage();
if (imageElement != null && isShapeValid()) {
ArrayList<MeasureItem> measVal = new ArrayList<MeasureItem>();
... |
diff --git a/src/main/java/com/philihp/weblabora/model/Board.java b/src/main/java/com/philihp/weblabora/model/Board.java
index 327f3fd..20a1552 100644
--- a/src/main/java/com/philihp/weblabora/model/Board.java
+++ b/src/main/java/com/philihp/weblabora/model/Board.java
@@ -1,664 +1,664 @@
package com.philihp.weblabora.... | false | true | public SettlementRound roundBeforeSettlement(int round) {
switch(gamePlayers) {
case TWO:
switch (round) {
case 6:
return SettlementRound.A;
case 12:
return SettlementRound.B;
case 19:
return SettlementRound.C;
case 26:
return SettlementRound.D;
default:
return null;
}
ca... | public SettlementRound roundBeforeSettlement(int round) {
switch(gamePlayers) {
case TWO:
switch (round) {
case 6:
return SettlementRound.A;
case 13:
return SettlementRound.B;
case 20:
return SettlementRound.C;
case 27:
return SettlementRound.D;
default:
return null;
}
ca... |
diff --git a/src/java/fedora/server/utilities/rebuild/Rebuild.java b/src/java/fedora/server/utilities/rebuild/Rebuild.java
index cce6011ea..64af75790 100755
--- a/src/java/fedora/server/utilities/rebuild/Rebuild.java
+++ b/src/java/fedora/server/utilities/rebuild/Rebuild.java
@@ -1,382 +1,383 @@
/* The contents of thi... | true | true | public Rebuild(File serverDir, String profile) throws Exception {
ServerConfiguration serverConfig = getServerConfig(serverDir, profile);
// set these here so DOTranslationUtility doesn't try to get a Server
// instance
System.setProperty("fedoraServerHost", serverConfig.getParameter(
"fedoraServerHost").g... | public Rebuild(File serverDir, String profile) throws Exception {
ServerConfiguration serverConfig = getServerConfig(serverDir, profile);
// set these here so DOTranslationUtility doesn't try to get a Server
// instance
System.setProperty("fedoraServerHost", serverConfig.getParameter(
"fedoraServerHost").g... |
diff --git a/src/pudgewars/entities/PudgeEntity.java b/src/pudgewars/entities/PudgeEntity.java
index 0c0d45c..7519ed8 100644
--- a/src/pudgewars/entities/PudgeEntity.java
+++ b/src/pudgewars/entities/PudgeEntity.java
@@ -1,371 +1,375 @@
package pudgewars.entities;
import java.awt.Image;
import java.awt.Shape;
imp... | true | true | public void update() {
if (rigidbody.isMoving()) ani.update();
if (!canMove) target = null;
// Stats
if (controllable && Game.keyInput.buyMode.wasPressed()) {
stats.isOpen ^= true; // Cool way to NOT
}
// Controls
hookTarget = null;
isGrapple = false;
if (controllable && canMove && !stats.isOp... | public void update() {
if (rigidbody.isMoving()) ani.update();
if (!canMove) target = null;
// Stats
if (controllable && Game.keyInput.buyMode.wasPressed()) {
stats.isOpen ^= true; // Cool way to NOT
}
// Controls
hookTarget = null;
isGrapple = false;
if (controllable && canMove && !stats.isOp... |
diff --git a/pluginsource/org/enigma/backend/EnigmaCallbacks.java b/pluginsource/org/enigma/backend/EnigmaCallbacks.java
index 653fc75c..a5d178aa 100644
--- a/pluginsource/org/enigma/backend/EnigmaCallbacks.java
+++ b/pluginsource/org/enigma/backend/EnigmaCallbacks.java
@@ -1,121 +1,121 @@
package org.enigma.backend;
... | true | true | public void callback(final String file)
{
new Thread()
{
public void run()
{
int data;
try
{
InputStream in = new FileInputStream(new File(file));
while (true)
{
if (in.available() > 0)
{
data = in.read();
if (data == -1)... | public void callback(final String file)
{
new Thread()
{
public void run()
{
int data;
try
{
InputStream in = new FileInputStream(new File(file));
while (true)
{
if (in.available() > 0)
{
data = in.read();
if (data == -1)... |
diff --git a/timemeasurement-core/src/test/java/com/coremedia/contribution/timemeasurement/TimeMeasurementTest.java b/timemeasurement-core/src/test/java/com/coremedia/contribution/timemeasurement/TimeMeasurementTest.java
index 32af36a..721cde6 100644
--- a/timemeasurement-core/src/test/java/com/coremedia/contribution/t... | false | true | public void testUseMillis() {
System.setProperty("timemeasurement.enabled", "true");
System.setProperty("timemeasurement.useMillis", "true");
TimeMeasurement.reset();
EtmPoint etmPoint = null;
try {
etmPoint = TimeMeasurement.start("testUseMillis");
//although most systems, Thread.sle... | public void testUseMillis() {
System.setProperty("timemeasurement.enabled", "true");
System.setProperty("timemeasurement.useMillis", "true");
TimeMeasurement.reset();
EtmPoint etmPoint = null;
try {
etmPoint = TimeMeasurement.start("testUseMillis");
//although most systems, Thread.sle... |
diff --git a/gnu/testlet/java/io/InputStreamReader/hang.java b/gnu/testlet/java/io/InputStreamReader/hang.java
index 1e61ede8..9515723d 100644
--- a/gnu/testlet/java/io/InputStreamReader/hang.java
+++ b/gnu/testlet/java/io/InputStreamReader/hang.java
@@ -1,65 +1,65 @@
// Regression test for InputStreamReader hang.
... | true | true | public void test (TestHarness h)
{
try
{
// We make a buffer where a multi-byte UTF-8 character is
// carefully positioned so that the BufferedInputStream we create
// will split it.
byte[] bytes = new byte[20];
Arrays.fill(bytes, (byte) 'a');
bytes[9] = (byte) 0xc0;
bytes[10] = (byte) 0x80;
Byte... | public void test (TestHarness h)
{
try
{
// We make a buffer where a multi-byte UTF-8 character is
// carefully positioned so that the BufferedInputStream we create
// will split it.
byte[] bytes = new byte[20];
Arrays.fill(bytes, (byte) 'a');
bytes[9] = (byte) 208;
bytes[10] = (byte) 164;
ByteAr... |
diff --git a/jsf-ri/src/main/java/com/sun/faces/application/view/StateManagementStrategyImpl.java b/jsf-ri/src/main/java/com/sun/faces/application/view/StateManagementStrategyImpl.java
index cb8d7d5ba..ded24e605 100644
--- a/jsf-ri/src/main/java/com/sun/faces/application/view/StateManagementStrategyImpl.java
+++ b/jsf-... | true | true | public UIViewRoot restoreView(FacesContext context,
String viewId,
String renderKitId) {
ResponseStateManager rsm =
RenderKitUtils.getResponseStateManager(context, renderKitId);
boolean processingEvents = context.isPr... | public UIViewRoot restoreView(FacesContext context,
String viewId,
String renderKitId) {
ResponseStateManager rsm =
RenderKitUtils.getResponseStateManager(context, renderKitId);
boolean processingEvents = context.isPr... |
diff --git a/core/src/main/java/hudson/model/Job.java b/core/src/main/java/hudson/model/Job.java
index 4f9f24989..ab511f587 100644
--- a/core/src/main/java/hudson/model/Job.java
+++ b/core/src/main/java/hudson/model/Job.java
@@ -1,1153 +1,1157 @@
package hudson.model;
import static javax.servlet.http.HttpServletRes... | true | true | private JFreeChart createBuildTimeTrendChart() {
class ChartLabel implements Comparable<ChartLabel> {
final Run run;
public ChartLabel(Run r) {
this.run = r;
}
public int compareTo(ChartLabel that) {
return this.run.number - t... | private JFreeChart createBuildTimeTrendChart() {
class ChartLabel implements Comparable<ChartLabel> {
final Run run;
public ChartLabel(Run r) {
this.run = r;
}
public int compareTo(ChartLabel that) {
return this.run.number - t... |
diff --git a/plugins/org.eclipse.m2m.atl.adt.debug/src/org/eclipse/m2m/atl/adt/debug/core/ocl/DummyFile.java b/plugins/org.eclipse.m2m.atl.adt.debug/src/org/eclipse/m2m/atl/adt/debug/core/ocl/DummyFile.java
index a3ebc36c..be7cd20b 100644
--- a/plugins/org.eclipse.m2m.atl.adt.debug/src/org/eclipse/m2m/atl/adt/debug/cor... | true | true | public IPath getLocation() {
return new IPath() {
public String toString() {
return location;
}
public IPath addFileExtension(String extension) {
return null;
}
public IPath addTrailingSeparator() {
return null;
}
public IPath append(String path) {
return null;
}
publi... | public IPath getLocation() {
return new IPath() {
public String toString() {
return location;
}
public IPath addFileExtension(String extension) {
return null;
}
public IPath addTrailingSeparator() {
return null;
}
public IPath append(String path) {
return null;
}
publi... |
diff --git a/src/Model/Skills/Warrior/SkillThrowingAxe.java b/src/Model/Skills/Warrior/SkillThrowingAxe.java
index 065d4b3..561517a 100644
--- a/src/Model/Skills/Warrior/SkillThrowingAxe.java
+++ b/src/Model/Skills/Warrior/SkillThrowingAxe.java
@@ -1,60 +1,52 @@
package Model.Skills.Warrior;
import org.newdawn.slic... | false | true | public SkillThrowingAxe(){
//String name, int cd, int range, double speed, int aoe, int cost, int damage, StatusEffect SE
super("Throwing axe", 3000, 800, 0.4, 6, 10, 450, 300, 300, 300,"Throwing axe \n" +
"Level 1: 15 damage\n" +
"Level 2: 25 damage\n" +
"Level 3: 35 damage\n" +
"Level 4... | public SkillThrowingAxe(){
//String name, int cd, int range, double speed, int aoe, int cost, int damage, StatusEffect SE
super("Throwing axe", 3000, 800, 0.4, 6, 10, 450, 300, 300, 300,"Throwing axe \n" +
"Level 1: 15 damage\n" +
"Level 2: 25 damage\n" +
"Level 3: 35 damage\n" +
"Level 4... |
diff --git a/broadcast-transcoder/src/test/java/dk/statsbiblioteket/broadcasttranscoder/processors/FileMetadataFetcherProcessorTest.java b/broadcast-transcoder/src/test/java/dk/statsbiblioteket/broadcasttranscoder/processors/FileMetadataFetcherProcessorTest.java
index 65f20ba..f20da67 100644
--- a/broadcast-transcoder/... | true | true | public void testProcessIteratively() throws Exception {
FileMetadataFetcherProcessor processor = new FileMetadataFetcherProcessor();
TranscodeRequest request = new TranscodeRequest();
SingleTranscodingContext context = new SingleTranscodingContext();
request.setObjectPid("uuid:d82107... | public void testProcessIteratively() throws Exception {
FileMetadataFetcherProcessor processor = new FileMetadataFetcherProcessor();
TranscodeRequest request = new TranscodeRequest();
SingleTranscodingContext context = new SingleTranscodingContext();
request.setObjectPid("uuid:3a1bdf... |
diff --git a/calendar-connector/src/test/java/org/mule/module/google/calendar/automation/testcases/GetCalendarByIdTestCases.java b/calendar-connector/src/test/java/org/mule/module/google/calendar/automation/testcases/GetCalendarByIdTestCases.java
index a64a3721..723b15d9 100644
--- a/calendar-connector/src/test/java/or... | false | true | public void testGetCalendarById() {
try {
Calendar createdCalendar = (Calendar) testObjects.get("calendarRef");
MessageProcessor flow = lookupFlowConstruct("get-calendar-by-id");
MuleEvent response = flow.process(getTestEvent(testObjects));
// Assertions on equality
Calendar returnedCalendar ... | public void testGetCalendarById() {
try {
String createdCalendarId = testObjects.get("id").toString();
MessageProcessor flow = lookupFlowConstruct("get-calendar-by-id");
MuleEvent response = flow.process(getTestEvent(testObjects));
// Assertions on equality
Calendar returnedCalendar = (Calend... |
diff --git a/OpERP/src/main/java/devopsdistilled/operp/client/items/panes/controllers/impl/CreateCategoryPaneControllerImpl.java b/OpERP/src/main/java/devopsdistilled/operp/client/items/panes/controllers/impl/CreateCategoryPaneControllerImpl.java
index f6267f57..f6f8887a 100644
--- a/OpERP/src/main/java/devopsdistilled... | false | true | public void validate(Category category) throws NullFieldException,
EntityNameExistsException {
if (category.getCategoryName().equalsIgnoreCase("")) {
throw new NullFieldException();
}
if (categoryModel.getService().isCategoryNameExists(
category.getCategoryName())) {
throw new EntityNameExistsExcep... | public void validate(Category category) throws NullFieldException,
EntityNameExistsException {
if (category.getCategoryName().equalsIgnoreCase("")) {
throw new NullFieldException("Category Name can't be empty");
}
if (categoryModel.getService().isCategoryNameExists(
category.getCategoryName())) {
t... |
diff --git a/tconstruct/blocks/logic/CraftingStationLogic.java b/tconstruct/blocks/logic/CraftingStationLogic.java
index 673db1438..194edac40 100644
--- a/tconstruct/blocks/logic/CraftingStationLogic.java
+++ b/tconstruct/blocks/logic/CraftingStationLogic.java
@@ -1,34 +1,34 @@
package tconstruct.blocks.logic;
impo... | true | true | public boolean canDropInventorySlot (int slot)
{
if (slot == 9 || slot == 0)
return false;
return true;
}
| public boolean canDropInventorySlot (int slot)
{
if (slot == 0)
return false;
return true;
}
|
diff --git a/src/com/pomometer/PomometerApp/PomometerFinishActivity.java b/src/com/pomometer/PomometerApp/PomometerFinishActivity.java
index fe733d3..003f5ee 100644
--- a/src/com/pomometer/PomometerApp/PomometerFinishActivity.java
+++ b/src/com/pomometer/PomometerApp/PomometerFinishActivity.java
@@ -1,58 +1,58 @@
pack... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_pomometer_finish);
Bundle extras = getIntent().getExtras();
final String sent_goal = extras.getString("goal");
String notes = "";
final Long sent_duration = extras.getLong("elapse... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_pomometer_finish);
Bundle extras = getIntent().getExtras();
final String sent_goal = extras.getString("goal");
String notes = "";
final Long sent_duration = extras.getLong("elapse... |
diff --git a/target_explorer/plugins/org.eclipse.tm.te.tcf.core/src/org/eclipse/tm/te/tcf/core/internal/Startup.java b/target_explorer/plugins/org.eclipse.tm.te.tcf.core/src/org/eclipse/tm/te/tcf/core/internal/Startup.java
index 5c3c363a4..4a0e4c0d6 100644
--- a/target_explorer/plugins/org.eclipse.tm.te.tcf.core/src/or... | false | true | public static final void setStarted(boolean started) {
STARTED.set(started);
// Start/Stop should be called in the TCF protocol dispatch thread
if (Protocol.getEventQueue() != null) {
Protocol.invokeLater(new Runnable() {
public void run() {
// Catch IllegalStateException: TCF event dispatcher has s... | public static final void setStarted(boolean started) {
STARTED.set(started);
// Start/Stop should be called in the TCF protocol dispatch thread
if (Protocol.getEventQueue() != null) {
// Catch IllegalStateException: TCF event dispatcher has shut down
try {
Protocol.invokeLater(new Runnable() {
pu... |
diff --git a/SimSeqNBProject/src/simseq/SamWriter.java b/SimSeqNBProject/src/simseq/SamWriter.java
index fcd5a38..bbb2e4e 100644
--- a/SimSeqNBProject/src/simseq/SamWriter.java
+++ b/SimSeqNBProject/src/simseq/SamWriter.java
@@ -1,82 +1,86 @@
/*
* To change this template, choose Tools | Templates
* and open the te... | true | true | public void write(final SamRecord rec) throws IOException {
//<QNAME> <FLAG> <RNAME> <POS> <MAPQ> <CIGAR> <MRNM> <MPOS> <ISIZE> <SEQ> <QUAL> \
//[<TAG>:<VTYPE>:<VALUE> [...]]
//print the informative id if desired
if(this.informative_id){
writer.print(rec... | public void write(final SamRecord rec) throws IOException {
//<QNAME> <FLAG> <RNAME> <POS> <MAPQ> <CIGAR> <MRNM> <MPOS> <ISIZE> <SEQ> <QUAL> \
//[<TAG>:<VTYPE>:<VALUE> [...]]
//print the informative id if desired
if(this.informative_id){
writer.print(rec... |
diff --git a/loci/plugins/LociUploader.java b/loci/plugins/LociUploader.java
index 3d8a13d3e..c916126cf 100644
--- a/loci/plugins/LociUploader.java
+++ b/loci/plugins/LociUploader.java
@@ -1,208 +1,216 @@
//
// LociUploader.java
//
/*
LOCI Plugins for ImageJ: a collection of ImageJ plugins including
the 4D Data... | false | true | private void uploadStack() {
try {
IJ.showStatus("Starting upload...");
OMEUploader ul = new OMEUploader(server, user, pass);
ImagePlus imp = WindowManager.getCurrentImage();
if (imp == null) {
IJ.error("No open images!");
IJ.showStatus("");
return;
}
Im... | private void uploadStack() {
try {
IJ.showStatus("Starting upload...");
OMEUploader ul = new OMEUploader(server, user, pass);
ImagePlus imp = WindowManager.getCurrentImage();
if (imp == null) {
IJ.error("No open images!");
IJ.showStatus("");
return;
}
Im... |
diff --git a/core/src/visad/trunk/data/mcidas/PointDataAdapter.java b/core/src/visad/trunk/data/mcidas/PointDataAdapter.java
index 0da67965c..17cea1dcd 100644
--- a/core/src/visad/trunk/data/mcidas/PointDataAdapter.java
+++ b/core/src/visad/trunk/data/mcidas/PointDataAdapter.java
@@ -1,346 +1,346 @@
//
// PointDataAd... | false | true | private void makeField()
throws VisADException
{
// First, let's make a generic FieldImpl from the data
// the structure will be index -> parameter tuple
// get all the stuff from the reader
int[][] data;
String[] units;
String[] params;
Unit[] defaultUnits;
int[] scalingFactor... | private void makeField()
throws VisADException
{
// First, let's make a generic FieldImpl from the data
// the structure will be index -> parameter tuple
// get all the stuff from the reader
int[][] data;
String[] units;
String[] params;
Unit[] defaultUnits;
int[] scalingFactor... |
diff --git a/src/main/java/com/philihp/weblabora/model/building/ChamberOfWonders.java b/src/main/java/com/philihp/weblabora/model/building/ChamberOfWonders.java
index 4ed4869..5a555f4 100644
--- a/src/main/java/com/philihp/weblabora/model/building/ChamberOfWonders.java
+++ b/src/main/java/com/philihp/weblabora/model/bu... | true | true | public void use(Board board, UsageParam param) throws WeblaboraException {
Player player = board.getPlayer(board.getActivePlayer());
if(param.differentSingularGoods() == 13) {
player.subtractAll(param);
player.claimWonder(board.claimWonder());
}
}
| public void use(Board board, UsageParam param) throws WeblaboraException {
Player player = board.getPlayer(board.getActivePlayer());
if(param.differentSingularGoods() == 13) {
player.subtractAll(param);
player.claimWonder(board.claimWonder());
}
else throw new WeblaboraException(getName() + " requires ex... |
diff --git a/src/tesseract/menuitems/TesseractMenuItem.java b/src/tesseract/menuitems/TesseractMenuItem.java
index 8076f28..5c79ba3 100644
--- a/src/tesseract/menuitems/TesseractMenuItem.java
+++ b/src/tesseract/menuitems/TesseractMenuItem.java
@@ -1,260 +1,262 @@
package tesseract.menuitems;
import java.awt.Border... | false | true | protected void createParameterMenu() {
my_param_frame = new JFrame("Parameters");
my_param_frame.setBackground(Color.GRAY);
my_param_frame.setLayout(new GridLayout(5,1));
Toolkit tk = Toolkit.getDefaultToolkit();
Dimension screenSize = tk.getScreenSize();
int screenHeight = screenSize.height;
... | protected void createParameterMenu() {
my_param_frame = new JFrame("Parameters");
my_param_frame.setBackground(Color.GRAY);
my_param_frame.setLayout(new GridLayout(5,1));
Toolkit tk = Toolkit.getDefaultToolkit();
Dimension screenSize = tk.getScreenSize();
int screenHeight = screenSize.height;
... |
diff --git a/src/ualberta/g12/adventurecreator/CreateStoryActivity.java b/src/ualberta/g12/adventurecreator/CreateStoryActivity.java
index 9d04f67..b2d9c12 100644
--- a/src/ualberta/g12/adventurecreator/CreateStoryActivity.java
+++ b/src/ualberta/g12/adventurecreator/CreateStoryActivity.java
@@ -1,71 +1,71 @@
package ... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_create_story);
createButton = (Button) findViewById(R.id.button1);
createButton.setOnClickListener(new View.OnClickListener() {
@Override
publi... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_create_story);
createButton = (Button) findViewById(R.id.button1);
createButton.setOnClickListener(new View.OnClickListener() {
@Override
publi... |
diff --git a/server/plugin/src/pt/webdetails/cdf/dd/packager/Concatenate.java b/server/plugin/src/pt/webdetails/cdf/dd/packager/Concatenate.java
index 0d9b8115..2bd8ace0 100644
--- a/server/plugin/src/pt/webdetails/cdf/dd/packager/Concatenate.java
+++ b/server/plugin/src/pt/webdetails/cdf/dd/packager/Concatenate.java
@... | true | true | public static InputStream concat(File[] files, String rootpath)
{
if (rootpath == null || StringUtils.isEmpty(rootpath))
{
return concat(files);
}
try
{
StringBuffer buffer = new StringBuffer();
for (File file : files)
{
StringBuffer tmp = new StringBuffer();
... | public static InputStream concat(File[] files, String rootpath)
{
if (rootpath == null || StringUtils.isEmpty(rootpath))
{
return concat(files);
}
try
{
StringBuffer buffer = new StringBuffer();
for (File file : files)
{
StringBuffer tmp = new StringBuffer();
... |
diff --git a/c2n24.java b/c2n24.java
index e92d8a2..7726efe 100644
--- a/c2n24.java
+++ b/c2n24.java
@@ -1,49 +1,49 @@
// Aaron Zeng 20120207
import java.util.*;
import java.io.*;
public class c2n24
{
public static void main( String[] args )
{
Scanner input = new Scanner( System.in );
... | false | true | public static void main( String[] args )
{
Scanner input = new Scanner( System.in );
int a, b, c, d, e, min, max;
System.out.print( "Enter first integer: " );
a = input.nextInt();
min = a;
max = a;
System.out.print( "Enter second integer: " );
b ... | public static void main( String[] args )
{
Scanner input = new Scanner( System.in );
int a, b, c, d, e, min, max;
System.out.print( "Enter first integer: " );
a = input.nextInt();
min = a;
max = a;
System.out.print( "Enter second integer: " );
b ... |
diff --git a/src/id.java b/src/id.java
index 36ae603..24f4fda 100644
--- a/src/id.java
+++ b/src/id.java
@@ -1,1110 +1,1110 @@
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.logging.Level;
import java.util.logging.... | false | true | private void d(String paramString) {
try {
String[] split = paramString.split(" ");
if (!etc.getInstance().canUseCommand(e.aq, split[0]) && !split[0].startsWith("/#")) {
msg(Colors.Rose + "Unknown command.");
return;
}
if (split... | private void d(String paramString) {
try {
String[] split = paramString.split(" ");
if (!etc.getInstance().canUseCommand(e.aq, split[0]) && !split[0].startsWith("/#")) {
msg(Colors.Rose + "Unknown command.");
return;
}
if (split... |
diff --git a/src/main/java/org/thymeleaf/templateparser/TemplatePreprocessingReader.java b/src/main/java/org/thymeleaf/templateparser/TemplatePreprocessingReader.java
index 2978ec5c..b0467788 100644
--- a/src/main/java/org/thymeleaf/templateparser/TemplatePreprocessingReader.java
+++ b/src/main/java/org/thymeleaf/templ... | false | true | public int read(char[] cbuf, int off, int len) throws IOException {
if (readerLogger.isTraceEnabled()) {
readerLogger.trace("[THYMELEAF][TEMPLATEPREPROCESSINGREADER][{}] CALLING read(char[], {}, {})",
new Object[] {TemplateEngine.threadIndex(),Integer.valueOf(off), Integer.... | public int read(char[] cbuf, int off, int len) throws IOException {
if (readerLogger.isTraceEnabled()) {
readerLogger.trace("[THYMELEAF][TEMPLATEPREPROCESSINGREADER][{}] CALLING read(char[], {}, {})",
new Object[] {TemplateEngine.threadIndex(),Integer.valueOf(off), Integer.... |
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/TransitBoardAlight.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/TransitBoardAlight.java
index 8865ca266..dc72ec368 100644
--- a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/e... | true | true | public State traverse(State state0, long arrivalTimeAtStop) {
RoutingContext rctx = state0.getContext();
RoutingRequest options = state0.getOptions();
// this method is on State not RoutingRequest because we care whether the user is in
// possession of a rented bike.
Traverse... | public State traverse(State state0, long arrivalTimeAtStop) {
RoutingContext rctx = state0.getContext();
RoutingRequest options = state0.getOptions();
// this method is on State not RoutingRequest because we care whether the user is in
// possession of a rented bike.
Traverse... |
diff --git a/src/main/java/com/happyelements/hive/web/HadoopClient.java b/src/main/java/com/happyelements/hive/web/HadoopClient.java
index 0e97340..6abf8c8 100755
--- a/src/main/java/com/happyelements/hive/web/HadoopClient.java
+++ b/src/main/java/com/happyelements/hive/web/HadoopClient.java
@@ -1,271 +1,276 @@
/*
*... | false | true | public void run() {
if (HadoopClient.refresh_request_count <= 0) {
return;
}
HadoopClient.now = System.currentTimeMillis();
try {
LOGGER.debug("trigger refresh jobs");
for (JobStatus status : HadoopClient.CLIENT.getAllJobs()) {
// save job id
String job_id = status.getJobID... | public void run() {
if (HadoopClient.refresh_request_count <= 0) {
return;
}
HadoopClient.now = System.currentTimeMillis();
try {
LOGGER.debug("trigger refresh jobs");
for (JobStatus status : HadoopClient.CLIENT.getAllJobs()) {
// save job id
String job_id = status.getJobID... |
diff --git a/src/js/incomplete/JSPopover.java b/src/js/incomplete/JSPopover.java
index b9440cf..130897c 100644
--- a/src/js/incomplete/JSPopover.java
+++ b/src/js/incomplete/JSPopover.java
@@ -1,130 +1,131 @@
package js.incomplete;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
impor... | true | true | public void paint(Graphics g) {
g.setColor(strokeColor);
int width = getWidth();
int height = getHeight();
int middleH = height / 2;
int middleW = width / 2;
if (direction == LEFT) {
int[] xPoints = {0, 20, 20, 0};
int[] yPoints = {middleH, middleH - 20, middleH + 20, middleH};
int nPoints =... | public void paint(Graphics g) {
g.clearRect(0, 0, getWidth(), getHeight());
g.setColor(strokeColor);
int width = getWidth();
int height = getHeight();
int middleH = height / 2;
int middleW = width / 2;
if (direction == LEFT) {
int[] xPoints = {0, 20, 20, 0};
int[] yPoints = {middleH, middleH ... |
diff --git a/src/main/java/com/googlecode/mgwt/linker/client/cache/html5/Html5ApplicationCache.java b/src/main/java/com/googlecode/mgwt/linker/client/cache/html5/Html5ApplicationCache.java
index 67476ed7..25512ce7 100644
--- a/src/main/java/com/googlecode/mgwt/linker/client/cache/html5/Html5ApplicationCache.java
+++ b/... | false | true | protected native void initialize() /*-{
var that = this;
var check = $entry(function() {
that.@com.googlecode.mgwt.linker.client.cache.html5.Html5ApplicationCache::onChecking()();
});
$wnd.applicationCache.addEventListener("checking", check);
var onError = $entry(function() {
that.@com.googlecode.mg... | protected native void initialize() /*-{
var that = this;
var check = $entry(function() {
that.@com.googlecode.mgwt.linker.client.cache.html5.Html5ApplicationCache::onChecking()();
});
$wnd.applicationCache.addEventListener("checking", check);
var onError = $entry(function() {
that.@com.googlecode.mg... |
diff --git a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/ti/TypeInferencerVisitor.java b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/ti/TypeInferencerVisitor.java
index b6dfdfc8..15af667c 100644
--- a/plugins/org.eclipse.dltk.javascript.core/sr... | false | true | public static Type resolveJavaScriptType(ITypeInferenceContext context,
String className, IValueCollection collection) {
if (className == null)
return null;
Type type = context.getType(className);
if (type.getKind() == TypeKind.UNKNOWN) {
String[] scopes = className.split("\\.");
IValueReference fun... | public static Type resolveJavaScriptType(ITypeInferenceContext context,
String className, IValueCollection collection) {
if (className == null)
return null;
Type type = context.getType(className);
if (type.getKind() == TypeKind.UNKNOWN) {
String[] scopes = className.split("\\.");
IValueReference fun... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.