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/com/redhat/ceylon/compiler/java/codegen/ExpressionTransformer.java b/src/com/redhat/ceylon/compiler/java/codegen/ExpressionTransformer.java
index 5bb3c7c57..8dc4b1417 100755
--- a/src/com/redhat/ceylon/compiler/java/codegen/ExpressionTransformer.java
+++ b/src/com/redhat/ceylon/compiler/java/codegen/Ex... | true | true | private JCExpression transformMemberExpression(Tree.StaticMemberOrTypeExpression expr, JCExpression primaryExpr, TermTransformer transformer) {
JCExpression result = null;
// do not throw, an error will already have been reported
Declaration decl = expr.getDeclaration();
if (decl ==... | private JCExpression transformMemberExpression(Tree.StaticMemberOrTypeExpression expr, JCExpression primaryExpr, TermTransformer transformer) {
JCExpression result = null;
// do not throw, an error will already have been reported
Declaration decl = expr.getDeclaration();
if (decl ==... |
diff --git a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/validation/TypeInfoValidator.java b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/validation/TypeInfoValidator.java
index 61bd0a86..994d3dff 100644
--- a/plugins/org.eclipse.dltk.javascript... | false | true | protected void validateCallExpression(FunctionScope scope,
CallExpression node, final IValueReference reference,
IValueReference[] arguments, List<Method> methods) {
final Expression expression = node.getExpression();
final Path path = path(expression, reference);
if (scope.contains(path)) {
ret... | protected void validateCallExpression(FunctionScope scope,
CallExpression node, final IValueReference reference,
IValueReference[] arguments, List<Method> methods) {
final Expression expression = node.getExpression();
final Path path = path(expression, reference);
if (scope.contains(path)) {
ret... |
diff --git a/src/edu/fit/cs/sno/snes/cpu/hwregs/DMAChannel.java b/src/edu/fit/cs/sno/snes/cpu/hwregs/DMAChannel.java
index 5fcb0fa..cc1eb62 100644
--- a/src/edu/fit/cs/sno/snes/cpu/hwregs/DMAChannel.java
+++ b/src/edu/fit/cs/sno/snes/cpu/hwregs/DMAChannel.java
@@ -1,215 +1,216 @@
package edu.fit.cs.sno.snes.cpu.hwregs... | false | true | private int dmaTransferPPUOnce(int fromBank, int fromAddress, int toBank, int toAddress) {
// TODO: for normal dma transfers, only write to at most $transferSize registers, even if we are supposed to write to multiple ones this call
// TODO: i.e. break out of the statement if transfersize == 0 at any point
int s... | private int dmaTransferPPUOnce(int fromBank, int fromAddress, int toBank, int toAddress) {
// TODO: for normal dma transfers, only write to at most $transferSize registers, even if we are supposed to write to multiple ones this call
// TODO: i.e. break out of the statement if transfersize == 0 at any point
int s... |
diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/search/facet/datehistogram/DateHistogramFacetProcessor.java b/modules/elasticsearch/src/main/java/org/elasticsearch/search/facet/datehistogram/DateHistogramFacetProcessor.java
index 50da9ea96e4..7f4f5473ba1 100644
--- a/modules/elasticsearch/src/main/ja... | true | true | @Override public FacetCollector parse(String facetName, XContentParser parser, SearchContext context) throws IOException {
String keyField = null;
String valueField = null;
String valueScript = null;
String scriptLang = null;
Map<String, Object> params = null;
boolean... | @Override public FacetCollector parse(String facetName, XContentParser parser, SearchContext context) throws IOException {
String keyField = null;
String valueField = null;
String valueScript = null;
String scriptLang = null;
Map<String, Object> params = null;
boolean... |
diff --git a/src/be/ibridge/kettle/pan/Pan.java b/src/be/ibridge/kettle/pan/Pan.java
index c59fae48..e52b9dd2 100644
--- a/src/be/ibridge/kettle/pan/Pan.java
+++ b/src/be/ibridge/kettle/pan/Pan.java
@@ -1,353 +1,358 @@
/**********************************************************************
** ... | false | true | public static void main(String[] a) throws KettleException
{
EnvUtil.environmentInit();
ArrayList args = new ArrayList();
for (int i=0;i<a.length;i++)
{
if (a[i].length()>0)
{
args.add(a[i]);
}
}
RepositoryMeta repinfo = null;
UserInfo ... | public static void main(String[] a) throws KettleException
{
EnvUtil.environmentInit();
ArrayList args = new ArrayList();
for (int i=0;i<a.length;i++)
{
if (a[i].length()>0)
{
args.add(a[i]);
}
}
RepositoryMeta repinfo = null;
UserInfo ... |
diff --git a/AudioRacer-Android/src/at/fhv/audioracer/client/android/activity/PlayGameActivity.java b/AudioRacer-Android/src/at/fhv/audioracer/client/android/activity/PlayGameActivity.java
index 313bfac..2e78aea 100644
--- a/AudioRacer-Android/src/at/fhv/audioracer/client/android/activity/PlayGameActivity.java
+++ b/Au... | false | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_play_game);
// get all views
_chooseControlsView = findViewById(R.id.choose_controls);
_standardControlsView = findViewById(R.id.standard_controls);
_motionSensorControlsView = fi... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_play_game);
// get all views
_chooseControlsView = findViewById(R.id.choose_controls);
_standardControlsView = findViewById(R.id.standard_controls);
_motionSensorControlsView = fi... |
diff --git a/melete-util/src/java/org/etudes/basiclti/SakaiBLTIUtil.java b/melete-util/src/java/org/etudes/basiclti/SakaiBLTIUtil.java
index f92154b6..4ccfcb46 100644
--- a/melete-util/src/java/org/etudes/basiclti/SakaiBLTIUtil.java
+++ b/melete-util/src/java/org/etudes/basiclti/SakaiBLTIUtil.java
@@ -1,385 +1,385 @@
... | false | true | public static boolean sakaiInfo(Properties props, String context, String placementId)
{
Site site = null;
try {
site = SiteService.getSite(context);
} catch (Exception e) {
dPrint("No site/page associated with Launch context="+context);
return false;
}
... | public static boolean sakaiInfo(Properties props, String context, String placementId)
{
Site site = null;
try {
site = SiteService.getSite(context);
} catch (Exception e) {
dPrint("No site/page associated with Launch context="+context);
return false;
}
... |
diff --git a/src/java/com/eviware/soapui/impl/wsdl/teststeps/assertions/AbstractTestAssertionFactory.java b/src/java/com/eviware/soapui/impl/wsdl/teststeps/assertions/AbstractTestAssertionFactory.java
index 160b731ca..975eeb539 100644
--- a/src/java/com/eviware/soapui/impl/wsdl/teststeps/assertions/AbstractTestAssertio... | true | true | public boolean canAssert( Assertable assertable )
{
List<Class<?>> classes = Arrays.asList(assertable.getClass().getClasses());
if( targetClass != null && !classes.contains(targetClass))
return false;
if( assertable.getAssertableType() == AssertableType.BOTH )
return true;
if(assertable.getAs... | public boolean canAssert( Assertable assertable )
{
List<Class> classes = Arrays.asList(assertable.getClass().getClasses());
if( targetClass != null && !classes.contains(targetClass))
return false;
if( assertable.getAssertableType() == AssertableType.BOTH )
return true;
if(assertable.getAsser... |
diff --git a/src/test/java/org/jboss/aerogear/unifiedpush/message/UnifiedMessageTest.java b/src/test/java/org/jboss/aerogear/unifiedpush/message/UnifiedMessageTest.java
index 7172e2e..e49b1eb 100644
--- a/src/test/java/org/jboss/aerogear/unifiedpush/message/UnifiedMessageTest.java
+++ b/src/test/java/org/jboss/aerogear... | true | true | public void simpleBroadcastMessageTest() {
UnifiedMessage unifiedMessage = new UnifiedMessage.Builder()
.pushApplicationId("c7fc6525-5506-4ca9-9cf1-55cc261ddb9c")
.masterSecret("8b2f43a9-23c8-44fe-bee9-d6b0af9e316b")
.attribute("custom","customValue")
... | public void simpleBroadcastMessageTest() {
UnifiedMessage unifiedMessage = new UnifiedMessage.Builder()
.pushApplicationId("c7fc6525-5506-4ca9-9cf1-55cc261ddb9c")
.masterSecret("8b2f43a9-23c8-44fe-bee9-d6b0af9e316b")
.attribute("custom","customValue")
... |
diff --git a/src/pt/webdetails/cda/CdaContentGenerator.java b/src/pt/webdetails/cda/CdaContentGenerator.java
index 034e700d..bfdf66c5 100644
--- a/src/pt/webdetails/cda/CdaContentGenerator.java
+++ b/src/pt/webdetails/cda/CdaContentGenerator.java
@@ -1,209 +1,209 @@
package pt.webdetails.cda;
import java.io.OutputS... | true | true | public void doquery(final IParameterProvider pathParams, final OutputStream out) throws Exception
{
final CdaEngine engine = CdaEngine.getInstance();
final QueryOptions queryOptions = new QueryOptions();
final CdaSettings cdaSettings = SettingsManager.getInstance().parseSettingsFile(getRelativePath(pa... | public void doquery(final IParameterProvider pathParams, final OutputStream out) throws Exception
{
final CdaEngine engine = CdaEngine.getInstance();
final QueryOptions queryOptions = new QueryOptions();
final CdaSettings cdaSettings = SettingsManager.getInstance().parseSettingsFile(PentahoSystem.getA... |
diff --git a/javax-cache/src/main/java/org/jboss/lhotse/cache/infinispan/InfinispanCacheFactory.java b/javax-cache/src/main/java/org/jboss/lhotse/cache/infinispan/InfinispanCacheFactory.java
index f352a8c..b50996e 100644
--- a/javax-cache/src/main/java/org/jboss/lhotse/cache/infinispan/InfinispanCacheFactory.java
+++ b... | false | true | protected EmbeddedCacheManager doJNDILookup() throws IOException
{
Properties jndiProperties = new Properties();
URL jndiPropertiesURL = getClass().getClassLoader().getResource("jndi.properties");
if (jndiPropertiesURL != null)
{
InputStream is = jndiPropertiesURL.openStream();
... | protected EmbeddedCacheManager doJNDILookup() throws IOException
{
Properties jndiProperties = new Properties();
URL jndiPropertiesURL = getClass().getClassLoader().getResource("jndi.properties");
if (jndiPropertiesURL != null)
{
InputStream is = jndiPropertiesURL.openStream();
... |
diff --git a/src/com/dmdirc/addons/relaybot/RelayCallbackManager.java b/src/com/dmdirc/addons/relaybot/RelayCallbackManager.java
index f07d69f2..88c44ebb 100644
--- a/src/com/dmdirc/addons/relaybot/RelayCallbackManager.java
+++ b/src/com/dmdirc/addons/relaybot/RelayCallbackManager.java
@@ -1,197 +1,197 @@
/*
* Copyr... | true | true | private void setCallbackManager(final IRCParser parser, final CallbackManager cbm) {
try {
// Get the old callback manager
final Field field = parser.getClass().getDeclaredField("myCallbackManager");
field.setAccessible(true);
@SuppressWarnings("unchecked")
... | private void setCallbackManager(final IRCParser parser, final CallbackManager cbm) {
try {
// Get the old callback manager
final Field field = parser.getClass().getSuperclass().getDeclaredField("callbackManager");
field.setAccessible(true);
@SuppressWarnings("... |
diff --git a/ArjunaJTS/jts/tests/classes/com/hp/mwtests/ts/jts/remote/current/CurrentTest.java b/ArjunaJTS/jts/tests/classes/com/hp/mwtests/ts/jts/remote/current/CurrentTest.java
index 63397f59e..9c0bbbdde 100644
--- a/ArjunaJTS/jts/tests/classes/com/hp/mwtests/ts/jts/remote/current/CurrentTest.java
+++ b/ArjunaJTS/jts... | true | true | public static void main(String[] args) throws Exception
{
ORB myORB = null;
RootOA myOA = null;
myORB = ORB.getInstance("test");
myOA = OA.getRootOA(myORB);
myORB.initORB(new String[] {}, null);
myOA.initOA();
ORBManager.setORB(myORB);
ORBManage... | public static void main(String[] args) throws Exception
{
ORB myORB = null;
RootOA myOA = null;
myORB = ORB.getInstance("test");
myOA = OA.getRootOA(myORB);
myORB.initORB(new String[] {}, null);
myOA.initOA();
ORBManager.setORB(myORB);
ORBManage... |
diff --git a/src/ie/broadsheet/app/PostDetailActivity.java b/src/ie/broadsheet/app/PostDetailActivity.java
index 82631a1..152b875 100644
--- a/src/ie/broadsheet/app/PostDetailActivity.java
+++ b/src/ie/broadsheet/app/PostDetailActivity.java
@@ -1,63 +1,63 @@
package ie.broadsheet.app;
import ie.broadsheet.app.fragm... | true | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_post_detail);
// Show the Up button in the action bar.
getActionBar().setDisplayHomeAsUpEnabled(true);
// savedInstanceState is non-null when there is f... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_post_detail);
// Show the Up button in the action bar.
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
// savedInstanceState is non-null when the... |
diff --git a/src/com/wolvencraft/prison/mines/util/Message.java b/src/com/wolvencraft/prison/mines/util/Message.java
index 21cd975..3645ef6 100644
--- a/src/com/wolvencraft/prison/mines/util/Message.java
+++ b/src/com/wolvencraft/prison/mines/util/Message.java
@@ -1,111 +1,111 @@
package com.wolvencraft.prison.mines.u... | true | true | public static void broadcast(String message) {
if(message == null) message = "";
message = PrisonMine.getLanguage().GENERAL_SUCCESS + " " + ChatColor.WHITE + message;
for (Player p : Bukkit.getServer().getOnlinePlayers()) {
if(p.hasPermission("mcprison.mine.reset.broadcast")) p.sendMessag... | public static void broadcast(String message) {
if(message == null) message = "";
message = PrisonMine.getLanguage().GENERAL_SUCCESS + " " + ChatColor.WHITE + message;
for (Player p : Bukkit.getServer().getOnlinePlayers()) {
if(p.hasPermission("prison.mine.reset.broadcast")) p.sendMessage(... |
diff --git a/HakunaContacta/src/de/hakunacontacta/client/Page2.java b/HakunaContacta/src/de/hakunacontacta/client/Page2.java
index a3a924a..0736120 100644
--- a/HakunaContacta/src/de/hakunacontacta/client/Page2.java
+++ b/HakunaContacta/src/de/hakunacontacta/client/Page2.java
@@ -1,347 +1,348 @@
package de.hakunaconta... | false | true | private void initPage() {
clientEngine.setPage2(this);
page2.setPixelSize(1000, 350);
Button exportButton = new Button("Download Exportdatei");
exportButton.addStyleName("exportButton");
Button zurueckButton = new Button("Zur\u00FCck zur Kontaktauswahl");
zurueckButton.addStyleName("zurueckButton");
/... | private void initPage() {
clientEngine.setPage2(this);
page2.setPixelSize(1000, 350);
Button exportButton = new Button("Download Exportdatei");
exportButton.addStyleName("exportButton");
Button zurueckButton = new Button("Zur\u00FCck zur Kontaktauswahl");
zurueckButton.addStyleName("zurueckButton");
/... |
diff --git a/src/test/system/java/org/apache/hadoop/mapred/TestDistributedCacheModifiedFile.java b/src/test/system/java/org/apache/hadoop/mapred/TestDistributedCacheModifiedFile.java
index e617bf893..b563b8fe4 100644
--- a/src/test/system/java/org/apache/hadoop/mapred/TestDistributedCacheModifiedFile.java
+++ b/src/tes... | true | true | public void testDistributedCache() throws Exception {
Configuration conf = new Configuration(cluster.getConf());
JTProtocol wovenClient = cluster.getJTClient().getProxy();
//This counter will check for count of a loop,
//which might become infinite.
int count = 0;
//This boolean will decide ... | public void testDistributedCache() throws Exception {
Configuration conf = new Configuration(cluster.getConf());
JTProtocol wovenClient = cluster.getJTClient().getProxy();
//This counter will check for count of a loop,
//which might become infinite.
int count = 0;
//This boolean will decide ... |
diff --git a/src/org/acl/root/IncomingCallScanner.java b/src/org/acl/root/IncomingCallScanner.java
index 486c746..0c92782 100644
--- a/src/org/acl/root/IncomingCallScanner.java
+++ b/src/org/acl/root/IncomingCallScanner.java
@@ -1,223 +1,224 @@
package org.acl.root;
import java.lang.reflect.Method;
import java.uti... | true | true | public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals("android.intent.action.PHONE_STATE")) {
String state = intent.getStringExtra(TelephonyManager.EXTRA_STATE);
Log.d(TAG, "Call State=" + state);
if (state.equals(TelephonyManager.EXTRA_STATE_IDLE)) {
Log.d(TAG, "I... | public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals("android.intent.action.PHONE_STATE")) {
String state = intent.getStringExtra(TelephonyManager.EXTRA_STATE);
Log.d(TAG, "Call State=" + state);
if (state.equals(TelephonyManager.EXTRA_STATE_IDLE)) {
Log.d(TAG, "I... |
diff --git a/GnuBackgammon/src/it/alcacoop/gnubackgammon/layers/GameScreen.java b/GnuBackgammon/src/it/alcacoop/gnubackgammon/layers/GameScreen.java
index 88adced..ed0e3cd 100644
--- a/GnuBackgammon/src/it/alcacoop/gnubackgammon/layers/GameScreen.java
+++ b/GnuBackgammon/src/it/alcacoop/gnubackgammon/layers/GameScreen.... | true | true | public GameScreen(GnuBackgammon bg){
sb = new SpriteBatch();
//STAGE DIM = SCREEN RES
stage = new Stage(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), false);
//VIEWPORT DIM = VIRTUAL RES (ON SELECTED TEXTURE BASIS)
stage.setViewport(GnuBackgammon.resolution[0], GnuBackgammon.resolution[1... | public GameScreen(GnuBackgammon bg){
sb = new SpriteBatch();
//STAGE DIM = SCREEN RES
stage = new Stage(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), false);
//VIEWPORT DIM = VIRTUAL RES (ON SELECTED TEXTURE BASIS)
stage.setViewport(GnuBackgammon.resolution[0], GnuBackgammon.resolution[1... |
diff --git a/pingpongnet/src/test/java/ping/pong/net/connection/io/IoUdpWriteRunnableTest.java b/pingpongnet/src/test/java/ping/pong/net/connection/io/IoUdpWriteRunnableTest.java
index 3703235..76b3f70 100644
--- a/pingpongnet/src/test/java/ping/pong/net/connection/io/IoUdpWriteRunnableTest.java
+++ b/pingpongnet/src/t... | true | true | public void testSendByte() throws SocketException, InterruptedException
{
ConnectionConfiguration config = ConnectionConfigFactory.createPPNConfig("localhost", 9007, 9009, false);
final String message = "hello world";
DatagramSocket udpSocket = new DatagramSocket(config.getUdpPort());
... | public void testSendByte() throws SocketException, InterruptedException
{
ConnectionConfiguration config = ConnectionConfigFactory.createPPNConfig("localhost", 9007, 9089, false);
final String message = "hello world";
DatagramSocket udpSocket = new DatagramSocket(config.getUdpPort());
... |
diff --git a/src/net/machinemuse/numina/recipe/SimpleItemMaker.java b/src/net/machinemuse/numina/recipe/SimpleItemMaker.java
index 3e4ee50..2728f0b 100644
--- a/src/net/machinemuse/numina/recipe/SimpleItemMaker.java
+++ b/src/net/machinemuse/numina/recipe/SimpleItemMaker.java
@@ -1,64 +1,65 @@
package net.machinemuse.... | true | true | public ItemStack getRecipeOutput() {
int newmeta = getOrElse(this.meta, 0);
int newquantity = getOrElse(this.quantity, 1);
if (id != null) {
ItemStack stack = new ItemStack(id, newquantity, newmeta);
if (nbt != null) stack.stackTagCompound = (NBTTagCompound) nbt.copy(... | public ItemStack getRecipeOutput() {
int newmeta = getOrElse(this.meta, 0);
int newquantity = getOrElse(this.quantity, 1);
if (id != null) {
ItemStack stack = new ItemStack(id, newquantity, newmeta);
if (nbt != null) stack.stackTagCompound = (NBTTagCompound) nbt.copy(... |
diff --git a/osmdroid-android/src/main/java/org/osmdroid/views/overlay/SafeDrawOverlay.java b/osmdroid-android/src/main/java/org/osmdroid/views/overlay/SafeDrawOverlay.java
index 65ff35d..2496796 100644
--- a/osmdroid-android/src/main/java/org/osmdroid/views/overlay/SafeDrawOverlay.java
+++ b/osmdroid-android/src/main/... | false | true | protected void draw(final Canvas c, final MapView osmv, final boolean shadow) {
sSafeCanvas.setCanvas(c);
if (this.isUsingSafeCanvas()) {
// Find the screen offset
Rect screenRect = osmv.getProjection().getScreenRect();
sSafeCanvas.xOffset = -screenRect.left;
sSafeCanvas.yOffset = -screenRect.top;
... | protected void draw(final Canvas c, final MapView osmv, final boolean shadow) {
sSafeCanvas.setCanvas(c);
if (this.isUsingSafeCanvas()) {
// Find the screen offset
Rect screenRect = osmv.getProjection().getScreenRect();
sSafeCanvas.xOffset = -screenRect.left;
sSafeCanvas.yOffset = -screenRect.top;
... |
diff --git a/git-server/src/jetbrains/buildServer/buildTriggers/vcs/git/Cleaner.java b/git-server/src/jetbrains/buildServer/buildTriggers/vcs/git/Cleaner.java
index 97ea809..d5b718e 100644
--- a/git-server/src/jetbrains/buildServer/buildTriggers/vcs/git/Cleaner.java
+++ b/git-server/src/jetbrains/buildServer/buildTrigg... | true | true | private void runNativeGC(final File bareGitDir) {
String pathToGit = getPathToGit();
try {
final long start = System.currentTimeMillis();
GeneralCommandLine cl = new GeneralCommandLine();
cl.setWorkingDirectory(bareGitDir.getParentFile());
cl.setExePath(pathToGit);
cl.addParamete... | private void runNativeGC(final File bareGitDir) {
String pathToGit = getPathToGit();
try {
final long start = System.currentTimeMillis();
GeneralCommandLine cl = new GeneralCommandLine();
cl.setWorkingDirectory(bareGitDir.getParentFile());
cl.setExePath(pathToGit);
cl.addParamete... |
diff --git a/test/com/github/manasg/logging/test/MultipleLogMsg.java b/test/com/github/manasg/logging/test/MultipleLogMsg.java
index c10c1a6..942f88c 100644
--- a/test/com/github/manasg/logging/test/MultipleLogMsg.java
+++ b/test/com/github/manasg/logging/test/MultipleLogMsg.java
@@ -1,39 +1,39 @@
package com.github.m... | true | true | public static long multipleLogs(int number) {
Logger logger = Logger.getLogger("multi");
PropertyConfigurator.configure("conf/log4j.properties");
/*
* Just doing this via Code. Log4.properties has the same effect!
EasilydoAppender a4 = new EasilydoAppender... | public static long multipleLogs(int number) {
Logger logger = Logger.getLogger("multi");
PropertyConfigurator.configure("conf/log4j.properties");
/*
* Just doing this via Code. Log4.properties has the same effect!
RemoteAppender a4 = new RemoteAppender();
... |
diff --git a/monopoly/src/ch/bfh/monopoly/gui/BoardTile.java b/monopoly/src/ch/bfh/monopoly/gui/BoardTile.java
index 35b5a1f..7d19c68 100644
--- a/monopoly/src/ch/bfh/monopoly/gui/BoardTile.java
+++ b/monopoly/src/ch/bfh/monopoly/gui/BoardTile.java
@@ -1,571 +1,571 @@
package ch.bfh.monopoly.gui;
import java.awt.Co... | true | true | private void addInformationOnTab(){
if(displayInfo){
//clean the panel
tab.removeAll();
Font f = new Font(getFont().getName(), Font.PLAIN, getFont().getSize());
Font f2 = new Font(getFont().getName(), Font.BOLD, getFont().getSize());
JLabel name = new JLabel(ti.getName());
name.setAlignmentX(Comp... | private void addInformationOnTab(){
if(displayInfo){
//clean the panel
tab.removeAll();
Font f = new Font(getFont().getName(), Font.PLAIN, getFont().getSize());
Font f2 = new Font(getFont().getName(), Font.BOLD, getFont().getSize());
JLabel name = new JLabel(ti.getName());
name.setAlignmentX(Comp... |
diff --git a/webofneeds/won-owner-webapp/src/main/java/won/owner/web/need/NeedController.java b/webofneeds/won-owner-webapp/src/main/java/won/owner/web/need/NeedController.java
index 24b509248..ff2581b8a 100644
--- a/webofneeds/won-owner-webapp/src/main/java/won/owner/web/need/NeedController.java
+++ b/webofneeds/won-o... | true | true | public String createNeedPost(@ModelAttribute("SpringWeb") NeedPojo needPojo, Model model)
{
URI needURI;
try {
URI ownerURI = this.uriService.getOwnerProtocolOwnerServiceEndpointURI();
com.hp.hpl.jena.rdf.model.Model needModel = ModelFactory.createDefaultModel();
Resource needResource =... | public String createNeedPost(@ModelAttribute("SpringWeb") NeedPojo needPojo, Model model)
{
URI needURI;
try {
URI ownerURI = this.uriService.getOwnerProtocolOwnerServiceEndpointURI();
com.hp.hpl.jena.rdf.model.Model needModel = ModelFactory.createDefaultModel();
Resource needResource =... |
diff --git a/src/test/java/org/nebulostore/appcore/NebuloFileTest.java b/src/test/java/org/nebulostore/appcore/NebuloFileTest.java
index c91335e..6687876 100644
--- a/src/test/java/org/nebulostore/appcore/NebuloFileTest.java
+++ b/src/test/java/org/nebulostore/appcore/NebuloFileTest.java
@@ -1,52 +1,52 @@
package org.... | true | true | public void testWriteMultipleChunks() {
NebuloFile file = new NebuloFile(new AppKey(BigInteger.ONE), new ObjectId(BigInteger.ONE), 10);
// Do three writes.
byte[] as = new byte[35];
Arrays.fill(as, (byte) 'a');
byte[] bs = new byte[38];
Arrays.fill(bs, (byte) 'b');
byte[] cs = new byte[13... | public void testWriteMultipleChunks() {
NebuloFile file = new NebuloFile(new AppKey(BigInteger.ONE), new ObjectId(BigInteger.ONE));
// Do three writes.
byte[] as = new byte[35];
Arrays.fill(as, (byte) 'a');
byte[] bs = new byte[38];
Arrays.fill(bs, (byte) 'b');
byte[] cs = new byte[13];
... |
diff --git a/profiling/org.eclipse.linuxtools.profiling.snapshot/src/org/eclipse/linuxtools/profiling/snapshot/SnapshotOptionsTab.java b/profiling/org.eclipse.linuxtools.profiling.snapshot/src/org/eclipse/linuxtools/profiling/snapshot/SnapshotOptionsTab.java
index a42e8d51f..b83bc1469 100644
--- a/profiling/org.eclipse... | true | true | public void createControl(Composite parent) {
top = new Composite(parent, SWT.NONE);
setControl(top);
top.setLayout(new GridLayout(1, true));
providerCombo = new Combo(top, SWT.READ_ONLY);
providerCombo.setItems(ProfileLaunchConfigurationTabGroup
.getTabGroupIdsForType("snapshot"));
final CTabFolder t... | public void createControl(Composite parent) {
top = new Composite(parent, SWT.NONE);
setControl(top);
top.setLayout(new GridLayout(1, true));
providerCombo = new Combo(top, SWT.READ_ONLY);
providerCombo.setItems(ProfileLaunchConfigurationTabGroup
.getTabGroupIdsForType("snapshot"));
final CTabFolder t... |
diff --git a/torquebox-core/src/main/java/org/torquebox/ruby/core/runtime/DefaultRubyRuntimeFactory.java b/torquebox-core/src/main/java/org/torquebox/ruby/core/runtime/DefaultRubyRuntimeFactory.java
index b29703f64..6c7be4a89 100644
--- a/torquebox-core/src/main/java/org/torquebox/ruby/core/runtime/DefaultRubyRuntimeFa... | true | true | public synchronized Ruby create() throws Exception {
log.error( "CREATING RUBY RUNTIME HERE: ", new Exception() );
RubyInstanceConfig config = new RubyInstanceConfig();
DefaultRubyDynamicClassLoader childLoader = this.classLoader
.createChild();
config.setLoader(childLoader);
if (this.classCache == nul... | public synchronized Ruby create() throws Exception {
// log.error( "CREATING RUBY RUNTIME HERE: ", new Exception() );
RubyInstanceConfig config = new RubyInstanceConfig();
DefaultRubyDynamicClassLoader childLoader = this.classLoader
.createChild();
config.setLoader(childLoader);
if (this.classCache == n... |
diff --git a/src/main/com/trendrr/oss/cache/TrendrrCache.java b/src/main/com/trendrr/oss/cache/TrendrrCache.java
index 0713e62..83b1c77 100644
--- a/src/main/com/trendrr/oss/cache/TrendrrCache.java
+++ b/src/main/com/trendrr/oss/cache/TrendrrCache.java
@@ -1,386 +1,389 @@
/**
*
*/
package com.trendrr.oss.cache;
... | true | true | public DynMap getMulti(String namespace, Collection<String> keys) {
this.init();
/*
* does some copying around here in order to keep with our namespaced keys.
*/
HashSet<String> k = new HashSet<String>();
HashMap<String, String> newKeys = new HashMap<String,String>();
for (String key : keys) {... | public DynMap getMulti(String namespace, Collection<String> keys) {
this.init();
/*
* does some copying around here in order to keep with our namespaced keys.
*/
HashSet<String> k = new HashSet<String>();
HashMap<String, String> newKeys = new HashMap<String,String>();
for (String key : keys) {... |
diff --git a/gdx/src/com/badlogic/gdx/graphics/OrthographicCamera.java b/gdx/src/com/badlogic/gdx/graphics/OrthographicCamera.java
index 8d3857515..d4a7f2594 100644
--- a/gdx/src/com/badlogic/gdx/graphics/OrthographicCamera.java
+++ b/gdx/src/com/badlogic/gdx/graphics/OrthographicCamera.java
@@ -1,62 +1,62 @@
/*******... | true | true | public void update() {
projection.setToOrtho(zoom * -viewportWidth / 2, zoom * viewportWidth / 2, zoom * -viewportHeight / 2, zoom * viewportHeight / 2, Math.abs(near), Math.abs(far));
view.setToLookAt(position, tmp.set(position).add(direction), up);
combined.set(projection);
Matrix4.mul(combined.val, view.va... | public void update() {
projection.setToOrtho(zoom * -viewportWidth / 2, zoom * viewportWidth / 2, zoom * -viewportHeight / 2, zoom * viewportHeight / 2, Math.abs(near), Math.abs(far));
view.setToLookAt(position, tmp.set(position).add(direction), up);
combined.set(projection);
Matrix4.mul(combined.val, view.va... |
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskEditorBloatMonitor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskEditorBloatMonitor.java
index e914d1253..8778600d0 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/TaskEdit... | true | true | public static void editorOpened(IEditorPart editorPartOpened) {
IWorkbenchPage page = editorPartOpened.getSite().getPage();
List<IEditorReference> toClose = new ArrayList<IEditorReference>();
int totalTaskEditors = 0;
for (IEditorReference editorReference : page.getEditorReferences()) {
if (TaskEditor.ID_ED... | public static void editorOpened(IEditorPart editorPartOpened) {
IWorkbenchPage page = editorPartOpened.getSite().getPage();
List<IEditorReference> toClose = new ArrayList<IEditorReference>();
int totalTaskEditors = 0;
for (IEditorReference editorReference : page.getEditorReferences()) {
if (TaskEditor.ID_ED... |
diff --git a/test/org/red5/io/mp4/MP4FrameTest.java b/test/org/red5/io/mp4/MP4FrameTest.java
index 34ee3e50..a9e449e9 100644
--- a/test/org/red5/io/mp4/MP4FrameTest.java
+++ b/test/org/red5/io/mp4/MP4FrameTest.java
@@ -1,81 +1,81 @@
package org.red5.io.mp4;
import java.util.ArrayList;
import java.util.Collections;... | false | true | public void testSort() {
log.debug("Test sort");
List<MP4Frame> frames = new ArrayList<MP4Frame>(6);
//create some frames
MP4Frame frame1 = new MP4Frame();
frame1.setTime(1);
frame1.setOffset(1);
frames.add(frame1);
MP4Frame frame2 = new MP4Frame();
frame2.setTime(6);
frame2.setOffset(6);
... | public void testSort() {
log.debug("Test sort");
List<MP4Frame> frames = new ArrayList<MP4Frame>(6);
//create some frames
MP4Frame frame1 = new MP4Frame();
frame1.setTime(1);
frame1.setOffset(1);
frames.add(frame1);
MP4Frame frame2 = new MP4Frame();
frame2.setTime(6);
frame2.setOffset(6);
... |
diff --git a/n3phele/src/n3phele/service/actions/FileTransferAction.java b/n3phele/src/n3phele/service/actions/FileTransferAction.java
index 3237ec0..a2e0023 100644
--- a/n3phele/src/n3phele/service/actions/FileTransferAction.java
+++ b/n3phele/src/n3phele/service/actions/FileTransferAction.java
@@ -1,506 +1,506 @@
pa... | false | true | public void init() throws Exception {
logger = new ActionLogger(this);
log.info(this.getContext().getValue("arg"));
this.target = this.getContext().getValue("target");
Action vm = ActionResource.dao.load(URI.create(this.target));
VMAction targetVM = null;
if(!(vm instanceof VMAction)) {
logger.error(... | public void init() throws Exception {
logger = new ActionLogger(this);
log.info(this.getContext().getValue("arg"));
this.target = this.getContext().getValue("target");
Action vm = ActionResource.dao.load(URI.create(this.target));
VMAction targetVM = null;
if(!(vm instanceof VMAction)) {
logger.error(... |
diff --git a/src/no/runsafe/creativetoolbox/PlotList.java b/src/no/runsafe/creativetoolbox/PlotList.java
index 77cb7e4..b841a91 100644
--- a/src/no/runsafe/creativetoolbox/PlotList.java
+++ b/src/no/runsafe/creativetoolbox/PlotList.java
@@ -1,78 +1,81 @@
package no.runsafe.creativetoolbox;
import com.google.common.... | true | true | public void remove(String plot)
{
for (Map.Entry<String, List<String>> list : lists.entrySet())
{
if (list.getValue().contains(plot))
{
ArrayList<String> plots = Lists.newArrayList(list.getValue());
int i = plots.indexOf(plot);
plots.remove(plot);
lists.put(list.getKey(), plots);
pointer... | public void remove(String plot)
{
for (Map.Entry<String, List<String>> list : lists.entrySet())
{
if (list.getValue().contains(plot))
{
ArrayList<String> plots = Lists.newArrayList(list.getValue());
int i = plots.indexOf(plot);
plots.remove(plot);
lists.put(list.getKey(), plots);
if (plo... |
diff --git a/com/buglabs/bug/base/BUGBaseControl.java b/com/buglabs/bug/base/BUGBaseControl.java
index 36bbfb1..fbca71e 100644
--- a/com/buglabs/bug/base/BUGBaseControl.java
+++ b/com/buglabs/bug/base/BUGBaseControl.java
@@ -1,130 +1,130 @@
/*****************************************************************************... | true | true | public BUGBaseControl() throws FileNotFoundException {
batteryFH = new FileOutputStream[3];
batteryFH[COLOR_BLUE] = new FileOutputStream(BATTERY_BLUE_CONTROL_FILE);
batteryFH[COLOR_RED] = new FileOutputStream(BATTERY_RED_CONTROL_FILE);
batteryFH[COLOR_GREEN] = new FileOutputStream(BATTERY_GREEN_CONTROL_FILE);
... | public BUGBaseControl() throws FileNotFoundException {
batteryFH = new FileOutputStream[3];
batteryFH[COLOR_BLUE] = new FileOutputStream(BATTERY_BLUE_CONTROL_FILE);
batteryFH[COLOR_RED] = new FileOutputStream(BATTERY_RED_CONTROL_FILE);
batteryFH[COLOR_GREEN] = new FileOutputStream(BATTERY_GREEN_CONTROL_FILE);
... |
diff --git a/src/planets/src/se/exuvo/planets/systems/VelocitySystem.java b/src/planets/src/se/exuvo/planets/systems/VelocitySystem.java
index e91c92c..6c4e351 100644
--- a/src/planets/src/se/exuvo/planets/systems/VelocitySystem.java
+++ b/src/planets/src/se/exuvo/planets/systems/VelocitySystem.java
@@ -1,56 +1,56 @@
... | true | true | protected void process(Entity e) {
Position p = pm.get(e);
Velocity v = vm.get(e);
// apply speed to position
p.vec.add(v.vec);
if(p.vec.x < minX) p.vec.x = minX;
if(p.vec.y < minY) p.vec.y = minY;
if(p.vec.x > maxX) p.vec.x = maxX;
if(p.vec.y > maxY) p.vec.x = maxY;
}
| protected void process(Entity e) {
Position p = pm.get(e);
Velocity v = vm.get(e);
// apply speed to position
p.vec.add(v.vec);
if(p.vec.x < minX) p.vec.x = minX;
if(p.vec.y < minY) p.vec.y = minY;
if(p.vec.x > maxX) p.vec.x = maxX;
if(p.vec.y > maxY) p.vec.y = maxY;
}
|
diff --git a/src/main/java/net/cubespace/RegionShop/Data/Tasks/PriceRecalculateTask.java b/src/main/java/net/cubespace/RegionShop/Data/Tasks/PriceRecalculateTask.java
index 1c94779..209aa1e 100644
--- a/src/main/java/net/cubespace/RegionShop/Data/Tasks/PriceRecalculateTask.java
+++ b/src/main/java/net/cubespace/RegionS... | true | true | public void run() {
int lastItemStorageId = 0;
for (Item item : items) {
Items itemInShop = null;
try {
itemInShop = Database.getDAO(Items.class).queryForId(item.databaseID);
} catch (SQLException e) {
Logger.error("Could not get It... | public void run() {
int lastItemStorageId = 0;
for (Item item : items) {
Items itemInShop = null;
try {
itemInShop = Database.getDAO(Items.class).queryForId(item.databaseID);
} catch (SQLException e) {
Logger.error("Could not get It... |
diff --git a/test/com/xtremelabs/robolectric/RobolectricTest.java b/test/com/xtremelabs/robolectric/RobolectricTest.java
index 216bf2bc..a1b284e1 100644
--- a/test/com/xtremelabs/robolectric/RobolectricTest.java
+++ b/test/com/xtremelabs/robolectric/RobolectricTest.java
@@ -1,93 +1,93 @@
package com.xtremelabs.robolec... | true | true | public void shouldLogMissingInvokedShadowMethodsWhenRequested() throws Exception {
Robolectric.bindShadowClass(View.class, TestShadowView.class);
Robolectric.logMissingInvokedShadowMethods();
View aView = new View(null);
// There's a shadow method for this
aView.getContext(... | public void shouldLogMissingInvokedShadowMethodsWhenRequested() throws Exception {
Robolectric.bindShadowClass(View.class, TestShadowView.class);
Robolectric.logMissingInvokedShadowMethods();
View aView = new View(null);
// There's a shadow method for this
aView.getContext(... |
diff --git a/core/java/com/android/internal/widget/RotarySelector.java b/core/java/com/android/internal/widget/RotarySelector.java
index 6fabba38..a080d1f7 100644
--- a/core/java/com/android/internal/widget/RotarySelector.java
+++ b/core/java/com/android/internal/widget/RotarySelector.java
@@ -1,968 +1,968 @@
/*
* C... | true | true | protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
final int width = getWidth();
final int height = getHeight();
final int bgHeight = mBackgroundHeight;
final int bgTop = isHoriz() ?
height - bgHeight:
width - bgHeight;
final... | protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
final int width = getWidth();
final int height = getHeight();
final int bgHeight = mBackgroundHeight;
final int bgTop = isHoriz() ?
height - bgHeight:
width - bgHeight;
final... |
diff --git a/src/main/java/org/glite/authz/pap/repository/dao/FileSystemDAOFactory.java b/src/main/java/org/glite/authz/pap/repository/dao/FileSystemDAOFactory.java
index 14d5eda..61ec9b4 100644
--- a/src/main/java/org/glite/authz/pap/repository/dao/FileSystemDAOFactory.java
+++ b/src/main/java/org/glite/authz/pap/repo... | true | true | private void initDB() {
File rootDir = new File(RepositoryConfiguration.getFileSystemDatabaseDir());
if (!rootDir.exists()) {
if (!rootDir.mkdirs()) {
throw new RepositoryException("Cannot create DB dir");
}
}
if (!(rootDir.canExecute() && rootDir.canRead() && rootDir.canWrite())) {
throw new Repo... | private void initDB() {
File rootDir = new File(RepositoryConfiguration.getFileSystemDatabaseDir());
if (!rootDir.exists()) {
if (!rootDir.mkdirs()) {
throw new RepositoryException("Cannot create DB dir");
}
}
if (!(rootDir.canRead() && rootDir.canWrite())) {
throw new RepositoryException("Permiss... |
diff --git a/core/infinit.e.processing.custom.library/src/com/ikanow/infinit/e/processing/custom/launcher/CustomHadoopTaskLauncher.java b/core/infinit.e.processing.custom.library/src/com/ikanow/infinit/e/processing/custom/launcher/CustomHadoopTaskLauncher.java
index 6464d624..8b9e07dc 100644
--- a/core/infinit.e.proces... | false | true | private void createConfigXML( Writer out, String title, String input, String fields, boolean isCustomTable, String outputDatabase, String output, String tempOutputCollection, String mapper, String reducer, String combiner, String query, List<ObjectId> communityIds, String outputKey, String outputValue, String argument... | private void createConfigXML( Writer out, String title, String input, String fields, boolean isCustomTable, String outputDatabase, String output, String tempOutputCollection, String mapper, String reducer, String combiner, String query, List<ObjectId> communityIds, String outputKey, String outputValue, String argument... |
diff --git a/orion_viewer/src/universe/constellation/orion/viewer/Action.java b/orion_viewer/src/universe/constellation/orion/viewer/Action.java
index 051dae4..727ad7b 100644
--- a/orion_viewer/src/universe/constellation/orion/viewer/Action.java
+++ b/orion_viewer/src/universe/constellation/orion/viewer/Action.java
@@ ... | false | true | public void doAction(Controller controller, OrionViewerActivity activity, Object parameter) {
String dict = activity.getGlobalOptions().getDictionary();
String action = null;
Intent intent = new Intent();
String queryText = null;
if ("FORA".equals(dic... | public void doAction(Controller controller, OrionViewerActivity activity, Object parameter) {
String dict = activity.getGlobalOptions().getDictionary();
String action = null;
Intent intent = new Intent();
String queryText = null;
if ("FORA".equals(dic... |
diff --git a/src/java/com/eviware/x/impl/swing/SwingFileDialogs.java b/src/java/com/eviware/x/impl/swing/SwingFileDialogs.java
index e95d20f69..8a8248849 100644
--- a/src/java/com/eviware/x/impl/swing/SwingFileDialogs.java
+++ b/src/java/com/eviware/x/impl/swing/SwingFileDialogs.java
@@ -1,131 +1,131 @@
/*
* soapUI... | true | true | public static File openFile(Object action, String title, String extension, String fileType, String current)
{
JFileChooser chooser = getChooser(action);
chooser.setFileSelectionMode( JFileChooser.FILES_AND_DIRECTORIES);
chooser.setDialogTitle(title);
chooser.setAcceptAllFileFilterUsed( tru... | public static File openFile(Object action, String title, String extension, String fileType, String current)
{
JFileChooser chooser = getChooser(action);
chooser.setFileSelectionMode( JFileChooser.FILES_ONLY);
chooser.setDialogTitle(title);
chooser.setAcceptAllFileFilterUsed( true );
... |
diff --git a/api/src/test/java/org/openmrs/module/tracnetreportingsdmx/TracnetReportTest.java b/api/src/test/java/org/openmrs/module/tracnetreportingsdmx/TracnetReportTest.java
index c6cfae0..09c37d0 100644
--- a/api/src/test/java/org/openmrs/module/tracnetreportingsdmx/TracnetReportTest.java
+++ b/api/src/test/java/or... | true | true | public void shouldGenerateTracnetReport() throws Exception {
ReportDefinition reportDefinition = TracnetReport.getTracnetReportDefinition(true);
EvaluationContext context = new EvaluationContext();
context.addParameterValue("startDate", DateUtil.getDateTime(2011, 1, 1));
context.addParameterValue("endDa... | public void shouldGenerateTracnetReport() throws Exception {
ReportDefinition reportDefinition = TracnetReport.getTracnetReportDefinition(true);
EvaluationContext context = new EvaluationContext();
context.addParameterValue("startDate", DateUtil.getDateTime(2011, 1, 1));
context.addParameterValue("endDa... |
diff --git a/Experimental/src/sectionOne/BalloonApplet.java b/Experimental/src/sectionOne/BalloonApplet.java
index 7ce89bf..d9e4dc1 100644
--- a/Experimental/src/sectionOne/BalloonApplet.java
+++ b/Experimental/src/sectionOne/BalloonApplet.java
@@ -1,206 +1,206 @@
package sectionOne;
import java.awt.*;
import java... | true | true | public void init()
{
west = new Button ("West");
add (west);
west.addActionListener (this);
north = new Button ("North");
add (north);
north.addActionListener (this);
south = new Button ("South");
add (south);
south.addA... | public void init()
{
west = new Button ("West");
add (west);
west.addActionListener (this);
north = new Button ("North");
add (north);
north.addActionListener (this);
south = new Button ("South");
add (south);
south.addA... |
diff --git a/common/logisticspipes/config/Configs.java b/common/logisticspipes/config/Configs.java
index f350dc53..042188fd 100644
--- a/common/logisticspipes/config/Configs.java
+++ b/common/logisticspipes/config/Configs.java
@@ -1,275 +1,276 @@
package logisticspipes.config;
import java.io.File;
import logisti... | true | true | public static void load() {
File configFile = null;
if(MainProxy.isClient()) {
configFile = new File(net.minecraft.client.Minecraft.getMinecraftDir(), "config/LogisticsPipes.cfg");
} else if(MainProxy.isServer()) {
configFile = net.minecraft.server.MinecraftServer.getServer().getFile("config/LogisticsPipes... | public static void load() {
File configFile = null;
if(MainProxy.isClient()) {
configFile = new File(net.minecraft.client.Minecraft.getMinecraftDir(), "config/LogisticsPipes.cfg");
} else if(MainProxy.isServer()) {
configFile = net.minecraft.server.MinecraftServer.getServer().getFile("config/LogisticsPipes... |
diff --git a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseClassLoader.java b/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseClassLoader.java
index 0b068109..43a2039b 100644
--- a/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runt... | true | true | public Class findLocalClass(String className) throws ClassNotFoundException {
if (StatsManager.MONITOR_CLASSES) //Suport for performance analysis
ClassloaderStats.startLoadingClass(getClassloaderId(), className);
boolean found = true;
try {
AbstractBundle bundle = (AbstractBundle) hostdata.getBundle();
... | public Class findLocalClass(String className) throws ClassNotFoundException {
if (StatsManager.MONITOR_CLASSES) //Suport for performance analysis
ClassloaderStats.startLoadingClass(getClassloaderId(), className);
boolean found = true;
try {
AbstractBundle bundle = (AbstractBundle) hostdata.getBundle();
... |
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/git/LocalDiskRepositoryManager.java b/gerrit-server/src/main/java/com/google/gerrit/server/git/LocalDiskRepositoryManager.java
index 44cb9a71e..e23e84974 100644
--- a/gerrit-server/src/main/java/com/google/gerrit/server/git/LocalDiskRepositoryManager.jav... | true | true | public Repository createRepository(final Project.NameKey name)
throws RepositoryNotFoundException, RepositoryCaseMismatchException {
if (isUnreasonableName(name)) {
throw new RepositoryNotFoundException("Invalid name: " + name);
}
File dir = FileKey.resolve(gitDirOf(name), FS.DETECTED);
F... | public Repository createRepository(final Project.NameKey name)
throws RepositoryNotFoundException, RepositoryCaseMismatchException {
if (isUnreasonableName(name)) {
throw new RepositoryNotFoundException("Invalid name: " + name);
}
File dir = FileKey.resolve(gitDirOf(name), FS.DETECTED);
F... |
diff --git a/branches/prephase3/src/com/tinfoil/sms/ExchangeKey.java b/branches/prephase3/src/com/tinfoil/sms/ExchangeKey.java
index fd965efe..9d954e71 100644
--- a/branches/prephase3/src/com/tinfoil/sms/ExchangeKey.java
+++ b/branches/prephase3/src/com/tinfoil/sms/ExchangeKey.java
@@ -1,128 +1,128 @@
/**
* Copyrig... | true | true | public void run() {
/*
* TODO create trusted and untrusted list
*/
ArrayList<Number> num = null;
if(trusted == null && untrusted == null)
{
trusted = new ArrayList<Number>();
untrusted = new ArrayList<Number>();
for(int i = 0; i < tc.size(); i++)
{
num = tc.get(i).getNumber();
... | public void run() {
/*
* TODO create trusted and untrusted list
*/
ArrayList<Number> num = null;
if(trusted == null && untrusted == null)
{
trusted = new ArrayList<Number>();
untrusted = new ArrayList<Number>();
for(int i = 0; i < tc.size(); i++)
{
num = tc.get(i).getNumber();
... |
diff --git a/src/org/liberty/android/fantastischmemo/converter/SupermemoXMLImporter.java b/src/org/liberty/android/fantastischmemo/converter/SupermemoXMLImporter.java
index e8b013ce..2d3c93e8 100644
--- a/src/org/liberty/android/fantastischmemo/converter/SupermemoXMLImporter.java
+++ b/src/org/liberty/android/fantastis... | true | true | public void endElement(String namespaceURI, String localName, String qName) throws SAXException{
if(localName.equals("SuperMemoElement")){
card.setOrdinal(count);
// Calculate the next learning date from interval
ld.setNextLearnDate(DateUtils.addDays(ld.getLastLearnDate(), i... | public void endElement(String namespaceURI, String localName, String qName) throws SAXException{
if(localName.equals("SuperMemoElement")){
card.setOrdinal(count);
// If this is a new card and the learning data is like this:
// <LearningData>
// <Repetitions>0... |
diff --git a/opentripplanner-graph-builder/src/main/java/org/opentripplanner/graph_builder/impl/osm/OpenStreetMapGraphBuilderImpl.java b/opentripplanner-graph-builder/src/main/java/org/opentripplanner/graph_builder/impl/osm/OpenStreetMapGraphBuilderImpl.java
index 34311af9d..d8a068514 100644
--- a/opentripplanner-graph... | true | true | public void buildGraph(Graph graph) {
// Remove all simple islands
_nodes.keySet().retainAll(_nodesWithNeighbors);
long wayIndex = 0;
// figure out which nodes that are actually intersections
Set<Long> possibleIntersectionNodes = new HashSet<Long>();... | public void buildGraph(Graph graph) {
// Remove all simple islands
_nodes.keySet().retainAll(_nodesWithNeighbors);
long wayIndex = 0;
// figure out which nodes that are actually intersections
Set<Long> possibleIntersectionNodes = new HashSet<Long>();... |
diff --git a/fabric/fabric-core/src/main/scala/org/fusesource/fabric/service/ChildContainerProvider.java b/fabric/fabric-core/src/main/scala/org/fusesource/fabric/service/ChildContainerProvider.java
index 4d94d1eda..5a25b0671 100644
--- a/fabric/fabric-core/src/main/scala/org/fusesource/fabric/service/ChildContainerPro... | false | true | public Set<CreateContainerChildMetadata> create(final CreateContainerChildOptions options) throws Exception {
final Set<CreateContainerChildMetadata> result = new LinkedHashSet<CreateContainerChildMetadata>();
String parentName = options.getParent();
final Container parent = service.getConta... | public Set<CreateContainerChildMetadata> create(final CreateContainerChildOptions options) throws Exception {
final Set<CreateContainerChildMetadata> result = new LinkedHashSet<CreateContainerChildMetadata>();
String parentName = options.getParent();
final Container parent = service.getConta... |
diff --git a/src/uk/org/ponder/rsf/renderer/html/BasicHTMLRenderSystem.java b/src/uk/org/ponder/rsf/renderer/html/BasicHTMLRenderSystem.java
index c94001a..ab21b5c 100644
--- a/src/uk/org/ponder/rsf/renderer/html/BasicHTMLRenderSystem.java
+++ b/src/uk/org/ponder/rsf/renderer/html/BasicHTMLRenderSystem.java
@@ -1,183 +... | false | true | public int renderComponent(RenderSystemContext rsc, UIComponent torendero, XMLLump lump) {
int lumpindex = lump.lumpindex;
XMLLump[] lumps = lump.parent.lumps;
int nextpos = -1;
XMLLump outerendopen = lump.open_end;
XMLLump outerclose = lump.close_tag;
nextpos = outerclose.lumpindex + 1;
... | public int renderComponent(RenderSystemContext rsc, UIComponent torendero, XMLLump lump) {
int lumpindex = lump.lumpindex;
XMLLump[] lumps = lump.parent.lumps;
int nextpos = -1;
XMLLump outerendopen = lump.open_end;
XMLLump outerclose = lump.close_tag;
nextpos = outerclose.lumpindex + 1;
... |
diff --git a/src/com/nloko/android/syncmypix/SyncMyPixProvider.java b/src/com/nloko/android/syncmypix/SyncMyPixProvider.java
index 0a9d425..4ad37c4 100644
--- a/src/com/nloko/android/syncmypix/SyncMyPixProvider.java
+++ b/src/com/nloko/android/syncmypix/SyncMyPixProvider.java
@@ -1,461 +1,465 @@
//
// SyncMyPixPro... | false | true | public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
Log.w(TAG, "Upgrading database from version " + oldVersion + " to "
+ newVersion + ", which will destroy all old data");
if (oldVersion >= 2) {
db.execSQL("CREATE TABLE results_ne... | public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
Log.w(TAG, "Upgrading database from version " + oldVersion + " to "
+ newVersion + ", which will destroy all old data");
if (oldVersion >= 2) {
db.execSQL("CREATE TABLE results_ne... |
diff --git a/src/test/hdfs/org/apache/hadoop/hdfs/TestCrcCorruption.java b/src/test/hdfs/org/apache/hadoop/hdfs/TestCrcCorruption.java
index 9d990df648..30d4ccf473 100644
--- a/src/test/hdfs/org/apache/hadoop/hdfs/TestCrcCorruption.java
+++ b/src/test/hdfs/org/apache/hadoop/hdfs/TestCrcCorruption.java
@@ -1,225 +1,225 ... | false | true | private void thistest(Configuration conf, DFSTestUtil util) throws Exception {
MiniDFSCluster cluster = null;
int numDataNodes = 2;
short replFactor = 2;
Random random = new Random();
try {
cluster = new MiniDFSCluster(conf, numDataNodes, true, null);
cluster.waitActive();
FileS... | private void thistest(Configuration conf, DFSTestUtil util) throws Exception {
MiniDFSCluster cluster = null;
int numDataNodes = 2;
short replFactor = 2;
Random random = new Random();
try {
cluster = new MiniDFSCluster(conf, numDataNodes, true, null);
cluster.waitActive();
FileS... |
diff --git a/jwamp-core/src/main/java/com/github/ghetolay/jwamp/utils/TimeoutHashMap.java b/jwamp-core/src/main/java/com/github/ghetolay/jwamp/utils/TimeoutHashMap.java
index 8d74997..a7a7db2 100644
--- a/jwamp-core/src/main/java/com/github/ghetolay/jwamp/utils/TimeoutHashMap.java
+++ b/jwamp-core/src/main/java/com/git... | false | true | public synchronized void run() {
try{
while(!isInterrupted()){
if(toRemove.isEmpty())
wait();
//if minimalWait is >0 it means it has been set by add(key,timeout)
if(minimalWait < 0){
long currentTime = System.currentTimeMillis();
minimalWait = Long.MAX_VALUE;
sleepUntil ... | public synchronized void run() {
try{
while(!isInterrupted()){
if(toRemove.isEmpty()){
minimalWait = -1;
wait();
}
//if minimalWait is >0 it means it has been set by add(key,timeout)
if(minimalWait < 0){
long currentTime = System.currentTimeMillis();
minimalWait = L... |
diff --git a/common/src/org/bedework/timezones/common/ZipCachedData.java b/common/src/org/bedework/timezones/common/ZipCachedData.java
index 95cfc8c..0ae8489 100644
--- a/common/src/org/bedework/timezones/common/ZipCachedData.java
+++ b/common/src/org/bedework/timezones/common/ZipCachedData.java
@@ -1,330 +1,335 @@
/*... | true | true | private synchronized void loadData() throws TzException {
try {
long smillis = System.currentTimeMillis();
/* ======================== First get the data file =================== */
File f = getdata();
/* ============================ open a zip file ======================= */
ZipFi... | private synchronized void loadData() throws TzException {
try {
long smillis = System.currentTimeMillis();
/* ======================== First get the data file =================== */
File f = getdata();
/* ============================ open a zip file ======================= */
ZipFi... |
diff --git a/src/me/reddy360/theholyflint/listeners/WorldListener.java b/src/me/reddy360/theholyflint/listeners/WorldListener.java
index e836815..3a83d44 100644
--- a/src/me/reddy360/theholyflint/listeners/WorldListener.java
+++ b/src/me/reddy360/theholyflint/listeners/WorldListener.java
@@ -1,183 +1,180 @@
package me... | true | true | private void doSignEvent(String line, Player player, Location signLocation) {
if(line.startsWith("Launch:")){
if(line.split(":").length == 1){
return;
}
player.getWorld().createExplosion(player.getLocation(), 0F);
Location location = player.getLocation().clone();
location.setPitch(-90);
Vector ... | private void doSignEvent(String line, Player player, Location signLocation) {
if(line.startsWith("Launch:")){
if(line.split(":").length == 1){
return;
}
player.getWorld().createExplosion(player.getLocation(), 0F);
Location location = player.getLocation().clone();
location.setPitch(-90);
Vector ... |
diff --git a/src/evopaint/gui/rulesetmanager/JConditionTargetPanel.java b/src/evopaint/gui/rulesetmanager/JConditionTargetPanel.java
index 6fc9576..595b4d6 100644
--- a/src/evopaint/gui/rulesetmanager/JConditionTargetPanel.java
+++ b/src/evopaint/gui/rulesetmanager/JConditionTargetPanel.java
@@ -1,190 +1,190 @@
/*
*... | true | true | public JConditionTargetPanel(ITarget target) {
setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.insets = new Insets(5, 5, 5, 5);
final JPanel rangePanel = new JPanel();
rangePanel.setLayout(new BorderLayout());
JPanel lowAlignmentP... | public JConditionTargetPanel(ITarget target) {
setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.insets = new Insets(5, 5, 5, 5);
final JPanel rangePanel = new JPanel();
rangePanel.setLayout(new BorderLayout());
JPanel lowAlignmentP... |
diff --git a/weasis-dicom/weasis-dicom-explorer/src/main/java/org/weasis/dicom/explorer/DicomModel.java b/weasis-dicom/weasis-dicom-explorer/src/main/java/org/weasis/dicom/explorer/DicomModel.java
index 8445e797..67b0d555 100644
--- a/weasis-dicom/weasis-dicom-explorer/src/main/java/org/weasis/dicom/explorer/DicomModel... | false | true | public void get(String[] argv) throws IOException {
final String[] usage = { "Load DICOM files remotely or locally", "Usage: dicom:get [Options] SOURCE", //$NON-NLS-1$ //$NON-NLS-2$
" -l --local Open DICOMs from local disk", //$NON-NLS-1$
" -r --remote Open DICOMs from an UR... | public void get(String[] argv) throws IOException {
final String[] usage = { "Load DICOM files remotely or locally", "Usage: dicom:get [Options] SOURCE", //$NON-NLS-1$ //$NON-NLS-2$
" -l --local Open DICOMs from local disk", //$NON-NLS-1$
" -r --remote Open DICOMs from an UR... |
diff --git a/clc/modules/www/test-gwt/src/com/eucalyptus/webui/server/EucaServiceWrapper.java b/clc/modules/www/test-gwt/src/com/eucalyptus/webui/server/EucaServiceWrapper.java
index c94d939..b76f64a 100644
--- a/clc/modules/www/test-gwt/src/com/eucalyptus/webui/server/EucaServiceWrapper.java
+++ b/clc/modules/www/test... | false | true | public List<IPServiceInfo> getIPServices(int accountID, int userID) throws EucalyptusServiceException {
List<Integer> ids = new ArrayList<Integer>();
if (userID > 0) {
ids.add(userID);
} else {
StringBuilder sb = new StringBuilder();
sb.append("SELECT ").append(DBTableColName.USER.ID).ap... | public List<IPServiceInfo> getIPServices(int accountID, int userID) throws EucalyptusServiceException {
List<Integer> ids = new ArrayList<Integer>();
if (userID > 0) {
ids.add(userID);
} else {
StringBuilder sb = new StringBuilder();
sb.append("SELECT ").append(DBTableColName.USER.ID).ap... |
diff --git a/src/com/android/gallery3d/filtershow/imageshow/ImageDraw.java b/src/com/android/gallery3d/filtershow/imageshow/ImageDraw.java
index 6c3417ad3..8fcc028af 100644
--- a/src/com/android/gallery3d/filtershow/imageshow/ImageDraw.java
+++ b/src/com/android/gallery3d/filtershow/imageshow/ImageDraw.java
@@ -1,150 +... | false | true | public boolean onTouchEvent(MotionEvent event) {
boolean ret = super.onTouchEvent(event);
if (event.getPointerCount() > 1) {
if (mFRep.getCurrentDrawing() != null) {
mFRep.clearCurrentSection();
mEditorDraw.commitLocalRepresentation();
}
... | public boolean onTouchEvent(MotionEvent event) {
if (event.getPointerCount() > 1) {
boolean ret = super.onTouchEvent(event);
if (mFRep.getCurrentDrawing() != null) {
mFRep.clearCurrentSection();
mEditorDraw.commitLocalRepresentation();
}
... |
diff --git a/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/DefaultCommandModule.java b/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/DefaultCommandModule.java
index e0ef9881f..a04ba159c 100644
--- a/gerrit-sshd/src/main/java/com/google/gerrit/sshd/commands/DefaultCommandModule.java
+++ b/gerrit-... | true | true | protected void configure() {
final CommandName git = Commands.named("git");
final CommandName gerrit = Commands.named("gerrit");
// The following commands can be ran on a server in either Master or Slave
// mode. If a command should only be used on a server in one mode, but not
// both, it should... | protected void configure() {
final CommandName git = Commands.named("git");
final CommandName gerrit = Commands.named("gerrit");
// The following commands can be ran on a server in either Master or Slave
// mode. If a command should only be used on a server in one mode, but not
// both, it should... |
diff --git a/src/freemail/utils/PropsFile.java b/src/freemail/utils/PropsFile.java
index 0e756ad..240875e 100644
--- a/src/freemail/utils/PropsFile.java
+++ b/src/freemail/utils/PropsFile.java
@@ -1,227 +1,228 @@
/*
* PropsFile.java
* This file is part of Freemail
* Copyright (C) 2006,2008 Dave Baker
* Copyrig... | true | true | private synchronized void write() throws IOException {
if(!file.getParentFile().exists()) {
if(!file.getParentFile().mkdirs()) {
Logger.error(this, "Couldn't create parent directory of " + file);
throw new IOException("Couldn't create parent directory of " + file);
}
}
PrintWriter pw = new PrintWr... | private synchronized void write() throws IOException {
File parentDir = file.getParentFile();
if(parentDir != null && !parentDir.exists()) {
if(!parentDir.mkdirs()) {
Logger.error(this, "Couldn't create parent directory of " + file);
throw new IOException("Couldn't create parent directory of " + file);
... |
diff --git a/src/main/java/org/apache/commons/math3/optimization/linear/SimplexSolver.java b/src/main/java/org/apache/commons/math3/optimization/linear/SimplexSolver.java
index bb7960b19..9446882c2 100644
--- a/src/main/java/org/apache/commons/math3/optimization/linear/SimplexSolver.java
+++ b/src/main/java/org/apache/... | false | true | private Integer getPivotRow(SimplexTableau tableau, final int col) {
// create a list of all the rows that tie for the lowest score in the minimum ratio test
List<Integer> minRatioPositions = new ArrayList<Integer>();
double minRatio = Double.MAX_VALUE;
for (int i = tableau.getNumObj... | private Integer getPivotRow(SimplexTableau tableau, final int col) {
// create a list of all the rows that tie for the lowest score in the minimum ratio test
List<Integer> minRatioPositions = new ArrayList<Integer>();
double minRatio = Double.MAX_VALUE;
for (int i = tableau.getNumObj... |
diff --git a/src/model/ConcreteProductContainerManager.java b/src/model/ConcreteProductContainerManager.java
index d165e6a..5cc6c35 100644
--- a/src/model/ConcreteProductContainerManager.java
+++ b/src/model/ConcreteProductContainerManager.java
@@ -1,171 +1,171 @@
package model;
import java.io.Serializable;
import... | true | true | public void unmanage(ProductContainer pc) {
if (pc instanceof StorageUnit) {
StorageUnit storageUnit = (StorageUnit) pc;
rootStorageUnits.remove(storageUnit);
nameToStorageUnit.remove(storageUnit.getName());
} else {
ProductGroup pg = (ProductGroup) pc;
for (StorageUnit su : rootStorageUnits) {
... | public void unmanage(ProductContainer pc) {
if (pc instanceof StorageUnit) {
StorageUnit storageUnit = (StorageUnit) pc;
rootStorageUnits.remove(storageUnit);
nameToStorageUnit.remove(storageUnit.getName());
} else {
ProductGroup pg = (ProductGroup) pc;
for (StorageUnit su : rootStorageUnits) {
... |
diff --git a/src/main/java/com/authdb/util/Config.java b/src/main/java/com/authdb/util/Config.java
index 695ce39..ccfd62e 100644
--- a/src/main/java/com/authdb/util/Config.java
+++ b/src/main/java/com/authdb/util/Config.java
@@ -1,352 +1,352 @@
/**
(C) Copyright 2011 CraftFire <dev@craftfire.com>
Contex <contex@craf... | false | true | public Config(String config, String directory, String filename) {
template = new Configuration(new File(directory, filename));
template.load();
if (config.equalsIgnoreCase("basic")) {
language = getConfigString("plugin.language", "English");
... | public Config(String config, String directory, String filename) {
template = new Configuration(new File(directory, filename));
template.load();
if (config.equalsIgnoreCase("basic")) {
language = getConfigString("plugin.language", "English");
... |
diff --git a/src/Util/Analyzer.java b/src/Util/Analyzer.java
index 1b17cef..fcf30eb 100644
--- a/src/Util/Analyzer.java
+++ b/src/Util/Analyzer.java
@@ -1,673 +1,675 @@
/*----------------------------------------------------------------------*/
/*
Module : Analyzer.java
Package :... | true | true | public void printGeneralAnalysis(PrintStream outp)
{
outp.println("General analysis: "+musicData.getComposer()+", "+musicData.getFullTitle());
outp.println();
outp.println("Number of voices: "+numVoices);
outp.println("Number of sections: "+renderedSections.length);
outp.println();
vad=new ... | public void printGeneralAnalysis(PrintStream outp)
{
outp.println("General analysis: "+musicData.getComposer()+", "+musicData.getFullTitle());
outp.println();
outp.println("Number of voices: "+numVoices);
outp.println("Number of sections: "+renderedSections.length);
outp.println();
vad=new ... |
diff --git a/eu/icecraft/iceban/commands/BanCommands.java b/eu/icecraft/iceban/commands/BanCommands.java
index 8dc789a..a8c3c56 100644
--- a/eu/icecraft/iceban/commands/BanCommands.java
+++ b/eu/icecraft/iceban/commands/BanCommands.java
@@ -1,130 +1,130 @@
package eu.icecraft.iceban.commands;
import java.util.regex... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String cmdLbl, String[] args) {
if(!sender.hasPermission("iceban." + cmdLbl)) return false;
if(cmdLbl.equals("ban") || cmdLbl.equals("sbh")) {
boolean forceBan = false;
boolean permanent = false;
boolean silent = false;
String nick = "";
... | public boolean onCommand(CommandSender sender, Command cmd, String cmdLbl, String[] args) {
if(!sender.hasPermission("iceban." + cmdLbl)) return false;
if(cmdLbl.equals("ban") || cmdLbl.equals("sbh")) {
boolean forceBan = false;
boolean permanent = false;
boolean silent = false;
String nick = "";
... |
diff --git a/src/com/warrows/plugins/TreeSpirit/PlayerMoveListener.java b/src/com/warrows/plugins/TreeSpirit/PlayerMoveListener.java
index e760882..b72d242 100644
--- a/src/com/warrows/plugins/TreeSpirit/PlayerMoveListener.java
+++ b/src/com/warrows/plugins/TreeSpirit/PlayerMoveListener.java
@@ -1,25 +1,27 @@
package ... | true | true | public void onPlayerMoveEvent(PlayerMoveEvent event)
{
Player player = event.getPlayer();
GreatTree tree = TreeSpiritPlugin.getGreatTree(player);
if (tree.isAtProximity(event.getTo().getBlock()))
{
} else
{
event.setCancelled(true);
}
}
| public void onPlayerMoveEvent(PlayerMoveEvent event)
{
Player player = event.getPlayer();
GreatTree tree = TreeSpiritPlugin.getGreatTree(player);
if (tree == null)
return;
if (tree.isAtProximity(event.getTo().getBlock()))
{
} else
{
event.setCancelled(true);
}
}
|
diff --git a/src/testopia/API/Lookup.java b/src/testopia/API/Lookup.java
index 283ad6b..29a2b1b 100644
--- a/src/testopia/API/Lookup.java
+++ b/src/testopia/API/Lookup.java
@@ -1,156 +1,156 @@
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use... | true | true | public static void main(String args[]) throws Exception
{
//declare variables
url = new URL("https://testopia-01.lab.bos.redhat.com/bugzilla/tr_xmlrpc.cgi");
//get username and password
System.out.println("Welcome to Testopia Lookup tool 1.0");
StringBuilder command = new StringBuilder();
StringBuilde... | public static void main(String args[]) throws Exception
{
//declare variables
url = new URL("https://testopia-01.lab.bos.redhat.com/bugzilla/tr_xmlrpc.cgi");
//get username and password
System.out.println("Welcome to Testopia Lookup tool 1.0");
StringBuilder command = new StringBuilder();
StringBuilde... |
diff --git a/src/main/java/org/apache/hadoop/mapred/MesosScheduler.java b/src/main/java/org/apache/hadoop/mapred/MesosScheduler.java
index e5894e9..6b3583a 100644
--- a/src/main/java/org/apache/hadoop/mapred/MesosScheduler.java
+++ b/src/main/java/org/apache/hadoop/mapred/MesosScheduler.java
@@ -1,996 +1,996 @@
packag... | true | true | public void resourceOffers(SchedulerDriver schedulerDriver,
List<Offer> offers) {
// Before synchronizing, we pull all needed information from the JobTracker.
final HttpHost jobTrackerAddress =
new HttpHost(jobTracker.getHostname(), jobTracker.getTrackerPort());
... | public void resourceOffers(SchedulerDriver schedulerDriver,
List<Offer> offers) {
// Before synchronizing, we pull all needed information from the JobTracker.
final HttpHost jobTrackerAddress =
new HttpHost(jobTracker.getHostname(), jobTracker.getTrackerPort());
... |
diff --git a/lucene/spatial/src/test/org/apache/lucene/spatial/prefix/TestRecursivePrefixTreeStrategy.java b/lucene/spatial/src/test/org/apache/lucene/spatial/prefix/TestRecursivePrefixTreeStrategy.java
index d5c575f28..995fb96a8 100644
--- a/lucene/spatial/src/test/org/apache/lucene/spatial/prefix/TestRecursivePrefixT... | true | true | public void geohashRecursiveRandom() throws IOException {
init(12);
//1. Iterate test with the cluster at some worldly point of interest
Point[] clusterCenters = new Point[]{ctx.makePoint(-180,0), ctx.makePoint(0,90), ctx.makePoint(0,-90)};
for (Point clusterCenter : clusterCenters) {
//2. Iter... | public void geohashRecursiveRandom() throws IOException {
init(12);
//1. Iterate test with the cluster at some worldly point of interest
Point[] clusterCenters = new Point[]{ctx.makePoint(-180,0), ctx.makePoint(0,90), ctx.makePoint(0,-90)};
for (Point clusterCenter : clusterCenters) {
//2. Iter... |
diff --git a/bindings/java/src/org/hyperic/sigar/test/TestTcpStat.java b/bindings/java/src/org/hyperic/sigar/test/TestTcpStat.java
index 29e52ff0..3a20d6e7 100644
--- a/bindings/java/src/org/hyperic/sigar/test/TestTcpStat.java
+++ b/bindings/java/src/org/hyperic/sigar/test/TestTcpStat.java
@@ -1,52 +1,54 @@
/*
* Cop... | false | true | public void testCreate() throws Exception {
Sigar sigar = getSigar();
TcpStat tcp;
try {
tcp = sigar.getTcpStat();
} catch (SigarNotImplementedException e) {
return;
}
traceln("");
assertGtZeroTrace("MaxConn", tcp.getMaxConn()... | public void testCreate() throws Exception {
Sigar sigar = getSigar();
TcpStat tcp;
try {
tcp = sigar.getTcpStat();
} catch (SigarNotImplementedException e) {
return;
}
traceln("");
//assertGtZeroTrace("MaxConn", tcp.getMaxConn... |
diff --git a/src/com/modcrafting/diablodrops/listeners/TomeListener.java b/src/com/modcrafting/diablodrops/listeners/TomeListener.java
index c148d84..85c737b 100644
--- a/src/com/modcrafting/diablodrops/listeners/TomeListener.java
+++ b/src/com/modcrafting/diablodrops/listeners/TomeListener.java
@@ -1,145 +1,147 @@
pa... | true | true | public void onRightClick(final PlayerInteractEvent e)
{
if ((e.getAction().equals(Action.RIGHT_CLICK_AIR) || e.getAction()
.equals(Action.RIGHT_CLICK_BLOCK))
&& e.getPlayer().getItemInHand().getType()
.equals(Material.WRITTEN_BOOK))
{
... | public void onRightClick(final PlayerInteractEvent e)
{
if ((e.getAction().equals(Action.RIGHT_CLICK_AIR) || e.getAction()
.equals(Action.RIGHT_CLICK_BLOCK))
&& e.getPlayer().getItemInHand().getType()
.equals(Material.WRITTEN_BOOK))
{
... |
diff --git a/web/src/org/openmrs/module/sdmxhdintegration/web/controller/MessageUploadFormController.java b/web/src/org/openmrs/module/sdmxhdintegration/web/controller/MessageUploadFormController.java
index 3d6088f..88a8523 100644
--- a/web/src/org/openmrs/module/sdmxhdintegration/web/controller/MessageUploadFormContro... | true | true | public String handleSubmission(HttpServletRequest request,
@ModelAttribute("sdmxhdMessage") SDMXHDMessage sdmxhdMessage,
BindingResult result,
SessionStatus status) throws IllegalStateException {
DefaultMul... | public String handleSubmission(HttpServletRequest request,
@ModelAttribute("sdmxhdMessage") SDMXHDMessage sdmxhdMessage,
BindingResult result,
SessionStatus status) throws IllegalStateException {
DefaultMul... |
diff --git a/databus-core/src/main/java/com/inmobi/databus/utils/CalendarHelper.java b/databus-core/src/main/java/com/inmobi/databus/utils/CalendarHelper.java
index d6afefdd..2ab4a042 100644
--- a/databus-core/src/main/java/com/inmobi/databus/utils/CalendarHelper.java
+++ b/databus-core/src/main/java/com/inmobi/databus... | false | true | private static String getDayTimeAsString(Calendar calendar,
boolean includeHour,
boolean includeMinute) {
String minute = null;
String hour = null;
String fileNameInnYYMMDDHRMNFormat = null;
String year = Integer.toS... | private static String getDayTimeAsString(Calendar calendar,
boolean includeHour,
boolean includeMinute) {
String minute = null;
String hour = null;
String fileNameInnYYMMDDHRMNFormat = null;
String year = Integer.toS... |
diff --git a/nexus/nexus-test-harness/nexus-simple-memory-realm/src/test/java/org/sonatype/jsecurity/realms/simple/SimpleRealmTest.java b/nexus/nexus-test-harness/nexus-simple-memory-realm/src/test/java/org/sonatype/jsecurity/realms/simple/SimpleRealmTest.java
index 143ad31f6..75789b7db 100644
--- a/nexus/nexus-test-ha... | true | true | private void copyTestConfigToPlace()
throws FileNotFoundException,
IOException
{
InputStream nexusConf = null;
InputStream securityConf = null;
OutputStream nexusOut = null;
OutputStream securityOut = null;
try
{
... | private void copyTestConfigToPlace()
throws FileNotFoundException,
IOException
{
InputStream nexusConf = null;
InputStream securityConf = null;
OutputStream nexusOut = null;
OutputStream securityOut = null;
try
{
... |
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java
index fe328612d..5c5ed4061 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java
+++ b/solr/solrj/src/java/org/apache/solr/c... | true | true | public NamedList<Object> request(final SolrRequest request,
final ResponseParser processor) throws SolrServerException, IOException {
HttpRequestBase method = null;
InputStream is = null;
SolrParams params = request.getParams();
Collection<ContentStream> streams = requestWriter.getContentStreams... | public NamedList<Object> request(final SolrRequest request,
final ResponseParser processor) throws SolrServerException, IOException {
HttpRequestBase method = null;
InputStream is = null;
SolrParams params = request.getParams();
Collection<ContentStream> streams = requestWriter.getContentStreams... |
diff --git a/VAGGS/src/com/vaggs/Utils/DebuggingDBObjects.java b/VAGGS/src/com/vaggs/Utils/DebuggingDBObjects.java
index 3d4c376..3f855d1 100644
--- a/VAGGS/src/com/vaggs/Utils/DebuggingDBObjects.java
+++ b/VAGGS/src/com/vaggs/Utils/DebuggingDBObjects.java
@@ -1,154 +1,154 @@
package com.vaggs.Utils;
import static ... | false | true | public static void createDBObjects () {
/* Transponder Code = 1 */
Route debugRoute = Route.ParseRouteByTaxiways((new Waypoint(new LatLng(41.7258, -71.4368), false, false)), "");
debugRoute.addWaypoints(Arrays.asList(
new Waypoint(new LatLng(41.7258, -71.4368), false, false),
new Waypoint(new LatLng(41.7... | public static void createDBObjects () {
/* Transponder Code = 1 */
Route debugRoute = Route.ParseRouteByTaxiways((new Waypoint(new LatLng(41.7258, -71.4368), false, false)), "");
debugRoute.addWaypoints(Arrays.asList(
new Waypoint(new LatLng(41.7258, -71.4368), false, false),
new Waypoint(new LatLng(41.7... |
diff --git a/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java b/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
index d876abaa..5b6a5eb1 100644
--- a/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
+++ b/site-manage-tool/tool/src/java/org/saka... | true | true | private String buildContextForTemplate (int index, VelocityPortlet portlet,
Context context,
RunData data,
SessionState state)
{
String realmId = "";
String site_type = "";
String sortedBy = "";
String sortedAsc = "";
ParameterParser params = data.getParameters ();
context.put("tlang",rb);
c... | private String buildContextForTemplate (int index, VelocityPortlet portlet,
Context context,
RunData data,
SessionState state)
{
String realmId = "";
String site_type = "";
String sortedBy = "";
String sortedAsc = "";
ParameterParser params = data.getParameters ();
context.put("tlang",rb);
c... |
diff --git a/org.eclipse.stem.ui.diseasemodels/src/org/eclipse/stem/diseasemodels/standard/presentation/DiseasemodelsEditorAdvisor.java b/org.eclipse.stem.ui.diseasemodels/src/org/eclipse/stem/diseasemodels/standard/presentation/DiseasemodelsEditorAdvisor.java
index c6ef5e22..8e1744e8 100644
--- a/org.eclipse.stem.ui.d... | false | true | public static String[] openFilePathDialog(Shell shell, int style, String[] fileExtensionFilters, boolean includeGroupFilter, boolean includeAllFilter, boolean addExtension) {
FileDialog fileDialog = new FileDialog(shell, style);
if (fileExtensionFilters == null) {
fileExtensionFilters = FILE_EXTENSION_FILTERS;
... | public static String[] openFilePathDialog(Shell shell, int style, String[] fileExtensionFilters, boolean includeGroupFilter, boolean includeAllFilter, boolean addExtension) {
FileDialog fileDialog = new FileDialog(shell, style);
if (fileExtensionFilters == null) {
fileExtensionFilters = FILE_EXTENSION_FILTERS;
... |
diff --git a/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactResolver.java b/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactResolver.java
index c1eade0..b0ed149 100644
--- a/maven-plugin-testing-harness/src/main/java/org/apache/m... | true | true | public void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository )
throws ArtifactResolutionException, ArtifactNotFoundException
{
if ( !this.throwArtifactNotFoundException && !this.throwArtifactResolutionException )
{
try
{
... | public void resolve( Artifact artifact, List remoteRepositories, ArtifactRepository localRepository )
throws ArtifactResolutionException, ArtifactNotFoundException
{
if ( !this.throwArtifactNotFoundException && !this.throwArtifactResolutionException )
{
try
{
... |
diff --git a/server-integ/src/test/java/org/apache/directory/server/operations/modify/ModifyReplaceIT.java b/server-integ/src/test/java/org/apache/directory/server/operations/modify/ModifyReplaceIT.java
index 8c3f9763d0..d43c158ede 100644
--- a/server-integ/src/test/java/org/apache/directory/server/operations/modify/Mo... | false | true | public LdapService newInstance() throws Exception
{
DirectoryService service = new DefaultDirectoryService();
IntegrationUtils.doDelete( service.getWorkingDirectory() );
service.getChangeLog().setEnabled( true );
service.setShutdownHookEnabled( false );
... | public LdapService newInstance() throws Exception
{
DirectoryService service = new DefaultDirectoryService();
IntegrationUtils.doDelete( service.getWorkingDirectory() );
service.getChangeLog().setEnabled( true );
service.setShutdownHookEnabled( false );
... |
diff --git a/python-checks/src/test/java/org/sonar/python/checks/CheckListTest.java b/python-checks/src/test/java/org/sonar/python/checks/CheckListTest.java
index 85b5bfe9..82d744ac 100644
--- a/python-checks/src/test/java/org/sonar/python/checks/CheckListTest.java
+++ b/python-checks/src/test/java/org/sonar/python/che... | true | true | public void test() {
List<Class> checks = CheckList.getChecks();
for (Class cls : checks) {
String testName = '/' + cls.getName().replace('.', '/') + "Test.class";
assertThat(getClass().getResource(testName))
.overridingErrorMessage("No test for " + cls.getSimpleName())
.isNot... | public void test() {
List<Class> checks = CheckList.getChecks();
for (Class cls : checks) {
String testName = '/' + cls.getName().replace('.', '/') + "Test.class";
assertThat(getClass().getResource(testName))
.overridingErrorMessage("No test for " + cls.getSimpleName())
.isNot... |
diff --git a/asta4d-sample/src/main/java/com/astamuse/asta4d/sample/snippet/SimpleSnippet.java b/asta4d-sample/src/main/java/com/astamuse/asta4d/sample/snippet/SimpleSnippet.java
index ae760013..f07c6188 100644
--- a/asta4d-sample/src/main/java/com/astamuse/asta4d/sample/snippet/SimpleSnippet.java
+++ b/asta4d-sample/s... | true | true | public Renderer manipulateAttrValues() {
Renderer render = new GoThroughRenderer();
render.add("input#yes", "checked", "checked");
render.add("button#delete", "disabled", null);
render.add("li#plus", "+class", "red");
render.add("li#minus", "-class", "bold");
return r... | public Renderer manipulateAttrValues() {
Renderer render = new GoThroughRenderer();
render.add("input#yes", "checked", "checked");
render.add("button#delete", "disabled", (Object) null);
render.add("li#plus", "+class", "red");
render.add("li#minus", "-class", "bold");
... |
diff --git a/src/org/geometerplus/zlibrary/core/network/ZLNetworkManager.java b/src/org/geometerplus/zlibrary/core/network/ZLNetworkManager.java
index d7ee5b0..8e60789 100644
--- a/src/org/geometerplus/zlibrary/core/network/ZLNetworkManager.java
+++ b/src/org/geometerplus/zlibrary/core/network/ZLNetworkManager.java
@@ ... | false | true | public String perform(ZLNetworkRequest request) {
boolean sucess = false;
try {
final String error = doBeforeRequest(request);
if (error != null) {
return error;
}
HttpURLConnection httpConnection = null;
int response = -1;
for (int retryCounter = 0; retryCounter < 3 && response == -1; ++retr... | public String perform(ZLNetworkRequest request) {
boolean success = false;
try {
final String error = doBeforeRequest(request);
if (error != null) {
return error;
}
HttpURLConnection httpConnection = null;
int response = -1;
for (int retryCounter = 0; retryCounter < 3 && response == -1; ++ret... |
diff --git a/src/com/mrockey28/bukkit/ItemRepair/AutoRepairSupport.java b/src/com/mrockey28/bukkit/ItemRepair/AutoRepairSupport.java
index a42084e..0ebc922 100644
--- a/src/com/mrockey28/bukkit/ItemRepair/AutoRepairSupport.java
+++ b/src/com/mrockey28/bukkit/ItemRepair/AutoRepairSupport.java
@@ -1,505 +1,503 @@
packag... | false | true | public void doRepairOperation(ItemStack tool, int slot, AutoRepairPlugin.operationType op)
{
double balance = AutoRepairPlugin.econ.getBalance(player.getName());
if (!AutoRepairPlugin.isOpAllowed(getPlayer(), op)) {
return;
}
if (op == operationType.WARN && !AutoRepairPlugin.isRepairCosts() && !AutoRepairP... | public void doRepairOperation(ItemStack tool, int slot, AutoRepairPlugin.operationType op)
{
double balance = AutoRepairPlugin.econ.getBalance(player.getName());
if (!AutoRepairPlugin.isOpAllowed(getPlayer(), op)) {
return;
}
if (op == operationType.WARN && !AutoRepairPlugin.isRepairCosts() && !AutoRepairP... |
diff --git a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/editors/InvisibleContextElementsPart.java b/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/editors/InvisibleContextElementsPart.java
index 1f1ee4bce..82be6b204 100644
--- a/org.eclipse.mylyn.context.ui/src/org/ec... | false | true | public Control createControl(FormToolkit toolkit, Composite composite) {
invisibleSection = toolkit.createSection(composite, ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE);
invisibleSection.setText(NLS.bind(Messages.InvisibleContextElementsPart_Invisible_elements, "0")); //$NON-NLS-1$
invisibleSect... | public Control createControl(FormToolkit toolkit, Composite composite) {
invisibleSection = toolkit.createSection(composite, ExpandableComposite.TITLE_BAR | ExpandableComposite.TWISTIE);
invisibleSection.setText(NLS.bind(Messages.InvisibleContextElementsPart_Invisible_elements, "0")); //$NON-NLS-1$
invisibleSect... |
diff --git a/src/mmb/foss/aueb/icong/DrawableAreaView.java b/src/mmb/foss/aueb/icong/DrawableAreaView.java
index 2e75b22..26fd822 100644
--- a/src/mmb/foss/aueb/icong/DrawableAreaView.java
+++ b/src/mmb/foss/aueb/icong/DrawableAreaView.java
@@ -1,306 +1,308 @@
package mmb.foss.aueb.icong;
import java.io.InputStream... | false | true | public boolean onTouchEvent(MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
if (showTrash && onTrash(event.getX(), event.getY())) {
// if trash icon is visible and clicked delete the possibleTrash
// box
deleteBox(possibleTrash);
possibleTrash = null;
}
box ... | public boolean onTouchEvent(MotionEvent event) {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
if (showTrash && onTrash(event.getX(), event.getY())) {
// if trash icon is visible and clicked delete the possibleTrash
// box
deleteBox(possibleTrash);
possibleTrash = null;
}
box ... |
diff --git a/src/com/cyanogenmod/filemanager/ui/widgets/NavigationView.java b/src/com/cyanogenmod/filemanager/ui/widgets/NavigationView.java
index f17c645..61aa09e 100644
--- a/src/com/cyanogenmod/filemanager/ui/widgets/NavigationView.java
+++ b/src/com/cyanogenmod/filemanager/ui/widgets/NavigationView.java
@@ -1,1386 ... | true | true | private void changeCurrentDir(
final String newDir, final boolean addToHistory,
final boolean reload, final boolean useCurrent,
final SearchInfoParcelable searchInfo, final FileSystemObject scrollTo) {
// Check navigation security (don't allow to go outside the ChRooted ... | private void changeCurrentDir(
final String newDir, final boolean addToHistory,
final boolean reload, final boolean useCurrent,
final SearchInfoParcelable searchInfo, final FileSystemObject scrollTo) {
// Check navigation security (don't allow to go outside the ChRooted ... |
diff --git a/src/jrds/factories/ProbeFactory.java b/src/jrds/factories/ProbeFactory.java
index c3dcc369..539e24f2 100644
--- a/src/jrds/factories/ProbeFactory.java
+++ b/src/jrds/factories/ProbeFactory.java
@@ -1,180 +1,185 @@
/*##########################################################################
_##
_## $I... | false | true | public Probe makeProbe(ProbeDesc pd, List<?> constArgs) {
Class<? extends Probe> probeClass = pd.getProbeClass();
List<?> defaultsArgs = pd.getDefaultArgs();
Probe retValue = null;
if (probeClass != null) {
Object o = null;
try {
if(defaultsArgs != null && constArgs != null && constArgs.size() <= 0)
... | public Probe makeProbe(ProbeDesc pd, List<?> constArgs) {
Class<? extends Probe> probeClass = pd.getProbeClass();
List<?> defaultsArgs = pd.getDefaultArgs();
Probe retValue = null;
if (probeClass != null) {
Object o = null;
try {
if(defaultsArgs != null && constArgs != null && constArgs.size() <= 0)
... |
diff --git a/drools-analytics/src/test/java/org/drools/analytics/ConsequenceTest.java b/drools-analytics/src/test/java/org/drools/analytics/ConsequenceTest.java
index 29c475638..2a77d06f6 100644
--- a/drools-analytics/src/test/java/org/drools/analytics/ConsequenceTest.java
+++ b/drools-analytics/src/test/java/org/drool... | true | true | public void testMissingConsequence() throws Exception {
StatelessSession session = getStatelessSession(this.getClass()
.getResourceAsStream("Consequence.drl"));
session.setAgendaFilter(new RuleNameMatchesAgendaFilter(
"No action - possibly commented out"));
AnalyticsDataFactory.getAnalyticsData();
Co... | public void testMissingConsequence() throws Exception {
StatelessSession session = getStatelessSession(this.getClass()
.getResourceAsStream("Consequence.drl"));
session.setAgendaFilter(new RuleNameMatchesAgendaFilter(
"No action - possibly commented out"));
AnalyticsDataFactory.clearAnalyticsData();
... |
diff --git a/src/web/org/openmrs/web/controller/RegimenPortletController.java b/src/web/org/openmrs/web/controller/RegimenPortletController.java
index 6d77b647..9483859a 100644
--- a/src/web/org/openmrs/web/controller/RegimenPortletController.java
+++ b/src/web/org/openmrs/web/controller/RegimenPortletController.java
@... | false | true | protected void populateModel(HttpServletRequest request, Map<String, Object> model) {
String drugSetIds = (String) model.get("displayDrugSetIds");
String cachedDrugSetIds = (String) model.get("cachedDrugSetIds");
if (cachedDrugSetIds == null || !cachedDrugSetIds.equals(drugSetIds)) {
if (drugSetIds != null &&... | protected void populateModel(HttpServletRequest request, Map<String, Object> model) {
String drugSetIds = (String) model.get("displayDrugSetIds");
String cachedDrugSetIds = (String) model.get("cachedDrugSetIds");
if (cachedDrugSetIds == null || !cachedDrugSetIds.equals(drugSetIds)) {
if (drugSetIds != null &&... |
diff --git a/connectors/sipgate/src/de/ub0r/android/websms/connector/sipgate/ConnectorSipgate.java b/connectors/sipgate/src/de/ub0r/android/websms/connector/sipgate/ConnectorSipgate.java
index 1662aaa1..faebb4bb 100644
--- a/connectors/sipgate/src/de/ub0r/android/websms/connector/sipgate/ConnectorSipgate.java
+++ b/con... | false | true | protected final void doSend(final Context context, final Intent intent)
throws WebSMSException {
Log.d(TAG, "doSend()");
Object back;
try {
XMLRPCClient client = this.init(context);
Vector<String> remoteUris = new Vector<String>();
ConnectorCommand command = new ConnectorCommand(intent);
final Str... | protected final void doSend(final Context context, final Intent intent)
throws WebSMSException {
Log.d(TAG, "doSend()");
Object back;
try {
XMLRPCClient client = this.init(context);
Vector<String> remoteUris = new Vector<String>();
ConnectorCommand command = new ConnectorCommand(intent);
final Str... |
diff --git a/core/plugins/org.eclipse.dltk.debug.ui/src/org/eclipse/dltk/internal/debug/ui/handlers/DebuggingEngineNotConfiguredStatusHandler.java b/core/plugins/org.eclipse.dltk.debug.ui/src/org/eclipse/dltk/internal/debug/ui/handlers/DebuggingEngineNotConfiguredStatusHandler.java
index 6aef4902e..2e63e4d92 100644
---... | true | true | protected String getPreferencePageId(Object source) {
if (source instanceof DebuggingEngineRunner) {
final DebuggingEngineRunner runner = (DebuggingEngineRunner) source;
final IDebuggingEngine engine = runner.getDebuggingEngine();
return engine.getPreferencePageId();
}
return null;
}
| protected String getPreferencePageId(Object source) {
if (source instanceof DebuggingEngineRunner) {
final DebuggingEngineRunner runner = (DebuggingEngineRunner) source;
final IDebuggingEngine engine = runner.getDebuggingEngine();
if (engine != null) {
return engine.getPreferencePageId();
}
}
re... |
diff --git a/src/com/id/ui/app/AppLayout.java b/src/com/id/ui/app/AppLayout.java
index e0575c6..5f30cc6 100644
--- a/src/com/id/ui/app/AppLayout.java
+++ b/src/com/id/ui/app/AppLayout.java
@@ -1,63 +1,63 @@
package com.id.ui.app;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
im... | false | true | public void layoutContainer(Container parent) {
int height = parent.getHeight();
int fileListWidth = filelist.getPreferredSize().width;
int remainingWidth = parent.getWidth() - fileListWidth;
int editorWidth = remainingWidth / 2;
filelist.setBounds(0, 0, fileListWidth, height);
spotlight.setBo... | public void layoutContainer(Container parent) {
int height = parent.getHeight();
int fileListWidth = 250;
int remainingWidth = parent.getWidth() - fileListWidth;
int editorWidth = remainingWidth / 2;
filelist.setBounds(0, 0, fileListWidth, height);
spotlight.setBounds(fileListWidth, 0, editorW... |
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/factory/GTFSPatternHopFactory.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/edgetype/factory/GTFSPatternHopFactory.java
index 6785b6b32..1a81572e1 100644
--- a/opentripplanner-routing/src/main/java/org/ope... | true | true | public void run(Graph graph) throws Exception {
clearCachedData();
/*
* For each trip, create either pattern edges, the entries in a trip pattern's list of
* departures, or simple hops
*/
// Load hops
Collection<Trip> trips = _dao.getAllTrips();
... | public void run(Graph graph) throws Exception {
clearCachedData();
/*
* For each trip, create either pattern edges, the entries in a trip pattern's list of
* departures, or simple hops
*/
// Load hops
Collection<Trip> trips = _dao.getAllTrips();
... |
diff --git a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/objectmanager/ContainerAdapter.java b/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/objectmanager/ContainerAdapter.java
index 6323d1462..d9e6e2765 100644
--- a/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlu... | false | true | protected void renderDescriptiveSection() throws WingException, SAXException, CrosswalkException, IOException, SQLException
{
AttributeMap attributes;
String groupID = getGenericID("group_dmd_");
dmdSecIDS = new StringBuffer();
// Add DIM descriptive metadata if it was reque... | protected void renderDescriptiveSection() throws WingException, SAXException, CrosswalkException, IOException, SQLException
{
AttributeMap attributes;
String groupID = getGenericID("group_dmd_");
dmdSecIDS = new StringBuffer();
// Add DIM descriptive metadata if it was reque... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.