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/main/java/uk/co/revthefox/foxbot/commands/CommandKick.java b/src/main/java/uk/co/revthefox/foxbot/commands/CommandKick.java
index babc610..6eef46b 100644
--- a/src/main/java/uk/co/revthefox/foxbot/commands/CommandKick.java
+++ b/src/main/java/uk/co/revthefox/foxbot/commands/CommandKick.java
@@ -1,45 +1... | true | true | public void execute(User sender, Channel channel, String[] args)
{
if (args.length == 0)
{
foxbot.getBot().sendNotice(sender, String.format("Wrong number of args! use %skick <nick> [reason]",
foxbot.getConfig().getCommandPrefix()));
return;
}
... | public void execute(User sender, Channel channel, String[] args)
{
if (args.length == 0)
{
foxbot.getBot().sendNotice(sender, String.format("Wrong number of args! use %skick <nick> [reason]",
foxbot.getConfig().getCommandPrefix()));
return;
}
... |
diff --git a/src/uk/co/mcld/dabble/GlastoCollider1/SCAudio.java b/src/uk/co/mcld/dabble/GlastoCollider1/SCAudio.java
index 4d47aaf..480fe30 100644
--- a/src/uk/co/mcld/dabble/GlastoCollider1/SCAudio.java
+++ b/src/uk/co/mcld/dabble/GlastoCollider1/SCAudio.java
@@ -1,120 +1,121 @@
package uk.co.mcld.dabble.GlastoCollid... | false | true | public void run(){
int minSize = AudioTrack.getMinBufferSize(sampleRateInHz, AudioFormat.CHANNEL_CONFIGURATION_STEREO, AudioFormat.ENCODING_PCM_16BIT);
if(minSize > bufSizeBytes){
System.err.println("AudioTrack.getMinBufferSize " + minSize + " too large for configured buffer " + bufSizeBytes);
}
setPrior... | public void run(){
int minSize = AudioTrack.getMinBufferSize(sampleRateInHz, AudioFormat.CHANNEL_CONFIGURATION_STEREO, AudioFormat.ENCODING_PCM_16BIT);
if(minSize > bufSizeBytes){
System.err.println("AudioTrack.getMinBufferSize " + minSize + " too large for configured buffer " + bufSizeBytes);
}
setPrior... |
diff --git a/src/org/geometerplus/fbreader/fbreader/FBView.java b/src/org/geometerplus/fbreader/fbreader/FBView.java
index f9ac4c6a..812bcd0b 100644
--- a/src/org/geometerplus/fbreader/fbreader/FBView.java
+++ b/src/org/geometerplus/fbreader/fbreader/FBView.java
@@ -1,460 +1,465 @@
/*
* Copyright (C) 2007-2010 Geome... | false | true | public void paint(ZLPaintContext context) {
if (myReader.Model == null) {
return;
}
final ZLColor bgColor = getBackgroundColor();
// TODO: separate color option for footer color
final ZLColor fgColor = getTextColor(FBHyperlinkType.NONE);
final ZLColor fillColor = myReader.getColorProfile().Foot... | public void paint(ZLPaintContext context) {
final FBReaderApp reader = myReader;
if (reader == null) {
return;
}
final BookModel model = reader.Model;
if (model == null) {
return;
}
final ZLColor bgColor = getBackgroundColor();
// TODO: separate color option for footer color
final ... |
diff --git a/src/com/taboozle/Game.java b/src/com/taboozle/Game.java
index 5132c9b..a0d51ba 100644
--- a/src/com/taboozle/Game.java
+++ b/src/com/taboozle/Game.java
@@ -1,1013 +1,1013 @@
package com.taboozle;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Dat... | false | true | public double[][] awardsQuery( int awardID, long gameID )
{
//String[] results = {"", ""}; //TeamID, AwardValue or Word
double[][] results = new double[4][2]; //TeamID, AwardValue or Word
SQLiteDatabase db = this.getReadableDatabase();
String queryStr = "select -1, -1";
Cursor cursor = null;
... | public double[][] awardsQuery( int awardID, long gameID )
{
//String[] results = {"", ""}; //TeamID, AwardValue or Word
double[][] results = new double[4][2]; //TeamID, AwardValue or Word
SQLiteDatabase db = this.getReadableDatabase();
String queryStr = "select -1, -1";
Cursor cursor = null;
... |
diff --git a/src/suncertify/db/DBAccessImpl.java b/src/suncertify/db/DBAccessImpl.java
index b5caec2..b1d1c52 100644
--- a/src/suncertify/db/DBAccessImpl.java
+++ b/src/suncertify/db/DBAccessImpl.java
@@ -1,131 +1,135 @@
package suncertify.db;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java... | false | true | public long[] findByCriteria(String[] criteria) {
if (criteria == null || criteria.length != 6) {
return null;
}
DBPresenter presenter = DBPresenter.getInstance();
List<DBRecord> findedRecords = new ArrayList<DBRecord>();
for (DBRecord record : presenter.getRecords()) {
String[] record... | public long[] findByCriteria(String[] criteria) {
if (criteria == null || criteria.length != 6) {
return null;
}
DBPresenter presenter = DBPresenter.getInstance();
List<DBRecord> findedRecords = new ArrayList<DBRecord>();
for (DBRecord record : presenter.getRecords()) {
String[] record... |
diff --git a/src/org/apache/html/dom/HTMLDocumentImpl.java b/src/org/apache/html/dom/HTMLDocumentImpl.java
index 9788cb23..be5fe5e9 100755
--- a/src/org/apache/html/dom/HTMLDocumentImpl.java
+++ b/src/org/apache/html/dom/HTMLDocumentImpl.java
@@ -1,788 +1,788 @@
/*
* The Apache Software License, Version 1.1
*
*
... | true | true | private static void populateElementTypes()
{
// This class looks like it is due to some strange
// (read: inconsistent) JVM bugs.
// Initially all this code was placed in the static constructor,
// but that caused some early JVMs (1.1) to go mad, and if a
// class could n... | private synchronized static void populateElementTypes()
{
// This class looks like it is due to some strange
// (read: inconsistent) JVM bugs.
// Initially all this code was placed in the static constructor,
// but that caused some early JVMs (1.1) to go mad, and if a
// ... |
diff --git a/src/TeamLeader.java b/src/TeamLeader.java
index 7f5ada8..2561747 100644
--- a/src/TeamLeader.java
+++ b/src/TeamLeader.java
@@ -1,273 +1,272 @@
import java.util.Calendar;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Random;
import java.util.concurrent... | false | true | public void run() {
// Each event's starting time
long eventStartTime;
// Random Number Generator
Random rand = new Random();
// Whether the employee has had lunch or not
boolean ateLunch = false;
// Random arrive at Work
try {
sleep(ran... | public void run() {
// Each event's starting time
long eventStartTime;
// Random Number Generator
Random rand = new Random();
// Whether the employee has had lunch or not
boolean ateLunch = false;
// Random arrive at Work
try {
sleep(ran... |
diff --git a/src/main/java/Signs/regalowl/hyperconomy/TransactionSign.java b/src/main/java/Signs/regalowl/hyperconomy/TransactionSign.java
index 2c34c45..dd223f9 100644
--- a/src/main/java/Signs/regalowl/hyperconomy/TransactionSign.java
+++ b/src/main/java/Signs/regalowl/hyperconomy/TransactionSign.java
@@ -1,223 +1,22... | false | true | public void onPlayerInteractEvent(PlayerInteractEvent ievent) {
LanguageFile L = hc.getLanguageFile();
if (hc.getYaml().getConfig().getBoolean("config.use-transaction-signs")) {
Player p = ievent.getPlayer();
playerecon = sf.getPlayerEconomy(p.getName());
boolean sneak = false;
if (p.isSneaking()) {
... | public void onPlayerInteractEvent(PlayerInteractEvent ievent) {
LanguageFile L = hc.getLanguageFile();
boolean requireShop = hc.getYaml().getConfig().getBoolean("config.require-transaction-signs-to-be-in-shop");
if (hc.getYaml().getConfig().getBoolean("config.use-transaction-signs")) {
Player p = ievent.getPl... |
diff --git a/src/com/bigpupdev/synodroid/server/UploadIntentService.java b/src/com/bigpupdev/synodroid/server/UploadIntentService.java
index 0c05091..02ea2b8 100644
--- a/src/com/bigpupdev/synodroid/server/UploadIntentService.java
+++ b/src/com/bigpupdev/synodroid/server/UploadIntentService.java
@@ -1,181 +1,181 @@
pa... | true | true | protected void onHandleIntent(Intent intent) {
String dsm_version = intent.getStringExtra(DSM_VERSION);
String cookie = intent.getStringExtra(COOKIES);
String shared = intent.getStringExtra(DIRECTORY);
Uri uri = Uri.parse(intent.getStringExtra(URL));
String path = intent.getStringExtra(PATH);
boolean dbg =... | protected void onHandleIntent(Intent intent) {
String dsm_version = intent.getStringExtra(DSM_VERSION);
String cookie = intent.getStringExtra(COOKIES);
String shared = intent.getStringExtra(DIRECTORY);
Uri uri = Uri.parse(intent.getStringExtra(URL));
String path = intent.getStringExtra(PATH);
boolean dbg =... |
diff --git a/replicator/src/java/com/continuent/tungsten/replicator/applier/JdbcPrefetcher.java b/replicator/src/java/com/continuent/tungsten/replicator/applier/JdbcPrefetcher.java
index b185ad2..3f22764 100644
--- a/replicator/src/java/com/continuent/tungsten/replicator/applier/JdbcPrefetcher.java
+++ b/replicator/src... | true | true | public void apply(DBMSEvent event, ReplDBMSHeader header, boolean doCommit,
boolean doRollback)
{
long seqno = -1;
if (appliedTimes == null)
appliedTimes = new TreeMap<Long, Timestamp>();
Timestamp sourceTstamp = event.getSourceTstamp();
appliedTimes.put... | public void apply(DBMSEvent event, ReplDBMSHeader header, boolean doCommit,
boolean doRollback)
{
long seqno = -1;
if (appliedTimes == null)
appliedTimes = new TreeMap<Long, Timestamp>();
Timestamp sourceTstamp = event.getSourceTstamp();
appliedTimes.put... |
diff --git a/src/plugins/gateway/src/java/org/jivesoftware/openfire/gateway/protocols/oscar/OSCARSession.java b/src/plugins/gateway/src/java/org/jivesoftware/openfire/gateway/protocols/oscar/OSCARSession.java
index 5b8b5669..1fc6ba08 100644
--- a/src/plugins/gateway/src/java/org/jivesoftware/openfire/gateway/protocols/... | true | true | public void syncContactGroupsAndNickname(String contact, String nickname, List<String> grouplist) {
if (grouplist.isEmpty()) {
if (transport.getType().equals(TransportType.icq)) {
grouplist.add(DEFAULT_ICQ_GROUP);
}
else {
grouplist.add(DEF... | public void syncContactGroupsAndNickname(String contact, String nickname, List<String> grouplist) {
if (grouplist.isEmpty()) {
if (transport.getType().equals(TransportType.icq)) {
grouplist.add(DEFAULT_ICQ_GROUP);
}
else {
grouplist.add(DEF... |
diff --git a/src/main/java/ru/tehkode/modifyworld/handlers/EntityListener.java b/src/main/java/ru/tehkode/modifyworld/handlers/EntityListener.java
index a44e4fd..0f667ca 100644
--- a/src/main/java/ru/tehkode/modifyworld/handlers/EntityListener.java
+++ b/src/main/java/ru/tehkode/modifyworld/handlers/EntityListener.java... | false | true | public void onEntityDamage(EntityDamageEvent event) {
if (event instanceof EntityDamageByEntityEvent) {
EntityDamageByEntityEvent edbe = (EntityDamageByEntityEvent) event;
Player player;
if (edbe.getDamager() instanceof Player) { // Prevent from damaging by player
player = (Player) edbe.getDamager();
... | public void onEntityDamage(EntityDamageEvent event) {
if (event instanceof EntityDamageByEntityEvent) {
EntityDamageByEntityEvent edbe = (EntityDamageByEntityEvent) event;
Player player;
if (edbe.getDamager() instanceof Player) { // Prevent from damaging by player
player = (Player) edbe.getDamager();
... |
diff --git a/src/main/java/biomesoplenty/client/render/blocks/PlantsRenderer.java b/src/main/java/biomesoplenty/client/render/blocks/PlantsRenderer.java
index 25e026da5..124b8ec15 100644
--- a/src/main/java/biomesoplenty/client/render/blocks/PlantsRenderer.java
+++ b/src/main/java/biomesoplenty/client/render/blocks/Pla... | true | true | private boolean renderCrossedSquares(Block par1Block, int par2, int par3, int par4, RenderBlocks renderer, boolean colourMultiply)
{
Tessellator tessellator = Tessellator.instance;
//TODO: blockAccess
IBlockAccess world = renderer.field_147845_a;
//TODO: getMixedBrightnessForBlock()
tessellato... | private boolean renderCrossedSquares(Block par1Block, int par2, int par3, int par4, RenderBlocks renderer, boolean colourMultiply)
{
Tessellator tessellator = Tessellator.instance;
//TODO: blockAccess
IBlockAccess world = renderer.field_147845_a;
//TODO: getMixedBrightnessForBlock()
tessellato... |
diff --git a/src/org/nutz/dao/util/cri/Exps.java b/src/org/nutz/dao/util/cri/Exps.java
index f51db34e1..9a28de129 100644
--- a/src/org/nutz/dao/util/cri/Exps.java
+++ b/src/org/nutz/dao/util/cri/Exps.java
@@ -1,141 +1,141 @@
package org.nutz.dao.util.cri;
import java.util.Collection;
import org.nutz.castor.Casto... | true | true | public static SqlExpression create(String name, String op, Object value) {
op = Strings.trim(op.toUpperCase());
// NULL
if (null == value) {
SqlExpression re;
// IS NULL
if ("=".equals(op) || "IS".equals(op) || "NOT IS".equals(op) || "IS NOT".equals(op)) {
re = isNull(name);
}
// !!!
else ... | public static SqlExpression create(String name, String op, Object value) {
op = Strings.trim(op.toUpperCase());
// NULL
if (null == value) {
SqlExpression re;
// IS NULL
if ("=".equals(op) || "IS".equals(op) || "NOT IS".equals(op) || "IS NOT".equals(op)) {
re = isNull(name);
}
// !!!
else ... |
diff --git a/src/main/java/org/primefaces/component/inputtextarea/InputTextareaRenderer.java b/src/main/java/org/primefaces/component/inputtextarea/InputTextareaRenderer.java
index a1a11147c..1122abc27 100644
--- a/src/main/java/org/primefaces/component/inputtextarea/InputTextareaRenderer.java
+++ b/src/main/java/org/p... | true | true | protected void encodeScript(FacesContext context, InputTextarea inputTextarea) throws IOException {
ResponseWriter writer = context.getResponseWriter();
String clientId = inputTextarea.getClientId(context);
boolean autoResize = inputTextarea.isAutoResize();
String counter = inputTextarea.getCounter... | protected void encodeScript(FacesContext context, InputTextarea inputTextarea) throws IOException {
ResponseWriter writer = context.getResponseWriter();
String clientId = inputTextarea.getClientId(context);
boolean autoResize = inputTextarea.isAutoResize();
String counter = inputTextarea.getCounter... |
diff --git a/plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerSourcePathComputerDelegate.java b/plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/GenericServerSourcePathComputerDelegate.java
index 15dd6f12..86191ae2 1006... | true | true | public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException {
IRuntimeClasspathEntry[] unresolvedEntries = JavaRuntime.computeUnresolvedSourceLookupPath(configuration);
List sourcefolderList = new ArrayList();
IServer server = Server... | public ISourceContainer[] computeSourceContainers(ILaunchConfiguration configuration, IProgressMonitor monitor) throws CoreException {
IRuntimeClasspathEntry[] unresolvedEntries = JavaRuntime.computeUnresolvedSourceLookupPath(configuration);
List sourcefolderList = new ArrayList();
IServer server = Server... |
diff --git a/plugins/org.eclipse.m2m.atl.adt.builder/src/org/eclipse/m2m/atl/adt/builder/AtlBuildVisitor.java b/plugins/org.eclipse.m2m.atl.adt.builder/src/org/eclipse/m2m/atl/adt/builder/AtlBuildVisitor.java
index d797539a..91eb39b4 100644
--- a/plugins/org.eclipse.m2m.atl.adt.builder/src/org/eclipse/m2m/atl/adt/build... | true | true | public boolean visit(IResource resource) throws CoreException {
String extension = resource.getFileExtension();
if ( ("atl".equals(extension) && (resource instanceof IFile)) && ((IFile)resource).getLocation().toFile().length() > 0
&& (!hasAsmFile(resource) || hasChanged(resource)) ) {
String inName = resour... | public boolean visit(IResource resource) throws CoreException {
String extension = resource.getFileExtension();
if ( ("atl".equals(extension) && (resource instanceof IFile)) && ((IFile)resource).getLocation().toFile().length() > 0
&& (!hasAsmFile(resource) || hasChanged(resource)) ) {
String inName = resour... |
diff --git a/src/main/java/hudson/maven/MavenProcessFactory.java b/src/main/java/hudson/maven/MavenProcessFactory.java
index 3702494..eb23d91 100644
--- a/src/main/java/hudson/maven/MavenProcessFactory.java
+++ b/src/main/java/hudson/maven/MavenProcessFactory.java
@@ -1,459 +1,459 @@
/*
* The MIT License
*
* Co... | true | true | private ArgumentListBuilder buildMavenCmdLine(BuildListener listener,int tcpPort) throws IOException, InterruptedException {
MavenInstallation mvn = getMavenInstallation(listener);
if(mvn==null) {
listener.error("Maven version is not configured for this project. Can't determine which Mav... | private ArgumentListBuilder buildMavenCmdLine(BuildListener listener,int tcpPort) throws IOException, InterruptedException {
MavenInstallation mvn = getMavenInstallation(listener);
if(mvn==null) {
listener.error("Maven version is not configured for this project. Can't determine which Mav... |
diff --git a/cyklotron-core/src/main/java/net/cyklotron/cms/files/internal/FilesServiceImpl.java b/cyklotron-core/src/main/java/net/cyklotron/cms/files/internal/FilesServiceImpl.java
index 447ab0619..dcf7a21ee 100644
--- a/cyklotron-core/src/main/java/net/cyklotron/cms/files/internal/FilesServiceImpl.java
+++ b/cyklotr... | true | true | public String resizeImage(FileResource file, int w, int h, String rm, boolean crop, int crop_x, int crop_y)
throws IOException
{
if(w == -1 && h == -1)
{
throw new IOException("at least one of w and h parameters must be positive");
}
InputStream is = getInput... | public String resizeImage(FileResource file, int w, int h, String rm, boolean crop, int crop_x, int crop_y)
throws IOException
{
if(w == -1 && h == -1)
{
throw new IOException("at least one of w and h parameters must be positive");
}
InputStream is = getInput... |
diff --git a/cocos2d-android/src/org/cocos2d/actions/CCTimer.java b/cocos2d-android/src/org/cocos2d/actions/CCTimer.java
index 98b2cbd..07c8a36 100644
--- a/cocos2d-android/src/org/cocos2d/actions/CCTimer.java
+++ b/cocos2d-android/src/org/cocos2d/actions/CCTimer.java
@@ -1,92 +1,92 @@
package org.cocos2d.actions;
... | true | true | public void update(float dt) {
if (elapsed == -1) {
elapsed = 0;
} else {
elapsed += dt;
}
if (elapsed >= interval) {
if(callback != null) {
callback.update(dt);
} else {
try {
invocation.invoke(t... | public void update(float dt) {
if (elapsed == -1) {
elapsed = 0;
} else {
elapsed += dt;
}
if (elapsed >= interval) {
if(callback != null) {
callback.update(elapsed);
} else {
try {
invocation.inv... |
diff --git a/management/shell/src/main/java/org/mobicents/protocols/ss7/management/console/Shell.java b/management/shell/src/main/java/org/mobicents/protocols/ss7/management/console/Shell.java
index def8b876b..60a08f0c2 100644
--- a/management/shell/src/main/java/org/mobicents/protocols/ss7/management/console/Shell.jav... | true | true | public static void main(String args[]) {
Console ss7Cli = new Console(System.in, System.out);
// TODO : Oleg what about command line arguments?
ss7Cli.start();
}
| public static void main(String args[]) {
Console ss7Cli = new Console(System.in, System.out, new ConsoleListener());
// TODO : Oleg what about command line arguments?
ss7Cli.start();
}
|
diff --git a/src/main/java/net/sradonia/bukkit/alphachest/AlphaChestPlugin.java b/src/main/java/net/sradonia/bukkit/alphachest/AlphaChestPlugin.java
index 5c35aef..dce8c46 100644
--- a/src/main/java/net/sradonia/bukkit/alphachest/AlphaChestPlugin.java
+++ b/src/main/java/net/sradonia/bukkit/alphachest/AlphaChestPlugin.... | true | true | public void onEnable() {
final PluginDescriptionFile pdf = getDescription();
// Save default config.yml
saveDefaultConfig();
// Initialize
chestManager = new VirtualChestManager(new File(getDataFolder(), "chests"));
int chestCount = chestManager.load();
log.info("[" + pdf.getName() + "] loaded " + ches... | public void onEnable() {
final PluginDescriptionFile pdf = getDescription();
// Save default config.yml
saveDefaultConfig();
// Initialize
chestManager = new VirtualChestManager(new File(getDataFolder(), "chests"));
int chestCount = chestManager.load();
log.info("[" + pdf.getName() + "] loaded " + ches... |
diff --git a/PokemonTD/src/com/pixelthieves/pokemontd/graphics/ui/AbilityInfo.java b/PokemonTD/src/com/pixelthieves/pokemontd/graphics/ui/AbilityInfo.java
index 7285f0d..88ef9e1 100644
--- a/PokemonTD/src/com/pixelthieves/pokemontd/graphics/ui/AbilityInfo.java
+++ b/PokemonTD/src/com/pixelthieves/pokemontd/graphics/ui/... | true | true | private String getDescription(EffectName effectName, float splash, EffectData abilityCache, float damage) {
switch (effectName) {
case Normal:
case Thunderbolt:
return "Deals " + (int) (damage) + " damage.";
case Splash:
case Shatter:
... | private String getDescription(EffectName effectName, float splash, EffectData abilityCache, float damage) {
switch (effectName) {
case Normal:
case Thunderbolt:
return "Deals " + (int) (damage) + " damage.";
case Splash:
case Shatter:
... |
diff --git a/app/controllers/Payments.java b/app/controllers/Payments.java
index 6a2332b..3ee03ba 100644
--- a/app/controllers/Payments.java
+++ b/app/controllers/Payments.java
@@ -1,113 +1,113 @@
package controllers;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.H... | true | true | public static void index() {
User user = Security.connectedUser();
if (user != null)
{
// Semi-hack to generate payments for initial data
List<Receipt> list = Receipt.findAll();
for(Receipt r : list)
{
if(r.payments.size() == 0) Payment.generatePayments(r);
}
List<Payment> settled = Pay... | public static void index() {
User user = Security.connectedUser();
if (user != null)
{
// Semi-hack to generate payments for initial data
List<Receipt> list = Receipt.findAll();
for(Receipt r : list)
{
if(r.payments.size() == 0) Payment.generatePayments(r);
}
List<Payment> settled = Pay... |
diff --git a/cadpage/src/net/anei/cadpage/parsers/dispatch/DispatchOSSIParser.java b/cadpage/src/net/anei/cadpage/parsers/dispatch/DispatchOSSIParser.java
index 1198617f6..d7c039bf9 100644
--- a/cadpage/src/net/anei/cadpage/parsers/dispatch/DispatchOSSIParser.java
+++ b/cadpage/src/net/anei/cadpage/parsers/dispatch/Dis... | true | true | protected boolean parseMsg(String body, Data data) {
// If format has a leading ID, strip that off
if (leadID) {
int pt = body.indexOf(':');
if (pt < 0) return false;
data.strCallId = body.substring(0,pt).trim();
if (!NUMERIC.matcher(data.strCallId).matches()) return false;
... | protected boolean parseMsg(String body, Data data) {
// If format has a leading ID, strip that off
if (leadID) {
int pt = body.indexOf(':');
if (pt < 0) return false;
data.strCallId = body.substring(0,pt).trim();
if (!NUMERIC.matcher(data.strCallId).matches()) return false;
... |
diff --git a/net.sourceforge.vrapper.eclipse/src/net/sourceforge/vrapper/eclipse/commands/ChangeTabCommand.java b/net.sourceforge.vrapper.eclipse/src/net/sourceforge/vrapper/eclipse/commands/ChangeTabCommand.java
index 0fd05e4c..e484f4db 100644
--- a/net.sourceforge.vrapper.eclipse/src/net/sourceforge/vrapper/eclipse/c... | false | true | public void execute(EditorAdaptor editorAdaptor) throws CommandExecutionException {
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IEditorReference[] editorReferences = page.getEditorReferences();
int targetIndex;
... | public void execute(EditorAdaptor editorAdaptor) throws CommandExecutionException {
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
IEditorReference[] editorReferences = page.getEditorReferences();
int targetIndex;
... |
diff --git a/navit/navit/android/src/org/navitproject/navit/Navit.java b/navit/navit/android/src/org/navitproject/navit/Navit.java
index ae156a94..cac593ed 100644
--- a/navit/navit/android/src/org/navitproject/navit/Navit.java
+++ b/navit/navit/android/src/org/navitproject/navit/Navit.java
@@ -1,781 +1,781 @@
/**
* ... | true | true | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
dialogs = new NavitDialogs(this);
// only take arguments here, onResume gets called all the time (e.g. when screenblanks, etc.)
Navit.startup_intent = this.getIntent();
// hack! remeber timstamp, and only allow 4 secs. l... | public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
dialogs = new NavitDialogs(this);
// only take arguments here, onResume gets called all the time (e.g. when screenblanks, etc.)
Navit.startup_intent = this.getIntent();
// hack! remeber timstamp, and only allow 4 secs. l... |
diff --git a/easymock-integration/src/test/java/org/easymock/itests/OsgiBaseTest.java b/easymock-integration/src/test/java/org/easymock/itests/OsgiBaseTest.java
index 82f85cac..264eb231 100644
--- a/easymock-integration/src/test/java/org/easymock/itests/OsgiBaseTest.java
+++ b/easymock-integration/src/test/java/org/eas... | true | true | protected String getEasyMockVersion() {
String version = getImplementationVersion(EasyMock.class);
// Null means we are in Eclipse, not in Maven. So we have an Eclipse project dependency instead
// or a Maven dependency with the jar. Which explains why the version is null (no Manifest since
... | protected String getEasyMockVersion() {
String version = getImplementationVersion(EasyMock.class);
// Null means we are an IDE, not in Maven. So we have an IDE project dependency instead
// of a Maven dependency with the jar. Which explains why the version is null (no Manifest
// sin... |
diff --git a/modules/resin/src/com/caucho/jsp/PageContextImpl.java b/modules/resin/src/com/caucho/jsp/PageContextImpl.java
index 00f85b034..b4486a2b0 100644
--- a/modules/resin/src/com/caucho/jsp/PageContextImpl.java
+++ b/modules/resin/src/com/caucho/jsp/PageContextImpl.java
@@ -1,2210 +1,2210 @@
/*
* Copyright (c)... | false | true | public void handlePageException(Throwable e)
throws ServletException, IOException
{
if (e instanceof SkipPageException)
return;
HttpServletRequest request = getCauchoRequest();
request.setAttribute("javax.servlet.jsp.jspException", e);
CauchoResponse response = getCauchoResponse();
... | public void handlePageException(Throwable e)
throws ServletException, IOException
{
if (e instanceof SkipPageException)
return;
HttpServletRequest request = getCauchoRequest();
request.setAttribute("javax.servlet.jsp.jspException", e);
CauchoResponse response = getCauchoResponse();
... |
diff --git a/freeplane/src/org/freeplane/view/swing/map/NodeView.java b/freeplane/src/org/freeplane/view/swing/map/NodeView.java
index 8dc46d2a7..c56c8fc98 100644
--- a/freeplane/src/org/freeplane/view/swing/map/NodeView.java
+++ b/freeplane/src/org/freeplane/view/swing/map/NodeView.java
@@ -1,1568 +1,1568 @@
/*
* ... | false | true | public NodeView getPreferredVisibleChild(final boolean getUpper, final boolean left) {
if (getModel().isLeaf()) {
return null;
}
if (getUpper) {
preferredChild = null;
}
if (preferredChild != null && (left == preferredChild.isLeft()) && preferredChild.getParent() == this) {
if (preferredChild.isCont... | public NodeView getPreferredVisibleChild(final boolean getUpper, final boolean left) {
if (getModel().isLeaf()) {
return null;
}
if (getUpper) {
preferredChild = null;
}
if (preferredChild != null && (left == preferredChild.isLeft()) && preferredChild.getParent() == this) {
if (preferredChild.isCont... |
diff --git a/src/objects/Goal.java b/src/objects/Goal.java
index 786458a..b6b81dc 100755
--- a/src/objects/Goal.java
+++ b/src/objects/Goal.java
@@ -1,54 +1,54 @@
package objects;
import org.newdawn.slick.Color;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.SlickExce... | true | true | public Goal(Shape s, Color c){
super(s, c);
try {
goal = new Image("data/image/redspiral.png");
} catch (SlickException e) {
e.printStackTrace();
}
this.flag.add(OBJECT_FLAG_MAPONLY);
this.flag.add(OBJECT_FLAG_GHOST);
this.flag.add(OBJECT_FLAG_GOAL);
}
| public Goal(Shape s, Color c){
super(s, c);
try {
goal = new Image("data/images/redspiral.png");
} catch (SlickException e) {
e.printStackTrace();
}
this.flag.add(OBJECT_FLAG_MAPONLY);
this.flag.add(OBJECT_FLAG_GHOST);
this.flag.add(OBJECT_FLAG_GOAL);
}
|
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/TransferTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/artifact/repository/TransferTest.java
index f00b36769..2530e26bc 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/ecli... | true | true | public void testGZFileAreNotUnzipped() {
FileOutputStream fos = null;
File f = null;
try {
f = File.createTempFile("TransferTest", "pack.gz");
fos = new FileOutputStream(f);
Platform.getBundle("org.eclipse.ecf.provider.filetransfer").start();
} catch (IOException e) {
fail("1.0", e);
} catch (Bun... | public void testGZFileAreNotUnzipped() {
FileOutputStream fos = null;
File f = null;
try {
f = File.createTempFile("TransferTest", "pack.gz");
fos = new FileOutputStream(f);
Platform.getBundle("org.eclipse.ecf.provider.filetransfer").start();
} catch (IOException e) {
fail("1.0", e);
} catch (Bun... |
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/ui/swt/lnf/rienadefault/RienaDefaultLnfTest.java b/org.eclipse.riena.tests/src/org/eclipse/riena/ui/swt/lnf/rienadefault/RienaDefaultLnfTest.java
index 0e11317e5..da4091d03 100644
--- a/org.eclipse.riena.tests/src/org/eclipse/riena/ui/swt/lnf/rienadefault/Riena... | true | true | public void testGetMarkerSupport() {
lnf.update(new ILnfMarkerSupportExtension[] { new ILnfMarkerSupportExtension() {
public String getId() {
return "defaultMarkerSupport";
}
public AbstractMarkerSupport createMarkerSupport() {
return new MarkerSupport();
}
}, new ILnfMarkerSupportExtension()... | public void testGetMarkerSupport() {
lnf.update(new ILnfMarkerSupportExtension[] { new ILnfMarkerSupportExtension() {
public String getId() {
return "defaultMarkerSupport";
}
public AbstractMarkerSupport createMarkerSupport() {
return new MarkerSupport();
}
}, new ILnfMarkerSupportExtension()... |
diff --git a/framework/src/play/mvc/ActionInvoker.java b/framework/src/play/mvc/ActionInvoker.java
index 4e57bfbe..121e48a7 100644
--- a/framework/src/play/mvc/ActionInvoker.java
+++ b/framework/src/play/mvc/ActionInvoker.java
@@ -1,432 +1,432 @@
package play.mvc;
import java.io.ByteArrayInputStream;
import java.i... | true | true | public static void invoke(Http.Request request, Http.Response response) {
Monitor monitor = null;
try {
if(!Play.started) {
return;
}
Http.Request.current.set(request);
Http.Response.current.set(response);
Scope.Params.cur... | public static void invoke(Http.Request request, Http.Response response) {
Monitor monitor = null;
try {
if(!Play.started) {
return;
}
Http.Request.current.set(request);
Http.Response.current.set(response);
Scope.Params.cur... |
diff --git a/sol-dock-r/src/main/java/at/pagu/soldockr/repository/query/SolrQueryCreator.java b/sol-dock-r/src/main/java/at/pagu/soldockr/repository/query/SolrQueryCreator.java
index b2f8d79..bf97171 100644
--- a/sol-dock-r/src/main/java/at/pagu/soldockr/repository/query/SolrQueryCreator.java
+++ b/sol-dock-r/src/main/... | true | true | private Criteria from(Type type, Criteria instance, Iterator<?> parameters) {
Criteria criteria = instance;
if (criteria == null) {
criteria = new Criteria();
}
switch (type) {
case TRUE:
return criteria.is(true);
case FALSE:
return criteria.is(false);
case SIMP... | private Criteria from(Type type, Criteria instance, Iterator<?> parameters) {
Criteria criteria = instance;
if (criteria == null) {
criteria = new Criteria();
}
switch (type) {
case TRUE:
return criteria.is(true);
case FALSE:
return criteria.is(false);
case SIMP... |
diff --git a/src/gov/nih/nci/eagle/query/dto/ClassComparisonQueryDTOBuilder.java b/src/gov/nih/nci/eagle/query/dto/ClassComparisonQueryDTOBuilder.java
index de79578..d679304 100755
--- a/src/gov/nih/nci/eagle/query/dto/ClassComparisonQueryDTOBuilder.java
+++ b/src/gov/nih/nci/eagle/query/dto/ClassComparisonQueryDTOBuil... | true | true | public QueryDTO buildQueryDTO(Object form, String cacheId) {
ClassComparisonForm classComparisonForm = (ClassComparisonForm) form;
ClassComparisonQueryDTOImpl classComparisondto = new ClassComparisonQueryDTOImpl();
//set taskId/analysis name
if(classComparisonForm.getAnalysisName().trim().length()... | public QueryDTO buildQueryDTO(Object form, String cacheId) {
ClassComparisonForm classComparisonForm = (ClassComparisonForm) form;
ClassComparisonQueryDTOImpl classComparisondto = new ClassComparisonQueryDTOImpl();
//set taskId/analysis name
if(classComparisonForm.getAnalysisName().trim().length()... |
diff --git a/modules/highlevel/highlevel_impl/src/dk/statsbiblioteket/doms/bitstorage/highlevel/status/StaticStatus.java b/modules/highlevel/highlevel_impl/src/dk/statsbiblioteket/doms/bitstorage/highlevel/status/StaticStatus.java
index 107e47b..2201010 100644
--- a/modules/highlevel/highlevel_impl/src/dk/statsbibliote... | true | true | public static String dumpOperation(Operation op) {
java.io.StringWriter sw = new StringWriter();
JAXBContext jaxbcontext = null;
try {
jaxbcontext = JAXBContext.newInstance(
"dk.statsbiblioteket.doms.bitstorage.highlevel");
} catch (JAXBException e) {... | public static String dumpOperation(Operation op) {
java.io.StringWriter sw = new StringWriter();
JAXBContext jaxbcontext = null;
try {
jaxbcontext = JAXBContext.newInstance(
"dk.statsbiblioteket.doms.bitstorage.highlevel.status");
} catch (JAXBExcepti... |
diff --git a/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/DiagramAccess.java b/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/DiagramAccess.java
index cc710c56..e44e30b5 100644
--- a/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/D... | true | true | public static Diagram getDiagram(StructureClass sc) {
Resource resource = sc.eResource();
if (resource==null)
return null;
URI uri = resource.getURI();
// TODOHRR: put common diagram access code into ui.common
// make abstract methods get fileEtension() and populateDiagram()
String modelName = ... | public static Diagram getDiagram(StructureClass sc) {
Resource resource = sc.eResource();
if (resource==null)
return null;
URI uri = resource.getURI();
// TODOHRR: put common diagram access code into ui.common
// make abstract methods get fileEtension() and populateDiagram()
String modelName = ... |
diff --git a/cube-android/src/common/extras/plugins/CubeLoginPlugin.java b/cube-android/src/common/extras/plugins/CubeLoginPlugin.java
index cef17f6..c87925b 100644
--- a/cube-android/src/common/extras/plugins/CubeLoginPlugin.java
+++ b/cube-android/src/common/extras/plugins/CubeLoginPlugin.java
@@ -1,630 +1,627 @@
pa... | false | true | public void processLogined(boolean isremember, String name, String pass,
boolean isoutline, final CallbackContext callbackContext) {
if (StaticReference.userMf == null) {
StaticReference.userMC = ModelCreator.build(application, name);
StaticReference.userMf = ModelFinder.build(application, name);
}
fina... | public void processLogined(boolean isremember, String name, String pass,
boolean isoutline, final CallbackContext callbackContext) {
if (StaticReference.userMf == null) {
StaticReference.userMC = ModelCreator.build(application, name);
StaticReference.userMf = ModelFinder.build(application, name);
}
fina... |
diff --git a/service/src/test/java/com/javaid/bolaky/carpool/service/impl/DefaultCarPoolServiceIntegrationTest.java b/service/src/test/java/com/javaid/bolaky/carpool/service/impl/DefaultCarPoolServiceIntegrationTest.java
index b745fe3..8623b00 100644
--- a/service/src/test/java/com/javaid/bolaky/carpool/service/impl/De... | true | true | public void testTestRegisterUserReturningNull() {
UserVO userVO = new UserVO();
Set<CarPoolError> carPoolErrors = carPoolService.validate(userVO);
assertThat(carPoolErrors, is(notNullValue()));
assertTrue(carPoolErrors.size()>0);
}
| public void testTestRegisterUserReturningNull() {
UserVO userVO = new UserVO();
Set<CarPoolError> carPoolErrors = carPoolService.validate(userVO);
assertThat(carPoolErrors, is(notNullValue()));
assertTrue(carPoolErrors.size() > 0);
}
|
diff --git a/src/gov/nih/ncgc/bard/search/SolrSearch.java b/src/gov/nih/ncgc/bard/search/SolrSearch.java
index a0db832..7258ce8 100644
--- a/src/gov/nih/ncgc/bard/search/SolrSearch.java
+++ b/src/gov/nih/ncgc/bard/search/SolrSearch.java
@@ -1,53 +1,54 @@
package gov.nih.ncgc.bard.search;
import org.apache.solr.comm... | true | true | protected List<SolrDocument> copyRange(List<SolrDocument> docs, Integer skip, Integer top, boolean detailed, String... fields) {
List<SolrDocument> ret = new ArrayList<SolrDocument>();
if (top == null) top = 10;
if (skip == null) skip = 0;
for (int i = skip; i < (skip + top); i++) {
... | protected List<SolrDocument> copyRange(List<SolrDocument> docs, Integer skip, Integer top, boolean detailed, String... fields) {
List<SolrDocument> ret = new ArrayList<SolrDocument>();
if (top == null) top = 10;
if (skip == null) skip = 0;
for (int i = skip; i < (skip + top); i++) {
... |
diff --git a/src/main/java/edu/cmu/lti/oaqa/framework/eval/gs/PathMatchingGoldStandardPersistenceProvider.java b/src/main/java/edu/cmu/lti/oaqa/framework/eval/gs/PathMatchingGoldStandardPersistenceProvider.java
index f2032a9..d618b53 100644
--- a/src/main/java/edu/cmu/lti/oaqa/framework/eval/gs/PathMatchingGoldStandard... | true | true | public boolean initialize(ResourceSpecifier aSpecifier, Map<String, Object> aAdditionalParams)
throws ResourceInitializationException {
boolean ret = super.initialize(aSpecifier, aAdditionalParams);
String dataset = (String) getParameterValue("DataSet");
Pattern lineSyntaxPattern = Pattern.compi... | public boolean initialize(ResourceSpecifier aSpecifier, Map<String, Object> aAdditionalParams)
throws ResourceInitializationException {
boolean ret = super.initialize(aSpecifier, aAdditionalParams);
String dataset = (String) getParameterValue("DataSet");
Pattern lineSyntaxPattern = Pattern.compi... |
diff --git a/src/main/java/org/jasig/portlet/calendar/mvc/controller/AjaxCalendarController.java b/src/main/java/org/jasig/portlet/calendar/mvc/controller/AjaxCalendarController.java
index 787b0e2..1e6457f 100644
--- a/src/main/java/org/jasig/portlet/calendar/mvc/controller/AjaxCalendarController.java
+++ b/src/main/ja... | true | true | public void getEventList(ActionRequest request,
ActionResponse response) throws Exception {
PortletSession session = request.getPortletSession();
Map<String, Object> model = new HashMap<String, Object>();
PortletPreferences prefs = request.getPreferences();
// get the list of hidden calendars
@Supp... | public void getEventList(ActionRequest request,
ActionResponse response) throws Exception {
PortletSession session = request.getPortletSession();
Map<String, Object> model = new HashMap<String, Object>();
PortletPreferences prefs = request.getPreferences();
// get the list of hidden calendars
@Supp... |
diff --git a/core-task-impl/src/main/java/org/cytoscape/task/internal/CyActivator.java b/core-task-impl/src/main/java/org/cytoscape/task/internal/CyActivator.java
index 8b21de24e..cb2e5b5a2 100644
--- a/core-task-impl/src/main/java/org/cytoscape/task/internal/CyActivator.java
+++ b/core-task-impl/src/main/java/org/cyto... | true | true | public void start(BundleContext bc) {
OpenBrowser openBrowserServiceRef = getService(bc,OpenBrowser.class);
CyEventHelper cyEventHelperRef = getService(bc,CyEventHelper.class);
CyApplicationConfiguration cyApplicationConfigurationServiceRef = getService(bc,CyApplicationConfiguration.class);
RecentlyOpenedTrac... | public void start(BundleContext bc) {
OpenBrowser openBrowserServiceRef = getService(bc,OpenBrowser.class);
CyEventHelper cyEventHelperRef = getService(bc,CyEventHelper.class);
CyApplicationConfiguration cyApplicationConfigurationServiceRef = getService(bc,CyApplicationConfiguration.class);
RecentlyOpenedTrac... |
diff --git a/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebWithModuleTest.java b/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test/WebWithModuleTest.java
index 178e5188..1053c02a 100644
--- a/tests/org.jboss.tools.jst.web.kb.test/src/org/jboss/tools/jst/web/kb/test... | true | true | public void testWebProject() throws CoreException {
assertTrue("true".equals(utility.getPersistentProperty(KbProjectFactory.NATURE_MOCK)));
IKbProject kbUtility = KbProjectFactory.getKbProject(utility, true);
assertNotNull(kbUtility);
int w = 0;
while(kbUtility.getTagLibraries().length == 0 && w++ < 50) {... | public void testWebProject() throws CoreException {
assertTrue("true".equals(utility.getPersistentProperty(KbProjectFactory.NATURE_MOCK)));
IKbProject kbUtility = KbProjectFactory.getKbProject(utility, true);
assertNotNull(kbUtility);
int w = 0;
while(kbUtility.getTagLibraries().length == 0 && w++ < 50) {... |
diff --git a/src/org/mozilla/javascript/NativeJSON.java b/src/org/mozilla/javascript/NativeJSON.java
index aa3dec61..79854bfd 100644
--- a/src/org/mozilla/javascript/NativeJSON.java
+++ b/src/org/mozilla/javascript/NativeJSON.java
@@ -1,524 +1,524 @@
/* -*- Mode: java; tab-width: 4; indent-tabs-mode: 1; c-basic-offset... | true | true | private static Object str(Object key, Scriptable holder,
StringifyState state)
{
Object value = null;
if (key instanceof String) {
value = getProperty(holder, (String) key);
} else {
value = getProperty(holder, ((Number) key).intValue... | private static Object str(Object key, Scriptable holder,
StringifyState state)
{
Object value = null;
if (key instanceof String) {
value = getProperty(holder, (String) key);
} else {
value = getProperty(holder, ((Number) key).intValue... |
diff --git a/src/main/java/edu/upc/dsbw/spring/AppConfig.java b/src/main/java/edu/upc/dsbw/spring/AppConfig.java
index 6f09c23..831043b 100644
--- a/src/main/java/edu/upc/dsbw/spring/AppConfig.java
+++ b/src/main/java/edu/upc/dsbw/spring/AppConfig.java
@@ -1,53 +1,53 @@
package edu.upc.dsbw.spring;
import org.sprin... | true | true | public BooksController getBooksController(){ // atribut class=BooksController name=booksController (sense get i amb minuscules)
BooksController booksController = new BooksController();
long martinFowlerId = booksController.addAuthor("Martin", "Fowler");
//LinkedList<Integer> l_ratings = ne... | public BooksController getBooksController(){ // atribut class=BooksController name=booksController (sense get i amb minuscules)
BooksController booksController = new BooksController();
long martinFowlerId = booksController.addAuthor("Martin", "Fowler");
//LinkedList<Integer> l_ratings = ne... |
diff --git a/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/actions/DownloadVolumeLogsAction.java b/src/com.gluster.storage.management.console/src/com/gluster/storage/management/console/actions/DownloadVolumeLogsAction.java
index edf09f33..81abb01f 100644
--- a/src/com.gluster.sto... | false | true | protected void performAction(IAction action) {
final VolumesClient client = new VolumesClient();
final Volume volume = guiHelper.getSelectedEntity(getWindow(), Volume.class);
FileDialog dialog = new FileDialog(getShell(), SWT.SAVE);
dialog.setFilterNames(new String[] { "GZipped Tar (*.tar.gz)" });
dialog.se... | protected void performAction(IAction action) {
final VolumesClient client = new VolumesClient();
Volume volume = guiHelper.getSelectedEntity(getWindow(), Volume.class);
FileDialog dialog = new FileDialog(getShell(), SWT.SAVE);
dialog.setFilterNames(new String[] { "GZipped Tar (*.tar.gz)" });
dialog.setFilte... |
diff --git a/src/edu/kit/pp/minijava/Lexer.java b/src/edu/kit/pp/minijava/Lexer.java
index f6bcbde..8661cdc 100644
--- a/src/edu/kit/pp/minijava/Lexer.java
+++ b/src/edu/kit/pp/minijava/Lexer.java
@@ -1,285 +1,283 @@
// vi:ai:noet sta sw=4 ts=4 sts=0
package edu.kit.pp.minijava;
import edu.kit.pp.minijava.tokens.*... | false | true | public Token next() throws IOException {
while (true) {
int c = read();
switch (c) {
case '\n':
_line++;
_column = 1;
break;
case ' ':
break;
case '\r':
_column += 1;
break;
// don't count '\r'
case '\t':
_column += 4-(_column%TABSIZE);
break;
case '/':
... | public Token next() throws IOException {
while (true) {
int c = read();
switch (c) {
case '\n':
_line++;
_column = 1;
break;
case ' ':
break;
case '\r':
break;
case '\t':
_column += 4-(_column%TABSIZE)-1;
break;
case '/':
c = read();
switch (c) {
case '... |
diff --git a/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/prefs/Initializer.java b/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/prefs/Initializer.java
index 281b8a2..e6e3a6c 100644
--- a/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/prefs/Initializer.java
+++ b/plugins/org.jbpm.gd.jpdl/src/org/jbpm/gd/jpdl/prefs/Init... | true | true | public void initializeDefaultPreferences() {
IEclipsePreferences preferenceStore = new DefaultScope().getNode("org.jbpm.gd.jpdl");
preferenceStore.put(SERVER_NAME, "localhost");
preferenceStore.put(SERVER_PORT, "8080");
preferenceStore.put(SERVER_DEPLOYER, "/jbpm-console/upload");
preferenceStore.putBoolean(... | public void initializeDefaultPreferences() {
IEclipsePreferences preferenceStore = DefaultScope.INSTANCE.getNode("org.jbpm.gd.jpdl");
preferenceStore.put(SERVER_NAME, "localhost");
preferenceStore.put(SERVER_PORT, "8080");
preferenceStore.put(SERVER_DEPLOYER, "/jbpm-console/upload");
preferenceStore.putBoole... |
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffTestDataGenerator.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffTestDataGenerator.java
index c4031121..91d757bc 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/DiffTestDataGenerator.java
+++ b/org.eclipse.jgit.test/tst/org/eclips... | false | true | public static String generateSequence(int len, int skipPeriod,
int skipLength) {
StringBuilder text = new StringBuilder(len);
int skipStart = skipPeriod - skipLength;
int skippedChars = 0;
for (int i = 0; i - skippedChars < len; ++i) {
if (skipPeriod == 0 || i % skipPeriod < skipStart) {
text.append(... | public static String generateSequence(int len, int skipPeriod,
int skipLength) {
StringBuilder text = new StringBuilder(len);
int skipStart = skipPeriod - skipLength;
int skippedChars = 0;
int block = 0;
for (int i = 0; i - skippedChars < len; ++i) {
if ((i % skipPeriod) == 1)
text.append((char) (2... |
diff --git a/src/com/google/inject/internal/Errors.java b/src/com/google/inject/internal/Errors.java
index e3689b73..b21b8860 100644
--- a/src/com/google/inject/internal/Errors.java
+++ b/src/com/google/inject/internal/Errors.java
@@ -1,511 +1,512 @@
/**
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Ap... | false | true | public static String format(String heading, Collection<? extends Message> errorMessages) {
Formatter fmt = new Formatter().format(heading).format(":%n%n");
int index = 1;
for (Message errorMessage : errorMessages) {
fmt.format("%s) %s%n", index++, errorMessage.getMessage());
List<Object> depe... | public static String format(String heading, Collection<? extends Message> errorMessages) {
Formatter fmt = new Formatter().format(heading).format(":%n%n");
int index = 1;
for (Message errorMessage : errorMessages) {
fmt.format("%s) %s%n", index++, errorMessage.getMessage());
List<Object> depe... |
diff --git a/core/src/main/java/org/javasimon/utils/SimonUtils.java b/core/src/main/java/org/javasimon/utils/SimonUtils.java
index 67f9f99c..38ee2079 100644
--- a/core/src/main/java/org/javasimon/utils/SimonUtils.java
+++ b/core/src/main/java/org/javasimon/utils/SimonUtils.java
@@ -1,379 +1,379 @@
package org.javasimo... | true | true | private static String presentOverNanoTime(double time) {
if (time < 1d) {
return "0";
}
if (time < UNIT_PREFIX_FACTOR) {
return ((long) time) + " ns";
}
time /= UNIT_PREFIX_FACTOR;
if (time < UNIT_PREFIX_FACTOR) {
return formatTime(time, " us");
}
time /= UNIT_PREFIX_FACTOR;
if (time < UN... | private static String presentOverNanoTime(double time) {
if (Math.abs(time) < 1d) {
return "0";
}
if (time < UNIT_PREFIX_FACTOR) {
return ((long) time) + " ns";
}
time /= UNIT_PREFIX_FACTOR;
if (time < UNIT_PREFIX_FACTOR) {
return formatTime(time, " us");
}
time /= UNIT_PREFIX_FACTOR;
if ... |
diff --git a/libdexter/src/main/java/uk/ac/cam/db538/dexter/hierarchy/RuntimeHierarchy.java b/libdexter/src/main/java/uk/ac/cam/db538/dexter/hierarchy/RuntimeHierarchy.java
index de0627f2..9a5c02ac 100644
--- a/libdexter/src/main/java/uk/ac/cam/db538/dexter/hierarchy/RuntimeHierarchy.java
+++ b/libdexter/src/main/java/... | true | true | public TypeClassification classifyType(DexRegisterType type) {
if (type instanceof DexPrimitiveType)
return TypeClassification.PRIMITIVE;
else if (type instanceof DexArrayType) {
if (((DexArrayType) type).getElementType() instanceof DexPrimitiveType)
return T... | public TypeClassification classifyType(DexRegisterType type) {
if (type instanceof DexPrimitiveType)
return TypeClassification.PRIMITIVE;
else if (type instanceof DexArrayType) {
if (((DexArrayType) type).getElementType() instanceof DexPrimitiveType)
return T... |
diff --git a/src/main/java/org/apache/commons/math/MathRuntimeException.java b/src/main/java/org/apache/commons/math/MathRuntimeException.java
index 8cf2f0472..abf058f35 100644
--- a/src/main/java/org/apache/commons/math/MathRuntimeException.java
+++ b/src/main/java/org/apache/commons/math/MathRuntimeException.java
@@ ... | true | true | public static RuntimeException createInternalError(final Throwable cause) {
final String argument = "https://issues.apache.org/jira/browse/MATH";
return new RuntimeException() {
/** Serializable version identifier. */
private static final long serialVersionUID = -201865440... | public static RuntimeException createInternalError(final Throwable cause) {
final String argument = "https://issues.apache.org/jira/browse/MATH";
return new RuntimeException(cause) {
/** Serializable version identifier. */
private static final long serialVersionUID = -2018... |
diff --git a/Essentials/src/com/earth2me/essentials/Mob.java b/Essentials/src/com/earth2me/essentials/Mob.java
index 3c16ae01..c7b0ca32 100644
--- a/Essentials/src/com/earth2me/essentials/Mob.java
+++ b/Essentials/src/com/earth2me/essentials/Mob.java
@@ -1,129 +1,129 @@
package com.earth2me.essentials;
import java.... | true | true | public Entity spawn(Player player, Server server) throws MobException
{
try
{
return player.getWorld().spawn(player.getLocation(), (Class<Entity>)ClassLoader.getSystemClassLoader().loadClass("net.minecraft.server.Entity" + entityClass));
//WorldServer world = ((org.bukkit.craftbukkit.CraftWorld)player.getWo... | public Entity spawn(Player player, Server server) throws MobException
{
try
{
return player.getWorld().spawn(player.getLocation(), (Class<Entity>)ClassLoader.getSystemClassLoader().loadClass("org.bukkit.craftbukkit.entity.Craft" + craftClass));
//WorldServer world = ((org.bukkit.craftbukkit.CraftWorld)playe... |
diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/IndividualTypeOperationController.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/IndividualTypeOperationController.java
index 2e861e5..a052fdb 100644
--- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/edit/IndividualT... | true | true | public void doGet(HttpServletRequest req, HttpServletResponse response) {
if (!isAuthorizedToDisplayPage(req, response, new Actions(new EditIndividuals()))) {
return;
}
VitroRequest request = new VitroRequest(req);
String defaultLandingPage = getDefaultLandingPage(request);
... | public void doGet(HttpServletRequest req, HttpServletResponse response) {
if (!isAuthorizedToDisplayPage(req, response, new Actions(new EditIndividuals()))) {
return;
}
VitroRequest request = new VitroRequest(req);
String defaultLandingPage = getDefaultLandingPage(request);
... |
diff --git a/examples/ex6/ex6-req/src/test/java/sorcer/arithmetic/requestor/ArithmeticExerterTest.java b/examples/ex6/ex6-req/src/test/java/sorcer/arithmetic/requestor/ArithmeticExerterTest.java
index d4cee36f..9ae738a0 100644
--- a/examples/ex6/ex6-req/src/test/java/sorcer/arithmetic/requestor/ArithmeticExerterTest.ja... | false | true | public void exertExerter() throws Exception {
Job exertion = NetArithmeticReqTest.getJobComposition();
Task task = new NetTask("exert", new NetSignature("exert",
Exerter.class),
new ServiceContext(exertion));
Task result = (Task) task.exert();
// logger.info("result: " + result);
// logger.info("retu... | public void exertExerter() throws Exception {
Job exertion = NetArithmeticReqTest.getJobComposition();
Task task = new NetTask("exert", new NetSignature("exert",
Exerter.class),
new ServiceContext(exertion));
Task result = (Task) task.exert();
// logger.info("result: " + result);
// logger.info("retu... |
diff --git a/src/main/java/com/minecraftdimensions/bungeesuitechat/listeners/MessageListener.java b/src/main/java/com/minecraftdimensions/bungeesuitechat/listeners/MessageListener.java
index 20e78bf..c198b57 100644
--- a/src/main/java/com/minecraftdimensions/bungeesuitechat/listeners/MessageListener.java
+++ b/src/main... | true | true | public void onPluginMessageReceived( String pluginChannel, Player receiver, byte[] message ) {
if ( !pluginChannel.equalsIgnoreCase( BungeeSuiteChat.INCOMING_PLUGIN_CHANNEL ) )
return;
DataInputStream in = new DataInputStream( new ByteArrayInputStream( message ) );
String channel... | public void onPluginMessageReceived( String pluginChannel, Player receiver, byte[] message ) {
if ( !pluginChannel.equalsIgnoreCase( BungeeSuiteChat.INCOMING_PLUGIN_CHANNEL ) )
return;
DataInputStream in = new DataInputStream( new ByteArrayInputStream( message ) );
String channel... |
diff --git a/src/de/greencity/bladenightapp/android/social/FriendListAdapter.java b/src/de/greencity/bladenightapp/android/social/FriendListAdapter.java
index a843f95..d1a758d 100644
--- a/src/de/greencity/bladenightapp/android/social/FriendListAdapter.java
+++ b/src/de/greencity/bladenightapp/android/social/FriendList... | true | true | private View inflateActionRow(int friendId, Friend friend){
View view = inflater.inflate(R.layout.friend_list_row_action, null);
ImageView colorBlockImageView = (ImageView)view.findViewById(R.id.action_color_block);
setColorForBlock(colorBlockImageView, friendId, friend);
TextView name = (TextView)view.findV... | private View inflateActionRow(int friendId, Friend friend){
View view = inflater.inflate(R.layout.friend_list_row_action, null);
ImageView colorBlockImageView = (ImageView)view.findViewById(R.id.action_color_block);
setColorForBlock(colorBlockImageView, friendId, friend);
TextView name = (TextView)view.findV... |
diff --git a/CommandsEX/src/com/github/zathrus_writer/commandsex/handlers/Handler_bankickreason.java b/CommandsEX/src/com/github/zathrus_writer/commandsex/handlers/Handler_bankickreason.java
index 730cf13..2b99cb1 100644
--- a/CommandsEX/src/com/github/zathrus_writer/commandsex/handlers/Handler_bankickreason.java
+++ b... | true | true | public void onPlayerLogin(PlayerLoginEvent e){
if (e.getResult() == Result.KICK_BANNED){
if (CommandsEX.sqlEnabled) {
try {
Player player = e.getPlayer();
String pName = player.getName();
String reason = null;
String expireDate = null;
String createDate = null;
String banne... | public void onPlayerLogin(PlayerLoginEvent e){
if (e.getResult() == Result.KICK_BANNED){
if (CommandsEX.sqlEnabled) {
try {
Player player = e.getPlayer();
String pName = player.getName();
String reason = null;
String expireDate = null;
String createDate = null;
String banne... |
diff --git a/source/trunk/src/main/java/org/marketcetera/photon/ApplicationWorkbenchAdvisor.java b/source/trunk/src/main/java/org/marketcetera/photon/ApplicationWorkbenchAdvisor.java
index c63722339..697e11857 100755
--- a/source/trunk/src/main/java/org/marketcetera/photon/ApplicationWorkbenchAdvisor.java
+++ b/source/... | true | true | public void initialize(IWorkbenchConfigurer configurer) {
configurer.setSaveAndRestore(true);
ConsolePlugin.getDefault().getConsoleManager().addConsoles(
new IConsole[] { new MainConsole(), new MainConsole() });
}
| public void initialize(IWorkbenchConfigurer configurer) {
configurer.setSaveAndRestore(true);
ConsolePlugin.getDefault().getConsoleManager().addConsoles(
new IConsole[] { new MainConsole() });
}
|
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskListFilteredTree.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskListFilteredTree.java
index 70cfdc8b4..c22a9414c 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tas... | true | true | protected Composite createFilterControls(Composite parent){
Composite container = new Composite(parent, SWT.NULL);
GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
container.setLayoutData(gridData);
GridLayout gridLayout = new GridLayout(4, false);
gridLayout.marginHeight = 0;
gridLayout.marg... | protected Composite createFilterControls(Composite parent){
Composite container = new Composite(parent, SWT.NULL);
GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
container.setLayoutData(gridData);
GridLayout gridLayout = new GridLayout(4, false);
gridLayout.marginHeight = 0;
gridLayout.marg... |
diff --git a/src/com/geared/ou/ContentActivity.java b/src/com/geared/ou/ContentActivity.java
index b722b92..936224d 100644
--- a/src/com/geared/ou/ContentActivity.java
+++ b/src/com/geared/ou/ContentActivity.java
@@ -1,467 +1,469 @@
/**
*
* @author David Findley (ThinksInBits)
*
* The source for this applicat... | false | true | private void updateDisplay(Boolean updateFailed) {
// Remove all elements from the content layout, except the first one.
layoutContent.removeViews(1, layoutContent.getChildCount()-1);
Map<String,ArrayList<ContentItem>> c = content.getContent();
ArrayList<String> cat = content.getCate... | private void updateDisplay(Boolean updateFailed) {
// Remove all elements from the content layout, except the first one.
layoutContent.removeViews(1, layoutContent.getChildCount()-1);
Map<String,ArrayList<ContentItem>> c = content.getContent();
ArrayList<String> cat = content.getCate... |
diff --git a/grisu-core/src/main/java/grisu/backend/model/job/gt4/GT4Submitter.java b/grisu-core/src/main/java/grisu/backend/model/job/gt4/GT4Submitter.java
index d39a67a5..06c84320 100644
--- a/grisu-core/src/main/java/grisu/backend/model/job/gt4/GT4Submitter.java
+++ b/grisu-core/src/main/java/grisu/backend/model/job... | true | true | public static String createJobSubmissionDescription(final Document jsdl,
final String fqan) {
DebugUtils.jsdlDebugOutput("Before translating into rsl: ", jsdl);
Document output = null;
try {
final DocumentBuilderFactory docFactory = DocumentBuilderFactory
.newInstance();
final DocumentBuilder doc... | public static String createJobSubmissionDescription(final Document jsdl,
final String fqan) {
DebugUtils.jsdlDebugOutput("Before translating into rsl: ", jsdl);
Document output = null;
try {
final DocumentBuilderFactory docFactory = DocumentBuilderFactory
.newInstance();
final DocumentBuilder doc... |
diff --git a/src/main/java/com/tysanclan/site/projectewok/components/AchievementsPanel.java b/src/main/java/com/tysanclan/site/projectewok/components/AchievementsPanel.java
index dd3c5b1..eeb29c0 100644
--- a/src/main/java/com/tysanclan/site/projectewok/components/AchievementsPanel.java
+++ b/src/main/java/com/tysancla... | true | true | public AchievementsPanel(String id, User user) {
super(id);
List<Achievement> achievements = new LinkedList<Achievement>();
achievements.addAll(user.getAchievements());
Collections.sort(achievements, AchievementComparator.INSTANCE);
add(new ListView<Achievement>("achievements",
ModelMaker.wrap(achiev... | public AchievementsPanel(String id, User user) {
super(id);
List<Achievement> achievements = new LinkedList<Achievement>();
achievements.addAll(user.getAchievements());
Collections.sort(achievements, AchievementComparator.INSTANCE);
add(new ListView<Achievement>("achievements",
ModelMaker.wrap(achiev... |
diff --git a/src/main/groovy/grape/GrabAnnotationTransformation.java b/src/main/groovy/grape/GrabAnnotationTransformation.java
index 43a70a33b..9afe69726 100644
--- a/src/main/groovy/grape/GrabAnnotationTransformation.java
+++ b/src/main/groovy/grape/GrabAnnotationTransformation.java
@@ -1,211 +1,217 @@
/*
* Copyrig... | false | true | public void visit(ASTNode[] nodes, SourceUnit source) {
sourceUnit = source;
ModuleNode mn = (ModuleNode) nodes[0];
allowShortGrab = true;
allowShortGrapes = true;
grabAliases = new HashSet();
grapesAliases = new HashSet();
Iterator i = mn.getImports().itera... | public void visit(ASTNode[] nodes, SourceUnit source) {
sourceUnit = source;
ModuleNode mn = (ModuleNode) nodes[0];
allowShortGrab = true;
allowShortGrapes = true;
grabAliases = new HashSet();
grapesAliases = new HashSet();
Iterator i = mn.getImports().itera... |
diff --git a/main/src/cgeo/geocaching/files/GPXImporter.java b/main/src/cgeo/geocaching/files/GPXImporter.java
index 8369161b2..fb7836058 100644
--- a/main/src/cgeo/geocaching/files/GPXImporter.java
+++ b/main/src/cgeo/geocaching/files/GPXImporter.java
@@ -1,461 +1,460 @@
package cgeo.geocaching.files;
import cgeo.... | true | true | public void handleMessage(Message msg) {
switch (msg.what) {
case IMPORT_STEP_START:
Message cancelMessage = importStepHandler.obtainMessage(IMPORT_STEP_CANCEL);
progress.show((Context) fromActivity, res.getString(R.string.gpx_import_title_read... | public void handleMessage(Message msg) {
switch (msg.what) {
case IMPORT_STEP_START:
Message cancelMessage = importStepHandler.obtainMessage(IMPORT_STEP_CANCEL);
progress.show((Context) fromActivity, res.getString(R.string.gpx_import_title_read... |
diff --git a/homework2/src/Expression.java b/homework2/src/Expression.java
index 4fb4ad2..38c7af6 100755
--- a/homework2/src/Expression.java
+++ b/homework2/src/Expression.java
@@ -1,41 +1,42 @@
/**
* Expression.java
*
* PolynomialEvaluator object for evaluating an
* expression (e.g., 3x + 2x^3, 4 x ^4 + 3x + ... | true | true | public double evaluate(int x)
{
double sum = 0;
//As long as there are more Monomials in this Expression,
//keep summing:
for (int i = 0; i < this.monomials.size(); i++)
{
sum += monomials.get(i);
}
return sum;
}
| public double evaluate(int x)
{
double sum = 0;
//As long as there are more Monomials in this Expression,
//keep summing:
for (int i = 0; i < this.monomials.size(); i++)
{
mon = monomials.get(i);
sum += mon.evaluate(x);
}
... |
diff --git a/src/test/cli/cloudify/MonitorsCacheTest.java b/src/test/cli/cloudify/MonitorsCacheTest.java
index d9569915..2f590efb 100644
--- a/src/test/cli/cloudify/MonitorsCacheTest.java
+++ b/src/test/cli/cloudify/MonitorsCacheTest.java
@@ -1,143 +1,143 @@
/***********************************************************... | false | true | public void test()
throws IOException, InterruptedException, PackagingException, DSLException {
//this.isDevEnv = true;
final String usmServicePath = getUsmServicePath("simpleGroovy");
CommandTestUtils.runCommandAndWait("connect " + restUrl
+ "; install-service "
+ usmServicePath + "; exit;");
fin... | public void test()
throws IOException, InterruptedException, PackagingException, DSLException {
//this.isDevEnv = true;
final String usmServicePath = getUsmServicePath("simpleGroovy");
CommandTestUtils.runCommandAndWait("connect " + restUrl
+ "; install-service "
+ usmServicePath + "; exit;");
fin... |
diff --git a/src/main/java/com/prealpha/diamond/compiler/TypeTokenUtil.java b/src/main/java/com/prealpha/diamond/compiler/TypeTokenUtil.java
index 00a98a8..d2e2c15 100644
--- a/src/main/java/com/prealpha/diamond/compiler/TypeTokenUtil.java
+++ b/src/main/java/com/prealpha/diamond/compiler/TypeTokenUtil.java
@@ -1,68 +1... | true | true | public static TypeToken fromNode(PTypeToken node) {
if (node instanceof ABooleanTypeToken) {
return BooleanTypeToken.INSTANCE;
} else if (node instanceof ASignedShortTypeToken) {
return IntegralTypeToken.SIGNED_SHORT;
} else if (node instanceof AUnsignedShortTypeToken... | public static TypeToken fromNode(PTypeToken node) {
if (node instanceof ABooleanTypeToken) {
return BooleanTypeToken.INSTANCE;
} else if (node instanceof ASignedShortTypeToken) {
return IntegralTypeToken.SIGNED_SHORT;
} else if (node instanceof AUnsignedShortTypeToken... |
diff --git a/ejb-core/formtemplate/src/main/java/com/silverpeas/form/displayers/ExplorerFieldDisplayer.java b/ejb-core/formtemplate/src/main/java/com/silverpeas/form/displayers/ExplorerFieldDisplayer.java
index dd64784fac..41d46c4cdc 100644
--- a/ejb-core/formtemplate/src/main/java/com/silverpeas/form/displayers/Explor... | true | true | public void display(PrintWriter out, ExplorerField field, FieldTemplate template,
PagesContext pageContext) throws FormException {
SilverTrace.info("form", "ExplorerFieldDisplayer.display", "root.MSG_GEN_ENTER_METHOD",
"fieldName = " + template.getFieldName() + ", value = " + field.getNodePK()
... | public void display(PrintWriter out, ExplorerField field, FieldTemplate template,
PagesContext pageContext) throws FormException {
SilverTrace.info("form", "ExplorerFieldDisplayer.display", "root.MSG_GEN_ENTER_METHOD",
"fieldName = " + template.getFieldName() + ", value = " + field.getNodePK()
... |
diff --git a/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/listener/CaptureScreenShotsListener.java b/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/listener/CaptureScreenShotsListener.java
index e1b56168f..86fb73b8c 100644
--- a/continuum-webapp-test/src/test/testng/org/apach... | false | true | private static void captureScreenshotAndSource( String cName, Throwable throwable )
{
Selenium selenium = AbstractSeleniumTest.getSelenium();
if (selenium == null) {
// avoid swallowing exception
System.err.println( "Not capturing screenshot as Selenium is not initialised... | private static void captureScreenshotAndSource( String cName, Throwable throwable )
{
Selenium selenium = AbstractSeleniumTest.getSelenium();
if (selenium == null) {
// avoid swallowing exception
System.err.println( "Not capturing screenshot as Selenium is not initialised... |
diff --git a/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/jnaerator/JNAerator.java b/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/jnaerator/JNAerator.java
index a625eb04..27e4d92c 100644
--- a/libraries/jnaerator/jnaerator/src/main/java/com/ochafik/lang/jnaerator/JNAerator.java
+++ b/lib... | true | true | public static void main(final JNAerator jnaerator, String[] argsArray) {
final Feedback[] feedback = new Feedback[1];
try {
String[] jnAeratorArgsFromPref = getJNAeratorArgsFromPref();
if (jnAeratorArgsFromPref != null) {
ArrayList<String> list = new ArrayList<String>();
list.addAll(Arr... | public static void main(final JNAerator jnaerator, String[] argsArray) {
final Feedback[] feedback = new Feedback[1];
try {
String[] jnAeratorArgsFromPref = getJNAeratorArgsFromPref();
if (jnAeratorArgsFromPref != null) {
ArrayList<String> list = new ArrayList<String>();
list.addAll(Arr... |
diff --git a/samples/j2ee/snippets/com.ibm.sbt.automation.test/src/main/java/com/ibm/sbt/test/js/connections/activitystreams/api/GetUpdatesFromACommunity.java b/samples/j2ee/snippets/com.ibm.sbt.automation.test/src/main/java/com/ibm/sbt/test/js/connections/activitystreams/api/GetUpdatesFromACommunity.java
index 296e478... | true | true | public void testGetUpdatesFromACommunity() {
String commId = communitiesTest.getCommunity().getCommunityUuid();
createEntry("urn:lsid:lconn.ibm.com:communities.community:"+commId, "@all", "@all");
addSnippetParam("sample.communityId", commId);
JavaScriptPreviewPage previewPage = execute... | public void testGetUpdatesFromACommunity() {
String commId = communitiesTest.getCommunity().getCommunityUuid();
createEntry("urn:lsid:lconn.ibm.com:communities.community:"+commId, "@all", "@all");
addSnippetParam("CommunityService.communityUuid", commId);
JavaScriptPreviewPage previewPa... |
diff --git a/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/services/table/client/TableTestBase.java b/microsoft-azure-api/src/test/java/com/microsoft/windowsazure/services/table/client/TableTestBase.java
index 4d50f8dce7..32f9a19837 100644
--- a/microsoft-azure-api/src/test/java/com/microsoft/windowsazur... | true | true | public void assertEquality(ComplexEntity other) {
Assert.assertEquals(this.getPartitionKey(), other.getPartitionKey());
Assert.assertEquals(this.getRowKey(), other.getRowKey());
assertDateApproxEquals(this.getDateTime(), other.getDateTime(), 100);
Assert.assertE... | public void assertEquality(ComplexEntity other) {
Assert.assertEquals(this.getPartitionKey(), other.getPartitionKey());
Assert.assertEquals(this.getRowKey(), other.getRowKey());
Assert.assertEquals(this.getDateTime().toString(), other.getDateTime().toString());
... |
diff --git a/apache-rat-core/src/test/java/org/apache/rat/ReportTransformerTest.java b/apache-rat-core/src/test/java/org/apache/rat/ReportTransformerTest.java
index eb91156d..ef6d85ad 100644
--- a/apache-rat-core/src/test/java/org/apache/rat/ReportTransformerTest.java
+++ b/apache-rat-core/src/test/java/org/apache/rat/... | true | true | public void testTransform() throws Exception {
StringReader in = new StringReader(SIMPLE_CONTENT);
ReportTransformer transformer = new ReportTransformer(writer,
new BufferedReader(new FileReader(new File("src/main/java/org/apache/rat/plain-rat.xsl"))),
in);
... | public void testTransform() throws Exception {
StringReader in = new StringReader(SIMPLE_CONTENT);
ReportTransformer transformer = new ReportTransformer(writer,
new BufferedReader(new FileReader(new File("src/main/resources/org/apache/rat/plain-rat.xsl"))),
in);
... |
diff --git a/doorkeeper/src/test/java/net/dataforte/doorkeeper/ServiceFinderTest.java b/doorkeeper/src/test/java/net/dataforte/doorkeeper/ServiceFinderTest.java
index 802781a..5dbf787 100644
--- a/doorkeeper/src/test/java/net/dataforte/doorkeeper/ServiceFinderTest.java
+++ b/doorkeeper/src/test/java/net/dataforte/doork... | true | true | public void testFindServices() {
List<Class<? extends Authenticator>> authenticators = ServiceFinder.findServices(Authenticator.class);
assertEquals(9, authenticators.size());
List<Class<? extends AccountProvider>> providers = ServiceFinder.findServices(AccountProvider.class);
assertEquals(3, providers.size... | public void testFindServices() {
List<Class<? extends Authenticator>> authenticators = ServiceFinder.findServices(Authenticator.class);
assertEquals(10, authenticators.size());
List<Class<? extends AccountProvider>> providers = ServiceFinder.findServices(AccountProvider.class);
assertEquals(3, providers.siz... |
diff --git a/hibernate/hibernate-datasource/src/main/java/org/obiba/magma/datasource/hibernate/HibernateVariableValueSourceFactory.java b/hibernate/hibernate-datasource/src/main/java/org/obiba/magma/datasource/hibernate/HibernateVariableValueSourceFactory.java
index 6b0b7f4c..8781c7eb 100644
--- a/hibernate/hibernate-d... | true | true | public Iterable<Value> getValues(SortedSet<VariableEntity> entities) {
final Query valuesQuery;
valuesQuery = getCurrentSession().getNamedQuery("valuesWithEntities");
valuesQuery.setParameter("entityType", valueTable.getEntityType())//
.setParameterList("identifiers", ImmutableList.copyOf(It... | public Iterable<Value> getValues(SortedSet<VariableEntity> entities) {
final Query valuesQuery;
valuesQuery = getCurrentSession().getNamedQuery("valuesWithEntities");
valuesQuery.setParameter("entityType", valueTable.getEntityType())//
.setParameterList("identifiers", ImmutableList.copyOf(It... |
diff --git a/src/com/oresomecraft/BattleMaps/maps/Fairwick.java b/src/com/oresomecraft/BattleMaps/maps/Fairwick.java
index 378af96..2c667e7 100755
--- a/src/com/oresomecraft/BattleMaps/maps/Fairwick.java
+++ b/src/com/oresomecraft/BattleMaps/maps/Fairwick.java
@@ -1,129 +1,130 @@
package com.oresomecraft.BattleMaps.ma... | true | true | public void applyInventory(final BattlePlayer p) {
Inventory i = p.getInventory();
ItemStack HEALTH_POTION = new ItemStack(Material.GOLDEN_APPLE, 1);
//Limit golden apples to one, since absorption was added.
ItemStack SPY_WATCH = new ItemStack(Material.WATCH, 1);
ItemMeta s ... | public void applyInventory(final BattlePlayer p) {
Inventory i = p.getInventory();
ItemStack HEALTH_POTION = new ItemStack(Material.GOLDEN_APPLE, 1);
//Limit golden apples to one, since absorption was added.
ItemStack SPY_WATCH = new ItemStack(Material.WATCH, 1);
ItemMeta s ... |
diff --git a/src/main/java/net/citizensnpcs/adventures/race/RaceStorage.java b/src/main/java/net/citizensnpcs/adventures/race/RaceStorage.java
index bd468b8..24a9e10 100644
--- a/src/main/java/net/citizensnpcs/adventures/race/RaceStorage.java
+++ b/src/main/java/net/citizensnpcs/adventures/race/RaceStorage.java
@@ -1,1... | false | true | private boolean loadDependencies(File file, DataKey root) throws IOException {
PublicURLClassLoader loader = new PublicURLClassLoader(new URL[] {}, plugin.getClass().getClassLoader());
if (!loadedLibs) {
File libs = new File(rootDirectory, "lib");
if (libs.exists()) {
... | private boolean loadDependencies(File file, DataKey root) throws IOException {
PublicURLClassLoader loader = new PublicURLClassLoader(new URL[] {}, plugin.getClass().getClassLoader());
if (!loadedLibs) {
File libs = new File(rootDirectory, "lib");
if (libs.exists()) {
... |
diff --git a/poem-jvm/src/java/org/b3mn/poem/handler/ImageRenderer.java b/poem-jvm/src/java/org/b3mn/poem/handler/ImageRenderer.java
index 826eeada..85f32164 100644
--- a/poem-jvm/src/java/org/b3mn/poem/handler/ImageRenderer.java
+++ b/poem-jvm/src/java/org/b3mn/poem/handler/ImageRenderer.java
@@ -1,72 +1,72 @@
/*****... | true | true | public void doGet(HttpServletRequest req, HttpServletResponse res, Identity subject, Identity object) {
setResponseHeaders(res);
try {
Representation representation = object.read();
String SvgRepresentation = representation.getSvg();
if ((SvgRepresentation == null) || (SvgRepresentatio... | public void doGet(HttpServletRequest req, HttpServletResponse res, Identity subject, Identity object) {
setResponseHeaders(res);
try {
Representation representation = object.read();
String SvgRepresentation = representation.getSvg();
if ((SvgRepresentation == null) || (SvgRepresentatio... |
diff --git a/src/uk/me/parabola/mkgmap/reader/osm/boundary/BoundaryUtil.java b/src/uk/me/parabola/mkgmap/reader/osm/boundary/BoundaryUtil.java
index 543f3b76..b50865d1 100644
--- a/src/uk/me/parabola/mkgmap/reader/osm/boundary/BoundaryUtil.java
+++ b/src/uk/me/parabola/mkgmap/reader/osm/boundary/BoundaryUtil.java
@@ -1... | true | true | public static List<Boundary> loadBoundaryFile(File boundaryFile,
uk.me.parabola.imgfmt.app.Area bbox) throws IOException
{
log.debug("Load boundary file",boundaryFile,"within",bbox);
List<Boundary> boundaryList = new ArrayList<Boundary>();
FileInputStream stream = new FileInputStream(boundaryFile);
try {
... | public static List<Boundary> loadBoundaryFile(File boundaryFile,
uk.me.parabola.imgfmt.app.Area bbox) throws IOException
{
log.debug("Load boundary file",boundaryFile,"within",bbox);
List<Boundary> boundaryList = new ArrayList<Boundary>();
FileInputStream stream = new FileInputStream(boundaryFile);
try {
... |
diff --git a/src/com/android/phone/CallForwardEditPreference.java b/src/com/android/phone/CallForwardEditPreference.java
index bd8dcb54..1301708d 100644
--- a/src/com/android/phone/CallForwardEditPreference.java
+++ b/src/com/android/phone/CallForwardEditPreference.java
@@ -1,199 +1,200 @@
package com.android.phone;
... | true | true | protected void onDialogClosed(boolean positiveResult) {
super.onDialogClosed(positiveResult);
if (DBG) Log.d(LOG_TAG, "mButtonClicked=" + mButtonClicked
+ ", positiveResult=" + positiveResult);
if (this.mButtonClicked != DialogInterface.BUTTON_NEGATIVE) {
int act... | protected void onDialogClosed(boolean positiveResult) {
super.onDialogClosed(positiveResult);
if (DBG) Log.d(LOG_TAG, "mButtonClicked=" + mButtonClicked
+ ", positiveResult=" + positiveResult);
if (this.mButtonClicked != DialogInterface.BUTTON_NEGATIVE) {
int act... |
diff --git a/src/com/android/exchange/eas/EasProvision.java b/src/com/android/exchange/eas/EasProvision.java
index 16f57330..ce87da2b 100644
--- a/src/com/android/exchange/eas/EasProvision.java
+++ b/src/com/android/exchange/eas/EasProvision.java
@@ -1,281 +1,282 @@
/*
* Copyright (C) 2013 The Android Open Source Pr... | true | true | public final boolean provision(final SyncResult syncResult, final long accountId) {
final int result = performInitialRequest(syncResult);
if (result < 0) {
return false;
}
if (result == RESULT_REMOTE_WIPE) {
performAckRequestForWipe(syncResult);
... | public final boolean provision(final SyncResult syncResult, final long accountId) {
final int result = performInitialRequest(syncResult);
if (result < 0) {
return false;
}
if (result == RESULT_REMOTE_WIPE) {
performAckRequestForWipe(syncResult);
... |
diff --git a/src/start/src/test/java/org/apache/accumulo/start/Test.java b/src/start/src/test/java/org/apache/accumulo/start/Test.java
index e0a0dc322..fb31f5430 100644
--- a/src/start/src/test/java/org/apache/accumulo/start/Test.java
+++ b/src/start/src/test/java/org/apache/accumulo/start/Test.java
@@ -1,243 +1,243 @@... | true | true | public void testChangingDirectory() throws Exception {
String configFile = System.getProperty("org.apache.accumulo.config.file", "accumulo-site.xml.1GBstandalone-example");
String SITE_CONF = System.getenv("ACCUMULO_HOME") + "/conf/" + configFile;
File oldConf = new File(SITE_CONF);
boolean exists = o... | public void testChangingDirectory() throws Exception {
String configFile = System.getProperty("org.apache.accumulo.config.file", "accumulo-site.xml.1GBstandalone-example");
String SITE_CONF = System.getenv("ACCUMULO_HOME") + "/conf/" + configFile;
File oldConf = new File(SITE_CONF);
boolean exists = o... |
diff --git a/melete-app/src/java/org/etudes/tool/melete/ViewSectionsPage.java b/melete-app/src/java/org/etudes/tool/melete/ViewSectionsPage.java
index 4a73aea9..6e075b68 100644
--- a/melete-app/src/java/org/etudes/tool/melete/ViewSectionsPage.java
+++ b/melete-app/src/java/org/etudes/tool/melete/ViewSectionsPage.java
@... | true | true | public ModuleObjService getModule()
{
Element secElement;
Node prevNode,nextNode;
String courseId = "";
FacesContext ctx = FacesContext.getCurrentInstance();
logger.debug("get Module at viewsection java param value" + ctx.getExternalContext().getRequestParameterMap().get("vs_id"));
... | public ModuleObjService getModule()
{
Element secElement;
Node prevNode,nextNode;
String courseId = null;
FacesContext ctx = FacesContext.getCurrentInstance();
logger.debug("get Module at viewsection java param value" + ctx.getExternalContext().getRequestParameterMap().get("vs_id"));
... |
diff --git a/src/main/java/com/censoredsoftware/Demigods/Engine/Utility/SchedulerUtility.java b/src/main/java/com/censoredsoftware/Demigods/Engine/Utility/SchedulerUtility.java
index 5d96406c..a7d99675 100644
--- a/src/main/java/com/censoredsoftware/Demigods/Engine/Utility/SchedulerUtility.java
+++ b/src/main/java/com/... | true | true | public static void startThreads(DemigodsPlugin instance)
{
// Start favor runnable
int rate = Demigods.config.getSettingInt("regeneration.favor") * 20;
Bukkit.getScheduler().scheduleAsyncRepeatingTask(instance, new FavorRunnable(Demigods.config.getSettingDouble("multipliers.favor")), 20, rate);
AdminUtility.s... | public static void startThreads(DemigodsPlugin instance)
{
// Start favor runnable
int rate = Demigods.config.getSettingInt("regeneration.favor") * 20;
Bukkit.getScheduler().scheduleAsyncRepeatingTask(instance, new FavorRunnable(Demigods.config.getSettingDouble("multipliers.favor")), 20, rate);
AdminUtility.s... |
diff --git a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/validation/JSPJavaValidator.java b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/validation/JSPJavaValidator.java
index d8ffbffb3..8d7284cab 100644
--- a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/... | true | true | private IMessage createMessageFromProblem(IProblem problem, IFile f, IJSPTranslation translation, IStructuredDocument structuredDoc) {
int sev = -1;
int sourceStart = -1;
int sourceEnd = -1;
if (problem instanceof IJSPProblem) {
sourceStart = problem.getSourceStart();
sourceEnd = problem.getSourceEnd();... | private IMessage createMessageFromProblem(IProblem problem, IFile f, IJSPTranslation translation, IStructuredDocument structuredDoc) {
int sev = -1;
int sourceStart = -1;
int sourceEnd = -1;
if (problem instanceof IJSPProblem) {
sourceStart = problem.getSourceStart();
sourceEnd = problem.getSourceEnd();... |
diff --git a/NoNonsenseNotes/src/com/nononsenseapps/notepad/fragments/DialogCalendar.java b/NoNonsenseNotes/src/com/nononsenseapps/notepad/fragments/DialogCalendar.java
index e8bad1e8..0a17bfe4 100644
--- a/NoNonsenseNotes/src/com/nononsenseapps/notepad/fragments/DialogCalendar.java
+++ b/NoNonsenseNotes/src/com/nonons... | true | true | void setup() {
final Calendar future = Calendar.getInstance();
future.add(Calendar.YEAR, 1);
final Calendar selected = Calendar.getInstance();
// Must be greater/equal to today
if (getArguments().getLong(SELECTED_DATE, -1) >= selected
.getTimeInMillis()) {
// set date
selected.setTimeInMillis(getAr... | void setup() {
final Calendar future = Calendar.getInstance();
future.add(Calendar.YEAR, 1);
final Calendar selected = Calendar.getInstance();
// Must be greater/equal to today
if (getArguments().getLong(SELECTED_DATE, -1) >= selected
.getTimeInMillis()) {
// set date
selected.setTimeInMillis(getAr... |
diff --git a/fr.imag.exschema/src/fr/imag/exschema/UpdateVisitor.java b/fr.imag.exschema/src/fr/imag/exschema/UpdateVisitor.java
index 52dc578..81279e9 100644
--- a/fr.imag.exschema/src/fr/imag/exschema/UpdateVisitor.java
+++ b/fr.imag.exschema/src/fr/imag/exschema/UpdateVisitor.java
@@ -1,127 +1,130 @@
/*
* Copyrig... | false | true | private boolean isUpdateMethod(final MethodInvocation invocation) {
boolean returnValue;
returnValue = false;
if (this.getMethodBinding().equals(invocation.resolveMethodBinding().getDeclaringClass().getQualifiedName())) {
if (invocation.getName().toString().equals(this.getMethod... | private boolean isUpdateMethod(final MethodInvocation invocation) {
boolean returnValue;
returnValue = false;
if (invocation.resolveMethodBinding() != null) {
if (this.getMethodBinding()
.equals(invocation.resolveMethodBinding().getDeclaringClass().getQualifi... |
diff --git a/src/cz/cuni/mff/peckam/java/origamist/services/TooltipFactory.java b/src/cz/cuni/mff/peckam/java/origamist/services/TooltipFactory.java
index 58fb239..dece0be 100644
--- a/src/cz/cuni/mff/peckam/java/origamist/services/TooltipFactory.java
+++ b/src/cz/cuni/mff/peckam/java/origamist/services/TooltipFactory.... | true | true | public String getDecorated(String text, String title, String iconName, KeyStroke accelerator)
{
StringBuilder result = new StringBuilder();
String innerText = text.trim();
// encode HTML entities if the given text isn't HTML yet
if (!text.substring(0, 6).toLowerCase().startsWith(... | public String getDecorated(String text, String title, String iconName, KeyStroke accelerator)
{
StringBuilder result = new StringBuilder();
String innerText = text.trim();
// encode HTML entities if the given text isn't HTML yet
if (!text.substring(0, Math.min(text.length(), 6)).... |
diff --git a/src/main/java/org/mat/nounou/services/AppointmentService.java b/src/main/java/org/mat/nounou/services/AppointmentService.java
index 953ad15..6381e30 100644
--- a/src/main/java/org/mat/nounou/services/AppointmentService.java
+++ b/src/main/java/org/mat/nounou/services/AppointmentService.java
@@ -1,412 +1,41... | true | true | public ReportVO getLastAppointments(@PathParam("accountId") Integer accountId, @PathParam("searchType") String searchType) {
System.out.println("getLastAppointments service");
List<Double[]> data = new ArrayList<Double[]>();
List<Double[]> dataRange = new ArrayList<Double[]>();
//Che... | public ReportVO getLastAppointments(@PathParam("accountId") Integer accountId, @PathParam("searchType") String searchType) {
System.out.println("getLastAppointments service");
List<Double[]> data = new ArrayList<Double[]>();
List<Double[]> dataRange = new ArrayList<Double[]>();
//Che... |
diff --git a/VirtualBoyGraphicsPatcher/src/virtualboyobjects/VBGraphicsEditor.java b/VirtualBoyGraphicsPatcher/src/virtualboyobjects/VBGraphicsEditor.java
index 019df0a..94c7b2b 100644
--- a/VirtualBoyGraphicsPatcher/src/virtualboyobjects/VBGraphicsEditor.java
+++ b/VirtualBoyGraphicsPatcher/src/virtualboyobjects/VBGra... | false | true | private void loadCharacters(){
//Get all the bytes for characters
byte[] bytes = _myRom.getAllCharacters();
allImages = new BufferedImage[(bytes.length/16)];
int scale = 4;
int counter = 0;
for(int image=0; image<(bytes.length/16); image++){
int x=0;
int y=0;
allImages[image] = new BufferedImag... | private void loadCharacters(){
//Get all the bytes for characters
byte[] bytes = _myRom.getAllCharacters();
allImages = new BufferedImage[(bytes.length/16)];
int scale = 2;
int counter = 0;
for(int image=0; image<(bytes.length/16); image++){
int x=0;
int y=0;
allImages[image] = new BufferedImag... |
diff --git a/src/main/java/me/prettyprint/cassandra/service/CassandraClientPoolImpl.java b/src/main/java/me/prettyprint/cassandra/service/CassandraClientPoolImpl.java
index 5ad0fe2b..58e4d33a 100644
--- a/src/main/java/me/prettyprint/cassandra/service/CassandraClientPoolImpl.java
+++ b/src/main/java/me/prettyprint/cass... | false | true | public PoolKey(String url2, int port) {
this.port = port;
StringBuilder b = new StringBuilder();
InetAddress address;
String turl, tip;
try {
address = InetAddress.getByName(url2);
turl = isPerformNameResolution() ? address.getHostName() : url2;
tip = address.ge... | public PoolKey(String url2, int port) {
this.port = port;
StringBuilder b = new StringBuilder();
InetAddress address;
String turl, tip;
try {
address = InetAddress.getByName(url2);
tip = address.getHostAddress();
turl = isPerformNameResolution() ? address.getHos... |
diff --git a/Project_Files/UI.java b/Project_Files/UI.java
index 762c54a..d2a2eca 100644
--- a/Project_Files/UI.java
+++ b/Project_Files/UI.java
@@ -1,187 +1,187 @@
import java.net.Socket;
import java.io.*;
import java.util.*;
public class UI
{
public static void main(String[] args)
{
//GroupServer is nam... | false | true | public static void main(String[] args)
{
//GroupServer is named "ALPHA" and is on 8766
//FileServer is named "FilePile" and is on 4321
System.out.println("Attempting to connect to GroupServer.");
GroupClient gUser = new GroupClient();
//gUser.connect(null, 8766);
FileClient fUser = new FileClient();
fU... | public static void main(String[] args)
{
//GroupServer is named "ALPHA" and is on 8766
//FileServer is named "FilePile" and is on 4321
System.out.println("Attempting to connect to GroupServer.");
GroupClient gUser = new GroupClient();
//gUser.connect(null, 8766);
FileClient fUser = new FileClient();
fU... |
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java
index b43cf2a70..506d1ca6f 100644
--- a/src/com/android/gallery3d/app/PhotoPage.java
+++ b/src/com/android/gallery3d/app/PhotoPage.java
@@ -1,1496 +1,1498 @@
/*
* Copyright (C) 2010 The Android Open Source Projec... | true | true | public void onCreate(Bundle data, Bundle restoreState) {
super.onCreate(data, restoreState);
mActionBar = mActivity.getGalleryActionBar();
mSelectionManager = new SelectionManager(mActivity, false);
mMenuExecutor = new MenuExecutor(mActivity, mSelectionManager);
mPhotoView =... | public void onCreate(Bundle data, Bundle restoreState) {
super.onCreate(data, restoreState);
mActionBar = mActivity.getGalleryActionBar();
mSelectionManager = new SelectionManager(mActivity, false);
mMenuExecutor = new MenuExecutor(mActivity, mSelectionManager);
mPhotoView =... |
diff --git a/src/hamhamdash/PlayerCharacter.java b/src/hamhamdash/PlayerCharacter.java
index 1184657..fd4db89 100755
--- a/src/hamhamdash/PlayerCharacter.java
+++ b/src/hamhamdash/PlayerCharacter.java
@@ -1,199 +1,201 @@
package hamhamdash;
import jgame.*;
/**
*
* @author Cornel Alders
*/
public class Pla... | false | true | public void move()
{
String[][] tile = game.getCurrentLevel().getSurroundingTiles(this.getCenterTile().x, this.getCenterTile().y);
if(!isWalking)
{
if(eng.getKey(eng.KeyUp) && stopWalking == false && !(eng.getKey(eng.KeyLeft) || eng.getKey(eng.KeyRight) || eng.getKey(eng.KeyDown)) && !(tile[1][0].equals("X")... | public void move()
{
String[][] tile = game.getCurrentLevel().getSurroundingTiles(this.getCenterTile().x, this.getCenterTile().y);
if(!isWalking)
{
if(eng.getKey(eng.KeyUp) && stopWalking == false && !(eng.getKey(eng.KeyLeft) || eng.getKey(eng.KeyRight) || eng.getKey(eng.KeyDown)) && !(tile[1][0].equals("X")... |
diff --git a/SmartPaymentGenerator/src/com/smartpaymentformat/string/SmartPaymentMap.java b/SmartPaymentGenerator/src/com/smartpaymentformat/string/SmartPaymentMap.java
index a0cbfa2..2770615 100644
--- a/SmartPaymentGenerator/src/com/smartpaymentformat/string/SmartPaymentMap.java
+++ b/SmartPaymentGenerator/src/com/sm... | true | true | public String toExtendedParams() {
String returnValue = "";
for (String key : keySet()) {
key = key.toUpperCase();
String value = this.get(key);
if (value == null) continue;
if (!key.startsWith("X-")) {
key = "X-" + key;
}
... | public String toExtendedParams() {
String returnValue = "";
for (String key : keySet()) {
key = key.toUpperCase();
String value = this.get(key);
if (value == null) continue;
if (!key.startsWith("X-")) {
key = "X-" + key;
}
... |
diff --git a/src/com/nloko/android/syncmypix/SyncResultsActivity.java b/src/com/nloko/android/syncmypix/SyncResultsActivity.java
index 6ac4824..6edfa37 100644
--- a/src/com/nloko/android/syncmypix/SyncResultsActivity.java
+++ b/src/com/nloko/android/syncmypix/SyncResultsActivity.java
@@ -1,1448 +1,1448 @@
//
// Sy... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
showDialog(LOADING_DIALOG);
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.results);
mContactUtils = new ContactUtils();
mSdCache = new PhotoCache(getApplicationContex... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
showDialog(LOADING_DIALOG);
//requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
setContentView(R.layout.results);
mContactUtils = new ContactUtils();
mSdCache = new PhotoCache(getApplicationCont... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.